main.index.js 621 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553
  1. window.__require = function t(e, n, o) {
  2. function i(r, c) {
  3. if (!n[r]) {
  4. if (!e[r]) {
  5. var s = r.split("/");
  6. s = s[s.length - 1];
  7. if (!e[s]) {
  8. var l = "function" == typeof __require && __require;
  9. if (!c && l) return l(s, !0);
  10. if (a) return a(s, !0);
  11. throw new Error("Cannot find module '" + r + "'");
  12. }
  13. r = s;
  14. }
  15. var u = n[r] = {
  16. exports: {}
  17. };
  18. e[r][0].call(u.exports, function(t) {
  19. return i(e[r][1][t] || t);
  20. }, u, u.exports, t, e, n, o);
  21. }
  22. return n[r].exports;
  23. }
  24. for (var a = "function" == typeof __require && __require, r = 0; r < o.length; r++) i(o[r]);
  25. return i;
  26. }({
  27. ATAndroidBannerJS: [ function(t, e) {
  28. "use strict";
  29. cc._RF.push(e, "373b2sCOFlCLZeomt863XyC", "ATAndroidBannerJS");
  30. var n = "com/anythink/cocosjs/ATBannerJSBridge", o = o || {
  31. loadBanner: function(t, e) {
  32. cc.log("Android-loadBanner:" + e);
  33. jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
  34. },
  35. setAdListener: function(t) {
  36. cc.log("Android-setAdListener");
  37. jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
  38. },
  39. hasAdReady: function(t) {
  40. cc.log("Android-hasAdReady");
  41. return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
  42. },
  43. checkAdStatus: function(t) {
  44. cc.log("Android-checkAdStatus:" + t);
  45. return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
  46. },
  47. showAdInPosition: function(t, e) {
  48. cc.log("Android-showAdInPosistion");
  49. jsb.reflection.callStaticMethod(n, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
  50. },
  51. showAdInPositionAndScenario: function(t, e, o) {
  52. cc.log("Android-showAdInPositionAndScenario");
  53. jsb.reflection.callStaticMethod(n, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
  54. },
  55. showAdInRectangle: function(t, e) {
  56. cc.log("Android-showAdInRectangle");
  57. jsb.reflection.callStaticMethod(n, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
  58. },
  59. showAdInRectangleAndScenario: function(t, e, o) {
  60. cc.log("Android-showAdInRectangleAndScenario");
  61. jsb.reflection.callStaticMethod(n, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
  62. },
  63. removeAd: function(t) {
  64. cc.log("Android-removeAd");
  65. jsb.reflection.callStaticMethod(n, "remove", "(Ljava/lang/String;)V", t);
  66. },
  67. reShowAd: function(t) {
  68. cc.log("Android-reShowAd");
  69. jsb.reflection.callStaticMethod(n, "reshow", "(Ljava/lang/String;)V", t);
  70. },
  71. hideAd: function(t) {
  72. cc.log("Android-hideAd");
  73. jsb.reflection.callStaticMethod(n, "hide", "(Ljava/lang/String;)V", t);
  74. }
  75. };
  76. e.exports = o;
  77. cc._RF.pop();
  78. }, {} ],
  79. ATAndroidInterstitialJS: [ function(t, e) {
  80. "use strict";
  81. cc._RF.push(e, "f073foYdLdPM6Yr1ntb2lMg", "ATAndroidInterstitialJS");
  82. var n = "com/anythink/cocosjs/ATInterstitialJSBridge", o = o || {
  83. loadInterstitial: function(t, e) {
  84. cc.log("Android-loadInterstitial");
  85. jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
  86. },
  87. setAdListener: function(t) {
  88. cc.log("Android-setAdListener");
  89. jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
  90. },
  91. hasAdReady: function(t) {
  92. cc.log("Android-hasAdReady");
  93. return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
  94. },
  95. checkAdStatus: function(t) {
  96. cc.log("Android-checkAdStatus:" + t);
  97. return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
  98. },
  99. showAd: function(t) {
  100. cc.log("Android-showAd:" + t);
  101. jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;)V", t);
  102. },
  103. showAdInScenario: function(t, e) {
  104. cc.log("Android-showAdInScenario:" + t + "---" + e);
  105. jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
  106. }
  107. };
  108. e.exports = o;
  109. cc._RF.pop();
  110. }, {} ],
  111. ATAndroidJS: [ function(t, e) {
  112. "use strict";
  113. cc._RF.push(e, "85a5eThP61PK65Y4yGwBvE8", "ATAndroidJS");
  114. var n = "com/anythink/cocosjs/ATJSBridge", o = o || {
  115. printJsLog: function(t) {
  116. null != t && null != t && jsb.reflection.callStaticMethod("android/util/Log", "i", "(Ljava/lang/String;Ljava/lang/String;)I", "AT-Cocos-JS", t);
  117. },
  118. initSDK: function(t, e) {
  119. jsb.reflection.callStaticMethod(n, "initSDK", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
  120. },
  121. initCustomMap: function(t) {
  122. jsb.reflection.callStaticMethod(n, "initCustomMap", "(Ljava/lang/String;)V", t);
  123. },
  124. setPlacementCustomMap: function(t, e) {
  125. jsb.reflection.callStaticMethod(n, "setPlacementCustomMap", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
  126. },
  127. setGDPRLevel: function(t) {
  128. jsb.reflection.callStaticMethod(n, "setGDPRLevel", "(I)V", t);
  129. },
  130. getGDPRLevel: function() {
  131. return jsb.reflection.callStaticMethod(n, "getGDPRLevel", "()I");
  132. },
  133. getUserLocation: function(t) {
  134. jsb.reflection.callStaticMethod(n, "getUserLocation", "(Ljava/lang/String;)V", t);
  135. },
  136. showGDPRAuth: function() {
  137. jsb.reflection.callStaticMethod(n, "showGDPRAuth", "()V");
  138. },
  139. setLogDebug: function(t) {
  140. jsb.reflection.callStaticMethod(n, "setLogDebug", "(Z)V", t);
  141. },
  142. deniedUploadDeviceInfo: function(t) {
  143. jsb.reflection.callStaticMethod(n, "deniedUploadDeviceInfo", "(Ljava/lang/String;)V", t);
  144. }
  145. };
  146. e.exports = o;
  147. cc._RF.pop();
  148. }, {} ],
  149. ATAndroidNativeJS: [ function(t, e) {
  150. "use strict";
  151. cc._RF.push(e, "c7e28/V0ltGuaVkyssLml95", "ATAndroidNativeJS");
  152. var n = "com/anythink/cocosjs/ATNativeJSBridge", o = o || {
  153. loadNative: function(t, e) {
  154. cc.log("Android-loadNative");
  155. jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
  156. },
  157. setAdListener: function(t) {
  158. cc.log("Android-setAdListener");
  159. jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
  160. },
  161. hasAdReady: function(t) {
  162. cc.log("Android-hasAdReady");
  163. return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
  164. },
  165. checkAdStatus: function(t) {
  166. cc.log("Android-checkAdStatus:" + t);
  167. return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
  168. },
  169. showAd: function(t, e) {
  170. cc.log("Android-showAd");
  171. jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
  172. },
  173. showAdInScenario: function(t, e, o) {
  174. cc.log("Android-showAdInScenario");
  175. jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
  176. },
  177. removeAd: function(t) {
  178. cc.log("Android-removeAd");
  179. jsb.reflection.callStaticMethod(n, "remove", "(Ljava/lang/String;)V", t);
  180. }
  181. };
  182. e.exports = o;
  183. cc._RF.pop();
  184. }, {} ],
  185. ATAndroidRewardedVideoJS: [ function(t, e) {
  186. "use strict";
  187. cc._RF.push(e, "0e16ckjW85NZIXjxXyQ2xem", "ATAndroidRewardedVideoJS");
  188. var n = "com/anythink/cocosjs/ATRewardedVideoJSBridge", o = o || {
  189. loadRewardedVideo: function(t, e) {
  190. cc.log("Android-loadRewardedVideo");
  191. jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
  192. },
  193. setAdListener: function(t) {
  194. cc.log("Android-setAdListener");
  195. jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
  196. },
  197. hasAdReady: function(t) {
  198. cc.log("Android-hasAdReady");
  199. return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
  200. },
  201. checkAdStatus: function(t) {
  202. cc.log("Android-checkAdStatus:" + t);
  203. return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
  204. },
  205. showAd: function(t) {
  206. cc.log("Android-rv_showAd:" + t);
  207. jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;)V", t);
  208. },
  209. showAdInScenario: function(t, e) {
  210. cc.log("Android-rv_showAdInScenario:" + t + "---" + e);
  211. jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
  212. }
  213. };
  214. e.exports = o;
  215. cc._RF.pop();
  216. }, {} ],
  217. ATBannerJSSDK: [ function(t, e) {
  218. "use strict";
  219. cc._RF.push(e, "fed33eJy/VKD6bSJh4Cejc1", "ATBannerJSSDK");
  220. var n = t("./Android/ATAndroidBannerJS"), o = t("./iOS/ATiOSBannerJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, a = a || {
  221. kATBannerAdLoadingExtraBannerAdSizeStruct: "banner_ad_size_struct",
  222. kATBannerAdShowingPositionTop: "top",
  223. kATBannerAdShowingPositionBottom: "bottom",
  224. kATBannerAdInlineAdaptiveWidth: "inline_adaptive_width",
  225. kATBannerAdInlineAdaptiveOrientation: "inline_adaptive_orientation",
  226. kATBannerAdInlineAdaptiveOrientationCurrent: 0,
  227. kATBannerAdInlineAdaptiveOrientationPortrait: 1,
  228. kATBannerAdInlineAdaptiveOrientationLandscape: 2,
  229. kATBannerAdAdaptiveWidth: "adaptive_width",
  230. kATBannerAdAdaptiveOrientation: "adaptive_orientation",
  231. kATBannerAdAdaptiveOrientationCurrent: 0,
  232. kATBannerAdAdaptiveOrientationPortrait: 1,
  233. kATBannerAdAdaptiveOrientationLandscape: 2,
  234. ATBannerListener: {
  235. developerCallback: null,
  236. onBannerAdLoaded: function(t) {
  237. null != this.developerCallback && null != this.developerCallback.onBannerAdLoaded && null != this.developerCallback.onBannerAdLoaded && this.developerCallback.onBannerAdLoaded(t);
  238. },
  239. onBannerAdLoadFail: function(t, e) {
  240. null != this.developerCallback && null != this.developerCallback.onBannerAdLoadFail && null != this.developerCallback.onBannerAdLoadFail && this.developerCallback.onBannerAdLoadFail(t, e);
  241. },
  242. onBannerAdShow: function(t, e) {
  243. null != this.developerCallback && null != this.developerCallback.onBannerAdShow && null != this.developerCallback.onBannerAdShow && this.developerCallback.onBannerAdShow(t, e);
  244. },
  245. onBannerAdClick: function(t, e) {
  246. null != this.developerCallback && null != this.developerCallback.onBannerAdClick && null != this.developerCallback.onBannerAdClick && this.developerCallback.onBannerAdClick(t, e);
  247. },
  248. onBannerAdAutoRefresh: function(t, e) {
  249. null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefresh && null != this.developerCallback.onBannerAdAutoRefresh && this.developerCallback.onBannerAdAutoRefresh(t, e);
  250. },
  251. onBannerAdAutoRefreshFail: function(t, e) {
  252. null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefreshFail && null != this.developerCallback.onBannerAdAutoRefreshFail && this.developerCallback.onBannerAdAutoRefreshFail(t, e);
  253. },
  254. onBannerAdCloseButtonTapped: function(t, e) {
  255. null != this.developerCallback && null != this.developerCallback.onBannerAdCloseButtonTapped && null != this.developerCallback.onBannerAdCloseButtonTapped && this.developerCallback.onBannerAdCloseButtonTapped(t, e);
  256. }
  257. },
  258. loadBanner: function(t, e) {
  259. void 0 === e && (e = {});
  260. if (null != i && null != i) {
  261. if (e.hasOwnProperty(a.kATBannerAdLoadingExtraBannerAdSizeStruct)) {
  262. var n = e[a.kATBannerAdLoadingExtraBannerAdSizeStruct];
  263. e.width = n.width;
  264. e.height = n.height;
  265. }
  266. i.loadBanner(t, JSON.stringify(e));
  267. } else cc.log("You must run on Android or iOS.");
  268. },
  269. setAdListener: function(t) {
  270. var e = {};
  271. e[r] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoaded", e[c] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoadFail",
  272. e[s] = "ATBannerJSSDK.ATBannerListener.onBannerAdCloseButtonTapped", e[l] = "ATBannerJSSDK.ATBannerListener.onBannerAdClick",
  273. e[u] = "ATBannerJSSDK.ATBannerListener.onBannerAdShow", e[p] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefresh",
  274. e[d] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefreshFail";
  275. null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  276. this.ATBannerListener.developerCallback = t;
  277. },
  278. hasAdReady: function(t) {
  279. if (null != i && null != i) return i.hasAdReady(t);
  280. cc.log("You must run on Android or iOS.");
  281. return !1;
  282. },
  283. checkAdStatus: function(t) {
  284. if (null != i && null != i) return i.checkAdStatus(t);
  285. cc.log("You must run on Android or iOS.");
  286. return "";
  287. },
  288. showAdInPosition: function(t, e) {
  289. null != i && null != i ? i.showAdInPosition(t, e) : cc.log("You must run on Android or iOS.");
  290. },
  291. showAdInPositionAndScenario: function(t, e, n) {
  292. null != i && null != i ? i.showAdInPosition(t, e, n) : cc.log("You must run on Android or iOS.");
  293. },
  294. showAdInRectangle: function(t, e) {
  295. null != i && null != i ? i.showAdInRectangle(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  296. },
  297. showAdInRectangleAndScenario: function(t, e, n) {
  298. null != i && null != i ? i.showAdInRectangle(t, JSON.stringify(e), n) : cc.log("You must run on Android or iOS.");
  299. },
  300. removeAd: function(t) {
  301. null != i && null != i ? i.removeAd(t) : cc.log("You must run on Android or iOS.");
  302. },
  303. reShowAd: function(t) {
  304. null != i && null != i ? i.reShowAd(t) : cc.log("You must run on Android or iOS.");
  305. },
  306. hideAd: function(t) {
  307. null != i && null != i ? i.hideAd(t) : cc.log("You must run on Android or iOS.");
  308. },
  309. createLoadAdSize: function(t, e) {
  310. var n = {};
  311. n.width = t;
  312. n.height = e;
  313. return n;
  314. },
  315. createShowAdRect: function(t, e, n, o) {
  316. var i = {};
  317. i.x = t;
  318. i.y = e;
  319. i.width = n;
  320. i.height = o;
  321. return i;
  322. }
  323. }, r = "BannerLoaded", c = "BannerLoadFail", s = "BannerCloseButtonTapped", l = "BannerClick", u = "BannerShow", p = "BannerRefresh", d = "BannerRefreshFail";
  324. window.ATBannerJSSDK = a;
  325. cc._RF.pop();
  326. }, {
  327. "./Android/ATAndroidBannerJS": "ATAndroidBannerJS",
  328. "./iOS/ATiOSBannerJS": "ATiOSBannerJS"
  329. } ],
  330. ATBannerJS: [ function(t, e) {
  331. "use strict";
  332. cc._RF.push(e, "e39ee3D06VH2JIOKTRndSVl", "ATBannerJS");
  333. t("./AnyThinkAds/ATBannerJSSDK");
  334. t("./AnyThinkAds/ATJSSDK");
  335. var n = cc.Class({
  336. name: "ATBannerJS",
  337. proxy: null,
  338. ctor: function() {},
  339. init: function() {
  340. ATBannerJSSDK.setAdListener(this);
  341. },
  342. placementID: function() {
  343. return this.proxy.placementID();
  344. },
  345. loadBanner: function() {
  346. var t = cc.view.getFrameSize().height;
  347. if (!(t < 1400)) {
  348. var e = {}, n = t / 1334 * 115;
  349. e[ATBannerJSSDK.kATBannerAdLoadingExtraBannerAdSizeStruct] = ATBannerJSSDK.createLoadAdSize(cc.view.getFrameSize().width, n);
  350. e[ATBannerJSSDK.kATBannerAdInlineAdaptiveWidth] = cc.view.getFrameSize().width;
  351. e[ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientation] = ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientationCurrent;
  352. ATBannerJSSDK.loadBanner(this.placementID(), e);
  353. }
  354. },
  355. hasAdReady: function() {
  356. return !!ATBannerJSSDK.hasAdReady(this.placementID());
  357. },
  358. showBanner: function() {
  359. ATBannerJSSDK.showAdInPosition(this.placementID(), ATBannerJSSDK.kATBannerAdShowingPositionBottom);
  360. },
  361. destroyBanner: function() {
  362. ATBannerJSSDK.removeAd(this.placementID());
  363. },
  364. onBannerAdLoaded: function(t) {
  365. null != this.proxy && this.proxy.onBannerAdLoaded(t);
  366. },
  367. onBannerAdLoadFail: function(t, e) {
  368. ATJSSDK.printLog("===[ AnyThinkBannerDemo::onBannerAdLoadFail(" + t + ", " + e + ")");
  369. null != this.proxy && this.proxy.onBannerAdLoadFail(t, e);
  370. },
  371. onBannerAdShow: function(t, e) {
  372. null != this.proxy && this.proxy.onBannerAdShow(t, e);
  373. },
  374. onBannerAdClick: function(t, e) {
  375. null != this.proxy && this.proxy.onBannerAdClick(t, e);
  376. },
  377. onBannerAdAutoRefresh: function() {
  378. this.proxy;
  379. },
  380. onBannerAdAutoRefreshFail: function() {
  381. this.proxy;
  382. },
  383. onBannerAdCloseButtonTapped: function() {
  384. this.proxy;
  385. }
  386. });
  387. e.exports = n;
  388. cc.ATBannerJS || (cc.ATBannerJS = new n());
  389. cc._RF.pop();
  390. }, {
  391. "./AnyThinkAds/ATBannerJSSDK": void 0,
  392. "./AnyThinkAds/ATJSSDK": void 0
  393. } ],
  394. ATBanner: [ function(t, e, n) {
  395. "use strict";
  396. cc._RF.push(e, "180ddxdu85IXYjxFMMG+Rz5", "ATBanner");
  397. var o, i = this && this.__extends || (o = function(t, e) {
  398. return (o = Object.setPrototypeOf || {
  399. __proto__: []
  400. } instanceof Array && function(t, e) {
  401. t.__proto__ = e;
  402. } || function(t, e) {
  403. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  404. })(t, e);
  405. }, function(t, e) {
  406. o(t, e);
  407. function n() {
  408. this.constructor = t;
  409. }
  410. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  411. });
  412. Object.defineProperty(n, "__esModule", {
  413. value: !0
  414. });
  415. n.BannerAdState = void 0;
  416. var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
  417. i(e, t);
  418. function e() {
  419. var e = null !== t && t.apply(this, arguments) || this;
  420. e.bannerAdState = 0;
  421. e.ifLoadShow = !1;
  422. e.ifWatchEnd = !1;
  423. return e;
  424. }
  425. e.prototype.init = function() {
  426. this.ATBannerJS = cc.ATBannerJS;
  427. this.ATBannerJS.proxy = this;
  428. this.ATBannerJS.init();
  429. this.bannerAdState == a.Unload && this.loadBanner();
  430. };
  431. e.prototype.placementID = function() {
  432. return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_banner_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_banner_placementId : void 0;
  433. };
  434. e.prototype.hasAdReady = function() {
  435. return this.ATBannerJS.hasAdReady();
  436. };
  437. e.prototype.loadBanner = function(t) {
  438. void 0 === t && (t = !1);
  439. this.ifLoadShow = t;
  440. this.bannerAdState = a.Loading;
  441. this.ATBannerJS.loadBanner();
  442. };
  443. e.prototype.showBanner = function() {
  444. if (this.bannerAdState == a.Show) ; else if (this.hasAdReady()) {
  445. this.bannerAdState = a.Show;
  446. this.ATBannerJS.showBanner();
  447. } else this.bannerAdState == a.Loading ? this.ifLoadShow = !0 : this.loadBanner(!0);
  448. };
  449. e.prototype.destroyBanner = function() {
  450. this.bannerAdState = a.Close;
  451. this.ATBannerJS.destroyBanner();
  452. this.loadBanner();
  453. };
  454. e.prototype.onBannerAdLoaded = function() {
  455. this.bannerAdState = a.LoadSuccess;
  456. };
  457. e.prototype.onBannerAdLoadFail = function(t) {
  458. this.bannerAdState = a.LoadFail;
  459. gData.adData.updateADLog(14, t);
  460. };
  461. e.prototype.onBannerAdShow = function(t, e) {
  462. this.bannerAdState = a.Show;
  463. var n = JSON.parse(e);
  464. gData.adData.updateADLog(7, t, n);
  465. };
  466. e.prototype.onBannerAdClick = function() {};
  467. e.prototype.onBannerAdAutoRefresh = function() {};
  468. e.prototype.onBannerAdAutoRefreshFail = function() {};
  469. e.prototype.onBannerAdCloseButtonTapped = function() {};
  470. return e;
  471. }(r.zgSingleton);
  472. n.default = s;
  473. (function(t) {
  474. t[t.Unload = 0] = "Unload";
  475. t[t.Loading = 1] = "Loading";
  476. t[t.LoadSuccess = 2] = "LoadSuccess";
  477. t[t.LoadFail = 3] = "LoadFail";
  478. t[t.Show = 4] = "Show";
  479. t[t.Close = 5] = "Close";
  480. })(a = n.BannerAdState || (n.BannerAdState = {}));
  481. cc._RF.pop();
  482. }, {
  483. "../../zgSingleton": "zgSingleton",
  484. "./ATSDKMgr": "ATSDKMgr"
  485. } ],
  486. ATInterstitialJSSDK: [ function(t, e) {
  487. "use strict";
  488. cc._RF.push(e, "778c3M0uDdLZKCU1iwGn6T6", "ATInterstitialJSSDK");
  489. var n = t("./iOS/ATiOSInterstitialJS"), o = t("./Android/ATAndroidInterstitialJS"), i = cc.sys.os === cc.sys.OS_IOS ? n : cc.sys.os === cc.sys.OS_ANDROID ? o : void 0, a = a || {
  490. UseRewardedVideoAsInterstitial: "UseRewardedVideoAsInterstitial",
  491. ATInterstitialListener: {
  492. developerCallback: null,
  493. onInterstitialAdLoaded: function(t) {
  494. null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoaded && null != this.developerCallback.onInterstitialAdLoaded && this.developerCallback.onInterstitialAdLoaded(t);
  495. },
  496. onInterstitialAdLoadFail: function(t, e) {
  497. null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoadFail && null != this.developerCallback.onInterstitialAdLoadFail && this.developerCallback.onInterstitialAdLoadFail(t, e);
  498. },
  499. onInterstitialAdShow: function(t, e) {
  500. null != this.developerCallback && null != this.developerCallback.onInterstitialAdShow && null != this.developerCallback.onInterstitialAdShow && this.developerCallback.onInterstitialAdShow(t, e);
  501. },
  502. onInterstitialAdStartPlayingVideo: function(t, e) {
  503. null != this.developerCallback && null != this.developerCallback.onInterstitialAdStartPlayingVideo && null != this.developerCallback.onInterstitialAdStartPlayingVideo && this.developerCallback.onInterstitialAdStartPlayingVideo(t, e);
  504. },
  505. onInterstitialAdEndPlayingVideo: function(t, e) {
  506. null != this.developerCallback && null != this.developerCallback.onInterstitialAdEndPlayingVideo && null != this.developerCallback.onInterstitialAdEndPlayingVideo && this.developerCallback.onInterstitialAdEndPlayingVideo(t, e);
  507. },
  508. onInterstitialAdFailedToPlayVideo: function(t, e) {
  509. null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && this.developerCallback.onInterstitialAdFailedToPlayVideo(t, e);
  510. },
  511. onInterstitialAdFailedToShow: function(t) {
  512. null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToShow && null != this.developerCallback.onInterstitialAdFailedToShow && this.developerCallback.onInterstitialAdFailedToShow(t);
  513. },
  514. onInterstitialAdClose: function(t, e) {
  515. null != this.developerCallback && null != this.developerCallback.onInterstitialAdClose && null != this.developerCallback.onInterstitialAdClose && this.developerCallback.onInterstitialAdClose(t, e);
  516. },
  517. onInterstitialAdClick: function(t, e) {
  518. null != this.developerCallback && null != this.developerCallback.onInterstitialAdClick && null != this.developerCallback.onInterstitialAdClick && this.developerCallback.onInterstitialAdClick(t, e);
  519. }
  520. },
  521. loadInterstitial: function(t, e) {
  522. void 0 === e && (e = {});
  523. null != i && null != i ? i.loadInterstitial(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  524. },
  525. setAdListener: function(t) {
  526. var e = {};
  527. e[r] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoaded", e[c] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoadFail",
  528. e[s] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdStartPlayingVideo",
  529. e[l] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdEndPlayingVideo",
  530. e[u] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToPlayVideo",
  531. e[p] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClose", e[d] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClick",
  532. e[h] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdShow", e[f] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToShow";
  533. null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  534. this.ATInterstitialListener.developerCallback = t;
  535. },
  536. hasAdReady: function(t) {
  537. if (null != i && null != i) return i.hasAdReady(t);
  538. cc.log("You must run on Android or iOS.");
  539. return !1;
  540. },
  541. checkAdStatus: function(t) {
  542. if (null != i && null != i) return i.checkAdStatus(t);
  543. cc.log("You must run on Android or iOS.");
  544. return "";
  545. },
  546. showAd: function(t) {
  547. null != i && null != i ? i.showAd(t) : cc.log("You must run on Android or iOS.");
  548. },
  549. showAdInScenario: function(t, e) {
  550. void 0 === e && (e = "");
  551. null != i && null != i ? i.showAdInScenario(t, e) : cc.log("You must run on Android or iOS.");
  552. }
  553. }, r = "InterstitialLoaded", c = "InterstitialLoadFail", s = "InterstitialPlayStart", l = "InterstitialPlayEnd", u = "InterstitialPlayFail", p = "InterstitialClose", d = "InterstitialClick", h = "InterstitialAdShow", f = "InterstitialAdShowFail";
  554. window.ATInterstitialJSSDK = a;
  555. cc._RF.pop();
  556. }, {
  557. "./Android/ATAndroidInterstitialJS": "ATAndroidInterstitialJS",
  558. "./iOS/ATiOSInterstitialJS": "ATiOSInterstitialJS"
  559. } ],
  560. ATInterstitialJS: [ function(t, e) {
  561. "use strict";
  562. cc._RF.push(e, "834cdg0rj5K4bBXLVG4XyXv", "ATInterstitialJS");
  563. t("./AnyThinkAds/ATInterstitialJSSDK");
  564. t("./AnyThinkAds/ATJSSDK");
  565. var n = cc.Class({
  566. name: "ATInterstitialJS",
  567. proxy: null,
  568. ctor: function() {},
  569. init: function() {
  570. ATInterstitialJSSDK.setAdListener(this);
  571. },
  572. placementID: function() {
  573. return this.proxy.placementID();
  574. },
  575. hasAdReady: function() {
  576. if (null != this.proxy) return !!ATInterstitialJSSDK.hasAdReady(this.placementID());
  577. },
  578. loadInter: function() {
  579. var t = {};
  580. t[ATInterstitialJSSDK.UseRewardedVideoAsInterstitial] = !1;
  581. ATInterstitialJSSDK.loadInterstitial(this.placementID(), t);
  582. },
  583. showInter: function() {
  584. ATInterstitialJSSDK.showAd(this.placementID());
  585. },
  586. onInterstitialAdLoaded: function(t) {
  587. null != this.proxy && this.proxy.onInterstitialAdLoaded(t);
  588. },
  589. onInterstitialAdLoadFail: function(t, e) {
  590. ATJSSDK.printLog("===[AnyThinkInterstitialDemo::onInterstitialAdLoadFail(" + t + ", " + e + ")");
  591. null != this.proxy && this.proxy.onInterstitialAdLoadFail(t, e);
  592. },
  593. onInterstitialAdShow: function(t, e) {
  594. null != this.proxy && this.proxy.onInterstitialAdShow(t, e);
  595. },
  596. onInterstitialAdStartPlayingVideo: function() {},
  597. onInterstitialAdEndPlayingVideo: function() {},
  598. onInterstitialAdFailedToPlayVideo: function() {},
  599. onInterstitialAdFailedToShow: function() {},
  600. onInterstitialAdClose: function(t, e) {
  601. null != this.proxy && this.proxy.onInterstitialAdClose(t, e);
  602. },
  603. onInterstitialAdClick: function(t, e) {
  604. null != this.proxy && this.proxy.onInterstitialAdClick(t, e);
  605. }
  606. });
  607. e.exports = n;
  608. cc.ATInterstitialJS || (cc.ATInterstitialJS = new n());
  609. cc._RF.pop();
  610. }, {
  611. "./AnyThinkAds/ATInterstitialJSSDK": void 0,
  612. "./AnyThinkAds/ATJSSDK": void 0
  613. } ],
  614. ATInterstitial: [ function(t, e, n) {
  615. "use strict";
  616. cc._RF.push(e, "3adb122h/VGgJKlIXmsxvCD", "ATInterstitial");
  617. var o, i = this && this.__extends || (o = function(t, e) {
  618. return (o = Object.setPrototypeOf || {
  619. __proto__: []
  620. } instanceof Array && function(t, e) {
  621. t.__proto__ = e;
  622. } || function(t, e) {
  623. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  624. })(t, e);
  625. }, function(t, e) {
  626. o(t, e);
  627. function n() {
  628. this.constructor = t;
  629. }
  630. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  631. });
  632. Object.defineProperty(n, "__esModule", {
  633. value: !0
  634. });
  635. n.InterAdState = void 0;
  636. var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
  637. i(e, t);
  638. function e() {
  639. var e = null !== t && t.apply(this, arguments) || this;
  640. e.interAdType = 0;
  641. e.interAdState = 0;
  642. e.ifLoadShow = !1;
  643. return e;
  644. }
  645. e.prototype.init = function() {
  646. this.ATInterstitialJS = cc.ATInterstitialJS;
  647. this.ATInterstitialJS.proxy = this;
  648. this.ATInterstitialJS.init();
  649. this.interAdState == a.Unload && this.loadInter(0);
  650. };
  651. e.prototype.placementID = function() {
  652. if (0 == this.interAdType) {
  653. if (cc.sys.os === cc.sys.OS_IOS) return c.default.topon_inter_placementId;
  654. if (cc.sys.os === cc.sys.OS_ANDROID) return c.default.topon_inter_placementId;
  655. } else {
  656. if (cc.sys.os === cc.sys.OS_IOS) return c.default.topon_fullinter_placementId;
  657. if (cc.sys.os === cc.sys.OS_ANDROID) return c.default.topon_fullinter_placementId;
  658. }
  659. };
  660. e.prototype.hasAdReady = function() {
  661. return this.ATInterstitialJS.hasAdReady();
  662. };
  663. e.prototype.loadInter = function(t, e) {
  664. void 0 === e && (e = !1);
  665. this.interAdType = t;
  666. this.ifLoadShow = e;
  667. this.interAdState = a.Loading;
  668. this.ATInterstitialJS.loadInter(t);
  669. };
  670. e.prototype.showInter = function(t) {
  671. this.interAdType = t;
  672. if (this.interAdState == a.Show) ; else if (this.hasAdReady()) {
  673. this.interAdState = a.Show;
  674. this.ATInterstitialJS.showInter(t);
  675. } else this.interAdState == a.Loading ? this.ifLoadShow = !0 : this.loadInter(t, !0);
  676. };
  677. e.prototype.onInterstitialAdLoaded = function() {
  678. this.interAdState = a.LoadSuccess;
  679. this.ifLoadShow && this.showInter(this.interAdType);
  680. };
  681. e.prototype.onInterstitialAdLoadFail = function(t) {
  682. this.interAdState = a.LoadFail;
  683. if (1 == this.interAdType) {
  684. mk.tip.pop("拉取全屏视频失败,请稍后再试");
  685. gData.adData.updateADLog(10, t);
  686. } else 0 == this.interAdType && gData.adData.updateADLog(11, t);
  687. };
  688. e.prototype.onInterstitialAdShow = function(t, e) {
  689. this.interAdState = a.Show;
  690. var n = JSON.parse(e), o = 2;
  691. 0 == this.interAdType ? o = 2 : 1 == this.interAdType && (o = 9);
  692. gData.adData.updateADLog(o, t, n);
  693. };
  694. e.prototype.onInterstitialAdClick = function() {};
  695. e.prototype.onInterstitialAdClose = function(t, e) {
  696. this.interAdState = a.Close;
  697. this.loadInter(this.interAdType);
  698. if (1 == this.interAdType) {
  699. var n = JSON.parse(e);
  700. gData.adData.updateADLog(8, t, n);
  701. }
  702. };
  703. return e;
  704. }(r.zgSingleton);
  705. n.default = s;
  706. (function(t) {
  707. t[t.Unload = 0] = "Unload";
  708. t[t.Loading = 1] = "Loading";
  709. t[t.LoadSuccess = 2] = "LoadSuccess";
  710. t[t.LoadFail = 3] = "LoadFail";
  711. t[t.Show = 4] = "Show";
  712. t[t.Close = 5] = "Close";
  713. })(a = n.InterAdState || (n.InterAdState = {}));
  714. cc._RF.pop();
  715. }, {
  716. "../../zgSingleton": "zgSingleton",
  717. "./ATSDKMgr": "ATSDKMgr"
  718. } ],
  719. ATJSSDK: [ function(t, e) {
  720. "use strict";
  721. cc._RF.push(e, "bac5aDDxNxEn6rH1N8w46KW", "ATJSSDK");
  722. var n = t("./Android/ATAndroidJS"), o = t("./iOS/ATiOSJS"), i = !1, a = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, r = r || {
  723. kATUserLocationUnknown: 0,
  724. kATUserLocationInEU: 1,
  725. kATUserLocationOutOfEU: 2,
  726. PERSONALIZED: 0,
  727. NONPERSONALIZED: 1,
  728. UNKNOWN: 2,
  729. OS_VERSION_NAME: "os_vn",
  730. OS_VERSION_CODE: "os_vc",
  731. APP_PACKAGE_NAME: "package_name",
  732. APP_VERSION_NAME: "app_vn",
  733. APP_VERSION_CODE: "app_vc",
  734. BRAND: "brand",
  735. MODEL: "model",
  736. DEVICE_SCREEN_SIZE: "screen",
  737. MNC: "mnc",
  738. MCC: "mcc",
  739. LANGUAGE: "language",
  740. TIMEZONE: "timezone",
  741. USER_AGENT: "ua",
  742. ORIENTATION: "orient",
  743. NETWORK_TYPE: "network_type",
  744. INSTALLER: "it_src",
  745. ANDROID_ID: "android_id",
  746. GAID: "gaid",
  747. MAC: "mac",
  748. IMEI: "imei",
  749. OAID: "oaid",
  750. IDFA: "idfa",
  751. IDFV: "idfv",
  752. ATSDKListener: {
  753. userLocationCallback: null,
  754. getUserLocationCallback: function(t) {
  755. null != this.userLocationCallback && null != this.userLocationCallback && this.userLocationCallback(t);
  756. }
  757. },
  758. initSDK: function(t, e) {
  759. null != a && null != a ? a.initSDK(t, e) : cc.log("You must run on Android or iOS.");
  760. },
  761. initCustomMap: function(t) {
  762. null != a && null != a ? null != t && null != t && a.initCustomMap(JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
  763. },
  764. setPlacementCustomMap: function(t, e) {
  765. null != a && null != a ? null != e && null != e && a.setPlacementCustomMap(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  766. },
  767. setGDPRLevel: function(t) {
  768. null != a && null != a ? a.setGDPRLevel(t) : cc.log("You must run on Android or iOS.");
  769. },
  770. getGDPRLevel: function() {
  771. if (null != a && null != a) return a.getGDPRLevel();
  772. cc.log("You must run on Android or iOS.");
  773. return this.UNKNOWN;
  774. },
  775. getUserLocation: function(t) {
  776. this.ATSDKListener.userLocationCallback = t;
  777. null != a && null != a ? a.getUserLocation(c) : cc.log("You must run on Android or iOS.");
  778. },
  779. showGDPRAuth: function() {
  780. null != a && null != a ? a.showGDPRAuth() : cc.log("You must run on Android or iOS.");
  781. },
  782. setLogDebug: function(t) {
  783. i = t;
  784. null != a && null != a ? a.setLogDebug(t) : cc.log("You must run on Android or iOS.");
  785. },
  786. printLog: function(t) {
  787. null != t && null != t && i && null != a && (null != a && null != a ? a.printJsLog(t) : cc.log("You must run on Android or iOS."));
  788. },
  789. deniedUploadDeviceInfo: function(t) {
  790. if (null != a && null != a) {
  791. if (null != t) {
  792. for (var e = t.length, n = "", o = 0; o < e; o++) {
  793. var i = t[o];
  794. n = 0 == o ? i : n + "," + i;
  795. }
  796. cc.log("test__" + n);
  797. a.deniedUploadDeviceInfo(n);
  798. }
  799. } else cc.log("You must run on Android or iOS.");
  800. }
  801. }, c = "ATJSSDK.ATSDKListener.getUserLocationCallback";
  802. window.ATJSSDK = r;
  803. cc._RF.pop();
  804. }, {
  805. "./Android/ATAndroidJS": "ATAndroidJS",
  806. "./iOS/ATiOSJS": "ATiOSJS"
  807. } ],
  808. ATNativeJSSDK: [ function(t, e) {
  809. "use strict";
  810. cc._RF.push(e, "39725wDOBhDQYIM5/T7cLXZ", "ATNativeJSSDK");
  811. var n = t("./Android/ATAndroidNativeJS"), o = t("./iOS/ATiOSNativeJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, a = a || {
  812. ATNativeListener: {
  813. developerCallback: null,
  814. onNativeAdLoaded: function(t) {
  815. null != this.developerCallback && null != this.developerCallback.onNativeAdLoaded && null != this.developerCallback.onNativeAdLoaded && this.developerCallback.onNativeAdLoaded(t);
  816. },
  817. onNativeAdLoadFail: function(t, e) {
  818. null != this.developerCallback && null != this.developerCallback.onNativeAdLoadFail && null != this.developerCallback.onNativeAdLoadFail && this.developerCallback.onNativeAdLoadFail(t, e);
  819. },
  820. onNativeAdShow: function(t, e) {
  821. null != this.developerCallback && null != this.developerCallback.onNativeAdShow && null != this.developerCallback.onNativeAdShow && this.developerCallback.onNativeAdShow(t, e);
  822. },
  823. onNativeAdClick: function(t, e) {
  824. null != this.developerCallback && null != this.developerCallback.onNativeAdClick && null != this.developerCallback.onNativeAdClick && this.developerCallback.onNativeAdClick(t, e);
  825. },
  826. onNativeAdVideoStart: function(t) {
  827. null != this.developerCallback && null != this.developerCallback.onNativeAdVideoStart && null != this.developerCallback.onNativeAdVideoStart && this.developerCallback.onNativeAdVideoStart(t);
  828. },
  829. onNativeAdVideoEnd: function(t) {
  830. null != this.developerCallback && null != this.developerCallback.onNativeAdVideoEnd && null != this.developerCallback.onNativeAdVideoEnd && this.developerCallback.onNativeAdVideoEnd(t);
  831. },
  832. onNativeAdCloseButtonTapped: function(t, e) {
  833. null != this.developerCallback && null != this.developerCallback.onNativeAdCloseButtonTapped && null != this.developerCallback.onNativeAdCloseButtonTapped && this.developerCallback.onNativeAdCloseButtonTapped(t, e);
  834. }
  835. },
  836. loadNative: function(t, e) {
  837. void 0 === e && (e = {});
  838. null != i && null != i ? i.loadNative(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  839. },
  840. setAdListener: function(t) {
  841. var e = {};
  842. e[r] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoaded", e[c] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoadFail",
  843. e[s] = "ATNativeJSSDK.ATNativeListener.onNativeAdCloseButtonTapped", e[l] = "ATNativeJSSDK.ATNativeListener.onNativeAdClick",
  844. e[u] = "ATNativeJSSDK.ATNativeListener.onNativeAdShow", e[p] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoStart",
  845. e[d] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoEnd";
  846. null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  847. this.ATNativeListener.developerCallback = t;
  848. },
  849. hasAdReady: function(t) {
  850. if (null != i && null != i) return i.hasAdReady(t);
  851. cc.log("You must run on Android or iOS.");
  852. return !1;
  853. },
  854. checkAdStatus: function(t) {
  855. if (null != i && null != i) return i.checkAdStatus(t);
  856. cc.log("You must run on Android or iOS.");
  857. return "";
  858. },
  859. showAd: function(t, e) {
  860. null != i && null != i ? i.showAd(t, JSON.stringify(e.getAdViewProperty())) : cc.log("You must run on Android or iOS.");
  861. },
  862. showAdInScenario: function(t, e, n) {
  863. void 0 === n && (n = "");
  864. null != i && null != i ? i.showAdInScenario(t, JSON.stringify(e.getAdViewProperty()), n) : cc.log("You must run on Android or iOS.");
  865. },
  866. removeAd: function(t) {
  867. null != i && null != i ? i.removeAd(t) : cc.log("You must run on Android or iOS.");
  868. },
  869. createLoadAdSize: function(t, e) {
  870. var n = {};
  871. n.width = t;
  872. n.height = e;
  873. return n;
  874. },
  875. AdViewProperty: cc.Class({
  876. parent: null,
  877. appIcon: null,
  878. mainImage: null,
  879. title: null,
  880. desc: null,
  881. adLogo: null,
  882. cta: null,
  883. rating: null,
  884. dislike: null,
  885. createItemViewProperty: function(t, e, n, o, i, a, r, c) {
  886. void 0 === c && (c = !1);
  887. var s = {};
  888. s.x = t;
  889. s.y = e;
  890. s.width = n;
  891. s.height = o;
  892. s.backgroundColor = i;
  893. s.textColor = a;
  894. s.textSize = r;
  895. s.isCustomClick = c;
  896. return s;
  897. },
  898. getAdViewProperty: function() {
  899. var t = {};
  900. null != this.parent && (t.parent = this.parent);
  901. null != this.appIcon && (t.icon = this.appIcon);
  902. null != this.mainImage && (t.mainImage = this.mainImage);
  903. null != this.title && (t.title = this.title);
  904. null != this.desc && (t.desc = this.desc);
  905. null != this.adLogo && (t.adLogo = this.adLogo);
  906. null != this.cta && (t.cta = this.cta);
  907. null != this.rating && (t.rating = this.rating);
  908. null != this.dislike && (t.dislike = this.dislike);
  909. return t;
  910. }
  911. })
  912. }, r = "NativeLoaded", c = "NativeLoadFail", s = "NativeCloseButtonTapped", l = "NativeClick", u = "NativeShow", p = "NativeVideoStart", d = "NativeVideoEnd";
  913. window.ATNativeJSSDK = a;
  914. cc._RF.pop();
  915. }, {
  916. "./Android/ATAndroidNativeJS": "ATAndroidNativeJS",
  917. "./iOS/ATiOSNativeJS": "ATiOSNativeJS"
  918. } ],
  919. ATNativeJS: [ function(t, e) {
  920. "use strict";
  921. cc._RF.push(e, "632566KI5RGZ7SH/rUdPBiO", "ATNativeJS");
  922. t("./AnyThinkAds/ATRewardedVideoJSSDK");
  923. t("./AnyThinkAds/ATJSSDK");
  924. t("./AnyThinkAds/ATInterstitialJSSDK");
  925. t("./AnyThinkAds/ATNativeJSSDK");
  926. var n = cc.Class({
  927. name: "ATNativeJS",
  928. proxy: null,
  929. ctor: function() {},
  930. init: function() {
  931. ATNativeJSSDK.setAdListener(this);
  932. },
  933. placementID: function() {
  934. return this.proxy.placementID();
  935. },
  936. hasAdReady: function() {
  937. return !!ATNativeJSSDK.hasAdReady(this.placementID());
  938. },
  939. loadNative: function(t, e) {
  940. ATNativeJSSDK.loadNative(this.placementID(), ATNativeJSSDK.createLoadAdSize(t, e));
  941. },
  942. showNative: function(t, e, n, o, i) {
  943. var a = new ATNativeJSSDK.AdViewProperty();
  944. a.parent = a.createItemViewProperty(t, e, n, o, "#ffffff", "", 0);
  945. a.mainImage = a.createItemViewProperty(0, 0, n, o, "#ffffff", "#ffffff", i);
  946. ATNativeJSSDK.showAd(this.placementID(), a);
  947. },
  948. destroyNative: function() {
  949. ATNativeJSSDK.removeAd(this.placementID());
  950. },
  951. onNativeAdLoaded: function(t) {
  952. null != this.proxy && this.proxy.onNativeAdLoaded(t);
  953. },
  954. onNativeAdLoadFail: function(t, e) {
  955. ATJSSDK.printLog("===[AnyThinkNativeDemo::onNativeAdLoadFail(" + t + ", " + e + ")");
  956. null != this.proxy && this.proxy.onNativeAdLoadFail(t, e);
  957. },
  958. onNativeAdShow: function(t, e) {
  959. null != this.proxy && this.proxy.onNativeAdShow(t, e);
  960. },
  961. onNativeAdClick: function() {},
  962. onNativeAdVideoStart: function() {},
  963. onNativeAdVideoEnd: function() {},
  964. onNativeAdCloseButtonTapped: function() {}
  965. });
  966. e.exports = n;
  967. cc.ATNativeJS || (cc.ATNativeJS = new n());
  968. cc._RF.pop();
  969. }, {
  970. "./AnyThinkAds/ATInterstitialJSSDK": void 0,
  971. "./AnyThinkAds/ATJSSDK": void 0,
  972. "./AnyThinkAds/ATNativeJSSDK": void 0,
  973. "./AnyThinkAds/ATRewardedVideoJSSDK": void 0
  974. } ],
  975. ATNative: [ function(t, e, n) {
  976. "use strict";
  977. cc._RF.push(e, "6935cecX45IioFawvWRaxhk", "ATNative");
  978. var o, i = this && this.__extends || (o = function(t, e) {
  979. return (o = Object.setPrototypeOf || {
  980. __proto__: []
  981. } instanceof Array && function(t, e) {
  982. t.__proto__ = e;
  983. } || function(t, e) {
  984. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  985. })(t, e);
  986. }, function(t, e) {
  987. o(t, e);
  988. function n() {
  989. this.constructor = t;
  990. }
  991. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  992. });
  993. Object.defineProperty(n, "__esModule", {
  994. value: !0
  995. });
  996. n.NativeAdState = n.ATNative = void 0;
  997. var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
  998. i(e, t);
  999. function e() {
  1000. var e = null !== t && t.apply(this, arguments) || this;
  1001. e.nativeAdType = 4;
  1002. e.nativeAdState = 0;
  1003. e.ifLoadShow = !1;
  1004. return e;
  1005. }
  1006. e.prototype.init = function() {
  1007. this.ATNativeJS = cc.ATNativeJS;
  1008. this.ATNativeJS.proxy = this;
  1009. this.ATNativeJS.init();
  1010. this.nativeAdState == a.Unload && this.loadNative(4);
  1011. };
  1012. e.prototype.placementID = function() {
  1013. return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_native_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_native_placementId : void 0;
  1014. };
  1015. e.prototype.hasAdReady = function() {
  1016. return this.ATNativeJS.hasAdReady();
  1017. };
  1018. e.prototype.loadNative = function(t, e) {
  1019. void 0 === t && (t = 4);
  1020. void 0 === e && (e = !1);
  1021. this.nativeAdType = t;
  1022. this.ifLoadShow = e;
  1023. this.nativeAdState = a.Loading;
  1024. var n = cc.view.getFrameSize().width / 750, o = 656 * n, i = 440 * n;
  1025. if (2 == this.nativeAdType) {
  1026. o *= .9;
  1027. i *= .8;
  1028. } else if (3 == this.nativeAdType) {
  1029. o *= .9;
  1030. i *= .75;
  1031. }
  1032. this.ATNativeJS.loadNative(o, i);
  1033. };
  1034. e.prototype.showNative = function(t) {
  1035. if (this.nativeAdState == a.Show) ; else if (this.hasAdReady()) if (this.nativeAdType != t) {
  1036. this.destroyNative();
  1037. this.loadNative(t, !0);
  1038. } else {
  1039. console.log("===[ShowNative", t);
  1040. var e = cc.view.getFrameSize(), n = e.width, o = e.height, i = n / 750, r = 656 * i, c = 440 * i, s = 0;
  1041. if (0 == t) s = .45 * o; else if (1 == t) s = .625 * o; else if (2 == t) {
  1042. s = .595 * o;
  1043. r *= .9;
  1044. c *= .8;
  1045. } else if (3 == t) {
  1046. s = .69 * o;
  1047. r *= .9;
  1048. c *= .75;
  1049. } else 4 == t && (s = .75 * o);
  1050. var l = .5 * (n - r);
  1051. this.ATNativeJS.showNative(l, s, r, c);
  1052. } else this.nativeAdState == a.Loading ? this.ifLoadShow = !0 : this.loadNative(t, !0);
  1053. };
  1054. e.prototype.destroyNative = function() {
  1055. this.nativeAdState = a.Close;
  1056. this.ATNativeJS.destroyNative();
  1057. this.loadNative(this.nativeAdType);
  1058. };
  1059. e.prototype.onNativeAdLoaded = function() {
  1060. this.nativeAdState = a.LoadSuccess;
  1061. this.ifLoadShow && this.showNative(this.nativeAdType);
  1062. };
  1063. e.prototype.onNativeAdLoadFail = function(t) {
  1064. this.nativeAdState = a.LoadFail;
  1065. gData.adData.updateADLog(12, t);
  1066. };
  1067. e.prototype.onNativeAdShow = function(t, e) {
  1068. this.nativeAdState = a.Show;
  1069. var n = JSON.parse(e);
  1070. gData.adData.updateADLog(3, t, n);
  1071. };
  1072. e.prototype.onNativeAdClick = function() {};
  1073. return e;
  1074. }(r.zgSingleton);
  1075. n.ATNative = s;
  1076. (function(t) {
  1077. t[t.Unload = 0] = "Unload";
  1078. t[t.Loading = 1] = "Loading";
  1079. t[t.LoadSuccess = 2] = "LoadSuccess";
  1080. t[t.LoadFail = 3] = "LoadFail";
  1081. t[t.Show = 4] = "Show";
  1082. t[t.Close = 5] = "Close";
  1083. })(a = n.NativeAdState || (n.NativeAdState = {}));
  1084. cc._RF.pop();
  1085. }, {
  1086. "../../zgSingleton": "zgSingleton",
  1087. "./ATSDKMgr": "ATSDKMgr"
  1088. } ],
  1089. ATRewardVideoJS: [ function(t, e) {
  1090. "use strict";
  1091. cc._RF.push(e, "7a311dQIK5HyqkCe/o7a1dk", "ATRewardVideoJS");
  1092. t("./AnyThinkAds/ATRewardedVideoJSSDK");
  1093. t("./AnyThinkAds/ATJSSDK");
  1094. var n = cc.Class({
  1095. name: "ATRewardVideoJS",
  1096. proxy: null,
  1097. ctor: function() {
  1098. console.log("ATRewardVideoJS.js created! ");
  1099. },
  1100. init: function() {
  1101. ATRewardedVideoJSSDK.setAdListener(this);
  1102. },
  1103. placementID: function() {
  1104. return this.proxy.placementID();
  1105. },
  1106. loadAd: function(t, e) {
  1107. var n = {};
  1108. n[ATRewardedVideoJSSDK.userIdKey] = t;
  1109. n[ATRewardedVideoJSSDK.userDataKey] = e;
  1110. ATRewardedVideoJSSDK.loadRewardedVideo(this.placementID(), n);
  1111. },
  1112. showAd: function() {
  1113. ATRewardedVideoJSSDK.showAdInScenario(this.placementID(), "");
  1114. },
  1115. hasAdReady: function() {
  1116. if (null != this.proxy) return !!ATRewardedVideoJSSDK.hasAdReady(this.placementID());
  1117. },
  1118. onRewardedVideoAdLoaded: function(t) {
  1119. null != this.proxy && this.proxy.onRewardedVideoAdLoaded(t);
  1120. },
  1121. onRewardedVideoAdFailed: function(t, e) {
  1122. ATJSSDK.printLog("===[AnyThinkRewardedVideo::onRewardedVideoAdFailed(" + t + ", " + e + ")");
  1123. null != this.proxy && this.proxy.onRewardedVideoAdFailed(t, e);
  1124. },
  1125. onRewardedVideoAdPlayStart: function(t, e) {
  1126. null != this.proxy && this.proxy.onRewardedVideoAdPlayStart(t, e);
  1127. },
  1128. onRewardedVideoAdPlayEnd: function(t, e) {
  1129. null != this.proxy && this.proxy.onRewardedVideoAdPlayEnd(t, e);
  1130. },
  1131. onRewardedVideoAdPlayFailed: function(t, e, n) {
  1132. null != this.proxy && this.proxy.onRewardedVideoAdPlayFailed(t, e, n);
  1133. },
  1134. onRewardedVideoAdClosed: function(t, e) {
  1135. null != this.proxy && this.proxy.onRewardedVideoAdClosed(t, e);
  1136. },
  1137. onRewardedVideoAdPlayClicked: function(t, e) {
  1138. null != this.proxy && this.proxy.onRewardedVideoAdPlayClicked(t, e);
  1139. },
  1140. onReward: function(t, e) {
  1141. null != this.proxy && this.proxy.onReward(t, e);
  1142. }
  1143. });
  1144. e.exports = n;
  1145. cc.ATRewardVideoJS || (cc.ATRewardVideoJS = new n());
  1146. cc._RF.pop();
  1147. }, {
  1148. "./AnyThinkAds/ATJSSDK": void 0,
  1149. "./AnyThinkAds/ATRewardedVideoJSSDK": void 0
  1150. } ],
  1151. ATRewardVideo: [ function(t, e, n) {
  1152. "use strict";
  1153. cc._RF.push(e, "ee3a8fFEl1HTb/Gl6EilBAf", "ATRewardVideo");
  1154. var o, i = this && this.__extends || (o = function(t, e) {
  1155. return (o = Object.setPrototypeOf || {
  1156. __proto__: []
  1157. } instanceof Array && function(t, e) {
  1158. t.__proto__ = e;
  1159. } || function(t, e) {
  1160. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  1161. })(t, e);
  1162. }, function(t, e) {
  1163. o(t, e);
  1164. function n() {
  1165. this.constructor = t;
  1166. }
  1167. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  1168. });
  1169. Object.defineProperty(n, "__esModule", {
  1170. value: !0
  1171. });
  1172. n.RewardAdState = n.ATRewardVideo = void 0;
  1173. var a, r = t("../../../../../game/data/GameData"), c = t("../../zgSingleton"), s = t("./ATSDKMgr"), l = function(t) {
  1174. i(e, t);
  1175. function e() {
  1176. var e = null !== t && t.apply(this, arguments) || this;
  1177. e.reawardAdState = 0;
  1178. e.ifLoadShow = !1;
  1179. e.ifWatchEnd = !1;
  1180. return e;
  1181. }
  1182. e.prototype.init = function() {
  1183. this.ATRewardVideoJS = cc.ATRewardVideoJS;
  1184. this.ATRewardVideoJS.proxy = this;
  1185. this.ATRewardVideoJS.init();
  1186. this.ifWatchEnd = !1;
  1187. this.reawardAdState == a.Unload && this.loadAd();
  1188. };
  1189. e.prototype.placementID = function() {
  1190. return cc.sys.os === cc.sys.OS_IOS ? s.default.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? s.default.topon_rewardVideo_placementId : void 0;
  1191. };
  1192. e.prototype.hasAdReady = function() {
  1193. return this.ATRewardVideoJS.hasAdReady();
  1194. };
  1195. e.prototype.loadAd = function() {
  1196. console.log("anythink === 加载激励视频广告", a[this.reawardAdState]);
  1197. if (this.reawardAdState != a.Loading) {
  1198. console.log("anythink === 加载激励视频广告 onload", a[this.reawardAdState]);
  1199. this.reawardAdState = a.Loading;
  1200. this.ATRewardVideoJS.loadAd(gData.loginData.uin, "userDataKey");
  1201. }
  1202. };
  1203. e.prototype.showAd = function() {
  1204. if (this.reawardAdState == a.LoadSuccess) this.ATRewardVideoJS.showAd(); else {
  1205. this.loadAd();
  1206. this.ifLoadShow = !0;
  1207. }
  1208. };
  1209. e.prototype.onRewardedVideoAdLoaded = function() {
  1210. console.log("anythink === 加载激励视频广告成功", this.hasAdReady(), a[this.reawardAdState]);
  1211. this.reawardAdState = a.LoadSuccess;
  1212. if (this.ifLoadShow) {
  1213. this.showAd();
  1214. this.ifLoadShow = !1;
  1215. }
  1216. };
  1217. e.prototype.onRewardedVideoAdFailed = function() {
  1218. console.log("anythink === 加载激励视频广告失败", a[this.reawardAdState]);
  1219. this.reawardAdState = a.LoadFail;
  1220. };
  1221. e.prototype.onRewardedVideoAdPlayStart = function(t, e) {
  1222. var n = JSON.parse(e);
  1223. gData.adData.updateADLog(4, t, n);
  1224. gData.adData.updateData(t, n);
  1225. mk.data.sendDataEvent(r.DataEventId.video_init, mk.ad.videoAdType);
  1226. this.reawardAdState = a.Unload;
  1227. };
  1228. e.prototype.onRewardedVideoAdPlayEnd = function() {
  1229. this.ifWatchEnd = !0;
  1230. };
  1231. e.prototype.onRewardedVideoAdPlayFailed = function(t, e, n) {
  1232. var o = JSON.parse(n);
  1233. gData.adData.updateADLog(5, t, o);
  1234. s.default.getInstance().watchVideoAdCallBack(s.AdPlayStateType.PlayFail);
  1235. };
  1236. e.prototype.onRewardedVideoAdClosed = function() {
  1237. if (this.ifWatchEnd) {
  1238. s.default.getInstance().watchVideoAdCallBack(s.AdPlayStateType.WatchEnd);
  1239. mk.data.sendDataEvent(r.DataEventId.video_end, mk.ad.videoAdType);
  1240. } else s.default.getInstance().watchVideoAdCallBack(s.AdPlayStateType.Cancel);
  1241. this.ifWatchEnd = !1;
  1242. this.loadAd();
  1243. };
  1244. e.prototype.onRewardedVideoAdPlayClicked = function() {};
  1245. e.prototype.onReward = function() {
  1246. this.ifWatchEnd = !0;
  1247. };
  1248. return e;
  1249. }(c.zgSingleton);
  1250. n.ATRewardVideo = l;
  1251. (function(t) {
  1252. t[t.Unload = 0] = "Unload";
  1253. t[t.Loading = 1] = "Loading";
  1254. t[t.LoadSuccess = 2] = "LoadSuccess";
  1255. t[t.LoadFail = 3] = "LoadFail";
  1256. t[t.PlayEnd = 4] = "PlayEnd";
  1257. })(a = n.RewardAdState || (n.RewardAdState = {}));
  1258. cc._RF.pop();
  1259. }, {
  1260. "../../../../../game/data/GameData": "GameData",
  1261. "../../zgSingleton": "zgSingleton",
  1262. "./ATSDKMgr": "ATSDKMgr"
  1263. } ],
  1264. ATRewardedVideoJSSDK: [ function(t, e) {
  1265. "use strict";
  1266. cc._RF.push(e, "8ac0a0yhkxIB7Ga0FkDttBs", "ATRewardedVideoJSSDK");
  1267. var n = t("./Android/ATAndroidRewardedVideoJS"), o = t("./iOS/ATiOSRewardedVideoJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, a = a || {
  1268. userIdKey: "userID",
  1269. userDataKey: "media_ext",
  1270. ATRewardedVideoListener: {
  1271. developerCallback: null,
  1272. onRewardedVideoAdLoaded: function(t) {
  1273. ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded(" + t + ")");
  1274. null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdLoaded && null != this.developerCallback.onRewardedVideoAdLoaded && this.developerCallback.onRewardedVideoAdLoaded(t);
  1275. },
  1276. onRewardedVideoAdFailed: function(t, e) {
  1277. ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed(" + t + ", " + e + ")");
  1278. null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdFailed && null != this.developerCallback.onRewardedVideoAdFailed && this.developerCallback.onRewardedVideoAdFailed(t, e);
  1279. },
  1280. onRewardedVideoAdPlayStart: function(t, e) {
  1281. ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart(" + t + ", " + e + ")");
  1282. null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayStart && null != this.developerCallback.onRewardedVideoAdPlayStart && this.developerCallback.onRewardedVideoAdPlayStart(t, e);
  1283. },
  1284. onRewardedVideoAdPlayEnd: function(t, e) {
  1285. ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd(" + t + ", " + e + ")");
  1286. null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayEnd && null != this.developerCallback.onRewardedVideoAdPlayEnd && this.developerCallback.onRewardedVideoAdPlayEnd(t, e);
  1287. },
  1288. onRewardedVideoAdPlayFailed: function(t, e, n) {
  1289. ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed(" + t + ", " + n + ")");
  1290. null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayFailed && null != this.developerCallback.onRewardedVideoAdPlayFailed && this.developerCallback.onRewardedVideoAdPlayFailed(t, e, n);
  1291. },
  1292. onRewardedVideoAdClosed: function(t, e) {
  1293. ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed(" + t + ", " + e + ")");
  1294. null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdClosed && null != this.developerCallback.onRewardedVideoAdClosed && this.developerCallback.onRewardedVideoAdClosed(t, e);
  1295. },
  1296. onRewardedVideoAdPlayClicked: function(t, e) {
  1297. ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked(" + t + ", " + e + ")");
  1298. null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayClicked && null != this.developerCallback.onRewardedVideoAdPlayClicked && this.developerCallback.onRewardedVideoAdPlayClicked(t, e);
  1299. },
  1300. onReward: function(t, e) {
  1301. ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward(" + t + ", " + e + ")");
  1302. null != this.developerCallback && null != this.developerCallback.onReward && null != this.developerCallback.onReward && this.developerCallback.onReward(t, e);
  1303. }
  1304. },
  1305. loadRewardedVideo: function(t, e) {
  1306. void 0 === e && (e = {});
  1307. null != i && null != i ? i.loadRewardedVideo(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  1308. },
  1309. setAdListener: function(t) {
  1310. var e = {};
  1311. e[r] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded", e[c] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed",
  1312. e[s] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart",
  1313. e[l] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd",
  1314. e[u] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed",
  1315. e[p] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed", e[d] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked",
  1316. e[h] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward";
  1317. null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
  1318. this.ATRewardedVideoListener.developerCallback = t;
  1319. },
  1320. hasAdReady: function(t) {
  1321. if (null != i && null != i) return i.hasAdReady(t);
  1322. cc.log("You must run on Android or iOS.");
  1323. return !1;
  1324. },
  1325. checkAdStatus: function(t) {
  1326. if (null != i && null != i) return i.checkAdStatus(t);
  1327. cc.log("You must run on Android or iOS.");
  1328. return "";
  1329. },
  1330. showAd: function(t) {
  1331. null != i && null != i ? i.showAd(t) : cc.log("You must run on Android or iOS.");
  1332. },
  1333. showAdInScenario: function(t, e) {
  1334. void 0 === e && (e = "");
  1335. null != i && null != i ? i.showAdInScenario(t, e) : cc.log("You must run on Android or iOS.");
  1336. }
  1337. }, r = "RewardedVideoLoaded", c = "RewardedVideoLoadFail", s = "RewardedVideoPlayStart", l = "RewardedVideoPlayEnd", u = "RewardedVideoPlayFail", p = "RewardedVideoClose", d = "RewardedVideoClick", h = "RewardedVideoReward";
  1338. window.ATRewardedVideoJSSDK = a;
  1339. cc._RF.pop();
  1340. }, {
  1341. "./Android/ATAndroidRewardedVideoJS": "ATAndroidRewardedVideoJS",
  1342. "./iOS/ATiOSRewardedVideoJS": "ATiOSRewardedVideoJS"
  1343. } ],
  1344. ATSDKMgrJS: [ function(t, e) {
  1345. "use strict";
  1346. cc._RF.push(e, "f54e6FGCLdB06BaS25A0bWv", "ATSDKMgrJS");
  1347. t("./AnyThinkAds/ATJSSDK");
  1348. var n = cc.Class({
  1349. name: "ATSDKMgrJS",
  1350. proxy: null,
  1351. ctor: function() {
  1352. console.log("ATSDKMgrJS.js created! ");
  1353. },
  1354. initATJSSDK: function(t, e) {
  1355. ATJSSDK.setLogDebug(!0);
  1356. ATJSSDK.initCustomMap({
  1357. appCustomKey1: "appCustomValue1",
  1358. appCustomKey2: "appCustomValue2"
  1359. });
  1360. ATJSSDK.setPlacementCustomMap(this.placementID(), {
  1361. placementCustomKey1: "placementCustomValue1",
  1362. placementCustomKey2: "placementCustomValue2"
  1363. });
  1364. ATJSSDK.getGDPRLevel();
  1365. cc.sys.os === cc.sys.OS_IOS ? ATJSSDK.initSDK(t, e) : cc.sys.os === cc.sys.OS_ANDROID && ATJSSDK.initSDK(t, e);
  1366. ATJSSDK.getUserLocation(function(t) {
  1367. t === ATJSSDK.kATUserLocationInEU && ATJSSDK.getGDPRLevel() === ATJSSDK.UNKNOWN && ATJSSDK.showGDPRAuth();
  1368. });
  1369. },
  1370. placementID: function() {
  1371. return this.proxy.placementID();
  1372. }
  1373. });
  1374. e.exports = n;
  1375. cc.ATSDKMgrJS || (cc.ATSDKMgrJS = new n());
  1376. cc._RF.pop();
  1377. }, {
  1378. "./AnyThinkAds/ATJSSDK": void 0
  1379. } ],
  1380. ATSDKMgr: [ function(t, e, n) {
  1381. "use strict";
  1382. cc._RF.push(e, "ae75dW/PnBNZp5nLfdPDYa5", "ATSDKMgr");
  1383. var o, i = this && this.__extends || (o = function(t, e) {
  1384. return (o = Object.setPrototypeOf || {
  1385. __proto__: []
  1386. } instanceof Array && function(t, e) {
  1387. t.__proto__ = e;
  1388. } || function(t, e) {
  1389. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  1390. })(t, e);
  1391. }, function(t, e) {
  1392. o(t, e);
  1393. function n() {
  1394. this.constructor = t;
  1395. }
  1396. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  1397. }), a = this && this.__decorate || function(t, e, n, o) {
  1398. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  1399. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  1400. return a > 3 && r && Object.defineProperty(e, n, r), r;
  1401. };
  1402. Object.defineProperty(n, "__esModule", {
  1403. value: !0
  1404. });
  1405. n.AdPlayStateType = void 0;
  1406. var r, c = t("../../../../system/JsbSystem"), s = t("../../zgSingleton"), l = t("./ATBanner"), u = t("./ATInterstitial"), p = t("./ATNative"), d = t("./ATRewardVideo"), h = cc._decorator, f = h.ccclass, y = (h.property,
  1407. function(t) {
  1408. i(e, t);
  1409. function e() {
  1410. return null !== t && t.apply(this, arguments) || this;
  1411. }
  1412. n = e;
  1413. e.prototype.initSDK = function() {
  1414. if (cc.sys.isNative) {
  1415. this.getAdvertiseChannel();
  1416. window.ATJSSDK.setLogDebug(!0);
  1417. cc.ATSDKMgrJS.proxy = this;
  1418. cc.ATSDKMgrJS.initATJSSDK(n.topon_android_appId, n.topon_android_appSecret);
  1419. d.ATRewardVideo.getInstance().init();
  1420. p.ATNative.getInstance().init();
  1421. u.default.getInstance().init();
  1422. l.default.getInstance().init();
  1423. }
  1424. };
  1425. e.prototype.placementID = function() {
  1426. return cc.sys.os === cc.sys.OS_IOS ? n.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? n.topon_rewardVideo_placementId : void 0;
  1427. };
  1428. e.prototype.getAdvertiseChannel = function() {
  1429. var t = c.default.getAdvertisingChannel();
  1430. t || (t = "1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313");
  1431. console.log("getAdvertiseChannel..." + t);
  1432. var e = t.split(",");
  1433. e[0];
  1434. n.topon_android_appId = e[1];
  1435. n.topon_android_appSecret = e[2];
  1436. n.topon_rewardVideo_placementId = e[3];
  1437. n.topon_inter_placementId = e[4];
  1438. n.topon_native_placementId = e[5];
  1439. n.topon_fullinter_placementId = e[6];
  1440. n.topon_banner_placementId = e[7];
  1441. };
  1442. e.prototype.showVideo = function() {
  1443. console.log("===[ShowVideoAd] ", d.ATRewardVideo.getInstance().hasAdReady());
  1444. d.ATRewardVideo.getInstance().hasAdReady() || mk.tip.pop("广告加载中,请稍后");
  1445. d.ATRewardVideo.getInstance().showAd();
  1446. };
  1447. e.prototype.watchVideoAdCallBack = function(t) {
  1448. switch (t) {
  1449. case r.WatchEnd:
  1450. mk.ad.wacthAdSuccess();
  1451. break;
  1452. case r.PlayFail:
  1453. case r.Cancel:
  1454. mk.ad.watchAdFail();
  1455. }
  1456. };
  1457. e.prototype.showInter = function(t) {
  1458. void 0 === t && (t = 0);
  1459. u.default.getInstance().showInter(t);
  1460. };
  1461. e.prototype.loadNative = function(t, e) {
  1462. p.ATNative.getInstance().loadNative(t, e);
  1463. };
  1464. e.prototype.showNative = function(t) {
  1465. p.ATNative.getInstance().showNative(t);
  1466. };
  1467. e.prototype.destroyNative = function() {
  1468. p.ATNative.getInstance().destroyNative();
  1469. };
  1470. e.prototype.loadBanner = function(t) {
  1471. void 0 === t && (t = !1);
  1472. l.default.getInstance().loadBanner(t);
  1473. };
  1474. e.prototype.showBanner = function() {
  1475. l.default.getInstance().showBanner();
  1476. };
  1477. e.prototype.destoryBanner = function() {
  1478. l.default.getInstance().destroyBanner();
  1479. };
  1480. var n;
  1481. e.topon_android_appId = "a5f8fa5f10c661";
  1482. e.topon_android_appSecret = "66b742dd0e502b64d783d9c66a9d30c4";
  1483. e.topon_rewardVideo_placementId = "b5f8fa6673e180";
  1484. e.topon_inter_placementId = "b5f8fa77aa5262";
  1485. e.topon_native_placementId = "b5f8fa77aa5262";
  1486. e.topon_fullinter_placementId = "b5f8fa77aa5262";
  1487. e.topon_banner_placementId = "b5f8fa77aa5262";
  1488. return n = a([ f ], e);
  1489. }(s.zgSingleton));
  1490. n.default = y;
  1491. (function(t) {
  1492. t[t.WatchEnd = 0] = "WatchEnd";
  1493. t[t.PlayFail = 1] = "PlayFail";
  1494. t[t.Cancel = 2] = "Cancel";
  1495. })(r = n.AdPlayStateType || (n.AdPlayStateType = {}));
  1496. cc._RF.pop();
  1497. }, {
  1498. "../../../../system/JsbSystem": "JsbSystem",
  1499. "../../zgSingleton": "zgSingleton",
  1500. "./ATBanner": "ATBanner",
  1501. "./ATInterstitial": "ATInterstitial",
  1502. "./ATNative": "ATNative",
  1503. "./ATRewardVideo": "ATRewardVideo"
  1504. } ],
  1505. ATiOSBannerJS: [ function(t, e) {
  1506. "use strict";
  1507. cc._RF.push(e, "47c24W1IvZAuqKINopNo+IW", "ATiOSBannerJS");
  1508. var n = t("ATiOSJS"), o = o || {
  1509. loadBanner: function(t, e) {
  1510. n.printJsLog("ATiOSBannerJS::loadBanner(" + t + ", " + e + ")");
  1511. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "loadBannerWithPlacementID:extra:", t, e);
  1512. },
  1513. setAdListener: function(t) {
  1514. n.printJsLog("ATiOSBannerJS::setAdListener(" + t + ")");
  1515. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "setDelegates:", t);
  1516. },
  1517. hasAdReady: function(t) {
  1518. n.printJsLog("ATiOSBannerJS::hasAdReady(" + t + ")");
  1519. return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerReadyForPlacementID:", t);
  1520. },
  1521. checkAdStatus: function(t) {
  1522. n.printJsLog("ATiOSBannerJS::checkAdStatus(" + t + ")");
  1523. return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerCheckAdStatusForPlacementID:", t);
  1524. },
  1525. showAdInPosition: function(t, e) {
  1526. n.printJsLog("ATiOSBannerJS::showAdInPosition(" + t + ", " + e + ")");
  1527. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:position:", t, null, e);
  1528. },
  1529. showAdInPositionAndScenario: function(t, e, o) {
  1530. n.printJsLog("ATiOSBannerJS::showAdInPositionAndScenario(" + t + ", " + e + ", " + o + ")");
  1531. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:position:", t, o, e);
  1532. },
  1533. showAdInRectangle: function(t, e) {
  1534. n.printJsLog("ATiOSBannerJS::showAdInRectangle(" + t + ", " + e + ")");
  1535. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:rect:", t, null, e);
  1536. },
  1537. showAdInRectangleAndScenario: function(t, e, o) {
  1538. n.printJsLog("ATiOSBannerJS::showAdInRectangleAndScenario(" + t + ", " + e + ", " + o + ")");
  1539. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:rect:", t, o, e);
  1540. },
  1541. removeAd: function(t) {
  1542. n.printJsLog("ATiOSBannerJS::removeAd(" + t + ")");
  1543. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "removeAd:", t);
  1544. },
  1545. reShowAd: function(t) {
  1546. n.printJsLog("ATiOSBannerJS::reShowAd(" + t + ")");
  1547. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "reShowAd:", t);
  1548. },
  1549. hideAd: function(t) {
  1550. n.printJsLog("ATiOSBannerJS::hideAd(" + t + ")");
  1551. jsb.reflection.callStaticMethod("ATBannerAdWrapper", "hideAd:", t);
  1552. }
  1553. };
  1554. e.exports = o;
  1555. cc._RF.pop();
  1556. }, {
  1557. ATiOSJS: "ATiOSJS"
  1558. } ],
  1559. ATiOSInterstitialJS: [ function(t, e) {
  1560. "use strict";
  1561. cc._RF.push(e, "ddd933gNJFDEICb4s6+4eu5", "ATiOSInterstitialJS");
  1562. var n = t("ATiOSJS"), o = "ATInterstitialAdWrapper", i = i || {
  1563. loadInterstitial: function(t, e) {
  1564. n.printJsLog("ATiOSInterstitialJS::loadInterstitial(" + t + ", " + e + ")");
  1565. jsb.reflection.callStaticMethod(o, "loadInterstitialWithPlacementID:extra:", t, e);
  1566. },
  1567. setAdListener: function(t) {
  1568. n.printJsLog("ATiOSInterstitialJS::setAdListener(" + t + ")");
  1569. jsb.reflection.callStaticMethod(o, "setDelegates:", t);
  1570. },
  1571. hasAdReady: function(t) {
  1572. n.printJsLog("ATiOSInterstitialJS::hasAdReady(" + t + ")");
  1573. return jsb.reflection.callStaticMethod(o, "interstitialReadyForPlacementID:", t);
  1574. },
  1575. checkAdStatus: function(t) {
  1576. n.printJsLog("ATiOSInterstitialJS::checkAdStatus(" + t + ")");
  1577. return jsb.reflection.callStaticMethod(o, "checkAdStatus:", t);
  1578. },
  1579. setUserData: function() {
  1580. cc.log("Android-setUserData");
  1581. },
  1582. showAd: function(t) {
  1583. n.printJsLog("ATiOSInterstitialJS::showAd(" + t + ")");
  1584. return jsb.reflection.callStaticMethod(o, "showInterstitialWithPlacementID:scene:", t, null);
  1585. },
  1586. showAdInScenario: function(t, e) {
  1587. n.printJsLog("ATiOSInterstitialJS::showAd(" + t + ", " + e + ")");
  1588. return jsb.reflection.callStaticMethod(o, "showInterstitialWithPlacementID:scene:", t, e);
  1589. }
  1590. };
  1591. e.exports = i;
  1592. cc._RF.pop();
  1593. }, {
  1594. ATiOSJS: "ATiOSJS"
  1595. } ],
  1596. ATiOSJS: [ function(t, e) {
  1597. "use strict";
  1598. cc._RF.push(e, "f0cfbKk/aJOh7Arcces8e2L", "ATiOSJS");
  1599. var n = n || {
  1600. initSDK: function(t, e) {
  1601. this.printJsLog("ATiOSJS::initSDK(" + t + "," + e + ")");
  1602. jsb.reflection.callStaticMethod("ATSDKManager", "startWithAppID:appKey:", t, e);
  1603. },
  1604. initCustomMap: function(t) {
  1605. this.printJsLog("ATiOSJS::initCustomMap(" + t + ")");
  1606. jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:", t);
  1607. },
  1608. setPlacementCustomMap: function(t, e) {
  1609. this.printJsLog("ATiOSJS::setPlacementCustomMap(" + t + ", " + e + ")");
  1610. jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:forPlacementID:", e, t);
  1611. },
  1612. setGDPRLevel: function(t) {
  1613. this.printJsLog("ATiOSJS::setGDPRLevel(" + t + ")");
  1614. jsb.reflection.callStaticMethod("ATSDKManager", "setDataConsent:", t);
  1615. },
  1616. getGDPRLevel: function() {
  1617. this.printJsLog("ATiOSJS::getGDPRLevel()");
  1618. return jsb.reflection.callStaticMethod("ATSDKManager", "dataConsent");
  1619. },
  1620. getUserLocation: function(t) {
  1621. this.printJsLog("ATiOSJS::getUserLocation(" + t + ")");
  1622. jsb.reflection.callStaticMethod("ATSDKManager", "getUserLocationWithCallback:", t);
  1623. },
  1624. showGDPRAuth: function() {
  1625. this.printJsLog("ATiOSJS::showGDPRAuth()");
  1626. jsb.reflection.callStaticMethod("ATSDKManager", "presentDataConsentDialog");
  1627. },
  1628. setLogDebug: function(t) {
  1629. this.printJsLog("ATiOSJS::setLogDebug(" + t + ")");
  1630. jsb.reflection.callStaticMethod("ATSDKManager", "setDebugLog:", t);
  1631. },
  1632. printJsLog: function(t) {
  1633. null != t && null != t && jsb.reflection.callStaticMethod("ATJSBridge", "log:", t);
  1634. },
  1635. deniedUploadDeviceInfo: function(t) {
  1636. this.printJsLog("ATiOSJS::deniedUploadDeviceInfo(" + t + ")");
  1637. jsb.reflection.callStaticMethod("ATSDKManager", "deniedUploadDeviceInfo:", t);
  1638. }
  1639. };
  1640. e.exports = n;
  1641. cc._RF.pop();
  1642. }, {} ],
  1643. ATiOSNativeJS: [ function(t, e) {
  1644. "use strict";
  1645. cc._RF.push(e, "2aa642BjFFKhJ2kRi8CNM1Z", "ATiOSNativeJS");
  1646. var n = t("ATiOSJS"), o = o || {
  1647. loadNative: function(t, e) {
  1648. n.printJsLog("ATiOSBannerJS::loadNative(" + t + ", " + e + ")");
  1649. jsb.reflection.callStaticMethod("ATNativeAdWrapper", "loadNativeWithPlacementID:extra:", t, e);
  1650. },
  1651. setAdListener: function(t) {
  1652. n.printJsLog("ATiOSNativeJS::setAdListener(" + t + ")");
  1653. jsb.reflection.callStaticMethod("ATNativeAdWrapper", "setDelegates:", t);
  1654. },
  1655. hasAdReady: function(t) {
  1656. n.printJsLog("ATiOSNativeJS::hasAdReady(" + t + ")");
  1657. return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeReadyForPlacementID:", t);
  1658. },
  1659. checkAdStatus: function(t) {
  1660. n.printJsLog("ATiOSNativeJS::checkAdStatus(" + t + ")");
  1661. return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeCheckAdStatusForPlacementID:", t);
  1662. },
  1663. showAd: function(t, e) {
  1664. n.printJsLog("ATiOSNativeJS::showAd(" + t + ", " + e + ")");
  1665. jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:scene:metrics:", t, null, e);
  1666. },
  1667. showAdInScenario: function(t, e, o) {
  1668. n.printJsLog("ATiOSNativeJS::showAdInScenario(" + t + ", " + e + ", " + o + ")");
  1669. jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:scene:metrics:", t, o, e);
  1670. },
  1671. removeAd: function(t) {
  1672. n.printJsLog("ATiOSNativeJS::removeAd(" + t + ")");
  1673. jsb.reflection.callStaticMethod("ATNativeAdWrapper", "removeNativeWithPlacementID:", t);
  1674. }
  1675. };
  1676. e.exports = o;
  1677. cc._RF.pop();
  1678. }, {
  1679. ATiOSJS: "ATiOSJS"
  1680. } ],
  1681. ATiOSRewardedVideoJS: [ function(t, e) {
  1682. "use strict";
  1683. cc._RF.push(e, "f7d79fQ7d5M5KoEWeXdUNsV", "ATiOSRewardedVideoJS");
  1684. var n = t("ATiOSJS"), o = o || {
  1685. loadRewardedVideo: function(t, e) {
  1686. n.printJsLog("ATiOSRewardedVideoJS::loadRewardedVideo(" + t + ", " + e + ")");
  1687. jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "loadRewardedVideoWithPlacementID:extra:", t, e);
  1688. },
  1689. setAdListener: function(t) {
  1690. n.printJsLog("ATiOSRewardedVideoJS::setAdListener(" + t + ")");
  1691. jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "setDelegates:", t);
  1692. },
  1693. hasAdReady: function(t) {
  1694. n.printJsLog("ATiOSRewardedVideoJS::hasAdReady(" + t + ")");
  1695. return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "rewardedVideoReadyForPlacementID:", t);
  1696. },
  1697. checkAdStatus: function(t) {
  1698. n.printJsLog("ATiOSRewardedVideoJS::checkAdStatus(" + t + ")");
  1699. return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "checkAdStatus:", t);
  1700. },
  1701. setUserData: function() {
  1702. cc.log("Android-setUserData");
  1703. },
  1704. showAd: function(t) {
  1705. n.printJsLog("ATiOSRewardedVideoJS::showAd(" + t + ")");
  1706. return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", t, null);
  1707. },
  1708. showAdInScenario: function(t, e) {
  1709. n.printJsLog("ATiOSRewardedVideoJS::showAdInScenario(" + t + ", " + e + ")");
  1710. return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", t, e);
  1711. }
  1712. };
  1713. e.exports = o;
  1714. cc._RF.pop();
  1715. }, {
  1716. ATiOSJS: "ATiOSJS"
  1717. } ],
  1718. AdData: [ function(t, e, n) {
  1719. "use strict";
  1720. cc._RF.push(e, "751e2dfcNBG6piUAOBYgaGw", "AdData");
  1721. var o = this && this.__awaiter || function(t, e, n, o) {
  1722. return new (n || (n = Promise))(function(i, a) {
  1723. function r(t) {
  1724. try {
  1725. s(o.next(t));
  1726. } catch (t) {
  1727. a(t);
  1728. }
  1729. }
  1730. function c(t) {
  1731. try {
  1732. s(o.throw(t));
  1733. } catch (t) {
  1734. a(t);
  1735. }
  1736. }
  1737. function s(t) {
  1738. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  1739. t(e);
  1740. })).then(r, c);
  1741. var e;
  1742. }
  1743. s((o = o.apply(t, e || [])).next());
  1744. });
  1745. }, i = this && this.__generator || function(t, e) {
  1746. var n, o, i, a, r = {
  1747. label: 0,
  1748. sent: function() {
  1749. if (1 & i[0]) throw i[1];
  1750. return i[1];
  1751. },
  1752. trys: [],
  1753. ops: []
  1754. };
  1755. return a = {
  1756. next: c(0),
  1757. throw: c(1),
  1758. return: c(2)
  1759. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  1760. return this;
  1761. }), a;
  1762. function c(t) {
  1763. return function(e) {
  1764. return s([ t, e ]);
  1765. };
  1766. }
  1767. function s(a) {
  1768. if (n) throw new TypeError("Generator is already executing.");
  1769. for (;r; ) try {
  1770. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  1771. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  1772. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  1773. switch (a[0]) {
  1774. case 0:
  1775. case 1:
  1776. i = a;
  1777. break;
  1778. case 4:
  1779. r.label++;
  1780. return {
  1781. value: a[1],
  1782. done: !1
  1783. };
  1784. case 5:
  1785. r.label++;
  1786. o = a[1];
  1787. a = [ 0 ];
  1788. continue;
  1789. case 7:
  1790. a = r.ops.pop();
  1791. r.trys.pop();
  1792. continue;
  1793. default:
  1794. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  1795. r = 0;
  1796. continue;
  1797. }
  1798. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  1799. r.label = a[1];
  1800. break;
  1801. }
  1802. if (6 === a[0] && r.label < i[1]) {
  1803. r.label = i[1];
  1804. i = a;
  1805. break;
  1806. }
  1807. if (i && r.label < i[2]) {
  1808. r.label = i[2];
  1809. r.ops.push(a);
  1810. break;
  1811. }
  1812. i[2] && r.ops.pop();
  1813. r.trys.pop();
  1814. continue;
  1815. }
  1816. a = e.call(t, r);
  1817. } catch (t) {
  1818. a = [ 6, t ];
  1819. o = 0;
  1820. } finally {
  1821. n = i = 0;
  1822. }
  1823. if (5 & a[0]) throw a[1];
  1824. return {
  1825. value: a[0] ? a[1] : void 0,
  1826. done: !0
  1827. };
  1828. }
  1829. };
  1830. Object.defineProperty(n, "__esModule", {
  1831. value: !0
  1832. });
  1833. n.AdFun = n.AdData = void 0;
  1834. var a, r = t("./GameData"), c = function() {
  1835. function t() {
  1836. this.placementId = "";
  1837. this.adunit_format = "";
  1838. this.network_type = "";
  1839. this.network_placement_id = "";
  1840. this.network_firm_id = "";
  1841. this.adsource_id = "";
  1842. this.adsource_index = "";
  1843. this.adsource_price = "100";
  1844. this.adsource_isheaderbidding = "";
  1845. this.publisher_revenue = "";
  1846. this.precision = "";
  1847. this.ecpm_level = "";
  1848. this.adType = 1;
  1849. this._watchNumToday = 0;
  1850. }
  1851. Object.defineProperty(t.prototype, "watchNumToday", {
  1852. get: function() {
  1853. return this._watchNumToday;
  1854. },
  1855. set: function(t) {
  1856. this._watchNumToday = t;
  1857. },
  1858. enumerable: !1,
  1859. configurable: !0
  1860. });
  1861. t.prototype.init = function() {
  1862. this.adMap = new Map();
  1863. this.adMap.set(a.bubble, gData.reward);
  1864. this.adMap.set(a.checkpoint, gData.reward);
  1865. this.adMap.set(a.settlement, gData.reward);
  1866. this.adMap.set(a.turntable, gData.turnable);
  1867. this.adMap.set(a.sign, gData.sign);
  1868. this.adMap.set(a.bigCash, gData.blessingBag);
  1869. };
  1870. t.prototype.checkAdMax = function() {
  1871. this.watchNumToday++;
  1872. var t = parseInt(gData.gameData.configs.ServerConfig.VideoTimesMax);
  1873. if (this.watchNumToday > t) {
  1874. mk.tip.pop("今日看广告获得奖励的次数已用完", 1);
  1875. mk.ui.closeAllUI();
  1876. return !0;
  1877. }
  1878. return !1;
  1879. };
  1880. t.prototype.updateData = function(t, e) {
  1881. mk.console.logSingle("updateADData:" + t, e);
  1882. this.placementId = t;
  1883. this.adunit_format = e.adunit_format;
  1884. this.network_type = e.network_type;
  1885. this.network_placement_id = e.network_placement_id;
  1886. this.network_firm_id = e.network_firm_id;
  1887. this.adsource_id = e.adsource_id;
  1888. this.adsource_index = e.adsource_index;
  1889. this.adsource_price = e.adsource_price;
  1890. this.adsource_isheaderbidding = e.adsource_isheaderbidding;
  1891. this.publisher_revenue = e.publisher_revenue;
  1892. this.precision = e.precision;
  1893. this.ecpm_level = e.ecpm_level;
  1894. };
  1895. t.prototype.watchVideo = function(t) {
  1896. return o(this, void 0, void 0, function() {
  1897. var e, n, o, a;
  1898. return i(this, function(i) {
  1899. switch (i.label) {
  1900. case 0:
  1901. this.ad_subType = t;
  1902. e = {
  1903. imei: gData.appData.machineInfo.imei,
  1904. idfa: gData.appData.machineInfo.idfa,
  1905. oaid: gData.appData.machineInfo.oaid,
  1906. uin: gData.loginData.uin,
  1907. version: gData.appData.appVersion,
  1908. tf_channel: gData.appData.tfChannel,
  1909. destoon_ad_place: this.placementId,
  1910. ad_type: 1,
  1911. adunit_format: this.adunit_format,
  1912. network_type: this.network_type,
  1913. network_placement_id: this.network_placement_id,
  1914. network_firm_id: this.network_firm_id,
  1915. adsource_id: this.adsource_id,
  1916. adsource_index: this.adsource_index,
  1917. adsource_price: this.adsource_price,
  1918. adsource_isheaderbidding: this.adsource_isheaderbidding,
  1919. publisher_revenue: this.publisher_revenue,
  1920. precision_ecpm: this.precision,
  1921. ecpm_level: this.ecpm_level,
  1922. cfg_version: gData.appData.version,
  1923. adsource_ecpm: gData.gameData.adShowConfig.average_ecpm,
  1924. ad_sbuType: this.ad_subType
  1925. };
  1926. mk.console.logSingle("updateVideoData:", e);
  1927. return [ 4, mk.http.sendData("updateVideo", e) ];
  1928. case 1:
  1929. if (0 != (n = i.sent()).errcode) return [ 2 ];
  1930. o = gData.gameData.getProp(r.GameProp.videoTimes);
  1931. gData.gameData.setProp(r.GameProp.videoTimes, ++o);
  1932. o < 5 && mk.data.sendXYEvent("video_end_" + o, "第" + o + "次看视频");
  1933. (a = this.adMap.get(this.ad_subType)) && a.setAdData(n.data);
  1934. return [ 2 ];
  1935. }
  1936. });
  1937. });
  1938. };
  1939. t.prototype.updateADLog = function(t, e, n) {
  1940. void 0 === n && (n = null);
  1941. var o;
  1942. o = n ? {
  1943. imei: gData.appData.machineInfo.imei,
  1944. idfa: gData.appData.machineInfo.idfa,
  1945. oaid: gData.appData.machineInfo.oaid,
  1946. uin: gData.loginData.uin,
  1947. version: gData.appData.appVersion,
  1948. tf_channel: gData.appData.tfChannel,
  1949. destoon_ad_place: e,
  1950. ad_type: t,
  1951. adunit_format: n.adunit_format,
  1952. network_type: n.network_type,
  1953. network_placement_id: n.network_placement_id,
  1954. network_firm_id: n.network_firm_id,
  1955. adsource_id: n.adsource_id,
  1956. adsource_index: n.adsource_index,
  1957. adsource_price: n.adsource_price,
  1958. adsource_isheaderbidding: n.adsource_isheaderbidding,
  1959. publisher_revenue: n.publisher_revenue,
  1960. precision: n.precision,
  1961. ecpm_level: n.ecpm_level
  1962. } : {
  1963. imei: gData.appData.machineInfo.imei,
  1964. idfa: gData.appData.machineInfo.idfa,
  1965. oaid: gData.appData.machineInfo.oaid,
  1966. uin: gData.loginData.uin,
  1967. version: gData.appData.appVersion,
  1968. tf_channel: gData.appData.tfChannel,
  1969. destoon_ad_place: e,
  1970. ad_type: t,
  1971. adunit_format: "",
  1972. network_type: "",
  1973. network_placement_id: "",
  1974. network_firm_id: "",
  1975. adsource_id: "",
  1976. adsource_index: "",
  1977. adsource_price: "",
  1978. adsource_isheaderbidding: "",
  1979. publisher_revenue: "",
  1980. precision: "",
  1981. ecpm_level: ""
  1982. };
  1983. mk.http.sendData("updateADLog", o);
  1984. };
  1985. return t;
  1986. }();
  1987. n.AdData = c;
  1988. (function(t) {
  1989. t[t.bubble = 1] = "bubble";
  1990. t[t.checkpoint = 2] = "checkpoint";
  1991. t[t.settlement = 3] = "settlement";
  1992. t[t.turntable = 4] = "turntable";
  1993. t[t.sign = 5] = "sign";
  1994. t[t.bigCash = 6] = "bigCash";
  1995. })(a = n.AdFun || (n.AdFun = {}));
  1996. cc._RF.pop();
  1997. }, {
  1998. "./GameData": "GameData"
  1999. } ],
  2000. AdSystem: [ function(t, e, n) {
  2001. "use strict";
  2002. cc._RF.push(e, "1466aRVSRRPbZv+MJLJVOZg", "AdSystem");
  2003. Object.defineProperty(n, "__esModule", {
  2004. value: !0
  2005. });
  2006. var o = t("../../game/data/GameData"), i = function() {
  2007. function t(t) {
  2008. this.adSdk = null;
  2009. this.ifShowAd = !0;
  2010. this.videoAdType = o.VideoAdType.Null;
  2011. this.videoAdcallBack = null;
  2012. this.last_time_stamp = 0;
  2013. this.adSdk = t;
  2014. }
  2015. t.prototype.init = function() {
  2016. cc.sys.os == cc.sys.OS_ANDROID ? this.ifShowAd = !0 : this.ifShowAd = !1;
  2017. this.adSdk.initSDK();
  2018. };
  2019. t.prototype.watchAd = function(t) {
  2020. if (!this.isAdCooling()) {
  2021. this.videoAdcallBack = t;
  2022. this.ifShowAd ? cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showVideo() : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("AppController", "showVideo", "")) : this.wacthAdSuccess();
  2023. }
  2024. };
  2025. t.prototype.watchAdFail = function() {
  2026. mk.console.log("=== watchAdFail");
  2027. this.videoAdcallBack(!1);
  2028. };
  2029. t.prototype.watchAdCancel = function() {
  2030. mk.console.log("=== watchAdCancel");
  2031. this.videoAdcallBack(!1);
  2032. };
  2033. t.prototype.wacthAdSuccess = function(t) {
  2034. var e = this;
  2035. void 0 === t && (t = "");
  2036. mk.console.log("=== wacthAdSuccess");
  2037. mk.ui.scheduleOnce(function() {
  2038. gData.adData.checkAdMax() || e.videoAdcallBack(!0);
  2039. e.initLastTimeStamp();
  2040. }, 0);
  2041. };
  2042. t.prototype.showNative = function(t) {
  2043. void 0 === t && (t = 4);
  2044. this.ifShowAd && cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showNative(t) : (cc.sys.os,
  2045. cc.sys.OS_IOS));
  2046. };
  2047. t.prototype.destroyNativeAd = function() {
  2048. this.ifShowAd && cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.destroyNative() : (cc.sys.os,
  2049. cc.sys.OS_IOS));
  2050. };
  2051. t.prototype.initLastTimeStamp = function() {
  2052. var t = new Date();
  2053. this.last_time_stamp = t.getTime();
  2054. };
  2055. t.prototype.isAdCooling = function() {
  2056. var t = new Date().getTime() - this.last_time_stamp;
  2057. if (t <= 5e3) {
  2058. var e = 6 - Math.ceil(t / 1e3);
  2059. mk.tip.pop("当前看视频太频繁了,请" + e + "秒后再试");
  2060. return !0;
  2061. }
  2062. return !1;
  2063. };
  2064. t.prototype.showBanner = function() {
  2065. this.ifShowAd && this.adSdk.showBanner();
  2066. };
  2067. t.prototype.destoryBanner = function() {
  2068. this.ifShowAd && this.adSdk.destoryBanner();
  2069. };
  2070. t.prototype.showInterAd = function(t) {
  2071. this.ifShowAd && this.adSdk.showInter(t);
  2072. };
  2073. t.prototype.checkShowInterByChance = function() {
  2074. if (this.ifShowAd && gData.gameData.adShowConfig) {
  2075. var t = gData.gameData.configs.ServerConfig.interOpenChance;
  2076. t || (t = .4);
  2077. Math.random() <= t ? this.showInterAd(0) : gData.moreGame.popMoreGamePopNode();
  2078. }
  2079. };
  2080. return t;
  2081. }();
  2082. n.default = i;
  2083. cc._RF.pop();
  2084. }, {
  2085. "../../game/data/GameData": "GameData"
  2086. } ],
  2087. AliRiskManager: [ function(t, e, n) {
  2088. "use strict";
  2089. cc._RF.push(e, "5c10coBu/tGxJOgCI9+ITwp", "AliRiskManager");
  2090. var o = this && this.__decorate || function(t, e, n, o) {
  2091. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  2092. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  2093. return a > 3 && r && Object.defineProperty(e, n, r), r;
  2094. };
  2095. Object.defineProperty(n, "__esModule", {
  2096. value: !0
  2097. });
  2098. var i = t("../../system/JsbSystem"), a = cc._decorator.ccclass, r = function() {
  2099. function t() {
  2100. this.getRiskCode = !1;
  2101. this.deviceToken = "";
  2102. }
  2103. t.prototype.init = function() {
  2104. this.deviceToken = i.default.getAliRiskDeviceToken();
  2105. this.getRiskCode = !0;
  2106. console.log("Ali_deviceToken", this.deviceToken);
  2107. };
  2108. return o([ a ], t);
  2109. }();
  2110. n.default = r;
  2111. cc._RF.pop();
  2112. }, {
  2113. "../../system/JsbSystem": "JsbSystem"
  2114. } ],
  2115. AniFinishDestroy: [ function(t, e, n) {
  2116. "use strict";
  2117. cc._RF.push(e, "042aabubkFC6JdQ3E4GwCQf", "AniFinishDestroy");
  2118. var o, i = this && this.__extends || (o = function(t, e) {
  2119. return (o = Object.setPrototypeOf || {
  2120. __proto__: []
  2121. } instanceof Array && function(t, e) {
  2122. t.__proto__ = e;
  2123. } || function(t, e) {
  2124. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  2125. })(t, e);
  2126. }, function(t, e) {
  2127. o(t, e);
  2128. function n() {
  2129. this.constructor = t;
  2130. }
  2131. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  2132. }), a = this && this.__decorate || function(t, e, n, o) {
  2133. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  2134. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  2135. return a > 3 && r && Object.defineProperty(e, n, r), r;
  2136. };
  2137. Object.defineProperty(n, "__esModule", {
  2138. value: !0
  2139. });
  2140. var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property,
  2141. function(t) {
  2142. i(e, t);
  2143. function e() {
  2144. var e = null !== t && t.apply(this, arguments) || this;
  2145. e.ani = null;
  2146. e.callBack = null;
  2147. return e;
  2148. }
  2149. e.prototype.onLoad = function() {
  2150. this.ani = this.node.getComponent(cc.Animation);
  2151. this.ani.on("finished", this.onAniPlayFinished, this);
  2152. };
  2153. e.prototype.start = function() {};
  2154. e.prototype.init = function(t) {
  2155. void 0 === t && (t = null);
  2156. if (!this.ani) {
  2157. this.ani = this.node.getComponent(cc.Animation);
  2158. this.ani.on("finished", this.onAniPlayFinished, this);
  2159. }
  2160. this.callBack = t;
  2161. this.ani.play();
  2162. };
  2163. e.prototype.onAniPlayFinished = function() {
  2164. this.callBack && this.callBack();
  2165. this.recycle();
  2166. };
  2167. e.prototype.recycle = function() {
  2168. r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE[this.node.name], this.node);
  2169. };
  2170. return a([ s ], e);
  2171. }(cc.Component));
  2172. n.default = l;
  2173. cc._RF.pop();
  2174. }, {
  2175. "../../mgr/PoolMgr": "PoolMgr"
  2176. } ],
  2177. AniOpenPanel: [ function(t, e, n) {
  2178. "use strict";
  2179. cc._RF.push(e, "398dfTzxmpCYpSvJaKpkFk+", "AniOpenPanel");
  2180. var o, i = this && this.__extends || (o = function(t, e) {
  2181. return (o = Object.setPrototypeOf || {
  2182. __proto__: []
  2183. } instanceof Array && function(t, e) {
  2184. t.__proto__ = e;
  2185. } || function(t, e) {
  2186. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  2187. })(t, e);
  2188. }, function(t, e) {
  2189. o(t, e);
  2190. function n() {
  2191. this.constructor = t;
  2192. }
  2193. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  2194. }), a = this && this.__decorate || function(t, e, n, o) {
  2195. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  2196. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  2197. return a > 3 && r && Object.defineProperty(e, n, r), r;
  2198. };
  2199. Object.defineProperty(n, "__esModule", {
  2200. value: !0
  2201. });
  2202. var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
  2203. i(e, t);
  2204. function e() {
  2205. return null !== t && t.apply(this, arguments) || this;
  2206. }
  2207. e.prototype.onEnable = function() {
  2208. this.node.scale = 0;
  2209. cc.tween(this.node).to(.3, {
  2210. scale: 1
  2211. }, {
  2212. easing: "backOut"
  2213. }).start();
  2214. };
  2215. return a([ c ], e);
  2216. }(cc.Component));
  2217. n.default = s;
  2218. cc._RF.pop();
  2219. }, {} ],
  2220. AppData: [ function(t, e, n) {
  2221. "use strict";
  2222. cc._RF.push(e, "e27c7/NPlhBwKw/xsEzZINE", "AppData");
  2223. Object.defineProperty(n, "__esModule", {
  2224. value: !0
  2225. });
  2226. n.UpdateState = n.AppData = void 0;
  2227. var o, i = function() {
  2228. function t() {
  2229. this.getDeviceInfoCompelete = !1;
  2230. this.appNameBugly = "3xiao";
  2231. this.appVersion = "";
  2232. this.tfChannel = "";
  2233. this.version = "";
  2234. this.UA = "";
  2235. this.IP = "";
  2236. this.appId = "";
  2237. this.umengChannel = "";
  2238. this.deviceType = "";
  2239. this.androidVersion = "";
  2240. this.mac = "";
  2241. this.machineInfo = {
  2242. android_id: "",
  2243. idfa: "",
  2244. imei: "",
  2245. mac: "",
  2246. oaid: "",
  2247. umid: "",
  2248. UA: ""
  2249. };
  2250. this.updateState = o.None;
  2251. this.updatePercent = 0;
  2252. }
  2253. t.prototype.updateDeviceInfo = function(t) {
  2254. var e = t.split("#");
  2255. this.machineInfo.android_id = e[0];
  2256. this.machineInfo.idfa = e[1];
  2257. this.machineInfo.imei = e[2];
  2258. this.machineInfo.mac = this.mac = e[3];
  2259. this.machineInfo.oaid = e[4];
  2260. this.machineInfo.umid = e[5];
  2261. this.machineInfo.UA = e[11];
  2262. this.tfChannel = e[6];
  2263. this.appVersion = e[7];
  2264. this.umengChannel = e[8];
  2265. this.deviceType = e[9];
  2266. this.androidVersion = e[10];
  2267. this.IP = e[12];
  2268. this.getDeviceInfoCompelete = !0;
  2269. console.log("===[this.tfChannel", this.tfChannel);
  2270. console.log("===[this.appVersion", this.appVersion);
  2271. console.log("===[this.mac", this.mac);
  2272. };
  2273. t.prototype.init = function() {};
  2274. return t;
  2275. }();
  2276. n.AppData = i;
  2277. (function(t) {
  2278. t[t.None = -1] = "None";
  2279. t[t.CheckForce = 0] = "CheckForce";
  2280. t[t.ForceUpdateFinish = 1] = "ForceUpdateFinish";
  2281. t[t.CheckHot = 2] = "CheckHot";
  2282. t[t.IsUpdate = 3] = "IsUpdate";
  2283. t[t.UpdateFinish = 4] = "UpdateFinish";
  2284. })(o = n.UpdateState || (n.UpdateState = {}));
  2285. cc._RF.pop();
  2286. }, {} ],
  2287. ArtNum: [ function(t, e, n) {
  2288. "use strict";
  2289. cc._RF.push(e, "b818cn3ZlhCA589MCaalmqs", "ArtNum");
  2290. var o, i = this && this.__extends || (o = function(t, e) {
  2291. return (o = Object.setPrototypeOf || {
  2292. __proto__: []
  2293. } instanceof Array && function(t, e) {
  2294. t.__proto__ = e;
  2295. } || function(t, e) {
  2296. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  2297. })(t, e);
  2298. }, function(t, e) {
  2299. o(t, e);
  2300. function n() {
  2301. this.constructor = t;
  2302. }
  2303. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  2304. }), a = this && this.__decorate || function(t, e, n, o) {
  2305. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  2306. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  2307. return a > 3 && r && Object.defineProperty(e, n, r), r;
  2308. };
  2309. Object.defineProperty(n, "__esModule", {
  2310. value: !0
  2311. });
  2312. n.ARTNUM = void 0;
  2313. var r, c = cc._decorator, s = c.ccclass, l = c.property;
  2314. (function(t) {
  2315. t[t.Null = 0] = "Null";
  2316. t[t.LevelNum = 1] = "LevelNum";
  2317. t[t.TargetScore = 2] = "TargetScore";
  2318. t[t.GetScore = 3] = "GetScore";
  2319. t[t.EliminateScore = 4] = "EliminateScore";
  2320. t.Test = "sdasdsadasds";
  2321. t.you = "asdadsadsadasdsadsada";
  2322. })(r = n.ARTNUM || (n.ARTNUM = {}));
  2323. var u = function(t) {
  2324. i(e, t);
  2325. function e() {
  2326. var e = null !== t && t.apply(this, arguments) || this;
  2327. e.artNum = null;
  2328. e.url = "artNum/";
  2329. return e;
  2330. }
  2331. e.prototype.start = function() {};
  2332. e.prototype.init = function(t) {
  2333. this.url = "game/texture/artNum/" + r[this.artNum] + "/";
  2334. var e = t.toString().split(""), n = this.node.children;
  2335. if (e.length > this.node.childrenCount) for (var o = 0; o < e.length; o++) {
  2336. var i = e[o];
  2337. if (c = n[o]) {
  2338. 0 == c.active && (c.active = !0);
  2339. var a = c.getComponent(cc.Sprite);
  2340. this.loadSprite("" + this.url + i, a);
  2341. } else {
  2342. a = (c = new cc.Node()).addComponent(cc.Sprite);
  2343. this.loadSprite("" + this.url + i, a);
  2344. this.node.addChild(c);
  2345. }
  2346. } else for (o = 0; o < n.length; o++) {
  2347. var c = n[o];
  2348. if (o < e.length) {
  2349. i = e[o];
  2350. if (c) {
  2351. 0 == c.active && (c.active = !0);
  2352. a = c.getComponent(cc.Sprite);
  2353. this.loadSprite("" + this.url + i, a);
  2354. } else {
  2355. a = (c = new cc.Node()).addComponent(cc.Sprite);
  2356. this.loadSprite("" + this.url + i, a);
  2357. this.node.addChild(c);
  2358. }
  2359. } else c && (c.active = !1);
  2360. }
  2361. };
  2362. e.prototype.loadSprite = function(t, e) {
  2363. mk.loader.load(t, cc.SpriteFrame).then(function(t) {
  2364. e.spriteFrame = t;
  2365. });
  2366. };
  2367. a([ l({
  2368. type: cc.Enum(r),
  2369. displayName: "艺术字类型",
  2370. tooltip: "需要选择的艺术字类型",
  2371. serializable: !0
  2372. }) ], e.prototype, "artNum", void 0);
  2373. return a([ s ], e);
  2374. }(cc.Component);
  2375. n.default = u;
  2376. cc._RF.pop();
  2377. }, {} ],
  2378. AudioSystem: [ function(t, e, n) {
  2379. "use strict";
  2380. cc._RF.push(e, "23fb49P+89BR4lApOFB9Q88", "AudioSystem");
  2381. var o = this && this.__awaiter || function(t, e, n, o) {
  2382. return new (n || (n = Promise))(function(i, a) {
  2383. function r(t) {
  2384. try {
  2385. s(o.next(t));
  2386. } catch (t) {
  2387. a(t);
  2388. }
  2389. }
  2390. function c(t) {
  2391. try {
  2392. s(o.throw(t));
  2393. } catch (t) {
  2394. a(t);
  2395. }
  2396. }
  2397. function s(t) {
  2398. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  2399. t(e);
  2400. })).then(r, c);
  2401. var e;
  2402. }
  2403. s((o = o.apply(t, e || [])).next());
  2404. });
  2405. }, i = this && this.__generator || function(t, e) {
  2406. var n, o, i, a, r = {
  2407. label: 0,
  2408. sent: function() {
  2409. if (1 & i[0]) throw i[1];
  2410. return i[1];
  2411. },
  2412. trys: [],
  2413. ops: []
  2414. };
  2415. return a = {
  2416. next: c(0),
  2417. throw: c(1),
  2418. return: c(2)
  2419. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  2420. return this;
  2421. }), a;
  2422. function c(t) {
  2423. return function(e) {
  2424. return s([ t, e ]);
  2425. };
  2426. }
  2427. function s(a) {
  2428. if (n) throw new TypeError("Generator is already executing.");
  2429. for (;r; ) try {
  2430. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  2431. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  2432. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  2433. switch (a[0]) {
  2434. case 0:
  2435. case 1:
  2436. i = a;
  2437. break;
  2438. case 4:
  2439. r.label++;
  2440. return {
  2441. value: a[1],
  2442. done: !1
  2443. };
  2444. case 5:
  2445. r.label++;
  2446. o = a[1];
  2447. a = [ 0 ];
  2448. continue;
  2449. case 7:
  2450. a = r.ops.pop();
  2451. r.trys.pop();
  2452. continue;
  2453. default:
  2454. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  2455. r = 0;
  2456. continue;
  2457. }
  2458. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  2459. r.label = a[1];
  2460. break;
  2461. }
  2462. if (6 === a[0] && r.label < i[1]) {
  2463. r.label = i[1];
  2464. i = a;
  2465. break;
  2466. }
  2467. if (i && r.label < i[2]) {
  2468. r.label = i[2];
  2469. r.ops.push(a);
  2470. break;
  2471. }
  2472. i[2] && r.ops.pop();
  2473. r.trys.pop();
  2474. continue;
  2475. }
  2476. a = e.call(t, r);
  2477. } catch (t) {
  2478. a = [ 6, t ];
  2479. o = 0;
  2480. } finally {
  2481. n = i = 0;
  2482. }
  2483. if (5 & a[0]) throw a[1];
  2484. return {
  2485. value: a[0] ? a[1] : void 0,
  2486. done: !0
  2487. };
  2488. }
  2489. };
  2490. Object.defineProperty(n, "__esModule", {
  2491. value: !0
  2492. });
  2493. var a = function() {
  2494. function t() {
  2495. this._switchMusic = !0;
  2496. this._switchEffect = !0;
  2497. this._effectVolume = 1;
  2498. this._musicVolume = 1;
  2499. this._map_audio = new Map();
  2500. }
  2501. t.prototype.init = function() {
  2502. this._switchEffect = !("false" == cc.sys.localStorage.getItem("switchEffect"));
  2503. this._switchMusic = !("false" == cc.sys.localStorage.getItem("switchMusic"));
  2504. };
  2505. t.prototype.playMusic = function(t, e) {
  2506. void 0 === e && (e = !0);
  2507. return o(this, void 0, void 0, function() {
  2508. var n;
  2509. return i(this, function(o) {
  2510. switch (o.label) {
  2511. case 0:
  2512. if (!this._switchMusic) return [ 2 ];
  2513. if (this._bg_audio) return [ 3, 2 ];
  2514. n = this;
  2515. return [ 4, mk.loader.load(r + t, cc.AudioClip) ];
  2516. case 1:
  2517. n._bg_audio = o.sent();
  2518. o.label = 2;
  2519. case 2:
  2520. cc.audioEngine.playMusic(this._bg_audio, e);
  2521. return [ 2 ];
  2522. }
  2523. });
  2524. });
  2525. };
  2526. t.prototype.playEffect = function(t, e) {
  2527. void 0 === e && (e = !1);
  2528. return o(this, void 0, void 0, function() {
  2529. var n;
  2530. return i(this, function(o) {
  2531. switch (o.label) {
  2532. case 0:
  2533. return this._switchEffect ? (n = this._map_audio.get(t)) ? [ 3, 2 ] : [ 4, mk.loader.load(r + t, cc.AudioClip) ] : [ 3, 3 ];
  2534. case 1:
  2535. n = o.sent();
  2536. this._map_audio.set(t, n);
  2537. o.label = 2;
  2538. case 2:
  2539. return [ 2, cc.audioEngine.playEffect(n, e) ];
  2540. case 3:
  2541. return [ 2, null ];
  2542. }
  2543. });
  2544. });
  2545. };
  2546. t.prototype.stopEffect = function(t) {
  2547. cc.audioEngine.stopEffect(t);
  2548. };
  2549. t.prototype.switchEffectFunc = function() {
  2550. this._switchEffect = !this._switchEffect;
  2551. this._switchEffect || this.setStopAllEffect();
  2552. cc.sys.localStorage.setItem("switchEffect", this._switchEffect.toString());
  2553. };
  2554. t.prototype.getSwitchEffect = function() {
  2555. return this._switchEffect;
  2556. };
  2557. t.prototype.setEffectVolume = function(t) {
  2558. this._effectVolume = t;
  2559. cc.audioEngine.setEffectsVolume(t);
  2560. cc.sys.localStorage.setItem("audio", JSON.stringify({
  2561. effect: this._effectVolume,
  2562. music: this._musicVolume
  2563. }));
  2564. };
  2565. t.prototype.getEffectVolume = function() {
  2566. return cc.audioEngine.getEffectsVolume();
  2567. };
  2568. t.prototype.setResumeAllEffect = function() {
  2569. this._switchEffect && cc.audioEngine.resumeAllEffects();
  2570. };
  2571. t.prototype.setStopAllEffect = function() {
  2572. cc.audioEngine.stopAllEffects();
  2573. };
  2574. t.prototype.switchMusicFunc = function() {
  2575. this._switchMusic = !this._switchMusic;
  2576. this._switchMusic ? this.setResumeMusic() : this.setPauseMusic();
  2577. cc.sys.localStorage.setItem("switchMusic", this._switchMusic.toString());
  2578. };
  2579. t.prototype.getSwitchMusic = function() {
  2580. return this._switchMusic;
  2581. };
  2582. t.prototype.setPauseMusic = function() {
  2583. cc.audioEngine.pauseMusic();
  2584. };
  2585. t.prototype.setResumeMusic = function() {
  2586. this._switchMusic && cc.audioEngine.resumeMusic();
  2587. };
  2588. t.prototype.stopMusic = function() {
  2589. cc.audioEngine.stopMusic();
  2590. };
  2591. t.prototype.setMusicVolume = function(t) {
  2592. this._musicVolume = t;
  2593. cc.audioEngine.setMusicVolume(t);
  2594. cc.sys.localStorage.setItem("audio", JSON.stringify({
  2595. effect: this._effectVolume,
  2596. music: this._musicVolume
  2597. }));
  2598. };
  2599. t.prototype.getMusicVolume = function() {
  2600. return cc.audioEngine.getMusicVolume();
  2601. };
  2602. t.prototype.isMusicPlaying = function() {
  2603. return cc.audioEngine.isMusicPlaying();
  2604. };
  2605. t.prototype.releaseAudio = function(t) {
  2606. t ? cc.audioEngine.uncache(t) : cc.error("【音频】资源" + t + "不存在, 释放失败");
  2607. };
  2608. t.prototype.stopAllAudio = function() {
  2609. cc.audioEngine.stopAll();
  2610. };
  2611. t.prototype.releaseAllAudio = function() {
  2612. cc.audioEngine.uncacheAll();
  2613. };
  2614. return t;
  2615. }();
  2616. n.default = a;
  2617. var r = "music/";
  2618. cc._RF.pop();
  2619. }, {} ],
  2620. BangsFit: [ function(t, e, n) {
  2621. "use strict";
  2622. cc._RF.push(e, "173866Ll/lFN6TBCxDmQuqC", "BangsFit");
  2623. var o, i = this && this.__extends || (o = function(t, e) {
  2624. return (o = Object.setPrototypeOf || {
  2625. __proto__: []
  2626. } instanceof Array && function(t, e) {
  2627. t.__proto__ = e;
  2628. } || function(t, e) {
  2629. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  2630. })(t, e);
  2631. }, function(t, e) {
  2632. o(t, e);
  2633. function n() {
  2634. this.constructor = t;
  2635. }
  2636. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  2637. }), a = this && this.__decorate || function(t, e, n, o) {
  2638. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  2639. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  2640. return a > 3 && r && Object.defineProperty(e, n, r), r;
  2641. };
  2642. Object.defineProperty(n, "__esModule", {
  2643. value: !0
  2644. });
  2645. var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
  2646. i(e, t);
  2647. function e() {
  2648. return null !== t && t.apply(this, arguments) || this;
  2649. }
  2650. e.prototype.onLoad = function() {
  2651. this._AdaptLeftAndRight();
  2652. };
  2653. e.prototype._AdaptLeftAndRight = function() {
  2654. var t = this.node.getComponent(cc.Widget);
  2655. if (t && this.IsBigScreenRatio()) {
  2656. t.top = 65;
  2657. t.bottom = 65;
  2658. }
  2659. };
  2660. e.prototype.IsBigScreenRatio = function() {
  2661. return this.GetWinHeightWidthRatio() >= 1.86;
  2662. };
  2663. e.prototype.GetWinHeightWidthRatio = function() {
  2664. return cc.winSize.height >= cc.winSize.width ? cc.winSize.height / cc.winSize.width : cc.winSize.width / cc.winSize.height;
  2665. };
  2666. return a([ c ], e);
  2667. }(cc.Component));
  2668. n.default = s;
  2669. cc._RF.pop();
  2670. }, {} ],
  2671. BlessingBagData: [ function(t, e, n) {
  2672. "use strict";
  2673. cc._RF.push(e, "a2b69L/oGRH25IYL5gdm97o", "BlessingBagData");
  2674. var o, i = this && this.__extends || (o = function(t, e) {
  2675. return (o = Object.setPrototypeOf || {
  2676. __proto__: []
  2677. } instanceof Array && function(t, e) {
  2678. t.__proto__ = e;
  2679. } || function(t, e) {
  2680. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  2681. })(t, e);
  2682. }, function(t, e) {
  2683. o(t, e);
  2684. function n() {
  2685. this.constructor = t;
  2686. }
  2687. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  2688. }), a = this && this.__awaiter || function(t, e, n, o) {
  2689. return new (n || (n = Promise))(function(i, a) {
  2690. function r(t) {
  2691. try {
  2692. s(o.next(t));
  2693. } catch (t) {
  2694. a(t);
  2695. }
  2696. }
  2697. function c(t) {
  2698. try {
  2699. s(o.throw(t));
  2700. } catch (t) {
  2701. a(t);
  2702. }
  2703. }
  2704. function s(t) {
  2705. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  2706. t(e);
  2707. })).then(r, c);
  2708. var e;
  2709. }
  2710. s((o = o.apply(t, e || [])).next());
  2711. });
  2712. }, r = this && this.__generator || function(t, e) {
  2713. var n, o, i, a, r = {
  2714. label: 0,
  2715. sent: function() {
  2716. if (1 & i[0]) throw i[1];
  2717. return i[1];
  2718. },
  2719. trys: [],
  2720. ops: []
  2721. };
  2722. return a = {
  2723. next: c(0),
  2724. throw: c(1),
  2725. return: c(2)
  2726. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  2727. return this;
  2728. }), a;
  2729. function c(t) {
  2730. return function(e) {
  2731. return s([ t, e ]);
  2732. };
  2733. }
  2734. function s(a) {
  2735. if (n) throw new TypeError("Generator is already executing.");
  2736. for (;r; ) try {
  2737. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  2738. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  2739. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  2740. switch (a[0]) {
  2741. case 0:
  2742. case 1:
  2743. i = a;
  2744. break;
  2745. case 4:
  2746. r.label++;
  2747. return {
  2748. value: a[1],
  2749. done: !1
  2750. };
  2751. case 5:
  2752. r.label++;
  2753. o = a[1];
  2754. a = [ 0 ];
  2755. continue;
  2756. case 7:
  2757. a = r.ops.pop();
  2758. r.trys.pop();
  2759. continue;
  2760. default:
  2761. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  2762. r = 0;
  2763. continue;
  2764. }
  2765. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  2766. r.label = a[1];
  2767. break;
  2768. }
  2769. if (6 === a[0] && r.label < i[1]) {
  2770. r.label = i[1];
  2771. i = a;
  2772. break;
  2773. }
  2774. if (i && r.label < i[2]) {
  2775. r.label = i[2];
  2776. r.ops.push(a);
  2777. break;
  2778. }
  2779. i[2] && r.ops.pop();
  2780. r.trys.pop();
  2781. continue;
  2782. }
  2783. a = e.call(t, r);
  2784. } catch (t) {
  2785. a = [ 6, t ];
  2786. o = 0;
  2787. } finally {
  2788. n = i = 0;
  2789. }
  2790. if (5 & a[0]) throw a[1];
  2791. return {
  2792. value: a[0] ? a[1] : void 0,
  2793. done: !0
  2794. };
  2795. }
  2796. };
  2797. Object.defineProperty(n, "__esModule", {
  2798. value: !0
  2799. });
  2800. n.BlessingBagData = void 0;
  2801. var c = function(t) {
  2802. i(e, t);
  2803. function e() {
  2804. var e = null !== t && t.apply(this, arguments) || this;
  2805. e._videoRbData = null;
  2806. e.isPlayAniUpdate = !1;
  2807. e.init_videoRbData = !1;
  2808. e.rbType = 0;
  2809. e.rbNum = 0;
  2810. e.init_openRb = !1;
  2811. e.bigRbNum = 0;
  2812. e.taskRbId = 0;
  2813. e.taskRbNum = 0;
  2814. e.adsource_id_value = "";
  2815. return e;
  2816. }
  2817. Object.defineProperty(e.prototype, "videoRbData", {
  2818. get: function() {
  2819. return this._videoRbData;
  2820. },
  2821. set: function(t) {
  2822. this._videoRbData = t;
  2823. this.init_videoRbData = !0;
  2824. },
  2825. enumerable: !1,
  2826. configurable: !0
  2827. });
  2828. e.prototype.init = function() {
  2829. this.isPlayAniUpdate = !1;
  2830. this.videoRbData = gData.gameData.gameData.userTuCaoInfo;
  2831. console.log("----------------\x3e", this.videoRbData);
  2832. };
  2833. e.prototype.setAdData = function(e) {
  2834. t.prototype.setAdData.call(this, e);
  2835. this.UpdateVideoProgress(e);
  2836. };
  2837. e.prototype.OpenTaskRbPanel = function(t, e, n, o) {
  2838. this.taskRbId = e;
  2839. this.taskRbNum = t;
  2840. this.rbType = n;
  2841. this.rbNum = o;
  2842. this.init_openRb = !0;
  2843. };
  2844. e.prototype.UpdateVideoProgress = function(t) {
  2845. return a(this, void 0, void 0, function() {
  2846. return r(this, function(e) {
  2847. switch (e.label) {
  2848. case 0:
  2849. return [ 4, mk.time.WaitForSeconds(.5) ];
  2850. case 1:
  2851. e.sent();
  2852. this.isPlayAniUpdate = !0;
  2853. this.videoRbData = t.data;
  2854. return [ 2 ];
  2855. }
  2856. });
  2857. });
  2858. };
  2859. e.prototype.HttpNoAdProgress = function() {
  2860. return a(this, void 0, void 0, function() {
  2861. var t, e;
  2862. return r(this, function(n) {
  2863. switch (n.label) {
  2864. case 0:
  2865. t = {};
  2866. return [ 4, mk.http.sendData("tuCaoRedMoney/noNeedVideo", t) ];
  2867. case 1:
  2868. if (0 != (e = n.sent()).errcode) return [ 2 ];
  2869. this.isPlayAniUpdate = !0;
  2870. this.videoRbData = e.data.UserRedMoneyInfo;
  2871. return [ 2 ];
  2872. }
  2873. });
  2874. });
  2875. };
  2876. e.prototype.HttpCashBig = function() {
  2877. return a(this, void 0, void 0, function() {
  2878. var t, e;
  2879. return r(this, function(n) {
  2880. switch (n.label) {
  2881. case 0:
  2882. t = {};
  2883. return [ 4, mk.http.sendData("redMoneyVideoCash", t) ];
  2884. case 1:
  2885. if (0 != (e = n.sent()).errcode) return [ 2, null ];
  2886. this.isPlayAniUpdate = !1;
  2887. this.videoRbData = e.data.UserRedMoneyInfo;
  2888. return [ 2, e ];
  2889. }
  2890. });
  2891. });
  2892. };
  2893. e.prototype.HttpCashTask = function() {
  2894. return a(this, void 0, void 0, function() {
  2895. var t, e, n;
  2896. return r(this, function(o) {
  2897. switch (o.label) {
  2898. case 0:
  2899. t = {
  2900. redMoneyId: this.taskRbId
  2901. };
  2902. return [ 4, mk.http.sendData("tuCaoRedMoney/gearCash", t) ];
  2903. case 1:
  2904. if (0 != (e = o.sent()).errcode) return [ 2, null ];
  2905. this.isPlayAniUpdate = !1;
  2906. this.videoRbData = e.data.UserRedMoneyInfo;
  2907. n = Math.round(100 * gData.blessingBag.taskRbNum);
  2908. gData.receiptNotice.receip_rmb = n;
  2909. gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
  2910. mk.ui.openPanel("module/receiptNotice/receiptNotice");
  2911. return [ 2, e ];
  2912. }
  2913. });
  2914. });
  2915. };
  2916. e.prototype.HttpInitAdRbData = function() {
  2917. return a(this, void 0, void 0, function() {
  2918. var t, e;
  2919. return r(this, function(n) {
  2920. switch (n.label) {
  2921. case 0:
  2922. t = {};
  2923. return [ 4, mk.http.sendData("tuCaoRedMoney/initUserInfo", t) ];
  2924. case 1:
  2925. if (0 != (e = n.sent()).errcode) return [ 2 ];
  2926. this.isPlayAniUpdate = !1;
  2927. this.videoRbData = e.data.UserRedMoneyInfo;
  2928. return [ 2 ];
  2929. }
  2930. });
  2931. });
  2932. };
  2933. e.prototype.redPoint = function() {
  2934. return !1;
  2935. };
  2936. return e;
  2937. }(t("../../../mk/data/Data").Data);
  2938. n.BlessingBagData = c;
  2939. cc._RF.pop();
  2940. }, {
  2941. "../../../mk/data/Data": "Data"
  2942. } ],
  2943. BlessingBagItem: [ function(t, e, n) {
  2944. "use strict";
  2945. cc._RF.push(e, "b6615dqhWxFXJgvv1DTd49O", "BlessingBagItem");
  2946. var o, i = this && this.__extends || (o = function(t, e) {
  2947. return (o = Object.setPrototypeOf || {
  2948. __proto__: []
  2949. } instanceof Array && function(t, e) {
  2950. t.__proto__ = e;
  2951. } || function(t, e) {
  2952. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  2953. })(t, e);
  2954. }, function(t, e) {
  2955. o(t, e);
  2956. function n() {
  2957. this.constructor = t;
  2958. }
  2959. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  2960. }), a = this && this.__decorate || function(t, e, n, o) {
  2961. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  2962. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  2963. return a > 3 && r && Object.defineProperty(e, n, r), r;
  2964. }, r = this && this.__awaiter || function(t, e, n, o) {
  2965. return new (n || (n = Promise))(function(i, a) {
  2966. function r(t) {
  2967. try {
  2968. s(o.next(t));
  2969. } catch (t) {
  2970. a(t);
  2971. }
  2972. }
  2973. function c(t) {
  2974. try {
  2975. s(o.throw(t));
  2976. } catch (t) {
  2977. a(t);
  2978. }
  2979. }
  2980. function s(t) {
  2981. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  2982. t(e);
  2983. })).then(r, c);
  2984. var e;
  2985. }
  2986. s((o = o.apply(t, e || [])).next());
  2987. });
  2988. }, c = this && this.__generator || function(t, e) {
  2989. var n, o, i, a, r = {
  2990. label: 0,
  2991. sent: function() {
  2992. if (1 & i[0]) throw i[1];
  2993. return i[1];
  2994. },
  2995. trys: [],
  2996. ops: []
  2997. };
  2998. return a = {
  2999. next: c(0),
  3000. throw: c(1),
  3001. return: c(2)
  3002. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  3003. return this;
  3004. }), a;
  3005. function c(t) {
  3006. return function(e) {
  3007. return s([ t, e ]);
  3008. };
  3009. }
  3010. function s(a) {
  3011. if (n) throw new TypeError("Generator is already executing.");
  3012. for (;r; ) try {
  3013. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  3014. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  3015. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  3016. switch (a[0]) {
  3017. case 0:
  3018. case 1:
  3019. i = a;
  3020. break;
  3021. case 4:
  3022. r.label++;
  3023. return {
  3024. value: a[1],
  3025. done: !1
  3026. };
  3027. case 5:
  3028. r.label++;
  3029. o = a[1];
  3030. a = [ 0 ];
  3031. continue;
  3032. case 7:
  3033. a = r.ops.pop();
  3034. r.trys.pop();
  3035. continue;
  3036. default:
  3037. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  3038. r = 0;
  3039. continue;
  3040. }
  3041. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  3042. r.label = a[1];
  3043. break;
  3044. }
  3045. if (6 === a[0] && r.label < i[1]) {
  3046. r.label = i[1];
  3047. i = a;
  3048. break;
  3049. }
  3050. if (i && r.label < i[2]) {
  3051. r.label = i[2];
  3052. r.ops.push(a);
  3053. break;
  3054. }
  3055. i[2] && r.ops.pop();
  3056. r.trys.pop();
  3057. continue;
  3058. }
  3059. a = e.call(t, r);
  3060. } catch (t) {
  3061. a = [ 6, t ];
  3062. o = 0;
  3063. } finally {
  3064. n = i = 0;
  3065. }
  3066. if (5 & a[0]) throw a[1];
  3067. return {
  3068. value: a[0] ? a[1] : void 0,
  3069. done: !0
  3070. };
  3071. }
  3072. };
  3073. Object.defineProperty(n, "__esModule", {
  3074. value: !0
  3075. });
  3076. var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  3077. i(e, t);
  3078. function e() {
  3079. var e = null !== t && t.apply(this, arguments) || this;
  3080. e.txtNum = null;
  3081. e.txtTip = null;
  3082. e.txtSlider = null;
  3083. e.slider = null;
  3084. e.btnCashed = null;
  3085. e.btnCanCash = null;
  3086. e.btnNoFinish = null;
  3087. e.data = null;
  3088. e.lastNum = 0;
  3089. e.totalTime = 0;
  3090. e.deltaTime = 0;
  3091. e.delta = 0;
  3092. e.curValue = 0;
  3093. e.curTime = 0;
  3094. e.isPlayAni = !1;
  3095. return e;
  3096. }
  3097. e.prototype.setItemData = function(t) {
  3098. return r(this, void 0, void 0, function() {
  3099. return c(this, function() {
  3100. this.Init(t.data, t.isPlayAniUpdate, t.isPlayInitAni);
  3101. return [ 2 ];
  3102. });
  3103. });
  3104. };
  3105. e.prototype.Init = function(t, e, n) {
  3106. var o = this;
  3107. void 0 === e && (e = !1);
  3108. void 0 === n && (n = !1);
  3109. this.data = t;
  3110. this.txtNum.string = t.redMoney + "元";
  3111. this.txtTip.string = "<outline color=#8C1010 width=4><color=#FFE00C>" + t.redMoney + "元</c>提现进度</outline>";
  3112. this.btnCashed.active = 2 == t.status;
  3113. this.btnCanCash.active = 1 == t.status;
  3114. this.btnNoFinish.active = 0 == t.status;
  3115. if (e) this.scheduleOnce(function() {
  3116. o.PlayNumAni(.3);
  3117. cc.tween(o.txtSlider.node).to(.15, {
  3118. scale: 1.2
  3119. }).to(.15, {
  3120. scale: 1
  3121. }).start();
  3122. }, .3); else if (n) this.scheduleOnce(function() {
  3123. o.PlayInitNumAni(.2);
  3124. cc.tween(o.txtSlider.node).to(.1, {
  3125. scale: 1.2
  3126. }).to(.1, {
  3127. scale: 1
  3128. }).start();
  3129. }, .3); else {
  3130. this.txtSlider.string = t.progressRate + "%";
  3131. this.slider.fillRange = .01 * t.progressRate;
  3132. this.lastNum = t.progressRate;
  3133. }
  3134. };
  3135. e.prototype.update = function(t) {
  3136. this.UpdateAniFrame(t);
  3137. };
  3138. e.prototype.PlayNumAni = function(t) {
  3139. this.totalTime = t;
  3140. this.delta = (this.data.progressRate - this.lastNum) / t;
  3141. this.deltaTime = t / (this.data.progressRate - this.lastNum);
  3142. this.curValue = this.lastNum;
  3143. this.curTime = 0;
  3144. this.isPlayAni = !0;
  3145. };
  3146. e.prototype.PlayInitNumAni = function(t) {
  3147. this.totalTime = t;
  3148. this.delta = (this.data.progressRate - 0) / t;
  3149. this.deltaTime = t / (this.data.progressRate - 0);
  3150. this.curValue = 0;
  3151. this.curTime = 0;
  3152. this.isPlayAni = !0;
  3153. };
  3154. e.prototype.UpdateAni = function() {
  3155. if (this.curTime < this.totalTime) {
  3156. this.curTime += this.deltaTime;
  3157. this.curValue += this.delta * this.deltaTime;
  3158. this.curValue >= this.data.progressRate && (this.curValue = this.data.progressRate);
  3159. } else {
  3160. this.curTime = this.totalTime;
  3161. this.unschedule(this.UpdateAni);
  3162. this.curValue = this.data.progressRate;
  3163. this.lastNum = this.data.progressRate;
  3164. }
  3165. this.txtSlider.string = this.curValue.toFixed(2) + "%";
  3166. this.slider.fillRange = .01 * this.curValue;
  3167. };
  3168. e.prototype.UpdateAniFrame = function(t) {
  3169. if (this.isPlayAni) {
  3170. if (this.curTime < this.totalTime) {
  3171. this.curTime += t;
  3172. this.curValue += this.delta * t;
  3173. if (this.curValue >= this.data.progressRate) {
  3174. this.isPlayAni = !1;
  3175. this.curValue = this.data.progressRate;
  3176. this.lastNum = this.data.progressRate;
  3177. }
  3178. } else {
  3179. this.isPlayAni = !1;
  3180. this.curTime = this.totalTime;
  3181. this.curValue = this.data.progressRate;
  3182. this.lastNum = this.data.progressRate;
  3183. }
  3184. this.txtSlider.string = this.curValue.toFixed(2) + "%";
  3185. this.slider.fillRange = .01 * this.curValue;
  3186. }
  3187. };
  3188. e.prototype.OnExit = function() {
  3189. this.txtSlider.string = "0.00%";
  3190. this.slider.fillRange = 0;
  3191. };
  3192. e.prototype.Click_CashedBtn = function() {
  3193. mk.audio.playEffect("button");
  3194. console.log("clicked cashed");
  3195. mk.tip.pop("该红包已提现");
  3196. };
  3197. e.prototype.Click_CanCashBtn = function() {
  3198. mk.audio.playEffect("button");
  3199. console.log("clicked canCash");
  3200. gData.blessingBag.OpenTaskRbPanel(this.data.redMoney, this.data.redMoneyId, 2, this.data.redMoney);
  3201. };
  3202. e.prototype.Click_NoFinishBtn = function() {
  3203. mk.audio.playEffect("button");
  3204. console.log("clicked noFinish");
  3205. mk.tip.pop("提现进度不足");
  3206. };
  3207. a([ u(cc.Label) ], e.prototype, "txtNum", void 0);
  3208. a([ u(cc.RichText) ], e.prototype, "txtTip", void 0);
  3209. a([ u(cc.Label) ], e.prototype, "txtSlider", void 0);
  3210. a([ u(cc.Sprite) ], e.prototype, "slider", void 0);
  3211. a([ u(cc.Node) ], e.prototype, "btnCashed", void 0);
  3212. a([ u(cc.Node) ], e.prototype, "btnCanCash", void 0);
  3213. a([ u(cc.Node) ], e.prototype, "btnNoFinish", void 0);
  3214. return a([ l ], e);
  3215. }(cc.Component);
  3216. n.default = p;
  3217. cc._RF.pop();
  3218. }, {} ],
  3219. BlessingBag: [ function(t, e, n) {
  3220. "use strict";
  3221. cc._RF.push(e, "bb002IlT3tILa3522JfGQ79", "BlessingBag");
  3222. var o, i = this && this.__extends || (o = function(t, e) {
  3223. return (o = Object.setPrototypeOf || {
  3224. __proto__: []
  3225. } instanceof Array && function(t, e) {
  3226. t.__proto__ = e;
  3227. } || function(t, e) {
  3228. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  3229. })(t, e);
  3230. }, function(t, e) {
  3231. o(t, e);
  3232. function n() {
  3233. this.constructor = t;
  3234. }
  3235. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  3236. }), a = this && this.__decorate || function(t, e, n, o) {
  3237. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  3238. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  3239. return a > 3 && r && Object.defineProperty(e, n, r), r;
  3240. }, r = this && this.__awaiter || function(t, e, n, o) {
  3241. return new (n || (n = Promise))(function(i, a) {
  3242. function r(t) {
  3243. try {
  3244. s(o.next(t));
  3245. } catch (t) {
  3246. a(t);
  3247. }
  3248. }
  3249. function c(t) {
  3250. try {
  3251. s(o.throw(t));
  3252. } catch (t) {
  3253. a(t);
  3254. }
  3255. }
  3256. function s(t) {
  3257. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  3258. t(e);
  3259. })).then(r, c);
  3260. var e;
  3261. }
  3262. s((o = o.apply(t, e || [])).next());
  3263. });
  3264. }, c = this && this.__generator || function(t, e) {
  3265. var n, o, i, a, r = {
  3266. label: 0,
  3267. sent: function() {
  3268. if (1 & i[0]) throw i[1];
  3269. return i[1];
  3270. },
  3271. trys: [],
  3272. ops: []
  3273. };
  3274. return a = {
  3275. next: c(0),
  3276. throw: c(1),
  3277. return: c(2)
  3278. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  3279. return this;
  3280. }), a;
  3281. function c(t) {
  3282. return function(e) {
  3283. return s([ t, e ]);
  3284. };
  3285. }
  3286. function s(a) {
  3287. if (n) throw new TypeError("Generator is already executing.");
  3288. for (;r; ) try {
  3289. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  3290. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  3291. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  3292. switch (a[0]) {
  3293. case 0:
  3294. case 1:
  3295. i = a;
  3296. break;
  3297. case 4:
  3298. r.label++;
  3299. return {
  3300. value: a[1],
  3301. done: !1
  3302. };
  3303. case 5:
  3304. r.label++;
  3305. o = a[1];
  3306. a = [ 0 ];
  3307. continue;
  3308. case 7:
  3309. a = r.ops.pop();
  3310. r.trys.pop();
  3311. continue;
  3312. default:
  3313. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  3314. r = 0;
  3315. continue;
  3316. }
  3317. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  3318. r.label = a[1];
  3319. break;
  3320. }
  3321. if (6 === a[0] && r.label < i[1]) {
  3322. r.label = i[1];
  3323. i = a;
  3324. break;
  3325. }
  3326. if (i && r.label < i[2]) {
  3327. r.label = i[2];
  3328. r.ops.push(a);
  3329. break;
  3330. }
  3331. i[2] && r.ops.pop();
  3332. r.trys.pop();
  3333. continue;
  3334. }
  3335. a = e.call(t, r);
  3336. } catch (t) {
  3337. a = [ 6, t ];
  3338. o = 0;
  3339. } finally {
  3340. n = i = 0;
  3341. }
  3342. if (5 & a[0]) throw a[1];
  3343. return {
  3344. value: a[0] ? a[1] : void 0,
  3345. done: !0
  3346. };
  3347. }
  3348. };
  3349. Object.defineProperty(n, "__esModule", {
  3350. value: !0
  3351. });
  3352. var s = t("../../../mk/system/JsbSystem"), l = t("../../data/AdData"), u = t("../../data/GameData"), p = t("../../data/module/CashProData"), d = cc._decorator, h = d.ccclass, f = d.property, y = function(t) {
  3353. i(e, t);
  3354. function e() {
  3355. var e = null !== t && t.apply(this, arguments) || this;
  3356. e.txtBigNum = null;
  3357. e.txtAddEft = null;
  3358. e.txtTipAd = null;
  3359. e.txtBigDelta = null;
  3360. e.txtBigTask = null;
  3361. e.txtRemaindAdNum = null;
  3362. e.blassingBagItem = null;
  3363. e.itemContent = null;
  3364. e.btnCash = null;
  3365. e.btnAd = null;
  3366. e.aniBigAdBtn = null;
  3367. e.adIcon = null;
  3368. e.aniBtnAd = null;
  3369. e.rbOpenBtn = null;
  3370. e.nodeRb = null;
  3371. e.txtRbNum = null;
  3372. e.testNode = null;
  3373. e.inputBox = null;
  3374. e.rbPanelType = 0;
  3375. e.adrbArray = [];
  3376. e.isPlayInitAni = !0;
  3377. e.isPlayAni = !1;
  3378. e.targetProgress = 0;
  3379. e.delta = 0;
  3380. e.curValue = 0;
  3381. e.curTime = 0;
  3382. e.totalTime = 0;
  3383. e.lastNum = 0;
  3384. e.canOpen = !0;
  3385. return e;
  3386. }
  3387. e.prototype.onLoad = function() {
  3388. this.testNode.active = 1 == gData.gameData.configs.ServerConfig.VideoRedBagEmpty;
  3389. };
  3390. e.prototype.onEnable = function() {
  3391. this.isPlayAni = !1;
  3392. this.isPlayInitAni = !0;
  3393. gData.blessingBag.isPlayAniUpdate = !1;
  3394. gData.blessingBag.init_videoRbData = !0;
  3395. };
  3396. e.prototype.update = function(t) {
  3397. this.PlayMoneyAniUpdate(t);
  3398. gData.blessingBag.init_videoRbData && this.UpdateInfo();
  3399. gData.blessingBag.init_openRb && this.OpenRbPanel(gData.blessingBag.rbType, gData.blessingBag.rbNum);
  3400. };
  3401. e.prototype.lateUpdate = function() {
  3402. gData.blessingBag.init_videoRbData = !1;
  3403. gData.blessingBag.init_openRb = !1;
  3404. };
  3405. e.prototype.UpdateInfo = function() {
  3406. var t = this, e = gData.blessingBag.videoRbData;
  3407. if (e) {
  3408. this.targetProgress = e.cumulativeAmount;
  3409. this.txtBigDelta.node.active = 1 != e.showTask;
  3410. this.txtBigTask.node.active = 1 == e.showTask;
  3411. this.txtTipAd.string = 1 == e.showTask ? "提现中..." : "<b>满<color=#FFE00C>" + e.requestAmount + "元</color>可提现</b>";
  3412. this.txtBigDelta.string = "<outline color=#8C1010 width=4><b>每次视频额外奖励<color=#FFE00C>" + e.videoAmountPerTime + "元</color></b></outline>";
  3413. this.txtBigTask.string = "<outline color=#8C1010 width=4>金额已达标,完成<color=#4EB7FF>观看视频</color>任务可到账\n观看视频次数:<color=#FFE00C>" + e.taskVideoWatchTime + "/" + e.taskVideoTime + "</color>,连续观看天数:<color=#FFE00C>" + e.taskVideoWatchDay + "/" + e.taskVideoDay + "</color></outline>";
  3414. this.txtRemaindAdNum.string = "<b>今日剩余次数:<color=#B02D29>" + e.videoTime + "</color></b>";
  3415. this.adIcon.active = 1 == e.needToWatchTheVideo;
  3416. if (gData.blessingBag.isPlayAniUpdate) if (this.lastNum < e.cumulativeAmount) {
  3417. var n = this.btnCash.parent.convertToWorldSpaceAR(this.btnCash.getPosition());
  3418. mk.fly.PlayCoinAnim(1, 10, this.btnAd.getPosition(), n, function() {
  3419. t.aniBigAdBtn.setCurrentTime(0);
  3420. t.aniBigAdBtn.play();
  3421. });
  3422. this.txtAddEft.node.setPosition(cc.v2(0, 380));
  3423. this.txtAddEft.string = "+" + e.videoAmountPerTime + "元";
  3424. this.txtAddEft.node.stopAllActions();
  3425. this.txtAddEft.node.scale = 0;
  3426. this.txtAddEft.node.opacity = 255;
  3427. this.txtAddEft.node.active = !0;
  3428. var o = cc.delayTime(.8), i = cc.sequence(cc.scaleTo(.15, 1.2), cc.scaleTo(.15, 1)), a = cc.spawn(cc.moveBy(.3, cc.v2(0, 30)), i), r = cc.delayTime(.5), c = cc.fadeOut(.15), s = cc.callFunc(function() {
  3429. t.PlayMoneyAni(.2);
  3430. t.txtAddEft.node.active = !1;
  3431. });
  3432. this.txtAddEft.node.runAction(cc.sequence(o, a, r, c, s));
  3433. } else {
  3434. this.txtBigNum.string = e.cumulativeAmount.toFixed(2) + "元";
  3435. this.lastNum = e.cumulativeAmount;
  3436. } else {
  3437. this.txtBigNum.string = e.cumulativeAmount.toFixed(2) + "元";
  3438. this.lastNum = e.cumulativeAmount;
  3439. }
  3440. if (this.adrbArray.length < 4) {
  3441. this.adrbArray = [];
  3442. for (var l = 0; l < e.redMonies.length; l++) {
  3443. var u = {
  3444. data: e.redMonies[l],
  3445. isPlayAniUpdate: gData.blessingBag.isPlayAniUpdate,
  3446. isPlayInitAni: this.isPlayInitAni
  3447. };
  3448. this.adrbArray.push(u);
  3449. }
  3450. this.itemContent.emit("srollview-init", this.adrbArray);
  3451. } else {
  3452. this.adrbArray = [];
  3453. for (l = 0; l < e.redMonies.length; l++) {
  3454. u = {
  3455. data: e.redMonies[l],
  3456. isPlayAniUpdate: gData.blessingBag.isPlayAniUpdate,
  3457. isPlayInitAni: this.isPlayInitAni
  3458. };
  3459. this.adrbArray.push(u);
  3460. }
  3461. this.itemContent.emit("srollview-update", this.adrbArray);
  3462. }
  3463. this.isPlayInitAni = !1;
  3464. gData.blessingBag.isPlayAniUpdate = !1;
  3465. }
  3466. };
  3467. e.prototype.PlayMoneyAni = function(t) {
  3468. this.totalTime = t;
  3469. this.delta = (this.targetProgress - this.lastNum) / t;
  3470. this.curValue = this.lastNum;
  3471. this.curTime = 0;
  3472. console.log("---\x3eUpdate Time: " + t + " delta: " + this.delta + " curValue: " + this.curValue + " lastNum: " + this.lastNum);
  3473. this.isPlayAni = !0;
  3474. };
  3475. e.prototype.PlayMoneyAniUpdate = function(t) {
  3476. if (this.isPlayAni) {
  3477. if (this.curTime < this.totalTime) {
  3478. this.curTime += t;
  3479. this.curValue += this.delta * t;
  3480. if (this.curValue >= this.targetProgress) {
  3481. this.isPlayAni = !1;
  3482. this.curValue = this.targetProgress;
  3483. this.lastNum = this.targetProgress;
  3484. }
  3485. console.log("--\x3eCurValue:" + this.curValue);
  3486. } else {
  3487. this.isPlayAni = !1;
  3488. this.curTime = this.totalTime;
  3489. this.curValue = this.targetProgress;
  3490. this.lastNum = this.targetProgress;
  3491. }
  3492. this.txtBigNum.string = this.curValue.toFixed(2) + "元";
  3493. }
  3494. };
  3495. e.prototype.Click_AdProgressBtn = function() {
  3496. mk.audio.playEffect("button");
  3497. if (gData.loginData.isAuth) {
  3498. if (1 != gData.blessingBag.videoRbData.needToWatchTheVideo) gData.blessingBag.HttpNoAdProgress(); else if (gData.blessingBag.videoRbData.videoTime > 0) {
  3499. mk.ad.videoAdType = u.VideoAdType.Fudai;
  3500. mk.ad.watchAd(function(t) {
  3501. mk.console.log("watchAD:" + t);
  3502. t && gData.adData.watchVideo(l.AdFun.bigCash);
  3503. });
  3504. } else mk.tip.pop("今日观看次数已用完");
  3505. mk.audio.playEffect("button");
  3506. console.log("---\x3eYou Click AdProgressBtn ", gData.blessingBag.videoRbData);
  3507. } else s.default.WxAuth();
  3508. };
  3509. e.prototype.OpenRbPanel = function(t, e) {
  3510. this.rbPanelType = t;
  3511. this.txtRbNum.string = e + "元";
  3512. this.nodeRb.active = !0;
  3513. this.rbOpenBtn.active = !0;
  3514. };
  3515. e.prototype.CheckCashRedCode = function() {
  3516. var t = gData.blessingBag.videoRbData;
  3517. if (t.redMoneyCode.length > 0) for (var e = 0; e < t.redMoneyCode.length; e++) if (t.preLargeAmountCashId == t.redMoneyCode[e].RedMoneyId) {
  3518. "" != t.redMoneyCode[e].RedMoneyCode ? gData.redCodeData.openRedCode(t.redMoneyCode[e].VideoCashBig, t.redMoneyCode[e].RedMoneyCode) : mk.tip.pop("提现成功");
  3519. return;
  3520. }
  3521. mk.tip.pop("请先完成提现任务");
  3522. };
  3523. e.prototype.Click_CashBtn = function() {
  3524. return r(this, void 0, void 0, function() {
  3525. var t;
  3526. return c(this, function(e) {
  3527. switch (e.label) {
  3528. case 0:
  3529. console.log("---\x3eYou Click CashBtn");
  3530. mk.audio.playEffect("button");
  3531. return gData.blessingBag.videoRbData.cumulativeAmount >= gData.blessingBag.videoRbData.requestAmount ? [ 4, gData.blessingBag.HttpCashBig() ] : [ 3, 2 ];
  3532. case 1:
  3533. if ((t = e.sent()) && 1 == t.data.code) {
  3534. this.CheckCashRedCode();
  3535. gData.cashNormal.getRecord();
  3536. } else mk.tip.pop("请先完成提现任务");
  3537. return [ 3, 3 ];
  3538. case 2:
  3539. mk.tip.pop("累计到" + gData.blessingBag.videoRbData.requestAmount + "元才可提现");
  3540. e.label = 3;
  3541. case 3:
  3542. return [ 2 ];
  3543. }
  3544. });
  3545. });
  3546. };
  3547. e.prototype.Click_CashOpenBtn = function() {
  3548. return r(this, void 0, void 0, function() {
  3549. var t = this;
  3550. return c(this, function() {
  3551. mk.audio.playEffect("button");
  3552. if (!this.canOpen) return [ 2 ];
  3553. this.canOpen = !1;
  3554. if (1 == this.rbPanelType) gData.cashPro.openCashPro(p.cashProType.blessing_bigCash, gData.blessingBag.bigRbNum); else {
  3555. this.rbOpenBtn.active = !1;
  3556. this.aniBtnAd.node.active = !0;
  3557. this.aniBtnAd.setCurrentTime(0);
  3558. this.aniBtnAd.play();
  3559. setTimeout(function() {
  3560. t.aniBtnAd.stop();
  3561. t.aniBtnAd.node.active = !1;
  3562. t.rbOpenBtn.active = !0;
  3563. t.nodeRb.active = !1;
  3564. gData.blessingBag.HttpCashTask();
  3565. t.canOpen = !0;
  3566. }, 1e3);
  3567. }
  3568. return [ 2 ];
  3569. });
  3570. });
  3571. };
  3572. e.prototype.clickHelpCallBack = function() {
  3573. gData.help.des = "1、观看大量视频可以快速增加提现进度。\n\n2、提现进度到100%,可以提现对应档位的红包。\n\n3、余额累计满一定金额,可以申请大额提现。";
  3574. };
  3575. e.prototype.Click_InitData = function() {
  3576. mk.audio.playEffect("button");
  3577. gData.blessingBag.HttpInitAdRbData();
  3578. };
  3579. e.prototype.EditBox_End = function() {
  3580. console.log("--\x3eInput:", this.inputBox.string);
  3581. gData.blessingBag.adsource_id_value = this.inputBox.string;
  3582. };
  3583. e.prototype.onClickClose = function() {
  3584. mk.ad.checkShowInterByChance();
  3585. };
  3586. a([ f(cc.Label) ], e.prototype, "txtBigNum", void 0);
  3587. a([ f(cc.Label) ], e.prototype, "txtAddEft", void 0);
  3588. a([ f(cc.RichText) ], e.prototype, "txtTipAd", void 0);
  3589. a([ f(cc.RichText) ], e.prototype, "txtBigDelta", void 0);
  3590. a([ f(cc.RichText) ], e.prototype, "txtBigTask", void 0);
  3591. a([ f(cc.RichText) ], e.prototype, "txtRemaindAdNum", void 0);
  3592. a([ f(cc.Prefab) ], e.prototype, "blassingBagItem", void 0);
  3593. a([ f(cc.Node) ], e.prototype, "itemContent", void 0);
  3594. a([ f(cc.Node) ], e.prototype, "btnCash", void 0);
  3595. a([ f(cc.Node) ], e.prototype, "btnAd", void 0);
  3596. a([ f(cc.Animation) ], e.prototype, "aniBigAdBtn", void 0);
  3597. a([ f(cc.Node) ], e.prototype, "adIcon", void 0);
  3598. a([ f(cc.Animation) ], e.prototype, "aniBtnAd", void 0);
  3599. a([ f(cc.Node) ], e.prototype, "rbOpenBtn", void 0);
  3600. a([ f(cc.Node) ], e.prototype, "nodeRb", void 0);
  3601. a([ f(cc.Label) ], e.prototype, "txtRbNum", void 0);
  3602. a([ f(cc.Node) ], e.prototype, "testNode", void 0);
  3603. a([ f(cc.EditBox) ], e.prototype, "inputBox", void 0);
  3604. return a([ h ], e);
  3605. }(cc.Component);
  3606. n.default = y;
  3607. cc._RF.pop();
  3608. }, {
  3609. "../../../mk/system/JsbSystem": "JsbSystem",
  3610. "../../data/AdData": "AdData",
  3611. "../../data/GameData": "GameData",
  3612. "../../data/module/CashProData": "CashProData"
  3613. } ],
  3614. BonusTip: [ function(t, e, n) {
  3615. "use strict";
  3616. cc._RF.push(e, "12093ka2vhBWbXFfMq5uVm7", "BonusTip");
  3617. var o, i = this && this.__extends || (o = function(t, e) {
  3618. return (o = Object.setPrototypeOf || {
  3619. __proto__: []
  3620. } instanceof Array && function(t, e) {
  3621. t.__proto__ = e;
  3622. } || function(t, e) {
  3623. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  3624. })(t, e);
  3625. }, function(t, e) {
  3626. o(t, e);
  3627. function n() {
  3628. this.constructor = t;
  3629. }
  3630. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  3631. }), a = this && this.__decorate || function(t, e, n, o) {
  3632. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  3633. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  3634. return a > 3 && r && Object.defineProperty(e, n, r), r;
  3635. };
  3636. Object.defineProperty(n, "__esModule", {
  3637. value: !0
  3638. });
  3639. var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property,
  3640. function(t) {
  3641. i(e, t);
  3642. function e() {
  3643. var e = null !== t && t.apply(this, arguments) || this;
  3644. e.curBonusNum = 0;
  3645. return e;
  3646. }
  3647. e.prototype.start = function() {};
  3648. e.prototype.init = function(t) {
  3649. var e = this;
  3650. this.node.getComponent(cc.Sprite).enabled = !1;
  3651. if (this.curBonusNum != t) {
  3652. this.curBonusNum = t;
  3653. var n = t - 4 + 1;
  3654. mk.loader.load("game/texture/tip/" + n, cc.SpriteFrame).then(function(t) {
  3655. e.node.getComponent(cc.Sprite).spriteFrame = t;
  3656. e.node.getComponent(cc.Sprite).enabled = !0;
  3657. });
  3658. } else this.node.getComponent(cc.Sprite).enabled = !0;
  3659. this.node.opacity = 255;
  3660. this.node.scaleX = this.node.scaleY = .8;
  3661. this.node.setPosition(0, 0);
  3662. cc.tween(this.node).to(.3, {
  3663. scale: 1.2
  3664. }, {
  3665. easing: "smooth"
  3666. }).to(.1, {
  3667. scale: 1
  3668. }, {
  3669. easing: "smooth"
  3670. }).delay(.2).to(.2, {
  3671. scale: 2,
  3672. opacity: 0
  3673. }, {
  3674. easing: "smooth"
  3675. }).call(function() {
  3676. r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.BonusTip, e.node);
  3677. }).start();
  3678. };
  3679. return a([ s ], e);
  3680. }(cc.Component));
  3681. n.default = l;
  3682. cc._RF.pop();
  3683. }, {
  3684. "../../mgr/PoolMgr": "PoolMgr"
  3685. } ],
  3686. BtnClosePanel: [ function(t, e, n) {
  3687. "use strict";
  3688. cc._RF.push(e, "cdc50kCRVVBa5gcp4XXxVO+", "BtnClosePanel");
  3689. var o, i = this && this.__extends || (o = function(t, e) {
  3690. return (o = Object.setPrototypeOf || {
  3691. __proto__: []
  3692. } instanceof Array && function(t, e) {
  3693. t.__proto__ = e;
  3694. } || function(t, e) {
  3695. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  3696. })(t, e);
  3697. }, function(t, e) {
  3698. o(t, e);
  3699. function n() {
  3700. this.constructor = t;
  3701. }
  3702. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  3703. }), a = this && this.__decorate || function(t, e, n, o) {
  3704. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  3705. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  3706. return a > 3 && r && Object.defineProperty(e, n, r), r;
  3707. }, r = this && this.__awaiter || function(t, e, n, o) {
  3708. return new (n || (n = Promise))(function(i, a) {
  3709. function r(t) {
  3710. try {
  3711. s(o.next(t));
  3712. } catch (t) {
  3713. a(t);
  3714. }
  3715. }
  3716. function c(t) {
  3717. try {
  3718. s(o.throw(t));
  3719. } catch (t) {
  3720. a(t);
  3721. }
  3722. }
  3723. function s(t) {
  3724. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  3725. t(e);
  3726. })).then(r, c);
  3727. var e;
  3728. }
  3729. s((o = o.apply(t, e || [])).next());
  3730. });
  3731. }, c = this && this.__generator || function(t, e) {
  3732. var n, o, i, a, r = {
  3733. label: 0,
  3734. sent: function() {
  3735. if (1 & i[0]) throw i[1];
  3736. return i[1];
  3737. },
  3738. trys: [],
  3739. ops: []
  3740. };
  3741. return a = {
  3742. next: c(0),
  3743. throw: c(1),
  3744. return: c(2)
  3745. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  3746. return this;
  3747. }), a;
  3748. function c(t) {
  3749. return function(e) {
  3750. return s([ t, e ]);
  3751. };
  3752. }
  3753. function s(a) {
  3754. if (n) throw new TypeError("Generator is already executing.");
  3755. for (;r; ) try {
  3756. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  3757. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  3758. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  3759. switch (a[0]) {
  3760. case 0:
  3761. case 1:
  3762. i = a;
  3763. break;
  3764. case 4:
  3765. r.label++;
  3766. return {
  3767. value: a[1],
  3768. done: !1
  3769. };
  3770. case 5:
  3771. r.label++;
  3772. o = a[1];
  3773. a = [ 0 ];
  3774. continue;
  3775. case 7:
  3776. a = r.ops.pop();
  3777. r.trys.pop();
  3778. continue;
  3779. default:
  3780. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  3781. r = 0;
  3782. continue;
  3783. }
  3784. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  3785. r.label = a[1];
  3786. break;
  3787. }
  3788. if (6 === a[0] && r.label < i[1]) {
  3789. r.label = i[1];
  3790. i = a;
  3791. break;
  3792. }
  3793. if (i && r.label < i[2]) {
  3794. r.label = i[2];
  3795. r.ops.push(a);
  3796. break;
  3797. }
  3798. i[2] && r.ops.pop();
  3799. r.trys.pop();
  3800. continue;
  3801. }
  3802. a = e.call(t, r);
  3803. } catch (t) {
  3804. a = [ 6, t ];
  3805. o = 0;
  3806. } finally {
  3807. n = i = 0;
  3808. }
  3809. if (5 & a[0]) throw a[1];
  3810. return {
  3811. value: a[0] ? a[1] : void 0,
  3812. done: !0
  3813. };
  3814. }
  3815. };
  3816. Object.defineProperty(n, "__esModule", {
  3817. value: !0
  3818. });
  3819. var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  3820. i(e, t);
  3821. function e() {
  3822. var e = null !== t && t.apply(this, arguments) || this;
  3823. e.node_panel = null;
  3824. e.transition_type = cc.Button.Transition.NONE;
  3825. e.onComplete = [];
  3826. e.block_click = !1;
  3827. return e;
  3828. }
  3829. e.prototype.onLoad = function() {
  3830. this.node.getComponent(cc.Button) || (this.node.addComponent(cc.Button).transition = this.transition_type);
  3831. };
  3832. e.prototype.start = function() {
  3833. this.node.on("click", this.closePanel, this);
  3834. };
  3835. e.prototype.closePanel = function() {
  3836. return r(this, void 0, void 0, function() {
  3837. var t, e;
  3838. return c(this, function() {
  3839. mk.audio.playEffect("button");
  3840. if (this.block_click) return [ 2 ];
  3841. this.node_panel && mk.ui.closePanel(this.node_panel.name);
  3842. t = this.onComplete.length;
  3843. for (e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
  3844. return [ 2 ];
  3845. });
  3846. });
  3847. };
  3848. a([ u({
  3849. displayName: "关闭界面",
  3850. tooltip: "",
  3851. type: cc.Node
  3852. }) ], e.prototype, "node_panel", void 0);
  3853. a([ u({
  3854. displayName: "点击效果",
  3855. tooltip: "仅支持 NONE 和 SCALE",
  3856. type: cc.Enum(cc.Button.Transition)
  3857. }) ], e.prototype, "transition_type", void 0);
  3858. a([ u({
  3859. displayName: "完成回调",
  3860. tooltip: "面板打开完成后触发",
  3861. type: cc.Component.EventHandler
  3862. }) ], e.prototype, "onComplete", void 0);
  3863. return a([ l ], e);
  3864. }(cc.Component);
  3865. n.default = p;
  3866. cc._RF.pop();
  3867. }, {} ],
  3868. BtnMoreGame: [ function(t, e, n) {
  3869. "use strict";
  3870. cc._RF.push(e, "9ab36AQuiJKw67bq+KV3Yrw", "BtnMoreGame");
  3871. var o, i = this && this.__extends || (o = function(t, e) {
  3872. return (o = Object.setPrototypeOf || {
  3873. __proto__: []
  3874. } instanceof Array && function(t, e) {
  3875. t.__proto__ = e;
  3876. } || function(t, e) {
  3877. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  3878. })(t, e);
  3879. }, function(t, e) {
  3880. o(t, e);
  3881. function n() {
  3882. this.constructor = t;
  3883. }
  3884. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  3885. }), a = this && this.__decorate || function(t, e, n, o) {
  3886. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  3887. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  3888. return a > 3 && r && Object.defineProperty(e, n, r), r;
  3889. };
  3890. Object.defineProperty(n, "__esModule", {
  3891. value: !0
  3892. });
  3893. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  3894. i(e, t);
  3895. function e() {
  3896. var e = null !== t && t.apply(this, arguments) || this;
  3897. e.sp_moregame = null;
  3898. e.lab_moregame = null;
  3899. return e;
  3900. }
  3901. e.prototype.update = function() {
  3902. gData.moreGame.init_moreGameList && this.setMoreGameSp(gData.moreGame.moreGameList.normal);
  3903. };
  3904. e.prototype.lateUpdate = function() {
  3905. gData.moreGame.init_moreGameList = !1;
  3906. };
  3907. e.prototype.setMoreGameSp = function(t) {
  3908. var e = this, n = t.length, o = mk.math.random(0, n - 1), i = t[o];
  3909. this.showMoreGameSp(i);
  3910. this.schedule(function() {
  3911. o++;
  3912. i = t[o %= n];
  3913. e.showMoreGameSp(i);
  3914. }, 10);
  3915. };
  3916. e.prototype.showMoreGameSp = function(t) {
  3917. var e = this;
  3918. cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(t.icon, function(t, n) {
  3919. if (t) console.log("err:", t); else if (e.sp_moregame) {
  3920. var o = n;
  3921. e.sp_moregame.spriteFrame = new cc.SpriteFrame(o);
  3922. }
  3923. });
  3924. this.lab_moregame.string = t.title;
  3925. };
  3926. a([ s(cc.Sprite) ], e.prototype, "sp_moregame", void 0);
  3927. a([ s(cc.Label) ], e.prototype, "lab_moregame", void 0);
  3928. return a([ c ], e);
  3929. }(cc.Component);
  3930. n.default = l;
  3931. cc._RF.pop();
  3932. }, {} ],
  3933. BtnOpenPanel: [ function(t, e, n) {
  3934. "use strict";
  3935. cc._RF.push(e, "b8d2cnq+GZLFK30xbLDqr/m", "BtnOpenPanel");
  3936. var o, i = this && this.__extends || (o = function(t, e) {
  3937. return (o = Object.setPrototypeOf || {
  3938. __proto__: []
  3939. } instanceof Array && function(t, e) {
  3940. t.__proto__ = e;
  3941. } || function(t, e) {
  3942. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  3943. })(t, e);
  3944. }, function(t, e) {
  3945. o(t, e);
  3946. function n() {
  3947. this.constructor = t;
  3948. }
  3949. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  3950. }), a = this && this.__decorate || function(t, e, n, o) {
  3951. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  3952. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  3953. return a > 3 && r && Object.defineProperty(e, n, r), r;
  3954. }, r = this && this.__awaiter || function(t, e, n, o) {
  3955. return new (n || (n = Promise))(function(i, a) {
  3956. function r(t) {
  3957. try {
  3958. s(o.next(t));
  3959. } catch (t) {
  3960. a(t);
  3961. }
  3962. }
  3963. function c(t) {
  3964. try {
  3965. s(o.throw(t));
  3966. } catch (t) {
  3967. a(t);
  3968. }
  3969. }
  3970. function s(t) {
  3971. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  3972. t(e);
  3973. })).then(r, c);
  3974. var e;
  3975. }
  3976. s((o = o.apply(t, e || [])).next());
  3977. });
  3978. }, c = this && this.__generator || function(t, e) {
  3979. var n, o, i, a, r = {
  3980. label: 0,
  3981. sent: function() {
  3982. if (1 & i[0]) throw i[1];
  3983. return i[1];
  3984. },
  3985. trys: [],
  3986. ops: []
  3987. };
  3988. return a = {
  3989. next: c(0),
  3990. throw: c(1),
  3991. return: c(2)
  3992. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  3993. return this;
  3994. }), a;
  3995. function c(t) {
  3996. return function(e) {
  3997. return s([ t, e ]);
  3998. };
  3999. }
  4000. function s(a) {
  4001. if (n) throw new TypeError("Generator is already executing.");
  4002. for (;r; ) try {
  4003. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  4004. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  4005. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  4006. switch (a[0]) {
  4007. case 0:
  4008. case 1:
  4009. i = a;
  4010. break;
  4011. case 4:
  4012. r.label++;
  4013. return {
  4014. value: a[1],
  4015. done: !1
  4016. };
  4017. case 5:
  4018. r.label++;
  4019. o = a[1];
  4020. a = [ 0 ];
  4021. continue;
  4022. case 7:
  4023. a = r.ops.pop();
  4024. r.trys.pop();
  4025. continue;
  4026. default:
  4027. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  4028. r = 0;
  4029. continue;
  4030. }
  4031. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  4032. r.label = a[1];
  4033. break;
  4034. }
  4035. if (6 === a[0] && r.label < i[1]) {
  4036. r.label = i[1];
  4037. i = a;
  4038. break;
  4039. }
  4040. if (i && r.label < i[2]) {
  4041. r.label = i[2];
  4042. r.ops.push(a);
  4043. break;
  4044. }
  4045. i[2] && r.ops.pop();
  4046. r.trys.pop();
  4047. continue;
  4048. }
  4049. a = e.call(t, r);
  4050. } catch (t) {
  4051. a = [ 6, t ];
  4052. o = 0;
  4053. } finally {
  4054. n = i = 0;
  4055. }
  4056. if (5 & a[0]) throw a[1];
  4057. return {
  4058. value: a[0] ? a[1] : void 0,
  4059. done: !0
  4060. };
  4061. }
  4062. };
  4063. Object.defineProperty(n, "__esModule", {
  4064. value: !0
  4065. });
  4066. var s = cc._decorator, l = s.ccclass, u = s.property, p = t("../../mk/system/JsbSystem"), d = t("../../mk/system/UISystem"), h = function(t) {
  4067. i(e, t);
  4068. function e() {
  4069. var e = null !== t && t.apply(this, arguments) || this;
  4070. e.panel_name = "";
  4071. e.bool_Auth = !1;
  4072. e.open_type = d.OpenActionType.normal;
  4073. e.transition_type = cc.Button.Transition.NONE;
  4074. e.onComplete = [];
  4075. return e;
  4076. }
  4077. e.prototype.onLoad = function() {
  4078. this.node.getComponent(cc.Button) || (this.node.addComponent(cc.Button).transition = this.transition_type);
  4079. };
  4080. e.prototype.start = function() {
  4081. this.node.on("click", this.openPanel, this);
  4082. };
  4083. e.prototype.openPanel = function() {
  4084. return r(this, void 0, void 0, function() {
  4085. var t, e;
  4086. return c(this, function(n) {
  4087. switch (n.label) {
  4088. case 0:
  4089. if (!mk.game.checkContinuousClick(this.node)) return [ 2 ];
  4090. mk.audio.playEffect("button");
  4091. if (this.bool_Auth && !gData.loginData.isAuth) {
  4092. p.default.WxAuth();
  4093. return [ 2 ];
  4094. }
  4095. return this.panel_name ? [ 4, mk.ui.openPanel(this.panel_name, this.open_type) ] : [ 2 ];
  4096. case 1:
  4097. n.sent();
  4098. t = this.onComplete.length;
  4099. for (e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
  4100. mk.console.log("open->" + this.panel_name);
  4101. return [ 2 ];
  4102. }
  4103. });
  4104. });
  4105. };
  4106. a([ u({
  4107. displayName: "预制体路径",
  4108. tooltip: "对应路径:resources/"
  4109. }) ], e.prototype, "panel_name", void 0);
  4110. a([ u({
  4111. displayName: "是否需要微信授权",
  4112. tooltip: "授权勾选"
  4113. }) ], e.prototype, "bool_Auth", void 0);
  4114. a([ u({
  4115. displayName: "打开类型",
  4116. tooltip: "normal不操作,closeOther关闭其他,closeLast关闭上一个",
  4117. type: cc.Enum(d.OpenActionType)
  4118. }) ], e.prototype, "open_type", void 0);
  4119. a([ u({
  4120. displayName: "点击效果",
  4121. tooltip: "仅支持 NONE 和 SCALE",
  4122. type: cc.Enum(cc.Button.Transition)
  4123. }) ], e.prototype, "transition_type", void 0);
  4124. a([ u({
  4125. displayName: "完成回调",
  4126. tooltip: "面板打开完成后触发",
  4127. type: cc.Component.EventHandler
  4128. }) ], e.prototype, "onComplete", void 0);
  4129. return a([ l ], e);
  4130. }(cc.Component);
  4131. n.default = h;
  4132. cc._RF.pop();
  4133. }, {
  4134. "../../mk/system/JsbSystem": "JsbSystem",
  4135. "../../mk/system/UISystem": "UISystem"
  4136. } ],
  4137. BuglySDK: [ function(t, e, n) {
  4138. "use strict";
  4139. cc._RF.push(e, "5e14aAR8aVDF4pkk/9JmRhW", "BuglySDK");
  4140. Object.defineProperty(n, "__esModule", {
  4141. value: !0
  4142. });
  4143. var o = function() {
  4144. function t() {
  4145. this.initELKHandler();
  4146. }
  4147. t.prototype.initBugly = function() {};
  4148. t.prototype.initELKHandler = function() {
  4149. if (cc.sys.isNative) {
  4150. var e;
  4151. window.__errorHandler && (e = window.__errorHandler);
  4152. window.__errorHandler = function() {
  4153. for (var n = [], o = 0; o < arguments.length; o++) n[o] = arguments[o];
  4154. console.log("游戏报错,原生系统");
  4155. t.handleError.apply(t, n);
  4156. e && e.apply(void 0, n);
  4157. };
  4158. }
  4159. };
  4160. t.handleError = function() {
  4161. for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
  4162. for (var o = "", i = 0; i < e.length; i++) if ("string" == typeof e[i] && e[i].length > 20) o += e[i] + "\n"; else if (e[i] instanceof Array) for (var a = 0; a < e[i].length; a++) o += e[i][a];
  4163. -1 != o.indexOf("TypeError") && (o = o.slice(o.indexOf("TypeError") + "TypeError".length + 2));
  4164. for (var r = [ 0, "", "", "", "[]@" ], c = r[0], s = r[1], l = r[2], u = r[3], p = r[4]; c < o.length; ) {
  4165. u = o.charAt(c);
  4166. if (-1 != p.indexOf(u)) {
  4167. if ("" == s) s = u; else if ("[" == s && "]" == u || "@" == s && "]" == u) {
  4168. s = "";
  4169. l += " | ";
  4170. }
  4171. } else "" == s && (l += u);
  4172. c++;
  4173. }
  4174. l.length > 120 && (l = l.slice(0, 120));
  4175. var d = new Date().getTime();
  4176. if (!(-1 != t.lastSendErrors.indexOf(l) && d - t.lastSendErrorTime < 3e4)) {
  4177. t.lastSendErrors.push(l);
  4178. t.lastSendErrorTime = d;
  4179. t.lastSendErrors.length > 5 && (t.lastSendErrors = t.lastSendErrors.slice(t.lastSendErrors.length - 5));
  4180. var h = gData.httpData.serverType + ":" + gData.loginData.uin, f = {
  4181. level: "error",
  4182. game: gData.appData.appNameBugly + ":" + h,
  4183. message: l
  4184. }, y = new XMLHttpRequest();
  4185. y.responseType = "text";
  4186. var g = "https://elktest.duiweize.com/api/logs/record";
  4187. y.open("POST", g);
  4188. y.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
  4189. y.onerror = function(t) {
  4190. console.log("handleError.onError:", t);
  4191. };
  4192. var m = JSON.stringify(f);
  4193. m = mk.encrypt.rsaEncrypt(m);
  4194. y.send(m);
  4195. }
  4196. };
  4197. t.lastSendErrorTime = new Date().getTime();
  4198. t.lastSendErrors = [];
  4199. return t;
  4200. }();
  4201. n.default = o;
  4202. cc._RF.pop();
  4203. }, {} ],
  4204. Button: [ function(t, e, n) {
  4205. "use strict";
  4206. cc._RF.push(e, "c7d0chvBRhPlY0rJFlDFnON", "Button");
  4207. var o, i = this && this.__extends || (o = function(t, e) {
  4208. return (o = Object.setPrototypeOf || {
  4209. __proto__: []
  4210. } instanceof Array && function(t, e) {
  4211. t.__proto__ = e;
  4212. } || function(t, e) {
  4213. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  4214. })(t, e);
  4215. }, function(t, e) {
  4216. o(t, e);
  4217. function n() {
  4218. this.constructor = t;
  4219. }
  4220. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  4221. }), a = this && this.__decorate || function(t, e, n, o) {
  4222. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  4223. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  4224. return a > 3 && r && Object.defineProperty(e, n, r), r;
  4225. };
  4226. Object.defineProperty(n, "__esModule", {
  4227. value: !0
  4228. });
  4229. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  4230. i(e, t);
  4231. function e() {
  4232. var e = null !== t && t.apply(this, arguments) || this;
  4233. e.node_normal = null;
  4234. e.node_pressed = null;
  4235. e.node_disabled = null;
  4236. e.onClick = [];
  4237. return e;
  4238. }
  4239. e.prototype.onLoad = function() {
  4240. this.touchEnd();
  4241. };
  4242. e.prototype.start = function() {
  4243. this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
  4244. this.node.on(cc.Node.EventType.TOUCH_START, this.touchStart, this);
  4245. this.node.on(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
  4246. this.node.on("click", this.click, this);
  4247. };
  4248. e.prototype.touchStart = function() {
  4249. this.node_normal && (this.node_normal.active = !1);
  4250. this.node_pressed && (this.node_pressed.active = !0);
  4251. this.node_disabled && (this.node_disabled.active = !1);
  4252. };
  4253. e.prototype.touchEnd = function() {
  4254. this.node_normal && (this.node_normal.active = !0);
  4255. this.node_pressed && (this.node_pressed.active = !1);
  4256. this.node_disabled && (this.node_disabled.active = !1);
  4257. };
  4258. e.prototype.click = function() {
  4259. mk.audio.playEffect("button");
  4260. for (var t = this.onClick.length, e = 0; e < t; e++) this.onClick[e].handler && this.onClick[e].emit([]);
  4261. };
  4262. e.prototype.onDestroy = function() {
  4263. this.node.off(cc.Node.EventType.TOUCH_START, this.touchStart, this);
  4264. this.node.off(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
  4265. this.node.off("click", this.click, this);
  4266. this.onClick = [];
  4267. };
  4268. a([ s({
  4269. type: cc.Node,
  4270. displayName: "正常"
  4271. }) ], e.prototype, "node_normal", void 0);
  4272. a([ s({
  4273. type: cc.Node,
  4274. displayName: "按下"
  4275. }) ], e.prototype, "node_pressed", void 0);
  4276. a([ s({
  4277. type: cc.Node,
  4278. displayName: "禁用"
  4279. }) ], e.prototype, "node_disabled", void 0);
  4280. a([ s({
  4281. displayName: "点击函数",
  4282. type: cc.Component.EventHandler
  4283. }) ], e.prototype, "onClick", void 0);
  4284. return a([ c ], e);
  4285. }(cc.Component);
  4286. n.default = l;
  4287. cc._RF.pop();
  4288. }, {} ],
  4289. CashNormalData: [ function(t, e, n) {
  4290. "use strict";
  4291. cc._RF.push(e, "64bb4P2NvJGZqPbCEhv7Ir/", "CashNormalData");
  4292. var o, i = this && this.__extends || (o = function(t, e) {
  4293. return (o = Object.setPrototypeOf || {
  4294. __proto__: []
  4295. } instanceof Array && function(t, e) {
  4296. t.__proto__ = e;
  4297. } || function(t, e) {
  4298. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  4299. })(t, e);
  4300. }, function(t, e) {
  4301. o(t, e);
  4302. function n() {
  4303. this.constructor = t;
  4304. }
  4305. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  4306. }), a = this && this.__awaiter || function(t, e, n, o) {
  4307. return new (n || (n = Promise))(function(i, a) {
  4308. function r(t) {
  4309. try {
  4310. s(o.next(t));
  4311. } catch (t) {
  4312. a(t);
  4313. }
  4314. }
  4315. function c(t) {
  4316. try {
  4317. s(o.throw(t));
  4318. } catch (t) {
  4319. a(t);
  4320. }
  4321. }
  4322. function s(t) {
  4323. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  4324. t(e);
  4325. })).then(r, c);
  4326. var e;
  4327. }
  4328. s((o = o.apply(t, e || [])).next());
  4329. });
  4330. }, r = this && this.__generator || function(t, e) {
  4331. var n, o, i, a, r = {
  4332. label: 0,
  4333. sent: function() {
  4334. if (1 & i[0]) throw i[1];
  4335. return i[1];
  4336. },
  4337. trys: [],
  4338. ops: []
  4339. };
  4340. return a = {
  4341. next: c(0),
  4342. throw: c(1),
  4343. return: c(2)
  4344. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  4345. return this;
  4346. }), a;
  4347. function c(t) {
  4348. return function(e) {
  4349. return s([ t, e ]);
  4350. };
  4351. }
  4352. function s(a) {
  4353. if (n) throw new TypeError("Generator is already executing.");
  4354. for (;r; ) try {
  4355. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  4356. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  4357. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  4358. switch (a[0]) {
  4359. case 0:
  4360. case 1:
  4361. i = a;
  4362. break;
  4363. case 4:
  4364. r.label++;
  4365. return {
  4366. value: a[1],
  4367. done: !1
  4368. };
  4369. case 5:
  4370. r.label++;
  4371. o = a[1];
  4372. a = [ 0 ];
  4373. continue;
  4374. case 7:
  4375. a = r.ops.pop();
  4376. r.trys.pop();
  4377. continue;
  4378. default:
  4379. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  4380. r = 0;
  4381. continue;
  4382. }
  4383. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  4384. r.label = a[1];
  4385. break;
  4386. }
  4387. if (6 === a[0] && r.label < i[1]) {
  4388. r.label = i[1];
  4389. i = a;
  4390. break;
  4391. }
  4392. if (i && r.label < i[2]) {
  4393. r.label = i[2];
  4394. r.ops.push(a);
  4395. break;
  4396. }
  4397. i[2] && r.ops.pop();
  4398. r.trys.pop();
  4399. continue;
  4400. }
  4401. a = e.call(t, r);
  4402. } catch (t) {
  4403. a = [ 6, t ];
  4404. o = 0;
  4405. } finally {
  4406. n = i = 0;
  4407. }
  4408. if (5 & a[0]) throw a[1];
  4409. return {
  4410. value: a[0] ? a[1] : void 0,
  4411. done: !0
  4412. };
  4413. }
  4414. };
  4415. Object.defineProperty(n, "__esModule", {
  4416. value: !0
  4417. });
  4418. n.CashNormalData = void 0;
  4419. var c = function(t) {
  4420. i(e, t);
  4421. function e() {
  4422. var e = null !== t && t.apply(this, arguments) || this;
  4423. e.list_data = [];
  4424. e.update_list = !1;
  4425. e.init_rmb_style = !0;
  4426. e._receip_total_rmb = 0;
  4427. e.cash_type = {
  4428. 1: "红包提现",
  4429. 2: "每日提现",
  4430. 3: "夺宝提现",
  4431. 4: "富翁银行提现",
  4432. 5: "裂变任务提现",
  4433. 6: "裂变每日提现",
  4434. 7: "裂变累计提现",
  4435. 8: "彩蛋任务提现",
  4436. 9: "常规彩蛋任务提现",
  4437. 10: "福袋提现",
  4438. 11: "大额福袋",
  4439. 12: "存钱罐提现",
  4440. 13: "签到提现"
  4441. };
  4442. return e;
  4443. }
  4444. e.prototype.init = function() {
  4445. this.getRecord();
  4446. };
  4447. e.prototype.getRecord = function() {
  4448. return a(this, void 0, void 0, function() {
  4449. var t;
  4450. return r(this, function(e) {
  4451. switch (e.label) {
  4452. case 0:
  4453. return [ 4, mk.http.sendData("getCashRecord", {}) ];
  4454. case 1:
  4455. if (0 != (t = e.sent()).errcode) return [ 2 ];
  4456. console.log(t.data);
  4457. if (t.data) {
  4458. t.data.forEach(function(t) {
  4459. for (var e in t) "withdrawalCode" != e && (t[e] = parseInt(t[e]));
  4460. });
  4461. this.list_data = t.data;
  4462. this.initReceipTotalRMB();
  4463. this.update_list = !0;
  4464. }
  4465. return [ 2 ];
  4466. }
  4467. });
  4468. });
  4469. };
  4470. Object.defineProperty(e.prototype, "receip_total_rmb", {
  4471. get: function() {
  4472. return this._receip_total_rmb;
  4473. },
  4474. set: function(t) {
  4475. this._receip_total_rmb = t;
  4476. this.init_rmb_style = !0;
  4477. },
  4478. enumerable: !1,
  4479. configurable: !0
  4480. });
  4481. e.prototype.initReceipTotalRMB = function() {
  4482. for (var t = 0, e = this.list_data.length, n = 0; n < e; n++) t += this.list_data[n].amount;
  4483. this.receip_total_rmb = t;
  4484. };
  4485. e.prototype.initTestData = function() {
  4486. for (var t = 0; t < 30; t++) {
  4487. var e = {
  4488. cashType: mk.math.random(1, 10),
  4489. applyTime: 1623399160,
  4490. amount: 10 * t,
  4491. remain: 1e3 * t,
  4492. CashMode: t % 2,
  4493. withdrawalCode: "AABBC" + t
  4494. };
  4495. this.list_data.push(e);
  4496. }
  4497. };
  4498. e.prototype.getListDataHavCode = function() {
  4499. for (var t = [], e = this.list_data.length, n = 0; n < e; n++) this.list_data[n].withdrawalCode && t.push(this.list_data[n]);
  4500. return t;
  4501. };
  4502. return e;
  4503. }(t("../../../mk/data/Data").Data);
  4504. n.CashNormalData = c;
  4505. cc._RF.pop();
  4506. }, {
  4507. "../../../mk/data/Data": "Data"
  4508. } ],
  4509. CashNormalItem: [ function(t, e, n) {
  4510. "use strict";
  4511. cc._RF.push(e, "32077nk5NlGLqPEuyJfau+t", "CashNormalItem");
  4512. var o, i = this && this.__extends || (o = function(t, e) {
  4513. return (o = Object.setPrototypeOf || {
  4514. __proto__: []
  4515. } instanceof Array && function(t, e) {
  4516. t.__proto__ = e;
  4517. } || function(t, e) {
  4518. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  4519. })(t, e);
  4520. }, function(t, e) {
  4521. o(t, e);
  4522. function n() {
  4523. this.constructor = t;
  4524. }
  4525. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  4526. }), a = this && this.__decorate || function(t, e, n, o) {
  4527. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  4528. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  4529. return a > 3 && r && Object.defineProperty(e, n, r), r;
  4530. }, r = this && this.__awaiter || function(t, e, n, o) {
  4531. return new (n || (n = Promise))(function(i, a) {
  4532. function r(t) {
  4533. try {
  4534. s(o.next(t));
  4535. } catch (t) {
  4536. a(t);
  4537. }
  4538. }
  4539. function c(t) {
  4540. try {
  4541. s(o.throw(t));
  4542. } catch (t) {
  4543. a(t);
  4544. }
  4545. }
  4546. function s(t) {
  4547. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  4548. t(e);
  4549. })).then(r, c);
  4550. var e;
  4551. }
  4552. s((o = o.apply(t, e || [])).next());
  4553. });
  4554. }, c = this && this.__generator || function(t, e) {
  4555. var n, o, i, a, r = {
  4556. label: 0,
  4557. sent: function() {
  4558. if (1 & i[0]) throw i[1];
  4559. return i[1];
  4560. },
  4561. trys: [],
  4562. ops: []
  4563. };
  4564. return a = {
  4565. next: c(0),
  4566. throw: c(1),
  4567. return: c(2)
  4568. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  4569. return this;
  4570. }), a;
  4571. function c(t) {
  4572. return function(e) {
  4573. return s([ t, e ]);
  4574. };
  4575. }
  4576. function s(a) {
  4577. if (n) throw new TypeError("Generator is already executing.");
  4578. for (;r; ) try {
  4579. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  4580. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  4581. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  4582. switch (a[0]) {
  4583. case 0:
  4584. case 1:
  4585. i = a;
  4586. break;
  4587. case 4:
  4588. r.label++;
  4589. return {
  4590. value: a[1],
  4591. done: !1
  4592. };
  4593. case 5:
  4594. r.label++;
  4595. o = a[1];
  4596. a = [ 0 ];
  4597. continue;
  4598. case 7:
  4599. a = r.ops.pop();
  4600. r.trys.pop();
  4601. continue;
  4602. default:
  4603. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  4604. r = 0;
  4605. continue;
  4606. }
  4607. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  4608. r.label = a[1];
  4609. break;
  4610. }
  4611. if (6 === a[0] && r.label < i[1]) {
  4612. r.label = i[1];
  4613. i = a;
  4614. break;
  4615. }
  4616. if (i && r.label < i[2]) {
  4617. r.label = i[2];
  4618. r.ops.push(a);
  4619. break;
  4620. }
  4621. i[2] && r.ops.pop();
  4622. r.trys.pop();
  4623. continue;
  4624. }
  4625. a = e.call(t, r);
  4626. } catch (t) {
  4627. a = [ 6, t ];
  4628. o = 0;
  4629. } finally {
  4630. n = i = 0;
  4631. }
  4632. if (5 & a[0]) throw a[1];
  4633. return {
  4634. value: a[0] ? a[1] : void 0,
  4635. done: !0
  4636. };
  4637. }
  4638. };
  4639. Object.defineProperty(n, "__esModule", {
  4640. value: !0
  4641. });
  4642. var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  4643. i(e, t);
  4644. function e() {
  4645. var e = null !== t && t.apply(this, arguments) || this;
  4646. e.lbl_cash_type = null;
  4647. e.lbl_cash_time = null;
  4648. e.lbl_red_ma = null;
  4649. e.lbl_rmb_value = null;
  4650. return e;
  4651. }
  4652. e.prototype.setItemData = function(t) {
  4653. return r(this, void 0, void 0, function() {
  4654. return c(this, function(e) {
  4655. switch (e.label) {
  4656. case 0:
  4657. return [ 4, this.initStyle(t) ];
  4658. case 1:
  4659. e.sent();
  4660. return [ 2 ];
  4661. }
  4662. });
  4663. });
  4664. };
  4665. e.prototype.initStyle = function(t) {
  4666. this.lbl_cash_type.string = gData.cashNormal.cash_type[t.cashType] || "未知类型";
  4667. this.lbl_cash_time.string = mk.time.getNowDayString(1e3 * t.applyTime);
  4668. this.lbl_red_ma.string = t.withdrawalCode ? "红包码:" + t.withdrawalCode : "";
  4669. this.lbl_rmb_value.string = "¥" + (t.amount / 100).toFixed(2) + "元";
  4670. };
  4671. a([ u({
  4672. displayName: "lbl提现类型",
  4673. type: cc.Label
  4674. }) ], e.prototype, "lbl_cash_type", void 0);
  4675. a([ u({
  4676. displayName: "lbl提现时间",
  4677. type: cc.Label
  4678. }) ], e.prototype, "lbl_cash_time", void 0);
  4679. a([ u({
  4680. displayName: "lbl红包码",
  4681. type: cc.Label
  4682. }) ], e.prototype, "lbl_red_ma", void 0);
  4683. a([ u({
  4684. displayName: "lbl毛币数量",
  4685. type: cc.Label
  4686. }) ], e.prototype, "lbl_rmb_value", void 0);
  4687. return a([ l ], e);
  4688. }(cc.Component);
  4689. n.default = p;
  4690. cc._RF.pop();
  4691. }, {} ],
  4692. CashNormal: [ function(t, e, n) {
  4693. "use strict";
  4694. cc._RF.push(e, "94e2ahhWT5CDo8XnPR+e9Lu", "CashNormal");
  4695. var o, i = this && this.__extends || (o = function(t, e) {
  4696. return (o = Object.setPrototypeOf || {
  4697. __proto__: []
  4698. } instanceof Array && function(t, e) {
  4699. t.__proto__ = e;
  4700. } || function(t, e) {
  4701. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  4702. })(t, e);
  4703. }, function(t, e) {
  4704. o(t, e);
  4705. function n() {
  4706. this.constructor = t;
  4707. }
  4708. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  4709. }), a = this && this.__decorate || function(t, e, n, o) {
  4710. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  4711. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  4712. return a > 3 && r && Object.defineProperty(e, n, r), r;
  4713. };
  4714. Object.defineProperty(n, "__esModule", {
  4715. value: !0
  4716. });
  4717. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  4718. i(e, t);
  4719. function e() {
  4720. var e = null !== t && t.apply(this, arguments) || this;
  4721. e.scroll_view = null;
  4722. e.lbl_rmb_total = null;
  4723. e.lbl_none = null;
  4724. return e;
  4725. }
  4726. e.prototype.start = function() {
  4727. gData.cashNormal.getRecord();
  4728. this.initTotal();
  4729. };
  4730. e.prototype.initScrollView = function() {
  4731. this.scroll_view.node.emit("srollview-init", gData.cashNormal.list_data);
  4732. };
  4733. e.prototype.initTotal = function() {
  4734. this.lbl_rmb_total.string = "¥" + (gData.cashNormal.receip_total_rmb / 100).toFixed(2) + "元";
  4735. };
  4736. e.prototype.initNoneItem = function() {
  4737. var t = gData.cashNormal.list_data.length;
  4738. this.lbl_none.node.active = !t;
  4739. };
  4740. e.prototype.update = function() {
  4741. if (gData.cashNormal.update_list) {
  4742. this.initScrollView();
  4743. this.initNoneItem();
  4744. gData.cashNormal.update_list = !1;
  4745. }
  4746. };
  4747. a([ s({
  4748. displayName: "滚动视图",
  4749. type: cc.ScrollView
  4750. }) ], e.prototype, "scroll_view", void 0);
  4751. a([ s({
  4752. displayName: "lbl累计提现",
  4753. type: cc.Label
  4754. }) ], e.prototype, "lbl_rmb_total", void 0);
  4755. a([ s({
  4756. displayName: "lbl暂无提现",
  4757. type: cc.Label
  4758. }) ], e.prototype, "lbl_none", void 0);
  4759. return a([ c ], e);
  4760. }(cc.Component);
  4761. n.default = l;
  4762. cc._RF.pop();
  4763. }, {} ],
  4764. CashPigData: [ function(t, e, n) {
  4765. "use strict";
  4766. cc._RF.push(e, "6dd05FLpy1EvLk2V3PwPYId", "CashPigData");
  4767. var o, i = this && this.__extends || (o = function(t, e) {
  4768. return (o = Object.setPrototypeOf || {
  4769. __proto__: []
  4770. } instanceof Array && function(t, e) {
  4771. t.__proto__ = e;
  4772. } || function(t, e) {
  4773. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  4774. })(t, e);
  4775. }, function(t, e) {
  4776. o(t, e);
  4777. function n() {
  4778. this.constructor = t;
  4779. }
  4780. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  4781. });
  4782. Object.defineProperty(n, "__esModule", {
  4783. value: !0
  4784. });
  4785. n.CashPigData = void 0;
  4786. var a = function(t) {
  4787. i(e, t);
  4788. function e() {
  4789. return null !== t && t.apply(this, arguments) || this;
  4790. }
  4791. return e;
  4792. }(t("../../../mk/data/Data").Data);
  4793. n.CashPigData = a;
  4794. cc._RF.pop();
  4795. }, {
  4796. "../../../mk/data/Data": "Data"
  4797. } ],
  4798. CashProData: [ function(t, e, n) {
  4799. "use strict";
  4800. cc._RF.push(e, "592b3w/pF1M+K/8UI878v9k", "CashProData");
  4801. var o, i = this && this.__extends || (o = function(t, e) {
  4802. return (o = Object.setPrototypeOf || {
  4803. __proto__: []
  4804. } instanceof Array && function(t, e) {
  4805. t.__proto__ = e;
  4806. } || function(t, e) {
  4807. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  4808. })(t, e);
  4809. }, function(t, e) {
  4810. o(t, e);
  4811. function n() {
  4812. this.constructor = t;
  4813. }
  4814. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  4815. }), a = this && this.__awaiter || function(t, e, n, o) {
  4816. return new (n || (n = Promise))(function(i, a) {
  4817. function r(t) {
  4818. try {
  4819. s(o.next(t));
  4820. } catch (t) {
  4821. a(t);
  4822. }
  4823. }
  4824. function c(t) {
  4825. try {
  4826. s(o.throw(t));
  4827. } catch (t) {
  4828. a(t);
  4829. }
  4830. }
  4831. function s(t) {
  4832. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  4833. t(e);
  4834. })).then(r, c);
  4835. var e;
  4836. }
  4837. s((o = o.apply(t, e || [])).next());
  4838. });
  4839. }, r = this && this.__generator || function(t, e) {
  4840. var n, o, i, a, r = {
  4841. label: 0,
  4842. sent: function() {
  4843. if (1 & i[0]) throw i[1];
  4844. return i[1];
  4845. },
  4846. trys: [],
  4847. ops: []
  4848. };
  4849. return a = {
  4850. next: c(0),
  4851. throw: c(1),
  4852. return: c(2)
  4853. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  4854. return this;
  4855. }), a;
  4856. function c(t) {
  4857. return function(e) {
  4858. return s([ t, e ]);
  4859. };
  4860. }
  4861. function s(a) {
  4862. if (n) throw new TypeError("Generator is already executing.");
  4863. for (;r; ) try {
  4864. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  4865. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  4866. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  4867. switch (a[0]) {
  4868. case 0:
  4869. case 1:
  4870. i = a;
  4871. break;
  4872. case 4:
  4873. r.label++;
  4874. return {
  4875. value: a[1],
  4876. done: !1
  4877. };
  4878. case 5:
  4879. r.label++;
  4880. o = a[1];
  4881. a = [ 0 ];
  4882. continue;
  4883. case 7:
  4884. a = r.ops.pop();
  4885. r.trys.pop();
  4886. continue;
  4887. default:
  4888. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  4889. r = 0;
  4890. continue;
  4891. }
  4892. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  4893. r.label = a[1];
  4894. break;
  4895. }
  4896. if (6 === a[0] && r.label < i[1]) {
  4897. r.label = i[1];
  4898. i = a;
  4899. break;
  4900. }
  4901. if (i && r.label < i[2]) {
  4902. r.label = i[2];
  4903. r.ops.push(a);
  4904. break;
  4905. }
  4906. i[2] && r.ops.pop();
  4907. r.trys.pop();
  4908. continue;
  4909. }
  4910. a = e.call(t, r);
  4911. } catch (t) {
  4912. a = [ 6, t ];
  4913. o = 0;
  4914. } finally {
  4915. n = i = 0;
  4916. }
  4917. if (5 & a[0]) throw a[1];
  4918. return {
  4919. value: a[0] ? a[1] : void 0,
  4920. done: !0
  4921. };
  4922. }
  4923. };
  4924. Object.defineProperty(n, "__esModule", {
  4925. value: !0
  4926. });
  4927. n.cashProType = void 0;
  4928. var c, s = t("../../../mk/data/Data"), l = t("../GameData"), u = function(t) {
  4929. i(e, t);
  4930. function e() {
  4931. var e = null !== t && t.apply(this, arguments) || this;
  4932. e.init_data = !1;
  4933. e.cashPro_money = 0;
  4934. e.init_success = !1;
  4935. e.init_fail = !1;
  4936. return e;
  4937. }
  4938. e.prototype.openCashPro = function(t, e) {
  4939. this.cashPro_type = t;
  4940. this.cashPro_money = e;
  4941. this.init_data = !0;
  4942. mk.ui.openPanel("module/cashPro/cashPro");
  4943. };
  4944. e.prototype.onCash = function() {
  4945. return a(this, void 0, void 0, function() {
  4946. var t;
  4947. return r(this, function(e) {
  4948. switch (e.label) {
  4949. case 0:
  4950. t = null;
  4951. switch (this.cashPro_type) {
  4952. case c.blessing_bigCash:
  4953. return [ 3, 1 ];
  4954. case c.blessing_taskCash:
  4955. return [ 3, 3 ];
  4956. }
  4957. return [ 3, 5 ];
  4958. case 1:
  4959. return [ 4, gData.blessingBag.HttpCashBig() ];
  4960. case 2:
  4961. if ((t = e.sent()) && 1 == t.data.code) {
  4962. gData.cashPro.init_success = !0;
  4963. mk.data.sendDataEvent(l.DataEventId.fudaiFunction, "视频红包大额提现第" + gData.blessingBag.taskRbId + "档领取成功");
  4964. } else gData.cashPro.init_fail = !0;
  4965. return [ 3, 5 ];
  4966. case 3:
  4967. return [ 4, gData.blessingBag.HttpCashTask() ];
  4968. case 4:
  4969. if ((t = e.sent()) && 1 == t.data.code) {
  4970. gData.cashPro.init_success = !0;
  4971. mk.data.sendDataEvent(l.DataEventId.fudaiFunction, "视频红包第" + gData.blessingBag.taskRbId + "档领取成功");
  4972. } else gData.cashPro.init_fail = !0;
  4973. return [ 3, 5 ];
  4974. case 5:
  4975. gData.cashNormal.getRecord();
  4976. return [ 2 ];
  4977. }
  4978. });
  4979. });
  4980. };
  4981. return e;
  4982. }(s.Data);
  4983. n.default = u;
  4984. (function(t) {
  4985. t[t.blessing_bigCash = 0] = "blessing_bigCash";
  4986. t[t.blessing_taskCash = 1] = "blessing_taskCash";
  4987. })(c = n.cashProType || (n.cashProType = {}));
  4988. cc._RF.pop();
  4989. }, {
  4990. "../../../mk/data/Data": "Data",
  4991. "../GameData": "GameData"
  4992. } ],
  4993. CashPro: [ function(t, e, n) {
  4994. "use strict";
  4995. cc._RF.push(e, "7c96b8wPgBPeLS+KI5YpgFP", "CashPro");
  4996. var o, i = this && this.__extends || (o = function(t, e) {
  4997. return (o = Object.setPrototypeOf || {
  4998. __proto__: []
  4999. } instanceof Array && function(t, e) {
  5000. t.__proto__ = e;
  5001. } || function(t, e) {
  5002. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  5003. })(t, e);
  5004. }, function(t, e) {
  5005. o(t, e);
  5006. function n() {
  5007. this.constructor = t;
  5008. }
  5009. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  5010. }), a = this && this.__decorate || function(t, e, n, o) {
  5011. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  5012. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  5013. return a > 3 && r && Object.defineProperty(e, n, r), r;
  5014. };
  5015. Object.defineProperty(n, "__esModule", {
  5016. value: !0
  5017. });
  5018. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  5019. i(e, t);
  5020. function e() {
  5021. var e = null !== t && t.apply(this, arguments) || this;
  5022. e.loadPart = null;
  5023. e.loadAni = null;
  5024. e.moneyPart = null;
  5025. e.labRedMoney = null;
  5026. e.btnTixian = null;
  5027. e.btnAuth = null;
  5028. e.cashPro = null;
  5029. e.labMoney = null;
  5030. e.money = 0;
  5031. e.hasTap = !1;
  5032. return e;
  5033. }
  5034. e.prototype.update = function() {
  5035. gData.cashPro.init_data && this.init(gData.cashPro.cashPro_money);
  5036. gData.cashPro.init_success && this.tixianSuccess();
  5037. gData.cashPro.init_fail && this.tixianFail();
  5038. };
  5039. e.prototype.lateUpdate = function() {
  5040. gData.cashPro.init_data = !1;
  5041. gData.cashPro.init_success = !1;
  5042. gData.cashPro.init_fail = !1;
  5043. };
  5044. e.prototype.init = function(t) {
  5045. this.money = t;
  5046. this.loadPart.active = !1;
  5047. this.cashPro.active = !1;
  5048. if (gData.loginData.isAuth) {
  5049. this.btnAuth.active = !1;
  5050. this.btnTixian.active = !0;
  5051. } else {
  5052. this.btnAuth.active = !0;
  5053. this.btnTixian.active = !1;
  5054. }
  5055. };
  5056. e.prototype.showLoad = function() {
  5057. this.loadPart.active = !0;
  5058. this.loadAni.play("load", 0);
  5059. };
  5060. e.prototype.tixianSuccess = function() {
  5061. this.loadPart.active = !1;
  5062. this.showCashPro();
  5063. };
  5064. e.prototype.showCashPro = function() {
  5065. this.cashPro.active = !0;
  5066. mk.tween.move(this.cashPro, .3, cc.v2(1e3, 0), cc.v2(0, 0), null, "elasticIn");
  5067. this.labMoney.string = "¥" + this.money;
  5068. };
  5069. e.prototype.tixianFail = function() {
  5070. console.log("tixianFail ");
  5071. this.loadPart.active = !1;
  5072. mk.tip.pop("提现排队中,多看视频优先提现");
  5073. mk.ui.closePanel(this.node.name);
  5074. };
  5075. e.prototype.authBack = function() {
  5076. this.btnAuth.active = !1;
  5077. this.btnTixian.active = !0;
  5078. };
  5079. e.prototype.clickCash = function() {
  5080. mk.audio.playEffect("button");
  5081. this.showLoad();
  5082. gData.cashPro.onCash();
  5083. };
  5084. e.prototype.clickAuth = function() {
  5085. var t = this;
  5086. mk.audio.playEffect("button");
  5087. if (!this.hasTap) {
  5088. this.hasTap = !0;
  5089. this.scheduleOnce(function() {
  5090. t.hasTap = !1;
  5091. }, 3);
  5092. }
  5093. };
  5094. a([ s(cc.Node) ], e.prototype, "loadPart", void 0);
  5095. a([ s(cc.Animation) ], e.prototype, "loadAni", void 0);
  5096. a([ s(cc.Node) ], e.prototype, "moneyPart", void 0);
  5097. a([ s(cc.Label) ], e.prototype, "labRedMoney", void 0);
  5098. a([ s(cc.Node) ], e.prototype, "btnTixian", void 0);
  5099. a([ s(cc.Node) ], e.prototype, "btnAuth", void 0);
  5100. a([ s(cc.Node) ], e.prototype, "cashPro", void 0);
  5101. a([ s(cc.Label) ], e.prototype, "labMoney", void 0);
  5102. return a([ c ], e);
  5103. }(cc.Component);
  5104. n.default = l;
  5105. cc._RF.pop();
  5106. }, {} ],
  5107. CellItem: [ function(t, e, n) {
  5108. "use strict";
  5109. cc._RF.push(e, "0eddale281LjITR1VBVSkdJ", "CellItem");
  5110. var o, i = this && this.__extends || (o = function(t, e) {
  5111. return (o = Object.setPrototypeOf || {
  5112. __proto__: []
  5113. } instanceof Array && function(t, e) {
  5114. t.__proto__ = e;
  5115. } || function(t, e) {
  5116. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  5117. })(t, e);
  5118. }, function(t, e) {
  5119. o(t, e);
  5120. function n() {
  5121. this.constructor = t;
  5122. }
  5123. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  5124. }), a = this && this.__decorate || function(t, e, n, o) {
  5125. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  5126. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  5127. return a > 3 && r && Object.defineProperty(e, n, r), r;
  5128. };
  5129. Object.defineProperty(n, "__esModule", {
  5130. value: !0
  5131. });
  5132. var r = t("../../GamePlay"), c = t("../../data/Enum"), s = t("../../util/GameLogic"), l = t("../../mgr/PoolMgr"), u = t("../../data/GameConst"), p = t("../../util/common/AniFinishDestroy"), d = t("../effect/EliminateScore"), h = t("../effect/ScoreEnergy"), f = t("../../../game/data/GameData"), y = cc._decorator, g = y.ccclass, m = y.property, _ = function(t) {
  5133. i(e, t);
  5134. function e() {
  5135. var e = null !== t && t.apply(this, arguments) || this;
  5136. e.ani_cellItem = null;
  5137. e.spr_cellItemIcon = null;
  5138. e.node_redPackIcon = null;
  5139. e.x = 0;
  5140. e.y = 0;
  5141. e.type = 0;
  5142. e.ifRemoved = !1;
  5143. e.ifRedPacket = !1;
  5144. return e;
  5145. }
  5146. e.prototype.start = function() {
  5147. this.node.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
  5148. };
  5149. e.prototype.init = function(t, e) {
  5150. this.x = t;
  5151. this.y = e;
  5152. this.ifRemoved = !1;
  5153. var n = this.getEndPos();
  5154. this.node.x = n.x;
  5155. this.node.y = .5 * cc.winSize.height + this.node.height + 50;
  5156. this.ani_cellItem.play();
  5157. this.setType();
  5158. cc.tween(this.node).delay(.2).to(.3, {
  5159. y: n.y
  5160. }).call(function() {}).start();
  5161. };
  5162. e.prototype.getEndPos = function() {
  5163. var t = this.x * this.node.width + .5 * this.node.width - .5 * r.default.Inst.node_content.width, e = -(this.y * this.node.height + .5 * this.node.height) + .5 * r.default.Inst.node_content.height;
  5164. return new cc.Vec2(t, e);
  5165. };
  5166. e.prototype.setType = function(t) {
  5167. var e = this;
  5168. void 0 === t && (t = null);
  5169. this.node.opacity = 255;
  5170. var n = this.type;
  5171. if (t) {
  5172. this.ani_cellItem.play("cellItem_reset");
  5173. this.type = t;
  5174. } else {
  5175. var o = null, i = gData.gameData.getProp(f.GameProp.levelNum);
  5176. null != i && null != i && (o = u.default.config_level[i][this.y][this.x]);
  5177. this.type = o || Math.floor(5 * Math.random()) + 1;
  5178. }
  5179. this.spr_cellItemIcon.node.width = 75;
  5180. this.spr_cellItemIcon.node.height = 75;
  5181. n && n == this.type || mk.loader.load("game/texture/cellItemIcon/" + u.default.iconIndex + "/" + this.type, cc.SpriteFrame).then(function(t) {
  5182. e.spr_cellItemIcon.spriteFrame = t;
  5183. });
  5184. };
  5185. e.prototype.reset = function() {
  5186. this.ani_cellItem.play("cellItem_reset");
  5187. var t = Math.floor(5 * Math.random()) + 1;
  5188. this.setType(t);
  5189. };
  5190. e.prototype.onClick = function() {
  5191. if (r.default.Inst.ifCouldClick) {
  5192. r.default.Inst.ifCouldClick = !1;
  5193. r.default.Inst.intervalShowGuide();
  5194. r.default.Inst.intervalShowInter();
  5195. r.default.Inst.node_changeCellItemUI.active && (r.default.Inst.node_changeCellItemUI.active = !1);
  5196. r.default.Inst.cleanedVecArr = [];
  5197. r.default.Inst.cleanXIndexArr = [];
  5198. if (r.default.Inst.curPropType != c.PROPTYPE.Change) {
  5199. if (r.default.Inst.curPropType == c.PROPTYPE.Hammer) {
  5200. r.default.Inst.curPropType = c.PROPTYPE.Null;
  5201. r.default.Inst.curSelectCellItem = this;
  5202. if (s.default.getAroundSameType(this.x, this.y, this.type, !1).length <= 0) {
  5203. mk.console.log("周围没有相同的Item ----------------------------------------");
  5204. r.default.Inst.cleanedVecArr.push(new cc.Vec2(this.x, this.y));
  5205. }
  5206. }
  5207. r.default.Inst.curClickCellItem = this;
  5208. s.default.getCleanedVecList(this.x, this.y, this.type);
  5209. r.default.Inst.cleanCellItemByVecList();
  5210. } else {
  5211. r.default.Inst.curPropType = c.PROPTYPE.Null;
  5212. r.default.Inst.curSelectCellItem = this;
  5213. r.default.Inst.showChangeCellItemUI();
  5214. this.node.opacity = 150;
  5215. }
  5216. }
  5217. };
  5218. e.prototype.moveDown = function(t, e, n, o) {
  5219. var i = this;
  5220. void 0 === o && (o = !1);
  5221. if (this.y != e) {
  5222. var a = e - this.y;
  5223. r.default.Inst.cellItemDic[this.x][this.y] = null;
  5224. this.x = t;
  5225. this.y = e;
  5226. r.default.Inst.cellItemDic[this.x][this.y] = this;
  5227. var c = -(this.y * this.node.height + .5 * this.node.height) + .5 * r.default.Inst.node_content.height, s = .03 * n, l = .12 * a;
  5228. cc.tween(this.node).delay(s).call(function() {
  5229. i.ani_cellItem.play("cellItem_down1");
  5230. }).to(l, {
  5231. y: c
  5232. }).call(function() {
  5233. i.ani_cellItem.play("cellItem_down2");
  5234. if (o) {
  5235. mk.console.log("【CellItem】检测是否能消除 移动完毕最后一个");
  5236. r.default.Inst.checkMoveLeftCellItem();
  5237. }
  5238. }).start();
  5239. } else o && r.default.Inst.checkMoveLeftCellItem();
  5240. };
  5241. e.prototype.moveLeft = function(t, e, n) {
  5242. void 0 === n && (n = !1);
  5243. if (this.x != t) {
  5244. r.default.Inst.cellItemDic[this.x][this.y] = null;
  5245. this.x = t;
  5246. this.y = e;
  5247. r.default.Inst.cellItemDic[this.x][this.y] = this;
  5248. var o = t * this.node.width + .5 * this.node.width - .5 * r.default.Inst.node_content.width;
  5249. cc.tween(this.node).to(.2, {
  5250. x: o
  5251. }).call(function() {
  5252. if (n) {
  5253. mk.console.log("检测是否能消除!!!!!!!!!!!!!!!!!!!!!!!!!!最后移除");
  5254. r.default.Inst.checkIfEliminate();
  5255. r.default.Inst.ifCouldClick = !0;
  5256. }
  5257. }).start();
  5258. }
  5259. };
  5260. e.prototype.shake = function() {
  5261. this.ani_cellItem.play("cellItem_shake");
  5262. };
  5263. e.prototype.normal = function() {
  5264. this.node.opacity = 255;
  5265. this.ani_cellItem.play();
  5266. };
  5267. e.prototype.showRedPacket = function() {
  5268. this.node_redPackIcon.active = !0;
  5269. };
  5270. e.prototype.recycle = function(t, e, n) {
  5271. void 0 === t && (t = !1);
  5272. void 0 === e && (e = !1);
  5273. void 0 === n && (n = !0);
  5274. r.default.Inst.cellItemDic[this.x][this.y] = null;
  5275. var o = this.node.x + r.default.Inst.node_content.x, i = this.node.y + r.default.Inst.node_content.y;
  5276. if (r.default.Inst.curSelectCellItem == this) {
  5277. r.default.Inst.curSelectCellItem = null;
  5278. if (r.default.Inst.curPropType == c.PROPTYPE.Hammer) {
  5279. r.default.Inst.curPropType = null;
  5280. var a = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.Hammer);
  5281. a.setPosition(o, i);
  5282. r.default.Inst.node_effectUI.addChild(a);
  5283. }
  5284. }
  5285. if (n) {
  5286. var s = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.Baozha);
  5287. s.x = o;
  5288. s.y = i;
  5289. r.default.Inst.node_effectUI.addChild(s);
  5290. s.getComponent(p.default).init();
  5291. var u = 2 + 2 * (r.default.Inst.cleanedVecArr.length - 2), y = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.EliminateScore), g = this.node.x + r.default.Inst.node_content.x, m = this.node.y + r.default.Inst.node_content.y + 30;
  5292. y.getComponent(d.default).init(new cc.Vec2(g, m), u);
  5293. r.default.Inst.node_effectUI.addChild(y);
  5294. if (t) ; else {
  5295. var _ = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.ScoreEnergy);
  5296. _.getComponent(h.default).init(g, m, u);
  5297. r.default.Inst.node_effectUI.addChild(_);
  5298. this.node_redPackIcon.active && (r.default.Inst.ifOpenScoreRedPacket = !0);
  5299. e && gData.gameData.setProp(f.GameProp.curTotalScore, r.default.Inst.finalGetScore);
  5300. }
  5301. }
  5302. this.node_redPackIcon.active && (this.node_redPackIcon.active = !1);
  5303. l.default.Inst.recyclePoolPrefab(l.NODEPOOLPREFABTYPE.CellItem, this.node);
  5304. };
  5305. a([ m(cc.Animation) ], e.prototype, "ani_cellItem", void 0);
  5306. a([ m(cc.Sprite) ], e.prototype, "spr_cellItemIcon", void 0);
  5307. a([ m(cc.Node) ], e.prototype, "node_redPackIcon", void 0);
  5308. return a([ g ], e);
  5309. }(cc.Component);
  5310. n.default = _;
  5311. cc._RF.pop();
  5312. }, {
  5313. "../../../game/data/GameData": "GameData",
  5314. "../../GamePlay": "GamePlay",
  5315. "../../data/Enum": "Enum",
  5316. "../../data/GameConst": "GameConst",
  5317. "../../mgr/PoolMgr": "PoolMgr",
  5318. "../../util/GameLogic": "GameLogic",
  5319. "../../util/common/AniFinishDestroy": "AniFinishDestroy",
  5320. "../effect/EliminateScore": "EliminateScore",
  5321. "../effect/ScoreEnergy": "ScoreEnergy"
  5322. } ],
  5323. ChangeCellItemUI: [ function(t, e, n) {
  5324. "use strict";
  5325. cc._RF.push(e, "efea2M6SlRODL/dJnf1ISCC", "ChangeCellItemUI");
  5326. var o, i = this && this.__extends || (o = function(t, e) {
  5327. return (o = Object.setPrototypeOf || {
  5328. __proto__: []
  5329. } instanceof Array && function(t, e) {
  5330. t.__proto__ = e;
  5331. } || function(t, e) {
  5332. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  5333. })(t, e);
  5334. }, function(t, e) {
  5335. o(t, e);
  5336. function n() {
  5337. this.constructor = t;
  5338. }
  5339. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  5340. }), a = this && this.__decorate || function(t, e, n, o) {
  5341. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  5342. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  5343. return a > 3 && r && Object.defineProperty(e, n, r), r;
  5344. };
  5345. Object.defineProperty(n, "__esModule", {
  5346. value: !0
  5347. });
  5348. var r = t("../GamePlay"), c = t("./uiItem/SelectCellItemBtn"), s = t("../data/GameConst"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
  5349. i(e, t);
  5350. function e() {
  5351. var e = null !== t && t.apply(this, arguments) || this;
  5352. e.layout_selectCellItemBtn = null;
  5353. e.node_closeBtn = null;
  5354. e.prefab_selectCellItemBtn = null;
  5355. e.curIconIndex = null;
  5356. return e;
  5357. }
  5358. e.prototype.onEnable = function() {
  5359. if (this.curIconIndex != s.default.iconIndex) {
  5360. this.initSelectCellItemBtn();
  5361. this.curIconIndex = s.default.iconIndex;
  5362. }
  5363. };
  5364. e.prototype.onDisable = function() {
  5365. r.default.Inst.ifCouldClick = !0;
  5366. r.default.Inst.curSelectCellItem && (r.default.Inst.curSelectCellItem.node.opacity = 255);
  5367. };
  5368. e.prototype.start = function() {
  5369. this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickClose, this);
  5370. };
  5371. e.prototype.initSelectCellItemBtn = function() {
  5372. if (this.layout_selectCellItemBtn.node.childrenCount > 0) for (var t = 1; t <= this.layout_selectCellItemBtn.node.childrenCount; t++) {
  5373. mk.console.log(" node_selectCellItemBtn i", t);
  5374. (e = this.layout_selectCellItemBtn.node.children[t - 1]).getComponent(c.default).init(t);
  5375. } else for (t = 1; t <= 6; t++) {
  5376. var e = cc.instantiate(this.prefab_selectCellItemBtn);
  5377. mk.console.log("初始化选择按钮!!!!!!!!!!!!!!!!!!!!", t);
  5378. e.getComponent(c.default).init(t);
  5379. this.layout_selectCellItemBtn.node.addChild(e);
  5380. }
  5381. };
  5382. e.prototype.onClickClose = function() {
  5383. this.node.active = !1;
  5384. };
  5385. a([ p(cc.Layout) ], e.prototype, "layout_selectCellItemBtn", void 0);
  5386. a([ p(cc.Node) ], e.prototype, "node_closeBtn", void 0);
  5387. a([ p(cc.Prefab) ], e.prototype, "prefab_selectCellItemBtn", void 0);
  5388. return a([ u ], e);
  5389. }(cc.Component);
  5390. n.default = d;
  5391. cc._RF.pop();
  5392. }, {
  5393. "../GamePlay": "GamePlay",
  5394. "../data/GameConst": "GameConst",
  5395. "./uiItem/SelectCellItemBtn": "SelectCellItemBtn"
  5396. } ],
  5397. ClickMoveBy: [ function(t, e, n) {
  5398. "use strict";
  5399. cc._RF.push(e, "b4358yRD11LPLNtDbsZ2TsK", "ClickMoveBy");
  5400. var o, i = this && this.__extends || (o = function(t, e) {
  5401. return (o = Object.setPrototypeOf || {
  5402. __proto__: []
  5403. } instanceof Array && function(t, e) {
  5404. t.__proto__ = e;
  5405. } || function(t, e) {
  5406. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  5407. })(t, e);
  5408. }, function(t, e) {
  5409. o(t, e);
  5410. function n() {
  5411. this.constructor = t;
  5412. }
  5413. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  5414. }), a = this && this.__decorate || function(t, e, n, o) {
  5415. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  5416. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  5417. return a > 3 && r && Object.defineProperty(e, n, r), r;
  5418. };
  5419. Object.defineProperty(n, "__esModule", {
  5420. value: !0
  5421. });
  5422. var r, c = cc._decorator, s = c.ccclass, l = c.property;
  5423. (function(t) {
  5424. t[t.out = 0] = "out";
  5425. t[t.moving = 1] = "moving";
  5426. t[t.back = 2] = "back";
  5427. })(r || (r = {}));
  5428. var u = function(t) {
  5429. i(e, t);
  5430. function e() {
  5431. var e = null !== t && t.apply(this, arguments) || this;
  5432. e.vec_move = cc.Vec2.ZERO;
  5433. e.state = r.out;
  5434. e.is_back = !1;
  5435. return e;
  5436. }
  5437. e.prototype.onLoad = function() {
  5438. this.node.on("click", this.StartMoveBy, this);
  5439. };
  5440. e.prototype.start = function() {
  5441. this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
  5442. };
  5443. e.prototype.StartMoveBy = function() {
  5444. var t = this;
  5445. if (this.state !== r.moving) {
  5446. var e = 0, n = cc.Vec2.ZERO;
  5447. if (this.state === r.out) {
  5448. n = this.vec_move;
  5449. e = r.back;
  5450. } else if (this.state === r.back) {
  5451. n.x = -this.vec_move.x;
  5452. n.y = -this.vec_move.y;
  5453. e = r.out;
  5454. }
  5455. this.state = r.moving;
  5456. var o = cc.tween().by(.5, {
  5457. position: {
  5458. value: n,
  5459. easing: "backOut"
  5460. }
  5461. }), i = cc.tween().call(function() {
  5462. t.state = e;
  5463. });
  5464. cc.tween(this.node).then(o).then(i).start();
  5465. }
  5466. };
  5467. a([ l({
  5468. tooltip: "要移动的距离"
  5469. }) ], e.prototype, "vec_move", void 0);
  5470. return a([ s ], e);
  5471. }(cc.Component);
  5472. n.default = u;
  5473. cc._RF.pop();
  5474. }, {} ],
  5475. DataMgr: [ function(t, e, n) {
  5476. "use strict";
  5477. cc._RF.push(e, "71647LOZdNAoIjqx+oDJW1W", "DataMgr");
  5478. var o, i = this && this.__extends || (o = function(t, e) {
  5479. return (o = Object.setPrototypeOf || {
  5480. __proto__: []
  5481. } instanceof Array && function(t, e) {
  5482. t.__proto__ = e;
  5483. } || function(t, e) {
  5484. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  5485. })(t, e);
  5486. }, function(t, e) {
  5487. o(t, e);
  5488. function n() {
  5489. this.constructor = t;
  5490. }
  5491. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  5492. }), a = this && this.__decorate || function(t, e, n, o) {
  5493. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  5494. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  5495. return a > 3 && r && Object.defineProperty(e, n, r), r;
  5496. };
  5497. Object.defineProperty(n, "__esModule", {
  5498. value: !0
  5499. });
  5500. var r = t("../data/PlayerConst"), c = t("./StorageMgr"), s = t("../data/Enum"), l = t("../GamePlay"), u = t("../../game/data/GameData"), p = cc._decorator, d = p.ccclass, h = (p.property,
  5501. function(t) {
  5502. i(e, t);
  5503. function e() {
  5504. return null !== t && t.apply(this, arguments) || this;
  5505. }
  5506. n = e;
  5507. Object.defineProperty(e, "Inst", {
  5508. get: function() {
  5509. n.instance || (n.instance = new n());
  5510. return n.instance;
  5511. },
  5512. enumerable: !1,
  5513. configurable: !0
  5514. });
  5515. e.prototype.initStorageData = function() {
  5516. var t = c.default.Inst.getStorage(r.DATA_STORAGE_KEY.ifJuliangApiApiActivie);
  5517. t && (r.default.ifJuliangApiApiActivie = t);
  5518. var e = c.default.Inst.getStorage(r.DATA_STORAGE_KEY.ifJuliangApiSencondActivie);
  5519. e && (r.default.ifJuliangApiSencondActivie = e);
  5520. var n = c.default.Inst.getStorage(r.DATA_STORAGE_KEY.average_ecpm);
  5521. n && (r.default.average_ecpm = n);
  5522. };
  5523. e.prototype.updatePropNum = function(t, e, n) {
  5524. void 0 === n && (n = 1);
  5525. mk.console.log("更新道具数据", e, n);
  5526. switch (e) {
  5527. case s.PROPTYPE.Hammer:
  5528. var o = gData.gameData.getProp(u.GameProp.hammerPropNum);
  5529. 0 == t || (o += n);
  5530. gData.gameData.setProp(u.GameProp.hammerPropNum, o);
  5531. l.default.Inst && l.default.Inst.initHammerPropNum();
  5532. break;
  5533. case s.PROPTYPE.Change:
  5534. var i = gData.gameData.getProp(u.GameProp.changePropNum);
  5535. 0 == t || (i += n);
  5536. gData.gameData.setProp(u.GameProp.changePropNum, i);
  5537. l.default.Inst && l.default.Inst.initChanegPropNum();
  5538. break;
  5539. case s.PROPTYPE.Reset:
  5540. var a = gData.gameData.getProp(u.GameProp.resetPropNum);
  5541. 0 == t || (a += n);
  5542. gData.gameData.setProp(u.GameProp.resetPropNum, a);
  5543. l.default.Inst && l.default.Inst.initResetPropNum();
  5544. }
  5545. };
  5546. e.prototype.updateJuliangApi = function() {
  5547. r.default.ifJuliangApiApiActivie ? !r.default.ifJuliangApiSencondActivie && r.default.loginDay > 1 && this.updateJuliangApiSecondActive(!0) : this.updateJuliangApiActive(!0);
  5548. };
  5549. e.prototype.updateJuliangApiActive = function() {
  5550. r.default.ifJuliangApiApiActivie = !0;
  5551. c.default.Inst.setStorage(r.DATA_STORAGE_KEY.ifJuliangApiApiActivie, r.default.ifJuliangApiApiActivie);
  5552. };
  5553. e.prototype.updateJuliangApiSecondActive = function() {
  5554. r.default.ifJuliangApiSencondActivie = !0;
  5555. c.default.Inst.setStorage(r.DATA_STORAGE_KEY.ifJuliangApiSencondActivie, r.default.ifJuliangApiSencondActivie);
  5556. };
  5557. var n;
  5558. e.instance = null;
  5559. return n = a([ d ], e);
  5560. }(cc.Component));
  5561. n.default = h;
  5562. cc._RF.pop();
  5563. }, {
  5564. "../../game/data/GameData": "GameData",
  5565. "../GamePlay": "GamePlay",
  5566. "../data/Enum": "Enum",
  5567. "../data/PlayerConst": "PlayerConst",
  5568. "./StorageMgr": "StorageMgr"
  5569. } ],
  5570. DataSystem: [ function(t, e, n) {
  5571. "use strict";
  5572. cc._RF.push(e, "ee2e153hZxNt7jVksyo3b8q", "DataSystem");
  5573. Object.defineProperty(n, "__esModule", {
  5574. value: !0
  5575. });
  5576. var o = t("./JsbSystem"), i = function() {
  5577. function t() {}
  5578. t.prototype.sendDataEvent = function(t, e) {
  5579. console.log("===[DataSystem", t, e);
  5580. t && e && o.default.sendEvent(t, e);
  5581. };
  5582. t.prototype.sendXYEvent = function(t, e) {
  5583. if (t && e) {
  5584. var n = {
  5585. uin: gData.loginData.uin,
  5586. isFirstDay: 1 == gData.gameData.gameData.loginDays ? 1 : 0,
  5587. umengChannel: gData.appData.umengChannel,
  5588. deviceType: gData.appData.deviceType,
  5589. androidVerison: gData.appData.androidVersion,
  5590. version: gData.appData.appVersion,
  5591. point: t,
  5592. description: e,
  5593. tfChannel: gData.appData.tfChannel
  5594. };
  5595. mk.http.sendData("cp", n);
  5596. }
  5597. };
  5598. return t;
  5599. }();
  5600. n.default = i;
  5601. cc._RF.pop();
  5602. }, {
  5603. "./JsbSystem": "JsbSystem"
  5604. } ],
  5605. Data: [ function(t, e, n) {
  5606. "use strict";
  5607. cc._RF.push(e, "d713eV0hrtAOLYRFa34h1Rf", "Data");
  5608. Object.defineProperty(n, "__esModule", {
  5609. value: !0
  5610. });
  5611. n.Data = void 0;
  5612. var o = function() {
  5613. function t() {}
  5614. t.prototype.init = function() {};
  5615. t.prototype.setAdData = function(t) {
  5616. this.adData = t;
  5617. };
  5618. return t;
  5619. }();
  5620. n.Data = o;
  5621. cc._RF.pop();
  5622. }, {} ],
  5623. EffectMgr: [ function(t, e, n) {
  5624. "use strict";
  5625. cc._RF.push(e, "640fee877ZCf7bhGdpndfbK", "EffectMgr");
  5626. var o, i = this && this.__extends || (o = function(t, e) {
  5627. return (o = Object.setPrototypeOf || {
  5628. __proto__: []
  5629. } instanceof Array && function(t, e) {
  5630. t.__proto__ = e;
  5631. } || function(t, e) {
  5632. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  5633. })(t, e);
  5634. }, function(t, e) {
  5635. o(t, e);
  5636. function n() {
  5637. this.constructor = t;
  5638. }
  5639. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  5640. }), a = this && this.__decorate || function(t, e, n, o) {
  5641. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  5642. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  5643. return a > 3 && r && Object.defineProperty(e, n, r), r;
  5644. };
  5645. Object.defineProperty(n, "__esModule", {
  5646. value: !0
  5647. });
  5648. n.TIP_SPRITEITEM_TYPE = void 0;
  5649. var r = t("./PoolMgr"), c = t("../view/uiItem/TipItemUI"), s = t("../view/effect/TipSpriteItemUI"), l = cc._decorator, u = l.ccclass, p = (l.property,
  5650. function(t) {
  5651. i(e, t);
  5652. function e() {
  5653. return null !== t && t.apply(this, arguments) || this;
  5654. }
  5655. n = e;
  5656. Object.defineProperty(e, "Inst", {
  5657. get: function() {
  5658. n.instance || (n.instance = new n());
  5659. return n.instance;
  5660. },
  5661. enumerable: !1,
  5662. configurable: !0
  5663. });
  5664. e.prototype.addTip = function(t) {
  5665. r.default.Inst.getPoolPrefab(r.NODEPOOLPREFABTYPE.TipItemUI).getComponent(c.default).init(t);
  5666. };
  5667. e.prototype.addSpriteTip = function(t) {
  5668. r.default.Inst.getPoolPrefab(r.NODEPOOLPREFABTYPE.TipSpriteItemUI).getComponent(s.default).init(t);
  5669. };
  5670. var n;
  5671. e.instance = null;
  5672. return n = a([ u ], e);
  5673. }(cc.Component));
  5674. n.default = p;
  5675. (function(t) {
  5676. t.NormalPass = "NormalPass";
  5677. t.PerfectPass = "PerfectPass";
  5678. })(n.TIP_SPRITEITEM_TYPE || (n.TIP_SPRITEITEM_TYPE = {}));
  5679. cc._RF.pop();
  5680. }, {
  5681. "../view/effect/TipSpriteItemUI": "TipSpriteItemUI",
  5682. "../view/uiItem/TipItemUI": "TipItemUI",
  5683. "./PoolMgr": "PoolMgr"
  5684. } ],
  5685. EffectOpenAndClose: [ function(t, e, n) {
  5686. "use strict";
  5687. cc._RF.push(e, "ac053zwqaRD6IJmTlQWmefZ", "EffectOpenAndClose");
  5688. var o, i = this && this.__extends || (o = function(t, e) {
  5689. return (o = Object.setPrototypeOf || {
  5690. __proto__: []
  5691. } instanceof Array && function(t, e) {
  5692. t.__proto__ = e;
  5693. } || function(t, e) {
  5694. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  5695. })(t, e);
  5696. }, function(t, e) {
  5697. o(t, e);
  5698. function n() {
  5699. this.constructor = t;
  5700. }
  5701. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  5702. }), a = this && this.__decorate || function(t, e, n, o) {
  5703. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  5704. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  5705. return a > 3 && r && Object.defineProperty(e, n, r), r;
  5706. };
  5707. Object.defineProperty(n, "__esModule", {
  5708. value: !0
  5709. });
  5710. var r, c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus;
  5711. (function(t) {
  5712. t[t.none = 0] = "none";
  5713. t[t.scale = 1] = "scale";
  5714. t[t.scaleToPoint = 2] = "scaleToPoint";
  5715. t[t.centerUnfolding = 3] = "centerUnfolding";
  5716. t[t.rightIn = 4] = "rightIn";
  5717. })(r || (r = {}));
  5718. var d = function(t) {
  5719. i(e, t);
  5720. function e() {
  5721. var e = null !== t && t.apply(this, arguments) || this;
  5722. e.effect_par = null;
  5723. e.open_effect = r.scale;
  5724. e.close_effect = r.scale;
  5725. e.close_toPoint = "";
  5726. e._play_open = !1;
  5727. e._play_close = !1;
  5728. return e;
  5729. }
  5730. Object.defineProperty(e.prototype, "play_open", {
  5731. get: function() {
  5732. if (this._play_open) {
  5733. this.showEffect();
  5734. this._play_open = !1;
  5735. }
  5736. return this._play_open;
  5737. },
  5738. set: function(t) {
  5739. this._play_open = t;
  5740. },
  5741. enumerable: !1,
  5742. configurable: !0
  5743. });
  5744. Object.defineProperty(e.prototype, "play_close", {
  5745. get: function() {
  5746. if (this._play_close) {
  5747. this.effect_par.scale = 1;
  5748. this.hideEffect();
  5749. this._play_close = !1;
  5750. }
  5751. return this._play_close;
  5752. },
  5753. set: function(t) {
  5754. this._play_close = t;
  5755. },
  5756. enumerable: !1,
  5757. configurable: !0
  5758. });
  5759. e.prototype.onLoad = function() {};
  5760. e.prototype.start = function() {
  5761. this.showEffect();
  5762. };
  5763. e.prototype.showEffect = function() {
  5764. if (this.effect_par) switch (this.open_effect) {
  5765. case r.none:
  5766. break;
  5767. case r.scale:
  5768. mk.tween.scale(this.effect_par, .3, void 0, void 0, void 0, "backOut");
  5769. break;
  5770. case r.centerUnfolding:
  5771. mk.tween.scaleX(this.effect_par, .3, void 0, void 0, void 0, "backOut");
  5772. break;
  5773. case r.rightIn:
  5774. this.effect_par.active = !0;
  5775. this.effect_par.x = 1e3;
  5776. cc.tween(this.effect_par).to(.3, {
  5777. x: 0
  5778. }, cc.easeOut(3)).start();
  5779. }
  5780. };
  5781. e.prototype.hideEffect = function(t) {
  5782. var e = this;
  5783. if (this.effect_par) switch (this.close_effect) {
  5784. case r.none:
  5785. t && t();
  5786. break;
  5787. case r.scale:
  5788. mk.tween.scale(this.effect_par, .15, 1, 0, t);
  5789. break;
  5790. case r.scaleToPoint:
  5791. if ("" == this.close_toPoint) console.error("需要配置缩小到终点节点路径"); else {
  5792. var n = this.close_toPoint, o = cc.find(n);
  5793. if (o) {
  5794. var i = o.parent.convertToWorldSpaceAR(o.getPosition()), a = this.effect_par.parent.convertToNodeSpaceAR(i);
  5795. mk.tween.scaleParallelMove(this.effect_par, .3, 1, 0, a, t);
  5796. } else {
  5797. t && t();
  5798. cc.error("关闭时动画节点未找到,请检查!!!!!");
  5799. }
  5800. }
  5801. break;
  5802. case r.rightIn:
  5803. mk.tween.move(this.effect_par, .3, this.effect_par.getPosition(), new cc.Vec2(1e3, this.effect_par.y), function() {
  5804. e.effect_par.active = !1;
  5805. t && t();
  5806. }, "sineOut");
  5807. } else t && t();
  5808. };
  5809. a([ l({
  5810. type: cc.Node,
  5811. displayName: "动画节点"
  5812. }) ], e.prototype, "effect_par", void 0);
  5813. a([ l({
  5814. type: cc.Enum(r),
  5815. displayName: "打开动画节点效果",
  5816. visible: function() {
  5817. return this.effect_par;
  5818. }
  5819. }) ], e.prototype, "open_effect", void 0);
  5820. a([ l({
  5821. type: cc.Enum(r),
  5822. displayName: "关闭动画节点效果",
  5823. visible: function() {
  5824. return this.effect_par;
  5825. }
  5826. }) ], e.prototype, "close_effect", void 0);
  5827. a([ l({
  5828. displayName: "关闭节点缩小到此节点坐标",
  5829. visible: function() {
  5830. return this.close_effect == r.scaleToPoint;
  5831. }
  5832. }) ], e.prototype, "close_toPoint", void 0);
  5833. a([ l({
  5834. displayName: "预览开"
  5835. }) ], e.prototype, "play_open", null);
  5836. a([ l({
  5837. displayName: "预览关"
  5838. }) ], e.prototype, "play_close", null);
  5839. return a([ s, u(), p() ], e);
  5840. }(cc.Component);
  5841. n.default = d;
  5842. cc._RF.pop();
  5843. }, {} ],
  5844. EliminateScore: [ function(t, e, n) {
  5845. "use strict";
  5846. cc._RF.push(e, "820115PJExHeYx7Jije+u+b", "EliminateScore");
  5847. var o, i = this && this.__extends || (o = function(t, e) {
  5848. return (o = Object.setPrototypeOf || {
  5849. __proto__: []
  5850. } instanceof Array && function(t, e) {
  5851. t.__proto__ = e;
  5852. } || function(t, e) {
  5853. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  5854. })(t, e);
  5855. }, function(t, e) {
  5856. o(t, e);
  5857. function n() {
  5858. this.constructor = t;
  5859. }
  5860. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  5861. }), a = this && this.__decorate || function(t, e, n, o) {
  5862. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  5863. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  5864. return a > 3 && r && Object.defineProperty(e, n, r), r;
  5865. };
  5866. Object.defineProperty(n, "__esModule", {
  5867. value: !0
  5868. });
  5869. var r = t("../../mgr/PoolMgr"), c = t("../../util/common/ArtNum"), s = cc._decorator, l = s.ccclass, u = (s.property,
  5870. function(t) {
  5871. i(e, t);
  5872. function e() {
  5873. return null !== t && t.apply(this, arguments) || this;
  5874. }
  5875. e.prototype.start = function() {};
  5876. e.prototype.init = function(t, e) {
  5877. var n = this;
  5878. this.getComponent(c.default).init(e);
  5879. this.node.opacity = 255;
  5880. this.node.scaleX = this.node.scaleY = 2;
  5881. this.node.setPosition(t.x, t.y);
  5882. var o = this.node.y + 50;
  5883. cc.tween(this.node).to(.2, {
  5884. scale: 1
  5885. }, {
  5886. easing: "smooth"
  5887. }).to(.5, {
  5888. y: o,
  5889. opacity: 0
  5890. }, {
  5891. easing: "smooth"
  5892. }).call(function() {
  5893. r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.EliminateScore, n.node);
  5894. }).start();
  5895. };
  5896. return a([ l ], e);
  5897. }(cc.Component));
  5898. n.default = u;
  5899. cc._RF.pop();
  5900. }, {
  5901. "../../mgr/PoolMgr": "PoolMgr",
  5902. "../../util/common/ArtNum": "ArtNum"
  5903. } ],
  5904. EncryptUtil: [ function(t, e, n) {
  5905. "use strict";
  5906. cc._RF.push(e, "4dd7c+x4MRMUpC9k5xzhEUq", "EncryptUtil");
  5907. Object.defineProperty(n, "__esModule", {
  5908. value: !0
  5909. });
  5910. n.EncryptUtil = void 0;
  5911. var o = t("./encrypt/hmacSha256"), i = t("./encrypt/aes.js"), a = function() {
  5912. function t() {
  5913. this.options = {
  5914. default_key_size: 2048,
  5915. default_public_exponent: new Uint8Array([ 1, 0, 1 ])
  5916. };
  5917. }
  5918. t.prototype.randomString = function(t) {
  5919. void 0 === t && (t = 32);
  5920. for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnoprstuvwxyz123456789", n = e.length, o = "", i = 0; i < t; i++) o += e.charAt(Math.floor(Math.random() * n));
  5921. return o;
  5922. };
  5923. t.prototype.encrypt = function(t, e, n, a) {
  5924. void 0 === a && (a = !0);
  5925. var r = e.substr(0, 16), c = "";
  5926. c = a ? r + t + n : r + t + "\r\n" + n;
  5927. var s = i.enc.Utf8.parse(e), l = i.enc.Utf8.parse(r);
  5928. c = i.enc.Utf8.parse(c);
  5929. var u = i.AES.encrypt(c, s, {
  5930. iv: l,
  5931. mode: i.mode.CBC,
  5932. padding: i.pad.Pkcs7
  5933. });
  5934. u = u.toString();
  5935. var p = o.hmacSha256.Instance.hex_hmac_sha256(e, u);
  5936. return i.enc.Base64.stringify(i.enc.Utf8.parse(r + u + p));
  5937. };
  5938. t.prototype.decrypt = function(t, e, n, o) {
  5939. void 0 === o && (o = !0);
  5940. var a = i.enc.Base64.parse(t).toString(i.enc.Utf8).substr(16), r = a.substr(0, a.length - 64), c = i.enc.Utf8.parse(e), s = i.enc.Utf8.parse(e.substr(0, 16)), l = i.AES.decrypt(r, c, {
  5941. iv: s,
  5942. mode: i.mode.CBC,
  5943. padding: i.pad.Pkcs7
  5944. }), u = i.enc.Utf8.stringify(l);
  5945. u = u.toString();
  5946. return o ? u.slice(16).replace(new RegExp("(.*)" + n), "$1") : u.slice(16).split("\r\n")[0];
  5947. };
  5948. t.prototype.rsaEncrypt = function(t, e) {
  5949. void 0 === e && (e = !1);
  5950. var n = new window.JSEncrypt(this.options);
  5951. n.setPublicKey("-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuwz5V8wt525dMS+A9wOd\nNAjvKgxdyoXYuZSlAJEXLhvJlaXwFCKEsUg/qBBeo4nrRnwaFAjG7ItqbCWR9Ozv\n6oY5tMYQnFFK82XkMGbKm1gG0z9vYKhcNYgHZHi+QKAw4tLLWXWO/QBTGelEXptD\nazlNmdM+8wHOknTcMuIyjc9Yo5qCoNsCJpA465vnREiBezBbKB3rSw+LmrRcZcFk\ns8hmGtjpabcQ8sCxco7mRzVh6/DomNWfNm7hUP6shrrJirwjQtaS51grlScj8KhN\nh+kBoiI4Ad0Xz0GHasK5hAMf3sXDsN61r0An8KTfa/nsYSJDwogPIKkeKAsmw9Df\nEQIDAQAB\n-----END PUBLIC KEY-----");
  5952. return e ? n.encryptLong(t) : n.encrypt(t);
  5953. };
  5954. t.prototype.pack = function(t) {
  5955. var e = new ArrayBuffer(4);
  5956. new DataView(e).setUint32(0, t);
  5957. return this.ab2str(e);
  5958. };
  5959. t.prototype.utf8ArrayToStr = function(t) {
  5960. var e, n, o, i, a, r;
  5961. e = "";
  5962. o = t.length;
  5963. n = 0;
  5964. for (;n < o; ) switch ((i = t[n++]) >> 4) {
  5965. case 0:
  5966. case 1:
  5967. case 2:
  5968. case 3:
  5969. case 4:
  5970. case 5:
  5971. case 6:
  5972. case 7:
  5973. e += String.fromCharCode(i);
  5974. break;
  5975. case 12:
  5976. case 13:
  5977. a = t[n++];
  5978. e += String.fromCharCode((31 & i) << 6 | 63 & a);
  5979. break;
  5980. case 14:
  5981. a = t[n++];
  5982. r = t[n++];
  5983. e += String.fromCharCode((15 & i) << 12 | (63 & a) << 6 | (63 & r) << 0);
  5984. }
  5985. return e;
  5986. };
  5987. t.prototype.utf16ToUtf8 = function(t) {
  5988. if (t) {
  5989. var e, n, o = [], i = t.length;
  5990. for (e = 0; e < i; e++) (n = t.charCodeAt(e)) > 0 && n <= 127 ? o.push(t.charAt(e)) : n >= 128 && n <= 2047 ? o.push(String.fromCharCode(192 | n >> 6 & 31), String.fromCharCode(128 | 63 & n)) : n >= 2048 && n <= 65535 && o.push(String.fromCharCode(224 | n >> 12 & 15), String.fromCharCode(128 | n >> 6 & 63), String.fromCharCode(128 | 63 & n));
  5991. return o.join("");
  5992. }
  5993. };
  5994. t.prototype.utf8ToUtf16 = function(t) {
  5995. if (t) {
  5996. var e, n, o, i = [], a = t.length;
  5997. for (e = 0; e < a; e++) {
  5998. (n = []).push(t.charCodeAt(e));
  5999. if (0 == (n[0] >> 7 & 255)) i.push(t.charAt(e)); else if (6 == (n[0] >> 5 & 255)) {
  6000. n.push(t.charCodeAt(++e));
  6001. (o = []).push(31 & n[0]);
  6002. o.push(63 & n[1]);
  6003. i.push(String.fromCharCode(o[0] << 6 | o[1]));
  6004. } else if (14 == (n[0] >> 4 & 255)) {
  6005. n.push(t.charCodeAt(++e));
  6006. n.push(t.charCodeAt(++e));
  6007. (o = []).push(n[0] << 4 | n[1] >> 2 & 15);
  6008. o.push((3 & n[1]) << 6 | 63 & n[2]);
  6009. i.push(String.fromCharCode(o[0] << 8 | o[1]));
  6010. }
  6011. }
  6012. return i.join("");
  6013. }
  6014. };
  6015. t.prototype.ab2str = function(t) {
  6016. return String.fromCharCode.apply(null, new Uint8Array(t));
  6017. };
  6018. t.prototype.uint8ArrayToString = function(t) {
  6019. for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(t[n]);
  6020. return e;
  6021. };
  6022. t.prototype.stringToUint8Array = function(t) {
  6023. for (var e = [], n = 0, o = t.length; n < o; ++n) e.push(t.charCodeAt(n));
  6024. return new Uint8Array(e);
  6025. };
  6026. t.prototype.str2ab = function(t) {
  6027. for (var e = new ArrayBuffer(t.length), n = new Uint8Array(e), o = 0, i = t.length; o < i; o++) n[o] = t.charCodeAt(o);
  6028. return e;
  6029. };
  6030. return t;
  6031. }();
  6032. n.EncryptUtil = a;
  6033. cc._RF.pop();
  6034. }, {
  6035. "./encrypt/aes.js": "aes",
  6036. "./encrypt/hmacSha256": "hmacSha256"
  6037. } ],
  6038. Enum: [ function(t, e, n) {
  6039. "use strict";
  6040. cc._RF.push(e, "90742o/tMhL2L7YJHTjsfH+", "Enum");
  6041. var o, i = this && this.__extends || (o = function(t, e) {
  6042. return (o = Object.setPrototypeOf || {
  6043. __proto__: []
  6044. } instanceof Array && function(t, e) {
  6045. t.__proto__ = e;
  6046. } || function(t, e) {
  6047. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  6048. })(t, e);
  6049. }, function(t, e) {
  6050. o(t, e);
  6051. function n() {
  6052. this.constructor = t;
  6053. }
  6054. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  6055. }), a = this && this.__decorate || function(t, e, n, o) {
  6056. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  6057. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  6058. return a > 3 && r && Object.defineProperty(e, n, r), r;
  6059. };
  6060. Object.defineProperty(n, "__esModule", {
  6061. value: !0
  6062. });
  6063. n.SURPRISETASKTYPE = n.VIDEOADSTATE = n.VIDEOTYPE = n.PROPTYPE = n.CHECKDIR = void 0;
  6064. var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
  6065. i(e, t);
  6066. function e() {
  6067. return null !== t && t.apply(this, arguments) || this;
  6068. }
  6069. return a([ c ], e);
  6070. }(cc.Component));
  6071. n.default = s;
  6072. (function(t) {
  6073. t[t.Above = 0] = "Above";
  6074. t[t.Below = 1] = "Below";
  6075. t[t.Left = 2] = "Left";
  6076. t[t.Right = 2] = "Right";
  6077. })(n.CHECKDIR || (n.CHECKDIR = {}));
  6078. (function(t) {
  6079. t.Null = "null";
  6080. t.Hammer = "10001";
  6081. t.Reset = "10002";
  6082. t.Change = "10003";
  6083. })(n.PROPTYPE || (n.PROPTYPE = {}));
  6084. (function(t) {
  6085. t[t.Null = 0] = "Null";
  6086. t[t.GetStrength = 1] = "GetStrength";
  6087. t[t.LevelRedPacket = 2] = "LevelRedPacket";
  6088. t[t.PassRedPacket = 3] = "PassRedPacket";
  6089. t[t.GetProp = 4] = "GetProp";
  6090. t[t.OpenRedPacket = 5] = "OpenRedPacket";
  6091. t[t.Turnplate = 6] = "Turnplate";
  6092. })(n.VIDEOTYPE || (n.VIDEOTYPE = {}));
  6093. (function(t) {
  6094. t[t.LoadFail = 0] = "LoadFail";
  6095. })(n.VIDEOADSTATE || (n.VIDEOADSTATE = {}));
  6096. (function(t) {
  6097. t[t.Null = 0] = "Null";
  6098. t[t.Prop = 1] = "Prop";
  6099. t[t.EliminateCell = 2] = "EliminateCell";
  6100. t[t.ContinuousEliminateCell = 3] = "ContinuousEliminateCell";
  6101. t[t.VideoNum = 4] = "VideoNum";
  6102. t[t.LevelRedPacket = 5] = "LevelRedPacket";
  6103. t[t.DoubleLevelRedPacket = 6] = "DoubleLevelRedPacket";
  6104. t[t.Score = 7] = "Score";
  6105. })(n.SURPRISETASKTYPE || (n.SURPRISETASKTYPE = {}));
  6106. cc._RF.pop();
  6107. }, {} ],
  6108. EventSystem: [ function(t, e, n) {
  6109. "use strict";
  6110. cc._RF.push(e, "aab27lcX9pAz5SQ16UkErbh", "EventSystem");
  6111. var o = this && this.__spreadArrays || function() {
  6112. for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
  6113. var o = Array(t), i = 0;
  6114. for (e = 0; e < n; e++) for (var a = arguments[e], r = 0, c = a.length; r < c; r++,
  6115. i++) o[i] = a[r];
  6116. return o;
  6117. };
  6118. Object.defineProperty(n, "__esModule", {
  6119. value: !0
  6120. });
  6121. var i = function() {
  6122. function t() {
  6123. this.listeners = {};
  6124. }
  6125. t.prototype.register = function(t, e, n) {
  6126. this.listeners[t] || (this.listeners[t] = []);
  6127. for (var o = this.listeners[t], i = o.length, r = 0; r < i; r++) if (o[r].compare(n)) {
  6128. console.warn("[EventMgr]重复添加监听,请检查事件:", t);
  6129. return;
  6130. }
  6131. this.listeners[t].push(new a(e, n));
  6132. };
  6133. t.prototype.remove = function(t, e, n) {
  6134. var o = this.listeners[t];
  6135. if (o) {
  6136. for (var i = o.length, a = 0; a < i; a++) if (o[a].compare(n)) {
  6137. o.splice(a, 1);
  6138. break;
  6139. }
  6140. 0 == o.length && delete this.listeners[t];
  6141. }
  6142. };
  6143. t.prototype.emit = function(t) {
  6144. for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
  6145. var i = this.listeners[t];
  6146. if (i) {
  6147. for (var a = i.concat(), r = a.length, c = 0; c < r; c++) {
  6148. var s = a[c];
  6149. s.notify.apply(s, o(e, [ t ]));
  6150. }
  6151. a = null;
  6152. }
  6153. };
  6154. return t;
  6155. }();
  6156. n.default = i;
  6157. var a = function() {
  6158. function t(t, e) {
  6159. this.callback = null;
  6160. this.target = null;
  6161. this.callback = t;
  6162. this.target = e;
  6163. }
  6164. t.prototype.notify = function() {
  6165. for (var t, e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
  6166. var i = this;
  6167. (t = i.callback).call.apply(t, o([ i.target ], e));
  6168. };
  6169. t.prototype.compare = function(t) {
  6170. return t == this.target;
  6171. };
  6172. return t;
  6173. }();
  6174. cc._RF.pop();
  6175. }, {} ],
  6176. FileUtil: [ function(t, e, n) {
  6177. "use strict";
  6178. cc._RF.push(e, "169f6jrZC1DK61LjHa0l1kK", "FileUtil");
  6179. Object.defineProperty(n, "__esModule", {
  6180. value: !0
  6181. });
  6182. var o, i = function() {
  6183. function t() {}
  6184. t.prototype.openLocalFile = function(t, e) {
  6185. var n = document.getElementById("file_input");
  6186. if (!n) {
  6187. (n = document.createElement("input")).id = "file_input";
  6188. n.setAttribute("id", "file_input");
  6189. n.setAttribute("type", "file");
  6190. n.setAttribute("class", "fileToUpload");
  6191. n.style.opacity = "0";
  6192. n.style.position = "absolute";
  6193. n.setAttribute("left", "-999px");
  6194. document.body.appendChild(n);
  6195. }
  6196. t = t || ".*";
  6197. n.setAttribute("accept", t);
  6198. n.onchange = function() {
  6199. var t = n.files;
  6200. if (t && t.length > 0) {
  6201. var o = t[0];
  6202. e && e(o);
  6203. }
  6204. };
  6205. n.click();
  6206. };
  6207. t.prototype.readLocalFile = function(t, e, n) {
  6208. var i = new FileReader();
  6209. i.onload = function() {
  6210. n && (i.readyState == FileReader.DONE ? n(i.result) : n(null));
  6211. };
  6212. switch (e) {
  6213. case o.DATA_URL:
  6214. i.readAsDataURL(t);
  6215. break;
  6216. case o.TEXT:
  6217. i.readAsText(t);
  6218. break;
  6219. case o.BINARY:
  6220. i.readAsBinaryString(t);
  6221. break;
  6222. case o.ARRAYBUFFER:
  6223. i.readAsArrayBuffer(t);
  6224. }
  6225. };
  6226. t.prototype.saveForBrowser = function(t, e) {
  6227. if (cc.sys.isBrowser) {
  6228. console.log("浏览器");
  6229. var n = new Blob([ e ], {
  6230. type: "application/json"
  6231. }), o = document.createElement("a");
  6232. o.download = t;
  6233. o.innerHTML = "Download File";
  6234. if (null != window.webkitURL) o.href = window.webkitURL.createObjectURL(n); else {
  6235. o.href = window.URL.createObjectURL(n);
  6236. o.style.display = "none";
  6237. document.body.appendChild(o);
  6238. }
  6239. o.click();
  6240. }
  6241. };
  6242. return t;
  6243. }();
  6244. n.default = i;
  6245. (function(t) {
  6246. t[t.DATA_URL = 0] = "DATA_URL";
  6247. t[t.TEXT = 1] = "TEXT";
  6248. t[t.BINARY = 2] = "BINARY";
  6249. t[t.ARRAYBUFFER = 3] = "ARRAYBUFFER";
  6250. })(o || (o = {}));
  6251. cc._RF.pop();
  6252. }, {} ],
  6253. FissionData: [ function(t, e, n) {
  6254. "use strict";
  6255. cc._RF.push(e, "38c620VyHFONacULG888Cay", "FissionData");
  6256. var o, i = this && this.__extends || (o = function(t, e) {
  6257. return (o = Object.setPrototypeOf || {
  6258. __proto__: []
  6259. } instanceof Array && function(t, e) {
  6260. t.__proto__ = e;
  6261. } || function(t, e) {
  6262. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  6263. })(t, e);
  6264. }, function(t, e) {
  6265. o(t, e);
  6266. function n() {
  6267. this.constructor = t;
  6268. }
  6269. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  6270. });
  6271. Object.defineProperty(n, "__esModule", {
  6272. value: !0
  6273. });
  6274. n.FissionData = void 0;
  6275. var a = function(t) {
  6276. i(e, t);
  6277. function e() {
  6278. return null !== t && t.apply(this, arguments) || this;
  6279. }
  6280. return e;
  6281. }(t("../../../mk/data/Data").Data);
  6282. n.FissionData = a;
  6283. cc._RF.pop();
  6284. }, {
  6285. "../../../mk/data/Data": "Data"
  6286. } ],
  6287. FlyNode: [ function(t, e, n) {
  6288. "use strict";
  6289. cc._RF.push(e, "fa881XikspIl7sX7YCTSOCC", "FlyNode");
  6290. var o, i = this && this.__extends || (o = function(t, e) {
  6291. return (o = Object.setPrototypeOf || {
  6292. __proto__: []
  6293. } instanceof Array && function(t, e) {
  6294. t.__proto__ = e;
  6295. } || function(t, e) {
  6296. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  6297. })(t, e);
  6298. }, function(t, e) {
  6299. o(t, e);
  6300. function n() {
  6301. this.constructor = t;
  6302. }
  6303. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  6304. }), a = this && this.__decorate || function(t, e, n, o) {
  6305. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  6306. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  6307. return a > 3 && r && Object.defineProperty(e, n, r), r;
  6308. };
  6309. Object.defineProperty(n, "__esModule", {
  6310. value: !0
  6311. });
  6312. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  6313. i(e, t);
  6314. function e() {
  6315. var e = null !== t && t.apply(this, arguments) || this;
  6316. e.start_move_time = .1;
  6317. e.end_move_time = .3;
  6318. e.item_count = 10;
  6319. e.fly_data = {
  6320. node_p: null,
  6321. item_count: e.item_count,
  6322. item_scale: [ .3, 1 ],
  6323. item_sf: null,
  6324. start_pos: cc.Vec2.ZERO,
  6325. end_pos: cc.Vec2.ZERO,
  6326. complete_call: null
  6327. };
  6328. e.node_fly = null;
  6329. e.arr_item = [];
  6330. return e;
  6331. }
  6332. e.prototype.onLoad = function() {
  6333. this.node.on("ui-fly-node", this.getNodeProgress, this);
  6334. };
  6335. e.prototype.getNodeProgress = function(t) {
  6336. t.node_p && (this.fly_data.node_p = t.node_p);
  6337. t.item_count && (this.fly_data.item_count = t.item_count);
  6338. t.item_scale && (this.fly_data.item_scale = t.item_scale);
  6339. t.item_sf && (this.fly_data.item_sf = t.item_sf);
  6340. t.start_pos && (this.fly_data.start_pos = t.start_pos);
  6341. t.end_pos && (this.fly_data.end_pos = t.end_pos);
  6342. t.complete_call && (this.fly_data.complete_call = t.complete_call);
  6343. var e = this.fly_data.node_p, n = this.fly_data.item_count, o = this.fly_data.item_scale, i = this.fly_data.item_sf, a = this.fly_data.start_pos;
  6344. if (!this.node_fly) {
  6345. this.node_fly = new cc.Node("node_fly");
  6346. this.node_fly.parent = e;
  6347. }
  6348. for (var r = 0; r < n; r++) {
  6349. var c = this.arr_item.shift();
  6350. if (!c || c && c.parent) {
  6351. c = new cc.Node("node_item");
  6352. this.arr_item.push(c);
  6353. }
  6354. c.stopAllActions();
  6355. c.parent = this.node_fly;
  6356. c.setPosition(a);
  6357. c.angle = this.range(-45, 45, !0);
  6358. var s = this.range(o[0], o[1], !1);
  6359. c.scale = s;
  6360. var l = cc.v2(this.range(-1, 1, !1), this.range(-1, 1, !1));
  6361. l = l.normalize();
  6362. var u = cc.v2(this.range(10, 80, !1) * l.x, this.range(10, 80, !1) * l.y), p = a.add(u);
  6363. (c.getComponent(cc.Sprite) || c.addComponent(cc.Sprite)).spriteFrame = i;
  6364. this.movePos(c, p);
  6365. }
  6366. };
  6367. e.prototype.movePos = function(t, e) {
  6368. var n = this, o = this.range(.3, 1, !1), i = cc.tween().to(o, {
  6369. position: new cc.Vec2(e)
  6370. }, {
  6371. easing: "sineOut"
  6372. }), a = cc.tween().delay(1.5 * this.start_move_time), r = cc.tween().to(this.end_move_time, {
  6373. position: this.fly_data.end_pos
  6374. }, {
  6375. easing: "sineOut"
  6376. }), c = cc.tween().to(this.end_move_time, {
  6377. scale: 1
  6378. }), s = cc.tween().to(this.end_move_time, {
  6379. angle: 0
  6380. }), l = cc.tween().parallel(r, c, s), u = cc.tween().call(function() {
  6381. n.fly_data.complete_call && n.fly_data.complete_call();
  6382. n.fly_data.complete_call = null;
  6383. n.arr_item.push(t);
  6384. t.removeFromParent();
  6385. });
  6386. cc.tween(t).then(i).then(a).then(l).then(u).start();
  6387. };
  6388. e.prototype.range = function(t, e, n) {
  6389. void 0 === n && (n = !0);
  6390. var o = e - t;
  6391. if (o > 0) {
  6392. var i = t + 16777215 * Math.random() % o;
  6393. return n ? Math.floor(i) : i;
  6394. }
  6395. return t;
  6396. };
  6397. e.prototype.onDestroy = function() {
  6398. for (var t = this.arr_item.length, e = 0; e < t; e++) if (cc.isValid(this.arr_item[0])) {
  6399. this.arr_item[0].destroy();
  6400. this.arr_item.shift();
  6401. }
  6402. };
  6403. a([ s({
  6404. displayName: "起始阶段消耗时间"
  6405. }) ], e.prototype, "start_move_time", void 0);
  6406. a([ s({
  6407. displayName: "结束阶段消耗时间"
  6408. }) ], e.prototype, "end_move_time", void 0);
  6409. a([ s({
  6410. displayName: "item默认数量"
  6411. }) ], e.prototype, "item_count", void 0);
  6412. return a([ c ], e);
  6413. }(cc.Component);
  6414. n.default = l;
  6415. cc._RF.pop();
  6416. }, {} ],
  6417. FlySystem: [ function(t, e, n) {
  6418. "use strict";
  6419. cc._RF.push(e, "6ac05b5UF5BP4yjhbw+c0f0", "FlySystem");
  6420. var o, i = this && this.__extends || (o = function(t, e) {
  6421. return (o = Object.setPrototypeOf || {
  6422. __proto__: []
  6423. } instanceof Array && function(t, e) {
  6424. t.__proto__ = e;
  6425. } || function(t, e) {
  6426. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  6427. })(t, e);
  6428. }, function(t, e) {
  6429. o(t, e);
  6430. function n() {
  6431. this.constructor = t;
  6432. }
  6433. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  6434. }), a = this && this.__decorate || function(t, e, n, o) {
  6435. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  6436. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  6437. return a > 3 && r && Object.defineProperty(e, n, r), r;
  6438. }, r = this && this.__awaiter || function(t, e, n, o) {
  6439. return new (n || (n = Promise))(function(i, a) {
  6440. function r(t) {
  6441. try {
  6442. s(o.next(t));
  6443. } catch (t) {
  6444. a(t);
  6445. }
  6446. }
  6447. function c(t) {
  6448. try {
  6449. s(o.throw(t));
  6450. } catch (t) {
  6451. a(t);
  6452. }
  6453. }
  6454. function s(t) {
  6455. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  6456. t(e);
  6457. })).then(r, c);
  6458. var e;
  6459. }
  6460. s((o = o.apply(t, e || [])).next());
  6461. });
  6462. }, c = this && this.__generator || function(t, e) {
  6463. var n, o, i, a, r = {
  6464. label: 0,
  6465. sent: function() {
  6466. if (1 & i[0]) throw i[1];
  6467. return i[1];
  6468. },
  6469. trys: [],
  6470. ops: []
  6471. };
  6472. return a = {
  6473. next: c(0),
  6474. throw: c(1),
  6475. return: c(2)
  6476. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  6477. return this;
  6478. }), a;
  6479. function c(t) {
  6480. return function(e) {
  6481. return s([ t, e ]);
  6482. };
  6483. }
  6484. function s(a) {
  6485. if (n) throw new TypeError("Generator is already executing.");
  6486. for (;r; ) try {
  6487. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  6488. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  6489. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  6490. switch (a[0]) {
  6491. case 0:
  6492. case 1:
  6493. i = a;
  6494. break;
  6495. case 4:
  6496. r.label++;
  6497. return {
  6498. value: a[1],
  6499. done: !1
  6500. };
  6501. case 5:
  6502. r.label++;
  6503. o = a[1];
  6504. a = [ 0 ];
  6505. continue;
  6506. case 7:
  6507. a = r.ops.pop();
  6508. r.trys.pop();
  6509. continue;
  6510. default:
  6511. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  6512. r = 0;
  6513. continue;
  6514. }
  6515. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  6516. r.label = a[1];
  6517. break;
  6518. }
  6519. if (6 === a[0] && r.label < i[1]) {
  6520. r.label = i[1];
  6521. i = a;
  6522. break;
  6523. }
  6524. if (i && r.label < i[2]) {
  6525. r.label = i[2];
  6526. r.ops.push(a);
  6527. break;
  6528. }
  6529. i[2] && r.ops.pop();
  6530. r.trys.pop();
  6531. continue;
  6532. }
  6533. a = e.call(t, r);
  6534. } catch (t) {
  6535. a = [ 6, t ];
  6536. o = 0;
  6537. } finally {
  6538. n = i = 0;
  6539. }
  6540. if (5 & a[0]) throw a[1];
  6541. return {
  6542. value: a[0] ? a[1] : void 0,
  6543. done: !0
  6544. };
  6545. }
  6546. };
  6547. Object.defineProperty(n, "__esModule", {
  6548. value: !0
  6549. });
  6550. var s = t("../../game/data/GameData"), l = cc._decorator.ccclass, u = function(t) {
  6551. i(e, t);
  6552. function e() {
  6553. var e = null !== t && t.apply(this, arguments) || this;
  6554. e.is_new_cb = !0;
  6555. return e;
  6556. }
  6557. e.prototype.onLoad = function() {
  6558. mk.fly = this;
  6559. };
  6560. e.prototype.PlayCoinAnim = function(t, e, n, o, i) {
  6561. void 0 === t && (t = 0);
  6562. void 0 === o && (o = "");
  6563. void 0 === i && (i = null);
  6564. return r(this, void 0, void 0, function() {
  6565. var a, r, s, l, u, p, d;
  6566. return c(this, function(c) {
  6567. switch (c.label) {
  6568. case 0:
  6569. a = 0;
  6570. c.label = 1;
  6571. case 1:
  6572. return a < e ? [ 4, mk.pool.getPrefab("game/prefab/coin") ] : [ 3, 5 ];
  6573. case 2:
  6574. r = c.sent();
  6575. s = "game/texture/coin/" + t;
  6576. return [ 4, mk.loader.load(s, cc.SpriteFrame) ];
  6577. case 3:
  6578. l = c.sent();
  6579. r.getComponent(cc.Sprite).spriteFrame = l;
  6580. r.setParent(this.node);
  6581. r.scale = mk.math.random(.56, .84, !1);
  6582. r.angle = mk.math.random(-45, 45, !1);
  6583. u = (u = cc.v2(mk.math.random(-1, 1, !1), mk.math.random(-1, 1, !1))).normalize();
  6584. p = cc.v2(mk.math.random(10, 160, !1) * u.x, mk.math.random(10, 160, !1) * u.y);
  6585. d = n.add(p);
  6586. r.setPosition(n);
  6587. this.FlyIn(t, r, d, o, i);
  6588. c.label = 4;
  6589. case 4:
  6590. a++;
  6591. return [ 3, 1 ];
  6592. case 5:
  6593. this.is_new_cb = !0;
  6594. return [ 2 ];
  6595. }
  6596. });
  6597. });
  6598. };
  6599. e.prototype.FlyIn = function(t, e, n, o, i) {
  6600. var a = this;
  6601. void 0 === o && (o = null);
  6602. void 0 === i && (i = null);
  6603. cc.tween(e).to(mk.math.random(.3, .6, !1), {
  6604. position: cc.v3(n)
  6605. }, cc.easeSineInOut()).call(function() {
  6606. a.FlyOut(t, e, o, i);
  6607. }).start();
  6608. };
  6609. e.prototype.FlyOut = function(t, e, n, o) {
  6610. var i = this;
  6611. void 0 === o && (o = null);
  6612. var a = mk.math.random(.3, 1, !1);
  6613. cc.tween(e).to(a, {
  6614. scale: .8
  6615. }).start();
  6616. var r = null, c = null;
  6617. if ("string" == typeof n) {
  6618. if ("" == n) {
  6619. var l = "";
  6620. if (t == s.RewardType.redBag) l = "Canvas/界面层/game/node_ui/顶部个人信息/红包币按钮/icon_hb"; else {
  6621. if (t != s.RewardType.pigRmb) {
  6622. mk.pool.return("game/prefab/coin", e);
  6623. return;
  6624. }
  6625. l = "Canvas/界面层/game/node_ui/顶部个人信息/金猪币按钮/icon_zb";
  6626. }
  6627. n = l;
  6628. }
  6629. var u = (c = cc.find(n)).parent.convertToWorldSpaceAR(c.getPosition());
  6630. r = this.node.convertToNodeSpaceAR(u);
  6631. } else r = this.node.convertToNodeSpaceAR(n);
  6632. cc.tween(e).to(a, {
  6633. position: cc.v3(r)
  6634. }, cc.easeSineOut()).call(function() {
  6635. console.log("end_pos ", e.position);
  6636. mk.pool.return("game/prefab/coin", e);
  6637. c && cc.tween(c).to(.1, {
  6638. scale: 1.2
  6639. }).to(.05, {
  6640. scale: 1
  6641. }).start();
  6642. if (null != o) {
  6643. i.is_new_cb && o();
  6644. i.is_new_cb = !1;
  6645. }
  6646. i.iconScale(t);
  6647. }).start();
  6648. };
  6649. e.prototype.iconScale = function(t) {
  6650. var e;
  6651. 1 === t ? e = gData.gameData.gameStyle.icon_hb : 3 === t && (e = gData.gameData.gameStyle.icon_zb);
  6652. if (e) {
  6653. var n = cc.tween().to(.05, {
  6654. scale: .9
  6655. }), o = cc.tween().to(.05, {
  6656. scale: 1
  6657. }), i = cc.tween().sequence(n, o);
  6658. cc.tween(e).then(i).repeat(2).start();
  6659. }
  6660. };
  6661. return a([ l ], e);
  6662. }(cc.Component);
  6663. n.default = u;
  6664. cc._RF.pop();
  6665. }, {
  6666. "../../game/data/GameData": "GameData"
  6667. } ],
  6668. ForceUpdate: [ function(t, e, n) {
  6669. "use strict";
  6670. cc._RF.push(e, "4cd23/2Uq9EU4w1e97Etnp0", "ForceUpdate");
  6671. var o, i = this && this.__extends || (o = function(t, e) {
  6672. return (o = Object.setPrototypeOf || {
  6673. __proto__: []
  6674. } instanceof Array && function(t, e) {
  6675. t.__proto__ = e;
  6676. } || function(t, e) {
  6677. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  6678. })(t, e);
  6679. }, function(t, e) {
  6680. o(t, e);
  6681. function n() {
  6682. this.constructor = t;
  6683. }
  6684. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  6685. }), a = this && this.__decorate || function(t, e, n, o) {
  6686. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  6687. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  6688. return a > 3 && r && Object.defineProperty(e, n, r), r;
  6689. };
  6690. Object.defineProperty(n, "__esModule", {
  6691. value: !0
  6692. });
  6693. var r = t("../../../mk/system/JsbSystem"), c = t("../../data/AppData"), s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
  6694. i(e, t);
  6695. function e() {
  6696. var e = null !== t && t.apply(this, arguments) || this;
  6697. e.labUpdate = null;
  6698. e.labFix = null;
  6699. e.btnSure = null;
  6700. e.btnCancel = null;
  6701. e.fileProgress = null;
  6702. e.labPro = null;
  6703. return e;
  6704. }
  6705. e.prototype.start = function() {
  6706. this.setText();
  6707. };
  6708. e.prototype.clickDownLoad = function() {
  6709. var t = this;
  6710. mk.audio.playEffect("ef_button_click");
  6711. this.btnSure.active = !1;
  6712. this.btnCancel.active = !1;
  6713. this.fileProgress.node.parent.active = !0;
  6714. var e = gData.appData.installUrl, n = e.split("/"), o = n[n.length - 1];
  6715. console.log("apkName ", o);
  6716. var i = o.replace(".apk", "");
  6717. if (r.default.isFileExist(i)) {
  6718. console.log("installUrl ", i);
  6719. r.default.installApk(i);
  6720. return null;
  6721. }
  6722. r.default.downFile2Local(e, o, function() {
  6723. setTimeout(function() {
  6724. r.default.installApk(i);
  6725. }, 1);
  6726. }, function() {
  6727. mk.tip.pop("下载失败,请检查网络后重试");
  6728. t.fileProgress.node.parent.active = !1;
  6729. t.fileProgress.fillRange = 0;
  6730. t.labPro.string = "0%";
  6731. t.btnSure.active = !0;
  6732. t.btnCancel.active = !0;
  6733. }, function(e, n, o) {
  6734. var i = n / o;
  6735. t.setPro(i);
  6736. });
  6737. };
  6738. e.prototype.setPro = function(t) {
  6739. this.labPro.string = Math.floor(100 * t) + "%";
  6740. this.fileProgress.fillRange = t;
  6741. };
  6742. e.prototype.clickSkip = function() {
  6743. mk.audio.playEffect(s.AUDIO_TYPE.button);
  6744. mk.ui.closePanel(this.node.name);
  6745. gData.appData.updateState = c.UpdateState.ForceUpdateFinish;
  6746. };
  6747. e.prototype.setText = function() {
  6748. this.labUpdate.string = gData.appData.updateDes;
  6749. this.labFix.string = gData.appData.fixDes;
  6750. };
  6751. a([ p(cc.Label) ], e.prototype, "labUpdate", void 0);
  6752. a([ p(cc.Label) ], e.prototype, "labFix", void 0);
  6753. a([ p(cc.Node) ], e.prototype, "btnSure", void 0);
  6754. a([ p(cc.Node) ], e.prototype, "btnCancel", void 0);
  6755. a([ p(cc.Sprite) ], e.prototype, "fileProgress", void 0);
  6756. a([ p(cc.Label) ], e.prototype, "labPro", void 0);
  6757. return a([ u ], e);
  6758. }(cc.Component);
  6759. n.default = d;
  6760. cc._RF.pop();
  6761. }, {
  6762. "../../../mk/system/JsbSystem": "JsbSystem",
  6763. "../../data/AppData": "AppData",
  6764. "../../data/GameData": "GameData"
  6765. } ],
  6766. FrameAnimation: [ function(t, e, n) {
  6767. "use strict";
  6768. cc._RF.push(e, "efc323JaDlLPYgh9HsZn0PL", "FrameAnimation");
  6769. var o, i = this && this.__extends || (o = function(t, e) {
  6770. return (o = Object.setPrototypeOf || {
  6771. __proto__: []
  6772. } instanceof Array && function(t, e) {
  6773. t.__proto__ = e;
  6774. } || function(t, e) {
  6775. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  6776. })(t, e);
  6777. }, function(t, e) {
  6778. o(t, e);
  6779. function n() {
  6780. this.constructor = t;
  6781. }
  6782. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  6783. }), a = this && this.__decorate || function(t, e, n, o) {
  6784. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  6785. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  6786. return a > 3 && r && Object.defineProperty(e, n, r), r;
  6787. };
  6788. Object.defineProperty(n, "__esModule", {
  6789. value: !0
  6790. });
  6791. var r = cc._decorator, c = r.ccclass, s = r.property, l = r.executeInEditMode, u = r.playOnFocus, p = function(t) {
  6792. i(e, t);
  6793. function e() {
  6794. var e = null !== t && t.apply(this, arguments) || this;
  6795. e.images = [];
  6796. e.frameTime = .1;
  6797. e.playTimes = 0;
  6798. e.reverse = !1;
  6799. e.autoPlayOnLoad = !0;
  6800. e.autoDestroy = !1;
  6801. e.onFrameCall = new cc.Component.EventHandler();
  6802. e.onCompleteCall = new cc.Component.EventHandler();
  6803. e._edit_play = !1;
  6804. e.edit_playing = !1;
  6805. e.frameNum = 0;
  6806. e.frameIndex = 0;
  6807. e.nextFrameIndex = 0;
  6808. e.running = !0;
  6809. e.time = 0;
  6810. e.currentTimes = 0;
  6811. return e;
  6812. }
  6813. Object.defineProperty(e.prototype, "edit_play", {
  6814. get: function() {
  6815. if (this._edit_play && !this.edit_playing) {
  6816. this.edit_playing = !0;
  6817. this.play();
  6818. }
  6819. this.running = this._edit_play;
  6820. return this._edit_play;
  6821. },
  6822. set: function(t) {
  6823. this._edit_play = t;
  6824. },
  6825. enumerable: !1,
  6826. configurable: !0
  6827. });
  6828. e.prototype.onLoad = function() {
  6829. this.comp_spr = this.getComponent(cc.Sprite);
  6830. };
  6831. e.prototype.start = function() {
  6832. 0 != this.images.length && (this.frameNum = this.images.length);
  6833. if (this.reverse) {
  6834. this.frameIndex = this.frameNum - 1;
  6835. this.nextFrameIndex = this.frameNum - 1;
  6836. }
  6837. this.running = this.autoPlayOnLoad;
  6838. };
  6839. e.prototype.update = function(t) {
  6840. if (this.running && 0 != this.images.length) if (0 != this.playTimes && this.currentTimes > this.playTimes) this.running = !1; else {
  6841. this.time -= t;
  6842. if (this.time <= 0) {
  6843. this.time = this.frameTime;
  6844. if (this.reverse) {
  6845. this.frameIndex = (this.nextFrameIndex + this.frameNum) % this.frameNum;
  6846. this.nextFrameIndex = this.frameIndex - 1;
  6847. } else {
  6848. this.frameIndex = this.nextFrameIndex % this.frameNum;
  6849. this.nextFrameIndex = this.frameIndex + 1;
  6850. }
  6851. this.playing();
  6852. 0 == this.frameIndex && this.playEnd();
  6853. }
  6854. }
  6855. };
  6856. e.prototype.playing = function() {
  6857. this.comp_spr.spriteFrame = this.images[this.frameIndex];
  6858. if (this.comp_spr.spriteFrame) {
  6859. var t = this.comp_spr.spriteFrame.getRect();
  6860. this.node.width = t.width;
  6861. this.node.height = t.height;
  6862. }
  6863. this.onFrameCall.emit([]);
  6864. null != this.frameCallback && this.frameCallback(this.frameIndex);
  6865. };
  6866. e.prototype.playEnd = function() {
  6867. this.currentTimes++;
  6868. this.node.emit("completeTimes", this.currentTimes);
  6869. null != this.completeTimesCallback && this.completeTimesCallback(this.currentTimes);
  6870. if (0 != this.playTimes && this.currentTimes > this.playTimes) {
  6871. this.node.emit("complete");
  6872. this.onCompleteCall.emit([]);
  6873. null != this.completeCallback && this.completeCallback();
  6874. this.autoDestroy && this.node.destroy();
  6875. this._edit_play = !1;
  6876. this.edit_playing = !1;
  6877. }
  6878. };
  6879. e.prototype.play = function(t, e) {
  6880. void 0 === t && (t = null);
  6881. void 0 === e && (e = null);
  6882. this.frameCallback = t;
  6883. this.completeCallback = e;
  6884. this.running = !0;
  6885. this.frameIndex = 0;
  6886. this.currentTimes = 0;
  6887. this.time = this.frameTime;
  6888. if (0 != this.images.length) {
  6889. this.frameNum = this.images.length;
  6890. if (this.reverse) {
  6891. this.frameIndex = this.frameNum - 1;
  6892. this.nextFrameIndex = this.frameNum - 1;
  6893. }
  6894. }
  6895. this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
  6896. this.comp_spr && (this.comp_spr.spriteFrame = this.images[0]);
  6897. if (this.comp_spr.spriteFrame) {
  6898. var n = this.comp_spr.spriteFrame.getRect();
  6899. this.node.width = n.width;
  6900. this.node.height = n.height;
  6901. }
  6902. };
  6903. e.prototype.gotoAndPlay = function(t) {
  6904. this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
  6905. this.running = !0;
  6906. this.frameIndex = t;
  6907. this.nextFrameIndex = t;
  6908. this.currentTimes = 0;
  6909. };
  6910. e.prototype.stop = function() {
  6911. this.running = !1;
  6912. };
  6913. e.prototype.gotoAndStop = function(t) {
  6914. this.frameIndex = t;
  6915. this.frameIndex < 0 && (this.frameIndex = 0);
  6916. this.frameIndex > this.images.length - 1 && (this.frameIndex = this.images.length - 1);
  6917. this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
  6918. this.comp_spr.spriteFrame = this.images[this.frameIndex];
  6919. if (this.comp_spr.spriteFrame) {
  6920. var e = this.comp_spr.spriteFrame.getRect();
  6921. this.node.width = e.width;
  6922. this.node.height = e.height;
  6923. }
  6924. this.running = !1;
  6925. };
  6926. e.prototype.isPlayEnd = function() {
  6927. return this.frameIndex == this.frameNum;
  6928. };
  6929. a([ s({
  6930. displayName: "精灵纹理",
  6931. type: cc.SpriteFrame
  6932. }) ], e.prototype, "images", void 0);
  6933. a([ s({
  6934. displayName: "每帧间隔"
  6935. }) ], e.prototype, "frameTime", void 0);
  6936. a([ s({
  6937. displayName: "播放次数"
  6938. }) ], e.prototype, "playTimes", void 0);
  6939. a([ s({
  6940. displayName: "是否倒播",
  6941. tooltip: "勾选,倒着播放,不钩,顺序播放"
  6942. }) ], e.prototype, "reverse", void 0);
  6943. a([ s({
  6944. displayName: "自动播放"
  6945. }) ], e.prototype, "autoPlayOnLoad", void 0);
  6946. a([ s({
  6947. displayName: "自动销毁",
  6948. tooltip: "播完自动销毁"
  6949. }) ], e.prototype, "autoDestroy", void 0);
  6950. a([ s({
  6951. displayName: "每帧回调",
  6952. type: cc.Component.EventHandler
  6953. }) ], e.prototype, "onFrameCall", void 0);
  6954. a([ s({
  6955. displayName: "结束回调",
  6956. type: cc.Component.EventHandler
  6957. }) ], e.prototype, "onCompleteCall", void 0);
  6958. a([ s({
  6959. displayName: "编辑器预览"
  6960. }) ], e.prototype, "edit_play", null);
  6961. return a([ c, l(), u() ], e);
  6962. }(cc.Component);
  6963. n.default = p;
  6964. cc._RF.pop();
  6965. }, {} ],
  6966. FunBtns: [ function(t, e, n) {
  6967. "use strict";
  6968. cc._RF.push(e, "3bf10Wxox5IQLcQoa17hGCb", "FunBtns");
  6969. var o, i = this && this.__extends || (o = function(t, e) {
  6970. return (o = Object.setPrototypeOf || {
  6971. __proto__: []
  6972. } instanceof Array && function(t, e) {
  6973. t.__proto__ = e;
  6974. } || function(t, e) {
  6975. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  6976. })(t, e);
  6977. }, function(t, e) {
  6978. o(t, e);
  6979. function n() {
  6980. this.constructor = t;
  6981. }
  6982. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  6983. }), a = this && this.__decorate || function(t, e, n, o) {
  6984. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  6985. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  6986. return a > 3 && r && Object.defineProperty(e, n, r), r;
  6987. };
  6988. Object.defineProperty(n, "__esModule", {
  6989. value: !0
  6990. });
  6991. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  6992. i(e, t);
  6993. function e() {
  6994. var e = null !== t && t.apply(this, arguments) || this;
  6995. e.btn1 = null;
  6996. e.btn2 = null;
  6997. e.btn3 = null;
  6998. e.btn4 = null;
  6999. e.btn5 = null;
  7000. e.btn6 = null;
  7001. e.btn7 = null;
  7002. e.btn8 = null;
  7003. e.btn_redeem = null;
  7004. return e;
  7005. }
  7006. e.prototype.onLoad = function() {
  7007. gData.gameData.funBtns = this;
  7008. };
  7009. e.prototype.start = function() {};
  7010. e.prototype.init = function() {
  7011. for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) {
  7012. var n = this["btn" + (e + 1)];
  7013. n && (n.active = "1" == t[e]);
  7014. }
  7015. this.updateRedeem();
  7016. };
  7017. e.prototype.updateRedeem = function() {
  7018. this.btn_redeem.active = gData.redeem.showBtn;
  7019. };
  7020. e.prototype.update = function() {
  7021. if (gData.redeem.init_btnChange) {
  7022. this.updateRedeem();
  7023. gData.redeem.init_btnChange = !1;
  7024. }
  7025. };
  7026. a([ s({
  7027. type: cc.Node,
  7028. displayName: "互推"
  7029. }) ], e.prototype, "btn1", void 0);
  7030. a([ s({
  7031. type: cc.Node,
  7032. displayName: "转盘"
  7033. }) ], e.prototype, "btn2", void 0);
  7034. a([ s({
  7035. type: cc.Node,
  7036. displayName: "裂变"
  7037. }) ], e.prototype, "btn3", void 0);
  7038. a([ s({
  7039. type: cc.Node,
  7040. displayName: "存钱罐"
  7041. }) ], e.prototype, "btn4", void 0);
  7042. a([ s({
  7043. type: cc.Node,
  7044. displayName: "福袋"
  7045. }) ], e.prototype, "btn5", void 0);
  7046. a([ s({
  7047. type: cc.Node,
  7048. displayName: "签到"
  7049. }) ], e.prototype, "btn6", void 0);
  7050. a([ s({
  7051. type: cc.Node,
  7052. displayName: "常规提现"
  7053. }) ], e.prototype, "btn7", void 0);
  7054. a([ s({
  7055. type: cc.Node,
  7056. displayName: "气泡红包组"
  7057. }) ], e.prototype, "btn8", void 0);
  7058. a([ s({
  7059. type: cc.Node,
  7060. displayName: "福利礼包"
  7061. }) ], e.prototype, "btn_redeem", void 0);
  7062. return a([ c ], e);
  7063. }(cc.Component);
  7064. n.default = l;
  7065. cc._RF.pop();
  7066. }, {} ],
  7067. GData: [ function(t, e, n) {
  7068. "use strict";
  7069. cc._RF.push(e, "c968fZ1+W1BDIpoLXI/0qsN", "GData");
  7070. Object.defineProperty(n, "__esModule", {
  7071. value: !0
  7072. });
  7073. n.Fun = void 0;
  7074. var o, i = t("./AppData"), a = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), u = t("./module/HelpData"), p = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), m = t("./module/CashNormalData"), _ = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), D = t("./module/RedBagCashData"), S = t("./module/RedCodeData"), A = t("./module/RedeemData"), w = t("./module/MoreGameData"), P = t("./module/SettingData"), O = t("./module/GuideData"), k = t("./module/GuideWeakData"), I = function() {
  7075. function t() {
  7076. this.init();
  7077. }
  7078. t.prototype.init = function() {
  7079. this.appData = new i.AppData();
  7080. this.loginData = new c.LoginData();
  7081. this.gameData = new a.GameData();
  7082. this.wechatData = new l.WechatData();
  7083. this.httpData = new r.HttpData();
  7084. this.adData = new y.AdData();
  7085. this.storageData = new s.StorageData();
  7086. this.guideData = new O.GuideData();
  7087. this.guideWeakData = new k.default();
  7088. this.reward = new g.RewardData();
  7089. this.help = new u.HelpData();
  7090. this.turnable = new d.TurnableData();
  7091. this.fission = new f.FissionData();
  7092. this.pigbank = new p.PigBankData();
  7093. this.sign = new h.SignData();
  7094. this.receiptNotice = new _.ReceiptNoticeData();
  7095. this.redBagCash = new D.RedBagCashData();
  7096. this.cashNormal = new m.CashNormalData();
  7097. this.setting = new P.SettingData();
  7098. this.moreGame = new w.MoreGameData();
  7099. this.blessingBag = new v.BlessingBagData();
  7100. this.cashPro = new b.default();
  7101. this.redCodeData = new S.default();
  7102. this.redeem = new A.default();
  7103. this.moduleData = new Map();
  7104. this.moduleData.set(o.moreGame, this.moreGame);
  7105. this.moduleData.set(o.turnable, this.turnable);
  7106. this.moduleData.set(o.fission, this.fission);
  7107. this.moduleData.set(o.pigbank, this.pigbank);
  7108. this.moduleData.set(o.blessingBag, this.blessingBag);
  7109. this.moduleData.set(o.sign, this.sign);
  7110. this.moduleData.set(o.cashNormal, this.cashNormal);
  7111. this.moduleData.set(o.redBagCash, this.redBagCash);
  7112. this.moduleData.set(o.redeem, this.redeem);
  7113. };
  7114. return t;
  7115. }();
  7116. (function(t) {
  7117. t[t.moreGame = 1] = "moreGame";
  7118. t[t.turnable = 2] = "turnable";
  7119. t[t.fission = 3] = "fission";
  7120. t[t.pigbank = 4] = "pigbank";
  7121. t[t.blessingBag = 5] = "blessingBag";
  7122. t[t.sign = 6] = "sign";
  7123. t[t.cashNormal = 7] = "cashNormal";
  7124. t[t.redBagCash = 8] = "redBagCash";
  7125. t[t.redeem = 9] = "redeem";
  7126. })(o = n.Fun || (n.Fun = {}));
  7127. window.gData = new I();
  7128. cc._RF.pop();
  7129. }, {
  7130. "./AdData": "AdData",
  7131. "./AppData": "AppData",
  7132. "./GameData": "GameData",
  7133. "./HttpData": "HttpData",
  7134. "./LoginData": "LoginData",
  7135. "./StorageData": "StorageData",
  7136. "./WechatData": "WechatData",
  7137. "./module/BlessingBagData": "BlessingBagData",
  7138. "./module/CashNormalData": "CashNormalData",
  7139. "./module/CashProData": "CashProData",
  7140. "./module/FissionData": "FissionData",
  7141. "./module/GuideData": "GuideData",
  7142. "./module/GuideWeakData": "GuideWeakData",
  7143. "./module/HelpData": "HelpData",
  7144. "./module/MoreGameData": "MoreGameData",
  7145. "./module/PigBankData": "PigBankData",
  7146. "./module/ReceiptNoticeData": "ReceiptNoticeData",
  7147. "./module/RedBagCashData": "RedBagCashData",
  7148. "./module/RedCodeData": "RedCodeData",
  7149. "./module/RedeemData": "RedeemData",
  7150. "./module/RewardData": "RewardData",
  7151. "./module/SettingData": "SettingData",
  7152. "./module/SignData": "SignData",
  7153. "./module/TurnableData": "TurnableData"
  7154. } ],
  7155. GameConst: [ function(t, e, n) {
  7156. "use strict";
  7157. cc._RF.push(e, "ed7fdH7Y8NJRYSt7QROjbfx", "GameConst");
  7158. var o, i = this && this.__extends || (o = function(t, e) {
  7159. return (o = Object.setPrototypeOf || {
  7160. __proto__: []
  7161. } instanceof Array && function(t, e) {
  7162. t.__proto__ = e;
  7163. } || function(t, e) {
  7164. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  7165. })(t, e);
  7166. }, function(t, e) {
  7167. o(t, e);
  7168. function n() {
  7169. this.constructor = t;
  7170. }
  7171. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  7172. }), a = this && this.__decorate || function(t, e, n, o) {
  7173. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  7174. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  7175. return a > 3 && r && Object.defineProperty(e, n, r), r;
  7176. };
  7177. Object.defineProperty(n, "__esModule", {
  7178. value: !0
  7179. });
  7180. var r = cc._decorator.ccclass, c = function(t) {
  7181. i(e, t);
  7182. function e() {
  7183. return null !== t && t.apply(this, arguments) || this;
  7184. }
  7185. n = e;
  7186. e.loadConfig = function() {
  7187. return new Promise(function(t) {
  7188. n.res_dirArr.forEach(function(e) {
  7189. cc.resources.loadDir(e, function() {}, function() {
  7190. n.config_level = cc.resources.get("game/config/level").json;
  7191. t(null);
  7192. });
  7193. });
  7194. });
  7195. };
  7196. var n;
  7197. e.res_dirArr = [ "game/config" ];
  7198. e.config_level = null;
  7199. e.iconIndex = 6;
  7200. e.maxIconIndex = 2;
  7201. e.col_num = 8;
  7202. e.row_num = 8;
  7203. return n = a([ r ], e);
  7204. }(cc.Component);
  7205. n.default = c;
  7206. cc._RF.pop();
  7207. }, {} ],
  7208. GameData: [ function(t, e, n) {
  7209. "use strict";
  7210. cc._RF.push(e, "0d160Vl85tFfpeQsIi4Jddb", "GameData");
  7211. var o = this && this.__awaiter || function(t, e, n, o) {
  7212. return new (n || (n = Promise))(function(i, a) {
  7213. function r(t) {
  7214. try {
  7215. s(o.next(t));
  7216. } catch (t) {
  7217. a(t);
  7218. }
  7219. }
  7220. function c(t) {
  7221. try {
  7222. s(o.throw(t));
  7223. } catch (t) {
  7224. a(t);
  7225. }
  7226. }
  7227. function s(t) {
  7228. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  7229. t(e);
  7230. })).then(r, c);
  7231. var e;
  7232. }
  7233. s((o = o.apply(t, e || [])).next());
  7234. });
  7235. }, i = this && this.__generator || function(t, e) {
  7236. var n, o, i, a, r = {
  7237. label: 0,
  7238. sent: function() {
  7239. if (1 & i[0]) throw i[1];
  7240. return i[1];
  7241. },
  7242. trys: [],
  7243. ops: []
  7244. };
  7245. return a = {
  7246. next: c(0),
  7247. throw: c(1),
  7248. return: c(2)
  7249. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  7250. return this;
  7251. }), a;
  7252. function c(t) {
  7253. return function(e) {
  7254. return s([ t, e ]);
  7255. };
  7256. }
  7257. function s(a) {
  7258. if (n) throw new TypeError("Generator is already executing.");
  7259. for (;r; ) try {
  7260. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  7261. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  7262. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  7263. switch (a[0]) {
  7264. case 0:
  7265. case 1:
  7266. i = a;
  7267. break;
  7268. case 4:
  7269. r.label++;
  7270. return {
  7271. value: a[1],
  7272. done: !1
  7273. };
  7274. case 5:
  7275. r.label++;
  7276. o = a[1];
  7277. a = [ 0 ];
  7278. continue;
  7279. case 7:
  7280. a = r.ops.pop();
  7281. r.trys.pop();
  7282. continue;
  7283. default:
  7284. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  7285. r = 0;
  7286. continue;
  7287. }
  7288. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  7289. r.label = a[1];
  7290. break;
  7291. }
  7292. if (6 === a[0] && r.label < i[1]) {
  7293. r.label = i[1];
  7294. i = a;
  7295. break;
  7296. }
  7297. if (i && r.label < i[2]) {
  7298. r.label = i[2];
  7299. r.ops.push(a);
  7300. break;
  7301. }
  7302. i[2] && r.ops.pop();
  7303. r.trys.pop();
  7304. continue;
  7305. }
  7306. a = e.call(t, r);
  7307. } catch (t) {
  7308. a = [ 6, t ];
  7309. o = 0;
  7310. } finally {
  7311. n = i = 0;
  7312. }
  7313. if (5 & a[0]) throw a[1];
  7314. return {
  7315. value: a[0] ? a[1] : void 0,
  7316. done: !0
  7317. };
  7318. }
  7319. };
  7320. Object.defineProperty(n, "__esModule", {
  7321. value: !0
  7322. });
  7323. n.VideoAdType = n.DataEventId = n.EVENT_TYPE = n.AUDIO_TYPE = n.RewardType = n.RewardState = n.GameProp = n.GameData = void 0;
  7324. var a, r = function() {
  7325. function t() {
  7326. this.dataFinish = !1;
  7327. this.savePropFinish = !1;
  7328. this.savePropsFinish = !1;
  7329. this.getPropsFnish = !1;
  7330. this.configs = {};
  7331. this.funOpenData = [];
  7332. this.gameData = null;
  7333. this.init_coin = !1;
  7334. this.updatePiggyBankValue = !1;
  7335. this.init_head = !1;
  7336. this.init_red_point = !0;
  7337. this.props = new Map();
  7338. this.pools = [ {
  7339. url: "game/prefab/tips",
  7340. num: 20
  7341. }, {
  7342. url: "game/prefab/coin",
  7343. num: 20
  7344. } ];
  7345. this.gameStyle = null;
  7346. this.funBtns = null;
  7347. }
  7348. t.prototype.init = function() {
  7349. return o(this, void 0, void 0, function() {
  7350. var t, e;
  7351. return i(this, function(n) {
  7352. switch (n.label) {
  7353. case 0:
  7354. t = {
  7355. versionCode: gData.appData.version
  7356. };
  7357. return [ 4, mk.http.sendData("getAllConfigInfo", t) ];
  7358. case 1:
  7359. if (0 != (e = n.sent()).errcode) {
  7360. -10003 != e.errcode && -20003 != e.errcode || gData.loginData.reload();
  7361. return [ 2 ];
  7362. }
  7363. mk.console.logSingle("getAllConfigInfo", e.data);
  7364. this.initConfigs(e.data);
  7365. t = {};
  7366. return [ 4, mk.http.sendData("getInfoCrypt", t) ];
  7367. case 2:
  7368. if (0 != (e = n.sent()).errcode) return [ 2 ];
  7369. mk.console.logSingle("getInfoCrypt", e.data);
  7370. this.initPlayerProp(e.data);
  7371. this.initProps(e.data.gameUserData);
  7372. gData.guideData.init();
  7373. gData.guideWeakData.init();
  7374. gData.moduleData.forEach(function(t) {
  7375. t.init();
  7376. });
  7377. t = {};
  7378. return [ 4, mk.http.sendData("user/adShowConfig", t) ];
  7379. case 3:
  7380. if (0 != (e = n.sent()).errcode) return [ 2 ];
  7381. this.adShowConfig = e.data;
  7382. mk.console.logSingle("user/adShowConfig", e.data);
  7383. this.dataFinish = !0;
  7384. return [ 2 ];
  7385. }
  7386. });
  7387. });
  7388. };
  7389. t.prototype.initConfigs = function(t) {
  7390. this.configs = t;
  7391. this.funOpenData = this.configs.ServerConfig.Functionswitch.split(",");
  7392. };
  7393. t.prototype.initPlayerProp = function(t) {
  7394. this.gameData = new c();
  7395. this.gameData.cashIndex = t.cashIndex;
  7396. this.gameData.gameUserData = t.gameUserData;
  7397. this.gameData.isSignInToday = t.isSignInToday;
  7398. this.gameData.isWithdrawable = t.isWithdrawable;
  7399. this.gameData.lastTime = t.lastTime;
  7400. this.gameData.loginDays = t.loginDays;
  7401. this.gameData.newPlayer = t.newPlayer;
  7402. this.gameData.initPiggyBank(t.piggyBank);
  7403. this.gameData.piggyBankCashTimes = t.piggyBankCashTimes;
  7404. this.gameData.redMoney = null == t.redMoney ? 0 : t.redMoney;
  7405. this.gameData.signInDay = t.signInDay;
  7406. this.gameData.totalPiggyBankCashTimes = t.totalPiggyBankCashTimes;
  7407. this.gameData.turntableTimes = t.turntableTimes;
  7408. this.gameData.userTuCaoInfo = t.userTuCaoInfo;
  7409. this.gameData.versioncfg = t.versioncfg;
  7410. this.gameData.isFirstRedMoney = t.isFirstRedMoney;
  7411. gData.adData.watchNumToday = null == t.dayVideoTimesForRedMoney ? 0 : t.dayVideoTimesForRedMoney;
  7412. };
  7413. t.prototype.setProp = function(t, e) {
  7414. return o(this, void 0, void 0, function() {
  7415. var n;
  7416. return i(this, function(o) {
  7417. switch (o.label) {
  7418. case 0:
  7419. n = {
  7420. key: t + "",
  7421. value: e + ""
  7422. };
  7423. this.props.set(t, e);
  7424. return [ 4, mk.http.sendData("savePlayerProp", n) ];
  7425. case 1:
  7426. o.sent();
  7427. this.savePropFinish = !0;
  7428. return [ 2 ];
  7429. }
  7430. });
  7431. });
  7432. };
  7433. t.prototype.setProps = function(t) {
  7434. return o(this, void 0, void 0, function() {
  7435. var e, n, o;
  7436. return i(this, function(i) {
  7437. switch (i.label) {
  7438. case 0:
  7439. e = {};
  7440. for (o = 0; o < t.length; o++) e[t[o].key + ""] = t[o].value + "";
  7441. n = {
  7442. needProp: e
  7443. };
  7444. for (o = 0; o < t.length; o++) this.props.set(t[o].key, t[o].value);
  7445. return [ 4, mk.http.sendData("saveAllPlayerProp", n) ];
  7446. case 1:
  7447. i.sent();
  7448. this.savePropsFinish = !0;
  7449. return [ 2 ];
  7450. }
  7451. });
  7452. });
  7453. };
  7454. t.prototype.getProp = function(t) {
  7455. if (null == this.props) return 0;
  7456. var e = this.props.get(t);
  7457. return null == e ? 0 : e;
  7458. };
  7459. t.prototype.getAllProps = function() {
  7460. return o(this, void 0, void 0, function() {
  7461. var t;
  7462. return i(this, function(e) {
  7463. switch (e.label) {
  7464. case 0:
  7465. return [ 4, mk.http.sendData("getAllPlayerProp", {}) ];
  7466. case 1:
  7467. if (0 != (t = e.sent()).errcode) return [ 2 ];
  7468. this.initProps(t.data);
  7469. this.getPropsFnish = !0;
  7470. return [ 2 ];
  7471. }
  7472. });
  7473. });
  7474. };
  7475. t.prototype.initProps = function(t) {
  7476. if (null != t) for (var e in t) this.props.set(parseInt(e), JSON.parse(t[e]));
  7477. };
  7478. t.prototype.resetProps = function() {
  7479. var t = [];
  7480. t.push({
  7481. key: a.sign_can,
  7482. value: 1
  7483. });
  7484. t.push({
  7485. key: a.isAutoOpenPanel,
  7486. value: 1
  7487. });
  7488. t.push({
  7489. key: a.isOpenBankOnCloseCash,
  7490. value: 0
  7491. });
  7492. this.setProps(t);
  7493. };
  7494. t.prototype.isNewPlayer = function() {
  7495. return 0 == this.getProp(a.newPlayer);
  7496. };
  7497. return t;
  7498. }();
  7499. n.GameData = r;
  7500. (function(t) {
  7501. t[t.newPlayer = 1] = "newPlayer";
  7502. t[t.guideID = 2] = "guideID";
  7503. t[t.isAutoOpenPanel = 3] = "isAutoOpenPanel";
  7504. t[t.isOpenBankOnCloseCash = 4] = "isOpenBankOnCloseCash";
  7505. t[t.videoTimes = 5] = "videoTimes";
  7506. t[t.cashTimes = 6] = "cashTimes";
  7507. t[t.levelNum = 10] = "levelNum";
  7508. t[t.hammerPropNum = 1001] = "hammerPropNum";
  7509. t[t.resetPropNum = 1002] = "resetPropNum";
  7510. t[t.changePropNum = 1003] = "changePropNum";
  7511. t[t.curTotalScore = 11] = "curTotalScore";
  7512. t[t.turnable_leftTimes = 20] = "turnable_leftTimes";
  7513. t[t.sign_last_bar = 120] = "sign_last_bar";
  7514. t[t.sign_can = 121] = "sign_can";
  7515. t[t.redBag_cash_bar = 220] = "redBag_cash_bar";
  7516. })(a = n.GameProp || (n.GameProp = {}));
  7517. var c = function() {
  7518. function t() {
  7519. this.gameUserData = 0;
  7520. this._isSignInToday = 0;
  7521. this._piggyBank = 0;
  7522. this._isWithdrawable = 0;
  7523. this.piggyBankCashTimes = 0;
  7524. this.totalPiggyBankCashTimes = 0;
  7525. this.cashIndex = 0;
  7526. this.lastTime = 0;
  7527. this.loginDays = 0;
  7528. this.newPlayer = 0;
  7529. this._redMoney = 0;
  7530. this._signInDay = 0;
  7531. this.turntableTimes = 0;
  7532. this.versioncfg = 0;
  7533. this.userTuCaoInfo = 0;
  7534. this.levelNum = 0;
  7535. this.hammerPropNum = 0;
  7536. this.resetPropNum = 0;
  7537. this.changePropNum = 0;
  7538. this.isFirstRedMoney = 0;
  7539. }
  7540. Object.defineProperty(t.prototype, "isSignInToday", {
  7541. get: function() {
  7542. return this._isSignInToday;
  7543. },
  7544. set: function(t) {
  7545. this._isSignInToday = t;
  7546. gData.sign.init_data = !0;
  7547. gData.gameData.init_red_point = !0;
  7548. },
  7549. enumerable: !1,
  7550. configurable: !0
  7551. });
  7552. Object.defineProperty(t.prototype, "piggyBank", {
  7553. get: function() {
  7554. return this._piggyBank;
  7555. },
  7556. set: function(t) {
  7557. if (this._piggyBank !== t && !(gData.gameData.gameData.isWithdrawable && t > 0)) {
  7558. this._piggyBank = t;
  7559. gData.gameData.init_coin = !0;
  7560. gData.pigbank.init_data = !0;
  7561. gData.gameData.init_red_point = !0;
  7562. }
  7563. },
  7564. enumerable: !1,
  7565. configurable: !0
  7566. });
  7567. t.prototype.initPiggyBank = function(t) {
  7568. this._piggyBank = t;
  7569. };
  7570. Object.defineProperty(t.prototype, "isWithdrawable", {
  7571. get: function() {
  7572. return this._isWithdrawable;
  7573. },
  7574. set: function(t) {
  7575. if (this._isWithdrawable != t) {
  7576. this._isWithdrawable = t;
  7577. gData.pigbank.init_data = !0;
  7578. gData.gameData.init_red_point = !0;
  7579. }
  7580. },
  7581. enumerable: !1,
  7582. configurable: !0
  7583. });
  7584. Object.defineProperty(t.prototype, "redMoney", {
  7585. get: function() {
  7586. return this._redMoney;
  7587. },
  7588. set: function(t) {
  7589. this._redMoney = t;
  7590. gData.gameData.init_coin = !0;
  7591. gData.gameData.init_red_point = !0;
  7592. },
  7593. enumerable: !1,
  7594. configurable: !0
  7595. });
  7596. Object.defineProperty(t.prototype, "signInDay", {
  7597. get: function() {
  7598. return this._signInDay;
  7599. },
  7600. set: function(t) {
  7601. if (this._signInDay !== t) {
  7602. this._signInDay = t;
  7603. gData.sign.init_data = !0;
  7604. }
  7605. },
  7606. enumerable: !1,
  7607. configurable: !0
  7608. });
  7609. return t;
  7610. }();
  7611. (function(t) {
  7612. t[t.none = 1] = "none";
  7613. t[t.lock = 2] = "lock";
  7614. t[t.unlock = 3] = "unlock";
  7615. })(n.RewardState || (n.RewardState = {}));
  7616. (function(t) {
  7617. t[t.redBag = 1] = "redBag";
  7618. t[t.rmb = 2] = "rmb";
  7619. t[t.pigRmb = 3] = "pigRmb";
  7620. })(n.RewardType || (n.RewardType = {}));
  7621. (function(t) {
  7622. t.bgm = "bgm";
  7623. t.pigBank = "pigBank";
  7624. t.missionBg = "missionBg";
  7625. t.rewardClose = "rewardClose";
  7626. t.rewardOpen = "rewardOpen";
  7627. t.reward = "reward";
  7628. t.receiptNotice = "receiptNotice";
  7629. t.button = "button";
  7630. t.turnableplay = "turnableplay";
  7631. t.turnplateDrawEnd = "turnplateDrawEnd";
  7632. t.music_startBg = "music_startBg";
  7633. t.music_gameBg = "music_gameBg";
  7634. t.ef_button_click = "ef_button_click";
  7635. t.ef_redPacket_open = "ef_redPacket_open";
  7636. t.ef_redPacket_come = "ef_redPacket_come";
  7637. t.ef_bonus4 = "ef_bonus4";
  7638. t.ef_bonus5 = "ef_bonus5";
  7639. t.ef_bonus6 = "ef_bonus6";
  7640. t.ef_bonus7 = "ef_bonus7";
  7641. t.ef_bonus8 = "ef_bonus8";
  7642. t.ef_eliminate = "ef_eliminate";
  7643. t.ef_eliminate_bonus = "ef_eliminate_bonus";
  7644. t.ef_win = "ef_win";
  7645. t.ef_change = "ef_change";
  7646. t.ef_refresh = "ef_refresh";
  7647. t.ef_fly = "ef_fly";
  7648. })(n.AUDIO_TYPE || (n.AUDIO_TYPE = {}));
  7649. (function(t) {
  7650. t.BACK_WxAuth = "BACK_WxAuth";
  7651. t.UPDATE_CashNum = "UPDATE_CashNum";
  7652. })(n.EVENT_TYPE || (n.EVENT_TYPE = {}));
  7653. (function(t) {
  7654. t.guide = "guide";
  7655. t.button_click = "button_click";
  7656. t.video_init = "video_init";
  7657. t.video_end = "video_end";
  7658. t.fudaiFunction = "fudaiFunction";
  7659. t.hutuiFunction = "hutuiFunction";
  7660. t.level = "level";
  7661. t.commonWithDrawal = "commonWithDrawl";
  7662. t.jarWithDrawal = "jarWithDrawal";
  7663. t.signWithDrawal = "signWithDrawal";
  7664. })(n.DataEventId || (n.DataEventId = {}));
  7665. (function(t) {
  7666. t.Null = "";
  7667. t.LevelScoreRedBag = "关卡消除红包";
  7668. t.StartQiPaoRedBag = "主界面气泡红包";
  7669. t.LevelQiPaoRedBag = "关卡气泡红包";
  7670. t.Turntable = "转盘视频";
  7671. t.Fudai = "福袋视频";
  7672. t.Sign = "签到视频";
  7673. })(n.VideoAdType || (n.VideoAdType = {}));
  7674. cc._RF.pop();
  7675. }, {} ],
  7676. GameLogic: [ function(t, e, n) {
  7677. "use strict";
  7678. cc._RF.push(e, "a5c2byFYkxCtII644LTIGSH", "GameLogic");
  7679. var o, i = this && this.__extends || (o = function(t, e) {
  7680. return (o = Object.setPrototypeOf || {
  7681. __proto__: []
  7682. } instanceof Array && function(t, e) {
  7683. t.__proto__ = e;
  7684. } || function(t, e) {
  7685. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  7686. })(t, e);
  7687. }, function(t, e) {
  7688. o(t, e);
  7689. function n() {
  7690. this.constructor = t;
  7691. }
  7692. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  7693. }), a = this && this.__decorate || function(t, e, n, o) {
  7694. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  7695. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  7696. return a > 3 && r && Object.defineProperty(e, n, r), r;
  7697. };
  7698. Object.defineProperty(n, "__esModule", {
  7699. value: !0
  7700. });
  7701. var r = t("../data/Enum"), c = t("../GamePlay"), s = t("../data/GameConst"), l = cc._decorator, u = l.ccclass, p = (l.property,
  7702. function(t) {
  7703. i(e, t);
  7704. function e() {
  7705. return null !== t && t.apply(this, arguments) || this;
  7706. }
  7707. n = e;
  7708. e.loadHeadImg = function(t, e, n) {
  7709. mk.console.log("[LoaderUtil] loadHeadImg ----------------------------------- ", t);
  7710. mk.loader.loadRemote(t + '+"?aaa=aa.jpg"', null).then(function(t) {
  7711. var o = t;
  7712. e.spriteFrame = new cc.SpriteFrame(o);
  7713. e.node.setContentSize(n, n);
  7714. });
  7715. };
  7716. e.getWorldPos = function(t) {
  7717. for (var e = t.x, n = t.y, o = t; o.parent; ) {
  7718. var i = o.parent;
  7719. mk.console.log("GameUtil", o.parent.name);
  7720. if ("Canvas" == i.name) break;
  7721. e += i.x;
  7722. n += i.y;
  7723. o = i;
  7724. }
  7725. mk.console.log("GameUtil", e, n);
  7726. return new cc.Vec2(e, n);
  7727. };
  7728. e.prototype.checkAroundCellItem = function(t, e, n, o, i) {
  7729. var a = 0, l = 0;
  7730. switch (t) {
  7731. case r.CHECKDIR.Above:
  7732. if (n <= 0) return null;
  7733. a = e;
  7734. l = n - 1;
  7735. break;
  7736. case r.CHECKDIR.Below:
  7737. if (n >= s.default.row_num - 1) return null;
  7738. a = e;
  7739. l = n + 1;
  7740. break;
  7741. case r.CHECKDIR.Left:
  7742. if (e <= 0) return null;
  7743. a = e - 1;
  7744. l = n;
  7745. break;
  7746. case r.CHECKDIR.Right:
  7747. if (e >= s.default.col_num - 1) return null;
  7748. a = e + 1;
  7749. l = n;
  7750. }
  7751. var u = c.default.Inst.cellItemDic[a][l];
  7752. if (u && 0 == u.ifRemoved && u.type === o) {
  7753. i && (u.ifRemoved = !0);
  7754. return new cc.Vec2(a, l);
  7755. }
  7756. return null;
  7757. };
  7758. e.checkAboveCellItem = function(t, e, n, o) {
  7759. if (!c.default.Inst || !c.default.Inst.cellItemDic) return null;
  7760. if (e <= 0) return null;
  7761. var i = c.default.Inst.cellItemDic[t][e - 1];
  7762. if (i && 0 == i.ifRemoved && i.type === n) {
  7763. o && (i.ifRemoved = !0);
  7764. return new cc.Vec2(t, e - 1);
  7765. }
  7766. return null;
  7767. };
  7768. e.checkBelowCellItem = function(t, e, n, o) {
  7769. if (!c.default.Inst || !c.default.Inst.cellItemDic) return null;
  7770. if (e >= s.default.row_num - 1) return null;
  7771. var i = c.default.Inst.cellItemDic[t][e + 1];
  7772. if (i && 0 == i.ifRemoved && i.type === n) {
  7773. o && (i.ifRemoved = !0);
  7774. return new cc.Vec2(t, e + 1);
  7775. }
  7776. return null;
  7777. };
  7778. e.checkLeftCellItem = function(t, e, n, o) {
  7779. if (!c.default.Inst || !c.default.Inst.cellItemDic) return null;
  7780. if (t <= 0) return null;
  7781. var i = c.default.Inst.cellItemDic[t - 1][e];
  7782. if (i && 0 == i.ifRemoved && i.type === n) {
  7783. o && (i.ifRemoved = !0);
  7784. return new cc.Vec2(t - 1, e);
  7785. }
  7786. return null;
  7787. };
  7788. e.checkRightCellItem = function(t, e, n, o) {
  7789. if (t >= s.default.col_num - 1) return null;
  7790. if (c.default.Inst && c.default.Inst.cellItemDic && c.default.Inst.cellItemDic[t + 1]) {
  7791. var i = c.default.Inst.cellItemDic[t + 1][e];
  7792. if (i && 0 == i.ifRemoved && i.type === n) {
  7793. o && (i.ifRemoved = !0);
  7794. return new cc.Vec2(t + 1, e);
  7795. }
  7796. return null;
  7797. }
  7798. };
  7799. e.getAroundSameType = function(t, e, o, i) {
  7800. void 0 === i && (i = !1);
  7801. return [ n.checkAboveCellItem(t, e, o, i), n.checkBelowCellItem(t, e, o, i), n.checkLeftCellItem(t, e, o, i), n.checkRightCellItem(t, e, o, i) ].filter(function(t) {
  7802. return null != t;
  7803. });
  7804. };
  7805. e.getCleanedVecList = function(t, e, n, o) {
  7806. var i = this;
  7807. void 0 === o && (o = !0);
  7808. this.getAroundSameType(t, e, n, o).forEach(function(t) {
  7809. if (-1 == c.default.Inst.cleanedVecArr.indexOf(t)) {
  7810. c.default.Inst.cleanedVecArr.push(t);
  7811. i.getCleanedVecList(t.x, t.y, n, o);
  7812. }
  7813. });
  7814. };
  7815. e.getCouldCleanVecList = function(t, e, n, o) {
  7816. var i = this;
  7817. void 0 === o && (o = !0);
  7818. this.getAroundSameType(t, e, n, o).forEach(function(t) {
  7819. if (-1 == c.default.Inst.couldCleanVecArr.indexOf(t)) {
  7820. c.default.Inst.couldCleanVecArr.push(t);
  7821. i.getCouldCleanVecList(t.x, t.y, n, o);
  7822. }
  7823. });
  7824. };
  7825. e.getCouldCleanVec = function() {
  7826. for (var t = Object.keys(c.default.Inst.cellItemDic), e = 0; e < t.length; e++) {
  7827. var n = Number(t[e]), o = c.default.Inst.cellItemDic[n];
  7828. if (o) for (var i = 0; i < o.length; i++) {
  7829. var a = o[i];
  7830. if (a) {
  7831. this.getCouldCleanVecList(a.x, a.y, a.type, !0);
  7832. if (c.default.Inst.couldCleanVecArr.length > 0) {
  7833. for (e = 0; e < c.default.Inst.couldCleanVecArr.length; e++) {
  7834. var r = c.default.Inst.couldCleanVecArr[e];
  7835. if (c.default.Inst.cellItemDic[r.x]) {
  7836. var s = c.default.Inst.cellItemDic[r.x][r.y];
  7837. s && (s.ifRemoved = !1);
  7838. }
  7839. }
  7840. return;
  7841. }
  7842. }
  7843. }
  7844. }
  7845. };
  7846. e.getAllCleanXIndex = function(t) {
  7847. for (var e = [], n = 0; n < t.length; n++) {
  7848. for (var o = t[n], i = c.default.Inst.cellItemDic[o], a = !0, r = s.default.row_num - 1; r >= 0; r--) if (i[r]) {
  7849. a = !1;
  7850. break;
  7851. }
  7852. a && e.push(o);
  7853. }
  7854. e.sort();
  7855. return e;
  7856. };
  7857. e.getLeftXIndexArr = function() {
  7858. for (var t = [], e = 0; e < s.default.col_num; e++) c.default.Inst.cellItemDic[e].filter(function(t) {
  7859. return null != t;
  7860. }).length > 0 && t.push(e);
  7861. return t;
  7862. };
  7863. var n;
  7864. return n = a([ u ], e);
  7865. }(cc.Component));
  7866. n.default = p;
  7867. cc._RF.pop();
  7868. }, {
  7869. "../GamePlay": "GamePlay",
  7870. "../data/Enum": "Enum",
  7871. "../data/GameConst": "GameConst"
  7872. } ],
  7873. GameOverUI: [ function(t, e, n) {
  7874. "use strict";
  7875. cc._RF.push(e, "4cc153gI99IXaay2d2I426x", "GameOverUI");
  7876. var o, i = this && this.__extends || (o = function(t, e) {
  7877. return (o = Object.setPrototypeOf || {
  7878. __proto__: []
  7879. } instanceof Array && function(t, e) {
  7880. t.__proto__ = e;
  7881. } || function(t, e) {
  7882. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  7883. })(t, e);
  7884. }, function(t, e) {
  7885. o(t, e);
  7886. function n() {
  7887. this.constructor = t;
  7888. }
  7889. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  7890. }), a = this && this.__decorate || function(t, e, n, o) {
  7891. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  7892. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  7893. return a > 3 && r && Object.defineProperty(e, n, r), r;
  7894. };
  7895. Object.defineProperty(n, "__esModule", {
  7896. value: !0
  7897. });
  7898. var r = t("../GamePlay"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
  7899. i(e, t);
  7900. function e() {
  7901. var e = null !== t && t.apply(this, arguments) || this;
  7902. e.node_bg = null;
  7903. return e;
  7904. }
  7905. e.prototype.start = function() {
  7906. this.node_bg.setContentSize(cc.winSize.width, cc.winSize.height);
  7907. mk.ad.showNative(4);
  7908. };
  7909. e.prototype.onClickClose = function() {
  7910. r.default.Inst.nextLevel();
  7911. mk.ad.destroyNativeAd();
  7912. mk.ui.closePanel(this.node.name);
  7913. };
  7914. e.prototype.onClickNextBtn = function() {
  7915. r.default.Inst.nextLevel();
  7916. mk.ad.destroyNativeAd();
  7917. mk.ui.closePanel(this.node.name);
  7918. };
  7919. e.prototype.onClickBackBtn = function() {
  7920. r.default.Inst.restart();
  7921. r.default.Inst.node.active = !1;
  7922. mk.ad.destroyNativeAd();
  7923. mk.ui.closePanel(this.node.name);
  7924. };
  7925. a([ l(cc.Node) ], e.prototype, "node_bg", void 0);
  7926. return a([ s ], e);
  7927. }(cc.Component);
  7928. n.default = u;
  7929. cc._RF.pop();
  7930. }, {
  7931. "../GamePlay": "GamePlay"
  7932. } ],
  7933. GamePlay: [ function(t, e, n) {
  7934. "use strict";
  7935. cc._RF.push(e, "a2b96K4aRpIurudLqdatOeW", "GamePlay");
  7936. var o, i = this && this.__extends || (o = function(t, e) {
  7937. return (o = Object.setPrototypeOf || {
  7938. __proto__: []
  7939. } instanceof Array && function(t, e) {
  7940. t.__proto__ = e;
  7941. } || function(t, e) {
  7942. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  7943. })(t, e);
  7944. }, function(t, e) {
  7945. o(t, e);
  7946. function n() {
  7947. this.constructor = t;
  7948. }
  7949. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  7950. }), a = this && this.__decorate || function(t, e, n, o) {
  7951. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  7952. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  7953. return a > 3 && r && Object.defineProperty(e, n, r), r;
  7954. };
  7955. Object.defineProperty(n, "__esModule", {
  7956. value: !0
  7957. });
  7958. var r = t("./view/uiItem/CellItem"), c = t("./data/Enum"), s = t("./mgr/PoolMgr"), l = t("./data/GameConst"), u = t("./util/GameLogic"), p = t("./view/effect/BonusTip"), d = t("./mgr/DataMgr"), h = t("./mgr/EffectMgr"), f = t("../game/data/GameData"), y = t("../mk/system/JsbSystem"), g = cc._decorator, m = g.ccclass, _ = g.property, v = function(t) {
  7959. i(e, t);
  7960. function e() {
  7961. var e = null !== t && t.apply(this, arguments) || this;
  7962. e.node_bg = null;
  7963. e.node_top = null;
  7964. e.label_level = null;
  7965. e.node_redPacketIcon = null;
  7966. e.btn_gameGetRed1 = null;
  7967. e.btn_gameGetRed2 = null;
  7968. e.btn_gameGetRed3 = null;
  7969. e.btn_gameGetRed4 = null;
  7970. e.node_content = null;
  7971. e.node_cellBg = null;
  7972. e.node_pauseBtn = null;
  7973. e.node_progressUI = null;
  7974. e.spr_progress = null;
  7975. e.node_resetBtn = null;
  7976. e.label_resetPropNum = null;
  7977. e.node_hammerBtn = null;
  7978. e.label_hammerPropNum = null;
  7979. e.node_changeBtn = null;
  7980. e.label_changePropNum = null;
  7981. e.node_changeCellItemUI = null;
  7982. e.node_effectUI = null;
  7983. e.node_levelRedPacketUI = null;
  7984. e.node_touchListenMask = null;
  7985. e.curProgressScore = 0;
  7986. e.curGetScore = 0;
  7987. e.targetScore = 0;
  7988. e.finalGetScore = 0;
  7989. e.addScoreSpeed = 4;
  7990. e.cellItemDic = {};
  7991. e.cellItemArr = [];
  7992. e.cleanedVecArr = [];
  7993. e.couldCleanVecArr = [];
  7994. e.cleanXIndexArr = [];
  7995. e.allCleanedXArr = [];
  7996. e.leftXIndexArr = [];
  7997. e.curSelectCellItem = null;
  7998. e.curClickCellItem = null;
  7999. e.curSelectPropBtn = null;
  8000. e.ifCouldClick = !0;
  8001. e.ifPass = !1;
  8002. e.ifGetPass = !1;
  8003. e.ifOpenScoreRedPacket = !1;
  8004. e.addCellItemFuc = null;
  8005. e.curXIndex = 0;
  8006. e.curYIndex = 7;
  8007. e.timeout_pass = null;
  8008. e.interval_ShowGuide = null;
  8009. e.interval_ShowInter = null;
  8010. return e;
  8011. }
  8012. n = e;
  8013. Object.defineProperty(e.prototype, "curPropType", {
  8014. get: function() {
  8015. return this._curPropType;
  8016. },
  8017. set: function(t) {
  8018. var e = null;
  8019. if (this.curSelectPropBtn) {
  8020. mk.console.log("this.curSelectPropBtn", this.curSelectPropBtn);
  8021. e = this.curSelectPropBtn.children[1].getComponent(cc.Animation);
  8022. }
  8023. if (t == c.PROPTYPE.Null) {
  8024. e && e.play("ani_normalBtn");
  8025. this.setPropBtnNormalTip(this.curSelectPropBtn);
  8026. } else {
  8027. e && e.play("ani_selectBtn");
  8028. this.setPropBtnSelectTip(this.curSelectPropBtn);
  8029. }
  8030. this._curPropType = t;
  8031. },
  8032. enumerable: !1,
  8033. configurable: !0
  8034. });
  8035. e.prototype.onLoad = function() {
  8036. n.Inst = this;
  8037. mk.event.register("event_guide", this.clickGuide, this);
  8038. };
  8039. e.prototype.clickGuide = function(t) {
  8040. "1_3" == t ? this.cellItemDic[0][0] && this.cellItemDic[0][0].onClick() : "1_5" == t && this.cellItemDic[1][1] && this.cellItemDic[1][1].onClick();
  8041. };
  8042. e.prototype.start = function() {
  8043. var t = this;
  8044. mk.data.sendDataEvent(f.DataEventId.level, "关卡开启");
  8045. s.default.Inst.initPoolPrefab();
  8046. l.default.loadConfig().then(function() {
  8047. t.adapt();
  8048. mk.audio.playMusic("music_gameBg");
  8049. gData.gameData.setProp(f.GameProp.curTotalScore, 0);
  8050. var e = gData.gameData.getProp(f.GameProp.curTotalScore);
  8051. t.curGetScore = e;
  8052. t.curProgressScore = e;
  8053. t.finalGetScore = e;
  8054. console.log("score", e);
  8055. t.initView();
  8056. t.initEvent();
  8057. t.intervalShowGuide();
  8058. t.intervalShowInter();
  8059. cc.tween(t.btn_gameGetRed1).delay(.2).to(1, {
  8060. y: 60
  8061. }, {
  8062. easing: ""
  8063. }).to(1, {
  8064. y: 0
  8065. }, {
  8066. easing: ""
  8067. }).union().repeatForever().start();
  8068. cc.tween(t.btn_gameGetRed2).delay(.4).to(1, {
  8069. y: 60
  8070. }, {
  8071. easing: ""
  8072. }).to(1, {
  8073. y: 0
  8074. }, {
  8075. easing: ""
  8076. }).union().repeatForever().start();
  8077. cc.tween(t.btn_gameGetRed3).delay(.2).to(1, {
  8078. y: 60
  8079. }, {
  8080. easing: ""
  8081. }).to(1, {
  8082. y: 0
  8083. }, {
  8084. easing: ""
  8085. }).union().repeatForever().start();
  8086. cc.tween(t.btn_gameGetRed4).delay(.4).to(1, {
  8087. y: 60
  8088. }, {
  8089. easing: ""
  8090. }).to(1, {
  8091. y: 0
  8092. }, {
  8093. easing: ""
  8094. }).union().repeatForever().start();
  8095. }).catch();
  8096. this.qipaoShow();
  8097. };
  8098. e.prototype.onEnable = function() {
  8099. mk.console.log("PROPTYPE[PROPTYPE.Change]", c.PROPTYPE.Change);
  8100. };
  8101. e.prototype.onDisable = function() {
  8102. this.curPropType = c.PROPTYPE.Null;
  8103. this.curSelectCellItem && this.curSelectCellItem.normal();
  8104. (this.node_changeCellItemUI.active = !0) && (this.node_changeCellItemUI.active = !1);
  8105. };
  8106. e.prototype.adapt = function() {
  8107. mk.console.log("进行适配!!!!!!!!!!!!!!!!");
  8108. this.node_bg.setContentSize(new cc.Size(cc.winSize.width, cc.winSize.height));
  8109. var t = gData.gameData.gameStyle.node_top_ui.parent.convertToWorldSpaceAR(gData.gameData.gameStyle.node_top_ui.getPosition()), e = this.node_top.parent.convertToNodeSpaceAR(t);
  8110. this.node_top.y = e.y - 40;
  8111. };
  8112. e.prototype.update = function() {
  8113. if (this.curProgressScore >= this.curGetScore) 0 == this.curProgressScore && (this.spr_progress.fillRange = 0); else if (this.curProgressScore >= this.targetScore) {
  8114. this.curProgressScore = this.curGetScore;
  8115. this.initScore();
  8116. } else {
  8117. var t = this.curProgressScore + this.addScoreSpeed;
  8118. if (t >= n.Inst.targetScore) {
  8119. var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.GetTargetScoreTip);
  8120. n.Inst.node_effectUI.addChild(e);
  8121. }
  8122. this.curProgressScore = t;
  8123. this.curProgressScore >= this.curGetScore && (this.curProgressScore = this.curGetScore);
  8124. this.initScore();
  8125. }
  8126. };
  8127. e.prototype.initView = function() {
  8128. this.initLevel();
  8129. this.initTotalScore();
  8130. this.initScore();
  8131. this.initProgress();
  8132. this.initHammerPropNum();
  8133. this.setPropBtnNormalTip(this.node_hammerBtn);
  8134. this.initResetPropNum();
  8135. this.setPropBtnNormalTip(this.node_resetBtn);
  8136. this.initChanegPropNum();
  8137. this.setPropBtnNormalTip(this.node_changeBtn);
  8138. this.initCellBg();
  8139. this.initCell();
  8140. };
  8141. e.prototype.initEvent = function() {
  8142. this.node_pauseBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  8143. this.node_resetBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  8144. this.node_hammerBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  8145. this.node_changeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  8146. this.node_redPacketIcon.on(cc.Node.EventType.TOUCH_END, this.onClickRedPacketIcon, this);
  8147. mk.event.register(f.EVENT_TYPE.BACK_WxAuth, this.onWxAuthBack, this);
  8148. };
  8149. e.prototype.initLevel = function() {
  8150. mk.console.log("[Game] levelNum", gData.gameData.getProp(f.GameProp.levelNum));
  8151. var t = gData.gameData.getProp(f.GameProp.levelNum);
  8152. this.label_level.string = "第" + (t + 1) + "关";
  8153. };
  8154. e.prototype.initTotalScore = function() {
  8155. if (!this.targetScore) {
  8156. var t = gData.gameData.getProp(f.GameProp.levelNum);
  8157. this.targetScore = 450 + t * (5 + Math.floor(15 * Math.random()));
  8158. this.addScoreSpeed = 2 * Math.floor(this.targetScore / 200) + 4;
  8159. mk.console.log("this.addScoreSpeed", this.addScoreSpeed);
  8160. }
  8161. };
  8162. e.prototype.initScore = function() {
  8163. this.initProgress();
  8164. };
  8165. e.prototype.initProgress = function() {
  8166. var t = this.curProgressScore / this.targetScore;
  8167. t = t > 1 ? 1 : t;
  8168. this.spr_progress.fillRange = t;
  8169. if (t >= 1) {
  8170. gData.reward.subType = 2;
  8171. mk.ad.videoAdType = f.VideoAdType.LevelScoreRedBag;
  8172. mk.ui.getCurOnPanel("rewardLuck") || mk.ui.openPanel("module/reward/rewardLuck");
  8173. }
  8174. };
  8175. e.prototype.initPropNum = function() {
  8176. this.initHammerPropNum();
  8177. this.initResetPropNum();
  8178. this.initChanegPropNum();
  8179. };
  8180. e.prototype.initHammerPropNum = function() {
  8181. var t = gData.gameData.getProp(f.GameProp.hammerPropNum);
  8182. this.label_hammerPropNum.string = t ? t.toString() : "+";
  8183. };
  8184. e.prototype.initResetPropNum = function() {
  8185. var t = gData.gameData.getProp(f.GameProp.resetPropNum);
  8186. this.label_resetPropNum.string = t ? t.toString() : "+";
  8187. };
  8188. e.prototype.initChanegPropNum = function() {
  8189. var t = gData.gameData.getProp(f.GameProp.changePropNum);
  8190. this.label_changePropNum.string = t ? t.toString() : "+";
  8191. };
  8192. e.prototype.initCellBg = function() {
  8193. for (var t = 0; t < l.default.col_num; t++) for (var e = 0; e < l.default.row_num; e++) {
  8194. var n = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.CellBg), o = cc.instantiate(n);
  8195. this.node_cellBg.addChild(o);
  8196. }
  8197. };
  8198. e.prototype.initCell = function() {
  8199. var t = this;
  8200. this.addCellItemFuc = function() {
  8201. t.addCellItem();
  8202. };
  8203. this.schedule(this.addCellItemFuc, .05);
  8204. };
  8205. e.prototype.addCellItem = function() {
  8206. mk.console.log("addCellItem!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
  8207. this.addColCellItem();
  8208. this.curXIndex++;
  8209. this.curXIndex >= l.default.col_num && this.unschedule(this.addCellItemFuc);
  8210. };
  8211. e.prototype.addColCellItem = function() {
  8212. this.cellItemDic[this.curXIndex] = [];
  8213. for (var t = l.default.row_num - 1; t >= 0; t--) {
  8214. var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.CellItem), n = cc.instantiate(e), o = n.getComponent(r.default);
  8215. o.init(this.curXIndex, t);
  8216. this.cellItemDic[this.curXIndex][t] = o;
  8217. this.cellItemArr.push(o);
  8218. this.node_content.addChild(n);
  8219. }
  8220. };
  8221. e.prototype.onClickBtn = function(t) {
  8222. this.intervalShowGuide();
  8223. this.intervalShowInter();
  8224. if (this.ifPass) h.default.Inst.addTip("通关结算啦,请稍后操作哈"); else {
  8225. mk.audio.playEffect("button");
  8226. switch (t.currentTarget) {
  8227. case this.node_pauseBtn:
  8228. this.onClickPauseBtn();
  8229. break;
  8230. case this.node_hammerBtn:
  8231. this.onClickHammerBtn();
  8232. break;
  8233. case this.node_changeBtn:
  8234. this.onClickChangeBtn();
  8235. break;
  8236. case this.node_resetBtn:
  8237. this.onClickResetBtn();
  8238. }
  8239. }
  8240. };
  8241. e.prototype.onClickPauseBtn = function() {
  8242. mk.ui.openPanel("game/prefab/uiPanel/PauseUI");
  8243. };
  8244. e.prototype.onClickShare = function() {
  8245. gData.loginData.isAuth ? y.default.sharePic() : y.default.WxAuth();
  8246. };
  8247. e.prototype.onClickResetBtn = function() {
  8248. this.setCurSelectPropBtn(this.node_resetBtn);
  8249. this.curPropType = c.PROPTYPE.Reset;
  8250. var t = gData.gameData.getProp(f.GameProp.resetPropNum);
  8251. if (!t || t <= 0) mk.ui.openPanel("game/prefab/uiPanel/GetPropUI"); else {
  8252. mk.audio.playEffect("ef_refresh");
  8253. for (var e = Object.keys(this.cellItemDic), o = 0; o < e.length; o++) for (var i = Number(e[o]), a = this.cellItemDic[i], r = 0; r < a.length; r++) {
  8254. var s = a[r];
  8255. s && s.reset();
  8256. }
  8257. d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
  8258. this.curPropType = c.PROPTYPE.Null;
  8259. }
  8260. };
  8261. e.prototype.onClickHammerBtn = function() {
  8262. this.setCurSelectPropBtn(this.node_hammerBtn);
  8263. this.curPropType = c.PROPTYPE.Hammer;
  8264. var t = gData.gameData.getProp(f.GameProp.hammerPropNum);
  8265. !t || t <= 0 ? mk.ui.openPanel("game/prefab/uiPanel/GetPropUI") : d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
  8266. };
  8267. e.prototype.onClickChangeBtn = function() {
  8268. this.setCurSelectPropBtn(this.node_changeBtn);
  8269. this.curPropType = c.PROPTYPE.Change;
  8270. var t = gData.gameData.getProp(f.GameProp.changePropNum);
  8271. !t || t <= 0 ? mk.ui.openPanel("game/prefab/uiPanel/GetPropUI") : d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
  8272. };
  8273. e.prototype.onClickLevelQiPaoPacket = function() {
  8274. mk.ad.videoAdType = f.VideoAdType.LevelQiPaoRedBag;
  8275. };
  8276. e.prototype.changeCellItemType = function(t) {
  8277. var e = this.curSelectCellItem.node.x + n.Inst.node_content.x, o = this.curSelectCellItem.node.y + n.Inst.node_content.y, i = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.Change);
  8278. i.setPosition(e, o);
  8279. n.Inst.node_effectUI.addChild(i);
  8280. this.curSelectCellItem.setType(t);
  8281. mk.audio.playEffect("ef_change");
  8282. this.curSelectCellItem = null;
  8283. };
  8284. e.prototype.setCurSelectPropBtn = function(t) {
  8285. if (this.curSelectPropBtn) {
  8286. var e = this.curSelectPropBtn.children[1];
  8287. if (e) {
  8288. var n = e.getComponent(cc.Animation);
  8289. n && n.play("ani_normalBtn");
  8290. }
  8291. this.setPropBtnNormalTip(this.curSelectPropBtn);
  8292. }
  8293. this.curSelectPropBtn = t;
  8294. };
  8295. e.prototype.setPropBtnNormalTip = function(t) {
  8296. if (t) {
  8297. var e = t.children[2];
  8298. if (e) {
  8299. var n = null;
  8300. switch (t) {
  8301. case this.node_hammerBtn:
  8302. n = this.label_hammerPropNum;
  8303. break;
  8304. case this.node_resetBtn:
  8305. n = this.label_resetPropNum;
  8306. break;
  8307. case this.node_changeBtn:
  8308. n = this.label_changePropNum;
  8309. }
  8310. var o = n.string, i = Number(o), a = e.getComponent(cc.Label);
  8311. mk.console.log("propBtn.name", t.name);
  8312. mk.console.log("num", i);
  8313. a.string = i && i >= 1 ? "" : "点我领取";
  8314. }
  8315. }
  8316. };
  8317. e.prototype.setPropBtnSelectTip = function(t) {
  8318. if (t) {
  8319. var e = t.children[2];
  8320. e && (e.getComponent(cc.Label).string = "道具使用中");
  8321. }
  8322. };
  8323. e.prototype.showChangeCellItemUI = function() {
  8324. var t = this.curSelectCellItem;
  8325. n.Inst.node_changeCellItemUI.active = !0;
  8326. n.Inst.node_changeCellItemUI.y = t.node.y + .5 * t.node.height + .5 * n.Inst.node_changeCellItemUI.height + 20;
  8327. };
  8328. e.prototype.onClickRedPacketIcon = function() {
  8329. 1 == this.spr_progress.fillRange ? h.default.Inst.addTip("已达成目标啦,过关发放哦") : h.default.Inst.addTip("达到目标分数,才能领取哦");
  8330. };
  8331. e.prototype.getStartRedPacketCellItem = function() {
  8332. for (var t = this, e = this.cellItemArr.concat(), n = [], o = 0; o < e.length; o++) {
  8333. var i = e[o];
  8334. if (i) {
  8335. u.default.getCouldCleanVecList(i.x, i.y, i.type, !0);
  8336. console.log("largeCellItemVec.length", n.length);
  8337. n.length < this.couldCleanVecArr.length && (n = this.couldCleanVecArr);
  8338. this.couldCleanVecArr.forEach(function(n) {
  8339. var o = l.default.col_num * n.x + (l.default.row_num - 1 - n.y);
  8340. e[o] = null;
  8341. t.cellItemDic[n.x][n.y].ifRemoved = !1;
  8342. });
  8343. this.couldCleanVecArr = [];
  8344. }
  8345. }
  8346. console.log("FC------------------------------------------------------------");
  8347. var a = n[mk.math.random(0, n.length - 1)], r = this.cellItemDic[a.x][a.y];
  8348. r.showRedPacket();
  8349. return r;
  8350. };
  8351. e.prototype.onWxAuthBack = function() {
  8352. if (this.node.active) {
  8353. this.restart();
  8354. mk.ui.getCurOnPanel("RedPacketUI") && mk.ui.closePanel("RedPacketUI");
  8355. }
  8356. this.initLevel();
  8357. this.initTotalScore();
  8358. this.initPropNum();
  8359. mk.event.remove(f.EVENT_TYPE.BACK_WxAuth, this.onWxAuthBack, this);
  8360. };
  8361. e.prototype.cleanCellItemByVecList = function() {
  8362. var t = this;
  8363. if (n.Inst.cleanedVecArr.length <= 0) {
  8364. this.ifCouldClick = !0;
  8365. h.default.Inst.addTip("点击两个或以上消除哦");
  8366. } else {
  8367. n.Inst.cleanedVecArr.length >= 4 ? mk.audio.playEffect("ef_eliminate_bonus") : mk.audio.playEffect("ef_eliminate");
  8368. mk.audio.playEffect("ef_fly");
  8369. for (var e = 0; e < n.Inst.cleanedVecArr.length; e++) {
  8370. var o = n.Inst.cleanedVecArr[e];
  8371. if (e == n.Inst.cleanedVecArr.length - 1) {
  8372. this.checkBonusNum(n.Inst.cleanedVecArr.length);
  8373. n.Inst.cellItemDic[o.x][o.y].recycle(!1, !0);
  8374. } else n.Inst.cellItemDic[o.x][o.y].recycle();
  8375. -1 == this.cleanXIndexArr.indexOf(o.x) && this.cleanXIndexArr.push(o.x);
  8376. }
  8377. this.cleanXIndexArr.sort();
  8378. this.allCleanedXArr = u.default.getAllCleanXIndex(this.cleanXIndexArr);
  8379. this.scheduleOnce(function() {
  8380. t.checkMoveDownCellItem();
  8381. }, .2);
  8382. }
  8383. };
  8384. e.prototype.checkMoveDownCellItem = function() {
  8385. mk.console.log("this.cleanXIndexArr", this.cleanXIndexArr);
  8386. for (var t = 0; t < this.cleanXIndexArr.length; t++) {
  8387. var e = this.cleanXIndexArr[t];
  8388. this.moveYCellItem(e);
  8389. }
  8390. };
  8391. e.prototype.moveYCellItem = function(t) {
  8392. var e = 0, o = 0, i = -1 != this.allCleanedXArr.indexOf(t), a = t == this.cleanXIndexArr[this.cleanXIndexArr.length - 1], r = n.Inst.cellItemDic[t], c = null;
  8393. if (a) {
  8394. this.cleanedVecArr.filter(function(e) {
  8395. return e.x == t;
  8396. }).sort()[0].y;
  8397. for (var s = 0; s < l.default.row_num; s++) if (r && (u = r[s])) {
  8398. c = u.y;
  8399. break;
  8400. }
  8401. }
  8402. if (a && i) this.checkMoveLeftCellItem(); else for (s = l.default.row_num - 1; s >= 0; s--) if (r) {
  8403. var u;
  8404. if (u = r[s]) {
  8405. a && s == c ? u.moveDown(t, s + o, e, !0) : u.moveDown(t, s + o, e);
  8406. e++;
  8407. } else o += 1;
  8408. }
  8409. };
  8410. e.prototype.checkMoveLeftCellItem = function() {
  8411. if (this.allCleanedXArr.length <= 0) {
  8412. n.Inst.ifCouldClick = !0;
  8413. n.Inst.checkIfEliminate();
  8414. } else {
  8415. var t = u.default.getLeftXIndexArr(), e = t[t.length - 1];
  8416. if (t.length <= 0) this.checkIfEliminate(); else {
  8417. mk.console.log("leftXIndexArr", t);
  8418. for (var o = 0, i = 0; i < l.default.col_num; i++) {
  8419. var a = n.Inst.cellItemDic[i];
  8420. if (-1 == this.allCleanedXArr.indexOf(i)) {
  8421. var r = a.filter(function(t) {
  8422. return null != t;
  8423. });
  8424. if (o > 0) for (var c = 0; c < a.length; c++) {
  8425. var s = a[c];
  8426. if (s) if (i == e && c == r[0].y) {
  8427. mk.console.log("i,j,intervalNum", i, c, o);
  8428. s.moveLeft(i - o, c, !0);
  8429. } else s.moveLeft(i - o, c);
  8430. } else if (i == e) {
  8431. n.Inst.ifCouldClick = !0;
  8432. n.Inst.checkIfEliminate();
  8433. }
  8434. } else o += 1;
  8435. }
  8436. }
  8437. }
  8438. };
  8439. e.prototype.checkIfEliminate = function() {
  8440. var t = this;
  8441. mk.console.log("开始检测是否还能够消除!!!!!!!!!!!!!!!!!!!!!");
  8442. u.default.getCouldCleanVec();
  8443. if (this.couldCleanVecArr.length <= 0 && !this.ifPass) {
  8444. h.default.Inst.addSpriteTip(h.TIP_SPRITEITEM_TYPE.NormalPass);
  8445. var e = setTimeout(function() {
  8446. t.pass();
  8447. clearTimeout(e);
  8448. }, 1500);
  8449. }
  8450. };
  8451. e.prototype.getCouldCleanCellItem = function() {
  8452. for (var t = 0; this.cellItemArr.length; t++) {
  8453. var e = this.cellItemArr[t];
  8454. if (u.default.getAroundSameType(e.x, e.y, e.type, !1).length > 0) return;
  8455. }
  8456. this.pass();
  8457. };
  8458. e.prototype.restart = function() {
  8459. mk.console.log("restart!!!!!!!!!!!!!!!");
  8460. this.refreshGame();
  8461. };
  8462. e.prototype.nextLevel = function() {
  8463. mk.console.log("nextLevel!!!!!!!!!!!!!!!");
  8464. this.targetScore = 0;
  8465. this.refreshGame();
  8466. };
  8467. e.prototype.refreshGame = function() {
  8468. mk.data.sendDataEvent(f.DataEventId.level, "关卡开启");
  8469. this.recycleAllCellItem();
  8470. this.ifPass = !1;
  8471. this.ifGetPass = !1;
  8472. this.ifCouldClick = !0;
  8473. this.initLevel();
  8474. this.initTotalScore();
  8475. this.initScore();
  8476. };
  8477. e.prototype.recycleAllCellItem = function() {
  8478. for (var t = 0; t < l.default.col_num; t++) for (var e = 0; e < l.default.row_num; e++) {
  8479. var n = this.cellItemDic[t][e];
  8480. n && n.recycle(!0, !1, !1);
  8481. }
  8482. this.cellItemArr = [];
  8483. this.cellItemDic = {};
  8484. this.curXIndex = 0;
  8485. this.curYIndex = l.default.row_num - 1;
  8486. this.initCell();
  8487. };
  8488. e.prototype.pass = function() {
  8489. if (0 != n.Inst.node.active && !this.ifPass) {
  8490. mk.data.sendDataEvent(f.DataEventId.level, "关卡通关");
  8491. this.ifPass = !0;
  8492. n.Inst.ifGetPass = !1;
  8493. var t = gData.gameData.getProp(f.GameProp.levelNum);
  8494. 0 == t && mk.data.sendXYEvent("firstlevel", "完成第一关");
  8495. mk.console.log("[Game]pass passLevelNum", t);
  8496. n.Inst.ifGetPass = !0;
  8497. gData.gameData.setProp(f.GameProp.levelNum, ++t);
  8498. if (!(mk.ui.getCurOnPanel("rewardLuck") || this.finalGetScore >= this.targetScore)) {
  8499. this.gameCount();
  8500. console.log("gData.gameData.getProp(GameProp.levelNum)", gData.gameData.getProp(f.GameProp.levelNum));
  8501. }
  8502. }
  8503. };
  8504. e.prototype.gameCount = function() {
  8505. mk.ui.getCurOnPanel("GetPropUI") && mk.ui.closePanel("GetPropUI");
  8506. this.gameOver();
  8507. };
  8508. e.prototype.gameOver = function() {
  8509. mk.ui.openPanel("game/prefab/uiPanel/GameOverUI");
  8510. };
  8511. e.prototype.checkBonusNum = function(t) {
  8512. if (t >= 4) {
  8513. var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.BonusTip), n = e.getComponent(p.default);
  8514. if (4 == t) {
  8515. n.init(4);
  8516. mk.audio.playEffect("ef_bonus4");
  8517. } else if (5 == t) {
  8518. n.init(5);
  8519. mk.audio.playEffect("ef_bonus5");
  8520. } else if (6 == t) {
  8521. n.init(6);
  8522. mk.audio.playEffect("ef_bonus6");
  8523. } else if (7 == t) {
  8524. n.init(7);
  8525. mk.audio.playEffect("ef_bonus7");
  8526. } else if (8 == t) {
  8527. n.init(8);
  8528. mk.audio.playEffect("ef_bonus8");
  8529. } else {
  8530. n.init(8);
  8531. mk.audio.playEffect("ef_bonus8");
  8532. }
  8533. this.node_effectUI.addChild(e);
  8534. }
  8535. };
  8536. e.prototype.checkAddLevelRedPacket = function(t) {
  8537. var e = .2 * (t - 3);
  8538. return Math.random() < e;
  8539. };
  8540. e.prototype.intervalShowGuide = function() {
  8541. var t = this;
  8542. this.cancelShowCouldCleanCellItem();
  8543. this.interval_ShowGuide = setInterval(function() {
  8544. t.showCouldCleanCellItem();
  8545. }, 1e4);
  8546. };
  8547. e.prototype.showCouldCleanCellItem = function() {
  8548. if (!mk.ui.getCurOnPanel("RedPacketUI") && !mk.ui.getCurOnPanel("GameOverUI") && this.couldCleanVecArr && this.cellItemDic) {
  8549. this.couldCleanVecArr.length <= 0 && u.default.getCouldCleanVec();
  8550. if (this.couldCleanVecArr.length > 0) for (var t = 0; t < this.couldCleanVecArr.length; t++) {
  8551. var e = this.couldCleanVecArr[t];
  8552. if (this.cellItemDic[e.x]) {
  8553. var n = this.cellItemDic[e.x][e.y];
  8554. n && n.shake();
  8555. }
  8556. }
  8557. }
  8558. };
  8559. e.prototype.cancelShowCouldCleanCellItem = function() {
  8560. if (this.interval_ShowGuide) {
  8561. clearInterval(this.interval_ShowGuide);
  8562. this.interval_ShowGuide = null;
  8563. if (this.couldCleanVecArr.length > 0) for (var t = 0; t < this.couldCleanVecArr.length; t++) {
  8564. var e = this.couldCleanVecArr[t], n = this.cellItemDic[e.x][e.y];
  8565. n && n.normal();
  8566. }
  8567. this.couldCleanVecArr = [];
  8568. }
  8569. };
  8570. e.prototype.intervalShowInter = function() {
  8571. var t = gData.gameData.configs.ServerConfig.interOpenGapTime;
  8572. t ? t *= 1e3 : t = 15e3;
  8573. this.cancelShowInter();
  8574. this.interval_ShowGuide = setInterval(function() {
  8575. mk.ad.showInterAd(0);
  8576. }, t);
  8577. };
  8578. e.prototype.cancelShowInter = function() {
  8579. this.interval_ShowGuide && clearInterval(this.interval_ShowGuide);
  8580. };
  8581. e.prototype.qipaoShow = function() {
  8582. for (var t = 0; t < 4; t++) this["btn_gameGetRed" + (t + 1)].active = gData.gameData.funBtns.btn8.active;
  8583. };
  8584. var n;
  8585. e.Inst = null;
  8586. a([ _(cc.Node) ], e.prototype, "node_bg", void 0);
  8587. a([ _(cc.Node) ], e.prototype, "node_top", void 0);
  8588. a([ _(cc.Label) ], e.prototype, "label_level", void 0);
  8589. a([ _(cc.Node) ], e.prototype, "node_redPacketIcon", void 0);
  8590. a([ _({
  8591. type: cc.Node,
  8592. displayName: "气泡红包1"
  8593. }) ], e.prototype, "btn_gameGetRed1", void 0);
  8594. a([ _({
  8595. type: cc.Node,
  8596. displayName: "气泡红包2"
  8597. }) ], e.prototype, "btn_gameGetRed2", void 0);
  8598. a([ _({
  8599. type: cc.Node,
  8600. displayName: "气泡红包3"
  8601. }) ], e.prototype, "btn_gameGetRed3", void 0);
  8602. a([ _({
  8603. type: cc.Node,
  8604. displayName: "气泡红包3"
  8605. }) ], e.prototype, "btn_gameGetRed4", void 0);
  8606. a([ _(cc.Node) ], e.prototype, "node_content", void 0);
  8607. a([ _(cc.Node) ], e.prototype, "node_cellBg", void 0);
  8608. a([ _(cc.Node) ], e.prototype, "node_pauseBtn", void 0);
  8609. a([ _(cc.Node) ], e.prototype, "node_progressUI", void 0);
  8610. a([ _(cc.Sprite) ], e.prototype, "spr_progress", void 0);
  8611. a([ _(cc.Node) ], e.prototype, "node_resetBtn", void 0);
  8612. a([ _(cc.Label) ], e.prototype, "label_resetPropNum", void 0);
  8613. a([ _(cc.Node) ], e.prototype, "node_hammerBtn", void 0);
  8614. a([ _(cc.Label) ], e.prototype, "label_hammerPropNum", void 0);
  8615. a([ _(cc.Node) ], e.prototype, "node_changeBtn", void 0);
  8616. a([ _(cc.Label) ], e.prototype, "label_changePropNum", void 0);
  8617. a([ _(cc.Node) ], e.prototype, "node_changeCellItemUI", void 0);
  8618. a([ _(cc.Node) ], e.prototype, "node_effectUI", void 0);
  8619. a([ _(cc.Node) ], e.prototype, "node_levelRedPacketUI", void 0);
  8620. a([ _(cc.Node) ], e.prototype, "node_touchListenMask", void 0);
  8621. return n = a([ m ], e);
  8622. }(cc.Component);
  8623. n.default = v;
  8624. cc._RF.pop();
  8625. }, {
  8626. "../game/data/GameData": "GameData",
  8627. "../mk/system/JsbSystem": "JsbSystem",
  8628. "./data/Enum": "Enum",
  8629. "./data/GameConst": "GameConst",
  8630. "./mgr/DataMgr": "DataMgr",
  8631. "./mgr/EffectMgr": "EffectMgr",
  8632. "./mgr/PoolMgr": "PoolMgr",
  8633. "./util/GameLogic": "GameLogic",
  8634. "./view/effect/BonusTip": "BonusTip",
  8635. "./view/uiItem/CellItem": "CellItem"
  8636. } ],
  8637. GameUtil: [ function(t, e, n) {
  8638. "use strict";
  8639. cc._RF.push(e, "784499zQZlE5LGQ/AOAWZqR", "GameUtil");
  8640. Object.defineProperty(n, "__esModule", {
  8641. value: !0
  8642. });
  8643. var o = function() {
  8644. function t() {}
  8645. t.prototype.getWinSize = function() {
  8646. return cc.winSize;
  8647. };
  8648. t.prototype.enablePhysics = function() {
  8649. cc.director.getPhysicsManager().enabled = !0;
  8650. };
  8651. t.prototype.debugDrawPhysicsFlag = function(t) {
  8652. void 0 === t && (t = !1);
  8653. cc.director.getPhysicsManager().debugDrawFlags = t ? cc.PhysicsManager.DrawBits.e_aabbBit | cc.PhysicsManager.DrawBits.e_jointBit | cc.PhysicsManager.DrawBits.e_shapeBit : 0;
  8654. };
  8655. t.prototype.checkContinuousClick = function(t, e) {
  8656. void 0 === e && (e = 1);
  8657. null == this.btnTimeDic && (this.btnTimeDic = {});
  8658. var n = t._id, o = this.btnTimeDic[n], i = new Date().getTime(), a = null == o || i - o > 1e3 * e;
  8659. a && (this.btnTimeDic[n] = i);
  8660. return a;
  8661. };
  8662. t.prototype.getWorldPos = function(t) {
  8663. for (var e = t.x, n = t.y, o = t; o.parent; ) {
  8664. var i = o.parent;
  8665. if ("Canvas" == i.name) break;
  8666. e += i.x;
  8667. n += i.y;
  8668. o = i;
  8669. }
  8670. return new cc.Vec2(e, n);
  8671. };
  8672. t.prototype.localConvertWorldPointARCenter = function(t) {
  8673. var e = cc.view.getVisibleSize(), n = t.convertToWorldSpaceAR(cc.v2(0, 0));
  8674. n.x = n.x - e.width / 2;
  8675. n.y = n.y - e.height / 2;
  8676. return n;
  8677. };
  8678. return t;
  8679. }();
  8680. n.default = o;
  8681. cc._RF.pop();
  8682. }, {} ],
  8683. Game: [ function(t, e, n) {
  8684. "use strict";
  8685. cc._RF.push(e, "8760dQYasROwLaLe1idTS07", "Game");
  8686. var o, i = this && this.__extends || (o = function(t, e) {
  8687. return (o = Object.setPrototypeOf || {
  8688. __proto__: []
  8689. } instanceof Array && function(t, e) {
  8690. t.__proto__ = e;
  8691. } || function(t, e) {
  8692. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  8693. })(t, e);
  8694. }, function(t, e) {
  8695. o(t, e);
  8696. function n() {
  8697. this.constructor = t;
  8698. }
  8699. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  8700. }), a = this && this.__decorate || function(t, e, n, o) {
  8701. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  8702. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  8703. return a > 3 && r && Object.defineProperty(e, n, r), r;
  8704. }, r = this && this.__awaiter || function(t, e, n, o) {
  8705. return new (n || (n = Promise))(function(i, a) {
  8706. function r(t) {
  8707. try {
  8708. s(o.next(t));
  8709. } catch (t) {
  8710. a(t);
  8711. }
  8712. }
  8713. function c(t) {
  8714. try {
  8715. s(o.throw(t));
  8716. } catch (t) {
  8717. a(t);
  8718. }
  8719. }
  8720. function s(t) {
  8721. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  8722. t(e);
  8723. })).then(r, c);
  8724. var e;
  8725. }
  8726. s((o = o.apply(t, e || [])).next());
  8727. });
  8728. }, c = this && this.__generator || function(t, e) {
  8729. var n, o, i, a, r = {
  8730. label: 0,
  8731. sent: function() {
  8732. if (1 & i[0]) throw i[1];
  8733. return i[1];
  8734. },
  8735. trys: [],
  8736. ops: []
  8737. };
  8738. return a = {
  8739. next: c(0),
  8740. throw: c(1),
  8741. return: c(2)
  8742. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  8743. return this;
  8744. }), a;
  8745. function c(t) {
  8746. return function(e) {
  8747. return s([ t, e ]);
  8748. };
  8749. }
  8750. function s(a) {
  8751. if (n) throw new TypeError("Generator is already executing.");
  8752. for (;r; ) try {
  8753. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  8754. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  8755. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  8756. switch (a[0]) {
  8757. case 0:
  8758. case 1:
  8759. i = a;
  8760. break;
  8761. case 4:
  8762. r.label++;
  8763. return {
  8764. value: a[1],
  8765. done: !1
  8766. };
  8767. case 5:
  8768. r.label++;
  8769. o = a[1];
  8770. a = [ 0 ];
  8771. continue;
  8772. case 7:
  8773. a = r.ops.pop();
  8774. r.trys.pop();
  8775. continue;
  8776. default:
  8777. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  8778. r = 0;
  8779. continue;
  8780. }
  8781. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  8782. r.label = a[1];
  8783. break;
  8784. }
  8785. if (6 === a[0] && r.label < i[1]) {
  8786. r.label = i[1];
  8787. i = a;
  8788. break;
  8789. }
  8790. if (i && r.label < i[2]) {
  8791. r.label = i[2];
  8792. r.ops.push(a);
  8793. break;
  8794. }
  8795. i[2] && r.ops.pop();
  8796. r.trys.pop();
  8797. continue;
  8798. }
  8799. a = e.call(t, r);
  8800. } catch (t) {
  8801. a = [ 6, t ];
  8802. o = 0;
  8803. } finally {
  8804. n = i = 0;
  8805. }
  8806. if (5 & a[0]) throw a[1];
  8807. return {
  8808. value: a[0] ? a[1] : void 0,
  8809. done: !0
  8810. };
  8811. }
  8812. };
  8813. Object.defineProperty(n, "__esModule", {
  8814. value: !0
  8815. });
  8816. n.RedPoinNode = void 0;
  8817. var s = t("../../before/GamePlay"), l = t("../../mk/system/JsbSystem"), u = t("../data/GameData"), p = t("./FunBtns"), d = cc._decorator, h = d.ccclass, f = d.property, y = function() {
  8818. function t() {
  8819. this.node_sign = null;
  8820. this.node_pigbank = null;
  8821. this.node_redbagCash = null;
  8822. this.node_blessingBag = null;
  8823. this.node_turnable = null;
  8824. this.node_redeem = null;
  8825. }
  8826. a([ f({
  8827. type: cc.Node,
  8828. displayName: "签到"
  8829. }) ], t.prototype, "node_sign", void 0);
  8830. a([ f({
  8831. type: cc.Node,
  8832. displayName: "存钱罐"
  8833. }) ], t.prototype, "node_pigbank", void 0);
  8834. a([ f({
  8835. type: cc.Node,
  8836. displayName: "红包提现"
  8837. }) ], t.prototype, "node_redbagCash", void 0);
  8838. a([ f({
  8839. type: cc.Node,
  8840. displayName: "福袋"
  8841. }) ], t.prototype, "node_blessingBag", void 0);
  8842. a([ f({
  8843. type: cc.Node,
  8844. displayName: "转盘"
  8845. }) ], t.prototype, "node_turnable", void 0);
  8846. a([ f({
  8847. type: cc.Node,
  8848. displayName: "福利礼包"
  8849. }) ], t.prototype, "node_redeem", void 0);
  8850. return a([ h("RedPoinNode") ], t);
  8851. }();
  8852. n.RedPoinNode = y;
  8853. var g = function(t) {
  8854. i(e, t);
  8855. function e() {
  8856. var e = null !== t && t.apply(this, arguments) || this;
  8857. e.node_gameplay = null;
  8858. e.node_btn = null;
  8859. e.img_head = null;
  8860. e.lbl_redMoney = null;
  8861. e.lbl_rmb = null;
  8862. e.btn_cashOutNormal = null;
  8863. e.btn_cashOutGold = null;
  8864. e.btn_getRed1 = null;
  8865. e.btn_getRed2 = null;
  8866. e.btn_getRed3 = null;
  8867. e.btn_start = null;
  8868. e.icon_hb = null;
  8869. e.icon_zb = null;
  8870. e.node_top_ui = null;
  8871. e.nodeRedPoint = null;
  8872. return e;
  8873. }
  8874. e.prototype.onLoad = function() {
  8875. gData.gameData.gameStyle = this;
  8876. mk.ui.closePanel("login");
  8877. };
  8878. e.prototype.start = function() {
  8879. this.initMusic();
  8880. this.initBtns();
  8881. this.initQiPaos();
  8882. this.initInfo();
  8883. this.autoOpenPanel();
  8884. this.runGuideWeak();
  8885. mk.guide.open(1);
  8886. };
  8887. e.prototype.update = function() {
  8888. if (gData.gameData.updatePiggyBankValue) {
  8889. this.updatePiggyBankValue();
  8890. gData.gameData.updatePiggyBankValue = !1;
  8891. }
  8892. gData.gameData.init_coin && this.changeInfo();
  8893. gData.gameData.init_head && this.initHead();
  8894. gData.gameData.init_red_point && this.initRedPoint();
  8895. };
  8896. e.prototype.lateUpdate = function() {
  8897. gData.gameData.init_head = !1;
  8898. };
  8899. e.prototype.initMusic = function() {
  8900. mk.audio.playMusic("bgm");
  8901. };
  8902. e.prototype.initBtns = function() {
  8903. this.node_btn.getComponent(p.default).init();
  8904. };
  8905. e.prototype.initQiPaos = function() {
  8906. mk.tween.scale(this.btn_getRed1, .6, 0, 1, null, "backOut");
  8907. mk.tween.scale(this.btn_getRed2, .6, 0, 1, null, "backOut");
  8908. mk.tween.scale(this.btn_getRed3, .6, 0, 1, null, "backOut");
  8909. cc.tween(this.btn_getRed1).to(1.2, {
  8910. y: 100
  8911. }, {
  8912. easing: ""
  8913. }).to(1.2, {
  8914. y: 50
  8915. }, {
  8916. easing: ""
  8917. }).union().repeatForever().start();
  8918. cc.tween(this.btn_getRed2).delay(.2).to(1.5, {
  8919. y: 125
  8920. }, {
  8921. easing: ""
  8922. }).to(1.5, {
  8923. y: 50
  8924. }, {
  8925. easing: ""
  8926. }).union().repeatForever().start();
  8927. cc.tween(this.btn_getRed3).delay(.4).to(1, {
  8928. y: 10
  8929. }, {
  8930. easing: ""
  8931. }).to(1, {
  8932. y: -50
  8933. }, {
  8934. easing: ""
  8935. }).union().repeatForever().start();
  8936. };
  8937. e.prototype.initInfo = function() {
  8938. this.lbl_redMoney.string = gData.gameData.gameData.redMoney + "";
  8939. var t = gData.gameData.gameData.piggyBank / 100;
  8940. this.lbl_rmb.string = t.toFixed(2);
  8941. gData.gameData.init_coin = !1;
  8942. };
  8943. e.prototype.changeInfo = function() {
  8944. this.lbl_redMoney.node.getComponent(mk.component.numberAnim).setValue(gData.gameData.gameData.redMoney);
  8945. var t = gData.gameData.gameData.piggyBank / 100;
  8946. (0 == parseInt(this.lbl_rmb.string) && 0 != t || 0 != parseInt(this.lbl_rmb.string) && 0 == t) && this.lbl_rmb.string != t.toFixed(2) && this.lbl_rmb.node.getComponent(mk.component.numberAnim).setValue(parseFloat(t.toFixed(2)), 2);
  8947. gData.gameData.init_coin = !1;
  8948. };
  8949. e.prototype.initHead = function() {
  8950. return r(this, void 0, void 0, function() {
  8951. var t;
  8952. return c(this, function(e) {
  8953. switch (e.label) {
  8954. case 0:
  8955. return [ 4, mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null) ];
  8956. case 1:
  8957. t = e.sent();
  8958. this.img_head.spriteFrame = new cc.SpriteFrame(t);
  8959. return [ 2 ];
  8960. }
  8961. });
  8962. });
  8963. };
  8964. e.prototype.updatePiggyBankValue = function() {
  8965. this.lbl_rmb.string = (gData.gameData.gameData.piggyBank / 100).toFixed(2);
  8966. gData.gameData.updatePiggyBankValue = !1;
  8967. };
  8968. e.prototype.initRedPoint = function() {
  8969. this.nodeRedPoint.node_sign.active = gData.sign.redPoint();
  8970. this.nodeRedPoint.node_pigbank.active = gData.pigbank.redPoint();
  8971. this.nodeRedPoint.node_redbagCash.active = gData.redBagCash.redPoint();
  8972. this.nodeRedPoint.node_turnable.active = gData.turnable.redPoint();
  8973. this.nodeRedPoint.node_blessingBag.active = gData.blessingBag.redPoint();
  8974. this.nodeRedPoint.node_redeem.active = gData.redeem.redPoint();
  8975. gData.gameData.init_red_point = !1;
  8976. (!s.default.Inst || s.default.Inst && !s.default.Inst.node.active) && this.nodeRedPoint.node_redbagCash.active && mk.guide.open(2) && mk.ui.closeAllUI();
  8977. };
  8978. e.prototype.autoOpenPanel = function() {
  8979. if (!gData.gameData.isNewPlayer()) {
  8980. mk.ui.openPanel("module/pigBank/pigBank");
  8981. gData.gameData.setProp(u.GameProp.isAutoOpenPanel, 1);
  8982. }
  8983. };
  8984. e.prototype.runGuideWeak = function() {
  8985. gData.guideWeakData.enable = !0;
  8986. };
  8987. e.prototype.testFly = function() {
  8988. mk.fly.PlayCoinAnim(1, 20, cc.v2(0, -300), cc.v2(0, 0));
  8989. };
  8990. e.prototype.onClickStart = function() {
  8991. mk.data.sendDataEvent(u.DataEventId.button_click, "开始游戏icon");
  8992. this.node_gameplay.active = !0;
  8993. };
  8994. e.prototype.onClickHuTui = function() {
  8995. mk.data.sendDataEvent(u.DataEventId.button_click, "互推icon");
  8996. };
  8997. e.prototype.onClickFuli = function() {
  8998. mk.data.sendDataEvent(u.DataEventId.button_click, "福利礼包icon");
  8999. };
  9000. e.prototype.onClickQipaoRedBag = function() {
  9001. mk.ad.videoAdType = u.VideoAdType.StartQiPaoRedBag;
  9002. mk.data.sendDataEvent(u.DataEventId.button_click, "气泡红包icon");
  9003. };
  9004. e.prototype.onClickRedBagCash = function() {
  9005. mk.data.sendDataEvent(u.DataEventId.button_click, "常规提现-提现icon");
  9006. };
  9007. e.prototype.onClickGoldPigCash = function() {
  9008. mk.data.sendDataEvent(u.DataEventId.button_click, "金猪现金-提现icon");
  9009. };
  9010. e.prototype.onClickPigBank = function() {
  9011. mk.data.sendDataEvent(u.DataEventId.button_click, "存钱罐icon");
  9012. };
  9013. e.prototype.onClickTurntable = function() {
  9014. mk.data.sendDataEvent(u.DataEventId.button_click, "转盘icon");
  9015. };
  9016. e.prototype.onClickSign = function() {
  9017. mk.data.sendDataEvent(u.DataEventId.button_click, "签到icon");
  9018. };
  9019. e.prototype.onClickFudai = function() {
  9020. mk.data.sendDataEvent(u.DataEventId.button_click, "福袋icon");
  9021. };
  9022. e.prototype.onClickShare = function() {
  9023. mk.data.sendDataEvent(u.DataEventId.button_click, "邀请icon");
  9024. gData.loginData.isAuth ? l.default.sharePic() : l.default.WxAuth();
  9025. };
  9026. a([ f({
  9027. type: cc.Node,
  9028. displayName: "游戏核心玩法"
  9029. }) ], e.prototype, "node_gameplay", void 0);
  9030. a([ f({
  9031. type: cc.Node,
  9032. displayName: "功能按钮"
  9033. }) ], e.prototype, "node_btn", void 0);
  9034. a([ f({
  9035. type: cc.Sprite,
  9036. displayName: "头像"
  9037. }) ], e.prototype, "img_head", void 0);
  9038. a([ f({
  9039. type: cc.Label,
  9040. displayName: "红包币"
  9041. }) ], e.prototype, "lbl_redMoney", void 0);
  9042. a([ f({
  9043. type: cc.Label,
  9044. displayName: "金猪币"
  9045. }) ], e.prototype, "lbl_rmb", void 0);
  9046. a([ f({
  9047. type: cc.Sprite,
  9048. displayName: "红包提现"
  9049. }) ], e.prototype, "btn_cashOutNormal", void 0);
  9050. a([ f({
  9051. type: cc.Sprite,
  9052. displayName: "金猪提现"
  9053. }) ], e.prototype, "btn_cashOutGold", void 0);
  9054. a([ f({
  9055. type: cc.Node,
  9056. displayName: "气泡红包1"
  9057. }) ], e.prototype, "btn_getRed1", void 0);
  9058. a([ f({
  9059. type: cc.Node,
  9060. displayName: "气泡红包2"
  9061. }) ], e.prototype, "btn_getRed2", void 0);
  9062. a([ f({
  9063. type: cc.Node,
  9064. displayName: "气泡红包3"
  9065. }) ], e.prototype, "btn_getRed3", void 0);
  9066. a([ f({
  9067. type: cc.Button,
  9068. displayName: "开始游戏"
  9069. }) ], e.prototype, "btn_start", void 0);
  9070. a([ f({
  9071. type: cc.Node,
  9072. displayName: "红包币图标"
  9073. }) ], e.prototype, "icon_hb", void 0);
  9074. a([ f({
  9075. type: cc.Node,
  9076. displayName: "金猪币图标"
  9077. }) ], e.prototype, "icon_zb", void 0);
  9078. a([ f({
  9079. type: cc.Node,
  9080. displayName: "顶部ui组"
  9081. }) ], e.prototype, "node_top_ui", void 0);
  9082. a([ f({
  9083. type: y,
  9084. displayName: "红点组"
  9085. }) ], e.prototype, "nodeRedPoint", void 0);
  9086. return a([ h ], e);
  9087. }(cc.Component);
  9088. n.default = g;
  9089. cc._RF.pop();
  9090. }, {
  9091. "../../before/GamePlay": "GamePlay",
  9092. "../../mk/system/JsbSystem": "JsbSystem",
  9093. "../data/GameData": "GameData",
  9094. "./FunBtns": "FunBtns"
  9095. } ],
  9096. GetPropUI: [ function(t, e, n) {
  9097. "use strict";
  9098. cc._RF.push(e, "0d1dfPo/XpIf6tmqB2x020S", "GetPropUI");
  9099. var o, i = this && this.__extends || (o = function(t, e) {
  9100. return (o = Object.setPrototypeOf || {
  9101. __proto__: []
  9102. } instanceof Array && function(t, e) {
  9103. t.__proto__ = e;
  9104. } || function(t, e) {
  9105. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  9106. })(t, e);
  9107. }, function(t, e) {
  9108. o(t, e);
  9109. function n() {
  9110. this.constructor = t;
  9111. }
  9112. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  9113. }), a = this && this.__decorate || function(t, e, n, o) {
  9114. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  9115. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  9116. return a > 3 && r && Object.defineProperty(e, n, r), r;
  9117. };
  9118. Object.defineProperty(n, "__esModule", {
  9119. value: !0
  9120. });
  9121. var r = t("../data/Enum"), c = t("../GamePlay"), s = t("../mgr/DataMgr"), l = t("../mgr/EffectMgr"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
  9122. i(e, t);
  9123. function e() {
  9124. var e = null !== t && t.apply(this, arguments) || this;
  9125. e.node_rectBg = null;
  9126. e.node_closeBtn = null;
  9127. e.node_getBtn = null;
  9128. e.node_prop = null;
  9129. return e;
  9130. }
  9131. e.prototype.start = function() {
  9132. this.adapt();
  9133. this.initEvent();
  9134. };
  9135. e.prototype.onEnable = function() {
  9136. this.init();
  9137. };
  9138. e.prototype.onDisable = function() {
  9139. c.default.Inst.curPropType = r.PROPTYPE.Null;
  9140. };
  9141. e.prototype.adapt = function() {
  9142. this.node_rectBg.setContentSize(cc.winSize.width, cc.winSize.height);
  9143. };
  9144. e.prototype.init = function() {
  9145. for (var t = 0; t < this.node_prop.childrenCount; t++) {
  9146. var e = this.node_prop.children[t];
  9147. (e.children[0] ? e.children[0].name : "") == c.default.Inst.curPropType ? e.active = !0 : e.active = !1;
  9148. }
  9149. };
  9150. e.prototype.initEvent = function() {
  9151. this.node_getBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
  9152. this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
  9153. };
  9154. e.prototype.onClick = function(t) {
  9155. mk.audio.playEffect("button");
  9156. switch (t.currentTarget) {
  9157. case this.node_getBtn:
  9158. this.onClickGet();
  9159. break;
  9160. case this.node_closeBtn:
  9161. this.onClickClose();
  9162. }
  9163. };
  9164. e.prototype.onClickClose = function() {
  9165. mk.ui.closePanel("GetPropUI");
  9166. };
  9167. e.prototype.onClickGet = function() {
  9168. var t = this;
  9169. c.default.Inst.cancelShowInter();
  9170. mk.ad.watchAd(function(e) {
  9171. t.watchCallBack(e);
  9172. });
  9173. };
  9174. e.prototype.watchCallBack = function(t) {
  9175. void 0 === t && (t = !1);
  9176. if (t) {
  9177. this.scheduleOnce(function() {
  9178. mk.tip.pop("观看成功,获取奖励");
  9179. }, 0);
  9180. this.watchSuccess();
  9181. } else {
  9182. this.scheduleOnce(function() {
  9183. mk.tip.pop("观看失败,无法领取奖励哦");
  9184. }, 0);
  9185. this.watchFailed();
  9186. }
  9187. };
  9188. e.prototype.watchSuccess = function() {
  9189. l.default.Inst.addTip("观看视频成功,获得道具");
  9190. s.default.Inst.updatePropNum(1, c.default.Inst.curPropType, 1);
  9191. };
  9192. e.prototype.watchFailed = function() {};
  9193. a([ d(cc.Node) ], e.prototype, "node_rectBg", void 0);
  9194. a([ d(cc.Node) ], e.prototype, "node_closeBtn", void 0);
  9195. a([ d(cc.Node) ], e.prototype, "node_getBtn", void 0);
  9196. a([ d(cc.Node) ], e.prototype, "node_prop", void 0);
  9197. return a([ p ], e);
  9198. }(cc.Component);
  9199. n.default = h;
  9200. cc._RF.pop();
  9201. }, {
  9202. "../GamePlay": "GamePlay",
  9203. "../data/Enum": "Enum",
  9204. "../mgr/DataMgr": "DataMgr",
  9205. "../mgr/EffectMgr": "EffectMgr"
  9206. } ],
  9207. GetScore: [ function(t, e, n) {
  9208. "use strict";
  9209. cc._RF.push(e, "120e0v0LJFFvYtxAK0pYTrx", "GetScore");
  9210. var o, i = this && this.__extends || (o = function(t, e) {
  9211. return (o = Object.setPrototypeOf || {
  9212. __proto__: []
  9213. } instanceof Array && function(t, e) {
  9214. t.__proto__ = e;
  9215. } || function(t, e) {
  9216. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  9217. })(t, e);
  9218. }, function(t, e) {
  9219. o(t, e);
  9220. function n() {
  9221. this.constructor = t;
  9222. }
  9223. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  9224. }), a = this && this.__decorate || function(t, e, n, o) {
  9225. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  9226. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  9227. return a > 3 && r && Object.defineProperty(e, n, r), r;
  9228. };
  9229. Object.defineProperty(n, "__esModule", {
  9230. value: !0
  9231. });
  9232. var r = t("../../mgr/PoolMgr"), c = t("../../util/common/ArtNum"), s = cc._decorator, l = s.ccclass, u = (s.property,
  9233. function(t) {
  9234. i(e, t);
  9235. function e() {
  9236. return null !== t && t.apply(this, arguments) || this;
  9237. }
  9238. e.prototype.start = function() {};
  9239. e.prototype.init = function(t, e) {
  9240. var n = this;
  9241. this.getComponent(c.default).init(e);
  9242. this.node.opacity = 255;
  9243. this.node.scaleX = this.node.scaleY = 2;
  9244. this.node.setPosition(t.x, t.y);
  9245. var o = this.node.y + 50;
  9246. cc.tween(this.node).to(.2, {
  9247. scale: 1
  9248. }, {
  9249. easing: "smooth"
  9250. }).to(.5, {
  9251. y: o,
  9252. opacity: 0
  9253. }, {
  9254. easing: "smooth"
  9255. }).call(function() {
  9256. r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.GetScore, n.node);
  9257. }).start();
  9258. };
  9259. return a([ l ], e);
  9260. }(cc.Component));
  9261. n.default = u;
  9262. cc._RF.pop();
  9263. }, {
  9264. "../../mgr/PoolMgr": "PoolMgr",
  9265. "../../util/common/ArtNum": "ArtNum"
  9266. } ],
  9267. GetTargetScoreTip: [ function(t, e, n) {
  9268. "use strict";
  9269. cc._RF.push(e, "0bd9bSBwW1HpIUDEAb3E2/3", "GetTargetScoreTip");
  9270. var o, i = this && this.__extends || (o = function(t, e) {
  9271. return (o = Object.setPrototypeOf || {
  9272. __proto__: []
  9273. } instanceof Array && function(t, e) {
  9274. t.__proto__ = e;
  9275. } || function(t, e) {
  9276. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  9277. })(t, e);
  9278. }, function(t, e) {
  9279. o(t, e);
  9280. function n() {
  9281. this.constructor = t;
  9282. }
  9283. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  9284. }), a = this && this.__decorate || function(t, e, n, o) {
  9285. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  9286. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  9287. return a > 3 && r && Object.defineProperty(e, n, r), r;
  9288. };
  9289. Object.defineProperty(n, "__esModule", {
  9290. value: !0
  9291. });
  9292. var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property,
  9293. function(t) {
  9294. i(e, t);
  9295. function e() {
  9296. return null !== t && t.apply(this, arguments) || this;
  9297. }
  9298. e.prototype.start = function() {};
  9299. e.prototype.onEnable = function() {
  9300. var t = this;
  9301. this.node.scaleX = this.node.scaleY = 0;
  9302. cc.tween(this.node).to(.5, {
  9303. scale: 1
  9304. }, {
  9305. easing: "backOut"
  9306. }).delay(.5).to(.1, {
  9307. scale: 1.2
  9308. }).to(.2, {
  9309. scale: 0
  9310. }).call(function() {
  9311. r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.GetTargetScoreTip, t.node);
  9312. }).start();
  9313. };
  9314. return a([ s ], e);
  9315. }(cc.Component));
  9316. n.default = l;
  9317. cc._RF.pop();
  9318. }, {
  9319. "../../mgr/PoolMgr": "PoolMgr"
  9320. } ],
  9321. GuideAuthUI: [ function(t, e, n) {
  9322. "use strict";
  9323. cc._RF.push(e, "92fc2BBUkxIV7OFqykahuEp", "GuideAuthUI");
  9324. var o, i = this && this.__extends || (o = function(t, e) {
  9325. return (o = Object.setPrototypeOf || {
  9326. __proto__: []
  9327. } instanceof Array && function(t, e) {
  9328. t.__proto__ = e;
  9329. } || function(t, e) {
  9330. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  9331. })(t, e);
  9332. }, function(t, e) {
  9333. o(t, e);
  9334. function n() {
  9335. this.constructor = t;
  9336. }
  9337. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  9338. }), a = this && this.__decorate || function(t, e, n, o) {
  9339. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  9340. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  9341. return a > 3 && r && Object.defineProperty(e, n, r), r;
  9342. };
  9343. Object.defineProperty(n, "__esModule", {
  9344. value: !0
  9345. });
  9346. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  9347. i(e, t);
  9348. function e() {
  9349. var e = null !== t && t.apply(this, arguments) || this;
  9350. e.node_rectBg = null;
  9351. e.node_bottom = null;
  9352. e.node_authBtn = null;
  9353. return e;
  9354. }
  9355. e.prototype.start = function() {
  9356. this.node_rectBg.setContentSize(cc.winSize.width, cc.winSize.height);
  9357. this.initEvent();
  9358. };
  9359. e.prototype.onEnable = function() {
  9360. this.node_bottom.y = .5 * -cc.winSize.height - .5 * this.node_bottom.height - 10;
  9361. cc.winSize.height, this.node_bottom.height;
  9362. };
  9363. e.prototype.initEvent = function() {
  9364. this.node_rectBg.on(cc.Node.EventType.TOUCH_END, this.onClickAuthBtn, this);
  9365. this.node_authBtn.on(cc.Node.EventType.TOUCH_END, this.onClickAuthBtn, this);
  9366. };
  9367. e.prototype.onClickBg = function() {
  9368. mk.ui.closePanel("GuideAuthUI");
  9369. };
  9370. e.prototype.onClickAuthBtn = function() {
  9371. mk.ui.closePanel("GuideAuthUI");
  9372. };
  9373. a([ s(cc.Node) ], e.prototype, "node_rectBg", void 0);
  9374. a([ s(cc.Node) ], e.prototype, "node_bottom", void 0);
  9375. a([ s(cc.Node) ], e.prototype, "node_authBtn", void 0);
  9376. return a([ c ], e);
  9377. }(cc.Component);
  9378. n.default = l;
  9379. cc._RF.pop();
  9380. }, {} ],
  9381. GuideData: [ function(t, e, n) {
  9382. "use strict";
  9383. cc._RF.push(e, "e5757KUWwBMCLANLScrrZEc", "GuideData");
  9384. var o = this && this.__awaiter || function(t, e, n, o) {
  9385. return new (n || (n = Promise))(function(i, a) {
  9386. function r(t) {
  9387. try {
  9388. s(o.next(t));
  9389. } catch (t) {
  9390. a(t);
  9391. }
  9392. }
  9393. function c(t) {
  9394. try {
  9395. s(o.throw(t));
  9396. } catch (t) {
  9397. a(t);
  9398. }
  9399. }
  9400. function s(t) {
  9401. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  9402. t(e);
  9403. })).then(r, c);
  9404. var e;
  9405. }
  9406. s((o = o.apply(t, e || [])).next());
  9407. });
  9408. }, i = this && this.__generator || function(t, e) {
  9409. var n, o, i, a, r = {
  9410. label: 0,
  9411. sent: function() {
  9412. if (1 & i[0]) throw i[1];
  9413. return i[1];
  9414. },
  9415. trys: [],
  9416. ops: []
  9417. };
  9418. return a = {
  9419. next: c(0),
  9420. throw: c(1),
  9421. return: c(2)
  9422. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  9423. return this;
  9424. }), a;
  9425. function c(t) {
  9426. return function(e) {
  9427. return s([ t, e ]);
  9428. };
  9429. }
  9430. function s(a) {
  9431. if (n) throw new TypeError("Generator is already executing.");
  9432. for (;r; ) try {
  9433. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  9434. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  9435. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  9436. switch (a[0]) {
  9437. case 0:
  9438. case 1:
  9439. i = a;
  9440. break;
  9441. case 4:
  9442. r.label++;
  9443. return {
  9444. value: a[1],
  9445. done: !1
  9446. };
  9447. case 5:
  9448. r.label++;
  9449. o = a[1];
  9450. a = [ 0 ];
  9451. continue;
  9452. case 7:
  9453. a = r.ops.pop();
  9454. r.trys.pop();
  9455. continue;
  9456. default:
  9457. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  9458. r = 0;
  9459. continue;
  9460. }
  9461. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  9462. r.label = a[1];
  9463. break;
  9464. }
  9465. if (6 === a[0] && r.label < i[1]) {
  9466. r.label = i[1];
  9467. i = a;
  9468. break;
  9469. }
  9470. if (i && r.label < i[2]) {
  9471. r.label = i[2];
  9472. r.ops.push(a);
  9473. break;
  9474. }
  9475. i[2] && r.ops.pop();
  9476. r.trys.pop();
  9477. continue;
  9478. }
  9479. a = e.call(t, r);
  9480. } catch (t) {
  9481. a = [ 6, t ];
  9482. o = 0;
  9483. } finally {
  9484. n = i = 0;
  9485. }
  9486. if (5 & a[0]) throw a[1];
  9487. return {
  9488. value: a[0] ? a[1] : void 0,
  9489. done: !0
  9490. };
  9491. }
  9492. };
  9493. Object.defineProperty(n, "__esModule", {
  9494. value: !0
  9495. });
  9496. n.GuideData = void 0;
  9497. var a = function() {
  9498. function t() {
  9499. this.crtID = null;
  9500. }
  9501. t.prototype.init = function() {
  9502. return o(this, void 0, void 0, function() {
  9503. var t, e, n, o, a, r, c, s;
  9504. return i(this, function(i) {
  9505. switch (i.label) {
  9506. case 0:
  9507. return (t = gData.gameData.configs.Guide) ? [ 3, 2 ] : [ 4, mk.loader.load("data/guide_data", cc.JsonAsset) ];
  9508. case 1:
  9509. (e = i.sent()) && e.json && (t = e.json);
  9510. cc.log("无远程引导数据,使用本地测试数据");
  9511. i.label = 2;
  9512. case 2:
  9513. this.data = new Map();
  9514. n = [];
  9515. o = 1;
  9516. for (a = 0; a < t.length; a++) {
  9517. r = {};
  9518. c = t[a];
  9519. s = c.id.split("_");
  9520. r.id = parseInt(s[0]);
  9521. r.step = parseInt(s[1]);
  9522. r.trigger = c.trigger;
  9523. r.tr_num = c.trNum;
  9524. r.tr_form = c.trForm;
  9525. r.dialog = c.dialog;
  9526. r.dialog_pos = c.dialogPos;
  9527. r.dialog_pos1 = c.dialogPos1;
  9528. r.dialog_alignment = c.dialogAlignment;
  9529. r.display_rect = c.displayRect;
  9530. r.click_rect = c.clickRect;
  9531. r.finger = c.finger;
  9532. r.lag_next = parseFloat(c.lagNext);
  9533. r.display_type = parseInt(c.trNum);
  9534. if (o != r.id) {
  9535. this.data.set(o, n);
  9536. n = [];
  9537. o = r.id;
  9538. }
  9539. n.push(r);
  9540. }
  9541. this.data.set(o, n);
  9542. return [ 2 ];
  9543. }
  9544. });
  9545. });
  9546. };
  9547. t.prototype.getGuidesByID = function(t) {
  9548. return this.data.get(t);
  9549. };
  9550. return t;
  9551. }();
  9552. n.GuideData = a;
  9553. cc._RF.pop();
  9554. }, {} ],
  9555. GuideSystem: [ function(t, e, n) {
  9556. "use strict";
  9557. cc._RF.push(e, "ccad7HVXppOw6s55udVONoH", "GuideSystem");
  9558. Object.defineProperty(n, "__esModule", {
  9559. value: !0
  9560. });
  9561. var o = t("../../game/data/GameData"), i = t("./UISystem"), a = function() {
  9562. function t() {}
  9563. t.prototype.open = function(t) {
  9564. this.crtGuideID = gData.gameData.getProp(o.GameProp.guideID);
  9565. if (!cc.sys.isNative) {
  9566. this.crtGuideID = 1;
  9567. gData.gameData.setProp(o.GameProp.levelNum, 0);
  9568. }
  9569. if (this.crtGuideID >= 9999) mk.console.log("新手引导已做完"); else {
  9570. if (!(t <= this.crtGuideID && this.crtGuideID > 0)) {
  9571. gData.guideData.crtID = t;
  9572. this.crtGuideID = t;
  9573. mk.ui.openPanel("module/guide/guide", i.OpenActionType.normal, this.ui);
  9574. this.setGuideID(this.crtGuideID++);
  9575. return !0;
  9576. }
  9577. mk.console.log("当前引导已做过:" + t);
  9578. }
  9579. };
  9580. t.prototype.setGuideID = function(t) {
  9581. gData.guideData.getGuidesByID(t);
  9582. if (2 == t) {
  9583. t = 9999;
  9584. mk.data.sendXYEvent("guide_end", "新手引导结束");
  9585. }
  9586. gData.gameData.setProp(o.GameProp.guideID, t);
  9587. };
  9588. t.prototype.close = function() {
  9589. this.crtGuideID++;
  9590. };
  9591. t.prototype.isGuideComplete = function() {
  9592. return !this.crtGuideID || 9999 === this.crtGuideID;
  9593. };
  9594. t.prototype.isGuiding = function() {
  9595. return null != mk.ui.getCurOnPanel("guide");
  9596. };
  9597. return t;
  9598. }();
  9599. n.default = a;
  9600. cc._RF.pop();
  9601. }, {
  9602. "../../game/data/GameData": "GameData",
  9603. "./UISystem": "UISystem"
  9604. } ],
  9605. GuideVO: [ function(t, e, n) {
  9606. "use strict";
  9607. cc._RF.push(e, "c9ea3VwpPlHa66ZUXyrMFGs", "GuideVO");
  9608. Object.defineProperty(n, "__esModule", {
  9609. value: !0
  9610. });
  9611. n.default = function() {
  9612. this.display_type = 0;
  9613. };
  9614. cc._RF.pop();
  9615. }, {} ],
  9616. GuideWeakData: [ function(t, e, n) {
  9617. "use strict";
  9618. cc._RF.push(e, "8cbacNlAy1IKqiUU9g+3gM8", "GuideWeakData");
  9619. Object.defineProperty(n, "__esModule", {
  9620. value: !0
  9621. });
  9622. var o = function() {
  9623. function t() {
  9624. this.data_config = {
  9625. panelWeight: {},
  9626. triggerTime: 5
  9627. };
  9628. this.enable = !1;
  9629. this.guideStyle = null;
  9630. this.silent_time = 0;
  9631. this.cur_guide_id = 0;
  9632. this.cur_guide_panel = null;
  9633. this.panel_name_config = {
  9634. moreGame: 1,
  9635. turnable: 2,
  9636. none: 3,
  9637. pigBank: 4,
  9638. blessingBag: 5,
  9639. sign: 6,
  9640. redBagCash: 7,
  9641. rewardLuck: 8
  9642. };
  9643. }
  9644. t.prototype.init = function() {
  9645. gData.gameData.configs.ServerConfig.triggerTime && (this.data_config.triggerTime = parseInt(gData.gameData.configs.ServerConfig.triggerTime));
  9646. if (gData.gameData.configs.ServerConfig.panelWeight) {
  9647. this.data_config.panelWeight = {};
  9648. for (var t = gData.gameData.configs.ServerConfig.panelWeight.split(","), e = 0; e < t.length; e++) {
  9649. var n = t[e].split(":");
  9650. this.data_config.panelWeight[n[0]] = parseInt(n[1]);
  9651. }
  9652. }
  9653. };
  9654. t.prototype.initGuideId = function() {
  9655. var t = this.data_config.panelWeight, e = 0;
  9656. for (var n in t) e += t[n];
  9657. var o = 0, i = mk.math.random(1, e);
  9658. for (var n in t) if (i < (o += t[n])) {
  9659. gData.guideWeakData.cur_guide_id = parseInt(n);
  9660. break;
  9661. }
  9662. };
  9663. t.prototype.openPanelByBtn = function() {
  9664. var t = gData.guideWeakData.cur_guide_id;
  9665. gData.gameData.funBtns["btn" + t] && gData.gameData.funBtns["btn" + t].emit("click");
  9666. };
  9667. return t;
  9668. }();
  9669. n.default = o;
  9670. cc._RF.pop();
  9671. }, {} ],
  9672. GuideWeak: [ function(t, e, n) {
  9673. "use strict";
  9674. cc._RF.push(e, "f13f5zT97NMpINpXOCogVAt", "GuideWeak");
  9675. var o, i = this && this.__extends || (o = function(t, e) {
  9676. return (o = Object.setPrototypeOf || {
  9677. __proto__: []
  9678. } instanceof Array && function(t, e) {
  9679. t.__proto__ = e;
  9680. } || function(t, e) {
  9681. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  9682. })(t, e);
  9683. }, function(t, e) {
  9684. o(t, e);
  9685. function n() {
  9686. this.constructor = t;
  9687. }
  9688. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  9689. }), a = this && this.__decorate || function(t, e, n, o) {
  9690. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  9691. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  9692. return a > 3 && r && Object.defineProperty(e, n, r), r;
  9693. };
  9694. Object.defineProperty(n, "__esModule", {
  9695. value: !0
  9696. });
  9697. var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
  9698. i(e, t);
  9699. function e() {
  9700. var e = null !== t && t.apply(this, arguments) || this;
  9701. e._eventManager = cc.internal.eventManager;
  9702. return e;
  9703. }
  9704. e.prototype.onLoad = function() {
  9705. gData.guideWeakData.guideStyle = this;
  9706. this.InitTouch();
  9707. mk.event.register("close-panel", this.onClosePanel, this);
  9708. };
  9709. e.prototype.update = function(t) {
  9710. if (gData.guideWeakData.enable && gData.guideWeakData.data_config.triggerTime && !gData.guideWeakData.cur_guide_id && mk.guide.isGuideComplete() && !(gData.gameData.gameStyle.node.parent.childrenCount > 1)) {
  9711. gData.guideWeakData.silent_time += t;
  9712. if (gData.guideWeakData.silent_time >= gData.guideWeakData.data_config.triggerTime) {
  9713. gData.guideWeakData.initGuideId();
  9714. gData.guideWeakData.openPanelByBtn();
  9715. }
  9716. }
  9717. };
  9718. e.prototype.onClosePanel = function(t) {
  9719. void 0 === t && (t = "");
  9720. cc.log(t);
  9721. gData.guideWeakData.panel_name_config[t] == gData.guideWeakData.cur_guide_id && (gData.guideWeakData.cur_guide_id = 0);
  9722. };
  9723. e.prototype.onClickCall = function() {
  9724. gData.guideWeakData.silent_time = 0;
  9725. };
  9726. e.prototype.InitTouch = function() {
  9727. var t = cc.EventListener;
  9728. this._touchListener = t.create({
  9729. event: t.TOUCH_ONE_BY_ONE,
  9730. swallowTouches: !1,
  9731. owner: this.node,
  9732. mask: null,
  9733. onTouchBegan: this.onTouchStart.bind(this),
  9734. onTouchMoved: null,
  9735. onTouchEnded: this.onTouchEnded.bind(this),
  9736. onTouchCancelled: null
  9737. });
  9738. this._eventManager.addListener(this._touchListener, this.node);
  9739. };
  9740. e.prototype.onTouchStart = function(t) {
  9741. var e = t.getLocation(), n = this.node.parent.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y));
  9742. return this.pointInPoly(n, this.node);
  9743. };
  9744. e.prototype.onTouchEnded = function(t) {
  9745. this.onClickCall(t);
  9746. };
  9747. e.prototype.pointInPoly = function(t, e) {
  9748. var n = e.getPosition();
  9749. return t.x >= n.x - this.node.width / 2 && t.x <= n.x + this.node.width / 2 && t.y >= n.y - this.node.height / 2 && t.y <= n.y + this.node.height / 2;
  9750. };
  9751. e.prototype.onDestroy = function() {
  9752. this._eventManager.removeListener(this._touchListener, this.node);
  9753. mk.event.remove("close-panel", this.onClosePanel, this);
  9754. };
  9755. return a([ c ], e);
  9756. }(cc.Component));
  9757. n.default = s;
  9758. cc._RF.pop();
  9759. }, {} ],
  9760. Guide: [ function(t, e, n) {
  9761. "use strict";
  9762. cc._RF.push(e, "cc77atmGeBM4bPWFiQFl7H6", "Guide");
  9763. var o, i = this && this.__extends || (o = function(t, e) {
  9764. return (o = Object.setPrototypeOf || {
  9765. __proto__: []
  9766. } instanceof Array && function(t, e) {
  9767. t.__proto__ = e;
  9768. } || function(t, e) {
  9769. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  9770. })(t, e);
  9771. }, function(t, e) {
  9772. o(t, e);
  9773. function n() {
  9774. this.constructor = t;
  9775. }
  9776. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  9777. }), a = this && this.__decorate || function(t, e, n, o) {
  9778. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  9779. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  9780. return a > 3 && r && Object.defineProperty(e, n, r), r;
  9781. }, r = this && this.__awaiter || function(t, e, n, o) {
  9782. return new (n || (n = Promise))(function(i, a) {
  9783. function r(t) {
  9784. try {
  9785. s(o.next(t));
  9786. } catch (t) {
  9787. a(t);
  9788. }
  9789. }
  9790. function c(t) {
  9791. try {
  9792. s(o.throw(t));
  9793. } catch (t) {
  9794. a(t);
  9795. }
  9796. }
  9797. function s(t) {
  9798. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  9799. t(e);
  9800. })).then(r, c);
  9801. var e;
  9802. }
  9803. s((o = o.apply(t, e || [])).next());
  9804. });
  9805. }, c = this && this.__generator || function(t, e) {
  9806. var n, o, i, a, r = {
  9807. label: 0,
  9808. sent: function() {
  9809. if (1 & i[0]) throw i[1];
  9810. return i[1];
  9811. },
  9812. trys: [],
  9813. ops: []
  9814. };
  9815. return a = {
  9816. next: c(0),
  9817. throw: c(1),
  9818. return: c(2)
  9819. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  9820. return this;
  9821. }), a;
  9822. function c(t) {
  9823. return function(e) {
  9824. return s([ t, e ]);
  9825. };
  9826. }
  9827. function s(a) {
  9828. if (n) throw new TypeError("Generator is already executing.");
  9829. for (;r; ) try {
  9830. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  9831. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  9832. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  9833. switch (a[0]) {
  9834. case 0:
  9835. case 1:
  9836. i = a;
  9837. break;
  9838. case 4:
  9839. r.label++;
  9840. return {
  9841. value: a[1],
  9842. done: !1
  9843. };
  9844. case 5:
  9845. r.label++;
  9846. o = a[1];
  9847. a = [ 0 ];
  9848. continue;
  9849. case 7:
  9850. a = r.ops.pop();
  9851. r.trys.pop();
  9852. continue;
  9853. default:
  9854. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  9855. r = 0;
  9856. continue;
  9857. }
  9858. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  9859. r.label = a[1];
  9860. break;
  9861. }
  9862. if (6 === a[0] && r.label < i[1]) {
  9863. r.label = i[1];
  9864. i = a;
  9865. break;
  9866. }
  9867. if (i && r.label < i[2]) {
  9868. r.label = i[2];
  9869. r.ops.push(a);
  9870. break;
  9871. }
  9872. i[2] && r.ops.pop();
  9873. r.trys.pop();
  9874. continue;
  9875. }
  9876. a = e.call(t, r);
  9877. } catch (t) {
  9878. a = [ 6, t ];
  9879. o = 0;
  9880. } finally {
  9881. n = i = 0;
  9882. }
  9883. if (5 & a[0]) throw a[1];
  9884. return {
  9885. value: a[0] ? a[1] : void 0,
  9886. done: !0
  9887. };
  9888. }
  9889. };
  9890. Object.defineProperty(n, "__esModule", {
  9891. value: !0
  9892. });
  9893. var s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
  9894. i(e, t);
  9895. function e() {
  9896. var e = null !== t && t.apply(this, arguments) || this;
  9897. e.node_display = null;
  9898. e.node_click = null;
  9899. e.node_bg = null;
  9900. e.node_dialog = null;
  9901. e.node_finger = null;
  9902. e.node_head = null;
  9903. e.node_person = null;
  9904. e.rich_dialog = null;
  9905. e.widgets = [ "top", "bottom", "left", "right", "verticalCenter", "horizontalCenter" ];
  9906. e._eventManager = cc.internal.eventManager;
  9907. return e;
  9908. }
  9909. e.prototype.onLoad = function() {};
  9910. e.prototype.start = function() {
  9911. if (null != gData.guideData.crtID) {
  9912. this.reset();
  9913. this.guides = gData.guideData.getGuidesByID(gData.guideData.crtID);
  9914. this.crtStep = -1;
  9915. this.nextStep();
  9916. } else this.node.destroy();
  9917. };
  9918. e.prototype.nextStep = function() {
  9919. this.crtStep++;
  9920. this.crtGuide = this.guides[this.crtStep];
  9921. mk.data.sendDataEvent(s.DataEventId.guide, "新手引导第" + gData.guideData.crtID + "_" + this.crtStep + "步完成");
  9922. this.updateGuide();
  9923. };
  9924. e.prototype.updateGuide = function() {
  9925. var t = this;
  9926. if (null == this.crtGuide) this.close(); else {
  9927. this.node_display.getComponent(cc.Mask).type = 0 == this.crtGuide.display_type ? cc.Mask.Type.RECT : cc.Mask.Type.ELLIPSE;
  9928. this.node_bg.opacity = 180;
  9929. this.node_finger.opacity = 255;
  9930. this.node_dialog.opacity = 255;
  9931. this.targetNode = null;
  9932. this.event_data = null;
  9933. this.ifThrough = !0;
  9934. var e = [ null, null, null, null ], n = e[0], o = e[1], i = e[2], a = e[3];
  9935. if ("all" == this.crtGuide.click_rect || -1 != this.crtGuide.click_rect.indexOf("event")) {
  9936. if (0 == this.crtGuide.display_rect.length) this.node_display.width = this.node_display.height = 0; else {
  9937. var r = this.crtGuide.display_rect.split(":");
  9938. n = parseInt(r[0]);
  9939. o = parseInt(r[1]);
  9940. i = parseInt(r[2]);
  9941. a = parseInt(r[3]);
  9942. }
  9943. if ("all" == this.crtGuide.click_rect) {
  9944. this.node_click.x = 0;
  9945. this.node_click.y = 0;
  9946. this.node_click.width = this.node.width;
  9947. this.node_click.height = this.node.height;
  9948. this.ifThrough = !1;
  9949. } else {
  9950. this.event_data = this.crtGuide.id + "_" + (this.crtStep + 1);
  9951. this.node_click.x = n;
  9952. this.node_click.y = o;
  9953. this.node_click.width = i;
  9954. this.node_click.height = a;
  9955. }
  9956. } else {
  9957. this.targetNode = cc.find("Canvas/" + this.crtGuide.click_rect);
  9958. i = this.targetNode.width;
  9959. a = this.targetNode.height;
  9960. var c = mk.game.getWorldPos(this.targetNode);
  9961. n = c.x;
  9962. o = c.y;
  9963. if (this.crtGuide && 2 == this.crtGuide.id && 1 == this.crtStep) {
  9964. i = this.targetNode.parent.width;
  9965. a = this.targetNode.parent.height;
  9966. var s = mk.game.getWorldPos(this.targetNode.parent);
  9967. n = s.x;
  9968. o = s.y - a / 2;
  9969. }
  9970. this.node_click.width = this.node_click.height = 0;
  9971. var l = new cc.Component.EventHandler();
  9972. l.target = this.node;
  9973. l.component = "Guide";
  9974. l.handler = "clickNodeClick";
  9975. this.targetNode.getComponent(cc.Button).clickEvents.push(l);
  9976. }
  9977. if (null != n && null != o && null != i && null != a) if (0 == this.crtGuide.display_type) {
  9978. this.node_bg.x = this.node_bg.y = this.node_display.x = this.node_display.y = 0;
  9979. this.node_display.width = this.node.width;
  9980. this.node_display.height = this.node.height;
  9981. cc.tween(this.node_display).to(.2, {
  9982. x: n,
  9983. y: o,
  9984. width: i,
  9985. height: a
  9986. }, {
  9987. onUpdate: function() {
  9988. t.node_bg.x = -t.node_display.x;
  9989. t.node_bg.y = -t.node_display.y;
  9990. }
  9991. }).start();
  9992. } else {
  9993. this.node_bg.x = this.node_display.x = n;
  9994. this.node_bg.y = this.node_display.y = o;
  9995. this.node_display.width = this.node_display.height = this.node_bg.width = this.node_bg.height = 2 * this.node.height;
  9996. var u = this.crtGuide.display_type;
  9997. cc.tween(this.node_display).to(.2, {
  9998. width: u,
  9999. height: u
  10000. }).start();
  10001. }
  10002. if (null != this.crtGuide.dialog_pos && this.crtGuide.dialog_pos.length > 0) {
  10003. r = this.crtGuide.dialog_pos.split(":");
  10004. (d = this.node_dialog.getComponent(cc.Widget)).enabled = !0;
  10005. for (var p = 0; p < this.widgets.length; p++) d[this.widgets[p]] = "" == r[p] ? null : parseInt(r[p]);
  10006. } else {
  10007. var d;
  10008. r = this.crtGuide.dialog_pos1.split(",");
  10009. (d = this.node_dialog.getComponent(cc.Widget)).enabled = !1;
  10010. this.node_dialog.x = n + parseInt(r[0]);
  10011. this.node_dialog.y = o + parseInt(r[1]);
  10012. }
  10013. var h = this.crtGuide.dialog_alignment;
  10014. this.rich_dialog.horizontalAlign = "0" == h ? cc.macro.TextAlignment.LEFT : "1" == h ? cc.macro.TextAlignment.CENTER : cc.macro.TextAlignment.RIGHT;
  10015. if ("" == this.crtGuide.finger) this.node_finger.active = !1; else {
  10016. this.node_finger.active = !0;
  10017. r = this.crtGuide.finger.split(":");
  10018. this.node_finger.x = n + parseInt(r[0]);
  10019. this.node_finger.y = o + parseInt(r[1]);
  10020. }
  10021. if (1 == this.crtGuide.tr_form) {
  10022. this.node_head.node.active = !0;
  10023. this.node_person.node.active = !1;
  10024. } else {
  10025. this.node_head.node.active = !1;
  10026. this.node_person.node.active = !0;
  10027. }
  10028. this.rich_dialog.string = this.crtGuide.dialog;
  10029. }
  10030. };
  10031. e.prototype.clickNodeClick = function() {
  10032. return r(this, void 0, void 0, function() {
  10033. return c(this, function(t) {
  10034. switch (t.label) {
  10035. case 0:
  10036. mk.audio.playEffect("button");
  10037. cc.Tween.stopAllByTarget(this.node_display);
  10038. console.log("clickNodeClick");
  10039. this.targetNode && this.targetNode.getComponent(cc.Button).clickEvents.pop();
  10040. this.event_data && mk.event.emit("event_guide", this.event_data);
  10041. this.reset();
  10042. return this.crtGuide.lag_next > 0 ? [ 4, mk.time.WaitForSeconds(this.crtGuide.lag_next) ] : [ 3, 2 ];
  10043. case 1:
  10044. t.sent();
  10045. t.label = 2;
  10046. case 2:
  10047. this.nextStep();
  10048. return [ 2 ];
  10049. }
  10050. });
  10051. });
  10052. };
  10053. e.prototype.reset = function() {
  10054. this.node_display.width = 0;
  10055. this.node_display.height = 0;
  10056. this.node_bg.width = this.node.width;
  10057. this.node_bg.height = this.node.height;
  10058. this.node_bg.x = -this.node_display.x;
  10059. this.node_bg.y = -this.node_display.y;
  10060. this.node_bg.opacity = 0;
  10061. this.node_click.width = 0;
  10062. this.node_click.height = 0;
  10063. this.node_finger.opacity = 0;
  10064. this.node_dialog.opacity = 0;
  10065. };
  10066. e.prototype.close = function() {
  10067. mk.guide.close();
  10068. this.node.destroy();
  10069. };
  10070. e.prototype.initTouch = function() {
  10071. var t = cc.EventListener;
  10072. this._touchListener = t.create({
  10073. event: t.TOUCH_ONE_BY_ONE,
  10074. swallowTouches: !1,
  10075. owner: this.node_click,
  10076. mask: null,
  10077. onTouchBegan: this.onTouchStart.bind(this),
  10078. onTouchMoved: null,
  10079. onTouchEnded: this.onTouchEnded.bind(this),
  10080. onTouchCancelled: null
  10081. });
  10082. this._eventManager.addListener(this._touchListener, this.node_click);
  10083. };
  10084. e.prototype.onTouchStart = function(t) {
  10085. if (this.ifThrough) {
  10086. var e = t.getLocation(), n = this.node.parent.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y));
  10087. return this.pointInPoly(n, this.node_click);
  10088. }
  10089. return !1;
  10090. };
  10091. e.prototype.pointInPoly = function(t, e) {
  10092. var n = e.getPosition();
  10093. return t.x >= n.x - this.node_click.width / 2 && t.x <= n.x + this.node_click.width / 2 && t.y >= n.y - this.node_click.height / 2 && t.y <= n.y + this.node_click.height / 2;
  10094. };
  10095. e.prototype.onTouchEnded = function() {
  10096. this.clickNodeClick();
  10097. };
  10098. e.prototype.onDestroy = function() {
  10099. this._eventManager.removeListener(this._touchListener, this.node_click);
  10100. };
  10101. a([ p({
  10102. type: cc.Node,
  10103. displayName: "显示区域"
  10104. }) ], e.prototype, "node_display", void 0);
  10105. a([ p({
  10106. type: cc.Node,
  10107. displayName: "点击区域"
  10108. }) ], e.prototype, "node_click", void 0);
  10109. a([ p({
  10110. type: cc.Node,
  10111. displayName: "背景"
  10112. }) ], e.prototype, "node_bg", void 0);
  10113. a([ p({
  10114. type: cc.Node,
  10115. displayName: "对话框"
  10116. }) ], e.prototype, "node_dialog", void 0);
  10117. a([ p({
  10118. type: cc.Node,
  10119. displayName: "手指"
  10120. }) ], e.prototype, "node_finger", void 0);
  10121. a([ p({
  10122. type: cc.Sprite,
  10123. displayName: "头像"
  10124. }) ], e.prototype, "node_head", void 0);
  10125. a([ p({
  10126. type: sp.Skeleton,
  10127. displayName: "形象"
  10128. }) ], e.prototype, "node_person", void 0);
  10129. a([ p({
  10130. type: cc.RichText,
  10131. displayName: "对话内容"
  10132. }) ], e.prototype, "rich_dialog", void 0);
  10133. return a([ u ], e);
  10134. }(cc.Component);
  10135. n.default = d;
  10136. cc._RF.pop();
  10137. }, {
  10138. "../../data/GameData": "GameData"
  10139. } ],
  10140. HelpData: [ function(t, e, n) {
  10141. "use strict";
  10142. cc._RF.push(e, "aaac0t3/iZIuY4huYMhWUJL", "HelpData");
  10143. Object.defineProperty(n, "__esModule", {
  10144. value: !0
  10145. });
  10146. n.HelpData = void 0;
  10147. var o = function() {
  10148. function t() {
  10149. this.init_desc_name = !1;
  10150. this._des = "";
  10151. }
  10152. Object.defineProperty(t.prototype, "des", {
  10153. get: function() {
  10154. return this._des;
  10155. },
  10156. set: function(t) {
  10157. this._des = t;
  10158. this.init_desc_name = !0;
  10159. },
  10160. enumerable: !1,
  10161. configurable: !0
  10162. });
  10163. return t;
  10164. }();
  10165. n.HelpData = o;
  10166. cc._RF.pop();
  10167. }, {} ],
  10168. Help: [ function(t, e, n) {
  10169. "use strict";
  10170. cc._RF.push(e, "7626bHemEpG267E801XmW+W", "Help");
  10171. var o, i = this && this.__extends || (o = function(t, e) {
  10172. return (o = Object.setPrototypeOf || {
  10173. __proto__: []
  10174. } instanceof Array && function(t, e) {
  10175. t.__proto__ = e;
  10176. } || function(t, e) {
  10177. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  10178. })(t, e);
  10179. }, function(t, e) {
  10180. o(t, e);
  10181. function n() {
  10182. this.constructor = t;
  10183. }
  10184. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  10185. }), a = this && this.__decorate || function(t, e, n, o) {
  10186. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  10187. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  10188. return a > 3 && r && Object.defineProperty(e, n, r), r;
  10189. };
  10190. Object.defineProperty(n, "__esModule", {
  10191. value: !0
  10192. });
  10193. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  10194. i(e, t);
  10195. function e() {
  10196. var e = null !== t && t.apply(this, arguments) || this;
  10197. e.lbl_desc = null;
  10198. return e;
  10199. }
  10200. e.prototype.start = function() {
  10201. mk.ad.showNative(4);
  10202. };
  10203. e.prototype.update = function() {
  10204. gData.help.init_desc_name && (this.lbl_desc.string = gData.help.des);
  10205. };
  10206. e.prototype.lateUpdate = function() {
  10207. gData.help.init_desc_name = !1;
  10208. };
  10209. e.prototype.onClickClose = function() {
  10210. mk.ad.destroyNativeAd();
  10211. };
  10212. a([ s({
  10213. type: cc.Label,
  10214. displayName: "文字说明"
  10215. }) ], e.prototype, "lbl_desc", void 0);
  10216. return a([ c ], e);
  10217. }(cc.Component);
  10218. n.default = l;
  10219. cc._RF.pop();
  10220. }, {} ],
  10221. HotUpdatePanel: [ function(t, e, n) {
  10222. "use strict";
  10223. cc._RF.push(e, "a9502IxXURFCJkFwG7UFpJ+", "HotUpdatePanel");
  10224. var o, i = this && this.__extends || (o = function(t, e) {
  10225. return (o = Object.setPrototypeOf || {
  10226. __proto__: []
  10227. } instanceof Array && function(t, e) {
  10228. t.__proto__ = e;
  10229. } || function(t, e) {
  10230. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  10231. })(t, e);
  10232. }, function(t, e) {
  10233. o(t, e);
  10234. function n() {
  10235. this.constructor = t;
  10236. }
  10237. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  10238. }), a = this && this.__decorate || function(t, e, n, o) {
  10239. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  10240. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  10241. return a > 3 && r && Object.defineProperty(e, n, r), r;
  10242. };
  10243. Object.defineProperty(n, "__esModule", {
  10244. value: !0
  10245. });
  10246. var r = t("../../../mk/sdk/hot/HotUpdate"), c = t("../../data/AppData"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  10247. i(e, t);
  10248. function e() {
  10249. var e = null !== t && t.apply(this, arguments) || this;
  10250. e.manifest = null;
  10251. return e;
  10252. }
  10253. e.prototype.onLoad = function() {
  10254. var t = this;
  10255. this.initView();
  10256. var e = new r.HotOptions();
  10257. e.OnVersionInfo = function(t) {
  10258. t.local, t.server;
  10259. };
  10260. e.OnUpdateProgress = function(t) {
  10261. t.getDownloadedBytes(), t.getTotalBytes(), t.getDownloadedFiles(), t.getTotalFiles();
  10262. var e = t.getPercentByFile().toFixed(2);
  10263. t.getPercent().toFixed(2), t.getMessage();
  10264. gData.appData.updateState = c.UpdateState.IsUpdate;
  10265. gData.appData.updatePercent = parseFloat(e);
  10266. console.log("[update]: 进度=" + e);
  10267. };
  10268. e.OnNeedToUpdate = function() {
  10269. r.default.hotUpdate();
  10270. };
  10271. e.OnNoNeedToUpdate = function() {
  10272. t.enterGame();
  10273. };
  10274. e.OnUpdateFailed = function() {
  10275. console.log("热更新失败");
  10276. setTimeout(function() {
  10277. r.default.checkUpdate();
  10278. }, 2e3);
  10279. };
  10280. e.OnUpdateSucceed = function() {
  10281. console.log("更新成功");
  10282. cc.audioEngine.stopAll();
  10283. cc.game.restart();
  10284. };
  10285. r.default.init(this.manifest, e);
  10286. };
  10287. e.prototype.start = function() {};
  10288. e.prototype.initView = function() {};
  10289. e.prototype.checkHotUpdate = function() {
  10290. if (cc.sys.isNative) this.manifest && r.default.checkUpdate(); else {
  10291. console.log("web 平台不需要热更新");
  10292. this.enterGame();
  10293. }
  10294. };
  10295. e.prototype.enterGame = function() {
  10296. console.log("进入游戏成功");
  10297. gData.appData.updateState = c.UpdateState.UpdateFinish;
  10298. };
  10299. a([ u({
  10300. displayName: "project.manifest",
  10301. type: cc.Asset
  10302. }) ], e.prototype, "manifest", void 0);
  10303. return a([ l ], e);
  10304. }(cc.Component);
  10305. n.default = p;
  10306. cc._RF.pop();
  10307. }, {
  10308. "../../../mk/sdk/hot/HotUpdate": "HotUpdate",
  10309. "../../data/AppData": "AppData"
  10310. } ],
  10311. HotUpdate: [ function(t, e, n) {
  10312. "use strict";
  10313. cc._RF.push(e, "00c37gL5Y9EX4cXueCujJ0L", "HotUpdate");
  10314. Object.defineProperty(n, "__esModule", {
  10315. value: !0
  10316. });
  10317. n.HotOptions = void 0;
  10318. var o = function() {
  10319. function t() {}
  10320. t.prototype.check = function() {
  10321. for (var t in this) if ("check" !== t && !this[t]) {
  10322. console.log("参数HotOptions." + t + "未设置!");
  10323. return !1;
  10324. }
  10325. return !0;
  10326. };
  10327. return t;
  10328. }();
  10329. n.HotOptions = o;
  10330. var i = new (function() {
  10331. function t() {
  10332. this._assetsMgr = null;
  10333. this._options = null;
  10334. this._state = t.State.None;
  10335. }
  10336. t.prototype.checkUpdate = function() {
  10337. if (this._assetsMgr) if (this._assetsMgr.getState() !== jsb.AssetsManager.State.UNINITED) if (this._assetsMgr.getLocalManifest().isLoaded()) {
  10338. this._assetsMgr.setEventCallback(this._hotUpdateCallBack.bind(this));
  10339. this._state = t.State.Check;
  10340. this._assetsMgr.checkUpdate();
  10341. } else console.log("加载本地 manifest 失败 ..."); else cc.error("未初始化"); else console.log("请先初始化");
  10342. };
  10343. t.prototype.hotUpdate = function() {
  10344. if (this._assetsMgr) {
  10345. this._assetsMgr.setEventCallback(this._hotUpdateCallBack.bind(this));
  10346. this._state = t.State.Update;
  10347. this._assetsMgr.update();
  10348. } else console.log("请先初始化");
  10349. };
  10350. t.prototype._hotUpdateCallBack = function(e) {
  10351. var n = e.getEventCode();
  10352. console.log("hotUpdate Code: " + n);
  10353. switch (n) {
  10354. case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
  10355. case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
  10356. case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
  10357. console.log("无远程资源");
  10358. this._options.OnNoNeedToUpdate && this._options.OnNoNeedToUpdate(n);
  10359. break;
  10360. case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
  10361. console.log("已经和远程版本一致,无须更新");
  10362. this._options.OnNoNeedToUpdate && this._options.OnNoNeedToUpdate(n);
  10363. break;
  10364. case jsb.EventAssetsManager.NEW_VERSION_FOUND:
  10365. console.log("发现新版本,请更新");
  10366. this._options.OnNeedToUpdate && this._options.OnNeedToUpdate(n);
  10367. break;
  10368. case jsb.EventAssetsManager.UPDATE_PROGRESSION:
  10369. console.log("更新中...");
  10370. this._state === t.State.Update && this._options.OnUpdateProgress && this._options.OnUpdateProgress(e);
  10371. break;
  10372. case jsb.EventAssetsManager.UPDATE_FINISHED:
  10373. console.log("更新成功");
  10374. this._onUpdateFinished();
  10375. break;
  10376. case jsb.EventAssetsManager.ASSET_UPDATED:
  10377. break;
  10378. default:
  10379. this._onUpdateFailed(n);
  10380. }
  10381. };
  10382. t.prototype._onUpdateFailed = function(t) {
  10383. this._assetsMgr.setEventCallback(null);
  10384. this._options.OnUpdateFailed && this._options.OnUpdateFailed(t);
  10385. };
  10386. t.prototype._onUpdateFinished = function() {
  10387. this._assetsMgr.setEventCallback(null);
  10388. var t = jsb.fileUtils.getSearchPaths(), e = this._assetsMgr.getLocalManifest().getSearchPaths();
  10389. console.log("[HotUpdate] 搜索路径: " + JSON.stringify(e));
  10390. Array.prototype.unshift(t, e);
  10391. cc.sys.localStorage.setItem("HotUpdateSearchPaths", JSON.stringify(t));
  10392. jsb.fileUtils.setSearchPaths(t);
  10393. this._options.OnUpdateSucceed && this._options.OnUpdateSucceed();
  10394. };
  10395. t.prototype.showSearchPath = function() {
  10396. console.log("========================搜索路径========================");
  10397. for (var t = jsb.fileUtils.getSearchPaths(), e = 0; e < t.length; e++) console.log("[" + e + "]: " + t[e]);
  10398. console.log("======================================================");
  10399. };
  10400. t.prototype.init = function(t, e) {
  10401. if (cc.sys.isNative && e.check()) {
  10402. this._options = e;
  10403. if (!this._assetsMgr) {
  10404. this.showSearchPath();
  10405. var n = t.nativeUrl;
  10406. cc.loader.md5Pipe && (n = cc.loader.md5Pipe.transformURL(n));
  10407. var o = (jsb.fileUtils ? jsb.fileUtils.getWritablePath() : "/") + "remote-asset";
  10408. this._assetsMgr = new jsb.AssetsManager(n, o, function(t, e) {
  10409. console.log("客户端版本: " + t + ", 当前最新版本: " + e);
  10410. for (var n = t.split("."), o = e.split("."), i = 0; i < n.length; ++i) {
  10411. var a = parseInt(n[i]), r = parseInt(o[i] || "0");
  10412. if (a !== r) return a - r;
  10413. }
  10414. return o.length > n.length ? -1 : 0;
  10415. });
  10416. this._assetsMgr.setVerifyCallback(function(t, e) {
  10417. e.compressed, e.md5, e.path, e.size;
  10418. return !0;
  10419. });
  10420. cc.sys.os, cc.sys.OS_ANDROID;
  10421. var i = this._assetsMgr.getLocalManifest();
  10422. console.log("[HotUpdate] 热更新资源存放路径: " + o);
  10423. console.log("[HotUpdate] 本地manifest路径: " + n);
  10424. console.log("[HotUpdate] local packageUrl: " + i.getPackageUrl());
  10425. console.log("[HotUpdate] project.manifest remote url: " + i.getManifestFileUrl());
  10426. console.log("[HotUpdate] version.manifest remote url: " + i.getVersionFileUrl());
  10427. }
  10428. }
  10429. };
  10430. t.State = {
  10431. None: 0,
  10432. Check: 1,
  10433. Update: 2
  10434. };
  10435. return t;
  10436. }())();
  10437. n.default = i;
  10438. cc._RF.pop();
  10439. }, {} ],
  10440. HttpData: [ function(t, e, n) {
  10441. "use strict";
  10442. cc._RF.push(e, "f4687XIHE1PXpP56AhrXtMn", "HttpData");
  10443. Object.defineProperty(n, "__esModule", {
  10444. value: !0
  10445. });
  10446. n.ServerUrl = n.HttpData = void 0;
  10447. var o, i = function() {
  10448. function t() {
  10449. this.serverType = 1;
  10450. }
  10451. t.prototype.getServerUrl = function() {
  10452. switch (this.serverType) {
  10453. case 0:
  10454. return o.test;
  10455. case 1:
  10456. return o.formal;
  10457. case 2:
  10458. return o.liyang;
  10459. case 3:
  10460. return o.hanguo;
  10461. }
  10462. return o.formal;
  10463. };
  10464. return t;
  10465. }();
  10466. n.HttpData = i;
  10467. (function(t) {
  10468. t.test = "https://cutfruitage-test.duiweize.com/";
  10469. t.formal = "https://cutfruitage.duiweize.com/";
  10470. t.liyang = "http://172.16.15.231:9162/";
  10471. t.hanguo = "http://172.16.15.167:9162/";
  10472. })(o = n.ServerUrl || (n.ServerUrl = {}));
  10473. cc._RF.pop();
  10474. }, {} ],
  10475. HttpSystem: [ function(t, e, n) {
  10476. "use strict";
  10477. cc._RF.push(e, "fe015tjuNVJ1rKouaAn8VvC", "HttpSystem");
  10478. var o = this && this.__awaiter || function(t, e, n, o) {
  10479. return new (n || (n = Promise))(function(i, a) {
  10480. function r(t) {
  10481. try {
  10482. s(o.next(t));
  10483. } catch (t) {
  10484. a(t);
  10485. }
  10486. }
  10487. function c(t) {
  10488. try {
  10489. s(o.throw(t));
  10490. } catch (t) {
  10491. a(t);
  10492. }
  10493. }
  10494. function s(t) {
  10495. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  10496. t(e);
  10497. })).then(r, c);
  10498. var e;
  10499. }
  10500. s((o = o.apply(t, e || [])).next());
  10501. });
  10502. }, i = this && this.__generator || function(t, e) {
  10503. var n, o, i, a, r = {
  10504. label: 0,
  10505. sent: function() {
  10506. if (1 & i[0]) throw i[1];
  10507. return i[1];
  10508. },
  10509. trys: [],
  10510. ops: []
  10511. };
  10512. return a = {
  10513. next: c(0),
  10514. throw: c(1),
  10515. return: c(2)
  10516. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  10517. return this;
  10518. }), a;
  10519. function c(t) {
  10520. return function(e) {
  10521. return s([ t, e ]);
  10522. };
  10523. }
  10524. function s(a) {
  10525. if (n) throw new TypeError("Generator is already executing.");
  10526. for (;r; ) try {
  10527. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  10528. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  10529. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  10530. switch (a[0]) {
  10531. case 0:
  10532. case 1:
  10533. i = a;
  10534. break;
  10535. case 4:
  10536. r.label++;
  10537. return {
  10538. value: a[1],
  10539. done: !1
  10540. };
  10541. case 5:
  10542. r.label++;
  10543. o = a[1];
  10544. a = [ 0 ];
  10545. continue;
  10546. case 7:
  10547. a = r.ops.pop();
  10548. r.trys.pop();
  10549. continue;
  10550. default:
  10551. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  10552. r = 0;
  10553. continue;
  10554. }
  10555. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  10556. r.label = a[1];
  10557. break;
  10558. }
  10559. if (6 === a[0] && r.label < i[1]) {
  10560. r.label = i[1];
  10561. i = a;
  10562. break;
  10563. }
  10564. if (i && r.label < i[2]) {
  10565. r.label = i[2];
  10566. r.ops.push(a);
  10567. break;
  10568. }
  10569. i[2] && r.ops.pop();
  10570. r.trys.pop();
  10571. continue;
  10572. }
  10573. a = e.call(t, r);
  10574. } catch (t) {
  10575. a = [ 6, t ];
  10576. o = 0;
  10577. } finally {
  10578. n = i = 0;
  10579. }
  10580. if (5 & a[0]) throw a[1];
  10581. return {
  10582. value: a[0] ? a[1] : void 0,
  10583. done: !0
  10584. };
  10585. }
  10586. };
  10587. Object.defineProperty(n, "__esModule", {
  10588. value: !0
  10589. });
  10590. var a = function() {
  10591. function t() {}
  10592. t.prototype.sendData = function(t, e, n) {
  10593. void 0 === n && (n = !0);
  10594. return o(this, void 0, void 0, function() {
  10595. var o, a, r;
  10596. return i(this, function(i) {
  10597. switch (i.label) {
  10598. case 0:
  10599. e.timestamp = Math.floor(new Date().getTime() / 1e3);
  10600. e.appVersion = gData.appData.appVersion;
  10601. e.tfChannel = gData.appData.tfChannel;
  10602. e.versioncfg = gData.appData.version;
  10603. o = mk.encrypt.encrypt(JSON.stringify(e), gData.loginData.sessionKey, gData.appData.appId);
  10604. a = {
  10605. uin: gData.loginData.uin,
  10606. encrypt: o
  10607. };
  10608. return [ 4, this.sendRequest(t, "POST", JSON.stringify(a), !1, n) ];
  10609. case 1:
  10610. r = i.sent();
  10611. return [ 2, this.checkData(r) ];
  10612. }
  10613. });
  10614. });
  10615. };
  10616. t.prototype.sendRequest = function(t, e, n, o, i) {
  10617. void 0 === e && (e = "POST");
  10618. void 0 === n && (n = null);
  10619. void 0 === o && (o = !0);
  10620. void 0 === i && (i = !0);
  10621. t = gData.httpData.getServerUrl() + t;
  10622. return new Promise(function(a, r) {
  10623. var c = 0, s = new XMLHttpRequest(), l = function() {
  10624. s.open(e, t, i);
  10625. s.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
  10626. o && null != n && (n = mk.encrypt.rsaEncrypt(n));
  10627. s.send(n);
  10628. };
  10629. s.onreadystatechange = function() {
  10630. if (4 === s.readyState) if (200 === s.status) {
  10631. var e = s.responseText, n = JSON.parse(e);
  10632. mk.console.logSingle("response:" + t, n);
  10633. a(n);
  10634. } else {
  10635. mk.console.error("httpRequest.status", s.status);
  10636. r({
  10637. errcode: 1,
  10638. errmsg: "status..." + s.status
  10639. });
  10640. }
  10641. };
  10642. s.ontimeout = function() {
  10643. if (++c >= 3) {
  10644. mk.console.error("http.ontimeout", t);
  10645. r({
  10646. errcode: 1,
  10647. errmsg: "ontimeout"
  10648. });
  10649. } else l();
  10650. };
  10651. s.onerror = function() {
  10652. mk.console.error("http.onerror", t);
  10653. r({
  10654. errcode: 1,
  10655. errmsg: "onerror"
  10656. });
  10657. };
  10658. l();
  10659. });
  10660. };
  10661. t.prototype.checkData = function(t, e) {
  10662. void 0 === e && (e = !1);
  10663. var n = null;
  10664. if (e) n = t.data; else if (t.encrypt) {
  10665. n = mk.encrypt.decrypt(t.encrypt, gData.loginData.sessionKey, gData.appData.appId);
  10666. n = JSON.parse(n);
  10667. } else t.data && (n = t.data);
  10668. t.data = n;
  10669. return t;
  10670. };
  10671. return t;
  10672. }();
  10673. n.default = a;
  10674. cc._RF.pop();
  10675. }, {} ],
  10676. IADSDKMgr: [ function(t, e, n) {
  10677. "use strict";
  10678. cc._RF.push(e, "9f951Bz1DdFSbFZXOe4weSR", "IADSDKMgr");
  10679. Object.defineProperty(n, "__esModule", {
  10680. value: !0
  10681. });
  10682. cc._RF.pop();
  10683. }, {} ],
  10684. JsbSystem: [ function(t, e, n) {
  10685. "use strict";
  10686. cc._RF.push(e, "144031h5xRBsa+umFGEHyuG", "JsbSystem");
  10687. var o = this && this.__spreadArrays || function() {
  10688. for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
  10689. var o = Array(t), i = 0;
  10690. for (e = 0; e < n; e++) for (var a = arguments[e], r = 0, c = a.length; r < c; r++,
  10691. i++) o[i] = a[r];
  10692. return o;
  10693. };
  10694. Object.defineProperty(n, "__esModule", {
  10695. value: !0
  10696. });
  10697. var i = function() {
  10698. function t() {}
  10699. t.isFileExist = function(t) {
  10700. if (cc.sys.os == cc.sys.OS_WINDOWS) return !0;
  10701. var e = this.getWritablePath() + t + ".apk";
  10702. return jsb.fileUtils.isFileExist(e);
  10703. };
  10704. t.getWritablePath = function() {
  10705. return jsb.fileUtils.getWritablePath();
  10706. };
  10707. t.callStaticMethod = function(t, e, n) {
  10708. for (var i, a = [], r = 3; r < arguments.length; r++) a[r - 3] = arguments[r];
  10709. var c = (i = jsb.reflection).callStaticMethod.apply(i, o([ t, e, n ], a));
  10710. return c;
  10711. };
  10712. t.backTest = function() {};
  10713. t.updateDeviceInfo = function(t) {
  10714. mk.console.log("===[JsbSystem] updateDeviceInfo", t);
  10715. cc.sys.os == cc.sys.OS_ANDROID ? gData.appData.updateDeviceInfo(t) : (cc.sys.os,
  10716. cc.sys.OS_IOS);
  10717. };
  10718. t.checkPermission = function() {
  10719. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "checkPermission", "()V") : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("GameConfig", "checkPermission:", "");
  10720. };
  10721. t.getDeviceInfo = function() {
  10722. var t = "";
  10723. if (cc.sys.os == cc.sys.OS_ANDROID) {
  10724. t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getDeviceInfo", "()Ljava/lang/String;");
  10725. console.log("===[JsbSystem] getDeviceInfo ", t);
  10726. gData.appData.updateDeviceInfo(t);
  10727. } else cc.sys.os == cc.sys.OS_IOS ? this.callStaticMethod(this._JSB_IOS_PATH, "getDeviceInfo", "") : gData.appData.getDeviceInfoCompelete = !0;
  10728. };
  10729. t.getPackageName = function() {
  10730. var t = "";
  10731. cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getPackageName", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "getPackageName", ""));
  10732. return t;
  10733. };
  10734. t.getWxAppId = function() {
  10735. var t = "";
  10736. cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getWxAppId", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "getWxAppId", ""));
  10737. var e = t.split(";");
  10738. if (e) {
  10739. gData.appData.appId = e[0];
  10740. gData.appData.version = e[1];
  10741. }
  10742. };
  10743. t.getAdvertisingChannel = function() {
  10744. var t = "";
  10745. cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getAdvertisingChannel", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "AdvertisingChannel", ""));
  10746. return t;
  10747. };
  10748. t.showSplash = function() {
  10749. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "showSplash", "()V") : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("GameConfig", "showSplash:", "");
  10750. };
  10751. t.setClipboard = function(t) {
  10752. if (cc.sys.os == cc.sys.OS_ANDROID) this.callStaticMethod(this._JSB_ANDROID_PATH, "setClipboard", "(Ljava/lang/String;)V", t); else if (cc.sys.os == cc.sys.OS_IOS) ; else if (cc.sys.isBrowser) {
  10753. var e = t, n = document.createElement("textarea");
  10754. n.value = e;
  10755. n.setAttribute("readonly", "");
  10756. n.style.contain = "strict";
  10757. n.style.position = "absolute";
  10758. n.style.left = "-9999px";
  10759. n.style.fontSize = "12pt";
  10760. var o = getSelection(), i = !1;
  10761. o.rangeCount > 0 && (i = o.getRangeAt(0));
  10762. document.body.appendChild(n);
  10763. n.select();
  10764. n.selectionStart = 0;
  10765. n.selectionEnd = e.length;
  10766. var a = !1;
  10767. try {
  10768. a = document.execCommand("copy");
  10769. } catch (t) {}
  10770. document.body.removeChild(n);
  10771. if (i) {
  10772. o.removeAllRanges();
  10773. o.addRange(i);
  10774. }
  10775. return a;
  10776. }
  10777. };
  10778. t.requestPermission = function() {
  10779. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "requestPermission", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "requestPermission", "");
  10780. };
  10781. t.getAppVersion = function() {
  10782. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "getAppVersion", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "getAppVersion", "");
  10783. };
  10784. t.setAppVersion = function() {
  10785. cc.sys.os == cc.sys.OS_ANDROID || (cc.sys.os, cc.sys.OS_IOS);
  10786. };
  10787. t.installApk = function(t) {
  10788. var e = this.getWritablePath() + t + ".apk";
  10789. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "installApk", "(Ljava/lang/String;)V", e) : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("GameConfig", "installApk:", "");
  10790. };
  10791. t.ifCanStartGame = function(t, e) {
  10792. var n = !1;
  10793. if (cc.sys.os == cc.sys.OS_ANDROID) return this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e);
  10794. cc.sys.os == cc.sys.OS_IOS && (n = this.callStaticMethod("GameConfig", "installApk:", ""));
  10795. return n;
  10796. };
  10797. t.setTAEventRegister = function() {
  10798. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "setTAEventRegister", "()V") : (cc.sys.os,
  10799. cc.sys.OS_IOS);
  10800. };
  10801. t.sendEvent = function(t, e) {
  10802. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "sendEvent", "(Ljava/lang/String;Ljava/lang/String;)V", t, e) : (cc.sys.os,
  10803. cc.sys.OS_IOS);
  10804. };
  10805. t.WxAuth = function() {
  10806. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "WxAuth", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
  10807. };
  10808. t.onGetWxAccessCode = function(t) {
  10809. gData.wechatData.code = t;
  10810. console.log("=== gData.wechatData.code", gData.wechatData.code);
  10811. gData.loginData.wxLogin();
  10812. };
  10813. t.OpenMiniGame = function() {
  10814. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "OpenMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
  10815. };
  10816. t.ShareToMiniGame = function() {
  10817. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "ShareToMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
  10818. };
  10819. t.sharePic = function() {
  10820. cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod(this._JSB_ANDROID_PATH, "sharePic", "()V") : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("GameConfig", "sharePic:", ""));
  10821. };
  10822. t.openWx = function() {
  10823. cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "openWx", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "openWx", "");
  10824. };
  10825. t.downFile2Local = function(t, e, n, o, i) {
  10826. var a = jsb.fileUtils.getWritablePath() + e;
  10827. if (jsb) {
  10828. var r = new jsb.Downloader();
  10829. r.setOnFileTaskSuccess(function() {
  10830. console.log("DownLoadM setOnFileTaskSuccess", "");
  10831. if (n) {
  10832. console.log("DownLoadM result... ", jsb.fileUtils.isFileExist(a));
  10833. console.log("DownLoadM setOnFileTaskSuccess fullPath...", a);
  10834. n(a);
  10835. }
  10836. });
  10837. r.setOnTaskError(function(t, e, n, i) {
  10838. console.log("DownLoadM setOnTaskError", e + " ; " + n + " ; " + i);
  10839. o && o(a);
  10840. });
  10841. r.setOnTaskProgress(function(t, e, n, o) {
  10842. console.log("DownLoadM", e + " ; " + n + " ; " + o);
  10843. i && i(e, n, o);
  10844. });
  10845. r.createDownloadFileTask(t, a);
  10846. return r;
  10847. }
  10848. };
  10849. t.updateSplashAdLog = function(t) {
  10850. var e = t.split("#"), n = JSON.parse(e[1]);
  10851. gData.adData.updateADLog(6, e[0], n);
  10852. };
  10853. t.getAliRiskDeviceToken = function() {
  10854. var t = "";
  10855. cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getAliDeviceToken", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("AppController", "openWx", ""));
  10856. return t;
  10857. };
  10858. t._JSB_ANDROID_PATH = "org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr";
  10859. t._JSB_IOS_PATH = "ThirdSdkMgr";
  10860. return t;
  10861. }();
  10862. n.default = i;
  10863. window.JsbMgr = i;
  10864. cc._RF.pop();
  10865. }, {} ],
  10866. LoadResUtil: [ function(t, e, n) {
  10867. "use strict";
  10868. cc._RF.push(e, "027abfHullEcrlQpxOvHVc5", "LoadResUtil");
  10869. Object.defineProperty(n, "__esModule", {
  10870. value: !0
  10871. });
  10872. var o = function() {
  10873. function t() {}
  10874. t.prototype.preload = function(t, e) {
  10875. return new Promise(function(n, o) {
  10876. cc.resources.preload(t, e, function() {}, function(t, e) {
  10877. void 0 === t && (t = null);
  10878. t ? o(t) : n(e);
  10879. });
  10880. });
  10881. };
  10882. t.prototype.load = function(t, e) {
  10883. return new Promise(function(n, o) {
  10884. cc.resources.load(t, e, function() {}, function(t, e) {
  10885. void 0 === t && (t = null);
  10886. t ? o(t) : n(e);
  10887. });
  10888. });
  10889. };
  10890. t.prototype.preloadDir = function(t, e) {
  10891. return new Promise(function(n, o) {
  10892. cc.resources.preloadDir(t, e, function() {}, function(t, e) {
  10893. void 0 === t && (t = null);
  10894. t ? o(t) : n(e);
  10895. });
  10896. });
  10897. };
  10898. t.prototype.loadDir = function(t, e) {
  10899. return new Promise(function(n, o) {
  10900. cc.resources.loadDir(t, e, function() {}, function(t, e) {
  10901. void 0 === t && (t = null);
  10902. t ? o(t) : n(e);
  10903. });
  10904. });
  10905. };
  10906. t.prototype.loadRemote = function(t, e) {
  10907. return new Promise(function(n, o) {
  10908. cc.assetManager.loadRemote(t, e, function(t, e) {
  10909. void 0 === t && (t = null);
  10910. t ? o(t) : n(e);
  10911. });
  10912. });
  10913. };
  10914. t.prototype.preloadScene = function(t, e) {
  10915. return new Promise(function(n, o) {
  10916. cc.resources.preloadScene(t, e, function() {}, function(t) {
  10917. void 0 === t && (t = null);
  10918. t ? o(t) : n();
  10919. });
  10920. });
  10921. };
  10922. t.prototype.loadScene = function(t, e) {
  10923. return new Promise(function(n, o) {
  10924. cc.resources.loadScene(t, e, function() {}, function(t, e) {
  10925. void 0 === t && (t = null);
  10926. t ? o(t) : n(e);
  10927. });
  10928. });
  10929. };
  10930. t._logTag = "[LoadResUtil]";
  10931. return t;
  10932. }();
  10933. n.default = o;
  10934. cc._RF.pop();
  10935. }, {} ],
  10936. LoadingBar: [ function(t, e, n) {
  10937. "use strict";
  10938. cc._RF.push(e, "1e65dZ40OtGzJi5szN4XMZR", "LoadingBar");
  10939. var o, i = this && this.__extends || (o = function(t, e) {
  10940. return (o = Object.setPrototypeOf || {
  10941. __proto__: []
  10942. } instanceof Array && function(t, e) {
  10943. t.__proto__ = e;
  10944. } || function(t, e) {
  10945. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  10946. })(t, e);
  10947. }, function(t, e) {
  10948. o(t, e);
  10949. function n() {
  10950. this.constructor = t;
  10951. }
  10952. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  10953. }), a = this && this.__decorate || function(t, e, n, o) {
  10954. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  10955. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  10956. return a > 3 && r && Object.defineProperty(e, n, r), r;
  10957. };
  10958. Object.defineProperty(n, "__esModule", {
  10959. value: !0
  10960. });
  10961. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  10962. i(e, t);
  10963. function e() {
  10964. var e = null !== t && t.apply(this, arguments) || this;
  10965. e.bar = null;
  10966. return e;
  10967. }
  10968. e.prototype.onLoad = function() {
  10969. this.len = this.bar.node.width;
  10970. this.bar.node.x = -this.len;
  10971. };
  10972. e.prototype.setProgress = function(t) {
  10973. this.bar.node.x = -this.len + t / 100 * this.len;
  10974. };
  10975. a([ s({
  10976. type: cc.Sprite,
  10977. displayName: "进度条"
  10978. }) ], e.prototype, "bar", void 0);
  10979. return a([ c ], e);
  10980. }(cc.Component);
  10981. n.default = l;
  10982. cc._RF.pop();
  10983. }, {} ],
  10984. LogUtil: [ function(t, e, n) {
  10985. "use strict";
  10986. cc._RF.push(e, "a2461HsfJZEfZb/Xlwzf0Nx", "LogUtil");
  10987. var o = this && this.__spreadArrays || function() {
  10988. for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
  10989. var o = Array(t), i = 0;
  10990. for (e = 0; e < n; e++) for (var a = arguments[e], r = 0, c = a.length; r < c; r++,
  10991. i++) o[i] = a[r];
  10992. return o;
  10993. };
  10994. Object.defineProperty(n, "__esModule", {
  10995. value: !0
  10996. });
  10997. n.LogTagColor = void 0;
  10998. var i, a = function() {
  10999. function t() {
  11000. this.ifShowLog = !1;
  11001. this._tagChar = "...";
  11002. this._frontChar = " ";
  11003. this._keyValueChar = " = ";
  11004. }
  11005. t.prototype.log = function(t) {
  11006. for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
  11007. if (this.ifShowLog) {
  11008. var i = t + this._tagChar;
  11009. console.log.apply(console, o([ i ], e));
  11010. }
  11011. };
  11012. t.prototype.logWithColor = function(t) {
  11013. for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
  11014. if (this.ifShowLog) {
  11015. var a = t + this._tagChar;
  11016. console.log.apply(console, o([ "%c " + a, "color: " + i.skyblue ], e));
  11017. }
  11018. };
  11019. t.prototype.warn = function(t) {
  11020. for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
  11021. if (this.ifShowLog) {
  11022. var a = t + this._tagChar;
  11023. console.warn.apply(console, o([ "%c " + a, "color: " + i.orange ], e));
  11024. }
  11025. };
  11026. t.prototype.error = function(t) {
  11027. for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
  11028. if (this.ifShowLog) {
  11029. var a = t + this._tagChar;
  11030. console.warn.apply(console, o([ "%c " + a, "color: " + i.red ], e));
  11031. }
  11032. };
  11033. t.prototype.logSingle = function(t, e, n) {
  11034. void 0 === n && (n = 0);
  11035. if (cc.sys.os == cc.sys.OS_ANDROID) {
  11036. if (this.ifShowLog && null != e && null != e) if ("number" == typeof e || "string" == typeof e || "boolean" == typeof e) this.log(t + "=> " + this.getFrontStr(n) + t, e); else for (var o = Object.keys(e), i = 0, a = o; i < a.length; i++) {
  11037. var r = a[i];
  11038. if (e.hasOwnProperty(r)) {
  11039. o.indexOf(r);
  11040. if ("object" == typeof e[r]) {
  11041. this.log(t + "=> " + this.getFrontStr(n), r, this._keyValueChar);
  11042. this.logSingle(t, e[r], n + 1);
  11043. } else this.log(t + "=> " + this.getFrontStr(n), r, this._keyValueChar, e[r]);
  11044. }
  11045. }
  11046. } else this.log(t, e);
  11047. };
  11048. t.prototype.getMessage = function() {
  11049. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  11050. for (var n = "", o = 0; o < t.length; o++) {
  11051. for (var i = t[o], a = "", r = 0; r < i.length; r++) {
  11052. var c = i[r];
  11053. a += c;
  11054. }
  11055. n += a;
  11056. }
  11057. return n;
  11058. };
  11059. t.prototype.getFrontStr = function(t) {
  11060. var e = "";
  11061. if (t > 0) {
  11062. for (var n = 0; n < t; n++) e += this._frontChar;
  11063. return e;
  11064. }
  11065. return e;
  11066. };
  11067. return t;
  11068. }();
  11069. n.default = a;
  11070. (function(t) {
  11071. t.red = "red;font-weight:bold";
  11072. t.white = "white;font-weight:bold";
  11073. t.yellow = "yellow;font-weight:bold";
  11074. t.green = "green;font-weight:bold";
  11075. t.bule = "blue;font-weight:bold";
  11076. t.skyblue = "#3DB2EF;font-weight:bold";
  11077. t.orange = "orange;font-weight:bold";
  11078. t.black = "black;font-weight:bold";
  11079. })(i = n.LogTagColor || (n.LogTagColor = {}));
  11080. cc._RF.pop();
  11081. }, {} ],
  11082. LoginData: [ function(t, e, n) {
  11083. "use strict";
  11084. cc._RF.push(e, "7d48aywt1tPXI2eRhRzXwYP", "LoginData");
  11085. var o = this && this.__awaiter || function(t, e, n, o) {
  11086. return new (n || (n = Promise))(function(i, a) {
  11087. function r(t) {
  11088. try {
  11089. s(o.next(t));
  11090. } catch (t) {
  11091. a(t);
  11092. }
  11093. }
  11094. function c(t) {
  11095. try {
  11096. s(o.throw(t));
  11097. } catch (t) {
  11098. a(t);
  11099. }
  11100. }
  11101. function s(t) {
  11102. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  11103. t(e);
  11104. })).then(r, c);
  11105. var e;
  11106. }
  11107. s((o = o.apply(t, e || [])).next());
  11108. });
  11109. }, i = this && this.__generator || function(t, e) {
  11110. var n, o, i, a, r = {
  11111. label: 0,
  11112. sent: function() {
  11113. if (1 & i[0]) throw i[1];
  11114. return i[1];
  11115. },
  11116. trys: [],
  11117. ops: []
  11118. };
  11119. return a = {
  11120. next: c(0),
  11121. throw: c(1),
  11122. return: c(2)
  11123. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  11124. return this;
  11125. }), a;
  11126. function c(t) {
  11127. return function(e) {
  11128. return s([ t, e ]);
  11129. };
  11130. }
  11131. function s(a) {
  11132. if (n) throw new TypeError("Generator is already executing.");
  11133. for (;r; ) try {
  11134. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  11135. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  11136. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  11137. switch (a[0]) {
  11138. case 0:
  11139. case 1:
  11140. i = a;
  11141. break;
  11142. case 4:
  11143. r.label++;
  11144. return {
  11145. value: a[1],
  11146. done: !1
  11147. };
  11148. case 5:
  11149. r.label++;
  11150. o = a[1];
  11151. a = [ 0 ];
  11152. continue;
  11153. case 7:
  11154. a = r.ops.pop();
  11155. r.trys.pop();
  11156. continue;
  11157. default:
  11158. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  11159. r = 0;
  11160. continue;
  11161. }
  11162. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  11163. r.label = a[1];
  11164. break;
  11165. }
  11166. if (6 === a[0] && r.label < i[1]) {
  11167. r.label = i[1];
  11168. i = a;
  11169. break;
  11170. }
  11171. if (i && r.label < i[2]) {
  11172. r.label = i[2];
  11173. r.ops.push(a);
  11174. break;
  11175. }
  11176. i[2] && r.ops.pop();
  11177. r.trys.pop();
  11178. continue;
  11179. }
  11180. a = e.call(t, r);
  11181. } catch (t) {
  11182. a = [ 6, t ];
  11183. o = 0;
  11184. } finally {
  11185. n = i = 0;
  11186. }
  11187. if (5 & a[0]) throw a[1];
  11188. return {
  11189. value: a[0] ? a[1] : void 0,
  11190. done: !0
  11191. };
  11192. }
  11193. };
  11194. Object.defineProperty(n, "__esModule", {
  11195. value: !0
  11196. });
  11197. n.LoginData = void 0;
  11198. var a = t("./StorageData"), r = function() {
  11199. function t() {
  11200. this.loadResCompelete = !1;
  11201. this.isLogin = !1;
  11202. this.sessionKey = "";
  11203. this.randomKey = "abcdefghijklopqrstuvwxyzabcdefgh";
  11204. this.uin = "";
  11205. this.tempUin = "";
  11206. this.loginTicket = "";
  11207. }
  11208. t.prototype.loadLocalRes = function() {
  11209. return o(this, void 0, void 0, function() {
  11210. var t;
  11211. return i(this, function(e) {
  11212. switch (e.label) {
  11213. case 0:
  11214. return [ 4, mk.loader.load("data/rule_data", cc.JsonAsset) ];
  11215. case 1:
  11216. if ((t = e.sent()) && t.json) {
  11217. this.rule_data = t.json.server;
  11218. this.privacy_data = t.json.privacy;
  11219. this.loadResCompelete = !0;
  11220. }
  11221. return [ 2 ];
  11222. }
  11223. });
  11224. });
  11225. };
  11226. t.prototype.init = function() {
  11227. var t = mk.storage.getStorage(a.StorageKey.uin);
  11228. this.uin = t || "";
  11229. var e = mk.storage.getStorage(a.StorageKey.sessionKey);
  11230. this.sessionKey = e || "";
  11231. var n = mk.storage.getStorage(a.StorageKey.loginTicket);
  11232. this.loginTicket = n || "";
  11233. console.log("===[LoginData] uin =" + t + " sessionKey = " + e + '"');
  11234. };
  11235. t.prototype.login = function() {
  11236. return o(this, void 0, void 0, function() {
  11237. return i(this, function() {
  11238. mk.console.logSingle("login...", this.sessionKey + "..." + this.uin);
  11239. if ("" != this.sessionKey && "" != this.uin && "" != this.loginTicket) {
  11240. console.log("=== login 有登录记录直接跳转到登录流程最后一步");
  11241. this.getAccountInfo();
  11242. } else {
  11243. console.log("=== login 无登录记录");
  11244. this.connect();
  11245. }
  11246. return [ 2 ];
  11247. });
  11248. });
  11249. };
  11250. t.prototype.connect = function() {
  11251. return o(this, void 0, void 0, function() {
  11252. var t, e;
  11253. return i(this, function(n) {
  11254. switch (n.label) {
  11255. case 0:
  11256. this.randomKey = mk.encrypt.randomString();
  11257. t = {
  11258. mac: gData.appData.mac,
  11259. psk: this.randomKey,
  11260. appId: gData.appData.appId
  11261. };
  11262. mk.console.logSingle("mac ", gData.appData.mac);
  11263. return [ 4, mk.http.sendRequest("connectTest", "POST", JSON.stringify(t)) ];
  11264. case 1:
  11265. if (0 != (e = n.sent()).errcode) return [ 2 ];
  11266. t = mk.encrypt.decrypt(e.encrypt, this.randomKey, gData.appData.appId);
  11267. mk.console.logSingle("[FC]connectTest decryptData", t);
  11268. this.tempUin = JSON.parse(t).tmp_uin;
  11269. mk.storage.setStorage(a.StorageKey.uin, this.tempUin);
  11270. this.wxLogin();
  11271. return [ 2 ];
  11272. }
  11273. });
  11274. });
  11275. };
  11276. t.prototype.wxLogin = function() {
  11277. return o(this, void 0, void 0, function() {
  11278. var t, e, n, o, r;
  11279. return i(this, function(i) {
  11280. switch (i.label) {
  11281. case 0:
  11282. t = 3;
  11283. cc.sys.os == cc.sys.OS_ANDROID ? t = 1 : cc.sys.os == cc.sys.OS_IOS && (t = 2);
  11284. e = {
  11285. code: gData.wechatData.code,
  11286. clientType: t,
  11287. deviceToken: mk.aliRiskManager.deviceToken,
  11288. appVersion: gData.appData.appVersion,
  11289. tfChannel: gData.appData.tfChannel,
  11290. android_id: gData.appData.machineInfo.android_id,
  11291. versioncfg: gData.appData.version,
  11292. idfa: gData.appData.machineInfo.idfa,
  11293. imei: gData.appData.machineInfo.imei,
  11294. mac: gData.appData.mac,
  11295. oaid: gData.appData.machineInfo.oaid
  11296. };
  11297. if (null != gData.wechatData.code) {
  11298. o = mk.encrypt.encrypt(JSON.stringify(e), this.sessionKey, gData.appData.appId);
  11299. n = {
  11300. uin: this.uin,
  11301. encrypt: o
  11302. };
  11303. } else {
  11304. o = mk.encrypt.encrypt(JSON.stringify(e), this.randomKey, gData.appData.appId);
  11305. n = {
  11306. uin: this.tempUin,
  11307. encrypt: o
  11308. };
  11309. }
  11310. return [ 4, mk.http.sendRequest("wxlogin", "POST", JSON.stringify(n), !1, !1) ];
  11311. case 1:
  11312. if (0 != (r = i.sent()).errcode) {
  11313. if (41003 == r.errcode) {
  11314. mk.storage.setStorage("alifengkong", 1);
  11315. console.log("ali block");
  11316. } else if (-10003 == r.errcode || -20003 == r.errcode) {
  11317. console.log("restart errcode ", r.errcode);
  11318. this.reload();
  11319. }
  11320. return [ 2 ];
  11321. }
  11322. n = null != gData.wechatData.code ? mk.encrypt.decrypt(r.encrypt, this.sessionKey, gData.appData.appId) : mk.encrypt.decrypt(r.encrypt, this.randomKey, gData.appData.appId);
  11323. n = JSON.parse(n);
  11324. this.loginTicket = n.login_ticket;
  11325. mk.console.logSingle("[FC]wxLogin decrypt", n);
  11326. mk.storage.setStorage(a.StorageKey.loginTicket, this.loginTicket);
  11327. if (null == mk.storage.getStorage(a.StorageKey.isFirstIn)) {
  11328. this.isFirstIn = !0;
  11329. mk.storage.setStorage(a.StorageKey.isFirstIn, 1);
  11330. }
  11331. if (this.uin != n.uin) {
  11332. this.uin = n.uin;
  11333. this.isNew = !1;
  11334. } else this.isNew = !0;
  11335. mk.storage.setStorage(a.StorageKey.uin, this.uin);
  11336. this.checkLogin();
  11337. return [ 2 ];
  11338. }
  11339. });
  11340. });
  11341. };
  11342. t.prototype.checkLogin = function() {
  11343. return o(this, void 0, void 0, function() {
  11344. var t, e, n, o, r;
  11345. return i(this, function(i) {
  11346. switch (i.label) {
  11347. case 0:
  11348. t = "";
  11349. t = null != gData.wechatData.code ? this.sessionKey : mk.encrypt.randomString();
  11350. e = {
  11351. tmp_key: t,
  11352. uin: this.uin,
  11353. login_ticket: this.loginTicket,
  11354. appId: gData.appData.appId
  11355. };
  11356. return [ 4, mk.http.sendRequest("checklogin", "POST", JSON.stringify(e)) ];
  11357. case 1:
  11358. if (0 != (n = i.sent()).errcode) return [ 2 ];
  11359. o = null != gData.wechatData.code ? mk.encrypt.decrypt(n.encrypt, this.sessionKey, gData.appData.appId) : mk.encrypt.decrypt(n.encrypt, t, gData.appData.appId);
  11360. r = JSON.parse(o);
  11361. this.sessionKey = r.session_key;
  11362. mk.console.logSingle("[FC]checkLogin decrypt", r);
  11363. mk.storage.setStorage(a.StorageKey.sessionKey, this.sessionKey);
  11364. this.getUserInfo();
  11365. return [ 2 ];
  11366. }
  11367. });
  11368. });
  11369. };
  11370. t.prototype.getUserInfo = function() {
  11371. return o(this, void 0, void 0, function() {
  11372. return i(this, function() {
  11373. this.getAccountInfo();
  11374. return [ 2 ];
  11375. });
  11376. });
  11377. };
  11378. t.prototype.getAccountInfo = function() {
  11379. return o(this, void 0, void 0, function() {
  11380. var t, e, n, o, r;
  11381. return i(this, function(i) {
  11382. switch (i.label) {
  11383. case 0:
  11384. console.log("uin ", gData.loginData.uin);
  11385. mk.ad.init();
  11386. mk.console.logSingle("machineInfo", gData.appData.machineInfo);
  11387. return [ 4, mk.http.sendData("user/machine", gData.appData.machineInfo) ];
  11388. case 1:
  11389. i.sent();
  11390. t = {
  11391. version: gData.appData.appVersion
  11392. };
  11393. mk.http.sendData("updateVersion", t);
  11394. e = {
  11395. uin: this.uin,
  11396. login_ticket: this.loginTicket
  11397. };
  11398. n = {
  11399. uin: this.uin,
  11400. encrypt: mk.encrypt.encrypt(JSON.stringify(e), this.sessionKey, gData.appData.appId)
  11401. };
  11402. return [ 4, mk.http.sendRequest("user", "POST", JSON.stringify(n), !1, !1) ];
  11403. case 2:
  11404. if (0 != (o = i.sent()).errcode) {
  11405. if (-10003 == o.errcode || -20003 == o.errcode) {
  11406. console.log("AA restart errcode ", o.errcode);
  11407. this.reload();
  11408. }
  11409. return [ 2 ];
  11410. }
  11411. o = mk.http.checkData(o, !0);
  11412. r = o.data;
  11413. mk.console.logSingle("[FC] getAccountInfo decrypt", n);
  11414. this.isAuth = r.is_auth;
  11415. gData.wechatData.unionid = this.uin;
  11416. if (this.isAuth) {
  11417. gData.wechatData.nickName = r.nickname;
  11418. gData.wechatData.avatar = r.headimgurl;
  11419. gData.gameData.init_head = !0;
  11420. mk.storage.setStorage(a.StorageKey.isAuth, 1);
  11421. mk.storage.setStorage(a.StorageKey.nickname, gData.wechatData.nickName, !1);
  11422. mk.storage.setStorage(a.StorageKey.avatar, gData.wechatData.avatar, !1);
  11423. }
  11424. gData.gameData.init();
  11425. return [ 2 ];
  11426. }
  11427. });
  11428. });
  11429. };
  11430. t.prototype.reload = function() {
  11431. var t = this;
  11432. setTimeout(function() {
  11433. t.sessionKey = "";
  11434. t.uin = "";
  11435. t.loginTicket = "";
  11436. t.isAuth = !1;
  11437. t.tempUin = "";
  11438. t.randomKey = "";
  11439. gData.wechatData.nickName = "";
  11440. gData.wechatData.avatar = "";
  11441. cc.sys.localStorage.removeItem(a.StorageKey.sessionKey);
  11442. cc.sys.localStorage.removeItem(a.StorageKey.uin);
  11443. cc.sys.localStorage.removeItem(a.StorageKey.loginTicket);
  11444. cc.sys.localStorage.removeItem(a.StorageKey.isAuth);
  11445. cc.sys.localStorage.removeItem(a.StorageKey.nickname);
  11446. cc.sys.localStorage.removeItem(a.StorageKey.avatar);
  11447. cc.audioEngine.stopAll();
  11448. cc.game.restart();
  11449. });
  11450. };
  11451. return t;
  11452. }();
  11453. n.LoginData = r;
  11454. cc._RF.pop();
  11455. }, {
  11456. "./StorageData": "StorageData"
  11457. } ],
  11458. Login: [ function(t, e, n) {
  11459. "use strict";
  11460. cc._RF.push(e, "6dba2tWf41JpYkegatfLoGC", "Login");
  11461. var o, i = this && this.__extends || (o = function(t, e) {
  11462. return (o = Object.setPrototypeOf || {
  11463. __proto__: []
  11464. } instanceof Array && function(t, e) {
  11465. t.__proto__ = e;
  11466. } || function(t, e) {
  11467. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  11468. })(t, e);
  11469. }, function(t, e) {
  11470. o(t, e);
  11471. function n() {
  11472. this.constructor = t;
  11473. }
  11474. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  11475. }), a = this && this.__decorate || function(t, e, n, o) {
  11476. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  11477. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  11478. return a > 3 && r && Object.defineProperty(e, n, r), r;
  11479. }, r = this && this.__awaiter || function(t, e, n, o) {
  11480. return new (n || (n = Promise))(function(i, a) {
  11481. function r(t) {
  11482. try {
  11483. s(o.next(t));
  11484. } catch (t) {
  11485. a(t);
  11486. }
  11487. }
  11488. function c(t) {
  11489. try {
  11490. s(o.throw(t));
  11491. } catch (t) {
  11492. a(t);
  11493. }
  11494. }
  11495. function s(t) {
  11496. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  11497. t(e);
  11498. })).then(r, c);
  11499. var e;
  11500. }
  11501. s((o = o.apply(t, e || [])).next());
  11502. });
  11503. }, c = this && this.__generator || function(t, e) {
  11504. var n, o, i, a, r = {
  11505. label: 0,
  11506. sent: function() {
  11507. if (1 & i[0]) throw i[1];
  11508. return i[1];
  11509. },
  11510. trys: [],
  11511. ops: []
  11512. };
  11513. return a = {
  11514. next: c(0),
  11515. throw: c(1),
  11516. return: c(2)
  11517. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  11518. return this;
  11519. }), a;
  11520. function c(t) {
  11521. return function(e) {
  11522. return s([ t, e ]);
  11523. };
  11524. }
  11525. function s(a) {
  11526. if (n) throw new TypeError("Generator is already executing.");
  11527. for (;r; ) try {
  11528. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  11529. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  11530. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  11531. switch (a[0]) {
  11532. case 0:
  11533. case 1:
  11534. i = a;
  11535. break;
  11536. case 4:
  11537. r.label++;
  11538. return {
  11539. value: a[1],
  11540. done: !1
  11541. };
  11542. case 5:
  11543. r.label++;
  11544. o = a[1];
  11545. a = [ 0 ];
  11546. continue;
  11547. case 7:
  11548. a = r.ops.pop();
  11549. r.trys.pop();
  11550. continue;
  11551. default:
  11552. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  11553. r = 0;
  11554. continue;
  11555. }
  11556. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  11557. r.label = a[1];
  11558. break;
  11559. }
  11560. if (6 === a[0] && r.label < i[1]) {
  11561. r.label = i[1];
  11562. i = a;
  11563. break;
  11564. }
  11565. if (i && r.label < i[2]) {
  11566. r.label = i[2];
  11567. r.ops.push(a);
  11568. break;
  11569. }
  11570. i[2] && r.ops.pop();
  11571. r.trys.pop();
  11572. continue;
  11573. }
  11574. a = e.call(t, r);
  11575. } catch (t) {
  11576. a = [ 6, t ];
  11577. o = 0;
  11578. } finally {
  11579. n = i = 0;
  11580. }
  11581. if (5 & a[0]) throw a[1];
  11582. return {
  11583. value: a[0] ? a[1] : void 0,
  11584. done: !0
  11585. };
  11586. }
  11587. };
  11588. Object.defineProperty(n, "__esModule", {
  11589. value: !0
  11590. });
  11591. var s = t("../../../before/util/Util"), l = t("../../../mk/system/JsbSystem"), u = t("../../component/LoadingBar"), p = t("../../data/AppData"), d = t("../hotUpdate/HotUpdatePanel"), h = cc._decorator, f = h.ccclass, y = h.property, g = function(t) {
  11592. i(e, t);
  11593. function e() {
  11594. var e = null !== t && t.apply(this, arguments) || this;
  11595. e.bar = null;
  11596. e.lbl_progress = null;
  11597. e.lbl_server = null;
  11598. e.lbl_privacy = null;
  11599. e.process = 0;
  11600. e.hotUpdatePanel = null;
  11601. return e;
  11602. }
  11603. e.prototype.onLoad = function() {
  11604. this.setProgress(0);
  11605. };
  11606. e.prototype.start = function() {
  11607. if (1 != mk.storage.getStorage("alifengkong")) {
  11608. mk.aliRiskManager.init();
  11609. this.init();
  11610. }
  11611. };
  11612. e.prototype.update = function() {
  11613. if (gData.appData.getDeviceInfoCompelete) {
  11614. gData.appData.getDeviceInfoCompelete = !1;
  11615. this.getDeviceInfoBack();
  11616. }
  11617. if (gData.appData.updateState == p.UpdateState.ForceUpdateFinish) {
  11618. gData.appData.updateState = p.UpdateState.CheckHot;
  11619. this.checkHotUpdate();
  11620. }
  11621. if (gData.appData.updateState != p.UpdateState.IsUpdate) {
  11622. if (gData.appData.updateState == p.UpdateState.UpdateFinish) {
  11623. if (this.process < 100) {
  11624. this.process += 2;
  11625. this.setProgress(this.process);
  11626. }
  11627. if (gData.loginData.loadResCompelete) {
  11628. if (mk.aliRiskManager.getRiskCode) {
  11629. mk.aliRiskManager.getRiskCode = !1;
  11630. this.login();
  11631. } else if (gData.gameData.dataFinish) {
  11632. if (1 != mk.storage.getStorage("agreementTip", !1)) {
  11633. mk.ui.openPanel("module/login/agreementTip");
  11634. mk.storage.setStorage("agreementTip", 1, !1);
  11635. } else {
  11636. mk.ui.openPanel("game/prefab/game");
  11637. console.log("===[Jsbsystem 显示开屏广告================================");
  11638. l.default.showSplash();
  11639. }
  11640. gData.gameData.dataFinish = !1;
  11641. }
  11642. } else gData.loginData.loadLocalRes();
  11643. }
  11644. } else {
  11645. this.lbl_progress.string = "正在更新中,请耐心等待";
  11646. this.bar.setProgress(gData.appData.updatePercent);
  11647. }
  11648. };
  11649. e.prototype.setProgress = function(t) {
  11650. this.bar.setProgress(t);
  11651. this.lbl_progress.string = "加载不消耗流量 " + t + "%";
  11652. };
  11653. e.prototype.init = function() {
  11654. return r(this, void 0, void 0, function() {
  11655. return c(this, function() {
  11656. l.default.getWxAppId();
  11657. l.default.checkPermission();
  11658. return [ 2 ];
  11659. });
  11660. });
  11661. };
  11662. e.prototype.getDeviceInfoBack = function() {
  11663. return r(this, void 0, void 0, function() {
  11664. return c(this, function(t) {
  11665. switch (t.label) {
  11666. case 0:
  11667. gData.loginData.init();
  11668. return [ 4, this.checkForceUpate() ];
  11669. case 1:
  11670. t.sent();
  11671. this.checkRemoveLocalHot();
  11672. mk.audio.init();
  11673. return [ 2 ];
  11674. }
  11675. });
  11676. });
  11677. };
  11678. e.prototype.checkRemoveLocalHot = function() {
  11679. var t = mk.storage.getStorage("currentVersion");
  11680. mk.storage.setStorage("currentVersion", gData.appData.appVersion);
  11681. if (t) {
  11682. var e = s.default.versionCompareHandle(t, gData.appData.appVersion);
  11683. console.log("compareVer ", e);
  11684. if (e < 0) {
  11685. var n = localStorage.getItem("HotUpdateSearchPaths");
  11686. if (n) {
  11687. for (var o = JSON.parse(n), i = o.length - 2, a = 0; a < i; a++) {
  11688. var r = o.shift();
  11689. jsb.fileUtils.removeDirectory(r);
  11690. }
  11691. cc.sys.localStorage.removeItem("HotUpdateSearchPaths");
  11692. jsb.fileUtils.setSearchPaths(o);
  11693. cc.audioEngine.stopAll();
  11694. cc.game.restart();
  11695. }
  11696. }
  11697. }
  11698. };
  11699. e.prototype.checkForceUpate = function() {
  11700. return r(this, void 0, void 0, function() {
  11701. return c(this, function(t) {
  11702. switch (t.label) {
  11703. case 0:
  11704. return [ 4, this.getForceVersionInfo() ];
  11705. case 1:
  11706. t.sent();
  11707. if (1 !== gData.appData.needForceUpdate) return [ 3, 2 ];
  11708. mk.ui.openPanel("module/forceUpdate/forceUpdate");
  11709. return [ 3, 4 ];
  11710. case 2:
  11711. return [ 4, this.checkHotUpdate() ];
  11712. case 3:
  11713. t.sent();
  11714. t.label = 4;
  11715. case 4:
  11716. return [ 2 ];
  11717. }
  11718. });
  11719. });
  11720. };
  11721. e.prototype.getForceVersionInfo = function() {
  11722. return r(this, void 0, void 0, function() {
  11723. var t, e;
  11724. return c(this, function(n) {
  11725. switch (n.label) {
  11726. case 0:
  11727. t = {
  11728. appId: gData.appData.appId,
  11729. channel: gData.appData.tfChannel,
  11730. version: gData.appData.appVersion
  11731. };
  11732. mk.console.logSingle("getForceVersionInfo ", t);
  11733. return [ 4, mk.http.sendRequest("getForceVersionInfo", "POST", JSON.stringify(t), !1, !1) ];
  11734. case 1:
  11735. if ((e = n.sent()).data) {
  11736. gData.appData.needForceUpdate = e.data.isForceUpdate;
  11737. gData.appData.installVersion = e.data.version;
  11738. gData.appData.installUrl = e.data.downloadAddress;
  11739. gData.appData.updateDes = e.data.versionRemark;
  11740. gData.appData.fixDes = e.data.bugRestoreRemark;
  11741. } else {
  11742. gData.appData.needForceUpdate = 0;
  11743. console.error("[Login]无response.data 请检查.");
  11744. }
  11745. mk.console.logSingle("===[Login] gData.appData.needForceUpdate", e);
  11746. return [ 2 ];
  11747. }
  11748. });
  11749. });
  11750. };
  11751. e.prototype.checkHotUpdate = function() {
  11752. return r(this, void 0, void 0, function() {
  11753. return c(this, function() {
  11754. this.hotUpdatePanel = this.node.getComponent(d.default);
  11755. if (this.hotUpdatePanel) {
  11756. console.log("===[login] 登录界面,挂载热更脚本");
  11757. this.hotUpdatePanel.checkHotUpdate();
  11758. } else {
  11759. console.error("===[login] 登录界面,没有挂载热更脚本");
  11760. gData.appData.updateState = p.UpdateState.UpdateFinish;
  11761. }
  11762. return [ 2 ];
  11763. });
  11764. });
  11765. };
  11766. e.prototype.login = function() {
  11767. mk.pool.init(gData.gameData.pools);
  11768. gData.appData.init();
  11769. gData.adData.init();
  11770. mk.console.log("[FC] gData.appData.appId", gData.appData.appId);
  11771. gData.loginData.login();
  11772. };
  11773. a([ y(u.default) ], e.prototype, "bar", void 0);
  11774. a([ y({
  11775. displayName: "加载文字",
  11776. type: cc.Label
  11777. }) ], e.prototype, "lbl_progress", void 0);
  11778. a([ y({
  11779. displayName: "服务协议",
  11780. type: cc.Label
  11781. }) ], e.prototype, "lbl_server", void 0);
  11782. a([ y({
  11783. displayName: "隐私协议",
  11784. type: cc.Label
  11785. }) ], e.prototype, "lbl_privacy", void 0);
  11786. return a([ f ], e);
  11787. }(cc.Component);
  11788. n.default = g;
  11789. cc._RF.pop();
  11790. }, {
  11791. "../../../before/util/Util": "Util",
  11792. "../../../mk/system/JsbSystem": "JsbSystem",
  11793. "../../component/LoadingBar": "LoadingBar",
  11794. "../../data/AppData": "AppData",
  11795. "../hotUpdate/HotUpdatePanel": "HotUpdatePanel"
  11796. } ],
  11797. MKSwitch: [ function(t, e, n) {
  11798. "use strict";
  11799. cc._RF.push(e, "a0fd9gYXhZMJ46ArqYj2wBy", "MKSwitch");
  11800. var o, i = this && this.__extends || (o = function(t, e) {
  11801. return (o = Object.setPrototypeOf || {
  11802. __proto__: []
  11803. } instanceof Array && function(t, e) {
  11804. t.__proto__ = e;
  11805. } || function(t, e) {
  11806. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  11807. })(t, e);
  11808. }, function(t, e) {
  11809. o(t, e);
  11810. function n() {
  11811. this.constructor = t;
  11812. }
  11813. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  11814. }), a = this && this.__decorate || function(t, e, n, o) {
  11815. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  11816. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  11817. return a > 3 && r && Object.defineProperty(e, n, r), r;
  11818. };
  11819. Object.defineProperty(n, "__esModule", {
  11820. value: !0
  11821. });
  11822. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  11823. i(e, t);
  11824. function e() {
  11825. var e = null !== t && t.apply(this, arguments) || this;
  11826. e.ifShowAd = !1;
  11827. return e;
  11828. }
  11829. a([ s({
  11830. displayName: "是否显示广告",
  11831. tooltip: "",
  11832. serializable: !0
  11833. }) ], e.prototype, "ifShowAd", void 0);
  11834. return a([ c ], e);
  11835. }(cc.Component);
  11836. n.default = l;
  11837. cc._RF.pop();
  11838. }, {} ],
  11839. MKSystem: [ function(t, e, n) {
  11840. "use strict";
  11841. cc._RF.push(e, "f0038hKHC9Nf5+ipaUV9rc5", "MKSystem");
  11842. Object.defineProperty(n, "__esModule", {
  11843. value: !0
  11844. });
  11845. var o = t("../sdk/BuglySDK"), i = t("../utils/FileUtil"), a = t("../utils/TimeUtil"), r = t("./DataSystem"), c = t("./HttpSystem"), s = t("../utils/LoadResUtil"), l = t("../utils/LogUtil"), u = t("../utils/EncryptUtil"), p = t("../utils/GameUtil"), d = t("../utils/StorageUtil"), h = t("./TimerSystem"), f = t("./EventSystem"), y = t("../utils/MathUtil"), g = t("./AdSystem"), m = t("./JsbSystem"), _ = t("../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr"), v = t("./AudioSystem"), b = t("./PoolSystem"), D = t("../utils/TweenUtil"), S = t("./GuideSystem"), A = t("../utils/StringUtil"), w = t("../../game/component/SetGray"), P = t("../../game/component/NumberAnim"), O = t("../sdk/aliRisk/AliRiskManager"), k = function() {
  11846. function t() {}
  11847. Object.defineProperty(t.prototype, "time", {
  11848. get: function() {
  11849. return this._time || (this._time = new a.default());
  11850. },
  11851. enumerable: !1,
  11852. configurable: !0
  11853. });
  11854. Object.defineProperty(t.prototype, "file", {
  11855. get: function() {
  11856. return this._file || (this._file = new i.default());
  11857. },
  11858. enumerable: !1,
  11859. configurable: !0
  11860. });
  11861. Object.defineProperty(t.prototype, "encrypt", {
  11862. get: function() {
  11863. return this._encrypt || (this._encrypt = new u.EncryptUtil());
  11864. },
  11865. enumerable: !1,
  11866. configurable: !0
  11867. });
  11868. Object.defineProperty(t.prototype, "console", {
  11869. get: function() {
  11870. return this._console || (this._console = new l.default());
  11871. },
  11872. enumerable: !1,
  11873. configurable: !0
  11874. });
  11875. Object.defineProperty(t.prototype, "game", {
  11876. get: function() {
  11877. return this._game || (this._game = new p.default());
  11878. },
  11879. enumerable: !1,
  11880. configurable: !0
  11881. });
  11882. Object.defineProperty(t.prototype, "loader", {
  11883. get: function() {
  11884. return this._loader || (this._loader = new s.default());
  11885. },
  11886. enumerable: !1,
  11887. configurable: !0
  11888. });
  11889. Object.defineProperty(t.prototype, "storage", {
  11890. get: function() {
  11891. return this._storage || (this._storage = new d.default());
  11892. },
  11893. enumerable: !1,
  11894. configurable: !0
  11895. });
  11896. Object.defineProperty(t.prototype, "math", {
  11897. get: function() {
  11898. return this._math || (this._math = new y.default());
  11899. },
  11900. enumerable: !1,
  11901. configurable: !0
  11902. });
  11903. Object.defineProperty(t.prototype, "string", {
  11904. get: function() {
  11905. return this._string || (this._string = new A.default());
  11906. },
  11907. enumerable: !1,
  11908. configurable: !0
  11909. });
  11910. Object.defineProperty(t.prototype, "tween", {
  11911. get: function() {
  11912. return this._tween || (this._tween = new D.default());
  11913. },
  11914. enumerable: !1,
  11915. configurable: !0
  11916. });
  11917. Object.defineProperty(t.prototype, "bugly", {
  11918. get: function() {
  11919. return this._bugly || (this._bugly = new o.default());
  11920. },
  11921. enumerable: !1,
  11922. configurable: !0
  11923. });
  11924. Object.defineProperty(t.prototype, "data", {
  11925. get: function() {
  11926. return this._data || (this._data = new r.default());
  11927. },
  11928. enumerable: !1,
  11929. configurable: !0
  11930. });
  11931. Object.defineProperty(t.prototype, "ad", {
  11932. get: function() {
  11933. return this._ad || (this._ad = new g.default(_.default.getInstance()));
  11934. },
  11935. enumerable: !1,
  11936. configurable: !0
  11937. });
  11938. Object.defineProperty(t.prototype, "jsb", {
  11939. get: function() {
  11940. return this._jsb || (this._jsb = new m.default());
  11941. },
  11942. enumerable: !1,
  11943. configurable: !0
  11944. });
  11945. Object.defineProperty(t.prototype, "http", {
  11946. get: function() {
  11947. return this._http || (this._http = new c.default());
  11948. },
  11949. enumerable: !1,
  11950. configurable: !0
  11951. });
  11952. Object.defineProperty(t.prototype, "audio", {
  11953. get: function() {
  11954. return this._audio || (this._audio = new v.default());
  11955. },
  11956. enumerable: !1,
  11957. configurable: !0
  11958. });
  11959. Object.defineProperty(t.prototype, "timer", {
  11960. get: function() {
  11961. return this._timer || (this._timer = new h.default());
  11962. },
  11963. enumerable: !1,
  11964. configurable: !0
  11965. });
  11966. Object.defineProperty(t.prototype, "event", {
  11967. get: function() {
  11968. return this._event || (this._event = new f.default());
  11969. },
  11970. enumerable: !1,
  11971. configurable: !0
  11972. });
  11973. Object.defineProperty(t.prototype, "pool", {
  11974. get: function() {
  11975. return this._pool || (this._pool = new b.default());
  11976. },
  11977. enumerable: !1,
  11978. configurable: !0
  11979. });
  11980. Object.defineProperty(t.prototype, "guide", {
  11981. get: function() {
  11982. return this._guide || (this._guide = new S.default());
  11983. },
  11984. enumerable: !1,
  11985. configurable: !0
  11986. });
  11987. Object.defineProperty(t.prototype, "aliRiskManager", {
  11988. get: function() {
  11989. return this._aliRiskManager || (this._aliRiskManager = new O.default());
  11990. },
  11991. enumerable: !1,
  11992. configurable: !0
  11993. });
  11994. Object.defineProperty(t.prototype, "ui", {
  11995. get: function() {
  11996. return this._ui;
  11997. },
  11998. set: function(t) {
  11999. this._ui = t;
  12000. },
  12001. enumerable: !1,
  12002. configurable: !0
  12003. });
  12004. Object.defineProperty(t.prototype, "tip", {
  12005. get: function() {
  12006. return this._tip;
  12007. },
  12008. set: function(t) {
  12009. this._tip = t;
  12010. },
  12011. enumerable: !1,
  12012. configurable: !0
  12013. });
  12014. Object.defineProperty(t.prototype, "fly", {
  12015. get: function() {
  12016. return this._fly;
  12017. },
  12018. set: function(t) {
  12019. this._fly = t;
  12020. },
  12021. enumerable: !1,
  12022. configurable: !0
  12023. });
  12024. Object.defineProperty(t.prototype, "component", {
  12025. get: function() {
  12026. return this._component || (this._component = new I());
  12027. },
  12028. enumerable: !1,
  12029. configurable: !0
  12030. });
  12031. return t;
  12032. }(), I = function() {
  12033. function t() {}
  12034. Object.defineProperty(t.prototype, "setGray", {
  12035. get: function() {
  12036. return w.default;
  12037. },
  12038. enumerable: !1,
  12039. configurable: !0
  12040. });
  12041. Object.defineProperty(t.prototype, "numberAnim", {
  12042. get: function() {
  12043. return P.default;
  12044. },
  12045. enumerable: !1,
  12046. configurable: !0
  12047. });
  12048. return t;
  12049. }();
  12050. window.mk = new k();
  12051. cc._RF.pop();
  12052. }, {
  12053. "../../game/component/NumberAnim": "NumberAnim",
  12054. "../../game/component/SetGray": "SetGray",
  12055. "../sdk/BuglySDK": "BuglySDK",
  12056. "../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr": "ATSDKMgr",
  12057. "../sdk/aliRisk/AliRiskManager": "AliRiskManager",
  12058. "../utils/EncryptUtil": "EncryptUtil",
  12059. "../utils/FileUtil": "FileUtil",
  12060. "../utils/GameUtil": "GameUtil",
  12061. "../utils/LoadResUtil": "LoadResUtil",
  12062. "../utils/LogUtil": "LogUtil",
  12063. "../utils/MathUtil": "MathUtil",
  12064. "../utils/StorageUtil": "StorageUtil",
  12065. "../utils/StringUtil": "StringUtil",
  12066. "../utils/TimeUtil": "TimeUtil",
  12067. "../utils/TweenUtil": "TweenUtil",
  12068. "./AdSystem": "AdSystem",
  12069. "./AudioSystem": "AudioSystem",
  12070. "./DataSystem": "DataSystem",
  12071. "./EventSystem": "EventSystem",
  12072. "./GuideSystem": "GuideSystem",
  12073. "./HttpSystem": "HttpSystem",
  12074. "./JsbSystem": "JsbSystem",
  12075. "./PoolSystem": "PoolSystem",
  12076. "./TimerSystem": "TimerSystem"
  12077. } ],
  12078. Main: [ function(t, e, n) {
  12079. "use strict";
  12080. cc._RF.push(e, "ca47c5VYotGv4F867baLZGr", "Main");
  12081. var o, i = this && this.__extends || (o = function(t, e) {
  12082. return (o = Object.setPrototypeOf || {
  12083. __proto__: []
  12084. } instanceof Array && function(t, e) {
  12085. t.__proto__ = e;
  12086. } || function(t, e) {
  12087. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  12088. })(t, e);
  12089. }, function(t, e) {
  12090. o(t, e);
  12091. function n() {
  12092. this.constructor = t;
  12093. }
  12094. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  12095. }), a = this && this.__decorate || function(t, e, n, o) {
  12096. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  12097. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  12098. return a > 3 && r && Object.defineProperty(e, n, r), r;
  12099. };
  12100. Object.defineProperty(n, "__esModule", {
  12101. value: !0
  12102. });
  12103. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  12104. i(e, t);
  12105. function e() {
  12106. var e = null !== t && t.apply(this, arguments) || this;
  12107. e.node_guide = null;
  12108. return e;
  12109. }
  12110. e.prototype.start = function() {
  12111. mk.ui.openPanel("module/login/login");
  12112. mk.guide.ui = this.node_guide;
  12113. };
  12114. a([ s(cc.Node) ], e.prototype, "node_guide", void 0);
  12115. return a([ c ], e);
  12116. }(cc.Component);
  12117. n.default = l;
  12118. cc._RF.pop();
  12119. }, {} ],
  12120. MathUtil: [ function(t, e, n) {
  12121. "use strict";
  12122. cc._RF.push(e, "2e942sG6JJJpaWgvlGJiuOO", "MathUtil");
  12123. Object.defineProperty(n, "__esModule", {
  12124. value: !0
  12125. });
  12126. var o = function() {
  12127. function t() {
  12128. this.numUnit = {
  12129. 4: "万",
  12130. 8: "亿",
  12131. 12: "兆",
  12132. 16: "万兆",
  12133. 20: "亿兆",
  12134. 24: "兆兆",
  12135. 28: "万兆兆",
  12136. 32: "亿兆兆",
  12137. 36: "兆兆兆"
  12138. };
  12139. }
  12140. t.prototype.dis = function(t, e, n, o) {
  12141. return Math.sqrt(Math.pow(t - n, 2) + Math.pow(e - o, 2));
  12142. };
  12143. t.prototype.random = function(t, e, n) {
  12144. void 0 === n && (n = !0);
  12145. return n ? Math.floor(Math.random() * (e - t + 1) + t) : Math.random() * (e - t) + t;
  12146. };
  12147. t.prototype.randomByWeight = function(t, e, n) {
  12148. void 0 === e && (e = 100);
  12149. void 0 === n && (n = !0);
  12150. if (100 != e) {
  12151. e = 0;
  12152. for (var o = 0; o < t.length; o++) e += t[o];
  12153. }
  12154. var i = Math.random() * e, a = t.concat(i), r = (a = a.sort(function(t, e) {
  12155. return n ? t - e : e - t;
  12156. })).indexOf(i);
  12157. return Math.min(r, t.length - 1);
  12158. };
  12159. t.prototype.addition = function(t, e) {
  12160. for (var n = "", o = 0, i = t.split(".")[0].split(""), a = e.split(".")[0].split(""); i.length || a.length || o; ) {
  12161. n = (o += ~~i.pop() + ~~a.pop()) % 10 + n;
  12162. o = o > 9;
  12163. }
  12164. return n.replace(/^0+/, "");
  12165. };
  12166. t.prototype.subtraction = function(t, e) {
  12167. t = t.split(".")[0].split("");
  12168. e = e.split(".")[0].split("");
  12169. var n = t.length > e.length;
  12170. if (t.length == e.length) for (var o = 0, i = t.length; o < i; o++) if (t[o] != e[o]) {
  12171. n = t[o] > e[o];
  12172. break;
  12173. }
  12174. n || (t = [ e, e = t ][0]);
  12175. for (var a = ""; t.length; ) {
  12176. var r = parseInt(t.pop()) - parseInt(e.pop() || 0);
  12177. if (r >= 0) a = r + a; else {
  12178. a = r + 10 + a;
  12179. t[t.length - 1]--;
  12180. }
  12181. }
  12182. "-" == (a = (n ? "" : "-") + a.replace(/^0*/g, "")) && (a = "0");
  12183. return a;
  12184. };
  12185. t.prototype.contrastNumber = function(t, e) {
  12186. t = t.split(".")[0].split("");
  12187. e = e.split(".")[0].split("");
  12188. var n = t.length > e.length;
  12189. if (t.length == e.length) for (var o = 0, i = t.length; o < i; o++) if (t[o] != e[o]) {
  12190. n = t[o] > e[o];
  12191. break;
  12192. }
  12193. n || (t = [ e, e = t ][0]);
  12194. for (var a = ""; t.length; ) {
  12195. var r = parseInt(t.pop()) - parseInt(e.pop() || 0);
  12196. if (r >= 0) a = r + a; else {
  12197. a = r + 10 + a;
  12198. t[t.length - 1]--;
  12199. }
  12200. }
  12201. return t === e || Boolean(n);
  12202. };
  12203. t.prototype.accMuls = function(t, e) {
  12204. var n = t.split("").reverse(), o = e.split("").reverse(), i = n.length, a = o.length, r = Array(i + a + 1).join("0").split("");
  12205. n.map(function(t, e) {
  12206. o.map(function(n, o) {
  12207. r[e + o] = +r[e + o] + t * n;
  12208. });
  12209. });
  12210. r.map(function(t, e) {
  12211. if (t >= 10) {
  12212. r[e + 1] = ~~r[e + 1] + ~~(r[e] / 10);
  12213. r[e] %= 10;
  12214. }
  12215. });
  12216. return r.reverse().join("").replace(/^0+/, "");
  12217. };
  12218. t.prototype.accMul = function(t, e) {
  12219. var n = 0, o = t.toString(), i = e.toString();
  12220. try {
  12221. n += o.split(".")[1].length;
  12222. } catch (t) {}
  12223. try {
  12224. n += i.split(".")[1].length;
  12225. } catch (t) {}
  12226. var a = this.accMuls(o.replace(".", ""), i.replace(".", ""));
  12227. return this.accDiv(a, Math.pow(10, n).toString());
  12228. };
  12229. t.prototype.toNonExponential = function(t) {
  12230. return t.toLocaleString().replace(/[,]/g, "");
  12231. };
  12232. t.prototype.accDiv = function(t, e) {
  12233. var n, o, i = 0, a = 0, r = 0;
  12234. try {
  12235. i = t.toString().split(".")[1].length;
  12236. } catch (t) {}
  12237. try {
  12238. a = e.toString().split(".")[1].length;
  12239. } catch (t) {}
  12240. n = Number(t.toString().replace(".", ""));
  12241. if (0 == (o = Number(e.toString().replace(".", "")))) return "0";
  12242. var c = String(n / o);
  12243. try {
  12244. r = c.toString().split(".")[1].length;
  12245. } catch (t) {}
  12246. var s = a - i - r;
  12247. if (s < 0) {
  12248. c = c.replace(".", "");
  12249. for (;c.length <= Math.abs(s); ) c = "0" + c;
  12250. var l = c.substring(0, c.length + s), u = c.substring(c.length + s, c.length);
  12251. c = l + "." + u;
  12252. return this.toNonExponential(Number(c));
  12253. }
  12254. if (s > 0) {
  12255. c = c.replace(".", "");
  12256. for (;c.length <= Math.abs(s); ) c += "0";
  12257. return this.toNonExponential(Number(c));
  12258. }
  12259. return this.toNonExponential(Number(c.replace(".", "")));
  12260. };
  12261. t.prototype.format = function(t, e) {
  12262. void 0 === e && (e = !0);
  12263. var n, o = t.split(".")[0];
  12264. for (var i in this.numUnit) {
  12265. var a = Number(i);
  12266. if (o.length - 1 >= a) if (e) {
  12267. var r = o.slice(o.length - a, o.length - a + 1);
  12268. n = Number(r) >= 1 ? o.slice(0, o.length - a) + "." + r + this.numUnit[a] : o.slice(0, o.length - a) + this.numUnit[a];
  12269. } else n = o.slice(0, o.length - a) + this.numUnit[a];
  12270. }
  12271. return n || o;
  12272. };
  12273. return t;
  12274. }();
  12275. n.default = o;
  12276. cc._RF.pop();
  12277. }, {} ],
  12278. MoreGameBanner: [ function(t, e, n) {
  12279. "use strict";
  12280. cc._RF.push(e, "00a05wQTulPn6XITPp4d5KX", "MoreGameBanner");
  12281. var o, i = this && this.__extends || (o = function(t, e) {
  12282. return (o = Object.setPrototypeOf || {
  12283. __proto__: []
  12284. } instanceof Array && function(t, e) {
  12285. t.__proto__ = e;
  12286. } || function(t, e) {
  12287. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  12288. })(t, e);
  12289. }, function(t, e) {
  12290. o(t, e);
  12291. function n() {
  12292. this.constructor = t;
  12293. }
  12294. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  12295. }), a = this && this.__decorate || function(t, e, n, o) {
  12296. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  12297. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  12298. return a > 3 && r && Object.defineProperty(e, n, r), r;
  12299. }, r = this && this.__awaiter || function(t, e, n, o) {
  12300. return new (n || (n = Promise))(function(i, a) {
  12301. function r(t) {
  12302. try {
  12303. s(o.next(t));
  12304. } catch (t) {
  12305. a(t);
  12306. }
  12307. }
  12308. function c(t) {
  12309. try {
  12310. s(o.throw(t));
  12311. } catch (t) {
  12312. a(t);
  12313. }
  12314. }
  12315. function s(t) {
  12316. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  12317. t(e);
  12318. })).then(r, c);
  12319. var e;
  12320. }
  12321. s((o = o.apply(t, e || [])).next());
  12322. });
  12323. }, c = this && this.__generator || function(t, e) {
  12324. var n, o, i, a, r = {
  12325. label: 0,
  12326. sent: function() {
  12327. if (1 & i[0]) throw i[1];
  12328. return i[1];
  12329. },
  12330. trys: [],
  12331. ops: []
  12332. };
  12333. return a = {
  12334. next: c(0),
  12335. throw: c(1),
  12336. return: c(2)
  12337. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  12338. return this;
  12339. }), a;
  12340. function c(t) {
  12341. return function(e) {
  12342. return s([ t, e ]);
  12343. };
  12344. }
  12345. function s(a) {
  12346. if (n) throw new TypeError("Generator is already executing.");
  12347. for (;r; ) try {
  12348. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  12349. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  12350. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  12351. switch (a[0]) {
  12352. case 0:
  12353. case 1:
  12354. i = a;
  12355. break;
  12356. case 4:
  12357. r.label++;
  12358. return {
  12359. value: a[1],
  12360. done: !1
  12361. };
  12362. case 5:
  12363. r.label++;
  12364. o = a[1];
  12365. a = [ 0 ];
  12366. continue;
  12367. case 7:
  12368. a = r.ops.pop();
  12369. r.trys.pop();
  12370. continue;
  12371. default:
  12372. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  12373. r = 0;
  12374. continue;
  12375. }
  12376. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  12377. r.label = a[1];
  12378. break;
  12379. }
  12380. if (6 === a[0] && r.label < i[1]) {
  12381. r.label = i[1];
  12382. i = a;
  12383. break;
  12384. }
  12385. if (i && r.label < i[2]) {
  12386. r.label = i[2];
  12387. r.ops.push(a);
  12388. break;
  12389. }
  12390. i[2] && r.ops.pop();
  12391. r.trys.pop();
  12392. continue;
  12393. }
  12394. a = e.call(t, r);
  12395. } catch (t) {
  12396. a = [ 6, t ];
  12397. o = 0;
  12398. } finally {
  12399. n = i = 0;
  12400. }
  12401. if (5 & a[0]) throw a[1];
  12402. return {
  12403. value: a[0] ? a[1] : void 0,
  12404. done: !0
  12405. };
  12406. }
  12407. };
  12408. Object.defineProperty(n, "__esModule", {
  12409. value: !0
  12410. });
  12411. var s = t("./MoreGamePicItem"), l = t("./PointItem"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
  12412. i(e, t);
  12413. function e() {
  12414. var e = null !== t && t.apply(this, arguments) || this;
  12415. e.dragArea = null;
  12416. e.item1 = null;
  12417. e.item2 = null;
  12418. e.pointPrefab = null;
  12419. e.pointLy = null;
  12420. e.btnLeft = null;
  12421. e.btnRight = null;
  12422. e.startX = 0;
  12423. e.coolTime = !1;
  12424. e.curSelDownItem = null;
  12425. e.preDownItem = null;
  12426. e.curIndex = 0;
  12427. e.bannerDatas = null;
  12428. e.curSelPoint = null;
  12429. e.hasClick = !1;
  12430. return e;
  12431. }
  12432. e.prototype.start = function() {
  12433. this.dragArea.on(cc.Node.EventType.TOUCH_START, this.onDragStart, this);
  12434. this.dragArea.on(cc.Node.EventType.TOUCH_END, this.onDragEnd, this);
  12435. };
  12436. e.prototype.onDisable = function() {
  12437. this.dragArea.off(cc.Node.EventType.TOUCH_START, this.onDragStart, this);
  12438. this.dragArea.off(cc.Node.EventType.TOUCH_END, this.onDragEnd, this);
  12439. };
  12440. e.prototype.setItemData = function(t) {
  12441. return r(this, void 0, void 0, function() {
  12442. var e, n;
  12443. return c(this, function() {
  12444. this.bannerDatas = t.item_data;
  12445. if (this.bannerDatas && this.bannerDatas.length > 0) for (e = 0; e < this.bannerDatas.length; e++) {
  12446. (n = cc.instantiate(this.pointPrefab)).name = e.toString();
  12447. this.pointLy.addChild(n);
  12448. }
  12449. this.onOpenBigPicNode(0);
  12450. return [ 2 ];
  12451. });
  12452. });
  12453. };
  12454. e.prototype.onOpenBigPicNode = function(t) {
  12455. var e = this;
  12456. this.curIndex = t;
  12457. var n = this.bannerDatas[this.curIndex];
  12458. this.curSelDownItem = this.item1;
  12459. this.curSelDownItem.getComponent(s.default).init(n);
  12460. this.curSelDownItem.x = 0;
  12461. this.curSelDownItem.active = !0;
  12462. this.item2.x = 750;
  12463. this.curSelPoint = this.pointLy.getChildByName(this.curIndex.toString());
  12464. this.curSelPoint.getComponent(l.default).setSel(!0);
  12465. this.hasClick = !1;
  12466. if (this.bannerDatas.length > 1) this.schedule(function() {
  12467. e.hasClick || e.onSelDown(1);
  12468. }, 3, cc.macro.REPEAT_FOREVER, 7); else {
  12469. this.btnLeft.active = !1;
  12470. this.btnRight.active = !1;
  12471. }
  12472. };
  12473. e.prototype.onLeft = function() {
  12474. mk.audio.playEffect("button");
  12475. this.hasClick = !0;
  12476. this.onSelDown(2);
  12477. };
  12478. e.prototype.onRight = function() {
  12479. mk.audio.playEffect("button");
  12480. this.hasClick = !0;
  12481. this.onSelDown(1);
  12482. };
  12483. e.prototype.onSelDown = function(t) {
  12484. var e = this;
  12485. if (!this.coolTime) {
  12486. var n, o = -750;
  12487. if (1 == t) {
  12488. this.curIndex + 1 > this.bannerDatas.length - 1 ? this.curIndex = 0 : this.curIndex++;
  12489. n = this.bannerDatas[this.curIndex];
  12490. if (this.curSelDownItem == this.item1) {
  12491. this.curSelDownItem = this.item2;
  12492. this.preDownItem = this.item1;
  12493. } else {
  12494. this.curSelDownItem = this.item1;
  12495. this.preDownItem = this.item2;
  12496. }
  12497. this.curSelDownItem.getComponent(s.default).init(n);
  12498. this.curSelDownItem.x = 750;
  12499. o = -750;
  12500. } else if (2 == t) {
  12501. this.curIndex - 1 < 0 ? this.curIndex = this.bannerDatas.length - 1 : this.curIndex--;
  12502. n = this.bannerDatas[this.curIndex];
  12503. if (this.curSelDownItem == this.item1) {
  12504. this.curSelDownItem = this.item2;
  12505. this.preDownItem = this.item1;
  12506. } else {
  12507. this.curSelDownItem = this.item1;
  12508. this.preDownItem = this.item2;
  12509. }
  12510. this.curSelDownItem.getComponent(s.default).init(n);
  12511. this.curSelDownItem.x = -750;
  12512. o = 750;
  12513. }
  12514. this.coolTime = !0;
  12515. cc.tween(this.preDownItem).to(.4, {
  12516. x: o
  12517. }, cc.easeInOut(1)).start();
  12518. cc.tween(this.curSelDownItem).to(.4, {
  12519. x: 0
  12520. }, cc.easeInOut(1)).call(function() {
  12521. e.onSelPoint();
  12522. e.coolTime = !1;
  12523. }).start();
  12524. }
  12525. };
  12526. e.prototype.onDragStart = function(t) {
  12527. this.hasClick = !0;
  12528. this.startX = t.touch._point.x;
  12529. };
  12530. e.prototype.onDragEnd = function(t) {
  12531. var e = t.touch._point.x - this.startX;
  12532. Math.abs(e) > 20 && (e > 0 ? this.onSelDown(2) : this.onSelDown(1));
  12533. };
  12534. e.prototype.onSelPoint = function() {
  12535. this.curSelPoint && this.curSelPoint.getComponent(l.default).setSel(!1);
  12536. this.curSelPoint = this.pointLy.getChildByName(this.curIndex.toString());
  12537. this.curSelPoint.getComponent(l.default).setSel(!0);
  12538. };
  12539. a([ d(cc.Node) ], e.prototype, "dragArea", void 0);
  12540. a([ d(cc.Node) ], e.prototype, "item1", void 0);
  12541. a([ d(cc.Node) ], e.prototype, "item2", void 0);
  12542. a([ d(cc.Prefab) ], e.prototype, "pointPrefab", void 0);
  12543. a([ d(cc.Node) ], e.prototype, "pointLy", void 0);
  12544. a([ d(cc.Node) ], e.prototype, "btnLeft", void 0);
  12545. a([ d(cc.Node) ], e.prototype, "btnRight", void 0);
  12546. return a([ p ], e);
  12547. }(cc.Component);
  12548. n.default = h;
  12549. cc._RF.pop();
  12550. }, {
  12551. "./MoreGamePicItem": "MoreGamePicItem",
  12552. "./PointItem": "PointItem"
  12553. } ],
  12554. MoreGameData: [ function(t, e, n) {
  12555. "use strict";
  12556. cc._RF.push(e, "ecbc8fNcjZNNYvilAODW4lX", "MoreGameData");
  12557. var o, i = this && this.__extends || (o = function(t, e) {
  12558. return (o = Object.setPrototypeOf || {
  12559. __proto__: []
  12560. } instanceof Array && function(t, e) {
  12561. t.__proto__ = e;
  12562. } || function(t, e) {
  12563. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  12564. })(t, e);
  12565. }, function(t, e) {
  12566. o(t, e);
  12567. function n() {
  12568. this.constructor = t;
  12569. }
  12570. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  12571. }), a = this && this.__awaiter || function(t, e, n, o) {
  12572. return new (n || (n = Promise))(function(i, a) {
  12573. function r(t) {
  12574. try {
  12575. s(o.next(t));
  12576. } catch (t) {
  12577. a(t);
  12578. }
  12579. }
  12580. function c(t) {
  12581. try {
  12582. s(o.throw(t));
  12583. } catch (t) {
  12584. a(t);
  12585. }
  12586. }
  12587. function s(t) {
  12588. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  12589. t(e);
  12590. })).then(r, c);
  12591. var e;
  12592. }
  12593. s((o = o.apply(t, e || [])).next());
  12594. });
  12595. }, r = this && this.__generator || function(t, e) {
  12596. var n, o, i, a, r = {
  12597. label: 0,
  12598. sent: function() {
  12599. if (1 & i[0]) throw i[1];
  12600. return i[1];
  12601. },
  12602. trys: [],
  12603. ops: []
  12604. };
  12605. return a = {
  12606. next: c(0),
  12607. throw: c(1),
  12608. return: c(2)
  12609. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  12610. return this;
  12611. }), a;
  12612. function c(t) {
  12613. return function(e) {
  12614. return s([ t, e ]);
  12615. };
  12616. }
  12617. function s(a) {
  12618. if (n) throw new TypeError("Generator is already executing.");
  12619. for (;r; ) try {
  12620. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  12621. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  12622. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  12623. switch (a[0]) {
  12624. case 0:
  12625. case 1:
  12626. i = a;
  12627. break;
  12628. case 4:
  12629. r.label++;
  12630. return {
  12631. value: a[1],
  12632. done: !1
  12633. };
  12634. case 5:
  12635. r.label++;
  12636. o = a[1];
  12637. a = [ 0 ];
  12638. continue;
  12639. case 7:
  12640. a = r.ops.pop();
  12641. r.trys.pop();
  12642. continue;
  12643. default:
  12644. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  12645. r = 0;
  12646. continue;
  12647. }
  12648. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  12649. r.label = a[1];
  12650. break;
  12651. }
  12652. if (6 === a[0] && r.label < i[1]) {
  12653. r.label = i[1];
  12654. i = a;
  12655. break;
  12656. }
  12657. if (i && r.label < i[2]) {
  12658. r.label = i[2];
  12659. r.ops.push(a);
  12660. break;
  12661. }
  12662. i[2] && r.ops.pop();
  12663. r.trys.pop();
  12664. continue;
  12665. }
  12666. a = e.call(t, r);
  12667. } catch (t) {
  12668. a = [ 6, t ];
  12669. o = 0;
  12670. } finally {
  12671. n = i = 0;
  12672. }
  12673. if (5 & a[0]) throw a[1];
  12674. return {
  12675. value: a[0] ? a[1] : void 0,
  12676. done: !0
  12677. };
  12678. }
  12679. };
  12680. Object.defineProperty(n, "__esModule", {
  12681. value: !0
  12682. });
  12683. n.MoreGameData = void 0;
  12684. var c = t("../../../mk/data/Data"), s = t("../../../mk/system/JsbSystem"), l = function(t) {
  12685. i(e, t);
  12686. function e() {
  12687. var e = null !== t && t.apply(this, arguments) || this;
  12688. e._moreGameList = null;
  12689. e.init_moreGameList = !1;
  12690. e.testData = {
  12691. normal: [ {
  12692. nebulaAppId: "wxd2e694c55d457ded",
  12693. title: "爱上切水果",
  12694. introduction: "切水果、切水果、切、切、切!",
  12695. downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/CutFruit.apk",
  12696. packageName: "com.aries.asqsg.mz",
  12697. icon: "https://oss.duiweize.com/fission/5vp7CPeadkABlgIe.png",
  12698. banner: "https://oss.duiweize.com/fission/EXrqiYF6BkC1ZsZf.png"
  12699. }, {
  12700. nebulaAppId: "wx74fee17e08a29836",
  12701. title: "炮火掠夺",
  12702. introduction: "大炮一响,黄金万两!",
  12703. downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/FirePillage.apk",
  12704. packageName: "com.aries.firepillage.mz",
  12705. icon: "https://oss.duiweize.com/fission/BZ9ZUicxgCbWb33D.png",
  12706. banner: "https://oss.duiweize.com/fission/vGPWCE2tuGZwLSJH.png"
  12707. } ],
  12708. banner: [ {
  12709. nebulaAppId: "wx07895e2f78748daf",
  12710. title: "豪车大富翁",
  12711. introduction: "豪车、金钱、美女,你要的这里都有!",
  12712. downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/HundredsOfMillions.apk",
  12713. packageName: "org.cocos2d.hundredsofmillion.mk.mz",
  12714. icon: "https://oss.duiweize.com/fission/fviQN9OpUmmqpTjU.png",
  12715. banner: "https://oss.duiweize.com/fission/eWUxr3OySHIohqtB.png",
  12716. banner2: "https://oss.duiweize.com/fission/eWUxr3OySHIohqtB.png"
  12717. }, {
  12718. nebulaAppId: "wx22b3f0f8005f0e51",
  12719. title: "航海传奇",
  12720. introduction: " 战舰、短裙、红包,你想要的都有!",
  12721. downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/LegendOfNavigation.apk",
  12722. packageName: "com.aries.hhcq.mz",
  12723. icon: "https://oss.duiweize.com/fission/ZqDsgbj9PT94RcG0.png",
  12724. banner: "https://oss.duiweize.com/fission/goS05API8LtqB0QH.png",
  12725. banner2: "https://oss.duiweize.com/fission/goS05API8LtqB0QH.png"
  12726. } ]
  12727. };
  12728. return e;
  12729. }
  12730. Object.defineProperty(e.prototype, "moreGameList", {
  12731. get: function() {
  12732. return this._moreGameList;
  12733. },
  12734. set: function(t) {
  12735. this._moreGameList = t;
  12736. this.init_moreGameList = !0;
  12737. },
  12738. enumerable: !1,
  12739. configurable: !0
  12740. });
  12741. e.prototype.init = function() {
  12742. this.sendRecommendList();
  12743. };
  12744. e.prototype.sendRecommendList = function() {
  12745. return a(this, void 0, void 0, function() {
  12746. var t, e;
  12747. return r(this, function(n) {
  12748. switch (n.label) {
  12749. case 0:
  12750. if (null != this._moreGameList && null != this._moreGameList) return [ 3, 2 ];
  12751. t = {
  12752. isSupportMiniGames: 1
  12753. };
  12754. return [ 4, mk.http.sendData("/fission/recommend-info", t) ];
  12755. case 1:
  12756. if (0 != (e = n.sent()).errcode) return [ 2 ];
  12757. this.moreGameList = e.data;
  12758. return [ 3, 3 ];
  12759. case 2:
  12760. this.init_moreGameList = !0;
  12761. n.label = 3;
  12762. case 3:
  12763. return [ 2 ];
  12764. }
  12765. });
  12766. });
  12767. };
  12768. e.prototype.sendAppDownloadLog = function(t) {
  12769. return a(this, void 0, void 0, function() {
  12770. var e;
  12771. return r(this, function(n) {
  12772. switch (n.label) {
  12773. case 0:
  12774. e = {
  12775. downloadAppId: t
  12776. };
  12777. return [ 4, mk.http.sendData("/fission/appDownloadLog", e) ];
  12778. case 1:
  12779. n.sent();
  12780. return [ 2 ];
  12781. }
  12782. });
  12783. });
  12784. };
  12785. e.prototype.createNewTask = function(t) {
  12786. var n = this, o = t.nebulaAppId, i = t.downloadUrl, a = t.packageName;
  12787. if ("" != a && s.default.ifCanStartGame(a, !0)) return null;
  12788. if (s.default.isFileExist(o)) {
  12789. s.default.installApk(o);
  12790. return null;
  12791. }
  12792. if (e.downLoadTaskMap[t.nebulaAppId]) {
  12793. mk.tip.pop("正在下载中...");
  12794. return null;
  12795. }
  12796. mk.tip.pop("开始下载...");
  12797. var r = new u(0, 0, t.nebulaAppId, null), c = s.default.downFile2Local(i, t.nebulaAppId + ".apk", function() {
  12798. r.progress = -2;
  12799. n.sendAppDownloadLog(t.nebulaAppId);
  12800. setTimeout(function() {
  12801. s.default.installApk(o);
  12802. }, 1);
  12803. }, function() {
  12804. r.progress = -1;
  12805. e.downLoadTaskMap[t.nebulaAppId] = null;
  12806. mk.tip.pop("下载失败,请稍后再试");
  12807. }, function(t, e, n) {
  12808. r.progress = e;
  12809. r.totalBytesReceives = n;
  12810. });
  12811. r.downloadTask = c;
  12812. e.downLoadTaskMap[t.nebulaAppId] = r;
  12813. return r;
  12814. };
  12815. e.prototype.getTaskInfo = function(t) {
  12816. return e.downLoadTaskMap[t];
  12817. };
  12818. e.prototype.getRandomSteam = function() {
  12819. if (!this.moreGameList) return null;
  12820. var t = mk.math.random(0, this.moreGameList.stream.length - 1);
  12821. return this.moreGameList.stream[t];
  12822. };
  12823. e.prototype.getRandomNormal = function() {
  12824. if (!this.moreGameList) return null;
  12825. var t = mk.math.random(0, this.moreGameList.normal.length - 1);
  12826. return this.moreGameList.normal[t];
  12827. };
  12828. e.prototype.popMoreGamePopNode = function() {
  12829. mk.guide.isGuiding || mk.ui.getCurOnPanel("reward") || Math.random() <= gData.gameData.configs.ServerConfig.popMoreGame && mk.ui.openPanel("module/moreGame/moreGamePopNode");
  12830. };
  12831. e.prototype.popNodeGetRedBag = function() {
  12832. return a(this, void 0, void 0, function() {
  12833. var t, e, n;
  12834. return r(this, function(o) {
  12835. switch (o.label) {
  12836. case 0:
  12837. t = {};
  12838. return [ 4, mk.http.sendData("saveDailyRedMoney", t) ];
  12839. case 1:
  12840. if (0 != (e = o.sent()).errcode) return [ 2 ];
  12841. if (0 != e.data.redMoneyAddition) {
  12842. n = [ {
  12843. rewardType: 1,
  12844. rewardNum: e.data.redMoneyAddition
  12845. } ];
  12846. gData.reward.data = n;
  12847. mk.ui.openPanel("module/reward/reward");
  12848. }
  12849. return [ 2 ];
  12850. }
  12851. });
  12852. });
  12853. };
  12854. e.downLoadTaskMap = new Map();
  12855. return e;
  12856. }(c.Data);
  12857. n.MoreGameData = l;
  12858. var u = function() {
  12859. function t(t, e, n, o) {
  12860. this._progress = 0;
  12861. this._totalBytesReceives = 0;
  12862. this._nebulaAppId = "";
  12863. this._downloadTask = null;
  12864. this._progress = t;
  12865. this._totalBytesReceives = e;
  12866. this._nebulaAppId = n;
  12867. this._downloadTask = o;
  12868. }
  12869. Object.defineProperty(t.prototype, "progress", {
  12870. get: function() {
  12871. return this._progress;
  12872. },
  12873. set: function(t) {
  12874. this._progress = t;
  12875. },
  12876. enumerable: !1,
  12877. configurable: !0
  12878. });
  12879. Object.defineProperty(t.prototype, "totalBytesReceives", {
  12880. get: function() {
  12881. return this._totalBytesReceives;
  12882. },
  12883. set: function(t) {
  12884. this._totalBytesReceives = t;
  12885. },
  12886. enumerable: !1,
  12887. configurable: !0
  12888. });
  12889. Object.defineProperty(t.prototype, "downloadTask", {
  12890. get: function() {
  12891. return this._downloadTask;
  12892. },
  12893. set: function(t) {
  12894. this._downloadTask = t;
  12895. },
  12896. enumerable: !1,
  12897. configurable: !0
  12898. });
  12899. return t;
  12900. }();
  12901. cc._RF.pop();
  12902. }, {
  12903. "../../../mk/data/Data": "Data",
  12904. "../../../mk/system/JsbSystem": "JsbSystem"
  12905. } ],
  12906. MoreGameNormalItem: [ function(t, e, n) {
  12907. "use strict";
  12908. cc._RF.push(e, "a4ff7XTiXVGfZP42F1bBIEa", "MoreGameNormalItem");
  12909. var o, i = this && this.__extends || (o = function(t, e) {
  12910. return (o = Object.setPrototypeOf || {
  12911. __proto__: []
  12912. } instanceof Array && function(t, e) {
  12913. t.__proto__ = e;
  12914. } || function(t, e) {
  12915. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  12916. })(t, e);
  12917. }, function(t, e) {
  12918. o(t, e);
  12919. function n() {
  12920. this.constructor = t;
  12921. }
  12922. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  12923. }), a = this && this.__decorate || function(t, e, n, o) {
  12924. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  12925. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  12926. return a > 3 && r && Object.defineProperty(e, n, r), r;
  12927. }, r = this && this.__awaiter || function(t, e, n, o) {
  12928. return new (n || (n = Promise))(function(i, a) {
  12929. function r(t) {
  12930. try {
  12931. s(o.next(t));
  12932. } catch (t) {
  12933. a(t);
  12934. }
  12935. }
  12936. function c(t) {
  12937. try {
  12938. s(o.throw(t));
  12939. } catch (t) {
  12940. a(t);
  12941. }
  12942. }
  12943. function s(t) {
  12944. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  12945. t(e);
  12946. })).then(r, c);
  12947. var e;
  12948. }
  12949. s((o = o.apply(t, e || [])).next());
  12950. });
  12951. }, c = this && this.__generator || function(t, e) {
  12952. var n, o, i, a, r = {
  12953. label: 0,
  12954. sent: function() {
  12955. if (1 & i[0]) throw i[1];
  12956. return i[1];
  12957. },
  12958. trys: [],
  12959. ops: []
  12960. };
  12961. return a = {
  12962. next: c(0),
  12963. throw: c(1),
  12964. return: c(2)
  12965. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  12966. return this;
  12967. }), a;
  12968. function c(t) {
  12969. return function(e) {
  12970. return s([ t, e ]);
  12971. };
  12972. }
  12973. function s(a) {
  12974. if (n) throw new TypeError("Generator is already executing.");
  12975. for (;r; ) try {
  12976. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  12977. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  12978. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  12979. switch (a[0]) {
  12980. case 0:
  12981. case 1:
  12982. i = a;
  12983. break;
  12984. case 4:
  12985. r.label++;
  12986. return {
  12987. value: a[1],
  12988. done: !1
  12989. };
  12990. case 5:
  12991. r.label++;
  12992. o = a[1];
  12993. a = [ 0 ];
  12994. continue;
  12995. case 7:
  12996. a = r.ops.pop();
  12997. r.trys.pop();
  12998. continue;
  12999. default:
  13000. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  13001. r = 0;
  13002. continue;
  13003. }
  13004. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  13005. r.label = a[1];
  13006. break;
  13007. }
  13008. if (6 === a[0] && r.label < i[1]) {
  13009. r.label = i[1];
  13010. i = a;
  13011. break;
  13012. }
  13013. if (i && r.label < i[2]) {
  13014. r.label = i[2];
  13015. r.ops.push(a);
  13016. break;
  13017. }
  13018. i[2] && r.ops.pop();
  13019. r.trys.pop();
  13020. continue;
  13021. }
  13022. a = e.call(t, r);
  13023. } catch (t) {
  13024. a = [ 6, t ];
  13025. o = 0;
  13026. } finally {
  13027. n = i = 0;
  13028. }
  13029. if (5 & a[0]) throw a[1];
  13030. return {
  13031. value: a[0] ? a[1] : void 0,
  13032. done: !0
  13033. };
  13034. }
  13035. };
  13036. Object.defineProperty(n, "__esModule", {
  13037. value: !0
  13038. });
  13039. var s = t("../../../mk/system/JsbSystem"), l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
  13040. i(e, t);
  13041. function e() {
  13042. var e = null !== t && t.apply(this, arguments) || this;
  13043. e.iconNode = null;
  13044. e.progressLabel = null;
  13045. e.btnDown = null;
  13046. e.btnOpen = null;
  13047. e.labName = null;
  13048. e.labDes = null;
  13049. e.spRed = null;
  13050. e.data = null;
  13051. e.cool = !1;
  13052. return e;
  13053. }
  13054. e.prototype.setItemData = function(t) {
  13055. return r(this, void 0, void 0, function() {
  13056. return c(this, function() {
  13057. this.setInfo(t.item_data);
  13058. return [ 2 ];
  13059. });
  13060. });
  13061. };
  13062. e.prototype.setInfo = function(t) {
  13063. var e = this;
  13064. this.data = t;
  13065. cc.loader.load(this.data.icon, function(t, n) {
  13066. if (t) console.log("err:", t); else if (cc.isValid(e.iconNode)) {
  13067. var o = n;
  13068. e.iconNode.spriteFrame = new cc.SpriteFrame(o);
  13069. }
  13070. });
  13071. this.labName.string = this.data.title;
  13072. this.labDes.string = this.data.introduction;
  13073. this.spRed.active = !1;
  13074. if (1 == this.data.appType) if (s.default.ifCanStartGame(this.data.packageName, !1)) {
  13075. this.btnDown.active = !1;
  13076. this.btnOpen.active = !0;
  13077. } else if (s.default.isFileExist(this.data.nebulaAppId)) {
  13078. this.btnDown.active = !1;
  13079. this.btnOpen.active = !0;
  13080. } else {
  13081. this.btnDown.active = !0;
  13082. this.btnOpen.active = !1;
  13083. null != gData.moreGame.getTaskInfo(this.data.nebulaAppId) ? this.schedule(function() {
  13084. e.showDownloadProgress();
  13085. }, .5) : this.progressLabel.string = "下载";
  13086. } else if (2 == this.data.appType) {
  13087. this.btnDown.active = !1;
  13088. this.btnOpen.active = !0;
  13089. }
  13090. };
  13091. e.prototype.creatorDownLoadTask = function() {
  13092. var t = this;
  13093. mk.audio.playEffect("button");
  13094. if (!this.cool) {
  13095. mk.data.sendDataEvent(l.DataEventId.hutuiFunction, "互推格子位下载");
  13096. this.cool = !0;
  13097. this.scheduleOnce(function() {
  13098. t.cool = !1;
  13099. }, 3);
  13100. 1 == this.data.appType ? null != gData.moreGame.createNewTask(this.data) ? this.schedule(function() {
  13101. t.showDownloadProgress();
  13102. }, .5) : this.progressLabel.string = "" : 2 == this.data.appType && cc.sys.openURL(this.data.recommendLink);
  13103. }
  13104. };
  13105. e.prototype.showDownloadProgress = function() {
  13106. var t = gData.moreGame.getTaskInfo(this.data.nebulaAppId);
  13107. null != t && t.progress >= 0 ? this.progressLabel.string = (t.progress / t.totalBytesReceives * 100).toFixed(1) + "%" : this.setInfo(this.data);
  13108. };
  13109. a([ d(cc.Sprite) ], e.prototype, "iconNode", void 0);
  13110. a([ d(cc.Label) ], e.prototype, "progressLabel", void 0);
  13111. a([ d(cc.Node) ], e.prototype, "btnDown", void 0);
  13112. a([ d(cc.Node) ], e.prototype, "btnOpen", void 0);
  13113. a([ d(cc.Label) ], e.prototype, "labName", void 0);
  13114. a([ d(cc.Label) ], e.prototype, "labDes", void 0);
  13115. a([ d(cc.Node) ], e.prototype, "spRed", void 0);
  13116. return a([ p ], e);
  13117. }(cc.Component);
  13118. n.default = h;
  13119. cc._RF.pop();
  13120. }, {
  13121. "../../../mk/system/JsbSystem": "JsbSystem",
  13122. "../../data/GameData": "GameData"
  13123. } ],
  13124. MoreGamePicItem: [ function(t, e, n) {
  13125. "use strict";
  13126. cc._RF.push(e, "c2dd8WpPO5EiLR+yLbWHUHD", "MoreGamePicItem");
  13127. var o, i = this && this.__extends || (o = function(t, e) {
  13128. return (o = Object.setPrototypeOf || {
  13129. __proto__: []
  13130. } instanceof Array && function(t, e) {
  13131. t.__proto__ = e;
  13132. } || function(t, e) {
  13133. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  13134. })(t, e);
  13135. }, function(t, e) {
  13136. o(t, e);
  13137. function n() {
  13138. this.constructor = t;
  13139. }
  13140. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  13141. }), a = this && this.__decorate || function(t, e, n, o) {
  13142. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  13143. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  13144. return a > 3 && r && Object.defineProperty(e, n, r), r;
  13145. };
  13146. Object.defineProperty(n, "__esModule", {
  13147. value: !0
  13148. });
  13149. var r = t("../../../mk/system/JsbSystem"), c = t("../../data/GameData"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  13150. i(e, t);
  13151. function e() {
  13152. var e = null !== t && t.apply(this, arguments) || this;
  13153. e.banner = null;
  13154. e.spRed = null;
  13155. e.spPro = null;
  13156. e.labPro = null;
  13157. e.btnStart = null;
  13158. e.data = null;
  13159. e.cool = !1;
  13160. return e;
  13161. }
  13162. e.prototype.init = function(t) {
  13163. var e = this;
  13164. this.data = t;
  13165. cc.loader.load(t.banner2, function(t, n) {
  13166. if (t) console.log("err:", t); else if (e.banner) {
  13167. var o = n;
  13168. e.banner.spriteFrame = new cc.SpriteFrame(o);
  13169. }
  13170. });
  13171. this.spPro.node.active = !1;
  13172. this.btnStart.active = !1;
  13173. this.labPro.string = "";
  13174. if (1 == t.appType) if (r.default.ifCanStartGame(t.packageName, !1)) {
  13175. this.spRed.active = !1;
  13176. this.btnStart.active = !0;
  13177. } else if (r.default.isFileExist(t.nebulaAppId)) {
  13178. this.spRed.active = !1;
  13179. this.btnStart.active = !0;
  13180. } else this.spRed.active = !0; else if (2 == t.appType) {
  13181. this.spRed.active = !1;
  13182. this.btnStart.active = !0;
  13183. }
  13184. };
  13185. e.prototype.creatorDownLoadTask = function() {
  13186. var t = this;
  13187. if (!this.cool) {
  13188. mk.data.sendDataEvent(c.DataEventId.hutuiFunction, "互推推荐位banner下载");
  13189. this.cool = !0;
  13190. this.scheduleOnce(function() {
  13191. t.cool = !1;
  13192. }, 3);
  13193. 1 == this.data.appType ? null != gData.moreGame.createNewTask(this.data) && this.schedule(function() {
  13194. t.showDownloadProgress();
  13195. }, .5) : 2 == this.data.appType && cc.sys.openURL(this.data.recommendLink);
  13196. }
  13197. };
  13198. e.prototype.showDownloadProgress = function() {
  13199. var t = gData.moreGame.getTaskInfo(this.data.nebulaAppId);
  13200. if (null != t) if (t.progress >= 0) {
  13201. this.spPro.node.active = !0;
  13202. var e = t.progress / t.totalBytesReceives, n = (100 * e).toFixed(1);
  13203. this.spPro.fillRange = 1 - e;
  13204. this.labPro.string = n + "%";
  13205. } else this.init(this.data); else this.init(this.data);
  13206. };
  13207. a([ u(cc.Sprite) ], e.prototype, "banner", void 0);
  13208. a([ u(cc.Node) ], e.prototype, "spRed", void 0);
  13209. a([ u(cc.Sprite) ], e.prototype, "spPro", void 0);
  13210. a([ u(cc.Label) ], e.prototype, "labPro", void 0);
  13211. a([ u(cc.Node) ], e.prototype, "btnStart", void 0);
  13212. return a([ l ], e);
  13213. }(cc.Component);
  13214. n.default = p;
  13215. cc._RF.pop();
  13216. }, {
  13217. "../../../mk/system/JsbSystem": "JsbSystem",
  13218. "../../data/GameData": "GameData"
  13219. } ],
  13220. MoreGamePopNode: [ function(t, e, n) {
  13221. "use strict";
  13222. cc._RF.push(e, "cd58fkToeZLvKuTEPhUbrbO", "MoreGamePopNode");
  13223. var o, i = this && this.__extends || (o = function(t, e) {
  13224. return (o = Object.setPrototypeOf || {
  13225. __proto__: []
  13226. } instanceof Array && function(t, e) {
  13227. t.__proto__ = e;
  13228. } || function(t, e) {
  13229. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  13230. })(t, e);
  13231. }, function(t, e) {
  13232. o(t, e);
  13233. function n() {
  13234. this.constructor = t;
  13235. }
  13236. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  13237. }), a = this && this.__decorate || function(t, e, n, o) {
  13238. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  13239. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  13240. return a > 3 && r && Object.defineProperty(e, n, r), r;
  13241. };
  13242. Object.defineProperty(n, "__esModule", {
  13243. value: !0
  13244. });
  13245. var r = t("../../../mk/system/JsbSystem"), c = t("../../data/GameData"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  13246. i(e, t);
  13247. function e() {
  13248. var e = null !== t && t.apply(this, arguments) || this;
  13249. e.icon = null;
  13250. e.labName = null;
  13251. e.data = null;
  13252. e.cool = !1;
  13253. return e;
  13254. }
  13255. e.prototype.start = function() {
  13256. gData.moreGame.init_moreGameList = !0;
  13257. };
  13258. e.prototype.update = function() {
  13259. gData.moreGame.init_moreGameList && this.init();
  13260. };
  13261. e.prototype.lateUpdate = function() {
  13262. gData.moreGame.init_moreGameList = !1;
  13263. };
  13264. e.prototype.init = function() {
  13265. var t = this;
  13266. this.data = gData.moreGame.getRandomNormal();
  13267. if (this.data) {
  13268. cc.loader.load(this.data.icon, function(e, n) {
  13269. if (e) console.log("err:", e); else {
  13270. var o = n;
  13271. t.icon.spriteFrame = new cc.SpriteFrame(o);
  13272. }
  13273. });
  13274. this.labName.string = this.data.title;
  13275. }
  13276. };
  13277. e.prototype.creatorDownLoadTask = function() {
  13278. mk.audio.playEffect("button");
  13279. if (!this.cool) {
  13280. this.cool = !0;
  13281. mk.data.sendDataEvent(c.DataEventId.hutuiFunction, "互推插屏下载");
  13282. 1 == this.data.appType ? r.default.ifCanStartGame(this.data.packageName, !0) || gData.moreGame.createNewTask(this.data) : 2 == this.data.appType && cc.sys.openURL(this.data.recommendLink);
  13283. gData.moreGame.popNodeGetRedBag();
  13284. }
  13285. };
  13286. a([ u(cc.Sprite) ], e.prototype, "icon", void 0);
  13287. a([ u(cc.Label) ], e.prototype, "labName", void 0);
  13288. return a([ l ], e);
  13289. }(cc.Component);
  13290. n.default = p;
  13291. cc._RF.pop();
  13292. }, {
  13293. "../../../mk/system/JsbSystem": "JsbSystem",
  13294. "../../data/GameData": "GameData"
  13295. } ],
  13296. MoreGame: [ function(t, e, n) {
  13297. "use strict";
  13298. cc._RF.push(e, "a6705qKu8tPpoRd4ECt6v+E", "MoreGame");
  13299. var o, i = this && this.__extends || (o = function(t, e) {
  13300. return (o = Object.setPrototypeOf || {
  13301. __proto__: []
  13302. } instanceof Array && function(t, e) {
  13303. t.__proto__ = e;
  13304. } || function(t, e) {
  13305. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  13306. })(t, e);
  13307. }, function(t, e) {
  13308. o(t, e);
  13309. function n() {
  13310. this.constructor = t;
  13311. }
  13312. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  13313. }), a = this && this.__decorate || function(t, e, n, o) {
  13314. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  13315. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  13316. return a > 3 && r && Object.defineProperty(e, n, r), r;
  13317. };
  13318. Object.defineProperty(n, "__esModule", {
  13319. value: !0
  13320. });
  13321. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  13322. i(e, t);
  13323. function e() {
  13324. var e = null !== t && t.apply(this, arguments) || this;
  13325. e.node_sv = null;
  13326. e.moreGameNormalNode = null;
  13327. e.normalDatas = null;
  13328. return e;
  13329. }
  13330. e.prototype.start = function() {
  13331. this.node.setContentSize(cc.winSize);
  13332. gData.moreGame.init();
  13333. };
  13334. e.prototype.update = function() {
  13335. gData.moreGame.init_moreGameList && this.initView();
  13336. };
  13337. e.prototype.lateUpdate = function() {
  13338. gData.moreGame.init_moreGameList = !1;
  13339. };
  13340. e.prototype.initView = function() {
  13341. this.normalDatas = gData.moreGame.moreGameList.normal;
  13342. for (var t = [], e = this.normalDatas.length, n = 0; n < e; n++) {
  13343. var o = 0, i = {
  13344. item_data: this.normalDatas[n],
  13345. pfbType: o
  13346. };
  13347. t.push(i);
  13348. if (1 == n) {
  13349. o = 1;
  13350. var a = {
  13351. item_data: gData.moreGame.moreGameList.banner,
  13352. pfbType: o
  13353. };
  13354. t.push(a);
  13355. }
  13356. }
  13357. this.node_sv.emit("srollview-init", t);
  13358. };
  13359. e.prototype.onClickClose = function() {
  13360. mk.ad.checkShowInterByChance();
  13361. };
  13362. a([ s(cc.Node) ], e.prototype, "node_sv", void 0);
  13363. a([ s(cc.Prefab) ], e.prototype, "moreGameNormalNode", void 0);
  13364. return a([ c ], e);
  13365. }(cc.Component);
  13366. n.default = l;
  13367. cc._RF.pop();
  13368. }, {} ],
  13369. NumberAnim: [ function(t, e, n) {
  13370. "use strict";
  13371. cc._RF.push(e, "88626F5Zl9BIKjmKaYlyRWH", "NumberAnim");
  13372. var o, i = this && this.__extends || (o = function(t, e) {
  13373. return (o = Object.setPrototypeOf || {
  13374. __proto__: []
  13375. } instanceof Array && function(t, e) {
  13376. t.__proto__ = e;
  13377. } || function(t, e) {
  13378. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  13379. })(t, e);
  13380. }, function(t, e) {
  13381. o(t, e);
  13382. function n() {
  13383. this.constructor = t;
  13384. }
  13385. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  13386. }), a = this && this.__decorate || function(t, e, n, o) {
  13387. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  13388. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  13389. return a > 3 && r && Object.defineProperty(e, n, r), r;
  13390. };
  13391. Object.defineProperty(n, "__esModule", {
  13392. value: !0
  13393. });
  13394. var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
  13395. i(e, t);
  13396. function e() {
  13397. var e = null !== t && t.apply(this, arguments) || this;
  13398. e.lbl_count = null;
  13399. e.targetProgress = 0;
  13400. e.delta = 0;
  13401. e.curValue = 0;
  13402. e.curTime = 0;
  13403. e.totalTime = 0;
  13404. e.lastNum = 0;
  13405. e.isPlayAni = !1;
  13406. e.len_target = 0;
  13407. e.toFixed = 0;
  13408. return e;
  13409. }
  13410. e.prototype.onLoad = function() {
  13411. this.lbl_count = this.node.getComponent(cc.Label) || this.node.addComponent(cc.Label);
  13412. };
  13413. e.prototype.setValue = function(t, e) {
  13414. void 0 === e && (e = 0);
  13415. if (this.targetProgress != t) {
  13416. this.toFixed = e;
  13417. this.len_target = t.toString().length;
  13418. this.targetProgress = t;
  13419. this.PlayMoneyAni(.3);
  13420. }
  13421. };
  13422. e.prototype.PlayMoneyAni = function(t) {
  13423. this.totalTime = t;
  13424. this.delta = this.targetProgress - this.lastNum;
  13425. this.curValue = this.lastNum;
  13426. this.curTime = 0;
  13427. this.isPlayAni = !0;
  13428. };
  13429. e.prototype.PlayMoneyAniUpdate = function(t) {
  13430. if (this.isPlayAni) {
  13431. if (this.curTime < this.totalTime) {
  13432. this.curTime += t;
  13433. this.curValue += this.delta * t;
  13434. if (this.curValue >= this.targetProgress) {
  13435. this.isPlayAni = !1;
  13436. this.curValue = this.targetProgress;
  13437. this.lastNum = this.targetProgress;
  13438. }
  13439. } else {
  13440. this.isPlayAni = !1;
  13441. this.curTime = this.totalTime;
  13442. this.curValue = this.targetProgress;
  13443. this.lastNum = this.targetProgress;
  13444. }
  13445. if (this.curValue == this.targetProgress) this.lbl_count.string = "" + this.targetProgress; else {
  13446. if (!this.curValue) {
  13447. mk.console.log("数字动画出现异常:", this.curValue);
  13448. this.curValue = this.targetProgress;
  13449. }
  13450. this.lbl_count.string = this.curValue.toFixed(this.toFixed);
  13451. }
  13452. }
  13453. };
  13454. e.prototype.update = function(t) {
  13455. this.PlayMoneyAniUpdate(t);
  13456. };
  13457. return a([ c ], e);
  13458. }(cc.Component));
  13459. n.default = s;
  13460. cc._RF.pop();
  13461. }, {} ],
  13462. PageView: [ function(t, e, n) {
  13463. "use strict";
  13464. cc._RF.push(e, "bf07comJ2RKTIq+nuMXZ4/m", "PageView");
  13465. var o, i = this && this.__extends || (o = function(t, e) {
  13466. return (o = Object.setPrototypeOf || {
  13467. __proto__: []
  13468. } instanceof Array && function(t, e) {
  13469. t.__proto__ = e;
  13470. } || function(t, e) {
  13471. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  13472. })(t, e);
  13473. }, function(t, e) {
  13474. o(t, e);
  13475. function n() {
  13476. this.constructor = t;
  13477. }
  13478. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  13479. }), a = this && this.__decorate || function(t, e, n, o) {
  13480. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  13481. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  13482. return a > 3 && r && Object.defineProperty(e, n, r), r;
  13483. };
  13484. Object.defineProperty(n, "__esModule", {
  13485. value: !0
  13486. });
  13487. var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
  13488. i(e, t);
  13489. function e() {
  13490. var e = null !== t && t.apply(this, arguments) || this;
  13491. e.comp_page_view = null;
  13492. e.arr_node_item = [];
  13493. return e;
  13494. }
  13495. e.prototype.onLoad = function() {
  13496. this.comp_page_view = this.node.getComponent(cc.PageView);
  13497. this.node.on("ui-init", this.init, this);
  13498. this.node.on("ui-clearItem", this.clearItem, this);
  13499. this.node.on("ui-backCurPage", this.backCurPage, this);
  13500. };
  13501. e.prototype.start = function() {};
  13502. e.prototype.init = function(t, e, n) {
  13503. void 0 === n && (n = 0);
  13504. var o = t.length;
  13505. if (o) {
  13506. for (c = 0; c < o; c++) {
  13507. var i = this.arr_node_item[c];
  13508. if (!i) {
  13509. i = cc.instantiate(e);
  13510. this.arr_node_item.push(i);
  13511. }
  13512. this.comp_page_view.addPage(i);
  13513. i.getComponent(i.name).setItemData(t[c]);
  13514. }
  13515. this.comp_page_view.setCurrentPageIndex(n);
  13516. var a = this.arr_node_item.length;
  13517. if (o > a) for (c = o; c < a; c++) {
  13518. this.comp_page_view.removePageAtIndex(c);
  13519. this.arr_node_item.splice(c, 1);
  13520. }
  13521. } else for (var r = this.arr_node_item.length, c = 0; c < r; c++) {
  13522. this.comp_page_view.removePageAtIndex(c);
  13523. this.arr_node_item.splice(c, 1);
  13524. }
  13525. };
  13526. e.prototype.backCurPage = function() {
  13527. var t = this.comp_page_view.getCurrentPageIndex();
  13528. this.comp_page_view.setCurrentPageIndex(t);
  13529. };
  13530. e.prototype.clearItem = function(t) {
  13531. void 0 === t && (t = !1);
  13532. };
  13533. return a([ c ], e);
  13534. }(cc.Component));
  13535. n.default = s;
  13536. cc._RF.pop();
  13537. }, {} ],
  13538. PauseUI: [ function(t, e, n) {
  13539. "use strict";
  13540. cc._RF.push(e, "2eadbxluUNDrI8Zr+YfUTg/", "PauseUI");
  13541. var o, i = this && this.__extends || (o = function(t, e) {
  13542. return (o = Object.setPrototypeOf || {
  13543. __proto__: []
  13544. } instanceof Array && function(t, e) {
  13545. t.__proto__ = e;
  13546. } || function(t, e) {
  13547. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  13548. })(t, e);
  13549. }, function(t, e) {
  13550. o(t, e);
  13551. function n() {
  13552. this.constructor = t;
  13553. }
  13554. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  13555. }), a = this && this.__decorate || function(t, e, n, o) {
  13556. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  13557. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  13558. return a > 3 && r && Object.defineProperty(e, n, r), r;
  13559. };
  13560. Object.defineProperty(n, "__esModule", {
  13561. value: !0
  13562. });
  13563. var r = t("../GamePlay"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
  13564. i(e, t);
  13565. function e() {
  13566. var e = null !== t && t.apply(this, arguments) || this;
  13567. e.node_bg = null;
  13568. e.node_closeBtn = null;
  13569. e.node_musicSwitch = null;
  13570. e.node_music_on = null;
  13571. e.node_music_off = null;
  13572. e.node_effectSwitch = null;
  13573. e.node_effect_on = null;
  13574. e.node_effect_off = null;
  13575. e.node_restartBtn = null;
  13576. e.node_exitBtn = null;
  13577. return e;
  13578. }
  13579. e.prototype.start = function() {
  13580. mk.ad.showNative(4);
  13581. this.node_bg.setContentSize(cc.winSize.width, cc.winSize.height);
  13582. this.initEvent();
  13583. };
  13584. e.prototype.onEnable = function() {
  13585. this.initMsuicSwitchState();
  13586. this.initEffectSwitchState();
  13587. };
  13588. e.prototype.initMsuicSwitchState = function() {
  13589. this.node_music_on.active = mk.audio.getSwitchMusic();
  13590. this.node_music_off.active = !this.node_music_on.active;
  13591. };
  13592. e.prototype.initEffectSwitchState = function() {
  13593. this.node_effect_on.active = mk.audio.getSwitchEffect();
  13594. this.node_effect_off.active = !this.node_effect_on.active;
  13595. };
  13596. e.prototype.initEvent = function() {
  13597. this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  13598. this.node_musicSwitch.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  13599. this.node_effectSwitch.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  13600. this.node_restartBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  13601. this.node_exitBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
  13602. };
  13603. e.prototype.onClickBtn = function(t) {
  13604. mk.audio.playEffect("button");
  13605. switch (t.currentTarget) {
  13606. case this.node_closeBtn:
  13607. this.onClickClose();
  13608. break;
  13609. case this.node_musicSwitch:
  13610. this.onClickMusicSwitch();
  13611. break;
  13612. case this.node_effectSwitch:
  13613. this.onClickEffectSwitch();
  13614. break;
  13615. case this.node_exitBtn:
  13616. this.onClickExitBtn();
  13617. break;
  13618. case this.node_restartBtn:
  13619. this.onClickRestartBtn();
  13620. }
  13621. };
  13622. e.prototype.onClickClose = function() {
  13623. console.log("点击关闭按钮", this.node.name);
  13624. mk.ui.closePanel(this.node.name);
  13625. mk.ad.destroyNativeAd();
  13626. };
  13627. e.prototype.onClickMusicSwitch = function() {
  13628. mk.audio.switchMusicFunc();
  13629. this.initMsuicSwitchState();
  13630. };
  13631. e.prototype.onClickEffectSwitch = function() {
  13632. mk.audio.switchEffectFunc();
  13633. this.initEffectSwitchState();
  13634. };
  13635. e.prototype.onClickRestartBtn = function() {
  13636. r.default.Inst.restart();
  13637. mk.ui.closePanel(this.node.name);
  13638. mk.ad.destroyNativeAd();
  13639. };
  13640. e.prototype.onClickExitBtn = function() {
  13641. mk.ui.closePanel("PauseUI");
  13642. r.default.Inst.restart();
  13643. r.default.Inst.node.active = !1;
  13644. mk.ad.destroyNativeAd();
  13645. };
  13646. a([ l(cc.Node) ], e.prototype, "node_bg", void 0);
  13647. a([ l(cc.Node) ], e.prototype, "node_closeBtn", void 0);
  13648. a([ l(cc.Node) ], e.prototype, "node_musicSwitch", void 0);
  13649. a([ l(cc.Node) ], e.prototype, "node_music_on", void 0);
  13650. a([ l(cc.Node) ], e.prototype, "node_music_off", void 0);
  13651. a([ l(cc.Node) ], e.prototype, "node_effectSwitch", void 0);
  13652. a([ l(cc.Node) ], e.prototype, "node_effect_on", void 0);
  13653. a([ l(cc.Node) ], e.prototype, "node_effect_off", void 0);
  13654. a([ l(cc.Node) ], e.prototype, "node_restartBtn", void 0);
  13655. a([ l(cc.Node) ], e.prototype, "node_exitBtn", void 0);
  13656. return a([ s ], e);
  13657. }(cc.Component);
  13658. n.default = u;
  13659. cc._RF.pop();
  13660. }, {
  13661. "../GamePlay": "GamePlay"
  13662. } ],
  13663. PigBankData: [ function(t, e, n) {
  13664. "use strict";
  13665. cc._RF.push(e, "b959eKbqF5NcI74STkMo2lM", "PigBankData");
  13666. var o, i = this && this.__extends || (o = function(t, e) {
  13667. return (o = Object.setPrototypeOf || {
  13668. __proto__: []
  13669. } instanceof Array && function(t, e) {
  13670. t.__proto__ = e;
  13671. } || function(t, e) {
  13672. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  13673. })(t, e);
  13674. }, function(t, e) {
  13675. o(t, e);
  13676. function n() {
  13677. this.constructor = t;
  13678. }
  13679. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  13680. }), a = this && this.__awaiter || function(t, e, n, o) {
  13681. return new (n || (n = Promise))(function(i, a) {
  13682. function r(t) {
  13683. try {
  13684. s(o.next(t));
  13685. } catch (t) {
  13686. a(t);
  13687. }
  13688. }
  13689. function c(t) {
  13690. try {
  13691. s(o.throw(t));
  13692. } catch (t) {
  13693. a(t);
  13694. }
  13695. }
  13696. function s(t) {
  13697. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  13698. t(e);
  13699. })).then(r, c);
  13700. var e;
  13701. }
  13702. s((o = o.apply(t, e || [])).next());
  13703. });
  13704. }, r = this && this.__generator || function(t, e) {
  13705. var n, o, i, a, r = {
  13706. label: 0,
  13707. sent: function() {
  13708. if (1 & i[0]) throw i[1];
  13709. return i[1];
  13710. },
  13711. trys: [],
  13712. ops: []
  13713. };
  13714. return a = {
  13715. next: c(0),
  13716. throw: c(1),
  13717. return: c(2)
  13718. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  13719. return this;
  13720. }), a;
  13721. function c(t) {
  13722. return function(e) {
  13723. return s([ t, e ]);
  13724. };
  13725. }
  13726. function s(a) {
  13727. if (n) throw new TypeError("Generator is already executing.");
  13728. for (;r; ) try {
  13729. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  13730. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  13731. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  13732. switch (a[0]) {
  13733. case 0:
  13734. case 1:
  13735. i = a;
  13736. break;
  13737. case 4:
  13738. r.label++;
  13739. return {
  13740. value: a[1],
  13741. done: !1
  13742. };
  13743. case 5:
  13744. r.label++;
  13745. o = a[1];
  13746. a = [ 0 ];
  13747. continue;
  13748. case 7:
  13749. a = r.ops.pop();
  13750. r.trys.pop();
  13751. continue;
  13752. default:
  13753. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  13754. r = 0;
  13755. continue;
  13756. }
  13757. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  13758. r.label = a[1];
  13759. break;
  13760. }
  13761. if (6 === a[0] && r.label < i[1]) {
  13762. r.label = i[1];
  13763. i = a;
  13764. break;
  13765. }
  13766. if (i && r.label < i[2]) {
  13767. r.label = i[2];
  13768. r.ops.push(a);
  13769. break;
  13770. }
  13771. i[2] && r.ops.pop();
  13772. r.trys.pop();
  13773. continue;
  13774. }
  13775. a = e.call(t, r);
  13776. } catch (t) {
  13777. a = [ 6, t ];
  13778. o = 0;
  13779. } finally {
  13780. n = i = 0;
  13781. }
  13782. if (5 & a[0]) throw a[1];
  13783. return {
  13784. value: a[0] ? a[1] : void 0,
  13785. done: !0
  13786. };
  13787. }
  13788. };
  13789. Object.defineProperty(n, "__esModule", {
  13790. value: !0
  13791. });
  13792. n.PigBankData = void 0;
  13793. var c = function(t) {
  13794. i(e, t);
  13795. function e() {
  13796. var e = null !== t && t.apply(this, arguments) || this;
  13797. e.init_data = !0;
  13798. e.cash_min_limit = 30;
  13799. return e;
  13800. }
  13801. e.prototype.init = function() {
  13802. this.cash_min_limit = gData.gameData.configs.ServerConfig.PiggyBankCashMoney;
  13803. };
  13804. e.prototype.cashOP = function() {
  13805. return a(this, void 0, void 0, function() {
  13806. var t;
  13807. return r(this, function(e) {
  13808. switch (e.label) {
  13809. case 0:
  13810. return [ 4, mk.http.sendData("piggyBankCash", {}) ];
  13811. case 1:
  13812. if (0 != (t = e.sent()).errcode) {
  13813. mk.tip.pop("提现排队中,多看视频优先提现");
  13814. return [ 2 ];
  13815. }
  13816. 0 == t.CashMode || t.CashMode;
  13817. gData.receiptNotice.receip_rmb = gData.gameData.gameData.piggyBank;
  13818. gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
  13819. mk.ui.openPanel("module/receiptNotice/receiptNotice");
  13820. gData.gameData.gameData.piggyBank = 0;
  13821. gData.gameData.gameData.isWithdrawable = 0;
  13822. gData.gameData.updatePiggyBankValue = !0;
  13823. gData.cashNormal.getRecord();
  13824. return [ 2 ];
  13825. }
  13826. });
  13827. });
  13828. };
  13829. e.prototype.redPoint = function() {
  13830. return !!gData.gameData.gameData.isWithdrawable && gData.gameData.gameData.piggyBank >= this.cash_min_limit;
  13831. };
  13832. return e;
  13833. }(t("../../../mk/data/Data").Data);
  13834. n.PigBankData = c;
  13835. cc._RF.pop();
  13836. }, {
  13837. "../../../mk/data/Data": "Data"
  13838. } ],
  13839. PigBank: [ function(t, e, n) {
  13840. "use strict";
  13841. cc._RF.push(e, "b7b79eT6/VPr5yd7mCH4hR7", "PigBank");
  13842. var o, i = this && this.__extends || (o = function(t, e) {
  13843. return (o = Object.setPrototypeOf || {
  13844. __proto__: []
  13845. } instanceof Array && function(t, e) {
  13846. t.__proto__ = e;
  13847. } || function(t, e) {
  13848. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  13849. })(t, e);
  13850. }, function(t, e) {
  13851. o(t, e);
  13852. function n() {
  13853. this.constructor = t;
  13854. }
  13855. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  13856. }), a = this && this.__decorate || function(t, e, n, o) {
  13857. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  13858. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  13859. return a > 3 && r && Object.defineProperty(e, n, r), r;
  13860. }, r = this && this.__awaiter || function(t, e, n, o) {
  13861. return new (n || (n = Promise))(function(i, a) {
  13862. function r(t) {
  13863. try {
  13864. s(o.next(t));
  13865. } catch (t) {
  13866. a(t);
  13867. }
  13868. }
  13869. function c(t) {
  13870. try {
  13871. s(o.throw(t));
  13872. } catch (t) {
  13873. a(t);
  13874. }
  13875. }
  13876. function s(t) {
  13877. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  13878. t(e);
  13879. })).then(r, c);
  13880. var e;
  13881. }
  13882. s((o = o.apply(t, e || [])).next());
  13883. });
  13884. }, c = this && this.__generator || function(t, e) {
  13885. var n, o, i, a, r = {
  13886. label: 0,
  13887. sent: function() {
  13888. if (1 & i[0]) throw i[1];
  13889. return i[1];
  13890. },
  13891. trys: [],
  13892. ops: []
  13893. };
  13894. return a = {
  13895. next: c(0),
  13896. throw: c(1),
  13897. return: c(2)
  13898. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  13899. return this;
  13900. }), a;
  13901. function c(t) {
  13902. return function(e) {
  13903. return s([ t, e ]);
  13904. };
  13905. }
  13906. function s(a) {
  13907. if (n) throw new TypeError("Generator is already executing.");
  13908. for (;r; ) try {
  13909. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  13910. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  13911. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  13912. switch (a[0]) {
  13913. case 0:
  13914. case 1:
  13915. i = a;
  13916. break;
  13917. case 4:
  13918. r.label++;
  13919. return {
  13920. value: a[1],
  13921. done: !1
  13922. };
  13923. case 5:
  13924. r.label++;
  13925. o = a[1];
  13926. a = [ 0 ];
  13927. continue;
  13928. case 7:
  13929. a = r.ops.pop();
  13930. r.trys.pop();
  13931. continue;
  13932. default:
  13933. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  13934. r = 0;
  13935. continue;
  13936. }
  13937. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  13938. r.label = a[1];
  13939. break;
  13940. }
  13941. if (6 === a[0] && r.label < i[1]) {
  13942. r.label = i[1];
  13943. i = a;
  13944. break;
  13945. }
  13946. if (i && r.label < i[2]) {
  13947. r.label = i[2];
  13948. r.ops.push(a);
  13949. break;
  13950. }
  13951. i[2] && r.ops.pop();
  13952. r.trys.pop();
  13953. continue;
  13954. }
  13955. a = e.call(t, r);
  13956. } catch (t) {
  13957. a = [ 6, t ];
  13958. o = 0;
  13959. } finally {
  13960. n = i = 0;
  13961. }
  13962. if (5 & a[0]) throw a[1];
  13963. return {
  13964. value: a[0] ? a[1] : void 0,
  13965. done: !0
  13966. };
  13967. }
  13968. };
  13969. Object.defineProperty(n, "__esModule", {
  13970. value: !0
  13971. });
  13972. var s = t("../../../mk/system/JsbSystem"), l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
  13973. i(e, t);
  13974. function e() {
  13975. var e = null !== t && t.apply(this, arguments) || this;
  13976. e.lbl_get_desc = null;
  13977. e.lbl_deposit = null;
  13978. e.node_tip_anim = null;
  13979. e.anim_btn_cash = null;
  13980. return e;
  13981. }
  13982. e.prototype.onLoad = function() {};
  13983. e.prototype.start = function() {
  13984. this.initCashDesc();
  13985. mk.audio.playEffect("pigBank", !1);
  13986. };
  13987. e.prototype.update = function() {
  13988. gData.pigbank.init_data && this.initCashDesc();
  13989. gData.pigbank.adData && cc.log("存钱罐提现", gData.pigbank.adData);
  13990. };
  13991. e.prototype.lateUpdate = function() {
  13992. gData.pigbank.init_data = !1;
  13993. gData.pigbank.adData = null;
  13994. };
  13995. e.prototype.initCashDesc = function() {
  13996. if (gData.gameData.gameData.isWithdrawable) {
  13997. this.lbl_get_desc.string = "直接提现";
  13998. this.node_tip_anim.active = !1;
  13999. this.anim_btn_cash.play();
  14000. } else {
  14001. gData.gameData.gameData.piggyBank >= gData.pigbank.cash_min_limit ? this.lbl_get_desc.string = "明日可提现" : this.lbl_get_desc.string = "满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提";
  14002. this.node_tip_anim.active = !0;
  14003. this.anim_btn_cash.stop();
  14004. this.anim_btn_cash.node.scale = 1;
  14005. }
  14006. this.initDeposit();
  14007. };
  14008. e.prototype.initDeposit = function() {
  14009. var t = gData.gameData.gameData.piggyBank / 100;
  14010. this.lbl_deposit.string = t.toFixed(2) + "元";
  14011. };
  14012. e.prototype.clickCashOP = function() {
  14013. mk.audio.playEffect("button");
  14014. if (gData.gameData.gameData.isWithdrawable) if (gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit) mk.tip.pop("满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提现"); else if (gData.loginData.isAuth) {
  14015. mk.data.sendDataEvent(l.DataEventId.jarWithDrawal, "存钱罐提现成功");
  14016. gData.pigbank.cashOP();
  14017. mk.ui.closePanel(this.node.name);
  14018. } else s.default.WxAuth(); else gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit ? mk.tip.pop("满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提现") : mk.tip.pop("明日可提现");
  14019. };
  14020. e.prototype.clickOpenHelpCall = function() {
  14021. return r(this, void 0, void 0, function() {
  14022. return c(this, function() {
  14023. gData.help.des = "1、游戏内观看任意视频,都会获得现金。\n\n2、存款达到0.3元后,次日登陆,可无门槛提现。\n\n3、提现后,存款清零,可重新开始。";
  14024. return [ 2 ];
  14025. });
  14026. });
  14027. };
  14028. e.prototype.onClickClose = function() {
  14029. mk.ad.checkShowInterByChance();
  14030. };
  14031. e.prototype.onDestroy = function() {
  14032. if (1 === gData.gameData.getProp(l.GameProp.isAutoOpenPanel)) {
  14033. !gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay() && mk.ui.openPanel("module/sign/sign");
  14034. gData.gameData.setProp(l.GameProp.isAutoOpenPanel, 2);
  14035. }
  14036. };
  14037. a([ d({
  14038. type: cc.Label,
  14039. displayName: "按钮描述"
  14040. }) ], e.prototype, "lbl_get_desc", void 0);
  14041. a([ d({
  14042. type: cc.Label,
  14043. displayName: "存款数量"
  14044. }) ], e.prototype, "lbl_deposit", void 0);
  14045. a([ d({
  14046. type: cc.Node,
  14047. displayName: "提示动画"
  14048. }) ], e.prototype, "node_tip_anim", void 0);
  14049. a([ d({
  14050. type: cc.Animation,
  14051. displayName: "提现动画"
  14052. }) ], e.prototype, "anim_btn_cash", void 0);
  14053. return a([ p ], e);
  14054. }(cc.Component);
  14055. n.default = h;
  14056. cc._RF.pop();
  14057. }, {
  14058. "../../../mk/system/JsbSystem": "JsbSystem",
  14059. "../../data/GameData": "GameData"
  14060. } ],
  14061. PlayerConst: [ function(t, e, n) {
  14062. "use strict";
  14063. cc._RF.push(e, "37532KV5gVBNpKplMKqz9q7", "PlayerConst");
  14064. var o, i = this && this.__extends || (o = function(t, e) {
  14065. return (o = Object.setPrototypeOf || {
  14066. __proto__: []
  14067. } instanceof Array && function(t, e) {
  14068. t.__proto__ = e;
  14069. } || function(t, e) {
  14070. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  14071. })(t, e);
  14072. }, function(t, e) {
  14073. o(t, e);
  14074. function n() {
  14075. this.constructor = t;
  14076. }
  14077. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  14078. }), a = this && this.__decorate || function(t, e, n, o) {
  14079. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  14080. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  14081. return a > 3 && r && Object.defineProperty(e, n, r), r;
  14082. };
  14083. Object.defineProperty(n, "__esModule", {
  14084. value: !0
  14085. });
  14086. n.DATA_STORAGE_KEY = void 0;
  14087. var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
  14088. i(e, t);
  14089. function e() {
  14090. return null !== t && t.apply(this, arguments) || this;
  14091. }
  14092. e.videoNum = 0;
  14093. e.ifJuliangApiApiActivie = !1;
  14094. e.ifJuliangApiSencondActivie = !1;
  14095. e.average_ecpm = 0;
  14096. return a([ c ], e);
  14097. }(cc.Component));
  14098. n.default = s;
  14099. (function(t) {
  14100. t.cashNum = "cashNum";
  14101. t.shopScoreNum = "shopScoreNum";
  14102. t.levelNum = "levelNum";
  14103. t.energyNum = "energyNum";
  14104. t.energyChangeTime = "energyChangeTime";
  14105. t.leftEnergyRecoverTime = "leftEnergyRecoverTime";
  14106. t.login_ticket = "login_ticket";
  14107. t.uin = "uin";
  14108. t.session_key = "session_key";
  14109. t.isAuth = "isAuth";
  14110. t.nickname = "nickname";
  14111. t.todayPassRedPacketNum = "todayPassRedPacketNum";
  14112. t.watchVideoNum = "watchVideoNum";
  14113. t.onlineTime = "onlineTime";
  14114. t.passNum = "passTime";
  14115. t.ifJuliangApiApiActivie = "ifJuliangApiApiActivie";
  14116. t.ifJuliangApiSencondActivie = "ifJuliangApiSencondActivie";
  14117. t.adress = "adress";
  14118. t.average_ecpm = "average_ecpm";
  14119. })(n.DATA_STORAGE_KEY || (n.DATA_STORAGE_KEY = {}));
  14120. cc._RF.pop();
  14121. }, {} ],
  14122. PointItem: [ function(t, e, n) {
  14123. "use strict";
  14124. cc._RF.push(e, "7f35a5ygDNPXrh2GhRTPUJK", "PointItem");
  14125. var o, i = this && this.__extends || (o = function(t, e) {
  14126. return (o = Object.setPrototypeOf || {
  14127. __proto__: []
  14128. } instanceof Array && function(t, e) {
  14129. t.__proto__ = e;
  14130. } || function(t, e) {
  14131. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  14132. })(t, e);
  14133. }, function(t, e) {
  14134. o(t, e);
  14135. function n() {
  14136. this.constructor = t;
  14137. }
  14138. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  14139. }), a = this && this.__decorate || function(t, e, n, o) {
  14140. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  14141. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  14142. return a > 3 && r && Object.defineProperty(e, n, r), r;
  14143. };
  14144. Object.defineProperty(n, "__esModule", {
  14145. value: !0
  14146. });
  14147. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  14148. i(e, t);
  14149. function e() {
  14150. var e = null !== t && t.apply(this, arguments) || this;
  14151. e.sel = null;
  14152. return e;
  14153. }
  14154. e.prototype.setSel = function(t) {
  14155. this.sel.active = t;
  14156. };
  14157. a([ s(cc.Node) ], e.prototype, "sel", void 0);
  14158. return a([ c ], e);
  14159. }(cc.Component);
  14160. n.default = l;
  14161. cc._RF.pop();
  14162. }, {} ],
  14163. PoolMgr: [ function(t, e, n) {
  14164. "use strict";
  14165. cc._RF.push(e, "f89e1fOWjNL55PuZpHvYSJY", "PoolMgr");
  14166. var o = this && this.__decorate || function(t, e, n, o) {
  14167. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  14168. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  14169. return a > 3 && r && Object.defineProperty(e, n, r), r;
  14170. };
  14171. Object.defineProperty(n, "__esModule", {
  14172. value: !0
  14173. });
  14174. n.NODEPOOLPREFABTYPE = void 0;
  14175. var i, a = cc._decorator.ccclass, r = function() {
  14176. function t() {
  14177. this.nodePoolDir = "game/prefab/nodepool/";
  14178. this.className = "";
  14179. this.prefabDic = {};
  14180. this.nodePoolDic = {};
  14181. }
  14182. e = t;
  14183. Object.defineProperty(t, "Inst", {
  14184. get: function() {
  14185. e.instance || (e.instance = new e());
  14186. return e.instance;
  14187. },
  14188. enumerable: !1,
  14189. configurable: !0
  14190. });
  14191. t.prototype.onLoad = function() {};
  14192. t.prototype.start = function() {};
  14193. t.prototype.initPoolPrefab = function() {
  14194. var t = this;
  14195. t.className = t.__proto__.constructor.name;
  14196. for (var e = function() {
  14197. var e = Object.keys(i)[o];
  14198. i[e];
  14199. if (Number(e) || 0 == Number(e)) return "continue";
  14200. t.nodePoolDic[e] || (t.nodePoolDic[e] = new cc.NodePool());
  14201. cc.loader.loadRes("" + n.nodePoolDir + e, function(n, o) {
  14202. if (n) mk.console.log("[" + t.className + "]加载预制体失败:" + e, n); else {
  14203. t.prefabDic[e] = o;
  14204. var i = cc.instantiate(o);
  14205. t.nodePoolDic[e].put(i);
  14206. }
  14207. }.bind(n));
  14208. }, n = this, o = 0; o < Object.keys(i).length; o++) e();
  14209. };
  14210. t.prototype.initPoolPrefabByNum = function(t, e) {
  14211. for (var n = i[t], o = this.prefabDic[n], a = 0; a < e; ++a) {
  14212. var r = cc.instantiate(o);
  14213. this.nodePoolDic[n].put(r);
  14214. }
  14215. };
  14216. t.prototype.getPoolPrefab = function(t) {
  14217. var e = i[t], n = null, o = this.prefabDic[e];
  14218. if (o) {
  14219. var a = this.nodePoolDic[e];
  14220. return n = a.size() > 0 ? a.get() : cc.instantiate(o);
  14221. }
  14222. var r = i[t];
  14223. mk.console.log("poolPrefabType", t, r);
  14224. cc.loader.loadRes("" + this.nodePoolDir + r, function(t, e) {
  14225. if (!t) {
  14226. n = cc.instantiate(e);
  14227. mk.console.log(" nodePoolPrefab ", n);
  14228. return n;
  14229. }
  14230. mk.console.log("加载预制体失败level", t);
  14231. }.bind(this));
  14232. };
  14233. t.prototype.recyclePoolPrefab = function(t, e) {
  14234. var n = i[t];
  14235. this.nodePoolDic[n].put(e);
  14236. };
  14237. var e;
  14238. t.instance = null;
  14239. return e = o([ a ], t);
  14240. }();
  14241. n.default = r;
  14242. (function(t) {
  14243. t[t.CellItem = 0] = "CellItem";
  14244. t[t.SelectCellItemBtn = 1] = "SelectCellItemBtn";
  14245. t[t.Baozha = 2] = "Baozha";
  14246. t[t.CellBg = 3] = "CellBg";
  14247. t[t.EliminateScore = 4] = "EliminateScore";
  14248. t[t.BonusTip = 5] = "BonusTip";
  14249. t[t.ScoreEnergy = 6] = "ScoreEnergy";
  14250. t[t.Hammer = 7] = "Hammer";
  14251. t[t.Change = 8] = "Change";
  14252. t[t.TipItemUI = 10] = "TipItemUI";
  14253. t[t.GetTargetScoreTip = 11] = "GetTargetScoreTip";
  14254. t[t.GetScore = 13] = "GetScore";
  14255. t[t.TipSpriteItemUI = 14] = "TipSpriteItemUI";
  14256. })(i = n.NODEPOOLPREFABTYPE || (n.NODEPOOLPREFABTYPE = {}));
  14257. cc._RF.pop();
  14258. }, {} ],
  14259. PoolSystem: [ function(t, e, n) {
  14260. "use strict";
  14261. cc._RF.push(e, "13087MgZKJLaZXibA/Ne8Bq", "PoolSystem");
  14262. var o = this && this.__awaiter || function(t, e, n, o) {
  14263. return new (n || (n = Promise))(function(i, a) {
  14264. function r(t) {
  14265. try {
  14266. s(o.next(t));
  14267. } catch (t) {
  14268. a(t);
  14269. }
  14270. }
  14271. function c(t) {
  14272. try {
  14273. s(o.throw(t));
  14274. } catch (t) {
  14275. a(t);
  14276. }
  14277. }
  14278. function s(t) {
  14279. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  14280. t(e);
  14281. })).then(r, c);
  14282. var e;
  14283. }
  14284. s((o = o.apply(t, e || [])).next());
  14285. });
  14286. }, i = this && this.__generator || function(t, e) {
  14287. var n, o, i, a, r = {
  14288. label: 0,
  14289. sent: function() {
  14290. if (1 & i[0]) throw i[1];
  14291. return i[1];
  14292. },
  14293. trys: [],
  14294. ops: []
  14295. };
  14296. return a = {
  14297. next: c(0),
  14298. throw: c(1),
  14299. return: c(2)
  14300. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  14301. return this;
  14302. }), a;
  14303. function c(t) {
  14304. return function(e) {
  14305. return s([ t, e ]);
  14306. };
  14307. }
  14308. function s(a) {
  14309. if (n) throw new TypeError("Generator is already executing.");
  14310. for (;r; ) try {
  14311. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  14312. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  14313. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  14314. switch (a[0]) {
  14315. case 0:
  14316. case 1:
  14317. i = a;
  14318. break;
  14319. case 4:
  14320. r.label++;
  14321. return {
  14322. value: a[1],
  14323. done: !1
  14324. };
  14325. case 5:
  14326. r.label++;
  14327. o = a[1];
  14328. a = [ 0 ];
  14329. continue;
  14330. case 7:
  14331. a = r.ops.pop();
  14332. r.trys.pop();
  14333. continue;
  14334. default:
  14335. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  14336. r = 0;
  14337. continue;
  14338. }
  14339. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  14340. r.label = a[1];
  14341. break;
  14342. }
  14343. if (6 === a[0] && r.label < i[1]) {
  14344. r.label = i[1];
  14345. i = a;
  14346. break;
  14347. }
  14348. if (i && r.label < i[2]) {
  14349. r.label = i[2];
  14350. r.ops.push(a);
  14351. break;
  14352. }
  14353. i[2] && r.ops.pop();
  14354. r.trys.pop();
  14355. continue;
  14356. }
  14357. a = e.call(t, r);
  14358. } catch (t) {
  14359. a = [ 6, t ];
  14360. o = 0;
  14361. } finally {
  14362. n = i = 0;
  14363. }
  14364. if (5 & a[0]) throw a[1];
  14365. return {
  14366. value: a[0] ? a[1] : void 0,
  14367. done: !0
  14368. };
  14369. }
  14370. };
  14371. Object.defineProperty(n, "__esModule", {
  14372. value: !0
  14373. });
  14374. var a = function() {
  14375. function t() {}
  14376. t.prototype.init = function(t) {
  14377. return o(this, void 0, void 0, function() {
  14378. var e, n, o, a, r, c, s;
  14379. return i(this, function(i) {
  14380. switch (i.label) {
  14381. case 0:
  14382. this.poolList = new Map();
  14383. e = 0;
  14384. i.label = 1;
  14385. case 1:
  14386. if (!(e < t.length)) return [ 3, 4 ];
  14387. n = t[e];
  14388. return [ 4, mk.loader.load(n.url, cc.Prefab) ];
  14389. case 2:
  14390. if (!(o = i.sent())) {
  14391. console.log("没有找到该prefab", n.url);
  14392. return [ 3, 3 ];
  14393. }
  14394. a = new cc.NodePool();
  14395. for (r = 0; r < n.num; ++r) {
  14396. c = cc.instantiate(o);
  14397. a.put(c);
  14398. }
  14399. s = n.url.split("/");
  14400. this.poolList.set(s[s.length - 1], a);
  14401. i.label = 3;
  14402. case 3:
  14403. e++;
  14404. return [ 3, 1 ];
  14405. case 4:
  14406. return [ 2 ];
  14407. }
  14408. });
  14409. });
  14410. };
  14411. t.prototype.getPrefab = function(t) {
  14412. return o(this, void 0, void 0, function() {
  14413. var e, n, o, a, r;
  14414. return i(this, function(i) {
  14415. switch (i.label) {
  14416. case 0:
  14417. e = t.split("/");
  14418. n = e[e.length - 1];
  14419. o = this.poolList.get(n);
  14420. a = null;
  14421. if (!(o && o.size() > 0)) return [ 3, 1 ];
  14422. a = o.get();
  14423. return [ 3, 3 ];
  14424. case 1:
  14425. return [ 4, mk.loader.load(t, cc.Prefab) ];
  14426. case 2:
  14427. r = i.sent();
  14428. a = cc.instantiate(r);
  14429. o && o.put(a);
  14430. i.label = 3;
  14431. case 3:
  14432. return [ 2, a ];
  14433. }
  14434. });
  14435. });
  14436. };
  14437. t.prototype.return = function(t, e) {
  14438. e.removeFromParent();
  14439. var n = this.poolList[t];
  14440. n && n.put(e);
  14441. };
  14442. t.prototype.clearPool = function(t) {
  14443. this.poolList[t] && this.poolList[t].clear();
  14444. };
  14445. return t;
  14446. }();
  14447. n.default = a;
  14448. cc._RF.pop();
  14449. }, {} ],
  14450. PushData: [ function(t, e, n) {
  14451. "use strict";
  14452. cc._RF.push(e, "c05b7aPhFJMQ4K7me7B6h6k", "PushData");
  14453. var o, i = this && this.__extends || (o = function(t, e) {
  14454. return (o = Object.setPrototypeOf || {
  14455. __proto__: []
  14456. } instanceof Array && function(t, e) {
  14457. t.__proto__ = e;
  14458. } || function(t, e) {
  14459. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  14460. })(t, e);
  14461. }, function(t, e) {
  14462. o(t, e);
  14463. function n() {
  14464. this.constructor = t;
  14465. }
  14466. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  14467. });
  14468. Object.defineProperty(n, "__esModule", {
  14469. value: !0
  14470. });
  14471. n.PushData = void 0;
  14472. var a = function(t) {
  14473. i(e, t);
  14474. function e() {
  14475. return null !== t && t.apply(this, arguments) || this;
  14476. }
  14477. return e;
  14478. }(t("../../../mk/data/Data").Data);
  14479. n.PushData = a;
  14480. cc._RF.pop();
  14481. }, {
  14482. "../../../mk/data/Data": "Data"
  14483. } ],
  14484. ReceiptNoticeData: [ function(t, e, n) {
  14485. "use strict";
  14486. cc._RF.push(e, "470a4q7nJxBGq7QE5zAi+fg", "ReceiptNoticeData");
  14487. var o, i = this && this.__extends || (o = function(t, e) {
  14488. return (o = Object.setPrototypeOf || {
  14489. __proto__: []
  14490. } instanceof Array && function(t, e) {
  14491. t.__proto__ = e;
  14492. } || function(t, e) {
  14493. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  14494. })(t, e);
  14495. }, function(t, e) {
  14496. o(t, e);
  14497. function n() {
  14498. this.constructor = t;
  14499. }
  14500. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  14501. });
  14502. Object.defineProperty(n, "__esModule", {
  14503. value: !0
  14504. });
  14505. n.ReceiptNoticeData = void 0;
  14506. var a = function(t) {
  14507. i(e, t);
  14508. function e() {
  14509. var e = null !== t && t.apply(this, arguments) || this;
  14510. e.init_style = !0;
  14511. e._receip_rmb = 0;
  14512. return e;
  14513. }
  14514. Object.defineProperty(e.prototype, "receip_rmb", {
  14515. get: function() {
  14516. return this._receip_rmb;
  14517. },
  14518. set: function(t) {
  14519. this._receip_rmb = t;
  14520. this.init_style = !0;
  14521. },
  14522. enumerable: !1,
  14523. configurable: !0
  14524. });
  14525. return e;
  14526. }(t("../../../mk/data/Data").Data);
  14527. n.ReceiptNoticeData = a;
  14528. cc._RF.pop();
  14529. }, {
  14530. "../../../mk/data/Data": "Data"
  14531. } ],
  14532. ReceiptNotice: [ function(t, e, n) {
  14533. "use strict";
  14534. cc._RF.push(e, "99444HkDZpKyIj1SS34tIOi", "ReceiptNotice");
  14535. var o, i = this && this.__extends || (o = function(t, e) {
  14536. return (o = Object.setPrototypeOf || {
  14537. __proto__: []
  14538. } instanceof Array && function(t, e) {
  14539. t.__proto__ = e;
  14540. } || function(t, e) {
  14541. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  14542. })(t, e);
  14543. }, function(t, e) {
  14544. o(t, e);
  14545. function n() {
  14546. this.constructor = t;
  14547. }
  14548. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  14549. }), a = this && this.__decorate || function(t, e, n, o) {
  14550. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  14551. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  14552. return a > 3 && r && Object.defineProperty(e, n, r), r;
  14553. };
  14554. Object.defineProperty(n, "__esModule", {
  14555. value: !0
  14556. });
  14557. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  14558. i(e, t);
  14559. function e() {
  14560. var e = null !== t && t.apply(this, arguments) || this;
  14561. e.lbl_receipt_rmb = null;
  14562. e.lbl_rmb_total = null;
  14563. e.lbl_user_name = null;
  14564. return e;
  14565. }
  14566. e.prototype.start = function() {
  14567. mk.audio.playEffect("receiptNotice");
  14568. };
  14569. e.prototype.update = function() {
  14570. if (gData.receiptNotice.init_style) {
  14571. gData.receiptNotice.init_style = !1;
  14572. this.initStyle();
  14573. }
  14574. };
  14575. e.prototype.initStyle = function() {
  14576. this.lbl_receipt_rmb.string = "¥" + (gData.receiptNotice.receip_rmb / 100).toFixed(2) + "元";
  14577. this.lbl_rmb_total.string = "¥" + (gData.cashNormal.receip_total_rmb / 100).toFixed(2) + "元";
  14578. this.lbl_user_name.string = gData.wechatData.nickName || "";
  14579. };
  14580. a([ s({
  14581. displayName: "lbl收款金额",
  14582. type: cc.Label
  14583. }) ], e.prototype, "lbl_receipt_rmb", void 0);
  14584. a([ s({
  14585. displayName: "lbl累计提现",
  14586. type: cc.Label
  14587. }) ], e.prototype, "lbl_rmb_total", void 0);
  14588. a([ s({
  14589. displayName: "lbl用户名",
  14590. type: cc.Label
  14591. }) ], e.prototype, "lbl_user_name", void 0);
  14592. return a([ c ], e);
  14593. }(cc.Component);
  14594. n.default = l;
  14595. cc._RF.pop();
  14596. }, {} ],
  14597. Recycle: [ function(t, e, n) {
  14598. "use strict";
  14599. cc._RF.push(e, "3f14aLW4zpID5nBzl+n0501", "Recycle");
  14600. var o, i = this && this.__extends || (o = function(t, e) {
  14601. return (o = Object.setPrototypeOf || {
  14602. __proto__: []
  14603. } instanceof Array && function(t, e) {
  14604. t.__proto__ = e;
  14605. } || function(t, e) {
  14606. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  14607. })(t, e);
  14608. }, function(t, e) {
  14609. o(t, e);
  14610. function n() {
  14611. this.constructor = t;
  14612. }
  14613. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  14614. }), a = this && this.__decorate || function(t, e, n, o) {
  14615. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  14616. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  14617. return a > 3 && r && Object.defineProperty(e, n, r), r;
  14618. };
  14619. Object.defineProperty(n, "__esModule", {
  14620. value: !0
  14621. });
  14622. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  14623. i(e, t);
  14624. function e() {
  14625. var e = null !== t && t.apply(this, arguments) || this;
  14626. e.label = null;
  14627. e.text = "hello";
  14628. return e;
  14629. }
  14630. e.prototype.start = function() {};
  14631. a([ s(cc.Label) ], e.prototype, "label", void 0);
  14632. a([ s ], e.prototype, "text", void 0);
  14633. return a([ c ], e);
  14634. }(cc.Component);
  14635. n.default = l;
  14636. cc._RF.pop();
  14637. }, {} ],
  14638. RedBagCashData: [ function(t, e, n) {
  14639. "use strict";
  14640. cc._RF.push(e, "8b9fdpewwhGE6vSMYtQEvJ4", "RedBagCashData");
  14641. var o, i = this && this.__extends || (o = function(t, e) {
  14642. return (o = Object.setPrototypeOf || {
  14643. __proto__: []
  14644. } instanceof Array && function(t, e) {
  14645. t.__proto__ = e;
  14646. } || function(t, e) {
  14647. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  14648. })(t, e);
  14649. }, function(t, e) {
  14650. o(t, e);
  14651. function n() {
  14652. this.constructor = t;
  14653. }
  14654. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  14655. }), a = this && this.__awaiter || function(t, e, n, o) {
  14656. return new (n || (n = Promise))(function(i, a) {
  14657. function r(t) {
  14658. try {
  14659. s(o.next(t));
  14660. } catch (t) {
  14661. a(t);
  14662. }
  14663. }
  14664. function c(t) {
  14665. try {
  14666. s(o.throw(t));
  14667. } catch (t) {
  14668. a(t);
  14669. }
  14670. }
  14671. function s(t) {
  14672. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  14673. t(e);
  14674. })).then(r, c);
  14675. var e;
  14676. }
  14677. s((o = o.apply(t, e || [])).next());
  14678. });
  14679. }, r = this && this.__generator || function(t, e) {
  14680. var n, o, i, a, r = {
  14681. label: 0,
  14682. sent: function() {
  14683. if (1 & i[0]) throw i[1];
  14684. return i[1];
  14685. },
  14686. trys: [],
  14687. ops: []
  14688. };
  14689. return a = {
  14690. next: c(0),
  14691. throw: c(1),
  14692. return: c(2)
  14693. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  14694. return this;
  14695. }), a;
  14696. function c(t) {
  14697. return function(e) {
  14698. return s([ t, e ]);
  14699. };
  14700. }
  14701. function s(a) {
  14702. if (n) throw new TypeError("Generator is already executing.");
  14703. for (;r; ) try {
  14704. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  14705. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  14706. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  14707. switch (a[0]) {
  14708. case 0:
  14709. case 1:
  14710. i = a;
  14711. break;
  14712. case 4:
  14713. r.label++;
  14714. return {
  14715. value: a[1],
  14716. done: !1
  14717. };
  14718. case 5:
  14719. r.label++;
  14720. o = a[1];
  14721. a = [ 0 ];
  14722. continue;
  14723. case 7:
  14724. a = r.ops.pop();
  14725. r.trys.pop();
  14726. continue;
  14727. default:
  14728. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  14729. r = 0;
  14730. continue;
  14731. }
  14732. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  14733. r.label = a[1];
  14734. break;
  14735. }
  14736. if (6 === a[0] && r.label < i[1]) {
  14737. r.label = i[1];
  14738. i = a;
  14739. break;
  14740. }
  14741. if (i && r.label < i[2]) {
  14742. r.label = i[2];
  14743. r.ops.push(a);
  14744. break;
  14745. }
  14746. i[2] && r.ops.pop();
  14747. r.trys.pop();
  14748. continue;
  14749. }
  14750. a = e.call(t, r);
  14751. } catch (t) {
  14752. a = [ 6, t ];
  14753. o = 0;
  14754. } finally {
  14755. n = i = 0;
  14756. }
  14757. if (5 & a[0]) throw a[1];
  14758. return {
  14759. value: a[0] ? a[1] : void 0,
  14760. done: !0
  14761. };
  14762. }
  14763. };
  14764. Object.defineProperty(n, "__esModule", {
  14765. value: !0
  14766. });
  14767. n.RedBagCashData = void 0;
  14768. var c = t("../../../mk/data/Data"), s = t("../../../mk/system/JsbSystem"), l = t("../GameData"), u = function(t) {
  14769. i(e, t);
  14770. function e() {
  14771. var e = null !== t && t.apply(this, arguments) || this;
  14772. e.init_list = !1;
  14773. e.update_list = !1;
  14774. e.c_data = [];
  14775. e._cash_bar = 1;
  14776. return e;
  14777. }
  14778. e.prototype.init = function() {
  14779. this.cash_bar = gData.gameData.gameData.cashIndex;
  14780. if (gData.gameData.configs.CashCfg) {
  14781. gData.gameData.configs.CashCfg.forEach(function(t) {
  14782. for (var e in t) t[e] = parseInt(t[e]);
  14783. });
  14784. this.c_data = gData.gameData.configs.CashCfg;
  14785. this.sortList();
  14786. this.initState();
  14787. this.init_list = !0;
  14788. }
  14789. };
  14790. Object.defineProperty(e.prototype, "cash_bar", {
  14791. get: function() {
  14792. return this._cash_bar;
  14793. },
  14794. set: function(t) {
  14795. this._cash_bar = t;
  14796. this.init_list = !0;
  14797. },
  14798. enumerable: !1,
  14799. configurable: !0
  14800. });
  14801. e.prototype.cashOP = function() {
  14802. return a(this, void 0, void 0, function() {
  14803. var t, e, n, o, i, a, c, u, p, d;
  14804. return r(this, function(r) {
  14805. switch (r.label) {
  14806. case 0:
  14807. if (!gData.loginData.isAuth) {
  14808. s.default.WxAuth();
  14809. return [ 2 ];
  14810. }
  14811. t = this.cash_bar;
  14812. e = {
  14813. index: t
  14814. };
  14815. return [ 4, mk.http.sendData("cashUsual", e) ];
  14816. case 1:
  14817. if (0 != (n = r.sent()).errcode) {
  14818. console.error(n.errmsg);
  14819. mk.tip.pop("提现排队中,多看视频优先提现");
  14820. mk.console.logSingle("提现index", t);
  14821. mk.console.logSingle("提现错误内容:", n);
  14822. return [ 2 ];
  14823. }
  14824. cc.log("红包提现成功");
  14825. o = n.data;
  14826. this.cash_bar++;
  14827. this.update_list = !0;
  14828. gData.gameData.gameData.cashIndex++;
  14829. i = this.getItemDataByIndex(t);
  14830. gData.gameData.gameData.redMoney -= i.type_value;
  14831. a = 0;
  14832. for (c = 0; c < o.CashStatusList.length; c++) if (o.CashStatusList[c].index == t) {
  14833. a = o.CashStatusList[c].amount;
  14834. break;
  14835. }
  14836. if (1 == o.CashMode) {
  14837. gData.receiptNotice.receip_rmb = a;
  14838. gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
  14839. mk.ui.openPanel("module/receiptNotice/receiptNotice");
  14840. } else if (2 == o.CashMode) {
  14841. u = o.CashStatusList;
  14842. p = u[u.length - 1];
  14843. gData.redCodeData.openRedCode(p.amount / 100, p.withdrawalCode);
  14844. }
  14845. mk.data.sendDataEvent(l.DataEventId.commonWithDrawal, "常规提现-红包币提现成功");
  14846. d = gData.gameData.getProp(l.GameProp.cashTimes);
  14847. gData.gameData.setProp(l.GameProp.cashTimes, ++d);
  14848. d < 4 && mk.data.sendXYEvent("cash_" + d, "第" + d + "次提现");
  14849. this.sortList();
  14850. this.initState();
  14851. gData.cashNormal.getRecord();
  14852. return [ 2 ];
  14853. }
  14854. });
  14855. });
  14856. };
  14857. e.prototype.sortList = function() {
  14858. for (var t = this.c_data.length, e = 0, n = 0; n < t; n++) {
  14859. if (this.c_data[e].index < gData.redBagCash.cash_bar) {
  14860. var o = this.c_data.splice(e, 1);
  14861. this.c_data.push(o[0]);
  14862. e--;
  14863. }
  14864. e++;
  14865. }
  14866. };
  14867. e.prototype.initState = function() {
  14868. for (var t = gData.gameData.gameData.redMoney + 0, e = this.c_data.length, n = 0; n < e; n++) if (this.c_data[n].index < gData.redBagCash.cash_bar) this.c_data[n].state = l.RewardState.none; else {
  14869. t = this.itemAllowCash(t, this.c_data[n].type_value);
  14870. this.c_data[n].state = t > 0 ? l.RewardState.unlock : l.RewardState.lock;
  14871. }
  14872. };
  14873. e.prototype.itemAllowCash = function(t, e) {
  14874. return t >= e ? t -= e : 0;
  14875. };
  14876. e.prototype.getItemDataByIndex = function(t) {
  14877. for (var e = this.c_data.length, n = 0; n < e; n++) if (this.c_data[n].index === t) return this.c_data[n];
  14878. };
  14879. e.prototype.initCData = function() {
  14880. for (var t = 0; t < 20; t++) {
  14881. var e = t + 1, n = {
  14882. index: e,
  14883. money: e,
  14884. type_value: 1e3 * e,
  14885. time: e,
  14886. directVideoTime: e,
  14887. delayVideoTimes: e,
  14888. money_type: e,
  14889. num: e,
  14890. moneyshow: e,
  14891. summoney: e,
  14892. state: 1
  14893. };
  14894. this.c_data.push(n);
  14895. }
  14896. this.init_list = !0;
  14897. };
  14898. e.prototype.redPoint = function() {
  14899. for (var t = gData.gameData.gameData.redMoney, e = this.c_data.length, n = 0; n < e; n++) if (!(this.c_data[n].index < gData.redBagCash.cash_bar) && t >= this.c_data[n].type_value) return !0;
  14900. return !1;
  14901. };
  14902. return e;
  14903. }(c.Data);
  14904. n.RedBagCashData = u;
  14905. cc._RF.pop();
  14906. }, {
  14907. "../../../mk/data/Data": "Data",
  14908. "../../../mk/system/JsbSystem": "JsbSystem",
  14909. "../GameData": "GameData"
  14910. } ],
  14911. RedBagCashItem: [ function(t, e, n) {
  14912. "use strict";
  14913. cc._RF.push(e, "822d4j21VlIxbq9rYxSGSQQ", "RedBagCashItem");
  14914. var o, i = this && this.__extends || (o = function(t, e) {
  14915. return (o = Object.setPrototypeOf || {
  14916. __proto__: []
  14917. } instanceof Array && function(t, e) {
  14918. t.__proto__ = e;
  14919. } || function(t, e) {
  14920. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  14921. })(t, e);
  14922. }, function(t, e) {
  14923. o(t, e);
  14924. function n() {
  14925. this.constructor = t;
  14926. }
  14927. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  14928. }), a = this && this.__decorate || function(t, e, n, o) {
  14929. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  14930. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  14931. return a > 3 && r && Object.defineProperty(e, n, r), r;
  14932. }, r = this && this.__awaiter || function(t, e, n, o) {
  14933. return new (n || (n = Promise))(function(i, a) {
  14934. function r(t) {
  14935. try {
  14936. s(o.next(t));
  14937. } catch (t) {
  14938. a(t);
  14939. }
  14940. }
  14941. function c(t) {
  14942. try {
  14943. s(o.throw(t));
  14944. } catch (t) {
  14945. a(t);
  14946. }
  14947. }
  14948. function s(t) {
  14949. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  14950. t(e);
  14951. })).then(r, c);
  14952. var e;
  14953. }
  14954. s((o = o.apply(t, e || [])).next());
  14955. });
  14956. }, c = this && this.__generator || function(t, e) {
  14957. var n, o, i, a, r = {
  14958. label: 0,
  14959. sent: function() {
  14960. if (1 & i[0]) throw i[1];
  14961. return i[1];
  14962. },
  14963. trys: [],
  14964. ops: []
  14965. };
  14966. return a = {
  14967. next: c(0),
  14968. throw: c(1),
  14969. return: c(2)
  14970. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  14971. return this;
  14972. }), a;
  14973. function c(t) {
  14974. return function(e) {
  14975. return s([ t, e ]);
  14976. };
  14977. }
  14978. function s(a) {
  14979. if (n) throw new TypeError("Generator is already executing.");
  14980. for (;r; ) try {
  14981. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  14982. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  14983. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  14984. switch (a[0]) {
  14985. case 0:
  14986. case 1:
  14987. i = a;
  14988. break;
  14989. case 4:
  14990. r.label++;
  14991. return {
  14992. value: a[1],
  14993. done: !1
  14994. };
  14995. case 5:
  14996. r.label++;
  14997. o = a[1];
  14998. a = [ 0 ];
  14999. continue;
  15000. case 7:
  15001. a = r.ops.pop();
  15002. r.trys.pop();
  15003. continue;
  15004. default:
  15005. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  15006. r = 0;
  15007. continue;
  15008. }
  15009. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  15010. r.label = a[1];
  15011. break;
  15012. }
  15013. if (6 === a[0] && r.label < i[1]) {
  15014. r.label = i[1];
  15015. i = a;
  15016. break;
  15017. }
  15018. if (i && r.label < i[2]) {
  15019. r.label = i[2];
  15020. r.ops.push(a);
  15021. break;
  15022. }
  15023. i[2] && r.ops.pop();
  15024. r.trys.pop();
  15025. continue;
  15026. }
  15027. a = e.call(t, r);
  15028. } catch (t) {
  15029. a = [ 6, t ];
  15030. o = 0;
  15031. } finally {
  15032. n = i = 0;
  15033. }
  15034. if (5 & a[0]) throw a[1];
  15035. return {
  15036. value: a[0] ? a[1] : void 0,
  15037. done: !0
  15038. };
  15039. }
  15040. };
  15041. Object.defineProperty(n, "__esModule", {
  15042. value: !0
  15043. });
  15044. var s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
  15045. i(e, t);
  15046. function e() {
  15047. var e = null !== t && t.apply(this, arguments) || this;
  15048. e.node_none = null;
  15049. e.node_lock = null;
  15050. e.node_unlock = null;
  15051. e.lbl_red_value = null;
  15052. e.lbl_rmb_value = null;
  15053. e.item_data = null;
  15054. return e;
  15055. }
  15056. e.prototype.onLoad = function() {};
  15057. e.prototype.start = function() {};
  15058. e.prototype.setItemData = function(t) {
  15059. return r(this, void 0, void 0, function() {
  15060. return c(this, function(e) {
  15061. switch (e.label) {
  15062. case 0:
  15063. null == this.item_data && 1 == t.index && mk.event.register("event_guide", this.clickGuide.bind, this);
  15064. return [ 4, this.initStyle(t) ];
  15065. case 1:
  15066. e.sent();
  15067. return [ 2 ];
  15068. }
  15069. });
  15070. });
  15071. };
  15072. e.prototype.clickGuide = function(t) {
  15073. "2_2" == t && this.clickCashOP();
  15074. };
  15075. e.prototype.initStyle = function(t) {
  15076. this.item_data = t;
  15077. this.lbl_red_value.string = "" + this.item_data.type_value;
  15078. var e = this.item_data.money / 100;
  15079. e = e > 1 ? e : parseFloat(e.toFixed(2));
  15080. this.lbl_rmb_value.string = e + "元";
  15081. if (this.item_data.state === s.RewardState.none) {
  15082. this.node_none.active = !0;
  15083. this.node_lock.active = !1;
  15084. this.node_unlock.active = !1;
  15085. } else if (this.item_data.state === s.RewardState.lock) {
  15086. this.node_none.active = !1;
  15087. this.node_lock.active = !0;
  15088. this.node_unlock.active = !1;
  15089. } else if (this.item_data.state === s.RewardState.unlock) {
  15090. this.node_none.active = !1;
  15091. this.node_lock.active = !1;
  15092. this.node_unlock.active = !0;
  15093. }
  15094. };
  15095. e.prototype.clickCashOP = function() {
  15096. this.item_data.index > gData.redBagCash.cash_bar + 1 ? mk.tip.pop("请按顺序提现") : gData.redBagCash.cashOP();
  15097. };
  15098. e.prototype.onDestroy = function() {
  15099. mk.event.remove("event_guide", this.clickGuide, this);
  15100. };
  15101. a([ p({
  15102. displayName: "已领取",
  15103. type: cc.Node
  15104. }) ], e.prototype, "node_none", void 0);
  15105. a([ p({
  15106. displayName: "未达成",
  15107. type: cc.Node
  15108. }) ], e.prototype, "node_lock", void 0);
  15109. a([ p({
  15110. displayName: "可领取",
  15111. type: cc.Node
  15112. }) ], e.prototype, "node_unlock", void 0);
  15113. a([ p({
  15114. displayName: "红包数量",
  15115. type: cc.Label
  15116. }) ], e.prototype, "lbl_red_value", void 0);
  15117. a([ p({
  15118. displayName: "毛币数量",
  15119. type: cc.Label
  15120. }) ], e.prototype, "lbl_rmb_value", void 0);
  15121. return a([ u ], e);
  15122. }(cc.Component);
  15123. n.default = d;
  15124. cc._RF.pop();
  15125. }, {
  15126. "../../data/GameData": "GameData"
  15127. } ],
  15128. RedBagCash: [ function(t, e, n) {
  15129. "use strict";
  15130. cc._RF.push(e, "e7d9eMVnCBChaITA71Rl9/B", "RedBagCash");
  15131. var o, i = this && this.__extends || (o = function(t, e) {
  15132. return (o = Object.setPrototypeOf || {
  15133. __proto__: []
  15134. } instanceof Array && function(t, e) {
  15135. t.__proto__ = e;
  15136. } || function(t, e) {
  15137. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  15138. })(t, e);
  15139. }, function(t, e) {
  15140. o(t, e);
  15141. function n() {
  15142. this.constructor = t;
  15143. }
  15144. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  15145. }), a = this && this.__decorate || function(t, e, n, o) {
  15146. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  15147. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  15148. return a > 3 && r && Object.defineProperty(e, n, r), r;
  15149. };
  15150. Object.defineProperty(n, "__esModule", {
  15151. value: !0
  15152. });
  15153. var r = t("../../../before/GamePlay"), c = t("../../data/GameData"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  15154. i(e, t);
  15155. function e() {
  15156. var e = null !== t && t.apply(this, arguments) || this;
  15157. e.sroll_view = null;
  15158. e.node_content = null;
  15159. e.lbl_redbag = null;
  15160. e.lbl_rmb = null;
  15161. e.tableview = null;
  15162. return e;
  15163. }
  15164. e.prototype.onLoad = function() {
  15165. this.tableview = this.sroll_view.getComponent("TableView");
  15166. };
  15167. e.prototype.start = function() {
  15168. gData.redBagCash.init_list = !0;
  15169. gData.redBagCash.initState();
  15170. };
  15171. e.prototype.update = function() {
  15172. if (gData.redBagCash.update_list) {
  15173. this.sroll_view.node.emit("srollview-init", gData.redBagCash.c_data);
  15174. this.initMoney();
  15175. } else if (gData.redBagCash.init_list) {
  15176. this.initScrollView();
  15177. this.initMoney();
  15178. }
  15179. };
  15180. e.prototype.lateUpdate = function() {
  15181. gData.redBagCash.init_list = !1;
  15182. gData.redBagCash.update_list = !1;
  15183. };
  15184. e.prototype.initScrollView = function() {
  15185. var t = this;
  15186. this.sroll_view.node.emit("srollview-init", gData.redBagCash.c_data);
  15187. this.scheduleOnce(function() {
  15188. t.itemAnim();
  15189. }, 0);
  15190. };
  15191. e.prototype.itemAnim = function() {
  15192. for (var t = this.node_content.children, e = this.node_content.childrenCount, n = new cc.Vec2(0, -this.sroll_view.node.height), o = function(e) {
  15193. var o = t[e], a = o.getPosition();
  15194. o.y = n.y;
  15195. i.scheduleOnce(function() {
  15196. mk.tween.move(o, .6, n, a, null, "backOut");
  15197. }, .1 * e);
  15198. }, i = this, a = 0; a < e; a++) o(a);
  15199. };
  15200. e.prototype.initMoney = function() {
  15201. var t = gData.gameData.gameData.redMoney;
  15202. t = parseFloat(t.toFixed(2));
  15203. this.lbl_redbag.string = "" + t;
  15204. var e = gData.gameData.gameData.redMoney / 1e4;
  15205. e = e > 1 ? Math.floor(e) : parseFloat(e.toFixed(2));
  15206. this.lbl_rmb.string = "" + e;
  15207. };
  15208. e.prototype.onDestroy = function() {
  15209. if (!gData.gameData.getProp(c.GameProp.isOpenBankOnCloseCash)) {
  15210. mk.ui.openPanel("module/pigBank/pigBank");
  15211. gData.gameData.setProp(c.GameProp.isOpenBankOnCloseCash, 1);
  15212. }
  15213. };
  15214. e.prototype.onClickClose = function() {
  15215. r.default.Inst && r.default.Inst.ifPass && r.default.Inst.gameCount();
  15216. };
  15217. a([ u({
  15218. displayName: "滚动视图",
  15219. type: cc.ScrollView
  15220. }) ], e.prototype, "sroll_view", void 0);
  15221. a([ u({
  15222. displayName: "条目容器",
  15223. type: cc.Node
  15224. }) ], e.prototype, "node_content", void 0);
  15225. a([ u({
  15226. displayName: "lbl红包数量",
  15227. type: cc.Label
  15228. }) ], e.prototype, "lbl_redbag", void 0);
  15229. a([ u({
  15230. displayName: "lbl毛币数量",
  15231. type: cc.Label
  15232. }) ], e.prototype, "lbl_rmb", void 0);
  15233. return a([ l ], e);
  15234. }(cc.Component);
  15235. n.default = p;
  15236. cc._RF.pop();
  15237. }, {
  15238. "../../../before/GamePlay": "GamePlay",
  15239. "../../data/GameData": "GameData"
  15240. } ],
  15241. RedBagCodeItem: [ function(t, e, n) {
  15242. "use strict";
  15243. cc._RF.push(e, "8a473ReImNJJonKxV9mTpIL", "RedBagCodeItem");
  15244. var o, i = this && this.__extends || (o = function(t, e) {
  15245. return (o = Object.setPrototypeOf || {
  15246. __proto__: []
  15247. } instanceof Array && function(t, e) {
  15248. t.__proto__ = e;
  15249. } || function(t, e) {
  15250. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  15251. })(t, e);
  15252. }, function(t, e) {
  15253. o(t, e);
  15254. function n() {
  15255. this.constructor = t;
  15256. }
  15257. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  15258. }), a = this && this.__decorate || function(t, e, n, o) {
  15259. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  15260. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  15261. return a > 3 && r && Object.defineProperty(e, n, r), r;
  15262. }, r = this && this.__awaiter || function(t, e, n, o) {
  15263. return new (n || (n = Promise))(function(i, a) {
  15264. function r(t) {
  15265. try {
  15266. s(o.next(t));
  15267. } catch (t) {
  15268. a(t);
  15269. }
  15270. }
  15271. function c(t) {
  15272. try {
  15273. s(o.throw(t));
  15274. } catch (t) {
  15275. a(t);
  15276. }
  15277. }
  15278. function s(t) {
  15279. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  15280. t(e);
  15281. })).then(r, c);
  15282. var e;
  15283. }
  15284. s((o = o.apply(t, e || [])).next());
  15285. });
  15286. }, c = this && this.__generator || function(t, e) {
  15287. var n, o, i, a, r = {
  15288. label: 0,
  15289. sent: function() {
  15290. if (1 & i[0]) throw i[1];
  15291. return i[1];
  15292. },
  15293. trys: [],
  15294. ops: []
  15295. };
  15296. return a = {
  15297. next: c(0),
  15298. throw: c(1),
  15299. return: c(2)
  15300. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  15301. return this;
  15302. }), a;
  15303. function c(t) {
  15304. return function(e) {
  15305. return s([ t, e ]);
  15306. };
  15307. }
  15308. function s(a) {
  15309. if (n) throw new TypeError("Generator is already executing.");
  15310. for (;r; ) try {
  15311. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  15312. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  15313. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  15314. switch (a[0]) {
  15315. case 0:
  15316. case 1:
  15317. i = a;
  15318. break;
  15319. case 4:
  15320. r.label++;
  15321. return {
  15322. value: a[1],
  15323. done: !1
  15324. };
  15325. case 5:
  15326. r.label++;
  15327. o = a[1];
  15328. a = [ 0 ];
  15329. continue;
  15330. case 7:
  15331. a = r.ops.pop();
  15332. r.trys.pop();
  15333. continue;
  15334. default:
  15335. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  15336. r = 0;
  15337. continue;
  15338. }
  15339. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  15340. r.label = a[1];
  15341. break;
  15342. }
  15343. if (6 === a[0] && r.label < i[1]) {
  15344. r.label = i[1];
  15345. i = a;
  15346. break;
  15347. }
  15348. if (i && r.label < i[2]) {
  15349. r.label = i[2];
  15350. r.ops.push(a);
  15351. break;
  15352. }
  15353. i[2] && r.ops.pop();
  15354. r.trys.pop();
  15355. continue;
  15356. }
  15357. a = e.call(t, r);
  15358. } catch (t) {
  15359. a = [ 6, t ];
  15360. o = 0;
  15361. } finally {
  15362. n = i = 0;
  15363. }
  15364. if (5 & a[0]) throw a[1];
  15365. return {
  15366. value: a[0] ? a[1] : void 0,
  15367. done: !0
  15368. };
  15369. }
  15370. };
  15371. Object.defineProperty(n, "__esModule", {
  15372. value: !0
  15373. });
  15374. var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
  15375. i(e, t);
  15376. function e() {
  15377. var e = null !== t && t.apply(this, arguments) || this;
  15378. e.lbl_code = null;
  15379. e.lbl_time = null;
  15380. e.lbl_rmb = null;
  15381. e.item_data = null;
  15382. return e;
  15383. }
  15384. e.prototype.setItemData = function(t) {
  15385. return r(this, void 0, void 0, function() {
  15386. return c(this, function(e) {
  15387. switch (e.label) {
  15388. case 0:
  15389. return [ 4, this.initItem(t) ];
  15390. case 1:
  15391. e.sent();
  15392. return [ 2 ];
  15393. }
  15394. });
  15395. });
  15396. };
  15397. e.prototype.initItem = function(t) {
  15398. this.item_data = t;
  15399. this.lbl_rmb.string = (t.amount / 100).toFixed(2) + "元";
  15400. this.lbl_time.string = mk.time.getNowDayString(1e3 * t.applyTime);
  15401. this.lbl_code.string = t.withdrawalCode ? "红包码:" + t.withdrawalCode : "";
  15402. };
  15403. e.prototype.clickCopy = function() {
  15404. s.default.setClipboard(this.item_data.withdrawalCode);
  15405. mk.tip.pop("复制成功");
  15406. };
  15407. a([ p({
  15408. displayName: "lbl红包码",
  15409. type: cc.Label
  15410. }) ], e.prototype, "lbl_code", void 0);
  15411. a([ p({
  15412. displayName: "lbl时间",
  15413. type: cc.Label
  15414. }) ], e.prototype, "lbl_time", void 0);
  15415. a([ p({
  15416. displayName: "lbl毛币",
  15417. type: cc.Label
  15418. }) ], e.prototype, "lbl_rmb", void 0);
  15419. return a([ u ], e);
  15420. }(cc.Component);
  15421. n.default = d;
  15422. cc._RF.pop();
  15423. }, {
  15424. "../../../mk/system/JsbSystem": "JsbSystem"
  15425. } ],
  15426. RedBagCode: [ function(t, e, n) {
  15427. "use strict";
  15428. cc._RF.push(e, "f7616rh8MtO1ZZziaU2Xf1w", "RedBagCode");
  15429. var o, i = this && this.__extends || (o = function(t, e) {
  15430. return (o = Object.setPrototypeOf || {
  15431. __proto__: []
  15432. } instanceof Array && function(t, e) {
  15433. t.__proto__ = e;
  15434. } || function(t, e) {
  15435. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  15436. })(t, e);
  15437. }, function(t, e) {
  15438. o(t, e);
  15439. function n() {
  15440. this.constructor = t;
  15441. }
  15442. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  15443. }), a = this && this.__decorate || function(t, e, n, o) {
  15444. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  15445. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  15446. return a > 3 && r && Object.defineProperty(e, n, r), r;
  15447. };
  15448. Object.defineProperty(n, "__esModule", {
  15449. value: !0
  15450. });
  15451. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  15452. i(e, t);
  15453. function e() {
  15454. var e = null !== t && t.apply(this, arguments) || this;
  15455. e.scroll_view = null;
  15456. e.lbl_none = null;
  15457. e.videoPre = null;
  15458. e.coolTime = !1;
  15459. e.videoNode = null;
  15460. return e;
  15461. }
  15462. e.prototype.start = function() {
  15463. gData.cashNormal.getRecord();
  15464. mk.ad.showNative(4);
  15465. };
  15466. e.prototype.initList = function() {
  15467. var t = gData.cashNormal.getListDataHavCode();
  15468. this.scroll_view.node.emit("srollview-init", t);
  15469. this.initNoneItem(t);
  15470. };
  15471. e.prototype.initNoneItem = function(t) {
  15472. var e = t.length;
  15473. this.lbl_none.node.active = !e;
  15474. };
  15475. e.prototype.clickTeach = function() {
  15476. mk.audio.playEffect("button");
  15477. if (!this.coolTime) {
  15478. this.coolTime = !0;
  15479. gData.redCodeData.teachVideoType = 1;
  15480. console.log("clickTeach");
  15481. this.videoNode = cc.instantiate(this.videoPre);
  15482. this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
  15483. this.node.addChild(this.videoNode);
  15484. }
  15485. };
  15486. e.prototype.onCompleted = function() {
  15487. this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
  15488. this.videoNode.destroy();
  15489. mk.audio.setResumeMusic();
  15490. this.coolTime = !1;
  15491. };
  15492. e.prototype.onClickClose = function() {
  15493. mk.ad.destroyNativeAd();
  15494. };
  15495. e.prototype.update = function() {
  15496. gData.cashNormal.update_list && this.initList();
  15497. };
  15498. e.prototype.lateUpdate = function() {
  15499. gData.cashNormal.update_list = !1;
  15500. };
  15501. a([ s({
  15502. type: cc.ScrollView,
  15503. displayName: "滚动视图"
  15504. }) ], e.prototype, "scroll_view", void 0);
  15505. a([ s({
  15506. displayName: "lbl暂无提现",
  15507. type: cc.Label
  15508. }) ], e.prototype, "lbl_none", void 0);
  15509. a([ s(cc.Prefab) ], e.prototype, "videoPre", void 0);
  15510. return a([ c ], e);
  15511. }(cc.Component);
  15512. n.default = l;
  15513. cc._RF.pop();
  15514. }, {} ],
  15515. RedCodeData: [ function(t, e, n) {
  15516. "use strict";
  15517. cc._RF.push(e, "04852gTGntFzLZT6/tJUeSA", "RedCodeData");
  15518. var o, i = this && this.__extends || (o = function(t, e) {
  15519. return (o = Object.setPrototypeOf || {
  15520. __proto__: []
  15521. } instanceof Array && function(t, e) {
  15522. t.__proto__ = e;
  15523. } || function(t, e) {
  15524. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  15525. })(t, e);
  15526. }, function(t, e) {
  15527. o(t, e);
  15528. function n() {
  15529. this.constructor = t;
  15530. }
  15531. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  15532. }), a = this && this.__decorate || function(t, e, n, o) {
  15533. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  15534. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  15535. return a > 3 && r && Object.defineProperty(e, n, r), r;
  15536. };
  15537. Object.defineProperty(n, "__esModule", {
  15538. value: !0
  15539. });
  15540. var r = t("../../../mk/data/Data"), c = cc._decorator.ccclass, s = function(t) {
  15541. i(e, t);
  15542. function e() {
  15543. var e = null !== t && t.apply(this, arguments) || this;
  15544. e.init_data = !1;
  15545. e.money = 0;
  15546. e.code = "";
  15547. e.teachVideoType = 1;
  15548. return e;
  15549. }
  15550. e.prototype.openRedCode = function(t, e) {
  15551. mk.ui.openPanel("module/redCode/redCode");
  15552. this.money = t;
  15553. this.code = e;
  15554. this.init_data = !0;
  15555. };
  15556. return a([ c ], e);
  15557. }(r.Data);
  15558. n.default = s;
  15559. cc._RF.pop();
  15560. }, {
  15561. "../../../mk/data/Data": "Data"
  15562. } ],
  15563. RedCode: [ function(t, e, n) {
  15564. "use strict";
  15565. cc._RF.push(e, "c41b5+3RSVEG7N5eu3qKlqZ", "RedCode");
  15566. var o, i = this && this.__extends || (o = function(t, e) {
  15567. return (o = Object.setPrototypeOf || {
  15568. __proto__: []
  15569. } instanceof Array && function(t, e) {
  15570. t.__proto__ = e;
  15571. } || function(t, e) {
  15572. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  15573. })(t, e);
  15574. }, function(t, e) {
  15575. o(t, e);
  15576. function n() {
  15577. this.constructor = t;
  15578. }
  15579. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  15580. }), a = this && this.__decorate || function(t, e, n, o) {
  15581. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  15582. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  15583. return a > 3 && r && Object.defineProperty(e, n, r), r;
  15584. };
  15585. Object.defineProperty(n, "__esModule", {
  15586. value: !0
  15587. });
  15588. var r = t("../../../mk/system/JsbSystem"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
  15589. i(e, t);
  15590. function e() {
  15591. var e = null !== t && t.apply(this, arguments) || this;
  15592. e.labOfficial = null;
  15593. e.labRed = null;
  15594. e.labMoney = null;
  15595. e.labRedCode = null;
  15596. e.parNode = null;
  15597. e.videoPre = null;
  15598. e.videoNode = null;
  15599. e.officialStr = "白羊游戏社";
  15600. e.redCodeStr = "领红包";
  15601. e.code = "";
  15602. e.coolTime = !1;
  15603. return e;
  15604. }
  15605. e.prototype.start = function() {
  15606. mk.ad.showNative(4);
  15607. this.coolTime = !1;
  15608. this.labOfficial.string = "“" + this.officialStr + "”";
  15609. this.labRed.string = "“" + this.redCodeStr + "”";
  15610. };
  15611. e.prototype.update = function() {
  15612. gData.redCodeData.init_data && this.init(gData.redCodeData.money, gData.redCodeData.code);
  15613. };
  15614. e.prototype.lateUpdate = function() {
  15615. gData.redCodeData.init_data = !1;
  15616. };
  15617. e.prototype.init = function(t, e) {
  15618. this.labMoney.string = t.toFixed(2) + "元";
  15619. this.code = e;
  15620. this.labRedCode.string = "提现红包码:" + this.code;
  15621. };
  15622. e.prototype.clickCopyOfficial = function() {
  15623. mk.audio.playEffect("button");
  15624. r.default.setClipboard(this.officialStr);
  15625. };
  15626. e.prototype.clickTeach = function() {
  15627. mk.audio.playEffect("button");
  15628. if (!this.coolTime) {
  15629. this.coolTime = !0;
  15630. gData.redCodeData.teachVideoType = 1;
  15631. console.log("clickTeach");
  15632. this.videoNode = cc.instantiate(this.videoPre);
  15633. this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
  15634. this.node.addChild(this.videoNode);
  15635. }
  15636. };
  15637. e.prototype.onCompleted = function() {
  15638. this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
  15639. this.videoNode.destroy();
  15640. mk.audio.setResumeMusic();
  15641. this.coolTime = !1;
  15642. };
  15643. e.prototype.clickCopyRedCode = function() {
  15644. mk.audio.playEffect("button");
  15645. r.default.setClipboard(this.code);
  15646. };
  15647. e.prototype.closeCallBack = function() {
  15648. mk.audio.playEffect("button");
  15649. mk.audio.setResumeMusic();
  15650. };
  15651. e.prototype.onClickClose = function() {};
  15652. e.prototype.onDisable = function() {
  15653. mk.ad.destroyNativeAd();
  15654. };
  15655. a([ l(cc.Label) ], e.prototype, "labOfficial", void 0);
  15656. a([ l(cc.Label) ], e.prototype, "labRed", void 0);
  15657. a([ l(cc.Label) ], e.prototype, "labMoney", void 0);
  15658. a([ l(cc.Label) ], e.prototype, "labRedCode", void 0);
  15659. a([ l(cc.Node) ], e.prototype, "parNode", void 0);
  15660. a([ l(cc.Prefab) ], e.prototype, "videoPre", void 0);
  15661. return a([ s ], e);
  15662. }(cc.Component);
  15663. n.default = u;
  15664. cc._RF.pop();
  15665. }, {
  15666. "../../../mk/system/JsbSystem": "JsbSystem"
  15667. } ],
  15668. RedeemData: [ function(t, e, n) {
  15669. "use strict";
  15670. cc._RF.push(e, "eac1eb1LzpDVby7tKxQi4wj", "RedeemData");
  15671. var o, i = this && this.__extends || (o = function(t, e) {
  15672. return (o = Object.setPrototypeOf || {
  15673. __proto__: []
  15674. } instanceof Array && function(t, e) {
  15675. t.__proto__ = e;
  15676. } || function(t, e) {
  15677. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  15678. })(t, e);
  15679. }, function(t, e) {
  15680. o(t, e);
  15681. function n() {
  15682. this.constructor = t;
  15683. }
  15684. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  15685. }), a = this && this.__awaiter || function(t, e, n, o) {
  15686. return new (n || (n = Promise))(function(i, a) {
  15687. function r(t) {
  15688. try {
  15689. s(o.next(t));
  15690. } catch (t) {
  15691. a(t);
  15692. }
  15693. }
  15694. function c(t) {
  15695. try {
  15696. s(o.throw(t));
  15697. } catch (t) {
  15698. a(t);
  15699. }
  15700. }
  15701. function s(t) {
  15702. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  15703. t(e);
  15704. })).then(r, c);
  15705. var e;
  15706. }
  15707. s((o = o.apply(t, e || [])).next());
  15708. });
  15709. }, r = this && this.__generator || function(t, e) {
  15710. var n, o, i, a, r = {
  15711. label: 0,
  15712. sent: function() {
  15713. if (1 & i[0]) throw i[1];
  15714. return i[1];
  15715. },
  15716. trys: [],
  15717. ops: []
  15718. };
  15719. return a = {
  15720. next: c(0),
  15721. throw: c(1),
  15722. return: c(2)
  15723. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  15724. return this;
  15725. }), a;
  15726. function c(t) {
  15727. return function(e) {
  15728. return s([ t, e ]);
  15729. };
  15730. }
  15731. function s(a) {
  15732. if (n) throw new TypeError("Generator is already executing.");
  15733. for (;r; ) try {
  15734. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  15735. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  15736. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  15737. switch (a[0]) {
  15738. case 0:
  15739. case 1:
  15740. i = a;
  15741. break;
  15742. case 4:
  15743. r.label++;
  15744. return {
  15745. value: a[1],
  15746. done: !1
  15747. };
  15748. case 5:
  15749. r.label++;
  15750. o = a[1];
  15751. a = [ 0 ];
  15752. continue;
  15753. case 7:
  15754. a = r.ops.pop();
  15755. r.trys.pop();
  15756. continue;
  15757. default:
  15758. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  15759. r = 0;
  15760. continue;
  15761. }
  15762. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  15763. r.label = a[1];
  15764. break;
  15765. }
  15766. if (6 === a[0] && r.label < i[1]) {
  15767. r.label = i[1];
  15768. i = a;
  15769. break;
  15770. }
  15771. if (i && r.label < i[2]) {
  15772. r.label = i[2];
  15773. r.ops.push(a);
  15774. break;
  15775. }
  15776. i[2] && r.ops.pop();
  15777. r.trys.pop();
  15778. continue;
  15779. }
  15780. a = e.call(t, r);
  15781. } catch (t) {
  15782. a = [ 6, t ];
  15783. o = 0;
  15784. } finally {
  15785. n = i = 0;
  15786. }
  15787. if (5 & a[0]) throw a[1];
  15788. return {
  15789. value: a[0] ? a[1] : void 0,
  15790. done: !0
  15791. };
  15792. }
  15793. };
  15794. Object.defineProperty(n, "__esModule", {
  15795. value: !0
  15796. });
  15797. var c = function(t) {
  15798. i(e, t);
  15799. function e() {
  15800. var e = null !== t && t.apply(this, arguments) || this;
  15801. e.init_redeemData = !1;
  15802. e._redeemData = null;
  15803. e.init_btnChange = !1;
  15804. e.showBtn = !0;
  15805. return e;
  15806. }
  15807. Object.defineProperty(e.prototype, "redeemData", {
  15808. get: function() {
  15809. return this._redeemData;
  15810. },
  15811. set: function(t) {
  15812. this._redeemData = t;
  15813. this.init_redeemData = !0;
  15814. this.showBtn = 1 == this.redeemData.code;
  15815. this.init_btnChange = !0;
  15816. },
  15817. enumerable: !1,
  15818. configurable: !0
  15819. });
  15820. e.prototype.init = function() {
  15821. this.redeemGetRedemption();
  15822. };
  15823. e.prototype.redeemExchange = function(t) {
  15824. return a(this, void 0, void 0, function() {
  15825. var e, n;
  15826. return r(this, function(o) {
  15827. switch (o.label) {
  15828. case 0:
  15829. e = {
  15830. code: t
  15831. };
  15832. return [ 4, mk.http.sendData("redemption/exchange", e) ];
  15833. case 1:
  15834. return 0 != (n = o.sent()).errcode ? [ 2 ] : [ 2, n ];
  15835. }
  15836. });
  15837. });
  15838. };
  15839. e.prototype.redeemGetRedemption = function() {
  15840. return a(this, void 0, void 0, function() {
  15841. var t, e;
  15842. return r(this, function(n) {
  15843. switch (n.label) {
  15844. case 0:
  15845. t = {};
  15846. return [ 4, mk.http.sendData("redemption/getRedemption", t) ];
  15847. case 1:
  15848. if (0 != (e = n.sent()).errcode) return [ 2 ];
  15849. this.redeemData = e.data;
  15850. return [ 2, e ];
  15851. }
  15852. });
  15853. });
  15854. };
  15855. e.prototype.redPoint = function() {
  15856. return !1;
  15857. };
  15858. return e;
  15859. }(t("../../../mk/data/Data").Data);
  15860. n.default = c;
  15861. cc._RF.pop();
  15862. }, {
  15863. "../../../mk/data/Data": "Data"
  15864. } ],
  15865. RedeemNode: [ function(t, e, n) {
  15866. "use strict";
  15867. cc._RF.push(e, "040b1TUzGlJj5hHtE/7jGBR", "RedeemNode");
  15868. var o, i = this && this.__extends || (o = function(t, e) {
  15869. return (o = Object.setPrototypeOf || {
  15870. __proto__: []
  15871. } instanceof Array && function(t, e) {
  15872. t.__proto__ = e;
  15873. } || function(t, e) {
  15874. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  15875. })(t, e);
  15876. }, function(t, e) {
  15877. o(t, e);
  15878. function n() {
  15879. this.constructor = t;
  15880. }
  15881. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  15882. }), a = this && this.__decorate || function(t, e, n, o) {
  15883. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  15884. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  15885. return a > 3 && r && Object.defineProperty(e, n, r), r;
  15886. }, r = this && this.__awaiter || function(t, e, n, o) {
  15887. return new (n || (n = Promise))(function(i, a) {
  15888. function r(t) {
  15889. try {
  15890. s(o.next(t));
  15891. } catch (t) {
  15892. a(t);
  15893. }
  15894. }
  15895. function c(t) {
  15896. try {
  15897. s(o.throw(t));
  15898. } catch (t) {
  15899. a(t);
  15900. }
  15901. }
  15902. function s(t) {
  15903. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  15904. t(e);
  15905. })).then(r, c);
  15906. var e;
  15907. }
  15908. s((o = o.apply(t, e || [])).next());
  15909. });
  15910. }, c = this && this.__generator || function(t, e) {
  15911. var n, o, i, a, r = {
  15912. label: 0,
  15913. sent: function() {
  15914. if (1 & i[0]) throw i[1];
  15915. return i[1];
  15916. },
  15917. trys: [],
  15918. ops: []
  15919. };
  15920. return a = {
  15921. next: c(0),
  15922. throw: c(1),
  15923. return: c(2)
  15924. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  15925. return this;
  15926. }), a;
  15927. function c(t) {
  15928. return function(e) {
  15929. return s([ t, e ]);
  15930. };
  15931. }
  15932. function s(a) {
  15933. if (n) throw new TypeError("Generator is already executing.");
  15934. for (;r; ) try {
  15935. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  15936. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  15937. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  15938. switch (a[0]) {
  15939. case 0:
  15940. case 1:
  15941. i = a;
  15942. break;
  15943. case 4:
  15944. r.label++;
  15945. return {
  15946. value: a[1],
  15947. done: !1
  15948. };
  15949. case 5:
  15950. r.label++;
  15951. o = a[1];
  15952. a = [ 0 ];
  15953. continue;
  15954. case 7:
  15955. a = r.ops.pop();
  15956. r.trys.pop();
  15957. continue;
  15958. default:
  15959. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  15960. r = 0;
  15961. continue;
  15962. }
  15963. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  15964. r.label = a[1];
  15965. break;
  15966. }
  15967. if (6 === a[0] && r.label < i[1]) {
  15968. r.label = i[1];
  15969. i = a;
  15970. break;
  15971. }
  15972. if (i && r.label < i[2]) {
  15973. r.label = i[2];
  15974. r.ops.push(a);
  15975. break;
  15976. }
  15977. i[2] && r.ops.pop();
  15978. r.trys.pop();
  15979. continue;
  15980. }
  15981. a = e.call(t, r);
  15982. } catch (t) {
  15983. a = [ 6, t ];
  15984. o = 0;
  15985. } finally {
  15986. n = i = 0;
  15987. }
  15988. if (5 & a[0]) throw a[1];
  15989. return {
  15990. value: a[0] ? a[1] : void 0,
  15991. done: !0
  15992. };
  15993. }
  15994. };
  15995. Object.defineProperty(n, "__esModule", {
  15996. value: !0
  15997. });
  15998. var s = t("../../../mk/system/JsbSystem"), l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
  15999. i(e, t);
  16000. function e() {
  16001. var e = null !== t && t.apply(this, arguments) || this;
  16002. e.lab_title = null;
  16003. e.txtGiftName = null;
  16004. e.videoPre = null;
  16005. e.rds = [];
  16006. e.rd_imgs = [];
  16007. e.rd_txts = [];
  16008. e.inputBox = null;
  16009. e.suc_node = null;
  16010. e.suc_node_panel = null;
  16011. e.suc_rds = [];
  16012. e.suc_rd_imgs = [];
  16013. e.suc_rd_txts = [];
  16014. e.videoNode = null;
  16015. e.rewardData = null;
  16016. e.coolTime = !1;
  16017. return e;
  16018. }
  16019. e.prototype.onEnable = function() {
  16020. gData.redeem.init_redeemData = !0;
  16021. };
  16022. e.prototype.update = function() {
  16023. gData.redeem.init_redeemData && this.InitData();
  16024. };
  16025. e.prototype.lateUpdate = function() {
  16026. gData.redeem.init_redeemData = !1;
  16027. };
  16028. e.prototype.InitData = function() {
  16029. var t = this, e = gData.redeem.redeemData.redemption;
  16030. if (e) {
  16031. this.lab_title.string = e.title;
  16032. this.txtGiftName.string = e.title;
  16033. this.rewardData = e.content;
  16034. for (var n = 0, o = this.rds; n < o.length; n++) o[n].active = !1;
  16035. for (var i = 0, a = this.suc_rds; i < a.length; i++) a[i].active = !1;
  16036. for (var r = function(e) {
  16037. c.rds[e].active = !0;
  16038. c.suc_rds[e].active = !0;
  16039. cc.loader.loadRes("game/texture/coin/" + c.rewardData[e].type, cc.SpriteFrame, function(n, o) {
  16040. n && console.log("img load err:" + JSON.stringify(n));
  16041. t.rd_imgs[e].spriteFrame = o;
  16042. t.suc_rd_imgs[e].spriteFrame = o;
  16043. });
  16044. c.rd_txts[e].string = mk.math.format(c.rewardData[e].count);
  16045. c.suc_rd_txts[e].string = mk.math.format(c.rewardData[e].count);
  16046. }, c = this, s = 0; s < this.rewardData.length; s++) r(s);
  16047. } else mk.ui.closePanel(this.node.name);
  16048. };
  16049. e.prototype.Click_RedeemBtn = function() {
  16050. return r(this, void 0, void 0, function() {
  16051. var t;
  16052. return c(this, function(e) {
  16053. switch (e.label) {
  16054. case 0:
  16055. console.log("---RedeemCode: " + this.inputBox.string);
  16056. return "" == this.inputBox.string ? [ 3, 2 ] : [ 4, gData.redeem.redeemExchange(this.inputBox.string) ];
  16057. case 1:
  16058. if ((t = e.sent()) && 1 == t.data.code) {
  16059. console.log("兑换成功");
  16060. this.suc_node_panel.scale = 0;
  16061. this.suc_node.active = !0;
  16062. cc.tween(this.suc_node_panel).to(.2, {
  16063. scale: 1
  16064. }, {
  16065. easing: "backOut"
  16066. }).start();
  16067. } else mk.tip.pop(t.data.msg);
  16068. return [ 3, 3 ];
  16069. case 2:
  16070. mk.tip.pop("请输入兑换码");
  16071. e.label = 3;
  16072. case 3:
  16073. return [ 2 ];
  16074. }
  16075. });
  16076. });
  16077. };
  16078. e.prototype.Click_TeachBtn = function() {
  16079. return r(this, void 0, void 0, function() {
  16080. return c(this, function() {
  16081. mk.audio.playEffect("button");
  16082. if (this.coolTime) return [ 2 ];
  16083. this.coolTime = !0;
  16084. console.log("clickTeach");
  16085. gData.redCodeData.teachVideoType = 2;
  16086. this.videoNode = cc.instantiate(this.videoPre);
  16087. this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
  16088. this.node.addChild(this.videoNode);
  16089. return [ 2 ];
  16090. });
  16091. });
  16092. };
  16093. e.prototype.onCompleted = function() {
  16094. this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
  16095. this.videoNode.destroy();
  16096. this.coolTime = !1;
  16097. };
  16098. e.prototype.clickCopyOfficial = function() {
  16099. mk.audio.playEffect("button");
  16100. s.default.setClipboard("白羊游戏社");
  16101. };
  16102. e.prototype.Click_GetBtn = function() {
  16103. return r(this, void 0, void 0, function() {
  16104. var t, e, n, o;
  16105. return c(this, function(i) {
  16106. switch (i.label) {
  16107. case 0:
  16108. this.suc_node.active = !1;
  16109. for (t = 0; t < this.rewardData.length; t++) {
  16110. mk.audio.playEffect("rewardClose");
  16111. e = this.rewardData[t];
  16112. n = parseInt(e.type);
  16113. o = parseInt(e.count);
  16114. mk.fly.PlayCoinAnim(n, 5, cc.v2(0, -300));
  16115. switch (n) {
  16116. case l.RewardType.redBag:
  16117. gData.gameData.gameData.redMoney += o;
  16118. break;
  16119. case l.RewardType.pigRmb:
  16120. gData.gameData.gameData.piggyBank += o;
  16121. }
  16122. }
  16123. return [ 4, gData.redeem.redeemGetRedemption() ];
  16124. case 1:
  16125. i.sent();
  16126. return [ 2 ];
  16127. }
  16128. });
  16129. });
  16130. };
  16131. a([ d(cc.Label) ], e.prototype, "lab_title", void 0);
  16132. a([ d(cc.Label) ], e.prototype, "txtGiftName", void 0);
  16133. a([ d(cc.Prefab) ], e.prototype, "videoPre", void 0);
  16134. a([ d(cc.Node) ], e.prototype, "rds", void 0);
  16135. a([ d(cc.Sprite) ], e.prototype, "rd_imgs", void 0);
  16136. a([ d(cc.Label) ], e.prototype, "rd_txts", void 0);
  16137. a([ d(cc.EditBox) ], e.prototype, "inputBox", void 0);
  16138. a([ d(cc.Node) ], e.prototype, "suc_node", void 0);
  16139. a([ d(cc.Node) ], e.prototype, "suc_node_panel", void 0);
  16140. a([ d(cc.Node) ], e.prototype, "suc_rds", void 0);
  16141. a([ d(cc.Sprite) ], e.prototype, "suc_rd_imgs", void 0);
  16142. a([ d(cc.Label) ], e.prototype, "suc_rd_txts", void 0);
  16143. return a([ p ], e);
  16144. }(cc.Component);
  16145. n.default = h;
  16146. cc._RF.pop();
  16147. }, {
  16148. "../../../mk/system/JsbSystem": "JsbSystem",
  16149. "../../data/GameData": "GameData"
  16150. } ],
  16151. RewardData: [ function(t, e, n) {
  16152. "use strict";
  16153. cc._RF.push(e, "28b82uc1lxM/rQfcspoYwyD", "RewardData");
  16154. var o, i = this && this.__extends || (o = function(t, e) {
  16155. return (o = Object.setPrototypeOf || {
  16156. __proto__: []
  16157. } instanceof Array && function(t, e) {
  16158. t.__proto__ = e;
  16159. } || function(t, e) {
  16160. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  16161. })(t, e);
  16162. }, function(t, e) {
  16163. o(t, e);
  16164. function n() {
  16165. this.constructor = t;
  16166. }
  16167. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  16168. });
  16169. Object.defineProperty(n, "__esModule", {
  16170. value: !0
  16171. });
  16172. n.RewardData = void 0;
  16173. var a = t("../../../mk/data/Data"), r = t("../GameData"), c = function(t) {
  16174. i(e, t);
  16175. function e() {
  16176. var e = null !== t && t.apply(this, arguments) || this;
  16177. e.add_redbag_value = 0;
  16178. e._data = [];
  16179. e.subType = 1;
  16180. return e;
  16181. }
  16182. Object.defineProperty(e.prototype, "data", {
  16183. get: function() {
  16184. return this._data;
  16185. },
  16186. set: function(t) {
  16187. this._data = t;
  16188. },
  16189. enumerable: !1,
  16190. configurable: !0
  16191. });
  16192. e.prototype.addReward = function() {
  16193. for (var t = gData.reward.data.length, e = 0; e < t; e++) gData.reward.data[e].rewardType == r.RewardType.redBag ? gData.reward.data[e].rewardNum && (gData.gameData.gameData.redMoney += gData.reward.data[e].rewardNum) : gData.reward.data[e].rewardType == r.RewardType.rmb || gData.reward.data[e].rewardType == r.RewardType.pigRmb && gData.reward.data[e].rewardNum && (gData.gameData.gameData.piggyBank += gData.reward.data[e].rewardNum);
  16194. gData.reward.data = [];
  16195. };
  16196. e.prototype.flyCoinAnim = function() {
  16197. var t = this;
  16198. if (gData.reward.data && gData.reward.data.length) for (var e = gData.reward.data.length, n = 0; n < e; n++) if (gData.reward.data[n].rewardType !== r.RewardType.rmb && 0 != gData.reward.data[n].rewardNum) {
  16199. var o = new cc.Vec2(0, -300);
  16200. mk.fly.PlayCoinAnim(gData.reward.data[n].rewardType, 10, o, "", function() {
  16201. t.addReward();
  16202. });
  16203. }
  16204. };
  16205. return e;
  16206. }(a.Data);
  16207. n.RewardData = c;
  16208. cc._RF.pop();
  16209. }, {
  16210. "../../../mk/data/Data": "Data",
  16211. "../GameData": "GameData"
  16212. } ],
  16213. Reward: [ function(t, e, n) {
  16214. "use strict";
  16215. cc._RF.push(e, "43f3akkA71HA76UhTj/R19X", "Reward");
  16216. var o, i = this && this.__extends || (o = function(t, e) {
  16217. return (o = Object.setPrototypeOf || {
  16218. __proto__: []
  16219. } instanceof Array && function(t, e) {
  16220. t.__proto__ = e;
  16221. } || function(t, e) {
  16222. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  16223. })(t, e);
  16224. }, function(t, e) {
  16225. o(t, e);
  16226. function n() {
  16227. this.constructor = t;
  16228. }
  16229. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  16230. }), a = this && this.__decorate || function(t, e, n, o) {
  16231. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  16232. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  16233. return a > 3 && r && Object.defineProperty(e, n, r), r;
  16234. }, r = this && this.__awaiter || function(t, e, n, o) {
  16235. return new (n || (n = Promise))(function(i, a) {
  16236. function r(t) {
  16237. try {
  16238. s(o.next(t));
  16239. } catch (t) {
  16240. a(t);
  16241. }
  16242. }
  16243. function c(t) {
  16244. try {
  16245. s(o.throw(t));
  16246. } catch (t) {
  16247. a(t);
  16248. }
  16249. }
  16250. function s(t) {
  16251. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  16252. t(e);
  16253. })).then(r, c);
  16254. var e;
  16255. }
  16256. s((o = o.apply(t, e || [])).next());
  16257. });
  16258. }, c = this && this.__generator || function(t, e) {
  16259. var n, o, i, a, r = {
  16260. label: 0,
  16261. sent: function() {
  16262. if (1 & i[0]) throw i[1];
  16263. return i[1];
  16264. },
  16265. trys: [],
  16266. ops: []
  16267. };
  16268. return a = {
  16269. next: c(0),
  16270. throw: c(1),
  16271. return: c(2)
  16272. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  16273. return this;
  16274. }), a;
  16275. function c(t) {
  16276. return function(e) {
  16277. return s([ t, e ]);
  16278. };
  16279. }
  16280. function s(a) {
  16281. if (n) throw new TypeError("Generator is already executing.");
  16282. for (;r; ) try {
  16283. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  16284. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  16285. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  16286. switch (a[0]) {
  16287. case 0:
  16288. case 1:
  16289. i = a;
  16290. break;
  16291. case 4:
  16292. r.label++;
  16293. return {
  16294. value: a[1],
  16295. done: !1
  16296. };
  16297. case 5:
  16298. r.label++;
  16299. o = a[1];
  16300. a = [ 0 ];
  16301. continue;
  16302. case 7:
  16303. a = r.ops.pop();
  16304. r.trys.pop();
  16305. continue;
  16306. default:
  16307. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  16308. r = 0;
  16309. continue;
  16310. }
  16311. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  16312. r.label = a[1];
  16313. break;
  16314. }
  16315. if (6 === a[0] && r.label < i[1]) {
  16316. r.label = i[1];
  16317. i = a;
  16318. break;
  16319. }
  16320. if (i && r.label < i[2]) {
  16321. r.label = i[2];
  16322. r.ops.push(a);
  16323. break;
  16324. }
  16325. i[2] && r.ops.pop();
  16326. r.trys.pop();
  16327. continue;
  16328. }
  16329. a = e.call(t, r);
  16330. } catch (t) {
  16331. a = [ 6, t ];
  16332. o = 0;
  16333. } finally {
  16334. n = i = 0;
  16335. }
  16336. if (5 & a[0]) throw a[1];
  16337. return {
  16338. value: a[0] ? a[1] : void 0,
  16339. done: !0
  16340. };
  16341. }
  16342. };
  16343. Object.defineProperty(n, "__esModule", {
  16344. value: !0
  16345. });
  16346. var s, l = t("../../../before/GamePlay"), u = t("../../data/AdData"), p = t("../../data/GameData"), d = cc._decorator, h = d.ccclass, f = d.property;
  16347. (function(t) {
  16348. t[t.none = 0] = "none";
  16349. t[t.luck = 1] = "luck";
  16350. t[t.mission = 2] = "mission";
  16351. })(s || (s = {}));
  16352. var y = function(t) {
  16353. i(e, t);
  16354. function e() {
  16355. var e = null !== t && t.apply(this, arguments) || this;
  16356. e.lid_type = s.none;
  16357. e.node_luck = null;
  16358. e.node_mission = null;
  16359. e.anim_open_redbag = null;
  16360. e.btn_watch_video = null;
  16361. e.node_coin = null;
  16362. e.lbl_reward_value = null;
  16363. e.hb_star = null;
  16364. e.btn_close = null;
  16365. e.spr_cash_out = null;
  16366. e.lbl_cash_out = null;
  16367. e.lbl_cash = null;
  16368. e.node_cash = null;
  16369. e.cur_stage = s.none;
  16370. return e;
  16371. }
  16372. e.prototype.onLoad = function() {
  16373. this.hb_star.active = !1;
  16374. this.lbl_reward_value.string = "0";
  16375. };
  16376. e.prototype.start = function() {
  16377. mk.ad.showBanner();
  16378. mk.ad.checkShowInterByChance();
  16379. this.initLid();
  16380. this.initCashOutStyle(gData.gameData.gameData.redMoney);
  16381. };
  16382. e.prototype.update = function() {
  16383. gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.gameData.redMoney + gData.reward.add_redbag_value);
  16384. gData.reward.adData && this.watchVideoCall();
  16385. };
  16386. e.prototype.lateUpdate = function() {
  16387. gData.reward.add_redbag_value = 0;
  16388. gData.reward.adData = null;
  16389. };
  16390. e.prototype.initLid = function() {
  16391. if (this.lid_type === s.none) {
  16392. this.node_luck.active = !1;
  16393. this.node_mission.active = !1;
  16394. this.btn_watch_video.node.active = !1;
  16395. this.watchVideoCall();
  16396. } else if (this.lid_type === s.luck) {
  16397. this.node_luck.active = !0;
  16398. this.node_mission.active = !1;
  16399. this.btn_watch_video.node.active = !0;
  16400. this.cur_stage = s.luck;
  16401. mk.audio.playEffect("reward");
  16402. } else if (this.lid_type === s.mission) {
  16403. this.node_luck.active = !1;
  16404. this.node_mission.active = !0;
  16405. this.btn_watch_video.node.active = !0;
  16406. this.cur_stage = s.mission;
  16407. mk.audio.playEffect("reward");
  16408. }
  16409. };
  16410. e.prototype.initCashOutStyle = function(t) {
  16411. void 0 === t && (t = 0);
  16412. var e = gData.redBagCash.cash_bar, n = gData.redBagCash.getItemDataByIndex(e);
  16413. if (n) {
  16414. var o = t > n.type_value ? n.type_value : t;
  16415. this.lbl_cash.string = n.money / 100 + "元";
  16416. this.lbl_cash_out.string = o + "/" + n.type_value;
  16417. var i = o / n.type_value >= 1 ? 1 : o / n.type_value;
  16418. cc.tween(this.spr_cash_out).to(i, {
  16419. fillRange: i
  16420. }).start();
  16421. t >= n.type_value ? this.node_cash.play() : this.node_cash.stop();
  16422. }
  16423. };
  16424. e.prototype.clickWatchVideo = function() {
  16425. return r(this, void 0, void 0, function() {
  16426. var t, e = this;
  16427. return c(this, function(n) {
  16428. switch (n.label) {
  16429. case 0:
  16430. cc.log("看广告请求");
  16431. if (!gData.gameData.gameData.isFirstRedMoney) return [ 3, 2 ];
  16432. gData.gameData.gameData.isFirstRedMoney = 0;
  16433. return [ 4, mk.http.sendData("getFreeRedMoney", {}) ];
  16434. case 1:
  16435. if (0 != (t = n.sent()).errcode) {
  16436. mk.tip.pop(t.errmsg);
  16437. return [ 2 ];
  16438. }
  16439. gData.reward.adData = {};
  16440. gData.reward.adData.videoRedMoney = {};
  16441. gData.reward.adData.videoRedMoney.videoRewardList = [ {
  16442. rewardType: p.RewardType.redBag,
  16443. rewardNum: t.data.freeRedMoney
  16444. } ];
  16445. return [ 2 ];
  16446. case 2:
  16447. this.lid_type === s.mission ? mk.ad.watchAd(function(t) {
  16448. mk.console.log("watchAD:" + t);
  16449. if (t) {
  16450. gData.adData.watchVideo(u.AdFun.settlement);
  16451. e.clickNextMission();
  16452. }
  16453. }) : mk.ad.watchAd(function(t) {
  16454. mk.console.log("watchAD:" + t);
  16455. t && gData.adData.watchVideo(2 === gData.reward.subType ? u.AdFun.checkpoint : u.AdFun.bubble);
  16456. });
  16457. return [ 2 ];
  16458. }
  16459. });
  16460. });
  16461. };
  16462. e.prototype.watchVideoCall = function() {
  16463. return r(this, void 0, void 0, function() {
  16464. var t, e, n, o, i, a;
  16465. return c(this, function(r) {
  16466. switch (r.label) {
  16467. case 0:
  16468. gData.reward.adData && (gData.reward.data = gData.reward.adData.videoRedMoney.videoRewardList);
  16469. if (!gData.reward.data || !gData.reward.data.length) return [ 2 ];
  16470. this.btn_close && (this.btn_close.active = !1);
  16471. mk.audio.playEffect("rewardOpen");
  16472. this.hb_star.active = !0;
  16473. this.hb_star.getComponent(sp.Skeleton).animation = "animation";
  16474. this.hb_star.getComponent(sp.Skeleton).loop = !1;
  16475. this.cur_stage = s.none;
  16476. if ((t = gData.reward.data.length) >= 2) for (e = 0; e < t; e++) if (gData.reward.data[e].rewardType === p.RewardType.redBag) {
  16477. n = gData.reward.data.splice(e, 1);
  16478. gData.reward.data.unshift(n[0]);
  16479. break;
  16480. }
  16481. if (gData.reward.data[0].rewardType !== p.RewardType.redBag) return [ 3, 2 ];
  16482. o = this.node_coin;
  16483. return [ 4, mk.loader.load("game/texture/coin/" + p.RewardType.redBag, cc.SpriteFrame) ];
  16484. case 1:
  16485. o.spriteFrame = r.sent();
  16486. return [ 3, 4 ];
  16487. case 2:
  16488. i = this.node_coin;
  16489. return [ 4, mk.loader.load("game/texture/coin/" + gData.reward.data[0].rewardType, cc.SpriteFrame) ];
  16490. case 3:
  16491. i.spriteFrame = r.sent();
  16492. r.label = 4;
  16493. case 4:
  16494. a = gData.reward.data[0].rewardNum || 0;
  16495. gData.reward.data[0].rewardType === p.RewardType.pigRmb ? this.lbl_reward_value.string = (a / 100).toFixed(2) + "元" : this.lbl_reward_value.string = "" + a;
  16496. this.anim_open_redbag.play();
  16497. this.node_luck.active = !1;
  16498. this.node_mission.active = !1;
  16499. this.btn_watch_video.node.active = !1;
  16500. gData.reward.data[0].rewardType === p.RewardType.redBag && (gData.reward.add_redbag_value = gData.reward.data[0].rewardNum);
  16501. return [ 2 ];
  16502. }
  16503. });
  16504. });
  16505. };
  16506. e.prototype.clickGetReward = function() {
  16507. cc.log("获取奖励:", gData.reward.data);
  16508. gData.reward.flyCoinAnim();
  16509. this.onClickClose();
  16510. 0 == gData.gameData.getProp(p.GameProp.videoTimes) && mk.data.sendXYEvent("guide_receive", "新手引导领取2500红包币");
  16511. };
  16512. e.prototype.clickCashOut = function() {
  16513. gData.reward.addReward();
  16514. mk.ui.closePanel(this.node.name);
  16515. mk.ui.openPanel("module/redBagCash/redBagCash");
  16516. };
  16517. e.prototype.clickNextMission = function() {
  16518. l.default.Inst.nextLevel();
  16519. };
  16520. e.prototype.clickBack = function() {
  16521. l.default.Inst.restart();
  16522. l.default.Inst.node.active = !1;
  16523. };
  16524. e.prototype.onDestroy = function() {
  16525. this.cur_stage === s.none && mk.audio.playEffect("rewardClose");
  16526. };
  16527. e.prototype.onClickClose = function() {
  16528. mk.ad.destoryBanner();
  16529. if (2 == gData.reward.subType) {
  16530. console.log("清除积分啦啦啦啦啦阿拉拉拉啦--------------------------------", l.default.Inst.ifPass);
  16531. gData.gameData.setProp(p.GameProp.curTotalScore, 0);
  16532. l.default.Inst.curProgressScore = 0;
  16533. l.default.Inst.curGetScore = 0;
  16534. l.default.Inst.finalGetScore = 0;
  16535. l.default.Inst.initScore();
  16536. }
  16537. l.default.Inst && l.default.Inst.ifPass ? l.default.Inst.gameCount() : mk.ad.checkShowInterByChance();
  16538. };
  16539. a([ f({
  16540. displayName: "红包类型",
  16541. type: cc.Enum(s),
  16542. tooltip: "none无类型,luck幸运红包,mission通关红包"
  16543. }) ], e.prototype, "lid_type", void 0);
  16544. a([ f({
  16545. displayName: "幸运红包",
  16546. type: cc.Node
  16547. }) ], e.prototype, "node_luck", void 0);
  16548. a([ f({
  16549. displayName: "通关红包",
  16550. type: cc.Node
  16551. }) ], e.prototype, "node_mission", void 0);
  16552. a([ f({
  16553. displayName: "开红包动画",
  16554. type: cc.Animation
  16555. }) ], e.prototype, "anim_open_redbag", void 0);
  16556. a([ f({
  16557. displayName: "按钮看视频",
  16558. type: cc.Button
  16559. }) ], e.prototype, "btn_watch_video", void 0);
  16560. a([ f({
  16561. displayName: "货币图标",
  16562. type: cc.Sprite
  16563. }) ], e.prototype, "node_coin", void 0);
  16564. a([ f({
  16565. displayName: "奖励数量",
  16566. type: cc.Label
  16567. }) ], e.prototype, "lbl_reward_value", void 0);
  16568. a([ f({
  16569. displayName: "星星闪闪效果",
  16570. type: cc.Node
  16571. }) ], e.prototype, "hb_star", void 0);
  16572. a([ f({
  16573. displayName: "关闭按钮",
  16574. type: cc.Node
  16575. }) ], e.prototype, "btn_close", void 0);
  16576. a([ f({
  16577. displayName: "spr提现进度",
  16578. type: cc.Sprite
  16579. }) ], e.prototype, "spr_cash_out", void 0);
  16580. a([ f({
  16581. displayName: "lbl提现进度",
  16582. type: cc.Label
  16583. }) ], e.prototype, "lbl_cash_out", void 0);
  16584. a([ f({
  16585. displayName: "提现金额",
  16586. type: cc.Label
  16587. }) ], e.prototype, "lbl_cash", void 0);
  16588. a([ f({
  16589. displayName: "提现按钮",
  16590. type: cc.Animation
  16591. }) ], e.prototype, "node_cash", void 0);
  16592. return a([ h ], e);
  16593. }(cc.Component);
  16594. n.default = y;
  16595. cc._RF.pop();
  16596. }, {
  16597. "../../../before/GamePlay": "GamePlay",
  16598. "../../data/AdData": "AdData",
  16599. "../../data/GameData": "GameData"
  16600. } ],
  16601. RopeSwung: [ function(t, e, n) {
  16602. "use strict";
  16603. cc._RF.push(e, "93753AIt45HwoqU8o6Vee0w", "RopeSwung");
  16604. var o, i = this && this.__extends || (o = function(t, e) {
  16605. return (o = Object.setPrototypeOf || {
  16606. __proto__: []
  16607. } instanceof Array && function(t, e) {
  16608. t.__proto__ = e;
  16609. } || function(t, e) {
  16610. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  16611. })(t, e);
  16612. }, function(t, e) {
  16613. o(t, e);
  16614. function n() {
  16615. this.constructor = t;
  16616. }
  16617. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  16618. }), a = this && this.__decorate || function(t, e, n, o) {
  16619. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  16620. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  16621. return a > 3 && r && Object.defineProperty(e, n, r), r;
  16622. };
  16623. Object.defineProperty(n, "__esModule", {
  16624. value: !0
  16625. });
  16626. var r = cc._decorator, c = r.ccclass, s = r.property, l = r.executeInEditMode, u = r.playOnFocus, p = function(t) {
  16627. i(e, t);
  16628. function e() {
  16629. var e = null !== t && t.apply(this, arguments) || this;
  16630. e.angle = 15;
  16631. e.time = 1;
  16632. e._edit_play = !1;
  16633. e.edit_playing = !1;
  16634. return e;
  16635. }
  16636. Object.defineProperty(e.prototype, "edit_play", {
  16637. get: function() {
  16638. this._edit_play && !this.edit_playing && this.initShakeSlow();
  16639. this.edit_playing = this._edit_play;
  16640. return this._edit_play;
  16641. },
  16642. set: function(t) {
  16643. this._edit_play = t;
  16644. t || this.stop();
  16645. },
  16646. enumerable: !1,
  16647. configurable: !0
  16648. });
  16649. e.prototype.onLoad = function() {};
  16650. e.prototype.start = function() {
  16651. this.initShakeSlow();
  16652. };
  16653. e.prototype.initShakeSlow = function() {
  16654. var t = this.node, e = cc.tween().to(this.time, {
  16655. angle: {
  16656. value: this.angle,
  16657. easing: "sineOut"
  16658. }
  16659. }), n = cc.tween().to(this.time, {
  16660. angle: {
  16661. value: 0,
  16662. easing: "sineIn"
  16663. }
  16664. }), o = cc.tween().to(this.time, {
  16665. angle: {
  16666. value: -this.angle,
  16667. easing: "sineOut"
  16668. }
  16669. }), i = cc.tween().to(this.time, {
  16670. angle: {
  16671. value: 0,
  16672. easing: "sineIn"
  16673. }
  16674. }), a = cc.tween().sequence(e, n, o, i);
  16675. cc.tween(t).then(a).repeatForever().start();
  16676. };
  16677. e.prototype.stop = function() {
  16678. this.node.stopAllActions();
  16679. };
  16680. a([ s({
  16681. displayName: "摆动角度"
  16682. }) ], e.prototype, "angle", void 0);
  16683. a([ s({
  16684. displayName: "摆动时间",
  16685. tooltip: "摆动1/4距离消耗的时间"
  16686. }) ], e.prototype, "time", void 0);
  16687. a([ s({
  16688. displayName: "编辑器预览"
  16689. }) ], e.prototype, "edit_play", null);
  16690. return a([ c, l(), u() ], e);
  16691. }(cc.Component);
  16692. n.default = p;
  16693. cc._RF.pop();
  16694. }, {} ],
  16695. RotateAround: [ function(t, e, n) {
  16696. "use strict";
  16697. cc._RF.push(e, "74eaeUz5/xGSZ3xJR1/kJQo", "RotateAround");
  16698. var o, i, a = this && this.__extends || (o = function(t, e) {
  16699. return (o = Object.setPrototypeOf || {
  16700. __proto__: []
  16701. } instanceof Array && function(t, e) {
  16702. t.__proto__ = e;
  16703. } || function(t, e) {
  16704. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  16705. })(t, e);
  16706. }, function(t, e) {
  16707. o(t, e);
  16708. function n() {
  16709. this.constructor = t;
  16710. }
  16711. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  16712. }), r = this && this.__decorate || function(t, e, n, o) {
  16713. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  16714. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  16715. return a > 3 && r && Object.defineProperty(e, n, r), r;
  16716. };
  16717. Object.defineProperty(n, "__esModule", {
  16718. value: !0
  16719. });
  16720. n.Axis = void 0;
  16721. (function(t) {
  16722. t[t.positiveX = 0] = "positiveX";
  16723. t[t.positiveY = 1] = "positiveY";
  16724. t[t.negativeX = 2] = "negativeX";
  16725. t[t.negativeY = 3] = "negativeY";
  16726. })(i = n.Axis || (n.Axis = {}));
  16727. var c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus, d = function(t) {
  16728. a(e, t);
  16729. function e() {
  16730. var e = null !== t && t.apply(this, arguments) || this;
  16731. e.target = null;
  16732. e.clockwise = !0;
  16733. e.timePerRound = 10;
  16734. e.faceToTarget = !1;
  16735. e.faceAxis = i.negativeY;
  16736. e.auto_start = !1;
  16737. e._edit_play = !1;
  16738. e.angle = 0;
  16739. e.radius = 0;
  16740. e.isRotating = !1;
  16741. return e;
  16742. }
  16743. Object.defineProperty(e.prototype, "edit_play", {
  16744. get: function() {
  16745. this._edit_play && !this.radius && this.run();
  16746. this.isRotating = this._edit_play;
  16747. return this._edit_play;
  16748. },
  16749. set: function(t) {
  16750. this._edit_play = t;
  16751. },
  16752. enumerable: !1,
  16753. configurable: !0
  16754. });
  16755. e.prototype.start = function() {
  16756. this.auto_start && this.run();
  16757. };
  16758. e.prototype.update = function(t) {
  16759. if (this.isRotating && this.target) {
  16760. var e = Math.PI / 180 * this.angle;
  16761. this.node.x = this.target.x + this.radius * Math.cos(e);
  16762. this.node.y = this.target.y + this.radius * Math.sin(e);
  16763. if (this.faceToTarget) switch (this.faceAxis) {
  16764. case i.positiveX:
  16765. this.node.angle = this.angle + 180;
  16766. break;
  16767. case i.positiveY:
  16768. this.node.angle = this.angle + 90;
  16769. break;
  16770. case i.negativeX:
  16771. this.node.angle = this.angle;
  16772. break;
  16773. case i.negativeY:
  16774. this.node.angle = this.angle - 90;
  16775. }
  16776. var n = t * (360 / this.timePerRound);
  16777. this.clockwise ? this.angle -= n : this.angle += n;
  16778. this.angle >= 360 ? this.angle %= 360 : this.angle <= -360 && (this.angle %= -360);
  16779. }
  16780. };
  16781. e.prototype.run = function(t, e, n, o, i) {
  16782. t && (this.target = t);
  16783. e && (this.clockwise = e);
  16784. n && (this.timePerRound = n);
  16785. o && (this.faceToTarget = o);
  16786. i && (this.faceAxis = i);
  16787. if (!this.target) return cc.log("No target!");
  16788. if (!this.isRotating) {
  16789. this.angle = this.getAngle(this.target.getPosition(), this.node.getPosition());
  16790. this.radius = this.getDistance(this.target.getPosition(), this.node.getPosition());
  16791. this.isRotating = !0;
  16792. }
  16793. };
  16794. e.prototype.stop = function() {
  16795. this.isRotating = !1;
  16796. };
  16797. e.prototype.getAngle = function(t, e) {
  16798. return Math.atan((e.y - t.y) / (e.x - t.x));
  16799. };
  16800. e.prototype.getDistance = function(t, e) {
  16801. return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
  16802. };
  16803. r([ l({
  16804. type: cc.Node,
  16805. tooltip: "围绕旋转的目标"
  16806. }) ], e.prototype, "target", void 0);
  16807. r([ l({
  16808. tooltip: "顺时针旋转"
  16809. }) ], e.prototype, "clockwise", void 0);
  16810. r([ l({
  16811. tooltip: "旋转一圈花费的时间"
  16812. }) ], e.prototype, "timePerRound", void 0);
  16813. r([ l({
  16814. tooltip: "是否始终面向目标节点"
  16815. }) ], e.prototype, "faceToTarget", void 0);
  16816. r([ l({
  16817. type: cc.Enum(i),
  16818. tooltip: "面向目标节点的轴:\n- PositiveX:正 X 轴\n- PositiveY:正 Y 轴\n- NegativeX:负 X 轴\n- NegativeY:负 Y 轴",
  16819. visible: function() {
  16820. return this.faceToTarget;
  16821. }
  16822. }) ], e.prototype, "faceAxis", void 0);
  16823. r([ l({
  16824. tooltip: "自动开始旋转"
  16825. }) ], e.prototype, "auto_start", void 0);
  16826. r([ l({
  16827. displayName: "编辑器预览"
  16828. }) ], e.prototype, "edit_play", null);
  16829. return r([ s, u(), p() ], e);
  16830. }(cc.Component);
  16831. n.default = d;
  16832. cc._RF.pop();
  16833. }, {} ],
  16834. Rule: [ function(t, e, n) {
  16835. "use strict";
  16836. cc._RF.push(e, "3785cT9t0BKM73CkHfOQdMj", "Rule");
  16837. var o, i = this && this.__extends || (o = function(t, e) {
  16838. return (o = Object.setPrototypeOf || {
  16839. __proto__: []
  16840. } instanceof Array && function(t, e) {
  16841. t.__proto__ = e;
  16842. } || function(t, e) {
  16843. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  16844. })(t, e);
  16845. }, function(t, e) {
  16846. o(t, e);
  16847. function n() {
  16848. this.constructor = t;
  16849. }
  16850. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  16851. }), a = this && this.__decorate || function(t, e, n, o) {
  16852. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  16853. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  16854. return a > 3 && r && Object.defineProperty(e, n, r), r;
  16855. };
  16856. Object.defineProperty(n, "__esModule", {
  16857. value: !0
  16858. });
  16859. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  16860. i(e, t);
  16861. function e() {
  16862. var e = null !== t && t.apply(this, arguments) || this;
  16863. e.scrollView = null;
  16864. e.lbl_content = null;
  16865. e.btn_close = null;
  16866. return e;
  16867. }
  16868. e.prototype.onLoad = function() {};
  16869. e.prototype.update = function() {
  16870. gData.setting.init_rule_tyle && this.setContent(gData.setting.rule_type);
  16871. };
  16872. e.prototype.lateUpdate = function() {
  16873. gData.setting.init_rule_tyle = !1;
  16874. };
  16875. e.prototype.setContent = function(t) {
  16876. void 0 === t && (t = 0);
  16877. for (var e = t ? gData.loginData.privacy_data : gData.loginData.rule_data, n = "", o = 0; o < e.length; o++) n += e[o] + "\n";
  16878. this.lbl_content.string = n;
  16879. this.scrollView.scrollToTop();
  16880. };
  16881. a([ s({
  16882. type: cc.ScrollView,
  16883. displayName: "滚动条"
  16884. }) ], e.prototype, "scrollView", void 0);
  16885. a([ s({
  16886. type: cc.Label,
  16887. displayName: "内容"
  16888. }) ], e.prototype, "lbl_content", void 0);
  16889. a([ s({
  16890. type: cc.Button,
  16891. displayName: "关闭"
  16892. }) ], e.prototype, "btn_close", void 0);
  16893. return a([ c ], e);
  16894. }(cc.Component);
  16895. n.default = l;
  16896. cc._RF.pop();
  16897. }, {} ],
  16898. ScoreEnergy: [ function(t, e, n) {
  16899. "use strict";
  16900. cc._RF.push(e, "fd61c/SDq9JW7QhxHiM8Ykg", "ScoreEnergy");
  16901. var o, i = this && this.__extends || (o = function(t, e) {
  16902. return (o = Object.setPrototypeOf || {
  16903. __proto__: []
  16904. } instanceof Array && function(t, e) {
  16905. t.__proto__ = e;
  16906. } || function(t, e) {
  16907. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  16908. })(t, e);
  16909. }, function(t, e) {
  16910. o(t, e);
  16911. function n() {
  16912. this.constructor = t;
  16913. }
  16914. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  16915. }), a = this && this.__decorate || function(t, e, n, o) {
  16916. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  16917. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  16918. return a > 3 && r && Object.defineProperty(e, n, r), r;
  16919. };
  16920. Object.defineProperty(n, "__esModule", {
  16921. value: !0
  16922. });
  16923. var r = t("../../GamePlay"), c = t("../../mgr/PoolMgr"), s = cc._decorator, l = s.ccclass, u = (s.property,
  16924. function(t) {
  16925. i(e, t);
  16926. function e() {
  16927. var e = null !== t && t.apply(this, arguments) || this;
  16928. e.score = 0;
  16929. return e;
  16930. }
  16931. e.prototype.start = function() {};
  16932. e.prototype.update = function() {
  16933. if (r.default.Inst.ifGetPass) {
  16934. c.default.Inst.recyclePoolPrefab(c.NODEPOOLPREFABTYPE.ScoreEnergy, this.node);
  16935. var t = r.default.Inst.curGetScore + this.score;
  16936. r.default.Inst.curGetScore = t;
  16937. }
  16938. };
  16939. e.prototype.init = function(t, e, n) {
  16940. var o = this;
  16941. this.node.getComponent(cc.ParticleSystem).resetSystem();
  16942. this.node.x = t;
  16943. this.node.y = e;
  16944. var i = r.default.Inst.node_progressUI.x, a = r.default.Inst.node_progressUI.y + r.default.Inst.node_redPacketIcon.y;
  16945. r.default.Inst.finalGetScore += n;
  16946. cc.tween(this.node).to(1, {
  16947. x: i,
  16948. y: a
  16949. }, {
  16950. easing: "smooth"
  16951. }).call(function() {
  16952. c.default.Inst.recyclePoolPrefab(c.NODEPOOLPREFABTYPE.ScoreEnergy, o.node);
  16953. if (!r.default.Inst.ifGetPass) {
  16954. var t = r.default.Inst.curGetScore + n;
  16955. r.default.Inst.curGetScore = t;
  16956. }
  16957. }).start();
  16958. };
  16959. return a([ l ], e);
  16960. }(cc.Component));
  16961. n.default = u;
  16962. cc._RF.pop();
  16963. }, {
  16964. "../../GamePlay": "GamePlay",
  16965. "../../mgr/PoolMgr": "PoolMgr"
  16966. } ],
  16967. SelectCellItemBtn: [ function(t, e, n) {
  16968. "use strict";
  16969. cc._RF.push(e, "e8b95pOPehKPZhmoQnbaZAT", "SelectCellItemBtn");
  16970. var o, i = this && this.__extends || (o = function(t, e) {
  16971. return (o = Object.setPrototypeOf || {
  16972. __proto__: []
  16973. } instanceof Array && function(t, e) {
  16974. t.__proto__ = e;
  16975. } || function(t, e) {
  16976. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  16977. })(t, e);
  16978. }, function(t, e) {
  16979. o(t, e);
  16980. function n() {
  16981. this.constructor = t;
  16982. }
  16983. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  16984. }), a = this && this.__decorate || function(t, e, n, o) {
  16985. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  16986. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  16987. return a > 3 && r && Object.defineProperty(e, n, r), r;
  16988. };
  16989. Object.defineProperty(n, "__esModule", {
  16990. value: !0
  16991. });
  16992. var r = t("../../GamePlay"), c = t("../../data/GameConst"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  16993. i(e, t);
  16994. function e() {
  16995. var e = null !== t && t.apply(this, arguments) || this;
  16996. e.spr_icon = null;
  16997. e.type = 0;
  16998. return e;
  16999. }
  17000. e.prototype.start = function() {
  17001. this.node.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
  17002. };
  17003. e.prototype.init = function(t) {
  17004. var e = this;
  17005. this.type = t;
  17006. this.spr_icon.node.width = 70;
  17007. this.spr_icon.node.height = 70;
  17008. mk.loader.load("game/texture/cellItemIcon/" + c.default.iconIndex + "/" + this.type, cc.SpriteFrame).then(function(t) {
  17009. e.spr_icon.spriteFrame = t;
  17010. });
  17011. };
  17012. e.prototype.onClick = function() {
  17013. r.default.Inst.node_changeCellItemUI.active = !1;
  17014. r.default.Inst.changeCellItemType(this.type);
  17015. };
  17016. a([ u(cc.Sprite) ], e.prototype, "spr_icon", void 0);
  17017. return a([ l ], e);
  17018. }(cc.Component);
  17019. n.default = p;
  17020. cc._RF.pop();
  17021. }, {
  17022. "../../GamePlay": "GamePlay",
  17023. "../../data/GameConst": "GameConst"
  17024. } ],
  17025. SelectSceneItem: [ function(t, e, n) {
  17026. "use strict";
  17027. cc._RF.push(e, "9d3b6Lu9dhMg7Y4yEuxQFkw", "SelectSceneItem");
  17028. var o, i = this && this.__extends || (o = function(t, e) {
  17029. return (o = Object.setPrototypeOf || {
  17030. __proto__: []
  17031. } instanceof Array && function(t, e) {
  17032. t.__proto__ = e;
  17033. } || function(t, e) {
  17034. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  17035. })(t, e);
  17036. }, function(t, e) {
  17037. o(t, e);
  17038. function n() {
  17039. this.constructor = t;
  17040. }
  17041. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  17042. }), a = this && this.__decorate || function(t, e, n, o) {
  17043. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  17044. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  17045. return a > 3 && r && Object.defineProperty(e, n, r), r;
  17046. };
  17047. Object.defineProperty(n, "__esModule", {
  17048. value: !0
  17049. });
  17050. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  17051. i(e, t);
  17052. function e() {
  17053. var e = null !== t && t.apply(this, arguments) || this;
  17054. e.spr_selectScene = null;
  17055. e.sceneIndex = null;
  17056. return e;
  17057. }
  17058. e.prototype.start = function() {};
  17059. e.prototype.init = function(t) {
  17060. var e = this;
  17061. void 0 === t && (t = null);
  17062. this.sceneIndex = t;
  17063. mk.loader.load("selectScene/" + this.sceneIndex, cc.SpriteFrame).then(function(t) {
  17064. e.spr_selectScene = t;
  17065. });
  17066. };
  17067. a([ s(cc.Sprite) ], e.prototype, "spr_selectScene", void 0);
  17068. return a([ c ], e);
  17069. }(cc.Component);
  17070. n.default = l;
  17071. cc._RF.pop();
  17072. }, {} ],
  17073. SetGray: [ function(t, e, n) {
  17074. "use strict";
  17075. cc._RF.push(e, "f67a9SEPlBL8rHHpVX6g1ZW", "SetGray");
  17076. var o, i = this && this.__extends || (o = function(t, e) {
  17077. return (o = Object.setPrototypeOf || {
  17078. __proto__: []
  17079. } instanceof Array && function(t, e) {
  17080. t.__proto__ = e;
  17081. } || function(t, e) {
  17082. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  17083. })(t, e);
  17084. }, function(t, e) {
  17085. o(t, e);
  17086. function n() {
  17087. this.constructor = t;
  17088. }
  17089. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  17090. }), a = this && this.__decorate || function(t, e, n, o) {
  17091. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  17092. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  17093. return a > 3 && r && Object.defineProperty(e, n, r), r;
  17094. };
  17095. Object.defineProperty(n, "__esModule", {
  17096. value: !0
  17097. });
  17098. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  17099. i(e, t);
  17100. function e() {
  17101. var e = null !== t && t.apply(this, arguments) || this;
  17102. e.normal = null;
  17103. e.gray = null;
  17104. e.grayState = !1;
  17105. e.lastState = !1;
  17106. e.spArr = null;
  17107. e.btnArr = null;
  17108. e.labArr = null;
  17109. e.labArrC = [];
  17110. e.outLineArr = null;
  17111. e.outLineArrC = [];
  17112. e.labRichArr = null;
  17113. e.labRichArrC = [];
  17114. e.grayColor = new cc.Color(166, 166, 166, 255);
  17115. e.grayOutLineColor = new cc.Color(230, 230, 230, 255);
  17116. e.skeArr = null;
  17117. return e;
  17118. }
  17119. e.prototype.onLoad = function() {
  17120. this.spArr = this.node.getComponentsInChildren(cc.Sprite);
  17121. this.btnArr = this.node.getComponentsInChildren(cc.Button);
  17122. this.labArr = this.node.getComponentsInChildren(cc.Label);
  17123. this.outLineArr = this.node.getComponentsInChildren(cc.LabelOutline);
  17124. this.labRichArr = this.node.getComponentsInChildren(cc.RichText);
  17125. this.skeArr = this.node.getComponentsInChildren(sp.Skeleton);
  17126. this.setGray(this.grayState);
  17127. };
  17128. e.prototype.setGray = function(t) {
  17129. if (this.lastState != t) {
  17130. this.lastState = t;
  17131. if (t) {
  17132. for (var e = this.spArr.length, n = 0; n < e; n++) this.spArr[n].setMaterial(0, this.gray);
  17133. for (var o = this.btnArr.length, i = 0; i < o; i++) {
  17134. this.btnArr[i].enableAutoGrayEffect = !0;
  17135. this.btnArr[i].grayMaterial = this.gray;
  17136. this.btnArr[i].interactable = !1;
  17137. }
  17138. for (var a = this.labArr.length, r = 0; r < a; r++) {
  17139. this.labArrC[r] = this.labArr[r].node.color;
  17140. this.labArr[r].node.color = this.grayColor;
  17141. }
  17142. for (var c = this.outLineArr.length, s = 0; s < c; s++) {
  17143. this.outLineArrC[s] = this.outLineArr[s].color;
  17144. this.outLineArr[s].color = this.grayOutLineColor;
  17145. }
  17146. for (var l = this.labRichArr.length, u = 0; u < l; u++) {
  17147. this.labRichArrC[u] = this.labRichArr[u].node.color;
  17148. this.labRichArr[u].node.color = this.grayColor;
  17149. }
  17150. } else {
  17151. for (e = this.spArr.length, n = 0; n < e; n++) this.spArr[n].setMaterial(0, this.normal);
  17152. for (o = this.btnArr.length, i = 0; i < o; i++) this.btnArr[i].interactable = !0;
  17153. for (a = this.labArr.length, r = 0; r < a; r++) this.labArr[r].node.color = this.labArrC[r];
  17154. for (c = this.outLineArr.length, s = 0; s < c; s++) this.outLineArr[s].color = this.outLineArrC[s];
  17155. for (l = this.labRichArr.length, u = 0; u < l; u++) this.labRichArr[u].node.color = this.labRichArrC[u];
  17156. }
  17157. } else console.log("和上次设置相同");
  17158. };
  17159. a([ s(cc.Material) ], e.prototype, "normal", void 0);
  17160. a([ s(cc.Material) ], e.prototype, "gray", void 0);
  17161. a([ s({
  17162. type: !1,
  17163. displayName: "是否置灰"
  17164. }) ], e.prototype, "grayState", void 0);
  17165. return a([ c ], e);
  17166. }(cc.Component);
  17167. n.default = l;
  17168. cc._RF.pop();
  17169. }, {} ],
  17170. SettingData: [ function(t, e, n) {
  17171. "use strict";
  17172. cc._RF.push(e, "3d0224MBK1EGqKYUAV3jFQF", "SettingData");
  17173. Object.defineProperty(n, "__esModule", {
  17174. value: !0
  17175. });
  17176. n.SettingData = void 0;
  17177. var o = function() {
  17178. function t() {
  17179. this.init_rule_tyle = null;
  17180. this._rule_type = 0;
  17181. }
  17182. Object.defineProperty(t.prototype, "rule_type", {
  17183. get: function() {
  17184. return this._rule_type;
  17185. },
  17186. set: function(t) {
  17187. this._rule_type = t;
  17188. this.init_rule_tyle = !0;
  17189. },
  17190. enumerable: !1,
  17191. configurable: !0
  17192. });
  17193. return t;
  17194. }();
  17195. n.SettingData = o;
  17196. cc._RF.pop();
  17197. }, {} ],
  17198. Setting: [ function(t, e, n) {
  17199. "use strict";
  17200. cc._RF.push(e, "6cec48K3X9GK6QSjqp7IWnc", "Setting");
  17201. var o, i = this && this.__extends || (o = function(t, e) {
  17202. return (o = Object.setPrototypeOf || {
  17203. __proto__: []
  17204. } instanceof Array && function(t, e) {
  17205. t.__proto__ = e;
  17206. } || function(t, e) {
  17207. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  17208. })(t, e);
  17209. }, function(t, e) {
  17210. o(t, e);
  17211. function n() {
  17212. this.constructor = t;
  17213. }
  17214. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  17215. }), a = this && this.__decorate || function(t, e, n, o) {
  17216. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  17217. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  17218. return a > 3 && r && Object.defineProperty(e, n, r), r;
  17219. }, r = this && this.__awaiter || function(t, e, n, o) {
  17220. return new (n || (n = Promise))(function(i, a) {
  17221. function r(t) {
  17222. try {
  17223. s(o.next(t));
  17224. } catch (t) {
  17225. a(t);
  17226. }
  17227. }
  17228. function c(t) {
  17229. try {
  17230. s(o.throw(t));
  17231. } catch (t) {
  17232. a(t);
  17233. }
  17234. }
  17235. function s(t) {
  17236. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  17237. t(e);
  17238. })).then(r, c);
  17239. var e;
  17240. }
  17241. s((o = o.apply(t, e || [])).next());
  17242. });
  17243. }, c = this && this.__generator || function(t, e) {
  17244. var n, o, i, a, r = {
  17245. label: 0,
  17246. sent: function() {
  17247. if (1 & i[0]) throw i[1];
  17248. return i[1];
  17249. },
  17250. trys: [],
  17251. ops: []
  17252. };
  17253. return a = {
  17254. next: c(0),
  17255. throw: c(1),
  17256. return: c(2)
  17257. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  17258. return this;
  17259. }), a;
  17260. function c(t) {
  17261. return function(e) {
  17262. return s([ t, e ]);
  17263. };
  17264. }
  17265. function s(a) {
  17266. if (n) throw new TypeError("Generator is already executing.");
  17267. for (;r; ) try {
  17268. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  17269. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  17270. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  17271. switch (a[0]) {
  17272. case 0:
  17273. case 1:
  17274. i = a;
  17275. break;
  17276. case 4:
  17277. r.label++;
  17278. return {
  17279. value: a[1],
  17280. done: !1
  17281. };
  17282. case 5:
  17283. r.label++;
  17284. o = a[1];
  17285. a = [ 0 ];
  17286. continue;
  17287. case 7:
  17288. a = r.ops.pop();
  17289. r.trys.pop();
  17290. continue;
  17291. default:
  17292. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  17293. r = 0;
  17294. continue;
  17295. }
  17296. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  17297. r.label = a[1];
  17298. break;
  17299. }
  17300. if (6 === a[0] && r.label < i[1]) {
  17301. r.label = i[1];
  17302. i = a;
  17303. break;
  17304. }
  17305. if (i && r.label < i[2]) {
  17306. r.label = i[2];
  17307. r.ops.push(a);
  17308. break;
  17309. }
  17310. i[2] && r.ops.pop();
  17311. r.trys.pop();
  17312. continue;
  17313. }
  17314. a = e.call(t, r);
  17315. } catch (t) {
  17316. a = [ 6, t ];
  17317. o = 0;
  17318. } finally {
  17319. n = i = 0;
  17320. }
  17321. if (5 & a[0]) throw a[1];
  17322. return {
  17323. value: a[0] ? a[1] : void 0,
  17324. done: !0
  17325. };
  17326. }
  17327. };
  17328. Object.defineProperty(n, "__esModule", {
  17329. value: !0
  17330. });
  17331. var s = t("../../../before/util/Util"), l = t("../../../mk/system/JsbSystem"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
  17332. i(e, t);
  17333. function e() {
  17334. var e = null !== t && t.apply(this, arguments) || this;
  17335. e.img_head = null;
  17336. e.lbl_nickname = null;
  17337. e.lbl_id = null;
  17338. e.img_music = null;
  17339. e.img_effect = null;
  17340. e.lbl_version = null;
  17341. e.node_rule = null;
  17342. return e;
  17343. }
  17344. e.prototype.onLoad = function() {
  17345. this.initData();
  17346. };
  17347. e.prototype.start = function() {
  17348. mk.ad.showNative(4);
  17349. };
  17350. e.prototype.initData = function() {
  17351. return r(this, void 0, void 0, function() {
  17352. var t, e, n, o, i;
  17353. return c(this, function(a) {
  17354. switch (a.label) {
  17355. case 0:
  17356. console.log("=== gData.wechatData.unionid", gData.wechatData.unionid);
  17357. console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
  17358. this.lbl_id.string = "ID:" + mk.string.getNewLimitStr(gData.wechatData.unionid, 10);
  17359. this.lbl_nickname.string = gData.wechatData.nickName;
  17360. this.lbl_version.string = gData.appData.appVersion;
  17361. t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
  17362. e = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
  17363. n = this.img_music;
  17364. return [ 4, mk.loader.load(t, cc.SpriteFrame) ];
  17365. case 1:
  17366. n.spriteFrame = a.sent();
  17367. o = this.img_effect;
  17368. return [ 4, mk.loader.load(e, cc.SpriteFrame) ];
  17369. case 2:
  17370. o.spriteFrame = a.sent();
  17371. console.log("=== gData.wechatData.avatar", gData.wechatData.avatar);
  17372. return [ 4, mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null) ];
  17373. case 3:
  17374. i = a.sent();
  17375. this.img_head.spriteFrame = new cc.SpriteFrame(i);
  17376. console.log("=== loadHead:", i);
  17377. return [ 2 ];
  17378. }
  17379. });
  17380. });
  17381. };
  17382. e.prototype.clickCopy = function() {
  17383. mk.audio.playEffect("button");
  17384. l.default.setClipboard(gData.wechatData.unionid);
  17385. mk.tip.pop("复制成功");
  17386. };
  17387. e.prototype.clickMusic = function() {
  17388. return r(this, void 0, void 0, function() {
  17389. var t, e;
  17390. return c(this, function(n) {
  17391. switch (n.label) {
  17392. case 0:
  17393. mk.audio.switchMusicFunc();
  17394. mk.audio.playEffect("button");
  17395. t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
  17396. e = this.img_music;
  17397. return [ 4, mk.loader.load(t, cc.SpriteFrame) ];
  17398. case 1:
  17399. e.spriteFrame = n.sent();
  17400. return [ 2 ];
  17401. }
  17402. });
  17403. });
  17404. };
  17405. e.prototype.clickEffect = function() {
  17406. return r(this, void 0, void 0, function() {
  17407. var t, e;
  17408. return c(this, function(n) {
  17409. switch (n.label) {
  17410. case 0:
  17411. mk.audio.switchEffectFunc();
  17412. mk.audio.playEffect("button");
  17413. t = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
  17414. e = this.img_effect;
  17415. return [ 4, mk.loader.load(t, cc.SpriteFrame) ];
  17416. case 1:
  17417. e.spriteFrame = n.sent();
  17418. return [ 2 ];
  17419. }
  17420. });
  17421. });
  17422. };
  17423. e.prototype.clickUpdate = function() {
  17424. mk.audio.playEffect("button");
  17425. var t = gData.appData.installVersion;
  17426. s.default.versionCompareHandle(gData.appData.appVersion, t) < 0 ? mk.ui.openPanel("module/forceUpdate/forceUpdate") : mk.tip.pop("当前已是最新版本");
  17427. };
  17428. e.prototype.onClickWxAuth = function() {
  17429. if (!gData.loginData.isAuth) {
  17430. mk.ui.closePanel(this.node.name);
  17431. l.default.WxAuth();
  17432. this.onClickClose();
  17433. }
  17434. };
  17435. e.prototype.clickRule = function(t) {
  17436. return r(this, void 0, void 0, function() {
  17437. return c(this, function() {
  17438. gData.setting.rule_type = parseInt(t);
  17439. return [ 2 ];
  17440. });
  17441. });
  17442. };
  17443. e.prototype.update = function() {};
  17444. e.prototype.onDestroy = function() {};
  17445. e.prototype.onClickClose = function() {
  17446. mk.ad.destroyNativeAd();
  17447. mk.ad.checkShowInterByChance();
  17448. };
  17449. a([ d({
  17450. type: cc.Sprite,
  17451. displayName: "头像"
  17452. }) ], e.prototype, "img_head", void 0);
  17453. a([ d({
  17454. type: cc.Label,
  17455. displayName: "昵称"
  17456. }) ], e.prototype, "lbl_nickname", void 0);
  17457. a([ d({
  17458. type: cc.Label,
  17459. displayName: "ID"
  17460. }) ], e.prototype, "lbl_id", void 0);
  17461. a([ d({
  17462. type: cc.Sprite,
  17463. displayName: "音乐开关"
  17464. }) ], e.prototype, "img_music", void 0);
  17465. a([ d({
  17466. type: cc.Sprite,
  17467. displayName: "音效开关"
  17468. }) ], e.prototype, "img_effect", void 0);
  17469. a([ d({
  17470. type: cc.Label,
  17471. displayName: "版本号"
  17472. }) ], e.prototype, "lbl_version", void 0);
  17473. return a([ p ], e);
  17474. }(cc.Component);
  17475. n.default = h;
  17476. cc._RF.pop();
  17477. }, {
  17478. "../../../before/util/Util": "Util",
  17479. "../../../mk/system/JsbSystem": "JsbSystem"
  17480. } ],
  17481. SignData: [ function(t, e, n) {
  17482. "use strict";
  17483. cc._RF.push(e, "b2ee58BiJFGUom3EJKNupVS", "SignData");
  17484. var o, i = this && this.__extends || (o = function(t, e) {
  17485. return (o = Object.setPrototypeOf || {
  17486. __proto__: []
  17487. } instanceof Array && function(t, e) {
  17488. t.__proto__ = e;
  17489. } || function(t, e) {
  17490. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  17491. })(t, e);
  17492. }, function(t, e) {
  17493. o(t, e);
  17494. function n() {
  17495. this.constructor = t;
  17496. }
  17497. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  17498. }), a = this && this.__awaiter || function(t, e, n, o) {
  17499. return new (n || (n = Promise))(function(i, a) {
  17500. function r(t) {
  17501. try {
  17502. s(o.next(t));
  17503. } catch (t) {
  17504. a(t);
  17505. }
  17506. }
  17507. function c(t) {
  17508. try {
  17509. s(o.throw(t));
  17510. } catch (t) {
  17511. a(t);
  17512. }
  17513. }
  17514. function s(t) {
  17515. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  17516. t(e);
  17517. })).then(r, c);
  17518. var e;
  17519. }
  17520. s((o = o.apply(t, e || [])).next());
  17521. });
  17522. }, r = this && this.__generator || function(t, e) {
  17523. var n, o, i, a, r = {
  17524. label: 0,
  17525. sent: function() {
  17526. if (1 & i[0]) throw i[1];
  17527. return i[1];
  17528. },
  17529. trys: [],
  17530. ops: []
  17531. };
  17532. return a = {
  17533. next: c(0),
  17534. throw: c(1),
  17535. return: c(2)
  17536. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  17537. return this;
  17538. }), a;
  17539. function c(t) {
  17540. return function(e) {
  17541. return s([ t, e ]);
  17542. };
  17543. }
  17544. function s(a) {
  17545. if (n) throw new TypeError("Generator is already executing.");
  17546. for (;r; ) try {
  17547. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  17548. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  17549. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  17550. switch (a[0]) {
  17551. case 0:
  17552. case 1:
  17553. i = a;
  17554. break;
  17555. case 4:
  17556. r.label++;
  17557. return {
  17558. value: a[1],
  17559. done: !1
  17560. };
  17561. case 5:
  17562. r.label++;
  17563. o = a[1];
  17564. a = [ 0 ];
  17565. continue;
  17566. case 7:
  17567. a = r.ops.pop();
  17568. r.trys.pop();
  17569. continue;
  17570. default:
  17571. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  17572. r = 0;
  17573. continue;
  17574. }
  17575. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  17576. r.label = a[1];
  17577. break;
  17578. }
  17579. if (6 === a[0] && r.label < i[1]) {
  17580. r.label = i[1];
  17581. i = a;
  17582. break;
  17583. }
  17584. if (i && r.label < i[2]) {
  17585. r.label = i[2];
  17586. r.ops.push(a);
  17587. break;
  17588. }
  17589. i[2] && r.ops.pop();
  17590. r.trys.pop();
  17591. continue;
  17592. }
  17593. a = e.call(t, r);
  17594. } catch (t) {
  17595. a = [ 6, t ];
  17596. o = 0;
  17597. } finally {
  17598. n = i = 0;
  17599. }
  17600. if (5 & a[0]) throw a[1];
  17601. return {
  17602. value: a[0] ? a[1] : void 0,
  17603. done: !0
  17604. };
  17605. }
  17606. };
  17607. Object.defineProperty(n, "__esModule", {
  17608. value: !0
  17609. });
  17610. n.SignData = void 0;
  17611. var c = t("../../../mk/data/Data"), s = t("../GameData"), l = function(t) {
  17612. i(e, t);
  17613. function e() {
  17614. var e = null !== t && t.apply(this, arguments) || this;
  17615. e.init_data = !1;
  17616. e._c_sign = [];
  17617. e.list_data = [];
  17618. return e;
  17619. }
  17620. e.prototype.init = function() {
  17621. if (gData.gameData.configs.SignIn) {
  17622. gData.gameData.configs.SignIn.forEach(function(t) {
  17623. for (var e in t) t[e] = parseInt(t[e]);
  17624. });
  17625. this.c_sign = gData.gameData.configs.SignIn;
  17626. }
  17627. };
  17628. Object.defineProperty(e.prototype, "c_sign", {
  17629. get: function() {
  17630. return this._c_sign;
  17631. },
  17632. set: function(t) {
  17633. this._c_sign = t;
  17634. this.init_data = !0;
  17635. },
  17636. enumerable: !1,
  17637. configurable: !0
  17638. });
  17639. e.prototype.initListData = function() {
  17640. for (var t = [], e = 0; e < 30; ) {
  17641. for (var n = [], o = 0; o < 3; o++) {
  17642. var i = this.c_sign[e];
  17643. n.push(i);
  17644. e++;
  17645. }
  17646. t.push(n);
  17647. }
  17648. this.list_data = t;
  17649. };
  17650. e.prototype.getStateByDay = function(t) {
  17651. return t <= gData.gameData.gameData.signInDay ? s.RewardState.none : 0 == gData.gameData.gameData.isSignInToday && t == gData.gameData.gameData.signInDay + 1 ? s.RewardState.unlock : s.RewardState.lock;
  17652. };
  17653. e.prototype.haveSignDay = function() {
  17654. return !(gData.gameData.gameData.signInDay >= this.c_sign.length);
  17655. };
  17656. e.prototype.signComplete = function() {
  17657. return a(this, void 0, void 0, function() {
  17658. var t, e, n, o;
  17659. return r(this, function(i) {
  17660. switch (i.label) {
  17661. case 0:
  17662. cc.log("签到奖励", gData.sign.adData);
  17663. if ((t = this.c_sign[gData.gameData.gameData.signInDay]).rewardType !== s.RewardType.redBag) return [ 3, 1 ];
  17664. gData.reward.adData = gData.sign.adData;
  17665. mk.ui.openPanel("module/reward/reward");
  17666. return [ 3, 4 ];
  17667. case 1:
  17668. if (t.rewardType !== s.RewardType.rmb) return [ 3, 3 ];
  17669. e = gData.sign.adData;
  17670. return [ 4, mk.http.sendData("readyCash", {}) ];
  17671. case 2:
  17672. if (0 != (n = i.sent()).errcode) {
  17673. 41002 == n.errcode ? mk.tip.pop("提现排队中,多看视频优先提现") : mk.tip.pop(n.errmsg);
  17674. return [ 2 ];
  17675. }
  17676. 0 == n.CashMode || n.CashMode;
  17677. o = Math.round(100 * e.videoRedMoney.videoRewardList[0].rewardNum);
  17678. gData.receiptNotice.receip_rmb = o;
  17679. gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
  17680. mk.ui.openPanel("module/receiptNotice/receiptNotice");
  17681. gData.cashNormal.getRecord();
  17682. return [ 3, 4 ];
  17683. case 3:
  17684. if (t.rewardType === s.RewardType.pigRmb) {
  17685. gData.reward.adData = gData.sign.adData;
  17686. mk.ui.openPanel("module/reward/reward");
  17687. }
  17688. i.label = 4;
  17689. case 4:
  17690. gData.gameData.gameData.signInDay++;
  17691. gData.gameData.gameData.isSignInToday = 1;
  17692. return [ 2 ];
  17693. }
  17694. });
  17695. });
  17696. };
  17697. e.prototype.getItemIndexByCanSign = function() {
  17698. for (var t = 0, e = this.list_data.length, n = 0; n < e; n++) for (var o = this.list_data[n].length, i = 0; i < o; i++) {
  17699. var a = this.getStateByDay(this.list_data[n][i].id);
  17700. if (0 == gData.gameData.gameData.isSignInToday) {
  17701. if (a === s.RewardState.unlock) return n;
  17702. } else if (a === s.RewardState.lock) return n;
  17703. }
  17704. return t;
  17705. };
  17706. e.prototype.redPoint = function() {
  17707. return !gData.gameData.gameData.isSignInToday && this.haveSignDay();
  17708. };
  17709. return e;
  17710. }(c.Data);
  17711. n.SignData = l;
  17712. cc._RF.pop();
  17713. }, {
  17714. "../../../mk/data/Data": "Data",
  17715. "../GameData": "GameData"
  17716. } ],
  17717. SignIconItem: [ function(t, e, n) {
  17718. "use strict";
  17719. cc._RF.push(e, "233bfi4S/FHSYKyekkgMW0Z", "SignIconItem");
  17720. var o, i = this && this.__extends || (o = function(t, e) {
  17721. return (o = Object.setPrototypeOf || {
  17722. __proto__: []
  17723. } instanceof Array && function(t, e) {
  17724. t.__proto__ = e;
  17725. } || function(t, e) {
  17726. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  17727. })(t, e);
  17728. }, function(t, e) {
  17729. o(t, e);
  17730. function n() {
  17731. this.constructor = t;
  17732. }
  17733. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  17734. }), a = this && this.__decorate || function(t, e, n, o) {
  17735. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  17736. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  17737. return a > 3 && r && Object.defineProperty(e, n, r), r;
  17738. }, r = this && this.__awaiter || function(t, e, n, o) {
  17739. return new (n || (n = Promise))(function(i, a) {
  17740. function r(t) {
  17741. try {
  17742. s(o.next(t));
  17743. } catch (t) {
  17744. a(t);
  17745. }
  17746. }
  17747. function c(t) {
  17748. try {
  17749. s(o.throw(t));
  17750. } catch (t) {
  17751. a(t);
  17752. }
  17753. }
  17754. function s(t) {
  17755. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  17756. t(e);
  17757. })).then(r, c);
  17758. var e;
  17759. }
  17760. s((o = o.apply(t, e || [])).next());
  17761. });
  17762. }, c = this && this.__generator || function(t, e) {
  17763. var n, o, i, a, r = {
  17764. label: 0,
  17765. sent: function() {
  17766. if (1 & i[0]) throw i[1];
  17767. return i[1];
  17768. },
  17769. trys: [],
  17770. ops: []
  17771. };
  17772. return a = {
  17773. next: c(0),
  17774. throw: c(1),
  17775. return: c(2)
  17776. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  17777. return this;
  17778. }), a;
  17779. function c(t) {
  17780. return function(e) {
  17781. return s([ t, e ]);
  17782. };
  17783. }
  17784. function s(a) {
  17785. if (n) throw new TypeError("Generator is already executing.");
  17786. for (;r; ) try {
  17787. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  17788. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  17789. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  17790. switch (a[0]) {
  17791. case 0:
  17792. case 1:
  17793. i = a;
  17794. break;
  17795. case 4:
  17796. r.label++;
  17797. return {
  17798. value: a[1],
  17799. done: !1
  17800. };
  17801. case 5:
  17802. r.label++;
  17803. o = a[1];
  17804. a = [ 0 ];
  17805. continue;
  17806. case 7:
  17807. a = r.ops.pop();
  17808. r.trys.pop();
  17809. continue;
  17810. default:
  17811. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  17812. r = 0;
  17813. continue;
  17814. }
  17815. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  17816. r.label = a[1];
  17817. break;
  17818. }
  17819. if (6 === a[0] && r.label < i[1]) {
  17820. r.label = i[1];
  17821. i = a;
  17822. break;
  17823. }
  17824. if (i && r.label < i[2]) {
  17825. r.label = i[2];
  17826. r.ops.push(a);
  17827. break;
  17828. }
  17829. i[2] && r.ops.pop();
  17830. r.trys.pop();
  17831. continue;
  17832. }
  17833. a = e.call(t, r);
  17834. } catch (t) {
  17835. a = [ 6, t ];
  17836. o = 0;
  17837. } finally {
  17838. n = i = 0;
  17839. }
  17840. if (5 & a[0]) throw a[1];
  17841. return {
  17842. value: a[0] ? a[1] : void 0,
  17843. done: !0
  17844. };
  17845. }
  17846. };
  17847. Object.defineProperty(n, "__esModule", {
  17848. value: !0
  17849. });
  17850. var s, l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
  17851. i(e, t);
  17852. function e() {
  17853. var e = null !== t && t.apply(this, arguments) || this;
  17854. e.node_cash = null;
  17855. e.node_redbag = null;
  17856. e.node_money = null;
  17857. e.lbl_day = null;
  17858. e.node_mask = null;
  17859. e.node_gou = null;
  17860. e.icon_data = {
  17861. id: 0,
  17862. rewardType: 0,
  17863. rewardNum: 0,
  17864. loginDay: 0,
  17865. videoNum: 0
  17866. };
  17867. return e;
  17868. }
  17869. e.prototype.setItemData = function(t) {
  17870. return r(this, void 0, void 0, function() {
  17871. return c(this, function(e) {
  17872. switch (e.label) {
  17873. case 0:
  17874. return [ 4, this.initIcon(t) ];
  17875. case 1:
  17876. e.sent();
  17877. return [ 2 ];
  17878. }
  17879. });
  17880. });
  17881. };
  17882. e.prototype.initIcon = function(t) {
  17883. this.icon_data = t;
  17884. if (this.icon_data) {
  17885. this.lbl_day.string = "第" + this.icon_data.id + "天";
  17886. if (this.icon_data.rewardType == l.RewardType.rmb || this.icon_data.rewardType == l.RewardType.pigRmb) {
  17887. this.node_cash.active = !0;
  17888. this.node_redbag.active = !1;
  17889. this.lbl_day.node.getComponent(cc.LabelOutline).color = cc.color(s.cash);
  17890. } else {
  17891. this.node_cash.active = !1;
  17892. this.node_redbag.active = !0;
  17893. this.lbl_day.node.getComponent(cc.LabelOutline).color = cc.color(s.red_bag);
  17894. }
  17895. var e = gData.sign.getStateByDay(this.icon_data.id);
  17896. if (e == l.RewardState.none) {
  17897. this.node_mask.active = !0;
  17898. this.node_gou.active = !0;
  17899. this.node_money.active = !1;
  17900. } else if (e == l.RewardState.unlock) {
  17901. this.node_mask.active = !1;
  17902. this.node_gou.active = !1;
  17903. } else if (e == l.RewardState.lock) {
  17904. this.node_mask.active = !1;
  17905. this.node_gou.active = !1;
  17906. }
  17907. } else this.node.active = !1;
  17908. };
  17909. a([ d({
  17910. displayName: "提现样式",
  17911. type: cc.Node
  17912. }) ], e.prototype, "node_cash", void 0);
  17913. a([ d({
  17914. displayName: "红包样式",
  17915. type: cc.Node
  17916. }) ], e.prototype, "node_redbag", void 0);
  17917. a([ d({
  17918. displayName: "现金提示",
  17919. type: cc.Node
  17920. }) ], e.prototype, "node_money", void 0);
  17921. a([ d({
  17922. displayName: "天数",
  17923. type: cc.Label
  17924. }) ], e.prototype, "lbl_day", void 0);
  17925. a([ d({
  17926. displayName: "蒙版",
  17927. type: cc.Node
  17928. }) ], e.prototype, "node_mask", void 0);
  17929. a([ d({
  17930. displayName: "勾",
  17931. type: cc.Node
  17932. }) ], e.prototype, "node_gou", void 0);
  17933. return a([ p ], e);
  17934. }(cc.Component);
  17935. n.default = h;
  17936. (function(t) {
  17937. t[t.red_bag = "#EB3A0E"] = "red_bag";
  17938. t[t.cash = "#2AB718"] = "cash";
  17939. })(s || (s = {}));
  17940. cc._RF.pop();
  17941. }, {
  17942. "../../data/GameData": "GameData"
  17943. } ],
  17944. SignItem: [ function(t, e, n) {
  17945. "use strict";
  17946. cc._RF.push(e, "64cb2tAChJMy5muSxd7Pi4r", "SignItem");
  17947. var o, i = this && this.__extends || (o = function(t, e) {
  17948. return (o = Object.setPrototypeOf || {
  17949. __proto__: []
  17950. } instanceof Array && function(t, e) {
  17951. t.__proto__ = e;
  17952. } || function(t, e) {
  17953. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  17954. })(t, e);
  17955. }, function(t, e) {
  17956. o(t, e);
  17957. function n() {
  17958. this.constructor = t;
  17959. }
  17960. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  17961. }), a = this && this.__decorate || function(t, e, n, o) {
  17962. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  17963. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  17964. return a > 3 && r && Object.defineProperty(e, n, r), r;
  17965. }, r = this && this.__awaiter || function(t, e, n, o) {
  17966. return new (n || (n = Promise))(function(i, a) {
  17967. function r(t) {
  17968. try {
  17969. s(o.next(t));
  17970. } catch (t) {
  17971. a(t);
  17972. }
  17973. }
  17974. function c(t) {
  17975. try {
  17976. s(o.throw(t));
  17977. } catch (t) {
  17978. a(t);
  17979. }
  17980. }
  17981. function s(t) {
  17982. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  17983. t(e);
  17984. })).then(r, c);
  17985. var e;
  17986. }
  17987. s((o = o.apply(t, e || [])).next());
  17988. });
  17989. }, c = this && this.__generator || function(t, e) {
  17990. var n, o, i, a, r = {
  17991. label: 0,
  17992. sent: function() {
  17993. if (1 & i[0]) throw i[1];
  17994. return i[1];
  17995. },
  17996. trys: [],
  17997. ops: []
  17998. };
  17999. return a = {
  18000. next: c(0),
  18001. throw: c(1),
  18002. return: c(2)
  18003. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  18004. return this;
  18005. }), a;
  18006. function c(t) {
  18007. return function(e) {
  18008. return s([ t, e ]);
  18009. };
  18010. }
  18011. function s(a) {
  18012. if (n) throw new TypeError("Generator is already executing.");
  18013. for (;r; ) try {
  18014. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  18015. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  18016. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  18017. switch (a[0]) {
  18018. case 0:
  18019. case 1:
  18020. i = a;
  18021. break;
  18022. case 4:
  18023. r.label++;
  18024. return {
  18025. value: a[1],
  18026. done: !1
  18027. };
  18028. case 5:
  18029. r.label++;
  18030. o = a[1];
  18031. a = [ 0 ];
  18032. continue;
  18033. case 7:
  18034. a = r.ops.pop();
  18035. r.trys.pop();
  18036. continue;
  18037. default:
  18038. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  18039. r = 0;
  18040. continue;
  18041. }
  18042. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  18043. r.label = a[1];
  18044. break;
  18045. }
  18046. if (6 === a[0] && r.label < i[1]) {
  18047. r.label = i[1];
  18048. i = a;
  18049. break;
  18050. }
  18051. if (i && r.label < i[2]) {
  18052. r.label = i[2];
  18053. r.ops.push(a);
  18054. break;
  18055. }
  18056. i[2] && r.ops.pop();
  18057. r.trys.pop();
  18058. continue;
  18059. }
  18060. a = e.call(t, r);
  18061. } catch (t) {
  18062. a = [ 6, t ];
  18063. o = 0;
  18064. } finally {
  18065. n = i = 0;
  18066. }
  18067. if (5 & a[0]) throw a[1];
  18068. return {
  18069. value: a[0] ? a[1] : void 0,
  18070. done: !0
  18071. };
  18072. }
  18073. };
  18074. Object.defineProperty(n, "__esModule", {
  18075. value: !0
  18076. });
  18077. var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  18078. i(e, t);
  18079. function e() {
  18080. var e = null !== t && t.apply(this, arguments) || this;
  18081. e.sign_icon_pos = [];
  18082. e.pre_icon = null;
  18083. e.arr_icon = [];
  18084. return e;
  18085. }
  18086. e.prototype.onLoad = function() {};
  18087. e.prototype.start = function() {};
  18088. e.prototype.setItemData = function(t) {
  18089. return r(this, void 0, void 0, function() {
  18090. return c(this, function(e) {
  18091. switch (e.label) {
  18092. case 0:
  18093. return [ 4, this.initItem(t) ];
  18094. case 1:
  18095. e.sent();
  18096. return [ 2 ];
  18097. }
  18098. });
  18099. });
  18100. };
  18101. e.prototype.initItem = function(t) {
  18102. for (var e = this.sign_icon_pos.length, n = 0; n < e; n++) {
  18103. var o = t[n], i = this.arr_icon[n];
  18104. if (!i) {
  18105. (i = cc.instantiate(this.pre_icon)).parent = this.node;
  18106. i.setPosition(this.sign_icon_pos[n].getPosition());
  18107. this.arr_icon[n] = i;
  18108. }
  18109. i.getComponent("SignIconItem").setItemData(o);
  18110. }
  18111. };
  18112. a([ u({
  18113. type: cc.Node,
  18114. displayName: "位置组件"
  18115. }) ], e.prototype, "sign_icon_pos", void 0);
  18116. a([ u({
  18117. type: cc.Prefab
  18118. }) ], e.prototype, "pre_icon", void 0);
  18119. return a([ l ], e);
  18120. }(cc.Component);
  18121. n.default = p;
  18122. cc._RF.pop();
  18123. }, {} ],
  18124. Sign: [ function(t, e, n) {
  18125. "use strict";
  18126. cc._RF.push(e, "92c1epESLhJSLrId9Dkn6Wd", "Sign");
  18127. var o, i = this && this.__extends || (o = function(t, e) {
  18128. return (o = Object.setPrototypeOf || {
  18129. __proto__: []
  18130. } instanceof Array && function(t, e) {
  18131. t.__proto__ = e;
  18132. } || function(t, e) {
  18133. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  18134. })(t, e);
  18135. }, function(t, e) {
  18136. o(t, e);
  18137. function n() {
  18138. this.constructor = t;
  18139. }
  18140. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  18141. }), a = this && this.__decorate || function(t, e, n, o) {
  18142. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  18143. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  18144. return a > 3 && r && Object.defineProperty(e, n, r), r;
  18145. };
  18146. Object.defineProperty(n, "__esModule", {
  18147. value: !0
  18148. });
  18149. var r = t("../../../mk/system/JsbSystem"), c = t("../../data/AdData"), s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
  18150. i(e, t);
  18151. function e() {
  18152. var e = null !== t && t.apply(this, arguments) || this;
  18153. e.scroll_view = null;
  18154. e.anim_btn = null;
  18155. e.tableview = null;
  18156. return e;
  18157. }
  18158. e.prototype.onLoad = function() {};
  18159. e.prototype.start = function() {
  18160. mk.ad.showNative(4);
  18161. gData.sign.initListData();
  18162. gData.sign.init_data = !0;
  18163. this.initScollView();
  18164. };
  18165. e.prototype.initScollView = function() {
  18166. var t = this, e = gData.sign.list_data;
  18167. this.scroll_view.node.emit("srollview-init", e);
  18168. this.tableview = this.scroll_view.node.getComponent("TableView");
  18169. var n = gData.sign.getItemIndexByCanSign();
  18170. this.scheduleOnce(function() {
  18171. t.tableview.contentMoveByIndex(n);
  18172. }, .1);
  18173. };
  18174. e.prototype.update = function() {
  18175. gData.sign.init_data ? this.initBtnStyle() : gData.sign.adData && this.getReward();
  18176. };
  18177. e.prototype.lateUpdate = function() {
  18178. gData.sign.adData = null;
  18179. };
  18180. e.prototype.clickReceiveReward = function() {
  18181. mk.audio.playEffect("button");
  18182. if (1 != gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
  18183. var t = gData.gameData.gameData.signInDay;
  18184. if (gData.sign.c_sign[t].rewardType !== s.RewardType.rmb || gData.loginData.isAuth) {
  18185. mk.ad.videoAdType = s.VideoAdType.Sign;
  18186. mk.ad.watchAd(function(e) {
  18187. mk.console.log("watchAD:" + e);
  18188. if (e) {
  18189. gData.adData.watchVideo(c.AdFun.sign);
  18190. gData.sign.c_sign[t].rewardType === s.RewardType.rmb && mk.data.sendDataEvent(s.DataEventId.signWithDrawal, "签到提现成功");
  18191. mk.ad.destroyNativeAd();
  18192. }
  18193. });
  18194. } else r.default.WxAuth();
  18195. }
  18196. };
  18197. e.prototype.getReward = function() {
  18198. gData.sign.signComplete();
  18199. var t = gData.sign.getItemIndexByCanSign();
  18200. this.tableview.resetItemData(t, gData.sign.list_data[t]);
  18201. };
  18202. e.prototype.initBtnStyle = function() {
  18203. if (0 == gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
  18204. this.anim_btn.play();
  18205. this.anim_btn.getComponent(mk.component.setGray).setGray(!1);
  18206. } else {
  18207. this.anim_btn.stop();
  18208. this.anim_btn.node.scale = 1;
  18209. this.anim_btn.getComponent(mk.component.setGray).setGray(!0);
  18210. }
  18211. gData.sign.init_data = !1;
  18212. };
  18213. e.prototype.onClickClose = function() {
  18214. mk.ad.destroyNativeAd();
  18215. mk.ad.checkShowInterByChance();
  18216. };
  18217. a([ p({
  18218. type: cc.ScrollView,
  18219. displayName: "滚动视图"
  18220. }) ], e.prototype, "scroll_view", void 0);
  18221. a([ p({
  18222. type: cc.Animation,
  18223. displayName: "按钮_动画"
  18224. }) ], e.prototype, "anim_btn", void 0);
  18225. return a([ u ], e);
  18226. }(cc.Component);
  18227. n.default = d;
  18228. cc._RF.pop();
  18229. }, {
  18230. "../../../mk/system/JsbSystem": "JsbSystem",
  18231. "../../data/AdData": "AdData",
  18232. "../../data/GameData": "GameData"
  18233. } ],
  18234. SpineEffectPlay: [ function(t, e, n) {
  18235. "use strict";
  18236. cc._RF.push(e, "d2a29T/kkBHZbkhAfjHhUby", "SpineEffectPlay");
  18237. var o, i = this && this.__extends || (o = function(t, e) {
  18238. return (o = Object.setPrototypeOf || {
  18239. __proto__: []
  18240. } instanceof Array && function(t, e) {
  18241. t.__proto__ = e;
  18242. } || function(t, e) {
  18243. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  18244. })(t, e);
  18245. }, function(t, e) {
  18246. o(t, e);
  18247. function n() {
  18248. this.constructor = t;
  18249. }
  18250. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  18251. }), a = this && this.__decorate || function(t, e, n, o) {
  18252. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  18253. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  18254. return a > 3 && r && Object.defineProperty(e, n, r), r;
  18255. };
  18256. Object.defineProperty(n, "__esModule", {
  18257. value: !0
  18258. });
  18259. var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
  18260. i(e, t);
  18261. function e() {
  18262. var e = null !== t && t.apply(this, arguments) || this;
  18263. e.spine = null;
  18264. e.ifLoop = !1;
  18265. e.curAniName = "";
  18266. e.spineAniEndCallBack = null;
  18267. e.nodePoolPrefabType = 0;
  18268. return e;
  18269. }
  18270. e.prototype.start = function() {};
  18271. e.prototype.onEnable = function() {
  18272. var t = this;
  18273. this.spine = this.getComponent(sp.Skeleton);
  18274. if (this.spine) {
  18275. this.spine.setAnimation(0, this.spine.animation, !1);
  18276. this.spine.setCompleteListener(function() {
  18277. t.spineLoopAniComplete();
  18278. });
  18279. } else mk.console.error("SpineEffectPlay 绑定的节点没有spine");
  18280. };
  18281. e.prototype.playSpineAni = function(t, e, n) {
  18282. void 0 === e && (e = !1);
  18283. void 0 === n && (n = null);
  18284. if (t) {
  18285. this.curAniName = t;
  18286. this.spine.setAnimation(0, t, e);
  18287. }
  18288. this.spineAniEndCallBack = n;
  18289. };
  18290. e.prototype.spineLoopAniComplete = function() {
  18291. this.spineAniEndCallBack && this.spineAniEndCallBack();
  18292. this.ifLoop || r.default.Inst.recyclePoolPrefab(this.nodePoolPrefabType, this.node);
  18293. };
  18294. e.prototype.clearLoopAniCompleteCallBack = function() {
  18295. this.spineAniEndCallBack = null;
  18296. };
  18297. a([ l({
  18298. type: cc.Enum(r.NODEPOOLPREFABTYPE),
  18299. serializable: !0
  18300. }) ], e.prototype, "nodePoolPrefabType", void 0);
  18301. return a([ s ], e);
  18302. }(cc.Component);
  18303. n.default = u;
  18304. cc._RF.pop();
  18305. }, {
  18306. "../../mgr/PoolMgr": "PoolMgr"
  18307. } ],
  18308. StorageData: [ function(t, e, n) {
  18309. "use strict";
  18310. cc._RF.push(e, "714352IWzBOCowl9Oqo4DBk", "StorageData");
  18311. Object.defineProperty(n, "__esModule", {
  18312. value: !0
  18313. });
  18314. n.StorageKey = n.StorageData = void 0;
  18315. var o = function() {
  18316. function t() {
  18317. this.storageKey = "mzmNr2s358irB3WQC3AmGaWMFkMx2HQs";
  18318. }
  18319. t.prototype.clear = function() {
  18320. mk.storage.clear();
  18321. };
  18322. return t;
  18323. }();
  18324. n.StorageData = o;
  18325. (function(t) {
  18326. t.loginTicket = "loginTicket";
  18327. t.isFirstIn = "isFirstIn";
  18328. t.uin = "uin";
  18329. t.sessionKey = "sessionKey";
  18330. t.nickname = "nickname";
  18331. t.isAuth = "isAuth";
  18332. t.avatar = "avatar";
  18333. })(n.StorageKey || (n.StorageKey = {}));
  18334. cc._RF.pop();
  18335. }, {} ],
  18336. StorageMgr: [ function(t, e, n) {
  18337. "use strict";
  18338. cc._RF.push(e, "8a8eesMu8pFOKcbgoWv4cHZ", "StorageMgr");
  18339. var o = this && this.__decorate || function(t, e, n, o) {
  18340. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  18341. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  18342. return a > 3 && r && Object.defineProperty(e, n, r), r;
  18343. };
  18344. Object.defineProperty(n, "__esModule", {
  18345. value: !0
  18346. });
  18347. var i = cc._decorator, a = i.ccclass, r = (i.property, function() {
  18348. function t() {}
  18349. e = t;
  18350. Object.defineProperty(t, "Inst", {
  18351. get: function() {
  18352. null == this._instance && (this._instance = new e());
  18353. return this._instance;
  18354. },
  18355. enumerable: !1,
  18356. configurable: !0
  18357. });
  18358. t.prototype.getStorage = function(t) {
  18359. return cc.sys.localStorage.getItem(t) ? JSON.parse(cc.sys.localStorage.getItem(t)) : null;
  18360. };
  18361. t.prototype.setStorage = function(t, e) {
  18362. cc.sys.localStorage.setItem(t, JSON.stringify(e));
  18363. };
  18364. var e;
  18365. t._instance = null;
  18366. return e = o([ a ], t);
  18367. }());
  18368. n.default = r;
  18369. cc._RF.pop();
  18370. }, {} ],
  18371. StorageUtil: [ function(t, e, n) {
  18372. "use strict";
  18373. cc._RF.push(e, "897f9/OTe5ILpCRfzhdVQUi", "StorageUtil");
  18374. Object.defineProperty(n, "__esModule", {
  18375. value: !0
  18376. });
  18377. var o = function() {
  18378. function t() {}
  18379. t.prototype.getStorage = function(t, e) {
  18380. void 0 === e && (e = !0);
  18381. var n = cc.sys.localStorage.getItem(t);
  18382. if (!n) return null;
  18383. try {
  18384. return e ? mk.encrypt.decrypt(n, gData.storageData.storageKey, gData.appData.appId) : JSON.parse(n);
  18385. } catch (t) {
  18386. return n;
  18387. }
  18388. };
  18389. t.prototype.setStorage = function(t, e, n) {
  18390. void 0 === n && (n = !0);
  18391. if (n) {
  18392. e = mk.encrypt.encrypt(e, gData.storageData.storageKey, gData.appData.appId);
  18393. cc.sys.localStorage.setItem(t, e);
  18394. } else cc.sys.localStorage.setItem(t, JSON.stringify(e));
  18395. };
  18396. t.prototype.clear = function() {
  18397. cc.sys.localStorage.clear();
  18398. };
  18399. return t;
  18400. }();
  18401. n.default = o;
  18402. cc._RF.pop();
  18403. }, {} ],
  18404. StringUtil: [ function(t, e, n) {
  18405. "use strict";
  18406. cc._RF.push(e, "4c029tekfZLEKj9xvuITEwf", "StringUtil");
  18407. Object.defineProperty(n, "__esModule", {
  18408. value: !0
  18409. });
  18410. var o = function() {
  18411. function t() {
  18412. this.str_color = {
  18413. red1: "#be2c1d",
  18414. bro1: "#4E301B"
  18415. };
  18416. }
  18417. t.prototype.getTextByStringInData = function(t) {
  18418. for (var e, n, o, i, a, r, c = t, s = 0; s < t.length; ) {
  18419. e = t.indexOf("[", s);
  18420. n = t.indexOf("]", e);
  18421. if (-1 == e || -1 == n) break;
  18422. i = t.slice(e, n + 1);
  18423. r = t.slice(e + 1, e + 5);
  18424. var l = this.str_color[r];
  18425. if (l) {
  18426. o = t.slice(e + 6, n);
  18427. a = this.getColorStringColor(o, l);
  18428. c = c.replace(i, a);
  18429. }
  18430. s = n;
  18431. }
  18432. for (var u, p = 0, d = 0, h = 0; p < c.length; ) {
  18433. d = c.indexOf("{", p);
  18434. h = c.indexOf("}", d);
  18435. if (-1 == d || -1 == h) break;
  18436. u = c.slice(d, h + 1);
  18437. var f = c.slice(d + 1, d + 3), y = u.slice(4, u.length - 1);
  18438. if (y) {
  18439. var g = "<size = " + f + ">" + y + "</color>";
  18440. c = c.replace(u, g);
  18441. }
  18442. p = h;
  18443. }
  18444. return c;
  18445. };
  18446. t.prototype.getColorStringColor = function(t, e) {
  18447. void 0 === t && (t = "#FFFFFF");
  18448. return "<color=" + e + ">" + t + "</color>";
  18449. };
  18450. t.prototype.arabicToChinese = function(t) {
  18451. var e = [ "", "万", "亿", "万亿", "亿亿" ], n = [ "", "十", "百", "千" ], o = [ "零", "一", "二", "三", "四", "五", "六", "七", "八", "九" ], i = 0, a = "", r = "", c = !1, s = function(t) {
  18452. for (var e = "", i = 0, a = !0; t > 0; ) {
  18453. var r = t % 10, c = "";
  18454. if (0 === r) {
  18455. if (!a) {
  18456. a = !0;
  18457. e = o[r] + e;
  18458. }
  18459. } else {
  18460. a = !1;
  18461. (1 !== i || t > 1) && (c = o[r]);
  18462. e = (c += n[i]) + e;
  18463. }
  18464. ++i;
  18465. t = Math.floor(t / 10);
  18466. }
  18467. return e;
  18468. };
  18469. if (0 === t) return o[0];
  18470. for (;t > 0; ) {
  18471. var l = t % 1e4;
  18472. c && (r = o[0] + r);
  18473. a = s(l);
  18474. r = (a += 0 !== l ? e[i] : e[0]) + r;
  18475. c = l < 1e3 && l > 0;
  18476. t = Math.floor(t / 1e4);
  18477. ++i;
  18478. }
  18479. return r;
  18480. };
  18481. t.prototype.getNewLimitStr = function(t, e) {
  18482. var n = t.split(""), o = "";
  18483. e = n.length >= e ? e : n.length;
  18484. for (var i = 0; i < e; i++) o += i == e - 1 ? "..." : n[i];
  18485. return o;
  18486. };
  18487. return t;
  18488. }();
  18489. n.default = o;
  18490. cc._RF.pop();
  18491. }, {} ],
  18492. TabSwitching: [ function(t, e, n) {
  18493. "use strict";
  18494. cc._RF.push(e, "3087dH5gWhCfZNksqAzC+wm", "TabSwitching");
  18495. var o, i = this && this.__extends || (o = function(t, e) {
  18496. return (o = Object.setPrototypeOf || {
  18497. __proto__: []
  18498. } instanceof Array && function(t, e) {
  18499. t.__proto__ = e;
  18500. } || function(t, e) {
  18501. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  18502. })(t, e);
  18503. }, function(t, e) {
  18504. o(t, e);
  18505. function n() {
  18506. this.constructor = t;
  18507. }
  18508. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  18509. }), a = this && this.__decorate || function(t, e, n, o) {
  18510. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  18511. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  18512. return a > 3 && r && Object.defineProperty(e, n, r), r;
  18513. };
  18514. Object.defineProperty(n, "__esModule", {
  18515. value: !0
  18516. });
  18517. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  18518. i(e, t);
  18519. function e() {
  18520. var e = null !== t && t.apply(this, arguments) || this;
  18521. e.arr_btn_tab = [];
  18522. e.tab_count = 0;
  18523. e.func = null;
  18524. return e;
  18525. }
  18526. e.prototype.onLoad = function() {
  18527. this.tab_count = this.arr_btn_tab.length;
  18528. this.initTabState();
  18529. this.initBtnEvent();
  18530. this.node.on("comp-cur-tab", this.curTabType, this);
  18531. this.node.on("comp-cur-click", this.onTabBtnClick, this);
  18532. };
  18533. e.prototype.start = function() {};
  18534. e.prototype.initBtnEvent = function() {
  18535. for (var t = 0; t < this.tab_count; t++) this.arr_btn_tab[t].node.on("click", this.onClockTabCall, this);
  18536. };
  18537. e.prototype.onClockTabCall = function(t, e) {
  18538. this.initTabState();
  18539. var n = t.node;
  18540. n.getChildByName("img_style_1").active = !0;
  18541. n.getChildByName("img_style_2").active = !1;
  18542. this.func && this.func(t, e);
  18543. };
  18544. e.prototype.onTabBtnClick = function(t, e) {
  18545. this.func = t.bind(e);
  18546. };
  18547. e.prototype.initTabState = function() {
  18548. for (var t = 0; t < this.tab_count; t++) {
  18549. this.arr_btn_tab[t].node.getChildByName("img_style_1").active = !1;
  18550. this.arr_btn_tab[t].node.getChildByName("img_style_2").active = !0;
  18551. }
  18552. };
  18553. e.prototype.curTabType = function(t) {
  18554. for (var e = 0; e < this.tab_count; e++) if (e === t) {
  18555. this.onClockTabCall(this.arr_btn_tab[e], e);
  18556. return;
  18557. }
  18558. };
  18559. a([ s({
  18560. type: cc.Button,
  18561. displayName: "页签组",
  18562. tooltip: "按钮target需要有值"
  18563. }) ], e.prototype, "arr_btn_tab", void 0);
  18564. return a([ c ], e);
  18565. }(cc.Component);
  18566. n.default = l;
  18567. cc._RF.pop();
  18568. }, {} ],
  18569. TableView: [ function(t, e, n) {
  18570. "use strict";
  18571. cc._RF.push(e, "9a31drXM+9NCKYkF9D78zlF", "TableView");
  18572. var o, i = this && this.__extends || (o = function(t, e) {
  18573. return (o = Object.setPrototypeOf || {
  18574. __proto__: []
  18575. } instanceof Array && function(t, e) {
  18576. t.__proto__ = e;
  18577. } || function(t, e) {
  18578. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  18579. })(t, e);
  18580. }, function(t, e) {
  18581. o(t, e);
  18582. function n() {
  18583. this.constructor = t;
  18584. }
  18585. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  18586. }), a = this && this.__decorate || function(t, e, n, o) {
  18587. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  18588. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  18589. return a > 3 && r && Object.defineProperty(e, n, r), r;
  18590. };
  18591. Object.defineProperty(n, "__esModule", {
  18592. value: !0
  18593. });
  18594. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  18595. i(e, t);
  18596. function e() {
  18597. var e = null !== t && t.apply(this, arguments) || this;
  18598. e.pre_item = [];
  18599. e.scr_item = [];
  18600. e.itemInterval = 0;
  18601. e.itemData = null;
  18602. e.scrollView = null;
  18603. e.item = null;
  18604. e.content = null;
  18605. e.layerHeight = null;
  18606. e.firstItemIndex = 0;
  18607. e.lastItemIndex = 0;
  18608. e.firstItemData = {};
  18609. e.lastItemData = {};
  18610. e.itemArr = [];
  18611. e.itemNode = [];
  18612. e.itemPosMap = new Map();
  18613. e.initItemData = !0;
  18614. e.count = 0;
  18615. e.itemCanMoveDown = null;
  18616. e.itemCanMoveUp = null;
  18617. e.lastResetItemInfoHeight = null;
  18618. e.lastResetItemIndex = null;
  18619. return e;
  18620. }
  18621. e.prototype.onLoad = function() {
  18622. this.initPro();
  18623. };
  18624. e.prototype.initPro = function() {
  18625. this.scrollView = this.node.getComponent(cc.ScrollView);
  18626. this.content = this.scrollView.content;
  18627. this.item = this.pre_item;
  18628. this.layerHeight = this.node.height;
  18629. for (var t = 0; t < this.item.length; t++) this.itemNode[t] = cc.instantiate(this.item[t]);
  18630. this.node.on("srollview-init", this.init, this);
  18631. this.node.on("srollview-update", this.updateList, this);
  18632. };
  18633. e.prototype.init = function(t, e) {
  18634. void 0 === e && (e = !1);
  18635. if (!t[0]) return !1;
  18636. this.clearItem();
  18637. this.itemData = t;
  18638. this.firstItemIndex = 0;
  18639. this.lastItemIndex = 0;
  18640. this.firstItemData = {};
  18641. this.lastItemData = {};
  18642. this.itemArr = [];
  18643. this.itemPosMap = new Map();
  18644. this.initItemData = !0;
  18645. this.count = 0;
  18646. if (!e) {
  18647. this.initItem();
  18648. this.initItemPos(0);
  18649. this.scrollView.node.on("scrolling", this.callback, this);
  18650. }
  18651. };
  18652. e.prototype.updateList = function(t) {
  18653. this.itemData = t;
  18654. for (var e = this.itemArr.length, n = 0; n < e; n++) if (this.itemData[n]) {
  18655. if (!this.itemArr[n]) {
  18656. var o = 0;
  18657. n > 0 && (o = this.itemArr[n - 1].y - this.itemArr[n - 1].height - this.itemInterval);
  18658. var i = this.addItemNode(n, o);
  18659. this.updateContentHeigh(this.itemArr[n].height - i.y);
  18660. }
  18661. var a = this.itemArr[n].getComponent(this.scr_item[this.itemData[n].pfbType || 0]);
  18662. a && a.setItemData(this.itemData[n], this);
  18663. } else {
  18664. this.itemArr[n].destroy();
  18665. this.itemArr[n] = null;
  18666. }
  18667. };
  18668. e.prototype.initItemPos = function(t) {
  18669. for (var e = this.itemData.length, n = t; n < e; n++) {
  18670. var o = {};
  18671. o.startPos = 0 === n ? 0 : this.itemPosMap.get(n - 1).endPos;
  18672. var i = this.itemData[n].pfbType || 0;
  18673. o.endPos = o.startPos + this.itemNode[i].height + this.itemInterval;
  18674. this.itemPosMap.set(n, o);
  18675. }
  18676. e > 0 && this.updateContentHeigh(this.itemPosMap.get(e - 1).endPos);
  18677. };
  18678. e.prototype.initItem = function() {
  18679. for (var t = 0, e = 0; e < this.itemData.length && !(this.content.height > this.layerHeight && ++t > 2); e++) {
  18680. var n = 0;
  18681. e > 0 && (n = this.itemArr[e - 1].y - this.itemArr[e - 1].height - this.itemInterval);
  18682. var o = this.addItemNode(e, n);
  18683. this.updateContentHeigh(this.itemArr[e].height - o.y);
  18684. }
  18685. };
  18686. e.prototype.addItemNode = function(t, e) {
  18687. var n = this.itemData[t].pfbType || 0, o = cc.instantiate(this.itemNode[n]);
  18688. o.parent = this.content;
  18689. o.pfbType = n;
  18690. o.index = t;
  18691. o.y = 0 === t ? 0 : e;
  18692. o.x = 0;
  18693. var i = o.getComponent(this.scr_item[n]);
  18694. i && i.setItemData(this.itemData[t], this);
  18695. this.itemArr.push(o);
  18696. return o;
  18697. };
  18698. e.prototype.updateContentHeigh = function(t) {
  18699. this.content.height = t > this.layerHeight ? t : this.layerHeight;
  18700. };
  18701. e.prototype.callback = function() {
  18702. if (this.content.height > this.layerHeight) {
  18703. var t = this.scrollView.getScrollOffset().y, e = t + this.layerHeight;
  18704. if (t < 0) return;
  18705. if (this.initItemData) {
  18706. this.initItemData = !1;
  18707. this.updateFirstItemIndex();
  18708. this.itemCanMoveDown = !0;
  18709. this.updateLastItemIndex();
  18710. this.itemCanMoveDown = !1;
  18711. }
  18712. if (t > this.firstItemData.endPos) {
  18713. this.lastItemIndex + 1 < this.itemData.length && this.updateFirstItemIndex();
  18714. this.count++;
  18715. }
  18716. if (e > this.lastItemData.endPos && this.lastItemIndex + 1 < this.itemData.length) {
  18717. this.itemCanMoveDown = !0;
  18718. this.updateLastItemIndex();
  18719. this.itemCanMoveDown = !1;
  18720. }
  18721. if (e < this.lastItemData.startPos) {
  18722. this.updateLastItemIndex();
  18723. this.count--;
  18724. }
  18725. if (t < this.firstItemData.startPos) {
  18726. this.itemCanMoveUp = !0;
  18727. this.updateFirstItemIndex();
  18728. this.itemCanMoveUp = !1;
  18729. }
  18730. }
  18731. };
  18732. e.prototype.updateFirstItemIndex = function() {
  18733. var t = this.firstItemIndex;
  18734. this.itemCanMoveUp && t > this.getItemIndex()[0] && t > 0 && this.itemMoveUp(this.firstItemIndex - 1);
  18735. this.updateItemIndex();
  18736. };
  18737. e.prototype.updateLastItemIndex = function() {
  18738. var t = this.lastItemIndex;
  18739. this.itemCanMoveDown && t < this.getItemIndex()[1] && t + 1 < this.itemData.length && this.itemMoveDown(this.lastItemIndex + 1);
  18740. this.updateItemIndex();
  18741. };
  18742. e.prototype.updateItemIndex = function() {};
  18743. e.prototype.getItemIndex = function() {
  18744. var t = this, e = this.scrollView.getScrollOffset().y, n = e + this.layerHeight, o = [];
  18745. this.itemPosMap.forEach(function(i, a) {
  18746. var r = i.startPos <= e && i.endPos > e, c = (i.startPos >= e && i.endPos, i.startPos <= n && i.endPos > n);
  18747. if (r) {
  18748. t.firstItemData.startPos = i.startPos;
  18749. t.firstItemData.endPos = i.endPos;
  18750. t.firstItemIndex = a;
  18751. o.push(a);
  18752. }
  18753. if (c) {
  18754. t.lastItemData.startPos = i.startPos;
  18755. t.lastItemData.endPos = i.endPos;
  18756. t.lastItemIndex = a;
  18757. o.push(a);
  18758. }
  18759. });
  18760. return o;
  18761. };
  18762. e.prototype.itemMoveUp = function(t) {
  18763. if (!(t < 0 || this.lastItemIndex + 1 < t || t + 1 > this.itemData.length)) {
  18764. this.hasItem(t) || this.itemMove(t, -this.itemPosMap.get(t).startPos);
  18765. t++;
  18766. return this.itemMoveUp(t);
  18767. }
  18768. };
  18769. e.prototype.itemMoveDown = function(t) {
  18770. if (!(t < 0 || this.firstItemIndex - 1 > t || t + 1 > this.itemData.length)) {
  18771. this.hasItem(t) || this.itemMove(t, -this.itemPosMap.get(t).startPos);
  18772. t--;
  18773. return this.itemMoveDown(t);
  18774. }
  18775. };
  18776. e.prototype.hasItem = function(t) {
  18777. for (var e = 0; e < this.itemArr.length; e++) if (this.itemArr[e].index === t) return !0;
  18778. return !1;
  18779. };
  18780. e.prototype.itemMove = function(t, e) {
  18781. for (var n = 0; n < this.itemArr.length; n++) {
  18782. var o = this.itemArr[n].index < this.firstItemIndex - 1, i = this.itemArr[n].index > this.lastItemIndex + 1, a = this.itemArr[n].pfbType === (this.itemData[t].pfbType || 0);
  18783. if (o && a || i && a) {
  18784. this.itemArr[n].index = t;
  18785. this.itemArr[n].y = e;
  18786. var r = this.itemArr[n].getComponent(this.scr_item[this.itemArr[n].pfbType]);
  18787. r && r.setItemData(this.itemData[t], this);
  18788. return;
  18789. }
  18790. }
  18791. this.addItemNode(t, e);
  18792. };
  18793. e.prototype.contentMoveByIndex = function(t) {
  18794. var e = this.itemPosMap.get(t).startPos;
  18795. this.scrollView.scrollToOffset(new cc.Vec2(this.content.x, e), .5);
  18796. };
  18797. e.prototype.getPosIndex = function(t) {
  18798. for (var e = 0, n = this.itemPosMap.entries(); e < n.length; e++) {
  18799. var o = n[e], i = o[0], a = o[1];
  18800. if (a.endPos > t && a.startPos <= t) return i;
  18801. }
  18802. };
  18803. e.prototype.addItem = function(t) {
  18804. this.itemData.push(t);
  18805. this.initItemPos(this.itemData.length - 1);
  18806. var e = this.itemPosMap.get(this.itemData.length - 1).endPos;
  18807. if (e - this.layerHeight > 0) {
  18808. for (var n = e - this.layerHeight, o = this.itemData.length - 1; o >= 0; o--) this.itemPosMap.get(o).endPos > n && this.itemPosMap.get(o).startPos <= n && (this.firstItemIndex = o);
  18809. this.scrollView.scrollToBottom();
  18810. this.lastItemIndex = this.itemData.length - 1;
  18811. var i = this.firstItemIndex - 1 > 0 ? this.firstItemIndex - 1 : 0;
  18812. this.itemMoveUp(i);
  18813. return !0;
  18814. }
  18815. this.firstItemIndex = 0;
  18816. this.lastItemIndex = this.itemData.length - 1;
  18817. this.itemMoveUp(this.firstItemIndex);
  18818. return !1;
  18819. };
  18820. e.prototype.clearItem = function() {
  18821. this.itemData = [];
  18822. this.itemPosMap.clear();
  18823. this.scrollView.scrollToTop();
  18824. this.content.height = 0;
  18825. for (var t in this.itemArr) this.itemArr[t].destroy();
  18826. };
  18827. e.prototype.deleteItem = function(t) {
  18828. this.itemData.splice(t, 1);
  18829. var e = this.itemData.length;
  18830. if (!(e <= 0)) {
  18831. this.initItemPos(e - 1);
  18832. for (var n = 0; n < this.itemArr.length; n++) {
  18833. if (this.itemArr[n].index === t) {
  18834. this.itemArr[n].index = -1;
  18835. this.itemArr[n].y = 3e3;
  18836. }
  18837. if (this.itemArr[n].index > t) {
  18838. var o = this.itemArr[n].index;
  18839. this.itemArr[n].y = -this.itemPosMap.get(o - 1).startPos;
  18840. this.itemArr[n].index = o - 1;
  18841. }
  18842. }
  18843. this.updateContentHeigh(this.itemPosMap.get(this.itemData.length - 1).endPos);
  18844. this.lastItemIndex || this.getItemIndex();
  18845. this.itemMoveUp(this.firstItemIndex);
  18846. }
  18847. };
  18848. e.prototype.resetItemData = function(t, e) {
  18849. for (var n = 0; n < this.itemArr.length; n++) if (this.itemArr[n].index === t) {
  18850. e && (this.itemData[n] = e);
  18851. var o = this.itemArr[n].getComponent(this.scr_item[this.itemArr[n].pfbType]);
  18852. o && o.setItemData(this.itemData[t], this);
  18853. break;
  18854. }
  18855. };
  18856. e.prototype.resetItemSize = function(t, e) {
  18857. var n = function(t, e) {
  18858. for (var n = 0; n < this.itemArr.length; n++) this.itemArr[n].index > t && (this.itemArr[n].y -= e);
  18859. for (var o = 0, i = this.itemPosMap.entries(); o < i.length; o++) {
  18860. var a = i[o], r = a[0], c = a[1];
  18861. r === t && (c.endPos += e);
  18862. if (r > t) {
  18863. c.endPos += e;
  18864. c.startPos += e;
  18865. }
  18866. }
  18867. this.lastResetItemInfoHeight = e;
  18868. this.lastResetItemIndex = t;
  18869. }.bind(this);
  18870. if (null !== this.lastResetItemIndex && this.lastResetItemInfoHeight) if (this.lastResetItemIndex === t) {
  18871. n(this.lastResetItemIndex, -this.lastResetItemInfoHeight);
  18872. this.lastResetItemIndex = null;
  18873. this.lastResetItemInfoHeight = 0;
  18874. } else {
  18875. n(this.lastResetItemIndex, -this.lastResetItemInfoHeight);
  18876. n(t, e);
  18877. } else n(t, e);
  18878. this.itemMoveUp(this.firstItemIndex);
  18879. this.updateContentHeigh(this.itemPosMap.get(this.itemData.length - 1).endPos);
  18880. };
  18881. a([ s({
  18882. displayName: "预制条目",
  18883. tooltip: "脚本必须实现 setItemData 方法用于接收数据!",
  18884. type: [ cc.Prefab ]
  18885. }) ], e.prototype, "pre_item", void 0);
  18886. a([ s({
  18887. displayName: "脚本名",
  18888. tooltip: "脚本必须实现 setItemData 方法用于接收数据!",
  18889. type: [ cc.String ]
  18890. }) ], e.prototype, "scr_item", void 0);
  18891. a([ s({
  18892. displayName: "间距"
  18893. }) ], e.prototype, "itemInterval", void 0);
  18894. return a([ c ], e);
  18895. }(cc.Component);
  18896. n.default = l;
  18897. cc._RF.pop();
  18898. }, {} ],
  18899. TimeUtil: [ function(t, e, n) {
  18900. "use strict";
  18901. cc._RF.push(e, "c10efJfgPlIRqo2IRARi4q9", "TimeUtil");
  18902. Object.defineProperty(n, "__esModule", {
  18903. value: !0
  18904. });
  18905. var o = function() {
  18906. function t() {
  18907. this.offTime = 0;
  18908. }
  18909. t.prototype.setServerTime = function(t) {
  18910. this.offTime = t - Math.ceil(new Date().getTime() / 1e3);
  18911. };
  18912. t.prototype.getServerTime = function() {
  18913. return Math.ceil(new Date().getTime() / 1e3 + this.offTime);
  18914. };
  18915. t.prototype.format = function(t, e) {
  18916. void 0 === e && (e = "h:m:s");
  18917. var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), a = t % 3600 % 60;
  18918. function r(t) {
  18919. var e = t.toString();
  18920. t < 10 && (e = "0" + t);
  18921. return e;
  18922. }
  18923. -1 != e.indexOf("d") ? e = e.replace(/d/g, r(n)) : o += 24 * n;
  18924. -1 != e.indexOf("h") ? e = e.replace(/h/g, r(o)) : i += 60 * o;
  18925. -1 != e.indexOf("m") ? e = e.replace(/m/g, r(i)) : -1 != e.indexOf("h") ? a += 60 * i : a = t;
  18926. -1 != e.indexOf("s") && (e = e.replace(/s/g, r(a)));
  18927. return e;
  18928. };
  18929. t.prototype.formatWithUnit = function(t, e) {
  18930. void 0 === e && (e = "天时分秒");
  18931. var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), a = t % 3600 % 60;
  18932. function r(t, e) {
  18933. var n = t.toString();
  18934. t < 10 && (n = "0" + t);
  18935. return n + e;
  18936. }
  18937. var c = "";
  18938. -1 != e.indexOf("天") ? c += n + "天" : o += 24 * n;
  18939. -1 != e.indexOf("时") ? c += r(o, "时") : i += 60 * o;
  18940. -1 != e.indexOf("分") ? c += r(i, "分") : a += 60 * i;
  18941. -1 != e.indexOf("秒") && (c += r(a, "秒"));
  18942. return c;
  18943. };
  18944. t.prototype.getDayInYear = function(t) {
  18945. var e = new Date(t), n = e.getMonth() + 1, o = e.getFullYear(), i = e.getDate(), a = 0, r = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ], c = [ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
  18946. if (o % 400 == 0 || o % 4 == 0 && o % 100 != 0) {
  18947. for (var s = 0; s < n - 1; s++) a += c[s];
  18948. return a + i;
  18949. }
  18950. for (s = 0; s < n - 1; s++) a += r[s];
  18951. return a + i;
  18952. };
  18953. t.prototype.getSecondsInDay = function(t) {
  18954. return 3600 * t.getHours() + 60 * t.getMinutes() + t.getSeconds();
  18955. };
  18956. t.prototype.getNowDayString = function(t, e) {
  18957. void 0 === e && (e = "-");
  18958. var n = t ? new Date(t) : new Date();
  18959. return n.getFullYear() + e + (n.getMonth() + 1) + e + n.getDate();
  18960. };
  18961. t.prototype.WaitForSeconds = function(t) {
  18962. return new Promise(function(e) {
  18963. setTimeout(function() {
  18964. return e();
  18965. }, 1e3 * t);
  18966. });
  18967. };
  18968. return t;
  18969. }();
  18970. n.default = o;
  18971. cc._RF.pop();
  18972. }, {} ],
  18973. TimerSystem: [ function(t, e, n) {
  18974. "use strict";
  18975. cc._RF.push(e, "70a463CEglFy49OGQWrGdoc", "TimerSystem");
  18976. var o, i = this && this.__extends || (o = function(t, e) {
  18977. return (o = Object.setPrototypeOf || {
  18978. __proto__: []
  18979. } instanceof Array && function(t, e) {
  18980. t.__proto__ = e;
  18981. } || function(t, e) {
  18982. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  18983. })(t, e);
  18984. }, function(t, e) {
  18985. o(t, e);
  18986. function n() {
  18987. this.constructor = t;
  18988. }
  18989. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  18990. });
  18991. Object.defineProperty(n, "__esModule", {
  18992. value: !0
  18993. });
  18994. n.Timer = void 0;
  18995. var a = function(t) {
  18996. i(e, t);
  18997. function e() {
  18998. var e = null !== t && t.apply(this, arguments) || this;
  18999. e.timerArr = [];
  19000. return e;
  19001. }
  19002. e.prototype.startTimer = function() {
  19003. var t = this;
  19004. this.schedule(function() {
  19005. t.runTimer();
  19006. }, 1);
  19007. };
  19008. e.prototype.runTimer = function() {
  19009. for (var t = 0; t < this.timerArr.length; t++) {
  19010. var e = this.timerArr[t], n = e.callBack, o = e.target;
  19011. e.curTime--;
  19012. if (e.curTime <= 0) {
  19013. e.curTime = e.totalTime;
  19014. n.call(o);
  19015. }
  19016. }
  19017. };
  19018. e.prototype.addTimer = function(t, e, n) {
  19019. if (!this.ifHasSameTimer(e, n)) {
  19020. var o = new r();
  19021. o.curTime = t;
  19022. o.totalTime = t;
  19023. o.callBack = e;
  19024. o.target = n;
  19025. this.timerArr.push(o);
  19026. }
  19027. };
  19028. e.prototype.ifHasSameTimer = function(t, e) {
  19029. return !!this.getTimer(t, e);
  19030. };
  19031. e.prototype.getTimer = function(t, e) {
  19032. for (var n = this.timerArr.length - 1; n >= 0; n--) {
  19033. var o = this.timerArr[n];
  19034. if (o.callBack == t && o.target == e) return o;
  19035. }
  19036. return null;
  19037. };
  19038. e.prototype.removeTimer = function(t, e) {
  19039. for (var n = this.timerArr.length - 1; n >= 0; n--) {
  19040. var o = this.timerArr[n];
  19041. if (o.callBack == t && o.target == e) {
  19042. this.timerArr.splice(n, 1);
  19043. return;
  19044. }
  19045. }
  19046. };
  19047. return e;
  19048. }(cc.Component);
  19049. n.default = a;
  19050. var r = function() {
  19051. this.curTime = 0;
  19052. this.totalTime = 0;
  19053. this.callBack = null;
  19054. this.target = null;
  19055. };
  19056. n.Timer = r;
  19057. cc._RF.pop();
  19058. }, {} ],
  19059. TipItemUI: [ function(t, e, n) {
  19060. "use strict";
  19061. cc._RF.push(e, "02682tO1G9JJJVckOx01zuP", "TipItemUI");
  19062. var o, i = this && this.__extends || (o = function(t, e) {
  19063. return (o = Object.setPrototypeOf || {
  19064. __proto__: []
  19065. } instanceof Array && function(t, e) {
  19066. t.__proto__ = e;
  19067. } || function(t, e) {
  19068. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  19069. })(t, e);
  19070. }, function(t, e) {
  19071. o(t, e);
  19072. function n() {
  19073. this.constructor = t;
  19074. }
  19075. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  19076. }), a = this && this.__decorate || function(t, e, n, o) {
  19077. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  19078. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  19079. return a > 3 && r && Object.defineProperty(e, n, r), r;
  19080. };
  19081. Object.defineProperty(n, "__esModule", {
  19082. value: !0
  19083. });
  19084. var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
  19085. i(e, t);
  19086. function e() {
  19087. var e = null !== t && t.apply(this, arguments) || this;
  19088. e.node_bg = null;
  19089. e.label_tip = null;
  19090. return e;
  19091. }
  19092. e.prototype.start = function() {};
  19093. e.prototype.init = function(t) {
  19094. var e = this;
  19095. this.node.y = 320;
  19096. this.node.opacity = 255;
  19097. this.label_tip.string = t;
  19098. cc.tween(this.node).to(.5, {
  19099. y: 420
  19100. }).delay(.5).to(.5, {
  19101. opacity: 0
  19102. }).call(function() {
  19103. r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.TipItemUI, e.node);
  19104. }).start();
  19105. };
  19106. a([ l(cc.Node) ], e.prototype, "node_bg", void 0);
  19107. a([ l(cc.Label) ], e.prototype, "label_tip", void 0);
  19108. return a([ s ], e);
  19109. }(cc.Component);
  19110. n.default = u;
  19111. cc._RF.pop();
  19112. }, {
  19113. "../../mgr/PoolMgr": "PoolMgr"
  19114. } ],
  19115. TipSpriteItemUI: [ function(t, e, n) {
  19116. "use strict";
  19117. cc._RF.push(e, "811eeoHLilJeKK80hcZnI05", "TipSpriteItemUI");
  19118. var o, i = this && this.__extends || (o = function(t, e) {
  19119. return (o = Object.setPrototypeOf || {
  19120. __proto__: []
  19121. } instanceof Array && function(t, e) {
  19122. t.__proto__ = e;
  19123. } || function(t, e) {
  19124. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  19125. })(t, e);
  19126. }, function(t, e) {
  19127. o(t, e);
  19128. function n() {
  19129. this.constructor = t;
  19130. }
  19131. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  19132. }), a = this && this.__decorate || function(t, e, n, o) {
  19133. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  19134. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  19135. return a > 3 && r && Object.defineProperty(e, n, r), r;
  19136. };
  19137. Object.defineProperty(n, "__esModule", {
  19138. value: !0
  19139. });
  19140. var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
  19141. i(e, t);
  19142. function e() {
  19143. var e = null !== t && t.apply(this, arguments) || this;
  19144. e.spr_tipSpr = null;
  19145. return e;
  19146. }
  19147. e.prototype.start = function() {};
  19148. e.prototype.init = function(t) {
  19149. var e = this;
  19150. this.spr_tipSpr.node.active = !1;
  19151. var n = "game/texture/tip/" + t;
  19152. mk.loader.load(n, cc.SpriteFrame).then(function(t) {
  19153. e.spr_tipSpr.spriteFrame = t;
  19154. e.spr_tipSpr.node.active = !0;
  19155. e.move();
  19156. });
  19157. };
  19158. e.prototype.move = function() {
  19159. var t = this;
  19160. this.node.scaleX = this.node.scaleY = 0;
  19161. cc.tween(this.node).to(.5, {
  19162. scale: 1
  19163. }, {
  19164. easing: "backOut"
  19165. }).delay(.5).to(.1, {
  19166. scale: 1.2
  19167. }).to(.2, {
  19168. scale: 0
  19169. }).call(function() {
  19170. r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.TipSpriteItemUI, t.node);
  19171. }).start();
  19172. };
  19173. a([ l(cc.Sprite) ], e.prototype, "spr_tipSpr", void 0);
  19174. return a([ s ], e);
  19175. }(cc.Component);
  19176. n.default = u;
  19177. cc._RF.pop();
  19178. }, {
  19179. "../../mgr/PoolMgr": "PoolMgr"
  19180. } ],
  19181. TipSystem: [ function(t, e, n) {
  19182. "use strict";
  19183. cc._RF.push(e, "5b808c7i9JMAJCR/OQTRrlG", "TipSystem");
  19184. var o, i = this && this.__extends || (o = function(t, e) {
  19185. return (o = Object.setPrototypeOf || {
  19186. __proto__: []
  19187. } instanceof Array && function(t, e) {
  19188. t.__proto__ = e;
  19189. } || function(t, e) {
  19190. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  19191. })(t, e);
  19192. }, function(t, e) {
  19193. o(t, e);
  19194. function n() {
  19195. this.constructor = t;
  19196. }
  19197. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  19198. }), a = this && this.__decorate || function(t, e, n, o) {
  19199. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  19200. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  19201. return a > 3 && r && Object.defineProperty(e, n, r), r;
  19202. }, r = this && this.__awaiter || function(t, e, n, o) {
  19203. return new (n || (n = Promise))(function(i, a) {
  19204. function r(t) {
  19205. try {
  19206. s(o.next(t));
  19207. } catch (t) {
  19208. a(t);
  19209. }
  19210. }
  19211. function c(t) {
  19212. try {
  19213. s(o.throw(t));
  19214. } catch (t) {
  19215. a(t);
  19216. }
  19217. }
  19218. function s(t) {
  19219. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  19220. t(e);
  19221. })).then(r, c);
  19222. var e;
  19223. }
  19224. s((o = o.apply(t, e || [])).next());
  19225. });
  19226. }, c = this && this.__generator || function(t, e) {
  19227. var n, o, i, a, r = {
  19228. label: 0,
  19229. sent: function() {
  19230. if (1 & i[0]) throw i[1];
  19231. return i[1];
  19232. },
  19233. trys: [],
  19234. ops: []
  19235. };
  19236. return a = {
  19237. next: c(0),
  19238. throw: c(1),
  19239. return: c(2)
  19240. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  19241. return this;
  19242. }), a;
  19243. function c(t) {
  19244. return function(e) {
  19245. return s([ t, e ]);
  19246. };
  19247. }
  19248. function s(a) {
  19249. if (n) throw new TypeError("Generator is already executing.");
  19250. for (;r; ) try {
  19251. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  19252. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  19253. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  19254. switch (a[0]) {
  19255. case 0:
  19256. case 1:
  19257. i = a;
  19258. break;
  19259. case 4:
  19260. r.label++;
  19261. return {
  19262. value: a[1],
  19263. done: !1
  19264. };
  19265. case 5:
  19266. r.label++;
  19267. o = a[1];
  19268. a = [ 0 ];
  19269. continue;
  19270. case 7:
  19271. a = r.ops.pop();
  19272. r.trys.pop();
  19273. continue;
  19274. default:
  19275. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  19276. r = 0;
  19277. continue;
  19278. }
  19279. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  19280. r.label = a[1];
  19281. break;
  19282. }
  19283. if (6 === a[0] && r.label < i[1]) {
  19284. r.label = i[1];
  19285. i = a;
  19286. break;
  19287. }
  19288. if (i && r.label < i[2]) {
  19289. r.label = i[2];
  19290. r.ops.push(a);
  19291. break;
  19292. }
  19293. i[2] && r.ops.pop();
  19294. r.trys.pop();
  19295. continue;
  19296. }
  19297. a = e.call(t, r);
  19298. } catch (t) {
  19299. a = [ 6, t ];
  19300. o = 0;
  19301. } finally {
  19302. n = i = 0;
  19303. }
  19304. if (5 & a[0]) throw a[1];
  19305. return {
  19306. value: a[0] ? a[1] : void 0,
  19307. done: !0
  19308. };
  19309. }
  19310. };
  19311. Object.defineProperty(n, "__esModule", {
  19312. value: !0
  19313. });
  19314. var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  19315. i(e, t);
  19316. function e() {
  19317. var e = null !== t && t.apply(this, arguments) || this;
  19318. e.tween_time = 1;
  19319. e.src_x = 0;
  19320. e.src_y = 0;
  19321. e.tar_x = 0;
  19322. e.tar_y = 200;
  19323. e.bg_opacity = 40;
  19324. e.bg_color = new cc.Color(200, 200, 200);
  19325. e.tip_color = new cc.Color(255, 255, 255);
  19326. e.tip_size = 40;
  19327. return e;
  19328. }
  19329. e.prototype.onLoad = function() {
  19330. mk.tip = this;
  19331. };
  19332. e.prototype.start = function() {};
  19333. e.prototype.pop = function(t, e) {
  19334. void 0 === e && (e = 0);
  19335. return r(this, void 0, void 0, function() {
  19336. var n, o, i, a;
  19337. return c(this, function(r) {
  19338. switch (r.label) {
  19339. case 0:
  19340. return [ 4, mk.pool.getPrefab("game/prefab/tips") ];
  19341. case 1:
  19342. n = r.sent();
  19343. o = n.getChildByName("bg");
  19344. i = n.getChildByName("lbl");
  19345. (a = i.getComponent(cc.Label)).fontSize = this.tip_size;
  19346. a.string = t;
  19347. o.width = i.width + 20 < 200 ? 200 : i.width + 20;
  19348. n.width = o.width;
  19349. o.height = i.height + 2;
  19350. n.parent = this.node;
  19351. n.x = this.src_x;
  19352. n.y = this.src_y;
  19353. if (0 == e) cc.tween(n).to(this.tween_time, {
  19354. x: this.tar_x,
  19355. y: this.tar_y
  19356. }).call(function() {
  19357. mk.pool.return("tips", n);
  19358. }, this).start(); else {
  19359. this.tween_time = 1;
  19360. n.y = 400;
  19361. this.tar_y = 520;
  19362. cc.tween(n).to(this.tween_time, {
  19363. x: this.tar_x,
  19364. y: this.tar_y
  19365. }).delay(2).call(function() {
  19366. mk.pool.return("tips", n);
  19367. }, this).start();
  19368. }
  19369. return [ 2 ];
  19370. }
  19371. });
  19372. });
  19373. };
  19374. a([ u({
  19375. type: cc.Integer,
  19376. displayName: "飘动时间"
  19377. }) ], e.prototype, "tween_time", void 0);
  19378. a([ u({
  19379. type: cc.Integer,
  19380. displayName: "开始坐标x"
  19381. }) ], e.prototype, "src_x", void 0);
  19382. a([ u({
  19383. type: cc.Integer,
  19384. displayName: "开始坐标y"
  19385. }) ], e.prototype, "src_y", void 0);
  19386. a([ u({
  19387. type: cc.Integer,
  19388. displayName: "目标坐标x"
  19389. }) ], e.prototype, "tar_x", void 0);
  19390. a([ u({
  19391. type: cc.Integer,
  19392. displayName: "目标坐标y"
  19393. }) ], e.prototype, "tar_y", void 0);
  19394. a([ u({
  19395. type: cc.Integer,
  19396. displayName: "背景透明度"
  19397. }) ], e.prototype, "bg_opacity", void 0);
  19398. a([ u({
  19399. displayName: "背景颜色"
  19400. }) ], e.prototype, "bg_color", void 0);
  19401. a([ u({
  19402. displayName: "文本颜色"
  19403. }) ], e.prototype, "tip_color", void 0);
  19404. a([ u({
  19405. type: cc.Integer,
  19406. displayName: "文本字体"
  19407. }) ], e.prototype, "tip_size", void 0);
  19408. return a([ l ], e);
  19409. }(cc.Component);
  19410. n.default = p;
  19411. cc._RF.pop();
  19412. }, {} ],
  19413. TouchHelper: [ function(t, e, n) {
  19414. "use strict";
  19415. cc._RF.push(e, "207f5IvRwZGGbOudGF4bfk4", "TouchHelper");
  19416. var o, i = this && this.__extends || (o = function(t, e) {
  19417. return (o = Object.setPrototypeOf || {
  19418. __proto__: []
  19419. } instanceof Array && function(t, e) {
  19420. t.__proto__ = e;
  19421. } || function(t, e) {
  19422. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  19423. })(t, e);
  19424. }, function(t, e) {
  19425. o(t, e);
  19426. function n() {
  19427. this.constructor = t;
  19428. }
  19429. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  19430. }), a = this && this.__decorate || function(t, e, n, o) {
  19431. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  19432. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  19433. return a > 3 && r && Object.defineProperty(e, n, r), r;
  19434. };
  19435. Object.defineProperty(n, "__esModule", {
  19436. value: !0
  19437. });
  19438. n.TouchHelper = void 0;
  19439. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  19440. i(e, t);
  19441. function e() {
  19442. var e = null !== t && t.apply(this, arguments) || this;
  19443. e.canTouch = !0;
  19444. e.onInPolygon = new cc.Component.EventHandler();
  19445. e.onOutPolygon = new cc.Component.EventHandler();
  19446. e.onTouchTap = new cc.Component.EventHandler();
  19447. e.needPolygon = !1;
  19448. e.points = [];
  19449. e.isMoved = !1;
  19450. return e;
  19451. }
  19452. e.prototype.start = function() {
  19453. this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
  19454. this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel, this);
  19455. this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
  19456. };
  19457. e.prototype.onTouchEnd = function(t) {
  19458. if (this.canTouch && this.needPolygon && this.points.length >= 3) {
  19459. var e = t.getLocation(), n = this.node.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y)), o = this.pointInPoly(n, this.points);
  19460. this.isMoved || (o ? this.canTouch && this.onInPolygon && this.onInPolygon.emit([]) : this.canTouch && this.onOutPolygon && this.onOutPolygon.emit([]));
  19461. }
  19462. this.canTouch && (this.isMoved || this.canTouch && this.onTouchTap && this.onTouchTap.emit([]));
  19463. this.isMoved = !1;
  19464. };
  19465. e.prototype.onTouchMove = function(t) {
  19466. t.getTouches().length > 1 ? this.isMoved = !0 : this.isMoved = cc.Vec2.distance(t.getStartLocation(), t.getLocation()) > 20;
  19467. };
  19468. e.prototype.onTouchCancel = function() {
  19469. this.isMoved = !1;
  19470. };
  19471. e.prototype.pointInPoly = function(t, e) {
  19472. for (var n = !1, o = -1, i = e.length, a = i - 1; ++o < i; a = o) (e[o].y <= t.y && t.y < e[a].y || e[a].y <= t.y && t.y < e[o].y) && t.x < (e[a].x - e[o].x) * (t.y - e[o].y) / (e[a].y - e[o].y) + e[o].x && (n = !n);
  19473. return n;
  19474. };
  19475. a([ s({
  19476. tooltip: "是否可以点击"
  19477. }) ], e.prototype, "canTouch", void 0);
  19478. a([ s({
  19479. tooltip: "在多边形范围内产生点击",
  19480. type: cc.Component.EventHandler
  19481. }) ], e.prototype, "onInPolygon", void 0);
  19482. a([ s({
  19483. tooltip: "在多边形范围外产生点击",
  19484. type: cc.Component.EventHandler
  19485. }) ], e.prototype, "onOutPolygon", void 0);
  19486. a([ s({
  19487. tooltip: "在节点范围内产生点击",
  19488. type: cc.Component.EventHandler
  19489. }) ], e.prototype, "onTouchTap", void 0);
  19490. a([ s({
  19491. tooltip: "是否与需要多边形检查"
  19492. }) ], e.prototype, "needPolygon", void 0);
  19493. a([ s({
  19494. type: [ cc.Vec2 ],
  19495. tooltip: "多边形定点位置信息(局部坐标,至少3个点)"
  19496. }) ], e.prototype, "points", void 0);
  19497. return a([ c ], e);
  19498. }(cc.Component);
  19499. n.TouchHelper = l;
  19500. cc._RF.pop();
  19501. }, {} ],
  19502. TurnableData: [ function(t, e, n) {
  19503. "use strict";
  19504. cc._RF.push(e, "43e37VirRBM1p39LUEjYTSH", "TurnableData");
  19505. var o, i = this && this.__extends || (o = function(t, e) {
  19506. return (o = Object.setPrototypeOf || {
  19507. __proto__: []
  19508. } instanceof Array && function(t, e) {
  19509. t.__proto__ = e;
  19510. } || function(t, e) {
  19511. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  19512. })(t, e);
  19513. }, function(t, e) {
  19514. o(t, e);
  19515. function n() {
  19516. this.constructor = t;
  19517. }
  19518. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  19519. }), a = this && this.__awaiter || function(t, e, n, o) {
  19520. return new (n || (n = Promise))(function(i, a) {
  19521. function r(t) {
  19522. try {
  19523. s(o.next(t));
  19524. } catch (t) {
  19525. a(t);
  19526. }
  19527. }
  19528. function c(t) {
  19529. try {
  19530. s(o.throw(t));
  19531. } catch (t) {
  19532. a(t);
  19533. }
  19534. }
  19535. function s(t) {
  19536. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  19537. t(e);
  19538. })).then(r, c);
  19539. var e;
  19540. }
  19541. s((o = o.apply(t, e || [])).next());
  19542. });
  19543. }, r = this && this.__generator || function(t, e) {
  19544. var n, o, i, a, r = {
  19545. label: 0,
  19546. sent: function() {
  19547. if (1 & i[0]) throw i[1];
  19548. return i[1];
  19549. },
  19550. trys: [],
  19551. ops: []
  19552. };
  19553. return a = {
  19554. next: c(0),
  19555. throw: c(1),
  19556. return: c(2)
  19557. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  19558. return this;
  19559. }), a;
  19560. function c(t) {
  19561. return function(e) {
  19562. return s([ t, e ]);
  19563. };
  19564. }
  19565. function s(a) {
  19566. if (n) throw new TypeError("Generator is already executing.");
  19567. for (;r; ) try {
  19568. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  19569. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  19570. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  19571. switch (a[0]) {
  19572. case 0:
  19573. case 1:
  19574. i = a;
  19575. break;
  19576. case 4:
  19577. r.label++;
  19578. return {
  19579. value: a[1],
  19580. done: !1
  19581. };
  19582. case 5:
  19583. r.label++;
  19584. o = a[1];
  19585. a = [ 0 ];
  19586. continue;
  19587. case 7:
  19588. a = r.ops.pop();
  19589. r.trys.pop();
  19590. continue;
  19591. default:
  19592. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  19593. r = 0;
  19594. continue;
  19595. }
  19596. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  19597. r.label = a[1];
  19598. break;
  19599. }
  19600. if (6 === a[0] && r.label < i[1]) {
  19601. r.label = i[1];
  19602. i = a;
  19603. break;
  19604. }
  19605. if (i && r.label < i[2]) {
  19606. r.label = i[2];
  19607. r.ops.push(a);
  19608. break;
  19609. }
  19610. i[2] && r.ops.pop();
  19611. r.trys.pop();
  19612. continue;
  19613. }
  19614. a = e.call(t, r);
  19615. } catch (t) {
  19616. a = [ 6, t ];
  19617. o = 0;
  19618. } finally {
  19619. n = i = 0;
  19620. }
  19621. if (5 & a[0]) throw a[1];
  19622. return {
  19623. value: a[0] ? a[1] : void 0,
  19624. done: !0
  19625. };
  19626. }
  19627. };
  19628. Object.defineProperty(n, "__esModule", {
  19629. value: !0
  19630. });
  19631. n.TurnableData = void 0;
  19632. var c = t("../../../mk/data/Data"), s = t("../AdData"), l = t("../GameData"), u = function(t) {
  19633. i(e, t);
  19634. function e() {
  19635. var e = null !== t && t.apply(this, arguments) || this;
  19636. e.requestFinish = !1;
  19637. e.leftTimes = 0;
  19638. return e;
  19639. }
  19640. e.prototype.init = function() {
  19641. this.config = gData.gameData.configs.TurntableCfg;
  19642. this.leftTimes = null == gData.gameData.gameData.turntableTimes ? 0 : gData.gameData.gameData.turntableTimes;
  19643. };
  19644. e.prototype.requestData = function() {
  19645. return a(this, void 0, void 0, function() {
  19646. var t;
  19647. return r(this, function(e) {
  19648. switch (e.label) {
  19649. case 0:
  19650. return [ 4, mk.http.sendData("initialTurntable", {}) ];
  19651. case 1:
  19652. if (0 != (t = e.sent()).errcode) return [ 2 ];
  19653. this.leftTimes = t.data.turntableTimes;
  19654. this.requestFinish = !0;
  19655. return [ 2 ];
  19656. }
  19657. });
  19658. });
  19659. };
  19660. e.prototype.setAdData = function(e) {
  19661. t.prototype.setAdData.call(this, e);
  19662. this.leftTimes = this.leftTimes < 1 ? 0 : this.leftTimes - 1;
  19663. gData.gameData.setProp(l.GameProp.turnable_leftTimes, this.leftTimes);
  19664. };
  19665. e.prototype.draw = function() {
  19666. mk.ad.watchAd(function(t) {
  19667. mk.console.log("watchAD:" + t);
  19668. t && gData.adData.watchVideo(s.AdFun.turntable);
  19669. });
  19670. };
  19671. e.prototype.redPoint = function() {
  19672. return !1;
  19673. };
  19674. return e;
  19675. }(c.Data);
  19676. n.TurnableData = u;
  19677. cc._RF.pop();
  19678. }, {
  19679. "../../../mk/data/Data": "Data",
  19680. "../AdData": "AdData",
  19681. "../GameData": "GameData"
  19682. } ],
  19683. TurnableItem: [ function(t, e, n) {
  19684. "use strict";
  19685. cc._RF.push(e, "2df9fpSWF1G1a/os2Ev7z5Y", "TurnableItem");
  19686. var o, i = this && this.__extends || (o = function(t, e) {
  19687. return (o = Object.setPrototypeOf || {
  19688. __proto__: []
  19689. } instanceof Array && function(t, e) {
  19690. t.__proto__ = e;
  19691. } || function(t, e) {
  19692. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  19693. })(t, e);
  19694. }, function(t, e) {
  19695. o(t, e);
  19696. function n() {
  19697. this.constructor = t;
  19698. }
  19699. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  19700. }), a = this && this.__decorate || function(t, e, n, o) {
  19701. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  19702. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  19703. return a > 3 && r && Object.defineProperty(e, n, r), r;
  19704. }, r = this && this.__awaiter || function(t, e, n, o) {
  19705. return new (n || (n = Promise))(function(i, a) {
  19706. function r(t) {
  19707. try {
  19708. s(o.next(t));
  19709. } catch (t) {
  19710. a(t);
  19711. }
  19712. }
  19713. function c(t) {
  19714. try {
  19715. s(o.throw(t));
  19716. } catch (t) {
  19717. a(t);
  19718. }
  19719. }
  19720. function s(t) {
  19721. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  19722. t(e);
  19723. })).then(r, c);
  19724. var e;
  19725. }
  19726. s((o = o.apply(t, e || [])).next());
  19727. });
  19728. }, c = this && this.__generator || function(t, e) {
  19729. var n, o, i, a, r = {
  19730. label: 0,
  19731. sent: function() {
  19732. if (1 & i[0]) throw i[1];
  19733. return i[1];
  19734. },
  19735. trys: [],
  19736. ops: []
  19737. };
  19738. return a = {
  19739. next: c(0),
  19740. throw: c(1),
  19741. return: c(2)
  19742. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  19743. return this;
  19744. }), a;
  19745. function c(t) {
  19746. return function(e) {
  19747. return s([ t, e ]);
  19748. };
  19749. }
  19750. function s(a) {
  19751. if (n) throw new TypeError("Generator is already executing.");
  19752. for (;r; ) try {
  19753. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  19754. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  19755. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  19756. switch (a[0]) {
  19757. case 0:
  19758. case 1:
  19759. i = a;
  19760. break;
  19761. case 4:
  19762. r.label++;
  19763. return {
  19764. value: a[1],
  19765. done: !1
  19766. };
  19767. case 5:
  19768. r.label++;
  19769. o = a[1];
  19770. a = [ 0 ];
  19771. continue;
  19772. case 7:
  19773. a = r.ops.pop();
  19774. r.trys.pop();
  19775. continue;
  19776. default:
  19777. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  19778. r = 0;
  19779. continue;
  19780. }
  19781. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  19782. r.label = a[1];
  19783. break;
  19784. }
  19785. if (6 === a[0] && r.label < i[1]) {
  19786. r.label = i[1];
  19787. i = a;
  19788. break;
  19789. }
  19790. if (i && r.label < i[2]) {
  19791. r.label = i[2];
  19792. r.ops.push(a);
  19793. break;
  19794. }
  19795. i[2] && r.ops.pop();
  19796. r.trys.pop();
  19797. continue;
  19798. }
  19799. a = e.call(t, r);
  19800. } catch (t) {
  19801. a = [ 6, t ];
  19802. o = 0;
  19803. } finally {
  19804. n = i = 0;
  19805. }
  19806. if (5 & a[0]) throw a[1];
  19807. return {
  19808. value: a[0] ? a[1] : void 0,
  19809. done: !0
  19810. };
  19811. }
  19812. };
  19813. Object.defineProperty(n, "__esModule", {
  19814. value: !0
  19815. });
  19816. var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
  19817. i(e, t);
  19818. function e() {
  19819. var e = null !== t && t.apply(this, arguments) || this;
  19820. e.icon = null;
  19821. e.lbl_name = null;
  19822. return e;
  19823. }
  19824. e.prototype.initData = function(t) {
  19825. return r(this, void 0, void 0, function() {
  19826. var e;
  19827. return c(this, function(n) {
  19828. switch (n.label) {
  19829. case 0:
  19830. e = this.icon;
  19831. return [ 4, mk.loader.load("module/turnable/texture/hb" + t, cc.SpriteFrame) ];
  19832. case 1:
  19833. e.spriteFrame = n.sent();
  19834. this.lbl_name.string = 1 == t ? "少量红包" : 2 == t ? "中量红包" : "大量红包";
  19835. return [ 2 ];
  19836. }
  19837. });
  19838. });
  19839. };
  19840. a([ u(cc.Sprite) ], e.prototype, "icon", void 0);
  19841. a([ u(cc.Label) ], e.prototype, "lbl_name", void 0);
  19842. return a([ l ], e);
  19843. }(cc.Component);
  19844. n.default = p;
  19845. cc._RF.pop();
  19846. }, {} ],
  19847. Turnable: [ function(t, e, n) {
  19848. "use strict";
  19849. cc._RF.push(e, "c5972Si4H1MMp7ugnferq77", "Turnable");
  19850. var o, i = this && this.__extends || (o = function(t, e) {
  19851. return (o = Object.setPrototypeOf || {
  19852. __proto__: []
  19853. } instanceof Array && function(t, e) {
  19854. t.__proto__ = e;
  19855. } || function(t, e) {
  19856. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  19857. })(t, e);
  19858. }, function(t, e) {
  19859. o(t, e);
  19860. function n() {
  19861. this.constructor = t;
  19862. }
  19863. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  19864. }), a = this && this.__decorate || function(t, e, n, o) {
  19865. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  19866. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  19867. return a > 3 && r && Object.defineProperty(e, n, r), r;
  19868. }, r = this && this.__awaiter || function(t, e, n, o) {
  19869. return new (n || (n = Promise))(function(i, a) {
  19870. function r(t) {
  19871. try {
  19872. s(o.next(t));
  19873. } catch (t) {
  19874. a(t);
  19875. }
  19876. }
  19877. function c(t) {
  19878. try {
  19879. s(o.throw(t));
  19880. } catch (t) {
  19881. a(t);
  19882. }
  19883. }
  19884. function s(t) {
  19885. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  19886. t(e);
  19887. })).then(r, c);
  19888. var e;
  19889. }
  19890. s((o = o.apply(t, e || [])).next());
  19891. });
  19892. }, c = this && this.__generator || function(t, e) {
  19893. var n, o, i, a, r = {
  19894. label: 0,
  19895. sent: function() {
  19896. if (1 & i[0]) throw i[1];
  19897. return i[1];
  19898. },
  19899. trys: [],
  19900. ops: []
  19901. };
  19902. return a = {
  19903. next: c(0),
  19904. throw: c(1),
  19905. return: c(2)
  19906. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  19907. return this;
  19908. }), a;
  19909. function c(t) {
  19910. return function(e) {
  19911. return s([ t, e ]);
  19912. };
  19913. }
  19914. function s(a) {
  19915. if (n) throw new TypeError("Generator is already executing.");
  19916. for (;r; ) try {
  19917. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  19918. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  19919. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  19920. switch (a[0]) {
  19921. case 0:
  19922. case 1:
  19923. i = a;
  19924. break;
  19925. case 4:
  19926. r.label++;
  19927. return {
  19928. value: a[1],
  19929. done: !1
  19930. };
  19931. case 5:
  19932. r.label++;
  19933. o = a[1];
  19934. a = [ 0 ];
  19935. continue;
  19936. case 7:
  19937. a = r.ops.pop();
  19938. r.trys.pop();
  19939. continue;
  19940. default:
  19941. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  19942. r = 0;
  19943. continue;
  19944. }
  19945. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  19946. r.label = a[1];
  19947. break;
  19948. }
  19949. if (6 === a[0] && r.label < i[1]) {
  19950. r.label = i[1];
  19951. i = a;
  19952. break;
  19953. }
  19954. if (i && r.label < i[2]) {
  19955. r.label = i[2];
  19956. r.ops.push(a);
  19957. break;
  19958. }
  19959. i[2] && r.ops.pop();
  19960. r.trys.pop();
  19961. continue;
  19962. }
  19963. a = e.call(t, r);
  19964. } catch (t) {
  19965. a = [ 6, t ];
  19966. o = 0;
  19967. } finally {
  19968. n = i = 0;
  19969. }
  19970. if (5 & a[0]) throw a[1];
  19971. return {
  19972. value: a[0] ? a[1] : void 0,
  19973. done: !0
  19974. };
  19975. }
  19976. };
  19977. Object.defineProperty(n, "__esModule", {
  19978. value: !0
  19979. });
  19980. var s = t("../../component/BtnClosePanel"), l = t("../../data/AdData"), u = t("../../data/GameData"), p = t("./TurnableItem"), d = cc._decorator, h = d.ccclass, f = d.property, y = function(t) {
  19981. i(e, t);
  19982. function e() {
  19983. var e = null !== t && t.apply(this, arguments) || this;
  19984. e.node_turn = null;
  19985. e.node_items = [];
  19986. e.btn_draw = null;
  19987. e.btn_close = null;
  19988. e.lbl_left = null;
  19989. e.starAni = null;
  19990. e.baozhaAni = null;
  19991. e.endAngle = 0;
  19992. e.startDraw = !1;
  19993. e.slowDis = 720;
  19994. e.slowAngle = 0;
  19995. e.perAdd = 10;
  19996. e.perMinus = 0;
  19997. return e;
  19998. }
  19999. e.prototype.onLoad = function() {
  20000. this.baozhaAni.node.active = !1;
  20001. this.initData();
  20002. };
  20003. e.prototype.initData = function() {
  20004. this.rewardWeights = [ 0, 0, 0 ];
  20005. if (gData.turnable.config) for (var t = 0; t < gData.turnable.config.length; t++) {
  20006. var e = this.node_items[t].getComponent(p.default), n = parseInt(gData.turnable.config[t].type);
  20007. this.rewardWeights[n - 1]++;
  20008. e.initData(n);
  20009. }
  20010. gData.turnable.requestData();
  20011. this.updateLeftTimes();
  20012. };
  20013. e.prototype.clickDraw = function() {
  20014. if (gData.turnable.leftTimes > 0) {
  20015. mk.ad.videoAdType = u.VideoAdType.Turntable;
  20016. mk.ad.watchAd(function(t) {
  20017. mk.console.log("watchAD:" + t);
  20018. t && gData.adData.watchVideo(l.AdFun.turntable);
  20019. });
  20020. }
  20021. };
  20022. e.prototype.play = function(t) {
  20023. return r(this, void 0, void 0, function() {
  20024. var e, n, o;
  20025. return c(this, function(i) {
  20026. switch (i.label) {
  20027. case 0:
  20028. e = this;
  20029. return [ 4, mk.audio.playEffect("turnableplay", !0) ];
  20030. case 1:
  20031. e.audioId = i.sent();
  20032. this.btn_close.getComponent(s.default).block_click = !0;
  20033. this.perAdd = 10;
  20034. this.node_turn.angle += 1800;
  20035. n = 0;
  20036. o = 0;
  20037. for (;o < this.rewardWeights.length - 1; ) {
  20038. if (!(o < t - 1)) {
  20039. n += Math.floor(Math.random() * this.rewardWeights[o]);
  20040. break;
  20041. }
  20042. n += this.rewardWeights[o];
  20043. o++;
  20044. }
  20045. this.endAngle = -60 * n;
  20046. this.slowAngle = this.endAngle + this.slowDis;
  20047. this.perMinus = this.perAdd / (this.slowDis / (.5 * this.perAdd));
  20048. this.startDraw = !0;
  20049. this.starAni.resetSystem();
  20050. this.starAni.node.active = !0;
  20051. return [ 2 ];
  20052. }
  20053. });
  20054. });
  20055. };
  20056. e.prototype.playOver = function() {
  20057. return r(this, void 0, void 0, function() {
  20058. return c(this, function(t) {
  20059. switch (t.label) {
  20060. case 0:
  20061. mk.audio.stopEffect(this.audioId);
  20062. this.btn_close.getComponent(s.default).block_click = !1;
  20063. mk.audio.playEffect("turnplateDrawEnd");
  20064. this.updateLeftTimes();
  20065. return [ 4, mk.time.WaitForSeconds(.7) ];
  20066. case 1:
  20067. t.sent();
  20068. mk.ui.openPanel("module/reward/reward");
  20069. return [ 2 ];
  20070. }
  20071. });
  20072. });
  20073. };
  20074. e.prototype.updateLeftTimes = function() {
  20075. this.lbl_left.string = "剩余:<color=#FFED99>" + gData.turnable.leftTimes + "</color>次";
  20076. };
  20077. e.prototype.update = function() {
  20078. if (gData.turnable.requestFinish) {
  20079. this.updateLeftTimes();
  20080. gData.turnable.requestFinish = !1;
  20081. }
  20082. if (gData.turnable.adData) {
  20083. if (gData.turnable.adData && gData.turnable.adData.videoRedMoney) {
  20084. var t = gData.turnable.adData.videoRedMoney.redMoneyType;
  20085. this.play(t);
  20086. gData.reward.data = gData.turnable.adData.videoRedMoney.videoRewardList;
  20087. }
  20088. gData.turnable.adData = null;
  20089. }
  20090. if (this.startDraw) {
  20091. this.node_turn.angle -= this.perAdd;
  20092. this.node_turn.angle <= this.slowAngle && (this.perAdd <= 4 * this.perMinus ? this.perAdd -= .01 * this.perMinus : this.perAdd -= this.perMinus);
  20093. if (this.node_turn.angle <= this.endAngle) {
  20094. this.startDraw = !1;
  20095. this.starAni.node.active = !1;
  20096. this.baozhaAni.node.active = !0;
  20097. this.baozhaAni.setAnimation(0, "animation", !1);
  20098. this.playOver();
  20099. }
  20100. }
  20101. };
  20102. e.prototype.onDestroy = function() {};
  20103. e.prototype.onClickClose = function() {
  20104. mk.ad.checkShowInterByChance();
  20105. };
  20106. a([ f(cc.Node) ], e.prototype, "node_turn", void 0);
  20107. a([ f(cc.Node) ], e.prototype, "node_items", void 0);
  20108. a([ f(cc.Node) ], e.prototype, "btn_draw", void 0);
  20109. a([ f(cc.Sprite) ], e.prototype, "btn_close", void 0);
  20110. a([ f(cc.RichText) ], e.prototype, "lbl_left", void 0);
  20111. a([ f(cc.ParticleSystem) ], e.prototype, "starAni", void 0);
  20112. a([ f(sp.Skeleton) ], e.prototype, "baozhaAni", void 0);
  20113. return a([ h ], e);
  20114. }(cc.Component);
  20115. n.default = y;
  20116. cc._RF.pop();
  20117. }, {
  20118. "../../component/BtnClosePanel": "BtnClosePanel",
  20119. "../../data/AdData": "AdData",
  20120. "../../data/GameData": "GameData",
  20121. "./TurnableItem": "TurnableItem"
  20122. } ],
  20123. TweenCast: [ function(t, e, n) {
  20124. "use strict";
  20125. cc._RF.push(e, "289ef0dnVFATL0DOb4NWYwm", "TweenCast");
  20126. var o, i = this && this.__extends || (o = function(t, e) {
  20127. return (o = Object.setPrototypeOf || {
  20128. __proto__: []
  20129. } instanceof Array && function(t, e) {
  20130. t.__proto__ = e;
  20131. } || function(t, e) {
  20132. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  20133. })(t, e);
  20134. }, function(t, e) {
  20135. o(t, e);
  20136. function n() {
  20137. this.constructor = t;
  20138. }
  20139. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  20140. }), a = this && this.__decorate || function(t, e, n, o) {
  20141. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  20142. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  20143. return a > 3 && r && Object.defineProperty(e, n, r), r;
  20144. };
  20145. Object.defineProperty(n, "__esModule", {
  20146. value: !0
  20147. });
  20148. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  20149. i(e, t);
  20150. function e() {
  20151. var e = null !== t && t.apply(this, arguments) || this;
  20152. e.rich_text = null;
  20153. e.display_time = 5;
  20154. e.move_speed = 3;
  20155. e.wait_time = 10;
  20156. e.names = [ "拒绝寂寞", "孽緣", "祗為与妳相爱", "羙男", "浅蓝", "腊笔小东", "卡布奇诺", "苊狠幸福", "埋葬回忆", "早已该放手", "白兎", "豿疍疍", "宿命", "渗透的葬礼", "全都是虚假", "俄侑伱-直", "隱裑", "你不配我", "非主流网名", "剧终", "如果沵走了", "續雪", "默默然", "大白痴", "衮开", "越长大越不安", "寶疍疍", "爱笑的眼睛", "暧昧", "午夜", "我继续坚强", "冷温柔", "蹲在脚落", "喲妞你赞", "满足沵", "泪流", "听风在唱歌", "假装", "海岸线丶", "流年换ノ", "细数惭愧", "寂寞别说爱╮", "疯男人", "Darling", "伤狠痛", "留的住我不要", "静静的思念", "涐愿化作飞蛾", "欲", "提苏米拉", "夜凄凉", "一种矜持", "哼,涐呸", "贪婪", "一败涂地", "美如此多娇", "暧昧已落幕", "地平线" ];
  20157. e.moneys = [ .5, .8, 1, 2, 5, 10, 20, 100 ];
  20158. e.weights = [ 40, 20, 10, 10, 10, 5, 3, 2 ];
  20159. return e;
  20160. }
  20161. e.prototype.getContent = function() {
  20162. var t = this.names.length, e = Math.floor(mk.math.random(0, t, !1)), n = this.names[e];
  20163. t = this.moneys.length;
  20164. e = mk.math.randomByWeight(this.weights, 100, !1);
  20165. return "<outline color=#000000 width=1><color=#19F7FF>" + n + "</color>成功提现了<color=#FCE300>" + this.moneys[e] + "元</color></outline>";
  20166. };
  20167. e.prototype.onLoad = function() {
  20168. this.play();
  20169. };
  20170. e.prototype.play = function() {
  20171. this.reset();
  20172. cc.tween(this.node).delay(this.wait_time).call(this.rickPlay.bind(this)).start();
  20173. };
  20174. e.prototype.rickPlay = function() {
  20175. this.node.active = !0;
  20176. cc.tween(this.rich_text.node).to(this.move_speed, {
  20177. x: 16
  20178. }).delay(this.display_time).to(this.move_speed, {
  20179. x: -450
  20180. }).call(this.play.bind(this)).start();
  20181. };
  20182. e.prototype.reset = function() {
  20183. this.node.active = !1;
  20184. this.rich_text.node.x = 450;
  20185. this.rich_text.string = this.getContent();
  20186. };
  20187. a([ s({
  20188. type: cc.RichText,
  20189. displayName: "公告内容"
  20190. }) ], e.prototype, "rich_text", void 0);
  20191. a([ s({
  20192. displayName: "显示时间"
  20193. }) ], e.prototype, "display_time", void 0);
  20194. a([ s({
  20195. displayName: "进出速度"
  20196. }) ], e.prototype, "move_speed", void 0);
  20197. a([ s({
  20198. displayName: "等待时间"
  20199. }) ], e.prototype, "wait_time", void 0);
  20200. return a([ c ], e);
  20201. }(cc.Component);
  20202. n.default = l;
  20203. cc._RF.pop();
  20204. }, {} ],
  20205. TweenEasing: [ function(t, e, n) {
  20206. "use strict";
  20207. cc._RF.push(e, "7d939H2Xm5K75ITQ9wq0tFT", "TweenEasing");
  20208. Object.defineProperty(n, "__esModule", {
  20209. value: !0
  20210. });
  20211. n.TweenEasing = void 0;
  20212. (function(t) {
  20213. t[t.linear = 0] = "linear";
  20214. t[t.smooth = 1] = "smooth";
  20215. t[t.fade = 2] = "fade";
  20216. t[t.quadIn = 3] = "quadIn";
  20217. t[t.quadOut = 4] = "quadOut";
  20218. t[t.quadInOut = 5] = "quadInOut";
  20219. t[t.quadOutIn = 6] = "quadOutIn";
  20220. t[t.cubicIn = 7] = "cubicIn";
  20221. t[t.cubicOut = 8] = "cubicOut";
  20222. t[t.cubicInOut = 9] = "cubicInOut";
  20223. t[t.cubicOutIn = 10] = "cubicOutIn";
  20224. t[t.quartIn = 11] = "quartIn";
  20225. t[t.quartOut = 12] = "quartOut";
  20226. t[t.quartInOut = 13] = "quartInOut";
  20227. t[t.quartOutIn = 14] = "quartOutIn";
  20228. t[t.quintIn = 15] = "quintIn";
  20229. t[t.quintOut = 16] = "quintOut";
  20230. t[t.quintInOut = 17] = "quintInOut";
  20231. t[t.quintOutIn = 18] = "quintOutIn";
  20232. t[t.sineIn = 19] = "sineIn";
  20233. t[t.sineOut = 20] = "sineOut";
  20234. t[t.sineInOut = 21] = "sineInOut";
  20235. t[t.sineOutIn = 22] = "sineOutIn";
  20236. t[t.expoIn = 23] = "expoIn";
  20237. t[t.expoOut = 24] = "expoOut";
  20238. t[t.expoInOut = 25] = "expoInOut";
  20239. t[t.expoOutIn = 26] = "expoOutIn";
  20240. t[t.circIn = 27] = "circIn";
  20241. t[t.circOut = 28] = "circOut";
  20242. t[t.circInOut = 29] = "circInOut";
  20243. t[t.circOutIn = 30] = "circOutIn";
  20244. t[t.elasticIn = 31] = "elasticIn";
  20245. t[t.elasticOut = 32] = "elasticOut";
  20246. t[t.elasticInOut = 33] = "elasticInOut";
  20247. t[t.elasticOutIn = 34] = "elasticOutIn";
  20248. t[t.backIn = 35] = "backIn";
  20249. t[t.backOut = 36] = "backOut";
  20250. t[t.backInOut = 37] = "backInOut";
  20251. t[t.backOutIn = 38] = "backOutIn";
  20252. t[t.bounceIn = 39] = "bounceIn";
  20253. t[t.bounceOut = 40] = "bounceOut";
  20254. t[t.bounceInOut = 41] = "bounceInOut";
  20255. t[t.bounceOutIn = 42] = "bounceOutIn";
  20256. })(n.TweenEasing || (n.TweenEasing = {}));
  20257. cc._RF.pop();
  20258. }, {} ],
  20259. TweenUtil: [ function(t, e, n) {
  20260. "use strict";
  20261. cc._RF.push(e, "6679cLfL3BDsJz4U/E3dV8e", "TweenUtil");
  20262. var o = this && this.__decorate || function(t, e, n, o) {
  20263. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  20264. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  20265. return a > 3 && r && Object.defineProperty(e, n, r), r;
  20266. };
  20267. Object.defineProperty(n, "__esModule", {
  20268. value: !0
  20269. });
  20270. var i, a = cc._decorator, r = a.ccclass, c = (a.property, function() {
  20271. function t() {
  20272. this.easing = i;
  20273. }
  20274. t.prototype.scale = function(t, e, n, o, i, a) {
  20275. void 0 === e && (e = .15);
  20276. void 0 === n && (n = 0);
  20277. void 0 === o && (o = 1);
  20278. t.scale = n;
  20279. var r = cc.tween().to(e, {
  20280. scale: o
  20281. }, {
  20282. easing: a
  20283. }), c = cc.tween().call(function() {
  20284. "function" == typeof i && i();
  20285. });
  20286. cc.tween(t).then(r).then(c).start();
  20287. };
  20288. t.prototype.scaleX = function(t, e, n, o, i, a) {
  20289. void 0 === e && (e = .15);
  20290. void 0 === n && (n = 0);
  20291. void 0 === o && (o = 1);
  20292. t.scaleX = n;
  20293. var r = cc.tween().to(e, {
  20294. scaleX: o
  20295. }, {
  20296. easing: a
  20297. }), c = cc.tween().call(function() {
  20298. "function" == typeof i && i();
  20299. });
  20300. cc.tween(t).then(r).then(c).start();
  20301. };
  20302. t.prototype.scaleParallelMove = function(t, e, n, o, i, a) {
  20303. void 0 === e && (e = .15);
  20304. void 0 === n && (n = 0);
  20305. void 0 === o && (o = 1);
  20306. void 0 === i && (i = cc.Vec2.ZERO);
  20307. t.scale = n;
  20308. var r = cc.tween().to(e, {
  20309. scale: o
  20310. }), c = cc.tween().to(e, {
  20311. position: new cc.Vec3(i.x, i.y, 0)
  20312. }), s = cc.tween().call(function() {
  20313. "function" == typeof a && a();
  20314. }), l = cc.tween().parallel(r, c);
  20315. cc.tween(t).then(l).then(s).start();
  20316. };
  20317. t.prototype.move = function(t, e, n, o, i, a) {
  20318. void 0 === e && (e = .15);
  20319. void 0 === n && (n = cc.Vec2.ZERO);
  20320. void 0 === o && (o = cc.Vec2.ZERO);
  20321. t.setPosition(n);
  20322. var r = cc.tween().to(e, {
  20323. position: new cc.Vec3(o.x, o.y, 0)
  20324. }, {
  20325. easing: a
  20326. }), c = cc.tween().call(function() {
  20327. "function" == typeof i && i();
  20328. });
  20329. cc.tween(t).then(r).then(c).start();
  20330. };
  20331. return o([ r ], t);
  20332. }());
  20333. n.default = c;
  20334. (function(t) {
  20335. t[t.linear = 0] = "linear";
  20336. t[t.smooth = 1] = "smooth";
  20337. t[t.fade = 2] = "fade";
  20338. t[t.quadIn = 3] = "quadIn";
  20339. t[t.quadOut = 4] = "quadOut";
  20340. t[t.quadInOut = 5] = "quadInOut";
  20341. t[t.quadOutIn = 6] = "quadOutIn";
  20342. t[t.cubicIn = 7] = "cubicIn";
  20343. t[t.cubicOut = 8] = "cubicOut";
  20344. t[t.cubicInOut = 9] = "cubicInOut";
  20345. t[t.cubicOutIn = 10] = "cubicOutIn";
  20346. t[t.quartIn = 11] = "quartIn";
  20347. t[t.quartOut = 12] = "quartOut";
  20348. t[t.quartInOut = 13] = "quartInOut";
  20349. t[t.quartOutIn = 14] = "quartOutIn";
  20350. t[t.quintIn = 15] = "quintIn";
  20351. t[t.quintOut = 16] = "quintOut";
  20352. t[t.quintInOut = 17] = "quintInOut";
  20353. t[t.quintOutIn = 18] = "quintOutIn";
  20354. t[t.sineIn = 19] = "sineIn";
  20355. t[t.sineOut = 20] = "sineOut";
  20356. t[t.sineInOut = 21] = "sineInOut";
  20357. t[t.sineOutIn = 22] = "sineOutIn";
  20358. t[t.expoIn = 23] = "expoIn";
  20359. t[t.expoOut = 24] = "expoOut";
  20360. t[t.expoInOut = 25] = "expoInOut";
  20361. t[t.expoOutIn = 26] = "expoOutIn";
  20362. t[t.circIn = 27] = "circIn";
  20363. t[t.circOut = 28] = "circOut";
  20364. t[t.circInOut = 29] = "circInOut";
  20365. t[t.circOutIn = 30] = "circOutIn";
  20366. t[t.elasticIn = 31] = "elasticIn";
  20367. t[t.elasticOut = 32] = "elasticOut";
  20368. t[t.elasticInOut = 33] = "elasticInOut";
  20369. t[t.elasticOutIn = 34] = "elasticOutIn";
  20370. t[t.backIn = 35] = "backIn";
  20371. t[t.backOut = 36] = "backOut";
  20372. t[t.backInOut = 37] = "backInOut";
  20373. t[t.backOutIn = 38] = "backOutIn";
  20374. t[t.bounceIn = 39] = "bounceIn";
  20375. t[t.bounceOut = 40] = "bounceOut";
  20376. t[t.bounceInOut = 41] = "bounceInOut";
  20377. t[t.bounceOutIn = 42] = "bounceOutIn";
  20378. })(i || (i = {}));
  20379. cc._RF.pop();
  20380. }, {} ],
  20381. UIBG: [ function(t, e, n) {
  20382. "use strict";
  20383. cc._RF.push(e, "58495/rJOBNGoxELFSp8G2a", "UIBG");
  20384. var o, i = this && this.__extends || (o = function(t, e) {
  20385. return (o = Object.setPrototypeOf || {
  20386. __proto__: []
  20387. } instanceof Array && function(t, e) {
  20388. t.__proto__ = e;
  20389. } || function(t, e) {
  20390. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  20391. })(t, e);
  20392. }, function(t, e) {
  20393. o(t, e);
  20394. function n() {
  20395. this.constructor = t;
  20396. }
  20397. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  20398. }), a = this && this.__decorate || function(t, e, n, o) {
  20399. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  20400. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  20401. return a > 3 && r && Object.defineProperty(e, n, r), r;
  20402. };
  20403. Object.defineProperty(n, "__esModule", {
  20404. value: !0
  20405. });
  20406. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  20407. i(e, t);
  20408. function e() {
  20409. var e = null !== t && t.apply(this, arguments) || this;
  20410. e.color = new cc.Color(0, 0, 0, 180);
  20411. e.design_block_node = null;
  20412. e.bClickClose = !1;
  20413. e.onComplete = [];
  20414. e.node_bg = null;
  20415. return e;
  20416. }
  20417. e.prototype.onLoad = function() {
  20418. this.initBG();
  20419. };
  20420. e.prototype.initBG = function() {
  20421. var t = mk.game.getWinSize().width, e = mk.game.getWinSize().height;
  20422. this.node_bg = this.drawColorRect(new cc.Rect(-t / 2, -e / 2, t, e));
  20423. this.node_bg.parent = this.node;
  20424. this.node_bg.zIndex = -1e4;
  20425. this.node_bg.addComponent(cc.Button);
  20426. this.node_bg.on("click", this.initClick, this);
  20427. this.design_block_node && this.design_block_node.addComponent(cc.BlockInputEvents);
  20428. };
  20429. e.prototype.initClick = function() {
  20430. this.bClickClose && this.onClickClose();
  20431. };
  20432. e.prototype.onClickClose = function() {
  20433. mk.ui.closePanel(this.node.name);
  20434. for (var t = this.onComplete.length, e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
  20435. };
  20436. e.prototype.drawColorRect = function(t) {
  20437. var e = new cc.Node("colorRect");
  20438. e.setContentSize(t);
  20439. var n = e.addComponent(cc.Graphics);
  20440. n.fillColor = this.color;
  20441. n.fillRect(t.x, t.y, t.width, t.height);
  20442. return e;
  20443. };
  20444. a([ s({
  20445. displayName: "背景颜色"
  20446. }) ], e.prototype, "color", void 0);
  20447. a([ s({
  20448. displayName: "自定义屏蔽节点",
  20449. type: cc.Node
  20450. }) ], e.prototype, "design_block_node", void 0);
  20451. a([ s({
  20452. displayName: "点击关闭"
  20453. }) ], e.prototype, "bClickClose", void 0);
  20454. a([ s({
  20455. displayName: "完成回调",
  20456. tooltip: "面板打开完成后触发",
  20457. type: cc.Component.EventHandler
  20458. }) ], e.prototype, "onComplete", void 0);
  20459. return a([ c ], e);
  20460. }(cc.Component);
  20461. n.default = l;
  20462. cc._RF.pop();
  20463. }, {} ],
  20464. UISystem: [ function(t, e, n) {
  20465. "use strict";
  20466. cc._RF.push(e, "d0ea1+IO0BKJoZMInS6d9dy", "UISystem");
  20467. var o, i = this && this.__extends || (o = function(t, e) {
  20468. return (o = Object.setPrototypeOf || {
  20469. __proto__: []
  20470. } instanceof Array && function(t, e) {
  20471. t.__proto__ = e;
  20472. } || function(t, e) {
  20473. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  20474. })(t, e);
  20475. }, function(t, e) {
  20476. o(t, e);
  20477. function n() {
  20478. this.constructor = t;
  20479. }
  20480. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  20481. }), a = this && this.__decorate || function(t, e, n, o) {
  20482. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  20483. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  20484. return a > 3 && r && Object.defineProperty(e, n, r), r;
  20485. };
  20486. Object.defineProperty(n, "__esModule", {
  20487. value: !0
  20488. });
  20489. n.OpenActionType = void 0;
  20490. var r, c = cc._decorator, s = c.ccclass, l = (c.property, function(t) {
  20491. i(e, t);
  20492. function e() {
  20493. var e = null !== t && t.apply(this, arguments) || this;
  20494. e.panelParent = null;
  20495. e.isPanelOpening = !1;
  20496. e.isPanelClosing = !1;
  20497. e.curOnPanelDic = {};
  20498. e.lastOpenPanelName = "";
  20499. return e;
  20500. }
  20501. e.prototype.onLoad = function() {
  20502. mk.ui = this;
  20503. };
  20504. e.prototype.start = function() {
  20505. this.panelParent || (this.panelParent = this.node);
  20506. };
  20507. e.prototype.openPanel = function(t, e, n) {
  20508. void 0 === e && (e = r.normal);
  20509. void 0 === n && (n = null);
  20510. var o = t.split("/"), i = o[o.length - 1], a = this;
  20511. if (!a.isPanelOpening && !a.getCurOnPanel(i)) {
  20512. a.isPanelOpening = !0;
  20513. return new Promise(function(o, c) {
  20514. mk.loader.load("" + t, cc.Prefab).then(function(t) {
  20515. var c = cc.instantiate(t);
  20516. a.curOnPanelDic[i] = c;
  20517. a.panelParent && (a.panelParent = a.node);
  20518. if (a.panelParent) {
  20519. n ? c.parent = n : a.panelParent.addChild(c);
  20520. switch (e) {
  20521. case r.normal:
  20522. break;
  20523. case r.closeLast:
  20524. a.lastOpenPanelName && a.closePanel(a.lastOpenPanelName);
  20525. break;
  20526. case r.closeOther:
  20527. for (var s = Object.keys(a.curOnPanelDic).filter(function() {}), l = 0; l < s.length; l++) {
  20528. var u = s[l];
  20529. a.closePanel(u);
  20530. }
  20531. }
  20532. a.lastOpenPanelName = i;
  20533. o(c);
  20534. a.isPanelOpening = !1;
  20535. } else {
  20536. console.error("[UISystem] UI的父节点panelParent为null,请检查脚本挂载情况");
  20537. a.isPanelOpening = !1;
  20538. }
  20539. }).catch(function(t) {
  20540. a.isPanelOpening = !1;
  20541. c(t);
  20542. });
  20543. });
  20544. }
  20545. };
  20546. e.prototype.getCurOnPanel = function(t) {
  20547. return this.curOnPanelDic[t];
  20548. };
  20549. e.prototype.closePanel = function(t, e) {
  20550. void 0 === e && (e = null);
  20551. if (!this.isPanelClosing && this.getCurOnPanel(t)) {
  20552. this.isPanelClosing = !0;
  20553. var n = this.getCurOnPanel(t), o = n.getComponent("EffectOpenAndClose");
  20554. o ? o.hideEffect(this.destroyNode.bind(this, n, t, e)) : this.destroyNode(n, t, e);
  20555. mk.event.emit("close-panel", t);
  20556. }
  20557. };
  20558. e.prototype.destroyNode = function(t, e, n) {
  20559. void 0 === n && (n = null);
  20560. t.destroy();
  20561. delete this.curOnPanelDic[e];
  20562. this.isPanelClosing = !1;
  20563. n && n();
  20564. };
  20565. e.prototype.closeAllUI = function(t) {
  20566. void 0 === t && (t = [ "game", "guide" ]);
  20567. for (var e in this.curOnPanelDic) if (!(t && t.length > 0 && -1 != t.indexOf(e))) {
  20568. var n = this.getCurOnPanel(e), o = n.getComponent("EffectOpenAndClose");
  20569. o ? o.hideEffect(this.destroyNode.bind(this, n, e)) : this.destroyNode(n, e);
  20570. mk.event.emit("close-panel", e);
  20571. }
  20572. this.isPanelClosing = !1;
  20573. mk.ad.destroyNativeAd();
  20574. mk.ad.destoryBanner();
  20575. };
  20576. return a([ s ], e);
  20577. }(cc.Component));
  20578. n.default = l;
  20579. (function(t) {
  20580. t[t.normal = 0] = "normal";
  20581. t[t.closeOther = 1] = "closeOther";
  20582. t[t.closeLast = 2] = "closeLast";
  20583. })(r = n.OpenActionType || (n.OpenActionType = {}));
  20584. cc._RF.pop();
  20585. }, {} ],
  20586. UITween: [ function(t, e, n) {
  20587. "use strict";
  20588. cc._RF.push(e, "a20d9E+N7FBiIV7z1whuT6J", "UITween");
  20589. var o, i = this && this.__extends || (o = function(t, e) {
  20590. return (o = Object.setPrototypeOf || {
  20591. __proto__: []
  20592. } instanceof Array && function(t, e) {
  20593. t.__proto__ = e;
  20594. } || function(t, e) {
  20595. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  20596. })(t, e);
  20597. }, function(t, e) {
  20598. o(t, e);
  20599. function n() {
  20600. this.constructor = t;
  20601. }
  20602. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  20603. }), a = this && this.__decorate || function(t, e, n, o) {
  20604. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  20605. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  20606. return a > 3 && r && Object.defineProperty(e, n, r), r;
  20607. };
  20608. Object.defineProperty(n, "__esModule", {
  20609. value: !0
  20610. });
  20611. n.UITween = n.TweenData = n.PropsData = void 0;
  20612. var r = t("./TweenEasing"), c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus, d = function() {
  20613. function t() {
  20614. this.position = cc.Vec2.ZERO;
  20615. this.angle = 0;
  20616. this.scale = 1;
  20617. }
  20618. a([ l({
  20619. displayName: "坐标"
  20620. }) ], t.prototype, "position", void 0);
  20621. a([ l({
  20622. displayName: "旋转"
  20623. }) ], t.prototype, "angle", void 0);
  20624. a([ l({
  20625. displayName: "缩放"
  20626. }) ], t.prototype, "scale", void 0);
  20627. return a([ s("PropsData") ], t);
  20628. }();
  20629. n.PropsData = d;
  20630. var h = function() {
  20631. function t() {
  20632. this.propsData = new d();
  20633. this.duration = .3;
  20634. this.delay = 0;
  20635. this.isOffset = !1;
  20636. this.onComplete = new cc.Component.EventHandler();
  20637. this.onStart = new cc.Component.EventHandler();
  20638. this.onUpdate = new cc.Component.EventHandler();
  20639. }
  20640. a([ l({
  20641. displayName: "属性数据",
  20642. type: d
  20643. }) ], t.prototype, "propsData", void 0);
  20644. a([ l({
  20645. displayName: "持续时间",
  20646. tooltip: "单位:秒"
  20647. }) ], t.prototype, "duration", void 0);
  20648. a([ l({
  20649. displayName: "延迟时间",
  20650. tooltip: "单位:秒"
  20651. }) ], t.prototype, "delay", void 0);
  20652. a([ l({
  20653. displayName: "是否为差值"
  20654. }) ], t.prototype, "isOffset", void 0);
  20655. a([ l({
  20656. displayName: "完成回调",
  20657. tooltip: "缓动完成时触发",
  20658. type: cc.Component.EventHandler
  20659. }) ], t.prototype, "onComplete", void 0);
  20660. a([ l({
  20661. displayName: "开始回调",
  20662. tooltip: "缓动启动时触发",
  20663. type: cc.Component.EventHandler
  20664. }) ], t.prototype, "onStart", void 0);
  20665. a([ l({
  20666. displayName: "过程回调",
  20667. tooltip: "缓动更新时触发",
  20668. type: cc.Component.EventHandler
  20669. }) ], t.prototype, "onUpdate", void 0);
  20670. return a([ s("TweenData") ], t);
  20671. }();
  20672. n.TweenData = h;
  20673. var f = function(t) {
  20674. i(e, t);
  20675. function e() {
  20676. var e = null !== t && t.apply(this, arguments) || this;
  20677. e.fromData = new d();
  20678. e.targetData = [];
  20679. e.target = null;
  20680. e.tweenEasing = r.TweenEasing.linear;
  20681. e.repeat = 1;
  20682. e.onOneRepeatComplete = new cc.Component.EventHandler();
  20683. e.playOnLoad = !1;
  20684. e._edit_play = !1;
  20685. e.edit_playing = !1;
  20686. return e;
  20687. }
  20688. Object.defineProperty(e.prototype, "edit_play", {
  20689. get: function() {
  20690. if (this._edit_play && !this.edit_playing) {
  20691. this.edit_playing = !0;
  20692. this.play();
  20693. }
  20694. return this._edit_play;
  20695. },
  20696. set: function(t) {
  20697. this._edit_play = t;
  20698. this.target && t && this.target.stopAllActions();
  20699. t || (this.edit_playing = !1);
  20700. },
  20701. enumerable: !1,
  20702. configurable: !0
  20703. });
  20704. e.prototype.start = function() {
  20705. !this.target && (this.target = this.node);
  20706. this.target = this.target || this.node;
  20707. this.currentRepeat = this.repeat;
  20708. this.playOnLoad && this.play();
  20709. };
  20710. e.prototype.play = function() {
  20711. if (0 == this.repeat) {
  20712. this.t = cc.tween(this.target);
  20713. this.readyPlay();
  20714. this.t = this.t.call(this.play.bind(this));
  20715. this.t.start();
  20716. } else if (this.currentRepeat) {
  20717. this.t = cc.tween(this.target);
  20718. this.readyPlay();
  20719. this.t = this.t.call(this.play.bind(this));
  20720. this.currentRepeat--;
  20721. this.t.start();
  20722. } else this.t = null;
  20723. };
  20724. e.prototype.readyPlay = function() {
  20725. var t = this, e = this;
  20726. if (this.fromData) {
  20727. this.node.setPosition(this.fromData.position.clone());
  20728. this.node.scale = this.fromData.scale;
  20729. this.node.angle = this.fromData.angle;
  20730. }
  20731. if (this.targetData.length) for (var n = function(e) {
  20732. var n = o.targetData[e];
  20733. 0 != n.delay && (o.t = o.t.delay(n.delay));
  20734. var i = {
  20735. position: n.propsData.position,
  20736. scale: n.propsData.scale,
  20737. angle: n.propsData.angle
  20738. };
  20739. if (n.isOffset) {
  20740. i.position = o.node.getPosition().add(n.propsData.position);
  20741. i.scale = o.node.scale + n.propsData.scale;
  20742. i.angle = o.node.angle + n.propsData.angle;
  20743. }
  20744. o.t = o.t.to(n.duration, i, {
  20745. easing: r.TweenEasing[o.tweenEasing],
  20746. onComplete: function(e) {
  20747. n.onComplete && n.onComplete.emit([ e ]);
  20748. t.edit_playing = !1;
  20749. t._edit_play = !1;
  20750. },
  20751. onStart: function(t) {
  20752. n.onStart && n.onStart.emit([ t ]);
  20753. },
  20754. onUpdate: function(t, e) {
  20755. n.onUpdate && n.onUpdate.emit([ t, e ]);
  20756. }
  20757. });
  20758. }, o = this, i = 0; i < this.targetData.length; i++) n(i);
  20759. this.onOneRepeatComplete && (this.t = this.t.call(function() {
  20760. e.onOneRepeatComplete.emit([ t, t.t ]);
  20761. }));
  20762. };
  20763. a([ l({
  20764. displayName: "节点初始属性",
  20765. type: d
  20766. }) ], e.prototype, "fromData", void 0);
  20767. a([ l({
  20768. displayName: "节点目标属性",
  20769. type: h
  20770. }) ], e.prototype, "targetData", void 0);
  20771. a([ l({
  20772. displayName: "缓动节点",
  20773. tooltip: "要播放缓动动画的目标,不填则是当前节点",
  20774. type: cc.Node
  20775. }) ], e.prototype, "target", void 0);
  20776. a([ l({
  20777. displayName: "缓动效果",
  20778. type: cc.Enum(r.TweenEasing)
  20779. }) ], e.prototype, "tweenEasing", void 0);
  20780. a([ l({
  20781. displayName: "执行次数",
  20782. tooltip: "为0则一直重复执行"
  20783. }) ], e.prototype, "repeat", void 0);
  20784. a([ l({
  20785. displayName: "单次完成回调",
  20786. tooltip: "单次缓动序列执行完毕时触发",
  20787. type: cc.Component.EventHandler
  20788. }) ], e.prototype, "onOneRepeatComplete", void 0);
  20789. a([ l({
  20790. displayName: "自动播放"
  20791. }) ], e.prototype, "playOnLoad", void 0);
  20792. a([ l({
  20793. displayName: "编辑器预览"
  20794. }) ], e.prototype, "edit_play", null);
  20795. return a([ s, u(), p() ], e);
  20796. }(cc.Component);
  20797. n.UITween = f;
  20798. cc._RF.pop();
  20799. }, {
  20800. "./TweenEasing": "TweenEasing"
  20801. } ],
  20802. Util: [ function(t, e, n) {
  20803. "use strict";
  20804. cc._RF.push(e, "8b634eO2UZCOZzYnNvULwu+", "Util");
  20805. var o = this && this.__decorate || function(t, e, n, o) {
  20806. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  20807. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  20808. return a > 3 && r && Object.defineProperty(e, n, r), r;
  20809. };
  20810. Object.defineProperty(n, "__esModule", {
  20811. value: !0
  20812. });
  20813. var i = cc._decorator, a = i.ccclass, r = (i.property, function() {
  20814. function t() {}
  20815. e = t;
  20816. t.Shuffle = function(t) {
  20817. for (var e = t.length, n = e - 1; n >= 0; n--) {
  20818. var o = Math.floor(Math.random() * e), i = t[n];
  20819. t[n] = t[o];
  20820. t[o] = i;
  20821. }
  20822. return t;
  20823. };
  20824. t.cutStr = function(t, e) {
  20825. var n, o = 0, i = "";
  20826. n = t.length;
  20827. for (var a = 0; a < n; a++) {
  20828. var r = t.charAt(a);
  20829. o++;
  20830. escape(r).length > 4 && o++;
  20831. i = i.concat(r);
  20832. if (o >= e) return i.concat("...");
  20833. }
  20834. if (o < e) return t;
  20835. };
  20836. t.rnd = function(t, e) {
  20837. return Math.floor(Math.random() * (e - t + 1) + t);
  20838. };
  20839. t.has = function(t, n) {
  20840. return e._hasOwnProperty.call(t, n);
  20841. };
  20842. t.defaultCompare = function(t, e) {
  20843. return t < e ? -1 : t === e ? 0 : 1;
  20844. };
  20845. t.objSortByKey = function(t, e) {
  20846. t.length ? t.sort(function(t, n) {
  20847. var o = t[e], i = n[e];
  20848. return o < i ? -1 : o === i ? 0 : 1;
  20849. }) : mk.console.log("该对象不是数组或者元素个数为零");
  20850. };
  20851. t.defaultToString = function(t) {
  20852. return null === t ? "COLLECTION_NULL" : e.isUndefined(t) ? "COLLECTION_UNDEFINED" : e.isString(t) ? "$s " + t : "$o " + t.toString();
  20853. };
  20854. t.makeString = function(t, n) {
  20855. void 0 === n && (n = ",");
  20856. if (null === t) return "COLLECTION_NULL";
  20857. if (e.isUndefined(t)) return "COLLECTION_UNDEFINED";
  20858. if (e.isString(t)) return t.toString();
  20859. var o = "{", i = !0;
  20860. for (var a in t) if (e.has(t, a)) {
  20861. i ? i = !1 : o += n;
  20862. o = o + a + ":" + t[a];
  20863. }
  20864. return o + "}";
  20865. };
  20866. t.isFunction = function(t) {
  20867. return "function" == typeof t;
  20868. };
  20869. t.isUndefined = function(t) {
  20870. return "undefined" == typeof t;
  20871. };
  20872. t.isString = function(t) {
  20873. return "[object String]" === Object.prototype.toString.call(t);
  20874. };
  20875. t.ParseTime2Format = function(t, e) {
  20876. void 0 === e && (e = "h:m:s");
  20877. var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), a = t % 3600 % 60;
  20878. function r(t) {
  20879. var e = t.toString();
  20880. t < 10 && (e = "0" + t);
  20881. return e;
  20882. }
  20883. -1 != e.indexOf("d") ? e = e.replace(/d/g, r(n)) : o += 24 * n;
  20884. -1 != e.indexOf("h") ? e = e.replace(/h/g, r(o)) : i += 60 * o;
  20885. -1 != e.indexOf("m") ? e = e.replace(/m/g, r(i)) : -1 != e.indexOf("h") ? a += 60 * i : a = t;
  20886. -1 != e.indexOf("s") && (e = e.replace(/s/g, r(a)));
  20887. return e;
  20888. };
  20889. t.countHuBetweenToPos = function(t, e) {
  20890. return Math.atan2(e.y - t.y, e.x - t.x);
  20891. };
  20892. t.parseTimestamp = function(t) {
  20893. return (t = new Date(t)).getFullYear() + "-" + (t.getMonth() + 1 < 10 ? "0" + (t.getMonth() + 1) : t.getMonth() + 1) + "-" + (t.getDate() < 10 ? "0" + t.getDate() : t.getDate());
  20894. };
  20895. t.timestampToTime = function(t) {
  20896. var e = new Date(1e3 * t);
  20897. return e.getFullYear() + "." + (e.getMonth() + 1 < 10 ? "0" + (e.getMonth() + 1) : e.getMonth() + 1) + "." + (e.getDate() < 10 ? "0" + e.getDate() : e.getDate()) + " " + (e.getHours() < 10 ? "0" + e.getHours() : e.getHours()) + ":" + (e.getMinutes() < 10 ? "0" + e.getMinutes() : e.getMinutes()) + ":" + (e.getSeconds() < 10 ? "0" + e.getSeconds() : e.getSeconds());
  20898. };
  20899. t.numberFixed = function(t, e) {
  20900. return Number(t.toFixed(e));
  20901. };
  20902. t.versionCompareHandle = function(t, e) {
  20903. console.log("JS Custom Version Compare: version A is " + t + ", version B is " + e);
  20904. for (var n = t.split("."), o = e.split("."), i = 0; i < n.length; ++i) {
  20905. var a = parseInt(n[i]), r = parseInt(o[i] || 0);
  20906. if (a !== r) return a - r;
  20907. }
  20908. return o.length > n.length ? -1 : 0;
  20909. };
  20910. var e;
  20911. t._hasOwnProperty = Object.prototype.hasOwnProperty;
  20912. return e = o([ a ], t);
  20913. }());
  20914. n.default = r;
  20915. cc._RF.pop();
  20916. }, {} ],
  20917. VideoNode: [ function(t, e, n) {
  20918. "use strict";
  20919. cc._RF.push(e, "67f8fl/rQBNWohIi2HJ73Cg", "VideoNode");
  20920. var o, i = this && this.__extends || (o = function(t, e) {
  20921. return (o = Object.setPrototypeOf || {
  20922. __proto__: []
  20923. } instanceof Array && function(t, e) {
  20924. t.__proto__ = e;
  20925. } || function(t, e) {
  20926. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  20927. })(t, e);
  20928. }, function(t, e) {
  20929. o(t, e);
  20930. function n() {
  20931. this.constructor = t;
  20932. }
  20933. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  20934. }), a = this && this.__decorate || function(t, e, n, o) {
  20935. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  20936. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  20937. return a > 3 && r && Object.defineProperty(e, n, r), r;
  20938. };
  20939. Object.defineProperty(n, "__esModule", {
  20940. value: !0
  20941. });
  20942. var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
  20943. i(e, t);
  20944. function e() {
  20945. var e = null !== t && t.apply(this, arguments) || this;
  20946. e.videoPlayer = null;
  20947. return e;
  20948. }
  20949. e.prototype.onLoad = function() {};
  20950. e.prototype.start = function() {
  20951. this.videoPlayer.resourceType = cc.VideoPlayer.ResourceType.LOCAL;
  20952. var t;
  20953. t = 1 == gData.redCodeData.teachVideoType ? "video/AriesGameClub" : "video/Redeem";
  20954. this.playVideo(t);
  20955. };
  20956. e.prototype.playVideo = function(t) {
  20957. var e = this;
  20958. cc.loader.loadRes(t, cc.Asset, function(t, n) {
  20959. e.videoPlayer.clip = n;
  20960. e.scheduleOnce(function() {
  20961. e.videoPlayer.play();
  20962. mk.audio.setPauseMusic();
  20963. }, 1);
  20964. });
  20965. };
  20966. a([ s(cc.VideoPlayer) ], e.prototype, "videoPlayer", void 0);
  20967. return a([ c ], e);
  20968. }(cc.Component);
  20969. n.default = l;
  20970. cc._RF.pop();
  20971. }, {} ],
  20972. WechatData: [ function(t, e, n) {
  20973. "use strict";
  20974. cc._RF.push(e, "0aab3VQlrZMjrgZBNpwRrMu", "WechatData");
  20975. Object.defineProperty(n, "__esModule", {
  20976. value: !0
  20977. });
  20978. n.WechatData = void 0;
  20979. n.WechatData = function() {
  20980. this.ifAuth = !1;
  20981. this.code = null;
  20982. this.unionid = "123456789";
  20983. this.nickName = "点我授权提现";
  20984. this.avatar = "";
  20985. this.shareSuccess = !1;
  20986. };
  20987. cc._RF.pop();
  20988. }, {} ],
  20989. ZPathFalling: [ function(t, e, n) {
  20990. "use strict";
  20991. cc._RF.push(e, "082f6uNVupAbqC0Fkz1/TCB", "ZPathFalling");
  20992. var o, i = this && this.__extends || (o = function(t, e) {
  20993. return (o = Object.setPrototypeOf || {
  20994. __proto__: []
  20995. } instanceof Array && function(t, e) {
  20996. t.__proto__ = e;
  20997. } || function(t, e) {
  20998. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  20999. })(t, e);
  21000. }, function(t, e) {
  21001. o(t, e);
  21002. function n() {
  21003. this.constructor = t;
  21004. }
  21005. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  21006. }), a = this && this.__decorate || function(t, e, n, o) {
  21007. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  21008. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  21009. return a > 3 && r && Object.defineProperty(e, n, r), r;
  21010. };
  21011. Object.defineProperty(n, "__esModule", {
  21012. value: !0
  21013. });
  21014. var r = cc._decorator, c = r.ccclass, s = r.property, l = r.executeInEditMode, u = r.playOnFocus, p = function(t) {
  21015. i(e, t);
  21016. function e() {
  21017. var e = null !== t && t.apply(this, arguments) || this;
  21018. e.play_on_load = !0;
  21019. e.onComplete = new cc.Component.EventHandler();
  21020. e._edit_play = !1;
  21021. e.edit_playing = !1;
  21022. return e;
  21023. }
  21024. Object.defineProperty(e.prototype, "edit_play", {
  21025. get: function() {
  21026. if (this._edit_play && !this.edit_playing) {
  21027. this.edit_playing = !0;
  21028. this.play();
  21029. }
  21030. return this._edit_play;
  21031. },
  21032. set: function(t) {
  21033. this._edit_play = t;
  21034. t || this.stop();
  21035. },
  21036. enumerable: !1,
  21037. configurable: !0
  21038. });
  21039. e.prototype.onLoad = function() {};
  21040. e.prototype.start = function() {
  21041. this.play_on_load && this.play();
  21042. };
  21043. e.prototype.play = function() {
  21044. var t = this, e = this.node.getPosition(), n = this.node.getPosition(), o = this.node.getPosition();
  21045. if (this.node.x >= 0) {
  21046. e.x -= 3 * this.node.width;
  21047. n.x -= 1 * this.node.width;
  21048. o.x -= 2 * this.node.width;
  21049. } else {
  21050. e.x += 3 * this.node.width;
  21051. n.x += 1 * this.node.width;
  21052. o.x += 2 * this.node.width;
  21053. }
  21054. e.y -= this.node.height / 2;
  21055. n.y -= this.node.height;
  21056. o.y -= 1.2 * this.node.height;
  21057. var i = cc.tween().to(.5, {
  21058. position: e
  21059. }, {
  21060. easing: "cubicOut"
  21061. }), a = cc.tween().to(.5, {
  21062. position: n
  21063. }, {
  21064. easing: "cubicOut"
  21065. }), r = cc.tween().to(.5, {
  21066. position: o
  21067. }, {
  21068. easing: "cubicOut"
  21069. }), c = cc.tween().call(function() {
  21070. t.edit_playing = !1;
  21071. t.edit_play = !1;
  21072. t.onComplete.handler && t.onComplete.emit([ t.node ]);
  21073. });
  21074. cc.tween(this.node).then(i).then(a).then(r).then(c).start();
  21075. };
  21076. e.prototype.stop = function() {
  21077. this.edit_playing = !1;
  21078. this.node.stopAllActions();
  21079. };
  21080. a([ s({
  21081. displayName: "自动播放"
  21082. }) ], e.prototype, "play_on_load", void 0);
  21083. a([ s({
  21084. displayName: "完成回调",
  21085. type: cc.Component.EventHandler
  21086. }) ], e.prototype, "onComplete", void 0);
  21087. a([ s({
  21088. displayName: "编辑器预览"
  21089. }) ], e.prototype, "edit_play", null);
  21090. return a([ c, l(), u() ], e);
  21091. }(cc.Component);
  21092. n.default = p;
  21093. cc._RF.pop();
  21094. }, {} ],
  21095. aes: [ function(t, e) {
  21096. "use strict";
  21097. cc._RF.push(e, "19ca92Vo+9AL7z4EqtukKt7", "aes");
  21098. var n, o, i = i || function(t) {
  21099. var e = {}, n = e.lib = {}, o = function() {}, i = n.Base = {
  21100. extend: function(t) {
  21101. o.prototype = this;
  21102. var e = new o();
  21103. t && e.mixIn(t);
  21104. e.hasOwnProperty("init") || (e.init = function() {
  21105. e.$super.init.apply(this, arguments);
  21106. });
  21107. e.init.prototype = e;
  21108. e.$super = this;
  21109. return e;
  21110. },
  21111. create: function() {
  21112. var t = this.extend();
  21113. t.init.apply(t, arguments);
  21114. return t;
  21115. },
  21116. init: function() {},
  21117. mixIn: function(t) {
  21118. for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
  21119. t.hasOwnProperty("toString") && (this.toString = t.toString);
  21120. },
  21121. clone: function() {
  21122. return this.init.prototype.extend(this);
  21123. }
  21124. }, a = n.WordArray = i.extend({
  21125. init: function(t, e) {
  21126. t = this.words = t || [];
  21127. this.sigBytes = null != e ? e : 4 * t.length;
  21128. },
  21129. toString: function(t) {
  21130. return (t || c).stringify(this);
  21131. },
  21132. concat: function(t) {
  21133. var e = this.words, n = t.words, o = this.sigBytes;
  21134. t = t.sigBytes;
  21135. this.clamp();
  21136. if (o % 4) for (var i = 0; i < t; i++) e[o + i >>> 2] |= (n[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 24 - (o + i) % 4 * 8; else if (65535 < n.length) for (i = 0; i < t; i += 4) e[o + i >>> 2] = n[i >>> 2]; else e.push.apply(e, n);
  21137. this.sigBytes += t;
  21138. return this;
  21139. },
  21140. clamp: function() {
  21141. var e = this.words, n = this.sigBytes;
  21142. e[n >>> 2] &= 4294967295 << 32 - n % 4 * 8;
  21143. e.length = t.ceil(n / 4);
  21144. },
  21145. clone: function() {
  21146. var t = i.clone.call(this);
  21147. t.words = this.words.slice(0);
  21148. return t;
  21149. },
  21150. random: function(e) {
  21151. for (var n = [], o = 0; o < e; o += 4) n.push(4294967296 * t.random() | 0);
  21152. return new a.init(n, e);
  21153. }
  21154. }), r = e.enc = {}, c = r.Hex = {
  21155. stringify: function(t) {
  21156. var e = t.words;
  21157. t = t.sigBytes;
  21158. for (var n = [], o = 0; o < t; o++) {
  21159. var i = e[o >>> 2] >>> 24 - o % 4 * 8 & 255;
  21160. n.push((i >>> 4).toString(16));
  21161. n.push((15 & i).toString(16));
  21162. }
  21163. return n.join("");
  21164. },
  21165. parse: function(t) {
  21166. for (var e = t.length, n = [], o = 0; o < e; o += 2) n[o >>> 3] |= parseInt(t.substr(o, 2), 16) << 24 - o % 8 * 4;
  21167. return new a.init(n, e / 2);
  21168. }
  21169. }, s = r.Latin1 = {
  21170. stringify: function(t) {
  21171. var e = t.words;
  21172. t = t.sigBytes;
  21173. for (var n = [], o = 0; o < t; o++) n.push(String.fromCharCode(e[o >>> 2] >>> 24 - o % 4 * 8 & 255));
  21174. return n.join("");
  21175. },
  21176. parse: function(t) {
  21177. for (var e = t.length, n = [], o = 0; o < e; o++) n[o >>> 2] |= (255 & t.charCodeAt(o)) << 24 - o % 4 * 8;
  21178. return new a.init(n, e);
  21179. }
  21180. }, l = r.Utf8 = {
  21181. stringify: function(t) {
  21182. try {
  21183. return decodeURIComponent(escape(s.stringify(t)));
  21184. } catch (t) {
  21185. throw Error("Malformed UTF-8 data");
  21186. }
  21187. },
  21188. parse: function(t) {
  21189. return s.parse(unescape(encodeURIComponent(t)));
  21190. }
  21191. }, u = n.BufferedBlockAlgorithm = i.extend({
  21192. reset: function() {
  21193. this._data = new a.init();
  21194. this._nDataBytes = 0;
  21195. },
  21196. _append: function(t) {
  21197. "string" == typeof t && (t = l.parse(t));
  21198. this._data.concat(t);
  21199. this._nDataBytes += t.sigBytes;
  21200. },
  21201. _process: function(e) {
  21202. var n = this._data, o = n.words, i = n.sigBytes, r = this.blockSize, c = i / (4 * r);
  21203. e = (c = e ? t.ceil(c) : t.max((0 | c) - this._minBufferSize, 0)) * r;
  21204. i = t.min(4 * e, i);
  21205. if (e) {
  21206. for (var s = 0; s < e; s += r) this._doProcessBlock(o, s);
  21207. s = o.splice(0, e);
  21208. n.sigBytes -= i;
  21209. }
  21210. return new a.init(s, i);
  21211. },
  21212. clone: function() {
  21213. var t = i.clone.call(this);
  21214. t._data = this._data.clone();
  21215. return t;
  21216. },
  21217. _minBufferSize: 0
  21218. });
  21219. n.Hasher = u.extend({
  21220. cfg: i.extend(),
  21221. init: function(t) {
  21222. this.cfg = this.cfg.extend(t);
  21223. this.reset();
  21224. },
  21225. reset: function() {
  21226. u.reset.call(this);
  21227. this._doReset();
  21228. },
  21229. update: function(t) {
  21230. this._append(t);
  21231. this._process();
  21232. return this;
  21233. },
  21234. finalize: function(t) {
  21235. t && this._append(t);
  21236. return this._doFinalize();
  21237. },
  21238. blockSize: 16,
  21239. _createHelper: function(t) {
  21240. return function(e, n) {
  21241. return new t.init(n).finalize(e);
  21242. };
  21243. },
  21244. _createHmacHelper: function(t) {
  21245. return function(e, n) {
  21246. return new p.HMAC.init(t, n).finalize(e);
  21247. };
  21248. }
  21249. });
  21250. var p = e.algo = {};
  21251. return e;
  21252. }(Math);
  21253. o = (n = i).lib.WordArray, n.enc.Base64 = {
  21254. stringify: function(t) {
  21255. var e = t.words, n = t.sigBytes, o = this._map;
  21256. t.clamp();
  21257. t = [];
  21258. for (var i = 0; i < n; i += 3) for (var a = (e[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (e[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | e[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, r = 0; 4 > r && i + .75 * r < n; r++) t.push(o.charAt(a >>> 6 * (3 - r) & 63));
  21259. if (e = o.charAt(64)) for (;t.length % 4; ) t.push(e);
  21260. return t.join("");
  21261. },
  21262. parse: function(t) {
  21263. var e = t.length, n = this._map;
  21264. (i = n.charAt(64)) && -1 != (i = t.indexOf(i)) && (e = i);
  21265. for (var i = [], a = 0, r = 0; r < e; r++) if (r % 4) {
  21266. var c = n.indexOf(t.charAt(r - 1)) << r % 4 * 2, s = n.indexOf(t.charAt(r)) >>> 6 - r % 4 * 2;
  21267. i[a >>> 2] |= (c | s) << 24 - a % 4 * 8;
  21268. a++;
  21269. }
  21270. return o.create(i, a);
  21271. },
  21272. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  21273. };
  21274. (function(t) {
  21275. function e(t, e, n, o, i, a, r) {
  21276. return ((t = t + (e & n | ~e & o) + i + r) << a | t >>> 32 - a) + e;
  21277. }
  21278. function n(t, e, n, o, i, a, r) {
  21279. return ((t = t + (e & o | n & ~o) + i + r) << a | t >>> 32 - a) + e;
  21280. }
  21281. function o(t, e, n, o, i, a, r) {
  21282. return ((t = t + (e ^ n ^ o) + i + r) << a | t >>> 32 - a) + e;
  21283. }
  21284. function a(t, e, n, o, i, a, r) {
  21285. return ((t = t + (n ^ (e | ~o)) + i + r) << a | t >>> 32 - a) + e;
  21286. }
  21287. for (var r = i, c = (l = r.lib).WordArray, s = l.Hasher, l = r.algo, u = [], p = 0; 64 > p; p++) u[p] = 4294967296 * t.abs(t.sin(p + 1)) | 0;
  21288. l = l.MD5 = s.extend({
  21289. _doReset: function() {
  21290. this._hash = new c.init([ 1732584193, 4023233417, 2562383102, 271733878 ]);
  21291. },
  21292. _doProcessBlock: function(t, i) {
  21293. for (var r = 0; 16 > r; r++) {
  21294. var c = t[s = i + r];
  21295. t[s] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8);
  21296. }
  21297. r = this._hash.words;
  21298. var s = t[i + 0], l = (c = t[i + 1], t[i + 2]), p = t[i + 3], d = t[i + 4], h = t[i + 5], f = t[i + 6], y = t[i + 7], g = t[i + 8], m = t[i + 9], _ = t[i + 10], v = t[i + 11], b = t[i + 12], D = t[i + 13], S = t[i + 14], A = t[i + 15], w = e(w = r[0], k = r[1], O = r[2], P = r[3], s, 7, u[0]), P = e(P, w, k, O, c, 12, u[1]), O = e(O, P, w, k, l, 17, u[2]), k = e(k, O, P, w, p, 22, u[3]);
  21299. w = e(w, k, O, P, d, 7, u[4]), P = e(P, w, k, O, h, 12, u[5]), O = e(O, P, w, k, f, 17, u[6]),
  21300. k = e(k, O, P, w, y, 22, u[7]), w = e(w, k, O, P, g, 7, u[8]), P = e(P, w, k, O, m, 12, u[9]),
  21301. O = e(O, P, w, k, _, 17, u[10]), k = e(k, O, P, w, v, 22, u[11]), w = e(w, k, O, P, b, 7, u[12]),
  21302. P = e(P, w, k, O, D, 12, u[13]), O = e(O, P, w, k, S, 17, u[14]), w = n(w, k = e(k, O, P, w, A, 22, u[15]), O, P, c, 5, u[16]),
  21303. P = n(P, w, k, O, f, 9, u[17]), O = n(O, P, w, k, v, 14, u[18]), k = n(k, O, P, w, s, 20, u[19]),
  21304. w = n(w, k, O, P, h, 5, u[20]), P = n(P, w, k, O, _, 9, u[21]), O = n(O, P, w, k, A, 14, u[22]),
  21305. k = n(k, O, P, w, d, 20, u[23]), w = n(w, k, O, P, m, 5, u[24]), P = n(P, w, k, O, S, 9, u[25]),
  21306. O = n(O, P, w, k, p, 14, u[26]), k = n(k, O, P, w, g, 20, u[27]), w = n(w, k, O, P, D, 5, u[28]),
  21307. P = n(P, w, k, O, l, 9, u[29]), O = n(O, P, w, k, y, 14, u[30]), w = o(w, k = n(k, O, P, w, b, 20, u[31]), O, P, h, 4, u[32]),
  21308. P = o(P, w, k, O, g, 11, u[33]), O = o(O, P, w, k, v, 16, u[34]), k = o(k, O, P, w, S, 23, u[35]),
  21309. w = o(w, k, O, P, c, 4, u[36]), P = o(P, w, k, O, d, 11, u[37]), O = o(O, P, w, k, y, 16, u[38]),
  21310. k = o(k, O, P, w, _, 23, u[39]), w = o(w, k, O, P, D, 4, u[40]), P = o(P, w, k, O, s, 11, u[41]),
  21311. O = o(O, P, w, k, p, 16, u[42]), k = o(k, O, P, w, f, 23, u[43]), w = o(w, k, O, P, m, 4, u[44]),
  21312. P = o(P, w, k, O, b, 11, u[45]), O = o(O, P, w, k, A, 16, u[46]), w = a(w, k = o(k, O, P, w, l, 23, u[47]), O, P, s, 6, u[48]),
  21313. P = a(P, w, k, O, y, 10, u[49]), O = a(O, P, w, k, S, 15, u[50]), k = a(k, O, P, w, h, 21, u[51]),
  21314. w = a(w, k, O, P, b, 6, u[52]), P = a(P, w, k, O, p, 10, u[53]), O = a(O, P, w, k, _, 15, u[54]),
  21315. k = a(k, O, P, w, c, 21, u[55]), w = a(w, k, O, P, g, 6, u[56]), P = a(P, w, k, O, A, 10, u[57]),
  21316. O = a(O, P, w, k, f, 15, u[58]), k = a(k, O, P, w, D, 21, u[59]), w = a(w, k, O, P, d, 6, u[60]),
  21317. P = a(P, w, k, O, v, 10, u[61]), O = a(O, P, w, k, l, 15, u[62]), k = a(k, O, P, w, m, 21, u[63]);
  21318. r[0] = r[0] + w | 0;
  21319. r[1] = r[1] + k | 0;
  21320. r[2] = r[2] + O | 0;
  21321. r[3] = r[3] + P | 0;
  21322. },
  21323. _doFinalize: function() {
  21324. var e = this._data, n = e.words, o = 8 * this._nDataBytes, i = 8 * e.sigBytes;
  21325. n[i >>> 5] |= 128 << 24 - i % 32;
  21326. var a = t.floor(o / 4294967296);
  21327. n[15 + (i + 64 >>> 9 << 4)] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8);
  21328. n[14 + (i + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
  21329. e.sigBytes = 4 * (n.length + 1);
  21330. this._process();
  21331. n = (e = this._hash).words;
  21332. for (o = 0; 4 > o; o++) i = n[o], n[o] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
  21333. return e;
  21334. },
  21335. clone: function() {
  21336. var t = s.clone.call(this);
  21337. t._hash = this._hash.clone();
  21338. return t;
  21339. }
  21340. });
  21341. r.MD5 = s._createHelper(l);
  21342. r.HmacMD5 = s._createHmacHelper(l);
  21343. })(Math);
  21344. (function() {
  21345. var t, e = i, n = (t = e.lib).Base, o = t.WordArray, a = (t = e.algo).EvpKDF = n.extend({
  21346. cfg: n.extend({
  21347. keySize: 4,
  21348. hasher: t.MD5,
  21349. iterations: 1
  21350. }),
  21351. init: function(t) {
  21352. this.cfg = this.cfg.extend(t);
  21353. },
  21354. compute: function(t, e) {
  21355. for (var n = (c = this.cfg).hasher.create(), i = o.create(), a = i.words, r = c.keySize, c = c.iterations; a.length < r; ) {
  21356. s && n.update(s);
  21357. var s = n.update(t).finalize(e);
  21358. n.reset();
  21359. for (var l = 1; l < c; l++) s = n.finalize(s), n.reset();
  21360. i.concat(s);
  21361. }
  21362. i.sigBytes = 4 * r;
  21363. return i;
  21364. }
  21365. });
  21366. e.EvpKDF = function(t, e, n) {
  21367. return a.create(n).compute(t, e);
  21368. };
  21369. })();
  21370. i.lib.Cipher || function() {
  21371. var t = (h = i).lib, e = t.Base, n = t.WordArray, o = t.BufferedBlockAlgorithm, a = h.enc.Base64, r = h.algo.EvpKDF, c = t.Cipher = o.extend({
  21372. cfg: e.extend(),
  21373. createEncryptor: function(t, e) {
  21374. return this.create(this._ENC_XFORM_MODE, t, e);
  21375. },
  21376. createDecryptor: function(t, e) {
  21377. return this.create(this._DEC_XFORM_MODE, t, e);
  21378. },
  21379. init: function(t, e, n) {
  21380. this.cfg = this.cfg.extend(n);
  21381. this._xformMode = t;
  21382. this._key = e;
  21383. this.reset();
  21384. },
  21385. reset: function() {
  21386. o.reset.call(this);
  21387. this._doReset();
  21388. },
  21389. process: function(t) {
  21390. this._append(t);
  21391. return this._process();
  21392. },
  21393. finalize: function(t) {
  21394. t && this._append(t);
  21395. return this._doFinalize();
  21396. },
  21397. keySize: 4,
  21398. ivSize: 4,
  21399. _ENC_XFORM_MODE: 1,
  21400. _DEC_XFORM_MODE: 2,
  21401. _createHelper: function(t) {
  21402. return {
  21403. encrypt: function(e, n, o) {
  21404. return ("string" == typeof n ? f : d).encrypt(t, e, n, o);
  21405. },
  21406. decrypt: function(e, n, o) {
  21407. return ("string" == typeof n ? f : d).decrypt(t, e, n, o);
  21408. }
  21409. };
  21410. }
  21411. });
  21412. t.StreamCipher = c.extend({
  21413. _doFinalize: function() {
  21414. return this._process(!0);
  21415. },
  21416. blockSize: 1
  21417. });
  21418. var s = h.mode = {}, l = function(t, e, n) {
  21419. var o = this._iv;
  21420. o ? this._iv = void 0 : o = this._prevBlock;
  21421. for (var i = 0; i < n; i++) t[e + i] ^= o[i];
  21422. }, u = (t.BlockCipherMode = e.extend({
  21423. createEncryptor: function(t, e) {
  21424. return this.Encryptor.create(t, e);
  21425. },
  21426. createDecryptor: function(t, e) {
  21427. return this.Decryptor.create(t, e);
  21428. },
  21429. init: function(t, e) {
  21430. this._cipher = t;
  21431. this._iv = e;
  21432. }
  21433. })).extend();
  21434. u.Encryptor = u.extend({
  21435. processBlock: function(t, e) {
  21436. var n = this._cipher, o = n.blockSize;
  21437. l.call(this, t, e, o);
  21438. n.encryptBlock(t, e);
  21439. this._prevBlock = t.slice(e, e + o);
  21440. }
  21441. });
  21442. u.Decryptor = u.extend({
  21443. processBlock: function(t, e) {
  21444. var n = this._cipher, o = n.blockSize, i = t.slice(e, e + o);
  21445. n.decryptBlock(t, e);
  21446. l.call(this, t, e, o);
  21447. this._prevBlock = i;
  21448. }
  21449. });
  21450. s = s.CBC = u;
  21451. u = (h.pad = {}).Pkcs7 = {
  21452. pad: function(t, e) {
  21453. for (var o, i = (o = (o = 4 * e) - t.sigBytes % o) << 24 | o << 16 | o << 8 | o, a = [], r = 0; r < o; r += 4) a.push(i);
  21454. o = n.create(a, o);
  21455. t.concat(o);
  21456. },
  21457. unpad: function(t) {
  21458. t.sigBytes -= 255 & t.words[t.sigBytes - 1 >>> 2];
  21459. }
  21460. };
  21461. t.BlockCipher = c.extend({
  21462. cfg: c.cfg.extend({
  21463. mode: s,
  21464. padding: u
  21465. }),
  21466. reset: function() {
  21467. c.reset.call(this);
  21468. var t = (e = this.cfg).iv, e = e.mode;
  21469. if (this._xformMode == this._ENC_XFORM_MODE) var n = e.createEncryptor; else n = e.createDecryptor,
  21470. this._minBufferSize = 1;
  21471. this._mode = n.call(e, this, t && t.words);
  21472. },
  21473. _doProcessBlock: function(t, e) {
  21474. this._mode.processBlock(t, e);
  21475. },
  21476. _doFinalize: function() {
  21477. var t = this.cfg.padding;
  21478. if (this._xformMode == this._ENC_XFORM_MODE) {
  21479. t.pad(this._data, this.blockSize);
  21480. var e = this._process(!0);
  21481. } else e = this._process(!0), t.unpad(e);
  21482. return e;
  21483. },
  21484. blockSize: 4
  21485. });
  21486. var p = t.CipherParams = e.extend({
  21487. init: function(t) {
  21488. this.mixIn(t);
  21489. },
  21490. toString: function(t) {
  21491. return (t || this.formatter).stringify(this);
  21492. }
  21493. }), d = (s = (h.format = {}).OpenSSL = {
  21494. stringify: function(t) {
  21495. var e = t.ciphertext;
  21496. return ((t = t.salt) ? n.create([ 1398893684, 1701076831 ]).concat(t).concat(e) : e).toString(a);
  21497. },
  21498. parse: function(t) {
  21499. var e = (t = a.parse(t)).words;
  21500. if (1398893684 == e[0] && 1701076831 == e[1]) {
  21501. var o = n.create(e.slice(2, 4));
  21502. e.splice(0, 4);
  21503. t.sigBytes -= 16;
  21504. }
  21505. return p.create({
  21506. ciphertext: t,
  21507. salt: o
  21508. });
  21509. }
  21510. }, t.SerializableCipher = e.extend({
  21511. cfg: e.extend({
  21512. format: s
  21513. }),
  21514. encrypt: function(t, e, n, o) {
  21515. o = this.cfg.extend(o);
  21516. var i = t.createEncryptor(n, o);
  21517. e = i.finalize(e);
  21518. i = i.cfg;
  21519. return p.create({
  21520. ciphertext: e,
  21521. key: n,
  21522. iv: i.iv,
  21523. algorithm: t,
  21524. mode: i.mode,
  21525. padding: i.padding,
  21526. blockSize: t.blockSize,
  21527. formatter: o.format
  21528. });
  21529. },
  21530. decrypt: function(t, e, n, o) {
  21531. o = this.cfg.extend(o);
  21532. e = this._parse(e, o.format);
  21533. return t.createDecryptor(n, o).finalize(e.ciphertext);
  21534. },
  21535. _parse: function(t, e) {
  21536. return "string" == typeof t ? e.parse(t, this) : t;
  21537. }
  21538. })), h = (h.kdf = {}).OpenSSL = {
  21539. execute: function(t, e, o, i) {
  21540. i || (i = n.random(8));
  21541. t = r.create({
  21542. keySize: e + o
  21543. }).compute(t, i);
  21544. o = n.create(t.words.slice(e), 4 * o);
  21545. t.sigBytes = 4 * e;
  21546. return p.create({
  21547. key: t,
  21548. iv: o,
  21549. salt: i
  21550. });
  21551. }
  21552. }, f = t.PasswordBasedCipher = d.extend({
  21553. cfg: d.cfg.extend({
  21554. kdf: h
  21555. }),
  21556. encrypt: function(t, e, n, o) {
  21557. n = (o = this.cfg.extend(o)).kdf.execute(n, t.keySize, t.ivSize);
  21558. o.iv = n.iv;
  21559. (t = d.encrypt.call(this, t, e, n.key, o)).mixIn(n);
  21560. return t;
  21561. },
  21562. decrypt: function(t, e, n, o) {
  21563. o = this.cfg.extend(o);
  21564. e = this._parse(e, o.format);
  21565. n = o.kdf.execute(n, t.keySize, t.ivSize, e.salt);
  21566. o.iv = n.iv;
  21567. return d.decrypt.call(this, t, e, n.key, o);
  21568. }
  21569. });
  21570. }();
  21571. (function() {
  21572. for (var t = i, e = t.lib.BlockCipher, n = t.algo, o = [], a = [], r = [], c = [], s = [], l = [], u = [], p = [], d = [], h = [], f = [], y = 0; 256 > y; y++) f[y] = 128 > y ? y << 1 : y << 1 ^ 283;
  21573. var g = 0, m = 0;
  21574. for (y = 0; 256 > y; y++) {
  21575. var _ = (_ = m ^ m << 1 ^ m << 2 ^ m << 3 ^ m << 4) >>> 8 ^ 255 & _ ^ 99;
  21576. o[g] = _;
  21577. a[_] = g;
  21578. var v = f[g], b = f[v], D = f[b], S = 257 * f[_] ^ 16843008 * _;
  21579. r[g] = S << 24 | S >>> 8;
  21580. c[g] = S << 16 | S >>> 16;
  21581. s[g] = S << 8 | S >>> 24;
  21582. l[g] = S;
  21583. S = 16843009 * D ^ 65537 * b ^ 257 * v ^ 16843008 * g;
  21584. u[_] = S << 24 | S >>> 8;
  21585. p[_] = S << 16 | S >>> 16;
  21586. d[_] = S << 8 | S >>> 24;
  21587. h[_] = S;
  21588. g ? (g = v ^ f[f[f[D ^ v]]], m ^= f[f[m]]) : g = m = 1;
  21589. }
  21590. var A = [ 0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 ];
  21591. n = n.AES = e.extend({
  21592. _doReset: function() {
  21593. for (var t = (n = this._key).words, e = n.sigBytes / 4, n = 4 * ((this._nRounds = e + 6) + 1), i = this._keySchedule = [], a = 0; a < n; a++) if (a < e) i[a] = t[a]; else {
  21594. var r = i[a - 1];
  21595. a % e ? 6 < e && 4 == a % e && (r = o[r >>> 24] << 24 | o[r >>> 16 & 255] << 16 | o[r >>> 8 & 255] << 8 | o[255 & r]) : (r = o[(r = r << 8 | r >>> 24) >>> 24] << 24 | o[r >>> 16 & 255] << 16 | o[r >>> 8 & 255] << 8 | o[255 & r],
  21596. r ^= A[a / e | 0] << 24);
  21597. i[a] = i[a - e] ^ r;
  21598. }
  21599. t = this._invKeySchedule = [];
  21600. for (e = 0; e < n; e++) a = n - e, r = e % 4 ? i[a] : i[a - 4], t[e] = 4 > e || 4 >= a ? r : u[o[r >>> 24]] ^ p[o[r >>> 16 & 255]] ^ d[o[r >>> 8 & 255]] ^ h[o[255 & r]];
  21601. },
  21602. encryptBlock: function(t, e) {
  21603. this._doCryptBlock(t, e, this._keySchedule, r, c, s, l, o);
  21604. },
  21605. decryptBlock: function(t, e) {
  21606. var n = t[e + 1];
  21607. t[e + 1] = t[e + 3];
  21608. t[e + 3] = n;
  21609. this._doCryptBlock(t, e, this._invKeySchedule, u, p, d, h, a);
  21610. n = t[e + 1];
  21611. t[e + 1] = t[e + 3];
  21612. t[e + 3] = n;
  21613. },
  21614. _doCryptBlock: function(t, e, n, o, i, a, r, c) {
  21615. for (var s = this._nRounds, l = t[e] ^ n[0], u = t[e + 1] ^ n[1], p = t[e + 2] ^ n[2], d = t[e + 3] ^ n[3], h = 4, f = 1; f < s; f++) {
  21616. var y = o[l >>> 24] ^ i[u >>> 16 & 255] ^ a[p >>> 8 & 255] ^ r[255 & d] ^ n[h++], g = o[u >>> 24] ^ i[p >>> 16 & 255] ^ a[d >>> 8 & 255] ^ r[255 & l] ^ n[h++], m = o[p >>> 24] ^ i[d >>> 16 & 255] ^ a[l >>> 8 & 255] ^ r[255 & u] ^ n[h++];
  21617. d = o[d >>> 24] ^ i[l >>> 16 & 255] ^ a[u >>> 8 & 255] ^ r[255 & p] ^ n[h++], l = y,
  21618. u = g, p = m;
  21619. }
  21620. y = (c[l >>> 24] << 24 | c[u >>> 16 & 255] << 16 | c[p >>> 8 & 255] << 8 | c[255 & d]) ^ n[h++];
  21621. g = (c[u >>> 24] << 24 | c[p >>> 16 & 255] << 16 | c[d >>> 8 & 255] << 8 | c[255 & l]) ^ n[h++];
  21622. m = (c[p >>> 24] << 24 | c[d >>> 16 & 255] << 16 | c[l >>> 8 & 255] << 8 | c[255 & u]) ^ n[h++];
  21623. d = (c[d >>> 24] << 24 | c[l >>> 16 & 255] << 16 | c[u >>> 8 & 255] << 8 | c[255 & p]) ^ n[h++];
  21624. t[e] = y;
  21625. t[e + 1] = g;
  21626. t[e + 2] = m;
  21627. t[e + 3] = d;
  21628. },
  21629. keySize: 8
  21630. });
  21631. t.AES = e._createHelper(n);
  21632. })();
  21633. e.exports = i;
  21634. cc._RF.pop();
  21635. }, {} ],
  21636. agreementTip: [ function(t, e, n) {
  21637. "use strict";
  21638. cc._RF.push(e, "27e8eZbIM9ApIU8LRLiALwU", "agreementTip");
  21639. var o, i = this && this.__extends || (o = function(t, e) {
  21640. return (o = Object.setPrototypeOf || {
  21641. __proto__: []
  21642. } instanceof Array && function(t, e) {
  21643. t.__proto__ = e;
  21644. } || function(t, e) {
  21645. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  21646. })(t, e);
  21647. }, function(t, e) {
  21648. o(t, e);
  21649. function n() {
  21650. this.constructor = t;
  21651. }
  21652. t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
  21653. }), a = this && this.__decorate || function(t, e, n, o) {
  21654. var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
  21655. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
  21656. return a > 3 && r && Object.defineProperty(e, n, r), r;
  21657. }, r = this && this.__awaiter || function(t, e, n, o) {
  21658. return new (n || (n = Promise))(function(i, a) {
  21659. function r(t) {
  21660. try {
  21661. s(o.next(t));
  21662. } catch (t) {
  21663. a(t);
  21664. }
  21665. }
  21666. function c(t) {
  21667. try {
  21668. s(o.throw(t));
  21669. } catch (t) {
  21670. a(t);
  21671. }
  21672. }
  21673. function s(t) {
  21674. t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
  21675. t(e);
  21676. })).then(r, c);
  21677. var e;
  21678. }
  21679. s((o = o.apply(t, e || [])).next());
  21680. });
  21681. }, c = this && this.__generator || function(t, e) {
  21682. var n, o, i, a, r = {
  21683. label: 0,
  21684. sent: function() {
  21685. if (1 & i[0]) throw i[1];
  21686. return i[1];
  21687. },
  21688. trys: [],
  21689. ops: []
  21690. };
  21691. return a = {
  21692. next: c(0),
  21693. throw: c(1),
  21694. return: c(2)
  21695. }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
  21696. return this;
  21697. }), a;
  21698. function c(t) {
  21699. return function(e) {
  21700. return s([ t, e ]);
  21701. };
  21702. }
  21703. function s(a) {
  21704. if (n) throw new TypeError("Generator is already executing.");
  21705. for (;r; ) try {
  21706. if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
  21707. 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
  21708. (o = 0, i) && (a = [ 2 & a[0], i.value ]);
  21709. switch (a[0]) {
  21710. case 0:
  21711. case 1:
  21712. i = a;
  21713. break;
  21714. case 4:
  21715. r.label++;
  21716. return {
  21717. value: a[1],
  21718. done: !1
  21719. };
  21720. case 5:
  21721. r.label++;
  21722. o = a[1];
  21723. a = [ 0 ];
  21724. continue;
  21725. case 7:
  21726. a = r.ops.pop();
  21727. r.trys.pop();
  21728. continue;
  21729. default:
  21730. if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
  21731. r = 0;
  21732. continue;
  21733. }
  21734. if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
  21735. r.label = a[1];
  21736. break;
  21737. }
  21738. if (6 === a[0] && r.label < i[1]) {
  21739. r.label = i[1];
  21740. i = a;
  21741. break;
  21742. }
  21743. if (i && r.label < i[2]) {
  21744. r.label = i[2];
  21745. r.ops.push(a);
  21746. break;
  21747. }
  21748. i[2] && r.ops.pop();
  21749. r.trys.pop();
  21750. continue;
  21751. }
  21752. a = e.call(t, r);
  21753. } catch (t) {
  21754. a = [ 6, t ];
  21755. o = 0;
  21756. } finally {
  21757. n = i = 0;
  21758. }
  21759. if (5 & a[0]) throw a[1];
  21760. return {
  21761. value: a[0] ? a[1] : void 0,
  21762. done: !0
  21763. };
  21764. }
  21765. };
  21766. Object.defineProperty(n, "__esModule", {
  21767. value: !0
  21768. });
  21769. var s = cc._decorator, l = s.ccclass, u = (s.property, function(t) {
  21770. i(e, t);
  21771. function e() {
  21772. return null !== t && t.apply(this, arguments) || this;
  21773. }
  21774. e.prototype.start = function() {};
  21775. e.prototype.clickRule = function(t) {
  21776. return r(this, void 0, void 0, function() {
  21777. return c(this, function() {
  21778. gData.setting.rule_type = parseInt(t);
  21779. return [ 2 ];
  21780. });
  21781. });
  21782. };
  21783. e.prototype.clickClose = function() {
  21784. mk.ui.closePanel(this.node.name);
  21785. };
  21786. return a([ l ], e);
  21787. }(cc.Component));
  21788. n.default = u;
  21789. cc._RF.pop();
  21790. }, {} ],
  21791. base64: [ function(t, e, n) {
  21792. "use strict";
  21793. cc._RF.push(e, "46dba/4JnZL8LqBzMYhW9lP", "base64");
  21794. Object.defineProperty(n, "__esModule", {
  21795. value: !0
  21796. });
  21797. var o = function() {
  21798. function t() {
  21799. this._keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  21800. this._utf8_encode = function(t) {
  21801. t = t.replace(/\r\n/g, "\n");
  21802. for (var e = "", n = 0; n < t.length; n++) {
  21803. var o = t.charCodeAt(n);
  21804. if (o < 128) e += String.fromCharCode(o); else if (o > 127 && o < 2048) {
  21805. e += String.fromCharCode(o >> 6 | 192);
  21806. e += String.fromCharCode(63 & o | 128);
  21807. } else {
  21808. e += String.fromCharCode(o >> 12 | 224);
  21809. e += String.fromCharCode(o >> 6 & 63 | 128);
  21810. e += String.fromCharCode(63 & o | 128);
  21811. }
  21812. }
  21813. return e;
  21814. };
  21815. this._utf8_decode = function(t) {
  21816. for (var e = "", n = 0, o = 0, i = 0, a = 0; n < t.length; ) if ((o = t.charCodeAt(n)) < 128) {
  21817. e += String.fromCharCode(o);
  21818. n++;
  21819. } else if (o > 191 && o < 224) {
  21820. i = t.charCodeAt(n + 1);
  21821. e += String.fromCharCode((31 & o) << 6 | 63 & i);
  21822. n += 2;
  21823. } else {
  21824. i = t.charCodeAt(n + 1);
  21825. a = t.charCodeAt(n + 2);
  21826. e += String.fromCharCode((15 & o) << 12 | (63 & i) << 6 | 63 & a);
  21827. n += 3;
  21828. }
  21829. return e;
  21830. };
  21831. }
  21832. Object.defineProperty(t, "Instance", {
  21833. get: function() {
  21834. this.instance || (this.instance = new t());
  21835. return this.instance;
  21836. },
  21837. enumerable: !1,
  21838. configurable: !0
  21839. });
  21840. t.prototype.encode = function(t) {
  21841. for (var e, n, o, i, a, r, c, s = "", l = 0, u = this._utf8_encode(t); l < u.length; ) {
  21842. i = (e = u.charCodeAt(l++)) >> 2;
  21843. a = (3 & e) << 4 | (n = u.charCodeAt(l++)) >> 4;
  21844. r = (15 & n) << 2 | (o = u.charCodeAt(l++)) >> 6;
  21845. c = 63 & o;
  21846. isNaN(n) ? r = c = 64 : isNaN(o) && (c = 64);
  21847. s = s + this._keyStr.charAt(i) + this._keyStr.charAt(a) + this._keyStr.charAt(r) + this._keyStr.charAt(c);
  21848. }
  21849. return s;
  21850. };
  21851. t.prototype.decode = function(t) {
  21852. for (var e, n, o, i, a, r, c = "", s = 0, l = t.replace(/[^A-Za-z0-9\+\/\=]/g, ""); s < l.length; ) {
  21853. e = this._keyStr.indexOf(l.charAt(s++)) << 2 | (i = this._keyStr.indexOf(l.charAt(s++))) >> 4;
  21854. n = (15 & i) << 4 | (a = this._keyStr.indexOf(l.charAt(s++))) >> 2;
  21855. o = (3 & a) << 6 | (r = this._keyStr.indexOf(l.charAt(s++)));
  21856. c += String.fromCharCode(e);
  21857. 64 != a && (c += String.fromCharCode(n));
  21858. 64 != r && (c += String.fromCharCode(o));
  21859. }
  21860. return this._utf8_decode(c);
  21861. };
  21862. t.instance = null;
  21863. return t;
  21864. }();
  21865. n.default = o;
  21866. cc._RF.pop();
  21867. }, {} ],
  21868. hmacSha256: [ function(t, e, n) {
  21869. "use strict";
  21870. cc._RF.push(e, "ab38aGoq49Irq9jzitxW0Z3", "hmacSha256");
  21871. Object.defineProperty(n, "__esModule", {
  21872. value: !0
  21873. });
  21874. n.hmacSha256 = void 0;
  21875. var o = function() {
  21876. function t() {
  21877. this.hexcase = 0;
  21878. this.b64pad = "";
  21879. this.sha256_K = new Array(1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993, -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987, 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885, -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872, -1866530822, -1538233109, -1090935817, -965641998);
  21880. }
  21881. Object.defineProperty(t, "Instance", {
  21882. get: function() {
  21883. this.instance || (this.instance = new t());
  21884. return this.instance;
  21885. },
  21886. enumerable: !1,
  21887. configurable: !0
  21888. });
  21889. t.prototype.hex_sha256 = function(t) {
  21890. return this.rstr2hex(this.rstr_sha256(this.str2rstr_utf8(t)));
  21891. };
  21892. t.prototype.b64_sha256 = function(t) {
  21893. return this.rstr2b64(this.rstr_sha256(this.str2rstr_utf8(t)));
  21894. };
  21895. t.prototype.any_sha256 = function(t, e) {
  21896. return this.rstr2any(this.rstr_sha256(this.str2rstr_utf8(t)), e);
  21897. };
  21898. t.prototype.hex_hmac_sha256 = function(t, e) {
  21899. return this.rstr2hex(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
  21900. };
  21901. t.prototype.b64_hmac_sha256 = function(t, e) {
  21902. return this.rstr2b64(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
  21903. };
  21904. t.prototype.any_hmac_sha256 = function(t, e, n) {
  21905. return this.rstr2any(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)), n);
  21906. };
  21907. t.prototype.sha256_vm_test = function() {
  21908. return "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" == this.hex_sha256("abc").toLowerCase();
  21909. };
  21910. t.prototype.rstr_sha256 = function(t) {
  21911. return this.binb2rstr(this.binb_sha256(this.rstr2binb(t), 8 * t.length));
  21912. };
  21913. t.prototype.rstr_hmac_sha256 = function(t, e) {
  21914. var n = this.rstr2binb(t);
  21915. n.length > 16 && (n = this.binb_sha256(n, 8 * t.length));
  21916. for (var o = Array(16), i = Array(16), a = 0; a < 16; a++) {
  21917. o[a] = 909522486 ^ n[a];
  21918. i[a] = 1549556828 ^ n[a];
  21919. }
  21920. var r = this.binb_sha256(o.concat(this.rstr2binb(e)), 512 + 8 * e.length);
  21921. return this.binb2rstr(this.binb_sha256(i.concat(r), 768));
  21922. };
  21923. t.prototype.rstr2hex = function(t) {
  21924. try {
  21925. this.hexcase;
  21926. } catch (t) {
  21927. this.hexcase = 0;
  21928. }
  21929. for (var e, n = this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < t.length; i++) {
  21930. e = t.charCodeAt(i);
  21931. o += n.charAt(e >>> 4 & 15) + n.charAt(15 & e);
  21932. }
  21933. return o;
  21934. };
  21935. t.prototype.rstr2b64 = function(t) {
  21936. try {
  21937. this.b64pad;
  21938. } catch (t) {
  21939. this.b64pad = "";
  21940. }
  21941. for (var e = "", n = t.length, o = 0; o < n; o += 3) for (var i = t.charCodeAt(o) << 16 | (o + 1 < n ? t.charCodeAt(o + 1) << 8 : 0) | (o + 2 < n ? t.charCodeAt(o + 2) : 0), a = 0; a < 4; a++) 8 * o + 6 * a > 8 * t.length ? e += this.b64pad : e += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i >>> 6 * (3 - a) & 63);
  21942. return e;
  21943. };
  21944. t.prototype.rstr2any = function(t, e) {
  21945. var n, o, i, a, r = e.length, c = Array(), s = Array(Math.ceil(t.length / 2));
  21946. for (n = 0; n < s.length; n++) s[n] = t.charCodeAt(2 * n) << 8 | t.charCodeAt(2 * n + 1);
  21947. for (;s.length > 0; ) {
  21948. a = Array();
  21949. i = 0;
  21950. for (n = 0; n < s.length; n++) {
  21951. i = (i << 16) + s[n];
  21952. i -= (o = Math.floor(i / r)) * r;
  21953. (a.length > 0 || o > 0) && (a[a.length] = o);
  21954. }
  21955. c[c.length] = i;
  21956. s = a;
  21957. }
  21958. var l = "";
  21959. for (n = c.length - 1; n >= 0; n--) l += e.charAt(c[n]);
  21960. var u = Math.ceil(8 * t.length / (Math.log(e.length) / Math.log(2)));
  21961. for (n = l.length; n < u; n++) l = e[0] + l;
  21962. return l;
  21963. };
  21964. t.prototype.str2rstr_utf8 = function(t) {
  21965. for (var e, n, o = "", i = -1; ++i < t.length; ) {
  21966. e = t.charCodeAt(i);
  21967. n = i + 1 < t.length ? t.charCodeAt(i + 1) : 0;
  21968. if (55296 <= e && e <= 56319 && 56320 <= n && n <= 57343) {
  21969. e = 65536 + ((1023 & e) << 10) + (1023 & n);
  21970. i++;
  21971. }
  21972. e <= 127 ? o += String.fromCharCode(e) : e <= 2047 ? o += String.fromCharCode(192 | e >>> 6 & 31, 128 | 63 & e) : e <= 65535 ? o += String.fromCharCode(224 | e >>> 12 & 15, 128 | e >>> 6 & 63, 128 | 63 & e) : e <= 2097151 && (o += String.fromCharCode(240 | e >>> 18 & 7, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | 63 & e));
  21973. }
  21974. return o;
  21975. };
  21976. t.prototype.str2rstr_utf16le = function(t) {
  21977. for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(255 & t.charCodeAt(n), t.charCodeAt(n) >>> 8 & 255);
  21978. return e;
  21979. };
  21980. t.prototype.str2rstr_utf16be = function(t) {
  21981. for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(t.charCodeAt(n) >>> 8 & 255, 255 & t.charCodeAt(n));
  21982. return e;
  21983. };
  21984. t.prototype.rstr2binb = function(t) {
  21985. for (var e = Array(t.length >> 2), n = 0; n < e.length; n++) e[n] = 0;
  21986. for (n = 0; n < 8 * t.length; n += 8) e[n >> 5] |= (255 & t.charCodeAt(n / 8)) << 24 - n % 32;
  21987. return e;
  21988. };
  21989. t.prototype.binb2rstr = function(t) {
  21990. for (var e = "", n = 0; n < 32 * t.length; n += 8) e += String.fromCharCode(t[n >> 5] >>> 24 - n % 32 & 255);
  21991. return e;
  21992. };
  21993. t.prototype.sha256_S = function(t, e) {
  21994. return t >>> e | t << 32 - e;
  21995. };
  21996. t.prototype.sha256_R = function(t, e) {
  21997. return t >>> e;
  21998. };
  21999. t.prototype.sha256_Ch = function(t, e, n) {
  22000. return t & e ^ ~t & n;
  22001. };
  22002. t.prototype.sha256_Maj = function(t, e, n) {
  22003. return t & e ^ t & n ^ e & n;
  22004. };
  22005. t.prototype.sha256_Sigma0256 = function(t) {
  22006. return this.sha256_S(t, 2) ^ this.sha256_S(t, 13) ^ this.sha256_S(t, 22);
  22007. };
  22008. t.prototype.sha256_Sigma1256 = function(t) {
  22009. return this.sha256_S(t, 6) ^ this.sha256_S(t, 11) ^ this.sha256_S(t, 25);
  22010. };
  22011. t.prototype.sha256_Gamma0256 = function(t) {
  22012. return this.sha256_S(t, 7) ^ this.sha256_S(t, 18) ^ this.sha256_R(t, 3);
  22013. };
  22014. t.prototype.sha256_Gamma1256 = function(t) {
  22015. return this.sha256_S(t, 17) ^ this.sha256_S(t, 19) ^ this.sha256_R(t, 10);
  22016. };
  22017. t.prototype.sha256_Sigma0512 = function(t) {
  22018. return this.sha256_S(t, 28) ^ this.sha256_S(t, 34) ^ this.sha256_S(t, 39);
  22019. };
  22020. t.prototype.sha256_Sigma1512 = function(t) {
  22021. return this.sha256_S(t, 14) ^ this.sha256_S(t, 18) ^ this.sha256_S(t, 41);
  22022. };
  22023. t.prototype.sha256_Gamma0512 = function(t) {
  22024. return this.sha256_S(t, 1) ^ this.sha256_S(t, 8) ^ this.sha256_R(t, 7);
  22025. };
  22026. t.prototype.sha256_Gamma1512 = function(t) {
  22027. return this.sha256_S(t, 19) ^ this.sha256_S(t, 61) ^ this.sha256_R(t, 6);
  22028. };
  22029. t.prototype.binb_sha256 = function(t, e) {
  22030. var n, o, i, a, r, c, s, l, u, p, d, h, f = new Array(1779033703, -1150833019, 1013904242, -1521486534, 1359893119, -1694144372, 528734635, 1541459225), y = new Array(64);
  22031. t[e >> 5] |= 128 << 24 - e % 32;
  22032. t[15 + (e + 64 >> 9 << 4)] = e;
  22033. for (u = 0; u < t.length; u += 16) {
  22034. n = f[0];
  22035. o = f[1];
  22036. i = f[2];
  22037. a = f[3];
  22038. r = f[4];
  22039. c = f[5];
  22040. s = f[6];
  22041. l = f[7];
  22042. for (p = 0; p < 64; p++) {
  22043. y[p] = p < 16 ? t[p + u] : this.safe_add(this.safe_add(this.safe_add(this.sha256_Gamma1256(y[p - 2]), y[p - 7]), this.sha256_Gamma0256(y[p - 15])), y[p - 16]);
  22044. d = this.safe_add(this.safe_add(this.safe_add(this.safe_add(l, this.sha256_Sigma1256(r)), this.sha256_Ch(r, c, s)), this.sha256_K[p]), y[p]);
  22045. h = this.safe_add(this.sha256_Sigma0256(n), this.sha256_Maj(n, o, i));
  22046. l = s;
  22047. s = c;
  22048. c = r;
  22049. r = this.safe_add(a, d);
  22050. a = i;
  22051. i = o;
  22052. o = n;
  22053. n = this.safe_add(d, h);
  22054. }
  22055. f[0] = this.safe_add(n, f[0]);
  22056. f[1] = this.safe_add(o, f[1]);
  22057. f[2] = this.safe_add(i, f[2]);
  22058. f[3] = this.safe_add(a, f[3]);
  22059. f[4] = this.safe_add(r, f[4]);
  22060. f[5] = this.safe_add(c, f[5]);
  22061. f[6] = this.safe_add(s, f[6]);
  22062. f[7] = this.safe_add(l, f[7]);
  22063. }
  22064. return f;
  22065. };
  22066. t.prototype.safe_add = function(t, e) {
  22067. var n = (65535 & t) + (65535 & e);
  22068. return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
  22069. };
  22070. t.instance = null;
  22071. return t;
  22072. }();
  22073. n.hmacSha256 = o;
  22074. cc._RF.pop();
  22075. }, {} ],
  22076. md5: [ function(t, e) {
  22077. "use strict";
  22078. cc._RF.push(e, "45a9cfK7ZRGsb06t/E4+mjC", "md5");
  22079. var n = 0, o = 8;
  22080. function i(t, e) {
  22081. t[e >> 5] |= 128 << e % 32;
  22082. t[14 + (e + 64 >>> 9 << 4)] = e;
  22083. for (var n = 1732584193, o = -271733879, i = -1732584194, a = 271733878, p = 0; p < t.length; p += 16) {
  22084. var d = n, h = o, f = i, y = a;
  22085. n = r(n, o, i, a, t[p + 0], 7, -680876936);
  22086. a = r(a, n, o, i, t[p + 1], 12, -389564586);
  22087. i = r(i, a, n, o, t[p + 2], 17, 606105819);
  22088. o = r(o, i, a, n, t[p + 3], 22, -1044525330);
  22089. n = r(n, o, i, a, t[p + 4], 7, -176418897);
  22090. a = r(a, n, o, i, t[p + 5], 12, 1200080426);
  22091. i = r(i, a, n, o, t[p + 6], 17, -1473231341);
  22092. o = r(o, i, a, n, t[p + 7], 22, -45705983);
  22093. n = r(n, o, i, a, t[p + 8], 7, 1770035416);
  22094. a = r(a, n, o, i, t[p + 9], 12, -1958414417);
  22095. i = r(i, a, n, o, t[p + 10], 17, -42063);
  22096. o = r(o, i, a, n, t[p + 11], 22, -1990404162);
  22097. n = r(n, o, i, a, t[p + 12], 7, 1804603682);
  22098. a = r(a, n, o, i, t[p + 13], 12, -40341101);
  22099. i = r(i, a, n, o, t[p + 14], 17, -1502002290);
  22100. n = c(n, o = r(o, i, a, n, t[p + 15], 22, 1236535329), i, a, t[p + 1], 5, -165796510);
  22101. a = c(a, n, o, i, t[p + 6], 9, -1069501632);
  22102. i = c(i, a, n, o, t[p + 11], 14, 643717713);
  22103. o = c(o, i, a, n, t[p + 0], 20, -373897302);
  22104. n = c(n, o, i, a, t[p + 5], 5, -701558691);
  22105. a = c(a, n, o, i, t[p + 10], 9, 38016083);
  22106. i = c(i, a, n, o, t[p + 15], 14, -660478335);
  22107. o = c(o, i, a, n, t[p + 4], 20, -405537848);
  22108. n = c(n, o, i, a, t[p + 9], 5, 568446438);
  22109. a = c(a, n, o, i, t[p + 14], 9, -1019803690);
  22110. i = c(i, a, n, o, t[p + 3], 14, -187363961);
  22111. o = c(o, i, a, n, t[p + 8], 20, 1163531501);
  22112. n = c(n, o, i, a, t[p + 13], 5, -1444681467);
  22113. a = c(a, n, o, i, t[p + 2], 9, -51403784);
  22114. i = c(i, a, n, o, t[p + 7], 14, 1735328473);
  22115. n = s(n, o = c(o, i, a, n, t[p + 12], 20, -1926607734), i, a, t[p + 5], 4, -378558);
  22116. a = s(a, n, o, i, t[p + 8], 11, -2022574463);
  22117. i = s(i, a, n, o, t[p + 11], 16, 1839030562);
  22118. o = s(o, i, a, n, t[p + 14], 23, -35309556);
  22119. n = s(n, o, i, a, t[p + 1], 4, -1530992060);
  22120. a = s(a, n, o, i, t[p + 4], 11, 1272893353);
  22121. i = s(i, a, n, o, t[p + 7], 16, -155497632);
  22122. o = s(o, i, a, n, t[p + 10], 23, -1094730640);
  22123. n = s(n, o, i, a, t[p + 13], 4, 681279174);
  22124. a = s(a, n, o, i, t[p + 0], 11, -358537222);
  22125. i = s(i, a, n, o, t[p + 3], 16, -722521979);
  22126. o = s(o, i, a, n, t[p + 6], 23, 76029189);
  22127. n = s(n, o, i, a, t[p + 9], 4, -640364487);
  22128. a = s(a, n, o, i, t[p + 12], 11, -421815835);
  22129. i = s(i, a, n, o, t[p + 15], 16, 530742520);
  22130. n = l(n, o = s(o, i, a, n, t[p + 2], 23, -995338651), i, a, t[p + 0], 6, -198630844);
  22131. a = l(a, n, o, i, t[p + 7], 10, 1126891415);
  22132. i = l(i, a, n, o, t[p + 14], 15, -1416354905);
  22133. o = l(o, i, a, n, t[p + 5], 21, -57434055);
  22134. n = l(n, o, i, a, t[p + 12], 6, 1700485571);
  22135. a = l(a, n, o, i, t[p + 3], 10, -1894986606);
  22136. i = l(i, a, n, o, t[p + 10], 15, -1051523);
  22137. o = l(o, i, a, n, t[p + 1], 21, -2054922799);
  22138. n = l(n, o, i, a, t[p + 8], 6, 1873313359);
  22139. a = l(a, n, o, i, t[p + 15], 10, -30611744);
  22140. i = l(i, a, n, o, t[p + 6], 15, -1560198380);
  22141. o = l(o, i, a, n, t[p + 13], 21, 1309151649);
  22142. n = l(n, o, i, a, t[p + 4], 6, -145523070);
  22143. a = l(a, n, o, i, t[p + 11], 10, -1120210379);
  22144. i = l(i, a, n, o, t[p + 2], 15, 718787259);
  22145. o = l(o, i, a, n, t[p + 9], 21, -343485551);
  22146. n = u(n, d);
  22147. o = u(o, h);
  22148. i = u(i, f);
  22149. a = u(a, y);
  22150. }
  22151. return Array(n, o, i, a);
  22152. }
  22153. function a(t, e, n, o, i, a) {
  22154. return u((r = u(u(e, t), u(o, a))) << (c = i) | r >>> 32 - c, n);
  22155. var r, c;
  22156. }
  22157. function r(t, e, n, o, i, r, c) {
  22158. return a(e & n | ~e & o, t, e, i, r, c);
  22159. }
  22160. function c(t, e, n, o, i, r, c) {
  22161. return a(e & o | n & ~o, t, e, i, r, c);
  22162. }
  22163. function s(t, e, n, o, i, r, c) {
  22164. return a(e ^ n ^ o, t, e, i, r, c);
  22165. }
  22166. function l(t, e, n, o, i, r, c) {
  22167. return a(n ^ (e | ~o), t, e, i, r, c);
  22168. }
  22169. function u(t, e) {
  22170. var n = (65535 & t) + (65535 & e);
  22171. return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
  22172. }
  22173. function p(t) {
  22174. for (var e = Array(), n = (1 << o) - 1, i = 0; i < t.length * o; i += o) e[i >> 5] |= (t.charCodeAt(i / o) & n) << i % 32;
  22175. return e;
  22176. }
  22177. function d(t) {
  22178. for (var e = n ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < 4 * t.length; i++) o += e.charAt(t[i >> 2] >> i % 4 * 8 + 4 & 15) + e.charAt(t[i >> 2] >> i % 4 * 8 & 15);
  22179. return o;
  22180. }
  22181. e.exports = {
  22182. hex_md5: function(t) {
  22183. return d(i(p(t), t.length * o));
  22184. }
  22185. };
  22186. cc._RF.pop();
  22187. }, {} ],
  22188. sha1: [ function(t, e) {
  22189. "use strict";
  22190. cc._RF.push(e, "7bba9WhEiZI5aaSIPCE1/Ng", "sha1");
  22191. var n = 0, o = 8;
  22192. function i(t, e) {
  22193. t[e >> 5] |= 128 << 24 - e % 32;
  22194. t[15 + (e + 64 >> 9 << 4)] = e;
  22195. for (var n = Array(80), o = 1732584193, i = -271733879, l = -1732584194, u = 271733878, p = -1009589776, d = 0; d < t.length; d += 16) {
  22196. for (var h = o, f = i, y = l, g = u, m = p, _ = 0; _ < 80; _++) {
  22197. n[_] = _ < 16 ? t[d + _] : s(n[_ - 3] ^ n[_ - 8] ^ n[_ - 14] ^ n[_ - 16], 1);
  22198. var v = c(c(s(o, 5), a(_, i, l, u)), c(c(p, n[_]), r(_)));
  22199. p = u;
  22200. u = l;
  22201. l = s(i, 30);
  22202. i = o;
  22203. o = v;
  22204. }
  22205. o = c(o, h);
  22206. i = c(i, f);
  22207. l = c(l, y);
  22208. u = c(u, g);
  22209. p = c(p, m);
  22210. }
  22211. return Array(o, i, l, u, p);
  22212. }
  22213. function a(t, e, n, o) {
  22214. return t < 20 ? e & n | ~e & o : t < 40 ? e ^ n ^ o : t < 60 ? e & n | e & o | n & o : e ^ n ^ o;
  22215. }
  22216. function r(t) {
  22217. return t < 20 ? 1518500249 : t < 40 ? 1859775393 : t < 60 ? -1894007588 : -899497514;
  22218. }
  22219. function c(t, e) {
  22220. var n = (65535 & t) + (65535 & e);
  22221. return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
  22222. }
  22223. function s(t, e) {
  22224. return t << e | t >>> 32 - e;
  22225. }
  22226. function l(t) {
  22227. for (var e = Array(), n = (1 << o) - 1, i = 0; i < t.length * o; i += o) e[i >> 5] |= (t.charCodeAt(i / o) & n) << 24 - i % 32;
  22228. return e;
  22229. }
  22230. function u(t) {
  22231. for (var e = n ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < 4 * t.length; i++) o += e.charAt(t[i >> 2] >> 8 * (3 - i % 4) + 4 & 15) + e.charAt(t[i >> 2] >> 8 * (3 - i % 4) & 15);
  22232. return o;
  22233. }
  22234. e.exports = {
  22235. hex_sha1: function(t) {
  22236. return u(i(l(t), t.length * o));
  22237. }
  22238. };
  22239. cc._RF.pop();
  22240. }, {} ],
  22241. zgSingleton: [ function(t, e, n) {
  22242. "use strict";
  22243. cc._RF.push(e, "ef0c4TA8utMIpuCAX/anO0Q", "zgSingleton");
  22244. Object.defineProperty(n, "__esModule", {
  22245. value: !0
  22246. });
  22247. n.zgSingleton = void 0;
  22248. var o = function() {
  22249. function t() {}
  22250. t.getInstance = function() {
  22251. this.instance || (this.instance = new this());
  22252. return this.instance;
  22253. };
  22254. return t;
  22255. }();
  22256. n.zgSingleton = o;
  22257. cc._RF.pop();
  22258. }, {} ]
  22259. }, {}, [ "Main", "GamePlay", "Enum", "GameConst", "PlayerConst", "DataMgr", "EffectMgr", "PoolMgr", "StorageMgr", "GameLogic", "Util", "AniFinishDestroy", "AniOpenPanel", "ArtNum", "Recycle", "SpineEffectPlay", "ChangeCellItemUI", "GameOverUI", "GetPropUI", "GuideAuthUI", "PauseUI", "BonusTip", "EliminateScore", "GetScore", "GetTargetScoreTip", "ScoreEnergy", "TipSpriteItemUI", "CellItem", "SelectCellItemBtn", "SelectSceneItem", "TipItemUI", "BangsFit", "BtnClosePanel", "BtnOpenPanel", "Button", "LoadingBar", "NumberAnim", "PageView", "SetGray", "TabSwitching", "TableView", "TouchHelper", "UIBG", "ClickMoveBy", "EffectOpenAndClose", "FlyNode", "FrameAnimation", "RopeSwung", "RotateAround", "TweenCast", "TweenEasing", "UITween", "ZPathFalling", "AdData", "AppData", "GData", "GameData", "HttpData", "LoginData", "StorageData", "WechatData", "BlessingBagData", "CashNormalData", "CashPigData", "CashProData", "FissionData", "GuideData", "GuideWeakData", "HelpData", "MoreGameData", "PigBankData", "PushData", "ReceiptNoticeData", "RedBagCashData", "RedCodeData", "RedeemData", "RewardData", "SettingData", "SignData", "TurnableData", "FunBtns", "Game", "agreementTip", "BlessingBag", "BlessingBagItem", "CashNormal", "CashNormalItem", "CashPro", "ForceUpdate", "GuideWeak", "Guide", "GuideVO", "Help", "HotUpdatePanel", "Login", "BtnMoreGame", "MoreGame", "MoreGameBanner", "MoreGameNormalItem", "MoreGamePicItem", "MoreGamePopNode", "PointItem", "PigBank", "ReceiptNotice", "RedBagCash", "RedBagCashItem", "RedBagCode", "RedBagCodeItem", "RedCode", "VideoNode", "RedeemNode", "Reward", "Rule", "Setting", "Sign", "SignIconItem", "SignItem", "Turnable", "TurnableItem", "MKSwitch", "Data", "BuglySDK", "IADSDKMgr", "ATBanner", "ATBannerJS", "ATInterstitial", "ATInterstitialJS", "ATNative", "ATNativeJS", "ATRewardVideo", "ATRewardVideoJS", "ATSDKMgr", "ATSDKMgrJS", "ATBannerJSSDK", "ATInterstitialJSSDK", "ATJSSDK", "ATNativeJSSDK", "ATRewardedVideoJSSDK", "ATAndroidBannerJS", "ATAndroidInterstitialJS", "ATAndroidJS", "ATAndroidNativeJS", "ATAndroidRewardedVideoJS", "ATiOSBannerJS", "ATiOSInterstitialJS", "ATiOSJS", "ATiOSNativeJS", "ATiOSRewardedVideoJS", "zgSingleton", "AliRiskManager", "HotUpdate", "AdSystem", "AudioSystem", "DataSystem", "EventSystem", "FlySystem", "GuideSystem", "HttpSystem", "JsbSystem", "MKSystem", "PoolSystem", "TimerSystem", "TipSystem", "UISystem", "EncryptUtil", "FileUtil", "GameUtil", "LoadResUtil", "LogUtil", "MathUtil", "StorageUtil", "StringUtil", "TimeUtil", "TweenUtil", "aes", "base64", "hmacSha256", "md5", "sha1" ]);