c2runtime.js 207 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301
  1. // Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
  2. 'use strict';
  3. function s() {
  4. return function() {}
  5. }
  6. function ca(l) {
  7. return function() {
  8. return this[l]
  9. }
  10. }
  11. function w(l) {
  12. return function() {
  13. return l
  14. }
  15. }
  16. var da = {},
  17. ea, fa, ga, y, ha, B, F, la, ma, na, G, oa, pa, qa, ra, sa, ta, ua, va, wa, J, xa, ya, za, Ba, Ca, Da, Ea, Fa, Ga, Ha, Ia, Ja, Ka, M, La, Ma, Na, Oa, Pa, Qa, Ra, Sa, Ta, Ua, Va, Wa, Xa, Ya, Za, $a, ab, bb, cb, db, eb, fb, gb, hb, ib, jb, kb, lb, mb, nb, ob, pb, qb, rb, sb, tb, ub, vb, wb, xb, yb, zb, Ab, N, Bb, Cb, Db, O, Eb, Fb = {},
  18. Gb = {};
  19. "function" !== typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === typeof "test".__proto__ ?
  20. function(l) {
  21. return l.__proto__
  22. }: function(l) {
  23. return l.constructor.prototype
  24. }); (function() {
  25. function l(b, m, k, n) {
  26. this.set(b, m, k, n)
  27. }
  28. function q() {
  29. this.Wa = this.Va = this.Ya = this.Xa = this.cb = this.bb = this.ra = this.qa = 0
  30. }
  31. function a(b, m, k, n) {
  32. b < m ? k < n ? (t = b < k ? b: k, r = m > n ? m: n) : (t = b < n ? b: n, r = m > k ? m: k) : k < n ? (t = m < k ? m: k, r = b > n ? b: n) : (t = m < n ? m: n, r = b > k ? b: k)
  33. }
  34. function g() {
  35. this.Ec = this.nc = null;
  36. this.ie = 0;
  37. m && (this.nc = new Set);
  38. this.ze = [];
  39. this.$c = !0
  40. }
  41. function d(b) {
  42. n[ka++] = b
  43. }
  44. function u() {
  45. this.ja = this.Kg = this.y = this.kh = 0
  46. }
  47. function h(b) {
  48. this.qe = [];
  49. this.Aj = this.Cj = this.Dj = this.Bj = 0;
  50. this.sf(b)
  51. }
  52. function c(b, m) {
  53. this.Hm = b;
  54. this.Gm = m;
  55. this.cells = {}
  56. }
  57. function f(b, m, k) {
  58. var n;
  59. return x.length ? (n = x.pop(), n.Sn = b, n.x = m, n.y = k, n) : new fa(b, m, k)
  60. }
  61. function e(b, m, k) {
  62. this.Sn = b;
  63. this.x = m;
  64. this.y = k;
  65. this.rg = new ga
  66. }
  67. y = function(b) {
  68. window.console && window.console.log && window.console.log(b)
  69. };
  70. ea = function(b) {
  71. return b
  72. };
  73. ha = function(b) {
  74. return "undefined" === typeof b
  75. };
  76. B = function(b) {
  77. return "number" === typeof b
  78. };
  79. F = function(b) {
  80. return "string" === typeof b
  81. };
  82. la = function(b) {
  83. return 0 > b ? -b: b
  84. };
  85. ma = function(b, m) {
  86. return b < m ? b: m
  87. };
  88. na = Math.PI;
  89. G = function(b) {
  90. return 0 <= b ? b | 0 : (b | 0) - 1
  91. };
  92. oa = function(b) {
  93. var m = b | 0;
  94. return m === b ? m: m + 1
  95. };
  96. pa = function(b, m, k, n, d, c, x, e) {
  97. var v, h, f, r;
  98. b < k ? (h = b, v = k) : (h = k, v = b);
  99. d < x ? (r = d, f = x) : (r = x, f = d);
  100. if (v < r || h > f) return ! 1;
  101. m < n ? (h = m, v = n) : (h = n, v = m);
  102. c < e ? (r = c, f = e) : (r = e, f = c);
  103. if (v < r || h > f) return ! 1;
  104. v = d - b + x - k;
  105. h = c - m + e - n;
  106. b = k - b;
  107. m = n - m;
  108. d = x - d;
  109. c = e - c;
  110. e = la(m * d - c * b);
  111. return la(d * h - c * v) > e ? !1 : la(b * h - m * v) <= e
  112. };
  113. l.prototype.set = function(b, m, k, n) {
  114. this.left = b;
  115. this.top = m;
  116. this.right = k;
  117. this.bottom = n
  118. };
  119. l.prototype.copy = function(b) {
  120. this.left = b.left;
  121. this.top = b.top;
  122. this.right = b.right;
  123. this.bottom = b.bottom
  124. };
  125. l.prototype.width = function() {
  126. return this.right - this.left
  127. };
  128. l.prototype.height = function() {
  129. return this.bottom - this.top
  130. };
  131. l.prototype.offset = function(b, m) {
  132. this.left += b;
  133. this.top += m;
  134. this.right += b;
  135. this.bottom += m;
  136. return this
  137. };
  138. l.prototype.normalize = function() {
  139. var b = 0;
  140. this.left > this.right && (b = this.left, this.left = this.right, this.right = b);
  141. this.top > this.bottom && (b = this.top, this.top = this.bottom, this.bottom = b)
  142. };
  143. l.prototype.ec = function(b, m) {
  144. return b >= this.left && b <= this.right && m >= this.top && m <= this.bottom
  145. };
  146. l.prototype.Tm = function(b) {
  147. return this.left === b.left && this.top === b.top && this.right === b.right && this.bottom === b.bottom
  148. };
  149. qa = l;
  150. q.prototype.Eg = function(b) {
  151. this.qa = b.left;
  152. this.ra = b.top;
  153. this.bb = b.right;
  154. this.cb = b.top;
  155. this.Xa = b.right;
  156. this.Ya = b.bottom;
  157. this.Va = b.left;
  158. this.Wa = b.bottom
  159. };
  160. q.prototype.fl = function(b, m) {
  161. if (0 === m) this.Eg(b);
  162. else {
  163. var k = Math.sin(m),
  164. n = Math.cos(m),
  165. d = b.left * k,
  166. c = b.top * k,
  167. e = b.right * k,
  168. k = b.bottom * k,
  169. x = b.left * n,
  170. v = b.top * n,
  171. h = b.right * n,
  172. n = b.bottom * n;
  173. this.qa = x - c;
  174. this.ra = v + d;
  175. this.bb = h - c;
  176. this.cb = v + e;
  177. this.Xa = h - k;
  178. this.Ya = n + e;
  179. this.Va = x - k;
  180. this.Wa = n + d
  181. }
  182. };
  183. q.prototype.offset = function(b, m) {
  184. this.qa += b;
  185. this.ra += m;
  186. this.bb += b;
  187. this.cb += m;
  188. this.Xa += b;
  189. this.Ya += m;
  190. this.Va += b;
  191. this.Wa += m;
  192. return this
  193. };
  194. var t = 0,
  195. r = 0;
  196. q.prototype.Fj = function(b) {
  197. a(this.qa, this.bb, this.Xa, this.Va);
  198. b.left = t;
  199. b.right = r;
  200. a(this.ra, this.cb, this.Ya, this.Wa);
  201. b.top = t;
  202. b.bottom = r
  203. };
  204. q.prototype.ec = function(b, m) {
  205. var k = this.bb - this.qa,
  206. n = this.cb - this.ra,
  207. d = this.Xa - this.qa,
  208. c = this.Ya - this.ra,
  209. e = b - this.qa,
  210. x = m - this.ra,
  211. v = k * k + n * n,
  212. h = k * d + n * c,
  213. n = k * e + n * x,
  214. f = d * d + c * c,
  215. r = d * e + c * x,
  216. a = 1 / (v * f - h * h),
  217. k = (f * n - h * r) * a,
  218. v = (v * r - h * n) * a;
  219. if (0 <= k && 0 < v && 1 > k + v) return ! 0;
  220. k = this.Va - this.qa;
  221. n = this.Wa - this.ra;
  222. v = k * k + n * n;
  223. h = k * d + n * c;
  224. n = k * e + n * x;
  225. a = 1 / (v * f - h * h);
  226. k = (f * n - h * r) * a;
  227. v = (v * r - h * n) * a;
  228. return 0 <= k && 0 < v && 1 > k + v
  229. };
  230. q.prototype.hh = function(b, m) {
  231. if (m) switch (b) {
  232. case 0:
  233. return this.qa;
  234. case 1:
  235. return this.bb;
  236. case 2:
  237. return this.Xa;
  238. case 3:
  239. return this.Va;
  240. case 4:
  241. return this.qa;
  242. default:
  243. return this.qa
  244. } else switch (b) {
  245. case 0:
  246. return this.ra;
  247. case 1:
  248. return this.cb;
  249. case 2:
  250. return this.Ya;
  251. case 3:
  252. return this.Wa;
  253. case 4:
  254. return this.ra;
  255. default:
  256. return this.ra
  257. }
  258. };
  259. ra = q;
  260. sa = function(b, m) {
  261. for (var k in m) m.hasOwnProperty(k) && (b[k] = m[k]);
  262. return b
  263. };
  264. ta = function(b, m) {
  265. var k, n;
  266. m = G(m);
  267. if (! (0 > m || m >= b.length)) {
  268. k = m;
  269. for (n = b.length - 1; k < n; k++) b[k] = b[k + 1];
  270. b.length = n
  271. }
  272. };
  273. ua = function(b, m) {
  274. b.length = m.length;
  275. var k, n;
  276. k = 0;
  277. for (n = m.length; k < n; k++) b[k] = m[k]
  278. };
  279. va = function(b, m) {
  280. var k, n;
  281. k = 0;
  282. for (n = b.length; k < n; ++k) if (b[k] === m) return k;
  283. return - 1
  284. };
  285. wa = function(b, m) {
  286. var k = va(b, m); - 1 !== k && ta(b, k)
  287. };
  288. J = function(b) {
  289. return b / (180 / na)
  290. };
  291. xa = function(b) {
  292. return b * (180 / na)
  293. };
  294. ya = function(b) {
  295. b %= 360;
  296. 0 > b && (b += 360);
  297. return b
  298. };
  299. za = function(b) {
  300. b %= 2 * na;
  301. 0 > b && (b += 2 * na);
  302. return b
  303. };
  304. Ba = function(b) {
  305. return ya(xa(b))
  306. };
  307. Ca = function(b) {
  308. return za(J(b))
  309. };
  310. Da = function(b, m, k, n) {
  311. return Math.atan2(n - m, k - b)
  312. };
  313. Ea = function(b, m) {
  314. if (b === m) return 0;
  315. var k = Math.sin(b),
  316. n = Math.cos(b),
  317. d = Math.sin(m),
  318. c = Math.cos(m),
  319. k = k * d + n * c;
  320. return 1 <= k ? 0 : -1 >= k ? na: Math.acos(k)
  321. };
  322. Fa = function(b, m, k) {
  323. var n = Math.sin(b),
  324. d = Math.cos(b),
  325. c = Math.sin(m),
  326. e = Math.cos(m);
  327. return Math.acos(n * c + d * e) > k ? 0 < d * c - n * e ? za(b + k) : za(b - k) : za(m)
  328. };
  329. Ga = function(b, m) {
  330. var k = Math.sin(b),
  331. n = Math.cos(b),
  332. d = Math.sin(m),
  333. c = Math.cos(m);
  334. return 0 >= n * d - k * c
  335. };
  336. Ha = function(b, m, k, n) {
  337. b = k - b;
  338. m = n - m;
  339. return Math.sqrt(b * b + m * m)
  340. };
  341. Ia = function(b, m) {
  342. return ! b !== !m
  343. };
  344. Ja = function(b) {
  345. for (var m in b) if (b.hasOwnProperty(m)) return ! 0;
  346. return ! 1
  347. };
  348. Ka = function(b) {
  349. for (var m in b) b.hasOwnProperty(m) && delete b[m]
  350. };
  351. var p = +new Date;
  352. M = function() {
  353. if ("undefined" !== typeof window.performance) {
  354. var b = window.performance;
  355. if ("undefined" !== typeof b.now) return b.now();
  356. if ("undefined" !== typeof b.webkitNow) return b.webkitNow();
  357. if ("undefined" !== typeof b.mozNow) return b.mozNow();
  358. if ("undefined" !== typeof b.msNow) return b.msNow()
  359. }
  360. return Date.now() - p
  361. };
  362. var b = !1,
  363. k = b = !1,
  364. v = !1;
  365. "undefined" !== typeof window && (b = /chrome/i.test(navigator.userAgent) || /chromium/i.test(navigator.userAgent), b = !b && /safari/i.test(navigator.userAgent), k = /(iphone|ipod|ipad)/i.test(navigator.userAgent), v = window.c2ejecta);
  366. var m = !b && !v && !k && "undefined" !== typeof Set && "undefined" !== typeof Set.prototype.forEach;
  367. g.prototype.contains = function(b) {
  368. return this.Vb() ? !1 : m ? this.nc.has(b) : this.Ec && this.Ec.hasOwnProperty(b)
  369. };
  370. g.prototype.add = function(b) {
  371. if (m) this.nc.has(b) || (this.nc.add(b), this.$c = !1);
  372. else {
  373. var k = b.toString(),
  374. n = this.Ec;
  375. n ? n.hasOwnProperty(k) || (n[k] = b, this.ie++, this.$c = !1) : (this.Ec = {},
  376. this.Ec[k] = b, this.ie = 1, this.$c = !1)
  377. }
  378. };
  379. g.prototype.remove = function(b) {
  380. if (!this.Vb()) if (m) this.nc.has(b) && (this.nc["delete"](b), this.$c = !1);
  381. else if (this.Ec) {
  382. b = b.toString();
  383. var k = this.Ec;
  384. k.hasOwnProperty(b) && (delete k[b], this.ie--, this.$c = !1)
  385. }
  386. };
  387. g.prototype.clear = function() {
  388. this.Vb() || (m ? this.nc.clear() : (this.Ec = null, this.ie = 0), this.ze.length = 0, this.$c = !0)
  389. };
  390. g.prototype.Vb = function() {
  391. return 0 === this.count()
  392. };
  393. g.prototype.count = function() {
  394. return m ? this.nc.size: this.ie
  395. };
  396. var n = null,
  397. ka = 0;
  398. g.prototype.bp = function() {
  399. if (!this.$c) {
  400. if (m) this.ze.length = this.nc.size,
  401. n = this.ze,
  402. ka = 0,
  403. this.nc.forEach(d),
  404. n = null,
  405. ka = 0;
  406. else {
  407. var b = this.ze;
  408. b.length = this.ie;
  409. var k, c = 0,
  410. e = this.Ec;
  411. if (e) for (k in e) e.hasOwnProperty(k) && (b[c++] = e[k])
  412. }
  413. this.$c = !0
  414. }
  415. };
  416. g.prototype.ye = function() {
  417. this.bp();
  418. return this.ze
  419. };
  420. ga = g;
  421. new ga;
  422. u.prototype.add = function(b) {
  423. this.y = b - this.kh;
  424. this.Kg = this.ja + this.y;
  425. this.kh = this.Kg - this.ja - this.y;
  426. this.ja = this.Kg
  427. };
  428. u.prototype.reset = function() {
  429. this.ja = this.Kg = this.y = this.kh = 0
  430. };
  431. La = u;
  432. Ma = function(b) {
  433. return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")
  434. };
  435. h.prototype.sf = function(b) {
  436. this.Xk = b;
  437. this.xg = b.length / 2;
  438. this.qe.length = b.length;
  439. this.nh = this.oh = -1;
  440. this.Gj = 0
  441. };
  442. h.prototype.jo = function() {
  443. return ! this.Xk.length
  444. };
  445. h.prototype.Qa = function() {
  446. for (var b = this.qe,
  447. m = b[0], k = m, n = b[1], d = n, c, e, x = 1, v = this.xg; x < v; ++x) e = 2 * x,
  448. c = b[e],
  449. e = b[e + 1],
  450. c < m && (m = c),
  451. c > k && (k = c),
  452. e < n && (n = e),
  453. e > d && (d = e);
  454. this.Bj = m;
  455. this.Cj = k;
  456. this.Dj = n;
  457. this.Aj = d
  458. };
  459. h.prototype.Eg = function(b, m, k) {
  460. this.qe.length = 8;
  461. this.xg = 4;
  462. var n = this.qe;
  463. n[0] = b.left - m;
  464. n[1] = b.top - k;
  465. n[2] = b.right - m;
  466. n[3] = b.top - k;
  467. n[4] = b.right - m;
  468. n[5] = b.bottom - k;
  469. n[6] = b.left - m;
  470. n[7] = b.bottom - k;
  471. this.oh = b.right - b.left;
  472. this.nh = b.bottom - b.top;
  473. this.Qa()
  474. };
  475. h.prototype.Fm = function(b, m, k) {
  476. if (this.oh !== b || this.nh !== m || this.Gj !== k) {
  477. this.oh = b;
  478. this.nh = m;
  479. this.Gj = k;
  480. var n, d, c, e, x, v = 0,
  481. h = 1,
  482. f = this.Xk,
  483. r = this.qe;
  484. 0 !== k && (v = Math.sin(k), h = Math.cos(k));
  485. k = 0;
  486. for (c = this.xg; k < c; k++) n = 2 * k,
  487. d = n + 1,
  488. e = f[n] * b,
  489. x = f[d] * m,
  490. r[n] = e * h - x * v,
  491. r[d] = x * h + e * v;
  492. this.Qa()
  493. }
  494. };
  495. h.prototype.ec = function(b, m) {
  496. var k = this.qe;
  497. if (b === k[0] && m === k[1]) return ! 0;
  498. var n, d, c, e = this.xg,
  499. x = this.Bj - 110,
  500. v = this.Dj - 101,
  501. h = this.Cj + 131,
  502. f = this.Aj + 120,
  503. r, a, ka = 0,
  504. L = 0;
  505. for (n = 0; n < e; n++) d = 2 * n,
  506. c = 2 * ((n + 1) % e),
  507. r = k[d],
  508. d = k[d + 1],
  509. a = k[c],
  510. c = k[c + 1],
  511. pa(x, v, b, m, r, d, a, c) && ka++,
  512. pa(h, f, b, m, r, d, a, c) && L++;
  513. return 1 === ka % 2 || 1 === L % 2
  514. };
  515. Na = h;
  516. c.prototype.Xj = function(b, m, k) {
  517. var n;
  518. n = this.cells[b];
  519. return n ? (n = n[m]) ? n: k ? (n = f(this, b, m), this.cells[b][m] = n) : null: k ? (n = f(this, b, m), this.cells[b] = {},
  520. this.cells[b][m] = n) : null
  521. };
  522. c.prototype.pj = function(b) {
  523. return G(b / this.Hm)
  524. };
  525. c.prototype.qj = function(b) {
  526. return G(b / this.Gm)
  527. };
  528. c.prototype.update = function(b, m, k) {
  529. var n, d, c, e, v;
  530. if (m) for (n = m.left, d = m.right; n <= d; ++n) for (c = m.top, e = m.bottom; c <= e; ++c) if (!k || !k.ec(n, c)) if (v = this.Xj(n, c, !1)) v.remove(b),
  531. v.Vb() && (v.rg.clear(), 1E3 > x.length && x.push(v), this.cells[n][c] = null);
  532. if (k) for (n = k.left, d = k.right; n <= d; ++n) for (c = k.top, e = k.bottom; c <= e; ++c) m && m.ec(n, c) || this.Xj(n, c, !0).Wn(b)
  533. };
  534. Oa = c;
  535. var x = [];
  536. e.prototype.Vb = function() {
  537. return this.rg.Vb()
  538. };
  539. e.prototype.Wn = function(b) {
  540. this.rg.add(b)
  541. };
  542. e.prototype.remove = function(b) {
  543. this.rg.remove(b)
  544. };
  545. fa = e;
  546. var L = "lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
  547. Pa = function(b) {
  548. return 0 >= b || 11 <= b ? "source-over": L[b - 1]
  549. };
  550. Qa = function(b, m, k) {
  551. if (k) switch (b.Pa = k.ONE, b.Oa = k.ONE_MINUS_SRC_ALPHA, m) {
  552. case 1:
  553. b.Pa = k.ONE;
  554. b.Oa = k.ONE;
  555. break;
  556. case 3:
  557. b.Pa = k.ONE;
  558. b.Oa = k.ZERO;
  559. break;
  560. case 4:
  561. b.Pa = k.ONE_MINUS_DST_ALPHA;
  562. b.Oa = k.ONE;
  563. break;
  564. case 5:
  565. b.Pa = k.DST_ALPHA;
  566. b.Oa = k.ZERO;
  567. break;
  568. case 6:
  569. b.Pa = k.ZERO;
  570. b.Oa = k.SRC_ALPHA;
  571. break;
  572. case 7:
  573. b.Pa = k.ONE_MINUS_DST_ALPHA;
  574. b.Oa = k.ZERO;
  575. break;
  576. case 8:
  577. b.Pa = k.ZERO;
  578. b.Oa = k.ONE_MINUS_SRC_ALPHA;
  579. break;
  580. case 9:
  581. b.Pa = k.DST_ALPHA;
  582. b.Oa = k.ONE_MINUS_SRC_ALPHA;
  583. break;
  584. case 10:
  585. b.Pa = k.ONE_MINUS_DST_ALPHA,
  586. b.Oa = k.SRC_ALPHA
  587. }
  588. };
  589. Ra = function(b) {
  590. return Math.round(1E6 * b) / 1E6
  591. };
  592. Sa = function(b, m) {
  593. return "string" !== typeof b || "string" !== typeof m || b.length !== m.length ? !1 : b === m ? !0 : b.toLowerCase() === m.toLowerCase()
  594. };
  595. Ta = function(b) {
  596. b = b.target;
  597. return ! b || b === document || b === window || document && document.body && b === document.body || Sa(b.tagName, "canvas") ? !0 : !1
  598. }
  599. })(); (function() {
  600. function l(b) {
  601. if (b && (b.getContext || b.dc) && !b.c2runtime) {
  602. b.c2runtime = this;
  603. var k = this;
  604. this.Wh = /crosswalk/i.test(navigator.userAgent) || /xwalk/i.test(navigator.userAgent) || !("undefined" === typeof window.c2isCrosswalk || !window.c2isCrosswalk);
  605. this.kc = !this.Wh && "undefined" !== typeof window.device && ("undefined" !== typeof window.device.cordova || "undefined" !== typeof window.device.phonegap) || "undefined" !== typeof window.c2isphonegap && window.c2isphonegap;
  606. this.ic = !!b.dc;
  607. this.Ve = "undefined" !== typeof window.AppMobi || this.ic;
  608. this.Ob = !!window.c2cocoonjs;
  609. this.Dc = !!window.c2ejecta;
  610. this.Ob && (CocoonJS.App.onSuspended.addEventListener(function() {
  611. k.setSuspended(!0)
  612. }), CocoonJS.App.onActivated.addEventListener(function() {
  613. k.setSuspended(!1)
  614. }));
  615. this.Dc && (document.addEventListener("pagehide",
  616. function() {
  617. k.setSuspended(!0)
  618. }), document.addEventListener("pageshow",
  619. function() {
  620. k.setSuspended(!1)
  621. }), document.addEventListener("resize",
  622. function() {
  623. k.setSize(window.innerWidth, window.innerHeight)
  624. }));
  625. this.ma = this.ic || this.Ob || this.Dc;
  626. this.Xh = /msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent) || /iemobile/i.test(navigator.userAgent);
  627. this.nk = /tizen/i.test(navigator.userAgent);
  628. this.mk = /android/i.test(navigator.userAgent) && !this.nk && !this.Xh;
  629. this.ei = (/iphone/i.test(navigator.userAgent) || /ipod/i.test(navigator.userAgent)) && !this.Xh;
  630. this.sk = /ipad/i.test(navigator.userAgent);
  631. this.rk = this.ei || this.sk || this.Dc;
  632. this.ko = this.ei && /os\s6/i.test(navigator.userAgent);
  633. this.bg = /chrome/i.test(navigator.userAgent) || /chromium/i.test(navigator.userAgent);
  634. this.Xn = /amazonwebappplatform/i.test(navigator.userAgent);
  635. this.ao = /firefox/i.test(navigator.userAgent);
  636. this.eo = /safari/i.test(navigator.userAgent) && !this.bg && !this.Xh;
  637. this.gd = "undefined" !== typeof window.c2nodewebkit || /nodewebkit/i.test(navigator.userAgent);
  638. this.ho = !("undefined" === typeof window.c2isWindows8 || !window.c2isWindows8);
  639. this.io = !("undefined" === typeof window.c2isWindows8Capable || !window.c2isWindows8Capable);
  640. this.bi = !("undefined" === typeof window.c2isWindowsPhone8 || !window.c2isWindowsPhone8);
  641. this.ci = !("undefined" === typeof window.c2isWindowsPhone81 || !window.c2isWindowsPhone81);
  642. this.ok = this.ho || this.io || this.ci;
  643. this.Zn = !("undefined" === typeof window.c2isBlackberry10 || !window.c2isBlackberry10);
  644. this.Yn = this.mk && !this.bg && !this.ao && !this.Xn && !this.ma;
  645. this.devicePixelRatio = 1;
  646. this.jc = this.kc || this.Wh || this.Ve || this.Ob || this.mk || this.rk || this.bi || this.ci || this.Zn || this.nk || this.Dc;
  647. this.jc || (this.jc = /(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));
  648. "undefined" === typeof cr_is_preview || this.gd || "?nw" !== window.location.search && !/nodewebkit/i.test(navigator.userAgent) || (this.gd = !0);
  649. this.$n = "undefined" !== typeof cr_is_preview && -1 < window.location.search.indexOf("debug");
  650. this.canvas = b;
  651. this.Hj = document.getElementById("c2canvasdiv");
  652. this.T = this.r = this.Ac = null;
  653. this.Fh = "";
  654. this.Uf = !1;
  655. this.Lk = this.Mk = 0;
  656. this.canvas.oncontextmenu = function(b) {
  657. b.preventDefault && b.preventDefault();
  658. return ! 1
  659. };
  660. this.canvas.onselectstart = function(b) {
  661. b.preventDefault && b.preventDefault();
  662. return ! 1
  663. };
  664. this.ic && (window.c2runtime = this);
  665. this.gd && (window.ondragover = function(b) {
  666. b.preventDefault();
  667. return ! 1
  668. },
  669. window.ondrop = function(b) {
  670. b.preventDefault();
  671. return ! 1
  672. },
  673. require("nw.gui").App.clearCache());
  674. this.width = b.width;
  675. this.height = b.height;
  676. this.G = this.width;
  677. this.F = this.height;
  678. this.Nf = this.width;
  679. this.Mf = this.height;
  680. this.$e = window.innerWidth;
  681. this.Ze = window.innerHeight;
  682. this.N = !0;
  683. this.Xe = !1;
  684. Date.now || (Date.now = function() {
  685. return + new Date
  686. });
  687. this.plugins = [];
  688. this.types = {};
  689. this.m = [];
  690. this.ka = [];
  691. this.ii = {};
  692. this.Xb = [];
  693. this.Ch = {};
  694. this.wc = [];
  695. this.Be = [];
  696. this.Sg = [];
  697. this.xm = [];
  698. this.ym = [];
  699. this.fc = new ga;
  700. this.Yh = !1;
  701. this.Wb = 0;
  702. this.$h = !1;
  703. this.kb = [];
  704. this.Fc = this.Sa = this.lg = this.Li = "";
  705. this.vf = this.hl = !1;
  706. this.uh = this.ef = this.cd = this.Zd = 0;
  707. this.xf = 1;
  708. this.jd = new La;
  709. this.gg = 0;
  710. this.Ek = !0;
  711. this.qg = this.Wf = this.Rf = this.Nc = this.bf = this.Eh = 0;
  712. this.rh = null;
  713. this.Mj = [];
  714. this.Bh = [];
  715. this.Qf = -1;
  716. this.mi = [[]];
  717. this.Xi = this.ng = 0;
  718. this.yg(null);
  719. this.ni = [];
  720. this.og = -1;
  721. this.Me = this.Ik = this.gf = 0;
  722. this.wf = [];
  723. this.Pg = this.zg = -1;
  724. this.fg = !0;
  725. this.ke = 0;
  726. this.We = !1;
  727. this.Ro = 0;
  728. this.Fe = null;
  729. this.Tn = !1;
  730. this.fi = 0;
  731. this.fd = this.Nh = this.Di = !1;
  732. this.Kk = new ga;
  733. this.qi = new ga;
  734. this.ri = new ga;
  735. this.Ho = [];
  736. new Na([]);
  737. new Na([]);
  738. this.Xd = [];
  739. this.fe = {};
  740. this.Yd = {};
  741. this.Wd = {};
  742. this.Ae = {};
  743. this.Ej = {};
  744. this.Ck = this.kg = this.ob = this.Cb = this.Bk = this.jg = this.S = null;
  745. this.xe = this.di = !1;
  746. this.Gh = [null, null];
  747. this.Cd = 0;
  748. this.ld = {};
  749. this.Gg = this.je = null;
  750. this.load();
  751. this.devicePixelRatio = (this.Gd = (!this.ma || this.Dc) && this.cp && !this.Yn) ? window.devicePixelRatio || window.webkitDevicePixelRatio || window.mozDevicePixelRatio || window.msDevicePixelRatio || 1 : 1;
  752. this.Ma();
  753. var c, m = this.eh && !(this.gd || this.ok || this.bi || this.Wh);
  754. 0 < this.mb && this.setSize(window.innerWidth, window.innerHeight, !0);
  755. try {
  756. this.Rm && (this.Ob || this.Dc || !this.ma) && (c = {
  757. alpha: m,
  758. depth: !1,
  759. antialias: !1,
  760. failIfMajorPerformanceCaveat: !0
  761. },
  762. this.Ac = b.getContext("webgl", c) || b.getContext("experimental-webgl", c))
  763. } catch(n) {}
  764. if (this.Ac) {
  765. this.ma || (this.Ha = document.createElement("canvas"), jQuery(this.Ha).appendTo(this.canvas.parentNode), this.Ha.oncontextmenu = w(!1), this.Ha.onselectstart = w(!1), this.Ha.width = this.Nf, this.Ha.height = this.Mf, jQuery(this.Ha).css({
  766. width: this.Nf + "px",
  767. height: this.Mf + "px"
  768. }), this.Vk(), this.xi = this.Ha.getContext("2d"));
  769. this.r = new da.up(this.Ac, this.jc);
  770. this.r.Nd(b.width, b.height);
  771. this.r.rq = 0 !== this.Pm;
  772. this.T = null;
  773. this.canvas.addEventListener("webglcontextlost",
  774. function(b) {
  775. b.preventDefault();
  776. k.so();
  777. console.log("[Construct 2] WebGL context lost");
  778. window.cr_setSuspended(!0)
  779. },
  780. !1);
  781. this.canvas.addEventListener("webglcontextrestored",
  782. function() {
  783. k.r.Cq();
  784. k.r.Nd(k.r.width, k.r.height, !0);
  785. k.Cb = null;
  786. k.ob = null;
  787. k.Gh[0] = null;
  788. k.Gh[1] = null;
  789. k.to();
  790. k.N = !0;
  791. console.log("[Construct 2] WebGL context restored");
  792. window.cr_setSuspended(!1)
  793. },
  794. !1);
  795. var d, e, h, f, r, a;
  796. b = 0;
  797. for (c = this.m.length; b < c; b++) for (e = this.m[b], m = 0, d = e.A.length; m < d; m++) f = e.A[m],
  798. f.Ja = this.r.ek(f.id),
  799. this.xe = this.xe || this.r.wg(f.Ja);
  800. b = 0;
  801. for (c = this.Xb.length; b < c; b++) {
  802. r = this.Xb[b];
  803. m = 0;
  804. for (d = r.A.length; m < d; m++) f = r.A[m],
  805. f.Ja = this.r.ek(f.id);
  806. m = 0;
  807. for (d = r.I.length; m < d; m++) for (a = r.I[m], e = 0, h = a.A.length; e < h; e++) f = a.A[e],
  808. f.Ja = this.r.ek(f.id),
  809. this.xe = this.xe || this.r.wg(f.Ja)
  810. }
  811. } else {
  812. if (0 < this.mb && this.ic) {
  813. this.canvas = null;
  814. document.oncontextmenu = w(!1);
  815. document.onselectstart = w(!1);
  816. this.T = AppMobi.canvas.getContext("2d");
  817. try {
  818. this.T.samplingMode = this.M ? "smooth": "sharp",
  819. this.T.globalScale = 1,
  820. this.T.HTML5CompatibilityMode = !0,
  821. this.T.imageSmoothingEnabled = this.M
  822. } catch(g) {}
  823. 0 !== this.width && 0 !== this.height && (this.T.width = this.width, this.T.height = this.height)
  824. }
  825. this.T || (c = this.Ob ? {
  826. antialias: !!this.M,
  827. alpha: m
  828. }: {
  829. alpha: m
  830. },
  831. this.T = b.getContext("2d", c), this.T.webkitImageSmoothingEnabled = this.M, this.T.mozImageSmoothingEnabled = this.M, this.T.msImageSmoothingEnabled = this.M, this.T.imageSmoothingEnabled = this.M);
  832. this.xi = this.Ha = null
  833. }
  834. this.Ng = function() {
  835. k.pc(!1)
  836. };
  837. window == window.top || this.ma || this.ok || this.bi || (document.addEventListener("mousedown",
  838. function() {
  839. window.focus()
  840. },
  841. !0), document.addEventListener("touchstart",
  842. function() {
  843. window.focus()
  844. },
  845. !0));
  846. "undefined" !== typeof cr_is_preview && (this.Ob && console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"), -1 < window.location.search.indexOf("continuous") && (y("Reloading for continuous preview"), this.lg = "__c2_continuouspreview", this.vf = !0), this.zo && !this.jc && (jQuery(window).focus(function() {
  847. k.setSuspended(!1)
  848. }), jQuery(window).blur(function() {
  849. k.setSuspended(!0)
  850. })));
  851. 0 === this.mb && this.Gd && 1 < this.devicePixelRatio && this.setSize(this.Aa, this.za, !0);
  852. this.ol();
  853. this.Qn();
  854. this.go();
  855. this.R = {}
  856. }
  857. }
  858. function q(b) {
  859. b.target.result.createObjectStore("saves", {
  860. keyPath: "slot"
  861. })
  862. }
  863. function a(b, k, c, m) {
  864. var n = indexedDB.open("_C2SaveStates");
  865. n.onupgradeneeded = q;
  866. n.onerror = m;
  867. n.onsuccess = function(n) {
  868. n = n.target.result;
  869. n.onerror = m;
  870. n.transaction(["saves"], "readwrite").objectStore("saves").put({
  871. slot: b,
  872. data: k
  873. }).onsuccess = c
  874. }
  875. }
  876. function g(b, k, c) {
  877. var m = indexedDB.open("_C2SaveStates");
  878. m.onupgradeneeded = q;
  879. m.onerror = c;
  880. m.onsuccess = function(m) {
  881. m = m.target.result;
  882. m.onerror = c;
  883. var d = m.transaction(["saves"]).objectStore("saves").get(b);
  884. d.onsuccess = function() {
  885. d.result ? k(d.result.data) : k(null)
  886. }
  887. }
  888. }
  889. function d() {
  890. y("Reloading for continuous preview");
  891. window.c2cocoonjs ? CocoonJS.App.reload() : -1 < window.location.search.indexOf("continuous") ? window.location.reload(!0) : window.location += "?continuous"
  892. }
  893. function u(b) {
  894. var k, c = {};
  895. for (k in b) ! b.hasOwnProperty(k) || b[k] instanceof ga || b[k] && "undefined" !== typeof b[k].pq || (c[k] = b[k]);
  896. return c
  897. }
  898. l.prototype.setSize = function(b, k, c) {
  899. var m = 0,
  900. n = 0,
  901. d = 0,
  902. e = 0,
  903. e = 0,
  904. h = this.ko && this.eo && !navigator.standalone && !this.ma && !this.kc;
  905. h && (k += 60);
  906. if (this.$e !== b || this.Ze !== k || c) {
  907. this.$e = b;
  908. this.Ze = k;
  909. var f = this.mb,
  910. r = (document.mozFullScreen || document.webkitIsFullScreen || !!document.msFullscreenElement || document.fullScreen || this.We) && !this.kc;
  911. if (r || 0 !== this.mb || c) r && 0 < this.Cd && (f = this.Cd),
  912. c = this.devicePixelRatio,
  913. 4 <= f ? (d = this.Aa / this.za, b / k > d ? (d *= k, 5 === f ? (e = d * c / this.Aa, 1 < e ? e = Math.floor(e) : 1 > e && (e = 1 / Math.ceil(1 / e)), d = this.Aa * e / c, e = this.za * e / c, m = (b - d) / 2, n = (k - e) / 2, b = d, k = e) : (m = (b - d) / 2, b = d)) : (e = b / d, 5 === f ? (e = e * c / this.za, 1 < e ? e = Math.floor(e) : 1 > e && (e = 1 / Math.ceil(1 / e)), d = this.Aa * e / c, e = this.za * e / c, m = (b - d) / 2, n = (k - e) / 2, b = d) : n = (k - e) / 2, k = e), r && !this.gd && (n = m = 0)) : this.gd && this.We && 0 === this.Vj && (m = Math.floor((b - this.Aa) / 2), n = Math.floor((k - this.za) / 2), b = this.Aa, k = this.za),
  914. 2 > f && (this.Ee = c),
  915. this.Gd && this.sk && 1 < c && (1024 <= b && (b = 1023), 1024 <= k && (k = 1023)),
  916. this.Nf = Math.round(b),
  917. this.Mf = Math.round(k),
  918. this.width = Math.round(b * c),
  919. this.height = Math.round(k * c),
  920. this.N = !0,
  921. this.xl ? (this.G = this.width, this.F = this.height, this.Nb = !0) : this.width < this.Aa && this.height < this.za || 1 === f ? (this.G = this.width, this.F = this.height, this.Nb = !0) : (this.G = this.Aa, this.F = this.za, this.Nb = !1, 2 === f ? (d = this.Aa / this.za, f = this.$e / this.Ze, f < d ? this.G = this.F * f: f > d && (this.F = this.G / f)) : 3 === f && (d = this.Aa / this.za, f = this.$e / this.Ze, f > d ? this.G = this.F * f: f < d && (this.F = this.G / f))),
  922. this.Hj && !this.ma && (jQuery(this.Hj).css({
  923. width: Math.round(b) + "px",
  924. height: Math.round(k) + "px",
  925. "margin-left": Math.floor(m) + "px",
  926. "margin-top": Math.floor(n) + "px"
  927. }), "undefined" !== typeof cr_is_preview && jQuery("#borderwrap").css({
  928. width: Math.round(b) + "px",
  929. height: Math.round(k) + "px"
  930. })),
  931. this.canvas && (this.canvas.width = Math.round(b * c), this.canvas.height = Math.round(k * c), this.Dc ? (this.canvas.style.left = Math.floor(m) + "px", this.canvas.style.top = Math.floor(n) + "px", this.canvas.style.width = Math.round(b) + "px", this.canvas.style.height = Math.round(k) + "px") : this.Gd && !this.ma && jQuery(this.canvas).css({
  932. width: Math.round(b) + "px",
  933. height: Math.round(k) + "px"
  934. })),
  935. this.Ha && (this.Ha.width = Math.round(b), this.Ha.height = Math.round(k), jQuery(this.Ha).css({
  936. width: Math.round(b) + "px",
  937. height: Math.round(k) + "px"
  938. })),
  939. this.r && this.r.Nd(Math.round(b * c), Math.round(k * c)),
  940. this.ic && this.T && (this.T.width = Math.round(b), this.T.height = Math.round(k)),
  941. this.T && (this.T.webkitImageSmoothingEnabled = this.M, this.T.mozImageSmoothingEnabled = this.M, this.T.msImageSmoothingEnabled = this.M, this.T.imageSmoothingEnabled = this.M),
  942. this.ol(),
  943. this.ma || !h && !this.ei || window.setTimeout(function() {
  944. window.scrollTo(0, 1)
  945. },
  946. 100)
  947. }
  948. };
  949. l.prototype.ol = function() {
  950. if (this.Am && 0 !== this.wi) {
  951. var b = "portrait";
  952. 2 === this.wi && (b = "landscape");
  953. screen.lockOrientation ? screen.lockOrientation(b) : screen.webkitLockOrientation ? screen.webkitLockOrientation(b) : screen.mozLockOrientation ? screen.mozLockOrientation(b) : screen.msLockOrientation && screen.msLockOrientation(b)
  954. }
  955. };
  956. l.prototype.so = function() {
  957. this.di = !0;
  958. var b, k, c;
  959. b = 0;
  960. for (k = this.m.length; b < k; b++) c = this.m[b],
  961. c.sg && c.sg()
  962. };
  963. l.prototype.to = function() {
  964. this.di = !1;
  965. var b, k, c;
  966. b = 0;
  967. for (k = this.m.length; b < k; b++) c = this.m[b],
  968. c.ti && c.ti()
  969. };
  970. l.prototype.Vk = function() {
  971. if (!this.ma) {
  972. var b = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || document.msFullscreenElement || this.We) && !this.kc ? jQuery(this.canvas).offset() : jQuery(this.canvas).position();
  973. b.position = "absolute";
  974. jQuery(this.Ha).css(b)
  975. }
  976. };
  977. var h = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;
  978. l.prototype.setSuspended = function(b) {
  979. var k;
  980. if (b && !this.Xe) for (y("[Construct 2] Suspending"), this.Xe = !0, -1 !== this.zg && h && h(this.zg), -1 !== this.Pg && clearTimeout(this.Pg), b = 0, k = this.wf.length; b < k; b++) this.wf[b](!0);
  981. else if (!b && this.Xe) {
  982. y("[Construct 2] Resuming");
  983. this.Xe = !1;
  984. this.gg = M();
  985. this.bf = M();
  986. b = this.ef = this.Wf = 0;
  987. for (k = this.wf.length; b < k; b++) this.wf[b](!1);
  988. this.pc(!1)
  989. }
  990. };
  991. l.prototype.wm = function(b) {
  992. this.wf.push(b)
  993. };
  994. l.prototype.load = function() {
  995. var b = Hb();
  996. this.name = b[0];
  997. this.Uj = b[1];
  998. this.mb = b[12];
  999. this.Vj = b[12];
  1000. this.Aa = b[10];
  1001. this.za = b[11];
  1002. this.Rk = this.Aa / 2;
  1003. this.Sk = this.za / 2;
  1004. this.ma && !this.Dc && (4 <= b[12] || 0 === b[12]) && (y("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"), this.Vj = this.mb = 3);
  1005. this.aj = b[18];
  1006. this.df = b[19];
  1007. 0 === this.df && (this.je = new Image, this.je.src = "images/loading-logo.png");
  1008. this.gf = b[21];
  1009. this.oc = new R(this);
  1010. var k, c, m, n, d, e, f, h, r;
  1011. k = 0;
  1012. for (c = b[2].length; k < c; k++) f = b[2][k],
  1013. Ua(f),
  1014. r = new f[0](this),
  1015. r.Fg = f[1],
  1016. r.hd = f[2],
  1017. r.Fk = f[9],
  1018. r.K && r.K(),
  1019. this.plugins.push(r);
  1020. b = Hb();
  1021. k = 0;
  1022. for (c = b[3].length; k < c; k++) {
  1023. f = b[3][k];
  1024. d = f[1];
  1025. r = null;
  1026. m = 0;
  1027. for (n = this.plugins.length; m < n; m++) if (this.plugins[m] instanceof d) {
  1028. r = this.plugins[m];
  1029. break
  1030. }
  1031. var a = new r.ea(r);
  1032. a.name = f[0];
  1033. a.B = f[2];
  1034. a.Uh = f[3].slice(0);
  1035. a.ep = f[3].length;
  1036. a.Bm = f[4];
  1037. a.tn = f[5];
  1038. a.H = f[11];
  1039. a.B ? (a.pg = [], a.xc = this.Me++, a.ba = null) : (a.pg = null, a.xc = -1, a.ba = []);
  1040. a.Tf = null;
  1041. a.be = null;
  1042. a.Qj = null;
  1043. a.Bb = !1;
  1044. a.jb = null;
  1045. f[6] ? (a.Ri = f[6][0], a.Si = f[6][1], a.Ti = f[6][2]) : (a.Ri = null, a.Si = 0, a.Ti = 0);
  1046. a.hb = f[7] ? f[7] : null;
  1047. a.index = k;
  1048. a.d = [];
  1049. a.Pf = [];
  1050. a.rd = [new Va(a)];
  1051. a.vc = 0;
  1052. a.Lb = null;
  1053. a.Mm = 0;
  1054. a.ve = !0;
  1055. a.Tg = Wa;
  1056. a.yn = Xa;
  1057. a.Dn = Ya;
  1058. a.V = Za;
  1059. a.nf = $a;
  1060. a.re = ab;
  1061. a.Ic = bb;
  1062. a.Xf = cb;
  1063. a.Hh = db;
  1064. a.Kh = eb;
  1065. a.Xc = fb;
  1066. a.ak = gb;
  1067. a.Ij = new Oa(this.Aa, this.za);
  1068. a.xj = !0;
  1069. a.yj = !1;
  1070. a.R = {};
  1071. a.toString = hb;
  1072. a.ka = [];
  1073. m = 0;
  1074. for (n = f[8].length; m < n; m++) {
  1075. h = f[8][m];
  1076. var g = h[1],
  1077. t = null;
  1078. d = 0;
  1079. for (e = this.ka.length; d < e; d++) if (this.ka[d] instanceof g) {
  1080. t = this.ka[d];
  1081. break
  1082. }
  1083. t || (t = new g(this), t.Gk = [], t.pi = new ga, t.K && t.K(), this.ka.push(t)); - 1 === t.Gk.indexOf(a) && t.Gk.push(a);
  1084. d = new t.ea(t, a);
  1085. d.name = h[0];
  1086. d.H = h[2];
  1087. d.K();
  1088. a.ka.push(d)
  1089. }
  1090. a.global = f[9];
  1091. a.Zh = f[10];
  1092. a.A = [];
  1093. m = 0;
  1094. for (n = f[12].length; m < n; m++) a.A.push({
  1095. id: f[12][m][0],
  1096. name: f[12][m][1],
  1097. Ja: -1,
  1098. wb: !0,
  1099. index: m
  1100. });
  1101. a.Nq = f[13];
  1102. this.aj && !a.B && !a.Zh && r.hd || a.K();
  1103. a.name && (this.types[a.name] = a);
  1104. this.m.push(a);
  1105. r.Fg && (m = new r.$(a), m.uid = this.gf++, m.Yk = this.Ik++, m.Ed = 0, m.Re = ib, m.toString = jb, m.J = f[14], m.K(), a.d.push(m), this.ld[m.uid.toString()] = m)
  1106. }
  1107. k = 0;
  1108. for (c = b[4].length; k < c; k++) for (d = b[4][k], e = this.m[d[0]], m = 1, n = d.length; m < n; m++) f = this.m[d[m]],
  1109. f.ba.push(e),
  1110. e.pg.push(f);
  1111. k = 0;
  1112. for (c = b[26].length; k < c; k++) {
  1113. d = b[26][k];
  1114. e = [];
  1115. m = 0;
  1116. for (n = d.length; m < n; m++) e.push(this.m[d[m]]);
  1117. m = 0;
  1118. for (n = e.length; m < n; m++) e[m].Bb = !0,
  1119. e[m].jb = e
  1120. }
  1121. if (0 < this.Me) for (k = 0, c = this.m.length; k < c; k++) if (f = this.m[k], !f.B && f.ba.length) {
  1122. f.Tf = Array(this.Me);
  1123. f.be = Array(this.Me);
  1124. f.Qj = Array(this.Me);
  1125. a = [];
  1126. m = t = g = h = 0;
  1127. for (n = f.ba.length; m < n; m++) for (r = f.ba[m], f.Tf[r.xc] = h, h += r.ep, f.be[r.xc] = g, g += r.Bm, f.Qj[r.xc] = t, t += r.tn, d = 0, e = r.A.length; d < e; d++) a.push(sa({},
  1128. r.A[d]));
  1129. f.A = a.concat(f.A);
  1130. m = 0;
  1131. for (n = f.A.length; m < n; m++) f.A[m].index = m
  1132. }
  1133. k = 0;
  1134. for (c = b[5].length; k < c; k++) f = b[5][k],
  1135. m = new kb(this, f),
  1136. this.ii[m.name] = m,
  1137. this.Xb.push(m);
  1138. k = 0;
  1139. for (c = b[6].length; k < c; k++) f = b[6][k],
  1140. m = new lb(this, f),
  1141. this.Ch[m.name] = m,
  1142. this.wc.push(m);
  1143. k = 0;
  1144. for (c = this.wc.length; k < c; k++) this.wc[k].ia();
  1145. k = 0;
  1146. for (c = this.wc.length; k < c; k++) this.wc[k].$i();
  1147. k = 0;
  1148. for (c = this.Sg.length; k < c; k++) this.Sg[k].ia();
  1149. this.Sg.length = 0;
  1150. this.zm = b[7];
  1151. this.mc = b[9];
  1152. this.Ee = 1;
  1153. this.Rm = b[13];
  1154. this.M = b[14];
  1155. this.eh = b[15];
  1156. this.cp = b[17];
  1157. this.wi = b[20];
  1158. this.Am = 0 < this.wi;
  1159. this.zo = b[22];
  1160. this.Nb = this.xl = b[23];
  1161. this.Pm = b[24];
  1162. this.Eo = b[25];
  1163. this.Hg = Date.now()
  1164. };
  1165. var c = !1;
  1166. l.prototype.wl = function(b) {
  1167. b.onerror = function(k) {
  1168. c = b.Dm = !0;
  1169. console && console.error && console.error("Error loading image '" + b.src + "': ", k)
  1170. };
  1171. this.Be.push(b)
  1172. };
  1173. l.prototype.sn = function(b) {
  1174. var k, c;
  1175. k = 0;
  1176. for (c = this.Be.length; k < c; k++) if (this.Be[k].Jm === b) return this.Be[k];
  1177. return null
  1178. };
  1179. var f = 0,
  1180. e = !1;
  1181. l.prototype.Qn = function() {
  1182. this.Fe && (f = this.Fe.Kq(this.zm))
  1183. };
  1184. l.prototype.zj = function() {
  1185. var b = f,
  1186. k = 0,
  1187. c = 0,
  1188. m = !0,
  1189. n, d, c = 0;
  1190. for (n = this.Be.length; c < n; c++) {
  1191. d = this.Be[c];
  1192. var a = d.Kj;
  1193. if (!a || 0 >= a) a = 5E4;
  1194. b += a; ! d.complete && !d.loaded || d.Dm ? m = !1 : k += a
  1195. }
  1196. m && this.Eo && this.Fe && (e || (this.Fe.Lq(), e = !0), c = this.Fe.xq(), k += c, c < f && (m = !1));
  1197. this.Md = 0 == b ? 0 : k / b;
  1198. return m
  1199. };
  1200. l.prototype.go = function() {
  1201. if (this.T || this.r) {
  1202. var b = this.T || this.xi;
  1203. this.Ha && this.Vk();
  1204. this.Md = 0;
  1205. this.Ak = -1;
  1206. if (this.zj()) this.Rn();
  1207. else {
  1208. var k = Date.now() - this.Hg;
  1209. if (b) {
  1210. var d = this.width,
  1211. m = this.height,
  1212. n = this.devicePixelRatio;
  1213. this.Ha && (d = this.Nf, m = this.Mf, n = 1);
  1214. if (3 !== this.df && (this.Ob || 500 <= k && this.Ak != this.Md)) {
  1215. b.clearRect(0, 0, d, m);
  1216. var k = d / 2,
  1217. m = m / 2,
  1218. d = 0 === this.df && this.je.complete,
  1219. e = 40 * n,
  1220. f = 0,
  1221. a = 80 * n,
  1222. h;
  1223. d && (a = this.je.width * n, h = this.je.height * n, e = a / 2, f = h / 2, b.drawImage(this.je, G(k - e), G(m - f), a, h));
  1224. 1 >= this.df ? (k = G(k - e) + 0.5, m = G(m + (f + (d ? 12 * n: 0))) + 0.5, b.fillStyle = c ? "red": "DodgerBlue", b.fillRect(k, m, Math.floor(a * this.Md), 6 * n), b.strokeStyle = "black", b.strokeRect(k, m, a, 6 * n), b.strokeStyle = "white", b.strokeRect(k - 1 * n, m - 1 * n, a + 2 * n, 8 * n)) : 2 === this.df && (b.font = this.Dc ? "12pt ArialMT": "12pt Arial", b.fillStyle = c ? "#f00": "#999", b.Mq = "middle", n = Math.round(100 * this.Md) + "%", d = b.measureText ? b.measureText(n) : null, b.fillText(n, k - (d ? d.width: 0) / 2, m))
  1225. }
  1226. this.Ak = this.Md
  1227. }
  1228. setTimeout(function(b) {
  1229. return function() {
  1230. b.go()
  1231. }
  1232. } (this), this.Ob ? 10 : 100)
  1233. }
  1234. }
  1235. };
  1236. l.prototype.Rn = function() {
  1237. this.Ha && (this.canvas.parentNode.removeChild(this.Ha), this.Ha = this.xi = null);
  1238. this.Hg = Date.now();
  1239. this.bf = M();
  1240. var b, k, c;
  1241. if (this.aj) for (b = 0, k = this.m.length; b < k; b++) c = this.m[b],
  1242. c.B || c.Zh || !c.Y.hd || c.K();
  1243. else this.fg = !1;
  1244. b = 0;
  1245. for (k = this.Xb.length; b < k; b++) this.Xb[b].Km();
  1246. 2 <= this.mb && (b = this.Aa / this.za, k = this.width / this.height, this.Ee = 2 !== this.mb && k > b || 2 === this.mb && k < b ? this.height / this.za: this.width / this.Aa);
  1247. this.Uj ? this.ii[this.Uj].Pi() : this.Xb[0].Pi();
  1248. this.aj || (this.ke = 1, this.trigger(R.prototype.g.ah, null));
  1249. navigator.splashscreen && navigator.splashscreen.hide && navigator.splashscreen.hide();
  1250. b = 0;
  1251. for (k = this.m.length; b < k; b++) c = this.m[b],
  1252. c.ro && c.ro();
  1253. this.pc(!1);
  1254. this.ic && AppMobi.webview.execute("onGameReady();")
  1255. };
  1256. var t = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame;
  1257. l.prototype.pc = function(b) {
  1258. if (this.S) {
  1259. var k = M();
  1260. if (this.Tn && this.Di && 29 > k - this.fi) this.Di = !1,
  1261. this.fi = k,
  1262. t ? this.zg = t(this.Ng, this.canvas) : this.Pg = setTimeout(this.Ng, this.jc ? 1 : 16);
  1263. else {
  1264. this.Di = !0;
  1265. this.fi = k;
  1266. var c = this.mb,
  1267. m = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || !!document.msFullscreenElement) && !this.kc; (m || this.We) && 0 < this.Cd && (c = this.Cd);
  1268. if (0 < c && (!this.rk || window.self !== window.top)) {
  1269. var c = window.innerWidth,
  1270. n = window.innerHeight;
  1271. this.$e === c && this.Ze === n || this.setSize(c, n)
  1272. }
  1273. this.ma || (m ? (this.Uf || (this.Fh = jQuery(this.canvas).css("margin") || "0", this.Uf = !0), this.bg || this.gd || jQuery(this.canvas).css({
  1274. "margin-left": "" + Math.floor((screen.width - this.width / this.devicePixelRatio) / 2) + "px",
  1275. "margin-top": "" + Math.floor((screen.height - this.height / this.devicePixelRatio) / 2) + "px"
  1276. })) : this.Uf ? (this.bg || this.gd || jQuery(this.canvas).css("margin", this.Fh), this.Fh = "", this.Uf = !1, 0 === this.mb && this.setSize(Math.round(this.Mk / this.devicePixelRatio), Math.round(this.Lk / this.devicePixelRatio), !0)) : (this.Mk = this.width, this.Lk = this.height));
  1277. this.fg && (m = this.zj(), this.ke = this.Md, m && (this.fg = !1, this.Md = 1, this.trigger(R.prototype.g.ah, null)));
  1278. this.oo(); ! this.N && !this.Ob || this.di || this.vf || b || (this.N = !1, this.r ? this.yb() : this.Ub(), this.Gg && (this.canvas && this.canvas.toDataURL && (this.canvas.toDataURL(this.Gg[0], this.Gg[1]), this.trigger(R.prototype.g.Ll, null)), this.Gg = null));
  1279. this.Bq || (this.Nc++, this.Rf++, this.Wf++);
  1280. this.ef += M() - k;
  1281. this.Xe || b || (t ? this.zg = t(this.Ng, this.canvas) : this.Pg = setTimeout(this.Ng, this.jc ? 1 : 16))
  1282. }
  1283. }
  1284. };
  1285. l.prototype.oo = function() {
  1286. var b, k, c, m, n, d, e, f, a;
  1287. b = M();
  1288. 1E3 <= b - this.bf && (this.bf += 1E3, this.Eh = this.Wf, this.Wf = 0, this.uh = this.ef, this.ef = 0);
  1289. this.Ek && (0 !== this.gg && (k = b - this.gg, 0 !== k || this.$n ? (this.cd = k / 1E3, 0.5 < this.cd ? this.cd = 0 : 0.1 < this.cd && (this.cd = 0.1)) : (10 <= this.Rq && (this.Ek = !1), this.cd = 1 / 60)), this.gg = b);
  1290. this.Zd = this.cd * this.xf;
  1291. this.jd.add(this.Zd);
  1292. b = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || !!document.msFullscreenElement || this.We) && !this.kc;
  1293. 2 <= this.mb || b && 0 < this.Cd ? (k = this.Aa / this.za, c = this.width / this.height, m = this.mb, b && 0 < this.Cd && (m = this.Cd), this.Ee = 2 !== m && c > k || 2 === m && c < k ? this.height / this.za: this.width / this.Aa, this.S && (this.S.bl(this.S.scrollX), this.S.cl(this.S.scrollY))) : this.Ee = this.Gd ? this.devicePixelRatio: 1;
  1294. this.Ma();
  1295. this.Wb++;
  1296. this.oc.Jo();
  1297. this.Wb--;
  1298. this.Ma();
  1299. this.Wb++;
  1300. c = this.Kk.ye();
  1301. b = 0;
  1302. for (k = c.length; b < k; b++) c[b].Fq();
  1303. b = 0;
  1304. for (k = this.m.length; b < k; b++) if (e = this.m[b], !e.B && (e.ka.length || e.ba.length)) for (c = 0, m = e.d.length; c < m; c++) for (f = e.d[c], n = 0, d = f.C.length; n < d; n++) f.C[n].pc();
  1305. b = 0;
  1306. for (k = this.m.length; b < k; b++) if (e = this.m[b], !e.B && (e.ka.length || e.ba.length)) for (c = 0, m = e.d.length; c < m; c++) for (f = e.d[c], n = 0, d = f.C.length; n < d; n++) a = f.C[n],
  1307. a.Do && a.Do();
  1308. c = this.qi.ye();
  1309. b = 0;
  1310. for (k = c.length; b < k; b++) c[b].pc();
  1311. this.Wb--;
  1312. this.Un();
  1313. for (b = 0; this.rh && 10 > b++;) this.Oj(this.rh);
  1314. b = 0;
  1315. for (k = this.wc.length; b < k; b++) this.wc[b].Ph = !1;
  1316. this.S.Ad && this.S.Ad.oa();
  1317. this.Ho.length = 0;
  1318. this.Wb++;
  1319. b = 0;
  1320. for (k = this.m.length; b < k; b++) if (e = this.m[b], !e.B && (e.ka.length || e.ba.length)) for (c = 0, m = e.d.length; c < m; c++) for (f = e.d[c], n = 0, d = f.C.length; n < d; n++) a = f.C[n],
  1321. a.Ui && a.Ui();
  1322. c = this.ri.ye();
  1323. b = 0;
  1324. for (k = c.length; b < k; b++) c[b].Ui();
  1325. this.Wb--
  1326. };
  1327. l.prototype.Oj = function(b) {
  1328. var k = this.S;
  1329. this.S.So();
  1330. var c, m, n, d, e, f, a;
  1331. if (this.r) for (c = 0, m = this.m.length; c < m; c++) e = this.m[c],
  1332. e.B || !e.Zi || e.global && 0 !== e.d.length || -1 !== b.Ue.indexOf(e) || e.Zi();
  1333. k == b && (this.oc.eb.length = 0);
  1334. b.Pi();
  1335. c = 0;
  1336. for (m = this.m.length; c < m; c++) if (e = this.m[c], e.global || e.Y.Fg) for (b = 0, k = e.d.length; b < k; b++) if (f = e.d[b], f.si && f.si(), f.C) for (n = 0, d = f.C.length; n < d; n++) a = f.C[n],
  1337. a.si && a.si();
  1338. this.N = !0;
  1339. this.Ma()
  1340. };
  1341. l.prototype.Og = function(b) {
  1342. this.qi.add(b)
  1343. };
  1344. l.prototype.To = function(b) {
  1345. this.ri.add(b)
  1346. };
  1347. l.prototype.Ih = function(b) {
  1348. return b && -1 !== b.ff ? this.cd * b.ff: this.Zd
  1349. };
  1350. l.prototype.Ub = function() {
  1351. this.S.Ub(this.T);
  1352. this.ic && this.T.present()
  1353. };
  1354. l.prototype.yb = function() {
  1355. this.S.yb(this.r);
  1356. this.r.Eq()
  1357. };
  1358. l.prototype.dk = function(b) {
  1359. b = b.toString();
  1360. return this.ld.hasOwnProperty(b) ? this.ld[b] : null
  1361. };
  1362. l.prototype.Tc = function(b) {
  1363. var k, c;
  1364. if (!this.fc.contains(b)) {
  1365. this.fc.add(b);
  1366. if (b.Bb) for (k = 0, c = b.siblings.length; k < c; k++) this.Tc(b.siblings[k]);
  1367. this.Yh && this.fc.ze.push(b);
  1368. this.Wb++;
  1369. this.trigger(Object.getPrototypeOf(b.type.Y).g.Nl, b);
  1370. this.Wb--
  1371. }
  1372. };
  1373. l.prototype.Ma = function() {
  1374. var b, k, c, m, n, d, e, f, a, h;
  1375. this.Yh = !0;
  1376. m = 0;
  1377. for (d = this.kb.length; m < d; m++) for (b = this.kb[m], k = b.type, k.d.push(b), n = 0, e = k.ba.length; n < e; n++) k.ba[n].d.push(b),
  1378. k.ba[n].ve = !0;
  1379. this.kb.length = 0;
  1380. d = this.fc.ye();
  1381. for (m = 0; m < d.length; m++) {
  1382. b = d[m];
  1383. k = b.type;
  1384. c = k.d;
  1385. n = 0;
  1386. for (e = this.Mj.length; n < e; n++) this.Mj[n](b);
  1387. wa(c, b);
  1388. 0 === c.length && (k.yj = !1);
  1389. b.Kf && k.Ij.update(b, b.Kf, null);
  1390. b.i && (ta(b.i.d, b.Ab()), b.i.ub = !0);
  1391. n = 0;
  1392. for (e = k.ba.length; n < e; n++) wa(k.ba[n].d, b),
  1393. k.ba[n].ve = !0;
  1394. if (b.C) for (n = 0, e = b.C.length; n < e; n++) c = b.C[n],
  1395. c.Ld && c.Ld(),
  1396. c.Ib.pi.remove(b);
  1397. this.Kk.remove(b);
  1398. this.qi.remove(b);
  1399. this.ri.remove(b);
  1400. n = 0;
  1401. for (e = this.oc.eb.length; n < e; n++) if (a = this.oc.eb[n], a.Ta.hasOwnProperty(k.index) && wa(a.Ta[k.index].Cc, b), !k.B) for (c = 0, f = k.ba.length; c < f; c++) h = k.ba[c],
  1402. a.Ta.hasOwnProperty(h.index) && wa(a.Ta[h.index].Cc, b);
  1403. b.Ld && b.Ld();
  1404. this.ld.hasOwnProperty(b.uid.toString()) && delete this.ld[b.uid.toString()];
  1405. this.qg--;
  1406. 64 > k.Pf.length && k.Pf.push(b);
  1407. k.ve = !0
  1408. }
  1409. this.fc.Vb() || (this.N = !0);
  1410. this.fc.clear();
  1411. this.Yh = !1
  1412. };
  1413. l.prototype.Lj = function(b, k, c, m) {
  1414. if (b.B) {
  1415. var n = G(Math.random() * b.pg.length);
  1416. return this.Lj(b.pg[n], k, c, m)
  1417. }
  1418. return b.Lb ? this.bd(b.Lb, k, !1, c, m, !1) : null
  1419. };
  1420. var r = [];
  1421. l.prototype.bd = function(b, k, c, m, n, d) {
  1422. var e, f, a, h;
  1423. if (!b) return null;
  1424. var g = this.m[b[1]],
  1425. t = g.Y.hd;
  1426. if (this.fg && t && !g.Zh || t && !this.r && 11 === b[0][11]) return null;
  1427. var u = k;
  1428. t || (k = null);
  1429. var p;
  1430. g.Pf.length ? (p = g.Pf.pop(), p.qb = !0, g.Y.$.call(p, g)) : (p = new g.Y.$(g), p.qb = !1);
  1431. p.uid = c && !d ? b[2] : this.gf++;
  1432. this.ld[p.uid.toString()] = p;
  1433. p.Yk = this.Ik++;
  1434. p.Ed = g.d.length;
  1435. e = 0;
  1436. for (f = this.kb.length; e < f; ++e) this.kb[e].type === g && p.Ed++;
  1437. p.Re = ib;
  1438. a = b[3];
  1439. if (p.qb) Ka(p.R);
  1440. else {
  1441. p.R = {};
  1442. if ("undefined" !== typeof cr_is_preview) for (p.lk = [], p.lk.length = a.length, e = 0, f = a.length; e < f; e++) p.lk[e] = a[e][1];
  1443. p.wa = [];
  1444. p.wa.length = a.length
  1445. }
  1446. e = 0;
  1447. for (f = a.length; e < f; e++) p.wa[e] = a[e][0];
  1448. if (t) {
  1449. var l = b[0];
  1450. p.x = ha(m) ? l[0] : m;
  1451. p.y = ha(n) ? l[1] : n;
  1452. p.z = l[2];
  1453. p.width = l[3];
  1454. p.height = l[4];
  1455. p.depth = l[5];
  1456. p.j = l[6];
  1457. p.opacity = l[7];
  1458. p.Za = l[8];
  1459. p.$a = l[9];
  1460. p.Ua = l[10];
  1461. e = l[11]; ! this.r && g.A.length && (p.Ua = e);
  1462. p.He = Pa(p.Ua);
  1463. this.Ac && Qa(p, p.Ua, this.Ac);
  1464. if (p.qb) {
  1465. e = 0;
  1466. for (f = l[12].length; e < f; e++) for (a = 0, h = l[12][e].length; a < h; a++) p.ga[e][a] = l[12][e][a];
  1467. p.Na.set(0, 0, 0, 0);
  1468. p.Kf.set(0, 0, -1, -1);
  1469. p.Zc.Eg(p.Na);
  1470. p.jh.length = 0
  1471. } else {
  1472. p.ga = l[12].slice(0);
  1473. e = 0;
  1474. for (f = p.ga.length; e < f; e++) p.ga[e] = l[12][e].slice(0);
  1475. p.L = [];
  1476. p.Vc = [];
  1477. p.Vc.length = g.A.length;
  1478. p.Na = new qa(0, 0, 0, 0);
  1479. p.Kf = new qa(0, 0, -1, -1);
  1480. p.Zc = new ra;
  1481. p.jh = [];
  1482. p.Ia = mb;
  1483. p.oq = nb;
  1484. p.ec = ob;
  1485. p.Qa = pb;
  1486. p.Pq = qb;
  1487. p.Ab = rb
  1488. }
  1489. p.Vo = !1;
  1490. p.Xo = 0;
  1491. p.Wo = 0;
  1492. p.Uo = null;
  1493. 14 === l.length && (p.Vo = !0, p.Xo = l[13][0], p.Wo = l[13][1], p.Uo = l[13][2]);
  1494. e = 0;
  1495. for (f = g.A.length; e < f; e++) p.Vc[e] = !0;
  1496. p.Pc = sb;
  1497. p.Pc();
  1498. p.ul = !!p.L.length;
  1499. p.ih = !0;
  1500. p.ph = !0;
  1501. g.xj = !0;
  1502. p.visible = !0;
  1503. p.ff = -1;
  1504. p.i = k;
  1505. p.Rd = k.d.length;
  1506. "undefined" === typeof p.cc && (p.cc = null);
  1507. this.N = p.Ge = !0
  1508. }
  1509. p.toString = jb;
  1510. var q;
  1511. e = r.length = 0;
  1512. for (f = g.ba.length; e < f; e++) r.push.apply(r, g.ba[e].ka);
  1513. r.push.apply(r, g.ka);
  1514. if (p.qb) for (e = 0, f = r.length; e < f; e++) {
  1515. var A = r[e];
  1516. q = p.C[e];
  1517. q.qb = !0;
  1518. A.Ib.$.call(q, A, p);
  1519. l = b[4][e];
  1520. a = 0;
  1521. for (h = l.length; a < h; a++) q.J[a] = l[a];
  1522. q.K();
  1523. A.Ib.pi.add(p)
  1524. } else for (p.C = [], e = 0, f = r.length; e < f; e++) A = r[e],
  1525. q = new A.Ib.$(A, p),
  1526. q.qb = !1,
  1527. q.J = b[4][e].slice(0),
  1528. q.K(),
  1529. p.C.push(q),
  1530. A.Ib.pi.add(p);
  1531. l = b[5];
  1532. if (p.qb) for (e = 0, f = l.length; e < f; e++) p.J[e] = l[e];
  1533. else p.J = l.slice(0);
  1534. this.kb.push(p);
  1535. k && (k.d.push(p), 1 !== k.Gc || 1 !== k.Hc) && (g.yj = !0);
  1536. this.qg++;
  1537. if (g.Bb) {
  1538. if (p.Bb = !0, p.qb ? p.siblings.length = 0 : p.siblings = [], !c && !d) {
  1539. e = 0;
  1540. for (f = g.jb.length; e < f; e++) if (g.jb[e] !== g) {
  1541. if (!g.jb[e].Lb) return null;
  1542. p.siblings.push(this.bd(g.jb[e].Lb, u, !1, t ? p.x: m, t ? p.y: n, !0))
  1543. }
  1544. e = 0;
  1545. for (f = p.siblings.length; e < f; e++) for (p.siblings[e].siblings.push(p), a = 0; a < f; a++) e !== a && p.siblings[e].siblings.push(p.siblings[a])
  1546. }
  1547. } else p.Bb = !1,
  1548. p.siblings = null;
  1549. p.K();
  1550. e = 0;
  1551. for (f = p.C.length; e < f; e++) p.C[e].Co && p.C[e].Co();
  1552. return p
  1553. };
  1554. l.prototype.Mh = function(b) {
  1555. var k, e;
  1556. k = 0;
  1557. for (e = this.S.I.length; k < e; k++) {
  1558. var m = this.S.I[k];
  1559. if (Sa(m.name, b)) return m
  1560. }
  1561. return null
  1562. };
  1563. l.prototype.Pe = function(b) {
  1564. b = G(b);
  1565. 0 > b && (b = 0);
  1566. b >= this.S.I.length && (b = this.S.I.length - 1);
  1567. return this.S.I[b]
  1568. };
  1569. l.prototype.sh = function(b) {
  1570. var k, e;
  1571. k = 0;
  1572. for (e = b.length; k < e; k++) b[k].V().Z = !0
  1573. };
  1574. l.prototype.nf = function(b) {
  1575. var e, c;
  1576. e = 0;
  1577. for (c = b.length; e < c; e++) b[e].nf()
  1578. };
  1579. l.prototype.re = function(b) {
  1580. var e, c;
  1581. e = 0;
  1582. for (c = b.length; e < c; e++) b[e].re()
  1583. };
  1584. l.prototype.Ic = function(b) {
  1585. var e, c;
  1586. e = 0;
  1587. for (c = b.length; e < c; e++) b[e].Ic()
  1588. };
  1589. l.prototype.Lg = function(b, e, c) {
  1590. var m = b.V(),
  1591. n,
  1592. d,
  1593. f,
  1594. a,
  1595. h,
  1596. r;
  1597. if (m.Z) for (m.Z = !1, n = m.d.length = 0, a = b.d.length; n < a; n++) f = b.d[n],
  1598. f.Qa(),
  1599. h = f.i.ib(e, c, !0),
  1600. r = f.i.ib(e, c, !1),
  1601. f.ec(h, r) && m.d.push(f);
  1602. else {
  1603. n = d = 0;
  1604. for (a = m.d.length; n < a; n++) f = m.d[n],
  1605. f.Qa(),
  1606. h = f.i.ib(e, c, !0),
  1607. r = f.i.ib(e, c, !1),
  1608. f.ec(h, r) && (m.d[d] = m.d[n], d++);
  1609. m.d.length = d
  1610. }
  1611. b.Xc();
  1612. return m.Oh()
  1613. };
  1614. new ra;
  1615. new qa(0, 0, 0, 0);
  1616. l.prototype.pl = function(b, e) {
  1617. if (!e) return ! 1;
  1618. var c, m, n, d, f;
  1619. c = 0;
  1620. for (m = b.ka.length; c < m; c++) if (b.ka[c].Ib instanceof e) return ! 0;
  1621. if (!b.B) for (c = 0, m = b.ba.length; c < m; c++) for (f = b.ba[c], n = 0, d = f.ka.length; n < d; n++) if (f.ka[n].Ib instanceof e) return ! 0;
  1622. return ! 1
  1623. };
  1624. l.prototype.ql = function(b) {
  1625. return this.pl(b, Gb.Mp)
  1626. };
  1627. l.prototype.Yi = function(b) {
  1628. return this.pl(b, Gb.Np)
  1629. };
  1630. var p = -1;
  1631. l.prototype.trigger = function(b, e, c) {
  1632. if (!this.S) return ! 1;
  1633. var m = this.S.Ad;
  1634. if (!m) return ! 1;
  1635. var d = !1,
  1636. f, a, h;
  1637. p++;
  1638. var r = m.xh;
  1639. a = 0;
  1640. for (h = r.length; a < h; ++a) f = this.ml(b, e, r[a], c),
  1641. d = d || f;
  1642. f = this.ml(b, e, m, c);
  1643. p--;
  1644. return d || f
  1645. };
  1646. l.prototype.ml = function(b, e, c, m) {
  1647. var d = !1,
  1648. f, a, h, r;
  1649. if (e) for (h = this.Wi(b, e, e.type.name, c, m), d = d || h, r = e.type.ba, f = 0, a = r.length; f < a; ++f) h = this.Wi(b, e, r[f].name, c, m),
  1650. d = d || h;
  1651. else h = this.Wi(b, e, "system", c, m),
  1652. d = d || h;
  1653. return d
  1654. };
  1655. l.prototype.Wi = function(b, e, c, m, d) {
  1656. var f, a = !1,
  1657. h = !1,
  1658. h = "undefined" !== typeof d,
  1659. r = (h ? m.Sj: m.nl)[c];
  1660. if (!r) return a;
  1661. var g = null;
  1662. m = 0;
  1663. for (f = r.length; m < f; ++m) if (r[m].method == b) {
  1664. g = r[m].Ke;
  1665. break
  1666. }
  1667. if (!g) return a;
  1668. b = h ? g[d] : g;
  1669. if (!b) return null;
  1670. m = 0;
  1671. for (f = b.length; m < f; m++) d = b[m][0],
  1672. h = b[m][1],
  1673. h = this.rn(e, c, d, h),
  1674. a = a || h;
  1675. return a
  1676. };
  1677. l.prototype.rn = function(b, e, c, m) {
  1678. var d, f, a = !1;
  1679. this.Xi++;
  1680. var h = this.Fa().Da;
  1681. h && this.nf(h.pd);
  1682. var r = 1 < this.Xi;
  1683. this.nf(c.pd);
  1684. r && this.Fo();
  1685. var g = this.yg(c);
  1686. g.Da = c;
  1687. b && (d = this.types[e].V(), d.Z = !1, d.d.length = 1, d.d[0] = b, this.types[e].Xc());
  1688. b = !0;
  1689. if (c.parent) {
  1690. e = g.il;
  1691. for (d = c.parent; d;) e.push(d),
  1692. d = d.parent;
  1693. e.reverse();
  1694. d = 0;
  1695. for (f = e.length; d < f; d++) if (!e[d].Lo()) {
  1696. b = !1;
  1697. break
  1698. }
  1699. }
  1700. b && (this.Rf++, c.Zb ? c.Ko(m) : c.oa(), a = a || g.Hd);
  1701. this.vg();
  1702. r && this.Ao();
  1703. this.Ic(c.pd);
  1704. h && this.Ic(h.pd);
  1705. 0 !== this.Wb || 0 !== p || this.$h || this.fc.Vb() && !this.kb.length || this.Ma();
  1706. this.Xi--;
  1707. return a
  1708. };
  1709. l.prototype.Yj = function() {
  1710. var b = this.Fa();
  1711. return b.Da.ua[b.la]
  1712. };
  1713. l.prototype.Fo = function() {
  1714. this.ng++;
  1715. this.ng >= this.mi.length && this.mi.push([])
  1716. };
  1717. l.prototype.Ao = function() {
  1718. this.ng--
  1719. };
  1720. l.prototype.Zj = function() {
  1721. return this.mi[this.ng]
  1722. };
  1723. l.prototype.yg = function(b) {
  1724. this.Qf++;
  1725. this.Qf >= this.Bh.length && this.Bh.push(new tb);
  1726. var e = this.Fa();
  1727. e.reset(b);
  1728. return e
  1729. };
  1730. l.prototype.vg = function() {
  1731. this.Qf--
  1732. };
  1733. l.prototype.Fa = function() {
  1734. return this.Bh[this.Qf]
  1735. };
  1736. l.prototype.Go = function(b) {
  1737. this.og++;
  1738. this.og >= this.ni.length && this.ni.push(ea({
  1739. name: b,
  1740. index: 0,
  1741. uf: !1
  1742. }));
  1743. var e = this.xn();
  1744. e.name = b;
  1745. e.index = 0;
  1746. e.uf = !1;
  1747. return e
  1748. };
  1749. l.prototype.Bo = function() {
  1750. this.og--
  1751. };
  1752. l.prototype.xn = function() {
  1753. return this.ni[this.og]
  1754. };
  1755. l.prototype.$j = function(b, e) {
  1756. for (var c, m, d, f, a, h; e;) {
  1757. c = 0;
  1758. for (m = e.Qb.length; c < m; c++) if (h = e.Qb[c], h instanceof ub && Sa(b, h.name)) return h;
  1759. e = e.parent
  1760. }
  1761. c = 0;
  1762. for (m = this.wc.length; c < m; c++) for (a = this.wc[c], d = 0, f = a.dd.length; d < f; d++) if (h = a.dd[d], h instanceof ub && Sa(b, h.name)) return h;
  1763. return null
  1764. };
  1765. l.prototype.bk = function(b) {
  1766. var e, c;
  1767. e = 0;
  1768. for (c = this.Xb.length; e < c; e++) if (this.Xb[e].H === b) return this.Xb[e];
  1769. return null
  1770. };
  1771. l.prototype.Zf = function(b) {
  1772. var e, c;
  1773. e = 0;
  1774. for (c = this.m.length; e < c; e++) if (this.m[e].H === b) return this.m[e];
  1775. return null
  1776. };
  1777. l.prototype.zn = function(b) {
  1778. var e, c;
  1779. e = 0;
  1780. for (c = this.Xd.length; e < c; e++) if (this.Xd[e].H === b) return this.Xd[e];
  1781. return null
  1782. };
  1783. l.prototype.Un = function() {
  1784. var b = this,
  1785. e = this.Li,
  1786. c = this.Fc,
  1787. m = this.lg,
  1788. f = !1;
  1789. this.hl && (f = !0, e = "__c2_continuouspreview", this.hl = !1);
  1790. if (e.length) {
  1791. this.Ma();
  1792. c = this.Po();
  1793. if (window.indexedDB && !this.Ob) a(e, c,
  1794. function() {
  1795. y("Saved state to IndexedDB storage (" + c.length + " bytes)");
  1796. b.Fc = c;
  1797. b.trigger(R.prototype.g.bh, null);
  1798. b.Fc = "";
  1799. f && d()
  1800. },
  1801. function(m) {
  1802. try {
  1803. localStorage.setItem("__c2save_" + e, c),
  1804. y("Saved state to WebStorage (" + c.length + " bytes)"),
  1805. b.Fc = c,
  1806. b.trigger(R.prototype.g.bh, null),
  1807. b.Fc = "",
  1808. f && d()
  1809. } catch(a) {
  1810. y("Failed to save game state: " + m + "; " + a)
  1811. }
  1812. });
  1813. else try {
  1814. localStorage.setItem("__c2save_" + e, c),
  1815. y("Saved state to WebStorage (" + c.length + " bytes)"),
  1816. b.Fc = c,
  1817. this.trigger(R.prototype.g.bh, null),
  1818. b.Fc = "",
  1819. f && d()
  1820. } catch(h) {
  1821. y("Error saving to WebStorage: " + h)
  1822. }
  1823. this.Sa = this.lg = this.Li = ""
  1824. }
  1825. m.length && (window.indexedDB && !this.Ob ? g(m,
  1826. function(e) {
  1827. e ? (b.Sa = e, y("Loaded state from IndexedDB storage (" + b.Sa.length + " bytes)")) : (b.Sa = localStorage.getItem("__c2save_" + m) || "", y("Loaded state from WebStorage (" + b.Sa.length + " bytes)"));
  1828. b.vf = !1;
  1829. b.Sa.length || b.trigger(R.prototype.g.$g, null)
  1830. },
  1831. function() {
  1832. b.Sa = localStorage.getItem("__c2save_" + m) || "";
  1833. y("Loaded state from WebStorage (" + b.Sa.length + " bytes)");
  1834. b.vf = !1;
  1835. b.Sa.length || b.trigger(R.prototype.g.$g, null)
  1836. }) : (this.Sa = localStorage.getItem("__c2save_" + m) || "", y("Loaded state from WebStorage (" + this.Sa.length + " bytes)"), this.vf = !1, b.Sa.length || b.trigger(R.prototype.g.$g, null)), this.Li = this.lg = "");
  1837. this.Sa.length && (this.Ma(), this.no(this.Sa), this.Fc = this.Sa, this.trigger(R.prototype.g.Wl, null), this.Sa = this.Fc = "")
  1838. };
  1839. l.prototype.Po = function() {
  1840. var b, e, c, m, d, f, a, h = {
  1841. c2save: !0,
  1842. version: 1,
  1843. rt: {
  1844. time: this.jd.ja,
  1845. timescale: this.xf,
  1846. tickcount: this.Nc,
  1847. execcount: this.Rf,
  1848. next_uid: this.gf,
  1849. running_layout: this.S.H,
  1850. start_time_offset: Date.now() - this.Hg
  1851. },
  1852. types: {},
  1853. layouts: {},
  1854. events: {
  1855. groups: {},
  1856. cnds: {},
  1857. acts: {},
  1858. vars: {}
  1859. }
  1860. };
  1861. b = 0;
  1862. for (e = this.m.length; b < e; b++) if (d = this.m[b], !d.B && !this.ql(d)) {
  1863. f = {
  1864. instances: []
  1865. };
  1866. Ja(d.R) && (f.ex = u(d.R));
  1867. c = 0;
  1868. for (m = d.d.length; c < m; c++) f.instances.push(this.Ki(d.d[c]));
  1869. h.types[d.H.toString()] = f
  1870. }
  1871. b = 0;
  1872. for (e = this.Xb.length; b < e; b++) c = this.Xb[b],
  1873. h.layouts[c.H.toString()] = c.Db();
  1874. m = h.events.groups;
  1875. b = 0;
  1876. for (e = this.Xd.length; b < e; b++) c = this.Xd[b],
  1877. m[c.H.toString()] = this.fe[c.Se].ed;
  1878. e = h.events.cnds;
  1879. for (a in this.Yd) this.Yd.hasOwnProperty(a) && (b = this.Yd[a], Ja(b.R) && (e[a] = {
  1880. ex: u(b.R)
  1881. }));
  1882. e = h.events.acts;
  1883. for (a in this.Wd) this.Wd.hasOwnProperty(a) && (b = this.Wd[a], Ja(b.R) && (e[a] = {
  1884. ex: b.R
  1885. }));
  1886. e = h.events.vars;
  1887. for (a in this.Ae) this.Ae.hasOwnProperty(a) && (b = this.Ae[a], b.cg || b.parent && !b.Ye || (e[a] = b.data));
  1888. h.system = this.oc.Db();
  1889. return JSON.stringify(h)
  1890. };
  1891. l.prototype.Zk = function() {
  1892. var b, e, c, m, d, f;
  1893. this.ld = {};
  1894. b = 0;
  1895. for (e = this.m.length; b < e; b++) if (c = this.m[b], !c.B) for (m = 0, d = c.d.length; m < d; m++) f = c.d[m],
  1896. this.ld[f.uid.toString()] = f
  1897. };
  1898. l.prototype.no = function(b) {
  1899. b = JSON.parse(b);
  1900. if (b.c2save && !(1 < b.version)) {
  1901. var e = b.rt;
  1902. this.jd.reset();
  1903. this.jd.ja = e.time;
  1904. this.xf = e.timescale;
  1905. this.Nc = e.tickcount;
  1906. this.Hg = Date.now() - e.start_time_offset;
  1907. var c = e.running_layout;
  1908. if (c !== this.S.H) if (c = this.bk(c)) this.Oj(c);
  1909. else return;
  1910. var m, d, f, a, h, r, g;
  1911. r = b.types;
  1912. for (d in r) if (r.hasOwnProperty(d) && (a = this.Zf(parseInt(d, 10))) && !a.B && !this.ql(a)) {
  1913. r[d].ex ? a.R = r[d].ex: Ka(a.R);
  1914. h = a.d;
  1915. f = r[d].instances;
  1916. c = 0;
  1917. for (m = ma(h.length, f.length); c < m; c++) this.mg(h[c], f[c]);
  1918. c = f.length;
  1919. for (m = h.length; c < m; c++) this.Tc(h[c]);
  1920. c = h.length;
  1921. for (m = f.length; c < m; c++) {
  1922. h = null;
  1923. if (a.Y.hd && (h = this.S.Yf(f[c].w.l), !h)) continue;
  1924. h = this.bd(a.Lb, h, !1, 0, 0, !0);
  1925. this.mg(h, f[c])
  1926. }
  1927. a.ve = !0
  1928. }
  1929. this.Ma();
  1930. this.Zk();
  1931. m = b.layouts;
  1932. for (d in m) m.hasOwnProperty(d) && (c = this.bk(parseInt(d, 10))) && c.Yb(m[d]);
  1933. m = b.events.groups;
  1934. for (d in m) m.hasOwnProperty(d) && (c = this.zn(parseInt(d, 10))) && this.fe[c.Se] && (this.fe[c.Se].ed = m[d]);
  1935. c = b.events.cnds;
  1936. for (d in c) c.hasOwnProperty(d) && this.Yd.hasOwnProperty(d) && (this.Yd[d].R = c[d].ex);
  1937. c = b.events.acts;
  1938. for (d in c) c.hasOwnProperty(d) && this.Wd.hasOwnProperty(d) && (this.Wd[d].R = c[d].ex);
  1939. c = b.events.vars;
  1940. for (d in c) c.hasOwnProperty(d) && this.Ae.hasOwnProperty(d) && (this.Ae[d].data = c[d]);
  1941. this.gf = e.next_uid;
  1942. this.oc.Yb(b.system);
  1943. c = 0;
  1944. for (m = this.m.length; c < m; c++) if (a = this.m[c], !a.B) for (d = 0, b = a.d.length; d < b; d++) {
  1945. h = a.d[d];
  1946. if (a.Bb) for (r = h.Re(), e = h.siblings.length = 0, f = a.jb.length; e < f; e++) g = a.jb[e],
  1947. a !== g && h.siblings.push(g.d[r]);
  1948. h.Wc && h.Wc();
  1949. if (h.C) for (e = 0, f = h.C.length; e < f; e++) r = h.C[e],
  1950. r.Wc && r.Wc()
  1951. }
  1952. this.N = !0
  1953. }
  1954. };
  1955. l.prototype.Ki = function(b, c) {
  1956. var e, m, d, f, a;
  1957. f = b.type;
  1958. d = f.Y;
  1959. var h = {};
  1960. c ? h.c2 = !0 : h.uid = b.uid;
  1961. Ja(b.R) && (h.ex = u(b.R));
  1962. if (b.wa && b.wa.length) for (h.ivs = {},
  1963. e = 0, m = b.wa.length; e < m; e++) h.ivs[b.type.Uh[e].toString()] = b.wa[e];
  1964. if (d.hd) {
  1965. d = {
  1966. x: b.x,
  1967. y: b.y,
  1968. w: b.width,
  1969. h: b.height,
  1970. l: b.i.H,
  1971. zi: b.Ab()
  1972. };
  1973. 0 !== b.j && (d.a = b.j);
  1974. 1 !== b.opacity && (d.o = b.opacity);
  1975. 0.5 !== b.Za && (d.hX = b.Za);
  1976. 0.5 !== b.$a && (d.hY = b.$a);
  1977. 0 !== b.Ua && (d.bm = b.Ua);
  1978. b.visible || (d.v = b.visible);
  1979. b.Ge || (d.ce = b.Ge); - 1 !== b.ff && (d.mts = b.ff);
  1980. if (f.A.length) for (d.fx = [], e = 0, m = f.A.length; e < m; e++) a = f.A[e],
  1981. d.fx.push({
  1982. name: a.name,
  1983. active: b.Vc[a.index],
  1984. params: b.ga[a.index]
  1985. });
  1986. h.w = d
  1987. }
  1988. if (b.C && b.C.length) for (h.behs = {},
  1989. e = 0, m = b.C.length; e < m; e++) f = b.C[e],
  1990. f.Db && (h.behs[f.type.H.toString()] = f.Db());
  1991. b.Db && (h.data = b.Db());
  1992. return h
  1993. };
  1994. l.prototype.Bn = function(b, e) {
  1995. var c, m;
  1996. c = 0;
  1997. for (m = b.Uh.length; c < m; c++) if (b.Uh[c] === e) return c;
  1998. return - 1
  1999. };
  2000. l.prototype.wn = function(b, e) {
  2001. var c, m;
  2002. c = 0;
  2003. for (m = b.C.length; c < m; c++) if (b.C[c].type.H === e) return c;
  2004. return - 1
  2005. };
  2006. l.prototype.mg = function(b, e, c) {
  2007. var m, d, f, a, h;
  2008. h = b.type;
  2009. f = h.Y;
  2010. if (c) {
  2011. if (!e.c2) return
  2012. } else b.uid = e.uid;
  2013. e.ex ? b.R = e.ex: Ka(b.R);
  2014. if (d = e.ivs) for (m in d) d.hasOwnProperty(m) && (c = this.Bn(h, parseInt(m, 10)), 0 > c || c >= b.wa.length || (b.wa[c] = d[m]));
  2015. if (f.hd) {
  2016. f = e.w;
  2017. b.i.H !== f.l && (c = b.i, b.i = this.S.Yf(f.l), b.i ? (b.i.d.push(b), b.i.ub = !0, wa(c.d, b), c.ub = !0) : (b.i = c, this.Tc(b)));
  2018. b.x = f.x;
  2019. b.y = f.y;
  2020. b.width = f.w;
  2021. b.height = f.h;
  2022. b.Rd = f.zi;
  2023. b.j = f.hasOwnProperty("a") ? f.a: 0;
  2024. b.opacity = f.hasOwnProperty("o") ? f.o: 1;
  2025. b.Za = f.hasOwnProperty("hX") ? f.hX: 0.5;
  2026. b.$a = f.hasOwnProperty("hY") ? f.hY: 0.5;
  2027. b.visible = f.hasOwnProperty("v") ? f.v: !0;
  2028. b.Ge = f.hasOwnProperty("ce") ? f.ce: !0;
  2029. b.ff = f.hasOwnProperty("mts") ? f.mts: -1;
  2030. b.Ua = f.hasOwnProperty("bm") ? f.bm: 0;
  2031. b.He = Pa(b.Ua);
  2032. this.Ac && Qa(b, b.Ua, this.Ac);
  2033. b.Ia();
  2034. if (f.hasOwnProperty("fx")) for (c = 0, d = f.fx.length; c < d; c++) a = h.Kh(f.fx[c].name),
  2035. 0 > a || (b.Vc[a] = f.fx[c].active, b.ga[a] = f.fx[c].params);
  2036. b.Pc()
  2037. }
  2038. if (h = e.behs) for (m in h) h.hasOwnProperty(m) && (f = this.wn(b, parseInt(m, 10)), 0 > f || b.C[f].Yb(h[m]));
  2039. e.data && b.Yb(e.data)
  2040. };
  2041. vb = function(b) {
  2042. return new l(document.getElementById(b))
  2043. };
  2044. wb = function(b, c) {
  2045. return new l({
  2046. dc: !0,
  2047. width: b,
  2048. height: c
  2049. })
  2050. };
  2051. window.cr_createRuntime = vb;
  2052. window.cr_createDCRuntime = wb;
  2053. window.createCocoonJSRuntime = function() {
  2054. window.c2cocoonjs = !0;
  2055. var b = document.createElement("screencanvas") || document.createElement("canvas");
  2056. b.Iq = !0;
  2057. document.body.appendChild(b);
  2058. b = new l(b);
  2059. window.c2runtime = b;
  2060. window.addEventListener("orientationchange",
  2061. function() {
  2062. window.c2runtime.setSize(window.innerWidth, window.innerHeight)
  2063. });
  2064. window.c2runtime.setSize(window.innerWidth, window.innerHeight);
  2065. return b
  2066. };
  2067. window.createEjectaRuntime = function() {
  2068. var b = new l(document.getElementById("canvas"));
  2069. window.c2runtime = b;
  2070. window.c2runtime.setSize(window.innerWidth, window.innerHeight);
  2071. return b
  2072. }
  2073. })();
  2074. window.cr_getC2Runtime = function() {
  2075. var l = document.getElementById("c2canvas");
  2076. return l ? l.c2runtime: window.c2runtime ? window.c2runtime: null
  2077. };
  2078. window.cr_sizeCanvas = function(l, q) {
  2079. if (0 !== l && 0 !== q) {
  2080. var a = window.cr_getC2Runtime();
  2081. a && a.setSize(l, q)
  2082. }
  2083. };
  2084. window.cr_setSuspended = function(l) {
  2085. var q = window.cr_getC2Runtime();
  2086. q && q.setSuspended(l)
  2087. }; (function() {
  2088. function l(d, a) {
  2089. this.b = d;
  2090. this.Ad = null;
  2091. this.scrollX = this.b.Aa / 2;
  2092. this.scrollY = this.b.za / 2;
  2093. this.scale = 1;
  2094. this.j = 0;
  2095. this.Oe = !0;
  2096. this.name = a[0];
  2097. this.width = a[1];
  2098. this.height = a[2];
  2099. this.rl = a[3];
  2100. this.gl = a[4];
  2101. this.H = a[5];
  2102. var h = a[6],
  2103. c,
  2104. f;
  2105. this.I = [];
  2106. this.Ue = [];
  2107. c = 0;
  2108. for (f = h.length; c < f; c++) {
  2109. var e = new xb(this, h[c]);
  2110. e.Jk = c;
  2111. this.I.push(e)
  2112. }
  2113. h = a[7];
  2114. this.Fd = [];
  2115. c = 0;
  2116. for (f = h.length; c < f; c++) {
  2117. var e = h[c],
  2118. g = this.b.m[e[1]];
  2119. g.Lb || (g.Lb = e);
  2120. this.Fd.push(e); - 1 === this.Ue.indexOf(g) && this.Ue.push(g)
  2121. }
  2122. this.A = [];
  2123. this.L = [];
  2124. this.ga = [];
  2125. c = 0;
  2126. for (f = a[8].length; c < f; c++) this.A.push({
  2127. id: a[8][c][0],
  2128. name: a[8][c][1],
  2129. Ja: -1,
  2130. wb: !0,
  2131. index: c
  2132. }),
  2133. this.ga.push(a[8][c][2].slice(0));
  2134. this.Pc();
  2135. this.nd = new qa(0, 0, 1, 1);
  2136. this.Ei = new qa(0, 0, 1, 1);
  2137. this.md = {}
  2138. }
  2139. function q(d, a) {
  2140. this.W = d;
  2141. this.b = d.b;
  2142. this.d = [];
  2143. this.scale = 1;
  2144. this.j = 0;
  2145. this.zd = !1;
  2146. this.Oc = new qa(0, 0, 0, 0);
  2147. this.ll = new ra;
  2148. this.sb = this.La = this.tb = this.Ka = 0;
  2149. this.ub = !1;
  2150. this.name = a[0];
  2151. this.index = a[1];
  2152. this.H = a[2];
  2153. this.visible = a[3];
  2154. this.Yc = a[4];
  2155. this.Qd = a[5];
  2156. this.Gc = a[6];
  2157. this.Hc = a[7];
  2158. this.opacity = a[8];
  2159. this.Dh = a[9];
  2160. this.Rc = a[10];
  2161. this.Ua = a[11];
  2162. this.Qm = a[12];
  2163. this.He = "source-over";
  2164. this.Oa = this.Pa = 0;
  2165. this.od = !1;
  2166. var h = a[13],
  2167. c,
  2168. f;
  2169. this.ge = [];
  2170. c = 0;
  2171. for (f = h.length; c < f; c++) {
  2172. var e = h[c],
  2173. g = this.b.m[e[1]];
  2174. g.Lb || (g.Lb = e, g.Mm = this.index);
  2175. this.ge.push(e); - 1 === this.W.Ue.indexOf(g) && this.W.Ue.push(g)
  2176. }
  2177. this.A = [];
  2178. this.L = [];
  2179. this.ga = [];
  2180. c = 0;
  2181. for (f = a[14].length; c < f; c++) this.A.push({
  2182. id: a[14][c][0],
  2183. name: a[14][c][1],
  2184. Ja: -1,
  2185. wb: !0,
  2186. index: c
  2187. }),
  2188. this.ga.push(a[14][c][2].slice(0));
  2189. this.Pc();
  2190. this.nd = new qa(0, 0, 1, 1);
  2191. this.Ei = new qa(0, 0, 1, 1)
  2192. }
  2193. function a(d, a) {
  2194. return d.Rd - a.Rd
  2195. }
  2196. l.prototype.Oo = function(d) {
  2197. var a = d.type.H.toString();
  2198. this.md.hasOwnProperty(a) || (this.md[a] = []);
  2199. this.md[a].push(this.b.Ki(d))
  2200. };
  2201. l.prototype.fk = function() {
  2202. var d = this.I[0];
  2203. return ! d.Qd && 1 === d.opacity && !d.Dh && d.visible
  2204. };
  2205. l.prototype.Pc = function() {
  2206. this.L.length = 0;
  2207. var d, a, h;
  2208. d = 0;
  2209. for (a = this.A.length; d < a; d++) h = this.A[d],
  2210. h.wb && this.L.push(h)
  2211. };
  2212. l.prototype.Jh = function(d) {
  2213. var a, h, c;
  2214. a = 0;
  2215. for (h = this.A.length; a < h; a++) if (c = this.A[a], c.name === d) return c;
  2216. return null
  2217. };
  2218. var g = [];
  2219. l.prototype.Pi = function() {
  2220. this.gl && (this.Ad = this.b.Ch[this.gl], this.Ad.$i());
  2221. this.b.S = this;
  2222. this.scrollX = this.b.Aa / 2;
  2223. this.scrollY = this.b.za / 2;
  2224. var d, u, h, c, f, e, t;
  2225. d = 0;
  2226. for (h = this.b.m.length; d < h; d++) if (u = this.b.m[d], !u.B) for (f = u.d, u = 0, c = f.length; u < c; u++) if (e = f[u], e.i) {
  2227. var r = e.i.Jk;
  2228. r >= this.I.length && (r = this.I.length - 1);
  2229. e.i = this.I[r];
  2230. e.i.d.push(e);
  2231. e.i.ub = !0
  2232. }
  2233. g.length = 0;
  2234. this.Cm();
  2235. d = 0;
  2236. for (h = this.I.length; d < h; d++) e = this.I[d],
  2237. e.Lm(),
  2238. e.zd = !0,
  2239. u = e.ib(0, 0, !0, !0),
  2240. c = e.ib(0, 0, !1, !0),
  2241. e.zd = !1,
  2242. this.b.mc && (u = u + 0.5 | 0, c = c + 0.5 | 0),
  2243. e.Hi(u, c, null);
  2244. f = !1;
  2245. if (!this.Oe) {
  2246. for (t in this.md) if (this.md.hasOwnProperty(t) && (u = this.b.Zf(parseInt(t, 10))) && !u.B && this.b.Yi(u)) {
  2247. c = this.md[t];
  2248. d = 0;
  2249. for (h = c.length; d < h; d++) {
  2250. e = null;
  2251. if (u.Y.hd && (e = this.Yf(c[d].w.l), !e)) continue;
  2252. e = this.b.bd(u.Lb, e, !1, 0, 0, !0);
  2253. this.b.mg(e, c[d]);
  2254. f = !0;
  2255. g.push(e)
  2256. }
  2257. c.length = 0
  2258. }
  2259. d = 0;
  2260. for (h = this.I.length; d < h; d++) this.I[d].d.sort(a),
  2261. this.I[d].ub = !0
  2262. }
  2263. f && (this.b.Ma(), this.b.Zk());
  2264. for (d = 0; d < g.length; d++) if (e = g[d], e.type.Bb) for (h = e.Re(), u = 0, c = e.type.jb.length; u < c; u++) t = e.type.jb[u],
  2265. e.type !== t && (t.d.length > h ? e.siblings.push(t.d[h]) : t.Lb && (f = this.b.bd(t.Lb, e.i, !0, e.x, e.y, !0), this.b.Ma(), t.Tg(), e.siblings.push(f), g.push(f)));
  2266. d = 0;
  2267. for (h = this.Fd.length; d < h; d++) this.b.bd(this.Fd[d], null, !0);
  2268. this.b.rh = null;
  2269. this.b.Ma();
  2270. if (this.b.T && !this.b.ma) for (d = 0, h = this.b.m.length; d < h; d++) t = this.b.m[d],
  2271. !t.B && t.d.length && t.yi && t.yi(this.b.T);
  2272. d = 0;
  2273. for (h = g.length; d < h; d++) e = g[d],
  2274. this.b.trigger(Object.getPrototypeOf(e.type.Y).g.Zg, e);
  2275. g.length = 0;
  2276. this.b.trigger(R.prototype.g.Vl, null);
  2277. this.Oe = !1
  2278. };
  2279. l.prototype.Km = function() {
  2280. var d, a, h, c, f;
  2281. a = d = 0;
  2282. for (h = this.Fd.length; d < h; d++) c = this.Fd[d],
  2283. f = this.b.m[c[1]],
  2284. f.global ? this.b.bd(c, null, !0) : (this.Fd[a] = c, a++);
  2285. this.Fd.length = a
  2286. };
  2287. l.prototype.So = function() {
  2288. this.b.trigger(R.prototype.g.Ul, null);
  2289. this.b.oc.eb.length = 0;
  2290. var d, a, h, c, f, e;
  2291. d = 0;
  2292. for (a = this.I.length; d < a; d++) {
  2293. f = this.I[d].d;
  2294. h = 0;
  2295. for (c = f.length; h < c; h++) e = f[h],
  2296. e.type.global || (this.b.Yi(e.type) && this.Oo(e), this.b.Tc(e));
  2297. this.b.Ma();
  2298. f.length = 0;
  2299. this.I[d].ub = !0
  2300. }
  2301. d = 0;
  2302. for (a = this.b.m.length; d < a; d++) if (f = this.b.m[d], !(f.global || f.Y.hd || f.Y.Fg || f.B)) {
  2303. h = 0;
  2304. for (c = f.d.length; h < c; h++) this.b.Tc(f.d[h]);
  2305. this.b.Ma()
  2306. }
  2307. };
  2308. l.prototype.Ub = function(d) {
  2309. var a, h = d,
  2310. c = !1,
  2311. f = !this.b.Nb;
  2312. f && (this.b.kg || (this.b.kg = document.createElement("canvas"), a = this.b.kg, a.width = this.b.G, a.height = this.b.F, this.b.Ck = a.getContext("2d"), c = !0), a = this.b.kg, h = this.b.Ck, a.width !== this.b.G && (a.width = this.b.G, c = !0), a.height !== this.b.F && (a.height = this.b.F, c = !0), c && (h.webkitImageSmoothingEnabled = this.b.M, h.mozImageSmoothingEnabled = this.b.M, h.msImageSmoothingEnabled = this.b.M, h.imageSmoothingEnabled = this.b.M));
  2313. h.globalAlpha = 1;
  2314. h.globalCompositeOperation = "source-over";
  2315. this.b.eh && !this.fk() && h.clearRect(0, 0, this.b.G, this.b.F);
  2316. var e, g, c = 0;
  2317. for (e = this.I.length; c < e; c++) g = this.I[c],
  2318. g.visible && 0 < g.opacity && 11 !== g.Ua && g.Ub(h);
  2319. f && d.drawImage(a, 0, 0, this.b.width, this.b.height)
  2320. };
  2321. l.prototype.yb = function(d) {
  2322. var a = 0 < this.L.length || this.b.xe || !this.b.Nb;
  2323. if (a) {
  2324. this.b.ob || (this.b.ob = d.ad(this.b.G, this.b.F, this.b.M));
  2325. if (this.b.ob.mh !== this.b.G || this.b.ob.lh !== this.b.F) d.deleteTexture(this.b.ob),
  2326. this.b.ob = d.ad(this.b.G, this.b.F, this.b.M);
  2327. d.Lc(this.b.ob);
  2328. this.b.Nb || d.Nd(this.b.G, this.b.F)
  2329. } else this.b.ob && (d.Lc(null), d.deleteTexture(this.b.ob), this.b.ob = null);
  2330. this.b.eh && !this.fk() && d.clear(0, 0, 0, 0);
  2331. var h, c;
  2332. h = 0;
  2333. for (c = this.I.length; h < c; h++) this.I[h].visible && 0 < this.I[h].opacity && this.I[h].yb(d);
  2334. a && (0 === this.L.length || 1 === this.L.length && this.b.Nb ? (1 === this.L.length ? (a = this.L[0].index, d.sd(this.L[0].Ja), d.rf(null, 1 / this.b.G, 1 / this.b.F, 0, 0, 1, 1, this.scale, this.j, 0, 0, this.ga[a]), d.Ai(this.L[0].Ja) && (this.b.N = !0)) : d.sd(0), this.b.Nb || d.Nd(this.b.width, this.b.height), d.Lc(null), d.te(1), d.Eb(this.b.ob), d.Qo(), d.Kc(), d.Qc(), a = this.b.width / 2, h = this.b.height / 2, d.Ci( - a, h, a, h, a, -h, -a, -h), d.Eb(null)) : this.Fi(d, null, null, null))
  2335. };
  2336. l.prototype.Qe = function() {
  2337. return 0 < this.L.length || this.b.xe || !this.b.Nb ? this.b.ob: null
  2338. };
  2339. l.prototype.ck = function() {
  2340. var d = this.I[0].nb(),
  2341. a,
  2342. h,
  2343. c;
  2344. a = 1;
  2345. for (h = this.I.length; a < h; a++) c = this.I[a],
  2346. (0 !== c.Gc || 0 !== c.Hc) && c.nb() < d && (d = c.nb());
  2347. return d
  2348. };
  2349. l.prototype.bl = function(d) {
  2350. if (!this.rl) {
  2351. var a = this.b.G * (1 / this.ck()) / 2;
  2352. d > this.width - a && (d = this.width - a);
  2353. d < a && (d = a)
  2354. }
  2355. this.scrollX !== d && (this.scrollX = d, this.b.N = !0)
  2356. };
  2357. l.prototype.cl = function(d) {
  2358. if (!this.rl) {
  2359. var a = this.b.F * (1 / this.ck()) / 2;
  2360. d > this.height - a && (d = this.height - a);
  2361. d < a && (d = a)
  2362. }
  2363. this.scrollY !== d && (this.scrollY = d, this.b.N = !0)
  2364. };
  2365. l.prototype.Cm = function() {
  2366. this.bl(this.scrollX);
  2367. this.cl(this.scrollY)
  2368. };
  2369. l.prototype.Fi = function(d, a, h, c) {
  2370. var f = h ? h.L: a ? a.L: this.L,
  2371. e = 1,
  2372. g = 0,
  2373. r = 0,
  2374. p = 0;
  2375. h ? (e = h.i.nb(), g = h.i.zb(), r = h.i.Ka, p = h.i.La) : a && (e = a.nb(), g = a.zb(), r = a.Ka, p = a.La);
  2376. var b = this.b.Gh,
  2377. k, l, m, n, q = 0,
  2378. x = 1,
  2379. L, D = this.b.G,
  2380. C = this.b.F,
  2381. ia = D / 2,
  2382. ja = C / 2,
  2383. P = a ? a.nd: this.nd,
  2384. E = a ? a.Ei: this.Ei,
  2385. H = 0,
  2386. Y = 0,
  2387. A = 0,
  2388. Z = 0,
  2389. I = D,
  2390. ba = D,
  2391. z = C,
  2392. K = C,
  2393. W = m = 0,
  2394. aa = h ? h.i.zb() : 0;
  2395. if (h) {
  2396. k = 0;
  2397. for (l = f.length; k < l; k++) m += d.yq(f[k].Ja),
  2398. W += d.zq(f[k].Ja);
  2399. n = h.Na;
  2400. H = a.da(n.left, n.top, !0, !0);
  2401. A = a.da(n.left, n.top, !1, !0);
  2402. I = a.da(n.right, n.bottom, !0, !0);
  2403. z = a.da(n.right, n.bottom, !1, !0);
  2404. 0 !== aa && (k = a.da(n.right, n.top, !0, !0), l = a.da(n.right, n.top, !1, !0), Y = a.da(n.left, n.bottom, !0, !0), Z = a.da(n.left, n.bottom, !1, !0), n = Math.min(H, I, k, Y), I = Math.max(H, I, k, Y), H = n, n = Math.min(A, z, l, Z), z = Math.max(A, z, l, Z), A = n);
  2405. H -= m;
  2406. A -= W;
  2407. I += m;
  2408. z += W;
  2409. E.left = H / D;
  2410. E.top = 1 - A / C;
  2411. E.right = I / D;
  2412. E.bottom = 1 - z / C;
  2413. Y = H = G(H);
  2414. Z = A = G(A);
  2415. ba = I = oa(I);
  2416. K = z = oa(z);
  2417. Y -= m;
  2418. Z -= W;
  2419. ba += m;
  2420. K += W;
  2421. 0 > H && (H = 0);
  2422. 0 > A && (A = 0);
  2423. I > D && (I = D);
  2424. z > C && (z = C);
  2425. 0 > Y && (Y = 0);
  2426. 0 > Z && (Z = 0);
  2427. ba > D && (ba = D);
  2428. K > C && (K = C);
  2429. P.left = H / D;
  2430. P.top = 1 - A / C;
  2431. P.right = I / D;
  2432. P.bottom = 1 - z / C
  2433. } else P.left = E.left = 0,
  2434. P.top = E.top = 0,
  2435. P.right = E.right = 1,
  2436. P.bottom = E.bottom = 1;
  2437. W = h && ((h.j || aa) && d.wg(f[0].Ja) || 0 !== m || 0 !== W || 1 !== h.opacity || h.type.Y.Fk) || a && !h && 1 !== a.opacity;
  2438. d.Qo();
  2439. if (W) {
  2440. b[q] || (b[q] = d.ad(D, C, this.b.M));
  2441. if (b[q].mh !== D || b[q].lh !== C) d.deleteTexture(b[q]),
  2442. b[q] = d.ad(D, C, this.b.M);
  2443. d.sd(0);
  2444. d.Lc(b[q]);
  2445. L = K - Z;
  2446. d.clearRect(Y, C - Z - L, ba - Y, L);
  2447. h ? h.yb(d) : (d.Eb(this.b.Cb), d.te(a.opacity), d.Kc(), d.translate( - ia, -ja), d.Qc(), d.Jc(H, z, I, z, I, A, H, A, P));
  2448. E.left = E.top = 0;
  2449. E.right = E.bottom = 1;
  2450. h && (n = P.top, P.top = P.bottom, P.bottom = n);
  2451. q = 1;
  2452. x = 0
  2453. }
  2454. d.te(1);
  2455. m = f.length - 1;
  2456. var aa = d.Wk(f[m].Ja) || !a && !h && !this.b.Nb,
  2457. Q = 0;
  2458. k = 0;
  2459. for (l = f.length; k < l; k++) {
  2460. b[q] || (b[q] = d.ad(D, C, this.b.M));
  2461. if (b[q].mh !== D || b[q].lh !== C) d.deleteTexture(b[q]),
  2462. b[q] = d.ad(D, C, this.b.M);
  2463. d.sd(f[k].Ja);
  2464. Q = f[k].index;
  2465. d.Ai(f[k].Ja) && (this.b.N = !0);
  2466. 0 != k || W ? (d.rf(c, 1 / D, 1 / C, E.left, E.top, E.right, E.bottom, e, g, r, p, h ? h.ga[Q] : a ? a.ga[Q] : this.ga[Q]), d.Eb(null), k !== m || aa ? (d.Lc(b[q]), L = K - Z, n = C - Z - L, d.clearRect(Y, n, ba - Y, L)) : (h ? d.se(h.Pa, h.Oa) : a && d.se(a.Pa, a.Oa), d.Lc(c)), d.Eb(b[x]), d.Kc(), d.translate( - ia, -ja), d.Qc(), d.Jc(H, z, I, z, I, A, H, A, P), k !== m || aa || d.Eb(null)) : (d.Lc(b[q]), L = K - Z, n = C - Z - L, d.clearRect(Y, n, ba - Y, L), h ? (d.rf(c, 1 / h.width, 1 / h.height, E.left, E.top, E.right, E.bottom, e, g, r, p, h.ga[Q]), h.yb(d)) : (d.rf(c, 1 / D, 1 / C, 0, 0, 1, 1, e, g, r, p, a ? a.ga[Q] : this.ga[Q]), d.Eb(a ? this.b.Cb: this.b.ob), d.Kc(), d.translate( - ia, -ja), d.Qc(), d.Jc(H, z, I, z, I, A, H, A, P)), E.left = E.top = 0, E.right = E.bottom = 1, h && !aa && (n = z, z = A, A = n));
  2467. q = 0 === q ? 1 : 0;
  2468. x = 0 === q ? 1 : 0
  2469. }
  2470. aa && (d.sd(0), h ? d.se(h.Pa, h.Oa) : a ? d.se(a.Pa, a.Oa) : this.b.Nb || (d.Nd(this.b.width, this.b.height), ia = this.b.width / 2, ja = this.b.height / 2, A = H = 0, I = this.b.width, z = this.b.height), d.Lc(c), d.Eb(b[x]), d.Kc(), d.translate( - ia, -ja), d.Qc(), h && 1 === f.length && !W ? d.Jc(H, A, I, A, I, z, H, z, P) : d.Jc(H, z, I, z, I, A, H, A, P), d.Eb(null))
  2471. };
  2472. l.prototype.Yf = function(d) {
  2473. var a, h;
  2474. a = 0;
  2475. for (h = this.I.length; a < h; a++) if (this.I[a].H === d) return this.I[a];
  2476. return null
  2477. };
  2478. l.prototype.Db = function() {
  2479. var d, a, h, c = {
  2480. sx: this.scrollX,
  2481. sy: this.scrollY,
  2482. s: this.scale,
  2483. a: this.j,
  2484. w: this.width,
  2485. h: this.height,
  2486. fv: this.Oe,
  2487. persist: this.md,
  2488. fx: [],
  2489. layers: {}
  2490. };
  2491. d = 0;
  2492. for (a = this.A.length; d < a; d++) h = this.A[d],
  2493. c.fx.push({
  2494. name: h.name,
  2495. active: h.wb,
  2496. params: this.ga[h.index]
  2497. });
  2498. d = 0;
  2499. for (a = this.I.length; d < a; d++) h = this.I[d],
  2500. c.layers[h.H.toString()] = h.Db();
  2501. return c
  2502. };
  2503. l.prototype.Yb = function(a) {
  2504. var g, h, c, f;
  2505. this.scrollX = a.sx;
  2506. this.scrollY = a.sy;
  2507. this.scale = a.s;
  2508. this.j = a.a;
  2509. this.width = a.w;
  2510. this.height = a.h;
  2511. this.md = a.persist;
  2512. "undefined" !== typeof a.fv && (this.Oe = a.fv);
  2513. var e = a.fx;
  2514. g = 0;
  2515. for (h = e.length; g < h; g++) if (c = this.Jh(e[g].name)) c.wb = e[g].active,
  2516. this.ga[c.index] = e[g].params;
  2517. this.Pc();
  2518. g = a.layers;
  2519. for (f in g) g.hasOwnProperty(f) && (a = this.Yf(parseInt(f, 10))) && a.Yb(g[f])
  2520. };
  2521. kb = l;
  2522. q.prototype.Pc = function() {
  2523. this.L.length = 0;
  2524. var a, g, h;
  2525. a = 0;
  2526. for (g = this.A.length; a < g; a++) h = this.A[a],
  2527. h.wb && this.L.push(h)
  2528. };
  2529. q.prototype.Jh = function(a) {
  2530. var g, h, c;
  2531. g = 0;
  2532. for (h = this.A.length; g < h; g++) if (c = this.A[g], c.name === a) return c;
  2533. return null
  2534. };
  2535. q.prototype.Lm = function() {
  2536. var a, l, h, c, f, e;
  2537. l = a = 0;
  2538. for (h = this.ge.length; a < h; a++) {
  2539. c = this.ge[a];
  2540. f = this.b.m[c[1]];
  2541. e = this.b.Yi(f);
  2542. f = !0;
  2543. if (!e || this.W.Oe) c = this.b.bd(c, this, !0),
  2544. g.push(c),
  2545. c.type.global && (f = !1);
  2546. f && (this.ge[l] = this.ge[a], l++)
  2547. }
  2548. this.ge.length = l;
  2549. this.b.Ma(); ! this.b.r && this.A.length && (this.Ua = this.Qm);
  2550. this.He = Pa(this.Ua);
  2551. this.b.Ac && Qa(this, this.Ua, this.b.Ac)
  2552. };
  2553. q.prototype.$o = function() {
  2554. if (this.ub) {
  2555. var a, g;
  2556. a = 0;
  2557. for (g = this.d.length; a < g; a++) this.d[a].Rd = a;
  2558. this.ub = !1
  2559. }
  2560. };
  2561. q.prototype.nb = function(a) {
  2562. return this.Cn() * (this.b.Nb || a ? this.b.Ee: 1)
  2563. };
  2564. q.prototype.Cn = function() {
  2565. return (this.scale * this.W.scale - 1) * this.Rc + 1
  2566. };
  2567. q.prototype.zb = function() {
  2568. return this.zd ? 0 : za(this.W.j + this.j)
  2569. };
  2570. q.prototype.Ub = function(a) {
  2571. this.od = this.Dh || 1 !== this.opacity || 0 !== this.Ua;
  2572. var g = this.b.canvas,
  2573. h = a,
  2574. c = !1;
  2575. this.od && (this.b.jg || (this.b.jg = document.createElement("canvas"), g = this.b.jg, g.width = this.b.G, g.height = this.b.F, this.b.Bk = g.getContext("2d"), c = !0), g = this.b.jg, h = this.b.Bk, g.width !== this.b.G && (g.width = this.b.G, c = !0), g.height !== this.b.F && (g.height = this.b.F, c = !0), c && (h.webkitImageSmoothingEnabled = this.b.M, h.mozImageSmoothingEnabled = this.b.M, h.msImageSmoothingEnabled = this.b.M, h.imageSmoothingEnabled = this.b.M), this.Qd && h.clearRect(0, 0, this.b.G, this.b.F));
  2576. h.globalAlpha = 1;
  2577. h.globalCompositeOperation = "source-over";
  2578. this.Qd || (h.fillStyle = "rgb(" + this.Yc[0] + "," + this.Yc[1] + "," + this.Yc[2] + ")", h.fillRect(0, 0, this.b.G, this.b.F));
  2579. h.save();
  2580. this.zd = !0;
  2581. var c = this.ib(0, 0, !0, !0),
  2582. f = this.ib(0, 0, !1, !0);
  2583. this.zd = !1;
  2584. this.b.mc && (c = c + 0.5 | 0, f = f + 0.5 | 0);
  2585. this.Hi(c, f, h);
  2586. var e = this.nb();
  2587. h.scale(e, e);
  2588. h.translate( - c, -f);
  2589. for (var t, c = 0,
  2590. f = this.d.length; c < f; c++) e = this.d[c],
  2591. e.visible && 0 !== e.width && 0 !== e.height && (e.Qa(), t = e.Na, t.right < this.Ka || t.bottom < this.La || t.left > this.tb || t.top > this.sb || (h.globalCompositeOperation = e.He, e.Ub(h)));
  2592. h.restore();
  2593. this.od && (a.globalCompositeOperation = this.He, a.globalAlpha = this.opacity, a.drawImage(g, 0, 0))
  2594. };
  2595. q.prototype.Hi = function(a, g, h) {
  2596. var c = this.nb();
  2597. this.Ka = a;
  2598. this.La = g;
  2599. this.tb = a + this.b.G * (1 / c);
  2600. this.sb = g + this.b.F * (1 / c);
  2601. a = this.zb();
  2602. 0 !== a && (h && (h.translate(this.b.G / 2, this.b.F / 2), h.rotate( - a), h.translate(this.b.G / -2, this.b.F / -2)), this.Oc.set(this.Ka, this.La, this.tb, this.sb), this.Oc.offset((this.Ka + this.tb) / -2, (this.La + this.sb) / -2), this.ll.fl(this.Oc, a), this.ll.Fj(this.Oc), this.Oc.offset((this.Ka + this.tb) / 2, (this.La + this.sb) / 2), this.Ka = this.Oc.left, this.La = this.Oc.top, this.tb = this.Oc.right, this.sb = this.Oc.bottom)
  2603. };
  2604. q.prototype.yb = function(a) {
  2605. var g = this.b.G,
  2606. h = this.b.F,
  2607. c = 0,
  2608. f = 0;
  2609. if (this.od = this.Dh || 1 !== this.opacity || 0 < this.L.length || 0 !== this.Ua) {
  2610. this.b.Cb || (this.b.Cb = a.ad(this.b.G, this.b.F, this.b.M));
  2611. if (this.b.Cb.mh !== this.b.G || this.b.Cb.lh !== this.b.F) a.deleteTexture(this.b.Cb),
  2612. this.b.Cb = a.ad(this.b.G, this.b.F, this.b.M);
  2613. a.Lc(this.b.Cb);
  2614. this.Qd && a.clear(0, 0, 0, 0)
  2615. }
  2616. this.Qd || a.clear(this.Yc[0] / 255, this.Yc[1] / 255, this.Yc[2] / 255, 1);
  2617. this.zd = !0;
  2618. var f = this.ib(0, 0, !0, !0),
  2619. e = this.ib(0, 0, !1, !0);
  2620. this.zd = !1;
  2621. this.b.mc && (f = f + 0.5 | 0, e = e + 0.5 | 0);
  2622. this.Hi(f, e, null);
  2623. e = this.nb();
  2624. a.Kc();
  2625. a.scale(e, e);
  2626. a.$k( - this.zb());
  2627. a.translate((this.Ka + this.tb) / -2, (this.La + this.sb) / -2);
  2628. a.Qc();
  2629. var t, r, p;
  2630. t = 0;
  2631. for (r = this.d.length; t < r; t++) if (p = this.d[t], p.visible && 0 !== p.width && 0 !== p.height && (p.Qa(), c = p.Na, !(c.right < this.Ka || c.bottom < this.La || c.left > this.tb || c.top > this.sb))) if (p.ul) if (c = p.L[0].Ja, f = p.L[0].index, 1 !== p.L.length || a.Wk(c) || a.Gq(c) || (p.j || p.i.zb()) && a.wg(c) || 1 !== p.opacity || p.type.Y.Fk) this.W.Fi(a, this, p, this.od ? this.b.Cb: this.W.Qe()),
  2632. a.Kc(),
  2633. a.scale(e, e),
  2634. a.$k( - this.zb()),
  2635. a.translate((this.Ka + this.tb) / -2, (this.La + this.sb) / -2),
  2636. a.Qc();
  2637. else {
  2638. a.sd(c);
  2639. a.se(p.Pa, p.Oa);
  2640. a.Ai(c) && (this.b.N = !0);
  2641. var b = 0,
  2642. k = 0,
  2643. l = 0,
  2644. m = 0;
  2645. a.wg(c) && (c = p.Na, b = this.da(c.left, c.top, !0, !0), k = this.da(c.left, c.top, !1, !0), l = this.da(c.right, c.bottom, !0, !0), c = this.da(c.right, c.bottom, !1, !0), b /= g, k = 1 - k / h, l /= g, m = 1 - c / h);
  2646. a.rf(this.od ? this.b.Cb: this.W.Qe(), 1 / p.width, 1 / p.height, b, k, l, m, this.nb(), this.zb(), this.Ka, this.La, p.ga[f]);
  2647. p.yb(a)
  2648. } else a.sd(0),
  2649. a.se(p.Pa, p.Oa),
  2650. p.yb(a);
  2651. this.od && (c = this.L.length ? this.L[0].Ja: 0, f = this.L.length ? this.L[0].index: 0, 0 === this.L.length || 1 === this.L.length && !a.Wk(c) && 1 === this.opacity ? (1 === this.L.length ? (a.sd(c), a.rf(this.W.Qe(), 1 / this.b.G, 1 / this.b.F, 0, 0, 1, 1, this.nb(), this.zb(), this.Ka, this.La, this.ga[f]), a.Ai(c) && (this.b.N = !0)) : a.sd(0), a.Lc(this.W.Qe()), a.te(this.opacity), a.Eb(this.b.Cb), a.se(this.Pa, this.Oa), a.Kc(), a.Qc(), g = this.b.G / 2, h = this.b.F / 2, a.Ci( - g, h, g, h, g, -h, -g, -h), a.Eb(null)) : this.W.Fi(a, this, null, this.W.Qe()))
  2652. };
  2653. q.prototype.ib = function(a, g, h, c) {
  2654. var f = this.b.devicePixelRatio;
  2655. this.b.Gd && (a *= f, g *= f);
  2656. var f = this.b.Rk,
  2657. e = this.b.Sk,
  2658. f = (this.W.scrollX - f) * this.Gc + f,
  2659. e = (this.W.scrollY - e) * this.Hc + e,
  2660. t = 1 / this.nb(!c);
  2661. c ? (f -= this.b.G * t / 2, e -= this.b.F * t / 2) : (f -= this.b.width * t / 2, e -= this.b.height * t / 2);
  2662. f += a * t;
  2663. e += g * t;
  2664. g = this.zb();
  2665. 0 !== g && (f -= this.W.scrollX, e -= this.W.scrollY, a = Math.cos(g), g = Math.sin(g), c = f * a - e * g, e = e * a + f * g, f = c + this.W.scrollX, e += this.W.scrollY);
  2666. return h ? f: e
  2667. };
  2668. q.prototype.da = function(a, g, h, c) {
  2669. var f = this.zb();
  2670. if (0 !== f) {
  2671. a -= this.W.scrollX;
  2672. g -= this.W.scrollY;
  2673. var e = Math.cos( - f),
  2674. f = Math.sin( - f),
  2675. t = a * e - g * f;
  2676. g = g * e + a * f;
  2677. a = t + this.W.scrollX;
  2678. g += this.W.scrollY
  2679. }
  2680. e = this.b.Rk;
  2681. f = this.b.Sk;
  2682. e = (this.W.scrollX - e) * this.Gc + e;
  2683. f = (this.W.scrollY - f) * this.Hc + f;
  2684. t = 1 / this.nb(!c);
  2685. c ? (e -= this.b.G * t / 2, f -= this.b.F * t / 2) : (e -= this.b.width * t / 2, f -= this.b.height * t / 2);
  2686. e = (a - e) / t;
  2687. f = (g - f) / t;
  2688. a = this.b.devicePixelRatio;
  2689. this.b.Gd && !c && (e /= a, f /= a);
  2690. return h ? e: f
  2691. };
  2692. q.prototype.Db = function() {
  2693. var a, g, h, c = {
  2694. s: this.scale,
  2695. a: this.j,
  2696. vl: this.Ka,
  2697. vt: this.La,
  2698. vr: this.tb,
  2699. vb: this.sb,
  2700. v: this.visible,
  2701. bc: this.Yc,
  2702. t: this.Qd,
  2703. px: this.Gc,
  2704. py: this.Hc,
  2705. o: this.opacity,
  2706. zr: this.Rc,
  2707. fx: [],
  2708. instances: []
  2709. };
  2710. a = 0;
  2711. for (g = this.A.length; a < g; a++) h = this.A[a],
  2712. c.fx.push({
  2713. name: h.name,
  2714. active: h.wb,
  2715. params: this.ga[h.index]
  2716. });
  2717. return c
  2718. };
  2719. q.prototype.Yb = function(d) {
  2720. var g, h;
  2721. this.scale = d.s;
  2722. this.j = d.a;
  2723. this.Ka = d.vl;
  2724. this.La = d.vt;
  2725. this.tb = d.vr;
  2726. this.sb = d.vb;
  2727. this.visible = d.v;
  2728. this.Yc = d.bc;
  2729. this.Qd = d.t;
  2730. this.Gc = d.px;
  2731. this.Hc = d.py;
  2732. this.opacity = d.o;
  2733. this.Rc = d.zr;
  2734. var c = d.fx;
  2735. d = 0;
  2736. for (g = c.length; d < g; d++) if (h = this.Jh(c[d].name)) h.wb = c[d].active,
  2737. this.ga[h.index] = c[d].params;
  2738. this.Pc();
  2739. this.d.sort(a);
  2740. this.ub = !0
  2741. };
  2742. xb = q
  2743. })(); (function() {
  2744. function l(b, a) {
  2745. var c, e = b.length;
  2746. switch (e) {
  2747. case 0:
  2748. return ! 0;
  2749. case 1:
  2750. return b[0] === a[0];
  2751. case 2:
  2752. return b[0] === a[0] && b[1] === a[1];
  2753. default:
  2754. for (c = 0; c < e; c++) if (b[c] !== a[c]) return ! 1;
  2755. return ! 0
  2756. }
  2757. }
  2758. function q(b, a) {
  2759. return b.index - a.index
  2760. }
  2761. function a(a) {
  2762. var c, e, f, d;
  2763. 2 === a.length ? a[0].index > a[1].index && (c = a[0], a[0] = a[1], a[1] = c) : 2 < a.length && a.sort(q);
  2764. a.length >= b.length && (b.length = a.length + 1);
  2765. b[a.length] || (b[a.length] = []);
  2766. d = b[a.length];
  2767. c = 0;
  2768. for (e = d.length; c < e; c++) if (f = d[c], l(a, f)) return f;
  2769. d.push(a);
  2770. return a
  2771. }
  2772. function g(b, a) {
  2773. this.b = b;
  2774. this.nl = {};
  2775. this.Sj = {};
  2776. this.Ph = !1;
  2777. this.ik = new ga;
  2778. this.xh = [];
  2779. this.fh = [];
  2780. this.name = a[0];
  2781. var c = a[1];
  2782. this.dd = [];
  2783. var e, f;
  2784. e = 0;
  2785. for (f = c.length; e < f; e++) this.jk(c[e], null, this.dd)
  2786. }
  2787. function d(b) {
  2788. this.type = b;
  2789. this.d = [];
  2790. this.Q = [];
  2791. this.Z = !0
  2792. }
  2793. function u(b, a, c) {
  2794. this.sheet = b;
  2795. this.parent = a;
  2796. this.b = b.b;
  2797. this.P = [];
  2798. this.pd = [];
  2799. this.gk = this.Qg = this.Vi = this.Th = this.group = this.Oi = !1;
  2800. this.ua = [];
  2801. this.Sb = [];
  2802. this.Qb = [];
  2803. this.Se = "";
  2804. this.ed = this.Th = this.group = !1;
  2805. this.Lf = null;
  2806. c[1] && (this.Se = c[1][1].toLowerCase(), this.group = !0, this.Th = !!c[1][0], this.Lf = [], this.ed = this.Th, this.b.Xd.push(this), this.b.fe[this.Se] = this);
  2807. this.Zb = c[2];
  2808. this.H = c[4];
  2809. this.group || (this.b.Ej[this.H.toString()] = this);
  2810. var e = c[5];
  2811. b = 0;
  2812. for (a = e.length; b < a; b++) {
  2813. var f = new yb(this, e[b]);
  2814. f.index = b;
  2815. this.ua.push(f);
  2816. this.vj(f.type)
  2817. }
  2818. e = c[6];
  2819. b = 0;
  2820. for (a = e.length; b < a; b++) f = new zb(this, e[b]),
  2821. f.index = b,
  2822. this.Sb.push(f);
  2823. if (8 === c.length) for (c = c[7], b = 0, a = c.length; b < a; b++) this.sheet.jk(c[b], this, this.Qb);
  2824. this.dg = !1;
  2825. this.ua.length && (this.dg = null == this.ua[0].type && this.ua[0].Ea == R.prototype.g.Wg)
  2826. }
  2827. function h(b, a) {
  2828. var c, e, f;
  2829. if (b && ( - 1 === a.indexOf(b) && a.push(b), b.Bb)) for (c = 0, e = b.jb.length; c < e; c++) f = b.jb[c],
  2830. b !== f && -1 === a.indexOf(f) && a.push(f)
  2831. }
  2832. function c(b, a) {
  2833. this.xb = b;
  2834. this.sheet = b.sheet;
  2835. this.b = b.b;
  2836. this.U = [];
  2837. this.X = [];
  2838. this.R = {};
  2839. this.index = -1;
  2840. this.De = !1;
  2841. this.Ea = a[1];
  2842. this.trigger = 0 < a[3];
  2843. this.Rj = 2 === a[3];
  2844. this.Vh = a[5];
  2845. this.lo = a[6];
  2846. this.H = a[7];
  2847. this.b.Yd[this.H.toString()] = this; - 1 === a[0] ? (this.type = null, this.oa = this.Ji, this.yd = null, this.Hb = -1) : (this.type = this.b.m[a[0]], this.oa = this.lo ? this.Mo: this.Ii, a[2] ? (this.yd = this.type.Xf(a[2]), this.Hb = this.type.Hh(a[2])) : (this.yd = null, this.Hb = -1), this.xb.parent && this.xb.parent.Dg());
  2848. this.Rj && (this.oa = this.No);
  2849. if (10 === a.length) {
  2850. var c, e, f = a[9];
  2851. c = 0;
  2852. for (e = f.length; c < e; c++) {
  2853. var d = new Ab(this, f[c]);
  2854. this.U.push(d)
  2855. }
  2856. this.X.length = f.length
  2857. }
  2858. }
  2859. function f(b, a) {
  2860. this.xb = b;
  2861. this.sheet = b.sheet;
  2862. this.b = b.b;
  2863. this.U = [];
  2864. this.X = [];
  2865. this.R = {};
  2866. this.index = -1;
  2867. this.De = !1;
  2868. this.Ea = a[1]; - 1 === a[0] ? (this.type = null, this.oa = this.Ji, this.yd = null, this.Hb = -1) : (this.type = this.b.m[a[0]], this.oa = this.Ii, a[2] ? (this.yd = this.type.Xf(a[2]), this.Hb = this.type.Hh(a[2])) : (this.yd = null, this.Hb = -1));
  2869. this.H = a[3];
  2870. this.b.Wd[this.H.toString()] = this;
  2871. if (6 === a.length) {
  2872. var c, e, f = a[5];
  2873. c = 0;
  2874. for (e = f.length; c < e; c++) {
  2875. var d = new Ab(this, f[c]);
  2876. this.U.push(d)
  2877. }
  2878. this.X.length = f.length
  2879. }
  2880. }
  2881. function e(b, a) {
  2882. this.p = b;
  2883. this.xb = b.xb;
  2884. this.sheet = b.sheet;
  2885. this.b = b.b;
  2886. this.type = a[0];
  2887. this.gc = null;
  2888. this.qd = 0;
  2889. this.get = null;
  2890. this.Jj = 0;
  2891. this.W = null;
  2892. this.key = 0;
  2893. this.object = null;
  2894. this.index = 0;
  2895. this.zf = this.Od = this.zf = this.Od = this.Tj = this.Bd = this.Af = null;
  2896. this.Rb = !1;
  2897. var c, e, f;
  2898. switch (a[0]) {
  2899. case 0:
  2900. case 7:
  2901. this.gc = new N(this, a[1]);
  2902. this.qd = 0;
  2903. this.get = this.Hn;
  2904. break;
  2905. case 1:
  2906. this.gc = new N(this, a[1]);
  2907. this.qd = 0;
  2908. this.get = this.In;
  2909. break;
  2910. case 5:
  2911. this.gc = new N(this, a[1]);
  2912. this.qd = 0;
  2913. this.get = this.Mn;
  2914. break;
  2915. case 3:
  2916. case 8:
  2917. this.Jj = a[1];
  2918. this.get = this.Fn;
  2919. break;
  2920. case 6:
  2921. this.W = this.b.ii[a[1]];
  2922. this.get = this.Nn;
  2923. break;
  2924. case 9:
  2925. this.key = a[1];
  2926. this.get = this.Ln;
  2927. break;
  2928. case 4:
  2929. this.object = this.b.m[a[1]];
  2930. this.get = this.On;
  2931. this.xb.vj(this.object);
  2932. this.p instanceof zb ? this.xb.Dg() : this.xb.parent && this.xb.parent.Dg();
  2933. break;
  2934. case 10:
  2935. this.index = a[1];
  2936. b.type.B ? (this.get = this.Jn, this.Rb = !0) : this.get = this.Kn;
  2937. break;
  2938. case 11:
  2939. this.Af = a[1];
  2940. this.Bd = null;
  2941. this.get = this.Gn;
  2942. break;
  2943. case 2:
  2944. case 12:
  2945. this.Tj = a[1];
  2946. this.get = this.En;
  2947. break;
  2948. case 13:
  2949. for (this.get = this.Pn, this.Od = [], this.zf = [], c = 1, e = a.length; c < e; c++) f = new Ab(this.p, a[c]),
  2950. this.Od.push(f),
  2951. this.zf.push(0)
  2952. }
  2953. }
  2954. function t(b, a, c) {
  2955. this.sheet = b;
  2956. this.parent = a;
  2957. this.b = b.b;
  2958. this.P = [];
  2959. this.name = c[1];
  2960. this.Bf = c[2];
  2961. this.Sh = c[3];
  2962. this.Ye = !!c[4];
  2963. this.cg = !!c[5];
  2964. this.H = c[6];
  2965. this.b.Ae[this.H.toString()] = this;
  2966. this.data = this.Sh;
  2967. this.parent ? (this.Id = this.Ye || this.cg ? -1 : this.b.Ro++, this.b.ym.push(this)) : (this.Id = -1, this.b.xm.push(this))
  2968. }
  2969. function r(b, a, c) {
  2970. this.sheet = b;
  2971. this.parent = a;
  2972. this.b = b.b;
  2973. this.P = [];
  2974. this.Te = null;
  2975. this.Vn = c[1];
  2976. this.wb = !0
  2977. }
  2978. function p() {
  2979. this.il = [];
  2980. this.reset(null)
  2981. }
  2982. var b = [];
  2983. g.prototype.toString = ca("name");
  2984. g.prototype.jk = function(b, a, c) {
  2985. switch (b[0]) {
  2986. case 0:
  2987. b = new Bb(this, a, b);
  2988. if (b.Zb) for (c.push(b), c = 0, a = b.ua.length; c < a; c++) b.ua[c].trigger && this.kk(b, c);
  2989. else b.qk() ? this.kk(b, 0) : c.push(b);
  2990. break;
  2991. case 1:
  2992. b = new ub(this, a, b);
  2993. c.push(b);
  2994. break;
  2995. case 2:
  2996. b = new Cb(this, a, b),
  2997. c.push(b)
  2998. }
  2999. };
  3000. g.prototype.ia = function() {
  3001. var b, a;
  3002. b = 0;
  3003. for (a = this.dd.length; b < a; b++) this.dd[b].ia(b < a - 1 && this.dd[b + 1].dg)
  3004. };
  3005. g.prototype.$i = function() {
  3006. this.xh.length = 0;
  3007. this.fh.length = 0;
  3008. this.uj(this);
  3009. this.fh.length = 0
  3010. };
  3011. g.prototype.uj = function(b) {
  3012. var a, c, e, f, d = b.xh,
  3013. h = b.fh,
  3014. k = this.ik.ye();
  3015. a = 0;
  3016. for (c = k.length; a < c; ++a) e = k[a],
  3017. f = e.Te,
  3018. !e.wb || b === f || -1 < h.indexOf(f) || (h.push(f), f.uj(b), d.push(f))
  3019. };
  3020. g.prototype.oa = function(b) {
  3021. this.b.Hq || (this.Ph = !0, b || (this.b.$h = !0));
  3022. var a, c;
  3023. a = 0;
  3024. for (c = this.dd.length; a < c; a++) {
  3025. var e = this.dd[a];
  3026. e.oa();
  3027. this.b.sh(e.P);
  3028. this.b.fc.Vb() && !this.b.kb.length || this.b.Ma()
  3029. }
  3030. b || (this.b.$h = !1)
  3031. };
  3032. g.prototype.kk = function(b, a) {
  3033. b.Zb || this.b.Sg.push(b);
  3034. var c, e, f = b.ua[a],
  3035. d;
  3036. d = f.type ? f.type.name: "system";
  3037. var h = (c = f.Rj) ? this.Sj: this.nl;
  3038. h[d] || (h[d] = []);
  3039. d = h[d];
  3040. h = f.Ea;
  3041. if (c) {
  3042. if (f.U.length && (f = f.U[0], 1 === f.type && 2 === f.gc.type)) {
  3043. f = f.gc.value.toLowerCase();
  3044. c = 0;
  3045. for (e = d.length; c < e; c++) if (d[c].method == h) {
  3046. c = d[c].Ke;
  3047. c[f] ? c[f].push([b, a]) : c[f] = [[b, a]];
  3048. return
  3049. }
  3050. c = {};
  3051. c[f] = [[b, a]];
  3052. d.push({
  3053. method: h,
  3054. Ke: c
  3055. })
  3056. }
  3057. } else {
  3058. c = 0;
  3059. for (e = d.length; c < e; c++) if (d[c].method == h) {
  3060. d[c].Ke.push([b, a]);
  3061. return
  3062. }
  3063. S && h === S.prototype.g.Ud ? d.unshift({
  3064. method: h,
  3065. Ke: [[b, a]]
  3066. }) : d.push({
  3067. method: h,
  3068. Ke: [[b, a]]
  3069. })
  3070. }
  3071. };
  3072. lb = g;
  3073. d.prototype.Oh = function() {
  3074. return this.Z ? this.type.d.length: this.d.length
  3075. };
  3076. d.prototype.hc = function() {
  3077. return this.Z ? this.type.d: this.d
  3078. };
  3079. d.prototype.lf = function(b) {
  3080. b && (b.b.Fa().Da.Zb ? (this.Z && (this.d.length = 0, ua(this.Q, b.type.d), this.Z = !1), b = this.Q.indexOf(b), -1 !== b && (this.d.push(this.Q[b]), this.Q.splice(b, 1))) : (this.Z = !1, this.d.length = 1, this.d[0] = b))
  3081. };
  3082. Va = d;
  3083. window._c2hh_ = "9AD7BB199F23B22D48C5FE5FE9A5A9A64FC93A93";
  3084. u.prototype.ia = function(b) {
  3085. var c, e = this.parent;
  3086. if (this.group) for (this.Qg = !0; e;) {
  3087. if (!e.group) {
  3088. this.Qg = !1;
  3089. break
  3090. }
  3091. e = e.parent
  3092. }
  3093. this.Vi = !this.qk() && (!this.parent || this.parent.group && this.parent.Qg);
  3094. this.gk = !!b;
  3095. this.pd = this.P.slice(0);
  3096. for (e = this.parent; e;) {
  3097. b = 0;
  3098. for (c = e.P.length; b < c; b++) this.vm(e.P[b]);
  3099. e = e.parent
  3100. }
  3101. this.P = a(this.P);
  3102. this.pd = a(this.pd);
  3103. b = 0;
  3104. for (c = this.ua.length; b < c; b++) this.ua[b].ia();
  3105. b = 0;
  3106. for (c = this.Sb.length; b < c; b++) this.Sb[b].ia();
  3107. b = 0;
  3108. for (c = this.Qb.length; b < c; b++) this.Qb[b].ia(b < c - 1 && this.Qb[b + 1].dg)
  3109. };
  3110. u.prototype.Mi = function(b) {
  3111. if (this.ed !== !!b) {
  3112. this.ed = !!b;
  3113. var a;
  3114. b = 0;
  3115. for (a = this.Lf.length; b < a; ++b) this.Lf[b].sl();
  3116. 0 < a && this.b.S.Ad && this.b.S.Ad.$i()
  3117. }
  3118. };
  3119. u.prototype.vj = function(b) {
  3120. h(b, this.P)
  3121. };
  3122. u.prototype.vm = function(b) {
  3123. h(b, this.pd)
  3124. };
  3125. u.prototype.Dg = function() {
  3126. this.Oi = !0;
  3127. this.parent && this.parent.Dg()
  3128. };
  3129. u.prototype.qk = function() {
  3130. return this.ua.length ? this.ua[0].trigger: !1
  3131. };
  3132. u.prototype.oa = function() {
  3133. var b, a = !1,
  3134. c, e = this.b,
  3135. f = this.b.Fa();
  3136. f.Da = this;
  3137. var d = this.ua;
  3138. this.dg || (f.Ah = !1);
  3139. if (this.Zb) {
  3140. 0 === d.length && (a = !0);
  3141. f.la = 0;
  3142. for (b = d.length; f.la < b; f.la++) d[f.la].trigger || (c = d[f.la].oa()) && (a = !0); (f.Hd = a) && this.Bg()
  3143. } else {
  3144. f.la = 0;
  3145. for (b = d.length; f.la < b; f.la++) if (c = d[f.la].oa(), !c) {
  3146. f.Hd = !1; ! this.Vi || e.fc.Vb() && !e.kb.length || e.Ma();
  3147. return
  3148. }
  3149. f.Hd = !0;
  3150. this.Bg()
  3151. }
  3152. this.Sm(f)
  3153. };
  3154. u.prototype.Sm = function(b) {
  3155. b.Hd && this.gk && (b.Ah = !0); ! this.Vi || this.b.fc.Vb() && !this.b.kb.length || this.b.Ma()
  3156. };
  3157. u.prototype.Ko = function(b) {
  3158. this.b.Fa().Da = this;
  3159. this.ua[b].oa() && (this.Bg(), this.b.Fa().Hd = !0)
  3160. };
  3161. u.prototype.Bg = function() {
  3162. var b = this.b.Fa(),
  3163. a;
  3164. b.gb = 0;
  3165. for (a = this.Sb.length; b.gb < a; b.gb++) if (this.Sb[b.gb].oa()) return;
  3166. this.al()
  3167. };
  3168. u.prototype.Io = function() {
  3169. var b = this.b.Fa(),
  3170. a;
  3171. for (a = this.Sb.length; b.gb < a; b.gb++) if (this.Sb[b.gb].oa()) return;
  3172. this.al()
  3173. };
  3174. u.prototype.al = function() {
  3175. if (this.Qb.length) {
  3176. var b, a, c, e, f = this.Qb.length - 1;
  3177. this.b.yg(this);
  3178. if (this.Oi) for (b = 0, a = this.Qb.length; b < a; b++) c = this.Qb[b],
  3179. (e = !this.Qg || !this.group && b < f) && this.b.re(c.P),
  3180. c.oa(),
  3181. e ? this.b.Ic(c.P) : this.b.sh(c.P);
  3182. else for (b = 0, a = this.Qb.length; b < a; b++) this.Qb[b].oa();
  3183. this.b.vg()
  3184. }
  3185. };
  3186. u.prototype.Lo = function() {
  3187. var b = this.b.Fa();
  3188. b.Da = this;
  3189. var a = !1,
  3190. c;
  3191. b.la = 0;
  3192. for (c = this.ua.length; b.la < c; b.la++) if (this.ua[b.la].oa()) a = !0;
  3193. else if (!this.Zb) return ! 1;
  3194. return this.Zb ? a: !0
  3195. };
  3196. u.prototype.pf = function() {
  3197. this.b.Rf++;
  3198. var b = this.b.Fa().la,
  3199. a = this.b.yg(this);
  3200. if (!this.Zb) for (a.la = b + 1, b = this.ua.length; a.la < b; a.la++) if (!this.ua[a.la].oa()) {
  3201. this.b.vg();
  3202. return
  3203. }
  3204. this.Bg();
  3205. this.b.vg()
  3206. };
  3207. u.prototype.bo = function(b) {
  3208. var a = b.index;
  3209. if (0 === a) return ! 0;
  3210. for (--a; 0 <= a; --a) if (this.ua[a].type === b.type) return ! 1;
  3211. return ! 0
  3212. };
  3213. Bb = u;
  3214. c.prototype.ia = function() {
  3215. var b, a, c;
  3216. b = 0;
  3217. for (a = this.U.length; b < a; b++) c = this.U[b],
  3218. c.ia(),
  3219. c.Rb && (this.De = !0)
  3220. };
  3221. c.prototype.No = w(!0);
  3222. c.prototype.Ji = function() {
  3223. var b, a;
  3224. b = 0;
  3225. for (a = this.U.length; b < a; b++) this.X[b] = this.U[b].get();
  3226. return Ia(this.Ea.apply(this.b.oc, this.X), this.Vh)
  3227. };
  3228. c.prototype.Mo = function() {
  3229. var b, a;
  3230. b = 0;
  3231. for (a = this.U.length; b < a; b++) this.X[b] = this.U[b].get();
  3232. b = this.Ea.apply(this.yd ? this.yd: this.type, this.X);
  3233. this.type.Xc();
  3234. return b
  3235. };
  3236. c.prototype.Ii = function() {
  3237. var b, a, c, e, f, d, h, k, g = this.type,
  3238. r = g.V(),
  3239. p = this.xb.Zb && !this.trigger;
  3240. a = 0;
  3241. var t = g.Bb,
  3242. l = g.B,
  3243. q = g.xc,
  3244. v = this.Hb,
  3245. u = -1 < v,
  3246. ba = this.De,
  3247. z = this.U,
  3248. K = this.X,
  3249. W = this.Vh,
  3250. aa = this.Ea,
  3251. Q;
  3252. if (ba) for (a = 0, f = z.length; a < f; ++a) d = z[a],
  3253. d.Rb || (K[a] = d.get(0));
  3254. else for (a = 0, f = z.length; a < f; ++a) K[a] = z[a].get(0);
  3255. if (r.Z) {
  3256. r.d.length = 0;
  3257. r.Q.length = 0;
  3258. Q = g.d;
  3259. b = 0;
  3260. for (e = Q.length; b < e; ++b) {
  3261. k = Q[b];
  3262. if (ba) for (a = 0, f = z.length; a < f; ++a) d = z[a],
  3263. d.Rb && (K[a] = d.get(b));
  3264. u ? (a = 0, l && (a = k.type.be[q]), a = aa.apply(k.C[v + a], K)) : a = aa.apply(k, K); (h = Ia(a, W)) ? r.d.push(k) : p && r.Q.push(k)
  3265. }
  3266. g.finish && g.finish(!0);
  3267. r.Z = !1;
  3268. g.Xc();
  3269. return r.Oh()
  3270. }
  3271. c = 0;
  3272. Q = (h = p && !this.xb.bo(this)) ? r.Q: r.d;
  3273. var Aa = !1;
  3274. b = 0;
  3275. for (e = Q.length; b < e; ++b) {
  3276. k = Q[b];
  3277. if (ba) for (a = 0, f = z.length; a < f; ++a) d = z[a],
  3278. d.Rb && (K[a] = d.get(b));
  3279. u ? (a = 0, l && (a = k.type.be[q]), a = aa.apply(k.C[v + a], K)) : a = aa.apply(k, K);
  3280. if (Ia(a, W)) if (Aa = !0, h) {
  3281. if (r.d.push(k), t) for (a = 0, f = k.siblings.length; a < f; a++) d = k.siblings[a],
  3282. d.type.V().d.push(d)
  3283. } else {
  3284. Q[c] = k;
  3285. if (t) for (a = 0, f = k.siblings.length; a < f; a++) d = k.siblings[a],
  3286. d.type.V().d[c] = d;
  3287. c++
  3288. } else if (h) {
  3289. Q[c] = k;
  3290. if (t) for (a = 0, f = k.siblings.length; a < f; a++) d = k.siblings[a],
  3291. d.type.V().Q[c] = d;
  3292. c++
  3293. } else if (p && (r.Q.push(k), t)) for (a = 0, f = k.siblings.length; a < f; a++) d = k.siblings[a],
  3294. d.type.V().Q.push(d)
  3295. }
  3296. Q.length = c;
  3297. if (t) for (l = g.jb, b = 0, e = l.length; b < e; b++) k = l[b].V(),
  3298. h ? k.Q.length = c: k.d.length = c;
  3299. c = Aa;
  3300. if (h && !Aa) for (b = 0, e = r.d.length; b < e; b++) {
  3301. k = r.d[b];
  3302. if (ba) for (a = 0, f = z.length; a < f; a++) d = z[a],
  3303. d.Rb && (K[a] = d.get(b));
  3304. a = u ? aa.apply(k.C[v], K) : aa.apply(k, K);
  3305. if (Ia(a, W)) {
  3306. Aa = !0;
  3307. break
  3308. }
  3309. }
  3310. g.finish && g.finish(c || p);
  3311. return p ? Aa: r.Oh()
  3312. };
  3313. yb = c;
  3314. f.prototype.ia = function() {
  3315. var b, a, c;
  3316. b = 0;
  3317. for (a = this.U.length; b < a; b++) c = this.U[b],
  3318. c.ia(),
  3319. c.Rb && (this.De = !0)
  3320. };
  3321. f.prototype.Ji = function() {
  3322. var b, a;
  3323. b = 0;
  3324. for (a = this.U.length; b < a; b++) this.X[b] = this.U[b].get();
  3325. return this.Ea.apply(this.b.oc, this.X)
  3326. };
  3327. f.prototype.Ii = function() {
  3328. var b = this.type.V().hc(),
  3329. a = this.type.B,
  3330. c = this.type.xc,
  3331. e = this.Hb,
  3332. f = -1 < e,
  3333. d = this.De,
  3334. k = this.U,
  3335. h = this.X,
  3336. g = this.Ea,
  3337. r,
  3338. p,
  3339. t,
  3340. l,
  3341. q,
  3342. v;
  3343. if (d) for (p = 0, l = k.length; p < l; ++p) q = k[p],
  3344. q.Rb || (h[p] = q.get(0));
  3345. else for (p = 0, l = k.length; p < l; ++p) h[p] = k[p].get(0);
  3346. r = 0;
  3347. for (t = b.length; r < t; ++r) {
  3348. v = b[r];
  3349. if (d) for (p = 0, l = k.length; p < l; ++p) q = k[p],
  3350. q.Rb && (h[p] = q.get(r));
  3351. f ? (p = 0, a && (p = v.type.be[c]), g.apply(v.C[e + p], h)) : g.apply(v, h)
  3352. }
  3353. return ! 1
  3354. };
  3355. zb = f;
  3356. var k = [],
  3357. v = -1;
  3358. e.prototype.ia = function() {
  3359. var b, a;
  3360. if (11 === this.type) this.Bd = this.b.$j(this.Af, this.xb.parent);
  3361. else if (13 === this.type) for (b = 0, a = this.Od.length; b < a; b++) this.Od[b].ia();
  3362. this.gc && this.gc.ia()
  3363. };
  3364. e.prototype.qo = function(b) {
  3365. this.Rb || !b || b.Y.Fg || (this.Rb = !0)
  3366. };
  3367. e.prototype.dl = function() {
  3368. this.Rb = !0
  3369. };
  3370. e.prototype.xa = function() {
  3371. v++;
  3372. k.length === v && k.push(new Db);
  3373. return k[v]
  3374. };
  3375. e.prototype.na = function() {
  3376. v--
  3377. };
  3378. e.prototype.Hn = function(b) {
  3379. this.qd = b || 0;
  3380. b = this.xa();
  3381. this.gc.get(b);
  3382. this.na();
  3383. return b.data
  3384. };
  3385. e.prototype.In = function(b) {
  3386. this.qd = b || 0;
  3387. b = this.xa();
  3388. this.gc.get(b);
  3389. this.na();
  3390. return F(b.data) ? b.data: ""
  3391. };
  3392. e.prototype.On = ca("object");
  3393. e.prototype.Fn = ca("Jj");
  3394. e.prototype.Mn = function(b) {
  3395. this.qd = b || 0;
  3396. b = this.xa();
  3397. this.gc.get(b);
  3398. this.na();
  3399. return b.ya() ? this.b.Pe(b.data) : this.b.Mh(b.data)
  3400. };
  3401. e.prototype.Nn = ca("W");
  3402. e.prototype.Ln = ca("key");
  3403. e.prototype.Kn = ca("index");
  3404. e.prototype.Jn = function(b) {
  3405. b = b || 0;
  3406. var a = this.p.type,
  3407. c = null,
  3408. c = a.V(),
  3409. e = c.hc();
  3410. if (e.length) c = e[b % e.length].type;
  3411. else if (c.Q.length) c = c.Q[b % c.Q.length].type;
  3412. else if (a.d.length) c = a.d[b % a.d.length].type;
  3413. else return 0;
  3414. return this.index + c.Tf[a.xc]
  3415. };
  3416. e.prototype.Gn = ca("Bd");
  3417. e.prototype.En = ca("Tj");
  3418. e.prototype.Pn = function() {
  3419. var b, a;
  3420. b = 0;
  3421. for (a = this.Od.length; b < a; b++) this.zf[b] = this.Od[b].get();
  3422. return this.zf
  3423. };
  3424. Ab = e;
  3425. t.prototype.ia = function() {
  3426. this.P = a(this.P)
  3427. };
  3428. t.prototype.Mc = function(b) {
  3429. var a = this.b.Zj();
  3430. this.parent && !this.Ye && a ? (this.Id >= a.length && (a.length = this.Id + 1), a[this.Id] = b) : this.data = b
  3431. };
  3432. t.prototype.Dd = function() {
  3433. var b = this.b.Zj();
  3434. return ! this.parent || this.Ye || !b || this.cg ? this.data: this.Id >= b.length || "undefined" === typeof b[this.Id] ? this.Sh: b[this.Id]
  3435. };
  3436. t.prototype.oa = function() { ! this.parent || this.Ye || this.cg || this.Mc(this.Sh)
  3437. };
  3438. ub = t;
  3439. r.prototype.toString = function() {
  3440. return "include:" + this.Te.toString()
  3441. };
  3442. r.prototype.ia = function() {
  3443. this.Te = this.b.Ch[this.Vn];
  3444. this.sheet.ik.add(this);
  3445. this.P = a(this.P);
  3446. for (var b = this.parent; b;) b.group && b.Lf.push(this),
  3447. b = b.parent;
  3448. this.sl()
  3449. };
  3450. r.prototype.oa = function() {
  3451. this.parent && this.b.nf(this.b.m);
  3452. this.Te.Ph || this.Te.oa(!0);
  3453. this.parent && this.b.Ic(this.b.m)
  3454. };
  3455. r.prototype.sl = function() {
  3456. for (var b = this.parent; b;) {
  3457. if (b.group && !b.ed) {
  3458. this.wb = !1;
  3459. return
  3460. }
  3461. b = b.parent
  3462. }
  3463. this.wb = !0
  3464. };
  3465. Cb = r;
  3466. p.prototype.reset = function(b) {
  3467. this.Da = b;
  3468. this.gb = this.la = 0;
  3469. this.il.length = 0;
  3470. this.Ah = this.Hd = !1
  3471. };
  3472. p.prototype.co = function() {
  3473. return this.Da.Oi ? !0 : this.la < this.Da.ua.length - 1 ? !!this.Da.P.length: !1
  3474. };
  3475. tb = p
  3476. })(); (function() {
  3477. function l(a, g) {
  3478. this.p = a;
  3479. this.b = a.b;
  3480. this.type = g[0];
  3481. this.get = [this.dn, this.$m, this.nn, this.qn, this.Um, this.on, this.jn, this.Xm, this.hn, this.mn, this.Vm, this.ln, this.Ym, this.kn, this.en, this.gn, this.an, this.bn, this.Wm, this.pn, this.Pj, this.cn, this.Pj, this.Zm][this.type];
  3482. var d = null;
  3483. this.ab = this.U = this.X = this.Ea = this.Mg = this.Ba = this.first = this.value = null;
  3484. this.Hb = -1;
  3485. this.Bc = null;
  3486. this.bj = -1;
  3487. this.Bd = this.Af = null;
  3488. this.qf = !1;
  3489. switch (this.type) {
  3490. case 0:
  3491. case 1:
  3492. case 2:
  3493. this.value = g[1];
  3494. break;
  3495. case 3:
  3496. this.first = new N(a, g[1]);
  3497. break;
  3498. case 18:
  3499. this.first = new N(a, g[1]);
  3500. this.Ba = new N(a, g[2]);
  3501. this.Mg = new N(a, g[3]);
  3502. break;
  3503. case 19:
  3504. this.Ea = g[1];
  3505. this.Ea !== R.prototype.k.random && this.Ea !== R.prototype.k.If || this.p.dl();
  3506. this.X = [];
  3507. this.U = [];
  3508. 3 === g.length ? (d = g[2], this.X.length = d.length + 1) : this.X.length = 1;
  3509. break;
  3510. case 20:
  3511. this.ab = this.b.m[g[1]];
  3512. this.Hb = -1;
  3513. this.Ea = g[2];
  3514. this.qf = g[3];
  3515. Ib && this.Ea === Ib.prototype.k.yl && this.p.dl();
  3516. this.Bc = g[4] ? new N(a, g[4]) : null;
  3517. this.X = [];
  3518. this.U = [];
  3519. 6 === g.length ? (d = g[5], this.X.length = d.length + 1) : this.X.length = 1;
  3520. break;
  3521. case 21:
  3522. this.ab = this.b.m[g[1]];
  3523. this.qf = g[2];
  3524. this.Bc = g[3] ? new N(a, g[3]) : null;
  3525. this.bj = g[4];
  3526. break;
  3527. case 22:
  3528. this.ab = this.b.m[g[1]];
  3529. this.ab.Xf(g[2]);
  3530. this.Hb = this.ab.Hh(g[2]);
  3531. this.Ea = g[3];
  3532. this.qf = g[4];
  3533. this.Bc = g[5] ? new N(a, g[5]) : null;
  3534. this.X = [];
  3535. this.U = [];
  3536. 7 === g.length ? (d = g[6], this.X.length = d.length + 1) : this.X.length = 1;
  3537. break;
  3538. case 23:
  3539. this.Af = g[1],
  3540. this.Bd = null
  3541. }
  3542. this.p.qo(this.ab);
  3543. 4 <= this.type && 17 >= this.type && (this.first = new N(a, g[1]), this.Ba = new N(a, g[2]));
  3544. if (d) {
  3545. var l, h;
  3546. l = 0;
  3547. for (h = d.length; l < h; l++) this.U.push(new N(a, d[l]))
  3548. }
  3549. }
  3550. function q(a, g) {
  3551. this.type = a || O.Td;
  3552. this.data = g || 0;
  3553. this.me = null;
  3554. this.type == O.Td && (this.data = Math.floor(this.data))
  3555. }
  3556. l.prototype.ia = function() {
  3557. 23 === this.type && (this.Bd = this.p.b.$j(this.Af, this.p.xb.parent));
  3558. this.first && this.first.ia();
  3559. this.Ba && this.Ba.ia();
  3560. this.Mg && this.Mg.ia();
  3561. this.Bc && this.Bc.ia();
  3562. if (this.U) {
  3563. var a, g;
  3564. a = 0;
  3565. for (g = this.U.length; a < g; a++) this.U[a].ia()
  3566. }
  3567. };
  3568. l.prototype.pn = function(a) {
  3569. this.X[0] = a;
  3570. a = this.p.xa();
  3571. var g, d;
  3572. g = 0;
  3573. for (d = this.U.length; g < d; g++) this.U[g].get(a),
  3574. this.X[g + 1] = a.data;
  3575. this.p.na();
  3576. this.Ea.apply(this.b.oc, this.X)
  3577. };
  3578. l.prototype.Pj = function(a) {
  3579. var g = this.ab.V(),
  3580. d = g.hc();
  3581. if (!d.length) if (g.Q.length) d = g.Q;
  3582. else {
  3583. this.qf ? a.pa("") : a.O(0);
  3584. return
  3585. }
  3586. this.X[0] = a;
  3587. a.me = this.ab;
  3588. a = this.p.xa();
  3589. var l, g = 0;
  3590. for (l = this.U.length; g < l; g++) this.U[g].get(a),
  3591. this.X[g + 1] = a.data;
  3592. g = this.p.qd;
  3593. this.Bc && (this.Bc.get(a), a.ya() && (g = a.data, d = this.ab.d));
  3594. this.p.na();
  3595. g %= d.length;
  3596. 0 > g && (g += d.length);
  3597. d = d[g]; - 1 < this.Hb ? (a = 0, this.ab.B && (a = d.type.be[this.ab.xc]), this.Ea.apply(d.C[this.Hb + a], this.X)) : this.Ea.apply(d, this.X)
  3598. };
  3599. l.prototype.cn = function(a) {
  3600. var g = this.ab.V(),
  3601. d = g.hc();
  3602. if (!d.length) if (g.Q.length) d = g.Q;
  3603. else {
  3604. this.qf ? a.pa("") : a.O(0);
  3605. return
  3606. }
  3607. g = this.p.qd;
  3608. if (this.Bc) {
  3609. var l = this.p.xa();
  3610. this.Bc.get(l);
  3611. if (l.ya()) {
  3612. g = l.data;
  3613. d = this.ab.d;
  3614. g %= d.length;
  3615. 0 > g && (g += d.length);
  3616. d = d[g].wa[this.bj];
  3617. F(d) ? a.pa(d) : a.u(d);
  3618. this.p.na();
  3619. return
  3620. }
  3621. this.p.na()
  3622. }
  3623. g %= d.length;
  3624. 0 > g && (g += d.length);
  3625. d = d[g];
  3626. g = 0;
  3627. this.ab.B && (g = d.type.Tf[this.ab.xc]);
  3628. d = d.wa[this.bj + g];
  3629. F(d) ? a.pa(d) : a.u(d)
  3630. };
  3631. l.prototype.dn = function(a) {
  3632. a.type = O.Td;
  3633. a.data = this.value
  3634. };
  3635. l.prototype.$m = function(a) {
  3636. a.type = O.Sd;
  3637. a.data = this.value
  3638. };
  3639. l.prototype.nn = function(a) {
  3640. a.type = O.Gf;
  3641. a.data = this.value
  3642. };
  3643. l.prototype.qn = function(a) {
  3644. this.first.get(a);
  3645. a.ya() && (a.data = -a.data)
  3646. };
  3647. l.prototype.Um = function(a) {
  3648. this.first.get(a);
  3649. var g = this.p.xa();
  3650. this.Ba.get(g);
  3651. a.ya() && g.ya() && (a.data += g.data, g.he() && a.le());
  3652. this.p.na()
  3653. };
  3654. l.prototype.on = function(a) {
  3655. this.first.get(a);
  3656. var g = this.p.xa();
  3657. this.Ba.get(g);
  3658. a.ya() && g.ya() && (a.data -= g.data, g.he() && a.le());
  3659. this.p.na()
  3660. };
  3661. l.prototype.jn = function(a) {
  3662. this.first.get(a);
  3663. var g = this.p.xa();
  3664. this.Ba.get(g);
  3665. a.ya() && g.ya() && (a.data *= g.data, g.he() && a.le());
  3666. this.p.na()
  3667. };
  3668. l.prototype.Xm = function(a) {
  3669. this.first.get(a);
  3670. var g = this.p.xa();
  3671. this.Ba.get(g);
  3672. a.ya() && g.ya() && (a.data /= g.data, a.le());
  3673. this.p.na()
  3674. };
  3675. l.prototype.hn = function(a) {
  3676. this.first.get(a);
  3677. var g = this.p.xa();
  3678. this.Ba.get(g);
  3679. a.ya() && g.ya() && (a.data %= g.data, g.he() && a.le());
  3680. this.p.na()
  3681. };
  3682. l.prototype.mn = function(a) {
  3683. this.first.get(a);
  3684. var g = this.p.xa();
  3685. this.Ba.get(g);
  3686. a.ya() && g.ya() && (a.data = Math.pow(a.data, g.data), g.he() && a.le());
  3687. this.p.na()
  3688. };
  3689. l.prototype.Vm = function(a) {
  3690. this.first.get(a);
  3691. var g = this.p.xa();
  3692. this.Ba.get(g);
  3693. a.ya() ? g.eg() ? a.pa(a.data.toString() + g.data) : a.data && g.data ? a.O(1) : a.O(0) : a.eg() && (a.data = g.eg() ? a.data + g.data: a.data + (Math.round(1E10 * g.data) / 1E10).toString());
  3694. this.p.na()
  3695. };
  3696. l.prototype.ln = function(a) {
  3697. this.first.get(a);
  3698. var g = this.p.xa();
  3699. this.Ba.get(g);
  3700. a.ya() && g.ya() && (a.data || g.data ? a.O(1) : a.O(0));
  3701. this.p.na()
  3702. };
  3703. l.prototype.Wm = function(a) {
  3704. this.first.get(a);
  3705. a.data ? this.Ba.get(a) : this.Mg.get(a)
  3706. };
  3707. l.prototype.Ym = function(a) {
  3708. this.first.get(a);
  3709. var g = this.p.xa();
  3710. this.Ba.get(g);
  3711. a.O(a.data === g.data ? 1 : 0);
  3712. this.p.na()
  3713. };
  3714. l.prototype.kn = function(a) {
  3715. this.first.get(a);
  3716. var g = this.p.xa();
  3717. this.Ba.get(g);
  3718. a.O(a.data !== g.data ? 1 : 0);
  3719. this.p.na()
  3720. };
  3721. l.prototype.en = function(a) {
  3722. this.first.get(a);
  3723. var g = this.p.xa();
  3724. this.Ba.get(g);
  3725. a.O(a.data < g.data ? 1 : 0);
  3726. this.p.na()
  3727. };
  3728. l.prototype.gn = function(a) {
  3729. this.first.get(a);
  3730. var g = this.p.xa();
  3731. this.Ba.get(g);
  3732. a.O(a.data <= g.data ? 1 : 0);
  3733. this.p.na()
  3734. };
  3735. l.prototype.an = function(a) {
  3736. this.first.get(a);
  3737. var g = this.p.xa();
  3738. this.Ba.get(g);
  3739. a.O(a.data > g.data ? 1 : 0);
  3740. this.p.na()
  3741. };
  3742. l.prototype.bn = function(a) {
  3743. this.first.get(a);
  3744. var g = this.p.xa();
  3745. this.Ba.get(g);
  3746. a.O(a.data >= g.data ? 1 : 0);
  3747. this.p.na()
  3748. };
  3749. l.prototype.Zm = function(a) {
  3750. var g = this.Bd.Dd();
  3751. B(g) ? a.u(g) : a.pa(g)
  3752. };
  3753. N = l;
  3754. q.prototype.he = function() {
  3755. return this.type === O.Sd
  3756. };
  3757. q.prototype.ya = function() {
  3758. return this.type === O.Td || this.type === O.Sd
  3759. };
  3760. q.prototype.eg = function() {
  3761. return this.type === O.Gf
  3762. };
  3763. q.prototype.le = function() {
  3764. this.he() || (this.eg() && (this.data = parseFloat(this.data)), this.type = O.Sd)
  3765. };
  3766. q.prototype.O = function(a) {
  3767. this.type = O.Td;
  3768. this.data = Math.floor(a)
  3769. };
  3770. q.prototype.u = function(a) {
  3771. this.type = O.Sd;
  3772. this.data = a
  3773. };
  3774. q.prototype.pa = function(a) {
  3775. this.type = O.Gf;
  3776. this.data = a
  3777. };
  3778. q.prototype.el = function(a) {
  3779. B(a) ? (this.type = O.Sd, this.data = a) : F(a) ? (this.type = O.Gf, this.data = a.toString()) : (this.type = O.Td, this.data = 0)
  3780. };
  3781. Db = q;
  3782. O = {
  3783. Td: 0,
  3784. Sd: 1,
  3785. Gf: 2
  3786. }
  3787. })();
  3788. function R(l) {
  3789. this.b = l;
  3790. this.eb = []
  3791. }
  3792. R.prototype.Db = function() {
  3793. var l = {},
  3794. q, a, g, d, u, h, c, f;
  3795. l.waits = [];
  3796. var e = l.waits,
  3797. t;
  3798. q = 0;
  3799. for (a = this.eb.length; q < a; q++) {
  3800. h = this.eb[q];
  3801. t = {
  3802. t: h.time,
  3803. ev: h.$d.H,
  3804. sm: [],
  3805. sols: {}
  3806. };
  3807. h.$d.Sb[h.gb] && (t.act = h.$d.Sb[h.gb].H);
  3808. g = 0;
  3809. for (d = h.P.length; g < d; g++) t.sm.push(h.P[g].H);
  3810. for (u in h.Ta) if (h.Ta.hasOwnProperty(u)) {
  3811. c = this.b.m[parseInt(u, 10)];
  3812. f = {
  3813. sa: h.Ta[u].Cg,
  3814. insts: []
  3815. };
  3816. g = 0;
  3817. for (d = h.Ta[u].Cc.length; g < d; g++) f.insts.push(h.Ta[u].Cc[g].uid);
  3818. t.sols[c.H.toString()] = f
  3819. }
  3820. e.push(t)
  3821. }
  3822. return l
  3823. };
  3824. R.prototype.Yb = function(l) {
  3825. l = l.waits;
  3826. var q, a, g, d, u, h, c, f, e, t, r;
  3827. q = this.eb.length = 0;
  3828. for (a = l.length; q < a; q++) if (h = l[q], f = this.b.Ej[h.ev.toString()]) {
  3829. e = -1;
  3830. g = 0;
  3831. for (d = f.Sb.length; g < d; g++) if (f.Sb[g].H === h.act) {
  3832. e = g;
  3833. break
  3834. }
  3835. if ( - 1 !== e) {
  3836. c = {
  3837. Ta: {},
  3838. P: [],
  3839. yh: !1
  3840. };
  3841. c.time = h.t;
  3842. c.$d = f;
  3843. c.gb = e;
  3844. g = 0;
  3845. for (d = h.sm.length; g < d; g++)(f = this.b.Zf(h.sm[g])) && c.P.push(f);
  3846. for (u in h.sols) if (h.sols.hasOwnProperty(u) && (f = this.b.Zf(parseInt(u, 10)))) {
  3847. e = h.sols[u];
  3848. t = {
  3849. Cg: e.sa,
  3850. Cc: []
  3851. };
  3852. g = 0;
  3853. for (d = e.insts.length; g < d; g++)(r = this.b.dk(e.insts[g])) && t.Cc.push(r);
  3854. c.Ta[f.index.toString()] = t
  3855. }
  3856. this.eb.push(c)
  3857. }
  3858. }
  3859. }; (function() {
  3860. function l() {}
  3861. function q() {}
  3862. function a() {}
  3863. var g = R.prototype;
  3864. l.prototype.Cl = w(!0);
  3865. l.prototype.Vl = w(!0);
  3866. l.prototype.Ul = w(!0);
  3867. l.prototype.ej = function(a, c, f) {
  3868. return Eb(a, c, f)
  3869. };
  3870. l.prototype.Ef = function(a, c, f) {
  3871. var e = this.b.Fa(),
  3872. d = e.Da,
  3873. e = e.co();
  3874. a = this.b.Go(a);
  3875. if (f < c) if (e) for (; c >= f && !a.uf; --c) this.b.re(d.P),
  3876. a.index = c,
  3877. d.pf(),
  3878. this.b.Ic(d.P);
  3879. else for (; c >= f && !a.uf; --c) a.index = c,
  3880. d.pf();
  3881. else if (e) for (; c <= f && !a.uf; ++c) this.b.re(d.P),
  3882. a.index = c,
  3883. d.pf(),
  3884. this.b.Ic(d.P);
  3885. else for (; c <= f && !a.uf; ++c) a.index = c,
  3886. d.pf();
  3887. this.b.Bo();
  3888. return ! 1
  3889. };
  3890. l.prototype.gj = function(a) {
  3891. var c = this.b.Yj(),
  3892. f = c.R.Df || 0,
  3893. e = this.b.jd.ja;
  3894. "undefined" === typeof c.R.Xg && (c.R.Xg = a);
  3895. var d = c.R.Xg;
  3896. if (e >= f + d) return c.R.Df = f + d,
  3897. e >= c.R.Df + 0.04 && (c.R.Df = e),
  3898. c.R.Xg = a,
  3899. !0;
  3900. e < f - 0.1 && (c.R.Df = e);
  3901. return ! 1
  3902. };
  3903. l.prototype.ta = function(a, c, f) {
  3904. return Eb(a.Dd(), c, f)
  3905. };
  3906. l.prototype.td = function(a) {
  3907. return (a = this.b.fe[a.toLowerCase()]) && a.ed
  3908. };
  3909. l.prototype.Wg = function() {
  3910. var a = this.b.Fa();
  3911. return a.Ah ? !1 : !a.Hd
  3912. };
  3913. l.prototype.ah = w(!0);
  3914. l.prototype.Ll = w(!0);
  3915. l.prototype.bh = w(!0);
  3916. l.prototype.Wl = w(!0);
  3917. l.prototype.$g = w(!0);
  3918. g.g = new l;
  3919. q.prototype.Gb = function(a, c, f, e) {
  3920. if (c && a && (c = this.b.Lj(a, c, f, e))) {
  3921. this.b.Wb++;
  3922. var d;
  3923. this.b.trigger(Object.getPrototypeOf(a.Y).g.Zg, c);
  3924. if (c.Bb) for (f = 0, e = c.siblings.length; f < e; f++) d = c.siblings[f],
  3925. this.b.trigger(Object.getPrototypeOf(d.type.Y).g.Zg, d);
  3926. this.b.Wb--;
  3927. a = a.V();
  3928. a.Z = !1;
  3929. a.d.length = 1;
  3930. a.d[0] = c;
  3931. if (c.Bb) for (f = 0, e = c.siblings.length; f < e; f++) d = c.siblings[f],
  3932. a = d.type.V(),
  3933. a.Z = !1,
  3934. a.d.length = 1,
  3935. a.d[0] = d
  3936. }
  3937. };
  3938. q.prototype.ca = function(a, c) {
  3939. 0 === a.Bf ? B(c) ? a.Mc(c) : a.Mc(parseFloat(c)) : 1 === a.Bf && a.Mc(c.toString())
  3940. };
  3941. q.prototype.fb = function(a, c) {
  3942. 0 === a.Bf ? B(c) ? a.Mc(a.Dd() + c) : a.Mc(a.Dd() + parseFloat(c)) : 1 === a.Bf && a.Mc(a.Dd() + c.toString())
  3943. };
  3944. q.prototype.jm = function(a, c) {
  3945. 0 === a.Bf && (B(c) ? a.Mc(a.Dd() - c) : a.Mc(a.Dd() - parseFloat(c)))
  3946. };
  3947. q.prototype.dh = function(a, c) {
  3948. var f = this.b.fe[a.toLowerCase()];
  3949. if (f) switch (c) {
  3950. case 0:
  3951. f.Mi(!1);
  3952. break;
  3953. case 1:
  3954. f.Mi(!0);
  3955. break;
  3956. case 2:
  3957. f.Mi(!f.ed)
  3958. }
  3959. };
  3960. var d = [],
  3961. u = [];
  3962. q.prototype.lm = function(a) {
  3963. if (! (0 > a)) {
  3964. var c, f, e, g = this.b.Fa(),
  3965. r;
  3966. r = d.length ? d.pop() : {
  3967. Ta: {},
  3968. P: []
  3969. };
  3970. r.yh = !1;
  3971. r.time = this.b.jd.ja + a;
  3972. r.$d = g.Da;
  3973. r.gb = g.gb + 1;
  3974. a = 0;
  3975. for (c = this.b.m.length; a < c; a++) e = this.b.m[a],
  3976. f = e.V(),
  3977. f.Z && -1 === g.Da.P.indexOf(e) || (r.P.push(e), e = void 0, e = u.length ? u.pop() : {
  3978. Cc: []
  3979. },
  3980. e.Cg = !1, e.Cg = f.Z, ua(e.Cc, f.d), r.Ta[a.toString()] = e);
  3981. this.eb.push(r);
  3982. return ! 0
  3983. }
  3984. };
  3985. g.e = new q;
  3986. a.prototype["int"] = function(a, c) {
  3987. F(c) ? (a.O(parseInt(c, 10)), isNaN(a.data) && (a.data = 0)) : a.O(c)
  3988. };
  3989. a.prototype["float"] = function(a, c) {
  3990. F(c) ? (a.u(parseFloat(c)), isNaN(a.data) && (a.data = 0)) : a.u(c)
  3991. };
  3992. a.prototype.random = function(a, c, f) {
  3993. void 0 === f ? a.u(Math.random() * c) : a.u(Math.random() * (f - c) + c)
  3994. };
  3995. a.prototype.sqrt = function(a, c) {
  3996. a.u(Math.sqrt(c))
  3997. };
  3998. a.prototype.round = function(a, c) {
  3999. a.O(Math.round(c))
  4000. };
  4001. a.prototype.floor = function(a, c) {
  4002. a.O(Math.floor(c))
  4003. };
  4004. a.prototype.ceil = function(a, c) {
  4005. a.O(Math.ceil(c))
  4006. };
  4007. a.prototype.sin = function(a, c) {
  4008. a.u(Math.sin(J(c)))
  4009. };
  4010. a.prototype.cos = function(a, c) {
  4011. a.u(Math.cos(J(c)))
  4012. };
  4013. a.prototype.acos = function(a, c) {
  4014. a.u(xa(Math.acos(c)))
  4015. };
  4016. a.prototype.max = function(a) {
  4017. var c = arguments[1],
  4018. f,
  4019. e;
  4020. f = 2;
  4021. for (e = arguments.length; f < e; f++) c < arguments[f] && (c = arguments[f]);
  4022. a.u(c)
  4023. };
  4024. a.prototype.min = function(a) {
  4025. var c = arguments[1],
  4026. f,
  4027. e;
  4028. f = 2;
  4029. for (e = arguments.length; f < e; f++) c > arguments[f] && (c = arguments[f]);
  4030. a.u(c)
  4031. };
  4032. a.prototype.Zd = function(a) {
  4033. a.u(this.b.Zd)
  4034. };
  4035. a.prototype.xf = function(a) {
  4036. a.u(this.b.xf)
  4037. };
  4038. a.prototype.time = function(a) {
  4039. a.u(this.b.jd.ja)
  4040. };
  4041. a.prototype.Nc = function(a) {
  4042. a.O(this.b.Nc)
  4043. };
  4044. a.prototype.qg = function(a) {
  4045. a.O(this.b.qg)
  4046. };
  4047. a.prototype.Eh = function(a) {
  4048. a.O(this.b.Eh)
  4049. };
  4050. a.prototype.j = function(a, c, f, e, d) {
  4051. a.u(xa(Da(c, f, e, d)))
  4052. };
  4053. a.prototype.Jf = function(a, c, f, e) {
  4054. c < f ? a.u(f) : c > e ? a.u(e) : a.u(c)
  4055. };
  4056. a.prototype.find = function(a, c, f) {
  4057. F(c) && F(f) ? a.O(c.search(RegExp(Ma(f), "i"))) : a.O( - 1)
  4058. };
  4059. a.prototype.left = function(a, c, f) {
  4060. a.pa(F(c) ? c.substr(0, f) : "")
  4061. };
  4062. a.prototype.right = function(a, c, f) {
  4063. a.pa(F(c) ? c.substr(c.length - f) : "")
  4064. };
  4065. a.prototype.rb = function(a, c, f, e) {
  4066. F(c) && F(e) ? (c = c.split(e), f = G(f), 0 > f || f >= c.length ? a.pa("") : a.pa(c[f])) : a.pa("")
  4067. };
  4068. a.prototype.Yo = function(a, c, f) {
  4069. F(c) && c.length ? a.O(c.split(f).length) : a.O(0)
  4070. };
  4071. a.prototype.replace = function(a, c, f, e) {
  4072. F(c) && F(f) && F(e) ? a.pa(c.replace(RegExp(Ma(f), "gi"), e)) : a.pa(F(c) ? c: "")
  4073. };
  4074. a.prototype.If = function(a) {
  4075. var c = G(Math.random() * (arguments.length - 1));
  4076. a.el(arguments[c + 1])
  4077. };
  4078. a.prototype.uh = function(a) {
  4079. a.u(this.b.uh / 1E3)
  4080. };
  4081. a.prototype.ke = function(a) {
  4082. a.u(this.b.ke)
  4083. };
  4084. g.k = new a;
  4085. g.Jo = function() {
  4086. var a, c, f, e, g, r, p = this.b.Fa();
  4087. a = 0;
  4088. for (f = this.eb.length; a < f; a++) if (e = this.eb[a], !(e.time > this.b.jd.ja)) {
  4089. p.Da = e.$d;
  4090. p.gb = e.gb;
  4091. p.la = 0;
  4092. for (c in e.Ta) e.Ta.hasOwnProperty(c) && (g = this.b.m[parseInt(c, 10)].V(), r = e.Ta[c], g.Z = r.Cg, ua(g.d, r.Cc), g = r, g.Cc.length = 0, u.push(g));
  4093. e.$d.Io();
  4094. this.b.sh(e.P);
  4095. e.yh = !0
  4096. }
  4097. c = a = 0;
  4098. for (f = this.eb.length; a < f; a++) e = this.eb[a],
  4099. this.eb[c] = e,
  4100. e.yh ? (Ka(e.Ta), e.P.length = 0, d.push(e)) : c++;
  4101. this.eb.length = c
  4102. }
  4103. })(); (function() {
  4104. Ua = function(l) {
  4105. var a = l[0].prototype,
  4106. g = l[1],
  4107. d = l[3],
  4108. u = l[4],
  4109. h = l[5],
  4110. c = l[6],
  4111. f = l[7];
  4112. l = l[8];
  4113. a.g || (a.g = {});
  4114. a.e || (a.e = {});
  4115. a.k || (a.k = {});
  4116. var e = a.g,
  4117. t = a.e,
  4118. a = a.k;
  4119. d && (e.Bl = function(a, c) {
  4120. return Eb(this.x, a, c)
  4121. },
  4122. e.qp = function(a, c) {
  4123. return Eb(this.y, a, c)
  4124. },
  4125. e.Cp = function() {
  4126. var a = this.i;
  4127. this.Qa();
  4128. var c = this.Na;
  4129. return ! (c.right < a.Ka || c.bottom < a.La || c.left > a.tb || c.top > a.sb)
  4130. },
  4131. e.Dp = function() {
  4132. this.Qa();
  4133. var a = this.Na,
  4134. c = this.b.S;
  4135. return 0 > a.right || 0 > a.bottom || a.left > c.width || a.top > c.height
  4136. },
  4137. e.Pp = function(a, c, b) {
  4138. var e = this.V(),
  4139. f = e.hc();
  4140. if (!f.length) return ! 1;
  4141. var d = f[0],
  4142. g = d,
  4143. h = Ha(d.x, d.y, c, b),
  4144. l,
  4145. t,
  4146. q;
  4147. l = 1;
  4148. for (t = f.length; l < t; l++) if (d = f[l], q = Ha(d.x, d.y, c, b), 0 === a && q < h || 1 === a && q > h) h = q,
  4149. g = d;
  4150. e.lf(g);
  4151. return ! 0
  4152. },
  4153. t.vd = function(a) {
  4154. this.x !== a && (this.x = a, this.Ia())
  4155. },
  4156. t.Uc = function(a) {
  4157. this.y !== a && (this.y = a, this.Ia())
  4158. },
  4159. t.dq = function(a, c) {
  4160. if (this.x !== a || this.y !== c) this.x = a,
  4161. this.y = c,
  4162. this.Ia()
  4163. },
  4164. t.fq = function(a, c) {
  4165. var b = a.Dn(this);
  4166. if (b) {
  4167. var e;
  4168. b.Lh ? (e = b.Lh(c, !0), b = b.Lh(c, !1)) : (e = b.x, b = b.y);
  4169. if (this.x !== e || this.y !== b) this.x = e,
  4170. this.y = b,
  4171. this.Ia()
  4172. }
  4173. },
  4174. t.Ip = function(a) {
  4175. 0 !== a && (this.x += Math.cos(this.j) * a, this.y += Math.sin(this.j) * a, this.Ia())
  4176. },
  4177. t.Hp = function(a, c) {
  4178. 0 !== c && (this.x += Math.cos(J(a)) * c, this.y += Math.sin(J(a)) * c, this.Ia())
  4179. },
  4180. a.pm = function(a) {
  4181. a.u(this.x)
  4182. },
  4183. a.qm = function(a) {
  4184. a.u(this.y)
  4185. },
  4186. a.Zd = function(a) {
  4187. a.u(this.b.Ih(this))
  4188. });
  4189. u && (e.pp = function(a, c) {
  4190. return Eb(this.width, a, c)
  4191. },
  4192. e.mp = function(a, c) {
  4193. return Eb(this.height, a, c)
  4194. },
  4195. t.hm = function(a) {
  4196. this.width !== a && (this.width = a, this.Ia())
  4197. },
  4198. t.bq = function(a) {
  4199. this.height !== a && (this.height = a, this.Ia())
  4200. },
  4201. t.Vd = function(a, c) {
  4202. if (this.width !== a || this.height !== c) this.width = a,
  4203. this.height = c,
  4204. this.Ia()
  4205. },
  4206. a.mm = function(a) {
  4207. a.u(this.width)
  4208. },
  4209. a.Gl = function(a) {
  4210. a.u(this.height)
  4211. },
  4212. a.jp = function(a) {
  4213. this.Qa();
  4214. a.u(this.Na.left)
  4215. },
  4216. a.lp = function(a) {
  4217. this.Qa();
  4218. a.u(this.Na.top)
  4219. },
  4220. a.kp = function(a) {
  4221. this.Qa();
  4222. a.u(this.Na.right)
  4223. },
  4224. a.ip = function(a) {
  4225. this.Qa();
  4226. a.u(this.Na.bottom)
  4227. });
  4228. h && (e.hp = function(a, c) {
  4229. return Ea(this.j, J(c)) <= J(a)
  4230. },
  4231. e.Ap = function(a) {
  4232. return Ga(this.j, J(a))
  4233. },
  4234. e.yp = function(a, c) {
  4235. var b = Ca(a),
  4236. e = Ca(c),
  4237. f = za(this.j);
  4238. return Ga(e, b) ? Ga(f, b) && !Ga(f, e) : !(!Ga(f, b) && Ga(f, e))
  4239. },
  4240. t.Yp = function(a) {
  4241. a = J(ya(a));
  4242. isNaN(a) || this.j === a || (this.j = a, this.Ia())
  4243. },
  4244. t.Up = function(a) {
  4245. 0 === a || isNaN(a) || (this.j += J(a), this.j = za(this.j), this.Ia())
  4246. },
  4247. t.Vp = function(a) {
  4248. 0 === a || isNaN(a) || (this.j -= J(a), this.j = za(this.j), this.Ia())
  4249. },
  4250. t.Wp = function(a, c) {
  4251. var b = Fa(this.j, J(c), J(a));
  4252. isNaN(b) || this.j === b || (this.j = b, this.Ia())
  4253. },
  4254. t.Xp = function(a, c, b) {
  4255. a = Fa(this.j, Math.atan2(b - this.y, c - this.x), J(a));
  4256. isNaN(a) || this.j === a || (this.j = a, this.Ia())
  4257. },
  4258. t.hq = function(a, c) {
  4259. var b = Math.atan2(c - this.y, a - this.x);
  4260. isNaN(b) || this.j === b || (this.j = b, this.Ia())
  4261. },
  4262. a.gp = function(a) {
  4263. a.u(Ba(this.j))
  4264. });
  4265. g || (e.Al = function(a, c, b) {
  4266. return Eb(this.wa[a], c, b)
  4267. },
  4268. e.zp = function(a) {
  4269. return this.wa[a]
  4270. },
  4271. e.Qp = function(a, c) {
  4272. var b = this.V(),
  4273. e = b.hc();
  4274. if (!e.length) return ! 1;
  4275. var f = e[0],
  4276. d = f,
  4277. g = f.wa[c],
  4278. h,
  4279. l,
  4280. t;
  4281. h = 1;
  4282. for (l = e.length; h < l; h++) if (f = e[h], t = f.wa[c], 0 === a && t < g || 1 === a && t > g) g = t,
  4283. d = f;
  4284. b.lf(d);
  4285. return ! 0
  4286. },
  4287. e.Op = function(a) {
  4288. var c, b, e, f, d;
  4289. if (this.b.Yj().Vh) {
  4290. d = this.V();
  4291. if (d.Z) for (d.Z = !1, d.d.length = 0, d.Q.length = 0, e = this.d, c = 0, b = e.length; c < b; c++) f = e[c],
  4292. f.uid === a ? d.Q.push(f) : d.d.push(f);
  4293. else {
  4294. e = c = 0;
  4295. for (b = d.d.length; c < b; c++) f = d.d[c],
  4296. d.d[e] = f,
  4297. f.uid === a ? d.Q.push(f) : e++;
  4298. d.d.length = e
  4299. }
  4300. this.Xc();
  4301. return !! d.d.length
  4302. }
  4303. f = this.b.dk(a);
  4304. if (!f) return ! 1;
  4305. d = this.V();
  4306. if (!d.Z && -1 === d.d.indexOf(f)) return ! 1;
  4307. if (this.B) for (a = f.type.ba, c = 0, b = a.length; c < b; c++) {
  4308. if (a[c] === this) return d.lf(f),
  4309. this.Xc(),
  4310. !0
  4311. } else if (f.type === this) return d.lf(f),
  4312. this.Xc(),
  4313. !0;
  4314. return ! 1
  4315. },
  4316. e.Zg = w(!0), e.Nl = w(!0), t.Ca = function(a, c) {
  4317. var b = this.wa;
  4318. B(b[a]) ? b[a] = B(c) ? c: parseFloat(c) : F(b[a]) && (b[a] = F(c) ? c: c.toString())
  4319. },
  4320. t.fp = function(a, c) {
  4321. var b = this.wa;
  4322. B(b[a]) ? b[a] = B(c) ? b[a] + c: b[a] + parseFloat(c) : F(b[a]) && (b[a] = F(c) ? b[a] + c: b[a] + c.toString())
  4323. },
  4324. t.jq = function(a, c) {
  4325. var b = this.wa;
  4326. B(b[a]) && (b[a] = B(c) ? b[a] - c: b[a] - parseFloat(c))
  4327. },
  4328. t.Zp = function(a, c) {
  4329. this.wa[a] = c ? 1 : 0
  4330. },
  4331. t.kq = function(a) {
  4332. this.wa[a] = 1 - this.wa[a]
  4333. },
  4334. t.Sc = function() {
  4335. this.b.Tc(this)
  4336. },
  4337. t.Hl || (t.Hl = function(a) {
  4338. var c, b;
  4339. try {
  4340. c = JSON.parse(a)
  4341. } catch(e) {
  4342. return
  4343. }
  4344. this.b.mg(this, c, !0);
  4345. this.Wc && this.Wc();
  4346. if (this.C) for (a = 0, c = this.C.length; a < c; ++a) b = this.C[a],
  4347. b.Wc && b.Wc()
  4348. }), a.sp = function(a) {
  4349. var c = a.me.d.length,
  4350. b, e, f;
  4351. b = 0;
  4352. for (e = this.b.kb.length; b < e; b++) f = this.b.kb[b],
  4353. a.me.B ? 0 <= f.type.ba.indexOf(a.me) && c++:f.type === a.me && c++;
  4354. a.O(c)
  4355. },
  4356. a.Sp = function(a) {
  4357. a.O(a.me.V().hc().length)
  4358. },
  4359. a.lq = function(a) {
  4360. a.O(this.uid)
  4361. },
  4362. a.xp = function(a) {
  4363. a.O(this.Re())
  4364. },
  4365. a.Vg || (a.Vg = function(a) {
  4366. a.pa(JSON.stringify(this.b.Ki(this, !0)))
  4367. }));
  4368. c && (e.Ep = ca("visible"), t.gm = function(a) { ! a !== !this.visible && (this.visible = a, this.b.N = !0)
  4369. },
  4370. e.np = function(a, c) {
  4371. return Eb(Ra(100 * this.opacity), a, c)
  4372. },
  4373. t.cq = function(a) {
  4374. a /= 100;
  4375. 0 > a ? a = 0 : 1 < a && (a = 1);
  4376. a !== this.opacity && (this.opacity = a, this.b.N = !0)
  4377. },
  4378. a.Opacity = function(a) {
  4379. a.u(Ra(100 * this.opacity))
  4380. });
  4381. f && (e.Bp = function(a) {
  4382. return a ? this.i === a: !1
  4383. },
  4384. e.Rp = function(a) {
  4385. var c = this.V(),
  4386. b = c.hc();
  4387. if (!b.length) return ! 1;
  4388. var e = b[0],
  4389. f = e,
  4390. d,
  4391. g;
  4392. d = 1;
  4393. for (g = b.length; d < g; d++) if (e = b[d], 0 === a) {
  4394. if (e.i.index > f.i.index || e.i.index === f.i.index && e.Ab() > f.Ab()) f = e
  4395. } else if (e.i.index < f.i.index || e.i.index === f.i.index && e.Ab() < f.Ab()) f = e;
  4396. c.lf(f);
  4397. return ! 0
  4398. },
  4399. t.Lp = function() {
  4400. var a = this.Ab();
  4401. a !== this.i.d.length - 1 && (ta(this.i.d, a), this.i.d.push(this), this.b.N = !0, this.i.ub = !0)
  4402. },
  4403. t.Jp = function() {
  4404. var a = this.Ab();
  4405. 0 !== a && (ta(this.i.d, a), this.i.d.unshift(this), this.b.N = !0, this.i.ub = !0)
  4406. },
  4407. t.Kp = function(a) {
  4408. a && a != this.i && (ta(this.i.d, this.Ab()), this.i.ub = !0, this.i = a, this.Rd = a.d.length, a.d.push(this), this.b.N = !0)
  4409. },
  4410. t.nq = function(a, c) {
  4411. var b = 0 === a;
  4412. if (c) {
  4413. var e = c.yn(this);
  4414. if (e && e.uid !== this.uid) {
  4415. this.i.index !== e.i.index && (ta(this.i.d, this.Ab()), this.i.ub = !0, this.i = e.i, this.Rd = e.i.d.length, e.i.d.push(this));
  4416. var f = this.Ab(),
  4417. e = e.Ab();
  4418. ta(this.i.d, f);
  4419. f < e && e--;
  4420. b && e++;
  4421. e === this.i.d.length ? this.i.d.push(this) : this.i.d.splice(e, 0, this);
  4422. this.i.ub = !0;
  4423. this.b.N = !0
  4424. }
  4425. }
  4426. },
  4427. a.Gp = function(a) {
  4428. a.O(this.i.Jk)
  4429. },
  4430. a.Fp = function(a) {
  4431. a.pa(this.i.name)
  4432. },
  4433. a.mq = function(a) {
  4434. a.O(this.Ab())
  4435. });
  4436. l && (t.$p = function(a, c) {
  4437. if (this.b.r) {
  4438. var b = this.type.Kh(c);
  4439. if (! (0 > b)) {
  4440. var e = 1 === a;
  4441. this.Vc[b] !== e && (this.Vc[b] = e, this.Pc(), this.b.N = !0)
  4442. }
  4443. }
  4444. },
  4445. t.aq = function(a, c, b) {
  4446. if (this.b.r) {
  4447. var e = this.type.Kh(a);
  4448. 0 > e || (a = this.type.A[e], e = this.ga[e], c = Math.floor(c), 0 > c || c >= e.length || (1 === this.b.r.Aq(a.Ja, c) && (b /= 100), e[c] !== b && (e[c] = b, a.wb && (this.b.N = !0))))
  4449. }
  4450. })
  4451. };
  4452. mb = function() {
  4453. this.ph = this.ih = !0;
  4454. this.type.xj = !0;
  4455. this.b.N = !0;
  4456. var l, a, g = this.jh;
  4457. l = 0;
  4458. for (a = g.length; l < a; ++l) g[l](this)
  4459. };
  4460. nb = function(l) {
  4461. l && this.jh.push(l)
  4462. };
  4463. pb = function() {
  4464. if (this.ih) {
  4465. var l = this.Na,
  4466. a = this.Zc;
  4467. l.set(this.x, this.y, this.x + this.width, this.y + this.height);
  4468. l.offset( - this.Za * this.width, -this.$a * this.height);
  4469. this.j ? (l.offset( - this.x, -this.y), a.fl(l, this.j), a.offset(this.x, this.y), a.Fj(l)) : a.Eg(l);
  4470. l.normalize();
  4471. this.ih = !1
  4472. }
  4473. };
  4474. var l = new qa(0, 0, 0, 0);
  4475. qb = function() {
  4476. if (this.ph && this.Ge) {
  4477. this.Qa();
  4478. var q = this.type.Ij,
  4479. a = this.Kf,
  4480. g = this.Na;
  4481. l.set(q.pj(g.left), q.qj(g.top), q.pj(g.right), q.qj(g.bottom));
  4482. a.Tm(l) || (a.right < a.left ? q.update(this, null, l) : q.update(this, a, l), a.copy(l), this.ph = !1)
  4483. }
  4484. };
  4485. ob = function(l, a) {
  4486. return this.Na.ec(l, a) && this.Zc.ec(l, a) ? this.cc && !this.cc.jo() ? (this.cc.Fm(this.width, this.height, this.j), this.cc.ec(l - this.x, a - this.y)) : !0 : !1
  4487. };
  4488. ib = function() {
  4489. this.type.Tg();
  4490. return this.Ed
  4491. };
  4492. rb = function() {
  4493. this.i.$o();
  4494. return this.Rd
  4495. };
  4496. sb = function() {
  4497. this.L.length = 0;
  4498. var l, a;
  4499. l = 0;
  4500. for (a = this.Vc.length; l < a; l++) this.Vc[l] && this.L.push(this.type.A[l]);
  4501. this.ul = !!this.L.length
  4502. };
  4503. jb = function() {
  4504. return "Inst" + this.Yk
  4505. };
  4506. Xa = function(l) {
  4507. if (l && l.Bb && l.type != this) {
  4508. var a, g, d;
  4509. a = 0;
  4510. for (g = l.siblings.length; a < g; a++) if (d = l.siblings[a], d.type == this) return d
  4511. }
  4512. l = this.V().hc();
  4513. return l.length ? l[0] : null
  4514. };
  4515. Ya = function(l) {
  4516. var a = this.V().hc();
  4517. return a.length ? a[l.Re() % a.length] : null
  4518. };
  4519. Wa = function() {
  4520. if (this.ve && !this.B) {
  4521. var l, a;
  4522. l = 0;
  4523. for (a = this.d.length; l < a; l++) this.d[l].Ed = l;
  4524. var g = l,
  4525. d = this.b.kb;
  4526. l = 0;
  4527. for (a = d.length; l < a; ++l) d[l].type === this && (d[l].Ed = g++);
  4528. this.ve = !1
  4529. }
  4530. };
  4531. gb = function(l) {
  4532. if (l < this.d.length) return this.d[l];
  4533. l -= this.d.length;
  4534. var a = this.b.kb,
  4535. g, d;
  4536. g = 0;
  4537. for (d = a.length; g < d; ++g) if (a[g].type === this) {
  4538. if (0 === l) return a[g]; --l
  4539. }
  4540. return null
  4541. };
  4542. Za = function() {
  4543. return this.rd[this.vc]
  4544. };
  4545. $a = function() {
  4546. this.vc++;
  4547. this.vc === this.rd.length ? this.rd.push(new Va(this)) : this.rd[this.vc].Z = !0
  4548. };
  4549. ab = function() {
  4550. this.vc++;
  4551. this.vc === this.rd.length && this.rd.push(new Va(this));
  4552. var l = this.rd[this.vc],
  4553. a = this.rd[this.vc - 1];
  4554. a.Z ? l.Z = !0 : (l.Z = !1, ua(l.d, a.d), ua(l.Q, a.Q))
  4555. };
  4556. bb = function() {
  4557. this.vc--
  4558. };
  4559. cb = function(l) {
  4560. var a, g, d, u, h, c = 0;
  4561. if (!this.B) for (a = 0, g = this.ba.length; a < g; a++) for (h = this.ba[a], d = 0, u = h.ka.length; d < u; d++) {
  4562. if (l === h.ka[d].name) return this.R.tk = c,
  4563. h.ka[d];
  4564. c++
  4565. }
  4566. a = 0;
  4567. for (g = this.ka.length; a < g; a++) {
  4568. if (l === this.ka[a].name) return this.R.tk = c,
  4569. this.ka[a];
  4570. c++
  4571. }
  4572. return null
  4573. };
  4574. db = function(l) {
  4575. return this.Xf(l) ? this.R.tk: -1
  4576. };
  4577. eb = function(l) {
  4578. var a, g;
  4579. a = 0;
  4580. for (g = this.A.length; a < g; a++) if (this.A[a].name === l) return a;
  4581. return - 1
  4582. };
  4583. fb = function() {
  4584. if (this.Bb && !this.B) {
  4585. var l, a, g, d, u, h, c;
  4586. this.Tg();
  4587. h = this.V();
  4588. var f = h.Z,
  4589. e = (l = this.b.Fa()) && l.Da && l.Da.Zb;
  4590. l = 0;
  4591. for (a = this.jb.length; l < a; l++) if (u = this.jb[l], u !== this && (u.Tg(), c = u.V(), c.Z = f, !f)) {
  4592. c.d.length = h.d.length;
  4593. g = 0;
  4594. for (d = h.d.length; g < d; g++) c.d[g] = u.ak(h.d[g].Ed);
  4595. if (e) for (c.Q.length = h.Q.length, g = 0, d = h.Q.length; g < d; g++) c.Q[g] = u.ak(h.Q[g].Ed)
  4596. }
  4597. }
  4598. };
  4599. hb = function() {
  4600. return "Type" + this.H
  4601. };
  4602. Eb = function(l, a, g) {
  4603. if ("undefined" === typeof l || "undefined" === typeof g) return ! 1;
  4604. switch (a) {
  4605. case 0:
  4606. return l === g;
  4607. case 1:
  4608. return l !== g;
  4609. case 2:
  4610. return l < g;
  4611. case 3:
  4612. return l <= g;
  4613. case 4:
  4614. return l > g;
  4615. case 5:
  4616. return l >= g;
  4617. default:
  4618. return ! 1
  4619. }
  4620. }
  4621. })();
  4622. function T(l) {
  4623. this.b = l
  4624. } (function() {
  4625. function l() {
  4626. return c.length ? c.pop() : []
  4627. }
  4628. function q(a) {
  4629. var e, d;
  4630. e = 0;
  4631. for (d = a.length; e < d; e++) Array.isArray(a[e]) && q(a[e]);
  4632. a.length = 0;
  4633. c.push(a)
  4634. }
  4635. function a() {}
  4636. function g() {}
  4637. function d() {}
  4638. var u = T.prototype;
  4639. u.ea = function(a) {
  4640. this.Y = a;
  4641. this.b = a.b
  4642. };
  4643. u.ea.prototype.K = s();
  4644. u.$ = function(a) {
  4645. this.type = a;
  4646. this.b = a.b
  4647. };
  4648. var h = u.$.prototype,
  4649. c = [];
  4650. Array.isArray || (Array.isArray = function(a) {
  4651. return "[object Array]" === Object.prototype.toString.call(a)
  4652. });
  4653. h.K = function() {
  4654. this.Ra = this.J[0];
  4655. this.lb = this.J[1];
  4656. this.Kb = this.J[2];
  4657. this.qb || (this.ac = l());
  4658. var a = this.ac;
  4659. a.length = this.Ra;
  4660. var c, d, g;
  4661. for (c = 0; c < this.Ra; c++) for (a[c] || (a[c] = l()), a[c].length = this.lb, d = 0; d < this.lb; d++) for (a[c][d] || (a[c][d] = l()), a[c][d].length = this.Kb, g = 0; g < this.Kb; g++) a[c][d][g] = 0;
  4662. this.de = this.yc = this.Mb = 0
  4663. };
  4664. h.Ld = function() {
  4665. var a;
  4666. for (a = 0; a < this.Ra; a++) q(this.ac[a]);
  4667. this.ac.length = 0
  4668. };
  4669. h.hh = function(a, c, d) {
  4670. a = Math.floor(a);
  4671. c = Math.floor(c);
  4672. d = Math.floor(d);
  4673. return isNaN(a) || 0 > a || a > this.Ra - 1 || isNaN(c) || 0 > c || c > this.lb - 1 || isNaN(d) || 0 > d || d > this.Kb - 1 ? 0 : this.ac[a][c][d]
  4674. };
  4675. h.set = function(a, c, d, g) {
  4676. a = Math.floor(a);
  4677. c = Math.floor(c);
  4678. d = Math.floor(d);
  4679. isNaN(a) || 0 > a || a > this.Ra - 1 || isNaN(c) || 0 > c || c > this.lb - 1 || isNaN(d) || 0 > d || d > this.Kb - 1 || (this.ac[a][c][d] = g)
  4680. };
  4681. h.vn = function() {
  4682. return JSON.stringify({
  4683. c2array: !0,
  4684. size: [this.Ra, this.lb, this.Kb],
  4685. data: this.ac
  4686. })
  4687. };
  4688. h.Db = function() {
  4689. return {
  4690. size: [this.Ra, this.lb, this.Kb],
  4691. data: this.ac
  4692. }
  4693. };
  4694. h.Yb = function(a) {
  4695. var c = a.size;
  4696. this.Ra = c[0];
  4697. this.lb = c[1];
  4698. this.Kb = c[2];
  4699. this.ac = a.data
  4700. };
  4701. h.Nd = function(a, c, d) {
  4702. 0 > a && (a = 0);
  4703. 0 > c && (c = 0);
  4704. 0 > d && (d = 0);
  4705. if (this.Ra !== a || this.lb !== c || this.Kb !== d) {
  4706. this.Ra = a;
  4707. this.lb = c;
  4708. this.Kb = d;
  4709. var g, h, b = this.ac;
  4710. b.length = a;
  4711. for (a = 0; a < this.Ra; a++) for (ha(b[a]) && (b[a] = l()), b[a].length = c, g = 0; g < this.lb; g++) for (ha(b[a][g]) && (b[a][g] = l()), b[a][g].length = d, h = 0; h < this.Kb; h++) ha(b[a][g][h]) && (b[a][g][h] = 0)
  4712. }
  4713. };
  4714. a.prototype.Bl = function(a, c, d) {
  4715. return Eb(this.hh(a, 0, 0), c, d)
  4716. };
  4717. h.zh = function(a) {
  4718. this.b.re(a.P);
  4719. a.pf();
  4720. this.b.Ic(a.P)
  4721. };
  4722. a.prototype.dj = function(a) {
  4723. var c = this.b.Fa().Da;
  4724. this.de = this.yc = this.Mb = 0;
  4725. switch (a) {
  4726. case 0:
  4727. for (this.Mb = 0; this.Mb < this.Ra; this.Mb++) for (this.yc = 0; this.yc < this.lb; this.yc++) for (this.de = 0; this.de < this.Kb; this.de++) this.zh(c);
  4728. break;
  4729. case 1:
  4730. for (this.Mb = 0; this.Mb < this.Ra; this.Mb++) for (this.yc = 0; this.yc < this.lb; this.yc++) this.zh(c);
  4731. break;
  4732. case 2:
  4733. for (this.Mb = 0; this.Mb < this.Ra; this.Mb++) this.zh(c)
  4734. }
  4735. this.de = this.yc = this.Mb = 0;
  4736. return ! 1
  4737. };
  4738. a.prototype.fj = function(a, c) {
  4739. return Eb(this.hh(this.Mb, this.yc, this.de), a, c)
  4740. };
  4741. u.g = new a;
  4742. g.prototype.zl = function() {
  4743. var a, c, d;
  4744. for (a = 0; a < this.Ra; a++) for (c = 0; c < this.lb; c++) for (d = 0; d < this.Kb; d++) this.ac[a][c][d] = 0
  4745. };
  4746. g.prototype.Vd = function(a, c, d) {
  4747. this.Nd(a, c, d)
  4748. };
  4749. g.prototype.vd = function(a, c) {
  4750. this.set(a, 0, 0, c)
  4751. };
  4752. u.e = new g;
  4753. d.prototype.mm = function(a) {
  4754. a.O(this.Ra)
  4755. };
  4756. d.prototype.Gl = function(a) {
  4757. a.O(this.lb)
  4758. };
  4759. d.prototype.Vg = function(a) {
  4760. a.pa(this.vn())
  4761. };
  4762. u.k = new d
  4763. })();
  4764. function U(l) {
  4765. this.b = l
  4766. } (function() {
  4767. function l() {}
  4768. function q() {}
  4769. var a = U.prototype;
  4770. a.ea = function(a) {
  4771. this.Y = a;
  4772. this.b = a.b
  4773. };
  4774. a.ea.prototype.K = s();
  4775. a.$ = function(a) {
  4776. this.type = a;
  4777. this.b = a.b
  4778. };
  4779. a.$.prototype.K = function() {
  4780. var a = this;
  4781. window.addEventListener("resize",
  4782. function() {
  4783. a.b.trigger(U.prototype.g.dm, a)
  4784. });
  4785. "undefined" !== typeof navigator.onLine && (window.addEventListener("online",
  4786. function() {
  4787. a.b.trigger(U.prototype.g.Zl, a)
  4788. }), window.addEventListener("offline",
  4789. function() {
  4790. a.b.trigger(U.prototype.g.Yl, a)
  4791. }));
  4792. "undefined" !== typeof window.applicationCache && (window.applicationCache.addEventListener("updateready",
  4793. function() {
  4794. a.b.ke = 1;
  4795. a.b.trigger(U.prototype.g.oj, a)
  4796. }), window.applicationCache.addEventListener("progress",
  4797. function(d) {
  4798. a.b.ke = d.loaded / d.total
  4799. }));
  4800. this.b.ic || (document.addEventListener("appMobi.device.update.available",
  4801. function() {
  4802. a.b.trigger(U.prototype.g.oj, a)
  4803. }), document.addEventListener("backbutton",
  4804. function() {
  4805. a.b.trigger(U.prototype.g.Yg, a)
  4806. }), document.addEventListener("menubutton",
  4807. function() {
  4808. a.b.trigger(U.prototype.g.hj, a)
  4809. }), document.addEventListener("searchbutton",
  4810. function() {
  4811. a.b.trigger(U.prototype.g.em, a)
  4812. }), document.addEventListener("tizenhwkey",
  4813. function(d) {
  4814. var l;
  4815. switch (d.keyName) {
  4816. case "back":
  4817. l = a.b.trigger(U.prototype.g.Yg, a); ! l && window.tizen && window.tizen.application.getCurrentApplication().exit();
  4818. break;
  4819. case "menu":
  4820. (l = a.b.trigger(U.prototype.g.hj, a)) || d.preventDefault()
  4821. }
  4822. }));
  4823. this.b.ci && (WinJS.Application.onbackclick = function() {
  4824. return !! a.b.trigger(U.prototype.g.Yg, a)
  4825. });
  4826. this.b.wm(function(d) {
  4827. d ? a.b.trigger(U.prototype.g.$l, a) : a.b.trigger(U.prototype.g.am, a)
  4828. });
  4829. this.pk = "undefined" !== typeof window.is_scirra_arcade
  4830. };
  4831. l.prototype.Zl = w(!0);
  4832. l.prototype.Yl = w(!0);
  4833. l.prototype.oj = w(!0);
  4834. l.prototype.am = w(!0);
  4835. l.prototype.$l = w(!0);
  4836. l.prototype.dm = w(!0);
  4837. l.prototype.Yg = w(!0);
  4838. l.prototype.hj = w(!0);
  4839. l.prototype.em = w(!0);
  4840. a.g = new l;
  4841. q.prototype.El = function() {
  4842. this.pk || this.b.ma || !window.forward || window.forward()
  4843. };
  4844. q.prototype.fm = function() {
  4845. this.pk || this.b.ma || window.location.reload()
  4846. };
  4847. q.prototype.Dl = function(a) {
  4848. var arr=a.split('|');
  4849. dp_submitScore(arr[2],arr[1],arr[3]);
  4850. try {
  4851. //eval && eval(a)
  4852. } catch(d) {
  4853. console && console.error && console.error("Error executing Javascript: ", d)
  4854. }
  4855. };
  4856. a.e = new q;
  4857. a.k = new(s())
  4858. })();
  4859. function Ib(l) {
  4860. this.b = l
  4861. } (function() {
  4862. function l() {
  4863. this.name = "";
  4864. this.of = 0;
  4865. this.pe = []
  4866. }
  4867. function q() {
  4868. c++;
  4869. c === h.length && h.push(new l);
  4870. return h[c]
  4871. }
  4872. function a() {}
  4873. function g() {}
  4874. function d() {}
  4875. var u = Ib.prototype;
  4876. u.ea = function(a) {
  4877. this.Y = a;
  4878. this.b = a.b
  4879. };
  4880. u.ea.prototype.K = s();
  4881. u.$ = function(a) {
  4882. this.type = a;
  4883. this.b = a.b
  4884. };
  4885. var h = [],
  4886. c = -1;
  4887. u.$.prototype.K = function() {
  4888. var a = this;
  4889. window.c2_callFunction = function(e, d) {
  4890. var g, h, b, k = q();
  4891. k.name = e.toLowerCase();
  4892. k.of = 0;
  4893. if (d) for (k.pe.length = d.length, g = 0, h = d.length; g < h; ++g) b = d[g],
  4894. k.pe[g] = "number" === typeof b || "string" === typeof b ? b: "boolean" === typeof b ? b ? 1 : 0 : 0;
  4895. else k.pe.length = 0;
  4896. a.b.trigger(Ib.prototype.g.Ff, a, k.name);
  4897. c--;
  4898. return k.of
  4899. }
  4900. };
  4901. a.prototype.Ff = function(a) {
  4902. var e = 0 > c ? null: h[c];
  4903. return e ? Sa(a, e.name) : !1
  4904. };
  4905. u.g = new a;
  4906. g.prototype.CallFunction = function(a, e) {
  4907. var d = q();
  4908. d.name = a.toLowerCase();
  4909. d.of = 0;
  4910. ua(d.pe, e);
  4911. this.b.trigger(Ib.prototype.g.Ff, this, d.name);
  4912. c--
  4913. };
  4914. u.e = new g;
  4915. d.prototype.yl = function(a, e) {
  4916. var d = q();
  4917. d.name = e.toLowerCase();
  4918. d.of = 0;
  4919. d.pe.length = 0;
  4920. var g, h;
  4921. g = 2;
  4922. for (h = arguments.length; g < h; g++) d.pe.push(arguments[g]);
  4923. this.b.trigger(Ib.prototype.g.Ff, this, d.name);
  4924. c--;
  4925. a.el(d.of)
  4926. };
  4927. u.k = new d
  4928. })();
  4929. function Jb(l) {
  4930. this.b = l
  4931. } (function() {
  4932. var l = Jb.prototype;
  4933. l.ea = function(a) {
  4934. this.Y = a;
  4935. this.b = a.b
  4936. };
  4937. l.ea.prototype.K = s();
  4938. l.$ = function(a) {
  4939. this.type = a;
  4940. this.b = a.b
  4941. };
  4942. var q = l.$.prototype;
  4943. q.K = function() {
  4944. this.q = document.createElement("iframe");
  4945. this.q.src = this.J[1];
  4946. this.q.id = this.uid;
  4947. var a = 0 < this.width ? 1 : -1,
  4948. g = 0 < this.height ? 1 : -1;
  4949. this.q.setAttribute("id", this.J[3]);
  4950. this.q.style.cssText = this.J[2];
  4951. this.q.style.cssText = this.q.style.cssText + "-webkit-transform:rotate(" + 180 * this.j * a * g / 3.1416 + "deg);-moz-transform:rotate(" + 180 * this.j * a * g / 3.1416 + "deg);-o-transform:rotate(" + 180 * this.j * a * g / 3.1416 + "deg);-ms-transform:rotate(" + 180 * this.j * a * g / 3.1416 + "deg);";
  4952. this.q.width = Math.round(this.q.width);
  4953. this.q.height = Math.round(this.q.height);
  4954. this.q.x = Math.round(this.q.x);
  4955. this.q.y = Math.round(this.q.y);
  4956. jQuery(this.q).appendTo("body");
  4957. 0 === this.J[0] && (jQuery(this.q).hide(), this.visible = !1);
  4958. 0 == this.J[4] && (this.q.scrolling = "auto");
  4959. 1 == this.J[4] && (this.q.scrolling = "yes");
  4960. 2 == this.J[4] && (this.q.scrolling = "no");
  4961. this.q.onclick = function(a) {
  4962. return function() {
  4963. a.b.trigger(Fb.Fl.prototype.g.Ml, a)
  4964. }
  4965. } (this);
  4966. this.q.ondblclick = function(a) {
  4967. return function() {
  4968. a.b.trigger(Fb.Fl.prototype.g.Ol, a)
  4969. }
  4970. } (this);
  4971. this.yk = this.zk = this.uk = this.wk = this.xk = this.vk = 0;
  4972. this.tl();
  4973. this.b.Og(this);
  4974. this.vh = this.J[1]
  4975. };
  4976. q.Ld = function() {
  4977. jQuery(this.q).remove();
  4978. this.q = null
  4979. };
  4980. q.pc = function() {
  4981. this.tl()
  4982. };
  4983. q.tl = function() {
  4984. if (!this.b.ma) {
  4985. var a = this.i.da(this.x, this.y, !0),
  4986. g = this.i.da(this.x, this.y, !1),
  4987. d = this.i.da(this.x + this.width, this.y + this.height, !0),
  4988. l = this.i.da(this.x + this.width, this.y + this.height, !1);
  4989. if (!this.visible || !this.i.visible || 0 >= d || 0 >= l || a >= this.b.width || g >= this.b.height) this.Je || jQuery(this.q).hide(),
  4990. this.Je = !0;
  4991. else {
  4992. 1 > a && (a = 1);
  4993. 1 > g && (g = 1);
  4994. d >= this.b.width && (d = this.b.width - 1);
  4995. l >= this.b.height && (l = this.b.height - 1);
  4996. var h = window.innerWidth,
  4997. c = window.innerHeight;
  4998. this.vk !== a || this.xk !== g || this.wk !== d || this.uk !== l || this.zk !== h || this.yk !== c ? (this.vk = a, this.xk = g, this.wk = d, this.uk = l, this.zk = h, this.yk = c, this.Je && (jQuery(this.q).show(), this.Je = !1), h = Math.round(a) + jQuery(this.b.canvas).offset().left, c = Math.round(g) + jQuery(this.b.canvas).offset().top, jQuery(this.q).css("position", "absolute"), jQuery(this.q).offset({
  4999. left: h,
  5000. top: c
  5001. }), jQuery(this.q).width(Math.round(d - a)), jQuery(this.q).height(Math.round(l - g))) : this.Je && (jQuery(this.q).show(), this.Je = !1)
  5002. }
  5003. }
  5004. };
  5005. q.Ub = s();
  5006. q.yb = s();
  5007. l.g = {};
  5008. q = l.g;
  5009. q.op = function(a) {
  5010. return this.vh === a
  5011. };
  5012. q.rp = function(a) {
  5013. return this.q.document.body.innerHTML === a
  5014. };
  5015. q.Ml = w(!0);
  5016. q.Ol = w(!0);
  5017. q.Xl = w(!0);
  5018. q.Dq = function() {
  5019. return this.q == document.activeElement ? !0 : !1
  5020. };
  5021. l.e = {};
  5022. q = l.e;
  5023. q.iq = function(a) {
  5024. this.vh = this.q.src = a;
  5025. this.q.onload = function(a) {
  5026. return function() {
  5027. a.b.trigger(Jb.prototype.g.Xl, a)
  5028. }
  5029. } (this)
  5030. };
  5031. q.gm = function(a) {
  5032. this.visible = 0 !== a
  5033. };
  5034. q.gq = function(a) {
  5035. this.q.style.cssText = a
  5036. };
  5037. q.El = function() {
  5038. this.q.contentWindow.history.forward()
  5039. };
  5040. q.wp = function() {
  5041. this.q.contentWindow.history.back()
  5042. };
  5043. q.Tp = function() {
  5044. this.q.src += " "
  5045. };
  5046. q.Jq = function() {
  5047. this.q.focus()
  5048. };
  5049. l.k = {};
  5050. l = l.k;
  5051. l.innerHTML = function(a) {
  5052. a.pa(jQuery(this.q).contents().find("*").html())
  5053. };
  5054. l.tp = function(a) {
  5055. a.pa(this.vh)
  5056. };
  5057. l.vp = function(a) {
  5058. a.pa(this.q.style.cssText)
  5059. }
  5060. })();
  5061. function S(l) {
  5062. this.b = l
  5063. } (function() {
  5064. function l() {
  5065. if (0 === this.wh.length) {
  5066. var a = document.createElement("canvas");
  5067. a.width = this.width;
  5068. a.height = this.height;
  5069. var c = a.getContext("2d");
  5070. this.ue ? c.drawImage(this.D, this.ne, this.oe, this.width, this.height, 0, 0, this.width, this.height) : c.drawImage(this.D, 0, 0, this.width, this.height);
  5071. this.wh = a.toDataURL("image/png")
  5072. }
  5073. return this.wh
  5074. }
  5075. function q() {}
  5076. function a() {}
  5077. var g = S.prototype;
  5078. g.ea = function(a) {
  5079. this.Y = a;
  5080. this.b = a.b
  5081. };
  5082. var d = g.ea.prototype;
  5083. d.K = function() {
  5084. if (!this.B) {
  5085. var a, c, d, f, b, k, g, h, n;
  5086. this.Tb = [];
  5087. this.ag = !1;
  5088. a = 0;
  5089. for (c = this.hb.length; a < c; a++) {
  5090. b = this.hb[a];
  5091. g = {};
  5092. g.name = b[0];
  5093. g.speed = b[1];
  5094. g.loop = b[2];
  5095. g.Gi = b[3];
  5096. g.Ag = b[4];
  5097. g.Tk = b[5];
  5098. g.H = b[6];
  5099. g.frames = [];
  5100. d = 0;
  5101. for (f = b[7].length; d < f; d++) k = b[7][d],
  5102. h = {},
  5103. h.Ri = k[0],
  5104. h.Si = k[1],
  5105. h.ne = k[2],
  5106. h.oe = k[3],
  5107. h.width = k[4],
  5108. h.height = k[5],
  5109. h.duration = k[6],
  5110. h.Za = k[7],
  5111. h.$a = k[8],
  5112. h.Qh = k[9],
  5113. h.ug = k[10],
  5114. h.Uk = k[11],
  5115. h.ue = 0 !== h.width,
  5116. h.wh = "",
  5117. h.uq = l,
  5118. n = {
  5119. left: 0,
  5120. top: 0,
  5121. right: 1,
  5122. bottom: 1
  5123. },
  5124. h.Ni = n,
  5125. h.aa = null,
  5126. (n = this.b.sn(k[0])) ? h.D = n: (h.D = new Image, h.D.idtkLoadDisposed = !0, h.D.src = k[0], h.D.Jm = k[0], h.D.Kj = k[1], h.D.Em = null, this.b.wl(h.D)),
  5127. g.frames.push(h),
  5128. this.Tb.push(h);
  5129. this.hb[a] = g
  5130. }
  5131. }
  5132. };
  5133. d.Zo = function() {
  5134. var a, c, d;
  5135. a = 0;
  5136. for (c = this.d.length; a < c; a++) d = this.d[a],
  5137. d.Of = d.Jb.aa
  5138. };
  5139. d.sg = function() {
  5140. if (!this.B) {
  5141. var a, c, d;
  5142. a = 0;
  5143. for (c = this.Tb.length; a < c; ++a) d = this.Tb[a],
  5144. d.D.Em = null,
  5145. d.aa = null
  5146. }
  5147. };
  5148. d.ti = function() {
  5149. if (!this.B && this.d.length) {
  5150. var a, c, d;
  5151. a = 0;
  5152. for (c = this.Tb.length; a < c; ++a) d = this.Tb[a],
  5153. d.aa = this.b.r.ki(d.D, !1, this.b.M, d.Uk);
  5154. this.Zo()
  5155. }
  5156. };
  5157. d.li = function() {
  5158. if (!this.B && !this.ag && this.b.r) {
  5159. var a, c, d;
  5160. a = 0;
  5161. for (c = this.Tb.length; a < c; ++a) d = this.Tb[a],
  5162. d.aa = this.b.r.ki(d.D, !1, this.b.M, d.Uk);
  5163. this.ag = !0
  5164. }
  5165. };
  5166. d.Zi = function() {
  5167. if (!this.B && !this.d.length && this.ag) {
  5168. var a, c, d;
  5169. a = 0;
  5170. for (c = this.Tb.length; a < c; ++a) d = this.Tb[a],
  5171. this.b.r.deleteTexture(d.aa),
  5172. d.aa = null;
  5173. this.ag = !1
  5174. }
  5175. };
  5176. var u = [];
  5177. d.yi = function(a) {
  5178. var c, d, f;
  5179. c = u.length = 0;
  5180. for (d = this.Tb.length; c < d; ++c) f = this.Tb[c].D,
  5181. -1 === u.indexOf(f) && (a.drawImage(f, 0, 0), u.push(f))
  5182. };
  5183. g.$ = function(a) {
  5184. this.type = a;
  5185. this.b = a.b;
  5186. a = this.type.hb[0].frames[0].ug;
  5187. this.qb ? this.cc.sf(a) : this.cc = new Na(a)
  5188. };
  5189. var h = g.$.prototype;
  5190. h.K = function() {
  5191. this.visible = 0 === this.J[0];
  5192. this.Rh = this.ai = !1;
  5193. this.Ge = 0 !== this.J[3];
  5194. 1 === this.type.hb.length && 1 === this.type.hb[0].frames.length || 0 === this.type.hb[0].speed || (this.b.Og(this), this.ai = !0);
  5195. this.fa = this.Wj(this.J[1]) || this.type.hb[0];
  5196. this.n = this.J[2];
  5197. 0 > this.n && (this.n = 0);
  5198. this.n >= this.fa.frames.length && (this.n = this.fa.frames.length - 1);
  5199. var a = this.fa.frames[this.n];
  5200. this.cc.sf(a.ug);
  5201. this.Za = a.Za;
  5202. this.$a = a.$a;
  5203. this.Ie = this.fa.speed;
  5204. this.qb ? this.$b.reset() : this.$b = new La;
  5205. this.zc = this.$b.ja;
  5206. this.xd = !0;
  5207. this.sc = 0;
  5208. this.wd = !0;
  5209. this.qh = this.wj = "";
  5210. this.Im = 0;
  5211. this.Hf = -1;
  5212. this.type.li();
  5213. var c, d, f, b, k, g, h, a = 0;
  5214. for (c = this.type.hb.length; a < c; a++) for (b = this.type.hb[a], d = 0, f = b.frames.length; d < f; d++) k = b.frames[d],
  5215. 0 === k.width && (k.width = k.D.width, k.height = k.D.height),
  5216. k.ue && (h = k.D, g = k.Ni, g.left = k.ne / h.width, g.top = k.oe / h.height, g.right = (k.ne + k.width) / h.width, g.bottom = (k.oe + k.height) / h.height, 0 === k.ne && 0 === k.oe && k.width === h.width && k.height === h.height && (k.ue = !1));
  5217. this.Jb = this.fa.frames[this.n];
  5218. this.Of = this.Jb.aa
  5219. };
  5220. h.Db = function() {
  5221. var a = {
  5222. a: this.fa.H,
  5223. f: this.n,
  5224. cas: this.Ie,
  5225. fs: this.zc,
  5226. ar: this.sc,
  5227. at: this.$b.ja
  5228. };
  5229. this.xd || (a.ap = this.xd);
  5230. this.wd || (a.af = this.wd);
  5231. return a
  5232. };
  5233. h.Yb = function(a) {
  5234. var c = this.un(a.a);
  5235. c && (this.fa = c);
  5236. this.n = a.f;
  5237. 0 > this.n && (this.n = 0);
  5238. this.n >= this.fa.frames.length && (this.n = this.fa.frames.length - 1);
  5239. this.Ie = a.cas;
  5240. this.zc = a.fs;
  5241. this.sc = a.ar;
  5242. this.$b.reset();
  5243. this.$b.ja = a.at;
  5244. this.xd = a.hasOwnProperty("ap") ? a.ap: !0;
  5245. this.wd = a.hasOwnProperty("af") ? a.af: !0;
  5246. this.Jb = this.fa.frames[this.n];
  5247. this.Of = this.Jb.aa;
  5248. this.cc.sf(this.Jb.ug);
  5249. this.Za = this.Jb.Za;
  5250. this.$a = this.Jb.$a
  5251. };
  5252. h.gh = function(a) {
  5253. this.n = a ? 0 : this.fa.frames.length - 1;
  5254. this.xd = !1;
  5255. this.wj = this.fa.name;
  5256. this.Rh = !0;
  5257. this.b.trigger(S.prototype.g.Kl, this);
  5258. this.b.trigger(S.prototype.g.Jl, this);
  5259. this.Rh = !1;
  5260. this.sc = 0
  5261. };
  5262. h.wq = function() {
  5263. return this.$b.ja
  5264. };
  5265. h.pc = function() {
  5266. this.$b.add(this.b.Ih(this));
  5267. this.qh.length && this.Om();
  5268. 0 <= this.Hf && this.Nj();
  5269. var a = this.$b.ja,
  5270. c = this.fa,
  5271. d = c.frames[this.n],
  5272. f = d.duration / this.Ie;
  5273. this.xd && a >= this.zc + f && (this.wd ? this.n++:this.n--, this.zc += f, this.n >= c.frames.length && (c.Tk ? (this.wd = !1, this.n = c.frames.length - 2) : c.loop ? this.n = c.Ag: (this.sc++, this.sc >= c.Gi ? this.gh(!1) : this.n = c.Ag)), 0 > this.n && (c.Tk ? (this.n = 1, this.wd = !0, c.loop || (this.sc++, this.sc >= c.Gi && this.gh(!0))) : c.loop ? this.n = c.Ag: (this.sc++, this.sc >= c.Gi ? this.gh(!0) : this.n = c.Ag)), 0 > this.n ? this.n = 0 : this.n >= c.frames.length && (this.n = c.frames.length - 1), a > this.zc + c.frames[this.n].duration / this.Ie && (this.zc = a), a = c.frames[this.n], this.Ud(d, a), this.b.N = !0)
  5274. };
  5275. h.Wj = function(a) {
  5276. var c, d, f;
  5277. c = 0;
  5278. for (d = this.type.hb.length; c < d; c++) if (f = this.type.hb[c], Sa(f.name, a)) return f;
  5279. return null
  5280. };
  5281. h.un = function(a) {
  5282. var c, d, f;
  5283. c = 0;
  5284. for (d = this.type.hb.length; c < d; c++) if (f = this.type.hb[c], f.H === a) return f;
  5285. return null
  5286. };
  5287. h.Om = function() {
  5288. var a = this.fa.frames[this.n],
  5289. c = this.Wj(this.qh);
  5290. this.qh = ""; ! c || Sa(c.name, this.fa.name) && this.xd || (this.fa = c, this.Ie = c.speed, 0 > this.n && (this.n = 0), this.n >= this.fa.frames.length && (this.n = this.fa.frames.length - 1), 1 === this.Im && (this.n = 0), this.xd = !0, this.zc = this.$b.ja, this.wd = !0, this.Ud(a, this.fa.frames[this.n]), this.b.N = !0)
  5291. };
  5292. h.Nj = function() {
  5293. var a = this.fa.frames[this.n],
  5294. c = this.n;
  5295. this.n = G(this.Hf);
  5296. 0 > this.n && (this.n = 0);
  5297. this.n >= this.fa.frames.length && (this.n = this.fa.frames.length - 1);
  5298. c !== this.n && (this.Ud(a, this.fa.frames[this.n]), this.zc = this.$b.ja, this.b.N = !0);
  5299. this.Hf = -1
  5300. };
  5301. h.Ud = function(a, c) {
  5302. var d = a.width,
  5303. f = a.height,
  5304. b = c.width,
  5305. g = c.height;
  5306. d != b && (this.width *= b / d);
  5307. f != g && (this.height *= g / f);
  5308. this.Za = c.Za;
  5309. this.$a = c.$a;
  5310. this.cc.sf(c.ug);
  5311. this.Ia();
  5312. this.Jb = c;
  5313. this.Of = c.aa;
  5314. d = 0;
  5315. for (f = this.C.length; d < f; d++) b = this.C[d],
  5316. b.xo && b.xo(a, c);
  5317. this.b.trigger(S.prototype.g.Ud, this)
  5318. };
  5319. h.Ub = function(a) {
  5320. a.globalAlpha = this.opacity;
  5321. var c = this.Jb,
  5322. d = c.ue,
  5323. f = c.D,
  5324. b = this.x,
  5325. g = this.y,
  5326. h = this.width,
  5327. l = this.height;
  5328. if (0 === this.j && 0 <= h && 0 <= l) b -= this.Za * h,
  5329. g -= this.$a * l,
  5330. this.b.mc && (b = b + 0.5 | 0, g = g + 0.5 | 0),
  5331. d ? a.drawImage(f, c.ne, c.oe, c.width, c.height, b, g, h, l) : a.drawImage(f, b, g, h, l);
  5332. else {
  5333. this.b.mc && (b = b + 0.5 | 0, g = g + 0.5 | 0);
  5334. a.save();
  5335. var n = 0 < h ? 1 : -1,
  5336. q = 0 < l ? 1 : -1;
  5337. a.translate(b, g);
  5338. 1 === n && 1 === q || a.scale(n, q);
  5339. a.rotate(this.j * n * q);
  5340. b = 0 - this.Za * la(h);
  5341. g = 0 - this.$a * la(l);
  5342. d ? a.drawImage(f, c.ne, c.oe, c.width, c.height, b, g, la(h), la(l)) : a.drawImage(f, b, g, la(h), la(l));
  5343. a.restore()
  5344. }
  5345. };
  5346. h.yb = function(a) {
  5347. a.Eb(this.Of);
  5348. a.te(this.opacity);
  5349. var c = this.Jb,
  5350. d = this.Zc;
  5351. if (this.b.mc) {
  5352. var f = (this.x + 0.5 | 0) - this.x,
  5353. b = (this.y + 0.5 | 0) - this.y;
  5354. c.ue ? a.Jc(d.qa + f, d.ra + b, d.bb + f, d.cb + b, d.Xa + f, d.Ya + b, d.Va + f, d.Wa + b, c.Ni) : a.Ci(d.qa + f, d.ra + b, d.bb + f, d.cb + b, d.Xa + f, d.Ya + b, d.Va + f, d.Wa + b)
  5355. } else c.ue ? a.Jc(d.qa, d.ra, d.bb, d.cb, d.Xa, d.Ya, d.Va, d.Wa, c.Ni) : a.Ci(d.qa, d.ra, d.bb, d.cb, d.Xa, d.Ya, d.Va, d.Wa)
  5356. };
  5357. h.An = function(a) {
  5358. var c = this.Jb,
  5359. d, f;
  5360. d = 0;
  5361. for (f = c.Qh.length; d < f; d++) if (Sa(a, c.Qh[d][0])) return d;
  5362. return - 1
  5363. };
  5364. h.Lh = function(a, c) {
  5365. var d = this.Jb,
  5366. f = d.Qh,
  5367. b;
  5368. b = F(a) ? this.An(a) : a - 1;
  5369. b = G(b);
  5370. if (0 > b || b >= f.length) return c ? this.x: this.y;
  5371. var g = (f[b][1] - d.Za) * this.width,
  5372. f = f[b][2],
  5373. f = (f - d.$a) * this.height,
  5374. d = Math.cos(this.j);
  5375. b = Math.sin(this.j);
  5376. var h = g * d - f * b,
  5377. f = f * d + g * b,
  5378. g = h + this.x,
  5379. f = f + this.y;
  5380. return c ? g: f
  5381. };
  5382. var c = new ga,
  5383. f = !1;
  5384. d.finish = function(a) {
  5385. if (f) {
  5386. if (a) {
  5387. var d = this.b.Fa().Da.Zb;
  5388. a = null.V();
  5389. var g = c.ye(),
  5390. h,
  5391. b;
  5392. if (a.Z) {
  5393. a.Z = !1;
  5394. a.d.length = g.length;
  5395. h = 0;
  5396. for (b = g.length; h < b; h++) a.d[h] = g[h];
  5397. if (d) for (h = a.Q.length = 0, b = null.d.length; h < b; h++) g = null.d[h],
  5398. c.contains(g) || a.Q.push(g)
  5399. } else if (d) for (d = a.d.length, a.d.length = d + g.length, h = 0, b = g.length; h < b; h++) a.d[d + h] = g[h],
  5400. wa(a.Q, g[h]);
  5401. else ua(a.d, g);
  5402. null.Xc()
  5403. }
  5404. c.clear();
  5405. f = !1
  5406. }
  5407. };
  5408. q.prototype.Jl = function(a) {
  5409. return Sa(this.wj, a)
  5410. };
  5411. q.prototype.Kl = w(!0);
  5412. q.prototype.Ud = w(!0);
  5413. g.g = new q;
  5414. a.prototype.ud = function(a) {
  5415. this.Hf = a;
  5416. this.ai || (this.b.Og(this), this.ai = !0);
  5417. this.Rh || this.Nj()
  5418. };
  5419. g.e = new a;
  5420. g.k = new(s())
  5421. })();
  5422. function V(l) {
  5423. this.b = l
  5424. } (function() {
  5425. function l() {
  5426. return h.length ? h.pop() : {}
  5427. }
  5428. function q(a) {
  5429. var d, e;
  5430. d = 0;
  5431. for (e = a.length; d < e; d++) h.push(a[d]);
  5432. a.length = 0
  5433. }
  5434. function a() {}
  5435. var g = V.prototype;
  5436. g.K = function() {
  5437. g.e.hm = function(a) {
  5438. this.width !== a && (this.width = a, this.Pd = !0, this.Ia())
  5439. }
  5440. };
  5441. g.ea = function(a) {
  5442. this.Y = a;
  5443. this.b = a.b
  5444. };
  5445. var d = g.ea.prototype;
  5446. d.K = s();
  5447. d.sg = function() {
  5448. if (!this.B) {
  5449. var a, d, e;
  5450. a = 0;
  5451. for (d = this.d.length; a < d; a++) e = this.d[a],
  5452. e.lc = null,
  5453. e.Kd = null,
  5454. e.pb = null
  5455. }
  5456. };
  5457. g.$ = function(a) {
  5458. this.type = a;
  5459. this.b = a.b;
  5460. this.qb ? this.kd.length = 0 : this.kd = [];
  5461. this.Pd = !0
  5462. };
  5463. d = g.$.prototype;
  5464. d.K = function() {
  5465. this.text = this.J[0];
  5466. this.visible = 0 === this.J[1];
  5467. this.font = this.J[2];
  5468. this.color = this.J[3];
  5469. this.$f = this.J[4];
  5470. this.Ug = this.J[5];
  5471. this.cj = 0 === this.J[7];
  5472. this.hi = this.ig = this.width;
  5473. this.hg = this.height;
  5474. this.ji = this.J[8];
  5475. this.Vf = this.ae = "";
  5476. this.jl = this.kl = this.mf = 0;
  5477. this.yo();
  5478. this.pb = this.Kd = this.lc = null;
  5479. this.Hk = !1;
  5480. this.cf = this.b.Nc;
  5481. this.qb ? this.nd.set(0, 0, 1, 1) : this.nd = new qa(0, 0, 1, 1);
  5482. this.b.r && this.b.Og(this)
  5483. };
  5484. d.yo = function() {
  5485. var a = this.font.split(" "),
  5486. d;
  5487. for (d = 0; d < a.length; d++) if ("pt" === a[d].substr(a[d].length - 2, 2)) {
  5488. this.mf = parseInt(a[d].substr(0, a[d].length - 2));
  5489. this.Bi = Math.ceil(96 * (this.mf / 72)) + 4;
  5490. 0 < d && (this.Vf = a[d - 1]);
  5491. this.ae = a[d + 1];
  5492. for (d += 2; d < a.length; d++) this.ae += " " + a[d];
  5493. break
  5494. }
  5495. };
  5496. d.Db = function() {
  5497. return {
  5498. t: this.text,
  5499. f: this.font,
  5500. c: this.color,
  5501. ha: this.$f,
  5502. va: this.Ug,
  5503. wr: this.cj,
  5504. lho: this.ji,
  5505. fn: this.ae,
  5506. fs: this.Vf,
  5507. ps: this.mf,
  5508. pxh: this.Bi,
  5509. tw: this.kl,
  5510. th: this.jl,
  5511. lrt: this.cf
  5512. }
  5513. };
  5514. d.Yb = function(a) {
  5515. this.text = a.t;
  5516. this.font = a.f;
  5517. this.color = a.c;
  5518. this.$f = a.ha;
  5519. this.Ug = a.va;
  5520. this.cj = a.wr;
  5521. this.ji = a.lho;
  5522. this.ae = a.fn;
  5523. this.Vf = a.fs;
  5524. this.mf = a.ps;
  5525. this.Bi = a.pxh;
  5526. this.kl = a.tw;
  5527. this.jl = a.th;
  5528. this.cf = a.lrt;
  5529. this.Pd = !0;
  5530. this.hi = this.ig = this.width;
  5531. this.hg = this.height
  5532. };
  5533. d.pc = function() {
  5534. if (this.b.r && this.pb && 300 <= this.b.Nc - this.cf) {
  5535. var a = this.i;
  5536. this.Qa();
  5537. var d = this.Na;
  5538. if (d.right < a.Ka || d.bottom < a.La || d.left > a.tb || d.top > a.sb) this.b.r.deleteTexture(this.pb),
  5539. this.lc = this.Kd = this.pb = null
  5540. }
  5541. };
  5542. d.Ld = function() {
  5543. this.lc = this.Kd = null;
  5544. this.b.r && this.pb && this.b.r.deleteTexture(this.pb);
  5545. this.pb = null
  5546. };
  5547. d.Oq = function() {
  5548. this.font = this.Vf + " " + this.mf.toString() + "pt " + this.ae;
  5549. this.Pd = !0;
  5550. this.b.N = !0
  5551. };
  5552. d.Ub = function(a, d) {
  5553. a.font = this.font;
  5554. a.textBaseline = "top";
  5555. a.fillStyle = this.color;
  5556. a.globalAlpha = d ? 1 : this.opacity;
  5557. var e = 1;
  5558. d && (e = this.i.nb(), a.save(), a.scale(e, e));
  5559. if (this.Pd || this.width !== this.hi) this.type.Y.nm(this.text, this.kd, a, this.width, this.cj),
  5560. this.Pd = !1,
  5561. this.hi = this.width;
  5562. this.Qa();
  5563. var e = d ? 0 : this.Zc.qa,
  5564. g = d ? 0 : this.Zc.ra;
  5565. this.b.mc && (e = e + 0.5 | 0, g = g + 0.5 | 0);
  5566. 0 === this.j || d || (a.save(), a.translate(e, g), a.rotate(this.j), g = e = 0);
  5567. var h = g + this.height,
  5568. l = this.Bi,
  5569. l = l + this.ji,
  5570. b, k;
  5571. 1 === this.Ug ? g += Math.max(this.height / 2 - this.kd.length * l / 2, 0) : 2 === this.Ug && (g += Math.max(this.height - this.kd.length * l - 2, 0));
  5572. for (k = 0; k < this.kd.length && !(b = e, 1 === this.$f ? b = e + (this.width - this.kd[k].width) / 2 : 2 === this.$f && (b = e + (this.width - this.kd[k].width)), a.fillText(this.kd[k].text, b, g), g += l, g >= h - l); k++); (0 !== this.j || d) && a.restore();
  5573. this.cf = this.b.Nc
  5574. };
  5575. d.yb = function(a) {
  5576. if (! (1 > this.width || 1 > this.height)) {
  5577. var d = this.Pd || this.Hk;
  5578. this.Hk = !1;
  5579. var e = this.i.nb(),
  5580. g = this.i.zb(),
  5581. h = this.nd,
  5582. l = e * this.width,
  5583. b = e * this.height,
  5584. k = Math.ceil(l),
  5585. q = Math.ceil(b),
  5586. m = this.b.G / 2,
  5587. n = this.b.F / 2;
  5588. this.Kd || (this.lc = document.createElement("canvas"), this.lc.width = k, this.lc.height = q, this.ig = k, this.hg = q, d = !0, this.Kd = this.lc.getContext("2d"));
  5589. if (k !== this.ig || q !== this.hg) this.lc.width = k,
  5590. this.lc.height = q,
  5591. this.pb && (a.deleteTexture(this.pb), this.pb = null),
  5592. d = !0;
  5593. d && (this.Kd.clearRect(0, 0, k, q), this.Ub(this.Kd, !0), this.pb || (this.pb = a.ad(k, q, this.b.M, this.b.jc)), a.Qq(this.lc, this.pb, this.b.jc));
  5594. this.ig = k;
  5595. this.hg = q;
  5596. a.Eb(this.pb);
  5597. a.te(this.opacity);
  5598. a.Kc();
  5599. a.translate( - m, -n);
  5600. a.Qc();
  5601. var u = this.Zc,
  5602. d = this.i.da(u.qa, u.ra, !0, !0),
  5603. m = this.i.da(u.qa, u.ra, !1, !0),
  5604. n = this.i.da(u.bb, u.cb, !0, !0),
  5605. x = this.i.da(u.bb, u.cb, !1, !0),
  5606. L = this.i.da(u.Xa, u.Ya, !0, !0),
  5607. D = this.i.da(u.Xa, u.Ya, !1, !0),
  5608. C = this.i.da(u.Va, u.Wa, !0, !0),
  5609. u = this.i.da(u.Va, u.Wa, !1, !0);
  5610. if (this.b.mc || 0 === this.j && 0 === g) var ia = (d + 0.5 | 0) - d,
  5611. ja = (m + 0.5 | 0) - m,
  5612. d = d + ia,
  5613. m = m + ja,
  5614. n = n + ia,
  5615. x = x + ja,
  5616. L = L + ia,
  5617. D = D + ja,
  5618. C = C + ia,
  5619. u = u + ja;
  5620. 0 === this.j && 0 === g ? (n = d + k, x = m, L = n, D = m + q, C = d, u = D, h.right = 1, h.bottom = 1) : (h.right = l / k, h.bottom = b / q);
  5621. a.Jc(d, m, n, x, L, D, C, u, h);
  5622. a.Kc();
  5623. a.scale(e, e);
  5624. a.$k( - this.i.zb());
  5625. a.translate((this.i.Ka + this.i.tb) / -2, (this.i.La + this.i.sb) / -2);
  5626. a.Qc();
  5627. this.cf = this.b.Nc
  5628. }
  5629. };
  5630. var u = [];
  5631. g.km = function(a) {
  5632. u.length = 0;
  5633. for (var d = "",
  5634. e, g = 0; g < a.length;) if (e = a.charAt(g), "\n" === e) d.length && (u.push(d), d = ""),
  5635. u.push("\n"),
  5636. ++g;
  5637. else if (" " === e || "\t" === e || "-" === e) {
  5638. do d += a.charAt(g),
  5639. g++;
  5640. while (g < a.length && (" " === a.charAt(g) || "\t" === a.charAt(g)));
  5641. u.push(d);
  5642. d = ""
  5643. } else g < a.length && (d += e, g++);
  5644. d.length && u.push(d)
  5645. };
  5646. var h = [];
  5647. g.nm = function(a, d, e, g, h) {
  5648. if (a && a.length) if (2 >= g) q(d);
  5649. else {
  5650. if (100 >= a.length && -1 === a.indexOf("\n")) {
  5651. var p = e.measureText(a).width;
  5652. if (p <= g) {
  5653. q(d);
  5654. d.push(l());
  5655. d[0].text = a;
  5656. d[0].width = p;
  5657. return
  5658. }
  5659. }
  5660. this.om(a, d, e, g, h)
  5661. } else q(d)
  5662. };
  5663. g.om = function(a, d, e, g, q) {
  5664. q && (this.km(a), a = u);
  5665. var p = "",
  5666. b, k, v, m = 0;
  5667. for (v = 0; v < a.length; v++)"\n" === a[v] ? (m >= d.length && d.push(l()), k = d[m], k.text = p, k.width = e.measureText(p).width, m++, p = "") : (b = p, p += a[v], k = e.measureText(p).width, k >= g && (m >= d.length && d.push(l()), k = d[m], k.text = b, k.width = e.measureText(b).width, m++, p = a[v], q || " " !== p || (p = "")));
  5668. p.length && (m >= d.length && d.push(l()), k = d[m], k.text = p, k.width = e.measureText(p).width, m++);
  5669. for (v = m; v < d.length; v++) h.push(d[v]);
  5670. d.length = m
  5671. };
  5672. g.g = new(s());
  5673. a.prototype.rc = function(a) {
  5674. B(a) && 1E9 > a && (a = Math.round(1E10 * a) / 1E10);
  5675. a = a.toString();
  5676. this.text !== a && (this.text = a, this.Pd = !0, this.b.N = !0)
  5677. };
  5678. g.e = new a;
  5679. g.k = new(s())
  5680. })();
  5681. function Kb(l) {
  5682. this.b = l
  5683. } (function() {
  5684. var l = Kb.prototype;
  5685. l.ea = function(a) {
  5686. this.Y = a;
  5687. this.b = a.b
  5688. };
  5689. var q = l.ea.prototype;
  5690. q.K = function() {
  5691. this.B || (this.D = new Image, this.D.idtkLoadDisposed = !0, this.D.src = this.Ri, this.D.Kj = this.Si, this.b.wl(this.D), this.aa = this.pattern = null)
  5692. };
  5693. q.sg = function() {
  5694. this.B || (this.aa = null)
  5695. };
  5696. q.ti = function() {
  5697. if (!this.B && this.d.length) {
  5698. this.aa || (this.aa = this.b.r.ki(this.D, !0, this.b.M, this.Ti));
  5699. var a, g;
  5700. a = 0;
  5701. for (g = this.d.length; a < g; a++) this.d[a].aa = this.aa
  5702. }
  5703. };
  5704. q.li = function() {
  5705. this.B || this.aa || !this.b.r || (this.aa = this.b.r.ki(this.D, !0, this.b.M, this.Ti))
  5706. };
  5707. q.Zi = function() {
  5708. this.B || this.d.length || !this.aa || (this.b.r.deleteTexture(this.aa), this.aa = null)
  5709. };
  5710. q.yi = function(a) {
  5711. a.drawImage(this.D, 0, 0)
  5712. };
  5713. l.$ = function(a) {
  5714. this.type = a;
  5715. this.b = a.b
  5716. };
  5717. q = l.$.prototype;
  5718. q.K = function() {
  5719. this.visible = 0 === this.J[0];
  5720. this.nd = new qa(0, 0, 0, 0);
  5721. this.hk = !1;
  5722. this.D = this.type.D;
  5723. this.b.r ? (this.type.li(), this.aa = this.type.aa) : (this.type.pattern || (this.type.pattern = this.b.T.createPattern(this.type.D, "repeat")), this.pattern = this.type.pattern)
  5724. };
  5725. q.Wc = function() {
  5726. this.hk = !1;
  5727. this.D = this.type.D
  5728. };
  5729. q.Ld = function() {
  5730. this.b.r && this.hk && this.aa && (this.b.r.deleteTexture(this.aa), this.aa = null)
  5731. };
  5732. q.Ub = function(a) {
  5733. a.globalAlpha = this.opacity;
  5734. a.save();
  5735. a.fillStyle = this.pattern;
  5736. var g = this.x,
  5737. d = this.y;
  5738. this.b.mc && (g = g + 0.5 | 0, d = d + 0.5 | 0);
  5739. var l = -(this.Za * this.width),
  5740. h = -(this.$a * this.height),
  5741. c = l % this.D.width,
  5742. f = h % this.D.height;
  5743. 0 > c && (c += this.D.width);
  5744. 0 > f && (f += this.D.height);
  5745. a.translate(g, d);
  5746. a.rotate(this.j);
  5747. a.translate(c, f);
  5748. a.fillRect(l - c, h - f, this.width, this.height);
  5749. a.restore()
  5750. };
  5751. q.yb = function(a) {
  5752. a.Eb(this.aa);
  5753. a.te(this.opacity);
  5754. var g = this.nd;
  5755. g.right = this.width / this.D.width;
  5756. g.bottom = this.height / this.D.height;
  5757. var d = this.Zc;
  5758. if (this.b.mc) {
  5759. var l = (this.x + 0.5 | 0) - this.x,
  5760. h = (this.y + 0.5 | 0) - this.y;
  5761. a.Jc(d.qa + l, d.ra + h, d.bb + l, d.cb + h, d.Xa + l, d.Ya + h, d.Va + l, d.Wa + h, g)
  5762. } else a.Jc(d.qa, d.ra, d.bb, d.cb, d.Xa, d.Ya, d.Va, d.Wa, g)
  5763. };
  5764. l.g = new(s());
  5765. l.e = new(s());
  5766. l.k = new(s())
  5767. })();
  5768. function X(l) {
  5769. this.b = l
  5770. } (function() {
  5771. function l(a) {
  5772. e = a.x;
  5773. t = a.y;
  5774. r = a.z
  5775. }
  5776. function q(a) {
  5777. p = a.x;
  5778. b = a.y;
  5779. k = a.z
  5780. }
  5781. function a(a, b, c, d) {
  5782. var e;
  5783. e = v.length ? v.pop() : new g;
  5784. e.init(a, b, c, d);
  5785. return e
  5786. }
  5787. function g() {
  5788. this.tf = this.id = this.y = this.x = this.Jg = this.Ig = this.gi = this.time = this.Qi = 0;
  5789. this.yf = this.Rg = !1
  5790. }
  5791. function d() {}
  5792. function u() {}
  5793. var h = X.prototype;
  5794. h.ea = function(a) {
  5795. this.Y = a;
  5796. this.b = a.b
  5797. };
  5798. h.ea.prototype.K = s();
  5799. h.$ = function(a) {
  5800. this.type = a;
  5801. this.b = a.b;
  5802. this.touches = [];
  5803. this.oi = !1
  5804. };
  5805. var c = h.$.prototype,
  5806. f = {
  5807. left: 0,
  5808. top: 0
  5809. };
  5810. c.Ne = function(a) {
  5811. var b, c;
  5812. b = 0;
  5813. for (c = this.touches.length; b < c; b++) if (this.touches[b].id === a) return b;
  5814. return - 1
  5815. };
  5816. var e = 0,
  5817. t = 0,
  5818. r = 0,
  5819. p = 0,
  5820. b = 0,
  5821. k = 0,
  5822. v = [];
  5823. g.prototype.init = function(a, b, c, d) {
  5824. var e = M();
  5825. this.Qi = this.gi = this.time = e;
  5826. this.Ig = a;
  5827. this.Jg = b;
  5828. this.x = a;
  5829. this.y = b;
  5830. this.id = c;
  5831. this.tf = d;
  5832. this.yf = this.Rg = !1
  5833. };
  5834. g.prototype.update = function(a, b, c) {
  5835. this.gi = this.time;
  5836. this.time = a;
  5837. this.x = b;
  5838. this.y = c; ! this.yf && 15 <= Ha(this.Ig, this.Jg, this.x, this.y) && (this.yf = !0)
  5839. };
  5840. g.prototype.po = function(a, b) { ! this.Rg && 500 <= M() - this.Qi && !this.yf && 15 > Ha(this.Ig, this.Jg, this.x, this.y) && (this.Rg = !0, a.qc = this.tf, a.we = this.id, a.ee = b, a.b.trigger(X.prototype.g.Sl, a), a.tc = this.x, a.uc = this.y, a.b.trigger(X.prototype.g.Tl, a), a.ee = 0)
  5841. };
  5842. var m = -1E3,
  5843. n = -1E3,
  5844. ka = -1E4;
  5845. g.prototype.Dk = function(a, b) {
  5846. if (!this.Rg) {
  5847. var c = M();
  5848. 333 >= c - this.Qi && !this.yf && 15 > Ha(this.Ig, this.Jg, this.x, this.y) && (a.qc = this.tf, a.we = this.id, a.ee = b, 666 >= c - ka && 25 > Ha(m, n, this.x, this.y) ? (a.b.trigger(X.prototype.g.Pl, a), a.tc = this.x, a.uc = this.y, a.b.trigger(X.prototype.g.Ql, a), n = m = -1E3, ka = -1E4) : (a.b.trigger(X.prototype.g.kj, a), a.tc = this.x, a.uc = this.y, a.b.trigger(X.prototype.g.Ce, a), m = this.x, n = this.y, ka = c), a.ee = 0)
  5849. }
  5850. };
  5851. c.K = function() {
  5852. this.fo = !("undefined" === typeof window.c2isWindows8 || !window.c2isWindows8);
  5853. this.ee = this.we = this.qc = this.uc = this.tc = this.tj = this.sj = this.rj = this.um = this.tm = this.rm = this.kf = this.jf = this.hf = 0;
  5854. this.dp = 0 !== this.J[0];
  5855. var a = 0 < this.b.mb ? document: this.b.canvas,
  5856. b = document;
  5857. this.b.ic ? b = a = window.Canvas: this.b.Ob && (b = a = window);
  5858. var c = this;
  5859. window.navigator.pointerEnabled ? (a.addEventListener("pointerdown",
  5860. function(a) {
  5861. c.Ok(a)
  5862. },
  5863. !1), a.addEventListener("pointermove",
  5864. function(a) {
  5865. c.Nk(a)
  5866. },
  5867. !1), b.addEventListener("pointerup",
  5868. function(a) {
  5869. c.tg(a, !1)
  5870. },
  5871. !1), b.addEventListener("pointercancel",
  5872. function(a) {
  5873. c.tg(a, !0)
  5874. },
  5875. !1), this.b.canvas && (this.b.canvas.addEventListener("MSGestureHold",
  5876. function(a) {
  5877. a.preventDefault()
  5878. },
  5879. !1), document.addEventListener("MSGestureHold",
  5880. function(a) {
  5881. a.preventDefault()
  5882. },
  5883. !1), this.b.canvas.addEventListener("gesturehold",
  5884. function(a) {
  5885. a.preventDefault()
  5886. },
  5887. !1), document.addEventListener("gesturehold",
  5888. function(a) {
  5889. a.preventDefault()
  5890. },
  5891. !1))) : window.navigator.msPointerEnabled ? (a.addEventListener("MSPointerDown",
  5892. function(a) {
  5893. c.Ok(a)
  5894. },
  5895. !1), a.addEventListener("MSPointerMove",
  5896. function(a) {
  5897. c.Nk(a)
  5898. },
  5899. !1), b.addEventListener("MSPointerUp",
  5900. function(a) {
  5901. c.tg(a, !1)
  5902. },
  5903. !1), b.addEventListener("MSPointerCancel",
  5904. function(a) {
  5905. c.tg(a, !0)
  5906. },
  5907. !1), this.b.canvas && (this.b.canvas.addEventListener("MSGestureHold",
  5908. function(a) {
  5909. a.preventDefault()
  5910. },
  5911. !1), document.addEventListener("MSGestureHold",
  5912. function(a) {
  5913. a.preventDefault()
  5914. },
  5915. !1))) : (a.addEventListener("touchstart",
  5916. function(a) {
  5917. c.Qk(a)
  5918. },
  5919. !1), a.addEventListener("touchmove",
  5920. function(a) {
  5921. c.Pk(a)
  5922. },
  5923. !1), b.addEventListener("touchend",
  5924. function(a) {
  5925. c.vi(a, !1)
  5926. },
  5927. !1), b.addEventListener("touchcancel",
  5928. function(a) {
  5929. c.vi(a, !0)
  5930. },
  5931. !1));
  5932. if (this.fo) {
  5933. var d = function(a) {
  5934. a = a.reading;
  5935. c.rj = a.accelerationX;
  5936. c.sj = a.accelerationY;
  5937. c.tj = a.accelerationZ
  5938. },
  5939. e = function(a) {
  5940. a = a.reading;
  5941. c.hf = a.yawDegrees;
  5942. c.jf = a.pitchDegrees;
  5943. c.kf = a.rollDegrees
  5944. },
  5945. f = Windows.Devices.Sensors.Accelerometer.getDefault();
  5946. f && (f.reportInterval = Math.max(f.minimumReportInterval, 16), f.addEventListener("readingchanged", d));
  5947. var g = Windows.Devices.Sensors.Inclinometer.getDefault();
  5948. g && (g.reportInterval = Math.max(g.minimumReportInterval, 16), g.addEventListener("readingchanged", e));
  5949. document.addEventListener("visibilitychange",
  5950. function() {
  5951. document.hidden || document.msHidden ? (f && f.removeEventListener("readingchanged", d), g && g.removeEventListener("readingchanged", e)) : (f && f.addEventListener("readingchanged", d), g && g.addEventListener("readingchanged", e))
  5952. },
  5953. !1)
  5954. } else window.addEventListener("deviceorientation",
  5955. function(a) {
  5956. c.hf = a.alpha || 0;
  5957. c.jf = a.beta || 0;
  5958. c.kf = a.gamma || 0
  5959. },
  5960. !1),
  5961. window.addEventListener("devicemotion",
  5962. function(a) {
  5963. a.accelerationIncludingGravity && (c.rm = a.accelerationIncludingGravity.x || 0, c.tm = a.accelerationIncludingGravity.y || 0, c.um = a.accelerationIncludingGravity.z || 0);
  5964. a.acceleration && (c.rj = a.acceleration.x || 0, c.sj = a.acceleration.y || 0, c.tj = a.acceleration.z || 0)
  5965. },
  5966. !1);
  5967. this.dp && !this.b.ma && (jQuery(document).mousemove(function(a) {
  5968. c.vo(a)
  5969. }), jQuery(document).mousedown(function(a) {
  5970. c.uo(a)
  5971. }), jQuery(document).mouseup(function(a) {
  5972. c.wo(a)
  5973. }));
  5974. this.b.Ve && !this.b.ic && AppMobi.accelerometer.watchAcceleration(l, {
  5975. frequency: 40,
  5976. adjustForRotation: !0
  5977. });
  5978. this.b.kc && navigator.accelerometer && navigator.accelerometer.watchAcceleration && navigator.accelerometer.watchAcceleration(q, null, {
  5979. frequency: 40
  5980. });
  5981. this.b.To(this)
  5982. };
  5983. c.Nk = function(a) {
  5984. if (a.pointerType !== a.MSPOINTER_TYPE_MOUSE && "mouse" !== a.pointerType) {
  5985. a.preventDefault && a.preventDefault();
  5986. var b = this.Ne(a.pointerId),
  5987. c = M();
  5988. if (0 <= b) {
  5989. var d = this.b.ma ? f: jQuery(this.b.canvas).offset(),
  5990. b = this.touches[b];
  5991. 2 > c - b.time || b.update(c, a.pageX - d.left, a.pageY - d.top)
  5992. }
  5993. }
  5994. };
  5995. c.Ok = function(b) {
  5996. if (b.pointerType !== b.MSPOINTER_TYPE_MOUSE && "mouse" !== b.pointerType) {
  5997. b.preventDefault && Ta(b) && b.preventDefault();
  5998. var c = this.b.ma ? f: jQuery(this.b.canvas).offset(),
  5999. d = b.pageX - c.left,
  6000. c = b.pageY - c.top;
  6001. M();
  6002. this.qc = this.touches.length;
  6003. this.we = b.pointerId;
  6004. this.touches.push(a(d, c, b.pointerId, this.qc));
  6005. this.b.fd = !0;
  6006. this.b.trigger(X.prototype.g.jj, this);
  6007. this.b.trigger(X.prototype.g.nj, this);
  6008. this.tc = d;
  6009. this.uc = c;
  6010. this.b.trigger(X.prototype.g.mj, this);
  6011. this.b.fd = !1
  6012. }
  6013. };
  6014. c.tg = function(a, b) {
  6015. if (a.pointerType !== a.MSPOINTER_TYPE_MOUSE && "mouse" !== a.pointerType) {
  6016. a.preventDefault && Ta(a) && a.preventDefault();
  6017. var c = this.Ne(a.pointerId);
  6018. this.qc = 0 <= c ? this.touches[c].tf: -1;
  6019. this.we = 0 <= c ? this.touches[c].id: -1;
  6020. this.b.fd = !0;
  6021. this.b.trigger(X.prototype.g.ij, this);
  6022. this.b.trigger(X.prototype.g.lj, this);
  6023. 0 <= c && (b || this.touches[c].Dk(this, c), 100 > v.length && v.push(this.touches[c]), this.touches.splice(c, 1));
  6024. this.b.fd = !1
  6025. }
  6026. };
  6027. c.Pk = function(a) {
  6028. a.preventDefault && a.preventDefault();
  6029. var b = M(),
  6030. c,
  6031. d,
  6032. e,
  6033. g;
  6034. c = 0;
  6035. for (d = a.changedTouches.length; c < d; c++) if (e = a.changedTouches[c], g = this.Ne(e.identifier), 0 <= g) {
  6036. var h = this.b.ma ? f: jQuery(this.b.canvas).offset();
  6037. g = this.touches[g];
  6038. 2 > b - g.time || g.update(b, e.pageX - h.left, e.pageY - h.top)
  6039. }
  6040. };
  6041. c.Qk = function(b) {
  6042. b.preventDefault && Ta(b) && b.preventDefault();
  6043. var c = this.b.ma ? f: jQuery(this.b.canvas).offset();
  6044. M();
  6045. this.b.fd = !0;
  6046. var d, e, g, h;
  6047. d = 0;
  6048. for (e = b.changedTouches.length; d < e; d++) if (g = b.changedTouches[d], h = this.Ne(g.identifier), -1 === h) {
  6049. h = g.pageX - c.left;
  6050. var k = g.pageY - c.top;
  6051. this.qc = this.touches.length;
  6052. this.we = g.identifier;
  6053. this.touches.push(a(h, k, g.identifier, this.qc));
  6054. this.b.trigger(X.prototype.g.jj, this);
  6055. this.b.trigger(X.prototype.g.nj, this);
  6056. this.tc = h;
  6057. this.uc = k;
  6058. this.b.trigger(X.prototype.g.mj, this)
  6059. }
  6060. this.b.fd = !1
  6061. };
  6062. c.vi = function(a, b) {
  6063. a.preventDefault && Ta(a) && a.preventDefault();
  6064. this.b.fd = !0;
  6065. var c, d, e;
  6066. c = 0;
  6067. for (d = a.changedTouches.length; c < d; c++) e = a.changedTouches[c],
  6068. e = this.Ne(e.identifier),
  6069. 0 <= e && (this.qc = this.touches[e].tf, this.we = this.touches[e].id, this.b.trigger(X.prototype.g.ij, this), this.b.trigger(X.prototype.g.lj, this), b || this.touches[e].Dk(this, e), 100 > v.length && v.push(this.touches[e]), this.touches.splice(e, 1));
  6070. this.b.fd = !1
  6071. };
  6072. c.sq = function() {
  6073. return this.b.Ve && 0 === this.hf && 0 !== r ? 90 * r: this.b.kc && 0 === this.hf && 0 !== k ? 90 * k: this.hf
  6074. };
  6075. c.tq = function() {
  6076. return this.b.Ve && 0 === this.jf && 0 !== t ? -90 * t: this.b.kc && 0 === this.jf && 0 !== b ? -90 * b: this.jf
  6077. };
  6078. c.vq = function() {
  6079. return this.b.Ve && 0 === this.kf && 0 !== e ? 90 * e: this.b.kc && 0 === this.kf && 0 !== p ? 90 * p: this.kf
  6080. };
  6081. c.uo = function(a) {
  6082. a.preventDefault && this.b.Nh && !this.b.jc && a.preventDefault();
  6083. this.Qk({
  6084. changedTouches: [{
  6085. pageX: a.pageX,
  6086. pageY: a.pageY,
  6087. identifier: 0
  6088. }]
  6089. });
  6090. this.oi = !0
  6091. };
  6092. c.vo = function(a) {
  6093. this.oi && this.Pk({
  6094. changedTouches: [{
  6095. pageX: a.pageX,
  6096. pageY: a.pageY,
  6097. identifier: 0
  6098. }]
  6099. })
  6100. };
  6101. c.wo = function(a) {
  6102. a.preventDefault && this.b.Nh && !this.b.jc && a.preventDefault();
  6103. this.b.Nh = !0;
  6104. this.vi({
  6105. changedTouches: [{
  6106. pageX: a.pageX,
  6107. pageY: a.pageY,
  6108. identifier: 0
  6109. }]
  6110. });
  6111. this.oi = !1
  6112. };
  6113. c.Ui = function() {
  6114. var a, b, c, d = M();
  6115. a = 0;
  6116. for (b = this.touches.length; a < b; ++a) c = this.touches[a],
  6117. c.time <= d - 50 && (c.gi = d),
  6118. c.po(this, a)
  6119. };
  6120. d.prototype.nj = w(!0);
  6121. d.prototype.lj = w(!0);
  6122. d.prototype.mj = function(a) {
  6123. return a ? this.b.Lg(a, this.tc, this.uc) : !1
  6124. };
  6125. d.prototype.jj = function(a) {
  6126. a = Math.floor(a);
  6127. return a === this.qc
  6128. };
  6129. d.prototype.ij = function(a) {
  6130. a = Math.floor(a);
  6131. return a === this.qc
  6132. };
  6133. d.prototype.Sl = w(!0);
  6134. d.prototype.kj = w(!0);
  6135. d.prototype.Pl = w(!0);
  6136. d.prototype.Tl = function(a) {
  6137. return a ? this.b.Lg(a, this.tc, this.uc) : !1
  6138. };
  6139. d.prototype.Ce = function(a) {
  6140. return a ? this.b.Lg(a, this.tc, this.uc) : !1
  6141. };
  6142. d.prototype.Ql = function(a) {
  6143. return a ? this.b.Lg(a, this.tc, this.uc) : !1
  6144. };
  6145. h.g = new d;
  6146. u.prototype.pm = function(a, b) {
  6147. var c = this.ee;
  6148. if (0 > c || c >= this.touches.length) a.u(0);
  6149. else {
  6150. var d, e, f, g, h;
  6151. ha(b) ? (d = this.b.Pe(0), e = d.scale, f = d.Rc, g = d.Gc, h = d.j, d.scale = this.b.S.scale, d.Rc = 1, d.Gc = 1, d.j = this.b.S.j, a.u(d.ib(this.touches[c].x, this.touches[c].y, !0)), d.scale = e, d.Rc = f, d.Gc = g, d.j = h) : (d = B(b) ? this.b.Pe(b) : this.b.Mh(b)) ? a.u(d.ib(this.touches[c].x, this.touches[c].y, !0)) : a.u(0)
  6152. }
  6153. };
  6154. u.prototype.qm = function(a, b) {
  6155. var c = this.ee;
  6156. if (0 > c || c >= this.touches.length) a.u(0);
  6157. else {
  6158. var d, e, f, g, h;
  6159. ha(b) ? (d = this.b.Pe(0), e = d.scale, f = d.Rc, g = d.Hc, h = d.j, d.scale = this.b.S.scale, d.Rc = 1, d.Hc = 1, d.j = this.b.S.j, a.u(d.ib(this.touches[c].x, this.touches[c].y, !1)), d.scale = e, d.Rc = f, d.Hc = g, d.j = h) : (d = B(b) ? this.b.Pe(b) : this.b.Mh(b)) ? a.u(d.ib(this.touches[c].x, this.touches[c].y, !1)) : a.u(0)
  6160. }
  6161. };
  6162. h.k = new u
  6163. })();
  6164. function Lb(l) {
  6165. this.b = l
  6166. } (function() {
  6167. function l() {}
  6168. function q() {}
  6169. function a() {}
  6170. var g = Lb.prototype;
  6171. g.ea = function(a) {
  6172. this.Y = a;
  6173. this.b = a.b
  6174. };
  6175. g.ea.prototype.K = s();
  6176. g.$ = function(a) {
  6177. this.type = a;
  6178. this.b = a.b
  6179. };
  6180. var d = g.$.prototype,
  6181. u = "",
  6182. h = "undefined" !== typeof window.is_scirra_arcade;
  6183. h && (u = "arcade" + window.scirra_arcade_id);
  6184. d.K = s();
  6185. l.prototype.cm = w(!0);
  6186. g.g = new l;
  6187. q.prototype.im = function(a, d) {
  6188. try {
  6189. localStorage.setItem(u + a, d)
  6190. } catch(e) {
  6191. this.b.trigger(Lb.prototype.g.cm, this)
  6192. }
  6193. };
  6194. g.e = new q;
  6195. a.prototype.Il = function(a, d) {
  6196. a.pa(localStorage.getItem(u + d) || "")
  6197. };
  6198. a.prototype.Vg = function(a) {
  6199. var d = {},
  6200. e, g, l;
  6201. e = 0;
  6202. for (g = localStorage.length; e < g; e++) l = localStorage.key(e),
  6203. h ? l.substr(0, u.length) === u && (d[l.substr(u.length)] = localStorage.getItem(l)) : d[l] = localStorage.getItem(l);
  6204. a.pa(JSON.stringify({
  6205. c2dictionary: !0,
  6206. data: d
  6207. }))
  6208. };
  6209. g.k = new a
  6210. })();
  6211. function Mb(l) {
  6212. this.b = l
  6213. } (function() {
  6214. function l() {}
  6215. var q = Mb.prototype;
  6216. q.ea = function(a) {
  6217. this.Ib = a;
  6218. this.b = a.b
  6219. };
  6220. q.ea.prototype.K = s();
  6221. q.$ = function(a, d) {
  6222. this.type = a;
  6223. this.Ib = a.Ib;
  6224. this.Ga = d;
  6225. this.b = a.b
  6226. };
  6227. var a = q.$.prototype;
  6228. a.K = function() {
  6229. var a = 1 === this.J[0];
  6230. this.Le = this.J[1];
  6231. this.Cf = this.J[2];
  6232. this.Sf = this.J[3];
  6233. this.Nm = this.J[4];
  6234. this.Fb = a ? 0 : 3;
  6235. this.qb ? this.Pb.reset() : this.Pb = new La;
  6236. this.Jd = this.Ga.opacity ? this.Ga.opacity: 1;
  6237. a && (0 === this.Le ? (this.Fb = 1, 0 === this.Cf && (this.Fb = 2)) : (this.Ga.opacity = 0, this.b.N = !0))
  6238. };
  6239. a.Db = function() {
  6240. return {
  6241. fit: this.Le,
  6242. wt: this.Cf,
  6243. fot: this.Sf,
  6244. s: this.Fb,
  6245. st: this.Pb.ja,
  6246. mo: this.Jd
  6247. }
  6248. };
  6249. a.Yb = function(a) {
  6250. this.Le = a.fit;
  6251. this.Cf = a.wt;
  6252. this.Sf = a.fot;
  6253. this.Fb = a.s;
  6254. this.Pb.reset();
  6255. this.Pb.ja = a.st;
  6256. this.Jd = a.mo
  6257. };
  6258. a.pc = function() {
  6259. this.Pb.add(this.b.Ih(this.Ga));
  6260. 0 === this.Fb && (this.Ga.opacity = this.Pb.ja / this.Le * this.Jd, this.b.N = !0, this.Ga.opacity >= this.Jd && (this.Ga.opacity = this.Jd, this.Fb = 1, this.Pb.reset()));
  6261. 1 === this.Fb && this.Pb.ja >= this.Cf && (this.Fb = 2, this.Pb.reset());
  6262. 2 === this.Fb && 0 !== this.Sf && (this.Ga.opacity = this.Jd - this.Pb.ja / this.Sf * this.Jd, this.b.N = !0, 0 > this.Ga.opacity && (this.Ga.opacity = 0, this.Fb = 3, this.Pb.reset(), this.b.trigger(Mb.prototype.g.Rl, this.Ga), 1 === this.Nm && this.b.Tc(this.Ga)))
  6263. };
  6264. a.qq = function() {
  6265. this.Fb = 0;
  6266. this.Pb.reset();
  6267. 0 === this.Le ? (this.Fb = 1, 0 === this.Cf && (this.Fb = 2)) : (this.Ga.opacity = 0, this.b.N = !0)
  6268. };
  6269. l.prototype.Rl = w(!0);
  6270. q.g = new l;
  6271. q.e = new(s())
  6272. })();
  6273. function Nb(l) {
  6274. this.b = l
  6275. } (function() {
  6276. var l = Nb.prototype;
  6277. l.ea = function(l) {
  6278. this.Ib = l;
  6279. this.b = l.b
  6280. };
  6281. l.ea.prototype.K = s();
  6282. l.$ = function(l, a) {
  6283. this.type = l;
  6284. this.Ib = l.Ib;
  6285. this.Ga = a;
  6286. this.b = l.b
  6287. };
  6288. l = l.$.prototype;
  6289. l.K = s();
  6290. l.pc = function() {
  6291. this.Ga.Qa();
  6292. var l = this.Ga.Na,
  6293. a = this.Ga.i.W; (0 > l.right || 0 > l.bottom || l.left > a.width || l.top > a.height) && this.b.Tc(this.Ga)
  6294. }
  6295. })();
  6296. function Hb() {
  6297. return [null, null, [[U, !0, !1, !1, !1, !1, !1, !1, !1, !1], [T, !1, !1, !1, !1, !1, !1, !1, !1, !1], [Ib, !0, !1, !1, !1, !1, !1, !1, !1, !1], [Jb, !1, !0, !0, !0, !0, !1, !1, !1, !1], [S, !1, !0, !0, !0, !0, !0, !0, !0, !1], [V, !1, !0, !0, !0, !0, !0, !0, !0, !1], [Kb, !1, !0, !0, !0, !0, !0, !0, !0, !0], [X, !0, !1, !1, !1, !1, !1, !1, !1, !1], [Lb, !0, !1, !1, !1, !1, !1, !1, !1, !1]], [["t0", X, !1, [], 0, 0, null, null, [], !1, !1, 0xf94d1b2a3ecfa, [], null, [1]], ["t1", V, !1, [], 0, 0, null, null, [], !1, !1, 0xda5ccc89b605, [], null], ["t2", V, !1, [], 0, 0, null, null, [], !1, !1, 0xc3dd4dd45aaf5, [], null], ["t3", V, !1, [], 0, 0, null, null, [], !1, !1, 6205728733219292, [], null], ["t4", V, !1, [], 0, 0, null, null, [], !1, !1, 0xd772867d1d3e8, [], null], ["t5", V, !1, [], 1, 0, null, null, [["Fade", Mb, 869346729990702]], !1, !1, 8925630662382042, [], null], ["t6", V, !1, [], 1, 0, null, null, [["Fade", Mb, 9510880906266236]], !1, !1, 0xcb14b10e09127, [], null], ["t7", V, !1, [], 0, 0, null, null, [], !1, !1, 7598069977819439, [], null], ["t8", U, !1, [], 0, 0, null, null, [], !1, !1, 5515226481900354, [], null, []], ["t9", S, !1, [], 0, 0, null, [["Default", 5, !1, 1, 0, !1, 7581965143295931, [["images/arw-sheet0.png", 280, 0, 0, 89, 82, 1, 0.5056179761886597, 0.5, [], [ - 0.02247196435928345, 0.02438998222351074, -0.01123598217964172, -0.4268293082714081, 0.4269660115242004, -0.4268293082714081, 0.08988803625106812, 0, 0.06741601228713989, 0.03658497333526611, -0.01123598217964172, 0.1097559928894043, -0.5056179761886597, 0.5, -0.01123598217964172, 0], 3]]]], [], !1, !1, 556126341322379, [], null], ["t10", S, !1, [], 0, 0, null, [["Default", 5, !1, 1, 0, !1, 0x629a25e646fa3, [["images/sharebg-sheet0.png", 105, 0, 0, 5, 5, 1, 0.6000000238418579, 0.6000000238418579, [], [], 0]]]], [], !1, !1, 873059039988732, [], null], ["t11", V, !1, [], 0, 0, null, null, [], !1, !1, 0xffce207ac57d7, [], null], ["t12", V, !1, [], 0, 0, null, null, [], !1, !1, 8753677058651271, [], null], ["t13", Jb, !1, [], 0, 0, null, null, [], !1, !1, 6084897573218804, [], null], ["t14", T, !1, [], 0, 0, null, null, [], !0, !1, 9587886386844038, [], null], ["t15", S, !1, [], 1, 0, null, [["Default", 5, !1, 1, 0, !1, 0x9cde368e5d296, [["images/chun-sheet0.png", 6235, 0, 0, 266, 150, 1, 0.4624060094356537, 0.5066666603088379, [], [ - 0.3479480147361755, -0.1971426606178284, -0.001563012599945068, -0.4399999678134918, 0.3960280120372772, -0.2780956625938416, 0.4622929990291596, -0.001904666423797607, 0.380966991186142, 0.2504763603210449, -0.001563012599945068, 0.4695233106613159, -0.4112012088298798, 0.2933333516120911, -0.4232494235038757, -0.001904666423797607], 0]]]], [["Fade", Mb, 0x5eb8fb04cdbf5]], !1, !1, 7427885814041977, [], null], ["t16", S, !1, [9507576288474780, 7798132949118078, 579919847236918, 0x3e12fb27683fd], 1, 0, null, [["Default", 0, !1, 1, 0, !1, 0x3c564b50a183f, [["images/tile-sheet0.png", 363928, 1, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 118, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 235, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 352, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 1, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 118, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 235, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 352, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 1, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 118, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 235, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 352, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 1, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 118, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 235, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet0.png", 363928, 352, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 1, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 118, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 235, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 352, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 1, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 118, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 235, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 352, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 1, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 118, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 235, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 352, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 1, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 118, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 235, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet1.png", 368205, 352, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 1, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 118, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 235, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 352, 1, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 1, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 118, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 235, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 352, 118, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 1, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 118, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 235, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 352, 235, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 1, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 118, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 235, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0], ["images/tile-sheet2.png", 386007, 352, 352, 115, 115, 1, 0.5043478012084961, 0.5043478012084961, [], [], 0]]]], [["DestroyOutsideLayout", Nb, 8183923838585385]], !1, !1, 0x46826e63f0474, [], null], ["t17", Ib, !1, [], 0, 0, null, null, [], !1, !1, 9551747637700524, [], null, []], ["t18", S, !1, [], 0, 0, null, [["Default", 5, !1, 1, 0, !1, 7968125673324191, [["images/cursorhand_grey-sheet0.png", 623, 0, 0, 27, 28, 1, 0.5185185074806213, 0.5, [], [ - 0.4814814925193787, -0.4642857015132904, 0.2962964773178101, -0.3214290142059326, 0.4814814925193787, 0, 0.2962964773178101, 0.3214290142059326, -0.03703752160072327, 0.3928570151329041, -0.2592595219612122, 0.25, -0.4814814925193787, 0], 0]]]], [], !1, !1, 6738809493591891, [], null], ["t19", V, !1, [], 0, 0, null, null, [], !1, !1, 6045589488437217, [], null], ["t20", Lb, !1, [], 0, 0, null, null, [], !1, !1, 6656137981101817, [], null, []], ["t21", Kb, !1, [], 0, 0, ["images/tiledbackground.png", 645, 0], null, [], !1, !1, 6126612524504257, [], null], ["t22", Kb, !1, [], 0, 0, ["images/tiledbackground2.png", 105, 0], null, [], !1, !1, 8224839133421809, [], null]], [], [["game", 640, 1136, !1, "Event sheet 1", 8873350371196689, [["back", 0, 8722530541249526, !0, [255, 255, 255], !1, 1, 1, 1, !1, 1, 0, 0, [[[0, 0, 0, 639, 1135, 0, 0, 1, 0, 0, 0, 0, []], 21, 7, [], [], [0, 0]]], []], ["tile", 1, 0x4f0611bcb0455, !0, [255, 255, 255], !0, 1, 1, 1, !1, 1, 0, 0, [], []], ["chun", 2, 7438187641589173, !0, [255, 255, 255], !0, 1, 1, 1, !1, 1, 0, 0, [], []], ["ui", 3, 0x7c229a0a9d8d7, !0, [255, 255, 255], !0, 1, 1, 1, !1, 1, 0, 0, [[[0, 131, 0, 480, 78, 0, 0, 1, 0, 0, 0, 0, []], 7, 11, [], [], ["\u70b9\u51fb\u56fe\u6807\u4f7f\u4ed6\u4eec\u53d8\u5f97\u4e00\u81f4", 0, "18pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(153,0,204)", 1, 0, 0, 0, 0]], [[272, 12, 0, 200, 32, 0, 0, 1, 0, 0, 0, 0, []], 2, 4, [], [], ["Text", 0, "15pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(255,0,204)", 2, 0, 0, 0, 0]], [[7, 12, 0, 200, 30, 0, 0, 1, 0, 0, 0, 0, []], 1, 3, [], [], ["Text", 0, "15pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(255,0,204)", 0, 0, 0, 0, 0]], [[0, 39, 0, 477, 93, 0, 0, 1, 0, 0, 0, 0, []], 4, 8, [], [], ["\u6da8\u59ff\u52bf\uff01", 0, "bold 42pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(153,0,204)", 1, 0, 0, 0, 0]], [[245, 521, 0, 200, 66, 0, 0, 1, 0, 0, 0, 0, []], 19, 21, [], [], ["\u70b9\u51fb\u8fd9\u4e2a\u56fe\u6848 \u4f7f\u4e4b\u4e0e\u5176\u4ed6\u56fe\u6848\u4e00\u81f4", 0, "15pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(255,0,204)", 1, 0, 0, 0, 0]], [[287, 504, 0, 27, 28, 0, 0.5667307376861572, 1, 0.5185185074806213, 0.5, 0, 0, []], 18, 2, [], [], [0, "Default", 0, 1]], [[0, 736, 0, 480, 104, 0, 0, 1, 0, 0, 0, 0, []], 13, 17, [], [], [1, "", "border: 0;", "my_iframe", 2]]], []], ["share", 4, 710626183291664, !0, [255, 255, 255], !0, 1, 1, 1, !1, 1, 0, 0, [], []]], [[null, 14, 18, [], [], [10, 1, 1]]], []], ["item", 1708, 960, !1, null, 0x3994654c106fb, [["Layer 0", 0, 7845173731529697, !0, [255, 255, 255], !1, 1, 1, 1, !1, 1, 0, 0, [[[184, 122, 0, 266, 150, 0, 0, 1, 0.4624060094356537, 0.5066666603088379, 0, 0, []], 15, 22, [], [[1, 0, 0, 0.5, 1]], [0, "Default", 0, 1]], [[338, 209, 0, 235, 23, 0, 0, 1, 0, 0, 0, 0, []], 3, 23, [], [], ["Text", 0, "11pt Arial", "rgb(255,0,0)", 1, 0, 0, 0, 0]], [[155, 683, 0, 115, 115, 0, 0, 1, 0.5043478012084961, 0.5043478012084961, 0, 0, []], 16, 5, [[0], [0], [0], [0]], [[]], [0, "Default", 0, 1]], [[378, 494, 0, 179, 50, 0, 0, 1, 0.5, 0.5, 0, 0, []], 6, 20, [], [[1, 1, 0, 0, 1]], ["\u5206\u4eab\u7ed9\u597d\u53cb", 0, "24pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(255,0,204)", 1, 0, 1, 0, 0]], [[184, 496, 0, 150, 50, 0, 0, 1, 0.5, 0.5, 0, 0, []], 5, 24, [], [[1, 1, 0, 0, 1]], ["\u518d\u6765\u4e00\u6b21", 0, "24pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(255,0,204)", 1, 0, 1, 0, 0]], [[163, 312, 0, 5, 5, 0, 0, 1, 0.6000000238418579, 0.6000000238418579, 0, 0, []], 10, 25, [], [], [0, "Default", 0, 1]], [[160, 219, 0, 49.83289337158203, 45.9134521484375, 0, 0, 1, 0.5056179761886597, 0.5, 0, 0, []], 9, 26, [], [], [0, "Default", 0, 1]], [[90, 338, 0, 284, 40, 0, 0, 1, 0, 0, 0, 0, []], 11, 27, [], [], ["Text", 0, "22pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(255,255,255)", 2, 0, 0, 0, 0]], [[186, 320, 0, 200, 46, 0, 0, 1, 0, 0, 0, 0, []], 12, 28, [], [], ["Text", 0, "22pt \u5fae\u8f6f\u96c5\u9ed1", "rgb(255,255,255)", 2, 0, 0, 0, 0]], [[233, 252, 0, 99, 97, 0, 0, 1, 0, 0, 0, 0, []], 22, 9, [], [], [0, 0]]], []]], [], []]], [["Event sheet 1", [[1, "allStep", 0, 0, !1, !1, 7829794336433874, !1], [1, "altime", 0, 30, !1, !1, 8806000227071718, !1], [1, "newtile", 0, -2, !1, !1, 0x6738435c351df, !1], [1, "alltile", 0, 0, !1, !1, 6848927134097075, !1], [1, "myTileList", 1, "", !1, !1, 5996427334966738, !1], [1, "state", 0, 0, !1, !1, 7590962164872429, !1], [1, "mapM", 0, 0, !1, !1, 0x6e9d0e502f575, !1], [1, "winWord", 1, "99.9999|99.99|99.12|95.41|89.56|75.21|61.42|45.51|32.18|19.70|3.15", !1, !1, 9790225597145276, !1], [1, "winTitle", 1, "\u64b8\u795e|\u64b8\u795e|\u64b8\u4ed9|\u64b8\u5927\u5e08|\u64b8\u81f3\u6df1|\u64b8\u8fc5|\u64b8\u901f|\u64b8\u73ed|\u64b8\u63d0\u778e|\u64b8\u4e32|\u64b8\u4e0d\u51fa", !1, !1, 7216036116395405, !1], [1, "level", 1, "4|4|4|4|4|9|9|9|9|16", !1, !1, 9859418748036384, !1], [1, "nowLv", 0, 0, !1, !1, 7876067774709284, !1], [1, "nowSet", 0, 4, !1, !1, 0x9cf322dd02be1, !1], [1, "mapHeader", 0, 230, !1, !1, 8448505834635232, !1], [1, "rndn1", 0, 0, !1, !1, 0xd99f7141abf36, !1], [1, "rndn2", 0, 0, !1, !1, 0x41cbf92fcc4f9, !1], [1, "wintest1", 0, 0, !1, !1, 0xface98f666c75, !1], [1, "wintest2", 0, 0, !1, !1, 9757244597927244, !1], [1, "mywin", 0, 0, !1, !1, 9290006532671788, !1], [1, "debug", 1, "", !1, !1, 0x7b7caf4a9d027, !1], [0, null, !1, null, 0xadb75ac2f16f6, [[ - 1, R.prototype.g.ah, null, 1, !1, !1, !1, 82509603634152, !1], [ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 6971807587501048, !1, [[11, "state"], [8, 0], [7, [0, 0]]]]], [[ - 1, R.prototype.e.ca, null, 0x4b863ba416622, !1, [[11, "myTileList"], [7, [20, 20, Lb.prototype.k.Il, !0, null, [[2, "zskt_mytiles"]]]]]]]], [0, null, !1, null, 6401505462570405, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 665190475013387, !1, [[11, "myTileList"], [8, 0], [7, [2, ""]]]]], [[ - 1, R.prototype.e.ca, null, 6983000246518801, !1, [[11, "myTileList"], [7, [2, "|"]]]]]], [0, [!0, "create"], !1, null, 463309410371381, [[ - 1, R.prototype.g.td, null, 0, !1, !1, !1, 463309410371381, !1, [[1, [2, "create"]]]]], [], [[1, "tilei", 0, 0, !1, !1, 5563475558722623, !1], [1, "set4x", 1, "177|303|177|303", !1, !1, 8642190851402124, !1], [1, "set4y", 1, "58|58|183|183", !1, !1, 6457726155660816, !1], [1, "set9x", 1, "115|240|365|115|240|365|115|240|365", !1, !1, 0xfbdc7c2614efa, !1], [1, "set9y", 1, "58|58|58|183|183|183|308|308|308", !1, !1, 0x94854390c34f1, !1], [1, "set16x", 1, "55|179|301|425|55|179|301|425|55|179|301|425|55|179|301|425", !1, !1, 9002331020565369, !1], [1, "set16y", 1, "58|58|58|58|183|183|183|183|308|308|308|308|433|433|433|433", !1, !1, 4871211386269639, !1], [1, "set25x", 1, "52|146|240|334|428|52|146|240|334|428|52|146|240|334|428|52|146|240|334|428|52|146|240|334|428", !1, !1, 4584498050197125, !1], [1, "set25y", 1, "42|42|42|42|42|136|136|136|136|136|230|230|230|230|230|324|324|324|324|324|418|418|418|418|418", !1, !1, 5531018612652659, !1], [1, "firstLv", 1, "", !1, !1, 5429421173565426, !1], [0, null, !1, null, 6264986531600359, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 0xf13d718c29e84, !1, [[11, "mapM"], [8, 0], [7, [0, 0]]]]], [[ - 1, R.prototype.e.ca, null, 9519807724619284, !1, [[11, "mapM"], [7, [0, 1]]]], [ - 1, R.prototype.e.ca, null, 5299899243543115, !1, [[11, "nowSet"], [7, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "level"], [19, R.prototype.k.min, [[23, "nowLv"], [0, 9]]], [2, "|"]]]]]]]], [ - 1, R.prototype.e.fb, null, 9507182194703264, !1, [[11, "nowLv"], [7, [0, 1]]]], [ - 1, R.prototype.e.fb, null, 8720330804479547, !1, [[11, "newtile"], [7, [0, 2]]]], [ - 1, R.prototype.e.fb, null, 6862298287118858, !1, [[11, "alltile"], [7, [23, "nowSet"]]]], [ - 1, R.prototype.e.ca, null, 9473992373992448, !1, [[11, "rndn1"], [7, [19, R.prototype.k["int"], [[19, R.prototype.k.random, [[0, 0], [0, 39]]]]]]]], [ - 1, R.prototype.e.ca, null, 0x83e0201ea79f0, !1, [[11, "rndn2"], [7, [4, [23, "rndn1"], [19, R.prototype.k["int"], [[19, R.prototype.k.random, [[0, 1], [0, 8]]]]]]]]]], [[0, null, !1, null, 9757177966866232, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 8180133035444653, !1, [[11, "nowLv"], [8, 0], [7, [0, 1]]]]], [[ - 1, R.prototype.e.ca, null, 0x77ba5da87a004, !1, [[11, "firstLv"], [7, [10, [10, [10, [10, [10, [10, [23, "rndn1"], [2, "|"]], [23, "rndn1"]], [2, "|"]], [23, "rndn1"]], [2, "|"]], [23, "rndn2"]]]]]]], [0, null, !1, null, 0x9d9ebd3d5497d, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 0xae156b05b26b0, !1, [[11, "nowLv"], [8, 0], [7, [0, 2]]]]], [[ - 1, R.prototype.e.ca, null, 400052974136517, !1, [[11, "firstLv"], [7, [10, [10, [10, [10, [10, [10, [23, "rndn1"], [2, "|"]], [23, "rndn2"]], [2, "|"]], [23, "rndn1"]], [2, "|"]], [23, "rndn1"]]]]]]], [0, null, !1, null, 5653066037309235, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 4909985140751356, !1, [[11, "nowLv"], [8, 0], [7, [0, 3]]]]], [[ - 1, R.prototype.e.ca, null, 0x828216e572da3, !1, [[11, "firstLv"], [7, [10, [10, [10, [10, [10, [10, [23, "rndn2"], [2, "|"]], [23, "rndn1"]], [2, "|"]], [23, "rndn1"]], [2, "|"]], [23, "rndn2"]]]]]]], [0, null, !1, null, 6670144778699386, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 8863502857990735, !1, [[11, "nowLv"], [8, 0], [7, [0, 4]]]]], [[ - 1, R.prototype.e.ca, null, 8924815912764964, !1, [[11, "firstLv"], [7, [10, [10, [10, [10, [10, [10, [23, "rndn1"], [2, "|"]], [23, "rndn1"]], [2, "|"]], [23, "rndn2"]], [2, "|"]], [23, "rndn2"]]]]]]], [0, null, !1, null, 566617174706205, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 7833242696527362, !1, [[11, "nowLv"], [8, 0], [7, [0, 5]]]]], [[ - 1, R.prototype.e.ca, null, 6584270991991598, !1, [[11, "firstLv"], [7, [10, [10, [10, [10, [10, [10, [23, "rndn2"], [2, "|"]], [23, "rndn1"]], [2, "|"]], [23, "rndn1"]], [2, "|"]], [23, "rndn2"]]]]]]], [0, null, !1, null, 5632307651096084, [[ - 1, R.prototype.g.ej, null, 0, !1, !1, !1, 8053142908741583, !1, [[7, [19, R.prototype.k.find, [[23, "myTileList"], [10, [10, [2, "|"], [23, "rndn1"]], [2, "|"]]]]], [8, 0], [7, [0, -1]]]]], [[ - 1, R.prototype.e.ca, null, 7712944154935735, !1, [[11, "myTileList"], [7, [10, [10, [2, "|"], [23, "rndn1"]], [23, "myTileList"]]]]]]], [0, null, !1, null, 9091126502233716, [[ - 1, R.prototype.g.ej, null, 0, !1, !1, !1, 0xdc1b09fcfd9fc, !1, [[7, [19, R.prototype.k.find, [[23, "myTileList"], [10, [10, [2, "|"], [23, "rndn2"]], [2, "|"]]]]], [8, 0], [7, [0, -1]]]]], [[ - 1, R.prototype.e.ca, null, 8028722784964185, !1, [[11, "myTileList"], [7, [10, [10, [2, "|"], [23, "rndn2"]], [23, "myTileList"]]]]]]], [0, null, !1, null, 9726043312566432, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 5987606039813666, !1, [[11, "nowSet"], [8, 0], [7, [0, 4]]]]], [[14, T.prototype.e.Vd, null, 0xd8337fae33838, !1, [[0, [0, 4]], [0, [0, 1]], [0, [0, 1]]]], [ - 1, R.prototype.e.ca, null, 360995174267328, !1, [[11, "mapHeader"], [7, [0, 260]]]]], [[0, null, !1, null, 0xa02c62aa85904, [[ - 1, R.prototype.g.Ef, null, 0, !0, !1, !1, 6591065965931896, !1, [[1, [2, "make4"]], [0, [0, 0]], [0, [0, 3]]]]], [[ - 1, R.prototype.e.Gb, null, 0x558083755653e, !1, [[4, 16], [5, [0, 1]], [0, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "set4x"], [23, "tilei"], [2, "|"]]]]]], [0, [4, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "set4y"], [23, "tilei"], [2, "|"]]]]], [23, "mapHeader"]]]]], [16, S.prototype.e.Ca, null, 723148900509741, !1, [[10, 0], [7, [23, "rndn1"]]]], [16, S.prototype.e.Ca, null, 0xa94c8da3a3d22, !1, [[10, 1], [7, [23, "rndn2"]]]], [16, S.prototype.e.Ca, null, 5838429079176084, !1, [[10, 2], [7, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "firstLv"], [23, "tilei"], [2, "|"]]]]]]]], [16, S.prototype.e.ud, null, 8265870308761009, !1, [[0, [21, 16, !1, null, 2]]]], [16, S.prototype.e.Ca, null, 6401887803340462, !1, [[10, 3], [7, [23, "tilei"]]]], [14, T.prototype.e.vd, null, 5351252249169243, !1, [[0, [23, "tilei"]], [7, [21, 16, !1, null, 2]]]], [ - 1, R.prototype.e.fb, null, 6066333131298112, !1, [[11, "tilei"], [7, [0, 1]]]]]]]], [0, null, !1, null, 9134094344884104, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 0x61ccf83a85ede, !1, [[11, "nowSet"], [8, 0], [7, [0, 9]]]]], [[14, T.prototype.e.Vd, null, 0x82f1db24d34d4, !1, [[0, [0, 9]], [0, [0, 1]], [0, [0, 1]]]], [ - 1, R.prototype.e.ca, null, 8430065267235837, !1, [[11, "mapHeader"], [7, [0, 230]]]]], [[0, null, !1, null, 7319670059070996, [[ - 1, R.prototype.g.Ef, null, 0, !0, !1, !1, 0xc15d05f91d4b0, !1, [[1, [2, "make9"]], [0, [0, 0]], [0, [0, 8]]]]], [[ - 1, R.prototype.e.Gb, null, 0x9cd14b38e9456, !1, [[4, 16], [5, [0, 1]], [0, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "set9x"], [23, "tilei"], [2, "|"]]]]]], [0, [4, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "set9y"], [23, "tilei"], [2, "|"]]]]], [23, "mapHeader"]]]]], [16, S.prototype.e.Ca, null, 0x9c32b2b8ab243, !1, [[10, 0], [7, [23, "rndn1"]]]], [16, S.prototype.e.Ca, null, 0x6f995e3fe9780, !1, [[10, 1], [7, [23, "rndn2"]]]], [16, S.prototype.e.Ca, null, 4632419454413709, !1, [[10, 2], [7, [19, R.prototype.k.If, [[21, 16, !1, null, 0], [21, 16, !1, null, 1]]]]]], [16, S.prototype.e.ud, null, 0x3b129cf63dcc1, !1, [[0, [21, 16, !1, null, 2]]]], [16, S.prototype.e.Ca, null, 8364861341815985, !1, [[10, 3], [7, [23, "tilei"]]]], [14, T.prototype.e.vd, null, 0xd5759627e15eb, !1, [[0, [23, "tilei"]], [7, [21, 16, !1, null, 2]]]], [ - 1, R.prototype.e.fb, null, 638646311351623, !1, [[11, "tilei"], [7, [0, 1]]]]]]]], [0, null, !1, null, 742180817330754, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 7040151954223154, !1, [[11, "nowSet"], [8, 0], [7, [0, 16]]]]], [[14, T.prototype.e.Vd, null, 8041195867780814, !1, [[0, [0, 16]], [0, [0, 1]], [0, [0, 1]]]], [ - 1, R.prototype.e.ca, null, 5385109956986515, !1, [[11, "mapHeader"], [7, [0, 200]]]]], [[0, null, !1, null, 4851363118618029, [[ - 1, R.prototype.g.Ef, null, 0, !0, !1, !1, 8797460341041133, !1, [[1, [2, "make16"]], [0, [0, 0]], [0, [0, 15]]]]], [[ - 1, R.prototype.e.Gb, null, 0x720584f19cbdd, !1, [[4, 16], [5, [0, 1]], [0, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "set16x"], [23, "tilei"], [2, "|"]]]]]], [0, [4, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "set16y"], [23, "tilei"], [2, "|"]]]]], [23, "mapHeader"]]]]], [16, S.prototype.e.Ca, null, 580478962495951, !1, [[10, 0], [7, [23, "rndn1"]]]], [16, S.prototype.e.Ca, null, 8221872776271937, !1, [[10, 1], [7, [23, "rndn2"]]]], [16, S.prototype.e.Ca, null, 0xbd52e4532d70a, !1, [[10, 2], [7, [19, R.prototype.k.If, [[21, 16, !1, null, 0], [21, 16, !1, null, 1]]]]]], [16, S.prototype.e.ud, null, 8611496128967101, !1, [[0, [21, 16, !1, null, 2]]]], [16, S.prototype.e.Ca, null, 4939167056420164, !1, [[10, 3], [7, [23, "tilei"]]]], [14, T.prototype.e.vd, null, 6608357974757323, !1, [[0, [23, "tilei"]], [7, [21, 16, !1, null, 2]]]], [ - 1, R.prototype.e.fb, null, 9826246727543096, !1, [[11, "tilei"], [7, [0, 1]]]]]]]], [0, null, !1, null, 4813055375253347, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 5464143607745079, !1, [[11, "nowSet"], [8, 0], [7, [0, 25]]]]], [[14, T.prototype.e.Vd, null, 0xcebea7b7c4686, !1, [[0, [0, 25]], [0, [0, 1]], [0, [0, 1]]]]], [[0, null, !1, null, 7381978883440369, [[ - 1, R.prototype.g.Ef, null, 0, !0, !1, !1, 8458880606138151, !1, [[1, [2, "make25"]], [0, [0, 0]], [0, [0, 24]]]]], [[ - 1, R.prototype.e.Gb, null, 8569090695176074, !1, [[4, 16], [5, [0, 1]], [0, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "set25x"], [23, "tilei"], [2, "|"]]]]]], [0, [4, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "set25y"], [23, "tilei"], [2, "|"]]]]], [23, "mapHeader"]]]]], [16, S.prototype.e.Ca, null, 8515974274000636, !1, [[10, 0], [7, [23, "rndn1"]]]], [16, S.prototype.e.Ca, null, 9902805642094732, !1, [[10, 1], [7, [23, "rndn2"]]]], [16, S.prototype.e.Ca, null, 0x9e0efa8e8225c, !1, [[10, 2], [7, [19, R.prototype.k.If, [[21, 16, !1, null, 0], [21, 16, !1, null, 1]]]]]], [16, S.prototype.e.ud, null, 8314940907032919, !1, [[0, [21, 16, !1, null, 2]]]], [16, S.prototype.e.Ca, null, 6598939636633567, !1, [[10, 3], [7, [23, "tilei"]]]], [14, T.prototype.e.vd, null, 0x71f200190fde6, !1, [[0, [23, "tilei"]], [7, [21, 16, !1, null, 2]]]], [ - 1, R.prototype.e.fb, null, 0x650ef7845d899, !1, [[11, "tilei"], [7, [0, 1]]]]]]]]]]]], [0, [!0, "touch"], !1, null, 5688060081980735, [[ - 1, R.prototype.g.td, null, 0, !1, !1, !1, 5688060081980735, !1, [[1, [2, "touch"]]]]], [], [[0, null, !1, null, 9668656310205238, [[0, X.prototype.g.Ce, null, 1, !1, !1, !1, 0xa3c106b6ca463, !1, [[4, 16]]]], [[ - 1, R.prototype.e.fb, null, 6331418765221178, !1, [[11, "allStep"], [7, [0, 1]]]]], [[0, null, !1, null, 9030540104582984, [[16, S.prototype.g.Al, null, 0, !1, !1, !1, 0x88908ed989419, !1, [[10, 0], [8, 0], [7, [21, 16, !1, null, 2]]]]], [[16, S.prototype.e.Ca, null, 7118351437801164, !1, [[10, 2], [7, [21, 16, !1, null, 1]]]], [16, S.prototype.e.ud, null, 0x8e504a4c2d87e, !1, [[0, [21, 16, !1, null, 2]]]], [14, T.prototype.e.vd, null, 352486168237451, !1, [[0, [21, 16, !1, null, 3]], [7, [21, 16, !1, null, 2]]]], [17, Ib.prototype.e.CallFunction, null, 704235080614782, !1, [[1, [2, "checkArray"]], [13]]]]], [0, null, !1, null, 0xd489f2406ca38, [[ - 1, R.prototype.g.Wg, null, 0, !1, !1, !1, 57976889158522, !1]], [[16, S.prototype.e.Ca, null, 8108315549557503, !1, [[10, 2], [7, [21, 16, !1, null, 0]]]], [16, S.prototype.e.ud, null, 0x79b6fe9a2dca1, !1, [[0, [21, 16, !1, null, 2]]]], [14, T.prototype.e.vd, null, 7960197734489039, !1, [[0, [21, 16, !1, null, 3]], [7, [21, 16, !1, null, 2]]]], [17, Ib.prototype.e.CallFunction, null, 6104991323796697, !1, [[1, [2, "checkArray"]], [13]]]]]]]]], [0, [!0, "win"], !1, null, 0x9ae83c20a7704, [[ - 1, R.prototype.g.td, null, 0, !1, !1, !1, 0x9ae83c20a7704, !1, [[1, [2, "win"]]]]], [], [[0, null, !0, null, 5635761793353455, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 6357667036403598, !1, [[11, "wintest1"], [8, 5], [7, [23, "nowSet"]]]], [ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 8459400258045691, !1, [[11, "wintest2"], [8, 5], [7, [23, "nowSet"]]]]], [[ - 1, R.prototype.e.Gb, null, 9270279745790516, !1, [[4, 15], [5, [0, 3]], [0, [0, 240]], [0, [0, 440]]]], [16, S.prototype.e.Sc, null, 0xba1ab1eed35f8, !1], [14, T.prototype.e.zl, null, 4874908531080859, !1], [ - 1, R.prototype.e.ca, null, 8863517634898938, !1, [[11, "mapM"], [7, [0, 0]]]], [ - 1, R.prototype.e.ca, null, 803503613049771, !1, [[11, "wintest1"], [7, [0, 0]]]], [ - 1, R.prototype.e.ca, null, 0x82b9d449d3214, !1, [[11, "wintest2"], [7, [0, 0]]]]]], [0, null, !1, null, 8090203816526591, [[ - 1, R.prototype.g.Wg, null, 0, !1, !1, !1, 7795125709927437, !1]], [[ - 1, R.prototype.e.ca, null, 5873562223711468, !1, [[11, "wintest1"], [7, [0, 0]]]], [ - 1, R.prototype.e.ca, null, 6297107317420286, !1, [[11, "wintest2"], [7, [0, 0]]]]]], [0, null, !1, null, 8527462817187793, [[ - 1, R.prototype.g.Cl, null, 0, !1, !1, !1, 0x69785fee30459, !1]], [[1, V.prototype.e.rc, null, 5661054604260627, !1, [[7, [10, [2, "\u59ff\u52bf: "], [23, "newtile"]]]]], [2, V.prototype.e.rc, null, 0x455892582567c, !1, [[7, [10, [2, "\u64b8: "], [23, "allStep"]]]]]]]]], [0, [!0, "firstTouch"], !1, null, 6520097567065134, [[ - 1, R.prototype.g.td, null, 0, !1, !1, !1, 6520097567065134, !1, [[1, [2, "firstTouch"]]]]], [], [[0, null, !1, null, 0xbfe560400df96, [[0, X.prototype.g.kj, null, 1, !1, !1, !1, 665449462250912, !1]], [[18, S.prototype.e.Sc, null, 7086957559433478, !1], [19, V.prototype.e.Sc, null, 6819141328407858, !1], [ - 1, R.prototype.e.fb, null, 5859446879068699, !1, [[11, "state"], [7, [0, 1]]]], [4, V.prototype.e.rc, null, 0xeb0a0041fd286, !1, [[7, [2, "0:30s"]]]], [ - 1, R.prototype.e.dh, null, 0xec4d620f8708f, !1, [[1, [2, "timer"]], [3, 1]]], [ - 1, R.prototype.e.dh, null, 7782912429107848, !1, [[1, [2, "firstTouch"]], [3, 0]]], [7, V.prototype.e.rc, null, 97704176875328, !1, [[7, [2, "\u8ba1\u65f6\u5f00\u59cb\uff01"]]]]]]]], [0, [!0, "function"], !1, null, 0xf5ff9f4ce7058, [[ - 1, R.prototype.g.td, null, 0, !1, !1, !1, 0xf5ff9f4ce7058, !1, [[1, [2, "function"]]]]], [], [[0, null, !1, null, 0x5580229f4bd2d, [[17, Ib.prototype.g.Ff, null, 2, !1, !1, !1, 467792644028138, !1, [[1, [2, "checkArray"]]]]], [], [[0, null, !1, null, 6516505179307372, [[14, T.prototype.g.dj, null, 0, !0, !1, !1, 0xc4fff62d6433d, !1, [[3, 2]]], [14, T.prototype.g.fj, null, 0, !1, !1, !1, 8377370364483197, !1, [[8, 0], [7, [23, "rndn1"]]]]], [[ - 1, R.prototype.e.fb, null, 0x4acd811f6f33f, !1, [[11, "wintest1"], [7, [0, 1]]]]]], [0, null, !1, null, 6299650794570212, [[14, T.prototype.g.dj, null, 0, !0, !1, !1, 0x7b1ddb3f62b95, !1, [[3, 2]]], [14, T.prototype.g.fj, null, 0, !1, !1, !1, 8877190438200088, !1, [[8, 0], [7, [23, "rndn2"]]]]], [[ - 1, R.prototype.e.fb, null, 4672813432312855, !1, [[11, "wintest2"], [7, [0, 1]]]]]]]]]], [0, [!1, "timer"], !1, null, 0x82e5eec07e187, [[ - 1, R.prototype.g.td, null, 0, !1, !1, !1, 0x82e5eec07e187, !1, [[1, [2, "timer"]]]]], [], [[1, "tileid", 0, 1, !0, !1, 6642817951285725, !1], [0, null, !1, null, 4858281284855332, [[ - 1, R.prototype.g.gj, null, 0, !1, !1, !1, 5294835524464211, !1, [[0, [1, 1]]]], [ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 9438101616507164, !1, [[11, "state"], [8, 0], [7, [0, 1]]]]], [[ - 1, R.prototype.e.jm, null, 0xaa0b6f910a28a, !1, [[11, "altime"], [7, [0, 1]]]], [4, V.prototype.e.rc, null, 7252057416347254, !1, [[7, [10, [10, [2, "0:"], [23, "altime"]], [2, "s"]]]]]]], [0, null, !1, null, 0xdc831a4949e87, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 626443217452192, !1, [[11, "altime"], [8, 3], [7, [0, 0]]]], [ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 0xb37d50664e139, !1, [[11, "state"], [8, 0], [7, [0, 1]]]]], [[ - 1, R.prototype.e.fb, null, 8155674551104864, !1, [[11, "state"], [7, [0, 1]]]], [ - 1, R.prototype.e.dh, null, 908086306007648, !1, [[1, [2, "touch"]], [3, 0]]], [16, S.prototype.e.Sc, null, 9688231096536448, !1], [ - 1, R.prototype.e.ca, null, 0x5573cb12d67e7, !1, [[11, "altime"], [7, [0, 0]]]], [ - 1, R.prototype.e.ca, null, 0x935d4c5c35ecf, !1, [[11, "mywin"], [7, [19, R.prototype.k.Jf, [[5, [0, 11], [19, R.prototype.k["int"], [[5, [7, [23, "newtile"], [0, 4]], [7, [5, [23, "allStep"], [7, [23, "alltile"], [0, 2]]], [0, 5]]]]]], [0, 0], [0, 10]]]]]]]], [0, null, !1, null, 9457579943248084, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 7915531063993754, !1, [[11, "state"], [8, 0], [7, [0, 2]]]]], [[ - 1, R.prototype.e.fb, null, 0xa4622fee4a890, !1, [[11, "state"], [7, [0, 1]]]], [4, V.prototype.e.Uc, null, 6828804922198397, !1, [[0, [0, 160]]]], [4, V.prototype.e.rc, null, 9561911597589, !1, [[7, [2, "YOU WIN !"]]]], [7, V.prototype.e.Uc, null, 7508388777810721, !1, [[0, [0, 270]]]], [7, V.prototype.e.rc, null, 0x4d578b8ce18f0, !1, [[7, [10, [10, [10, [10, [10, [10, [10, [2, "\u4f60\u64b8\u4e86"], [23, "allStep"]], [2, "\u53d1 \u6da8\u4e86"]], [23, "newtile"]], [2, "\u4e2a\u65b0\u59ff\u52bf\uff01 \u6218\u80dc\u4e86"]], [19, R.prototype.k.rb, [[23, "winWord"], [19, R.prototype.k.Jf, [[23, "mywin"], [0, 0], [0, 10]]], [2, "|"]]]], [2, "%\u7684\u5bf9\u624b\uff0c\u4f60\u771f\u662f"]], [19, R.prototype.k.rb, [[23, "winTitle"], [19, R.prototype.k.Jf, [[23, "mywin"], [0, 0], [0, 10]]], [2, "|"]]]]]]], [ - 1, R.prototype.e.Gb, null, 5823743103084376, !1, [[4, 16], [5, [2, "tile"]], [0, [0, 240]], [0, [0, 410]]]], [20, Lb.prototype.e.im, null, 4654148447015979, !1, [[1, [2, "zskt_mytiles"]], [7, [23, "myTileList"]]]], [8, U.prototype.e.Dl, null, 8654237041826829, !1, [[1, [10, [10, [10, [10, [10, [10, [2, "|"], [23, "allStep"]], [2, "|"]], [23, "newtile"]], [2, "|"]], [19, R.prototype.k.rb, [[23, "winWord"], [19, R.prototype.k.Jf, [[23, "mywin"], [0, 0], [0, 10]]], [2, "|"]]]], [2, "|"]]]]], [ - 1, R.prototype.e.lm, null, 0x4a5c5f6c5e396, !1, [[0, [0, 2]]]], [ - 1, R.prototype.e.Gb, null, 7919689654184811, !1, [[4, 5], [5, [2, "ui"]], [0, [0, 120]], [0, [0, 540]]]], [ - 1, R.prototype.e.Gb, null, 6672147871860247, !1, [[4, 6], [5, [2, "ui"]], [0, [0, 360]], [0, [0, 540]]]]]], [0, null, !1, null, 5924340329778063, [[ - 1, R.prototype.g.gj, null, 0, !1, !1, !1, 9948250610949532, !1, [[0, [0, 1]]]], [ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 4680442846391458, !1, [[11, "state"], [8, 0], [7, [0, 3]]]]], [[16, S.prototype.e.ud, null, 0xb53f7f97321fd, !1, [[0, [19, R.prototype.k["int"], [[19, R.prototype.k.rb, [[23, "myTileList"], [23, "tileid"], [2, "|"]]]]]]]], [ - 1, R.prototype.e.fb, null, 481344595926292, !1, [[11, "tileid"], [7, [0, 1]]]]], [[0, null, !1, null, 5378028711460231, [[ - 1, R.prototype.g.ta, null, 0, !1, !1, !1, 0x6f81104c3eecf, !1, [[11, "tileid"], [8, 5], [7, [5, [19, R.prototype.k.Yo, [[23, "myTileList"], [2, "|"]]], [0, 1]]]]]], [[ - 1, R.prototype.e.ca, null, 5826923194930331, !1, [[11, "tileid"], [7, [0, 1]]]]]]]]]], [0, [!0, "Share"], !1, null, 0xe0eddc5aa0367, [[ - 1, R.prototype.g.td, null, 0, !1, !1, !1, 0xe0eddc5aa0367, !1, [[1, [2, "Share"]]]]], [], [[0, null, !1, null, 7113701018604153, [[0, X.prototype.g.Ce, null, 1, !1, !1, !1, 0x946ce610ec245, !1, [[4, 5]]]], [[8, U.prototype.e.fm, null, 0x88ee94c72e25f, !1]]], [0, null, !1, null, 0x91808beff9aee, [[0, X.prototype.g.Ce, null, 1, !1, !1, !1, 8220537909417398, !1, [[4, 6]]]], [[5, V.prototype.e.Uc, null, 0x946d97b6d029d, !1, [[0, [0, -50]]]], [6, V.prototype.e.Uc, null, 0xc32dfc5c2d14d, !1, [[0, [0, -50]]]], [2, V.prototype.e.Uc, null, 0x9caa09b662607, !1, [[0, [0, -50]]]], [1, V.prototype.e.Uc, null, 9990608640574592, !1, [[0, [0, -50]]]], [ - 1, R.prototype.e.Gb, null, 8130992224028287, !1, [[4, 22], [5, [2, "share"]], [0, [0, 0]], [0, [0, 0]]]], [22, Kb.prototype.e.Vd, null, 9815126075519536, !1, [[0, [0, 640]], [0, [0, 1136]]]], [ - 1, R.prototype.e.Gb, null, 0x5ef08f2b5d583, !1, [[4, 9], [5, [2, "share"]], [0, [0, 450]], [0, [0, 32]]]], [ - 1, R.prototype.e.Gb, null, 0xc0a638aea18f0, !1, [[4, 11], [5, [2, "share"]], [0, [0, 140]], [0, [0, 48]]]], [11, V.prototype.e.rc, null, 458045523066252, !1, [[7, [2, "\u70b9\u8fd9\u91cc\u5206\u4eab\u5230\u670b\u53cb\u5708"]]]], [ - 1, R.prototype.e.Gb, null, 6215688733939034, !1, [[4, 12], [5, [2, "share"]], [0, [0, 48]], [0, [0, 500]]]], [12, V.prototype.e.rc, null, 5179178005750344, !1, [[7, [2, "\u8fd4\u56de"]]]]]], [0, null, !1, null, 9923530633518080, [[0, X.prototype.g.Ce, null, 1, !1, !1, !1, 4509220693250104, !1, [[4, 12]]]], [[12, V.prototype.e.Sc, null, 6172790498577131, !1], [5, V.prototype.e.Uc, null, 9098199616300840, !1, [[0, [0, 540]]]], [6, V.prototype.e.Uc, null, 0x8eab28734d28f, !1, [[0, [0, 540]]]], [11, V.prototype.e.Sc, null, 0xb2fd2aebf57fd, !1], [9, S.prototype.e.Sc, null, 9093150270766576, !1], [22, Kb.prototype.e.Sc, null, 420584074841778, !1]]]]]]]], [], "media/", !1, 480, 854, 3, !1, !0, !0, "1.0.0.0", !0, !1, 0, 1, 29, !1, !0, 1, !0, []]
  6298. };