1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192 |
- var f = f || {};
- f.U = f.U || {};
- f.l = {};
- q = window;
- q = Object.prototype;
- delete window._p;
- f.fd = function(c) {
- return document.createElement(c)
- };
- f.ub = function(c, d, e, g) {
- c.addEventListener(d, e, g)
- };
- f.I$ = "undefined" !== typeof require && require("fs");
- f.Wca = function(c, d) {
- if (c)
- if (c instanceof Array)
- for (var e = 0, g = c.length; e < g && !1 !== d.call(void 0, c[e], e); e++);
- else
- for (e in c)
- if (!1 === d.call(void 0, c[e], e)) break
- };
- f.Q0 = function(c) {
- if (!c) return f.log("invalid URL"), !1;
- var d = c.indexOf("://");
- if (-1 == d) return !1;
- d = c.indexOf("/", d + 3);
- return (-1 == d ? c : c.substring(0, d)) != location.origin
- };
- f.async = {
- b9: function(c) {
- var d = this.tca;
- if (!d.O_) {
- var e = d.length,
- g = d.uga,
- h = d.Bfa,
- k = h.Yh,
- m = h.nca,
- n = h.s3,
- h = h.D5a;
- if (c) {
- if (d.O_ = c, k) return k.call(m, c)
- } else {
- var p = Array.apply(null, arguments).slice(1),
- s = p.length;
- 0 == s ? p = null : 1 == s && (p = p[0]);
- g[this.index] = p;
- d.count--;
- n && n.call(h, p, e - d.count, e);
- 0 == d.count && k && k.apply(m, [null, g])
- }
- }
- },
- S9: function() {},
- f0a: function(c, d, e) {
- var g = f.async;
- if (void 0 !== e) "function" == typeof d && (d = {
- s3: d
- }), d.Yh = e || d.Yh;
- else if (void 0 !== d) "function" == typeof d && (d = {
- Yh: d
- });
- else if (void 0 !==
- c) d = {};
- else throw "arguments error!";
- var h = (e = c instanceof Array) ? c.length : Object.keys(c).length;
- if (0 == h) d.Yh && d.Yh.call(d.nca, null);
- else {
- var k = {
- length: h,
- count: h,
- Bfa: d,
- uga: e ? [] : {}
- };
- f.Wca(c, function(c, e) {
- if (k.O_) return !1;
- var h = d.Yh || d.s3 ? g.b9.bind({
- tca: k,
- index: e
- }) : g.S9;
- c(h, e)
- })
- }
- },
- map: function(c, d, e) {
- var g = this,
- h = arguments.length;
- "function" == typeof d && (d = {
- X0: d
- });
- if (3 === h) d.Yh = e || d.Yh;
- else if (2 > h) throw "arguments error!";
- "function" == typeof d && (d = {
- X0: d
- });
- if (void 0 !== e) d.Yh = e || d.Yh;
- else if (void 0 === c) throw "arguments error!";
- var k = (h = c instanceof Array) ? c.length : Object.keys(c).length;
- if (0 === k) d.Yh && d.Yh.call(d.nca, null);
- else {
- var m = {
- length: k,
- count: k,
- Bfa: d,
- uga: h ? [] : {}
- };
- f.Wca(c, function(c, e) {
- if (m.O_) return !1;
- var h = d.Yh ? g.b9.bind({
- tca: m,
- index: e
- }) : g.S9;
- d.X0.call(d.hDa, c, e, h)
- })
- }
- }
- };
- f.path = {
- join: function() {
- for (var c = arguments.length, d = "", e = 0; e < c; e++) d = (d + ("" == d ? "" : "/") + arguments[e]).replace(/(\/|\\\\)$/, "");
- return d
- },
- zp: function(c) {
- return (c = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(c)) ? c[1] : null
- },
- o_a: function(c) {
- if (c) {
- var d = c.lastIndexOf(".");
- if (-1 !== d) return c.substring(0, d)
- }
- return c
- },
- Dwa: function(c, d) {
- var e = c.indexOf("?");
- 0 < e && (c = c.substring(0, e));
- e = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(c.replace(/(\/|\\\\)$/, ""));
- if (!e) return null;
- e = e[2];
- return d && c.substring(c.length - d.length).toLowerCase() ==
- d.toLowerCase() ? e.substring(0, e.length - d.length) : e
- },
- dirname: function(c) {
- return c.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
- },
- c_: function(c, d) {
- d = d || "";
- var e = c.indexOf("?"),
- g = "";
- 0 < e && (g = c.substring(e), c = c.substring(0, e));
- e = c.lastIndexOf(".");
- return 0 > e ? c + d + g : c.substring(0, e) + d + g
- },
- pB: function(c, d, e) {
- if (0 == d.indexOf(".")) return this.c_(c, d);
- var g = c.indexOf("?"),
- h = "";
- e = e ? this.zp(c) : "";
- 0 < g && (h = c.substring(g), c = c.substring(0, g));
- g = c.lastIndexOf("/");
- return c.substring(0, 0 >= g ? 0 : g + 1) + d + e + h
- }
- };
- f.L = {
- P$: {},
- rN: {},
- Ssa: {},
- xv: {},
- MQ: "",
- vwa: "",
- jj: {},
- LH: function() {
- return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP")
- },
- n$: function(c) {
- var d = c[0],
- e = c[1],
- g = c[2],
- h = ["", null, null];
- if (1 === c.length) h[1] = d instanceof Array ? d : [d];
- else if (2 === c.length) "function" == typeof e ? (h[1] = d instanceof Array ? d : [d], h[2] = e) : (h[0] = d || "", h[1] = e instanceof Array ? e : [e]);
- else if (3 === c.length) h[0] = d || "", h[1] = e instanceof Array ? e : [e], h[2] = g;
- else throw "arguments error to load js!";
- return h
- },
- ODa: function(c, d, e) {
- var g = this,
- h = g.P$,
- k = g.n$(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? g.W$(k[0], k[1], 0, k[2]) : f.async.map(k[1], function(c, d, e) {
- c = f.path.join(k[0], c);
- if (h[c]) return e(null);
- g.c9(c, !1, e)
- }, k[2])
- },
- hfa: function(c, d, e) {
- var g = this.Vsa(),
- h = this.n$(arguments);
- this.ODa(h[0], h[1], function(c) {
- if (c) throw c;
- g.parentNode.removeChild(g);
- if (h[2]) h[2]()
- })
- },
- c9: function(c, d, e) {
- var g = document,
- h = f.fd("script");
- h.async = d;
- h.src = c;
- this.P$[c] = !0;
- f.ub(h, "load", function() {
- this.removeEventListener("load",
- arguments.callee, !1);
- e()
- }, !1);
- f.ub(h, "error", function() {
- e("Load " + c + " failed!")
- }, !1);
- g.body.appendChild(h)
- },
- W$: function(c, d, e, g) {
- if (e >= d.length) g && g();
- else {
- var h = this;
- h.c9(f.path.join(c, d[e]), !1, function(k) {
- if (k) return g(k);
- h.W$(c, d, e + 1, g)
- })
- }
- },
- Vsa: function() {
- var c = document,
- d = c.getElementById("cocos2d_loadJsImg");
- if (!d) {
- d = f.fd("img");
- f.Y$ && (d.src = f.Y$);
- c = c.getElementById(f.vf.kj.id);
- c.style.backgroundColor = "black";
- c.parentNode.appendChild(d);
- var e = getComputedStyle ? getComputedStyle(c) : c.currentStyle;
- e || (e = {
- width: c.width,
- height: c.height
- });
- d.style.left = c.offsetLeft + (parseFloat(e.width) - d.width) / 2 + "px";
- d.style.top = c.offsetTop + (parseFloat(e.height) - d.height) / 2 + "px";
- d.style.position = "absolute"
- }
- return d
- },
- lQ: function(c, d) {
- if (f.I$) require("fs").F0a(c, function(c, e) {
- c ? d(c) : d(null, e.toString())
- });
- else {
- var e = this.LH(),
- g = "load " + c + " failed!";
- e.open("GET", c, !0);
- /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "utf-8"), e.onreadystatechange = function() {
- 4 ==
- e.readyState && 200 == e.status ? d(null, e.responseText) : d(g)
- }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dutf-8"), e.onload = function() {
- 4 == e.readyState && 200 == e.status ? d(null, e.responseText) : d(g)
- });
- e.send(null)
- }
- },
- X$: function(c) {
- if (f.I$) return require("fs").G0a(c).toString();
- var d = this.LH();
- d.open("GET", c, !1);
- /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");
- d.send(null);
- return 4 == !d.readyState || 200 != d.status ? null : d.responseText
- },
- ifa: function(c, d) {
- this.lQ(c, function(e, g) {
- try {
- e ? d(e) : d(null, JSON.parse(g))
- } catch (h) {
- throw "load json [" + c + "] failed : " + h;
- }
- })
- },
- V8: function(c) {
- return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(c)
- },
- eI: function(c, d, e) {
- var g = !0;
- void 0 !== e ? g = null == d.Q0 ? g : d.Q0 : void 0 !== d && (e = d);
- var h = new Image;
- g && "file://" != location.origin && (h.crossOrigin = "Anonymous");
- f.ub(h, "load", function() {
- this.removeEventListener("load", arguments.callee, !1);
- this.removeEventListener("error", arguments.callee, !1);
- e && e(null, h)
- });
- f.ub(h, "error", function() {
- this.removeEventListener("error", arguments.callee, !1);
- e && e("load image failed")
- });
- h.src = c;
- return h
- },
- Wsa: function(c, d, e) {
- var g = this,
- h = null;
- (d = c.type) ? (d = "." + d.toLowerCase(), h = c.src ? c.src : c.name + d) : (h = c, d = f.path.zp(h));
- var k = g.jj[h];
- if (k) return e(null, k);
- k = g.rN[d.toLowerCase()];
- if (!k) return f.error("loader for [" + d + "] not exists!"), e();
- d = g.u0(k.gP ? k.gP() : g.MQ, h);
- k.load(d, h, c, function(c, d) {
- c ? (f.log(c),
- g.jj[h] = null, delete g.jj[h], e()) : (g.jj[h] = d, e(null, d))
- })
- },
- u0: function(c, d) {
- var e = this.Ssa,
- g = f.path;
- if (void 0 !== c && void 0 === d) {
- d = c;
- var h = g.zp(d),
- h = h ? h.toLowerCase() : "";
- c = (h = this.rN[h]) ? h.gP ? h.gP() : this.MQ : this.MQ
- }
- d = f.path.join(c || "", d);
- if (d.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
- if (e[d]) return e[d];
- g = g.zp(d) || "";
- d = e[d] = d.substring(0, d.length - g.length) + "_" + f.Ed.language + g
- }
- return d
- },
- load: function(c, d, e) {
- if (void 0 !== e) "function" == typeof d && (d = {
- s3: d
- });
- else if (void 0 !== d) "function" == typeof d && (e = d, d = {});
- else if (void 0 !==
- c) d = {};
- else throw "arguments error!";
- d.Yh = function(c, d) {
- c && f.log(c);
- e && e(d)
- };
- c instanceof Array || (c = [c]);
- d.X0 = this.Wsa;
- d.hDa = this;
- f.async.map(c, d)
- },
- y$: function(c, d) {
- var e = this.xv,
- g = [],
- h;
- for (h in c) {
- var k = c[h];
- e[h] = k;
- g.push(k)
- }
- this.load(g, d)
- },
- k_a: function(c, d) {
- var e = this,
- g = e.zd(c);
- g ? e.y$(g.filenames, d) : e.load(c, function(c) {
- e.y$(c[0].filenames, d)
- })
- },
- Xp: function(c, d) {
- if (c && d) {
- if ("string" == typeof c) return this.rN[c.trim().toLowerCase()] = d;
- for (var e = 0, g = c.length; e < g; e++) this.rN["." + c[e].trim().toLowerCase()] =
- d
- }
- },
- zd: function(c) {
- return this.jj[c] || this.jj[this.xv[c]]
- },
- wh: function(c) {
- var d = this.jj,
- e = this.xv;
- delete d[c];
- delete d[e[c]];
- delete e[c]
- },
- R0a: function() {
- var c = this.jj,
- d = this.xv,
- e;
- for (e in c) delete c[e];
- for (e in d) delete d[e]
- }
- };
- (function() {
- function c() {
- f.Qa && f.vf.ht && f.Qa.dispatchEvent(f.vf.ht)
- }
- function d() {
- f.Qa && f.vf.gt && f.Qa.dispatchEvent(f.vf.gt)
- }
- var e = window,
- g, h;
- "undefined" !== typeof document.hidden ? (g = "hidden", h = "visibilitychange") : "undefined" !== typeof document.mozHidden ? (g = "mozHidden", h = "mozvisibilitychange") : "undefined" !== typeof document.msHidden ? (g = "msHidden", h = "msvisibilitychange") : "undefined" !== typeof document.webkitHidden && (g = "webkitHidden", h = "webkitvisibilitychange");
- g ? f.ub(document, h, function() {
- document[g] ? d() :
- c()
- }, !1) : (f.ub(e, "blur", d, !1), f.ub(e, "focus", c, !1));
- "onpageshow" in window && "onpagehide" in window && (f.ub(e, "pagehide", d, !1), f.ub(e, "pageshow", c, !1));
- h = e = null
- })();
- f.log = f.warn = f.error = f.assert = function() {};
- f.xca = function(c, d) {
- for (var e = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], g = null, h = 0; h < e.length; ++h) {
- try {
- g = c.getContext(e[h], d)
- } catch (k) {}
- if (g) break
- }
- return g
- };
- f.Asa = function(c, d) {
- f.fb = 0;
- f.na = 1;
- var e = f.Ed = {};
- e.kma = "en";
- e.DLa = "zh";
- e.ELa = "fr";
- e.HLa = "it";
- e.FLa = "de";
- e.OLa = "es";
- e.NLa = "ru";
- e.JLa = "ko";
- e.ILa = "ja";
- e.GLa = "hu";
- e.MLa = "pt";
- e.CLa = "ar";
- e.KLa = "no";
- e.LLa = "pl";
- e.Wma = "Windows";
- e.l6 = "iOS";
- e.m6 = "OS X";
- e.Uma = "UNIX";
- e.Tma = "Linux";
- e.Sma = "Android";
- e.Vma = "Unknown";
- e.xja = "wechat";
- e.tja = "androidbrowser";
- e.cS = "ie";
- e.uja = "qqbrowser";
- e.Y3 = "mqqbrowser";
- e.vja = "ucbrowser";
- e.gKa = "360browser";
- e.hKa = "baiduboxapp";
- e.X3 = "baidubrowser";
- e.iKa = "maxthon";
- e.dS = "opera";
- e.jKa = "miuibrowser";
- e.jD = "firefox";
- e.eS = "safari";
- e.bS = "chrome";
- e.wja = "unknown";
- e.$Ca = !1;
- var g = [e.X3, e.dS, e.jD, e.bS, e.eS],
- h = [e.X3, e.dS, e.jD, e.bS, e.eS, e.vja, e.uja, e.Y3, e.cS],
- k = window,
- m = k.navigator,
- n = document.documentElement,
- p = m.userAgent.toLowerCase();
- e.Or = -1 != p.indexOf("mobile") || -1 != p.indexOf("android");
- var s = m.language,
- s = (s = s ? s : m.browserLanguage) ? s.split("-")[0] : e.kma;
- e.language = s;
- var s = e.wja,
- u = p.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) ||
- p.match(/chrome|safari/i);
- u && 0 < u.length && (s = u[0].toLowerCase(), "micromessenger" == s ? s = e.xja : "safari" === s && p.match(/android.*applewebkit/) ? s = e.tja : "trident" == s && (s = e.cS));
- e.gx = s;
- e.iva = -1 < h.indexOf(e.gx);
- h = parseInt(c[d.LQ]);
- s = f.na;
- u = f.fd("Canvas");
- f.BG = !0;
- g = -1 == g.indexOf(e.gx);
- if (1 === h || 0 === h && (e.Or || g)) s = f.fb;
- s != f.na || k.WebGLRenderingContext && f.xca(u, {
- stencil: !0,
- preserveDrawingBuffer: !0
- }) || (0 == h ? s = f.fb : f.BG = !1);
- if (s == f.fb) try {
- u.getContext("2d")
- } catch (v) {
- f.BG = !1
- }
- f.K = s;
- try {
- e.RN = !!new(k.AudioContext ||
- k.webkitAudioContext || k.mozAudioContext)
- } catch (z) {
- e.RN = !1
- }
- try {
- var A = e.localStorage = k.localStorage;
- A.setItem("storage", "");
- A.removeItem("storage");
- A = null
- } catch (B) {
- "SECURITY_ERR" !== B.name && "QuotaExceededError" !== B.name || f.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), e.localStorage = function() {}
- }
- A = e.$Z = {
- canvas: !0
- };
- f.K == f.na && (A.opengl = !0);
- void 0 !== n.ontouchstart || m.msPointerEnabled ? A.touches = !0 : void 0 !== n.onmouseup && (A.mouse = !0);
- void 0 !== n.onkeyup && (A.keyboard = !0);
- if (k.DeviceMotionEvent || k.DeviceOrientationEvent) A.accelerometer = !0;
- k = p.match(/(iPad|iPhone|iPod)/i) ? !0 : !1;
- p = p.match(/android/i) || m.platform.match(/android/i) ? !0 : !1;
- n = e.Vma; - 1 != m.appVersion.indexOf("Win") ? n = e.Wma : k ? n = e.l6 : -1 != m.appVersion.indexOf("Mac") ? n = e.m6 : -1 != m.appVersion.indexOf("X11") ? n = e.Uma : -1 != m.appVersion.indexOf("Linux") ? n = e.Tma : p && (n = e.Sma);
- e.y1 = n;
- e.TRa = function() {};
- e.hRa = function() {};
- e.I1a = function() {};
- e.fRa = function() {
- var c;
- c = "" + ("isMobile : " + this.Or + "\r\n");
- c += "language : " + this.language +
- "\r\n";
- c += "browserType : " + this.gx + "\r\n";
- c += "capabilities : " + JSON.stringify(this.$Z) + "\r\n";
- c += "os : " + this.y1 + "\r\n";
- f.log(c)
- }
- };
- f.hMa = 0;
- f.iMa = 1;
- f.fMa = 2;
- f.gMa = 3;
- f.If = null;
- f.s = null;
- f.Sb = null;
- f.wra = null;
- f.uN = !1;
- f.$aa = !1;
- f.Zaa = function(c) {
- var d, e;
- if (!f.$aa) {
- f.$aa = !0;
- var g = window;
- g.a2 = g.requestAnimationFrame || g.webkitRequestAnimationFrame || g.mozRequestAnimationFrame || g.oRequestAnimationFrame || g.msRequestAnimationFrame;
- var h = f.mc(c) || f.mc("#" + c),
- k;
- "CANVAS" == h.tagName ? (d = d || h.width, e = e || h.height, k = f.container = f.fd("DIV"), c = f.Sb = h, c.parentNode.insertBefore(k, c), c.cx(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && f.log("Warning: target element is not a DIV or CANVAS"), d = d || h.clientWidth, e = e || h.clientHeight,
- k = f.container = h, c = f.Sb = f.mc(f.fd("CANVAS")), h.appendChild(c));
- c.Qba("gameCanvas");
- c.setAttribute("width", d || 480);
- c.setAttribute("height", e || 320);
- c.setAttribute("tabindex", 99);
- c.style.outline = "none";
- h = k.style;
- h.width = (d || 480) + "px";
- h.height = (e || 320) + "px";
- h.margin = "0 auto";
- h.position = "relative";
- h.overflow = "hidden";
- k.top = "100%";
- f.K == f.na && (f.s = f.W5a = f.xca(c, {
- stencil: !0,
- preserveDrawingBuffer: !0,
- antialias: !f.Ed.Or,
- alpha: !1
- }));
- f.s ? (g.gl = f.s, f.If = new f.gla(f.s), f.uN = !0, f.nb.Fsa(), f.xg.FF()) : (f.s = c.getContext("2d"),
- f.Ysa = f.s, f.s.translate(0, c.height), f.If = f.a5 ? new f.a5(f.s) : null);
- f.wra = k;
- f.log(f.JS);
- f.pua();
- f.Ed.Or && (d = f.fd("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);}");
- f.view = f.HS.rW();
- f.Gea.EFa(f.Sb);
- f.Q = f.ic.rW();
- f.Q.B2 && f.Q.B2(f.view);
- f.gq = f.Q.Y;
- f.fGa = new f.pK;
- f.dFa = new f.jna
- }
- };
- f.tV = function() {
- if (f.K !== f.na) throw "This feature supports WebGL render mode only.";
- };
- f.H$ = !1;
- f.pua = function() {
- f.H$ = !1;
- f.Sb.oncontextmenu = function() {
- if (!f.H$) return !1
- }
- };
- f.vf = {
- U4: 0,
- Wka: 1,
- MKa: 2,
- Vka: 3,
- BS: 4,
- V4: 5,
- T4: 6,
- UJ: "game_on_hide",
- vD: "game_on_show",
- gt: null,
- ht: null,
- FOa: [],
- Vm: {
- M_: "engineDir",
- KQa: "dependencies",
- iH: "debugMode",
- cIa: "showFPS",
- cP: "frameRate",
- id: "id",
- LQ: "renderMode",
- iDa: "jsList",
- Wwa: "classReleaseMode"
- },
- saa: !1,
- FX: !1,
- Ce: !0,
- MW: null,
- kj: null,
- Sp: null,
- M_a: null,
- k3a: function(c) {
- this.kj[this.Vm.cP] = c;
- this.MW && clearInterval(this.MW);
- this.Ce = !0;
- this.ZX()
- },
- ZX: function() {
- var c = this,
- d, e = c.kj,
- g = c.Vm,
- h = window,
- k = e[g.cP],
- m = f.Q;
- m.OGa(e[g.cIa]);
- h.a2 && 60 == k ? (d = function() {
- c.Ce ||
- (m.lfa(), h.a2(d))
- }, h.a2(d)) : (d = function() {
- m.lfa()
- }, c.MW = setInterval(d, 1E3 / k));
- c.Ce = !1
- },
- eGa: function(c) {
- function d() {
- c && (e.kj[e.Vm.id] = c);
- e.saa ? f.BG && (e.Fqa = setInterval(function() {
- e.FX && (f.Zaa(e.kj[e.Vm.id]), e.ZX(), e.gt = e.gt || new f.kq(e.UJ), e.gt.setUserData(e), e.ht = e.ht || new f.kq(e.vD), e.ht.setUserData(e), e.Sp(), clearInterval(e.Fqa))
- }, 10)) : e.mFa(function() {
- f.BG && (f.Zaa(e.kj[e.Vm.id]), e.ZX(), e.gt = e.gt || new f.kq(e.UJ), e.gt.setUserData(e), e.ht = e.ht || new f.kq(e.vD), e.ht.setUserData(e), e.Sp())
- })
- }
- var e =
- this;
- document.body ? d() : f.ub(window, "load", function() {
- this.removeEventListener("load", arguments.callee, !1);
- d()
- }, !1)
- },
- vsa: function() {
- function c(c) {
- c[d.M_] = c[d.M_] || "frameworks/cocos2d-html5";
- null == c[d.iH] && (c[d.iH] = 0);
- c[d.cP] = c[d.cP] || 60;
- null == c[d.LQ] && (c[d.LQ] = 1);
- return c
- }
- var d = this.Vm;
- if (document.ccConfig) this.kj = c(document.ccConfig);
- else try {
- for (var e = document.getElementsByTagName("script"), g = 0; g < e.length; g++) {
- var h = e[g].getAttribute("cocos");
- if ("" == h || h) break
- }
- var k, m, n;
- if (g < e.length) {
- if (k = e[g].src) n =
- /(.*)\//.exec(k)[0], f.L.MQ = n, k = f.path.join(n, "project.json");
- m = f.L.X$(k)
- }
- m || (m = f.L.X$("project.json"));
- var p = JSON.parse(m);
- this.kj = c(p || {})
- } catch (s) {
- f.log("Failed to read or parse project.json"), this.kj = c({})
- }
- f.Asa(this.kj, d)
- },
- Psa: {},
- q$: function(c, d, e) {
- var g = this.Psa;
- if (g[d]) return null;
- e = e || "";
- var h = [],
- k = c[d];
- if (!k) throw "can not find module [" + d + "]";
- d = f.path;
- for (var m = 0, n = k.length; m < n; m++) {
- var p = k[m];
- if (!g[p]) {
- var s = d.zp(p);
- s ? ".js" == s.toLowerCase() && h.push(d.join(e, p)) : (s = this.q$(c, p, e)) && (h = h.concat(s));
- g[p] = 1
- }
- }
- return h
- },
- mFa: function(c) {
- var d = this,
- e = d.kj,
- g = d.Vm,
- h = e[g.M_],
- k = f.L;
- if (f.BG) {
- d.saa = !0;
- var m = e[g.iDa] || [];
- f.N ? k.hfa("", m, function(e) {
- if (e) throw e;
- d.FX = !0;
- c && c()
- }) : (g = f.path.join(h, "moduleConfig.json"), k.ifa(g, function(g, k) {
- if (g) throw g;
- var s = e.modules || [],
- u = k.module,
- v = [];
- f.K == f.na ? s.splice(0, 0, "shaders") : 0 > s.indexOf("core") && s.splice(0, 0, "core");
- for (var z = 0, A = s.length; z < A; z++) {
- var B = d.q$(u, s[z], h);
- B && (v = v.concat(B))
- }
- v = v.concat(m);
- f.L.hfa(v, function(e) {
- if (e) throw e;
- d.FX = !0;
- c && c()
- })
- }))
- } else f.error("Can not support render!")
- }
- };
- f.vf.vsa();
- f.l = {
- N3: "cc.ActionManager.addAction(): action must be non-null",
- aja: "cocos2d: removeAction: Target not found",
- JJa: "cc.ActionManager.removeActionByTag(): an invalid tag",
- KJa: "cc.ActionManager.removeActionByTag(): target must be non-null",
- Zia: "cc.ActionManager.getActionByTag(): an invalid tag",
- $ia: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
- $wa: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
- axa: "Expected 'data' dict, but not found. Config file: %s",
- bxa: "Please load the resource first : %s",
- bla: "cocos2d: Director: Error in gettimeofday",
- cla: "cocos2d: Director: unrecognized projection",
- XKa: "cocos2d: Director: unrecognized projection",
- ala: "cocos2d: Director: Error in gettimeofday",
- $ka: "running scene should not null",
- Z4: "the scene should not null",
- mB: "element type is wrong!",
- Vna: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
- Wna: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
- Xna: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
- Tna: "cc.Scheduler.pauseTarget():target should be non-null",
- Una: "cc.Scheduler.resumeTarget():target should be non-null",
- Sna: "cc.Scheduler.isTargetPaused():target should be non-null",
- Cma: "getZOrder is deprecated. Please use getLocalZOrder instead.",
- Nma: "setZOrder is deprecated. Please use setLocalZOrder instead.",
- Ama: "RotationX !\x3d RotationY. Don't know which one to return",
- Bma: "ScaleX !\x3d ScaleY. Don't know which one to return",
- wma: "An Node can't be added as a child of itself.",
- xma: "child already added. It can't be added again",
- yma: "child must be non-null",
- Hma: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
- Fma: "argument tag is an invalid tag",
- Gma: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
- Ema: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
- Oma: "cc.Node.stopActionBy(): argument tag an invalid tag",
- zma: "cc.Node.getActionByTag(): argument tag is an invalid tag",
- Jma: "resumeSchedulerAndActions is deprecated, please use resume instead.",
- Dma: "pauseSchedulerAndActions is deprecated, please use pause instead.",
- vma: "Unknown callback function",
- Ima: "child must be non-null",
- Kma: "cc.Node.runAction(): action must be non-null",
- Lma: "callback function must be non-null",
- Mma: "interval must be positive",
- $La: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
- jja: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
- TJa: "",
- P3: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
- Opa: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
- Qpa: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
- Ppa: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
- Npa: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
- zla: "Invalid parameter.",
- LK: "Don't call this method if the event is for touch.",
- Uya: "Invalid scene graph priority!",
- Vya: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
- Zya: "Invalid listener type!",
- $ya: "Can't set fixed priority with scene graph based listener.",
- Wya: "Invalid parameters.",
- Xya: "listener must be a cc.EventListener object when adding a fixed priority listener",
- Yya: "The listener has been registered, please don't register it again.",
- nma: "parameters should not be ending with null in Javascript",
- oma: "Invalid index in MultiplexLayer switchTo message",
- pma: "Invalid index in MultiplexLayer switchTo message",
- mma: "cc.Layer.addLayer(): layer should be non-null",
- kla: "Resolution not valid",
- lla: "should set resolutionPolicy",
- JCa: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
- ria: "cc.swap is being modified from original macro, please check usage",
- rB: "WebGL error %s",
- ewa: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
- fwa: "cc.AnimationCache. Invalid animation format",
- mwa: "cc.AnimationCache.addAnimations(): File could not be found",
- gwa: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
- hwa: "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.",
- iwa: "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.",
- jwa: "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.",
- kwa: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
- lwa: "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.",
- nwa: "cc.AnimationCache.addAnimations(): Invalid texture file name",
- zoa: "cc.Sprite.reorderChild(): this child is not in children list",
- roa: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
- Coa: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
- Doa: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
- Boa: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
- koa: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
- toa: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
- uoa: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
- voa: " is null, please check.",
- soa: "cc.Sprite.initWithFile(): filename should be non-null",
- Eoa: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
- Aoa: "cc.Sprite.reorderChild(): child should be non-null",
- loa: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
- moa: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
- noa: "cc.Sprite.addChild(): child should be non-null",
- Goa: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
- DMa: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- xoa: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- ooa: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
- poa: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
- woa: "Sprite.initWithTexture(): Argument must be non-nil ",
- Foa: "Invalid spriteFrameName",
- Hoa: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
- EMa: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
- yoa: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
- qoa: "cc.SpriteBatchNode.addChild(): child should be non-null",
- doa: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
- foa: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
- goa: "cocos2d: WARNING: Not enough memory to resize the atlas",
- ioa: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
- hoa: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
- eoa: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
- joa: "cc.SpriteBatchNode.addChild():child should be non-null",
- kIa: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
- mIa: "cocos2d: WARNING: an alias with name %s already exists",
- jIa: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
- pIa: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
- lIa: "Please load the resource first : %s",
- nIa: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
- oIa: "Argument must be non-nil",
- lS: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- Mja: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- Ija: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
- Lja: "Sprite.initWithTexture(): Argument must be non-nil ",
- Jja: "cc.Sprite.addChild(): child should be non-null",
- Oja: "Invalid spriteFrameName",
- Pja: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
- Qja: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
- Nja: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
- Kja: "cc.SpriteBatchNode.addChild(): child should be non-null",
- hpa: "cocos2d: Could not open file: %s",
- z7: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
- ipa: "cc.TextureAtlas.initWithTexture():texture should be non-null",
- spa: "cc.TextureAtlas.updateQuad(): quad should be non-null",
- tpa: "cc.TextureAtlas.updateQuad(): Invalid index",
- lpa: "cc.TextureAtlas.insertQuad(): Invalid index",
- mpa: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
- jpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
- kpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
- qpa: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
- rpa: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
- npa: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
- opa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
- ppa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
- BIa: "TextureCache:addPVRTCImage does not support on HTML5",
- zIa: "TextureCache:addPVRTCImage does not support on HTML5",
- AIa: "addPVRImage does not support on HTML5",
- CIa: "cocos2d: Couldn't add UIImage in TextureCache",
- EIa: "cocos2d: '%s' id\x3d%s %s x %s",
- tia: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
- FIa: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
- DIa: "cc.Texture.addUIImage(): image should be non-null",
- Zoa: "initWithETCFile does not support on HTML5",
- cpa: "initWithPVRFile does not support on HTML5",
- epa: "initWithPVRTCData does not support on HTML5",
- Voa: "cc.Texture.addImage(): path should be non-null",
- apa: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
- bpa: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
- gpa: "initWithString isn't supported on cocos2d-html5",
- $oa: "initWithETCFile does not support on HTML5",
- dpa: "initWithPVRFile does not support on HTML5",
- fpa: "initWithPVRTCData does not support on HTML5",
- Xoa: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
- Uoa: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
- Woa: "cc.Texture.addImage(): path should be non-null",
- Yoa: "NSInternalInconsistencyException",
- Hf: "Missing file: %s",
- Tfa: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
- HT: "Rect width exceeds maximum margin: %s",
- GT: "Rect height exceeds maximum margin: %s",
- Ala: "If program goes here, there should be event in dispatch.",
- Bla: "_inDispatch should be 1 here."
- };
- f.IM = function(c) {
- if (f.Sb) {
- var d = f.Xsa,
- e = document;
- if (!d) {
- var g = e.createElement("Div"),
- d = g.style;
- g.setAttribute("id", "logInfoDiv");
- f.Sb.parentNode.appendChild(g);
- g.setAttribute("width", "200");
- g.setAttribute("height", f.Sb.height);
- d.zIndex = "99999";
- d.position = "absolute";
- d.top = "0";
- d.left = "0";
- d = f.Xsa = e.createElement("textarea");
- e = d.style;
- d.setAttribute("rows", "20");
- d.setAttribute("cols", "30");
- d.setAttribute("disabled", !0);
- g.appendChild(d);
- e.backgroundColor = "transparent";
- e.borderBottom = "1px solid #cccccc";
- e.borderRightWidth = "0px";
- e.borderLeftWidth = "0px";
- e.borderTopWidth = "0px";
- e.borderTopStyle = "none";
- e.borderRightStyle = "none";
- e.borderLeftStyle = "none";
- e.padding = "0px";
- e.margin = 0
- }
- c = "string" == typeof c ? c : JSON.stringify(c);
- d.value = d.value + c + "\r\n";
- d.scrollTop = d.scrollHeight
- }
- };
- f.gM = function(c) {
- if ("object" === typeof c) try {
- return JSON.stringify(c)
- } catch (d) {
- return ""
- } else return c
- };
- console.log && (f.log = function(c) {
- for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d]));
- console.log(c)
- }, f.warn = console.warn ? function(c) {
- for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d]));
- console.warn(c)
- } : f.log, f.error = console.error ? function(c) {
- for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d]));
- console.error(c)
- } : f.log, f.assert = function(c, d) {
- if (!c && d) {
- for (var e = 2; e < arguments.length; e++) d = d.replace(/(%s)|(%d)/, f.gM(arguments[e]));
- throw d;
- }
- });
- var aa = f.vf.kj[f.vf.Vm.iH],
- ba = f.vf;
- console.log && aa === ba.Wka || (f.log = aa == ba.BS ? f.IM.bind(f) : function() {});
- aa && aa != ba.U4 && aa != ba.Vka && aa != ba.T4 || (f.warn = function() {});
- aa != ba.BS && aa != ba.V4 && console.warn || (f.warn = f.IM.bind(f));
- aa && aa != ba.U4 ? aa != ba.BS && aa != ba.V4 && aa != ba.T4 && console.error || (f.error = f.IM.bind(f), f.assert = function(c, d) {
- if (!c && d) {
- for (var e = 2; e < arguments.length; e++) d = d.replace("%s", arguments[e]);
- f.IM(d)
- }
- }) : (f.error = function() {}, f.assert = function() {});
- f.L.LDa = function(c, d) {
- var e = this,
- g = this.LH(),
- h = "load " + c + " failed!";
- g.open("GET", c, !0);
- /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (g.setRequestHeader("Accept-Charset", "x-user-defined"), g.onreadystatechange = function() {
- if (4 == g.readyState && 200 == g.status) {
- var c = f.zV(g.responseBody);
- d(null, e.NN(c))
- } else d(h)
- }) : (g.overrideMimeType && g.overrideMimeType("text/plain; charset\x3dx-user-defined"), g.onload = function() {
- 4 == g.readyState && 200 == g.status ? d(null, e.NN(g.responseText)) : d(h)
- });
- g.send(null)
- };
- f.L.NN = function(c) {
- if (!c) return null;
- for (var d = new Uint8Array(c.length), e = 0; e < c.length; e++) d[e] = c.charCodeAt(e) & 255;
- return d
- };
- f.L.gfa = function(c) {
- var d = this.LH(),
- e = "load " + c + " failed!";
- d.open("GET", c, !1);
- c = null;
- if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
- d.setRequestHeader("Accept-Charset", "x-user-defined");
- d.send(null);
- if (200 != d.status) return f.log(e), null;
- (d = f.zV(d.responseBody)) && (c = this.NN(d))
- } else {
- d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
- d.send(null);
- if (200 != d.status) return f.log(e), null;
- c = this.NN(d.responseText)
- }
- return c
- };
- var Uint8Array = Uint8Array || Array;
- if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
- var ca = f.fd("script");
- ca.type = "text/vbscript";
- ca.textContent = '\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n';
- document.body.appendChild(ca);
- f.zV = function(c) {
- for (var d = {}, e = 0; 256 > e; e++)
- for (var g = 0; 256 > g; g++) d[String.fromCharCode(e + 256 * g)] = String.fromCharCode(e) + String.fromCharCode(g);
- e = IEBinaryToArray_ByteStr(c);
- c = IEBinaryToArray_ByteStr_Last(c);
- return e.replace(/[\s\S]/g, function(c) {
- return d[c]
- }) + c
- }
- };
- f = f || {};
- f.Y$ = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
- f.Qz = "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";
- f.VW = "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";
- var f = f || {},
- da = {
- id: 0 | 998 * Math.random(),
- MCa: 0 | 998 * Math.random(),
- rca: function(c, d, e) {
- c = c.toString();
- var g = c.substring(c.indexOf("(") + 1, c.indexOf(")")),
- g = g.trim();
- for (c = c.substring(c.indexOf("{") + 1, c.lastIndexOf("}")); - 1 != c.indexOf("this._super");) {
- var h = c.indexOf("this._super"),
- k = c.indexOf("(", h),
- m = c.substring(k + 1, c.indexOf(")", k)),
- m = m.trim();
- c = c.substring(0, h) + "ClassManager[" + e + "]." + d + ".call(this" + (m ? "," : "") + c.substring(k + 1)
- }
- return Function(g, c)
- },
- Hda: function() {
- return this.id++
- },
- HAa: function() {
- return this.MCa++
- }
- };
- da.rca.KKa = da;
- (function() {
- var c = /\b_super\b/,
- d = f.vf.kj[f.vf.Vm.Wwa];
- d && console.log("release Mode");
- f.N = function() {};
- f.N.extend = function(e) {
- function g() {
- this.yb = da.HAa();
- this.ctor && this.ctor.apply(this, arguments)
- }
- var h = this.prototype,
- k = Object.create(h),
- m = da.Hda();
- da[m] = h;
- var n = {
- writable: !0,
- enumerable: !1,
- configurable: !0
- };
- k.yb = null;
- g.id = m;
- n.value = m;
- Object.defineProperty(k, "__pid", n);
- g.prototype = k;
- n.value = g;
- Object.defineProperty(g.prototype, "constructor", n);
- this.Go && (g.Go = f.p(this.Go));
- this.Ho && (g.Ho = f.p(this.Ho));
- for (var p = 0, s = arguments.length; p < s; ++p) {
- var u = arguments[p],
- v;
- for (v in u) {
- var z = "function" === typeof u[v],
- A = "function" === typeof h[v],
- B = c.test(u[v]);
- d && z && A && B ? (n.value = da.rca(u[v], v, m), Object.defineProperty(k, v, n)) : z && A && B ? (n.value = function(c, d) {
- return function() {
- var e = this._super;
- this._super = h[c];
- var g = d.apply(this, arguments);
- this._super = e;
- return g
- }
- }(v, u[v]), Object.defineProperty(k, v, n)) : z ? (n.value = u[v], Object.defineProperty(k, v, n)) : k[v] = u[v];
- if (z) {
- var C, G;
- if (this.Go && this.Go[v]) {
- var z = this.Go[v],
- L;
- for (L in this.Ho)
- if (this.Ho[L] == z) {
- G = L;
- break
- }
- f.d(k, z, u[v], u[G] ? u[G] : k[G], v, G)
- }
- if (this.Ho && this.Ho[v]) {
- z = this.Ho[v];
- for (L in this.Go)
- if (this.Go[L] == z) {
- C = L;
- break
- }
- f.d(k, z, u[C] ? u[C] : k[C], u[v], C, v)
- }
- }
- }
- }
- g.extend = f.N.extend;
- g.$Wa = function(c) {
- for (var d in c) k[d] = c[d]
- };
- return g
- };
- Function.prototype.bind = Function.prototype.bind || function(c) {
- var d = this;
- return function() {
- var h = Array.prototype.slice.call(arguments);
- return d.apply(c || null, h)
- }
- }
- })();
- f.d = function(c, d, e, g, h, k) {
- if (c.__defineGetter__) e && c.__defineGetter__(d, e), g && c.__defineSetter__(d, g);
- else if (Object.defineProperty) {
- var m = {
- enumerable: !1,
- configurable: !0
- };
- e && (m.get = e);
- g && (m.set = g);
- Object.defineProperty(c, d, m)
- } else throw Error("browser does not support getters"); if (!h && !k)
- for (var m = null != e, n = void 0 != g, p = Object.getOwnPropertyNames(c), s = 0; s < p.length; s++) {
- var u = p[s];
- if ((c.__lookupGetter__ ? !c.__lookupGetter__(u) : !Object.getOwnPropertyDescriptor(c, u)) && "function" === typeof c[u]) {
- var v = c[u];
- if (m && v === e && (h = u, !n || k)) break;
- if (n && v === g && (k = u, !m || h)) break
- }
- }
- c = c.constructor;
- h && (c.Go || (c.Go = {}), c.Go[h] = d);
- k && (c.Ho || (c.Ho = {}), c.Ho[k] = d)
- };
- f.p = function(c) {
- var d = c.constructor ? new c.constructor : {},
- e;
- for (e in c) {
- var g = c[e];
- d[e] = "object" != typeof g || !g || g instanceof f.v || g instanceof HTMLElement ? g : f.p(g)
- }
- return d
- };
- f = f || {};
- f.U = f.U || {};
- f.PPa = function() {};
- f.Jy = {
- fca: 8,
- wIa: 9,
- N_: 13,
- shift: 16,
- GQa: 17,
- alt: 18,
- pause: 19,
- aQa: 20,
- escape: 27,
- e0a: 33,
- d0a: 34,
- end: 35,
- home: 36,
- left: 37,
- I5a: 38,
- right: 39,
- bRa: 40,
- dXa: 45,
- VKa: 46,
- 0: 48,
- 1: 49,
- 2: 50,
- 3: 51,
- 4: 52,
- 5: 53,
- 6: 54,
- 7: 55,
- 8: 56,
- 9: 57,
- a: 65,
- b: 66,
- G: 67,
- P: 68,
- wm: 69,
- Tn: 70,
- g: 71,
- Vf: 72,
- QH: 73,
- XP: 74,
- YP: 75,
- hQ: 76,
- mQ: 77,
- Xr: 78,
- tQ: 79,
- AQ: 80,
- JQ: 81,
- r: 82,
- ll: 83,
- o3: 84,
- Da: 85,
- ga: 86,
- da: 87,
- x: 88,
- y: 89,
- z: 90,
- v_a: 96,
- w_a: 97,
- x_a: 98,
- y_a: 99,
- z_a: 100,
- A_a: 101,
- B_a: 102,
- C_a: 103,
- D_a: 104,
- E_a: 105,
- "*": 106,
- "+": 107,
- "-": 109,
- numdel: 110,
- "/": 111,
- xRa: 112,
- BRa: 113,
- CRa: 114,
- DRa: 115,
- ERa: 116,
- FRa: 117,
- GRa: 118,
- HRa: 119,
- IRa: 120,
- yRa: 121,
- zRa: 122,
- ARa: 123,
- I_a: 144,
- j2a: 145,
- m2a: 186,
- ",": 186,
- sRa: 187,
- "\x3d": 187,
- ";": 188,
- uQa: 188,
- HQa: 189,
- ".": 190,
- l0a: 190,
- QRa: 191,
- UWa: 192,
- "[": 219,
- P_a: 219,
- "]": 221,
- qQa: 221,
- QPa: 220,
- quote: 222,
- h3: 32
- };
- f.kLa = 0;
- f.NS = 1;
- f.q5 = 2;
- f.lLa = 3;
- f.mLa = 4;
- f.Gla = 5;
- f.gAa = function(c) {
- 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] ? f.NS : 2 < c.length && (73 == c[0] && 73 == c[1] || 77 == c[0] && 77 == c[1] || 255 == c[0] && 216 == c[1]) ? f.q5 : f.Gla
- };
- f.aXa = function(c, d) {
- function e() {}
- e.prototype = d.prototype;
- c.MR = d.prototype;
- c.prototype = new e;
- c.prototype.constructor = c
- };
- f.RPa = function(c, d, e) {
- var g = arguments.callee.caller;
- if (g.MR) return ret = g.MR.constructor.apply(c, Array.prototype.slice.call(arguments, 1));
- for (var h = Array.prototype.slice.call(arguments, 2), k = !1, m = c.constructor; m; m = m.MR && m.MR.constructor)
- if (m.prototype[d] === g) k = !0;
- else if (k) return m.prototype[d].apply(c, h);
- if (c[d] === g) return c.constructor.prototype[d].apply(c, h);
- throw Error("cc.base called from a method of one name to a method of a different name");
- };
- f.pMa = function(c, d) {
- this.x = c || 0;
- this.y = d || 0
- };
- function r(c, d) {
- return void 0 == c ? {
- x: 0,
- y: 0
- } : void 0 == d ? {
- x: c.x,
- y: c.y
- } : {
- x: c,
- y: d
- }
- }
- f.I1 = function(c, d) {
- return c && d && c.x === d.x && c.y === d.y
- };
- f.BMa = function(c, d) {
- this.width = c || 0;
- this.height = d || 0
- };
- function t(c, d) {
- return void 0 === c ? {
- width: 0,
- height: 0
- } : void 0 === d ? {
- width: c.width,
- height: c.height
- } : {
- width: c,
- height: d
- }
- }
- f.X4a = function(c, d) {
- return c && d && c.width == d.width && c.height == d.height
- };
- f.Qy = function(c, d, e, g) {
- this.x = c || 0;
- this.y = d || 0;
- this.width = e || 0;
- this.height = g || 0
- };
- function x(c, d, e, g) {
- return void 0 === c ? {
- x: 0,
- y: 0,
- width: 0,
- height: 0
- } : void 0 === d ? {
- x: c.x,
- y: c.y,
- width: c.width,
- height: c.height
- } : {
- x: c,
- y: d,
- width: e,
- height: g
- }
- }
- f.Yfa = function(c, d) {
- return c && d && c.x === d.x && c.y === d.y && c.width === d.width && c.height === d.height
- };
- f.gG = function(c) {
- return c && 0 === c.x && 0 === c.y && 0 === c.width && 0 === c.height
- };
- f.K0a = function(c, d) {
- return c && d ? !(c.x >= d.x || c.y >= d.y || c.x + c.width <= d.x + d.width || c.y + c.height <= d.y + d.height) : !1
- };
- f.Vp = function(c) {
- return c.x + c.width
- };
- f.L0a = function(c) {
- return c.x + c.width / 2
- };
- f.fo = function(c) {
- return c.x
- };
- f.Wp = function(c) {
- return c.y + c.height
- };
- f.M0a = function(c) {
- return c.y + c.height / 2
- };
- f.ho = function(c) {
- return c.y
- };
- f.Bu = function(c, d) {
- return d.x >= f.fo(c) && d.x <= f.Vp(c) && d.y >= f.ho(c) && d.y <= f.Wp(c)
- };
- f.BFa = function(c, d) {
- var e = c.y + c.height,
- g = d.x + d.width,
- h = d.y + d.height;
- return !(c.x + c.width < d.x || g < c.x || e < d.y || h < c.y)
- };
- f.N0a = function(c, d) {
- 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)
- };
- f.zC = function(c, d) {
- var e = x(0, 0, 0, 0);
- e.x = Math.min(c.x, d.x);
- e.y = Math.min(c.y, d.y);
- e.width = Math.max(c.x + c.width, d.x + d.width) - e.x;
- e.height = Math.max(c.y + c.height, d.y + d.height) - e.y;
- return e
- };
- f.AFa = function(c, d) {
- var e = x(Math.max(f.fo(c), f.fo(d)), Math.max(f.ho(c), f.ho(d)), 0, 0);
- e.width = Math.min(f.Vp(c), f.Vp(d)) - f.fo(e);
- e.height = Math.min(f.Wp(c), f.Wp(d)) - f.ho(e);
- return e
- };
- f.pK = f.N.extend({
- maa: null,
- PW: null,
- ctor: function() {
- window.DOMParser ? (this.PW = !0, this.maa = new DOMParser) : this.PW = !1
- },
- parse: function(c) {
- return this.sX(c)
- },
- sX: function(c) {
- var d;
- this.PW ? d = this.maa.parseFromString(c, "text/xml") : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(c));
- return d
- }
- });
- f.jna = f.pK.extend({
- parse: function(c) {
- c = this.sX(c).documentElement;
- if ("plist" != c.tagName) throw "Not a plist file!";
- for (var d = null, e = 0, g = c.childNodes.length; e < g && (d = c.childNodes[e], 1 != d.nodeType); e++);
- return this.rX(d)
- },
- rX: function(c) {
- var d = null,
- e = c.tagName;
- if ("dict" == e) d = this.zta(c);
- else if ("array" == e) d = this.yta(c);
- else if ("string" == e)
- if (1 == c.childNodes.length) d = c.firstChild.nodeValue;
- else
- for (d = "", e = 0; e < c.childNodes.length; e++) d += c.childNodes[e].nodeValue;
- else "false" == e ? d = !1 : "true" == e ? d = !0 : "real" ==
- e ? d = parseFloat(c.firstChild.nodeValue) : "integer" == e && (d = parseInt(c.firstChild.nodeValue, 10));
- return d
- },
- yta: function(c) {
- for (var d = [], e = 0, g = c.childNodes.length; e < g; e++) {
- var h = c.childNodes[e];
- 1 == h.nodeType && d.push(this.rX(h))
- }
- return d
- },
- zta: function(c) {
- for (var d = {}, e = null, g = 0, h = c.childNodes.length; g < h; g++) {
- var k = c.childNodes[g];
- 1 == k.nodeType && ("key" == k.tagName ? e = k.firstChild.nodeValue : d[e] = this.rX(k))
- }
- return d
- }
- });
- f.wba = {
- load: function(c, d, e, g) {
- f.L.lQ(c, g)
- }
- };
- f.L.Xp(["txt", "xml", "vsh", "fsh", "atlas"], f.wba);
- f.Qsa = {
- load: function(c, d, e, g) {
- f.L.ifa(c, g)
- }
- };
- f.L.Xp(["json", "ExportJson"], f.Qsa);
- f.rsa = {
- load: function(c, d, e, g) {
- f.L.jj[d] = f.L.eI(c, function(c, e) {
- if (c) return g(c);
- f.nb.$d(d);
- g(null, e)
- })
- }
- };
- f.L.Xp("png jpg bmp jpeg gif ico".split(" "), f.rsa);
- f.iua = {
- load: function(c, d, e, g) {
- f.L.jj[d] = f.L.eI(e.src, function(c, e) {
- if (c) return g(c);
- f.nb.$d(d);
- g(null, e)
- })
- }
- };
- f.L.Xp(["serverImg"], f.iua);
- f.Eta = {
- load: function(c, d, e, g) {
- f.L.lQ(c, function(c, d) {
- if (c) return g(c);
- g(null, f.dFa.parse(d))
- })
- }
- };
- f.L.Xp(["plist"], f.Eta);
- f.vra = {
- Qoa: {
- ".eot": "embedded-opentype",
- ".ttf": "truetype",
- ".woff": "woff",
- ".svg": "svg"
- },
- V$: function(c, d, e) {
- var g = document,
- h = f.path,
- k = this.Qoa,
- m = f.fd("style");
- m.type = "text/css";
- g.body.appendChild(m);
- var n = "@font-face { font-family:" + c + "; src:";
- if (d instanceof Array)
- for (var p = 0, s = d.length; p < s; p++) e = h.zp(d[p]).toLowerCase(), n += "url('" + d[p] + "') format('" + k[e] + "')", n += p == s - 1 ? ";" : ",";
- else n += "url('" + d + "') format('" + k[e] + "');";
- m.textContent += n + "};";
- d = f.fd("div");
- e = d.style;
- e.fontFamily = c;
- d.innerHTML = ".";
- e.position =
- "absolute";
- e.left = "-100px";
- e.top = "-100px";
- g.body.appendChild(d)
- },
- load: function(c, d, e, g) {
- d = e.type;
- c = e.name;
- d = e.a5a;
- "string" == typeof e ? (d = f.path.zp(e), c = f.path.Dwa(e, d), this.V$(c, e, d)) : this.V$(c, d);
- g(null, !0)
- }
- };
- f.L.Xp(["font", "eot", "ttf", "woff", "svg"], f.vra);
- f.uqa = {
- load: function(c, d, e, g) {
- f.L.LDa(c, g)
- }
- };
- window.CocosEngine = f.JS = "Cocos2d-html5 v3.0 RC1";
- f.Ey = 0;
- f.DS = r(0, 0);
- f.Xka = 0.5;
- f.AKa = 1;
- f.LT = 1;
- f.Rma = 0;
- f.n7 = 0;
- f.TT = 0;
- f.GMa = 0;
- f.sMa = 1;
- f.rMa = "-hd";
- f.Hpa = 1;
- f.ys = 0;
- f.yMa = 0;
- f.jma = 0;
- f.ima = 0;
- f.YS = 1;
- f.NKa = f.JS + "-canvas";
- f.SJ = 1;
- f.Zm = 1;
- f.mc = function(c) {
- var d = this == f ? document : this;
- if (c = c instanceof HTMLElement ? c : d.querySelector(c)) c.find = c.find || f.mc, c.A0 = c.A0 || function(c) {
- return this.className.match(RegExp("(\\s|^)" + c + "(\\s|$)"))
- }, c.Qba = c.Qba || function(c) {
- this.A0(c) || (this.className && (this.className += " "), this.className += c);
- return this
- }, c.OFa = c.OFa || function(c) {
- this.A0(c) && (this.className = this.className.replace(c, ""));
- return this
- }, c.remove = c.remove || function() {
- this.parentNode && this.parentNode.removeChild(this);
- return this
- }, c.cx =
- c.cx || function(c) {
- c.appendChild(this);
- return this
- }, c.nFa = c.nFa || function(c) {
- c.childNodes[0] ? c.insertBefore(this, c.childNodes[0]) : c.appendChild(this);
- return this
- }, c.ny = c.ny || function() {
- this.style[f.mc.KIa] = f.mc.translate(this.position) + f.mc.rotate(this.rotation) + f.mc.scale(this.scale) + f.mc.ky(this.ky);
- return this
- }, c.position = c.position || {
- x: 0,
- y: 0
- }, c.rotation = c.rotation || 0, c.scale = c.scale || {
- x: 1,
- y: 1
- }, c.ky = c.ky || {
- x: 0,
- y: 0
- }, c.nJ = function(c, d) {
- this.position.x = c;
- this.position.y = d;
- this.ny()
- }, c.rotate = function(c) {
- this.rotation =
- c;
- this.ny();
- return this
- }, c.resize = function(c, d) {
- this.scale.x = c;
- this.scale.y = d;
- this.ny();
- return this
- }, c.Pha = function(c, d) {
- this.ky.x = c;
- this.ky.y = d;
- this.ny()
- };
- return c
- };
- switch (f.Ed.gx) {
- case f.Ed.jD:
- f.mc.yu = "Moz";
- f.mc.VB = !0;
- break;
- case f.Ed.bS:
- case f.Ed.eS:
- f.mc.yu = "webkit";
- f.mc.VB = !0;
- break;
- case f.Ed.dS:
- f.mc.yu = "O";
- f.mc.VB = !1;
- break;
- case f.Ed.cS:
- f.mc.yu = "ms";
- f.mc.VB = !1;
- break;
- default:
- f.mc.yu = "webkit", f.mc.VB = !0
- }
- f.mc.KIa = f.mc.yu + "Transform";
- f.mc.translate = f.mc.VB ? function(c) {
- return "translate3d(" + c.x + "px, " + c.y + "px, 0) "
- } : function(c) {
- return "translate(" + c.x + "px, " + c.y + "px) "
- };
- f.mc.rotate = f.mc.VB ? function(c) {
- return "rotateZ(" + c + "deg) "
- } : function(c) {
- return "rotate(" + c + "deg) "
- };
- f.mc.scale = function(c) {
- return "scale(" + c.x + ", " + c.y + ") "
- };
- f.mc.ky = function(c) {
- return "skewX(" + -c.x + "deg) skewY(" + c.y + "deg)"
- };
- f.bD = function(c) {
- return f.mc(document.createElement(c))
- };
- f.mc.NRa = function(c) {
- var d = 0,
- e = 0;
- do d += c.offsetLeft, e += c.offsetTop; while (c = c.offsetParent);
- return {
- x: d,
- y: e
- }
- };
- f.wo = -1;
- f.PI = Math.PI;
- f.gv = parseFloat("3.402823466e+38F");
- f.p5 = parseFloat("1.175494351e-38F");
- f.tna = f.PI / 180;
- f.W4 = 180 / f.PI;
- f.oU = 4294967295;
- f.ria = function(c, d, e) {
- if ("object" == typeof e && "undefined" != typeof e.x && "undefined" != typeof e.y) {
- var g = e[c];
- e[c] = e[d];
- e[d] = g
- } else f.log(f.l.ria)
- };
- f.g_a = function(c, d, e) {
- return c + (d - c) * e
- };
- f.jd = function() {
- return 16777215 * Math.random()
- };
- f.uFa = function() {
- return 2 * (Math.random() - 0.5)
- };
- f.U1 = Math.random;
- f.sg = function(c) {
- return c * f.tna
- };
- f.yC = function(c) {
- return c * f.W4
- };
- f.Tfa = function(c) {
- f.log(f.l.Tfa);
- return c * f.W4
- };
- f.mv = Number.MAX_VALUE - 1;
- f.Mc = f.Rma ? 1 : 770;
- f.Lc = 771;
- f.qC = function(c) {
- c.sd && (c.sd.Ff(), c.sd.zj())
- };
- f.nRa = function() {};
- f.QQa = function() {};
- f.el = function() {
- f.bl += 1
- };
- f.aK = 1.192092896E-7;
- f.Uc = f.YS ? function() {
- return f.Q.Vl
- } : function() {
- return 1
- };
- f.eFa = function(c) {
- var d = f.Uc();
- return r(c.x * d, c.y * d)
- };
- f.J1 = function(c) {
- var d = f.Uc();
- return r(c.x / d, c.y / d)
- };
- f.xX = function(c, d) {
- var e = f.Uc();
- d.x = c.x / e;
- d.y = c.y / e
- };
- f.dIa = function(c) {
- var d = f.Uc();
- return t(c.width * d, c.height * d)
- };
- f.eia = function(c) {
- var d = f.Uc();
- return t(c.width / d, c.height / d)
- };
- f.eba = function(c, d) {
- var e = f.Uc();
- d.width = c.width / e;
- d.height = c.height / e
- };
- f.cs = f.YS ? function(c) {
- var d = f.Uc();
- return x(c.x / d, c.y / d, c.width / d, c.height / d)
- } : function(c) {
- return c
- };
- f.FI = f.YS ? function(c) {
- var d = f.Uc();
- return x(c.x * d, c.y * d, c.width * d, c.height * d)
- } : function(c) {
- return c
- };
- f.ONE = 1;
- f.ZERO = 0;
- f.SRC_ALPHA = 770;
- f.SRC_ALPHA_SATURATE = 776;
- f.SRC_COLOR = 768;
- f.DST_ALPHA = 772;
- f.DST_COLOR = 774;
- f.ONE_MINUS_SRC_ALPHA = 771;
- f.ONE_MINUS_SRC_COLOR = 769;
- f.ONE_MINUS_DST_ALPHA = 773;
- f.ONE_MINUS_DST_COLOR = 775;
- f.ONE_MINUS_CONSTANT_ALPHA = 32772;
- f.ONE_MINUS_CONSTANT_COLOR = 32770;
- f.rB = function() {
- if (f.LQ == f.na) {
- var c = f.s.getError();
- c && f.log(CC.Ya.rB, c)
- }
- };
- f.RKa = 0;
- f.PKa = 1;
- f.SKa = 2;
- f.QKa = 3;
- f.OKa = 2;
- f.jNa = 0;
- f.Gh = 1;
- f.HK = 2;
- f.Wy = 4;
- f.tv = f.Gh | f.HK | f.Wy;
- f.oLa = 0;
- f.Oc = 0;
- f.Mi = 1;
- f.$g = 2;
- f.kNa = 3;
- f.rU = 0;
- f.qU = 1;
- f.yE = 2;
- f.vU = 3;
- f.uU = 4;
- f.pU = 5;
- f.sU = 6;
- f.tU = 7;
- f.eNa = 8;
- f.zo = "ShaderPositionTextureColor";
- f.tK = "ShaderPositionTextureColorAlphaTest";
- f.sK = "ShaderPositionColor";
- f.jE = "ShaderPositionTexture";
- f.uK = "ShaderPositionTexture_uColor";
- f.JT = "ShaderPositionTextureA8Color";
- f.KT = "ShaderPosition_uColor";
- f.c7 = "ShaderPositionLengthTextureColor";
- f.Bpa = "CC_PMatrix";
- f.zpa = "CC_MVMatrix";
- f.Apa = "CC_MVPMatrix";
- f.Fpa = "CC_Time";
- f.Epa = "CC_SinTime";
- f.ypa = "CC_CosTime";
- f.Cpa = "CC_Random01";
- f.Dpa = "CC_Texture0";
- f.g8 = "CC_alpha_value";
- f.fD = "a_color";
- f.Wu = "a_position";
- f.vy = "a_texCoord";
- f.Vla = 32;
- f.L4 = 3233828865;
- f.IK = 3233828866;
- f.uma = 8801;
- f.yna = 8802;
- f.Zka = 8803;
- f = f || {};
- f.U = f.U || {};
- f.U.zU = function() {
- f.color = function(c, e, g, h, k, m) {
- return void 0 === c ? new f.Aj(0, 0, 0, 255, k, m) : "string" === typeof c ? (c = f.pea(c), new f.Aj(c.r, c.g, c.b, c.a)) : "object" === typeof c ? new f.Aj(c.r, c.g, c.b, c.a, c.DO, c.offset) : new f.Aj(c, e, g, h, k, m)
- };
- f.Aj = function(c, e, g, h, k, m) {
- this.ag = k || new ArrayBuffer(f.Aj.BYTES_PER_ELEMENT);
- this.hb = m || 0;
- k = this.ag;
- m = this.hb;
- var n = Uint8Array.BYTES_PER_ELEMENT;
- this.PX = new Uint8Array(k, m, 1);
- this.lW = new Uint8Array(k, m + n, 1);
- this.XU = new Uint8Array(k, m + 2 * n, 1);
- this.JU = new Uint8Array(k, m +
- 3 * n, 1);
- this.PX[0] = c || 0;
- this.lW[0] = e || 0;
- this.XU[0] = g || 0;
- this.JU[0] = h || 255;
- void 0 === h && (this.Yw = !0)
- };
- f.Aj.BYTES_PER_ELEMENT = 4;
- var c = f.Aj.prototype;
- c.Zra = function() {
- return this.PX[0]
- };
- c.Aua = function(c) {
- this.PX[0] = 0 > c ? 0 : c
- };
- c.Jra = function() {
- return this.lW[0]
- };
- c.rua = function(c) {
- this.lW[0] = 0 > c ? 0 : c
- };
- c.Cra = function() {
- return this.XU[0]
- };
- c.kua = function(c) {
- this.XU[0] = 0 > c ? 0 : c
- };
- c.zra = function() {
- return this.JU[0]
- };
- c.jua = function(c) {
- this.JU[0] = 0 > c ? 0 : c
- };
- f.d(c, "r", c.Zra, c.Aua);
- f.d(c, "g", c.Jra, c.rua);
- f.d(c, "b", c.Cra,
- c.kua);
- f.d(c, "a", c.zra, c.jua);
- f.he = function(c, e, g, h) {
- this.ag = g || new ArrayBuffer(f.he.BYTES_PER_ELEMENT);
- this.hb = h || 0;
- this.Ww = new Float32Array(this.ag, this.hb, 1);
- this.Xw = new Float32Array(this.ag, this.hb + 4, 1);
- this.Ww[0] = c || 0;
- this.Xw[0] = e || 0
- };
- f.he.BYTES_PER_ELEMENT = 8;
- Object.defineProperties(f.he.prototype, {
- x: {
- get: function() {
- return this.Ww[0]
- },
- set: function(c) {
- this.Ww[0] = c
- },
- enumerable: !0
- },
- y: {
- get: function() {
- return this.Xw[0]
- },
- set: function(c) {
- this.Xw[0] = c
- },
- enumerable: !0
- }
- });
- f.Oe = function(c, e, g, h, k) {
- this.ag =
- h || new ArrayBuffer(f.Oe.BYTES_PER_ELEMENT);
- this.hb = k || 0;
- h = this.ag;
- k = this.hb;
- this.Ww = new Float32Array(h, k, 1);
- this.Ww[0] = c || 0;
- this.Xw = new Float32Array(h, k + Float32Array.BYTES_PER_ELEMENT, 1);
- this.Xw[0] = e || 0;
- this.pZ = new Float32Array(h, k + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
- this.pZ[0] = g || 0
- };
- f.Oe.BYTES_PER_ELEMENT = 12;
- Object.defineProperties(f.Oe.prototype, {
- x: {
- get: function() {
- return this.Ww[0]
- },
- set: function(c) {
- this.Ww[0] = c
- },
- enumerable: !0
- },
- y: {
- get: function() {
- return this.Xw[0]
- },
- set: function(c) {
- this.Xw[0] = c
- },
- enumerable: !0
- },
- z: {
- get: function() {
- return this.pZ[0]
- },
- set: function(c) {
- this.pZ[0] = c
- },
- enumerable: !0
- }
- });
- f.Cs = function(c, e, g, h) {
- this.ag = g || new ArrayBuffer(f.Cs.BYTES_PER_ELEMENT);
- this.hb = h || 0;
- this.VY = new Float32Array(this.ag, this.hb, 1);
- this.cZ = new Float32Array(this.ag, this.hb + 4, 1);
- this.VY[0] = c || 0;
- this.cZ[0] = e || 0
- };
- f.Cs.BYTES_PER_ELEMENT = 8;
- Object.defineProperties(f.Cs.prototype, {
- Da: {
- get: function() {
- return this.VY[0]
- },
- set: function(c) {
- this.VY[0] = c
- },
- enumerable: !0
- },
- ga: {
- get: function() {
- return this.cZ[0]
- },
- set: function(c) {
- this.cZ[0] =
- c
- },
- enumerable: !0
- }
- });
- f.ET = function(c, e, g, h, k, m) {
- this.ag = k || new ArrayBuffer(f.ET.BYTES_PER_ELEMENT);
- this.hb = m || 0;
- k = this.ag;
- m = f.he.BYTES_PER_ELEMENT;
- this.$A = c ? new f.he(c.x, c.y, k, 0) : new f.he(0, 0, k, 0);
- this.eB = e ? new f.he(e.x, e.y, k, m) : new f.he(0, 0, k, m);
- this.iz = g ? new f.he(g.x, g.y, k, 2 * m) : new f.he(0, 0, k, 2 * m);
- this.mz = h ? new f.he(h.x, h.y, k, 3 * m) : new f.he(0, 0, k, 3 * m)
- };
- f.ET.BYTES_PER_ELEMENT = 32;
- f.oK = function(c, e, g, h) {
- this.T = c || new f.Oe(0, 0, 0);
- this.aa = e || new f.Oe(0, 0, 0);
- this.Z = g || new f.Oe(0, 0, 0);
- this.W = h || new f.Oe(0,
- 0, 0)
- };
- Object.defineProperties(f.ET.prototype, {
- Z: {
- get: function() {
- return this.$A
- },
- set: function(c) {
- this.$A.x = c.x;
- this.$A.y = c.y
- },
- enumerable: !0
- },
- W: {
- get: function() {
- return this.eB
- },
- set: function(c) {
- this.eB.x = c.x;
- this.eB.y = c.y
- },
- enumerable: !0
- },
- T: {
- get: function() {
- return this.iz
- },
- set: function(c) {
- this.iz.x = c.x;
- this.iz.y = c.y
- },
- enumerable: !0
- },
- aa: {
- get: function() {
- return this.mz
- },
- set: function(c) {
- this.mz.x = c.x;
- this.mz.y = c.y
- },
- enumerable: !0
- }
- });
- f.Pl = function(c, e, g, h, k) {
- this.ag = h || new ArrayBuffer(f.Pl.BYTES_PER_ELEMENT);
- this.hb = k || 0;
- h = this.ag;
- k = this.hb;
- var m = f.Oe.BYTES_PER_ELEMENT;
- this.ec = c ? new f.Oe(c.x, c.y, c.z, h, k) : new f.Oe(0, 0, 0, h, k);
- this.YE = e ? f.color(e.r, e.g, e.b, e.a, h, k + m) : f.color(0, 0, 0, 0, h, k + m);
- this.Vk = g ? new f.Cs(g.Da, g.ga, h, k + m + f.Aj.BYTES_PER_ELEMENT) : new f.Cs(0, 0, h, k + m + f.Aj.BYTES_PER_ELEMENT)
- };
- f.Pl.BYTES_PER_ELEMENT = 24;
- Object.defineProperties(f.Pl.prototype, {
- k: {
- get: function() {
- return this.ec
- },
- set: function(c) {
- var e = this.ec;
- e.x = c.x;
- e.y = c.y;
- e.z = c.z
- },
- enumerable: !0
- },
- D: {
- get: function() {
- return this.YE
- },
- set: function(c) {
- var e =
- this.YE;
- e.r = c.r;
- e.g = c.g;
- e.b = c.b;
- e.a = c.a
- },
- enumerable: !0
- },
- t: {
- get: function() {
- return this.Vk
- },
- set: function(c) {
- this.Vk.Da = c.Da;
- this.Vk.ga = c.ga
- },
- enumerable: !0
- }
- });
- f.Yc = function(c, e, g, h, k, m) {
- this.ag = k || new ArrayBuffer(f.Yc.BYTES_PER_ELEMENT);
- this.hb = m || 0;
- k = this.ag;
- m = this.hb;
- var n = f.Pl.BYTES_PER_ELEMENT;
- this.$A = c ? new f.Pl(c.k, c.D, c.t, k, m) : new f.Pl(null, null, null, k, m);
- this.iz = e ? new f.Pl(e.k, e.D, e.t, k, m + n) : new f.Pl(null, null, null, k, m + n);
- this.eB = g ? new f.Pl(g.k, g.D, g.t, k, m + 2 * n) : new f.Pl(null, null, null, k, m + 2 * n);
- this.mz = h ? new f.Pl(h.k, h.D, h.t, k, m + 3 * n) : new f.Pl(null, null, null, k, m + 3 * n)
- };
- f.Yc.BYTES_PER_ELEMENT = 96;
- Object.defineProperties(f.Yc.prototype, {
- Z: {
- get: function() {
- return this.$A
- },
- set: function(c) {
- var e = this.$A;
- e.k = c.k;
- e.D = c.D;
- e.t = c.t
- },
- enumerable: !0
- },
- T: {
- get: function() {
- return this.iz
- },
- set: function(c) {
- var e = this.iz;
- e.k = c.k;
- e.D = c.D;
- e.t = c.t
- },
- enumerable: !0
- },
- W: {
- get: function() {
- return this.eB
- },
- set: function(c) {
- var e = this.eB;
- e.k = c.k;
- e.D = c.D;
- e.t = c.t
- },
- enumerable: !0
- },
- aa: {
- get: function() {
- return this.mz
- },
- set: function(c) {
- var e =
- this.mz;
- e.k = c.k;
- e.D = c.D;
- e.t = c.t
- },
- enumerable: !0
- },
- DO: {
- get: function() {
- return this.ag
- },
- enumerable: !0
- }
- });
- f.i8 = function() {
- return new f.Yc
- };
- f.h8 = function(c) {
- if (!c) return f.i8();
- var e = c.Z,
- g = c.T,
- h = c.W;
- c = c.aa;
- return {
- Z: {
- k: {
- x: e.k.x,
- y: e.k.y,
- z: e.k.z
- },
- D: {
- r: e.D.r,
- g: e.D.g,
- b: e.D.b,
- a: e.D.a
- },
- t: {
- Da: e.t.Da,
- ga: e.t.ga
- }
- },
- T: {
- k: {
- x: g.k.x,
- y: g.k.y,
- z: g.k.z
- },
- D: {
- r: g.D.r,
- g: g.D.g,
- b: g.D.b,
- a: g.D.a
- },
- t: {
- Da: g.t.Da,
- ga: g.t.ga
- }
- },
- W: {
- k: {
- x: h.k.x,
- y: h.k.y,
- z: h.k.z
- },
- D: {
- r: h.D.r,
- g: h.D.g,
- b: h.D.b,
- a: h.D.a
- },
- t: {
- Da: h.t.Da,
- ga: h.t.ga
- }
- },
- aa: {
- k: {
- x: c.k.x,
- y: c.k.y,
- z: c.k.z
- },
- D: {
- r: c.D.r,
- g: c.D.g,
- b: c.D.b,
- a: c.D.a
- },
- t: {
- Da: c.t.Da,
- ga: c.t.ga
- }
- }
- }
- };
- f.hNa = function(c) {
- if (!c) return [];
- for (var e = [], g = 0; g < c.length; g++) e.push(f.h8(c[g]));
- return e
- };
- f.Zg = function(c, e, g, h, k) {
- this.ag = h || new ArrayBuffer(f.Zg.BYTES_PER_ELEMENT);
- this.hb = k || 0;
- h = this.ag;
- k = this.hb;
- var m = f.he.BYTES_PER_ELEMENT;
- this.ec = c ? new f.he(c.x, c.y, h, k) : new f.he(0, 0, h, k);
- this.YE = e ? f.color(e.r, e.g, e.b, e.a, h, k + m) : f.color(0, 0, 0, 0, h, k + m);
- this.Vk = g ? new f.Cs(g.Da, g.ga, h, k + m + f.Aj.BYTES_PER_ELEMENT) : new f.Cs(0, 0, h, k + m + f.Aj.BYTES_PER_ELEMENT)
- };
- f.Zg.BYTES_PER_ELEMENT = 20;
- Object.defineProperties(f.Zg.prototype, {
- k: {
- get: function() {
- return this.ec
- },
- set: function(c) {
- this.ec.x = c.x;
- this.ec.y = c.y
- },
- enumerable: !0
- },
- D: {
- get: function() {
- return this.YE
- },
- set: function(c) {
- var e = this.YE;
- e.r = c.r;
- e.g = c.g;
- e.b = c.b;
- e.a = c.a
- },
- enumerable: !0
- },
- t: {
- get: function() {
- return this.Vk
- },
- set: function(c) {
- this.Vk.Da = c.Da;
- this.Vk.ga = c.ga
- },
- enumerable: !0
- }
- });
- f.ge = function(c, e, g, h, k) {
- this.ag = h || new ArrayBuffer(f.ge.BYTES_PER_ELEMENT);
- this.hb = k || 0;
- h = this.ag;
- k = this.hb;
- var m = f.Zg.BYTES_PER_ELEMENT;
- this.t8 = c ? new f.Zg(c.k, c.D, c.t, h, k) : new f.Zg(null, null, null, h, k);
- this.G8 = e ? new f.Zg(e.k, e.D, e.t, h, k + m) : new f.Zg(null, null, null, h, k + m);
- this.Q8 = g ? new f.Zg(g.k, g.D, g.t, h, k + 2 * m) : new f.Zg(null, null, null, h, k + 2 * m)
- };
- f.ge.BYTES_PER_ELEMENT = 60;
- Object.defineProperties(f.ge.prototype, {
- a: {
- get: function() {
- return this.t8
- },
- set: function(c) {
- var e = this.t8;
- e.k = c.k;
- e.D = c.D;
- e.t = c.t
- },
- enumerable: !0
- },
- b: {
- get: function() {
- return this.G8
- },
- set: function(c) {
- var e = this.G8;
- e.k = c.k;
- e.D = c.D;
- e.t = c.t
- },
- enumerable: !0
- },
- G: {
- get: function() {
- return this.Q8
- },
- set: function(c) {
- var e = this.Q8;
- e.k = c.k;
- e.D = c.D;
- e.t = c.t
- },
- enumerable: !0
- }
- })
- };
- f.U.wT = function() {
- var c = f.color;
- c.ksa = function() {
- return c(255, 255, 255)
- };
- c.osa = function() {
- return c(255, 255, 0)
- };
- c.Era = function() {
- return c(0, 0, 255)
- };
- c.Lra = function() {
- return c(0, 255, 0)
- };
- c.$ra = function() {
- return c(255, 0, 0)
- };
- c.Tra = function() {
- return c(255, 0, 255)
- };
- c.Dra = function() {
- return c(0, 0, 0)
- };
- c.Yra = function() {
- return c(255, 127, 0)
- };
- c.Kra = function() {
- return c(166, 166, 166)
- };
- f.d(c, "WHITE", c.ksa);
- f.d(c, "YELLOW", c.osa);
- f.d(c, "BLUE", c.Era);
- f.d(c, "GREEN", c.Lra);
- f.d(c, "RED", c.$ra);
- f.d(c, "MAGENTA", c.Tra);
- f.d(c, "BLACK",
- c.Dra);
- f.d(c, "ORANGE", c.Yra);
- f.d(c, "GRAY", c.Kra)
- };
- f.Aj = function(c, d, e, g) {
- this.r = c || 0;
- this.g = d || 0;
- this.b = e || 0;
- this.a = g || 255
- };
- f.color = function(c, d, e, g) {
- return void 0 === c ? {
- r: 0,
- g: 0,
- b: 0,
- a: 255
- } : "string" === typeof c ? f.pea(c) : "object" === typeof c ? {
- r: c.r,
- g: c.g,
- b: c.b,
- a: c.a || 255
- } : {
- r: c,
- g: d,
- b: e,
- a: g || 255
- }
- };
- f.tQa = function(c, d) {
- return c.r === d.r && c.g === d.g && c.b === d.b
- };
- f.Xia = function() {
- this.timestamp = this.z = this.y = this.x = 0
- };
- f.he = function(c, d) {
- this.x = c || 0;
- this.y = d || 0
- };
- f.Oe = function(c, d, e) {
- this.x = c || 0;
- this.y = d || 0;
- this.z = e || 0
- };
- f.Cs = function(c, d) {
- this.Da = c || 0;
- this.ga = d || 0
- };
- f.Um = function(c, d) {
- this.src = c;
- this.ha = d
- };
- f.VPa = function() {
- return new f.Um(f.ONE, f.ZERO)
- };
- f.pea = function(c) {
- c = c.replace(/^#?/, "0x");
- c = parseInt(c);
- return f.color(c >> 16, (c >> 8) % 256, c % 256)
- };
- f.xp = function(c) {
- var d = c.r.toString(16),
- e = c.g.toString(16),
- g = c.b.toString(16);
- return "#" + (16 > c.r ? "0" + d : d) + (16 > c.g ? "0" + e : e) + (16 > c.b ? "0" + g : g)
- };
- f.wK = 0;
- f.Bo = 1;
- f.q7 = 2;
- f.zE = 0;
- f.wU = 1;
- f.j8 = 2;
- f.uv = f.N.extend({
- kA: null,
- NG: null,
- HU: 0,
- ctor: function() {
- this.kA = {};
- this.NG = {};
- this.HU = 2 << (0 | 10 * Math.random())
- },
- Wpa: function() {
- this.HU++;
- return "key_" + this.HU
- },
- ul: function(c, d) {
- if (null != d) {
- var e = this.Wpa();
- this.kA[e] = d;
- this.NG[e] = c
- }
- },
- Jm: function(c) {
- if (null == c) return null;
- var d = this.kA,
- e;
- for (e in d)
- if (d[e] === c) return this.NG[e];
- return null
- },
- R5a: function(c) {
- return this.Jm(c)
- },
- Z1: function(c) {
- if (null != c) {
- var d = this.kA,
- e;
- for (e in d)
- if (d[e] === c) {
- delete this.NG[e];
- delete d[e];
- break
- }
- }
- },
- q1a: function(c) {
- if (null !=
- c)
- for (var d = 0; d < c.length; d++) this.Z1(c[d])
- },
- jB: function() {
- var c = [],
- d = this.kA,
- e;
- for (e in d) c.push(d[e]);
- return c
- },
- $0a: function() {
- this.kA = {};
- this.NG = {}
- },
- count: function() {
- return this.jB().length
- }
- });
- f.x5 = function() {
- this.fontName = "Arial";
- this.fontSize = 12;
- this.textAlign = f.Bo;
- this.verticalAlign = f.zE;
- this.fillStyle = f.color(255, 255, 255, 255);
- this.boundingHeight = this.boundingWidth = 0;
- this.m3 = !1;
- this.strokeStyle = f.color(255, 255, 255, 255);
- this.lineWidth = 1;
- this.cia = !1;
- this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
- this.shadowOpacity = 1
- };
- f.K === f.na && (f.assert("function" === typeof f.U.zU, f.l.Hf, "CCTypesWebGL.js"), f.U.zU(), delete f.U.zU);
- f.assert("function" === typeof f.U.wT, f.l.Hf, "CCTypesPropertyDefine.js");
- f.U.wT();
- delete f.U.wT;
- f.aNa = [];
- f.bNa = {};
- f.HS = f.N.extend({
- Pq: null,
- mi: null,
- Ez: null,
- Bt: null,
- ph: null,
- up: null,
- WX: !1,
- VU: !0,
- Qq: 1,
- kZ: "",
- TX: null,
- ka: 1,
- haa: 1,
- ra: 1,
- iaa: 1,
- aA: 0,
- dX: 5,
- An: null,
- Maa: null,
- Qaa: null,
- Paa: null,
- Naa: null,
- Oaa: null,
- GF: !1,
- BNa: !1,
- ePa: null,
- w$: null,
- x$: null,
- VOa: !1,
- yV: null,
- kt: null,
- iW: 1,
- NK: !1,
- E$: !0,
- ctor: function() {
- var c = document,
- d = f.ts,
- e = f.Fl;
- this.kt = f.container.parentNode === c.body ? c.documentElement : f.container.parentNode;
- this.mi = t(0, 0);
- this.HW();
- var c = f.Sb.width,
- g = f.Sb.height;
- this.Ez = t(c, g);
- this.Bt = t(c, g);
- this.ph = x(0, 0, c, g);
- this.up = x(0,
- 0, c, g);
- this.yV = {
- left: 0,
- top: 0
- };
- this.kZ = "Cocos2dHTML5";
- c = f.Ed;
- this.Rya(c.y1 == c.l6 || c.y1 == c.m6);
- f.qy && f.qy.j(this.up);
- this.Maa = new f.Dj(d.TJ, e.KS);
- this.Qaa = new f.Dj(d.hna, e.SHOW_ALL);
- this.Paa = new f.Dj(d.TJ, e.lT);
- this.Naa = new f.Dj(d.TJ, e.LS);
- this.Oaa = new f.Dj(d.TJ, e.MS);
- this.w$ = f.Sb;
- this.x$ = f.s
- },
- UX: function() {
- var c = this.Bt.width,
- d = this.Bt.height;
- this.TX && (this.HW(), this.TX.call());
- 0 < c && this.u2(c, d, this.An)
- },
- aGa: function(c) {
- c ? this.NK || (this.NK = !0, c = this.UX.bind(this), f.ub(window, "resize", c, !1)) : this.NK &&
- (this.NK = !0, c = this.UX.bind(this), window.removeEventListener("resize", c, !1))
- },
- d4a: function(c) {
- if ("function" == typeof c || null == c) this.TX = c
- },
- HW: function() {
- var c = this.mi;
- c.width = this.kt.clientWidth;
- c.height = this.kt.clientHeight
- },
- sNa: function() {
- var c = this.Bt.width,
- d = this.Bt.height;
- 0 < c && this.u2(c, d, this.An)
- },
- Uua: function() {
- if (this.E$) {
- var c = {
- "user-scalable": "no",
- "maximum-scale": "1.0",
- "initial-scale": "1.0"
- },
- d = document.getElementsByName("viewport"),
- e;
- 0 == d.length ? (d = f.fd("meta"), d.name = "viewport", d.content =
- "", document.head.appendChild(d)) : d = d[0];
- if (f.Ed.Or && f.Ed.gx == f.Ed.jD) d.content = "initial-scale:1";
- else {
- e = d.content;
- for (var g in c) RegExp(g).test(e) || (e += ("" == e ? "" : ",") + g + "\x3d" + c[g]);
- d.content = e
- }
- }
- },
- Waa: function() {
- var c = f.Uc();
- this.ra = this.ka = c
- },
- Iaa: function() {
- this.ka = this.haa;
- this.ra = this.iaa
- },
- tNa: function() {},
- ICa: function() {
- this.GF = !0
- },
- HPa: function(c) {
- this.E$ = c
- },
- Rya: function(c) {
- this.WX = c ? !0 : !1
- },
- TXa: function() {
- return this.WX
- },
- mRa: function(c) {
- this.VU = c ? !0 : !1
- },
- pXa: function() {
- return this.VU
- },
- end: function() {},
- OXa: function() {
- return null != this.w$ && null != this.x$
- },
- m3a: function(c) {
- this.iW = c;
- f.Q.ey(f.Q.mp)
- },
- j5a: function() {},
- r3a: function() {},
- Q2a: function(c, d) {
- this.yV = {
- left: c,
- top: d
- }
- },
- $Sa: function() {
- return this.yV
- },
- Dda: function() {
- return t(this.mi.width, this.mi.height)
- },
- l3a: function(c, d) {
- this.mi.width = c;
- this.mi.height = d;
- this.kt.style.width = c + "px";
- this.kt.style.height = d + "px";
- this.UX();
- f.Q.ey(f.Q.mp)
- },
- fQa: function() {},
- JH: function() {
- return t(this.up.width, this.up.height)
- },
- v0: function() {
- return r(this.up.x, this.up.y)
- },
- ZPa: function() {
- return !0
- },
- CVa: function() {
- return this.An
- },
- DHa: function(c) {
- if (c instanceof f.Dj) this.An = c;
- else {
- var d = f.Dj;
- c === d.KS && (this.An = this.Maa);
- c === d.SHOW_ALL && (this.An = this.Qaa);
- c === d.lT && (this.An = this.Paa);
- c === d.LS && (this.An = this.Naa);
- c === d.MS && (this.An = this.Oaa)
- }
- },
- u2: function(c, d, e) {
- if (isNaN(c) || 0 == c || isNaN(d) || 0 == d) f.log(f.l.kla);
- else {
- this.DHa(e);
- var g = this.An;
- if (g) {
- g.Qx(this);
- var h = this.mi.width,
- k = this.mi.height;
- f.Ed.Or && this.Uua(this.mi.width, this.mi.height);
- this.HW();
- if (e != this.An || c !=
- this.Bt.width || d != this.Bt.height || h != this.mi.width || k != this.mi.height) this.Ez = t(c, d), this.Bt = t(c, d), c = g.apply(this, this.Ez), c.scale && 2 == c.scale.length && (this.ka = c.scale[0], this.ra = c.scale[1]), c.viewport && (c = this.ph = c.viewport, d = this.up, d.width = f.Sb.width / this.ka, d.height = f.Sb.height / this.ra, d.x = -c.x / this.ka, d.y = -c.y / this.ra), c = f.Q, f.gq.width = c.Y.width = this.up.width, f.gq.height = c.Y.height = this.up.height, g.Px(this), f.K == f.na && (c.Az(), c.aha()), this.haa = this.ka, this.iaa = this.ra, f.Rd && f.Rd.aua(), f.qy &&
- f.qy.j(this.up)
- } else f.log(f.l.lla)
- }
- },
- tH: function() {
- return t(this.Ez.width, this.Ez.height)
- },
- ZHa: function(c, d, e, g) {
- var h = this.iW,
- k = this.ka,
- m = this.ra;
- f.s.viewport(c * k * h + this.ph.x * h, d * m * h + this.ph.y * h, e * k * h, g * m * h)
- },
- vR: function(c, d, e, g) {
- var h = this.iW,
- k = this.ka,
- m = this.ra;
- f.s.scissor(c * k * h + this.ph.x * h, d * m * h + this.ph.y * h, e * k * h, g * m * h)
- },
- dDa: function() {
- var c = f.s;
- return c.isEnabled(c.SCISSOR_TEST)
- },
- gBa: function() {
- var c = f.s,
- d = this.ka,
- e = this.ra,
- c = c.getParameter(c.SCISSOR_BOX);
- return x((c[0] - this.ph.x) / d, (c[1] - this.ph.y) /
- e, c[2] / d, c[3] / e)
- },
- S4a: function(c) {
- null != c && 0 < c.length && (this.kZ = c)
- },
- JWa: function() {
- return this.kZ
- },
- KWa: function() {
- return this.ph
- },
- sP: function() {
- return this.ka
- },
- BH: function() {
- return this.ra
- },
- uTa: function() {
- return this.Qq
- },
- m_: function(c, d, e) {
- return {
- x: this.Qq * (c - e.left),
- y: this.Qq * (e.top + e.height - d)
- }
- },
- Tqa: function(c, d) {
- var e = this.ph;
- c.x = (this.Qq * (c.x - d.left) - e.x) / this.ka;
- c.y = (this.Qq * (d.top + d.height - c.y) - e.y) / this.ra
- },
- wL: function(c) {
- for (var d = this.ph, e = this.ka, g = this.ra, h, k, m, n = 0; n < c.length; n++) h = c[n],
- k = h.kh, m = h.kp, h.oY((k.x - d.x) / e, (k.y - d.y) / g), h.NA((m.x - d.x) / e, (m.y - d.y) / g)
- }
- });
- f.HS.rW = function() {
- this.dA || (this.dA = this.dA || new f.HS, this.dA.ICa());
- return this.dA
- };
- f.ts = f.N.extend({
- Qx: function() {},
- apply: function() {},
- Px: function() {},
- sY: function(c, d, e) {
- var g = c.kt;
- f.view.VU && f.Ed.Or && g == document.documentElement && f.screen.xwa(g);
- var g = f.Sb,
- h = f.container;
- h.style.width = g.style.width = d + "px";
- h.style.height = g.style.height = e + "px";
- h = c.Qq = 1;
- c.WX && (h = c.Qq = window.devicePixelRatio || 1);
- g.width = d * h;
- g.height = e * h;
- c = document.body;
- var k;
- c && (k = c.style) && (k.paddingTop = k.paddingTop || "0px", k.paddingRight = k.paddingRight || "0px", k.paddingBottom = k.paddingBottom || "0px", k.paddingLeft = k.paddingLeft ||
- "0px", k.borderTop = k.borderTop || "0px", k.borderRight = k.borderRight || "0px", k.borderBottom = k.borderBottom || "0px", k.borderLeft = k.borderLeft || "0px", k.marginTop = k.marginTop || "0px", k.marginRight = k.marginRight || "0px", k.marginBottom = k.marginBottom || "0px", k.marginLeft = k.marginLeft || "0px")
- },
- Z9: function() {
- document.body.insertBefore(f.container, document.body.firstChild);
- var c = document.body.style;
- c.width = window.innerWidth + "px";
- c.height = window.innerHeight + "px";
- c.overflow = "hidden";
- c = f.container.style;
- c.position = "fixed";
- c.left = c.top = "0px";
- document.body.scrollTop = 0
- }
- });
- f.Fl = f.N.extend({
- VX: {
- scale: [1, 1],
- viewport: null
- },
- OE: function(c, d, e, g, h, k) {
- 2 > Math.abs(c - e) && (e = c);
- 2 > Math.abs(d - g) && (g = d);
- c = x(Math.round((c - e) / 2), Math.round((d - g) / 2), e, g);
- f.K == f.fb && f.s.translate(c.x, c.y + g);
- this.VX.scale = [h, k];
- this.VX.viewport = c;
- return this.VX
- },
- Qx: function() {},
- apply: function() {
- return {
- scale: [1, 1]
- }
- },
- Px: function() {}
- });
- (function() {
- var c = f.ts.extend({
- apply: function(c) {
- this.sY(c, c.mi.width, c.mi.height)
- }
- }),
- d = f.ts.extend({
- apply: function(c, d) {
- var e = c.mi.width,
- g = c.mi.height,
- h = f.container.style,
- u = d.width,
- v = d.height,
- z = e / u,
- A = g / v,
- B, C;
- z < A ? (B = e, C = v * z) : (B = u * A, C = g);
- u = Math.round((e - B) / 2);
- C = Math.round((g - C) / 2);
- this.sY(c, e - 2 * u, g - 2 * C);
- h.marginLeft = u + "px";
- h.marginRight = u + "px";
- h.marginTop = C + "px";
- h.marginBottom = C + "px"
- }
- });
- c.extend({
- Qx: function(c) {
- this._super(c);
- c.kt = document.documentElement
- },
- apply: function(c) {
- this._super(c);
- this.Z9()
- }
- });
- d.extend({
- Qx: function(c) {
- this._super(c);
- c.kt = document.documentElement
- },
- apply: function(c, d) {
- this._super(c, d);
- this.Z9()
- }
- });
- var e = f.ts.extend({
- apply: function(c) {
- this.sY(c, f.Sb.width, f.Sb.height)
- }
- });
- f.ts.TJ = new c;
- f.ts.hna = new d;
- f.ts.jMa = new e;
- var c = f.Fl.extend({
- apply: function(c, d) {
- var e = f.Sb.width,
- g = f.Sb.height;
- return this.OE(e, g, e, g, e / d.width, g / d.height)
- }
- }),
- d = f.Fl.extend({
- apply: function(c, d) {
- var e = f.Sb.width,
- g = f.Sb.height,
- h = d.width,
- u = d.height,
- v = e / h,
- z = g / u,
- A = 0,
- B, C;
- v < z ? (A = v, B = e, C = u * A) : (A = z, B = h * A, C = g);
- return this.OE(e,
- g, B, C, A, A)
- }
- }),
- e = f.Fl.extend({
- apply: function(c, d) {
- var e = f.Sb.width,
- g = f.Sb.height,
- h = d.width,
- u = d.height,
- v = e / h,
- z = g / u,
- A, B, C;
- v < z ? (A = z, B = h * A, C = g) : (A = v, B = e, C = u * A);
- return this.OE(e, g, B, C, A, A)
- }
- }),
- g = f.Fl.extend({
- apply: function(c, d) {
- var e = f.Sb.width,
- g = f.Sb.height,
- h = g / d.height;
- return this.OE(e, g, e, g, h, h)
- },
- Px: function(c) {
- f.Q.Y = c.JH()
- }
- }),
- h = f.Fl.extend({
- apply: function(c, d) {
- var e = f.Sb.width,
- g = f.Sb.height,
- h = e / d.width;
- return this.OE(e, g, e, g, h, h)
- },
- Px: function(c) {
- f.Q.Y = c.JH()
- }
- });
- f.Fl.KS = new c;
- f.Fl.SHOW_ALL = new d;
- f.Fl.lT =
- new e;
- f.Fl.LS = new g;
- f.Fl.MS = new h
- })();
- f.Dj = f.N.extend({
- tL: null,
- uL: null,
- ctor: function(c, d) {
- this.IGa(c);
- this.KGa(d)
- },
- Qx: function(c) {
- this.tL.Qx(c);
- this.uL.Qx(c)
- },
- apply: function(c, d) {
- this.tL.apply(c, d);
- return this.uL.apply(c, d)
- },
- Px: function(c) {
- this.tL.Px(c);
- this.uL.Px(c)
- },
- IGa: function(c) {
- c instanceof f.ts && (this.tL = c)
- },
- KGa: function(c) {
- c instanceof f.Fl && (this.uL = c)
- }
- });
- f.Dj.KS = 0;
- f.Dj.lT = 1;
- f.Dj.SHOW_ALL = 2;
- f.Dj.LS = 3;
- f.Dj.MS = 4;
- f.Dj.Gpa = 5;
- f.screen = {
- TN: !1,
- DX: null,
- SY: "",
- jt: null,
- sra: [
- ["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"
- ]
- ],
- j: function() {
- this.jt = {};
- var c, d, e = this.sra,
- g;
- c = 0;
- for (l = e.length; c < l; c++)
- if ((d = e[c]) && d[1] in document) {
- c = 0;
- for (g = d.length; c < g; c++) this.jt[e[0][c]] = d[c];
- break
- }
- this.TN = void 0 != this.jt.requestFullscreen;
- this.SY = "ontouchstart" in window ? "touchstart" : "mousedown"
- },
- fullScreen: function() {
- return this.TN && document[this.jt.fullscreenEnabled]
- },
- rga: function(c, d) {
- if (this.TN) {
- c = c || document.documentElement;
- c[this.jt.requestFullscreen]();
- if (d) {
- var e = this.jt.SRa;
- this.DX && document.removeEventListener(e, this.DX);
- this.DX = d;
- f.ub(document, e, d, !1)
- }
- return c[this.jt.requestFullscreen]()
- }
- },
- uRa: function() {
- return this.TN ? document[this.jt.exitFullscreen]() : !0
- },
- xwa: function(c, d) {
- function e() {
- h.rga(c, d);
- g.removeEventListener(h.SY, e)
- }
- c = c || document.body;
- var g = f.Sb || c,
- h = this;
- this.rga(c, d);
- f.ub(g, this.SY, e)
- }
- };
- f.screen.j();
- f.qy = {
- wia: r(0, 0),
- xia: r(0, 0),
- top: r(0, 0),
- KZ: r(0, 0),
- kca: r(0, 0),
- bottom: r(0, 0),
- KO: r(0, 0),
- left: r(0, 0),
- right: r(0, 0),
- width: 0,
- height: 0,
- j: function(c) {
- var d = this.width = c.width,
- e = this.height = c.height,
- g = c.x;
- c = c.y;
- var h = c + e,
- k = g + d;
- this.wia.x = g;
- this.wia.y = h;
- this.xia.x = k;
- this.xia.y = h;
- this.top.x = g + d / 2;
- this.top.y = h;
- this.KZ.x = g;
- this.KZ.y = c;
- this.kca.x = k;
- this.kca.y = c;
- this.bottom.x = g + d / 2;
- this.bottom.y = c;
- this.KO.x = g + d / 2;
- this.KO.y = c + e / 2;
- this.left.x = g;
- this.left.y = c + e / 2;
- this.right.x = k;
- this.right.y = c + e / 2
- }
- };
- f.vpa = -90;
- f.wpa = 90;
- f.xpa = 180;
- f.dNa = 0;
- f.Gea = {
- pA: !1,
- L$: !1,
- qaa: r(0, 0),
- Kta: r(0, 0),
- raa: [],
- EX: 0,
- Of: [],
- TY: {},
- aA: 0,
- dX: 5,
- PK: !1,
- QK: 1 / 30,
- v8: 1,
- vv: 0,
- KU: null,
- OK: null,
- isa: function() {
- for (var c = this.aA, d = 0; d < this.dX; d++) {
- if (!(c & 1)) return this.aA |= 1 << d, d;
- c >>= 1
- }
- return -1
- },
- $ta: function(c) {
- 0 > c || c >= this.dX || (c = ~(1 << c), this.aA &= c)
- },
- mt: null,
- y0: function(c) {
- for (var d, e, g, h = [], k = this.TY, m = 0, n = c.length; m < n; m++) d = c[m], g = d.ni, e = k[g], null == e && (e = this.isa(), -1 == e ? f.log(f.l.JCa, e) : (d = this.Of[e] = d, k[g] = e, h.push(d)));
- 0 < h.length && (this.mt.wL(h), c = new f.Gl(h), c.ft = f.Gl.Dy.WR,
- f.Qa.dispatchEvent(c))
- },
- z0: function(c) {
- for (var d, e, g = [], h = this.Of, k = 0, m = c.length; k < m; k++) d = c[k], e = d.ni, e = this.TY[e], null != e && h[e] && (h[e].oY(d.kh), h[e].NA(d.kp), g.push(h[e]));
- 0 < g.length && (this.mt.wL(g), c = new f.Gl(g), c.ft = f.Gl.Dy.fT, f.Qa.dispatchEvent(c))
- },
- zP: function(c) {
- c = this.Tda(c);
- 0 < c.length && (this.mt.wL(c), c = new f.Gl(c), c.ft = f.Gl.Dy.IS, f.Qa.dispatchEvent(c))
- },
- nea: function(c) {
- c = this.Tda(c);
- 0 < c.length && (this.mt.wL(c), c = new f.Gl(c), c.ft = f.Gl.Dy.kS, f.Qa.dispatchEvent(c))
- },
- Tda: function(c) {
- for (var d,
- e, g, h = [], k = this.Of, m = this.TY, n = 0, p = c.length; n < p; n++) d = c[n], g = d.ni, e = m[g], null != e && k[e] && (k[e].oY(d.kh), k[e].NA(d.kp), h.push(k[e]), this.$ta(e), delete m[g]);
- return h
- },
- Vn: function(c) {
- var d = document.documentElement,
- e = window,
- g = null,
- g = "function" === typeof c.getBoundingClientRect ? c.getBoundingClientRect() : c instanceof HTMLCanvasElement ? {
- left: 0,
- top: 0,
- width: c.width,
- height: c.height
- } : {
- left: 0,
- top: 0,
- width: parseInt(c.style.width),
- height: parseInt(c.style.height)
- };
- return {
- left: g.left + e.pageXOffset - d.clientLeft,
- top: g.top +
- e.pageYOffset - d.clientTop,
- width: g.width,
- height: g.height
- }
- },
- WAa: function(c) {
- for (var d = null, e = this.raa, g = c.ni, h = e.length - 1; 0 <= h; h--)
- if (e[h].ni == g) {
- d = e[h];
- break
- }
- d || (d = c);
- return d
- },
- vHa: function(c) {
- for (var d = !1, e = this.raa, g = c.ni, h = e.length - 1; 0 <= h; h--)
- if (e[h].ni == g) {
- e[h] = c;
- d = !0;
- break
- }
- d || (50 >= e.length ? e.push(c) : (e[this.EX] = c, this.EX = (this.EX + 1) % 50))
- },
- HH: function(c, d, e) {
- var g = this.qaa;
- c = this.mt.m_(c, d, e);
- d = new f.jU(c.x, c.y);
- d.NA(g.x, g.y);
- g.x = c.x;
- g.y = c.y;
- return d
- },
- QB: function(c, d, e) {
- var g = this.Kta;
- this.mt.Tqa(c,
- d);
- d = new f.Gf(e);
- d.bHa(c.x, c.y);
- d.zua(g.x, g.y);
- g.x = c.x;
- g.y = c.y;
- return d
- },
- SB: function(c, d) {
- if (null != c.pageX) return {
- x: c.pageX,
- y: c.pageY
- };
- d.left -= document.body.scrollLeft;
- d.top -= document.body.scrollTop;
- return {
- x: c.clientX,
- y: c.clientY
- }
- },
- wP: function(c, d) {
- for (var e = [], g = this.mt, h, k, m = this.qaa, n = c.changedTouches.length, p = 0; p < n; p++)
- if (h = c.changedTouches[p]) {
- var s;
- s = f.Ed.jD === f.Ed.gx ? g.m_(h.pageX, h.pageY, d) : g.m_(h.clientX, h.clientY, d);
- null != h.identifier ? (h = new f.jU(s.x, s.y, h.identifier), k = this.WAa(h).cf(),
- h.NA(k.x, k.y), this.vHa(h)) : (h = new f.jU(s.x, s.y), h.NA(m.x, m.y));
- m.x = s.x;
- m.y = s.y;
- e.push(h)
- }
- return e
- },
- EFa: function(c) {
- if (!this.L$) {
- var d = this.mt = f.view,
- e = this,
- g = "touches" in f.Ed.$Z;
- "mouse" in f.Ed.$Z && (f.ub(window, "mousedown", function() {
- e.pA = !0
- }, !1), f.ub(window, "mouseup", function(d) {
- var h = e.pA;
- e.pA = !1;
- if (h) {
- var h = e.Vn(c),
- k = e.SB(d, h);
- f.Bu(new f.Qy(h.left, h.top, h.width, h.height), k) || (g || e.zP([e.HH(k.x, k.y, h)]), h = e.QB(k, h, f.Gf.Ol), h.$x(d.button), f.Qa.dispatchEvent(h))
- }
- }, !1), f.ub(c, "mousedown", function(d) {
- e.pA = !0;
- var h = e.Vn(c),
- k = e.SB(d, h);
- g || e.y0([e.HH(k.x, k.y, h)]);
- h = e.QB(k, h, f.Gf.Ym);
- h.$x(d.button);
- f.Qa.dispatchEvent(h);
- d.stopPropagation();
- d.preventDefault();
- c.focus()
- }, !1), f.ub(c, "mouseup", function(d) {
- e.pA = !1;
- var h = e.Vn(c),
- k = e.SB(d, h);
- g || e.zP([e.HH(k.x, k.y, h)]);
- h = e.QB(k, h, f.Gf.Ol);
- h.$x(d.button);
- f.Qa.dispatchEvent(h);
- d.stopPropagation();
- d.preventDefault()
- }, !1), f.ub(c, "mousemove", function(d) {
- var h = e.Vn(c),
- k = e.SB(d, h);
- g || e.z0([e.HH(k.x, k.y, h)]);
- h = e.QB(k, h, f.Gf.c6);
- e.pA ? h.$x(d.button) : h.$x(null);
- f.Qa.dispatchEvent(h);
- d.stopPropagation();
- d.preventDefault()
- }, !1), f.ub(c, "mousewheel", function(d) {
- var g = e.Vn(c),
- h = e.SB(d, g),
- g = e.QB(h, g, f.Gf.IT);
- g.$x(d.button);
- g.Nha(0, d.wheelDelta);
- f.Qa.dispatchEvent(g);
- d.stopPropagation();
- d.preventDefault()
- }, !1), f.ub(c, "DOMMouseScroll", function(d) {
- var g = e.Vn(c),
- h = e.SB(d, g),
- g = e.QB(h, g, f.Gf.IT);
- g.$x(d.button);
- g.Nha(0, -120 * d.detail);
- f.Qa.dispatchEvent(g);
- d.stopPropagation();
- d.preventDefault()
- }, !1));
- if (window.navigator.msPointerEnabled) {
- var h = {
- MSPointerDown: e.y0,
- MSPointerMove: e.z0,
- MSPointerUp: e.zP,
- MSPointerCancel: e.nea
- },
- k;
- for (k in h)(function(d, g) {
- f.ub(c, d, function(d) {
- var h = e.Vn(c);
- h.left -= document.documentElement.scrollLeft;
- h.top -= document.documentElement.scrollTop;
- g.call(e, [e.HH(d.clientX, d.clientY, h)]);
- d.stopPropagation()
- }, !1)
- })(k, h[k])
- }
- g && (f.ub(c, "touchstart", function(d) {
- if (d.changedTouches) {
- var g = e.Vn(c);
- g.left -= document.body.scrollLeft;
- g.top -= document.body.scrollTop;
- e.y0(e.wP(d, g));
- d.stopPropagation();
- d.preventDefault();
- c.focus()
- }
- }, !1), f.ub(c, "touchmove", function(d) {
- if (d.changedTouches) {
- var g =
- e.Vn(c);
- g.left -= document.body.scrollLeft;
- g.top -= document.body.scrollTop;
- e.z0(e.wP(d, g));
- d.stopPropagation();
- d.preventDefault()
- }
- }, !1), f.ub(c, "touchend", function(d) {
- if (d.changedTouches) {
- var g = e.Vn(c);
- g.left -= document.body.scrollLeft;
- g.top -= document.body.scrollTop;
- e.zP(e.wP(d, g));
- d.stopPropagation();
- d.preventDefault()
- }
- }, !1), f.ub(c, "touchcancel", function(g) {
- if (g.changedTouches) {
- var h = e.Vn(c);
- h.left -= document.body.scrollLeft;
- h.top -= document.body.scrollTop;
- d.nea(e.wP(g, h));
- g.stopPropagation();
- g.preventDefault()
- }
- }, !1));
- this.Daa();
- this.Caa();
- this.L$ = !0
- }
- },
- Daa: function() {},
- Caa: function() {},
- update: function(c) {
- this.vv > this.QK && (this.vv -= this.QK, f.Qa.dispatchEvent(new f.xla(this.KU)));
- this.vv += c
- }
- };
- var q = f.Gea;
- q.q2a = function(c) {
- this.PK !== c && (this.PK = c, c = f.Q.Dm(), this.PK ? (this.vv = 0, c.UQ(this)) : (this.vv = 0, c.qJ(this)))
- };
- q.r2a = function(c) {
- this.QK !== c && (this.QK = c)
- };
- q.Daa = function() {
- f.ub(f.Sb, "keydown", function(c) {
- f.Qa.dispatchEvent(new f.o5(c.keyCode, !0));
- c.stopPropagation();
- c.preventDefault()
- }, !1);
- f.ub(f.Sb, "keyup", function(c) {
- f.Qa.dispatchEvent(new f.o5(c.keyCode, !1));
- c.stopPropagation();
- c.preventDefault()
- }, !1)
- };
- q.Caa = function() {
- var c = window;
- this.KU = new f.Xia;
- this.OK = c.DeviceMotionEvent || c.DeviceOrientationEvent;
- f.Ed.gx == f.Ed.Y3 && (this.OK = window.DeviceOrientationEvent);
- f.ub(c, this.OK == c.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.Rxa.bind(this), !1)
- };
- q.Rxa = function(c) {
- var d = window;
- if (this.PK) {
- var e = this.KU;
- if (this.OK == window.DeviceMotionEvent) {
- var g = c.accelerationIncludingGravity;
- e.x = this.v8 * g.x * 0.1;
- e.y = this.v8 * g.y * 0.1;
- e.z = 0.1 * g.z
- } else e.x = c.gamma / 90 * 0.981, e.y = 0.981 * -(c.beta / 90), e.z = c.alpha / 90 * 0.981;
- e.timestamp = c.timeStamp || Date.now();
- c = e.x;
- d.orientation === f.wpa ? (e.x = -e.y, e.y = c) : d.orientation === f.vpa ? (e.x = e.y, e.y = -c) : d.orientation === f.xpa && (e.x = -e.x, e.y = -e.y)
- }
- };
- delete q;
- f.MJa = function(c, d, e, g, h, k) {
- this.a = c;
- this.b = d;
- this.G = e;
- this.P = g;
- this.pa = h;
- this.qa = k
- };
- f.PJa = function() {
- return {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- }
- };
- f.lv = function(c, d) {
- return {
- x: d.a * c.x + d.G * c.y + d.pa,
- y: d.b * c.x + d.P * c.y + d.qa
- }
- };
- f.Js = function(c, d, e) {
- return {
- x: e.a * c + e.G * d + e.pa,
- y: e.b * c + e.P * d + e.qa
- }
- };
- f.CMa = function(c, d) {
- return {
- width: d.a * c.width + d.G * c.height,
- height: d.b * c.width + d.P * c.height
- }
- };
- f.QJa = function() {
- return {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- }
- };
- f.OJa = function() {
- return {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- }
- };
- f.Ki = function(c, d) {
- var e = f.ho(c),
- g = f.fo(c),
- h = f.Vp(c),
- k = f.Wp(c),
- m = f.Js(g, e, d),
- e = f.Js(h, e, d),
- g = f.Js(g, k, d),
- n = f.Js(h, k, d),
- h = Math.min(m.x, e.x, g.x, n.x),
- k = Math.max(m.x, e.x, g.x, n.x),
- p = Math.min(m.y, e.y, g.y, n.y),
- m = Math.max(m.y, e.y, g.y, n.y);
- return x(h, p, k - h, m - p)
- };
- f.Fo = function(c, d) {
- var e = f.ho(c),
- g = f.fo(c),
- h = f.Vp(c),
- k = f.Wp(c),
- m = f.Js(g, e, d),
- e = f.Js(h, e, d),
- g = f.Js(g, k, d),
- n = f.Js(h, k, d),
- h = Math.min(m.x, e.x, g.x, n.x),
- k = Math.max(m.x, e.x, g.x, n.x),
- p = Math.min(m.y, e.y, g.y, n.y),
- m = Math.max(m.y, e.y, g.y, n.y);
- c.x = h;
- c.y = p;
- c.width = k - h;
- c.height = m - p;
- return c
- };
- f.xJ = function(c, d, e) {
- return {
- a: c.a,
- b: c.b,
- G: c.G,
- P: c.P,
- pa: c.pa + c.a * d + c.G * e,
- qa: c.qa + c.b * d + c.P * e
- }
- };
- f.RJa = function(c, d, e) {
- return {
- a: c.a * d,
- b: c.b * d,
- G: c.G * e,
- P: c.P * e,
- pa: c.pa,
- qa: c.qa
- }
- };
- f.hja = function(c) {
- var d = Math.sin(1.57079633),
- e = Math.cos(1.57079633);
- return {
- a: c.a * e + c.G * d,
- b: c.b * e + c.P * d,
- G: c.G * e - c.a * d,
- P: c.P * e - c.b * d,
- pa: c.pa,
- qa: c.qa
- }
- };
- f.Vg = function(c, d) {
- return {
- a: c.a * d.a + c.b * d.G,
- b: c.a * d.b + c.b * d.P,
- G: c.G * d.a + c.P * d.G,
- P: c.G * d.b + c.P * d.P,
- pa: c.pa * d.a + c.qa * d.G + d.pa,
- qa: c.pa * d.b + c.qa * d.P + d.qa
- }
- };
- f.NJa = function(c, d) {
- return c.a === d.a && c.b === d.b && c.G === d.G && c.P === d.P && c.pa === d.pa && c.qa === d.qa
- };
- f.SR = function(c) {
- var d = 1 / (c.a * c.P - c.b * c.G);
- return {
- a: d * c.P,
- b: -d * c.b,
- G: -d * c.G,
- P: d * c.a,
- pa: d * (c.G * c.qa - c.P * c.pa),
- qa: d * (c.b * c.pa - c.a * c.qa)
- }
- };
- f.y6 = parseFloat("1.192092896e-07F");
- f.B1 = function(c) {
- return r(-c.x, -c.y)
- };
- f.Tp = function(c, d) {
- return r(c.x + d.x, c.y + d.y)
- };
- f.gc = function(c, d) {
- return r(c.x - d.x, c.y - d.y)
- };
- f.Up = function(c, d) {
- return r(c.x * d, c.y * d)
- };
- f.A1 = function(c, d) {
- return f.Up(f.Tp(c, d), 0.5)
- };
- f.wC = function(c, d) {
- return c.x * d.x + c.y * d.y
- };
- f.lEa = function(c, d) {
- return c.x * d.y - c.y * d.x
- };
- f.CQ = function(c) {
- return r(-c.y, c.x)
- };
- f.Z_a = function(c) {
- return r(c.y, -c.x)
- };
- f.Y_a = function(c, d) {
- return f.Up(d, f.wC(c, d) / f.wC(d, d))
- };
- f.$_a = function(c, d) {
- return r(c.x * d.x - c.y * d.y, c.x * d.y + c.y * d.x)
- };
- f.c0a = function(c, d) {
- return r(c.x * d.x + c.y * d.y, c.y * d.x - c.x * d.y)
- };
- f.Kfa = function(c) {
- return f.wC(c, c)
- };
- f.Ifa = function(c, d) {
- return f.Kfa(f.gc(c, d))
- };
- f.ff = function(c) {
- return Math.sqrt(f.Kfa(c))
- };
- f.Hfa = function(c, d) {
- return f.ff(f.gc(c, d))
- };
- f.Af = function(c) {
- return f.Up(c, 1 / f.ff(c))
- };
- f.V_a = function(c) {
- return r(Math.cos(c), Math.sin(c))
- };
- f.oEa = function(c) {
- return Math.atan2(c.y, c.x)
- };
- f.Rf = function(c, d, e) {
- if (d > e) {
- var g = d;
- d = e;
- e = g
- }
- return c < d ? d : c < e ? c : e
- };
- f.Gfa = function(c) {
- var d = r(0, 0),
- e = r(1, 1);
- return r(f.Rf(c.x, d.x, e.x), f.Rf(c.y, d.y, e.y))
- };
- f.Jfa = function() {
- var c = f.Q.Y;
- return r(c.width, c.height)
- };
- f.U_a = function(c, d) {
- return r(d(c.x), d(c.y))
- };
- f.Lfa = function(c, d, e) {
- return f.Tp(f.Up(c, 1 - e), f.Up(d, e))
- };
- f.W_a = function(c, d, e) {
- return c.x - e <= d.x && d.x <= c.x + e && c.y - e <= d.y && d.y <= c.y + e ? !0 : !1
- };
- f.T_a = function(c, d) {
- return r(c.x * d.x, c.y * d.y)
- };
- f.S_a = function(c, d) {
- var e = f.Af(c),
- g = f.Af(d),
- e = Math.atan2(e.x * g.y - e.y * g.x, f.wC(e, g));
- return Math.abs(e) < f.y6 ? 0 : e
- };
- f.R_a = function(c, d) {
- var e = Math.acos(f.wC(f.Af(c), f.Af(d)));
- return Math.abs(e) < f.y6 ? 0 : e
- };
- f.nEa = function(c, d, e) {
- c = f.gc(c, d);
- var g = Math.cos(e);
- e = Math.sin(e);
- var h = c.x;
- c.x = h * g - c.y * e + d.x;
- c.y = h * e + c.y * g + d.y;
- return c
- };
- f.z1 = function(c, d, e, g, h) {
- if (c.x == d.x && c.y == d.y || e.x == g.x && e.y == g.y) return !1;
- var k = d.x - c.x;
- d = d.y - c.y;
- var m = g.x - e.x;
- g = g.y - e.y;
- var n = c.x - e.x;
- c = c.y - e.y;
- e = g * k - m * d;
- h.x = m * c - g * n;
- h.y = k * c - d * n;
- if (0 == e) return 0 == h.x || 0 == h.y ? !0 : !1;
- h.x /= e;
- h.y /= e;
- return !0
- };
- f.b0a = function(c, d, e, g) {
- var h = r(0, 0);
- return f.z1(c, d, e, g, h) && 0 <= h.x && 1 >= h.x && 0 <= h.y && 1 >= h.y ? !0 : !1
- };
- f.X_a = function(c, d, e, g) {
- var h = r(0, 0);
- return f.z1(c, d, e, g, h) ? (e = r(0, 0), e.x = c.x + h.x * (d.x - c.x), e.y = c.y + h.x * (d.y - c.y), e) : r(0, 0)
- };
- f.a0a = function(c, d) {
- return null != c && null != d ? c.x == d.x && c.y == d.y : !1
- };
- f.DQ = function(c) {
- c.x = 0;
- c.y = 0
- };
- f.$r = function(c, d) {
- c.x = d.x;
- c.y = d.y
- };
- f.xC = function(c, d) {
- c.x *= d;
- c.y *= d
- };
- f.Mfa = function(c, d) {
- c.x -= d.x;
- c.y -= d.y
- };
- f.BQ = function(c, d) {
- c.x += d.x;
- c.y += d.y
- };
- f.mEa = function(c) {
- f.xC(c, 1 / Math.sqrt(c.x * c.x + c.y * c.y))
- };
- f.H3 = function(c, d, e, g, h) {
- h += g;
- if (!(1 >= h)) {
- d *= 0.5;
- for (var k, m = h - 1, n = g; n < h; n++) {
- k = 2 * n;
- var p = r(c[2 * n], c[2 * n + 1]),
- s;
- if (0 === n) s = f.CQ(f.Af(f.gc(p, r(c[2 * (n + 1)], c[2 * (n + 1) + 1]))));
- else if (n === m) s = f.CQ(f.Af(f.gc(r(c[2 * (n - 1)], c[2 * (n - 1) + 1]), p)));
- else {
- s = r(c[2 * (n - 1)], c[2 * (n - 1) + 1]);
- var u = r(c[2 * (n + 1)], c[2 * (n + 1) + 1]),
- v = f.Af(f.gc(u, p)),
- z = f.Af(f.gc(s, p)),
- A = Math.acos(f.wC(v, z));
- s = A < f.sg(70) ? f.CQ(f.Af(f.A1(v, z))) : A < f.sg(170) ? f.Af(f.A1(v, z)) : f.CQ(f.Af(f.gc(u, s)))
- }
- s = f.Up(s, d);
- e[2 * k] = p.x + s.x;
- e[2 * k + 1] = p.y + s.y;
- e[2 * (k + 1)] = p.x -
- s.x;
- e[2 * (k + 1) + 1] = p.y - s.y
- }
- for (n = 0 == g ? 0 : g - 1; n < m; n++) k = 2 * n, c = k + 2, d = new f.he(e[2 * k], e[2 * k + 1]), h = new f.he(e[2 * (k + 1)], e[2 * (k + 1) + 1]), k = new f.he(e[2 * c], e[2 * c]), g = new f.he(e[2 * (c + 1)], e[2 * (c + 1) + 1]), d = !f.lJa(d.x, d.y, g.x, g.y, h.x, h.y, k.x, k.y), !d.aI && (0 > d.value || 1 < d.value) && (d.aI = !0), d.aI && (e[2 * c] = g.x, e[2 * c + 1] = g.y, e[2 * (c + 1)] = k.x, e[2 * (c + 1) + 1] = k.y)
- }
- };
- f.lJa = function(c, d, e, g, h, k, m, n) {
- if (c == e && d == g || h == m && k == n) return {
- aI: !1,
- value: 0
- };
- e -= c;
- g -= d;
- h -= c;
- k -= d;
- m -= c;
- n -= d;
- c = Math.sqrt(e * e + g * g);
- e /= c;
- g /= c;
- d = h * e + k * g;
- k = k * e - h * g;
- h = d;
- d = m * e + n * g;
- n = n * e - m * g;
- m = d;
- return k == n ? {
- aI: !1,
- value: 0
- } : {
- aI: !0,
- value: (m + (h - m) * n / (n - k)) / c
- }
- };
- f.S5a = function(c) {
- for (var d = 0, e = c.length; d < e; d++) {
- var g = c[(d + 1) % e];
- if (0 < f.lEa(f.gc(g, c[d]), f.gc(c[(d + 2) % e], g))) return !1
- }
- return !0
- };
- f.zKa = function(c, d) {
- d[2] = d[3] = d[6] = d[7] = d[8] = d[9] = d[11] = d[14] = 0;
- d[10] = d[15] = 1;
- d[0] = c.a;
- d[4] = c.G;
- d[12] = c.pa;
- d[1] = c.b;
- d[5] = c.P;
- d[13] = c.qa
- };
- f.nLa = function(c, d) {
- d.a = c[0];
- d.G = c[4];
- d.pa = c[12];
- d.b = c[1];
- d.P = c[5];
- d.qa = c[13]
- };
- f.jU = f.N.extend({
- kh: null,
- kp: null,
- ni: 0,
- mba: !1,
- wG: null,
- ctor: function(c, d, e) {
- this.kh = r(c || 0, d || 0);
- this.ni = e || 0
- },
- cf: function() {
- return {
- x: this.kh.x,
- y: this.kh.y
- }
- },
- uAa: function() {
- return this.kh.x
- },
- vAa: function() {
- return this.kh.y
- },
- qP: function() {
- return {
- x: this.kp.x,
- y: this.kp.y
- }
- },
- UVa: function() {
- return {
- x: this.wG.x,
- y: this.wG.y
- }
- },
- a0: function() {
- return f.gc(this.kh, this.kp)
- },
- tAa: function() {
- return {
- x: this.kh.x,
- y: this.kh.y
- }
- },
- tVa: function() {
- return {
- x: this.kp.x,
- y: this.kp.y
- }
- },
- VVa: function() {
- return {
- x: this.wG.x,
- y: this.wG.y
- }
- },
- dUa: function() {
- return this.ni
- },
- fAa: function() {
- return this.ni
- },
- B4a: function(c, d, e) {
- this.kp = this.kh;
- this.kh = r(d || 0, e || 0);
- this.ni = c;
- this.mba || (this.wG = r(this.kh), this.mba = !0)
- },
- oY: function(c, d) {
- void 0 === d ? (this.kh.x = c.x, this.kh.y = c.y) : (this.kh.x = c, this.kh.y = d)
- },
- NA: function(c, d) {
- this.kp = void 0 === d ? r(c.x, c.y) : r(c || 0, d || 0)
- }
- });
- f.ve = f.N.extend({
- zc: 0,
- Wv: !1,
- eh: null,
- gY: function(c) {
- this.eh = c
- },
- ctor: function(c) {
- this.zc = c
- },
- IH: function() {
- return this.zc
- },
- stopPropagation: function() {
- this.Wv = !0
- },
- XXa: function() {
- return this.Wv
- },
- jTa: function() {
- return this.eh
- }
- });
- f.ve.BK = 0;
- f.ve.Ky = 1;
- f.ve.ty = 2;
- f.ve.Ny = 3;
- f.ve.iq = 4;
- f.kq = f.ve.extend({
- bW: null,
- Hba: null,
- ctor: function(c) {
- f.ve.prototype.ctor.call(this, f.ve.iq);
- this.bW = c
- },
- setUserData: function(c) {
- this.Hba = c
- },
- getUserData: function() {
- return this.Hba
- },
- PTa: function() {
- return this.bW
- }
- });
- f.Gf = f.ve.extend({
- T9: 0,
- P8: 0,
- Nn: 0,
- hj: 0,
- JX: 0,
- KX: 0,
- Saa: 0,
- Taa: 0,
- ctor: function(c) {
- f.ve.prototype.ctor.call(this, f.ve.Ny);
- this.T9 = c
- },
- Nha: function(c, d) {
- this.Saa = c;
- this.Taa = d
- },
- KVa: function() {
- return this.Saa
- },
- LVa: function() {
- return this.Taa
- },
- bHa: function(c, d) {
- this.Nn = c;
- this.hj = d
- },
- cf: function() {
- return {
- x: this.Nn,
- y: this.hj
- }
- },
- tAa: function() {
- return {
- x: this.Nn,
- y: f.view.Ez.height - this.hj
- }
- },
- zua: function(c, d) {
- this.JX = c;
- this.KX = d
- },
- a0: function() {
- return {
- x: this.Nn - this.JX,
- y: this.hj - this.KX
- }
- },
- sTa: function() {
- return this.Nn -
- this.JX
- },
- tTa: function() {
- return this.hj - this.KX
- },
- $x: function(c) {
- this.P8 = c
- },
- ASa: function() {
- return this.P8
- },
- uAa: function() {
- return this.Nn
- },
- vAa: function() {
- return this.hj
- }
- });
- f.Gf.NONE = 0;
- f.Gf.Ym = 1;
- f.Gf.Ol = 2;
- f.Gf.c6 = 3;
- f.Gf.IT = 4;
- f.Gf.pKa = 0;
- f.Gf.rKa = 2;
- f.Gf.qKa = 1;
- f.Gf.kKa = 3;
- f.Gf.lKa = 4;
- f.Gf.mKa = 5;
- f.Gf.nKa = 6;
- f.Gf.oKa = 7;
- f.Gl = f.ve.extend({
- ft: 0,
- Of: null,
- ctor: function(c) {
- f.ve.prototype.ctor.call(this, f.ve.BK);
- this.Of = c || []
- },
- OTa: function() {
- return this.ft
- },
- BWa: function() {
- return this.Of
- },
- POa: function(c) {
- this.ft = c
- },
- TOa: function(c) {
- this.Of = c
- }
- });
- f.Gl.QLa = 5;
- f.Gl.Dy = {
- WR: 0,
- fT: 1,
- IS: 2,
- kS: 3
- };
- f.Xa = f.N.extend({
- mX: null,
- zc: 0,
- $o: null,
- aj: !1,
- it: 0,
- nf: null,
- Ce: !1,
- fA: !0,
- ctor: function(c, d, e) {
- this.mX = e;
- this.zc = c || 0;
- this.$o = d || ""
- },
- nY: function(c) {
- this.Ce = c
- },
- tOa: function() {
- return this.Ce
- },
- lG: function(c) {
- this.aj = c
- },
- Nsa: function() {
- return this.aj
- },
- lOa: function() {
- return this.zc
- },
- gOa: function() {
- return this.$o
- },
- hY: function(c) {
- this.it = c
- },
- eOa: function() {
- return this.it
- },
- mG: function(c) {
- this.nf = c
- },
- jOa: function() {
- return this.nf
- },
- ju: function() {
- return null != this.mX
- },
- p: function() {
- return null
- },
- Lb: function(c) {
- this.fA =
- c
- },
- isEnabled: function() {
- return this.fA
- },
- OQ: function() {},
- wh: function() {}
- });
- f.Xa.Gpa = 0;
- f.Xa.zs = 1;
- f.Xa.VT = 2;
- f.Xa.Ky = 3;
- f.Xa.Ny = 4;
- f.Xa.ty = 5;
- f.Xa.iq = 6;
- f.AE = f.Xa.extend({
- UF: null,
- ctor: function(c, d) {
- this.UF = d;
- var e = this;
- f.Xa.prototype.ctor.call(this, f.Xa.iq, c, function(c) {
- null != e.UF && e.UF(c)
- })
- },
- ju: function() {
- return f.Xa.prototype.ju.call(this) && null != this.UF
- },
- p: function() {
- return new f.AE(this.$o, this.UF)
- }
- });
- f.AE.create = function(c, d) {
- return new f.AE(c, d)
- };
- f.Is = f.Xa.extend({
- uQ: null,
- xQ: null,
- vQ: null,
- wQ: null,
- ctor: function() {
- var c = this;
- f.Xa.prototype.ctor.call(this, f.Xa.Ny, f.Is.Le, function(d) {
- var e = f.Gf;
- switch (d.T9) {
- case e.Ym:
- c.uQ && c.uQ(d);
- break;
- case e.Ol:
- c.xQ && c.xQ(d);
- break;
- case e.c6:
- c.vQ && c.vQ(d);
- break;
- case e.IT:
- c.wQ && c.wQ(d)
- }
- })
- },
- p: function() {
- var c = new f.Is;
- c.uQ = this.uQ;
- c.xQ = this.xQ;
- c.vQ = this.vQ;
- c.wQ = this.wQ;
- return c
- },
- ju: function() {
- return !0
- }
- });
- f.Is.Le = "__cc_mouse";
- f.Is.create = function() {
- return new f.Is
- };
- f.Eo = f.Xa.extend({
- wz: null,
- QC: !1,
- rc: null,
- hd: null,
- gd: null,
- ef: null,
- ctor: function() {
- f.Xa.prototype.ctor.call(this, f.Xa.zs, f.Eo.Le, null);
- this.wz = []
- },
- p4a: function(c) {
- this.QC = c
- },
- p: function() {
- var c = new f.Eo;
- c.rc = this.rc;
- c.hd = this.hd;
- c.gd = this.gd;
- c.ef = this.ef;
- c.QC = this.QC;
- return c
- },
- ju: function() {
- return this.rc ? !0 : (f.log(f.l.Qpa), !1)
- }
- });
- f.Eo.Le = "__cc_touch_one_by_one";
- f.Eo.create = function() {
- return new f.Eo
- };
- f.Do = f.Xa.extend({
- tI: null,
- wI: null,
- vI: null,
- uI: null,
- ctor: function() {
- f.Xa.prototype.ctor.call(this, f.Xa.VT, f.Do.Le, null)
- },
- p: function() {
- var c = new f.Do;
- c.tI = this.tI;
- c.wI = this.wI;
- c.vI = this.vI;
- c.uI = this.uI;
- return c
- },
- ju: function() {
- return null == this.tI && null == this.wI && null == this.vI && null == this.uI ? (f.log(f.l.Ppa), !1) : !0
- }
- });
- f.Do.Le = "__cc_touch_all_at_once";
- f.Do.create = function() {
- return new f.Do
- };
- f.Xa.create = function(c) {
- f.assert(c && c.event, f.l.zla);
- var d = c.event;
- delete c.event;
- var e = null;
- d === f.Xa.zs ? e = new f.Eo : d === f.Xa.VT ? e = new f.Do : d === f.Xa.Ny ? e = new f.Is : d === f.Xa.iq ? (e = new f.AE(c.aza, c.XZ), delete c.aza, delete c.XZ) : d === f.Xa.Ky ? e = new f.Hs : d === f.Xa.ty && (e = new f.Gs(c.XZ), delete c.XZ);
- for (var g in c) e[g] = c[g];
- return e
- };
- f.sca = function(c) {
- var d, e = c.length,
- g = Array(e);
- for (d = 0; d < e; d += 1) g[d] = c[d];
- return g
- };
- f.Rpa = f.N.extend({
- Lk: null,
- Sk: null,
- kea: 0,
- ctor: function() {
- this.Lk = [];
- this.Sk = []
- },
- size: function() {
- return this.Lk.length + this.Sk.length
- },
- empty: function() {
- return 0 === this.Lk.length && 0 === this.Sk.length
- },
- push: function(c) {
- 0 == c.it ? this.Sk.push(c) : this.Lk.push(c)
- },
- Ywa: function() {
- this.Sk.length = 0
- },
- Xwa: function() {
- this.Lk.length = 0
- },
- clear: function() {
- this.Sk.length = 0;
- this.Lk.length = 0
- },
- UTa: function() {
- return this.Lk
- },
- JVa: function() {
- return this.Sk
- }
- });
- f.LK = function(c) {
- var d = f.ve,
- e = c.zc;
- if (e === d.ty) return f.Gs.Le;
- if (e === d.iq) return c.bW;
- if (e === d.Ky) return f.Hs.Le;
- if (e === d.Ny) return f.Is.Le;
- e === d.BK && f.log(f.l.LK);
- return ""
- };
- f.Qa = {
- ES: 0,
- PJ: 1,
- sD: 2,
- TKa: 3,
- bm: {},
- dG: {},
- cp: {},
- UM: {},
- u$: {},
- aB: [],
- gF: [],
- Tv: 0,
- fA: !1,
- daa: 0,
- Lsa: [f.vf.UJ, f.vf.vD],
- DN: function(c) {
- null != this.cp[c.yb] && this.gF.push(c);
- c = c.re();
- for (var d = 0, e = c.length; d < e; d++) this.DN(c[d])
- },
- as: function(c, d) {
- var e = this.cp[c.yb],
- g, h;
- if (e)
- for (g = 0, h = e.length; g < h; g++) e[g].nY(!0);
- if (!0 === d)
- for (e = c.re(), g = 0, h = e.length; g < h; g++) this.as(e[g], !0)
- },
- Km: function(c, d) {
- var e = this.cp[c.yb],
- g, h;
- if (e)
- for (g = 0, h = e.length; g < h; g++) e[g].nY(!1);
- this.DN(c);
- if (!0 === d)
- for (e = c.re(), g = 0, h = e.length; g < h; g++) this.Km(e[g], !0)
- },
- z8: function(c) {
- 0 === this.Tv ? this.c$(c) : this.aB.push(c)
- },
- c$: function(c) {
- var d = c.$o,
- e = this.bm[d];
- e || (e = new f.Rpa, this.bm[d] = e);
- e.push(c);
- 0 == c.it ? (this.Lt(d, this.sD), d = c.nf, null == d && f.log(f.l.Uya), this.lqa(d, c), d.dd && this.Km(d)) : this.Lt(d, this.PJ)
- },
- wW: function(c) {
- return this.bm[c]
- },
- vva: function() {
- if (0 != this.gF.length) {
- for (var c = this.gF, d, e, g = this.cp, h = 0, k = c.length; h < k; h++)
- if (d = g[c[h].yb])
- for (var m = 0, n = d.length; m < n; m++)(e = d[m]) && this.Lt(e.$o, this.sD);
- this.gF.length = 0
- }
- },
- Eaa: function(c) {
- if (c)
- for (var d,
- e = 0; e < c.length;) d = c[e], d.lG(!1), null != d.nf && (this.m9(d.nf, d), d.mG(null)), 0 === this.Tv ? f.Ld(c, d) : ++e
- },
- xw: function(c) {
- var d = this.bm[c];
- if (d) {
- var e = d.Lk;
- this.Eaa(d.Sk);
- this.Eaa(e);
- delete this.dG[c];
- this.Tv || (d.clear(), delete this.bm[c])
- }
- for (var e = this.aB, g, d = 0; d < e.length;)(g = e[d]) && g.$o == c ? f.Ld(e, g) : ++d
- },
- yY: function(c) {
- var d = this.ES,
- e = this.dG;
- e[c] && (d = e[c]);
- d != this.ES && (e[c] = this.ES, d & this.PJ && this.bva(c), d & this.sD && ((d = f.Q.mg) ? this.dva(c, d) : e[c] = this.sD))
- },
- dva: function(c, d) {
- var e = this.wW(c);
- if (e) {
- var g =
- e.Sk;
- g && 0 !== g.length && (this.daa = 0, this.UM = {}, this.lZ(d, !0), e.Sk.sort(this.ava))
- }
- },
- ava: function(c, d) {
- var e = f.Qa.UM;
- return e[d.nf.yb] - e[c.nf.yb]
- },
- bva: function(c) {
- if (c = this.bm[c]) {
- var d = c.Lk;
- if (d && 0 !== d.length) {
- d.sort(this.cva);
- for (var e = 0, g = d.length; e < g && !(0 <= d[e].it);)++e;
- c.kea = e
- }
- }
- },
- cva: function(c, d) {
- return c.it - d.it
- },
- nX: function(c) {
- if (c = this.bm[c]) {
- var d = c.Lk,
- e = c.Sk,
- g, h;
- if (e)
- for (g = 0; g < e.length;) h = e[g], h.aj ? ++g : f.Ld(e, h);
- if (d)
- for (g = 0; g < d.length;) h = d[g], h.aj ? ++g : f.Ld(d, h);
- e && 0 === e.length && c.Ywa();
- d &&
- 0 === d.length && c.Xwa()
- }
- },
- mO: function(c) {
- var d = this.Tv;
- f.assert(0 < d, f.l.Ala);
- c.zc == f.ve.BK ? (this.nX(f.Eo.Le), this.nX(f.Do.Le)) : this.nX(f.LK(c));
- if (!(1 < d)) {
- f.assert(1 == d, f.l.Bla);
- c = this.bm;
- var d = this.dG,
- e;
- for (e in c) c[e].empty() && (delete d[e], delete c[e]);
- e = this.aB;
- if (0 !== e.length) {
- c = 0;
- for (d = e.length; c < d; c++) this.c$(e[c]);
- this.aB.length = 0
- }
- }
- },
- sta: function(c, d) {
- if (!c.Nsa) return !1;
- var e = d.event,
- g = d.yga;
- e.gY(c.nf);
- var h = !1,
- k, m = e.ft,
- n = f.Gl.Dy;
- m == n.WR ? c.rc && (h = c.rc(g, e)) && c.aj && c.wz.push(g) : 0 < c.wz.length &&
- -1 != (k = c.wz.indexOf(g)) && (h = !0, m === n.fT && c.hd ? c.hd(g, e) : m === n.IS ? (c.gd && c.gd(g, e), c.aj && c.wz.splice(k, 1)) : m === n.kS && (c.ef && c.ef(g, e), c.aj && c.wz.splice(k, 1)));
- return e.Wv ? (f.Qa.mO(e), !0) : h && c.aj && c.QC ? (d.UDa && d.touches.splice(g, 1), !0) : !1
- },
- bra: function(c) {
- this.yY(f.Eo.Le);
- this.yY(f.Do.Le);
- var d = this.wW(f.Eo.Le),
- e = this.wW(f.Do.Le);
- if (null != d || null != e) {
- var g = c.Of,
- h = f.sca(g),
- k = {
- event: c,
- UDa: d && e,
- touches: h,
- yga: null
- };
- if (d)
- for (var m = 0; m < g.length; m++)
- if (k.yga = g[m], this.QV(d, this.sta, k), c.Wv) return;
- if (e && 0 <
- h.length && (this.QV(e, this.uta, {
- event: c,
- touches: h
- }), c.Wv)) return;
- this.mO(c)
- }
- },
- uta: function(c, d) {
- if (!c.aj) return !1;
- var e = f.Gl.Dy,
- g = d.event,
- h = d.touches,
- k = g.ft;
- g.gY(c.nf);
- k == e.WR && c.tI ? c.tI(h, g) : k == e.fT && c.wI ? c.wI(h, g) : k == e.IS && c.vI ? c.vI(h, g) : k == e.kS && c.uI && c.uI(h, g);
- return g.Wv ? (f.Qa.mO(g), !0) : !1
- },
- lqa: function(c, d) {
- var e = this.cp[c.yb];
- e || (e = [], this.cp[c.yb] = e);
- e.push(d)
- },
- m9: function(c, d) {
- var e = this.cp[c.yb];
- e && (f.Ld(e, d), 0 === e.length && delete this.cp[c.yb])
- },
- QV: function(c, d, e) {
- var g = !1,
- h = c.Lk,
- k = c.Sk,
- m = 0,
- n;
- if (h && 0 !== h.length)
- for (; m < c.kea; ++m)
- if (n = h[m], n.isEnabled() && !n.Ce && n.aj && d(n, e)) {
- g = !0;
- break
- }
- if (k && !g)
- for (c = 0; c < k.length; c++)
- if (n = k[c], n.isEnabled() && !n.Ce && n.aj && d(n, e)) {
- g = !0;
- break
- }
- if (h && !g)
- for (; m < h.length && (n = h[m], !n.isEnabled() || n.Ce || !n.aj || !d(n, e)); ++m);
- },
- Lt: function(c, d) {
- var e = this.dG;
- e[c] = null == e[c] ? d : d | e[c]
- },
- lZ: function(c, d) {
- var e = c.re(),
- g = 0,
- h = e.length,
- k = this.u$,
- m = this.cp;
- if (0 < h) {
- for (var n; g < h; g++)
- if ((n = e[g]) && 0 > n.Ya) this.lZ(n, !1);
- else break;
- null != m[c.yb] && (k[c.Uq] || (k[c.Uq] = []), k[c.Uq].push(c.yb));
- for (; g < h; g++)(n = e[g]) && this.lZ(n, !1)
- } else null != m[c.yb] && (k[c.Uq] || (k[c.Uq] = []), k[c.Uq].push(c.yb)); if (d) {
- var e = [],
- p;
- for (p in k) e.push(p);
- e.sort(this.eva);
- p = e.length;
- n = this.UM;
- for (g = 0; g < p; g++)
- for (h = k[e[g]], m = 0; m < h.length; m++) n[h[m]] = ++this.daa;
- this.u$ = {}
- }
- },
- eva: function(c, d) {
- return c - d
- },
- addListener: function(c, d) {
- f.assert(c && d, f.l.Wya);
- if (!(c instanceof f.Xa)) f.assert("number" !== typeof d, f.l.Xya), c = f.Xa.create(c);
- else if (c.aj) {
- f.log(f.l.Yya);
- return
- }
- c.ju() && ("number" == typeof d ? 0 == d ? f.log(f.l.Vya) : (c.mG(null),
- c.hY(d), c.lG(!0), c.nY(!1), this.z8(c)) : (c.mG(d), c.hY(0), c.lG(!0), this.z8(c)))
- },
- sZ: function(c, d) {
- var e = f.AE.create(c, d);
- this.addListener(e, 1);
- return e
- },
- removeListener: function(c) {
- if (null != c) {
- var d, e = this.bm,
- g;
- for (g in e) {
- var h = e[g],
- k = h.Lk;
- (d = this.Gaa(h.Sk, c)) ? this.Lt(c.$o, this.sD): (d = this.Gaa(k, c)) && this.Lt(c.$o, this.PJ);
- h.empty() && (delete this.dG[c.$o], delete e[g]);
- if (d) break
- }
- if (!d)
- for (d = this.aB, e = 0, g = d.length; e < g; e++)
- if (h = d[e], h == c) {
- f.Ld(d, h);
- break
- }
- }
- },
- Gaa: function(c, d) {
- if (null == c) return !1;
- for (var e =
- 0, g = c.length; e < g; e++) {
- var h = c[e];
- if (h == d) return h.lG(!1), null != h.nf && (this.m9(h.nf, h), h.mG(null)), 0 == this.Tv && f.Ld(c, h), !0
- }
- return !1
- },
- mga: function(c, d) {
- if (c instanceof f.v) {
- delete this.UM[c.yb];
- f.Ld(this.gF, c);
- var e = this.cp[c.yb];
- if (e) {
- for (var g = f.sca(e), e = 0; e < g.length; e++) this.removeListener(g[e]);
- g.length = 0;
- g = this.aB;
- for (e = 0; e < g.length;) {
- var h = g[e];
- h.nf == c ? (h.mG(null), h.lG(!1), g.splice(e, 1)) : ++e
- }
- if (!0 === d)
- for (g = c.re(), e = 0, h = g.length; e < h; e++) this.mga(g[e], !0)
- }
- } else c == f.Xa.zs ? this.xw(f.Eo.Le) : c ==
- f.Xa.VT ? this.xw(f.Do.Le) : c == f.Xa.Ny ? this.xw(f.Is.Le) : c == f.Xa.ty ? this.xw(f.Gs.Le) : c == f.Xa.Ky ? this.xw(f.Hs.Le) : f.log(f.l.Zya)
- },
- m1a: function(c) {
- this.xw(c)
- },
- Z0a: function() {
- var c = this.bm,
- d = this.Lsa,
- e;
- for (e in c) - 1 === d.indexOf(e) && this.xw(e)
- },
- Y3a: function(c, d) {
- if (null != c) {
- var e = this.bm,
- g;
- for (g in e) {
- var h = e[g].Lk;
- if (h && -1 != h.indexOf(c)) {
- null != c.nf && f.log(f.l.$ya);
- c.it !== d && (c.hY(d), this.Lt(c.$o, this.PJ));
- break
- }
- }
- }
- },
- Lb: function(c) {
- this.fA = c
- },
- isEnabled: function() {
- return this.fA
- },
- dispatchEvent: function(c) {
- if (this.fA) {
- this.vva();
- this.Tv++;
- if (!c || !c.IH) throw "event is undefined";
- if (c.zc == f.ve.BK) this.bra(c);
- else {
- var d = f.LK(c);
- this.yY(d);
- d = this.bm[d];
- null != d && this.QV(d, this.mta, c);
- this.mO(c)
- }
- this.Tv--
- }
- },
- mta: function(c, d) {
- d.gY(c.nf);
- c.mX(d);
- return d.Wv
- },
- UQa: function(c, d) {
- var e = new f.kq(c);
- e.setUserData(d);
- this.dispatchEvent(e)
- }
- };
- f.xla = f.ve.extend({
- u8: null,
- ctor: function(c) {
- f.ve.prototype.ctor.call(this, f.ve.ty);
- this.u8 = c
- }
- });
- f.o5 = f.ve.extend({
- QW: 0,
- K$: !1,
- ctor: function(c, d) {
- f.ve.prototype.ctor.call(this, f.ve.Ky);
- this.QW = c;
- this.K$ = d
- }
- });
- f.Gs = f.Xa.extend({
- aN: null,
- ctor: function(c) {
- this.aN = c;
- var d = this;
- f.Xa.prototype.ctor.call(this, f.Xa.ty, f.Gs.Le, function(c) {
- d.aN(c.u8, c)
- })
- },
- ju: function() {
- f.assert(this.aN, f.l.Npa);
- return !0
- },
- p: function() {
- return new f.Gs(this.aN)
- }
- });
- f.Gs.Le = "__cc_acceleration";
- f.Gs.create = function(c) {
- return new f.Gs(c)
- };
- f.Hs = f.Xa.extend({
- pI: null,
- qI: null,
- ctor: function() {
- var c = this;
- f.Xa.prototype.ctor.call(this, f.Xa.Ky, f.Hs.Le, function(d) {
- d.K$ ? c.pI && c.pI(d.QW, d) : c.qI && c.qI(d.QW, d)
- })
- },
- p: function() {
- var c = new f.Hs;
- c.pI = this.pI;
- c.qI = this.qI;
- return c
- },
- ju: function() {
- return null == this.pI && null == this.qI ? (f.log(f.l.Opa), !1) : !0
- }
- });
- f.Hs.Le = "__cc_keyboard";
- f.Hs.create = function() {
- return new f.Hs
- };
- f.U.yU = function() {
- var c = f.v.prototype;
- c.UY = null;
- c.uG = null;
- c.EW = null;
- c.Hq = null;
- c.ctor = function() {
- this.IW();
- var c = new f.Ma;
- 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;
- c.c[10] = c.c[15] = 1;
- this.UY = c;
- this.EW = 0;
- this.uG = new f.Ma
- };
- c.Ha = function() {
- !1 === this.Wk && (this.Wk = this.yM = !0)
- };
- c.I = function() {
- if (this.Na) {
- var c = f.s,
- e, g = f.Md;
- g.stack.push(g.top);
- f.Mp(this.uG, g.top);
- g.top = this.uG;
- var h = this.grid;
- h && h.ah && h.dx();
- this.transform();
- var k = this.i;
- if (k && 0 < k.length) {
- var m = k.length;
- this.kd();
- for (e = 0; e <
- m; e++)
- if (k[e] && 0 > k[e].Ya) k[e].I();
- else break;
- for (this.ma(c); e < m; e++) k[e] && k[e].I()
- } else this.ma(c);
- this.arrivalOrder = 0;
- h && h.ah && h.ax(this);
- g.top = g.stack.pop()
- }
- };
- c.transform = function() {
- var c = this.UY,
- e = f.Md.top,
- g = this.se(),
- h = c.c;
- h[0] = g.a;
- h[4] = g.G;
- h[12] = g.pa;
- h[1] = g.b;
- h[5] = g.P;
- h[13] = g.qa;
- h[14] = this.PG;
- f.Np(e, e, c);
- null == this.Hq || null != this.grid && this.grid.Bi() || (c = this.Qb.x, e = this.Qb.y, 0 !== c || 0 !== e ? (f.LT || (c |= 0, e |= 0), f.bC(c, e), this.Hq.gI(), f.bC(-c, -e)) : this.Hq.gI())
- };
- c.se = c.VM
- };
- f.U.uT = function() {
- var c = f.v.prototype;
- f.d(c, "x", c.Vc, c.ls);
- f.d(c, "y", c.Zd, c.Lu);
- f.d(c, "width", c.lf, c.Uh);
- f.d(c, "height", c.Gg, c.Th);
- f.d(c, "anchorX", c.l$, c.Xe);
- f.d(c, "anchorY", c.m$, c.Ye);
- f.d(c, "skewX", c.Uda, c.XI);
- f.d(c, "skewY", c.Vda, c.YI);
- f.d(c, "zIndex", c.sAa, c.tl);
- f.d(c, "vertexZ", c.MBa, c.XHa);
- f.d(c, "rotation", c.Cx, c.yh);
- f.d(c, "rotationX", c.dBa, c.M2);
- f.d(c, "rotationY", c.eBa, c.N2);
- f.d(c, "scale", c.AH, c.ib);
- f.d(c, "scaleX", c.sP, c.jb);
- f.d(c, "scaleY", c.BH, c.tb);
- f.d(c, "children", c.re);
- f.d(c, "childrenCount",
- c.Y_);
- f.d(c, "parent", c.getParent, c.aq);
- f.d(c, "visible", c.V0, c.za);
- f.d(c, "running", c.cDa);
- f.d(c, "ignoreAnchor", c.YCa, c.Gm);
- f.d(c, "actionManager", c.IB, c.zga);
- f.d(c, "scheduler", c.Dm, c.Mha);
- f.d(c, "shaderProgram", c.m0, c.WI);
- f.d(c, "glServerState", c.Zza, c.TGa)
- };
- f.U.vT = function() {
- var c = f.ja.prototype;
- f.d(c, "opacity", c.vb, c.J);
- f.d(c, "opacityModifyRGB", c.vg, c.ee);
- f.d(c, "cascadeOpacity", c.WH, c.Hu);
- f.d(c, "color", c.$a, c.F);
- f.d(c, "cascadeColor", c.VH, c.Gu)
- };
- f.hK = -1;
- f.TQ = 1;
- f.v = f.N.extend({
- Ya: 0,
- Uq: 0,
- PG: 0,
- bj: 0,
- hm: 0,
- ka: 1,
- ra: 1,
- oa: null,
- og: 0,
- pg: 0,
- i: null,
- Na: !0,
- Eb: null,
- Qb: null,
- m: null,
- dd: !1,
- Yb: null,
- mn: !1,
- tag: f.hK,
- userData: null,
- userObject: null,
- Wk: !0,
- yM: !0,
- Dk: !0,
- Gq: null,
- $Oa: null,
- Pf: null,
- D$: null,
- Sh: !1,
- sd: null,
- arrivalOrder: 0,
- Ql: null,
- nh: null,
- nra: null,
- B$: !1,
- Aq: !1,
- Zy: null,
- Ro: null,
- AM: !1,
- Cn: 0,
- Aw: 0,
- ta: "Node",
- uY: !1,
- nd: "",
- IW: function() {
- this.Eb = r(0, 0);
- this.Qb = r(0, 0);
- this.m = t(0, 0);
- this.oa = r(0, 0);
- this.i = [];
- this.Pf = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- };
- var c = f.Q;
- this.Ql = c.IB();
- this.nh = c.Dm();
- this.B$ = !0;
- this.Zy = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- };
- f.P4 && (this.Ro = new f.P4(this))
- },
- j: function() {
- !1 === this.B$ && this.IW();
- return !0
- },
- Bk: function(c, d) {
- if (c && 0 !== c.length) {
- var e, g = c.length,
- h;
- e = f.v.Fj;
- switch (d) {
- case e.ba:
- for (e = 0; e < g; e++)(h = c[e]) && h.ba();
- break;
- case e.Ra:
- for (e = 0; e < g; e++)(h = c[e]) && h.Ra();
- break;
- case e.sj:
- for (e = 0; e < g; e++)(h = c[e]) && h.sj();
- break;
- case e.De:
- for (e = 0; e < g; e++)(h = c[e]) && h.De();
- break;
- case e.bi:
- for (e = 0; e < g; e++)(h = c[e]) && h.bi();
- break;
- case e.uh:
- for (e = 0; e < g; e++)(h = c[e]) && h.uh();
- break;
- case e.kd:
- for (e =
- 0; e < g; e++)(h = c[e]) && h.kd();
- break;
- default:
- f.assert(0, f.l.vma)
- }
- }
- },
- Ha: null,
- Wa: function(c) {
- for (var d in c) this[d] = c[d]
- },
- Uda: function() {
- return this.og
- },
- XI: function(c) {
- this.og = c;
- this.Ha()
- },
- Vda: function() {
- return this.pg
- },
- YI: function(c) {
- this.pg = c;
- this.Ha()
- },
- tl: function(c) {
- this.Ya = c;
- this.Yb && this.Yb.BC(this, c);
- f.Qa.DN(this)
- },
- Cw: function(c) {
- this.Ya = c
- },
- sAa: function() {
- return this.Ya
- },
- NWa: function() {
- f.log(f.l.Cma);
- return this.Ya
- },
- T4a: function(c) {
- f.log(f.l.Nma);
- this.tl(c)
- },
- o3a: function(c) {
- this.Uq != c && (this.Uq =
- c, f.Qa.DN(this))
- },
- bUa: function() {
- return this.Uq
- },
- MBa: function() {
- return this.PG
- },
- XHa: function(c) {
- this.PG = c
- },
- Cx: function() {
- this.bj !== this.hm && f.log(f.l.Ama);
- return this.bj
- },
- yh: function(c) {
- this.bj = this.hm = c;
- this.Cn = 0.017453292519943295 * this.bj;
- this.Aw = 0.017453292519943295 * this.hm;
- this.Ha()
- },
- dBa: function() {
- return this.bj
- },
- M2: function(c) {
- this.bj = c;
- this.Cn = 0.017453292519943295 * this.bj;
- this.Ha()
- },
- eBa: function() {
- return this.hm
- },
- N2: function(c) {
- this.hm = c;
- this.Aw = 0.017453292519943295 * this.hm;
- this.Ha()
- },
- AH: function() {
- this.ka !==
- this.ra && f.log(f.l.Bma);
- return this.ka
- },
- ib: function(c, d) {
- this.ka = c;
- this.ra = d || 0 === d ? d : c;
- this.Ha()
- },
- sP: function() {
- return this.ka
- },
- jb: function(c) {
- this.ka = c;
- this.Ha()
- },
- BH: function() {
- return this.ra
- },
- tb: function(c) {
- this.ra = c;
- this.Ha()
- },
- o: function(c, d) {
- var e = this.oa;
- void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d);
- this.Ha()
- },
- Od: function() {
- return r(this.oa)
- },
- Vc: function() {
- return this.oa.x
- },
- ls: function(c) {
- this.oa.x = c;
- this.Ha()
- },
- Zd: function() {
- return this.oa.y
- },
- Lu: function(c) {
- this.oa.y = c;
- this.Ha()
- },
- Y_: function() {
- return this.i.length
- },
- re: function() {
- return this.i
- },
- V0: function() {
- return this.Na
- },
- za: function(c) {
- this.Na = c;
- this.Ha()
- },
- bk: function() {
- return this.Eb
- },
- S: function(c, d) {
- var e = this.Eb;
- if (void 0 === d) {
- if (c.x === e.x && c.y === e.y) return;
- e.x = c.x;
- e.y = c.y
- } else {
- if (c === e.x && d === e.y) return;
- e.x = c;
- e.y = d
- }
- var g = this.Qb,
- h = this.m;
- g.x = h.width * e.x;
- g.y = h.height * e.y;
- this.Ha()
- },
- bOa: function() {
- return this.Eb
- },
- Uaa: function(c) {
- var d = c.x;
- c = c.y;
- this.Eb.x !== d && (this.Eb.x = d, this.Qb.x = this.m.width * d);
- this.Eb.y !== c && (this.Eb.y = c, this.Qb.y = this.m.height * c);
- this.Ha()
- },
- l$: function() {
- return this.Eb.x
- },
- Xe: function(c) {
- this.Eb.x !== c && (this.Eb.x = c, this.Qb.x = this.m.width * c, this.Ha())
- },
- m$: function() {
- return this.Eb.y
- },
- Ye: function(c) {
- this.Eb.y !== c && (this.Eb.y = c, this.Qb.y = this.m.height * c, this.Ha())
- },
- Bp: function() {
- return this.Qb
- },
- lf: function() {
- return this.m.width
- },
- Uh: function(c) {
- this.m.width = c;
- this.Qb.x = c * this.Eb.x;
- this.Ha()
- },
- Gg: function() {
- return this.m.height
- },
- Th: function(c) {
- this.m.height = c;
- this.Qb.y = c * this.Eb.y;
- this.Ha()
- },
- e: function() {
- return this.m
- },
- Ga: function(c, d) {
- var e =
- this.m;
- if (void 0 === d) {
- if (c.width === e.width && c.height === e.height) return;
- e.width = c.width;
- e.height = c.height
- } else {
- if (c === e.width && d === e.height) return;
- e.width = c;
- e.height = d
- }
- var g = this.Qb,
- h = this.Eb;
- g.x = e.width * h.x;
- g.y = e.height * h.y;
- this.Ha()
- },
- cDa: function() {
- return this.dd
- },
- getParent: function() {
- return this.Yb
- },
- aq: function(c) {
- this.Yb = c
- },
- YCa: function() {
- return this.mn
- },
- Gm: function(c) {
- c != this.mn && (this.mn = c, this.Ha())
- },
- Em: function() {
- return this.tag
- },
- Nm: function(c) {
- this.tag = c
- },
- gf: function() {
- this.nd
- },
- getName: function() {
- return this.nd
- },
- getUserData: function() {
- return this.userData
- },
- setUserData: function(c) {
- this.userData = c
- },
- JBa: function() {
- return this.userObject
- },
- WHa: function(c) {
- this.userObject != c && (this.userObject = c)
- },
- UUa: function() {
- return this.arrivalOrder
- },
- sha: function(c) {
- this.arrivalOrder = c
- },
- IB: function() {
- this.Ql || (this.Ql = f.Q.IB());
- return this.Ql
- },
- zga: function(c) {
- this.Ql != c && (this.Pm(), this.Ql = c)
- },
- Dm: function() {
- this.nh || (this.nh = f.Q.Dm());
- return this.nh
- },
- Mha: function(c) {
- this.nh != c && (this.pJ(), this.nh = c)
- },
- Ee: function() {
- return f.Fo(x(0,
- 0, this.m.width, this.m.height), this.se())
- },
- De: function() {
- this.Pm();
- this.pJ();
- f.Qa.mga(this);
- this.Bk(this.i, f.v.Fj.De)
- },
- Za: function(c) {
- var d = this.i;
- if (null != d)
- for (var e = 0; e < d.length; e++) {
- var g = d[e];
- if (g && g.tag == c) return g
- }
- return null
- },
- sda: function(c) {
- if (!c) return f.log("Invalid name"), null;
- for (var d = this.i, e = 0, g = d.length; e < g; e++)
- if (d[e].nd == c) return d[e];
- return null
- },
- n: function(c, d, e) {
- f.assert(c, f.l.yma);
- c === this ? f.log(f.l.wma) : null !== c.Yb ? f.log(f.l.xma) : (d = null != d ? d : c.Ya, c.tag = null != e ? e : c.tag, this.Gsa(c,
- d), c.Yb = this, this.Gq && (c.Gq = this.Gq), this.dd && (c.ba(), this.AM && c.sj()))
- },
- Yp: function(c) {
- this.Yb && (null == c && (c = !0), this.Yb.removeChild(this, c))
- },
- QFa: function(c) {
- f.log(f.l.Hma);
- this.Yp(c)
- },
- removeChild: function(c, d) {
- 0 !== this.i.length && (null == d && (d = !0), -1 < this.i.indexOf(c) && this.$qa(c, d), this.Ha())
- },
- te: function(c, d) {
- c === f.hK && f.log(f.l.Fma);
- var e = this.Za(c);
- null == e ? f.log(f.l.Gma, c) : this.removeChild(e, d)
- },
- Cu: function(c) {
- f.log(f.l.Ema);
- this.Cf(c)
- },
- Cf: function(c) {
- var d = this.i;
- if (null != d) {
- null == c && (c = !0);
- for (var e = 0; e < d.length; e++) {
- var g = d[e];
- g && (this.dd && (g.uh(), g.Ra()), c && g.De(), g.parent = null)
- }
- this.i.length = 0
- }
- },
- $qa: function(c, d) {
- this.dd && (c.uh(), c.Ra());
- d && c.De();
- c.parent = null;
- f.Ld(this.i, c)
- },
- Gsa: function(c, d) {
- this.Sh = !0;
- this.i.push(c);
- c.Cw(d)
- },
- BC: function(c, d) {
- f.assert(c, f.l.Ima);
- this.Sh = !0;
- c.arrivalOrder = f.TQ;
- f.TQ++;
- c.Cw(d);
- this.Ha()
- },
- kd: function() {
- if (this.Sh) {
- var c = this.i,
- d = c.length,
- e, g, h;
- for (e = 1; e < d; e++) {
- h = c[e];
- for (g = e - 1; 0 <= g;) {
- if (h.Ya < c[g].Ya) c[g + 1] = c[g];
- else if (h.Ya === c[g].Ya && h.arrivalOrder <
- c[g].arrivalOrder) c[g + 1] = c[g];
- else break;
- g--
- }
- c[g + 1] = h
- }
- this.Sh = !1
- }
- },
- ma: function() {},
- mJ: function() {
- null != this.Yb && (this.Yb.mJ(), this.Yb.transform())
- },
- ba: function() {
- this.AM = !1;
- this.dd = !0;
- this.Bk(this.i, f.v.Fj.ba);
- this.lk()
- },
- sj: function() {
- this.AM = !0;
- this.Bk(this.i, f.v.Fj.sj)
- },
- uh: function() {
- this.Bk(this.i, f.v.Fj.uh)
- },
- Ra: function() {
- this.dd = !1;
- this.pause();
- this.Bk(this.i, f.v.Fj.Ra);
- this.Ro && this.Ro.kk()
- },
- V: function(c) {
- f.assert(c, f.l.Kma);
- this.actionManager.Gva(c, this, !this.dd);
- return c
- },
- Pm: function() {
- this.actionManager &&
- this.actionManager.iga(this)
- },
- hJ: function(c) {
- this.actionManager.hga(c)
- },
- sIa: function(c) {
- c === f.uy ? f.log(f.l.Oma) : this.actionManager.IFa(c, this)
- },
- eP: function(c) {
- return c === f.uy ? (f.log(f.l.zma), null) : this.actionManager.eP(c, this)
- },
- NUa: function() {
- return this.actionManager.YDa(this)
- },
- ds: function() {
- this.xga(0)
- },
- xga: function(c) {
- this.scheduler.UQ(this, c, !this.dd)
- },
- UC: function() {
- this.scheduler.qJ(this)
- },
- Ux: function(c, d, e, g) {
- d = d || 0;
- f.assert(c, f.l.Lma);
- f.assert(0 <= d, f.l.Mma);
- e = null == e ? f.mv : e;
- this.scheduler.g2(this,
- c, d, e, g || 0, !this.dd)
- },
- Y1a: function(c, d) {
- this.Ux(c, 0, 0, d)
- },
- Tu: function(c) {
- c && this.scheduler.A3(this, c)
- },
- pJ: function() {
- this.scheduler.Bia(this)
- },
- K1a: function() {
- f.log(f.l.Jma);
- this.lk()
- },
- lk: function() {
- this.scheduler.Km(this);
- this.actionManager && this.actionManager.Km(this);
- f.Qa.Km(this)
- },
- k0a: function() {
- f.log(f.l.Dma);
- this.pause()
- },
- pause: function() {
- this.scheduler.as(this);
- this.actionManager && this.actionManager.as(this);
- f.Qa.as(this)
- },
- rGa: function(c) {
- this.Zy = c;
- this.Aq = this.Wk = !0
- },
- g0a: function() {
- this.yM &&
- (this.D$ = f.SR(this.se()), this.yM = !1);
- return this.D$
- },
- il: function() {
- for (var c = this.se(), d = this.Yb; null != d; d = d.parent) c = f.Vg(c, d.se());
- return c
- },
- oJa: function() {
- return f.SR(this.il())
- },
- yi: function(c) {
- return f.lv(c, this.oJa())
- },
- um: function(c) {
- c = c || r(0, 0);
- return f.lv(c, this.il())
- },
- gxa: function(c) {
- return f.gc(this.yi(c), this.Qb)
- },
- zQa: function(c) {
- c = c || r(0, 0);
- return this.um(f.Tp(c, this.Qb))
- },
- FNa: function(c) {
- c = this.um(c);
- return f.Q.hxa(c)
- },
- yp: function(c) {
- return this.yi(c.cf())
- },
- AQa: function(c) {
- c = c.cf();
- c =
- f.Q.fxa(c);
- return this.gxa(c)
- },
- update: function(c) {
- this.Ro && !this.Ro.Jea() && this.Ro.I(c)
- },
- bi: function() {
- this.Bk(this.i, f.v.Fj.bi)
- },
- OQ: function() {},
- wh: function() {},
- uda: function(c) {
- return this.Ro.uda(c)
- },
- fu: function(c) {
- this.Ro.add(c)
- },
- k1a: function(c) {
- return this.Ro.remove(c)
- },
- X0a: function() {
- this.Ro.kk()
- },
- grid: null,
- ctor: null,
- I: null,
- transform: null,
- se: null,
- En: function() {
- if (!1 === this.Dk) {
- this.Dk = !0;
- var c = this.Gq;
- c && c != this && c.En()
- }
- },
- fY: function(c) {
- if (this.Gq != c) {
- this.Gq = c;
- for (var d = this.i, e = 0, g = d.length; e <
- g; e++) d[e].fY(c)
- }
- },
- yx: function() {
- this.Hq || (this.Hq = new f.rD);
- return this.Hq
- },
- vH: function() {
- return this.grid
- },
- UGa: function(c) {
- this.grid = c
- },
- m0: function() {
- return this.sd
- },
- WI: function(c) {
- this.sd = c
- },
- Zza: function() {
- return this.EW
- },
- TGa: function(c) {
- this.EW = c
- },
- Dza: function() {
- var c = x(0, 0, this.m.width, this.m.height),
- d = this.il(),
- c = f.Ki(c, this.il());
- if (!this.i) return c;
- for (var e = this.i, g = 0; g < e.length; g++) {
- var h = e[g];
- h && h.Na && (h = h.uF(d)) && (c = f.zC(c, h))
- }
- return c
- },
- uF: function(c) {
- var d = x(0, 0, this.m.width, this.m.height);
- c = null == c ? this.se() : f.Vg(this.se(), c);
- d = f.Ki(d, c);
- if (!this.i) return d;
- for (var e = this.i, g = 0; g < e.length; g++) {
- var h = e[g];
- h && h.Na && (h = h.uF(c)) && (d = f.zC(d, h))
- }
- return d
- },
- VM: function() {
- if (this.Wk) {
- var c = this.oa.x,
- d = this.oa.y,
- e = this.Qb.x,
- g = -e,
- h = this.Qb.y,
- k = -h,
- m = this.ka,
- n = this.ra;
- this.mn && (c += e, d += h);
- var p = 1,
- s = 0,
- u = 1,
- v = 0;
- if (0 !== this.bj || 0 !== this.hm) p = Math.cos(-this.Cn), s = Math.sin(-this.Cn), u = Math.cos(-this.Aw), v = Math.sin(-this.Aw);
- var z = this.og || this.pg;
- z || 0 === e && 0 === h || (c += u * g * m + -s * k * n, d += v * g * m + p * k * n);
- var A =
- this.Pf;
- A.a = u * m;
- A.b = v * m;
- A.G = -s * n;
- A.P = p * n;
- A.pa = c;
- A.qa = d;
- z && (A = f.Vg({
- a: 1,
- b: Math.tan(f.sg(this.pg)),
- G: Math.tan(f.sg(this.og)),
- P: 1,
- pa: 0,
- qa: 0
- }, A), 0 !== e || 0 !== h) && (A = f.xJ(A, g, k));
- this.Aq && (A = f.Vg(A, this.Zy), this.Aq = !1);
- this.Pf = A;
- this.Wk = !1
- }
- return this.Pf
- }
- });
- f.v.create = function() {
- return new f.v
- };
- f.v.Fj = {
- ba: 1,
- Ra: 2,
- De: 3,
- sj: 4,
- bi: 5,
- uh: 6,
- kd: 7
- };
- f.K === f.fb ? (q = f.v.prototype, q.ctor = function() {
- this.IW()
- }, q.Ha = function() {
- this.En();
- !1 === this.Wk && (this.Wk = this.yM = !0)
- }, q.I = function(c) {
- if (this.Na) {
- c = c || f.s;
- var d, e = this.i,
- g;
- c.save();
- this.transform(c);
- var h = e.length;
- if (0 < h) {
- this.kd();
- for (d = 0; d < h; d++)
- if (g = e[d], 0 > g.Ya) g.I(c);
- else break;
- for (this.ma(c); d < h; d++) e[d].I(c)
- } else this.ma(c);
- this.Dk = !1;
- this.arrivalOrder = 0;
- c.restore()
- }
- }, q.transform = function(c) {
- c = c || f.s;
- var d = f.view,
- e = this.se();
- c.transform(e.a, e.G, e.b, e.P, e.pa * d.ka, -e.qa * d.ra)
- }, q.se = function() {
- if (this.Wk) {
- var c =
- this.Pf;
- c.pa = this.oa.x;
- c.qa = this.oa.y;
- var d = 1,
- e = 0;
- this.bj && (d = Math.cos(this.Cn), e = Math.sin(this.Cn));
- c.a = c.P = d;
- c.b = -e;
- c.G = e;
- var g = this.ka,
- h = this.ra,
- k = this.Qb.x,
- m = this.Qb.y,
- n = 1E-6 > g && -1E-6 < g ? 1E-6 : g,
- p = 1E-6 > h && -1E-6 < h ? 1E-6 : h;
- if (this.og || this.pg) {
- var s = Math.tan(-this.og * Math.PI / 180),
- u = Math.tan(-this.pg * Math.PI / 180);
- Infinity === s && (s = 99999999);
- Infinity === u && (u = 99999999);
- var v = m * s * n,
- z = k * u * p;
- c.a = d + -e * u;
- c.b = d * s + -e;
- c.G = e + d * u;
- c.P = e * s + d;
- c.pa += d * v + -e * z;
- c.qa += e * v + d * z
- }
- if (1 !== g || 1 !== h) c.a *= n, c.G *= n, c.b *= p, c.P *= p;
- c.pa += d * -k * n + -e * m * p;
- c.qa -= e * -k * n + d * m * p;
- this.mn && (c.pa += k, c.qa += m);
- this.Aq && (this.Pf = f.Vg(c, this.Zy), this.Aq = !1);
- this.Wk = !1
- }
- return this.Pf
- }, q = null) : (f.assert("function" === typeof f.U.yU, f.l.Hf, "BaseNodesWebGL.js"), f.U.yU(), delete f.U.yU);
- f.assert("function" === typeof f.U.uT, f.l.Hf, "BaseNodesPropertyDefine.js");
- f.U.uT();
- delete f.U.uT;
- f.ja = f.v.extend({
- wb: !0,
- kb: 255,
- Lg: 255,
- Ab: null,
- rd: null,
- dg: !1,
- Dg: !1,
- ctor: function() {
- f.v.prototype.ctor.call(this);
- this.Lg = this.kb = 255;
- this.Ab = f.color(255, 255, 255, 255);
- this.rd = f.color(255, 255, 255, 255);
- this.Dg = this.dg = !1
- },
- Jd: function() {},
- vb: function() {
- return this.Lg
- },
- wda: function() {
- return this.kb
- },
- J: function(c) {
- this.kb = this.Lg = c;
- var d = 255,
- e = this.Yb;
- e && e.wb && e.cascadeOpacity && (d = e.kb);
- this.hc(d);
- this.Ab.a = this.rd.a = c
- },
- hc: function(c) {
- this.kb = this.Lg * c / 255;
- if (this.Dg) {
- c = this.i;
- for (var d = 0; d < c.length; d++) {
- var e =
- c[d];
- e && e.wb && e.hc(this.kb)
- }
- }
- },
- WH: function() {
- return this.Dg
- },
- Hu: function(c) {
- this.Dg !== c && ((this.Dg = c) ? this.Iz() : this.MV())
- },
- Iz: function() {
- var c = 255,
- d = this.Yb;
- d && d.wb && d.cascadeOpacity && (c = d.kb);
- this.hc(c)
- },
- MV: function() {
- this.kb = this.Lg;
- for (var c = this.i, d = 0; d < c.length; d++) {
- var e = c[d];
- e && e.wb && e.hc(255)
- }
- },
- $a: function() {
- var c = this.rd;
- return f.color(c.r, c.g, c.b, c.a)
- },
- ou: function() {
- var c = this.Ab;
- return f.color(c.r, c.g, c.b, c.a)
- },
- F: function(c) {
- var d = this.Ab,
- e = this.rd;
- d.r = e.r = c.r;
- d.g = e.g = c.g;
- d.b = e.b = c.b;
- d = (d = this.Yb) && d.wb && d.cascadeColor ? d.ou() : f.color.WHITE;
- this.Wb(d);
- void 0 === c.a || c.Yw || this.J(c.a)
- },
- Wb: function(c) {
- var d = this.Ab,
- e = this.rd;
- d.r = 0 | e.r * c.r / 255;
- d.g = 0 | e.g * c.g / 255;
- d.b = 0 | e.b * c.b / 255;
- if (this.dg)
- for (c = this.i, e = 0; e < c.length; e++) {
- var g = c[e];
- g && g.wb && g.Wb(d)
- }
- },
- VH: function() {
- return this.dg
- },
- Gu: function(c) {
- this.dg !== c && ((this.dg = c) ? this.Hz() : this.LV())
- },
- Hz: function() {
- var c;
- c = (c = this.Yb) && c.wb && c.cascadeColor ? c.ou() : f.color.WHITE;
- this.Wb(c)
- },
- LV: function() {
- var c = this.Ab,
- d = this.rd;
- c.r = d.r;
- c.g = d.g;
- c.b = d.b;
- for (var c = this.i, d = f.color.WHITE, e = 0; e < c.length; e++) {
- var g = c[e];
- g && g.wb && g.Wb(d)
- }
- },
- n: function(c, d, e) {
- f.v.prototype.n.call(this, c, d, e);
- this.dg && this.Hz();
- this.Dg && this.Iz()
- },
- ee: function() {},
- vg: function() {
- return !1
- }
- });
- f.ja.create = function() {
- var c = new f.ja;
- c.j();
- return c
- };
- f.assert("function" === typeof f.U.vT, f.l.Hf, "BaseNodesPropertyDefine.js");
- f.U.vT();
- delete f.U.vT;
- f.v.bMa = 0;
- f.v.dMa = 1;
- f.v.cMa = 2;
- f.v.eMa = 3;
- f.v.aMa = 4;
- f.hq = f.ja.extend({
- textureAtlas: null,
- quadsToDraw: 0,
- wb: !0,
- jA: 0,
- O$: 0,
- Sj: 0,
- Ti: 0,
- Nq: null,
- Jb: !1,
- B: null,
- pM: !1,
- ta: "AtlasNode",
- ctor: function(c, d, e, g) {
- f.ja.prototype.ctor.call(this);
- this.Nq = f.color.WHITE;
- this.B = {
- src: f.Mc,
- ha: f.Lc
- };
- this.pM = !1;
- void 0 !== g && this.CCa(c, d, e, g)
- },
- VC: function() {
- f.log(f.l.jja)
- },
- $a: function() {
- return this.Jb ? this.Nq : f.ja.prototype.$a.call(this)
- },
- ee: function(c) {
- var d = this.color;
- this.Jb = c;
- this.color = d
- },
- vg: function() {
- return this.Jb
- },
- ck: function() {
- return this.B
- },
- ce: function(c, d) {
- this.B = void 0 ===
- d ? c : {
- src: c,
- ha: d
- }
- },
- U2: function(c) {
- this.textureAtlas = c
- },
- DH: function() {
- return this.textureAtlas
- },
- xVa: function() {
- return this.quadsToDraw
- },
- $3a: function(c) {
- this.quadsToDraw = c
- },
- Vt: null,
- qi: null,
- WY: null,
- XE: null,
- CCa: function(c, d, e, g) {
- if (!c) throw "cc.AtlasNode.initWithTileFile(): title should not be null";
- c = f.nb.vd(c);
- return this.va(c, d, e, g)
- },
- va: null,
- JW: function(c, d, e, g) {
- this.Sj = d;
- this.Ti = e;
- this.Jb = !0;
- this.qi = c;
- if (!this.qi) return f.log(f.l.P3), !1;
- this.Vt = this.qi;
- this.jL();
- this.quadsToDraw = g;
- return !0
- },
- KW: function(c,
- d, e, g) {
- this.Sj = d;
- this.Ti = e;
- this.Nq = f.color.WHITE;
- this.Jb = !0;
- this.B.src = f.Mc;
- this.B.ha = f.Lc;
- d = this.rd;
- this.XE = new Float32Array([d.r / 255, d.g / 255, d.b / 255, this.Lg / 255]);
- this.textureAtlas = new f.wq;
- this.textureAtlas.va(c, g);
- if (!this.textureAtlas) return f.log(f.l.P3), !1;
- this.Yk();
- this.Eba();
- this.jL();
- this.quadsToDraw = g;
- this.shaderProgram = f.xg.be(f.uK);
- this.WY = f.s.getUniformLocation(this.shaderProgram.Bx(), "u_color");
- return !0
- },
- ma: null,
- fn: function(c) {
- c = c || f.s;
- f.qC(this);
- f.Fm(this.B.src, this.B.ha);
- this.WY &&
- this.XE && (c.uniform4fv(this.WY, this.XE), this.textureAtlas.Vca(this.quadsToDraw))
- },
- F: null,
- nua: function(c) {
- var d = this.rd;
- if (d.r != c.r || d.g != c.g || d.b != c.b) {
- d = f.color(c.r, c.g, c.b);
- this.Nq = c;
- if (this.Jb) {
- var e = this.kb;
- d.r = d.r * e / 255;
- d.g = d.g * e / 255;
- d.b = d.b * e / 255
- }
- f.ja.prototype.F.call(this, c);
- this.texture && (c = this.qi.md) && (d = f.nb.vP(c)) && (c = f.HB(c, d, this.rd, x(0, 0, c.width, c.height)), d = new f.Pa, d.sh(c), d.$d(), this.texture = d)
- }
- },
- oua: function(c) {
- var d = f.color(c.r, c.g, c.b);
- this.Nq = c;
- var e = this.kb;
- this.Jb && (d.r = d.r *
- e / 255, d.g = d.g * e / 255, d.b = d.b * e / 255);
- f.ja.prototype.F.call(this, c);
- c = this.Ab;
- this.XE = new Float32Array([c.r / 255, c.g / 255, c.b / 255, e / 255])
- },
- J: function() {},
- lY: function(c) {
- f.ja.prototype.J.call(this, c);
- this.Jb && (this.color = this.Nq)
- },
- mY: function(c) {
- f.ja.prototype.J.call(this, c);
- this.Jb ? this.color = this.Nq : (c = this.Ab, this.XE = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.kb / 255]))
- },
- sb: null,
- xF: function() {
- return this.Vt
- },
- BW: function() {
- return this.textureAtlas.texture
- },
- ab: null,
- qY: function(c) {
- this.Vt = c
- },
- rY: function(c) {
- this.textureAtlas.texture =
- c;
- this.Yk();
- this.Eba()
- },
- jL: null,
- Bqa: function() {
- var c = this.texture.e();
- this.O$ = 0 | c.height / this.Ti;
- this.jA = 0 | c.width / this.Sj
- },
- Cqa: function() {
- var c = this.texture,
- d = c.e();
- this.pM && (d = c.m);
- this.O$ = 0 | d.height / this.Ti;
- this.jA = 0 | d.width / this.Sj
- },
- Yk: function() {
- this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA)
- },
- Eba: function() {
- this.Jb = this.textureAtlas.texture.Ep()
- },
- iY: function(c) {
- this.pM = c
- }
- });
- q = f.hq.prototype;
- f.K === f.na ? (q.va = q.KW, q.ma = q.fn, q.F = q.oua, q.J = q.mY, q.sb = q.BW, q.ab = q.rY, q.jL = q.Cqa) : (q.va = q.JW, q.ma = f.v.prototype.ma, q.F = q.nua, q.J = q.lY, q.sb = q.xF, q.ab = q.qY, q.jL = q.Bqa);
- f.d(q, "opacity", q.vb, q.J);
- f.d(q, "color", q.$a, q.F);
- f.d(q, "texture", q.sb, q.ab);
- f.hq.create = function(c, d, e, g) {
- return new f.hq(c, d, e, g)
- };
- f.U.EU = function() {
- f.Pa = f.N.extend({
- HOa: !0,
- gp: null,
- kr: 0,
- jr: 0,
- nd: "",
- m: null,
- Pp: 0,
- Qp: 0,
- oM: !1,
- Zz: !1,
- shaderProgram: null,
- ie: !1,
- md: null,
- Wh: null,
- url: null,
- dc: null,
- ctor: function() {
- this.m = t(0, 0);
- this.gp = f.Pa.Ica
- },
- W1: function() {
- this.Wh && f.s.deleteTexture(this.Wh);
- f.L.wh(this.url)
- },
- Nda: function() {
- return this.gp
- },
- h0: function() {
- return this.kr
- },
- g0: function() {
- return this.jr
- },
- getName: function() {
- return this.Wh
- },
- e: function() {
- return t(this.m.width / f.Uc(), this.m.height / f.Uc())
- },
- lf: function() {
- return this.m.width / f.Uc()
- },
- Gg: function() {
- return this.m.height / f.Uc()
- },
- Kza: function() {
- return this.m
- },
- zAa: function() {
- return this.Pp
- },
- eHa: function(c) {
- this.Pp = c
- },
- AAa: function() {
- return this.Qp
- },
- fHa: function(c) {
- this.Qp = c
- },
- m0: function() {
- return this.shaderProgram
- },
- WI: function(c) {
- this.shaderProgram = c
- },
- Ep: function() {
- return this.oM
- },
- YBa: function() {
- return this.Zz
- },
- description: function() {
- return "\x3ccc.Texture2D | Name \x3d " + this.nd + " | Dimensions \x3d " + this.kr + " x " + this.jr + " | Coordinates \x3d (" + this.Pp + ", " + this.Qp + ")\x3e"
- },
- GFa: function() {},
- kDa: function(c) {
- return c
- },
- su: function(c, d, e, g, h) {
- var k = f.Pa,
- m = f.s,
- n = m.RGBA,
- p = m.UNSIGNED_BYTE,
- s = e * f.Pa.p8[d] / 8;
- 0 === s % 8 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 8) : 0 === s % 4 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 4) : 0 === s % 2 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 2) : m.pixelStorei(m.UNPACK_ALIGNMENT, 1);
- this.Wh = m.createTexture();
- f.Ai(this);
- m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MIN_FILTER, m.LINEAR);
- m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MAG_FILTER, m.LINEAR);
- m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_S, m.CLAMP_TO_EDGE);
- m.texParameteri(m.TEXTURE_2D,
- m.TEXTURE_WRAP_T, m.CLAMP_TO_EDGE);
- switch (d) {
- case k.sq:
- n = m.RGBA;
- break;
- case k.dE:
- n = m.RGB;
- break;
- case k.jK:
- p = m.UNSIGNED_SHORT_4_4_4_4;
- break;
- case k.iK:
- p = m.UNSIGNED_SHORT_5_5_5_1;
- break;
- case k.cE:
- p = m.UNSIGNED_SHORT_5_6_5;
- break;
- case k.nT:
- n = m.LUMINANCE_ALPHA;
- break;
- case k.bE:
- n = m.ALPHA;
- break;
- case k.oT:
- n = m.LUMINANCE;
- break;
- default:
- f.assert(0, f.l.Yoa)
- }
- m.texImage2D(m.TEXTURE_2D, 0, n, e, g, 0, n, p, c);
- this.m.width = h.width;
- this.m.height = h.height;
- this.kr = e;
- this.jr = g;
- this.gp = d;
- this.Pp = h.width / e;
- this.Qp = h.height / g;
- this.Zz =
- this.oM = !1;
- this.shaderProgram = f.xg.be(f.jE);
- return this.ie = !0
- },
- cya: function(c) {
- var d = [0, this.Qp, this.Pp, this.Qp, 0, 0, this.Pp, 0],
- e = this.kr * this.Pp,
- g = this.jr * this.Qp;
- c = [c.x, c.y, 0, e + c.x, c.y, 0, c.x, g + c.y, 0, e + c.x, g + c.y, 0];
- f.wf(f.Gh | f.Wy);
- this.sd.Ff();
- this.sd.dJ();
- f.Ai(this);
- e = f.s;
- e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, c);
- e.vertexAttribPointer(f.$g, 2, e.FLOAT, !1, 0, d);
- e.drawArrays(e.TRIANGLE_STRIP, 0, 4)
- },
- fya: function(c) {
- var d = [0, this.Qp, this.Pp, this.Qp, 0, 0, this.Pp, 0];
- 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
- ];
- f.wf(f.Gh | f.Wy);
- this.sd.Ff();
- this.sd.dJ();
- f.Ai(this);
- var e = f.s;
- e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, c);
- e.vertexAttribPointer(f.$g, 2, e.FLOAT, !1, 0, d);
- e.drawArrays(e.TRIANGLE_STRIP, 0, 4)
- },
- Bea: function(c) {
- if (null == c) return f.log(f.l.apa), !1;
- var d = c.RBa(),
- e = c.aAa(),
- g = f.tB.MF;
- if (d > g || e > g) return f.log(f.l.bpa, d, e, g, g), !1;
- this.ie = !0;
- return this.ysa(c, d, e)
- },
- sh: function(c) {
- c && (this.Wh = f.s.createTexture(), this.md = c)
- },
- cAa: function() {
- return this.md
- },
- ZCa: function() {
- return this.ie
- },
- $d: function() {
- if (f.uN) {
- if (!this.md) {
- var c = f.L.zd(this.url);
- if (!c) return;
- this.sh(c)
- }
- this.md.width && this.md.height && (this.ie = !0, c = f.s, f.Ai(this), c.pixelStorei(c.UNPACK_ALIGNMENT, 4), c.texImage2D(c.TEXTURE_2D, 0, c.RGBA, c.RGBA, c.UNSIGNED_BYTE, this.md), 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 =
- f.xg.be(f.jE), f.Ai(null), c = this.md.height, this.kr = this.m.width = this.md.width, this.jr = this.m.height = c, this.gp = f.Pa.sq, this.Qp = this.Pp = 1, this.Zz = this.oM = !1, this.jf())
- }
- },
- xf: function() {
- f.log(f.l.gpa);
- return null
- },
- sCa: function() {
- f.log(f.l.$oa);
- return !1
- },
- wCa: function() {
- f.log(f.l.dpa);
- return !1
- },
- xCa: function() {
- f.log(f.l.fpa);
- return !1
- },
- PHa: function(c) {
- var d = f.s;
- f.assert(this.kr == f.xs(this.kr) && this.jr == f.xs(this.jr) || c.pJa == d.CLAMP_TO_EDGE && c.qJa == d.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
- f.Ai(this);
- d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, c.nfa);
- d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, c.kfa);
- d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, c.pJa);
- d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, c.qJa)
- },
- xGa: function() {
- var c = f.s;
- f.Ai(this);
- this.Zz ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR);
- c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST)
- },
- j2: function() {
- var c = f.s;
- f.Ai(this);
- this.Zz ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST);
- c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST)
- },
- generateMipmap: function() {
- f.assert(this.kr == f.xs(this.kr) && this.jr == f.xs(this.jr), "Mimpap texture only works in POT textures");
- f.Ai(this);
- f.s.generateMipmap(f.s.TEXTURE_2D);
- this.Zz = !0
- },
- vIa: function() {
- return f.Pa.Tpa[this.gp]
- },
- Gwa: function(c) {
- c = c || this.gp;
- var d = f.Pa.p8[c];
- if (null != d) return d;
- f.log(f.l.Xoa,
- c);
- return -1
- },
- ysa: function(c, d, e) {
- var g = f.Pa,
- h = c.getData(),
- k = null,
- k = null,
- m = c.WWa(),
- n = t(c.RBa(), c.aAa()),
- p = g.Ica,
- s = c.uSa();
- m || (8 <= s ? p = g.dE : (f.log(f.l.Uoa), p = g.cE));
- var u = d * e;
- if (p == g.cE)
- if (m)
- for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >> 0 & 255) >> 3 << 11 | (k[s] >> 8 & 255) >> 2 << 5 | (k[s] >> 16 & 255) >> 3 << 0;
- else
- for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] & 255) >> 3 << 11 | (k[s] & 255) >> 2 << 5 | (k[s] & 255) >> 3 << 0;
- else if (p == g.jK)
- for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >>
- 0 & 255) >> 4 << 12 | (k[s] >> 8 & 255) >> 4 << 8 | (k[s] >> 16 & 255) >> 4 << 4 | (k[s] >> 24 & 255) >> 4 << 0;
- else if (p == g.iK)
- for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >> 0 & 255) >> 3 << 11 | (k[s] >> 8 & 255) >> 3 << 6 | (k[s] >> 16 & 255) >> 3 << 1 | (k[s] >> 24 & 255) >> 7 << 0;
- else if (p == g.bE)
- for (h = new Uint8Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = k >> 24 & 255;
- if (m && p == g.dE)
- for (k = c.getData(), h = new Uint8Array(d * e * 3), s = 0; s < u; ++s) h[3 * s] = k >> 0 & 255, h[3 * s + 1] = k >> 8 & 255, h[3 * s + 2] = k >> 16 & 255;
- this.su(h, p, d, e, n);
- c.getData();
- this.oM = c.RXa();
- return !0
- },
- oe: function(c,
- d) {
- this.dc || (this.dc = []);
- this.dc.push({
- al: c,
- nj: d
- })
- },
- RFa: function(c) {
- if (this.dc)
- for (var d = this.dc, e = 0; e < d.length; e++) d[e].nj == c && d.splice(e, 1)
- },
- jf: function() {
- if (this.dc) {
- for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
- var g = c[d];
- g.al.call(g.nj, this)
- }
- c.length = 0
- }
- }
- })
- };
- f.U.FU = function() {
- var c = f.wq.prototype;
- c.Dw = function() {
- var c = f.s;
- this.Se[0] = c.createBuffer();
- this.Se[1] = c.createBuffer();
- this.vw = c.createBuffer();
- this.KM()
- };
- c.KM = function() {
- var c = f.s;
- c.bindBuffer(c.ARRAY_BUFFER, this.vw);
- c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]);
- c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW)
- };
- c.Vca = function(c) {
- var e;
- e = 0;
- if (0 !== c && this.texture && this.texture.ie) {
- var g = f.s;
- f.Ai(this.texture);
- f.wf(f.tv);
- g.bindBuffer(g.ARRAY_BUFFER,
- this.vw);
- this.dirty && g.bufferData(g.ARRAY_BUFFER, this.kg, g.DYNAMIC_DRAW);
- g.vertexAttribPointer(f.Oc, 3, g.FLOAT, !1, 24, 0);
- g.vertexAttribPointer(f.Mi, 4, g.UNSIGNED_BYTE, !0, 24, 12);
- g.vertexAttribPointer(f.$g, 2, g.FLOAT, !1, 24, 16);
- this.dirty && (this.dirty = !1);
- g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.Se[1]);
- f.n7 ? g.drawElements(g.TRIANGLE_STRIP, 6 * c, g.UNSIGNED_SHORT, 6 * e * this.Tb.BYTES_PER_ELEMENT) : g.drawElements(g.TRIANGLES, 6 * c, g.UNSIGNED_SHORT, 6 * e * this.Tb.BYTES_PER_ELEMENT);
- f.bl++
- }
- }
- };
- f.U.GU = function() {
- var c = f.nb;
- c.$d = function(c) {
- var e = this.uf;
- f.uN || (e = this.LF);
- var g = e[c];
- g || (g = e[c] = new f.Pa, g.url = c);
- g.$d()
- };
- c.vd = function(c, e, g) {
- f.assert(c, f.l.Woa);
- var h = this.uf;
- f.uN || (h = this.LF);
- var k = h[c] || h[f.L.xv[c]];
- if (k) return e && e.call(g), k;
- f.L.zd(c) || (f.L.V8(c) ? f.L.load(c, function() {
- e && e.call(g)
- }) : f.L.jj[c] = f.L.eI(c, function(g, h) {
- if (g) return e ? e(g) : g;
- f.nb.$d(c);
- e && e(null, h)
- }));
- k = h[c] = new f.Pa;
- k.url = c;
- return k
- };
- delete c
- };
- f.U.CT = function() {
- var c = f.Pa;
- c.oMa = function(c) {
- f.ina = c
- };
- c.sq = 2;
- c.dE = 3;
- c.cE = 4;
- c.bE = 5;
- c.oT = 6;
- c.nT = 7;
- c.jK = 8;
- c.iK = 7;
- c.x6 = 9;
- c.w6 = 10;
- c.Yma = c.sq;
- var d = f.Pa.Tpa = {};
- d[c.sq] = "RGBA8888";
- d[c.dE] = "RGB888";
- d[c.cE] = "RGB565";
- d[c.bE] = "A8";
- d[c.oT] = "I8";
- d[c.nT] = "AI88";
- d[c.jK] = "RGBA4444";
- d[c.iK] = "RGB5A1";
- d[c.x6] = "PVRTC4";
- d[c.w6] = "PVRTC2";
- d = f.Pa.p8 = {};
- d[c.sq] = 32;
- d[c.dE] = 24;
- d[c.cE] = 16;
- d[c.bE] = 8;
- d[c.oT] = 8;
- d[c.nT] = 16;
- d[c.jK] = 16;
- d[c.iK] = 16;
- d[c.x6] = 4;
- d[c.w6] = 3;
- d = f.Pa.prototype;
- f.d(d, "name", d.getName);
- f.d(d, "pixelFormat", d.Nda);
- f.d(d, "pixelsWidth", d.h0);
- f.d(d, "pixelsHeight", d.g0);
- f.d(d, "width", d.lf);
- f.d(d, "height", d.Gg);
- c.Ica = c.Yma
- };
- f.U.DT = function() {
- var c = f.wq.prototype;
- f.d(c, "totalQuads", c.gea);
- f.d(c, "capacity", c.qda);
- f.d(c, "quads", c.Oda, c.Hha)
- };
- f.xJa = 51;
- f.AJa = 19;
- f.CJa = 18;
- f.zJa = 50;
- f.wJa = 34;
- f.uJa = 35;
- f.vJa = 33;
- f.yJa = 49;
- f.BJa = 17;
- f.ina = !1;
- f.K === f.fb ? f.Pa = f.N.extend({
- m: null,
- ie: !1,
- md: null,
- dc: null,
- url: null,
- ctor: function() {
- this.m = t(0, 0);
- this.ie = !1;
- this.md = null
- },
- h0: function() {
- return this.m.width
- },
- g0: function() {
- return this.m.height
- },
- e: function() {
- var c = f.Uc();
- return t(this.m.width / c, this.m.height / c)
- },
- lf: function() {
- return this.m.width / f.Uc()
- },
- Gg: function() {
- return this.m.height / f.Uc()
- },
- Kza: function() {
- return this.m
- },
- sh: function(c) {
- c && (this.md = c)
- },
- cAa: function() {
- return this.md
- },
- ZCa: function() {
- return this.ie
- },
- $d: function() {
- if (!this.ie) {
- if (!this.md) {
- var c =
- f.L.zd(this.url);
- if (!c) return;
- this.sh(c)
- }
- this.ie = !0;
- c = this.md;
- this.m.width = c.width;
- this.m.height = c.height;
- this.jf()
- }
- },
- description: function() {
- return "\x3ccc.Texture2D | width \x3d " + this.m.width + " height " + this.m.height + "\x3e"
- },
- su: function() {
- return !1
- },
- Bea: function() {
- return !1
- },
- xf: function() {
- return !1
- },
- W1: function() {},
- getName: function() {
- return null
- },
- zAa: function() {
- return 1
- },
- eHa: function() {},
- AAa: function() {
- return 1
- },
- fHa: function() {},
- Nda: function() {
- return null
- },
- m0: function() {
- return null
- },
- WI: function() {},
- Ep: function() {
- return !1
- },
- YBa: function() {
- return !1
- },
- GFa: function() {},
- kDa: function(c) {
- return c
- },
- cya: function() {},
- fya: function() {},
- sCa: function() {
- f.log(f.l.Zoa);
- return !1
- },
- wCa: function() {
- f.log(f.l.cpa);
- return !1
- },
- xCa: function() {
- f.log(f.l.epa);
- return !1
- },
- PHa: function() {},
- xGa: function() {},
- j2: function() {},
- generateMipmap: function() {},
- vIa: function() {
- return ""
- },
- Gwa: function() {
- return -1
- },
- oe: function(c, d) {
- this.dc || (this.dc = []);
- this.dc.push({
- al: c,
- nj: d
- })
- },
- RFa: function(c) {
- if (this.dc)
- for (var d = this.dc, e = 0; e < d.length; e++) d[e].nj ==
- c && d.splice(e, 1)
- },
- jf: function() {
- if (this.dc) {
- for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
- var g = c[d];
- g.al.call(g.nj, this)
- }
- c.length = 0
- }
- }
- }) : (f.assert("function" === typeof f.U.EU, f.l.Hf, "TexturesWebGL.js"), f.U.EU(), delete f.U.EU);
- f.assert("function" === typeof f.U.CT, f.l.Hf, "TexturesPropertyDefine.js");
- f.U.CT();
- delete f.U.CT;
- f.nb = {
- uf: {},
- DG: {},
- RY: 0 | 1E3 * Math.random(),
- LF: {},
- Fsa: function() {
- var c, d = this.LF,
- e = this.uf;
- for (c in d) {
- var g = d[c];
- g.$d();
- e[c] = g
- }
- this.LF = {}
- },
- yPa: function() {
- f.log(f.l.BIa)
- },
- mPa: function() {
- f.log(f.l.zIa)
- },
- description: function() {
- return "\x3cTextureCache | Number of textures \x3d " + this.uf.length + "\x3e"
- },
- Ru: function(c) {
- return this.uf[c] || this.uf[f.L.xv[c]]
- },
- mAa: function(c) {
- for (var d in this.uf)
- if (this.uf[d] == c) return d;
- return null
- },
- yra: function() {
- this.RY++;
- return "_textureKey_" + this.RY
- },
- vP: function(c) {
- var d =
- this.mAa(c);
- d || (d = c instanceof HTMLImageElement ? c.src : this.yra());
- this.DG[d] || (this.DG[d] = f.GB(c));
- return this.DG[d]
- },
- xPa: function() {
- f.log(f.l.AIa)
- },
- c1a: function() {
- var c = this.uf,
- d;
- for (d in c) c[d] && c[d].W1();
- this.uf = {}
- },
- z1a: function(c) {
- if (c) {
- var d = this.uf,
- e;
- for (e in d) d[e] == c && (d[e].W1(), delete d[e])
- }
- },
- A1a: function(c) {
- null != c && this.uf[c] && delete this.uf[c]
- },
- Mwa: function(c, d) {
- if (d instanceof f.Pa) this.uf[c] = d;
- else {
- var e = new f.Pa;
- e.sh(d);
- e.$d();
- this.uf[c] = e
- }
- },
- EPa: function(c, d) {
- f.assert(c, f.l.DIa);
- if (d &&
- this.uf[d]) return this.uf[d];
- var e = new f.Pa;
- e.Bea(c);
- null != d && null != e ? this.uf[d] = e : f.log(f.l.CIa);
- return e
- },
- gRa: function() {
- var c = 0,
- d = 0,
- e = this.uf,
- g;
- for (g in e) {
- var h = e[g];
- c++;
- h.md instanceof HTMLImageElement ? f.log(f.l.EIa, g, h.md.src, h.pixelsWidth, h.pixelsHeight) : f.log(f.l.tia, g, h.pixelsWidth, h.pixelsHeight);
- d += h.pixelsWidth * h.pixelsHeight * 4
- }
- e = this.DG;
- for (g in e) {
- var h = e[g],
- k;
- for (k in h) {
- var m = h[k];
- c++;
- f.log(f.l.tia, g, m.width, m.height);
- d += m.width * m.height * 4
- }
- }
- f.log(f.l.FIa, c, d / 1024, (d / 1048576).toFixed(2))
- },
- Vs: function() {
- this.uf = {};
- this.DG = {};
- this.RY = 0 | 1E3 * Math.random();
- this.LF = {}
- }
- };
- f.K === f.fb ? (q = f.nb, q.$d = function(c) {
- var d = this.uf,
- e = d[c];
- e || (e = d[c] = new f.Pa, e.url = c);
- e.$d()
- }, q.vd = function(c, d, e) {
- f.assert(c, f.l.Voa);
- var g = this.uf,
- h = g[c] || g[f.L.xv[c]];
- if (h) return d && d.call(e), h;
- h = g[c] = new f.Pa;
- h.url = c;
- f.L.zd(c) ? h.$d() : f.L.V8(c) ? f.L.load(c, function() {
- d && d.call(e)
- }) : f.L.jj[c] = f.L.eI(c, function(e, g) {
- if (e) return d ? d(e) : e;
- f.nb.$d(c);
- d && d(null, g)
- });
- return h
- }, q = null) : (f.assert("function" === typeof f.U.GU, f.l.Hf, "TexturesWebGL.js"), f.U.GU(), delete f.U.GU);
- f.wq = f.N.extend({
- dirty: !1,
- texture: null,
- Tb: null,
- Se: null,
- cg: 0,
- of: null,
- kg: null,
- vw: null,
- Rk: null,
- ctor: function(c, d) {
- this.Se = [];
- "string" == typeof c ? this.Ge(c, d) : c instanceof f.Pa && this.va(c, d)
- },
- gea: function() {
- return this.Vb
- },
- qda: function() {
- return this.cg
- },
- sb: function() {
- return this.texture
- },
- ab: function(c) {
- this.texture = c
- },
- Sga: function(c) {
- this.dirty = c
- },
- R0: function() {
- return this.dirty
- },
- Oda: function() {
- return this.of
- },
- Hha: function(c) {
- this.of = c
- },
- Uqa: function(c, d) {
- if (c)
- for (var e = 0; e < c.length; e++) this.GN(c[e], d +
- e)
- },
- GN: function(c, d) {
- var e = this.of;
- e[d] ? (e[d].T = c.T, e[d].aa = c.aa, e[d].Z = c.Z, e[d].W = c.W) : e[d] = new f.Yc(c.Z, c.T, c.W, c.aa, this.kg, d * f.Yc.BYTES_PER_ELEMENT)
- },
- description: function() {
- return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Vb + "\x3e"
- },
- aba: function() {
- if (0 !== this.cg)
- for (var c = this.Tb, d = this.cg, e = 0; e < d; e++) f.n7 ? (c[6 * e + 0] = 4 * e + 0, c[6 * e + 1] = 4 * e + 0, c[6 * e + 2] = 4 * e + 2, c[6 * e + 3] = 4 * e + 1, c[6 * e + 4] = 4 * e + 3, c[6 * e + 5] = 4 * e + 3) : (c[6 * e + 0] = 4 * e + 0, c[6 * e + 1] = 4 * e + 1, c[6 * e + 2] = 4 * e + 2, c[6 * e + 3] = 4 * e + 3, c[6 * e + 4] = 4 * e + 2, c[6 * e + 5] = 4 * e + 1)
- },
- Dw: function() {
- var c =
- f.s;
- this.Se[0] = c.createBuffer();
- this.Se[1] = c.createBuffer();
- this.vw = c.createBuffer();
- this.KM()
- },
- KM: function() {
- var c = f.s;
- c.bindBuffer(c.ARRAY_BUFFER, this.vw);
- c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]);
- c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW)
- },
- Ge: function(c, d) {
- var e = f.nb.vd(c);
- if (e) return this.va(e, d);
- f.log(f.l.hpa, c);
- return !1
- },
- va: function(c, d) {
- f.assert(c, f.l.ipa);
- this.cg = d |= 0;
- this.Vb = 0;
- this.texture = c;
- this.of = [];
- this.Tb = new Uint16Array(6 *
- d);
- var e = f.Yc.BYTES_PER_ELEMENT;
- this.kg = new ArrayBuffer(e * d);
- this.Rk = new Uint8Array(this.kg);
- if ((!this.of || !this.Tb) && 0 < d) return !1;
- for (var g = this.of, h = 0; h < d; h++) g[h] = new f.Yc(null, null, null, null, this.kg, h * e);
- this.aba();
- this.Dw();
- return this.dirty = !0
- },
- rJ: function(c, d) {
- f.assert(c, f.l.spa);
- f.assert(0 <= d && d < this.cg, f.l.tpa);
- this.Vb = Math.max(d + 1, this.Vb);
- this.GN(c, d);
- this.dirty = !0
- },
- O0: function(c, d) {
- f.assert(d < this.cg, f.l.lpa);
- this.Vb++;
- if (this.Vb > this.cg) f.log(f.l.z7);
- else {
- var e = f.Yc.BYTES_PER_ELEMENT,
- g = d * e,
- h = (this.Vb - 1 - d) * e;
- this.of[this.Vb - 1] = new f.Yc(null, null, null, null, this.kg, (this.Vb - 1) * e);
- this.Rk.set(this.Rk.subarray(g, g + h), g + e);
- this.GN(c, d);
- this.dirty = !0
- }
- },
- lXa: function(c, d, e) {
- e = e || c.length;
- f.assert(d + e <= this.cg, f.l.mpa);
- var g = f.Yc.BYTES_PER_ELEMENT;
- this.Vb += e;
- if (this.Vb > this.cg) f.log(f.l.z7);
- else {
- var h = d * g,
- k = (this.Vb - 1 - d - e) * g,
- m = this.Vb - 1 - e,
- n;
- for (n = 0; n < e; n++) this.of[m + n] = new f.Yc(null, null, null, null, this.kg, (this.Vb - 1) * g);
- this.Rk.set(this.Rk.subarray(h, h + k), h + g * e);
- for (n = 0; n < e; n++) this.GN(c[n],
- d + n);
- this.dirty = !0
- }
- },
- kXa: function(c, d) {
- if (c !== d) {
- f.assert(0 <= d || d < this.Vb, f.l.jpa);
- f.assert(0 <= c || c < this.Vb, f.l.kpa);
- var e = f.Yc.BYTES_PER_ELEMENT,
- g = this.Rk,
- h = g.subarray(c * e, e),
- k;
- c > d ? (k = d * e, g.set(g.subarray(k, k + (c - d) * e), k + e), g.set(h, k)) : (k = (c + 1) * e, g.set(g.subarray(k, k + (d - c) * e), k - e), g.set(h, d * e));
- this.dirty = !0
- }
- },
- oga: function(c) {
- f.assert(c < this.Vb, f.l.qpa);
- var d = f.Yc.BYTES_PER_ELEMENT;
- this.Vb--;
- this.of.length = this.Vb;
- if (c !== this.Vb) {
- var e = (c + 1) * d;
- this.Rk.set(this.Rk.subarray(e, e + (this.Vb - c) * d), e - d)
- }
- this.dirty = !0
- },
- TFa: function(c, d) {
- f.assert(c + d <= this.Vb, f.l.rpa);
- this.Vb -= d;
- if (c !== this.Vb) {
- var e = f.Yc.BYTES_PER_ELEMENT,
- g = (c + d) * e;
- this.Rk.set(this.Rk.subarray(g, g + (this.Vb - c) * e), c * e)
- }
- this.dirty = !0
- },
- AC: function() {
- this.Vb = this.of.length = 0
- },
- Lt: function(c) {
- this.dirty = c
- },
- NQ: function(c) {
- if (c == this.cg) return !0;
- var d = f.Yc.BYTES_PER_ELEMENT,
- e = this.cg;
- this.Vb = Math.min(this.Vb, c);
- var g = this.cg = 0 | c,
- h = this.Vb;
- if (null == this.of)
- for (this.of = [], this.kg = new ArrayBuffer(d * g), this.Rk = new Uint8Array(this.kg), c = 0; c < g; c++) this.of =
- new f.Yc(null, null, null, null, this.kg, c * d);
- else {
- var k, m, n = this.of;
- if (g > e) {
- k = [];
- m = new ArrayBuffer(d * g);
- for (c = 0; c < h; c++) k[c] = new f.Yc(n[c].Z, n[c].T, n[c].W, n[c].aa, m, c * d);
- for (; c < g; c++) k[c] = new f.Yc(null, null, null, null, m, c * d)
- } else
- for (h = Math.max(h, g), k = [], m = new ArrayBuffer(d * g), c = 0; c < h; c++) k[c] = new f.Yc(n[c].Z, n[c].T, n[c].W, n[c].aa, m, c * d);
- this.Rk = new Uint8Array(m);
- this.of = k;
- this.kg = m
- }
- null == this.Tb ? this.Tb = new Uint16Array(6 * g) : g > e ? (d = new Uint16Array(6 * g), d.set(this.Tb, 0), this.Tb = d) : this.Tb = this.Tb.subarray(0,
- 6 * g);
- this.aba();
- this.KM();
- return this.dirty = !0
- },
- rea: function(c) {
- this.Vb += c
- },
- pfa: function(c, d, e) {
- if (void 0 === e) {
- if (e = d, d = this.Vb - c, f.assert(e + (this.Vb - c) <= this.cg, f.l.npa), 0 === d) return
- } else if (f.assert(e + d <= this.Vb, f.l.opa), f.assert(c < this.Vb, f.l.ppa), c == e) return;
- var g = f.Yc.BYTES_PER_ELEMENT,
- h = c * g,
- k = d * g,
- m = this.Rk,
- n = m.subarray(h, h + k),
- p = e * g;
- e < c ? (d = e * g, m.set(m.subarray(d, d + (c - e) * g), d + k)) : (d = (c + d) * g, m.set(m.subarray(d, d + (e - c) * g), h));
- m.set(n, p);
- this.dirty = !0
- },
- bda: function(c, d) {
- for (var e = d * f.Yc.BYTES_PER_ELEMENT,
- g = new Uint8Array(this.kg, c * f.Yc.BYTES_PER_ELEMENT, e), h = 0; h < e; h++) g[h] = 0
- },
- yB: function() {
- this.Vca(this.Vb)
- },
- KOa: function() {
- var c = f.s;
- this.Se && (this.Se[0] && c.deleteBuffer(this.Se[0]), this.Se[1] && c.deleteBuffer(this.Se[1]));
- this.vw && c.deleteBuffer(this.vw)
- }
- });
- q = f.wq.prototype;
- f.d(q, "totalQuads", q.gea);
- f.d(q, "capacity", q.qda);
- f.d(q, "quads", q.Oda, q.Hha);
- f.wq.create = function(c, d) {
- return new f.wq(c, d)
- };
- f.K === f.na && (f.assert("function" === typeof f.U.FU, f.l.Hf, "TexturesWebGL.js"), f.U.FU(), delete f.U.FU);
- f.assert("function" === typeof f.U.DT, f.l.Hf, "TexturesPropertyDefine.js");
- f.U.DT();
- delete f.U.DT;
- f.tq = f.v.extend({
- ta: "Scene",
- ctor: function() {
- f.v.prototype.ctor.call(this);
- this.mn = !0;
- this.S(0.5, 0.5);
- this.Ga(f.Q.Y)
- }
- });
- f.tq.create = function() {
- return new f.tq
- };
- f.eT = f.tq.extend({
- pt: null,
- Q$: 0,
- AV: 0,
- gg: null,
- ta: "LoaderScene",
- j: function() {
- var c = this,
- d = 200,
- e = c.tqa = f.$f.create(f.color(32, 32, 32, 255));
- e.o(f.qy.KZ);
- c.n(e, 0);
- var g = 24,
- h = -d / 2 + 100;
- f.VW && (f.L.eI(f.VW, {
- Q0: !1
- }, function(e, g) {
- d = g.height;
- c.zsa(g, f.qy.KO)
- }), g = 14, h = -d / 2 - 10);
- g = c.gg = f.ia.create("Loading... 0%", "Arial", g);
- g.o(f.Tp(f.qy.KO, r(0, h)));
- g.F(f.color(180, 180, 180));
- e.n(this.gg, 10);
- return !0
- },
- zsa: function(c, d) {
- var e = new f.Pa;
- e.sh(c);
- e.$d();
- e = f.q.create(e);
- e.ib(f.Uc());
- e.x = d.x;
- e.y = d.y;
- this.tqa.n(e, 10)
- },
- ba: function() {
- f.v.prototype.ba.call(this);
- this.Ux(this.lba, 0.3)
- },
- Ra: function() {
- f.v.prototype.Ra.call(this);
- this.gg.wa("Loading... 0%")
- },
- zCa: function(c, d) {
- "string" == typeof c && (c = [c]);
- this.bGa = c || [];
- this.Yh = d
- },
- lba: function() {
- var c = this;
- c.Tu(c.lba);
- var d = c.bGa;
- c.Q$ = d.length;
- c.AV = 0;
- f.L.load(d, function(d, g) {
- c.AV = g
- }, function() {
- c.Yh && c.Yh()
- });
- c.Ux(c.Fba)
- },
- Fba: function() {
- var c = this.AV,
- d = this.Q$,
- e;
- e = Math.min(c / d * 100 | 0, 100);
- this.gg.wa("Loading... " + e + "%");
- c >= d && this.Tu(this.Fba)
- }
- });
- f.eT.K1 = function(c, d) {
- var e = f;
- e.fI || (e.fI = new f.eT, e.fI.j());
- e.fI.zCa(c, d);
- f.Q.f2(e.fI);
- return e.fI
- };
- f.U.bT = function() {
- var c = f.Me.prototype;
- c.gca = function() {};
- c.Aia = function() {};
- c.I = f.v.prototype.I
- };
- f.U.BU = function() {
- var c = f.$f.prototype;
- c.KN = null;
- c.DY = null;
- c.jZ = null;
- c.xV = null;
- c.FY = null;
- c.EY = null;
- c.ctor = function(c, e, g) {
- this.FY = new ArrayBuffer(32);
- this.EY = new ArrayBuffer(16);
- var h = this.FY,
- k = this.EY,
- m = f.he.BYTES_PER_ELEMENT,
- n = f.Aj.BYTES_PER_ELEMENT;
- this.KN = [new f.he(0, 0, h, 0), new f.he(0, 0, h, m), new f.he(0, 0, h, 2 * m), new f.he(0, 0, h, 3 * m)];
- this.DY = [f.color(0, 0, 0, 255, k, 0), f.color(0, 0, 0, 255, k, n), f.color(0, 0, 0, 255, k, 2 * n), f.color(0, 0, 0, 255, k, 3 * n)];
- this.jZ = f.s.createBuffer();
- this.xV = f.s.createBuffer();
- f.ci.prototype.ctor.call(this);
- this.B = new f.Um(f.Mc, f.Lc);
- f.$f.prototype.j.call(this, c, e, g)
- };
- c.Ga = function(c, e) {
- var g = this.KN;
- void 0 === e ? (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 = e, g[3].x = c, g[3].y = e);
- this.hV();
- f.Me.prototype.Ga.call(this, c, e)
- };
- c.Uh = function(c) {
- var e = this.KN;
- e[1].x = c;
- e[3].x = c;
- this.hV();
- f.Me.prototype.Uh.call(this, c)
- };
- c.Th = function(c) {
- var e = this.KN;
- e[2].y = c;
- e[3].y = c;
- this.hV();
- f.Me.prototype.Th.call(this, c)
- };
- c.Jd = function() {
- for (var c = this.Ab, e = this.kb, g = this.DY, h = 0; 4 > h; h++) g[h].r =
- c.r, g[h].g = c.g, g[h].b = c.b, g[h].a = e;
- this.N8()
- };
- c.ma = function(c) {
- c = c || f.s;
- f.qC(this);
- f.wf(f.Gh | f.HK);
- c.bindBuffer(c.ARRAY_BUFFER, this.jZ);
- c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
- c.bindBuffer(c.ARRAY_BUFFER, this.xV);
- c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 0, 0);
- f.Fm(this.B.src, this.B.ha);
- c.drawArrays(c.TRIANGLE_STRIP, 0, 4)
- };
- c.hV = function() {
- var c = f.s;
- c.bindBuffer(c.ARRAY_BUFFER, this.jZ);
- c.bufferData(c.ARRAY_BUFFER, this.FY, c.STATIC_DRAW)
- };
- c.N8 = function() {
- var c = f.s;
- c.bindBuffer(c.ARRAY_BUFFER,
- this.xV);
- c.bufferData(c.ARRAY_BUFFER, this.EY, c.STATIC_DRAW)
- }
- };
- f.U.CU = function() {
- var c = f.rq.prototype;
- c.ma = f.$f.prototype.ma;
- c.Jd = function() {
- var c = this.Oi,
- e = f.ff(c);
- if (0 !== e) {
- var g = Math.sqrt(2),
- c = r(c.x / e, c.y / e);
- this.sL && (c = f.Up(c, 1 / (Math.abs(c.x) + Math.abs(c.y)) * g));
- var h = this.kb / 255,
- e = this.Ab,
- k = this.Jf,
- e = {
- r: e.r,
- g: e.g,
- b: e.b,
- a: this.TA * h
- },
- h = {
- r: k.r,
- g: k.g,
- b: k.b,
- a: this.Jz * h
- },
- m = this.DY,
- k = m[0],
- n = m[1],
- p = m[2],
- m = m[3];
- k.r = h.r + (g + c.x + c.y) / (2 * g) * (e.r - h.r);
- k.g = h.g + (g + c.x + c.y) / (2 * g) * (e.g - h.g);
- k.b = h.b + (g + c.x + c.y) / (2 * g) * (e.b - h.b);
- k.a = h.a + (g + c.x + c.y) / (2 * g) * (e.a - h.a);
- n.r = h.r + (g -
- c.x + c.y) / (2 * g) * (e.r - h.r);
- n.g = h.g + (g - c.x + c.y) / (2 * g) * (e.g - h.g);
- n.b = h.b + (g - c.x + c.y) / (2 * g) * (e.b - h.b);
- n.a = h.a + (g - c.x + c.y) / (2 * g) * (e.a - h.a);
- p.r = h.r + (g + c.x - c.y) / (2 * g) * (e.r - h.r);
- p.g = h.g + (g + c.x - c.y) / (2 * g) * (e.g - h.g);
- p.b = h.b + (g + c.x - c.y) / (2 * g) * (e.b - h.b);
- p.a = h.a + (g + c.x - c.y) / (2 * g) * (e.a - h.a);
- m.r = h.r + (g - c.x - c.y) / (2 * g) * (e.r - h.r);
- m.g = h.g + (g - c.x - c.y) / (2 * g) * (e.g - h.g);
- m.b = h.b + (g - c.x - c.y) / (2 * g) * (e.b - h.b);
- m.a = h.a + (g - c.x - c.y) / (2 * g) * (e.a - h.a);
- this.N8()
- }
- }
- };
- f.U.AT = function() {
- var c = f.ci.prototype;
- f.d(c, "opacityModifyRGB", c.vg, c.ee);
- f.d(c, "opacity", c.vb, c.J);
- f.d(c, "cascadeOpacity", c.WH, c.Hu);
- f.d(c, "color", c.$a, c.F);
- f.d(c, "cascadeColor", c.VH, c.Gu)
- };
- f.U.yT = function() {
- var c = f.$f.prototype;
- f.d(c, "width", c.lf, c.Uh);
- f.d(c, "height", c.Gg, c.Th)
- };
- f.U.zT = function() {
- var c = f.rq.prototype;
- f.d(c, "startColor", c.uP, c.Tg);
- f.d(c, "endColor", c.lP, c.Sg);
- f.d(c, "startOpacity", c.qBa, c.Sha);
- f.d(c, "endOpacity", c.Tza, c.Vga);
- f.d(c, "vector", c.KBa, c.DR)
- };
- f.Me = f.v.extend({
- Vv: !1,
- bL: null,
- ta: "Layer",
- ctor: function() {
- var c = f.v.prototype;
- c.ctor.call(this);
- this.mn = !0;
- c.S.call(this, 0.5, 0.5);
- c.Ga.call(this, f.gq)
- },
- gca: null,
- Aia: null,
- uXa: function() {
- return this.Vv
- },
- I: null
- });
- f.Me.create = function() {
- return new f.Me
- };
- if (f.K === f.fb) {
- var ga = f.Me.prototype;
- ga.gca = function() {
- if (!this.Vv) {
- this.Vv = this.Dk = !0;
- this.Gq = this;
- for (var c = this.i, d = 0, e = c.length; d < e; d++) c[d].fY(this);
- this.bL || (this.bL = new f.Bja)
- }
- };
- ga.Aia = function() {
- if (this.Vv) {
- this.Vv = !1;
- this.Dk = !0;
- this.Gq = null;
- for (var c = this.i, d = 0, e = c.length; d < e; d++) c[d].fY(null)
- }
- };
- ga.I = function(c) {
- if (this.Vv) {
- c = c || f.s;
- var d, e = this.i,
- g = e.length;
- if (this.Na && 0 !== g) {
- var h = this.bL;
- c.save();
- this.transform(c);
- if (this.Dk) {
- d = this.oW();
- d.width |= 0;
- d.height |= 0;
- var k = h.Pi;
- h.sga(d.width,
- d.height);
- k.translate(0 - d.x, d.height + d.y);
- var m = h.Bp();
- h.o(m.x + d.x, m.y + d.y);
- this.kd();
- for (d = 0; d < g; d++) e[d].I(k);
- this.Dk = !1
- }
- h.I(c);
- this.arrivalOrder = 0;
- c.restore()
- }
- } else f.v.prototype.I.call(this, c)
- };
- ga.oW = function() {
- var c = null;
- if (!this.i || 0 === this.i.length) return x(0, 0, 10, 10);
- for (var d = this.i, e = 0; e < d.length; e++) {
- var g = d[e];
- g && g.Na && (c ? (g = g.uF()) && (c = f.zC(c, g)) : c = g.uF())
- }
- return c
- };
- ga = null
- } else f.assert("function" === typeof f.U.bT, f.l.Hf, "CCLayerWebGL.js"), f.U.bT(), delete f.U.bT;
- f.ci = f.Me.extend({
- wb: !0,
- kb: 255,
- Lg: 255,
- Ab: null,
- rd: null,
- Dg: !1,
- dg: !1,
- ta: "LayerRGBA",
- ctor: function() {
- f.Me.prototype.ctor.call(this);
- this.Ab = f.color(255, 255, 255, 255);
- this.rd = f.color(255, 255, 255, 255)
- },
- j: function() {
- var c = f.Me.prototype;
- this.mn = !0;
- c.S.call(this, 0.5, 0.5);
- c.Ga.call(this, f.gq);
- this.cascadeColor = this.cascadeOpacity = !1;
- return !0
- },
- vb: function() {
- return this.Lg
- },
- wda: function() {
- return this.kb
- },
- J: function(c) {
- this.kb = this.Lg = c;
- var d = 255,
- e = this.Yb;
- e && e.wb && e.cascadeOpacity && (d = e.kb);
- this.hc(d);
- this.Ab.a =
- this.rd.a = c
- },
- hc: function(c) {
- this.kb = 0 | this.Lg * c / 255;
- if (this.Dg) {
- c = this.i;
- for (var d, e = 0; e < c.length; e++)(d = c[e]) && d.wb && d.hc(this.kb)
- }
- },
- WH: function() {
- return this.Dg
- },
- Hu: function(c) {
- this.Dg !== c && ((this.Dg = c) ? this.Iz() : this.MV())
- },
- Iz: function() {
- var c = 255,
- d = this.Yb;
- d && d.wb && d.cascadeOpacity && (c = d.kb);
- this.hc(c)
- },
- MV: function() {
- this.kb = this.Lg;
- for (var c = this.i, d, e = 0; e < c.length; e++)(d = c[e]) && d.wb && d.hc(255)
- },
- $a: function() {
- var c = this.rd;
- return f.color(c.r, c.g, c.b, c.a)
- },
- ou: function() {
- var c = this.Ab;
- return f.color(c.r,
- c.g, c.b)
- },
- F: function(c) {
- var d = this.Ab,
- e = this.rd;
- d.r = e.r = c.r;
- d.g = e.g = c.g;
- d.b = e.b = c.b;
- d = (d = this.Yb) && d.wb && d.cascadeColor ? d.ou() : f.color.WHITE;
- this.Wb(d);
- void 0 === c.a || c.Yw || this.J(c.a)
- },
- Wb: function(c) {
- var d = this.Ab,
- e = this.rd;
- d.r = 0 | e.r * c.r / 255;
- d.g = 0 | e.g * c.g / 255;
- d.b = 0 | e.b * c.b / 255;
- if (this.dg) {
- c = this.i;
- for (var g = 0; g < c.length; g++)(e = c[g]) && e.wb && e.Wb(d)
- }
- },
- VH: function() {
- return this.dg
- },
- Gu: function(c) {
- this.dg !== c && ((this.dg = c) ? this.Hz() : this.LV())
- },
- Hz: function() {
- var c;
- c = (c = this.Yb) && c.wb && c.cascadeColor ?
- c.ou() : f.color.WHITE;
- this.Wb(c)
- },
- LV: function() {
- var c = this.Ab,
- d = this.rd;
- c.r = d.r;
- c.g = d.g;
- c.b = d.b;
- var c = this.i,
- d = f.color.WHITE,
- e, g;
- for (g = 0; g < c.length; g++)(e = c[g]) && e.wb && e.Wb(d)
- },
- n: function(c, d, e) {
- f.v.prototype.n.call(this, c, d, e);
- this.dg && this.Hz();
- this.Dg && this.Iz()
- },
- ee: function() {},
- vg: function() {
- return !1
- }
- });
- f.assert("function" === typeof f.U.AT, f.l.Hf, "CCLayerPropertyDefine.js");
- f.U.AT();
- delete f.U.AT;
- f.$f = f.ci.extend({
- B: null,
- ta: "LayerColor",
- ck: function() {
- return this.B
- },
- lQa: function(c, d) {
- this.width = c;
- this.height = d
- },
- kQa: function(c) {
- this.width = c
- },
- jQa: function(c) {
- this.height = c
- },
- ee: function() {},
- vg: function() {
- return !1
- },
- F: function(c) {
- f.ci.prototype.F.call(this, c);
- this.Jd()
- },
- J: function(c) {
- f.ci.prototype.J.call(this, c);
- this.Jd()
- },
- gA: !1,
- ctor: null,
- j: function(c, d, e) {
- f.K !== f.fb && (this.shaderProgram = f.xg.be(f.sK));
- var g = f.Q.Y;
- c = c || f.color(0, 0, 0, 255);
- d = void 0 === d ? g.width : d;
- e = void 0 === e ? g.height : e;
- g = this.Ab;
- g.r = c.r;
- g.g = c.g;
- g.b = c.b;
- g = this.rd;
- g.r = c.r;
- g.g = c.g;
- g.b = c.b;
- this.Lg = this.kb = c.a;
- c = f.$f.prototype;
- c.Ga.call(this, d, e);
- c.Jd.call(this);
- return !0
- },
- ce: function(c, d) {
- this.B = void 0 === d ? c : {
- src: c,
- ha: d
- };
- f.K === f.fb && (this.gA = this.B && 1 == this.B.src && 771 == this.B.ha)
- },
- Uh: null,
- Th: null,
- Jd: null,
- Wb: function(c) {
- f.ci.prototype.Wb.call(this, c);
- this.Jd()
- },
- hc: function(c) {
- f.ci.prototype.hc.call(this, c);
- this.Jd()
- },
- ma: null
- });
- f.$f.create = function(c, d, e) {
- return new f.$f(c, d, e)
- };
- f.K === f.fb ? (q = f.$f.prototype, q.ctor = function(c, d, e) {
- f.ci.prototype.ctor.call(this);
- this.B = new f.Um(f.Mc, f.Lc);
- f.$f.prototype.j.call(this, c, d, e)
- }, q.Uh = f.ci.prototype.Uh, q.Th = f.ci.prototype.Th, q.Jd = function() {}, q.ma = function(c) {
- c = c || f.s;
- var d = f.view,
- e = this.Ab;
- c.fillStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + this.kb / 255 + ")";
- c.fillRect(0, 0, this.width * d.ka, -this.height * d.ra);
- f.bl++
- }, q.I = function(c) {
- if (this.Vv) {
- c = c || f.s;
- var d, e = this.i,
- g = e.length;
- if (this.Na) {
- var h = this.bL;
- c.save();
- this.transform(c);
- if (this.Dk) {
- d = this.oW();
- d.width |= 0;
- d.height |= 0;
- var k = h.Pi;
- h.sga(d.width, d.height);
- var m = h.Bp(),
- n = this.oa;
- if (this.mn) k.translate(0 - d.x + n.x, d.height + d.y - n.y), h.o(m.x + d.x - n.x, m.y + d.y - n.y);
- else {
- var p = this.Bp(),
- s = n.x - p.x,
- n = n.y - p.y;
- k.translate(0 - d.x + s, d.height + d.y - n);
- h.o(m.x + d.x - s, m.y + d.y - n)
- } if (0 < g) {
- this.kd();
- for (d = 0; d < g; d++)
- if (m = e[d], 0 > m.Ya) m.I(k);
- else break;
- for (this.ma(k); d < g; d++) e[d].I(k)
- } else this.ma(k);
- this.Dk = !1
- }
- h.I(c);
- this.arrivalOrder = 0;
- c.restore()
- }
- } else f.v.prototype.I.call(this, c)
- }, q.oW = function() {
- var c =
- x(0, 0, this.m.width, this.m.height),
- d = this.il(),
- c = f.Ki(c, this.il());
- if (!this.i || 0 === this.i.length) return c;
- for (var e = this.i, g = 0; g < e.length; g++) {
- var h = e[g];
- h && h.Na && (h = h.uF(d), c = f.zC(c, h))
- }
- return c
- }, q = null) : (f.assert("function" === typeof f.U.BU, f.l.Hf, "CCLayerWebGL.js"), f.U.BU(), delete f.U.BU);
- f.assert("function" === typeof f.U.yT, f.l.Hf, "CCLayerPropertyDefine.js");
- f.U.yT();
- delete f.U.yT;
- f.rq = f.$f.extend({
- Ng: null,
- Jf: null,
- TA: 255,
- Jz: 255,
- Oi: null,
- sL: !1,
- Yz: null,
- Xz: null,
- ta: "LayerGradient",
- ctor: function(c, d, e) {
- f.$f.prototype.ctor.call(this);
- this.Ng = f.color(0, 0, 0, 255);
- this.Jf = f.color(0, 0, 0, 255);
- this.Oi = r(0, -1);
- this.Jz = this.TA = 255;
- this.Yz = r(0, 0);
- this.Xz = r(0, 0);
- f.rq.prototype.j.call(this, c, d, e)
- },
- j: function(c, d, e) {
- c = c || f.color(0, 0, 0, 255);
- d = d || f.color(0, 0, 0, 255);
- e = e || r(0, -1);
- var g = this.Ng,
- h = this.Jf;
- g.r = c.r;
- g.g = c.g;
- g.b = c.b;
- this.TA = c.a;
- h.r = d.r;
- h.g = d.g;
- h.b = d.b;
- this.Jz = d.a;
- this.Oi = e;
- this.sL = !0;
- this.Yz =
- r(0, 0);
- this.Xz = r(0, 0);
- f.$f.prototype.j.call(this, f.color(c.r, c.g, c.b, 255));
- f.rq.prototype.Jd.call(this);
- return !0
- },
- Ga: function(c, d) {
- f.$f.prototype.Ga.call(this, c, d);
- this.Jd()
- },
- Uh: function(c) {
- f.$f.prototype.Uh.call(this, c);
- this.Jd()
- },
- Th: function(c) {
- f.$f.prototype.Th.call(this, c);
- this.Jd()
- },
- uP: function() {
- return this.rd
- },
- Tg: function(c) {
- this.color = c
- },
- Sg: function(c) {
- this.Jf = c;
- this.Jd()
- },
- lP: function() {
- return this.Jf
- },
- Sha: function(c) {
- this.TA = c;
- this.Jd()
- },
- qBa: function() {
- return this.TA
- },
- Vga: function(c) {
- this.Jz =
- c;
- this.Jd()
- },
- Tza: function() {
- return this.Jz
- },
- DR: function(c) {
- this.Oi.x = c.x;
- this.Oi.y = c.y;
- this.Jd()
- },
- KBa: function() {
- return r(this.Oi.x, this.Oi.y)
- },
- yXa: function() {
- return this.sL
- },
- N2a: function(c) {
- this.sL = c;
- this.Jd()
- },
- YNa: null,
- Jd: null
- });
- f.rq.create = function(c, d, e) {
- return new f.rq(c, d, e)
- };
- f.K === f.fb ? (q = f.rq.prototype, q.ma = function(c) {
- c = c || f.s;
- this.gA && (c.globalCompositeOperation = "lighter");
- c.save();
- var d = f.view,
- e = this.kb / 255,
- g = this.width * d.ka,
- d = this.height * d.ra,
- h = c.createLinearGradient(this.Yz.x, this.Yz.y, this.Xz.x, this.Xz.y),
- k = this.Ab,
- m = this.Jf;
- h.addColorStop(0, "rgba(" + Math.round(k.r) + "," + Math.round(k.g) + "," + Math.round(k.b) + "," + (this.TA / 255 * e).toFixed(4) + ")");
- h.addColorStop(1, "rgba(" + Math.round(m.r) + "," + Math.round(m.g) + "," + Math.round(m.b) + "," + (this.Jz / 255 * e).toFixed(4) + ")");
- c.fillStyle =
- h;
- c.fillRect(0, 0, g, -d);
- 0 != this.LA && c.rotate(this.MOa);
- c.restore()
- }, q.Jd = function() {
- var c = this.Oi,
- d = 0.5 * this.width,
- e = 0.5 * this.height;
- this.Yz.x = d * -c.x + d;
- this.Yz.y = e * c.y - e;
- this.Xz.x = d * c.x + d;
- this.Xz.y = e * -c.y - e
- }, q = null) : (f.assert("function" === typeof f.U.CU, f.l.Hf, "CCLayerWebGL.js"), f.U.CU(), delete f.U.CU);
- f.assert("function" === typeof f.U.zT, f.l.Hf, "CCLayerPropertyDefine.js");
- f.U.zT();
- delete f.U.zT;
- f.dT = f.Me.extend({
- Nv: 0,
- oi: null,
- ta: "LayerMultiplex",
- ctor: function(c) {
- f.Me.prototype.ctor.call(this);
- c && f.dT.prototype.uCa.call(this, c)
- },
- uCa: function(c) {
- 0 < c.length && null == c[c.length - 1] && f.log(f.l.nma);
- this.oi = c;
- this.Nv = 0;
- this.n(this.oi[this.Nv]);
- return !0
- },
- k5a: function(c) {
- c >= this.oi.length ? f.log(f.l.oma) : (this.removeChild(this.oi[this.Nv], !0), this.Nv = c, this.n(this.oi[c]))
- },
- l5a: function(c) {
- c >= this.oi.length ? f.log(f.l.pma) : (this.removeChild(this.oi[this.Nv], !0), this.oi[this.Nv] = null, this.Nv = c, this.n(this.oi[c]))
- },
- uPa: function(c) {
- c ? this.oi.push(c) : f.log(f.l.mma)
- }
- });
- f.dT.create = function() {
- return new f.dT(arguments)
- };
- f.U.DU = function() {
- var c = f.q.prototype;
- c.BY = function(c) {
- this.Ha(!0);
- this.sc(c.$h(), c.lg, c.Jg);
- this.jf()
- };
- c.ee = function(c) {
- this.Jb !== c && (this.Jb = c, this.oo())
- };
- c.hc = function(c) {
- f.ja.prototype.hc.call(this, c);
- this.oo()
- };
- c.ctor = function(c, e, g) {
- f.ja.prototype.ctor.call(this);
- this.Nt = !1;
- this.od = r(0, 0);
- this.Ln = r(0, 0);
- this.B = {
- src: f.Mc,
- ha: f.Lc
- };
- this.Ta = x(0, 0, 0, 0);
- this.Vd = new f.Yc;
- this.oN = f.s.createBuffer();
- this.Ba = this.Yi = !0;
- this.iba(c, e, g)
- };
- c.ce = function(c, e) {
- var g = this.B;
- void 0 === e ? (g.src = c.src, g.ha = c.ha) :
- (g.src = c, g.ha = e)
- };
- c.j = function() {
- if (0 < arguments.length) return this.Ge(arguments[0], arguments[1]);
- f.ja.prototype.j.call(this);
- this.dirty = this.zn = !1;
- this.Jb = !0;
- this.B.src = f.Mc;
- this.B.ha = f.Lc;
- this.texture = null;
- this.Ba = !0;
- this.Fb = this.Hb = !1;
- this.anchorY = this.anchorX = 0.5;
- this.od.x = 0;
- this.od.y = 0;
- this.Yo = !1;
- var c = {
- r: 255,
- g: 255,
- b: 255,
- a: 255
- };
- this.Vd.T.D = c;
- this.Vd.aa.D = c;
- this.Vd.Z.D = c;
- this.Vd.W.D = c;
- this.Yi = !0;
- this.sc(x(0, 0, 0, 0), !1, t(0, 0));
- return !0
- };
- c.va = function(c, e, g) {
- f.assert(0 != arguments.length, f.l.woa);
- g = g || !1;
- if (!f.ja.prototype.j.call(this)) return !1;
- this.Aa = null;
- this.dirty = this.zn = !1;
- this.Jb = !0;
- this.B.src = f.Mc;
- this.B.ha = f.Lc;
- this.Fb = this.Hb = !1;
- this.anchorY = this.anchorX = 0.5;
- this.od.x = 0;
- this.od.y = 0;
- this.Yo = !1;
- var h = f.color(255, 255, 255, 255),
- k = this.Vd;
- k.T.D = h;
- k.aa.D = h;
- k.Z.D = h;
- k.W.D = h;
- this.Ba = h = c.ie;
- if (!h) return this.pf = g || !1, e && (h = this.Ta, h.x = e.x, h.y = e.y, h.width = e.width, h.height = e.height), c.oe(this.WN, this), !0;
- e || (e = x(0, 0, c.width, c.height));
- c && (g ? (h = e.x + e.height, k = e.y + e.width) : (h = e.x + e.width, k = e.y +
- e.height), h > c.width && f.error(f.l.HT, c.url), k > c.height && f.error(f.l.GT, c.url));
- this.texture = c;
- this.sc(e, g);
- this.batchNode = null;
- return this.Yi = !0
- };
- c.WN = function(c) {
- if (!this.Ba) {
- this.Ba = !0;
- var e = this.Ta;
- e ? f.gG(e) && (e.width = c.width, e.height = c.height) : e = x(0, 0, c.width, c.height);
- this.texture = c;
- this.sc(e, this.pf);
- this.batchNode = this.Aa;
- this.Yi = !0;
- this.jf()
- }
- };
- c.sc = function(c, e, g) {
- this.pf = e || !1;
- this.Ga(g || c);
- this.c3(c);
- this.Yaa(c);
- c = this.Ln;
- this.Fb && (c.x = -c.x);
- this.Hb && (c.y = -c.y);
- var h = this.Ta;
- this.od.x = c.x +
- (this.m.width - h.width) / 2;
- this.od.y = c.y + (this.m.height - h.height) / 2;
- if (this.Aa) this.dirty = !0;
- else {
- c = 0 + this.od.x;
- e = 0 + this.od.y;
- g = c + h.width;
- var h = e + h.height,
- k = this.Vd;
- k.T.k = {
- x: c,
- y: e,
- z: 0
- };
- k.aa.k = {
- x: g,
- y: e,
- z: 0
- };
- k.Z.k = {
- x: c,
- y: h,
- z: 0
- };
- k.W.k = {
- x: g,
- y: h,
- z: 0
- };
- this.Yi = !0
- }
- };
- c.bi = function() {
- if (this.dirty) {
- var c = this.Vd,
- e = this.Yb;
- if (!this.Na || e && e != this.Aa && e.Nt) c.aa.k = {
- x: 0,
- y: 0,
- z: 0
- }, c.Z.k = {
- x: 0,
- y: 0,
- z: 0
- }, c.W.k = {
- x: 0,
- y: 0,
- z: 0
- }, c.T.k = {
- x: 0,
- y: 0,
- z: 0
- }, this.Nt = !0;
- else {
- this.Nt = !1;
- var g = this.Sw = e && e != this.Aa ? f.Vg(this.se(), e.Sw) :
- this.se(),
- h = this.Ta,
- e = this.od.x,
- k = this.od.y,
- m = e + h.width,
- n = k + h.height,
- p = g.pa,
- s = g.qa,
- u = g.a,
- v = g.b,
- z = g.P,
- A = -g.G,
- g = e * u - k * A + p,
- h = e * v + k * z + s,
- B = m * u - k * A + p,
- k = m * v + k * z + s,
- C = m * u - n * A + p,
- m = m * v + n * z + s,
- p = e * u - n * A + p,
- e = e * v + n * z + s,
- n = this.PG;
- f.LT || (g |= 0, h |= 0, B |= 0, k |= 0, C |= 0, m |= 0, p |= 0, e |= 0);
- c.T.k = {
- x: g,
- y: h,
- z: n
- };
- c.aa.k = {
- x: B,
- y: k,
- z: n
- };
- c.Z.k = {
- x: p,
- y: e,
- z: n
- };
- c.W.k = {
- x: C,
- y: m,
- z: n
- }
- }
- this.textureAtlas.rJ(c, this.atlasIndex);
- this.dirty = this.zn = !1
- }
- this.Yo && this.Bk(this.i, f.v.Fj.bi);
- f.ys && f.If.Sf([r(this.Vd.T.k.x, this.Vd.T.k.y), r(this.Vd.aa.k.x,
- this.Vd.aa.k.y), r(this.Vd.W.k.x, this.Vd.W.k.y), r(this.Vd.Z.k.x, this.Vd.Z.k.y)], 4, !0)
- };
- c.n = function(c, e, g) {
- f.assert(c, f.l.noa);
- null == e && (e = c.Ya);
- null == g && (g = c.tag);
- if (this.Aa) {
- if (!(c instanceof f.q)) {
- f.log(f.l.loa);
- return
- }
- c.texture.Wh !== this.textureAtlas.texture.Wh && f.log(f.l.moa);
- this.Aa.appendChild(c);
- this.Sh || this.pY()
- }
- f.ja.prototype.n.call(this, c, e, g);
- this.Yo = !0
- };
- c.J = function(c) {
- f.ja.prototype.J.call(this, c);
- this.oo()
- };
- c.F = function(c) {
- f.ja.prototype.F.call(this, c);
- this.oo()
- };
- c.Wb = function(c) {
- f.ja.prototype.Wb.call(this,
- c);
- this.oo()
- };
- c.Dd = function(c) {
- var e = this;
- "string" == typeof c && (c = f.Je.Ca(c), f.assert(c, f.l.Foa));
- e.Ha(!0);
- var g = c.hb;
- e.Ln.x = g.x;
- e.Ln.y = g.y;
- g = c.sb();
- c.Ba || (e.Ba = !1, c.oe(function(c) {
- e.Ba = !0;
- var d = c.sb();
- d != e.fa && (e.texture = d);
- e.sc(c.$h(), c.lg, c.Jg);
- e.jf()
- }, e));
- g != e.fa && (e.texture = g);
- e.pf = c.lg;
- e.sc(c.$h(), e.pf, c.Jg)
- };
- c.Kea = function(c) {
- return f.Yfa(c.$h(), this.Ta) && c.sb().getName() == this.fa.getName() && f.I1(c.hb, this.Ln)
- };
- c.is = function(c) {
- if (this.Aa = c) this.Sw = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- }, this.textureAtlas =
- this.Aa.textureAtlas;
- else {
- this.atlasIndex = f.q.XS;
- this.textureAtlas = null;
- this.dirty = this.zn = !1;
- c = this.od.x;
- var e = this.od.y,
- g = c + this.Ta.width,
- h = e + this.Ta.height,
- k = this.Vd;
- k.T.k = {
- x: c,
- y: e,
- z: 0
- };
- k.aa.k = {
- x: g,
- y: e,
- z: 0
- };
- k.Z.k = {
- x: c,
- y: h,
- z: 0
- };
- k.W.k = {
- x: g,
- y: h,
- z: 0
- };
- this.Yi = !0
- }
- };
- c.ab = function(c) {
- c && "string" === typeof c ? (c = f.nb.vd(c), this.ab(c), c = c.e(), this.sc(x(0, 0, c.width, c.height))) : (f.assert(!c || c instanceof f.Pa, f.l.Hoa), this.Aa && this.Aa.texture != c ? f.log(f.l.Goa) : (this.shaderProgram = c ? f.xg.be(f.zo) : f.xg.be(f.sK),
- this.Aa || this.fa == c || (this.fa = c, this.Yk())))
- };
- c.ma = function() {
- if (this.Ba) {
- var c = f.s,
- e = this.fa;
- e ? e.ie && (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src, this.B.ha), f.w0(0, e), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (c.bufferData(c.ARRAY_BUFFER, this.Vd.DO, c.DYNAMIC_DRAW), this.Yi = !1), c.vertexAttribPointer(0, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(1, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.vertexAttribPointer(2, 2, c.FLOAT, !1, 24, 16), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)) : (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src,
- this.B.ha), f.Ai(null), f.wf(f.Gh | f.HK), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (f.s.bufferData(f.s.ARRAY_BUFFER, this.Vd.DO, f.s.STATIC_DRAW), this.Yi = !1), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4));
- f.bl++;
- if (0 !== f.ys || this.uY) 1 === f.ys || this.uY ? (c = this.Vd, f.If.Sf([r(c.Z.k.x, c.Z.k.y), r(c.T.k.x, c.T.k.y), r(c.aa.k.x, c.aa.k.y), r(c.W.k.x, c.W.k.y)], 4, !0)) : 2 === f.ys && (c = this.EH(), e = this.od, f.If.Sf([r(e.x, e.y), r(e.x +
- c.width, e.y), r(e.x + c.width, e.y + c.height), r(e.x, e.y + c.height)], 4, !0))
- }
- };
- delete c
- };
- f.U.BT = function() {
- var c = f.q.prototype;
- f.d(c, "opacityModifyRGB", c.vg, c.ee);
- f.d(c, "opacity", c.vb, c.J);
- f.d(c, "color", c.$a, c.F);
- f.d(c, "flippedX", c.XH, c.Pd);
- f.d(c, "flippedY", c.YH, c.Yf);
- f.d(c, "offsetX", c.Vra);
- f.d(c, "offsetY", c.Wra);
- f.d(c, "texture", c.sb, c.ab);
- f.d(c, "textureRectRotated", c.eDa);
- f.d(c, "batchNode", c.LB, c.is);
- f.d(c, "quad", c.$Aa)
- };
- f.GB = function(c) {
- function d() {
- var d = f.GB,
- g = c.width,
- m = c.height;
- e[0].width = g;
- e[0].height = m;
- e[1].width = g;
- e[1].height = m;
- e[2].width = g;
- e[2].height = m;
- e[3].width = g;
- e[3].height = m;
- d.canvas.width = g;
- d.canvas.height = m;
- var n = d.canvas.getContext("2d");
- n.drawImage(c, 0, 0);
- d.p3.width = g;
- d.p3.height = m;
- for (var n = n.getImageData(0, 0, g, m).data, p = 0; 4 > p; p++) {
- var s = e[p].getContext("2d");
- s.getImageData(0, 0, g, m).data;
- d.sia.drawImage(c, 0, 0);
- for (var u = d.sia.getImageData(0, 0, g, m), v = u.data, z = 0; z < n.length; z += 4) v[z] = 0 === p ? n[z] : 0, v[z +
- 1] = 1 === p ? n[z + 1] : 0, v[z + 2] = 2 === p ? n[z + 2] : 0, v[z + 3] = n[z + 3];
- s.putImageData(u, 0, 0)
- }
- c.onload = null
- }
- if (c.pca) return c.pca;
- var e = [f.fd("canvas"), f.fd("canvas"), f.fd("canvas"), f.fd("canvas")];
- try {
- d()
- } catch (g) {
- c.onload = d
- }
- return c.pca = e
- };
- f.GB.canvas = f.fd("canvas");
- f.GB.p3 = f.fd("canvas");
- f.GB.sia = f.GB.p3.getContext("2d");
- f.URa = function(c, d, e) {
- e || (e = x(0, 0, c.width, c.height), e = f.cs(e));
- var g = f.fd("canvas"),
- h = g.getContext("2d");
- g.width != e.width && (g.width = e.width);
- g.height != e.height && (g.height = e.height);
- h.save();
- h.drawImage(c, e.x, e.y, e.width, e.height, 0, 0, e.width, e.height);
- h.globalCompositeOperation = "source-in";
- h.globalAlpha = d.a / 255;
- h.fillStyle = "rgb(" + d.r + "," + d.g + "," + d.b + ")";
- h.fillRect(0, 0, e.width, e.height);
- h.restore();
- return g
- };
- f.HB = function(c, d, e, g, h) {
- g || (g = x(0, 0, c.width, c.height));
- c = e.r / 255;
- var k = e.g / 255;
- e = e.b / 255;
- var m = Math.min(g.width, d[0].width),
- n = Math.min(g.height, d[0].height),
- p;
- h ? (p = h.getContext("2d"), p.clearRect(0, 0, m, n)) : (h = f.fd("canvas"), h.width = m, h.height = n, p = h.getContext("2d"));
- p.save();
- p.globalCompositeOperation = "lighter";
- var s = p.globalAlpha;
- 0 < c && (p.globalAlpha = c * s, p.drawImage(d[0], g.x, g.y, m, n, 0, 0, m, n));
- 0 < k && (p.globalAlpha = k * s, p.drawImage(d[1], g.x, g.y, m, n, 0, 0, m, n));
- 0 < e && (p.globalAlpha = e * s, p.drawImage(d[2], g.x,
- g.y, m, n, 0, 0, m, n));
- 1 > c + k + e && (p.globalAlpha = s, p.drawImage(d[3], g.x, g.y, m, n, 0, 0, m, n));
- p.restore();
- return h
- };
- f.t_ = function(c, d) {
- if (!c) return null;
- if (!d) return c;
- var e = f.fd("canvas");
- e.width = d.width;
- e.height = d.height;
- var g = e.getContext("2d");
- g.translate(e.width / 2, e.height / 2);
- g.rotate(-1.5707963267948966);
- g.drawImage(c, d.x, d.y, d.height, d.width, -d.height / 2, -d.width / 2, d.height, d.width);
- return e
- };
- f.q = f.ja.extend({
- wb: !0,
- dirty: !1,
- atlasIndex: 0,
- textureAtlas: null,
- Aa: null,
- zn: null,
- Yo: null,
- Nt: !1,
- Sw: null,
- B: null,
- fa: null,
- Ta: null,
- pf: !1,
- od: null,
- Ln: null,
- Jb: !1,
- Fb: !1,
- Hb: !1,
- Ba: !1,
- dc: null,
- fX: null,
- ta: "Sprite",
- RC: function() {
- return this.Ba
- },
- oe: function(c, d) {
- this.dc || (this.dc = []);
- this.dc.push({
- al: c,
- nj: d
- })
- },
- jf: function() {
- if (this.dc) {
- for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
- var g = c[d];
- g.al.call(g.nj, this)
- }
- c.length = 0
- }
- },
- R0: function() {
- return this.dirty
- },
- Sga: function(c) {
- this.dirty = c
- },
- eDa: function() {
- return this.pf
- },
- KB: function() {
- return this.atlasIndex
- },
- k2: function(c) {
- this.atlasIndex = c
- },
- EH: function() {
- return x(this.Ta.x, this.Ta.y, this.Ta.width, this.Ta.height)
- },
- DH: function() {
- return this.textureAtlas
- },
- U2: function(c) {
- this.textureAtlas = c
- },
- SUa: function() {
- return this.od
- },
- Vra: function() {
- return this.od.x
- },
- Wra: function() {
- return this.od.y
- },
- ck: function() {
- return this.B
- },
- pj: function(c) {
- f.assert(c, f.l.toa);
- c.Ba || (this.Ba = !1, c.oe(this.BY, this));
- var d = f.K === f.fb ? !1 : c.lg,
- d = this.va(c.sb(), c.$h(), d);
- this.Dd(c);
- return d
- },
- BY: null,
- hl: function(c) {
- f.assert(c, f.l.uoa);
- var d = f.Je.Ca(c);
- f.assert(d, c + f.l.voa);
- return this.pj(d)
- },
- O5a: function(c) {
- this.textureAtlas = c.textureAtlas;
- this.Aa = c
- },
- c3: function(c) {
- this.Ta.x = c.x;
- this.Ta.y = c.y;
- this.Ta.width = c.width;
- this.Ta.height = c.height
- },
- kd: function() {
- if (this.Sh) {
- var c = this.i,
- d = c.length,
- e, g, h;
- for (e = 1; e < d; e++) {
- h = c[e];
- for (g = e - 1; 0 <= g;) {
- if (h.Ya < c[g].Ya) c[g + 1] = c[g];
- else if (h.Ya === c[g].Ya && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
- else break;
- g--
- }
- c[g + 1] = h
- }
- this.Aa && this.Bk(c, f.v.Fj.kd);
- this.Sh = !1
- }
- },
- BC: function(c, d) {
- f.assert(c, f.l.Aoa); - 1 === this.i.indexOf(c) ? f.log(f.l.zoa) : d !== c.zIndex && (this.Aa && !this.Sh && (this.pY(), this.Aa.pga(!0)), f.v.prototype.BC.call(this, c, d))
- },
- removeChild: function(c, d) {
- this.Aa && this.Aa.Rx(c);
- f.v.prototype.removeChild.call(this, c, d)
- },
- Cf: function(c) {
- var d = this.i,
- e = this.Aa;
- if (e && null != d)
- for (var g = 0, h = d.length; g < h; g++) e.Rx(d[g]);
- f.v.prototype.Cf.call(this, c);
- this.Yo = !1
- },
- Tga: function(c) {
- this.dirty = this.zn = c;
- c = this.i;
- for (var d, e = c ? c.length : 0, g = 0; g < e; g++) d = c[g], d instanceof f.q &&
- d.Tga(!0)
- },
- Ha: function(c) {
- f.v.prototype.Ha.call(this);
- c || !this.Aa || this.zn || (this.Yo ? this.Tga(!0) : this.dirty = this.zn = !0)
- },
- Gm: function(c) {
- this.Aa ? f.log(f.l.roa) : f.v.prototype.Gm.call(this, c)
- },
- Pd: function(c) {
- this.Fb != c && (this.Fb = c, this.sc(this.Ta, this.pf, this.m), this.Ha(!0))
- },
- Yf: function(c) {
- this.Hb != c && (this.Hb = c, this.sc(this.Ta, this.pf, this.m), this.Ha(!0))
- },
- XH: function() {
- return this.Fb
- },
- YH: function() {
- return this.Hb
- },
- ee: null,
- vg: function() {
- return this.Jb
- },
- hc: null,
- Z2a: function(c, d) {
- f.assert(c, f.l.Eoa);
- var e = f.WG.cl(c);
- e ? (e = e.Ph[d]) ? this.Dd(e.Ca()) : f.log(f.l.Doa) : f.log(f.l.Coa)
- },
- LB: function() {
- return this.Aa
- },
- pY: function() {
- if (!this.Sh) {
- this.Sh = !0;
- for (var c = this.Yb; c && c != this.Aa;) c.pY(), c = c.parent
- }
- },
- sb: function() {
- return this.fa
- },
- Vd: null,
- oN: null,
- Yi: !1,
- rL: !1,
- gA: !1,
- qi: null,
- YA: null,
- VV: null,
- ctor: null,
- iba: function(c, d, e) {
- if (void 0 === c) f.q.prototype.j.call(this);
- else if ("string" === typeof c) "#" === c[0] ? (c = f.Je.Ca(c.substr(1, c.length - 1)), this.pj(c)) : f.q.prototype.j.call(this, c, d);
- else if ("object" === typeof c)
- if (c instanceof f.Pa) this.va(c, d, e);
- else if (c instanceof f.Li) this.pj(c);
- else if (c instanceof HTMLImageElement || c instanceof HTMLCanvasElement) d = new f.Pa, d.sh(c), d.$d(), this.va(d)
- },
- $Aa: function() {
- return this.Vd
- },
- ce: null,
- j: null,
- Ge: function(c, d) {
- f.assert(c, f.l.soa);
- var e = f.nb.Ru(c);
- if (e) {
- if (!d) {
- var g = e.e();
- d = x(0, 0, g.width, g.height)
- }
- return this.va(e, d)
- }
- e = f.nb.vd(c);
- return this.va(e, d || x(0, 0, e.m.width, e.m.height))
- },
- va: null,
- WN: null,
- sc: null,
- bi: null,
- n: null,
- oo: function() {
- var c = this.Ab,
- d = this.kb,
- c = {
- r: c.r,
- g: c.g,
- b: c.b,
- a: d
- };
- this.Jb && (c.r *= d / 255, c.g *= d / 255, c.b *= d / 255);
- d = this.Vd;
- d.T.D = c;
- d.aa.D = c;
- d.Z.D = c;
- d.W.D = c;
- this.Aa && (this.atlasIndex != f.q.XS ? this.textureAtlas.rJ(d, this.atlasIndex) : this.dirty = !0);
- this.Yi = !0
- },
- J: null,
- F: null,
- Wb: null,
- Dd: null,
- NGa: function(c) {
- f.log(f.l.Boa);
- this.Dd(c)
- },
- Kea: null,
- Wxa: function() {
- return f.Li.create(this.fa, f.FI(this.Ta), this.pf, f.eFa(this.Ln), f.dIa(this.m))
- },
- is: null,
- ab: null,
- Yk: function() {
- this.Aa ? f.log(f.l.koa) : this.fa && this.fa.Ep() ? (this.B.src = f.Mc, this.B.ha = f.Lc, this.opacityModifyRGB = !0) : (this.B.src =
- f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = !1)
- },
- Us: function() {
- var c, d = this.fa,
- e = this.YA;
- d && e.$C && this.qi && (c = d.md) && (d = f.nb.vP(this.qi.md)) && (this.rL = !0, c instanceof HTMLCanvasElement && !this.pf && !this.fX ? f.HB(c, d, this.Ab, e, c) : (c = f.HB(c, d, this.Ab, e), d = new f.Pa, d.sh(c), d.$d(), this.texture = d))
- },
- Yaa: function(c) {
- c = f.FI(c);
- var d = this.Aa ? this.textureAtlas.texture : this.fa;
- if (d) {
- var e = d.pixelsWidth,
- g = d.pixelsHeight,
- h, k = this.Vd;
- this.pf ? (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.height - 2) / (2 * e),
- h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.height) / e, h = c.y / g, c = (c.y + c.width) / g), this.Fb && (g = h, h = c, c = g), this.Hb && (g = d, d = e, e = g), k.T.t.Da = d, k.T.t.ga = h, k.aa.t.Da = d, k.aa.t.ga = c, k.Z.t.Da = e, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = c) : (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.width - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.width) / e, h = c.y / g, c = (c.y + c.height) / g), this.Fb && (g = d, d = e, e = g), this.Hb && (g = h, h = c, c = g), k.T.t.Da = d, k.T.t.ga = c, k.aa.t.Da = e, k.aa.t.ga = c, k.Z.t.Da = d, k.Z.t.ga = h, k.W.t.Da =
- e, k.W.t.ga = h);
- this.Yi = !0
- }
- },
- ma: null
- });
- f.q.create = function(c, d, e) {
- return new f.q(c, d, e)
- };
- f.q.XS = -1;
- f.K === f.fb ? (q = f.q.prototype, q.BY = function(c) {
- this.Ha(!0);
- this.sc(c.$h(), c.lg, c.Jg);
- c = this.color;
- 255 === c.r && 255 === c.g && 255 === c.b || this.Us();
- this.jf()
- }, q.ee = function(c) {
- this.Jb !== c && (this.Jb = c, this.Ha(!0))
- }, q.hc = function(c) {
- f.ja.prototype.hc.call(this, c);
- this.En()
- }, q.ctor = function(c, d, e) {
- f.ja.prototype.ctor.call(this);
- this.Nt = !1;
- this.od = r(0, 0);
- this.Ln = r(0, 0);
- this.B = {
- src: f.Mc,
- ha: f.Lc
- };
- this.Ta = x(0, 0, 0, 0);
- this.fX = !1;
- this.Ba = !0;
- this.YA = {
- x: 0,
- y: 0,
- width: 0,
- height: 0,
- $C: !1
- };
- this.VV = t(0, 0);
- this.iba(c, d, e)
- }, q.ce =
- function(c, d) {
- var e = this.B;
- void 0 === d ? (e.src = c.src, e.ha = c.ha) : (e.src = c, e.ha = d);
- this.gA = e && (e.src == f.SRC_ALPHA && e.ha == f.ONE || e.src == f.ONE && e.ha == f.ONE)
- }, q.j = function() {
- if (0 < arguments.length) return this.Ge(arguments[0], arguments[1]);
- f.ja.prototype.j.call(this);
- this.dirty = this.zn = !1;
- this.Jb = !0;
- this.B.src = f.Mc;
- this.B.ha = f.Lc;
- this.texture = null;
- this.Ba = !0;
- this.Fb = this.Hb = !1;
- this.anchorY = this.anchorX = 0.5;
- this.od.x = 0;
- this.od.y = 0;
- this.Yo = !1;
- this.sc(x(0, 0, 0, 0), !1, t(0, 0));
- return !0
- }, q.va = function(c, d, e) {
- f.assert(0 !=
- arguments.length, f.l.Lja);
- if ((e = e || !1) && c.ie) {
- var g = c.md,
- g = f.t_(g, d),
- h = new f.Pa;
- h.sh(g);
- h.$d();
- c = h;
- this.Ta = x(0, 0, d.width, d.height)
- }
- if (!f.ja.prototype.j.call(this)) return !1;
- this.Aa = null;
- this.dirty = this.zn = !1;
- this.Jb = !0;
- this.B.src = f.Mc;
- this.B.ha = f.Lc;
- this.Fb = this.Hb = !1;
- this.anchorY = this.anchorX = 0.5;
- this.od.x = 0;
- this.od.y = 0;
- this.Yo = !1;
- this.Ba = g = c.ie;
- if (!g) return this.pf = e, d && (this.Ta.x = d.x, this.Ta.y = d.y, this.Ta.width = d.width, this.Ta.height = d.height), c.oe(this.WN, this), !0;
- d || (d = x(0, 0, c.width, c.height));
- c && (g = d.y + d.height, d.x + d.width > c.width && f.error(f.l.HT, c.url), g > c.height && f.error(f.l.GT, c.url));
- this.texture = this.qi = c;
- this.sc(d, e);
- this.batchNode = null;
- return !0
- }, q.WN = function(c) {
- if (!this.Ba) {
- this.Ba = !0;
- var d = this.Ta;
- d ? f.gG(d) && (d.width = c.width, d.height = c.height) : d = x(0, 0, c.width, c.height);
- this.texture = this.qi = c;
- this.sc(d, this.pf);
- this.batchNode = this.Aa;
- this.jf()
- }
- }, q.sc = function(c, d, e) {
- this.pf = d || !1;
- this.Ga(e || c);
- this.c3(c);
- d = this.YA;
- e = f.Uc();
- d.x = 0 | c.x * e;
- d.y = 0 | c.y * e;
- d.width = 0 | c.width * e;
- d.height = 0 |
- c.height * e;
- d.$C = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
- c = this.Ln;
- this.Fb && (c.x = -c.x);
- this.Hb && (c.y = -c.y);
- this.od.x = c.x + (this.m.width - this.Ta.width) / 2;
- this.od.y = c.y + (this.m.height - this.Ta.height) / 2;
- this.Aa && (this.dirty = !0)
- }, q.bi = function() {
- if (this.dirty) {
- var c = this.Yb;
- !this.Na || c && c != this.Aa && c.Nt ? this.Nt = !0 : (this.Nt = !1, this.Sw = c && c != this.Aa ? f.Vg(this.se(), c.Sw) : this.se());
- this.dirty = this.zn = !1
- }
- this.Yo && this.Bk(this.i, f.v.Fj.bi)
- }, q.n = function(c, d, e) {
- f.assert(c, f.l.Jja);
- null == d && (d = c.Ya);
- null ==
- e && (e = c.tag);
- f.ja.prototype.n.call(this, c, d, e);
- this.Yo = !0
- }, q.J = function(c) {
- f.ja.prototype.J.call(this, c);
- this.En()
- }, q.F = function(c) {
- var d = this.color;
- if (d.r !== c.r || d.g !== c.g || d.b !== c.b) f.ja.prototype.F.call(this, c), this.Us(), this.En()
- }, q.Wb = function(c) {
- var d = this.color;
- f.ja.prototype.Wb.call(this, c);
- c = this.Ab;
- if (d.r !== c.r || d.g !== c.g || d.b !== c.b) this.Us(), this.En()
- }, q.Dd = function(c) {
- var d = this;
- "string" == typeof c && (c = f.Je.Ca(c), f.assert(c, f.l.Oja));
- d.Ha(!0);
- var e = c.hb;
- d.Ln.x = e.x;
- d.Ln.y = e.y;
- d.pf = c.lg;
- var e = c.sb(),
- g = c.Ba;
- g || (d.Ba = !1, c.oe(function(c) {
- d.Ba = !0;
- var e = c.sb();
- e != d.fa && (d.texture = e);
- d.sc(c.$h(), c.lg, c.Jg);
- d.jf()
- }, d));
- e != d.fa && (d.texture = e);
- d.pf && (d.qi = e);
- d.sc(c.$h(), d.pf, c.Jg);
- d.rL = !1;
- g && (c = d.color, 255 === c.r && 255 === c.g && 255 === c.b || d.Us())
- }, q.Kea = function(c) {
- return c.sb() != this.fa ? !1 : f.Yfa(c.$h(), this.Ta)
- }, q.is = function(c) {
- (this.Aa = c) ? (this.Sw = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- }, this.textureAtlas = this.Aa.textureAtlas) : (this.atlasIndex = f.q.XS, this.textureAtlas = null, this.dirty = this.zn = !1)
- }, q.ab =
- function(c) {
- c && "string" === typeof c ? (c = f.nb.vd(c), this.ab(c), c = c.e(), this.sc(x(0, 0, c.width, c.height))) : (f.assert(!c || c instanceof f.Pa, f.l.Pja), this.fa != c && (c && c.md instanceof HTMLImageElement && (this.qi = c), this.fa = c))
- }, q.ma = function(c) {
- if (this.Ba) {
- c = c || f.s;
- this.gA && (c.globalCompositeOperation = "lighter");
- var d = f.view.ka,
- e = f.view.ra;
- c.globalAlpha = this.kb / 255;
- var g = this.Ta,
- h = this.m,
- k = this.od,
- m = this.VV,
- n = 0 | k.x,
- p = -k.y - g.height,
- s = this.YA;
- m.width = g.width * d;
- m.height = g.height * e;
- if (this.Fb || this.Hb) c.save(),
- this.Fb && (n = -k.x - g.width, c.scale(-1, 1)), this.Hb && (p = k.y, c.scale(1, -1));
- n *= d;
- p *= e;
- this.fa && s.$C ? (h = this.fa.md, this.rL ? c.drawImage(h, 0, 0, s.width, s.height, n, p, m.width, m.height) : c.drawImage(h, s.x, s.y, s.width, s.height, n, p, m.width, m.height)) : !this.fa && s.$C && (m = this.color, c.fillStyle = "rgba(" + m.r + "," + m.g + "," + m.b + ",1)", c.fillRect(n, p, h.width * d, h.height * e));
- 1 === f.ys || this.uY ? (c.strokeStyle = "rgba(0,255,0,1)", n /= d, p = -(p / e), f.If.Sf([r(n, p), r(n + g.width, p), r(n + g.width, p - g.height), r(n, p - g.height)], 4, !0)) : 2 === f.ys &&
- (c.strokeStyle = "rgba(0,255,0,1)", d = this.Ta, p = -p, f.If.Sf([r(n, p), r(n + d.width, p), r(n + d.width, p - d.height), r(n, p - d.height)], 4, !0));
- (this.Fb || this.Hb) && c.restore();
- f.bl++
- }
- }, delete q) : (f.assert("function" === typeof f.U.DU, f.l.Hf, "SpritesWebGL.js"), f.U.DU(), delete f.U.DU);
- f.assert("function" === typeof f.U.BT, f.l.Hf, "SpritesPropertyDefine.js");
- f.U.BT();
- delete f.U.BT;
- f.CS = 29;
- f.Fh = f.v.extend({
- textureAtlas: null,
- B: null,
- fh: null,
- ta: "SpriteBatchNode",
- Xva: function(c, d, e) {
- f.assert(c, f.l.eoa);
- if (!(c instanceof f.q)) return f.log(f.l.doa), null;
- c.atlasIndex = d;
- var g = 0,
- h = this.fh;
- if (h && 0 < h.length)
- for (var k = 0; k < h.length; k++) {
- var m = h[k];
- m && m.atlasIndex >= d && ++g
- }
- h.splice(g, 0, c);
- f.v.prototype.n.call(this, c, d, e);
- this.pga(!1);
- return this
- },
- DH: function() {
- return this.textureAtlas
- },
- U2: function(c) {
- c != this.textureAtlas && (this.textureAtlas = c)
- },
- Oza: function() {
- return this.fh
- },
- Ge: function(c, d) {
- var e =
- f.nb.Ru(c);
- e || (e = f.nb.vd(c));
- return this.va(e, d)
- },
- En: function() {
- this.Dk = !0
- },
- j: function(c, d) {
- var e = f.nb.Ru(c);
- e || (e = f.nb.vd(c));
- return this.va(e, d)
- },
- IP: function() {
- var c = this.textureAtlas.capacity,
- d = Math.floor(4 * (c + 1) / 3);
- f.log(f.l.foa, c, d);
- this.textureAtlas.NQ(d) || f.log(f.l.goa)
- },
- NFa: function(c, d) {
- this.removeChild(this.i[c], d)
- },
- Xfa: function(c, d) {
- var e = c.children;
- if (e && 0 < e.length)
- for (var g = 0; g < e.length; g++) {
- var h = e[g];
- h && 0 > h.zIndex && (d = this.Xfa(h, d))
- }!c == this && (c.atlasIndex = d, d++);
- if (e && 0 < e.length)
- for (g =
- 0; g < e.length; g++)(h = e[g]) && 0 <= h.zIndex && (d = this.Xfa(h, d));
- return d
- },
- B0: function(c) {
- var d = c.children;
- return d && 0 != d.length ? this.B0(d[d.length - 1]) : c.atlasIndex
- },
- QDa: function(c) {
- var d = c.children;
- return d && 0 != d.length ? this.QDa(d[d.length - 1]) : c.atlasIndex
- },
- swa: function(c, d) {
- var e = c.parent,
- g = e.children,
- h = g.indexOf(c),
- k = null;
- 0 < h && h < f.oU && (k = g[h - 1]);
- return e == this ? 0 == h ? 0 : this.B0(k) + 1 : 0 == h ? 0 > d ? e.atlasIndex : e.atlasIndex + 1 : 0 > k.zIndex && 0 > d || 0 <= k.zIndex && 0 <= d ? this.B0(k) + 1 : e.atlasIndex + 1
- },
- pga: function(c) {
- this.Sh =
- c
- },
- ce: function(c, d) {
- this.B = void 0 === d ? c : {
- src: c,
- ha: d
- }
- },
- ck: function() {
- return this.B
- },
- BC: function(c, d) {
- f.assert(c, f.l.joa); - 1 === this.i.indexOf(c) ? f.log(f.l.ioa) : d !== c.zIndex && (f.v.prototype.BC.call(this, c, d), this.Ha())
- },
- removeChild: function(c, d) {
- null != c && (-1 === this.i.indexOf(c) ? f.log(f.l.hoa) : (this.Rx(c), f.v.prototype.removeChild.call(this, c, d)))
- },
- bta: null,
- Vt: null,
- dPa: !1,
- qi: null,
- ctor: null,
- aF: function(c, d) {
- f.v.prototype.ctor.call(this);
- var e;
- d = d || f.CS;
- "string" == typeof c ? (e = f.nb.Ru(c)) || (e = f.nb.vd(c)) :
- c instanceof f.Pa && (e = c);
- e && this.va(e, d)
- },
- bF: function(c, d) {
- f.v.prototype.ctor.call(this);
- this.bta = new f.Ma;
- var e;
- d = d || f.CS;
- "string" == typeof c ? (e = f.nb.Ru(c)) || (e = f.nb.vd(c)) : c instanceof f.Pa && (e = c);
- e && this.va(e, d)
- },
- Hia: null,
- zva: function(c, d) {
- f.assert(c, f.l.Qja);
- c instanceof f.q ? (c.batchNode = this, c.atlasIndex = d, c.dirty = !0, c.bi()) : f.log(f.l.lS)
- },
- Ava: function(c, d) {
- f.assert(c, f.l.lS);
- if (c instanceof f.q) {
- for (var e = this.textureAtlas.capacity; d >= e || e == this.textureAtlas.totalQuads;) this.IP();
- c.batchNode =
- this;
- c.atlasIndex = d;
- c.dirty = !0;
- c.bi()
- } else f.log(f.l.lS)
- },
- Tt: function(c, d) {
- var e = this.fh,
- g = this.textureAtlas,
- h = g.quads,
- k = e[c],
- m = f.h8(h[c]);
- e[d].atlasIndex = c;
- e[c] = e[d];
- g.rJ(h[d], c);
- e[d] = k;
- g.rJ(m, d)
- },
- QP: null,
- Isa: function(c, d) {
- f.assert(c, f.l.Nja);
- c instanceof f.q ? (c.batchNode = this, c.atlasIndex = d, c.dirty = !0, c.bi(), this.i.splice(d, 0, c)) : f.log(f.l.Mja)
- },
- Jsa: function(c, d) {
- f.assert(c, f.l.yoa);
- if (c instanceof f.q) {
- for (var e = this.textureAtlas; d >= e.capacity || e.capacity === e.totalQuads;) this.IP();
- c.batchNode =
- this;
- c.atlasIndex = d;
- e.O0(c.quad, d);
- c.dirty = !0;
- c.bi()
- } else f.log(f.l.xoa)
- },
- Bba: function(c, d) {
- var e = 0,
- g = c.children;
- g && (e = g.length);
- var h = 0;
- if (0 === e) h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++;
- else {
- h = !0;
- 0 <= g[0].zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++, h = !1);
- for (e = 0; e < g.length; e++) {
- var k = g[e];
- h && 0 <= k.zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++, h = !1);
- d = this.Bba(k, d)
- }
- h && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder =
- 0, h != d && this.Tt(h, d), d++)
- }
- return d
- },
- Yk: function() {
- this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA)
- },
- va: null,
- JW: function(c) {
- this.i = [];
- this.fh = [];
- this.B = new f.Um(f.Mc, f.Lc);
- this.Vt = this.qi = c;
- return !0
- },
- KW: function(c, d) {
- this.i = [];
- this.fh = [];
- this.B = new f.Um(f.Mc, f.Lc);
- d = d || f.CS;
- this.textureAtlas = new f.wq;
- this.textureAtlas.va(c, d);
- this.Yk();
- this.shaderProgram = f.xg.be(f.zo);
- return !0
- },
- N0: function(c, d) {
- c.batchNode = this;
- c.atlasIndex = d;
- c.dirty = !0;
- var e = this.textureAtlas;
- e.totalQuads >= e.capacity && this.IP();
- e.O0(c.quad, d);
- this.fh.splice(d, 0, c);
- var e = d + 1,
- g = this.fh;
- if (g && 0 < g.length)
- for (; e < g.length; e++) g[e].atlasIndex++;
- var g = c.children,
- h;
- if (g)
- for (e = 0, l = g.length || 0; e < l; e++)(h = g[e]) && this.N0(h, this.swa(h, h.zIndex))
- },
- appendChild: null,
- gqa: function(c) {
- this.Sh = !0;
- c.batchNode = this;
- c.dirty = !0;
- this.fh.push(c);
- c.atlasIndex = this.fh.length - 1;
- c = c.children;
- for (var d = 0, e = c.length || 0; d < e; d++) this.appendChild(c[d])
- },
- hqa: function(c) {
- this.Sh = !0;
- c.batchNode = this;
- c.dirty = !0;
- this.fh.push(c);
- var d = this.fh.length - 1;
- c.atlasIndex = d;
- var e = this.textureAtlas;
- e.totalQuads == e.capacity && this.IP();
- e.O0(c.quad, d);
- c = c.children;
- d = 0;
- for (e = c.length || 0; d < e; d++) this.appendChild(c[d])
- },
- Rx: null,
- Xta: function(c) {
- c.batchNode = null;
- var d = this.fh,
- e = d.indexOf(c);
- if (-1 != e) {
- d.splice(e, 1);
- for (var g = d.length; e < g; ++e) d[e].atlasIndex--
- }
- if (c = c.children)
- for (d = 0, e = c.length || 0; d < e; d++) c[d] && this.Rx(c[d])
- },
- Yta: function(c) {
- this.textureAtlas.oga(c.atlasIndex);
- c.batchNode = null;
- var d = this.fh,
- e = d.indexOf(c);
- if (-1 != e) {
- d.splice(e,
- 1);
- for (var g = d.length; e < g; ++e) d[e].atlasIndex--
- }
- if (c = c.children)
- for (d = 0, e = c.length || 0; d < e; d++) c[d] && this.Rx(c[d])
- },
- sb: null,
- xF: function() {
- return this.Vt
- },
- BW: function() {
- return this.textureAtlas.texture
- },
- ab: null,
- qY: function(c) {
- this.Vt = c;
- for (var d = this.i, e = 0; e < d.length; e++) d[e].texture = c
- },
- rY: function(c) {
- this.textureAtlas.texture = c;
- this.Yk()
- },
- I: null,
- Br: function(c) {
- var d = c || f.s;
- if (this.Na) {
- d.save();
- this.transform(c);
- var e = this.i;
- if (e)
- for (this.kd(), c = 0; c < e.length; c++) e[c] && e[c].I(d);
- d.restore()
- }
- },
- Uw: function(c) {
- c =
- c || f.s;
- if (this.Na) {
- f.Rr();
- var d = this.grid;
- d && d.Bi() && (d.dx(), this.mJ());
- this.kd();
- this.transform(c);
- this.ma(c);
- d && d.Bi() && d.ax(this);
- f.Qr();
- this.arrivalOrder = 0
- }
- },
- n: null,
- LU: function(c, d, e) {
- f.assert(null != c, f.l.Kja);
- c instanceof f.q ? (d = null == d ? c.zIndex : d, e = null == e ? c.tag : e, f.v.prototype.n.call(this, c, d, e), this.appendChild(c), this.Ha()) : f.log(f.l.Ija)
- },
- cqa: function(c, d, e) {
- f.assert(null != c, f.l.qoa);
- c instanceof f.q ? c.texture != this.textureAtlas.texture ? f.log(f.l.poa) : (d = null == d ? c.zIndex : d, e = null == e ? c.tag :
- e, f.v.prototype.n.call(this, c, d, e), this.appendChild(c), this.Ha()) : f.log(f.l.ooa)
- },
- Cf: null,
- Uta: function(c) {
- var d = this.fh;
- if (d && 0 < d.length)
- for (var e = 0, g = d.length; e < g; e++) d[e] && (d[e].batchNode = null);
- f.v.prototype.Cf.call(this, c);
- this.fh.length = 0
- },
- Vta: function(c) {
- var d = this.fh;
- if (d && 0 < d.length)
- for (var e = 0, g = d.length; e < g; e++) d[e] && (d[e].batchNode = null);
- f.v.prototype.Cf.call(this, c);
- this.fh.length = 0;
- this.textureAtlas.AC()
- },
- kd: null,
- Zua: function() {
- if (this.Sh) {
- var c, d = 0,
- e = this.i,
- g = e.length,
- h;
- for (c = 1; c < g; c++) {
- var k =
- e[c],
- d = c - 1;
- for (h = e[d]; 0 <= d && (k.Ya < h.Ya || k.Ya == h.Ya && k.arrivalOrder < h.arrivalOrder);) e[d + 1] = h, d -= 1, h = e[d];
- e[d + 1] = k
- }
- 0 < e.length && this.Bk(e, f.v.Fj.kd);
- this.Sh = !1
- }
- },
- $ua: function() {
- if (this.Sh) {
- var c = this.i,
- d, e = 0,
- g = c.length,
- h;
- for (d = 1; d < g; d++) {
- var k = c[d],
- e = d - 1;
- for (h = c[e]; 0 <= e && (k.Ya < h.Ya || k.Ya == h.Ya && k.arrivalOrder < h.arrivalOrder);) c[e + 1] = h, e -= 1, h = c[e];
- c[e + 1] = k
- }
- if (0 < c.length)
- for (this.Bk(c, f.v.Fj.kd), d = e = 0; d < c.length; d++) e = this.Bba(c[d], e);
- this.Sh = !1
- }
- },
- ma: null,
- fn: function() {
- 0 !== this.textureAtlas.totalQuads &&
- (this.sd.Ff(), this.sd.zj(), this.Bk(this.i, f.v.Fj.bi), f.Fm(this.B.src, this.B.ha), this.textureAtlas.yB())
- }
- });
- q = f.Fh.prototype;
- f.K === f.na ? (q.ctor = q.bF, q.Hia = q.Ava, q.QP = q.Jsa, q.va = q.KW, q.appendChild = q.hqa, q.Rx = q.Yta, q.sb = q.BW, q.ab = q.rY, q.I = q.Uw, q.n = q.cqa, q.Cf = q.Vta, q.kd = q.$ua, q.ma = q.fn) : (q.ctor = q.aF, q.Hia = q.zva, q.QP = q.Isa, q.va = q.JW, q.appendChild = q.gqa, q.Rx = q.Xta, q.sb = q.xF, q.ab = q.qY, q.I = q.Br, q.Cf = q.Uta, q.n = q.LU, q.kd = q.Zua, q.ma = f.v.prototype.ma);
- f.d(q, "texture", q.sb, q.ab);
- f.d(q, "descendants", q.Oza);
- f.Fh.create = function(c, d) {
- return new f.Fh(c, d)
- };
- f.Bja = f.q.extend({
- gi: null,
- Pi: null,
- ctor: function() {
- f.q.prototype.ctor.call(this);
- var c = document.createElement("canvas");
- c.width = c.height = 10;
- this.gi = c;
- this.Pi = c.getContext("2d");
- var d = new f.Pa;
- d.sh(c);
- d.$d();
- this.ab(d)
- },
- HSa: function() {
- return this.Pi
- },
- GSa: function() {
- return this.gi
- },
- sga: function(c, d) {
- void 0 === d && (d = c.height, c = c.width);
- var e = this.gi;
- e.width = c;
- e.height = d;
- this.sb().$d();
- this.sc(x(0, 0, c, d), !1)
- }
- });
- f.El = f.N.extend({
- pr: null,
- Nh: 0,
- fB: null,
- ctor: function(c, d, e) {
- this.pr = c || null;
- this.Nh = d || 0;
- this.fB = e || null
- },
- p: function() {
- var c = new f.El;
- c.pj(this.pr.p(), this.Nh, this.fB);
- return c
- },
- PO: function() {
- return f.p(this)
- },
- copy: function() {
- var c = new f.El;
- c.pj(this.pr.p(), this.Nh, this.fB);
- return c
- },
- pj: function(c, d, e) {
- this.pr = c;
- this.Nh = d;
- this.fB = e;
- return !0
- },
- Ca: function() {
- return this.pr
- },
- Dd: function(c) {
- this.pr = c
- },
- qTa: function() {
- return this.Nh
- },
- Y2a: function(c) {
- this.Nh = c
- },
- GWa: function() {
- return this.fB
- },
- Q4a: function(c) {
- this.fB =
- c
- }
- });
- f.El.create = function(c, d, e) {
- return new f.El(c, d, e)
- };
- f.Yu = f.N.extend({
- Ph: null,
- br: 0,
- yw: !1,
- C: 0,
- Nh: 0,
- sp: 0,
- ctor: function(c, d, e) {
- this.Ph = [];
- if (void 0 === c) this.Fea(null, 0);
- else {
- var g = c[0];
- g && (g instanceof f.Li ? this.Fea(c, d, e) : g instanceof f.El && this.JP(c, d, e))
- }
- },
- $Ta: function() {
- return this.Ph
- },
- n3a: function(c) {
- this.Ph = c
- },
- vZ: function(c) {
- var d = new f.El;
- d.pj(c, 1, null);
- this.Ph.push(d);
- this.sp++
- },
- APa: function(c) {
- c = f.nb.vd(c);
- var d = x(0, 0, 0, 0);
- d.width = c.width;
- d.height = c.height;
- c = f.Li.create(c, d);
- this.vZ(c)
- },
- BPa: function(c, d) {
- var e = f.Li.create(c, d);
- this.vZ(e)
- },
- JP: function(c,
- d, e) {
- f.mB(c, f.El);
- this.Nh = d;
- this.br = void 0 === e ? 1 : e;
- this.sp = 0;
- d = this.Ph;
- for (e = d.length = 0; e < c.length; e++) {
- var g = c[e];
- d.push(g);
- this.sp += g.Nh
- }
- return !0
- },
- p: function() {
- var c = new f.Yu;
- c.JP(this.a9(), this.Nh, this.br);
- c.uR(this.yw);
- return c
- },
- PO: function() {
- var c = new f.Yu;
- c.JP(this.a9(), this.Nh, this.br);
- c.uR(this.yw);
- return c
- },
- a9: function() {
- for (var c = [], d = 0; d < this.Ph.length; d++) c.push(this.Ph[d].p());
- return c
- },
- copy: function() {
- return this.PO(null)
- },
- zUa: function() {
- return this.br
- },
- D3a: function(c) {
- this.br = c
- },
- uR: function(c) {
- this.yw =
- c
- },
- DVa: function() {
- return this.yw
- },
- pu: function() {
- return this.sp * this.Nh
- },
- pTa: function() {
- return this.Nh
- },
- X2a: function(c) {
- this.Nh = c
- },
- tWa: function() {
- return this.sp
- },
- Fea: function(c, d, e) {
- f.mB(c, f.Li);
- this.br = void 0 === e ? 1 : e;
- this.Nh = d || 0;
- this.sp = 0;
- d = this.Ph;
- d.length = 0;
- if (c) {
- for (e = 0; e < c.length; e++) {
- var g = c[e],
- h = new f.El;
- h.pj(g, 1, null);
- d.push(h)
- }
- this.sp += c.length
- }
- return !0
- },
- OQ: function() {},
- wh: function() {}
- });
- f.Yu.create = function(c, d, e) {
- return new f.Yu(c, d, e)
- };
- f.WG = {
- $y: {},
- TG: function(c, d) {
- this.$y[d] = c
- },
- d1a: function(c) {
- c && this.$y[c] && delete this.$y[c]
- },
- cl: function(c) {
- return this.$y[c] ? this.$y[c] : null
- },
- bqa: function(c, d) {
- var e = c.animations;
- if (e) {
- var g = 1,
- h = c.properties;
- if (h)
- for (var g = null != h.format ? parseInt(h.format) : g, h = h.spritesheets, k = f.Je, m = f.path, n = 0; n < h.length; n++) k.vp(m.pB(d, h[n]));
- switch (g) {
- case 1:
- this.Cta(e);
- break;
- case 2:
- this.Dta(e);
- break;
- default:
- f.log(f.l.fwa)
- }
- } else f.log(f.l.ewa)
- },
- Hva: function(c) {
- f.assert(c, f.l.nwa);
- var d = f.L.zd(c);
- d ? this.bqa(d,
- c) : f.log(f.l.mwa)
- },
- Cta: function(c) {
- var d = f.Je,
- e;
- for (e in c) {
- var g = c[e],
- h = g.frames,
- g = parseFloat(g.delay) || 0,
- k = null;
- if (h) {
- for (var k = [], m = 0; m < h.length; m++) {
- var n = d.Ca(h[m]);
- if (n) {
- var p = new f.El;
- p.pj(n, 1, null);
- k.push(p)
- } else f.log(f.l.hwa, e, h[m])
- }
- 0 === k.length ? f.log(f.l.iwa, e) : (k.length != h.length && f.log(f.l.jwa, e), k = f.Yu.create(k, g, 1), f.WG.TG(k, e))
- } else f.log(f.l.gwa, e)
- }
- },
- Dta: function(c) {
- var d = f.Je,
- e;
- for (e in c) {
- var g = c[e],
- h = parseInt(g.loops),
- h = g.loop ? f.mv : isNaN(h) ? 1 : h,
- k = g.restoreOriginalFrame && !0 == g.restoreOriginalFrame ?
- !0 : !1,
- m = g.frames;
- if (m) {
- for (var n = [], p = 0; p < m.length; p++) {
- var s = m[p],
- u = s.spriteframe,
- v = d.Ca(u);
- if (v) {
- var u = parseFloat(s.delayUnits) || 0,
- s = s.notification,
- z = new f.El;
- z.pj(v, u, s);
- n.push(z)
- } else f.log(f.l.lwa, e, u)
- }
- g = parseFloat(g.delayPerUnit) || 0;
- m = new f.Yu;
- m.JP(n, g, h);
- m.uR(k);
- f.WG.TG(m, e)
- } else f.log(f.l.kwa, e)
- }
- },
- Vs: function() {
- this.$y = {}
- }
- };
- f.Li = f.N.extend({
- hb: null,
- Jg: null,
- $i: null,
- lg: !1,
- Ta: null,
- Pk: null,
- Qk: null,
- fa: null,
- XA: "",
- Ba: !1,
- XL: null,
- ctor: function(c, d, e, g, h) {
- this.hb = r(0, 0);
- this.Pk = r(0, 0);
- this.Jg = t(0, 0);
- this.lg = !1;
- this.Qk = t(0, 0);
- this.XA = "";
- this.fa = null;
- this.Ba = !1;
- void 0 !== c && void 0 !== d && (void 0 === e || void 0 === g || void 0 === h ? this.va(c, d) : this.va(c, d, e, g, h))
- },
- RC: function() {
- return this.Ba
- },
- oe: function(c, d) {
- null == this.XL && (this.XL = []);
- this.XL.push({
- al: c,
- nj: d
- })
- },
- jf: function() {
- var c = this.XL;
- if (c) {
- for (var d = 0, e = c.length; d < e; d++) {
- var g = c[d];
- g.al.call(g.nj, this)
- }
- c.length = 0
- }
- },
- bBa: function() {
- var c = this.$i;
- return x(c.x, c.y, c.width, c.height)
- },
- c4a: function(c) {
- this.$i || (this.$i = x(0, 0, 0, 0));
- this.$i.x = c.x;
- this.$i.y = c.y;
- this.$i.width = c.width;
- this.$i.height = c.height;
- this.Ta = f.cs(c)
- },
- UXa: function() {
- return this.lg
- },
- g4a: function(c) {
- this.lg = c
- },
- $h: function() {
- var c = this.Ta;
- return x(c.x, c.y, c.width, c.height)
- },
- Iha: function(c) {
- this.Ta || (this.Ta = x(0, 0, 0, 0));
- this.Ta.x = c.x;
- this.Ta.y = c.y;
- this.Ta.width = c.width;
- this.Ta.height = c.height;
- this.$i = f.FI(this.Ta)
- },
- RUa: function() {
- return this.Pk
- },
- L3a: function(c) {
- this.Pk.x = c.x;
- this.Pk.y = c.y;
- f.xX(this.Pk, this.hb)
- },
- WUa: function() {
- return this.Qk
- },
- O3a: function(c) {
- this.Qk.width = c.width;
- this.Qk.height = c.height
- },
- QAa: function() {
- return this.Jg
- },
- N3a: function(c) {
- this.Jg.width = c.width;
- this.Jg.height = c.height
- },
- sb: function() {
- if (this.fa) return this.fa;
- if ("" !== this.XA) {
- var c = f.nb.vd(this.XA);
- c && (this.Ba = c.ie);
- return c
- }
- return null
- },
- ab: function(c) {
- if (this.fa != c) {
- var d = c.ie;
- this.Ba = d;
- this.fa = c;
- d || c.oe(function(c) {
- this.Ba = !0;
- if (this.lg &&
- f.K === f.fb) {
- var d = c.md,
- d = f.t_(d, this.$h()),
- h = new f.Pa;
- h.sh(d);
- h.$d();
- this.ab(h);
- d = this.$h();
- this.Iha(x(0, 0, d.width, d.height))
- }
- d = this.Ta;
- 0 === d.width && 0 === d.height && (d = c.width, c = c.height, this.Ta.width = d, this.Ta.height = c, this.$i = f.FI(this.Ta), this.Qk.width = this.$i.width, this.Qk.height = this.$i.height, this.Jg.width = d, this.Jg.height = c);
- this.jf()
- }, this)
- }
- },
- Kda: function() {
- return this.hb
- },
- nR: function(c) {
- this.hb.x = c.x;
- this.hb.y = c.y
- },
- p: function() {
- var c = new f.Li;
- c.va(this.XA, this.$i, this.lg, this.Pk, this.Qk);
- c.ab(this.fa);
- return c
- },
- PO: function() {
- var c = new f.Li;
- c.va(this.XA, this.$i, this.lg, this.Pk, this.Qk);
- c.ab(this.fa);
- return c
- },
- copy: function() {
- return this.PO()
- },
- va: function(c, d, e, g, h) {
- 2 === arguments.length && (d = f.FI(d));
- g = g || r(0, 0);
- h = h || d;
- e = e || !1;
- "string" == typeof c ? (this.fa = null, this.XA = c) : c instanceof f.Pa && this.ab(c);
- if (c = this.sb()) {
- var k, m;
- e ? (k = d.x + d.height, m = d.y + d.width) : (k = d.x + d.width, m = d.y + d.height);
- k > c.width && f.error(f.l.HT, c.url);
- m > c.height && f.error(f.l.GT, c.url)
- }
- this.$i = d;
- this.Ta = f.cs(d);
- this.Pk.x = g.x;
- this.Pk.y =
- g.y;
- f.xX(g, this.hb);
- this.Qk.width = h.width;
- this.Qk.height = h.height;
- f.eba(h, this.Jg);
- this.lg = e;
- return !0
- }
- });
- f.Li.create = function(c, d, e, g, h) {
- return new f.Li(c, d, e, g, h)
- };
- f.Li.aOa = function(c, d, e, g, h) {
- var k = new f.Li;
- k.fa = c;
- k.$i = d;
- k.Ta = f.cs(d);
- k.Pk.x = g.x;
- k.Pk.y = g.y;
- f.xX(k.Pk, k.hb);
- k.Qk.width = h.width;
- k.Qk.height = h.height;
- f.eba(k.Qk, k.Jg);
- k.lg = e;
- return k
- };
- f.Je = {
- q8: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
- Mpa: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
- Fn: {},
- qr: {},
- Rz: {},
- Baa: function(c) {
- return (c = this.Mpa.exec(c)) ? x(parseFloat(c[1]), parseFloat(c[2]), parseFloat(c[3]), parseFloat(c[4])) : x(0, 0, 0, 0)
- },
- paa: function(c) {
- return (c = this.q8.exec(c)) ? r(parseFloat(c[1]), parseFloat(c[2])) : r(0, 0)
- },
- vY: function(c) {
- return (c = this.q8.exec(c)) ? t(parseFloat(c[1]), parseFloat(c[2])) :
- t(0, 0)
- },
- Ira: function(c) {
- var d = f.L.zd(c);
- f.assert(d, f.l.lIa, c);
- f.L.wh(c);
- if (d.bA) return this.Rz[c] = d;
- var e = d.frames,
- g = d.metadata || d.meta,
- d = {},
- h = {},
- k = 0;
- g && (k = g.format, k = 1 >= k.length ? parseInt(k) : k, h.eCa = g.textureFileName || g.textureFileName || g.image);
- for (var m in e) {
- var n = e[m];
- if (n) {
- g = {};
- if (0 == k) {
- g.rect = x(n.x, n.y, n.width, n.height);
- g.SQ = !1;
- g.offset = r(n.offsetX, n.offsetY);
- var p = n.originalWidth,
- n = n.originalHeight;
- p && n || f.log(f.l.kIa);
- p = Math.abs(p);
- n = Math.abs(n);
- g.size = t(p, n)
- } else if (1 == k || 2 == k) g.rect = this.Baa(n.frame),
- g.SQ = n.rotated || !1, g.offset = this.paa(n.offset), g.size = this.vY(n.sourceSize);
- else if (3 == k) {
- var p = this.vY(n.spriteSize),
- s = this.Baa(n.textureRect);
- p && (s = x(s.x, s.y, p.width, p.height));
- g.rect = s;
- g.SQ = n.textureRotated || !1;
- g.offset = this.paa(n.spriteOffset);
- g.size = this.vY(n.spriteSourceSize);
- g.Zva = n.aliases
- } else p = n.frame, s = n.sourceSize, m = n.filename || m, g.rect = x(p.x, p.y, p.w, p.h), g.SQ = n.rotated || !1, g.offset = r(0, 0), g.size = t(s.w, s.h);
- d[m] = g
- }
- }
- return this.Rz[c] = {
- bA: !0,
- frames: d,
- RDa: h
- }
- },
- vp: function(c, d) {
- f.assert(c,
- f.l.nIa);
- var e = this.Rz[c] || f.L.zd(c);
- if (e && e.frames) {
- var g = this.Rz[c] || this.Ira(c),
- e = g.frames,
- g = g.RDa;
- d ? d instanceof f.Pa || ("string" == typeof d ? d = f.nb.vd(d) : f.assert(0, f.l.oIa)) : d = f.nb.vd(f.path.pB(c, g.eCa || ".png"));
- var g = this.qr,
- h = this.Fn,
- k;
- for (k in e) {
- var m = e[k],
- n = h[k];
- if (!n) {
- n = f.Li.create(d, m.rect, m.SQ, m.offset, m.size);
- if (m = m.Zva)
- for (var p = 0, s = m.length; p < s; p++) {
- var u = m[p];
- g[u] && f.log(f.l.mIa, u);
- g[u] = k
- }
- f.K === f.fb && n.lg && n.sb().ie && (m = n.sb().md, m = f.t_(m, n.bBa()), p = new f.Pa, p.sh(m), p.$d(), n.ab(p),
- m = n.Ta, n.Iha(x(0, 0, m.width, m.height)));
- h[k] = n
- }
- }
- }
- },
- CNa: function(c) {
- c = c.frames;
- for (var d in c) this.Fn[d] && f.log(f.l.jIa, d)
- },
- vZ: function(c, d) {
- this.Fn[d] = c
- },
- w1a: function() {
- this.Fn = {};
- this.qr = {}
- },
- v1a: function(c) {
- c && (this.qr[c] && delete this.qr[c], this.Fn[c] && delete this.Fn[c])
- },
- VFa: function(c) {
- var d = this.Fn,
- e = this.qr;
- if (c = this.Rz[c]) {
- c = c.frames;
- for (var g in c)
- if (d[g]) {
- delete d[g];
- for (var h in e) e[h] == g && delete e[h]
- }
- }
- },
- x1a: function(c) {
- var d = this.Fn,
- e = this.qr,
- g;
- for (g in d) {
- var h = d[g];
- if (h && h.sb() == c) {
- delete d[g];
- for (var k in e) e[k] == g && delete e[k]
- }
- }
- },
- Ca: function(c) {
- var d = this.Fn[c];
- if (!d) {
- var e = this.qr[c];
- e && ((d = this.Fn[e.toString()]) || delete this.qr[c])
- }
- d || f.log(f.l.pIa, c);
- return d
- },
- Vs: function() {
- this.Fn = {};
- this.qr = {};
- this.Rz = {}
- }
- };
- f.tB = {
- gLa: 0,
- AMa: 1,
- INT: 2,
- UKa: 3,
- eKa: 4,
- MF: 0,
- Zsa: 0,
- OY: !1,
- UN: !1,
- MY: !1,
- NY: !1,
- PY: !1,
- zOa: 0,
- cX: 0,
- KK: "",
- MG: {},
- bA: !1,
- FF: function() {
- var c = this.MG;
- c["cocos2d.x.version"] = f.JS;
- c["cocos2d.x.compiled_with_profiler"] = !1;
- c["cocos2d.x.compiled_with_gl_state_cache"] = f.Zm;
- this.bA = !0
- },
- FUa: function() {
- return this.MF
- },
- EUa: function() {
- return this.Zsa
- },
- GUa: function() {
- return this.cX
- },
- f5a: function() {
- return this.UN
- },
- g5a: function() {
- return this.OY
- },
- e5a: function() {
- return !1
- },
- h5a: function() {
- return !1
- },
- b5a: function() {
- return !1
- },
- c5a: function() {
- return this.MY
- },
- d5a: function() {
- return this.NY
- },
- i5a: function() {
- return this.PY
- },
- qB: function(c) {
- return -1 < this.KK.indexOf(c)
- },
- Uf: function(c, d) {
- this.bA || this.FF();
- var e = this.MG;
- return e[c] ? e[c] : d
- },
- ue: function(c, d) {
- this.MG[c] = d
- },
- kya: function() {
- 0 === f.Zm && (f.log(""), f.log(f.l.$wa), f.log(""))
- },
- rza: function() {
- if (f.K !== f.fb) {
- this.bA || this.FF();
- var c = f.s,
- d = this.MG;
- d["gl.vendor"] = c.getParameter(c.VENDOR);
- d["gl.renderer"] = c.getParameter(c.RENDERER);
- d["gl.version"] = c.getParameter(c.VERSION);
- this.KK = "";
- for (var e = c.getSupportedExtensions(),
- g = 0; g < e.length; g++) this.KK += e[g] + " ";
- this.MF = c.getParameter(c.MAX_TEXTURE_SIZE);
- d["gl.max_texture_size"] = this.MF;
- this.cX = c.getParameter(c.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
- d["gl.max_texture_units"] = this.cX;
- this.OY = this.qB("GL_IMG_texture_compression_pvrtc");
- d["gl.supports_PVRTC"] = this.OY;
- this.UN = !1;
- d["gl.supports_NPOT"] = this.UN;
- this.MY = this.qB("GL_IMG_texture_format_BGRA888");
- d["gl.supports_BGRA8888"] = this.MY;
- this.NY = this.qB("GL_EXT_discard_framebuffer");
- d["gl.supports_discard_framebuffer"] = this.NY;
- this.PY = this.qB("vertex_array_object");
- d["gl.supports_vertex_array_object"] = this.PY;
- f.rB()
- }
- },
- m_a: function(c) {
- this.bA || this.FF();
- var d = f.L.zd(c);
- if (!d) throw "Please load the resource first : " + c;
- f.assert(d, f.l.bxa, c);
- if (d = d.data)
- for (var e in d) this.MG[e] = d[e];
- else f.log(f.l.axa, c)
- }
- };
- f.U.FS = function() {
- f.WKa = f.N.extend({
- L5a: function() {}
- });
- var c = f.ic.prototype;
- c.ey = function(c) {
- var e = this.Y;
- this.Zha();
- var g = this.vn,
- h = g.ph.x / g.ka,
- g = g.ph.y / g.ra;
- switch (c) {
- case f.ic.ena:
- f.Lp(f.nq);
- f.$B();
- h = new f.Ma;
- f.$0(h, 0, e.width, 0, e.height, -1024, 1024);
- f.aC(h);
- f.Lp(f.mq);
- f.$B();
- break;
- case f.ic.K6:
- var k = this.MH(),
- m = new f.Ma,
- n = new f.Ma;
- f.Lp(f.nq);
- f.$B();
- f.sDa(m, e.width / e.height, 2 * k);
- f.aC(m);
- f.Lp(f.mq);
- f.$B();
- k = f.cC(null, -h + e.width / 2, -g + e.height / 2, k);
- f.Sea(n, k, f.cC(null, -h + e.width / 2, -g + e.height / 2, 0),
- f.cC(null, 0, 1, 0));
- f.aC(n);
- break;
- case f.ic.fna:
- break;
- default:
- f.log(f.l.cla)
- }
- this.mp = c;
- f.Qa.dispatchEvent(this.YL);
- f.yha()
- };
- c.Rga = function(c) {
- var e = f.s;
- c ? (e.clearDepth(1), e.enable(e.DEPTH_TEST), e.depthFunc(e.LEQUAL)) : e.disable(e.DEPTH_TEST)
- };
- c.B2 = function(c) {
- this.Y.width = f.Sb.width;
- this.Y.height = f.Sb.height;
- this.vn = c || f.view;
- c = f.tB;
- c.rza();
- c.kya();
- this.Az();
- this.aha();
- f.Qa && f.Qa.Lb(!0)
- };
- c.Vs = function() {
- var c = f.s;
- c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
- };
- c.fV = function() {
- f.Rr()
- };
- c.NU = function() {
- f.Qr()
- };
- c.Az = function() {
- if (!f.an) this.Wqa();
- else if (null != f.ic.d$ && !1 != f.ic.d$) {
- var c = new f.Pa;
- c.sh(f.ic.Qz);
- c.$d();
- var e = f.view.tH().height / 320;
- 0 === e && (e = this.Y.height / 320);
- var g = new f.an;
- g.iY(!0);
- g.xf("00.0", c, 12, 32, ".");
- g.scale = e;
- this.yk = g;
- g = new f.an;
- g.iY(!0);
- g.xf("0.000", c, 12, 32, ".");
- g.scale = e;
- this.zk = g;
- g = new f.an;
- g.iY(!0);
- g.xf("000", c, 12, 32, ".");
- g.scale = e;
- this.Jk = g;
- c = f.DS;
- this.Jk.o(c.x, 34 * e + c.y);
- this.zk.o(c.x, 17 * e + c.y);
- this.yk.o(c)
- }
- };
- c.Wqa = function() {
- var c = 0,
- c = this.Y.width > this.Y.height ? 0 | this.Y.height /
- 320 * 24 : 0 | this.Y.width / 320 * 24;
- this.yk = f.ia.create("000.0", "Arial", c);
- this.zk = f.ia.create("0.000", "Arial", c);
- this.Jk = f.ia.create("0000", "Arial", c);
- c = f.DS;
- this.Jk.o(this.Jk.width / 2 + c.x, 5 * this.Jk.height / 2 + c.y);
- this.zk.o(this.zk.width / 2 + c.x, 3 * this.zk.height / 2 + c.y);
- this.yk.o(this.yk.width / 2 + c.x, this.yk.height / 2 + c.y)
- };
- c.fxa = function(c) {
- var e = new f.Ma;
- f.y5(e);
- var g = new f.Ma;
- f.rDa(g, e);
- var h = this.vn.tH(),
- k = new f.cd;
- f.bfa(k, new f.cd(2 * c.x / h.width - 1, 1 - 2 * c.y / h.height, e.c[14] / e.c[15]), g);
- return r(k.x, k.y)
- };
- c.hxa =
- function(c) {
- var e = new f.Ma;
- f.y5(e);
- var g = new f.cd;
- f.bfa(g, new f.cd(c.x, c.y, 0), e);
- c = this.vn.tH();
- return r(c.width * (0.5 * g.x + 0.5), c.height * (0.5 * -g.y + 0.5))
- };
- c.JH = function() {
- return this.vn.JH()
- };
- c.v0 = function() {
- return this.vn.v0()
- };
- c.MH = function() {
- return this.Y.height / 1.1566
- };
- c.Zha = function() {
- var c = this.vn;
- if (c) {
- var e = this.Y;
- c.ZHa(-c.ph.x / c.ka, -c.ph.y / c.ra, e.width, e.height)
- }
- };
- c.TUa = function() {
- return this.vn
- };
- c.wVa = function() {
- return this.mp
- };
- c.tGa = function() {
- f.Fm(f.Mc, f.Lc)
- };
- c.aha = function() {
- this.tGa();
- this.Rga(!1);
- this.ey(this.mp);
- f.s.clearColor(0, 0, 0, 1)
- }
- };
- f.bl = 0;
- f.y5 = function(c) {
- var d = new f.Ma;
- f.ZP(f.nq, d);
- var e = new f.Ma;
- f.ZP(f.mq, e);
- f.Np(c, d, e)
- };
- f.ic = f.N.extend({
- vOa: !1,
- PF: !1,
- Ce: !1,
- nN: !1,
- Jt: !1,
- EE: 0,
- lX: 0,
- mp: 0,
- Xy: 0,
- Vl: 1,
- jF: !1,
- $s: 0,
- hW: 0,
- yk: null,
- zk: null,
- Jk: null,
- Y: null,
- rt: null,
- bp: null,
- YM: null,
- vn: null,
- pp: null,
- OX: null,
- mg: null,
- Ph: 0,
- aO: 0,
- bY: 0,
- XNa: null,
- nh: null,
- Ql: null,
- YL: null,
- ZV: null,
- aW: null,
- $V: null,
- ctor: function() {
- var c = this;
- c.rt = Date.now();
- f.Qa.sZ(f.vf.vD, function() {
- c.rt = Date.now()
- })
- },
- j: function() {
- this.lX = this.EE = 1 / f.Lxa;
- this.pp = [];
- this.mp = f.ic.gna;
- this.OX = null;
- this.hW = this.Xy = 0;
- this.jF = !1;
- this.aO = this.Ph = 0;
- this.rt = Date.now();
- this.nN = this.Ce = !1;
- this.Y =
- t(0, 0);
- this.vn = null;
- this.Vl = 1;
- this.nh = new f.Uy;
- this.Ql = f.M3 ? new f.M3 : null;
- this.nh.UQ(this.Ql, f.Uy.kK, !1);
- this.ZV = new f.kq(f.ic.mla);
- this.ZV.setUserData(this);
- this.aW = new f.kq(f.ic.ola);
- this.aW.setUserData(this);
- this.$V = new f.kq(f.ic.nla);
- this.$V.setUserData(this);
- this.YL = new f.kq(f.ic.tla);
- this.YL.setUserData(this);
- return !0
- },
- Nwa: function() {
- var c = Date.now();
- this.PF ? (this.$s = 0, this.PF = !1) : this.$s = (c - this.rt) / 1E3;
- 0 < f.vf.kj[f.vf.Vm.iH] && 0.2 < this.$s && (this.$s = 1 / 60);
- this.rt = c
- },
- iya: function() {
- this.Nwa();
- this.Ce || (this.nh.update(this.$s), f.Qa.dispatchEvent(this.$V));
- this.Vs();
- this.bp && this.lHa();
- this.fV && this.fV();
- this.mg && (this.mg.I(), f.Qa.dispatchEvent(this.aW));
- this.YM && this.YM.I();
- this.jF && this.Yua();
- this.NU && this.NU();
- f.Qa.dispatchEvent(this.ZV);
- this.aO++;
- this.jF && this.Aqa()
- },
- fV: null,
- NU: null,
- end: function() {
- this.nN = !0
- },
- ZSa: function() {
- return this.Vl
- },
- MUa: function() {
- return this.YM
- },
- LWa: function() {
- return this.Y
- },
- KH: function() {
- return t(this.Y.width * this.Vl, this.Y.height * this.Vl)
- },
- pause: function() {
- this.Ce ||
- (this.lX = this.EE, this.Cga(0.25), this.Ce = !0)
- },
- s0a: function() {
- f.assert(this.mg, f.l.$ka);
- this.pp.pop();
- var c = this.pp.length;
- 0 == c ? this.end() : (this.Jt = !0, this.bp = this.pp[c - 1])
- },
- qFa: function() {
- f.WG.Vs();
- f.Je.Vs();
- f.nb.Vs()
- },
- rFa: function() {
- this.Dm().pJ();
- f.Qa && f.Qa.Lb(!1);
- this.mg && (this.mg.uh(), this.mg.Ra(), this.mg.De());
- this.bp = this.mg = null;
- this.pp.length = 0;
- this.nia();
- this.qFa();
- f.rB()
- },
- tFa: function(c) {
- f.assert(c, f.l.Z4);
- this.Jt = !1;
- this.pp.push(c);
- this.bp = c
- },
- f2: function(c) {
- f.assert(c, f.l.Z4);
- if (this.mg) {
- var d =
- this.pp.length;
- 0 === d ? (this.Jt = !0, this.pp[d] = c) : (this.Jt = !0, this.pp[d - 1] = c);
- this.bp = c
- } else this.tFa(c), this.kia()
- },
- lk: function() {
- this.Ce && (this.Cga(this.lX), (this.rt = Date.now()) || f.log(f.l.bla), this.Ce = !1, this.$s = 0)
- },
- P2a: function(c) {
- c != this.Vl && (this.Vl = c, this.Az())
- },
- W2a: function() {},
- H3a: function(c) {
- this.PF = c
- },
- lHa: function() {
- var c = !1,
- d = !1;
- f.xb && (c = this.mg ? this.mg instanceof f.xb : !1, d = this.bp ? this.bp instanceof f.xb : !1);
- if (!d) {
- if (d = this.mg) d.uh(), d.Ra();
- this.Jt && d && d.De()
- }
- this.mg = this.bp;
- this.bp = null;
- c || null == this.mg || (this.mg.ba(), this.mg.sj())
- },
- J3a: function(c) {
- this.YM = c
- },
- NB: function() {
- return this.OX
- },
- $p: function(c) {
- this.OX = c
- },
- Yua: function() {
- this.Ph++;
- this.Xy += this.$s;
- this.yk && this.zk && this.Jk ? (this.Xy > f.Xka && (this.zk.string = this.bY.toFixed(3), this.hW = this.Ph / this.Xy, this.Xy = this.Ph = 0, this.yk.string = this.hW.toFixed(1), this.Jk.string = (0 | f.bl).toString()), this.yk.I(), this.zk.I(), this.Jk.I()) : this.Az();
- f.bl = 0
- },
- VXa: function() {
- return this.Jt
- },
- HVa: function() {
- return this.mg
- },
- cSa: function() {
- return this.EE
- },
- AXa: function() {
- return this.jF
- },
- OGa: function(c) {
- this.jF = c
- },
- MVa: function() {
- return this.bY
- },
- LXa: function() {
- return this.PF
- },
- QXa: function() {
- return this.Ce
- },
- uWa: function() {
- return this.aO
- },
- t0a: function() {
- this.fFa(1)
- },
- fFa: function(c) {
- f.assert(this.mg, f.l.ala);
- var d = this.pp,
- e = d.length;
- if (0 == e) this.end();
- else if (!(c > e)) {
- for (; e > c;) {
- var g = d.pop();
- g.running && (g.uh(), g.Ra());
- g.De();
- e--
- }
- this.bp = d[d.length - 1];
- this.Jt = !1
- }
- },
- Dm: function() {
- return this.nh
- },
- Mha: function(c) {
- this.nh != c && (this.nh = c)
- },
- IB: function() {
- return this.Ql
- },
- zga: function(c) {
- this.Ql != c && (this.Ql = c)
- },
- rTa: function() {
- return this.$s
- },
- Az: null,
- Aqa: function() {
- this.bY = (Date.now() - this.rt) / 1E3
- }
- });
- f.ic.tla = "director_projection_changed";
- f.ic.mla = "director_after_draw";
- f.ic.ola = "director_after_visit";
- f.ic.nla = "director_after_update";
- f.dla = f.ic.extend({
- SP: !1,
- kia: function() {
- this.PF = !0;
- this.SP = !1
- },
- lfa: function() {
- this.nN ? (this.nN = !1, this.rFa()) : this.SP || this.iya()
- },
- nia: function() {
- this.SP = !0
- },
- Cga: function(c) {
- this.EE = c;
- this.SP || (this.nia(), this.kia())
- }
- });
- f.ic.d3 = null;
- f.ic.eda = !0;
- f.ic.rW = function() {
- f.ic.eda && (f.ic.eda = !1, f.ic.d3 = new f.dla, f.ic.d3.j());
- return f.ic.d3
- };
- f.Lxa = 60;
- f.ic.ena = 0;
- f.ic.K6 = 1;
- f.ic.fna = 3;
- f.ic.gna = f.ic.K6;
- f.K === f.fb ? (q = f.ic.prototype, q.ey = function(c) {
- this.mp = c;
- f.Qa.dispatchEvent(this.YL)
- }, q.Rga = function() {}, q.B2 = function(c) {
- this.Y.width = f.Sb.width;
- this.Y.height = f.Sb.height;
- this.vn = c || f.view;
- f.Qa && f.Qa.Lb(!0)
- }, q.Vs = function() {
- var c = this.vn.ph;
- f.s.clearRect(-c.x, c.y, c.width, -c.height)
- }, q.Az = function() {
- var c = 0,
- c = this.Y.width > this.Y.height ? 0 | this.Y.height / 320 * 24 : 0 | this.Y.width / 320 * 24;
- this.yk = f.ia.create("000.0", "Arial", c);
- this.zk = f.ia.create("0.000", "Arial", c);
- this.Jk = f.ia.create("0000", "Arial", c);
- c = f.DS;
- this.Jk.o(this.Jk.width / 2 + c.x, 5 * this.Jk.height / 2 + c.y);
- this.zk.o(this.zk.width / 2 + c.x, 3 * this.zk.height / 2 + c.y);
- this.yk.o(this.yk.width / 2 + c.x, this.yk.height / 2 + c.y)
- }, q.JH = function() {
- return this.Y
- }, q.v0 = function() {
- return r(0, 0)
- }) : (f.ic.Qz = new Image, f.ub(f.ic.Qz, "load", function() {
- f.ic.d$ = !0
- }), f.Qz && (f.ic.Qz.src = f.Qz), f.assert("function" === typeof f.U.FS, f.l.Hf, "CCDirectorWebGL.js"), f.U.FS(), delete f.U.FS);
- f.rD = f.N.extend({
- mF: null,
- nF: null,
- oF: null,
- tz: null,
- uz: null,
- vz: null,
- IG: null,
- JG: null,
- KG: null,
- Ec: null,
- JM: null,
- ctor: function() {
- this.JM = new f.Ma;
- this.restore()
- },
- description: function() {
- return "\x3cCCCamera | center \x3d(" + this.tz + "," + this.uz + "," + this.vz + ")\x3e"
- },
- Sga: function(c) {
- this.Ec = c
- },
- R0: function() {
- return this.Ec
- },
- restore: function() {
- this.mF = this.nF = 0;
- this.oF = f.rD.MH();
- this.IG = this.tz = this.uz = this.vz = 0;
- this.JG = 1;
- this.KG = 0;
- f.Ex(this.JM);
- this.Ec = !1
- },
- gI: function() {
- if (this.Ec) {
- var c = new f.cd,
- d = new f.cd,
- e = new f.cd;
- f.cC(c, this.mF, this.nF, this.oF);
- f.cC(d, this.tz, this.uz, this.vz);
- f.cC(e, this.IG, this.JG, this.KG);
- f.Sea(this.JM, c, d, e);
- this.Ec = !1
- }
- f.aC(this.JM)
- },
- c3a: function(c, d, e) {
- this.Zga(c, d, e)
- },
- Zga: function(c, d, e) {
- this.mF = c;
- this.nF = d;
- this.oF = e;
- this.Ec = !0
- },
- H2a: function(c, d, e) {
- this.EGa(c, d, e)
- },
- EGa: function(c, d, e) {
- this.tz = c;
- this.uz = d;
- this.vz = e;
- this.Ec = !0
- },
- P4a: function(c, d, e) {
- this.VHa(c, d, e)
- },
- VHa: function(c, d, e) {
- this.IG = c;
- this.JG = d;
- this.KG = e;
- this.Ec = !0
- },
- RTa: function() {
- return {
- x: this.mF,
- y: this.nF,
- z: this.oF
- }
- },
- Bda: function() {
- return {
- x: this.mF,
- y: this.nF,
- z: this.oF
- }
- },
- QSa: function() {
- return {
- x: this.tz,
- y: this.uz,
- z: this.vz
- }
- },
- rda: function() {
- return {
- x: this.tz,
- y: this.uz,
- z: this.vz
- }
- },
- FWa: function() {
- return {
- x: this.IG,
- y: this.JG,
- z: this.KG
- }
- },
- IBa: function() {
- return {
- x: this.IG,
- y: this.JG,
- z: this.KG
- }
- },
- pNa: function() {}
- });
- f.rD.MH = function() {
- return f.aK
- };
- f.mMa = f.kK + 1;
- f.mB = function(c, d) {
- if (c && 0 < c.length)
- for (var e = 0; e < c.length; e++)
- if (!(c[e] instanceof d)) return f.log(f.l.mB), !1;
- return !0
- };
- f.Ld = function(c, d) {
- for (var e = 0, g = c.length; e < g; e++)
- if (c[e] == d) {
- c.splice(e, 1);
- break
- }
- };
- f.OPa = function(c, d) {
- for (var e = 0, g = d.length; e < g; e++) f.Ld(c, d[e])
- };
- f.NPa = function(c, d, e) {
- c.splice.apply(c, [e, 0].concat(d));
- return c
- };
- f.Z5 = function(c, d, e) {
- this.next = null;
- this.target = c;
- this.oFa = d;
- this.paused = e;
- this.nQ = !1
- };
- f.E5 = function(c, d, e) {
- this.list = c;
- this.tx = d;
- this.target = e;
- this.DP = null
- };
- f.Pla = function(c, d) {
- this.eq = null;
- this.target = c;
- this.SC = 0;
- this.hH = this.gH = null;
- this.paused = d;
- this.DP = null
- };
- f.B7 = f.N.extend({
- pt: 0,
- bg: null,
- ad: null,
- Fc: 0,
- Raa: !1,
- rO: !1,
- ZA: 0,
- SX: 0,
- DL: 0,
- jUa: function() {
- return this.pt
- },
- setInterval: function(c) {
- this.pt = c
- },
- JSa: function() {
- return this.bg
- },
- ctor: function(c, d, e, g, h) {
- this.ad = c;
- this.bg = d;
- this.Fc = -1;
- this.pt = e || 0;
- this.DL = h || 0;
- this.rO = 0 < this.DL;
- this.SX = null == g ? f.mv : g;
- this.Raa = this.SX == f.mv
- },
- SV: function() {
- if ("string" == typeof this.bg) this.ad[this.bg](this.Fc);
- else this.bg.call(this.ad, this.Fc)
- },
- update: function(c) {
- if (-1 == this.Fc) this.ZA = this.Fc = 0;
- else {
- var d = this.ad,
- e = this.bg;
- this.Fc +=
- c;
- this.Raa && !this.rO ? this.Fc >= this.pt && (d && e && this.SV(), this.Fc = 0) : (this.rO ? this.Fc >= this.DL && (d && e && this.SV(), this.Fc -= this.DL, this.ZA += 1, this.rO = !1) : this.Fc >= this.pt && (d && e && this.SV(), this.Fc = 0, this.ZA += 1), this.ZA > this.SX && f.Q.Dm().A3(d, e))
- }
- }
- });
- f.Uy = f.N.extend({
- Wt: 1,
- Tw: null,
- Wq: null,
- UK: null,
- Vq: null,
- wNa: null,
- eh: null,
- So: !1,
- kO: !1,
- ctor: function() {
- this.Wt = 1;
- this.Tw = [
- [],
- [],
- []
- ];
- this.Wq = {};
- this.UK = [];
- this.Vq = {};
- this.FE = [];
- this.eh = null;
- this.kO = this.So = !1
- },
- RX: function(c) {
- delete this.Vq[c.target.yb];
- f.Ld(this.FE, c);
- c.B7 = null;
- c.target = null
- },
- Haa: function(c) {
- if (c = this.Wq[c.target.yb]) f.Ld(c.list, c.tx), delete this.Wq[c.target.yb], f.Ld(this.UK, c), c.tx = null, c.target = null
- },
- taa: function(c, d, e, g) {
- g = new f.Z5(d, e, g);
- if (c) {
- for (var h = c.length - 1, k = 0; k <= h && !(e < c[k].oFa); k++);
- c.splice(k, 0, g)
- } else c = [], c.push(g);
- e = new f.E5(c, g, d);
- this.UK.push(e);
- this.Wq[d.yb] = e;
- return c
- },
- iqa: function(c, d, e) {
- e = new f.Z5(d, 0, e);
- c.push(e);
- c = new f.E5(c, e, d);
- this.UK.push(c);
- this.Wq[d.yb] = c
- },
- RHa: function(c) {
- this.Wt = c
- },
- pWa: function() {
- return this.Wt
- },
- update: function(c) {
- var d = this.Tw,
- e = this.FE,
- g, h, k;
- this.kO = !0;
- 1 != this.Wt && (c *= this.Wt);
- h = 0;
- for (k = d.length; h < k && 0 <= h; h++)
- for (var m = this.Tw[h], n = 0, p = m.length; n < p; n++) g = m[n], g.paused || g.nQ || g.target.update(c);
- h = 0;
- for (k = e.length; h < k; h++) {
- g = e[h];
- if (!g) break;
- this.eh = g;
- this.So = !1;
- if (!g.paused)
- for (g.SC = 0; g.SC < g.eq.length; g.SC++) g.gH = g.eq[g.SC], g.hH = !1, g.gH.update(c), g.gH = null;
- this.So && 0 == g.eq.length && (this.RX(g), h--)
- }
- h = 0;
- for (k = d.length; h < k; h++)
- for (m = this.Tw[h], n = 0, p = m.length; n < p;) {
- g = m[n];
- if (!g) break;
- g.nQ ? this.Haa(g) : n++
- }
- this.kO = !1;
- this.eh = null
- },
- g2: function(c, d, e, g, h, k) {
- f.assert(d, f.l.Wna);
- f.assert(c, f.l.Xna);
- e = e || 0;
- g = null == g ? f.mv : g;
- h = h || 0;
- k = k || !1;
- var m = this.Vq[c.yb];
- m || (m = new f.Pla(c, k), this.FE.push(m), this.Vq[c.yb] = m);
- if (null == m.eq) m.eq = [];
- else
- for (var n =
- 0; n < m.eq.length; n++)
- if (k = m.eq[n], d == k.bg) {
- f.log(f.l.Vna, k.pt.toFixed(4), e.toFixed(4));
- k.pt = e;
- return
- }
- k = new f.B7(c, d, e, g, h);
- m.eq.push(k)
- },
- UQ: function(c, d, e) {
- if (null !== c) {
- var g = this.Tw,
- h = this.Wq[c.yb];
- h ? h.tx.nQ = !1 : 0 == d ? this.iqa(g[1], c, e) : 0 > d ? g[0] = this.taa(g[0], c, d, e) : g[2] = this.taa(g[2], c, d, e)
- }
- },
- A3: function(c, d) {
- if (null != c && null != d) {
- var e = this.Vq[c.yb];
- if (e)
- for (var g = e.eq, h = 0, k = g.length; h < k; h++) {
- var m = g[h];
- if (d == m.bg) {
- m != e.gH || e.hH || (e.hH = !0);
- g.splice(h, 1);
- e.SC >= h && e.SC--;
- 0 == g.length && (this.eh == e ? this.So = !0 : this.RX(e));
- break
- }
- }
- }
- },
- qJ: function(c) {
- null != c && (c = this.Wq[c.yb], null != c && (this.kO ? c.tx.nQ = !0 : this.Haa(c.tx)))
- },
- Bia: function(c) {
- if (null != c) {
- var d = this.Vq[c.yb];
- if (d) {
- var e = d.eq;
- !d.hH && 0 <= e.indexOf(d.gH) && (d.hH = !0);
- e.length = 0;
- this.eh == d ? this.So = !0 : this.RX(d)
- }
- this.qJ(c)
- }
- },
- pJ: function() {
- this.QIa(f.Uy.kK)
- },
- QIa: function(c) {
- for (var d = this.FE, e = this.Tw, g = 0, h = d.length; g < h; g++) this.Bia(d[g].target);
- for (g = 2; 0 <= g; g--)
- if (!(1 == g && 0 < c || 0 == g && 0 <= c))
- for (var d = e[g], h = 0, k = d.length; h < k; h++) this.qJ(d[h].target)
- },
- i0a: function() {
- return this.XEa(f.Uy.kK)
- },
- XEa: function() {
- for (var c = [], d, e = this.FE, g = this.Tw, h = 0, k = e.length; h < k; h++)
- if (d = e[h]) d.paused = !0, c.push(d.target);
- h = 0;
- for (k = g.length; h < k; h++)
- for (var e = g[h], m = 0, n = e.length; m < n; m++)
- if (d = e[m]) d.paused = !0, c.push(d.target);
- return c
- },
- cGa: function(c) {
- if (c)
- for (var d = 0; d < c.length; d++) this.Km(c[d])
- },
- as: function(c) {
- f.assert(c, f.l.Tna);
- var d = this.Vq[c.yb];
- d && (d.paused = !0);
- (c = this.Wq[c.yb]) && (c.tx.paused = !0)
- },
- Km: function(c) {
- f.assert(c, f.l.Una);
- var d = this.Vq[c.yb];
- d && (d.paused = !1);
- (c = this.Wq[c.yb]) && (c.tx.paused = !1)
- },
- YXa: function(c) {
- f.assert(c, f.l.Sna);
- return (c = this.Vq[c.yb]) ? c.paused : !1
- }
- });
- f.Uy.kK = -2147483648;
- f.v6 = 2 * Math.PI;
- f.a5 = f.N.extend({
- jV: [],
- s: null,
- ctor: function(c) {
- this.s = c
- },
- C_: function(c, d) {
- d || (d = 1);
- var e = f.view.ka,
- g = r(c.x * e, c.y * f.view.ra);
- this.s.beginPath();
- this.s.arc(g.x, -g.y, d * e, 0, 2 * Math.PI, !1);
- this.s.closePath();
- this.s.fill()
- },
- gya: function(c, d, e) {
- if (null != c) {
- e || (e = 1);
- d = this.s;
- var g = f.view.ka,
- h = f.view.ra;
- d.beginPath();
- for (var k = 0, m = c.length; k < m; k++) d.arc(c[k].x * g, -c[k].y * h, e * g, 0, 2 * Math.PI, !1);
- d.closePath();
- d.fill()
- }
- },
- Sn: function(c, d) {
- var e = this.s,
- g = f.view.ka,
- h = f.view.ra;
- e.beginPath();
- e.moveTo(c.x * g, -c.y * h);
- e.lineTo(d.x * g, -d.y * h);
- e.closePath();
- e.stroke()
- },
- E_: function(c, d) {
- this.Sn(r(c.x, c.y), r(d.x, c.y));
- this.Sn(r(d.x, c.y), r(d.x, d.y));
- this.Sn(r(d.x, d.y), r(c.x, d.y));
- this.Sn(r(c.x, d.y), r(c.x, c.y))
- },
- H_: function(c, d, e) {
- this.G_([c, r(d.x, c.y), d, r(c.x, d.y)], 4, e)
- },
- Sf: function(c, d, e, g) {
- g = g || !1;
- if (null != c) {
- if (3 > c.length) throw Error("Polygon's point must greater than 2");
- var h = c[0];
- d = this.s;
- var k = f.view.ka,
- m = f.view.ra;
- d.beginPath();
- d.moveTo(h.x * k, -h.y * m);
- for (var h = 1, n = c.length; h < n; h++) d.lineTo(c[h].x * k, -c[h].y * m);
- e && d.closePath();
- g ? d.fill() : d.stroke()
- }
- },
- G_: function(c, d, e) {
- this.wj(e.r, e.g, e.b, e.a);
- this.Sf(c, d, !0, !0)
- },
- y_: function(c, d, e, g, h) {
- h = h || !1;
- g = this.s;
- var k = f.view.ka,
- m = f.view.ra;
- g.beginPath();
- g.arc(0 | c.x * k, 0 | -(c.y * m), d * k, -e, -(e - 2 * Math.PI), !1);
- h && g.lineTo(0 | c.x * k, 0 | -(c.y * m));
- g.stroke()
- },
- D_: function(c, d, e, g) {
- for (var h = this.jV, k = h.length = 0, m = 0; m < g; m++) h.push(r(Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * e.x, Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * e.y)), k += 1 / g;
- h.push(r(e.x, e.y));
- this.Sf(h, g + 1, !1, !1)
- },
- z_: function(c,
- d, e, g, h) {
- for (var k = this.jV, m = k.length = 0, n = 0; n < h; n++) k.push(r(Math.pow(1 - m, 3) * c.x + 3 * Math.pow(1 - m, 2) * m * d.x + 3 * (1 - m) * m * m * e.x + m * m * m * g.x, Math.pow(1 - m, 3) * c.y + 3 * Math.pow(1 - m, 2) * m * d.y + 3 * (1 - m) * m * m * e.y + m * m * m * g.y)), m += 1 / h;
- k.push(r(g.x, g.y));
- this.Sf(k, h + 1, !1, !1)
- },
- x_: function(c, d) {
- this.px(c, 0.5, d)
- },
- px: function(c, d, e) {
- f.s.strokeStyle = "rgba(255,255,255,1)";
- var g = this.jV;
- g.length = 0;
- for (var h, k, m = 1 / c.length, n = 0; n < e + 1; n++) k = n / e, 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = f.Mka(f.tg(c, h - 1), f.tg(c, h - 0), f.tg(c, h + 1),
- f.tg(c, h + 2), d, k), g.push(h);
- this.Sf(g, e + 1, !1, !1)
- },
- drawImage: function(c, d, e, g, h) {
- switch (arguments.length) {
- case 2:
- this.s.drawImage(c, d.x, -(d.y + c.height));
- break;
- case 3:
- this.s.drawImage(c, d.x, -(d.y + e.height), e.width, e.height);
- break;
- case 5:
- this.s.drawImage(c, d.x, d.y, e.width, e.height, g.x, -(g.y + h.height), h.width, h.height);
- break;
- default:
- throw Error("Argument must be non-nil");
- }
- },
- jya: function(c, d, e) {
- c = c || this.s;
- d *= f.view.ka;
- e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b);
- c.fillStyle = e + ",1)";
- var g = d / 10;
- c.beginPath();
- c.moveTo(-d, d);
- c.lineTo(0, g);
- c.lineTo(d, d);
- c.lineTo(g, 0);
- c.lineTo(d, -d);
- c.lineTo(0, -g);
- c.lineTo(-d, -d);
- c.lineTo(-g, 0);
- c.lineTo(-d, d);
- c.closePath();
- c.fill();
- var h = c.createRadialGradient(0, 0, g, 0, 0, d);
- h.addColorStop(0, e + ", 1)");
- h.addColorStop(0.3, e + ", 0.8)");
- h.addColorStop(1, e + ", 0.0)");
- c.fillStyle = h;
- c.beginPath();
- c.arc(0, 0, d - g, 0, f.v6, !1);
- c.closePath();
- c.fill()
- },
- dya: function(c, d, e) {
- c = c || this.s;
- d *= f.view.ka;
- e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b);
- var g = c.createRadialGradient(0, 0, d / 10, 0, 0, d);
- g.addColorStop(0,
- e + ", 1)");
- g.addColorStop(0.3, e + ", 0.8)");
- g.addColorStop(0.6, e + ", 0.4)");
- g.addColorStop(1, e + ", 0.0)");
- c.fillStyle = g;
- c.beginPath();
- c.arc(0, 0, d, 0, f.v6, !1);
- c.closePath();
- c.fill()
- },
- fillText: function(c, d, e) {
- this.s.fillText(c, d, -e)
- },
- wj: function(c, d, e, g) {
- this.s.fillStyle = "rgba(" + c + "," + d + "," + e + "," + g / 255 + ")";
- this.s.strokeStyle = "rgba(" + c + "," + d + "," + e + "," + g / 255 + ")"
- },
- C2: function() {},
- Ju: function(c) {
- this.s.lineWidth = c * f.view.ka
- }
- });
- f.gla = f.N.extend({
- s: null,
- GF: !1,
- Ze: null,
- Qo: -1,
- Kj: null,
- zX: -1,
- yX: -1,
- ctor: function(c) {
- null == c && (c = f.s);
- if (!c instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";
- this.s = c;
- this.Kj = new Float32Array([1, 1, 1, 1])
- },
- Sr: function() {
- this.GF || (this.Ze = f.xg.be(f.KT), this.Qo = this.s.getUniformLocation(this.Ze.Bx(), "u_color"), this.zX = this.s.getUniformLocation(this.Ze.Bx(), "u_pointSize"), this.GF = !0)
- },
- eRa: function() {
- this.GF = !1
- },
- C_: function(c) {
- this.Sr();
- var d =
- this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- d.uniform4fv(this.Qo, this.Kj);
- this.Ze.bJ(this.zX, this.yX);
- var e = d.createBuffer();
- d.bindBuffer(d.ARRAY_BUFFER, e);
- d.bufferData(d.ARRAY_BUFFER, new Float32Array([c.x, c.y]), d.STATIC_DRAW);
- d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0);
- d.drawArrays(d.POINTS, 0, 1);
- d.deleteBuffer(e);
- f.el()
- },
- gya: function(c) {
- if (c && 0 != c.length) {
- this.Sr();
- var d = this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- d.uniform4fv(this.Qo, this.Kj);
- this.Ze.bJ(this.zX, this.yX);
- var e = d.createBuffer();
- d.bindBuffer(d.ARRAY_BUFFER, e);
- d.bufferData(d.ARRAY_BUFFER, this.kN(c), d.STATIC_DRAW);
- d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0);
- d.drawArrays(d.POINTS, 0, c.length);
- d.deleteBuffer(e);
- f.el()
- }
- },
- kN: function(c) {
- for (var d = new Float32Array(2 * c.length), e = 0; e < c.length; e++) d[2 * e] = c[e].x, d[2 * e + 1] = c[e].y;
- return d
- },
- Sn: function(c, d) {
- this.Sr();
- var e = this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- e.uniform4fv(this.Qo, this.Kj);
- var g = e.createBuffer();
- e.bindBuffer(e.ARRAY_BUFFER, g);
- e.bufferData(e.ARRAY_BUFFER, this.kN([c,
- d
- ]), e.STATIC_DRAW);
- e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, 0);
- e.drawArrays(e.LINES, 0, 2);
- e.deleteBuffer(g);
- f.el()
- },
- E_: function(c, d) {
- this.Sn(r(c.x, c.y), r(d.x, c.y));
- this.Sn(r(d.x, c.y), r(d.x, d.y));
- this.Sn(r(d.x, d.y), r(c.x, d.y));
- this.Sn(r(c.x, d.y), r(c.x, c.y))
- },
- H_: function(c, d, e) {
- this.G_([c, r(d.x, c.y), d, r(c.x, d.y)], 4, e)
- },
- Sf: function(c, d, e) {
- this.Sr();
- d = this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- d.uniform4fv(this.Qo, this.Kj);
- var g = d.createBuffer();
- d.bindBuffer(d.ARRAY_BUFFER, g);
- d.bufferData(d.ARRAY_BUFFER,
- this.kN(c), d.STATIC_DRAW);
- d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0);
- e ? d.drawArrays(d.LINE_LOOP, 0, c.length) : d.drawArrays(d.LINE_STRIP, 0, c.length);
- d.deleteBuffer(g);
- f.el()
- },
- G_: function(c, d, e) {
- this.Sr();
- e && this.wj(e.r, e.g, e.b, e.a);
- d = this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- d.uniform4fv(this.Qo, this.Kj);
- e = d.createBuffer();
- d.bindBuffer(d.ARRAY_BUFFER, e);
- d.bufferData(d.ARRAY_BUFFER, this.kN(c), d.STATIC_DRAW);
- d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0);
- d.drawArrays(d.TRIANGLE_FAN, 0, c.length);
- d.deleteBuffer(e);
- f.el()
- },
- y_: function(c, d, e, g, h) {
- this.Sr();
- var k = 1;
- h && k++;
- var m = 2 * Math.PI / g;
- if (h = new Float32Array(2 * (g + 2))) {
- for (var n = 0; n <= g; n++) {
- var p = n * m,
- s = d * Math.sin(p + e) + c.y;
- h[2 * n] = d * Math.cos(p + e) + c.x;
- h[2 * n + 1] = s
- }
- h[2 * (g + 1)] = c.x;
- h[2 * (g + 1) + 1] = c.y;
- c = this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- c.uniform4fv(this.Qo, this.Kj);
- d = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, d);
- c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW);
- c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
- c.drawArrays(c.LINE_STRIP, 0, g + k);
- c.deleteBuffer(d);
- f.el()
- }
- },
- D_: function(c, d, e, g) {
- this.Sr();
- for (var h = new Float32Array(2 * (g + 1)), k = 0, m = 0; m < g; m++) h[2 * m] = Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * e.x, h[2 * m + 1] = Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * e.y, k += 1 / g;
- h[2 * g] = e.x;
- h[2 * g + 1] = e.y;
- c = this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- c.uniform4fv(this.Qo, this.Kj);
- d = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, d);
- c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW);
- c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
- c.drawArrays(c.LINE_STRIP, 0, g + 1);
- c.deleteBuffer(d);
- f.el()
- },
- z_: function(c,
- d, e, g, h) {
- this.Sr();
- for (var k = new Float32Array(2 * (h + 1)), m = 0, n = 0; n < h; n++) k[2 * n] = Math.pow(1 - m, 3) * c.x + 3 * Math.pow(1 - m, 2) * m * d.x + 3 * (1 - m) * m * m * e.x + m * m * m * g.x, k[2 * n + 1] = Math.pow(1 - m, 3) * c.y + 3 * Math.pow(1 - m, 2) * m * d.y + 3 * (1 - m) * m * m * e.y + m * m * m * g.y, m += 1 / h;
- k[2 * h] = g.x;
- k[2 * h + 1] = g.y;
- c = this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- c.uniform4fv(this.Qo, this.Kj);
- d = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, d);
- c.bufferData(c.ARRAY_BUFFER, k, c.STATIC_DRAW);
- c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
- c.drawArrays(c.LINE_STRIP, 0,
- h + 1);
- c.deleteBuffer(d);
- f.el()
- },
- x_: function(c, d) {
- this.px(c, 0.5, d)
- },
- px: function(c, d, e) {
- this.Sr();
- for (var g = new Float32Array(2 * (e + 1)), h, k, m = 1 / c.length, n = 0; n < e + 1; n++) k = n / e, 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = f.Mka(f.tg(c, h - 1), f.tg(c, h), f.tg(c, h + 1), f.tg(c, h + 2), d, k), g[2 * n] = h.x, g[2 * n + 1] = h.y;
- c = this.s;
- this.Ze.Ff();
- this.Ze.zj();
- f.wf(f.Gh);
- c.uniform4fv(this.Qo, this.Kj);
- d = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, d);
- c.bufferData(c.ARRAY_BUFFER, g, c.STATIC_DRAW);
- c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
- c.drawArrays(c.LINE_STRIP, 0, e + 1);
- c.deleteBuffer(d);
- f.el()
- },
- wj: function(c, d, e, g) {
- this.Kj[0] = c / 255;
- this.Kj[1] = d / 255;
- this.Kj[2] = e / 255;
- this.Kj[3] = g / 255
- },
- C2: function(c) {
- this.yX = c * f.Uc()
- },
- Ju: function(c) {
- this.s.lineWidth && this.s.lineWidth(c)
- }
- });
- f.U.AU = function() {
- var c = f.ia.prototype;
- c.F = f.q.prototype.F;
- c.Wj = function() {
- this.Hc = !0;
- var c = this.Iw,
- e = this.Jw;
- this.IN = "rgba(128,128,128," + this.nr + ")";
- this.aM = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + ", 1)";
- this.ON = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ", 1)"
- };
- c.Wb = f.q.prototype.Wb;
- c.J = f.q.prototype.J;
- c.hc = f.q.prototype.hc;
- c.I0 = function(c, e) {
- if (!f.q.prototype.j.call(this)) return !1;
- this.shaderProgram = f.xg.be(f.ia.Vpa);
- this.aZ(e, !1);
- this.string = c;
- return !0
- };
- c.iR = function(c) {
- var e = this.Jw;
- if (e.r != c.r ||
- e.g != c.g || e.b != c.b) e.r = c.r, e.g = c.g, e.b = c.b, this.Wj(), this.Hc = !0
- };
- c.ma = function(c) {
- if (this.td && "" != this.td) {
- c = c || f.s;
- var e = this.fa;
- e && e.ie && (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src, this.B.ha), f.Ai(e), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (c.bufferData(c.ARRAY_BUFFER, this.Vd.DO, c.STATIC_DRAW), this.Yi = !1), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 24, 16), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.drawArrays(c.TRIANGLE_STRIP,
- 0, 4));
- if (1 === f.ys) c = this.Vd, f.If.Sf([r(c.Z.k.x, c.Z.k.y), r(c.T.k.x, c.T.k.y), r(c.aa.k.x, c.aa.k.y), r(c.W.k.x, c.W.k.y)], 4, !0);
- else if (2 === f.ys) {
- c = this.EH().ea;
- var e = this.offsetX,
- g = this.offsetY;
- f.If.Sf([r(e, g), r(e + c.width, g), r(e + c.width, g + c.height), r(e, g + c.height)], 4, !0)
- }
- f.bl++
- }
- };
- c.sc = f.q.prototype.sc
- };
- f.U.xT = function() {
- var c = f.ia.prototype;
- f.d(c, "color", c.$a, c.F);
- f.d(c, "opacity", c.vb, c.J);
- f.d(c, "string", c.qc, c.wa);
- f.d(c, "textAlign", c.bAa, c.jR);
- f.d(c, "verticalAlign", c.NBa, c.ER);
- f.d(c, "fontSize", c.Un, c.Qd);
- f.d(c, "fontName", c.Cp, c.de);
- f.d(c, "font", c.Qv, c.mr);
- f.d(c, "boundingWidth", c.vF, c.CN);
- f.d(c, "boundingHeight", c.pW, c.BN);
- f.d(c, "fillStyle", c.Hra, c.iR);
- f.d(c, "strokeStyle", c.gsa, c.Qua);
- f.d(c, "lineWidth", c.Sra, c.xua);
- f.d(c, "shadowOffsetX", c.csa, c.Gua);
- f.d(c, "shadowOffsetY", c.dsa, c.Hua);
- f.d(c, "shadowOpacity",
- c.esa, c.Iua);
- f.d(c, "shadowBlur", c.bsa, c.Fua)
- };
- f.ia = f.q.extend({
- ze: null,
- Xo: f.Bo,
- tp: f.zE,
- Rc: null,
- Sc: 0,
- td: "",
- qX: null,
- hA: !1,
- jn: null,
- Mg: !1,
- oh: null,
- nr: 0,
- Mt: 0,
- IN: null,
- om: !1,
- Iw: null,
- sr: 0,
- ON: null,
- Jw: null,
- aM: null,
- JY: 0,
- KY: 0,
- Hc: !1,
- EM: null,
- FM: null,
- S$: null,
- ta: "LabelTTF",
- ctor: function(c, d, e, g, h, k) {
- f.q.prototype.ctor.call(this);
- this.ze = t(0, 0);
- this.Xo = f.wK;
- this.tp = f.zE;
- this.Jb = !1;
- this.jn = "";
- this.Rc = "Arial";
- this.Mg = this.hA = !1;
- this.oh = r(0, 0);
- this.Mt = this.nr = 0;
- this.IN = "rgba(128, 128, 128, 0.5)";
- this.om = !1;
- this.Iw = f.color(255, 255, 255, 255);
- this.sr = 0;
- this.ON = "";
- this.Jw =
- f.color(255, 255, 255, 255);
- this.aM = "rgba(255,255,255,1)";
- this.KY = this.JY = 0;
- this.Hc = !1;
- this.S$ = [];
- this.Wj();
- d && d instanceof f.x5 ? this.I0(c, d) : f.ia.prototype.xf.call(this, c, d, e, g, h, k)
- },
- j: function() {
- return this.xf(" ", this.Rc, this.Sc)
- },
- $sa: function() {
- this.sW().font = this.jn
- },
- NF: function(c) {
- return this.sW().measureText(c).width
- },
- Eqa: function(c, d) {
- var e = this.NF(c),
- g = Math.floor(c.length * d / e),
- h = c.indexOf("\n");
- if (0.8 * g >= h && 0 < h) return h + 1;
- if (e < d) return c.length;
- for (var e = !1, h = d + 1, k = -1, m = g, n, p = f.ia.Gqa, s = f.ia.bua,
- u = f.ia.Dqa, v = c.substr(g); n = p.exec(v);) {
- m += n[0].length;
- h = this.NF(c.substr(0, m));
- if ("\n" == n[2] && h < d) {
- e = !0;
- k = m;
- break
- }
- if (h > d) {
- -1 != k && (e = !0);
- break
- }
- k = m;
- v = c.substr(m)
- }
- if (e) return k;
- v = c.substr(0, g);
- for (k = g; n = s.exec(v);)
- if (k = n[1].length, v = n[1], h = this.NF(v), h < d) {
- u.test(n[2]) && k++;
- break
- }
- return k || 1
- },
- description: function() {
- return "\x3ccc.LabelTTF | FontName \x3d" + this.Rc + " FontSize \x3d " + this.Sc.toFixed(1) + "\x3e"
- },
- F: null,
- Wj: null,
- Wb: null,
- J: null,
- hc: null,
- K5a: function(c) {
- f.ja.prototype.hc.call(this, c);
- this.Wj()
- },
- qc: function() {
- return this.td
- },
- bAa: function() {
- return this.Xo
- },
- NBa: function() {
- return this.tp
- },
- Pza: function() {
- return t(this.ze.width, this.ze.height)
- },
- Un: function() {
- return this.Sc
- },
- Cp: function() {
- return this.Rc
- },
- xf: function(c, d, e, g, h, k) {
- c = c ? c + "" : "";
- e = e || 16;
- g = g || t(0, e);
- h = h || f.wK;
- k = k || f.zE;
- this.Jb = !1;
- this.ze = t(g.width, g.height);
- this.Rc = d || "Arial";
- this.Xo = h;
- this.tp = k;
- this.Sc = e;
- this.jn = this.Sc + "px '" + d + "'";
- this.Vo = f.ia.BE(d, this.Sc);
- this.string = c;
- this.Wj();
- this.qO();
- this.Hc = !1;
- return !0
- },
- I0: null,
- s4a: function(c) {
- c &&
- this.aZ(c, !0)
- },
- hWa: function() {
- return this.Ita(!1)
- },
- L_: function(c, d, e, g) {
- e = e || 0.5;
- !1 === this.Mg && (this.Mg = !0);
- var h = this.oh;
- if (h && h.x != c || h.hj != d) h.x = c, h.y = d;
- this.nr != e && (this.nr = e);
- this.Wj();
- this.Mt != g && (this.Mt = g);
- this.Hc = !0
- },
- csa: function() {
- return this.oh.x
- },
- Gua: function(c) {
- !1 === this.Mg && (this.Mg = !0);
- this.oh.x != c && (this.oh.x = c, this.Hc = !0)
- },
- dsa: function() {
- return this.oh.hj
- },
- Hua: function(c) {
- !1 === this.Mg && (this.Mg = !0);
- this.oh.hj != c && (this.oh.hj = c, this.Hc = !0)
- },
- kOa: function() {
- return r(this.oh.x, this.oh.y)
- },
- SOa: function(c) {
- !1 === this.Mg && (this.Mg = !0);
- if (this.oh.x != c.x || this.oh.y != c.y) this.oh.x = c.x, this.oh.y = c.y, this.Hc = !0
- },
- esa: function() {
- return this.nr
- },
- Iua: function(c) {
- !1 === this.Mg && (this.Mg = !0);
- this.nr != c && (this.nr = c, this.Wj(), this.Hc = !0)
- },
- bsa: function() {
- return this.Mt
- },
- Fua: function(c) {
- !1 === this.Mg && (this.Mg = !0);
- this.Mt != c && (this.Mt = c, this.Hc = !0)
- },
- SQa: function() {
- this.Mg && (this.Mg = !1, this.Hc = !0)
- },
- Sya: function(c, d) {
- !1 === this.om && (this.om = !0);
- var e = this.Iw;
- if (e.r !== c.r || e.g !== c.g || e.b !== c.b) e.r = c.r, e.g =
- c.g, e.b = c.b, this.Wj();
- this.sr !== d && (this.sr = d || 0);
- this.Hc = !0
- },
- gsa: function() {
- return this.Iw
- },
- Qua: function(c) {
- !1 === this.om && (this.om = !0);
- var d = this.Iw;
- if (d.r !== c.r || d.g !== c.g || d.b !== c.b) d.r = c.r, d.g = c.g, d.b = c.b, this.Wj(), this.Hc = !0
- },
- Sra: function() {
- return this.sr
- },
- xua: function(c) {
- !1 === this.om && (this.om = !0);
- this.sr !== c && (this.sr = c || 0, this.Hc = !0)
- },
- TQa: function() {
- this.om && (this.om = !1, this.Hc = !0)
- },
- iR: null,
- Hra: function() {
- return this.Jw
- },
- aZ: function(c, d) {
- c.PRa ? (this.ze.width = c.boundingWidth, this.ze.height =
- c.boundingHeight) : (this.ze.width = 0, this.ze.height = 0);
- this.Xo = c.textAlign;
- this.tp = c.verticalAlign;
- this.Rc = c.fontName;
- this.Sc = c.fontSize || 12;
- this.jn = this.Sc + "px '" + this.Rc + "'";
- this.Vo = f.ia.BE(this.Rc, this.Sc);
- c.cia && this.L_(c.shadowOffsetX, c.shadowOffsetY, c.shadowOpacity, c.shadowBlur);
- c.m3 && this.Sya(c.strokeStyle, c.lineWidth);
- this.iR(c.fillStyle);
- d && this.qO()
- },
- Ita: function(c) {
- var d = new f.x5;
- c ? (d.fontSize = this.Sc, d.boundingWidth = f.Uc() * this.ze.width, d.boundingHeight = f.Uc() * this.ze.height) : (d.fontSize =
- this.Sc, d.boundingWidth = this.ze.width, d.boundingHeight = this.ze.height);
- d.fontName = this.Rc;
- d.textAlign = this.Xo;
- d.verticalAlign = this.tp;
- if (this.om) {
- d.m3 = !0;
- var e = this.Iw;
- d.strokeStyle = f.color(e.r, e.g, e.b);
- d.lineWidth = this.sr
- } else d.m3 = !1;
- this.Mg ? (d.cia = !0, d.shadowBlur = this.Mt, d.shadowOpacity = this.nr, d.shadowOffsetX = (c ? f.Uc() : 1) * this.oh.x, d.shadowOffsetY = (c ? f.Uc() : 1) * this.oh.y) : d.Mg = !1;
- c = this.Jw;
- d.fillStyle = f.color(c.r, c.g, c.b);
- return d
- },
- Vo: 18,
- wa: function(c) {
- c = String(c);
- this.qX != c && (this.qX = c + "", this.oO(),
- this.Hc = !0)
- },
- oO: function() {
- this.td = this.qX
- },
- jR: function(c) {
- c !== this.Xo && (this.Xo = c, this.Hc = !0)
- },
- ER: function(c) {
- c != this.tp && (this.tp = c, this.Hc = !0)
- },
- gR: function(c) {
- if (c.width != this.ze.width || c.height != this.ze.height) this.ze = c, this.oO(), this.Hc = !0
- },
- vF: function() {
- return this.ze.width
- },
- CN: function(c) {
- c != this.ze.width && (this.ze.width = c, this.oO(), this.Hc = !0)
- },
- pW: function() {
- return this.ze.height
- },
- BN: function(c) {
- c != this.ze.height && (this.ze.height = c, this.oO(), this.Hc = !0)
- },
- Qd: function(c) {
- this.Sc !== c && (this.Sc =
- c, this.jn = c + "px '" + this.Rc + "'", this.Vo = f.ia.BE(this.Rc, c), this.Hc = !0)
- },
- de: function(c) {
- this.Rc && this.Rc != c && (this.Rc = c, this.jn = this.Sc + "px '" + c + "'", this.Vo = f.ia.BE(c, this.Sc), this.Hc = !0)
- },
- Qv: function() {
- return this.jn
- },
- mr: function(c) {
- var d = f.ia.eM.exec(c);
- d && (this.Sc = parseInt(d[1]), this.Rc = d[2], this.jn = c, this.Vo = f.ia.BE(this.Rc, this.Sc), this.Hc = !0)
- },
- gra: function(c) {
- if (c) {
- var d = this.JY,
- e = this.KY,
- g = this.m.height - e,
- h = this.tp,
- k = this.Xo,
- m = this.Vo,
- n = this.sr;
- c.setTransform(1, 0, 0, 1, 0 + 0.5 * d, g + 0.5 * e);
- c.font !=
- this.jn && (c.font = this.jn);
- c.fillStyle = this.aM;
- var p = e = 0,
- s = this.om;
- s && (c.lineWidth = 2 * n, c.strokeStyle = this.ON);
- this.Mg && (n = this.oh, c.shadowColor = this.IN, c.shadowOffsetX = n.x, c.shadowOffsetY = -n.y, c.shadowBlur = this.Mt);
- c.textBaseline = f.ia.kva[h];
- c.textAlign = f.ia.jva[k];
- d = this.m.width - d;
- e = k === f.q7 ? e + d : k === f.Bo ? e + d / 2 : e + 0;
- if (this.hA)
- for (k = this.rr.length, h === f.j8 ? p = m + g - m * k : h === f.wU && (p = m / 2 + (g - m * k) / 2), h = 0; h < k; h++) d = this.rr[h], n = -g + m * h + p, s && c.strokeText(d, e, n), c.fillText(d, e, n);
- else h !== f.j8 && (p = h === f.zE ? p -
- g : p - 0.5 * g), s && c.strokeText(this.td, e, p), c.fillText(this.td, e, p)
- }
- },
- sW: function() {
- if (this.FM) return this.FM;
- if (!this.EM) {
- var c = f.fd("canvas"),
- d = new f.Pa;
- d.sh(c);
- this.texture = d;
- this.EM = c
- }
- return this.FM = this.EM.getContext("2d")
- },
- pO: function() {
- var c = this.ze.width,
- d, e, g = this.S$;
- g.length = 0;
- this.hA = !1;
- this.$sa();
- if (0 !== c) {
- var h = this.td;
- this.rr = [];
- d = 0;
- for (e = this.td.length; d < e;) {
- var k = this.Eqa(h.substr(d), c);
- this.rr.push(h.substr(d, k));
- d += k
- }
- } else
- for (this.rr = this.td.split("\n"), d = 0, e = this.rr.length; d < e; d++) g.push(this.NF(this.rr[d]));
- 0 < this.rr.length && (this.hA = !0);
- e = d = 0;
- this.om && (d = e = 2 * this.sr);
- this.Mg && (h = this.oh, d += 2 * Math.abs(h.x), e += 2 * Math.abs(h.y));
- c = 0 === c ? this.hA ? t(0 | Math.max.apply(Math, g) + d, 0 | this.Vo * this.rr.length + e) : t(0 | this.NF(this.td) + d, 0 | this.Vo + e) : 0 === this.ze.height ? this.hA ? t(0 | c + d, 0 | this.Vo * this.rr.length + e) : t(0 | c + d, 0 | this.Vo + e) : t(0 | c + d, 0 | this.ze.height + e);
- this.Ga(c);
- this.JY = d;
- this.KY = e;
- g = this.Eb;
- this.Qb.x = 0.5 * d + (c.width - d) * g.x;
- this.Qb.y = 0.5 * e + (c.height - e) * g.y
- },
- e: function() {
- this.Hc && this.pO();
- return f.q.prototype.e.call(this)
- },
- lf: function() {
- this.Hc && this.pO();
- return f.q.prototype.lf.call(this)
- },
- Gg: function() {
- this.Hc && this.pO();
- return f.q.prototype.Gg.call(this)
- },
- qO: function() {
- var c = this.sW(),
- d = this.EM,
- e = this.m;
- if (0 === this.td.length) return d.width = 1, d.height = e.height, this.sc(x(0, 0, 1, e.height)), !0;
- c.font = this.jn;
- this.pO();
- var g = e.width,
- e = e.height,
- h = d.width == g && d.height == e;
- d.width = g;
- d.height = e;
- h && c.clearRect(0, 0, g, e);
- this.gra(c);
- this.fa && this.fa.$d();
- this.sc(x(0, 0, g, e));
- return !0
- },
- I: function(c) {
- this.td && "" != this.td && (this.Hc &&
- (this.Hc = !1, this.qO()), f.q.prototype.I.call(this, c || f.s))
- },
- ma: null,
- Yaa: function(c) {
- var d = this.Aa ? this.textureAtlas.texture : this.fa;
- if (d) {
- var e = d.pixelsWidth,
- g = d.pixelsHeight,
- h, k = this.Vd;
- this.pf ? (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.height - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.height) / e, h = c.y / g, c = (c.y + c.width) / g), this.Fb && (g = h, h = c, c = g), this.Hb && (g = d, d = e, e = g), k.T.t.Da = d, k.T.t.ga = h, k.aa.t.Da = d, k.aa.t.ga = c, k.Z.t.Da = e, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = c) : (f.Ey ? (d = (2 * c.x + 1) / (2 *
- e), e = d + (2 * c.width - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.width) / e, h = c.y / g, c = (c.y + c.height) / g), this.Fb && (g = d, d = e, e = g), this.Hb && (g = h, h = c, c = g), k.T.t.Da = d, k.T.t.ga = c, k.aa.t.Da = e, k.aa.t.ga = c, k.Z.t.Da = d, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = h);
- this.Yi = !0
- }
- }
- });
- f.K === f.fb ? (q = f.ia.prototype, q.F = function(c) {
- f.ja.prototype.F.call(this, c);
- this.Wj()
- }, q.Wj = function() {
- this.Hc = !0;
- var c = this.Ab,
- d = this.kb,
- e = this.Iw,
- g = this.Jw;
- this.IN = "rgba(" + (0 | 0.5 * c.r) + "," + (0 | 0.5 * c.g) + "," + (0 | 0.5 * c.b) + "," + this.nr + ")";
- this.aM = "rgba(" + (0 | c.r / 255 * g.r) + "," + (0 | c.g / 255 * g.g) + "," + (0 | c.b / 255 * g.b) + ", " + d / 255 + ")";
- this.ON = "rgba(" + (0 | c.r / 255 * e.r) + "," + (0 | c.g / 255 * e.g) + "," + (0 | c.b / 255 * e.b) + ", " + d / 255 + ")"
- }, q.Wb = function(c) {
- f.ja.prototype.Wb.call(this, c);
- this.Wj()
- }, q.J = function(c) {
- this.Ib !== c && (f.q.prototype.J.call(this,
- c), this.Wj(), this.Hc = !0)
- }, q.hc = f.q.prototype.hc, q.I0 = function(c, d) {
- this.aZ(d, !1);
- this.string = c;
- return !0
- }, q.iR = function(c) {
- var d = this.Jw;
- if (d.r != c.r || d.g != c.g || d.b != c.b) d.r = c.r, d.g = c.g, d.b = c.b, this.Wj(), this.Hc = !0
- }, q.ma = f.q.prototype.ma, q.sc = function(c, d, e) {
- this.pf = d || !1;
- this.Ga(e || c);
- this.c3(c);
- d = this.YA;
- d.x = c.x;
- d.y = c.y;
- d.width = c.width;
- d.height = c.height;
- d.$C = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
- c = this.Ln;
- this.Fb && (c.x = -c.x);
- this.Hb && (c.y = -c.y);
- this.od.x = c.x + (this.m.width - this.Ta.width) / 2;
- this.od.y =
- c.y + (this.m.height - this.Ta.height) / 2;
- this.Aa && (this.dirty = !0)
- }, q = null) : (f.assert("function" === typeof f.U.AU, f.l.Hf, "LabelTTFWebGL.js"), f.U.AU(), delete f.U.AU);
- f.assert("function" === typeof f.U.xT, f.l.Hf, "LabelTTFPropertyDefine.js");
- f.U.xT();
- delete f.U.xT;
- f.ia.jva = ["left", "center", "right"];
- f.ia.kva = ["top", "middle", "bottom"];
- f.ia.Gqa = /(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
- f.ia.bua = /(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
- f.ia.Dqa = /[\s\-\/\\\:]/;
- f.ia.eM = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
- f.ia.create = function(c, d, e, g, h, k) {
- return new f.ia(c, d, e, g, h, k)
- };
- f.ia.Vpa = f.Hpa ? f.zo : f.JT;
- f.ia.Ks = f.fd("div");
- f.ia.Ks.style.fontFamily = "Arial";
- f.ia.Ks.style.position = "absolute";
- f.ia.Ks.style.left = "-100px";
- f.ia.Ks.style.top = "-100px";
- f.ia.Ks.style.lineHeight = "normal";
- document.body ? document.body.appendChild(f.ia.Ks) : f.ub(window, "load", function() {
- this.removeEventListener("load", arguments.callee, !1);
- document.body.appendChild(f.ia.Ks)
- }, !1);
- f.ia.BE = function(c, d) {
- var e = f.ia.r8[c + "." + d];
- if (0 < e) return e;
- var g = f.ia.Ks;
- g.innerHTML = "ajghl~!";
- g.style.fontFamily = c;
- g.style.fontSize = d + "px";
- e = g.clientHeight;
- f.ia.r8[c + "." + d] = e;
- g.innerHTML = "";
- return e
- };
- f.ia.r8 = {};
- f.Ola = f.N.extend({
- bf: null,
- target: null,
- Zw: 0,
- $j: null,
- mx: !1,
- paused: !1,
- DP: null,
- ctor: function() {
- this.bf = [];
- this.target = null;
- this.Zw = 0;
- this.$j = null;
- this.paused = this.mx = !1;
- this.DP = null
- }
- });
- f.M3 = f.N.extend({
- ln: null,
- bz: null,
- eh: null,
- So: !1,
- OOa: function(c, d) {
- for (var e = 0; e < c.length; e++)
- if (d == c[e].target) return c[e];
- return null
- },
- ctor: function() {
- this.ln = {};
- this.bz = [];
- this.eh = null;
- this.So = !1
- },
- Gva: function(c, d, e) {
- if (!c) throw "cc.ActionManager.addAction(): action must be non-null";
- if (!d) throw "cc.ActionManager.addAction(): action must be non-null";
- var g = this.ln[d.yb];
- g || (g = new f.Ola, g.paused = e, g.target = d, this.ln[d.yb] = g, this.bz.push(g));
- this.aqa(g);
- g.bf.push(c);
- c.R(d)
- },
- V0a: function() {
- for (var c =
- this.bz, d = 0; d < c.length; d++) {
- var e = c[d];
- e && this.iga(e.target, !0)
- }
- },
- iga: function(c, d) {
- if (null != c) {
- var e = this.ln[c.yb];
- e && (-1 === e.bf.indexOf(e.$j) || e.mx || (e.mx = !0), e.bf.length = 0, this.eh != e || d ? this.HV(e) : this.So = !0)
- }
- },
- hga: function(c) {
- if (null != c) {
- var d = this.ln[c.originalTarget.yb];
- if (d)
- for (var e = 0; e < d.bf.length; e++) {
- if (d.bf[e] == c) {
- d.bf.splice(e, 1);
- break
- }
- } else f.log(f.l.aja)
- }
- },
- IFa: function(c, d) {
- c == f.uy && f.log(f.l.N3);
- f.assert(d, f.l.N3);
- var e = this.ln[d.yb];
- if (e)
- for (var g = e.bf.length, h = 0; h < g; ++h) {
- var k = e.bf[h];
- if (k && k.Em() === c && k.originalTarget == d) {
- this.Tta(h, e);
- break
- }
- }
- },
- eP: function(c, d) {
- c == f.uy && f.log(f.l.Zia);
- var e = this.ln[d.yb];
- if (e) {
- if (null != e.bf)
- for (var g = 0; g < e.bf.length; ++g) {
- var h = e.bf[g];
- if (h && h.Em() === c) return h
- }
- f.log(f.l.$ia, c)
- }
- return null
- },
- YDa: function(c) {
- return (c = this.ln[c.yb]) ? c.bf ? c.bf.length : 0 : 0
- },
- as: function(c) {
- (c = this.ln[c.yb]) && (c.paused = !0)
- },
- Km: function(c) {
- (c = this.ln[c.yb]) && (c.paused = !1)
- },
- h0a: function() {
- for (var c = [], d = this.bz, e = 0; e < d.length; e++) {
- var g = d[e];
- g && !g.paused && (g.paused = !0, c.push(g.target))
- }
- return c
- },
- cGa: function(c) {
- if (c)
- for (var d = 0; d < c.length; d++) c[d] && this.Km(c[d])
- },
- A0a: function() {
- f.Q.Dm().qJ(this)
- },
- Tta: function(c, d) {
- d.bf[c] != d.$j || d.mx || (d.mx = !0);
- d.bf.splice(c, 1);
- d.Zw >= c && d.Zw--;
- 0 == d.bf.length && (this.eh == d ? this.So = !0 : this.HV(d))
- },
- HV: function(c) {
- c && (delete this.ln[c.target.yb], f.Ld(this.bz, c), c.bf = null, c.target = null)
- },
- aqa: function(c) {
- null == c.bf && (c.bf = [])
- },
- update: function(c) {
- for (var d = this.bz, e, g = 0; g < d.length; g++) {
- e = this.eh = d[g];
- if (!e.paused)
- for (e.Zw = 0; e.Zw < e.bf.length; e.Zw++)
- if (e.$j = e.bf[e.Zw],
- e.$j) {
- e.mx = !1;
- e.$j.step(c * (e.$j.tG ? e.$j.ti : 1));
- if (e.mx) e.$j = null;
- else if (e.$j.gk()) {
- e.$j.stop();
- var h = e.$j;
- e.$j = null;
- this.hga(h)
- }
- e.$j = null
- }
- this.So && 0 === e.bf.length && this.HV(e)
- }
- }
- });
- f.FZa = Number;
- f.vYa = Number;
- f.wYa = Number;
- f.Ly = 0;
- f.My = 1;
- f.a1 = 3.141592;
- f.vDa = 0.017453;
- f.wDa = 57.295779;
- f.Bb = 0.015625;
- f.yf = function(c) {
- return c * c
- };
- f.bI = function(c) {
- return c * f.vDa
- };
- f.AZa = function(c) {
- return c * f.wDa
- };
- f.bQ = function(c, d) {
- return c < d ? c : d
- };
- f.aQ = function(c, d) {
- return c > d ? c : d
- };
- f.uYa = function(c, d) {
- return c + f.Bb > d && c - f.Bb < d
- };
- f.ao = function() {
- this.y = this.x = 0
- };
- f.JZa = function(c, d, e) {
- c.x = d;
- c.y = e;
- return c
- };
- f.dQ = function(c) {
- return Math.sqrt(f.yf(c.x) + f.yf(c.y))
- };
- f.KZa = function(c) {
- return f.yf(c.x) + f.yf(c.y)
- };
- f.CDa = function(c, d) {
- var e = 1 / f.dQ(d),
- g = new f.ao;
- g.x = d.x * e;
- g.y = d.y * e;
- c.x = g.x;
- c.y = g.y
- };
- f.GZa = function(c, d, e) {
- c.x = d.x + e.x;
- c.y = d.y + e.y;
- return c
- };
- f.IZa = function(c, d) {
- return c.x * d.x + c.y * d.y
- };
- f.eQ = function(c, d, e) {
- c.x = d.x - e.x;
- c.y = d.y - e.y;
- return c
- };
- f.MZa = function(c, d, e) {
- var g = new f.ao;
- g.x = d.x * e.c[0] + d.y * e.c[3] + e.c[6];
- g.y = d.x * e.c[1] + d.y * e.c[4] + e.c[7];
- c.x = g.x;
- c.y = g.y;
- return c
- };
- f.NZa = function() {
- return null
- };
- f.LZa = function(c, d, e) {
- c.x = d.x * e;
- c.y = d.y * e;
- return c
- };
- f.HZa = function(c, d) {
- return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb
- };
- f.cd = function(c, d, e) {
- this.x = c || 0;
- this.y = d || 0;
- this.z = e || 0
- };
- f.cC = function(c, d, e, g) {
- if (!c) return new f.cd(d, e, g);
- c.x = d;
- c.y = e;
- c.z = g;
- return c
- };
- f.$ea = function(c) {
- return Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z))
- };
- f.afa = function(c) {
- return f.yf(c.x) + f.yf(c.y) + f.yf(c.z)
- };
- f.hk = function(c, d) {
- var e = 1 / f.$ea(d);
- c.x = d.x * e;
- c.y = d.y * e;
- c.z = d.z * e
- };
- f.vu = function(c, d, e) {
- c.x = d.y * e.z - d.z * e.y;
- c.y = d.z * e.x - d.x * e.z;
- c.z = d.x * e.y - d.y * e.x
- };
- f.c1 = function(c, d) {
- return c.x * d.x + c.y * d.y + c.z * d.z
- };
- f.Zea = function(c, d, e) {
- c.x = d.x + e.x;
- c.y = d.y + e.y;
- c.z = d.z + e.z
- };
- f.e1 = function(c, d, e) {
- c.x = d.x - e.x;
- c.y = d.y - e.y;
- c.z = d.z - e.z
- };
- f.SZa = function(c, d, e) {
- c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8] + e.c[12];
- c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9] + e.c[13];
- c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10] + e.c[14];
- return c
- };
- f.TZa = function(c, d, e) {
- c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8];
- c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9];
- c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10];
- return c
- };
- f.bfa = function(c, d, e) {
- var g = new f.cfa,
- h = new f.cfa;
- f.DDa(h, d.x, d.y, d.z);
- f.dfa(g, h, e);
- c.x = g.x / g.da;
- c.y = g.y / g.da;
- c.z = g.z / g.da
- };
- f.d1 = function(c, d, e) {
- c.x = d.x * e;
- c.y = d.y * e;
- c.z = d.z * e;
- return c
- };
- f.OZa = function(c, d) {
- return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb && c.z < d.z + f.Bb && c.z > d.z - f.Bb ? 1 : 0
- };
- f.PZa = function(c, d, e) {
- d = new f.cd(d.x - e.c[12], d.y - e.c[13], d.z - e.c[14]);
- c.x = d.x * e.c[0] + d.y * e.c[1] + d.z * e.c[2];
- c.y = d.x * e.c[4] + d.y * e.c[5] + d.z * e.c[6];
- c.z = d.x * e.c[8] + d.y * e.c[9] + d.z * e.c[10];
- return c
- };
- f.QZa = function(c, d, e) {
- c.x = d.x * e.c[0] + d.y * e.c[1] + d.z * e.c[2];
- c.y = d.x * e.c[4] + d.y * e.c[5] + d.z * e.c[6];
- c.z = d.x * e.c[8] + d.y * e.c[9] + d.z * e.c[10];
- return c
- };
- f.cI = function(c, d) {
- c != d && (c.x = d.x, c.y = d.y, c.z = d.z)
- };
- f.UZa = function(c) {
- c.x = 0;
- c.y = 0;
- c.z = 0;
- return c
- };
- f.RZa = function(c) {
- if (!c) return null;
- var d = new Float32Array(3);
- d[0] = c.x;
- d[1] = c.y;
- d[2] = c.z;
- return d
- };
- f.cfa = function() {
- this.da = this.z = this.y = this.x = 0
- };
- f.DDa = function(c, d, e, g) {
- c.x = d;
- c.y = e;
- c.z = g;
- c.da = 1
- };
- f.VZa = function(c, d, e) {
- c.x = d.x + e.x;
- c.y = d.y + e.y;
- c.z = d.z + e.z;
- c.da = d.da + e.da;
- return c
- };
- f.YZa = function(c, d) {
- return c.x * d.x + c.y * d.y + c.z * d.z + c.da * d.da
- };
- f.EDa = function(c) {
- return Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z) + f.yf(c.da))
- };
- f.ZZa = function(c) {
- return f.yf(c.x) + f.yf(c.y) + f.yf(c.z) + f.yf(c.da)
- };
- f.$Za = function(c) {
- return c
- };
- f.FDa = function(c, d) {
- var e = 1 / f.EDa(d);
- c.x *= e;
- c.y *= e;
- c.z *= e;
- c.da *= e
- };
- f.a_a = function(c, d, e) {
- f.FDa(c, d);
- c.x *= e;
- c.y *= e;
- c.z *= e;
- c.da *= e;
- return c
- };
- f.b_a = function(c, d, e) {
- c.x = d.x - e.x;
- c.y = d.y - e.y;
- c.z = d.z - e.z;
- c.da = d.da - e.da;
- return c
- };
- f.dfa = function(c, d, e) {
- c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8] + d.da * e.c[12];
- c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9] + d.da * e.c[13];
- c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10] + d.da * e.c[14];
- c.da = d.x * e.c[3] + d.y * e.c[7] + d.z * e.c[11] + d.da * e.c[15]
- };
- f.d_a = function(c, d, e, g, h, k) {
- for (var m = 0; m < k;) f.dfa(c + m * d, e + m * g, h), ++m;
- return c
- };
- f.WZa = function(c, d) {
- return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb && c.z < d.z + f.Bb && c.z > d.z - f.Bb && c.da < d.da + f.Bb && c.da > d.da - f.Bb
- };
- f.XZa = function(c, d) {
- if (c == d) return f.log("destVec and srcVec are same object"), c;
- c.x = d.x;
- c.y = d.y;
- c.z = d.z;
- c.da = d.da;
- return c
- };
- f.c_a = function(c) {
- if (!c) return null;
- var d = new Float32Array(4);
- d[0] = c.x;
- d[1] = c.y;
- d[2] = c.z;
- d[3] = c.da;
- return d
- };
- f.BZa = function(c) {
- this.start = c || new f.ao;
- this.start = c || new f.ao
- };
- f.CZa = function(c, d, e, g, h) {
- c.start.x = d;
- c.start.y = e;
- c.dir.x = g;
- c.dir.y = h
- };
- f.b1 = function(c, d, e, g) {
- var h = c.start.x,
- k = c.start.y,
- m = c.start.x + c.dir.x;
- c = c.start.y + c.dir.y;
- var n = d.x,
- p = d.y,
- s = e.x,
- u = e.y,
- v = (u - p) * (m - h) - (s - n) * (c - k);
- if (v > -f.Bb && v < f.Bb) return f.Ly;
- p = ((s - n) * (k - p) - (u - p) * (h - n)) / v;
- n = h + p * (m - h);
- p = k + p * (c - k);
- if (n < f.bQ(d.x, e.x) - f.Bb || n > f.aQ(d.x, e.x) + f.Bb || p < f.bQ(d.y, e.y) - f.Bb || p > f.aQ(d.y, e.y) + f.Bb || n < f.bQ(h, m) - f.Bb || n > f.aQ(h, m) + f.Bb || p < f.bQ(k, c) - f.Bb || p > f.aQ(k, c) + f.Bb) return f.Ly;
- g.x = n;
- g.y = p;
- return f.My
- };
- f.WZ = function(c, d, e) {
- var g = new f.ao;
- f.eQ(g, d, c);
- e.x = -g.y;
- e.y = g.x;
- f.CDa(e, e)
- };
- f.EZa = function(c, d, e, g, h, k) {
- var m = new f.ao,
- n = new f.ao,
- p = new f.ao,
- s = 1E4,
- u = f.Ly,
- v;
- f.b1(c, d, e, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, s = v, f.WZ(d, e, p)));
- f.b1(c, e, g, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, s = v, f.WZ(e, g, p)));
- f.b1(c, g, d, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, f.WZ(g, d, p)));
- u && (h.x = n.x, h.y = n.y, k && (k.x = p.x, k.y = p.y));
- return u
- };
- f.DZa = function() {
- f.log("cc.kmRay2IntersectCircle() has not been implemented.")
- };
- var Float32Array = Float32Array || Array;
- f.$P = function() {
- this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0])
- };
- f.EYa = function(c, d) {
- for (var e = 0; 9 > e; e++) c.c[e] = d;
- return c
- };
- f.oDa = function(c, d) {
- c.c[0] = d.c[4] * d.c[8] - d.c[5] * d.c[7];
- c.c[1] = d.c[2] * d.c[7] - d.c[1] * d.c[8];
- c.c[2] = d.c[1] * d.c[5] - d.c[2] * d.c[4];
- c.c[3] = d.c[5] * d.c[6] - d.c[3] * d.c[8];
- c.c[4] = d.c[0] * d.c[8] - d.c[2] * d.c[6];
- c.c[5] = d.c[2] * d.c[3] - d.c[0] * d.c[5];
- c.c[6] = d.c[3] * d.c[7] - d.c[4] * d.c[6];
- c.c[8] = d.c[0] * d.c[4] - d.c[1] * d.c[3]
- };
- f.Rea = function(c) {
- c.c[1] = c.c[2] = c.c[3] = c.c[5] = c.c[6] = c.c[7] = 0;
- c.c[0] = c.c[4] = c.c[8] = 1
- };
- f.FYa = function(c, d, e) {
- var g = new f.$P;
- if (0 === d) return null;
- d = 1 / d;
- f.oDa(g, e);
- f.pDa(c, g, d);
- return c
- };
- f.$P.GW = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
- f.GYa = function(c) {
- for (var d = 0; 9 > d; d++)
- if (f.$P.GW[d] !== c.c[d]) return !1;
- return !0
- };
- f.RYa = function(c, d) {
- var e, g;
- for (e = 0; 3 > e; ++e)
- for (g = 0; 3 > g; ++g) c.c[3 * e + g] = d.c[3 * g + e];
- return c
- };
- f.DYa = function(c) {
- var d;
- 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];
- 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]
- };
- f.HYa = function(c, d, e) {
- d = d.c;
- e = e.c;
- c.c[0] = d[0] * e[0] + d[3] * e[1] + d[6] * e[2];
- c.c[1] = d[1] * e[0] + d[4] * e[1] + d[7] * e[2];
- c.c[2] = d[2] * e[0] + d[5] * e[1] + d[8] * e[2];
- c.c[3] = d[0] * e[3] + d[3] * e[4] + d[6] * e[5];
- c.c[4] = d[1] * e[3] + d[4] * e[4] + d[7] * e[5];
- c.c[5] = d[2] * e[3] + d[5] * e[4] + d[8] * e[5];
- c.c[6] = d[0] * e[6] + d[3] * e[7] + d[6] * e[8];
- c.c[7] = d[1] * e[6] + d[4] * e[7] + d[7] * e[8];
- c.c[8] = d[2] * e[6] + d[5] * e[7] + d[8] * e[8];
- return c
- };
- f.pDa = function(c, d, e) {
- for (var g = 0; 9 > g; g++) c.c[g] = d.c[g] * e
- };
- f.JYa = function(c, d, e) {
- var g = Math.cos(e);
- e = Math.sin(e);
- c.c[0] = g + d.x * d.x * (1 - g);
- c.c[1] = d.z * e + d.y * d.x * (1 - g);
- c.c[2] = -d.y * e + d.z * d.x * (1 - g);
- c.c[3] = -d.z * e + d.x * d.y * (1 - g);
- c.c[4] = g + d.y * d.y * (1 - g);
- c.c[5] = d.x * e + d.z * d.y * (1 - g);
- c.c[6] = d.y * e + d.x * d.z * (1 - g);
- c.c[7] = -d.x * e + d.y * d.z * (1 - g);
- c.c[8] = g + d.z * d.z * (1 - g);
- return c
- };
- f.CYa = function(c, d) {
- if (c == d) return f.log("cc.kmMat3Assign(): pOut equals pIn"), c;
- for (var e = 0; 9 > e; e++) c.c[e] = d.c[e];
- return c
- };
- f.BYa = function(c, d) {
- if (c == d) return !0;
- for (var e = 0; 9 > e; ++e)
- if (!(c.c[e] + f.Bb > d.c[e] && c.c[e] - f.Bb < d.c[e])) return !1;
- return !0
- };
- f.MYa = function(c, d) {
- c.c[0] = 1;
- c.c[1] = 0;
- c.c[2] = 0;
- c.c[3] = 0;
- c.c[4] = Math.cos(d);
- c.c[5] = Math.sin(d);
- c.c[6] = 0;
- c.c[7] = -Math.sin(d);
- c.c[8] = Math.cos(d);
- return c
- };
- f.NYa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = 0;
- c.c[2] = -Math.sin(d);
- c.c[3] = 0;
- c.c[4] = 1;
- c.c[5] = 0;
- c.c[6] = Math.sin(d);
- c.c[7] = 0;
- c.c[8] = Math.cos(d);
- return c
- };
- f.OYa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = -Math.sin(d);
- c.c[2] = 0;
- c.c[3] = Math.sin(d);
- c.c[4] = Math.cos(d);
- c.c[5] = 0;
- c.c[6] = 0;
- c.c[7] = 0;
- c.c[8] = 1;
- return c
- };
- f.IYa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = Math.sin(d);
- c.c[2] = 0;
- c.c[3] = -Math.sin(d);
- c.c[4] = Math.cos(d);
- c.c[5] = 0;
- c.c[6] = 0;
- c.c[7] = 0;
- c.c[8] = 1;
- return c
- };
- f.PYa = function(c, d, e) {
- f.Rea(c);
- c.c[0] = d;
- c.c[4] = e;
- return c
- };
- f.QYa = function(c, d, e) {
- f.Rea(c);
- c.c[6] = d;
- c.c[7] = e;
- return c
- };
- f.KYa = function(c, d) {
- if (!d || !c) return null;
- c.c[0] = 1 - 2 * (d.y * d.y + d.z * d.z);
- c.c[1] = 2 * (d.x * d.y - d.da * d.z);
- c.c[2] = 2 * (d.x * d.z + d.da * d.y);
- c.c[3] = 2 * (d.x * d.y + d.da * d.z);
- c.c[4] = 1 - 2 * (d.x * d.x + d.z * d.z);
- c.c[5] = 2 * (d.y * d.z - d.da * d.x);
- c.c[6] = 2 * (d.x * d.z - d.da * d.y);
- c.c[7] = 2 * (d.y * d.z + d.da * d.x);
- c.c[8] = 1 - 2 * (d.x * d.x + d.y * d.y);
- return c
- };
- f.LYa = function(c, d, e) {
- f.Xea(void 0, e);
- f.Yea(void 0, c);
- return c
- };
- f.Ma = function() {
- this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
- };
- f.UYa = function(c, d) {
- 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
- };
- f.Ex = function(c) {
- 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;
- c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1
- };
- f.Ma.Mk = function(c, d, e) {
- return c.c[d + 4 * e]
- };
- f.Ma.Kt = function(c, d, e, g) {
- c.c[d + 4 * e] = g
- };
- f.Ma.Tt = function(c, d, e, g, h) {
- var k = f.Ma.Mk(c, d, e);
- f.Ma.Kt(c, d, e, f.Ma.Mk(c, g, h));
- f.Ma.Kt(c, g, h, k)
- };
- f.Ma.xra = function(c, d) {
- var e, g = 0,
- h = 0,
- k, m, n, p = [0, 0, 0, 0],
- s = [0, 0, 0, 0],
- u = [0, 0, 0, 0];
- for (e = 0; 4 > e; e++) {
- for (k = n = 0; 4 > k; k++)
- if (1 != u[k])
- for (m = 0; 4 > m; m++) 0 == u[m] && Math.abs(f.Ma.Mk(c, k, m)) >= n && (n = Math.abs(f.Ma.Mk(c, k, m)), h = k, g = m);
- ++u[g];
- if (h != g) {
- for (k = 0; 4 > k; k++) f.Ma.Tt(c, h, k, g, k);
- for (k = 0; 4 > k; k++) f.Ma.Tt(d, h, k, g, k)
- }
- s[e] = h;
- p[e] = g;
- if (0 == f.Ma.Mk(c, g, g)) return f.Ly;
- m = 1 / f.Ma.Mk(c, g, g);
- f.Ma.Kt(c, g, g, 1);
- for (k = 0; 4 > k; k++) f.Ma.Kt(c, g, k, f.Ma.Mk(c, g, k) * m);
- for (k = 0; 4 > k; k++) f.Ma.Kt(d, g, k, f.Ma.Mk(d, g, k) * m);
- for (m = 0; 4 > m; m++)
- if (m !=
- g) {
- n = f.Ma.Mk(c, m, g);
- f.Ma.Kt(c, m, g, 0);
- for (k = 0; 4 > k; k++) f.Ma.Kt(c, m, k, f.Ma.Mk(c, m, k) - f.Ma.Mk(c, g, k) * n);
- for (k = 0; 4 > k; k++) f.Ma.Kt(d, m, k, f.Ma.Mk(c, m, k) - f.Ma.Mk(d, g, k) * n)
- }
- }
- for (k = 3; 0 <= k; k--)
- if (s[k] != p[k])
- for (m = 0; 4 > m; m++) f.Ma.Tt(c, m, s[k], m, p[k]);
- return f.My
- };
- f.Ma.GW = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
- f.rDa = function(c, d) {
- var e = new f.Ma,
- g = new f.Ma;
- f.Mp(e, d);
- f.Ex(g);
- f.Ma.xra(e, g) != f.Ly && f.Mp(c, e)
- };
- f.YYa = function(c) {
- for (var d = 0; 16 > d; d++)
- if (f.Ma.GW[d] != c.c[d]) return !1;
- return !0
- };
- f.fZa = function(c, d) {
- var e, g, h = c.c,
- k = d.c;
- for (g = 0; 4 > g; ++g)
- for (e = 0; 4 > e; ++e) h[4 * g + e] = k[4 * e + g];
- return c
- };
- f.Np = function(c, d, e) {
- c = c.c;
- var g = d.c[0],
- h = d.c[1],
- k = d.c[2],
- m = d.c[3],
- n = d.c[4],
- p = d.c[5],
- s = d.c[6],
- u = d.c[7],
- v = d.c[8],
- z = d.c[9],
- A = d.c[10],
- B = d.c[11],
- C = d.c[12],
- G = d.c[13],
- L = d.c[14];
- d = d.c[15];
- var O = e.c[0],
- R = e.c[1],
- M = e.c[2],
- K = e.c[3],
- P = e.c[4],
- I = e.c[5],
- J = e.c[6],
- V = e.c[7],
- ma = e.c[8],
- W = e.c[9],
- fa = e.c[10],
- ta = e.c[11],
- Y = e.c[12],
- wa = e.c[13],
- Z = e.c[14];
- e = e.c[15];
- c[0] = O * g + R * n + M * v + K * C;
- c[1] = O * h + R * p + M * z + K * G;
- c[2] = O * k + R * s + M * A + K * L;
- c[3] = O * m + R * u + M * B + K * d;
- c[4] = P * g + I * n + J * v + V * C;
- c[5] = P * h + I * p + J * z + V * G;
- c[6] = P * k + I * s + J * A + V * L;
- c[7] = P * m + I * u + J *
- B + V * d;
- c[8] = ma * g + W * n + fa * v + ta * C;
- c[9] = ma * h + W * p + fa * z + ta * G;
- c[10] = ma * k + W * s + fa * A + ta * L;
- c[11] = ma * m + W * u + fa * B + ta * d;
- c[12] = Y * g + wa * n + Z * v + e * C;
- c[13] = Y * h + wa * p + Z * z + e * G;
- c[14] = Y * k + wa * s + Z * A + e * L;
- c[15] = Y * m + wa * u + Z * B + e * d
- };
- f.yAa = function() {
- var c = f.Au.top.c,
- d = f.Wr.top.c,
- e = new Float32Array(16);
- e[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3];
- e[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3];
- e[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3];
- e[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3];
- e[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7];
- e[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7];
- e[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7];
- e[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7];
- e[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11];
- e[9] = c[1] * d[8] +
- c[5] * d[9] + c[9] * d[10] + c[13] * d[11];
- e[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11];
- e[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11];
- e[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15];
- e[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15];
- e[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15];
- e[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15];
- return e
- };
- f.DUa = function(c, d, e) {
- c = c.c;
- d = d.c;
- var g = e.c;
- g[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3];
- g[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3];
- g[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3];
- g[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3];
- g[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7];
- g[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7];
- g[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7];
- g[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7];
- g[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11];
- g[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] *
- d[11];
- g[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11];
- g[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11];
- g[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15];
- g[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15];
- g[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15];
- g[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15];
- return e.c
- };
- f.Mp = function(c, d) {
- if (c == d) f.log("cc.kmMat4Assign(): pOut equals pIn");
- else {
- var e = c.c,
- g = d.c;
- e[0] = g[0];
- e[1] = g[1];
- e[2] = g[2];
- e[3] = g[3];
- e[4] = g[4];
- e[5] = g[5];
- e[6] = g[6];
- e[7] = g[7];
- e[8] = g[8];
- e[9] = g[9];
- e[10] = g[10];
- e[11] = g[11];
- e[12] = g[12];
- e[13] = g[13];
- e[14] = g[14];
- e[15] = g[15]
- }
- };
- f.SYa = function(c, d) {
- if (c == d) return f.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0;
- for (var e = 0; 16 > e; e++)
- if (!(c.c[e] + f.Bb > d.c[e] && c.c[e] - f.Bb < d.c[e])) return !1;
- return !0
- };
- f.cZa = function(c, d) {
- c.c[0] = 1;
- c.c[1] = 0;
- c.c[2] = 0;
- c.c[3] = 0;
- c.c[4] = 0;
- c.c[5] = Math.cos(d);
- c.c[6] = Math.sin(d);
- c.c[7] = 0;
- c.c[8] = 0;
- c.c[9] = -Math.sin(d);
- c.c[10] = Math.cos(d);
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1;
- return c
- };
- f.dZa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = 0;
- c.c[2] = -Math.sin(d);
- c.c[3] = 0;
- c.c[4] = 0;
- c.c[5] = 1;
- c.c[6] = 0;
- c.c[7] = 0;
- c.c[8] = Math.sin(d);
- c.c[9] = 0;
- c.c[10] = Math.cos(d);
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1;
- return c
- };
- f.eZa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = Math.sin(d);
- c.c[2] = 0;
- c.c[3] = 0;
- c.c[4] = -Math.sin(d);
- c.c[5] = Math.cos(d);
- c.c[6] = 0;
- c.c[7] = 0;
- c.c[8] = 0;
- c.c[9] = 0;
- c.c[10] = 1;
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1;
- return c
- };
- f.ZYa = function(c, d, e, g) {
- var h = Math.cos(d);
- d = Math.sin(d);
- var k = Math.cos(e);
- e = Math.sin(e);
- var m = Math.cos(g);
- g = Math.sin(g);
- var n = d * e,
- p = h * e;
- c.c[0] = k * m;
- c.c[4] = k * g;
- c.c[8] = -e;
- c.c[1] = n * m - h * g;
- c.c[5] = n * g + h * m;
- c.c[9] = d * k;
- c.c[2] = p * m + d * g;
- c.c[6] = p * g - d * m;
- c.c[10] = h * k;
- c.c[3] = c.c[7] = c.c[11] = 0;
- c.c[15] = 1;
- return c
- };
- f.$Ya = function(c, d) {
- c.c[0] = 1 - 2 * (d.y * d.y + d.z * d.z);
- c.c[1] = 2 * (d.x * d.y + d.z * d.da);
- c.c[2] = 2 * (d.x * d.z - d.y * d.da);
- c.c[3] = 0;
- c.c[4] = 2 * (d.x * d.y - d.z * d.da);
- c.c[5] = 1 - 2 * (d.x * d.x + d.z * d.z);
- c.c[6] = 2 * (d.z * d.y + d.x * d.da);
- c.c[7] = 0;
- c.c[8] = 2 * (d.x * d.z + d.y * d.da);
- c.c[9] = 2 * (d.y * d.z - d.x * d.da);
- c.c[10] = 1 - 2 * (d.x * d.x + d.y * d.y);
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1;
- return c
- };
- f.bZa = function(c, d, e) {
- c.c[0] = d.c[0];
- c.c[1] = d.c[1];
- c.c[2] = d.c[2];
- c.c[3] = 0;
- c.c[4] = d.c[3];
- c.c[5] = d.c[4];
- c.c[6] = d.c[5];
- c.c[7] = 0;
- c.c[8] = d.c[6];
- c.c[9] = d.c[7];
- c.c[10] = d.c[8];
- c.c[11] = 0;
- c.c[12] = e.x;
- c.c[13] = e.y;
- c.c[14] = e.z;
- c.c[15] = 1;
- return c
- };
- f.uDa = function(c, d, e, g) {
- c.c[0] = d;
- c.c[5] = e;
- c.c[10] = g;
- c.c[15] = 1;
- 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
- };
- f.Tea = function(c, d, e, g) {
- c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1;
- 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;
- c.c[12] = d;
- c.c[13] = e;
- c.c[14] = g
- };
- f.XYa = function(c, d) {
- c.x = d.c[4];
- c.y = d.c[5];
- c.z = d.c[6];
- f.hk(c, c);
- return c
- };
- f.WYa = function(c, d) {
- c.x = d.c[0];
- c.y = d.c[1];
- c.z = d.c[2];
- f.hk(c, c);
- return c
- };
- f.VYa = function(c, d) {
- c.x = d.c[8];
- c.y = d.c[9];
- c.z = d.c[10];
- f.hk(c, c);
- return c
- };
- f.sDa = function(c, d, e) {
- var g = f.bI(30),
- h = e - 0.1,
- k = Math.sin(g);
- 0 != h && 0 != k && 0 != d && (g = Math.cos(g) / k, f.Ex(c), c.c[0] = g / d, c.c[5] = g, c.c[10] = -(e + 0.1) / h, c.c[11] = -1, c.c[14] = -0.2 * e / h, c.c[15] = 0)
- };
- f.$0 = function(c, d, e, g, h, k, m) {
- f.Ex(c);
- c.c[0] = 2 / (e - d);
- c.c[5] = 2 / (h - g);
- c.c[10] = -2 / (m - k);
- c.c[12] = -((e + d) / (e - d));
- c.c[13] = -((h + g) / (h - g));
- c.c[14] = -((m + k) / (m - k))
- };
- f.Sea = function(c, d, e, g) {
- var h = new f.cd,
- k = new f.cd,
- m = new f.cd,
- n = new f.cd,
- p = new f.Ma;
- f.e1(h, e, d);
- f.hk(h, h);
- f.cI(k, g);
- f.hk(k, k);
- f.vu(m, h, k);
- f.hk(m, m);
- f.vu(n, m, h);
- f.hk(m, m);
- f.Ex(c);
- c.c[0] = m.x;
- c.c[4] = m.y;
- c.c[8] = m.z;
- c.c[1] = n.x;
- c.c[5] = n.y;
- c.c[9] = n.z;
- c.c[2] = -h.x;
- c.c[6] = -h.y;
- c.c[10] = -h.z;
- f.Tea(p, -d.x, -d.y, -d.z);
- f.Np(c, c, p)
- };
- f.tDa = function(c, d, e) {
- var g = Math.cos(e);
- e = Math.sin(e);
- var h = new f.cd;
- f.hk(h, d);
- c.c[0] = g + h.x * h.x * (1 - g);
- c.c[1] = h.z * e + h.y * h.x * (1 - g);
- c.c[2] = -h.y * e + h.z * h.x * (1 - g);
- c.c[3] = 0;
- c.c[4] = -h.z * e + h.x * h.y * (1 - g);
- c.c[5] = g + h.y * h.y * (1 - g);
- c.c[6] = h.x * e + h.z * h.y * (1 - g);
- c.c[7] = 0;
- c.c[8] = h.y * e + h.x * h.z * (1 - g);
- c.c[9] = -h.x * e + h.y * h.z * (1 - g);
- c.c[10] = g + h.z * h.z * (1 - g);
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1
- };
- f.qDa = function(c, d) {
- c.c[0] = d.c[0];
- c.c[1] = d.c[1];
- c.c[2] = d.c[2];
- c.c[3] = d.c[4];
- c.c[4] = d.c[5];
- c.c[5] = d.c[6];
- c.c[6] = d.c[8];
- c.c[7] = d.c[9];
- c.c[8] = d.c[10]
- };
- f.TYa = function(c, d, e) {
- switch (e) {
- case f.fma:
- c.a = d.c[3] - d.c[0];
- c.b = d.c[7] - d.c[4];
- c.G = d.c[11] - d.c[8];
- c.P = d.c[15] - d.c[12];
- break;
- case f.dma:
- c.a = d.c[3] + d.c[0];
- c.b = d.c[7] + d.c[4];
- c.G = d.c[11] + d.c[8];
- c.P = d.c[15] + d.c[12];
- break;
- case f.bma:
- c.a = d.c[3] + d.c[1];
- c.b = d.c[7] + d.c[5];
- c.G = d.c[11] + d.c[9];
- c.P = d.c[15] + d.c[13];
- break;
- case f.gma:
- c.a = d.c[3] - d.c[1];
- c.b = d.c[7] - d.c[5];
- c.G = d.c[11] - d.c[9];
- c.P = d.c[15] - d.c[13];
- break;
- case f.cma:
- c.a = d.c[3] - d.c[2];
- c.b = d.c[7] - d.c[6];
- c.G = d.c[11] - d.c[10];
- c.P = d.c[15] - d.c[14];
- break;
- case f.ema:
- c.a =
- d.c[3] + d.c[2];
- c.b = d.c[7] + d.c[6];
- c.G = d.c[11] + d.c[10];
- c.P = d.c[15] + d.c[14];
- break;
- default:
- f.log("cc.kmMat4ExtractPlane(): Invalid plane index")
- }
- d = Math.sqrt(c.a * c.a + c.b * c.b + c.G * c.G);
- c.a /= d;
- c.b /= d;
- c.G /= d;
- c.P /= d;
- return c
- };
- f.aZa = function(c, d, e) {
- d = new ha;
- var g = new f.$P;
- f.qDa(g, e);
- f.Xea(d, g);
- f.Yea(d, c);
- return c
- };
- f.dma = 0;
- f.fma = 1;
- f.bma = 2;
- f.gma = 3;
- f.ema = 4;
- f.cma = 5;
- f.gZa = function(c, d, e, g) {
- this.a = c || 0;
- this.b = d || 0;
- this.G = e || 0;
- this.P = g || 0
- };
- f.ana = 0;
- f.$ma = 1;
- f.bna = 2;
- f.iZa = function(c, d) {
- return c.a * d.x + c.b * d.y + c.G * d.z + c.P * d.da
- };
- f.jZa = function(c, d) {
- return c.a * d.x + c.b * d.y + c.G * d.z + c.P
- };
- f.kZa = function(c, d) {
- return c.a * d.x + c.b * d.y + c.G * d.z
- };
- f.lZa = function(c, d, e) {
- c.a = e.x;
- c.b = e.y;
- c.G = e.z;
- c.P = -f.c1(e, d);
- return c
- };
- f.mZa = function(c, d, e, g) {
- var h = new f.cd,
- k = new f.cd,
- m = new f.cd;
- f.e1(k, e, d);
- f.e1(m, g, d);
- f.vu(h, k, m);
- f.hk(h, h);
- c.a = h.x;
- c.b = h.y;
- c.G = h.z;
- c.P = f.c1(f.d1(h, h, -1), d);
- return c
- };
- f.nZa = function() {
- throw "cc.kmPlaneIntersectLine() hasn't been implemented.";
- };
- f.oZa = function(c, d) {
- var e = new f.cd;
- e.x = d.a;
- e.y = d.b;
- e.z = d.G;
- var g = 1 / f.$ea(e);
- f.hk(e, e);
- c.a = e.x;
- c.b = e.y;
- c.G = e.z;
- c.P = d.P * g;
- return c
- };
- f.pZa = function() {
- f.log("cc.kmPlaneScale() has not been implemented.")
- };
- f.hZa = function(c, d) {
- var e = c.a * d.x + c.b * d.y + c.G * d.z + c.P;
- return 0.001 < e ? f.ana : -0.001 > e ? f.$ma : f.bna
- };
- function ha() {
- this.da = this.z = this.y = this.x = 0
- }
- f.yDa = function(c, d) {
- c.x = -d.x;
- c.y = -d.y;
- c.z = -d.z;
- c.da = d.da;
- return c
- };
- f.zDa = function(c, d) {
- return c.da * d.da + c.x * d.x + c.y * d.y + c.z * d.z
- };
- f.rZa = function(c) {
- return c
- };
- f.ADa = function(c) {
- c.x = 0;
- c.y = 0;
- c.z = 0;
- c.da = 1
- };
- f.sZa = function(c, d) {
- var e = f.Uea(d),
- g = new ha;
- if (Math.abs(e) > f.Bb) return c.x = 0, c.y = 0, c.z = 0, c.da = 0, c;
- f.cQ(c, f.yDa(g, d), 1 / e);
- return c
- };
- f.tZa = function(c) {
- return 0 == c.x && 0 == c.y && 0 == c.z && 1 == c.da
- };
- f.Uea = function(c) {
- return Math.sqrt(f.BDa(c))
- };
- f.BDa = function(c) {
- return c.x * c.x + c.y * c.y + c.z * c.z + c.da * c.da
- };
- f.uZa = function(c) {
- return c
- };
- f.vZa = function(c, d, e) {
- c.da = d.da * e.da - d.x * e.x - d.y * e.y - d.z * e.z;
- c.x = d.da * e.x + d.x * e.da + d.y * e.z - d.z * e.y;
- c.y = d.da * e.y + d.y * e.da + d.z * e.x - d.x * e.z;
- c.z = d.da * e.z + d.z * e.da + d.x * e.y - d.y * e.x;
- return c
- };
- f.Vea = function(c, d) {
- var e = f.Uea(d);
- if (Math.abs(e) <= f.Bb) throw "cc.kmQuaternionNormalize(): pIn is an invalid value";
- f.cQ(c, d, 1 / e)
- };
- f.Wea = function(c, d) {
- var e = 0.5 * f.a1,
- g = Math.sin(e);
- c.da = Math.cos(e);
- c.x = d.x * g;
- c.y = d.y * g;
- c.z = d.z * g
- };
- f.Xea = function(c, d) {
- var e, g, h, k;
- e = [];
- g = k = 0;
- if (d) {
- e[0] = d.c[0];
- e[1] = d.c[3];
- e[2] = d.c[6];
- e[4] = d.c[1];
- e[5] = d.c[4];
- e[6] = d.c[7];
- e[8] = d.c[2];
- e[9] = d.c[5];
- e[10] = d.c[8];
- e[15] = 1;
- var m = e[0];
- g = m[0] + m[5] + m[10] + 1;
- g > f.Bb ? (k = 2 * Math.sqrt(g), e = (m[9] - m[6]) / k, g = (m[2] - m[8]) / k, h = (m[4] - m[1]) / k, k *= 0.25) : m[0] > m[5] && m[0] > m[10] ? (k = 2 * Math.sqrt(1 + m[0] - m[5] - m[10]), e = 0.25 * k, g = (m[4] + m[1]) / k, h = (m[2] + m[8]) / k, k = (m[9] - m[6]) / k) : m[5] > m[10] ? (k = 2 * Math.sqrt(1 + m[5] - m[0] - m[10]), e = (m[4] + m[1]) / k, g = 0.25 * k, h = (m[9] + m[6]) / k, k = (m[2] - m[8]) / k) : (k = 2 *
- Math.sqrt(1 + m[10] - m[0] - m[5]), e = (m[2] + m[8]) / k, g = (m[9] + m[6]) / k, h = 0.25 * k, k = (m[4] - m[1]) / k);
- c.x = e;
- c.y = g;
- c.z = h;
- c.da = k
- }
- };
- f.yZa = function(c, d, e, g) {
- var h, k, m, n, p;
- h = f.bI(e) / 2;
- k = f.bI(d) / 2;
- m = f.bI(g) / 2;
- g = Math.cos(h);
- d = Math.cos(k);
- e = Math.cos(m);
- h = Math.sin(h);
- k = Math.sin(k);
- m = Math.sin(m);
- n = d * e;
- p = k * m;
- c.da = g * n + h * p;
- c.x = h * n - g * p;
- c.y = g * k * e + h * d * m;
- c.z = g * d * m - h * k * e;
- f.Vea(c, c);
- return c
- };
- f.zZa = function(c, d, e, g) {
- if (d.x == e.x && d.y == e.y && d.z == e.z && d.da == e.da) return c.x = d.x, c.y = d.y, c.z = d.z, c.da = d.da, c;
- var h = f.zDa(d, e),
- k = Math.acos(h),
- h = Math.sqrt(1 - f.yf(h)),
- m = Math.sin(g * k) / h,
- n = new ha,
- p = new ha;
- f.cQ(n, d, Math.sin((1 - g) * k) / h);
- f.cQ(p, e, m);
- f.xDa(c, n, p);
- return c
- };
- f.Yea = function(c, d) {
- var e;
- e = Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z));
- e > -f.Bb && e < f.Bb || e < 2 * f.a1 + f.Bb && e > 2 * f.a1 - f.Bb ? (d.x = 0, d.y = 0, d.z = 1) : (d.x = c.x / e, d.y = c.y / e, d.z = c.z / e, f.hk(d, d))
- };
- f.cQ = function(c, d, e) {
- c.x = d.x * e;
- c.y = d.y * e;
- c.z = d.z * e;
- c.da = d.da * e
- };
- f.qZa = function(c, d) {
- c.x = d.x;
- c.y = d.y;
- c.z = d.z;
- c.da = d.da;
- return c
- };
- f.xDa = function(c, d, e) {
- c.x = d.x + e.x;
- c.y = d.y + e.y;
- c.z = d.z + e.z;
- c.da = d.da + e.da
- };
- f.xZa = function(c, d, e, g) {
- var h = new f.cd,
- k = new f.cd;
- f.cI(h, d);
- f.cI(k, e);
- f.hk(h, h);
- f.hk(k, k);
- e = f.c1(h, k);
- if (1 <= e) return f.ADa(c), c; - 0.999999 > e ? Math.abs(f.afa(g)) < f.Bb ? f.Wea(c, g) : (h = new f.cd, k = new f.cd, k.x = 1, k.y = 0, k.z = 0, f.vu(h, k, d), Math.abs(f.afa(h)) < f.Bb && (k = new f.cd, k.x = 0, k.y = 1, k.z = 0, f.vu(h, k, d)), f.hk(h, h), f.Wea(c, h)) : (d = Math.sqrt(2 * (1 + e)), g = 1 / d, e = new f.cd, f.vu(e, h, k), c.x = e.x * g, c.y = e.y * g, c.z = e.z * g, c.da = 0.5 * d, f.Vea(c, c));
- return c
- };
- f.wZa = function(c, d, e) {
- var g = new f.cd,
- h = new f.cd,
- k = new f.cd;
- k.x = d.x;
- k.y = d.y;
- k.z = d.z;
- f.vu(g, k, e);
- f.vu(h, k, g);
- f.d1(g, g, 2 * d.da);
- f.d1(h, h, 2);
- f.Zea(c, e, g);
- f.Zea(c, c, h);
- return c
- };
- f.qYa = function(c, d) {
- this.min = c || new f.cd;
- this.max = d || new f.cd
- };
- f.sYa = function(c, d) {
- return c.x >= d.min.x && c.x <= d.max.x && c.y >= d.min.y && c.y <= d.max.y && c.z >= d.min.z && c.z <= d.max.z ? f.My : f.Ly
- };
- f.rYa = function(c, d) {
- f.cI(c.min, d.min);
- f.cI(c.max, d.max);
- return c
- };
- f.tYa = function() {
- f.log("cc.kmAABBScale hasn't been supported.")
- };
- f.fQ = function(c, d, e, g) {
- this.top = e;
- this.stack = g
- };
- f.fQ.uLa = 30;
- f.f1 = function(c) {
- c.stack = [];
- c.top = null
- };
- f.gQ = function(c, d) {
- c.stack.push(c.top);
- c.top = new f.Ma;
- f.Mp(c.top, d)
- };
- f.e_a = function(c) {
- c.top = c.stack.pop()
- };
- f.g1 = function(c) {
- c.stack = null;
- c.top = null
- };
- f.mq = 5888;
- f.nq = 5889;
- f.H5 = 5890;
- f.Wr = new f.fQ;
- f.Au = new f.fQ;
- f.jJ = new f.fQ;
- f.Md = null;
- f.M0 = !1;
- f.IDa = function() {
- if (!f.M0) {
- var c = new f.Ma;
- f.f1(f.Wr);
- f.f1(f.Au);
- f.f1(f.jJ);
- f.Md = f.Wr;
- f.M0 = !0;
- f.Ex(c);
- f.gQ(f.Wr, c);
- f.gQ(f.Au, c);
- f.gQ(f.jJ, c)
- }
- };
- f.IDa();
- f.nDa = function() {
- f.g1(f.Wr);
- f.g1(f.Au);
- f.g1(f.jJ);
- f.M0 = !1;
- f.Md = null
- };
- f.Rr = function() {
- f.gQ(f.Md, f.Md.top)
- };
- f.yYa = function(c) {
- f.Md.stack.push(f.Md.top);
- f.Mp(c, f.Md.top);
- f.Md.top = c
- };
- f.Qr = function() {
- f.Md.top = f.Md.stack.pop()
- };
- f.Lp = function(c) {
- switch (c) {
- case f.mq:
- f.Md = f.Wr;
- break;
- case f.nq:
- f.Md = f.Au;
- break;
- case f.H5:
- f.Md = f.jJ;
- break;
- default:
- throw "Invalid matrix mode specified";
- }
- };
- f.$B = function() {
- f.Ex(f.Md.top)
- };
- f.xYa = function(c) {
- f.Mp(f.Md.top, c)
- };
- f.aC = function(c) {
- f.Np(f.Md.top, f.Md.top, c)
- };
- f.bC = function(c, d) {
- var e = new f.Ma;
- f.Tea(e, c, d, 0);
- f.Np(f.Md.top, f.Md.top, e)
- };
- f.zYa = function(c, d, e, g) {
- d = new f.cd(d, e, g);
- e = new f.Ma;
- f.tDa(e, d, f.bI(c));
- f.Np(f.Md.top, f.Md.top, e)
- };
- f.AYa = function(c, d, e) {
- var g = new f.Ma;
- f.uDa(g, c, d, e);
- f.Np(f.Md.top, f.Md.top, g)
- };
- f.ZP = function(c, d) {
- switch (c) {
- case f.mq:
- f.Mp(d, f.Wr.top);
- break;
- case f.nq:
- f.Mp(d, f.Au.top);
- break;
- case f.H5:
- f.Mp(d, f.jJ.top);
- break;
- default:
- throw "Invalid matrix mode specified";
- }
- };
- f.Lna = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";
- f.Mna = "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}";
- f.zna = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
- f.Cna = "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}";
- f.Ana = "// #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}";
- f.Bna = "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}";
- f.Hna = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
- f.Kna = "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}";
- f.Ina = "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}";
- f.Jna = "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}";
- f.Dna = "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}";
- f.Ena = "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}";
- f.Gna = "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}";
- f.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}";
- f.Fna = "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}";
- f.wMa = "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}";
- f.xg = {
- aU: 0,
- bU: 1,
- ZT: 2,
- $T: 3,
- dU: 4,
- cU: 5,
- eU: 6,
- x7: 7,
- VMa: 8,
- Kg: {},
- FF: function() {
- this.NDa();
- return !0
- },
- Vi: function(c, d) {
- switch (d) {
- case this.aU:
- c.Kp(f.d7, f.Gna);
- c.Pg(f.Wu, f.Oc);
- c.Pg(f.fD, f.Mi);
- c.Pg(f.vy, f.$g);
- break;
- case this.bU:
- c.Kp(f.d7, f.Fna);
- c.Pg(f.Wu, f.Oc);
- c.Pg(f.fD, f.Mi);
- c.Pg(f.vy, f.$g);
- break;
- case this.ZT:
- c.Kp(f.Cna, f.zna);
- c.Pg(f.Wu, f.Oc);
- c.Pg(f.fD, f.Mi);
- break;
- case this.$T:
- c.Kp(f.Kna, f.Hna);
- c.Pg(f.Wu, f.Oc);
- c.Pg(f.vy, f.$g);
- break;
- case this.dU:
- c.Kp(f.Jna, f.Ina);
- c.Pg(f.Wu, f.Oc);
- c.Pg(f.vy, f.$g);
- break;
- case this.cU:
- c.Kp(f.Ena,
- f.Dna);
- c.Pg(f.Wu, f.Oc);
- c.Pg(f.fD, f.Mi);
- c.Pg(f.vy, f.$g);
- break;
- case this.eU:
- c.Kp(f.Mna, f.Lna);
- c.Pg("aVertex", f.Oc);
- break;
- case this.x7:
- c.Kp(f.Bna, f.Ana);
- c.Pg(f.Wu, f.Oc);
- c.Pg(f.vy, f.$g);
- c.Pg(f.fD, f.Mi);
- break;
- default:
- f.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
- return
- }
- c.link();
- c.hJa()
- },
- NDa: function() {
- var c = new f.vo;
- this.Vi(c, this.aU);
- this.Kg[f.zo] = c;
- this.Kg.ShaderPositionTextureColor = c;
- c = new f.vo;
- this.Vi(c, this.bU);
- this.Kg[f.tK] = c;
- this.Kg.ShaderPositionTextureColorAlphaTest = c;
- c = new f.vo;
- this.Vi(c, this.ZT);
- this.Kg[f.sK] = c;
- this.Kg.ShaderPositionColor = c;
- c = new f.vo;
- this.Vi(c, this.$T);
- this.Kg[f.jE] = c;
- this.Kg.ShaderPositionTexture = c;
- c = new f.vo;
- this.Vi(c, this.dU);
- this.Kg[f.uK] = c;
- this.Kg.ShaderPositionTextureUColor = c;
- c = new f.vo;
- this.Vi(c, this.cU);
- this.Kg[f.JT] = c;
- this.Kg.ShaderPositionTextureA8Color = c;
- c = new f.vo;
- this.Vi(c, this.eU);
- this.Kg[f.KT] = c;
- this.Kg.ShaderPositionUColor = c;
- c = new f.vo;
- this.Vi(c, this.x7);
- this.Kg[f.c7] = c;
- this.Kg.ShaderPositionLengthTextureColor = c
- },
- T0a: function() {
- var c =
- this.be(f.zo);
- c.reset();
- this.Vi(c, this.aU);
- c = this.be(f.tK);
- c.reset();
- this.Vi(c, this.bU);
- c = this.be(f.sK);
- c.reset();
- this.Vi(c, this.ZT);
- c = this.be(f.jE);
- c.reset();
- this.Vi(c, this.$T);
- c = this.be(f.uK);
- c.reset();
- this.Vi(c, this.dU);
- c = this.be(f.JT);
- c.reset();
- this.Vi(c, this.cU);
- c = this.be(f.KT);
- c.reset();
- this.Vi(c, this.eU)
- },
- be: function(c) {
- return this.Kg[c]
- },
- Bx: function(c) {
- return this.Kg[c]
- },
- zPa: function(c, d) {
- this.Kg[d] = c
- }
- };
- f.Qla = function() {
- this.location = this.value = void 0;
- this.DP = {}
- };
- f.vo = f.N.extend({
- Sa: null,
- qd: null,
- Xj: null,
- Yl: null,
- ed: null,
- kn: null,
- Iba: !1,
- gj: function(c, d) {
- if (null == c) return !1;
- for (var e = !0, g = null, h = 0; h < this.kn.length; h++) this.kn[h].location == c && (g = this.kn[h]);
- g ? g.value == d ? e = !1 : g.value = d : (g = new f.Qla, g.location = c, g.value = d, this.kn.push(g));
- return e
- },
- UNa: function() {
- return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.qd.toString() + ", VertexShader \x3d " + this.Xj.toString() + ", FragmentShader \x3d " + this.Yl.toString() + "\x3e"
- },
- Y8: function(c, d, e) {
- if (!e ||
- !c) return !1;
- this.Sa.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" + e);
- this.Sa.compileShader(c);
- e = this.Sa.getShaderParameter(c, this.Sa.COMPILE_STATUS);
- e || (f.log("cocos2d: ERROR: Failed to compile shader:\n" + this.Sa.getShaderSource(c)),
- d == this.Sa.VERTEX_SHADER ? f.log("cocos2d: \n" + this.mJa()) : f.log("cocos2d: \n" + this.nza()));
- return 1 == e
- },
- ctor: function(c, d, e) {
- this.ed = [];
- this.kn = [];
- this.Sa = e || f.s;
- c && d && this.j(c, d)
- },
- OQa: function() {
- this.kn = this.ed = this.Yl = this.Xj = null;
- this.Sa.deleteProgram(this.qd)
- },
- Kp: function(c, d) {
- var e = this.Sa;
- this.qd = e.createProgram();
- this.Yl = this.Xj = null;
- c && (this.Xj = e.createShader(e.VERTEX_SHADER), this.Y8(this.Xj, e.VERTEX_SHADER, c) || f.log("cocos2d: ERROR: Failed to compile vertex shader"));
- d && (this.Yl = e.createShader(e.FRAGMENT_SHADER),
- this.Y8(this.Yl, e.FRAGMENT_SHADER, d) || f.log("cocos2d: ERROR: Failed to compile fragment shader"));
- this.Xj && e.attachShader(this.qd, this.Xj);
- f.rB();
- this.Yl && e.attachShader(this.qd, this.Yl);
- this.kn.length = 0;
- f.rB();
- return !0
- },
- xf: function(c, d) {
- return this.Kp(c, d)
- },
- HCa: function(c, d) {
- var e = f.L.zd(c);
- if (!e) throw "Please load the resource firset : " + c;
- var g = f.L.zd(d);
- if (!g) throw "Please load the resource firset : " + d;
- return this.Kp(e, g)
- },
- j: function(c, d) {
- return this.HCa(c, d)
- },
- Pg: function(c, d) {
- this.Sa.bindAttribLocation(this.qd,
- d, c)
- },
- link: function() {
- if (!this.qd) return f.log("cc.GLProgram.link(): Cannot link invalid program"), !1;
- this.Sa.linkProgram(this.qd);
- this.Xj && this.Sa.deleteShader(this.Xj);
- this.Yl && this.Sa.deleteShader(this.Yl);
- this.Yl = this.Xj = null;
- return f.vf.kj[f.vf.Vm.iH] && !this.Sa.getProgramParameter(this.qd, this.Sa.LINK_STATUS) ? (f.log("cocos2d: ERROR: Failed to link program: " + this.Sa.getProgramInfoLog(this.qd)), f.TBa(this.qd), this.qd = null, !1) : !0
- },
- Ff: function() {
- f.x0(this.qd)
- },
- hJa: function() {
- this.ed[f.rU] = this.Sa.getUniformLocation(this.qd,
- f.Bpa);
- this.ed[f.qU] = this.Sa.getUniformLocation(this.qd, f.zpa);
- this.ed[f.yE] = this.Sa.getUniformLocation(this.qd, f.Apa);
- this.ed[f.vU] = this.Sa.getUniformLocation(this.qd, f.Fpa);
- this.ed[f.uU] = this.Sa.getUniformLocation(this.qd, f.Epa);
- this.ed[f.pU] = this.Sa.getUniformLocation(this.qd, f.ypa);
- this.Iba = null != this.ed[f.vU] || null != this.ed[f.uU] || null != this.ed[f.pU];
- this.ed[f.sU] = this.Sa.getUniformLocation(this.qd, f.Cpa);
- this.ed[f.tU] = this.Sa.getUniformLocation(this.qd, f.Dpa);
- this.Ff();
- this.Yha(this.ed[f.tU],
- 0)
- },
- CWa: function(c) {
- if (!c) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null";
- if (!this.qd) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized";
- return this.Sa.getUniformLocation(this.qd, c)
- },
- DWa: function() {
- return this.ed[f.yE]
- },
- EWa: function() {
- return this.ed[f.tU]
- },
- Yha: function(c, d) {
- this.gj(c, d) && this.Sa.uniform1i(c, d)
- },
- H4a: function(c, d, e) {
- this.gj(c, [d, e]) && this.Sa.uniform2i(c, d, e)
- },
- K4a: function(c,
- d, e, g) {
- this.gj(c, [d, e, g]) && this.Sa.uniform3i(c, d, e, g)
- },
- N4a: function(c, d, e, g, h) {
- this.gj(c, [d, e, g, h]) && this.Sa.uniform4i(c, d, e, g, h)
- },
- I4a: function(c, d) {
- this.gj(c, d) && this.Sa.uniform2iv(c, d)
- },
- L4a: function(c, d) {
- this.gj(c, d) && this.Sa.uniform3iv(c, d)
- },
- O4a: function(c, d) {
- this.gj(c, d) && this.Sa.uniform4iv(c, d)
- },
- F4a: function(c, d) {
- this.Yha(c, d)
- },
- bJ: function(c, d) {
- this.gj(c, d) && this.Sa.uniform1f(c, d)
- },
- THa: function(c, d, e) {
- this.gj(c, [d, e]) && this.Sa.uniform2f(c, d, e)
- },
- UHa: function(c, d, e, g) {
- this.gj(c, [d, e, g]) && this.Sa.uniform3f(c,
- d, e, g)
- },
- cJ: function(c, d, e, g, h) {
- this.gj(c, [d, e, g, h]) && this.Sa.uniform4f(c, d, e, g, h)
- },
- G4a: function(c, d) {
- this.gj(c, d) && this.Sa.uniform2fv(c, d)
- },
- J4a: function(c, d) {
- this.gj(c, d) && this.Sa.uniform3fv(c, d)
- },
- M4a: function(c, d) {
- this.gj(c, d) && this.Sa.uniform4fv(c, d)
- },
- a3: function(c, d) {
- this.gj(c, d) && this.Sa.uniformMatrix4fv(c, !1, d)
- },
- E4a: function() {
- if (!(2 > arguments.length)) switch (arguments.length) {
- case 2:
- this.bJ(arguments[0], arguments[1]);
- break;
- case 3:
- this.THa(arguments[0], arguments[1], arguments[2]);
- break;
- case 4:
- this.UHa(arguments[0],
- arguments[1], arguments[2], arguments[3]);
- break;
- case 5:
- this.cJ(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4])
- }
- },
- dJ: function() {
- var c = new f.Ma,
- d = new f.Ma,
- e = new f.Ma;
- f.ZP(f.nq, c);
- f.ZP(f.mq, d);
- f.Np(e, c, d);
- this.a3(this.ed[f.rU], c.c, 1);
- this.a3(this.ed[f.qU], d.c, 1);
- this.a3(this.ed[f.yE], e.c, 1);
- this.Iba && (c = f.Q, c = c.aO * c.EE, this.cJ(this.ed[f.vU], c / 10, c, 2 * c, 4 * c), this.cJ(this.ed[f.uU], c / 8, c / 4, c / 2, Math.sin(c)), this.cJ(this.ed[f.pU], c / 8, c / 4, c / 2, Math.cos(c))); - 1 != this.ed[f.sU] && this.cJ(this.ed[f.sU],
- Math.random(), Math.random(), Math.random(), Math.random())
- },
- C4a: function() {
- this.Sa.uniformMatrix4fv(this.ed[f.yE], !1, f.yAa())
- },
- D4a: function(c) {
- f.Np(c, f.Au.top, f.Wr.top);
- this.Sa.uniformMatrix4fv(this.ed[f.yE], !1, c.c)
- },
- zj: function() {
- this.Sa.uniformMatrix4fv(this.ed[f.qU], !1, f.Wr.top.c);
- this.Sa.uniformMatrix4fv(this.ed[f.rU], !1, f.Au.top.c)
- },
- mJa: function() {
- return this.Sa.getShaderInfoLog(this.Xj)
- },
- IWa: function() {
- return this.Sa.getShaderInfoLog(this.Xj)
- },
- ZTa: function() {
- return this.Sa.getShaderInfoLog(this.Xj)
- },
- nza: function() {
- return this.Sa.getShaderInfoLog(this.Yl)
- },
- v0a: function() {
- return this.Sa.getProgramInfoLog(this.qd)
- },
- vVa: function() {
- return this.Sa.getProgramInfoLog(this.qd)
- },
- reset: function() {
- this.Yl = this.Xj = null;
- this.ed.length = 0;
- this.Sa.deleteProgram(this.qd);
- this.qd = null;
- for (var c = 0; c < this.kn.length; c++) this.kn[c].value = null, this.kn[c] = null;
- this.kn.length = 0
- },
- Bx: function() {
- return this.qd
- },
- OQ: function() {},
- wh: function() {}
- });
- f.vo.create = function(c, d) {
- return new f.vo(c, d)
- };
- f.e9 = -1;
- f.eZ = !1;
- f.dZ = !1;
- f.fZ = !1;
- f.Zm && (f.rma = 16, f.dF = -1, f.cF = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], f.kz = -1, f.jz = -1, f.Spa = 0, f.TT && (f.xba = 0));
- f.TWa = function() {
- f.nDa();
- f.e9 = -1;
- f.eZ = !1;
- f.dZ = !1;
- f.fZ = !1;
- if (f.Zm) {
- f.dF = -1;
- for (var c = 0; c < f.rma; c++) f.cF[c] = -1;
- f.kz = -1;
- f.jz = -1;
- f.Spa = 0
- }
- };
- f.x0 = function(c) {
- c !== f.dF && (f.dF = c, f.s.useProgram(c))
- };
- f.Zm || (f.x0 = function(c) {
- f.s.useProgram(c)
- });
- f.TBa = function(c) {
- f.Zm && c === f.dF && (f.dF = -1);
- gl.deleteProgram(c)
- };
- f.Fm = function(c, d) {
- if (c !== f.kz || d !== f.jz) f.kz = c, f.jz = d, f.bR(c, d)
- };
- f.bR = function(c, d) {
- var e = f.s;
- c === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), f.s.blendFunc(c, d))
- };
- f.iea = function(c, d) {
- if (c !== f.kz || d !== f.jz) {
- f.kz = c;
- f.jz = d;
- var e = f.s;
- c === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), e.blendFuncSeparate(e.SRC_ALPHA, d, c, d))
- }
- };
- f.Zm || (f.Fm = f.bR);
- f.QWa = function() {
- var c = f.s;
- c.blendEquation(c.FUNC_ADD);
- f.Zm ? f.bR(f.kz, f.jz) : f.bR(c.Mc, c.Lc)
- };
- f.yha = function() {
- f.e9 = -1
- };
- f.wf = function(c) {
- var d = f.s,
- e = c & f.Gh;
- e !== f.eZ && (e ? d.enableVertexAttribArray(f.Oc) : d.disableVertexAttribArray(f.Oc), f.eZ = e);
- e = c & f.HK;
- e !== f.dZ && (e ? d.enableVertexAttribArray(f.Mi) : d.disableVertexAttribArray(f.Mi), f.dZ = e);
- c &= f.Wy;
- c !== f.fZ && (c ? d.enableVertexAttribArray(f.$g) : d.disableVertexAttribArray(f.$g), f.fZ = c)
- };
- f.Ai = function(c) {
- f.w0(0, c)
- };
- f.w0 = function(c, d) {
- if (f.cF[c] != d) {
- f.cF[c] = d;
- var e = f.s;
- e.activeTexture(e.TEXTURE0 + c);
- d ? e.bindTexture(e.TEXTURE_2D, d.Wh) : e.bindTexture(e.TEXTURE_2D, null)
- }
- };
- f.Zm || (f.w0 = function(c, d) {
- var e = f.s;
- e.activeTexture(e.TEXTURE0 + c);
- d ? e.bindTexture(e.TEXTURE_2D, d.Wh) : e.bindTexture(e.TEXTURE_2D, null)
- });
- f.RWa = function(c) {
- f.UBa(c)
- };
- f.UBa = function(c) {
- f.Zm && c == f.cF[0] && (f.cF[0] = -1);
- f.s.deleteTexture(c)
- };
- f.PWa = function(c) {
- f.TT && f.Zm && f.xba != c && (f.xba = c)
- };
- f.SWa = function() {};
- f.pLa = 0;
- f.qLa = 1;
- f.rLa = 2;
- f.xs = function(c) {
- c -= 1;
- c |= c >> 1;
- c |= c >> 2;
- c |= c >> 4;
- c |= c >> 8;
- return (c | c >> 16) + 1
- };
- f.nv = f.v.extend({
- sprite: null,
- LO: 0,
- f_: 0,
- YG: !1,
- gi: null,
- Pi: null,
- $L: 0,
- fF: 0,
- ep: 0,
- fa: null,
- EG: null,
- qva: null,
- gp: f.Pa.sq,
- Kq: null,
- g_: 0,
- uV: null,
- ta: "RenderTexture",
- ctor: null,
- aF: function(c, d, e, g) {
- f.v.prototype.ctor.call(this);
- this.Kq = f.color(255, 255, 255, 255);
- this.uV = "rgba(255,255,255,1)";
- this.gi = f.fd("canvas");
- this.Pi = this.gi.getContext("2d");
- this.anchorY = this.anchorX = 0;
- void 0 !== c && void 0 !== d && (e = e || f.Pa.sq, this.PP(c, d, e, g || 0))
- },
- bF: function(c, d, e, g) {
- f.v.prototype.ctor.call(this);
- this.Kq = f.color(0, 0, 0, 0);
- void 0 !==
- c && void 0 !== d && (e = e || f.Pa.sq, this.PP(c, d, e, g || 0))
- },
- De: null,
- Hqa: function() {
- f.v.prototype.Ra.call(this);
- this.gi = this.Pi = null
- },
- Iqa: function() {
- f.v.prototype.Ra.call(this);
- this.EG = null;
- var c = f.s;
- c.deleteFramebuffer(this.$L);
- this.fF && c.deleteRenderbuffer(this.fF);
- this.qva = null
- },
- o0: function() {
- return this.sprite
- },
- xR: function(c) {
- this.sprite = c
- },
- PP: null,
- Dsa: function(c, d) {
- var e = this.gi,
- g = f.Uc();
- e.width = 0 | c * g;
- e.height = 0 | d * g;
- this.Pi.translate(0, e.height);
- g = new f.Pa;
- g.sh(e);
- g.$d();
- this.sprite = f.q.create(g);
- return !0
- },
- Esa: function(c, d, e, g) {
- e == f.Pa.bE && f.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
- var h = f.s,
- k = f.Uc();
- c = 0 | c * k;
- d = 0 | d * k;
- this.ep = h.getParameter(h.FRAMEBUFFER_BINDING);
- var m;
- f.tB.UN ? (k = c, m = d) : (k = f.xs(c), m = f.xs(d));
- for (var n = new Uint8Array(k * m * 4), p = 0; p < k * m * 4; p++) n[p] = 0;
- this.gp = e;
- this.fa = new f.Pa;
- if (!this.fa) return !1;
- p = this.fa;
- p.su(n, this.gp, k, m, t(c, d));
- e = h.getParameter(h.RENDERBUFFER_BINDING);
- if (f.tB.qB("GL_QCOM")) {
- this.EG = new f.Pa;
- if (!this.EG) return !1;
- this.EG.su(n, this.gp, k, m, t(c, d))
- }
- this.$L = h.createFramebuffer();
- h.bindFramebuffer(h.FRAMEBUFFER, this.$L);
- h.framebufferTexture2D(h.FRAMEBUFFER, h.COLOR_ATTACHMENT0, h.TEXTURE_2D, p.Wh, 0);
- 0 != g && (this.fF = h.createRenderbuffer(), h.bindRenderbuffer(h.RENDERBUFFER, this.fF), h.renderbufferStorage(h.RENDERBUFFER, g, k, m), h.framebufferRenderbuffer(h.FRAMEBUFFER, h.DEPTH_ATTACHMENT, h.RENDERBUFFER, this.fF));
- h.checkFramebufferStatus(h.FRAMEBUFFER) !== h.FRAMEBUFFER_COMPLETE && f.log("Could not attach texture to the framebuffer");
- p.j2();
- c = this.sprite = f.q.create(p);
- c.scaleY = -1;
- c.ce(h.ONE, h.ONE_MINUS_SRC_ALPHA);
- h.bindRenderbuffer(h.RENDERBUFFER, e);
- h.bindFramebuffer(h.FRAMEBUFFER, this.ep);
- this.YG = !1;
- this.n(c);
- return !0
- },
- Qn: null,
- pqa: function() {
- f.s = this.Pi;
- f.view.Waa()
- },
- qqa: function() {
- f.Lp(f.nq);
- f.Rr();
- f.Lp(f.mq);
- f.Rr();
- var c = f.Q;
- c.ey(c.mp);
- var d = this.fa.m,
- e = f.Q.KH(),
- c = e.width / d.width,
- e = e.height / d.height,
- g = f.s;
- g.viewport(0, 0, d.width, d.height);
- d = new f.Ma;
- f.$0(d, -1 / c, 1 / c, -1 / e, 1 / e, -1, 1);
- f.aC(d);
- this.ep = g.getParameter(g.FRAMEBUFFER_BINDING);
- g.bindFramebuffer(g.FRAMEBUFFER, this.$L);
- f.tB.qB("GL_QCOM") && (g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.EG.Wh, 0), g.clear(g.COLOR_BUFFER_BIT | g.DEPTH_BUFFER_BIT), g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.fa.Wh, 0))
- },
- Fwa: function(c, d, e, g, h, k) {
- var m = f.s;
- h = h || m.COLOR_BUFFER_BIT;
- k = k || m.COLOR_BUFFER_BIT | m.DEPTH_BUFFER_BIT;
- this.gV(c, d, e, g, h, k, m.COLOR_BUFFER_BIT | m.DEPTH_BUFFER_BIT | m.STENCIL_BUFFER_BIT)
- },
- gV: null,
- rqa: function(c, d, e, g) {
- this.Qn();
- c = c || 0;
- d = d || 0;
- e = e || 0;
- g = isNaN(g) ? 1 : g;
- var h = this.Pi,
- k = this.gi;
- h.save();
- h.fillStyle = "rgba(" + (0 | c) + "," + (0 | d) + "," + (0 | e) + "," + g / 255 + ")";
- h.clearRect(0, 0, k.width, -k.height);
- h.fillRect(0, 0, k.width, -k.height);
- h.restore()
- },
- sqa: function(c, d, e, g, h, k, m) {
- this.Qn();
- var n = f.s,
- p = [0, 0, 0, 0],
- s = 0,
- u = 0;
- m & n.COLOR_BUFFER_BIT && (p = n.getParameter(n.COLOR_CLEAR_VALUE), n.clearColor(c, d, e, g));
- m & n.DEPTH_BUFFER_BIT && (s = n.getParameter(n.DEPTH_CLEAR_VALUE), n.clearDepth(h));
- m & n.STENCIL_BUFFER_BIT && (u = n.getParameter(n.STENCIL_CLEAR_VALUE),
- n.clearStencil(k));
- n.clear(m);
- m & n.COLOR_BUFFER_BIT && n.clearColor(p[0], p[1], p[2], p[3]);
- m & n.DEPTH_BUFFER_BIT && n.clearDepth(s);
- m & n.STENCIL_BUFFER_BIT && n.clearStencil(u)
- },
- end: null,
- lra: function() {
- f.s = f.Ysa;
- f.view.Iaa()
- },
- mra: function() {
- var c = f.s,
- d = f.Q;
- c.bindFramebuffer(c.FRAMEBUFFER, this.ep);
- d.Zha();
- f.Lp(f.nq);
- f.Qr();
- f.Lp(f.mq);
- f.Qr()
- },
- clear: function(c, d, e, g) {
- this.Fwa(c, d, e, g);
- this.end()
- },
- clearRect: null,
- Lqa: function(c, d, e, g) {
- this.Pi.clearRect(c, d, e, -g)
- },
- Mqa: function() {},
- clearDepth: null,
- Jqa: function() {
- f.log("clearDepth isn't supported on Cocos2d-Html5")
- },
- Kqa: function(c) {
- this.Qn();
- var d = f.s,
- e = d.getParameter(d.DEPTH_CLEAR_VALUE);
- d.clearDepth(c);
- d.clear(d.DEPTH_BUFFER_BIT);
- d.clearDepth(e);
- this.end()
- },
- clearStencil: null,
- Nqa: function() {
- f.log("clearDepth isn't supported on Cocos2d-Html5")
- },
- Oqa: function(c) {
- var d = f.s,
- e = d.getParameter(d.STENCIL_CLEAR_VALUE);
- d.clearStencil(c);
- d.clear(d.STENCIL_BUFFER_BIT);
- d.clearStencil(e)
- },
- I: null,
- Br: function(c) {
- this.Na && (c = c || f.s, c.save(), this.ma(c), this.transform(c), this.sprite.I(), c.restore(), this.arrivalOrder = 0)
- },
- Uw: function(c) {
- if (this.Na) {
- f.Rr();
- var d = this.grid;
- d && d.Bi() && (d.dx(), this.mJ());
- this.transform(c);
- this.sprite.I();
- this.ma(c);
- d && d.Bi() && d.ax(this);
- f.Qr();
- this.arrivalOrder = 0
- }
- },
- ma: null,
- Rq: function(c) {
- c = c || f.s;
- if (this.YG) {
- this.Qn();
- if (this.LO) {
- var d = this.gi;
- c.save();
- c.fillStyle = this.uV;
- c.clearRect(0, 0, d.width, -d.height);
- c.fillRect(0, 0, d.width, -d.height);
- c.restore()
- }
- this.kd();
- c = this.i;
- for (var d = c.length, e = this.sprite, g = 0; g < d; g++) {
- var h = c[g];
- h != e && h.I()
- }
- this.end()
- }
- },
- fn: function() {
- var c = f.s;
- if (this.YG) {
- this.Qn();
- var d = this.LO;
- if (d) {
- var e = [0, 0, 0, 0],
- g = 0,
- h = 0;
- d & c.COLOR_BUFFER_BIT && (e = c.getParameter(c.COLOR_CLEAR_VALUE), c.clearColor(this.Kq.r / 255, this.Kq.g / 255, this.Kq.b / 255, this.Kq.a / 255));
- d & c.DEPTH_BUFFER_BIT && (g = c.getParameter(c.DEPTH_CLEAR_VALUE), c.clearDepth(this.f_));
- d & c.STENCIL_BUFFER_BIT && (h = c.getParameter(c.STENCIL_CLEAR_VALUE), c.clearStencil(this.g_));
- c.clear(d);
- d & c.COLOR_BUFFER_BIT && c.clearColor(e[0], e[1], e[2], e[3]);
- d & c.DEPTH_BUFFER_BIT && c.clearDepth(g);
- d & c.STENCIL_BUFFER_BIT && c.clearStencil(h)
- }
- this.kd();
- c = this.i;
- for (d = 0; d < c.length; d++) e =
- c[d], e != this.sprite && e.I();
- this.end()
- }
- },
- q_a: function() {
- f.log("saveToFile isn't supported on cocos2d-html5");
- return null
- },
- BOa: function(c, d, e, g, h) {
- for (var k = 0; k < h; k++) c[d + k] = e[g + k]
- },
- U1a: function() {
- f.log("saveToFile isn't supported on Cocos2d-Html5")
- },
- i_a: function() {
- f.log("listenToBackground isn't supported on Cocos2d-Html5")
- },
- j_a: function() {
- f.log("listenToForeground isn't supported on Cocos2d-Html5")
- },
- USa: function() {
- return this.LO
- },
- J2a: function(c) {
- this.LO = c
- },
- Hza: function() {
- return this.Kq
- },
- t2: null,
- lua: function(c) {
- var d =
- this.Kq;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- d.a = c.a;
- this.uV = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + "," + c.a / 255 + ")"
- },
- mua: function(c) {
- var d = this.Kq;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- d.a = c.a
- },
- TSa: function() {
- return this.f_
- },
- I2a: function(c) {
- this.f_ = c
- },
- VSa: function() {
- return this.g_
- },
- K2a: function(c) {
- this.g_ = c
- },
- oXa: function() {
- return this.YG
- },
- x2a: function(c) {
- this.YG = c
- }
- });
- q = f.nv.prototype;
- f.K == f.na ? (q.ctor = q.bF, q.De = q.Iqa, q.PP = q.Esa, q.Qn = q.qqa, q.gV = q.sqa, q.end = q.mra, q.clearRect = q.Mqa, q.clearDepth = q.Kqa, q.clearStencil = q.Oqa, q.I = q.Uw, q.ma = q.fn, q.t2 = q.mua) : (q.ctor = q.aF, q.De = q.Hqa, q.PP = q.Dsa, q.Qn = q.pqa, q.gV = q.rqa, q.end = q.lra, q.clearRect = q.Lqa, q.clearDepth = q.Jqa, q.clearStencil = q.Nqa, q.I = q.Br, q.ma = q.Rq, q.t2 = q.lua);
- f.d(q, "clearColorVal", q.Hza, q.t2);
- f.nv.create = function(c, d, e, g) {
- return new f.nv(c, d, e, g)
- };
- f.an = f.hq.extend({
- td: null,
- YW: null,
- Ba: !1,
- dc: null,
- ta: "LabelAtlas",
- ctor: function(c, d, e, g, h) {
- f.hq.prototype.ctor.call(this);
- d && f.an.prototype.xf.call(this, c, d, e, g, h)
- },
- RC: function() {
- return this.Ba
- },
- oe: function(c, d) {
- this.dc || (this.dc = []);
- this.dc.push({
- al: c,
- nj: d
- })
- },
- jf: function() {
- if (this.dc) {
- this.Ba = !0;
- for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
- var g = c[d];
- g.al.call(g.nj, this)
- }
- c.length = 0
- }
- },
- xf: function(c, d, e, g, h) {
- var k = c + "",
- m, n;
- if (void 0 === e) {
- e = f.L.zd(d);
- if (1 !== parseInt(e.version, 10)) return f.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1;
- d = f.path.pB(d, e.textureFilename);
- g = f.Uc();
- m = parseInt(e.itemWidth, 10) / g;
- n = parseInt(e.itemHeight, 10) / g;
- e = String.fromCharCode(parseInt(e.firstChar, 10))
- } else m = e || 0, n = g || 0, e = h || " ";
- var p = null,
- p = d instanceof f.Pa ? d : f.nb.vd(d);
- (this.Ba = d = p.ie) || p.oe(function() {
- this.va(p, m, n, k.length);
- this.string = k;
- this.jf()
- }, this);
- return this.va(p, m, n, k.length) ? (this.YW = e, this.string = k, !0) : !1
- },
- F: function(c) {
- f.hq.prototype.F.call(this, c);
- this.VC()
- },
- qc: function() {
- return this.td
- },
- ma: function(c) {
- f.hq.prototype.ma.call(this,
- c);
- f.ima && (c = this.size, f.If.Sf([r(0, 0), r(c.width, 0), r(c.width, c.height), r(0, c.height)], 4, !0))
- },
- LU: function(c, d, e) {
- c.Tsa = !0;
- f.ja.prototype.n.call(this, c, d, e)
- },
- VC: null,
- rva: function() {
- for (var c = this.td || "", d = c.length, e = this.texture, g = this.Sj, h = this.Ti, k = 0; k < d; k++) {
- var m = c.charCodeAt(k) - this.YW.charCodeAt(0),
- m = x(parseInt(m % this.jA, 10) * g, parseInt(m / this.jA, 10) * h, g, h),
- n = c.charCodeAt(k),
- p = this.Za(k);
- p ? 32 == n ? (p.j(), p.sc(x(0, 0, 10, 10), !1, t(0, 0))) : (p.va(e, m), p.visible = !0, p.opacity = this.kb) : (p = new f.q, 32 == n ?
- (p.j(), p.sc(x(0, 0, 10, 10), !1, t(0, 0))) : p.va(e, m), f.ja.prototype.n.call(this, p, 0, k));
- p.o(k * g + g / 2, h / 2)
- }
- },
- sva: function() {
- var c = this.td,
- d = c.length,
- e = this.textureAtlas,
- g = e.texture,
- h = g.pixelsWidth,
- g = g.pixelsHeight,
- k = this.Sj,
- m = this.Ti;
- this.pM || (k = this.Sj * f.Uc(), m = this.Ti * f.Uc());
- d > e.cg && f.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
- for (var n = e.quads, p = this.Ab, p = {
- r: p.r,
- g: p.g,
- b: p.b,
- a: this.kb
- }, s = this.Sj, u = 0; u < d; u++) {
- var v = c.charCodeAt(u) - this.YW.charCodeAt(0),
- z = v % this.jA,
- A = 0 | v / this.jA,
- B;
- f.Ey ? (z = (2 * z * k + 1) / (2 * h), v = z + (2 * k - 2) / (2 * h), A = (2 * A * m + 1) / (2 * g), B = A + (2 * m - 2) / (2 * g)) : (z = z * k / h, v = z + k / h, A = A * m / g, B = A + m / g);
- var C = n[u],
- G = C.Z,
- L = C.W,
- O = C.T,
- C = C.aa;
- G.t.Da = z;
- G.t.ga = A;
- L.t.Da = v;
- L.t.ga = A;
- O.t.Da = z;
- O.t.ga = B;
- C.t.Da = v;
- C.t.ga = B;
- O.k.x = u * s;
- O.k.y = 0;
- O.k.z = 0;
- C.k.x = u * s + s;
- C.k.y = 0;
- C.k.z = 0;
- G.k.x = u * s;
- G.k.y = this.Ti;
- G.k.z = 0;
- L.k.x = u * s + s;
- L.k.y = this.Ti;
- L.k.z = 0;
- G.D = p;
- L.D = p;
- O.D = p;
- C.D = p
- }
- 0 < d && (e.dirty = !0, c = e.totalQuads, d > c && e.rea(d - c))
- },
- wa: null,
- Nua: function(c) {
- c = String(c);
- var d = c.length;
- this.td = c;
- this.width = d * this.Sj;
- this.height =
- this.Ti;
- if (this.i) {
- c = this.i;
- for (var d = c.length, e = 0; e < d; e++) {
- var g = c[e];
- g && !g.Tsa && (g.visible = !1)
- }
- }
- this.VC();
- this.quadsToDraw = d
- },
- Pua: function(c) {
- c = String(c);
- var d = c.length;
- d > this.textureAtlas.totalQuads && this.textureAtlas.NQ(d);
- this.td = c;
- this.width = d * this.Sj;
- this.height = this.Ti;
- this.VC();
- this.quadsToDraw = d
- },
- J: null,
- lY: function(c) {
- if (this.kb !== c) {
- f.hq.prototype.J.call(this, c);
- for (var d = this.i, e = 0, g = d.length; e < g; e++) d[e] && (d[e].opacity = c)
- }
- },
- mY: function(c) {
- this.Ib !== c && f.hq.prototype.J.call(this, c)
- }
- });
- q = f.an.prototype;
- f.K === f.na ? (q.VC = q.sva, q.wa = q.Pua, q.J = q.mY) : (q.VC = q.rva, q.wa = q.Nua, q.J = q.lY, q.n = q.LU);
- f.d(q, "opacity", q.vb, q.J);
- f.d(q, "string", q.qc, q.wa);
- f.an.create = function(c, d, e, g, h) {
- return new f.an(c, d, e, g, h)
- };
- f.BLa = -1;
- f.qq = f.Fh.extend({
- wb: !0,
- Jb: !1,
- td: "",
- Fk: null,
- qF: "",
- cA: "",
- CE: f.Bo,
- RG: -1,
- R$: !1,
- qM: null,
- Laa: null,
- kb: 255,
- Lg: 255,
- Ab: null,
- rd: null,
- dg: !0,
- Dg: !0,
- Ba: !1,
- dc: null,
- ta: "LabelBMFont",
- Xaa: function(c, d) {
- d ? this.cA = c : this.td = c;
- var e = this.i;
- if (e)
- for (var g = 0; g < e.length; g++) {
- var h = e[g];
- h && h.za(!1)
- }
- this.Ba && (this.QO(), d && this.Bl())
- },
- ctor: function(c, d, e, g, h) {
- f.Fh.prototype.ctor.call(this);
- this.qM = r(0, 0);
- this.Ab = f.color(255, 255, 255, 255);
- this.rd = f.color(255, 255, 255, 255);
- this.Laa = [];
- this.xf(c, d, e, g, h)
- },
- RC: function() {
- return this.Ba
- },
- oe: function(c,
- d) {
- this.dc || (this.dc = []);
- this.dc.push({
- al: c,
- nj: d
- })
- },
- jf: function() {
- if (this.dc) {
- for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
- var g = c[d];
- g.al.call(g.nj, this)
- }
- c.length = 0
- }
- },
- ma: function(c) {
- f.Fh.prototype.ma.call(this, c);
- if (f.jma) {
- c = this.e();
- var d = r(0 | -this.Qb.x, 0 | -this.Qb.y);
- c = [r(d.x, d.y), r(d.x + c.width, d.y), r(d.x + c.width, d.y + c.height), r(d.x, d.y + c.height)];
- f.If.wj(0, 255, 0, 255);
- f.If.Sf(c, 4, !0)
- }
- },
- F: function(c) {
- var d = this.Ab,
- e = this.rd;
- if (e.r != c.r || e.g != c.g || e.b != c.b || e.a != c.a) d.r = e.r = c.r, d.g = e.g = c.g, d.b = e.b = c.b,
- this.Ba && this.dg && (d = f.color.WHITE, (e = this.Yb) && e.wb && e.cascadeColor && (d = e.ou()), this.Wb(d)), void 0 === c.a || c.Yw || this.J(c.a)
- },
- vg: function() {
- return this.Jb
- },
- ee: function(c) {
- this.Jb = c;
- if (c = this.i)
- for (var d = 0; d < c.length; d++) {
- var e = c[d];
- e && e.wb && (e.opacityModifyRGB = this.Jb)
- }
- },
- vb: function() {
- return this.Lg
- },
- wda: function() {
- return this.kb
- },
- J: function(c) {
- this.kb = this.Lg = c;
- if (this.Dg) {
- var d = 255,
- e = this.Yb;
- e && e.wb && e.cascadeOpacity && (d = e.kb);
- this.hc(d)
- }
- this.Ab.a = this.rd.a = c
- },
- hc: function(c) {
- this.kb = this.Lg * c / 255;
- c = this.i;
- for (var d = 0; d < c.length; d++) {
- var e = c[d];
- f.K == f.na ? e.hc(this.kb) : (f.ja.prototype.hc.call(e, this.kb), e.Ha())
- }
- this.Us()
- },
- WH: function() {
- return !1
- },
- Hu: function(c) {
- this.Dg = c
- },
- $a: function() {
- var c = this.rd;
- return f.color(c.r, c.g, c.b, c.a)
- },
- ou: function() {
- return this.Ab
- },
- Wb: function(c) {
- var d = this.Ab,
- e = this.rd;
- d.r = e.r * c.r / 255;
- d.g = e.g * c.g / 255;
- d.b = e.b * c.b / 255;
- c = this.i;
- for (d = 0; d < c.length; d++) e = c[d], f.K == f.na ? e.Wb(this.Ab) : (f.ja.prototype.Wb.call(e, this.Ab), e.Ha());
- this.Us()
- },
- Us: function() {
- if (f.K != f.na) {
- var c,
- d = this.texture;
- d && 0 < d.width && (c = d.md) && (d = f.nb.vP(this.qi.md)) && (c instanceof HTMLCanvasElement && !this.pf ? f.HB(c, d, this.Ab, null, c) : (c = f.HB(c, d, this.Ab), d = new f.Pa, d.sh(c), d.$d(), this.texture = d))
- }
- },
- VH: function() {
- return !1
- },
- Gu: function(c) {
- this.dg = c
- },
- j: function() {
- return this.xf(null, null, null, null, null)
- },
- xf: function(c, d, e, g, h) {
- c = c || "";
- this.Fk && f.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
- if (d) {
- var k = f.L.zd(d);
- if (!k) return f.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1;
- this.Fk = k;
- this.qF = d;
- d = f.nb.vd(k.dca);
- (this.Ba = k = d.ie) || d.oe(function(c) {
- this.Ba = !0;
- this.va(c, this.cA.length);
- this.wa(this.cA, !0);
- this.jf()
- }, this)
- } else d = new f.Pa, k = new Image, d.sh(k), this.Ba = !1;
- return this.va(d, c.length) ? (this.CE = g || f.wK, this.qM = h || r(0, 0), this.RG = null == e ? -1 : e, this.kb = this.Lg = 255, this.Ab = f.color(255, 255, 255, 255), this.rd = f.color(255, 255, 255, 255), this.dg = this.Dg = !0, this.m.width = 0, this.m.height = 0, this.S(0.5, 0.5), f.K === f.na && (e = this.textureAtlas.texture, this.Jb = e.Ep(), g = this.Laa = new f.q,
- g.va(e, x(0, 0, 0, 0), !1), g.batchNode = this), this.wa(c, !0), !0) : !1
- },
- QO: function() {
- var c = f.K,
- d = c === f.fb ? this.texture : this.textureAtlas.texture,
- e = 0,
- g = t(0, 0),
- h = 0,
- k = 1,
- m = this.td,
- n = m ? m.length : 0;
- if (0 !== n) {
- var p, s = this.Fk,
- u = s.lDa,
- v = s.j_,
- z = s.iza;
- for (p = 0; p < n - 1; p++) 10 == m.charCodeAt(p) && k++;
- var A = v * k,
- k = -(v - v * k),
- B = -1;
- for (p = 0; p < n; p++)
- if (v = m.charCodeAt(p), 0 != v)
- if (10 === v) e = 0, k -= s.j_;
- else {
- var C = u[B << 16 | v & 65535] || 0,
- G = z[v];
- if (G) {
- var L = x(G.rect.x, G.rect.y, G.rect.width, G.rect.height),
- L = f.cs(L);
- L.x += this.qM.x;
- L.y += this.qM.y;
- (B = this.Za(p)) ? 32 === v && c === f.fb ? B.sc(L, !1, t(0, 0)) : (B.sc(L, !1), B.visible = !0): (B = new f.q, 32 === v && c === f.fb && (L = x(0, 0, 0, 0)), B.va(d, L, !1), B.fX = !0, this.n(B, 0, p));
- B.opacityModifyRGB = this.Jb;
- f.K == f.na ? (B.Wb(this.Ab), B.hc(this.kb)) : (f.ja.prototype.Wb.call(B, this.Ab), f.ja.prototype.hc.call(B, this.kb), B.Ha());
- L = r(e + G.Pia + 0.5 * G.rect.width + C, k + (s.j_ - G.Qia) - 0.5 * L.height * f.Uc());
- B.o(f.J1(L));
- e += G.rJa + C;
- B = v;
- h < e && (h = e)
- } else f.log("cocos2d: LabelBMFont: character not found " + m[p])
- }
- g.width = h;
- g.height = A;
- this.Ga(f.eia(g))
- }
- },
- N5a: function(c) {
- var d = this.i;
- if (d)
- for (var e = 0, g = d.length; e < g; e++) {
- var h = d[e];
- h && (h.visible = !1)
- }
- this.Fk && this.QO();
- c || this.Bl()
- },
- qc: function() {
- return this.cA
- },
- wa: function(c, d) {
- c = String(c);
- null == d && (d = !0);
- if (null == c || "string" != typeof c) c += "";
- this.cA = c;
- this.Xaa(c, d)
- },
- Oua: function(c) {
- this.wa(c, !1)
- },
- G2a: function(c) {
- this.wa(c, !0)
- },
- Bl: function() {
- this.string = this.cA;
- if (0 < this.RG) {
- for (var c = this.td.length, d = [], e = [], g = 1, h = 0, k = !1, m = !1, n = -1, p = -1, s = 0, u, v = 0, z = this.i.length; v < z; v++) {
- for (var A = 0; !(u = this.Za(v + s +
- A));) A++;
- s += A;
- if (h >= c) break;
- var B = this.td[h];
- m || (p = this.vW(u), m = !0);
- k || (n = p, k = !0);
- if (10 == B.charCodeAt(0)) {
- e.push("\n");
- d = d.concat(e);
- e.length = 0;
- k = m = !1;
- n = p = -1;
- v--;
- s -= A;
- g++;
- if (h >= c) break;
- p || (p = this.vW(u), m = !0);
- n || (n = p, k = !0);
- h++
- } else if (f.W0(B)) e.push(B), d = d.concat(e), e.length = 0, m = !1, p = -1, h++;
- else if (this.Rra(u) - n > this.RG)
- if (this.R$) {
- f.Lia(e);
- e.push("\n");
- d = d.concat(e);
- e.length = 0;
- k = m = !1;
- n = p = -1;
- g++;
- if (h >= c) break;
- p || (p = this.vW(u), m = !0);
- n || (n = p, k = !0);
- v--
- } else e.push(B), -1 != d.lastIndexOf(" ") ? f.Lia(d) : d = [], 0 < d.length && d.push("\n"), g++, k = !1, n = -1, h++;
- else e.push(B), h++
- }
- d = d.concat(e);
- v = d.length;
- u = "";
- for (h = 0; h < v; ++h) u += d[h];
- u += String.fromCharCode(0);
- this.Xaa(u, !1)
- }
- if (this.CE != f.wK)
- for (d = h = 0, c = this.td.length, e = [], g = 0; g < c; g++)
- if (10 == this.td[g].charCodeAt(0) || 0 == this.td[g].charCodeAt(0))
- if (v = 0, k = e.length, 0 == k) d++;
- else {
- if (u = h + k - 1 + d, !(0 > u) && (v = this.Za(u), null != v)) {
- v = v.Vc() + v.lf() / 2;
- m = 0;
- switch (this.CE) {
- case f.Bo:
- m = this.width / 2 - v / 2;
- break;
- case f.q7:
- m = this.width - v
- }
- if (0 != m)
- for (v = 0; v < k; v++)(u = h + v + d, 0 > u || !(u = this.Za(u))) ||
- (u.x += m);
- h += k;
- d++;
- e.length = 0
- }
- } else e.push(this.td[h])
- },
- sGa: function(c) {
- this.CE = c;
- this.Bl()
- },
- Ara: function() {
- return this.CE
- },
- BGa: function(c) {
- this.RG = c;
- this.Bl()
- },
- vF: function() {
- return this.RG
- },
- B3a: function(c) {
- this.R$ = c;
- this.Bl()
- },
- ib: function(c, d) {
- f.v.prototype.ib.call(this, c, d);
- this.Bl()
- },
- jb: function(c) {
- f.v.prototype.jb.call(this, c);
- this.Bl()
- },
- tb: function(c) {
- f.v.prototype.tb.call(this, c);
- this.Bl()
- },
- GC: function(c) {
- if (null != c && c != this.qF) {
- var d = f.L.zd(c);
- d ? (this.qF = c, this.Fk = d, c = f.nb.vd(d.dca), this.Ba =
- d = c.ie, this.texture = c, f.K === f.fb && (this.qi = this.texture), d ? this.QO() : c.oe(function(c) {
- this.Ba = !0;
- this.texture = c;
- this.QO();
- this.Us();
- this.Bl();
- this.jf()
- }, this)) : f.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
- }
- },
- WTa: function() {
- return this.qF
- },
- S: function(c, d) {
- f.v.prototype.S.call(this, c, d);
- this.Bl()
- },
- Uaa: function(c) {
- f.v.prototype.Uaa.call(this, c);
- this.Bl()
- },
- Xe: function(c) {
- f.v.prototype.Xe.call(this, c);
- this.Bl()
- },
- Ye: function(c) {
- f.v.prototype.Ye.call(this, c);
- this.Bl()
- },
- yNa: function() {},
- uOa: function(c, d) {
- var e = 0;
- if (this.Rqa.mDa) {
- var g = this.Rqa.mDa[(c << 16 | d & 65535).toString()];
- g && (e = g.JPa)
- }
- return e
- },
- vW: function(c) {
- return c.Vc() * this.ka - c.lf() * this.ka * c.Eb.x
- },
- Rra: function(c) {
- return c.Vc() * this.ka + c.lf() * this.ka * c.Eb.x
- }
- });
- q = f.qq.prototype;
- f.d(q, "opacityModifyRGB", q.vg, q.ee);
- f.d(q, "opacity", q.vb, q.J);
- f.d(q, "cascadeOpacity", q.WH, q.Hu);
- f.d(q, "color", q.$a, q.F);
- f.d(q, "cascadeColor", q.VH, q.Gu);
- f.d(q, "string", q.qc, q.Oua);
- f.d(q, "boundingWidth", q.vF, q.BGa);
- f.d(q, "textAlign", q.Ara, q.sGa);
- f.qq.create = function(c, d, e, g, h) {
- return new f.qq(c, d, e, g, h)
- };
- f.W0 = function(c) {
- c = c.charCodeAt(0);
- 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
- };
- f.Lia = function(c) {
- var d = c.length;
- if (!(0 >= d) && (d -= 1, f.W0(c[d]))) {
- for (var e = d - 1; 0 <= e; --e)
- if (f.W0(c[e])) d = e;
- else break;
- f.kJa(c, d)
- }
- };
- f.kJa = function(c, d) {
- var e = c.length;
- d >= e || 0 > d || c.splice(d, e)
- };
- f.ura = {
- Sla: /info [^\n]*(\n|$)/gi,
- Tja: /common [^\n]*(\n|$)/gi,
- Xma: /page [^\n]*(\n|$)/gi,
- Sja: /char [^\n]*(\n|$)/gi,
- $la: /kerning [^\n]*(\n|$)/gi,
- Ula: /\w+=[^ \r\n]+/gi,
- Tla: /^[\-]?\d+$/,
- YF: function(c) {
- c = c.match(this.Ula);
- var d = {};
- if (c)
- for (var e = 0, g = c.length; e < g; e++) {
- var h = c[e],
- k = h.indexOf("\x3d"),
- m = h.substring(0, k),
- h = h.substring(k + 1);
- h.match(this.Tla) ? h = parseInt(h) : '"' == h[0] && (h = h.substring(1, h.length - 1));
- d[m] = h
- }
- return d
- },
- rEa: function(c, d) {
- var e = {};
- this.YF(c.match(this.Sla)[0]);
- var g = this.YF(c.match(this.Tja)[0]);
- e.j_ = g.lineHeight;
- if (f.K === f.na) {
- var h = f.tB.MF;
- (g.scaleW > h.width || g.scaleH > h.height) && f.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
- }
- 1 !== g.pages && f.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
- g = this.YF(c.match(this.Xma)[0]);
- 0 !== g.id && f.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
- e.dca = f.path.pB(d, g.file);
- for (var k = c.match(this.Sja), m = e.iza = {}, g = 0, h = k.length; g < h; g++) {
- var n = this.YF(k[g]);
- m[n.id] = {
- rect: {
- x: n.x,
- y: n.y,
- width: n.width,
- height: n.height
- },
- Pia: n.xoffset,
- Qia: n.yoffset,
- rJa: n.xadvance
- }
- }
- k = e.lDa = {};
- if (m = c.match(this.$la))
- for (g = 0, h = m.length; g < h; g++) n = this.YF(m[g]), k[n.first << 16 | n.second & 65535] = n.amount;
- return e
- },
- load: function(c, d, e, g) {
- var h = this;
- f.L.lQ(c, function(c, e) {
- if (c) return g(c);
- g(null, h.rEa(e, d))
- })
- }
- };
- f.L.Xp(["fnt"], f.ura);
- f.g6 = f.ja.extend({
- texture: null,
- DB: !1,
- dq: !1,
- B: null,
- AG: 0,
- dW: 0,
- ew: 0,
- bX: 0,
- zt: 0,
- LX: 0,
- BX: null,
- AX: null,
- ec: null,
- yz: null,
- Vk: null,
- rg: null,
- zz: null,
- VA: null,
- ta: "MotionStreak",
- ctor: function(c, d, e, g, h) {
- f.ja.prototype.ctor.call(this);
- this.em = r(0, 0);
- this.B = new f.Um(f.SRC_ALPHA, f.ONE_MINUS_SRC_ALPHA);
- this.gZ = f.s.createBuffer();
- this.dq = this.DB = !1;
- this.texture = null;
- this.LX = this.zt = this.bX = this.ew = this.dW = this.AG = 0;
- this.VA = this.zz = this.rg = this.Vk = this.yz = this.ec = this.AX = this.BX = null;
- void 0 !== h && this.tCa(c, d, e, g, h)
- },
- sb: function() {
- return this.texture
- },
- ab: function(c) {
- this.texture != c && (this.texture = c)
- },
- ck: function() {
- return this.B
- },
- ce: function(c, d) {
- void 0 === d ? this.B = c : (this.B.src = c, this.B.ha = d)
- },
- vb: function() {
- f.log("cc.MotionStreak.getOpacity has not been supported.");
- return 0
- },
- J: function() {
- f.log("cc.MotionStreak.setOpacity has not been supported.")
- },
- ee: function() {},
- vg: function() {
- return !1
- },
- Ra: function() {
- f.v.prototype.Ra.call(this);
- this.rg && f.s.deleteBuffer(this.rg);
- this.VA && f.s.deleteBuffer(this.VA);
- this.zz && f.s.deleteBuffer(this.zz)
- },
- CXa: function() {
- return this.DB
- },
- d3a: function(c) {
- this.DB = c
- },
- WXa: function() {
- return this.dq
- },
- l4a: function(c) {
- this.dq = c
- },
- tCa: function(c, d, e, g, h) {
- if (!h) throw "cc.MotionStreak.initWithFade(): Invalid filename or texture";
- "string" === typeof h && (h = f.nb.vd(h));
- f.v.prototype.o.call(this, r(0, 0));
- this.anchorY = this.anchorX = 0;
- this.ignoreAnchor = !0;
- this.dq = !1;
- this.DB = !0;
- this.ew = -1 == d ? e / 5 : d;
- this.ew *= this.ew;
- this.AG = e;
- this.dW = 1 / c;
- c = (0 | 60 * c) + 2;
- this.zt = 0;
- this.AX = new Float32Array(c);
- this.BX = new Float32Array(2 * c);
- this.ec = new Float32Array(4 * c);
- this.Vk =
- new Float32Array(4 * c);
- this.yz = new Uint8Array(8 * c);
- this.bX = c;
- c = f.s;
- this.rg = c.createBuffer();
- this.VA = c.createBuffer();
- this.zz = c.createBuffer();
- this.B.src = c.SRC_ALPHA;
- this.B.ha = c.ONE_MINUS_SRC_ALPHA;
- this.shaderProgram = f.xg.be(f.zo);
- this.texture = h;
- this.color = g;
- this.ds();
- c.bindBuffer(c.ARRAY_BUFFER, this.rg);
- c.bufferData(c.ARRAY_BUFFER, this.ec, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ARRAY_BUFFER, this.VA);
- c.bufferData(c.ARRAY_BUFFER, this.Vk, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ARRAY_BUFFER, this.zz);
- c.bufferData(c.ARRAY_BUFFER,
- this.yz, c.DYNAMIC_DRAW);
- return !0
- },
- A5a: function(c) {
- this.color = c;
- for (var d = this.yz, e = 0, g = 2 * this.zt; e < g; e++) d[4 * e] = c.r, d[4 * e + 1] = c.g, d[4 * e + 2] = c.b
- },
- reset: function() {
- this.zt = 0
- },
- o: function(c, d) {
- this.dq = !0;
- void 0 === d ? (this.em.x = c.x, this.em.y = c.y) : (this.em.x = c, this.em.y = d)
- },
- Vc: function() {
- return this.em.x
- },
- ls: function(c) {
- this.em.x = c;
- this.dq || (this.dq = !0)
- },
- Zd: function() {
- return this.em.y
- },
- Lu: function(c) {
- this.em.y = c;
- this.dq || (this.dq = !0)
- },
- ma: function(c) {
- 1 >= this.zt || !this.texture || !this.texture.ie || (c = c || f.s, f.qC(this),
- f.wf(f.tv), f.Fm(this.B.src, this.B.ha), f.Ai(this.texture), c.bindBuffer(c.ARRAY_BUFFER, this.rg), c.bufferData(c.ARRAY_BUFFER, this.ec, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.VA), c.bufferData(c.ARRAY_BUFFER, this.Vk, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.zz), c.bufferData(c.ARRAY_BUFFER, this.yz, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 0, 0), c.drawArrays(c.TRIANGLE_STRIP, 0, 2 *
- this.zt), f.bl++)
- },
- update: function(c) {
- if (this.dq) {
- c *= this.dW;
- var d, e, g, h, k = 0,
- m = this.zt,
- n = this.AX,
- p = this.BX,
- s = this.ec,
- u = this.yz;
- for (g = 0; g < m; g++) n[g] -= c, 0 >= n[g] ? k++ : (d = g - k, 0 < k ? (n[d] = n[g], p[2 * d] = p[2 * g], p[2 * d + 1] = p[2 * g + 1], h = 2 * g, e = 2 * d, s[2 * e] = s[2 * h], s[2 * e + 1] = s[2 * h + 1], s[2 * (e + 1)] = s[2 * (h + 1)], s[2 * (e + 1) + 1] = s[2 * (h + 1) + 1], h *= 4, e *= 4, u[e + 0] = u[h + 0], u[e + 1] = u[h + 1], u[e + 2] = u[h + 2], u[e + 4] = u[h + 4], u[e + 5] = u[h + 5], u[e + 6] = u[h + 6]) : e = 8 * d, d = 255 * n[d], u[e + 3] = d, u[e + 7] = d);
- m -= k;
- g = !0;
- m >= this.bX ? g = !1 : 0 < m && (c = 1 == m ? !1 : f.Ifa(r(p[2 * (m - 2)], p[2 *
- (m - 2) + 1]), this.em) < 2 * this.ew, f.Ifa(r(p[2 * (m - 1)], p[2 * (m - 1) + 1]), this.em) < this.ew || c) && (g = !1);
- g && (p[2 * m] = this.em.x, p[2 * m + 1] = this.em.y, n[m] = 1, g = 8 * m, n = this.Ab, u[g] = n.r, u[g + 1] = n.g, u[g + 2] = n.b, u[g + 4] = n.r, u[g + 5] = n.g, u[g + 6] = n.b, u[g + 3] = 255, u[g + 7] = 255, 0 < m && this.DB && (1 < m ? f.H3(p, this.AG, this.ec, m, 1) : f.H3(p, this.AG, this.ec, 0, 2)), m++);
- this.DB || f.H3(p, this.AG, this.ec, 0, m);
- if (m && this.LX != m) {
- p = 1 / m;
- u = this.Vk;
- for (g = 0; g < m; g++) u[4 * g] = 0, u[4 * g + 1] = p * g, u[2 * (2 * g + 1)] = 1, u[2 * (2 * g + 1) + 1] = p * g;
- this.LX = m
- }
- this.zt = m
- }
- }
- });
- f.g6.create = function(c, d, e, g, h) {
- return new f.g6(c, d, e, g, h)
- };
- f.mT = f.v.extend({
- grid: null,
- ad: null,
- vH: function() {
- return this.grid
- },
- UGa: function(c) {
- this.grid = c
- },
- ZI: function(c) {
- this.ad = c
- },
- n: function(c, d, e) {
- f.v.prototype.n.call(this, c, d, e);
- c && !this.ad && (this.ad = c)
- },
- I: function() {
- if (this.Na) {
- var c = f.K == f.na,
- d = this.grid;
- c && d && d.ah && d.dx();
- this.transform();
- var e = this.i;
- if (e && 0 < e.length) {
- var g = e.length;
- this.kd();
- for (i = 0; i < g; i++) {
- var h = e[i];
- h && h.I()
- }
- }
- c && d && d.ah && d.ax(this.ad)
- }
- },
- pva: function() {
- var c = this.UY,
- d = f.Md.top,
- e = this.se(),
- g = c.c;
- g[0] = e.a;
- g[4] = e.G;
- g[12] = e.pa;
- g[1] =
- e.b;
- g[5] = e.P;
- g[13] = e.qa;
- g[14] = this.PG;
- f.Np(d, d, c);
- null == this.Hq || this.grid && this.grid.Bi() || (c = this.Qb.x, d = this.Qb.y, 0 !== c || 0 !== d ? (f.LT || (c |= 0, d |= 0), f.bC(c, d), this.Hq.gI(), f.bC(-c, -d)) : this.Hq.gI())
- }
- });
- q = f.mT.prototype;
- f.K === f.na && (q.transform = q.pva);
- f.d(q, "target", null, q.ZI);
- f.mT.create = function() {
- return new f.mT
- };
- f.Q5a = function() {
- return {
- x: 0,
- y: 0
- }
- };
- f.Uu = function(c, d) {
- return {
- x: c,
- y: d
- }
- };
- f.Ji = function(c, d) {
- return f.Uu(c.x + d.x, c.y + d.y)
- };
- f.Ke = function(c, d) {
- return f.Uu(c.x - d.x, c.y - d.y)
- };
- f.Ug = function(c, d) {
- return f.Uu(c.x * d, c.y * d)
- };
- f.ZC = function(c) {
- return f.Uu(-c.y, c.x)
- };
- f.Dl = function(c) {
- return f.Uu(-c.x, -c.y)
- };
- f.Mia = function(c, d) {
- return c.x * d.x + c.y * d.y
- };
- f.P5a = function(c) {
- return f.Uu(Math.cos(c), Math.sin(c))
- };
- f.tJ = function(c) {
- c = f.Af(r(c.x, c.y));
- return f.Uu(c.x, c.y)
- };
- f.Ni = function(c) {
- return f.Uu(c.x, c.y)
- };
- f.Pb = function(c) {
- return {
- Da: c.x,
- ga: c.y
- }
- };
- f.ela = f.v.extend({
- cc: null,
- B: null,
- ig: 1,
- Oj: null,
- ta: "DrawNodeCanvas",
- ctor: function() {
- f.v.prototype.ctor.call(this);
- this.cc = [];
- this.Oj = f.color(255, 255, 255, 255);
- this.B = new f.Um(f.Mc, f.Lc);
- this.j()
- },
- ck: function() {
- return this.B
- },
- ce: function(c, d) {
- void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.ha = d)
- },
- Ju: function(c) {
- this.ig = c
- },
- rAa: function() {
- return this.ig
- },
- wj: function(c) {
- var d = this.Oj;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- d.a = null == c.a ? 255 : c.a
- },
- rh: function() {
- return f.color(this.Oj.r, this.Oj.g, this.Oj.b,
- this.Oj.a)
- },
- E_: function(c, d, e, g, h) {
- g = g || this.ig;
- h = h || this.rh();
- null == h.a && (h.a = 255);
- c = [c, r(d.x, c.y), d, r(c.x, d.y)];
- d = new f.Fs(f.Yg.Bs);
- d.zg = c;
- d.lineWidth = g;
- d.Tr = h;
- d.TP = !0;
- d.tu = !0;
- d.lineCap = "butt";
- if (d.fillColor = e) null == e.a && (e.a = 255), d.S0 = !0;
- this.cc.push(d)
- },
- y_: function(c, d, e, g, h, k, m) {
- k = k || this.ig;
- m = m || this.rh();
- null == m.a && (m.a = 255);
- for (var n = 2 * Math.PI / g, p = [], s = 0; s <= g; s++) {
- var u = s * n;
- p.push(r(d * Math.cos(u + e) + c.x, d * Math.sin(u + e) + c.y))
- }
- h && p.push(r(c.x, c.y));
- c = new f.Fs(f.Yg.Bs);
- c.zg = p;
- c.lineWidth = k;
- c.Tr =
- m;
- c.TP = !0;
- c.tu = !0;
- this.cc.push(c)
- },
- D_: function(c, d, e, g, h, k) {
- h = h || this.ig;
- k = k || this.rh();
- null == k.a && (k.a = 255);
- for (var m = [], n = 0, p = 0; p < g; p++) m.push(r(Math.pow(1 - n, 2) * c.x + 2 * (1 - n) * n * d.x + n * n * e.x, Math.pow(1 - n, 2) * c.y + 2 * (1 - n) * n * d.y + n * n * e.y)), n += 1 / g;
- m.push(r(e.x, e.y));
- c = new f.Fs(f.Yg.Bs);
- c.zg = m;
- c.lineWidth = h;
- c.Tr = k;
- c.tu = !0;
- c.lineCap = "round";
- this.cc.push(c)
- },
- z_: function(c, d, e, g, h, k, m) {
- k = k || this.ig;
- m = m || this.rh();
- null == m.a && (m.a = 255);
- for (var n = [], p = 0, s = 0; s < h; s++) n.push(r(Math.pow(1 - p, 3) * c.x + 3 * Math.pow(1 - p, 2) *
- p * d.x + 3 * (1 - p) * p * p * e.x + p * p * p * g.x, Math.pow(1 - p, 3) * c.y + 3 * Math.pow(1 - p, 2) * p * d.y + 3 * (1 - p) * p * p * e.y + p * p * p * g.y)), p += 1 / h;
- n.push(r(g.x, g.y));
- c = new f.Fs(f.Yg.Bs);
- c.zg = n;
- c.lineWidth = k;
- c.Tr = m;
- c.tu = !0;
- c.lineCap = "round";
- this.cc.push(c)
- },
- x_: function(c, d, e, g) {
- this.px(c, 0.5, d, e, g)
- },
- px: function(c, d, e, g, h) {
- g = g || this.ig;
- h = h || this.rh();
- null == h.a && (h.a = 255);
- for (var k = [], m, n, p = 1 / c.length, s = 0; s < e + 1; s++) n = s / e, 1 == n ? (m = c.length - 1, n = 1) : (m = 0 | n / p, n = (n - p * m) / p), m = f.a_(f.tg(c, m - 1), f.tg(c, m - 0), f.tg(c, m + 1), f.tg(c, m + 2), d, n), k.push(m);
- c = new f.Fs(f.Yg.Bs);
- c.zg = k;
- c.lineWidth = g;
- c.Tr = h;
- c.tu = !0;
- c.lineCap = "round";
- this.cc.push(c)
- },
- A_: function(c, d, e) {
- e = e || this.rh();
- null == e.a && (e.a = 255);
- var g = new f.Fs(f.Yg.w7);
- g.zg = [c];
- g.lineWidth = d;
- g.fillColor = e;
- this.cc.push(g)
- },
- eya: function(c, d, e) {
- if (c && 0 != c.length) {
- e = e || this.rh();
- null == e.a && (e.a = 255);
- for (var g = 0, h = c.length; g < h; g++) this.A_(c[g], d, e)
- }
- },
- F_: function(c, d, e, g) {
- e = e || this.ig;
- g = g || this.rh();
- null == g.a && (g.a = 255);
- var h = new f.Fs(f.Yg.Bs);
- h.zg = [c, d];
- h.lineWidth = 2 * e;
- h.Tr = g;
- h.tu = !0;
- h.lineCap = "round";
- this.cc.push(h)
- },
- hya: function(c, d, e, g) {
- e = e || this.ig;
- g = g || this.rh();
- null == g.a && (g.a = 255);
- var h = new f.Fs(f.Yg.Bs);
- h.zg = c;
- h.fillColor = d;
- h.lineWidth = e;
- h.Tr = g;
- h.TP = !0;
- h.tu = !0;
- h.lineCap = "round";
- d && (h.S0 = !0);
- this.cc.push(h)
- },
- Sf: function(c, d, e, g) {
- for (var h = [], k = 0; k < c.length; k++) h.push(r(c[k].x, c[k].y));
- return this.hya(h, d, e, g)
- },
- ma: function(c) {
- c = c || f.s;
- this.B && this.B.src == f.SRC_ALPHA && this.B.ha == f.ONE && (c.globalCompositeOperation = "lighter");
- for (var d = 0; d < this.cc.length; d++) {
- var e = this.cc[d];
- switch (e.type) {
- case f.Yg.w7:
- this.dra(c,
- e);
- break;
- case f.Yg.Soa:
- this.fra(c, e);
- break;
- case f.Yg.Bs:
- this.era(c, e)
- }
- }
- },
- dra: function(c, d) {
- var e = d.fillColor,
- g = d.zg[0],
- h = d.lineWidth,
- k = f.view.ka,
- m = f.view.ra;
- c.fillStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + e.a / 255 + ")";
- c.beginPath();
- c.arc(g.x * k, -g.y * m, h * k, 0, 2 * Math.PI, !1);
- c.closePath();
- c.fill()
- },
- fra: function(c, d) {
- var e = d.Tr,
- g = d.zg[0],
- h = d.zg[1],
- k = d.lineWidth,
- m = d.lineCap,
- n = f.view.ka,
- p = f.view.ra;
- c.strokeStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + e.a / 255 + ")";
- c.lineWidth = k * n;
- c.beginPath();
- c.lineCap = m;
- c.moveTo(g.x * n, -g.y * p);
- c.lineTo(h.x * n, -h.y * p);
- c.stroke()
- },
- era: function(c, d) {
- var e = d.zg,
- g = d.lineCap,
- h = d.fillColor,
- k = d.lineWidth,
- m = d.Tr,
- n = d.TP,
- p = d.S0,
- s = d.tu;
- if (null != e) {
- var u = e[0],
- v = f.view.ka,
- z = f.view.ra;
- c.lineCap = g;
- h && (c.fillStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")");
- k && (c.lineWidth = k * v);
- m && (c.strokeStyle = "rgba(" + (0 | m.r) + "," + (0 | m.g) + "," + (0 | m.b) + "," + m.a / 255 + ")");
- c.beginPath();
- c.moveTo(u.x * v, -u.y * z);
- g = 1;
- for (h = e.length; g < h; g++) c.lineTo(e[g].x * v, -e[g].y * z);
- n && c.closePath();
- p && c.fill();
- s && c.stroke()
- }
- },
- clear: function() {
- this.cc.length = 0
- }
- });
- f.fla = f.v.extend({
- nz: 0,
- cc: null,
- zr: null,
- tba: null,
- sba: null,
- ig: 1,
- Oj: null,
- B: null,
- Ec: !1,
- ta: "DrawNodeWebGL",
- ck: function() {
- return this.B
- },
- ce: function(c, d) {
- void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.ha = d)
- },
- ctor: function() {
- f.v.prototype.ctor.call(this);
- this.cc = [];
- this.B = new f.Um(f.Mc, f.Lc);
- this.Oj = f.color(255, 255, 255, 255);
- this.j()
- },
- j: function() {
- return f.v.prototype.j.call(this) ? (this.shaderProgram = f.xg.be(f.c7), this.lF(64), this.tba = f.s.createBuffer(), this.Ec = !0) : !1
- },
- Ju: function(c) {
- this.ig =
- c
- },
- rAa: function() {
- return this.ig
- },
- wj: function(c) {
- var d = this.Oj;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- d.a = c.a
- },
- rh: function() {
- return f.color(this.Oj.r, this.Oj.g, this.Oj.b, this.Oj.a)
- },
- E_: function(c, d, e, g, h) {
- g = g || this.ig;
- h = h || this.rh();
- null == h.a && (h.a = 255);
- c = [c, r(d.x, c.y), d, r(c.x, d.y)];
- null == e ? this.OL(c, g, h, !0) : this.Sf(c, e, g, h)
- },
- y_: function(c, d, e, g, h, k, m) {
- k = k || this.ig;
- m = m || this.rh();
- null == m.a && (m.a = 255);
- var n = 2 * Math.PI / g,
- p = [],
- s;
- for (s = 0; s <= g; s++) {
- var u = s * n;
- p.push(r(d * Math.cos(u + e) + c.x, d * Math.sin(u + e) + c.y))
- }
- h && p.push(r(c.x,
- c.y));
- k *= 0.5;
- s = 0;
- for (c = p.length; s < c - 1; s++) this.F_(p[s], p[s + 1], k, m)
- },
- D_: function(c, d, e, g, h, k) {
- h = h || this.ig;
- k = k || this.rh();
- null == k.a && (k.a = 255);
- for (var m = [], n = 0, p = 0; p < g; p++) m.push(r(Math.pow(1 - n, 2) * c.x + 2 * (1 - n) * n * d.x + n * n * e.x, Math.pow(1 - n, 2) * c.y + 2 * (1 - n) * n * d.y + n * n * e.y)), n += 1 / g;
- m.push(r(e.x, e.y));
- this.OL(m, h, k, !1)
- },
- z_: function(c, d, e, g, h, k, m) {
- k = k || this.ig;
- m = m || this.rh();
- null == m.a && (m.a = 255);
- for (var n = [], p = 0, s = 0; s < h; s++) n.push(r(Math.pow(1 - p, 3) * c.x + 3 * Math.pow(1 - p, 2) * p * d.x + 3 * (1 - p) * p * p * e.x + p * p * p * g.x, Math.pow(1 -
- p, 3) * c.y + 3 * Math.pow(1 - p, 2) * p * d.y + 3 * (1 - p) * p * p * e.y + p * p * p * g.y)), p += 1 / h;
- n.push(r(g.x, g.y));
- this.OL(n, k, m, !1)
- },
- x_: function(c, d, e, g) {
- this.px(c, 0.5, d, e, g)
- },
- px: function(c, d, e, g, h) {
- g = g || this.ig;
- h = h || this.rh();
- null == h.a && (h.a = 255);
- for (var k = [], m, n, p = 1 / c.length, s = 0; s < e + 1; s++) n = s / e, 1 == n ? (m = c.length - 1, n = 1) : (m = 0 | n / p, n = (n - p * m) / p), m = f.a_(f.tg(c, m - 1), f.tg(c, m - 0), f.tg(c, m + 1), f.tg(c, m + 2), d, n), k.push(m);
- g *= 0.5;
- c = 0;
- for (d = k.length; c < d - 1; c++) this.F_(k[c], k[c + 1], g, h)
- },
- Ht: function() {
- var c = f.s;
- f.wf(f.tv);
- c.bindBuffer(c.ARRAY_BUFFER,
- this.tba);
- this.Ec && (c.bufferData(c.ARRAY_BUFFER, this.zr, c.STREAM_DRAW), this.Ec = !1);
- var d = f.Zg.BYTES_PER_ELEMENT;
- c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, d, 0);
- c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, d, 8);
- c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, d, 12);
- c.drawArrays(c.TRIANGLES, 0, 3 * this.cc.length);
- f.el()
- },
- lF: function(c) {
- var d = this.cc;
- if (d.length + c > this.nz) {
- var e = f.ge.BYTES_PER_ELEMENT;
- this.nz += Math.max(this.nz, c);
- if (null == d || 0 === d.length) this.cc = [], this.zr = new ArrayBuffer(e * this.nz), this.sba = new Uint8Array(this.zr);
- else {
- c = [];
- for (var g = new ArrayBuffer(e * this.nz), h = 0; h < d.length; h++) c[h] = new f.ge(d[h].a, d[h].b, d[h].G, g, h * e);
- this.sba = new Uint8Array(g);
- this.zr = g;
- this.cc = c
- }
- }
- },
- ma: function() {
- f.Fm(this.B.src, this.B.ha);
- this.sd.Ff();
- this.sd.dJ();
- this.Ht()
- },
- A_: function(c, d, e) {
- e = e || this.rh();
- null == e.a && (e.a = 255);
- var g = {
- r: 0 | e.r,
- g: 0 | e.g,
- b: 0 | e.b,
- a: 0 | e.a
- };
- e = {
- k: {
- x: c.x - d,
- y: c.y - d
- },
- D: g,
- t: {
- Da: -1,
- ga: -1
- }
- };
- var h = {
- k: {
- x: c.x - d,
- y: c.y + d
- },
- D: g,
- t: {
- Da: -1,
- ga: 1
- }
- },
- k = {
- k: {
- x: c.x + d,
- y: c.y + d
- },
- D: g,
- t: {
- Da: 1,
- ga: 1
- }
- };
- c = {
- k: {
- x: c.x + d,
- y: c.y - d
- },
- D: g,
- t: {
- Da: 1,
- ga: -1
- }
- };
- this.lF(6);
- this.cc.push(new f.ge(e, h, k, this.zr, this.cc.length * f.ge.BYTES_PER_ELEMENT));
- this.cc.push(new f.ge(e, k, c, this.zr, this.cc.length * f.ge.BYTES_PER_ELEMENT));
- this.Ec = !0
- },
- eya: function(c, d, e) {
- if (c && 0 != c.length) {
- e = e || this.rh();
- null == e.a && (e.a = 255);
- for (var g = 0, h = c.length; g < h; g++) this.A_(c[g], d, e)
- }
- },
- F_: function(c, d, e, g) {
- g = g || this.rh();
- null == g.a && (g.a = 255);
- e = e || 0.5 * this.ig;
- this.lF(18);
- g = {
- r: 0 | g.r,
- g: 0 | g.g,
- b: 0 | g.b,
- a: 0 | g.a
- };
- var h = f.Ni(c);
- d = f.Ni(d);
- c = f.tJ(f.ZC(f.Ke(d, h)));
- var k = f.ZC(c),
- m = f.Ug(c, e);
- e = f.Ug(k,
- e);
- var n = f.Ji(d, f.Ke(m, e)),
- p = f.Ke(d, m),
- s = f.Ji(d, m),
- u = f.Ke(h, m),
- v = f.Ji(h, m),
- z = f.Ke(h, f.Ke(m, e)),
- h = f.Ji(h, f.Ji(m, e)),
- A = f.ge.BYTES_PER_ELEMENT,
- B = this.zr,
- C = this.cc;
- C.push(new f.ge({
- k: f.Ke(d, f.Ji(m, e)),
- D: g,
- t: f.Pb(f.Dl(f.Ji(c, k)))
- }, {
- k: n,
- D: g,
- t: f.Pb(f.Ke(c, k))
- }, {
- k: p,
- D: g,
- t: f.Pb(f.Dl(c))
- }, B, C.length * A));
- C.push(new f.ge({
- k: s,
- D: g,
- t: f.Pb(c)
- }, {
- k: n,
- D: g,
- t: f.Pb(f.Ke(c, k))
- }, {
- k: p,
- D: g,
- t: f.Pb(f.Dl(c))
- }, B, C.length * A));
- C.push(new f.ge({
- k: s,
- D: g,
- t: f.Pb(c)
- }, {
- k: u,
- D: g,
- t: f.Pb(f.Dl(c))
- }, {
- k: p,
- D: g,
- t: f.Pb(f.Dl(c))
- }, B, C.length * A));
- C.push(new f.ge({
- k: s,
- D: g,
- t: f.Pb(c)
- }, {
- k: u,
- D: g,
- t: f.Pb(f.Dl(c))
- }, {
- k: v,
- D: g,
- t: f.Pb(c)
- }, B, C.length * A));
- C.push(new f.ge({
- k: z,
- D: g,
- t: f.Pb(f.Ke(k, c))
- }, {
- k: u,
- D: g,
- t: f.Pb(f.Dl(c))
- }, {
- k: v,
- D: g,
- t: f.Pb(c)
- }, B, C.length * A));
- C.push(new f.ge({
- k: z,
- D: g,
- t: f.Pb(f.Ke(k, c))
- }, {
- k: h,
- D: g,
- t: f.Pb(f.Ji(c, k))
- }, {
- k: v,
- D: g,
- t: f.Pb(c)
- }, B, C.length * A));
- this.Ec = !0
- },
- Sf: function(c, d, e, g) {
- if (null == d) this.OL(c, e, g, !0);
- else {
- null == d.a && (d.a = 255);
- null == g.a && (g.a = 255);
- e = e || this.ig;
- e *= 0.5;
- d = {
- r: 0 | d.r,
- g: 0 | d.g,
- b: 0 | d.b,
- a: 0 | d.a
- };
- g = {
- r: 0 | g.r,
- g: 0 | g.g,
- b: 0 | g.b,
- a: 0 | g.a
- };
- var h = [],
- k, m, n, p, s = c.length;
- for (k = 0; k < s; k++) {
- m = f.Ni(c[(k - 1 + s) % s]);
- n = f.Ni(c[k]);
- p = f.Ni(c[(k + 1) % s]);
- var u = f.tJ(f.ZC(f.Ke(n, m)));
- n = f.tJ(f.ZC(f.Ke(p, n)));
- h[k] = {
- offset: f.Ug(f.Ji(u, n), 1 / (f.Mia(u, n) + 1)),
- Xr: n
- }
- }
- u = 0 < e;
- this.lF(3 * (3 * s - 2));
- var v = f.ge.BYTES_PER_ELEMENT,
- z = this.zr,
- A = this.cc,
- B = !1 == u ? 0.5 : 0;
- for (k = 0; k < s - 2; k++) m = f.Ke(f.Ni(c[0]), f.Ug(h[0].offset, B)), n = f.Ke(f.Ni(c[k + 1]), f.Ug(h[k + 1].offset, B)), p = f.Ke(f.Ni(c[k + 2]), f.Ug(h[k + 2].offset, B)), A.push(new f.ge({
- k: m,
- D: d,
- t: f.Pb({
- x: 0,
- y: 0
- })
- }, {
- k: n,
- D: d,
- t: f.Pb({
- x: 0,
- y: 0
- })
- }, {
- k: p,
- D: d,
- t: f.Pb({
- x: 0,
- y: 0
- })
- }, z, A.length * v));
- for (k = 0; k < s; k++) {
- B = (k + 1) % s;
- m = f.Ni(c[k]);
- n = f.Ni(c[B]);
- p = h[k].Xr;
- var C = h[k].offset,
- G = h[B].offset,
- B = u ? f.Ke(m, f.Ug(C, e)) : f.Ke(m, f.Ug(C, 0.5)),
- L = u ? f.Ke(n, f.Ug(G, e)) : f.Ke(n, f.Ug(G, 0.5));
- m = u ? f.Ji(m, f.Ug(C, e)) : f.Ji(m, f.Ug(C, 0.5));
- n = u ? f.Ji(n, f.Ug(G, e)) : f.Ji(n, f.Ug(G, 0.5));
- u ? (A.push(new f.ge({
- k: B,
- D: g,
- t: f.Pb(f.Dl(p))
- }, {
- k: L,
- D: g,
- t: f.Pb(f.Dl(p))
- }, {
- k: n,
- D: g,
- t: f.Pb(p)
- }, z, A.length * v)), A.push(new f.ge({
- k: B,
- D: g,
- t: f.Pb(f.Dl(p))
- }, {
- k: m,
- D: g,
- t: f.Pb(p)
- }, {
- k: n,
- D: g,
- t: f.Pb(p)
- },
- z, A.length * v))) : (A.push(new f.ge({
- k: B,
- D: d,
- t: f.Pb({
- x: 0,
- y: 0
- })
- }, {
- k: L,
- D: d,
- t: f.Pb({
- x: 0,
- y: 0
- })
- }, {
- k: n,
- D: d,
- t: f.Pb(p)
- }, z, A.length * v)), A.push(new f.ge({
- k: B,
- D: d,
- t: f.Pb({
- x: 0,
- y: 0
- })
- }, {
- k: m,
- D: d,
- t: f.Pb(p)
- }, {
- k: n,
- D: d,
- t: f.Pb(p)
- }, z, A.length * v)))
- }
- this.Ec = !0
- }
- },
- OL: function(c, d, e, g) {
- d = d || this.ig;
- e = e || this.Oj;
- null == e.a && (e.a = 255);
- d *= 0.5;
- if (!(0 >= d)) {
- e = {
- r: 0 | e.r,
- g: 0 | e.g,
- b: 0 | e.b,
- a: 0 | e.a
- };
- var h = [],
- k, m, n, p, s = c.length;
- for (k = 0; k < s; k++) {
- m = f.Ni(c[(k - 1 + s) % s]);
- n = f.Ni(c[k]);
- p = f.Ni(c[(k + 1) % s]);
- var u = f.tJ(f.ZC(f.Ke(n, m)));
- n = f.tJ(f.ZC(f.Ke(p,
- n)));
- h[k] = {
- offset: f.Ug(f.Ji(u, n), 1 / (f.Mia(u, n) + 1)),
- Xr: n
- }
- }
- this.lF(3 * (3 * s - 2));
- p = f.ge.BYTES_PER_ELEMENT;
- var u = this.zr,
- v = this.cc;
- g = g ? s : s - 1;
- for (k = 0; k < g; k++) {
- var z = (k + 1) % s;
- m = f.Ni(c[k]);
- n = f.Ni(c[z]);
- var A = h[k].Xr,
- B = h[k].offset,
- z = h[z].offset,
- C = f.Ke(m, f.Ug(B, d));
- m = f.Ji(m, f.Ug(B, d));
- B = f.Ji(n, f.Ug(z, d));
- v.push(new f.ge({
- k: C,
- D: e,
- t: f.Pb(f.Dl(A))
- }, {
- k: f.Ke(n, f.Ug(z, d)),
- D: e,
- t: f.Pb(f.Dl(A))
- }, {
- k: B,
- D: e,
- t: f.Pb(A)
- }, u, v.length * p));
- v.push(new f.ge({
- k: C,
- D: e,
- t: f.Pb(f.Dl(A))
- }, {
- k: m,
- D: e,
- t: f.Pb(A)
- }, {
- k: B,
- D: e,
- t: f.Pb(A)
- }, u, v.length *
- p))
- }
- this.Ec = !0
- }
- },
- clear: function() {
- this.cc.length = 0;
- this.Ec = !0
- }
- });
- f.Yg = f.K == f.na ? f.fla : f.ela;
- f.Yg.create = function() {
- return new f.Yg
- };
- f.Fs = function(c) {
- this.type = c;
- this.fillColor = this.zg = null;
- this.lineWidth = 0;
- this.Tr = null;
- this.lineCap = "butt";
- this.tu = this.S0 = this.TP = !1
- };
- f.Yg.w7 = 0;
- f.Yg.Soa = 1;
- f.Yg.Bs = 2;
- f.ly = -1;
- f.wha = function(c, d) {
- c.shaderProgram = d;
- var e = c.children;
- if (e)
- for (var g = 0; g < e.length; g++) f.wha(e[g], d)
- };
- f.Wc = f.v.extend({
- bx: 0,
- Xn: !1,
- Wd: null,
- BF: !1,
- ctor: function(c) {
- f.v.prototype.ctor.call(this);
- this.Wd = null;
- this.bx = 0;
- this.Xn = !1;
- f.Wc.prototype.j.call(this, c || null)
- },
- j: null,
- ta: "ClippingNode",
- xsa: function(c) {
- this.Wd = c;
- this.bx = 1;
- this.Xn = !1;
- f.Wc.tM = !0;
- f.Wc.tM && (f.ly = f.s.getParameter(f.s.STENCIL_BITS), 0 >= f.ly && f.log("Stencil buffer is not enabled."), f.Wc.tM = !1);
- return !0
- },
- wsa: function(c) {
- this.Wd = c;
- this.bx = 1;
- this.Xn = !1
- },
- ba: function() {
- f.v.prototype.ba.call(this);
- this.Wd.ba()
- },
- sj: function() {
- f.v.prototype.sj.call(this);
- this.Wd.sj()
- },
- uh: function() {
- this.Wd.uh();
- f.v.prototype.uh.call(this)
- },
- Ra: function() {
- this.Wd.Ra();
- f.v.prototype.Ra.call(this)
- },
- I: null,
- Uw: function(c) {
- var d = c || f.s;
- if (1 > f.ly) f.v.prototype.I.call(this, c);
- else if (this.Wd && this.Wd.visible)
- if (f.Wc.rn = -1, f.Wc.rn + 1 == f.ly) f.Wc.Vw = !0, f.Wc.Vw && (f.log("Nesting more than " + f.ly + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), f.Wc.Vw = !1), f.v.prototype.I.call(this, c);
- else {
- f.Wc.rn++;
- var e = 1 << f.Wc.rn,
- g = e | e - 1,
- h = d.isEnabled(d.STENCIL_TEST),
- k = d.getParameter(d.STENCIL_WRITEMASK),
- m = d.getParameter(d.STENCIL_FUNC),
- n = d.getParameter(d.STENCIL_REF),
- p = d.getParameter(d.STENCIL_VALUE_MASK),
- s = d.getParameter(d.STENCIL_FAIL),
- u = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL),
- v = d.getParameter(d.STENCIL_PASS_DEPTH_PASS);
- d.enable(d.STENCIL_TEST);
- d.stencilMask(e);
- var z = d.getParameter(d.DEPTH_WRITEMASK);
- d.depthMask(!1);
- d.stencilFunc(d.NEVER, e, e);
- d.stencilOp(this.Xn ? d.REPLACE : d.ZERO, d.KEEP, d.KEEP);
- f.If.H_(r(0, 0), f.Jfa(), f.color(255, 255, 255, 255));
- d.stencilFunc(d.NEVER,
- e, e);
- d.stencilOp(this.Xn ? d.ZERO : d.REPLACE, d.KEEP, d.KEEP);
- if (1 > this.bx) {
- var e = f.xg.be(f.tK),
- A = d.getUniformLocation(e.Bx(), f.g8);
- f.x0(e.Bx());
- e.bJ(A, this.bx);
- f.wha(this.Wd, e)
- }
- f.Rr();
- this.transform();
- this.Wd.I();
- f.Qr();
- d.depthMask(z);
- d.stencilFunc(d.EQUAL, g, g);
- d.stencilOp(d.KEEP, d.KEEP, d.KEEP);
- f.v.prototype.I.call(this, c);
- d.stencilFunc(m, n, p);
- d.stencilOp(s, u, v);
- d.stencilMask(k);
- h || d.disable(d.STENCIL_TEST);
- f.Wc.rn--
- } else this.Xn && f.v.prototype.I.call(this, c)
- },
- Br: function(c) {
- if (this.Wd && this.Wd.visible) {
- c =
- c || f.s;
- var d = c.canvas;
- if (this.Hv() || this.Wd instanceof f.q) {
- var e = f.Wc.AW();
- e.width = d.width;
- e.height = d.height;
- e.getContext("2d").drawImage(d, 0, 0);
- c.save();
- f.v.prototype.I.call(this, c);
- c.globalCompositeOperation = this.Xn ? "destination-out" : "destination-in";
- this.transform(c);
- this.Wd.I();
- c.restore();
- c.save();
- c.setTransform(1, 0, 0, 1, 0, 0);
- c.globalCompositeOperation = "destination-over";
- c.drawImage(e, 0, 0)
- } else {
- var e = this.i,
- g;
- c.save();
- this.transform(c);
- this.Wd.I(c);
- this.Xn && (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());
- c.clip();
- this.Hv(!0);
- var h = e.length;
- if (0 < h) {
- this.kd();
- for (d = 0; d < h; d++)
- if (g = e[d], 0 > g.Ya) g.I(c);
- else break;
- for (this.ma(c); d < h; d++) e[d].I(c)
- } else this.ma(c);
- this.Hv(!1)
- }
- c.restore()
- } else this.Xn && f.v.prototype.I.call(this, c)
- },
- sBa: function() {
- return this.Wd
- },
- yR: null,
- Mua: function(c) {
- this.Wd = c
- },
- Lua: function(c) {
- this.Wd = c;
- var d = f.s;
- !(c instanceof f.q) && c instanceof f.Yg && (c.ma = function() {
- var e = f.view.ka,
- g = f.view.ra;
- d.beginPath();
- for (var h = 0; h < c.cc.length; h++) {
- var k = c.cc[h].zg,
- m = k[0];
- d.moveTo(m.x * e, -m.y * g);
- for (var m = 1, n = k.length; m < n; m++) d.lineTo(k[m].x * e, -k[m].y * g)
- }
- })
- },
- XRa: function() {
- return this.bx
- },
- s2a: function(c) {
- this.bx = c
- },
- HXa: function() {
- return this.Xn
- },
- v3a: function(c) {
- this.Xn = c
- },
- Hv: function(c) {
- if (!0 === c || !1 === c) f.Wc.prototype.BF = c;
- return f.Wc.prototype.BF
- }
- });
- q = f.Wc.prototype;
- f.K === f.na ? (q.j = q.xsa, q.I = q.Uw, q.yR = q.Mua) : (q.j = q.wsa, q.I = q.Br, q.yR = q.Lua);
- f.d(q, "stencil", q.sBa, q.yR);
- f.Wc.tM = null;
- f.Wc.Vw = null;
- f.Wc.rn = null;
- f.Wc.qG = null;
- f.Wc.AW = function() {
- return f.Wc.qG || (f.Wc.qG = document.createElement("canvas"))
- };
- f.Wc.create = function(c) {
- return new f.Wc(c)
- };
- f.Hy = f.N.extend({
- ah: !1,
- np: 0,
- ya: null,
- fa: null,
- nm: null,
- Wz: null,
- Xv: !1,
- sd: null,
- KV: 0,
- Ec: !1,
- ctor: function(c, d, e) {
- f.tV();
- this.ah = !1;
- this.np = 0;
- this.fa = this.ya = null;
- this.nm = r(0, 0);
- this.Wz = null;
- this.Xv = !1;
- this.sd = null;
- this.KV = 0;
- this.Ec = !1;
- void 0 !== c && this.Jp(c, d, e)
- },
- Bi: function() {
- return this.ah
- },
- setActive: function(c) {
- this.ah = c;
- c || (c = f.Q, c.ey(c.mp))
- },
- EVa: function() {
- return this.np
- },
- FHa: function(c) {
- this.np = c
- },
- $za: function() {
- return t(this.ya.width, this.ya.height)
- },
- p3a: function(c) {
- this.ya.width = parseInt(c.width);
- this.ya.height = parseInt(c.height)
- },
- q0: function() {
- return r(this.nm.x, this.nm.y)
- },
- m4a: function(c) {
- this.nm.x = c.x;
- this.nm.y = c.y
- },
- ZXa: function() {
- return this.Xv
- },
- t4a: function(c) {
- this.Xv != c && (this.Xv = c, this.JO())
- },
- Jp: function(c, d, e) {
- if (!d) {
- var g = f.Q.KH(),
- h = f.xs(g.width),
- k = f.xs(g.height),
- m = new Uint8Array(h * k * 4);
- if (!m) return f.log("cocos2d: CCGrid: not enough memory."), !1;
- d = new f.Pa;
- d.su(m, f.Pa.sq, h, k, g);
- if (!d) return f.log("cocos2d: CCGrid: error creating texture"), !1
- }
- this.ah = !1;
- this.np = 0;
- this.ya = c;
- this.fa =
- d;
- this.Xv = e || !1;
- this.nm.x = this.fa.width / c.width;
- this.nm.y = this.fa.height / c.height;
- this.Wz = new f.Lla;
- if (!this.Wz) return !1;
- this.Wz.WBa(this.fa);
- this.sd = f.xg.be(f.jE);
- this.JO();
- return !0
- },
- dx: function() {
- this.KV = f.Q.mp;
- this.qGa();
- this.Wz.Ewa(this.fa)
- },
- ax: function(c) {
- this.Wz.Yva(this.fa);
- f.Q.ey(this.KV);
- if (c.yx().R0()) {
- var d = c.Bp();
- f.bC(d.x, d.y);
- c.yx().gI();
- f.bC(-d.x, -d.y)
- }
- f.Ai(this.fa);
- this.JZ()
- },
- JZ: function() {
- f.log("cc.GridBase.blit(): Shall be overridden in subclass.")
- },
- PQ: function() {
- f.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
- },
- JO: function() {
- f.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
- },
- qGa: function() {
- var c = f.Q.KH();
- f.s.viewport(0, 0, c.width, c.height);
- f.Lp(f.nq);
- f.$B();
- var d = new f.Ma;
- f.$0(d, 0, c.width, 0, c.height, -1, 1);
- f.aC(d);
- f.Lp(f.mq);
- f.$B();
- f.yha()
- }
- });
- f.Hy.create = function(c, d, e) {
- return new f.Hy(c, d, e)
- };
- f.SS = f.Hy.extend({
- pm: null,
- ec: null,
- hr: null,
- Tb: null,
- Uk: null,
- rg: null,
- Nk: null,
- ctor: function(c, d, e) {
- f.Hy.prototype.ctor.call(this);
- this.Nk = this.rg = this.Uk = this.Tb = this.hr = this.ec = this.pm = null;
- void 0 !== c && this.Jp(c, d, e)
- },
- Oia: function(c) {
- c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.vertex() : Numbers must be integers");
- c = 0 | 3 * (c.x * (this.ya.height + 1) + c.y);
- var d = this.ec;
- return new f.Oe(d[c], d[c + 1], d[c + 2])
- },
- zf: function(c) {
- c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.originalVertex() : Numbers must be integers");
- c = 0 | 3 * (c.x * (this.ya.height + 1) + c.y);
- var d = this.hr;
- return new f.Oe(d[c], d[c + 1], d[c + 2])
- },
- Ah: function(c, d) {
- c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.setVertex() : Numbers must be integers");
- var e = 0 | 3 * (c.x * (this.ya.height + 1) + c.y),
- g = this.ec;
- g[e] = d.x;
- g[e + 1] = d.y;
- g[e + 2] = d.z;
- this.Ec = !0
- },
- JZ: function() {
- var c = this.ya.width * this.ya.height;
- f.wf(f.Gh | f.Wy);
- this.sd.Ff();
- this.sd.dJ();
- var d = f.s,
- e = this.Ec;
- d.bindBuffer(d.ARRAY_BUFFER, this.rg);
- e && d.bufferData(d.ARRAY_BUFFER, this.ec, d.DYNAMIC_DRAW);
- d.vertexAttribPointer(f.Oc,
- 3, d.FLOAT, !1, 0, 0);
- d.bindBuffer(d.ARRAY_BUFFER, this.Uk);
- e && d.bufferData(d.ARRAY_BUFFER, this.pm, d.DYNAMIC_DRAW);
- d.vertexAttribPointer(f.$g, 2, d.FLOAT, !1, 0, 0);
- d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Nk);
- e && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Tb, d.STATIC_DRAW);
- d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0);
- e && (this.Ec = !1);
- f.el()
- },
- PQ: function() {
- if (0 < this.np) {
- for (var c = this.hr, d = this.ec, e = 0, g = this.ec.length; e < g; e++) c[e] = d[e];
- --this.np
- }
- },
- JO: function() {
- var c = f.s,
- d = this.fa.pixelsWidth,
- e = this.fa.pixelsHeight,
- g = this.fa.m.height,
- h = this.ya,
- k = (h.width + 1) * (h.height + 1);
- this.ec = new Float32Array(3 * k);
- this.pm = new Float32Array(2 * k);
- this.Tb = new Uint16Array(h.width * h.height * 6);
- this.rg && c.deleteBuffer(this.rg);
- this.rg = c.createBuffer();
- this.Uk && c.deleteBuffer(this.Uk);
- this.Uk = c.createBuffer();
- this.Nk && c.deleteBuffer(this.Nk);
- this.Nk = c.createBuffer();
- for (var m, n, p = this.Tb, s = this.pm, u = this.Xv, v = this.ec, k = 0; k < h.width; ++k)
- for (m = 0; m < h.height; ++m) {
- var z = m * h.width + k;
- n = k * this.nm.x;
- var A = n + this.nm.x,
- B = m * this.nm.y,
- C = B + this.nm.y,
- G = k * (h.height + 1) + m,
- L = (k + 1) * (h.height + 1) + m,
- O = (k + 1) * (h.height + 1) + (m + 1),
- R = k * (h.height + 1) + (m + 1);
- p[6 * z] = G;
- p[6 * z + 1] = L;
- p[6 * z + 2] = R;
- p[6 * z + 3] = L;
- p[6 * z + 4] = O;
- p[6 * z + 5] = R;
- var z = [3 * G, 3 * L, 3 * O, 3 * R],
- M = [{
- x: n,
- y: B,
- z: 0
- }, {
- x: A,
- y: B,
- z: 0
- }, {
- x: A,
- y: C,
- z: 0
- }, {
- x: n,
- y: C,
- z: 0
- }],
- G = [2 * G, 2 * L, 2 * O, 2 * R],
- A = [r(n, B), r(A, B), r(A, C), r(n, C)];
- for (n = 0; 4 > n; ++n) v[z[n]] = M[n].x, v[z[n] + 1] = M[n].y, v[z[n] + 2] = M[n].z, s[G[n]] = A[n].x / d, s[G[n] + 1] = u ? (g - A[n].y) / e : A[n].y / e
- }
- this.hr = new Float32Array(this.ec);
- c.bindBuffer(c.ARRAY_BUFFER, this.rg);
- c.bufferData(c.ARRAY_BUFFER,
- this.ec, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ARRAY_BUFFER, this.Uk);
- c.bufferData(c.ARRAY_BUFFER, this.pm, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Nk);
- c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW);
- this.Ec = !0
- }
- });
- f.SS.create = function(c, d, e) {
- return new f.SS(c, d, e)
- };
- f.iU = f.Hy.extend({
- pm: null,
- ec: null,
- hr: null,
- Tb: null,
- Uk: null,
- rg: null,
- Nk: null,
- ctor: function(c, d, e) {
- f.Hy.prototype.ctor.call(this);
- this.Nk = this.rg = this.Uk = this.Tb = this.hr = this.ec = this.pm = null;
- void 0 !== c && this.Jp(c, d, e)
- },
- uia: function(c) {
- c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.tile() : Numbers must be integers");
- c = 12 * (this.ya.height * c.x + c.y);
- var d = this.ec;
- return new f.oK(new f.Oe(d[c], d[c + 1], d[c + 2]), new f.Oe(d[c + 3], d[c + 4], d[c + 5]), new f.Oe(d[c + 6], d[c + 7], d[c + 8]), new f.Oe(d[c + 9], d[c + 10], d[c + 11]))
- },
- kl: function(c) {
- c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
- c = 12 * (this.ya.height * c.x + c.y);
- var d = this.hr;
- return new f.oK(new f.Oe(d[c], d[c + 1], d[c + 2]), new f.Oe(d[c + 3], d[c + 4], d[c + 5]), new f.Oe(d[c + 6], d[c + 7], d[c + 8]), new f.Oe(d[c + 9], d[c + 10], d[c + 11]))
- },
- yj: function(c, d) {
- c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
- var e = 12 * (this.ya.height * c.x + c.y),
- g = this.ec;
- g[e] = d.T.x;
- g[e + 1] = d.T.y;
- g[e + 2] = d.T.z;
- g[e + 3] = d.aa.x;
- g[e +
- 4] = d.aa.y;
- g[e + 5] = d.aa.z;
- g[e + 6] = d.Z.x;
- g[e + 7] = d.Z.y;
- g[e + 8] = d.Z.z;
- g[e + 9] = d.W.x;
- g[e + 10] = d.W.y;
- g[e + 11] = d.W.z;
- this.Ec = !0
- },
- JZ: function() {
- var c = this.ya.width * this.ya.height;
- this.sd.Ff();
- this.sd.dJ();
- var d = f.s,
- e = this.Ec;
- f.wf(f.Gh | f.Wy);
- d.bindBuffer(d.ARRAY_BUFFER, this.rg);
- e && d.bufferData(d.ARRAY_BUFFER, this.ec, d.DYNAMIC_DRAW);
- d.vertexAttribPointer(f.Oc, 3, d.FLOAT, !1, 0, this.ec);
- d.bindBuffer(d.ARRAY_BUFFER, this.Uk);
- e && d.bufferData(d.ARRAY_BUFFER, this.pm, d.DYNAMIC_DRAW);
- d.vertexAttribPointer(f.$g, 2, d.FLOAT, !1,
- 0, this.pm);
- d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Nk);
- e && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Tb, d.STATIC_DRAW);
- d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0);
- e && (this.Ec = !1);
- f.el()
- },
- PQ: function() {
- if (0 < this.np) {
- for (var c = this.ec, d = this.hr, e = 0; e < c.length; e++) d[e] = c[e];
- --this.np
- }
- },
- JO: function() {
- var c = this.fa.pixelsWidth,
- d = this.fa.pixelsHeight,
- e = this.fa.m.height,
- g = this.ya,
- h = g.width * g.height;
- this.ec = new Float32Array(12 * h);
- this.pm = new Float32Array(8 * h);
- this.Tb = new Uint16Array(6 * h);
- var k = f.s;
- this.rg && k.deleteBuffer(this.rg);
- this.rg = k.createBuffer();
- this.Uk && k.deleteBuffer(this.Uk);
- this.Uk = k.createBuffer();
- this.Nk && k.deleteBuffer(this.Nk);
- this.Nk = k.createBuffer();
- var m, n, p = 0,
- s = this.nm,
- u = this.ec,
- v = this.pm,
- z = this.Xv;
- for (m = 0; m < g.width; m++)
- for (n = 0; n < g.height; n++) {
- var A = m * s.x,
- B = A + s.x,
- C = n * s.y,
- G = C + s.y;
- u[12 * p] = A;
- u[12 * p + 1] = C;
- u[12 * p + 2] = 0;
- u[12 * p + 3] = B;
- u[12 * p + 4] = C;
- u[12 * p + 5] = 0;
- u[12 * p + 6] = A;
- u[12 * p + 7] = G;
- u[12 * p + 8] = 0;
- u[12 * p + 9] = B;
- u[12 * p + 10] = G;
- u[12 * p + 11] = 0;
- var L = C,
- O = G;
- z && (L = e - C, O = e - G);
- v[8 * p] = A / c;
- v[8 * p + 1] =
- L / d;
- v[8 * p + 2] = B / c;
- v[8 * p + 3] = L / d;
- v[8 * p + 4] = A / c;
- v[8 * p + 5] = O / d;
- v[8 * p + 6] = B / c;
- v[8 * p + 7] = O / d;
- p++
- }
- c = this.Tb;
- for (m = 0; m < h; m++) c[6 * m + 0] = 4 * m + 0, c[6 * m + 1] = 4 * m + 1, c[6 * m + 2] = 4 * m + 2, c[6 * m + 3] = 4 * m + 1, c[6 * m + 4] = 4 * m + 2, c[6 * m + 5] = 4 * m + 3;
- this.hr = new Float32Array(this.ec);
- k.bindBuffer(k.ARRAY_BUFFER, this.rg);
- k.bufferData(k.ARRAY_BUFFER, this.ec, k.DYNAMIC_DRAW);
- k.bindBuffer(k.ARRAY_BUFFER, this.Uk);
- k.bufferData(k.ARRAY_BUFFER, this.pm, k.DYNAMIC_DRAW);
- k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.Nk);
- k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.Tb,
- k.DYNAMIC_DRAW);
- this.Ec = !0
- }
- });
- f.iU.create = function(c, d, e) {
- return new f.iU(c, d, e)
- };
- f.Lla = f.N.extend({
- JK: null,
- ep: null,
- eaa: null,
- Vz: null,
- ctor: function() {
- f.tV();
- this.Vz = f.s;
- this.eaa = [0, 0, 0, 0];
- this.ep = null;
- this.JK = this.Vz.createFramebuffer()
- },
- WBa: function(c) {
- var d = this.Vz;
- this.ep = d.getParameter(d.FRAMEBUFFER_BINDING);
- d.bindFramebuffer(d.FRAMEBUFFER, this.JK);
- d.framebufferTexture2D(d.FRAMEBUFFER, d.COLOR_ATTACHMENT0, d.TEXTURE_2D, c.Wh, 0);
- d.checkFramebufferStatus(d.FRAMEBUFFER) != d.FRAMEBUFFER_COMPLETE && f.log("Frame Grabber: could not attach texture to frmaebuffer");
- d.bindFramebuffer(d.FRAMEBUFFER,
- this.ep)
- },
- Ewa: function() {
- var c = this.Vz;
- this.ep = c.getParameter(c.FRAMEBUFFER_BINDING);
- c.bindFramebuffer(c.FRAMEBUFFER, this.JK);
- this.eaa = c.getParameter(c.COLOR_CLEAR_VALUE);
- c.clearColor(0, 0, 0, 0);
- c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
- },
- Yva: function() {
- var c = this.Vz;
- c.bindFramebuffer(c.FRAMEBUFFER, this.ep);
- c.colorMask(!0, !0, !0, !0)
- },
- MQa: function() {
- this.Vz.deleteFramebuffer(this.JK)
- }
- });
- f.uy = -1;
- f.Ag = f.N.extend({
- originalTarget: null,
- target: null,
- tag: f.uy,
- ctor: function() {
- this.target = this.originalTarget = null;
- this.tag = f.uy
- },
- copy: function() {
- f.log("copy is deprecated. Please use clone instead.");
- return this.p()
- },
- p: function() {
- var c = new f.Ag;
- c.originalTarget = null;
- c.target = null;
- c.tag = this.tag;
- return c
- },
- gk: function() {
- return !0
- },
- R: function(c) {
- this.target = this.originalTarget = c
- },
- stop: function() {
- this.target = null
- },
- step: function() {
- f.log("[Action step]. override me")
- },
- update: function() {
- f.log("[Action update]. override me")
- },
- bea: function() {
- return this.target
- },
- ZI: function(c) {
- this.target = c
- },
- XUa: function() {
- return this.originalTarget
- },
- P3a: function(c) {
- this.originalTarget = c
- },
- Em: function() {
- return this.tag
- },
- Nm: function(c) {
- this.tag = c
- },
- OQ: function() {},
- wh: function() {}
- });
- f.Ag.create = function() {
- return new f.Ag
- };
- f.lq = f.Ag.extend({
- C: 0,
- ctor: function() {
- f.Ag.prototype.ctor.call(this);
- this.C = 0
- },
- pu: function() {
- return this.C * (this.ne || 1)
- },
- Ei: function(c) {
- this.C = c
- },
- reverse: function() {
- f.log("cocos2d: FiniteTimeAction#reverse: Implement me");
- return null
- },
- p: function() {
- return new f.lq
- }
- });
- f.lE = f.Ag.extend({
- ti: 0,
- Gc: null,
- ctor: function(c, d) {
- f.Ag.prototype.ctor.call(this);
- this.ti = 0;
- this.Gc = null;
- c && this.Fa(c, d)
- },
- tP: function() {
- return this.ti
- },
- Hi: function(c) {
- this.ti = c
- },
- Fa: function(c, d) {
- if (!c) throw "cc.Speed.initWithAction(): action must be non nil";
- this.Gc = c;
- this.ti = d;
- return !0
- },
- p: function() {
- var c = new f.lE;
- c.Fa(this.Gc.p(), this.ti);
- return c
- },
- R: function(c) {
- f.Ag.prototype.R.call(this, c);
- this.Gc.R(c)
- },
- stop: function() {
- this.Gc.stop();
- f.Ag.prototype.stop.call(this)
- },
- step: function(c) {
- this.Gc.step(c *
- this.ti)
- },
- gk: function() {
- return this.Gc.gk()
- },
- reverse: function() {
- return f.lE.create(this.Gc.reverse(), this.ti)
- },
- cha: function(c) {
- this.Gc != c && (this.Gc = c)
- },
- c0: function() {
- return this.Gc
- }
- });
- f.lE.create = function(c, d) {
- return new f.lE(c, d)
- };
- f.cK = f.Ag.extend({
- Oz: null,
- lz: !1,
- hL: !1,
- nM: null,
- rF: null,
- Fx: 0,
- Tx: 0,
- my: 0,
- fx: 0,
- oZ: null,
- ctor: function(c, d) {
- f.Ag.prototype.ctor.call(this);
- this.Oz = null;
- this.hL = this.lz = !1;
- this.rF = this.nM = null;
- this.fx = this.my = this.Tx = this.Fx = 0;
- this.oZ = x(0, 0, 0, 0);
- c && (d ? this.YB(c, d) : this.YB(c))
- },
- p: function() {
- var c = new f.cK,
- d = this.oZ;
- c.YB(this.Oz, new f.Qy(d.x, d.y, d.width, d.height));
- return c
- },
- xXa: function() {
- return this.lz
- },
- F2a: function(c) {
- this.lz = c
- },
- YB: function(c, d) {
- if (!c) throw "cc.Follow.initWithAction(): followedNode must be non nil";
- d = d || x(0, 0, 0, 0);
- this.Oz = c;
- this.oZ = d;
- this.lz = !f.gG(d);
- this.hL = !1;
- var e = f.Q.Y;
- this.rF = r(e.width, e.height);
- this.nM = f.Up(this.rF, 0.5);
- this.lz && (this.Fx = -(d.x + d.width - this.rF.x), this.Tx = -d.x, this.my = -d.y, this.fx = -(d.y + d.height - this.rF.y), this.Tx < this.Fx && (this.Tx = this.Fx = (this.Fx + this.Tx) / 2), this.my < this.fx && (this.my = this.fx = (this.my + this.fx) / 2), this.my == this.fx && this.Fx == this.Tx && (this.hL = !0));
- return !0
- },
- step: function() {
- var c = this.Oz.x,
- d = this.Oz.y,
- c = this.nM.x - c,
- d = this.nM.y - d;
- this.lz ? this.hL || this.target.o(f.Rf(c,
- this.Fx, this.Tx), f.Rf(d, this.fx, this.my)) : this.target.o(c, d)
- },
- gk: function() {
- return !this.Oz.running
- },
- stop: function() {
- this.target = null;
- f.Ag.prototype.stop.call(this)
- }
- });
- f.cK.create = function(c, d) {
- return new f.cK(c, d)
- };
- f.M = f.lq.extend({
- Fc: 0,
- dM: !1,
- Xl: null,
- ne: 1,
- hG: !1,
- IA: !1,
- ti: 1,
- tG: !1,
- ctor: function(c) {
- this.ne = this.ti = 1;
- this.hG = !1;
- this.MAX_VALUE = 2;
- this.tG = this.IA = !1;
- f.lq.prototype.ctor.call(this);
- void 0 !== c && this.f(c)
- },
- HTa: function() {
- return this.Fc
- },
- f: function(c) {
- this.C = 0 === c ? f.aK : c;
- this.Fc = 0;
- return this.dM = !0
- },
- gk: function() {
- return this.Fc >= this.C
- },
- zb: function(c) {
- c.hG = this.hG;
- c.ti = this.ti;
- c.ne = this.ne;
- c.Xl = this.Xl;
- c.tG = this.tG;
- c.IA = this.IA
- },
- si: function(c) {
- if (this.Xl) {
- c.Xl = [];
- for (var d = 0; d < this.Xl.length; d++) c.Xl.push(this.Xl[d].reverse())
- }
- },
- p: function() {
- var c = new f.M(this.C);
- this.zb(c);
- return c
- },
- sa: function(c) {
- this.Xl ? this.Xl.length = 0 : this.Xl = [];
- for (var d = 0; d < arguments.length; d++) this.Xl.push(arguments[d]);
- return this
- },
- Eg: function(c) {
- var d = this.Xl;
- if (!d || 0 === d.length) return c;
- for (var e = 0, g = d.length; e < g; e++) c = d[e].sa(c);
- return c
- },
- step: function(c) {
- this.dM ? (this.dM = !1, this.Fc = 0) : this.Fc += c;
- c = this.Fc / (1.192092896E-7 < this.C ? this.C : 1.192092896E-7);
- c = 1 > c ? c : 1;
- this.update(0 < c ? c : 0);
- this.IA && 1 < this.ne && this.gk() && (this.hG || this.ne--, this.R(this.target),
- this.step(this.Fc - this.C))
- },
- R: function(c) {
- f.Ag.prototype.R.call(this, c);
- this.Fc = 0;
- this.dM = !0
- },
- reverse: function() {
- f.log("cc.IntervalAction: reverse not implemented.");
- return null
- },
- Wx: function() {
- f.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
- },
- vx: function() {
- f.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
- return 0
- },
- speed: function(c) {
- if (0 >= c) return f.log("The speed parameter error"), this;
- this.tG = !0;
- this.ti *= c;
- return this
- },
- tP: function() {
- return this.ti
- },
- Hi: function(c) {
- this.ti = c;
- return this
- },
- repeat: function(c) {
- c = Math.round(c);
- if (isNaN(c) || 1 > c) return f.log("The repeat parameter error"), this;
- this.IA = !0;
- this.ne *= c;
- return this
- },
- ZFa: function() {
- this.IA = !0;
- this.ne = this.MAX_VALUE;
- this.hG = !0;
- return this
- }
- });
- f.M.create = function(c) {
- return new f.M(c)
- };
- f.X = f.M.extend({
- Io: null,
- jba: null,
- KF: 0,
- ctor: function(c) {
- f.M.prototype.ctor.call(this);
- this.Io = [];
- var d = c instanceof Array ? c : arguments,
- e = d.length - 1;
- 0 <= e && null == d[e] && f.log("parameters should not be ending with null in Javascript");
- if (0 <= e) {
- for (var g = d[0], h = 1; h < e; h++) d[h] && (g = f.X.yq(g, d[h]));
- this.Dx(g, d[e])
- }
- },
- Dx: function(c, d) {
- if (!c || !d) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil";
- this.f(c.C + d.C);
- this.Io[0] = c;
- this.Io[1] = d;
- return !0
- },
- p: function() {
- var c = new f.X;
- this.zb(c);
- c.Dx(this.Io[0].p(),
- this.Io[1].p());
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.jba = this.Io[0].C / this.C;
- this.KF = -1
- },
- stop: function() {
- -1 !== this.KF && this.Io[this.KF].stop();
- f.Ag.prototype.stop.call(this)
- },
- update: function(c) {
- c = this.Eg(c);
- var d = 0,
- e = this.jba,
- g = this.Io,
- h = this.KF;
- c < e ? (c = 0 !== e ? c / e : 1, 0 === d && 1 === h && (g[1].update(0), g[1].stop())) : (d = 1, c = 1 === e ? 1 : (c - e) / (1 - e), -1 === h && (g[0].R(this.target), g[0].update(1), g[0].stop()), h || (g[0].update(1), g[0].stop()));
- h === d && g[d].gk() || (h !== d && g[d].R(this.target), g[d].update(c),
- this.KF = d)
- },
- reverse: function() {
- var c = f.X.yq(this.Io[1].reverse(), this.Io[0].reverse());
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.X.create = function(c) {
- var d = c instanceof Array ? c : arguments;
- 0 < d.length && null == d[d.length - 1] && f.log("parameters should not be ending with null in Javascript");
- for (var e = d[0], g = 1; g < d.length; g++) d[g] && (e = f.X.yq(e, d[g]));
- return e
- };
- f.X.yq = function(c, d) {
- var e = new f.X;
- e.Dx(c, d);
- return e
- };
- f.gE = f.M.extend({
- ne: 0,
- au: 0,
- gX: 0,
- x8: !1,
- Gc: null,
- ctor: function(c, d) {
- f.M.prototype.ctor.call(this);
- void 0 !== d && this.Fa(c, d)
- },
- Fa: function(c, d) {
- return this.f(c.C * d) ? (this.ne = d, this.Gc = c, c instanceof f.Ch && (this.x8 = !0, this.ne -= 1), this.au = 0, !0) : !1
- },
- p: function() {
- var c = new f.gE;
- this.zb(c);
- c.Fa(this.Gc.p(), this.ne);
- return c
- },
- R: function(c) {
- this.au = 0;
- this.gX = this.Gc.C / this.C;
- f.M.prototype.R.call(this, c);
- this.Gc.R(c)
- },
- stop: function() {
- this.Gc.stop();
- f.Ag.prototype.stop.call(this)
- },
- update: function(c) {
- c = this.Eg(c);
- var d = this.Gc,
- e = this.C,
- g = this.ne,
- h = this.gX;
- if (c >= h) {
- for (; c > h && this.au < g;) d.update(1), this.au++, d.stop(), d.R(this.target), this.gX = h += d.C / e;
- 1 <= c && this.au < g && this.au++;
- this.x8 || (this.au === g ? (d.update(1), d.stop()) : d.update(c - (h - d.C / e)))
- } else d.update(c * g % 1)
- },
- gk: function() {
- return this.au == this.ne
- },
- reverse: function() {
- var c = f.gE.create(this.Gc.reverse(), this.ne);
- this.zb(c);
- this.si(c);
- return c
- },
- cha: function(c) {
- this.Gc != c && (this.Gc = c)
- },
- c0: function() {
- return this.Gc
- }
- });
- f.gE.create = function(c, d) {
- return new f.gE(c, d)
- };
- f.hE = f.M.extend({
- Gc: null,
- ctor: function(c) {
- f.M.prototype.ctor.call(this);
- this.Gc = null;
- c && this.Fa(c)
- },
- Fa: function(c) {
- if (!c) throw "cc.RepeatForever.initWithAction(): action must be non null";
- this.Gc = c;
- return !0
- },
- p: function() {
- var c = new f.hE;
- this.zb(c);
- c.Fa(this.Gc.p());
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.Gc.R(c)
- },
- step: function(c) {
- var d = this.Gc;
- d.step(c);
- d.gk() && (d.R(this.target), d.step(d.Fc - d.C))
- },
- gk: function() {
- return !1
- },
- reverse: function() {
- var c = f.hE.create(this.Gc.reverse());
- this.zb(c);
- this.si(c);
- return c
- },
- cha: function(c) {
- this.Gc != c && (this.Gc = c)
- },
- c0: function() {
- return this.Gc
- }
- });
- f.hE.create = function(c) {
- return new f.hE(c)
- };
- f.fe = f.M.extend({
- gr: null,
- Ar: null,
- ctor: function(c) {
- f.M.prototype.ctor.call(this);
- this.Ar = this.gr = null;
- var d = c instanceof Array ? c : arguments,
- e = d.length - 1;
- 0 <= e && null == d[e] && f.log("parameters should not be ending with null in Javascript");
- if (0 <= e) {
- for (var g = d[0], h = 1; h < e; h++) d[h] && (g = f.fe.yq(g, d[h]));
- this.Dx(g, d[e])
- }
- },
- Dx: function(c, d) {
- if (!c || !d) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null";
- var e = !1,
- g = c.C,
- h = d.C;
- this.f(Math.max(g, h)) && (this.gr = c, this.Ar = d, g > h ? this.Ar = f.X.yq(d, f.Nb.create(g -
- h)) : g < h && (this.gr = f.X.yq(c, f.Nb.create(h - g))), e = !0);
- return e
- },
- p: function() {
- var c = new f.fe;
- this.zb(c);
- c.Dx(this.gr.p(), this.Ar.p());
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.gr.R(c);
- this.Ar.R(c)
- },
- stop: function() {
- this.gr.stop();
- this.Ar.stop();
- f.Ag.prototype.stop.call(this)
- },
- update: function(c) {
- c = this.Eg(c);
- this.gr && this.gr.update(c);
- this.Ar && this.Ar.update(c)
- },
- reverse: function() {
- var c = f.fe.yq(this.gr.reverse(), this.Ar.reverse());
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.fe.create = function(c) {
- var d = c instanceof Array ? c : arguments;
- 0 < d.length && null == d[d.length - 1] && f.log("parameters should not be ending with null in Javascript");
- for (var e = d[0], g = 1; g < d.length; g++) null != d[g] && (e = f.fe.yq(e, d[g]));
- return e
- };
- f.fe.yq = function(c, d) {
- var e = new f.fe;
- e.Dx(c, d);
- return e
- };
- f.pv = f.M.extend({
- PL: 0,
- vG: 0,
- k9: 0,
- WV: 0,
- SA: 0,
- l9: 0,
- ctor: function(c, d, e) {
- f.M.prototype.ctor.call(this);
- void 0 !== d && this.f(c, d, e)
- },
- f: function(c, d, e) {
- return f.M.prototype.f.call(this, c) ? (this.PL = d || 0, this.WV = e || this.PL, !0) : !1
- },
- p: function() {
- var c = new f.pv;
- this.zb(c);
- c.f(this.C, this.PL, this.WV);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- var d = c.rotationX % 360,
- e = this.PL - d;
- 180 < e && (e -= 360); - 180 > e && (e += 360);
- this.vG = d;
- this.k9 = e;
- this.SA = c.rotationY % 360;
- c = this.WV - this.SA;
- 180 < c && (c -= 360); - 180 > c && (c += 360);
- this.l9 = c
- },
- reverse: function() {
- f.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
- },
- update: function(c) {
- c = this.Eg(c);
- this.target && (this.target.rotationX = this.vG + this.k9 * c, this.target.rotationY = this.SA + this.l9 * c)
- }
- });
- f.pv.create = function(c, d, e) {
- return new f.pv(c, d, e)
- };
- f.Ry = f.M.extend({
- bn: 0,
- vG: 0,
- SK: 0,
- SA: 0,
- ctor: function(c, d, e) {
- f.M.prototype.ctor.call(this);
- void 0 !== d && this.f(c, d, e)
- },
- f: function(c, d, e) {
- return f.M.prototype.f.call(this, c) ? (this.bn = d || 0, this.SK = e || this.bn, !0) : !1
- },
- p: function() {
- var c = new f.Ry;
- this.zb(c);
- c.f(this.C, this.bn, this.SK);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.vG = c.rotationX;
- this.SA = c.rotationY
- },
- update: function(c) {
- c = this.Eg(c);
- this.target && (this.target.rotationX = this.vG + this.bn * c, this.target.rotationY = this.SA + this.SK * c)
- },
- reverse: function() {
- var c =
- f.Ry.create(this.C, -this.bn, -this.SK);
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.Ry.create = function(c, d, e) {
- var g = new f.Ry;
- g.f(c, d, e);
- return g
- };
- f.vk = f.M.extend({
- ip: null,
- tf: null,
- Kf: null,
- ctor: function(c, d, e) {
- f.M.prototype.ctor.call(this);
- this.ip = r(0, 0);
- this.tf = r(0, 0);
- this.Kf = r(0, 0);
- void 0 !== d && this.f(c, d, e)
- },
- f: function(c, d, e) {
- return f.M.prototype.f.call(this, c) ? (void 0 !== d.x && (e = d.y, d = d.x), this.ip.x = d, this.ip.y = e, !0) : !1
- },
- p: function() {
- var c = new f.vk;
- this.zb(c);
- c.f(this.C, this.ip);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- var d = c.Vc();
- c = c.Zd();
- this.Kf.x = d;
- this.Kf.y = c;
- this.tf.x = d;
- this.tf.y = c
- },
- update: function(c) {
- c = this.Eg(c);
- if (this.target) {
- var d =
- this.ip.x * c;
- c *= this.ip.y;
- var e = this.tf;
- if (f.SJ) {
- var g = this.target.Zd(),
- h = this.Kf;
- e.x = e.x + this.target.Vc() - h.x;
- e.y = e.y + g - h.y;
- d += e.x;
- c += e.y;
- h.x = d;
- h.y = c;
- this.target.o(d, c)
- } else this.target.o(e.x + d, e.y + c)
- }
- },
- reverse: function() {
- var c = f.vk.create(this.C, r(-this.ip.x, -this.ip.y));
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.vk.create = function(c, d, e) {
- return new f.vk(c, d, e)
- };
- f.Dc = f.vk.extend({
- Kk: null,
- ctor: function(c, d, e) {
- f.vk.prototype.ctor.call(this);
- this.Kk = r(0, 0);
- void 0 !== d && this.f(c, d, e)
- },
- f: function(c, d, e) {
- return f.vk.prototype.f.call(this, c, d, e) ? (void 0 !== d.x && (e = d.y, d = d.x), this.Kk.x = d, this.Kk.y = e, !0) : !1
- },
- p: function() {
- var c = new f.Dc;
- this.zb(c);
- c.f(this.C, this.Kk);
- return c
- },
- R: function(c) {
- f.vk.prototype.R.call(this, c);
- this.ip.x = this.Kk.x - c.Vc();
- this.ip.y = this.Kk.y - c.Zd()
- }
- });
- f.Dc.create = function(c, d, e) {
- return new f.Dc(c, d, e)
- };
- f.uq = f.M.extend({
- og: 0,
- pg: 0,
- LN: 0,
- MN: 0,
- VL: 0,
- WL: 0,
- Mj: 0,
- Nj: 0,
- ctor: function(c, d, e) {
- f.M.prototype.ctor.call(this);
- void 0 !== e && this.f(c, d, e)
- },
- f: function(c, d, e) {
- var g = !1;
- f.M.prototype.f.call(this, c) && (this.VL = d, this.WL = e, g = !0);
- return g
- },
- p: function() {
- var c = new f.uq;
- this.zb(c);
- c.f(this.C, this.VL, this.WL);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.LN = c.skewX % 180;
- this.Mj = this.VL - this.LN;
- 180 < this.Mj && (this.Mj -= 360); - 180 > this.Mj && (this.Mj += 360);
- this.MN = c.skewY % 360;
- this.Nj = this.WL - this.MN;
- 180 < this.Nj &&
- (this.Nj -= 360); - 180 > this.Nj && (this.Nj += 360)
- },
- update: function(c) {
- c = this.Eg(c);
- this.target.skewX = this.LN + this.Mj * c;
- this.target.skewY = this.MN + this.Nj * c
- }
- });
- f.uq.create = function(c, d, e) {
- return new f.uq(c, d, e)
- };
- f.kE = f.uq.extend({
- ctor: function(c, d, e) {
- f.uq.prototype.ctor.call(this);
- void 0 !== e && this.f(c, d, e)
- },
- f: function(c, d, e) {
- var g = !1;
- f.uq.prototype.f.call(this, c, d, e) && (this.og = d, this.pg = e, g = !0);
- return g
- },
- p: function() {
- var c = new f.kE;
- this.zb(c);
- c.f(this.C, this.og, this.pg);
- return c
- },
- R: function(c) {
- f.uq.prototype.R.call(this, c);
- this.Mj = this.og;
- this.Nj = this.pg;
- this.VL = this.LN + this.Mj;
- this.WL = this.MN + this.Nj
- },
- reverse: function() {
- var c = f.kE.create(this.C, -this.og, -this.pg);
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.kE.create = function(c, d, e) {
- var g = new f.kE;
- g && g.f(c, d, e);
- return g
- };
- f.xo = f.M.extend({
- tf: null,
- To: null,
- CF: 0,
- Zq: 0,
- Kf: null,
- ctor: function(c, d, e, g, h) {
- f.M.prototype.ctor.call(this);
- this.tf = r(0, 0);
- this.Kf = r(0, 0);
- this.To = r(0, 0);
- void 0 !== g && this.f(c, d, e, g, h)
- },
- f: function(c, d, e, g, h) {
- return f.M.prototype.f.call(this, c) ? (void 0 === h && (h = g, g = e, e = d.y, d = d.x), this.To.x = d, this.To.y = e, this.CF = g, this.Zq = h, !0) : !1
- },
- p: function() {
- var c = new f.xo;
- this.zb(c);
- c.f(this.C, this.To, this.CF, this.Zq);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- var d = c.Vc();
- c = c.Zd();
- this.Kf.x = d;
- this.Kf.y = c;
- this.tf.x = d;
- this.tf.y = c
- },
- update: function(c) {
- c = this.Eg(c);
- if (this.target) {
- var d = c * this.Zq % 1,
- d = 4 * this.CF * d * (1 - d),
- d = d + this.To.y * c;
- c *= this.To.x;
- var e = this.tf;
- if (f.SJ) {
- var g = this.target.Zd(),
- h = this.Kf;
- e.x = e.x + this.target.Vc() - h.x;
- e.y = e.y + g - h.y;
- c += e.x;
- d += e.y;
- h.x = c;
- h.y = d;
- this.target.o(c, d)
- } else this.target.o(e.x + c, e.y + d)
- }
- },
- reverse: function() {
- var c = f.xo.create(this.C, r(-this.To.x, -this.To.y), this.CF, this.Zq);
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.xo.create = function(c, d, e, g, h) {
- return new f.xo(c, d, e, g, h)
- };
- f.dK = f.xo.extend({
- Kk: null,
- ctor: function(c, d, e, g, h) {
- f.xo.prototype.ctor.call(this);
- this.Kk = r(0, 0);
- void 0 !== g && this.f(c, d, e, g, h)
- },
- f: function(c, d, e, g, h) {
- return f.xo.prototype.f.call(this, c, d, e, g, h) ? (void 0 === h && (e = d.y, d = d.x), this.Kk.x = d, this.Kk.y = e, !0) : !1
- },
- R: function(c) {
- f.xo.prototype.R.call(this, c);
- this.To.x = this.Kk.x - this.tf.x;
- this.To.y = this.Kk.y - this.tf.y
- },
- p: function() {
- var c = new f.dK;
- this.zb(c);
- c.f(this.C, this.Kk, this.CF, this.Zq);
- return c
- }
- });
- f.dK.create = function(c, d, e, g, h) {
- return new f.dK(c, d, e, g, h)
- };
- f.hca = function(c, d, e, g) {
- 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) * e
- };
- f.qs = f.M.extend({
- Fk: null,
- tf: null,
- Kf: null,
- ctor: function(c, d) {
- f.M.prototype.ctor.call(this);
- this.Fk = [];
- this.tf = r(0, 0);
- this.Kf = r(0, 0);
- d && this.f(c, d)
- },
- f: function(c, d) {
- return f.M.prototype.f.call(this, c) ? (this.Fk = d, !0) : !1
- },
- p: function() {
- var c = new f.qs;
- this.zb(c);
- for (var d = [], e = 0; e < this.Fk.length; e++) {
- var g = this.Fk[e];
- d.push(r(g.x, g.y))
- }
- c.f(this.C, d);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- var d = c.Vc();
- c = c.Zd();
- this.Kf.x = d;
- this.Kf.y = c;
- this.tf.x = d;
- this.tf.y = c
- },
- update: function(c) {
- c = this.Eg(c);
- if (this.target) {
- var d = this.Fk,
- e = f.hca(d[0].x, d[1].x, d[2].x, c);
- c = f.hca(d[0].y, d[1].y, d[2].y, c);
- d = this.tf;
- if (f.SJ) {
- var g = this.target.Zd(),
- h = this.Kf;
- d.x = d.x + this.target.Vc() - h.x;
- d.y = d.y + g - h.y;
- e += d.x;
- c += d.y;
- h.x = e;
- h.y = c;
- this.target.o(e, c)
- } else this.target.o(d.x + e, d.y + c)
- }
- },
- reverse: function() {
- var c = this.Fk,
- c = f.qs.create(this.C, [f.Tp(c[1], f.B1(c[2])), f.Tp(c[0], f.B1(c[2])), f.B1(c[2])]);
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.qs.create = function(c, d) {
- return new f.qs(c, d)
- };
- f.zJ = f.qs.extend({
- $N: null,
- ctor: function(c, d) {
- f.qs.prototype.ctor.call(this);
- this.$N = [];
- d && this.f(c, d)
- },
- f: function(c, d) {
- return f.M.prototype.f.call(this, c) ? (this.$N = d, !0) : !1
- },
- p: function() {
- var c = new f.zJ;
- this.zb(c);
- c.f(this.C, this.$N);
- return c
- },
- R: function(c) {
- f.qs.prototype.R.call(this, c);
- c = this.tf;
- var d = this.$N,
- e = this.Fk;
- e[0] = f.gc(d[0], c);
- e[1] = f.gc(d[1], c);
- e[2] = f.gc(d[2], c)
- }
- });
- f.zJ.create = function(c, d) {
- return new f.zJ(c, d)
- };
- f.Db = f.M.extend({
- ka: 1,
- ra: 1,
- xG: 1,
- yG: 1,
- Kz: 0,
- Lz: 0,
- Mj: 0,
- Nj: 0,
- ctor: function(c, d, e) {
- f.M.prototype.ctor.call(this);
- void 0 !== d && this.f(c, d, e)
- },
- f: function(c, d, e) {
- return f.M.prototype.f.call(this, c) ? (this.Kz = d, this.Lz = null != e ? e : d, !0) : !1
- },
- p: function() {
- var c = new f.Db;
- this.zb(c);
- c.f(this.C, this.Kz, this.Lz);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.xG = c.scaleX;
- this.yG = c.scaleY;
- this.Mj = this.Kz - this.xG;
- this.Nj = this.Lz - this.yG
- },
- update: function(c) {
- c = this.Eg(c);
- this.target && (this.target.scaleX = this.xG +
- this.Mj * c, this.target.scaleY = this.yG + this.Nj * c)
- }
- });
- f.Db.create = function(c, d, e) {
- var g = new f.Db;
- g.f(c, d, e);
- return g
- };
- f.Ty = f.Db.extend({
- R: function(c) {
- f.Db.prototype.R.call(this, c);
- this.Mj = this.xG * this.Kz - this.xG;
- this.Nj = this.yG * this.Lz - this.yG
- },
- reverse: function() {
- var c = f.Ty.create(this.C, 1 / this.Kz, 1 / this.Lz);
- this.zb(c);
- this.si(c);
- return c
- },
- p: function() {
- var c = new f.Ty;
- this.zb(c);
- c.f(this.C, this.Kz, this.Lz);
- return c
- }
- });
- f.Ty.create = function(c, d, e) {
- return new f.Ty(c, d, e)
- };
- f.kD = f.M.extend({
- ne: 0,
- jaa: !1,
- ctor: function(c, d) {
- f.M.prototype.ctor.call(this);
- void 0 !== d && this.f(c, d)
- },
- f: function(c, d) {
- return f.M.prototype.f.call(this, c) ? (this.ne = d, !0) : !1
- },
- p: function() {
- var c = new f.kD;
- this.zb(c);
- c.f(this.C, this.ne);
- return c
- },
- update: function(c) {
- c = this.Eg(c);
- if (this.target && !this.gk()) {
- var d = 1 / this.ne;
- this.target.visible = c % d > d / 2
- }
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.jaa = c.visible
- },
- stop: function() {
- this.target.visible = this.jaa;
- f.M.prototype.stop.call(this)
- },
- reverse: function() {
- var c =
- f.kD.create(this.C, this.ne);
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.kD.create = function(c, d) {
- var e = new f.kD;
- e.f(c, d);
- return e
- };
- f.Xc = f.M.extend({
- bB: 0,
- hM: 0,
- ctor: function(c, d) {
- f.M.prototype.ctor.call(this);
- void 0 !== d && this.f(c, d)
- },
- f: function(c, d) {
- return f.M.prototype.f.call(this, c) ? (this.bB = d, !0) : !1
- },
- p: function() {
- var c = new f.Xc;
- this.zb(c);
- c.f(this.C, this.bB);
- return c
- },
- update: function(c) {
- c = this.Eg(c);
- if (this.target.wb) {
- var d = void 0 !== this.hM ? this.hM : 255;
- this.target.opacity = d + (this.bB - d) * c
- }
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.target.wb && (this.hM = c.opacity)
- }
- });
- f.Xc.create = function(c, d) {
- return new f.Xc(c, d)
- };
- f.Fy = f.Xc.extend({
- YX: null,
- reverse: function() {
- var c = new f.Gy;
- c.f(this.C, 0);
- this.zb(c);
- this.si(c);
- return c
- },
- p: function() {
- var c = new f.Fy;
- this.zb(c);
- c.f(this.C, this.bB);
- return c
- },
- R: function(c) {
- this.YX && (this.bB = this.YX.hM);
- f.Xc.prototype.R.call(this, c)
- }
- });
- f.Fy.create = function(c) {
- return new f.Fy(c, 255)
- };
- f.Gy = f.Xc.extend({
- reverse: function() {
- var c = new f.Fy;
- c.YX = this;
- c.f(this.C, 255);
- this.zb(c);
- this.si(c);
- return c
- },
- p: function() {
- var c = new f.Gy;
- this.zb(c);
- c.f(this.C, this.bB);
- return c
- }
- });
- f.Gy.create = function(c) {
- var d = new f.Gy;
- d.f(c, 0);
- return d
- };
- f.Vy = f.M.extend({
- Nf: null,
- Tc: null,
- ctor: function(c, d, e, g) {
- f.M.prototype.ctor.call(this);
- this.Nf = f.color(0, 0, 0);
- this.Tc = f.color(0, 0, 0);
- void 0 !== g && this.f(c, d, e, g)
- },
- f: function(c, d, e, g) {
- return f.M.prototype.f.call(this, c) ? (this.Nf = f.color(d, e, g), !0) : !1
- },
- p: function() {
- var c = new f.Vy;
- this.zb(c);
- var d = this.Nf;
- c.f(this.C, d.r, d.g, d.b);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.target.wb && (this.Tc = this.target.color)
- },
- update: function(c) {
- c = this.Eg(c);
- var d = this.Tc,
- e = this.Nf;
- d && this.target.wb && (this.target.color =
- f.color(d.r + (e.r - d.r) * c, d.g + (e.g - d.g) * c, d.b + (e.b - d.b) * c))
- }
- });
- f.Vy.create = function(c, d, e, g) {
- return new f.Vy(c, d, e, g)
- };
- f.tE = f.M.extend({
- GL: 0,
- FL: 0,
- EL: 0,
- g$: 0,
- f$: 0,
- e$: 0,
- ctor: function(c, d, e, g) {
- f.M.prototype.ctor.call(this);
- void 0 !== g && this.f(c, d, e, g)
- },
- f: function(c, d, e, g) {
- return f.M.prototype.f.call(this, c) ? (this.GL = d, this.FL = e, this.EL = g, !0) : !1
- },
- p: function() {
- var c = new f.tE;
- this.zb(c);
- c.f(this.C, this.GL, this.FL, this.EL);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- c.wb && (c = c.color, this.g$ = c.r, this.f$ = c.g, this.e$ = c.b)
- },
- update: function(c) {
- c = this.Eg(c);
- this.target.wb && (this.target.color = f.color(this.g$ + this.GL * c, this.f$ +
- this.FL * c, this.e$ + this.EL * c))
- },
- reverse: function() {
- var c = f.tE.create(this.C, -this.GL, -this.FL, -this.EL);
- this.zb(c);
- this.si(c);
- return c
- }
- });
- f.tE.create = function(c, d, e, g) {
- return new f.tE(c, d, e, g)
- };
- f.Nb = f.M.extend({
- update: function() {},
- reverse: function() {
- var c = f.Nb.create(this.C);
- this.zb(c);
- this.si(c);
- return c
- },
- p: function() {
- var c = new f.Nb;
- this.zb(c);
- c.f(this.C);
- return c
- }
- });
- f.Nb.create = function(c) {
- return new f.Nb(c)
- };
- f.ov = f.M.extend({
- ir: null,
- ctor: function(c) {
- f.M.prototype.ctor.call(this);
- this.ir = null;
- c && this.Fa(c)
- },
- Fa: function(c) {
- if (!c) throw "cc.ReverseTime.initWithAction(): action must be non null";
- if (c == this.ir) throw "cc.ReverseTime.initWithAction(): the action was already passed in.";
- return f.M.prototype.f.call(this, c.C) ? (this.ir = c, !0) : !1
- },
- p: function() {
- var c = new f.ov;
- this.zb(c);
- c.Fa(this.ir.p());
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.ir.R(c)
- },
- update: function(c) {
- c = this.Eg(c);
- this.ir && this.ir.update(1 -
- c)
- },
- reverse: function() {
- return this.ir.p()
- },
- stop: function() {
- this.ir.stop();
- f.Ag.prototype.stop.call(this)
- }
- });
- f.ov.create = function(c) {
- return new f.ov(c)
- };
- f.gD = f.M.extend({
- Ls: null,
- QF: 0,
- pX: null,
- ZL: 0,
- AY: null,
- ctor: function(c) {
- f.M.prototype.ctor.call(this);
- this.AY = [];
- c && this.wea(c)
- },
- cl: function() {
- return this.Ls
- },
- Xx: function(c) {
- this.Ls = c
- },
- wea: function(c) {
- if (!c) throw "cc.Animate.initWithAnimation(): animation must be non-NULL";
- var d = c.pu();
- if (this.f(d * c.br)) {
- this.QF = 0;
- this.Xx(c);
- this.pX = null;
- this.ZL = 0;
- var e = this.AY,
- g = e.length = 0,
- h = d / c.sp;
- c = c.Ph;
- f.mB(c, f.El);
- for (var k = 0; k < c.length; k++) {
- var m = g * h / d,
- g = g + c[k].Nh;
- e.push(m)
- }
- return !0
- }
- return !1
- },
- p: function() {
- var c =
- new f.gD;
- this.zb(c);
- c.wea(this.Ls.p());
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.Ls.yw && (this.pX = c.Wxa());
- this.ZL = this.QF = 0
- },
- update: function(c) {
- c = this.Eg(c);
- 1 > c && (c *= this.Ls.br, (0 | c) > this.ZL && (this.QF = 0, this.ZL++), c %= 1);
- for (var d = this.Ls.Ph, e = d.length, g = this.AY, h = this.QF; h < e; h++)
- if (g[h] <= c) this.target.Dd(d[h].Ca()), this.QF = h + 1;
- else break
- },
- reverse: function() {
- var c = this.Ls,
- d = c.Ph,
- e = [];
- f.mB(d, f.El);
- if (0 < d.length)
- for (var g = d.length - 1; 0 <= g; g--) {
- var h = d[g];
- if (!h) break;
- e.push(h.p())
- }
- d = f.Yu.create(e,
- c.Nh, c.br);
- d.uR(c.yw);
- c = f.gD.create(d);
- this.zb(c);
- this.si(c);
- return c
- },
- stop: function() {
- this.Ls.yw && this.target && this.target.Dd(this.pX);
- f.Ag.prototype.stop.call(this)
- }
- });
- f.gD.create = function(c) {
- return new f.gD(c)
- };
- f.FK = f.M.extend({
- Qe: null,
- Pz: null,
- ctor: function(c, d) {
- f.M.prototype.ctor.call(this);
- d && this.YB(c, d)
- },
- YB: function(c, d) {
- return this.f(d.C) ? (this.Pz = c, this.Qe = d, !0) : !1
- },
- p: function() {
- var c = new f.FK;
- this.zb(c);
- c.YB(this.Pz, this.Qe.p());
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.Qe.R(this.Pz)
- },
- stop: function() {
- this.Qe.stop()
- },
- update: function(c) {
- c = this.Eg(c);
- this.Qe.update(c)
- },
- YTa: function() {
- return this.Pz
- },
- i3a: function(c) {
- this.Pz != c && (this.Pz = c)
- }
- });
- f.FK.create = function(c, d) {
- return new f.FK(c, d)
- };
- f.Ch = f.lq.extend({
- gk: function() {
- return !0
- },
- step: function() {
- this.update(1)
- },
- update: function() {},
- reverse: function() {
- return this.p()
- },
- p: function() {
- return new f.Ch
- }
- });
- f.Ej = f.Ch.extend({
- update: function() {
- this.target.visible = !0
- },
- reverse: function() {
- return f.Hl.create()
- },
- p: function() {
- return new f.Ej
- }
- });
- f.Ej.create = function() {
- return new f.Ej
- };
- f.Hl = f.Ch.extend({
- update: function() {
- this.target.visible = !1
- },
- reverse: function() {
- return f.Ej.create()
- },
- p: function() {
- return new f.Hl
- }
- });
- f.Hl.create = function() {
- return new f.Hl
- };
- f.uE = f.Ch.extend({
- update: function() {
- this.target.visible = !this.target.visible
- },
- reverse: function() {
- return new f.uE
- },
- p: function() {
- return new f.uE
- }
- });
- f.uE.create = function() {
- return new f.uE
- };
- f.fE = f.Ch.extend({
- zM: !0,
- ctor: function(c) {
- f.lq.prototype.ctor.call(this);
- void 0 !== c && this.j(c)
- },
- update: function() {
- this.target.Yp(this.zM)
- },
- j: function(c) {
- this.zM = c;
- return !0
- },
- reverse: function() {
- return new f.fE(this.zM)
- },
- p: function() {
- return new f.fE(this.zM)
- }
- });
- f.fE.create = function(c) {
- return new f.fE(c)
- };
- f.YD = f.Ch.extend({
- Fb: !1,
- ctor: function(c) {
- f.lq.prototype.ctor.call(this);
- this.Fb = !1;
- void 0 !== c && this.zea(c)
- },
- zea: function(c) {
- this.Fb = c;
- return !0
- },
- update: function() {
- this.target.flippedX = this.Fb
- },
- reverse: function() {
- return f.YD.create(!this.Fb)
- },
- p: function() {
- var c = new f.YD;
- c.zea(this.Fb);
- return c
- }
- });
- f.YD.create = function(c) {
- return new f.YD(c)
- };
- f.ZD = f.Ch.extend({
- Hb: !1,
- ctor: function(c) {
- f.lq.prototype.ctor.call(this);
- this.Hb = !1;
- void 0 !== c && this.Aea(c)
- },
- Aea: function(c) {
- this.Hb = c;
- return !0
- },
- update: function() {
- this.target.flippedY = this.Hb
- },
- reverse: function() {
- return f.ZD.create(!this.Hb)
- },
- p: function() {
- var c = new f.ZD;
- c.Aea(this.Hb);
- return c
- }
- });
- f.ZD.create = function(c) {
- return new f.ZD(c)
- };
- f.nK = f.Ch.extend({
- Nn: 0,
- hj: 0,
- ctor: function(c, d) {
- f.lq.prototype.ctor.call(this);
- this.hj = this.Nn = 0;
- void 0 !== c && (void 0 !== c.x && (d = c.y, c = c.x), this.Eea(c, d))
- },
- Eea: function(c, d) {
- this.Nn = c;
- this.hj = d;
- return !0
- },
- update: function() {
- this.target.o(this.Nn, this.hj)
- },
- p: function() {
- var c = new f.nK;
- c.Eea(this.Nn, this.hj);
- return c
- }
- });
- f.nK.create = function(c, d) {
- return new f.nK(c, d)
- };
- f.ua = f.Ch.extend({
- jm: null,
- Rs: null,
- sF: null,
- Mh: null,
- ctor: function(c, d, e) {
- f.lq.prototype.ctor.call(this);
- void 0 !== c && (void 0 === d ? this.MP(c) : this.MP(c, d, e))
- },
- MP: function(c, d, e) {
- d ? (this.Mh = e, this.Rs = c, this.jm = d) : c && (this.sF = c);
- return !0
- },
- execute: function() {
- null != this.Rs ? this.Rs.call(this.jm, this.target, this.Mh) : this.sF && this.sF.call(null, this.target)
- },
- update: function() {
- this.execute()
- },
- eWa: function() {
- return this.jm
- },
- r4a: function(c) {
- c != this.jm && (this.jm && (this.jm = null), this.jm = c)
- },
- p: function() {
- var c = new f.ua;
- this.jm ? c.MP(this.Rs, this.jm, this.Mh) : this.sF && c.MP(this.sF);
- return c
- }
- });
- f.ua.create = function(c, d, e) {
- return new f.ua(c, d, e)
- };
- f.RR = f.M.extend({
- mV: 0,
- nV: 0,
- oV: 0,
- U9: 0,
- V9: 0,
- W9: 0,
- yba: 0,
- zba: 0,
- Aba: 0,
- ctor: function() {
- f.M.prototype.ctor.call(this);
- this.Aba = this.zba = this.yba = this.W9 = this.V9 = this.U9 = this.oV = this.nV = this.mV = 0
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- c = c.yx();
- var d = c.rda();
- this.mV = d.x;
- this.nV = d.y;
- this.oV = d.z;
- d = c.Bda();
- this.U9 = d.x;
- this.V9 = d.y;
- this.W9 = d.z;
- c = c.IBa();
- this.yba = c.x;
- this.zba = c.y;
- this.Aba = c.z
- },
- p: function() {
- return new f.RR
- },
- reverse: function() {
- return f.ov.create(this)
- }
- });
- f.di = f.RR.extend({
- Zi: 0,
- IV: 0,
- DE: 0,
- h9: 0,
- bn: 0,
- g9: 0,
- xaa: 0,
- vaa: 0,
- waa: 0,
- uaa: 0,
- ctor: function(c, d, e, g, h, k, m) {
- f.RR.prototype.ctor.call(this);
- void 0 !== m && this.f(c, d, e, g, h, k, m)
- },
- f: function(c, d, e, g, h, k, m) {
- return f.M.prototype.f.call(this, c) ? (this.Zi = d, this.IV = e, this.DE = g, this.h9 = h, this.bn = k, this.g9 = m, this.vaa = f.sg(h), this.uaa = f.sg(m), !0) : !1
- },
- hIa: function() {
- var c = this.target.yx(),
- d = c.Bda(),
- e = c.rda(),
- c = d.x - e.x,
- g = d.y - e.y,
- d = d.z - e.z,
- e = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2) + Math.pow(d, 2)),
- h = Math.sqrt(Math.pow(c, 2) +
- Math.pow(g, 2));
- 0 === h && (h = f.aK);
- 0 === e && (e = f.aK);
- return {
- WDa: e / f.rD.MH(),
- sJa: Math.acos(d / e),
- azimuth: 0 > c ? Math.PI - Math.asin(g / h) : Math.asin(g / h)
- }
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- c = this.hIa();
- isNaN(this.Zi) && (this.Zi = c.WDa);
- isNaN(this.DE) && (this.DE = f.yC(c.sJa));
- isNaN(this.bn) && (this.bn = f.yC(c.azimuth));
- this.xaa = f.sg(this.DE);
- this.waa = f.sg(this.bn)
- },
- p: function() {
- var c = new f.di;
- c.f(this.C, this.Zi, this.IV, this.DE, this.h9, this.bn, this.g9);
- return c
- },
- update: function(c) {
- c = this.Eg(c);
- var d = (this.Zi +
- this.IV * c) * f.rD.MH(),
- e = this.xaa + this.vaa * c,
- g = this.waa + this.uaa * c;
- c = Math.sin(e) * Math.cos(g) * d + this.mV;
- g = Math.sin(e) * Math.sin(g) * d + this.nV;
- d = Math.cos(e) * d + this.oV;
- this.target.yx().Zga(c, g, d)
- }
- });
- f.di.create = function(c, d, e, g, h, k, m) {
- return new f.di(c, d, e, g, h, k, m)
- };
- f.ac = f.M.extend({
- H: null,
- ctor: function(c) {
- f.M.prototype.ctor.call(this);
- c && this.Fa(c)
- },
- Fa: function(c) {
- if (!c) throw "cc.ActionEase.initWithAction(): action must be non nil";
- return this.f(c.pu()) ? (this.H = c, !0) : !1
- },
- p: function() {
- var c = new f.ac;
- c.Fa(this.H.p());
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.H.R(this.target)
- },
- stop: function() {
- this.H.stop();
- f.M.prototype.stop.call(this)
- },
- update: function(c) {
- this.H.update(c)
- },
- reverse: function() {
- return f.ac.create(this.H.reverse())
- },
- c0: function() {
- return this.H
- }
- });
- f.ac.create = function(c) {
- return new f.ac(c)
- };
- f.fv = f.ac.extend({
- je: 0,
- ctor: function(c, d) {
- f.ac.prototype.ctor.call(this);
- void 0 !== d && this.Fa(c, d)
- },
- a4a: function(c) {
- this.je = c
- },
- yVa: function() {
- return this.je
- },
- Fa: function(c, d) {
- return f.ac.prototype.Fa.call(this, c) ? (this.je = d, !0) : !1
- },
- p: function() {
- var c = new f.fv;
- c.Fa(this.H.p(), this.je);
- return c
- },
- reverse: function() {
- return f.fv.create(this.H.reverse(), 1 / this.je)
- }
- });
- f.fv.create = function(c, d) {
- return new f.fv(c, d)
- };
- f.MD = f.fv.extend({
- update: function(c) {
- this.H.update(Math.pow(c, this.je))
- },
- reverse: function() {
- return f.MD.create(this.H.reverse(), 1 / this.je)
- },
- p: function() {
- var c = new f.MD;
- c.Fa(this.H.p(), this.je);
- return c
- }
- });
- f.MD.create = function(c, d) {
- return new f.MD(c, d)
- };
- f.Bya = function(c) {
- return {
- je: c,
- sa: function(c) {
- return Math.pow(c, this.je)
- },
- reverse: function() {
- return f.Bya(1 / this.je)
- }
- }
- };
- f.vs = f.fv.extend({
- update: function(c) {
- this.H.update(Math.pow(c, 1 / this.je))
- },
- reverse: function() {
- return f.vs.create(this.H.reverse(), 1 / this.je)
- },
- p: function() {
- var c = new f.vs;
- c.Fa(this.H.p(), this.je);
- return c
- }
- });
- f.vs.create = function(c, d) {
- return new f.vs(c, d)
- };
- f.Dya = function(c) {
- return {
- je: c,
- sa: function(c) {
- return Math.pow(c, 1 / this.je)
- },
- reverse: function() {
- return f.Dya(1 / this.je)
- }
- }
- };
- f.Cy = f.fv.extend({
- update: function(c) {
- c *= 2;
- 1 > c ? this.H.update(0.5 * Math.pow(c, this.je)) : this.H.update(1 - 0.5 * Math.pow(2 - c, this.je))
- },
- p: function() {
- var c = new f.Cy;
- c.Fa(this.H.p(), this.je);
- return c
- },
- reverse: function() {
- return f.Cy.create(this.H.reverse(), this.je)
- }
- });
- f.Cy.create = function(c, d) {
- return new f.Cy(c, d)
- };
- f.Cya = function(c) {
- return {
- je: c,
- sa: function(c) {
- c *= 2;
- return 1 > c ? 0.5 * Math.pow(c, this.je) : 1 - 0.5 * Math.pow(2 - c, this.je)
- },
- reverse: function() {
- return f.Cya(this.je)
- }
- }
- };
- f.VJ = f.ac.extend({
- update: function(c) {
- this.H.update(0 === c ? 0 : Math.pow(2, 10 * (c - 1)))
- },
- reverse: function() {
- return f.XJ.create(this.H.reverse())
- },
- p: function() {
- var c = new f.VJ;
- c.Fa(this.H.p());
- return c
- }
- });
- f.VJ.create = function(c) {
- return new f.VJ(c)
- };
- f.D9 = {
- sa: function(c) {
- return 0 === c ? 0 : Math.pow(2, 10 * (c - 1))
- },
- reverse: function() {
- return f.F9
- }
- };
- f.yya = function() {
- return f.D9
- };
- f.XJ = f.ac.extend({
- update: function(c) {
- this.H.update(1 == c ? 1 : -Math.pow(2, -10 * c) + 1)
- },
- reverse: function() {
- return f.VJ.create(this.H.reverse())
- },
- p: function() {
- var c = new f.XJ;
- c.Fa(this.H.p());
- return c
- }
- });
- f.XJ.create = function(c) {
- return new f.XJ(c)
- };
- f.F9 = {
- sa: function(c) {
- return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1
- },
- reverse: function() {
- return f.D9
- }
- };
- f.Aya = function() {
- return f.F9
- };
- f.WJ = f.ac.extend({
- update: function(c) {
- 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));
- this.H.update(c)
- },
- reverse: function() {
- return f.WJ.create(this.H.reverse())
- },
- p: function() {
- var c = new f.WJ;
- c.Fa(this.H.p());
- return c
- }
- });
- f.WJ.create = function(c) {
- return new f.WJ(c)
- };
- f.E9 = {
- sa: function(c) {
- 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
- },
- reverse: function() {
- return f.E9
- }
- };
- f.zya = function() {
- return f.E9
- };
- f.YJ = f.ac.extend({
- update: function(c) {
- c = 0 === c || 1 === c ? c : -1 * Math.cos(c * Math.PI / 2) + 1;
- this.H.update(c)
- },
- reverse: function() {
- return f.$J.create(this.H.reverse())
- },
- p: function() {
- var c = new f.YJ;
- c.Fa(this.H.p());
- return c
- }
- });
- f.YJ.create = function(c) {
- return new f.YJ(c)
- };
- f.P9 = {
- sa: function(c) {
- return 0 === c || 1 === c ? c : -1 * Math.cos(c * Math.PI / 2) + 1
- },
- reverse: function() {
- return f.R9
- }
- };
- f.Nya = function() {
- return f.P9
- };
- f.$J = f.ac.extend({
- update: function(c) {
- c = 0 === c || 1 === c ? c : Math.sin(c * Math.PI / 2);
- this.H.update(c)
- },
- reverse: function() {
- return f.YJ.create(this.H.reverse())
- },
- p: function() {
- var c = new f.$J;
- c.Fa(this.H.p());
- return c
- }
- });
- f.$J.create = function(c) {
- return new f.$J(c)
- };
- f.R9 = {
- sa: function(c) {
- return 0 === c || 1 == c ? c : Math.sin(c * Math.PI / 2)
- },
- reverse: function() {
- return f.P9
- }
- };
- f.Pya = function() {
- return f.R9
- };
- f.ZJ = f.ac.extend({
- update: function(c) {
- c = 0 === c || 1 === c ? c : -0.5 * (Math.cos(Math.PI * c) - 1);
- this.H.update(c)
- },
- p: function() {
- var c = new f.ZJ;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.ZJ.create(this.H.reverse())
- }
- });
- f.ZJ.create = function(c) {
- return new f.ZJ(c)
- };
- f.Q9 = {
- sa: function(c) {
- return 0 === c || 1 === c ? c : -0.5 * (Math.cos(Math.PI * c) - 1)
- },
- reverse: function() {
- return f.Q9
- }
- };
- f.Oya = function() {
- return f.Q9
- };
- f.By = f.ac.extend({
- pd: 0.3,
- ctor: function(c, d) {
- f.ac.prototype.ctor.call(this);
- c && this.Fa(c, d)
- },
- mVa: function() {
- return this.pd
- },
- V3a: function(c) {
- this.pd = c
- },
- Fa: function(c, d) {
- f.ac.prototype.Fa.call(this, c);
- this.pd = null == d ? 0.3 : d;
- return !0
- },
- reverse: function() {
- f.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
- return null
- },
- p: function() {
- var c = new f.By;
- c.Fa(this.H.p(), this.pd);
- return c
- }
- });
- f.By.create = function(c, d) {
- return new f.By(c, d)
- };
- f.JD = f.By.extend({
- update: function(c) {
- var d = 0;
- 0 === c || 1 === c ? d = c : (d = this.pd / 4, c -= 1, d = -Math.pow(2, 10 * c) * Math.sin((c - d) * Math.PI * 2 / this.pd));
- this.H.update(d)
- },
- reverse: function() {
- return f.LD.create(this.H.reverse(), this.pd)
- },
- p: function() {
- var c = new f.JD;
- c.Fa(this.H.p(), this.pd);
- return c
- }
- });
- f.JD.create = function(c, d) {
- return new f.JD(c, d)
- };
- f.B9 = {
- sa: function(c) {
- if (0 === c || 1 === c) return c;
- c -= 1;
- return -Math.pow(2, 10 * c) * Math.sin((c - 0.075) * Math.PI * 2 / 0.3)
- },
- reverse: function() {
- return f.C9
- }
- };
- f.Xca = function(c) {
- return c && 0.3 !== c ? {
- pd: c,
- sa: function(c) {
- if (0 === c || 1 === c) return c;
- c -= 1;
- return -Math.pow(2, 10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd)
- },
- reverse: function() {
- return f.Zca(this.pd)
- }
- } : f.B9
- };
- f.LD = f.By.extend({
- update: function(c) {
- var d = 0,
- d = 0 === c || 1 == c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd) + 1;
- this.H.update(d)
- },
- reverse: function() {
- return f.JD.create(this.H.reverse(), this.pd)
- },
- p: function() {
- var c = new f.LD;
- c.Fa(this.H.p(), this.pd);
- return c
- }
- });
- f.LD.create = function(c, d) {
- return new f.LD(c, d)
- };
- f.C9 = {
- sa: function(c) {
- return 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - 0.075) * Math.PI * 2 / 0.3) + 1
- },
- reverse: function() {
- return f.B9
- }
- };
- f.Zca = function(c) {
- return c && 0.3 !== c ? {
- pd: c,
- sa: function(c) {
- return 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd) + 1
- },
- reverse: function() {
- return f.Xca(this.pd)
- }
- } : f.C9
- };
- f.KD = f.By.extend({
- update: function(c) {
- var d = 0,
- d = this.pd;
- if (0 === c || 1 == c) d = c;
- else {
- d || (d = this.pd = 0.3 * 1.5);
- var e = d / 4;
- c = 2 * c - 1;
- d = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - e) * Math.PI * 2 / d) : Math.pow(2, -10 * c) * Math.sin((c - e) * Math.PI * 2 / d) * 0.5 + 1
- }
- this.H.update(d)
- },
- reverse: function() {
- return f.KD.create(this.H.reverse(), this.pd)
- },
- p: function() {
- var c = new f.KD;
- c.Fa(this.H.p(), this.pd);
- return c
- }
- });
- f.KD.create = function(c, d) {
- return new f.KD(c, d)
- };
- f.Yca = function(c) {
- return {
- pd: c || 0.3,
- sa: function(c) {
- var e = 0,
- e = this.pd;
- if (0 === c || 1 === c) e = c;
- else {
- e || (e = this.pd = 0.3 * 1.5);
- var g = e / 4;
- c = 2 * c - 1;
- e = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * Math.PI * 2 / e) : Math.pow(2, -10 * c) * Math.sin((c - g) * Math.PI * 2 / e) * 0.5 + 1
- }
- return e
- },
- reverse: function() {
- return f.Yca(this.pd)
- }
- }
- };
- f.ev = f.ac.extend({
- Er: function(c) {
- if (c < 1 / 2.75) return 7.5625 * c * c;
- if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75;
- if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375;
- c -= 2.625 / 2.75;
- return 7.5625 * c * c + 0.984375
- },
- p: function() {
- var c = new f.ev;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.ev.create(this.H.reverse())
- }
- });
- f.ev.create = function(c) {
- return new f.ev(c)
- };
- f.AD = f.ev.extend({
- update: function(c) {
- this.H.update(1 - this.Er(1 - c))
- },
- reverse: function() {
- return f.CD.create(this.H.reverse())
- },
- p: function() {
- var c = new f.AD;
- c.Fa(this.H.p());
- return c
- }
- });
- f.AD.create = function(c) {
- return new f.AD(c)
- };
- f.gL = function(c) {
- if (c < 1 / 2.75) return 7.5625 * c * c;
- if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75;
- if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375;
- c -= 2.625 / 2.75;
- return 7.5625 * c * c + 0.984375
- };
- f.s9 = {
- sa: function(c) {
- return 1 - f.gL(1 - c)
- },
- reverse: function() {
- return f.u9
- }
- };
- f.pya = function() {
- return f.s9
- };
- f.CD = f.ev.extend({
- update: function(c) {
- this.H.update(this.Er(c))
- },
- reverse: function() {
- return f.AD.create(this.H.reverse())
- },
- p: function() {
- var c = new f.CD;
- c.Fa(this.H.p());
- return c
- }
- });
- f.CD.create = function(c) {
- return new f.CD(c)
- };
- f.u9 = {
- sa: function(c) {
- return f.gL(c)
- },
- reverse: function() {
- return f.s9
- }
- };
- f.rya = function() {
- return f.u9
- };
- f.BD = f.ev.extend({
- update: function(c) {
- var d = 0,
- d = 0.5 > c ? 0.5 * (1 - this.Er(1 - 2 * c)) : 0.5 * this.Er(2 * c - 1) + 0.5;
- this.H.update(d)
- },
- p: function() {
- var c = new f.BD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.BD.create(this.H.reverse())
- }
- });
- f.BD.create = function(c) {
- return new f.BD(c)
- };
- f.t9 = {
- sa: function(c) {
- return c = 0.5 > c ? 0.5 * (1 - f.gL(1 - 2 * c)) : 0.5 * f.gL(2 * c - 1) + 0.5
- },
- reverse: function() {
- return f.t9
- }
- };
- f.qya = function() {
- return f.t9
- };
- f.wD = f.ac.extend({
- update: function(c) {
- this.H.update(0 === c || 1 == c ? c : c * c * (2.70158 * c - 1.70158))
- },
- reverse: function() {
- return f.yD.create(this.H.reverse())
- },
- p: function() {
- var c = new f.wD;
- c.Fa(this.H.p());
- return c
- }
- });
- f.wD.create = function(c) {
- return new f.wD(c)
- };
- f.p9 = {
- sa: function(c) {
- return 0 === c || 1 === c ? c : c * c * (2.70158 * c - 1.70158)
- },
- reverse: function() {
- return f.r9
- }
- };
- f.lya = function() {
- return f.p9
- };
- f.yD = f.ac.extend({
- update: function(c) {
- c -= 1;
- this.H.update(c * c * (2.70158 * c + 1.70158) + 1)
- },
- reverse: function() {
- return f.wD.create(this.H.reverse())
- },
- p: function() {
- var c = new f.yD;
- c.Fa(this.H.p());
- return c
- }
- });
- f.yD.create = function(c) {
- return new f.yD(c)
- };
- f.r9 = {
- sa: function(c) {
- c -= 1;
- return c * c * (2.70158 * c + 1.70158) + 1
- },
- reverse: function() {
- return f.p9
- }
- };
- f.nya = function() {
- return f.r9
- };
- f.xD = f.ac.extend({
- update: function(c) {
- c *= 2;
- 1 > c ? this.H.update(c * c * (3.5949095 * c - 2.5949095) / 2) : (c -= 2, this.H.update(c * c * (3.5949095 * c + 2.5949095) / 2 + 1))
- },
- p: function() {
- var c = new f.xD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.xD.create(this.H.reverse())
- }
- });
- f.xD.create = function(c) {
- return new f.xD(c)
- };
- f.q9 = {
- sa: function(c) {
- c *= 2;
- if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2;
- c -= 2;
- return c * c * (3.5949095 * c + 2.5949095) / 2 + 1
- },
- reverse: function() {
- return f.q9
- }
- };
- f.mya = function() {
- return f.q9
- };
- f.zD = f.ac.extend({
- cN: null,
- dN: null,
- eN: null,
- fN: null,
- ctor: function(c) {
- f.ac.prototype.ctor.call(this, c)
- },
- mb: function(c, d, e, g, h) {
- return Math.pow(1 - h, 3) * c + 3 * h * Math.pow(1 - h, 2) * d + 3 * Math.pow(h, 2) * (1 - h) * e + Math.pow(h, 3) * g
- },
- update: function(c) {
- this.H.update(this.mb(this.cN, this.dN, this.eN, this.fN, c))
- },
- p: function() {
- var c = new f.zD;
- c.Fa(this.H.p());
- c.Fga(this.cN, this.dN, this.eN, this.fN);
- return c
- },
- reverse: function() {
- var c = f.zD.create(this.H.reverse());
- c.Fga(this.fN, this.eN, this.dN, this.cN);
- return c
- },
- Fga: function(c,
- d, e, g) {
- this.cN = c || 0;
- this.dN = d || 0;
- this.eN = e || 0;
- this.fN = g || 0
- }
- });
- f.zD.create = function(c) {
- return new f.zD(c)
- };
- f.oya = function(c, d, e, g) {
- return {
- sa: function(h) {
- return f.zD.prototype.mb(c, d, e, g, h)
- },
- reverse: function() {
- return f.oya(g, e, d, c)
- }
- }
- };
- f.ND = f.ac.extend({
- mb: function(c) {
- return Math.pow(c, 2)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.ND;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.ND.create(this.H.reverse())
- }
- });
- f.ND.create = function(c) {
- return new f.ND(c)
- };
- f.G9 = {
- sa: f.ND.prototype.mb,
- reverse: function() {
- return f.G9
- }
- };
- f.Eya = function() {
- return f.G9
- };
- f.PD = f.ac.extend({
- mb: function(c) {
- return -c * (c - 2)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.PD;
- c.Fa();
- return c
- },
- reverse: function() {
- return f.PD.create(this.H.reverse())
- }
- });
- f.PD.create = function(c) {
- return new f.PD(c)
- };
- f.I9 = {
- sa: f.PD.prototype.mb,
- reverse: function() {
- return f.I9
- }
- };
- f.Gya = function() {
- return f.I9
- };
- f.OD = f.ac.extend({
- mb: function(c) {
- var d = c;
- c *= 2;
- 1 > c ? d = c * c * 0.5 : (--c, d = -0.5 * (c * (c - 2) - 1));
- return d
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.OD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.OD.create(this.H.reverse())
- }
- });
- f.OD.create = function(c) {
- return new f.OD(c)
- };
- f.H9 = {
- sa: f.OD.prototype.mb,
- reverse: function() {
- return f.H9
- }
- };
- f.Fya = function() {
- return f.H9
- };
- f.QD = f.ac.extend({
- mb: function(c) {
- return c * c * c * c
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.QD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.QD.create(this.H.reverse())
- }
- });
- f.QD.create = function(c) {
- return new f.QD(c)
- };
- f.J9 = {
- sa: f.QD.prototype.mb,
- reverse: function() {
- return f.J9
- }
- };
- f.Hya = function() {
- return f.J9
- };
- f.SD = f.ac.extend({
- mb: function(c) {
- c -= 1;
- return -(c * c * c * c - 1)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.SD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.SD.create(this.H.reverse())
- }
- });
- f.SD.create = function(c) {
- return new f.SD(c)
- };
- f.L9 = {
- sa: f.SD.prototype.mb,
- reverse: function() {
- return f.L9
- }
- };
- f.Jya = function() {
- return f.L9
- };
- f.RD = f.ac.extend({
- mb: function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c * c;
- c -= 2;
- return -0.5 * (c * c * c * c - 2)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.RD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.RD.create(this.H.reverse())
- }
- });
- f.RD.create = function(c) {
- return new f.RD(c)
- };
- f.K9 = {
- sa: f.RD.prototype.mb,
- reverse: function() {
- return f.K9
- }
- };
- f.Iya = function() {
- return f.K9
- };
- f.TD = f.ac.extend({
- mb: function(c) {
- return c * c * c * c * c
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.TD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.TD.create(this.H.reverse())
- }
- });
- f.TD.create = function(c) {
- return new f.TD(c)
- };
- f.M9 = {
- sa: f.TD.prototype.mb,
- reverse: function() {
- return f.M9
- }
- };
- f.Kya = function() {
- return f.M9
- };
- f.VD = f.ac.extend({
- mb: function(c) {
- c -= 1;
- return c * c * c * c * c + 1
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.VD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.VD.create(this.H.reverse())
- }
- });
- f.VD.create = function(c) {
- return new f.VD(c)
- };
- f.O9 = {
- sa: f.VD.prototype.mb,
- reverse: function() {
- return f.O9
- }
- };
- f.Mya = function() {
- return f.O9
- };
- f.UD = f.ac.extend({
- mb: function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c * c * c;
- c -= 2;
- return 0.5 * (c * c * c * c * c + 2)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.UD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.UD.create(this.H.reverse())
- }
- });
- f.UD.create = function(c) {
- return new f.UD(c)
- };
- f.N9 = {
- sa: f.UD.prototype.mb,
- reverse: function() {
- return f.N9
- }
- };
- f.Lya = function() {
- return f.N9
- };
- f.DD = f.ac.extend({
- mb: function(c) {
- return -1 * (Math.sqrt(1 - c * c) - 1)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.DD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.DD.create(this.H.reverse())
- }
- });
- f.DD.create = function(c) {
- return new f.DD(c)
- };
- f.v9 = {
- sa: f.DD.prototype.mb,
- reverse: function() {
- return f.v9
- }
- };
- f.sya = function() {
- return f.v9
- };
- f.FD = f.ac.extend({
- mb: function(c) {
- c -= 1;
- return Math.sqrt(1 - c * c)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.FD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.FD.create(this.H.reverse())
- }
- });
- f.FD.create = function(c) {
- return new f.FD(c)
- };
- f.x9 = {
- sa: f.FD.prototype.mb,
- reverse: function() {
- return f.x9
- }
- };
- f.uya = function() {
- return f.x9
- };
- f.ED = f.ac.extend({
- mb: function(c) {
- c *= 2;
- if (1 > c) return -0.5 * (Math.sqrt(1 - c * c) - 1);
- c -= 2;
- return 0.5 * (Math.sqrt(1 - c * c) + 1)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.ED;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.ED.create(this.H.reverse())
- }
- });
- f.ED.create = function(c) {
- return new f.ED(c)
- };
- f.w9 = {
- sa: f.ED.prototype.mb,
- reverse: function() {
- return f.w9
- }
- };
- f.tya = function() {
- return f.w9
- };
- f.GD = f.ac.extend({
- mb: function(c) {
- return c * c * c
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.GD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.GD.create(this.H.reverse())
- }
- });
- f.GD.create = function(c) {
- return new f.GD(c)
- };
- f.y9 = {
- sa: f.GD.prototype.mb,
- reverse: function() {
- return f.y9
- }
- };
- f.vya = function() {
- return f.y9
- };
- f.ID = f.ac.extend({
- mb: function(c) {
- c -= 1;
- return c * c * c + 1
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.ID;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.ID.create(this.H.reverse())
- }
- });
- f.ID.create = function(c) {
- return new f.ID(c)
- };
- f.A9 = {
- sa: f.ID.prototype.mb,
- reverse: function() {
- return f.A9
- }
- };
- f.xya = function() {
- return f.A9
- };
- f.HD = f.ac.extend({
- mb: function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c;
- c -= 2;
- return 0.5 * (c * c * c + 2)
- },
- update: function(c) {
- this.H.update(this.mb(c))
- },
- p: function() {
- var c = new f.HD;
- c.Fa(this.H.p());
- return c
- },
- reverse: function() {
- return f.HD.create(this.H.reverse())
- }
- });
- f.HD.create = function(c) {
- return new f.HD(c)
- };
- f.z9 = {
- sa: f.HD.prototype.mb,
- reverse: function() {
- return f.z9
- }
- };
- f.wya = function() {
- return f.z9
- };
- f.a_ = function(c, d, e, g, h, k) {
- var m = k * k,
- n = m * k,
- p = (1 - h) / 2;
- h = p * (-n + 2 * m - k);
- var s = p * (-n + m) + (2 * n - 3 * m + 1);
- k = p * (n - 2 * m + k) + (-2 * n + 3 * m);
- m = p * (n - m);
- return r(c.x * h + d.x * s + e.x * k + g.x * m, c.y * h + d.y * s + e.y * k + g.y * m)
- };
- f.wga = function(c) {
- for (var d = [], e = c.length - 1; 0 <= e; e--) d.push(r(c[e].x, c[e].y));
- return d
- };
- f.OO = function(c) {
- for (var d = [], e = 0; e < c.length; e++) d.push(r(c[e].x, c[e].y));
- return d
- };
- f.tg = function(c, d) {
- var e = Math.min(c.length - 1, Math.max(d, 0));
- return c[e]
- };
- f.L1a = function(c) {
- for (var d = c.length, e = 0 | d / 2, g = 0; g < e; ++g) {
- var h = c[g];
- c[g] = c[d - g - 1];
- c[d - g - 1] = h
- }
- };
- f.Wm = f.M.extend({
- xn: null,
- i9: 0,
- UA: 0,
- Kf: null,
- w8: null,
- ctor: function(c, d, e) {
- f.M.prototype.ctor.call(this);
- this.xn = [];
- void 0 !== e && this.f(c, d, e)
- },
- f: function(c, d, e) {
- if (!d || 0 == d.length) throw "Invalid configuration. It must at least have one control point";
- return f.M.prototype.f.call(this, c) ? (this.tHa(d), this.UA = e, !0) : !1
- },
- p: function() {
- var c = new f.Wm;
- c.f(this.C, f.OO(this.xn), this.UA);
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.i9 = 1 / (this.xn.length - 1);
- this.Kf = r(this.target.Vc(), this.target.Zd());
- this.w8 = r(0, 0)
- },
- update: function(c) {
- c = this.Eg(c);
- var d, e = this.xn;
- if (1 == c) d = e.length - 1, c = 1;
- else {
- var g = this.i9;
- d = 0 | c / g;
- c = (c - g * d) / g
- }
- d = f.a_(f.tg(e, d - 1), f.tg(e, d - 0), f.tg(e, d + 1), f.tg(e, d + 2), this.UA, c);
- f.SJ && (e = this.target.Vc() - this.Kf.x, c = this.target.Zd() - this.Kf.y, 0 != e || 0 != c) && (g = this.w8, e = g.x + e, c = g.y + c, g.x = e, g.y = c, d.x += e, d.y += c);
- this.Gia(d)
- },
- reverse: function() {
- var c = f.wga(this.xn);
- return f.Wm.create(this.C, c, this.UA)
- },
- Gia: function(c) {
- this.target.o(c);
- this.Kf = c
- },
- oVa: function() {
- return this.xn
- },
- tHa: function(c) {
- this.xn =
- c
- }
- });
- f.Wm.create = function(c, d, e) {
- return new f.Wm(c, d, e)
- };
- f.bv = f.Wm.extend({
- tf: null,
- ctor: function(c, d, e) {
- f.Wm.prototype.ctor.call(this);
- this.tf = r(0, 0);
- void 0 !== e && this.f(c, d, e)
- },
- R: function(c) {
- f.Wm.prototype.R.call(this, c);
- this.tf.x = c.Vc();
- this.tf.y = c.Zd()
- },
- reverse: function() {
- for (var c = this.xn.slice(), d, e = c[0], g = 1; g < c.length; ++g) d = c[g], c[g] = f.gc(d, e), e = d;
- c = f.wga(c);
- e = c[c.length - 1];
- c.pop();
- e.x = -e.x;
- e.y = -e.y;
- c.unshift(e);
- for (g = 1; g < c.length; ++g) d = c[g], d.x = -d.x, d.y = -d.y, d.x += e.x, d.y += e.y, e = c[g] = d;
- return f.bv.create(this.C, c, this.UA)
- },
- Gia: function(c) {
- var d = this.tf,
- e = c.x + d.x;
- c = c.y + d.y;
- this.Kf.x = e;
- this.Kf.y = c;
- this.target.o(e, c)
- },
- p: function() {
- var c = new f.bv;
- c.f(this.C, f.OO(this.xn), this.UA);
- return c
- }
- });
- f.bv.create = function(c, d, e) {
- return new f.bv(c, d, e)
- };
- f.IJ = f.Wm.extend({
- ctor: function(c, d) {
- d && this.f(c, d)
- },
- f: function(c, d) {
- return f.Wm.prototype.f.call(this, c, d, 0.5)
- },
- p: function() {
- var c = new f.IJ;
- c.f(this.C, f.OO(this.xn));
- return c
- }
- });
- f.IJ.create = function(c, d) {
- return new f.IJ(c, d)
- };
- f.HJ = f.bv.extend({
- ctor: function(c, d) {
- f.bv.prototype.ctor.call(this);
- d && this.f(c, d)
- },
- f: function(c, d) {
- return f.Wm.prototype.f.call(this, c, d, 0.5)
- },
- p: function() {
- var c = new f.HJ;
- c.f(this.C, f.OO(this.xn));
- return c
- }
- });
- f.HJ.create = function(c, d) {
- return new f.HJ(c, d)
- };
- f.LJa = f.N.extend({
- D3: function() {}
- });
- f.Xu = f.M.extend({
- key: "",
- dP: 0,
- lJ: 0,
- xB: 0,
- ctor: function(c, d, e, g) {
- f.M.prototype.ctor.call(this);
- this.key = "";
- void 0 !== g && this.f(c, d, e, g)
- },
- f: function(c, d, e, g) {
- return f.M.prototype.f.call(this, c) ? (this.key = d, this.lJ = g, this.dP = e, !0) : !1
- },
- R: function(c) {
- if (!c || !c.D3) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";
- f.M.prototype.R.call(this, c);
- this.xB = this.lJ - this.dP
- },
- update: function(c) {
- this.target.D3(this.lJ - this.xB * (1 - c), this.key)
- },
- reverse: function() {
- return f.Xu.create(this.duration,
- this.key, this.lJ, this.dP)
- },
- p: function() {
- var c = new f.Xu;
- c.f(this.C, this.key, this.dP, this.lJ);
- return c
- }
- });
- f.Xu.create = function(c, d, e, g) {
- var h = new f.Xu;
- return h.f(c, d, e, g) ? h : null
- };
- f.action = f.Ag.create;
- f.speed = f.lE.create;
- f.ORa = f.cK.create;
- f.Q_a = f.di.create;
- f.cQa = f.Wm.create;
- f.bQa = f.bv.create;
- f.eQa = f.IJ.create;
- f.dQa = f.HJ.create;
- f.show = f.Ej.create;
- f.YWa = f.Hl.create;
- f.B5a = f.uE.create;
- f.t1a = f.fE.create;
- f.gda = f.YD.create;
- f.hda = f.ZD.create;
- f.n0a = f.nK.create;
- f.YPa = f.ua.create;
- f.hPa = f.M.create;
- f.p2a = f.X.create;
- f.repeat = f.gE.create;
- f.ZFa = f.hE.create;
- f.$4a = f.fe.create;
- f.R1a = f.pv.create;
- f.Q1a = f.Ry.create;
- f.moveBy = f.vk.create;
- f.moveTo = f.Dc.create;
- f.Z4a = f.uq.create;
- f.Y4a = f.kE.create;
- f.dYa = f.xo.create;
- f.eYa = f.dK.create;
- f.SPa = f.qs.create;
- f.TPa = f.zJ.create;
- f.W1a = f.Db.create;
- f.V1a = f.Ty.create;
- f.blink = f.kD.create;
- f.LRa = f.Xc.create;
- f.JRa = f.Fy.create;
- f.KRa = f.Gy.create;
- f.z5a = f.Vy.create;
- f.y5a = f.tE.create;
- f.IQa = f.Nb.create;
- f.M1a = f.ov.create;
- f.KPa = f.gD.create;
- f.r5a = f.FK.create;
- f.iPa = f.Xu.create;
- f.we = f.M.extend({
- ya: null,
- ctor: function(c, d) {
- f.tV();
- f.M.prototype.ctor.call(this);
- this.ya = t(0, 0);
- d && this.f(c, d)
- },
- p: function() {
- var c = new f.we,
- d = this.ya;
- c.f(this.C, t(d.width, d.height));
- return c
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- var d = this.vH(),
- e = this.target;
- (c = e.grid) && 0 < c.np ? (d = c.$za(), c.Bi() && d.width == this.ya.width && d.height == this.ya.height && c.PQ()) : (c && c.Bi() && c.setActive(!1), e.grid = d, e.grid.setActive(!0))
- },
- reverse: function() {
- return f.ov.create(this)
- },
- f: function(c, d) {
- return f.M.prototype.f.call(this,
- c) ? (this.ya.width = d.width, this.ya.height = d.height, !0) : !1
- },
- vH: function() {
- f.log("cc.GridAction.getGrid(): it should be overridden in subclass.")
- }
- });
- f.we.create = function(c, d) {
- return new f.we(c, d)
- };
- f.Zf = f.we.extend({
- vH: function() {
- return f.SS.create(this.ya)
- },
- Oia: function(c) {
- return this.target.grid.Oia(c)
- },
- zf: function(c) {
- return this.target.grid.zf(c)
- },
- Ah: function(c, d) {
- this.target.grid.Ah(c, d)
- }
- });
- f.Zf.create = function(c, d) {
- return new f.Zf(c, d)
- };
- f.Ne = f.we.extend({
- uia: function(c) {
- return this.target.grid.uia(c)
- },
- kl: function(c) {
- return this.target.grid.kl(c)
- },
- yj: function(c, d) {
- this.target.grid.yj(c, d)
- },
- vH: function() {
- return f.iU.create(this.ya)
- }
- });
- f.Ne.create = function(c, d) {
- return new f.Ne(c, d)
- };
- f.qv = f.Ch.extend({
- R: function(c) {
- f.Ch.prototype.R.call(this, c);
- (c = this.target.grid) && c.Bi() && c.setActive(!1)
- }
- });
- f.qv.create = function() {
- return new f.qv
- };
- f.Y6 = f.Ch.extend({
- ne: null,
- ctor: function(c) {
- f.Ch.prototype.ctor.call(this);
- void 0 !== c && this.ECa(c)
- },
- ECa: function(c) {
- this.ne = c;
- return !0
- },
- R: function(c) {
- f.Ch.prototype.R.call(this, c);
- this.target.grid && this.target.grid.Bi() && this.target.grid.FHa(this.target.grid.np + this.ne)
- }
- });
- f.Y6.create = function(c) {
- return new f.Y6(c)
- };
- f.l8 = f.Zf.extend({
- Zj: 0,
- oc: 0,
- pc: 0,
- ctor: function(c, d, e, g) {
- f.we.prototype.ctor.call(this);
- void 0 !== g && this.f(c, d, e, g)
- },
- JB: function() {
- return this.oc
- },
- DC: function(c) {
- this.oc = c
- },
- vx: function() {
- return this.pc
- },
- Wx: function(c) {
- this.pc = c
- },
- f: function(c, d, e, g) {
- return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1
- },
- update: function(c) {
- for (var d = this.ya, e = this.oc, g = r(0, 0), h = this.pc, k = this.Zj, m = 0; m < d.width + 1; ++m)
- for (var n = 0; n < d.height + 1; ++n) {
- g.x = m;
- g.y = n;
- var p = this.zf(g);
- p.z += Math.sin(Math.PI *
- c * k * 2 + 0.01 * (p.y + p.x)) * e * h;
- this.Ah(g, p)
- }
- }
- });
- f.l8.create = function(c, d, e, g) {
- return new f.l8(c, d, e, g)
- };
- f.QS = f.Zf.extend({
- ctor: function(c) {
- void 0 !== c ? f.we.prototype.ctor.call(this, c, t(1, 1)) : f.we.prototype.ctor.call(this)
- },
- f: function(c) {
- return f.Zf.prototype.f.call(this, c, t(1, 1))
- },
- Jp: function(c, d) {
- return 1 != c.width || 1 != c.height ? (f.log("Grid size must be (1,1)"), !1) : f.Zf.prototype.f.call(this, d, c)
- },
- update: function(c) {
- var d = Math.PI * c;
- c = Math.sin(d);
- var e = Math.cos(d / 2),
- d = new f.Oe,
- g = r(0, 0);
- g.x = g.y = 1;
- var h = this.zf(g);
- g.x = g.y = 0;
- var g = this.zf(g),
- k = h.x,
- m = g.x,
- n, p;
- k > m ? (h = r(0, 0), g = r(0, 1), n = r(1, 0), p = r(1, 1)) : (n = r(0,
- 0), p = r(0, 1), h = r(1, 0), g = r(1, 1), k = m);
- d.x = k - k * e;
- d.z = Math.abs(parseFloat(k * c / 4));
- c = this.zf(h);
- c.x = d.x;
- c.z += d.z;
- this.Ah(h, c);
- c = this.zf(g);
- c.x = d.x;
- c.z += d.z;
- this.Ah(g, c);
- c = this.zf(n);
- c.x -= d.x;
- c.z -= d.z;
- this.Ah(n, c);
- c = this.zf(p);
- c.x -= d.x;
- c.z -= d.z;
- this.Ah(p, c)
- }
- });
- f.QS.create = function(c) {
- return new f.QS(c)
- };
- f.w5 = f.QS.extend({
- ctor: function(c) {
- void 0 !== c ? f.we.prototype.ctor.call(this, c, t(1, 1)) : f.we.prototype.ctor.call(this)
- },
- update: function(c) {
- var d = Math.PI * c;
- c = Math.sin(d);
- var e = Math.cos(d / 2),
- d = new f.Oe,
- g = r(0, 0);
- g.x = g.y = 1;
- var h = this.zf(g);
- g.x = g.y = 0;
- var g = this.zf(g),
- k = h.y,
- m = g.y,
- n, p;
- k > m ? (h = r(0, 0), g = r(0, 1), n = r(1, 0), p = r(1, 1)) : (g = r(0, 0), h = r(0, 1), p = r(1, 0), n = r(1, 1), k = m);
- d.y = k - k * e;
- d.z = Math.abs(parseFloat(k * c) / 4);
- c = this.zf(h);
- c.y = d.y;
- c.z += d.z;
- this.Ah(h, c);
- c = this.zf(g);
- c.y -= d.y;
- c.z -= d.z;
- this.Ah(g, c);
- c = this.zf(n);
- c.y = d.y;
- c.z += d.z;
- this.Ah(n, c);
- c = this.zf(p);
- c.y -= d.y;
- c.z -= d.z;
- this.Ah(p, c)
- }
- });
- f.w5.create = function(c) {
- return new f.w5(c)
- };
- f.X5 = f.Zf.extend({
- oa: null,
- Zi: 0,
- GM: 0,
- Qqa: !1,
- Ec: !1,
- ctor: function(c, d, e, g) {
- f.we.prototype.ctor.call(this);
- this.oa = r(0, 0);
- void 0 !== g && this.f(c, d, e, g)
- },
- vUa: function() {
- return this.GM
- },
- A3a: function(c) {
- this.GM = c
- },
- O2a: function(c) {
- this.Qqa = c
- },
- Od: function() {
- return this.oa
- },
- o: function(c) {
- f.I1(c, this.oa) || (this.oa.x = c.x, this.oa.y = c.y, this.Ec = !0)
- },
- f: function(c, d, e, g) {
- return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.Zi = g, this.GM = 0.7, this.Ec = !0) : !1
- },
- update: function() {
- if (this.Ec) {
- for (var c = this.ya.width, d = this.ya.height,
- e = this.Zi, g = this.GM, h = r(0, 0), k = r(0, 0), m, n, p, s = 0; s < c + 1; ++s)
- for (var u = 0; u < d + 1; ++u) h.x = s, h.y = u, m = this.zf(h), k.x = this.oa.x - m.x, k.y = this.oa.y - m.y, n = f.ff(k), n < e && (n = e - n, n /= e, 0 == n && (n = 0.001), n = Math.log(n) * g, p = Math.exp(n) * e, n = f.ff(k), 0 < n && (k.x /= n, k.y /= n, k.x *= p, k.y *= p, m.z += f.ff(k) * g)), this.Ah(h, m);
- this.Ec = !1
- }
- }
- });
- f.X5.create = function(c, d, e, g) {
- return new f.X5(c, d, e, g)
- };
- f.Z6 = f.Zf.extend({
- oa: null,
- Zi: 0,
- Zj: 0,
- oc: 0,
- pc: 0,
- ctor: function(c, d, e, g, h, k) {
- f.we.prototype.ctor.call(this);
- this.oa = r(0, 0);
- void 0 !== k && this.f(c, d, e, g, h, k)
- },
- Od: function() {
- return this.oa
- },
- o: function(c) {
- this.oa.x = c.x;
- this.oa.y = c.y
- },
- JB: function() {
- return this.oc
- },
- DC: function(c) {
- this.oc = c
- },
- vx: function() {
- return this.pc
- },
- Wx: function(c) {
- this.pc = c
- },
- f: function(c, d, e, g, h, k) {
- return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.Zi = g, this.Zj = h, this.oc = k, this.pc = 1, !0) : !1
- },
- update: function(c) {
- for (var d = this.ya.width,
- e = this.ya.height, g = r(0, 0), h = this.Zi, k = this.Zj, m = this.oc, n = this.pc, p, s, u = r(0, 0), v = 0; v < d + 1; ++v)
- for (var z = 0; z < e + 1; ++z) g.x = v, g.y = z, p = this.zf(g), u.x = this.oa.x - p.x, u.y = this.oa.y - p.y, s = f.ff(u), s < h && (s = h - s, p.z += Math.sin(c * Math.PI * k * 2 + 0.1 * s) * m * n * Math.pow(s / h, 2)), this.Ah(g, p)
- }
- });
- f.Z6.create = function(c, d, e, g, h, k) {
- return new f.Z6(c, d, e, g, h, k)
- };
- f.h7 = f.Zf.extend({
- Gt: 0,
- pG: !1,
- ctor: function(c, d, e, g) {
- f.we.prototype.ctor.call(this);
- void 0 !== g && this.f(c, d, e, g)
- },
- f: function(c, d, e, g) {
- return f.Zf.prototype.f.call(this, c, d) ? (this.Gt = e, this.pG = g, !0) : !1
- },
- update: function() {
- for (var c = this.ya.width, d = this.ya.height, e = this.Gt, g = this.pG, h = r(0, 0), k, m = 0; m < c + 1; ++m)
- for (var n = 0; n < d + 1; ++n) h.x = m, h.y = n, k = this.zf(h), k.x += f.jd() % (2 * e) - e, k.y += f.jd() % (2 * e) - e, g && (k.z += f.jd() % (2 * e) - e), this.Ah(h, k)
- }
- });
- f.h7.create = function(c, d, e, g) {
- return new f.h7(c, d, e, g)
- };
- f.Y5 = f.Zf.extend({
- Zj: 0,
- oc: 0,
- pc: 0,
- ctor: function(c, d, e, g) {
- f.we.prototype.ctor.call(this);
- void 0 !== g && this.f(c, d, e, g)
- },
- JB: function() {
- return this.oc
- },
- DC: function(c) {
- this.oc = c
- },
- vx: function() {
- return this.pc
- },
- Wx: function(c) {
- this.pc = c
- },
- f: function(c, d, e, g) {
- return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1
- },
- update: function(c) {
- for (var d = this.ya.width, e = this.ya.height, g = r(0, 0), h = this.Zj, k = this.oc, m = this.pc, n, p = 1; p < d; ++p)
- for (var s = 1; s < e; ++s) g.x = p, g.y = s, n = this.zf(g), n.x += Math.sin(c * Math.PI *
- h * 2 + 0.01 * n.x) * k * m, n.y += Math.sin(c * Math.PI * h * 2 + 0.01 * n.y) * k * m, this.Ah(g, n)
- }
- });
- f.Y5.create = function(c, d, e, g) {
- return new f.Y5(c, d, e, g)
- };
- f.k8 = f.Zf.extend({
- Zj: 0,
- oc: 0,
- pc: 0,
- Kba: !1,
- z$: !1,
- ctor: function(c, d, e, g, h, k) {
- f.we.prototype.ctor.call(this);
- void 0 !== k && this.f(c, d, e, g, h, k)
- },
- JB: function() {
- return this.oc
- },
- DC: function(c) {
- this.oc = c
- },
- vx: function() {
- return this.pc
- },
- Wx: function(c) {
- this.pc = c
- },
- f: function(c, d, e, g, h, k) {
- return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, this.z$ = h, this.Kba = k, !0) : !1
- },
- update: function(c) {
- for (var d = this.ya.width, e = this.ya.height, g = r(0, 0), h = this.Kba, k = this.z$, m = this.Zj, n = this.oc, p = this.pc, s, u = 0; u < d +
- 1; ++u)
- for (var v = 0; v < e + 1; ++v) g.x = u, g.y = v, s = this.zf(g), h && (s.x += Math.sin(c * Math.PI * m * 2 + 0.01 * s.y) * n * p), k && (s.y += Math.sin(c * Math.PI * m * 2 + 0.01 * s.x) * n * p), this.Ah(g, s)
- }
- });
- f.k8.create = function(c, d, e, g, h, k) {
- return new f.k8(c, d, e, g, h, k)
- };
- f.f8 = f.Zf.extend({
- oa: null,
- vba: 0,
- oc: 0,
- pc: 0,
- ctor: function(c, d, e, g, h) {
- f.we.prototype.ctor.call(this);
- this.oa = r(0, 0);
- void 0 !== h && this.f(c, d, e, g, h)
- },
- Od: function() {
- return this.oa
- },
- o: function(c) {
- this.oa.x = c.x;
- this.oa.y = c.y
- },
- JB: function() {
- return this.oc
- },
- DC: function(c) {
- this.oc = c
- },
- vx: function() {
- return this.pc
- },
- Wx: function(c) {
- this.pc = c
- },
- f: function(c, d, e, g, h) {
- return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.vba = g, this.oc = h, this.pc = 1, !0) : !1
- },
- update: function(c) {
- for (var d = this.oa, e = this.ya.width, g = this.ya.height,
- h = r(0, 0), k = 0.1 * this.oc * this.pc, m = this.vba, n, p, s, u = r(0, 0), v = 0; v < e + 1; ++v)
- for (var z = 0; z < g + 1; ++z) h.x = v, h.y = z, n = this.zf(h), u.x = v - e / 2, u.y = z - g / 2, p = f.ff(u) * Math.cos(Math.PI / 2 + c * Math.PI * m * 2) * k, s = Math.sin(p) * (n.y - d.y) + Math.cos(p) * (n.x - d.x), p = Math.cos(p) * (n.y - d.y) - Math.sin(p) * (n.x - d.x), n.x = d.x + s, n.y = d.y + p, this.Ah(h, n)
- }
- });
- f.f8.create = function(c, d, e, g, h) {
- return new f.f8(c, d, e, g, h)
- };
- f.i7 = f.Ne.extend({
- Gt: 0,
- pG: !1,
- ctor: function(c, d, e, g) {
- f.we.prototype.ctor.call(this);
- void 0 !== g && this.f(c, d, e, g)
- },
- f: function(c, d, e, g) {
- return f.Ne.prototype.f.call(this, c, d) ? (this.Gt = e, this.pG = g, !0) : !1
- },
- update: function() {
- for (var c = this.ya, d = this.Gt, e = r(0, 0), g = 0; g < c.width; ++g)
- for (var h = 0; h < c.height; ++h) {
- e.x = g;
- e.y = h;
- var k = this.kl(e);
- k.T.x += f.jd() % (2 * d) - d;
- k.aa.x += f.jd() % (2 * d) - d;
- k.Z.x += f.jd() % (2 * d) - d;
- k.W.x += f.jd() % (2 * d) - d;
- k.T.y += f.jd() % (2 * d) - d;
- k.aa.y += f.jd() % (2 * d) - d;
- k.Z.y += f.jd() % (2 * d) - d;
- k.W.y += f.jd() % (2 *
- d) - d;
- this.pG && (k.T.z += f.jd() % (2 * d) - d, k.aa.z += f.jd() % (2 * d) - d, k.Z.z += f.jd() % (2 * d) - d, k.W.z += f.jd() % (2 * d) - d);
- this.yj(e, k)
- }
- }
- });
- f.i7.create = function(c, d, e, g) {
- return new f.i7(c, d, e, g)
- };
- f.j7 = f.Ne.extend({
- Gt: 0,
- oX: !1,
- dba: !1,
- ctor: function(c, d, e, g) {
- f.we.prototype.ctor.call(this);
- void 0 !== g && this.f(c, d, e, g)
- },
- f: function(c, d, e, g) {
- return f.Ne.prototype.f.call(this, c, d) ? (this.oX = !1, this.Gt = e, this.dba = g, !0) : !1
- },
- update: function() {
- if (!1 === this.oX) {
- for (var c = this.ya, d = this.Gt, e, g = r(0, 0), h = 0; h < c.width; ++h)
- for (var k = 0; k < c.height; ++k) g.x = h, g.y = k, e = this.kl(g), e.T.x += f.jd() % (2 * d) - d, e.aa.x += f.jd() % (2 * d) - d, e.Z.x += f.jd() % (2 * d) - d, e.W.x += f.jd() % (2 * d) - d, e.T.y += f.jd() % (2 * d) - d, e.aa.y += f.jd() % (2 * d) - d, e.Z.y +=
- f.jd() % (2 * d) - d, e.W.y += f.jd() % (2 * d) - d, this.dba && (e.T.z += f.jd() % (2 * d) - d, e.aa.z += f.jd() % (2 * d) - d, e.Z.z += f.jd() % (2 * d) - d, e.W.z += f.jd() % (2 * d) - d), this.yj(g, e);
- this.oX = !0
- }
- }
- });
- f.j7.create = function(c, d, e, g) {
- return new f.j7(c, d, e, g)
- };
- function ia() {
- this.position = r(0, 0);
- this.qIa = r(0, 0);
- this.xB = r(0, 0)
- }
- f.k7 = f.Ne.extend({
- cY: 0,
- wr: 0,
- qp: null,
- ej: null,
- ctor: function(c, d, e) {
- f.we.prototype.ctor.call(this);
- this.qp = [];
- this.ej = [];
- void 0 !== e && this.f(c, d, e)
- },
- f: function(c, d, e) {
- return f.Ne.prototype.f.call(this, c, d) ? (this.cY = e, this.qp.length = 0, this.ej.length = 0, !0) : !1
- },
- e3: function(c, d) {
- for (var e = d - 1; 0 <= e; e--) {
- var g = 0 | f.jd() % (e + 1),
- h = c[e];
- c[e] = c[g];
- c[g] = h
- }
- },
- a0: function(c) {
- var d = this.ya,
- e = c.width * d.height + c.height;
- return t(this.qp[e] / d.height - c.width, this.qp[e] % d.height - c.height)
- },
- ZEa: function(c, d) {
- var e = this.kl(c),
- g = this.target.grid.q0(),
- h = d.position;
- e.T.x += h.x * g.x;
- e.T.y += h.y * g.y;
- e.aa.x += h.x * g.x;
- e.aa.y += h.y * g.y;
- e.Z.x += h.x * g.x;
- e.Z.y += h.y * g.y;
- e.W.x += h.x * g.x;
- e.W.y += h.y * g.y;
- this.yj(c, e)
- },
- R: function(c) {
- f.Ne.prototype.R.call(this, c);
- c = this.ya;
- this.wr = c.width * c.height;
- for (var d = this.qp, e = d.length = 0; e < this.wr; ++e) d[e] = e;
- this.e3(d, this.wr);
- for (var d = this.ej, e = d.length = 0, g = t(0, 0), h = 0; h < c.width; ++h)
- for (var k = 0; k < c.height; ++k) d[e] = new ia, d[e].position = r(h, k), d[e].qIa = r(h, k), g.width = h, g.height = k, d[e].xB = this.a0(g), ++e
- },
- update: function(c) {
- for (var d = 0, e = this.ya, g = this.ej, h, k = r(0, 0), m = 0; m < e.width; ++m)
- for (var n = 0; n < e.height; ++n) k.x = m, k.y = n, h = g[d], h.position.x = h.xB.width * c, h.position.y = h.xB.height * c, this.ZEa(k, h), ++d
- }
- });
- f.k7.create = function(c, d, e) {
- return new f.k7(c, d, e)
- };
- f.XD = f.Ne.extend({
- NR: function(c, d) {
- var e = this.ya.width * d,
- g = this.ya.height * d;
- return 0 == e + g ? 1 : Math.pow((c.width + c.height) / (e + g), 6)
- },
- v3: function(c) {
- this.yj(c, this.kl(c))
- },
- u3: function(c) {
- this.yj(c, new f.oK)
- },
- yia: function(c, d) {
- var e = this.kl(c),
- g = this.target.grid.q0();
- e.T.x += g.x / 2 * (1 - d);
- e.T.y += g.y / 2 * (1 - d);
- e.aa.x -= g.x / 2 * (1 - d);
- e.aa.y += g.y / 2 * (1 - d);
- e.Z.x += g.x / 2 * (1 - d);
- e.Z.y -= g.y / 2 * (1 - d);
- e.W.x -= g.x / 2 * (1 - d);
- e.W.y -= g.y / 2 * (1 - d);
- this.yj(c, e)
- },
- update: function(c) {
- for (var d = this.ya, e = r(0, 0), g = t(0, 0), h, k = 0; k < d.width; ++k)
- for (var m =
- 0; m < d.height; ++m) e.x = k, e.y = m, g.width = k, g.height = m, h = this.NR(g, c), 0 == h ? this.u3(e) : 1 > h ? this.yia(e, h) : this.v3(e)
- }
- });
- f.XD.create = function(c, d) {
- return new f.XD(c, d)
- };
- f.OS = f.XD.extend({
- NR: function(c, d) {
- return 0 == c.width + c.height ? 1 : Math.pow((this.ya.width * (1 - d) + this.ya.height * (1 - d)) / (c.width + c.height), 6)
- }
- });
- f.OS.create = function(c, d) {
- return new f.OS(c, d)
- };
- f.bK = f.XD.extend({
- NR: function(c, d) {
- var e = this.ya.height * d;
- return 0 == e ? 1 : Math.pow(c.height / e, 6)
- },
- yia: function(c, d) {
- var e = this.kl(c),
- g = this.target.grid.q0();
- e.T.y += g.y / 2 * (1 - d);
- e.aa.y += g.y / 2 * (1 - d);
- e.Z.y -= g.y / 2 * (1 - d);
- e.W.y -= g.y / 2 * (1 - d);
- this.yj(c, e)
- }
- });
- f.bK.create = function(c, d) {
- return new f.bK(c, d)
- };
- f.PS = f.bK.extend({
- NR: function(c, d) {
- return 0 == c.height ? 1 : Math.pow(this.ya.height * (1 - d) / c.height, 6)
- }
- });
- f.PS.create = function(c, d) {
- return new f.PS(c, d)
- };
- f.mU = f.Ne.extend({
- cY: null,
- wr: 0,
- qp: null,
- ctor: function(c, d, e) {
- f.we.prototype.ctor.call(this);
- this.qp = [];
- void 0 !== d && this.f(c, d, e)
- },
- f: function(c, d, e) {
- return f.Ne.prototype.f.call(this, c, d) ? (this.cY = e || 0, this.qp.length = 0, !0) : !1
- },
- e3: function(c, d) {
- for (var e = d - 1; 0 <= e; e--) {
- var g = 0 | f.jd() % (e + 1),
- h = c[e];
- c[e] = c[g];
- c[g] = h
- }
- },
- v3: function(c) {
- this.yj(c, this.kl(c))
- },
- u3: function(c) {
- this.yj(c, new f.oK)
- },
- R: function(c) {
- f.Ne.prototype.R.call(this, c);
- this.wr = this.ya.width * this.ya.height;
- c = this.qp;
- for (var d = c.length = 0; d <
- this.wr; ++d) c[d] = d;
- this.e3(c, this.wr)
- },
- update: function(c) {
- c = 0 | c * this.wr;
- for (var d = this.ya, e, g = r(0, 0), h = this.qp, k = 0; k < this.wr; k++) e = h[k], g.x = 0 | e / d.height, g.y = e % (0 | d.height), k < c ? this.u3(g) : this.v3(g)
- }
- });
- f.mU.create = function(c, d, e) {
- return new f.mU(c, d, e)
- };
- f.m8 = f.Ne.extend({
- Zj: 0,
- oc: 0,
- pc: 0,
- ctor: function(c, d, e, g) {
- f.we.prototype.ctor.call(this);
- void 0 !== g && this.f(c, d, e, g)
- },
- JB: function() {
- return this.oc
- },
- DC: function(c) {
- this.oc = c
- },
- vx: function() {
- return this.pc
- },
- Wx: function(c) {
- this.pc = c
- },
- f: function(c, d, e, g) {
- return f.Ne.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1
- },
- update: function(c) {
- for (var d = this.ya, e = this.Zj, g = this.oc, h = this.pc, k = r(0, 0), m, n = 0; n < d.width; n++)
- for (var p = 0; p < d.height; p++) k.x = n, k.y = p, m = this.kl(k), m.T.z = Math.sin(c * Math.PI * e *
- 2 + 0.01 * (m.T.y + m.T.x)) * g * h, m.aa.z = m.T.z, m.Z.z = m.T.z, m.W.z = m.T.z, this.yj(k, m)
- }
- });
- f.m8.create = function(c, d, e, g) {
- return new f.m8(c, d, e, g)
- };
- f.G5 = f.Ne.extend({
- Zq: 0,
- oc: 0,
- pc: 0,
- ctor: function(c, d, e, g) {
- f.we.prototype.ctor.call(this);
- void 0 !== g && this.f(c, d, e, g)
- },
- JB: function() {
- return this.oc
- },
- DC: function(c) {
- this.oc = c
- },
- vx: function() {
- return this.pc
- },
- Wx: function(c) {
- this.pc = c
- },
- f: function(c, d, e, g) {
- return f.Ne.prototype.f.call(this, c, d) ? (this.Zq = e, this.oc = g, this.pc = 1, !0) : !1
- },
- update: function(c) {
- var d = Math.sin(Math.PI * c * this.Zq * 2) * this.oc * this.pc;
- c = Math.sin(Math.PI * (c * this.Zq * 2 + 1)) * this.oc * this.pc;
- for (var e = this.ya, g = this.target.grid, h, k = r(0, 0), m = 0; m <
- e.width; m++)
- for (var n = 0; n < e.height; n++) k.x = m, k.y = n, h = g.kl(k), 0 == (m + n) % 2 ? (h.T.z += d, h.aa.z += d, h.Z.z += d, h.W.z += d) : (h.T.z += c, h.aa.z += c, h.Z.z += c, h.W.z += c), g.yj(k, h)
- }
- });
- f.G5.create = function(c, d, e, g) {
- return new f.G5(c, d, e, g)
- };
- f.QT = f.Ne.extend({
- dua: 0,
- SG: null,
- ctor: function(c, d) {
- f.we.prototype.ctor.call(this);
- void 0 !== d && this.f(c, d)
- },
- f: function(c, d) {
- this.dua = d;
- return f.Ne.prototype.f.call(this, c, t(1, d))
- },
- update: function(c) {
- for (var d = this.ya, e = this.SG.width, g, h, k = r(0, 0), m = 0; m < d.height; ++m) k.y = m, g = this.kl(k), h = 1, 0 == m % 2 && (h = -1), g.T.x += h * e * c, g.aa.x += h * e * c, g.Z.x += h * e * c, g.W.x += h * e * c, this.yj(k, g)
- },
- R: function(c) {
- f.Ne.prototype.R.call(this, c);
- this.SG = f.Q.KH()
- }
- });
- f.QT.create = function(c, d) {
- return new f.QT(c, d)
- };
- f.PT = f.Ne.extend({
- Pqa: 0,
- SG: null,
- ctor: function(c, d) {
- f.we.prototype.ctor.call(this);
- void 0 !== d && this.f(c, d)
- },
- f: function(c, d) {
- this.Pqa = d;
- return f.Ne.prototype.f.call(this, c, t(d, 1))
- },
- update: function(c) {
- for (var d = this.ya.width, e = this.SG.height, g, h, k = r(0, 0), m = 0; m < d; ++m) k.x = m, g = this.kl(k), h = 1, 0 == m % 2 && (h = -1), g.T.y += h * e * c, g.aa.y += h * e * c, g.Z.y += h * e * c, g.W.y += h * e * c, this.yj(k, g)
- },
- R: function(c) {
- f.Ne.prototype.R.call(this, c);
- this.SG = f.Q.KH()
- }
- });
- f.PT.create = function(c, d) {
- return new f.PT(c, d)
- };
- f.lK = f.Zf.extend({
- update: function(c) {
- var d = Math.max(0, c - 0.25),
- d = -100 - d * d * 500,
- e = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(c);
- c = Math.sin(e);
- for (var e = Math.cos(e), g = this.ya, h = r(0, 0), k = 0; k <= g.width; ++k)
- for (var m = 0; m <= g.height; ++m) {
- h.x = k;
- h.y = m;
- var n = this.zf(h),
- p = Math.sqrt(n.x * n.x + (n.y - d) * (n.y - d)),
- s = p * c,
- u = Math.asin(n.x / p) / c,
- v = Math.cos(u);
- n.x = u <= Math.PI ? s * Math.sin(u) : 0;
- n.y = p + d - s * (1 - v) * c;
- n.z = s * (1 - v) * e / 7;
- 0.5 > n.z && (n.z = 0.5);
- this.Ah(h, n)
- }
- }
- });
- f.lK.create = function(c, d) {
- return new f.lK(c, d)
- };
- f.bc = f.ja.extend({
- zc: null,
- fp: 0,
- le: null,
- tn: null,
- Bv: null,
- mh: !1,
- ta: "ProgressTimer",
- CAa: function() {
- return r(this.tn.x, this.tn.y)
- },
- hHa: function(c) {
- this.tn = f.Gfa(c)
- },
- Bza: function() {
- return r(this.Bv.x, this.Bv.y)
- },
- AGa: function(c) {
- this.Bv = f.Gfa(c)
- },
- IH: function() {
- return this.zc
- },
- SAa: function() {
- return this.fp
- },
- o0: function() {
- return this.le
- },
- tha: function(c) {
- this.fp != c && (this.fp = f.Rf(c, 0, 100), this.$Y())
- },
- ee: function() {},
- vg: function() {
- return !1
- },
- bDa: function() {
- return this.mh
- },
- iV: function(c) {
- if (c < f.bc.o7) {
- var d = f.bc.Joa;
- return this.mh ? r(d >> 7 - (c << 1) & 1, d >> 7 - ((c << 1) + 1) & 1) : r(d >> (c << 1) + 1 & 1, d >> (c << 1) & 1)
- }
- return r(0, 0)
- },
- bN: null,
- Gw: 270,
- YV: 270,
- Zi: 0,
- BV: !1,
- dV: null,
- Og: 0,
- af: null,
- Yj: null,
- gZ: null,
- OG: !1,
- ctor: null,
- aF: function() {
- f.ja.prototype.ctor.call(this);
- this.zc = f.bc.Co;
- this.fp = 0;
- this.tn = r(0, 0);
- this.Bv = r(0, 0);
- this.mh = !1;
- this.le = null;
- this.bN = r(0, 0);
- this.YV = this.Gw = 270;
- this.Zi = 0;
- this.BV = !1;
- this.dV = x(0, 0, 0, 0)
- },
- bF: function() {
- f.ja.prototype.ctor.call(this);
- this.zc = f.bc.Co;
- this.fp = 0;
- this.tn = r(0, 0);
- this.Bv = r(0, 0);
- this.mh = !1;
- this.le =
- null;
- this.gZ = f.s.createBuffer();
- this.Og = 0;
- this.Yj = this.af = null;
- this.OG = !1
- },
- F: function(c) {
- this.le.color = c;
- this.Jd()
- },
- J: function(c) {
- this.le.opacity = c;
- this.Jd()
- },
- $a: function() {
- return this.le.color
- },
- vb: function() {
- return this.le.opacity
- },
- Kha: null,
- Dua: function(c) {
- this.mh !== c && (this.mh = c)
- },
- Eua: function(c) {
- this.mh !== c && (this.mh = c, this.Yj = this.af = null, this.Og = 0)
- },
- xR: null,
- Jua: function(c) {
- this.le != c && (this.le = c, this.width = this.le.width, this.height = this.le.height)
- },
- Kua: function(c) {
- c && this.le != c && (this.le = c, this.width =
- c.width, this.height = c.height, this.af && (this.Yj = this.af = null, this.Og = 0))
- },
- aJ: null,
- Sua: function(c) {
- c !== this.zc && (this.zc = c)
- },
- Tua: function(c) {
- c !== this.zc && (this.af && (this.Yj = this.af = null, this.Og = 0), this.zc = c)
- },
- I2: null,
- Bua: function(c) {
- this.mh !== c && (this.mh = c)
- },
- Cua: function(c) {
- this.mh !== c && (this.mh = c, this.Yj = this.af = null, this.Og = 0)
- },
- ui: function(c) {
- var d = this.le;
- if (!d) return {
- Da: 0,
- ga: 0
- };
- var e = d.quad,
- g = r(e.T.t.Da, e.T.t.ga),
- e = r(e.W.t.Da, e.W.t.ga);
- d.textureRectRotated && (d = c.x, c.x = c.y, c.y = d);
- return {
- Da: g.x * (1 -
- c.x) + e.x * c.x,
- ga: g.y * (1 - c.y) + e.y * c.y
- }
- },
- wi: function(c) {
- if (!this.le) return {
- x: 0,
- y: 0
- };
- var d = this.le.quad,
- e = r(d.T.k.x, d.T.k.y),
- d = r(d.W.k.x, d.W.k.y);
- return {
- x: e.x * (1 - c.x) + d.x * c.x,
- y: e.y * (1 - c.y) + d.y * c.y
- }
- },
- H0: null,
- Bsa: function(c) {
- this.percentage = 0;
- this.anchorY = this.anchorX = 0.5;
- this.zc = f.bc.Co;
- this.mh = !1;
- this.midPoint = r(0.5, 0.5);
- this.barChangeRate = r(1, 1);
- this.sprite = c;
- return !0
- },
- Csa: function(c) {
- this.percentage = 0;
- this.Yj = this.af = null;
- this.Og = 0;
- this.anchorY = this.anchorX = 0.5;
- this.zc = f.bc.Co;
- this.mh = !1;
- this.midPoint =
- r(0.5, 0.5);
- this.barChangeRate = r(1, 1);
- this.sprite = c;
- this.shaderProgram = f.xg.be(f.zo);
- return !0
- },
- ma: null,
- Rq: function(c) {
- c = c || f.s;
- var d = this.le;
- d.gA && (c.globalCompositeOperation = "lighter");
- var e = f.view.ka,
- g = f.view.ra;
- c.globalAlpha = d.kb / 255;
- var h = d.Ta,
- k = d.m,
- m = d.od,
- n = d.VV,
- p = 0 | m.x,
- s = -m.y - h.height,
- u = d.YA;
- n.width = h.width * e;
- n.height = h.height * g;
- c.save();
- d.Fb && (p = -m.x - h.width, c.scale(-1, 1));
- d.Hb && (s = m.y, c.scale(1, -1));
- p *= e;
- s *= g;
- this.zc == f.bc.sv ? (h = this.dV, c.beginPath(), c.rect(h.x * e, h.y * g, h.width * e, h.height * g),
- c.clip(), c.closePath()) : this.zc == f.bc.Co && (h = this.bN.x * e, m = this.bN.y * g, c.beginPath(), c.arc(h, m, this.Zi * g, Math.PI / 180 * this.Gw, Math.PI / 180 * this.YV, this.BV), c.lineTo(h, m), c.clip(), c.closePath());
- d.fa && u.$C ? (e = d.fa.md, this.rL ? c.drawImage(e, 0, 0, u.width, u.height, p, s, n.width, n.height) : c.drawImage(e, u.x, u.y, u.width, u.height, p, s, n.width, n.height)) : 0 !== k.width && (n = this.color, c.fillStyle = "rgba(" + n.r + "," + n.g + "," + n.b + ",1)", c.fillRect(p, s, k.width * e, k.height * g));
- c.restore();
- f.el()
- },
- fn: function(c) {
- c = c || f.s;
- if (this.af &&
- this.le) {
- f.qC(this);
- var d = this.le.ck();
- f.Fm(d.src, d.ha);
- f.wf(f.tv);
- f.Ai(this.le.texture);
- c.bindBuffer(c.ARRAY_BUFFER, this.gZ);
- this.OG && (c.bufferData(c.ARRAY_BUFFER, this.Yj, c.DYNAMIC_DRAW), this.OG = !1);
- d = f.Zg.BYTES_PER_ELEMENT;
- c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, d, 0);
- c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, d, 8);
- c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, d, 12);
- this.zc === f.bc.Co ? c.drawArrays(c.TRIANGLE_FAN, 0, this.Og) : this.zc == f.bc.sv && (this.mh ? (c.drawArrays(c.TRIANGLE_STRIP, 0, this.Og / 2), c.drawArrays(c.TRIANGLE_STRIP,
- 4, this.Og / 2), f.bl++) : c.drawArrays(c.TRIANGLE_STRIP, 0, this.Og));
- f.bl++
- }
- },
- Bva: function() {
- if (this.le) {
- var c, d = this.tn;
- c = this.fp / 100;
- var e = r(d.x, 1),
- g = f.nEa(e, d, 2 * f.PI * (this.mh ? c : 1 - c)),
- h = 0;
- if (0 == c) g = e, h = 0;
- else if (1 == c) g = e, h = 4;
- else {
- var k = f.gv,
- m = f.bc.o7;
- for (c = 0; c <= m; ++c) {
- var n = this.iV(c % m),
- p = this.iV((c + (m - 1)) % m);
- 0 == c ? p = f.Lfa(n, p, 1 - d.x) : 4 == c && (n = f.Lfa(n, p, 1 - d.x));
- var s = r(0, 0);
- f.z1(n, p, d, g, s) && (0 != c && 4 != c || 0 <= s.x && 1 >= s.x) && 0 <= s.y && s.y < k && (k = s.y, h = c)
- }
- g = f.Tp(d, f.Up(f.gc(g, d), k))
- }
- k = !0;
- this.Og != h + 3 && (k = !1, this.Yj =
- this.af = null, this.Og = 0);
- if (!this.af) {
- m = this.Og = h + 3;
- n = f.Zg.BYTES_PER_ELEMENT;
- this.Yj = new ArrayBuffer(m * n);
- p = [];
- for (c = 0; c < m; c++) p[c] = new f.Zg(null, null, null, this.Yj, c * n);
- this.af = p;
- if (!this.af) {
- f.log("cc.ProgressTimer._updateRadial() : Not enough memory");
- return
- }
- }
- this.Jd();
- m = this.af;
- if (!k)
- for (m[0].t = this.ui(d), m[0].k = this.wi(d), m[1].t = this.ui(e), m[1].k = this.wi(e), c = 0; c < h; c++) d = this.iV(c), m[c + 2].t = this.ui(d), m[c + 2].k = this.wi(d);
- m[this.Og - 1].t = this.ui(g);
- m[this.Og - 1].k = this.wi(g)
- }
- },
- tva: function() {
- if (this.le) {
- var c,
- d = this.fp / 100,
- e = this.Bv,
- e = f.Up(r(1 - e.x + d * e.x, 1 - e.y + d * e.y), 0.5),
- d = f.gc(this.tn, e),
- e = f.Tp(this.tn, e);
- 0 > d.x && (e.x += -d.x, d.x = 0);
- 1 < e.x && (d.x -= e.x - 1, e.x = 1);
- 0 > d.y && (e.y += -d.y, d.y = 0);
- 1 < e.y && (d.y -= e.y - 1, e.y = 1);
- if (this.mh) {
- if (!this.af) {
- this.Og = 8;
- var g = f.Zg.BYTES_PER_ELEMENT;
- this.Yj = new ArrayBuffer(8 * g);
- var h = [];
- for (c = 0; 8 > c; c++) h[c] = new f.Zg(null, null, null, this.Yj, c * g);
- h[0].t = this.ui(r(0, 1));
- h[0].k = this.wi(r(0, 1));
- h[1].t = this.ui(r(0, 0));
- h[1].k = this.wi(r(0, 0));
- h[6].t = this.ui(r(1, 1));
- h[6].k = this.wi(r(1, 1));
- h[7].t =
- this.ui(r(1, 0));
- h[7].k = this.wi(r(1, 0));
- this.af = h
- }
- c = this.af;
- c[2].t = this.ui(r(d.x, e.y));
- c[2].k = this.wi(r(d.x, e.y));
- c[3].t = this.ui(r(d.x, d.y));
- c[3].k = this.wi(r(d.x, d.y));
- c[4].t = this.ui(r(e.x, e.y));
- c[4].k = this.wi(r(e.x, e.y));
- c[5].t = this.ui(r(e.x, d.y));
- c[5].k = this.wi(r(e.x, d.y))
- } else {
- if (!this.af)
- for (this.Og = 4, g = f.Zg.BYTES_PER_ELEMENT, this.Yj = new ArrayBuffer(4 * g), this.af = [], c = 0; 4 > c; c++) this.af[c] = new f.Zg(null, null, null, this.Yj, c * g);
- c = this.af;
- c[0].t = this.ui(r(d.x, e.y));
- c[0].k = this.wi(r(d.x, e.y));
- c[1].t =
- this.ui(r(d.x, d.y));
- c[1].k = this.wi(r(d.x, d.y));
- c[2].t = this.ui(r(e.x, e.y));
- c[2].k = this.wi(r(e.x, e.y));
- c[3].t = this.ui(r(e.x, d.y));
- c[3].k = this.wi(r(e.x, d.y))
- }
- this.Jd()
- }
- },
- Jd: function() {
- if (this.le && this.af) {
- for (var c = this.le.quad.Z.D, d = this.af, e = 0, g = this.Og; e < g; ++e) d[e].D = c;
- this.OG = !0
- }
- },
- $Y: null,
- xva: function() {
- var c = this.le,
- d = c.width,
- e = c.height,
- g = this.tn;
- if (this.zc == f.bc.Co) {
- this.Zi = Math.round(Math.sqrt(d * d + e * e));
- var h, k = !1,
- m = this.bN;
- m.x = d * g.x;
- m.y = -e * g.y;
- this.mh ? (h = 270, g = 270 - 3.6 * this.fp) : (g = -90, h = -90 + 3.6 *
- this.fp);
- c.Fb && (m.x -= 2 * d * this.tn.x, g = -g - 180, h = -h - 180, k = !k);
- c.Hb && (m.y += 2 * e * this.tn.y, k = !k, g = -g, h = -h);
- this.Gw = g;
- this.YV = h;
- this.BV = k
- } else {
- h = this.Bv;
- m = this.fp / 100;
- k = this.dV;
- h = t(d * (1 - h.x), e * (1 - h.y));
- var m = t((d - h.width) * m, (e - h.height) * m),
- m = t(h.width + m.width, h.height + m.height),
- n = r(d * g.x, e * g.y);
- h = n.x - m.width / 2;
- 0.5 < g.x && m.width / 2 >= d - n.x && (h = d - m.width);
- d = n.y - m.height / 2;
- 0.5 < g.y && m.height / 2 >= e - n.y && (d = e - m.height);
- k.x = 0;
- e = 1;
- c.Fb && (k.x -= m.width, e = -1);
- 0 < h && (k.x += h * e);
- k.y = 0;
- e = 1;
- c.Hb && (k.y += m.height, e = -1);
- 0 < d && (k.y -=
- d * e);
- k.width = m.width;
- k.height = -m.height
- }
- },
- yva: function() {
- var c = this.zc;
- c === f.bc.Co ? this.Bva() : c === f.bc.sv && this.tva();
- this.OG = !0
- }
- });
- q = f.bc.prototype;
- f.K == f.na ? (q.ctor = q.bF, q.Kha = q.Eua, q.xR = q.Kua, q.aJ = q.Tua, q.I2 = q.Cua, q.H0 = q.Csa, q.ma = q.fn, q.$Y = q.yva) : (q.ctor = q.aF, q.Kha = q.Dua, q.xR = q.Jua, q.aJ = q.Sua, q.I2 = q.Bua, q.H0 = q.Bsa, q.ma = q.Rq, q.$Y = f.bc.prototype.xva);
- f.d(q, "midPoint", q.CAa, q.hHa);
- f.d(q, "barChangeRate", q.Bza, q.AGa);
- f.d(q, "type", q.IH, q.aJ);
- f.d(q, "percentage", q.SAa, q.tha);
- f.d(q, "sprite", q.o0, q.xR);
- f.d(q, "reverseDir", q.bDa, q.I2);
- f.bc.create = function(c) {
- var d = new f.bc;
- return d.H0(c) ? d : null
- };
- f.bc.o7 = 4;
- f.bc.Joa = 75;
- f.bc.Co = 0;
- f.bc.sv = 1;
- f.tT = f.M.extend({
- Nf: 0,
- Tc: 0,
- ctor: function(c, d) {
- f.M.prototype.ctor.call(this);
- this.Tc = this.Nf = 0;
- void 0 !== d && this.f(c, d)
- },
- f: function(c, d) {
- return f.M.prototype.f.call(this, c) ? (this.Nf = d, !0) : !1
- },
- p: function() {
- var c = new f.tT;
- c.f(this.C, this.Nf);
- return c
- },
- reverse: function() {
- f.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
- return null
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.Tc = c.percentage;
- 100 == this.Tc && (this.Tc = 0)
- },
- update: function(c) {
- this.target instanceof f.bc && (this.target.percentage =
- this.Tc + (this.Nf - this.Tc) * c)
- }
- });
- f.tT.create = function(c, d) {
- return new f.tT(c, d)
- };
- f.eE = f.M.extend({
- Nf: 0,
- Tc: 0,
- ctor: function(c, d, e) {
- f.M.prototype.ctor.call(this);
- this.Tc = this.Nf = 0;
- void 0 !== e && this.f(c, d, e)
- },
- f: function(c, d, e) {
- return f.M.prototype.f.call(this, c) ? (this.Nf = e, this.Tc = d, !0) : !1
- },
- p: function() {
- var c = new f.eE;
- c.f(this.C, this.Tc, this.Nf);
- return c
- },
- reverse: function() {
- return f.eE.create(this.C, this.Nf, this.Tc)
- },
- R: function(c) {
- f.M.prototype.R.call(this, c)
- },
- update: function(c) {
- this.target instanceof f.bc && (this.target.percentage = this.Tc + (this.Nf - this.Tc) * c)
- }
- });
- f.eE.create = function(c, d, e) {
- return new f.eE(c, d, e)
- };
- f.iE = 4208917214;
- f.cNa = f.N.extend({
- ak: function() {}
- });
- f.TMa = 0;
- f.As = 1;
- f.DK = 0;
- f.SMa = 1;
- f.xb = f.tq.extend({
- lb: null,
- uc: null,
- C: null,
- on: !1,
- M$: !1,
- ta: "TransitionScene",
- ctor: function(c, d) {
- f.tq.prototype.ctor.call(this);
- void 0 !== c && void 0 !== d && this.f(c, d)
- },
- Vaa: function() {
- this.Tu(this.Vaa);
- var c = f.Q;
- this.M$ = c.Jt;
- c.f2(this.lb);
- f.Qa.Lb(!0);
- this.uc.visible = !0
- },
- op: function() {
- this.on = !0
- },
- ma: function() {
- this.on ? (this.uc.I(), this.lb.I()) : (this.lb.I(), this.uc.I())
- },
- ba: function() {
- f.v.prototype.ba.call(this);
- f.Qa.Lb(!1);
- this.uc.uh();
- this.lb.ba()
- },
- Ra: function() {
- f.v.prototype.Ra.call(this);
- f.Qa.Lb(!0);
- this.uc.Ra();
- this.lb.sj()
- },
- De: function() {
- f.v.prototype.De.call(this);
- this.M$ && this.uc.De()
- },
- f: function(c, d) {
- if (!d) throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil";
- if (this.j()) {
- this.C = c;
- this.Wa({
- x: 0,
- y: 0,
- anchorX: 0,
- anchorY: 0
- });
- this.lb = d;
- this.uc = f.Q.mg;
- this.uc || (this.uc = f.tq.create(), this.uc.j());
- if (this.lb == this.uc) throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene";
- this.op();
- return !0
- }
- return !1
- },
- finish: function() {
- this.lb.Wa({
- visible: !0,
- x: 0,
- y: 0,
- scale: 1,
- rotation: 0
- });
- f.K === f.na && this.lb.yx().restore();
- this.uc.Wa({
- visible: !1,
- x: 0,
- y: 0,
- scale: 1,
- rotation: 0
- });
- f.K === f.na && this.uc.yx().restore();
- this.Ux(this.Vaa, 0)
- },
- EP: function() {
- this.lb.visible = !0;
- this.uc.visible = !1
- }
- });
- f.xb.create = function(c, d) {
- return new f.xb(c, d)
- };
- f.Es = f.xb.extend({
- mw: 0,
- f: function(c, d, e) {
- f.xb.prototype.f.call(this, c, d) && (this.mw = e);
- return !0
- }
- });
- f.Es.create = function(c, d, e) {
- var g = new f.Es;
- g.f(c, d, e);
- return g
- };
- f.V7 = f.xb.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- this.lb.Wa({
- scale: 0.001,
- anchorX: 0.5,
- anchorY: 0.5
- });
- this.uc.Wa({
- scale: 1,
- anchorX: 0.5,
- anchorY: 0.5
- });
- var c = f.X.create(f.fe.create(f.Ty.create(this.C / 2, 0.001), f.Ry.create(this.C / 2, 720)), f.Nb.create(this.C / 2));
- this.uc.V(c);
- this.lb.V(f.X.create(c.reverse(), f.ua.create(this.finish, this)))
- }
- });
- f.V7.create = function(c, d) {
- var e = new f.V7;
- return null != e && e.f(c, d) ? e : null
- };
- f.K7 = f.xb.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c = f.Q.Y;
- this.lb.Wa({
- scale: 0.5,
- x: c.width,
- y: 0,
- anchorX: 0.5,
- anchorY: 0.5
- });
- this.uc.anchorX = 0.5;
- this.uc.anchorY = 0.5;
- var d = f.xo.create(this.C / 4, r(-c.width, 0), c.width / 4, 2),
- e = f.Db.create(this.C / 4, 1),
- c = f.Db.create(this.C / 4, 0.5),
- c = f.X.create(c, d),
- d = f.X.create(d, e),
- e = f.Nb.create(this.C / 2);
- this.uc.V(c);
- this.lb.V(f.X.create(e, d, f.ua.create(this.finish, this)))
- }
- });
- f.K7.create = function(c, d) {
- var e = new f.K7;
- return null != e && e.f(c, d) ? e : null
- };
- f.wE = f.xb.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- this.Mr();
- var c = this.action();
- this.lb.V(f.X.create(this.ak(c), f.ua.create(this.finish, this)))
- },
- Mr: function() {
- this.lb.o(-f.Q.Y.width, 0)
- },
- action: function() {
- return f.Dc.create(this.C, r(0, 0))
- },
- ak: function(c) {
- return f.vs.create(c, 2)
- }
- });
- f.wE.create = function(c, d) {
- var e = new f.wE;
- return null != e && e.f(c, d) ? e : null
- };
- f.M7 = f.wE.extend({
- Mr: function() {
- this.lb.o(f.Q.Y.width, 0)
- }
- });
- f.M7.create = function(c, d) {
- var e = new f.M7;
- return null != e && e.f(c, d) ? e : null
- };
- f.N7 = f.wE.extend({
- Mr: function() {
- this.lb.o(0, f.Q.Y.height)
- }
- });
- f.N7.create = function(c, d) {
- var e = new f.N7;
- return null != e && e.f(c, d) ? e : null
- };
- f.L7 = f.wE.extend({
- Mr: function() {
- this.lb.o(0, -f.Q.Y.height)
- }
- });
- f.L7.create = function(c, d) {
- var e = new f.L7;
- return null != e && e.f(c, d) ? e : null
- };
- f.ps = 0.5;
- f.xE = f.xb.extend({
- op: function() {
- this.on = !1
- },
- ba: function() {
- f.xb.prototype.ba.call(this);
- this.Mr();
- var c = this.action(),
- d = this.action(),
- c = this.ak(c),
- d = f.X.create(this.ak(d), f.ua.create(this.finish, this));
- this.lb.V(c);
- this.uc.V(d)
- },
- Mr: function() {
- this.lb.o(-f.Q.Y.width + f.ps, 0)
- },
- action: function() {
- return f.vk.create(this.C, r(f.Q.Y.width - f.ps, 0))
- },
- ak: function(c) {
- return f.vs.create(c, 2)
- }
- });
- f.xE.create = function(c, d) {
- var e = new f.xE;
- return null != e && e.f(c, d) ? e : null
- };
- f.Y7 = f.xE.extend({
- op: function() {
- this.on = !0
- },
- Mr: function() {
- this.lb.o(f.Q.Y.width - f.ps, 0)
- },
- action: function() {
- return f.vk.create(this.C, r(-(f.Q.Y.width - f.ps), 0))
- }
- });
- f.Y7.create = function(c, d) {
- var e = new f.Y7;
- return null != e && e.f(c, d) ? e : null
- };
- f.X7 = f.xE.extend({
- op: function() {
- this.on = !1
- },
- Mr: function() {
- this.lb.o(0, f.Q.Y.height - f.ps)
- },
- action: function() {
- return f.vk.create(this.C, r(0, -(f.Q.Y.height - f.ps)))
- }
- });
- f.X7.create = function(c, d) {
- var e = new f.X7;
- return null != e && e.f(c, d) ? e : null
- };
- f.Z7 = f.xE.extend({
- op: function() {
- this.on = !0
- },
- Mr: function() {
- this.lb.o(0, -(f.Q.Y.height - f.ps))
- },
- action: function() {
- return f.vk.create(this.C, r(0, f.Q.Y.height - f.ps))
- }
- });
- f.Z7.create = function(c, d) {
- var e = new f.Z7;
- return null != e && e.f(c, d) ? e : null
- };
- f.W7 = f.xb.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- this.lb.Wa({
- scale: 0.001,
- anchorX: 2 / 3,
- anchorY: 0.5
- });
- this.uc.Wa({
- scale: 1,
- anchorX: 1 / 3,
- anchorY: 0.5
- });
- var c = f.Db.create(this.C, 0.01),
- d = f.Db.create(this.C, 1);
- this.lb.V(this.ak(d));
- this.uc.V(f.X.create(this.ak(c), f.ua.create(this.finish, this)))
- },
- ak: function(c) {
- return f.vs.create(c, 2)
- }
- });
- f.W7.create = function(c, d) {
- var e = new f.W7;
- return null != e && e.f(c, d) ? e : null
- };
- f.I7 = f.Es.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c, d;
- this.lb.visible = !1;
- var e;
- this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
- c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, 0, 0), f.ua.create(this.finish, this));
- d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 0, 0), f.Hl.create(), f.Nb.create(this.C / 2));
- this.lb.V(c);
- this.uc.V(d)
- }
- });
- f.I7.create = function(c, d, e) {
- null == e && (e = f.As);
- var g = new f.I7;
- g.f(c, d, e);
- return g
- };
- f.J7 = f.Es.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c, d;
- this.lb.visible = !1;
- var e;
- this.mw == f.DK ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
- c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, 90, 0), f.ua.create(this.finish, this));
- d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 90, 0), f.Hl.create(), f.Nb.create(this.C / 2));
- this.lb.V(c);
- this.uc.V(d)
- }
- });
- f.J7.create = function(c, d, e) {
- null == e && (e = f.DK);
- var g = new f.J7;
- g.f(c, d, e);
- return g
- };
- f.H7 = f.Es.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c, d;
- this.lb.visible = !1;
- var e;
- this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
- c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, -45, 0), f.ua.create(this.finish, this));
- d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 45, 0), f.Hl.create(), f.Nb.create(this.C / 2));
- this.lb.V(c);
- this.uc.V(d)
- }
- });
- f.H7.create = function(c, d, e) {
- null == e && (e = f.As);
- var g = new f.H7;
- g.f(c, d, e);
- return g
- };
- f.d8 = f.Es.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c, d;
- this.lb.visible = !1;
- var e;
- this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
- c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, 0, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.ua.create(this.finish, this));
- d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 0, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2));
- this.lb.scale = 0.5;
- this.lb.V(c);
- this.uc.V(d)
- }
- });
- f.d8.create = function(c, d, e) {
- null == e && (e = f.As);
- var g = new f.d8;
- g.f(c, d, e);
- return g
- };
- f.e8 = f.Es.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c, d;
- this.lb.visible = !1;
- var e;
- this.mw === f.DK ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
- c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, 90, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.ua.create(this.finish, this));
- d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 90, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2));
- this.lb.scale = 0.5;
- this.lb.V(c);
- this.uc.V(d)
- }
- });
- f.e8.create = function(c, d, e) {
- null == e && (e = f.DK);
- var g = new f.e8;
- g.f(c, d, e);
- return g
- };
- f.c8 = f.Es.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c, d;
- this.lb.visible = !1;
- var e;
- this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
- c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, -45, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.Ej.create(), f.ua.create(this.finish, this));
- d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 45, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2));
- this.lb.scale = 0.5;
- this.lb.V(c);
- this.uc.V(d)
- }
- });
- f.c8.create = function(c, d, e) {
- null == e && (e = f.As);
- var g = new f.c8;
- g.f(c, d, e);
- return g
- };
- f.D7 = f.xb.extend({
- Ea: null,
- ctor: function() {
- f.xb.prototype.ctor.call(this);
- this.Ea = f.color()
- },
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c = f.$f.create(this.Ea);
- this.lb.visible = !1;
- this.n(c, 2, f.iE);
- var c = this.Za(f.iE),
- d = f.X.create(f.Fy.create(this.C / 2), f.ua.create(this.EP, this), f.Gy.create(this.C / 2), f.ua.create(this.finish, this));
- c.V(d)
- },
- Ra: function() {
- f.xb.prototype.Ra.call(this);
- this.te(f.iE, !1)
- },
- f: function(c, d, e) {
- e = e || f.color.BLACK;
- f.xb.prototype.f.call(this, c, d) && (this.Ea.r = e.r, this.Ea.g = e.g, this.Ea.b =
- e.b, this.Ea.a = 0);
- return !0
- }
- });
- f.D7.create = function(c, d, e) {
- var g = new f.D7;
- g.f(c, d, e);
- return g
- };
- f.C7 = f.xb.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c = f.color(0, 0, 0, 0),
- d = f.Q.Y,
- c = f.$f.create(c),
- e = f.nv.create(d.width, d.height);
- if (null != e) {
- e.sprite.anchorX = 0.5;
- e.sprite.anchorY = 0.5;
- e.Wa({
- x: d.width / 2,
- y: d.height / 2,
- anchorX: 0.5,
- anchorY: 0.5
- });
- e.Qn();
- this.lb.I();
- e.end();
- var g = f.nv.create(d.width, d.height);
- g.o(d.width / 2, d.height / 2);
- g.sprite.anchorX = g.anchorX = 0.5;
- g.sprite.anchorY = g.anchorY = 0.5;
- g.Qn();
- this.uc.I();
- g.end();
- e.sprite.ce(f.ONE, f.ONE);
- g.sprite.ce(f.SRC_ALPHA, f.ONE_MINUS_SRC_ALPHA);
- c.n(e);
- c.n(g);
- e.sprite.opacity = 255;
- g.sprite.opacity = 255;
- d = f.X.create(f.Xc.create(this.C, 0), f.ua.create(this.EP, this), f.ua.create(this.finish, this));
- g.sprite.V(d);
- this.n(c, 2, f.iE)
- }
- },
- Ra: function() {
- this.te(f.iE, !1);
- f.xb.prototype.Ra.call(this)
- },
- ma: function() {}
- });
- f.C7.create = function(c, d) {
- var e = new f.C7;
- e.f(c, d);
- return e
- };
- f.b8 = f.xb.extend({
- op: function() {
- this.on = !1
- },
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c = f.Q.Y,
- c = f.mU.create(this.C, t(0 | c.width / c.height * 12, 12)),
- c = this.ak(c);
- this.uc.V(f.X.create(c, f.ua.create(this.finish, this), f.qv.create()))
- },
- ak: function(c) {
- return c
- }
- });
- f.b8.create = function(c, d) {
- var e = new f.b8;
- return null != e && e.f(c, d) ? e : null
- };
- f.kU = f.xb.extend({
- ba: function() {
- f.xb.prototype.ba.call(this);
- this.lb.visible = !1;
- var c = this.action(),
- c = f.X.create(c, f.ua.create(this.EP, this), c.reverse());
- this.V(f.X.create(this.ak(c), f.ua.create(this.finish, this), f.qv.create()))
- },
- ak: function(c) {
- return f.Cy.create(c, 3)
- },
- action: function() {
- return f.PT.create(this.C / 2, 3)
- }
- });
- f.kU.create = function(c, d) {
- var e = new f.kU;
- return null != e && e.f(c, d) ? e : null
- };
- f.a8 = f.kU.extend({
- action: function() {
- return f.QT.create(this.C / 2, 3)
- }
- });
- f.a8.create = function(c, d) {
- var e = new f.a8;
- return null != e && e.f(c, d) ? e : null
- };
- f.vE = f.xb.extend({
- op: function() {
- this.on = !1
- },
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c = f.Q.Y,
- c = this.hB(t(0 | c.width / c.height * 12, 12));
- this.uc.V(f.X.create(this.ak(c), f.ua.create(this.finish, this), f.qv.create()))
- },
- ak: function(c) {
- return c
- },
- hB: function(c) {
- return f.XD.create(this.C, c)
- }
- });
- f.vE.create = function(c, d) {
- var e = new f.vE;
- return null != e && e.f(c, d) ? e : null
- };
- f.E7 = f.vE.extend({
- hB: function(c) {
- return f.OS.create(this.C, c)
- }
- });
- f.E7.create = function(c, d) {
- var e = new f.E7;
- return null != e && e.f(c, d) ? e : null
- };
- f.G7 = f.vE.extend({
- hB: function(c) {
- return f.bK.create(this.C, c)
- }
- });
- f.G7.create = function(c, d) {
- var e = new f.G7;
- return null != e && e.f(c, d) ? e : null
- };
- f.F7 = f.vE.extend({
- hB: function(c) {
- return f.PS.create(this.C, c)
- }
- });
- f.F7.create = function(c, d) {
- var e = new f.F7;
- return null != e && e.f(c, d) ? e : null
- };
- f.a7 = 49153;
- f.Ds = f.xb.extend({
- Nf: 0,
- Tc: 0,
- yN: null,
- ta: "TransitionProgress",
- Bw: function(c, d, e) {
- c.Wa({
- x: d,
- y: e,
- anchorX: 0.5,
- anchorY: 0.5
- })
- },
- ba: function() {
- f.xb.prototype.ba.call(this);
- this.bba();
- var c = f.Q.Y,
- d = f.nv.create(c.width, c.height);
- d.sprite.anchorX = 0.5;
- d.sprite.anchorY = 0.5;
- this.Bw(d, c.width / 2, c.height / 2);
- d.clear(0, 0, 0, 1);
- d.Qn();
- this.yN.I();
- d.end();
- this.yN == this.uc && this.EP();
- c = this.uw(d);
- d = f.X.create(f.eE.create(this.C, this.Tc, this.Nf), f.ua.create(this.finish, this));
- c.V(d);
- this.n(c, 2, f.a7)
- },
- Ra: function() {
- this.te(f.a7, !0);
- f.xb.prototype.Ra.call(this)
- },
- bba: function() {
- this.yN = this.uc;
- this.Tc = 100;
- this.Nf = 0
- },
- uw: function() {
- f.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
- return null
- },
- op: function() {
- this.on = !1
- }
- });
- f.Ds.create = function(c, d) {
- var e = new f.Ds;
- return null != e && e.f(c, d) ? e : null
- };
- f.S7 = f.Ds.extend({
- uw: function(c) {
- var d = f.Q.Y;
- c = f.bc.create(c.sprite);
- f.K === f.na && (c.sprite.flippedY = !0);
- c.type = f.bc.Co;
- c.reverseDir = !1;
- c.percentage = 100;
- this.Bw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- f.S7.create = function(c, d) {
- var e = new f.S7;
- return null != e && e.f(c, d) ? e : null
- };
- f.T7 = f.Ds.extend({
- uw: function(c) {
- var d = f.Q.Y;
- c = f.bc.create(c.sprite);
- f.K === f.na && (c.sprite.flippedY = !0);
- c.type = f.bc.Co;
- c.reverseDir = !0;
- c.percentage = 100;
- this.Bw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- f.T7.create = function(c, d) {
- var e = new f.T7;
- return null != e && e.f(c, d) ? e : null
- };
- f.P7 = f.Ds.extend({
- uw: function(c) {
- var d = f.Q.Y;
- c = f.bc.create(c.sprite);
- f.K === f.na && (c.sprite.flippedY = !0);
- c.type = f.bc.sv;
- c.midPoint = r(1, 0);
- c.barChangeRate = r(1, 0);
- c.percentage = 100;
- this.Bw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- f.P7.create = function(c, d) {
- var e = new f.P7;
- return null != e && e.f(c, d) ? e : null
- };
- f.U7 = f.Ds.extend({
- uw: function(c) {
- var d = f.Q.Y;
- c = f.bc.create(c.sprite);
- f.K === f.na && (c.sprite.flippedY = !0);
- c.type = f.bc.sv;
- c.midPoint = r(0, 0);
- c.barChangeRate = r(0, 1);
- c.percentage = 100;
- this.Bw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- f.U7.create = function(c, d) {
- var e = new f.U7;
- return null != e && e.f(c, d) ? e : null
- };
- f.Q7 = f.Ds.extend({
- uw: function(c) {
- var d = f.Q.Y;
- c = f.bc.create(c.sprite);
- f.K === f.na && (c.sprite.flippedY = !0);
- c.type = f.bc.sv;
- c.midPoint = r(0.5, 0.5);
- c.barChangeRate = r(1, 1);
- c.percentage = 0;
- this.Bw(c, d.width / 2, d.height / 2);
- return c
- },
- op: function() {
- this.on = !1
- },
- bba: function() {
- this.yN = this.lb;
- this.Tc = 0;
- this.Nf = 100
- }
- });
- f.Q7.create = function(c, d) {
- var e = new f.Q7;
- return null != e && e.f(c, d) ? e : null
- };
- f.R7 = f.Ds.extend({
- uw: function(c) {
- var d = f.Q.Y;
- c = f.bc.create(c.sprite);
- f.K === f.na && (c.sprite.flippedY = !0);
- c.type = f.bc.sv;
- c.midPoint = r(0.5, 0.5);
- c.barChangeRate = r(1, 1);
- c.percentage = 100;
- this.Bw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- f.R7.create = function(c, d) {
- var e = new f.R7;
- return null != e && e.f(c, d) ? e : null
- };
- f.O7 = f.xb.extend({
- WK: !0,
- ta: "TransitionPageTurn",
- f: function(c, d, e) {
- this.WK = e;
- f.xb.prototype.f.call(this, c, d);
- return !0
- },
- hB: function(c) {
- return this.WK ? f.ov.create(f.lK.create(this.C, c)) : f.lK.create(this.C, c)
- },
- ba: function() {
- f.xb.prototype.ba.call(this);
- var c = f.Q.Y,
- d;
- c.width > c.height ? (c = 16, d = 12) : (c = 12, d = 16);
- c = this.hB(t(c, d));
- this.WK ? (this.lb.visible = !1, this.lb.V(f.X.create(f.Ej.create(), c, f.ua.create(this.finish, this), f.qv.create()))) : this.uc.V(f.X.create(c, f.ua.create(this.finish, this), f.qv.create()))
- },
- op: function() {
- this.on = this.WK
- }
- });
- f.O7.create = function(c, d, e) {
- var g = new f.O7;
- g.f(c, d, e);
- return g
- };
- f.bb = {
- name: "Jacob__Codec"
- };
- f.RIa = function() {
- return f.bb.Ob.yP.apply(f.bb.Ob, arguments)
- };
- f.SIa = function() {
- var c = f.bb.Zu.Eca.apply(f.bb.Zu, arguments);
- return f.bb.Ob.yP.apply(f.bb.Ob, [c])
- };
- f.Cia = function(c, d) {
- d = d || 1;
- var e = this.SIa(c),
- g = [],
- h, k, m;
- h = 0;
- for (m = e.length / d; h < m; h++)
- for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k;
- return g
- };
- f.H5a = function(c, d) {
- d = d || 1;
- var e = this.RIa(c),
- g = [],
- h, k, m;
- h = 0;
- for (m = e.length / d; h < m; h++)
- for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k;
- return g
- };
- f.FMa = function(c) {
- c = c.split(",");
- var d = [],
- e;
- for (e = 0; e < c.length; e++) d.push(parseInt(c[e]));
- return d
- };
- f.bb.Zu = {
- name: "Jacob__Codec__Base64"
- };
- f.bb.Zu.BM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
- f.bb.Zu.Eca = function(c) {
- var d = [],
- e, g, h, k, m, n = 0;
- for (c = c.replace(/[^A-Za-z0-9\+\/\=]/g, ""); n < c.length;) e = this.BM.indexOf(c.charAt(n++)), g = this.BM.indexOf(c.charAt(n++)), k = this.BM.indexOf(c.charAt(n++)), m = this.BM.indexOf(c.charAt(n++)), e = e << 2 | g >> 4, g = (g & 15) << 4 | k >> 2, h = (k & 3) << 6 | m, d.push(String.fromCharCode(e)), 64 != k && d.push(String.fromCharCode(g)), 64 != m && d.push(String.fromCharCode(h));
- return d = d.join("")
- };
- f.bb.Zu.Fca = function(c, d) {
- var e = this.Eca(c),
- g = [],
- h, k, m;
- h = 0;
- for (m = e.length / d; h < m; h++)
- for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k;
- return g
- };
- f.OIa = function(c) {
- if (0 != c.length % 4) return null;
- for (var d = c.length / 4, e = window.gNa ? new Uint32Array(d) : [], g = 0; g < d; g++) {
- var h = 4 * g;
- e[g] = c[h] + 256 * c[h + 1] + 65536 * c[h + 2] + 16777216 * c[h + 3]
- }
- return e
- };
- f.bb.Ob = function(c) {
- this.data = c;
- this.debug = !1;
- this.Kr = void 0;
- this.files = 0;
- this.OR = [];
- this.TZ = Array(32768);
- this.Pn = 0;
- this.pQ = !1;
- this.lca = 0;
- this.wp = 1;
- this.nB = 0;
- this.pC = [];
- this.ada = void 0;
- this.dI = Array(f.bb.Ob.lma);
- this.ox = Array(32);
- this.oJ = 0;
- this.rT = null;
- this.bo = 0;
- this.FB = Array(17);
- this.FB[0] = 0;
- this.jda = this.fda = void 0
- };
- f.bb.Ob.yP = function(c) {
- return (new f.bb.Ob(c)).yP()[0][0]
- };
- f.bb.Ob.US = function() {
- this.GO = this.FO = 0;
- this.Y0 = null;
- this.jDa = -1
- };
- f.bb.Ob.lma = 288;
- f.bb.Ob.j6 = 256;
- f.bb.Ob.IZ = [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
- ];
- f.bb.Ob.vca = [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];
- f.bb.Ob.wca = [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];
- f.bb.Ob.uca = [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];
- f.bb.Ob.uB = [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];
- f.bb.Ob.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
- f.bb.Ob.prototype.yP = function() {
- this.xI = [];
- ja(this);
- return this.OR
- };
- f.bb.Ob.prototype.ca = function() {
- this.nB += 8;
- return this.lca < this.data.length ? this.data.charCodeAt(this.lca++) : -1
- };
- function ka(c) {
- var d;
- c.nB++;
- d = c.wp & 1;
- c.wp >>= 1;
- 0 == c.wp && (c.wp = c.ca(), d = c.wp & 1, c.wp = c.wp >> 1 | 128);
- return d
- }
- function la(c, d) {
- for (var e = 0, g = d; g--;) e = e << 1 | ka(c);
- d && (e = f.bb.Ob.IZ[e] >> 8 - d);
- return e
- }
- function na(c, d) {
- c.TZ[c.Pn++] = d;
- c.xI.push(String.fromCharCode(d));
- 32768 == c.Pn && (c.Pn = 0)
- }
- function pa(c) {
- for (;;) {
- if (c.FB[c.bo] >= c.jda) return -1;
- if (c.fda[c.FB[c.bo]] == c.bo) return c.FB[c.bo]++;
- c.FB[c.bo]++
- }
- }
- function qa(c) {
- var d = c.rT[c.oJ],
- e;
- if (17 == c.bo) return -1;
- c.oJ++;
- c.bo++;
- e = pa(c);
- if (0 <= e) d.FO = e;
- else if (d.FO = 32768, qa(c)) return -1;
- e = pa(c);
- if (0 <= e) d.GO = e, d.Y0 = null;
- else if (d.GO = 32768, d.Y0 = c.rT[c.oJ], d.jDa = c.oJ, qa(c)) return -1;
- c.bo--;
- return 0
- }
- function sa(c, d, e, g) {
- c.rT = d;
- c.oJ = 0;
- c.fda = g;
- c.jda = e;
- for (d = 0; 17 > d; d++) c.FB[d] = 0;
- c.bo = 0;
- return qa(c) ? -1 : 0
- }
- function va(c, d) {
- for (var e, g, h = 0, k = d[h];;)
- if (e = ka(c)) {
- if (!(k.GO & 32768)) return k.GO;
- k = k.Y0;
- e = d.length;
- for (g = 0; g < e; g++)
- if (d[g] === k) {
- h = g;
- break
- }
- } else {
- if (!(k.FO & 32768)) return k.FO;
- h++;
- k = d[h]
- }
- return -1
- }
- function xa(c) {
- var d, e, g, h, k;
- do
- if (d = ka(c), g = la(c, 2), 0 == g)
- for (c.wp = 1, g = c.ca(), g |= c.ca() << 8, e = c.ca(), e |= c.ca() << 8, (g ^ ~e) & 65535 && document.write("BlockLen checksum mismatch\n"); g--;) e = c.ca(), na(c, e);
- else if (1 == g)
- for (;;)
- if (g = f.bb.Ob.IZ[la(c, 7)] >> 1, 23 < g ? (g = g << 1 | ka(c), 199 < g ? (g -= 128, g = g << 1 | ka(c)) : (g -= 48, 143 < g && (g += 136))) : g += 256, 256 > g) na(c, g);
- else if (256 == g) break;
- else {
- var m;
- g -= 257;
- k = la(c, f.bb.Ob.wca[g]) + f.bb.Ob.vca[g];
- g = f.bb.Ob.IZ[la(c, 5)] >> 3;
- 8 < f.bb.Ob.uB[g] ? (m = la(c, 8), m |= la(c, f.bb.Ob.uB[g] - 8) << 8) : m = la(c,
- f.bb.Ob.uB[g]);
- m += f.bb.Ob.uca[g];
- for (g = 0; g < k; g++) e = c.TZ[c.Pn - m & 32767], na(c, e)
- } else if (2 == g) {
- var n = Array(320);
- e = 257 + la(c, 5);
- m = 1 + la(c, 5);
- h = 4 + la(c, 4);
- for (g = 0; 19 > g; g++) n[g] = 0;
- for (g = 0; g < h; g++) n[f.bb.Ob.border[g]] = la(c, 3);
- k = c.ox.length;
- for (h = 0; h < k; h++) c.ox[h] = new f.bb.Ob.US;
- if (sa(c, c.ox, 19, n)) {
- c.Pn = 0;
- return
- }
- k = e + m;
- h = 0;
- for (var p = -1; h < k;)
- if (p++, g = va(c, c.ox), 16 > g) n[h++] = g;
- else if (16 == g) {
- var s;
- g = 3 + la(c, 2);
- if (h + g > k) {
- c.Pn = 0;
- return
- }
- for (s = h ? n[h - 1] : 0; g--;) n[h++] = s
- } else {
- g = 17 == g ? 3 + la(c, 3) : 11 + la(c, 7);
- if (h + g > k) {
- c.Pn =
- 0;
- return
- }
- for (; g--;) n[h++] = 0
- }
- k = c.dI.length;
- for (h = 0; h < k; h++) c.dI[h] = new f.bb.Ob.US;
- if (sa(c, c.dI, e, n)) {
- c.Pn = 0;
- return
- }
- k = c.dI.length;
- for (h = 0; h < k; h++) c.ox[h] = new f.bb.Ob.US;
- g = [];
- for (h = e; h < n.length; h++) g[h - e] = n[h];
- if (sa(c, c.ox, m, g)) {
- c.Pn = 0;
- return
- }
- for (;;)
- if (g = va(c, c.dI), 256 <= g) {
- g -= 256;
- if (0 == g) break;
- g--;
- k = la(c, f.bb.Ob.wca[g]) + f.bb.Ob.vca[g];
- g = va(c, c.ox);
- 8 < f.bb.Ob.uB[g] ? (m = la(c, 8), m |= la(c, f.bb.Ob.uB[g] - 8) << 8) : m = la(c, f.bb.Ob.uB[g]);
- for (m += f.bb.Ob.uca[g]; k--;) e = c.TZ[c.Pn - m & 32767], na(c, e)
- } else na(c, g)
- }
- while (!d);
- c.Pn = 0;
- c.wp = 1
- }
- function ja(c) {
- c.xI = [];
- c.pQ = !1;
- var d = [];
- d[0] = c.ca();
- d[1] = c.ca();
- 120 == d[0] && 218 == d[1] && (xa(c), c.OR[c.files] = [c.xI.join(""), "geonext.gxt"], c.files++);
- 31 == d[0] && 139 == d[1] && (Ca(c), c.OR[c.files] = [c.xI.join(""), "file"], c.files++);
- if (80 == d[0] && 75 == d[1] && (c.pQ = !0, d[2] = c.ca(), d[3] = c.ca(), 3 == d[2] && 4 == d[3])) {
- d[0] = c.ca();
- d[1] = c.ca();
- c.Kr = c.ca();
- c.Kr |= c.ca() << 8;
- d = c.ca();
- d |= c.ca() << 8;
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- var e = c.ca(),
- e = e | c.ca() << 8,
- g = c.ca(),
- g = g | c.ca() <<
- 8,
- h = 0;
- for (c.pC = []; e--;) {
- var k = c.ca();
- "/" == k | ":" == k ? h = 0 : h < f.bb.Ob.j6 - 1 && (c.pC[h++] = String.fromCharCode(k))
- }
- c.ada || (c.ada = c.pC);
- for (var h = 0; h < g;) c.ca(), h++;
- 8 == d && (xa(c), c.OR[c.files] = [c.xI.join(""), c.pC.join("")], c.files++);
- Ca(c)
- }
- }
- function Ca(c) {
- var d = [],
- e;
- c.Kr & 8 && (d[0] = c.ca(), d[1] = c.ca(), d[2] = c.ca(), d[3] = c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca());
- c.pQ && ja(c);
- d[0] = c.ca();
- if (8 == d[0]) {
- c.Kr = c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- if (c.Kr & 4)
- for (d[0] = c.ca(), d[2] = c.ca(), c.bo = d[0] + 256 * d[1], d = 0; d < c.bo; d++) c.ca();
- if (c.Kr & 8)
- for (d = 0, c.pC = []; e = c.ca();) {
- if ("7" == e || ":" == e) d = 0;
- d < f.bb.Ob.j6 - 1 && (c.pC[d++] = e)
- }
- if (c.Kr & 16)
- for (; c.ca(););
- c.Kr & 2 && (c.ca(), c.ca());
- xa(c);
- c.ca();
- c.ca();
- c.ca();
- c.ca();
- c.pQ && ja(c)
- }
- };
- (function() {
- function c(c) {
- throw c;
- }
- function d(c, d) {
- var e = c.split("."),
- g = M;
- e[0] in g || !g.execScript || g.execScript("var " + e[0]);
- for (var h; e.length && (h = e.shift());) e.length || d === O ? g = g[h] ? g[h] : g[h] = {} : g[h] = d
- }
- function e(c) {
- if ("string" === typeof c) {
- c = c.split("");
- var d, e;
- d = 0;
- for (e = c.length; d < e; d++) c[d] = (c[d].charCodeAt(0) & 255) >>> 0
- }
- d = 1;
- e = 0;
- for (var g = c.length, h, k = 0; 0 < g;) {
- h = 1024 < g ? 1024 : g;
- g -= h;
- do d += c[k++], e += d; while (--h);
- d %= 65521;
- e %= 65521
- }
- return (e << 16 | d) >>> 0
- }
- function g(d, e) {
- this.index = "number" === typeof e ? e : 0;
- this.QH = 0;
- this.buffer = d instanceof(K ? Uint8Array : Array) ? d : new(K ? Uint8Array : Array)(32768);
- 2 * this.buffer.length <= this.index && c(Error("invalid index"));
- this.buffer.length <= this.index && this.Tn()
- }
- function h(c) {
- this.buffer = new(K ? Uint16Array : Array)(2 * c);
- this.length = 0
- }
- function k(c) {
- var d = c.length,
- e = 0,
- g = Number.POSITIVE_INFINITY,
- h, k, m, n, p, s, u, v, z;
- for (v = 0; v < d; ++v) c[v] > e && (e = c[v]), c[v] < g && (g = c[v]);
- h = 1 << e;
- k = new(K ? Uint32Array : Array)(h);
- m = 1;
- n = 0;
- for (p = 2; m <= e;) {
- for (v = 0; v < d; ++v)
- if (c[v] === m) {
- s = 0;
- u = n;
- for (z = 0; z < m; ++z) s =
- s << 1 | u & 1, u >>= 1;
- for (z = s; z < h; z += p) k[z] = m << 16 | v;
- ++n
- }++m;
- n <<= 1;
- p <<= 1
- }
- return [k, e, g]
- }
- function m(c, d) {
- this.Vf = fa;
- this.da = 0;
- this.input = c;
- this.b = 0;
- d && (d.HDa && (this.da = d.HDa), "number" === typeof d.k_ && (this.Vf = d.k_), d.zQ && (this.a = K && d.zQ instanceof Array ? new Uint8Array(d.zQ) : d.zQ), "number" === typeof d.kEa && (this.b = d.kEa));
- this.a || (this.a = new(K ? Uint8Array : Array)(32768))
- }
- function n(c, d) {
- this.length = c;
- this.Kla = d
- }
- function p() {
- var d = Y;
- switch (R) {
- case 3 === d:
- return [257, d - 3, 0];
- case 4 === d:
- return [258, d - 4, 0];
- case 5 === d:
- return [259,
- d - 5, 0
- ];
- case 6 === d:
- return [260, d - 6, 0];
- case 7 === d:
- return [261, d - 7, 0];
- case 8 === d:
- return [262, d - 8, 0];
- case 9 === d:
- return [263, d - 9, 0];
- case 10 === d:
- return [264, d - 10, 0];
- case 12 >= d:
- return [265, d - 11, 1];
- case 14 >= d:
- return [266, d - 13, 1];
- case 16 >= d:
- return [267, d - 15, 1];
- case 18 >= d:
- return [268, d - 17, 1];
- case 22 >= d:
- return [269, d - 19, 2];
- case 26 >= d:
- return [270, d - 23, 2];
- case 30 >= d:
- return [271, d - 27, 2];
- case 34 >= d:
- return [272, d - 31, 2];
- case 42 >= d:
- return [273, d - 35, 3];
- case 50 >= d:
- return [274, d - 43, 3];
- case 58 >= d:
- return [275, d - 51, 3];
- case 66 >= d:
- return [276,
- d - 59, 3
- ];
- case 82 >= d:
- return [277, d - 67, 4];
- case 98 >= d:
- return [278, d - 83, 4];
- case 114 >= d:
- return [279, d - 99, 4];
- case 130 >= d:
- return [280, d - 115, 4];
- case 162 >= d:
- return [281, d - 131, 5];
- case 194 >= d:
- return [282, d - 163, 5];
- case 226 >= d:
- return [283, d - 195, 5];
- case 257 >= d:
- return [284, d - 227, 5];
- case 258 === d:
- return [285, d - 258, 0];
- default:
- c("invalid length: " + d)
- }
- }
- function s(d, e) {
- function g(d, e) {
- var h = d.Kla,
- k = [],
- m = 0,
- n;
- n = wa[d.length];
- k[m++] = n & 65535;
- k[m++] = n >> 16 & 255;
- k[m++] = n >> 24;
- var p;
- switch (R) {
- case 1 === h:
- p = [0, h - 1, 0];
- break;
- case 2 === h:
- p = [1,
- h - 2, 0
- ];
- break;
- case 3 === h:
- p = [2, h - 3, 0];
- break;
- case 4 === h:
- p = [3, h - 4, 0];
- break;
- case 6 >= h:
- p = [4, h - 5, 1];
- break;
- case 8 >= h:
- p = [5, h - 7, 1];
- break;
- case 12 >= h:
- p = [6, h - 9, 2];
- break;
- case 16 >= h:
- p = [7, h - 13, 2];
- break;
- case 24 >= h:
- p = [8, h - 17, 3];
- break;
- case 32 >= h:
- p = [9, h - 25, 3];
- break;
- case 48 >= h:
- p = [10, h - 33, 4];
- break;
- case 64 >= h:
- p = [11, h - 49, 4];
- break;
- case 96 >= h:
- p = [12, h - 65, 5];
- break;
- case 128 >= h:
- p = [13, h - 97, 5];
- break;
- case 192 >= h:
- p = [14, h - 129, 6];
- break;
- case 256 >= h:
- p = [15, h - 193, 6];
- break;
- case 384 >= h:
- p = [16, h - 257, 7];
- break;
- case 512 >= h:
- p = [17, h - 385, 7];
- break;
- case 768 >= h:
- p = [18, h - 513, 8];
- break;
- case 1024 >= h:
- p = [19, h - 769, 8];
- break;
- case 1536 >= h:
- p = [20, h - 1025, 9];
- break;
- case 2048 >= h:
- p = [21, h - 1537, 9];
- break;
- case 3072 >= h:
- p = [22, h - 2049, 10];
- break;
- case 4096 >= h:
- p = [23, h - 3073, 10];
- break;
- case 6144 >= h:
- p = [24, h - 4097, 11];
- break;
- case 8192 >= h:
- p = [25, h - 6145, 11];
- break;
- case 12288 >= h:
- p = [26, h - 8193, 12];
- break;
- case 16384 >= h:
- p = [27, h - 12289, 12];
- break;
- case 24576 >= h:
- p = [28, h - 16385, 13];
- break;
- case 32768 >= h:
- p = [29, h - 24577, 13];
- break;
- default:
- c("invalid distance")
- }
- n = p;
- k[m++] = n[0];
- k[m++] = n[1];
- k[m++] = n[2];
- h = 0;
- for (m = k.length; h < m; ++h) z[A++] = k[h];
- C[k[0]]++;
- G[k[3]]++;
- B = d.length + e - 1;
- v = null
- }
- var h, k, m, p, s, u = {},
- v, z = K ? new Uint16Array(2 * e.length) : [],
- A = 0,
- B = 0,
- C = new(K ? Uint32Array : Array)(286),
- G = new(K ? Uint32Array : Array)(30),
- L = d.da,
- I;
- if (!K) {
- for (m = 0; 285 >= m;) C[m++] = 0;
- for (m = 0; 29 >= m;) G[m++] = 0
- }
- C[256] = 1;
- h = 0;
- for (k = e.length; h < k; ++h) {
- m = s = 0;
- for (p = 3; m < p && h + m !== k; ++m) s = s << 8 | e[h + m];
- u[s] === O && (u[s] = []);
- m = u[s];
- if (!(0 < B--)) {
- for (; 0 < m.length && 32768 < h - m[0];) m.shift();
- if (h + 3 >= k) {
- v && g(v, -1);
- m = 0;
- for (p = k - h; m < p; ++m) I = e[h + m], z[A++] = I, ++C[I];
- break
- }
- if (0 < m.length) {
- s = p = O;
- var P = 0,
- M = O,
- J = O,
- Q = M = O,
- Z = e.length,
- J = 0,
- Q = m.length;
- a: for (; J < Q; J++) {
- p = m[Q - J - 1];
- M = 3;
- if (3 < P) {
- for (M = P; 3 < M; M--)
- if (e[p + M - 1] !== e[h + M - 1]) continue a;
- M = P
- }
- for (; 258 > M && h + M < Z && e[p + M] === e[h + M];)++M;
- M > P && (s = p, P = M);
- if (258 === M) break
- }
- p = new n(P, h - s);
- v ? v.length < p.length ? (I = e[h - 1], z[A++] = I, ++C[I], g(p, 0)) : g(v, -1) : p.length < L ? v = p : g(p, 0)
- } else v ? g(v, -1) : (I = e[h], z[A++] = I, ++C[I])
- }
- m.push(h)
- }
- z[A++] = 256;
- C[256]++;
- d.hma = C;
- d.Zla = G;
- return K ? z.subarray(0, A) : z
- }
- function u(c, d) {
- function e(c) {
- var d = z[c][A[c]];
- d ===
- u ? (e(c + 1), e(c + 1)) : --v[d];
- ++A[c]
- }
- var g = c.length,
- k = new h(572),
- m = new(K ? Uint8Array : Array)(g),
- n, p, s;
- if (!K)
- for (p = 0; p < g; p++) m[p] = 0;
- for (p = 0; p < g; ++p) 0 < c[p] && k.push(p, c[p]);
- g = Array(k.length / 2);
- n = new(K ? Uint32Array : Array)(k.length / 2);
- if (1 === g.length) return m[k.pop().index] = 1, m;
- p = 0;
- for (s = k.length / 2; p < s; ++p) g[p] = k.pop(), n[p] = g[p].value;
- var u = n.length;
- p = new(K ? Uint16Array : Array)(d);
- var k = new(K ? Uint8Array : Array)(d),
- v = new(K ? Uint8Array : Array)(u);
- s = Array(d);
- var z = Array(d),
- A = Array(d),
- B = (1 << d) - u,
- C = 1 << d - 1,
- G, I, L;
- p[d -
- 1] = u;
- for (G = 0; G < d; ++G) B < C ? k[G] = 0 : (k[G] = 1, B -= C), B <<= 1, p[d - 2 - G] = (p[d - 1 - G] / 2 | 0) + u;
- p[0] = k[0];
- s[0] = Array(p[0]);
- z[0] = Array(p[0]);
- for (G = 1; G < d; ++G) p[G] > 2 * p[G - 1] + k[G] && (p[G] = 2 * p[G - 1] + k[G]), s[G] = Array(p[G]), z[G] = Array(p[G]);
- for (B = 0; B < u; ++B) v[B] = d;
- for (C = 0; C < p[d - 1]; ++C) s[d - 1][C] = n[C], z[d - 1][C] = C;
- for (B = 0; B < d; ++B) A[B] = 0;
- 1 === k[d - 1] && (--v[0], ++A[d - 1]);
- for (G = d - 2; 0 <= G; --G) {
- I = B = 0;
- L = A[G + 1];
- for (C = 0; C < p[G]; C++) I = s[G + 1][L] + s[G + 1][L + 1], I > n[B] ? (s[G][C] = I, z[G][C] = u, L += 2) : (s[G][C] = n[B], z[G][C] = B, ++B);
- A[G] = 0;
- 1 === k[G] && e(G)
- }
- n =
- v;
- p = 0;
- for (s = g.length; p < s; ++p) m[g[p].index] = n[p];
- return m
- }
- function v(d) {
- var e = new(K ? Uint16Array : Array)(d.length),
- g = [],
- h = [],
- k = 0,
- m, n, p;
- m = 0;
- for (n = d.length; m < n; m++) g[d[m]] = (g[d[m]] | 0) + 1;
- m = 1;
- for (n = 16; m <= n; m++) h[m] = k, k += g[m] | 0, k > 1 << m && c("overcommitted"), k <<= 1;
- 65536 > k && c("undercommitted");
- m = 0;
- for (n = d.length; m < n; m++)
- for (k = h[d[m]], h[d[m]] += 1, g = e[m] = 0, p = d[m]; g < p; g++) e[m] = e[m] << 1 | k & 1, k >>>= 1;
- return e
- }
- function z(c, d) {
- this.input = c;
- this.a = new(K ? Uint8Array : Array)(32768);
- this.Vf = Z.XP;
- var e = {},
- g;
- !d && (d = {}) || "number" !==
- typeof d.k_ || (this.Vf = d.k_);
- for (g in d) e[g] = d[g];
- e.zQ = this.a;
- this.z = new m(this.input, e)
- }
- function A(d, e) {
- this.YP = [];
- this.hQ = 32768;
- this.wm = this.g = this.G = this.JQ = 0;
- this.input = K ? new Uint8Array(d) : d;
- this.ll = !1;
- this.mQ = Q;
- this.S3 = !1;
- if (e || !(e = {})) e.index && (this.G = e.index), e.UZ && (this.hQ = e.UZ), e.VZ && (this.mQ = e.VZ), e.resize && (this.S3 = e.resize);
- switch (this.mQ) {
- case Oa:
- this.b = 32768;
- this.a = new(K ? Uint8Array : Array)(32768 + this.hQ + 258);
- break;
- case Q:
- this.b = 0;
- this.a = new(K ? Uint8Array : Array)(this.hQ);
- this.Tn = this.Yla;
- this.o3 = this.Mla;
- this.tQ = this.Rla;
- break;
- default:
- c(Error("invalid inflate mode"))
- }
- }
- function B(d, e) {
- for (var g = d.g, h = d.wm, k = d.input, m = d.G, n; h < e;) n = k[m++], n === O && c(Error("input buffer is broken")), g |= n << h, h += 8;
- d.g = g >>> e;
- d.wm = h - e;
- d.G = m;
- return g & (1 << e) - 1
- }
- function C(d, e) {
- for (var g = d.g, h = d.wm, k = d.input, m = d.G, n = e[0], p = e[1], s; h < p;) s = k[m++], s === O && c(Error("input buffer is broken")), g |= s << h, h += 8;
- k = n[g & (1 << p) - 1];
- n = k >>> 16;
- d.g = g >> n;
- d.wm = h - n;
- d.G = m;
- return k & 65535
- }
- function G(c) {
- function d(c, e, g) {
- var h, k, m, n;
- for (n =
- 0; n < c;) switch (h = C(this, e), h) {
- case 16:
- for (m = 3 + B(this, 2); m--;) g[n++] = k;
- break;
- case 17:
- for (m = 3 + B(this, 3); m--;) g[n++] = 0;
- k = 0;
- break;
- case 18:
- for (m = 11 + B(this, 7); m--;) g[n++] = 0;
- k = 0;
- break;
- default:
- k = g[n++] = h
- }
- return g
- }
- var e = B(c, 5) + 257,
- g = B(c, 5) + 1,
- h = B(c, 4) + 4,
- m = new(K ? Uint8Array : Array)(oa.length),
- n;
- for (n = 0; n < h; ++n) m[oa[n]] = B(c, 3);
- h = k(m);
- m = new(K ? Uint8Array : Array)(e);
- n = new(K ? Uint8Array : Array)(g);
- c.tQ(k(d.call(c, e, h, m)), k(d.call(c, g, h, n)))
- }
- function L(d, e) {
- var g, h;
- this.input = d;
- this.G = 0;
- if (e || !(e = {})) e.index && (this.G =
- e.index), e.Nia && (this.qma = e.Nia);
- g = d[this.G++];
- h = d[this.G++];
- switch (g & 15) {
- case Ja:
- this.method = Ja;
- break;
- default:
- c(Error("unsupported compression method"))
- }
- 0 !== ((g << 8) + h) % 31 && c(Error("invalid fcheck flag:" + ((g << 8) + h) % 31));
- h & 32 && c(Error("fdict flag is not supported"));
- this.I3 = new A(d, {
- index: this.G,
- UZ: e.UZ,
- VZ: e.VZ,
- resize: e.resize
- })
- }
- var O = void 0,
- R = !0,
- M = this,
- K = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
- g.prototype.Tn = function() {
- var c = this.buffer,
- d, e = c.length,
- g = new(K ? Uint8Array : Array)(e << 1);
- if (K) g.set(c);
- else
- for (d = 0; d < e; ++d) g[d] = c[d];
- return this.buffer = g
- };
- g.prototype.P = function(c, d, e) {
- var g = this.buffer,
- h = this.index,
- k = this.QH,
- m = g[h];
- e && 1 < d && (c = 8 < d ? (W[c & 255] << 24 | W[c >>> 8 & 255] << 16 | W[c >>> 16 & 255] << 8 | W[c >>> 24 & 255]) >> 32 - d : W[c] >> 8 - d);
- if (8 > d + k) m = m << d | c, k += d;
- else
- for (e = 0; e < d; ++e) m = m << 1 | c >> d - e - 1 & 1, 8 === ++k && (k = 0, g[h++] = W[m], m = 0, h === g.length && (g = this.Tn()));
- g[h] = m;
- this.buffer = g;
- this.QH = k;
- this.index = h
- };
- g.prototype.finish = function() {
- var c = this.buffer,
- d =
- this.index,
- e;
- 0 < this.QH && (c[d] <<= 8 - this.QH, c[d] = W[c[d]], d++);
- K ? e = c.subarray(0, d) : (c.length = d, e = c);
- return e
- };
- var P = new(K ? Uint8Array : Array)(256),
- I;
- for (I = 0; 256 > I; ++I) {
- for (var J = I, V = J, ma = 7, J = J >>> 1; J; J >>>= 1) V <<= 1, V |= J & 1, --ma;
- P[I] = (V << ma & 255) >>> 0
- }
- var W = P,
- P = [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
- ];
- K && new Uint32Array(P);
- h.prototype.getParent =
- function(c) {
- return 2 * ((c - 2) / 4 | 0)
- };
- h.prototype.push = function(c, d) {
- var e, g, h = this.buffer,
- k;
- e = this.length;
- h[this.length++] = d;
- for (h[this.length++] = c; 0 < e;)
- if (g = this.getParent(e), h[e] > h[g]) k = h[e], h[e] = h[g], h[g] = k, k = h[e + 1], h[e + 1] = h[g + 1], h[g + 1] = k, e = g;
- else break;
- return this.length
- };
- h.prototype.pop = function() {
- var c, d, e = this.buffer,
- g, h, k;
- d = e[0];
- c = e[1];
- this.length -= 2;
- e[0] = e[this.length];
- e[1] = e[this.length + 1];
- for (k = 0;;) {
- h = 2 * k + 2;
- if (h >= this.length) break;
- h + 2 < this.length && e[h + 2] > e[h] && (h += 2);
- if (e[h] > e[k]) g = e[k], e[k] =
- e[h], e[h] = g, g = e[k + 1], e[k + 1] = e[h + 1], e[h + 1] = g;
- else break;
- k = h
- }
- return {
- index: c,
- value: d,
- length: this.length
- }
- };
- var fa = 2,
- P = {
- NONE: 0,
- r: 1,
- XP: fa,
- XLa: 3
- },
- ta = [];
- for (I = 0; 288 > I; I++) switch (R) {
- case 143 >= I:
- ta.push([I + 48, 8]);
- break;
- case 255 >= I:
- ta.push([I - 144 + 400, 9]);
- break;
- case 279 >= I:
- ta.push([I - 256 + 0, 7]);
- break;
- case 287 >= I:
- ta.push([I - 280 + 192, 8]);
- break;
- default:
- c("invalid literal: " + I)
- }
- m.prototype.Xr = function() {
- var d, e, h, k, m = this.input;
- switch (this.Vf) {
- case 0:
- h = 0;
- for (k = m.length; h < k;) {
- e = K ? m.subarray(h, h + 65535) : m.slice(h, h + 65535);
- h += e.length;
- var n = h === k,
- p = O,
- z = p = O,
- z = p = O,
- A = this.a,
- B = this.b;
- if (K) {
- for (A = new Uint8Array(this.a.buffer); A.length <= B + e.length + 5;) A = new Uint8Array(A.length << 1);
- A.set(this.a)
- }
- p = n ? 1 : 0;
- A[B++] = p | 0;
- p = e.length;
- z = ~p + 65536 & 65535;
- A[B++] = p & 255;
- A[B++] = p >>> 8 & 255;
- A[B++] = z & 255;
- A[B++] = z >>> 8 & 255;
- if (K) A.set(e, B), B += e.length, A = A.subarray(0, B);
- else {
- p = 0;
- for (z = e.length; p < z; ++p) A[B++] = e[p];
- A.length = B
- }
- this.b = B;
- this.a = A
- }
- break;
- case 1:
- h = new g(new Uint8Array(this.a.buffer), this.b);
- h.P(1, 1, R);
- h.P(1, 2, R);
- m = s(this, m);
- e = 0;
- for (n = m.length; e <
- n; e++)
- if (k = m[e], g.prototype.P.apply(h, ta[k]), 256 < k) h.P(m[++e], m[++e], R), h.P(m[++e], 5), h.P(m[++e], m[++e], R);
- else if (256 === k) break;
- this.a = h.finish();
- this.b = this.a.length;
- break;
- case fa:
- k = new g(new Uint8Array(this.a), this.b);
- var C, G, I, L = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
- P, M, p = Array(19),
- J, A = fa;
- k.P(1, 1, R);
- k.P(A, 2, R);
- m = s(this, m);
- z = u(this.hma, 15);
- P = v(z);
- A = u(this.Zla, 7);
- B = v(A);
- for (C = 286; 257 < C && 0 === z[C - 1]; C--);
- for (G = 30; 1 < G && 0 === A[G - 1]; G--);
- var Q = C,
- Z = G;
- d = new(K ? Uint32Array : Array)(Q + Z);
- var W = new(K ?
- Uint32Array : Array)(316),
- V, Y;
- M = new(K ? Uint8Array : Array)(19);
- for (J = I = 0; J < Q; J++) d[I++] = z[J];
- for (J = 0; J < Z; J++) d[I++] = A[J];
- if (!K)
- for (J = 0, Z = M.length; J < Z; ++J) M[J] = 0;
- J = V = 0;
- for (Z = d.length; J < Z; J += I) {
- for (I = 1; J + I < Z && d[J + I] === d[J]; ++I);
- Q = I;
- if (0 === d[J])
- if (3 > Q)
- for (; 0 < Q--;) W[V++] = 0, M[0]++;
- else
- for (; 0 < Q;) Y = 138 > Q ? Q : 138, Y > Q - 3 && Y < Q && (Y = Q - 3), 10 >= Y ? (W[V++] = 17, W[V++] = Y - 3, M[17]++) : (W[V++] = 18, W[V++] = Y - 11, M[18]++), Q -= Y;
- else if (W[V++] = d[J], M[d[J]]++, Q--, 3 > Q)
- for (; 0 < Q--;) W[V++] = d[J], M[d[J]]++;
- else
- for (; 0 < Q;) Y = 6 > Q ? Q : 6, Y > Q - 3 && Y <
- Q && (Y = Q - 3), W[V++] = 16, W[V++] = Y - 3, M[16]++, Q -= Y
- }
- d = K ? W.subarray(0, V) : W.slice(0, V);
- M = u(M, 7);
- for (J = 0; 19 > J; J++) p[J] = M[L[J]];
- for (I = 19; 4 < I && 0 === p[I - 1]; I--);
- L = v(M);
- k.P(C - 257, 5, R);
- k.P(G - 1, 5, R);
- k.P(I - 4, 4, R);
- for (J = 0; J < I; J++) k.P(p[J], 3, R);
- J = 0;
- for (p = d.length; J < p; J++)
- if (e = d[J], k.P(L[e], M[e], R), 16 <= e) {
- J++;
- switch (e) {
- case 16:
- n = 2;
- break;
- case 17:
- n = 3;
- break;
- case 18:
- n = 7;
- break;
- default:
- c("invalid code: " + e)
- }
- k.P(d[J], n, R)
- }
- n = [P, z];
- B = [B, A];
- e = n[0];
- n = n[1];
- A = B[0];
- P = B[1];
- B = 0;
- for (p = m.length; B < p; ++B)
- if (h = m[B], k.P(e[h], n[h], R), 256 < h) k.P(m[++B],
- m[++B], R), z = m[++B], k.P(A[z], P[z], R), k.P(m[++B], m[++B], R);
- else if (256 === h) break;
- this.a = k.finish();
- this.b = this.a.length;
- break;
- default:
- c("invalid compression type")
- }
- return this.a
- };
- I = [];
- var Y;
- for (Y = 3; 258 >= Y; Y++) J = p(), I[Y] = J[2] << 24 | J[1] << 16 | J[0];
- var wa = K ? new Uint32Array(I) : I,
- Z = P;
- z.prototype.Xr = function() {
- var d, g, h, k, m = 0;
- k = this.a;
- d = Ja;
- switch (d) {
- case Ja:
- g = Math.LOG2E * Math.log(32768) - 8;
- break;
- default:
- c(Error("invalid compression method"))
- }
- g = g << 4 | d;
- k[m++] = g;
- switch (d) {
- case Ja:
- switch (this.Vf) {
- case Z.NONE:
- h = 0;
- break;
- case Z.r:
- h = 1;
- break;
- case Z.XP:
- h = 2;
- break;
- default:
- c(Error("unsupported compression type"))
- }
- break;
- default:
- c(Error("invalid compression method"))
- }
- d = h << 6 | 0;
- k[m++] = d | 31 - (256 * g + d) % 31;
- d = e(this.input);
- this.z.b = m;
- k = this.z.Xr();
- m = k.length;
- K && (k = new Uint8Array(k.buffer), k.length <= m + 4 && (this.a = new Uint8Array(k.length + 4), this.a.set(k), k = this.a), k = k.subarray(0, m + 4));
- k[m++] = d >> 24 & 255;
- k[m++] = d >> 16 & 255;
- k[m++] = d >> 8 & 255;
- k[m++] = d & 255;
- return k
- };
- d("Zlib.Deflate", z);
- d("Zlib.Deflate.compress", function(c, d) {
- return (new z(c,
- d)).Xr()
- });
- d("Zlib.Deflate.CompressionType", Z);
- d("Zlib.Deflate.CompressionType.NONE", Z.NONE);
- d("Zlib.Deflate.CompressionType.FIXED", Z.r);
- d("Zlib.Deflate.CompressionType.DYNAMIC", Z.XP);
- var Oa = 0,
- Q = 1,
- P = {
- Uka: Oa,
- Hja: Q
- };
- A.prototype.AQ = function() {
- for (; !this.ll;) {
- var d = B(this, 3);
- d & 1 && (this.ll = R);
- d >>>= 1;
- switch (d) {
- case 0:
- var d = this.input,
- e = this.G,
- g = this.a,
- h = this.b,
- k = O,
- m = O,
- n = O,
- p = g.length,
- k = O;
- this.wm = this.g = 0;
- k = d[e++];
- k === O && c(Error("invalid uncompressed block header: LEN (first byte)"));
- m = k;
- k = d[e++];
- k === O &&
- c(Error("invalid uncompressed block header: LEN (second byte)"));
- m |= k << 8;
- k = d[e++];
- k === O && c(Error("invalid uncompressed block header: NLEN (first byte)"));
- n = k;
- k = d[e++];
- k === O && c(Error("invalid uncompressed block header: NLEN (second byte)"));
- n |= k << 8;
- m === ~n && c(Error("invalid uncompressed block header: length verify"));
- e + m > d.length && c(Error("input buffer is broken"));
- switch (this.mQ) {
- case Oa:
- for (; h + m > g.length;) {
- k = p - h;
- m -= k;
- if (K) g.set(d.subarray(e, e + k), h), h += k, e += k;
- else
- for (; k--;) g[h++] = d[e++];
- this.b = h;
- g = this.Tn();
- h = this.b
- }
- break;
- case Q:
- for (; h + m > g.length;) g = this.Tn({
- ga: 2
- });
- break;
- default:
- c(Error("invalid inflate mode"))
- }
- if (K) g.set(d.subarray(e, e + m), h), h += m, e += m;
- else
- for (; m--;) g[h++] = d[e++];
- this.G = e;
- this.b = h;
- this.a = g;
- break;
- case 1:
- this.tQ(mb, nb);
- break;
- case 2:
- G(this);
- break;
- default:
- c(Error("unknown BTYPE: " + d))
- }
- }
- return this.o3()
- };
- I = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
- var oa = K ? new Uint16Array(I) : I;
- I = [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
- ];
- var ob = K ? new Uint16Array(I) : I;
- I = [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];
- var Pa = K ? new Uint8Array(I) : I;
- I = [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];
- var Ub = K ? new Uint16Array(I) : I;
- I = [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];
- var za = K ? new Uint8Array(I) : I;
- I = new(K ? Uint8Array : Array)(288);
- J = 0;
- for (V = I.length; J < V; ++J) I[J] = 143 >= J ? 8 : 255 >= J ? 9 : 279 >= J ? 7 : 8;
- var mb = k(I);
- I = new(K ? Uint8Array :
- Array)(30);
- J = 0;
- for (V = I.length; J < V; ++J) I[J] = 5;
- var nb = k(I);
- A.prototype.tQ = function(c, d) {
- var e = this.a,
- g = this.b;
- this.Da = c;
- for (var h = e.length - 258, k, m, n; 256 !== (k = C(this, c));)
- if (256 > k) g >= h && (this.b = g, e = this.Tn(), g = this.b), e[g++] = k;
- else
- for (k -= 257, n = ob[k], 0 < Pa[k] && (n += B(this, Pa[k])), k = C(this, d), m = Ub[k], 0 < za[k] && (m += B(this, za[k])), g >= h && (this.b = g, e = this.Tn(), g = this.b); n--;) e[g] = e[g++-m];
- for (; 8 <= this.wm;) this.wm -= 8, this.G--;
- this.b = g
- };
- A.prototype.Rla = function(c, d) {
- var e = this.a,
- g = this.b;
- this.Da = c;
- for (var h = e.length,
- k, m, n; 256 !== (k = C(this, c));)
- if (256 > k) g >= h && (e = this.Tn(), h = e.length), e[g++] = k;
- else
- for (k -= 257, n = ob[k], 0 < Pa[k] && (n += B(this, Pa[k])), k = C(this, d), m = Ub[k], 0 < za[k] && (m += B(this, za[k])), g + n > h && (e = this.Tn(), h = e.length); n--;) e[g] = e[g++-m];
- for (; 8 <= this.wm;) this.wm -= 8, this.G--;
- this.b = g
- };
- A.prototype.Tn = function() {
- var c = new(K ? Uint8Array : Array)(this.b - 32768),
- d = this.b - 32768,
- e, g, h = this.a;
- if (K) c.set(h.subarray(32768, c.length));
- else
- for (e = 0, g = c.length; e < g; ++e) c[e] = h[e + 32768];
- this.YP.push(c);
- this.JQ += c.length;
- if (K) h.set(h.subarray(d,
- d + 32768));
- else
- for (e = 0; 32768 > e; ++e) h[e] = h[d + e];
- this.b = 32768;
- return h
- };
- A.prototype.Yla = function(c) {
- var d, e = this.input.length / this.G + 1 | 0,
- g, h, k, m = this.input,
- n = this.a;
- c && ("number" === typeof c.ga && (e = c.ga), "number" === typeof c.Fla && (e += c.Fla));
- 2 > e ? (g = (m.length - this.G) / this.Da[2], k = g / 2 * 258 | 0, h = k < n.length ? n.length + k : n.length << 1) : h = n.length * e;
- K ? (d = new Uint8Array(h), d.set(n)) : d = n;
- return this.a = d
- };
- A.prototype.o3 = function() {
- var c = 0,
- d = this.a,
- e = this.YP,
- g, h = new(K ? Uint8Array : Array)(this.JQ + (this.b - 32768)),
- k, m, n,
- p;
- if (0 === e.length) return K ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b);
- k = 0;
- for (m = e.length; k < m; ++k)
- for (g = e[k], n = 0, p = g.length; n < p; ++n) h[c++] = g[n];
- k = 32768;
- for (m = this.b; k < m; ++k) h[c++] = d[k];
- this.YP = [];
- return this.buffer = h
- };
- A.prototype.Mla = function() {
- var c, d = this.b;
- K ? this.S3 ? (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);
- return this.buffer = c
- };
- L.prototype.AQ = function() {
- var d = this.input,
- g, h;
- g = this.I3.AQ();
- this.G = this.I3.G;
- this.qma && (h = (d[this.G++] << 24 | d[this.G++] << 16 | d[this.G++] << 8 | d[this.G++]) >>> 0, h !== e(g) && c(Error("invalid adler-32 checksum")));
- return g
- };
- d("Zlib.Inflate", L);
- d("Zlib.Inflate.BufferType", P);
- P.tJa = P.Hja;
- P.dKa = P.Uka;
- d("Zlib.Inflate.prototype.decompress", L.prototype.AQ);
- P = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
- K && new Uint16Array(P);
- P = [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];
- K && new Uint16Array(P);
- P = [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
- ];
- K && new Uint8Array(P);
- P = [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];
- K && new Uint16Array(P);
- P = [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];
- K && new Uint8Array(P);
- P = new(K ? Uint8Array : Array)(288);
- I = 0;
- for (J = P.length; I < J; ++I) P[I] = 143 >= I ? 8 : 255 >= I ? 9 : 279 >= I ? 7 : 8;
- k(P);
- P = new(K ? Uint8Array : Array)(30);
- I = 0;
- for (J = P.length; I < J; ++I) P[I] = 5;
- k(P);
- var Ja = 8
- }).call(this);
- q = window;
- q = q.oNa = q.Zlib;
- q.Y4 = q.Deflate;
- q.Y4.wQa = q.Y4.compress;
- q.Iy = q.Inflate;
- q.Iy.uKa = q.Iy.BufferType;
- q.Iy.prototype.Hca = q.Iy.prototype.decompress;
- f.Zma = f.N.extend({
- ctor: function(c) {
- var d, e, g, h;
- this.data = c;
- this.lc = 8;
- this.C1 = [];
- this.HP = [];
- this.oy = {};
- this.wd = null;
- this.text = {};
- for (g = null;;) {
- d = this.bs();
- h = c = void 0;
- h = [];
- for (c = 0; 4 > c; ++c) h.push(String.fromCharCode(this.data[this.lc++]));
- c = h.join("");
- switch (c) {
- case "IHDR":
- this.width = this.bs();
- this.height = this.bs();
- this.nB = this.data[this.lc++];
- this.h_ = this.data[this.lc++];
- this.lc++;
- this.lc++;
- this.lc++;
- break;
- case "acTL":
- this.wd = {
- F_a: this.bs(),
- G_a: this.bs() || Infinity,
- frames: []
- };
- break;
- case "PLTE":
- this.C1 =
- this.CI(d);
- break;
- case "fcTL":
- g && this.wd.frames.push(g);
- this.lc += 4;
- g = {
- width: this.bs(),
- height: this.bs(),
- Pia: this.bs(),
- Qia: this.bs()
- };
- c = this.Wfa();
- d = this.Wfa() || 100;
- g.vm = 1E3 * c / d;
- g.ZQa = this.data[this.lc++];
- g.WPa = this.data[this.lc++];
- g.data = [];
- break;
- case "IDAT":
- case "fdAT":
- "fdAT" === c && (this.lc += 4, d -= 4);
- c = (null != g ? g.data : void 0) || this.HP;
- for (h = 0; 0 <= d ? h < d : h > d; 0 <= d ? ++h : --h) c.push(this.data[this.lc++]);
- break;
- case "tRNS":
- this.oy = {};
- switch (this.h_) {
- case 3:
- this.oy.C0 = this.CI(d);
- d = 255 - this.oy.C0.length;
- if (0 < d)
- for (c =
- 0; 0 <= d ? c < d : c > d; 0 <= d ? ++c : --c) this.oy.C0.push(255);
- break;
- case 0:
- this.oy.VWa = this.CI(d)[0];
- break;
- case 2:
- this.oy.O1a = this.CI(d)
- }
- break;
- case "tEXt":
- h = this.CI(d);
- d = h.indexOf(0);
- c = String.fromCharCode.apply(String, h.slice(0, d));
- this.text[c] = String.fromCharCode.apply(String, h.slice(d + 1));
- break;
- case "IEND":
- g && this.wd.frames.push(g);
- a: {
- switch (this.h_) {
- case 0:
- case 3:
- case 4:
- g = 1;
- break a;
- case 2:
- case 6:
- g = 3;
- break a
- }
- g = void 0
- }
- this.D = g;
- this.oea = 4 === (e = this.h_) || 6 === e;
- e = this.D + (this.oea ? 1 : 0);
- this.YEa = this.nB * e;
- Uint8Array !=
- Array && (this.HP = new Uint8Array(this.HP));
- return;
- default:
- this.lc += d
- }
- this.lc += 4;
- if (this.lc > this.data.length) throw Error("Incomplete or corrupt PNG file");
- }
- },
- CI: function(c) {
- var d, e;
- e = [];
- for (d = 0; 0 <= c ? d < c : d > c; 0 <= c ? ++d : --d) e.push(this.data[this.lc++]);
- return e
- },
- bs: function() {
- var c, d, e, g;
- c = this.data[this.lc++] << 24;
- d = this.data[this.lc++] << 16;
- e = this.data[this.lc++] << 8;
- g = this.data[this.lc++];
- return c | d | e | g
- },
- Wfa: function() {
- var c, d;
- c = this.data[this.lc++] << 8;
- d = this.data[this.lc++];
- return c | d
- },
- Ixa: function(c) {
- var d,
- e, g, h, k, m, n, p, s, u, v, z, A, B, C;
- null == c && (c = this.HP);
- if (0 === c.length) return new Uint8Array(0);
- c = (new Zlib.Iy(c, {
- index: 0,
- Nia: !1
- })).Hca();
- p = this.YEa / 8;
- z = p * this.width;
- s = new Uint8Array(z * this.height);
- m = c.length;
- for (e = u = v = 0; u < m;) {
- switch (c[u++]) {
- case 0:
- for (d = 0; d < z; d += 1) s[e++] = c[u++];
- break;
- case 1:
- for (h = A = 0; A < z; h = A += 1) d = c[u++], k = h < p ? 0 : s[e - p], s[e++] = (d + k) % 256;
- break;
- case 2:
- for (h = k = 0; k < z; h = k += 1) d = c[u++], g = (h - h % p) / p, A = v && s[(v - 1) * z + g * p + h % p], s[e++] = (A + d) % 256;
- break;
- case 3:
- for (h = C = 0; C < z; h = C += 1) d = c[u++], g = (h - h % p) / p, k =
- h < p ? 0 : s[e - p], A = v && s[(v - 1) * z + g * p + h % p], s[e++] = (d + Math.floor((k + A) / 2)) % 256;
- break;
- case 4:
- for (h = C = 0; C < z; h = C += 1) d = c[u++], g = (h - h % p) / p, k = h < p ? 0 : s[e - p], 0 === v ? A = B = 0 : (A = s[(v - 1) * z + g * p + h % p], B = g && s[(v - 1) * z + (g - 1) * p + h % p]), n = k + A - B, h = Math.abs(n - k), g = Math.abs(n - A), n = Math.abs(n - B), k = h <= g && h <= n ? k : g <= n ? A : B, s[e++] = (d + k) % 256;
- break;
- default:
- throw Error("Invalid filter algorithm: " + c[u - 1]);
- }
- v++
- }
- return s
- },
- ixa: function(c, d) {
- var e, g, h, k, m, n, p, s;
- g = this.D;
- s = null;
- e = this.oea;
- this.C1.length && (s = null != (h = this.Yqa) ? h : this.Yqa = this.Hxa(),
- g = 4, e = !0);
- h = c.data || c;
- p = h.length;
- m = s || d;
- k = n = 0;
- if (1 === g)
- for (; k < p;) g = s ? 4 * d[k / 4] : n, n = m[g++], h[k++] = n, h[k++] = n, h[k++] = n, h[k++] = e ? m[g++] : 255, n = g;
- else
- for (; k < p;) g = s ? 4 * d[k / 4] : n, h[k++] = m[g++], h[k++] = m[g++], h[k++] = m[g++], h[k++] = e ? m[g++] : 255, n = g
- },
- Hxa: function() {
- var c, d, e, g, h, k, m, n, p;
- e = this.C1;
- k = this.oy.C0 || [];
- h = new Uint8Array((k.length || 0) + e.length);
- d = m = c = g = 0;
- for (n = e.length; m < n; d = m += 3) h[g++] = e[d], h[g++] = e[d + 1], h[g++] = e[d + 2], h[g++] = null != (p = k[c++]) ? p : 255;
- return h
- },
- YFa: function(c) {
- var d;
- c.width = this.width;
- c.height =
- this.height;
- c = c.getContext("2d");
- d = c.createImageData(this.width, this.height);
- this.ixa(d, this.Ixa());
- return c.putImageData(d, 0, 0)
- }
- });
- f.IIa = {
- U$: !1,
- Kw: null,
- fW: [],
- getUint8: function(c) {
- return this.Kw[c]
- },
- getUint16: function(c) {
- return this.U$ ? this.Kw[c + 1] << 8 | this.Kw[c] : this.Kw[c] << 8 | this.Kw[c + 1]
- },
- getUint32: function(c) {
- var d = this.Kw;
- return this.U$ ? 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]
- },
- Uwa: function() {
- var c = this.getUint16(0);
- if (18761 === c) this.i1 = !0;
- else if (19789 === c) this.i1 = !1;
- else throw console.log(c), TypeError("Invalid byte order value.");
- return this.i1
- },
- $Ba: function() {
- if (42 !== this.getUint16(2)) throw RangeError("You forgot your towel!");
- return !0
- },
- Wza: function(c) {
- var d = this.cza;
- return c in d ? d[c] : null
- },
- Uza: function(c) {
- var d = this.bza;
- if (c in d) return d[c];
- console.log("Unknown Field Tag:", c);
- return "Tag" + c
- },
- Vza: function(c) {
- 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 : null
- },
- Xza: function(c, d, e, g) {
- c = [];
- var h = this.Vza(d);
- if (4 >= h * e)!1 === this.i1 ? c.push(g >>> 8 * (4 - h)) : c.push(g);
- else
- for (var k = 0; k <
- e; k++) {
- var m = h * k;
- 8 <= h ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(d) ? (c.push(this.getUint32(g + m)), c.push(this.getUint32(g + m + 4))) : f.log("Can't handle this field type or size") : c.push(this.oda(h, g + m))
- }
- "ASCII" === d && c.forEach(function(c, d, e) {
- e[d] = String.fromCharCode(c)
- });
- return c
- },
- oda: function(c, d) {
- if (0 >= c) f.log("No bytes requested");
- else {
- if (1 >= c) return this.getUint8(d);
- if (2 >= c) return this.getUint16(d);
- if (3 >= c) return this.getUint32(d) >>> 8;
- if (4 >= c) return this.getUint32(d);
- f.log("Too many bytes requested")
- }
- },
- Cza: function(c, d, e) {
- e = e || 0;
- d += Math.floor(e / 8);
- var g = e + c;
- c = 32 - c;
- var h, k;
- 0 >= g ? console.log("No bits requested") : 8 >= g ? (h = 24 + e, k = this.getUint8(d)) : 16 >= g ? (h = 16 + e, k = this.getUint16(d)) : 32 >= g ? (h = e, k = this.getUint32(d)) : console.log("Too many bits requested");
- return {
- bits: k << h >>> c,
- byteOffset: d + Math.floor(g / 8),
- bitOffset: g % 8
- }
- },
- Ofa: function(c) {
- var d = this.getUint16(c),
- e = [];
- c += 2;
- for (var g = 0; g < d; c += 12, g++) {
- var h = this.getUint16(c),
- k = this.getUint16(c + 2),
- m = this.getUint32(c + 4),
- n = this.getUint32(c + 8),
- h = this.Uza(h),
- k = this.Wza(k),
- m = this.Xza(h, k, m, n);
- e[h] = {
- type: k,
- po: m
- }
- }
- this.fW.push(e);
- d = this.getUint32(c);
- 0 !== d && this.Ofa(d)
- },
- hx: function(c, d) {
- var e = Math.pow(2, 8 - d);
- return Math.floor(c * e + (e - 1))
- },
- VEa: function(c, d) {
- d = d || f.fd("canvas");
- this.Kw = c;
- this.canvas = d;
- this.Uwa();
- if (this.$Ba()) {
- var e = this.getUint32(4);
- this.fW.length = 0;
- this.Ofa(e);
- var g = this.fW[0],
- e = g.ImageWidth.po[0],
- h = g.ImageLength.po[0];
- this.canvas.width = e;
- this.canvas.height = h;
- var k = [],
- m = g.Compression ? g.Compression.po[0] : 1,
- n = g.SamplesPerPixel.po[0],
- p = [],
- s = 0,
- u = !1;
- g.BitsPerSample.po.forEach(function(c,
- d) {
- p[d] = {
- oB: c,
- AP: !1,
- bH: void 0
- };
- 0 === c % 8 && (p[d].AP = !0, p[d].bH = c / 8);
- s += c
- }, this);
- if (0 === s % 8) var u = !0,
- v = s / 8;
- var z = g.StripOffsets.po,
- A = z.length;
- if (g.StripByteCounts) var B = g.StripByteCounts.po;
- else if (f.log("Missing StripByteCounts!"), 1 === A) B = [Math.ceil(e * h * s / 8)];
- else throw Error("Cannot recover from missing StripByteCounts");
- for (var C = 0; C < A; C++) {
- var G = z[C];
- k[C] = [];
- for (var L = B[C], O = 0, R = 0, M = 1, K = !0, P = [], I = 0, J = 0, V = 0; O < L; O += M) switch (m) {
- case 1:
- M = 0;
- for (P = []; M < n; M++)
- if (p[M].AP) P.push(this.oda(p[M].bH, G + O + p[M].bH *
- M));
- else {
- var ma = this.Cza(p[M].oB, G + O, R);
- P.push(ma.nB);
- O = ma.byteOffset - G;
- R = ma.UPa;
- throw RangeError("Cannot handle sub-byte bits per sample");
- }
- k[C].push(P);
- if (u) M = v;
- else throw M = 0, RangeError("Cannot handle sub-byte bits per pixel");
- break;
- case 32773:
- if (K) {
- var K = !1,
- W = 1,
- fa = 1,
- M = this.getInt8(G + O);
- 0 <= M && 127 >= M ? W = M + 1 : -127 <= M && -1 >= M ? fa = -M + 1 : K = !0
- } else {
- for (var ta = this.getUint8(G + O), M = 0; M < fa; M++) {
- if (p[J].AP) V = V << 8 * I | ta, I++, I === p[J].bH && (P.push(V), V = I = 0, J++);
- else throw RangeError("Cannot handle sub-byte bits per sample");
- J === n && (k[C].push(P), P = [], J = 0)
- }
- W--;
- 0 === W && (K = !0)
- }
- M = 1
- }
- }
- if (d.getContext) {
- v = this.canvas.getContext("2d");
- v.fillStyle = "rgba(255, 255, 255, 0)";
- C = g.RowsPerStrip ? g.RowsPerStrip.po[0] : h;
- G = k.length;
- h %= C;
- h = 0 === h ? C : h;
- O = C;
- m = 0;
- P = g.PhotometricInterpretation.po[0];
- W = [];
- fa = 0;
- g.ExtraSamples && (W = g.ExtraSamples.po, fa = W.length);
- if (g.ColorMap) var ma = g.ColorMap.po,
- Y = Math.pow(2, p[0].oB);
- for (C = 0; C < G; C++) {
- C + 1 === G && (O = h);
- g = k[C].length;
- m *= C;
- for (u = n = 0; n < O, u < g; n++)
- for (z = 0; z < e; z++, u++) {
- B = k[C][u];
- K = R = L = 0;
- A = 1;
- if (0 < fa)
- for (L = 0; L <
- fa; L++)
- if (1 === W[L] || 2 === W[L]) {
- A = B[3 + L] / 256;
- break
- }
- switch (P) {
- case 0:
- if (p[0].AP) var wa = Math.pow(16, 2 * p[0].bH);
- B.forEach(function(c, d, e) {
- e[d] = wa - c
- });
- case 1:
- L = R = K = this.hx(B[0], p[0].oB);
- break;
- case 2:
- L = this.hx(B[0], p[0].oB);
- R = this.hx(B[1], p[1].oB);
- K = this.hx(B[2], p[2].oB);
- break;
- case 3:
- if (void 0 === ma) throw Error("Palette image missing color map");
- B = B[0];
- L = this.hx(ma[B], 16);
- R = this.hx(ma[Y + B], 16);
- K = this.hx(ma[2 * Y + B], 16);
- break;
- default:
- throw RangeError("Unknown Photometric Interpretation:", P);
- }
- v.fillStyle = "rgba(" +
- L + ", " + R + ", " + K + ", " + A + ")";
- v.fillRect(z, m + n, 1, 1)
- }
- m = O
- }
- }
- return this.canvas
- }
- },
- bza: {
- 315: "Artist",
- 258: "BitsPerSample",
- 265: "CellLength",
- 264: "CellWidth",
- 320: "ColorMap",
- 259: "Compression",
- 33432: "Copyright",
- 306: "DateTime",
- 338: "ExtraSamples",
- 266: "FillOrder",
- 289: "FreeByteCounts",
- 288: "FreeOffsets",
- 291: "GrayResponseCurve",
- 290: "GrayResponseUnit",
- 316: "HostComputer",
- 270: "ImageDescription",
- 257: "ImageLength",
- 256: "ImageWidth",
- 271: "Make",
- 281: "MaxSampleValue",
- 280: "MinSampleValue",
- 272: "Model",
- 254: "NewSubfileType",
- 274: "Orientation",
- 262: "PhotometricInterpretation",
- 284: "PlanarConfiguration",
- 296: "ResolutionUnit",
- 278: "RowsPerStrip",
- 277: "SamplesPerPixel",
- 305: "Software",
- 279: "StripByteCounts",
- 273: "StripOffsets",
- 255: "SubfileType",
- 263: "Threshholding",
- 282: "XResolution",
- 283: "YResolution",
- 326: "BadFaxLines",
- 327: "CleanFaxData",
- 343: "ClipPath",
- 328: "ConsecutiveBadFaxLines",
- 433: "Decode",
- 434: "DefaultImageColor",
- 269: "DocumentName",
- 336: "DotRange",
- 321: "HalftoneHints",
- 346: "Indexed",
- 347: "JPEGTables",
- 285: "PageName",
- 297: "PageNumber",
- 317: "Predictor",
- 319: "PrimaryChromaticities",
- 532: "ReferenceBlackWhite",
- 339: "SampleFormat",
- 559: "StripRowCounts",
- 330: "SubIFDs",
- 292: "T4Options",
- 293: "T6Options",
- 325: "TileByteCounts",
- 323: "TileLength",
- 324: "TileOffsets",
- 322: "TileWidth",
- 301: "TransferFunction",
- 318: "WhitePoint",
- 344: "XClipPathUnits",
- 286: "XPosition",
- 529: "YCbCrCoefficients",
- 531: "YCbCrPositioning",
- 530: "YCbCrSubSampling",
- 345: "YClipPathUnits",
- 287: "YPosition",
- 37378: "ApertureValue",
- 40961: "ColorSpace",
- 36868: "DateTimeDigitized",
- 36867: "DateTimeOriginal",
- 34665: "Exif IFD",
- 36864: "ExifVersion",
- 33434: "ExposureTime",
- 41728: "FileSource",
- 37385: "Flash",
- 40960: "FlashpixVersion",
- 33437: "FNumber",
- 42016: "ImageUniqueID",
- 37384: "LightSource",
- 37500: "MakerNote",
- 37377: "ShutterSpeedValue",
- 37510: "UserComment",
- 33723: "IPTC",
- 34675: "ICC Profile",
- 700: "XMP",
- 42112: "GDAL_METADATA",
- 42113: "GDAL_NODATA",
- 34377: "Photoshop"
- },
- cza: {
- 1: "BYTE",
- 2: "ASCII",
- 3: "SHORT",
- 4: "LONG",
- 5: "RATIONAL",
- 6: "SBYTE",
- 7: "UNDEFINED",
- 8: "SSHORT",
- 9: "SLONG",
- 10: "SRATIONAL",
- 11: "FLOAT",
- 12: "DOUBLE"
- }
- };
- f.Jl = function(c, d, e, g, h, k, m, n, p, s, u, v) {
- this.lc = c ? c : r(0, 0);
- this.startPos = d ? d : r(0, 0);
- this.color = e ? e : {
- r: 0,
- g: 0,
- b: 0,
- a: 255
- };
- this.jH = g ? g : {
- r: 0,
- g: 0,
- b: 0,
- a: 255
- };
- this.size = h || 0;
- this.v_ = k || 0;
- this.rotation = m || 0;
- this.Lca = n || 0;
- this.Su = p || 0;
- this.atlasIndex = s || 0;
- this.ae = u ? u : new f.Jl.jT;
- this.th = v ? v : new f.Jl.kT;
- this.Iea = !1;
- this.nH = r(0, 0)
- };
- f.Jl.jT = function(c, d, e) {
- this.dir = c ? c : r(0, 0);
- this.radialAccel = d || 0;
- this.tangentialAccel = e || 0
- };
- f.Jl.kT = function(c, d, e, g) {
- this.sm = c || 0;
- this.Jca = d || 0;
- this.BI = e || 0;
- this.Kca = g || 0
- };
- f.Jl.GK = [r(), r(), r(), r()];
- f.A = f.v.extend({
- jN: "",
- Fc: 0,
- n9: !1,
- ae: null,
- th: null,
- ta: "ParticleSystem",
- CX: r(0, 0),
- Ct: null,
- Mv: 0,
- Vj: 0,
- Aa: null,
- atlasIndex: 0,
- Rw: !1,
- RK: 0,
- WO: null,
- GR: null,
- eA: !1,
- Rg: 0,
- duration: 0,
- QA: null,
- Et: null,
- qj: 0,
- fC: 0,
- sm: 0,
- kB: 0,
- LC: 0,
- MC: 0,
- rx: 0,
- AB: 0,
- Ng: null,
- Pt: null,
- Jf: null,
- et: null,
- NC: 0,
- OC: 0,
- BB: 0,
- CB: 0,
- qx: 0,
- Jc: 0,
- fa: null,
- B: null,
- Jb: !1,
- vh: null,
- ZG: !1,
- Kb: 0,
- of: null,
- Tb: null,
- Se: null,
- bG: null,
- Ba: null,
- kg: null,
- ctor: function(c) {
- f.v.prototype.ctor.call(this);
- this.Kb = f.A.wc;
- this.ae = new f.A.jT;
- this.th = new f.A.kT;
- this.B = {
- src: f.Mc,
- ha: f.Lc
- };
- this.Ct = [];
- this.QA = r(0, 0);
- this.Et = r(0, 0);
- this.Ng = f.color(255, 255, 255, 255);
- this.Pt = f.color(255, 255, 255, 255);
- this.Jf = f.color(255, 255, 255, 255);
- this.et = f.color(255, 255, 255, 255);
- this.jN = "";
- this.Fc = 0;
- this.n9 = !1;
- this.CX = r(0, 0);
- this.Vj = this.Mv = 0;
- this.Aa = null;
- this.atlasIndex = 0;
- this.Rw = !1;
- this.RK = 0;
- this.WO = f.A.Nna;
- this.GR = f.A.mja;
- this.eA = !1;
- this.Jc = this.qx = this.CB = this.BB = this.OC = this.NC = this.AB = this.rx = this.MC = this.LC = this.kB = this.sm = this.fC = this.qj = this.duration = this.Rg = 0;
- this.fa = null;
- this.Jb = !1;
- this.vh = f.A.rE;
- this.ZG = !1;
- this.Se = [0, 0];
- this.of = [];
- this.Tb = [];
- this.bG = x(0, 0, 0, 0);
- this.Ba = !0;
- f.K === f.na && (this.kg = null);
- c && "number" !== typeof c ? c && this.Ge(c) : (c = c || 100, this.QGa(f.A.p7), this.fc(c))
- },
- E0: function() {
- for (var c = this.Tb, d = 0, e = this.Jc; d < e; ++d) {
- var g = 6 * d,
- h = 4 * d;
- c[g + 0] = h + 0;
- c[g + 1] = h + 1;
- c[g + 2] = h + 2;
- c[g + 5] = h + 1;
- c[g + 4] = h + 2;
- c[g + 3] = h + 3
- }
- },
- vea: function(c) {
- var d = f.Uc(),
- e = x(c.x * d, c.y * d, c.width * d, c.height * d),
- g = c.width,
- h = c.height;
- this.fa && (g = this.fa.pixelsWidth, h = this.fa.pixelsHeight);
- if (f.K !== f.fb) {
- f.Ey ? (c = (2 * e.x + 1) / (2 * g), d = (2 * e.y +
- 1) / (2 * h), g = c + (2 * e.width - 2) / (2 * g), e = d + (2 * e.height - 2) / (2 * h)) : (c = e.x / g, d = e.y / h, g = c + e.width / g, e = d + e.height / h);
- var h = e,
- e = d,
- d = h,
- k = 0,
- m = 0;
- this.Aa ? (h = this.Aa.textureAtlas.quads, k = this.atlasIndex, m = this.atlasIndex + this.Jc) : (h = this.of, k = 0, m = this.Jc);
- for (; k < m; k++) {
- h[k] || (h[k] = f.i8());
- var n = h[k];
- n.T.t.Da = c;
- n.T.t.ga = d;
- n.aa.t.Da = g;
- n.aa.t.ga = d;
- n.Z.t.Da = c;
- n.Z.t.ga = e;
- n.W.t.Da = g;
- n.W.t.ga = e
- }
- }
- },
- LB: function() {
- return this.Aa
- },
- is: function(c) {
- if (this.Aa != c) {
- var d = this.Aa;
- if (this.Aa = c)
- for (var e = this.Ct, g = 0; g < this.Jc; g++) e[g].atlasIndex =
- g;
- c ? d || (this.Aa.textureAtlas.Uqa(this.of, this.atlasIndex), f.s.deleteBuffer(this.Se[1])) : (this.D8(), this.E0(), this.ab(d.sb()), this.Dw())
- }
- },
- KB: function() {
- return this.atlasIndex
- },
- k2: function(c) {
- this.atlasIndex = c
- },
- ETa: function() {
- return this.WO
- },
- QGa: function(c) {
- this.WO = c
- },
- RVa: function() {
- return this.GR
- },
- k4a: function(c) {
- this.GR = c
- },
- Bi: function() {
- return this.eA
- },
- kVa: function() {
- return this.Rg
- },
- T3a: function(c) {
- this.Rg = c
- },
- pu: function() {
- return this.duration
- },
- Ei: function(c) {
- this.duration = c
- },
- oBa: function() {
- return {
- x: this.QA.x,
- y: this.QA.y
- }
- },
- NHa: function(c) {
- this.QA = c
- },
- i0: function() {
- return {
- x: this.Et.x,
- y: this.Et.y
- }
- },
- vl: function(c) {
- this.Et = c
- },
- wUa: function() {
- return this.qj
- },
- rl: function(c) {
- this.qj = c
- },
- xUa: function() {
- return this.fC
- },
- sl: function(c) {
- this.fC = c
- },
- YRa: function() {
- return this.sm
- },
- ml: function(c) {
- this.sm = c
- },
- ZRa: function() {
- return this.kB
- },
- nl: function(c) {
- this.kB = c
- },
- uH: function() {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
- var c = this.ae.gravity;
- return r(c.x, c.y)
- },
- vc: function(c) {
- this.Kb !==
- f.A.wc && f.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");
- this.ae.gravity = c
- },
- tP: function() {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");
- return this.ae.speed
- },
- Hi: function(c) {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");
- this.ae.speed = c
- },
- Wda: function() {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
- return this.ae.speedVar
- },
- pk: function(c) {
- this.Kb !==
- f.A.wc && f.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");
- this.ae.speedVar = c
- },
- $da: function() {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");
- return this.ae.tangentialAccel
- },
- bq: function(c) {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");
- this.ae.tangentialAccel = c
- },
- aea: function() {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
- return this.ae.tangentialAccelVar
- },
- cq: function(c) {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");
- this.ae.tangentialAccelVar = c
- },
- Pda: function() {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");
- return this.ae.radialAccel
- },
- nk: function(c) {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");
- this.ae.radialAccel = c
- },
- Qda: function() {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
- return this.ae.radialAccelVar
- },
- ok: function(c) {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");
- this.ae.radialAccelVar = c
- },
- cBa: function() {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");
- return this.ae.rotationIsDir
- },
- HHa: function(c) {
- this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");
- this.ae.rotationIsDir = c
- },
- Yda: function() {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
- return this.th.startRadius
- },
- R2: function(c) {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");
- this.th.startRadius = c
- },
- Zda: function() {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");
- return this.th.startRadiusVar
- },
- S2: function(c) {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");
- this.th.startRadiusVar = c
- },
- zda: function() {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
- return this.th.endRadius
- },
- w2: function(c) {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");
- this.th.endRadius = c
- },
- Ada: function() {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");
- return this.th.endRadiusVar
- },
- x2: function(c) {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");
- this.th.endRadiusVar = c
- },
- Rda: function() {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
- return this.th.QQ
- },
- K2: function(c) {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");
- this.th.QQ = c
- },
- Sda: function() {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");
- return this.th.RQ
- },
- L2: function(c) {
- this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");
- this.th.RQ = c
- },
- ib: function(c, d) {
- this.Rw = !0;
- f.v.prototype.ib.call(this, c, d)
- },
- yh: function(c) {
- this.Rw = !0;
- f.v.prototype.yh.call(this, c)
- },
- jb: function(c) {
- this.Rw = !0;
- f.v.prototype.jb.call(this, c)
- },
- tb: function(c) {
- this.Rw = !0;
- f.v.prototype.tb.call(this, c)
- },
- WVa: function() {
- return this.LC
- },
- wl: function(c) {
- this.LC = c
- },
- XVa: function() {
- return this.MC
- },
- xl: function(c) {
- this.MC = c
- },
- KTa: function() {
- return this.rx
- },
- ql: function(c) {
- this.rx = c
- },
- LTa: function() {
- return this.AB
- },
- Wga: function(c) {
- this.AB = c
- },
- uP: function() {
- return f.color(this.Ng.r, this.Ng.g, this.Ng.b, this.Ng.a)
- },
- Tg: function(c) {
- this.Ng = f.color(c)
- },
- Xda: function() {
- return f.color(this.Pt.r,
- this.Pt.g, this.Pt.b, this.Pt.a)
- },
- qk: function(c) {
- this.Pt = f.color(c)
- },
- lP: function() {
- return f.color(this.Jf.r, this.Jf.g, this.Jf.b, this.Jf.a)
- },
- Sg: function(c) {
- this.Jf = f.color(c)
- },
- yda: function() {
- return f.color(this.et.r, this.et.g, this.et.b, this.et.a)
- },
- mk: function(c) {
- this.et = f.color(c)
- },
- YVa: function() {
- return this.NC
- },
- Tha: function(c) {
- this.NC = c
- },
- ZVa: function() {
- return this.OC
- },
- Uha: function(c) {
- this.OC = c
- },
- MTa: function() {
- return this.BB
- },
- Xga: function(c) {
- this.BB = c
- },
- NTa: function() {
- return this.CB
- },
- Yga: function(c) {
- this.CB =
- c
- },
- ITa: function() {
- return this.qx
- },
- ol: function(c) {
- this.qx = c
- },
- ABa: function() {
- return this.Jc
- },
- Xha: function(c) {
- if (f.K === f.fb) this.Jc = 200 > c ? c : 200;
- else {
- if (c > this.RK) {
- var d = f.Yc.BYTES_PER_ELEMENT;
- this.Tb = new Uint16Array(6 * c);
- var e = new ArrayBuffer(c * d),
- g = this.Ct;
- g.length = 0;
- for (var h = this.of, k = h.length = 0; k < c; k++) g[k] = new f.Jl, h[k] = new f.Yc(null, null, null, null, e, k * d);
- this.Jc = this.RK = c;
- if (this.Aa)
- for (d = 0; d < c; d++) g[d].atlasIndex = d;
- this.kg = e;
- this.E0();
- this.Dw();
- this.fa && this.vea(x(0, 0, this.fa.width, this.fa.height))
- } else this.Jc =
- c;
- this.tga()
- }
- },
- sb: function() {
- return this.fa
- },
- ab: function(c) {
- c.ie ? this.V2(c, x(0, 0, c.width, c.height)) : (this.Ba = !1, c.oe(function(c) {
- this.Ba = !0;
- this.V2(c, x(0, 0, c.width, c.height))
- }, this))
- },
- ck: function() {
- return this.B
- },
- ce: function(c, d) {
- if (void 0 === d) this.B != c && (this.B = c, this.Yk());
- else if (this.B.src != c || this.B.ha != d) this.B = {
- src: c,
- ha: d
- }, this.Yk()
- },
- vg: function() {
- return this.Jb
- },
- ee: function(c) {
- this.Jb = c
- },
- PCa: function() {
- return this.B.src == f.SRC_ALPHA && this.B.ha == f.ONE || this.B.src == f.ONE && this.B.ha == f.ONE
- },
- jo: function(c) {
- var d = this.B;
- c ? (d.src = f.SRC_ALPHA, d.ha = f.ONE) : f.K === f.na ? this.fa && !this.fa.Ep() ? (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA) : (d.src = f.Mc, d.ha = f.Lc) : (d.src = f.Mc, d.ha = f.Lc)
- },
- VAa: function() {
- return this.vh
- },
- E2: function(c) {
- this.vh = c
- },
- rXa: function() {
- return this.ZG
- },
- y2a: function(c) {
- this.ZG = c
- },
- JTa: function() {
- return this.Kb
- },
- pl: function(c) {
- this.Kb = c
- },
- j: function() {
- return this.fc(150)
- },
- Ge: function(c) {
- this.jN = c;
- c = f.L.zd(c);
- return c ? this.Ip(c, "") : (f.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), !1)
- },
- Dza: function() {
- return x(0, 0, f.Sb.width, f.Sb.height)
- },
- Ip: function(c) {
- var d = !1,
- e = null,
- e = this.Dva,
- g = parseInt(e("maxParticles", c));
- if (this.fc(g)) {
- this.sm = parseFloat(e("angle", c));
- this.kB = parseFloat(e("angleVariance", c));
- this.duration = parseFloat(e("duration", c));
- this.B.src = parseInt(e("blendFuncSource", c));
- this.B.ha = parseInt(e("blendFuncDestination", c));
- d = this.Ng;
- d.r = 255 * parseFloat(e("startColorRed", c));
- d.g = 255 * parseFloat(e("startColorGreen", c));
- d.b = 255 * parseFloat(e("startColorBlue", c));
- d.a = 255 * parseFloat(e("startColorAlpha",
- c));
- d = this.Pt;
- d.r = 255 * parseFloat(e("startColorVarianceRed", c));
- d.g = 255 * parseFloat(e("startColorVarianceGreen", c));
- d.b = 255 * parseFloat(e("startColorVarianceBlue", c));
- d.a = 255 * parseFloat(e("startColorVarianceAlpha", c));
- d = this.Jf;
- d.r = 255 * parseFloat(e("finishColorRed", c));
- d.g = 255 * parseFloat(e("finishColorGreen", c));
- d.b = 255 * parseFloat(e("finishColorBlue", c));
- d.a = 255 * parseFloat(e("finishColorAlpha", c));
- d = this.et;
- d.r = 255 * parseFloat(e("finishColorVarianceRed", c));
- d.g = 255 * parseFloat(e("finishColorVarianceGreen",
- c));
- d.b = 255 * parseFloat(e("finishColorVarianceBlue", c));
- d.a = 255 * parseFloat(e("finishColorVarianceAlpha", c));
- this.LC = parseFloat(e("startParticleSize", c));
- this.MC = parseFloat(e("startParticleSizeVariance", c));
- this.rx = parseFloat(e("finishParticleSize", c));
- this.AB = parseFloat(e("finishParticleSizeVariance", c));
- this.o(parseFloat(e("sourcePositionx", c)), parseFloat(e("sourcePositiony", c)));
- this.Et.x = parseFloat(e("sourcePositionVariancex", c));
- this.Et.y = parseFloat(e("sourcePositionVariancey", c));
- this.NC = parseFloat(e("rotationStart",
- c));
- this.OC = parseFloat(e("rotationStartVariance", c));
- this.BB = parseFloat(e("rotationEnd", c));
- this.CB = parseFloat(e("rotationEndVariance", c));
- this.Kb = parseInt(e("emitterType", c));
- if (this.Kb == f.A.wc) d = this.ae, d.gravity.x = parseFloat(e("gravityx", c)), d.gravity.y = parseFloat(e("gravityy", c)), d.speed = parseFloat(e("speed", c)), d.speedVar = parseFloat(e("speedVariance", c)), g = e("radialAcceleration", c), d.radialAccel = g ? parseFloat(g) : 0, g = e("radialAccelVariance", c), d.radialAccelVar = g ? parseFloat(g) : 0, g = e("tangentialAcceleration",
- c), d.tangentialAccel = g ? parseFloat(g) : 0, g = e("tangentialAccelVariance", c), d.tangentialAccelVar = g ? parseFloat(g) : 0, g = e("rotationIsDir", c).toLowerCase(), d.rotationIsDir = null != g && ("true" === g || "1" === g);
- else if (this.Kb == f.A.Bj) d = this.th, d.startRadius = parseFloat(e("maxRadius", c)), d.startRadiusVar = parseFloat(e("maxRadiusVariance", c)), d.endRadius = parseFloat(e("minRadius", c)), d.endRadiusVar = 0, d.QQ = parseFloat(e("rotatePerSecond", c)), d.RQ = parseFloat(e("rotatePerSecondVariance", c));
- else return f.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), !1;
- this.qj = parseFloat(e("particleLifespan", c));
- this.fC = parseFloat(e("particleLifespanVariance", c));
- this.qx = this.Jc / this.qj;
- if (!this.Aa)
- if (this.Jb = !1, d = e("textureFileName", c), d = f.path.pB(this.jN, d), g = f.nb.Ru(d)) this.ab(g);
- else if ((c = e("textureImageData", c)) && 0 == c.length) {
- g = f.nb.vd(d);
- if (!g) return !1;
- this.ab(g)
- } else {
- e = f.Cia(c, 1);
- if (!e) return f.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), !1;
- c = f.gAa(e);
- if (c !== f.q5 && c !== f.NS) return f.log("cc.ParticleSystem: unknown image format with Data"), !1;
- g = f.fd("canvas");
- c === f.NS ? (new f.Zma(e)).YFa(g) : f.IIa.VEa(e, g);
- f.nb.Mwa(d, g);
- (c = f.nb.Ru(d)) || f.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");
- this.ab(c)
- }
- d = !0
- }
- return d
- },
- fc: function(c) {
- this.Jc = c;
- var d, e = this.Ct;
- for (d = e.length = 0; d < c; d++) e[d] = new f.Jl;
- if (!e) return f.log("Particle system: not enough memory"), !1;
- this.RK = c;
- if (this.Aa)
- for (d = 0; d < this.Jc; d++) e[d].atlasIndex = d;
- this.eA = !0;
- this.B.src = f.Mc;
- this.B.ha = f.Lc;
- this.vh = f.A.rE;
- this.Kb = f.A.wc;
- this.Rw = this.ZG = !1;
- this.xga(1);
- if (f.K === f.na) {
- if (!this.D8()) return !1;
- this.E0();
- this.Dw();
- this.shaderProgram = f.xg.be(f.zo)
- }
- return !0
- },
- NQa: function() {
- this.UC()
- },
- Sva: function() {
- if (this.XCa()) return !1;
- var c, d = this.Ct;
- f.K === f.fb ? this.Rg < d.length ? c = d[this.Rg] : (c = new f.Jl, d.push(c)) : c = d[this.Rg];
- this.pCa(c);
- ++this.Rg;
- return !0
- },
- pCa: function(c) {
- var d = f.uFa;
- c.Su = this.qj + this.fC * d();
- c.Su = Math.max(0, c.Su);
- c.lc.x = this.QA.x + this.Et.x * d();
- c.lc.y = this.QA.y + this.Et.y * d();
- var e, g;
- e = this.Ng;
- var h = this.Pt,
- k = this.Jf;
- g = this.et;
- f.K === f.fb ? (e = f.color(f.Rf(e.r +
- h.r * d(), 0, 255), f.Rf(e.g + h.g * d(), 0, 255), f.Rf(e.b + h.b * d(), 0, 255), f.Rf(e.a + h.a * d(), 0, 255)), g = f.color(f.Rf(k.r + g.r * d(), 0, 255), f.Rf(k.g + g.g * d(), 0, 255), f.Rf(k.b + g.b * d(), 0, 255), f.Rf(k.a + g.a * d(), 0, 255))) : (e = {
- r: f.Rf(e.r + h.r * d(), 0, 255),
- g: f.Rf(e.g + h.g * d(), 0, 255),
- b: f.Rf(e.b + h.b * d(), 0, 255),
- a: f.Rf(e.a + h.a * d(), 0, 255)
- }, g = {
- r: f.Rf(k.r + g.r * d(), 0, 255),
- g: f.Rf(k.g + g.g * d(), 0, 255),
- b: f.Rf(k.b + g.b * d(), 0, 255),
- a: f.Rf(k.a + g.a * d(), 0, 255)
- });
- c.color = e;
- h = c.jH;
- k = c.Su;
- h.r = (g.r - e.r) / k;
- h.g = (g.g - e.g) / k;
- h.b = (g.b - e.b) / k;
- h.a = (g.a - e.a) / k;
- e = this.LC + this.MC * d();
- e = Math.max(0, e);
- c.size = e;
- this.rx === f.A.Ml ? c.v_ = 0 : (g = this.rx + this.AB * d(), g = Math.max(0, g), c.v_ = (g - e) / k);
- e = this.NC + this.OC * d();
- g = this.BB + this.CB * d();
- c.rotation = e;
- c.Lca = (g - e) / k;
- this.vh == f.A.rE ? c.startPos = this.um(this.CX) : this.vh == f.A.fU && (c.startPos.x = this.oa.x, c.startPos.y = this.oa.y);
- e = f.sg(this.sm + this.kB * d());
- if (this.Kb === f.A.wc) k = this.ae, g = c.ae, h = k.speed + k.speedVar * d(), g.dir.x = Math.cos(e), g.dir.y = Math.sin(e), f.xC(g.dir, h), g.radialAccel = k.radialAccel + k.radialAccelVar * d(), g.tangentialAccel =
- k.tangentialAccel + k.tangentialAccelVar * d(), k.rotationIsDir && (c.rotation = -f.yC(f.oEa(g.dir)));
- else {
- g = this.th;
- c = c.th;
- var h = g.startRadius + g.startRadiusVar * d(),
- m = g.endRadius + g.endRadiusVar * d();
- c.BI = h;
- c.Kca = g.endRadius === f.A.Qna ? 0 : (m - h) / k;
- c.sm = e;
- c.Jca = f.sg(g.QQ + g.RQ * d())
- }
- },
- uIa: function() {
- this.eA = !1;
- this.Fc = this.duration;
- this.Mv = 0
- },
- tga: function() {
- this.eA = !0;
- this.Fc = 0;
- var c = this.Ct;
- for (this.Vj = 0; this.Vj < this.Rg; ++this.Vj) c[this.Vj].Su = 0
- },
- XCa: function() {
- return this.Rg >= this.Jc
- },
- dJa: function(c, d) {
- var e = null;
- this.Aa ? (e = this.Aa.textureAtlas.quads[this.atlasIndex + c.atlasIndex], this.Aa.textureAtlas.dirty = !0) : e = this.of[this.Vj];
- var g, h, k, m;
- this.Jb ? (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);
- m = 0 | c.color.a;
- var n = e.T.D;
- n.r = g;
- n.g = h;
- n.b = k;
- n.a = m;
- n = e.aa.D;
- n.r = g;
- n.g = h;
- n.b = k;
- n.a = m;
- n = e.Z.D;
- n.r = g;
- n.g = h;
- n.b = k;
- n.a = m;
- n = e.W.D;
- n.r = g;
- n.g = h;
- n.b = k;
- n.a = m;
- g = c.size / 2;
- if (c.rotation) {
- h = -g;
- k = -g;
- m = d.x;
- var n = d.y,
- p = -f.sg(c.rotation),
- s = Math.cos(p),
- p = Math.sin(p);
- e.T.k.x = h * s - k * p + m;
- e.T.k.y = h * p + k * s + n;
- e.aa.k.x = g * s - k * p + m;
- e.aa.k.y = g * p + k * s + n;
- e.Z.k.x = h * s - g * p + m;
- e.Z.k.y = h * p + g * s + n;
- e.W.k.x = g * s - g * p + m;
- e.W.k.y = g * p + g * s + n
- } else e.T.k.x = d.x - g, e.T.k.y = d.y - g, e.aa.k.x = d.x + g, e.aa.k.y = d.y - g, e.Z.k.x = d.x - g, e.Z.k.y = d.y + g, e.W.k.x = d.x + g, e.W.k.y = d.y + g
- },
- gFa: function() {
- if (f.K === f.na) {
- var c = f.s;
- c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]);
- c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW)
- }
- },
- update: function(c) {
- if (this.eA && this.qx) {
- var d = 1 / this.qx;
- this.Rg < this.Jc && (this.Mv += c);
- for (; this.Rg <
- this.Jc && this.Mv > d;) this.Sva(), this.Mv -= d;
- this.Fc += c; - 1 != this.duration && this.duration < this.Fc && this.uIa()
- }
- this.Vj = 0;
- d = f.Jl.GK[0];
- this.vh == f.A.rE ? f.$r(d, this.um(this.CX)) : this.vh == f.A.fU && (d.x = this.oa.x, d.y = this.oa.y);
- if (this.Na) {
- for (var e = f.Jl.GK[1], g = f.Jl.GK[2], h = f.Jl.GK[3], k = this.Ct; this.Vj < this.Rg;) {
- f.DQ(e);
- f.DQ(g);
- f.DQ(h);
- var m = k[this.Vj];
- m.Su -= c;
- if (0 < m.Su) {
- if (this.Kb == f.A.wc) {
- var n = h,
- p = e,
- s = g;
- m.lc.x || m.lc.y ? (f.$r(p, m.lc), f.mEa(p)) : f.DQ(p);
- f.$r(s, p);
- f.xC(p, m.ae.radialAccel);
- var u = s.x;
- s.x = -s.y;
- s.y = u;
- f.xC(s, m.ae.tangentialAccel);
- f.$r(n, p);
- f.BQ(n, s);
- f.BQ(n, this.ae.gravity);
- f.xC(n, c);
- f.BQ(m.ae.dir, n);
- f.$r(n, m.ae.dir);
- f.xC(n, c);
- f.BQ(m.lc, n)
- } else n = m.th, n.sm += n.Jca * c, n.BI += n.Kca * c, m.lc.x = -Math.cos(n.sm) * n.BI, m.lc.y = -Math.sin(n.sm) * n.BI;
- this.n9 && f.K !== f.fb || (m.color.r += m.jH.r * c, m.color.g += m.jH.g * c, m.color.b += m.jH.b * c, m.color.a += m.jH.a * c, m.Iea = !0);
- m.size += m.v_ * c;
- m.size = Math.max(0, m.size);
- m.rotation += m.Lca * c;
- n = e;
- this.vh == f.A.rE || this.vh == f.A.fU ? (p = g, f.$r(p, d), f.Mfa(p, m.startPos), f.$r(n, m.lc), f.Mfa(n,
- p)) : f.$r(n, m.lc);
- this.Aa && (n.x += this.oa.x, n.y += this.oa.y);
- f.K == f.na ? this.dJa(m, n) : f.$r(m.nH, n);
- ++this.Vj
- } else if (m = m.atlasIndex, this.Vj !== this.Rg - 1 && (n = k[this.Vj], k[this.Vj] = k[this.Rg - 1], k[this.Rg - 1] = n), this.Aa && (this.Aa.Vxa(this.atlasIndex + m), k[this.Rg - 1].atlasIndex = m), --this.Rg, 0 == this.Rg && this.ZG) {
- this.UC();
- this.Yb.removeChild(this, !0);
- return
- }
- }
- this.Rw = !1
- }
- this.Aa || this.gFa()
- },
- iJa: function() {
- this.update(0)
- },
- Dva: function(c, d) {
- if (d) {
- var e = d[c];
- return null != e ? e : ""
- }
- return ""
- },
- Yk: function() {
- if (this.Aa) f.log("Can't change blending functions when the particle is being batched");
- else {
- var c = this.fa;
- if (c && c instanceof f.Pa) {
- this.Jb = !1;
- var d = this.B;
- d.src == f.Mc && d.ha == f.Lc && (c.Ep() ? this.Jb = !0 : (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA))
- }
- }
- },
- p: function() {
- var c = new f.A;
- if (c.fc(this.Jc)) {
- c.ml(this.sm);
- c.nl(this.kB);
- c.Ei(this.pu());
- var d = this.ck();
- c.ce(d.src, d.ha);
- c.Tg(this.uP());
- c.qk(this.Xda());
- c.Sg(this.lP());
- c.mk(this.yda());
- c.wl(this.LC);
- c.xl(this.MC);
- c.ql(this.rx);
- c.Wga(this.AB);
- c.o(r(this.x, this.y));
- c.vl(r(this.i0().x, this.i0().y));
- c.Tha(this.NC || 0);
- c.Uha(this.OC || 0);
- c.Xga(this.BB ||
- 0);
- c.Yga(this.CB || 0);
- c.pl(this.Kb);
- this.Kb == f.A.wc ? (d = this.uH(), c.vc(r(d.x, d.y)), c.Hi(this.tP()), c.pk(this.Wda()), c.nk(this.Pda()), c.ok(this.Qda()), c.bq(this.$da()), c.cq(this.aea())) : this.Kb == f.A.Bj && (c.R2(this.Yda()), c.S2(this.Zda()), c.w2(this.zda()), c.x2(this.Ada()), c.K2(this.Rda()), c.L2(this.Sda()));
- c.rl(this.qj);
- c.sl(this.fC);
- c.ol(this.qx);
- if (!this.LB() && (c.ee(this.vg()), d = this.sb())) {
- var e = d.e();
- c.V2(d, x(0, 0, e.width, e.height))
- }
- }
- return c
- },
- NGa: function(c) {
- var d = c.Pk;
- 0 == d.x && 0 == d.y || f.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
- f.K === f.na && (this.fa && c.sb().Wh == this.fa.Wh || this.ab(c.sb()))
- },
- V2: function(c, d) {
- var e = this.fa;
- f.K === f.na ? e && c.Wh == e.Wh || e == c || (this.fa = c, this.Yk()) : e && c == e || e == c || (this.fa = c, this.Yk());
- this.bG = d;
- this.vea(d)
- },
- ma: function(c) {
- this.Ba && !this.Aa && (f.K === f.fb ? this.Rq(c) : this.fn(c), f.bl++)
- },
- Rq: function(c) {
- c = c || f.s;
- c.save();
- c.globalCompositeOperation = this.PCa() ? "lighter" : "source-over";
- for (var d = 0; d < this.Rg; d++) {
- var e = this.Ct[d],
- g = 0 | 0.5 * e.size;
- if (this.WO == f.A.p7) {
- if (g = this.fa.md, g.width && g.height) {
- c.save();
- c.globalAlpha = e.color.a / 255;
- c.translate(0 | e.nH.x, -(0 | e.nH.y));
- var h = 4 * Math.floor(e.size / 4),
- k = this.bG.width,
- m = this.bG.height;
- c.scale(Math.max(1 / k * h, 1E-6), Math.max(1 / m * h, 1E-6));
- e.rotation && c.rotate(f.sg(e.rotation));
- c.translate(-(0 | k / 2), -(0 | m / 2));
- e.Iea && (h = f.nb.vP(g)) && (h.kJ || (h.kJ = f.fd("canvas"), h.kJ.width = g.width, h.kJ.height = g.height), f.HB(g, h, e.color, this.bG, h.kJ), g = h.kJ);
- c.drawImage(g, 0, 0);
- c.restore()
- }
- } else c.save(), c.globalAlpha = e.color.a / 255, c.translate(0 | e.nH.x, -(0 | e.nH.y)), this.GR == f.A.Rna ?
- (e.rotation && c.rotate(f.sg(e.rotation)), f.If.jya(c, g, e.color)) : f.If.dya(c, g, e.color), c.restore()
- }
- c.restore()
- },
- fn: function(c) {
- this.fa && (c = c || f.s, this.sd.Ff(), this.sd.zj(), f.Ai(this.fa), f.iea(this.B.src, this.B.ha), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 24, 16), c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]), c.drawElements(c.TRIANGLES, 6 * this.Vj, c.UNSIGNED_SHORT,
- 0))
- },
- h_a: function() {
- f.TT || this.Dw()
- },
- UOa: function() {},
- Dw: function() {
- if (f.K != f.fb) {
- var c = f.s;
- this.Se[0] = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]);
- c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW);
- this.Se[1] = c.createBuffer();
- c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]);
- c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW)
- }
- },
- D8: function() {
- if (f.K === f.fb) return !0;
- if (this.Aa) return f.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), !1;
- var c = f.Yc.BYTES_PER_ELEMENT,
- d = this.Jc,
- e = this.of;
- e.length = 0;
- this.Tb = new Uint16Array(6 * d);
- for (var g = new ArrayBuffer(c * d), h = 0; h < d; h++) e[h] = new f.Yc(null, null, null, null, g, h * c);
- if (!e || !this.Tb) return f.log("cocos2d: Particle system: not enough memory"), !1;
- this.kg = g;
- return !0
- }
- });
- q = f.A.prototype;
- f.d(q, "opacityModifyRGB", q.vg, q.ee);
- f.d(q, "batchNode", q.LB, q.is);
- f.d(q, "active", q.Bi);
- f.d(q, "sourcePos", q.oBa, q.NHa);
- f.d(q, "posVar", q.i0, q.vl);
- f.d(q, "gravity", q.uH, q.vc);
- f.d(q, "speed", q.tP, q.Hi);
- f.d(q, "speedVar", q.Wda, q.pk);
- f.d(q, "tangentialAccel", q.$da, q.bq);
- f.d(q, "tangentialAccelVar", q.aea, q.cq);
- f.d(q, "radialAccel", q.Pda, q.nk);
- f.d(q, "radialAccelVar", q.Qda, q.ok);
- f.d(q, "rotationIsDir", q.cBa, q.HHa);
- f.d(q, "startRadius", q.Yda, q.R2);
- f.d(q, "startRadiusVar", q.Zda, q.S2);
- f.d(q, "endRadius", q.zda, q.w2);
- f.d(q, "endRadiusVar", q.Ada, q.x2);
- f.d(q, "rotatePerS", q.Rda, q.K2);
- f.d(q, "rotatePerSVar", q.Sda, q.L2);
- f.d(q, "startColor", q.uP, q.Tg);
- f.d(q, "startColorVar", q.Xda, q.qk);
- f.d(q, "endColor", q.lP, q.Sg);
- f.d(q, "endColorVar", q.yda, q.mk);
- f.d(q, "totalParticles", q.ABa, q.Xha);
- f.d(q, "texture", q.sb, q.ab);
- f.A.create = function(c) {
- return new f.A(c)
- };
- f.A.jT = function(c, d, e, g, h, k, m, n) {
- this.gravity = c ? c : r(0, 0);
- this.speed = d || 0;
- this.speedVar = e || 0;
- this.tangentialAccel = g || 0;
- this.tangentialAccelVar = h || 0;
- this.radialAccel = k || 0;
- this.radialAccelVar = m || 0;
- this.rotationIsDir = n || !1
- };
- f.A.kT = function(c, d, e, g, h, k) {
- this.startRadius = c || 0;
- this.startRadiusVar = d || 0;
- this.endRadius = e || 0;
- this.endRadiusVar = g || 0;
- this.QQ = h || 0;
- this.RQ = k || 0
- };
- f.A.Nna = 0;
- f.A.p7 = 1;
- f.A.Rna = 0;
- f.A.mja = 1;
- f.A.uo = -1;
- f.A.Ml = -1;
- f.A.Qna = -1;
- f.A.wc = 0;
- f.A.Bj = 1;
- f.A.rE = 0;
- f.A.fU = 1;
- f.A.UMa = 2;
- f.O6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 300 : 150)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(60), this.pk(20), this.ml(90), this.nl(10), this.o(f.Q.Y.width / 2, 60), this.vl(r(40, 20)), this.rl(3), this.sl(0.25), this.wl(54), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(194, 64, 31, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!0), !0) : !1
- }
- });
- f.O6.create = function() {
- var c = new f.O6;
- return c.j() ? c : null
- };
- f.P6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 1500 : 150)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, -90)), this.nk(0), this.ok(0), this.Hi(180), this.pk(50), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.ml(90), this.nl(20), this.rl(3.5), this.sl(1), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 255)), this.Sg(f.color(26, 26, 26, 51)), this.mk(f.color(26, 26, 26, 51)), this.wl(8), this.xl(2), this.ql(f.A.Ml), this.jo(!1), !0) : !1
- }
- });
- f.P6.create = function() {
- var c = new f.P6;
- return c.j() ? c : null
- };
- f.X6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 350 : 150)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.jo(!0), this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(20), this.pk(5), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(1), this.sl(0.5), this.wl(30), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(194, 64, 31, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), !0) : !1
- }
- });
- f.X6.create = function() {
- var c = new f.X6;
- return c.j() ? c : null
- };
- f.R6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 200 : 100)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(60), this.pk(10), this.nk(-80), this.ok(0), this.bq(80), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(4), this.sl(1), this.wl(37), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(31, 64, 194, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0,
- 0, 0, 0)), this.jo(!0), !0) : !1
- }
- });
- f.R6.create = function() {
- var c = new f.R6;
- return c.j() ? c : null
- };
- f.Q6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 250 : 100)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(80), this.pk(10), this.nk(-60), this.ok(0), this.bq(15), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(4), this.sl(1), this.wl(30), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 128)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0,
- 0, 0, 0)), this.jo(!0), !0) : !1
- }
- });
- f.Q6.create = function() {
- var c = new f.Q6;
- return c.j() ? c : null
- };
- f.S6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 150 : 100)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(-200, 200)), this.Hi(15), this.pk(5), this.nk(0), this.ok(0), this.bq(0), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(2), this.sl(1), this.wl(60), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(51, 102, 179)), this.qk(f.color(0, 0, 51, 26)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0,
- 0, 0, 0)), this.jo(!0), !0) : !1
- }
- });
- f.S6.create = function() {
- var c = new f.S6;
- return c.j() ? c : null
- };
- f.W6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 500 : 100)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(150), this.pk(0), this.nk(-380), this.ok(0), this.bq(45), this.cq(0), this.ml(90), this.nl(0), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(12), this.sl(0), this.wl(20), this.xl(0), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 0)), this.Sg(f.color(128, 128, 128, 255)),
- this.mk(f.color(128, 128, 128, 0)), this.jo(!1), !0) : !1
- }
- });
- f.W6.create = function() {
- var c = new f.W6;
- return c.j() ? c : null
- };
- f.N6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 700 : 300)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(0.1), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(70), this.pk(40), this.nk(0), this.ok(0), this.bq(0), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(5), this.sl(2), this.wl(15), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.pu()), this.Tg(f.color(179, 26, 51, 255)), this.qk(f.color(128, 128, 128, 0)), this.Sg(f.color(128, 128, 128, 0)), this.mk(f.color(128,
- 128, 128, 0)), this.jo(!1), !0) : !1
- }
- });
- f.N6.create = function() {
- var c = new f.N6;
- return c.j() ? c : null
- };
- f.U6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 200 : 100)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(25), this.pk(10), this.ml(90), this.nl(5), this.o(f.Q.Y.width / 2, 0), this.vl(r(20, 0)), this.rl(4), this.sl(1), this.wl(60), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(204, 204, 204, 255)), this.qk(f.color(5, 5, 5, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!1), !0) : !1
- }
- });
- f.U6.create = function() {
- var c = new f.U6;
- return c.j() ? c : null
- };
- f.V6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 700 : 250)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, -1)), this.Hi(5), this.pk(1), this.nk(0), this.ok(1), this.bq(0), this.cq(1), c = f.Q.Y, this.o(c.width / 2, c.height + 10), this.vl(r(c.width / 2, 0)), this.ml(-90), this.nl(5), this.rl(45), this.sl(15), this.wl(10), this.xl(5), this.ql(f.A.Ml), this.ol(10), this.Tg(f.color(255, 255, 255, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(255, 255, 255, 0)), this.mk(f.color(0,
- 0, 0, 0)), this.jo(!1), !0) : !1
- }
- });
- f.V6.create = function() {
- var c = new f.V6;
- return c.j() ? c : null
- };
- f.T6 = f.A.extend({
- j: function() {
- return this.fc(f.K === f.na ? 1E3 : 300)
- },
- fc: function(c) {
- return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(10, -10)), this.nk(0), this.ok(1), this.bq(0), this.cq(1), this.Hi(130), this.pk(30), this.ml(-90), this.nl(5), c = f.Q.Y, this.o(c.width / 2, c.height), this.vl(r(c.width / 2, 0)), this.rl(4.5), this.sl(0), this.wl(4), this.xl(2), this.ql(f.A.Ml), this.ol(20), this.Tg(f.color(179, 204, 255, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(179, 204, 255, 128)), this.mk(f.color(0,
- 0, 0, 0)), this.jo(!1), !0) : !1
- }
- });
- f.T6.create = function() {
- var c = new f.T6;
- return c.j() ? c : null
- };
- f.kMa = 500;
- f.pT = f.v.extend({
- textureAtlas: null,
- $Ma: !0,
- B: null,
- ta: "ParticleBatchNode",
- ctor: function(c, d) {
- f.v.prototype.ctor.call(this);
- this.B = {
- src: f.Mc,
- ha: f.Lc
- };
- "string" == typeof c ? this.j(c, d) : c instanceof f.Pa && this.va(c, d)
- },
- va: function(c, d) {
- this.textureAtlas = new f.wq;
- this.textureAtlas.va(c, d);
- this.i.length = 0;
- f.K === f.na && (this.shaderProgram = f.xg.be(f.zo));
- return !0
- },
- Ge: function(c, d) {
- var e = f.nb.vd(c);
- return this.va(e, d)
- },
- j: function(c, d) {
- var e = f.ZMa.ek().vd(c);
- return this.va(e, d)
- },
- n: function(c, d, e) {
- if (!c) throw "cc.ParticleBatchNode.addChild() : child should be non-null";
- if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children";
- d = null == d ? c.zIndex : d;
- e = null == e ? c.tag : e;
- if (c.sb() != this.textureAtlas.texture) throw "cc.ParticleSystem.addChild() : the child is not using the same texture id";
- var g = c.ck();
- if (0 === this.i.length) this.ce(g);
- else if (g.src != this.B.src || g.ha != this.B.ha) {
- f.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");
- return
- }
- d = this.dqa(c, d, e);
- e = 0;
- 0 != d ? (d = this.i[d - 1], e = d.KB() +
- d.Jc) : e = 0;
- this.N0(c, e);
- c.is(this)
- },
- N0: function(c, d) {
- var e = c.Jc,
- g = this.textureAtlas,
- h = g.totalQuads;
- c.k2(d);
- h + e > g.cg && (this.ssa(h + e), g.bda(g.cg - e, e));
- c.KB() + e != h && g.pfa(d, d + e);
- g.rea(e);
- this.YY()
- },
- removeChild: function(c, d) {
- if (null != c) {
- if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children";
- if (-1 == this.i.indexOf(c)) f.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");
- else {
- f.v.prototype.removeChild.call(this, c, d);
- var e = this.textureAtlas;
- e.TFa(c.KB(), c.Jc);
- e.bda(e.totalQuads, c.Jc);
- c.is(null);
- this.YY()
- }
- }
- },
- BC: function(c, d) {
- if (!c) throw "cc.ParticleBatchNode.reorderChild(): child should be non-null";
- if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children";
- if (-1 === this.i.indexOf(c)) f.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");
- else if (d != c.zIndex) {
- if (1 < this.i.length) {
- var e = this.Fra(c, d);
- if (e.wfa != e.sfa) {
- this.i.splice(e.wfa, 1);
- this.i.splice(e.sfa, 0, c);
- e = c.KB();
- this.YY();
- for (var g = 0, h = this.i, k = 0; k < h.length; k++)
- if (h[k] == c) {
- g = c.KB();
- break
- }
- this.textureAtlas.pfa(e, c.Jc, g);
- c.iJa()
- }
- }
- c.Cw(d)
- }
- },
- NFa: function(c, d) {
- this.removeChild(this.i[i], d)
- },
- Cf: function(c) {
- for (var d = this.i, e = 0; e < d.length; e++) d[e].is(null);
- f.v.prototype.Cf.call(this, c);
- this.textureAtlas.AC()
- },
- Vxa: function(c) {
- c = this.textureAtlas.quads[c];
- c.aa.k.x = c.aa.k.y = c.W.k.x = c.W.k.y = c.Z.k.x = c.Z.k.y = c.T.k.x = c.T.k.y = 0;
- this.textureAtlas.Lt(!0)
- },
- ma: function() {
- f.K !== f.fb && 0 != this.textureAtlas.totalQuads &&
- (f.qC(this), f.iea(this.B.src, this.B.ha), this.textureAtlas.yB())
- },
- sb: function() {
- return this.textureAtlas.texture
- },
- ab: function(c) {
- this.textureAtlas.texture = c;
- var d = this.B;
- c && !c.Ep() && d.src == f.Mc && d.ha == f.Lc && (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA)
- },
- ce: function(c, d) {
- void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.src = d)
- },
- ck: function() {
- return {
- src: this.B.src,
- ha: this.B.ha
- }
- },
- I: function(c) {
- f.K !== f.fb && this.Na && (f.Rr(), this.grid && this.grid.Bi() && (this.grid.dx(), this.mJ()), this.transform(c),
- this.ma(c), this.grid && this.grid.Bi() && this.grid.ax(this), f.Qr())
- },
- YY: function() {
- for (var c = 0, d = this.i, e = 0; e < d.length; e++) {
- var g = d[e];
- g.k2(c);
- c += g.Jc
- }
- },
- ssa: function(c) {
- f.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.cg + "] to [" + c + "].");
- this.textureAtlas.NQ(c) || f.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")
- },
- gua: function(c) {
- for (var d = this.i, e = d.length, g = 0; g < e; g++)
- if (d[g].zIndex > c) return g;
- return e
- },
- Fra: function(c, d) {
- for (var e = !1, g = !1, h = 0, k = 0, m = 0, n = this.i, p = n.length, s = 0; s < p; s++) {
- var u = n[s];
- if (u.zIndex > d && !g && (h = s, g = !0, e && g)) break;
- if (c == u && (k = s, e = !0, g || (m = -1), e && g)) break
- }
- g || (h = p);
- return {
- sfa: h + m,
- wfa: k
- }
- },
- dqa: function(c, d, e) {
- if (!c) throw "cc.ParticleBatchNode._addChildHelper(): child should be non-null";
- if (c.parent) return f.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), null;
- this.i || (this.i = []);
- var g = this.gua(d);
- this.i.splice(g, 0, c);
- c.tag = e;
- c.Cw(d);
- c.parent =
- this;
- this.dd && (c.ba(), c.sj());
- return g
- },
- Yk: function() {
- this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA)
- },
- DH: function() {
- return this.textureAtlas
- },
- U2: function(c) {
- this.textureAtlas = c
- }
- });
- q = f.pT.prototype;
- f.d(q, "texture", q.sb, q.ab);
- f.pT.create = function(c, d) {
- return new f.pT(c, d)
- };
- f.tLa = function(c, d, e) {
- this.Qn = c || x(0, 0, 0, 0);
- this.end = d || x(0, 0, 0, 0);
- this.duration = e || 0
- };
- f.sLa = f.N.extend({
- ctor: function() {
- f.Hp.Tba(this)
- },
- KQ: function() {
- f.Hp.KQ(this)
- },
- XG: function() {
- return f.Hp.eca(this)
- },
- UO: function() {
- return f.Hp.Mca(this)
- },
- YZ: function() {
- return !1
- },
- Sxa: function() {},
- ZZ: function() {
- return !1
- },
- Txa: function() {},
- UH: function() {},
- TO: function() {},
- $_: function() {
- return ""
- },
- Z0: function() {},
- Pea: function() {},
- Qea: function() {},
- Oea: function() {}
- });
- f.WS = f.N.extend({
- Ae: null,
- Zb: null,
- Oq: "",
- Zv: null,
- ctor: function() {
- this.Zb = new f.WS.Wla;
- this.Zv = r(0, 0)
- },
- j: function() {
- if (!f.Ed.Or) {
- this.Ae = f.mc("#imeDispatcherInput");
- this.Ae || (this.Ae = f.bD("input"), this.Ae.setAttribute("type", "text"), this.Ae.setAttribute("id", "imeDispatcherInput"), this.Ae.resize(0, 0), this.Ae.nJ(0, 0), this.Ae.style.opacity = "0", this.Ae.style.fontSize = "1px", this.Ae.setAttribute("tabindex", 2), this.Ae.style.position = "absolute", this.Ae.style.top = 0, this.Ae.style.left = 0, document.body.appendChild(this.Ae));
- var c = this;
- f.ub(this.Ae, "input", function() {
- c.MX(c.Ae.value)
- }, !1);
- f.ub(this.Ae, "keydown", function(d) {
- d.keyCode === f.Jy.wIa ? (d.stopPropagation(), d.preventDefault()) : d.keyCode == f.Jy.N_ && (c.kH("\n", 1), d.stopPropagation(), d.preventDefault())
- }, !1);
- /msie/i.test(navigator.userAgent) && f.ub(this.Ae, "keyup", function(d) {
- d.keyCode == f.Jy.fca && c.MX(c.Ae.value)
- }, !1);
- f.ub(window, "mousedown", function(d) {
- var e = d.pageY || 0;
- c.Zv.x = d.pageX || 0;
- c.Zv.y = e
- }, !1)
- }
- },
- MX: function(c) {
- var d, e;
- d = this.Oq.length < c.length ? this.Oq.length :
- c.length;
- for (e = 0; e < d && c[e] === this.Oq[e]; e++);
- var g = this.Oq.length - e,
- h = c.length - e;
- for (d = 0; d < g; d++) this.Oca();
- for (d = 0; d < h; d++) this.kH(c[e + d], 1);
- this.Oq = c
- },
- kH: function(c, d) {
- !this.Zb || !c || 0 >= d || this.Zb.ki && this.Zb.ki.UH(c, d)
- },
- Oca: function() {
- this.Zb && this.Zb.ki && this.Zb.ki.TO()
- },
- $_: function() {
- if (this.Zb && this.Zb.ki) {
- var c = this.Zb.ki.$_();
- return c ? c : ""
- }
- return ""
- },
- YQa: function(c) {
- if (this.Zb)
- for (var d = 0; d < this.Zb.Ik.length; d++) {
- var e = this.Zb.Ik[d];
- e && e.Z0(c)
- }
- },
- WQa: function() {
- if (this.Zb)
- for (var c = 0; c < this.Zb.Ik.length; c++);
- },
- XQa: function() {
- if (this.Zb)
- for (var c = 0; c < this.Zb.Ik.length; c++);
- },
- VQa: function() {
- if (this.Zb)
- for (var c = 0; c < this.Zb.Ik.length; c++);
- },
- Tba: function(c) {
- c && this.Zb && (-1 < this.Zb.Ik.indexOf(c) || this.Zb.Ik.splice(0, 0, c))
- },
- eca: function(c) {
- if (!this.Zb || !c || -1 == this.Zb.Ik.indexOf(c)) return !1;
- if (this.Zb.ki) {
- if (!this.Zb.ki.ZZ() || !c.YZ()) return !1;
- this.Zb.ki = null;
- this.b$(c);
- return !0
- }
- if (!c.YZ()) return !1;
- this.b$(c);
- return !0
- },
- b$: function(c) {
- f.Ed.Or ? (this.Zb.ki = c, this.Oq = c.string || "", c = prompt("please enter your word:",
- this.Oq), null != c && this.MX(c), this.kH("\n", 1)) : (this.Zb.ki = c, this.Oq = c.string || "", this.Ae.focus(), this.Ae.value = this.Oq, this.cra())
- },
- cra: function() {
- /msie/i.test(navigator.userAgent) ? (this.Ae.style.left = this.Zv.x + "px", this.Ae.style.top = this.Zv.y + "px") : this.Ae.nJ(this.Zv.x, this.Zv.y)
- },
- Mca: function(c) {
- if (!this.Zb || !c || this.Zb.ki != c || !c.ZZ()) return !1;
- this.Zb.ki = null;
- f.Sb.focus();
- return !0
- },
- KQ: function(c) {
- this.Zb && c && -1 != this.Zb.Ik.indexOf(c) && (this.Zb.ki && c == this.Zb.ki && (this.Zb.ki = null), f.Ld(this.Zb.Ik,
- c))
- },
- u0a: function(c) {
- 32 > c ? c == f.Jy.fca ? this.Oca() : c == f.Jy.N_ && this.kH("\n", 1) : 255 > c && this.kH(String.fromCharCode(c), 1)
- }
- });
- f.WS.Wla = f.N.extend({
- ki: null,
- Ik: null,
- ctor: function() {
- this.Ik = []
- },
- MRa: function(c) {
- for (var d = 0; d < this.Ik.length; d++)
- if (this.Ik[d] == c) return d;
- return null
- }
- });
- f.Hp = new f.WS;
- document.body ? f.Hp.j() : f.ub(window, "load", function() {
- f.Hp.j()
- }, !1);
- f.YMa = f.N.extend({
- yfa: function() {
- return !1
- },
- Afa: function() {
- return !1
- },
- x1: function() {
- return !1
- },
- zfa: function() {
- return !1
- },
- $Da: function() {
- return !1
- }
- });
- f.Gj = f.ia.extend({
- delegate: null,
- NO: null,
- wOa: null,
- Si: "",
- rw: "",
- pL: 0,
- ta: "TextFieldTTF",
- ctor: function(c, d, e, g, h) {
- this.NO = f.color(127, 127, 127);
- f.Hp.Tba(this);
- f.ia.prototype.ctor.call(this);
- void 0 !== h ? (this.yCa("", d, e, g, h), c && this.Gi(c)) : void 0 === g && void 0 !== e && (this.xf("", d, e), c && this.Gi(c))
- },
- NB: function() {
- return this.delegate
- },
- $p: function(c) {
- this.delegate = c
- },
- MB: function() {
- return this.pL
- },
- YSa: function() {
- return this.NO
- },
- L2a: function(c) {
- this.NO = c
- },
- yCa: function(c, d, e, g, h) {
- switch (arguments.length) {
- case 5:
- return c &&
- this.Gi(c), this.xf(this.rw, g, h, d, e);
- case 3:
- return c && this.Gi(c), this.xf(this.rw, arguments[1], arguments[2]);
- default:
- throw "Argument must be non-nil ";
- }
- },
- wa: function(c) {
- this.Si = (c = String(c)) || "";
- this.Si.length ? f.ia.prototype.wa.call(this, this.Si) : f.ia.prototype.wa.call(this, this.rw);
- this.pL = this.Si.length
- },
- qc: function() {
- return this.Si
- },
- Gi: function(c) {
- this.rw = c || "";
- this.Si.length || f.ia.prototype.wa.call(this, this.rw)
- },
- RB: function() {
- return this.rw
- },
- ma: function(c) {
- c = c || f.s;
- if (this.Si && 0 < this.Si.length) f.ia.prototype.ma.call(this,
- c);
- else {
- var d = this.color;
- this.color = this.NO;
- f.K === f.fb && this.qO();
- f.ia.prototype.ma.call(this, c);
- this.color = d
- }
- },
- I: function(c) {
- this._super(c)
- },
- XG: function() {
- return f.Hp.eca(this)
- },
- UO: function() {
- return f.Hp.Mca(this)
- },
- YZ: function() {
- return this.delegate ? !this.delegate.yfa(this) : !0
- },
- Sxa: function() {},
- ZZ: function() {
- return this.delegate ? !this.delegate.Afa(this) : !0
- },
- Txa: function() {},
- TO: function() {
- var c = this.Si.length;
- 0 == c || this.delegate && this.delegate.zfa(this, this.Si[c - 1], 1) || (1 >= c ? (this.Si = "", this.pL = 0,
- f.ia.prototype.wa.call(this, this.rw)) : this.string = this.Si.substring(0, c - 1))
- },
- KQ: function() {
- f.Hp.KQ(this)
- },
- UH: function(c) {
- var d = c;
- c = d.indexOf("\n"); - 1 < c && (d = d.substring(0, c));
- if (0 < d.length) {
- if (this.delegate && this.delegate.x1(this, d, d.length)) return;
- d = this.Si + d;
- this.pL = d.length;
- this.string = d
- } - 1 != c && (this.delegate && this.delegate.x1(this, "\n", 1) || this.UO())
- },
- $_: function() {
- return this.Si
- },
- Z0: function() {},
- Pea: function() {},
- Qea: function() {},
- Oea: function() {}
- });
- q = f.Gj.prototype;
- f.d(q, "charCount", q.MB);
- f.d(q, "placeHolder", q.RB, q.Gi);
- f.Gj.create = function(c, d, e, g, h) {
- return new f.Gj(c, d, e, g, h)
- };
- f.mM = f.Vla;
- f.AF = "Arial";
- f.t$ = !1;
- f.hf = f.ja.extend({
- $c: !1,
- ad: null,
- bg: null,
- Rj: !1,
- ta: "MenuItem",
- ctor: function(c, d) {
- var e = f.ja.prototype;
- e.ctor.call(this);
- this.bg = this.ad = null;
- this.$c = this.Rj = !1;
- e.S.call(this, 0.5, 0.5);
- this.ad = d || null;
- if (this.bg = c || null) this.$c = !0
- },
- WP: function() {
- return this.Rj
- },
- ee: function() {},
- vg: function() {
- return !1
- },
- ZI: function(c, d) {
- this.ad = d;
- this.bg = c
- },
- isEnabled: function() {
- return this.$c
- },
- Lb: function(c) {
- this.$c = c
- },
- SH: function(c, d) {
- this.anchorY = this.anchorX = 0.5;
- this.ad = d;
- this.bg = c;
- this.$c = !0;
- this.Rj = !1;
- return !0
- },
- rect: function() {
- var c =
- this.oa,
- d = this.m,
- e = this.Eb;
- return x(c.x - d.width * e.x, c.y - d.height * e.y, d.width, d.height)
- },
- selected: function() {
- this.Rj = !0
- },
- no: function() {
- this.Rj = !1
- },
- Kga: function(c, d) {
- this.ad = d;
- this.bg = c
- },
- iB: function() {
- if (this.$c) {
- var c = this.ad,
- d = this.bg;
- if (d)
- if (c && "string" == typeof d) c[d](this);
- else c && "function" == typeof d ? d.call(c, this) : d(this)
- }
- }
- });
- q = f.hf.prototype;
- f.d(q, "enabled", q.isEnabled, q.Lb);
- f.hf.create = function(c, d) {
- return new f.hf(c, d)
- };
- f.kv = f.hf.extend({
- Fz: null,
- gg: null,
- vta: 0,
- WE: null,
- ctor: function(c, d, e) {
- f.hf.prototype.ctor.call(this, d, e);
- this.gg = this.Fz = null;
- this.vta = 0;
- this.WE = null;
- c && (this.WF = 1, this.WE = f.color.WHITE, this.Fz = f.color(126, 126, 126), this.lR(c), this.cascadeOpacity = this.cascadeColor = !0)
- },
- Qza: function() {
- return this.Fz
- },
- LGa: function(c) {
- this.Fz = c
- },
- nAa: function() {
- return this.gg
- },
- lR: function(c) {
- c && (this.n(c), c.anchorX = 0, c.anchorY = 0, this.width = c.width, this.height = c.height);
- this.gg && this.removeChild(this.gg, !0);
- this.gg = c
- },
- Lb: function(c) {
- if (this.$c !=
- c) {
- var d = this.gg;
- c ? d.color = this.WE : (this.WE = d.color, d.color = this.Fz)
- }
- f.hf.prototype.Lb.call(this, c)
- },
- J: function(c) {
- this.gg.opacity = c
- },
- vb: function() {
- return this.gg.opacity
- },
- F: function(c) {
- this.gg.color = c
- },
- $a: function() {
- return this.gg.color
- },
- Cea: function(c, d, e) {
- this.SH(d, e);
- this.WF = 1;
- this.WE = f.color.WHITE;
- this.Fz = f.color(126, 126, 126);
- this.lR(c);
- return this.cascadeOpacity = this.cascadeColor = !0
- },
- wa: function(c) {
- this.gg.string = c;
- this.width = this.gg.width;
- this.height = this.gg.height
- },
- qc: function() {
- return this.gg.string
- },
- iB: function() {
- this.$c && (this.Pm(), this.scale = this.WF, f.hf.prototype.iB.call(this))
- },
- selected: function() {
- if (this.$c) {
- f.hf.prototype.selected.call(this);
- var c = this.eP(f.IK);
- c ? this.hJ(c) : this.WF = this.scale;
- c = f.Db.create(0.1, 1.2 * this.WF);
- c.Nm(f.IK);
- this.V(c)
- }
- },
- no: function() {
- if (this.$c) {
- f.hf.prototype.no.call(this);
- this.sIa(f.IK);
- var c = f.Db.create(0.1, this.WF);
- c.Nm(f.IK);
- this.V(c)
- }
- }
- });
- q = f.kv.prototype;
- f.d(q, "string", q.qc, q.wa);
- f.d(q, "disabledColor", q.Qza, q.LGa);
- f.d(q, "label", q.nAa, q.lR);
- f.kv.create = function(c, d, e) {
- return new f.kv(c, d, e)
- };
- f.e6 = f.kv.extend({
- ctor: function(c, d, e, g, h, k, m) {
- var n;
- c && 0 < c.length && (n = f.an.create(c, d, e, g, h));
- f.kv.prototype.ctor.call(this, n, k, m)
- },
- xf: function(c, d, e, g, h, k, m) {
- if (!c || 0 == c.length) throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0";
- var n = new f.an;
- n.xf(c, d, e, g, h);
- this.Cea(n, k, m);
- return !0
- }
- });
- f.e6.create = function(c, d, e, g, h, k, m) {
- return new f.e6(c, d, e, g, h, k, m)
- };
- f.jv = f.kv.extend({
- Sc: null,
- Rc: null,
- ctor: function(c, d, e) {
- var g;
- c && 0 < c.length ? (this.Rc = f.AF, this.Sc = f.mM, g = f.ia.create(c, this.Rc, this.Sc)) : (this.Sc = 0, this.Rc = "");
- f.kv.prototype.ctor.call(this, g, d, e)
- },
- xf: function(c, d, e) {
- if (!c || 0 == c.length) throw "Value should be non-null and its length should be greater than 0";
- this.Rc = f.AF;
- this.Sc = f.mM;
- c = f.ia.create(c, this.Rc, this.Sc);
- this.Cea(c, d, e);
- return !0
- },
- Qd: function(c) {
- this.Sc = c;
- this.Aaa()
- },
- Un: function() {
- return this.Sc
- },
- de: function(c) {
- this.Rc = c;
- this.Aaa()
- },
- Cp: function() {
- return this.Rc
- },
- Aaa: function() {
- var c = f.ia.create(this.gg.string, this.Rc, this.Sc);
- this.lR(c)
- }
- });
- f.jv.Qd = function(c) {
- f.mM = c
- };
- f.jv.fontSize = function() {
- return f.mM
- };
- f.jv.de = function(c) {
- f.t$ && (f.AF = "");
- f.AF = c;
- f.t$ = !0
- };
- q = f.jv.prototype;
- f.d(q, "fontSize", q.Un, q.Qd);
- f.d(q, "fontName", q.Cp, q.de);
- f.jv.fontName = function() {
- return f.AF
- };
- f.jv.create = function(c, d, e) {
- return new f.jv(c, d, e)
- };
- f.Oy = f.hf.extend({
- Ig: null,
- dj: null,
- Qi: null,
- ctor: function(c, d, e, g, h) {
- f.hf.prototype.ctor.call(this);
- this.Qi = this.dj = this.Ig = null;
- if (void 0 !== d) {
- var k, m, n;
- void 0 !== h ? (k = e, n = g, m = h) : void 0 !== g && "function" === typeof g ? (k = e, n = g) : void 0 !== g && "function" === typeof e ? (m = g, n = e, k = d) : void 0 === e && (k = d);
- this.Dea(c, d, k, n, m)
- }
- },
- IAa: function() {
- return this.Ig
- },
- A2: function(c) {
- this.Ig != c && (c && (this.n(c, 0, f.uma), c.anchorX = 0, c.anchorY = 0), this.Ig && this.removeChild(this.Ig, !0), this.Ig = c, this.width = this.Ig.width, this.height = this.Ig.height,
- this.lO(), c.RC && !c.Ba && c.oe(function(c) {
- this.width = c.width;
- this.height = c.height
- }, this))
- },
- hBa: function() {
- return this.dj
- },
- O2: function(c) {
- this.dj != c && (c && (this.n(c, 0, f.yna), c.anchorX = 0, c.anchorY = 0), this.dj && this.removeChild(this.dj, !0), this.dj = c, this.lO())
- },
- Rza: function() {
- return this.Qi
- },
- v2: function(c) {
- this.Qi != c && (c && (this.n(c, 0, f.Zka), c.anchorX = 0, c.anchorY = 0), this.Qi && this.removeChild(this.Qi, !0), this.Qi = c, this.lO())
- },
- Dea: function(c, d, e, g, h) {
- this.SH(g, h);
- this.A2(c);
- this.O2(d);
- this.v2(e);
- if (c = this.Ig) this.width =
- c.width, this.height = c.height, c.RC && !c.Ba && c.oe(function(c) {
- this.width = c.width;
- this.height = c.height;
- this.cascadeOpacity = this.cascadeColor = !0
- }, this);
- return this.cascadeOpacity = this.cascadeColor = !0
- },
- F: function(c) {
- this.Ig.color = c;
- this.dj && (this.dj.color = c);
- this.Qi && (this.Qi.color = c)
- },
- $a: function() {
- return this.Ig.color
- },
- J: function(c) {
- this.Ig.opacity = c;
- this.dj && (this.dj.opacity = c);
- this.Qi && (this.Qi.opacity = c)
- },
- vb: function() {
- return this.Ig.opacity
- },
- selected: function() {
- f.hf.prototype.selected.call(this);
- this.Ig && (this.Qi && (this.Qi.visible = !1), this.dj ? (this.Ig.visible = !1, this.dj.visible = !0) : this.Ig.visible = !0)
- },
- no: function() {
- f.hf.prototype.no.call(this);
- this.Ig && (this.Ig.visible = !0, this.dj && (this.dj.visible = !1), this.Qi && (this.Qi.visible = !1))
- },
- Lb: function(c) {
- this.$c != c && (f.hf.prototype.Lb.call(this, c), this.lO())
- },
- lO: function() {
- var c = this.Ig,
- d = this.dj,
- e = this.Qi;
- this.$c ? (c && (c.visible = !0), d && (d.visible = !1), e && (e.visible = !1)) : e ? (c && (c.visible = !1), d && (d.visible = !1), e && (e.visible = !0)) : (c && (c.visible = !0),
- d && (d.visible = !1))
- }
- });
- q = f.Oy.prototype;
- f.d(q, "normalImage", q.IAa, q.A2);
- f.d(q, "selectedImage", q.hBa, q.O2);
- f.d(q, "disabledImage", q.Rza, q.v2);
- f.Oy.create = function(c, d, e, g, h) {
- return new f.Oy(c, d, e, g, h || void 0)
- };
- f.Il = f.Oy.extend({
- ctor: function(c, d, e, g, h) {
- var k = null,
- m = null,
- n = null,
- p = null,
- s = null;
- void 0 === c ? f.Oy.prototype.ctor.call(this) : (k = f.q.create(c), d && (m = f.q.create(d)), void 0 === g ? p = e : void 0 === h ? (p = e, s = g) : h && (n = f.q.create(e), p = g, s = h), f.Oy.prototype.ctor.call(this, k, m, n, p, s))
- },
- mHa: function(c) {
- this.A2(f.q.create(c))
- },
- IHa: function(c) {
- this.O2(f.q.create(c))
- },
- MGa: function(c) {
- this.v2(f.q.create(c))
- },
- cXa: function(c, d, e, g, h) {
- var k = null,
- m = null,
- n = null;
- c && (k = f.q.create(c));
- d && (m = f.q.create(d));
- e && (n = f.q.create(e));
- return this.Dea(k, m, n, g, h)
- }
- });
- f.Il.create = function(c, d, e, g, h) {
- return new f.Il(c, d, e, g, h)
- };
- f.hT = f.hf.extend({
- yg: null,
- im: 0,
- Ib: null,
- Ea: null,
- ctor: function() {
- var c = arguments.length,
- d, e;
- "function" === typeof arguments[c - 2] ? (d = arguments[c - 2], e = arguments[c - 1], c -= 2) : "function" === typeof arguments[c - 1] && (d = arguments[c - 1], c -= 1);
- f.hf.prototype.ctor.call(this, d, e);
- this.im = 0;
- this.yg = [];
- this.Ib = 0;
- this.Ea = f.color.WHITE;
- if (0 < c) {
- d = this.yg;
- for (e = d.length = 0; e < c; e++) arguments[e] && d.push(arguments[e]);
- this.im = f.oU;
- this.VI(0);
- this.Gu(!0);
- this.Hu(!0)
- }
- },
- vb: function() {
- return this.Ib
- },
- J: function(c) {
- this.Ib = c;
- if (this.yg &&
- 0 < this.yg.length)
- for (var d = 0; d < this.yg.length; d++) this.yg[d].opacity = c;
- this.Ea.a = c
- },
- $a: function() {
- var c = this.Ea;
- return f.color(c.r, c.g, c.b, c.a)
- },
- F: function(c) {
- var d = this.Ea;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- if (this.yg && 0 < this.yg.length)
- for (d = 0; d < this.yg.length; d++) this.yg[d].F(c);
- void 0 === c.a || c.Yw || this.J(c.a)
- },
- iBa: function() {
- return this.im
- },
- VI: function(c) {
- if (c != this.im) {
- this.im = c;
- (c = this.Za(f.L4)) && c.Yp(!1);
- c = this.yg[this.im];
- this.n(c, 0, f.L4);
- var d = c.width,
- e = c.height;
- this.width = d;
- this.height = e;
- c.o(d / 2, e /
- 2)
- }
- },
- aWa: function() {
- return this.yg
- },
- o4a: function(c) {
- this.yg = c
- },
- NP: function(c) {
- var d = c.length;
- "function" === typeof c[c.length - 2] ? (this.SH(c[c.length - 2], c[c.length - 1]), d -= 2) : "function" === typeof c[c.length - 1] ? (this.SH(c[c.length - 1], null), d -= 1) : this.SH(null, null);
- for (var e = this.yg, g = e.length = 0; g < d; g++) c[g] && e.push(c[g]);
- this.im = f.oU;
- this.VI(0);
- return this.cascadeOpacity = this.cascadeColor = !0
- },
- CPa: function(c) {
- this.yg.push(c)
- },
- iB: function() {
- this.$c && this.VI((this.im + 1) % this.yg.length);
- f.hf.prototype.iB.call(this)
- },
- selected: function() {
- f.hf.prototype.selected.call(this);
- this.yg[this.im].selected()
- },
- no: function() {
- f.hf.prototype.no.call(this);
- this.yg[this.im].no()
- },
- Lb: function(c) {
- if (this.$c != c) {
- f.hf.prototype.Lb.call(this, c);
- var d = this.yg;
- if (d && 0 < d.length)
- for (var e = 0; e < d.length; e++) d[e].enabled = c
- }
- },
- k2a: function() {
- return this.yg[this.im]
- },
- ba: function() {
- f.v.prototype.ba.call(this);
- this.VI(this.im)
- }
- });
- q = f.hT.prototype;
- f.d(q, "selectedIndex", q.iBa, q.VI);
- f.hT.create = function() {
- 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript");
- var c = new f.hT;
- c.NP(Array.prototype.slice.apply(arguments));
- return c
- };
- f.aE = 0;
- f.$D = 1;
- f.RLa = -128;
- f.OJ = 5;
- f.ws = f.ci.extend({
- enabled: !1,
- Ea: null,
- Ib: 0,
- Lf: null,
- Ic: -1,
- vi: null,
- ta: "Menu",
- ctor: function(c) {
- f.ci.prototype.ctor.call(this);
- this.Ea = f.color.WHITE;
- this.enabled = !1;
- this.Ib = 255;
- this.Lf = null;
- this.Ic = -1;
- this.vi = f.Xa.create({
- event: f.Xa.zs,
- QC: !0,
- rc: this.pta,
- hd: this.tta,
- gd: this.rta,
- ef: this.qta
- });
- 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript");
- var d = arguments.length,
- e;
- if (0 == d) e = [];
- else if (1 == d) e = c instanceof Array ? c : [c];
- else if (1 < d) {
- e = [];
- for (var g = 0; g < d; g++) arguments[g] && e.push(arguments[g])
- }
- this.xea(e)
- },
- ba: function() {
- var c = this.vi;
- c.aj || f.Qa.addListener(c, this);
- f.v.prototype.ba.call(this)
- },
- $a: function() {
- var c = this.Ea;
- return f.color(c.r, c.g, c.b, c.a)
- },
- F: function(c) {
- var d = this.Ea;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- if ((d = this.i) && 0 < d.length)
- for (var e = 0; e < d.length; e++) d[e].F(c);
- void 0 === c.a || c.Yw || this.J(c.a)
- },
- vb: function() {
- return this.Ib
- },
- J: function(c) {
- this.Ib = c;
- var d = this.i;
- if (d && 0 < d.length)
- for (var e = 0; e < d.length; e++) d[e].J(c);
- this.Ea.a = c
- },
- isEnabled: function() {
- return this.enabled
- },
- Lb: function(c) {
- this.enabled = c
- },
- NP: function(c) {
- var d = [];
- if (c)
- for (var e = 0; e < c.length; e++) c[e] && d.push(c[e]);
- return this.xea(d)
- },
- xea: function(c) {
- if (f.ci.prototype.j.call(this)) {
- this.enabled = !0;
- var d = f.gq;
- this.o(d.width / 2, d.height / 2);
- this.Ga(d);
- this.S(0.5, 0.5);
- this.Gm(!0);
- if (c)
- for (d = 0; d < c.length; d++) this.n(c[d], d);
- this.Lf = null;
- this.Ic = f.aE;
- return this.cascadeOpacity = this.cascadeColor = !0
- }
- return !1
- },
- n: function(c, d, e) {
- if (!(c instanceof f.hf)) throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children";
- f.Me.prototype.n.call(this, c, d, e)
- },
- cwa: function() {
- this.yZ(f.OJ)
- },
- yZ: function(c) {
- var d = -c,
- e = this.i,
- g, h, k, m;
- if (e && 0 < e.length) {
- h = 0;
- for (g = e.length; h < g; h++) d += e[h].height * e[h].scaleY + c;
- var n = d / 2;
- h = 0;
- for (g = e.length; h < g; h++) m = e[h], k = m.height, d = m.scaleY, m.o(0, n - k * d / 2), n -= k * d + c
- }
- },
- $va: function() {
- this.xZ(f.OJ)
- },
- xZ: function(c) {
- var d = -c,
- e = this.i,
- g, h, k, m;
- if (e && 0 < e.length) {
- g = 0;
- for (h = e.length; g < h; g++) d += e[g].width * e[g].scaleX + c;
- var n = -d / 2;
- g = 0;
- for (h = e.length; g < h; g++) m = e[g], d = m.scaleX, k = e[g].width, m.o(n + k * d / 2, 0), n +=
- k * d + c
- }
- },
- awa: function() {
- 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript");
- for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]);
- var e = -5,
- g = 0,
- h = 0,
- k = 0,
- m, n, p, s = this.i;
- if (s && 0 < s.length)
- for (d = 0, p = s.length; d < p; d++) g >= c.length || !(m = c[g]) || (n = s[d].height, h = h >= n || isNaN(n) ? h : n, ++k, k >= m && (e += h + 5, h = k = 0, ++g));
- var u = f.Q.Y,
- v = m = h = g = 0,
- z = 0,
- e = e / 2;
- if (s && 0 < s.length)
- for (d = 0, p = s.length; d < p; d++) {
- var A = s[d];
- 0 == m && (m = c[g], z = v = u.width / (1 + m));
- n = A.Gg();
- h = h >= n || isNaN(n) ? h : n;
- A.o(z - u.width / 2, e - n / 2);
- z += v;
- ++k;
- k >= m && (e -= h + 5, h = m = k = 0, ++g)
- }
- },
- bwa: function() {
- 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript");
- var c = [],
- d;
- for (d = 0; d < arguments.length; d++) c.push(arguments[d]);
- var e = [],
- g = [],
- h = -10,
- k = -5,
- m = 0,
- n = 0,
- p = 0,
- s, u, v, z, A = this.i;
- if (A && 0 < A.length)
- for (d = 0, v = A.length; d < v; d++)(u = A[d], m >= c.length || !(s = c[m])) || (z = u.width, n = n >= z || isNaN(z) ? n : z, k += u.height + 5, ++p, p >= s && (e.push(n), g.push(k), h += n + 10, n = p =
- 0, k = -5, ++m));
- k = f.Q.Y;
- s = n = m = 0;
- var h = -h / 2,
- B = 0;
- if (A && 0 < A.length)
- for (d = 0, v = A.length; d < v; d++) u = A[d], 0 == s && (s = c[m], B = g[m]), z = u.lf(), n = n >= z || isNaN(z) ? n : z, u.o(h + e[m] / 2, B - k.height / 2), B -= u.height + 10, ++p, p >= s && (h += n + 5, n = s = p = 0, ++m)
- },
- removeChild: function(c, d) {
- null != c && (c instanceof f.hf ? (this.Lf == c && (this.Lf = null), f.v.prototype.removeChild.call(this, c, d)) : f.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
- },
- pta: function(c, d) {
- var e = d.eh;
- if (e.Ic != f.aE || !e.Na || !e.enabled) return !1;
- for (var g =
- e.parent; null != g; g = g.parent)
- if (!g.Na) return !1;
- e.Lf = e.N$(c);
- return e.Lf ? (e.Ic = f.$D, e.Lf.selected(), !0) : !1
- },
- rta: function(c, d) {
- var e = d.eh;
- e.Ic !== f.$D ? f.log("cc.Menu.onTouchEnded(): invalid state") : (e.Lf && (e.Lf.no(), e.Lf.iB()), e.Ic = f.aE)
- },
- qta: function(c, d) {
- var e = d.eh;
- e.Ic !== f.$D ? f.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Lf && e.Lf.no(), e.Ic = f.aE)
- },
- tta: function(c, d) {
- var e = d.eh;
- if (e.Ic !== f.$D) f.log("cc.Menu.onTouchMoved(): invalid state");
- else {
- var g = e.N$(c);
- g != e.Lf && (e.Lf && e.Lf.no(), e.Lf = g,
- e.Lf && e.Lf.selected())
- }
- },
- Ra: function() {
- this.Ic == f.$D && (this.Lf && (this.Lf.no(), this.Lf = null), this.Ic = f.aE);
- f.v.prototype.Ra.call(this)
- },
- ee: function() {},
- vg: function() {
- return !1
- },
- N$: function(c) {
- c = c.cf();
- var d = this.i,
- e;
- if (d && 0 < d.length)
- for (var g = 0; g < d.length; g++)
- if (e = d[g], e.Na && e.isEnabled()) {
- var h = e.yi(c),
- k = e.rect();
- k.x = 0;
- k.y = 0;
- if (f.Bu(k, h)) return e
- }
- return null
- }
- });
- q = f.ws.prototype;
- f.ws.create = function(c) {
- var d = arguments.length;
- 0 < d && null == arguments[d - 1] && f.log("parameters should not be ending with null in Javascript");
- return 0 == d ? new f.ws : 1 == d ? new f.ws(c) : new f.ws(Array.prototype.slice.call(arguments, 0))
- };
- f.MMa = 0;
- f.IMa = 1;
- f.LMa = 2;
- f.JMa = 3;
- f.KMa = 4;
- f.HMa = 5;
- f.u5a = function(c, d, e) {
- var g = 2;
- if (g + 1 > d) return !1;
- c = new f.Cja(c);
- c.nR(g);
- e.type = c.ca();
- g += 10;
- if (g + 4 + 1 > d) return !1;
- c.nR(g);
- e.width = c.yFa();
- e.height = c.xFa();
- e.pixelDepth = c.ca();
- if (g + 5 + 1 > d) return !1;
- d = c.ca();
- e.ida = 0;
- d & 32 && (e.ida = 1);
- return !0
- };
- f.v5a = function(c, d, e) {
- var g, h;
- g = 0 | e.pixelDepth / 2;
- h = e.height * e.width * g;
- if (18 + h > d) return !1;
- e.fk = f.MK(c, 18, 18 + h);
- if (3 <= g)
- for (c = 0; c < h; c += g) d = e.fk[c], e.fk[c] = e.fk[c + 2], e.fk[c + 2] = d;
- return !0
- };
- f.x5a = function(c) {
- var d, e;
- if (8 !== c.pixelDepth) {
- var g = c.pixelDepth / 8,
- h = new Uint8Array(c.height * c.width);
- if (null !== h) {
- for (e = d = 0; e < c.width * c.height; d += g, e++) h[e] = 0.3 * c.fk[d] + 0.59 * c.fk[d + 1] + 0.11 * c.fk[d + 2];
- c.pixelDepth = 8;
- c.type = 3;
- c.fk = h
- }
- }
- };
- f.s5a = function(c) {
- c && (c.fk = null)
- };
- f.w5a = function(c, d, e) {
- var g, h, k, m = 0,
- n = 0,
- p = 0,
- s = [],
- u = 0,
- v = 18;
- g = e.pixelDepth / 8;
- h = e.height * e.width;
- for (k = 0; k < h; k++) {
- if (0 != u) u--, n = 0 != p;
- else {
- if (v + 1 > d) break;
- u = c[v];
- v += 1;
- (p = u & 128) && (u -= 128);
- n = 0
- } if (!n) {
- if (v + g > d) break;
- s = f.MK(c, v, v + g);
- v += g;
- 3 <= g && (n = s[0], s[0] = s[2], s[2] = n)
- }
- for (n = 0; n < g; n++) e.fk[m + n] = s[n];
- m += g
- }
- return !0
- };
- f.t5a = function(c) {
- for (var d = c.pixelDepth / 8 * c.width, e = 0; e < c.height / 2; e++) {
- var g = f.MK(c.fk, e * d, e * d + d);
- f.s8(f.MK(c.fk, (c.height - (e + 1)) * d, d), c.fk, e * d);
- f.s8(g, c.fk, (c.height - (e + 1)) * d)
- }
- c.ida = 0
- };
- f.MK = function(c, d, e) {
- return c instanceof Array ? c.slice(d, e) : c.subarray(d, e)
- };
- f.s8 = function(c, d, e) {
- for (var g = 0; g < c.length; g++) d[e + g] = c[g]
- };
- f.Cja = f.N.extend({
- hz: null,
- hb: 0,
- ctor: function(c) {
- this.hz = c
- },
- C2a: function(c) {
- this.hz = c;
- this.hb = 0
- },
- tSa: function() {
- return this.hz
- },
- sV: function(c) {
- if (!(this.hb + Math.ceil(c / 8) < this.Mh.length)) throw Error("Index out of bound");
- },
- FV: function(c, d) {
- var e = c + d + 1,
- g = e >> 3;
- this.sV(e);
- var e = Math.pow(2, d - 1) - 1,
- h = this.QX(c + d, 1, g),
- k = this.QX(c, d, g),
- m = 0,
- n = 2,
- p = 0;
- do
- for (var s = this.pN(++p, g), u = c % 8 || 8, v = 1 << u; v >>= 1;) s & v && (m += 1 / n), n *= 2; while (c -= u);
- this.hb += g;
- return k == (e << 1) + 1 ? m ? NaN : h ? -Infinity : Infinity : (1 + -2 * h) * (k || m ? k ? Math.pow(2,
- k - e) * (1 + m) : Math.pow(2, -e + 1) * m : 0)
- },
- pN: function(c, d) {
- return this.Mh[this.hb + d - c - 1]
- },
- CL: function(c, d) {
- var e = this.QX(0, c, c / 8),
- g = Math.pow(2, c);
- this.hb += c / 8;
- return d && e >= g / 2 ? e - g : e
- },
- tY: function(c, d) {
- for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c : 2 * (c - 1073741824) + 2147483648);
- return c
- },
- QX: function(c, d, e) {
- var g = (c + d) % 8,
- h = c % 8,
- k = e - (c >> 3) - 1;
- c = e + (-(c + d) >> 3);
- var m = k - c;
- d = this.pN(k, e) >> h & (1 << (m ? 8 - h : d)) - 1;
- for (m && g && (d += (this.pN(c++, e) & (1 << g) - 1) << (m-- << 3) - h); m;) d += this.tY(this.pN(c++, e), (m-- << 3) - h);
- return d
- },
- H0a: function() {
- return this.CL(32, !0)
- },
- xFa: function() {
- return this.CL(32, !1)
- },
- J0a: function() {
- return this.FV(23, 8)
- },
- I0a: function() {
- return this.CL(16, !0)
- },
- yFa: function() {
- return this.CL(16, !1)
- },
- ca: function() {
- var c = this.Mh[this.hb];
- this.hb += 1;
- return c
- },
- E0a: function(c, d) {
- return this.hz instanceof Array ? this.hz.slice(c, d) : this.hz.subarray(c, d)
- },
- nR: function(c) {
- this.hb = c
- },
- Kda: function() {
- return this.hb
- }
- });
- f.AK = 0;
- f.yK = 1;
- f.zK = 2;
- f.xK = f.ja.extend({
- Ad: null,
- j1: null,
- rC: null,
- jg: null,
- ud: null,
- vr: null,
- ta: "TMXTiledMap",
- ctor: function(c, d) {
- f.v.prototype.ctor.call(this);
- this.jg = t(0, 0);
- this.ud = t(0, 0);
- void 0 !== d ? this.L0(c, d) : void 0 !== c && this.J0(c)
- },
- d0: function() {
- return t(this.jg.width, this.jg.height)
- },
- jha: function(c) {
- this.jg.width = c.width;
- this.jg.height = c.height
- },
- yW: function() {
- return this.jg.width
- },
- kY: function(c) {
- this.jg.width = c
- },
- xW: function() {
- return this.jg.height
- },
- jY: function(c) {
- this.jg.height = c
- },
- TB: function() {
- return t(this.ud.width, this.ud.height)
- },
- Wha: function(c) {
- this.ud.width = c.width;
- this.ud.height = c.height
- },
- zF: function() {
- return this.ud.width
- },
- oG: function(c) {
- this.ud.width = c
- },
- yF: function() {
- return this.ud.height
- },
- nG: function(c) {
- this.ud.height = c
- },
- AUa: function() {
- return this.j1
- },
- E3a: function(c) {
- this.j1 = c
- },
- Jda: function() {
- return this.rC
- },
- nha: function(c) {
- this.rC = c
- },
- rP: function() {
- return this.Ad
- },
- rR: function(c) {
- this.Ad = c
- },
- J0: function(c) {
- if (!c || 0 == c.length) throw "cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.";
- this.height =
- this.width = 0;
- c = f.nE.create(c);
- if (!c) return !1;
- var d = c.Lw;
- d && 0 !== d.length || f.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
- this.O8(c);
- return !0
- },
- L0: function(c, d) {
- this.height = this.width = 0;
- var e = f.nE.create(c, d),
- g = e.Lw;
- g && 0 !== g.length || f.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");
- this.O8(e);
- return !0
- },
- O8: function(c) {
- this.jg = c.d0();
- this.ud = c.TB();
- this.j1 = c.orientation;
- this.rC = c.Jda();
- this.Ad = c.Ad;
- this.vr = c.vr;
- var d = 0,
- e = c.oi;
- if (e)
- for (var g =
- null, h = 0, k = e.length; h < k; h++)(g = e[h]) && g.visible && (g = this.Bta(g, c), this.n(g, d, d), this.width = Math.max(this.width, g.width), this.height = Math.max(this.height, g.height), d++)
- },
- IPa: function() {
- for (var c = [], d = this.i, e = 0, g = d.length; e < g; e++) {
- var h = d[e];
- h && h instanceof f.mE && c.push(h)
- }
- return c
- },
- pUa: function(c) {
- if (!c || 0 === c.length) throw "cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.";
- for (var d = this.i, e = 0; e < d.length; e++) {
- var g = d[e];
- if (g && g.kQ == c) return g
- }
- return null
- },
- OUa: function(c) {
- if (!c ||
- 0 === c.length) throw "cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.";
- if (this.rC)
- for (var d = 0; d < this.rC.length; d++) {
- var e = this.rC[d];
- if (e && e.NH == c) return e
- }
- return null
- },
- k0: function(c) {
- return this.Ad[c.toString()]
- },
- w0a: function(c) {
- return this.vr[c]
- },
- Bta: function(c, d) {
- var e = this.mva(c, d),
- e = f.mE.create(e, c, d);
- c.Ffa = !1;
- e.bIa();
- return e
- },
- mva: function(c, d) {
- var e = c.rb,
- g = d.Lw;
- if (g)
- for (var h = g.length - 1; 0 <= h; h--) {
- var k = g[h];
- if (k)
- for (var m = 0; m < e.height; m++)
- for (var n = 0; n < e.width; n++) {
- var p =
- c.ej[n + e.width * m];
- if (0 != p && (p & f.UT) >>> 0 >= k.ux) return k
- }
- }
- f.log("cocos2d: Warning: TMX Layer " + c.name + " has no tiles");
- return null
- }
- });
- q = f.xK.prototype;
- f.d(q, "mapWidth", q.yW, q.kY);
- f.d(q, "mapHeight", q.xW, q.jY);
- f.d(q, "tileWidth", q.zF, q.oG);
- f.d(q, "tileHeight", q.yF, q.nG);
- f.xK.create = function(c, d) {
- return new f.xK(c, d)
- };
- f.Noa = 0;
- f.OMa = 1;
- f.NMa = 2;
- f.QMa = 3;
- f.PMa = 4;
- f.RMa = 5;
- f.oE = 2147483648;
- f.pE = 1073741824;
- f.s7 = 536870912;
- f.t7 = (f.oE | f.pE | f.s7) >>> 0;
- f.UT = ~f.t7 >>> 0;
- f.rv = f.N.extend({
- Ad: null,
- name: "",
- rb: null,
- ej: null,
- visible: null,
- Ib: null,
- Ffa: !0,
- dw: 1E5,
- cw: 0,
- offset: null,
- ctor: function() {
- this.Ad = [];
- this.name = "";
- this.rb = null;
- this.ej = [];
- this.visible = !0;
- this.Ib = 0;
- this.Ffa = !0;
- this.dw = 1E5;
- this.cw = 0;
- this.offset = r(0, 0)
- },
- rP: function() {
- return this.Ad
- },
- rR: function(c) {
- this.Ad = c
- }
- });
- f.Moa = f.N.extend({
- name: "",
- ux: 0,
- ud: null,
- gJ: 0,
- margin: 0,
- hia: "",
- GP: null,
- ctor: function() {
- this.ud = t(0, 0);
- this.GP = t(0, 0)
- },
- EI: function(c) {
- var d = x(0, 0, 0, 0);
- d.width = this.ud.width;
- d.height = this.ud.height;
- c &= f.UT;
- c -= parseInt(this.ux, 10);
- var e = parseInt((this.GP.width - 2 * this.margin + this.gJ) / (this.ud.width + this.gJ), 10);
- d.x = parseInt(c % e * (this.ud.width + this.gJ) + this.margin, 10);
- d.y = parseInt(parseInt(c / e, 10) * (this.ud.height + this.gJ) + this.margin, 10);
- return d
- }
- });
- f.nE = f.pK.extend({
- Ad: null,
- orientation: null,
- parentElement: null,
- FQ: null,
- jQ: 0,
- l3: !1,
- TC: null,
- s_: null,
- ZM: null,
- jg: null,
- ud: null,
- oi: null,
- Lw: null,
- vr: null,
- wN: "",
- d9: 0,
- ctor: function(c, d) {
- f.pK.prototype.ctor.apply(this);
- this.jg = t(0, 0);
- this.ud = t(0, 0);
- this.oi = [];
- this.Lw = [];
- this.ZM = [];
- this.Ad = [];
- this.vr = {};
- this.d9 = 0;
- void 0 !== d ? this.L0(c, d) : void 0 !== c && this.J0(c)
- },
- VUa: function() {
- return this.orientation
- },
- M3a: function(c) {
- this.orientation = c
- },
- d0: function() {
- return t(this.jg.width, this.jg.height)
- },
- jha: function(c) {
- this.jg.width =
- c.width;
- this.jg.height = c.height
- },
- yW: function() {
- return this.jg.width
- },
- kY: function(c) {
- this.jg.width = c
- },
- xW: function() {
- return this.jg.height
- },
- jY: function(c) {
- this.jg.height = c
- },
- TB: function() {
- return t(this.ud.width, this.ud.height)
- },
- Wha: function(c) {
- this.ud.width = c.width;
- this.ud.height = c.height
- },
- zF: function() {
- return this.ud.width
- },
- oG: function(c) {
- this.ud.width = c
- },
- yF: function() {
- return this.ud.height
- },
- nG: function(c) {
- this.ud.height = c
- },
- uUa: function() {
- return this.oi
- },
- aHa: function(c) {
- this.oi.push(c)
- },
- oWa: function() {
- return this.Lw
- },
- QHa: function(c) {
- this.Lw.push(c)
- },
- Jda: function() {
- return this.ZM
- },
- nha: function(c) {
- this.ZM.push(c)
- },
- gVa: function() {
- return this.parentElement
- },
- R3a: function(c) {
- this.parentElement = c
- },
- hVa: function() {
- return this.FQ
- },
- S3a: function(c) {
- this.FQ = c
- },
- qUa: function() {
- return this.jQ
- },
- w3a: function(c) {
- this.jQ = c
- },
- $Va: function() {
- return this.l3
- },
- n4a: function(c) {
- this.l3 = c
- },
- rP: function() {
- return this.Ad
- },
- rR: function(c) {
- this.Ad = c
- },
- J0: function(c) {
- this.C$(c, null);
- return this.D1(c)
- },
- L0: function(c, d) {
- this.C$(null, d);
- return this.WEa(c)
- },
- D1: function(c, d) {
- var e = (d = d || !1) ? c : f.L.zd(c);
- if (!e) throw "Please load the resource first : " + c;
- var g, h, e = this.sX(e).documentElement;
- g = e.getAttribute("version");
- h = e.getAttribute("orientation");
- if ("map" == e.nodeName && ("1.0" != g && null !== g && f.log("cocos2d: TMXFormat: Unsupported TMX version:" + g), "orthogonal" == h ? this.orientation = f.AK : "isometric" == h ? this.orientation = f.zK : "hexagonal" == h ? this.orientation = f.yK : null !== h && f.log("cocos2d: TMXFomat: Unsupported orientation:" + h), g = t(0, 0), g.width = parseFloat(e.getAttribute("width")),
- g.height = parseFloat(e.getAttribute("height")), this.jha(g), g = t(0, 0), g.width = parseFloat(e.getAttribute("tilewidth")), g.height = parseFloat(e.getAttribute("tileheight")), this.Wha(g), h = e.querySelectorAll("map \x3e properties \x3e property"))) {
- var k = {};
- for (g = 0; g < h.length; g++) k[h[g].getAttribute("name")] = h[g].getAttribute("value");
- this.Ad = k
- }
- k = e.getElementsByTagName("tileset");
- "map" !== e.nodeName && (k = [], k.push(e));
- for (g = 0; g < k.length; g++) {
- h = k[g];
- var m = h.getAttribute("source");
- if (m) h = d ? f.path.join(this.wN, m) :
- f.path.pB(c, m), this.D1(h);
- else {
- m = new f.Moa;
- m.name = h.getAttribute("name") || "";
- m.ux = parseInt(h.getAttribute("firstgid")) || 0;
- m.gJ = parseInt(h.getAttribute("spacing")) || 0;
- m.margin = parseInt(h.getAttribute("margin")) || 0;
- var n = t(0, 0);
- n.width = parseFloat(h.getAttribute("tilewidth"));
- n.height = parseFloat(h.getAttribute("tileheight"));
- m.ud = n;
- var n = h.getElementsByTagName("image")[0].getAttribute("source"),
- p = -1;
- this.TC && (p = this.TC.lastIndexOf("/"));
- m.hia = -1 !== p ? this.TC.substr(0, p + 1) + n : this.wN + (this.wN ? "/" : "") + n;
- this.QHa(m);
- if (n = h.getElementsByTagName("tile"))
- for (p = 0; p < n.length; p++) {
- h = n[p];
- this.FQ = parseInt(m.ux) + parseInt(h.getAttribute("id") || 0);
- var s = h.querySelectorAll("properties \x3e property");
- if (s) {
- var u = {};
- for (h = 0; h < s.length; h++) {
- var v = s[h].getAttribute("name");
- u[v] = s[h].getAttribute("value")
- }
- this.vr[this.FQ] = u
- }
- }
- }
- }
- if (k = e.getElementsByTagName("layer"))
- for (g = 0; g < k.length; g++) {
- n = k[g];
- p = n.getElementsByTagName("data")[0];
- m = new f.rv;
- m.name = n.getAttribute("name");
- h = t(0, 0);
- h.width = parseFloat(n.getAttribute("width"));
- h.height = parseFloat(n.getAttribute("height"));
- m.rb = h;
- h = n.getAttribute("visible");
- m.visible = "0" != h;
- h = n.getAttribute("opacity") || 1;
- m.Ib = h ? parseInt(255 * parseFloat(h)) : 255;
- m.offset = r(parseFloat(n.getAttribute("x")) || 0, parseFloat(n.getAttribute("y")) || 0);
- s = "";
- for (h = 0; h < p.childNodes.length; h++) s += p.childNodes[h].nodeValue;
- s = s.trim();
- h = p.getAttribute("compression");
- u = p.getAttribute("encoding");
- if (h && "gzip" !== h && "zlib" !== h) return f.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), null;
- switch (h) {
- case "gzip":
- m.ej = f.Cia(s, 4);
- break;
- case "zlib":
- h = new Zlib.Iy(f.bb.Zu.Fca(s, 1));
- m.ej = f.OIa(h.Hca());
- break;
- case null:
- case "":
- if ("base64" == u) m.ej = f.bb.Zu.Fca(s, 4);
- else if ("csv" === u)
- for (m.ej = [], h = s.split(","), p = 0; p < h.length; p++) m.ej.push(parseInt(h[p]));
- else
- for (h = p.getElementsByTagName("tile"), m.ej = [], p = 0; p < h.length; p++) m.ej.push(parseInt(h[p].getAttribute("gid")));
- break;
- default:
- this.jQ == f.rv.K3 && f.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")
- }
- if (n = n.querySelectorAll("properties \x3e property")) {
- p = {};
- for (h = 0; h < n.length; h++) p[n[h].getAttribute("name")] = n[h].getAttribute("value");
- m.Ad = p
- }
- this.aHa(m)
- }
- if (k = e.getElementsByTagName("objectgroup"))
- for (g = 0; g < k.length; g++) {
- n = k[g];
- m = new f.Loa;
- m.NH = n.getAttribute("name");
- m.uHa(r(parseFloat(n.getAttribute("x")) * this.TB().width || 0, parseFloat(n.getAttribute("y")) * this.TB().height || 0));
- if (p = n.querySelectorAll("objectgroup \x3e properties \x3e property"))
- for (h = 0; h < p.length; h++) s = {}, s[p[h].getAttribute("name")] = p[h].getAttribute("value"), m.Ad = s;
- if (n = n.querySelectorAll("object"))
- for (h =
- 0; h < n.length; h++) {
- s = n[h];
- p = {};
- p.name = s.getAttribute("name") || "";
- p.type = s.getAttribute("type") || "";
- p.x = parseInt(s.getAttribute("x") || 0) + m.BA.x;
- u = parseInt(s.getAttribute("y") || 0) + m.BA.y;
- p.width = parseInt(s.getAttribute("width")) || 0;
- p.height = parseInt(s.getAttribute("height")) || 0;
- p.y = parseInt(this.d0().height * this.TB().height) - u - p.height;
- if (u = s.querySelectorAll("properties \x3e property"))
- for (v = 0; v < u.length; v++) p[u[v].getAttribute("name")] = u[v].getAttribute("value");
- (u = s.querySelectorAll("polygon")) &&
- 0 < u.length && (u = u[0].getAttribute("points")) && (p.polygonPoints = this.laa(u));
- (s = s.querySelectorAll("polyline")) && 0 < s.length && (s = s[0].getAttribute("points")) && (p.polylinePoints = this.laa(s));
- m.nHa(p)
- }
- this.nha(m)
- }
- return e
- },
- laa: function(c) {
- if (!c) return null;
- var d = [];
- c = c.split(" ");
- for (var e = 0; e < c.length; e++) {
- var g = c[e].split(",");
- d.push({
- x: g[0],
- y: g[1]
- })
- }
- return d
- },
- WEa: function(c) {
- return this.D1(c, !0)
- },
- lWa: function() {
- return this.vr
- },
- w4a: function(c) {
- this.vr.push(c)
- },
- iTa: function() {
- return this.s_
- },
- S2a: function(c) {
- this.s_ =
- c
- },
- dWa: function() {
- return this.TC
- },
- q4a: function(c) {
- this.TC = c
- },
- C$: function(c, d) {
- this.Lw.length = 0;
- this.oi.length = 0;
- this.TC = c;
- d && (this.wN = d);
- this.ZM.length = 0;
- this.Ad.length = 0;
- this.vr.length = 0;
- this.s_ = "";
- this.l3 = !1;
- this.jQ = f.rv.K3;
- this.parentElement = f.Noa;
- this.d9 = 0
- }
- });
- q = f.nE.prototype;
- f.d(q, "mapWidth", q.yW, q.kY);
- f.d(q, "mapHeight", q.xW, q.jY);
- f.d(q, "tileWidth", q.zF, q.oG);
- f.d(q, "tileHeight", q.yF, q.nG);
- f.nE.create = function(c, d) {
- return new f.nE(c, d)
- };
- f.L.Xp(["tmx", "tsx"], f.wba);
- f.rv.K3 = 1;
- f.rv.EJa = 2;
- f.rv.FJa = 4;
- f.rv.GJa = 8;
- f.Loa = f.N.extend({
- Ad: null,
- NH: "",
- BA: null,
- sA: null,
- ctor: function() {
- this.NH = "";
- this.BA = r(0, 0);
- this.Ad = [];
- this.sA = []
- },
- pVa: function() {
- return this.BA
- },
- uHa: function(c) {
- this.BA.x = c.x;
- this.BA.y = c.y
- },
- rP: function() {
- return this.Ad
- },
- rR: function(c) {
- this.Ad.push(c)
- },
- cUa: function() {
- return this.NH.toString()
- },
- q3a: function(c) {
- this.NH = c
- },
- x0a: function(c) {
- return this.Ad[c]
- },
- J_a: function(c) {
- if (this.sA && 0 < this.sA.length)
- for (var d = this.sA, e = 0, g = d.length; e < g; e++) {
- var h = d[e].name;
- if (h && h == c) return d[e]
- }
- return null
- },
- QUa: function() {
- return this.sA
- },
- nHa: function(c) {
- this.sA.push(c)
- }
- });
- f.mE = f.Fh.extend({
- Bh: null,
- zl: null,
- eC: null,
- Ad: null,
- kQ: "",
- rb: null,
- Ve: null,
- Ib: 255,
- dw: null,
- cw: null,
- hZ: null,
- bZ: null,
- vNa: null,
- Bn: null,
- Hh: null,
- Vl: null,
- gi: null,
- Pi: null,
- kV: null,
- PN: null,
- QN: null,
- St: 0,
- LY: 0,
- Z$: 1E7,
- ta: "TMXLayer",
- ctor: function(c, d, e) {
- f.Fh.prototype.ctor.call(this);
- this.fh = [];
- this.rb = t(0, 0);
- this.Ve = t(0, 0);
- if (f.K === f.fb) {
- var g = f.Sb,
- h = f.fd("canvas");
- h.width = g.width;
- h.height = g.height;
- this.gi = h;
- this.Pi = this.gi.getContext("2d");
- var k = new f.Pa;
- k.sh(h);
- k.$d();
- this.kV = k;
- this.width = g.width;
- this.height = g.height;
- this.Gq = this
- }
- void 0 !== e && this.DCa(c, d, e)
- },
- Ga: function(c, d) {
- var e = this.m;
- f.v.prototype.Ga.call(this, c, d);
- if (f.K === f.fb) {
- var g = this.gi,
- h = f.Uc();
- g.width = 0 | 1.5 * e.width * h;
- g.height = 0 | 1.5 * e.height * h;
- this.Pi.translate(0, g.height);
- e = this.kV.m;
- e.width = g.width;
- e.height = g.height;
- e = g.width * g.height;
- if (e > this.Z$) {
- this.PN || (this.PN = []);
- this.QN || (this.QN = []);
- this.St = Math.ceil(e / this.Z$);
- e = this.PN;
- for (h = 0; h < this.St; h++) {
- e[h] || (e[h] = document.createElement("canvas"), this.QN[h] = e[h].getContext("2d"));
- var k = e[h];
- k.width =
- this.LY = Math.round(g.width / this.St);
- k.height = g.height
- }
- for (h = this.St; h < e.length; h++) k.width = 0, k.height = 0
- } else this.St = 0
- }
- },
- sb: null,
- xF: function() {
- return this.kV
- },
- I: null,
- Br: function(c) {
- var d = c || f.s;
- if (this.Na) {
- d.save();
- this.transform(c);
- var e, g = this.i;
- if (this.Dk) {
- var h = f.view;
- h.Waa();
- var k = this.Pi,
- m = this.gi;
- k.clearRect(0, 0, m.width, -m.height);
- k.save();
- k.translate(this.Qb.x, -this.Qb.y);
- if (g)
- for (this.kd(), e = 0; e < g.length; e++) g[e] && g[e].I(k);
- k.restore();
- if (0 < this.St)
- for (g = this.LY, k = m.height, e = 0; e < this.St; e++) this.QN[e].drawImage(m,
- e * g, 0, g, k, 0, 0, g, k);
- h.Iaa();
- this.Dk = !1
- }
- this.ma(c);
- d.restore()
- }
- },
- ma: null,
- Rq: function(c) {
- c = c || f.s;
- var d = 0 | -this.Qb.x,
- e = 0 | -this.Qb.y,
- g = f.view,
- h = this.gi;
- if (h) {
- var k = this.St,
- m = h.height * g.ra;
- if (0 < k)
- for (var h = this.PN, n = 0; n < k; n++) {
- var p = h[n];
- c.drawImage(h[n], 0, 0, p.width, p.height, d + n * this.LY, -(e + m), p.width * g.ka, m)
- } else c.drawImage(h, 0, 0, h.width, h.height, d, -(e + m), h.width * g.ka, m)
- }
- },
- tUa: function() {
- return t(this.rb.width, this.rb.height)
- },
- z3a: function(c) {
- this.rb.width = c.width;
- this.rb.height = c.height
- },
- Qra: function() {
- return this.rb.width
- },
- wua: function(c) {
- this.rb.width = c
- },
- Pra: function() {
- return this.rb.height
- },
- vua: function(c) {
- this.rb.height = c
- },
- BUa: function() {
- return t(this.Ve.width, this.Ve.height)
- },
- F3a: function(c) {
- this.Ve.width = c.width;
- this.Ve.height = c.height
- },
- zF: function() {
- return this.Ve.width
- },
- oG: function(c) {
- this.Ve.width = c
- },
- yF: function() {
- return this.Ve.height
- },
- nG: function(c) {
- this.Ve.height = c
- },
- mWa: function() {
- return this.Bh
- },
- x4a: function(c) {
- this.Bh = c
- },
- nWa: function() {
- return this.zl
- },
- y4a: function(c) {
- this.zl = c
- },
- sUa: function() {
- return this.eC
- },
- y3a: function(c) {
- this.eC = c
- },
- rP: function() {
- return this.Ad
- },
- rR: function(c) {
- this.Ad = c
- },
- DCa: function(c, d, e) {
- var g = d.rb,
- h = 0.35 * parseInt(g.width * g.height) + 1,
- k;
- c && (k = f.nb.vd(c.hia));
- return this.va(k, h) ? (this.kQ = d.name, this.rb = g, this.Bh = d.ej, this.dw = d.dw, this.cw = d.cw, this.Ib = d.Ib, this.Ad = d.Ad, this.Vl = f.Q.Vl, this.zl = c, this.Ve = e.TB(), this.eC = e.orientation, c = this.zqa(d.offset), this.o(f.J1(c)), this.Hh = [], this.Ga(f.eia(t(this.rb.width * this.Ve.width, this.rb.height * this.Ve.height))), this.bZ = !1, this.hZ = 0, !0) : !1
- },
- S0a: function() {
- this.Bh && (this.Bh = null);
- this.Hh && (this.Hh = null)
- },
- kWa: function(c, d) {
- if (!c) throw "cc.TMXLayer.getTileAt(): pos should be non-null";
- void 0 !== d && (c = r(c, d));
- if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileAt(): invalid position";
- if (!this.Bh || !this.Hh) return f.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), null;
- var e = null,
- g = this.r0(c);
- if (0 === g) return e;
- var h = 0 | c.x + c.y * this.rb.width,
- e = this.Za(h);
- e || (g = this.zl.EI(g), g = f.cs(g), e = new f.q,
- e.va(this.texture, g), e.batchNode = this, e.o(this.pP(c)), e.vertexZ = this.Jba(c), e.anchorX = 0, e.anchorY = 0, e.opacity = this.Ib, g = this.SU(h), this.Xva(e, g, h));
- return e
- },
- r0: function(c, d) {
- if (!c) throw "cc.TMXLayer.getTileGIDAt(): pos should be non-null";
- void 0 !== d && (c = r(c, d));
- if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileGIDAt(): invalid position";
- return this.Bh && this.Hh ? (this.Bh[0 | c.x + c.y * this.rb.width] & f.UT) >>> 0 : (f.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"),
- null)
- },
- yBa: function(c, d) {
- if (!c) throw "cc.TMXLayer.getTileFlagsAt(): pos should be non-null";
- void 0 !== d && (c = r(c, d));
- if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileFlagsAt(): invalid position";
- return this.Bh && this.Hh ? (this.Bh[0 | c.x + c.y * this.rb.width] & f.t7) >>> 0 : (f.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), null)
- },
- v4a: function(c, d, e, g) {
- if (!d) throw "cc.TMXLayer.setTileGID(): pos should be non-null";
- void 0 !== g ? d = r(d, e) : g = e;
- if (d.x >= this.rb.width ||
- d.y >= this.rb.height || 0 > d.x || 0 > d.y) throw "cc.TMXLayer.setTileGID(): invalid position";
- if (this.Bh && this.Hh)
- if (0 !== c && c < this.zl.ux) f.log("cc.TMXLayer.setTileGID(): invalid gid:" + c);
- else {
- g = g || 0;
- this.En();
- e = this.yBa(d);
- var h = this.r0(d);
- if (h != c || e != g)
- if (e = (c | g) >>> 0, 0 === c) this.XFa(d);
- else if (0 === h) this.Ksa(e, d);
- else {
- var h = d.x + d.y * this.rb.width,
- k = this.Za(h);
- k ? (c = this.zl.EI(c), c = f.cs(c), k.sc(c, !1), null != g && this.HN(k, d, e), this.Bh[h] = e) : this.Cva(e, d)
- }
- } else f.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released")
- },
- XFa: function(c, d) {
- if (!c) throw "cc.TMXLayer.removeTileAt(): pos should be non-null";
- void 0 !== d && (c = r(c, d));
- if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.removeTileAt(): invalid position";
- if (!this.Bh || !this.Hh) f.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");
- else if (0 !== this.r0(c)) {
- f.K === f.fb && this.En();
- var e = 0 | c.x + c.y * this.rb.width,
- g = this.SU(e);
- this.Bh[e] = 0;
- this.Hh.splice(g, 1);
- if (e = this.Za(e)) f.Fh.prototype.removeChild.call(this, e, !0);
- else if (f.K ===
- f.na && this.textureAtlas.oga(g), this.i)
- for (var e = this.i, h = 0, k = e.length; h < k; h++) {
- var m = e[h];
- if (m) {
- var n = m.atlasIndex;
- n >= g && (m.atlasIndex = n - 1)
- }
- }
- }
- },
- pP: function(c, d) {
- void 0 !== d && (c = r(c, d));
- var e = r(0, 0);
- switch (this.eC) {
- case f.AK:
- e = this.Hta(c);
- break;
- case f.zK:
- e = this.Gta(c);
- break;
- case f.yK:
- e = this.Fta(c)
- }
- return f.J1(e)
- },
- k0: function(c) {
- return this.Ad[c]
- },
- bIa: function() {
- f.K === f.fb ? this.zl.GP = this.qi.m : (this.zl.GP = this.textureAtlas.texture.m, this.textureAtlas.texture.j2());
- this.Ata();
- f.K === f.fb && this.En();
- for (var c =
- this.rb.height, d = this.rb.width, e = 0; e < c; e++)
- for (var g = 0; g < d; g++) {
- var h = this.Bh[g + d * e];
- 0 !== h && (this.jqa(h, r(g, e)), this.dw = Math.min(h, this.dw), this.cw = Math.max(h, this.cw))
- }
- this.cw >= this.zl.ux && this.dw >= this.zl.ux || f.log("cocos2d:TMX: Only 1 tileset per layer is supported")
- },
- n: function() {
- f.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")
- },
- removeChild: function(c, d) {
- if (c)
- if (-1 === this.i.indexOf(c)) f.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");
- else {
- f.K ===
- f.fb && this.En();
- var e = c.atlasIndex;
- this.Bh[this.Hh[e]] = 0;
- this.Hh.splice(e, 1);
- f.Fh.prototype.removeChild.call(this, c, d)
- }
- },
- rUa: function() {
- return this.kQ
- },
- x3a: function(c) {
- this.kQ = c
- },
- Gta: function(c) {
- return r(this.Ve.width / 2 * (this.rb.width + c.x - c.y - 1), this.Ve.height / 2 * (2 * this.rb.height - c.x - c.y - 2))
- },
- Hta: function(c) {
- return r(c.x * this.Ve.width, (this.rb.height - c.y - 1) * this.Ve.height)
- },
- Fta: function(c) {
- return r(c.x * this.Ve.width * 3 / 4, (this.rb.height - c.y - 1) * this.Ve.height + (1 == c.x % 2 ? -this.Ve.height / 2 : 0))
- },
- zqa: function(c) {
- var d =
- r(0, 0);
- switch (this.eC) {
- case f.AK:
- d = r(c.x * this.Ve.width, -c.y * this.Ve.height);
- break;
- case f.zK:
- d = r(this.Ve.width / 2 * (c.x - c.y), this.Ve.height / 2 * (-c.x - c.y));
- break;
- case f.yK:
- 0 === c.x && 0 === c.y || f.log("offset for hexagonal map not implemented yet")
- }
- return d
- },
- jqa: function(c, d) {
- var e = this.zl.EI(c),
- e = f.cs(e),
- g = 0 | d.x + d.y * this.rb.width,
- e = this.XX(e);
- this.HN(e, d, c);
- var h = this.Hh.length;
- this.QP(e, h);
- this.Hh.splice(h, 0, g);
- return e
- },
- Ksa: function(c, d) {
- var e = this.zl.EI(c),
- e = f.cs(e),
- g = 0 | d.x + d.y * this.rb.width,
- e = this.XX(e);
- this.HN(e, d, c);
- var h = this.mqa(g);
- this.QP(e, h);
- this.Hh.splice(h, 0, g);
- if (this.i)
- for (var k = this.i, m = 0, n = k.length; m < n; m++) {
- var p = k[m];
- if (p) {
- var s = p.atlasIndex;
- s >= h && (p.atlasIndex = s + 1)
- }
- }
- this.Bh[g] = c;
- return e
- },
- Cva: function(c, d) {
- var e = this.zl.EI(c),
- g = this.Vl,
- e = x(e.x / g, e.y / g, e.width / g, e.height / g),
- g = d.x + d.y * this.rb.width,
- e = this.XX(e);
- this.HN(e, d, c);
- e.atlasIndex = this.SU(g);
- e.dirty = !0;
- e.bi();
- this.Bh[g] = c;
- return e
- },
- Ata: function() {
- var c = this.k0("cc_vertexz");
- if (c)
- if ("automatic" == c) {
- this.bZ = !0;
- var d = this.k0("cc_alpha_func"),
- c = 0;
- d && (c = parseFloat(d));
- f.K === f.na && (this.shaderProgram = f.xg.be(f.tK), d = f.s.getUniformLocation(this.shaderProgram.Bx(), f.g8), this.shaderProgram.Ff(), this.shaderProgram.bJ(d, c))
- } else this.hZ = parseInt(c, 10)
- },
- HN: function(c, d, e) {
- var g = d.x + d.y * this.rb.width;
- c.o(this.pP(d));
- f.K === f.na ? c.vertexZ = this.Jba(d) : c.tag = g;
- c.anchorX = 0;
- c.anchorY = 0;
- c.opacity = this.Ib;
- f.K === f.na && (c.rotation = 0);
- c.Pd(!1);
- c.Yf(!1);
- (e & f.s7) >>> 0 ? (c.anchorX = 0.5, c.anchorY = 0.5, c.x = this.pP(d).x + c.width / 2, c.y = this.pP(d).y + c.height / 2, d = (e & (f.oE |
- f.pE) >>> 0) >>> 0, d == f.oE ? c.rotation = 90 : d == f.pE ? c.rotation = 270 : (c.rotation = d == (f.pE | f.oE) >>> 0 ? 90 : 270, c.Pd(!0))) : ((e & f.oE) >>> 0 && c.Pd(!0), (e & f.pE) >>> 0 && c.Yf(!0))
- },
- XX: function(c) {
- f.K === f.na ? (this.Bn ? (this.Bn.batchNode = null, this.Bn.sc(c, !1)) : (this.Bn = new f.q, this.Bn.va(this.texture, c, !1)), this.Bn.batchNode = this) : (this.Bn = new f.q, this.Bn.va(this.Vt, c, !1), this.Bn.batchNode = this, this.Bn.parent = this);
- return this.Bn
- },
- Jba: function(c) {
- var d = 0,
- e = 0;
- if (this.bZ) switch (this.eC) {
- case f.zK:
- e = this.rb.width + this.rb.height;
- d = -(e - (c.x + c.y));
- break;
- case f.AK:
- d = -(this.rb.height - c.y);
- break;
- case f.yK:
- f.log("TMX Hexa zOrder not supported");
- break;
- default:
- f.log("TMX invalid value")
- } else d = this.hZ;
- return d
- },
- SU: function(c) {
- var d;
- if (this.Hh)
- for (var e = this.Hh, g = 0, h = e.length; g < h && (d = e[g], d != c); g++);
- "number" != typeof d && f.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");
- return g
- },
- mqa: function(c) {
- for (var d = this.Hh, e = 0, g = d.length; e < g && !(c < d[e]); e++);
- return e
- }
- });
- q = f.mE.prototype;
- f.K == f.na ? (q.ma = f.Fh.prototype.ma, q.I = f.Fh.prototype.I, q.sb = f.Fh.prototype.sb) : (q.ma = q.Rq, q.I = q.Br, q.sb = q.xF);
- f.d(q, "texture", q.sb, q.ab);
- f.d(q, "layerWidth", q.Qra, q.wua);
- f.d(q, "layerHeight", q.Pra, q.vua);
- f.d(q, "tileWidth", q.zF, q.oG);
- f.d(q, "tileHeight", q.yF, q.nG);
- f.mE.create = function(c, d, e) {
- return new f.mE(c, d, e)
- };
- f.sT = f.N.extend({
- fG: null,
- hb: null,
- TE: null,
- zVa: function() {
- return this.fG
- },
- b4a: function(c) {
- this.fG = c
- },
- Kda: function() {
- return this.hb
- },
- nR: function(c) {
- this.hb = c
- },
- SSa: function() {
- return this.TE
- },
- GGa: function(c) {
- this.TE = c
- },
- rCa: function(c, d) {
- this.fG = c;
- this.hb = d;
- this.TE = null;
- return !0
- }
- });
- f.sT.create = function(c, d) {
- var e = new f.sT;
- e.rCa(c, d);
- return e
- };
- f.M6 = f.ja.extend({
- Ox: null,
- TW: null,
- ta: "ParallaxNode",
- fVa: function() {
- return this.Ox
- },
- Q3a: function(c) {
- this.Ox = c
- },
- ctor: function() {
- f.ja.prototype.ctor.call(this);
- this.Ox = [];
- this.TW = r(-100, -100)
- },
- n: function(c, d, e, g) {
- if (3 === arguments.length) f.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");
- else {
- if (!c) throw "cc.ParallaxNode.addChild(): child should be non-null";
- var h = f.sT.create(e, g);
- h.GGa(c);
- this.Ox.push(h);
- c.o(this.oa.x * e.x + g.x, this.oa.y * e.y + g.y);
- f.ja.prototype.n.call(this, c, d, c.tag)
- }
- },
- removeChild: function(c, d) {
- for (var e = this.Ox, g = 0; g < e.length; g++)
- if (e[g].TE == c) {
- e.splice(g, 1);
- break
- }
- f.ja.prototype.removeChild.call(this, c, d)
- },
- Cf: function(c) {
- this.Ox.length = 0;
- f.ja.prototype.Cf.call(this, c)
- },
- I: function() {
- var c = this.$pa();
- if (!f.I1(c, this.TW)) {
- for (var d = this.Ox, e = 0, g = d.length; e < g; e++) {
- var h = d[e];
- h.TE.o(-c.x + c.x * h.fG.x + h.hb.x, -c.y + c.y * h.fG.y + h.hb.y)
- }
- this.TW = c
- }
- f.ja.prototype.I.call(this)
- },
- $pa: function() {
- for (var c = this.oa, d = this; null != d.parent;) d = d.parent, c = f.Tp(c, d.Od());
- return c
- }
- });
- f.M6.create = function() {
- return new f.M6
- };
- if (f.Ed.RN) {
- var Da = f.V5a = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
- f.xU = f.N.extend({
- Mz: null,
- cc: null,
- Fw: null,
- nZ: null,
- src: null,
- K1: null,
- autoplay: null,
- controls: null,
- p_a: null,
- currentTime: 0,
- startTime: 0,
- duration: 0,
- Tj: null,
- mZ: 1,
- hN: 0,
- Ce: !1,
- zG: !0,
- cm: -1,
- ctor: function(c) {
- this.Mz = {};
- this.src = c;
- this.nZ = Da.createGain ? Da.createGain() : Da.createGainNode();
- this.ota = this.nta.bind(this);
- this.lta = this.kta.bind(this)
- },
- vX: function(c) {
- var d = this.Fw = Da.createBufferSource(),
- e = this.nZ;
- c = c ||
- 0;
- d.buffer = this.cc;
- e.gain.value = this.mZ;
- d.connect(e);
- e.connect(Da.destination);
- d.loop = this.Tj;
- this.zG = this.Ce = !1;
- d.start ? d.start(0, c) : d.noteGrainOn ? (e = d.buffer.duration, this.loop ? d.noteGrainOn(0, c, e) : d.noteGrainOn(0, c, e - c)) : d.noteOn(0);
- this.hN = 0
- },
- oba: function() {
- var c = this.Fw;
- this.zG || (c.stop ? c.stop(0) : c.u_a(0), this.zG = !0)
- },
- play: function() {
- if (-1 == this.cm) this.cm = 0;
- else if (1 == this.cm) {
- var c = this.Fw;
- if (this.zG || !c || 2 != c.playbackState) this.startTime = Da.currentTime, this.vX(0)
- }
- },
- pause: function() {
- this.hN =
- Da.currentTime;
- this.Ce = !0;
- this.oba()
- },
- lk: function() {
- this.Ce && this.vX(this.cc ? (this.hN - this.startTime) % this.cc.duration : 0)
- },
- stop: function() {
- this.hN = 0;
- this.Ce = !1;
- this.oba()
- },
- load: function() {
- var c = this;
- if (1 != c.cm) {
- c.cm = -1;
- c.played = !1;
- c.ended = !0;
- var d = new XMLHttpRequest;
- d.open("GET", c.src, !0);
- d.responseType = "arraybuffer";
- d.onload = function() {
- Da.decodeAudioData(d.response, c.ota, c.lta)
- };
- d.send()
- }
- },
- addEventListener: function(c, d) {
- this.Mz[c] = d.bind(this)
- },
- removeEventListener: function(c) {
- delete this.Mz[c]
- },
- $Pa: function() {
- return f.Ed.RN
- },
- nta: function(c) {
- this.cc = c;
- c = this.Mz.success;
- var d = this.Mz.canplaythrough;
- c && c();
- d && d();
- 0 != this.cm && "autoplay" != this.autoplay && !0 != this.autoplay || this.vX();
- this.cm = 1
- },
- kta: function() {
- var c = this.Mz.error;
- c && c();
- this.cm = -2
- },
- cloneNode: function() {
- var c = new f.xU(this.src);
- c.volume = this.volume;
- c.cm = this.cm;
- c.cc = this.cc;
- 0 != c.cm && -1 != c.cm || c.load();
- return c
- }
- });
- q = f.xU.prototype;
- f.d(q, "loop", function() {
- return this.Tj
- }, function(c) {
- this.Tj = c;
- this.Fw && (this.Fw.loop = c)
- });
- f.d(q, "volume",
- function() {
- return this.mZ
- }, function(c) {
- this.mZ = c;
- this.nZ.gain.value = c
- });
- f.d(q, "paused", function() {
- return this.Ce
- });
- f.d(q, "ended", function() {
- var c = this.Fw;
- return !this.Ce && (this.zG || !c || 3 == c.playbackState)
- });
- f.d(q, "played", function() {
- var c = this.Fw;
- return c && 2 == c.playbackState
- })
- }
- f.Q3 = f.N.extend({
- zY: !1,
- Lh: null,
- xL: null,
- Uj: 0,
- F8: 0,
- li: {},
- GE: {},
- TL: 1,
- aX: 5,
- bt: null,
- aG: [],
- ctor: function() {
- this.zY = 0 < f.UU.SN.length;
- this.bt && (this.bt = this.bt.bind(this))
- },
- Y5a: function() {
- return !1
- },
- xda: function() {
- return this.TL
- },
- Qfa: function(c, d) {
- if (this.zY) {
- var e = this.Lh;
- e && this.Rt(e);
- c != this.xL && (this.Lh = e = this.nW(c), this.xL = c);
- e && (e.loop = d || !1, this.wX(e))
- }
- },
- nW: function(c) {
- var d = f.L,
- e = d.zd(c);
- e || (d.load(c), e = d.zd(c));
- return e
- },
- wX: function(c) {
- c.ended || (c.stop ? c.stop() : (c.pause(), c.currentTime = 0));
- this.Uj =
- 2;
- c.play()
- },
- pia: function(c) {
- if (0 < this.Uj) {
- var d = this.Lh;
- d && this.Rt(d) && (c && f.L.wh(this.xL), this.xL = this.Lh = null, this.Uj = 0)
- }
- },
- Rt: function(c) {
- return c && !c.ended ? (c.stop ? c.stop() : c.duration && Infinity != c.duration ? c.currentTime = c.duration : c.pause(), !0) : !1
- },
- G1: function() {
- 2 == this.Uj && (this.Lh.pause(), this.Uj = 1)
- },
- vga: function() {
- 1 == this.Uj && (this.lr(this.Lh), this.Uj = 2)
- },
- lr: function(c) {
- c && !c.ended && (c.lk ? c.lk() : c.play())
- },
- dGa: function() {
- this.Lh && this.wX(this.Lh)
- },
- GAa: function() {
- return 0 == this.Uj ? 0 : this.Lh.volume
- },
- kHa: function(c) {
- 0 < this.Uj && (this.Lh.volume = Math.min(Math.max(c, 0), 1))
- },
- VP: function() {
- return 2 == this.Uj && this.Lh && !this.Lh.ended
- },
- qW: function(c) {
- var d = this.GE[c];
- d || (d = this.GE[c] = []);
- return d
- },
- p$: function(c) {
- var d;
- if (!this.zY) return null;
- for (var e = this.qW(c), g = 0, h = e.length; g < h; g++) {
- var k = e[g];
- if (k.ended) {
- d = k;
- d.currentTime = 0;
- window.chrome && d.load();
- break
- }
- }
- if (!d) {
- if (e.length >= this.aX) return f.log("Error: " + c + " greater than " + this.aX), null;
- d = this.nW(c);
- if (!d) return null;
- d = d.cloneNode(!0);
- this.bt && f.ub(d,
- "pause", this.bt);
- d.volume = this.TL;
- e.push(d)
- }
- return d
- },
- zI: function(c, d) {
- var e = this.p$(c);
- if (!e) return null;
- e.loop = d || !1;
- e.play();
- var g = this.F8++;
- this.li[g] = e;
- return g
- },
- Uga: function(c) {
- c = this.TL = Math.min(Math.max(c, 0), 1);
- var d = this.li,
- e;
- for (e in d) d[e].volume = c
- },
- F1: function(c) {
- (c = this.li[c]) && !c.ended && c.pause()
- },
- E1: function() {
- var c = this.li,
- d;
- for (d in c) {
- var e = c[d];
- e.ended || e.pause()
- }
- },
- c2: function(c) {
- this.lr(this.li[c])
- },
- b2: function() {
- var c = this.li,
- d;
- for (d in c) this.lr(c[d])
- },
- k3: function(c) {
- this.Rt(this.li[c]);
- delete this.li[c]
- },
- iJ: function() {
- var c = this.li,
- d;
- for (d in c) this.Rt(c[d]), delete c[d]
- },
- z3: function(c) {
- var d = f.L,
- e = this.li,
- g = this.qW(c);
- d.wh(c);
- if (0 != g.length) {
- d = g[0].src;
- delete this.GE[c];
- for (var h in e) e[h].src == d && (this.Rt(e[h]), delete e[h])
- }
- },
- end: function() {
- this.pia();
- this.iJ()
- },
- naa: function() {
- var c = this.li,
- d, e;
- for (e in c)!(d = c[e]) || d.ended || d.paused || (this.aG.push(d), d.pause());
- this.VP() && (this.aG.push(this.Lh), this.Lh.pause())
- },
- Kaa: function() {
- for (var c = this.aG, d = 0, e = c.length; d < e; d++) this.lr(c[d]);
- c.length = 0
- }
- });
- !f.Ed.RN && 0 > f.Ed.iva && (f.R3 = f.Q3.extend({
- cu: [],
- ZF: [],
- Gk: null,
- aX: 2,
- SL: {},
- hw: !1,
- Nz: 0,
- OW: !1,
- wX: function(c) {
- this.HY();
- this._super(c)
- },
- vga: function() {
- 1 == this.Uj && (this.HY(), this.hw = !1, this.Nz = 0, this._super())
- },
- zI: function(c, d) {
- var e = this.Gk,
- g = d ? this.p$(c) : this.fsa(c);
- if (!g) return null;
- g.loop = d || !1;
- var h = this.F8++;
- this.li[h] = g;
- this.VP() && (this.G1(), this.hw = !0);
- e ? (e != g && this.cu.push(this.Cz), this.cu.push(h), e.pause()) : (this.Gk = g, this.Cz = h, g.play());
- return h
- },
- F1: function() {
- f.log("pauseEffect not supported in single audio mode!")
- },
- E1: function() {
- var c =
- this.cu,
- d = this.ZF,
- e = this.Gk;
- if (e) {
- for (var g = 0, h = c.length; g < h; g++) d.push(c[g]);
- c.length = 0;
- d.push(this.Cz);
- e.pause()
- }
- },
- c2: function() {
- f.log("resumeEffect not supported in single audio mode!")
- },
- b2: function() {
- var c = this.cu,
- d = this.ZF;
- this.VP() && (this.G1(), this.hw = !0);
- for (var e = 0, g = d.length; e < g; e++) c.push(d[e]);
- d.length = 0;
- !this.Gk && 0 <= c.length && (c = c.pop(), d = this.li[c]) && (this.Cz = c, this.Gk = d, this.lr(d))
- },
- k3: function(c) {
- var d = this.Gk,
- e = this.cu,
- g = this.ZF;
- d && this.Cz == c ? this.Rt(d) : (d = e.indexOf(c), 0 <= d ? e.splice(d,
- 1) : (d = g.indexOf(c), 0 <= d && g.splice(d, 1)))
- },
- iJ: function() {
- this.HY();
- !this.Gk && this.hw && (this.lr(this.Lh), this.Uj = 2, this.hw = !1, this.Nz = 0)
- },
- z3: function(c) {
- var d = f.L,
- e = this.li,
- g = this.SL,
- h = this.qW(c),
- k = this.Gk;
- d.wh(c);
- if (0 != h.length || g[c]) {
- d = 0 < h.length ? h[0].src : g[c].src;
- delete this.GE[c];
- delete g[c];
- for (var m in e) e[m].src == d && delete e[m];
- k && k.src == d && this.Rt(k)
- }
- },
- fsa: function(c) {
- var d = this.SL[c],
- e = this.cu,
- g = this.ZF,
- h = this.li;
- if (d) d.currentTime = 0;
- else {
- d = this.nW(c);
- if (!d) return null;
- d = d.cloneNode(!0);
- this.bt &&
- f.ub(d, "pause", this.bt);
- d.volume = this.TL;
- this.SL[c] = d
- }
- c = 0;
- for (var k = e.length; c < k;) h[e[c]] == d ? e.splice(c, 1) : c++;
- c = 0;
- for (k = g.length; c < k;) h[g[c]] == d ? g.splice(c, 1) : c++;
- d.HF = !0;
- return d
- },
- HY: function() {
- var c = this.Gk,
- d = this.GE,
- e = this.SL,
- g = this.cu,
- h = this.ZF;
- if (c || 0 != g.length || 0 != h.length) {
- for (var k in e) {
- var m = e[k];
- m.duration && Infinity != m.duration && (m.currentTime = m.duration)
- }
- g.length = 0;
- h.length = 0;
- for (k in d)
- for (e = d[k], g = 0, h = e.length; g < h; g++) m = e[g], m.loop = !1, m.duration && Infinity != m.duration && (m.currentTime =
- m.duration);
- c && this.Rt(c)
- }
- },
- bt: function() {
- if (!this.OW) {
- var c = this.jsa();
- if (c) c.HF ? (delete c.HF, c.play()) : this.lr(c);
- else if (this.hw) {
- c = this.Lh;
- if (c.duration && Infinity != c.duration) {
- var d = c.currentTime + this.Nz,
- d = d - c.duration * (d / c.duration | 0);
- c.currentTime = d
- }
- this.Nz = 0;
- this.lr(c);
- this.Uj = 2;
- this.hw = !1
- }
- }
- },
- jsa: function() {
- var c = this.cu,
- d = this.li,
- e = this.Gk,
- g = e ? e.currentTime - (e.startTime || 0) : 0;
- for (this.Nz += g; 0 != c.length;) {
- var h = c.pop();
- if (e = d[h]) {
- if (e.HF || e.loop || e.duration && e.currentTime + g < e.duration) return this.Cz =
- h, this.Gk = e, !e.HF && e.duration && Infinity != e.duration && (c = e.currentTime + g, c -= e.duration * (c / e.duration | 0), e.currentTime = c), e.HF = !1, e;
- e.duration && Infinity != e.duration && (e.currentTime = e.duration)
- }
- }
- return this.Gk = this.Cz = null
- },
- naa: function() {
- var c = this.Gk;
- this.OW = !0;
- if (c = 2 == this.Uj ? this.Lh : c) this.aG.push(c), c.pause()
- },
- Kaa: function() {
- var c = this.aG;
- this.OW = !1;
- 0 < c.length && (this.lr(c[0]), c.length = 0)
- }
- }));
- f.UU = {
- SN: null,
- gP: function() {
- return f.L.vwa
- },
- UW: function(c, d, e, g, h, k, m) {
- var n = this,
- p = f.L,
- s = f.path,
- u = this.SN,
- v = "";
- if (0 == u.length) return m("can not support audio!");
- if (-1 == g) v = (s.zp(c) || "").toLowerCase(), n.wwa(v) || (v = u[0], g = 0);
- else if (g < u.length) v = u[g];
- else return m("can not found the resource of audio! Last match url is : " + c); if (0 <= h.indexOf(v)) return n.UW(c, d, e, g + 1, h, k, m);
- c = s.c_(c, v);
- h.push(v);
- k = n.Usa(c, k, function(p) {
- if (p) return n.UW(c, d, e, g + 1, h, k, m);
- m(null, k)
- }, g == u.length - 1);
- p.jj[d] = k
- },
- wwa: function(c) {
- return c ?
- 0 <= this.SN.indexOf(c.toLowerCase()) : !1
- },
- Usa: function(c, d, e, g) {
- var h = "file://" == location.origin ? Audio : f.xU || Audio;
- 2 == arguments.length ? (e = d, d = new h) : 3 < arguments.length && !d && (d = new h);
- d.src = c;
- d.K1 = "auto";
- h = navigator.userAgent;
- /Mobile/.test(h) && (/iPhone OS/.test(h) || /iPad/.test(h) || /Firefox/.test(h)) || /MSIE/.test(h) ? (d.load(), e(null, d)) : (f.ub(d, "canplaythrough", function() {
- e(null, d);
- this.removeEventListener("canplaythrough", arguments.callee, !1);
- this.removeEventListener("error", arguments.callee, !1)
- }, !1),
- f.ub(d, "error", function() {
- e("load " + c + " failed");
- g && (this.removeEventListener("canplaythrough", arguments.callee, !1), this.removeEventListener("error", arguments.callee, !1))
- }, !1), d.load());
- return d
- },
- load: function(c, d, e, g) {
- this.UW(c, d, e, -1, [], null, g)
- }
- };
- f.UU.SN = function() {
- var c = f.fd("audio"),
- d = [];
- if (c.canPlayType) {
- var e = function(d) {
- d = c.canPlayType(d);
- return "no" != d && "" != d
- };
- e('audio/ogg; codecs\x3d"vorbis"') && d.push(".ogg");
- e("audio/mpeg") && d.push(".mp3");
- e('audio/wav; codecs\x3d"1"') && d.push(".wav");
- e("audio/mp4") && d.push(".mp4");
- (e("audio/x-m4a") || e("audio/aac")) && d.push(".m4a")
- }
- return d
- }();
- f.L.Xp(["mp3", "ogg", "wav", "mp4", "m4a"], f.UU);
- f.pe = f.R3 ? new f.R3 : new f.Q3;
- f.Qa.sZ(f.vf.UJ, function() {
- f.pe.naa()
- });
- f.Qa.sZ(f.vf.vD, function() {
- f.pe.Kaa()
- });
- f.tS = 9;
- f.Gka = 1;
- f.Jka = 2;
- f.Kka = 4;
- f.Hka = 8;
- f.Ika = 16;
- f.G4 = 32;
- f.Lka = 64;
- f.Fka = 128;
- f.ro = 256;
- f.Wg = 1;
- f.av = 2;
- f.$u = 4;
- f.JKa = 8;
- f.IKa = 8;
- f.Nc = f.ci.extend({
- J$: !1,
- oOa: !1,
- vi: null,
- ta: "Control",
- vg: function() {
- return this.J$
- },
- ee: function(c) {
- this.J$ = c;
- for (var d = this.re(), e = 0, g = d.length; e < g; e++) {
- var h = d[e];
- h && h.wb && h.ee(c)
- }
- },
- Ic: f.Wg,
- rBa: function() {
- return this.Ic
- },
- $c: !1,
- zN: !1,
- ot: !1,
- HL: null,
- Lb: function(c) {
- this.Ic = (this.$c = c) ? f.Wg : f.$u;
- this.Xf()
- },
- isEnabled: function() {
- return this.$c
- },
- Nu: function(c) {
- this.zN = c;
- this.Xf()
- },
- WP: function() {
- return this.zN
- },
- xj: function(c) {
- this.ot = c;
- this.Xf()
- },
- UP: function() {
- return this.ot
- },
- aCa: function() {
- for (var c = this.getParent(); null !=
- c; c = c.getParent())
- if (!c.Na) return !1;
- return !0
- },
- ctor: function() {
- f.ci.prototype.ctor.call(this);
- this.HL = {};
- this.Ea = f.color.WHITE
- },
- j: function() {
- if (f.ci.prototype.j.call(this)) {
- this.Ic = f.Wg;
- this.$c = !0;
- this.ot = this.zN = !1;
- var c = f.Xa.create({
- event: f.Xa.zs
- });
- this.rc && (c.rc = this.rc.bind(this));
- this.hd && (c.hd = this.hd.bind(this));
- this.gd && (c.gd = this.gd.bind(this));
- this.ef && (c.ef = this.ef.bind(this));
- this.vi = c;
- return !0
- }
- return !1
- },
- ba: function() {
- var c = this.vi;
- c.aj || f.Qa.addListener(c, this);
- f.v.prototype.ba.call(this)
- },
- Di: function(c) {
- for (var d = 0, e = f.tS; d < e; d++)
- if (c & 1 << d)
- for (var g = this.RV(1 << d), h = 0, k = g.length; h < k; h++) g[h].NCa(this)
- },
- VG: function(c, d, e) {
- for (var g = 0, h = f.tS; g < h; g++) e & 1 << g && this.B8(c, d, 1 << g)
- },
- y1a: function(c, d, e) {
- for (var g = 0, h = f.tS; g < h; g++) e & 1 << g && this.Zta(c, d, 1 << g)
- },
- Dp: function(c) {
- return this.yi(c.cf())
- },
- Yn: function(c) {
- c = c.cf();
- c = this.getParent().yi(c);
- return f.Bu(this.Ee(), c)
- },
- sOa: function() {
- return null
- },
- RV: function(c) {
- c = c.toString();
- this.HL[c] || (this.HL[c] = []);
- return this.HL[c]
- },
- B8: function(c, d, e) {
- c =
- new f.Xla(c, d, e);
- this.RV(e).push(c)
- },
- Zta: function(c, d, e) {
- e = this.RV(e);
- if (c || d)
- for (var g = 0; g < e.length;) {
- var h = e[g],
- k = !0;
- c && (k = c == h.bea());
- d && (k = k && d == h.Ir());
- k ? f.Ld(e, h) : g++
- } else e.length = 0
- },
- Xf: function() {}
- });
- q = f.Nc.prototype;
- f.d(q, "state", q.rBa);
- f.d(q, "enabled", q.isEnabled, q.Lb);
- f.d(q, "selected", q.WP, q.Nu);
- f.d(q, "highlighted", q.UP, q.xj);
- q = null;
- f.Nc.create = function() {
- var c = new f.Nc;
- return c && c.j() ? c : null
- };
- f.K4 = 3435855873;
- f.Xm = f.Nc.extend({
- kF: !1,
- vJ: !1,
- Rh: null,
- IF: null,
- eF: null,
- zL: null,
- Mw: null,
- Ih: null,
- Ib: 0,
- iA: !1,
- YN: null,
- FG: null,
- ZN: null,
- Av: null,
- kaa: !1,
- MM: 0,
- LM: 0,
- ta: "ControlButton",
- ctor: function() {
- f.Nc.prototype.ctor.call(this);
- this.Rh = t(0, 0);
- this.IF = r(0, 0);
- this.eF = "";
- this.zL = f.color.WHITE;
- this.YN = {};
- this.FG = {};
- this.ZN = {};
- this.Av = {}
- },
- j: function() {
- return this.OP(f.ia.create("", "Arial", 12), f.Ua.create())
- },
- Xf: function() {
- if (this.kaa) {
- this.Mw && this.Mw.za(!1);
- this.Ih && this.Ih.za(!1);
- this.z2(this.IF);
- var c = this.Ic;
- this.eF = this.s0(c);
- this.zL = this.zBa(c);
- var d = this.Mw = this.GH(c);
- d && d.wa && d.wa(this.eF);
- d && d.wb && d.F(this.zL);
- var e = this.e();
- d && d.o(e.width / 2, e.height / 2);
- (c = this.Ih = this.Aza(c)) && c.o(e.width / 2, e.height / 2);
- e = t(0, 0);
- if (d) {
- var g = d.Ee();
- e.width = g.width;
- e.height = g.height
- }
- this.kF ? c && c.Ga(e.width + 2 * this.LM, e.height + 2 * this.MM) : c && (g = c.Rh, g = t(g.width, g.height), 0 >= g.width && (g.width = e.width), 0 >= g.height && (g.height = e.height), c.Ga(g));
- e = d ? d.Ee() : x(0, 0, 0, 0);
- g = c ? c.Ee() : x(0, 0, 0, 0);
- e = f.zC(e, g);
- this.Ga(e.width, e.height);
- e = this.e();
- d &&
- (d.o(e.width / 2, e.height / 2), d.za(!0));
- c && (c.o(e.width / 2, e.height / 2), c.za(!0))
- }
- },
- OP: function(c, d) {
- if (!c || !c.wb) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): label should be non-null";
- if (!d) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): backgroundSprite should be non-null";
- return f.Nc.prototype.j.call(this, !0) ? (this.kaa = !0, this.YN = {}, this.FG = {}, this.ZN = {}, this.Av = {}, this.iA = !1, this.vJ = !0, this.eF = null, this.Aga(!0), this.He(t(0, 0)), this.vJ = !0, this.Gm(!1), this.S(0.5, 0.5), this.Mw =
- c, this.Ih = d, this.J(255), this.ee(!0), this.AR(c.qc(), f.Wg), this.zR(c.$a(), f.Wg), this.W2(c, f.Wg), this.aR(d, f.Wg), this.Ic = f.Wg, this.LM = 24, this.MM = 12, this.IF = r(0.5, 0.5), this.He(t(0, 0)), this.Xf(), !0) : !1
- },
- FCa: function(c, d, e) {
- c = f.ia.create(c, d, e);
- return this.OP(c, f.Ua.create())
- },
- yea: function(c) {
- var d = f.ia.create("", "Arial", 30);
- return this.OP(d, c)
- },
- $Qa: function() {
- return this.kF
- },
- Aga: function(c) {
- this.kF = c;
- this.Xf()
- },
- OWa: function() {
- return this.vJ
- },
- $ha: function(c) {
- return this.vJ = c
- },
- j0: function() {
- return this.Rh
- },
- He: function(c) {
- if (0 === c.width && 0 === c.height) this.kF = !0;
- else {
- this.kF = !1;
- var d = this.Av,
- e;
- for (e in d) d[e].He(c)
- }
- this.Rh = c;
- this.Xf()
- },
- oAa: function() {
- return this.IF
- },
- z2: function(c) {
- this.IF = c;
- this.Mw && this.Mw.S(c)
- },
- cOa: function() {
- return this.eF
- },
- dOa: function() {
- return this.zL
- },
- vb: function() {
- return this.Ib
- },
- J: function(c) {
- f.Nc.prototype.J.call(this, c);
- var d = this.Av,
- e;
- for (e in d) d[e].J(c)
- },
- F: function(c) {
- f.Nc.prototype.F.call(this, c);
- var d = this.Av,
- e;
- for (e in d) d[e].F(c)
- },
- $a: function() {
- var c = this.rd;
- return f.color(c.r,
- c.g, c.b, c.a)
- },
- SXa: function() {
- return this.iA
- },
- mOa: function() {
- return this.MM
- },
- fOa: function() {
- return this.LM
- },
- G3a: function(c, d) {
- this.MM = d;
- this.LM = c;
- this.Xf()
- },
- Lb: function(c) {
- f.Nc.prototype.Lb.call(this, c);
- this.Xf()
- },
- Nu: function(c) {
- f.Nc.prototype.Nu.call(this, c);
- this.Xf()
- },
- xj: function(c) {
- this.Ic = c ? f.av : f.Wg;
- f.Nc.prototype.xj.call(this, c);
- (c = this.eP(f.K4)) && this.hJ(c);
- this.Xf();
- this.vJ && (c = f.Db.create(0.05, this.UP() && this.isEnabled() && !this.WP() ? 1.1 : 1), c.Nm(f.K4), this.V(c))
- },
- rc: function(c) {
- if (!(this.Yn(c) &&
- this.isEnabled() && this.Na && this.aCa())) return !1;
- this.iA = !0;
- this.xj(!0);
- this.Di(f.Gka);
- return !0
- },
- hd: function(c) {
- this.$c && this.iA && !this.zN ? (c = this.Yn(c)) && !this.ot ? (this.xj(!0), this.Di(f.Hka)) : c && this.ot ? this.Di(f.Jka) : !c && this.ot ? (this.xj(!1), this.Di(f.Ika)) : c || this.ot || this.Di(f.Kka) : this.ot && this.xj(!1)
- },
- gd: function(c) {
- this.iA = !1;
- this.xj(!1);
- this.Yn(c) ? this.Di(f.G4) : this.Di(f.Lka)
- },
- ef: function() {
- this.iA = !1;
- this.xj(!1);
- this.Di(f.Fka)
- },
- s0: function(c) {
- var d = this.YN;
- return d ? d[c] ? d[c] : d[f.Wg] : ""
- },
- AR: function(c,
- d) {
- this.YN[d] = c || "";
- this.Ic == d && this.Xf()
- },
- zBa: function(c) {
- return (c = this.FG[c]) ? c : (c = this.FG[f.Wg]) ? c : f.color.WHITE
- },
- zR: function(c, d) {
- this.FG[d] = c;
- this.Ic == d && this.Xf()
- },
- GH: function(c) {
- var d = this.ZN;
- return d[c] ? d[c] : d[f.Wg]
- },
- W2: function(c, d) {
- var e = this.ZN;
- if (e[d]) {
- var g = e[d];
- g && this.removeChild(g, !0)
- }
- e[d] = c;
- c.za(!1);
- c.S(0.5, 0.5);
- this.n(c, 1);
- this.Ic == d && this.Xf()
- },
- X2: function(c, d) {
- var e = this.s0(d);
- e || (e = "");
- this.W2(f.ia.create(e, c, 12), d)
- },
- rWa: function(c) {
- c = this.GH(c);
- return null != c && c instanceof f.ia ?
- c.Cp() : ""
- },
- Y2: function(c, d) {
- var e = this.GH(d);
- null != e && e instanceof f.ia && e.Qd(c)
- },
- sWa: function(c) {
- c = this.GH(c);
- return null != c && c instanceof f.ia ? c.Un() : 0
- },
- z4a: function(c, d) {
- var e = this.s0(d);
- e || (e = "");
- this.W2(f.qq.create(e, c), d)
- },
- qWa: function(c) {
- c = this.GH(c);
- return null != c && c instanceof f.qq ? c.qF : ""
- },
- Aza: function(c) {
- var d = this.Av;
- return d[c] ? d[c] : d[f.Wg]
- },
- aR: function(c, d) {
- var e = this.Av;
- if (e[d]) {
- var g = e[d];
- g && this.removeChild(g, !0)
- }
- e[d] = c;
- c.za(!1);
- c.S(0.5, 0.5);
- this.n(c);
- e = this.Rh;
- 0 === e.width && 0 === e.height ||
- c.He(e);
- this.Ic === d && this.Xf()
- },
- l2: function(c, d) {
- var e = f.Ua.nxa(c);
- this.aR(e, d)
- }
- });
- q = f.Xm.prototype;
- f.d(q, "adjustBackground", q.VRa, q.Aga);
- f.d(q, "preferredSize", q.j0, q.He);
- f.d(q, "labelAnchor", q.oAa, q.z2);
- q = null;
- f.Xm.create = function(c, d) {
- var e;
- if (0 == arguments.length) return (e = new f.Xm) && e.j() ? e : null;
- 1 == arguments.length ? (e = new f.Xm, e.yea(arguments[0])) : 2 == arguments.length ? (e = new f.Xm, e.OP(c, d)) : 3 == arguments.length && (e = new f.Xm, e.FCa(arguments[0], arguments[1], arguments[2]));
- return e
- };
- function Ea() {
- this.a = this.b = this.g = this.r = void 0
- }
- f.TS = function(c, d, e) {
- this.Vf = c;
- this.ll = d;
- this.ga = e
- };
- f.Eh = {};
- f.Eh.$w = function(c, d, e, g) {
- c = f.q.create("#" + c);
- if (!c) return null;
- c.o(e);
- c.S(g);
- d.n(c);
- return c
- };
- f.Eh.Nla = function(c) {
- var d = new f.TS,
- e, g;
- e = c.r < c.g ? c.r : c.g;
- e = e < c.b ? e : c.b;
- g = c.r > c.g ? c.r : c.g;
- g = g > c.b ? g : c.b;
- d.ga = g;
- e = g - e;
- if (0 < g) d.ll = e / g;
- else return d.ll = 0, d.Vf = -1, d;
- d.Vf = c.r >= g ? (c.g - c.b) / e : c.g >= g ? 2 + (c.b - c.r) / e : 4 + (c.r - c.g) / e;
- d.Vf *= 60;
- 0 > d.Vf && (d.Vf += 360);
- return d
- };
- f.Eh.FT = function(c) {
- var d, e, g, h, k = new Ea;
- k.a = 1;
- if (0 >= c.ll) {
- if (!c.Vf) return k.r = c.ga, k.g = c.ga, k.b = c.ga, k;
- k.r = 0;
- k.g = 0;
- k.b = 0;
- return k
- }
- d = c.Vf;
- 360 <= d && (d = 0);
- d /= 60;
- h = 0 | d;
- g = d - h;
- d = c.ga * (1 - c.ll);
- e = c.ga * (1 - c.ll * g);
- g = c.ga * (1 - c.ll * (1 - g));
- switch (h) {
- case 0:
- k.r = c.ga;
- k.g = g;
- k.b = d;
- break;
- case 1:
- k.r = e;
- k.g = c.ga;
- k.b = d;
- break;
- case 2:
- k.r = d;
- k.g = c.ga;
- k.b = g;
- break;
- case 3:
- k.r = d;
- k.g = e;
- k.b = c.ga;
- break;
- case 4:
- k.r = g;
- k.g = d;
- k.b = c.ga;
- break;
- default:
- k.r = c.ga, k.g = d, k.b = e
- }
- return k
- };
- f.Eh.h4 = function(c, d) {
- return f.zC(c, d)
- };
- f.Xla = f.N.extend({
- Qe: null,
- ad: null,
- vL: null,
- ctor: function(c, d, e) {
- this.ad = c;
- this.Qe = d;
- this.vL = e
- },
- Ir: function() {
- return this.Qe
- },
- bea: function() {
- return this.ad
- },
- aTa: function() {
- return this.vL
- },
- NCa: function(c) {
- if (this.ad && this.Qe)
- if ("string" == typeof this.Qe) this.ad[this.Qe](c, this.vL);
- else this.Qe.call(this.ad, c, this.vL)
- }
- });
- f.Ua = f.ja.extend({
- wb: !0,
- RA: null,
- T8: null,
- jp: !1,
- cj: null,
- Zt: null,
- Nw: null,
- $t: null,
- $v: null,
- Jq: null,
- zw: null,
- Qs: null,
- Dv: null,
- Ev: null,
- Nq: null,
- Jb: !1,
- Jg: null,
- Rh: null,
- Ib: 0,
- Ea: null,
- kf: null,
- vM: 0,
- xM: 0,
- wM: 0,
- uM: 0,
- kba: !1,
- CY: !1,
- Ba: !1,
- dc: null,
- ta: "Scale9Sprite",
- RC: function() {
- return this.Ba
- },
- oe: function(c, d) {
- this.dc.push({
- al: c,
- nj: d
- })
- },
- jf: function() {
- this.Ba = !0;
- for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
- var g = c[d];
- g.al.call(g.nj, this)
- }
- c.length = 0
- },
- iO: function() {
- var c = this.vM,
- d = this.xM,
- e = this.wM,
- g = this.RA,
- h = this.uM;
- this.Cc(0 ===
- c && 0 === d && 0 === e && 0 === h ? x(0, 0, 0, 0) : this.CY ? x(h, c, g.width - e - c, g.height - d - h) : x(c, d, g.width - c - e, g.height - d - h))
- },
- wva: function() {
- if (this.Zt && this.$t && this.Ev && this.Qs && this.Jq) {
- var c = this.m,
- d = this.Zt,
- e = this.$t,
- g = this.Ev,
- h = this.Qs,
- k = this.Jq,
- m = this.Jq.e(),
- n = d.e(),
- p = h.e(),
- s = c.width - n.width - e.e().width,
- c = c.height - n.height - g.e().height,
- s = s / m.width,
- c = c / m.height,
- n = m.width * s,
- u = m.height * c,
- v = p.width,
- p = p.height;
- if (f.K == f.na) {
- var z = Math.round(n);
- n != z && (n = z, s = n / m.width);
- z = Math.round(u);
- u != z && (u = z, c = u / m.height)
- }
- k.jb(s);
- k.tb(c);
- var m = this.$v,
- z = this.zw,
- A = this.Nw,
- B = this.Dv,
- C = r(0, 0);
- h.S(C);
- g.S(C);
- d.S(C);
- e.S(C);
- m.S(C);
- z.S(C);
- A.S(C);
- B.S(C);
- k.S(C);
- h.o(0, 0);
- g.o(v + n, 0);
- d.o(0, p + u);
- e.o(v + n, p + u);
- m.o(0, p);
- m.tb(c);
- z.o(v + n, p);
- z.tb(c);
- B.o(v, 0);
- B.jb(s);
- A.o(v, p + u);
- A.jb(s);
- k.o(v, p)
- }
- },
- ctor: function() {
- f.ja.prototype.ctor.call(this);
- this.RA = x(0, 0, 0, 0);
- this.T8 = x(0, 0, 0, 0);
- this.Nq = f.color(255, 255, 255, 255);
- this.Jg = t(0, 0);
- this.Rh = t(0, 0);
- this.Ea = f.color(255, 255, 255, 255);
- this.Ib = 255;
- this.kf = x(0, 0, 0, 0);
- this.dc = []
- },
- QAa: function() {
- return this.Jg
- },
- j0: function() {
- return this.Rh
- },
- iOa: function() {
- return this.Rh.width
- },
- hOa: function() {
- return this.Rh.height
- },
- He: function(c) {
- this.Ga(c);
- this.Rh = c
- },
- ROa: function(c) {
- this.Uh(c);
- this.Rh.width = c
- },
- QOa: function(c) {
- this.Th(c);
- this.Rh.height = c
- },
- vb: function() {
- return this.Ib
- },
- J: function(c) {
- if (this.cj) {
- this.Ib = c;
- for (var d = this.cj.re(), e = 0; e < d.length; e++) {
- var g = d[e];
- g && g.wb && g.J(c)
- }
- this.Ea.a = c
- }
- },
- hc: function(c) {
- f.ja.prototype.hc.call(this, c);
- this.J(this.kb)
- },
- $a: function() {
- var c = this.Ea;
- return f.color(c.r, c.g, c.b, c.a)
- },
- F: function(c) {
- if (this.cj) {
- var d = this.Ea;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- for (var d = this.cj.re(), e = 0; e < d.length; e++) {
- var g = d[e];
- g && g.wb && g.F(c)
- }
- void 0 === c.a || c.Yw || this.J(c.a)
- }
- },
- Wb: function(c) {
- f.ja.prototype.Wb.call(this, c);
- this.F(this.Ab)
- },
- X_: function() {
- return this.kf
- },
- Cc: function(c) {
- if (this.cj) {
- var d = this.m,
- e = d.width,
- d = d.height;
- this.XC(this.cj, this.RA, this.CY, c);
- this.Ga(e, d)
- }
- },
- jAa: function() {
- return this.vM
- },
- eha: function(c) {
- this.vM = c;
- this.iO()
- },
- lAa: function() {
- return this.xM
- },
- gha: function(c) {
- this.xM = c;
- this.iO()
- },
- kAa: function() {
- return this.wM
- },
- fha: function(c) {
- this.wM = c;
- this.iO()
- },
- iAa: function() {
- return this.uM
- },
- dha: function(c) {
- this.uM = c;
- this.iO()
- },
- Ga: function(c, d) {
- f.v.prototype.Ga.call(this, c, d);
- this.jp = !0
- },
- Uh: function(c) {
- f.v.prototype.Uh.call(this, c);
- this.jp = !0
- },
- Th: function(c) {
- f.v.prototype.Th.call(this, c);
- this.jp = !0
- },
- I: function(c) {
- this.jp && (this.wva(), this.jp = !1);
- f.ja.prototype.I.call(this, c)
- },
- j: function() {
- return this.LP(null, x(0, 0, 0, 0), !1, x(0, 0, 0, 0))
- },
- LP: function(c, d, e, g) {
- void 0 === g && (g = e, e = !1);
- c && this.XC(c,
- d, e, g);
- this.S(0.5, 0.5);
- return this.jp = !0
- },
- Ge: function(c, d, e) {
- c instanceof f.Qy ? (e = c = d, d = x(0, 0, 0, 0)) : (d = d || x(0, 0, 0, 0), e = e || x(0, 0, 0, 0));
- if (!c) throw "cc.Scale9Sprite.initWithFile(): file should be non-null";
- var g = f.nb.Ru(c);
- if (!g) {
- var g = f.nb.vd(c),
- h = g.ie;
- (this.Ba = h) || g.oe(function(c) {
- var d = this.Rh,
- d = t(d.width, d.height);
- c = c.e();
- this.XC(this.cj, x(0, 0, c.width, c.height), !1, this.kf);
- this.He(d);
- this.jp = !0;
- this.jf()
- }, this)
- }
- return this.LP(f.Fh.create(c, 9), d, !1, e)
- },
- pj: function(c, d) {
- if (!c || !c.sb()) throw "cc.Scale9Sprite.initWithSpriteFrame(): spriteFrame should be non-null and its texture should be non-null";
- d = d || x(0, 0, 0, 0);
- var e = c.Ba;
- (this.Ba = e) || c.oe(function(c) {
- var d = this.Rh,
- d = t(d.width, d.height);
- this.XC(this.cj, c.$h(), f.K == f.na && c.lg, this.kf);
- this.He(d);
- this.jp = !0;
- this.jf()
- }, this);
- e = f.Fh.create(c.sb(), 9);
- return this.LP(e, c.$h(), f.K == f.na && c.lg, d)
- },
- hl: function(c, d) {
- if (!c) throw "cc.Scale9Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null";
- d = d || x(0, 0, 0, 0);
- var e = f.Je.Ca(c);
- return null == e ? (f.log("cc.Scale9Sprite.initWithSpriteFrameName(): can't find the sprite frame by spriteFrameName"), !1) : this.pj(e, d)
- },
- H1a: function(c) {
- var d = new f.Ua;
- return d && d.LP(this.cj, this.RA, !1, c) ? d : null
- },
- ee: function(c) {
- if (this.cj) {
- this.Jb = c;
- var d = this.cj.re();
- if (d)
- for (var e = 0, g = d.length; e < g; e++) d[e].ee(c)
- }
- },
- vg: function() {
- return this.Jb
- },
- XC: function(c, d, e, g) {
- var h = this.vb(),
- k = this.$a();
- d = x(d.x, d.y, d.width, d.height);
- this.Cf(!0);
- this.cj != c && (this.cj = c);
- c = c.sb();
- var m = c.ie;
- if (this.Ba = m) {
- c = this.cj;
- c.Cf(!0);
- m = this.kf;
- m.x = g.x;
- m.y = g.y;
- m.width = g.width;
- m.height = g.height;
- this.CY = e;
- m = c.sb();
- f.gG(d) && (d = m.e(), d = x(0, 0,
- d.width, d.height));
- var n = this.RA = d;
- n.x = d.x;
- n.y = d.y;
- n.width = d.width;
- n.height = d.height;
- this.Jg.width = d.width;
- this.Jg.height = d.height;
- n = this.Rh;
- 0 === n.width && 0 === n.height && (n.width = d.width, n.height = d.height);
- n = this.T8;
- g && (n.x = g.x, n.y = g.y, n.width = g.width, n.height = g.height);
- var p = d.width;
- g = d.height;
- f.gG(n) && (n.x = p / 3, n.y = g / 3, n.width = p / 3, n.height = g / 3);
- var s = n.x,
- u = n.width,
- v = p - (s + u),
- z = n.y,
- A = n.height,
- B = g - (z + A),
- C = 0,
- G = 0;
- g = x(C, G, s, z);
- var C = C + s,
- n = x(C, G, u, z),
- p = x(C + u, G, v, z),
- C = 0,
- G = 0 + z,
- L = x(C, G, s, A),
- C = C + s,
- O = x(C, G, u,
- A),
- C = C + u,
- R = x(C, G, v, A),
- C = 0,
- G = 0 + z + A,
- z = x(C, G, s, B),
- C = C + s,
- s = x(C, G, u, B),
- C = C + u,
- u = x(C, G, v, B),
- v = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- };
- if (e) {
- e = O;
- var B = u,
- C = z,
- G = p,
- A = g,
- M = R,
- K = L,
- P = s,
- I = n,
- v = f.xJ(v, d.height + d.x, d.y),
- v = f.hja(v),
- O = f.Ki(O, v),
- u = f.Ki(u, v),
- z = f.Ki(z, v),
- p = f.Ki(p, v);
- g = f.Ki(g, v);
- R = f.Ki(R, v);
- L = f.Ki(L, v);
- s = f.Ki(s, v);
- n = f.Ki(n, v);
- e.x = O.x;
- e.y = O.y;
- B.x = u.x;
- B.y = u.y;
- C.x = z.x;
- C.y = z.y;
- G.x = p.x;
- G.y = p.y;
- A.x = g.x;
- A.y = g.y;
- M.x = R.x;
- M.y = R.y;
- K.x = L.x;
- K.y = L.y;
- P.x = s.x;
- P.y = s.y;
- I.x = n.x;
- I.y = n.y;
- this.Jq = new f.q;
- this.Jq.va(m, e, !0);
- c.n(this.Jq, 0, f.Ua.A6);
- this.Nw = new f.q;
- this.Nw.va(m, I, !0);
- c.n(this.Nw, 1, f.Ua.D6);
- this.Dv = new f.q;
- this.Dv.va(m, P, !0);
- c.n(this.Dv, 1, f.Ua.z6);
- this.$v = new f.q;
- this.$v.va(m, K, !0);
- c.n(this.$v, 1, f.Ua.B6);
- this.zw = new f.q;
- this.zw.va(m, M, !0);
- c.n(this.zw, 1, f.Ua.C6);
- this.Zt = new f.q;
- this.Zt.va(m, A, !0);
- c.n(this.Zt, 2, f.Ua.E6);
- this.$t = new f.q;
- this.$t.va(m, G, !0);
- c.n(this.$t, 2, f.Ua.F6);
- this.Qs = new f.q;
- this.Qs.va(m, C, !0);
- c.n(this.Qs, 2, f.Ua.cna);
- this.Ev = new f.q;
- this.Ev.va(m, B, !0)
- } else v = f.xJ(v, d.x, d.y), f.Fo(O, v), f.Fo(u, v), f.Fo(z, v), f.Fo(p,
- v), f.Fo(g, v), f.Fo(R, v), f.Fo(L, v), f.Fo(s, v), f.Fo(n, v), this.Jq = new f.q, this.Jq.va(m, O), c.n(this.Jq, 0, f.Ua.A6), this.Nw = new f.q, this.Nw.va(m, n), c.n(this.Nw, 1, f.Ua.D6), this.Dv = new f.q, this.Dv.va(m, s), c.n(this.Dv, 1, f.Ua.z6), this.$v = new f.q, this.$v.va(m, L), c.n(this.$v, 1, f.Ua.B6), this.zw = new f.q, this.zw.va(m, R), c.n(this.zw, 1, f.Ua.C6), this.Zt = new f.q, this.Zt.va(m, g), c.n(this.Zt, 2, f.Ua.E6), this.$t = new f.q, this.$t.va(m, p), c.n(this.$t, 2, f.Ua.F6), this.Qs = new f.q, this.Qs.va(m, z), c.n(this.Qs, 2, f.Ua.cna), this.Ev =
- new f.q, this.Ev.va(m, u);
- c.n(this.Ev, 2, f.Ua.dna);
- this.Ga(d);
- this.n(c);
- this.kba && (this.J(h), 255 === k.r && 255 === k.g && 255 === k.b || this.F(k));
- return this.kba = !0
- }
- c.oe(function() {
- this.jp = !0;
- this.jf()
- }, this)
- },
- Dd: function(c) {
- var d = f.Fh.create(c.sb(), 9),
- e = c.Ba;
- (this.Ba = e) || c.oe(function(c) {
- var d = this.Rh,
- d = t(d.width, d.height);
- this.XC(this.cj, c.$h(), f.K == f.na && c.lg, this.kf);
- this.He(d);
- this.jp = !0;
- this.jf()
- }, this);
- this.XC(d, c.$h(), f.K == f.na && c.lg, x(0, 0, 0, 0));
- this.uM = this.wM = this.xM = this.vM = 0
- }
- });
- q = f.Ua.prototype;
- f.d(q, "preferredSize", q.j0, q.He);
- f.d(q, "capInsets", q.X_, q.Cc);
- f.d(q, "insetLeft", q.jAa, q.eha);
- f.d(q, "insetTop", q.lAa, q.gha);
- f.d(q, "insetRight", q.kAa, q.fha);
- f.d(q, "insetBottom", q.iAa, q.dha);
- q = null;
- f.Ua.create = function(c, d, e) {
- var g;
- if (2 === arguments.length)
- if ("string" == typeof c) {
- if ((g = new f.Ua) && g.Ge(c, d)) return g
- } else {
- if (c instanceof f.Qy && (g = new f.Ua) && g.Ge(c, e)) return g
- } else if (3 === arguments.length) {
- if ((g = new f.Ua) && g.Ge(c, d, e)) return g
- } else if (1 === arguments.length) {
- if ((g = new f.Ua) && g.Ge(c)) return g
- } else if (0 === arguments.length && (g = new f.Ua) && g.j()) return g;
- return null
- };
- f.Ua.nxa = function(c) {
- var d = new f.Ua;
- return d && d.pj(c, void 0) ? d : null
- };
- f.Ua.Cca = function(c, d) {
- if (!c) throw "cc.Scale9Sprite.createWithSpriteFrameName(): spriteFrameName should be non-null";
- var e = new f.Ua;
- return e && e.hl(c, d) ? e : null
- };
- f.Ua.A6 = 0;
- f.Ua.D6 = 1;
- f.Ua.B6 = 2;
- f.Ua.C6 = 3;
- f.Ua.z6 = 4;
- f.Ua.F6 = 5;
- f.Ua.E6 = 6;
- f.Ua.dna = 7;
- f.vK = f.Me.extend({});
- f.vK.T5a = function(c) {
- var d = new f.vK;
- d.j();
- d.Ga(0, c);
- return d
- };
- f.vK.ZWa = function(c) {
- var d = new f.vK;
- d.j();
- d.Ga(c, 0);
- return d
- };
- f.fK = f.Me.extend({
- wb: !0,
- Ea: null,
- Ib: 0,
- ta: "MenuPassive",
- ctor: function() {},
- $a: function() {
- var c = this.Ea;
- return f.color(c.r, c.g, c.b, c.a)
- },
- F: function(c) {
- var d = this.Ea;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- if (this.i && 0 < this.i.length)
- for (d = 0; d < this.i.length; d++) this.i[d] && this.i[d].wb && this.i[d].F(c);
- void 0 === c.a || c.Yw || this.J(c.a)
- },
- vb: function() {
- return this.Ib
- },
- J: function(c) {
- this.Ib = c;
- if (this.i && 0 < this.i.length)
- for (var d = 0; d < this.i.length; d++) this.i[d] && this.i[d].wb && this.i[d].J(c);
- this.Ea.a = c
- },
- NP: function(c, d) {
- if (this.j()) {
- var e =
- f.Q.Y;
- this.Gm(!0);
- this.S(0.5, 0.5);
- this.Ga(e);
- this.o(e.width / 2, e.height / 2);
- e = 0;
- if (c) {
- this.n(c, e);
- for (var g = 0; g < d.length; g++) d[g] && (e++, this.n(d[g], e))
- }
- return !0
- }
- return !1
- },
- cwa: function() {
- this.yZ(f.OJ)
- },
- yZ: function(c) {
- var d = -c,
- e;
- if (this.i && 0 < this.i.length)
- for (e = 0; e < this.i.length; e++) this.i[e] && (d += this.i[e].e().height * this.i[e].ra + c);
- var g = 0,
- h = d / 2;
- if (this.i && 0 < this.i.length)
- for (e = 0; e < this.i.length; e++) this.i[e] && (g = Math.max(g, this.i[e].e().width), this.i[e].o(0, h - this.i[e].e().height * this.i[e].ra / 2), h -=
- this.i[e].e().height * this.i[e].ra + c);
- this.Ga(g, d)
- },
- $va: function() {
- this.xZ(f.OJ)
- },
- xZ: function(c) {
- var d = -c,
- e;
- if (this.i && 0 < this.i.length)
- for (e = 0; e < this.i.length; e++) this.i[e] && (d += this.i[e].e().width * this.i[e].ka + c);
- var g = 0,
- h = -d / 2;
- if (this.i && 0 < this.i.length)
- for (e = 0; e < this.i.length; e++) this.i[e] && (g = Math.max(g, this.i[e].e().height), this.i[e].o(h + this.i[e].e().width * this.i[e].ka / 2, 0), h += this.i[e].e().width * this.i[e].ka + c);
- this.Ga(d, g)
- },
- awa: function(c) {
- var d = [],
- e;
- for (e = 1; e < arguments.length; e++) d.push(arguments[e]);
- var g = -5,
- h = 0,
- k = 0,
- m = 0,
- n, p;
- if (this.i && 0 < this.i.length)
- for (e = 0; e < this.i.length; e++) this.i[e] && (h >= d.length ? f.log("cc.MenuPassive.alignItemsInColumns(): invalid row index") : (n = d[h]) ? (p = this.i[e].e().height, k = 0 | (k >= p || null == p ? k : p), ++m, m >= n && (g += k + 5, k = m = 0, ++h)) : f.log("cc.MenuPassive.alignItemsInColumns(): can not have zero columns on a row"));
- var s = f.Q.Y,
- u = n = k = h = 0,
- v = 0,
- g = g / 2;
- if (this.i && 0 < this.i.length)
- for (e = 0; e < this.i.length; e++) this.i[e] && (0 == n && (n = d[h], v = u = s.width / (1 + n)), p = this.i[e].e().height, k = 0 | (k >=
- p || null == p ? k : p), this.i[e].o(v - s.width / 2, g - this.i[e].e().height / 2), v += u, ++m, m >= n && (g -= k + 5, k = n = m = 0, ++h))
- },
- bwa: function(c) {
- var d = [],
- e;
- for (e = 1; e < arguments.length; e++) d.push(arguments[e]);
- var g = [],
- h = [],
- k = -10,
- m = -5,
- n = 0,
- p = 0,
- s = 0,
- u, v;
- if (this.i && 0 < this.i.length)
- for (e = 0; e < this.i.length; e++) this.i[e] && (n >= d.length ? f.log("cc.MenuPassive.alignItemsInRows(): invalid row index") : (u = d[n]) ? (v = this.i[e].e().width, p = 0 | (p >= v || null == v ? p : v), m += 0 | this.i[e].e().height + 5, ++s, s >= u && (g.push(p), h.push(m), k += p + 10, p = s = 0, m = -5, ++n)) :
- f.log("cc.MenuPassive.alignItemsInColumns(): can't have zero rows on a column"));
- m = f.Q.Y;
- p = n = 0;
- u = null;
- var k = -k / 2,
- z = 0;
- if (this.i && 0 < this.i.length)
- for (e = 0; e < this.i.length; e++) this.i[e] && (null == u && (u = d[n], z = h[n]), v = this.i[e].e().width, p = 0 | (p >= v || null == v ? p : v), this.i[e].o(k + g[n] / 2, z - m.height / 2), z -= this.i[e].e().height + 10, ++s, s >= u && (k += p + 5, p = u = s = 0, ++n))
- },
- ee: function() {},
- vg: function() {
- return !1
- }
- });
- f.fK.create = function(c) {
- c || (c = null);
- for (var d = [], e = 1; e < arguments.length; e++) d.push(arguments[e]);
- return (e = new f.fK) && e.NP(c, d) ? e : null
- };
- f.fK.FQa = function(c) {
- return f.fK.create(c, null)
- };
- f.NJ = f.Nc.extend({
- $X: 0,
- iL: 0,
- Re: null,
- wta: null,
- cba: null,
- mm: null,
- me: null,
- Ck: 0,
- Fq: 0,
- ta: "ControlSaturationBrightnessPicker",
- fBa: function() {
- return this.$X
- },
- Eza: function() {
- return this.iL
- },
- sH: function() {
- return this.Re
- },
- RAa: function() {
- return this.iL
- },
- kBa: function() {
- return this.cba
- },
- n0: function() {
- return this.mm
- },
- p0: function() {
- return this.me
- },
- K0: function(c, d) {
- return f.Nc.prototype.j.call(this) ? (this.Re = f.Eh.$w("colourPickerBackground.png", c, d, r(0, 0)), this.wta = f.Eh.$w("colourPickerOverlay.png", c, d, r(0, 0)), this.cba =
- f.Eh.$w("colourPickerShadow.png", c, d, r(0, 0)), this.mm = f.Eh.$w("colourPicker.png", c, d, r(0.5, 0.5)), this.me = d, this.Ck = 35, this.Fq = this.Re.e().width / 2, !0) : !1
- },
- Lb: function(c) {
- f.Nc.prototype.Lb.call(this, c);
- this.mm && this.mm.J(c ? 255 : 128)
- },
- Kia: function(c) {
- var d = new f.TS;
- d.ll = 1;
- d.Vf = c.Vf;
- d.ga = 1;
- c = f.Eh.FT(d);
- this.Re.F(f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b))
- },
- $Ia: function(c) {
- this.nO(r(this.me.x + this.Ck + this.Fq * (1 - c.ll), this.me.y + this.Ck + this.Fq * c.ga))
- },
- nO: function(c) {
- var d = this.me.x + 0.5 * this.Re.Ee().width,
- e = this.me.y +
- 0.5 * this.Re.Ee().height,
- g = c.x - d,
- h = c.y - e,
- k = Math.sqrt(g * g + h * h),
- g = Math.atan2(h, g),
- h = 0.5 * this.Re.Ee().width;
- k > h && (c.x = d + h * Math.cos(g), c.y = e + h * Math.sin(g));
- this.mm.o(c);
- c.x < this.me.x + this.Ck ? c.x = this.me.x + this.Ck : c.x > this.me.x + this.Ck + this.Fq - 1 && (c.x = this.me.x + this.Ck + this.Fq - 1);
- c.y < this.me.y + this.Ck ? c.y = this.me.y + this.Ck : c.y > this.me.y + this.Ck + this.Fq && (c.y = this.me.y + this.Ck + this.Fq);
- this.$X = 1 - Math.abs((this.me.x + this.Ck - c.x) / this.Fq);
- this.iL = Math.abs((this.me.y + this.Ck - c.y) / this.Fq)
- },
- SE: function(c) {
- var d =
- this.me.x + 0.5 * this.Re.Ee().width,
- e = this.me.y + 0.5 * this.Re.Ee().height,
- d = c.x - d,
- e = c.y - e;
- return Math.sqrt(d * d + e * e) <= 0.5 * this.Re.Ee().width ? (this.nO(c), this.Di(f.ro), !0) : !1
- },
- rc: function(c) {
- if (!this.isEnabled() || !this.Na) return !1;
- c = this.Dp(c);
- return this.SE(c)
- },
- hd: function(c) {
- c = this.Dp(c);
- this.SE(c)
- }
- });
- q = f.NJ.prototype;
- f.d(q, "saturation", q.fBa);
- f.d(q, "brightness", q.Eza);
- f.d(q, "background", q.sH);
- f.d(q, "overlay", q.RAa);
- f.d(q, "shadow", q.kBa);
- f.d(q, "slider", q.n0);
- f.d(q, "startPos", q.p0);
- q = null;
- f.NJ.create = function(c, d) {
- var e = new f.NJ;
- e.K0(c, d);
- return e
- };
- f.MJ = f.Nc.extend({
- $z: 0,
- EF: 0,
- Re: null,
- mm: null,
- me: null,
- ta: "ControlHuePicker",
- dAa: function() {
- return this.$z
- },
- kR: function(c) {
- this.$z = c;
- this.bha(this.$z / 360)
- },
- eAa: function() {
- return this.EF
- },
- bha: function(c) {
- this.EF = c;
- this.$z = 360 * this.EF;
- c = this.Re.Ee();
- var d = 0.5 * c.width - 15,
- e = f.sg(360 * this.EF - 180);
- this.mm.o(this.me.x + 0.5 * c.width + d * Math.cos(e), this.me.y + 0.5 * c.height + d * Math.sin(e))
- },
- Lb: function(c) {
- f.Nc.prototype.Lb.call(this, c);
- this.mm && this.mm.J(c ? 255 : 128)
- },
- sH: function() {
- return this.Re
- },
- n0: function() {
- return this.mm
- },
- p0: function() {
- return this.me
- },
- K0: function(c, d) {
- return f.Nc.prototype.j.call(this) ? (this.Re = f.Eh.$w("huePickerBackground.png", c, d, r(0, 0)), this.mm = f.Eh.$w("colourPicker.png", c, d, r(0.5, 0.5)), this.mm.o(d.x, d.y + 0.5 * this.Re.Ee().height), this.me = d, this.EF = this.$z = 0, !0) : !1
- },
- nO: function(c) {
- var d = this.Re.Ee();
- this.kR(f.yC(Math.atan2(c.y - (this.me.y + 0.5 * d.height), c.x - (this.me.x + 0.5 * d.width))) + 180);
- this.Di(f.ro)
- },
- SE: function(c) {
- var d = Math.sqrt(Math.pow(c.x + 10, 2) + Math.pow(c.y, 2));
- return 80 > d && 59 < d ? (this.nO(c), !0) : !1
- },
- rc: function(c) {
- if (!this.isEnabled() || !this.Na) return !1;
- c = this.Dp(c);
- return this.SE(c)
- },
- hd: function(c) {
- c = this.Dp(c);
- this.SE(c)
- }
- });
- q = f.MJ.prototype;
- f.d(q, "hue", q.dAa, q.kR);
- f.d(q, "huePercent", q.eAa, q.bha);
- f.d(q, "background", q.sH);
- f.d(q, "slider", q.n0);
- f.d(q, "startPos", q.p0);
- q = null;
- f.MJ.create = function(c, d) {
- var e = new f.MJ;
- e.K0(c, d);
- return e
- };
- f.xS = f.Nc.extend({
- Zl: null,
- Xs: null,
- Sv: null,
- Re: null,
- ta: "ControlColourPicker",
- cCa: function(c) {
- this.Zl.Vf = c.$z;
- c = f.Eh.FT(this.Zl);
- f.Nc.prototype.F.call(this, f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b));
- this.Di(f.ro);
- this.uva()
- },
- Zwa: function(c) {
- this.Zl.ll = c.$X;
- this.Zl.ga = c.iL;
- c = f.Eh.FT(this.Zl);
- f.Nc.prototype.F.call(this, f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b));
- this.Di(f.ro)
- },
- F: function(c) {
- f.Nc.prototype.F.call(this, c);
- var d = new Ea;
- d.r = c.r / 255;
- d.g = c.g / 255;
- d.b = c.b / 255;
- d.a = 1;
- this.Zl = f.Eh.Nla(d);
- this.Dba()
- },
- sH: function() {
- return this.Re
- },
- j: function() {
- if (f.Nc.prototype.j.call(this)) {
- f.Je.vp(Ha.f4);
- var c = f.Fh.create(Ha.g4);
- this.n(c);
- this.Zl = new f.TS(0, 0, 0);
- this.Re = f.Eh.$w("menuColourPanelBackground.png", c, r(0, 0), r(0.5, 0.5));
- var d = f.gc(this.Re.Od(), r(this.Re.e().width / 2, this.Re.e().height / 2));
- this.Sv = f.MJ.create(c, r(d.x + 8, d.y + 8));
- this.Xs = f.NJ.create(c, r(d.x + 28, d.y + 28));
- this.Sv.VG(this, this.cCa, f.ro);
- this.Xs.VG(this, this.Zwa, f.ro);
- this.Dba();
- this.n(this.Sv);
- this.n(this.Xs);
- this.Ga(this.Re.e());
- return !0
- }
- return !1
- },
- uva: function() {
- this.Sv.kR(this.Zl.Vf);
- this.Xs.Kia(this.Zl)
- },
- Dba: function() {
- this.Sv.kR(this.Zl.Vf);
- this.Xs.Kia(this.Zl);
- this.Xs.$Ia(this.Zl)
- },
- Lb: function(c) {
- f.Nc.prototype.Lb.call(this, c);
- null != this.Sv && this.Sv.Lb(c);
- this.Xs && this.Xs.Lb(c)
- },
- rc: function() {
- return !1
- }
- });
- q = f.xS.prototype;
- f.d(q, "background", q.sH);
- q = null;
- f.xS.create = function() {
- var c = new f.xS;
- c.j();
- return c
- };
- var Ha = Ha || {};
- Ha.f4 = Ha.f4 || "res/extensions/CCControlColourPickerSpriteSheet.plist";
- Ha.g4 = Ha.g4 || "res/extensions/CCControlColourPickerSpriteSheet.png";
- f.f7 = 24;
- f.xMa = 8;
- f.zS = f.Nc.extend({
- Kd: 0,
- Ub: 0,
- tc: 0,
- QM: 0,
- OM: 0,
- yc: null,
- Ft: null,
- Ih: null,
- ta: "ControlSlider",
- Uf: function() {
- return this.Kd
- },
- ue: function(c) {
- c = Math.max(c, this.Ub);
- this.Kd = c = Math.min(c, this.tc);
- this.Xf();
- this.Di(f.ro)
- },
- yH: function() {
- return this.Ub
- },
- SI: function(c) {
- this.QM = this.Ub = c;
- this.Ub >= this.tc && (this.tc = this.Ub + 1);
- this.ue(this.Kd)
- },
- xH: function() {
- return this.tc
- },
- RI: function(c) {
- this.OM = this.tc = c;
- this.tc <= this.Ub && (this.Ub = this.tc - 1);
- this.ue(this.Kd)
- },
- Yn: function(c) {
- c = c.cf();
- c = this.getParent().yi(c);
- var d =
- this.Ee();
- d.width += this.yc.e().width;
- d.x -= this.yc.e().width / 2;
- return f.Bu(d, c)
- },
- Jx: function(c) {
- c = c.cf();
- c = this.yi(c);
- 0 > c.x ? c.x = 0 : c.x > this.Ih.e().width && (c.x = this.Ih.e().width);
- return c
- },
- DAa: function() {
- return this.QM
- },
- iHa: function(c) {
- this.QM = c
- },
- BAa: function() {
- return this.OM
- },
- gHa: function(c) {
- this.OM = c
- },
- FH: function() {
- return this.yc
- },
- XAa: function() {
- return this.Ft
- },
- zza: function() {
- return this.Ih
- },
- BCa: function(c, d, e) {
- return f.Nc.prototype.j.call(this) ? (this.Gm(!1), this.Ih = c, this.Ft = d, this.yc = e, c = f.Eh.h4(c.Ee(),
- e.Ee()), this.Ga(c.width, c.height), this.Ih.S(0.5, 0.5), this.Ih.o(c.width / 2, c.height / 2), this.n(this.Ih), this.Ft.S(0, 0.5), this.Ft.o(0, c.height / 2), this.n(this.Ft), this.yc.o(0, c.height / 2), this.n(this.yc), this.Ub = 0, this.tc = 1, this.ue(this.Ub), !0) : !1
- },
- Lb: function(c) {
- f.Nc.prototype.Lb.call(this, c);
- this.yc && this.yc.J(c ? 255 : 128)
- },
- eIa: function(c) {
- this.Nu(!0);
- this.yc.F(f.color.GRAY);
- this.ue(this.G3(c))
- },
- gIa: function(c) {
- this.ue(this.G3(c))
- },
- fIa: function() {
- this.WP() && this.ue(this.G3(this.yc.Od()));
- this.yc.F(f.color.WHITE);
- this.Nu(!1)
- },
- xWa: function(c) {
- c = c.cf();
- c = this.yi(c);
- 0 > c.x ? c.x = 0 : c.x > this.Ih.e().width + f.f7 && (c.x = this.Ih.e().width + f.f7);
- return c
- },
- rc: function(c) {
- if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1;
- c = this.Jx(c);
- this.eIa(c);
- return !0
- },
- hd: function(c) {
- c = this.Jx(c);
- this.gIa(c)
- },
- gd: function() {
- this.fIa(r(0, 0))
- },
- Xf: function() {
- this.yc.ls((this.Kd - this.Ub) / (this.tc - this.Ub) * this.Ih.e().width);
- var c = this.Ft.EH(),
- c = x(c.x, c.y, this.yc.Vc(), c.height);
- this.Ft.sc(c, this.Ft.pf)
- },
- G3: function(c) {
- c = c.x / this.Ih.e().width;
- return Math.max(Math.min(this.Ub + c * (this.tc - this.Ub), this.OM), this.QM)
- }
- });
- q = f.zS.prototype;
- f.d(q, "value", q.Uf, q.ue);
- f.d(q, "minValue", q.yH, q.SI);
- f.d(q, "maxValue", q.xH, q.RI);
- f.d(q, "minAllowedValue", q.DAa, q.iHa);
- f.d(q, "maxAllowedValue", q.BAa, q.gHa);
- f.d(q, "thumbSprite", q.FH);
- f.d(q, "progressSprite", q.XAa);
- f.d(q, "backgroundSprite", q.zza);
- q = null;
- f.zS.create = function(c, d, e) {
- "string" == typeof c && (c = f.q.create(c), d = f.q.create(d), e = f.q.create(e));
- var g = new f.zS;
- g.BCa(c, d, e);
- return g
- };
- f.R4 = f.Nc.extend({
- Mf: null,
- A$: 0,
- OF: !1,
- tA: !1,
- ta: "ControlSwitch",
- ctor: function() {
- f.Nc.prototype.ctor.call(this)
- },
- G0: function(c, d, e, g, h, k) {
- if (!c) throw "cc.ControlSwitch.initWithMaskSprite(): maskSprite should be non-null.";
- if (!d) throw "cc.ControlSwitch.initWithMaskSprite(): onSprite should be non-null.";
- if (!e) throw "cc.ControlSwitch.initWithMaskSprite(): offSprite should be non-null.";
- if (!g) throw "cc.ControlSwitch.initWithMaskSprite(): thumbSprite should be non-null.";
- return this.j() ? (this.tA = !0, this.Mf =
- new f.S4, this.Mf.G0(c, d, e, g, h, k), this.Mf.o(this.Mf.e().width / 2, this.Mf.e().height / 2), this.n(this.Mf), this.Gm(!1), this.S(0.5, 0.5), this.Ga(this.Mf.e()), !0) : !1
- },
- oR: function(c, d) {
- var e = (this.tA = c) ? this.Mf.At : this.Mf.kw;
- d ? this.Mf.V(f.Xu.create(0.2, "sliderXPosition", this.Mf.or, e)) : this.Mf.wR(e);
- this.Di(f.ro)
- },
- NXa: function() {
- return this.tA
- },
- XWa: function() {
- return this.OF
- },
- Lb: function(c) {
- this.$c = c;
- this.Mf.J(c ? 255 : 128)
- },
- Jx: function(c) {
- c = c.cf();
- return c = this.yi(c)
- },
- rc: function(c) {
- if (!this.Yn(c) || !this.isEnabled() ||
- !this.Na) return !1;
- this.OF = !1;
- this.A$ = this.Jx(c).x - this.Mf.or;
- this.Mf.yc.F(f.color.GRAY);
- this.Mf.Xf();
- return !0
- },
- hd: function(c) {
- c = this.Jx(c);
- c = r(c.x - this.A$, 0);
- this.OF = !0;
- this.Mf.wR(c.x)
- },
- gd: function(c) {
- c = this.Jx(c);
- this.Mf.yc.F(f.color.WHITE);
- this.OF ? this.oR(!(c.x < this.Mf.e().width / 2), !0) : this.oR(!this.tA, !0)
- },
- ef: function(c) {
- c = this.Jx(c);
- this.Mf.yc.F(f.color.WHITE);
- this.OF ? this.oR(!(c.x < this.Mf.e().width / 2), !0) : this.oR(!this.tA, !0)
- }
- });
- f.R4.create = function(c, d, e, g, h, k) {
- var m = new f.R4;
- return m && m.G0(c, d, e, g, h, k) ? m : null
- };
- f.S4 = f.q.extend({
- or: 0,
- At: 0,
- kw: 0,
- pba: 0,
- ZW: 0,
- $W: null,
- un: null,
- fr: null,
- yc: null,
- VF: null,
- TF: null,
- xz: null,
- Wd: null,
- L8: null,
- ctor: function() {
- f.q.prototype.ctor.call(this);
- this.ZW = this.kw = this.At = this.or = 0;
- this.$W = t(0, 0);
- this.TF = this.VF = this.yc = this.fr = this.un = null
- },
- G0: function(c, d, e, g, h, k) {
- return f.q.prototype.va.call(this, c.sb()) ? (this.At = 0, this.kw = -d.e().width + g.e().width / 2, this.or = this.At, this.rha(d), this.pha(e), this.$I(g), this.qha(h), this.oha(k), this.Wd = c, c = this.$W = this.Wd.e(), this.Wd.o(0, 0), this.xz = f.Wc.create(),
- this.xz.S(0.5, 0.5), this.xz.o(c.width / 2, c.height / 2), this.xz.yR(this.Wd), this.L8 = f.nv.create(c.width, c.height), this.xz.n(this.L8.o0()), this.n(this.xz), this.n(this.yc), this.Xf(), !0) : !1
- },
- Xf: function() {
- this.un.o(this.un.e().width / 2 + this.or, this.un.e().height / 2);
- this.fr.o(this.un.e().width + this.fr.e().width / 2 + this.or, this.fr.e().height / 2);
- this.VF && this.VF.o(this.un.Vc() - this.yc.e().width / 6, this.un.e().height / 2);
- this.TF && this.TF.o(this.fr.Vc() + this.yc.e().width / 6, this.fr.e().height / 2);
- this.yc.o(this.un.e().width +
- this.or, this.$W.height / 2)
- },
- wR: function(c) {
- c <= this.kw ? c = this.kw : c >= this.At && (c = this.At);
- this.or = c;
- this.Xf()
- },
- nBa: function() {
- return this.or
- },
- Xra: function() {
- return this.un.e().width
- },
- Ura: function() {
- return this.fr.e().height
- },
- D3: function(c, d) {
- f.log("key \x3d " + d + ", value \x3d " + c);
- this.wR(c)
- },
- pHa: function(c) {
- this.At = c
- },
- OAa: function() {
- return this.At
- },
- oHa: function(c) {
- this.kw = c
- },
- LAa: function() {
- return this.kw
- },
- dHa: function(c) {
- this.Wd.ab(c)
- },
- xAa: function() {
- return this.Wd.sb()
- },
- u4a: function(c) {
- this.pba = c
- },
- jWa: function() {
- return this.pba
- },
- cHa: function(c) {
- this.ZW = c
- },
- wAa: function() {
- return this.ZW
- },
- rha: function(c) {
- this.un = c
- },
- PAa: function() {
- return this.un
- },
- pha: function(c) {
- this.fr = c
- },
- MAa: function() {
- return this.fr
- },
- $I: function(c) {
- this.yc = c
- },
- FH: function() {
- return this.yc
- },
- qha: function(c) {
- this.VF = c
- },
- NAa: function() {
- return this.VF
- },
- oha: function(c) {
- this.TF = c
- },
- KAa: function() {
- return this.TF
- }
- });
- q = f.S4.prototype;
- f.d(q, "sliderX", q.nBa, q.wR);
- f.d(q, "onPos", q.OAa, q.pHa);
- f.d(q, "offPos", q.LAa, q.oHa);
- f.d(q, "maskTexture", q.xAa, q.dHa);
- f.d(q, "maskPos", q.wAa, q.cHa);
- f.d(q, "onSprite", q.PAa, q.rha);
- f.d(q, "offSprite", q.MAa, q.pha);
- f.d(q, "thumbSprite", q.FH, q.$I);
- f.d(q, "onLabel", q.NAa, q.qha);
- f.d(q, "offLabel", q.KAa, q.oha);
- f.d(q, "onSideWidth", q.Xra);
- f.d(q, "offSideWidth", q.Ura);
- q = null;
- f.I4 = 0;
- f.J4 = 1;
- f.GJ = 2;
- f.qD = f.color(55, 55, 55);
- f.uS = f.color(147, 147, 147);
- f.H4 = "CourierNewPSMT";
- f.L3 = 0.15;
- f.Via = 12;
- f.AS = f.Nc.extend({
- ih: null,
- Xi: null,
- wt: null,
- Dt: null,
- Kd: 0,
- $E: !1,
- fz: !1,
- eu: !1,
- Ub: 0,
- tc: 0,
- Qt: 0,
- GG: !1,
- Qw: f.GJ,
- JE: 0,
- ta: "ControlStepper",
- ctor: function() {
- f.Nc.prototype.ctor.call(this);
- this.Dt = this.wt = this.Xi = this.ih = null;
- this.Kd = 0;
- this.eu = this.fz = this.$E = !1;
- this.Qt = this.tc = this.Ub = 0;
- this.GG = !1;
- this.Qw = f.GJ;
- this.JE = 0
- },
- vCa: function(c, d) {
- if (!c) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Minus sprite should be non-null.";
- if (!d) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Plus sprite should be non-null.";
- if (this.j()) {
- this.$E = this.fz = !0;
- this.Ub = 0;
- this.tc = 100;
- this.Kd = 0;
- this.Qt = 1;
- this.eu = !1;
- this.Gm(!1);
- this.lha(c);
- this.ih.o(c.e().width / 2, c.e().height / 2);
- this.n(this.ih);
- this.kha(f.ia.create("-", f.H4, 40, t(40, 40), f.Bo, f.wU));
- this.wt.F(f.uS);
- this.wt.o(this.ih.e().width / 2, this.ih.e().height / 2);
- this.ih.n(this.wt);
- this.vha(d);
- this.Xi.o(c.e().width + d.e().width / 2, c.e().height / 2);
- this.n(this.Xi);
- this.uha(f.ia.create("+", f.H4, 40, t(40, 40), f.Bo, f.wU));
- this.Dt.F(f.qD);
- this.Dt.o(this.Xi.e().width / 2, this.Xi.e().height /
- 2);
- this.Xi.n(this.Dt);
- var e = f.Eh.h4(this.ih.Ee(), this.Xi.Ee());
- this.Ga(this.ih.e().width + this.Xi.e().height, e.height);
- return !0
- }
- return !1
- },
- $Ha: function(c) {
- if (this.eu = c) this.wt.F(f.qD), this.Dt.F(f.qD);
- this.ue(this.Kd)
- },
- SBa: function() {
- return this.eu
- },
- SI: function(c) {
- if (c >= this.tc) throw "cc.ControlStepper.setMinimumValue(): minimumValue should be numerically less than maximumValue.";
- this.Ub = c;
- this.ue(this.Kd)
- },
- yH: function() {
- return this.Ub
- },
- RI: function(c) {
- if (c <= this.Ub) throw "cc.ControlStepper.setMaximumValue(): maximumValue should be numerically less than maximumValue.";
- this.tc = c;
- this.ue(this.Kd)
- },
- xH: function() {
- return this.tc
- },
- ue: function(c) {
- this.b3(c, !0)
- },
- Uf: function() {
- return this.Kd
- },
- OHa: function(c) {
- if (0 >= c) throw "cc.ControlStepper.setMaximumValue(): stepValue should be numerically greater than 0.";
- this.Qt = c
- },
- tBa: function() {
- return this.Qt
- },
- VCa: function() {
- return this.$E
- },
- b3: function(c, d) {
- c < this.Ub ? c = this.eu ? this.tc : this.Ub : c > this.tc && (c = this.eu ? this.Ub : this.tc);
- this.Kd = c;
- this.eu || (this.wt.F(c == this.Ub ? f.uS : f.qD), this.Dt.F(c == this.tc ? f.uS : f.qD));
- d && this.Di(f.ro)
- },
- mia: function() {
- this.JE = -1;
- this.Ux(this.update, f.L3, f.mv, 3 * f.L3)
- },
- oia: function() {
- this.Tu(this.update)
- },
- update: function() {
- this.JE++;
- this.JE < f.Via && 0 != this.JE % 3 || (this.Qw == f.I4 ? this.b3(this.Kd - this.Qt, this.$E) : this.Qw == f.J4 && this.b3(this.Kd + this.Qt, this.$E))
- },
- Fia: function(c) {
- c.x < this.ih.e().width && this.Kd > this.Ub ? (this.Qw = f.I4, this.ih.F(f.color.GRAY), this.Xi.F(f.color.WHITE)) : c.x >= this.ih.e().width && this.Kd < this.tc ? (this.Qw = f.J4, this.ih.F(f.color.WHITE), this.Xi.F(f.color.GRAY)) : (this.Qw = f.GJ, this.ih.F(f.color.WHITE),
- this.Xi.F(f.color.WHITE))
- },
- rc: function(c) {
- if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1;
- c = this.Dp(c);
- this.Fia(c);
- this.GG = !0;
- this.fz && this.mia();
- return !0
- },
- hd: function(c) {
- this.Yn(c) ? (c = this.Dp(c), this.Fia(c), this.GG || (this.GG = !0, this.fz && this.mia())) : (this.GG = !1, this.Qw = f.GJ, this.ih.F(f.color.WHITE), this.Xi.F(f.color.WHITE), this.fz && this.oia())
- },
- gd: function(c) {
- this.ih.F(f.color.WHITE);
- this.Xi.F(f.color.WHITE);
- this.fz && this.oia();
- this.Yn(c) && (c = this.Dp(c), this.ue(this.Kd + (c.x < this.ih.e().width ?
- 0 - this.Qt : this.Qt)))
- },
- lha: function(c) {
- this.ih = c
- },
- FAa: function() {
- return this.ih
- },
- vha: function(c) {
- this.Xi = c
- },
- UAa: function() {
- return this.Xi
- },
- kha: function(c) {
- this.wt = c
- },
- EAa: function() {
- return this.wt
- },
- uha: function(c) {
- this.Dt = c
- },
- TAa: function() {
- return this.Dt
- }
- });
- q = f.AS.prototype;
- f.d(q, "wraps", q.SBa, q.$Ha);
- f.d(q, "value", q.Uf, q.ue);
- f.d(q, "minValue", q.yH, q.SI);
- f.d(q, "maxValue", q.xH, q.RI);
- f.d(q, "stepValue", q.tBa, q.OHa);
- f.d(q, "continuous", q.VCa);
- f.d(q, "minusSprite", q.FAa, q.lha);
- f.d(q, "plusSprite", q.UAa, q.vha);
- f.d(q, "minusLabel", q.EAa, q.kha);
- f.d(q, "plusLabel", q.TAa, q.uha);
- q = null;
- f.AS.create = function(c, d) {
- var e = new f.AS;
- return e && e.vCa(c, d) ? e : null
- };
- f.yS = f.Nc.extend({
- yc: null,
- FA: null,
- DA: null,
- Kd: 0,
- Ub: 0,
- tc: 1,
- ta: "ControlPotentiometer",
- GCa: function(c, d, e) {
- return this.j() ? (this.xha(d), this.$I(e), this.yc.o(d.Od()), this.n(e, 2), this.n(d, 1), this.n(c), this.Ga(c.e()), this.Ub = 0, this.tc = 1, this.ue(this.Ub), !0) : !1
- },
- Lb: function(c) {
- this.Lb(c);
- this.yc != NULL && this.yc.J(c ? 255 : 128)
- },
- ue: function(c) {
- c < this.Ub && (c = this.Ub);
- c > this.tc && (c = this.tc);
- this.Kd = c;
- c = (c - this.Ub) / (this.tc - this.Ub);
- this.FA.tha(100 * c);
- this.yc.yh(360 * c);
- this.Di(f.ro)
- },
- Uf: function() {
- return this.Kd
- },
- SI: function(c) {
- this.Ub = c;
- this.Ub >= this.tc && (this.tc = this.Ub + 1);
- this.ue(this.tc)
- },
- yH: function() {
- return this.Ub
- },
- RI: function(c) {
- this.tc = c;
- this.tc <= this.Ub && (this.Ub = this.tc - 1);
- this.ue(this.Ub)
- },
- xH: function() {
- return this.tc
- },
- Yn: function(c) {
- c = this.Dp(c);
- return this.Xxa(this.FA.Od(), c) < Math.min(this.e().width / 2, this.e().height / 2)
- },
- rc: function(c) {
- if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1;
- this.DA = this.Dp(c);
- this.hFa(this.DA);
- return !0
- },
- hd: function(c) {
- c = this.Dp(c);
- this.jFa(c)
- },
- gd: function() {
- this.iFa(r(0,
- 0))
- },
- Xxa: function(c, d) {
- var e = c.x - d.x,
- g = c.y - d.y;
- return Math.sqrt(e * e + g * g)
- },
- dwa: function(c, d, e, g) {
- return 180 * (Math.atan2(d.x - c.x, d.y - c.y) - Math.atan2(g.x - e.x, g.y - e.y)) / Math.PI
- },
- hFa: function() {
- this.Nu(!0);
- this.yc.F(f.color.GRAY)
- },
- jFa: function(c) {
- var d = this.dwa(this.FA.Od(), c, this.FA.Od(), this.DA);
- 180 < d ? d -= 360 : -180 > d && (d += 360);
- this.ue(this.Kd + d / 360 * (this.tc - this.Ub));
- this.DA = c
- },
- iFa: function() {
- this.yc.F(f.color.WHITE);
- this.Nu(!1)
- },
- $I: function(c) {
- this.yc = c
- },
- FH: function() {
- return this.yc
- },
- xha: function(c) {
- this.FA =
- c
- },
- YAa: function() {
- return this.FA
- },
- xHa: function(c) {
- this.DA = c
- },
- qP: function() {
- return this.DA
- }
- });
- q = f.yS.prototype;
- f.d(q, "value", q.Uf, q.ue);
- f.d(q, "minValue", q.yH, q.SI);
- f.d(q, "maxValue", q.xH, q.RI);
- f.d(q, "progressTimer", q.YAa, q.xha);
- f.d(q, "thumbSprite", q.FH, q.$I);
- f.d(q, "prevLocation", q.qP, q.xHa);
- q = null;
- f.yS.create = function(c, d, e) {
- var g = new f.yS;
- return g && (c = f.q.create(c), e = f.q.create(e), d = f.bc.create(f.q.create(d)), g.GCa(c, d, e)) ? g : null
- };
- f.b7 = -1;
- f.Sy = 0;
- f.rK = 1;
- f.qK = 2;
- f.exa = function(c) {
- var d = f.view;
- return (d.ka + d.ra) / 2 * c / 160
- };
- f.Yna = f.N.extend({
- jGa: function() {},
- kGa: function() {}
- });
- f.Nl = f.Me.extend({
- gPa: 0,
- COa: 0,
- AOa: 0,
- Pq: null,
- Oh: f.qK,
- en: !1,
- Sqa: null,
- Va: null,
- rm: !1,
- NM: null,
- PM: null,
- ME: !1,
- VE: !1,
- jG: null,
- dB: null,
- HG: 0,
- Of: null,
- Mn: null,
- baa: 0,
- aaa: 0,
- XF: null,
- aY: !1,
- rba: null,
- vi: null,
- ta: "ScrollView",
- ctor: function() {
- f.Me.prototype.ctor.call(this);
- this.Sqa = r(0, 0);
- this.NM = r(0, 0);
- this.PM = r(0, 0);
- this.jG = r(0, 0);
- this.dB = r(0, 0);
- this.Of = [];
- this.Mn = t(0, 0);
- this.XF = new f.Qy(0, 0, 0, 0);
- this.rba = new f.Qy(0, 0, 0, 0)
- },
- j: function() {
- return this.TH(t(200, 200), null)
- },
- TH: function(c, d) {
- var e = r(0, 0);
- return f.Me.prototype.j.call(this) ?
- (this.Va = d, this.Va || (this.Va = f.Me.create(), this.Va.Gm(!1), this.Va.S(e)), this.FR(c), this.Om(!0), this.Of.length = 0, this.Pq = null, this.VE = this.ME = !0, this.Oh = f.qK, this.Va.o(e), this.HG = 0, this.n(this.Va), this.baa = this.aaa = 1, !0) : !1
- },
- EC: function(c, d) {
- if (d) this.JGa(c, 0.15);
- else {
- if (!this.ME) {
- var e = this.Vr(),
- g = this.xu();
- c.x = Math.max(e.x, Math.min(g.x, c.x));
- c.y = Math.max(e.y, Math.min(g.y, c.y))
- }
- this.Va.o(c)
- }
- },
- Jza: function() {
- var c = this.Va.Od();
- return r(c.x, c.y)
- },
- JGa: function(c, d) {
- var e = f.Dc.create(d, c),
- g = f.ua.create(this.gva,
- this);
- this.Va.V(f.X.create(e, g));
- this.Ux(this.uX)
- },
- aia: function(c, d) {
- if (d) this.aIa(c, 0.15);
- else {
- var e = this.Va;
- if (e.AH() != c) {
- var g, h;
- 0 == this.HG ? (h = this.Mn, h = r(0.5 * h.width, 0.5 * h.height), h = this.um(h)) : h = this.dB;
- g = e.yi(h);
- e.ib(Math.max(this.baa, Math.min(this.aaa, c)));
- g = e.um(g);
- this.EC(f.Tp(e.Od(), f.gc(h, g)))
- }
- }
- },
- hea: function() {
- return this.Va.AH()
- },
- aIa: function(c, d) {
- if (0 < d) {
- var e = this.Va.AH();
- e != c && (e = f.Xu.create(d, "zoomScale", e, c), this.V(e))
- } else this.aia(c)
- },
- Vr: function() {
- var c = this.Va,
- d = c.e(),
- e = this.Mn;
- return r(e.width - d.width * c.ka, e.height - d.height * c.ra)
- },
- xu: function() {
- return r(0, 0)
- },
- MXa: function(c) {
- var d = this.Jza(),
- e = this.Mn,
- g = this.hea();
- return f.BFa(x(-d.x / g, -d.y / g, e.width / g, e.height / g), c.Ee())
- },
- pause: function() {
- this.Va.pause();
- for (var c = this.Va.re(), d = 0; d < c.length; d++) c[d].pause();
- this._super()
- },
- lk: function() {
- for (var c = this.Va.re(), d = 0, e = c.length; d < e; d++) c[d].lk();
- this.Va.lk();
- this._super()
- },
- BXa: function() {
- return this.en
- },
- $Xa: function() {
- return this.rm
- },
- QCa: function() {
- return this.ME
- },
- Hga: function(c) {
- this.ME =
- c
- },
- PBa: function() {
- return this.Mn
- },
- FR: function(c) {
- this.Mn = c;
- f.v.prototype.Ga.call(this, c)
- },
- Iza: function() {
- return this.Va
- },
- Pga: function(c) {
- c && (this.Cf(!0), this.Va = c, c.Gm(!1), c.S(0, 0), this.n(c), this.FR(this.Mn))
- },
- OB: function() {
- return this.Oh
- },
- xh: function(c) {
- this.Oh = c
- },
- NB: function() {
- return this.Pq
- },
- $p: function(c) {
- this.Pq = c
- },
- rc: function(c) {
- if (!this.Na) return !1;
- var d = this.DW(),
- e = this.Va,
- g = e.um(e.yp(c)),
- h = this.Of;
- if (2 < h.length || this.rm || !f.Bu(d, g)) return !1;
- h.push(c);
- 1 === h.length ? (this.dB = this.yp(c), this.rm = !1, this.en = !0, this.jG.x = 0, this.HG = this.jG.y = 0) : 2 == h.length && (this.dB = f.A1(this.yp(h[0]), this.yp(h[1])), this.HG = f.Hfa(e.yp(h[0]), e.yp(h[1])), this.en = !1);
- return !0
- },
- hd: function(c) {
- if (this.Na)
- if (1 === this.Of.length && this.en) {
- this.rm = !0;
- this.DW();
- var d = this.yp(c);
- c = f.gc(d, this.dB);
- var e = 0,
- g = this.Oh,
- h;
- if (g === f.rK) e = c.y, h = this.Va.Zd(), this.Vr().y <= h && h <= this.xu().y || (c.y *= 0.35);
- else if (g === f.Sy) e = c.x, h = this.Va.Vc(), this.Vr().x <= h && h <= this.xu().x || (c.x *= 0.35);
- else {
- e = Math.sqrt(c.x * c.x + c.y * c.y);
- h = this.Va.Zd();
- var k = this.Vr(),
- m = this.xu();
- k.y <= h && h <= m.y || (c.y *= 0.35);
- h = this.Va.Vc();
- k.x <= h && h <= m.x || (c.x *= 0.35)
- } if (this.rm || !(0.04375 > Math.abs(f.exa(e))))
- if (this.rm || (c.x = 0, c.y = 0), this.dB = d, this.rm = !0, this.en) {
- switch (g) {
- case f.rK:
- c.x = 0;
- break;
- case f.Sy:
- c.y = 0
- }
- e = this.Va.Od();
- d = e.x + c.x;
- e = e.y + c.y;
- this.jG = c;
- this.EC(r(d, e))
- }
- } else 2 !== this.Of.length || this.en || (c = f.Hfa(this.Va.yp(this.Of[0]), this.Va.yp(this.Of[1])), this.aia(this.hea() * c / this.HG))
- },
- gd: function() {
- this.Na && (1 == this.Of.length && this.rm && this.Ux(this.EV), this.Of.length =
- 0, this.rm = this.en = !1)
- },
- ef: function() {
- this.Na && (this.Of.length = 0, this.rm = this.en = !1)
- },
- Ga: function(c, d) {
- null != this.Va && (void 0 === d ? this.Va.Ga(c) : this.Va.Ga(c, d), this.PR())
- },
- Uh: function(c) {
- var d = this.Va;
- null != d && (d.Uh(c), this.PR())
- },
- Th: function(c) {
- var d = this.Va;
- null != d && (d.Th(c), this.PR())
- },
- e: function() {
- return this.Va.e()
- },
- PR: function() {
- if (null != this.Va) {
- var c = this.Mn,
- d = this.xu();
- this.NM.x = d.x + 0.2 * c.width;
- this.NM.y = d.y + 0.2 * c.height;
- d = this.Vr();
- this.PM.x = d.x - 0.2 * c.width;
- this.PM.y = d.y - 0.2 * c.height
- }
- },
- TCa: function() {
- return this.VE
- },
- Nga: function(c) {
- this.VE = c
- },
- I: function(c) {
- if (this.Na) {
- c = c || f.s;
- var d, e = this.i,
- g, h;
- if (f.K === f.fb) {
- c.save();
- this.transform(c);
- this.M8(c);
- if (e && 0 < e.length) {
- h = e.length;
- this.kd();
- for (d = 0; d < h; d++)
- if ((g = e[d]) && 0 > g.Ya) g.I(c);
- else break;
- for (this.ma(c); d < h; d++) e[d].I(c)
- } else this.ma(c);
- this.C8();
- c.restore()
- } else {
- f.Rr();
- var k = this.grid;
- k && k.Bi() && (k.dx(), this.mJ());
- this.transform(c);
- this.M8(c);
- if (e && 0 < e.length) {
- h = e.length;
- for (d = 0; d < h; d++)
- if ((g = e[d]) && 0 > g.Ya) g.I();
- else break;
- for (this.ma(c); d < h; d++) e[d].I()
- } else this.ma(c);
- this.C8(c);
- k && k.Bi() && k.ax(this);
- f.Qr()
- }
- }
- },
- n: function(c, d, e) {
- if (!c) throw Error("child must not nil!");
- d = d || c.Ya;
- e = e || c.Em();
- this.Va != c ? this.Va.n(c, d, e) : f.Me.prototype.n.call(this, c, d, e)
- },
- U0: function() {
- return null != this.vi
- },
- Om: function(c) {
- this.vi && f.Qa.removeListener(this.vi);
- this.vi = null;
- c ? (c = f.Xa.create({
- event: f.Xa.zs
- }), this.rc && (c.rc = this.rc.bind(this)), this.hd && (c.hd = this.hd.bind(this)), this.gd && (c.gd = this.gd.bind(this)), this.ef && (c.ef = this.ef.bind(this)), this.vi = c, f.Qa.addListener(c, this)) : (this.rm =
- this.en = !1, this.Of.length = 0)
- },
- pOa: function() {
- return null
- },
- Sta: function(c) {
- var d = this.Vr(),
- e = this.xu(),
- g = this.Oh,
- h = this.Va.Od(),
- k = h.x,
- m = h.y;
- if (g === f.qK || g === f.Sy) k = Math.max(k, d.x), k = Math.min(k, e.x);
- if (g == f.qK || g == f.rK) m = Math.min(m, e.y), m = Math.max(m, d.y);
- m == h.y && k == h.x || this.EC(r(k, m), c)
- },
- EV: function() {
- if (this.en) this.Tu(this.EV);
- else {
- var c, d;
- c = this.Va.Od();
- var e = this.jG;
- this.Va.o(c.x + e.x, c.y + e.y);
- this.ME ? (c = this.NM, d = this.PM) : (c = this.xu(), d = this.Vr());
- var g = this.Va.Vc(),
- h = this.Va.Zd();
- e.x *= 0.95;
- e.y *=
- 0.95;
- this.EC(r(g, h));
- if (1 >= Math.abs(e.x) && 1 >= Math.abs(e.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.Tu(this.EV), this.Sta(!0)
- }
- },
- uX: function() {
- this.en && this.Tu(this.uX)
- },
- gva: function() {
- this.Tu(this.uX)
- },
- M8: function(c) {
- if (this.VE) {
- this.aY = !1;
- var d = this.DW(),
- e = f.view,
- g = this.ka,
- h = this.ra;
- c = c || f.s;
- if (f.K === f.fb) d = this.Mn.width * g * e.ka, e = this.Mn.height * h * e.ra, c.beginPath(), c.rect(0, 0, d, -e), c.clip(), c.closePath();
- else if (e = f.view, e.dDa()) {
- if (this.aY = !0, this.XF = e.gBa(), f.AFa(d, this.XF)) {
- var k =
- this.XF;
- c = Math.max(d.x, k.x);
- h = Math.max(d.y, k.y);
- g = Math.min(d.x + d.width, k.x + k.width);
- d = Math.min(d.y + d.height, k.y + k.height);
- e.vR(c, h, g - c, d - h)
- }
- } else c.enable(c.SCISSOR_TEST), e.vR(d.x, d.y, d.width, d.height)
- }
- },
- C8: function(c) {
- this.VE && f.K === f.na && (this.aY ? (c = this.XF, f.view.vR(c.x, c.y, c.width, c.height)) : (c = c || f.s, c.disable(c.SCISSOR_TEST)))
- },
- nOa: function() {},
- DW: function() {
- for (var c = this.um(r(0, 0)), d = this.Mn, e = this.ka, g = this.ra, h = this.Yb; null != h; h = h.getParent()) e *= h.ka, g *= h.ra;
- 0 > e && (c.x += d.width * e, e = -e);
- 0 >
- g && (c.y += d.height * g, g = -g);
- h = this.rba;
- h.x = c.x;
- h.y = c.y;
- h.width = d.width * e;
- h.height = d.height * g;
- return h
- }
- });
- q = f.Nl.prototype;
- f.d(q, "minOffset", q.Vr);
- f.d(q, "maxOffset", q.xu);
- f.d(q, "bounceable", q.QCa, q.Hga);
- f.d(q, "viewSize", q.PBa, q.FR);
- f.d(q, "container", q.Iza, q.Pga);
- f.d(q, "direction", q.OB, q.xh);
- f.d(q, "delegate", q.NB, q.$p);
- f.d(q, "clippingToBounds", q.TCa, q.Nga);
- q = null;
- f.Nl.create = function(c, d) {
- var e = new f.Nl;
- if (2 == arguments.length) {
- if (e && e.TH(c, d)) return e
- } else if (e && e.j()) return e;
- return null
- };
- f.boa = f.N.extend({
- TI: function() {},
- Cm: function() {
- return 0
- }
- });
- f.coa = f.boa.extend({
- kX: 0,
- ctor: function() {
- this.kX = 0
- },
- TI: function(c) {
- this.kX = c
- },
- Cm: function() {
- return this.kX
- }
- });
- function Ka(c, d) {
- return c.Cm() - d.Cm()
- }
- f.VR = f.N.extend({
- Dn: null,
- ctor: function() {
- this.Dn = []
- },
- Hea: function(c) {
- if (!c) throw "cc.ArrayForObjectSorting.insertSortedObject(): addObject should be non-null.";
- this.KCa(c, this.XB(c))
- },
- UFa: function(c) {
- if (0 != this.count()) {
- var d = this.XB(c);
- d < this.count() && d != f.wo && this.Kx(d).Cm() == c.Cm() && this.Y1(d)
- }
- },
- K3a: function(c, d) {
- var e = this.XB(d);
- if (e < this.count() && e != f.wo) {
- var g = this.Kx(e);
- g.Cm() == d.Cm() && (this.Y1(e), g.TI(c), this.Hea(g))
- }
- },
- vfa: function(c) {
- if (0 == this.count()) return null;
- var d = new f.coa;
- d.TI(c);
- var e = this.XB(d);
- e < this.count() && e != f.wo && (d = this.Kx(e), d.Cm() != c && (d = null));
- return d
- },
- PUa: function() {
- return null
- },
- XB: function(c) {
- var d = 0;
- if (c) {
- var e = 0;
- c = c.Cm();
- for (var g = this.Dn, h = 0; h < g.length; h++) {
- var k = g[h].Cm();
- if (c == k || c >= e && c < k) break;
- e = k;
- d++
- }
- } else d = f.wo;
- return d
- },
- count: function() {
- return this.Dn.length
- },
- f_a: function() {
- var c = this.Dn;
- return 0 == c.length ? null : c[c.length - 1]
- },
- Kx: function(c) {
- return this.Dn[c]
- },
- Xba: function(c) {
- this.Dn.push(c);
- this.Dn.sort(Ka)
- },
- Y1: function(c) {
- this.Dn.splice(c, 1);
- this.Dn.sort(Ka)
- },
- KCa: function(c, d) {
- this.Dn.splice(d, 0, c);
- this.Dn.sort(Ka)
- }
- });
- f.m7 = 0;
- f.Ioa = 1;
- f.Toa = f.v.extend({
- Xq: 0,
- ta: "TableViewCell",
- eUa: function() {
- return this.Xq
- },
- VGa: function(c) {
- this.Xq = c
- },
- reset: function() {
- this.Xq = f.wo
- },
- TI: function(c) {
- this.Xq = c
- },
- Cm: function() {
- return this.Xq
- }
- });
- q = f.Toa.prototype;
- f.d(q, "objectId", q.Cm, q.TI);
- q = null;
- f.XMa = f.Yna.extend({
- o5a: function() {},
- n5a: function() {},
- p5a: function() {},
- q5a: function() {}
- });
- f.WMa = f.N.extend({
- xIa: function(c) {
- return this.Qwa(c)
- },
- Qwa: function() {
- return t(0, 0)
- },
- m5a: function() {
- return null
- },
- H_a: function() {
- return 0
- }
- });
- f.hU = f.Nl.extend({
- gB: null,
- Tb: null,
- sz: null,
- DV: null,
- QY: null,
- $M: null,
- oL: null,
- yr: null,
- ctor: function() {
- f.Nl.prototype.ctor.call(this);
- this.$M = f.b7;
- this.oL = []
- },
- Xpa: function(c) {
- var d = 0,
- e = -1;
- switch (this.OB()) {
- case f.Sy:
- c = c.x;
- break;
- default:
- c = c.y
- }
- for (var g = this.oL; e >= d;) {
- var h = 0 | d + (e - d) / 2,
- k = g[h],
- m = g[h + 1];
- if (c >= k && c <= m) return h;
- c < k ? e = h - 1 : d = h + 1
- }
- return 0 >= d ? 0 : -1
- },
- tsa: function(c) {
- c = {
- x: c.x,
- y: c.y
- };
- this.gB === f.m7 && (c.y = this.Va.e().height - c.y);
- c = this.Xpa(c); - 1 != c && (c = Math.max(0, c), -1 < c && (c = f.wo));
- return c
- },
- Ypa: function(c) {
- switch (this.OB()) {
- case f.Sy:
- c =
- r(this.oL[c], 0);
- break;
- default:
- c = r(0, this.oL[c])
- }
- return c
- },
- eta: function(c) {
- var d = this.Ypa(c);
- c = this.DV.xIa(this, c);
- this.gB === f.m7 && (d.y = this.Va.e().height - d.y - c.height);
- return d
- },
- cPa: function() {},
- ZY: function() {
- this.Ga(t(0, 0));
- this.$M != this.Oh && (this.Oh == f.Sy ? this.EC(r(0, 0)) : this.EC(r(0, this.Vr().y)), this.$M = this.Oh)
- },
- caa: function(c) {
- this.sz.Xba(c);
- this.Ts.UFa(c);
- f.Ld(this.Tb, c.Xq);
- c.reset();
- c.getParent() == this.Va && this.Va.removeChild(c, !0)
- },
- FN: function(c, d) {
- d.S(0, 0);
- d.o(this.eta(c));
- d.VGa(c)
- },
- y8: function(c) {
- c.getParent() !=
- this.Va && this.Va.n(c);
- this.Ts.Hea(c);
- var d = this.Tb;
- c = c.Xq; - 1 == d.indexOf(c) && (d.push(c), d.sort(function(c, d) {
- return c - d
- }))
- },
- Nza: function() {
- return this.DV
- },
- Qga: function(c) {
- this.DV = c
- },
- NB: function() {
- return this.QY
- },
- $p: function(c) {
- this.QY = c
- },
- YHa: function(c) {
- this.gB != c && (this.gB = c, 0 < this.Ts.count() && this.HFa())
- },
- OBa: function() {
- return this.gB
- },
- TH: function(c, d) {
- return f.Nl.prototype.TH.call(this, c, d) ? (this.Ts = new f.VR, this.sz = new f.VR, this.Tb = [], this.QY = null, this.gB = f.Ioa, this.xh(f.rK), f.Nl.prototype.$p.call(this,
- this), !0) : !1
- },
- J5a: function(c) {
- if (!(c == f.wo || -1 < c)) {
- var d = this.b_(c);
- d && this.caa(d);
- d = null;
- this.FN(c, d);
- this.y8(d)
- }
- },
- eXa: function(c) {
- if (!(c == f.wo || -1 < c)) {
- var d, e = this.Ts;
- if (d = e.vfa(c))
- for (var g = d = e.XB(d); g < e.count(); g++) d = e.Kx(g), this.FN(d.Xq + 1, d);
- d = null;
- this.FN(c, d);
- this.y8(d);
- this.ZY()
- }
- },
- j1a: function(c) {
- if (!(c == f.wo || -1 < c)) {
- var d = this.b_(c);
- if (d) {
- var e = this.Ts,
- g = e.XB(d);
- this.caa(d);
- f.Ld(this.Tb, c);
- for (c = e.count() - 1; c > g; c--) d = e.Kx(c), this.FN(d.Xq - 1, d)
- }
- }
- },
- HFa: function() {
- this.$M = f.b7;
- for (var c = this.Ts,
- d = this.sz, e = this.Va, g = 0, h = c.count(); g < h; g++) {
- var k = c.Kx(g);
- d.Xba(k);
- k.reset();
- k.getParent() == e && e.removeChild(k, !0)
- }
- this.Tb = [];
- this.Ts = new f.VR;
- this.ZY()
- },
- LQa: function() {
- if (0 === this.sz.count()) return null;
- var c = this.sz.Kx(0);
- this.sz.Y1(0);
- return c
- },
- b_: function(c) {
- return -1 == this.Tb.indexOf(c) ? null : this.Ts.vfa(c)
- },
- jGa: function() {},
- kGa: function() {},
- gd: function(c, d) {
- if (this.Na) {
- if (this.yr) {
- var e = this.Ee(),
- g = r(e.x, e.y),
- g = this.Yb.um(g);
- e.x = g.x;
- e.y = g.y;
- this.yr = null
- }
- f.Nl.prototype.gd.call(this, c, d)
- }
- },
- rc: function(c,
- d) {
- if (!this.Na) return !1;
- var e = f.Nl.prototype.rc.call(this, c, d);
- if (1 === this.Of.length) {
- var g;
- g = this.Va.yp(c);
- g = this.tsa(g);
- this.yr = g === f.wo ? null : this.b_(g)
- } else this.yr && (this.yr = null);
- return e
- },
- hd: function(c, d) {
- f.Nl.prototype.hd.call(this, c, d);
- this.yr && this.rm && (this.yr = null)
- },
- ef: function(c, d) {
- f.Nl.prototype.ef.call(this, c, d);
- this.yr && (this.yr = null)
- }
- });
- q = f.hU.prototype;
- f.d(q, "dataSource", q.Nza, q.Qga);
- f.d(q, "delegate", q.NB, q.$p);
- f.d(q, "verticalFillOrder", q.OBa, q.YHa);
- q = null;
- f.hU.create = function(c, d, e) {
- var g = new f.hU;
- g.TH(d, e);
- g.Qga(c);
- g.ZY();
- return g
- };
- var La = "contentSize",
- Ma = "scale";
- function Na(c) {
- f.log("Unexpected property: '" + c + "'!")
- }
- function Qa(c, d) {
- this.nGa = c;
- this.target = d
- }
- function Ra(c, d, e) {
- this.mGa = c;
- this.target = d;
- this.dxa = e
- }
- f.Ia = f.N.extend({
- Dz: null,
- ctor: function() {
- this.Dz = new f.uv
- },
- MDa: function(c, d) {
- return this.ji(c, d)
- },
- UEa: function(c, d, e) {
- for (var g = e.Bc(!1), h = e.Bc(!1), h = g + h, k = 0; k < h; k++) {
- var m = k >= g,
- n = e.Bc(!1),
- p = e.Bf(),
- s = !1,
- u = e.ca();
- if (u === Ta || u === Ua || u === Wa) s = !0;
- c instanceof f.lD ? c.RE && m && (c = c.RE, s = -1 != c.userObject.indexOf(p)) : m && c == e.Pc.gm && (m = c.userObject, m || (m = [], c.userObject = m), m.push(p));
- switch (n) {
- case Xa:
- n = this.NEa(c, d, e, p);
- s && this.fEa(c, d, p, n, e);
- break;
- case Ya:
- n = this.LEa(c, d, e);
- s && this.Nx(c, d, p, n, e);
- break;
- case Za:
- n =
- this.MEa(c, d, e);
- s && this.eEa(c, d, p, n, e);
- break;
- case $a:
- n = this.PEa(c, d, e);
- s && this.Yr(c, d, p, n, e);
- break;
- case ab:
- n = this.OEa(c, d, e, p);
- s && this.gEa(c, d, p, n, e);
- break;
- case bb:
- n = this.GEa(c, d, e);
- s && this.dEa(c, d, p, n, e);
- break;
- case cb:
- n = this.DEa(c, d, e);
- s && this.Lx(c, d, p, n, e);
- break;
- case db:
- n = this.BEa(c, d, e, p);
- s && this.cEa(c, d, p, n, e);
- break;
- case eb:
- n = this.EEa(c, d, e);
- s && this.mI(c, d, p, n, e);
- break;
- case fb:
- n = this.JEa(c, d, e);
- s && this.u1(c, d, p, n, e);
- break;
- case gb:
- n = this.KEa(c, d, e);
- s && this.Mx(c, d, p, n, e);
- break;
- case kb:
- n = this.FEa(c,
- d, e);
- s && this.s1(c, d, p, n, e);
- break;
- case lb:
- n = this.yEa(c, d, e, p);
- s && this.eo(c, d, p, n, e);
- break;
- case pb:
- n = this.QEa(c, d, e, p);
- s && this.Zr(c, d, p, n, e);
- break;
- case qb:
- n = this.sEa(c, d, e);
- s && this.bEa(c, d, p, n, e);
- break;
- case rb:
- n = this.TEa(c, d, e);
- s && this.w1(c, d, p, n, e);
- break;
- case sb:
- n = this.wEa(c, d, e, p);
- s && this.jl(c, d, p, n, e);
- break;
- case wb:
- n = this.zEa(c, d, e, p);
- s && this.uj(c, d, p, n, e);
- break;
- case xb:
- n = this.AEa(c, d, e);
- s && this.q1(c, d, p, n, e);
- break;
- case yb:
- n = this.CEa(c, d, e);
- s && this.r1(c, d, p, n, e);
- break;
- case zb:
- n = this.tEa(c, d, e);
- s &&
- this.tj(c, d, p, n, e);
- break;
- case Ab:
- n = e.Tl + this.HEa(c, d, e);
- s && this.t1(c, d, p, n, e);
- break;
- case Bb:
- n = this.IEa(c, d, e);
- s && this.nI(c, d, p, n, e);
- break;
- case Cb:
- n = this.REa(c, d, e);
- s && this.v1(c, d, p, n, e);
- break;
- case Db:
- n = this.SEa(c, d, e);
- s && this.oI(c, d, p, n, e);
- break;
- case Hb:
- n = this.uEa(c, d, e);
- s && this.o1(c, d, p, n, e);
- break;
- case Ib:
- n = this.vEa(c, d, e);
- s && null != n && this.p1(c, d, p, n, e);
- break;
- case Jb:
- n = this.xEa(c, d, e);
- s && this.lI(c, d, p, n, e);
- break;
- default:
- f.log("Unexpected property type: '" + n + "'!")
- }
- }
- },
- lTa: function() {
- return this.Dz
- },
- ji: function() {
- return f.v.create()
- },
- NEa: function(c, d, e, g) {
- var h = e.$b(),
- k = e.$b(),
- m = e.Bc(!1);
- d = e.Pc.hP(d);
- var n = f.mW(h, k, m, d);
- c.o(f.sza(n, m, d)); - 1 < e.cn.indexOf(g) && e.Pc.Zx([h, k, m], c, g);
- return n
- },
- LEa: function(c, d, e) {
- c = e.$b();
- e = e.$b();
- return r(c, e)
- },
- MEa: function(c, d, e) {
- c = e.$b();
- e = e.$b();
- return r(c, e)
- },
- PEa: function(c, d, e) {
- c = e.$b();
- var g = e.$b(),
- h = e.Bc(!1);
- d = e.Pc.hP(d);
- switch (h) {
- case Kb:
- break;
- case Lb:
- c = d.width - c;
- g = d.height - g;
- break;
- case Mb:
- c = d.width * c / 100;
- g = d.height * g / 100;
- break;
- case Nb:
- c = d.width * c / 100;
- break;
- case Vb:
- g = d.height * g / 100;
- break;
- case Wb:
- d = f.Mb.qu();
- c *= d;
- g *= d;
- break;
- default:
- f.log("Unknown CCB type.")
- }
- return t(c, g)
- },
- OEa: function(c, d, e, g) {
- d = e.$b();
- var h = e.$b(),
- k = e.Bc(!1);
- f.Jha(c, d, h, k); - 1 < e.cn.indexOf(g) && e.Pc.Zx([d, h, k], c, g);
- k == Xb && (d *= f.Mb.qu(), h *= f.Mb.qu());
- return [d, h]
- },
- DEa: function(c, d, e) {
- return e.$b()
- },
- BEa: function(c, d, e, g) {
- d = e.$b(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g);
- return d
- },
- EEa: function(c, d, e) {
- c = e.$b();
- e.Bc(!1) == Xb && (c *= f.Mb.qu());
- return c
- },
- JEa: function(c, d, e) {
- return e.Bc(!0)
- },
- KEa: function(c,
- d, e) {
- return e.Bc(!0)
- },
- FEa: function(c, d, e) {
- c = e.$b();
- e = e.$b();
- return [c, e]
- },
- yEa: function(c, d, e, g) {
- d = e.DI(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g);
- return d
- },
- QEa: function(c, d, e, g) {
- d = e.Bf();
- var h = e.Bf(),
- k;
- null != h && 0 != h.length && (0 == d.length ? (h = e.Tl + h, d = f.nb.vd(h), h = d.e(), k = f.Li.create(d, x(0, 0, h.width, h.height))) : (k = f.Je, d = e.Tl + d, -1 == e.vt.indexOf(d) && (k.vp(d), e.vt.push(d)), k = k.Ca(h)), -1 < e.cn.indexOf(g) && e.Pc.Zx(k, c, g));
- return k
- },
- sEa: function(c, d, e) {
- c = e.Tl + e.Bf();
- e = e.Bf();
- d = null;
- e = f.Mb.efa(e);
- c = f.Mb.efa(c);
- null !=
- e && "" != e && (d = f.WG, d.Hva(c), d = d.cl(e));
- return d
- },
- TEa: function(c, d, e) {
- c = e.Tl + e.Bf();
- return "" != c ? f.nb.vd(c) : null
- },
- wEa: function(c, d, e, g) {
- d = e.ca(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g);
- return d
- },
- zEa: function(c, d, e, g) {
- d = e.ca();
- var h = e.ca(),
- k = e.ca();
- d = {
- r: d,
- g: h,
- b: k
- }; - 1 < e.cn.indexOf(g) && e.Pc.Zx(f.KJ.create(d), c, g);
- return d
- },
- AEa: function(c, d, e) {
- c = 0 | 255 * e.$b();
- d = 0 | 255 * e.$b();
- var g = 0 | 255 * e.$b(),
- h = e.$b(),
- h = 1 >= h ? 0 | 255 * h : h,
- k = 0 | 255 * e.$b(),
- m = 0 | 255 * e.$b(),
- n = 0 | 255 * e.$b();
- e = e.$b();
- var p = [];
- p[0] = {
- r: c,
- g: d,
- b: g,
- a: h
- };
- p[1] = {
- r: k,
- g: m,
- b: n,
- a: 1 >= e ? 0 | 255 * e : e
- };
- return p
- },
- CEa: function(c, d, e) {
- c = e.DI();
- e = e.DI();
- return [c, e]
- },
- tEa: function(c, d, e) {
- c = e.Bc(!1);
- e = e.Bc(!1);
- return new f.Um(c, e)
- },
- HEa: function(c, d, e) {
- return e.Bf()
- },
- REa: function(c, d, e) {
- return e.Bf()
- },
- SEa: function(c, d, e) {
- return e.Bf()
- },
- IEa: function(c, d, e) {
- return e.Bf()
- },
- uEa: function(c, d, e) {
- d = e.Bf();
- var g = e.Bc(!1);
- if (g !== Yb) {
- var h = null;
- if (e.qn) g === Zb ? (e.wO(c), e.vO(d), e.uO(0)) : (e.$ba(c), e.Zba(d), e.Yba(0));
- else if (g === Zb ? h = e.Pc.gm : g === $b && (h = e.Td), null != h)
- if (0 < d.length)
- if (c = 0, null !=
- h && h.jEa && (c = void 0), 0 == c && null != e.rz && (c = void 0), 0 == c) f.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present.");
- else return new Qa(c, h);
- else f.log("Unexpected empty selector.");
- else f.log("Unexpected NULL target for selector.")
- }
- return null
- },
- vEa: function(c, d, e) {
- d = e.Bf();
- var g = e.Bc(!1),
- h = e.Bc(!1);
- if (g !== Yb)
- if (e.qn) g == Zb ? (e.wO(c), e.vO(d), e.uO(h)) : (e.$ba(c), e.Zba(d), e.Yba(h));
- else if (c = null, g == Zb ? c = e.Pc.gm : g == $b && (c = e.Td), null != c)
- if (0 < d.length)
- if (g = 0, null != c && c.iEa && (g = void 0), 0 == g &&
- null != e.rz && (g = void 0), 0 == g) f.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present.");
- else return new Ra(g, c, h);
- else f.log("Unexpected empty selector.");
- else f.log("Unexpected NULL target for selector.");
- return null
- },
- xEa: function(c, d, e) {
- var g = e.Tl + e.Bf(),
- g = f.Mb.Oxa(g) + ".ccbi";
- c = new f.Mb(e);
- var h = f.L.zd(g);
- h || (h = f.L.u0(g), h = f.L.gfa(h), f.L.jj[g] = h);
- c.su(h, e.Td);
- c.Pc.J2(d.e());
- c.Dga(e.yv);
- c.Pc.HC(e.Td);
- d = c.Ufa(!1);
- e.Dga(c.yv);
- d && -1 != c.Pc.dz && c.Pc.d2(c.Pc.dz, 0);
- return d
- },
- GEa: function(c,
- d, e) {
- c = e.$b();
- e = e.$b();
- return [c, e]
- },
- fEa: function(c, d, e, g) {
- "position" === e ? c.o(g) : Na(e)
- },
- Nx: function(c, d, e, g) {
- "anchorPoint" === e ? c.S(g) : Na(e)
- },
- eEa: function(c, d, e) {
- Na(e)
- },
- Yr: function(c, d, e, g) {
- e === La ? c.Ga(g) : Na(e)
- },
- gEa: function(c, d, e, g) {
- e === Ma ? (c.jb(g[0]), c.tb(g[1])) : Na(e)
- },
- dEa: function(c, d, e, g) {
- if ("skew" === e) c.XI(g[0]), c.YI(g[1]);
- else {
- d = e + "X";
- var h = e + "Y";
- c[d] && c[h] || Na(e);
- c[d](g[0]);
- c[h](g[1])
- }
- },
- Lx: function(c, d, e, g) {
- this.Dz.ul(g, e)
- },
- cEa: function(c, d, e, g) {
- "rotation" === e ? c.yh(g) : Na(e)
- },
- mI: function(c, d,
- e) {
- Na(e)
- },
- u1: function(c, d, e, g) {
- "tag" === e ? c.Nm(g) : Na(e)
- },
- Mx: function(c, d, e) {
- Na(e)
- },
- s1: function(c, d, e) {
- Na(e)
- },
- eo: function(c, d, e, g) {
- "visible" === e ? c.za(g) : "ignoreAnchorPointForPosition" === e ? c.Gm(g) : Na(e)
- },
- Zr: function(c, d, e) {
- Na(e)
- },
- bEa: function(c, d, e) {
- Na(e)
- },
- w1: function(c, d, e) {
- Na(e)
- },
- jl: function(c, d, e) {
- Na(e)
- },
- uj: function(c, d, e) {
- Na(e)
- },
- q1: function(c, d, e) {
- Na(e)
- },
- r1: function(c, d, e) {
- Na(e)
- },
- tj: function(c, d, e) {
- Na(e)
- },
- t1: function(c, d, e) {
- Na(e)
- },
- v1: function(c, d, e, g) {
- this.Dz.ul(g, e)
- },
- oI: function(c, d, e) {
- Na(e)
- },
- nI: function(c,
- d, e) {
- Na(e)
- },
- o1: function(c, d, e) {
- Na(e)
- },
- p1: function(c, d, e) {
- Na(e)
- },
- lI: function(c, d, e) {
- Na(e)
- }
- });
- f.Ia.L = function() {
- return new f.Ia
- };
- f.ZLa = f.N.extend({
- L_a: function() {}
- });
- f.yKa = f.N.extend({
- jEa: function() {},
- hEa: function() {},
- iEa: function() {}
- });
- f.xKa = f.N.extend({
- CQa: function() {}
- });
- f.wKa = f.N.extend({
- K_a: function() {
- return !1
- },
- ZDa: function() {
- return !1
- }
- });
- f.fS = f.Ia.extend({
- ji: function() {
- return f.lD.create()
- },
- lI: function(c, d, e, g, h) {
- "ccbFile" == e ? c.Iga(g) : f.Ia.prototype.lI.call(this, c, d, e, g, h)
- }
- });
- f.fS.L = function() {
- return new f.fS
- };
- f.jq = f.Ia.extend({
- ji: function() {},
- p1: function(c, d, e, g, h) {
- "ccControl" == e ? c.VG(g.target, g.mGa, g.dxa) : f.Ia.prototype.p1.call(this, c, d, e, g, h)
- },
- eo: function(c, d, e, g, h) {
- "enabled" == e ? c.Lb(g) : "selected" == e ? c.Nu(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h)
- }
- });
- f.wS = f.jq.extend({
- ji: function() {
- return f.Xm.create()
- },
- eo: function(c, d, e, g, h) {
- "zoomOnTouchDown" == e ? c.$ha(g) : f.jq.prototype.eo.call(this, c, d, e, g, h)
- },
- v1: function(c, d, e, g, h) {
- "title|1" == e ? c.AR(g, f.Wg) : "title|2" == e ? c.AR(g, f.av) : "title|3" == e ? c.AR(g, f.$u) : f.jq.prototype.v1.call(this, c, d, e, g, h)
- },
- nI: function(c, d, e, g, h) {
- "titleTTF|1" == e ? c.X2(g, f.Wg) : "titleTTF|2" == e ? c.X2(g, f.av) : "titleTTF|3" == e ? c.X2(g, f.$u) : f.jq.prototype.nI.call(this, c, d, e, g, h)
- },
- mI: function(c, d, e, g, h) {
- "titleTTFSize|1" == e ? c.Y2(g, f.Wg) : "titleTTFSize|2" ==
- e ? c.Y2(g, f.av) : "titleTTFSize|4" == e ? c.Y2(g, f.$u) : f.jq.prototype.mI.call(this, c, d, e, g, h)
- },
- Nx: function(c, d, e, g, h) {
- "labelAnchorPoint" == e ? c.z2(g) : f.jq.prototype.Nx.call(this, c, d, e, g, h)
- },
- Yr: function(c, d, e, g, h) {
- "preferedSize" == e ? c.He(g) : f.jq.prototype.Yr.call(this, c, d, e, g, h)
- },
- Zr: function(c, d, e, g, h) {
- "backgroundSpriteFrame|1" == e ? null != g && c.l2(g, f.Wg) : "backgroundSpriteFrame|2" == e ? null != g && c.l2(g, f.av) : "backgroundSpriteFrame|3" == e ? null != g && c.l2(g, f.$u) : f.jq.prototype.Zr.call(this, c, d, e, g, h)
- },
- uj: function(c, d,
- e, g, h) {
- "titleColor|1" == e ? c.zR(g, f.Wg) : "titleColor|2" == e ? c.zR(g, f.av) : "titleColor|3" == e ? c.zR(g, f.$u) : f.jq.prototype.uj.call(this, c, d, e, g, h)
- }
- });
- f.wS.L = function() {
- return new f.wS
- };
- Ma = "scale";
- f.NT = f.Ia.extend({
- ji: function() {
- return f.Nl.create()
- },
- Yr: function(c, d, e, g, h) {
- e == La ? c.FR(g) : f.Ia.prototype.Yr.call(this, c, d, e, g, h)
- },
- lI: function(c, d, e, g, h) {
- "container" == e ? (c.Pga(g), c.PR()) : f.Ia.prototype.lI.call(this, c, d, e, g, h)
- },
- eo: function(c, d, e, g, h) {
- "clipsToBounds" == e ? c.Nga(g) : "bounces" == e ? c.Hga(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h)
- },
- Lx: function(c, d, e, g, h) {
- e == Ma ? c.ib(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h)
- },
- Mx: function(c, d, e, g, h) {
- "direction" == e ? c.xh(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h)
- }
- });
- f.NT.L = function() {
- return new f.NT
- };
- var La = "contentSize",
- ac = "color",
- bc = "opacity",
- jc = "blendFunc";
- f.MT = f.Ia.extend({
- ji: function() {
- var c = f.Ua.create();
- c.S(0, 0);
- return c
- },
- uj: function(c, d, e, g, h) {
- e == ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h)
- },
- jl: function(c, d, e, g, h) {
- e == bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h)
- },
- tj: function(c, d, e, g, h) {
- e != jc && f.Ia.prototype.tj.call(this, c, d, e, g, h)
- },
- Zr: function(c, d, e, g, h) {
- "spriteFrame" == e ? c.Dd(g) : f.Ia.prototype.Zr.call(this, c, d, e, g, h)
- },
- Yr: function(c, d, e, g, h) {
- e != La && ("preferedSize" == e ? c.He(g) : f.Ia.prototype.Yr.call(this, c,
- d, e, g, h))
- },
- Lx: function(c, d, e, g, h) {
- "insetLeft" == e ? c.eha(g) : "insetTop" == e ? c.gha(g) : "insetRight" == e ? c.fha(g) : "insetBottom" == e ? c.dha(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h)
- }
- });
- f.MT.L = function() {
- return new f.MT
- };
- ac = "color";
- bc = "opacity";
- jc = "blendFunc";
- f.RT = f.Ia.extend({
- ji: function() {
- return f.q.create()
- },
- uj: function(c, d, e, g, h) {
- e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h)
- },
- jl: function(c, d, e, g, h) {
- e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h)
- },
- tj: function(c, d, e, g, h) {
- e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h)
- },
- Zr: function(c, d, e, g, h) {
- "displayFrame" === e ? g ? c.Dd(g) : f.log("ERROR: SpriteFrame is null") : f.Ia.prototype.Zr.call(this, c, d, e, g, h)
- },
- r1: function(c, d, e, g, h) {
- "flip" === e ? (c.Pd(g[0]), c.Yf(g[1])) :
- f.Ia.prototype.r1.call(this, c, d, e, g, h)
- }
- });
- f.RT.L = function() {
- return new f.RT
- };
- f.uk = f.Ia.extend({
- ji: function() {
- var c = f.Me.create();
- c.Ga(0, 0);
- return c
- },
- eo: function(c, d, e, g, h) {
- "touchEnabled" !== e && "isTouchEnabled" !== e && "accelerometerEnabled" !== e && "isAccelerometerEnabled" !== e && "mouseEnabled" !== e && "isMouseEnabled" !== e && ("keyboardEnabled" === e || "isKeyboardEnabled" === e ? c.$Ga && !f.Ed.$Ca ? c.$Ga(g) : f.log("The property 'isKeyboardEnabled' is not supported!") : f.Ia.prototype.eo.call(this, c, d, e, g, h))
- }
- });
- f.uk.L = function() {
- return new f.uk
- };
- f.aT = f.uk.extend({
- ji: function() {
- return f.$f.create()
- },
- uj: function(c, d, e, g, h) {
- e === ac ? c.F(g) : f.uk.prototype.uj.call(this, c, d, e, g, h)
- },
- jl: function(c, d, e, g, h) {
- e === bc ? c.J(g) : f.uk.prototype.jl.call(this, c, d, e, g, h)
- },
- tj: function(c, d, e, g, h) {
- e === jc ? c.ce(g) : f.uk.prototype.tj.call(this, c, d, e, g, h)
- }
- });
- f.aT.L = function() {
- return new f.aT
- };
- f.cT = f.uk.extend({
- ji: function() {
- return f.rq.create()
- },
- uj: function(c, d, e, g, h) {
- "startColor" === e ? c.Tg(g) : "endColor" == e ? c.Sg(g) : f.uk.prototype.uj.call(this, c, d, e, g, h)
- },
- jl: function(c, d, e, g, h) {
- "startOpacity" === e ? c.Sha(g) : "endOpacity" === e ? c.Vga(g) : f.uk.prototype.jl.call(this, c, d, e, g, h)
- },
- Nx: function(c, d, e, g, h) {
- "vector" === e ? c.DR(g) : f.uk.prototype.Nx.call(this, c, d, e, g, h)
- },
- tj: function(c, d, e, g, h) {
- e === jc ? c.ce(g) : f.uk.prototype.tj.call(this, c, d, e, g, h)
- }
- });
- f.cT.L = function() {
- return new f.cT
- };
- f.iT = f.uk.extend({
- ji: function() {
- var c = f.ws.create();
- c.Ga(0, 0);
- return c
- }
- });
- f.iT.L = function() {
- return new f.iT
- };
- f.f6 = f.Ia.extend({
- ji: function() {
- return null
- },
- o1: function(c, d, e, g, h) {
- "block" === e ? null != g && c.ZI(g.nGa, g.target) : f.Ia.prototype.o1.call(this, c, d, e, g, h)
- },
- eo: function(c, d, e, g, h) {
- "isEnabled" === e ? c.Lb(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h)
- }
- });
- f.gT = f.f6.extend({
- ji: function() {
- return f.Il.create()
- },
- Zr: function(c, d, e, g, h) {
- "normalSpriteFrame" === e ? null != g && c.mHa(g) : "selectedSpriteFrame" === e ? null != g && c.IHa(g) : "disabledSpriteFrame" === e ? null != g && c.MGa(g) : f.f6.prototype.Zr.call(this, c, d, e, g, h)
- }
- });
- f.gT.L = function() {
- return new f.gT
- };
- f.$S = f.Ia.extend({
- ji: function() {
- return f.ia.create()
- },
- uj: function(c, d, e, g, h) {
- e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h)
- },
- jl: function(c, d, e, g, h) {
- e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h)
- },
- tj: function(c, d, e, g, h) {
- e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h)
- },
- nI: function(c, d, e, g, h) {
- "fontName" === e ? c.de(g) : f.Ia.prototype.nI.call(this, c, d, e, g, h)
- },
- oI: function(c, d, e, g, h) {
- "string" === e ? c.wa(g) : f.Ia.prototype.oI.call(this, c, d, e, g, h)
- },
- mI: function(c,
- d, e, g, h) {
- "fontSize" === e ? c.Qd(g) : f.Ia.prototype.mI.call(this, c, d, e, g, h)
- },
- Mx: function(c, d, e, g, h) {
- "horizontalAlignment" === e ? c.jR(g) : "verticalAlignment" === e ? c.ER(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h)
- },
- Yr: function(c, d, e, g, h) {
- "dimensions" === e ? c.gR(g) : f.Ia.prototype.Yr.call(this, c, d, e, g, h)
- }
- });
- f.$S.L = function() {
- return new f.$S
- };
- f.ZS = f.Ia.extend({
- ji: function() {
- return f.qq.create()
- },
- uj: function(c, d, e, g, h) {
- e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h)
- },
- jl: function(c, d, e, g, h) {
- e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h)
- },
- tj: function(c, d, e, g, h) {
- e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h)
- },
- t1: function(c, d, e, g, h) {
- "fntFile" === e ? c.GC(g) : f.Ia.prototype.t1.call(this, c, d, e, g, h)
- },
- oI: function(c, d, e, g, h) {
- "string" === e ? c.wa(g) : f.Ia.prototype.oI.call(this, c, d, e, g, h)
- }
- });
- f.ZS.L = function() {
- return new f.ZS
- };
- f.qT = f.Ia.extend({
- ji: function() {
- return f.A.create()
- },
- Mx: function(c, d, e, g, h) {
- "emitterMode" === e ? c.pl(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h)
- },
- Nx: function(c, d, e, g, h) {
- "posVar" === e ? c.vl(g) : "gravity" === e ? c.vc(g) : f.Ia.prototype.Nx.call(this, c, d, e, g, h)
- },
- Lx: function(c, d, e, g, h) {
- "emissionRate" === e ? c.ol(g) : "duration" === e ? c.Ei(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h)
- },
- u1: function(c, d, e, g, h) {
- "totalParticles" === e ? c.Xha(g) : f.Ia.prototype.u1.call(this, c, d, e, g, h)
- },
- s1: function(c, d, e, g, h) {
- "life" === e ? (c.rl(g[0]), c.sl(g[1])) :
- "startSize" === e ? (c.wl(g[0]), c.xl(g[1])) : "endSize" === e ? (c.ql(g[0]), c.Wga(g[1])) : "startSpin" === e ? (c.Tha(g[0]), c.Uha(g[1])) : "endSpin" === e ? (c.Xga(g[0]), c.Yga(g[1])) : "angle" === e ? (c.ml(g[0]), c.nl(g[1])) : "speed" === e ? (c.Hi(g[0]), c.pk(g[1])) : "tangentialAccel" === e ? (c.bq(g[0]), c.cq(g[1])) : "radialAccel" === e ? (c.nk(g[0]), c.ok(g[1])) : "startRadius" === e ? (c.R2(g[0]), c.S2(g[1])) : "endRadius" === e ? (c.w2(g[0]), c.x2(g[1])) : "rotatePerSecond" === e ? (c.K2(g[0]), c.L2(g[1])) : f.Ia.prototype.s1.call(this, c, d, e, g, h)
- },
- q1: function(c,
- d, e, g, h) {
- "startColor" === e ? (c.Tg(g[0]), c.qk(g[1])) : "endColor" === e ? (c.Sg(g[0]), c.mk(g[1])) : f.Ia.prototype.q1.call(this, c, d, e, g, h)
- },
- tj: function(c, d, e, g, h) {
- e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h)
- },
- w1: function(c, d, e, g, h) {
- "texture" === e ? c.ab(g) : f.Ia.prototype.w1.call(this, c, d, e, g, h)
- }
- });
- f.qT.L = function() {
- return new f.qT
- };
- f.Cj = f.N.extend({
- Iq: null,
- ctor: function() {
- this.Iq = {}
- },
- fga: function() {
- this.jk("CCNode", f.Ia.L());
- this.jk("CCLayer", f.uk.L());
- this.jk("CCLayerColor", f.aT.L());
- this.jk("CCLayerGradient", f.cT.L());
- this.jk("CCSprite", f.RT.L());
- this.jk("CCLabelBMFont", f.ZS.L());
- this.jk("CCLabelTTF", f.$S.L());
- this.jk("CCScale9Sprite", f.MT.L());
- this.jk("CCScrollView", f.NT.L());
- this.jk("CCBFile", f.fS.L());
- this.jk("CCMenu", f.iT.L());
- this.jk("CCMenuItemImage", f.gT.L());
- this.jk("CCControlButton", f.wS.L());
- this.jk("CCParticleSystemQuad",
- f.qT.L())
- },
- jk: function(c, d) {
- this.Iq[c] = d
- },
- F5a: function(c) {
- this.Iq[c] && delete this.Iq[c]
- },
- pda: function(c) {
- return this.Iq[c] ? this.Iq[c] : null
- },
- y0a: function(c) {
- if (c)
- for (var d in this.Iq) delete this.Iq[d];
- this.Iq = {}
- }
- });
- f.Cj.HI = null;
- f.Cj.KDa = function() {
- return new f.Cj
- };
- f.Cj.V4a = function() {
- null == f.Cj.HI && (f.Cj.HI = new f.Cj, f.Cj.HI.fga());
- return f.Cj.HI
- };
- f.Cj.z0a = function() {
- f.Cj.HI = null
- };
- f.Cj.VDa = function() {
- var c = f.Cj.KDa();
- c.fga();
- return c
- };
- var Xa = 0,
- $a = 1,
- Ya = 2,
- Za = 3,
- ab = 4,
- db = 5,
- fb = 6,
- cb = 7,
- kb = 8,
- lb = 9,
- pb = 10,
- rb = 11,
- sb = 12,
- wb = 13,
- xb = 14,
- yb = 15,
- zb = 16,
- Ab = 17,
- Db = 18,
- Bb = 19,
- gb = 20,
- Hb = 21,
- qb = 22,
- Jb = 23,
- Cb = 24,
- Ib = 25,
- eb = 26,
- bb = 27,
- Ta = 0,
- Ua = 1,
- Wa = 2,
- Yb = 0,
- Zb = 1,
- $b = 2,
- Kb = 0,
- Mb = 1,
- Lb = 2,
- Nb = 3,
- Vb = 4,
- Wb = 5,
- Xb = 1;
- f.lD = f.v.extend({
- RE: null,
- CSa: function() {
- return this.RE
- },
- Iga: function(c) {
- this.RE = c
- }
- });
- f.lD.create = function() {
- return new f.lD
- };
- f.Mb = f.N.extend({
- qn: !1,
- Mh: null,
- Tl: "",
- wqa: 0,
- Fg: 0,
- Zs: 0,
- IY: null,
- vt: null,
- Td: null,
- Pc: null,
- yv: null,
- cn: null,
- QE: null,
- lV: null,
- nL: null,
- rz: null,
- nw: null,
- ow: null,
- hX: null,
- PU: null,
- vA: null,
- wA: null,
- uA: null,
- IOa: !1,
- ctor: function(c, d, e, g) {
- this.IY = [];
- this.vt = [];
- this.Fg = this.Zs = -1;
- 0 != arguments.length && (c instanceof f.Mb ? (this.vt = c.vt, this.QE = c.QE, this.nL = c.nL, this.rz = c.rz, this.lV = c.lV, this.vA = c.vA, this.wA = c.wA, this.uA = c.uA, this.nw = c.nw, this.ow = c.ow, this.Tl = c.Tl) : (this.QE = c, this.nL = d, this.rz = e, this.lV = g))
- },
- ESa: function() {
- return this.Tl
- },
- CGa: function(c) {
- this.Tl = c
- },
- su: function(c, d) {
- this.Pc = new f.a4;
- this.Mh = c;
- this.wqa = c.length;
- this.Fg = this.Zs = 0;
- this.Td = d;
- this.Pc.J2(f.Q.Y);
- return !0
- },
- xOa: function(c) {
- var d = this.LH(),
- e = "load " + c + " failed!";
- d.open("GET", c, !1);
- var g = null;
- if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
- d.setRequestHeader("Accept-Charset", "x-user-defined");
- d.send(null);
- if (200 != d.status) return f.log(e), null;
- if (d = f.zV(d.responseBody)) g = this.hva(d), this.pra[c] = g
- } else {
- d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
- d.send(null);
- if (200 != d.status) return f.log(e), null;
- g = this.hva(d.responseText);
- this.pra[c] = g
- }
- return g
- },
- Vfa: function(c, d, e, g) {
- null == e ? e = f.Q.Y : e instanceof f.a4 && (g = e, e = f.Q.Y);
- var h = f.L.zd(c);
- h || (h = f.L.u0(c), h = f.L.gfa(h), f.L.jj[c] = h);
- return this.wFa(h, d, e, g)
- },
- wFa: function(c, d, e) {
- this.su(c, d);
- c = this.Pc;
- c.J2(e);
- c.HC(d);
- this.nw = [];
- this.ow = [];
- this.vA = [];
- this.wA = [];
- this.uA = [];
- this.yv = new f.uv;
- (d = this.Ufa(!0)) && -1 != c.dz && c.d2(c.dz, 0);
- if (this.qn) {
- e = [];
- c = [];
- for (var g = this.yv, h = g.jB(), k = 0; k < h.length; k++) e.push(h[k]),
- c.push(g.Jm(h[k]));
- this.hX = e;
- this.PU = c
- }
- return d
- },
- EQa: function(c, d, e, g) {
- c = this.Vfa(c, d, e, g);
- d = f.tq.create();
- d.n(c);
- return d
- },
- DSa: function() {
- return this.nL
- },
- FSa: function() {
- return this.rz
- },
- dSa: function() {
- return this.Pc
- },
- v2a: function(c) {
- this.Pc = c
- },
- $Ra: function() {
- return this.cn
- },
- yUa: function() {
- return this.vt
- },
- Lda: function() {
- return this.Td
- },
- Bc: function(c) {
- for (var d = 0; !this.o$();) d++;
- for (var e = 0, g = d - 1; 0 <= g; g--) this.o$() && (e |= 1 << g);
- e |= 1 << d;
- c = c ? e % 2 ? 0 | e / 2 : 0 | -e / 2 : e - 1;
- this.fqa();
- return c
- },
- ca: function() {
- var c =
- this.Mh[this.Fg];
- this.Fg++;
- return c
- },
- DI: function() {
- return 0 != this.ca()
- },
- $b: function() {
- switch (this.ca()) {
- case 0:
- return 0;
- case 1:
- return 1;
- case 2:
- return -1;
- case 3:
- return 0.5;
- case 4:
- return this.Bc(!0);
- default:
- return this.FV(23, 8)
- }
- },
- FV: function(c, d) {
- var e = c + d + 1,
- g = e >> 3;
- this.sV(e);
- var e = Math.pow(2, d - 1) - 1,
- h = this.yaa(c + d, 1, g),
- k = this.yaa(c, d, g),
- m = 0,
- n = 2,
- p = 0;
- do
- for (var s = this.qN(++p, g), u = c % 8 || 8, v = 1 << u; v >>= 1;) s & v && (m += 1 / n), n *= 2; while (c -= u);
- this.Fg += g;
- return k == (e << 1) + 1 ? m ? NaN : h ? -Infinity : Infinity : (1 + -2 * h) * (k || m ?
- k ? Math.pow(2, k - e) * (1 + m) : Math.pow(2, -e + 1) * m : 0)
- },
- yaa: function(c, d, e) {
- var g = (c + d) % 8,
- h = c % 8,
- k = e - (c >> 3) - 1;
- c = e + (-(c + d) >> 3);
- var m = k - c;
- d = this.qN(k, e) >> h & (1 << (m ? 8 - h : d)) - 1;
- for (m && g && (d += (this.qN(c++, e) & (1 << g) - 1) << (m-- << 3) - h); m;) d += this.tY(this.qN(c++, e), (m-- << 3) - h);
- return d
- },
- qN: function(c, d) {
- return this.Mh[this.Fg + d - c - 1]
- },
- tY: function(c, d) {
- for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c : 2 * (c - 1073741824) + 2147483648);
- return c
- },
- sV: function(c) {
- if (!(this.Fg + Math.ceil(c / 8) < this.Mh.length)) throw Error("Index out of bound");
- },
- Bf: function() {
- return this.IY[this.Bc(!1)]
- },
- IXa: function() {
- return this.qn
- },
- ZUa: function() {
- return this.vA
- },
- $Ua: function() {
- return this.wA
- },
- YUa: function() {
- return this.uA
- },
- aVa: function() {
- return this.nw
- },
- bVa: function() {
- return this.ow
- },
- LUa: function() {
- return this.hX
- },
- fSa: function() {
- return this.PU
- },
- eSa: function() {
- return this.yv
- },
- Dga: function(c) {
- this.yv = c
- },
- Zba: function(c) {
- this.vA.push(c)
- },
- $ba: function(c) {
- this.wA.push(c)
- },
- Yba: function(c) {
- this.uA.push(c)
- },
- vO: function(c) {
- this.Pc.vO(c)
- },
- wO: function(c) {
- this.Pc.wO(c)
- },
- uO: function(c) {
- this.Pc.uO(c)
- },
- Ufa: function(c) {
- if (!this.Mta() || !this.Pta() || !this.Nta()) return null;
- var d = this.zaa();
- this.yv.ul(this.Pc, d);
- c && this.W8(d);
- return d
- },
- vPa: function(c) {
- this.nw.push(c)
- },
- wPa: function(c) {
- null != c && this.ow.push(c)
- },
- W8: function(c) {
- c.userObject = null;
- c = c.re();
- for (var d = 0, e = c.length; d < e; d++) this.W8(c[d])
- },
- Lta: function(c) {
- var d = this.Bc(!1);
- if (!d) return !0;
- for (var e = new f.hS, g = this.qn, h = this.Pc, k = e.$q, m = 0; m < d; m++) {
- var n = this.$b(),
- p = this.Bf(),
- s = this.Bc(!1),
- u = [p, s],
- v = new f.AJ;
- v.setTime(n);
- v.ue(u);
- g && h.CM.push(s + ":" + p);
- k.push(v)
- }
- c.DGa(e);
- return !0
- },
- Ota: function(c) {
- var d = this.Bc(!1);
- if (!d) return !0;
- for (var e = new f.hS, g = e.$q, h = 0; h < d; h++) {
- var k = this.$b(),
- m = this.Bf(),
- n = this.$b(),
- p = this.$b(),
- s = this.$b(),
- m = [m, n, p, s],
- n = new f.AJ;
- n.setTime(k);
- n.ue(m);
- g.push(n)
- }
- c.MHa(e);
- return !0
- },
- Nta: function() {
- for (var c = this.Pc.MA, d = this.Bc(!1), e = 0; e < d; e++) {
- var g = new f.Gja;
- g.Ei(this.$b());
- g.gf(this.Bf());
- g.JHa(this.Bc(!1));
- g.FGa(this.Bc(!0));
- if (!this.Lta(g) || !this.Ota(g)) return !1;
- c.push(g)
- }
- this.Pc.zGa(this.Bc(!0));
- return !0
- },
- vFa: function(c) {
- var d = new f.AJ;
- d.setTime(this.$b());
- var e = this.Bc(!1),
- g = 0,
- h = null;
- if (2 === e || 3 === e || 4 === e || 5 === e || 6 === e || 7 === e) g = this.$b();
- d.Iu(e);
- d.RGa(g);
- c == lb ? h = this.DI() : c == sb ? h = this.ca() : c == wb ? (c = f.color(this.ca(), this.ca(), this.ca()), h = f.KJ.create(c)) : c == bb ? h = [this.$b(), this.$b()] : c == db ? h = this.$b() : c == ab || c == Xa || c == bb ? h = [this.$b(), this.$b()] : c == pb && (c = this.Bf(), e = this.Bf(), "" == c ? (e = this.Tl + e, c = f.nb.vd(e), e = c.e(), h = f.Li.create(c, x(0, 0, e.width, e.height))) : (c = this.Tl + c, g = f.Je, -1 == this.vt.indexOf(c) &&
- (g.vp(c), this.vt.push(c)), h = g.Ca(e)));
- d.ue(h);
- return d
- },
- Mta: function() {
- if (null == this.Mh) return !1;
- var c = this.Rta(this.Fg, 4, !0);
- this.Fg += 4;
- if ("ccbi" != c) return !1;
- c = this.Bc(!1);
- if (5 != c) return f.log("WARNING! Incompatible ccbi file version (file: " + c + " reader: 5)"), !1;
- this.qn = this.DI();
- this.Pc.qn = this.qn;
- return !0
- },
- Rta: function(c, d, e) {
- c = "";
- var g = this.Mh,
- h = this.Fg;
- if (e)
- for (e = d - 1; 0 <= e; e--) c += String.fromCharCode(g[h + e]);
- else
- for (e = 0; e < d; e++) c += String.fromCharCode(g[h + e]);
- return c
- },
- Pta: function() {
- for (var c =
- this.Bc(!1), d = 0; d < c; d++) this.Qta();
- return !0
- },
- Qta: function() {
- for (var c = this.ca(), d = this.ca(), c = c << 8 | d, d = "", e = this.Mh, g = this.Fg, h = 0; h < c; h++) var k = e[g + h].toString("16").toUpperCase(),
- k = 1 < k.length ? k : "0" + k,
- d = d + ("%" + k);
- d = decodeURIComponent(d);
- this.Fg += c;
- this.IY.push(d)
- },
- zaa: function(c) {
- var d = this.Bf(),
- e, g = this.qn,
- h = this.Pc;
- g && (e = this.Bf());
- var k = this.Bc(!1),
- m;
- k != Yb && (m = this.Bf());
- var n = this.QE.pda(d);
- n || (n = this.QE.pda("CCNode"));
- d = n.MDa(c, this);
- h.gm || h.GHa(d);
- g && d == h.gm && h.PGa(e);
- var p = new f.uv,
- s = this.cn = [],
- u = this.Bc(!1);
- for (e = 0; e < u; ++e) {
- for (var v = this.Bc(!1), z = new f.uv, A = this.Bc(!1), B = 0; B < A; ++B) {
- var C = new f.hS;
- C.gf(this.Bf());
- C.aJ(this.Bc(!1));
- s.push(C.getName());
- for (var G = this.Bc(!1), L = C.$q, O = 0; O < G; ++O) {
- var R = this.vFa(C.zc);
- L.push(R)
- }
- z.ul(C, C.getName())
- }
- p.ul(z, v)
- }
- 0 < p.count() && h.zO(d, p);
- n.UEa(d, c, this);
- d instanceof f.lD && (e = d.RE, e.o(d.Od()), e.yh(d.Cx()), e.jb(d.ka), e.tb(d.ra), e.Nm(d.Em()), e.za(!0), h.SDa(d, e), d.Iga(null), d = e);
- e = null;
- k != Yb && g && (k == Zb ? (h.Qva(m), h.Rva(d)) : (this.nw.push(m), this.ow.push(d)));
- if (0 < n.Dz.length && !g && (e = d, null != e && null != e.ZDa))
- for (g = n.Dz.jB(), e = 0; e < g.length; e++);
- this.cn = null;
- g = this.Bc(!1);
- for (e = 0; e < g; e++) h = this.zaa(d), d.n(h);
- return d
- },
- o$: function() {
- var c = 0 != (this.Mh[this.Fg] & 1 << this.Zs);
- this.Zs++;
- if (8 <= this.Zs && (this.Zs = 0, this.Fg++, this.Fg > this.Mh.length)) throw "out of the data bound";
- return c
- },
- fqa: function() {
- this.Zs && (this.Zs = 0, this.Fg++)
- },
- JOa: function() {}
- });
- f.Mb.U8 = 1;
- f.Mb.e4a = function(c) {
- f.Mb.U8 = c
- };
- f.Mb.qu = function() {
- return f.Mb.U8
- };
- f.Mb.l_a = function(c, d, e, g) {
- g = g || f.Mb.l0();
- c = f.Mb.load(c, d, e, g);
- d = f.tq.create();
- d.n(c);
- return d
- };
- f.Mb.Z8 = {};
- f.Mb.O0a = function(c, d) {
- f.Mb.Z8[c] = f.N.extend(d)
- };
- f.Mb.load = function(c, d, e, g) {
- g = g || f.Mb.l0();
- var h = new f.Mb(f.Cj.VDa());
- h.CGa(g);
- if (5 > c.length || c.toLowerCase().lastIndexOf(".ccbi") != c.length - 5) c += ".ccbi";
- c = h.Vfa(c, d, e);
- var k, m, n;
- if (d) {
- g = h.vA;
- var p = h.wA,
- s = h.uA;
- for (e = 0; e < g.length; e++) k = g[e], m = p[e], n = s[e], m instanceof f.Xm ? m.VG(d, d[k], n) : m.Kga(d[k], d);
- g = h.nw;
- p = h.ow;
- for (e = 0; e < g.length; e++) k = g[e], m = p[e], d[k] = m
- }
- g = h.hX;
- h = h.PU;
- if (!g || !h) return c;
- p = f.Mb.Z8;
- for (e = 0; e < g.length; e++) {
- var u = g[e],
- s = h[e];
- u.LPa = s;
- if (k = s.TV) {
- var v = p[k];
- if (!v) throw "Can not find controller : " +
- k;
- v = new v;
- v.yQa = k;
- u.xQa = v;
- v.P1a = u;
- for (var z = s.KL, A = s.LL, B = s.JL, u = 0; u < z.length; u++) k = z[u], m = A[u], n = B[u], m instanceof f.Xm ? m.VG(v, v[k], n) : m.Kga(v[k], v);
- n = s.ML;
- z = s.NL;
- for (u = 0; u < n.length; u++) k = n[u], m = z[u], v[k] = m;
- v.xfa && "function" == typeof v.xfa && v.xfa();
- k = s.CM;
- for (u = 0; u < k.length; u++) n = k[u].split(":"), m = n[0], n = n[1], 1 == m ? s.Jga(f.ua.create(v[n], v), k[u]) : 2 == m && d && s.Jga(f.ua.create(d[n], d), k[u])
- }
- }
- return c
- };
- f.Mb.Jaa = "";
- f.Mb.f4a = function(c) {
- f.Mb.Jaa = c
- };
- f.Mb.l0 = function() {
- return f.Mb.Jaa
- };
- f.Mb.efa = function(c) {
- var d = c.lastIndexOf("/");
- return -1 != d ? c.substring(d + 1, c.length - d) : c
- };
- f.Mb.Oxa = function(c) {
- var d = c.lastIndexOf(".");
- return -1 != d ? c.substring(0, d) : c
- };
- f.Mb.toLowerCase = function(c) {
- return c.toLowerCase()
- };
- f.Mb.rRa = function(c, d) {
- return c.length >= d.length ? 0 == c.lastIndexOf(d) : !1
- };
- f.Mb.concat = function(c, d) {
- return c + d
- };
- f.L.Xp(["ccbi"], f.uqa);
- f.vLa = 0;
- f.jLa = 1;
- f.lMa = 2;
- f.fKa = 3;
- f.fNa = 4;
- f.KJ = f.N.extend({
- Ea: null,
- ctor: function() {
- this.Ea = f.color(0, 0, 0)
- },
- $a: function() {
- return this.Ea
- }
- });
- f.KJ.create = function(c) {
- var d = new f.KJ;
- d && (d.Ea.r = c.r, d.Ea.g = c.g, d.Ea.b = c.b);
- return d
- };
- f.d4 = f.N.extend({
- Kd: null,
- zc: 0,
- iUa: function() {},
- getFloatValue: function() {},
- zSa: function() {},
- BSa: function() {},
- nVa: function() {},
- Uf: function() {
- return this.Kd
- }
- });
- f.d4.create = function() {
- return new f.d4
- };
- f.AJ = f.N.extend({
- Kd: null,
- qba: 0,
- QL: 0,
- XV: 0,
- Uf: function() {
- return this.Kd
- },
- ue: function(c) {
- this.Kd = c
- },
- getTime: function() {
- return this.qba
- },
- setTime: function(c) {
- this.qba = c
- },
- GTa: function() {
- return this.QL
- },
- Iu: function(c) {
- this.QL = c
- },
- FTa: function() {
- return this.XV
- },
- RGa: function(c) {
- this.XV = c
- }
- });
- f.Gja = f.N.extend({
- C: 0,
- nd: "",
- AN: 0,
- pV: 0,
- kL: null,
- JN: null,
- ctor: function() {
- this.nd = ""
- },
- pu: function() {
- return this.C
- },
- Ei: function(c) {
- this.C = c
- },
- getName: function() {
- return this.nd
- },
- gf: function(c) {
- this.nd = c
- },
- NVa: function() {
- return this.AN
- },
- JHa: function(c) {
- this.AN = c
- },
- RSa: function() {
- return this.pV
- },
- FGa: function(c) {
- this.pV = c
- },
- KSa: function() {
- return this.kL
- },
- DGa: function(c) {
- this.kL = c
- },
- TVa: function() {
- return this.JN
- },
- MHa: function(c) {
- this.JN = c
- }
- });
- f.hS = f.N.extend({
- nd: null,
- zc: 0,
- $q: null,
- ctor: function() {
- this.j()
- },
- j: function() {
- this.$q = [];
- this.nd = ""
- },
- getName: function() {
- return this.nd
- },
- gf: function(c) {
- this.nd = c
- },
- IH: function() {
- return this.zc
- },
- aJ: function(c) {
- this.zc = c
- },
- nUa: function() {
- return this.$q
- }
- });
- f.sza = function(c, d, e) {
- var g = r(0, 0);
- 0 === d ? g = c : 1 === d ? (g.x = c.x, g.y = e.height - c.y) : 2 === d ? (g.x = e.width - c.x, g.y = e.height - c.y) : 3 === d ? (g.x = e.width - c.x, g.y = c.y) : 4 === d ? (g.x = e.width * c.x / 100, g.y = e.height * c.y / 100) : 5 === d && (d = f.Mb.qu(), g.x = c.x * d, g.y = c.y * d);
- return g
- };
- f.mW = function(c, d, e, g) {
- var h = r(0, 0);
- 0 === e ? (h.x = c, h.y = d) : 1 === e ? (h.x = c, h.y = g.height - d) : 2 === e ? (h.x = g.width - c, h.y = g.height - d) : 3 === e ? (h.x = g.width - c, h.y = d) : 4 === e ? (h.x = g.width * c / 100, h.y = g.height * d / 100) : 5 === e && (e = f.Mb.qu(), h.x = c * e, h.y = d * e);
- return h
- };
- f.Jha = function(c, d, e, g) {
- if (!c) throw "cc.setRelativeScale(): node should be non-null";
- 5 === g && (g = f.Mb.qu(), d *= g, e *= g);
- c.jb(d);
- c.tb(e)
- };
- f.vKa = f.N.extend({
- vQa: function() {}
- });
- f.a4 = f.N.extend({
- MA: null,
- RF: null,
- gz: null,
- dz: 0,
- gm: null,
- Td: null,
- xN: null,
- Pq: null,
- iG: null,
- ML: null,
- NL: null,
- KL: null,
- LL: null,
- JL: null,
- TV: "",
- SW: "",
- CM: null,
- RW: null,
- OU: null,
- ad: null,
- qn: !1,
- ctor: function() {
- this.xN = t(0, 0);
- this.j()
- },
- j: function() {
- this.MA = [];
- this.RF = new f.uv;
- this.gz = new f.uv;
- this.ML = [];
- this.NL = [];
- this.KL = [];
- this.LL = [];
- this.JL = [];
- this.CM = [];
- this.RW = {};
- return !0
- },
- OVa: function() {
- return this.MA
- },
- j4a: function(c) {
- this.MA = c
- },
- iSa: function() {
- return this.dz
- },
- zGa: function(c) {
- this.dz = c
- },
- GVa: function() {
- return this.gm
- },
- GHa: function(c) {
- this.gm = c
- },
- Lda: function() {
- return this.Td
- },
- HC: function(c) {
- this.Td = c
- },
- wO: function(c) {
- this.LL.push(c)
- },
- vO: function(c) {
- this.KL.push(c)
- },
- uO: function(c) {
- this.JL.push(c)
- },
- Rva: function(c) {
- this.NL.push(c)
- },
- Qva: function(c) {
- this.ML.push(c)
- },
- PGa: function(c) {
- this.TV = c
- },
- ATa: function() {
- return this.TV
- },
- yTa: function() {
- return this.KL
- },
- zTa: function() {
- return this.LL
- },
- xTa: function() {
- return this.JL
- },
- BTa: function() {
- return this.ML
- },
- CTa: function() {
- return this.NL
- },
- oUa: function() {
- return this.SW
- },
- mUa: function() {
- return this.CM
- },
- FVa: function() {
- return this.xN
- },
- J2: function(c) {
- this.xN = t(c.width, c.height)
- },
- NB: function() {
- return this.Pq
- },
- $p: function(c) {
- this.Pq = c
- },
- IVa: function() {
- return this.iG ? this.iG.getName() : null
- },
- hP: function(c) {
- return c ? c.e() : this.xN
- },
- zO: function(c, d) {
- this.RF.ul(d, c)
- },
- Zx: function(c, d, e) {
- var g = this.gz.Jm(d);
- g || (g = new f.uv, this.gz.ul(g, d));
- g.ul(c, e)
- },
- SDa: function(c, d) {
- var e = this.gz,
- g = e.Jm(c);
- null != g && (e.ul(g, d), e.Z1(c));
- e = this.RF;
- g = e.Jm(c);
- null != g && (e.ul(g, d), e.Z1(c))
- },
- tza: function(c) {
- var d = 0,
- e = [];
- c = c.$q;
- for (var g =
- c.length, h = 0; h < g; ++h) {
- var k = c[h],
- m = k.getTime() - d,
- d = k.getTime();
- 0 < m && e.push(f.Nb.create(m));
- m = k.Uf();
- k = m[0];
- m = m[1];
- if (this.qn) k = this.RW[m + ":" + k], null != k && e.push(k);
- else {
- var n;
- m == Zb ? n = this.gm : m == $b && (n = this.Td);
- null != n && (0 < k.length ? (m = 0, null != n.hEa && (m = void 0), 0 == m ? f.log("Skipping selector '" + k + "' since no CCBSelectorResolver is present.") : e.push(f.ua.create(m, n))) : f.log("Unexpected empty selector."))
- }
- }
- return 1 > e.length ? null : f.X.create(e)
- },
- uza: function(c) {
- var d = 0,
- e = [];
- c = c.$q;
- for (var g = c.length, h = 0; h <
- g; ++h) {
- var k = c[h],
- m = k.getTime() - d,
- d = k.getTime();
- 0 < m && e.push(f.Nb.create(m));
- k = k.Uf();
- e.push(f.jS.create(f.Mb.l0() + k[0], parseFloat(k[1]), parseFloat(k[2]), parseFloat(k[3])))
- }
- return 1 > e.length ? null : f.X.create(e)
- },
- S1a: function(c) {
- this.e2(this.zW(c), 0)
- },
- T1a: function(c, d) {
- this.e2(this.zW(c), d)
- },
- e2: function(c, d) {
- if (-1 === c) throw "cc.BuilderAnimationManager.runAnimationsForSequenceIdTweenDuration(): Sequence id should not be -1";
- d = d || 0;
- this.gm.Pm();
- for (var e = this.RF.jB(), g = 0, h = e.length; g < h; g++) {
- var k = e[g];
- k.Pm();
- var m = this.RF.Jm(k).Jm(c),
- n, p = [];
- if (m) {
- var s = m.jB();
- for (n = 0; n < s.length; n++) {
- var u = s[n],
- v = m.Jm(u);
- p.push(u);
- this.qua(k, v, d);
- this.eua(k, v, d)
- }
- }
- if (m = this.gz.Jm(k))
- for (s = m.jB(), n = 0; n < s.length; n++) u = s[n], -1 == p.indexOf(u) && (v = m.Jm(u), null != v && this.eY(u, k, v, d))
- }
- e = this.s$(c);
- g = f.X.create(f.Nb.create(e.pu() + d), f.ua.create(this.hua, this));
- this.gm.V(g);
- e.kL && (g = this.tza(e.kL)) && this.gm.V(g);
- e.JN && (g = this.uza(e.JN)) && this.gm.V(g);
- this.iG = this.s$(c)
- },
- d2: function(c, d) {
- this.e2("string" === typeof c ? this.zW(c) :
- c, d || 0)
- },
- uGa: function(c, d) {
- this.ad = c;
- this.OU = d
- },
- M2a: function(c, d) {
- this.uGa(c, d)
- },
- Jga: function(c, d) {
- this.RW[d] = c
- },
- debug: function() {},
- tF: function(c, d) {
- var e = this.gz.Jm(c);
- return e ? e.Jm(d) : null
- },
- zW: function(c) {
- for (var d = null, e = this.MA, g = 0, h = e.length; g < h; g++)
- if ((d = e[g]) && d.getName() === c) return d.AN;
- return -1
- },
- s$: function(c) {
- for (var d = null, e = this.MA, g = 0, h = e.length; g < h; g++)
- if ((d = e[g]) && d.AN === c) return d;
- return null
- },
- j$: function(c, d, e, g) {
- c = d.getTime() - (c ? c.getTime() : 0);
- var h;
- if ("rotation" === e) return f.gS.create(c,
- d.Uf());
- if ("rotationX" === e) return f.b4.create(c, d.Uf());
- if ("rotationY" === e) return f.c4.create(c, d.Uf());
- if ("opacity" === e) return f.Xc.create(c, d.Uf());
- if ("color" === e) return g = d.Uf().$a(), f.Vy.create(c, g.r, g.g, g.b);
- if ("visible" === e) return d.Uf() ? f.X.create(f.Nb.create(c), f.Ej.create()) : f.X.create(f.Nb.create(c), f.Hl.create());
- if ("displayFrame" === e) return f.X.create(f.Nb.create(c), f.iS.create(d.Uf()));
- if ("position" === e) return e = this.tF(g, e), e = e[2], h = d.Uf(), d = h[0], h = h[1], g = this.hP(g.getParent()), g = f.mW(d,
- h, e, g), f.Dc.create(c, g);
- if ("scale" === e) return e = this.tF(g, e), e = e[2], h = d.Uf(), d = h[0], h = h[1], e === Xb && (g = f.Mb.qu(), d *= g, h *= g), f.Db.create(c, d, h);
- if ("skew" === e) return h = d.Uf(), d = h[0], h = h[1], f.uq.create(c, d, h);
- f.log("BuilderReader: Failed to create animation for property: " + e);
- return null
- },
- eY: function(c, d, e, g) {
- if (0 < g) {
- var h = new f.AJ;
- h.ue(e);
- h.setTime(g);
- h.Iu(1);
- e = this.j$(null, h, c, d);
- d.V(e)
- } else "position" === c ? (c = this.tF(d, c), c = c[2], g = e[0], e = e[1], d.o(f.mW(g, e, c, this.hP(d.getParent())))) : "scale" === c ? (c = this.tF(d,
- c), c = c[2], g = e[0], e = e[1], f.Jha(d, g, e, c)) : "skew" === c ? (g = e[0], e = e[1], d.XI(g), d.YI(e)) : "rotation" === c ? d.yh(e) : "rotationX" == c ? d.h4a(e) : "rotationY" == c ? d.i4a(e) : "opacity" === c ? d.J(e) : "displayFrame" === c ? d.Dd(e) : "color" === c ? (e = e.$a(), 255 === e.r && 255 === e.g && 255 === e.b || d.F(e)) : "visible" === c ? d.za(e || !1) : f.log("unsupported property name is " + c)
- },
- qua: function(c, d, e) {
- var g = d.$q;
- 0 === g.length ? ((g = this.tF(c, d.getName())) || f.log("cc.BuilderAnimationManager._setFirstFrame(): No baseValue found for property"), this.eY(d.getName(),
- c, g, e)) : this.eY(d.getName(), c, g[0].Uf(), e)
- },
- Gra: function(c, d, e) {
- if (1 === d || 0 === d) return c;
- if (2 === d) return f.MD.create(c, e);
- if (3 === d) return f.vs.create(c, e);
- if (4 === d) return f.Cy.create(c, e);
- if (11 === d) return f.wD.create(c);
- if (12 === d) return f.yD.create(c);
- if (13 === d) return f.xD.create(c);
- if (8 === d) return f.AD.create(c);
- if (9 === d) return f.CD.create(c);
- if (10 === d) return f.BD.create(c);
- if (5 === d) return f.JD.create(c, e);
- if (6 === d) return f.LD.create(c, e);
- if (7 === d) return f.KD.create(c, e);
- f.log("BuilderReader: Unkown easing type " +
- d);
- return c
- },
- eua: function(c, d, e) {
- var g = d.$q,
- h = g.length;
- if (1 < h) {
- var k = [];
- e = g[0].getTime() + e;
- 0 < e && k.push(f.Nb.create(e));
- for (e = 0; e < h - 1; ++e) {
- var m = g[e],
- n = this.j$(m, g[e + 1], d.getName(), c);
- n && (n = this.Gra(n, m.QL, m.XV), k.push(n))
- }
- d = f.X.create(k);
- c.V(d)
- }
- },
- hua: function() {
- var c = this.iG;
- this.SW != c.getName() && (this.SW = c.getName());
- c = c.pV;
- this.iG = null; - 1 != c && this.d2(c, 0);
- this.ad && this.OU && this.OU.call(this.ad)
- }
- });
- f.iS = f.Ch.extend({
- pr: null,
- pj: function(c) {
- this.pr = c;
- return !0
- },
- update: function() {
- this.target.Dd(this.pr)
- }
- });
- f.iS.create = function(c) {
- var d = new f.iS;
- return d && d.pj(c) ? d : null
- };
- f.gS = f.M.extend({
- Gw: 0,
- o9: 0,
- j9: 0,
- f: function(c, d) {
- return f.M.prototype.f.call(this, c) ? (this.o9 = d, !0) : !1
- },
- update: function(c) {
- this.target.yh(this.Gw + this.j9 * c)
- },
- R: function(c) {
- f.M.prototype.R.call(this, c);
- this.Gw = this.target.Cx();
- this.j9 = this.o9 - this.Gw
- }
- });
- f.gS.create = function(c, d) {
- var e = new f.gS;
- return e && e.f(c, d) ? e : null
- };
- f.b4 = f.M.extend({});
- f.b4.create = function() {
- throw "rotationX has not been implemented in cocos2d-html5";
- };
- f.c4 = f.M.extend({});
- f.c4.create = function() {
- throw "rotationY has not been implemented in cocos2d-html5";
- };
- f.jS = f.Ch.extend({
- j: function(c) {
- this.ora = c;
- return !0
- },
- update: function() {
- f.pe.zI(this.ora)
- }
- });
- f.jS.create = function(c) {
- var d = new f.jS;
- return d && d.j(c) ? d : null
- };
- f.Rd = {};
- f.Rd.A8 = function(c) {
- for (var d in f.Rd.k1) c[d] = f.Rd.k1[d];
- f.d(c, "x", c.Vc, c.ls);
- f.d(c, "y", c.Zd, c.Lu);
- f.d(c, "width", c.lf, c.Uh);
- f.d(c, "height", c.Gg, c.Th);
- f.d(c, "anchorX", c.l$, c.Xe);
- f.d(c, "anchorY", c.m$, c.Ye);
- f.d(c, "scale", c.AH, c.ib);
- f.d(c, "scaleX", c.sP, c.jb);
- f.d(c, "scaleY", c.BH, c.BH);
- f.d(c, "rotation", c.Cx, c.yh);
- f.d(c, "skewX", c.Uda, c.XI);
- f.d(c, "skewY", c.Vda, c.YI);
- f.d(c, "visible", c.V0, c.za);
- f.d(c, "parent", c.getParent, c.aq);
- f.d(c, "opacity", c.vb, c.J)
- };
- f.Rd.k1 = {
- o: function(c, d) {
- void 0 === d ? (this.oa.x = c.x, this.oa.y = c.y) : (this.oa.x = c, this.oa.y = d);
- this.Ha();
- this.la.nJ(this.oa.x, -this.oa.y)
- },
- Lu: function(c) {
- this.oa.y = c;
- this.Ha();
- this.la.nJ(this.oa.x, -this.oa.y)
- },
- ls: function(c) {
- this.oa.x = c;
- this.Ha();
- this.la.nJ(this.oa.x, -this.oa.y)
- },
- ib: function(c, d) {
- this.ka = c;
- this.ra = d || c;
- this.Ha();
- this.la.resize(this.ka, this.ra)
- },
- jb: function(c) {
- this.ka = c;
- this.Ha();
- this.la.resize(this.ka, this.ra)
- },
- tb: function(c) {
- this.ra = c;
- this.Ha();
- this.la.resize(this.ka, this.ra)
- },
- S: function(c,
- d) {
- var e = this.Eb;
- void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d);
- var g = this.Qb,
- h = this.m;
- g.x = h.width * e.x;
- g.y = h.height * e.y;
- this.la.style[f.mc.yu + "TransformOrigin"] = "" + g.x + "px " + -g.y + "px";
- this.ignoreAnchor ? (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : (this.la.style.marginLeft = this.fDa ? 0 : -g.x + "px", this.la.style.marginBottom = -g.y + "px");
- this.Ha()
- },
- Xe: function(c) {
- var d = this.Eb;
- c !== d.x && (d.x = c, c = this.Qb, c.x = this.m.width * d.x, this.la.style[f.mc.yu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ?
- (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : this.la.style.marginLeft = this.fDa ? 0 : -c.x + "px", this.Ha())
- },
- Ye: function(c) {
- var d = this.Eb;
- c !== d.y && (d.y = c, c = this.Qb, c.y = this.m.height * d.y, this.la.style[f.mc.yu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : this.la.style.marginBottom = -c.y + "px", this.Ha())
- },
- Ga: function(c, d) {
- var e = this.m;
- void 0 === d ? (e.width = c.width, e.height = c.height) : (e.width = c, e.height = d);
- var g = this.Qb,
- h = this.Eb;
- g.x = e.width * h.x;
- g.y = e.height * h.y;
- this.la.width = e.width;
- this.la.height = e.height;
- this.S(this.bk());
- this.canvas && (this.canvas.width = e.width, this.canvas.height = e.height);
- this.Ha();
- this.V1()
- },
- Uh: function(c) {
- var d = this.m;
- c !== d.width && (d.width = c, c = this.Eb, this.Qb.x = d.width * c.x, this.la.width = d.width, this.anchorX = c.x, this.canvas && (this.canvas.width = d.width), this.Ha(), this.V1())
- },
- Th: function(c) {
- var d = this.m;
- c !== d.height && (d.height = c, c = this.Eb, this.Qb.y = d.height * c.y, this.la.height = d.height, this.anchorY = c.y,
- this.canvas && (this.canvas.height = d.height), this.Ha(), this.V1())
- },
- yh: function(c) {
- this.LA != c && (this.bj = this.hm = c, this.Cn = Math.PI / 180 * this.bj, this.Aw = Math.PI / 180 * this.hm, this.Ha(), this.la.rotate(c))
- },
- XI: function(c) {
- this.og = c;
- this.Ha();
- this.la.Pha(this.og, this.pg)
- },
- YI: function(c) {
- this.pg = c;
- this.Ha();
- this.la.Pha(this.og, this.pg)
- },
- za: function(c) {
- this.Na = c;
- this.Ha();
- this.la && (this.la.style.display = c ? "block" : "none")
- },
- Cw: function(c) {
- this.Ya = c;
- this.Ha();
- this.la && (this.la.zIndex = c)
- },
- aq: function(c) {
- this.Yb = c;
- null !== c && (c.S(c.bk()), this.Ha(), f.Rd.EQ(this))
- },
- lk: function() {
- this.Dm().Km(this);
- this.IB().Km(this);
- f.Qa.Km(this);
- this.la && !this.la.parentNode && (this.getParent() ? f.Rd.EQ(this) : this.la.cx(f.container));
- this.la && (this.la.style.visibility = "visible")
- },
- pause: function() {
- this.Dm().as(this);
- this.IB().as(this);
- f.Qa.as(this);
- this.la && (this.la.style.visibility = "hidden")
- },
- De: function() {
- this.Pm();
- this.pJ();
- this.Bk(this.i, f.v.Fj.De);
- this.la && this.la.remove()
- },
- QFa: function() {
- this.la.remove()
- },
- J: function(c) {
- this.Ib =
- c;
- this.la.style.opacity = c / 255
- },
- V1: function() {
- if (this.Mea) {
- var c = this.i;
- this.i = [];
- f.q.prototype.I.call(this, this.vB);
- this.i = c
- } else f.q.prototype.I.call(this, this.vB)
- }
- };
- f.Rd.aua = function() {
- var c = f.mc("#EGLViewDiv");
- if (c) {
- var d = f.view,
- e = d.tH(),
- g = d.ph,
- h = d.Dda(),
- k = d.Qq,
- m = e.width,
- n = e.height;
- 0 === e.width && 0 === e.height && (m = h.width, n = h.height);
- e = g.width / k;
- 0 === g.width && 0 === g.height && (e = h.width);
- c.style.position = "absolute";
- c.style.width = m + "px";
- c.style.maxHeight = n + "px";
- c.style.margin = 0;
- c.resize(d.ka / k, d.ra / k);
- c.style.left = (e - m) / 2 + "px";
- c.style.bottom = "0px"
- }
- };
- f.Rd.EQ = function(c) {
- var d = c.getParent();
- if (d && c.la)
- if (d.la || (f.Rd.placeHolder(d), d.aq = f.Rd.k1.aq), c.la.cx(d.la), d.S(d.bk()), d.getParent()) f.Rd.EQ(d);
- else if (d.dd)
- if (c = f.mc("#EGLViewDiv")) d.la.cx(c);
- else {
- c = f.bD("div");
- c.id = "EGLViewDiv";
- var e = f.view,
- g = e.tH(),
- h = e.ph,
- k = e.Dda(),
- m = e.Qq,
- n = g.width,
- p = g.height;
- 0 === g.width && 0 === g.height && (n = k.width, p = k.height);
- g = h.width / m;
- 0 === h.width && 0 === h.height && (g = k.width);
- c.style.position = "absolute";
- c.style.width = n + "px";
- c.style.maxHeight = p + "px";
- c.style.margin = 0;
- c.resize(e.ka /
- m, e.ra / m);
- c.style.left = (g - n) / 2 + "px";
- c.style.bottom = "0px";
- d.la.cx(c);
- c.cx(f.container)
- }
- };
- f.Rd.setTransform = function(c) {
- if (c.vB)
- if (c.vB.translate(c.Bp().x, c.Bp().y), c.Mea) {
- var d = c.i;
- c.i = [];
- f.q.prototype.I.call(c, c.vB);
- c.i = d
- } else f.q.prototype.I.call(c, c.vB);
- c.la && (c.la.position.x = c.Vc(), c.la.position.y = -c.Zd(), c.la.rotation = c.Cx(), c.la.scale = {
- x: c.ka,
- y: c.ra
- }, c.la.ky = {
- x: c.og,
- y: c.pg
- }, c.S && c.S(c.bk()), c.la.ny())
- };
- f.Rd.jza = function(c) {
- c.la = f.bD("div");
- c.canvas = f.bD("canvas");
- var d = c.e();
- c.canvas.width = d.width;
- c.canvas.height = d.height;
- c.la.style.position = "absolute";
- c.la.style.bottom = 0;
- c.vB = c.canvas.getContext("2d");
- c.la.appendChild(c.canvas);
- c.getParent() && f.Rd.EQ(c);
- c.Mea = !0
- };
- f.Rd.placeHolder = function(c) {
- c.la = f.bD("div");
- c.placeholder = !0;
- c.la.style.position = "absolute";
- c.la.style.bottom = 0;
- c.la.style.width = (c.e().width || f.Q.Y.width) + "px";
- c.la.style.maxHeight = (c.e().height || f.Q.Y.height) + "px";
- c.la.style.margin = 0;
- f.Rd.setTransform(c);
- c.la.ny();
- f.Rd.A8(c)
- };
- f.Rd.l_ = function(c) {
- if (1 < arguments.length) f.Rd.l_(arguments);
- else if (1 != arguments.length || arguments[0].length)
- for (var d = arguments[0], e = 0; e < d.length; e++) d[e] instanceof f.q ? d[e].la || f.Rd.jza(d[e]) : f.log("DOM converter only supports sprite and menuitems yet"), f.Rd.A8(d[e]), d[e].I = function() {}, d[e].transform = function() {}, f.Rd.setTransform(d[e]), d[e].za(d[e].Na);
- else f.Rd.l_([arguments[0]])
- };
- f.ama = 0;
- f.xLa = 1;
- f.ALa = 2;
- f.zLa = 3;
- f.yLa = 4;
- f.jla = 0;
- f.bLa = 1;
- f.cLa = 2;
- f.dLa = 3;
- f.fLa = 4;
- f.aLa = 5;
- f.eLa = 6;
- f.hla = 0;
- f.ila = 1;
- f.$Ka = 2;
- f.ZKa = 3;
- f.YKa = 4;
- f.iLa = f.N.extend({
- iRa: function() {},
- jRa: function() {},
- lRa: function() {},
- kRa: function() {}
- });
- f.WD = f.Xm.extend({
- UV: null,
- Pq: null,
- kra: f.jla,
- jra: f.ila,
- Rsa: f.ama,
- WOa: "",
- wn: "",
- CG: null,
- AA: null,
- $$: 50,
- eqa: 18,
- Sd: null,
- Gz: 14,
- RL: "Arial",
- iN: "",
- $F: 14,
- ZOa: !1,
- ta: "EditBox",
- ctor: function(c) {
- function d() {
- h.blur()
- }
- f.Xm.prototype.ctor.call(this);
- this.CG = f.color.WHITE;
- this.AA = f.color.GRAY;
- this.Ga(c);
- var e = this.UV = new f.q;
- e.ma = function() {};
- this.n(e);
- var g = this,
- h = this.Sd = f.fd("input");
- h.type = "text";
- h.style.fontSize = this.Gz + "px";
- h.style.color = "#000000";
- h.style.border = 0;
- h.style.background = "transparent";
- h.style.width =
- "100%";
- h.style.height = "100%";
- h.style.active = 0;
- h.style.outline = "medium";
- f.ub(h, "input", function() {});
- f.ub(h, "keypress", function(c) {
- c.keyCode === f.Jy.N_ && (c.stopPropagation(), c.preventDefault(), f.Sb.focus())
- });
- f.ub(h, "focus", function() {
- this.value == g.wn && (this.value = "", this.style.fontSize = g.Gz + "px", this.style.color = f.xp(g.CG));
- f.ub(f.Sb, "click", d)
- });
- f.ub(h, "blur", function() {
- "" == this.value && (this.value = g.wn, this.style.fontSize = g.$F + "px", this.style.color = f.xp(g.AA));
- f.Sb.removeEventListener("click", d)
- });
- f.Rd.l_(e);
- e.la.appendChild(h);
- e.la.W4a = !1;
- e.la.style.width = c.width - 6 + "px";
- e.la.style.height = c.height - 6 + "px";
- e.canvas.remove()
- },
- h3a: function(c, d) {
- this.Gz = d;
- this.RL = c;
- this.EN()
- },
- mr: function(c) {
- if (c = f.ia.eM.exec(c)) this.Gz = parseInt(c[1]), this.RL = c[2], this.EN()
- },
- de: function(c) {
- this.RL = c;
- this.EN()
- },
- Qd: function(c) {
- this.Gz = c;
- this.EN()
- },
- EN: function() {
- this.Sd.value != this.wn && (this.Sd.style.fontFamily = this.RL, this.Sd.style.fontSize = this.Gz + "px")
- },
- T2: function(c) {
- f.log("Please use the setString");
- null != c && ("" ==
- c ? (this.Sd.value = this.wn, this.Sd.style.color = f.xp(this.AA)) : (this.Sd.value = c, this.Sd.style.color = f.xp(this.CG)))
- },
- wa: function(c) {
- null != c && ("" == c ? (this.Sd.value = this.wn, this.Sd.style.color = f.xp(this.AA)) : (this.Sd.value = c, this.Sd.style.color = f.xp(this.CG)))
- },
- SGa: function(c) {
- this.CG = c;
- this.Sd.value != this.wn && (this.Sd.style.color = f.xp(c))
- },
- ks: function(c) {
- !isNaN(c) && 0 < c && (this.$$ = c, this.Sd.maxLength = c)
- },
- Ax: function() {
- return this.$$
- },
- Gi: function(c) {
- if (null != c) {
- var d = this.wn;
- this.wn = c;
- this.Sd.value == d &&
- (this.Sd.value = c, this.Sd.style.color = f.xp(this.AA), this.kG())
- }
- },
- W3a: function(c, d) {
- this.iN = c;
- this.$F = d;
- this.kG()
- },
- yua: function(c) {
- if (c = f.ia.eM.exec(c)) this.iN = c[2], this.$F = parseInt(c[1]), this.kG()
- },
- rHa: function(c) {
- this.iN = c;
- this.kG()
- },
- sHa: function(c) {
- this.$F = c;
- this.kG()
- },
- kG: function() {
- this.Sd.value == this.wn && (this.Sd.style.fontFamily = this.iN, this.Sd.style.fontSize = this.$F + "px")
- },
- qHa: function(c) {
- this.AA = c;
- this.Sd.value == this.wn && (this.Sd.style.color = f.xp(c))
- },
- XGa: function(c) {
- this.jra = c;
- this.Sd.type =
- c == f.hla ? "password" : "text"
- },
- fWa: function() {
- f.log("Please use the getString");
- return this.Sd.value
- },
- qc: function() {
- return this.Sd.value
- },
- ACa: function(c, d) {
- return this.yea(d) ? (this.UV.x = 3, this.UV.y = 3, this.$ha(!1), this.He(c), this.y = this.x = 0, this.B8(this, this.JIa, f.G4), !0) : !1
- },
- $p: function(c) {
- this.Pq = c
- },
- RB: function() {
- return this.wn
- },
- YGa: function(c) {
- this.kra = c
- },
- EHa: function(c) {
- this.Rsa = c
- },
- Z0: function(c) {
- var d = f.WD.$h(this);
- d.y -= 4;
- d.nXa(c.end) ? this.eqa = c.end.HUa() - d.IUa() : f.log("needn't to adjust view layout.")
- },
- Pea: function() {},
- Qea: function() {},
- Oea: function() {},
- JIa: function() {},
- bXa: function(c, d) {
- this.ira = c.width;
- this.la.style.width = this.ira.toString() + "px";
- this.hra = c.height;
- this.la.style.height = this.hra.toString() + "px";
- this.la.style.backgroundColor = f.xp(d)
- }
- });
- q = f.WD.prototype;
- f.d(q, "font", null, q.mr);
- f.d(q, "fontName", null, q.de);
- f.d(q, "fontSize", null, q.Qd);
- f.d(q, "fontColor", null, q.SGa);
- f.d(q, "string", q.qc, q.wa);
- f.d(q, "maxLength", q.Ax, q.ks);
- f.d(q, "placeHolder", q.RB, q.Gi);
- f.d(q, "placeHolderFont", null, q.yua);
- f.d(q, "placeHolderFontName", null, q.rHa);
- f.d(q, "placeHolderFontSize", null, q.sHa);
- f.d(q, "placeHolderFontColor", null, q.qHa);
- f.d(q, "inputFlag", null, q.XGa);
- f.d(q, "delegate", null, q.$p);
- f.d(q, "inputMode", null, q.YGa);
- f.d(q, "returnType", null, q.EHa);
- q = null;
- f.WD.$h = function(c) {
- var d = c.e();
- return f.Ki(x(0, 0, d.width, d.height), c.il())
- };
- f.WD.create = function(c, d, e, g) {
- var h = new f.WD(c);
- h.ACa(c, d) && (e && h.aR(e, f.av), g && h.aR(g, f.$u));
- return h
- };
- f.Kl = f.ja.extend({
- lh: null,
- vN: !1,
- Hsa: function(c, d) {
- this.vN = !0;
- this.lh.push(c);
- c.Cw(d)
- },
- ctor: function() {
- f.ja.prototype.ctor.call(this);
- this.lh = []
- },
- bd: function(c, d, e) {
- f.assert(null != c, "child must be non-nil");
- f.assert(!c.parent, "child already added. It can't be added again");
- d = d || c.Ya;
- e && c.Nm(e);
- this.Hsa(c, d);
- c.aq(this);
- c.sha(f.TQ);
- this.dd && (c.ba(), this.AM && c.sj());
- this.dg && this.Hz();
- this.Dg && this.Iz()
- },
- ZAa: function(c) {
- f.assert(c != f.hK, "Invalid tag");
- for (var d = this.lh, e = 0, g = d.length; e < g; e++)
- if (d.Em() ==
- c) return d[e];
- return null
- },
- Ci: function(c, d) {
- null == d && (d = !0);
- var e = this.lh;
- if (0 !== e.length) {
- var g = e.indexOf(c); - 1 < g && (this.dd && (c.uh(), c.Ra()), d && c.De(), c.aq(null), e.splice(g, 1))
- }
- },
- s1a: function(c, d) {
- f.assert(c != f.hK, "Invalid tag");
- null == d && (d = !0);
- var e = this.ZAa(c);
- null == e ? f.log("cocos2d: removeChildByTag(tag \x3d %d): child not found!", c) : this.Ci(e, d)
- },
- b1a: function() {
- this.JFa(!0)
- },
- JFa: function(c) {
- null == c && (c = !0);
- for (var d = this.lh, e = 0, g = d.length; e < g; e++) {
- var h = d[e];
- this.dd && (h.uh(), h.Ra());
- c && h.De();
- h.aq(null)
- }
- d.length = 0
- },
- D1a: function(c, d) {
- f.assert(null != c, "Child must be non-nil");
- this.vN = !0;
- c.sha(f.TQ++);
- c.Cw(d)
- },
- HR: function() {
- if (this.vN) {
- var c = this.lh,
- d = c.length,
- e, g, h;
- for (e = 1; e < d; e++) {
- h = c[e];
- for (g = e - 1; 0 <= g;) {
- if (h.Ya < c[g].Ya) c[g + 1] = c[g];
- else if (h.Ya === c[g].Ya && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
- else break;
- g--
- }
- c[g + 1] = h
- }
- this.vN = !1
- }
- },
- I: null,
- Br: function(c) {
- if (this.Na) {
- c = c || f.s;
- var d, e, g = this.i,
- h, k = this.lh,
- m = this.i.length,
- n = k.length;
- c.save();
- this.transform(c);
- this.kd();
- this.HR();
- for (d =
- 0; d < m; d++)
- if (h = g[d], 0 > h.Ya) h.I(c);
- else break;
- for (e = 0; e < n; e++)
- if (h = k[e], 0 > h.Ya) h.I(c);
- else break;
- for (this.ma(c); d < m; d++) g[d] && g[d].I(c);
- for (; e < n; e++) k[d] && k[d].I(c);
- this.Dk = !1;
- this.arrivalOrder = 0;
- c.restore()
- }
- },
- Uw: function() {
- if (this.Na) {
- var c = f.s,
- d, e = f.Md,
- g;
- e.stack.push(e.top);
- f.Mp(this.uG, e.top);
- e.top = this.uG;
- var h = this.grid;
- h && h.ah && h.dx();
- this.transform();
- var k = this.i,
- m = this.lh,
- n = k.length,
- p = m.length;
- this.kd();
- this.HR();
- for (d = 0; d < n; d++)
- if (k[d] && 0 > k[d].Ya) k[d].I();
- else break;
- for (g = 0; g < p; g++)
- if (m[g] &&
- 0 > m[g].Ya) m[g].I();
- else break;
- for (this.ma(c); d < n; d++) k[d] && k[d].I();
- for (; g < p; g++) m[g] && m[g].I();
- this.arrivalOrder = 0;
- h && h.ah && h.ax(this);
- e.top = e.stack.pop()
- }
- },
- De: function() {
- f.v.prototype.De.call(this);
- for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].De()
- },
- ba: function() {
- f.v.prototype.ba.call(this);
- for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].ba()
- },
- sj: function() {
- f.v.prototype.sj.call(this);
- for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].sj()
- },
- Ra: function() {
- f.v.prototype.Ra.call(this);
- for (var c = this.lh, d =
- 0, e = c.length; d < e; d++) c[d].Ra()
- },
- uh: function() {
- f.v.prototype.uh.call(this);
- for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].uh()
- },
- hc: function(c) {
- this.kb = this.Lg * c / 255;
- this.Jd();
- if (this.Dg) {
- var d, e = this.i,
- g = this.kb;
- c = 0;
- for (d = e.length; c < d; c++) e[c].hc && e[c].hc(g);
- e = this.lh;
- c = 0;
- for (d = e.length; c < d; c++) e[c].hc && e[c].hc(g)
- }
- },
- Wb: function(c) {
- var d = this.Ab,
- e = this.rd;
- d.r = e.r * c.r / 255;
- d.g = e.g * c.g / 255;
- d.b = e.b * c.b / 255;
- this.Jd();
- if (this.dg) {
- var g = this.i;
- c = 0;
- for (e = g.length; c < e; c++) g[c].Wb && g[c].Wb(d);
- g = this.lh;
- c = 0;
- for (e =
- g.length; c < e; c++) g[c].Wb && g[c].Wb(d)
- }
- },
- PQa: function() {
- var c = f.color.WHITE,
- d, e, g = this.i;
- d = 0;
- for (e = g.length; d < e; d++) g[d].Wb(c);
- g = this.lh;
- d = 0;
- for (e = g.length; d < e; d++) g[d].Wb(c)
- }
- });
- f.Kl.prototype.I = f.K === f.fb ? f.Kl.prototype.Br : f.Kl.prototype.Uw;
- f.Kl.create = function() {
- return new f.Kl
- };
- var kc = kc || f.N;
- kc.extend = kc.extend || f.N.extend;
- var lc = lc || f.Kl;
- lc.extend = lc.extend || f.Kl.extend;
- var y = lc.extend({
- $c: !0,
- Fv: !0,
- bO: !1,
- Gv: null,
- jO: !1,
- qm: null,
- cB: null,
- xr: null,
- Jn: null,
- Kn: null,
- nd: "default",
- Cr: null,
- zq: 0,
- ea: t(0, 0),
- pb: null,
- lA: null,
- st: 0,
- Sq: !1,
- Qj: !0,
- Gb: !1,
- MU: !1,
- OA: null,
- ng: null,
- vh: null,
- Hd: null,
- LOa: !1,
- Rv: !1,
- xt: null,
- vi: null,
- Ea: null,
- ta: "Widget",
- Fb: !1,
- Hb: !1,
- Ib: 255,
- DF: !1,
- In: null,
- ctor: function() {
- f.Kl.prototype.ctor.call(this);
- this.Gv = y.aS;
- this.qm = r(0, 0);
- this.cB = r(0, 0);
- this.xr = r(0, 0);
- this.Cr = y.sE;
- this.ea = t(0, 0);
- this.pb = t(0, 0);
- this.lA = {};
- this.OA = y.e7;
- this.ng = r(0, 0);
- this.vh = y.G6;
- this.Hd = r(0, 0);
- this.xt = [];
- this.Ea = f.color(255, 255, 255, 255);
- this.st = mc.NONE;
- this.j()
- },
- j: function() {
- return f.Kl.prototype.j.call(this) ? (this.lA = {}, this.fl(), this.eR(!0), this.kI = this.aEa.bind(this), this.yQ = null, this.S(r(0.5, 0.5)), this.df(!0), this.Gu(!0), this.Hu(!0), !0) : !1
- },
- ba: function() {
- this.Jia();
- f.Kl.prototype.ba.call(this)
- },
- Ra: function() {
- this.UC();
- f.Kl.prototype.Ra.call(this)
- },
- I: function(c) {
- this.Na && (this.On(), f.Kl.prototype.I.call(this, c))
- },
- ug: function() {
- var c = this.getParent();
- return c instanceof y ? c : null
- },
- Qf: function(c) {
- var d =
- this.ea;
- this.Gb ? (d.width = c.width, d.height = c.height) : (d.width = this.pb.width, d.height = this.pb.height);
- this.kc()
- },
- F$: function() {
- var c = this.k$(this);
- return null == c ? !0 : c && !c.isEnabled() ? !1 : c.F$()
- },
- k$: function(c) {
- if (null == c) return null;
- c = c.getParent();
- return null == c ? null : c instanceof y ? c : this.k$(c.getParent())
- },
- G$: function(c) {
- return null == c ? !0 : (c = c.getParent()) && !c.Na ? !1 : this.G$(c)
- },
- DNa: function() {
- this.nra.removeEventListener(this.vi);
- this.hn == this && (this.hn = null)
- },
- Lb: function(c) {
- this.$c = c
- },
- fl: function() {},
- zO: function(c, d, e) {
- c instanceof y ? f.log("Please use addChild to add a Widget.") : (f.v.prototype.n.call(this, c, d, e), this.xt.push(c))
- },
- nP: function(c) {
- for (var d = this.xt, e = 0; e < d.length; e++) {
- var g = d[e];
- if (g && g.Em() == c) return g
- }
- return null
- },
- Ida: function() {
- return this.xt
- },
- removeNode: function(c) {
- f.v.prototype.removeChild.call(this, c);
- f.Ld(this.xt, c)
- },
- nga: function(c) {
- var d = this.nP(c);
- d ? this.removeNode(d) : f.log("cocos2d: removeNodeByTag(tag \x3d %d): child not found!", c)
- },
- jga: function() {
- for (var c = 0; c < this.xt.length; c++) f.v.prototype.removeChild.call(this,
- this.xt[c]);
- this.xt.length = 0
- },
- Df: function(c) {
- var d = this.pb.width = c.width;
- c = this.pb.height = c.height;
- this.Gb && (d = this.width, c = this.height);
- this.ea.width = d;
- this.ea.height = c;
- this.dd && ((c = this.ug()) ? (d = c.width, c = c.height) : (d = this.Yb.width, c = this.Yb.height), this.ng.x = 0 < d ? this.pb.width / d : 0, this.ng.y = 0 < c ? this.pb.height / c : 0);
- this.kc()
- },
- Uh: function(c) {
- c = this.pb.width = c;
- this.Gb && (c = this.width);
- this.ea.width = c;
- this.dd && (c = (c = this.ug()) ? c.width : this.Yb.width, this.ng.x = 0 < c ? this.pb.width / c : 0);
- this.kc()
- },
- Th: function(c) {
- c =
- this.pb.height = c;
- this.Gb && (c = this.height);
- this.ea.height = c;
- this.dd && (c = (c = this.ug()) ? c.height : this.Yb.height, this.ng.y = 0 < c ? this.pb.height / c : 0);
- this.kc()
- },
- Oha: function(c) {
- this.ng.x = c.x;
- this.ng.y = c.y;
- var d = this.pb.width,
- e = this.pb.height;
- this.dd && ((e = this.ug()) ? (d = e.width * c.x, e = e.height * c.y) : (d = this.Yb.width * c.x, e = this.Yb.height * c.y));
- this.Gb || (this.ea.width = d, this.ea.height = e);
- this.pb.width = d;
- this.pb.height = e;
- this.kc()
- },
- Vua: function(c) {
- this.ng.x = c;
- var d = this.pb.width;
- this.dd && (d = this.ug(), d = (d ? d.width :
- this.Yb.width) * c);
- this.Gb || (this.ea.width = d);
- this.pb.width = d;
- this.kc()
- },
- sua: function(c) {
- this.ng.y = c;
- var d = this.pb.height;
- this.dd && (d = this.ug(), d = (d ? d.height : this.Yb.height) * c);
- this.Gb || (this.ea.height = d);
- this.pb.height = d;
- this.kc()
- },
- Jia: function(c) {
- c || (c = (c = this.ug()) ? c.qAa() : this.Yb.e());
- var d;
- switch (this.OA) {
- case y.e7:
- d = this.Gb ? this.e() : this.pb;
- this.ea.width = d.width;
- this.ea.height = d.height;
- var e = d = 0;
- 0 < c.width && (d = this.pb.width / c.width);
- 0 < c.height && (e = this.pb.height / c.height);
- this.ng.x = d;
- this.ng.y =
- e;
- break;
- case y.Ona:
- e = t(c.width * this.ng.x, c.height * this.ng.y), d = this.Gb ? this.Wn() : e, this.ea.width = d.width, this.ea.height = d.height, this.pb.width = e.width, this.pb.height = e.height
- }
- this.kc();
- d = this.Od();
- switch (this.vh) {
- case y.G6:
- 0 >= c.width || 0 >= c.height ? (this.Hd.x = 0, this.Hd.y = 0) : (this.Hd.x = d.x / c.width, this.Hd.y = d.y / c.height);
- break;
- case y.H6:
- d = r(c.width * this.Hd.x, c.height * this.Hd.y)
- }
- this.o(d)
- },
- P2: function(c) {
- this.OA = c
- },
- lBa: function() {
- return this.OA
- },
- df: function(c) {
- this.Gb != c && (c = (this.Gb = c) ? this.e() : this.pb,
- this.ea.width = c.width, this.ea.height = c.height, this.kc())
- },
- EXa: function() {
- return this.Gb
- },
- CH: function() {
- return t(this.ea)
- },
- mTa: function() {
- return t(this.pb)
- },
- qAa: function() {
- return t(this.ea)
- },
- SVa: function() {
- return r(this.ng)
- },
- lsa: function() {
- return this.ng.x
- },
- Mra: function() {
- return this.ng.y
- },
- MWa: function() {
- return this.um(r(this.Eb.x * this.m.width, this.Eb.y * this.m.height))
- },
- Jr: function() {
- return this
- },
- Wn: function() {
- return t(this.m)
- },
- kc: function() {
- this.Ga(this.ea);
- for (var c = this.re(), d = 0, e = c.length; d < e; d++) {
- var g =
- c[d];
- g instanceof y && g.Jia()
- }
- },
- e: function() {
- return this.ea
- },
- lf: function() {
- return this.ea.width
- },
- Gg: function() {
- return this.ea.height
- },
- Om: function(c) {
- this.bO !== c && ((this.bO = c) ? (this.vi = f.Xa.create({
- event: f.Xa.zs,
- QC: !0,
- rc: this.rc.bind(this),
- hd: this.hd.bind(this),
- gd: this.gd.bind(this)
- }), f.Qa.addListener(this.vi, this)) : f.Qa.removeListener(this.vi))
- },
- U0: function() {
- return this.bO
- },
- UP: function() {
- return this.DF
- },
- xj: function(c) {
- c != this.DF && (this.DF = c, this.Fv ? this.DF ? this.o2(y.$R) : this.o2(y.iD) : this.vC())
- },
- CR: function(c) {
- this.jO != c && ((this.jO = c) ? this.ds() : this.UC())
- },
- gDa: function() {
- return this.jO
- },
- WCa: function() {
- return this.Sq
- },
- hR: function(c) {
- if (this.Sq = c) this.hn = this
- },
- DXa: function() {
- return this.Qj
- },
- g3a: function(c) {
- this.Sq = c
- },
- Tf: function(c, d) {
- if (null == this.yQ || null == this.yQ(c)) {
- var e = d instanceof D;
- if (this.Sq || e) {
- var g = this.getParent();
- return null == g ? e ? d.Tf(c, d) : d : g.Tf(c, d)
- }
- return d
- }
- e = this.yQ(c);
- this.nx(this, e);
- return e
- },
- F1a: function() {
- this != this.hn && this.nx(this.hn, this)
- },
- gTa: function() {
- return this.hn
- },
- oRa: function() {},
- kI: null,
- yQ: null,
- Nr: function(c, d, e) {
- var g = this.ug();
- g && g.Nr(c, d, e)
- },
- aEa: function(c, d) {
- c && c.hR(!1);
- d && d.hR(!0)
- },
- nx: function(c, d) {
- c && !c.Sq && (c = this.hn);
- d != c && (d && d.kI && d.kI(c, d), c && d.kI && c.kI(c, d), f.Qa.dispatchEvent(new f.yla(c, d)))
- },
- eR: function(c) {
- (this.Fv = c) ? (this.Gv = y.aS, this.o2(y.iD)) : this.vC()
- },
- o2: function(c) {
- if (this.Gv != c) switch (this.Gv = c = c || y.iD, this.Gv) {
- case y.iD:
- this.rI();
- break;
- case y.$R:
- this.sI()
- }
- },
- rI: function() {},
- sI: function() {},
- vC: function() {},
- Uxa: function() {},
- rc: function(c) {
- this.Rv = !1;
- if (this.Na && this.isEnabled() && this.F$() && this.G$(this)) {
- var d = c.cf();
- this.qm.x = d.x;
- this.qm.y = d.y;
- this.WB(this.qm) && this.P0(this.qm) && (this.Rv = !0)
- }
- if (!this.Rv) return !1;
- this.xj(!0);
- (d = this.ug()) && d.Nr(y.WT, this, c);
- this.sFa();
- return !0
- },
- hd: function(c) {
- var d = c.cf();
- this.cB.x = d.x;
- this.cB.y = d.y;
- this.xj(this.WB(d));
- (d = this.ug()) && d.Nr(y.qE, this, c);
- this.ofa()
- },
- gd: function(c) {
- var d = c.cf();
- this.xr.x = d.x;
- this.xr.y = d.y;
- (d = this.ug()) && d.Nr(y.CK, this, c);
- c = this.DF;
- this.xj(!1);
- c ? this.X1() : this.mca()
- },
- ef: function() {
- this.xj(!1);
- this.mca()
- },
- N_a: function() {},
- sFa: function() {
- this.In && this.In(this, y.WT);
- this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.Ooa)
- },
- ofa: function() {
- this.In && this.In(this, y.qE);
- this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.qE)
- },
- X1: function() {
- this.In && this.In(this, y.CK);
- this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.CK)
- },
- mca: function() {
- this.In && this.In(this, y.XT);
- this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.XT)
- },
- n_a: function() {},
- DPa: function(c, d) {
- void 0 === d ? this.In = c : (this.Kn = c, this.Jn = d)
- },
- WB: function(c) {
- return f.Bu(x(0,
- 0, this.m.width, this.m.height), this.yi(c))
- },
- P0: function(c) {
- this.MU = !1;
- for (var d = this.getParent(), e = null; d;) {
- if (d instanceof D && d.Lq) {
- this.MU = !0;
- e = d;
- break
- }
- d = d.getParent()
- }
- return this.MU ? e ? e.WB(c) ? e.P0(c) : !1 : !0 : !0
- },
- oQa: function(c) {
- f.log("clippingParentAreaContainPoint is deprecated. Please use isClippingParentContainsPoint instead.");
- this.P0(c)
- },
- Swa: function(c, d, e) {
- var g = this.ug();
- g && g.Swa(c, d, e)
- },
- o: function(c, d) {
- if (this.dd) {
- var e = this.ug();
- e && (e = e.CH(), 0 >= e.width || 0 >= e.height ? (this.Hd.x = 0, this.Hd.y =
- 0) : d ? (this.Hd.x = c / e.width, this.Hd.y = d / e.height) : (this.Hd.x = c.x / e.width, this.Hd.y = c.y / e.height))
- }
- f.v.prototype.o.call(this, c, d)
- },
- ls: function(c) {
- if (this.dd) {
- var d = this.ug();
- d && (d = d.width, this.Hd.x = 0 >= d ? 0 : c / d)
- }
- f.v.prototype.ls.call(this, c)
- },
- Lu: function(c) {
- if (this.dd) {
- var d = this.ug();
- d && (d = d.height, this.Hd.y = 0 >= d ? 0 : c / d)
- }
- f.v.prototype.Lu.call(this, c)
- },
- D2: function(c) {
- this.Hd = c;
- this.dd && (c = this.ug()) && (c = c.CH(), this.o(c.width * this.Hd.x, c.height * this.Hd.y))
- },
- Wua: function(c) {
- this.Hd.x = c;
- if (this.dd) {
- var d =
- this.ug();
- d && this.ls(d.width * c)
- }
- },
- Xua: function(c) {
- this.Hd.y = c;
- if (this.dd) {
- var d = this.ug();
- d && this.Lu(d.height * c)
- }
- },
- WIa: function() {
- this.S(this.bk())
- },
- qVa: function() {
- return r(this.Hd)
- },
- msa: function() {
- return this.Hd.x
- },
- nsa: function() {
- return this.Hd.y
- },
- E2: function(c) {
- this.vh = c
- },
- VAa: function() {
- return this.vh
- },
- Pd: function(c) {
- this.Fb = c;
- this.sk()
- },
- XH: function() {
- return this.Fb
- },
- Yf: function(c) {
- this.Hb = c;
- this.Al()
- },
- YH: function() {
- return this.Hb
- },
- sk: function() {},
- Al: function() {},
- On: function() {},
- RCa: function() {
- return this.Fv
- },
- isEnabled: function() {
- return this.$c
- },
- Ac: function() {
- return this.Vc() - this.Eb.x * this.ea.width
- },
- yd: function() {
- return this.Zd() - this.Eb.y * this.ea.height
- },
- Kc: function() {
- return this.Ac() + this.ea.width
- },
- Fe: function() {
- return this.yd() + this.ea.height
- },
- AWa: function() {
- f.log("getTouchStartPos is deprecated. Please use getTouchBeganPosition instead.");
- return this.t0()
- },
- t0: function() {
- return r(this.qm)
- },
- yWa: function() {
- f.log("getTouchMovePos is deprecated. Please use getTouchMovePosition instead.");
- return this.CBa()
- },
- CBa: function() {
- return r(this.cB)
- },
- wWa: function() {
- f.log("getTouchEndPos is deprecated. Please use getTouchEndPosition instead.");
- return this.BBa()
- },
- BBa: function() {
- return r(this.xr)
- },
- gf: function(c) {
- this.nd = c
- },
- getName: function() {
- return this.nd
- },
- QBa: function() {
- return this.Cr
- },
- by: function(c) {
- c && (this.lA[c.Bm()] = c, this.st = c.Bm())
- },
- dl: function(c) {
- c = c || this.st;
- return this.lA[c]
- },
- dk: function() {
- return "Widget"
- },
- p: function() {
- var c = this.Zh();
- c.lx(this);
- c.kx(this);
- return c
- },
- Zh: function() {
- return y.create()
- },
- kx: function(c) {
- c =
- c.re();
- for (var d = 0; d < c.length; d++) {
- var e = c[d];
- e instanceof y && this.n(e.p())
- }
- },
- zi: function() {},
- lx: function(c) {
- this.Lb(c.isEnabled());
- this.za(c.Na);
- this.eR(c.Fv);
- this.Om(c.U0());
- this.tl(c.Ya);
- this.CR(c.jO);
- this.Nm(c.Em());
- this.gf(c.getName());
- this.Vx(c.zq);
- this.Gb.width = c.Gb.width;
- this.Gb.height = c.Gb.height;
- this.ea.width = c.ea.width;
- this.ea.height = c.ea.height;
- this.pb.width = c.pb.width;
- this.pb.height = c.pb.height;
- this.zi(c);
- this.OA = c.OA;
- this.ng.x = c.ng.x;
- this.ng.y = c.ng.y;
- this.vh = c.vh;
- this.Hd.x = c.Hd.x;
- this.Hd.y =
- c.Hd.y;
- this.o(c.Od());
- this.S(c.bk());
- this.jb(c.ka);
- this.tb(c.ra);
- this.yh(c.Cx());
- this.M2(c.bj);
- this.N2(c.hm);
- this.Pd(c.XH());
- this.Yf(c.YH());
- this.F(c.$a());
- this.J(c.vb());
- this.In = c.In;
- this.Jn = c.Jn;
- this.Kn = c.Kn;
- this.Sq = c.Sq;
- this.Qj = c.Qj;
- for (var d in c.lA) {
- var e = c.lA[d];
- e && this.by(e.p())
- }
- this.kc()
- },
- Vx: function(c) {
- this.zq = c
- },
- lda: function() {
- return this.zq
- },
- $a: function() {
- return f.color(this.Ea.r, this.Ea.g, this.Ea.b, this.Ea.a)
- },
- J: function(c) {
- c !== this.Ea.a && (this.Ea.a = c, this.WC(c))
- },
- vb: function() {
- return this.kb
- },
- WC: function(c) {
- for (var d in this.i) {
- var e = this.i[d];
- e && e.wb && e.J(c)
- }
- },
- Ii: function(c) {
- c.wb && c.F(this.Ea)
- },
- Cl: function(c) {
- c.wb && c.J(this.Ea.a)
- },
- M5a: function(c) {
- c.F(this.Ea);
- c.J(this.Ib)
- }
- }),
- q = y.prototype;
- f.d(q, "xPercent", q.msa, q.Wua);
- f.d(q, "yPercent", q.nsa, q.Xua);
- f.d(q, "widthPercent", q.lsa, q.Vua);
- f.d(q, "heightPercent", q.Mra, q.sua);
- f.d(q, "widgetParent", q.ug);
- f.d(q, "enabled", q.isEnabled, q.Lb);
- f.d(q, "focused", q.WCa, q.hR);
- f.d(q, "sizeType", q.lBa, q.P2);
- f.d(q, "widgetType", q.QBa);
- f.d(q, "touchEnabled", q.U0, q.Om);
- f.d(q, "updateEnabled", q.gDa, q.CR);
- f.d(q, "bright", q.RCa, q.eR);
- f.d(q, "name", q.getName, q.gf);
- f.d(q, "actionTag", q.lda, q.Vx);
- f.d(q, "opacity", q.vb, q.J);
- q = null;
- y.create = function() {
- return new y
- };
- y.aS = -1;
- y.iD = 0;
- y.$R = 1;
- y.sE = 0;
- y.Roa = 1;
- y.$m = 0;
- y.Ll = 1;
- y.Ol = 0;
- y.Ym = 1;
- y.Oa = 0;
- y.cb = 1;
- y.Ooa = 0;
- y.qE = 1;
- y.CK = 2;
- y.XT = 3;
- y.e7 = 0;
- y.Ona = 1;
- y.G6 = 0;
- y.H6 = 1;
- f.yla = f.ve.extend({
- Eva: null,
- Fva: null,
- ctor: function(c, d) {
- this.Eva = d;
- this.Fva = c
- }
- });
- var D = y.extend({
- Lq: !1,
- Os: null,
- Fd: null,
- ZK: null,
- KE: null,
- Ws: null,
- LE: y.Oa,
- ii: null,
- mf: null,
- Ea: null,
- Ng: null,
- Jf: null,
- Oi: null,
- Ib: 255,
- $K: null,
- tt: null,
- gh: !0,
- qL: !0,
- Mq: null,
- eg: null,
- FW: !1,
- NOa: !1,
- Po: null,
- wV: null,
- ta: "Layout",
- Bq: null,
- Ka: 0,
- La: 0,
- KNa: 0,
- RNa: 0,
- MNa: 0,
- PNa: 0,
- QNa: 0,
- LNa: 0,
- NNa: 0,
- ONa: 0,
- JNa: 0,
- GNa: 0,
- HNa: 0,
- INa: 0,
- J8: 0,
- yOa: 0,
- aw: !1,
- pw: !1,
- Yq: !1,
- ctor: function() {
- this.tt = D.Ria;
- this.Cr = y.Roa;
- this.Mq = D.BJ;
- this.Ws = D.V3;
- y.prototype.ctor.call(this);
- this.KE = x(0, 0, 0, 0);
- this.Ea = f.color(255, 255, 255, 255);
- this.Ng = f.color(255, 255,
- 255, 255);
- this.Jf = f.color(255, 255, 255, 255);
- this.Oi = r(0, -1);
- this.$K = t(0, 0);
- this.Po = x(0, 0, 0, 0);
- this.Bq = f.color(255, 255, 255, 255)
- },
- ba: function() {
- y.prototype.ba.call(this);
- this.eg && this.eg.ba();
- this.qL = this.gh = !0
- },
- Ra: function() {
- y.prototype.Ra.call(this);
- this.eg && this.eg.Ra()
- },
- C3a: function(c) {
- this.aw = c
- },
- KXa: function() {
- return this.aw
- },
- U3a: function(c) {
- this.pw = c
- },
- PXa: function() {
- return this.pw
- },
- Tf: function(c, d) {
- if (this.Yq || this.Sq) {
- var e = this.getParent();
- this.Yq = !1;
- if (this.pw) {
- var g = this.pw(c, d);
- return g instanceof
- D && e ? (e.Yq = !0, e.Tf(c, this)) : g
- }
- if (null == e) return this;
- e.Yq = !0;
- return e.Tf(c, this)
- }
- if (d.Sq || d instanceof D)
- if (this.tt == D.oq) switch (c) {
- case y.$m:
- return this.lM(c, d);
- case y.Ll:
- return this.kM(c, d);
- case y.Ym:
- case y.Ol:
- return this.Zo(this, c) ? this.Yv(d, c) ? this.Tf(c, this) : d : this.Tf(c, this);
- default:
- return f.assert(0, "Invalid Focus Direction"), d
- } else if (this.tt == D.pq) switch (c) {
- case y.$m:
- case y.Ll:
- return this.Zo(this, c) ? this.Yv(d, c) ? this.Tf(c, this) : d : this.Tf(c, this);
- case y.Ym:
- return this.kM(c, d);
- case y.Ol:
- return this.lM(c,
- d);
- default:
- return f.assert(0, "Invalid Focus Direction"), d
- } else return f.assert(0, "Un Supported Layout type, please use VBox and HBox instead!!!"), d;
- else return d
- },
- uC: null,
- j: function() {
- return y.prototype.j.call(this) ? (this.df(!1), this.Df(t(0, 0)), this.S(0, 0), this.uC = this.pF.bind(this), !0) : !1
- },
- Zpa: function(c) {
- c = c || f.s;
- for (var d = this.eg, e = f.view.ka, g = f.view.ra, h = 0; h < d.cc.length; h++) {
- var k = d.cc[h].zg,
- m = k[0];
- c.beginPath();
- c.moveTo(m.x * e, -m.y * g);
- for (var m = 1, n = k.length; m < n; m++) c.lineTo(k[m].x * e, -k[m].y * g)
- }
- },
- n: function(c, d, e) {
- c instanceof y && this.qia(c);
- y.prototype.n.call(this, c, d, e);
- this.gh = !0
- },
- removeChild: function(c, d) {
- y.prototype.removeChild.call(this, c, d);
- this.gh = !0
- },
- Cf: function(c) {
- y.prototype.Cf.call(this, c);
- this.gh = !0
- },
- Cu: function(c) {
- y.prototype.Cu(c);
- this.gh = !0
- },
- SCa: function() {
- return this.Lq
- },
- I: function(c) {
- if (this.Na)
- if (this.On(), this.Wl(), this.Lq) switch (this.Mq) {
- case D.BJ:
- this.i3(c);
- break;
- case D.i4:
- this.h2(c)
- } else y.prototype.I.call(this, c)
- },
- kd: function() {
- y.prototype.kd.call(this);
- this.Wl()
- },
- i3: null,
- fva: function(c) {
- var d = c || f.s;
- if (this.eg && this.eg.Na)
- if (D.rn = -1, D.rn + 1 == f.ly) D.Vw = !0, D.Vw && (f.log("Nesting more than " + f.ly + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), D.Vw = !1), f.v.prototype.I.call(this, c);
- else {
- D.rn++;
- var e = 1 << D.rn,
- g = e | e - 1;
- c = d.isEnabled(d.STENCIL_TEST);
- var h = d.getParameter(d.STENCIL_WRITEMASK),
- k = d.getParameter(d.STENCIL_FUNC),
- m = d.getParameter(d.STENCIL_REF),
- n = d.getParameter(d.STENCIL_VALUE_MASK),
- p = d.getParameter(d.STENCIL_FAIL),
- s = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL),
- u = d.getParameter(d.STENCIL_PASS_DEPTH_PASS);
- d.enable(d.STENCIL_TEST);
- d.stencilMask(e);
- var v = d.getParameter(d.DEPTH_WRITEMASK);
- d.depthMask(!1);
- d.stencilFunc(d.NEVER, e, e);
- d.stencilOp(d.ZERO, d.KEEP, d.KEEP);
- f.If.H_(r(0, 0), f.Jfa(), f.color(255, 255, 255, 255));
- d.stencilFunc(d.NEVER, e, e);
- d.stencilOp(d.REPLACE, d.KEEP, d.KEEP);
- f.Rr();
- this.transform();
- this.eg.I();
- d.depthMask(v);
- d.stencilFunc(d.EQUAL, g, g);
- d.stencilOp(d.KEEP, d.KEEP, d.KEEP);
- g = e = 0;
- this.kd();
- this.HR();
- for (var v =
- this.i, z = this.lh, A = v.length, B = z.length, C; e < A; e++)
- if ((C = v[e]) && 0 > C.Ya) C.I();
- else break;
- for (; g < B; g++)
- if ((C = z[g]) && 0 > C.Ya) C.I();
- else break;
- for (this.ma(); e < A; e++) v[e].I();
- for (; g < B; g++) z[g].I();
- d.stencilFunc(k, m, n);
- d.stencilOp(p, s, u);
- d.stencilMask(h);
- c || d.disable(d.STENCIL_TEST);
- D.rn--;
- f.Qr()
- }
- },
- nba: function(c) {
- if (this.eg && this.eg.Na) {
- c = c || f.s;
- if (this.Hv() || this.eg instanceof f.q) {
- var d = c.canvas,
- e = D.AW();
- e.width = d.width;
- e.height = d.height;
- e.getContext("2d").drawImage(d, 0, 0);
- c.save();
- f.v.prototype.I.call(this,
- c);
- c.globalCompositeOperation = "destination-in";
- this.transform(c);
- this.eg.I();
- c.restore();
- c.save();
- c.setTransform(1, 0, 0, 1, 0, 0);
- c.globalCompositeOperation = "destination-over";
- c.drawImage(e, 0, 0)
- } else {
- var e = this.i,
- g;
- c.save();
- this.transform(c);
- this.eg.I(c);
- c.clip();
- this.Hv(!0);
- this.kd();
- this.HR();
- for (var h, k = this.lh, m = e.length, n = k.length, d = 0; d < m; d++)
- if ((g = e[d]) && 0 > g.Ya) g.I(c);
- else break;
- for (h = 0; h < n; h++)
- if ((g = k[h]) && 0 > g.Ya) g.I(c);
- else break;
- for (; d < m; d++) e[d].I(c);
- for (; h < n; h++) k[h].I(c);
- this.Hv(!1)
- }
- c.restore()
- }
- },
- BF: !1,
- Hv: function(c) {
- if (!0 === c || !1 === c) f.Wc.prototype.BF = c;
- return f.Wc.prototype.BF
- },
- h2: null,
- fua: function(c) {
- var d = this.tda();
- c = c || f.s;
- this.FW && c.enable(c.SCISSOR_TEST);
- f.view.vR(d.x, d.y, d.width, d.height);
- f.v.prototype.I.call(this);
- this.FW && c.disable(c.SCISSOR_TEST)
- },
- Zp: function(c) {
- if (c != this.Lq) switch (this.Lq = c, this.Mq) {
- case D.BJ:
- c ? (this.eg = f.Yg.create(), f.K === f.fb && (this.eg.ma = this.Zpa.bind(this)), this.dd && this.eg.ba(), this.Vha(this.m)) : (this.dd && this.eg.Ra(), this.eg = null)
- }
- },
- Oga: function(c) {
- if (c !=
- this.Mq) {
- var d = this.Lq;
- this.Zp(!1);
- this.Mq = c;
- this.Zp(d)
- }
- },
- WSa: function() {
- return this.Mq
- },
- Vha: function(c) {
- if (this.Lq && this.Mq == D.BJ) {
- var d = [];
- d[0] = r(0, 0);
- d[1] = r(c.width, 0);
- d[2] = r(c.width, c.height);
- d[3] = r(0, c.height);
- c = f.color.GREEN;
- this.eg.clear();
- this.eg.Sf(d, 4, c, 0, c)
- }
- },
- C1a: function() {
- this.Wl()
- },
- tda: function() {
- if (this.qL) {
- var c = this.um(r(0, 0)),
- d = this.il(),
- e = this.m.width * d.a,
- d = this.m.height * d.P,
- g;
- g = this;
- for (var h = !1; g;)
- if ((g = g.getParent()) && g instanceof D && g.Lq && (h || (this.wV = g, h = !0), g.Mq == D.i4)) {
- this.FW = !1;
- break
- }
- if (this.wV) {
- g = this.wV.tda();
- var h = c.x - e * this.Eb.x,
- k = c.y - d * this.Eb.y,
- m = e,
- n = d,
- p = c.x - g.x;
- 0 > p && (h = g.x, m += p);
- e = c.x + e - (g.x + g.width);
- 0 < e && (m -= e);
- e = c.y + d - (g.y + g.height);
- 0 < e && (n -= e);
- c = c.y - g.y;
- 0 > c && (k = g.x, n += c);
- 0 > m && (m = 0);
- 0 > n && (n = 0);
- this.Po.x = h;
- this.Po.y = k;
- this.Po.width = m;
- this.Po.height = n
- } else this.Po.x = c.x - e * this.Eb.x, this.Po.y = c.y - d * this.Eb.y, this.Po.width = e, this.Po.height = d;
- this.qL = !1
- }
- return this.Po
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.Vha(this.m);
- this.qL = this.gh = !0;
- this.Fd && (this.Fd.o(0.5 *
- this.m.width, 0.5 * this.m.height), this.Os && this.Fd instanceof f.Ua && this.Fd.He(this.m));
- this.ii && this.ii.Ga(this.m);
- this.mf && this.mf.Ga(this.m)
- },
- $Q: function(c) {
- this.Os != c && (this.Ci(this.Fd), this.Fd = null, this.Os = c, this.Mba(), this.Eu(this.ZK, this.LE), this.KI(this.KE))
- },
- sXa: function() {
- return this.Os
- },
- Eu: function(c, d) {
- if (c) {
- d = d || y.Oa;
- null == this.Fd && this.Mba();
- this.ZK = c;
- this.LE = d;
- if (this.Os) {
- var e = this.Fd;
- switch (this.LE) {
- case y.Oa:
- e.Ge(c);
- break;
- case y.cb:
- e.hl(c)
- }
- e.He(this.m)
- } else switch (e = this.Fd, this.LE) {
- case y.Oa:
- e.ab(c);
- break;
- case y.cb:
- e.Dd(c)
- }
- this.$K = this.Fd.e();
- this.Fd.o(this.m.width / 2, this.m.height / 2);
- this.Cba()
- }
- },
- KI: function(c) {
- this.KE = c;
- this.Os && this.Fd.Cc(c)
- },
- oSa: function() {
- return this.KE
- },
- qia: function(c) {
- if (c) switch (this.tt) {
- case D.oq:
- case D.pq:
- var d = c.dl(mc.LINEAR);
- d || c.by(nc.create());
- break;
- case D.Py:
- (d = c.dl(mc.Py)) || c.by(E.create())
- }
- },
- Mba: function() {
- this.Os ? (this.Fd = f.Ua.create(), this.Fd.He(this.m)) : this.Fd = f.q.create();
- this.bd(this.Fd, D.kja, -1);
- this.Fd.o(this.m.width / 2, this.m.height / 2)
- },
- h1a: function() {
- this.Fd &&
- (this.Ci(this.Fd), this.Fd = null, this.ZK = "", this.$K = t(0, 0))
- },
- YQ: function(c) {
- if (this.Ws != c) {
- switch (this.Ws) {
- case D.V3:
- this.ii && (this.Ci(this.ii), this.ii = null);
- this.mf && (this.Ci(this.mf), this.mf = null);
- break;
- case D.YR:
- this.ii && (this.Ci(this.ii), this.ii = null);
- break;
- case D.XR:
- this.mf && (this.Ci(this.mf), this.mf = null)
- }
- this.Ws = c;
- switch (this.Ws) {
- case D.YR:
- this.ii = f.$f.create();
- this.ii.Ga(this.m);
- this.ii.J(this.Ib);
- this.ii.F(this.Ea);
- this.bd(this.ii, D.T3, -1);
- break;
- case D.XR:
- this.mf = f.rq.create(f.color(255, 0,
- 0, 255), f.color(0, 255, 0, 255)), this.mf.Ga(this.m), this.mf.J(this.Ib), this.mf.Tg(this.Ng), this.mf.Sg(this.Jf), this.mf.DR(this.Oi), this.bd(this.mf, D.T3, -1)
- }
- }
- },
- lSa: function() {
- return this.Ws
- },
- Du: function(c, d) {
- d ? (this.Ng.r = c.r, this.Ng.g = c.g, this.Ng.b = c.b, this.mf && this.mf.Tg(c), this.Jf = d, this.mf && this.mf.Sg(d)) : (this.Ea.r = c.r, this.Ea.g = c.g, this.Ea.b = c.b, this.ii && this.ii.F(c))
- },
- jSa: function() {
- var c = this.Ea;
- return f.color(c.r, c.g, c.b, c.a)
- },
- rSa: function() {
- var c = this.Ng;
- return f.color(c.r, c.g, c.b, c.a)
- },
- nSa: function() {
- var c =
- this.Jf;
- return f.color(c.r, c.g, c.b, c.a)
- },
- XQ: function(c) {
- this.Ib = c;
- switch (this.Ws) {
- case D.YR:
- this.ii.J(c);
- break;
- case D.XR:
- this.mf.J(c)
- }
- },
- kSa: function() {
- return this.Ib
- },
- ZQ: function(c) {
- this.Oi.x = c.x;
- this.Oi.y = c.y;
- this.mf && this.mf.DR(c)
- },
- mSa: function() {
- return this.Oi
- },
- z2a: function(c) {
- this.Bq.r = c.r;
- this.Bq.g = c.g;
- this.Bq.b = c.b;
- this.Cba()
- },
- A2a: function(c) {
- this.Bq.a = c;
- this.yza()
- },
- yza: function() {
- var c = this.Bq;
- return f.color(c.r, c.g, c.b, c.a)
- },
- pSa: function() {
- return this.Bq.a
- },
- Cba: function() {
- this.Fd && this.Fd.F(this.Bq)
- },
- qSa: function() {
- return this.$K
- },
- Mm: function(c) {
- this.tt = c;
- c = this.i;
- for (var d = null, e = 0; e < c.length; e++) d = c[e], d instanceof y && this.qia(d);
- this.gh = !0
- },
- Bm: function() {
- return this.tt
- },
- E1a: function() {
- this.gh = !0
- },
- Wl: function() {
- if (this.gh) {
- var c = this.Vqa();
- c && c.Wl(this);
- this.gh = !1
- }
- },
- Vqa: function() {
- var c = null;
- switch (this.tt) {
- case D.pq:
- c = oc.create();
- break;
- case D.oq:
- c = pc.create();
- break;
- case D.Py:
- c = qc.create()
- }
- return c
- },
- tW: function() {
- return this.e()
- },
- uW: function() {
- return this.re()
- },
- GOa: function() {},
- ZNa: function() {},
- DOa: function() {},
- EOa: function() {},
- fta: function() {},
- fta: function() {},
- aPa: function() {
- this.Fd && this.Fd.J(this.J8)
- },
- bPa: function() {
- this.Fd && (this.Fd.F(this.Bq), this.Fd.J(this.J8))
- },
- r$: function() {
- for (var c = this.re(), d = t(0, 0), e = 0, g, h = 0, k = c.length; h < k; h++)
- if (g = c[h], null != g && g instanceof D) g = g.r$(), d.width += g.width, d.height += g.height;
- else if (g instanceof y) {
- e++;
- var m = w.dl().pi;
- g = w.e();
- d.width += g.width + 0.5 * (m.right + m.left);
- d.height += g.height + 0.5 * (m.top + m.bottom)
- }
- c = this.Bm();
- c == D.oq && (d.height -= d.height / e *
- (e - 1));
- c == D.pq && (d.width -= d.width / e * (e - 1));
- return d
- },
- pF: function(c, d) {
- if (null == d || d == this) return this.X9();
- var e = 0,
- g = this.re(),
- h = g.length,
- k, m = f.gv,
- n = 0;
- if (c == y.$m || c == y.Ll || c == y.Ym || c == y.Ol) {
- for (k = this.Wo(d); e < h;) {
- var p = g[e];
- p && p instanceof y && p.Qj && (p = p instanceof D ? p.S8(d) : f.ff(f.gc(this.Wo(p), k)), p < m && (n = e, m = p));
- e++
- }
- return n
- }
- f.assert(0, "invalid focus direction!");
- return 0
- },
- cM: function(c, d) {
- if (null == d || d == this) return this.X9();
- var e = 0,
- g = this.re().size(),
- h = -f.gv,
- k = 0;
- if (c == y.$m || c == y.Ll || c == y.Ym ||
- c == y.Ol) {
- for (var m = this.Wo(d); e < g;) {
- if (w && w instanceof y && w.Qj) {
- var n = w instanceof D ? w.R8(d) : f.ff(f.gc(this.Wo(w), m));
- n > h && (k = e, h = n)
- }
- e++
- }
- return k
- }
- f.assert(0, "invalid focus direction!!!");
- return 0
- },
- S8: function(c) {
- for (var d = f.gv, e = this.Wo(c), g = this.i, h = 0, k = g.length; h < k; h++) {
- var m = g[h];
- if (m instanceof D) m = m.S8(c);
- else if (m instanceof y && m.Qj) m = f.ff(f.gc(this.Wo(m), e));
- else continue;
- m < d && (d = m)
- }
- return d
- },
- R8: function(c) {
- for (var d = -f.gv, e = this.Wo(c), g = this.i, h = 0, k = g.length; h < k; h++) {
- var m = g[h];
- if (m instanceof D) m = m.R8(c);
- else if (m instanceof y && m.Qj) m = this.Wo(w), m = f.ff(f.gc(m, e));
- else continue;
- m > d && (d = m)
- }
- return d
- },
- rra: function(c, d) {
- if (null != d) {
- var e = this.Wo(d),
- g = this.Wo(this.Y9());
- c == y.$m ? this.uC = e.x > g.x ? this.pF.bind(this) : this.cM.bind(this) : c == y.Ll ? this.uC = e.x > g.x ? this.cM.bind(this) : this.pF.bind(this) : c == y.Ym ? this.uC = e.y > g.y ? this.pF.bind(this) : this.cM.bind(this) : c == y.Ol ? this.uC = e.y < g.y ? this.pF.bind(this) : this.cM.bind(this) : f.assert(0, "invalid direction!")
- }
- },
- Y9: function() {
- for (var c = this.i, d = 0, e = c.length; d <
- e; d++) {
- var g = c[d];
- if (g instanceof D) {
- if (g = g.Y9()) return g
- } else if (g instanceof f.mNa) return g
- }
- return null
- },
- X9: function() {
- for (var c = 0, d = this.re(), e = d.length; c < e;) {
- var g = d[c];
- if (g && g instanceof y && g.Qj) return c;
- c++
- }
- return 0
- },
- qra: function(c) {
- var d = this.Uz(c);
- return d ? d.Qj ? d : this.qra(c + 1) : null
- },
- Wo: function(c) {
- var d = c instanceof D ? c.r$() : c.e();
- return c.um(r(d.width / 2, d.height / 2))
- },
- kM: function(c, d) {
- var e = null,
- e = this.i,
- g = e.indexOf(d),
- g = g + 1;
- if (g < e.length) {
- if (e = this.Uz(g)) {
- if (e.Qj) {
- if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
- this.nx(d, e);
- return e
- }
- return this.kM(c, e)
- }
- return d
- }
- if (this.aw) {
- if (this.rV()) {
- e = this.Uz(0);
- if (e.Qj) {
- if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
- this.nx(d, e);
- return e
- }
- return this.kM(c, e)
- }
- return d instanceof D ? d : this.hn
- }
- return this.Zo(d, c) ? this.Yv(this, c) ? this.Tf(c, this) : d instanceof D ? d : this.hn : this.Tf(c, this)
- },
- lM: function(c, d) {
- var e = null,
- e = this.i,
- g = e.indexOf(d),
- g = g - 1;
- if (0 <= g) {
- e = this.Uz(g);
- if (e.Qj) {
- if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
- this.nx(d, e);
- return e
- }
- return this.lM(c, e)
- }
- if (this.aw) {
- if (this.rV()) {
- g =
- e.length - 1;
- e = this.Uz(g);
- if (e.Qj) {
- if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
- this.nx(d, e);
- return e
- }
- return this.lM(c, e)
- }
- return d instanceof D ? d : this.hn
- }
- return this.Zo(d, c) ? this.Yv(this, c) ? this.Tf(c, this) : d instanceof D ? d : this.hn : this.Tf(c, this)
- },
- Uz: function(c) {
- for (var d = this.i, e = d.length, g = 0, h = c; c < e;) {
- var k = d[c];
- if (k && k instanceof y) return k;
- g++;
- c++
- }
- for (c = 0; c < h;) {
- if ((e = d[c]) && e instanceof y) return e;
- g++;
- c++
- }
- return null
- },
- Zo: function(c, d) {
- var e = c.getParent();
- if (e instanceof D) return !0;
- var g = e.re(),
- h =
- g.indexOf(c);
- if (e.Bm() == D.oq) {
- if (d == y.$m) return 0 == h ? 1 * this.Zo(e, d) : !1;
- if (d == y.Ll) return h == g.length - 1 ? 1 * this.Zo(e, d) : !1;
- if (d == y.Ym || d == y.Ol) return this.Zo(e, d)
- } else if (e.Bm() == D.pq) {
- if (d == y.Ol) return 0 == h ? 1 * this.Zo(e, d) : !1;
- if (d == y.Ym) return h == g.length - 1 ? 1 * this.Zo(e, d) : !1;
- if (d == y.$m || d == y.Ll) return this.Zo(e, d)
- } else f.assert(0, "invalid layout Type");
- return !1
- },
- Yv: function(c, d) {
- var e = c.getParent();
- if (null == e) return !1;
- if (e.aw) {
- var g = e.Bm();
- if (g == D.oq) return d == y.$m || d == y.Ll ? !0 : this.Yv(e, d);
- if (g == D.pq) return d ==
- y.Ym || d == y.Ol ? !0 : this.Yv(e, d);
- f.assert(0, "invalid layout type")
- } else return this.Yv(e, d)
- },
- pw: function(c, d) {
- if (this.rV()) {
- var e = this.hn;
- this.rra(c, e);
- e = this.uC(c, e);
- e = this.Uz(e);
- if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
- this.nx(d, e);
- return e
- }
- return this
- },
- rV: function() {
- for (var c = this.i, d = 0, e = c.length; d < e; d++) {
- var g = c[d];
- if (g && g instanceof y && g.Qj) return !0
- }
- return !1
- },
- dk: function() {
- return "Layout"
- },
- Zh: function() {
- return D.create()
- },
- kx: function(c) {
- y.prototype.kx.call(this, c)
- },
- zi: function(c) {
- this.$Q(c.Os);
- this.Eu(c.ZK, c.LE);
- this.KI(c.KE);
- this.YQ(c.Ws);
- this.Du(c.Ea);
- this.Du(c.Ng, c.Jf);
- this.XQ(c.Ib);
- this.ZQ(c.Oi);
- this.Mm(c.tt);
- this.Zp(c.Lq);
- this.Oga(c.Mq);
- this.aw = c.aw;
- this.pw = c.pw
- }
- });
- D.tM = null;
- D.Vw = null;
- D.rn = null;
- D.qG = null;
- f.K == f.na ? (D.prototype.i3 = D.prototype.fva, D.prototype.h2 = D.prototype.fua) : (D.prototype.i3 = D.prototype.nba, D.prototype.h2 = D.prototype.nba);
- D.AW = function() {
- return f.Wc.qG || (f.Wc.qG = f.fd("canvas"))
- };
- q = D.prototype;
- f.d(q, "clippingEnabled", q.SCa, q.Zp);
- f.d(q, "clippingType", null, q.Oga);
- f.d(q, "layoutType", q.Bm, q.Mm);
- q = null;
- D.create = function() {
- return new D
- };
- D.V3 = 0;
- D.YR = 1;
- D.XR = 2;
- D.Ria = 0;
- D.pq = 1;
- D.oq = 2;
- D.Py = 3;
- D.BJ = 0;
- D.i4 = 1;
- D.kja = -2;
- D.T3 = -2;
- var rc = kc.extend({
- left: 0,
- top: 0,
- right: 0,
- bottom: 0,
- ctor: function(c, d, e, g) {
- c && void 0 === d && (this.left = c.left, this.top = c.top, this.right = c.right, this.bottom = c.bottom);
- void 0 !== g && (this.left = c, this.top = d, this.right = e, this.bottom = g)
- },
- lo: function(c, d, e, g) {
- this.left = c;
- this.top = d;
- this.right = e;
- this.bottom = g
- },
- tRa: function(c) {
- return this.left == c.left && this.top == c.top && this.right == c.right && this.bottom == c.bottom
- }
- });
- function sc() {
- return new rc(0, 0, 0, 0)
- }
- var mc = kc.extend({
- pi: null,
- st: null,
- ctor: function() {
- this.pi = new rc;
- this.st = mc.NONE
- },
- lo: function(c, d, e, g) {
- "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 = e, this.pi.bottom = g)
- },
- CUa: function() {
- return this.pi
- },
- Bm: function() {
- return this.st
- },
- p: function() {
- var c = this.Zh();
- c.lx(this);
- return c
- },
- Zh: function() {
- return mc.create()
- },
- lx: function(c) {
- this.pi = c.pi
- }
- });
- mc.create = function() {
- return new mc
- };
- mc.NONE = 0;
- mc.LINEAR = 1;
- mc.Py = 2;
- var nc = mc.extend({
- HM: null,
- ctor: function() {
- mc.prototype.ctor.call(this);
- this.HM = nc.NONE;
- this.st = mc.LINEAR
- },
- vc: function(c) {
- this.HM = c
- },
- uH: function() {
- return this.HM
- },
- Zh: function() {
- return nc.create()
- },
- lx: function(c) {
- mc.prototype.lx.call(this, c);
- c && (this.VQ(c.ww), this.sR(c.GA), this.tR(c.HA), this.vc(c.HM))
- }
- });
- nc.create = function() {
- return new nc
- };
- nc.NONE = 0;
- nc.$m = 1;
- nc.u7 = 2;
- nc.Ll = 3;
- nc.ZR = 4;
- nc.nS = 5;
- nc.mS = 6;
- var E = mc.extend({
- ww: null,
- HA: "",
- GA: "",
- ri: !1,
- ctor: function() {
- mc.prototype.ctor.call(this);
- this.ww = E.NONE;
- this.GA = this.HA = "";
- this.ri = !1;
- this.st = mc.Py
- },
- VQ: function(c) {
- this.ww = c
- },
- WRa: function() {
- return this.ww
- },
- tR: function(c) {
- this.HA = c
- },
- BVa: function() {
- return this.HA
- },
- sR: function(c) {
- this.GA = c
- },
- AVa: function() {
- return this.GA
- },
- Zh: function() {
- return E.create()
- },
- lx: function(c) {
- mc.prototype.lx.call(this, c);
- this.VQ(c.ww);
- this.tR(c.HA);
- this.sR(c.GA)
- }
- });
- E.create = function() {
- return new E
- };
- E.NONE = 0;
- E.t6 = 1;
- E.s6 = 2;
- E.u6 = 3;
- E.p6 = 4;
- E.Rja = 5;
- E.r6 = 6;
- E.o6 = 7;
- E.n6 = 8;
- E.q6 = 9;
- E.J5 = 10;
- E.I5 = 11;
- E.K5 = 12;
- E.Q5 = 13;
- E.P5 = 14;
- E.O5 = 15;
- E.T5 = 16;
- E.S5 = 17;
- E.R5 = 18;
- E.M5 = 19;
- E.L5 = 20;
- E.N5 = 21;
- var tc = kc.extend({
- Wl: function() {}
- }),
- oc = tc.extend({
- Wl: function(c) {
- var d = c.tW();
- c = c.uW();
- for (var e = d.height, g = 0, h = c.length; g < h; g++) {
- var k = c[g];
- if (k) {
- var m = k.dl();
- if (m) {
- var n = m.uH(),
- p = k.bk(),
- s = k.e(),
- u = p.x * s.width,
- e = e - (1 - p.y) * s.height;
- switch (n) {
- case nc.Ll:
- u = d.width - (1 - p.x) * s.width;
- break;
- case nc.mS:
- u = d.width / 2 - s.width * (0.5 - p.x)
- }
- m = m.pi;
- u += m.left;
- e -= m.top;
- k.o(u, e);
- e = k.Zd() - k.bk().y * k.e().height - m.bottom
- }
- }
- }
- }
- });
- oc.create = function() {
- return new oc
- };
- var pc = tc.extend({
- Wl: function(c) {
- var d = c.tW();
- c = c.uW();
- for (var e = 0, g = 0, h = c.length; g < h; g++) {
- var k = c[g];
- if (k) {
- var m = k.dl();
- if (m) {
- var n = m.uH(),
- p = k.bk(),
- s = k.CH(),
- e = e + p.x * s.width,
- u = d.height - (1 - p.y) * s.height;
- switch (n) {
- case nc.ZR:
- u = p.y * s.height;
- break;
- case nc.nS:
- u = d.height / 2 - s.height * (0.5 - p.y)
- }
- m = m.pi;
- e += m.left;
- u -= m.top;
- k.o(e, u);
- e = k.Kc() + m.right
- }
- }
- }
- }
- });
- pc.create = function() {
- return new pc
- };
- var qc = tc.extend({
- XY: null,
- sO: null,
- QG: null,
- Ka: 0,
- La: 0,
- ke: null,
- Wl: function(c) {
- for (var d = this.sO = this.Bra(c); 0 < this.XY;) {
- for (var e = 0, g = d.length; e < g; e++) {
- this.QG = d[e];
- var h = this.QG.dl();
- h && !h.ri && this.yqa(c) && (this.xqa(), this.QG.o(this.Ka, this.La), h.ri = !0)
- }
- this.XY--
- }
- this.sO.length = 0
- },
- Bra: function(c) {
- c = c.uW();
- for (var d = [], e = 0, g = c.length; e < g; e++) {
- var h = c[e];
- h && (h.dl().ri = !1, this.XY++, d.push(h))
- }
- return d
- },
- asa: function(c) {
- var d = null;
- if ((c = c.dl().HA) && 0 != c.length)
- for (var e = this.sO, g = 0, h = e.length; g < h; g++) {
- var k =
- e[g];
- if (k) {
- var m = k.dl();
- if (m && m.GA == c) {
- d = k;
- this.ke = m;
- break
- }
- }
- }
- return d
- },
- yqa: function(c) {
- var d = this.QG,
- e = d.bk(),
- g = d.e();
- this.La = this.Ka = 0;
- var h = this.asa(d),
- d = d.dl().ww;
- c = c.tW();
- switch (d) {
- case E.NONE:
- case E.t6:
- this.Ka = e.x * g.width;
- this.La = c.height - (1 - e.y) * g.height;
- break;
- case E.s6:
- this.Ka = 0.5 * c.width - g.width * (0.5 - e.x);
- this.La = c.height - (1 - e.y) * g.height;
- break;
- case E.u6:
- this.Ka = c.width - (1 - e.x) * g.width;
- this.La = c.height - (1 - e.y) * g.height;
- break;
- case E.p6:
- this.Ka = e.x * g.width;
- this.La = 0.5 * c.height - g.height * (0.5 -
- e.y);
- break;
- case E.Rja:
- this.Ka = 0.5 * c.width - g.width * (0.5 - e.x);
- this.La = 0.5 * c.height - g.height * (0.5 - e.y);
- break;
- case E.r6:
- this.Ka = c.width - (1 - e.x) * g.width;
- this.La = 0.5 * c.height - g.height * (0.5 - e.y);
- break;
- case E.o6:
- this.Ka = e.x * g.width;
- this.La = e.y * g.height;
- break;
- case E.n6:
- this.Ka = 0.5 * c.width - g.width * (0.5 - e.x);
- this.La = e.y * g.height;
- break;
- case E.q6:
- this.Ka = c.width - (1 - e.x) * g.width;
- this.La = e.y * g.height;
- break;
- case E.J5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- var d = h.Fe(),
- k = h.Ac();
- this.La = d + e.y * g.height;
- this.Ka = k + e.x *
- g.width
- }
- break;
- case E.I5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- c = h.e();
- d = h.Fe();
- this.La = d + e.y * g.height;
- this.Ka = h.Ac() + 0.5 * c.width + e.x * g.width - 0.5 * g.width
- }
- break;
- case E.K5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- d = h.Fe();
- k = h.Kc();
- this.La = d + e.y * g.height;
- this.Ka = k - (1 - e.x) * g.width
- }
- break;
- case E.Q5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- d = h.Fe();
- k = h.Ac();
- this.La = d - (1 - e.y) * g.height;
- this.Ka = k - (1 - e.x) * g.width
- }
- break;
- case E.P5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- c = h.e();
- k = h.Ac();
- this.Ka = k - (1 - e.x) * g.width;
- this.La =
- h.yd() + 0.5 * c.height + e.y * g.height - 0.5 * g.height
- }
- break;
- case E.O5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- d = h.yd();
- k = h.Ac();
- this.La = d + e.y * g.height;
- this.Ka = k - (1 - e.x) * g.width
- }
- break;
- case E.T5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- d = h.Fe();
- k = h.Kc();
- this.La = d - (1 - e.y) * g.height;
- this.Ka = k + e.x * g.width
- }
- break;
- case E.S5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- c = h.e();
- k = h.Kc();
- this.Ka = k + e.x * g.width;
- this.La = h.yd() + 0.5 * c.height + e.y * g.height - 0.5 * g.height
- }
- break;
- case E.R5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- d = h.yd();
- k = h.Kc();
- this.La = d + e.y * g.height;
- this.Ka = k + e.x * g.width
- }
- break;
- case E.M5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- d = h.yd();
- k = h.Ac();
- this.La = d - (1 - e.y) * g.height;
- this.Ka = k + e.x * g.width
- }
- break;
- case E.L5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- c = h.e();
- d = h.yd();
- this.La = d - (1 - e.y) * g.height;
- this.Ka = h.Ac() + 0.5 * c.width + e.x * g.width - 0.5 * g.width
- }
- break;
- case E.N5:
- if (h) {
- if (this.ke && !this.ke.ri) return !1;
- d = h.yd();
- k = h.Kc();
- this.La = d - (1 - e.y) * g.height;
- this.Ka = k - (1 - e.x) * g.width
- }
- }
- return !0
- },
- xqa: function() {
- var c = this.QG.dl(),
- d = c.pi;
- switch (c.ww) {
- case E.NONE:
- case E.t6:
- this.Ka += d.left;
- this.La -= d.top;
- break;
- case E.s6:
- this.La -= d.top;
- break;
- case E.u6:
- this.Ka -= d.right;
- this.La -= d.top;
- break;
- case E.p6:
- this.Ka += d.left;
- break;
- case E.r6:
- this.Ka -= d.right;
- break;
- case E.o6:
- this.Ka += d.left;
- this.La += d.bottom;
- break;
- case E.n6:
- this.La += d.bottom;
- break;
- case E.q6:
- this.Ka -= d.right;
- this.La += d.bottom;
- break;
- case E.J5:
- this.La += d.bottom;
- this.Ka += d.left;
- break;
- case E.K5:
- this.La += d.bottom;
- this.Ka -= d.right;
- break;
- case E.I5:
- this.La += d.bottom;
- break;
- case E.Q5:
- this.Ka -=
- d.right;
- this.La -= d.top;
- break;
- case E.O5:
- this.Ka -= d.right;
- this.La += d.bottom;
- break;
- case E.P5:
- this.Ka -= d.right;
- break;
- case E.T5:
- this.Ka += d.left;
- this.La -= d.top;
- break;
- case E.R5:
- this.Ka += d.left;
- this.La += d.bottom;
- break;
- case E.S5:
- this.Ka += d.left;
- break;
- case E.M5:
- this.La -= d.top;
- this.Ka += d.left;
- break;
- case E.N5:
- this.La -= d.top;
- this.Ka -= d.right;
- break;
- case E.L5:
- this.La -= d.top
- }
- }
- });
- qc.create = function() {
- return new qc
- };
- var uc = D.extend({
- j: function() {
- return D.prototype.j.call(this) ? (this.Mm(D.oq), !0) : !1
- },
- Jp: function(c) {
- return this.j() ? (this.Df(c), !0) : !1
- }
- });
- uc.create = function(c) {
- var d = new uc;
- return c ? d.Jp() ? d : null : d
- };
- var vc = D.extend({
- j: function() {
- return D.prototype.j.call(this) ? (this.Mm(D.Py), !0) : !1
- },
- Jp: function(c) {
- return this.j() ? (this.Df(c), !0) : !1
- }
- });
- vc.create = function(c) {
- var d = new vc;
- return c ? d.Jp() ? d : null : d
- };
- var wc = D.extend({
- j: function() {
- return D.prototype.j.call(this) ? (this.Mm(D.lNa), !0) : !1
- },
- Jp: function(c) {
- return this.j() ? (this.Df(c), !0) : !1
- }
- });
- wc.create = function(c) {
- var d = new wc;
- return c ? d.Jp() ? d : null : d
- };
- function Dc(c, d) {
- if (!c) return null;
- if (c.zq == d) return c;
- for (var e = c.re(), g = 0; g < e.length; g++) {
- var h = Dc(e[g], d);
- if (null != h) return h
- }
- return null
- };
- var Ec = y.extend({
- gb: null,
- Rb: null,
- Xb: null,
- qg: null,
- iX: "",
- vV: "",
- NV: "",
- We: !0,
- $: !1,
- pz: null,
- qz: null,
- oz: null,
- SF: y.Oa,
- cG: y.Oa,
- hF: y.Oa,
- yt: null,
- IX: null,
- PV: null,
- IQ: !1,
- XN: null,
- iw: 1,
- jw: 1,
- sw: 1,
- tw: 1,
- dta: !1,
- HX: !1,
- ara: !1,
- Dg: !0,
- ta: "Button",
- jX: !0,
- GX: !0,
- OV: !0,
- Rc: "Thonburi",
- Sc: 12,
- zc: 0,
- ctor: function() {
- this.pz = x(0, 0, 0, 0);
- this.qz = x(0, 0, 0, 0);
- this.oz = x(0, 0, 0, 0);
- var c = this.ea;
- this.yt = t(c.width, c.height);
- this.IX = t(c.width, c.height);
- this.PV = t(c.width, c.height);
- this.XN = f.color.WHITE;
- y.prototype.ctor.call(this)
- },
- j: function(c, d,
- e, g) {
- if (y.prototype.j.call(this)) {
- this.Om(!0);
- if (void 0 === c) return !0;
- this.Ur(c, d, e, g)
- }
- return !1
- },
- fl: function() {
- this.gb = f.q.create();
- this.Rb = f.q.create();
- this.Xb = f.q.create();
- this.qg = f.ia.create("");
- this.bd(this.gb, Ec.k6, -1);
- this.bd(this.Rb, Ec.I6, -1);
- this.bd(this.Xb, Ec.X4, -1);
- this.bd(this.qg, Ec.Koa, -1)
- },
- zh: function(c) {
- this.$ != c && (this.Gv = y.aS, this.$ = c, this.Ci(this.gb), this.Ci(this.Rb), this.Ci(this.Xb), this.$ ? (this.gb = f.Ua.create(), this.Rb = f.Ua.create(), this.Xb = f.Ua.create()) : (this.gb = f.q.create(), this.Rb =
- f.q.create(), this.Xb = f.q.create()), this.Hx(this.iX, this.SF), this.Ix(this.vV, this.cG), this.Gx(this.NV, this.hF), this.bd(this.gb, Ec.k6, -1), this.bd(this.Rb, Ec.I6, -1), this.bd(this.Xb, Ec.X4, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.q2(this.pz), this.r2(this.qz), this.p2(this.oz), this.eR(this.Fv))
- },
- T0: function() {
- return this.$
- },
- df: function(c) {
- if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c
- },
- Wn: function() {
- return this.yt
- },
- Ur: function(c, d, e, g) {
- this.Hx(c, g);
- this.Ix(d, g);
- this.Gx(e,
- g)
- },
- Hx: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.iX = c;
- this.SF = d;
- if (this.$) {
- var e = this.gb;
- switch (this.SF) {
- case y.Oa:
- e.Ge(c);
- break;
- case y.cb:
- e.hl(c)
- }
- e.Cc(this.pz)
- } else switch (e = this.gb, this.SF) {
- case y.Oa:
- e.ab(c);
- break;
- case y.cb:
- e.Dd(c)
- }
- this.yt = this.gb.e();
- this.sk();
- this.Al();
- this.gb.F(this.$a());
- this.gb.J(this.vb());
- this.Qf(this.yt);
- this.jX = this.dta = !0
- }
- },
- Ix: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.vV = c;
- this.cG = d;
- if (this.$) {
- var e = this.Rb;
- switch (this.cG) {
- case y.Oa:
- e.Ge(c);
- break;
- case y.cb:
- e.hl(c)
- }
- e.Cc(this.qz)
- } else switch (e =
- this.Rb, this.cG) {
- case y.Oa:
- e.ab(c);
- break;
- case y.cb:
- e.Dd(c)
- }
- this.IX = this.Rb.e();
- this.sk();
- this.Al();
- this.Xb.F(this.$a());
- this.Xb.J(this.vb());
- this.GX = this.HX = !0
- }
- },
- Gx: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.NV = c;
- this.hF = d;
- if (this.$) {
- var e = this.Xb;
- switch (this.hF) {
- case y.Oa:
- e.Ge(c);
- break;
- case y.cb:
- e.hl(c)
- }
- e.Cc(this.oz)
- } else switch (e = this.Xb, this.hF) {
- case y.Oa:
- e.ab(c);
- break;
- case y.cb:
- e.Dd(c)
- }
- this.PV = this.Xb.e();
- this.sk();
- this.Al();
- this.Xb.F(this.$a());
- this.Xb.J(this.vb());
- this.OV = this.ara = !0
- }
- },
- Cc: function(c) {
- this.q2(c);
- this.r2(c);
- this.p2(c)
- },
- q2: function(c) {
- this.pz = c;
- this.$ && this.gb.Cc(c)
- },
- NSa: function() {
- return this.pz
- },
- r2: function(c) {
- this.qz = c;
- this.$ && this.Rb.Cc(c)
- },
- OSa: function() {
- return this.qz
- },
- p2: function(c) {
- this.oz = c;
- this.$ && this.Xb.Cc(c)
- },
- MSa: function() {
- return this.oz
- },
- rI: function() {
- this.gb.za(!0);
- this.Rb.za(!1);
- this.Xb.za(!1);
- if (this.HX) {
- if (this.IQ) {
- this.gb.Pm();
- this.Rb.Pm();
- var c = f.Db.create(0.05, this.iw, this.jw);
- this.gb.V(c);
- this.Rb.ib(this.sw, this.tw)
- }
- } else this.$ ? this.eJa() : (this.gb.Pm(), this.gb.ib(this.iw,
- this.jw))
- },
- sI: function() {
- if (this.HX) {
- if (this.gb.za(!1), this.Rb.za(!0), this.Xb.za(!1), this.IQ) {
- this.gb.Pm();
- this.Rb.Pm();
- var c = f.Db.create(0.05, this.sw + 0.1, this.tw + 0.1);
- this.Rb.V(c);
- this.gb.ib(this.sw + 0.1, this.tw + 0.1)
- }
- } else this.gb.za(!0), this.Rb.za(!0), this.Xb.za(!1), this.$ ? this.gb.F(f.Aj.GRAY) : (this.gb.Pm(), this.gb.ib(this.iw + 0.1, this.jw + 0.1))
- },
- vC: function() {
- this.gb.za(!1);
- this.Rb.za(!1);
- this.Xb.za(!0);
- this.gb.ib(this.iw, this.jw);
- this.Rb.ib(this.sw, this.tw)
- },
- Pd: function(c) {
- this.qg.Pd(c);
- this.$ ||
- (this.gb.Pd(c), this.Rb.Pd(c), this.Xb.Pd(c))
- },
- e3a: function(c) {
- this.qg.Yf(c);
- this.$ || (this.gb.Yf(c), this.Rb.Yf(c), this.Xb.Yf(c))
- },
- XH: function() {
- return this.$ ? !1 : this.gb.XH()
- },
- YH: function() {
- return this.$ ? !1 : this.gb.YH()
- },
- sk: function() {
- var c = this.Fb ? -1 : 1;
- this.qg.jb(c);
- this.$ ? (this.gb.jb(c), this.Rb.jb(c), this.Xb.jb(c)) : (this.gb.Pd(this.Fb), this.Rb.Pd(this.Fb), this.Xb.Pd(this.Fb))
- },
- Al: function() {
- var c = this.Hb ? -1 : 1;
- this.qg.tb(c);
- this.$ ? (this.gb.tb(c), this.Rb.tb(c), this.Xb.tb(c)) : (this.gb.Yf(this.Hb), this.Rb.Yf(this.Hb),
- this.Xb.Yf(this.Hb))
- },
- eJa: function() {
- this.gb.F(this.$a());
- this.Rb.F(this.$a());
- this.Xb.F(this.$a());
- this.gb.J(this.vb());
- this.Rb.J(this.vb());
- this.Xb.J(this.vb())
- },
- S: function(c, d) {
- void 0 === d ? (y.prototype.S.call(this, c), this.gb.S(c), this.Rb.S(c), this.Xb.S(c)) : (y.prototype.S.call(this, c, d), this.gb.S(c, d), this.Rb.S(c, d), this.Xb.S(c, d));
- this.qg.o(this.ea.width * (0.5 - this.Eb.x), this.ea.height * (0.5 - this.Eb.y))
- },
- Xe: function(c) {
- y.prototype.Xe.call(this, c);
- this.gb.Xe(c);
- this.Rb.Xe(c);
- this.Xb.Xe(c);
- this.qg.ls(this.ea.width *
- (0.5 - this.Eb.x))
- },
- Ye: function(c) {
- y.prototype.Ye.call(this, c);
- this.gb.Ye(c);
- this.Rb.Ye(c);
- this.Xb.Ye(c);
- this.qg.Lu(this.ea.height * (0.5 - this.Eb.y))
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.fJa();
- this.ufa();
- this.Rfa();
- this.Nca()
- },
- e: function() {
- return this.yt
- },
- lf: function() {
- return this.$ ? this.ea.width : this.yt.width
- },
- Gg: function() {
- return this.$ ? this.ea.height : this.yt.height
- },
- Jr: function() {
- if (this.Fv) switch (this.Gv) {
- case y.iD:
- return this.gb;
- case y.$R:
- return this.Rb;
- default:
- return null
- } else return this.Xb
- },
- ufa: function() {
- if (this.Gb) this.$ || (this.gb.ib(1), this.iw = this.jw = 1);
- else if (this.$) this.gb.He(this.ea), this.iw = this.jw = 1;
- else {
- var c = this.yt;
- if (0 >= c.width || 0 >= c.height) {
- this.gb.ib(1);
- return
- }
- var d = this.ea.width / c.width,
- c = this.ea.height / c.height;
- this.gb.jb(d);
- this.gb.tb(c);
- this.iw = d;
- this.jw = c
- }
- this.gb.o(this.m.width / 2, this.m.height / 2)
- },
- Rfa: function() {
- if (this.Gb) this.$ || (this.Rb.ib(1), this.sw = this.tw = 1);
- else if (this.$) this.Rb.He(this.ea), this.sw = this.tw = 1;
- else {
- var c = this.IX;
- if (0 >= c.width || 0 >= c.height) {
- this.Rb.ib(1);
- return
- }
- var d = this.ea.width / c.width,
- c = this.ea.height / c.height;
- this.Rb.jb(d);
- this.Rb.tb(c);
- this.sw = d;
- this.tw = c
- }
- this.Rb.o(this.m.width / 2, this.m.height / 2)
- },
- Nca: function() {
- if (this.Gb) this.$ || this.Xb.ib(1);
- else if (this.$) this.Xb.He(this.ea);
- else {
- var c = this.PV;
- if (0 >= c.width || 0 >= c.height) {
- this.Xb.ib(1);
- return
- }
- var d = this.ea.height / c.height;
- this.Xb.jb(this.ea.width / c.width);
- this.Xb.tb(d)
- }
- this.Xb.o(this.m.width / 2, this.m.height / 2)
- },
- On: function() {
- this.jX && (this.ufa(), this.jX = !1);
- this.GX && (this.Rfa(), this.GX = !1);
- this.OV && (this.Nca(), this.OV = !1)
- },
- fJa: function() {
- this.qg.o(0.5 * this.m.width, 0.5 * this.m.height)
- },
- wHa: function(c) {
- this.IQ = c
- },
- jy: function(c) {
- this.qg.wa(c)
- },
- fea: function() {
- return this.qg.qc()
- },
- gy: function(c) {
- this.XN.r = c.r;
- this.XN.g = c.g;
- this.XN.b = c.b;
- this.qg.Wb(c)
- },
- cea: function() {
- return this.qg.$a()
- },
- iy: function(c) {
- this.qg.Qd(c)
- },
- eea: function() {
- return this.qg.Un()
- },
- hy: function(c) {
- this.qg.de(c)
- },
- dea: function() {
- return this.qg.Cp()
- },
- Rua: function(c) {
- this.qg.font = c
- },
- hsa: function() {
- return this.qg.font
- },
- sJ: function() {
- this.Ii(this.gb);
- this.Ii(this.Rb);
- this.Ii(this.Xb)
- },
- dk: function() {
- return "Button"
- },
- Zh: function() {
- return Ec.create()
- },
- zi: function(c) {
- this.We = c.We;
- this.zh(c.$);
- this.Hx(c.iX, c.SF);
- this.Ix(c.vV, c.cG);
- this.Gx(c.NV, c.hF);
- this.q2(c.pz);
- this.r2(c.qz);
- this.p2(c.oz);
- this.jy(c.fea());
- this.hy(c.dea());
- this.iy(c.eea());
- this.gy(c.cea());
- this.wHa(c.IQ)
- }
- }),
- q = Ec.prototype;
- f.d(q, "titleText", q.fea, q.jy);
- f.d(q, "titleFont", q.hsa, q.Rua);
- f.d(q, "titleFontSize", q.eea, q.iy);
- f.d(q, "titleFontName", q.dea, q.hy);
- f.d(q, "titleColor", q.cea, q.gy);
- q = null;
- Ec.create = function(c, d, e, g) {
- var h = new Ec;
- if (void 0 === c) return h;
- h.j(c, d, e, g)
- };
- Ec.k6 = -2;
- Ec.I6 = -2;
- Ec.X4 = -2;
- Ec.Koa = -1;
- Ec.g7 = 0;
- Ec.Poa = 1;
- var Fc = y.extend({
- Zc: null,
- ye: null,
- Ue: null,
- xe: null,
- Be: null,
- Rj: !0,
- Jv: null,
- Kv: null,
- Iv: null,
- $U: y.Oa,
- ZU: y.Oa,
- kW: y.Oa,
- YU: y.Oa,
- jW: y.Oa,
- I8: "",
- K8: "",
- i$: "",
- H8: "",
- h$: "",
- ta: "CheckBox",
- YK: !0,
- aL: !0,
- jM: !0,
- XK: !0,
- iM: !0,
- ctor: function() {
- y.prototype.ctor.call(this)
- },
- j: function(c, d, e, g, h, k) {
- return y.prototype.j.call(this) ? (this.Rj = !0, this.Om(!0), void 0 === c && this.Ur(c, d, e, g, h, k), !0) : !1
- },
- fl: function() {
- this.Zc = f.q.create();
- this.ye = f.q.create();
- this.Ue = f.q.create();
- this.xe = f.q.create();
- this.Be = f.q.create();
- this.bd(this.Zc,
- Fc.rja, -1);
- this.bd(this.ye, Fc.sja, -1);
- this.bd(this.Ue, Fc.Jla, -1);
- this.bd(this.xe, Fc.qja, -1);
- this.bd(this.Be, Fc.Ila, -1);
- window.test = [this.Zc, this.ye, this.Ue, this.xe, this.Be];
- window.a = this
- },
- Ur: function(c, d, e, g, h, k) {
- this.jC(c, k);
- this.lC(d, k);
- this.mC(e, k);
- this.kC(g, k);
- this.nC(h, k)
- },
- jC: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.I8 = c;
- this.$U = d;
- var e = this.Zc;
- switch (this.$U) {
- case y.Oa:
- e.ab(c);
- break;
- case y.cb:
- e.Dd(c)
- }
- this.FZ();
- e.Ba || (this.Zc.Ga(this.pb), e.oe(function() {
- this.FZ()
- }, this));
- this.sk();
- this.Al();
- this.Zc.F(this.$a());
- this.Zc.J(this.vb());
- this.Qf(this.Zc.e());
- this.YK = !0
- }
- },
- lC: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.K8 = c;
- this.ZU = d;
- switch (this.ZU) {
- case y.Oa:
- this.ye.ab(c);
- break;
- case y.cb:
- this.ye.Dd(c)
- }
- this.sk();
- this.Al();
- this.ye.F(this.$a());
- this.ye.J(this.vb());
- this.aL = !0
- }
- },
- mC: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.i$ = c;
- this.kW = d;
- switch (this.kW) {
- case y.Oa:
- this.Ue.ab(c);
- break;
- case y.cb:
- this.Ue.Dd(c)
- }
- this.sk();
- this.Al();
- this.Ue.F(this.$a());
- this.Ue.J(this.vb());
- this.jM = !0
- }
- },
- kC: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.H8 = c;
- this.YU =
- d;
- switch (this.YU) {
- case y.Oa:
- this.xe.ab(c);
- break;
- case y.cb:
- this.xe.Dd(c)
- }
- this.sk();
- this.Al();
- this.xe.F(this.$a());
- this.xe.J(this.vb());
- this.XK = !0
- }
- },
- nC: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.h$ = c;
- this.jW = d;
- switch (this.jW) {
- case y.Oa:
- this.Be.ab(c);
- break;
- case y.cb:
- this.Be.Dd(c)
- }
- this.sk();
- this.Al();
- this.Be.F(this.$a());
- this.Be.J(this.vb());
- this.iM = !0
- }
- },
- rI: function() {
- this.Zc.za(!0);
- this.ye.za(!1);
- this.xe.za(!1);
- this.Be.za(!1)
- },
- sI: function() {
- this.Zc.za(!1);
- this.ye.za(!0);
- this.xe.za(!1);
- this.Be.za(!1)
- },
- vC: function() {
- this.Zc.za(!1);
- this.ye.za(!1);
- this.xe.za(!0);
- this.Ue.za(!1);
- this.Rj && this.Be.za(!0)
- },
- fy: function(c) {
- c != this.Rj && (this.Rj = c, this.Ue.za(this.Rj))
- },
- jBa: function() {
- return this.Rj
- },
- oGa: function() {
- this.Iv && this.Iv(this, Fc.l5);
- this.Jv && this.Kv && this.Kv.call(this.Jv, this, Fc.l5)
- },
- PIa: function() {
- this.Iv && this.Iv(this, Fc.n5);
- this.Jv && this.Kv && this.Kv.call(this.Jv, this, Fc.n5)
- },
- X1: function() {
- y.prototype.X1.call(this);
- this.Rj ? (this.fy(!1), this.PIa()) : (this.fy(!0), this.oGa())
- },
- nPa: function(c, d) {
- this.Kv = c;
- this.Jv = d
- },
- addEventListener: function(c) {
- this.Iv =
- c
- },
- Wn: function() {
- return this.Zc.e()
- },
- sk: function() {
- this.Zc.Pd(this.Fb);
- this.ye.Pd(this.Fb);
- this.Ue.Pd(this.Fb);
- this.xe.Pd(this.Fb);
- this.Be.Pd(this.Fb)
- },
- Al: function() {
- this.Zc.Yf(this.Hb);
- this.ye.Yf(this.Hb);
- this.Ue.Yf(this.Hb);
- this.xe.Yf(this.Hb);
- this.Be.Yf(this.Hb)
- },
- S: function(c, d) {
- void 0 === d ? (y.prototype.S.call(this, c), this.Zc.S(c), this.ye.S(c), this.xe.S(c), this.Ue.S(c), this.Be.S(c)) : (y.prototype.S.call(this, c, d), this.Zc.S(c, d), this.ye.S(c, d), this.xe.S(c, d), this.Ue.S(c, d), this.Be.S(c, d))
- },
- Xe: function(c) {
- y.prototype.Xe.call(this,
- c);
- this.Zc.Xe(c);
- this.ye.Xe(c);
- this.xe.Xe(c);
- this.Ue.Xe(c);
- this.Be.Xe(c)
- },
- Ye: function(c) {
- y.prototype.Ye.call(this, c);
- this.Zc.Ye(c);
- this.ye.Ye(c);
- this.xe.Ye(c);
- this.Ue.Ye(c);
- this.Be.Ye(c)
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.iM = this.XK = this.jM = this.aL = this.YK = !0
- },
- e: function() {
- return this.Zc.e()
- },
- lf: function() {
- return this.Zc.lf()
- },
- Gg: function() {
- return this.Zc.Gg()
- },
- Jr: function() {
- return this.Zc
- },
- FZ: function() {
- if (this.Gb) this.Zc.ib(1);
- else {
- var c = this.Zc.e();
- if (0 >= c.width || 0 >= c.height) {
- this.Zc.ib(1);
- return
- }
- var d = this.ea.height / c.height;
- this.Zc.jb(this.ea.width / c.width);
- this.Zc.tb(d)
- }
- c = this.m.width / 2;
- d = this.m.height / 2;
- this.Zc.o(c, d);
- this.ye.o(c, d);
- this.Ue.o(c, d);
- this.xe.o(c, d);
- this.Be.o(c, d)
- },
- Cwa: function() {
- if (this.Gb) this.ye.ib(1);
- else {
- var c = this.ye.e();
- if (0 >= c.width || 0 >= c.height) this.ye.ib(1);
- else {
- var d = this.ea.height / c.height;
- this.ye.jb(this.ea.width / c.width);
- this.ye.tb(d)
- }
- }
- },
- qza: function() {
- if (this.Gb) this.Ue.ib(1);
- else {
- var c = this.Ue.e();
- if (0 >= c.width || 0 >= c.height) this.Ue.ib(1);
- else {
- var d =
- this.ea.height / c.height;
- this.Ue.jb(this.ea.width / c.width);
- this.Ue.tb(d)
- }
- }
- },
- Bwa: function() {
- if (this.Gb) this.xe.ib(1);
- else {
- var c = this.xe.e();
- if (0 >= c.width || 0 >= c.height) this.xe.ib(1);
- else {
- var d = this.ea.height / c.height;
- this.xe.jb(this.ea.width / c.width);
- this.xe.tb(d)
- }
- }
- },
- pza: function() {
- if (this.Gb) this.Be.ib(1);
- else {
- var c = this.Be.e();
- if (0 >= c.width || 0 >= c.height) this.Be.ib(1);
- else {
- var d = this.ea.height / c.height;
- this.Be.jb(this.ea.width / c.width);
- this.Be.tb(d)
- }
- }
- },
- sJ: function() {
- this.Ii(this.Zc);
- this.Ii(this.ye);
- this.Ii(this.Ue);
- this.Ii(this.xe);
- this.Ii(this.Be)
- },
- WC: function() {
- this.Cl(this.Zc);
- this.Cl(this.ye);
- this.Cl(this.Ue);
- this.Cl(this.xe);
- this.Cl(this.Be)
- },
- dk: function() {
- return "CheckBox"
- },
- Zh: function() {
- return Fc.create()
- },
- zi: function(c) {
- c instanceof Fc && (this.jC(c.I8, c.$U), this.lC(c.K8, c.ZU), this.mC(c.i$, c.kW), this.kC(c.H8, c.YU), this.nC(c.h$, c.jW), this.fy(c.Rj), this.Jv = c.Jv, this.Kv = c.Kv, this.Iv = c.Iv)
- },
- On: function() {
- this.YK && (this.FZ(), this.YK = !1);
- this.aL && (this.Cwa(), this.aL = !1);
- this.jM && (this.qza(),
- this.jM = !1);
- this.XK && (this.Bwa(), this.XK = !1);
- this.iM && (this.pza(), this.iM = !1)
- }
- }),
- q = Fc.prototype;
- f.d(q, "selected", q.jBa, q.fy);
- q = null;
- Fc.create = function(c, d, e, g, h, k) {
- var m = new Fc;
- void 0 === c ? m.j() : m.j(c, d, e, g, h, k);
- return m
- };
- Fc.l5 = 0;
- Fc.n5 = 1;
- Fc.rja = -1;
- Fc.sja = -1;
- Fc.qja = -1;
- Fc.Jla = -1;
- Fc.Ila = -1;
- var Gc = y.extend({
- $: !1,
- We: !0,
- kf: null,
- Gd: null,
- Hn: "",
- sM: y.Oa,
- nn: null,
- ta: "ImageView",
- rM: !0,
- ctor: function() {
- this.kf = x(0, 0, 0, 0);
- this.nn = t(this.ea.width, this.ea.height);
- y.prototype.ctor.call(this)
- },
- j: function(c, d) {
- y.prototype.j.call(this);
- void 0 !== c && this.Wf(c, d);
- return !0
- },
- fl: function() {
- this.Gd = f.q.create();
- this.bd(this.Gd, Gc.xk, -1)
- },
- Wf: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.Hn = c;
- this.sM = d;
- var e = this.Gd;
- switch (this.sM) {
- case y.Oa:
- e.Ge(c);
- break;
- case y.cb:
- e.hl(c)
- }
- var g = e.e();
- e.Ba ? (this.nn.width = this.pb.width ? this.pb.width :
- g.width, this.nn.height = this.pb.height ? this.pb.height : g.height) : (e.oe(function() {
- var c = e.e();
- this.nn.width = this.pb.width ? this.pb.width : c.width;
- this.nn.height = this.pb.height ? this.pb.height : c.height;
- e.Cc && e.Cc(this.kf);
- this.qea()
- }, this), this.nn.width = this.pb.width, this.nn.height = this.pb.height);
- this.$ && e.Cc(this.kf);
- this.sk();
- this.Al();
- e.F(this.$a());
- e.J(this.vb());
- this.Qf(this.nn);
- this.rM = !0
- }
- },
- sc: function(c) {
- this.$ || this.Gd.sc(c)
- },
- sk: function() {
- this.$ ? this.Gd.jb(this.Fb ? -1 : 1) : this.Gd.Pd(this.Fb)
- },
- Al: function() {
- this.$ ?
- this.Gd.tb(this.Hb ? -1 : 1) : this.Gd.Yf(this.Hb)
- },
- On: function() {
- this.rM && (this.qea(), this.rM = !1)
- },
- zh: function(c) {
- this.$ != c && (this.$ = c, this.Ci(this.Gd), this.Gd = null, this.Gd = this.$ ? f.Ua.create() : f.q.create(), this.Wf(this.Hn, this.sM), this.bd(this.Gd, Gc.xk, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.Cc(this.kf))
- },
- T0: function() {
- return this.$
- },
- df: function(c) {
- if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c
- },
- Cc: function(c) {
- this.kf = c;
- this.$ && this.Gd.Cc(c)
- },
- X_: function() {
- return this.kf
- },
- S: function(c, d) {
- void 0 === d ? (y.prototype.S.call(this, c), this.Gd.S(c)) : (y.prototype.S.call(this, c, d), this.Gd.S(c, d))
- },
- Xe: function(c) {
- y.prototype.Xe.call(this, c);
- this.Gd.Xe(c)
- },
- Ye: function(c) {
- y.prototype.Ye.call(this, c);
- this.Gd.Ye(c)
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.rM = !0
- },
- e: function() {
- return this.nn
- },
- lf: function() {
- return this.nn.width
- },
- Gg: function() {
- return this.nn.height
- },
- Jr: function() {
- return this.Gd
- },
- qea: function() {
- if (this.Gb) this.$ || this.Gd.ib(1);
- else if (this.$) this.Gd.He(this.ea);
- else {
- var c =
- this.Gd.e();
- if (0 >= c.width || 0 >= c.height) {
- this.Gd.ib(1);
- return
- }
- this.Gd.jb(this.ea.width / c.width);
- this.Gd.tb(this.ea.height / c.height)
- }
- this.Gd.o(this.m.width / 2, this.m.height / 2)
- },
- sJ: function() {
- this.Ii(this.Gd)
- },
- WC: function() {
- this.Cl(this.Gd)
- },
- dk: function() {
- return "ImageView"
- },
- Wn: function() {},
- Zh: function() {
- return Gc.create()
- },
- zi: function(c) {
- c instanceof Gc && (this.We = c.We, this.zh(c.$), this.Wf(c.Hn, c.sM), this.Cc(c.kf))
- }
- });
- Gc.create = function(c, d) {
- var e = new Gc;
- void 0 !== c && e.j(c, d);
- return e
- };
- Gc.xk = -1;
- var Hc = y.extend({
- Oh: null,
- dm: 100,
- Pw: 0,
- ob: null,
- tN: y.Oa,
- Sl: null,
- $: !1,
- We: !0,
- kf: null,
- Hn: "",
- Osa: !1,
- ta: "LoadingBar",
- Cq: !0,
- ctor: function() {
- this.Oh = Hc.EK;
- this.Sl = t(0, 0);
- this.kf = x(0, 0, 0, 0);
- y.prototype.ctor.call(this)
- },
- fl: function() {
- this.ob = f.q.create();
- f.v.prototype.n.call(this, this.ob, Hc.xk, -1);
- this.ob.S(0, 0.5)
- },
- xh: function(c) {
- if (this.Oh != c) switch (this.Oh = c, this.Oh) {
- case Hc.EK:
- this.ob.S(0, 0.5);
- this.ob.o(0.5 * -this.Pw, 0);
- this.$ || this.ob.Pd(!1);
- break;
- case Hc.gU:
- this.ob.S(1, 0.5), this.ob.o(0.5 * this.Pw, 0), this.$ ||
- this.ob.Pd(!0)
- }
- },
- OB: function() {
- return this.Oh
- },
- Wf: function(c, d) {
- if (c) {
- this.tN = d = d || y.Oa;
- this.Hn = c;
- var e = this.ob;
- switch (this.tN) {
- case y.Oa:
- this.$ ? (e.Ge(c), e.Cc(this.kf)) : e.ab(c);
- break;
- case y.cb:
- this.$ ? (e.hl(c), e.Cc(this.kf)) : e.Dd(c)
- }
- e.F(this.$a());
- e.J(this.vb());
- var g = e.e();
- this.Sl.width = g.width;
- this.Sl.height = g.height;
- switch (this.Oh) {
- case Hc.EK:
- e.S(0, 0.5);
- this.$ || e.Pd(!1);
- break;
- case Hc.gU:
- e.S(1, 0.5), this.$ || e.Pd(!0)
- }
- this.HO();
- this.Qf(this.Sl);
- this.Cq = !0
- }
- },
- zh: function(c) {
- this.$ != c && (this.$ = c, this.Ci(this.ob),
- this.ob = this.$ ? f.Ua.create() : f.q.create(), this.Wf(this.Hn, this.tN), this.bd(this.ob, Hc.xk, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.Cc(this.kf), this.Fi(this.dm))
- },
- T0: function() {
- return this.$
- },
- Cc: function(c) {
- this.kf = c;
- this.$ && this.ob.Cc(c)
- },
- X_: function() {
- return this.kf
- },
- Fi: function(c) {
- if (!(0 > c || 100 < c || 0 >= this.Pw))
- if (this.dm = c, c = this.dm / 100, this.$) this.Lha();
- else {
- var d = this.ob.EH();
- this.ob.sc(x(d.x, d.y, this.Sl.width * c, this.Sl.height))
- }
- },
- f0: function() {
- return this.dm
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.Cq = !0
- },
- df: function(c) {
- if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c
- },
- Wn: function() {
- return this.Sl
- },
- e: function() {
- return this.Sl
- },
- lf: function() {
- return this.Sl.width
- },
- Gg: function() {
- return this.Sl.height
- },
- Jr: function() {
- return this.ob
- },
- HO: function() {
- var c = this.ob;
- if (this.Gb) this.$ || (this.Pw = this.Sl.width, c.ib(1));
- else if (this.Pw = this.ea.width, this.$) this.Lha();
- else {
- var d = this.Sl;
- if (0 >= d.width || 0 >= d.height) {
- c.ib(1);
- return
- }
- var e = this.ea.height / d.height;
- c.jb(this.ea.width / d.width);
- c.tb(e)
- }
- switch (this.Oh) {
- case Hc.EK:
- c.o(0,
- 0.5 * this.m.height);
- break;
- case Hc.gU:
- c.o(this.Pw, 0.5 * this.m.height)
- }
- },
- On: function() {
- this.Cq && (this.HO(), this.Cq = !1)
- },
- Lha: function() {
- this.ob.He(t(this.dm / 100 * this.Pw, this.ea.height))
- },
- sJ: function() {
- this.Ii(this.ob)
- },
- WC: function() {
- this.Cl(this.ob)
- },
- dk: function() {
- return "LoadingBar"
- },
- Zh: function() {
- return Hc.create()
- },
- zi: function(c) {
- c instanceof Hc && (this.We = c.We, this.zh(c.$), this.Wf(c.Hn, c.tN), this.Cc(c.kf), this.Fi(c.dm), this.xh(c.Oh))
- }
- }),
- q = Hc.prototype;
- f.d(q, "direction", q.OB, q.xh);
- f.d(q, "percent", q.f0, q.Fi);
- q = null;
- Hc.create = function(c, d) {
- var e = new Hc;
- void 0 !== c && e.Wf(c);
- void 0 !== d && e.Fi(d);
- return e
- };
- Hc.EK = 0;
- Hc.gU = 1;
- Hc.xk = -1;
- var Ic = y.extend({
- ob: null,
- Ud: null,
- EA: null,
- Tk: null,
- lm: null,
- km: null,
- PA: null,
- cL: 0,
- dm: 0,
- $: !1,
- We: !0,
- Hn: "",
- NX: "",
- gba: "",
- hba: "",
- fba: "",
- lL: null,
- mL: null,
- rG: null,
- sG: null,
- dL: y.Oa,
- mN: y.Oa,
- bV: y.Oa,
- cV: y.Oa,
- aV: y.Oa,
- Osa: !1,
- ta: "Slider",
- Cq: !0,
- eG: !0,
- ctor: function() {
- this.EA = t(0, 0);
- this.lL = x(0, 0, 0, 0);
- this.mL = x(0, 0, 0, 0);
- y.prototype.ctor.call(this)
- },
- j: function() {
- return y.prototype.j.call(this) ? !0 : !1
- },
- fl: function() {
- this.ob = f.q.create();
- this.Ud = f.q.create();
- this.Ud.S(0, 0.5);
- this.bd(this.ob, Ic.U3, -1);
- this.bd(this.Ud, Ic.J6, -1);
- this.Tk = f.q.create();
- this.lm = f.q.create();
- this.lm.za(!1);
- this.km = f.q.create();
- this.km.za(!1);
- this.PA = f.v.create();
- this.PA.n(this.Tk);
- this.PA.n(this.lm);
- this.PA.n(this.km);
- this.bd(this.PA, Ic.lja, -1)
- },
- ik: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.Hn = c;
- this.dL = d;
- var e = this.ob;
- switch (this.dL) {
- case y.Oa:
- this.$ ? e.Ge(c) : e.ab(c);
- break;
- case y.cb:
- this.$ ? e.hl(c) : e.Dd(c)
- }
- e.F(this.$a());
- e.J(this.vb());
- this.eG = this.Cq = !0;
- this.Qf(this.ob.e())
- }
- },
- wu: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.NX = c;
- this.mN = d;
- var e = this.Ud;
- switch (this.mN) {
- case y.Oa:
- this.$ ?
- e.Ge(c) : e.ab(c);
- break;
- case y.cb:
- this.$ ? e.hl(c) : e.Dd(c)
- }
- this.Ud.F(this.$a());
- this.Ud.J(this.vb());
- this.Ud.S(r(0, 0.5));
- e = this.Ud.e();
- this.EA = {
- width: e.width,
- height: e.height
- };
- this.eG = !0
- }
- },
- zh: function(c) {
- this.$ != c && (this.$ = c, this.Ci(this.ob, !0), this.Ci(this.Ud, !0), this.Ud = this.ob = null, this.$ ? (this.ob = f.Ua.create(), this.Ud = f.Ua.create()) : (this.ob = f.q.create(), this.Ud = f.q.create()), this.ik(this.Hn, this.dL), this.wu(this.NX, this.mN), this.bd(this.ob, Ic.U3, -1), this.bd(this.Ud, Ic.J6, -1), this.$ ? (c = this.Gb, this.df(!1),
- this.We = c) : this.df(this.We), this.Mga(this.lL), this.Lga(this.mL))
- },
- T0: function() {
- return this.$
- },
- df: function(c) {
- if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c
- },
- Cc: function(c) {
- this.Mga(c);
- this.Lga(c)
- },
- Mga: function(c) {
- this.lL = c;
- this.$ && this.ob.Cc(c)
- },
- LSa: function() {
- return this.lL
- },
- Lga: function(c) {
- this.mL = c;
- this.$ && this.Ud.Cc(c)
- },
- PSa: function() {
- return this.mL
- },
- jfa: function(c, d, e, g) {
- this.hC(c, g);
- this.iC(d, g);
- this.gC(e, g)
- },
- hC: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.gba = c;
- this.bV = d;
- switch (this.bV) {
- case y.Oa:
- this.Tk.ab(c);
- break;
- case y.cb:
- this.Tk.Dd(c)
- }
- this.Tk.F(this.$a());
- this.Tk.J(this.vb())
- }
- },
- iC: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.hba = c;
- this.cV = d;
- switch (this.cV) {
- case y.Oa:
- this.lm.ab(c);
- break;
- case y.cb:
- this.lm.Dd(c)
- }
- this.lm.F(this.$a());
- this.lm.J(this.vb())
- }
- },
- gC: function(c, d) {
- if (c) {
- d = d || y.Oa;
- this.fba = c;
- this.aV = d;
- switch (this.aV) {
- case y.Oa:
- this.km.ab(c);
- break;
- case y.cb:
- this.km.Dd(c)
- }
- this.km.F(this.$a());
- this.km.J(this.vb())
- }
- },
- Fi: function(c) {
- 100 < c && (c = 100);
- 0 > c && (c = 0);
- this.dm = c;
- c = c / 100 * this.cL;
- this.PA.o(r(c, this.m.height /
- 2));
- if (this.$) this.Ud.He(t(c, this.EA.height));
- else {
- var d = this.Ud,
- e = d.EH();
- d.sc(x(e.x, e.y, c, e.height), d.pf)
- }
- },
- WB: function(c) {
- c = this.Tk.yi(c);
- var d = this.Tk.e();
- return f.Bu(x(0, 0, d.width, d.height), c)
- },
- rc: function(c, d) {
- var e = y.prototype.rc.call(this, c, d);
- if (this.Rv) {
- var g = this.yi(this.qm);
- this.Fi(this.Mda(g.x));
- this.Pfa()
- }
- return e
- },
- hd: function(c) {
- c = this.yi(c.cf());
- this.Fi(this.Mda(c.x));
- this.Pfa()
- },
- gd: function(c, d) {
- y.prototype.gd.call(this, c, d)
- },
- ef: function(c, d) {
- y.prototype.ef.call(this, c, d)
- },
- Mda: function(c) {
- return c /
- this.cL * 100
- },
- rPa: function(c, d) {
- this.sG = c;
- this.rG = d
- },
- addEventListener: function(c) {
- this.qb = c
- },
- Pfa: function() {
- this.rG && this.sG && this.sG.call(this.rG, this, Ic.f5);
- this.qb && this.qb(Ic.f5)
- },
- f0: function() {
- return this.dm
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.eG = this.Cq = !0
- },
- On: function() {
- this.Cq && (this.HO(), this.Cq = !1);
- this.eG && (this.pFa(), this.eG = !1)
- },
- Wn: function() {
- return this.ob.e()
- },
- Jr: function() {
- return this.ob
- },
- HO: function() {
- if (this.Gb) this.ob.ib(1), this.cL = this.m.width;
- else if (this.cL = this.m.width,
- this.$) this.ob.He(this.m);
- else {
- var c = this.ob.e();
- if (0 >= c.width || 0 >= c.height) {
- this.ob.ib(1);
- return
- }
- var d = this.m.height / c.height;
- this.ob.jb(this.m.width / c.width);
- this.ob.tb(d)
- }
- this.ob.o(this.m.width / 2, this.m.height / 2);
- this.Fi(this.dm)
- },
- pFa: function() {
- if (this.Gb) {
- if (!this.$) {
- var c = this.EA,
- d = this.m.width / c.width,
- c = this.m.height / c.height;
- this.Ud.jb(d);
- this.Ud.tb(c)
- }
- } else if (this.$) this.Ud.He(this.m), this.EA = this.Ud.e();
- else {
- c = this.EA;
- if (0 >= c.width || 0 >= c.height) {
- this.Ud.ib(1);
- return
- }
- d = this.m.width / c.width;
- c = this.m.height / c.height;
- this.Ud.jb(d);
- this.Ud.tb(c)
- }
- this.Ud.o(0, this.m.height / 2);
- this.Fi(this.dm)
- },
- e: function() {
- var c = this.ob.e();
- return t(c.width, c.height)
- },
- lf: function() {
- return this.ob.lf()
- },
- Gg: function() {
- return this.ob.Gg()
- },
- rI: function() {
- this.Tk.za(!0);
- this.lm.za(!1);
- this.km.za(!1)
- },
- sI: function() {
- this.Tk.za(!1);
- this.lm.za(!0);
- this.km.za(!1)
- },
- vC: function() {
- this.Tk.za(!1);
- this.lm.za(!1);
- this.km.za(!0)
- },
- dk: function() {
- return "Slider"
- },
- Zh: function() {
- return Ic.create()
- },
- zi: function(c) {
- this.We = c.We;
- this.zh(c.$);
- this.ik(c.Hn, c.dL);
- this.wu(c.NX, c.mN);
- this.hC(c.gba, c.bV);
- this.iC(c.hba, c.cV);
- this.gC(c.fba, c.aV);
- this.Fi(c.dm);
- this.rG = c.rG;
- this.sG = c.sG;
- this.qb = c.qb
- },
- sJ: function() {
- this.Ii(this.ob);
- this.Ii(this.Ud);
- this.Ii(this.Tk);
- this.Ii(this.lm);
- this.Ii(this.km)
- },
- WC: function() {
- this.Cl(this.ob);
- this.Cl(this.Ud);
- this.Cl(this.Tk);
- this.Cl(this.lm);
- this.Cl(this.km)
- }
- }),
- q = Ic.prototype;
- f.d(q, "percent", q.f0, q.Fi);
- q = null;
- Ic.create = function() {
- var c = new Ic;
- return c && c.j() ? c : null
- };
- Ic.f5 = 0;
- Ic.U3 = -3;
- Ic.J6 = -2;
- Ic.lja = -1;
- var Jc = y.extend({
- eO: !1,
- WM: 1,
- XM: 1,
- Rc: "Thonburi",
- Sc: 10,
- gaa: 0.5,
- Cb: "",
- WA: null,
- YOa: 0,
- XOa: 0,
- ta: "Text",
- zc: null,
- ar: !0,
- ctor: function() {
- this.zc = Jc.upa.g7;
- this.WA = t(0, 0);
- y.prototype.ctor.call(this)
- },
- j: function(c, d, e) {
- return y.prototype.j.call(this) ? (0 < arguments.length && (this.wa(c), this.de(d), this.Qd(e)), !0) : !1
- },
- fl: function() {
- this.Cb = f.ia.create();
- f.v.prototype.n.call(this, this.Cb, Jc.xk, -1)
- },
- T2: function(c) {
- f.log("Please use the setString");
- this.wa(c)
- },
- wa: function(c) {
- this.Cb.wa(c);
- this.Qf(this.Cb.e());
- this.ar = !0
- },
- getStringValue: function() {
- f.log("Please use the getString");
- return this.Cb.qc()
- },
- qc: function() {
- return this.Cb.qc()
- },
- ru: function() {
- return this.Cb.ru()
- },
- Qd: function(c) {
- this.Sc = c;
- this.Cb.Qd(c);
- this.Qf(this.Cb.e());
- this.ar = !0
- },
- Un: function() {
- return this.Sc
- },
- de: function(c) {
- this.Rc = c;
- this.Cb.de(c);
- this.Qf(this.Cb.e());
- this.ar = !0
- },
- Ou: function(c) {
- this.Cb.gR(c);
- this.Qf(this.Cb.e());
- this.ar = !0
- },
- gWa: function() {
- return this.Cb.Pza()
- },
- ns: function(c) {
- this.Cb.jR(c);
- this.Qf(this.Cb.e());
- this.ar = !0
- },
- uBa: function() {
- return this.Cb.Xo
- },
- os: function(c) {
- this.Cb.ER(c);
- this.Qf(this.Cb.e());
- this.ar = !0
- },
- vBa: function() {
- return this.Cb.tp
- },
- BR: function(c) {
- this.eO = c
- },
- aYa: function() {
- return this.eO
- },
- rI: function() {
- this.eO && (this.Cb.jb(this.WM), this.Cb.tb(this.XM))
- },
- sI: function() {
- this.eO && (this.Cb.jb(this.WM + this.gaa), this.Cb.tb(this.XM + this.gaa))
- },
- vC: function() {},
- sk: function() {
- this.Fb ? this.Cb.jb(-1) : this.Cb.jb(1)
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.ar = !0
- },
- On: function() {
- this.ar && (this.iQ(), this.ar = !1)
- },
- Wn: function() {
- return this.Cb.e()
- },
- Jr: function() {
- return this.Cb
- },
- iQ: function() {
- if (this.Gb) this.Cb.ib(1), this.WM = this.XM = 1;
- else {
- this.Cb.gR(t(this.m.width, this.m.height));
- var c = this.Cb.e();
- if (0 >= c.width || 0 >= c.height) {
- this.Cb.ib(1);
- return
- }
- var d = this.m.width / c.width,
- c = this.m.height / c.height;
- this.Cb.jb(d);
- this.Cb.tb(c);
- this.WM = d;
- this.XM = c
- }
- this.Cb.o(this.m.width / 2, this.m.height / 2)
- },
- dk: function() {
- return "Label"
- },
- L_: function(c, d, e) {
- this.Cb.L_(c, d, e)
- },
- qRa: function() {},
- pRa: function() {},
- RQa: function() {},
- Zh: function() {
- return Jc.create()
- },
- Cp: function() {
- return this.Rc
- },
- IH: function() {
- return this.zc
- },
- mr: function(c) {
- var d = f.ia.eM.exec(c);
- d && (this.Sc = parseInt(d[1]), this.Rc = d[2], this.Cb.mr(c), this.iQ())
- },
- Qv: function() {
- return this.Cb.Qv()
- },
- CN: function(c) {
- this.WA.width = c;
- this.Cb.CN(c);
- this.iQ()
- },
- BN: function(c) {
- this.WA.height = c;
- this.Cb.BN(c);
- this.iQ()
- },
- vF: function() {
- return this.WA.width
- },
- pW: function() {
- return this.WA.height
- },
- zi: function(c) {
- c instanceof Kc && (this.de(c.Rc), this.Qd(c.Un()), this.wa(c.qc()), this.BR(c.C5a), this.Ou(c.WA), this.ns(c.Cb.Xo), this.os(c.Cb.tp))
- }
- }),
- q =
- Jc.prototype;
- f.d(q, "boundingWidth", q.vF, q.CN);
- f.d(q, "boundingHeight", q.pW, q.BN);
- f.d(q, "string", q.qc, q.wa);
- f.d(q, "stringLength", q.ru);
- f.d(q, "font", q.Qv, q.mr);
- f.d(q, "fontSize", q.Un, q.Qd);
- f.d(q, "fontName", q.Cp, q.de);
- f.d(q, "textAlign", q.uBa, q.ns);
- f.d(q, "verticalAlign", q.vBa, q.os);
- var q = null,
- Kc = Jc.create = function(c, d, e) {
- var g = new Jc;
- if (0 < arguments.length) {
- if (g && g.j(c, d, e)) return g
- } else if (g && g.j()) return g;
- return null
- };
- Jc.xk = -1;
- Jc.upa = {
- g7: 0,
- Poa: 1
- };
- var Lc = y.extend({
- Qh: null,
- Hw: "",
- qV: "",
- Sj: 0,
- Ti: 0,
- GY: "",
- ta: "TextAtlas",
- JF: null,
- ctor: function() {
- y.prototype.ctor.call(this)
- },
- fl: function() {
- this.Qh = new f.an;
- this.Qh.S(r(0.5, 0.5));
- this.bd(this.Qh, Lc.xk, -1)
- },
- setProperty: function(c, d, e, g, h) {
- this.Hw = c;
- this.qV = d;
- this.Sj = e;
- this.Ti = g;
- this.GY = h;
- this.Qh.xf(c, this.qV, this.Sj, this.Ti, this.GY[0]);
- this.Qf(this.Qh.e());
- this.JF = !0
- },
- wa: function(c) {
- this.Hw = c;
- this.Qh.wa(c);
- this.Qf(this.Qh.e());
- this.JF = !0
- },
- setStringValue: function(c) {
- f.log("Please use the setString");
- this.wa(c)
- },
- getStringValue: function() {
- f.log("Please use the getString");
- return this.qc()
- },
- qc: function() {
- return this.Qh.qc()
- },
- ru: function() {
- return this.Qh.ru()
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.JF = !0
- },
- On: function() {
- this.JF && (this.GDa(), this.JF = !1)
- },
- Wn: function() {
- return this.Qh.e()
- },
- Jr: function() {
- return this.Qh
- },
- GDa: function() {
- if (this.Gb) this.Qh.ib(1);
- else {
- var c = this.Qh.e();
- if (0 >= c.width || 0 >= c.height) {
- this.Qh.ib(1);
- return
- }
- var d = this.ea.height / c.height;
- this.Qh.jb(this.ea.width / c.width);
- this.Qh.tb(d)
- }
- this.Qh.o(this.m.width /
- 2, this.m.height / 2)
- },
- dk: function() {
- return "LabelAtlas"
- },
- Zh: function() {
- return Lc.create()
- },
- zi: function(c) {
- c && this.setProperty(c.Hw, c.qV, c.Sj, c.Ti, c.GY)
- }
- }),
- q = Lc.prototype;
- f.d(q, "string", q.qc, q.wa);
- q = null;
- Lc.create = function(c, d, e, g, h) {
- var k = new Lc;
- return k && k.j() ? (0 < arguments.length && k.setProperty(c, d, e, g, h), k) : null
- };
- Lc.xk = -1;
- var Mc, Nc = Mc = y.extend({
- hh: null,
- a$: !1,
- tra: "",
- Hw: "",
- ta: "TextBMFont",
- DM: !0,
- ctor: function() {
- y.prototype.ctor.call(this)
- },
- fl: function() {
- this.hh = f.qq.create();
- this.bd(this.hh, Mc.xk, -1)
- },
- GC: function(c) {
- c && (this.tra = c, this.hh.xf("", c), this.WIa(), this.h1(), this.hh.Ba || this.hh.oe(function() {
- this.h1()
- }, this), this.hh.F(this.$a()), this.hh.J(this.vb()), this.a$ = !0, this.wa(this.Hw))
- },
- T2: function(c) {
- f.log("Please use the setString");
- this.wa(c)
- },
- wa: function(c) {
- this.Hw = c;
- this.a$ && (this.hh.wa(c), this.Qf(this.hh.e()),
- this.DM = !0)
- },
- qc: function() {
- return this.Hw
- },
- ru: function() {
- return this.hh.ru()
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.DM = !0
- },
- On: function() {
- this.DM && (this.h1(), this.DM = !1)
- },
- Wn: function() {
- return this.hh.e()
- },
- Jr: function() {
- return this.hh
- },
- h1: function() {
- if (this.Gb) this.hh.ib(1);
- else {
- var c = this.hh.e();
- if (0 >= c.width || 0 >= c.height) {
- this.hh.ib(1);
- return
- }
- var d = this.ea.height / c.height;
- this.hh.jb(this.ea.width / c.width);
- this.hh.tb(d)
- }
- this.hh.o(this.m.width / 2, this.m.height / 2)
- },
- dk: function() {
- return "LabelBMFont"
- }
- }),
- q = Mc.prototype;
- f.d(q, "string", q.qc, q.setStringValue);
- q = null;
- Mc.create = function(c, d) {
- var e = new Mc;
- return e && e.j() ? (d && c && (e.GC(d), e.wa(c)), e) : null
- };
- Mc.xk = -1;
- var Oc = f.Gj.extend({
- maxLengthEnabled: !1,
- maxLength: 0,
- passwordEnabled: !1,
- qw: "",
- TU: !1,
- JV: !1,
- LW: !1,
- GV: !1,
- ta: "UICCTextField",
- Gn: !0,
- ctor: function() {
- f.Gj.prototype.ctor.call(this);
- this.maxLengthEnabled = !1;
- this.maxLength = 0;
- this.passwordEnabled = !1;
- this.qw = "*";
- this.GV = this.LW = this.JV = this.TU = !1
- },
- ba: function() {
- f.Gj.prototype.$p.call(this, this)
- },
- yfa: function() {
- this.JI(!0);
- return !1
- },
- x1: function(c, d, e) {
- if (1 == e && "\n" == d) return !1;
- this.QI(!0);
- return this.maxLengthEnabled && f.Gj.prototype.MB.call(this) >= this.maxLength ?
- !0 : !1
- },
- zfa: function() {
- this.LI(!0);
- return !1
- },
- Afa: function() {
- this.MI(!0);
- return !1
- },
- UH: function(c, d) {
- "\n" != c && this.maxLengthEnabled && this.qc().length >= this.maxLength ? this.passwordEnabled && this.pR(this.qc()) : (f.Gj.prototype.UH.call(this, c, d), this.passwordEnabled && 0 < f.Gj.prototype.MB.call(this) && this.pR(this.qc()))
- },
- TO: function() {
- f.Gj.prototype.TO.call(this);
- 0 < f.Gj.prototype.MB.call(this) && this.passwordEnabled && this.pR(this.Si)
- },
- O_a: function() {
- f.Gj.prototype.XG.call(this)
- },
- pQa: function() {
- f.Gj.prototype.UO.call(this)
- },
- cy: function(c) {
- this.maxLengthEnabled = c
- },
- ZH: function() {
- return this.maxLengthEnabled
- },
- ks: function(c) {
- this.maxLength = c
- },
- Ax: function() {
- return this.maxLength
- },
- MB: function() {
- return f.Gj.prototype.MB.call(this)
- },
- dy: function(c) {
- this.passwordEnabled = c
- },
- $H: function() {
- return this.passwordEnabled
- },
- IC: function(c) {
- if (!(1 < c.length)) {
- var d = c.charCodeAt(0);
- 33 > d || 126 < d || (this.qw = c)
- }
- },
- pR: function(c) {
- var d = "",
- e = c.length;
- c = e;
- this.maxLengthEnabled && e > this.maxLength && (c = this.maxLength);
- for (e = 0; e < c; ++e) d += this.qw;
- f.ia.prototype.wa.call(this,
- d)
- },
- JI: function(c) {
- this.TU = c
- },
- fP: function() {
- return this.TU
- },
- MI: function(c) {
- this.JV = c
- },
- kP: function() {
- return this.JV
- },
- QI: function(c) {
- this.LW = c
- },
- mP: function() {
- return this.LW
- },
- LI: function(c) {
- this.GV = c
- },
- jP: function() {
- return this.GV
- },
- j: function() {
- return y.prototype.j.call(this) ? (this.Om(!0), !0) : !1
- },
- $Da: function() {
- return !1
- }
- });
- Oc.create = function(c, d, e) {
- var g = new Oc;
- return g && g.xf("", d, e) ? (c && g.Gi(c), g) : null
- };
- var Pc = y.extend({
- xa: null,
- fO: 0,
- cO: 0,
- Gba: !1,
- tr: null,
- ur: null,
- zNa: null,
- VNa: null,
- qOa: null,
- SNa: null,
- ANa: null,
- WNa: null,
- rOa: null,
- TNa: null,
- qw: "",
- Gn: !0,
- ctor: function() {
- y.prototype.ctor.call(this)
- },
- j: function() {
- return y.prototype.j.call(this) ? (this.Om(!0), !0) : !1
- },
- ba: function() {
- y.prototype.ba.call(this);
- this.CR(!0)
- },
- Ra: function() {
- this.CR(!1);
- D.prototype.Ra.call(this)
- },
- fl: function() {
- this.xa = Oc.create("input words here", "Thonburi", 20);
- this.bd(this.xa, Pc.xk, -1)
- },
- Z2: function(c) {
- this.fO = c.width;
- this.cO = c.height
- },
- A4a: function(c) {
- this.Gba = c
- },
- On: function() {
- this.Gn && (this.yIa(), this.Gn = !1)
- },
- WB: function(c) {
- if (this.Gba) {
- c = this.yi(c);
- var d = x(-this.fO * this.Eb.x, -this.cO * this.Eb.y, this.fO, this.cO);
- 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 !0
- } else return y.prototype.WB.call(this, c);
- return !1
- },
- zWa: function() {
- return t(this.fO, this.cO)
- },
- T2: function(c) {
- f.log("Please use the setString");
- this.wa(c)
- },
- wa: function(c) {
- c && (c = String(c), this.ZH() && (c = c.substr(0, this.Ax())),
- this.$H() ? (this.xa.pR(c), this.xa.wa(""), this.xa.UH(c, c.length)) : this.xa.wa(c), this.Gn = !0, this.Qf(this.xa.e()))
- },
- Gi: function(c) {
- this.xa.Gi(c);
- this.Gn = !0;
- this.Qf(this.xa.e())
- },
- RB: function() {
- return this.xa.RB()
- },
- mr: function(c) {
- this.xa.mr(c);
- this.Gn = !0
- },
- Qv: function() {
- return this.xa.Qv()
- },
- Qd: function(c) {
- this.xa.Qd(c);
- this.Gn = !0;
- this.Qf(this.xa.e())
- },
- Un: function() {
- return this.xa.cWa()
- },
- de: function(c) {
- this.xa.de(c);
- this.Gn = !0;
- this.Qf(this.xa.e())
- },
- Cp: function() {
- return this.xa.bWa()
- },
- Uxa: function() {
- this.xa.UO()
- },
- getStringValue: function() {
- f.log("Please use the getString");
- return this.qc()
- },
- qc: function() {
- return this.xa.qc()
- },
- ru: function() {
- return this.xa.ru()
- },
- rc: function(c, d) {
- var e = this,
- g = y.prototype.rc.call(e, c, d);
- e.Rv && setTimeout(function() {
- e.xa.XG()
- }, 0);
- return g
- },
- cy: function(c) {
- this.xa.cy(c)
- },
- ZH: function() {
- return this.xa.ZH()
- },
- ks: function(c) {
- this.xa.ks(c);
- this.wa(this.qc())
- },
- Ax: function() {
- return this.xa.Ax()
- },
- dy: function(c) {
- this.xa.dy(c)
- },
- $H: function() {
- return this.xa.$H()
- },
- IC: function(c) {
- this.xa.IC(c);
- this.qw =
- c;
- this.wa(this.qc())
- },
- lVa: function() {
- return this.qw
- },
- update: function() {
- this.fP() && (this.twa(), this.JI(!1));
- this.kP() && (this.Qxa(), this.MI(!1));
- this.mP() && (this.LCa(), this.QI(!1), this.Gn = !0, this.Qf(this.xa.e()));
- this.jP() && (this.Nxa(), this.LI(!1), this.Gn = !0, this.Qf(this.xa.e()))
- },
- fP: function() {
- return this.xa.fP()
- },
- JI: function(c) {
- this.xa.JI(c)
- },
- kP: function() {
- return this.xa.kP()
- },
- MI: function(c) {
- this.xa.MI(c)
- },
- mP: function() {
- return this.xa.mP()
- },
- QI: function(c) {
- this.xa.QI(c)
- },
- jP: function() {
- return this.xa.jP()
- },
- LI: function(c) {
- this.xa.LI(c)
- },
- twa: function() {
- this.tr && this.ur && this.ur.call(this.tr, this, Pc.pla);
- this.qb && this.qb(this, 0)
- },
- Qxa: function() {
- this.tr && this.ur && this.ur.call(this.tr, this, Pc.rla);
- this.qb && this.qb(this, 1)
- },
- LCa: function() {
- this.tr && this.ur && this.ur.call(this.tr, this, Pc.sla);
- this.qb && this.qb(this, 2)
- },
- Nxa: function() {
- this.tr && this.ur && this.ur.call(this.tr, this, Pc.qla);
- this.qb && this.qb(this, 3)
- },
- sPa: function(c, d) {
- this.ur = c;
- this.tr = d
- },
- S: function(c, d) {
- void 0 === d ? (y.prototype.S.call(this, c), this.xa.S(c)) :
- (y.prototype.S.call(this, c, d), this.xa.S(c, d))
- },
- Xe: function(c) {
- y.prototype.Xe.call(this, c);
- this.xa.Xe(c)
- },
- Ye: function(c) {
- y.prototype.Ye.call(this, c);
- this.xa.Ye(c)
- },
- kc: function() {
- y.prototype.kc.call(this);
- this.Gn = !0
- },
- yIa: function() {
- if (this.Gb) {
- this.xa.ib(1);
- var c = this.e();
- this.ea.width = c.width;
- this.ea.height = c.height
- } else {
- c = this.e();
- if (0 >= c.width || 0 >= c.height) {
- this.xa.ib(1);
- return
- }
- var d = this.ea.height / c.height;
- this.xa.jb(this.ea.width / c.width);
- this.xa.tb(d)
- }
- this.xa.o(this.m.width / 2, this.m.height / 2)
- },
- e: function() {
- return this.xa.e()
- },
- lf: function() {
- return this.xa.lf()
- },
- Gg: function() {
- return this.xa.Gg()
- },
- Jr: function() {
- return this.xa
- },
- sJ: function() {
- this.Ii(this.xa)
- },
- WC: function() {
- this.Cl(this.xa)
- },
- dk: function() {
- return "TextField"
- },
- XG: function() {
- this.xa.XG()
- },
- Zh: function() {
- return Pc.create()
- },
- zi: function(c) {
- this.wa(c.xa.qc());
- this.Gi(c.qc());
- this.Qd(c.xa.Un());
- this.de(c.xa.Cp());
- this.cy(c.ZH());
- this.ks(c.Ax());
- this.dy(c.$H());
- this.IC(c.qw);
- this.JI(c.fP());
- this.MI(c.kP());
- this.QI(c.mP());
- this.LI(c.jP())
- },
- Ou: function(c) {
- this.xa.gR(c.width, c.height)
- },
- ns: function(c) {
- this.xa.jR(c)
- },
- os: function(c) {
- this.xa.ER(c)
- }
- });
- Pc.create = function(c, d, e) {
- var g = new Pc;
- return g && g.j() ? (c && d && e && (g.Gi(c), g.de(d), g.Qd(e)), g) : null
- };
- q = Pc.prototype;
- f.d(q, "string", q.qc, q.wa);
- f.d(q, "placeHolder", q.RB, q.Gi);
- f.d(q, "font", q.Qv, q.mr);
- f.d(q, "fontSize", q.Un, q.Qd);
- f.d(q, "fontName", q.Cp, q.de);
- f.d(q, "maxLengthEnabled", q.ZH, q.cy);
- f.d(q, "maxLength", q.Ax, q.ks);
- f.d(q, "passwordEnabled", q.$H, q.dy);
- q = null;
- Pc.create = function() {
- return new Pc
- };
- Pc.pla = 0;
- Pc.rla = 1;
- Pc.sla = 2;
- Pc.qla = 3;
- Pc.xk = -1;
- var Qc = kc.extend({
- type: 0,
- tag: 0,
- color: null,
- ctor: function() {
- this.tag = this.type = 0;
- this.color = f.color(255, 255, 255, 255)
- },
- j: function(c, d, e) {
- this.tag = c;
- this.color.r = d.r;
- this.color.g = d.g;
- this.color.b = d.b;
- this.color.a = e
- }
- }),
- Rc = Qc.extend({
- text: "",
- fontName: "",
- fontSize: 0,
- ctor: function() {
- Qc.prototype.ctor.call(this);
- this.type = Qc.ST;
- this.fontName = this.text = "";
- this.fontSize = 0
- },
- j: function(c, d, e, g, h, k) {
- Qc.prototype.j.call(this, c, d, e);
- this.text = g;
- this.fontName = h;
- this.fontSize = k
- }
- });
- Rc.create = function(c, d, e, g, h, k) {
- var m = new Rc;
- m.j(c, d, e, g, h, k);
- return m
- };
- var cd = Qc.extend({
- ZO: "",
- GIa: null,
- HIa: 0,
- ctor: function() {
- Qc.prototype.ctor.call(this);
- this.type = Qc.VS;
- this.ZO = "";
- this.GIa = x(0, 0, 0, 0);
- this.HIa = 0
- },
- j: function(c, d, e, g) {
- Qc.prototype.j.call(this, c, d, e);
- this.ZO = g
- }
- });
- cd.create = function(c, d, e, g) {
- var h = new cd;
- h.j(c, d, e, g);
- return h
- };
- var dd = Qc.extend({
- RO: null,
- ctor: function() {
- Qc.prototype.ctor.call(this);
- this.type = Qc.iq;
- this.RO = null
- },
- j: function(c, d, e, g) {
- Qc.prototype.j.call(this, c, d, e);
- this.RO = g
- }
- });
- dd.create = function(c, d, e, g) {
- var h = new dd;
- h.j(c, d, e, g);
- return h
- };
- var ed = y.extend({
- Ov: !1,
- JA: null,
- dt: null,
- sn: 0,
- iZ: 0,
- ct: null,
- ctor: function() {
- y.prototype.ctor.call(this);
- this.Ov = !1;
- this.JA = [];
- this.dt = [];
- this.iZ = this.sn = 0
- },
- fl: function() {
- this.ct = f.v.create();
- this.ct.S(0.5, 0.5);
- this.bd(this.ct, 0, -1)
- },
- hXa: function(c, d) {
- this.JA.splice(d, 0, c);
- this.Ov = !0
- },
- C0a: function(c) {
- this.JA.push(c);
- this.Ov = !0
- },
- n1a: function(c) {
- "number" === typeof c ? this.JA.splice(c, 1) : f.Ld(this.JA, c);
- this.Ov = !0
- },
- mza: function() {
- if (this.Ov) {
- this.ct.Cf();
- this.dt.length = 0;
- var c, d, e = this.JA;
- if (this.Gb)
- for (this.yO(),
- c = 0; c < e.length; c++) {
- d = e[c];
- var g = null;
- switch (d.type) {
- case Qc.ST:
- g = f.ia.create(d.text, d.fontName, d.fontSize);
- break;
- case Qc.VS:
- g = f.q.create(d.ZO);
- break;
- case Qc.iq:
- g = d.RO
- }
- g.F(d.color);
- g.J(d.color.a);
- this.AI(g)
- } else
- for (this.yO(), c = 0; c < e.length; c++) switch (d = e[c], d.type) {
- case Qc.ST:
- this.mea(d.text, d.fontName, d.fontSize, d.color);
- break;
- case Qc.VS:
- this.XBa(d.ZO, d.color, d.color.a);
- break;
- case Qc.iq:
- this.lea(d.RO)
- }
- this.lza();
- this.Ov = !1
- }
- },
- mea: function(c, d, e, g) {
- var h = f.ia.create(c, d, e),
- k = h.e().width;
- this.sn -=
- k;
- 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 = f.ia.create(k.substr(0, h), d, e), h.F(g), h.J(g.a), this.AI(h)), this.yO(), this.mea(c, d, e, g)) : (h.F(g), h.J(g.a), this.AI(h))
- },
- XBa: function(c) {
- c = f.q.create(c);
- this.lea(c)
- },
- lea: function(c) {
- var d = c.e();
- this.sn -= d.width;
- 0 > this.sn ? (this.yO(), this.AI(c), this.sn -= d.width) : this.AI(c)
- },
- yO: function() {
- this.sn = this.pb.width;
- this.dt.push([])
- },
- lza: function() {
- var c = 0,
- d = this.ct,
- e = this.dt;
- if (this.Gb) {
- for (var g = 0, h = e[0], k = 0, m = 0; m < h.length; m++) {
- var n =
- h[m];
- n.S(r(0, 0));
- n.o(r(k, 0));
- d.n(n, 1, m);
- e = n.e();
- g += e.width;
- c = Math.max(c, e.height);
- k += e.width
- }
- d.Ga(t(g, c))
- } else {
- for (var g = [], p = 0; p < e.length; p++) {
- h = e[p];
- for (m = k = 0; m < h.length; m++) n = h[m], k = Math.max(n.e().height, k);
- g[p] = k;
- c += g[p]
- }
- c = this.pb.height;
- for (p = 0; p < e.length; p++)
- for (h = e[p], k = 0, c -= g[p] + this.iZ, m = 0; m < h.length; m++) n = h[m], n.S(r(0, 0)), n.o(r(k, c)), d.n(n, 1, 10 * p + m), k += n.e().width;
- d.Ga(this.ea)
- }
- this.dt.length = 0;
- this.Gb ? (h = this.Wn(), this.ea.width = h.width, this.ea.height = h.height) : (this.ea.width = this.pb.width,
- this.ea.height = this.pb.height);
- this.Qf(this.ea);
- d.o(0.5 * this.m.width, 0.5 * this.m.height)
- },
- AI: function(c) {
- 0 >= this.dt.length || this.dt[this.dt.length - 1].push(c)
- },
- I: function(c) {
- this.$c && (this.mza(), y.prototype.I.call(this, c))
- },
- R4a: function(c) {
- this.iZ = c
- },
- S: function(c) {
- y.prototype.S.call(this, c);
- this.ct.S(c)
- },
- Wn: function() {
- return this.ct.e()
- },
- e: function() {
- return this.ct.e()
- },
- df: function(c) {
- this.Gb != c && (this.Ov = !0, y.prototype.df.call(this, c))
- },
- dk: function() {
- return "RichText"
- }
- });
- ed.create = function() {
- return new ed
- };
- Qc.ST = 0;
- Qc.VS = 1;
- Qc.iq = 2;
- var F = D.extend({
- u: null,
- direction: null,
- Jo: null,
- Vh: 0,
- fi: 0,
- hg: 0,
- qf: 0,
- Oo: 0,
- Ko: 0,
- Mo: 0,
- No: 0,
- HE: !1,
- ez: 0,
- Rl: 0,
- IE: 0,
- NW: !1,
- TM: !1,
- bh: null,
- eL: !1,
- Ew: 0,
- RM: null,
- UE: 0,
- ut: !1,
- Yt: !1,
- It: !1,
- Ps: !1,
- iu: !1,
- NE: !1,
- Lo: null,
- fL: 0,
- RH: !1,
- rf: null,
- sf: null,
- ta: "ScrollView",
- qb: null,
- ctor: function() {
- D.prototype.ctor.call(this);
- this.direction = F.Yka;
- this.Jo = r(0, 0);
- this.No = this.Mo = this.Ko = this.Oo = this.qf = this.hg = this.fi = this.Vh = 0;
- this.HE = !1;
- this.Rl = this.ez = 0;
- this.IE = -1E3;
- this.TM = this.NW = !1;
- this.bh = r(0, 0);
- this.eL = !1;
- this.Ew = 0;
- this.RM = r(0,
- 0);
- this.UE = 5;
- this.NE = this.iu = this.Ps = this.It = this.Yt = this.ut = !1;
- this.Lo = r(0, 0);
- this.fL = 0;
- this.RH = !0;
- this.sf = this.rf = null
- },
- j: function() {
- return D.prototype.j.call(this) ? (this.Zp(!0), this.u.Om(!1), !0) : !1
- },
- ba: function() {
- D.prototype.ba.call(this);
- this.ds(!0)
- },
- Tf: function(c, d) {
- return this.Bm() == D.pq || this.Bm() == D.oq ? this.u.Tf(c, d) : y.prototype.Tf.call(this, c, d)
- },
- fl: function() {
- D.prototype.fl.call(this);
- this.u = D.create();
- this.bd(this.u, 1, 1)
- },
- kc: function() {
- D.prototype.kc.call(this);
- var c = this.m;
- this.Vh = c.height;
- this.qf = c.width;
- var d = c.width / 3,
- e = c.height / 3;
- this.Oo = c.height - e;
- this.Ko = e;
- this.Mo = d;
- this.No = this.m.width - d;
- e = this.u.e();
- d = e.height;
- e = Math.max(e.width, c.width);
- d = Math.max(d, c.height);
- this.u.Ga(t(e, d));
- this.u.o(0, c.height - this.u.e().height)
- },
- ay: function(c) {
- var d = this.m,
- e = d.width,
- g = d.height,
- h = this.u.e();
- c.width < d.width ? f.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : e = c.width;
- c.height < d.height ? f.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : g = c.height;
- this.u.Df(t(e, g));
- switch (this.direction) {
- case F.to:
- c = this.u.e();
- h = h.height - c.height;
- this.io(0, h);
- break;
- case F.so:
- this.u.Kc() <= d.width && (c = this.u.e(), h = h.width - c.width, this.io(h, 0));
- break;
- case F.Cg:
- c = this.u.e(), e = h.height - c.height, g = 0, this.u.Kc() <= d.width && (g = h.width - c.width), this.io(g, e)
- }
- h = this.u;
- c = h.e();
- e = h.Od();
- g = h.bk();
- 0 < h.Ac() && h.o(g.x * c.width, e.y);
- h.Kc() < d.width && h.o(d.width - (1 - g.x) * c.width, e.y);
- 0 < e.y && h.o(e.x, g.y * c.height);
- h.Fe() < d.height && h.o(e.x, d.height - (1 - g.y) * c.height)
- },
- uua: function(c) {
- var d =
- this.m.width,
- e = d,
- g = this.u,
- h = g.width;
- c < d ? f.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : e = c;
- g.width = e;
- switch (this.direction) {
- case F.so:
- case F.Cg:
- g.Kc() <= d && this.io(h - g.width, 0)
- }
- c = g.anchorX;
- 0 < g.Ac() && (g.x = c * e);
- g.Kc() < d && (g.x = d - (1 - c) * e)
- },
- tua: function(c) {
- var d = this.m.height,
- e = d,
- g = this.u,
- h = g.height;
- c < d ? f.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : e = c;
- g.height = e;
- switch (this.direction) {
- case F.to:
- case F.Cg:
- this.io(0, h - e)
- }
- c = g.anchorY;
- 0 < g.Ac() && (g.y = c * e);
- g.Kc() < d && (g.y = d - (1 - c) * e)
- },
- hAa: function() {
- return this.u.e()
- },
- Ora: function() {
- return this.u.width
- },
- Nra: function() {
- return this.u.height
- },
- n: function(c, d, e) {
- if (!c) return !1;
- d = d || c.Ya;
- e = e || c.Em();
- return this.u.n(c, d, e)
- },
- Cf: function() {
- this.Cu(!0)
- },
- Cu: function(c) {
- this.u.Cu(c)
- },
- removeChild: function(c, d) {
- return this.u.removeChild(c, d)
- },
- re: function() {
- return this.u.re()
- },
- Y_: function() {
- return this.u.Y_()
- },
- Za: function(c) {
- return this.u.Za(c)
- },
- sda: function(c) {
- return this.u.sda(c)
- },
- zO: function(c, d, e) {
- this.u.zO(c, d,
- e)
- },
- nP: function(c) {
- return this.u.nP(c)
- },
- Ida: function() {
- return this.u.Ida()
- },
- removeNode: function(c) {
- this.u.removeNode(c)
- },
- nga: function(c) {
- this.u.nga(c)
- },
- jga: function() {
- this.u.jga()
- },
- co: function(c, d) {
- var e = this.u.Od();
- this.RM.x = e.x + c;
- this.RM.y = e.y + d;
- this.u.o(this.RM)
- },
- zwa: function(c) {
- var d = this.ez;
- this.ez += c;
- if (this.NW) 0 >= this.Rl + this.IE * this.ez ? (this.PC(), this.cH()) : (d = (this.Rl + this.IE * (2 * d + c) * 0.5) * c, this.io(d * this.Jo.x, d * this.Jo.y) || (this.PC(), this.cH()));
- else if (this.TM) {
- var d = this.Jo.x * c * this.Rl,
- e = this.Jo.y * c * this.Rl;
- c = this.Twa(d, e);
- d = this.io(d, e);
- c && d || (this.PC(), this.cH())
- } else this.io(this.Jo.x * c * this.Rl, this.Jo.y * c * this.Rl) || (this.PC(), this.cH())
- },
- Jwa: function(c) {
- var d = this.fL,
- e = this.Lo;
- 0 >= d && this.j3();
- this.Kwa(e.x * c * d, e.y * c * d) || this.j3()
- },
- cH: function() {
- if (!this.iu) return !1;
- this.Rwa();
- if (this.Yt || this.Ps || this.ut || this.It) {
- var c, d;
- this.Yt && this.ut ? (c = f.gc(r(0, this.m.height), r(this.u.Ac(), this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Yt && this.It ? (c = f.gc(r(this.m.width, this.m.height),
- r(this.u.Kc(), this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps && this.ut ? (c = f.gc(r(0, 0), r(this.u.Ac(), this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps && this.It ? (c = f.gc(r(this.m.width, 0), r(this.u.Kc(), this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Yt ? (c = f.gc(r(0, this.m.height), r(0, this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps ? (c = f.gc(r(0, 0), r(0, this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.ut ? (c = f.gc(r(0, 0), r(this.u.Ac(), 0)),
- d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.It && (c = f.gc(r(this.m.width, 0), r(this.u.Kc(), 0)), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d));
- return !0
- }
- return !1
- },
- Rwa: function() {
- this.u.yd() > this.fi ? (this.es(), this.Ps = !0) : this.Ps = !1;
- this.u.Fe() < this.Vh ? (this.hs(), this.Yt = !0) : this.Yt = !1;
- this.u.Kc() < this.qf ? (this.gs(), this.It = !0) : this.It = !1;
- this.u.Ac() > this.hg ? (this.fs(), this.ut = !0) : this.ut = !1
- },
- Qu: function(c) {
- this.fL = c;
- this.NE = !0
- },
- j3: function() {
- this.NE = !1;
- this.fL = 0;
- this.Ps = this.Yt = this.It = this.ut = !1
- },
- lia: function(c,
- d, e, g) {
- this.PC();
- this.Jo = c;
- this.NW = e;
- this.Rl = d;
- this.HE = !0;
- this.IE = g
- },
- mo: function(c, d, e) {
- this.TM = !1;
- this.bh = c;
- var g = f.gc(c, this.u.Od());
- c = f.Af(g);
- var h = 0,
- k = -1E3,
- g = f.ff(g);
- e ? (k = -(2 * g) / (d * d), h = 2 * g / d) : (this.TM = !0, h = g / d);
- this.lia(c, h, e, k)
- },
- $n: function(c, d) {
- void 0 !== c.x && (d = c.y, c = c.x);
- var e = c,
- g = d;
- switch (this.direction) {
- case F.to:
- 0 >= d && (g = Math.max(d, this.m.height - this.u.e().height));
- break;
- case F.so:
- 0 >= c && (e = Math.max(c, this.m.width - this.u.e().width));
- break;
- case F.Cg:
- 0 >= d && (g = Math.max(d, this.m.height - this.u.e().height)),
- 0 >= c && (e = Math.max(c, this.m.width - this.u.e().width))
- }
- this.u.o(e, g)
- },
- PC: function() {
- this.HE = !1;
- this.ez = this.Rl = 0
- },
- Kwa: function(c, d) {
- var e = !0,
- g, h, k;
- 0 < c && 0 < d ? (g = c, h = d, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(g, h)) : 0 > c && 0 < d ? (g = c, h = d, k = this.u.Ac(), k + g <= this.hg && (g = this.hg - k, this.PZ(), e = !1), k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(g, h)) : 0 > c && 0 > d ? (g = c, h = d, k = this.u.Ac(), k + g <= this.hg && (g = this.hg - k, this.PZ(),
- e = !1), k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(g, h)) : 0 < c && 0 > d ? (g = c, h = d, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(g, h)) : 0 == c && 0 < d ? (h = d, k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(0, h)) : 0 == c && 0 > d ? (h = d, k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(0, h)) : 0 < c && 0 == d ? (g = c, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), this.co(g, 0)) : 0 > c && 0 == d && (g = c, h = this.u.Ac(),
- h + g <= this.hg && (g = this.hg - h, this.PZ(), e = !1), this.co(g, 0));
- return e
- },
- Twa: function(c, d) {
- var e = !0,
- g;
- switch (this.direction) {
- case F.to:
- 0 < this.Jo.y ? (g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : (g = this.u.yd(), g + d <= this.bh.y && (e = !1));
- break;
- case F.so:
- 0 < this.Jo.x ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1)) : (g = this.u.Ac(), g + c <= this.bh.x && (e = !1));
- break;
- case F.Cg:
- 0 < c && 0 < d ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1), g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : 0 > c && 0 < d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1), g = this.u.yd(), g + d >= this.bh.y &&
- (e = !1)) : 0 > c && 0 > d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1), g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 < c && 0 > d ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1), g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 == c && 0 < d ? (g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : 0 > c && 0 == d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1)) : 0 == c && 0 > d ? (g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 < c && 0 == d && (g = this.u.Ac(), g + c >= this.bh.x && (e = !1))
- }
- return e
- },
- bTa: function(c) {
- this.Rl -= this.IE * c;
- return this.Rl * c
- },
- io: function(c, d) {
- var e = !0;
- this.lGa();
- switch (this.direction) {
- case F.to:
- e =
- this.iGa(c, d);
- break;
- case F.so:
- e = this.hGa(c, d);
- break;
- case F.Cg:
- e = this.gGa(c, d)
- }
- return e
- },
- iGa: function(c, d) {
- var e = d,
- g = !0,
- h;
- this.iu ? (h = this.u.yd(), h + d >= this.Ko && (e = this.Ko - h, this.es(), g = !1), h = this.u.Fe(), h + d <= this.Oo && (e = this.Oo - h, this.hs(), g = !1)) : (h = this.u.yd(), h + d >= this.fi && (e = this.fi - h, this.es(), g = !1), h = this.u.Fe(), h + d <= this.Vh && (e = this.Vh - h, this.hs(), g = !1));
- this.co(0, e);
- return g
- },
- hGa: function(c) {
- var d = !0,
- e = c,
- g;
- this.iu ? (g = this.u.Kc(), g + c <= this.No && (e = this.No - g, this.gs(), d = !1), g = this.u.Ac(), g + c >= this.Mo &&
- (e = this.Mo - g, this.fs(), d = !1)) : (g = this.u.Kc(), g + c <= this.qf && (e = this.qf - g, this.gs(), d = !1), g = this.u.Ac(), g + c >= this.hg && (e = this.hg - g, this.fs(), d = !1));
- this.co(e, 0);
- return d
- },
- gGa: function(c, d) {
- var e = !0,
- g = c,
- h = d,
- k;
- this.iu ? 0 < c && 0 < d ? (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1), k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 < d ? (k = this.u.Kc(), k + c <= this.No && (g = this.No - k, this.gs(), e = !1), k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 > d ? (k = this.u.Kc(), k + c <= this.No &&
- (g = this.No - k, this.gs(), e = !1), k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 < c && 0 > d ? (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1), k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 == c && 0 < d ? (k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 == d ? (k = this.u.Kc(), k + c <= this.No && (g = this.No - k, this.gs(), e = !1)) : 0 == c && 0 > d ? (k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 < c && 0 == d && (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1)) : 0 < c && 0 < d ? (k =
- this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1), k = this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 < d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1), k = this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 > d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1), k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 < c && 0 > d ? (k = this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1), k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 == c && 0 < d ? (k =
- this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 == d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1)) : 0 == c && 0 > d ? (k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 < c && 0 == d && (k = this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1));
- this.co(g, h);
- return e
- },
- Z1a: function(c, d) {
- this.mo(r(this.u.Vc(), 0), c, d)
- },
- g2a: function(c, d) {
- this.mo(r(this.u.Vc(), this.m.height - this.u.e().height), c, d)
- },
- b2a: function(c, d) {
- this.mo(r(0, this.u.Zd()), c, d)
- },
- f2a: function(c, d) {
- this.mo(r(this.m.width -
- this.u.e().width, this.u.Zd()), c, d)
- },
- h2a: function(c, d) {
- this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.mo(r(0, this.m.height - this.u.e().height), c, d)
- },
- i2a: function(c, d) {
- if (this.direction != F.Cg) f.log("Scroll direction is not both!");
- else {
- var e = this.u.e();
- this.mo(r(this.m.width - e.width, this.m.height - e.height), c, d)
- }
- },
- $1a: function(c, d) {
- this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.mo(r(0, 0), c, d)
- },
- a2a: function(c, d) {
- this.direction != F.Cg ? f.log("Scroll direction is not both!") :
- this.mo(r(this.m.width - this.u.e().width, 0), c, d)
- },
- e2a: function(c, d, e) {
- var g = this.m.height - this.u.e().height;
- this.mo(r(this.u.Vc(), g + c * -g / 100), d, e)
- },
- d2a: function(c, d, e) {
- var g = this.u.e().width - this.m.width;
- this.mo(r(-(c * g / 100), this.u.Zd()), d, e)
- },
- c2a: function(c, d, e) {
- if (this.direction == F.Cg) {
- var g = this.m.height - this.u.e().height,
- h = -g,
- k = this.u.e().width - this.m.width;
- this.mo(r(-(c.x * k / 100), g + c.y * h / 100), d, e)
- }
- },
- fYa: function() {
- this.$n(this.u.Vc(), 0)
- },
- nYa: function() {
- this.$n(this.u.Vc(), this.m.height - this.u.e().height)
- },
- iYa: function() {
- this.$n(0, this.u.Zd())
- },
- mYa: function() {
- this.$n(this.m.width - this.u.e().width, this.u.Zd())
- },
- oYa: function() {
- this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.$n(0, this.m.height - this.u.e().height)
- },
- pYa: function() {
- if (this.direction != F.Cg) f.log("Scroll direction is not both!");
- else {
- var c = this.u.e();
- this.$n(this.m.width - c.width, this.m.height - c.height)
- }
- },
- gYa: function() {
- this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.$n(0, 0)
- },
- hYa: function() {
- this.direction != F.Cg ?
- f.log("Scroll direction is not both!") : this.$n(this.m.width - this.u.e().width, 0)
- },
- lYa: function(c) {
- var d = this.m.height - this.u.e().height;
- this.$n(this.u.Vc(), d + c * -d / 100)
- },
- kYa: function(c) {
- var d = this.u.e().width - this.m.width;
- this.$n(-(c * d / 100), this.u.Zd())
- },
- jYa: function(c) {
- if (this.direction == F.Cg) {
- var d = this.u.e(),
- e = this.m.height - d.height;
- this.$n(-(c.x * (d.width - this.m.width) / 100), e + c.y * -e / 100)
- }
- },
- rIa: function() {
- this.HE && this.PC();
- this.NE && this.j3();
- this.Ew = 0
- },
- Tya: function() {
- if (!this.cH() && this.RH && !(0.016 >=
- this.Ew)) {
- var c = 0,
- d;
- switch (this.direction) {
- case F.to:
- c = this.xr.y - this.qm.y;
- d = 0 > c ? F.una : F.xna;
- break;
- case F.so:
- c = this.xr.x - this.qm.x;
- d = 0 > c ? F.vna : F.wna;
- break;
- case F.Cg:
- d = f.gc(this.xr, this.qm), c = f.ff(d), d = f.Af(d)
- }
- c = Math.min(Math.abs(c) / this.Ew, F.Wia);
- this.lia(d, c, !0, -1E3);
- this.Ew = 0
- }
- },
- PH: function() {
- this.rIa();
- this.eL = !0
- },
- OH: function(c) {
- c = f.gc(c.cf(), c.qP());
- switch (this.direction) {
- case F.to:
- this.io(0, c.y);
- break;
- case F.so:
- this.io(c.x, 0);
- break;
- case F.Cg:
- this.io(c.x, c.y)
- }
- },
- UB: function() {
- this.Tya();
- this.eL = !1
- },
- rc: function(c, d) {
- var e = D.prototype.rc.call(this, c, d);
- this.Rv && this.PH(c);
- return e
- },
- hd: function(c, d) {
- D.prototype.hd.call(this, c, d);
- this.OH(c)
- },
- gd: function(c, d) {
- D.prototype.gd.call(this, c, d);
- this.UB(c)
- },
- ef: function(c, d) {
- D.prototype.ef.call(this, c, d)
- },
- update: function(c) {
- this.HE && this.zwa(c);
- this.NE && this.Jwa(c);
- this.zFa(c)
- },
- zFa: function(c) {
- this.eL && (this.Ew += c)
- },
- Nr: function(c, d, e) {
- var g = e.cf();
- switch (c) {
- case y.WT:
- this.qm.x = g.x;
- this.qm.y = g.y;
- this.PH(e);
- break;
- case y.qE:
- f.ff(f.gc(d.t0(), g)) > this.UE &&
- (d.xj(!1), this.cB.x = g.x, this.cB.y = g.y, this.OH(e));
- break;
- case y.XT:
- case y.CK:
- this.xr.x = g.x, this.xr.y = g.y, this.UB(e)
- }
- },
- hs: function() {
- this.rf && this.sf && this.sf.call(this.rf, this, F.k5);
- this.qb && this.qb(this, F.k5)
- },
- es: function() {
- this.rf && this.sf && this.sf.call(this.rf, this, F.h5);
- this.qb && this.qb(this, F.h5)
- },
- fs: function() {
- this.rf && this.sf && this.sf.call(this.rf, this, F.i5);
- this.qb && this.qb(this, F.i5)
- },
- gs: function() {
- this.rf && this.sf && this.sf.call(this.rf, this, F.j5);
- this.qb && this.qb(this, F.j5)
- },
- lGa: function() {
- this.rf &&
- this.sf && this.sf.call(this.rf, this, F.g5);
- this.qb && this.qb(this, F.g5)
- },
- RZ: function() {
- this.rf && this.sf && this.sf.call(this.rf, this, F.e5);
- this.qb && this.qb(this, F.e5)
- },
- LZ: function() {
- this.rf && this.sf && this.sf.call(this.rf, this, F.b5);
- this.qb && this.qb(this, F.b5)
- },
- PZ: function() {
- this.rf && this.sf && this.sf.call(this.rf, this, F.c5);
- this.qb && this.qb(this, F.c5)
- },
- QZ: function() {
- this.rf && this.sf && this.sf.call(this.rf, this, F.d5);
- this.qb && this.qb(this, F.d5)
- },
- qPa: function(c, d) {
- this.sf = c;
- this.rf = d
- },
- addEventListener: function(c) {
- this.qb =
- c
- },
- xh: function(c) {
- this.direction = c
- },
- OB: function() {
- return this.direction
- },
- dR: function(c) {
- this.iu = c
- },
- wXa: function() {
- return this.iu
- },
- WGa: function(c) {
- this.RH = c
- },
- GXa: function() {
- return this.RH
- },
- gUa: function() {
- return this.u
- },
- Mm: function(c) {
- this.u.Mm(c)
- },
- Bm: function() {
- return this.u.Bm()
- },
- Wl: function() {
- this.gh && (this.gh = !1)
- },
- dk: function() {
- return "ScrollView"
- },
- Zh: function() {
- return F.create()
- },
- kx: function(c) {
- D.prototype.kx.call(this, c)
- },
- zi: function(c) {
- c instanceof F && (D.prototype.zi.call(this, c), this.ay(c.hAa()),
- this.xh(c.direction), this.dR(c.iu), this.WGa(c.RH), this.rf = c.rf, this.sf = c.sf, this.qb = c.qb)
- }
- }),
- q = F.prototype;
- f.d(q, "innerWidth", q.Ora, q.uua);
- f.d(q, "innerHeight", q.Nra, q.tua);
- q = null;
- F.create = function() {
- return new F
- };
- F.Yka = 0;
- F.to = 1;
- F.so = 2;
- F.Cg = 3;
- F.k5 = 0;
- F.h5 = 1;
- F.i5 = 2;
- F.j5 = 3;
- F.g5 = 4;
- F.e5 = 5;
- F.b5 = 6;
- F.c5 = 7;
- F.d5 = 8;
- F.Wia = 1E3;
- F.xna = r(0, 1);
- F.una = r(0, -1);
- F.vna = r(-1, 0);
- F.wna = r(1, 0);
- var H = F.extend({
- fw: null,
- Hg: null,
- nt: null,
- pn: 0,
- nA: null,
- oA: null,
- CV: 0,
- fm: !0,
- ta: "ListView",
- ctor: function() {
- F.prototype.ctor.call(this);
- this.fw = null;
- this.Hg = [];
- this.nt = H.RS;
- this.pn = 0;
- this.oA = this.nA = null;
- this.CV = 0;
- this.fm = !0
- },
- j: function() {
- return F.prototype.j.call(this) ? (this.Mm(D.pq), !0) : !1
- },
- ZGa: function(c) {
- c && (this.fw = c)
- },
- aJa: function() {
- switch (this.direction) {
- case F.to:
- for (var c = this.Hg.length, d = (c - 1) * this.pn, e = 0; e < c; e++) var g = this.Hg[e],
- d = d + g.e().height;
- c = this.m.width;
- this.ay(t(c, d));
- break;
- case F.so:
- c =
- this.Hg.length;
- d = (c - 1) * this.pn;
- for (e = 0; e < c; e++) g = this.Hg[e], d += g.e().width;
- c = this.m.height;
- this.ay(t(d, c))
- }
- },
- GI: function(c) {
- if (c) switch (this.direction) {
- case F.to:
- var d = c.dl();
- if (d) switch (0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(0, this.pn, 0, 0)), this.nt) {
- case H.B5:
- d.vc(nc.$m);
- break;
- case H.C5:
- d.vc(nc.Ll);
- break;
- case H.RS:
- d.vc(nc.mS)
- } else {
- d = nc.create();
- switch (this.nt) {
- case H.B5:
- d.vc(nc.$m);
- break;
- case H.C5:
- d.vc(nc.Ll);
- break;
- case H.RS:
- d.vc(nc.mS)
- }
- 0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(0, this.pn, 0, 0));
- c.by(d)
- }
- break;
- case F.so:
- if (d = c.dl()) switch (0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(this.pn, 0, 0, 0)), this.nt) {
- case H.D5:
- d.vc(nc.u7);
- break;
- case H.z5:
- d.vc(nc.ZR);
- break;
- case H.A5:
- d.vc(nc.nS)
- } else {
- d = nc.create();
- switch (this.nt) {
- case H.D5:
- d.vc(nc.u7);
- break;
- case H.z5:
- d.vc(nc.ZR);
- break;
- case H.A5:
- d.vc(nc.nS)
- }
- 0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(this.pn, 0, 0, 0));
- c.by(d)
- }
- }
- },
- B0a: function() {
- if (this.fw) {
- var c = this.fw.p();
- this.GI(c);
- this.n(c);
- this.fm = !0
- }
- },
- gXa: function(c) {
- if (this.fw) {
- var d = this.fw.p();
- this.Hg.splice(c, 0, d);
- F.prototype.n.call(this,
- d);
- this.GI(d);
- this.fm = !0
- }
- },
- Sfa: function(c) {
- this.GI(c);
- this.n(c);
- this.fm = !0
- },
- n: function(c, d, e) {
- c && (d = d || c.Ya, e = e || c.Em(), F.prototype.n.call(this, c, d, e), this.Hg.push(c))
- },
- removeChild: function(c, d) {
- if (c) {
- var e = this.Hg.indexOf(c); - 1 < e && this.Hg.splice(e, 1);
- F.prototype.removeChild.call(this, c, d)
- }
- },
- Cf: function() {
- this.Cu(!0)
- },
- Cu: function(c) {
- F.prototype.Cu.call(this, c);
- this.Hg = []
- },
- fXa: function(c, d) {
- this.Hg.splice(d, 0, c);
- F.prototype.n.call(this, c);
- this.GI(c);
- this.fm = !0
- },
- removeItem: function(c) {
- if (c = this.getItem(c)) this.removeChild(c),
- this.fm = !0
- },
- o1a: function() {
- this.removeItem(this.Hg.length - 1)
- },
- Y0a: function() {
- this.Cf()
- },
- getItem: function(c) {
- return 0 > c || c >= this.Hg.length ? null : this.Hg[c]
- },
- kUa: function() {
- return this.Hg
- },
- wH: function(c) {
- return this.Hg.indexOf(c)
- },
- vc: function(c) {
- this.nt != c && (this.nt = c, this.fm = !0)
- },
- y2: function(c) {
- this.pn != c && (this.pn = c, this.fm = !0)
- },
- lUa: function() {
- return this.pn
- },
- xh: function(c) {
- switch (c) {
- case F.to:
- this.Mm(D.pq);
- break;
- case F.so:
- this.Mm(D.oq);
- break;
- case F.Cg:
- return;
- default:
- return
- }
- F.prototype.xh.call(this,
- c)
- },
- G1a: function() {
- this.fm = !0
- },
- DFa: function() {
- for (var c = 0; c < this.Hg.length; c++) {
- var d = this.Hg[c];
- d.tl(c);
- this.GI(d)
- }
- this.aJa()
- },
- Wl: function() {
- D.prototype.Wl.call(this);
- this.fm && (this.DFa(), this.fm = !1)
- },
- oPa: function(c, d) {
- this.nA = d;
- this.oA = c
- },
- addEventListener: function(c) {
- this.qb = c
- },
- pGa: function(c) {
- c = c == y.WT ? H.Qma : H.Pma;
- this.nA && this.oA && this.oA.call(this.nA, this, c);
- this.qb && this.qb(this, c)
- },
- Nr: function(c, d, e) {
- F.prototype.Nr.call(this, c, d, e);
- if (1 != c) {
- for (e = d; e;) {
- if (e && e.getParent() == this.u) {
- this.CV =
- this.wH(e);
- break
- }
- e = e.getParent()
- }
- d.UP() && this.pGa(c)
- }
- },
- dTa: function() {
- return this.CV
- },
- kc: function() {
- F.prototype.kc.call(this);
- this.fm = !0
- },
- dk: function() {
- return "ListView"
- },
- Zh: function() {
- return H.create()
- },
- kx: function(c) {
- c = c.Hg;
- for (var d = 0; d < c.length; d++) this.Sfa(c[d].p())
- },
- zi: function(c) {
- F.prototype.zi.call(this, c);
- this.ZGa(c.fw);
- this.y2(c.pn);
- this.vc(c.nt);
- this.nA = c.nA;
- this.oA = c.oA;
- this.qb = c.qb
- }
- });
- H.create = function() {
- return new H
- };
- H.hLa = 0;
- H.Qma = 0;
- H.Pma = 1;
- H.B5 = 0;
- H.C5 = 1;
- H.RS = 2;
- H.D5 = 3;
- H.z5 = 4;
- H.A5 = 5;
- var fd = D.extend({
- Lj: 0,
- xc: null,
- dO: null,
- ova: 0,
- nva: 0,
- ata: null,
- mA: null,
- KA: null,
- hg: 0,
- qf: 0,
- Uv: !1,
- Ij: 0,
- VK: 0,
- WU: 0,
- UE: 0,
- xA: null,
- yA: null,
- ta: "PageView",
- qb: null,
- ctor: function() {
- D.prototype.ctor.call(this);
- this.Lj = 0;
- this.xc = [];
- this.dO = fd.YT;
- this.nva = this.ova = 0;
- this.KA = this.mA = this.ata = null;
- this.qf = this.hg = 0;
- this.Uv = !1;
- this.WU = this.VK = this.Ij = 0;
- this.UE = 5;
- this.yA = this.xA = null
- },
- j: function() {
- return D.prototype.j.call(this) ? (this.Zp(!0), !0) : !1
- },
- ba: function() {
- D.prototype.ba.call(this);
- this.ds(!0)
- },
- GPa: function(c, d,
- e) {
- if (c && !(0 > d)) {
- var g = this.xc.length;
- d >= g ? e && (d > g && f.log("pageIdx is %d, it will be added as page id [%d]", d, g), d = this.kxa(), d.n(c), this.AO(d)) : (d = this.xc[d]) && d.n(c)
- }
- },
- kxa: function() {
- var c = D.create();
- c.Ga(this.e());
- return c
- },
- AO: function(c) {
- c && -1 == this.xc.indexOf(c) && (this.bd(c), this.xc.push(c), this.gh = !0)
- },
- jXa: function(c, d) {
- 0 > d || !c || -1 != this.xc.indexOf(c) || (d >= this.xc.length ? this.AO(c) : (this.xc[d] = c, this.bd(c)), this.gh = !0)
- },
- SFa: function(c) {
- c && (this.Ci(c), c = this.xc.indexOf(c), -1 < c && this.xc.splice(c,
- 1), this.gh = !0)
- },
- r1a: function(c) {
- 0 > c || c >= this.xc.length || (c = this.xc[c]) && this.SFa(c)
- },
- a1a: function() {
- for (var c = this.xc, d = 0, e = c.length; d < e; d++) this.Ci(c[d]);
- this.xc.length = 0
- },
- YIa: function() {
- 0 >= this.xc.length ? this.KA = this.mA = null : (this.mA = this.xc[0], this.KA = this.xc[this.xc.length - 1])
- },
- dVa: function() {
- return this.xc.length
- },
- sVa: function(c) {
- return this.CH().width * (c - this.Lj)
- },
- kc: function() {
- D.prototype.kc.call(this);
- this.qf = this.e().width;
- this.gh = !0
- },
- VIa: function() {
- for (var c = this.e(), d = this.xc, e = 0, g = d.length; e <
- g; e++) d[e].Ga(c)
- },
- UIa: function() {
- var c = this.xc.length;
- if (0 >= c) this.Lj = 0;
- else {
- this.Lj >= c && (this.Lj = c - 1);
- for (var d = this.e().width, e = this.xc, g = 0; g < c; g++) e[g].o(r((g - this.Lj) * d, 0))
- }
- },
- i2: function(c) {
- 0 > c || c >= this.xc.length || (this.Lj = c, this.Ij = -this.xc[c].Od().x, this.VK = Math.abs(this.Ij) / 0.2, this.WU = 0 < this.Ij ? 1 : 0, this.Uv = !0)
- },
- update: function(c) {
- this.Uv && this.ywa(c)
- },
- ywa: function(c) {
- switch (this.WU) {
- case 0:
- c *= this.VK;
- 0 <= this.Ij + c ? (c = -this.Ij, this.Ij = 0, this.Uv = !1) : this.Ij += c;
- this.II(-c);
- this.Uv || this.Nfa();
- break;
- case 1:
- c *= this.VK, 0 >= this.Ij - c ? (c = this.Ij, this.Ij = 0, this.Uv = !1) : this.Ij -= c, this.II(c), this.Uv || this.Nfa()
- }
- },
- rc: function(c, d) {
- var e = D.prototype.rc.call(this, c, d);
- this.Rv && this.PH(c);
- return e
- },
- hd: function(c) {
- this.OH(c);
- var d = this.ug();
- d && d.Nr(y.qE, this, c);
- this.ofa()
- },
- gd: function(c, d) {
- D.prototype.gd.call(this, c, d);
- this.UB(c)
- },
- ef: function(c, d) {
- D.prototype.ef.call(this, c, d);
- this.UB(c)
- },
- Wl: function() {
- this.gh && (this.UIa(), this.VIa(), this.YIa(), this.gh = !1)
- },
- m1: function(c) {
- for (var d = this.xc, e = d.length,
- g = 0; g < e; g++) {
- var h = d[g],
- k = h.Od();
- h.o(k.x + c, k.y)
- }
- },
- II: function(c) {
- if (0 >= this.xc.length || !this.mA || !this.KA) return !1;
- var d = c;
- switch (this.dO) {
- case fd.YT:
- if (this.KA.Kc() + c <= this.qf) return d = this.qf - this.KA.Kc(), this.m1(d), !1;
- break;
- case fd.v7:
- if (this.mA.Ac() + c >= this.hg) return d = this.hg - this.mA.Ac(), this.m1(d), !1
- }
- this.m1(d);
- return !0
- },
- PH: function() {},
- OH: function(c) {
- c = c.cf().x - c.qP().x;
- 0 > c ? this.dO = fd.YT : 0 < c && (this.dO = fd.v7);
- this.II(c)
- },
- UB: function() {
- if (!(0 >= this.xc.length)) {
- var c = this.xc[this.Lj];
- if (c) {
- var d =
- this.xc.length,
- c = c.Od().x,
- e = this.CH().width / 2;
- c <= -e ? this.Lj >= d - 1 ? this.II(-c) : this.i2(this.Lj + 1) : c >= e ? 0 >= this.Lj ? this.II(-c) : this.i2(this.Lj - 1) : this.i2(this.Lj)
- }
- }
- },
- Nr: function(c, d, e) {
- switch (c) {
- case 0:
- this.PH(e);
- break;
- case 1:
- c = 0;
- c = Math.abs(d.t0().x - e.x);
- c > this.UE && (d.hR(!1), this.OH(e));
- break;
- case 2:
- this.UB(e)
- }
- },
- Nfa: function() {
- this.xA && this.yA && this.yA.call(this.xA, this, fd.m5);
- this.qb && this.qb(this, fd.m5)
- },
- pPa: function(c, d) {
- this.yA = c;
- this.xA = d
- },
- addEventListener: function(c) {
- this.qb = c
- },
- cTa: function() {
- return this.Lj
- },
- eVa: function() {
- return this.xc
- },
- cVa: function(c) {
- return 0 > c || c >= this.xc.size() ? null : this.xc[c]
- },
- dk: function() {
- return "PageView"
- },
- Zh: function() {
- return fd.create()
- },
- kx: function(c) {
- c = c.xc;
- for (var d = 0; d < c.length; d++) this.AO(c[d].p())
- },
- zi: function(c) {
- D.prototype.zi.call(this, c);
- this.qb = c.qb;
- this.xA = c.xA;
- this.yA = c.yA
- }
- });
- fd.create = function() {
- var c = new fd;
- return c && c.j() ? c : null
- };
- fd.m5 = 0;
- fd.YT = 0;
- fd.v7 = 1;
- f.Dh = f.N.extend({
- Td: null,
- nd: "",
- $c: !0,
- ctor: function() {
- this.Td = null;
- this.nd = "";
- this.$c = !0
- },
- j: function() {
- return !0
- },
- ba: function() {},
- Ra: function() {},
- update: function() {},
- CC: function() {},
- isEnabled: function() {
- return this.$c
- },
- Lb: function(c) {
- this.$c = c
- },
- getName: function() {
- return this.nd
- },
- gf: function(c) {
- this.nd = c
- },
- HC: function(c) {
- this.Td = c
- },
- Lda: function() {
- return this.Td
- }
- });
- f.Dh.create = function() {
- return new f.Dh
- };
- f.P4 = f.N.extend({
- Kh: null,
- Td: null,
- ctor: function(c) {
- this.Kh = null;
- this.Td = c
- },
- uda: function(c) {
- if (!c) throw "cc.ComponentContainer.getComponent(): name should be non-null";
- c = c.trim();
- return this.Kh[c]
- },
- add: function(c) {
- if (!c) throw "cc.ComponentContainer.add(): component should be non-null";
- if (c.Td) return f.log("cc.ComponentContainer.add(): Component already added. It can't be added again"), !1;
- null == this.Kh && (this.Kh = {}, this.Td.ds());
- if (this.Kh[c.getName()]) return f.log("cc.ComponentContainer.add(): Component already added. It can't be added again"), !1;
- c.HC(this.Td);
- this.Kh[c.getName()] = c;
- c.ba();
- return !0
- },
- remove: function(c) {
- if (!c) throw "cc.ComponentContainer.remove(): name should be non-null";
- if (!this.Kh) return !1;
- if (c instanceof f.Dh) return this.Faa(c);
- c = c.trim();
- return this.Faa(this.Kh[c])
- },
- Faa: function(c) {
- if (c) return !1;
- c.Ra();
- c.HC(null);
- delete this.Kh[c.getName()];
- return !0
- },
- kk: function() {
- if (this.Kh) {
- var c = this.Kh,
- d;
- for (d in c) {
- var e = c[d];
- e.Ra();
- e.HC(null);
- delete c[d]
- }
- this.Td.UC();
- this.Kh = null
- }
- },
- uNa: function() {
- this.Kh = {}
- },
- I: function(c) {
- if (this.Kh) {
- var d =
- this.Kh,
- e;
- for (e in d) d[e].update(c)
- }
- },
- Jea: function() {
- if (!this.Kh) return !0;
- for (var c in this.Kh) return !1;
- return !0
- }
- });
- var N = N || {};
- N.N = N.N || f.N;
- N.N.extend = N.N.extend || f.N.extend;
- N.v = N.v || f.v;
- N.v.extend = N.v.extend || f.v.extend;
- N.ja = N.ja || f.ja;
- N.ja.extend = N.ja.extend || f.ja.extend;
- N.q = N.q || f.q;
- N.q.extend = N.q.extend || f.q.extend;
- N.Dh = N.Dh || f.Dh;
- N.Dh.extend = N.Dh.extend || f.Dh.extend;
- N.rQa = "v1.3.0.0";
- N.IJa = N.N.extend({
- Ip: function(c, d, e) {
- c = c.substr(c.lastIndexOf("/") + 1, c.length());
- f.log("filename \x3d\x3d %s", c.toString());
- for (var g = [], h = d.actionlist, k = 0; k < h; k++) {
- var m = new ActionObject;
- m.Ip(d.actionlist[k], e);
- g.push(m)
- }
- this.xq[c] = g
- },
- U_: function(c, d) {
- var e = this.xq[c];
- if (e)
- for (var g = 0; g < e.length; g++) {
- var h = e[g];
- if (d == h.getName()) return h
- }
- },
- aFa: function(c, d) {
- var e = this.U_(c, d);
- e && e.play();
- return e
- },
- FFa: function() {
- for (var c in this.xq) delete this.xq[c];
- this.xq = []
- }
- });
- N.iNa = 0.3;
- N.Ipa = 1;
- N.Jpa = 1.1;
- N.sma = 5E6;
- N.Tia = 50;
- N.Uia = 100;
- N.DJa = N.sma / N.Tia / N.Uia;
- N.HJa = !1;
- N.uD = !1;
- N.dv = !1;
- N.MPa = function() {
- return "v1.1.0.0"
- };
- N.F4 = "version";
- N.FJ = 2;
- N.ss = 0.3;
- N.sS = "skeleton";
- N.Wja = "armatures";
- N.k4 = "armature";
- N.pD = "b";
- N.wka = "d";
- N.Uja = "animations";
- N.j4 = "animation";
- N.D4 = "mov";
- N.rS = "f";
- N.Cka = "TextureAtlas";
- N.E4 = "SubTexture";
- N.Bg = "name";
- N.wy = "dr";
- N.hka = "fi";
- N.q4 = "to";
- N.r4 = "drTW";
- N.v4 = "lp";
- N.mD = "sc";
- N.w4 = "dl";
- N.p4 = "dI";
- N.EKa = "vert";
- N.BKa = "frag";
- N.lka = "plist";
- N.oS = "parent";
- N.CJ = "kX";
- N.DJ = "kY";
- N.nD = "cX";
- N.oD = "cY";
- N.qS = "z";
- N.s4 = "evt";
- N.nka = "sd";
- N.oka = "sdE";
- N.EJ = "twE";
- N.pka = "twR";
- N.gka = "twEP";
- N.jka = "isArmature";
- N.fka = "displayType";
- N.kka = "mov";
- N.aka = "bd";
- N.$ja = "bd_src";
- N.Zja = "bd_dst";
- N.xy = "x";
- N.yy = "y";
- N.n4 = "cocos2d_x";
- N.o4 = "cocos2d_y";
- N.A4 = "width";
- N.u4 = "height";
- N.x4 = "pX";
- N.y4 = "pY";
- N.cka = "cocos2d_pX";
- N.dka = "cocos2d_pY";
- N.l4 = "a";
- N.z4 = "r";
- N.t4 = "g";
- N.m4 = "b";
- N.Yja = "aM";
- N.mka = "rM";
- N.ika = "gM";
- N.bka = "bM";
- N.eka = "colorTransform";
- N.pS = "tweenFrame";
- N.CKa = "rotation";
- N.DKa = "uci";
- N.B4 = "con";
- N.vka = "con_vt";
- N.FKa = "movementEventFrame";
- N.HKa = "soundFrame";
- N.C4 = "NaN";
- N.yka = "frame_data";
- N.zka = "mov_bone_data";
- N.GKa = "mov_frame_data";
- N.Aka = "mov_data";
- N.Vja = "animation_data";
- N.xka = "display_data";
- N.Bka = "skin_data";
- N.qka = "bone_data";
- N.Xja = "armature_data";
- N.uka = "contour_data";
- N.Dka = "texture_data";
- N.Eka = "vertex";
- N.rka = "color";
- N.ska = "config_file_path";
- N.tka = "content_scale";
- function gd() {
- this.eH = 1;
- this.filename = "";
- this.sB = this.aP = 0
- }
- N.SO = {
- ZE: [],
- $Na: N.FJ,
- ENa: N.ss,
- CA: 1,
- cz: 0,
- zv: 0,
- X3a: function(c) {
- this.CA = c
- },
- rVa: function() {
- return this.CA
- },
- clear: function() {
- this.ZE = [];
- this.zv = this.cz = 0
- },
- Sba: function(c, d) {
- if (-1 == this.ZE.indexOf(c)) {
- this.ZE.push(c);
- var e = f.path.zp(c).toLowerCase(),
- g = new gd;
- g.filename = c;
- g.GZ = this.usa(c);
- ".xml" == e ? this.Pva(c, g) : ".json" != e && ".exportjson" != e || this.Nva(c, g, d)
- }
- },
- Mva: function(c, d, e, g) {
- if (-1 != this.ZE.indexOf(c)) d && e && (0 == this.zv && 0 == this.cz ? this.RU(d, e, 1) : this.RU(d, e, (this.zv - this.cz) / this.zv));
- else {
- this.zv++;
- this.cz++;
- var h = this;
- f.Q.Dm().g2(this, function() {
- h.Sba(c, g);
- h.cz--;
- h.RU(d, e, (h.zv - h.cz) / h.zv)
- }, 0.1, !1)
- }
- },
- RU: function(c, d, e) {
- if (c && "string" == typeof d) c[d](e);
- else c && "function" == typeof d && d.call(c, e)
- },
- usa: function(c) {
- var d = c.lastIndexOf("/");
- return c = -1 < d ? c.substr(0, d + 1) : ""
- },
- Pva: function(c, d) {
- var e = f.L.zd(c);
- if (!e) throw "Please load the resource first : " + c;
- (e = f.fGa.parse(e).documentElement) && this.Lva(e, d)
- },
- Lva: function(c, d) {
- if (c) {
- d.aP = parseFloat(c.getAttribute(N.F4));
- for (var e = c.querySelectorAll(N.sS +
- " \x3e " + N.Wja + " \x3e " + N.k4 + ""), g = N.Dr, h = 0; h < e.length; h++) {
- var k = this.txa(e[h], d);
- g.rZ(k.name, k, d.filename)
- }
- e = c.querySelectorAll(N.sS + " \x3e " + N.Uja + " \x3e " + N.j4 + "");
- for (h = 0; h < e.length; h++) k = this.rxa(e[h], d), g.qZ(k.name, k, d.filename);
- e = c.querySelectorAll(N.sS + " \x3e " + N.Cka + " \x3e " + N.E4 + "");
- for (h = 0; h < e.length; h++) k = this.Jxa(e[h], d), g.aca(k.name, k, d.filename)
- } else f.log("XML error or XML is empty.")
- },
- txa: function(c, d) {
- var e = c.getAttribute(N.Bg),
- g = new N.UR;
- g.name = e;
- for (var e = c.querySelectorAll(N.k4 +
- " \x3e " + N.pD), h = 0; h < e.length; h++) {
- var k = e[h],
- m = k.getAttribute(N.oS),
- n = null;
- if (m)
- for (var p = 0; p < e.length && (n = e[p], m != e[p].getAttribute(N.Bg)); p++);
- k = this.vxa(k, n, d);
- g.Oba(k)
- }
- return g
- },
- vxa: function(c, d, e) {
- var g = c.getAttribute(N.Bg);
- if ("" != g) {
- d = new N.Z3;
- d.name = g;
- d.yI = c.getAttribute(N.oS) || "";
- d.Sm = parseInt(c.getAttribute(N.qS)) || 0;
- c = c.querySelectorAll(N.pD + " \x3e " + N.wka);
- for (var h, g = 0; g < c.length; g++) h = c[g], h = this.wxa(h, e), d.Uba(h);
- return d
- }
- },
- wxa: function(c) {
- var d = null;
- 1 == (parseFloat(c.getAttribute(N.jka)) ||
- 0) ? (d = new N.hD, d.$k = N.zy) : (d = new N.vq, d.$k = N.us);
- (c = c.getAttribute(N.Bg) || "") && (d.displayName = c);
- return d
- },
- rxa: function(c, d) {
- var e = c.getAttribute(N.Bg),
- g = new N.TR,
- h = N.Dr.wx(e);
- g.name = e;
- for (var e = c.querySelectorAll(N.j4 + " \x3e " + N.D4), k = null, m = 0; m < e.length; m++) k = e[m], k = this.Dxa(k, h, d), g.Vba(k);
- return g
- },
- Dxa: function(c, d, e) {
- var g = c.getAttribute(N.Bg),
- h = new N.i6;
- h.name = g;
- g = g = 0;
- g = parseFloat(c.getAttribute(N.wy)) || 0;
- h.duration = g;
- g = parseFloat(c.getAttribute(N.q4)) || 0;
- h.nu = g;
- g = parseFloat(c.getAttribute(N.r4)) ||
- 0;
- h.XO = g;
- g = c.getAttribute(N.v4);
- h.loop = g ? Boolean(parseFloat(g)) : !0;
- if (g = c.getAttribute(N.EJ)) g != N.C4 ? (g = parseFloat(g) || 0, h.tweenEasing = 2 == g ? N.eb.JC : g) : h.tweenEasing = N.eb.rj;
- c = c.querySelectorAll(N.D4 + " \x3e " + N.pD);
- for (var k = null, g = 0; g < c.length; g++) {
- var k = c[g],
- m = k.getAttribute(N.Bg);
- if (!h.e0(m)) {
- var m = d.xx(m),
- n = m.yI,
- p = null;
- if ("" != n)
- for (var s = 0; s < c.length && (p = c[s], n != p.getAttribute(N.Bg)); s++);
- k = this.Exa(k, p, m, e);
- h.Wba(k)
- }
- }
- return h
- },
- Exa: function(c, d, e, g) {
- var h = new N.h6,
- k;
- c && (k = parseFloat(c.getAttribute(N.mD)) ||
- 0, h.scale = k, k = parseFloat(c.getAttribute(N.w4)) || 0, 0 < k && (k -= 1), h.vm = k);
- var m = 0,
- n = k = 0,
- p = null,
- s = [];
- if (null != d) {
- for (var u = d.querySelectorAll(N.pD + " \x3e " + N.rS), m = 0; m < u.length; m++) s.push(u[m]);
- m = s.length
- }
- var u = 0,
- v = c.getAttribute(N.Bg);
- h.name = v;
- c = c.querySelectorAll(N.pD + " \x3e " + N.rS);
- for (var z = v = 0; z < c.length; z++) {
- var A = c[z];
- if (d)
- for (; v < m && (p ? u < k || u >= k + n : 1);) p = s[v], k += n, n = parseFloat(p.getAttribute(N.wy)), v++;
- A = this.Bxa(A, p, e, g);
- h.xO(A);
- A.oj = u;
- u += A.duration;
- h.duration = u
- }
- d = h.qh;
- e = Math.PI;
- for (m = d.length -
- 1; 0 <= m; m--)
- if (0 < m) {
- g = d[m].skewX - d[m - 1].skewX;
- k = d[m].skewY - d[m - 1].skewY;
- if (g < -e || g > e) d[m - 1].skewX = 0 > g ? d[m - 1].skewX - 2 * e : d[m - 1].skewX + 2 * e;
- if (k < -e || k > e) d[m - 1].skewY = 0 > k ? d[m - 1].skewY - 2 * e : d[m - 1].skewY + 2 * e
- }
- 0 < h.qh.length && (A = new N.hv, A.copy(h.qh[h.qh.length - 1]), A.oj = h.duration, h.xO(A));
- return h
- },
- Bxa: function(c, d, e, g) {
- e = new N.hv;
- e.oC = c.getAttribute(N.kka) || "";
- e.event = c.getAttribute(N.s4) || "";
- e.Hwa = parseInt(c.getAttribute(N.aka)) || N.W3;
- var h = e.blendFunc;
- switch (e.Hwa) {
- case N.W3:
- h.src = f.Mc;
- h.ha = f.Lc;
- break;
- case N.nja:
- h.src =
- f.SRC_ALPHA;
- h.ha = f.ONE;
- break;
- case N.oja:
- h.src = f.ONE_MINUS_SRC_ALPHA;
- h.ha = f.ONE_MINUS_DST_COLOR;
- break;
- case N.pja:
- h.src = f.ONE, h.ha = f.ONE_MINUS_DST_COLOR
- }
- e.IR = c.getAttribute(N.nka) || "";
- e.JR = c.getAttribute(N.oka) || "";
- h = c.getAttribute(N.pS);
- null == h && (h = !0);
- e.uu = Boolean(h);
- g.aP >= N.FJ ? (e.x = parseFloat(c.getAttribute(N.n4)) || 0, e.y = -parseFloat(c.getAttribute(N.o4)) || 0) : (e.x = parseFloat(c.getAttribute(N.xy)) || 0, e.y = -parseFloat(c.getAttribute(N.yy)) || 0);
- e.x *= this.CA;
- e.y *= this.CA;
- e.scaleX = parseFloat(c.getAttribute(N.nD)) ||
- 0;
- e.scaleY = parseFloat(c.getAttribute(N.oD)) || 0;
- e.skewX = f.sg(parseFloat(c.getAttribute(N.CJ)) || 0);
- e.skewY = f.sg(-parseFloat(c.getAttribute(N.DJ)) || 0);
- e.duration = parseFloat(c.getAttribute(N.wy)) || 0;
- e.mj = parseFloat(c.getAttribute(N.p4)) || 0;
- e.Sm = parseFloat(c.getAttribute(N.qS)) || 0;
- e.py = parseFloat(c.getAttribute(N.pka)) || 0;
- h = c.querySelectorAll(N.rS + " \x3e " + N.eka);
- if (0 < h.length) {
- var k = h[0],
- m = h = 0,
- n = 0,
- p = 0,
- s = 0,
- u = 0,
- v = 0,
- z = 100,
- h = parseFloat(k.getAttribute(N.l4)) || h,
- m = parseFloat(k.getAttribute(N.z4)) || m,
- n = parseFloat(k.getAttribute(N.t4)) ||
- n,
- p = parseFloat(k.getAttribute(N.m4)) || p,
- A = k.getAttribute(N.Yja);
- A && (s = parseFloat(A));
- (A = k.getAttribute(N.mka)) && (u = parseFloat(A));
- var B = k.getAttribute(N.ika);
- A && (v = parseFloat(B));
- (k = k.getAttribute(N.bka)) && (z = parseFloat(k));
- e.a = 2.55 * s + h;
- e.r = 2.55 * u + m;
- e.g = 2.55 * v + n;
- e.b = 2.55 * z + p;
- e.Zn = !0
- } - 1 == e.mj && (e.a = 0);
- (c = c.getAttribute(N.EJ)) && (e.tweenEasing = c != N.C4 ? 2 == c ? N.eb.JC : c : N.eb.rj);
- d && (c = new N.Tm, g.aP >= N.FJ ? (c.x = parseFloat(d.getAttribute(N.n4)) || 0, c.y = parseFloat(d.getAttribute(N.o4)) || 0) : (c.x = parseFloat(d.getAttribute(N.xy)) ||
- 0, c.y = parseFloat(d.getAttribute(N.yy)) || 0), c.skewX = parseFloat(d.getAttribute(N.CJ)) || 0, c.skewY = parseFloat(d.getAttribute(N.DJ)) || 0, c.y = -c.y, c.skewX = f.sg(c.skewX), c.skewY = f.sg(-c.skewY), N.Hj.LIa(e, c));
- return e
- },
- Jxa: function(c, d) {
- var e = new N.A7;
- c.getAttribute(N.Bg) && (e.name = c.getAttribute(N.Bg));
- var g, h, k, m = 0;
- d.aP >= N.FJ ? (g = parseFloat(c.getAttribute(N.cka)) || 0, h = parseFloat(c.getAttribute(N.dka)) || 0) : (g = parseFloat(c.getAttribute(N.x4)) || 0, h = parseFloat(c.getAttribute(N.y4)) || 0);
- k = parseFloat(c.getAttribute(N.A4)) ||
- 0;
- m = parseFloat(c.getAttribute(N.u4)) || 0;
- e.GQ = g / k;
- e.HQ = (m - h) / m;
- g = c.querySelectorAll(N.E4 + " \x3e " + N.B4);
- for (h = 0; h < g.length; h++) this.zxa(g[h], d);
- return e
- },
- zxa: function(c) {
- var d = new N.Q4;
- c = c.querySelectorAll(N.B4 + " \x3e " + N.vka);
- for (var e, g = 0; g < c.length; g++) {
- e = c[g];
- var h = r(0, 0);
- h.x = parseFloat(e.getAttribute(N.xy)) || 0;
- h.y = parseFloat(e.getAttribute(N.yy)) || 0;
- d.Vu.push(h)
- }
- return d
- },
- Nva: function(c, d, e) {
- this.Ova(f.L.zd(c), d, e)
- },
- Ova: function(c, d, e) {
- d.eH = c[N.tka] || 1;
- for (var g = c[N.Xja] || [], h, k = 0; k < g.length; k++) h =
- this.uxa(g[k], d), N.Dr.rZ(h.name, h, d.filename);
- g = c[N.Vja] || [];
- for (k = 0; k < g.length; k++) h = this.sxa(g[k], d), N.Dr.qZ(h.name, h, d.filename);
- g = c[N.Dka] || [];
- for (k = 0; k < g.length; k++) h = this.Kxa(g[k], d), N.Dr.aca(h.name, h, d.filename);
- if (e)
- for (c = c[N.ska] || [], k = 0; k < c.length; k++) e = c[k], g = e.lastIndexOf("."), e = e.substring(0, g), g = d.GZ + e + ".plist", e = d.GZ + e + ".png", N.Dr.UG(g, e, d.filename)
- },
- uxa: function(c, d) {
- var e = new N.UR,
- g = c[N.Bg];
- g && (e.name = g);
- d.sB = e.wB = c[N.F4] || 0.1;
- for (var g = c[N.qka], h = 0; h < g.length; h++) e.Oba(this.yxa(g[h],
- d));
- return e
- },
- yxa: function(c, d) {
- var e = new N.Z3;
- this.Gca(e, c, d);
- e.name = c[N.Bg] || "";
- e.yI = c[N.oS] || "";
- for (var g = c[N.xka] || [], h = 0; h < g.length; h++) {
- var k = this.xxa(g[h], d);
- e.Uba(k)
- }
- return e
- },
- xxa: function(c, d) {
- var e = c[N.fka] || N.us,
- g = null;
- switch (e) {
- case N.us:
- g = new N.vq;
- g.displayName = c[N.Bg] || "";
- var h = (c[N.Bka] || [])[0];
- if (h) {
- var k = g.skinData;
- k.x = (h[N.xy] || 0) * this.CA;
- k.y = (h[N.yy] || 0) * this.CA;
- void 0 !== h[N.nD] && (k.scaleX = h[N.nD]);
- void 0 !== h[N.oD] && (k.scaleY = h[N.oD]);
- k.skewX = h[N.CJ] || 0;
- k.skewY = h[N.DJ] || 0;
- k.x *=
- d.eH;
- k.y *= d.eH
- }
- break;
- case N.zy:
- g = new N.hD;
- g.displayName = c[N.Bg] || "";
- break;
- case N.tD:
- g = new N.mK;
- g.displayName = d.GZ + c[N.lka] || "";
- break;
- default:
- g = new N.vq
- }
- g.$k = e;
- return g
- },
- sxa: function(c, d) {
- var e = new N.TR;
- e.name = c[N.Bg] || "";
- for (var g = c[N.Aka] || [], h = 0; h < g.length; h++) {
- var k = this.Gxa(g[h], d);
- e.Vba(k)
- }
- return e
- },
- Gxa: function(c, d) {
- var e = new N.i6;
- e.loop = c[N.v4] || !1;
- e.XO = c[N.r4] || 0;
- e.nu = c[N.q4] || 0;
- e.duration = c[N.wy] || 0;
- void 0 !== c[N.mD] && (e.scale = c[N.mD]);
- e.tweenEasing = c[N.EJ] || N.eb.rj;
- e.name = c[N.Bg] || "";
- for (var g =
- c[N.zka] || [], h = 0; h < g.length; h++) {
- var k = this.Fxa(g[h], d);
- e.Wba(k)
- }
- return e
- },
- Fxa: function(c, d) {
- var e = new N.h6;
- e.vm = c[N.w4] || 0;
- void 0 !== c[N.mD] && (e.scale = c[N.mD]);
- e.name = c[N.Bg] || "";
- for (var g = c[N.yka] || [], h = 0; h < g.length; h++) {
- var k = this.Cxa(g[h], d);
- e.xO(k);
- d.sB < N.ss && (k.oj = e.duration, e.duration += k.duration)
- }
- if (d.sB < N.Ipa)
- for (g = e.qh, k = Math.PI, h = g.length - 1; 0 <= h; h--)
- if (0 < h) {
- var m = g[h].skewX - g[h - 1].skewX,
- n = g[h].skewY - g[h - 1].skewY;
- if (m < -k || m > k) g[h - 1].skewX = 0 > m ? g[h - 1].skewX - 2 * k : g[h - 1].skewX + 2 * k;
- if (n < -k || n >
- k) g[h - 1].skewY = 0 > n ? g[h - 1].skewY - 2 * k : g[h - 1].skewY + 2 * k
- }
- d.sB < N.ss && 0 < e.qh.length && (k = new N.hv, k.copy(e.qh[e.qh.length - 1]), e.xO(k), k.oj = e.duration);
- return e
- },
- Cxa: function(c, d) {
- var e = new N.hv;
- this.Gca(e, c, d);
- e.duration = c[N.wy] || 0;
- e.tweenEasing = c[N.EJ] || N.eb.rj;
- e.mj = c[N.p4] || 0;
- var g = c[N.Zja] || f.Lc;
- e.blendFunc.src = c[N.$ja] || f.Mc;
- e.blendFunc.ha = g;
- e.event = c[N.s4] || null;
- void 0 !== c[N.pS] && (e.uu = c[N.pS]);
- d.sB < N.ss ? e.duration = c[N.wy] || 0 : e.oj = c[N.hka] || 0;
- for (var g = c[N.gka] || [], h = 0; h < g.length; h++) e.zB[h] = g[h];
- return e
- },
- Kxa: function(c) {
- var d = new N.A7;
- d.name = c[N.Bg] || "";
- d.width = c[N.A4] || 0;
- d.height = c[N.u4] || 0;
- d.GQ = c[N.x4] || 0;
- d.HQ = c[N.y4] || 0;
- c = c[N.uka] || [];
- for (var e = 0; e < c.length; e++) {
- var g = this.Axa(c[e]);
- d.jx.push(g)
- }
- return d
- },
- Axa: function(c) {
- var d = new N.Q4;
- c = c[N.Eka] || [];
- for (var e = 0; e < c.length; e++) {
- var g = c[e],
- h = r(0, 0);
- h.x = g[N.xy] || 0;
- h.y = g[N.yy] || 0;
- d.Vu.push(h)
- }
- return d
- },
- Gca: function(c, d, e) {
- c.x = d[N.xy] || 0;
- c.y = d[N.yy] || 0;
- c.x *= e.eH;
- c.y *= e.eH;
- c.Sm = d[N.qS] || 0;
- c.skewX = d[N.CJ] || 0;
- c.skewY = d[N.DJ] || 0;
- void 0 !== d[N.nD] && (c.scaleX =
- d[N.nD]);
- void 0 !== d[N.oD] && (c.scaleY = d[N.oD]);
- if (d = d[N.rka] || null) e.sB < N.Jpa && (d = d[0]), c.a = d[N.l4], c.r = d[N.z4], c.g = d[N.t4], c.b = d[N.m4], c.Zn = !0, delete d
- },
- PFa: function(c) {
- f.Ld(this.ZE, c)
- }
- };
- N.jia = {
- VN: {},
- qsa: [],
- UG: function(c, d) {
- f.Je.vp(c, d)
- },
- xBa: function() {
- return null
- },
- clear: function() {
- this.VN = {};
- this.qsa = []
- }
- };
- N.Hj = N.Hj || N.N.extend({});
- N.Hj.BP = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- };
- N.Hj.CP = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- };
- N.Hj.Fp = r(0, 0);
- N.Hj.Gp = r(0, 0);
- N.Hj.LIa = function(c, d) {
- this.n1(c, this.BP);
- this.n1(d, this.CP);
- this.CP = f.SR(this.CP);
- this.BP = f.Vg(this.BP, this.CP);
- this.mfa(this.BP, c)
- };
- N.Hj.n1 = function(c, d) {
- if (c.skewX == -c.skewY) {
- var e = Math.sin(c.skewX),
- g = Math.cos(c.skewX);
- d.a = c.scaleX * g;
- d.b = c.scaleX * -e;
- d.G = c.scaleY * e;
- d.P = c.scaleY * g
- } else d.a = c.scaleX * Math.cos(c.skewY), d.b = c.scaleX * Math.sin(c.skewY), d.G = c.scaleY * Math.sin(c.skewX), d.P = c.scaleY * Math.cos(c.skewY);
- d.pa = c.x;
- d.qa = c.y
- };
- N.Hj.mfa = function(c, d) {
- this.Fp.x = 0;
- this.Fp.y = 1;
- this.Fp = f.lv(this.Fp, c);
- this.Fp.x -= c.pa;
- this.Fp.y -= c.qa;
- this.Gp.x = 1;
- this.Gp.y = 0;
- this.Gp = f.lv(this.Gp, c);
- this.Gp.x -= c.pa;
- this.Gp.y -= c.qa;
- d.skewX = -(Math.atan2(this.Fp.y, this.Fp.x) - 1.5707964);
- d.skewY = Math.atan2(this.Gp.y, this.Gp.x);
- d.scaleX = Math.sqrt(c.a * c.a + c.b * c.b);
- d.scaleY = Math.sqrt(c.G * c.G + c.P * c.P);
- d.x = c.pa;
- d.y = c.qa
- };
- N.Hj.r_a = function(c, d) {
- c.x += d.x;
- c.y += d.y;
- c.skewX += d.skewX;
- c.skewY += d.skewY;
- c.scaleX += d.scaleX;
- c.scaleY += d.scaleY
- };
- N.Hj.XDa = function(c, d) {
- c.x -= d.x;
- c.y -= d.y;
- c.skewX -= d.skewX;
- c.skewY -= d.skewY;
- c.scaleX -= d.scaleX;
- c.scaleY -= d.scaleY
- };
- N.eb = {
- pxa: -1,
- rj: 0,
- f3: 1,
- g3: 2,
- JC: 3,
- L1: 4,
- N1: 5,
- M1: 6,
- p_: 7,
- r_: 8,
- q_: 9,
- O1: 10,
- Q1: 11,
- P1: 12,
- R1: 13,
- T1: 14,
- S1: 15,
- P_: 16,
- R_: 17,
- Q_: 18,
- d_: 19,
- Qya: 20,
- e_: 21,
- I_: 22,
- K_: 23,
- J_: 24,
- CZ: 25,
- EZ: 26,
- DZ: 27,
- MZ: 28,
- OZ: 29,
- NZ: 30,
- zia: 1E4
- };
- N.nc = N.nc || N.N.extend({});
- N.yo = 2 * Math.PI;
- N.d6 = Math.PI / 2;
- N.tma = Math.PI;
- N.nc.NIa = function(c, d, e) {
- var g = 0;
- switch (d) {
- case N.eb.pxa:
- g = this.oxa(c, e);
- break;
- case N.eb.rj:
- g = this.rj(c);
- break;
- case N.eb.f3:
- g = this.f3(c);
- break;
- case N.eb.g3:
- g = this.g3(c);
- break;
- case N.eb.JC:
- g = this.JC(c);
- break;
- case N.eb.L1:
- g = this.L1(c);
- break;
- case N.eb.N1:
- g = this.N1(c);
- break;
- case N.eb.M1:
- g = this.M1(c);
- break;
- case N.eb.p_:
- g = this.p_(c);
- break;
- case N.eb.r_:
- g = this.r_(c);
- break;
- case N.eb.q_:
- g = this.q_(c);
- break;
- case N.eb.O1:
- g = this.O1(c);
- break;
- case N.eb.Q1:
- g = this.Q1(c);
- break;
- case N.eb.P1:
- g = this.P1(c);
- break;
- case N.eb.R1:
- g =
- this.R1(c);
- break;
- case N.eb.T1:
- g = this.T1(c);
- break;
- case N.eb.S1:
- g = this.S1(c);
- break;
- case N.eb.P_:
- g = this.P_(c);
- break;
- case N.eb.R_:
- g = this.R_(c);
- break;
- case N.eb.Q_:
- g = this.Q_(c);
- break;
- case N.eb.d_:
- g = this.d_(c);
- break;
- case N.eb.Qya:
- g = this.Vwa(c);
- break;
- case N.eb.e_:
- g = this.e_(c);
- break;
- case N.eb.I_:
- g = this.I_(c, e);
- break;
- case N.eb.K_:
- g = this.K_(c, e);
- break;
- case N.eb.J_:
- g = this.J_(c, e);
- break;
- case N.eb.CZ:
- g = this.CZ(c);
- break;
- case N.eb.EZ:
- g = this.EZ(c);
- break;
- case N.eb.DZ:
- g = this.DZ(c);
- break;
- case N.eb.MZ:
- g = this.MZ(c);
- break;
- case N.eb.OZ:
- g = this.OZ(c);
- break;
- case N.eb.NZ:
- g = this.NZ(c);
- break;
- default:
- g = this.JC(c)
- }
- return g
- };
- N.nc.rj = function(c) {
- return c
- };
- N.nc.f3 = function(c) {
- return -1 * Math.cos(c * N.d6) + 1
- };
- N.nc.g3 = function(c) {
- return Math.sin(c * N.d6)
- };
- N.nc.JC = function(c) {
- return -0.5 * (Math.cos(N.tma * c) - 1)
- };
- N.nc.L1 = function(c) {
- return c * c
- };
- N.nc.N1 = function(c) {
- return -1 * c * (c - 2)
- };
- N.nc.M1 = function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c;
- --c;
- return -0.5 * (c * (c - 2) - 1)
- };
- N.nc.p_ = function(c) {
- return c * c * c
- };
- N.nc.r_ = function(c) {
- c -= 1;
- return c * c * c + 1
- };
- N.nc.q_ = function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c;
- c -= 2;
- return 0.5 * (c * c * c + 2)
- };
- N.nc.O1 = function(c) {
- return c * c * c * c
- };
- N.nc.Q1 = function(c) {
- c -= 1;
- return -(c * c * c * c - 1)
- };
- N.nc.P1 = function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c * c;
- c -= 2;
- return -0.5 * (c * c * c * c - 2)
- };
- N.nc.R1 = function(c) {
- return c * c * c * c * c
- };
- N.nc.T1 = function(c) {
- c -= 1;
- return c * c * c * c * c + 1
- };
- N.nc.S1 = function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c * c * c;
- c -= 2;
- return 0.5 * (c * c * c * c * c + 2)
- };
- N.nc.P_ = function(c) {
- return 0 == c ? 0 : Math.pow(2, 10 * (c - 1)) - 0.001
- };
- N.nc.R_ = function(c) {
- return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1
- };
- N.nc.Q_ = function(c) {
- c /= 0.5;
- return c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * (-Math.pow(2, -10 * (c - 1)) + 2)
- };
- N.nc.d_ = function(c) {
- return -1 * (Math.sqrt(1 - c * c) - 1)
- };
- N.nc.Vwa = function(c) {
- c -= 1;
- return Math.sqrt(1 - c * c)
- };
- N.nc.e_ = function(c) {
- c *= 2;
- if (1 > c) return -0.5 * (Math.sqrt(1 - c * c) - 1);
- c -= 2;
- return 0.5 * (Math.sqrt(1 - c * c) + 1)
- };
- N.nc.I_ = function(c, d) {
- var e = 0.3;
- 0 < d.length && (e = d[0]);
- var g = 0;
- 0 == c || 1 == c ? g = c : (c -= 1, g = -Math.pow(2, 10 * c) * Math.sin((c - e / 4) * N.yo / e));
- return g
- };
- N.nc.K_ = function(c, d) {
- var e = 0.3;
- 0 < d.length && (e = d[0]);
- var g = 0;
- return g = 0 == c || 1 == c ? c : Math.pow(2, -10 * c) * Math.sin((c - e / 4) * N.yo / e) + 1
- };
- N.nc.J_ = function(c, d) {
- var e = 0.3;
- 0 < d.length && (e = d[0]);
- var g = 0;
- 0 == c || 1 == c ? g = c : (e || (e = 0.3 * 1.5), g = e / 4, c = 2 * c - 1, g = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * N.yo / e) : Math.pow(2, -10 * c) * Math.sin((c - g) * N.yo / e) * 0.5 + 1);
- return g
- };
- N.nc.CZ = function(c) {
- return c * c * (2.70158 * c - 1.70158)
- };
- N.nc.EZ = function(c) {
- c -= 1;
- return c * c * (2.70158 * c + 1.70158) + 1
- };
- N.nc.DZ = function(c) {
- c *= 2;
- if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2;
- c -= 2;
- return c * c * (3.5949095 * c + 2.5949095) / 2 + 1
- };
- N.Er = function(c) {
- if (c < 1 / 2.75) return 7.5625 * c * c;
- if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75;
- if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375;
- c -= 2.625 / 2.75;
- return 7.5625 * c * c + 0.984375
- };
- N.nc.MZ = function(c) {
- return 1 - N.Er(1 - c)
- };
- N.nc.OZ = function(c) {
- return N.Er(c)
- };
- N.nc.NZ = function(c) {
- var d = 0;
- return d = 0.5 > c ? 0.5 * (1 - N.Er(1 - 2 * c)) : 0.5 * N.Er(2 * c - 1) + 0.5
- };
- N.nc.oxa = function(c, d) {
- if (0 < d.length) {
- var e = 1 - c;
- return d[1] * e * e * e + 3 * d[3] * c * e * e + 3 * d[5] * c * c * e + d[7] * c * c * c
- }
- return c
- };
- N.EB = function(c, d) {
- for (; c > d;) c -= d;
- return c
- };
- function vd(c) {
- c && c.wh && c.wh()
- }
- N.Nea = function(c, d, e) {
- var g = r(0, 0);
- e && (g = c.yi(d));
- c = c.e();
- return f.Bu(x(0, 0, c.width, c.height), g)
- };
- N.zMa = N.Nea;
- N.Pna = N.Nea;
- N.vRa = function(c, d, e, g, h) {
- var k = r(0, 0);
- g && !h && (k.x = Math.pow(1 - c, 2) * d.x + 2 * c * (1 - c) * e.x + Math.pow(c, 2) * g.x, k.y = Math.pow(1 - c, 2) * d.y + 2 * c * (1 - c) * e.y + Math.pow(c, 2) * g.y);
- h && (k.x = d.x * Math.pow(1 - c, 3) + 3 * c * e.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 * e.y * Math.pow(1 - c, 2) + 3 * g.y * Math.pow(c, 2) * (1 - c) + h.y * Math.pow(c, 3));
- return k
- };
- N.wRa = function(c, d, e, g, h) {
- var k = r(0, 0);
- k.x = d.x + e * Math.cos(g + h * c);
- k.y = d.y + e * Math.sin(g + h * c);
- return k
- };
- function wd() {
- this.H1 = [];
- this.zZ = [];
- this.lB = [];
- this.q3 = []
- }
- N.Dr = {
- Ms: {},
- Ns: {},
- Ut: {},
- oqa: !1,
- sN: {},
- f1a: function(c) {
- for (var d = this.zH(c), e = 0; e < d.zZ.length; e++) {
- var g = d.zZ[e];
- this.MFa(g)
- }
- for (e = 0; e < d.lB.length; e++) g = d.lB[e], this.KFa(g);
- for (e = 0; e < d.q3.length; e++) g = d.q3[e], this.WFa(g);
- for (e = 0; e < d.H1.length; e++) g = d.H1[e], f.Je.VFa(g);
- delete this.sN[c];
- N.SO.PFa(c)
- },
- rZ: function(c, d, e) {
- this.Ns && (this.zH(e).zZ.push(c), this.Ns[c] = d)
- },
- MFa: function(c) {
- this.Ns[c] && delete this.Ns[c]
- },
- wx: function(c) {
- var d = null;
- this.Ns && (d = this.Ns[c]);
- return d
- },
- gSa: function() {
- return this.Ns
- },
- qZ: function(c, d, e) {
- this.Ms && (this.zH(e).lB.push(c), this.Ms[c] = d)
- },
- KFa: function(c) {
- this.Ms[c] && delete this.Ms[c]
- },
- mda: function(c) {
- var d = null;
- this.Ms[c] && (d = this.Ms[c]);
- return d
- },
- aSa: function() {
- return this.Ms
- },
- aca: function(c, d, e) {
- this.Ut && (this.zH(e).q3.push(c), this.Ut[c] = d)
- },
- WFa: function(c) {
- this.Ut[c] && delete this.Ut[c]
- },
- wBa: function(c) {
- var d = null;
- this.Ut && (d = this.Ut[c]);
- return d
- },
- iWa: function() {
- return this.Ut
- },
- Jva: function() {
- var c, d, e, g = !1;
- 1 == arguments.length ? (e = arguments[0], g = !0, this.BO(e)) : 3 == arguments.length &&
- (c = arguments[0], d = arguments[1], e = arguments[2], this.BO(e), this.UG(d, c, e));
- N.SO.Sba(e, g)
- },
- kPa: function() {
- var c, d, e, g, h, k = !1;
- 3 == arguments.length ? (e = arguments[0], h = arguments[1], g = arguments[2], k = !0, this.BO(e)) : 5 == arguments.length && (c = arguments[0], d = arguments[1], e = arguments[2], h = arguments[3], g = arguments[4], this.BO(e), this.UG(d, c, e));
- N.SO.Mva(e, g, h, k)
- },
- UG: function(c, d, e) {
- this.zH(e).H1.push(c);
- N.jia.UG(c, d)
- },
- qXa: function() {
- return this.oqa
- },
- BO: function(c) {
- this.sN[c] || (this.sN[c] = new wd)
- },
- zH: function(c) {
- return this.sN[c]
- },
- clear: function() {
- this.Ms = {};
- this.Ns = {};
- this.Ut = {};
- N.jia.clear();
- N.SO.clear()
- }
- };
- N.W3 = 0;
- N.$Ja = 1;
- N.VJa = 2;
- N.oja = 3;
- N.aKa = 4;
- N.pja = 5;
- N.bKa = 6;
- N.YJa = 7;
- N.nja = 8;
- N.cKa = 9;
- N.WJa = 10;
- N.ZJa = 11;
- N.UJa = 12;
- N.XJa = 13;
- N.us = 0;
- N.zy = 1;
- N.tD = 2;
- N.QJ = 3;
- N.Tm = N.N.extend({
- x: 0,
- y: 0,
- Sm: 0,
- skewX: 0,
- skewY: 0,
- scaleX: 1,
- scaleY: 1,
- py: 0,
- Zn: !1,
- r: 255,
- g: 255,
- b: 255,
- a: 255,
- ctor: function() {
- this.skewY = this.skewX = this.Sm = this.y = this.x = 0;
- this.scaleY = this.scaleX = 1;
- this.py = 0;
- this.Zn = !1;
- this.a = this.b = this.g = this.r = 255
- },
- copy: function(c) {
- this.x = c.x;
- this.y = c.y;
- this.Sm = c.Sm;
- this.scaleX = c.scaleX;
- this.scaleY = c.scaleY;
- this.skewX = c.skewX;
- this.skewY = c.skewY;
- this.py = c.py;
- this.Zn = c.Zn;
- this.r = c.r;
- this.g = c.g;
- this.b = c.b;
- this.a = c.a
- },
- F: function(c) {
- this.r = c.r;
- this.g = c.g;
- this.b = c.b;
- this.a = c.a
- },
- $a: function() {
- return f.color(this.r, this.g, this.b, this.a)
- },
- n3: function(c, d, e) {
- this.x = d.x - c.x;
- this.y = d.y - c.y;
- this.scaleX = d.scaleX - c.scaleX;
- this.scaleY = d.scaleY - c.scaleY;
- this.skewX = d.skewX - c.skewX;
- this.skewY = d.skewY - c.skewY;
- this.Zn || c.Zn || d.Zn ? (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.Zn = !0) : (this.a = this.r = this.g = this.b = 0, this.Zn = !1);
- e && (this.skewX > f.PI && (this.skewX -= N.yo), this.skewX < -f.PI && (this.skewX += N.yo), this.skewY > f.PI && (this.skewY -= N.yo), this.skewY < -f.PI && (this.skewY +=
- N.yo));
- d.py && (this.skewX += d.py * N.yo, this.skewY -= d.py * N.yo)
- }
- });
- N.Ay = N.N.extend({
- $k: N.QJ,
- displayName: "",
- ctor: function() {
- this.$k = N.QJ
- },
- iQa: function(c) {
- var d = c.lastIndexOf("."); - 1 != d && (c = c.substring(0, d));
- return c
- },
- copy: function(c) {
- this.displayName = c.displayName;
- this.$k = c.$k
- }
- });
- N.vq = N.Ay.extend({
- skinData: null,
- ctor: function() {
- this.skinData = new N.Tm;
- this.$k = N.us
- },
- copy: function(c) {
- N.Ay.prototype.copy.call(this, c);
- this.skinData = c.skinData
- }
- });
- N.hD = N.Ay.extend({
- displayName: "",
- ctor: function() {
- this.displayName = "";
- this.$k = N.zy
- }
- });
- N.mK = N.Ay.extend({
- ctor: function() {
- this.$k = N.tD
- }
- });
- N.Z3 = N.Tm.extend({
- VO: null,
- name: "",
- yI: "",
- Iwa: null,
- ctor: function() {
- this.VO = [];
- this.yI = this.name = "";
- this.Iwa = null
- },
- j: function() {},
- Uba: function(c) {
- this.VO.push(c)
- },
- zm: function(c) {
- return this.VO[c]
- }
- });
- N.UR = N.N.extend({
- aH: null,
- name: "",
- wB: 0.1,
- ctor: function() {
- this.aH = {};
- this.name = "";
- this.wB = 0.1
- },
- j: function() {
- return !0
- },
- Oba: function(c) {
- this.aH[c.name] = c
- },
- wSa: function() {
- return this.aH
- },
- xx: function(c) {
- return this.aH[c]
- }
- });
- N.hv = N.Tm.extend({
- duration: 0,
- tweenEasing: 0,
- oH: 0,
- zB: null,
- mj: -1,
- oC: "",
- event: "",
- IR: "",
- JR: "",
- blendFunc: 0,
- oj: 0,
- uu: !0,
- ctor: function() {
- N.Tm.prototype.ctor.call(this);
- this.duration = 1;
- this.tweenEasing = N.eb.rj;
- this.oH = 0;
- this.zB = [];
- this.mj = 0;
- this.JR = this.IR = this.event = this.oC = "";
- this.blendFunc = new f.Um(f.Mc, f.Lc);
- this.oj = 0;
- this.uu = !0
- },
- copy: function(c) {
- N.Tm.prototype.copy.call(this, c);
- this.duration = c.duration;
- this.tweenEasing = c.tweenEasing;
- this.mj = c.mj;
- this.oC = c.oC;
- this.event = c.event;
- this.IR = c.IR;
- this.JR = c.JR;
- this.blendFunc = c.blendFunc;
- this.uu = c.uu;
- this.oH = c.oH;
- this.zB = [];
- if (0 != this.oH)
- for (var d = 0; d < this.oH; d++) this.zB[d] = c.zB[d]
- }
- });
- N.h6 = N.N.extend({
- vm: 0,
- scale: 1,
- duration: 0,
- qh: null,
- name: "",
- ctor: function() {
- this.vm = 0;
- this.scale = 1;
- this.duration = 0;
- this.qh = [];
- this.name = ""
- },
- j: function() {
- this.qh = []
- },
- xO: function(c) {
- this.qh.push(c)
- },
- Cda: function(c) {
- return this.qh[c]
- }
- });
- N.i6 = N.N.extend({
- l1: null,
- duration: 0,
- scale: 1,
- nu: 0,
- XO: N.eb.rj,
- loop: !0,
- tweenEasing: 2,
- name: "",
- ctor: function() {
- this.name = "";
- this.duration = 0;
- this.scale = 1;
- this.XO = this.nu = 0;
- this.loop = !0;
- this.tweenEasing = N.eb.rj;
- this.l1 = {}
- },
- Wba: function(c) {
- this.l1[c.name] = c
- },
- e0: function(c) {
- return this.l1[c]
- }
- });
- N.TR = N.N.extend({
- qQ: null,
- iI: null,
- name: "",
- ctor: function() {
- this.qQ = {};
- this.iI = []
- },
- Vba: function(c) {
- this.qQ[c.name] = c;
- this.iI.push(c.name)
- },
- Fda: function(c) {
- return this.qQ[c]
- },
- Gda: function() {
- return Object.keys(this.qQ).length
- }
- });
- function xd(c, d) {
- this.x = c || 0;
- this.y = d || 0
- }
- N.Q4 = N.N.extend({
- Vu: null,
- ctor: function() {
- this.Vu = []
- },
- j: function() {
- this.Vu = [];
- return !0
- },
- FPa: function(c) {
- c = xd(c.x, c.y);
- this.Vu.push(c)
- }
- });
- N.A7 = N.N.extend({
- height: 0,
- width: 0,
- GQ: 0,
- HQ: 0,
- name: "",
- jx: null,
- ctor: function() {
- this.width = this.height = 0;
- this.HQ = this.GQ = 0.5;
- this.name = "";
- this.jx = []
- },
- j: function() {
- this.jx = []
- },
- Rba: function(c) {
- this.jx.push(c)
- },
- iP: function(c) {
- return this.jx[c]
- }
- });
- N.RJ = N.N.extend({
- at: null,
- Jj: null,
- iF: null,
- ctor: function() {
- this.iF = this.Jj = this.at = null
- },
- j: function() {
- return !0
- },
- NI: function(c) {
- this.at = c
- },
- vTa: function() {
- return this.at
- },
- HGa: function(c) {
- this.Jj = c
- },
- XSa: function() {
- return this.Jj
- },
- FC: function(c) {
- this.iF = c
- },
- zm: function() {
- return this.iF
- },
- wh: function() {
- vd(this.at);
- this.at = null;
- vd(this.iF);
- this.iF = null;
- vd(this.Jj);
- this.Jj = null
- }
- });
- N.RJ.create = function() {
- var c = new N.RJ;
- return c && c.j() ? c : null
- };
- N.Xg = N.Xg || N.N.extend({});
- N.Xg.tZ = function(c, d, e) {
- switch (e.$k) {
- case N.us:
- this.Wva(c, d, e);
- break;
- case N.tD:
- this.Tva(c, d, e);
- break;
- case N.zy:
- this.Iva(c, d, e)
- }
- };
- N.Xg.jxa = function(c, d) {
- switch (d.zm().$k) {
- case N.us:
- this.Bca(c, d);
- break;
- case N.tD:
- this.Aca(c, d);
- break;
- case N.zy:
- this.yca(c, d)
- }
- };
- N.Xg.psa = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- };
- N.Xg.ZIa = function(c, d, e) {
- var g = c.PB();
- if (g) {
- switch (c.b0()) {
- case N.us:
- e && g.Dia();
- break;
- case N.tD:
- this.cJa(c, g, d);
- break;
- case N.zy:
- this.XIa(g, d);
- break;
- default:
- d = c.KUa(), g.rGa(d)
- }
- if ((N.uD || N.dv) && e && (g = c.Nd.dn, e = g.Jj)) {
- d = g.at;
- var h = d.se(),
- g = this.psa;
- g.a = h.a;
- g.b = h.b;
- g.G = h.G;
- g.P = h.P;
- g.pa = h.pa;
- g.qa = h.qa;
- d = d.Bp();
- d = f.lv(d, g);
- g.pa = d.x;
- g.qa = d.y;
- c = f.Vg(g, c.Qc.se());
- e.bi(c)
- }
- }
- };
- N.Xg.Wva = function(c, d, e) {
- var g = new N.vq;
- g.copy(e);
- d.FC(g);
- this.Bca(c, d)
- };
- N.Xg.Bca = function(c, d) {
- var e = null,
- g = d.zm(),
- e = g.displayName,
- h = e.lastIndexOf("."); - 1 != h && (e = e.substring(0, h));
- e = "" == e ? N.Ao.create() : N.Ao.Cca(e + ".png");
- d.NI(e);
- e.m2(c);
- this.F0(c, d, g.displayName, e);
- (h = c.Qc) && (h.wx().wB >= N.ss ? e.ms(g.skinData) : e.ms(c.xx()))
- };
- N.Xg.F0 = function(c, d, e, g) {
- var h = e.lastIndexOf("."); - 1 != h && (e = e.substring(0, h));
- (e = N.Dr.wBa(e)) && g.S(e.GQ, e.HQ);
- (N.uD || N.dv) && e && 0 < e.jx.length && (c = N.JJ.create(c), c.Kva(e.jx), d.HGa(c))
- };
- N.Xg.Iva = function(c, d, e) {
- var g = new N.hD;
- g.copy(e);
- d.FC(g);
- this.yca(c, d)
- };
- N.Xg.yca = function(c, d) {
- var e = N.tk.create(d.zm().displayName, c);
- d.NI(e)
- };
- N.Xg.XIa = function(c, d) {
- c && (c.kd(), c.update(d))
- };
- N.Xg.Tva = function(c, d, e) {
- var g = new N.mK;
- g.copy(e);
- d.FC(g);
- this.Aca(c, d)
- };
- N.Xg.Aca = function(c, d) {
- var e = f.A.create(d.zm().displayName);
- e.Yp();
- e.De();
- c.Qc && e.aq(c.Qc);
- d.NI(e)
- };
- N.Xg.cJa = function(c, d, e) {
- var g = new N.Tm;
- N.Hj.mfa(c.du, g);
- d.o(g.x, g.y);
- d.jb(g.scaleX);
- d.tb(g.scaleY);
- d.update(e)
- };
- N.GS = N.N.extend({
- fg: null,
- dn: null,
- Te: null,
- Uo: -1,
- fM: !1,
- ld: null,
- Na: !0,
- IL: null,
- ctor: function() {
- this.fg = [];
- this.Te = this.dn = null;
- this.Uo = -1;
- this.fM = !1;
- this.ld = null;
- this.Na = !0;
- this.IL = N.QJ
- },
- j: function(c) {
- this.ld = c;
- this.uea(c.xx());
- return !0
- },
- tZ: function(c, d) {
- var e = null;
- 0 <= d && d < this.fg.length ? e = this.fg[d] : (e = N.RJ.create(), this.fg.push(e));
- var g = null;
- if (c instanceof N.Ao) {
- c.m2(this.ld);
- g = new N.vq;
- N.Xg.F0(this.ld, e, c.Lv, c);
- var h = e.zm();
- if (h instanceof N.vq) c.ms(h.skinData), g.skinData = h.skinData;
- else
- for (h = this.fg.length -
- 2; 0 <= h; h--) {
- var k = this.fg[h].zm();
- if (k instanceof N.vq) {
- c.ms(k.skinData);
- g.skinData = k.skinData;
- break
- }
- }
- } else c instanceof f.A ? (g = new N.mK, c.Yp(), c.De(), (h = this.ld.Qc) && c.aq(h)) : c instanceof N.tk ? (h = c, g = new N.hD, g.displayName = h.getName(), h.Ku(this.ld)) : g = new N.Ay;
- e.NI(c);
- e.FC(g);
- d == this.Uo && (this.Uo = -1, this.Fr(d, !1))
- },
- rNa: function(c, d) {
- var e = null;
- if (d instanceof N.Ao) {
- d.m2(this.ld);
- e = new N.vq;
- e.displayName = d.Lv;
- N.Xg.F0(this.ld, c, d.Lv, d);
- var g = c.zm();
- if (g instanceof N.vq) d.ms(g.skinData);
- else {
- for (var g = !1, h = this.fg.length - 2; 0 <= h; h--) {
- var k = this.fg[h].zm();
- if (k) {
- g = !0;
- d.ms(k.skinData);
- e.skinData = k.skinData;
- break
- }
- }
- g || d.ms(new N.Tm);
- d.ms(new N.Tm)
- }
- } else d instanceof f.A ? (e = new N.mK, e.displayName = d.jN) : d instanceof N.tk ? (e = new N.hD, e.displayName = d.getName(), d.Ku(this.ld)) : e = new N.Ay;
- c.NI(d);
- c.FC(e)
- },
- lga: function(c) {
- this.fg.splice(c, 1);
- c == this.Uo && this.fR(null)
- },
- oTa: function() {
- return this.fg
- },
- Fr: function(c, d) {
- if (c >= this.fg.length) f.log("the index value is out of range");
- else if (this.fM = d, 0 > c) this.Uo =
- c, this.Te && (this.Te.Yp(!0), this.fR(null), this.Te = null);
- else if (this.Uo != c) {
- this.Uo = c;
- var e = this.fg[this.Uo];
- e && this.fR(e)
- }
- },
- oca: function(c, d) {
- for (var e = 0; e < this.fg.length; e++)
- if (this.fg[e].zm().displayName == c) {
- this.Fr(e, d);
- break
- }
- },
- fR: function(c) {
- var d = this.dn;
- (N.uD || N.dv) && d && d.Jj && d.Jj.setActive(!1);
- d = this.dn = c;
- (N.uD || N.dv) && d && d.Jj && d.Jj.setActive(!0);
- c = null == d ? null : d.at;
- this.Te && (this.Te instanceof N.tk && this.ld.s2(null), this.Te.Yp(!0), this.Te = null);
- (this.Te = c) ? (c instanceof N.tk ? this.ld.s2(c) :
- c instanceof f.A && c.tga(), c.wb && (c.F(this.ld.ou()), c.J(this.ld.kb)), this.IL = this.dn.zm().$k) : this.IL = N.QJ
- },
- PB: function() {
- return this.Te
- },
- b0: function() {
- return this.IL
- },
- fTa: function() {
- return this.Uo
- },
- eTa: function() {
- return this.dn
- },
- nTa: function(c) {
- return this.fg[c]
- },
- uea: function(c) {
- this.fg = [];
- if (c) {
- c = c.VO;
- for (var d = 0; d < c.length; d++) {
- var e = c[d],
- g = N.RJ.create();
- g.FC(e);
- N.Xg.jxa(this.ld, g);
- this.fg.push(g)
- }
- }
- },
- cxa: function(c, d) {
- var e = r(0, 0);
- void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d);
- if (!this.Na || 0 > this.Uo) return !1;
- var g = !1;
- switch (this.dn.zm().$k) {
- case N.us:
- var g = r(0, 0),
- h = this.dn.at,
- h = h.Za(0),
- g = N.Pna(h, e, g)
- }
- return g
- },
- za: function(c) {
- this.Te && (this.Na = c, this.Te.za(c))
- },
- V0: function() {
- return this.Na
- },
- e: function() {
- return this.Te ? this.Te.e() : t(0, 0)
- },
- Ee: function() {
- return this.Te ? this.Te.Ee() : x(0, 0, 0, 0)
- },
- bk: function() {
- return this.Te ? this.Te.bk() : r(0, 0)
- },
- Bp: function() {
- return this.Te ? this.Te.Bp() : r(0, 0)
- },
- XTa: function() {
- return this.fM
- },
- wh: function() {
- this.fg = [];
- this.Te && (this.Te.Yp(!0), this.Te = null)
- }
- });
- N.GS.create = function(c) {
- var d = new N.GS;
- return d && d.j(c) ? d : null
- };
- N.Ao = N.q.extend({
- wY: null,
- ij: null,
- xY: null,
- Lv: "",
- Qc: null,
- ta: "Skin",
- ctor: function() {
- f.q.prototype.ctor.call(this);
- this.ij = this.wY = null;
- this.Lv = "";
- this.xY = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- };
- this.Qc = null
- },
- hl: function(c) {
- var d = f.q.prototype.hl.call(this, c);
- this.Lv = c;
- return d
- },
- Ge: function(c) {
- var d = f.q.prototype.Ge.call(this, c);
- this.Lv = c;
- return d
- },
- ms: function(c) {
- this.wY = c;
- this.jb(c.scaleX);
- this.tb(c.scaleY);
- this.M2(f.yC(c.skewX));
- this.N2(f.yC(-c.skewY));
- this.o(c.x, c.y);
- c = this.se();
- var d = this.xY;
- d.a = c.a;
- d.b = c.b;
- d.G = c.G;
- d.P = c.P;
- d.pa = c.pa;
- d.qa = c.qa;
- this.Dia()
- },
- mBa: function() {
- return this.wY
- },
- m2: function(c) {
- this.ij = c
- },
- nda: function() {
- return this.ij
- },
- Dia: function() {
- var c = this.Pf = f.Vg(this.xY, this.ij.du),
- d = this.Qc;
- d && d.LB() && (this.Pf = f.Vg(c, d.se()));
- f.K === f.fb && (c = this.Pf, c.b *= -1, c.G *= -1, c.b = [c.G, c.G = c.b][0])
- },
- Ee: function() {
- var c = x(0, 0, this.m.width, this.m.height),
- d = this.se();
- f.K === f.fb && (d.b *= -1, d.G *= -1, d.b = [d.G, d.G = d.b][0]);
- return f.Ki(c, d)
- },
- Sza: function() {
- return this.Lv
- },
- il: function() {
- return f.Vg(this.Pf, this.ij.Qc.il())
- },
- t_a: function() {
- var c = this.Pf,
- d = this.Qb,
- d = f.lv(d, c);
- c.pa = d.x;
- c.qa = d.y;
- return f.Vg(c, this.ij.Qc.il())
- }
- });
- N.Ao.prototype.se = f.v.prototype.VM;
- q = N.Ao.prototype;
- f.d(q, "skinData", q.mBa, q.ms);
- f.d(q, "displayName", q.Sza);
- q = null;
- N.Ao.create = function(c, d) {
- var e = arguments.length,
- g = new N.Ao;
- if (0 === e) {
- if (g.j()) return g
- } else if (g && g.Ge(c, d)) return g;
- return null
- };
- N.Ao.Cca = function(c) {
- var d = new N.Ao;
- return d && d.hl(c) ? d : null
- };
- N.wJ = -4;
- N.dD = -3;
- N.eD = -2;
- N.J3 = -1;
- N.QR = 0;
- N.Sia = 1;
- N.cD = 2;
- N.wk = N.N.extend({
- lp: 1,
- $l: !0,
- qt: !0,
- am: !1,
- Hk: 0,
- yn: 0,
- Ok: 0,
- gO: 0,
- CO: null,
- dh: 0,
- Pj: 0,
- jh: 0,
- Bz: null,
- Msa: !1,
- ctor: function() {
- this.lp = 1;
- this.qt = this.$l = !0;
- this.am = !1;
- this.yn = this.Pj = this.Hk = this.dh = 0;
- this.Ok = N.Sia;
- this.gO = N.eb.rj;
- this.CO = 1 / 60;
- this.Pj = this.Bz = 0;
- this.Msa = !1
- },
- pause: function() {
- this.qt = !0;
- this.am = !1
- },
- lk: function() {
- this.qt = !1;
- this.am = !0
- },
- stop: function() {
- this.$l = !0;
- this.am = !1
- },
- play: function(c, d) {
- this.qt = this.$l = !1;
- this.am = !0;
- this.dh = 0;
- this.jh = c;
- this.gO = d
- },
- update: function(c) {
- if (this.$l || this.qt || 0 >=
- this.yn) return !1;
- var d = this.jh,
- e = this.dh;
- 0 >= d ? (this.Hk = 1, e = 0) : (e += c / this.CO * this.lp, this.Hk = e / d, e = N.EB(e, d));
- this.dh = e;
- this.B3();
- return !0
- },
- B3: function() {},
- jea: function(c) {
- var d = this.Ok;
- d == N.dD ? d = N.cD : d == N.eD && (d = N.QR);
- this.Ok = d;
- this.Bz = c;
- this.jh = this.Pj
- },
- Lza: function() {
- return this.Bz = (this.yn - 1) * this.Hk
- },
- aDa: function() {
- return this.qt
- },
- UCa: function() {
- return this.$l
- },
- Mza: function() {
- return this.Hk
- },
- aBa: function() {
- return this.yn
- },
- Eda: function() {
- return this.Ok
- },
- GBa: function() {
- return this.gO
- },
- bSa: function() {
- return this.CO
- },
- t2a: function(c) {
- this.CO = c
- },
- uVa: function() {
- return this.lp
- },
- qR: function(c) {
- this.lp = c
- },
- Lea: function() {
- return this.am
- }
- });
- q = N.wk.prototype;
- f.d(q, "currentFrameIndex", q.Lza);
- f.d(q, "paused", q.aDa);
- f.d(q, "completed", q.UCa);
- f.d(q, "currentPercent", q.Mza);
- f.d(q, "rawDuration", q.aBa);
- f.d(q, "loop", q.Eda);
- f.d(q, "tweenEasing", q.GBa);
- f.d(q, "playing", q.Lea);
- q = null;
- N.gK = {
- start: 0,
- complete: 1,
- PDa: 2
- };
- N.O3 = N.N.extend({
- E8: null,
- Rs: null,
- jm: null,
- ctor: function(c, d, e) {
- this.Mh = e;
- this.Rs = d;
- this.jm = c
- },
- call: function() {
- this.Rs && this.Rs.apply(this.jm, this.E8)
- },
- Ega: function(c) {
- this.E8 = c
- }
- });
- function yd() {
- this.armature = null;
- this.qfa = this.rfa = ""
- }
- function zd() {
- this.ij = null;
- this.kda = "";
- this.currentFrameIndex = this.Cfa = 0
- }
- N.yJ = N.wk.extend({
- gu: null,
- cr: null,
- Qc: null,
- gw: "",
- Jta: 0,
- rp: 0,
- fj: null,
- Sz: null,
- qA: null,
- Ot: 1,
- Lr: !1,
- gW: null,
- eX: null,
- userObject: null,
- er: null,
- lw: !1,
- SM: !1,
- ap: 0,
- ctor: function() {
- N.wk.prototype.ctor.call(this);
- this.cr = this.gu = null;
- this.gw = "";
- this.Qc = null;
- this.rp = this.Jta = 0;
- this.fj = [];
- this.qA = this.Sz = null;
- this.Ot = 1;
- this.Lr = !1;
- this.gW = [];
- this.eX = [];
- this.userObject = null;
- this.er = [];
- this.SM = this.lw = !1;
- this.ap = 0
- },
- j: function(c) {
- this.Qc = c;
- this.fj = [];
- return !0
- },
- pause: function() {
- for (var c = 0; c < this.fj.length; c++) this.fj[c].pause();
- N.wk.prototype.pause.call(this)
- },
- lk: function() {
- for (var c = 0; c < this.fj.length; c++) this.fj[c].lk();
- N.wk.prototype.lk.call(this)
- },
- stop: function() {
- for (var c = 0; c < this.fj.length; c++) this.fj[c].stop();
- this.fj = [];
- N.wk.prototype.stop.call(this)
- },
- Rha: function(c) {
- if (c != this.Ot) {
- this.Ot = c;
- this.lp = this.cr ? this.Ot * this.cr.scale : this.Ot;
- c = this.Qc.Jh;
- for (var d in c) {
- var e = c[d];
- e.bu.qR(this.lp);
- e.Ul && e.Ul.cl().qR(this.lp)
- }
- }
- },
- pBa: function() {
- return this.Ot
- },
- wza: function() {
- return this.Ot
- },
- vGa: function(c) {
- return this.Rha(c)
- },
- play: function(c, d, e) {
- if (null == this.gu) f.log("this.animationData can not be null");
- else if (this.cr = this.gu.Fda(c), null == this.cr) f.log("this._movementData can not be null");
- else {
- void 0 === d && (d = -1);
- void 0 === e && (e = -1);
- var g = this.cr;
- this.yn = g.duration;
- this.gw = c;
- this.lp = this.Ot * g.scale;
- d = -1 == d ? g.nu : d;
- c = g.XO;
- c = 0 == c ? this.yn : c;
- var h = g.tweenEasing;
- e = 0 > e ? g.loop : Boolean(e);
- this.lw = !1;
- N.wk.prototype.play.call(this, d, h);
- 0 == this.yn ? this.Ok = N.wJ : (this.Ok = e ? N.eD : N.dD, this.Pj = c);
- this.fj = [];
- var k, m = this.Qc.Jh,
- n;
- for (n in m) {
- var p =
- m[n];
- k = g.e0(p.getName());
- var s = p.bu;
- k && 0 < k.qh.length ? (this.fj.push(s), k.duration = g.duration, s.play(k, d, c, e, h), s.qR(this.lp), p.Ul && p.Ul.cl().qR(this.lp)) : p.FP || (p.Nd.Fr(-1, !1), s.stop())
- }
- this.Qc.update(0)
- }
- },
- q0a: function(c, d, e) {
- this.er = [];
- this.SM = e;
- this.lw = !0;
- for (e = this.ap = 0; e < c.length; e++) this.er.push({
- name: c[e],
- nu: d
- });
- this.C3()
- },
- C3: function() {
- if (this.lw) {
- if (this.SM) {
- var c = this.er[this.ap];
- this.play(c.name, c.nu, -1, 0);
- this.ap++;
- this.ap >= this.er.length && (this.ap = 0)
- } else this.ap < this.er.length ? (c = this.er[this.ap],
- this.play(c.name, c.nu, -1, 0), this.ap++) : this.lw = !1;
- this.lw = !0
- }
- },
- xP: function(c) {
- if (!this.cr || 0 > c || c >= this.cr.duration) f.log("Please ensure you have played a movement, and the frameIndex is in the range.");
- else {
- var d = this.Lr;
- this.am = this.Lr = !0;
- this.$l = this.qt = !1;
- N.wk.prototype.jea.call(this, c);
- this.Hk = this.Bz / (this.cr.duration - 1);
- this.dh = this.jh * this.Hk;
- for (var e = 0; e < this.fj.length; e++) this.fj[e].xP(c);
- this.Qc.update(0);
- this.Lr = d
- }
- },
- VBa: function(c) {
- this.xP(c);
- this.pause()
- },
- cFa: function(c, d, e, g) {
- "undefined" ==
- typeof d && (d = -1);
- "undefined" == typeof g && (g = -1);
- e = this.gu.iI; - 1 > c || c >= e.length || this.play(e[c], d, g, 0)
- },
- o0a: function(c, d, e, g, h) {
- f.log("playByIndex is deprecated. Use playWithIndex instead.");
- this.cFa(c, d, e, g, h)
- },
- p0a: function(c, d, e) {
- this.er = [];
- this.SM = e;
- this.lw = !0;
- this.ap = 0;
- e = this.gu.iI;
- for (var g = 0; g < c.length; g++) this.er.push({
- name: e[c[g]],
- nu: d
- });
- this.C3()
- },
- Gda: function() {
- return this.gu.Gda()
- },
- update: function(c) {
- if (N.wk.prototype.update.call(this, c))
- for (var d = 0; d < this.fj.length; d++) this.fj[d].update(c);
- for (c = this.gW; 0 < c.length;) d = c.shift(), this.Lr = !0, this.Owa([d.ij, d.kda, d.Cfa, d.currentFrameIndex]), this.Lr = !1;
- for (c = this.eX; 0 < c.length;) d = c.shift(), this.Pwa([d.armature, d.rfa, d.qfa])
- },
- B3: function() {
- var c = this.Hk;
- if (1 <= c) {
- switch (this.Ok) {
- case N.dD:
- if (this.Ok = N.cD, this.dh = (c - 1) * this.jh, c = this.dh / this.Pj, 1 > c) {
- this.jh = this.Pj;
- this.sQ(this.Qc, N.gK.start, this.gw);
- break
- }
- case N.cD:
- case N.wJ:
- c = 1;
- this.$l = !0;
- this.am = !1;
- this.sQ(this.Qc, N.gK.complete, this.gw);
- this.C3();
- break;
- case N.eD:
- this.Ok = N.QR;
- c = N.EB(c, 1);
- this.dh = 0 == this.jh ? 0 : N.EB(this.dh, this.jh);
- this.jh = 0 < this.Pj ? this.Pj : 1;
- this.sQ(this, N.gK.start, this.gw);
- break;
- default:
- this.dh = N.EB(this.dh, this.jh), this.rp = 0, this.sQ(this.Qc, N.gK.PDa, this.gw)
- }
- this.Hk = c
- }
- },
- hTa: function() {
- return this.$l ? "" : this.gw
- },
- jHa: function(c, d) {
- this.qA = new N.O3(d, c)
- },
- Pwa: function(c) {
- this.qA && (this.qA.Ega(c), this.qA.call())
- },
- j3a: function(c, d) {
- this.Sz = new N.O3(d, c)
- },
- Owa: function(c) {
- this.Sz && (this.Sz.Ega(c), this.Sz.call())
- },
- sQ: function(c, d, e) {
- if (this.qA) {
- var g = new yd;
- g.armature = c;
- g.rfa = d;
- g.qfa = e;
- this.eX.push(g)
- }
- },
- oza: function(c, d, e, g) {
- if (this.Sz) {
- var h = new zd;
- h.ij = c;
- h.kda = d;
- h.Cfa = e;
- h.currentFrameIndex = g;
- this.gW.push(h)
- }
- },
- Bga: function(c) {
- this.gu = c
- },
- mda: function() {
- return this.gu
- },
- WHa: function(c) {
- this.userObject = c
- },
- JBa: function() {
- return this.userObject
- },
- FXa: function() {
- return this.Lr
- },
- s3a: function(c) {
- this.Lr = c
- }
- });
- q = N.yJ.prototype;
- f.d(q, "speedScale", q.pBa, q.Rha);
- f.d(q, "animationScale", q.wza, q.vGa);
- q = null;
- N.yJ.create = function(c) {
- var d = new N.yJ;
- return d && d.j(c) ? d : null
- };
- N.nU = N.wk.extend({
- Id: null,
- Nf: null,
- Tc: null,
- Dq: null,
- Wi: null,
- ld: null,
- Tz: 0,
- Cv: 0,
- Ow: 0,
- rp: 0,
- Tq: 0,
- wd: null,
- zA: !1,
- ctor: function() {
- N.wk.prototype.ctor.call(this);
- this.Wi = this.ld = this.Dq = this.Tc = this.Nf = this.Id = null;
- this.Tz = N.eb.rj;
- this.Tq = this.rp = 0;
- this.wd = null;
- this.zA = !1
- },
- j: function(c) {
- this.Tc = new N.hv;
- this.Dq = new N.hv;
- this.ld = c;
- this.Id = this.ld.Id;
- this.Id.mj = -1;
- if (c = c.Qc) this.wd = c.cl();
- return !0
- },
- play: function(c, d, e, g, h) {
- N.wk.prototype.play.call(this, d, h);
- this.Ok = g ? N.eD : N.dD;
- this.Tq = this.rp = this.Cv = this.Ow =
- 0;
- h = c != this.Wi;
- this.Wi = c;
- this.yn = this.Wi.duration;
- c = this.Wi.Cda(0);
- this.Id.mj = c.mj;
- this.ld.Qc.wx().wB >= N.ss && (N.Hj.XDa(this.Id, this.ld.xx()), this.Id.scaleX += 1, this.Id.scaleY += 1);
- 0 == this.yn || 1 == this.Wi.qh.length ? (this.Ok = N.wJ, 0 == d ? this.Fu(c, c) : this.Fu(this.Id, c), this.Tz = N.eb.rj) : 1 < this.Wi.qh.length && (this.Pj = e * this.Wi.scale, g && 0 != this.Wi.vm ? this.Fu(this.Id, this.w3(this.Eia(1 - this.Wi.vm), this.Dq)) : h && 0 != d ? this.Fu(this.Id, c) : this.Fu(c, c));
- this.w3(0)
- },
- xP: function(c) {
- N.wk.prototype.jea.call(this, c);
- this.Tq =
- this.rp = this.Cv = this.Ow = 0;
- this.am = !0;
- this.$l = this.qt = !1;
- this.Hk = this.Bz / (this.yn - 1);
- this.dh = this.jh * this.Hk
- },
- VBa: function(c) {
- this.xP(c);
- this.pause()
- },
- B3: function() {
- var c = this.Hk,
- d = this.Ok;
- if (1 <= c) switch (d) {
- case N.wJ:
- c = 1;
- this.$l = !0;
- this.am = !1;
- break;
- case N.dD:
- d = N.cD;
- c = 0 >= this.Pj ? 1 : (c - 1) * this.jh / this.Pj;
- 1 <= c ? (c = 1, this.$l = !0, this.am = !1) : (this.jh = this.Pj, this.dh = c * this.jh, this.Tq = this.rp = this.Cv = this.Ow = 0);
- break;
- case N.eD:
- d = N.QR;
- this.jh = 0 < this.Pj ? this.Pj : 1;
- 0 != this.Wi.vm ? (this.dh = (1 - this.Wi.vm) * this.jh,
- c = this.dh / this.jh) : this.dh = c = 0;
- this.Tq = this.rp = this.Cv = this.Ow = 0;
- break;
- case N.cD:
- c = 1;
- this.$l = !0;
- this.am = !1;
- break;
- default:
- this.dh = N.EB(this.dh, this.jh), this.Cv = this.Ow = 0
- }
- 1 > c && d < N.J3 && (c = Math.sin(c * f.PI / 2));
- this.Hk = c;
- this.Ok = d;
- d > N.J3 && (c = this.Eia(c));
- this.Tz != N.eb.zia && this.w3(c)
- },
- Fu: function(c, d, e) {
- "undefined" == typeof e && (e = !0);
- 0 > c.mj && 0 <= d.mj ? (this.Tc.copy(d), this.Dq.n3(d, d, e)) : 0 > d.mj && 0 <= c.mj ? (this.Tc.copy(c), this.Dq.n3(d, d, e)) : (this.Tc.copy(c), this.Dq.n3(c, d, e));
- c.uu || (this.Id.copy(c), this.Id.uu = !0);
- this.pwa(c)
- },
- pwa: function(c) {
- if (c) {
- var d = this.ld,
- e = c.mj,
- g = d.Nd;
- g.fM || (g.Fr(e, !1), (e = g.PB()) && e.ce(c.blendFunc));
- this.Id.Sm = c.Sm;
- d.jJa();
- (d = d.Ul) && "" != c.oC && d.cl().play(c.oC)
- }
- },
- w3: function(c, d) {
- d || (d = this.Id);
- var e = this.Tc,
- g = this.Dq;
- e.uu || (c = 0);
- d.x = e.x + c * g.x;
- d.y = e.y + c * g.y;
- d.scaleX = e.scaleX + c * g.scaleX;
- d.scaleY = e.scaleY + c * g.scaleY;
- d.skewX = e.skewX + c * g.skewX;
- d.skewY = e.skewY + c * g.skewY;
- this.ld.SHa(!0);
- d && g.Zn && this.MIa(c, d);
- return d
- },
- MIa: function(c, d) {
- var e = this.Tc,
- g = this.Dq;
- d.a = e.a + c * g.a;
- d.r = e.r + c *
- g.r;
- d.g = e.g + c * g.g;
- d.b = e.b + c * g.b;
- this.ld.oo()
- },
- Eia: function(c) {
- 1 < c && 0 != this.Wi.vm && (c = N.EB(c, 1));
- var d = (this.yn - 1) * c,
- e, g, h = this.Ow,
- k = this.Cv,
- m = this.rp;
- if (d < h || d >= h + k) {
- var k = this.Wi.qh.length,
- n = this.Wi.qh;
- if (d < n[0].oj) return e = g = n[0], this.Fu(e, g), c;
- if (d >= n[k - 1].oj) {
- if (this.zA) return e = g = n[k - 1], this.Fu(e, g), c;
- this.zA = !0
- } else this.zA = !1;
- do
- if (this.Tq = m, e = n[this.Tq], h = e.oj, m = this.Tq + 1, m >= k && (m = 0), g = n[m], e.event && !this.wd.Lr && this.wd.oza(this.ld, e.event, e.oj, d), d == e.oj || this.zA && this.Tq == k - 1) break;
- while (d <
- e.oj || d >= g.oj);
- k = g.oj - e.oj;
- this.Tz = e.tweenEasing;
- this.Fu(e, g, !1);
- this.Ow = h;
- this.Cv = k;
- this.rp = m
- }
- c = 0 == k ? 0 : (d - h) / k;
- d = this.Tz != N.eb.rj ? this.Tz : this.gO;
- d == N.eb.zia || d == N.eb.rj || this.zA || (c = N.nc.NIa(c, d, this.Tc.zB));
- return c
- },
- Xx: function(c) {
- this.wd = c
- },
- cl: function() {
- return this.wd
- },
- wh: function() {
- this.Dq = this.Tc = null
- }
- });
- N.nU.create = function(c) {
- var d = new N.nU;
- return d && d.j(c) ? d : null
- };
- N.nMa = 32;
- N.N4 = N.N.extend({
- X8: 0,
- v$: 0,
- ctor: function(c, d) {
- this.X8 = c || 0;
- this.v$ = d || 0
- },
- Iia: function(c) {
- c.sQa = this.X8;
- c.group = this.v$
- }
- });
- N.Qka = N.N.extend({
- shape: null,
- n_: null,
- colliderFilter: null,
- PE: null,
- ctor: function(c) {
- this.shape = null;
- this.n_ = c;
- this.colliderFilter = new N.N4;
- N.dv && (this.PE = [])
- },
- iP: function() {
- return this.n_
- },
- R2a: function(c) {
- this.n_ = c
- },
- PVa: function() {
- return this.shape
- },
- KHa: function(c) {
- this.shape = c
- },
- zx: function() {
- return this.colliderFilter
- },
- js: function(c) {
- this.colliderFilter = c
- },
- ISa: function() {
- return this.PE
- }
- });
- N.JJ = N.N.extend({
- hi: null,
- ld: null,
- ei: null,
- ah: !1,
- bM: null,
- ctor: function() {
- this.hi = [];
- this.ei = this.ld = null;
- this.ah = !1;
- this.bM = null
- },
- j: function(c) {
- this.hi = [];
- c && (this.ld = c);
- this.bM = new N.N4;
- return !0
- },
- Rba: function(c) {
- var d = new N.Qka(c);
- this.hi.push(d);
- if (N.dv) {
- d = d.PE;
- c = c.Vu;
- for (var e = 0; e < c.length; e++) d.push(new xd(0, 0))
- }
- },
- Kva: function(c) {
- for (var d = 0; d < c.length; d++) this.Rba(c[d])
- },
- l1a: function(c) {
- for (var d = this.hi, e = 0; e < d.length; e++)
- if (d[e].iP() == c) {
- d.splice(e, 1);
- break
- }
- },
- kk: function() {
- this.hi = []
- },
- js: function(c) {
- this.bM =
- c;
- for (var d = 0; d < this.hi.length; d++) {
- var e = this.hi[d];
- e.js(c);
- N.uD && e.shape && e.zx().Iia(e.shape)
- }
- },
- zx: function() {
- return this.bM
- },
- setActive: function(c) {
- if (this.ah != c) {
- this.ah = c;
- c = this.ei;
- var d;
- if (c)
- if (d = null, this.ah)
- for (var e = 0; e < this.hi.length; e++) d = this.hi[e], d = d.shape, c.h3.Uva(d);
- else
- for (e = 0; e < this.hi.length; e++) d = this.hi[e], d = d.shape, c.h3.u1a(d)
- }
- },
- vza: function() {
- return this.ah
- },
- Z_: function() {
- return this.hi
- },
- bCa: r(0, 0),
- bi: function(c) {
- if (this.ah)
- for (var d = null, e = this.ei, g = this.bCa, h = 0; h < this.hi.length; h++) {
- var d =
- this.hi[h],
- k = d.iP(),
- m = null;
- e && (m = d.shape);
- for (var k = k.Vu, n = d.PE, d = 0; d < k.length; d++)
- if (g.x = k[d].x, g.y = k[d].y, g = f.lv(g, c), m && (m.zg[2 * d] = g.x, m.zg[2 * d + 1] = g.y), N.dv) {
- var p = r(0, 0);
- p.x = g.x;
- p.y = g.y;
- n[d] = p
- }
- if (m)
- for (d = 0; d < k.length; d++) n = cp.ga.normalize(cp.ga.m0a(cp.ga.sub(m.zg[(d + 1) % m.zg.length], m.zg[d]))), m.Awa[d].Xr = n, m.Awa[d].P = cp.ga.aRa(n, m.zg[d])
- }
- },
- W_: function() {
- return this.ei
- },
- cR: function(c) {
- this.ei = c;
- for (var d = 0; d < this.hi.length; d++) {
- c = this.hi[d];
- for (var e = [], g = c.iP().Vu, d = 0; d < g.length; d++) {
- var h = g[d];
- e.push(h.x);
- e.push(h.y)
- }
- e = new cp.qMa(this.ei, e, cp.U5a);
- e.o2a = !0;
- e.data = this.ld;
- this.ah && this.ei.h3.Uva(e);
- c.KHa(e);
- c.zx().Iia(e)
- }
- }
- });
- q = N.JJ.prototype;
- f.d(q, "colliderFilter", q.zx, q.js);
- f.d(q, "active", q.vza, q.setActive);
- f.d(q, "body", q.W_, q.cR);
- q = null;
- N.JJ.create = function(c) {
- var d = new N.JJ;
- return d && d.j(c) ? d : null
- };
- N.tk = N.ja.extend({
- wd: null,
- hu: null,
- batchNode: null,
- name: "",
- lva: null,
- gN: null,
- Jh: null,
- Xt: null,
- kqa: null,
- dp: null,
- version: 0,
- az: !0,
- ei: null,
- VN: null,
- B: null,
- ta: "Armature",
- ctor: function(c, d) {
- f.ja.prototype.ctor.call(this);
- this.batchNode = this.hu = this.wd = null;
- this.name = "";
- this.Xt = this.Jh = this.gN = this.lva = null;
- this.kqa = {};
- this.dp = r(0, 0);
- this.version = 0;
- this.az = !0;
- this.B = this.VN = this.ei = null;
- d && N.tk.prototype.j.call(this, c, d)
- },
- j: function(c, d) {
- f.ja.prototype.j.call(this);
- d && (this.gN = d);
- this.Cf();
- this.wd = new N.yJ;
- this.wd.j(this);
- this.Jh = {};
- this.Xt = [];
- this.VN = {};
- this.B = {
- src: f.Mc,
- ha: f.Lc
- };
- this.name = c ? c : "";
- var e = N.Dr;
- if ("" != c) {
- var g = e.mda(c);
- if (!g) return f.log("AnimationData not exist! "), !1;
- this.wd.Bga(g);
- this.hu = e = e.wx(c);
- var e = e.aH,
- h;
- for (h in e) {
- var e = this.zca(String(h)),
- k = g.Fda(g.iI[0]);
- k && (k = k.e0(e.getName())) && !(0 >= k.qh.length) && (k = k.Cda(0)) && (e.Id.copy(k), e.Fr(k.mj, !1))
- }
- this.update(0);
- this.bJa()
- } else this.name = "new_armature", this.hu = new N.UR, this.hu.name = this.name, g = new N.TR, g.name = this.name, e.rZ(this.name, this.hu), e.qZ(this.name,
- g), this.wd.Bga(g);
- f.K === f.na && this.WI(f.xg.be(f.uK));
- this.Hu(!0);
- this.Gu(!0);
- return !0
- },
- ba: function() {
- f.ja.prototype.ba.call(this);
- this.ds()
- },
- Ra: function() {
- f.ja.prototype.Ra.call(this);
- this.UC()
- },
- zca: function(c) {
- var d = this.nda(c);
- if (d) return d;
- var d = this.hu.xx(c),
- e = d.yI,
- g = null;
- "" != e ? (this.zca(e), g = N.rs.create(c), this.Nba(g, e)) : (g = N.rs.create(c), this.Nba(g, ""));
- g.Gga(d);
- g.Nd.Fr(-1, !1);
- return g
- },
- Nba: function(c, d) {
- if (c)
- if (this.Jh[c.getName()]) f.log("bone already added. It can't be added again");
- else {
- if (d) {
- var e =
- this.Jh[d];
- e ? e.Pba(c) : this.Xt.push(c)
- } else this.Xt.push(c);
- c.WQ(this);
- this.Jh[c.getName()] = c;
- this.n(c)
- } else f.log("Argument must be non-nil")
- },
- i1a: function(c, d) {
- c ? (c.WQ(null), c.Yp(d), f.Ld(this.Xt, c), delete this.Jh[c.getName()], this.removeChild(c, !0)) : f.log("bone must be added to the bone dictionary!")
- },
- nda: function(c) {
- return this.Jh[c]
- },
- gQa: function(c, d) {
- if (c) {
- var e = c.oP();
- e && (f.Ld(e.Ek, c), c.Ku(null));
- d && ((e = this.Jh[d]) ? (e.Pba(c), f.Ld(this.Xt, c)) : this.Xt.push(c))
- } else f.log("bone must be added to the bone dictionary!")
- },
- xSa: function() {
- return this.Jh
- },
- bJa: function() {
- var c = this.SZ();
- this.Ga(c);
- var d = this.dp;
- d.x = -c.x;
- d.y = -c.y;
- 0 != c.width && 0 != c.height && this.S(d.x / c.width, d.y / c.height)
- },
- update: function(c) {
- this.wd.update(c);
- for (var d = this.Xt, e = 0; e < d.length; e++) d[e].update(c);
- this.az = !1
- },
- se: null,
- VM: function() {
- if (this.Wk) {
- this.az = !0;
- var c = this.oa.x,
- d = this.oa.y,
- e = this.Qb.x,
- g = -e,
- h = this.Qb.y,
- k = -h,
- m = this.ka,
- n = this.ra;
- this.mn && (c += e, d += h);
- var p = 1,
- s = 0,
- u = 1,
- v = 0;
- if (0 !== this.bj || 0 !== this.hm) p = Math.cos(-this.Cn), s = Math.sin(-this.Cn),
- u = Math.cos(-this.Aw), v = Math.sin(-this.Aw);
- var c = c + (u * this.dp.x * this.ka + -s * this.dp.y * this.ra),
- d = d + (v * this.dp.x * this.ka + p * this.dp.y * this.ra),
- z = this.og || this.pg;
- z || 0 === e && 0 === h || (c += u * g * m + -s * k * n, d += v * g * m + p * k * n);
- c = {
- a: u * m,
- b: v * m,
- G: -s * n,
- P: p * n,
- pa: c,
- qa: d
- };
- z && (c = f.Vg({
- a: 1,
- b: Math.tan(f.sg(this.pg)),
- G: Math.tan(f.sg(this.og)),
- P: 1,
- pa: 0,
- qa: 0
- }, c), 0 !== e || 0 !== h) && (c = f.xJ(c, g, k));
- this.Aq && (c = f.Vg(c, this.Zy), this.Aq = !1);
- this.Pf = c;
- this.Wk = !1
- }
- return this.Pf
- },
- cta: function() {
- this.Pf || (this.Pf = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- });
- if (this.Wk) {
- this.az = !0;
- var c = this.Pf;
- c.pa = this.oa.x;
- c.qa = this.oa.y;
- var d = 1,
- e = 0;
- this.bj && (d = Math.cos(-this.Cn), e = Math.sin(-this.Cn));
- c.a = c.P = d;
- c.G = -e;
- c.b = e;
- var g = this.ka,
- h = this.ra,
- k = this.Qb.x,
- m = this.Qb.y,
- n = 1E-6 > g && -1E-6 < g ? 1E-6 : g,
- p = 1E-6 > h && -1E-6 < h ? 1E-6 : h;
- c.pa += d * this.dp.x * g + -e * this.dp.y * h;
- c.qa += e * this.dp.x * g + d * this.dp.y * h;
- if (this.og || this.pg) {
- var s = Math.tan(-this.og * Math.PI / 180),
- u = Math.tan(-this.pg * Math.PI / 180),
- v = m * s * n,
- z = k * u * p;
- c.a = d + -e * u;
- c.G = d * s + -e;
- c.b = e + d * u;
- c.P = e * s + d;
- c.pa += d * v + -e * z;
- c.qa += e * v + d * z
- }
- if (1 !==
- g || 1 !== h) c.a *= n, c.b *= n, c.G *= p, c.P *= p;
- c.pa += d * -k * n + -e * -m * p;
- c.qa += e * -k * n + d * -m * p;
- this.mn && (c.pa += k, c.qa += m);
- this.Aq && (this.Pf = f.Vg(this.Pf, this.Zy), this.Aq = !1);
- c.pa |= 0;
- c.qa |= 0;
- this.Wk = !1
- }
- return this.Pf
- },
- ma: function() {},
- ce: function(c) {
- this.B = c
- },
- ck: function() {
- return this.B
- },
- SZ: function() {
- for (var c = 0, d = 0, e = 0, g = 0, h = !0, g = x(0, 0, 0, 0), k = 0; k < this.i.length; k++)
- if (c = this.i[k], c instanceof N.rs) {
- var m = c.Nd.Ee();
- h ? (c = f.fo(m), d = f.ho(m), e = f.Vp(m), g = f.Wp(m), h = !1) : (c = f.fo(m) < f.fo(g) ? f.fo(m) : f.fo(g), d = f.ho(m) < f.ho(g) ?
- f.ho(m) : f.ho(g), e = f.Vp(m) > f.Vp(g) ? f.Vp(m) : f.Vp(g), g = f.Wp(m) > f.Wp(g) ? f.Wp(m) : f.Wp(g));
- g = x(c, d, e - c, g - d)
- }
- return f.Ki(g, this.se())
- },
- vSa: function(c, d) {
- for (var e = this.i.length - 1; 0 <= e; e--) {
- var g = this.i[e];
- if (g instanceof N.rs && g.Nd.cxa(c, d)) return g
- }
- return null
- },
- xBa: function() {
- return null
- },
- Ku: function(c) {
- this.gN = c;
- for (var d in this.Jh) this.Jh[d].WQ(this)
- },
- js: function(c) {
- for (var d in this.Jh) this.Jh[d].js(c)
- },
- dRa: function() {
- f.If.wj(255, 255, 255, 255);
- f.If.Ju(1);
- for (var c in this.Jh)
- for (var d = this.Jh[c].Z_(),
- e = 0; e < d.length; e++) {
- var g = d[e].PE;
- f.If.Sf(g, g.length, !0)
- }
- },
- oP: function() {
- return this.gN
- },
- cl: function() {
- return this.wd
- },
- Xx: function(c) {
- this.wd = c
- },
- wx: function() {
- return this.hu
- },
- w2a: function(c) {
- this.hu = c
- },
- getName: function() {
- return this.name
- },
- gf: function(c) {
- this.name = c
- },
- LB: function() {
- return this.batchNode
- },
- is: function(c) {
- this.batchNode = c
- },
- HWa: function() {
- return this.version
- },
- setVersion: function(c) {
- this.version = c
- },
- hSa: function() {
- return this.az
- },
- W_: function() {
- return this.ei
- },
- cR: function(c) {
- if (this.ei != c) {
- this.ei =
- c;
- this.ei.data = this;
- var d, e;
- for (c = 0; c < this.i.length; c++)
- if (d = this.i[c], d instanceof N.rs) {
- d = d.Nd.fg;
- for (var g = 0; g < d.length; g++) e = d[g], (e = e.Jj) && e.cR(this.ei)
- }
- }
- },
- QVa: function() {
- return this.ei ? this.ei.U4a : []
- }
- });
- N.tk.prototype.se = f.K == f.na ? N.tk.prototype.VM : N.tk.prototype.cta;
- q = N.tk.prototype;
- f.d(q, "parentBone", q.oP, q.Ku);
- f.d(q, "body", q.W_, q.cR);
- f.d(q, "colliderFilter", null, q.js);
- q = null;
- N.tk.create = function(c, d) {
- var e = new N.tk;
- return e && e.j(c, d) ? e : null
- };
- N.rs = N.ja.extend({
- Eq: null,
- Qc: null,
- Ul: null,
- Nd: null,
- FP: !1,
- bu: null,
- Id: null,
- name: "",
- Ek: null,
- parentBone: null,
- tm: !1,
- du: null,
- B: 0,
- IO: !1,
- tO: null,
- QU: null,
- f9: 0,
- ta: "Bone",
- ctor: function() {
- f.ja.prototype.ctor.call(this);
- this.Nd = this.Ul = this.Qc = this.Eq = null;
- this.FP = !1;
- this.Id = this.bu = null;
- this.name = "";
- this.Ek = [];
- this.parentBone = null;
- this.tm = !0;
- this.du = {
- a: 1,
- b: 0,
- G: 0,
- P: 1,
- pa: 0,
- qa: 0
- };
- this.B = new f.Um(f.Mc, f.Lc);
- this.IO = !1
- },
- wh: function() {
- vd(this.Id);
- for (var c = 0; c < this.Ek.length; c++) vd(this.Ek[c]);
- this.Ek = [];
- vd(this.bu);
- vd(this.Nd);
- vd(this.Eq);
- vd(this.Ul)
- },
- j: function(c) {
- f.ja.prototype.j.call(this);
- c && (this.name = c);
- this.Id = new N.hv;
- this.bu = new N.nU;
- this.bu.j(this);
- this.Nd = new N.GS;
- this.Nd.j(this);
- this.tO = new N.Tm;
- this.Eq = new N.Tm;
- return !0
- },
- Gga: function(c) {
- c ? (this.Eq = c, this.name = this.Eq.name, this.tl(this.Eq.Sm), this.Nd.uea(c)) : f.log("boneData must not be null")
- },
- xx: function() {
- return this.Eq
- },
- WQ: function(c) {
- (this.Qc = c) ? (this.bu.Xx(this.Qc.cl()), this.f9 = this.Qc.wx().wB, this.QU = this.Qc.oP()) : this.QU = null
- },
- xza: function() {
- return this.Qc
- },
- update: function(c) {
- var d = this.parentBone,
- e = this.Qc,
- g = this.Id,
- h = this.du,
- k = this.tO,
- m = this.QU;
- d && (this.tm = this.tm || d.tm);
- m && !this.tm && (this.tm = m.tm);
- this.tm && (this.f9 >= N.ss && (d = this.Eq, 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.oa.x, k.y = g.y + this.oa.y, k.scaleX = g.scaleX * this.ka, k.scaleY = g.scaleY * this.ra, k.skewX = g.skewX + this.og + this.bj, k.skewY = g.skewY + this.pg - this.hm, this.parentBone ? this.cca(this.parentBone) : m && this.cca(m),
- N.Hj.n1(k, h), m && (this.du = f.Vg(h, e.se())));
- N.Xg.ZIa(this, c, this.tm || e.az);
- e = this.Ek;
- for (g = 0; g < e.length; g++) e[g].update(c);
- this.tm = !1
- },
- cca: function(c) {
- var d = this.tO,
- e = c.du;
- c = c.tO;
- var g = d.x,
- h = d.y;
- d.x = g * e.a + h * e.G + c.x;
- d.y = g * e.b + h * e.P + c.y;
- d.scaleX *= c.scaleX;
- d.scaleY *= c.scaleY;
- d.skewX += c.skewX;
- d.skewY += c.skewY
- },
- I: function(c) {
- if (this.Na) {
- var d = this.Nd.PB();
- d && d.I(c)
- }
- },
- Wb: function(c) {
- this.rd = f.color(255, 255, 255);
- f.ja.prototype.Wb.call(this, c);
- this.oo()
- },
- hc: function(c) {
- this.Lg = 255;
- f.ja.prototype.hc.call(this,
- c);
- this.oo()
- },
- F: function(c) {
- f.ja.prototype.F.call(this, c);
- this.oo()
- },
- J: function(c) {
- f.ja.prototype.J.call(this, c);
- this.oo()
- },
- oo: function() {
- var c = this.Nd.PB();
- if (c && c.wb) {
- var d = this.Ab,
- e = this.Id,
- g = this.kb * e.a / 255,
- d = f.color(d.r * e.r / 255, d.g * e.g / 255, d.b * e.b / 255);
- c.J(g);
- c.F(d)
- }
- },
- jJa: function() {
- this.Qc.wx().wB >= N.ss ? this.tl(this.Id.Sm + this.Eq.Sm) : this.tl(this.Id.Sm)
- },
- Pba: function(c) {
- c ? c.parentBone ? f.log("child already added. It can't be added again") : 0 > this.Ek.indexOf(c) && (this.Ek.push(c), c.Ku(this)) : f.log("Argument must be non-nil")
- },
- kga: function(c, d) {
- for (var e = 0; e < this.Ek.length; e++)
- if (this.Ek[e] == c) {
- if (d)
- for (var g = c.Ek, h = 0; h < g.length; h++) c.kga(g[h], d);
- c.Ku(null);
- c.Nd.fR(null);
- f.Ld(this.Ek, c)
- }
- },
- Yp: function(c) {
- this.parentBone && this.parentBone.kga(this, c)
- },
- Ku: function(c) {
- this.parentBone = c
- },
- oP: function() {
- return this.parentBone
- },
- s2: function(c) {
- this.Ul != c && (null == c && this.Ul && this.Ul.Ku(null), this.Ul = c)
- },
- Fza: function() {
- return this.Ul
- },
- Gza: function() {
- return this.Ek
- },
- EBa: function() {
- return this.bu
- },
- tl: function(c) {
- this.fPa != c && f.v.prototype.tl.call(this,
- c)
- },
- SHa: function(c) {
- this.tm = c
- },
- bYa: function() {
- return this.tm
- },
- s_a: function() {
- return this.du
- },
- il: function() {
- return f.Vg(this.du, this.Qc.il())
- },
- PB: function() {
- return this.Nd.PB()
- },
- b0: function() {
- return this.Nd.b0()
- },
- tZ: function(c, d) {
- return this.Nd.tZ(c, d || 0)
- },
- lga: function(c) {
- this.Nd.lga(c)
- },
- Vva: function(c, d) {
- return this.Nd.Vva(c, d || 0)
- },
- hQa: function(c, d) {
- f.log("changeDisplayByIndex is deprecated. Use changeDisplayWithIndex instead.");
- this.Fr(c, d)
- },
- Fr: function(c, d) {
- this.Nd.Fr(c, d)
- },
- oca: function(c, d) {
- this.Nd.oca(c,
- d)
- },
- Z_: function() {
- var c = this.Nd.dn;
- return c && (c = c.Jj) ? c.Z_() : []
- },
- js: function(c) {
- for (var d = this.Nd.fg, e = 0; e < d.length; e++) {
- var g = d[e].Jj;
- g && g.js(c)
- }
- },
- zx: function() {
- var c = this.Nd.dn;
- return c && (c = c.Jj) ? c.zx() : null
- },
- $2a: function(c) {
- this.Nd = c
- },
- wTa: function() {
- return this.Nd
- },
- t3a: function(c) {
- this.FP = c
- },
- fUa: function() {
- return this.FP
- },
- FBa: function() {
- return this.Id
- },
- gf: function(c) {
- this.name = c
- },
- getName: function() {
- return this.name
- },
- ce: function(c) {
- if (this.B.src != c.src || this.B.ha != c.ha) this.B = c, this.IO = !0
- },
- ck: function() {
- return this.B
- },
- D2a: function(c) {
- this.IO = c
- },
- vXa: function() {
- return this.IO
- }
- });
- q = N.rs.prototype;
- f.d(q, "boneData", q.xx, q.Gga);
- f.d(q, "armature", q.xza, q.WQ);
- f.d(q, "childArmature", q.Fza, q.s2);
- f.d(q, "childrenBone", q.Gza);
- f.d(q, "tween", q.EBa);
- f.d(q, "tweenData", q.FBa);
- f.d(q, "colliderFilter", q.zx, q.js);
- q = null;
- N.rs.create = function(c) {
- var d = new N.rs;
- return d && d.j(c) ? d : null
- };
- N.s5 = 0;
- N.u5 = 1;
- N.t5 = 2;
- N.v5 = 3;
- N.r5 = 4;
- N.Hla = 5;
- N.jc = {
- LKa: -1,
- iv: 0,
- Zna: 1,
- aoa: 2,
- $na: 3,
- kna: 4,
- mna: 5,
- lna: 6,
- Rka: 7,
- Tka: 8,
- Ska: 9,
- nna: 10,
- pna: 11,
- ona: 12,
- qna: 13,
- sna: 14,
- rna: 15,
- Cla: 16,
- Ela: 17,
- Dla: 18,
- Nka: 19,
- Pka: 20,
- Oka: 21,
- ula: 22,
- wla: 23,
- vla: 24,
- yja: 25,
- Aja: 26,
- zja: 27,
- Dja: 28,
- Fja: 29,
- Eja: 30
- };
- N.qo = N.N.extend({
- Hr: 0,
- xm: 0,
- Ap: 0,
- RRa: null,
- time: 0,
- ctor: function() {
- this.time = this.Ap = this.xm = this.Hr = 0
- },
- Ir: function() {
- return null
- },
- wF: function(c) {
- if (null === c) return console.error("Action cannot be null!"), null;
- var d;
- switch (this.xm) {
- case N.jc.iv:
- d = c;
- break;
- case N.jc.Zna:
- d = c.sa(f.Nya());
- break;
- case N.jc.aoa:
- d = c.sa(f.Pya());
- break;
- case N.jc.$na:
- d = c.sa(f.Oya());
- break;
- case N.jc.kna:
- d = c.sa(f.Eya());
- break;
- case N.jc.mna:
- d = c.sa(f.Gya());
- break;
- case N.jc.lna:
- d = c.sa(f.Fya());
- break;
- case N.jc.Rka:
- d = c.sa(f.vya());
- break;
- case N.jc.Tka:
- d = c.sa(f.xya());
- break;
- case N.jc.Ska:
- d = c.sa(f.wya());
- break;
- case N.jc.nna:
- d = c.sa(f.Hya());
- break;
- case N.jc.pna:
- d = c.sa(f.Jya());
- break;
- case N.jc.ona:
- d = c.sa(f.Iya());
- break;
- case N.jc.qna:
- d = c.sa(f.Kya());
- break;
- case N.jc.sna:
- d = c.sa(f.Mya());
- break;
- case N.jc.rna:
- d = c.sa(f.Lya());
- break;
- case N.jc.Cla:
- d = c.sa(f.yya());
- break;
- case N.jc.Ela:
- d = c.sa(f.Aya());
- break;
- case N.jc.Dla:
- d = c.sa(f.zya());
- break;
- case N.jc.Nka:
- d = c.sa(f.sya());
- break;
- case N.jc.Pka:
- d = c.sa(f.uya());
- break;
- case N.jc.Oka:
- d = c.sa(f.tya());
- break;
- case N.jc.ula:
- d = c.sa(f.Xca());
- break;
- case N.jc.wla:
- d = c.sa(f.Zca());
- break;
- case N.jc.vla:
- d = c.sa(f.Yca());
- break;
- case N.jc.yja:
- d = c.sa(f.lya());
- break;
- case N.jc.Aja:
- d = c.sa(f.nya());
- break;
- case N.jc.zja:
- d = c.sa(f.mya());
- break;
- case N.jc.Dja:
- d = c.sa(f.pya());
- break;
- case N.jc.Fja:
- d = c.sa(f.rya());
- break;
- case N.jc.Eja:
- d = c.sa(f.qya())
- }
- return d
- },
- OI: function(c) {
- this.Upa = [];
- for (var d = 0; d < c.length; d++) this.Upa.push(c[d])
- },
- Iu: function(c) {
- this.QL = c
- }
- });
- N.bja = N.qo.extend({
- oa: null,
- ctor: function() {
- N.qo.prototype.ctor.call(this);
- this.oa = r(0, 0);
- this.Hr = N.s5
- },
- o: function(c, d) {
- void 0 === d ? (this.oa.x = c.x, this.oa.y = c.y) : (this.oa.x = c, this.oa.y = d)
- },
- Od: function() {
- return this.oa
- },
- Ir: function(c) {
- c = f.Dc.create(c, this.oa);
- c.xm = this.xm || N.jc.iv;
- return this.wF(c)
- }
- });
- N.fja = N.qo.extend({
- ka: 1,
- ra: 1,
- ctor: function() {
- N.qo.prototype.ctor.call(this);
- this.ra = this.ka = 1;
- this.Hr = N.u5
- },
- jb: function(c) {
- this.ka = c
- },
- sP: function() {
- return this.ka
- },
- tb: function(c) {
- this.ra = c
- },
- BH: function() {
- return this.ra
- },
- Ir: function(c) {
- c = f.Db.create(c, this.ka, this.ra);
- c.xm = this.xm || N.jc.iv;
- return this.wF(c)
- }
- });
- N.eja = N.qo.extend({
- LA: 0,
- ctor: function() {
- N.qo.prototype.ctor.call(this);
- this.LA = 0;
- this.Hr = N.t5
- },
- yh: function(c) {
- this.LA = c
- },
- Cx: function() {
- return this.LA
- },
- Ir: function(c) {
- c = f.pv.create(c, this.LA);
- c.xm = this.xm || N.jc.iv;
- return this.wF(c)
- }
- });
- N.Yia = N.qo.extend({
- Ib: 255,
- ctor: function() {
- N.qo.prototype.ctor.call(this);
- this.Ib = 255;
- this.Hr = N.r5
- },
- J: function(c) {
- this.Ib = c
- },
- vb: function() {
- return this.Ib
- },
- Ir: function(c) {
- c = f.Xc.create(c, this.Ib);
- c.xm = this.xm || N.jc.iv;
- return this.wF(c)
- }
- });
- N.gja = N.qo.extend({
- Ea: null,
- ctor: function() {
- N.qo.prototype.ctor.call(this);
- this.Ea = f.color(255, 255, 255, 255);
- this.Hr = N.v5
- },
- F: function(c) {
- var d = this.Ea;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b
- },
- $a: function() {
- var c = this.Ea;
- return f.color(c.r, c.g, c.b, c.a)
- },
- Ir: function(c) {
- c = f.Vy.create(c, this.Ea.r, this.Ea.g, this.Ea.b);
- c.xm = this.xm || N.jc.iv;
- return this.wF(c)
- }
- });
- N.actionManager = {
- xq: {},
- Ip: function(c, d, e) {
- c = c.substr(c.lastIndexOf("/") + 1, c.length);
- d = d.actionlist;
- for (var g = [], h = 0; h < d.length; h++) {
- var k = new N.dja;
- k.Ip(d[h], e);
- g.push(k)
- }
- this.xq[c] = g
- },
- U_: function(c, d) {
- var e = this.xq[c];
- if (!e) return null;
- for (var g = 0; g < e.length; g++) {
- var h = e[g];
- if (d == h.getName()) return h
- }
- return null
- },
- aFa: function(c, d, e) {
- (c = this.U_(c, d)) && c.play(e)
- },
- FFa: function() {
- this.xq = {}
- },
- clear: function() {
- this.xq = {}
- }
- };
- N.cja = N.N.extend({
- Xqa: 0,
- Zqa: 0,
- Xk: 0,
- zq: 0,
- vqa: null,
- Yy: null,
- Qe: null,
- Ri: null,
- Pv: 0,
- ctor: function() {
- this.Zqa = this.Xqa = 0;
- this.Xk = 0.1;
- this.zq = 0;
- this.Qe = this.Yy = this.vqa = null;
- this.Ri = [];
- this.Pv = N.Hla;
- for (var c = 0; c < this.Pv; c++) this.Ri.push([])
- },
- Ip: function(c, d) {
- this.Vx(c.ActionTag);
- for (var e = c.actionframelist, g = 0; g < e.length; g++) {
- for (var h = e[g], k = h.tweenType, m = h.tweenParameter, n = [], p = 0; p < m; p++) n.push(h.tweenParameter[p]);
- if (void 0 !== h.positionx) {
- var p = h.positionx,
- s = h.positiony,
- m = new N.bja;
- m.Iu(k);
- m.OI(n);
- m.o(p,
- s);
- p = this.Ri[N.s5];
- p.push(m)
- }
- void 0 !== h.scalex && (p = h.scalex, s = h.scaley, m = new N.fja, m.Iu(k), m.OI(n), m.jb(p), m.tb(s), p = this.Ri[N.u5], p.push(m));
- void 0 !== h.rotation && (p = h.rotation, m = new N.eja, m.Iu(k), m.OI(n), m.yh(p), p = this.Ri[N.t5], p.push(m));
- void 0 !== h.opacity && (p = h.opacity, m = new N.Yia, m.Iu(k), m.OI(n), m.J(p), p = this.Ri[N.r5], p.push(m));
- void 0 !== h.colorr && (p = h.colorr, s = h.colorg, h = h.colorb, m = new N.gja, m.Iu(k), m.OI(n), m.F(f.color(p, s, h)), p = this.Ri[N.v5], p.push(m))
- }
- this.fCa(d)
- },
- fCa: function(c) {
- c instanceof
- y && (c = Dc(c, this.zq)) && this.ul(c)
- },
- eJ: function(c) {
- this.Xk = c;
- this.CFa()
- },
- HBa: function() {
- return this.Xk
- },
- Vx: function(c) {
- this.zq = c
- },
- lda: function() {
- return this.zq
- },
- ul: function(c) {
- this.rA = c
- },
- JAa: function() {
- return this.rA
- },
- V_: function() {
- return this.rA instanceof f.v || this.rA instanceof y ? this.rA : null
- },
- iXa: function(c, d) {
- null != d && this.Ri[d.Hr].splice(c, 0, d)
- },
- tPa: function(c) {
- c && this.Ri[c.Hr].push(c)
- },
- JQa: function(c) {
- null != c && f.Ld(this.Ri[c.Hr], c)
- },
- nQa: function() {
- for (var c = 0; c < this.Pv; c++) this.Ri[c] = []
- },
- CFa: function() {
- if (null ==
- this.rA) return null;
- for (var c = [], d = 0; d < this.Pv; d++) {
- var e = this.Ri[d];
- if (!(0 >= e.length)) {
- for (var g = [], h = 0; h < e.length; h++) {
- var k = e[h];
- 0 != h && (k = k.Ir((k.Ap - e[h - 1].Ap) * this.Xk)) && g.push(k)
- }
- g && (e = f.X.create(g), null != e && c.push(e))
- }
- }
- this.Qe = null;
- return this.Yy = f.fe.create(c)
- },
- $Ea: function(c) {
- null != this.rA && null != this.Yy && (this.Qe = c ? f.X.create(this.Yy, c) : f.X.create(this.Yy), this.V())
- },
- V: function() {
- var c = this.V_();
- null != c && null != this.Qe && c.V(this.Qe)
- },
- hJ: function() {
- var c = this.V_();
- null != c && null != this.Qe && (this.Qe.gk() ||
- c.hJ(this.Qe))
- },
- Yza: function() {
- for (var c = 99999, d = !1, e = 0; e < this.Pv; e++) {
- var g = this.Ri[e];
- 0 >= g.length || (d = !0, g = g[0].Ap, c = c > g ? g : c)
- }
- d || (c = 0);
- return c
- },
- pAa: function() {
- for (var c = -1, d = !1, e = 0; e < this.Pv; e++) {
- var g = this.Ri[e];
- 0 >= g.length || (d = !0, g = g[g.length - 1].Ap, c = c < g ? g : c)
- }
- d || (c = 0);
- return c
- },
- TIa: function(c) {
- for (var d = !1, e = this.Xk, g = 0; g < this.Pv; g++) {
- var h = this.Ri[g];
- if (null != h)
- for (var k = 0; k < h.length; k++) {
- var m = h[k];
- if (m.Ap * e == c) {
- this.YO(1, 1, m);
- d = !0;
- break
- } else if (m.Ap * e > c) {
- 0 == k ? (this.YO(1, 1, m), d = !1) : (d = h[k -
- 1], h = (m.Ap - d.Ap) * e, k = c - d.Ap * e, this.YO(h, 1, d), this.YO(h, k / h, m), d = !0);
- break
- }
- }
- }
- return d
- },
- YO: function(c, d, e) {
- c = e.Ir(c);
- e = this.V_();
- null != c && null != e && (c.R(e), c.update(d))
- },
- OCa: function() {
- return null == this.Qe ? !0 : this.Qe.gk()
- }
- });
- N.dja = N.N.extend({
- Ak: null,
- nd: "",
- Tj: !1,
- tX: !1,
- oaa: !1,
- Xk: 0,
- yL: 0,
- nh: null,
- cW: 0,
- ctor: function() {
- this.Ak = [];
- this.nd = "";
- this.oaa = this.tX = this.Tj = !1;
- this.Xk = 0.1;
- this.cW = this.yL = 0;
- this.nh = new f.Uy;
- f.Q.Dm().UQ(this.nh, 0, !1)
- },
- gf: function(c) {
- this.nd = c
- },
- getName: function() {
- return this.nd
- },
- mR: function(c) {
- this.Tj = c
- },
- Eda: function() {
- return this.Tj
- },
- eJ: function(c) {
- this.Xk = c;
- c = this.Ak.length;
- for (var d = 0; d < c; d++) this.Ak[d].eJ(this.Xk)
- },
- HBa: function() {
- return this.Xk
- },
- kTa: function() {
- return this.yL
- },
- T2a: function(c) {
- this.yL =
- c
- },
- vWa: function() {
- return this.cW
- },
- Lea: function() {
- return this.oaa
- },
- Ip: function(c, d) {
- this.gf(c.name);
- this.mR(c.loop);
- this.eJ(c.unittime);
- for (var e = c.actionnodelist, g = 0, h = 0; h < e.length; h++) {
- var k = new N.cja;
- k.Ip(e[h], d);
- k.eJ(this.Xk);
- this.Ak.push(k);
- k = k.pAa() - k.Yza();
- k > g && (g = k)
- }
- this.cW = g * this.Xk
- },
- jPa: function(c) {
- c && (this.Ak.push(c), c.eJ(this.Xk))
- },
- U0a: function(c) {
- null != c && f.Ld(this.Ak, c)
- },
- play: function(c) {
- this.stop();
- this.gJa(0);
- for (var d = this.Ak.length, e = 0; e < d; e++) this.Ak[e].$Ea(c);
- this.Tj && this.nh.g2(this,
- this.dia, 0, f.mv, 0, !1)
- },
- pause: function() {
- this.tX = !0
- },
- stop: function() {
- for (var c = 0; c < this.Ak.length; c++) this.Ak[c].hJ();
- this.nh.A3(this, this.dia);
- this.tX = !1
- },
- gJa: function(c) {
- this.yL = c;
- for (var d = 0; d < this.Ak.length; d++) this.Ak[d].TIa(c)
- },
- dia: function() {
- if (this.Tj) {
- for (var c = !0, d = this.Ak, e = 0; e < d.length; e++)
- if (!1 == d[e].OCa()) {
- c = !1;
- break
- }
- c && this.play()
- }
- }
- });
- N.vS = N.Dh.extend({
- Ui: null,
- Ja: "",
- ctor: function() {
- f.Dh.prototype.ctor.call(this);
- this.Ui = {};
- this.Ja = "";
- this.nd = "CCComAttribute"
- },
- j: function() {
- this.Ui = {};
- return !0
- },
- u3a: function(c, d) {
- c ? this.Ui[c] = d : f.log("Argument must be non-nil")
- },
- a3a: function(c, d) {
- c ? this.Ui[c] = d : f.log("Argument must be non-nil")
- },
- f3a: function(c, d) {
- c ? this.Ui[c] = d : f.log("Argument must be non-nil")
- },
- E2a: function(c, d) {
- c ? this.Ui[c] = d : f.log("Argument must be non-nil")
- },
- wa: function(c, d) {
- c ? this.Ui[c] = d : f.log("Argument must be non-nil")
- },
- ul: function(c,
- d) {
- c ? this.Ui[c] = d : f.log("Argument must be non-nil")
- },
- hUa: function(c) {
- return parseInt(this.Ui[c] || 0)
- },
- DTa: function(c) {
- return parseFloat(this.Ui[c] || 0)
- },
- VTa: function(c) {
- return parseFloat(this.Ui[c] || 0)
- },
- ySa: function(c) {
- return Boolean(this.Ui[c] || !1)
- },
- qc: function(c) {
- return this.Ui[c] || ""
- },
- JAa: function(c) {
- return this.Ui[c]
- },
- parse: function(c) {
- this.Ui = f.L.zd(c)
- }
- });
- N.vS.create = function() {
- var c = new N.vS;
- return c && c.j() ? c : null
- };
- N.LJ = N.Dh.extend({
- Ja: "",
- Tj: !1,
- ctor: function() {
- f.Dh.prototype.ctor.call(this);
- this.nd = "Audio"
- },
- j: function() {
- return !0
- },
- ba: function() {},
- Ra: function() {
- this.tIa(!0);
- this.iJ()
- },
- end: function() {
- f.pe.end()
- },
- kFa: function(c) {
- f.L.load(c)
- },
- bFa: function(c, d) {
- c ? f.pe.Qfa(c, d) : f.pe.Qfa(this.Ja, this.Tj)
- },
- tIa: function(c) {
- f.pe.pia(c)
- },
- j0a: function() {
- f.pe.G1()
- },
- J1a: function() {
- f.pe.vga()
- },
- N1a: function() {
- f.pe.dGa()
- },
- X5a: function() {
- return !1
- },
- tXa: function() {
- return f.pe.VP()
- },
- sSa: function() {
- return f.pe.GAa()
- },
- B2a: function(c) {
- f.pe.kHa(c)
- },
- xda: function() {
- return f.pe.xda()
- },
- Uga: function(c) {
- f.pe.Uga(c)
- },
- zI: function(c, d) {
- return c ? f.pe.zI(c, d) : f.pe.zI(this.Ja, this.Tj)
- },
- F1: function(c) {
- f.pe.F1(c)
- },
- E1: function() {
- f.pe.E1()
- },
- c2: function(c) {
- f.pe.c2(c)
- },
- b2: function() {
- f.pe.b2()
- },
- k3: function(c) {
- f.pe.k3(c)
- },
- iJ: function() {
- f.pe.iJ()
- },
- lFa: function(c) {
- this.$ga(c);
- this.mR(!1)
- },
- z3: function(c) {
- f.pe.z3(c)
- },
- $ga: function(c) {
- this.Ja = c
- },
- mR: function(c) {
- this.Tj = c
- },
- getFile: function() {
- return this.Ja
- },
- JXa: function() {
- return this.Tj
- }
- });
- N.LJ.create = function() {
- var c = new N.LJ;
- return c && c.j() ? c : null
- };
- N.O4 = N.Dh.extend({
- ctor: function() {
- f.Dh.prototype.ctor.call(this);
- this.nd = "ComController"
- },
- j: function() {
- return !0
- },
- ba: function() {
- null != this.Td && this.Td.ds()
- },
- Ra: function() {},
- update: function() {},
- isEnabled: function() {
- return this.$c
- },
- Lb: function() {
- this.$c = b
- }
- });
- N.O4.create = function() {
- var c = new N.O4;
- return c && c.j() ? c : null
- };
- N.cv = N.Dh.extend({
- Ht: null,
- ctor: function(c, d) {
- f.Dh.prototype.ctor.call(this);
- this.Ht = c;
- this.nd = d
- },
- ba: function() {
- this.Td && this.Td.n(this.Ht)
- },
- Ra: function() {
- this.Td && (this.Td.removeChild(this.Ht, !0), this.Ht = null)
- },
- JUa: function() {
- return this.Ht
- },
- I3a: function(c) {
- this.Ht = c
- }
- });
- N.cv.create = function(c, d) {
- var e = new N.cv(c, d);
- return e && e.j() ? e : null
- };
- N.jI = {
- hO: {},
- Pxa: function() {
- this.dA = null
- },
- fH: function(c) {
- var d = null;
- (c = this.hO[c]) && (d = new c.lt);
- return d
- },
- gga: function(c) {
- this.hO[c.ta] = c
- },
- BQa: function(c) {
- var d = null;
- "Panel" === c ? c = "Layout" : "TextArea" === c ? c = "Label" : "TextButton" === c && (c = "Button");
- (c = this.hO[c]) && c.lt && (d = c.lt);
- return d
- },
- lxa: function(c) {
- var d = null;
- (c = this.hO[c]) && c.lt && (d = c.lt);
- return d
- }
- };
- N.r7 = N.N.extend({
- ta: "",
- lt: null,
- ctor: function(c, d) {
- d ? (this.ta = c, this.lt = d) : (this.ta = c.ta, this.lt = c.lt);
- N.jI.gga(this)
- }
- });
- N.n2a = function(c) {
- c = N.t3.get(c);
- if (null != c)
- for (var d = 0; d < c.length; d++);
- };
- N.P0a = function(c, d) {
- new N.r7(c, d)
- };
- N.t3 = {
- gn: {},
- uba: {},
- dr: [],
- Pxa: function() {
- this.kk();
- this.dA = null
- },
- parse: function(c) {
- for (var d = 0; d < c.length; ++d) {
- var e = c[d],
- g = N.lU.create();
- g.CC(e);
- for (var e = g.LG, h = 0; h < e.length; h++) this.add(e[h], g);
- this.uba[g.ni] = g
- }
- },
- get: function(c) {
- return this.gn[c]
- },
- DBa: function(c) {
- return this.uba[c]
- },
- add: function(c, d) {
- var e = this.gn[c];
- e || (e = []); - 1 == e.indexOf(d) && (e.push(d), this.gn[c] = e)
- },
- kk: function() {
- for (var c in this.gn)
- for (var d = this.gn[c], e = 0; e < d.length; e++) d[e].kk();
- this.gn = {}
- },
- remove: function(c, d) {
- if (d) return this.Wta(c,
- d);
- var e = !1,
- g = this.gn[c];
- if (g) {
- for (e = 0; e < g.length; e++) {
- var h = g[e];
- h && h.kk()
- }
- delete this.gn[c];
- e = !0
- }
- return e
- },
- Wta: function(c, d) {
- var e = !1;
- do {
- var g = this.gn[c];
- if (g) {
- for (e = 0; e < g.length; e++) {
- var h = g[e];
- if (h && h == d) {
- h.kk();
- g.splice(e, 1);
- break
- }
- }
- e = !0
- }
- } while (0);
- return e
- },
- B1a: function(c) {
- c = this.DBa(c);
- if (!c) return !1;
- for (var d = c.LG, e = 0; e < d.length; e++) this.remove(d[e], c);
- return !0
- },
- Jea: function() {
- return !this.gn || 0 >= this.gn.length
- },
- lPa: function(c, d, e) {
- if (null != c && null != e && null != d) {
- for (var g, h = !1, k = 0; k < this.dr.length; k++)(g =
- this.dr[k]) && g[0] == c && (g.Lba(d, e), h = !0);
- h || (g = new N.ija, c.cl().jHa(g.owa, g), g.Lba(d, e), this.dr.push([c, g]))
- }
- },
- g1a: function(c, d, e) {
- if (null != c && null != d && null != e)
- for (var g, h = 0; h < this.dr.length; h++)(g = this.dr[h]) && g[0] == c && g.LFa(e, d)
- },
- e1a: function(c) {
- if (null != c)
- for (var d, e = 0; e < this.dr.length; e++)
- if ((d = this.dr[e]) && d[0] == c) {
- this.dr.splice(e, 1);
- break
- }
- },
- W0a: function() {
- this.dr = []
- },
- version: function() {
- return "1.2.0.0"
- }
- };
- N.ija = N.N.extend({
- bw: null,
- ctor: function() {
- this.bw = []
- },
- owa: function(c, d, e) {
- for (var g, h, k = 0; k < this.bw.length; k++) g = this.bw[k], h = g[0], (g = g[1]) && g.call(h, c, d, e)
- },
- Lba: function(c, d) {
- this.bw.push([d, c])
- },
- LFa: function(c, d) {
- for (var e, g = 0; g < this.bw.length; g++) e = this.bw[g], e[0] == d && this.bw.splice(g, 1)
- }
- });
- N.tKa = N.N.extend({
- ctor: function() {},
- j: function() {
- return !0
- },
- w_: function() {
- return !0
- },
- CC: function() {},
- kk: function() {}
- });
- N.sKa = N.N.extend({
- ctor: function() {},
- j: function() {
- return !0
- },
- Yxa: function() {},
- CC: function() {},
- kk: function() {}
- });
- N.lU = N.N.extend({
- Ys: null,
- wv: null,
- ni: 0,
- UL: !0,
- LG: null,
- ctor: function() {
- this.ni = 0;
- this.UL = !0
- },
- j: function() {
- this.Ys = [];
- this.wv = [];
- this.LG = [];
- return !0
- },
- w_: function() {
- if (!this.UL || 0 == this.Ys.length) return !0;
- for (var c = !0, d = null, e = 0; e < this.Ys.length; e++)(d = this.Ys[e]) && d.w_ && (c = c && d.w_());
- return c
- },
- Yxa: function() {
- if (this.UL && 0 != this.wv.length)
- for (var c = 0; c < this.wv.length; c++);
- },
- kk: function() {
- for (var c = null, d = 0; d < this.Ys.length; d++)(c = this.Ys[d]) && c.kk();
- this.Ys = [];
- for (d = 0; d < this.wv.length; d++)(c = this.wv[d]) &&
- c.kk();
- this.wv = []
- },
- CC: function(c) {
- this.ni = c.id || 0;
- for (var d = c.conditions || [], e = 0; e < d.length; e++) {
- var g = d[e],
- h = g.classname,
- k = N.jI.fH(h);
- k ? (k.CC(g), k.j(), this.Ys.push(k)) : f.log("class named classname(" + h + ") can not implement!")
- }
- d = c.actions || [];
- for (e = 0; e < d.length; e++) g = d[e], h = g.classname, (k = N.jI.fH(h)) ? (k.CC(g), k.j(), this.wv.push(k)) : f.log("class named classname(" + h + ") can not implement!");
- c = c.events || [];
- for (e = 0; e < c.length; e++) g = c[e], g = g.id, 0 > g || this.LG.push(g)
- },
- fAa: function() {
- return this.ni
- },
- b3a: function(c) {
- this.UL =
- c
- },
- QTa: function() {
- return this.LG
- }
- });
- N.lU.create = function() {
- var c = new N.lU;
- return c.j() ? c : null
- };
- N.rk = {
- Ja: "",
- faa: !1,
- eW: {},
- WW: {},
- XW: {},
- LBa: function(c) {
- if (!c) return 0;
- var d = c.length;
- if (7 > d) return 0;
- var e = c.indexOf("."),
- g = c.substr(0, e);
- c = c.substr(e + 1, d - 1);
- var e = c.indexOf("."),
- h = c.substr(0, e);
- c = c.substr(e + 1, d - 1);
- var e = c.indexOf("."),
- k = c.substr(0, e);
- c = c.substr(e + 1, d - 1);
- e = c.indexOf(".");
- return 1E3 * parseInt(g) + 100 * parseInt(h) + 10 * parseInt(k) + parseInt(-1 == e ? c : c.substr(0, e))
- },
- LR: function(c, d) {
- this.eW[c] = d
- },
- STa: function(c) {
- return this.eW[c]
- },
- nJa: function(c) {
- var d = f.L.zd(c);
- if (!d) throw "Please load the resource first : " +
- c;
- var e = f.path.dirname(c);
- this.Ja = "" == e ? e : e + "/";
- var e = d.version,
- g = this.LBa(e);
- c = (e ? 250 > g ? new N.o8 : new N.Kpa : new N.o8).o_(d, this.Ja, c);
- if (!e || 250 > g) this.faa = !0;
- return c
- },
- clear: function() {
- this.Ja = "";
- this.faa = !1;
- this.eW = {}
- },
- Q0a: function(c, d, e, g) {
- d = N.jI;
- var h = new N.r7(c, e);
- d.gga(h);
- e && (this.WW[c] = e);
- g && (this.XW[c] = g)
- },
- TTa: function() {
- return this.Ja
- },
- jVa: function() {
- return this.WW
- },
- iVa: function() {
- return this.XW
- }
- };
- N.n8 = N.N.extend({
- Ja: "",
- o_: function() {},
- aD: function() {}
- });
- N.o8 = N.n8.extend({
- o_: function(c, d, e) {
- this.Ja = "" == d ? d : f.path.join(d, "/");
- for (var g = c.textures, h = 0; h < g.length; h++) {
- var k = d,
- k = k + g[h];
- f.Je.vp(k)
- }
- d = c.designWidth;
- g = c.designHeight;
- 0 >= d || 0 >= g ? (f.log("Read design size error!"), N.rk.LR(e, f.Q.Y)) : N.rk.LR(e, t(d, g));
- h = this.aD(c.widgetTree);
- k = h.e();
- 0 == k.width && 0 == k.height && h.Df(t(d, g));
- N.actionManager.Ip(e, c.animation, h);
- return h
- },
- aD: function(c) {
- var d = null,
- e = c.classname,
- g = c.options;
- "Button" == e ? (d = Ec.create(), this.UI(d, g)) : "CheckBox" == e ? (d = Fc.create(), this.Aha(d,
- g)) : "Label" == e ? (d = Jc.create(), this.G2(d, g)) : "LabelAtlas" == e ? (d = Lc.create(), this.Cha(d, g)) : "LoadingBar" == e ? (d = Hc.create(), this.Eha(d, g)) : "ScrollView" == e ? (d = F.create(), this.H2(d, g)) : "TextArea" == e ? (d = Jc.create(), this.G2(d, g)) : "TextButton" == e ? (d = Ec.create(), this.UI(d, g)) : "TextField" == e ? (d = Pc.create(), this.Gha(d, g)) : "ImageView" == e ? (d = Gc.create(), this.Bha(d, g)) : "Panel" == e ? (d = D.create(), this.Mu(d, g)) : "Slider" == e ? (d = Ic.create(), this.Fha(d, g)) : "LabelBMFont" == e ? (d = Mc.create(), this.Dha(d, g)) : "DragPanel" == e &&
- (d = F.create(), this.H2(d, g));
- c = c.children;
- for (e = 0; e < c.length; e++)(g = this.aD(c[e])) && d.n(g);
- return d
- },
- Ie: function(c, d) {
- void 0 !== d.ignoreSize && c.df(d.ignoreSize);
- c.Df(t(d.width, d.height));
- c.Nm(d.tag);
- c.Vx(d.actiontag);
- c.Om(d.touchAble);
- var e = d.name;
- c.gf(e ? e : "default");
- c.o(r(d.x, d.y));
- void 0 !== d.scaleX && c.jb(d.scaleX);
- void 0 !== d.scaleY && c.tb(d.scaleY);
- void 0 !== d.rotation && c.yh(d.rotation);
- void 0 !== d.visible && c.za(d.visible);
- c.tl(d.ZOrder)
- },
- F2: function() {},
- zha: function() {},
- Bd: function(c, d) {
- void 0 !== d.opacity &&
- c.J(d.opacity);
- c.F(f.color(void 0 !== d.colorR ? d.colorR : 255, void 0 !== d.colorG ? d.colorG : 255, void 0 !== d.colorB ? d.colorB : 255));
- c.S(void 0 !== d.anchorPointX ? d.anchorPointX : c.Cr == y.sE ? 0.5 : 0, void 0 !== d.anchorPointY ? d.anchorPointY : c.Cr == y.sE ? 0.5 : 0);
- var e = d.flipY;
- c.Pd(d.flipX);
- c.Yf(e)
- },
- UI: function(c, d) {
- this.Ie(c, d);
- var e = d.scale9Enable;
- c.zh(e);
- var g = d.normal,
- h = d.pressed,
- k = d.disabled,
- m = g ? this.Ja + g : null,
- n = h ? this.Ja + h : null,
- p = k ? this.Ja + k : null,
- s = d.useMergedTexture;
- e ? (s ? c.Ur(g, h, k, y.cb) : c.Ur(m, n, p), void 0 !== d.scale9Width &&
- void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height))) : s ? c.Ur(g, h, k, y.cb) : c.Ur(m, n, p);
- void 0 !== d.text && (e = d.text || "") && c.jy(e);
- void 0 !== d.fontSize && c.iy(d.fontSize);
- void 0 !== d.fontName && c.hy(d.fontName);
- e = f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255);
- c.gy(e);
- this.Bd(c, d)
- },
- Aha: function(c, d) {
- this.Ie(c, d);
- var e = d.backGroundBox,
- g = d.backGroundBoxSelected,
- h = d.frontCross,
- k = d.backGroundBoxDisabled,
- m = d.frontCrossDisabled,
- n = this.Ja,
- p = e ? n + e : null,
- s = g ? n + g : null,
- u = h ? n + h : null,
- v = k ? n + k : null,
- n = m ? n + m : null;
- d.useMergedTexture ? c.Ur(e, g, h, k, m, y.cb) : c.Ur(p, s, u, v, n);
- c.fy(d.selectedState || !1);
- this.Bd(c, d)
- },
- Bha: function(c, d) {
- this.Ie(c, d);
- var e = d.fileName,
- g = d.scale9Enable || !1;
- c.zh(g);
- var h = this.Ja,
- k = null;
- e && (k = h + e);
- h = d.useMergedTexture;
- g ? (h ? c.Wf(e, y.cb) : c.Wf(k), void 0 !== d.scale9Width && void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))) : h ? c.Wf(e, y.cb) : c.Wf(k);
- this.Bd(c, d)
- },
- G2: function(c, d) {
- this.Ie(c, d);
- c.BR(d.touchScaleEnable);
- c.wa(d.text);
- void 0 !== d.fontSize && c.Qd(d.fontSize);
- void 0 !== d.fontName && c.de(d.fontName);
- void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight));
- d.hAlignment && c.ns(d.hAlignment);
- d.vAlignment && c.os(d.vAlignment);
- this.Bd(c, d)
- },
- Cha: function(c, d) {
- this.Ie(c, d);
- var e = void 0 !== d.charMapFile,
- g = void 0 !== d.itemWidth,
- h = void 0 !== d.itemHeight,
- k = void 0 !== d.startCharMap;
- void 0 !== d.stringValue && e && g && h && k && d.charMapFile &&
- c.setProperty(d.stringValue, this.Ja + d.charMapFile, d.itemWidth, d.itemHeight, d.startCharMap);
- this.Bd(c, d)
- },
- Mu: function(c, d) {
- this.Ie(c, d);
- c instanceof F || c instanceof H || c.Zp(d.clipAble);
- var e = d.backGroundScale9Enable;
- c.$Q(e);
- var g = d.bgColorR,
- h = d.bgColorG,
- k = d.bgColorB,
- m = d.bgStartColorR,
- n = d.bgStartColorG,
- p = d.bgStartColorB,
- s = d.bgEndColorR,
- u = d.bgEndColorG,
- v = d.bgEndColorB;
- c.ZQ(r(d.vectorX, d.vectorY));
- var z = d.bgColorOpacity;
- c.YQ(d.colorType);
- c.Du(f.color(m, n, p), f.color(s, u, v));
- c.Du(f.color(g, h, k));
- c.XQ(z);
- h = (g = d.backGroundImage) ? this.Ja + g : null;
- d.useMergedTexture ? c.Eu(g, y.cb) : c.Eu(h);
- e && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
- this.Bd(c, d)
- },
- H2: function(c, d) {
- this.Mu(c, d);
- c.ay(t(d.innerWidth, d.innerHeight));
- c.xh(d.direction);
- c.dR(d.bounceEnable);
- this.Bd(c, d)
- },
- Z3a: function(c, d) {
- this.Ie(c, d);
- (c instanceof F || c instanceof H) && c.Zp(d.clipAble);
- this.Bd(c, d)
- },
- Fha: function(c, d) {
- this.Ie(c, d);
- var e = d.barTextureScale9Enable || !1;
- c.zh(e);
- var g = d.length,
- h = d.useMergedTexture;
- if (void 0 !==
- d.barFileName)
- if (e) {
- var k = (e = d.barFileName) ? this.Ja + e : null;
- h ? c.ik(e, y.cb) : c.ik(k);
- c.Df(t(g, c.e().height))
- } else k = (e = d.barFileName) ? this.Ja + e : null, h ? c.ik(e, y.cb) : c.ik(k);
- var g = d.ballNormal,
- e = d.ballPressed,
- k = d.ballDisabled,
- m = g ? this.Ja + g : null,
- n = e ? this.Ja + e : null,
- p = k ? this.Ja + k : null;
- h ? c.jfa(g, e, k, y.cb) : c.jfa(m, n, p);
- c.Fi(d.percent);
- k = (e = d.progressBarFileName) ? this.Ja + e : null;
- h ? c.wu(e, y.cb) : c.wu(k);
- this.Bd(c, d)
- },
- BHa: function(c, d) {
- this.Ie(c, d);
- c.wa(d.text);
- void 0 !== d.fontSize && c.Qd(d.fontSize);
- c.F(f.color(d.colorR,
- d.colorG, d.colorB));
- c.de(d.fontName);
- void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight));
- d.hAlignment && c.ns(d.hAlignment);
- d.vAlignment && c.os(d.vAlignment);
- this.Bd(c, d)
- },
- CHa: function(c, d) {
- this.UI(c, d);
- c.jy(d.text || "");
- c.gy(f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255));
- void 0 !== d.fontSize && c.iy(d.fontSize);
- void 0 !== d.fontName && c.hy(d.fontName);
- this.Bd(c, d)
- },
- Gha: function(c, d) {
- this.Ie(c, d);
- void 0 !==
- d.placeHolder && c.Gi(d.placeHolder);
- c.wa(d.text);
- void 0 !== d.fontSize && c.Qd(d.fontSize);
- void 0 !== d.fontName && c.de(d.fontName);
- void 0 !== d.touchSizeWidth && void 0 !== d.touchSizeHeight && c.Z2(t(d.touchSizeWidth, d.touchSizeHeight));
- var e = d.maxLengthEnable;
- c.cy(e);
- e && c.ks(d.maxLength);
- e = d.passwordEnable;
- c.dy(e);
- e && c.IC(d.passwordStyleText);
- this.Bd(c, d)
- },
- Eha: function(c, d) {
- this.Ie(c, d);
- var e = d.texture,
- g = e ? this.Ja + e : null;
- d.useMergedTexture ? c.Wf(e, y.cb) : c.Wf(g);
- c.xh(d.direction);
- c.Fi(d.percent);
- this.Bd(c, d)
- },
- zHa: function(c,
- d) {
- this.Mu(c, d)
- },
- AHa: function(c, d) {
- this.Mu(c, d)
- },
- Dha: function(c, d) {
- this.Ie(c, d);
- c.GC(this.Ja + d.fileName);
- c.wa(d.text);
- this.Bd(c, d)
- }
- });
- N.Kpa = N.n8.extend({
- o_: function(c, d, e) {
- this.Ja = "" == d ? d : f.path.join(d, "/");
- for (var g = c.textures, h = 0; h < g.length; h++) {
- var k = d,
- k = k + g[h];
- f.Je.vp(k)
- }
- d = c.designWidth;
- g = c.designHeight;
- 0 >= d || 0 >= g ? (f.log("Read design size error!"), N.rk.LR(e, f.Q.Y)) : N.rk.LR(e, t(d, g));
- h = this.aD(c.widgetTree);
- k = h.e();
- 0 == k.width && 0 == k.height && h.Df(t(d, g));
- N.actionManager.Ip(e, c.animation, h);
- return h
- },
- F2: function(c, d, e) {
- c.Cd(d, e)
- },
- zha: function(c, d, e) {
- var g = N.rk,
- h = g.WW[c],
- g = g.XW[c];
- h && g && h.l2a.call(this, c, d, e)
- },
- aD: function(c) {
- var d =
- null,
- e = c.classname,
- g = c.options;
- "Button" == e ? d = Ec.create() : "CheckBox" == e ? d = Fc.create() : "Label" == e ? d = Jc.create() : "LabelAtlas" == e ? d = Lc.create() : "LoadingBar" == e ? d = Hc.create() : "ScrollView" == e ? d = F.create() : "TextArea" == e ? d = Jc.create() : "TextButton" == e ? d = Ec.create() : "TextField" == e ? d = Pc.create() : "ImageView" == e ? d = Gc.create() : "Panel" == e ? d = D.create() : "Slider" == e ? d = Ic.create() : "LabelBMFont" == e ? d = Mc.create() : "DragPanel" == e ? d = F.create() : "ListView" == e ? d = H.create() : "PageView" == e ? d = fd.create() : "Widget" == e && (d = y.create());
- var h = e;
- switch (h) {
- case "Panel":
- h = "Layout";
- break;
- case "TextArea":
- h = "Label";
- break;
- case "TextButton":
- h = "Button"
- }
- if (h = N.jI.lxa(h + "Reader")) this.F2(h, d, g);
- else {
- var k;
- d instanceof Ec ? k = N.e4 : d instanceof Fc ? k = N.M4 : d instanceof Gc ? k = N.F5 : d instanceof Lc ? k = N.U5 : d instanceof Nc ? k = N.V5 : d instanceof Jc ? k = N.W5 : d instanceof Hc ? k = N.b6 : d instanceof Ic ? k = N.l7 : d instanceof Pc ? k = N.y7 : d instanceof H ? k = N.a6 : d instanceof F ? k = N.OT : d instanceof fd ? k = N.L6 : d instanceof D ? k = N.eK : d instanceof y && (k = N.Pe);
- this.F2(k, d, g);
- g || f.log("GetParseError");
- this.zha(e, d, g)
- }
- c = c.children;
- for (e = 0; e < c.length; e++)
- if (g = this.aD(c[e])) d instanceof fd ? d.AO(g) : d instanceof H ? d.Sfa(g) : (d instanceof D && (g.vh == y.H6 && (k = g.Od(), h = d.bk(), g.D2(r(k.x + h.x, k.y + h.y))), k = d.Bp(), g.o(r(g.Vc() + k.x, g.Zd() + k.y))), d.n(g));
- return d
- },
- Ie: function(c, d) {
- var e = d.name;
- c.gf(e ? e : "default");
- void 0 !== d.ignoreSize && c.df(d.ignoreSize);
- c.P2(d.sizeType);
- c.E2(d.positionType);
- c.Oha(r(d.sizePercentX, d.sizePercentY));
- c.D2(r(d.positionPercentX, d.positionPercentY));
- c.Df(t(d.width, d.height));
- c.Nm(d.tag);
- c.Vx(d.actiontag);
- c.Om(d.touchAble);
- c.o(r(d.x, d.y));
- void 0 !== d.scaleX && c.jb(d.scaleX);
- void 0 !== d.scaleY && c.tb(d.scaleY);
- void 0 !== d.rotation && c.yh(d.rotation);
- void 0 !== d.visible && c.za(d.visible);
- c.tl(d.ZOrder);
- if (e = d.layoutParameter) {
- var g;
- switch (e.type) {
- case 1:
- g = nc.create();
- g.vc(e.gravity);
- break;
- case 2:
- g = E.create(), g.sR(e.relativeName), g.tR(e.relativeToName), g.VQ(e.align)
- }
- g.lo(new rc(e.marginLeft, e.marginTop, e.marginRight, e.marginDown));
- c.by(g)
- }
- },
- Bd: function(c, d) {
- void 0 !== d.opacity && c.J(d.opacity);
- c.F(f.color(void 0 !== d.colorR ? d.colorR : 255, void 0 !== d.colorG ? d.colorG : 255, void 0 !== d.colorB ? d.colorB : 255));
- c.S(void 0 !== d.anchorPointX ? d.anchorPointX : c.Cr == y.sE ? 0.5 : 0, void 0 !== d.anchorPointY ? d.anchorPointY : c.Cr == y.sE ? 0.5 : 0);
- var e = d.flipY;
- c.Pd(d.flipX);
- c.Yf(e)
- },
- UI: function(c, d) {
- this.Ie(c, d);
- var e = d.scale9Enable;
- c.zh(e);
- var g = d.normalData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.Hx(g ? this.Ja + g : null);
- break;
- case 1:
- g = g.path, c.Hx(g, y.cb)
- }
- g = d.pressedData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.Ix(g ? this.Ja +
- g : null);
- break;
- case 1:
- g = g.path, c.Ix(g, y.cb)
- }
- g = d.disabledData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.Gx(g ? this.Ja + g : null);
- break;
- case 1:
- g = g.path, c.Gx(g, y.cb)
- }
- e && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), void 0 !== d.scale9Width && void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height)));
- void 0 !== d.text && (e = d.text || "") && c.jy(e);
- void 0 !== d.fontSize && c.iy(d.fontSize);
- void 0 !== d.fontName && c.hy(d.fontName);
- e = f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ?
- d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255);
- c.gy(e);
- this.Bd(c, d)
- },
- Aha: function(c, d) {
- this.Ie(c, d);
- var e = d.backGroundBoxData;
- switch (e.resourceType) {
- case 0:
- e = e.path;
- c.jC(e ? this.Ja + e : null);
- break;
- case 1:
- e = e.path, c.jC(e, y.cb)
- }
- e = d.backGroundBoxSelectedData;
- switch (e.resourceType) {
- case 0:
- e = e.path;
- c.lC(e ? this.Ja + e : null);
- break;
- case 1:
- e = e.path, c.lC(e, y.cb)
- }
- e = d.frontCrossData;
- switch (e.resourceType) {
- case 0:
- e = e.path;
- c.mC(e ? this.Ja + e : null);
- break;
- case 1:
- e = e.path, c.mC(e, y.cb)
- }
- e = d.backGroundBoxDisabledData;
- switch (e.resourceType) {
- case 0:
- e = e.path;
- c.kC(e ? this.Ja + e : null);
- break;
- case 1:
- e = e.path, c.kC(e, y.cb)
- }
- switch (d.frontCrossDisabledData.resourceType) {
- case 0:
- e = d.path;
- c.nC(e ? this.Ja + e : null);
- break;
- case 1:
- e = d.path, c.nC(e, y.cb)
- }
- c.fy(d.selectedState || !1);
- c.fy(d, "selectedState");
- this.Bd(c, d)
- },
- Bha: function(c, d) {
- this.Ie(c, d);
- var e = d.fileNameData;
- switch (e.resourceType) {
- case 0:
- var g = this.Ja;
- (e = e.path) && c.Wf(g + e);
- break;
- case 1:
- e = e.path, c.Wf(e, y.cb)
- }
- g = d.scale9Enable || !1;
- c.zh(g);
- g && (void 0 !== d.scale9Width && void 0 !== d.scale9Height &&
- c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)));
- this.Bd(c, d)
- },
- G2: function(c, d) {
- this.Ie(c, d);
- c.BR(d.touchScaleEnable);
- c.wa(d.text);
- void 0 !== d.fontSize && c.Qd(d.fontSize);
- void 0 !== d.fontName && c.de(d.fontName);
- void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight));
- d.hAlignment && c.ns(d.hAlignment);
- d.vAlignment && c.os(d.vAlignment);
- this.Bd(c, d)
- },
- Cha: function(c, d) {
- this.Ie(c, d);
- var e = void 0 !== d.charMapFile,
- g = void 0 !== d.itemWidth,
- h = void 0 !== d.itemHeight,
- k = void 0 !== d.startCharMap;
- if (void 0 !== d.stringValue && e && g && h && k) switch (e = d.charMapFileData, e.resourceType) {
- case 0:
- c.setProperty(d.stringValue, this.Ja + e.path, d.itemWidth, d.itemHeight, d.startCharMap);
- break;
- case 1:
- f.log("Wrong res type of LabelAtlas!")
- }
- this.Bd(c, d)
- },
- Mu: function(c, d) {
- this.Ie(c, d);
- c instanceof F || c instanceof H || c.Zp(d.clipAble);
- var e = d.backGroundScale9Enable;
- c.$Q(e);
- var g = d.bgColorR,
- h = d.bgColorG,
- k = d.bgColorB,
- m = d.bgStartColorR,
- n = d.bgStartColorG,
- p = d.bgStartColorB,
- s = d.bgEndColorR,
- u = d.bgEndColorG,
- v = d.bgEndColorB;
- c.ZQ(r(d.vectorX, d.vectorY));
- var z = d.bgColorOpacity;
- c.YQ(d.colorType);
- c.Du(f.color(m, n, p), f.color(s, u, v));
- c.Du(f.color(g, h, k));
- c.XQ(z);
- g = d.backGroundImageData || {};
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.Eu(g ? this.Ja + g : null);
- break;
- case 1:
- g = g.path, c.Eu(g, y.cb)
- }
- e && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
- c.Mm(d.layoutType);
- this.Bd(c, d)
- },
- H2: function(c, d) {
- this.Mu(c, d);
- c.ay(t(d.innerWidth, d.innerHeight));
- c.xh(d.direction);
- c.dR(d.bounceEnable);
- this.Bd(c, d)
- },
- Fha: function(c, d) {
- this.Ie(c, d);
- var e = d.barTextureScale9Enable || !1;
- c.zh(e);
- var g = d.length;
- if (void 0 !== d.barFileName)
- if (e) {
- var e = d.barFileNameData,
- h = e.resourceType;
- switch (h) {
- case 0:
- e = (e = e.path) ? this.Ja + e : null;
- c.ik(e);
- break;
- case 1:
- e = e.path, c.ik(e, y.cb)
- }
- c.Df(t(g, c.e().height))
- } else switch (e = d.barFileNameData, h = e.resourceType, h) {
- case 0:
- e = (e = e.path) ? this.Ja + e : null;
- c.ik(e);
- break;
- case 1:
- e = e.path, c.ik(e, y.cb)
- }
- g = d.ballNormalData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.hC(g ? this.Ja + g : null);
- break;
- case 1:
- g = g.path, c.hC(g, y.cb)
- }
- g = d.ballPressedData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.iC(g ? this.Ja + g : null);
- break;
- case 1:
- g = g.path, c.iC(g, y.cb)
- }
- g = d.ballDisabledData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.gC(g ? this.Ja + g : null);
- break;
- case 1:
- g = g.path, c.gC(g, y.cb)
- }
- g = d.progressBarData;
- switch (g.resourceType) {
- case 0:
- e = (e = g.path) ? this.Ja + e : null;
- c.wu(e);
- break;
- case 1:
- e = g.path, c.wu(e, y.cb)
- }
- this.Bd(c, d);
- c.Fi(d.percent)
- },
- BHa: function(c, d) {
- this.Ie(c, d);
- c.wa(d.text);
- void 0 !== d.fontSize && c.Qd(d.fontSize);
- c.F(f.color(d.colorR,
- d.colorG, d.colorB));
- c.de(d.fontName);
- void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight));
- d.hAlignment && c.ns(d.hAlignment);
- d.vAlignment && c.os(d.vAlignment);
- this.Bd(c, d)
- },
- CHa: function(c, d) {
- this.UI(c, d);
- c.jy(d.text || "");
- c.gy(f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255));
- void 0 !== d.fontSize && c.iy(d.fontSize);
- void 0 !== d.fontName && c.hy(d.fontName);
- this.Bd(c, d)
- },
- Gha: function(c, d) {
- this.Ie(c, d);
- void 0 !==
- d.placeHolder && c.Gi(d.placeHolder);
- c.wa(d.text);
- void 0 !== d.fontSize && c.Qd(d.fontSize);
- void 0 !== d.fontName && c.de(d.fontName);
- void 0 !== d.touchSizeWidth && void 0 !== d.touchSizeHeight && c.Z2(t(d.touchSizeWidth, d.touchSizeHeight));
- var e = d.maxLengthEnable;
- c.cy(e);
- e && c.ks(d.maxLength);
- e = d.passwordEnable;
- c.dy(e);
- e && c.IC(d.passwordStyleText);
- this.Bd(c, d)
- },
- Eha: function(c, d) {
- this.Ie(c, d);
- var e = d.textureData;
- switch (e.resourceType) {
- case 0:
- var g = this.Ja;
- (e = e.path) && c.Wf(g + e);
- break;
- case 1:
- e = e.path, c.Wf(e, y.cb)
- }
- g = d.scale9Enable;
- c.zh(g);
- g && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.Df(t(d.width, d.height)));
- c.xh(d.direction);
- c.Fi(d.percent);
- this.Bd(c, d)
- },
- zHa: function(c, d) {
- this.Mu(c, d);
- c.ay(t(d.innerWidth || 0, d.innerHeight || 0));
- c.xh(d.direction || 0);
- c.vc(d.gravity || 0);
- c.y2(d.itemMargin || 0)
- },
- AHa: function(c, d) {
- this.Mu(c, d)
- },
- Dha: function(c, d) {
- this.Ie(c, d);
- var e = d.fileNameData;
- switch (e.resourceType) {
- case 0:
- c.GC(this.Ja + e.path);
- break;
- case 1:
- f.log("Wrong res type of LabelAtlas!")
- }
- c.wa(d.text);
- this.Bd(c,
- d)
- }
- });
- N.X1a = {
- eV: "",
- T$: null,
- dY: null,
- nf: null,
- DQa: function(c) {
- this.nf = null;
- this.eV = f.path.dirname(c);
- var d = f.L.zd(c);
- if (!d) throw "Please load the resource first : " + c;
- this.nf = this.fH(d, null);
- N.t3.parse(d.Triggers || []);
- return this.nf
- },
- fH: function(c, d) {
- var e = c.classname;
- if ("CCNode" == e) {
- var g = null;
- d ? (g = f.v.create(), d.n(g)) : g = f.v.create();
- this.yHa(g, c);
- for (var h = c.components, k = 0; k < h.length; k++) {
- var m = h[k];
- if (!m) break;
- var e = m.classname,
- n = m.name,
- p = m.fileData,
- s = "",
- u = "",
- v = 0;
- null != p && (v = void 0 !== p.resourceType ? p.resourceType :
- -1, s = f.path.join(this.eV, p.path), u = p.plistFile);
- var z = f.path.zp(s);
- if ("CCSprite" == e) {
- e = null;
- if (0 == v) {
- if (".png" != z) continue;
- e = f.q.create(s)
- } else if (1 == v) {
- if (".plist" != z) continue;
- u = f.path.join(this.eV, u);
- f.Je.vp(u, f.path.c_(u, ".png"));
- e = f.q.create("#" + p.path)
- } else continue;
- s = N.cv.create(e, "CCSprite");
- null != n && s.gf(n);
- g.fu(s);
- this.Ss(e, m)
- } else if ("CCTMXTiledMap" == e) p = null, 0 == v && ".tmx" == z && (p = f.xK.create(s), s = N.cv.create(p, "CCTMXTiledMap"), null != n && s.gf(n), g.fu(s), this.Ss(p, m));
- else if ("CCParticleSystemQuad" ==
- e) ".plist" == z && (z = null, 0 == v ? (z = f.A.create(s), z.o(0, 0), s = N.cv.create(z, "CCParticleSystemQuad"), null != n && s.gf(n), g.fu(s), this.Ss(z, m)) : f.log("unknown resourcetype on CCParticleSystemQuad!"));
- else if ("CCArmature" == e) 0 == v && ((v = f.L.zd(s)) || f.log("Please load the resource [%s] first!", s), v = v.armature_data[0].name, N.Dr.Jva(s), v = N.tk.create(v), s = N.cv.create(v, "CCArmature"), null != n && s.gf(n), g.fu(s), (n = m.selectedactionname) && v.cl() && v.cl().play(n), this.Ss(v, m));
- else if ("CCComAudio" == e) {
- var A = null;
- 0 == v && (A =
- N.LJ.create(), A.lFa(s), n && A.gf(n), g.fu(A), this.Ss(A, m))
- } else "CCComAttribute" == e ? (z = null, 0 == v ? (z = N.vS.create(), "" != s && z.parse(s), n && z.gf(n), g.fu(z), this.Ss(z, m)) : f.log("unknown resourcetype on CCComAttribute!")) : "CCBackgroundAudio" == e ? z && 0 == v && (A = N.LJ.create(), A.kFa(s), A.$ga(s), v = Boolean(m.loop || 0), A.mR(v), n && A.gf(n), g.fu(A), A.bFa(s, v), this.Ss(A, m)) : "GUIComponent" == e && (s = N.rk.nJa(s), s = N.cv.create(s, "GUIComponent"), null != n && s.gf(n), g.fu(s), this.Ss(A, m))
- }
- h = c.gameobjects;
- for (k = 0; k < h.length; k++) {
- m = h[k];
- if (!m) break;
- this.fH(m, g)
- }
- return g
- }
- return null
- },
- tfa: function(c, d) {
- if (null == c) return null;
- for (var e = null, g = c.re(), h = 0; h < g.length && (!(e = g[h]) || e.Em() != d) && !(e = this.tfa(e, d)); h++);
- return e
- },
- nP: function(c) {
- return null == this.nf ? null : this.nf.Em() == c ? this.nf : this.tfa(this.nf, c)
- },
- yHa: function(c, d) {
- c.o("undefined" === typeof d.x ? 0 : d.x, "undefined" === typeof d.y ? 0 : d.y);
- c.za(Boolean("undefined" === typeof d.visible ? 1 : d.visible));
- c.Nm("undefined" === typeof d.objecttag ? -1 : d.objecttag);
- c.tl("undefined" === typeof d.zorder ?
- 0 : d.zorder);
- var e = "undefined" === typeof d.scaley ? 1 : d.scaley;
- c.jb("undefined" === typeof d.scalex ? 1 : d.scalex);
- c.tb(e);
- c.yh("undefined" === typeof d.rotation ? 0 : d.rotation)
- },
- ZI: function(c, d) {
- this.T$ = d;
- this.dY = c
- },
- Ss: function(c, d) {
- this.dY && this.dY.call(this.T$, c, d)
- },
- version: function() {
- return "1.2.0.0"
- },
- clear: function() {
- N.t3.kk();
- f.pe.end()
- }
- };
- N.nNa = N.N.extend({
- Cd: function() {}
- });
- N.Pe = {
- ek: function() {
- return N.Pe
- },
- Cd: function(c, d) {
- var e = d.ignoreSize;
- e && c.df(e);
- c.P2(d.sizeType);
- c.E2(d.positionType);
- c.Oha(r(d.sizePercentX, d.sizePercentY));
- c.D2(r(d.positionPercentX, d.positionPercentY));
- c.Df(t(d.width, d.height));
- c.Nm(d.tag);
- c.Vx(d.actiontag);
- c.Om(d.touchAble);
- e = d.name;
- c.gf(e ? e : "default");
- c.o(r(d.x, d.y));
- (e = d.scalex) && c.jb(e);
- (e = d.scaleY) && c.tb(e);
- (e = d.rotation) && c.yh(e);
- (e = d.visible) && c.za(e);
- c.tl(d.ZOrder);
- if (d.layoutParameter) {
- var e = d.layoutParameter,
- g = null;
- switch (e.type) {
- case 1:
- g =
- new nc;
- g.vc(e.gravity);
- break;
- case 2:
- var h = g = new E;
- h.sR(e.relativeName);
- h.tR(e.relativeToName);
- h.VQ(e.align)
- }
- g && (g.lo(e.marginLeft, e.marginTop, e.marginRight, e.marginDown), c.by(g))
- }
- },
- ko: function(c, d) {
- var e = d.opacity;
- e && c.J(e);
- c.F(f.color(d.colorR || 255, d.colorG || 255, d.colorB || 255));
- c.S(r(d.anchorPointX || (c.Cr === N.Lpa ? 0.5 : 0), d.anchorPointY || (c.Cr === N.Lpa ? 0.5 : 0)))
- }
- };
- N.e4 = {
- ek: function() {
- return N.e4
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = N.rk.Ja,
- g = d.scale9Enable;
- c.zh(g);
- var h = d.normalData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.Hx(h && "" !== h ? e + h : null);
- break;
- case 1:
- h = h.path, c.Hx(h, 1)
- }
- h = d.pressedData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.Ix(h && "" !== h ? e + h : null);
- break;
- case 1:
- h = h.path, c.Ix(h, 1)
- }
- h = d.disabledData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.Gx(h && "" !== h ? e + h : null);
- break;
- case 1:
- h = h.path, c.Gx(h, 1)
- }
- g && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth,
- d.capInsetsHeight)), e = d.scale9Height, d.scale9Width && e && c.Df(t(d.scale9Width, d.scale9Height)));
- d.text && (e = d.text) && c.jy(e);
- c.gy(f.color(d.textColorR ? d.textColorR : 255, d.textColorG ? d.textColorG : 255, d.textColorB ? d.textColorB : 255));
- d.fontSize && c.iy(d.fontSize);
- d.fontName && c.hy(d.fontName);
- N.Pe.ko.call(this, c, d)
- }
- };
- N.M4 = {
- ek: function() {
- return N.M4
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = N.rk.Ja,
- g = d.backGroundBoxData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.jC(g && "" !== g ? e + g : null);
- break;
- case 1:
- g = g.path, c.jC(g, 1)
- }
- g = d.backGroundBoxSelectedData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.lC(g && "" !== g ? e + g : null);
- break;
- case 1:
- g = g.path, c.lC(g, 1)
- }
- g = d.frontCrossData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.mC(g && "" !== g ? e + g : null);
- break;
- case 1:
- g = g.path, c.mC(g, 1)
- }
- g = d.backGroundBoxDisabledData;
- switch (g.resourceType) {
- case 0:
- g =
- g.path;
- c.kC(g && "" !== g ? e + g : null);
- break;
- case 1:
- g = g.path, c.kC(g, 1)
- }
- switch (d.frontCrossDisabledData.resourceType) {
- case 0:
- g = d.path;
- c.nC(g && "" !== g ? e + g : null);
- break;
- case 1:
- g = d.path, c.nC(g, 1)
- }
- N.Pe.ko.call(this, c, d)
- }
- };
- N.F5 = {
- ek: function() {
- return N.F5
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = N.rk.Ja,
- g = d.fileNameData;
- switch (g.resourceType) {
- case 0:
- (g = g.path) && "" !== g && c.Wf(e + g);
- break;
- case 1:
- g = g.path, c.Wf(g, 1)
- }
- e = !1;
- d.scale9Enable && (e = d.scale9Enable);
- c.zh(e);
- e && (e = d.scale9Height, d.scale9Width && e && c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)));
- N.Pe.ko.call(this, c, d)
- }
- };
- N.U5 = {
- ek: function() {
- return N.U5
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = N.rk.Ja,
- g = d.charMapFileData || d.charMapFile,
- h = d.itemWidth,
- k = d.itemHeight,
- m = d.startCharMap;
- if (d.stringValue && g && h && k && m) switch (g = d.charMapFileData, g.resourceType) {
- case 0:
- c.setProperty(d.stringValue, e + g.path, d.itemWidth, d.itemHeight, d.startCharMap);
- break;
- case 1:
- f.log("Wrong res type of LabelAtlas!")
- }
- N.Pe.ko.call(this, c, d)
- }
- };
- N.V5 = {
- ek: function() {
- return N.V5
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = N.rk.Ja,
- g = d.fileNameData;
- switch (g.resourceType) {
- case 0:
- c.GC(e + g.path);
- break;
- case 1:
- f.log("Wrong res type of LabelAtlas!")
- }
- c.wa(d.text);
- N.Pe.ko.call(this, c, d)
- }
- };
- N.W5 = {
- ek: function() {
- return N.W5
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- c.BR(d.touchScaleEnable);
- c.wa(d.text);
- d.fontSize && c.Qd(d.fontSize);
- d.fontName && c.de(d.fontName);
- var e = d.areaHeight;
- d.areaWidth && e && c.Ou(t(d.areaWidth, d.areaHeight));
- d.hAlignment && c.ns(d.hAlignment);
- d.vAlignment && c.os(d.vAlignment);
- N.Pe.ko.call(this, c, d)
- }
- };
- N.eK = {
- ek: function() {
- return N.eK
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = N.rk.Ja,
- g = 0,
- h = 0;
- d.adaptScreen ? (h = f.Q.Y, g = h.width, h = h.height) : (g = d.width, h = d.height);
- c.Df(t(g, h));
- c.Zp(d.clipAble);
- g = d.backGroundScale9Enable;
- c.$Q(g);
- var h = d.bgColorR,
- k = d.bgColorG,
- m = d.bgColorB,
- n = d.bgStartColorR,
- p = d.bgStartColorG,
- s = d.bgStartColorB,
- u = d.bgEndColorR,
- v = d.bgEndColorG,
- z = d.bgEndColorB;
- c.ZQ(r(d.vectorX, d.vectorY));
- var A = d.bgColorOpacity;
- c.YQ(d.colorType);
- c.Du(f.color(n, p, s), f.color(u, v, z));
- c.Du(f.color(h, k, m));
- c.XQ(A);
- if (h = d.backGroundImageData) switch (h.resourceType) {
- case 0:
- h = h.path;
- c.Eu(h && "" !== h ? e + h : null);
- break;
- case 1:
- h = h.path, c.Eu(h, 1)
- }
- g && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
- c.Mm(d.layoutType);
- N.Pe.ko.call(this, c, d)
- }
- };
- N.OT = {
- ek: function() {
- return N.OT
- },
- Cd: function(c, d) {
- N.eK.Cd.call(this, c, d);
- c.ay(t(d.innerWidth, d.innerHeight));
- c.xh(d.direction);
- c.dR(d.bounceEnable);
- N.Pe.ko.call(this, c, d)
- }
- };
- N.a6 = {
- ek: function() {
- return N.a6
- },
- Cd: function(c, d) {
- N.OT.Cd.call(this, c, d);
- c.xh(d.direction);
- c.vc(d.gravity);
- c.y2(d.itemMargin)
- }
- };
- N.b6 = {
- ek: function() {
- return N.b6
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = N.rk.Ja,
- g = d.textureData;
- switch (g.resourceType) {
- case 0:
- (g = g.path) && "" !== g && c.Wf(e + g);
- break;
- case 1:
- g = g.path, c.Wf(g, 1)
- }
- e = d.scale9Enable;
- c.zh(e);
- e && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.Df(t(d.width, d.height)));
- c.xh(d.direction);
- c.Fi(d.percent);
- N.Pe.ko.call(this, c, d)
- }
- };
- N.L6 = {
- mXa: null,
- ek: function() {
- return N.L6
- },
- Cd: function(c, d) {
- N.eK.Cd.call(this, c, d)
- }
- };
- N.l7 = {
- ek: function() {
- return N.l7
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = N.rk.Ja,
- g = d.scale9Enable;
- c.zh(g);
- var h = d.length;
- if (d.barFileName) {
- if (g) {
- var g = d.barFileNameData,
- k = d.resourceType;
- switch (k) {
- case 0:
- g = (g = g.path) && "" !== g ? e + g : null;
- c.ik(g);
- break;
- case 1:
- g = g.path, c.ik(g, 1)
- }
- c.Df(t(h, c.e().height))
- }
- } else switch (g = d.barFileNameData, k = g.resourceType, k) {
- case 0:
- g = (g = g.path) && "" !== g ? e + g : null;
- c.ik(g);
- break;
- case 1:
- g = g.path, c.ik(g, 1)
- }
- h = d.ballNormalData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.hC(h && "" !==
- h ? e + h : null);
- break;
- case 1:
- h = h.path, c.hC(h, 1)
- }
- h = d.ballPressedData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.iC(h && "" !== h ? e + h : null);
- break;
- case 1:
- h = h.path, c.iC(h, 1)
- }
- h = d.ballDisabledData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.gC(h && "" !== h ? e + h : null);
- break;
- case 1:
- h = h.path, c.gC(h, 1)
- }
- h = d.progressBarData;
- switch (h.resourceType) {
- case 0:
- g = (g = h.path) && "" !== g ? e + g : null;
- c.wu(g);
- break;
- case 1:
- g = h.path, c.wu(g, 1)
- }
- N.Pe.ko.call(this, c, d)
- }
- };
- N.y7 = {
- ek: function() {
- return N.y7
- },
- Cd: function(c, d) {
- N.Pe.Cd.call(this, c, d);
- var e = d.placeHolder;
- e && c.Gi(e);
- c.wa(d.text);
- (e = d.fontSize1) && c.Qd(e);
- (e = d.fontName) && c.de(e);
- var e = d.touchSizeWidth,
- g = d.touchSizeHeight;
- e && g && c.Z2(e, g);
- e = d.maxLengthEnable;
- c.cy(e);
- e && c.ks(d.maxLength);
- e = d.passwordEnable;
- c.dy(e);
- e && c.IC(d.passwordStyleText);
- e = d.areaWidth;
- g = d.areaHeight;
- e && g && c.Ou(t(e, g));
- (e = d.hAlignment) && c.ns(e);
- (e = d.vAlignment) && c.os(e);
- N.Pe.ko.call(this, c, d)
- }
- };
- function Ad(c, d) {
- this.name = c;
- this.parent = d
- }
- Ad.prototype = {
- length: 0,
- x: 0,
- y: 0,
- tea: !0,
- sea: !0
- };
- function Bd(c, d) {
- this.name = c;
- this.boneData = d
- }
- Bd.prototype = {
- AZ: null,
- wZ: !1
- };
- function Cd(c, d) {
- this.data = c;
- this.parent = d;
- this.Pu()
- }
- Cd.prototype = {
- x: 0,
- y: 0,
- Hm: 0,
- Op: 0,
- Qm: 0,
- Im: 0,
- m11: 0,
- Rm: 0,
- uJ: 0,
- ry: 1,
- sy: 1,
- YC: function(c, d) {
- var e = this.parent;
- null != e ? (this.Qm = this.x * e.Hm + this.y * e.Op + e.Qm, this.Rm = this.x * e.Im + this.y * e.m11 + e.Rm, this.data.tea ? (this.ry = e.ry * this.scaleX, this.sy = e.sy * this.scaleY) : (this.ry = this.scaleX, this.sy = this.scaleY), this.uJ = this.data.sea ? e.uJ + this.rotation : this.rotation) : (this.Qm = c ? -this.x : this.x, this.Rm = !1 != d ? -this.y : this.y, this.ry = this.scaleX, this.sy = this.scaleY, this.uJ = this.rotation);
- var g = this.uJ * Math.PI / 180,
- e = Math.cos(g),
- g = Math.sin(g);
- this.Hm = e * this.ry;
- this.Im = g * this.ry;
- this.Op = -g * this.sy;
- this.m11 = e * this.sy;
- c && (this.Hm = -this.Hm, this.Op = -this.Op);
- !1 != d && (this.Im = -this.Im, this.m11 = -this.m11)
- },
- Pu: function() {
- var c = this.data;
- this.x = c.x;
- this.y = c.y;
- this.rotation = c.rotation;
- this.scaleX = c.scaleX;
- this.scaleY = c.scaleY
- }
- };
- function Dd(c, d, e) {
- this.data = c;
- this.yl = d;
- this.ij = e;
- this.Pu()
- }
- Dd.prototype = {
- nqa: 0,
- Xh: null,
- Yx: function(c) {
- this.Xh = c;
- this.nqa = this.yl.time
- },
- Pu: function() {
- var c = this.data;
- this.r = c.r;
- this.g = c.g;
- this.b = c.b;
- this.a = c.a;
- for (var d = this.yl.data.Ef, e = 0, g = d.length; e < g; e++)
- if (d[e] == c) {
- this.Yx(c.AZ ? Ed(this.yl, e, c.AZ) : null);
- break
- }
- }
- };
- function Fd(c) {
- this.name = c;
- this.EO = {}
- }
- Fd.prototype = {
- rH: function(c, d) {
- return this.EO[c + ":" + d]
- }
- };
- function Gd(c, d, e) {
- this.name = c;
- this.via = d;
- this.duration = e
- }
- Gd.prototype = {
- apply: function(c, d, e, g, h) {
- g && 0 != this.duration && (e %= this.duration, d %= this.duration);
- g = this.via;
- for (var k = 0, m = g.length; k < m; k++) g[k].apply(c, d, e, h, 1)
- }
- };
- function Hd(c, d, e) {
- var g = 0,
- h = Math.floor(c.length / e) - 2;
- if (0 == h) return e;
- for (var k = h >>> 1;;) {
- c[(k + 1) * e] <= d ? g = k + 1 : h = k;
- if (g == h) return (g + 1) * e;
- k = g + h >>> 1
- }
- }
- function Id(c) {
- this.lj = [];
- this.lj.length = 6 * (c - 1)
- }
- Id.prototype = {};
- function Jd(c, d, e) {
- e = 0 > e ? 0 : 1 < e ? 1 : e;
- var g = 6 * d,
- h = c.lj;
- d = h[g];
- if (!d) return e;
- if (-1 == d) return 0;
- c = h[g + 1];
- for (var k = h[g + 2], m = h[g + 3], n = h[g + 4], p = h[g + 5], g = d, h = c, s = 8;;) {
- if (g >= e) return d = g - d, c = h - c, c + (h - c) * (e - d) / (g - d);
- if (0 == s) break;
- s--;
- d += k;
- c += m;
- k += n;
- m += p;
- g += d;
- h += c
- }
- return h + (1 - h) * (e - g) / (1 - g)
- }
- function Kd(c) {
- this.lj = new Id(c);
- this.frames = [];
- this.frames.length = 2 * c
- }
- Kd.prototype = {
- ex: 0,
- Am: function() {
- return this.frames.length / 2
- },
- Lm: function(c, d, e) {
- c *= 2;
- this.frames[c] = d;
- this.frames[c + 1] = e
- },
- apply: function(c, d, e, g, h) {
- d = this.frames;
- if (!(e < d[0])) {
- c = c.xd[this.ex];
- if (e >= d[d.length - 2]) d = c.data.rotation + d[d.length - 1] - c.rotation;
- else {
- var k = Hd(d, e, 2);
- g = d[k - 1];
- var m = d[k];
- e = 1 - (e - m) / (d[k - 2] - m);
- e = Jd(this.lj, k / 2 - 1, e);
- for (d = d[k + 1] - g; 180 < d;) d -= 360;
- for (; - 180 > d;) d += 360;
- d = c.data.rotation + (g + d * e) - c.rotation
- }
- for (; 180 < d;) d -= 360;
- for (; - 180 > d;) d += 360;
- c.rotation += d * h
- }
- }
- };
- function Ld(c) {
- this.lj = new Id(c);
- this.frames = [];
- this.frames.length = 3 * c
- }
- Ld.prototype = {
- ex: 0,
- Am: function() {
- return this.frames.length / 3
- },
- Lm: function(c, d, e, g) {
- c *= 3;
- this.frames[c] = d;
- this.frames[c + 1] = e;
- this.frames[c + 2] = g
- },
- apply: function(c, d, e, g, h) {
- d = this.frames;
- if (!(e < d[0]))
- if (c = c.xd[this.ex], e >= d[d.length - 3]) c.x += (c.data.x + d[d.length - 2] - c.x) * h, c.y += (c.data.y + d[d.length - 1] - c.y) * h;
- else {
- g = Hd(d, e, 3);
- var k = d[g - 2],
- m = d[g - 1],
- n = d[g];
- e = 1 - (e - n) / (d[g + -3] - n);
- e = Jd(this.lj, g / 3 - 1, e);
- c.x += (c.data.x + k + (d[g + 1] - k) * e - c.x) * h;
- c.y += (c.data.y + m + (d[g + 2] - m) * e - c.y) * h
- }
- }
- };
- function Md(c) {
- this.lj = new Id(c);
- this.frames = [];
- this.frames.length = 3 * c
- }
- Md.prototype = {
- ex: 0,
- Am: function() {
- return this.frames.length / 3
- },
- Lm: function(c, d, e, g) {
- c *= 3;
- this.frames[c] = d;
- this.frames[c + 1] = e;
- this.frames[c + 2] = g
- },
- apply: function(c, d, e, g, h) {
- d = this.frames;
- if (!(e < d[0]))
- if (c = c.xd[this.ex], e >= d[d.length - 3]) c.scaleX += (c.data.scaleX - 1 + d[d.length - 2] - c.scaleX) * h, c.scaleY += (c.data.scaleY - 1 + d[d.length - 1] - c.scaleY) * h;
- else {
- g = Hd(d, e, 3);
- var k = d[g - 2],
- m = d[g - 1],
- n = d[g];
- e = 1 - (e - n) / (d[g + -3] - n);
- e = Jd(this.lj, g / 3 - 1, e);
- c.scaleX += (c.data.scaleX - 1 + k + (d[g + 1] - k) * e - c.scaleX) * h;
- c.scaleY += (c.data.scaleY -
- 1 + m + (d[g + 2] - m) * e - c.scaleY) * h
- }
- }
- };
- function Nd(c) {
- this.lj = new Id(c);
- this.frames = [];
- this.frames.length = 5 * c
- }
- Nd.prototype = {
- KC: 0,
- Am: function() {
- return this.frames.length / 5
- },
- Lm: function(c, d, e, g, h, k) {
- c *= 5;
- this.frames[c] = d;
- this.frames[c + 1] = e;
- this.frames[c + 2] = g;
- this.frames[c + 3] = h;
- this.frames[c + 4] = k
- },
- apply: function(c, d, e, g, h) {
- d = this.frames;
- if (!(e < d[0]))
- if (c = c.Ef[this.KC], e >= d[d.length - 5]) h = d.length - 1, c.r = d[h - 3], c.g = d[h - 2], c.b = d[h - 1], c.a = d[h];
- else {
- g = Hd(d, e, 5);
- var k = d[g - 4],
- m = d[g - 3],
- n = d[g - 2],
- p = d[g - 1],
- s = d[g];
- e = 1 - (e - s) / (d[g - 5] - s);
- e = Jd(this.lj, g / 5 - 1, e);
- k += (d[g + 1] - k) * e;
- m += (d[g + 2] - m) * e;
- n += (d[g + 3] - n) * e;
- d = p + (d[g + 4] - p) * e;
- 1 > h ? (c.r += (k - c.r) * h, c.g += (m - c.g) * h, c.b += (n - c.b) * h, c.a += (d - c.a) * h) : (c.r = k, c.g = m, c.b = n, c.a = d)
- }
- }
- };
- function Od(c) {
- this.lj = new Id(c);
- this.frames = [];
- this.frames.length = c;
- this.BZ = [];
- this.BZ.length = c
- }
- Od.prototype = {
- KC: 0,
- Am: function() {
- return this.frames.length
- },
- Lm: function(c, d, e) {
- this.frames[c] = d;
- this.BZ[c] = e
- },
- apply: function(c, d, e) {
- d = this.frames;
- e < d[0] || (e = this.BZ[e >= d[d.length - 1] ? d.length - 1 : Hd(d, e, 1) - 1], c.Ef[this.KC].Yx(e ? Ed(c, this.KC, e) : null))
- }
- };
- function Pd(c) {
- this.frames = [];
- this.frames.length = c;
- this.ym = [];
- this.ym.length = c
- }
- Pd.prototype = {
- Am: function() {
- return this.frames.length
- },
- Lm: function(c, d, e) {
- this.frames[c] = d;
- this.ym[c] = e
- },
- apply: function(c, d, e, g, h) {
- if (g) {
- var k = this.frames,
- m = k.length;
- if (d > e) this.apply(c, d, Number.MAX_VALUE, g, h), d = -1;
- else if (d >= k[m - 1]) return;
- if (!(e < k[0])) {
- if (d < k[0]) c = 0;
- else
- for (c = Hd(k, d, 1), d = k[c]; 0 < c && k[c - 1] == d;) c--;
- for (d = this.ym; c < m && e >= k[c]; c++) g.push(d[c])
- }
- }
- }
- };
- function Qd(c) {
- this.frames = [];
- this.frames.length = c;
- this.B_ = [];
- this.B_.length = c
- }
- Qd.prototype = {
- Am: function() {
- return this.frames.length
- },
- Lm: function(c, d, e) {
- this.frames[c] = d;
- this.B_[c] = e
- },
- apply: function(c, d, e) {
- var g = this.frames;
- if (!(e < g[0])) {
- d = c.mu;
- var h = c.Ef;
- if (e = this.B_[e >= g[g.length - 1] ? g.length - 1 : Hd(g, e, 1) - 1])
- for (g = 0, k = e.length; g < k; g++) d[g] = c.Ef[e[g]];
- else
- for (var g = 0, k = h.length; g < k; g++) d[g] = h[g]
- }
- }
- };
- function Rd() {
- this.xd = [];
- this.Ef = [];
- this.gia = [];
- this.ym = [];
- this.lB = []
- }
- Rd.prototype = {
- u_: null,
- pH: function(c) {
- for (var d = this.xd, e = 0, g = d.length; e < g; e++)
- if (d[e].name == c) return d[e];
- return null
- },
- cda: function(c) {
- for (var d = this.xd, e = 0, g = d.length; e < g; e++)
- if (d[e].name == c) return e;
- return -1
- },
- S_: function(c) {
- for (var d = this.Ef, e = 0, g = d.length; e < g; e++)
- if (d[e].name == c) return d[e];
- return null
- },
- qH: function(c) {
- for (var d = this.Ef, e = 0, g = d.length; e < g; e++)
- if (d[e].name == c) return e;
- return -1
- }
- };
- function Sd(c, d) {
- for (var e = c.lB, g = 0, h = e.length; g < h; g++)
- if (e[g].name == d) return e[g];
- return null
- }
- function Td(c) {
- this.data = c;
- this.xd = [];
- for (var d = 0, e = c.xd.length; d < e; d++) {
- var g = c.xd[d];
- this.xd.push(new Cd(g, g.parent ? this.xd[c.xd.indexOf(g.parent)] : null))
- }
- this.Ef = [];
- this.mu = [];
- d = 0;
- for (e = c.Ef.length; d < e; d++) g = c.Ef[d], g = new Dd(g, this, this.xd[c.xd.indexOf(g.boneData)]), this.Ef.push(g), this.mu.push(g)
- }
- Td.prototype = {
- x: 0,
- y: 0,
- fJ: null,
- time: 0,
- gda: !1,
- hda: !1,
- YC: function() {
- for (var c = this.gda, d = this.hda, e = this.xd, g = 0, h = e.length; g < h; g++) e[g].YC(c, d)
- },
- Pu: function() {
- this.n2();
- this.Q2()
- },
- n2: function() {
- for (var c = this.xd, d = 0, e = c.length; d < e; d++) c[d].Pu()
- },
- Q2: function() {
- for (var c = this.Ef, d = 0, e = c.length; d < e; d++) c[d].Pu(d)
- },
- pH: function(c) {
- for (var d = this.xd, e = 0, g = d.length; e < g; e++)
- if (d[e].data.name == c) return d[e];
- return null
- },
- cda: function(c) {
- for (var d = this.xd, e = 0, g = d.length; e < g; e++)
- if (d[e].data.name == c) return e;
- return -1
- },
- S_: function(c) {
- for (var d = this.Ef, e = 0, g = d.length; e < g; e++)
- if (d[e].data.name == c) return d[e];
- return null
- },
- qH: function(c) {
- for (var d = this.Ef, e = 0, g = d.length; e < g; e++)
- if (d[e].data.name == c) return e;
- return -1
- },
- Qha: function(c) {
- if (this.fJ && c) {
- var d = this.fJ;
- console.log(d.EO);
- for (var e in d.EO) {
- var g = e.indexOf(":"),
- d = parseInt(e.substring(0, g)),
- h = e.substring(g + 1),
- g = this.Ef[d];
- g.Xh && g.Xh.name == h && (d = c.rH(d, h)) && g.Yx(d)
- }
- }
- this.fJ = c
- },
- Yx: function(c, d) {
- for (var e = this.Ef, g = 0, h = e.length; g < h; g++) {
- var k = e[g];
- if (k.data.name ==
- c) {
- e = null;
- if (d && (e = this.rH(g, d), !e)) throw "Attachment not found: " + d + ", for slot: " + c;
- k.Yx(e);
- return
- }
- }
- throw "Slot not found: " + c;
- },
- update: function(c) {
- this.time += c
- }
- };
- function Ed(c, d, e) {
- if (c.fJ) {
- var g = c.fJ.rH(d, e);
- if (g) return g
- }
- return c.data.u_ ? c.data.u_.rH(d, e) : null
- }
- function Ud(c) {
- this.name = c
- }
- Ud.prototype = {
- RP: 0,
- bP: 0,
- stringValue: null
- };
- function Vd(c) {
- this.data = c
- }
- Vd.prototype = {
- RP: 0,
- bP: 0,
- stringValue: null
- };
- var Wd = {
- region: 0,
- Lwa: 1
- };
- function Xd(c) {
- this.name = c;
- this.offset = [];
- this.offset.length = 8;
- this.fq = [];
- this.fq.length = 8
- }
- Xd.prototype = {
- x: 0,
- y: 0,
- Sx: null,
- $fa: 0,
- aga: 0,
- dga: 0,
- Zfa: 0,
- cga: 0,
- bga: 0
- };
- function Yd(c, d, e, g, h) {
- d += g.Qm;
- e += g.Rm;
- var k = g.Hm,
- m = g.Op,
- n = g.Im;
- g = g.m11;
- c = c.offset;
- h[0] = c[0] * k + c[1] * m + d;
- h[1] = c[0] * n + c[1] * g + e;
- h[2] = c[2] * k + c[3] * m + d;
- h[3] = c[2] * n + c[3] * g + e;
- h[4] = c[4] * k + c[5] * m + d;
- h[5] = c[4] * n + c[5] * g + e;
- h[6] = c[6] * k + c[7] * m + d;
- h[7] = c[6] * n + c[7] * g + e
- }
- function Zd(c) {
- this.name = c;
- this.k = []
- }
- Zd.prototype = {};
- function $d(c) {
- this.fia = c;
- this.bca = {}
- }
- $d.prototype = {
- Mxa: 0,
- mha: function(c, d, e) {
- this.bca[c.name + ":" + d.name] = e
- }
- };
- function ae(c, d, e) {
- return (d = c.bca[d.name + ":" + e.name]) ? d : c.Mxa
- }
- function be() {}
- be.prototype = {
- next: null,
- zu: null,
- wd: null,
- vm: 0,
- time: 0,
- dC: -1,
- sx: 0,
- r3: 1,
- hI: 0,
- oQ: 0,
- Sp: null,
- Rp: null,
- sC: null,
- tC: null
- };
- function ce(c) {
- this.data = c;
- this.ai = [];
- this.ym = []
- }
- ce.prototype = {
- Sp: null,
- Rp: null,
- sC: null,
- tC: null,
- r3: 1,
- update: function(c) {
- c *= this.r3;
- for (var d = 0; d < this.ai.length; d++) {
- var e = this.ai[d];
- if (e) {
- var g = c * e.r3;
- e.time += g;
- e.zu && (e.zu.time += g, e.hI += g);
- (g = e.next) ? e.dC >= g.vm && de(this, d, g): !e.loop && e.dC >= e.sx && this.MO(d)
- }
- }
- },
- apply: function(c) {
- for (var d = 0; d < this.ai.length; d++) {
- var e = this.ai[d];
- if (e) {
- this.ym.length = 0;
- var g = e.time,
- h = e.dC,
- k = e.sx,
- m = e.loop;
- !m && g > k && (g = k);
- var n = e.zu;
- if (n) {
- var p = n.time;
- !n.loop && p > n.sx && (p = n.sx);
- n.wd.apply(c, p, p, n.loop, null);
- var s = e.hI /
- e.oQ;
- 1 <= s && (s = 1, e.zu = null);
- var u = e.wd,
- n = c,
- p = e.dC,
- v = g,
- z = this.ym;
- m && 0 != u.duration && (v %= u.duration, p %= u.duration);
- for (var u = u.via, A = 0, B = u.length; A < B; A++) u[A].apply(n, p, v, z, s)
- } else e.wd.apply(c, e.dC, g, m, this.ym);
- n = 0;
- for (p = this.ym.length; n < p; n++) v = this.ym[n], null != e.tC && e.tC(d, v), null != this.tC && this.tC(d, v);
- if (m ? h % k > g % k : h < k && g >= k) g = Math.floor(g / k), e.sC && e.sC(d, g), this.sC && this.sC(d, g);
- e.dC = e.time
- }
- }
- },
- qca: function() {
- for (var c = 0, d = this.ai.length; c < d; c++) this.MO(c);
- this.ai.length = 0
- },
- MO: function(c) {
- if (!(c >=
- this.ai.length)) {
- var d = this.ai[c];
- d && (null != d.Rp && d.Rp(c), null != this.Rp && this.Rp(c), this.ai[c] = null)
- }
- },
- Xx: function(c, d, e) {
- var g = new be;
- g.wd = d;
- g.loop = e;
- g.sx = d.duration;
- de(this, c, g);
- return g
- },
- TG: function(c, d, e, g) {
- var h = new be;
- h.wd = d;
- h.loop = e;
- h.sx = d.duration;
- if (e = ee(this, c)) {
- for (; e.next;) e = e.next;
- e.next = h
- } else this.ai[c] = h;
- 0 >= g && (g = e ? g + (e.sx - ae(this.data, e.wd, d)) : 0);
- h.vm = g;
- return h
- },
- vda: function(c) {
- return c >= this.ai.length ? null : this.ai[c]
- }
- };
- function de(c, d, e) {
- var g = ee(c, d);
- if (g) {
- var h = g.zu;
- g.zu = null;
- null != g.Rp && g.Rp(d);
- null != c.Rp && c.Rp(d);
- e.oQ = ae(c.data, g.wd, e.wd);
- 0 < e.oQ && (e.hI = 0, e.zu = h && 0.5 > g.hI / g.oQ ? h : g)
- }
- c.ai[d] = e;
- null != e.Sp && e.Sp(d);
- null != c.Sp && c.Sp(d)
- }
- function ee(c, d) {
- if (d < c.ai.length) return c.ai[d];
- for (; d >= c.ai.length;) c.ai.push(null);
- return null
- }
- function fe(c) {
- this.uwa = c
- }
- fe.prototype = {};
- function ge(c, d, e) {
- var g = e.curve;
- if (g)
- if ("stepped" == g) c.lj.lj[6 * d] = -1;
- else if (g instanceof Array) {
- e = g[0];
- var h = g[1],
- k = g[2],
- m = g[3],
- n = 0.1 * 0.1,
- g = 0.1 * n,
- p = 3 * 0.1,
- s = 3 * n,
- n = 6 * n,
- u = 6 * g,
- v = 2 * -e + k,
- z = 2 * -h + m,
- k = 3 * (e - k) + 1,
- m = 3 * (h - m) + 1;
- d *= 6;
- c = c.lj.lj;
- c[d] = e * p + v * s + k * g;
- c[d + 1] = h * p + z * s + m * g;
- c[d + 2] = v * n + k * u;
- c[d + 3] = z * n + m * u;
- c[d + 4] = k * u;
- c[d + 5] = m * u
- }
- }
- function he(c, d) {
- if (8 != c.length) throw "Color hexidecimal length must be 8, recieved: " + c;
- return parseInt(c.substring(2 * d, 2 * d + 2), 16) / 255
- }
- function ie(c, d) {
- this.qEa = [];
- this.ega = [];
- var e = new je(c),
- g = [];
- g.length = 4;
- for (var h = null;;) {
- var k = ke(e);
- if (null == k) break;
- k = e.trim(k);
- if (0 == k.length) h = null;
- else if (h) {
- var m = new le;
- m.name = k;
- m.page = h;
- m.rotate = "true" == me(e);
- ne(e, g);
- var k = parseInt(g[0]),
- n = parseInt(g[1]);
- ne(e, g);
- var p = parseInt(g[0]),
- s = parseInt(g[1]);
- m.Da = k / h.width;
- m.ga = n / h.height;
- m.rotate ? (m.x3 = (k + s) / h.width, m.E3 = (n + p) / h.height) : (m.x3 = (k + p) / h.width, m.E3 = (n + s) / h.height);
- m.x = k;
- m.y = n;
- m.width = Math.abs(p);
- m.height = Math.abs(s);
- 4 == ne(e, g) && (m.iIa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], 4 == ne(e, g) && (m.pEa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], ne(e, g)));
- m.Efa = parseInt(g[0]);
- m.Dfa = parseInt(g[1]);
- ne(e, g);
- m.offsetX = parseInt(g[0]);
- m.offsetY = parseInt(g[1]);
- m.index = parseInt(me(e));
- this.ega.push(m)
- } else h = new oe, h.name = k, h.kza = pe[me(e)], ne(e, g), h.nfa = qe[g[0]], h.kfa = qe[g[1]], m = me(e), h.y3 = re, h.F3 = re, "x" == m ? h.y3 = se : "y" == m ? h.F3 = se : "xy" == m && (h.y3 = h.F3 = se), d.load(h, k, this), this.qEa.push(h)
- }
- }
- ie.prototype = {};
- var pe = {
- SJa: 0,
- wLa: 1,
- PLa: 2,
- RGB565: 3,
- uMa: 4,
- tMa: 5,
- vMa: 6
- },
- qe = {
- YLa: 0,
- iv: 1,
- SLa: 2,
- WLa: 3,
- ULa: 4,
- VLa: 5,
- TLa: 6
- },
- re = 1,
- se = 2;
- function oe() {}
- oe.prototype = {
- kza: null,
- nfa: null,
- kfa: null,
- y3: null,
- F3: null,
- Sx: null
- };
- function le() {}
- le.prototype = {
- page: null,
- x: 0,
- y: 0,
- Da: 0,
- ga: 0,
- x3: 0,
- E3: 0,
- Efa: 0,
- Dfa: 0,
- index: 0,
- rotate: !1,
- iIa: null,
- pEa: null
- };
- function je(c) {
- this.ffa = c.split(/\r\n|\r|\n/)
- }
- je.prototype = {
- index: 0,
- trim: function(c) {
- return c.replace(/^\s+|\s+$/g, "")
- }
- };
- function ne(c, d) {
- var e = ke(c),
- g = e.indexOf(":");
- if (-1 == g) throw "Invalid line: " + e;
- for (var h = 0, g = g + 1; 3 > h; h++) {
- var k = e.indexOf(",", g);
- if (-1 == k) {
- if (0 == h) throw "Invalid line: " + e;
- break
- }
- d[h] = c.trim(e.substr(g, k - g));
- g = k + 1
- }
- d[h] = c.trim(e.substring(g));
- return h + 1
- }
- function me(c) {
- var d = ke(c),
- e = d.indexOf(":");
- if (-1 == e) throw "Invalid line: " + d;
- return c.trim(d.substring(e + 1))
- }
- function ke(c) {
- return c.index >= c.ffa.length ? null : c.ffa[c.index++]
- }
- function te(c) {
- this.rwa = c
- }
- te.prototype = {};
- var we = f.ja.extend({
- $e: null,
- cua: null,
- Wt: 1,
- BL: !1,
- AL: !1,
- lN: !1,
- xta: null,
- xNa: null,
- B: null,
- ctor: function() {
- f.ja.prototype.ctor.call(this);
- this.B = {
- src: f.Mc,
- ha: f.Lc
- }
- },
- j: function() {
- f.v.prototype.j.call(this);
- this.ee(!0);
- this.B.src = f.ONE;
- this.B.ha = f.ONE_MINUS_SRC_ALPHA;
- f.K === f.na && this.WI(f.xg.be(f.zo));
- this.ds()
- },
- V2a: function(c) {
- this.BL = c
- },
- U2a: function(c) {
- this.AL = c
- },
- RHa: function(c) {
- this.Wt = c
- },
- KP: function(c, d, e) {
- var g, h, k, m;
- if ("string" == typeof c) {
- if ("string" == typeof d) {
- var n = f.L.zd(d);
- ue.yGa(d);
- h = new ie(n,
- ue)
- } else h = d;
- k = e || 1 / f.Q.Vl;
- var p = new fe(new te(h));
- p.scale = k;
- for (var s = f.L.zd(c), u = new Rd, v = s.bones, z = 0, A = v.length; z < A; z++) {
- var B = v[z],
- C = null;
- if (B.parent && (C = u.pH(B.parent), !C)) throw "Parent bone not found: " + B.parent;
- var G = new Ad(B.name, C);
- G.length = (B.length || 0) * p.scale;
- G.x = (B.x || 0) * p.scale;
- G.y = (B.y || 0) * p.scale;
- G.rotation = B.rotation || 0;
- G.scaleX = B.scaleX || 1;
- G.scaleY = B.scaleY || 1;
- G.tea = !B.inheritScale || "true" == B.inheritScale;
- G.sea = !B.inheritRotation || "true" == B.inheritRotation;
- u.xd.push(G)
- }
- for (var L =
- s.slots, z = 0, A = L.length; z < A; z++) {
- var O = L[z],
- G = u.pH(O.bone);
- if (!G) throw "Slot bone not found: " + O.bone;
- var R = new Bd(O.name, G),
- M = O.color;
- M && (R.r = he(M, 0), R.g = he(M, 1), R.b = he(M, 2), R.a = he(M, 3));
- R.AZ = O.attachment;
- R.wZ = O.additive && "true" == O.additive;
- u.Ef.push(R)
- }
- var K = s.skins,
- P;
- for (P in K)
- if (K.hasOwnProperty(P)) {
- var I = K[P],
- J = new Fd(P),
- V;
- for (V in I)
- if (I.hasOwnProperty(V)) {
- var ma = u.qH(V),
- W = I[V],
- fa;
- for (fa in W)
- if (W.hasOwnProperty(fa)) {
- var ta, Y = p,
- wa = fa,
- Z = W[fa],
- wa = Z.name || wa,
- Oa = Wd[Z.type || "region"],
- Q = void 0;
- a: {
- switch (Oa) {
- case Wd.Lwa:
- Q =
- new Zd(wa);
- break a;
- case Wd.region:
- var oa;
- b: {
- for (var ob = Y.uwa.rwa.ega, Pa = 0, Ub = ob.length; Pa < Ub; Pa++)
- if (ob[Pa].name == wa) {
- oa = ob[Pa];
- break b
- }
- oa = null
- }
- if (!oa) throw "Region not found in atlas: " + wa + " (" + Oa + ")";
- var za = new Xd(wa);
- za.Sx = oa;
- var mb = oa.Da,
- nb = oa.ga,
- Ja = oa.x3,
- Ob = oa.E3,
- ua = za.fq;
- oa.rotate ? (ua[2] = mb, ua[3] = Ob, ua[4] = mb, ua[5] = nb, ua[6] = Ja, ua[7] = nb, ua[0] = Ja, ua[1] = Ob) : (ua[0] = mb, ua[1] = Ob, ua[2] = mb, ua[3] = nb, ua[4] = Ja, ua[5] = nb, ua[6] = Ja, ua[7] = Ob);
- za.$fa = oa.offsetX;
- za.aga = oa.offsetY;
- za.dga = oa.width;
- za.Zfa = oa.height;
- za.cga = oa.Efa;
- za.bga = oa.Dfa;
- Q = za;
- break a
- }
- throw "Unknown attachment type: " + Oa;
- }
- if (Oa == Wd.region) {
- Q.x = (Z.x || 0) * Y.scale;
- Q.y = (Z.y || 0) * Y.scale;
- Q.scaleX = Z.scaleX || 1;
- Q.scaleY = Z.scaleY || 1;
- Q.rotation = Z.rotation || 0;
- Q.width = (Z.width || 32) * Y.scale;
- Q.height = (Z.height || 32) * Y.scale;
- var hd = Q.width / Q.cga * Q.scaleX,
- id = Q.height / Q.bga * Q.scaleY,
- xc = -Q.width / 2 * Q.scaleX + Q.$fa * hd,
- yc = -Q.height / 2 * Q.scaleY + Q.aga * id,
- jd = xc + Q.dga * hd,
- kd = yc + Q.Zfa * id,
- ld = Q.rotation * Math.PI / 180,
- Pb = Math.cos(ld),
- Qb = Math.sin(ld),
- md = xc * Pb + Q.x,
- nd = xc * Qb,
- od =
- yc * Pb + Q.y,
- pd = yc * Qb,
- qd = jd * Pb + Q.x,
- rd = jd * Qb,
- sd = kd * Pb + Q.y,
- td = kd * Qb,
- Va = Q.offset;
- Va[0] = md - pd;
- Va[1] = od + nd;
- Va[2] = md - td;
- Va[3] = sd + nd;
- Va[4] = qd - td;
- Va[5] = sd + rd;
- Va[6] = qd - pd;
- Va[7] = od + rd
- } else if (Oa == Wd.SZ)
- for (var ud = Z.vertices, Cc = 0, ze = ud.length; Cc < ze; Cc++) Q.k.push(ud[Cc] * Y.scale);
- ta = Q;
- null != ta && (J.EO[ma + ":" + fa] = ta)
- }
- }
- u.gia.push(J);
- "default" == J.name && (u.u_ = J)
- }
- var zc = s.events,
- Rb;
- for (Rb in zc)
- if (zc.hasOwnProperty(Rb)) {
- var Ac = zc[Rb],
- Sb = new Ud(Rb);
- Sb.RP = Ac["int"] || 0;
- Sb.bP = Ac["float"] || 0;
- Sb.stringValue = Ac.string || null;
- u.ym.push(Sb)
- }
- var Bc = s.animations,
- Tb;
- for (Tb in Bc)
- if (Bc.hasOwnProperty(Tb)) {
- var mf = p,
- nf = Tb,
- cc = Bc[Tb],
- tb = u,
- hb = [],
- Fa = 0,
- Sc = cc.bones,
- ub = void 0;
- for (ub in Sc)
- if (Sc.hasOwnProperty(ub)) {
- var Tc = tb.cda(ub);
- if (-1 == Tc) throw "Bone not found: " + ub;
- var Uc = Sc[ub],
- Aa;
- for (Aa in Uc)
- if (Uc.hasOwnProperty(Aa)) {
- var Ba = Uc[Aa];
- if ("rotate" == Aa) {
- var X = new Kd(Ba.length);
- X.ex = Tc;
- for (var ra = 0, ea = 0, Ia = Ba.length; ea < Ia; ea++) {
- var ya = Ba[ea];
- X.Lm(ra, ya.time, ya.angle);
- ge(X, ra, ya);
- ra++
- }
- hb.push(X);
- Fa = Math.max(Fa, X.frames[2 * X.Am() - 2])
- } else if ("translate" ==
- Aa || "scale" == Aa) {
- var Vc = 1;
- "scale" == Aa ? X = new Md(Ba.length) : (X = new Ld(Ba.length), Vc = mf.scale);
- X.ex = Tc;
- ea = ra = 0;
- for (Ia = Ba.length; ea < Ia; ea++) ya = Ba[ea], X.Lm(ra, ya.time, (ya.x || 0) * Vc, (ya.y || 0) * Vc), ge(X, ra, ya), ra++;
- hb.push(X);
- Fa = Math.max(Fa, X.frames[3 * X.Am() - 3])
- } else throw "Invalid timeline type for a bone: " + Aa + " (" + ub + ")";
- }
- }
- var Wc = cc.slots,
- Eb = void 0;
- for (Eb in Wc)
- if (Wc.hasOwnProperty(Eb)) {
- var Xc = Wc[Eb],
- Fb = tb.qH(Eb);
- for (Aa in Xc)
- if (Xc.hasOwnProperty(Aa))
- if (Ba = Xc[Aa], "color" == Aa) {
- X = new Nd(Ba.length);
- X.KC = Fb;
- ea = ra = 0;
- for (Ia = Ba.length; ea < Ia; ea++) {
- var ya = Ba[ea],
- dc = ya.color,
- of = he(dc, 0),
- pf = he(dc, 1),
- qf = he(dc, 2),
- rf = he(dc, 3);
- X.Lm(ra, ya.time, of, pf, qf, rf);
- ge(X, ra, ya);
- ra++
- }
- hb.push(X);
- Fa = Math.max(Fa, X.frames[5 * X.Am() - 5])
- } else if ("attachment" == Aa) {
- X = new Od(Ba.length);
- X.KC = Fb;
- ea = ra = 0;
- for (Ia = Ba.length; ea < Ia; ea++) ya = Ba[ea], X.Lm(ra++, ya.time, ya.name);
- hb.push(X);
- Fa = Math.max(Fa, X.frames[X.Am() - 1])
- } else throw "Invalid timeline type for a slot: " + Aa + " (" + Eb + ")";
- }
- var ec = cc.events;
- if (ec) {
- X = new Pd(ec.length);
- ea = ra = 0;
- for (Ia = ec.length; ea <
- Ia; ea++) {
- var Sa = ec[ea],
- ib;
- a: {
- for (var Yc = tb.ym, fc = 0, sf = Yc.length; fc < sf; fc++)
- if (Yc[fc].name == Sa.name) {
- ib = Yc[fc];
- break a
- }
- ib = null
- }
- if (!ib) throw "Event not found: " + Sa.name;
- var gc = new Vd(ib);
- gc.RP = Sa.hasOwnProperty("int") ? Sa["int"] : ib.RP;
- gc.bP = Sa.hasOwnProperty("float") ? Sa["float"] : ib.bP;
- gc.stringValue = Sa.hasOwnProperty("string") ? Sa.string : ib.stringValue;
- X.Lm(ra++, Sa.time, gc)
- }
- hb.push(X);
- Fa = Math.max(Fa, X.frames[X.Am() - 1])
- }
- var hc = cc.draworder;
- if (hc) {
- for (var X = new Qd(hc.length), Gb = tb.Ef.length, ea = ra = 0, Ia = hc.length; ea <
- Ia; ea++) {
- var Zc = hc[ea],
- jb = null;
- if (Zc.offsets) {
- jb = [];
- jb.length = Gb;
- for (var Ga = Gb - 1; 0 <= Ga; Ga--) jb[Ga] = -1;
- var $c = Zc.offsets,
- ic = [];
- ic.length = Gb - $c.length;
- for (var vb = 0, ad = 0, Ga = 0, tf = $c.length; Ga < tf; Ga++) {
- var bd = $c[Ga],
- Fb = tb.qH(bd.slot);
- if (-1 == Fb) throw "Slot not found: " + bd.slot;
- for (; vb != Fb;) ic[ad++] = vb++;
- jb[vb + bd.offset] = vb++
- }
- for (; vb < Gb;) ic[ad++] = vb++;
- for (Ga = Gb - 1; 0 <= Ga; Ga--) - 1 == jb[Ga] && (jb[Ga] = ic[--ad])
- }
- X.Lm(ra++, Zc.time, jb)
- }
- hb.push(X);
- Fa = Math.max(Fa, X.frames[X.Am() - 1])
- }
- tb.lB.push(new Gd(nf, hb, Fa))
- }
- g = u;
- m = !0
- } else g = c, m = d;
- this.LHa(g, m);
- this.j()
- },
- SZ: function() {
- for (var c = f.gv, d = f.gv, e = f.p5, g = f.p5, h = this.ka, k = this.ra, m = [], n = this.$e.Ef, p = 0, s = n.length; p < s; ++p) {
- var u = n[p];
- if (u.Xh && 0 == u.Xh.type) {
- var v = u.yl.x,
- z = u.yl.y,
- A = u.ij,
- B = m,
- u = u.Xh.offset,
- v = v + A.Qm,
- z = z + A.Rm;
- B[0] = u[0] * A.Hm + u[1] * A.Op + v;
- B[1] = u[0] * A.Im + u[1] * A.m11 + z;
- B[2] = u[2] * A.Hm + u[3] * A.Op + v;
- B[3] = u[2] * A.Im + u[3] * A.m11 + z;
- B[4] = u[4] * A.Hm + u[5] * A.Op + v;
- B[5] = u[4] * A.Im + u[5] * A.m11 + z;
- B[6] = u[6] * A.Hm + u[7] * A.Op + v;
- B[7] = u[6] * A.Im + u[7] * A.m11 + z;
- c = Math.min(c, m[0] * h, m[6] * h, m[2] *
- h, m[4] * h);
- d = Math.min(d, m[1] * k, m[7] * k, m[3] * k, m[5] * k);
- e = Math.max(e, m[0] * h, m[6] * h, m[2] * h, m[4] * h);
- g = Math.max(g, m[1] * k, m[7] * k, m[3] * k, m[5] * k)
- }
- }
- h = this.Od();
- return x(h.x + c, h.y + d, e - c, g - d)
- },
- YC: function() {
- this.$e.YC()
- },
- Pu: function() {
- this.$e.Pu()
- },
- n2: function() {
- this.$e.n2()
- },
- Q2: function() {
- this.$e.Q2()
- },
- pH: function(c) {
- return this.$e.pH(c)
- },
- S_: function(c) {
- return this.$e.S_(c)
- },
- Qha: function(c) {
- var d = this.$e,
- e;
- a: {
- e = d.data.gia;
- for (var g = 0, h = e.length; g < h; g++)
- if (e[g].name == c) {
- e = e[g];
- break a
- }
- e = null
- }
- if (!e) throw "Skin not found: " +
- c;
- d.Qha(e)
- },
- rH: function(c, d) {
- var e = this.$e;
- return Ed(e, e.data.qH(c), d)
- },
- Yx: function(c, d) {
- return this.$e.Yx(c, d)
- },
- ee: function(c) {
- this.lN = c
- },
- vg: function() {
- return this.lN
- },
- LHa: function(c, d) {
- var e = this.$e = new Td(c);
- this.cua = 0 == e.xd.length ? null : e.xd[0];
- this.xta = d;
- if (f.K === f.fb)
- for (var e = this.$e, g, h, k = 0, m = e.mu.length; k < m; k++) {
- var n = e.mu[k];
- g = n.Xh;
- g instanceof Xd && (g = g.Sx, h = x(g.x, g.y, g.width, g.height), g = f.q.create(g.page.fa, h, g.rotate), this.n(g, -1), n.Dca = g)
- }
- },
- DH: function(c) {
- return c.Sx.page.Sx
- },
- ck: function() {
- return this.B
- },
- ce: function(c) {
- this.B = c
- },
- update: function(c) {
- this.$e.update(c);
- if (f.K === f.fb) {
- this.$a();
- this.$e.YC();
- c = this.$e.mu;
- for (var d = 0, e = c.length; d < e; d++) {
- var g = c[d],
- h = g.Xh,
- k = g.Dca;
- if (h instanceof Xd) {
- if (!k) {
- var m = h.Sx,
- m = f.q.create(m.page.fa, x(m.x, m.y, m.width, m.height), m.rotate);
- this.n(m, -1);
- g.Dca = m
- }
- k.za(!0);
- k.ce(f.Mc, g.data.wZ ? f.ONE : f.Lc);
- m = g.ij;
- k.o(m.Qm + h.x * m.Hm + h.y * m.Op, m.Rm + h.x * m.Im + h.y * m.m11);
- k.ib(m.ry, m.sy);
- k.yh(-(g.ij.uJ + h.rotation))
- } else k && k.za(!1)
- }
- }
- },
- ma: null,
- fn: function() {
- f.qC(this);
- var c = this.$a(),
- d = this.$e;
- d.r = c.r / 255;
- d.g = c.g / 255;
- d.b = c.b / 255;
- d.a = this.vb() / 255;
- this.lN && (d.r *= d.a, d.g *= d.a, d.b *= d.a);
- var e, g, h, k, m, n = new f.Yc,
- p = this.B,
- c = 0;
- for (m = d.Ef.length; c < m; c++)
- if (k = d.mu[c], k.Xh && 0 == k.Xh.type) {
- h = k.Xh;
- var s = this.DH(h);
- k.data.wZ != e ? (g && (g.yB(), g.AC()), e = !e, f.Fm(p.src, e ? f.ONE : p.ha)) : s != g && g && (g.yB(), g.AC());
- g = s;
- s = g.Vb;
- if (g.cg == s && (g.yB(), g.AC(), !g.NQ(2 * g.cg))) return;
- ve(h, k, n, this.lN);
- g.rJ(n, s)
- }
- g && (g.yB(), g.AC());
- e = f.If;
- if (this.BL)
- for (e.wj(0, 0, 255, 255), e.Ju(1), c = 0, m = d.Ef.length; c < m; c++) k = d.mu[c],
- k.Xh && 0 == k.Xh.type && (h = k.Xh, n = new f.Yc, ve(h, k, n), g = [], g.push(r(n.T.k.x, n.T.k.y)), g.push(r(n.aa.k.x, n.aa.k.y)), g.push(r(n.W.k.x, n.W.k.y)), g.push(r(n.Z.k.x, n.Z.k.y)), e.Sf(g, 4, !0));
- if (this.AL) {
- e.Ju(2);
- e.wj(255, 0, 0, 255);
- c = 0;
- for (m = d.xd.length; c < m; c++) n = d.xd[c], e.Sn(r(n.Qm, n.Rm), r(n.data.length * n.Hm + n.Qm, n.data.length * n.Im + n.Rm));
- e.C2(4);
- e.wj(0, 0, 255, 255);
- c = 0;
- for (m = d.xd.length; c < m; c++) n = d.xd[c], e.C_(r(n.Qm, n.Rm)), 0 == c && e.wj(0, 255, 0, 255)
- }
- },
- Rq: function() {
- if (this.BL || this.AL) {
- var c = this.$e,
- d, e, g, h, k = f.If;
- if (this.BL) {
- k.wj(0, 0, 255, 255);
- k.Ju(1);
- var m = [];
- g = 0;
- for (h = c.Ef.length; g < h; g++)
- if (e = c.mu[g], e.Xh && 0 == e.Xh.type) {
- d = e.Xh;
- var n = m;
- if (n) {
- var p = {};
- Yd(d, e.yl.x, e.yl.y, e.ij, p);
- n.length = 0;
- n.push(r(p[0], p[1]));
- n.push(r(p[6], p[7]));
- n.push(r(p[4], p[5]));
- n.push(r(p[2], p[3]))
- }
- k.Sf(m, 4, !0)
- }
- }
- if (this.AL) {
- k.Ju(2);
- k.wj(255, 0, 0, 255);
- g = 0;
- for (h = c.xd.length; g < h; g++) d = c.xd[g], k.Sn(r(d.Qm, d.Rm), r(d.data.length * d.Hm + d.Qm, d.data.length * d.Im + d.Rm));
- k.C2(4);
- k.wj(0, 0, 255, 255);
- g = 0;
- for (h = c.xd.length; g < h; g++) d = c.xd[g], k.C_(r(d.Qm,
- d.Rm)), 0 === g && k.wj(0, 255, 0, 255)
- }
- }
- }
- });
- we.prototype.ma = f.K === f.na ? we.prototype.fn : we.prototype.Rq;
- we.mxa = function(c, d) {
- var e = new we;
- e.KP.apply(e, arguments);
- return e
- };
- we.create = function(c, d, e) {
- var g = new we;
- g.KP.apply(g, arguments);
- return g
- };
- var ue = {
- iia: null,
- yGa: function(c) {
- this.iia = c
- },
- load: function(c, d) {
- var e = f.path.join(f.path.dirname(this.iia), d);
- f.K === f.na ? (e = f.nb.vd(e), c.Sx = f.wq.create(e, 128), c.width = e.h0(), c.height = e.g0()) : c.fa = f.nb.vd(e)
- },
- E5a: function() {}
- };
- function ve(c, d, e, g) {
- var h = {};
- Yd(c, d.yl.x, d.yl.y, d.ij, h);
- var k = d.yl.r * d.r * 255,
- m = d.yl.g * d.g * 255,
- n = d.yl.b * d.b * 255;
- d = d.yl.a * d.a;
- g && (k *= d, m *= d, n *= d);
- e.T.D.r = e.Z.D.r = e.W.D.r = e.aa.D.r = k;
- e.T.D.g = e.Z.D.g = e.W.D.g = e.aa.D.g = m;
- e.T.D.b = e.Z.D.b = e.W.D.b = e.aa.D.b = n;
- e.T.D.a = e.Z.D.a = e.W.D.a = e.aa.D.a = 255 * d;
- e.T.k.x = h[0];
- e.T.k.y = h[1];
- e.Z.k.x = h[2];
- e.Z.k.y = h[3];
- e.W.k.x = h[4];
- e.W.k.y = h[5];
- e.aa.k.x = h[6];
- e.aa.k.y = h[7];
- e.T.t.Da = c.fq[0];
- e.T.t.ga = c.fq[1];
- e.Z.t.Da = c.fq[2];
- e.Z.t.ga = c.fq[3];
- e.W.t.Da = c.fq[4];
- e.W.t.ga = c.fq[5];
- e.aa.t.Da =
- c.fq[6];
- e.aa.t.ga = c.fq[7]
- }
- var xe = we.extend({
- Ic: null,
- ad: null,
- bg: null,
- j: function() {
- this._super();
- this.wGa(new $d(this.$e.data))
- },
- wGa: function(c) {
- c = new ce(c);
- c.Sp = this.jta.bind(this);
- c.sC = this.gta.bind(this);
- c.Rp = this.hta.bind(this);
- c.tC = this.ita.bind(this);
- this.Ic = c
- },
- mha: function(c, d, e) {
- var g = this.Ic.data,
- h = Sd(g.fia, c);
- if (!h) throw "Animation not found: " + c;
- c = Sd(g.fia, d);
- if (!c) throw "Animation not found: " + d;
- g.mha(h, c, e)
- },
- u2a: function(c, d) {
- this.ad = c;
- this.bg = d
- },
- Xx: function(c, d, e) {
- var g = Sd(this.$e.data, d);
- return g ? this.Ic.Xx(c, g,
- e) : (f.log("Spine: Animation not found: " + d), 0)
- },
- TG: function(c, d, e, g) {
- var h = Sd(this.$e.data, d);
- return h ? this.Ic.TG(c, h, e, g) : (f.log("Spine: Animation not found:" + d), 0)
- },
- vda: function(c) {
- return this.Ic.vda(c)
- },
- qca: function() {
- this.Ic.qca()
- },
- MO: function(c) {
- this.Ic.MO(c)
- },
- update: function(c) {
- this._super(c);
- c *= this.Wt;
- this.Ic.update(c);
- this.Ic.apply(this.$e);
- this.$e.YC()
- },
- jta: function(c) {
- this.TK(c, 0, null, 0)
- },
- hta: function(c) {
- this.TK(c, 1, null, 0)
- },
- gta: function(c, d) {
- this.TK(c, 2, null, d)
- },
- ita: function(c, d) {
- this.TK(c,
- 3, d, 0)
- },
- TK: function(c, d, e, g) {
- this.ad && this.bg && this.bg.call(this.ad, this, c, d, e, g)
- }
- });
- xe.mxa = function(c) {
- var d = new xe;
- d.KP.apply(d, arguments);
- return d
- };
- xe.create = function(c, d, e) {
- var g = new xe;
- g.KP.apply(g, arguments);
- return g
- };
- f.r0a = {
- hp: {},
- D0a: function(c) {
- if (c instanceof f.v) {
- var d = c.constructor.prototype.IU;
- if (!d) {
- var e = {
- writable: !0,
- enumerable: !1,
- configurable: !0
- };
- e.value = da.Hda();
- Object.defineProperty(c.constructor.prototype, "__pid", e)
- }
- this.hp[d] || (this.hp[d] = []);
- c.G5a();
- this.hp[d].push(c)
- }
- },
- ZBa: function(c) {
- return (c = this.hp[c.prototype.IU]) && 0 != c.length ? !0 : !1
- },
- p1a: function(c) {
- var d = c.constructor.prototype.IU;
- if (d && (d = this.hp[d]))
- for (var e = 0; e < d.length; e++) c === d[e] && (c.wh(), d.splice(e, 1))
- },
- aUa: function(c) {
- if (this.ZBa(c)) {
- var d =
- this.hp[c.prototype.IU],
- e = Array.prototype.slice.call(arguments);
- e.shift();
- d = d.pop();
- d.PQ.apply(d, e);
- return d
- }
- },
- cRa: function() {
- for (var c in this.hp)
- for (var d = 0; d < this.hp[c].length; d++) this.hp[c][d].wh();
- this.hp = {}
- }
- };
- var Ha = {
- ica: "res/bg.png",
- jca: "res/board.png",
- qwa: "res/arron.png",
- dCa: "res/icon.png",
- qxa: "res/data_img_10_01.png"
- },
- ye = [Ha.ica, Ha.jca, Ha.qwa, Ha.dCa, Ha.qxa, "res/LevelNumbers.png", "res/LevelNumbers.fnt", "res/data_img_01_list4.png", "res/data_img_01_list4.plist", "res/data_img_01_list5.png", "res/data_img_01_list5.plist"];
- for (var S = [], Ae = [], Be = 0; 7 > Be; Be++) {
- S.push([]);
- for (var Ce = 0; 6 > Ce; Ce++) S[Be][Ce] = 0, Ae[Ce] = !1
- }
- var De = [0, 50, 150, 300, 500, 800, 1200, 2E3, 3E3, 5E3],
- Ee = [50, 150, 300, 500, 800, 1200, 2E3, 3E3, 5E3, 999999],
- Fe = [99.5, 90, 80, 70, 60, 50, 40, 30, 20, 10],
- Ge = [99.5, 99.4, 89.9, 79.9, 69.9, 59.9, 49.9, 39.9, 29.9, 19.9],
- He = [0, 100, 300, 600, 1E3, 1500, 2200, 3E3, 4E3, 5500, 7500, 1E4, 15E3],
- Ie = [100, 300, 600, 1E3, 1500, 2200, 3E3, 4E3, 5500, 7500, 1E4, 15E3, 2E4],
- Je = [1, 5.5, 10.5, 15.5, 20.5, 25.5, 30.5, 40.5, 50.5, 60.5, 70.5, 80.5, 90.5],
- Ke = [5.5, 10.5, 15.5, 20.5, 25.5, 30.5, 40.5, 50.5, 60.5, 70.5, 80.5, 90.5, 99.5],
- Le = 0,
- Me = 0,
- T, Ne, Oe = 9999,
- Pe = !1,
- Qe = 9999,
- Re = !1,
- Se = 2E5,
- Te = !1,
- Ue =
- 0,
- Ve = 0,
- We = !0,
- Xe = !0,
- U = 0,
- Ye = 0,
- Ze = 0,
- $e = !1,
- af = 0,
- bf = !1,
- cf = null,
- df = null,
- ef = !0,
- $ = f.Je,
- ff = 0,
- gf = !1,
- hf = !1,
- jf = !1,
- kf = 0,
- lf = 0,
- uf = !1,
- wf = f.Me.extend({
- mQa: null,
- HZ: null,
- Xd: null,
- Tca: 0,
- Zxa: 9999,
- aya: 9999,
- Yd: null,
- Uca: 0,
- $xa: 9999,
- bya: 9999,
- O: null,
- qe: 0,
- zXa: !0,
- ZB: !0,
- cYa: !0,
- $G: null,
- $O: null,
- XPa: 0,
- Pr: !0,
- ctor: function() {
- this._super();
- f.Je.vp("res/data_img_01_list4.plist");
- f.Je.vp("res/data_img_01_list5.plist");
- var c = f.Q.Y;
- this.O = 62;
- var d = f.q.create(Ha.ica);
- d.Wa({
- x: 200,
- y: c.height / 2,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0.5
- });
- this.n(d, 0);
- this.HZ = f.q.create(Ha.jca);
- this.HZ.Wa({
- x: 200,
- y: 65,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- this.n(this.HZ, 0);
- this.qe = 81;
- var e = c.height - 10,
- d = f.q.create(f.Je.Ca("data_img_06.png"));
- d.Wa({
- x: 350,
- y: e,
- scale: 1,
- anchorX: 1,
- anchorY: 1
- });
- this.n(d, 1);
- var g = f.q.create(f.Je.Ca("data_img_09.png"));
- g.Wa({
- x: 10,
- y: e,
- scale: 1,
- anchorX: 0,
- anchorY: 1
- });
- this.n(g, 1);
- var h = f.ws.create();
- h.x = 0;
- h.y = 0;
- this.n(h, 1);
- var k = f.q.create("res/data_img_10_01.png");
- k.Wa({
- x: 200,
- y: c.height / 2,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0.5
- });
- this.n(k, 1E3, 7007);
- k.visible = !1;
- c = f.Il.create(f.Je.Ca("help.png"), f.Je.Ca("help.png"), function() {
- var c = this.Za(7007);
- null != c && (jf = c.visible = !0)
- }, this);
- c.Wa({
- x: 395,
- y: e - 10,
- anchorX: 1,
- anchorY: 1
- });
- h.n(c);
- Ze = Ye = U = 0;
- df = window.localStorage;
- cf = df.getItem("isStorage");
- c = df.getItem("G3WE2AFG34");
- null != c && (U = parseInt(c));
- c = df.getItem("JDI392FS39K");
- null != c && (Ye = parseInt(c));
- c = df.getItem("DS2G34AH85F");
- null != c && (Ze = parseInt(c));
- kf = df.getItem("FK38USJSK2E");
- lf = df.getItem("SJ903JLSHNQ");
- c = f.qq.create(Ye.toString(), "res/LevelNumbers.fnt");
- c.anchorX =
- 0;
- c.anchorY = 0.5;
- c.x = g.x + 0.6 * g.width;
- c.y = g.y - 0.6 * g.height;
- this.n(c, 1, 5050);
- af = d.x - 0.65 * d.width;
- numberFirstY = d.y - 0.6 * d.height;
- d = f.qq.create(U.toString(), "res/LevelNumbers.fnt");
- d.anchorX = 0;
- d.anchorY = 0.5;
- d.x = af;
- d.y = numberFirstY;
- this.n(d, 1, 4050);
- null != cf && this.qCa();
- this.ds();
- return !0
- },
- qCa: function() {
- var c = df.getItem("DJIOSI3JSA");
- if (null != c) {
- for (var d = !1, c = c.split("|"), e = 0; e < c.length; e++) {
- for (var g = 9999, h = 9999, k = 9999, m = c[e].split(","), n = 0; n < m.length; n++) 0 == n ? g = m[n] : 1 == n ? h = m[n] : 2 == n && (k = m[n]);
- g = parseInt(g);
- h = parseInt(h);
- k = parseInt(k);
- 0 <= g && 7 > g && 0 <= h && 6 > h && (2 == k || 4 == k || 8 == k || 16 == k || 32 == k || 64 == k || 128 == k || 256 == k || 512 == k || 1024 == k || 2048 == k) && (d = !0, S[g][h] = k, k = f.q.create($.Ca("number" + k + ".png")), k.Wa({
- x: 14 + this.O * h + 0.5 * this.O,
- y: this.qe + this.O * g,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- }), this.n(k, 1, parseInt(1E3 + 10 * g + h)))
- }
- d || this.D0()
- } else this.D0()
- },
- D0: function() {
- var c = Math.round(1 * f.U1()),
- d = c + 2;
- S[0][c] = 2;
- S[0][d] = 4;
- S[0][d + 2] = 8;
- for (c = 0; 7 > c; c++)
- for (d = 0; 6 > d; d++)
- if (c = parseInt(c), d = parseInt(d), 0 < S[c][d]) {
- var e = f.q.create($.Ca("number" +
- S[c][d] + ".png"));
- e.Wa({
- x: 14 + this.O * d + 0.5 * this.O,
- y: this.qe + this.O * c,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- this.n(e, 1, 1E3 + 10 * c + d)
- }
- },
- eza: function() {
- if (uf) {
- var c = 14 + 1.5 * T.O + T.O,
- d = T.qe + 7 * T.O + 14,
- e = f.q.create($.Ca("number2.png"));
- e.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(e, 200, 6500);
- c = 14 + 2.5 * T.O + T.O;
- e = f.q.create($.Ca("number8.png"));
- e.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(e, 200, 6501);
- c = 14 + 2.5 * T.O + T.O;
- d = T.qe + 5 * T.O;
- e = f.q.create($.Ca("hand.png"));
- e.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(e,
- 200, 6502);
- e.scale = 1.4;
- c = f.fe.create(f.Db.create(0.2, 1), f.pv.create(0.2, 10));
- c = f.X.create(c, f.Nb.create(0.4), f.ua.create(T.fza, e, 1));
- e.V(c);
- c = 14 + 2.5 * T.O + T.O;
- d = T.qe;
- e = f.q.create($.Ca("number2.png"));
- e.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(e, 200, 6503);
- c = f.Q.Y;
- d = f.q.create($.Ca("rawssdataNait.png"));
- d.Wa({
- x: c.width / 2,
- y: c.height / 2,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0.5
- });
- T.n(d, 1E3, 6001);
- d = f.q.create($.Ca("rawssdataNait6.png"));
- d.Wa({
- x: 10,
- y: c.height - 160,
- scale: 1,
- anchorX: 0,
- anchorY: 1
- });
- T.n(d, 1E3, 6100)
- }
- },
- fza: function() {
- if (uf) {
- var c = T.Za(6500),
- d = T.Za(6501),
- e = T.Za(6502),
- g = T.qe + 7 * T.O + 14,
- h = T.O,
- k = T.O,
- m = f.Dc.create(0.8, r(c.x - h, g)),
- n = f.Dc.create(0.8, r(c.x + k, g)),
- m = f.X.create(m, n, f.Nb.create(0.4), f.ua.create(T.gza, c, 0));
- c.V(m);
- c = f.Dc.create(0.8, r(d.x - h, g));
- g = f.Dc.create(0.8, r(d.x + k, g));
- g = f.X.create(c, g);
- d.V(g);
- d = f.Dc.create(0.8, r(e.x - h, e.y));
- k = f.Dc.create(0.8, r(e.x + k, e.y));
- k = f.X.create(d, k);
- e.V(k)
- }
- },
- gza: function() {
- if (uf) {
- var c = T.Za(6001),
- d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6001));
- c.V(d);
- c = f.Q.Y;
- d = f.q.create($.Ca("rawssdataNait2.png"));
- d.Wa({
- x: c.width / 2,
- y: c.height / 2 + 70,
- scale: 1,
- anchorX: 0.8,
- anchorY: 0
- });
- T.n(d, 1E3, 6002);
- d.opacity = 0;
- d.V(f.Xc.create(0.7, 255));
- c = T.Za(6502);
- d = f.Dc.create(0.4, r(c.x, c.y - 140));
- d = f.X.create(f.Nb.create(1.4), d, f.ua.create(T.hza, c, 0));
- c.V(d)
- }
- },
- hza: function() {
- if (uf) {
- var c = T.Za(6500),
- d = 14 + 2.5 * T.O + T.O,
- e = T.qe + T.O,
- g = f.Dc.create(0.4, r(d, e)),
- g = f.X.create(g, f.ua.create(T.gCa, c, 1));
- c.V(g);
- c = T.Za(6501);
- d = f.Dc.create(0.4, r(d + T.O, e - T.O));
- c.V(d);
- d = T.Za(6502);
- e = f.X.create(f.Xc.create(0.2,
- 0), f.ua.create(T.vj, d, 6502));
- d.V(e)
- }
- },
- gCa: function() {
- if (uf) {
- var c = T.Za(6002),
- d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6002));
- c.V(d);
- c = f.Q.Y;
- d = f.q.create($.Ca("rawssdataNait3.png"));
- d.Wa({
- x: c.width / 2,
- y: c.height / 2 - 120,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0.5
- });
- T.n(d, 1E3, 6003);
- d.opacity = 0;
- d.V(f.Xc.create(0.7, 255));
- c = T.Za(6503);
- null != c && T.removeChild(c, !0);
- var d = 14 + 2.5 * T.O + T.O,
- e = T.qe,
- c = f.q.create($.Ca("number4.png"));
- c.Wa({
- x: d,
- y: e,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(c, 1, 7002);
- d = f.fe.create(f.Dc.create(0.4,
- r(d, e)), f.Xc.create(0.4, 0));
- e = T.Za(6500);
- d = f.X.create(d, f.ua.create(T.vj, e, 6500));
- e.V(d);
- d = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.Nb.create(0.6), f.ua.create(T.hCa, c, 0));
- c.V(d)
- }
- },
- hCa: function() {
- if (uf) {
- var c = T.Za(6003),
- d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6003));
- c.V(d);
- c = f.Q.Y;
- d = f.q.create($.Ca("rawssdataNait4.png"));
- d.Wa({
- x: c.width / 2,
- y: c.height / 2,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(d, 1E3, 6004);
- d.opacity = 0;
- d.V(f.Xc.create(0.7, 255));
- c = f.X.create(f.Nb.create(1.2), f.ua.create(T.iCa,
- this, 0));
- this.V(c)
- }
- },
- iCa: function() {
- if (uf) {
- var c = 14 + 2.5 * T.O + T.O,
- d = T.qe + 7 * T.O + 14,
- e = f.q.create($.Ca("number4.png"));
- e.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(e, 200, 6600);
- c = 14 + 3.5 * T.O + T.O;
- e = f.q.create($.Ca("number16.png"));
- e.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(e, 200, 6601);
- c = f.Dc.create(0.1, r(c - T.O, d + T.O));
- e.V(c);
- c = 14 + 2.5 * T.O + T.O;
- d = T.qe + 5 * T.O;
- e = f.q.create($.Ca("hand.png"));
- e.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(e, 200, 6602);
- e.scale = 1.4;
- c = f.fe.create(f.Db.create(0.2, 1), f.pv.create(0.2,
- 10));
- c = f.X.create(c, f.Nb.create(1.2), f.ua.create(T.jCa, e, 1));
- e.V(c)
- }
- },
- jCa: function() {
- if (uf) {
- var c = T.Za(6004),
- d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6004));
- c.V(d);
- c = f.Q.Y;
- d = f.q.create($.Ca("rawssdataNait2.png"));
- d.Wa({
- x: c.width / 2,
- y: c.height / 2 + 70,
- scale: 1,
- anchorX: 1,
- anchorY: 0
- });
- T.n(d, 1E3, 6005);
- d.opacity = 0;
- d.V(f.Xc.create(0.7, 255));
- c = T.Za(6602);
- d = f.Dc.create(0.4, r(c.x, c.y - 140));
- d = f.X.create(f.Nb.create(1.2), d, f.ua.create(T.kCa, c, 0));
- c.V(d)
- }
- },
- kCa: function() {
- if (uf) {
- var c = T.Za(6005),
- d = f.X.create(f.Xc.create(0.7,
- 0), f.ua.create(T.vj, c, 6005));
- c.V(d);
- var e = T.Za(6600),
- d = 14 + 2.5 * T.O + T.O,
- c = T.qe + T.O,
- g = f.Dc.create(0.4, r(d, c)),
- g = f.X.create(g, f.ua.create(T.lCa, e, 1));
- e.V(g);
- e = T.Za(6601);
- d = f.Dc.create(1, r(d, c));
- e.V(d);
- c = T.Za(6602);
- d = f.X.create(f.Xc.create(0.2, 0), f.ua.create(T.vj, c, 6602));
- c.V(d)
- }
- },
- lCa: function() {
- if (uf) {
- var c = T.Za(7002);
- null != c && T.removeChild(c, !0);
- var c = 14 + 2.5 * T.O + T.O,
- d = T.qe,
- e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)),
- g = T.Za(6600),
- e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6600));
- g.V(e);
- g = f.q.create($.Ca("number8.png"));
- g.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(g, 1, 6603);
- c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.mCa, g, 0));
- g.V(c)
- }
- },
- mCa: function() {
- if (uf) {
- var c = T.Za(6603);
- null != c && T.removeChild(c, !0);
- var c = 14 + 2.5 * T.O + T.O,
- d = T.qe,
- e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)),
- g = T.Za(6501),
- e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6501));
- g.V(e);
- g = f.q.create($.Ca("number16.png"));
- g.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(g,
- 1, 6605);
- c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.nCa, g, 0));
- g.V(c)
- }
- },
- nCa: function() {
- if (uf) {
- var c = T.Za(6605);
- null != c && T.removeChild(c, !0);
- var c = 14 + 2.5 * T.O + T.O,
- d = T.qe,
- e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)),
- g = T.Za(6601),
- e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6601));
- g.V(e);
- g = f.q.create($.Ca("number32.png"));
- g.Wa({
- x: c,
- y: d,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(g, 1, 1003);
- S[0][3] = 32;
- c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.oCa,
- g, 0));
- g.V(c)
- }
- },
- oCa: function() {
- if (uf) {
- T.te(6100, !0);
- var c = f.Q.Y,
- d = f.q.create($.Ca("rawssdataNait5.png"));
- d.Wa({
- x: c.width / 2,
- y: c.height / 2,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0.5
- });
- T.n(d, 1E3, 6005);
- d.opacity = 0;
- c = f.X.create(f.Xc.create(0.4, 255), f.Nb.create(0.7), f.Xc.create(0.7, 0), f.ua.create(T.vj, d, 6005));
- d.V(c);
- df.setItem("isStorage", 3);
- cf = 3;
- uf = !1;
- vf = !0;
- T.KR()
- }
- },
- update: function(c) {
- if (!Te) {
- if (We) {
- We = !1;
- if (null == cf) {
- uf = !0;
- this.eza();
- return
- }
- 1 == Ze ? (Ze = 3, Ne.visible = !0, Ne.uZ(2), T.Pr = !1) : $e ? ($e = !1, Ne.visible = !0, Ne.uZ(3),
- T.Pr = !1) : (vf = !0, this.KR())
- }
- Ve += c;
- 1E3 < Ve && (Ve = 0);
- ef || 1 != getCallback() || (T.qga(), ef = !0)
- }
- },
- rQ: function() {
- if (!Te) {
- for (var c = Me = 0; 7 > c; c++)
- for (var d = 0; 6 > d; d++)
- if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < c && 0 == S[c - 1][d]) {
- var e = T.Za(1E3 + 10 * c + d),
- g = 14 + 0.5 * T.O + T.O * d,
- h = T.qe + T.O * (c - 1);
- e.tag = 1E3 + 10 * (c - 1) + d;
- g = f.X.create(f.Dc.create(0.2, r(g, h)), f.ua.create(T.TDa, e, 0));
- e.V(g);
- S[c - 1][d] = S[c][d];
- S[c][d] = 0;
- Me++;
- Ue++
- }
- if (0 == Me)
- if (0 == Ue) {
- for (c = 0; 6 > c; c++)
- if (0 < S[6][c]) {
- Te = !0;
- Ne.visible = !0;
- Ne.uZ(1);
- return
- }
- hf ? gf ? (T.ZB = !0, T.KR()) :
- (gf = !0, ff = 1, T.Sca()) : (hf = !0, ff = 1, T.Rca())
- } else T.i_()
- }
- },
- TDa: function() {
- Me--;
- 0 >= Me && (Ue = 1, T.rQ())
- },
- i_: function() {
- if (!Te) {
- Xe = !0;
- for (var c = 0; 7 > c; c++)
- for (var d = 0; 6 > d; d++)
- if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < c && Xe && 0 < S[c - 1][d] && S[c][d] == S[c - 1][d]) {
- var e = T.Za(1E3 + 10 * (c - 1) + d);
- null != e && T.removeChild(e, !0);
- e = T.Za(1E3 + 10 * c + d);
- null != e && (Se++, e.tag = Se);
- var g = 14 + 0.5 * T.O + T.O * d,
- h = T.qe + T.O * (c - 1),
- k = 2 * S[c - 1][d],
- m = k;
- 4096 == k && (m = 2048);
- m = f.q.create($.Ca("number" + m + ".png"));
- m.Wa({
- x: g,
- y: h,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(m, 1, 1E3 + 10 * (c - 1) + d);
- S[c - 1][d] = k;
- S[c][d] = 0;
- var n = f.fe.create(f.Dc.create(0.4, r(g, h)), f.Xc.create(0.4, 0)),
- n = f.X.create(n, f.ua.create(T.vj, e, Se));
- e.V(n);
- e = [g, h, k, c - 1, d];
- n = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.dda, m, e));
- m.V(n);
- Xe = !1;
- break
- }
- if (Xe)
- if (bf) T.JDa();
- else {
- e = !0;
- bf = !1;
- for (c = 0; 7 > c; c++)
- for (d = 0; 6 > d; d++)
- if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < d && e && 0 < S[c][d - 1] && S[c][d] == S[c][d - 1]) {
- e = T.Za(1E3 + 10 * c + (d - 1));
- null != e && T.removeChild(e, !0);
- e = T.Za(1E3 + 10 * c + d);
- null != e && (Se++,
- e.tag = Se);
- g = 14 + 0.5 * T.O + T.O * (d - 1);
- h = T.qe + T.O * c;
- m = k = 2 * S[c][d - 1];
- 4096 == k && (m = 2048);
- m = f.q.create($.Ca("number" + m + ".png"));
- m.Wa({
- x: g,
- y: h,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(m, 1, 1E3 + 10 * c + (d - 1));
- S[c][d - 1] = k;
- S[c][d] = 0;
- n = f.fe.create(f.Dc.create(0.4, r(g, h)), f.Xc.create(0.4, 0));
- n = f.X.create(n, f.ua.create(T.vj, e, Se));
- e.V(n);
- e = [g, h, k, c, d - 1];
- n = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.dda, m, e));
- m.V(n);
- g = !1;
- for (e = 0; 7 > e; e++)
- if (e = parseInt(e), 0 < S[e][d]) {
- g = !0;
- break
- }
- if (!g && (g = parseInt(d), 5 > d))
- for (d +=
- 1; 6 > d; d++)
- if (d = parseInt(d), g + 1 == d) {
- h = !1;
- for (e = 0; 7 > e; e++)
- if (0 < S[e][d]) {
- h = !0;
- break
- }
- h && 0 < d && (bf = !0, Ae[d] = !0, g = d)
- } else break;
- e = !1;
- break
- }
- e && (Ue = 0, T.rQ())
- }
- }
- },
- dda: function(c, d) {
- var e = d[0],
- g = d[1] + 0.4 * T.O,
- h = d[2],
- k = d[3],
- m = d[4];
- Se++;
- var n = f.q.create($.Ca("data.dat_000034.png"));
- n.Wa({
- x: e,
- y: g,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(n, 1E4, Se);
- e = f.fe.create(f.Xc.create(0.2, 255), f.Dc.create(0.4, r(e, g + 20)));
- e = f.X.create(e, f.ua.create(T.vj, n, Se));
- n.V(e);
- T.hha(1);
- if (2048 == h && 0 == Ze) We = !0, Ze = 1;
- else if (100 == U || 300 == U || 500 ==
- U || 1E3 == U || 1500 == U || 2E3 == U || 2500 == U || 3E3 == U || 3500 == U || 4E3 == U || 4500 == U || 5E3 == U || 5500 == U || 6E3 == U || 6500 == U || 7E3 == U || 7500 == U || 8E3 == U || 8500 == U || 9E3 == U || 9500 == U || 1E4 == U) $e = We = !0;
- 2048 == h && T.iha(1);
- 4096 == h && (S[k][m] = 0, h = T.Za(1E3 + 10 * k + m), null != h && T.removeChild(h, !0));
- Ue = 1;
- T.rQ()
- },
- JDa: function() {
- if (!Te) {
- Le = 0;
- for (var c = !1, d = 0; 6 > d; d++)
- if (d = parseInt(d), Ae[d])
- for (var e = 0; 7 > e; e++)
- if (e = parseInt(e), 0 < S[e][d]) {
- Le++;
- var c = T.Za(1E3 + 10 * e + d),
- g = d - 1;
- c.tag = 1E3 + 10 * e + g;
- var h = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * g, T.qe + T.O * e)),
- h = f.X.create(h, f.ua.create(T.dza, c, 0));
- c.V(h);
- S[e][g] = S[e][d];
- S[e][d] = 0;
- c = !0
- }
- for (d = 0; 6 > d; d++) Ae[d] = !1;
- bf = !1;
- c || (Ue = 1, T.rQ())
- }
- },
- dza: function() {
- Le--;
- 0 >= Le && T.i_()
- },
- KR: function() {
- if (T.ZB) {
- T.ZB = !1;
- T.Pr = !0;
- for (var c = 2, d = 4, e = 0; 2 > e; e++) {
- var g = 14 + 2.5 * T.O + T.O * e,
- h = T.qe + 7 * T.O + 14;
- if (0 == e) {
- var k = Math.round(3 * f.U1()) + 1;
- 1 == k ? c = 2 : 2 == k ? c = 4 : 3 == k ? c = 8 : 4 == k && (c = 16);
- null == kf || 2 != kf && 4 != kf && 8 != kf && 16 != kf || (c = kf);
- T.Xd = f.q.create($.Ca("number" + c + ".png"));
- T.Xd.Wa({
- x: g,
- y: h,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(T.Xd, 200, 3E3);
- df.setItem("FK38USJSK2E", c);
- kf = 0;
- Oe = 2;
- Pe = !1;
- T.Tca = c
- } else if (1 == e) {
- for (var m = 0; 100 > m && (k = Math.round(3 * f.U1()) + 1, 1 == k ? d = 2 : 2 == k ? d = 4 : 3 == k ? d = 8 : 4 == k && (d = 16), c == d); m++);
- c == d && (2 == c ? d = 4 : 4 == c ? d = 2 : 8 == c ? d = 4 : 16 == c && (d = 8));
- null == lf || 2 != lf && 4 != lf && 8 != lf && 16 != lf || (d = lf);
- T.Yd = f.q.create($.Ca("number" + d + ".png"));
- T.Yd.Wa({
- x: g,
- y: h,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(T.Yd, 200, 3001);
- df.setItem("SJ903JLSHNQ", d);
- lf = 0;
- Qe = 3;
- Re = !1;
- T.Uca = d
- }
- }
- this.bia(!0)
- }
- },
- bia: function(c) {
- for (var d, e = 0; 7 > e; e++)
- for (var g = 0; 6 > g; g++) {
- var h = 0;
- c &&
- (h = S[e][g]);
- d = 0 == e && 0 == g ? e + "," + g + "," + h + "|" : 6 == e && 5 == g ? d + e + "," + g + "," + h : d + e + "," + g + "," + h + "|"
- }
- c ? (df.setItem("G3WE2AFG34", U), df.setItem("JDI392FS39K", Ye), df.setItem("DS2G34AH85F", Ze)) : (df.setItem("G3WE2AFG34", 0), df.setItem("JDI392FS39K", 0), df.setItem("DS2G34AH85F", 0));
- df.setItem("DJIOSI3JSA", d)
- },
- ba: function() {
- this._super();
- f.Qa.addListener({
- event: f.Xa.zs,
- rc: function(c) {
- if (Te || !T.Pr || !0 == Ne.visible) return !1;
- if (uf) T.te(6500, !0), T.te(6501, !0), T.te(6502, !0), T.te(6503, !0), T.te(6001, !0), T.te(6002, !0), T.te(6003, !0), T.te(6004, !0), T.te(6005, !0), T.te(7002, !0), T.te(6600, !0), T.te(6601, !0), T.te(6602, !0), T.te(6603, !0), T.te(6604, !0), T.te(6605, !0), T.te(6100, !0), df.setItem("isStorage", 3), cf = 3, T.D0(), uf = !1, vf = !0, T.KR();
- else {
- if (jf) {
- var d = T.Za(7007);
- if (null != d) return jf = d.visible = !1
- }
- Ve = 0;
- T.$G = c.cf();
- T.$O = c.cf();
- return !0
- }
- },
- hd: function(c) {
- if (!Te && !0 != Ne.visible && !T.ZB && T.Pr) {
- var d = c.cf(),
- e = Math.abs(T.$O.x - d.x);
- 15 < Math.abs(Math.abs(d.x - T.$G.x)) && 5 < e && (d = T.$O.x - d.x, T.Xd.x -= d, T.Yd.x -= d);
- T.$O = c.cf()
- }
- },
- gd: function(c) {
- if (!Te &&
- !0 != Ne.visible && !T.ZB && T.Pr) {
- var d = c.cf();
- c = Math.abs(d.y - T.$G.y);
- if (Oe <= Qe)
- if (T.Xd.x < 14 + 0.5 * T.O) {
- var e = 14 + 0.5 * T.O - T.Xd.x;
- T.Xd.x = 14 + 0.5 * T.O;
- T.Yd.x += e
- } else T.Yd.x > 14 + 6 * T.O - 0.5 * T.O && (e = T.Yd.x - (14 + 6 * T.O - 0.5 * T.O), T.Yd.x = 14 + 6 * T.O - 0.5 * T.O, T.Xd.x -= e);
- else T.Yd.x < 14 + 0.5 * T.O ? (e = 14 + 0.5 * T.O - T.Yd.x, T.Yd.x = 14 + 0.5 * T.O, T.Xd.x += e) : T.Xd.x > 14 + 6 * T.O - 0.5 * T.O && (e = T.Xd.x - (14 + 6 * T.O - 0.5 * T.O), T.Xd.x = 14 + 6 * T.O - 0.5 * T.O, T.Yd.x -= e);
- for (var e = 9999, g = 0; 6 > g; g++)
- if (T.Xd.x > 14 + T.O * g && T.Xd.x <= 14 + T.O * (g + 1)) {
- e = g;
- break
- }
- 9999 != e && (Oe = e, T.Xd.x =
- 14 + 0.5 * T.O + T.O * Oe);
- e = 9999;
- for (g = 0; 6 > g; g++)
- if (T.Yd.x > 14 + T.O * g && T.Yd.x <= 14 + T.O * (g + 1)) {
- e = g;
- break
- }
- 9999 != e && (Qe = e, T.Yd.x = 14 + 0.5 * T.O + T.O * Qe);
- e = Math.abs(d.x - T.$G.x);
- ff = 2;
- if (0.4 > Ve && 50 < c && 70 > e && T.$G.y > d.y) {
- if (Oe != Qe) {
- hf = gf = !0;
- T.Pca();
- T.Qca();
- return
- }
- if (Re) {
- (c = T.Pca()) ? (hf = gf = !0, T.Rca()) : (ff--, hf = !1);
- return
- }
- if (Pe) {
- (c = T.Qca()) ? (hf = gf = !0, T.Sca()) : (ff--, gf = !1);
- return
- }
- }
- d = T.qe + 7 * T.O + 14;
- 10 > e && 10 > c && (Oe < Qe ? (Qe = Oe, Re = !0, T.Yd.y = d + T.O) : Oe == Qe ? 0 == Oe ? Re ? (Oe += 1, Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Qe = Oe + 1, T.Xd.y = d, Pe = !1) : 5 == Oe ?
- Re ? (Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Oe -= 1, T.Xd.y = d, Pe = !1) : Re ? (Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Qe = Oe + 1, T.Xd.y = d, Pe = !1) : Oe > Qe && (Qe = Oe, Pe = !0, T.Xd.y = d + T.O), T.Xd.x = 14 + 0.5 * T.O + T.O * Oe, T.Yd.x = 14 + 0.5 * T.O + T.O * Qe)
- }
- }
- }, this)
- },
- lH: function(c) {
- var d = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * Oe, T.qe + T.O * c));
- T.Zxa = c;
- T.aya = Oe;
- T.Xd.tag = 1E3 + 10 * c + Oe;
- S[c][Oe] = T.Tca;
- c = f.X.create(d, f.ua.create(T.$ca, T.Xd, 1));
- T.Xd.V(c);
- T.Pr = !1
- },
- mH: function(c) {
- var d = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * Qe, T.qe + T.O * c));
- T.$xa = c;
- T.bya = Qe;
- T.Yd.tag = 1E3 + 10 * c + Qe;
- S[c][Qe] =
- T.Uca;
- c = f.X.create(d, f.ua.create(T.$ca, T.Yd, 2));
- T.Yd.V(c);
- T.Pr = !1
- },
- Pca: function() {
- for (var c = 5; 0 <= c; c--) {
- if (0 < S[c][Oe]) {
- if (5 == c) return T.lH(c + 1), !1;
- T.lH(c + 1);
- return !0
- }
- if (0 == c) return T.lH(c), !0
- }
- },
- Qca: function() {
- for (var c = 5; 0 <= c; c--) {
- if (0 < S[c][Qe]) {
- if (5 == c) return T.mH(c + 1), !1;
- T.mH(c + 1);
- return !0
- }
- if (0 == c) return T.mH(c), !0
- }
- },
- Rca: function() {
- for (var c = 5; 0 <= c; c--) {
- if (0 < S[c][Qe]) {
- T.mH(c + 1);
- break
- }
- if (0 == c) {
- T.mH(c);
- break
- }
- }
- },
- Sca: function() {
- for (var c = 5; 0 <= c; c--) {
- if (0 < S[c][Oe]) {
- T.lH(c + 1);
- break
- }
- if (0 == c) {
- T.lH(c);
- break
- }
- }
- },
- Ra: function() {
- this._super()
- },
- $ca: function() {
- ff--;
- 0 >= ff && T.i_()
- },
- vj: function(c, d) {
- T.te(d)
- },
- $Fa: function() {
- if (vf) {
- vf = !1;
- for (var c = 0; 7 > c; c++)
- for (var d = 0; 6 > d; d++) S[c][d] = 0, Ae[d] = !1, T.te(1E3 + 10 * c + d);
- Se = 2E5;
- T.te(3E3);
- T.te(3001);
- Ne.visible = !1;
- S[0][0] = 2;
- S[0][2] = 4;
- S[0][4] = 8;
- T.qe = 81;
- for (c = 0; 7 > c; c++)
- for (d = 0; 6 > d; d++)
- if (0 < S[c][d]) {
- var e = f.q.create($.Ca("number" + S[c][d] + ".png"));
- e.Wa({
- x: 14 + T.O * d + 0.5 * T.O,
- y: T.qe + T.O * c,
- scale: 1,
- anchorX: 0.5,
- anchorY: 0
- });
- T.n(e, 1, 1E3 + 10 * c + d)
- }
- Te = !1;
- We = T.ZB = !0;
- U = 0;
- T.hha(0);
- Ye = 0;
- T.iha(0)
- }
- },
- qga: function() {
- Te = Ne.visible = !1;
- ef = T.Pr = !0
- },
- hha: function(c) {
- U += c;
- c = T.Za(4050);
- if (null != c) {
- c.wa(U.toString());
- var d = f.X.create(f.Db.create(0.2, 1.4), f.Db.create(0.2, 1));
- c.V(d)
- }
- },
- iha: function(c) {
- Ye += c;
- c = T.Za(5050);
- if (null != c) {
- c.wa(Ye.toString());
- var d = f.X.create(f.Db.create(0.2, 1.4), f.Db.create(0.2, 1));
- c.V(d)
- }
- }
- }),
- vf = !0,
- xf = f.Me.extend({
- iB: !1,
- Z5a: null,
- Qg: null,
- wg: null,
- xi: null,
- Gr: null,
- ix: null,
- Zk: null,
- ctor: function() {
- this._super();
- this.Qg = new f.q($.Ca("data_img_04.png"));
- this.Qg.x = f.gq.width / 2;
- this.Qg.anchorY =
- 0.2;
- this.Qg.y = f.gq.height / 2;
- this.n(this.Qg);
- var c = this.Qg.x + 0.5 * this.Qg.width - 20,
- d = this.Qg.y - 0.2 * this.Qg.height + 20;
- this.Gr = f.Il.create($.Ca("data_img_01.png"), $.Ca("data_img_01.png"), function() {
- clickShareSet()
- }, this);
- this.Gr.Wa({
- x: c,
- y: d,
- anchorX: 1,
- anchorY: 0
- });
- var e = f.ws.create(this.Gr);
- e.x = 0;
- e.y = 0;
- this.n(e, 1);
- this.Gr.visible = !1;
- this.ku = f.Il.create($.Ca("data_img_10_03.png"), $.Ca("data_img_10_03.png"), function() {
- clickShareSet()
- }, this);
- this.ku.Wa({
- x: c,
- y: d,
- anchorX: 1,
- anchorY: 0
- });
- e.n(this.ku);
- this.ku.visible = !1;
- this.xi = f.Il.create($.Ca("data_img_10_02.png"), $.Ca("data_img_10_02.png"), function() {
- clickShareSet()
- }, this);
- this.xi.Wa({
- x: c,
- y: d,
- anchorX: 1,
- anchorY: 0
- });
- e.n(this.xi);
- this.xi.visible = !1;
- this.lu = f.Il.create($.Ca("data_img_09_01.png"), $.Ca("data_img_09_01.png"), function() {
- clickShareSet()
- }, this);
- this.lu.Wa({
- x: c,
- y: d,
- anchorX: 1,
- anchorY: 0
- });
- e.n(this.lu);
- this.lu.visible = !1;
- this.Rn = f.Il.create($.Ca("data_img_09_02.png"), $.Ca("data_img_09_02.png"), function() {
- clickShareSet()
- }, this);
- this.Rn.Wa({
- x: c,
- y: d,
- anchorX: 1,
- anchorY: 0
- });
- e.n(this.Rn);
- this.Rn.visible = !1;
- c = this.Qg.x - 0.5 * this.Qg.width + 20;
- this.ix = f.Il.create($.Ca("data_img_02.png"), $.Ca("data_img_02.png"), function() {
- T.$Fa();
- shareSet("\u65cb\u8f6c\u5e76\u4e0b\u843d\u6570\u5b57\uff0c\u76f8\u540c\u7684\u6570\u5b57\u78b0\u649e\u540e\u7ffb\u500d\uff0c\u770b\u4f60\u591a\u5c11\u6b21\u80fd\u641e\u52302048")
- }, this);
- this.ix.Wa({
- x: c,
- y: d,
- anchorX: 0,
- anchorY: 0
- });
- e.n(this.ix);
- this.ix.visible = !1;
- this.Zk = f.Il.create($.Ca("data_img_07.png"), $.Ca("data_img_07.png"), function() {
- T.qga()
- },
- this);
- this.Zk.Wa({
- x: c,
- y: d,
- anchorX: 0,
- anchorY: 0
- });
- e.n(this.Zk);
- this.Zk.visible = !1;
- c = this.Qg.x;
- this.dH = f.Il.create($.Ca("data_img_14_01.png"), $.Ca("data_img_14_01.png"), function() {
- clickSC()
- }, this);
- this.dH.Wa({
- x: c,
- y: d,
- anchorX: 0.5,
- anchorY: 0
- });
- e.n(this.dH)
- },
- ba: function() {
- this._super()
- },
- Ra: function() {
- this._super()
- },
- uZ: function(c) {
- null != this.wg && this.removeChild(this.wg, !0);
- if (1 == c) {
- this.ix.visible = !0;
- this.Zk.visible = !1;
- this.xi.visible = !1;
- this.lu.visible = !1;
- this.Rn.visible = !1;
- this.dH.x = this.Qg.x;
- T.bia(!1);
- c = 1;
- for (var d = 0; 12 >= d; d++)
- if (U <= Ie[d]) {
- if (0 < U) {
- c = Ie[d] - He[d];
- var e = U - He[d];
- c = e / c;
- e = Ke[d] - Je[d];
- c = c * e + Je[d];
- c = this.T_(parseFloat(c))
- }
- break
- }
- 60.5 <= c ? (d = "\u5171\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u667a\u6167\u3001\u8010\u5fc3\u3001\u8fd0\u6c14\u90fd\u5c5e\u4e8e\u6781\u54c1\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u4e00\u5b9a\u8981\u70ab\u7ed9\u597d\u53cb\u770b\u770b\u5662", this.Gr.visible = !0, this.ku.visible = !1) : 20.5 <= c && 60.5 > c ? (d = "\u5171\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u5f88\u6709\u667a\u6167\u548c\u8010\u5fc3\u5662\uff0c\u8bb0\u5f97\u53bb\u5206\u4eab\u4fdd\u5b58\u8fd9\u4e2a\u8bb0\u5f55\u5662",
- this.Gr.visible = !0, this.ku.visible = !1) : (d = "\u5171\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u8fd8\u4e0d\u9519\u5662\uff0c\u76f8\u4fe1\u4f60\u8fd8\u80fd\u505a\u7684\u66f4\u597d\uff0c\u5206\u4eab\u4e0b\u8ba9\u597d\u53cb\u7ed9\u4e9b\u9f13\u52b1\u5427", this.Gr.visible = !1, this.ku.visible = !0);
- c = 0 < Ye ? "\u6211\u5b8c\u6210" + U + "\u6b21\u5408\u5e76,\u641e\u5b9a\u4e86" + Ye + "\u4e2a\u201c2048\u201d\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6" : "\u6211\u5b8c\u6210" + U + "\u6b21\u5408\u5e76,\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6";
- window.__score = U; /*play68_submitScore(U);*/
- // Play68.setRankingScoreDesc(U);
- shareSet(c);
- this.wg = new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo);
- this.wg.x = this.Qg.x;
- this.wg.y = this.Qg.y - 5;
- this.wg.anchorY = 0.5;
- this.wg.color = f.color(250, 120, 5);
- this.n(this.wg)
- } else if (2 == c) {
- this.ix.visible = !1;
- this.Gr.visible = !1;
- this.lu.visible = !1;
- this.ku.visible = !1;
- this.Zk.visible = !0;
- ef = !1;;
- c = 99.5;
- for (d = 0; 9 >= d; d++)
- if (U <= Ee[d]) {
- 0 < U && (c = Ee[d] - De[d], e = U - De[d], c = e / c, e = Ge[d] - Fe[d], c = c * e + Fe[d], c = this.T_(parseFloat(c)));
- break
- }
- if (80 <= c) {
- d = "\u4eba\u54c1\u592a\u597d\u4e86\uff0c\u7adf\u7136\u53ea\u7528" +
- U + "\u6b21\u5c31 \u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c \u5feb\u53bb\u5206\u4eab\u6c38\u4e45\u7559\u5ff5\u5427";
- this.xi.visible = !0;
- this.Rn.visible = !1;
- var e = this.xi.x - this.xi.width,
- g = this.Zk.x + this.Zk.width
- } else 60 <= c && 80 > c ? (d = "\u8fd0\u6c14\u4e0d\u9519\uff0c\u7528\u4e86" + U + "\u6b21\u5c31 \u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u522b\u5fd8\u4e86\u5206\u4eab\u4fdd\u5b58\u4e0b\u8fd9\u4e2a\u8bb0\u5f55", this.xi.visible = !0, this.Rn.visible = !1, e = this.xi.x - this.xi.width) : 30 <= c && 60 > c ? (d = "\u8f9b\u82e6\u4e86\uff0c\u7528\u4e86" + U + "\u6b21\u7ec8\u4e8e\u641e\u5b9a\u4e862048\uff0c\u5206\u4eab\u53ef\u4ee5\u6c38\u4e45\u4fdd\u5b58\u8fd9\u4e2a\u8bb0\u5f55\u5662", this.xi.visible = !0, this.Rn.visible = !1, e = this.xi.x - this.xi.width) : (d = "\u8010\u5fc3\u503c\u5f97\u9f13\u52b1\uff0c\u7528\u4e86" + U + "\u6b21\u7ec8\u4e8e\u641e\u5b9a2048\uff0c\u5206\u4eab\u7559\u7eaa\u5ff5\u5427", this.xi.visible = !1, this.Rn.visible = !0, e = this.Rn.x - this.Rn.width), g = this.Zk.x + this.Zk.width;
- e = g + (e - g) / 2;
- this.dH.x = e;
- c = "\u6211\u5408\u5e76\u4e86" + U + "\u6b21\u540e\uff0c\u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7" + c + "%\u7684\u73a9\u5bb6"; /*play68_submitScore(U);*/
- window.__score = U;
- shareSet(c);
- this.wg = new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo);
- this.wg.x = this.Qg.x;
- this.wg.y = this.Qg.y - 10;
- this.wg.anchorY = 0.5;
- this.wg.color = f.color(250, 120, 5);
- this.n(this.wg)
- } else if (3 == c) {
- this.ix.visible = !1;
- this.xi.visible = !1;
- this.Rn.visible = !1;
- this.Gr.visible = !1;
- this.ku.visible = !1;
- this.lu.visible = !0;
- this.Zk.visible = !0;
- e = this.lu.x - this.lu.width;
- g = this.Zk.x + this.Zk.width;
- this.dH.x = g + (e - g) / 2;
- ef = !1;
- c = 1;
- for (d = 0; 12 >= d; d++)
- if (U <= Ie[d]) {
- 0 < U && (c = Ie[d] - He[d], e = U - He[d], c = e / c, e = Ke[d] - Je[d], c = c * e + Je[d], c = this.T_(parseFloat(c)));
- break
- }
- d = 100 == U ? "\u5df2\u7ecf\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u597d\u53cb\u9001\u9c9c\u82b1\u5427" : 300 == U || 500 == U ? "\u5df2\u7ecf\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u6392\u540d\u53c8\u524d\u8fdb\u4e86\uff0c\u5df2\u7ecf\u8d85\u8fc7\u4e86" +
- c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u670b\u53cb\u89c1\u8bc6\u4e0b\u4f60\u7684\u6218\u679c\u5427" : "\u5df2\u7ecf\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u6392\u540d\u7a33\u6b65\u524d\u8fdb\uff0c\u5df2\u7ecf\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u597d\u53cb\u7fa1\u6155\u4f60\u7684\u667a\u6167\u5427";
- c = "\u6211\u5df2\u7ecf\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u51fb\u8d25" + c + "%\u7684\u73a9\u5bb6\uff0c\u8fd8\u5728\u7ee7\u7eed\u52aa\u529b";
- window.__score = U; /*play68_submitScore(window.__score);*/
- shareSet(c);
- this.wg =
- new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo);
- this.wg.x = this.Qg.x;
- this.wg.y = this.Qg.y - 5;
- this.wg.anchorY = 0.5;
- this.wg.color = f.color(250, 120, 5);
- this.n(this.wg)
- }
- },
- T_: function(c) {
- return Math.round(c * Math.pow(10, 2)) / Math.pow(10, 2)
- }
- }),
- yf = f.tq.extend({
- ba: function() {
- this._super();
- T = new wf;
- this.n(T);
- Ne = new xf;
- this.n(Ne, 1E4, 3002);
- Ne.visible = !1
- }
- });
- f.vf.Sp = function() {
- f.view.u2(400, 660, f.Dj.SHOW_ALL);
- f.view.aGa(!0);
- f.VW = "res/icon.png";
- f.qNa = " ";
- f.eT.K1(ye, function() {
- f.Q.f2(new yf)
- }, this)
- };
- f.vf.eGa();
|