c2runtime.js 337 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239
  1. 'use strict';
  2. var aa, ba, ca, da, fa, ga, ha, ja, z, la, ma, na, pa, qa, sa, ta, ua, va, wa, xa, ya, za, Ba, A, Da, Fa, Ha, Ia, Ja, G, Ka, La, Ma, Na, Oa, Pa, Ra, Sa, Ta, Ua, Va, Wa, Xa, Ya, Za, $a, cb, db, eb, fb, gb, hb, ib, jb, kb, lb, mb, pb, qb, rb, sb, tb, ub, vb, wb, xb, yb, zb, Ab, Bb, Cb, Hb, Ib, Jb, Kb, Lb, Mb, Nb, Ob, Pb, Qb, Rb, Sb, Tb, Ub, Vb, Wb, Xb, Yb, Zb, $b, ac, bc, cc, dc, ec, fc, gc, hc, ic, _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function (t) {
  3. return typeof t;
  4. } : function (t) {
  5. return t && 'function' == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t;
  6. }, jc = {};
  7. 'function' != typeof Object.getPrototypeOf && (Object.getPrototypeOf = 'object' === _typeof('test'.__proto__) ? function (t) {
  8. return t.__proto__;
  9. } : function (t) {
  10. return t.constructor.prototype;
  11. }), function () {
  12. function t(t, i, s, h) {
  13. this.set(t, i, s, h);
  14. }
  15. function i() {
  16. this.ab = this.$a = this.cb = this.bb = this.ob = this.nb = this.Ga = this.Fa = 0;
  17. }
  18. function s(t, i, s, h) {
  19. d = t < i ? s < h ? (b = t < s ? t : s, h < i ? i : h) : (b = t < h ? t : h, s < i ? i : s) : s < h ? (b = i < s ? i : s, h < t ? t : h) : (b = i < h ? i : h, s < t ? t : s);
  20. }
  21. function h() {
  22. this.items = this.Fd = null, this.Nh = 0, w && (this.Fd = new Set()), this.Ug = [], this.ue = !0;
  23. }
  24. function e(t) {
  25. k[x++] = t;
  26. }
  27. function n() {
  28. this.Z = this.Vk = this.y = this.Il = 0;
  29. }
  30. function o(t) {
  31. this.lb = [], this.gj = this.ij = this.jj = this.hj = 0, this.oi(t);
  32. }
  33. function r(t, i) {
  34. this.Ml = t, this.Ll = i, this.cells = {};
  35. }
  36. function a(t, i) {
  37. this.Ml = t, this.Ll = i, this.cells = {};
  38. }
  39. function c(t, i, s) {
  40. var h;
  41. return T.length ? ((h = T.pop()).rm = t, h.x = i, h.y = s, h) : new ba(t, i, s);
  42. }
  43. function p(t, i, s) {
  44. this.rm = t, this.x = i, this.y = s, this.sb = new ca();
  45. }
  46. function u(t, i, s) {
  47. var h;
  48. return E.length ? ((h = E.pop()).rm = t, h.x = i, h.y = s, h) : new da(t, i, s);
  49. }
  50. function f(t, i, s) {
  51. this.rm = t, this.x = i, this.y = s, this.sb = [], this.mg = !0, this.Cd = new ca(), this.eh = !1;
  52. }
  53. function l(t, i) {
  54. return t.pd - i.pd;
  55. }
  56. fa = function (t) {
  57. window.console && window.console.log && window.console.log(t);
  58. }, ga = function (t) {
  59. window.console && window.console.error && window.console.error(t);
  60. }, aa = function (t) {
  61. return t;
  62. }, ha = function (t) {
  63. return void 0 === t;
  64. }, ja = function (t) {
  65. return 'number' == typeof t;
  66. }, z = function (t) {
  67. return 'string' == typeof t;
  68. }, la = function (t) {
  69. return 0 < t && 0 == (t - 1 & t);
  70. }, ma = function (t) {
  71. --t;
  72. for (var i = 1; i < 32; i <<= 1)
  73. t |= t >> i;
  74. return t + 1;
  75. }, na = function (t) {
  76. return t < 0 ? -t : t;
  77. }, pa = function (t, i) {
  78. return i < t ? t : i;
  79. }, qa = function (t, i) {
  80. return t < i ? t : i;
  81. }, sa = Math.PI, ta = function (t) {
  82. return 0 <= t ? 0 | t : (0 | t) - 1;
  83. }, ua = function (t) {
  84. var i = 0 | t;
  85. return i === t ? i : 1 + i;
  86. }, va = function (t, i, s, h, e, n, o, r) {
  87. var a, c, p, u;
  88. return p = e < o ? (u = e, o) : (u = o, e), !((a = t < s ? (c = t, s) : (c = s, t)) < u || p < c) && (p = n < r ? (u = n, r) : (u = r, n), !((a = i < h ? (c = i, h) : (c = h, i)) < u || p < c) && (a = e - t + o - s, c = n - i + r - h, r = na((i = h - i) * (e = o - e) - (n = r - n) * (t = s - t)), !(na(e * c - n * a) > r) && na(t * c - i * a) <= r));
  89. }, t.prototype.set = function (t, i, s, h) {
  90. this.left = t, this.top = i, this.right = s, this.bottom = h;
  91. }, t.prototype.Vf = function (t) {
  92. this.left = t.left, this.top = t.top, this.right = t.right, this.bottom = t.bottom;
  93. }, t.prototype.width = function () {
  94. return this.right - this.left;
  95. }, t.prototype.height = function () {
  96. return this.bottom - this.top;
  97. }, t.prototype.offset = function (t, i) {
  98. return this.left += t, this.top += i, this.right += t, this.bottom += i, this;
  99. }, t.prototype.normalize = function () {
  100. var t = 0;
  101. this.left > this.right && (t = this.left, this.left = this.right, this.right = t), this.top > this.bottom && (t = this.top, this.top = this.bottom, this.bottom = t);
  102. }, t.prototype.Ww = function (t) {
  103. return !(t.right < this.left || t.bottom < this.top || t.left > this.right || t.top > this.bottom);
  104. }, t.prototype.Xw = function (t, i, s) {
  105. return !(t.right + i < this.left || t.bottom + s < this.top || t.left + i > this.right || t.top + s > this.bottom);
  106. }, t.prototype.Ib = function (t, i) {
  107. return t >= this.left && t <= this.right && i >= this.top && i <= this.bottom;
  108. }, t.prototype.oh = function (t) {
  109. return this.left === t.left && this.top === t.top && this.right === t.right && this.bottom === t.bottom;
  110. }, wa = t, i.prototype.ni = function (t) {
  111. this.Fa = t.left, this.Ga = t.top, this.nb = t.right, this.ob = t.top, this.bb = t.right, this.cb = t.bottom, this.$a = t.left, this.ab = t.bottom;
  112. }, i.prototype.Br = function (t, i) {
  113. if (0 === i)
  114. this.ni(t);
  115. else {
  116. var s = Math.sin(i), h = Math.cos(i), e = t.left * s, n = t.top * s, o = t.right * s, r = (s = t.bottom * s, t.left * h), a = t.top * h, c = t.right * h;
  117. h = t.bottom * h;
  118. this.Fa = r - n, this.Ga = a + e, this.nb = c - n, this.ob = a + o, this.bb = c - s, this.cb = h + o, this.$a = r - s, this.ab = h + e;
  119. }
  120. }, i.prototype.offset = function (t, i) {
  121. return this.Fa += t, this.Ga += i, this.nb += t, this.ob += i, this.bb += t, this.cb += i, this.$a += t, this.ab += i, this;
  122. };
  123. var b = 0, d = 0;
  124. i.prototype.To = function (t) {
  125. s(this.Fa, this.nb, this.bb, this.$a), t.left = b, t.right = d, s(this.Ga, this.ob, this.cb, this.ab), t.top = b, t.bottom = d;
  126. }, i.prototype.Ib = function (t, i) {
  127. var s = this.Fa, h = this.Ga, e = this.nb - s, n = this.ob - h, o = this.bb - s, r = this.cb - h, a = t - s, c = i - h, p = e * o + n * r, u = o * o + r * r, f = o * a + r * c, l = 1 / ((b = e * e + n * n) * u - p * p), b = (b * f - p * (n = e * a + n * c)) * l;
  128. return 0 <= (e = (u * n - p * f) * l) && 0 < b && e + b < 1 || (b = ((b = (e = this.$a - s) * e + (n = this.ab - h) * n) * f - (p = e * o + n * r) * (n = e * a + n * c)) * (l = 1 / (b * u - p * p)), 0 <= (e = (u * n - p * f) * l) && 0 < b && e + b < 1);
  129. }, i.prototype.pc = function (t, i) {
  130. if (i)
  131. switch (t) {
  132. case 0:
  133. return this.Fa;
  134. case 1:
  135. return this.nb;
  136. case 2:
  137. return this.bb;
  138. case 3:
  139. return this.$a;
  140. case 4:
  141. default:
  142. return this.Fa;
  143. }
  144. else
  145. switch (t) {
  146. case 0:
  147. return this.Ga;
  148. case 1:
  149. return this.ob;
  150. case 2:
  151. return this.cb;
  152. case 3:
  153. return this.ab;
  154. case 4:
  155. default:
  156. return this.Ga;
  157. }
  158. }, i.prototype.Cq = function () {
  159. return (this.Fa + this.nb + this.bb + this.$a) / 4;
  160. }, i.prototype.Dq = function () {
  161. return (this.Ga + this.ob + this.cb + this.ab) / 4;
  162. }, i.prototype.Kp = function (t) {
  163. var i, s, h, e, n, o, r, a, c = t.Cq(), p = t.Dq();
  164. if (this.Ib(c, p))
  165. return !0;
  166. if (c = this.Cq(), p = this.Dq(), t.Ib(c, p))
  167. return !0;
  168. for (r = 0; r < 4; r++)
  169. for (a = 0; a < 4; a++)
  170. if (c = this.pc(r, !0), p = this.pc(r, !1), i = this.pc(r + 1, !0), s = this.pc(r + 1, !1), h = t.pc(a, !0), e = t.pc(a, !1), n = t.pc(a + 1, !0), o = t.pc(a + 1, !1), va(c, p, i, s, h, e, n, o))
  171. return !0;
  172. return !1;
  173. }, xa = i, ya = function (t, i) {
  174. for (var s in i)
  175. i.hasOwnProperty(s) && (t[s] = i[s]);
  176. return t;
  177. }, za = function (t, i) {
  178. var s, h;
  179. if (!((i = ta(i)) < 0 || i >= t.length)) {
  180. for (s = i, h = t.length - 1; s < h; s++)
  181. t[s] = t[s + 1];
  182. Ba(t, h);
  183. }
  184. }, Ba = function (t, i) {
  185. t.length = i;
  186. }, A = function (t) {
  187. Ba(t, 0);
  188. }, Da = function (t, i) {
  189. var s, h;
  190. for (A(t), s = 0, h = i.length; s < h; ++s)
  191. t[s] = i[s];
  192. }, Fa = function (t, i) {
  193. t.push.apply(t, i);
  194. }, Ha = function (t, i) {
  195. var s, h;
  196. for (s = 0, h = t.length; s < h; ++s)
  197. if (t[s] === i)
  198. return s;
  199. return -1;
  200. }, Ia = function (t, i) {
  201. var s = Ha(t, i);
  202. -1 !== s && za(t, s);
  203. }, Ja = function (t, i, s) {
  204. return t < i ? i : s < t ? s : t;
  205. }, G = function (t) {
  206. return t / (180 / sa);
  207. }, Ka = function (t) {
  208. return 180 / sa * t;
  209. }, La = function (t) {
  210. return (t %= 360) < 0 && (t += 360), t;
  211. }, Ma = function (t) {
  212. return (t %= 2 * sa) < 0 && (t += 2 * sa), t;
  213. }, Na = function (t) {
  214. return La(Ka(t));
  215. }, Oa = function (t) {
  216. return Ma(G(t));
  217. }, Pa = function (t, i, s, h) {
  218. return Math.atan2(h - i, s - t);
  219. }, Ra = function (t, i) {
  220. if (t === i)
  221. return 0;
  222. var s = Math.sin(t), h = Math.cos(t);
  223. return 1 <= (s = s * Math.sin(i) + h * Math.cos(i)) ? 0 : s <= -1 ? sa : Math.acos(s);
  224. }, Sa = function (t, i, s) {
  225. var h = Math.sin(t), e = Math.cos(t), n = Math.sin(i), o = Math.cos(i);
  226. return Math.acos(h * n + e * o) > s ? Ma(0 < e * n - h * o ? t + s : t - s) : Ma(i);
  227. }, Ta = function (t, i) {
  228. var s = Math.sin(t);
  229. return Math.cos(t) * Math.sin(i) - s * Math.cos(i) <= 0;
  230. }, Ua = function (t, i, s, h, e, n) {
  231. if (0 === s)
  232. return n ? t : i;
  233. var o = Math.sin(s), r = (t -= h) * o;
  234. return t = t * (s = Math.cos(s)) - (i -= e) * o, i = i * s + r, n ? t + h : i + e;
  235. }, Va = function (t, i, s, h) {
  236. return t = s - t, i = h - i, Math.sqrt(t * t + i * i);
  237. }, Wa = function (t, i) {
  238. return !t != !i;
  239. }, Xa = function (t) {
  240. for (var i in t)
  241. if (t.hasOwnProperty(i))
  242. return !0;
  243. return !1;
  244. }, Ya = function (t) {
  245. for (var i in t)
  246. t.hasOwnProperty(i) && delete t[i];
  247. };
  248. var g = +new Date(), y = !(Za = function () {
  249. if (void 0 !== window.performance) {
  250. var t = window.performance;
  251. if (void 0 !== t.now)
  252. return t.now();
  253. if (void 0 !== t.webkitNow)
  254. return t.webkitNow();
  255. if (void 0 !== t.mozNow)
  256. return t.mozNow();
  257. if (void 0 !== t.msNow)
  258. return t.msNow();
  259. }
  260. return Date.now() - g;
  261. }), v = y = !1, m = !1;
  262. 'undefined' != typeof window && (y = !(y = /chrome/i.test(navigator.userAgent) || /chromium/i.test(navigator.userAgent)) && /safari/i.test(navigator.userAgent), v = /(iphone|ipod|ipad)/i.test(navigator.userAgent), m = window.c2ejecta);
  263. var w = !y && !m && !v && 'undefined' != typeof Set && void 0 !== Set.prototype.forEach;
  264. h.prototype.contains = function (t) {
  265. return !this.Yd() && (w ? this.Fd.has(t) : this.items && this.items.hasOwnProperty(t));
  266. }, h.prototype.add = function (t) {
  267. if (w)
  268. this.Fd.has(t) || (this.Fd.add(t), this.ue = !1);
  269. else {
  270. var i = t.toString(), s = this.items;
  271. s ? s.hasOwnProperty(i) || (s[i] = t, this.Nh++, this.ue = !1) : (this.items = {}, this.items[i] = t, this.Nh = 1, this.ue = !1);
  272. }
  273. }, h.prototype.remove = function (t) {
  274. if (!this.Yd())
  275. if (w)
  276. this.Fd.has(t) && (this.Fd.delete(t), this.ue = !1);
  277. else if (this.items) {
  278. t = t.toString();
  279. var i = this.items;
  280. i.hasOwnProperty(t) && (delete i[t], this.Nh--, this.ue = !1);
  281. }
  282. }, h.prototype.clear = function () {
  283. this.Yd() || (w ? this.Fd.clear() : (this.items = null, this.Nh = 0), A(this.Ug), this.ue = !0);
  284. }, h.prototype.Yd = function () {
  285. return 0 === this.count();
  286. }, h.prototype.count = function () {
  287. return w ? this.Fd.size : this.Nh;
  288. };
  289. var k = null, x = 0;
  290. h.prototype.My = function () {
  291. if (!this.ue) {
  292. if (w)
  293. A(this.Ug), k = this.Ug, x = 0, this.Fd.forEach(e), k = null, x = 0;
  294. else {
  295. var t = this.Ug;
  296. A(t);
  297. var i, s = 0, h = this.items;
  298. if (h)
  299. for (i in h)
  300. h.hasOwnProperty(i) && (t[s++] = h[i]);
  301. }
  302. this.ue = !0;
  303. }
  304. }, h.prototype.We = function () {
  305. return this.My(), this.Ug;
  306. }, new (ca = h)(), $a = function (t, i) {
  307. w ? cb(t, i.Fd) : db(t, i.We());
  308. }, cb = function (t, i) {
  309. var s, h, e, n;
  310. for (h = s = 0, e = t.length; s < e; ++s)
  311. n = t[s], i.has(n) || (t[h++] = n);
  312. Ba(t, h);
  313. }, db = function (t, i) {
  314. var s, h, e, n;
  315. for (h = s = 0, e = t.length; s < e; ++s)
  316. n = t[s], -1 === Ha(i, n) && (t[h++] = n);
  317. Ba(t, h);
  318. }, n.prototype.add = function (t) {
  319. this.y = t - this.Il, this.Vk = this.Z + this.y, this.Il = this.Vk - this.Z - this.y, this.Z = this.Vk;
  320. }, n.prototype.reset = function () {
  321. this.Z = this.Vk = this.y = this.Il = 0;
  322. }, eb = n, fb = function (t) {
  323. return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
  324. }, o.prototype.oi = function (t) {
  325. this.hr = t, this.kd = t.length / 2, this.lb.length = t.length, this.lj = this.mj = -1, this.Wo = 0;
  326. }, o.prototype.jg = function () {
  327. return !this.hr.length;
  328. }, o.prototype.Aa = function () {
  329. for (var t, i, s = this.lb, h = s[0], e = h, n = s[1], o = n, r = 1, a = this.kd; r < a; ++r)
  330. (t = s[i = 2 * r]) < h && (h = t), e < t && (e = t), (i = s[i + 1]) < n && (n = i), o < i && (o = i);
  331. this.hj = h, this.ij = e, this.jj = n, this.gj = o;
  332. }, o.prototype.ni = function (t, i, s) {
  333. this.lb.length = 8, this.kd = 4;
  334. var h = this.lb;
  335. h[0] = t.left - i, h[1] = t.top - s, h[2] = t.right - i, h[3] = t.top - s, h[4] = t.right - i, h[5] = t.bottom - s, h[6] = t.left - i, h[7] = t.bottom - s, this.mj = t.right - t.left, this.lj = t.bottom - t.top, this.Aa();
  336. }, o.prototype.Lg = function (t, i, s, h, e) {
  337. this.lb.length = 8, this.kd = 4;
  338. var n = this.lb;
  339. n[0] = t.Fa - i, n[1] = t.Ga - s, n[2] = t.nb - i, n[3] = t.ob - s, n[4] = t.bb - i, n[5] = t.cb - s, n[6] = t.$a - i, n[7] = t.ab - s, this.mj = h, this.lj = e, this.Aa();
  340. }, o.prototype.Ar = function (t) {
  341. this.kd = t.kd, Da(this.lb, t.lb), this.hj = t.hj, this.jj, t.jj, this.ij = t.ij, this.gj = t.gj;
  342. }, o.prototype.Sf = function (t, i, s) {
  343. if (this.mj !== t || this.lj !== i || this.Wo !== s) {
  344. this.mj = t, this.lj = i, this.Wo = s;
  345. var h, e, n, o, r, a = 0, c = 1, p = this.hr, u = this.lb;
  346. for (0 !== s && (a = Math.sin(s), c = Math.cos(s)), s = 0, n = this.kd; s < n; s++)
  347. e = 1 + (h = 2 * s), o = p[h] * t, r = p[e] * i, u[h] = o * c - r * a, u[e] = r * c + o * a;
  348. this.Aa();
  349. }
  350. }, o.prototype.Ib = function (t, i) {
  351. var s = this.lb;
  352. if (t === s[0] && i === s[1])
  353. return !0;
  354. var h, e, n, o, r, a = this.kd, c = this.hj - 110, p = this.jj - 101, u = this.ij + 131, f = this.gj + 120, l = 0, b = 0;
  355. for (h = 0; h < a; h++)
  356. n = (h + 1) % a * 2, o = s[e = 2 * h], e = s[e + 1], r = s[n], n = s[n + 1], va(c, p, t, i, o, e, r, n) && l++, va(u, f, t, i, o, e, r, n) && b++;
  357. return 1 == l % 2 || 1 == b % 2;
  358. }, o.prototype.Ch = function (t, i, s) {
  359. var h, e, n, o, r, a, c, p, u, f, l, b, d = t.lb, g = this.lb;
  360. if (this.Ib(d[0] + i, d[1] + s) || t.Ib(g[0] - i, g[1] - s))
  361. return !0;
  362. for (h = 0, o = this.kd; h < o; h++)
  363. for (n = (h + 1) % o * 2, p = g[e = 2 * h], e = g[e + 1], u = g[n], f = g[n + 1], n = 0, c = t.kd; n < c; n++)
  364. if (a = (n + 1) % c * 2, l = d[r = 2 * n] + i, r = d[r + 1] + s, b = d[a] + i, a = d[a + 1] + s, va(p, e, u, f, l, r, b, a))
  365. return !0;
  366. return !1;
  367. }, gb = o, r.prototype.Ge = function (t, i, s) {
  368. var h;
  369. return (h = this.cells[t]) ? (h = h[i]) ? h : s ? (h = c(this, t, i), this.cells[t][i] = h) : null : s ? (h = c(this, t, i), this.cells[t] = {}, this.cells[t][i] = h) : null;
  370. }, r.prototype.Ub = function (t) {
  371. return ta(t / this.Ml);
  372. }, r.prototype.Vb = function (t) {
  373. return ta(t / this.Ll);
  374. }, r.prototype.update = function (t, i, s) {
  375. var h, e, n, o, r;
  376. if (i)
  377. for (h = i.left, e = i.right; h <= e; ++h)
  378. for (n = i.top, o = i.bottom; n <= o; ++n)
  379. s && s.Ib(h, n) || (r = this.Ge(h, n, !1)) && (r.remove(t), r.Yd() && (r.sb.clear(), T.length < 1000 && T.push(r), this.cells[h][n] = null));
  380. if (s)
  381. for (h = s.left, e = s.right; h <= e; ++h)
  382. for (n = s.top, o = s.bottom; n <= o; ++n)
  383. i && i.Ib(h, n) || this.Ge(h, n, !0).zm(t);
  384. }, r.prototype.Fk = function (t, i) {
  385. var s, h, e, n, o, r;
  386. for (s = this.Ub(t.left), e = this.Vb(t.top), h = this.Ub(t.right), o = this.Vb(t.bottom); s <= h; ++s)
  387. for (n = e; n <= o; ++n)
  388. (r = this.Ge(s, n, !1)) && r.dump(i);
  389. }, hb = r, a.prototype.Ge = function (t, i, s) {
  390. var h;
  391. return (h = this.cells[t]) ? (h = h[i]) ? h : s ? (h = u(this, t, i), this.cells[t][i] = h) : null : s ? (h = u(this, t, i), this.cells[t] = {}, this.cells[t][i] = h) : null;
  392. }, a.prototype.Ub = function (t) {
  393. return ta(t / this.Ml);
  394. }, a.prototype.Vb = function (t) {
  395. return ta(t / this.Ll);
  396. }, a.prototype.update = function (t, i, s) {
  397. var h, e, n, o, r;
  398. if (i)
  399. for (h = i.left, e = i.right; h <= e; ++h)
  400. for (n = i.top, o = i.bottom; n <= o; ++n)
  401. s && s.Ib(h, n) || (r = this.Ge(h, n, !1)) && (r.remove(t), r.Yd() && (r.reset(), E.length < 1000 && E.push(r), this.cells[h][n] = null));
  402. if (s)
  403. for (h = s.left, e = s.right; h <= e; ++h)
  404. for (n = s.top, o = s.bottom; n <= o; ++n)
  405. i && i.Ib(h, n) || this.Ge(h, n, !0).zm(t);
  406. }, a.prototype.Fk = function (t, i, s, h, e) {
  407. var n, o;
  408. for (t = this.Ub(t), i = this.Vb(i), s = this.Ub(s), n = this.Vb(h); t <= s; ++t)
  409. for (h = i; h <= n; ++h)
  410. (o = this.Ge(t, h, !1)) && o.dump(e);
  411. }, a.prototype.vx = function (t) {
  412. var i, s, h, e, n;
  413. for (i = t.left, h = t.top, s = t.right, e = t.bottom; i <= s; ++i)
  414. for (t = h; t <= e; ++t)
  415. (n = this.Ge(i, t, !1)) && (n.mg = !1);
  416. }, ib = a;
  417. var T = [];
  418. p.prototype.Yd = function () {
  419. return this.sb.Yd();
  420. }, p.prototype.zm = function (t) {
  421. this.sb.add(t);
  422. }, p.prototype.remove = function (t) {
  423. this.sb.remove(t);
  424. }, p.prototype.dump = function (t) {
  425. Fa(t, this.sb.We());
  426. }, ba = p;
  427. var E = [];
  428. f.prototype.Yd = function () {
  429. return !this.sb.length || !(this.sb.length > this.Cd.count()) && (this.fm(), !0);
  430. }, f.prototype.zm = function (t) {
  431. this.Cd.contains(t) ? (this.Cd.remove(t), this.Cd.Yd() && (this.eh = !1)) : this.sb.length ? (this.sb[this.sb.length - 1].wd() > t.wd() && (this.mg = !1), this.sb.push(t)) : (this.sb.push(t), this.mg = !0);
  432. }, f.prototype.remove = function (t) {
  433. this.Cd.add(t), this.eh = !0, 30 <= this.Cd.count() && this.fm();
  434. }, f.prototype.fm = function () {
  435. this.eh && (this.Cd.count() === this.sb.length ? this.reset() : ($a(this.sb, this.Cd), this.Cd.clear(), this.eh = !1));
  436. }, f.prototype.Av = function () {
  437. this.mg || (this.sb.sort(l), this.mg = !0);
  438. }, f.prototype.reset = function () {
  439. A(this.sb), this.mg = !0, this.Cd.clear(), this.eh = !1;
  440. }, f.prototype.dump = function (t) {
  441. this.fm(), this.Av(), this.sb.length && t.push(this.sb);
  442. }, da = f;
  443. var j = 'lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop'.split(' ');
  444. jb = function (t) {
  445. return t <= 0 || 11 <= t ? 'source-over' : j[t - 1];
  446. }, kb = function (t, i, s) {
  447. if (s)
  448. switch (t.Pb = s.ONE, t.Jb = s.ONE_MINUS_SRC_ALPHA, i) {
  449. case 1:
  450. t.Pb = s.ONE, t.Jb = s.ONE;
  451. break;
  452. case 3:
  453. t.Pb = s.ONE, t.Jb = s.ZERO;
  454. break;
  455. case 4:
  456. t.Pb = s.ONE_MINUS_DST_ALPHA, t.Jb = s.ONE;
  457. break;
  458. case 5:
  459. t.Pb = s.DST_ALPHA, t.Jb = s.ZERO;
  460. break;
  461. case 6:
  462. t.Pb = s.ZERO, t.Jb = s.SRC_ALPHA;
  463. break;
  464. case 7:
  465. t.Pb = s.ONE_MINUS_DST_ALPHA, t.Jb = s.ZERO;
  466. break;
  467. case 8:
  468. t.Pb = s.ZERO, t.Jb = s.ONE_MINUS_SRC_ALPHA;
  469. break;
  470. case 9:
  471. t.Pb = s.DST_ALPHA, t.Jb = s.ONE_MINUS_SRC_ALPHA;
  472. break;
  473. case 10:
  474. t.Pb = s.ONE_MINUS_DST_ALPHA, t.Jb = s.SRC_ALPHA;
  475. }
  476. }, lb = function (t) {
  477. return Math.round(1000000 * t) / 1000000;
  478. }, mb = function (t, i) {
  479. return 'string' == typeof t && 'string' == typeof i && t.length === i.length && (t === i || t.toLowerCase() === i.toLowerCase());
  480. }, pb = function (t) {
  481. return !!(!(t = t.target) || t === document || t === window || document && document.body && t === document.body || mb(t.tagName, 'canvas'));
  482. };
  483. }();
  484. var kc = 'undefined' != typeof Float32Array ? Float32Array : Array;
  485. function lc(t) {
  486. var i = new kc(3);
  487. return t && (i[0] = t[0], i[1] = t[1], i[2] = t[2]), i;
  488. }
  489. function mc(t) {
  490. var i = new kc(16);
  491. return t && (i[0] = t[0], i[1] = t[1], i[2] = t[2], i[3] = t[3], i[4] = t[4], i[5] = t[5], i[6] = t[6], i[7] = t[7], i[8] = t[8], i[9] = t[9], i[10] = t[10], i[11] = t[11], i[12] = t[12], i[13] = t[13], i[14] = t[14], i[15] = t[15]), i;
  492. }
  493. function nc(t, i) {
  494. i[0] = t[0], i[1] = t[1], i[2] = t[2], i[3] = t[3], i[4] = t[4], i[5] = t[5], i[6] = t[6], i[7] = t[7], i[8] = t[8], i[9] = t[9], i[10] = t[10], i[11] = t[11], i[12] = t[12], i[13] = t[13], i[14] = t[14], i[15] = t[15];
  495. }
  496. function oc(t, i) {
  497. var s = i[0], h = i[1];
  498. i = i[2], t[0] *= s, t[1] *= s, t[2] *= s, t[3] *= s, t[4] *= h, t[5] *= h, t[6] *= h, t[7] *= h, t[8] *= i, t[9] *= i, t[10] *= i, t[11] *= i;
  499. }
  500. function pc(t, i, s, h) {
  501. h = h || mc();
  502. var e, n, o, r, a, c, p, u, f = t[0], l = t[1];
  503. t = t[2], n = s[0], o = s[1], e = s[2], s = i[1], c = i[2], f === i[0] && l === s && t === c ? ((t = h)[0] = 1, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 1, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 1, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1) : (s = f - i[0], c = l - i[1], p = t - i[2], i = o * (p *= u = 1 / Math.sqrt(s * s + c * c + p * p)) - e * (c *= u), e = e * (s *= u) - n * p, n = n * c - o * s, (u = Math.sqrt(i * i + e * e + n * n)) ? (i *= u = 1 / u, e *= u, n *= u) : n = e = i = 0, o = c * n - p * e, r = p * i - s * n, a = s * e - c * i, (u = Math.sqrt(o * o + r * r + a * a)) ? (o *= u = 1 / u, r *= u, a *= u) : a = r = o = 0, h[0] = i, h[1] = o, h[2] = s, h[3] = 0, h[4] = e, h[5] = r, h[6] = c, h[7] = 0, h[8] = n, h[9] = a, h[10] = p, h[11] = 0, h[12] = -(i * f + e * l + n * t), h[13] = -(o * f + r * l + a * t), h[14] = -(s * f + c * l + p * t), h[15] = 1);
  504. }
  505. function T(t) {
  506. this.b = t, this.fc = [];
  507. }
  508. !function () {
  509. function t(t, i, s) {
  510. this.Je = /msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent), this.height = this.width = 0, this.ya = !!s, this.Yj = this.Eh = !1, this.Ul = 0, this.il = 1, this.Xn = 1000, this.Uy = (this.Xn - this.il) / 32768, this.Jl = lc([0,0,100]), this.kq = lc([0,0,0]), this.Vr = lc([0,1,0]), this.Li = lc([1,1,1]), this.fp = !0, this.ok = mc(), this.zc = mc(), this.Km = mc(), this.Tl = mc(), this.u = t, this.version = 0 === this.u.getParameter(this.u.VERSION).indexOf('WebGL 2') ? 2 : 1, this.Gp();
  511. }
  512. function o(t, i, s) {
  513. this.u = t, this.pi = i, this.name = s, this.Nc = t.getAttribLocation(i, 'aPos'), this.Oe = t.getAttribLocation(i, 'aTex'), this.iq = t.getUniformLocation(i, 'matP'), this.kk = t.getUniformLocation(i, 'matMV'), this.vg = t.getUniformLocation(i, 'opacity'), this.Qm = t.getUniformLocation(i, 'colorFill'), this.jq = t.getUniformLocation(i, 'samplerFront'), this.Th = t.getUniformLocation(i, 'samplerBack'), this.Bf = t.getUniformLocation(i, 'destStart'), this.Af = t.getUniformLocation(i, 'destEnd'), this.Vh = t.getUniformLocation(i, 'seconds'), this.Sm = t.getUniformLocation(i, 'pixelWidth'), this.Rm = t.getUniformLocation(i, 'pixelHeight'), this.Sh = t.getUniformLocation(i, 'layerScale'), this.Rh = t.getUniformLocation(i, 'layerAngle'), this.Wh = t.getUniformLocation(i, 'viewOrigin'), this.Uh = t.getUniformLocation(i, 'scrollPos'), this.Qw = !!(this.Sm || this.Rm || this.Vh || this.Th || this.Bf || this.Af || this.Sh || this.Rh || this.Wh || this.Uh), this.sq = this.tq = -999, this.nk = 1, this.oq = this.nq = 0, this.qq = this.mq = this.lq = 1, this.wq = this.vq = this.uq = this.yq = this.xq = this.pq = 0, this.Jm = [], this.rq = mc(), this.vg && t.uniform1f(this.vg, 1), this.Qm && t.uniform4f(this.Qm, 1, 1, 1, 1), this.jq && t.uniform1i(this.jq, 0), this.Th && t.uniform1i(this.Th, 1), this.Bf && t.uniform2f(this.Bf, 0, 0), this.Af && t.uniform2f(this.Af, 1, 1), this.Sh && t.uniform1f(this.Sh, 1), this.Rh && t.uniform1f(this.Rh, 0), this.Wh && t.uniform2f(this.Wh, 0, 0), this.Uh && t.uniform2f(this.Uh, 0, 0), this.Vh && t.uniform1f(this.Vh, 0), this.pf = !1;
  514. }
  515. function i(t, i) {
  516. return t[0] === i[0] && t[1] === i[1] && t[2] === i[2] && t[3] === i[3] && t[4] === i[4] && t[5] === i[5] && t[6] === i[6] && t[7] === i[7] && t[8] === i[8] && t[9] === i[9] && t[10] === i[10] && t[11] === i[11] && t[12] === i[12] && t[13] === i[13] && t[14] === i[14] && t[15] === i[15];
  517. }
  518. function s(t, i) {
  519. this.type = t, this.k = i, this.u = i.u, this.xd = this.Tb = this.Tq = 0, this.T = this.Vc = null, this.Cr = [];
  520. }
  521. var h = mc();
  522. t.prototype.Gp = function () {
  523. var t, i = this.u;
  524. for (this.Yp = 1, this.wf = this.vf = null, this.wj = 1, i.clearColor(0, 0, 0, 0), i.clear(i.COLOR_BUFFER_BIT), i.enable(i.BLEND), i.blendFunc(i.ONE, i.ONE_MINUS_SRC_ALPHA), i.disable(i.CULL_FACE), i.disable(i.STENCIL_TEST), i.disable(i.DITHER), this.ya ? (i.enable(i.DEPTH_TEST), i.depthFunc(i.LEQUAL)) : i.disable(i.DEPTH_TEST), this.$p = i.ONE, this.Wp = i.ONE_MINUS_SRC_ALPHA, this.fl = new Float32Array(8000 * (this.ya ? 3 : 2)), this.Xk = new Float32Array(16000), this.er = new Float32Array(32000), this.hn = i.createBuffer(), i.bindBuffer(i.ARRAY_BUFFER, this.hn), i.bufferData(i.ARRAY_BUFFER, this.er.byteLength, i.DYNAMIC_DRAW), this.Gi = Array(4), this.vi = Array(4), t = 0; t < 4; t++)
  525. this.Gi[t] = i.createBuffer(), i.bindBuffer(i.ARRAY_BUFFER, this.Gi[t]), i.bufferData(i.ARRAY_BUFFER, this.fl.byteLength, i.DYNAMIC_DRAW), this.vi[t] = i.createBuffer(), i.bindBuffer(i.ARRAY_BUFFER, this.vi[t]), i.bufferData(i.ARRAY_BUFFER, this.Xk.byteLength, i.DYNAMIC_DRAW);
  526. this.Pd = 0, this.Tw = i.createBuffer(), i.bindBuffer(i.ELEMENT_ARRAY_BUFFER, this.Tw);
  527. for (var s = new Uint16Array(12000), h = t = 0; t < 12000;)
  528. s[t++] = h, s[t++] = h + 1, s[t++] = h + 2, s[t++] = h, s[t++] = h + 2, s[t++] = h + 3, h += 4;
  529. for (var e in (i.bufferData(i.ELEMENT_ARRAY_BUFFER, s, i.STATIC_DRAW), this.jn = this.Pg = this.ne = 0, this.La = [], t = this.ya ? 'attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}' : 'attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}', s = this.kh({ src: 'varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}' }, t, '<default>'), this.La.push(s), s = this.kh({ src: 'uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}' }, 'attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}', '<point>'), this.La.push(s), s = this.kh({ src: 'varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}' }, t, '<earlyz>'), this.La.push(s), s = this.kh({ src: 'uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}' }, t, '<fill>'), this.La.push(s), qc))
  530. qc.hasOwnProperty(e) && this.La.push(this.kh(qc[e], t, e));
  531. i.activeTexture(i.TEXTURE0), i.bindTexture(i.TEXTURE_2D, null), this.te = [], this.Od = 0, this.Mb = !1, this.bp = this.Oh = -1, this.Xf = null, this.dm = i.createFramebuffer(), this.Aj = this.Gk = null, this.Qo = !1, this.ya && (this.Aj = i.createRenderbuffer()), this.Ve = lc([0,0,0]), this.zq = i.getParameter(i.ALIASED_POINT_SIZE_RANGE)[1], 2048 < this.zq && (this.zq = 2048), this.ec(0);
  532. }, o.prototype.Sn = function (t) {
  533. i(this.rq, t) || (nc(t, this.rq), this.u.uniformMatrix4fv(this.kk, !1, t));
  534. }, t.prototype.kh = function (t, i, s) {
  535. var h = this.u, e = h.createShader(h.FRAGMENT_SHADER);
  536. if (h.shaderSource(e, t.src), h.compileShader(e), !h.getShaderParameter(e, h.COMPILE_STATUS))
  537. throw t = h.getShaderInfoLog(e), h.deleteShader(e), Error('error compiling fragment shader: ' + t);
  538. var n = h.createShader(h.VERTEX_SHADER);
  539. if (h.shaderSource(n, i), h.compileShader(n), !h.getShaderParameter(n, h.COMPILE_STATUS))
  540. throw t = h.getShaderInfoLog(n), h.deleteShader(e), h.deleteShader(n), Error('error compiling vertex shader: ' + t);
  541. if (i = h.createProgram(), h.attachShader(i, e), h.attachShader(i, n), h.linkProgram(i), !h.getProgramParameter(i, h.LINK_STATUS))
  542. throw t = h.getProgramInfoLog(i), h.deleteShader(e), h.deleteShader(n), h.deleteProgram(i), Error('error linking shader program: ' + t);
  543. for (h.useProgram(i), h.deleteShader(e), h.deleteShader(n), (e = new o(h, i, s)).Ej = t.Ej || 0, e.Fj = t.Fj || 0, e.Sl = !!t.Sl, e.Rc = !!t.Rc, e.Cl = !!t.Cl, e.O = t.O || [], t = 0, n = e.O.length; t < n; t++)
  544. e.O[t][1] = h.getUniformLocation(i, e.O[t][0]), e.Jm.push(0), h.uniform1f(e.O[t][1], 0);
  545. return e;
  546. }, t.prototype.pm = function (t) {
  547. var i, s;
  548. for (i = 0, s = this.La.length; i < s; i++)
  549. if (this.La[i].name === t)
  550. return i;
  551. return -1;
  552. }, t.prototype.gr = function (t, i, s) {
  553. var h = this.zc, e = this.ok, n = [0,0,0,0,0,0,0,0];
  554. n[0] = h[0] * t + h[4] * i + h[12], n[1] = h[1] * t + h[5] * i + h[13], n[2] = h[2] * t + h[6] * i + h[14], n[3] = h[3] * t + h[7] * i + h[15], n[4] = e[0] * n[0] + e[4] * n[1] + e[8] * n[2] + e[12] * n[3], n[5] = e[1] * n[0] + e[5] * n[1] + e[9] * n[2] + e[13] * n[3], n[6] = e[2] * n[0] + e[6] * n[1] + e[10] * n[2] + e[14] * n[3], n[7] = -n[2], 0 !== n[7] && (n[7] = 1 / n[7], n[4] *= n[7], n[5] *= n[7], n[6] *= n[7], s[0] = (0.5 * n[4] + 0.5) * this.width, s[1] = (0.5 * n[5] + 0.5) * this.height);
  555. }, t.prototype.ge = function (t, i, s) {
  556. if (this.width !== t || this.height !== i || s) {
  557. if (this.gf(), s = this.u, this.width = t, this.height = i, s.viewport(0, 0, t, i), pc(this.Jl, this.kq, this.Vr, this.zc), this.ya) {
  558. var h = -t / 2;
  559. t /= 2;
  560. var e = i / 2;
  561. i = -i / 2;
  562. var n = this.il, o = this.Xn, r = this.ok, a = t - h, c = i - e, p = o - n;
  563. (r = r || mc())[0] = 2 / a, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = 2 / c, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[10] = -2 / p, r[11] = 0, r[12] = -(h + t) / a, r[13] = -(i + e) / c, r[14] = -(o + n) / p, r[15] = 1, this.Li[0] = 1, this.Li[1] = 1;
  564. } else
  565. i = t / i, h = this.il, t = this.Xn, r = this.ok, a = (i *= o = h * Math.tan(45 * Math.PI / 360)) - (e = -i), c = o - (n = -o), p = t - h, (r = r || mc())[0] = 2 * h / a, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = 2 * h / c, r[6] = 0, r[7] = 0, r[8] = (i + e) / a, r[9] = (o + n) / c, r[10] = -(t + h) / p, r[11] = -1, r[12] = 0, r[13] = 0, r[14] = -t * h * 2 / p, h = [r[15]=0,0], t = [0,0], this.gr(0, 0, h), this.gr(1, 1, t), this.Li[0] = 1 / (t[0] - h[0]), this.Li[1] = -1 / (t[1] - h[1]);
  566. for (h = 0, t = this.La.length; h < t; h++)
  567. (e = this.La[h]).pf = !1, e.iq && (s.useProgram(e.pi), s.uniformMatrix4fv(e.iq, !1, this.ok));
  568. s.useProgram(this.La[this.Oh].pi), s.bindTexture(s.TEXTURE_2D, null), s.activeTexture(s.TEXTURE1), s.bindTexture(s.TEXTURE_2D, null), s.activeTexture(s.TEXTURE0), this.wf = this.vf = null, this.Aj && (s.bindFramebuffer(s.FRAMEBUFFER, this.dm), s.bindRenderbuffer(s.RENDERBUFFER, this.Aj), s.renderbufferStorage(s.RENDERBUFFER, s.DEPTH_COMPONENT16, this.width, this.height), this.Qo || (s.framebufferRenderbuffer(s.FRAMEBUFFER, s.DEPTH_ATTACHMENT, s.RENDERBUFFER, this.Aj), this.Qo = !0), s.bindRenderbuffer(s.RENDERBUFFER, null), s.bindFramebuffer(s.FRAMEBUFFER, null), this.Gk = null);
  569. }
  570. }, t.prototype.Ed = function () {
  571. pc(this.Jl, this.kq, this.Vr, this.zc), oc(this.zc, this.Li);
  572. }, t.prototype.translate = function (t, i) {
  573. if (0 !== t || 0 !== i) {
  574. this.Ve[0] = t, this.Ve[1] = i, this.Ve[2] = 0;
  575. var s = this.zc, h = (n = this.Ve)[0], e = n[1], n = n[2];
  576. s[12] = s[0] * h + s[4] * e + s[8] * n + s[12], s[13] = s[1] * h + s[5] * e + s[9] * n + s[13], s[14] = s[2] * h + s[6] * e + s[10] * n + s[14], s[15] = s[3] * h + s[7] * e + s[11] * n + s[15];
  577. }
  578. }, t.prototype.scale = function (t, i) {
  579. 1 === t && 1 === i || (this.Ve[0] = t, this.Ve[1] = i, this.Ve[2] = 1, oc(this.zc, this.Ve));
  580. }, t.prototype.xn = function (t) {
  581. if (0 !== t) {
  582. var i, s = this.zc, h = Math.sin(t);
  583. t = Math.cos(t);
  584. var e = s[0], n = s[1], o = s[2], r = s[3], a = s[4], c = s[5], p = s[6], u = s[7];
  585. i ? s !== i && (i[8] = s[8], i[9] = s[9], i[10] = s[10], i[11] = s[11], i[12] = s[12], i[13] = s[13], i[14] = s[14], i[15] = s[15]) : i = s, i[0] = e * t + a * h, i[1] = n * t + c * h, i[2] = o * t + p * h, i[3] = r * t + u * h, i[4] = e * -h + a * t, i[5] = n * -h + c * t, i[6] = o * -h + p * t, i[7] = r * -h + u * t;
  586. }
  587. }, t.prototype.od = function () {
  588. if (!i(this.Km, this.zc)) {
  589. var t = this.mc();
  590. t.type = 5, t.T ? nc(this.zc, t.T) : t.T = mc(this.zc), nc(this.zc, this.Km), this.Mb = !1;
  591. }
  592. }, t.prototype.Ok = function (t) {
  593. this.ya && (32760 < t && (t = 32760), this.Ul = this.Jl[2] - this.il - t * this.Uy);
  594. }, s.prototype.jv = function () {
  595. var t = this.u, i = this.k;
  596. 0 !== this.Tb ? (t.depthMask(!0), t.colorMask(!1, !1, !1, !1), t.disable(t.BLEND), t.bindFramebuffer(t.FRAMEBUFFER, i.dm), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, null, 0), t.clear(t.DEPTH_BUFFER_BIT), t.bindFramebuffer(t.FRAMEBUFFER, null), i.Yj = !0) : (t.depthMask(!1), t.colorMask(!0, !0, !0, !0), t.enable(t.BLEND), i.Yj = !1);
  597. }, s.prototype.nv = function () {
  598. this.u.bindTexture(this.u.TEXTURE_2D, this.Vc);
  599. }, s.prototype.ov = function () {
  600. var t = this.u;
  601. t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, this.Vc), t.activeTexture(t.TEXTURE0);
  602. }, s.prototype.kv = function () {
  603. var t = this.Tq, i = this.k;
  604. i.wj = t, (i = i.Xf).vg && i.nk !== t && (i.nk = t, this.u.uniform1f(i.vg, t));
  605. }, s.prototype.bv = function () {
  606. this.u.drawElements(this.u.TRIANGLES, this.xd, this.u.UNSIGNED_SHORT, this.Tb);
  607. }, s.prototype.gv = function () {
  608. this.u.blendFunc(this.Tb, this.xd);
  609. }, s.prototype.pv = function () {
  610. var t, i, s, h = this.k.La, e = this.k.bp;
  611. for (t = 0, i = h.length; t < i; t++)
  612. s = h[t], t === e && s.kk ? (s.Sn(this.T), s.pf = !0) : s.pf = !1;
  613. nc(this.T, this.k.Tl);
  614. }, s.prototype.cv = function () {
  615. var t = this.u, i = this.k;
  616. this.Vc ? (i.wf === this.Vc && (t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, null), i.wf = null, t.activeTexture(t.TEXTURE0)), t.bindFramebuffer(t.FRAMEBUFFER, i.dm), i.Yj || t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, this.Vc, 0)) : (i.ya || t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, null, 0), t.bindFramebuffer(t.FRAMEBUFFER, null));
  617. }, s.prototype.Zu = function () {
  618. var t = this.u, i = this.Tb;
  619. 0 === i ? (t.clearColor(this.T[0], this.T[1], this.T[2], this.T[3]), t.clear(t.COLOR_BUFFER_BIT)) : 1 === i ? (t.enable(t.SCISSOR_TEST), t.scissor(this.T[0], this.T[1], this.T[2], this.T[3]), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT), t.disable(t.SCISSOR_TEST)) : t.clear(t.DEPTH_BUFFER_BIT);
  620. }, s.prototype.iv = function () {
  621. var t = this.u;
  622. 0 !== this.Tb ? t.enable(t.DEPTH_TEST) : t.disable(t.DEPTH_TEST);
  623. }, s.prototype.av = function () {
  624. var t = this.u, i = this.k;
  625. i.ya && t.disable(t.DEPTH_TEST);
  626. var s = i.La[1];
  627. t.useProgram(s.pi), !s.pf && s.kk && (s.Sn(i.Tl), s.pf = !0), t.enableVertexAttribArray(s.Nc), t.bindBuffer(t.ARRAY_BUFFER, i.hn), t.vertexAttribPointer(s.Nc, 4, t.FLOAT, !1, 0, 0), t.drawArrays(t.POINTS, this.Tb / 4, this.xd), s = i.Xf, t.useProgram(s.pi), 0 <= s.Nc && (t.enableVertexAttribArray(s.Nc), t.bindBuffer(t.ARRAY_BUFFER, i.Gi[i.Pd]), t.vertexAttribPointer(s.Nc, i.ya ? 3 : 2, t.FLOAT, !1, 0, 0)), 0 <= s.Oe && (t.enableVertexAttribArray(s.Oe), t.bindBuffer(t.ARRAY_BUFFER, i.vi[i.Pd]), t.vertexAttribPointer(s.Oe, 2, t.FLOAT, !1, 0, 0)), i.ya && t.enable(t.DEPTH_TEST);
  628. }, s.prototype.lv = function () {
  629. var t = this.u, i = this.k, s = i.La[this.Tb];
  630. i.bp = this.Tb, i.Xf = s, t.useProgram(s.pi), !s.pf && s.kk && (s.Sn(i.Tl), s.pf = !0), s.vg && s.nk !== i.wj && (s.nk = i.wj, t.uniform1f(s.vg, i.wj)), 0 <= s.Nc && (t.enableVertexAttribArray(s.Nc), t.bindBuffer(t.ARRAY_BUFFER, i.Gi[i.Pd]), t.vertexAttribPointer(s.Nc, i.ya ? 3 : 2, t.FLOAT, !1, 0, 0)), 0 <= s.Oe && (t.enableVertexAttribArray(s.Oe), t.bindBuffer(t.ARRAY_BUFFER, i.vi[i.Pd]), t.vertexAttribPointer(s.Oe, 2, t.FLOAT, !1, 0, 0));
  631. }, s.prototype.hv = function () {
  632. var t = this.T;
  633. this.u.uniform4f(this.k.Xf.Qm, t[0], t[1], t[2], t[3]);
  634. }, s.prototype.mv = function () {
  635. var t, i, s = this.k.Xf, h = this.u;
  636. t = this.T, s.Th && this.k.wf !== this.Vc && (h.activeTexture(h.TEXTURE1), h.bindTexture(h.TEXTURE_2D, this.Vc), this.k.wf = this.Vc, h.activeTexture(h.TEXTURE0));
  637. var e = t[0];
  638. if (s.Sm && e !== s.tq && (s.tq = e, h.uniform1f(s.Sm, e)), e = t[1], s.Rm && e !== s.sq && (s.sq = e, h.uniform1f(s.Rm, e)), e = t[2], i = t[3], !s.Bf || e === s.nq && i === s.oq || (s.nq = e, s.oq = i, h.uniform2f(s.Bf, e, i)), e = t[4], i = t[5], !s.Af || e === s.lq && i === s.mq || (s.lq = e, s.mq = i, h.uniform2f(s.Af, e, i)), e = t[6], s.Sh && e !== s.qq && (s.qq = e, h.uniform1f(s.Sh, e)), e = t[7], s.Rh && e !== s.pq && (s.pq = e, h.uniform1f(s.Rh, e)), e = t[8], i = t[9], !s.Wh || e === s.xq && i === s.yq || (s.xq = e, s.yq = i, h.uniform2f(s.Wh, e, i)), e = t[10], i = t[11], !s.Uh || e === s.uq && i === s.vq || (s.uq = e, s.vq = i, h.uniform2f(s.Uh, e, i)), e = t[12], s.Vh && e !== s.wq && (s.wq = e, h.uniform1f(s.Vh, e)), s.O.length)
  639. for (t = 0, i = s.O.length; t < i; t++)
  640. (e = this.Cr[t]) !== s.Jm[t] && (s.Jm[t] = e, h.uniform1f(s.O[t][1], e));
  641. }, t.prototype.mc = function () {
  642. return this.Od === this.te.length && this.te.push(new s(0, this)), this.te[this.Od++];
  643. }, t.prototype.gf = function () {
  644. if (0 !== this.Od && !this.u.isContextLost()) {
  645. var t = this.u;
  646. if (0 < this.jn && (t.bindBuffer(t.ARRAY_BUFFER, this.hn), t.bufferSubData(t.ARRAY_BUFFER, 0, this.er.subarray(0, this.jn)), i && 0 <= i.Nc && '<point>' === i.name && t.vertexAttribPointer(i.Nc, 4, t.FLOAT, !1, 0, 0)), 0 < this.ne) {
  647. var i = this.Xf;
  648. t.bindBuffer(t.ARRAY_BUFFER, this.Gi[this.Pd]), t.bufferSubData(t.ARRAY_BUFFER, 0, this.fl.subarray(0, this.ne)), i && 0 <= i.Nc && '<point>' !== i.name && t.vertexAttribPointer(i.Nc, this.ya ? 3 : 2, t.FLOAT, !1, 0, 0), t.bindBuffer(t.ARRAY_BUFFER, this.vi[this.Pd]), t.bufferSubData(t.ARRAY_BUFFER, 0, this.Xk.subarray(0, this.Pg)), i && 0 <= i.Oe && '<point>' !== i.name && t.vertexAttribPointer(i.Oe, 2, t.FLOAT, !1, 0, 0);
  649. }
  650. var s;
  651. for (t = 0, i = this.Od; t < i; t++)
  652. switch ((s = this.te[t]).type) {
  653. case 1:
  654. s.bv();
  655. break;
  656. case 2:
  657. s.nv();
  658. break;
  659. case 3:
  660. s.kv();
  661. break;
  662. case 4:
  663. s.gv();
  664. break;
  665. case 5:
  666. s.pv();
  667. break;
  668. case 6:
  669. s.cv();
  670. break;
  671. case 7:
  672. s.Zu();
  673. break;
  674. case 8:
  675. s.av();
  676. break;
  677. case 9:
  678. s.lv();
  679. break;
  680. case 10:
  681. s.mv();
  682. break;
  683. case 11:
  684. s.ov();
  685. break;
  686. case 12:
  687. s.hv();
  688. break;
  689. case 13:
  690. s.iv();
  691. break;
  692. case 14:
  693. s.jv();
  694. }
  695. this.jn = this.Pg = this.ne = this.Od = 0, this.Yj = this.Mb = !1, this.Pd++, 4 <= this.Pd && (this.Pd = 0);
  696. }
  697. }, t.prototype.Se = function (t) {
  698. if (t !== this.Yp && !this.Eh) {
  699. var i = this.mc();
  700. i.type = 3, this.Yp = i.Tq = t, this.Mb = !1;
  701. }
  702. }, t.prototype.Rb = function (t) {
  703. if (t !== this.vf) {
  704. var i = this.mc();
  705. i.type = 2, this.vf = i.Vc = t, this.Mb = !1;
  706. }
  707. }, t.prototype.Re = function (t, i) {
  708. if ((t !== this.$p || i !== this.Wp) && !this.Eh) {
  709. var s = this.mc();
  710. s.type = 4, s.Tb = t, s.xd = i, this.$p = t, this.Wp = i, this.Mb = !1;
  711. }
  712. }, t.prototype.rr = function () {
  713. this.Re(this.u.ONE, this.u.ONE_MINUS_SRC_ALPHA);
  714. }, t.prototype.ji = function (t, i, s, h, e, n, o, r) {
  715. 15992 <= this.ne && this.gf();
  716. var a = this.ne, c = this.Pg, p = this.fl, u = this.Xk, f = this.Ul;
  717. if (this.Mb)
  718. this.te[this.Od - 1].xd += 6;
  719. else {
  720. var l = this.mc();
  721. l.type = 1, l.Tb = this.ya ? a : a / 2 * 3, l.xd = 6, this.Mb = !0;
  722. }
  723. this.ya ? (p[a++] = t, p[a++] = i, p[a++] = f, p[a++] = s, p[a++] = h, p[a++] = f, p[a++] = e, p[a++] = n, p[a++] = f, p[a++] = o, p[a++] = r, p[a++] = f) : (p[a++] = t, p[a++] = i, p[a++] = s, p[a++] = h, p[a++] = e, p[a++] = n, p[a++] = o, p[a++] = r), u[c++] = 0, u[c++] = 0, u[c++] = 1, u[c++] = 0, u[c++] = 1, u[c++] = 1, u[c++] = 0, u[c++] = 1, this.ne = a, this.Pg = c;
  724. }, t.prototype.Sc = function (t, i, s, h, e, n, o, r, a) {
  725. 15992 <= this.ne && this.gf();
  726. var c = this.ne, p = this.Pg, u = this.fl, f = this.Xk, l = this.Ul;
  727. this.Mb ? this.te[this.Od - 1].xd += 6 : ((b = this.mc()).type = 1, b.Tb = this.ya ? c : c / 2 * 3, b.xd = 6, this.Mb = !0);
  728. var b = a.left, d = a.top, g = a.right;
  729. a = a.bottom, this.ya ? (u[c++] = t, u[c++] = i, u[c++] = l, u[c++] = s, u[c++] = h, u[c++] = l, u[c++] = e, u[c++] = n, u[c++] = l, u[c++] = o, u[c++] = r, u[c++] = l) : (u[c++] = t, u[c++] = i, u[c++] = s, u[c++] = h, u[c++] = e, u[c++] = n, u[c++] = o, u[c++] = r), f[p++] = b, f[p++] = d, f[p++] = g, f[p++] = d, f[p++] = g, f[p++] = a, f[p++] = b, f[p++] = a, this.ne = c, this.Pg = p;
  730. }, t.prototype.ec = function (t) {
  731. if (this.Oh !== t) {
  732. if (!this.La[t]) {
  733. if (0 === this.Oh)
  734. return;
  735. t = 0;
  736. }
  737. var i = this.mc();
  738. i.type = 9, this.Oh = i.Tb = t, this.Mb = !1;
  739. }
  740. }, t.prototype.hi = function (t) {
  741. return !(!(t = this.La[t]).Bf && !t.Af);
  742. }, t.prototype.nn = function (t) {
  743. return !!((t = this.La[t]).Bf || t.Af || t.Sl);
  744. }, t.prototype.mn = function (t) {
  745. return this.La[t].Rc;
  746. }, t.prototype.$x = function (t) {
  747. return 0 !== (t = this.La[t]).Ej || 0 !== t.Fj;
  748. }, t.prototype.yw = function (t) {
  749. return this.La[t].Ej;
  750. }, t.prototype.zw = function (t) {
  751. return this.La[t].Fj;
  752. }, t.prototype.Aw = function (t, i) {
  753. return this.La[t].O[i][2];
  754. }, t.prototype.Dk = function (t) {
  755. return this.La[t].Cl;
  756. }, t.prototype.Jg = function (t, i, s, h, e, n, o, r, a, c, p, u, f, l, b) {
  757. var d, g, y = this.La[this.Oh];
  758. if (y.Qw || b.length) {
  759. if ((d = this.mc()).type = 10, d.T ? nc(this.zc, d.T) : d.T = mc(), (g = d.T)[0] = i, g[1] = s, g[2] = h, g[3] = e, g[4] = n, g[5] = o, g[6] = r, g[7] = a, g[8] = c, g[9] = p, g[10] = u, g[11] = f, g[12] = l, y.Th ? d.Vc = t : d.Vc = null, b.length)
  760. for ((s = d.Cr).length = b.length, t = 0, i = b.length; t < i; t++)
  761. s[t] = b[t];
  762. this.Mb = !1;
  763. }
  764. }, t.prototype.clear = function (t, i, s, h) {
  765. var e = this.mc();
  766. e.type = 7, e.Tb = 0, e.T || (e.T = mc()), e.T[0] = t, e.T[1] = i, e.T[2] = s, e.T[3] = h, this.Mb = !1;
  767. }, t.prototype.clearRect = function (t, i, s, h) {
  768. if (!(s < 0 || h < 0)) {
  769. var e = this.mc();
  770. e.type = 7, e.Tb = 1, e.T || (e.T = mc()), e.T[0] = t, e.T[1] = i, e.T[2] = s, e.T[3] = h, this.Mb = !1;
  771. }
  772. }, t.prototype.ur = function (t) {
  773. if (this.ya && (t = !!t, this.Eh !== t)) {
  774. var i = this.mc();
  775. i.type = 14, i.Tb = t ? 1 : 0, this.Mb = !1, this.Eh = t, this.Gk = null, this.Eh ? this.ec(2) : this.ec(0);
  776. }
  777. }, t.prototype.tr = function (t) {
  778. if (this.ya) {
  779. var i = this.mc();
  780. i.type = 13, i.Tb = t ? 1 : 0, this.Mb = !1;
  781. }
  782. }, t.prototype.rp = function () {
  783. nc(this.Km, h), this.Ed(), this.od();
  784. var t = this.width / 2, i = this.height / 2;
  785. this.ji(-t, i, t, i, t, -i, -t, -i), nc(h, this.zc), this.od();
  786. }, t.prototype.sr = function (t, i, s) {
  787. this.ec(3);
  788. var h = this.mc();
  789. h.type = 12, h.T || (h.T = mc()), h.T[0] = t, h.T[1] = i, h.T[2] = s, h.T[3] = 1, this.Mb = !1;
  790. }, t.prototype.yy = function () {
  791. this.ec(0);
  792. }, t.prototype.hy = function () {
  793. this.ec(2);
  794. }, t.prototype.Zx = function () {
  795. this.gf(), this.u.flush();
  796. };
  797. var l = [], b = {};
  798. t.prototype.Pu = function () {
  799. A(l), b = {};
  800. }, t.prototype.yc = function (t, i, s, h, e) {
  801. i = !!i, s = !!s;
  802. var n = t.src + ',' + i + ',' + s + (i ? ',' + e : ''), o = null;
  803. if (void 0 !== t.src && b.hasOwnProperty(n))
  804. return (o = b[n]).kj++, o;
  805. this.gf();
  806. var r = this.u, a = la(t.width) && la(t.height);
  807. o = r.createTexture();
  808. r.bindTexture(r.TEXTURE_2D, o), r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
  809. var c = r.RGBA, p = r.RGBA, u = r.UNSIGNED_BYTE;
  810. if (h && !this.Je)
  811. switch (h) {
  812. case 1:
  813. p = c = r.RGB;
  814. break;
  815. case 2:
  816. u = r.UNSIGNED_SHORT_4_4_4_4;
  817. break;
  818. case 3:
  819. u = r.UNSIGNED_SHORT_5_5_5_1;
  820. break;
  821. case 4:
  822. p = c = r.RGB, u = r.UNSIGNED_SHORT_5_6_5;
  823. }
  824. if (1 === this.version && !a && i) {
  825. (h = document.createElement('canvas')).width = ma(t.width), h.height = ma(t.height);
  826. var f = h.getContext('2d');
  827. void 0 !== f.imageSmoothingEnabled ? f.imageSmoothingEnabled = s : (f.webkitImageSmoothingEnabled = s, f.mozImageSmoothingEnabled = s, f.msImageSmoothingEnabled = s), f.drawImage(t, 0, 0, t.width, t.height, 0, 0, h.width, h.height), r.texImage2D(r.TEXTURE_2D, 0, c, p, u, h);
  828. } else
  829. r.texImage2D(r.TEXTURE_2D, 0, c, p, u, t);
  830. return i ? 'repeat-x' === e ? (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.REPEAT), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE)) : ('repeat-y' === e ? r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE) : r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.REPEAT), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.REPEAT)) : (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE)), s ? (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MAG_FILTER, r.LINEAR), (a || 2 <= this.version) && this.fp ? (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.LINEAR_MIPMAP_LINEAR), r.generateMipmap(r.TEXTURE_2D)) : r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.LINEAR)) : (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MAG_FILTER, r.NEAREST), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.NEAREST)), r.bindTexture(r.TEXTURE_2D, null), this.vf = null, o.bd = t.width, o.ad = t.height, o.kj = 1, o.Vo = n, l.push(o), b[n] = o;
  831. }, t.prototype.Ic = function (t, i, s) {
  832. var h;
  833. this.gf();
  834. var e = this.u;
  835. this.Je && (h = !1);
  836. var n = e.createTexture();
  837. return e.bindTexture(e.TEXTURE_2D, n), e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, t, i, 0, e.RGBA, h ? e.UNSIGNED_SHORT_4_4_4_4 : e.UNSIGNED_BYTE, null), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, s ? e.LINEAR : e.NEAREST), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, s ? e.LINEAR : e.NEAREST), e.bindTexture(e.TEXTURE_2D, null), this.vf = null, n.bd = t, n.ad = i, l.push(n), n;
  838. }, t.prototype.deleteTexture = function (t) {
  839. t && (void 0 !== t.kj && 1 < t.kj ? t.kj-- : (this.gf(), t === this.vf && (this.u.bindTexture(this.u.TEXTURE_2D, null), this.vf = null), t === this.wf && (this.u.activeTexture(this.u.TEXTURE1), this.u.bindTexture(this.u.TEXTURE_2D, null), this.u.activeTexture(this.u.TEXTURE0), this.wf = null), Ia(l, t), void 0 !== t.Vo && delete b[t.Vo], this.u.deleteTexture(t)));
  840. }, t.prototype.Tc = function (t) {
  841. if (t !== this.Gk) {
  842. var i = this.mc();
  843. i.type = 6, this.Gk = i.Vc = t, this.Mb = !1;
  844. }
  845. }, qb = t;
  846. }(), function () {
  847. function s(t) {
  848. if (t && (t.getContext || t.dc) && !t.c2runtime) {
  849. var i = t.c2runtime = this;
  850. this.vc = (this.Zj = /crosswalk/i.test(navigator.userAgent) || /xwalk/i.test(navigator.userAgent) || !(void 0 === window.c2isCrosswalk || !window.c2isCrosswalk)) || void 0 !== window.device && (void 0 !== window.device.cordova || void 0 !== window.device.phonegap) || void 0 !== window.c2iscordova && window.c2iscordova, this.pb = !!t.dc, this.Np = void 0 !== window.AppMobi || this.pb, this.Mc = !!window.c2cocoonjs, this.gd = !!window.c2ejecta, this.Mc && (CocoonJS.App.onSuspended.addEventListener(function () {
  851. i.setSuspended(!0);
  852. }), CocoonJS.App.onActivated.addEventListener(function () {
  853. i.setSuspended(!1);
  854. })), this.gd && (document.addEventListener('pagehide', function () {
  855. i.setSuspended(!0);
  856. }), document.addEventListener('pageshow', function () {
  857. i.setSuspended(!1);
  858. }), document.addEventListener('resize', function () {
  859. i.setSize(window.innerWidth, window.innerHeight);
  860. })), this.pa = this.pb || this.Mc || this.gd, this.Gh = /edge\//i.test(navigator.userAgent), this.Je = (/msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent) || /iemobile/i.test(navigator.userAgent)) && !this.Gh, this.Pp = /tizen/i.test(navigator.userAgent), this.Dh = /android/i.test(navigator.userAgent) && !this.Pp && !this.Je && !this.Gh, this.Up = (/iphone/i.test(navigator.userAgent) || /ipod/i.test(navigator.userAgent)) && !this.Je && !this.Gh, this.kx = /ipad/i.test(navigator.userAgent), this.pg = this.Up || this.kx || this.gd, this.Bm = (/chrome/i.test(navigator.userAgent) || /chromium/i.test(navigator.userAgent)) && !this.Je && !this.Gh, this.Mp = /amazonwebappplatform/i.test(navigator.userAgent), this.ax = /firefox/i.test(navigator.userAgent), this.hx = /safari/i.test(navigator.userAgent) && !this.Bm && !this.Je && !this.Gh, this.ix = /windows/i.test(navigator.userAgent), this.gx = this.Hh = void 0 !== window.c2nodewebkit || void 0 !== window.c2nwjs || /nodewebkit/i.test(navigator.userAgent) || /nwjs/i.test(navigator.userAgent), this.Rp = !(void 0 === window.c2isWindows8 || !window.c2isWindows8), this.Sp = !(void 0 === window.c2isWindows8Capable || !window.c2isWindows8Capable), this.Ke = !(void 0 === window.c2isWindowsPhone8 || !window.c2isWindowsPhone8), this.Hm = !(void 0 === window.c2isWindowsPhone81 || !window.c2isWindowsPhone81), this.$j = !!window.cr_windows10, this.Qp = this.Rp || this.Sp || this.Hm || this.$j, this.Yw = !(void 0 === window.c2isBlackberry10 || !window.c2isBlackberry10), this.Xj = this.Dh && !this.Bm && !this.Zj && !this.ax && !this.Mp && !this.pa, this.devicePixelRatio = 1, this.sf = this.vc || this.Zj || this.Np || this.Mc || this.Dh || this.pg || this.Ke || this.Hm || this.Yw || this.Pp || this.gd, this.sf || (this.sf = /(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent)), this.Jh = !!(this.pg && this.vc && window.webkit), 'undefined' == typeof cr_is_preview || this.Hh || '?nw' !== window.location.search && !/nodewebkit/i.test(navigator.userAgent) && !/nwjs/i.test(navigator.userAgent) || (this.Hh = !0), this.$w = 'undefined' != typeof cr_is_preview && -1 < window.location.search.indexOf('debug'), this.canvas = t, this.nj = document.getElementById('c2canvasdiv'), this.k = this.u = null, this.qm = '(unavailable)', this.ya = !1, this.ef = 0, this.Ba = null, this.Kj = !1, this.Mq = this.Nq = 0, this.canvas.oncontextmenu = function (t) {
  861. return t.preventDefault && t.preventDefault(), !1;
  862. }, this.canvas.onselectstart = function (t) {
  863. return t.preventDefault && t.preventDefault(), !1;
  864. }, this.canvas.ontouchstart = function (t) {
  865. return t.preventDefault && t.preventDefault(), !1;
  866. }, this.pb && (window.c2runtime = this), this.Hh && (window.ondragover = function (t) {
  867. return t.preventDefault(), !1;
  868. }, window.ondrop = function (t) {
  869. return t.preventDefault(), !1;
  870. }, window.nwgui && window.nwgui.App.clearCache && window.nwgui.App.clearCache()), this.Xj && 'undefined' != typeof jQuery && jQuery('canvas').parents('*').css('overflow', 'visible'), this.width = t.width, this.height = t.height, this.G = this.width, this.F = this.height, this.uj = this.width, this.nh = this.height, this.tg = window.innerWidth, this.sg = window.innerHeight, this.fa = !0, this.Ih = !1, Date.now || (Date.now = function () {
  871. return +new Date();
  872. }), this.plugins = [], this.types = {}, this.p = [], this.Ha = [], this.Nm = {}, this.hd = [], this.cm = {}, this.Ud = [], this.Wg = [], this.bl = [], this.Fu = [], this.Gu = [], this.cf = {}, this.Dm = this.He = !1, this.wc = 0, this.Cm = this.Gm = !1, this.cd = [], this.Fh = !1, this.gk = this.Bn = '', this.kb = null, this.Zd = '', this.si = this.Fr = !1, this.Jj = [], this.df = this.De = 0, this.Eq = 30, this.Pl = this.Xh = 0, this.Jf = 1, this.Bb = new eb(), this.oe = new eb(), this.rk = this.Mj = this.kf = this.Rg = this.yf = this.gm = this.dk = 0, this.ih = null, this.Yl = [], this.am = [], this.Dj = -1, this.Tm = [[]], this.On = this.lk = 0, this.Ek(null), this.Yh = [], this.Zh = -1, this.qh = this.Hq = this.bi = 0, this.ti = [], this.Kn = this.rn = -1, this.Mh = !0, this.jk = 0, this.gg = !1, this.Ay = 0, this.Rf = null, this.xc = this.Bp = !1, this.Lq = new ca(), this.$m = new ca(), this.an = new ca(), this.lr = [], this.md = new gb([]), this.In = new gb([]), this.Qf = [], this.wh = {}, this.ye = {}, this.se = {}, this.Vg = {}, this.Ro = {}, this.gq = this.fk = this.Ua = this.jb = this.fq = this.ek = this.ba = null, this.Tg = this.Im = !1, this.hm = [null,null], this.Fe = 0, this.rh = '', this.be = {}, this.qi = this.Me = null, this.Hr = '', this.qk = [], this.gy();
  873. }
  874. }
  875. function u(t, i) {
  876. return i <= 128 ? t[3] : i <= 256 ? t[2] : i <= 512 ? t[1] : t[0];
  877. }
  878. function n() {
  879. try {
  880. return window.indexedDB;
  881. } catch (t) {
  882. return;
  883. }
  884. }
  885. function o(t) {
  886. t.target.result.createObjectStore('saves', { keyPath: 'slot' });
  887. }
  888. function r() {
  889. fa('Reloading for continuous preview'), window.c2cocoonjs ? CocoonJS.App.reload() : -1 < window.location.search.indexOf('continuous') ? window.location.reload(!0) : window.location = window.location + '?continuous';
  890. }
  891. function a(t) {
  892. var i, s = {};
  893. for (i in t)
  894. !t.hasOwnProperty(i) || t[i] instanceof ca || t[i] && void 0 !== t[i].pz || 'spriteCreatedDestroyCallback' !== i && (s[i] = t[i]);
  895. return s;
  896. }
  897. var f = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame;
  898. s.prototype.gy = function () {
  899. var i = this;
  900. if (this.Jh)
  901. this.lp('data.js', function (t) {
  902. i.Qh(JSON.parse(t));
  903. }, function () {
  904. alert('Error fetching data.js');
  905. });
  906. else {
  907. var s;
  908. s = this.Ke ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();
  909. var h = 'data.js';
  910. (this.Rp || this.Ke || this.Hm || this.$j) && (h = 'data.json'), s.open('GET', h, !0);
  911. var e = !1;
  912. if (!this.pa && 'response' in s && 'responseType' in s)
  913. try {
  914. s.responseType = 'json', e = 'json' === s.responseType;
  915. } catch (t) {
  916. e = !1;
  917. }
  918. if (!e && 'responseType' in s)
  919. try {
  920. s.responseType = 'text';
  921. } catch (t) {
  922. }
  923. if ('overrideMimeType' in s)
  924. try {
  925. s.overrideMimeType('application/json; charset=utf-8');
  926. } catch (t) {
  927. }
  928. this.Ke ? s.onreadystatechange = function () {
  929. 4 === s.readyState && i.Qh(JSON.parse(s.responseText));
  930. } : (s.onload = function () {
  931. if (e)
  932. i.Qh(s.response);
  933. else if (i.gd) {
  934. var t = (t = s.responseText).substr(t.indexOf('{'));
  935. i.Qh(JSON.parse(t));
  936. } else
  937. i.Qh(JSON.parse(s.responseText));
  938. }, s.onerror = function (t) {
  939. ga('Error requesting ' + h + ':'), ga(t);
  940. }), s.send();
  941. }
  942. }, s.prototype.Vw = function () {
  943. var t, i, s, h, e, n, o, r, a, c = this;
  944. this.tf = (!this.pa || this.gd || this.vc) && this.Py && !this.Xj, 0 === this.Yb && this.pg && (this.tf = !1), this.devicePixelRatio = this.tf && (window.devicePixelRatio || window.webkitDevicePixelRatio || window.mozDevicePixelRatio || window.msDevicePixelRatio) || 1, 'object' === _typeof(window.StatusBar) && window.StatusBar.hide(), this.Gb(), 0 < this.Yb && this.setSize(window.innerWidth, window.innerHeight, !0), this.canvas.addEventListener('webglcontextlost', function (t) {
  945. t.preventDefault(), c.Bx(), fa('[Construct 2] WebGL context lost'), window.cr_setSuspended(!0);
  946. }, !1), this.canvas.addEventListener('webglcontextrestored', function () {
  947. c.k.Gp(), c.k.ge(c.k.width, c.k.height, !0), c.jb = null, c.Ua = null, c.hm[0] = null, c.hm[1] = null, c.Cx(), c.fa = !0, fa('[Construct 2] WebGL context restored'), window.cr_setSuspended(!1);
  948. }, !1);
  949. try {
  950. this.yv && (this.Mc || this.gd || !this.pa) && (t = {
  951. alpha: !0,
  952. depth: !1,
  953. antialias: !1,
  954. powerPreference: 'high-performance',
  955. failIfMajorPerformanceCaveat: !0
  956. }, this.Dh || (this.u = this.canvas.getContext('webgl2', t)), this.u || (this.u = this.canvas.getContext('webgl', t) || this.canvas.getContext('experimental-webgl', t)));
  957. } catch (t) {
  958. }
  959. if (this.u) {
  960. for ((t = this.u.getExtension('WEBGL_debug_renderer_info')) && (this.qm = this.u.getParameter(t.UNMASKED_RENDERER_WEBGL) + ' [' + this.u.getParameter(t.UNMASKED_VENDOR_WEBGL) + ']'), this.ya && (this.qm += ' [front-to-back enabled]'), this.pa || (this.Db = document.createElement('canvas'), jQuery(this.Db).appendTo(this.canvas.parentNode), this.Db.oncontextmenu = function () {
  961. return !1;
  962. }, this.Db.onselectstart = function () {
  963. return !1;
  964. }, this.Db.width = Math.round(this.uj * this.devicePixelRatio), this.Db.height = Math.round(this.nh * this.devicePixelRatio), jQuery(this.Db).css({
  965. width: this.uj + 'px',
  966. height: this.nh + 'px'
  967. }), this.fr(), this.gn = this.Db.getContext('2d')), this.k = new qb(this.u, this.sf, this.ya), this.k.ge(this.canvas.width, this.canvas.height), this.k.fp = 0 !== this.qv, this.Ba = null, t = 0, i = this.p.length; t < i; t++)
  968. for (s = 0, h = (e = this.p[t]).M.length; s < h; s++)
  969. (o = e.M[s]).Za = this.k.pm(o.id), o.Rc = this.k.mn(o.Za), this.Tg = this.Tg || this.k.hi(o.Za);
  970. for (t = 0, i = this.hd.length; t < i; t++) {
  971. for (s = 0, h = (r = this.hd[t]).M.length; s < h; s++)
  972. (o = r.M[s]).Za = this.k.pm(o.id), o.Rc = this.k.mn(o.Za);
  973. for (r.nd(), s = 0, h = r.P.length; s < h; s++) {
  974. for (e = 0, n = (a = r.P[s]).M.length; e < n; e++)
  975. (o = a.M[e]).Za = this.k.pm(o.id), o.Rc = this.k.mn(o.Za), this.Tg = this.Tg || this.k.hi(o.Za);
  976. a.nd();
  977. }
  978. }
  979. } else {
  980. if (0 < this.Yb && this.pb) {
  981. this.canvas = null, document.oncontextmenu = function () {
  982. return !1;
  983. }, document.onselectstart = function () {
  984. return !1;
  985. }, this.Ba = AppMobi.canvas.getContext('2d');
  986. try {
  987. this.Ba.samplingMode = this.qa ? 'smooth' : 'sharp', this.Ba.globalScale = 1, this.Ba.HTML5CompatibilityMode = !0, this.Ba.imageSmoothingEnabled = this.qa;
  988. } catch (t) {
  989. }
  990. 0 !== this.width && 0 !== this.height && (this.Ba.width = this.width, this.Ba.height = this.height);
  991. }
  992. this.Ba || (t = this.Mc ? {
  993. antialias: !!this.qa,
  994. alpha: !0
  995. } : { alpha: !0 }, this.Ba = this.canvas.getContext('2d', t), this.Nk(this.Ba, this.qa)), this.gn = this.Db = null;
  996. }
  997. this.Nr = function (t) {
  998. c.mb(!1, t);
  999. }, window == window.top || this.pa || this.Qp || this.Ke || (document.addEventListener('mousedown', function () {
  1000. window.focus();
  1001. }, !0), document.addEventListener('touchstart', function () {
  1002. window.focus();
  1003. }, !0)), 'undefined' != typeof cr_is_preview && (this.Mc && console.log('[Construct 2] In preview-over-wifi via CocoonJS mode'), -1 < window.location.search.indexOf('continuous') && (fa('Reloading for continuous preview'), this.gk = '__c2_continuouspreview', this.si = !0), this.Qx && !this.sf && (jQuery(window).focus(function () {
  1004. c.setSuspended(!1);
  1005. }), jQuery(window).blur(function () {
  1006. var t = window.parent;
  1007. t && t.document.hasFocus() || c.setSuspended(!0);
  1008. }))), window.addEventListener('blur', function () {
  1009. c.Cg();
  1010. }), this.pa || (t = function (t) {
  1011. if (pb(t) && document.activeElement && document.activeElement !== document.getElementsByTagName('body')[0] && document.activeElement.blur)
  1012. try {
  1013. document.activeElement.blur();
  1014. } catch (t) {
  1015. }
  1016. }, 'undefined' != typeof PointerEvent ? document.addEventListener('pointerdown', t) : window.navigator.msPointerEnabled ? document.addEventListener('MSPointerDown', t) : document.addEventListener('touchstart', t), document.addEventListener('mousedown', t)), 0 === this.Yb && this.tf && 1 < this.devicePixelRatio && this.setSize(this.Wa, this.Va, !0), this.Sr(), this.Nw(), this.go(), this.ja = {};
  1017. }, s.prototype.setSize = function (t, i, s) {
  1018. var h = 0, e = 0, n = 0, o = 0;
  1019. o = 0;
  1020. if (this.tg !== t || this.sg !== i || s) {
  1021. this.tg = t, this.sg = i;
  1022. var r = this.Yb;
  1023. ((n = (document.mozFullScreen || document.webkitIsFullScreen || !!document.msFullscreenElement || document.fullScreen || this.gg) && !this.vc) || 0 !== this.Yb || s) && (n && (r = this.Fe), s = this.devicePixelRatio, 4 <= r ? (5 === r && 1 !== s && (t += 1, i += 1), (n = this.Wa / this.Va) < t / i ? (n *= i, 5 === r ? (1 < (o = n * s / this.Wa) ? o = Math.floor(o) : o < 1 && (o = 1 / Math.ceil(1 / o)), h = (t - (n = this.Wa * o / s)) / 2, e = (i - (o = this.Va * o / s)) / 2, t = n, i = o) : (h = (t - n) / 2, t = n)) : (o = t / n, 5 === r ? (1 < (o = o * s / this.Va) ? o = Math.floor(o) : o < 1 && (o = 1 / Math.ceil(1 / o)), h = (t - (n = this.Wa * o / s)) / 2, e = (i - (o = this.Va * o / s)) / 2, t = n) : e = (i - o) / 2, i = o)) : n && 0 === r && (h = Math.floor((t - this.Wa) / 2), e = Math.floor((i - this.Va) / 2), t = this.Wa, i = this.Va), r < 2 && (this.gh = s), this.uj = Math.round(t), this.nh = Math.round(i), this.width = Math.round(t * s), this.height = Math.round(i * s), this.fa = !0, this.ds || this.width < this.Wa && this.height < this.Va || 1 === r ? (this.G = this.width, this.F = this.height, this.sc = !0) : (this.G = this.Wa, this.F = this.Va, this.sc = !1, 2 === r ? (n = this.Wa / this.Va, (r = this.tg / this.sg) < n ? this.G = this.F * r : n < r && (this.F = this.G / r)) : 3 === r && ((n = this.Wa / this.Va) < (r = this.tg / this.sg) ? this.G = this.F * r : r < n && (this.F = this.G / r))), this.nj && !this.pa && (jQuery(this.nj).css({
  1024. width: Math.round(t) + 'px',
  1025. height: Math.round(i) + 'px',
  1026. 'margin-left': Math.floor(h) + 'px',
  1027. 'margin-top': Math.floor(e) + 'px'
  1028. }), 'undefined' != typeof cr_is_preview && jQuery('#borderwrap').css({
  1029. width: Math.round(t) + 'px',
  1030. height: Math.round(i) + 'px'
  1031. })), this.canvas && (this.canvas.width = Math.round(t * s), this.canvas.height = Math.round(i * s), this.gd ? (this.canvas.style.left = Math.floor(h) + 'px', this.canvas.style.top = Math.floor(e) + 'px', this.canvas.style.width = Math.round(t) + 'px', this.canvas.style.height = Math.round(i) + 'px') : this.tf && !this.pa && (this.canvas.style.width = Math.round(t) + 'px', this.canvas.style.height = Math.round(i) + 'px')), this.Db && (this.Db.width = Math.round(t * s), this.Db.height = Math.round(i * s), this.Db.style.width = this.uj + 'px', this.Db.style.height = this.nh + 'px'), this.k && this.k.ge(Math.round(t * s), Math.round(i * s)), this.pb && this.Ba && (this.Ba.width = Math.round(t), this.Ba.height = Math.round(i)), this.Ba && this.Nk(this.Ba, this.qa), this.Sr(), this.Up && !this.vc && window.scrollTo(0, 0));
  1032. }
  1033. }, s.prototype.Sr = function () {
  1034. if (this.Iu && 0 !== this.en) {
  1035. var t = 'portrait';
  1036. 2 === this.en && (t = 'landscape');
  1037. try {
  1038. screen.orientation && screen.orientation.lock ? screen.orientation.lock(t).catch(function () {
  1039. }) : screen.lockOrientation ? screen.lockOrientation(t) : screen.webkitLockOrientation ? screen.webkitLockOrientation(t) : screen.mozLockOrientation ? screen.mozLockOrientation(t) : screen.msLockOrientation && screen.msLockOrientation(t);
  1040. } catch (t) {
  1041. console && console.warn && console.warn('Failed to lock orientation: ', t);
  1042. }
  1043. }
  1044. }, s.prototype.Bx = function () {
  1045. var t, i, s;
  1046. for (this.k.Pu(), this.Im = !0, t = 0, i = this.p.length; t < i; t++)
  1047. (s = this.p[t]).ei && s.ei();
  1048. }, s.prototype.Cx = function () {
  1049. var t, i, s;
  1050. for (this.Im = !1, t = 0, i = this.p.length; t < i; t++)
  1051. (s = this.p[t]).fi && s.fi();
  1052. }, s.prototype.fr = function () {
  1053. if (!this.pa) {
  1054. var t = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || document.msFullscreenElement || this.gg) && !this.vc ? jQuery(this.canvas).offset() : jQuery(this.canvas).position();
  1055. t.position = 'absolute', jQuery(this.Db).css(t);
  1056. }
  1057. };
  1058. var h = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;
  1059. s.prototype.setSuspended = function (t) {
  1060. var i;
  1061. if (t && !this.Ih)
  1062. for (fa('[Construct 2] Suspending'), this.Ih = !0, -1 !== this.rn && h && h(this.rn), -1 !== this.Kn && clearTimeout(this.Kn), t = 0, i = this.ti.length; t < i; t++)
  1063. this.ti[t](!0);
  1064. else if (!t && this.Ih) {
  1065. for (fa('[Construct 2] Resuming'), this.Ih = !1, this.dk = Za(), this.yf = Za(), t = this.Xh = this.Mj = 0, i = this.ti.length; t < i; t++)
  1066. this.ti[t](!1);
  1067. this.mb(!1);
  1068. }
  1069. }, s.prototype.No = function (t) {
  1070. this.ti.push(t);
  1071. }, s.prototype.qe = function (t) {
  1072. return this.qk[t];
  1073. };
  1074. var l = !(s.prototype.Qh = function (t) {
  1075. if (t && t.project || ga('Project model unavailable'), t = t.project, this.name = t[0], this.np = t[1], this.Yb = t[12], this.Wa = t[10], this.Va = t[11], this.$q = this.Wa / 2, this.br = this.Va / 2, this.pa && !this.gd && (4 <= t[12] || 0 === t[12]) && (fa('[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to \'Scale outer\''), this.Yb = 3), this.Un = t[18], this.Ne = t[19], 0 === this.Ne) {
  1076. var i = new Image();
  1077. i.crossOrigin = 'anonymous', this.wr(i, 'loading-logo.png'), this.Me = { mk: i };
  1078. } else if (4 === this.Ne) {
  1079. (i = new Image()).src = '';
  1080. var s = new Image();
  1081. s.src = '';
  1082. var h = new Image();
  1083. h.src = '';
  1084. var e = new Image();
  1085. e.src = '';
  1086. var n = new Image();
  1087. n.src = '';
  1088. var o = new Image();
  1089. o.src = '';
  1090. var r = new Image();
  1091. r.src = '';
  1092. var a = new Image();
  1093. a.src = '';
  1094. var c = new Image();
  1095. c.src = '';
  1096. var p = new Image();
  1097. p.src = '';
  1098. var u = new Image();
  1099. u.src = '';
  1100. var f = new Image();
  1101. f.src = '', this.Me = {
  1102. mk: [i,s,h,e],
  1103. Wx: [n,o,r,a],
  1104. Sy: [c,p,u,f]
  1105. };
  1106. }
  1107. for (this.bi = t[21], this.qk = rc(), this.Hd = new T(this), i = 0, s = t[2].length; i < s; i++)
  1108. r = t[2][i], h = this.qe(r[0]), rb(r, h.prototype), (a = new h(this)).Rk = r[1], a.Le = r[2], a.wz = r[5], a.Fq = r[9], a.D && a.D(), this.plugins.push(a);
  1109. for (this.qk = rc(), i = 0, s = t[3].length; i < s; i++) {
  1110. for (r = t[3][i], n = this.qe(r[1]), a = null, h = 0, e = this.plugins.length; h < e; h++)
  1111. if (this.plugins[h] instanceof n) {
  1112. a = this.plugins[h];
  1113. break;
  1114. }
  1115. for ((c = new a.W(a)).name = r[0], c.B = r[2], c.Am = r[3].slice(0), c.Ry = r[3].length, c.Ju = r[4], c.iw = r[5], c.Y = r[11], c.B ? (c.yg = [], c.Vd = this.qh++, c.Da = null) : (c.yg = null, c.Vd = -1, c.Da = []), c.Hj = null, c.Zf = null, c.gp = null, c.Ab = !1, c.hc = null, r[6] ? (c.wi = r[6][0], c.Yk = r[6][1], c.Ue = r[6][2]) : (c.wi = null, c.Yk = 0, c.Ue = 0), r[7] ? c.gc = r[7] : c.gc = null, c.index = i, c.d = [], c.yj = [], c.ke = [new sb(c)], c.sd = 0, c.Jc = null, c.Wu = 0, c.Ng = !0, c.cl = tb, c.qw = ub, c.ww = vb, c.N = wb, c.ii = xb, c.Qe = yb, c.jd = zb, c.Pj = Ab, c.im = Bb, c.lm = Cb, c.Gc = Hb, c.mm = Ib, c.rj = new hb(this.Wa, this.Va), c.ej = !0, c.fj = !1, c.ja = {}, c.toString = Jb, c.Ha = [], h = 0, e = r[8].length; h < e; h++) {
  1116. for (p = r[8][h], u = this.qe(p[1]), f = null, n = 0, o = this.Ha.length; n < o; n++)
  1117. if (this.Ha[n] instanceof u) {
  1118. f = this.Ha[n];
  1119. break;
  1120. }
  1121. f || ((f = new u(this)).Gq = [], f.Ym = new ca(), f.D && f.D(), this.Ha.push(f)), -1 === f.Gq.indexOf(c) && f.Gq.push(c), (n = new f.W(f, c)).name = p[0], n.Y = p[2], n.D(), c.Ha.push(n);
  1122. }
  1123. for (c.global = r[9], c.Fm = r[10], c.M = [], h = 0, e = r[12].length; h < e; h++)
  1124. c.M.push({
  1125. id: r[12][h][0],
  1126. name: r[12][h][1],
  1127. Za: -1,
  1128. Rc: !1,
  1129. nc: !0,
  1130. index: h
  1131. });
  1132. c.Lz = r[13], this.Un && !c.B && !c.Fm && a.Le || c.D(), c.name && (this.types[c.name] = c), this.p.push(c), a.Rk && ((h = new a.S(c)).uid = this.bi++, h.ir = this.Hq++, h.rf = 0, h.uh = Kb, h.toString = Lb, h.A = r[14], h.D(), c.d.push(h), this.be[h.uid.toString()] = h);
  1133. }
  1134. for (i = 0, s = t[4].length; i < s; i++)
  1135. for (n = t[4][i], o = this.p[n[0]], h = 1, e = n.length; h < e; h++)
  1136. (r = this.p[n[h]]).Da.push(o), o.yg.push(r);
  1137. for (i = 0, s = t[28].length; i < s; i++) {
  1138. for (o = [], h = 0, e = (n = t[28][i]).length; h < e; h++)
  1139. o.push(this.p[n[h]]);
  1140. for (h = 0, e = o.length; h < e; h++)
  1141. o[h].Ab = !0, o[h].hc = o;
  1142. }
  1143. if (0 < this.qh)
  1144. for (i = 0, s = this.p.length; i < s; i++)
  1145. if (!(r = this.p[i]).B && r.Da.length) {
  1146. for (r.Hj = Array(this.qh), r.Zf = Array(this.qh), r.gp = Array(this.qh), c = [], h = f = u = p = 0, e = r.Da.length; h < e; h++)
  1147. for (a = r.Da[h], r.Hj[a.Vd] = p, p += a.Ry, r.Zf[a.Vd] = u, u += a.Ju, r.gp[a.Vd] = f, f += a.iw, n = 0, o = a.M.length; n < o; n++)
  1148. c.push(ya({}, a.M[n]));
  1149. for (r.M = c.concat(r.M), h = 0, e = r.M.length; h < e; h++)
  1150. r.M[h].index = h;
  1151. }
  1152. for (i = 0, s = t[5].length; i < s; i++)
  1153. r = t[5][i], h = new Mb(this, r), this.Nm[h.name] = h, this.hd.push(h);
  1154. for (i = 0, s = t[6].length; i < s; i++)
  1155. r = t[6][i], h = new Nb(this, r), this.cm[h.name] = h, this.Ud.push(h);
  1156. for (i = 0, s = this.Ud.length; i < s; i++)
  1157. this.Ud[i].Pa();
  1158. for (i = 0, s = this.Ud.length; i < s; i++)
  1159. this.Ud[i].Rn();
  1160. for (i = 0, s = this.bl.length; i < s; i++)
  1161. this.bl[i].Pa();
  1162. A(this.bl), this.Hu = t[7], this.rh = t[8], this.Ac = t[9], this.gh = 1, this.yv = t[13], this.qa = t[14], this.Zo = t[15], this.Py = t[17], this.en = t[20], this.Iu = 0 < this.en, this.Qx = t[22], this.sc = this.ds = t[23], this.qv = t[24], this.Xx = t[25], this.ya = t[27] && !this.Je, this.Sk = Date.now(), A(this.qk), this.Vw();
  1163. }), e = 0, c = [];
  1164. s.prototype.by = function (t, i) {
  1165. function s() {
  1166. e--, h.Aq();
  1167. }
  1168. var h = this;
  1169. t.addEventListener('load', s), t.addEventListener('error', s), c.push([t,i]), this.Aq();
  1170. }, s.prototype.Aq = function () {
  1171. for (var t; c.length && e < 100;)
  1172. e++, t = c.shift(), this.wr(t[0], t[1]);
  1173. }, s.prototype.gl = function (i, s) {
  1174. i.cocoonLazyLoad = !0, i.onerror = function (t) {
  1175. l = i.Uo = !0, console && console.error && console.error('Error loading image \'' + i.src + '\': ', t);
  1176. }, this.gd ? i.src = s : i.src || ('undefined' != typeof XAPKReader ? XAPKReader.get(s, function (t) {
  1177. i.src = t;
  1178. }, function (t) {
  1179. l = i.Uo = !0, console && console.error && console.error('Error extracting image \'' + s + '\' from expansion file: ', t);
  1180. }) : (i.crossOrigin = 'anonymous', this.by(i, s))), this.Wg.push(i);
  1181. };
  1182. var p = 0, b = !(s.prototype.gw = function (t) {
  1183. var i, s;
  1184. for (i = 0, s = this.Wg.length; i < s; i++)
  1185. if (this.Wg[i].Qu === t)
  1186. return this.Wg[i];
  1187. return null;
  1188. });
  1189. s.prototype.Nw = function () {
  1190. this.Rf && (p = this.Rf.wy(this.Hu));
  1191. };
  1192. var d = !(s.prototype.Po = function () {
  1193. var t, i, s = p, h = 0, e = 0, n = !0;
  1194. e = 0;
  1195. for (t = this.Wg.length; e < t; e++) {
  1196. var o = (i = this.Wg[e]).Ql;
  1197. (!o || o <= 0) && (o = 50000), s += o, i.src && (i.complete || i.loaded) && !i.Uo ? h += o : n = !1;
  1198. }
  1199. return n && this.Xx && this.Rf && (b || (this.Rf.By(), b = !0), h += e = this.Rf.xw(), e < p && (n = !1)), this.$b = 0 == s ? 1 : h / s, n;
  1200. });
  1201. s.prototype.go = function () {
  1202. if (this.Ba || this.k) {
  1203. var t = this.Ba || this.gn;
  1204. this.Db && this.fr();
  1205. var i = window.innerWidth, s = window.innerHeight;
  1206. this.tg === i && this.sg === s || this.setSize(i, s), this.$b = 0, this.dq = -1;
  1207. var h = this;
  1208. if (this.Po() && (4 !== this.Ne || d))
  1209. this.Ow();
  1210. else {
  1211. if (s = Date.now() - this.Sk, t) {
  1212. var e = this.width, n = this.height;
  1213. i = this.devicePixelRatio;
  1214. if (this.Ne < 3 && (this.Mc || 500 <= s && this.dq != this.$b)) {
  1215. t.clearRect(0, 0, e, n);
  1216. s = e / 2, n = n / 2;
  1217. var o, r = 40 * i, a = 0, c = 80 * i;
  1218. if (e = 0 === this.Ne && this.Me.mk.complete) {
  1219. var p = this.Me.mk;
  1220. r = (c = p.width * i) / 2, a = (o = p.height * i) / 2, t.drawImage(p, ta(s - r), ta(n - a), c, o);
  1221. }
  1222. this.Ne <= 1 ? (s = ta(s - r) + 0.5, n = ta(n + (a + (e ? 12 * i : 0))) + 0.5, t.fillStyle = l ? 'red' : 'DodgerBlue', t.fillRect(s, n, Math.floor(c * this.$b), 6 * i), t.strokeStyle = 'black', t.strokeRect(s, n, c, 6 * i), t.strokeStyle = 'white', t.strokeRect(s - i, n - i, c + 2 * i, 8 * i)) : 2 === this.Ne && (t.font = this.gd ? '12pt ArialMT' : '12pt Arial', t.fillStyle = l ? '#f00' : '#999', t.Kz = 'middle', i = Math.round(100 * this.$b) + '%', e = t.measureText ? t.measureText(i) : null, t.fillText(i, s - (e ? e.width : 0) / 2, n)), this.dq = this.$b;
  1223. } else if (4 === this.Ne)
  1224. return this.vv(t), void (f ? f(function () {
  1225. h.go();
  1226. }) : setTimeout(function () {
  1227. h.go();
  1228. }, 16));
  1229. }
  1230. setTimeout(function () {
  1231. h.go();
  1232. }, this.Mc ? 10 : 100);
  1233. }
  1234. }
  1235. };
  1236. var g = -1, y = 'undefined' == typeof cr_is_preview ? 200 : 0, v = !0, m = !1, w = 0, k = 0, x = 'undefined' == typeof cr_is_preview ? 3000 : 0, E = null, j = null, R = 0;
  1237. s.prototype.vv = function (t) {
  1238. if (!d) {
  1239. for (var i = Math.ceil(this.width), s = Math.ceil(this.height), h = this.Me.mk, e = this.Me.Wx, n = this.Me.Sy, o = 0; o < 4; ++o)
  1240. if (!h[o].complete || !e[o].complete || !n[o].complete)
  1241. return;
  1242. 0 === R && (g = Date.now());
  1243. o = Date.now();
  1244. var r, a, c = !1, p = t;
  1245. v || m ? (t.clearRect(0, 0, i, s), E && E.width === i && E.height === s || ((E = document.createElement('canvas')).width = i, E.height = s, j = E.getContext('2d')), p = j, c = !0, v && 1 === R && (g = Date.now())) : t.globalAlpha = 1, p.fillStyle = '#333333', p.fillRect(0, 0, i, s), 256 < this.nh ? (a = 0.25 * (r = Ja(0.22 * s, 105, 0.6 * i)), p.drawImage(u(e, r), 0.5 * i - r / 2, 0.2 * s - a / 2, r, a), a = r = Math.min(0.395 * s, 0.95 * i), p.drawImage(u(h, r), 0.5 * i - r / 2, 0.485 * s - a / 2, r, a), a = 0.25 * (r = Ja(0.22 * s, 105, 0.6 * i)), p.drawImage(u(n, r), 0.5 * i - r / 2, 0.868 * s - a / 2, r, a), p.fillStyle = '#3C3C3C', r = i, a = Math.max(0.005 * s, 2), p.fillRect(0, 0.8 * s - a / 2, r, a), p.fillStyle = l ? 'red' : '#E0FF65', r = i * this.$b, p.fillRect(0.5 * i - r / 2, 0.8 * s - a / 2, r, a)) : (a = r = 0.55 * s, p.drawImage(u(h, r), 0.5 * i - r / 2, 0.45 * s - a / 2, r, a), p.fillStyle = '#3C3C3C', r = i, a = Math.max(0.005 * s, 2), p.fillRect(0, 0.85 * s - a / 2, r, a), p.fillStyle = l ? 'red' : '#E0FF65', r = i * this.$b, p.fillRect(0.5 * i - r / 2, 0.85 * s - a / 2, r, a)), c && (v ? t.globalAlpha = 0 === R ? 0 : Math.min((o - g) / 300, 1) : m && (t.globalAlpha = Math.max(1 - (o - k) / 300, 0)), t.drawImage(E, 0, 0, i, s)), v && 300 <= o - g && 2 <= R && (v = !1, w = o), !v && x <= o - w && !m && 1 <= this.$b && (m = !0, k = o), (m && 300 + y <= o - k || 'undefined' != typeof cr_is_preview && 1 <= this.$b && Date.now() - g < 500) && (m = v = !(d = !0), this.Me = j = E = null), ++R;
  1246. }
  1247. }, s.prototype.Ow = function () {
  1248. var t, i, s;
  1249. if (this.Db && (this.canvas.parentNode.removeChild(this.Db), this.Db = this.gn = null), this.Sk = Date.now(), this.yf = Za(), this.Un)
  1250. for (t = 0, i = this.p.length; t < i; t++)
  1251. (s = this.p[t]).B || s.Fm || !s.X.Le || s.D();
  1252. else
  1253. this.Mh = !1;
  1254. for (t = 0, i = this.hd.length; t < i; t++)
  1255. this.hd[t].Ru();
  1256. for (2 <= this.Yb && (t = this.Wa / this.Va, i = this.width / this.height, this.gh = 2 !== this.Yb && t < i || 2 === this.Yb && i < t ? this.height / this.Va : this.width / this.Wa), this.np ? this.Nm[this.np].Gn() : this.hd[0].Gn(), this.Un || (this.jk = 1, this.trigger(T.prototype.c.uo, null), window.C2_RegisterSW && window.C2_RegisterSW()), navigator.splashscreen && navigator.splashscreen.hide && navigator.splashscreen.hide(), t = 0, i = this.p.length; t < i; t++)
  1257. (s = this.p[t]).Oq && s.Oq();
  1258. document.hidden || document.webkitHidden || document.mozHidden || document.msHidden ? window.cr_setSuspended(!0) : this.mb(!1), this.pb && AppMobi.webview.execute('onGameReady();');
  1259. }, s.prototype.mb = function (t, i, s) {
  1260. if (this.ba) {
  1261. var h = Za();
  1262. if (s || !this.Ih || t) {
  1263. t || (f ? this.rn = f(this.Nr) : this.Kn = setTimeout(this.Nr, this.sf ? 1 : 16)), i = i || h;
  1264. var e = this.Yb;
  1265. if (((s = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || !!document.msFullscreenElement) && !this.vc) || this.gg) && 0 < this.Fe && (e = this.Fe), 0 < e) {
  1266. e = window.innerWidth;
  1267. var n = window.innerHeight;
  1268. this.tg === e && this.sg === n || this.setSize(e, n);
  1269. }
  1270. this.pa || (s ? this.Kj || (this.Kj = !0) : this.Kj ? (this.Kj = !1, 0 === this.Yb && this.setSize(Math.round(this.Nq / this.devicePixelRatio), Math.round(this.Mq / this.devicePixelRatio), !0)) : (this.Nq = this.width, this.Mq = this.height)), this.Mh && (s = this.Po(), this.jk = this.$b, s && (this.Mh = !1, this.$b = 1, this.trigger(T.prototype.c.uo, null), window.C2_RegisterSW && window.C2_RegisterSW())), this.tx(i), !this.fa && !this.Mc || this.Im || this.si || t || (this.fa = !1, this.k ? this.Kb() : this.ed(), this.qi && (this.canvas && this.canvas.toDataURL && (this.Hr = this.canvas.toDataURL(this.qi[0], this.qi[1]), window.cr_onSnapshot && window.cr_onSnapshot(this.Hr), this.trigger(T.prototype.c.jt, null)), this.qi = null)), this.vz || (this.Rg++, this.kf++, this.Mj++), this.Xh += Za() - h;
  1271. }
  1272. }
  1273. }, s.prototype.tx = function (t) {
  1274. var i, s, h, e, n, o, r, a;
  1275. for (1000 <= t - this.yf && (this.yf += 1000, 1000 <= t - this.yf && (this.yf = t), this.gm = this.Mj, this.Mj = 0, this.Pl = this.Xh, this.Xh = 0), (i = 0) !== this.dk && ((i = t - this.dk) < 0 && (i = 0), this.df = i /= 1000, 0.5 < this.df ? this.df = 0 : this.df > 1 / this.Eq && (this.df = 1 / this.Eq)), this.dk = t, this.De = this.df * this.Jf, this.Bb.add(this.De), this.oe.add(i), t = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || !!document.msFullscreenElement || this.gg) && !this.vc, 2 <= this.Yb || t && 0 < this.Fe ? (i = this.Wa / this.Va, s = this.width / this.height, h = this.Yb, t && 0 < this.Fe && (h = this.Fe), this.gh = 2 !== h && i < s || 2 === h && s < i ? this.height / this.Va : this.width / this.Wa, this.ba && (this.ba.Kk(this.ba.scrollX), this.ba.Lk(this.ba.scrollY))) : this.gh = this.tf ? this.devicePixelRatio : 1, this.Gb(), this.wc++, this.Hd.jy(), this.wc--, this.Gb(), this.wc++, t = 0, i = (s = this.Lq.We()).length; t < i; t++)
  1276. s[t].Ez();
  1277. for (t = 0, i = this.p.length; t < i; t++)
  1278. if (!(o = this.p[t]).B && (o.Ha.length || o.Da.length))
  1279. for (s = 0, h = o.d.length; s < h; s++)
  1280. for (e = 0, n = (r = o.d[s]).L.length; e < n; e++)
  1281. r.L[e].mb();
  1282. for (t = 0, i = this.p.length; t < i; t++)
  1283. if (!(o = this.p[t]).B && (o.Ha.length || o.Da.length))
  1284. for (s = 0, h = o.d.length; s < h; s++)
  1285. for (e = 0, n = (r = o.d[s]).L.length; e < n; e++)
  1286. (a = r.L[e]).Vx && a.Vx();
  1287. for (t = 0, i = (s = this.$m.We()).length; t < i; t++)
  1288. s[t].mb();
  1289. for (this.wc--, this.Pw(), t = 0; this.ih && t++ < 10;)
  1290. this.ep(this.ih);
  1291. for (t = 0, i = this.Ud.length; t < i; t++)
  1292. this.Ud[t].um = !1;
  1293. for (this.ba.hf && this.ba.hf.Ya(), A(this.lr), this.wc++, t = 0, i = this.p.length; t < i; t++)
  1294. if (!(o = this.p[t]).B && (o.Ha.length || o.Da.length))
  1295. for (s = 0, h = o.d.length; s < h; s++)
  1296. for (e = 0, n = (r = o.d[s]).L.length; e < n; e++)
  1297. (a = r.L[e]).Jn && a.Jn();
  1298. for (t = 0, i = (s = this.an.We()).length; t < i; t++)
  1299. s[t].Jn();
  1300. this.wc--;
  1301. }, s.prototype.Cg = function () {
  1302. var t, i, s, h, e, n, o, r, a;
  1303. for (t = 0, i = this.p.length; t < i; t++)
  1304. if (!(o = this.p[t]).B)
  1305. for (s = 0, h = o.d.length; s < h; s++)
  1306. if ((r = o.d[s]).Cg && r.Cg(), r.L)
  1307. for (e = 0, n = r.L.length; e < n; e++)
  1308. (a = r.L[e]).Cg && a.Cg();
  1309. }, s.prototype.ep = function (t) {
  1310. var i, s, h, e = this.ba;
  1311. if (this.ba.Cy(), this.k)
  1312. for (i = 0, s = this.p.length; i < s; i++)
  1313. (h = this.p[i]).B || !h.Ai || h.global && 0 !== h.d.length || -1 !== t.Bh.indexOf(h) || h.Ai();
  1314. e == t && A(this.Hd.fc), A(this.lr), this.or(!0), t.Gn(), this.or(!1), this.fa = !0, this.Gb();
  1315. }, s.prototype.or = function (t) {
  1316. var i, s, h, e, n, o, r, a, c;
  1317. for (i = 0, s = this.Ha.length; i < s; i++)
  1318. h = this.Ha[i], t ? h.ci && h.ci() : h.di && h.di();
  1319. for (i = 0, s = this.p.length; i < s; i++)
  1320. if ((h = this.p[i]).global || h.X.Rk)
  1321. for (e = 0, n = h.d.length; e < n; e++)
  1322. if (o = h.d[e], t ? o.ci && o.ci() : o.di && o.di(), o.L)
  1323. for (r = 0, a = o.L.length; r < a; r++)
  1324. c = o.L[r], t ? c.ci && c.ci() : c.di && c.di();
  1325. }, s.prototype.If = function (t) {
  1326. this.$m.add(t);
  1327. }, s.prototype.Fy = function (t) {
  1328. this.an.add(t);
  1329. }, s.prototype.Rj = function (t) {
  1330. return t && -1 !== t.ai ? this.df * t.ai : this.De;
  1331. }, s.prototype.ed = function () {
  1332. this.ba.ed(this.Ba), this.pb && this.Ba.present();
  1333. }, s.prototype.Kb = function () {
  1334. this.ya && (this.ef = 1, this.ba.Ce(this.k)), this.ba.Kb(this.k), this.k.Zx();
  1335. }, s.prototype.Du = function (t) {
  1336. t && this.Yl.push(t);
  1337. }, s.prototype.Uj = function (t) {
  1338. return t = t.toString(), this.be.hasOwnProperty(t) ? this.be[t] : null;
  1339. };
  1340. var S = [];
  1341. s.prototype.Xe = function (t) {
  1342. var i, s;
  1343. i = t.type.name;
  1344. var h = null;
  1345. if (this.cf.hasOwnProperty(i)) {
  1346. if ((h = this.cf[i]).contains(t))
  1347. return;
  1348. } else
  1349. h = S.length ? S.pop() : new ca(), this.cf[i] = h;
  1350. if (h.add(t), this.He = !0, t.Ab)
  1351. for (i = 0, s = t.siblings.length; i < s; i++)
  1352. this.Xe(t.siblings[i]);
  1353. this.Dm && h.Ug.push(t), this.Cm || (this.wc++, this.trigger(Object.getPrototypeOf(t.type.X).c.po, t), this.wc--);
  1354. }, s.prototype.Gb = function () {
  1355. if (this.He) {
  1356. var t, i, s, h, e, n;
  1357. for (this.Dm = !0, s = 0, e = this.cd.length; s < e; ++s)
  1358. for ((i = (t = this.cd[s]).type).d.push(t), h = 0, n = i.Da.length; h < n; ++h)
  1359. i.Da[h].d.push(t), i.Da[h].Ng = !0;
  1360. A(this.cd), this.Ys(), Ya(this.cf), this.He = this.Dm = !1;
  1361. }
  1362. }, s.prototype.Ys = function () {
  1363. for (var t in this.cf)
  1364. this.cf.hasOwnProperty(t) && this.ps(this.cf[t]);
  1365. }, s.prototype.ps = function (t) {
  1366. var i, s, h, e, n, o, r = t.We(), a = r[0].type;
  1367. for ($a(a.d, t), a.Ng = !0, 0 === a.d.length && (a.fj = !1), i = 0, s = a.Da.length; i < s; ++i)
  1368. o = a.Da[i], $a(o.d, t), o.Ng = !0;
  1369. for (i = 0, s = this.Hd.fc.length; i < s; ++i)
  1370. if ((n = this.Hd.fc[i]).Sb.hasOwnProperty(a.index) && $a(n.Sb[a.index].Xd, t), !a.B)
  1371. for (h = 0, e = a.Da.length; h < e; ++h)
  1372. o = a.Da[h], n.Sb.hasOwnProperty(o.index) && $a(n.Sb[o.index].Xd, t);
  1373. if (n = r[0].j) {
  1374. if (n.Ec)
  1375. for (i = 0, s = (h = n.d).length; i < s; ++i)
  1376. e = h[i], t.contains(e) && (e.Aa(), n.Eb.update(e, e.ac, null), e.ac.set(0, 0, -1, -1));
  1377. $a(n.d, t), n.mi(0);
  1378. }
  1379. for (i = 0; i < r.length; ++i)
  1380. this.os(r[i], a);
  1381. t.clear(), S.push(t), this.fa = !0;
  1382. }, s.prototype.os = function (t, i) {
  1383. var s, h, e;
  1384. for (s = 0, h = this.Yl.length; s < h; ++s)
  1385. this.Yl[s](t);
  1386. if (t.ze && i.rj.update(t, t.ze, null), (s = t.j) && s.Gg(t, !0), t.L)
  1387. for (s = 0, h = t.L.length; s < h; ++s)
  1388. (e = t.L[s]).Ef && e.Ef(), e.behavior.Ym.remove(t);
  1389. this.Lq.remove(t), this.$m.remove(t), this.an.remove(t), t.Ef && t.Ef(), this.be.hasOwnProperty(t.uid.toString()) && delete this.be[t.uid.toString()], this.rk--, i.yj.length < 100 && i.yj.push(t);
  1390. }, s.prototype.Rl = function (t, i, s, h) {
  1391. if (t.B) {
  1392. var e = ta(Math.random() * t.yg.length);
  1393. return this.Rl(t.yg[e], i, s, h);
  1394. }
  1395. return t.Jc ? this.Ae(t.Jc, i, !1, s, h, !1) : null;
  1396. };
  1397. var M = [];
  1398. s.prototype.Ae = function (t, i, s, h, e, n) {
  1399. var o, r, a, c;
  1400. if (!t)
  1401. return null;
  1402. var p = this.p[t[1]], u = p.X.Le;
  1403. if (this.Mh && u && !p.Fm || u && !this.k && 11 === t[0][11])
  1404. return null;
  1405. var f, l, b = i;
  1406. for (u || (i = null), p.yj.length ? ((f = p.yj.pop()).Bc = !0, p.X.S.call(f, p)) : (f = new p.X.S(p)).Bc = !1, !s || n || this.be.hasOwnProperty(t[2].toString()) ? f.uid = this.bi++ : f.uid = t[2], (this.be[f.uid.toString()] = f).ir = this.Hq++, f.rf = p.d.length, o = 0, r = this.cd.length; o < r; ++o)
  1407. this.cd[o].type === p && f.rf++;
  1408. if (f.uh = Kb, f.toString = Lb, a = t[3], f.Bc)
  1409. Ya(f.ja);
  1410. else {
  1411. if (f.ja = {}, 'undefined' != typeof cr_is_preview)
  1412. for (f.Jp = [], f.Jp.length = a.length, o = 0, r = a.length; o < r; o++)
  1413. f.Jp[o] = a[o][1];
  1414. f.hb = [], f.hb.length = a.length;
  1415. }
  1416. for (o = 0, r = a.length; o < r; o++)
  1417. f.hb[o] = a[o][0];
  1418. if (u) {
  1419. var d = t[0];
  1420. if (f.x = ha(h) ? d[0] : h, f.y = ha(e) ? d[1] : e, f.z = d[2], f.width = d[3], f.height = d[4], f.depth = d[5], f.m = d[6], f.opacity = d[7], f.Nb = d[8], f.Ob = d[9], f.Hb = d[10], o = d[11], !this.k && p.M.length && (f.Hb = o), f.jh = jb(f.Hb), this.u && kb(f, f.Hb, this.u), f.Bc) {
  1421. for (o = 0, r = d[12].length; o < r; o++)
  1422. for (a = 0, c = d[12][o].length; a < c; a++)
  1423. f.Ja[o][a] = d[12][o][a];
  1424. f.Qa.set(0, 0, 0, 0), f.ze.set(0, 0, -1, -1), f.ac.set(0, 0, -1, -1), f.Xb.ni(f.Qa), A(f.Gl);
  1425. } else {
  1426. for (f.Ja = d[12].slice(0), o = 0, r = f.Ja.length; o < r; o++)
  1427. f.Ja[o] = d[12][o].slice(0);
  1428. f.ea = [], f.re = [], f.re.length = p.M.length, f.Qa = new wa(0, 0, 0, 0), f.ze = new wa(0, 0, -1, -1), f.ac = new wa(0, 0, -1, -1), f.Xb = new xa(), f.Gl = [], f.za = Ob, f.oz = Pb, f.Ib = Qb, f.Aa = Rb, f.Ny = Sb, f.$r = Tb, f.wd = Ub;
  1429. }
  1430. for (f.Sg = !1, f.Iy = 0, f.Hy = 0, f.Gy = null, 14 === d.length && (f.Sg = !0, f.Iy = d[13][0], f.Hy = d[13][1], f.Gy = d[13][2]), o = 0, r = p.M.length; o < r; o++)
  1431. f.re[o] = !0;
  1432. f.ie = !0, f.nd = Vb, f.nd(), f.as = !!f.ea.length, f.Fl = !0, f.Kl = !0, p.ej = !0, f.visible = !0, f.ai = -1, f.j = i, f.pd = i.d.length, void (f.ef = 0) === f.ga && (f.ga = null), this.fa = f.$e = !0;
  1433. }
  1434. for (A(M), o = 0, r = p.Da.length; o < r; o++)
  1435. M.push.apply(M, p.Da[o].Ha);
  1436. if (M.push.apply(M, p.Ha), f.Bc)
  1437. for (o = 0, r = M.length; o < r; o++) {
  1438. var g = M[o];
  1439. for ((l = f.L[o]).Bc = !0, g.behavior.S.call(l, g, f), a = 0, c = (d = t[4][o]).length; a < c; a++)
  1440. l.A[a] = d[a];
  1441. l.D(), g.behavior.Ym.add(f);
  1442. }
  1443. else
  1444. for (f.L = [], o = 0, r = M.length; o < r; o++)
  1445. (l = new (g = M[o]).behavior.S(g, f)).Bc = !1, l.A = t[4][o].slice(0), l.D(), f.L.push(l), g.behavior.Ym.add(f);
  1446. if (d = t[5], f.Bc)
  1447. for (o = 0, r = d.length; o < r; o++)
  1448. f.A[o] = d[o];
  1449. else
  1450. f.A = d.slice(0);
  1451. if (this.cd.push(f), this.He = !0, i && (i.fh(f, !0), 1 !== i.Pc || 1 !== i.Qc) && (p.fj = !0), this.rk++, p.Ab) {
  1452. if (f.Ab = !0, f.Bc ? A(f.siblings) : f.siblings = [], !s && !n) {
  1453. for (o = 0, r = p.hc.length; o < r; o++)
  1454. if (p.hc[o] !== p) {
  1455. if (!p.hc[o].Jc)
  1456. return null;
  1457. f.siblings.push(this.Ae(p.hc[o].Jc, b, !1, u ? f.x : h, u ? f.y : e, !0));
  1458. }
  1459. for (o = 0, r = f.siblings.length; o < r; o++)
  1460. for (f.siblings[o].siblings.push(f), a = 0; a < r; a++)
  1461. o !== a && f.siblings[o].siblings.push(f.siblings[a]);
  1462. }
  1463. } else
  1464. f.Ab = !1, f.siblings = null;
  1465. for (f.D(), o = 0, r = f.L.length; o < r; o++)
  1466. f.L[o].Ux && f.L[o].Ux();
  1467. return f;
  1468. }, s.prototype.Sj = function (t) {
  1469. var i, s;
  1470. for (i = 0, s = this.ba.P.length; i < s; i++) {
  1471. var h = this.ba.P[i];
  1472. if (mb(h.name, t))
  1473. return h;
  1474. }
  1475. return null;
  1476. }, s.prototype.ag = function (t) {
  1477. return (t = ta(t)) < 0 && (t = 0), t >= this.ba.P.length && (t = this.ba.P.length - 1), this.ba.P[t];
  1478. }, s.prototype.wp = function (t) {
  1479. return ja(t) ? this.ag(t) : this.Sj(t.toString());
  1480. }, s.prototype.Nl = function (t) {
  1481. var i, s;
  1482. for (i = 0, s = t.length; i < s; i++)
  1483. t[i].N().R = !0;
  1484. }, s.prototype.ii = function (t) {
  1485. var i, s;
  1486. for (i = 0, s = t.length; i < s; i++)
  1487. t[i].ii();
  1488. }, s.prototype.Qe = function (t) {
  1489. var i, s;
  1490. for (i = 0, s = t.length; i < s; i++)
  1491. t[i].Qe();
  1492. }, s.prototype.jd = function (t) {
  1493. var i, s;
  1494. for (i = 0, s = t.length; i < s; i++)
  1495. t[i].jd();
  1496. }, s.prototype.Xr = function (t) {
  1497. if (t.ej) {
  1498. var i, s, h = t.d;
  1499. for (i = 0, s = h.length; i < s; ++i)
  1500. h[i].$r();
  1501. for (i = 0, s = (h = this.cd).length; i < s; ++i)
  1502. h[i].type === t && h[i].$r();
  1503. t.ej = !1;
  1504. }
  1505. }, s.prototype.ow = function (t, i, s, h) {
  1506. var e, n, o = !!t && (1 !== t.Pc || 1 !== t.Qc);
  1507. if (i.B)
  1508. for (t = 0, e = i.yg.length; t < e; ++t)
  1509. n = i.yg[t], o || n.fj ? Fa(h, n.d) : (this.Xr(n), n.rj.Fk(s, h));
  1510. else
  1511. o || i.fj ? Fa(h, i.d) : (this.Xr(i), i.rj.Fk(s, h));
  1512. }, s.prototype.Wk = function (t, i, s) {
  1513. var h, e, n, o, r, a, c, p = t.N(), u = this.Ea().Ia.kc;
  1514. if (p.R)
  1515. for (p.R = !1, A(p.d), h = 0, o = t.d.length; h < o; h++)
  1516. (n = t.d[h]).Aa(), r = n.j.ub(i, s, !0), a = n.j.ub(i, s, !1), n.Ib(r, a) ? p.d.push(n) : u && p.I.push(n);
  1517. else {
  1518. for (h = e = 0, o = (c = u ? p.I : p.d).length; h < o; h++)
  1519. (n = c[h]).Aa(), r = n.j.ub(i, s, !0), a = n.j.ub(i, s, !1), n.Ib(r, a) && (u ? p.d.push(n) : (p.d[e] = p.d[h], e++));
  1520. c.length = e;
  1521. }
  1522. return t.Gc(), p.tm();
  1523. }, s.prototype.Ey = function (t, i) {
  1524. if (!(t && i && t !== i && t.$e && i.$e))
  1525. return !1;
  1526. t.Aa(), i.Aa();
  1527. var s, h, e, n, o, r, a, c, p = t.j, u = i.j;
  1528. if (p === u || p.Pc === u.Pc && u.Qc == u.Qc && p.scale === u.scale && p.m === u.m && p.qd === u.qd)
  1529. return !(!t.Qa.Ww(i.Qa) || !t.Xb.Kp(i.Xb) || t.Sg && i.Sg) && (t.Sg ? this.Lr(t, i) : i.Sg ? this.Lr(i, t) : (a = t.ga && !t.ga.jg(), s = i.ga && !i.ga.jg(), !a && !s || (a = a ? (t.ga.Sf(t.width, t.height, t.m), t.ga) : (this.md.Lg(t.Xb, t.x, t.y, t.width, t.height), this.md), c = s ? (i.ga.Sf(i.width, i.height, i.m), i.ga) : (this.md.Lg(i.Xb, i.x, i.y, i.width, i.height), this.md), a.Ch(c, i.x - t.x, i.y - t.y))));
  1530. for (a = t.ga && !t.ga.jg(), s = i.ga && !i.ga.jg(), a ? (t.ga.Sf(t.width, t.height, t.m), this.md.Ar(t.ga)) : this.md.Lg(t.Xb, t.x, t.y, t.width, t.height), a = this.md, s ? (i.ga.Sf(i.width, i.height, i.m), this.In.Ar(i.ga)) : this.In.Lg(i.Xb, i.x, i.y, i.width, i.height), c = this.In, s = 0, h = a.kd; s < h; s++)
  1531. n = (e = 2 * s) + 1, o = a.lb[e], r = a.lb[n], a.lb[e] = p.ib(o + t.x, r + t.y, !0), a.lb[n] = p.ib(o + t.x, r + t.y, !1);
  1532. for (a.Aa(), s = 0, h = c.kd; s < h; s++)
  1533. n = (e = 2 * s) + 1, o = c.lb[e], r = c.lb[n], c.lb[e] = u.ib(o + i.x, r + i.y, !0), c.lb[n] = u.ib(o + i.x, r + i.y, !1);
  1534. return c.Aa(), a.Ch(c, 0, 0);
  1535. };
  1536. var P = new xa();
  1537. new wa(0, 0, 0, 0);
  1538. var q = [];
  1539. s.prototype.Lr = function (t, i) {
  1540. var s, h, e, n, o = i.Qa, r = t.x, a = t.y;
  1541. t.sz(o, q);
  1542. var c = i.ga && !i.ga.jg();
  1543. for (s = 0, h = q.length; s < h; ++s)
  1544. if (n = (e = q[s]).Hz, o.Xw(n, r, a) && (P.ni(n), P.offset(r, a), P.Kp(i.Xb)))
  1545. if (c) {
  1546. if (i.ga.Sf(i.width, i.height, i.m), e.kn) {
  1547. if (e.kn.Ch(i.ga, i.x - (r + n.left), i.y - (a + n.top)))
  1548. return A(q), !0;
  1549. } else if (this.md.Lg(P, 0, 0, n.right - n.left, n.bottom - n.top), this.md.Ch(i.ga, i.x, i.y))
  1550. return A(q), !0;
  1551. } else {
  1552. if (!e.kn)
  1553. return A(q), !0;
  1554. if (this.md.Lg(i.Xb, 0, 0, i.width, i.height), e.kn.Ch(this.md, -(r + n.left), -(a + n.top)))
  1555. return A(q), !0;
  1556. }
  1557. return A(q), !1;
  1558. }, s.prototype.Tr = function (t, i) {
  1559. if (!i)
  1560. return !1;
  1561. var s, h, e, n, o;
  1562. for (s = 0, h = t.Ha.length; s < h; s++)
  1563. if (t.Ha[s].behavior instanceof i)
  1564. return !0;
  1565. if (!t.B)
  1566. for (s = 0, h = t.Da.length; s < h; s++)
  1567. for (e = 0, n = (o = t.Da[s]).Ha.length; e < n; e++)
  1568. if (o.Ha[e].behavior instanceof i)
  1569. return !0;
  1570. return !1;
  1571. }, s.prototype.Pn = function (t) {
  1572. return this.Tr(t, jc.cz);
  1573. }, s.prototype.Qn = function (t) {
  1574. return this.Tr(t, jc.dz);
  1575. };
  1576. var O = -1;
  1577. s.prototype.trigger = function (t, i, s) {
  1578. if (!this.ba)
  1579. return !1;
  1580. var h = this.ba.hf;
  1581. if (!h)
  1582. return !1;
  1583. var e, n, o, r = !1;
  1584. O++;
  1585. var a = h.Wl;
  1586. for (n = 0, o = a.length; n < o; ++n)
  1587. e = this.Qr(t, i, a[n], s), r = r || e;
  1588. return e = this.Qr(t, i, h, s), O--, r || e;
  1589. }, s.prototype.Qr = function (t, i, s, h) {
  1590. var e, n, o, r, a = !1;
  1591. if (i)
  1592. for (o = this.Nn(t, i, i.type.name, s, h), a = a || o, e = 0, n = (r = i.type.Da).length; e < n; ++e)
  1593. o = this.Nn(t, i, r[e].name, s, h), a = a || o;
  1594. else
  1595. o = this.Nn(t, i, 'system', s, h), a = a || o;
  1596. return a;
  1597. }, s.prototype.Nn = function (t, i, s, h, e) {
  1598. var n, o = !1, r = !1, a = ((r = void 0 !== e) ? h.ip : h.Rr)[s];
  1599. if (!a)
  1600. return o;
  1601. var c, p = null;
  1602. for (h = 0, n = a.length; h < n; ++h)
  1603. if (a[h].method == t) {
  1604. p = a[h].ph;
  1605. break;
  1606. }
  1607. if (!p)
  1608. return o;
  1609. if (!(c = r ? p[e] : p))
  1610. return null;
  1611. for (h = 0, n = c.length; h < n; h++)
  1612. t = c[h][0], e = c[h][1], r = this.ew(i, s, t, e), o = o || r;
  1613. return o;
  1614. }, s.prototype.ew = function (t, i, s, h) {
  1615. var e, n, o = !1;
  1616. this.On++;
  1617. var r = this.Ea().Ia;
  1618. r && this.ii(r.Te);
  1619. var a = 1 < this.On;
  1620. this.ii(s.Te), a && this.ay();
  1621. var c = this.Ek(s);
  1622. if (c.Ia = s, t && ((e = this.types[i].N()).R = !1, A(e.d), e.d[0] = t, this.types[i].Gc()), t = !0, s.parent) {
  1623. for (i = c.Kr, e = s.parent; e;)
  1624. i.push(e), e = e.parent;
  1625. for (i.reverse(), e = 0, n = i.length; e < n; e++)
  1626. if (!i[e].ly()) {
  1627. t = !1;
  1628. break;
  1629. }
  1630. }
  1631. return t && (this.kf++, s.kc ? s.ky(h) : s.Ya(), o = o || c.xf), this.zk(), a && this.Tx(), this.jd(s.Te), r && this.jd(r.Te), this.He && 0 === this.wc && 0 === O && !this.Gm && this.Gb(), this.On--, o;
  1632. }, s.prototype.Qj = function () {
  1633. var t = this.Ea();
  1634. return t.Ia.eb[t.Ra];
  1635. }, s.prototype.Zw = function () {
  1636. return 0 === this.Ea().Ra;
  1637. }, s.prototype.pw = function () {
  1638. var t = this.Ea();
  1639. return t.Ia.Fc[t.Wb];
  1640. }, s.prototype.ay = function () {
  1641. this.lk++, this.lk >= this.Tm.length && this.Tm.push([]);
  1642. }, s.prototype.Tx = function () {
  1643. this.lk--;
  1644. }, s.prototype.tp = function () {
  1645. return this.Tm[this.lk];
  1646. }, s.prototype.Ek = function (t) {
  1647. this.Dj++, this.Dj >= this.am.length && this.am.push(new Wb());
  1648. var i = this.Ea();
  1649. return i.reset(t), i;
  1650. }, s.prototype.zk = function () {
  1651. this.Dj--;
  1652. }, s.prototype.Ea = function () {
  1653. return this.am[this.Dj];
  1654. }, s.prototype.pn = function (t) {
  1655. this.Zh++, this.Zh >= this.Yh.length && this.Yh.push(aa({
  1656. name: t,
  1657. index: 0,
  1658. ta: !1
  1659. }));
  1660. var i = this.up();
  1661. return i.name = t, i.index = 0, i.ta = !1, i;
  1662. }, s.prototype.ln = function () {
  1663. this.Zh--;
  1664. }, s.prototype.up = function () {
  1665. return this.Yh[this.Zh];
  1666. }, s.prototype.vp = function (t, i) {
  1667. for (var s, h, e, n, o, r; i;) {
  1668. for (s = 0, h = i.Uc.length; s < h; s++)
  1669. if ((r = i.Uc[s]) instanceof Xb && mb(t, r.name))
  1670. return r;
  1671. i = i.parent;
  1672. }
  1673. for (s = 0, h = this.Ud.length; s < h; s++)
  1674. for (e = 0, n = (o = this.Ud[s]).Ee.length; e < n; e++)
  1675. if ((r = o.Ee[e]) instanceof Xb && mb(t, r.name))
  1676. return r;
  1677. return null;
  1678. }, s.prototype.xp = function (t) {
  1679. var i, s;
  1680. for (i = 0, s = this.hd.length; i < s; i++)
  1681. if (this.hd[i].Y === t)
  1682. return this.hd[i];
  1683. return null;
  1684. }, s.prototype.Vj = function (t) {
  1685. var i, s;
  1686. for (i = 0, s = this.p.length; i < s; i++)
  1687. if (this.p[i].Y === t)
  1688. return this.p[i];
  1689. return null;
  1690. }, s.prototype.rw = function (t) {
  1691. var i, s;
  1692. for (i = 0, s = this.Qf.length; i < s; i++)
  1693. if (this.Qf[i].Y === t)
  1694. return this.Qf[i];
  1695. return null;
  1696. }, s.prototype.Yu = function (t, i) {
  1697. this.qi = [t,i], this.fa = !0;
  1698. }, s.prototype.Pw = function () {
  1699. var s = this, t = this.Bn, h = this.Zd, i = this.gk, e = !1;
  1700. if (this.Fr && (e = !0, t = '__c2_continuouspreview', this.Fr = !1), t.length) {
  1701. if (this.Gb(), h = this.qy(), n() && !this.Mc)
  1702. !function (i, s, h, e) {
  1703. try {
  1704. var t = indexedDB.open('_C2SaveStates');
  1705. t.onupgradeneeded = o, t.onerror = e, t.onsuccess = function (t) {
  1706. (t = t.target.result).onerror = e, t.transaction(["saves"], 'readwrite').objectStore('saves').put({
  1707. slot: i,
  1708. data: s
  1709. }).onsuccess = h;
  1710. };
  1711. } catch (t) {
  1712. e(t);
  1713. }
  1714. }(t, h, function () {
  1715. fa('Saved state to IndexedDB storage (' + h.length + ' bytes)'), s.Zd = h, s.trigger(T.prototype.c.ql, null), h = s.Zd = '', e && r();
  1716. }, function (i) {
  1717. try {
  1718. localStorage.setItem('__c2save_' + t, h), fa('Saved state to WebStorage (' + h.length + ' bytes)'), s.Zd = h, s.trigger(T.prototype.c.ql, null), h = s.Zd = '', e && r();
  1719. } catch (t) {
  1720. fa('Failed to save game state: ' + i + '; ' + t), s.trigger(T.prototype.c.zo, null);
  1721. }
  1722. });
  1723. else
  1724. try {
  1725. localStorage.setItem('__c2save_' + t, h), fa('Saved state to WebStorage (' + h.length + ' bytes)'), s.Zd = h, this.trigger(T.prototype.c.ql, null), h = s.Zd = '', e && r();
  1726. } catch (t) {
  1727. fa('Error saving to WebStorage: ' + t), s.trigger(T.prototype.c.zo, null);
  1728. }
  1729. this.gk = this.Bn = '', this.kb = null;
  1730. }
  1731. if (i.length) {
  1732. if (n() && !this.Mc)
  1733. !function (s, h, e) {
  1734. try {
  1735. var t = indexedDB.open('_C2SaveStates');
  1736. t.onupgradeneeded = o, t.onerror = e, t.onsuccess = function (t) {
  1737. (t = t.target.result).onerror = e;
  1738. var i = t.transaction(["saves"]).objectStore('saves').get(s);
  1739. i.onsuccess = function () {
  1740. i.result ? h(i.result.data) : h(null);
  1741. };
  1742. };
  1743. } catch (t) {
  1744. e(t);
  1745. }
  1746. }(i, function (t) {
  1747. t ? (s.kb = t, fa('Loaded state from IndexedDB storage (' + s.kb.length + ' bytes)')) : (s.kb = localStorage.getItem('__c2save_' + i) || '', fa('Loaded state from WebStorage (' + s.kb.length + ' bytes)')), s.si = !1, s.kb || (s.kb = null, s.trigger(T.prototype.c.Vi, null));
  1748. }, function () {
  1749. s.kb = localStorage.getItem('__c2save_' + i) || '', fa('Loaded state from WebStorage (' + s.kb.length + ' bytes)'), s.si = !1, s.kb || (s.kb = null, s.trigger(T.prototype.c.Vi, null));
  1750. });
  1751. else {
  1752. try {
  1753. this.kb = localStorage.getItem('__c2save_' + i) || '', fa('Loaded state from WebStorage (' + this.kb.length + ' bytes)');
  1754. } catch (t) {
  1755. this.kb = null;
  1756. }
  1757. this.si = !1, s.kb || (s.kb = null, s.trigger(T.prototype.c.Vi, null));
  1758. }
  1759. this.Bn = this.gk = '';
  1760. }
  1761. null !== this.kb && (this.Gb(), this.rx(this.kb) ? (this.Zd = this.kb, this.trigger(T.prototype.c.ut, null), this.Zd = '') : s.trigger(T.prototype.c.Vi, null), this.kb = null);
  1762. }, s.prototype.qy = function () {
  1763. var t, i, s, h, e, n, o, r = {
  1764. c2save: !0,
  1765. version: 1,
  1766. rt: {
  1767. time: this.Bb.Z,
  1768. walltime: this.oe.Z,
  1769. timescale: this.Jf,
  1770. tickcount: this.Rg,
  1771. execcount: this.kf,
  1772. next_uid: this.bi,
  1773. running_layout: this.ba.Y,
  1774. start_time_offset: Date.now() - this.Sk
  1775. },
  1776. types: {},
  1777. layouts: {},
  1778. events: {
  1779. groups: {},
  1780. cnds: {},
  1781. acts: {},
  1782. vars: {}
  1783. }
  1784. };
  1785. for (t = 0, i = this.p.length; t < i; t++)
  1786. if (!(e = this.p[t]).B && !this.Pn(e)) {
  1787. for (n = { instances: [] }, Xa(e.ja) && (n.ex = a(e.ja)), s = 0, h = e.d.length; s < h; s++)
  1788. n.instances.push(this.An(e.d[s]));
  1789. r.types[e.Y.toString()] = n;
  1790. }
  1791. for (t = 0, i = this.hd.length; t < i; t++)
  1792. s = this.hd[t], r.layouts[s.Y.toString()] = s.Fb();
  1793. for (h = r.events.groups, t = 0, i = this.Qf.length; t < i; t++)
  1794. h[(s = this.Qf[t]).Y.toString()] = this.wh[s.vh].dg;
  1795. for (o in (i = r.events.cnds, this.ye))
  1796. this.ye.hasOwnProperty(o) && (t = this.ye[o], Xa(t.ja) && (i[o] = { ex: a(t.ja) }));
  1797. for (o in (i = r.events.acts, this.se))
  1798. this.se.hasOwnProperty(o) && (t = this.se[o], Xa(t.ja) && (i[o] = { ex: a(t.ja) }));
  1799. for (o in (i = r.events.vars, this.Vg))
  1800. this.Vg.hasOwnProperty(o) && ((t = this.Vg[o]).ak || t.parent && !t.Lh || (i[o] = t.data));
  1801. return r.system = this.Hd.Fb(), JSON.stringify(r);
  1802. }, s.prototype.kr = function () {
  1803. var t, i, s, h, e, n;
  1804. for (this.be = {}, t = 0, i = this.p.length; t < i; t++)
  1805. if (!(s = this.p[t]).B)
  1806. for (h = 0, e = s.d.length; h < e; h++)
  1807. n = s.d[h], this.be[n.uid.toString()] = n;
  1808. }, s.prototype.rx = function (t) {
  1809. var i;
  1810. try {
  1811. i = JSON.parse(t);
  1812. } catch (t) {
  1813. return !1;
  1814. }
  1815. if (!i.c2save || 1 < i.version)
  1816. return !1;
  1817. this.Fh = !0, t = i.rt, this.Bb.reset(), this.Bb.Z = t.time, this.oe.reset(), this.oe.Z = t.walltime || 0, this.Jf = t.timescale, this.Rg = t.tickcount, this.kf = t.execcount, this.Sk = Date.now() - t.start_time_offset;
  1818. var s, h, e, n, o, r, a, c = t.running_layout;
  1819. if (c !== this.ba.Y) {
  1820. if (!(c = this.xp(c)))
  1821. return;
  1822. this.ep(c);
  1823. }
  1824. for (h in r = i.types)
  1825. if (r.hasOwnProperty(h) && (n = this.Vj(parseInt(h, 10))) && !n.B && !this.Pn(n)) {
  1826. for (r[h].ex ? n.ja = r[h].ex : Ya(n.ja), o = n.d, e = r[h].instances, c = 0, s = qa(o.length, e.length); c < s; c++)
  1827. this.hk(o[c], e[c]);
  1828. for (c = e.length, s = o.length; c < s; c++)
  1829. this.Xe(o[c]);
  1830. for (c = o.length, s = e.length; c < s; c++)
  1831. o = null, n.X.Le && !(o = this.ba.Tj(e[c].w.l)) || (o = this.Ae(n.Jc, o, !1, 0, 0, !0), this.hk(o, e[c]));
  1832. n.Ng = !0;
  1833. }
  1834. for (h in (this.Gb(), this.kr(), s = i.layouts))
  1835. s.hasOwnProperty(h) && (c = this.xp(parseInt(h, 10))) && c.Qb(s[h]);
  1836. for (h in s = i.events.groups)
  1837. s.hasOwnProperty(h) && (c = this.rw(parseInt(h, 10))) && this.wh[c.vh] && this.wh[c.vh].ty(s[h]);
  1838. for (h in (c = i.events.cnds, this.ye))
  1839. this.ye.hasOwnProperty(h) && (c.hasOwnProperty(h) ? this.ye[h].ja = c[h].ex : this.ye[h].ja = {});
  1840. for (h in (c = i.events.acts, this.se))
  1841. this.se.hasOwnProperty(h) && (c.hasOwnProperty(h) ? this.se[h].ja = c[h].ex : this.se[h].ja = {});
  1842. for (h in c = i.events.vars)
  1843. c.hasOwnProperty(h) && this.Vg.hasOwnProperty(h) && (this.Vg[h].data = c[h]);
  1844. for (this.bi = t.next_uid, this.Fh = !1, c = 0, s = this.Jj.length; c < s; ++c)
  1845. o = this.Jj[c], this.trigger(Object.getPrototypeOf(o.type.X).c.Jd, o);
  1846. for (A(this.Jj), this.Hd.Qb(i.system), c = 0, s = this.p.length; c < s; c++)
  1847. if (!(n = this.p[c]).B && !this.Pn(n))
  1848. for (i = 0, h = n.d.length; i < h; i++) {
  1849. if (o = n.d[i], n.Ab)
  1850. for (r = o.uh(), A(o.siblings), t = 0, e = n.hc.length; t < e; t++)
  1851. n !== (a = n.hc[t]) && o.siblings.push(a.d[r]);
  1852. if (o.Kd && o.Kd(), o.L)
  1853. for (t = 0, e = o.L.length; t < e; t++)
  1854. (r = o.L[t]).Kd && r.Kd();
  1855. }
  1856. return this.fa = !0;
  1857. }, s.prototype.An = function (t, i) {
  1858. var s, h, e, n, o;
  1859. e = (n = t.type).X;
  1860. var r = {};
  1861. if (i ? r.c2 = !0 : r.uid = t.uid, Xa(t.ja) && (r.ex = a(t.ja)), t.hb && t.hb.length)
  1862. for (r.ivs = {}, s = 0, h = t.hb.length; s < h; s++)
  1863. r.ivs[t.type.Am[s].toString()] = t.hb[s];
  1864. if (e.Le) {
  1865. if (e = {
  1866. x: t.x,
  1867. y: t.y,
  1868. w: t.width,
  1869. h: t.height,
  1870. l: t.j.Y,
  1871. zi: t.wd()
  1872. }, 0 !== t.m && (e.a = t.m), 1 !== t.opacity && (e.o = t.opacity), 0.5 !== t.Nb && (e.hX = t.Nb), 0.5 !== t.Ob && (e.hY = t.Ob), 0 !== t.Hb && (e.bm = t.Hb), t.visible || (e.v = t.visible), t.$e || (e.ce = t.$e), -1 !== t.ai && (e.mts = t.ai), n.M.length)
  1873. for (e.fx = [], s = 0, h = n.M.length; s < h; s++)
  1874. o = n.M[s], e.fx.push({
  1875. name: o.name,
  1876. active: t.re[o.index],
  1877. params: t.Ja[o.index]
  1878. });
  1879. r.w = e;
  1880. }
  1881. if (t.L && t.L.length)
  1882. for (r.behs = {}, s = 0, h = t.L.length; s < h; s++)
  1883. (n = t.L[s]).Fb && (r.behs[n.type.Y.toString()] = n.Fb());
  1884. return t.Fb && (r.data = t.Fb()), r;
  1885. }, s.prototype.uw = function (t, i) {
  1886. var s, h;
  1887. for (s = 0, h = t.Am.length; s < h; s++)
  1888. if (t.Am[s] === i)
  1889. return s;
  1890. return -1;
  1891. }, s.prototype.mw = function (t, i) {
  1892. var s, h;
  1893. for (s = 0, h = t.L.length; s < h; s++)
  1894. if (t.L[s].type.Y === i)
  1895. return s;
  1896. return -1;
  1897. }, s.prototype.hk = function (t, i, s) {
  1898. var h, e, n, o, r, a = (r = t.type).X;
  1899. if (s) {
  1900. if (!i.c2)
  1901. return;
  1902. } else
  1903. t.uid = i.uid;
  1904. if (i.ex ? t.ja = i.ex : Ya(t.ja), e = i.ivs)
  1905. for (h in e)
  1906. e.hasOwnProperty(h) && ((n = this.uw(r, parseInt(h, 10))) < 0 || n >= t.hb.length || (null === (o = e[h]) && (o = NaN), t.hb[n] = o));
  1907. if (a.Le) {
  1908. if (n = i.w, t.j.Y !== n.l && (e = t.j, t.j = this.ba.Tj(n.l), t.j ? (e.Gg(t, !0), t.j.fh(t, !0), t.za(), t.j.mi(0)) : (t.j = e, s || this.Xe(t))), t.x = n.x, t.y = n.y, t.width = n.w, t.height = n.h, t.pd = n.zi, t.m = n.hasOwnProperty('a') ? n.a : 0, t.opacity = n.hasOwnProperty('o') ? n.o : 1, t.Nb = n.hasOwnProperty('hX') ? n.hX : 0.5, t.Ob = n.hasOwnProperty('hY') ? n.hY : 0.5, t.visible = !n.hasOwnProperty('v') || n.v, t.$e = !n.hasOwnProperty('ce') || n.ce, t.ai = n.hasOwnProperty('mts') ? n.mts : -1, t.Hb = n.hasOwnProperty('bm') ? n.bm : 0, t.jh = jb(t.Hb), this.u && kb(t, t.Hb, this.u), t.za(), n.hasOwnProperty('fx'))
  1909. for (s = 0, e = n.fx.length; s < e; s++)
  1910. (o = r.lm(n.fx[s].name)) < 0 || (t.re[o] = n.fx[s].active, t.Ja[o] = n.fx[s].params);
  1911. t.nd();
  1912. }
  1913. if (r = i.behs)
  1914. for (h in r)
  1915. r.hasOwnProperty(h) && ((s = this.mw(t, parseInt(h, 10))) < 0 || t.L[s].Qb(r[h]));
  1916. i.data && t.Qb(i.data);
  1917. }, s.prototype.jp = function (t, i, s) {
  1918. window.resolveLocalFileSystemURL(cordova.file.applicationDirectory + 'www/' + t, function (t) {
  1919. t.file(i, s);
  1920. }, s);
  1921. }, s.prototype.lp = function (t, s, h) {
  1922. this.jp(t, function (t) {
  1923. var i = new FileReader();
  1924. i.onload = function (t) {
  1925. s(t.target.result);
  1926. }, i.onerror = h, i.readAsText(t);
  1927. }, h);
  1928. };
  1929. var L = [], D = 0;
  1930. s.prototype.Vm = function () {
  1931. if (L.length && !(8 <= D)) {
  1932. D++;
  1933. var t = L.shift();
  1934. this.$u(t.filename, t.Dy, t.Bv);
  1935. }
  1936. }, s.prototype.kp = function (t, i, s) {
  1937. var h = this;
  1938. L.push({
  1939. filename: t,
  1940. Dy: function (t) {
  1941. D--, h.Vm(), i(t);
  1942. },
  1943. Bv: function (t) {
  1944. D--, h.Vm(), s(t);
  1945. }
  1946. }), this.Vm();
  1947. }, s.prototype.$u = function (t, s, i) {
  1948. this.jp(t, function (t) {
  1949. var i = new FileReader();
  1950. i.onload = function (t) {
  1951. s(t.target.result);
  1952. }, i.readAsArrayBuffer(t);
  1953. }, i);
  1954. }, s.prototype.fw = function (t, i, s) {
  1955. var h = '', e = (n = t.toLowerCase()).substr(n.length - 4), n = n.substr(n.length - 5);
  1956. '.mp4' === e ? h = 'video/mp4' : '.webm' === n ? h = 'video/webm' : '.m4a' === e ? h = 'audio/mp4' : '.mp3' === e && (h = 'audio/mpeg'), this.kp(t, function (t) {
  1957. t = URL.createObjectURL(new Blob([t], { type: h })), i(t);
  1958. }, s);
  1959. }, s.prototype.Lp = function (t) {
  1960. return /^(?:[a-z]+:)?\/\//.test(t) || 'data:' === t.substr(0, 5) || 'blob:' === t.substr(0, 5);
  1961. }, s.prototype.wr = function (i, t) {
  1962. this.Jh && !this.Lp(t) ? this.fw(t, function (t) {
  1963. i.src = t;
  1964. }, function (t) {
  1965. alert('Failed to load image: ' + t);
  1966. }) : i.src = t;
  1967. }, s.prototype.Nk = function (t, i) {
  1968. void 0 !== t.imageSmoothingEnabled ? t.imageSmoothingEnabled = i : (t.webkitImageSmoothingEnabled = i, t.mozImageSmoothingEnabled = i, t.msImageSmoothingEnabled = i);
  1969. }, Yb = function (t) {
  1970. return new s(document.getElementById(t));
  1971. }, Zb = function (t, i) {
  1972. return new s({
  1973. dc: !0,
  1974. width: t,
  1975. height: i
  1976. });
  1977. }, window.cr_createRuntime = Yb, window.cr_createDCRuntime = Zb, window.createCocoonJSRuntime = function () {
  1978. window.c2cocoonjs = !0;
  1979. var t = document.createElement('screencanvas') || document.createElement('canvas');
  1980. return t.El = !0, document.body.appendChild(t), t = new s(t), window.c2runtime = t, window.addEventListener('orientationchange', function () {
  1981. window.c2runtime.setSize(window.innerWidth, window.innerHeight);
  1982. }), window.c2runtime.setSize(window.innerWidth, window.innerHeight), t;
  1983. }, window.createEjectaRuntime = function () {
  1984. var t = new s(document.getElementById('canvas'));
  1985. return window.c2runtime = t, window.c2runtime.setSize(window.innerWidth, window.innerHeight), t;
  1986. };
  1987. }(), window.cr_getC2Runtime = function () {
  1988. var t = document.getElementById('c2canvas');
  1989. return t ? t.c2runtime : window.c2runtime ? window.c2runtime : null;
  1990. }, window.cr_getSnapshot = function (t, i) {
  1991. var s = window.cr_getC2Runtime();
  1992. s && s.Yu(t, i);
  1993. }, window.cr_sizeCanvas = function (t, i) {
  1994. if (0 !== t && 0 !== i) {
  1995. var s = window.cr_getC2Runtime();
  1996. s && s.setSize(t, i);
  1997. }
  1998. }, window.cr_setSuspended = function (t) {
  1999. var i = window.cr_getC2Runtime();
  2000. i && i.setSuspended(t);
  2001. }, function () {
  2002. function t(t, i) {
  2003. this.b = t, this.hf = null, this.scrollX = this.b.Wa / 2, this.scrollY = this.b.Va / 2, this.scale = 1, this.m = 0, this.$f = !0, this.name = i[0], this.Nx = i[1], this.Mx = i[2], this.width = i[1], this.height = i[2], this.Ur = i[3], this.Dr = i[4], this.Y = i[5];
  2004. var s, h, e = i[6];
  2005. for (this.P = [], this.Bh = [], s = 0, h = e.length; s < h; s++) {
  2006. (n = new $b(this, e[s])).Jq = s, this.P.push(n);
  2007. }
  2008. for (e = i[7], this.Ie = [], s = 0, h = e.length; s < h; s++) {
  2009. var n = e[s], o = this.b.p[n[1]];
  2010. o.Jc || (o.Jc = n), this.Ie.push(n), -1 === this.Bh.indexOf(o) && this.Bh.push(o);
  2011. }
  2012. for (this.M = [], this.ea = [], this.ie = !0, this.Ja = [], s = 0, h = i[8].length; s < h; s++)
  2013. this.M.push({
  2014. id: i[8][s][0],
  2015. name: i[8][s][1],
  2016. Za: -1,
  2017. Rc: !1,
  2018. nc: !0,
  2019. index: s
  2020. }), this.Ja.push(i[8][s][2].slice(0));
  2021. this.nd(), this.de = new wa(0, 0, 1, 1), this.sn = new wa(0, 0, 1, 1), this.Pe = {};
  2022. }
  2023. function a(t, i) {
  2024. return t.pd - i.pd;
  2025. }
  2026. function i(t, i) {
  2027. this.rb = t, this.b = t.b, this.d = [], this.scale = 1, this.m = 0, this.Sd = !1, this.le = new wa(0, 0, 0, 0), this.Or = new xa(), this.ua = this.na = this.wa = this.ma = 0, this.Lf = !1, this.pe = -1, this.Ol = 0, this.name = i[0], this.index = i[1], this.Y = i[2], this.visible = i[3], this.Zc = i[4], this.Dc = i[5], this.Pc = i[6], this.Qc = i[7], this.opacity = i[8], this.Lj = i[9], this.Ec = i[10], this.qd = i[11], this.Hb = i[12], this.xv = i[13], this.jh = 'source-over', this.Jb = this.Pb = 0, this.Eb = null, this.$d = y(), this.ld = !0, this.ug = new wa(0, 0, -1, -1), this.wb = new wa(0, 0, -1, -1), this.Ec && (this.Eb = new ib(this.b.Wa, this.b.Va)), this.Dd = !1;
  2028. var s, h, e = i[14];
  2029. for (this.Ir = [], this.uc = [], this.mh = [], s = 0, h = e.length; s < h; s++) {
  2030. var n = e[s], o = this.b.p[n[1]];
  2031. o.Jc || (o.Jc = n, o.Wu = this.index), this.uc.push(n), -1 === this.rb.Bh.indexOf(o) && this.rb.Bh.push(o);
  2032. }
  2033. for (Da(this.Ir, this.uc), this.M = [], this.ea = [], this.ie = !0, this.Ja = [], s = 0, h = i[15].length; s < h; s++)
  2034. this.M.push({
  2035. id: i[15][s][0],
  2036. name: i[15][s][1],
  2037. Za: -1,
  2038. Rc: !1,
  2039. nc: !0,
  2040. index: s
  2041. }), this.Ja.push(i[15][s][2].slice(0));
  2042. this.nd(), this.de = new wa(0, 0, 1, 1), this.sn = new wa(0, 0, 1, 1);
  2043. }
  2044. function y() {
  2045. return s.length ? s.pop() : [];
  2046. }
  2047. function v(t) {
  2048. A(t), s.push(t);
  2049. }
  2050. t.prototype.oy = function (t) {
  2051. var i = t.type.Y.toString();
  2052. this.Pe.hasOwnProperty(i) || (this.Pe[i] = []), this.Pe[i].push(this.b.An(t));
  2053. }, t.prototype.Cp = function () {
  2054. var t = this.P[0];
  2055. return !t.Dc && 1 === t.opacity && !t.Lj && t.visible;
  2056. }, t.prototype.nd = function () {
  2057. var t, i, s;
  2058. for (A(this.ea), this.ie = !0, t = 0, i = this.M.length; t < i; t++)
  2059. (s = this.M[t]).nc && (this.ea.push(s), s.Rc || (this.ie = !1));
  2060. }, t.prototype.km = function (t) {
  2061. var i, s, h;
  2062. for (i = 0, s = this.M.length; i < s; i++)
  2063. if ((h = this.M[i]).name === t)
  2064. return h;
  2065. return null;
  2066. };
  2067. var c = [], p = !0;
  2068. t.prototype.Gn = function () {
  2069. var t, i, s, h, e, n, o;
  2070. for (this.Dr && (this.hf = this.b.cm[this.Dr], this.hf.Rn()), (this.b.ba = this).width = this.Nx, this.height = this.Mx, this.scrollX = this.b.Wa / 2, this.scrollY = this.b.Va / 2, t = 0, s = this.b.p.length; t < s; t++)
  2071. if (!(i = this.b.p[t]).B)
  2072. for (e = i.d, i = 0, h = e.length; i < h; i++)
  2073. if ((n = e[i]).j) {
  2074. var r = n.j.Jq;
  2075. r >= this.P.length && (r = this.P.length - 1), n.j = this.P[r], -1 === n.j.d.indexOf(n) && n.j.d.push(n), n.j.Lf = !0;
  2076. }
  2077. if (!p)
  2078. for (t = 0, s = this.P.length; t < s; ++t)
  2079. this.P[t].d.sort(a);
  2080. for (A(c), this.Ku(), t = 0, s = this.P.length; t < s; t++)
  2081. (n = this.P[t]).Su(), n.dl();
  2082. if (e = !1, !this.$f) {
  2083. for (o in this.Pe)
  2084. if (this.Pe.hasOwnProperty(o) && (i = this.b.Vj(parseInt(o, 10))) && !i.B && this.b.Qn(i)) {
  2085. for (t = 0, s = (h = this.Pe[o]).length; t < s; t++)
  2086. n = null, i.X.Le && !(n = this.Tj(h[t].w.l)) || (n = this.b.Ae(i.Jc, n, !1, 0, 0, !0), this.b.hk(n, h[t]), e = !0, c.push(n));
  2087. A(h);
  2088. }
  2089. for (t = 0, s = this.P.length; t < s; t++)
  2090. this.P[t].d.sort(a), this.P[t].Lf = !0;
  2091. }
  2092. for (e && (this.b.Gb(), this.b.kr()), t = 0; t < c.length; t++)
  2093. if ((n = c[t]).type.Ab)
  2094. for (s = n.uh(), i = 0, h = n.type.hc.length; i < h; i++)
  2095. o = n.type.hc[i], n.type !== o && (o.d.length > s ? n.siblings.push(o.d[s]) : o.Jc && (e = this.b.Ae(o.Jc, n.j, !0, n.x, n.y, !0), this.b.Gb(), o.cl(), n.siblings.push(e), c.push(e)));
  2096. for (t = 0, s = this.Ie.length; t < s; t++)
  2097. n = this.Ie[t], (i = this.b.p[n[1]]).Ab || this.b.Ae(this.Ie[t], null, !0);
  2098. if (this.b.ih = null, this.b.Gb(), this.b.Ba && !this.b.pa)
  2099. for (t = 0, s = this.b.p.length; t < s; t++)
  2100. !(o = this.b.p[t]).B && o.d.length && o.Ck && o.Ck(this.b.Ba);
  2101. if (this.b.Fh)
  2102. Da(this.b.Jj, c);
  2103. else
  2104. for (t = 0, s = c.length; t < s; t++)
  2105. n = c[t], this.b.trigger(Object.getPrototypeOf(n.type.X).c.Jd, n);
  2106. A(c), this.b.Fh || this.b.trigger(T.prototype.c.to, null), this.$f = !1;
  2107. }, t.prototype.Ru = function () {
  2108. var t, i, s, h, e;
  2109. for (i = t = 0, s = this.Ie.length; t < s; t++)
  2110. h = this.Ie[t], (e = this.b.p[h[1]]).global ? e.Ab || this.b.Ae(h, null, !0) : (this.Ie[i] = h, i++);
  2111. Ba(this.Ie, i);
  2112. }, t.prototype.Cy = function () {
  2113. var t, i, s, h, e, n;
  2114. if (this.b.Fh || this.b.trigger(T.prototype.c.so, null), this.b.Cm = !0, A(this.b.Hd.fc), !this.$f)
  2115. for (t = 0, i = this.P.length; t < i; t++)
  2116. for (this.P[t].Tn(), s = 0, h = (e = this.P[t].d).length; s < h; s++)
  2117. (n = e[s]).type.global || this.b.Qn(n.type) && this.oy(n);
  2118. for (t = 0, i = this.P.length; t < i; t++) {
  2119. for (s = 0, h = (e = this.P[t].d).length; s < h; s++)
  2120. (n = e[s]).type.global || this.b.Xe(n);
  2121. this.b.Gb(), A(e), this.P[t].Lf = !0;
  2122. }
  2123. for (t = 0, i = this.b.p.length; t < i; t++)
  2124. if (!((e = this.b.p[t]).global || e.X.Le || e.X.Rk || e.B)) {
  2125. for (s = 0, h = e.d.length; s < h; s++)
  2126. this.b.Xe(e.d[s]);
  2127. this.b.Gb();
  2128. }
  2129. p = !1, this.b.Cm = !1;
  2130. }, new wa(0, 0, 0, 0), t.prototype.ed = function (t) {
  2131. var i, s = t, h = !1, e = !this.b.sc;
  2132. e && (this.b.fk || (this.b.fk = document.createElement('canvas'), (i = this.b.fk).width = this.b.G, i.height = this.b.F, this.b.gq = i.getContext('2d'), h = !0), i = this.b.fk, s = this.b.gq, i.width !== this.b.G && (i.width = this.b.G, h = !0), i.height !== this.b.F && (i.height = this.b.F, h = !0), h && this.b.Nk(s, this.b.qa)), s.globalAlpha = 1, s.globalCompositeOperation = 'source-over', this.b.Zo && !this.Cp() && s.clearRect(0, 0, this.b.G, this.b.F);
  2133. var n, o;
  2134. h = 0;
  2135. for (n = this.P.length; h < n; h++)
  2136. (o = this.P[h]).visible && 0 < o.opacity && 11 !== o.Hb && (o.d.length || !o.Dc) ? o.ed(s) : o.dl();
  2137. e && t.drawImage(i, 0, 0, this.b.width, this.b.height);
  2138. }, t.prototype.Ce = function (t) {
  2139. var i, s;
  2140. for (t.ur(!0), this.b.Ua || (this.b.Ua = t.Ic(this.b.G, this.b.F, this.b.qa)), this.b.Ua.bd === this.b.G && this.b.Ua.ad === this.b.F || (t.deleteTexture(this.b.Ua), this.b.Ua = t.Ic(this.b.G, this.b.F, this.b.qa)), t.Tc(this.b.Ua), this.b.sc || t.ge(this.b.G, this.b.F), i = this.P.length - 1; 0 <= i; --i)
  2141. (s = this.P[i]).visible && 1 === s.opacity && s.ie && 0 === s.Hb && (s.d.length || !s.Dc) ? s.Ce(t) : s.dl();
  2142. t.ur(!1);
  2143. }, t.prototype.Kb = function (t) {
  2144. var i, s, h, e = 0 < this.ea.length || this.b.Tg || !this.b.sc || this.b.ya;
  2145. for (e ? (this.b.Ua || (this.b.Ua = t.Ic(this.b.G, this.b.F, this.b.qa)), this.b.Ua.bd === this.b.G && this.b.Ua.ad === this.b.F || (t.deleteTexture(this.b.Ua), this.b.Ua = t.Ic(this.b.G, this.b.F, this.b.qa)), t.Tc(this.b.Ua), this.b.sc || t.ge(this.b.G, this.b.F)) : this.b.Ua && (t.Tc(null), t.deleteTexture(this.b.Ua), this.b.Ua = null), this.b.Zo && !this.Cp() && t.clear(0, 0, 0, 0), i = 0, s = this.P.length; i < s; i++)
  2146. (h = this.P[i]).visible && 0 < h.opacity && (h.d.length || !h.Dc) ? h.Kb(t) : h.dl();
  2147. e && (0 === this.ea.length || 1 === this.ea.length && this.b.sc ? (1 === this.ea.length ? (e = this.ea[0].index, t.ec(this.ea[0].Za), t.Jg(null, 1 / this.b.G, 1 / this.b.F, 0, 0, 1, 1, this.scale, this.m, 0, 0, this.b.G / 2, this.b.F / 2, this.b.Bb.Z, this.Ja[e]), t.Dk(this.ea[0].Za) && (this.b.fa = !0)) : t.ec(0), this.b.sc || t.ge(this.b.width, this.b.height), t.Tc(null), t.tr(!1), t.Se(1), t.Rb(this.b.Ua), t.rr(), t.Ed(), t.od(), e = this.b.width / 2, i = this.b.height / 2, t.ji(-e, i, e, i, e, -i, -e, -i), t.Rb(null), t.tr(!0)) : this.tn(t, null, null, null));
  2148. }, t.prototype.sh = function () {
  2149. return 0 < this.ea.length || this.b.Tg || !this.b.sc || this.b.ya ? this.b.Ua : null;
  2150. }, t.prototype.yp = function () {
  2151. var t, i, s, h = this.P[0].Lc();
  2152. for (t = 1, i = this.P.length; t < i; t++)
  2153. (0 !== (s = this.P[t]).Pc || 0 !== s.Qc) && s.Lc() < h && (h = s.Lc());
  2154. return h;
  2155. }, t.prototype.Kk = function (t) {
  2156. if (!this.Ur) {
  2157. var i = 1 / this.yp() * this.b.G / 2;
  2158. t > this.width - i && (t = this.width - i), t < i && (t = i);
  2159. }
  2160. this.scrollX !== t && (this.scrollX = t, this.b.fa = !0);
  2161. }, t.prototype.Lk = function (t) {
  2162. if (!this.Ur) {
  2163. var i = 1 / this.yp() * this.b.F / 2;
  2164. t > this.height - i && (t = this.height - i), t < i && (t = i);
  2165. }
  2166. this.scrollY !== t && (this.scrollY = t, this.b.fa = !0);
  2167. }, t.prototype.Ku = function () {
  2168. this.Kk(this.scrollX), this.Lk(this.scrollY);
  2169. }, t.prototype.tn = function (t, i, s, h) {
  2170. var e = s ? s.ea : i ? i.ea : this.ea, n = 1, o = 0, r = 0, a = 0, c = this.b.G, p = this.b.F;
  2171. s ? (n = s.j.Lc(), o = s.j.gb(), r = s.j.ma, a = s.j.na, c = s.j.wa, p = s.j.ua) : i && (n = i.Lc(), o = i.gb(), r = i.ma, a = i.na, c = i.wa, p = i.ua);
  2172. var u, f, l, b, d, g, y = this.b.hm, v = 0, m = 1, w = this.b.G, k = this.b.F, x = w / 2, T = k / 2, E = i ? i.de : this.de, A = i ? i.sn : this.sn, j = 0, R = 0, S = 0, M = 0, P = w, q = w, O = k, L = k, D = l = 0;
  2173. if (b = s ? s.j.gb() : 0, s) {
  2174. for (u = 0, f = e.length; u < f; u++)
  2175. l += t.yw(e[u].Za), D += t.zw(e[u].Za);
  2176. M = s.Qa, j = i.ib(M.left, M.top, !0, !0), S = i.ib(M.left, M.top, !1, !0), P = i.ib(M.right, M.bottom, !0, !0), O = i.ib(M.right, M.bottom, !1, !0), 0 !== b && (u = i.ib(M.right, M.top, !0, !0), f = i.ib(M.right, M.top, !1, !0), R = i.ib(M.left, M.bottom, !0, !0), M = i.ib(M.left, M.bottom, !1, !0), b = Math.min(j, P, u, R), P = Math.max(j, P, u, R), j = b, b = Math.min(S, O, f, M), O = Math.max(S, O, f, M), S = b), j -= l, S -= D, P += l, O += D, A.left = j / w, A.top = 1 - S / k, A.right = P / w, A.bottom = 1 - O / k, R = j = ta(j), M = S = ta(S), q = P = ua(P), L = O = ua(O), j < 0 && (j = 0), S < 0 && (S = 0), w < P && (P = w), k < O && (O = k), (R -= l) < 0 && (R = 0), (M -= D) < 0 && (M = 0), w < (q += l) && (q = w), k < (L += D) && (L = k), E.left = j / w, E.top = 1 - S / k, E.right = P / w, E.bottom = 1 - O / k;
  2177. } else
  2178. E.left = A.left = 0, E.top = A.top = 0, E.right = A.right = 1, E.bottom = A.bottom = 1;
  2179. D = s && (t.hi(e[0].Za) || 0 !== l || 0 !== D || 1 !== s.opacity || s.type.X.Fq) || i && !s && 1 !== i.opacity, t.rr(), D && (y[v] || (y[v] = t.Ic(w, k, this.b.qa)), y[v].bd === w && y[v].ad === k || (t.deleteTexture(y[v]), y[v] = t.Ic(w, k, this.b.qa)), t.ec(0), t.Tc(y[v]), g = L - M, t.clearRect(R, k - M - g, q - R, g), s ? s.Kb(t) : (t.Rb(this.b.jb), t.Se(i.opacity), t.Ed(), t.translate(-x, -T), t.od(), t.Sc(j, O, P, O, P, S, j, S, E)), A.left = A.top = 0, A.right = A.bottom = 1, s && (b = E.top, E.top = E.bottom, E.bottom = b), v = 1, m = 0), t.Se(1), l = e.length - 1;
  2180. var F = t.nn(e[l].Za) || !i && !s && !this.b.sc;
  2181. for (u = b = 0, f = e.length; u < f; u++)
  2182. y[v] || (y[v] = t.Ic(w, k, this.b.qa)), y[v].bd === w && y[v].ad === k || (t.deleteTexture(y[v]), y[v] = t.Ic(w, k, this.b.qa)), t.ec(e[u].Za), b = e[u].index, t.Dk(e[u].Za) && (this.b.fa = !0), 0 != u || D ? (t.Jg(h, 1 / w, 1 / k, A.left, A.top, A.right, A.bottom, n, o, r, a, (r + c) / 2, (a + p) / 2, this.b.Bb.Z, s ? s.Ja[b] : i ? i.Ja[b] : this.Ja[b]), t.Rb(null), u !== l || F ? (t.Tc(y[v]), d = k - M - (g = L - M), t.clearRect(R, d, q - R, g)) : (s ? t.Re(s.Pb, s.Jb) : i && t.Re(i.Pb, i.Jb), t.Tc(h)), t.Rb(y[m]), t.Ed(), t.translate(-x, -T), t.od(), t.Sc(j, O, P, O, P, S, j, S, E), u !== l || F || t.Rb(null)) : (t.Tc(y[v]), d = k - M - (g = L - M), t.clearRect(R, d, q - R, g), s ? (d = s.Sa && s.Sa.q ? (m = 1 / (d = s.Sa.q).width, 1 / d.height) : (m = 1 / s.width, 1 / s.height), t.Jg(h, m, d, A.left, A.top, A.right, A.bottom, n, o, r, a, (r + c) / 2, (a + p) / 2, this.b.Bb.Z, s.Ja[b]), s.Kb(t)) : (t.Jg(h, 1 / w, 1 / k, 0, 0, 1, 1, n, o, r, a, (r + c) / 2, (a + p) / 2, this.b.Bb.Z, i ? i.Ja[b] : this.Ja[b]), t.Rb(i ? this.b.jb : this.b.Ua), t.Ed(), t.translate(-x, -T), t.od(), t.Sc(j, O, P, O, P, S, j, S, E)), A.left = A.top = 0, A.right = A.bottom = 1, s && !F && (b = O, O = S, S = b)), m = 0 === (v = 0 === v ? 1 : 0) ? 1 : 0;
  2183. F && (t.ec(0), s ? t.Re(s.Pb, s.Jb) : i ? t.Re(i.Pb, i.Jb) : this.b.sc || (t.ge(this.b.width, this.b.height), x = this.b.width / 2, T = this.b.height / 2, S = j = 0, P = this.b.width, O = this.b.height), t.Tc(h), t.Rb(y[m]), t.Ed(), t.translate(-x, -T), t.od(), s && 1 === e.length && !D ? t.Sc(j, S, P, S, P, O, j, O, E) : t.Sc(j, O, P, O, P, S, j, S, E), t.Rb(null));
  2184. }, t.prototype.Tj = function (t) {
  2185. var i, s;
  2186. for (i = 0, s = this.P.length; i < s; i++)
  2187. if (this.P[i].Y === t)
  2188. return this.P[i];
  2189. return null;
  2190. }, t.prototype.Fb = function () {
  2191. var t, i, s, h = {
  2192. sx: this.scrollX,
  2193. sy: this.scrollY,
  2194. s: this.scale,
  2195. a: this.m,
  2196. w: this.width,
  2197. h: this.height,
  2198. fv: this.$f,
  2199. persist: this.Pe,
  2200. fx: [],
  2201. layers: {}
  2202. };
  2203. for (t = 0, i = this.M.length; t < i; t++)
  2204. s = this.M[t], h.fx.push({
  2205. name: s.name,
  2206. active: s.nc,
  2207. params: this.Ja[s.index]
  2208. });
  2209. for (t = 0, i = this.P.length; t < i; t++)
  2210. s = this.P[t], h.layers[s.Y.toString()] = s.Fb();
  2211. return h;
  2212. }, t.prototype.Qb = function (t) {
  2213. var i, s, h, e;
  2214. this.scrollX = t.sx, this.scrollY = t.sy, this.scale = t.s, this.m = t.a, this.width = t.w, this.height = t.h, this.Pe = t.persist, void 0 !== t.fv && (this.$f = t.fv);
  2215. var n = t.fx;
  2216. for (i = 0, s = n.length; i < s; i++)
  2217. (h = this.km(n[i].name)) && (h.nc = n[i].active, this.Ja[h.index] = n[i].params);
  2218. for (e in (this.nd(), i = t.layers))
  2219. i.hasOwnProperty(e) && (t = this.Tj(parseInt(e, 10))) && t.Qb(i[e]);
  2220. }, Mb = t, i.prototype.nd = function () {
  2221. var t, i, s;
  2222. for (A(this.ea), this.ie = !0, t = 0, i = this.M.length; t < i; t++)
  2223. (s = this.M[t]).nc && (this.ea.push(s), s.Rc || (this.ie = !1));
  2224. }, i.prototype.km = function (t) {
  2225. var i, s, h;
  2226. for (i = 0, s = this.M.length; i < s; i++)
  2227. if ((h = this.M[i]).name === t)
  2228. return h;
  2229. return null;
  2230. }, i.prototype.Su = function () {
  2231. var t, i, s, h, e, n;
  2232. for (i = t = 0, s = this.uc.length; t < s; t++) {
  2233. if (h = this.uc[t], e = this.b.p[h[1]], n = this.b.Qn(e), e = !0, !n || this.rb.$f) {
  2234. if (!(h = this.b.Ae(h, this, !0)))
  2235. continue;
  2236. c.push(h), h.type.global && (e = !1, this.mh.push(h.uid));
  2237. }
  2238. e && (this.uc[i] = this.uc[t], i++);
  2239. }
  2240. this.uc.length = i, this.b.Gb(), !this.b.k && this.M.length && (this.Hb = this.xv), this.jh = jb(this.Hb), this.b.u && kb(this, this.Hb, this.b.u), this.ld = !0;
  2241. }, i.prototype.Gg = function (t, i) {
  2242. var s = Ha(this.d, t);
  2243. s < 0 || (i && this.Ec && t.ac && t.ac.right >= t.ac.left && (t.Aa(), this.Eb.update(t, t.ac, null), t.ac.set(0, 0, -1, -1)), s === this.d.length - 1 ? this.d.pop() : (za(this.d, s), this.mi(s)), this.ld = !0);
  2244. }, i.prototype.fh = function (t, i) {
  2245. t.pd = this.d.length, this.d.push(t), i && this.Ec && t.ac && t.za(), this.ld = !0;
  2246. }, i.prototype.Yx = function (t) {
  2247. this.d.unshift(t), this.mi(0);
  2248. }, i.prototype.zx = function (t, i, s) {
  2249. var h = t.wd();
  2250. i = i.wd(), za(this.d, h), h < i && i--, s && i++, i === this.d.length ? this.d.push(t) : this.d.splice(i, 0, t), this.mi(h < i ? h : i);
  2251. }, i.prototype.mi = function (t) {
  2252. (-1 === this.pe || t < this.pe) && (this.pe = t), this.ld = this.Lf = !0;
  2253. }, i.prototype.Tn = function () {
  2254. if (this.Lf) {
  2255. var t, i, s;
  2256. if (-1 === this.pe && (this.pe = 0), this.Ec)
  2257. for (t = this.pe, i = this.d.length; t < i; ++t)
  2258. (s = this.d[t]).pd = t, this.Eb.vx(s.ac);
  2259. else
  2260. for (t = this.pe, i = this.d.length; t < i; ++t)
  2261. this.d[t].pd = t;
  2262. this.Lf = !1, this.pe = -1;
  2263. }
  2264. }, i.prototype.Lc = function (t) {
  2265. return this.vw() * (this.b.sc || t ? this.b.gh : 1);
  2266. }, i.prototype.vw = function () {
  2267. return (this.scale * this.rb.scale - 1) * this.qd + 1;
  2268. }, i.prototype.gb = function () {
  2269. return this.Sd ? 0 : Ma(this.rb.m + this.m);
  2270. };
  2271. var s = [], m = [], w = [];
  2272. i.prototype.om = function () {
  2273. if (this.Tn(), this.Eb.Fk(this.ma, this.na, this.wa, this.ua, w), !w.length)
  2274. return y();
  2275. if (1 === w.length) {
  2276. var t = y();
  2277. return Da(t, w[0]), A(w), t;
  2278. }
  2279. for (var i = !0; 1 < w.length;) {
  2280. for (var s = void 0, h = void 0, e = void 0, n = void 0, o = (s = 0, (t = w).length); s < o - 1; s += 2) {
  2281. var r = h = t[s], a = e = t[s + 1], c = n = y(), p = 0, u = 0, f = 0, l = r.length, b = a.length, d = void 0, g = void 0;
  2282. for (c.length = l + b; p < l && u < b; ++f)
  2283. d = r[p], g = a[u], d.pd < g.pd ? (c[f] = d, ++p) : (c[f] = g, ++u);
  2284. for (; p < l; ++p, ++f)
  2285. c[f] = r[p];
  2286. for (; u < b; ++u, ++f)
  2287. c[f] = a[u];
  2288. i || (v(h), v(e)), m.push(n);
  2289. }
  2290. 1 == o % 2 && (i ? (h = y(), Da(h, t[o - 1]), m.push(h)) : m.push(t[o - 1])), Da(t, m), A(m), i = !1;
  2291. }
  2292. return t = w[0], A(w), t;
  2293. }, i.prototype.ed = function (t) {
  2294. this.Dd = this.Lj || 1 !== this.opacity || 0 !== this.Hb;
  2295. var i = this.b.canvas, s = t, h = !1;
  2296. this.Dd && (this.b.ek || (this.b.ek = document.createElement('canvas'), (i = this.b.ek).width = this.b.G, i.height = this.b.F, this.b.fq = i.getContext('2d'), h = !0), i = this.b.ek, s = this.b.fq, i.width !== this.b.G && (i.width = this.b.G, h = !0), i.height !== this.b.F && (i.height = this.b.F, h = !0), h && this.b.Nk(s, this.b.qa), this.Dc && s.clearRect(0, 0, this.b.G, this.b.F)), s.globalAlpha = 1, s.globalCompositeOperation = 'source-over', this.Dc || (s.fillStyle = 'rgb(' + this.Zc[0] + ',' + this.Zc[1] + ',' + this.Zc[2] + ')', s.fillRect(0, 0, this.b.G, this.b.F)), s.save(), this.Sd = !0;
  2297. h = this.ub(0, 0, !0, !0);
  2298. var e = this.ub(0, 0, !1, !0);
  2299. this.Sd = !1, this.b.Ac && (h = Math.round(h), e = Math.round(e)), this.Hk(h, e, s);
  2300. var n = this.Lc();
  2301. s.scale(n, n), s.translate(-h, -e), this.Ec ? (this.wb.left = this.Eb.Ub(this.ma), this.wb.top = this.Eb.Vb(this.na), this.wb.right = this.Eb.Ub(this.wa), this.wb.bottom = this.Eb.Vb(this.ua), this.ld || !this.wb.oh(this.ug) ? (v(this.$d), h = this.om(), this.ld = !1, this.ug.Vf(this.wb)) : h = this.$d) : h = this.d;
  2302. var o, r = null;
  2303. for (e = 0, n = h.length; e < n; ++e)
  2304. (o = h[e]) !== r && (this.rv(o, s), r = o);
  2305. this.Ec && (this.$d = h), s.restore(), this.Dd && (t.globalCompositeOperation = this.jh, t.globalAlpha = this.opacity, t.drawImage(i, 0, 0));
  2306. }, i.prototype.rv = function (t, i) {
  2307. if (t.visible && 0 !== t.width && 0 !== t.height) {
  2308. t.Aa();
  2309. var s = t.Qa;
  2310. s.right < this.ma || s.bottom < this.na || s.left > this.wa || s.top > this.ua || (i.globalCompositeOperation = t.jh, t.ed(i));
  2311. }
  2312. }, i.prototype.dl = function () {
  2313. this.Sd = !0;
  2314. var t = this.ub(0, 0, !0, !0), i = this.ub(0, 0, !1, !0);
  2315. this.Sd = !1, this.b.Ac && (t = Math.round(t), i = Math.round(i)), this.Hk(t, i, null);
  2316. }, i.prototype.Hk = function (t, i, s) {
  2317. var h = this.Lc();
  2318. this.ma = t, this.na = i, this.wa = t + 1 / h * this.b.G, this.ua = i + 1 / h * this.b.F, this.ma > this.wa && (t = this.ma, this.ma = this.wa, this.wa = t), this.na > this.ua && (t = this.na, this.na = this.ua, this.ua = t), 0 !== (t = this.gb()) && (s && (s.translate(this.b.G / 2, this.b.F / 2), s.rotate(-t), s.translate(this.b.G / -2, this.b.F / -2)), this.le.set(this.ma, this.na, this.wa, this.ua), this.le.offset((this.ma + this.wa) / -2, (this.na + this.ua) / -2), this.Or.Br(this.le, t), this.Or.To(this.le), this.le.offset((this.ma + this.wa) / 2, (this.na + this.ua) / 2), this.ma = this.le.left, this.na = this.le.top, this.wa = this.le.right, this.ua = this.le.bottom);
  2319. }, i.prototype.Ce = function (t) {
  2320. (this.Dd = this.Lj) && (this.b.jb || (this.b.jb = t.Ic(this.b.G, this.b.F, this.b.qa)), this.b.jb.bd === this.b.G && this.b.jb.ad === this.b.F || (t.deleteTexture(this.b.jb), this.b.jb = t.Ic(this.b.G, this.b.F, this.b.qa)), t.Tc(this.b.jb)), this.Sd = !0;
  2321. var i = this.ub(0, 0, !0, !0), s = this.ub(0, 0, !1, !0);
  2322. this.Sd = !1, this.b.Ac && (i = Math.round(i), s = Math.round(s)), this.Hk(i, s, null), i = this.Lc(), t.Ed(), t.scale(i, i), t.xn(-this.gb()), t.translate((this.ma + this.wa) / -2, (this.na + this.ua) / -2), t.od(), this.Ec ? (this.wb.left = this.Eb.Ub(this.ma), this.wb.top = this.Eb.Vb(this.na), this.wb.right = this.Eb.Ub(this.wa), this.wb.bottom = this.Eb.Vb(this.ua), this.ld || !this.wb.oh(this.ug) ? (v(this.$d), i = this.om(), this.ld = !1, this.ug.Vf(this.wb)) : i = this.$d) : i = this.d;
  2323. var h, e = null;
  2324. for (s = i.length - 1; 0 <= s; --s)
  2325. (h = i[s]) !== e && (this.tv(i[s], t), e = h);
  2326. this.Ec && (this.$d = i), this.Dc || (this.Ol = this.b.ef++, t.Ok(this.Ol), t.sr(1, 1, 1), t.rp(), t.hy());
  2327. }, i.prototype.Kb = function (t) {
  2328. var i = 0, s = 0;
  2329. (this.Dd = this.Lj || 1 !== this.opacity || 0 < this.ea.length || 0 !== this.Hb) && (this.b.jb || (this.b.jb = t.Ic(this.b.G, this.b.F, this.b.qa)), this.b.jb.bd === this.b.G && this.b.jb.ad === this.b.F || (t.deleteTexture(this.b.jb), this.b.jb = t.Ic(this.b.G, this.b.F, this.b.qa)), t.Tc(this.b.jb), this.Dc && t.clear(0, 0, 0, 0)), this.Dc || (this.b.ya ? (t.Ok(this.Ol), t.sr(this.Zc[0] / 255, this.Zc[1] / 255, this.Zc[2] / 255), t.rp(), t.yy()) : t.clear(this.Zc[0] / 255, this.Zc[1] / 255, this.Zc[2] / 255, 1)), this.Sd = !0;
  2330. var h = this.ub(0, 0, !0, !0);
  2331. i = this.ub(0, 0, !1, !0);
  2332. this.Sd = !1, this.b.Ac && (h = Math.round(h), i = Math.round(i)), this.Hk(h, i, null), h = this.Lc(), t.Ed(), t.scale(h, h), t.xn(-this.gb()), t.translate((this.ma + this.wa) / -2, (this.na + this.ua) / -2), t.od(), this.Ec ? (this.wb.left = this.Eb.Ub(this.ma), this.wb.top = this.Eb.Vb(this.na), this.wb.right = this.Eb.Ub(this.wa), this.wb.bottom = this.Eb.Vb(this.ua), this.ld || !this.wb.oh(this.ug) ? (v(this.$d), i = this.om(), this.ld = !1, this.ug.Vf(this.wb)) : i = this.$d) : i = this.d;
  2333. var e, n, o = null;
  2334. s = 0;
  2335. for (e = i.length; s < e; ++s)
  2336. (n = i[s]) !== o && (this.sv(i[s], t), o = n);
  2337. this.Ec && (this.$d = i), this.Dd && (i = this.ea.length ? this.ea[0].Za : 0, s = this.ea.length ? this.ea[0].index : 0, 0 === this.ea.length || 1 === this.ea.length && !t.nn(i) && 1 === this.opacity ? (1 === this.ea.length ? (t.ec(i), t.Jg(this.rb.sh(), 1 / this.b.G, 1 / this.b.F, 0, 0, 1, 1, h, this.gb(), this.ma, this.na, (this.ma + this.wa) / 2, (this.na + this.ua) / 2, this.b.Bb.Z, this.Ja[s]), t.Dk(i) && (this.b.fa = !0)) : t.ec(0), t.Tc(this.rb.sh()), t.Se(this.opacity), t.Rb(this.b.jb), t.Re(this.Pb, this.Jb), t.Ed(), t.od(), h = this.b.G / 2, i = this.b.F / 2, t.ji(-h, i, h, i, h, -i, -h, -i), t.Rb(null)) : this.rb.tn(t, this, null, this.rb.sh()));
  2338. }, i.prototype.sv = function (t, i) {
  2339. if (t.visible && 0 !== t.width && 0 !== t.height) {
  2340. t.Aa();
  2341. var s = t.Qa;
  2342. s.right < this.ma || s.bottom < this.na || s.left > this.wa || s.top > this.ua || (i.Ok(t.ef), t.as ? this.uv(t, i) : (i.ec(0), i.Re(t.Pb, t.Jb), t.Kb(i)));
  2343. }
  2344. }, i.prototype.tv = function (t, i) {
  2345. if (t.visible && 0 !== t.width && 0 !== t.height) {
  2346. t.Aa();
  2347. var s = t.Qa;
  2348. s.right < this.ma || s.bottom < this.na || s.left > this.wa || s.top > this.ua || (t.ef = this.b.ef++, 0 === t.Hb && 1 === t.opacity && t.ie && t.Ce && (i.Ok(t.ef), t.Ce(i)));
  2349. }
  2350. }, i.prototype.uv = function (t, i) {
  2351. var s = t.ea[0].Za, h = t.ea[0].index, e = this.Lc();
  2352. if (1 !== t.ea.length || i.nn(s) || i.$x(s) || (t.m || t.j.gb()) && i.hi(s) || 1 !== t.opacity || t.type.X.Fq)
  2353. this.rb.tn(i, this, t, this.Dd ? this.b.jb : this.rb.sh()), i.Ed(), i.scale(e, e), i.xn(-this.gb()), i.translate((this.ma + this.wa) / -2, (this.na + this.ua) / -2), i.od();
  2354. else {
  2355. i.ec(s), i.Re(t.Pb, t.Jb), i.Dk(s) && (this.b.fa = !0);
  2356. var n, o = 0, r = 0, a = 0, c = 0;
  2357. i.hi(s) && (c = t.Qa, o = this.ib(c.left, c.top, !0, !0), r = this.ib(c.left, c.top, !1, !0), a = this.ib(c.right, c.bottom, !0, !0), c = this.ib(c.right, c.bottom, !1, !0), o /= windowWidth, r = 1 - r / windowHeight, a /= windowWidth, c = 1 - c / windowHeight), n = t.Sa && t.Sa.q ? (s = 1 / (n = t.Sa.q).width, 1 / n.height) : (s = 1 / t.width, 1 / t.height), i.Jg(this.Dd ? this.b.jb : this.rb.sh(), s, n, o, r, a, c, e, this.gb(), this.ma, this.na, (this.ma + this.wa) / 2, (this.na + this.ua) / 2, this.b.Bb.Z, t.Ja[h]), t.Kb(i);
  2358. }
  2359. }, i.prototype.ub = function (t, i, s, h) {
  2360. var e = this.b.devicePixelRatio;
  2361. this.b.tf && (t *= e, i *= e);
  2362. e = this.b.$q;
  2363. var n = this.b.br, o = e = (this.rb.scrollX - e) * this.Pc + e, r = n = (this.rb.scrollY - n) * this.Qc + n, a = 1 / this.Lc(!h);
  2364. return h ? (o -= this.b.G * a / 2, r -= this.b.F * a / 2) : (o -= this.b.width * a / 2, r -= this.b.height * a / 2), o += t * a, r += i * a, 0 !== (i = this.gb()) && (r -= n, h = (o -= e) * (t = Math.cos(i)) - r * (i = Math.sin(i)), r = r * t + o * i, o = h + e, r += n), s ? o : r;
  2365. }, i.prototype.ib = function (t, i, s, h) {
  2366. var e = this.b.$q, n = this.b.br, o = (this.rb.scrollX - e) * this.Pc + e, r = (this.rb.scrollY - n) * this.Qc + n;
  2367. n = o, e = r;
  2368. if (0 !== (a = this.gb())) {
  2369. t -= o, i -= r;
  2370. var a, c = Math.cos(-a), p = t * c - i * (a = Math.sin(-a));
  2371. i = i * c + t * a, t = p + o, i += r;
  2372. }
  2373. return o = 1 / this.Lc(!h), h ? (n -= this.b.G * o / 2, e -= this.b.F * o / 2) : (n -= this.b.width * o / 2, e -= this.b.height * o / 2), n = (t - n) / o, e = (i - e) / o, t = this.b.devicePixelRatio, this.b.tf && !h && (n /= t, e /= t), s ? n : e;
  2374. }, i.prototype.Fb = function () {
  2375. var t, i, s, h = {
  2376. s: this.scale,
  2377. a: this.m,
  2378. vl: this.ma,
  2379. vt: this.na,
  2380. vr: this.wa,
  2381. vb: this.ua,
  2382. v: this.visible,
  2383. bc: this.Zc,
  2384. t: this.Dc,
  2385. px: this.Pc,
  2386. py: this.Qc,
  2387. o: this.opacity,
  2388. zr: this.qd,
  2389. fx: [],
  2390. cg: this.mh,
  2391. instances: []
  2392. };
  2393. for (t = 0, i = this.M.length; t < i; t++)
  2394. s = this.M[t], h.fx.push({
  2395. name: s.name,
  2396. active: s.nc,
  2397. params: this.Ja[s.index]
  2398. });
  2399. return h;
  2400. }, i.prototype.Qb = function (t) {
  2401. var i, s, h;
  2402. this.scale = t.s, this.m = t.a, this.ma = t.vl, this.na = t.vt, this.wa = t.vr, this.ua = t.vb, this.visible = t.v, this.Zc = t.bc, this.Dc = t.t, this.Pc = t.px, this.Qc = t.py, this.opacity = t.o, this.qd = t.zr, this.mh = t.cg || [], Da(this.uc, this.Ir);
  2403. var e = new ca();
  2404. for (i = 0, h = this.mh.length; i < h; ++i)
  2405. e.add(this.mh[i]);
  2406. for (s = i = 0, h = this.uc.length; i < h; ++i)
  2407. e.contains(this.uc[i][2]) || (this.uc[s] = this.uc[i], ++s);
  2408. for (Ba(this.uc, s), i = 0, h = (s = t.fx).length; i < h; i++)
  2409. (t = this.km(s[i].name)) && (t.nc = s[i].active, this.Ja[t.index] = s[i].params);
  2410. this.nd(), this.d.sort(a), this.Lf = !0;
  2411. }, $b = i;
  2412. }(), function () {
  2413. function n(t, i) {
  2414. var s, h = t.length;
  2415. switch (h) {
  2416. case 0:
  2417. return 1;
  2418. case 1:
  2419. return t[0] === i[0];
  2420. case 2:
  2421. return t[0] === i[0] && t[1] === i[1];
  2422. default:
  2423. for (s = 0; s < h; s++)
  2424. if (t[s] !== i[s])
  2425. return;
  2426. return 1;
  2427. }
  2428. }
  2429. function o(t, i) {
  2430. return t.index - i.index;
  2431. }
  2432. function h(t) {
  2433. var i, s, h, e;
  2434. for (2 === t.length ? t[0].index > t[1].index && (i = t[0], t[0] = t[1], t[1] = i) : 2 < t.length && t.sort(o), t.length >= b.length && (b.length = t.length + 1), b[t.length] || (b[t.length] = []), i = 0, s = (e = b[t.length]).length; i < s; i++)
  2435. if (n(t, h = e[i]))
  2436. return h;
  2437. return e.push(t), t;
  2438. }
  2439. function t(t, i) {
  2440. this.b = t, this.Rr = {}, this.ip = {}, this.um = !1, this.Fp = new ca(), this.Wl = [], this.Bl = [], this.name = i[0];
  2441. var s, h, e = i[1];
  2442. for (this.Ee = [], s = 0, h = e.length; s < h; s++)
  2443. this.Hp(e[s], null, this.Ee);
  2444. }
  2445. function i(t) {
  2446. this.type = t, this.d = [], this.I = [], this.R = !0;
  2447. }
  2448. function s(t, i, s) {
  2449. this.sheet = t, this.parent = i, this.b = t.b, this.V = [], this.Te = [], this.Dp = this.$k = this.Mn = this.ym = this.group = this.Fn = !1, this.eb = [], this.Fc = [], this.Uc = [], this.vh = '', this.dg = this.ym = this.group = !1, this.sj = null, s[1] && (this.vh = s[1][1].toLowerCase(), this.group = !0, this.ym = !!s[1][0], this.sj = [], this.dg = this.ym, this.b.Qf.push(this), this.b.wh[this.vh] = this), this.kc = s[2], this.Y = s[4], this.group || (this.b.Ro[this.Y.toString()] = this);
  2450. var h = s[5];
  2451. for (t = 0, i = h.length; t < i; t++) {
  2452. var e = new ac(this, h[t]);
  2453. e.index = t, this.eb.push(e), this.Mo(e.type);
  2454. }
  2455. for (t = 0, i = (h = s[6]).length; t < i; t++)
  2456. (e = new bc(this, h[t])).index = t, this.Fc.push(e);
  2457. if (8 === s.length)
  2458. for (t = 0, i = (s = s[7]).length; t < i; t++)
  2459. this.sheet.Hp(s[t], this, this.Uc);
  2460. this.bk = !1, this.eb.length && (this.bk = null == this.eb[0].type && this.eb[0].zb == T.prototype.c.ho);
  2461. }
  2462. function e(t, i) {
  2463. var s, h, e;
  2464. if (t && (-1 === i.indexOf(t) && i.push(t), t.Ab))
  2465. for (s = 0, h = t.hc.length; s < h; s++)
  2466. t !== (e = t.hc[s]) && -1 === i.indexOf(e) && i.push(e);
  2467. }
  2468. function r(t, i) {
  2469. if (this.qc = t, this.sheet = t.sheet, this.b = t.b, this.O = [], this.Ka = [], this.ja = {}, this.index = -1, this.dh = !1, this.zb = this.b.qe(i[1]), this.trigger = 0 < i[3], this.hp = 2 === i[3], this.Ad = i[4], this.fg = i[5], this.lx = i[6], this.Y = i[7], this.b.ye[this.Y.toString()] = this, -1 === i[0] ? (this.type = null, this.Ya = this.zn, this.Ze = null, this.$c = -1) : (this.type = this.b.p[i[0]], this.Ya = this.lx ? this.my : this.yn, i[2] ? (this.Ze = this.type.Pj(i[2]), this.$c = this.type.im(i[2])) : (this.Ze = null, this.$c = -1), this.qc.parent && this.qc.parent.Qk()), this.hp && (this.Ya = this.ny), 10 === i.length) {
  2470. var s, h, e = i[9];
  2471. for (s = 0, h = e.length; s < h; s++) {
  2472. var n = new cc(this, e[s]);
  2473. this.O.push(n);
  2474. }
  2475. this.Ka.length = e.length;
  2476. }
  2477. }
  2478. function a(t, i) {
  2479. if (this.qc = t, this.sheet = t.sheet, this.b = t.b, this.O = [], this.Ka = [], this.ja = {}, this.index = -1, this.dh = !1, this.zb = this.b.qe(i[1]), -1 === i[0] ? (this.type = null, this.Ya = this.zn, this.Ze = null, this.$c = -1) : (this.type = this.b.p[i[0]], this.Ya = this.yn, i[2] ? (this.Ze = this.type.Pj(i[2]), this.$c = this.type.im(i[2])) : (this.Ze = null, this.$c = -1)), this.Y = i[3], this.b.se[this.Y.toString()] = this, 6 === i.length) {
  2480. var s, h, e = i[5];
  2481. for (s = 0, h = e.length; s < h; s++) {
  2482. var n = new cc(this, e[s]);
  2483. this.O.push(n);
  2484. }
  2485. this.Ka.length = e.length;
  2486. }
  2487. }
  2488. function c() {
  2489. return g++, d.length === g && d.push(new dc()), d[g];
  2490. }
  2491. function p(t, i) {
  2492. var s, h, e;
  2493. switch (this.Oc = t, this.qc = t.qc, this.sheet = t.sheet, this.b = t.b, this.type = i[0], this.td = null, this.je = 0, this.get = null, this.$o = 0, this.rb = null, this.key = 0, this.object = null, this.index = 0, this.Di = this.Ff = this.Di = this.Ff = this.mp = this.jf = this.Ei = null, this.Wc = !1, i[0]) {
  2494. case 0:
  2495. case 7:
  2496. this.td = new ec(this, i[1]), this.je = 0, this.get = this.Ew;
  2497. break;
  2498. case 1:
  2499. this.td = new ec(this, i[1]), this.je = 0, this.get = this.Fw;
  2500. break;
  2501. case 5:
  2502. this.td = new ec(this, i[1]), this.je = 0, this.get = this.Jw;
  2503. break;
  2504. case 3:
  2505. case 8:
  2506. this.$o = i[1], this.get = this.Cw;
  2507. break;
  2508. case 6:
  2509. this.rb = this.b.Nm[i[1]], this.get = this.Kw;
  2510. break;
  2511. case 9:
  2512. this.key = i[1], this.get = this.Iw;
  2513. break;
  2514. case 4:
  2515. this.object = this.b.p[i[1]], this.get = this.Lw, this.qc.Mo(this.object), this.Oc instanceof bc ? this.qc.Qk() : this.qc.parent && this.qc.parent.Qk();
  2516. break;
  2517. case 10:
  2518. this.index = i[1], t.type && t.type.B ? (this.get = this.Gw, this.Wc = !0) : this.get = this.Hw;
  2519. break;
  2520. case 11:
  2521. this.Ei = i[1], this.jf = null, this.get = this.Dw;
  2522. break;
  2523. case 2:
  2524. case 12:
  2525. this.mp = i[1], this.get = this.Bw;
  2526. break;
  2527. case 13:
  2528. for (this.get = this.Mw, this.Ff = [], this.Di = [], s = 1, h = i.length; s < h; s++)
  2529. e = new cc(this.Oc, i[s]), this.Ff.push(e), this.Di.push(0);
  2530. }
  2531. }
  2532. function u(t, i, s) {
  2533. this.sheet = t, this.parent = i, this.b = t.b, this.V = [], this.name = s[1], this.Fi = s[2], this.xm = s[3], this.Lh = !!s[4], this.ak = !!s[5], this.Y = s[6], (this.b.Vg[this.Y.toString()] = this).data = this.xm, this.parent ? (this.Cf = this.Lh || this.ak ? -1 : this.b.Ay++, this.b.Gu.push(this)) : (this.Cf = -1, this.b.Fu.push(this));
  2534. }
  2535. function f(t, i, s) {
  2536. this.sheet = t, this.parent = i, this.b = t.b, this.V = [], this.Ah = null, this.Sw = s[1], this.nc = !0;
  2537. }
  2538. function l() {
  2539. this.Kr = [], this.reset(null);
  2540. }
  2541. var b = [];
  2542. t.prototype.toString = function () {
  2543. return this.name;
  2544. }, t.prototype.Hp = function (t, i, s) {
  2545. switch (t[0]) {
  2546. case 0:
  2547. if ((t = new fc(this, i, t)).kc)
  2548. for (s.push(t), s = 0, i = t.eb.length; s < i; s++)
  2549. t.eb[s].trigger && this.Ip(t, s);
  2550. else
  2551. t.Tp() ? this.Ip(t, 0) : s.push(t);
  2552. break;
  2553. case 1:
  2554. t = new Xb(this, i, t), s.push(t);
  2555. break;
  2556. case 2:
  2557. t = new gc(this, i, t), s.push(t);
  2558. }
  2559. }, t.prototype.Pa = function () {
  2560. var t, i;
  2561. for (t = 0, i = this.Ee.length; t < i; t++)
  2562. this.Ee[t].Pa(t < i - 1 && this.Ee[t + 1].bk);
  2563. }, t.prototype.Rn = function () {
  2564. A(this.Wl), A(this.Bl), this.Lo(this), A(this.Bl);
  2565. }, t.prototype.Lo = function (t) {
  2566. var i, s, h, e, n = t.Wl, o = t.Bl, r = this.Fp.We();
  2567. for (i = 0, s = r.length; i < s; ++i)
  2568. e = (h = r[i]).Ah, !h.nc || t === e || -1 < o.indexOf(e) || (o.push(e), e.Lo(t), n.push(e));
  2569. }, t.prototype.Ya = function (t) {
  2570. var i, s;
  2571. for (this.b.Iz || (this.um = !0, t || (this.b.Gm = !0)), i = 0, s = this.Ee.length; i < s; i++) {
  2572. var h = this.Ee[i];
  2573. h.Ya(), this.b.Nl(h.V), this.b.He && this.b.Gb();
  2574. }
  2575. t || (this.b.Gm = !1);
  2576. }, t.prototype.Ip = function (t, i) {
  2577. t.kc || this.b.bl.push(t);
  2578. var s, h, e, n = t.eb[i];
  2579. e = n.type ? n.type.name : 'system';
  2580. var o = (s = n.hp) ? this.ip : this.Rr;
  2581. if (o[e] || (o[e] = []), e = o[e], o = n.zb, s) {
  2582. if (n.O.length && (1 === (n = n.O[0]).type && 2 === n.td.type)) {
  2583. for (n = n.td.value.toLowerCase(), s = 0, h = e.length; s < h; s++)
  2584. if (e[s].method == o)
  2585. return void ((s = e[s].ph)[n] ? s[n].push([t,i]) : s[n] = [[t,i]]);
  2586. (s = {})[n] = [[t,i]], e.push({
  2587. method: o,
  2588. ph: s
  2589. });
  2590. }
  2591. } else {
  2592. for (s = 0, h = e.length; s < h; s++)
  2593. if (e[s].method == o)
  2594. return void e[s].ph.push([t,i]);
  2595. V && o === V.prototype.c.Of ? e.unshift({
  2596. method: o,
  2597. ph: [[t,i]]
  2598. }) : e.push({
  2599. method: o,
  2600. ph: [[t,i]]
  2601. });
  2602. }
  2603. }, Nb = t, i.prototype.tm = function () {
  2604. return this.R ? this.type.d.length : this.d.length;
  2605. }, i.prototype.Zb = function () {
  2606. return this.R ? this.type.d : this.d;
  2607. }, i.prototype.Fg = function (t) {
  2608. t && (t.b.Ea().Ia.kc ? (this.R && (A(this.d), Da(this.I, t.type.d), this.R = !1), -1 !== (t = this.I.indexOf(t)) && (this.d.push(this.I[t]), this.I.splice(t, 1))) : (this.R = !1, A(this.d), this.d[0] = t));
  2609. }, sb = i, window._c2hh_ = '452B435306E1242151A43DBBE2F7065CB487A3E9', s.prototype.Pa = function (t) {
  2610. var i, s = this.parent;
  2611. if (this.group)
  2612. for (this.$k = !0; s;) {
  2613. if (!s.group) {
  2614. this.$k = !1;
  2615. break;
  2616. }
  2617. s = s.parent;
  2618. }
  2619. for (this.Mn = !this.Tp() && (!this.parent || this.parent.group && this.parent.$k), this.Dp = !!t, this.Te = this.V.slice(0), s = this.parent; s;) {
  2620. for (t = 0, i = s.V.length; t < i; t++)
  2621. this.Eu(s.V[t]);
  2622. s = s.parent;
  2623. }
  2624. for (this.V = h(this.V), this.Te = h(this.Te), t = 0, i = this.eb.length; t < i; t++)
  2625. this.eb[t].Pa();
  2626. for (t = 0, i = this.Fc.length; t < i; t++)
  2627. this.Fc[t].Pa();
  2628. for (t = 0, i = this.Uc.length; t < i; t++)
  2629. this.Uc[t].Pa(t < i - 1 && this.Uc[t + 1].bk);
  2630. }, s.prototype.ty = function (t) {
  2631. if (this.dg !== !!t) {
  2632. var i;
  2633. for (this.dg = !!t, t = 0, i = this.sj.length; t < i; ++t)
  2634. this.sj[t].Wr();
  2635. 0 < i && this.b.ba.hf && this.b.ba.hf.Rn();
  2636. }
  2637. }, s.prototype.Mo = function (t) {
  2638. e(t, this.V);
  2639. }, s.prototype.Eu = function (t) {
  2640. e(t, this.Te);
  2641. }, s.prototype.Qk = function () {
  2642. this.Fn = !0, this.parent && this.parent.Qk();
  2643. }, s.prototype.Tp = function () {
  2644. return !!this.eb.length && this.eb[0].trigger;
  2645. }, s.prototype.Ya = function () {
  2646. var t, i, s = !1, h = this.b, e = this.b.Ea(), n = (e.Ia = this).eb;
  2647. if (this.bk || (e.$l = !1), this.kc) {
  2648. for (0 === n.length && (s = !0), e.Ra = 0, t = n.length; e.Ra < t; e.Ra++)
  2649. (i = n[e.Ra]).trigger || (i = i.Ya()) && (s = !0);
  2650. (e.xf = s) && this.Ik();
  2651. } else {
  2652. for (e.Ra = 0, t = n.length; e.Ra < t; e.Ra++)
  2653. if (!(i = n[e.Ra].Ya()))
  2654. return e.xf = !1, void (this.Mn && h.He && h.Gb());
  2655. e.xf = !0, this.Ik();
  2656. }
  2657. this.zv(e);
  2658. }, s.prototype.zv = function (t) {
  2659. t.xf && this.Dp && (t.$l = !0), this.Mn && this.b.He && this.b.Gb();
  2660. }, s.prototype.ky = function (t) {
  2661. (this.b.Ea().Ia = this).eb[t].Ya() && (this.Ik(), this.b.Ea().xf = !0);
  2662. }, s.prototype.Ik = function () {
  2663. var t, i = this.b.Ea();
  2664. for (i.Wb = 0, t = this.Fc.length; i.Wb < t; i.Wb++)
  2665. if (this.Fc[i.Wb].Ya())
  2666. return;
  2667. this.pr();
  2668. }, s.prototype.iy = function () {
  2669. var t, i = this.b.Ea();
  2670. for (t = this.Fc.length; i.Wb < t; i.Wb++)
  2671. if (this.Fc[i.Wb].Ya())
  2672. return;
  2673. this.pr();
  2674. }, s.prototype.pr = function () {
  2675. if (this.Uc.length) {
  2676. var t, i, s, h, e = this.Uc.length - 1;
  2677. if (this.b.Ek(this), this.Fn)
  2678. for (t = 0, i = this.Uc.length; t < i; t++)
  2679. s = this.Uc[t], (h = !this.$k || !this.group && t < e) && this.b.Qe(s.V), s.Ya(), h ? this.b.jd(s.V) : this.b.Nl(s.V);
  2680. else
  2681. for (t = 0, i = this.Uc.length; t < i; t++)
  2682. this.Uc[t].Ya();
  2683. this.b.zk();
  2684. }
  2685. }, s.prototype.ly = function () {
  2686. var t = this.b.Ea();
  2687. t.Ia = this;
  2688. var i, s = !1;
  2689. for (t.Ra = 0, i = this.eb.length; t.Ra < i; t.Ra++)
  2690. if (this.eb[t.Ra].Ya())
  2691. s = !0;
  2692. else if (!this.kc)
  2693. return !1;
  2694. return !this.kc || s;
  2695. }, s.prototype.ee = function () {
  2696. this.b.kf++;
  2697. var t = this.b.Ea().Ra, i = this.b.Ek(this);
  2698. if (!this.kc)
  2699. for (i.Ra = t + 1, t = this.eb.length; i.Ra < t; i.Ra++)
  2700. if (!this.eb[i.Ra].Ya())
  2701. return this.b.zk(), !1;
  2702. return this.Ik(), this.b.zk(), !0;
  2703. }, s.prototype.bx = function (t) {
  2704. var i = t.index;
  2705. if (0 === i)
  2706. return !0;
  2707. for (--i; 0 <= i; --i)
  2708. if (this.eb[i].type === t.type)
  2709. return !1;
  2710. return !0;
  2711. }, fc = s, r.prototype.Pa = function () {
  2712. var t, i, s;
  2713. for (t = 0, i = this.O.length; t < i; t++)
  2714. (s = this.O[t]).Pa(), s.Wc && (this.dh = !0);
  2715. }, r.prototype.ny = function () {
  2716. return !0;
  2717. }, r.prototype.zn = function () {
  2718. var t, i;
  2719. for (t = 0, i = this.O.length; t < i; t++)
  2720. this.Ka[t] = this.O[t].get();
  2721. return Wa(this.zb.apply(this.b.Hd, this.Ka), this.fg);
  2722. }, r.prototype.my = function () {
  2723. var t, i;
  2724. for (t = 0, i = this.O.length; t < i; t++)
  2725. this.Ka[t] = this.O[t].get();
  2726. return t = this.zb.apply(this.Ze ? this.Ze : this.type, this.Ka), this.type.Gc(), t;
  2727. }, r.prototype.yn = function () {
  2728. var t, i, s, h, e, n, o, r, a = this.type, c = a.N(), p = this.qc.kc && !this.trigger;
  2729. i = 0;
  2730. var u, f = a.Ab, l = a.B, b = a.Vd, d = this.$c, g = -1 < d, y = this.dh, v = this.O, m = this.Ka, w = this.fg, k = this.zb;
  2731. if (y)
  2732. for (i = 0, e = v.length; i < e; ++i)
  2733. (n = v[i]).Wc || (m[i] = n.get(0));
  2734. else
  2735. for (i = 0, e = v.length; i < e; ++i)
  2736. m[i] = v[i].get(0);
  2737. if (c.R) {
  2738. for (A(c.d), A(c.I), t = 0, h = (u = a.d).length; t < h; ++t) {
  2739. if (r = u[t], y)
  2740. for (i = 0, e = v.length; i < e; ++i)
  2741. (n = v[i]).Wc && (m[i] = n.get(t));
  2742. i = g ? (i = 0, l && (i = r.type.Zf[b]), k.apply(r.L[d + i], m)) : k.apply(r, m), (o = Wa(i, w)) ? c.d.push(r) : p && c.I.push(r);
  2743. }
  2744. return a.finish && a.finish(!0), c.R = !1, a.Gc(), c.tm();
  2745. }
  2746. var x = !1;
  2747. for (t = s = 0, h = (u = (o = p && !this.qc.bx(this)) ? c.I : c.d).length; t < h; ++t) {
  2748. if (r = u[t], y)
  2749. for (i = 0, e = v.length; i < e; ++i)
  2750. (n = v[i]).Wc && (m[i] = n.get(t));
  2751. if (i = g ? (i = 0, l && (i = r.type.Zf[b]), k.apply(r.L[d + i], m)) : k.apply(r, m), Wa(i, w))
  2752. if (x = !0, o) {
  2753. if (c.d.push(r), f)
  2754. for (i = 0, e = r.siblings.length; i < e; i++)
  2755. (n = r.siblings[i]).type.N().d.push(n);
  2756. } else {
  2757. if (u[s] = r, f)
  2758. for (i = 0, e = r.siblings.length; i < e; i++)
  2759. (n = r.siblings[i]).type.N().d[s] = n;
  2760. s++;
  2761. }
  2762. else if (o) {
  2763. if (u[s] = r, f)
  2764. for (i = 0, e = r.siblings.length; i < e; i++)
  2765. (n = r.siblings[i]).type.N().I[s] = n;
  2766. s++;
  2767. } else if (p && (c.I.push(r), f))
  2768. for (i = 0, e = r.siblings.length; i < e; i++)
  2769. (n = r.siblings[i]).type.N().I.push(n);
  2770. }
  2771. if (Ba(u, s), f)
  2772. for (t = 0, h = (l = a.hc).length; t < h; t++)
  2773. r = l[t].N(), Ba(o ? r.I : r.d, s);
  2774. if (s = x, o && !x)
  2775. for (t = 0, h = c.d.length; t < h; t++) {
  2776. if (r = c.d[t], y)
  2777. for (i = 0, e = v.length; i < e; i++)
  2778. (n = v[i]).Wc && (m[i] = n.get(t));
  2779. if (i = g ? k.apply(r.L[d], m) : k.apply(r, m), Wa(i, w)) {
  2780. x = !0;
  2781. break;
  2782. }
  2783. }
  2784. return a.finish && a.finish(s || p), p ? x : c.tm();
  2785. }, ac = r, a.prototype.Pa = function () {
  2786. var t, i, s;
  2787. for (t = 0, i = this.O.length; t < i; t++)
  2788. (s = this.O[t]).Pa(), s.Wc && (this.dh = !0);
  2789. }, a.prototype.zn = function () {
  2790. var t, i, s = this.b, h = this.O, e = this.Ka;
  2791. for (t = 0, i = h.length; t < i; ++t)
  2792. e[t] = h[t].get();
  2793. return this.zb.apply(s.Hd, e);
  2794. }, a.prototype.yn = function () {
  2795. var t, i, s, h, e, n, o = this.type, r = this.$c, a = o.Vd, c = this.dh, p = this.O, u = this.Ka, f = this.zb, l = o.N().Zb(), b = (o = o.B, -1 < r);
  2796. if (c)
  2797. for (i = 0, h = p.length; i < h; ++i)
  2798. (e = p[i]).Wc || (u[i] = e.get(0));
  2799. else
  2800. for (i = 0, h = p.length; i < h; ++i)
  2801. u[i] = p[i].get(0);
  2802. for (t = 0, s = l.length; t < s; ++t) {
  2803. if (n = l[t], c)
  2804. for (i = 0, h = p.length; i < h; ++i)
  2805. (e = p[i]).Wc && (u[i] = e.get(t));
  2806. b ? (i = 0, o && (i = n.type.Zf[a]), f.apply(n.L[r + i], u)) : f.apply(n, u);
  2807. }
  2808. return !1;
  2809. }, bc = a;
  2810. var d = [], g = -1;
  2811. p.prototype.Pa = function () {
  2812. var t, i;
  2813. if (11 === this.type)
  2814. this.jf = this.b.vp(this.Ei, this.qc.parent);
  2815. else if (13 === this.type)
  2816. for (t = 0, i = this.Ff.length; t < i; t++)
  2817. this.Ff[t].Pa();
  2818. this.td && this.td.Pa();
  2819. }, p.prototype.xx = function (t) {
  2820. this.Wc || !t || t.X.Rk || (this.Wc = !0);
  2821. }, p.prototype.yr = function () {
  2822. this.Wc = !0;
  2823. }, p.prototype.Ew = function (t) {
  2824. return this.je = t || 0, t = c(), this.td.get(t), g--, t.data;
  2825. }, p.prototype.Fw = function (t) {
  2826. return this.je = t || 0, t = c(), this.td.get(t), g--, z(t.data) ? t.data : '';
  2827. }, p.prototype.Lw = function () {
  2828. return this.object;
  2829. }, p.prototype.Cw = function () {
  2830. return this.$o;
  2831. }, p.prototype.Jw = function (t) {
  2832. return this.je = t || 0, t = c(), this.td.get(t), g--, t.qb() ? this.b.ag(t.data) : this.b.Sj(t.data);
  2833. }, p.prototype.Kw = function () {
  2834. return this.rb;
  2835. }, p.prototype.Iw = function () {
  2836. return this.key;
  2837. }, p.prototype.Hw = function () {
  2838. return this.index;
  2839. }, p.prototype.Gw = function (t) {
  2840. t = t || 0;
  2841. var i = this.Oc.type, s = null, h = (s = i.N()).Zb();
  2842. if (h.length)
  2843. s = h[t % h.length].type;
  2844. else if (s.I.length)
  2845. s = s.I[t % s.I.length].type;
  2846. else {
  2847. if (!i.d.length)
  2848. return 0;
  2849. s = i.d[t % i.d.length].type;
  2850. }
  2851. return this.index + s.Hj[i.Vd];
  2852. }, p.prototype.Dw = function () {
  2853. return this.jf;
  2854. }, p.prototype.Bw = function () {
  2855. return this.mp;
  2856. }, p.prototype.Mw = function () {
  2857. var t, i;
  2858. for (t = 0, i = this.Ff.length; t < i; t++)
  2859. this.Di[t] = this.Ff[t].get();
  2860. return this.Di;
  2861. }, cc = p, u.prototype.Pa = function () {
  2862. this.V = h(this.V);
  2863. }, u.prototype.he = function (t) {
  2864. var i = this.b.tp();
  2865. this.parent && !this.Lh && i ? (this.Cf >= i.length && (i.length = this.Cf + 1), i[this.Cf] = t) : this.data = t;
  2866. }, u.prototype.of = function () {
  2867. var t = this.b.tp();
  2868. return !this.parent || this.Lh || !t || this.ak ? this.data : this.Cf >= t.length || void 0 === t[this.Cf] ? this.xm : t[this.Cf];
  2869. }, u.prototype.Ya = function () {
  2870. !this.parent || this.Lh || this.ak || this.he(this.xm);
  2871. }, Xb = u, f.prototype.toString = function () {
  2872. return 'include:' + this.Ah.toString();
  2873. }, f.prototype.Pa = function () {
  2874. this.Ah = this.b.cm[this.Sw], this.sheet.Fp.add(this), this.V = h(this.V);
  2875. for (var t = this.parent; t;)
  2876. t.group && t.sj.push(this), t = t.parent;
  2877. this.Wr();
  2878. }, f.prototype.Ya = function () {
  2879. this.parent && this.b.ii(this.b.p), this.Ah.um || this.Ah.Ya(!0), this.parent && this.b.jd(this.b.p);
  2880. }, f.prototype.Wr = function () {
  2881. for (var t = this.parent; t;) {
  2882. if (t.group && !t.dg)
  2883. return void (this.nc = !1);
  2884. t = t.parent;
  2885. }
  2886. this.nc = !0;
  2887. }, gc = f, l.prototype.reset = function (t) {
  2888. this.Ia = t, this.Wb = this.Ra = 0, A(this.Kr), this.$l = this.xf = !1;
  2889. }, l.prototype.Em = function () {
  2890. return !!this.Ia.Fn || this.Ra < this.Ia.eb.length - 1 && !!this.Ia.V.length;
  2891. }, Wb = l;
  2892. }(), function () {
  2893. function t(t, i) {
  2894. this.Oc = t, this.b = t.b, this.type = i[0], this.get = [this.Rv,this.Nv,this.$v,this.dw,this.Cv,this.aw,this.Vv,this.Kv,this.Uv,this.Zv,this.Dv,this.Yv,this.Lv,this.Wv,this.Sv,this.Tv,this.Ov,this.Pv,this.Jv,this.bw,this.Xv,this.Qv,this.Iv,this.Mv][this.type];
  2895. var s, h, e = null;
  2896. switch (this.ae = this.O = this.Ka = this.zb = this.Zk = this.second = this.first = this.value = null, this.$c = -1, this.fd = null, this.bs = -1, this.jf = this.Ei = null, this.Ig = !1, this.type) {
  2897. case 0:
  2898. case 1:
  2899. case 2:
  2900. this.value = i[1];
  2901. break;
  2902. case 3:
  2903. this.first = new ec(t, i[1]);
  2904. break;
  2905. case 18:
  2906. this.first = new ec(t, i[1]), this.second = new ec(t, i[2]), this.Zk = new ec(t, i[3]);
  2907. break;
  2908. case 19:
  2909. this.zb = this.b.qe(i[1]), this.zb !== T.prototype.g.random && this.zb !== T.prototype.g.Yo || this.Oc.yr(), this.Ka = [], this.O = [], 3 === i.length ? (e = i[2], this.Ka.length = e.length + 1) : this.Ka.length = 1;
  2910. break;
  2911. case 20:
  2912. this.ae = this.b.p[i[1]], this.$c = -1, this.zb = this.b.qe(i[2]), this.Ig = i[3], sc && this.zb === sc.prototype.g.bo && this.Oc.yr(), i[4] ? this.fd = new ec(t, i[4]) : this.fd = null, this.Ka = [], this.O = [], 6 === i.length ? (e = i[5], this.Ka.length = e.length + 1) : this.Ka.length = 1;
  2913. break;
  2914. case 21:
  2915. this.ae = this.b.p[i[1]], this.Ig = i[2], i[3] ? this.fd = new ec(t, i[3]) : this.fd = null, this.bs = i[4];
  2916. break;
  2917. case 22:
  2918. this.ae = this.b.p[i[1]], this.ae.Pj(i[2]), this.$c = this.ae.im(i[2]), this.zb = this.b.qe(i[3]), this.Ig = i[4], i[5] ? this.fd = new ec(t, i[5]) : this.fd = null, this.Ka = [], this.O = [], 7 === i.length ? (e = i[6], this.Ka.length = e.length + 1) : this.Ka.length = 1;
  2919. break;
  2920. case 23:
  2921. this.Ei = i[1], this.jf = null;
  2922. }
  2923. if (this.Oc.xx(this.ae), 4 <= this.type && this.type <= 17 && (this.first = new ec(t, i[1]), this.second = new ec(t, i[2])), e)
  2924. for (s = 0, h = e.length; s < h; s++)
  2925. this.O.push(new ec(t, e[s]));
  2926. }
  2927. function p() {
  2928. return ++f, s.length === f && s.push(new dc()), s[f];
  2929. }
  2930. function u(t, i, s) {
  2931. var h, e;
  2932. for (h = 0, e = t.length; h < e; ++h)
  2933. t[h].get(s), i[h + 1] = s.data;
  2934. }
  2935. function i(t, i) {
  2936. this.type = t || hc.Nf, this.data = i || 0, this.Df = null, this.type == hc.Nf && (this.data = Math.floor(this.data));
  2937. }
  2938. t.prototype.Pa = function () {
  2939. var t, i;
  2940. if (23 === this.type && (this.jf = this.Oc.b.vp(this.Ei, this.Oc.qc.parent)), this.first && this.first.Pa(), this.second && this.second.Pa(), this.Zk && this.Zk.Pa(), this.fd && this.fd.Pa(), this.O)
  2941. for (t = 0, i = this.O.length; t < i; t++)
  2942. this.O[t].Pa();
  2943. };
  2944. var s = [], f = -1;
  2945. t.prototype.bw = function (t) {
  2946. var i = this.O, s = this.Ka;
  2947. s[0] = t, u(i, s, t = p()), --f, this.zb.apply(this.b.Hd, s);
  2948. }, t.prototype.Xv = function (t) {
  2949. var i = this.ae, s = this.Ka, h = this.O, e = this.fd, n = this.zb, o = this.Oc.je, r = i.N(), a = r.Zb();
  2950. if (!a.length) {
  2951. if (!r.I.length)
  2952. return void (this.Ig ? t.la('') : t.H(0));
  2953. a = r.I;
  2954. }
  2955. (s[0] = t).Df = i, u(h, s, t = p()), e && (e.get(t), t.qb() && (o = t.data, a = i.d)), --f, ((i = a.length) <= o || o <= -i) && (o %= i), o < 0 && (o += i), n.apply(a[o], s);
  2956. }, t.prototype.Iv = function (t) {
  2957. var i = this.ae, s = this.Ka, h = this.O, e = this.fd, n = this.$c, o = this.zb, r = this.Oc.je, a = i.N(), c = a.Zb();
  2958. if (!c.length) {
  2959. if (!a.I.length)
  2960. return void (this.Ig ? t.la('') : t.H(0));
  2961. c = a.I;
  2962. }
  2963. (s[0] = t).Df = i, u(h, s, t = p()), e && (e.get(t), t.qb() && (r = t.data, c = i.d)), --f, ((h = c.length) <= r || r <= -h) && (r %= h), r < 0 && (r += h), r = c[r], c = 0, i.B && (c = r.type.Zf[i.Vd]), o.apply(r.L[n + c], s);
  2964. }, t.prototype.Qv = function (t) {
  2965. var i = this.fd, s = this.ae, h = this.bs, e = this.Oc.je, n = s.N(), o = n.Zb();
  2966. if (!o.length) {
  2967. if (!n.I.length)
  2968. return void (this.Ig ? t.la('') : t.H(0));
  2969. o = n.I;
  2970. }
  2971. if (i) {
  2972. if (n = p(), i.get(n), n.qb())
  2973. return e = n.data, 0 !== (o = s.d).length && ((e %= o.length) < 0 && (e += o.length)), s = (e = s.mm(e)).hb[h], z(s) ? t.la(s) : t.n(s), void --f;
  2974. --f;
  2975. }
  2976. ((i = o.length) <= e || e <= -i) && (e %= i), e < 0 && (e += i), e = o[e], o = 0, s.B && (o = e.type.Hj[s.Vd]), s = e.hb[h + o], z(s) ? t.la(s) : t.n(s);
  2977. }, t.prototype.Rv = function (t) {
  2978. t.type = hc.Nf, t.data = this.value;
  2979. }, t.prototype.Nv = function (t) {
  2980. t.type = hc.Mf, t.data = this.value;
  2981. }, t.prototype.$v = function (t) {
  2982. t.type = hc.String, t.data = this.value;
  2983. }, t.prototype.dw = function (t) {
  2984. this.first.get(t), t.qb() && (t.data = -t.data);
  2985. }, t.prototype.Cv = function (t) {
  2986. this.first.get(t);
  2987. var i = p();
  2988. this.second.get(i), t.qb() && i.qb() && (t.data += i.data, i.kg() && t.wg()), --f;
  2989. }, t.prototype.aw = function (t) {
  2990. this.first.get(t);
  2991. var i = p();
  2992. this.second.get(i), t.qb() && i.qb() && (t.data -= i.data, i.kg() && t.wg()), --f;
  2993. }, t.prototype.Vv = function (t) {
  2994. this.first.get(t);
  2995. var i = p();
  2996. this.second.get(i), t.qb() && i.qb() && (t.data *= i.data, i.kg() && t.wg()), --f;
  2997. }, t.prototype.Kv = function (t) {
  2998. this.first.get(t);
  2999. var i = p();
  3000. this.second.get(i), t.qb() && i.qb() && (t.data /= i.data, t.wg()), --f;
  3001. }, t.prototype.Uv = function (t) {
  3002. this.first.get(t);
  3003. var i = p();
  3004. this.second.get(i), t.qb() && i.qb() && (t.data %= i.data, i.kg() && t.wg()), --f;
  3005. }, t.prototype.Zv = function (t) {
  3006. this.first.get(t);
  3007. var i = p();
  3008. this.second.get(i), t.qb() && i.qb() && (t.data = Math.pow(t.data, i.data), i.kg() && t.wg()), --f;
  3009. }, t.prototype.Dv = function (t) {
  3010. this.first.get(t);
  3011. var i = p();
  3012. this.second.get(i), i.ng() || t.ng() ? this.Fv(t, i) : this.Ev(t, i), --f;
  3013. }, t.prototype.Fv = function (t, i) {
  3014. t.ng() && i.ng() ? this.Hv(t, i) : this.Gv(t, i);
  3015. }, t.prototype.Hv = function (t, i) {
  3016. t.data += i.data;
  3017. }, t.prototype.Gv = function (t, i) {
  3018. t.ng() ? t.data += (Math.round(10000000000 * i.data) / 10000000000).toString() : t.la(t.data.toString() + i.data);
  3019. }, t.prototype.Ev = function (t, i) {
  3020. t.H(t.data && i.data ? 1 : 0);
  3021. }, t.prototype.Yv = function (t) {
  3022. this.first.get(t);
  3023. var i = p();
  3024. this.second.get(i), t.qb() && i.qb() && (t.data || i.data ? t.H(1) : t.H(0)), --f;
  3025. }, t.prototype.Jv = function (t) {
  3026. this.first.get(t), t.data ? this.second.get(t) : this.Zk.get(t);
  3027. }, t.prototype.Lv = function (t) {
  3028. this.first.get(t);
  3029. var i = p();
  3030. this.second.get(i), t.H(t.data === i.data ? 1 : 0), --f;
  3031. }, t.prototype.Wv = function (t) {
  3032. this.first.get(t);
  3033. var i = p();
  3034. this.second.get(i), t.H(t.data !== i.data ? 1 : 0), --f;
  3035. }, t.prototype.Sv = function (t) {
  3036. this.first.get(t);
  3037. var i = p();
  3038. this.second.get(i), t.H(t.data < i.data ? 1 : 0), --f;
  3039. }, t.prototype.Tv = function (t) {
  3040. this.first.get(t);
  3041. var i = p();
  3042. this.second.get(i), t.H(t.data <= i.data ? 1 : 0), --f;
  3043. }, t.prototype.Ov = function (t) {
  3044. this.first.get(t);
  3045. var i = p();
  3046. this.second.get(i), t.H(t.data > i.data ? 1 : 0), --f;
  3047. }, t.prototype.Pv = function (t) {
  3048. this.first.get(t);
  3049. var i = p();
  3050. this.second.get(i), t.H(t.data >= i.data ? 1 : 0), --f;
  3051. }, t.prototype.Mv = function (t) {
  3052. var i = this.jf.of();
  3053. ja(i) ? t.n(i) : t.la(i);
  3054. }, ec = t, i.prototype.kg = function () {
  3055. return this.type === hc.Mf;
  3056. }, i.prototype.qb = function () {
  3057. return this.type === hc.Nf || this.type === hc.Mf;
  3058. }, i.prototype.ng = function () {
  3059. return this.type === hc.String;
  3060. }, i.prototype.wg = function () {
  3061. this.kg() || (this.ng() && (this.data = parseFloat(this.data)), this.type = hc.Mf);
  3062. }, i.prototype.H = function (t) {
  3063. this.type = hc.Nf, this.data = Math.floor(t);
  3064. }, i.prototype.n = function (t) {
  3065. this.type = hc.Mf, this.data = t;
  3066. }, i.prototype.la = function (t) {
  3067. this.type = hc.String, this.data = t;
  3068. }, i.prototype.Kg = function (t) {
  3069. ja(t) ? (this.type = hc.Mf, this.data = t) : z(t) ? (this.type = hc.String, this.data = t.toString()) : (this.type = hc.Nf, this.data = 0);
  3070. }, dc = i, hc = {
  3071. Nf: 0,
  3072. Mf: 1,
  3073. String: 2
  3074. };
  3075. }(), T.prototype.Fb = function () {
  3076. var t, i, s, h, e, n, o, r, a = {};
  3077. a.waits = [];
  3078. var c, p = a.waits;
  3079. for (t = 0, i = this.fc.length; t < i; t++) {
  3080. for (c = {
  3081. t: (n = this.fc[t]).time,
  3082. st: n.Gr,
  3083. s: n.En,
  3084. ev: n.Yf.Y,
  3085. sm: [],
  3086. sols: {}
  3087. }, n.Yf.Fc[n.Wb] && (c.act = n.Yf.Fc[n.Wb].Y), s = 0, h = n.V.length; s < h; s++)
  3088. c.sm.push(n.V[s].Y);
  3089. for (e in n.Sb)
  3090. if (n.Sb.hasOwnProperty(e)) {
  3091. for (o = this.b.p[parseInt(e, 10)], r = {
  3092. sa: n.Sb[e].Jk,
  3093. insts: []
  3094. }, s = 0, h = n.Sb[e].Xd.length; s < h; s++)
  3095. r.insts.push(n.Sb[e].Xd[s].uid);
  3096. c.sols[o.Y.toString()] = r;
  3097. }
  3098. p.push(c);
  3099. }
  3100. return a;
  3101. }, T.prototype.Qb = function (t) {
  3102. var i, s, h, e, n, o, r, a, c, p, u;
  3103. for (t = t.waits, A(this.fc), i = 0, s = t.length; i < s; i++)
  3104. if (o = t[i], a = this.b.Ro[o.ev.toString()]) {
  3105. for (c = -1, h = 0, e = a.Fc.length; h < e; h++)
  3106. if (a.Fc[h].Y === o.act) {
  3107. c = h;
  3108. break;
  3109. }
  3110. if (-1 !== c) {
  3111. for ((r = {
  3112. Sb: {},
  3113. V: [],
  3114. Xl: !1
  3115. }).time = o.t, r.Gr = o.st || '', r.En = !!o.s, r.Yf = a, r.Wb = c, h = 0, e = o.sm.length; h < e; h++)
  3116. (a = this.b.Vj(o.sm[h])) && r.V.push(a);
  3117. for (n in o.sols)
  3118. if (o.sols.hasOwnProperty(n) && (a = this.b.Vj(parseInt(n, 10)))) {
  3119. for (p = {
  3120. Jk: (c = o.sols[n]).sa,
  3121. Xd: []
  3122. }, h = 0, e = c.insts.length; h < e; h++)
  3123. (u = this.b.Uj(c.insts[h])) && p.Xd.push(u);
  3124. r.Sb[a.index.toString()] = p;
  3125. }
  3126. this.fc.push(r);
  3127. }
  3128. }
  3129. }, function () {
  3130. function t() {
  3131. }
  3132. function i() {
  3133. }
  3134. function s() {
  3135. }
  3136. var h = T.prototype;
  3137. t.prototype.Ds = function () {
  3138. return !0;
  3139. }, t.prototype.to = function () {
  3140. return !0;
  3141. }, t.prototype.so = function () {
  3142. return !0;
  3143. }, t.prototype.qs = function (t, i, s) {
  3144. return ic(t, i, s);
  3145. }, t.prototype.wu = function () {
  3146. var t = (s = this.b.Ea()).Ia, i = s.Em(), s = this.b.pn();
  3147. if (i)
  3148. for (i = 0; !s.ta; i++)
  3149. this.b.Qe(t.V), s.index = i, t.ee() || (s.ta = !0), this.b.jd(t.V);
  3150. else
  3151. for (i = 0; !s.ta; i++)
  3152. s.index = i, t.ee() || (s.ta = !0);
  3153. return this.b.ln(), !1;
  3154. }, t.prototype.Fs = function (t, i, s) {
  3155. var h = (e = this.b.Ea()).Ia, e = e.Em();
  3156. if (t = this.b.pn(t), s < i)
  3157. if (e)
  3158. for (; s <= i && !t.ta; --i)
  3159. this.b.Qe(h.V), t.index = i, h.ee(), this.b.jd(h.V);
  3160. else
  3161. for (; s <= i && !t.ta; --i)
  3162. t.index = i, h.ee();
  3163. else if (e)
  3164. for (; i <= s && !t.ta; ++i)
  3165. this.b.Qe(h.V), t.index = i, h.ee(), this.b.jd(h.V);
  3166. else
  3167. for (; i <= s && !t.ta; ++i)
  3168. t.index = i, h.ee();
  3169. return this.b.ln(), !1;
  3170. };
  3171. var l = [], b = -1;
  3172. t.prototype.Gs = function (t) {
  3173. var i = t.N();
  3174. b++, l.length === b && l.push([]);
  3175. var s = l[b];
  3176. Da(s, i.Zb());
  3177. var h, e, n, o, r, a, c = (u = this.b.Ea()).Ia, p = u.Em(), u = this.b.pn(), f = t.Ab;
  3178. if (p)
  3179. for (p = 0, h = s.length; p < h && !u.ta; p++) {
  3180. if (this.b.Qe(c.V), o = s[p], (i = t.N()).R = !1, A(i.d), i.d[0] = o, f)
  3181. for (e = 0, n = o.siblings.length; e < n; e++)
  3182. (a = (r = o.siblings[e]).type.N()).R = !1, A(a.d), a.d[0] = r;
  3183. u.index = p, c.ee(), this.b.jd(c.V);
  3184. }
  3185. else
  3186. for (i.R = !1, A(i.d), p = 0, h = s.length; p < h && !u.ta; p++) {
  3187. if (o = s[p], i.d[0] = o, f)
  3188. for (e = 0, n = o.siblings.length; e < n; e++)
  3189. (a = (r = o.siblings[e]).type.N()).R = !1, A(a.d), a.d[0] = r;
  3190. u.index = p, c.ee();
  3191. }
  3192. return A(s), this.b.ln(), b--, !1;
  3193. }, t.prototype.Ht = function (t, i, s, h) {
  3194. var e, n, o, r;
  3195. if (t) {
  3196. b++, l.length === b && l.push([]);
  3197. var a = l[b], c = t.N();
  3198. Da(a, c.Zb()), c.R && A(c.I);
  3199. var p = this.b.Qj();
  3200. for (o = e = 0, n = a.length; e < n; e++)
  3201. r = a[e], a[o] = r, i = p.O[1].get(e), h = p.O[3].get(e), ic(i, s, h) ? o++ : c.I.push(r);
  3202. return Ba(a, o), c.R = !1, Da(c.d, a), A(a), b--, t.Gc(), !!c.d.length;
  3203. }
  3204. }, t.prototype.It = function (t, i) {
  3205. if (!t)
  3206. return !1;
  3207. var s = t.N(), h = s.Zb();
  3208. return !((i = ta(i)) < 0 || i >= h.length) && (s.Fg(h[i]), t.Gc(), !0);
  3209. }, t.prototype.ws = function (t, i, s) {
  3210. return ic(t.of(), i, s);
  3211. }, t.prototype.Qs = function (t) {
  3212. return (t = this.b.wh[t.toLowerCase()]) && t.dg;
  3213. }, t.prototype.Ws = function () {
  3214. return 'undefined' != typeof cr_is_preview;
  3215. }, t.prototype.Gt = function (t) {
  3216. return !(!t || !t.d.length) && (t.N().R = !0, t.Gc(), !0);
  3217. }, t.prototype.Ss = function () {
  3218. return this.b.sf;
  3219. }, t.prototype.ho = function () {
  3220. var t = this.b.Ea();
  3221. return !t.$l && !t.xf;
  3222. }, t.prototype.uo = function () {
  3223. return !0;
  3224. }, t.prototype.jt = function () {
  3225. return !0;
  3226. }, t.prototype.Cs = function () {
  3227. return !!this.b.k;
  3228. }, t.prototype.ql = function () {
  3229. return !0;
  3230. }, t.prototype.zo = function () {
  3231. return !0;
  3232. }, t.prototype.ut = function () {
  3233. return !0;
  3234. }, t.prototype.Vi = function () {
  3235. return !0;
  3236. };
  3237. var e = null, n = '', o = '';
  3238. t.prototype.Qt = function (t, i, s) {
  3239. return e && i === n && s === o || (e = new RegExp(i, s), n = i, o = s), e.lastIndex = 0, e.test(t);
  3240. };
  3241. var a = [];
  3242. t.prototype.Jt = function (t, i, s) {
  3243. if (!t)
  3244. return !1;
  3245. var h, e = t.N(), n = e.Zb(), o = this.b.Ea().Ia.kc, r = this.b.Qj();
  3246. for (e.R ? (Da(a, n), A(e.I), e.R = !1, A(e.d)) : o ? (Da(a, e.I), A(e.I)) : (Da(a, n), A(e.d)), n = 0, o = a.length; n < o; ++n)
  3247. (h = a[n]).Aa(), Wa(h.Ib(i, s), r.fg) ? e.d.push(h) : e.I.push(h);
  3248. return t.Gc(), Wa(!!e.d.length, r.fg);
  3249. }, t.prototype.kl = function (t, i, s) {
  3250. return Ra(G(t), G(s)) <= G(i);
  3251. }, t.prototype.Ps = function (t, i) {
  3252. return Ta(G(t), G(i));
  3253. }, t.prototype.Ns = function (t, i, s) {
  3254. return t = Oa(t), i = Oa(i), s = Oa(s), Ta(s, i) ? Ta(t, i) && !Ta(t, s) : !(!Ta(t, i) && Ta(t, s));
  3255. }, h.c = new t(), i.prototype.Is = function (t) {
  3256. this.b.Mh || this.b.ih || (this.b.ih = t);
  3257. }, i.prototype.As = function (t, i, s, h) {
  3258. if (i && t && (i = this.b.Rl(t, i, s, h))) {
  3259. var e;
  3260. if (this.b.wc++, this.b.trigger(Object.getPrototypeOf(t.X).c.Jd, i), i.Ab)
  3261. for (s = 0, h = i.siblings.length; s < h; s++)
  3262. e = i.siblings[s], this.b.trigger(Object.getPrototypeOf(e.type.X).c.Jd, e);
  3263. if (this.b.wc--, (t = t.N()).R = !1, A(t.d), (t.d[0] = i).Ab)
  3264. for (s = 0, h = i.siblings.length; s < h; s++)
  3265. (t = (e = i.siblings[s]).type.N()).R = !1, A(t.d), t.d[0] = e;
  3266. }
  3267. }, i.prototype.Ut = function (t) {
  3268. this.b.ba.Kk(t);
  3269. }, i.prototype.Vt = function (t) {
  3270. this.b.ba.Lk(t);
  3271. }, i.prototype.Tt = function (t, i) {
  3272. this.b.ba.Kk(t), this.b.ba.Lk(i);
  3273. }, i.prototype.ku = function (t, i) {
  3274. 0 === t.Fi ? ja(i) ? t.he(i) : t.he(parseFloat(i)) : 1 === t.Fi && t.he(i.toString());
  3275. }, i.prototype.ks = function (t, i) {
  3276. 0 === t.Fi ? ja(i) ? t.he(t.of() + i) : t.he(t.of() + parseFloat(i)) : 1 === t.Fi && t.he(t.of() + i.toString());
  3277. }, i.prototype.su = function (t, i) {
  3278. 0 === t.Fi && (ja(i) ? t.he(t.of() - i) : t.he(t.of() - parseFloat(i)));
  3279. }, i.prototype.ju = function (t) {
  3280. t < 0 && (t = 0), this.b.Jf = t;
  3281. };
  3282. var r = [], c = [];
  3283. i.prototype.vu = function (t) {
  3284. if (!(t < 0)) {
  3285. var i, s, h, e, n = this.b.Ea();
  3286. for ((e = r.length ? r.pop() : {
  3287. Sb: {},
  3288. V: []
  3289. }).Xl = !1, e.time = this.b.Bb.Z + t, e.Gr = '', e.En = !1, e.Yf = n.Ia, e.Wb = n.Wb + 1, t = 0, i = this.b.p.length; t < i; t++)
  3290. (s = (h = this.b.p[t]).N()).R && -1 === n.Ia.V.indexOf(h) || (e.V.push(h), h = void 0, (h = c.length ? c.pop() : { Xd: [] }).Jk = !1, h.Jk = s.R, Da(h.Xd, s.d), e.Sb[t.toString()] = h);
  3291. return this.fc.push(e), !0;
  3292. }
  3293. }, i.prototype.cu = function (t, i) {
  3294. t && !!i != !!t.Dc && (t.Dc = !!i, this.b.fa = !0);
  3295. }, h.e = new i(), s.prototype.int = function (t, i) {
  3296. z(i) ? (t.H(parseInt(i, 10)), isNaN(t.data) && (t.data = 0)) : t.H(i);
  3297. }, s.prototype.float = function (t, i) {
  3298. z(i) ? (t.n(parseFloat(i)), isNaN(t.data) && (t.data = 0)) : t.n(i);
  3299. }, s.prototype.qx = function (t, i) {
  3300. t.H(i.length || 0);
  3301. }, s.prototype.random = function (t, i, s) {
  3302. void 0 === s ? t.n(Math.random() * i) : t.n(Math.random() * (s - i) + i);
  3303. }, s.prototype.sqrt = function (t, i) {
  3304. t.n(Math.sqrt(i));
  3305. }, s.prototype.abs = function (t, i) {
  3306. t.n(Math.abs(i));
  3307. }, s.prototype.round = function (t, i) {
  3308. t.H(Math.round(i));
  3309. }, s.prototype.floor = function (t, i) {
  3310. t.H(Math.floor(i));
  3311. }, s.prototype.ceil = function (t, i) {
  3312. t.H(Math.ceil(i));
  3313. }, s.prototype.sin = function (t, i) {
  3314. t.n(Math.sin(G(i)));
  3315. }, s.prototype.cos = function (t, i) {
  3316. t.n(Math.cos(G(i)));
  3317. }, s.prototype.tan = function (t, i) {
  3318. t.n(Math.tan(G(i)));
  3319. }, s.prototype.asin = function (t, i) {
  3320. t.n(Ka(Math.asin(i)));
  3321. }, s.prototype.acos = function (t, i) {
  3322. t.n(Ka(Math.acos(i)));
  3323. }, s.prototype.atan = function (t, i) {
  3324. t.n(Ka(Math.atan(i)));
  3325. }, s.prototype.exp = function (t, i) {
  3326. t.n(Math.exp(i));
  3327. }, s.prototype.log10 = function (t, i) {
  3328. t.n(Math.log(i) / Math.LN10);
  3329. }, s.prototype.max = function (t) {
  3330. var i, s, h, e = arguments[1];
  3331. for ('number' != typeof e && (e = 0), i = 2, s = arguments.length; i < s; i++)
  3332. 'number' == typeof (h = arguments[i]) && e < h && (e = h);
  3333. t.n(e);
  3334. }, s.prototype.min = function (t) {
  3335. var i, s, h, e = arguments[1];
  3336. for ('number' != typeof e && (e = 0), i = 2, s = arguments.length; i < s; i++)
  3337. 'number' == typeof (h = arguments[i]) && h < e && (e = h);
  3338. t.n(e);
  3339. }, s.prototype.De = function (t) {
  3340. t.n(this.b.De);
  3341. }, s.prototype.Jf = function (t) {
  3342. t.n(this.b.Jf);
  3343. }, s.prototype.time = function (t) {
  3344. t.n(this.b.Bb.Z);
  3345. }, s.prototype.Rg = function (t) {
  3346. t.H(this.b.Rg);
  3347. }, s.prototype.rk = function (t) {
  3348. t.H(this.b.rk);
  3349. }, s.prototype.gm = function (t) {
  3350. t.H(this.b.gm);
  3351. }, s.prototype.ux = function (t, i) {
  3352. var s, h;
  3353. if (this.b.Yh.length)
  3354. if (i) {
  3355. for (h = this.b.Zh; 0 <= h; --h)
  3356. if ((s = this.b.Yh[h]).name === i)
  3357. return void t.H(s.index);
  3358. t.H(0);
  3359. } else
  3360. s = this.b.up(), t.H(s ? s.index : -1);
  3361. else
  3362. t.H(0);
  3363. }, s.prototype.Xu = function (t, i, s, h, e) {
  3364. t.n(Va(i, s, h, e));
  3365. }, s.prototype.m = function (t, i, s, h, e) {
  3366. t.n(Ka(Pa(i, s, h, e)));
  3367. }, s.prototype.Ax = function (t) {
  3368. t.la('\n');
  3369. }, s.prototype.Oy = function (t, i) {
  3370. t.la(z(i) ? i.toUpperCase() : '');
  3371. }, s.prototype.ox = function (t) {
  3372. t.H(this.b.ba.width);
  3373. }, s.prototype.nx = function (t) {
  3374. t.H(this.b.ba.height);
  3375. }, s.prototype.left = function (t, i, s) {
  3376. t.la(z(i) ? i.substr(0, s) : '');
  3377. }, s.prototype.right = function (t, i, s) {
  3378. t.la(z(i) ? i.substr(i.length - s) : '');
  3379. }, s.prototype.yx = function (t, i, s, h) {
  3380. t.la(z(i) ? i.substr(s, h) : '');
  3381. }, s.prototype.Jy = function (t, i, s, h) {
  3382. z(i) && z(h) ? (i = i.split(h), (s = ta(s)) < 0 || s >= i.length ? t.la('') : t.la(i[s])) : t.la('');
  3383. }, s.prototype.Ky = function (t, i, s) {
  3384. z(i) && i.length ? t.H(i.split(s).length) : t.H(0);
  3385. }, s.prototype.replace = function (t, i, s, h) {
  3386. z(i) && z(s) && z(h) ? t.la(i.replace(new RegExp(fb(s), 'gi'), h)) : t.la(z(i) ? i : '');
  3387. }, s.prototype.trim = function (t, i) {
  3388. t.la(z(i) ? i.trim() : '');
  3389. }, s.prototype.Rx = function (t) {
  3390. t.n(sa);
  3391. }, s.prototype.Yo = function (t) {
  3392. var i = ta(Math.random() * (arguments.length - 1));
  3393. t.Kg(arguments[i + 1]);
  3394. }, s.prototype.Vy = function (t, i, s) {
  3395. var h = i < 0 ? '-' : '';
  3396. i < 0 && (i = -i), s -= i.toString().length;
  3397. for (var e = 0; e < s; e++)
  3398. h += '0';
  3399. t.la(h + i.toString());
  3400. }, s.prototype.Pl = function (t) {
  3401. t.n(this.b.Pl / 1000);
  3402. }, s.prototype.jk = function (t) {
  3403. t.n(this.b.jk);
  3404. }, s.prototype.Nu = function (t, i, s, h) {
  3405. i = this.b.wp(i), t.n(i ? i.ub(s, h, !0) : 0);
  3406. }, s.prototype.Ou = function (t, i, s, h) {
  3407. i = this.b.wp(i), t.n(i ? i.ub(s, h, !1) : 0);
  3408. }, s.prototype.Uw = function (t) {
  3409. t.n(1 / 0);
  3410. }, s.prototype.Px = function (t) {
  3411. t.H(this.b.Wa);
  3412. }, s.prototype.Ox = function (t) {
  3413. t.H(this.b.Va);
  3414. }, h.g = new s(), h.jy = function () {
  3415. var t, i, s, h, e, n, o = this.b.Ea();
  3416. for (t = 0, s = this.fc.length; t < s; t++) {
  3417. if (-1 === (h = this.fc[t]).time) {
  3418. if (!h.En)
  3419. continue;
  3420. } else if (h.time > this.b.Bb.Z)
  3421. continue;
  3422. for (i in (o.Ia = h.Yf, o.Wb = h.Wb, o.Ra = 0, h.Sb))
  3423. h.Sb.hasOwnProperty(i) && (e = this.b.p[parseInt(i, 10)].N(), n = h.Sb[i], e.R = n.Jk, Da(e.d, n.Xd), A((e = n).Xd), c.push(e));
  3424. h.Yf.iy(), this.b.Nl(h.V), h.Xl = !0;
  3425. }
  3426. for (i = t = 0, s = this.fc.length; t < s; t++)
  3427. h = this.fc[t], (this.fc[i] = h).Xl ? (Ya(h.Sb), A(h.V), r.push(h)) : i++;
  3428. Ba(this.fc, i);
  3429. };
  3430. }(), function () {
  3431. rb = function (t, i) {
  3432. var s = t[1], h = t[3], e = t[4], n = t[5], o = t[6], r = t[7], a = t[8];
  3433. i.c || (i.c = {}), i.e || (i.e = {}), i.g || (i.g = {});
  3434. var c = i.c, p = i.e, u = i.g;
  3435. h && (c.Ni = function (t, i) {
  3436. return ic(this.x, t, i);
  3437. }, c.fo = function (t, i) {
  3438. return ic(this.y, t, i);
  3439. }, c.Zy = function () {
  3440. var t = this.j;
  3441. this.Aa();
  3442. var i = this.Qa;
  3443. return !(i.right < t.ma || i.bottom < t.na || i.left > t.wa || i.top > t.ua);
  3444. }, c.ko = function () {
  3445. this.Aa();
  3446. var t = this.Qa, i = this.b.ba;
  3447. return t.right < 0 || t.bottom < 0 || t.left > i.width || t.top > i.height;
  3448. }, c.ez = function (t, i, s) {
  3449. var h = this.N(), e = h.Zb();
  3450. if (!e.length)
  3451. return !1;
  3452. var n, o, r, a = e[0], c = a, p = Va(a.x, a.y, i, s);
  3453. for (n = 1, o = e.length; n < o; n++)
  3454. a = e[n], r = Va(a.x, a.y, i, s), (0 === t && r < p || 1 === t && p < r) && (p = r, c = a);
  3455. return h.Fg(c), !0;
  3456. }, p.Pf = function (t) {
  3457. this.x !== t && (this.x = t, this.za());
  3458. }, p.$i = function (t) {
  3459. this.y !== t && (this.y = t, this.za());
  3460. }, p.fu = function (t, i) {
  3461. this.x === t && this.y === i || (this.x = t, this.y = i, this.za());
  3462. }, p.Eo = function (t, i) {
  3463. var s, h = t.ww(this);
  3464. h && (h = h.nf ? (s = h.nf(i, !0), h.nf(i, !1)) : (s = h.x, h.y), this.x === s && this.y === h || (this.x = s, this.y = h, this.za()));
  3465. }, p.bz = function (t) {
  3466. 0 !== t && (this.x += Math.cos(this.m) * t, this.y += Math.sin(this.m) * t, this.za());
  3467. }, p.az = function (t, i) {
  3468. 0 !== i && (this.x += Math.cos(G(t)) * i, this.y += Math.sin(G(t)) * i, this.za());
  3469. }, u.aj = function (t) {
  3470. t.n(this.x);
  3471. }, u.Al = function (t) {
  3472. t.n(this.y);
  3473. }, u.De = function (t) {
  3474. t.n(this.b.Rj(this));
  3475. }), e && (c.Wy = function (t, i) {
  3476. return ic(this.width, t, i);
  3477. }, c.ss = function (t, i) {
  3478. return ic(this.height, t, i);
  3479. }, p.Zi = function (t) {
  3480. this.width !== t && (this.width = t, this.za());
  3481. }, p.Xi = function (t) {
  3482. this.height !== t && (this.height = t, this.za());
  3483. }, p.$g = function (t, i) {
  3484. this.width === t && this.height === i || (this.width = t, this.height = i, this.za());
  3485. }, u.bh = function (t) {
  3486. t.n(this.width);
  3487. }, u.Oi = function (t) {
  3488. t.n(this.height);
  3489. }, u.Zn = function (t) {
  3490. this.Aa(), t.n(this.Qa.left);
  3491. }, u.ao = function (t) {
  3492. this.Aa(), t.n(this.Qa.top);
  3493. }, u.$n = function (t) {
  3494. this.Aa(), t.n(this.Qa.right);
  3495. }, u.Yn = function (t) {
  3496. this.Aa(), t.n(this.Qa.bottom);
  3497. }), n && (c.kl = function (t, i) {
  3498. return Ra(this.m, G(i)) <= G(t);
  3499. }, c.Ps = function (t) {
  3500. return Ta(this.m, G(t));
  3501. }, c.Ns = function (t, i) {
  3502. var s = Oa(t), h = Oa(i), e = Ma(this.m);
  3503. return Ta(h, s) ? Ta(e, s) && !Ta(e, h) : !(!Ta(e, s) && Ta(e, h));
  3504. }, p.Co = function (t) {
  3505. t = G(La(t)), isNaN(t) || this.m === t || (this.m = t, this.za());
  3506. }, p.hz = function (t) {
  3507. 0 === t || isNaN(t) || (this.m += G(t), this.m = Ma(this.m), this.za());
  3508. }, p.iz = function (t) {
  3509. 0 === t || isNaN(t) || (this.m -= G(t), this.m = Ma(this.m), this.za());
  3510. }, p.jz = function (t, i) {
  3511. var s = Sa(this.m, G(i), G(t));
  3512. isNaN(s) || this.m === s || (this.m = s, this.za());
  3513. }, p.kz = function (t, i, s) {
  3514. t = Sa(this.m, Math.atan2(s - this.y, i - this.x), G(t)), isNaN(t) || this.m === t || (this.m = t, this.za());
  3515. }, p.lz = function (t, i) {
  3516. var s = Math.atan2(i - this.y, t - this.x);
  3517. isNaN(s) || this.m === s || (this.m = s, this.za());
  3518. }, u.ls = function (t) {
  3519. t.n(Na(this.m));
  3520. }), s || (c.Mi = function (t, i, s) {
  3521. return ic(this.hb[t], i, s);
  3522. }, c.ml = function (t) {
  3523. return this.hb[t];
  3524. }, c.fz = function (t, i) {
  3525. var s = this.N(), h = s.Zb();
  3526. if (!h.length)
  3527. return !1;
  3528. var e, n, o, r = h[0], a = r, c = r.hb[i];
  3529. for (e = 1, n = h.length; e < n; e++)
  3530. o = (r = h[e]).hb[i], (0 === t && o < c || 1 === t && c < o) && (c = o, a = r);
  3531. return s.Fg(a), !0;
  3532. }, c.Bo = function (t) {
  3533. var i, s, h, e, n;
  3534. if (this.b.Qj().fg) {
  3535. if ((n = this.N()).R)
  3536. for (n.R = !1, A(n.d), A(n.I), i = 0, s = (h = this.d).length; i < s; i++)
  3537. (e = h[i]).uid === t ? n.I.push(e) : n.d.push(e);
  3538. else {
  3539. for (h = i = 0, s = n.d.length; i < s; i++)
  3540. e = n.d[i], (n.d[h] = e).uid === t ? n.I.push(e) : h++;
  3541. Ba(n.d, h);
  3542. }
  3543. return this.Gc(), !!n.d.length;
  3544. }
  3545. if (!(e = this.b.Uj(t)))
  3546. return !1;
  3547. if (!(n = this.N()).R && -1 === n.d.indexOf(e))
  3548. return !1;
  3549. if (this.B) {
  3550. for (i = 0, s = (t = e.type.Da).length; i < s; i++)
  3551. if (t[i] === this)
  3552. return n.Fg(e), this.Gc(), !0;
  3553. } else if (e.type === this)
  3554. return n.Fg(e), this.Gc(), !0;
  3555. return !1;
  3556. }, c.Jd = function () {
  3557. return !0;
  3558. }, c.po = function () {
  3559. return !0;
  3560. }, p.Yi = function (t, i) {
  3561. var s = this.hb;
  3562. ja(s[t]) ? s[t] = ja(i) ? i : parseFloat(i) : z(s[t]) && (s[t] = z(i) ? i : i.toString());
  3563. }, p.jl = function (t, i) {
  3564. var s = this.hb;
  3565. ja(s[t]) ? s[t] = ja(i) ? s[t] + i : s[t] + parseFloat(i) : z(s[t]) && (s[t] = z(i) ? s[t] + i : s[t] + i.toString());
  3566. }, p.zl = function (t, i) {
  3567. var s = this.hb;
  3568. ja(s[t]) && (s[t] = ja(i) ? s[t] - i : s[t] - parseFloat(i));
  3569. }, p.ul = function (t, i) {
  3570. this.hb[t] = i ? 1 : 0;
  3571. }, p.mz = function (t) {
  3572. this.hb[t] = 1 - this.hb[t];
  3573. }, p.Yg = function () {
  3574. this.b.Xe(this);
  3575. }, p.ct || (p.ct = function (t) {
  3576. var i, s;
  3577. try {
  3578. i = JSON.parse(t);
  3579. } catch (t) {
  3580. return;
  3581. }
  3582. if (this.b.hk(this, i, !0), this.Kd && this.Kd(), this.L)
  3583. for (t = 0, i = this.L.length; t < i; ++t)
  3584. (s = this.L[t]).Kd && s.Kd();
  3585. }), u.zs = function (t) {
  3586. var i, s, h, e = t.Df.d.length;
  3587. for (i = 0, s = this.b.cd.length; i < s; i++)
  3588. h = this.b.cd[i], t.Df.B ? 0 <= h.type.Da.indexOf(t.Df) && e++ : h.type === t.Df && e++;
  3589. t.H(e);
  3590. }, u.Kt = function (t) {
  3591. t.H(t.Df.N().Zb().length);
  3592. }, u.Go = function (t) {
  3593. t.H(this.uid);
  3594. }, u.Xy = function (t) {
  3595. t.H(this.uh());
  3596. }, u.ll || (u.ll = function (t) {
  3597. t.la(JSON.stringify(this.b.An(this, !0)));
  3598. })), o && (c.lo = function () {
  3599. return this.visible;
  3600. }, p.ah = function (t) {
  3601. !t != !this.visible && (this.visible = !!t, this.b.fa = !0);
  3602. }, c.eo = function (t, i) {
  3603. return ic(lb(100 * this.opacity), t, i);
  3604. }, p.Do = function (t) {
  3605. (t /= 100) < 0 ? t = 0 : 1 < t && (t = 1), t !== this.opacity && (this.opacity = t, this.b.fa = !0);
  3606. }, u.Opacity = function (t) {
  3607. t.n(lb(100 * this.opacity));
  3608. }), r && (c.Yy = function (t) {
  3609. return !!t && this.j === t;
  3610. }, c.gz = function (t) {
  3611. var i = this.N(), s = i.Zb();
  3612. if (!s.length)
  3613. return !1;
  3614. var h, e, n = s[0], o = n;
  3615. for (h = 1, e = s.length; h < e; h++)
  3616. n = s[h], 0 === t ? (n.j.index > o.j.index || n.j.index === o.j.index && n.wd() > o.wd()) && (o = n) : (n.j.index < o.j.index || n.j.index === o.j.index && n.wd() < o.wd()) && (o = n);
  3617. return i.Fg(o), !0;
  3618. }, p.ft = function () {
  3619. var t = this.j, i = t.d;
  3620. i.length && i[i.length - 1] === this || (t.Gg(this, !1), t.fh(this, !1), this.b.fa = !0);
  3621. }, p.dt = function () {
  3622. var t = this.j, i = t.d;
  3623. i.length && i[0] === this || (t.Gg(this, !1), t.Yx(this), this.b.fa = !0);
  3624. }, p.et = function (t) {
  3625. t && t != this.j && (this.j.Gg(this, !0), (this.j = t).fh(this, !0), this.b.fa = !0);
  3626. }, p.Ho = function (t, i) {
  3627. var s = 0 === t;
  3628. if (i) {
  3629. var h = i.qw(this);
  3630. h && h.uid !== this.uid && (this.j.index !== h.j.index && (this.j.Gg(this, !0), this.j = h.j, h.j.fh(this, !0)), this.j.zx(this, h, s), this.b.fa = !0);
  3631. }
  3632. }, u.bt = function (t) {
  3633. t.H(this.j.Jq);
  3634. }, u.$y = function (t) {
  3635. t.la(this.j.name);
  3636. }, u.nz = function (t) {
  3637. t.H(this.wd());
  3638. }), a && (p.au = function (t, i) {
  3639. if (this.b.k) {
  3640. var s = this.type.lm(i);
  3641. if (!(s < 0)) {
  3642. var h = 1 === t;
  3643. this.re[s] !== h && (this.re[s] = h, this.nd(), this.b.fa = !0);
  3644. }
  3645. }
  3646. }, p.wl = function (t, i, s) {
  3647. if (this.b.k) {
  3648. var h = this.type.lm(t);
  3649. h < 0 || (t = this.type.M[h], h = this.Ja[h], (i = Math.floor(i)) < 0 || i >= h.length || (1 === this.b.k.Aw(t.Za, i) && (s /= 100), h[i] !== s && (h[i] = s, t.nc && (this.b.fa = !0))));
  3650. }
  3651. });
  3652. }, Ob = function () {
  3653. this.Kl = this.Fl = !0, this.type.ej = !0, this.b.fa = !0;
  3654. var t, i, s = this.Gl;
  3655. for (t = 0, i = s.length; t < i; ++t)
  3656. s[t](this);
  3657. this.j.Ec && this.Aa();
  3658. }, Pb = function (t) {
  3659. t && this.Gl.push(t);
  3660. }, Rb = function () {
  3661. if (this.Fl) {
  3662. var t = this.Qa, i = this.Xb;
  3663. t.set(this.x, this.y, this.x + this.width, this.y + this.height), t.offset(-this.Nb * this.width, -this.Ob * this.height), this.m ? (t.offset(-this.x, -this.y), i.Br(t, this.m), i.offset(this.x, this.y), i.To(t)) : i.ni(t), t.normalize(), this.Fl = !1, this.Ny();
  3664. }
  3665. };
  3666. var s = new wa(0, 0, 0, 0);
  3667. Sb = function () {
  3668. if (this.j.Ec) {
  3669. var t = this.j.Eb, i = this.Qa;
  3670. s.set(t.Ub(i.left), t.Vb(i.top), t.Ub(i.right), t.Vb(i.bottom)), this.ac.oh(s) || (this.ac.right < this.ac.left ? t.update(this, null, s) : t.update(this, this.ac, s), this.ac.Vf(s), this.j.ld = !0);
  3671. }
  3672. }, Tb = function () {
  3673. if (this.Kl && this.$e) {
  3674. this.Aa();
  3675. var t = this.type.rj, i = this.Qa;
  3676. s.set(t.Ub(i.left), t.Vb(i.top), t.Ub(i.right), t.Vb(i.bottom)), this.ze.oh(s) || (this.ze.right < this.ze.left ? t.update(this, null, s) : t.update(this, this.ze, s), this.ze.Vf(s), this.Kl = !1);
  3677. }
  3678. }, Qb = function (t, i) {
  3679. return !(!this.Qa.Ib(t, i) || !this.Xb.Ib(t, i)) && (this.Sg ? this.Jz(t, i) : !(this.ga && !this.ga.jg()) || (this.ga.Sf(this.width, this.height, this.m), this.ga.Ib(t - this.x, i - this.y)));
  3680. }, Kb = function () {
  3681. return this.type.cl(), this.rf;
  3682. }, Ub = function () {
  3683. return this.j.Tn(), this.pd;
  3684. }, Vb = function () {
  3685. A(this.ea);
  3686. var t, i, s, h = !0;
  3687. for (t = 0, i = this.re.length; t < i; t++)
  3688. this.re[t] && (s = this.type.M[t], this.ea.push(s), s.Rc || (h = !1));
  3689. this.as = !!this.ea.length, this.ie = h;
  3690. }, Lb = function () {
  3691. return 'Inst' + this.ir;
  3692. }, ub = function (t) {
  3693. var i, s, h;
  3694. if (t && t.Ab && t.type != this)
  3695. for (i = 0, s = t.siblings.length; i < s; i++)
  3696. if ((h = t.siblings[i]).type == this)
  3697. return h;
  3698. return (t = this.N().Zb()).length ? t[0] : null;
  3699. }, vb = function (t) {
  3700. var i = this.N().Zb();
  3701. return i.length ? i[t.uh() % i.length] : null;
  3702. }, tb = function () {
  3703. if (this.Ng && !this.B) {
  3704. var t, i;
  3705. for (t = 0, i = this.d.length; t < i; t++)
  3706. this.d[t].rf = t;
  3707. var s = t, h = this.b.cd;
  3708. for (t = 0, i = h.length; t < i; ++t)
  3709. h[t].type === this && (h[t].rf = s++);
  3710. this.Ng = !1;
  3711. }
  3712. }, Ib = function (t) {
  3713. if (t < this.d.length)
  3714. return this.d[t];
  3715. t -= this.d.length;
  3716. var i, s, h = this.b.cd;
  3717. for (i = 0, s = h.length; i < s; ++i)
  3718. if (h[i].type === this) {
  3719. if (0 === t)
  3720. return h[i];
  3721. --t;
  3722. }
  3723. return null;
  3724. }, wb = function () {
  3725. return this.ke[this.sd];
  3726. }, xb = function () {
  3727. this.sd++, this.sd === this.ke.length ? this.ke.push(new sb(this)) : (this.ke[this.sd].R = !0, A(this.ke[this.sd].I));
  3728. }, yb = function () {
  3729. this.sd++, this.sd === this.ke.length && this.ke.push(new sb(this));
  3730. var t = this.ke[this.sd], i = this.ke[this.sd - 1];
  3731. i.R ? t.R = !0 : (t.R = !1, Da(t.d, i.d)), A(t.I);
  3732. }, zb = function () {
  3733. this.sd--;
  3734. }, Ab = function (t) {
  3735. var i, s, h, e, n, o = 0;
  3736. if (!this.B)
  3737. for (i = 0, s = this.Da.length; i < s; i++)
  3738. for (h = 0, e = (n = this.Da[i]).Ha.length; h < e; h++) {
  3739. if (t === n.Ha[h].name)
  3740. return this.ja.lastBehIndex = o, n.Ha[h];
  3741. o++;
  3742. }
  3743. for (i = 0, s = this.Ha.length; i < s; i++) {
  3744. if (t === this.Ha[i].name)
  3745. return this.ja.lastBehIndex = o, this.Ha[i];
  3746. o++;
  3747. }
  3748. return null;
  3749. }, Bb = function (t) {
  3750. return this.Pj(t) ? this.ja.lastBehIndex : -1;
  3751. }, Cb = function (t) {
  3752. var i, s;
  3753. for (i = 0, s = this.M.length; i < s; i++)
  3754. if (this.M[i].name === t)
  3755. return i;
  3756. return -1;
  3757. }, Hb = function () {
  3758. if (this.Ab && !this.B) {
  3759. var t, i, s, h, e, n, o;
  3760. this.cl();
  3761. var r = (n = this.N()).R, a = (t = this.b.Ea()) && t.Ia && t.Ia.kc;
  3762. for (t = 0, i = this.hc.length; t < i; t++)
  3763. if ((e = this.hc[t]) !== this && (e.cl(), !((o = e.N()).R = r))) {
  3764. for (A(o.d), s = 0, h = n.d.length; s < h; ++s)
  3765. o.d[s] = e.mm(n.d[s].rf);
  3766. if (a)
  3767. for (A(o.I), s = 0, h = n.I.length; s < h; ++s)
  3768. o.I[s] = e.mm(n.I[s].rf);
  3769. }
  3770. }
  3771. }, Jb = function () {
  3772. return 'Type' + this.Y;
  3773. }, ic = function (t, i, s) {
  3774. if (void 0 === t || void 0 === s)
  3775. return !1;
  3776. switch (i) {
  3777. case 0:
  3778. return t === s;
  3779. case 1:
  3780. return t !== s;
  3781. case 2:
  3782. return t < s;
  3783. case 3:
  3784. return t <= s;
  3785. case 4:
  3786. return s < t;
  3787. case 5:
  3788. return s <= t;
  3789. default:
  3790. return !1;
  3791. }
  3792. };
  3793. }();
  3794. var qc = {
  3795. tint: {
  3796. src: 'varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = front * vec4(red, green, blue, 1.0);\n}',
  3797. Ej: 0,
  3798. Fj: 0,
  3799. Sl: !1,
  3800. Rc: !0,
  3801. Cl: !1,
  3802. O: [["red",0,1],["green",0,1],["blue",0,1]]
  3803. }
  3804. };
  3805. function X(t) {
  3806. this.b = t;
  3807. }
  3808. function tc(t) {
  3809. this.b = t;
  3810. }
  3811. function uc(t) {
  3812. this.b = t;
  3813. }
  3814. function vc(t) {
  3815. this.b = t;
  3816. }
  3817. function wc(t) {
  3818. this.b = t;
  3819. }
  3820. function sc(t) {
  3821. this.b = t;
  3822. }
  3823. function xc(t) {
  3824. this.b = t;
  3825. }
  3826. function Y(t) {
  3827. this.b = t;
  3828. }
  3829. function V(t) {
  3830. this.b = t;
  3831. }
  3832. function yc(t) {
  3833. this.b = t;
  3834. }
  3835. function zc(t) {
  3836. this.b = t;
  3837. }
  3838. function Z(t) {
  3839. this.b = t;
  3840. }
  3841. function Ac(t) {
  3842. this.b = t;
  3843. }
  3844. function Bc(t) {
  3845. this.b = t;
  3846. }
  3847. function Cc(t) {
  3848. this.b = t;
  3849. }
  3850. function Ic(t) {
  3851. this.b = t;
  3852. }
  3853. function Jc(t) {
  3854. this.b = t;
  3855. }
  3856. function rc() {
  3857. return [Y,X,wc,tc,uc,Ac,sc,vc,xc,Bc,V,Z,yc,zc,Jc,Ic,Cc,T.prototype.c.to,tc.prototype.e.$g,tc.prototype.e.Ot,sc.prototype.e.CallFunction,T.prototype.e.ku,T.prototype.e.cu,V.prototype.e.Xt,yc.prototype.c.Mi,yc.prototype.e.iu,T.prototype.g.Oy,T.prototype.c.ws,uc.prototype.e.Nt,uc.prototype.e.Play,V.prototype.e.Yi,T.prototype.e.As,yc.prototype.e.Yi,yc.prototype.e.Zi,yc.prototype.e.Xi,sc.prototype.c.Ui,yc.prototype.e.Yg,T.prototype.c.Ds,sc.prototype.g.Ft,T.prototype.c.qs,wc.prototype.g.Zs,tc.prototype.g.bh,T.prototype.c.Cs,T.prototype.c.ho,V.prototype.c.Mi,T.prototype.e.vu,V.prototype.e.Yg,V.prototype.e.Pf,wc.prototype.g.Hs,Cc.prototype.e.xl,Cc.prototype.e.hu,V.prototype.g.zs,V.prototype.e.jl,T.prototype.g.Yo,uc.prototype.e.du,uc.prototype.e.Fo,Y.prototype.e.Yg,V.prototype.e.ah,Y.prototype.e.Yi,uc.prototype.c.Xs,Y.prototype.g.Zn,Y.prototype.g.ao,Y.prototype.g.$n,Y.prototype.g.Yn,uc.prototype.e.pu,T.prototype.e.Is,uc.prototype.e.Lt,sc.prototype.c.ts,uc.prototype.e.eu,T.prototype.g.float,T.prototype.g.int,Y.prototype.e.ah,T.prototype.c.Qs,yc.prototype.e.$g,yc.prototype.e.yl,T.prototype.c.Gs,V.prototype.g.aj,V.prototype.g.Al,V.prototype.e.ul,tc.prototype.c.Ni,V.prototype.e.ft,T.prototype.g.floor,T.prototype.g.random,V.prototype.e.qu,T.prototype.g.cos,T.prototype.g.De,V.prototype.c.Ni,yc.prototype.e.wl,V.prototype.e.ou,V.prototype.e.yl,V.prototype.e.$i,V.prototype.e.Zi,V.prototype.g.bh,V.prototype.e.Do,V.prototype.g.Opacity,V.prototype.c.eo,V.prototype.c.mo,yc.prototype.e.ul,tc.prototype.c.us,T.prototype.c.Fs,T.prototype.g.min,T.prototype.g.ux,tc.prototype.g.ms,tc.prototype.c.xs,T.prototype.e.ks,T.prototype.g.Ax,tc.prototype.e.Bs,tc.prototype.g.ns,T.prototype.c.Gt,V.prototype.e.Eo,Y.prototype.e.Pf,Y.prototype.e.$i,Y.prototype.e.Zi,Y.prototype.e.ul,Cc.prototype.e.Wt,Y.prototype.e.dt,Y.prototype.g.bh,Y.prototype.e.Ho,T.prototype.g.sin,Y.prototype.g.aj,Y.prototype.g.Al,Y.prototype.c.ml,Y.prototype.c.Mi,T.prototype.c.Ht,V.prototype.e.Co,V.prototype.e.wl,V.prototype.g.ls,sc.prototype.e.gu,V.prototype.c.Vs,V.prototype.c.kl,Y.prototype.c.fo,Cc.prototype.g.yb,V.prototype.g.Yn,sc.prototype.g.bo,Cc.prototype.g.xb,Cc.prototype.c.ol,V.prototype.c.ml,T.prototype.g.abs,T.prototype.e.su,Cc.prototype.c.vs,Cc.prototype.e.ru,Cc.prototype.c.pl,Y.prototype.e.Xi,T.prototype.g.Rx,Y.prototype.c.Ni,T.prototype.g.ox,T.prototype.g.nx,Y.prototype.g.Oi,Y.prototype.e.$g,Y.prototype.g.Go,Y.prototype.c.Bo,Y.prototype.e.zl,T.prototype.c.kl,T.prototype.g.m,Y.prototype.c.ko,zc.prototype.e.Ho,zc.prototype.e.Yi,V.prototype.c.fo,V.prototype.g.jo,V.prototype.e.Xi,V.prototype.g.io,V.prototype.e.zl,zc.prototype.e.ah,V.prototype.c.ss,V.prototype.c.ko,zc.prototype.c.lo,zc.prototype.e.jl,zc.prototype.c.Mi,V.prototype.g.Oi,zc.prototype.e.Do,zc.prototype.c.eo,zc.prototype.e.Xi,zc.prototype.e.Pf,zc.prototype.e.$i,zc.prototype.e.Co,zc.prototype.e.Zi,zc.prototype.g.Opacity,V.prototype.g.$n,V.prototype.g.Zn,V.prototype.c.Us,V.prototype.g.ao,T.prototype.c.It,zc.prototype.e.fu,zc.prototype.e.$g,V.prototype.c.Ms,V.prototype.e.Yt,V.prototype.g.Ks,V.prototype.g.Ls,V.prototype.c.lo,V.prototype.g.bt,T.prototype.g.time,Y.prototype.c.Jd,Y.prototype.e.au,Y.prototype.e.wl,V.prototype.c.Bo,V.prototype.g.Go,V.prototype.g.Kt,Cc.prototype.c.Ts,V.prototype.e.et,zc.prototype.e.Yg,V.prototype.e.mu,Cc.prototype.e.hs,zc.prototype.e.Eo,zc.prototype.g.Oi,zc.prototype.g.bh,T.prototype.g.ceil,zc.prototype.g.aj,T.prototype.g.Vy,T.prototype.g.Px,T.prototype.g.Ox,T.prototype.e.Tt,T.prototype.e.Ut,T.prototype.e.Vt,T.prototype.c.so,T.prototype.c.Ws,Bc.prototype.c.rs,Bc.prototype.c.Os,xc.prototype.c.Rs,T.prototype.c.Ss,Z.prototype.c.tl,vc.prototype.e.St,Z.prototype.g.es,Z.prototype.g.uu,Z.prototype.g.gs,T.prototype.g.Nu,T.prototype.g.Ou,T.prototype.c.Jt,Z.prototype.c.sl,Z.prototype.c.rl,wc.prototype.e.co,wc.prototype.e.js,T.prototype.g.Ky,T.prototype.g.Jy,T.prototype.g.left,T.prototype.g.yx,T.prototype.c.wu,T.prototype.c.Qt,wc.prototype.c.Js,T.prototype.e.ju,yc.prototype.c.Jd,yc.prototype.e.$t,yc.prototype.e.jl,T.prototype.g.qx,yc.prototype.e.zl,yc.prototype.c.ml,yc.prototype.c.po,yc.prototype.e.Pf,yc.prototype.e.$i,V.prototype.c.Jd,tc.prototype.c.nl,tc.prototype.e.lu,wc.prototype.c.nl,X.prototype.e.Rt,X.prototype.c.Zg,X.prototype.g.$s,yc.prototype.e.ah,vc.prototype.c.Ao,vc.prototype.e.ys,vc.prototype.c.Wi,yc.prototype.e.bu,Ac.prototype.e.Yg,Ac.prototype.c.oo,Ac.prototype.g.Es,vc.prototype.g.Pt,tc.prototype.e.Pf,T.prototype.g.Uw,T.prototype.g.Xu,T.prototype.g.Rg,tc.prototype.e.Mt];
  3858. }
  3859. !function () {
  3860. function t() {
  3861. }
  3862. function i() {
  3863. }
  3864. function s() {
  3865. }
  3866. var r = !1, h = null, a = null, c = '', e = X.prototype;
  3867. e.W = function (t) {
  3868. this.X = t, this.b = t.b;
  3869. }, e.W.prototype.D = function () {
  3870. }, e.S = function (t) {
  3871. this.type = t, this.b = t.b, this.rc = this.zd = '', this.$b = 0, this.timeout = -1, (r = this.b.Hh) && (h = require('path'), a = require('fs'), c = h.dirname((window.process || nw.process).execPath) + '\\');
  3872. };
  3873. var n = e.S.prototype, o = null;
  3874. window.C2_AJAX_DCSide = function (t, i, s) {
  3875. o && ('success' === t ? (o.rc = i, o.zd = s, o.b.trigger(X.prototype.c.Pi, o), o.b.trigger(X.prototype.c.Zg, o)) : 'error' === t ? (o.rc = i, o.b.trigger(X.prototype.c.Qi, o), o.b.trigger(X.prototype.c.Ti, o)) : 'progress' === t && (o.$b = s, o.rc = i, o.b.trigger(X.prototype.c.yo, o)));
  3876. }, n.D = function () {
  3877. o = this;
  3878. }, n.Fb = function () {
  3879. return { lastData: this.zd };
  3880. }, n.Qb = function (t) {
  3881. this.zd = t.lastData, this.rc = '', this.$b = 0;
  3882. };
  3883. var p = {}, u = '';
  3884. n.dv = function (s, i) {
  3885. if (this.b.pb)
  3886. AppMobi.webview.execute('C2_AJAX_WebSide("' + s + '", "' + i + '", "GET", null);');
  3887. else {
  3888. var h = this, t = null, e = function () {
  3889. h.rc = s, h.b.trigger(X.prototype.c.Qi, h), h.b.trigger(X.prototype.c.Ti, h);
  3890. }, n = function () {
  3891. if (r) {
  3892. var t = c + i;
  3893. a.existsSync(t) ? a.readFile(t, { encoding: 'utf8' }, function (t, i) {
  3894. t ? e() : (h.rc = s, h.zd = i.replace(/\r\n/g, '\n'), h.b.trigger(X.prototype.c.Pi, h), h.b.trigger(X.prototype.c.Zg, h));
  3895. }) : e();
  3896. } else
  3897. e();
  3898. };
  3899. try {
  3900. (t = this.b.Ke ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest()).onreadystatechange = function () {
  3901. 4 === t.readyState && (h.rc = s, t.responseText ? h.zd = t.responseText.replace(/\r\n/g, '\n') : h.zd = '', 400 <= t.status ? (h.b.trigger(X.prototype.c.Qi, h), h.b.trigger(X.prototype.c.Ti, h)) : r && !h.zd.length || !r && 0 === t.status && !h.zd.length || (h.b.trigger(X.prototype.c.Pi, h), h.b.trigger(X.prototype.c.Zg, h)));
  3902. }, this.b.Ke || (t.onerror = n, t.ontimeout = n, t.onabort = n, t.onprogress = function (t) {
  3903. t.lengthComputable && (h.$b = t.loaded / t.total, h.rc = s, h.b.trigger(X.prototype.c.yo, h));
  3904. }), t.open('GET', i), !this.b.Ke && 0 <= this.timeout && void 0 !== t.timeout && (t.timeout = this.timeout);
  3905. try {
  3906. t.responseType = 'text';
  3907. } catch (t) {
  3908. }
  3909. if (t.setRequestHeader) {
  3910. for (var o in p)
  3911. if (p.hasOwnProperty(o))
  3912. try {
  3913. t.setRequestHeader(o, p[o]);
  3914. } catch (t) {
  3915. }
  3916. p = {};
  3917. }
  3918. if (u && t.overrideMimeType) {
  3919. try {
  3920. t.overrideMimeType(u);
  3921. } catch (t) {
  3922. }
  3923. u = '';
  3924. }
  3925. t.send();
  3926. } catch (t) {
  3927. n();
  3928. }
  3929. }
  3930. }, t.prototype.Zg = function (t) {
  3931. return mb(t, this.rc);
  3932. }, t.prototype.Pi = function () {
  3933. return !0;
  3934. }, t.prototype.Ti = function (t) {
  3935. return mb(t, this.rc);
  3936. }, t.prototype.Qi = function () {
  3937. return !0;
  3938. }, t.prototype.yo = function (t) {
  3939. return mb(t, this.rc);
  3940. }, e.c = new t(), i.prototype.Rt = function (i, t) {
  3941. var s = this;
  3942. this.b.Jh && !this.b.Lp(t) ? this.b.lp(t, function (t) {
  3943. s.rc = i, s.zd = t.replace(/\r\n/g, '\n'), s.b.trigger(X.prototype.c.Pi, s), s.b.trigger(X.prototype.c.Zg, s);
  3944. }, function () {
  3945. s.rc = i, s.b.trigger(X.prototype.c.Qi, s), s.b.trigger(X.prototype.c.Ti, s);
  3946. }) : this.dv(i, t);
  3947. }, e.e = new i(), s.prototype.$s = function (t) {
  3948. t.la(this.zd);
  3949. }, e.g = new s();
  3950. }(), function () {
  3951. function r() {
  3952. return o.length ? o.pop() : [];
  3953. }
  3954. function n(t) {
  3955. var i, s;
  3956. for (i = 0, s = t.length; i < s; i++)
  3957. Array.isArray(t[i]) && n(t[i]);
  3958. A(t), o.push(t);
  3959. }
  3960. function t() {
  3961. }
  3962. function i() {
  3963. }
  3964. function s() {
  3965. }
  3966. var h = tc.prototype;
  3967. h.W = function (t) {
  3968. this.X = t, this.b = t.b;
  3969. }, h.W.prototype.D = function () {
  3970. }, h.S = function (t) {
  3971. this.type = t, this.b = t.b;
  3972. };
  3973. var e = h.S.prototype, o = [];
  3974. Array.isArray || (Array.isArray = function (t) {
  3975. return '[object Array]' === Object.prototype.toString.call(t);
  3976. }), e.D = function () {
  3977. this.ra = this.A[0], this.Ca = this.A[1], this.Ma = this.A[2], this.Bc || (this.oc = r());
  3978. var t, i, s, h = this.oc;
  3979. for (h.length = this.ra, t = 0; t < this.ra; t++)
  3980. for (h[t] || (h[t] = r()), h[t].length = this.Ca, i = 0; i < this.Ca; i++)
  3981. for (h[t][i] || (h[t][i] = r()), h[t][i].length = this.Ma, s = 0; s < this.Ma; s++)
  3982. h[t][i][s] = 0;
  3983. this.op = [], this.pp = [], this.qp = [], this.Wd = -1;
  3984. }, e.Ef = function () {
  3985. var t;
  3986. for (t = 0; t < this.ra; t++)
  3987. n(this.oc[t]);
  3988. A(this.oc);
  3989. }, e.pc = function (t, i, s) {
  3990. return t = Math.floor(t), i = Math.floor(i), s = Math.floor(s), isNaN(t) || t < 0 || t > this.ra - 1 || isNaN(i) || i < 0 || i > this.Ca - 1 || isNaN(s) || s < 0 || s > this.Ma - 1 ? 0 : this.oc[t][i][s];
  3991. }, e.set = function (t, i, s, h) {
  3992. t = Math.floor(t), i = Math.floor(i), s = Math.floor(s), isNaN(t) || t < 0 || t > this.ra - 1 || isNaN(i) || i < 0 || i > this.Ca - 1 || isNaN(s) || s < 0 || s > this.Ma - 1 || (this.oc[t][i][s] = h);
  3993. }, e.lw = function () {
  3994. return JSON.stringify({
  3995. c2array: !0,
  3996. size: [this.ra,this.Ca,this.Ma],
  3997. data: this.oc
  3998. });
  3999. }, e.Fb = function () {
  4000. return {
  4001. size: [this.ra,this.Ca,this.Ma],
  4002. data: this.oc
  4003. };
  4004. }, e.Qb = function (t) {
  4005. var i = t.size;
  4006. this.ra = i[0], this.Ca = i[1], this.Ma = i[2], this.oc = t.data;
  4007. }, e.ge = function (t, i, s) {
  4008. if (t < 0 && (t = 0), i < 0 && (i = 0), s < 0 && (s = 0), this.ra !== t || this.Ca !== i || this.Ma !== s) {
  4009. this.ra = t, this.Ca = i, this.Ma = s;
  4010. var h, e, n = this.oc;
  4011. for (n.length = t, t = 0; t < this.ra; t++)
  4012. for (ha(n[t]) && (n[t] = r()), n[t].length = i, h = 0; h < this.Ca; h++)
  4013. for (ha(n[t][h]) && (n[t][h] = r()), n[t][h].length = s, e = 0; e < this.Ma; e++)
  4014. ha(n[t][h][e]) && (n[t][h][e] = 0);
  4015. }
  4016. }, e.Uu = function () {
  4017. return 0 <= this.Wd && this.Wd < this.op.length ? this.op[this.Wd] : 0;
  4018. }, e.wv = function () {
  4019. return 0 <= this.Wd && this.Wd < this.pp.length ? this.pp[this.Wd] : 0;
  4020. }, e.rz = function () {
  4021. return 0 <= this.Wd && this.Wd < this.qp.length ? this.qp[this.Wd] : 0;
  4022. }, t.prototype.Ni = function (t, i, s) {
  4023. return ic(this.pc(t, 0, 0), i, s);
  4024. }, t.prototype.xs = function (t, i, s, h) {
  4025. return ic(this.pc(t, i, 0), s, h);
  4026. }, e.El = function (t) {
  4027. this.b.Qe(t.V), t.ee(), this.b.jd(t.V);
  4028. }, t.prototype.nl = function () {
  4029. return 0 === this.ra || 0 === this.Ca || 0 === this.Ma;
  4030. }, t.prototype.us = function (t, i, s) {
  4031. var h = 0;
  4032. switch (t) {
  4033. case 0:
  4034. h = this.ra;
  4035. break;
  4036. case 1:
  4037. h = this.Ca;
  4038. break;
  4039. case 2:
  4040. h = this.Ma;
  4041. }
  4042. return ic(h, i, s);
  4043. }, h.c = new t(), i.prototype.co = function () {
  4044. var t, i, s;
  4045. for (t = 0; t < this.ra; t++)
  4046. for (i = 0; i < this.Ca; i++)
  4047. for (s = 0; s < this.Ma; s++)
  4048. this.oc[t][i][s] = 0;
  4049. }, i.prototype.$g = function (t, i, s) {
  4050. this.ge(t, i, s);
  4051. }, i.prototype.Pf = function (t, i) {
  4052. this.set(t, 0, 0, i);
  4053. }, i.prototype.lu = function (t, i, s) {
  4054. this.set(t, i, 0, s);
  4055. }, i.prototype.Ot = function (t, i, s) {
  4056. var h = 0, e = 0, n = 0, o = this.oc;
  4057. switch (s) {
  4058. case 0:
  4059. for (0 === t ? (h = o.length, o.push(r())) : (h = 0, o.unshift(r())), o[h].length = this.Ca; e < this.Ca; e++)
  4060. for (o[h][e] = r(), o[h][e].length = this.Ma, n = 0; n < this.Ma; n++)
  4061. o[h][e][n] = i;
  4062. this.ra++;
  4063. break;
  4064. case 1:
  4065. for (; h < this.ra; h++)
  4066. for (0 === t ? (e = o[h].length, o[h].push(r())) : (e = 0, o[h].unshift(r())), o[h][e].length = this.Ma, n = 0; n < this.Ma; n++)
  4067. o[h][e][n] = i;
  4068. this.Ca++;
  4069. break;
  4070. case 2:
  4071. for (; h < this.ra; h++)
  4072. for (e = 0; e < this.Ca; e++)
  4073. 0 === t ? o[h][e].push(i) : o[h][e].unshift(i);
  4074. this.Ma++;
  4075. }
  4076. }, i.prototype.Mt = function (t, i) {
  4077. var s = 0, h = 0, e = this.oc;
  4078. switch (i) {
  4079. case 0:
  4080. if (0 === this.ra)
  4081. break;
  4082. n(0 === t ? e.pop() : e.shift()), this.ra--;
  4083. break;
  4084. case 1:
  4085. if (0 === this.Ca)
  4086. break;
  4087. for (; s < this.ra; s++)
  4088. n(0 === t ? e[s].pop() : e[s].shift());
  4089. this.Ca--;
  4090. break;
  4091. case 2:
  4092. if (0 === this.Ma)
  4093. break;
  4094. for (; s < this.ra; s++)
  4095. for (h = 0; h < this.Ca; h++)
  4096. 0 === t ? e[s][h].pop() : e[s][h].shift();
  4097. this.Ma--;
  4098. }
  4099. }, i.prototype.Bs = function (t, i) {
  4100. var s = 0, h = 0;
  4101. t = Math.floor(t);
  4102. var e = this.oc;
  4103. if (!(t < 0))
  4104. switch (i) {
  4105. case 0:
  4106. if (t >= this.ra)
  4107. break;
  4108. n(e[t]), e.splice(t, 1), this.ra--;
  4109. break;
  4110. case 1:
  4111. if (t >= this.Ca)
  4112. break;
  4113. for (; s < this.ra; s++)
  4114. n(e[s][t]), e[s].splice(t, 1);
  4115. this.Ca--;
  4116. break;
  4117. case 2:
  4118. if (t >= this.Ma)
  4119. break;
  4120. for (; s < this.ra; s++)
  4121. for (h = 0; h < this.Ca; h++)
  4122. e[s][h].splice(t, 1);
  4123. this.Ma--;
  4124. }
  4125. }, h.e = new i(), s.prototype.ms = function (t, i, s, h) {
  4126. t.Kg(this.pc(i, s || 0, h || 0));
  4127. }, s.prototype.bh = function (t) {
  4128. t.H(this.ra);
  4129. }, s.prototype.Oi = function (t) {
  4130. t.H(this.Ca);
  4131. }, s.prototype.ns = function (t) {
  4132. t.Kg(this.pc(this.ra - 1, 0, 0));
  4133. }, s.prototype.ll = function (t) {
  4134. t.la(this.lw());
  4135. }, h.g = new s();
  4136. }(), function () {
  4137. function n(t) {
  4138. -1 === st.indexOf(t) && st.push(t);
  4139. }
  4140. function o(i) {
  4141. var t, s = i.i;
  4142. try {
  4143. t = s.play();
  4144. } catch (t) {
  4145. return void n(i);
  4146. }
  4147. t ? t.catch(function () {
  4148. n(i);
  4149. }) : it && !q.xc && n(i);
  4150. }
  4151. function t() {
  4152. var t, i, s, h;
  4153. et || V || !C || (function () {
  4154. if ('suspended' === C.state && C.resume && C.resume(), C.createBuffer) {
  4155. var t = C.createBuffer(1, 220, 22050), i = C.createBufferSource();
  4156. i.buffer = t, i.connect(C.destination), u(i);
  4157. }
  4158. }(), 'running' === C.state && (et = !0));
  4159. var e = st.slice(0);
  4160. if (A(st), !z)
  4161. for (t = 0, i = e.length; t < i; ++t)
  4162. (s = e[t]).ta || s.ic || (h = s.i.play()) && h.catch(function () {
  4163. n(s);
  4164. });
  4165. }
  4166. function r(t) {
  4167. return t = Math.pow(10, t / 20), isFinite(t) || (t = 0), t < 0 && (t = 0), 1 < t && (t = 1), t;
  4168. }
  4169. function e(t) {
  4170. return t < 0 && (t = 0), 1 < t && (t = 1), Math.log(t) / Math.log(10) * 20;
  4171. }
  4172. function a(t) {
  4173. return t = t.toLowerCase(), nt.hasOwnProperty(t) && nt[t].length ? nt[t][0].tc() : C.destination;
  4174. }
  4175. function c() {
  4176. return C.createGain ? C.createGain() : C.createGainNode();
  4177. }
  4178. function p(t) {
  4179. return C.createDelay ? C.createDelay(t) : C.createDelayNode(t);
  4180. }
  4181. function u(t, i) {
  4182. t.start ? t.start(i || 0) : t.noteOn(i || 0);
  4183. }
  4184. function f(t, i, s, h) {
  4185. t.start ? t.start(h || 0, i) : t.noteGrainOn(h || 0, i, s - i);
  4186. }
  4187. function i(t) {
  4188. try {
  4189. t.stop ? t.stop(0) : t.noteOff(0);
  4190. } catch (t) {
  4191. }
  4192. }
  4193. function b(t, i, s, h, e, n) {
  4194. this.type = 'filter', this.Oa = [t,i,s,h,e,n], this.aa = c(), this.K = c(), this.K.gain.value = n, this.J = c(), this.J.gain.value = 1 - n, this.Ta = C.createBiquadFilter(), this.Ta.type = 'number' == typeof this.Ta.type ? t : ot[t], this.Ta.frequency.value = i, this.Ta.detune && (this.Ta.detune.value = s), this.Ta.Q.value = h, this.Ta.gain.value = e, this.aa.connect(this.Ta), this.aa.connect(this.J), this.Ta.connect(this.K);
  4195. }
  4196. function d(t, i, s) {
  4197. this.type = 'delay', this.Oa = [t,i,s], this.aa = c(), this.K = c(), this.K.gain.value = s, this.J = c(), this.J.gain.value = 1 - s, this.$h = c(), this.Kc = p(t), this.Kc.delayTime.value = t, this.zj = c(), this.zj.gain.value = i, this.aa.connect(this.$h), this.aa.connect(this.J), this.$h.connect(this.K), this.$h.connect(this.Kc), this.Kc.connect(this.zj), this.zj.connect(this.$h);
  4198. }
  4199. function g(t, i, s, h) {
  4200. this.type = 'convolve', this.Oa = [i,s,h], this.aa = c(), this.K = c(), this.K.gain.value = s, this.J = c(), this.J.gain.value = 1 - s, this.bf = C.createConvolver(), t && (this.bf.normalize = i, this.bf.buffer = t), this.aa.connect(this.bf), this.aa.connect(this.J), this.bf.connect(this.K);
  4201. }
  4202. function y(t, i, s, h, e) {
  4203. this.type = 'flanger', this.Oa = [t,i,s,h,e], this.aa = c(), this.J = c(), this.J.gain.value = 1 - e / 2, this.K = c(), this.K.gain.value = e / 2, this.Ij = c(), this.Ij.gain.value = h, this.Kc = p(t + i), this.Kc.delayTime.value = t, this.tb = C.createOscillator(), this.tb.frequency.value = s, this.lc = c(), this.lc.gain.value = i, this.aa.connect(this.Kc), this.aa.connect(this.J), this.Kc.connect(this.K), this.Kc.connect(this.Ij), this.Ij.connect(this.Kc), this.tb.connect(this.lc), this.lc.connect(this.Kc.delayTime), u(this.tb);
  4204. }
  4205. function v(t, i, s, h, e, n) {
  4206. this.type = 'phaser', this.Oa = [t,i,s,h,e,n], this.aa = c(), this.J = c(), this.J.gain.value = 1 - n / 2, this.K = c(), this.K.gain.value = n / 2, this.Ta = C.createBiquadFilter(), this.Ta.type = 'number' == typeof this.Ta.type ? 7 : 'allpass', this.Ta.frequency.value = t, this.Ta.detune && (this.Ta.detune.value = i), this.Ta.Q.value = s, this.tb = C.createOscillator(), this.tb.frequency.value = e, this.lc = c(), this.lc.gain.value = h, this.aa.connect(this.Ta), this.aa.connect(this.J), this.Ta.connect(this.K), this.tb.connect(this.lc), this.lc.connect(this.Ta.frequency), u(this.tb);
  4207. }
  4208. function m(t) {
  4209. this.type = 'gain', this.Oa = [t], this.da = c(), this.da.gain.value = t;
  4210. }
  4211. function w(t, i) {
  4212. this.type = 'tremolo', this.Oa = [t,i], this.da = c(), this.da.gain.value = 1 - i / 2, this.tb = C.createOscillator(), this.tb.frequency.value = t, this.lc = c(), this.lc.gain.value = i / 2, this.tb.connect(this.lc), this.lc.connect(this.da.gain), u(this.tb);
  4213. }
  4214. function k(t, i) {
  4215. this.type = 'ringmod', this.Oa = [t,i], this.aa = c(), this.K = c(), this.K.gain.value = i, this.J = c(), this.J.gain.value = 1 - i, this.ki = c(), this.ki.gain.value = 0, this.tb = C.createOscillator(), this.tb.frequency.value = t, this.tb.connect(this.ki.gain), u(this.tb), this.aa.connect(this.ki), this.aa.connect(this.J), this.ki.connect(this.K);
  4216. }
  4217. function x(t, i, s, h, e) {
  4218. this.type = 'distortion', this.Oa = [t,i,s,h,e], this.aa = c(), this.Bk = c(), this.Ak = c(), this.ry(s, Math.pow(10, h / 20)), this.K = c(), this.K.gain.value = e, this.J = c(), this.J.gain.value = 1 - e, this.hl = C.createWaveShaper(), this.xj = new Float32Array(65536), this.jw(t, i), this.hl.xj = this.xj, this.aa.connect(this.Bk), this.aa.connect(this.J), this.Bk.connect(this.hl), this.hl.connect(this.Ak), this.Ak.connect(this.K);
  4219. }
  4220. function T(t, i, s, h, e) {
  4221. this.type = 'compressor', this.Oa = [t,i,s,h,e], this.da = C.createDynamicsCompressor();
  4222. try {
  4223. this.da.threshold.value = t, this.da.knee.value = i, this.da.ratio.value = s, this.da.attack.value = h, this.da.release.value = e;
  4224. } catch (t) {
  4225. }
  4226. }
  4227. function E(t, i) {
  4228. this.type = 'analyser', this.Oa = [t,i], this.da = C.createAnalyser(), this.da.fftSize = t, this.da.smoothingTimeConstant = i, this.hw = new Float32Array(this.da.frequencyBinCount), this.Er = new Uint8Array(t), this.gi = 0;
  4229. }
  4230. function j() {
  4231. this.ka = null, this.ik = 0;
  4232. }
  4233. function l(t, i) {
  4234. this.src = t, this.U = F, this.yd = i, this.dj = !1;
  4235. var s, h = this;
  4236. switch (this.xg = this.Dg = null, this.Eg = [], this.Mk = 0, this.Wn = this.Gj = this.Jr = this.wk = !1, 1 === F && i && !ht && (this.U = 0, this.Dg = c()), this.Nd = this.ca = null, this.U) {
  4237. case 0:
  4238. this.ca = new Audio(), this.ca.crossOrigin = 'anonymous', this.ca.addEventListener('canplaythrough', function () {
  4239. h.Wn = !0;
  4240. }), 1 === F && C.createMediaElementSource && !/wiiu/i.test(navigator.userAgent) && (this.Jr = !0, this.ca.addEventListener('canplay', function () {
  4241. !h.xg && h.ca && (h.xg = C.createMediaElementSource(h.ca), h.xg.connect(h.Dg));
  4242. })), this.ca.autoplay = !1, this.ca.Dz = 'auto', this.ca.src = t;
  4243. break;
  4244. case 1:
  4245. q.Jh ? q.kp(t, function (t) {
  4246. h.Nd = t, h.cp();
  4247. }, function () {
  4248. h.Gj = !0;
  4249. }) : ((s = new XMLHttpRequest()).open('GET', t, !0), s.responseType = 'arraybuffer', s.onload = function () {
  4250. h.Nd = s.response, h.cp();
  4251. }, s.onerror = function () {
  4252. h.Gj = !0;
  4253. }, s.send());
  4254. break;
  4255. case 2:
  4256. this.ca = !0;
  4257. break;
  4258. case 3:
  4259. this.ca = !0;
  4260. }
  4261. }
  4262. function R(t, i) {
  4263. var s = this;
  4264. this.tag = i, this.ta = this.vd = !0, this.src = t.src, this.buffer = t, this.U = F, this.yd = t.yd, this.playbackRate = 1, this.eg = !0, this.ic = this.Cc = !1, this.cc = 0, this.Kh = this.lg = this.Ad = !1, this.volume = 1, this.dn = function (t) {
  4265. if (!s.ic && !s.Cc) {
  4266. var i = this;
  4267. (i = i || t.target) === s.cj && (s.eg = !0, s.ta = !0, L = s.tag, q.trigger(uc.prototype.c.Si, O));
  4268. }
  4269. }, this.cj = null, this.ig = 1 === _ && !this.yd || 2 === _, this.zg = 1, this.startTime = this.ig ? q.Bb.Z : q.oe.Z, this.Xa = this.fb = null, this.Bd = !1, this.Cb = null, this.Xq = this.Wq = this.Vq = this.Uq = this.Zq = this.Yq = 0, this.i = null;
  4270. var h = !1;
  4271. switch (1 !== this.U || 0 !== this.buffer.U || this.buffer.Jr || (this.U = 0), this.U) {
  4272. case 0:
  4273. this.yd ? (this.i = t.ca, h = !t.dj, t.dj = !0) : (this.i = new Audio(), this.i.crossOrigin = 'anonymous', this.i.autoplay = !1, this.i.src = t.ca.src, h = !0), h && this.i.addEventListener('ended', function () {
  4274. L = s.tag, s.ta = !0, q.trigger(uc.prototype.c.Si, O);
  4275. });
  4276. break;
  4277. case 1:
  4278. this.fb = c(), this.fb.connect(a(i)), 1 === this.buffer.U ? t.ca && (this.i = C.createBufferSource(), this.i.buffer = t.ca, this.i.connect(this.fb)) : (this.i = this.buffer.ca, this.buffer.Dg.connect(this.fb), this.buffer.dj || (this.buffer.dj = !0, this.buffer.ca.addEventListener('ended', function () {
  4279. L = s.tag, s.ta = !0, q.trigger(uc.prototype.c.Si, O);
  4280. })));
  4281. break;
  4282. case 2:
  4283. this.i = new window.Media(D + this.src, null, null, function (t) {
  4284. t === window.Media.MEDIA_STOPPED && (s.eg = !0, s.ta = !0, L = s.tag, q.trigger(uc.prototype.c.Si, O));
  4285. });
  4286. break;
  4287. case 3:
  4288. this.i = !0;
  4289. }
  4290. }
  4291. function S(t) {
  4292. var i, s, h;
  4293. if (A(pt), t.length)
  4294. for (i = 0, s = U.length; i < s; i++)
  4295. h = U[i], mb(t, h.tag) && pt.push(h);
  4296. else
  4297. B && !B.qf() && (A(pt), pt[0] = B);
  4298. }
  4299. function M(t, i) {
  4300. nt.hasOwnProperty(t) ? nt[t].push(i) : nt[t] = [i];
  4301. var s, h, e, n, o = C.destination;
  4302. if (nt.hasOwnProperty(t) && (e = nt[t]).length)
  4303. for (o = e[0].tc(), s = 0, h = e.length; s < h; s++)
  4304. n = e[s], s + 1 === h ? n.Hc(C.destination) : n.Hc(e[s + 1].tc());
  4305. for (S(t), s = 0, h = pt.length; s < h; s++)
  4306. pt[s].cy(o);
  4307. $ && tt === t && ($.disconnect(), $.connect(o));
  4308. }
  4309. function s() {
  4310. }
  4311. function h() {
  4312. }
  4313. var P = uc.prototype;
  4314. P.W = function (t) {
  4315. this.X = t, this.b = t.b;
  4316. }, P.W.prototype.D = function () {
  4317. };
  4318. var q = null, O = null, L = '', D = '', F = 0, C = null, I = [], U = [], B = null, N = !1, _ = 0, z = !1, X = 1, Y = 0, H = 0, V = !1, W = 1, Z = 1, J = 10, K = 10000, Q = 1, $ = null, tt = '', it = !1, st = [], ht = !1, et = !1;
  4319. document.addEventListener('pointerup', t, !0), document.addEventListener('touchend', t, !0), document.addEventListener('click', t, !0), document.addEventListener('keydown', t, !0), document.addEventListener('gamepadconnected', t, !0);
  4320. var nt = {}, ot = 'lowpass highpass bandpass lowshelf highshelf peaking notch allpass'.split(' ');
  4321. b.prototype.Hc = function (t) {
  4322. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4323. }, b.prototype.remove = function () {
  4324. this.aa.disconnect(), this.Ta.disconnect(), this.K.disconnect(), this.J.disconnect();
  4325. }, b.prototype.tc = function () {
  4326. return this.aa;
  4327. }, d.prototype.Hc = function (t) {
  4328. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4329. }, d.prototype.remove = function () {
  4330. this.aa.disconnect(), this.$h.disconnect(), this.Kc.disconnect(), this.zj.disconnect(), this.K.disconnect(), this.J.disconnect();
  4331. }, d.prototype.tc = function () {
  4332. return this.aa;
  4333. }, g.prototype.Hc = function (t) {
  4334. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4335. }, g.prototype.remove = function () {
  4336. this.aa.disconnect(), this.bf.disconnect(), this.K.disconnect(), this.J.disconnect();
  4337. }, g.prototype.tc = function () {
  4338. return this.aa;
  4339. }, y.prototype.Hc = function (t) {
  4340. this.J.disconnect(), this.J.connect(t), this.K.disconnect(), this.K.connect(t);
  4341. }, y.prototype.remove = function () {
  4342. this.aa.disconnect(), this.Kc.disconnect(), this.tb.disconnect(), this.lc.disconnect(), this.J.disconnect(), this.K.disconnect(), this.Ij.disconnect();
  4343. }, y.prototype.tc = function () {
  4344. return this.aa;
  4345. }, v.prototype.Hc = function (t) {
  4346. this.J.disconnect(), this.J.connect(t), this.K.disconnect(), this.K.connect(t);
  4347. }, v.prototype.remove = function () {
  4348. this.aa.disconnect(), this.Ta.disconnect(), this.tb.disconnect(), this.lc.disconnect(), this.J.disconnect(), this.K.disconnect();
  4349. }, v.prototype.tc = function () {
  4350. return this.aa;
  4351. }, m.prototype.Hc = function (t) {
  4352. this.da.disconnect(), this.da.connect(t);
  4353. }, m.prototype.remove = function () {
  4354. this.da.disconnect();
  4355. }, m.prototype.tc = function () {
  4356. return this.da;
  4357. }, w.prototype.Hc = function (t) {
  4358. this.da.disconnect(), this.da.connect(t);
  4359. }, w.prototype.remove = function () {
  4360. this.tb.disconnect(), this.lc.disconnect(), this.da.disconnect();
  4361. }, w.prototype.tc = function () {
  4362. return this.da;
  4363. }, k.prototype.Hc = function (t) {
  4364. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4365. }, k.prototype.remove = function () {
  4366. this.tb.disconnect(), this.ki.disconnect(), this.aa.disconnect(), this.K.disconnect(), this.J.disconnect();
  4367. }, k.prototype.tc = function () {
  4368. return this.aa;
  4369. }, x.prototype.ry = function (t, i) {
  4370. t < 0.01 && (t = 0.01), this.Bk.gain.value = t, this.Ak.gain.value = Math.pow(1 / t, 0.6) * i;
  4371. }, x.prototype.shape = function (t, i, s) {
  4372. var h = 1.05 * s * i - i;
  4373. return s = t < 0 ? -1 : 1, (i = (t = t < 0 ? -t : t) < i ? t : i + h * (1 - Math.exp(-1 / h * (t - i)))) * s;
  4374. }, x.prototype.jw = function (t, i) {
  4375. for (var s = Math.pow(10, t / 20), h = Math.pow(10, i / 20), e = 0, n = 0; n < 32768; ++n)
  4376. e = n / 32768, e = this.shape(e, s, h), this.xj[32768 + n] = e, this.xj[32768 - n - 1] = -e;
  4377. }, x.prototype.Hc = function (t) {
  4378. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4379. }, x.prototype.remove = function () {
  4380. this.aa.disconnect(), this.Bk.disconnect(), this.hl.disconnect(), this.Ak.disconnect(), this.K.disconnect(), this.J.disconnect();
  4381. }, x.prototype.tc = function () {
  4382. return this.aa;
  4383. }, T.prototype.Hc = function (t) {
  4384. this.da.disconnect(), this.da.connect(t);
  4385. }, T.prototype.remove = function () {
  4386. this.da.disconnect();
  4387. }, T.prototype.tc = function () {
  4388. return this.da;
  4389. }, E.prototype.mb = function () {
  4390. this.da.getFloatFrequencyData(this.hw), this.da.getByteTimeDomainData(this.Er);
  4391. for (var t = this.da.fftSize, i = 0, s = this.gi = 0, h = 0; i < t; i++)
  4392. (h = (this.Er[i] - 128) / 128) < 0 && (h = -h), this.gi < h && (this.gi = h), s += h * h;
  4393. this.gi = e(this.gi), e(Math.sqrt(s / t));
  4394. }, E.prototype.Hc = function (t) {
  4395. this.da.disconnect(), this.da.connect(t);
  4396. }, E.prototype.remove = function () {
  4397. this.da.disconnect();
  4398. }, E.prototype.tc = function () {
  4399. return this.da;
  4400. }, j.prototype.li = function (t) {
  4401. this.ka = t;
  4402. }, j.prototype.Wj = function () {
  4403. return !!this.ka;
  4404. }, j.prototype.mb = function () {
  4405. }, l.prototype.ey = function () {
  4406. var t, i, s, h;
  4407. for (s = t = 0, i = U.length; t < i; ++t)
  4408. h = U[t], (U[s] = h).buffer === this ? h.stop() : ++s;
  4409. U.length = s, this.xg && (this.xg.disconnect(), this.xg = null), this.Dg && (this.Dg.disconnect(), this.Dg = null), this.Nd = this.ca = null;
  4410. }, l.prototype.cp = function () {
  4411. if (!this.ca && this.Nd) {
  4412. var o = this;
  4413. if (C.decodeAudioData)
  4414. C.decodeAudioData(this.Nd, function (t) {
  4415. var i, s, h;
  4416. if (o.ca = t, o.Nd = null, ha(o.xk) || z)
  4417. ha(o.tj) || ((i = o.tj.bf).normalize = o.Iq, i.buffer = t);
  4418. else if (o.Eg.length) {
  4419. for (i = 0, s = o.Eg.length; i < s; i++)
  4420. if (t = o.Eg[i], (h = new R(o, t.Mr)).Pk(!0), void 0 === t.Kq || (t.ka = q.Uj(t.Kq), t.ka)) {
  4421. if (t.ka) {
  4422. var e = Ua(t.ka.x, t.ka.y, -t.ka.j.gb(), Y, H, !0), n = Ua(t.ka.x, t.ka.y, -t.ka.j.gb(), Y, H, !1);
  4423. h.Cn(e, n, Ka(t.ka.m - t.ka.j.gb()), t.vm, t.Zm, t.bn), h.li(t.ka);
  4424. } else
  4425. h.Cn(t.x, t.y, t.zu, t.vm, t.Zm, t.bn);
  4426. h.play(o.Um, o.Vn, o.Mk), o.wk && h.pause(), U.push(h);
  4427. }
  4428. A(o.Eg);
  4429. } else
  4430. (h = new R(o, o.xk || '')).play(o.Um, o.Vn, o.Mk), o.wk && h.pause(), U.push(h);
  4431. }, function () {
  4432. o.Gj = !0;
  4433. });
  4434. else if (this.ca = C.createBuffer(this.Nd, !1), this.Nd = null, ha(this.xk) || z)
  4435. ha(this.tj) || ((t = this.tj.bf).normalize = this.Iq, t.buffer = this.ca);
  4436. else {
  4437. var t = new R(this, this.xk);
  4438. t.play(this.Um, this.Vn, this.Mk), this.wk && t.pause(), U.push(t);
  4439. }
  4440. }
  4441. }, l.prototype.Op = function () {
  4442. switch (this.U) {
  4443. case 0:
  4444. var t = 4 <= this.ca.readyState;
  4445. return t && (this.Wn = !0), t || this.Wn;
  4446. case 1:
  4447. return !!this.Nd || !!this.ca;
  4448. case 2:
  4449. case 3:
  4450. return !0;
  4451. }
  4452. return !1;
  4453. }, l.prototype.cx = function () {
  4454. switch (this.U) {
  4455. case 0:
  4456. return this.Op();
  4457. case 1:
  4458. return !!this.ca;
  4459. case 2:
  4460. case 3:
  4461. return !0;
  4462. }
  4463. return !1;
  4464. }, l.prototype.Rw = function () {
  4465. switch (this.U) {
  4466. case 0:
  4467. return !!this.ca.error;
  4468. case 1:
  4469. return this.Gj;
  4470. }
  4471. return !1;
  4472. }, R.prototype.qf = function () {
  4473. switch (this.U) {
  4474. case 0:
  4475. return this.i.ended;
  4476. case 1:
  4477. return 1 === this.buffer.U ? !(!this.vd && !this.ta && this.i.loop || this.ic) && this.eg : this.i.ended;
  4478. case 2:
  4479. return this.eg;
  4480. }
  4481. return !0;
  4482. }, R.prototype.Mu = function () {
  4483. return !(!this.vd && !this.ta) || this.qf();
  4484. }, R.prototype.Pk = function (t) {
  4485. 1 === F && (!this.Bd && t ? this.fb && (this.Xa || (this.Xa = C.createPanner(), this.Xa.panningModel = 'number' == typeof this.Xa.panningModel ? W : ["equalpower","HRTF","soundfield"][W], this.Xa.distanceModel = 'number' == typeof this.Xa.distanceModel ? Z : ["linear","inverse","exponential"][Z], this.Xa.refDistance = J, this.Xa.maxDistance = K, this.Xa.rolloffFactor = Q), this.fb.disconnect(), this.fb.connect(this.Xa), this.Xa.connect(a(this.tag)), this.Bd = !0) : this.Bd && !t && this.fb && (this.Xa.disconnect(), this.fb.disconnect(), this.fb.connect(a(this.tag)), this.Bd = !1));
  4486. }, R.prototype.Cn = function (t, i, s, h, e, n) {
  4487. this.Bd && 1 === F && (this.Xa.setPosition(t, i, 0), this.Xa.setOrientation(Math.cos(G(s)), Math.sin(G(s)), 0), this.Xa.coneInnerAngle = h, this.Xa.coneOuterAngle = e, this.Xa.coneOuterGain = n, this.Yq = t, this.Zq = i, this.Uq = s, this.Vq = h, this.Wq = e, this.Xq = n);
  4488. }, R.prototype.li = function (t) {
  4489. this.Bd && 1 === F && (this.Cb || (this.Cb = new j()), this.Cb.li(t));
  4490. }, R.prototype.mb = function (t) {
  4491. if (this.Bd && 1 === F && this.Cb && this.Cb.Wj() && this.hg()) {
  4492. this.Cb.mb(t), t = this.Cb.ka;
  4493. var i = Ua(t.x, t.y, -t.j.gb(), Y, H, !0), s = Ua(t.x, t.y, -t.j.gb(), Y, H, !1);
  4494. this.Xa.setPosition(i, s, 0), void (i = 0) !== this.Cb.ka.m && (i = t.m - t.j.gb(), this.Xa.setOrientation(Math.cos(i), Math.sin(i), 0));
  4495. }
  4496. }, R.prototype.play = function (t, i, s, h) {
  4497. var e = this.i;
  4498. switch (this.Ad = t, this.volume = i, s = s || 0, h = h || 0, this.U) {
  4499. case 0:
  4500. if (1 !== e.playbackRate && (e.playbackRate = 1), e.volume !== i * X && (e.volume = i * X), e.loop !== t && (e.loop = t), e.muted && (e.muted = !1), e.currentTime !== s)
  4501. try {
  4502. e.currentTime = s;
  4503. } catch (t) {
  4504. }
  4505. o(this);
  4506. break;
  4507. case 1:
  4508. if (this.muted = !1, (this.zg = 1) === this.buffer.U)
  4509. this.fb.gain.value = i * X, this.vd || (this.i = C.createBufferSource(), this.i.buffer = this.buffer.ca, this.i.connect(this.fb)), this.i.onended = this.dn, this.cj = this.i, this.i.loop = t, this.eg = !1, 0 === s ? u(this.i, h) : f(this.i, s, this.mf(), h);
  4510. else {
  4511. if (1 !== e.playbackRate && (e.playbackRate = 1), e.loop !== t && (e.loop = t), e.volume = i * X, e.currentTime !== s)
  4512. try {
  4513. e.currentTime = s;
  4514. } catch (t) {
  4515. }
  4516. o(this);
  4517. }
  4518. break;
  4519. case 2:
  4520. (!this.vd && this.ta || 0 !== s) && e.seekTo(s), e.play(), this.eg = !1;
  4521. break;
  4522. case 3:
  4523. q.pb ? AppMobi.context.playSound(this.src, t) : AppMobi.player.playSound(this.src, t);
  4524. }
  4525. this.playbackRate = 1, this.startTime = (this.ig ? q.Bb.Z : q.oe.Z) - s, this.ic = this.ta = this.vd = !1;
  4526. }, R.prototype.stop = function () {
  4527. switch (this.U) {
  4528. case 0:
  4529. this.i.paused || this.i.pause();
  4530. break;
  4531. case 1:
  4532. 1 === this.buffer.U ? i(this.i) : this.i.paused || this.i.pause();
  4533. break;
  4534. case 2:
  4535. this.i.stop();
  4536. break;
  4537. case 3:
  4538. q.pb && AppMobi.context.stopSound(this.src);
  4539. }
  4540. this.ta = !0, this.ic = !1;
  4541. }, R.prototype.pause = function () {
  4542. if (!(this.vd || this.ta || this.qf() || this.ic)) {
  4543. switch (this.U) {
  4544. case 0:
  4545. this.i.paused || this.i.pause();
  4546. break;
  4547. case 1:
  4548. 1 === this.buffer.U ? (this.cc = this.nm(!0), this.Ad && (this.cc = this.cc % this.mf()), this.ic = !0, i(this.i)) : this.i.paused || this.i.pause();
  4549. break;
  4550. case 2:
  4551. this.i.pause();
  4552. break;
  4553. case 3:
  4554. q.pb && AppMobi.context.stopSound(this.src);
  4555. }
  4556. this.ic = !0;
  4557. }
  4558. }, R.prototype.mr = function () {
  4559. if (!(this.vd || this.ta || this.qf()) && this.ic) {
  4560. switch (this.U) {
  4561. case 0:
  4562. o(this);
  4563. break;
  4564. case 1:
  4565. 1 === this.buffer.U ? (this.i = C.createBufferSource(), this.i.buffer = this.buffer.ca, this.i.connect(this.fb), this.i.onended = this.dn, this.cj = this.i, this.i.loop = this.Ad, this.fb.gain.value = X * this.volume * this.zg, this.Bi(), this.startTime = (this.ig ? q.Bb.Z : q.oe.Z) - this.cc / (this.playbackRate || 0.001), f(this.i, this.cc, this.mf())) : o(this);
  4566. break;
  4567. case 2:
  4568. this.i.play();
  4569. break;
  4570. case 3:
  4571. q.pb && AppMobi.context.resumeSound(this.src);
  4572. }
  4573. this.ic = !1;
  4574. }
  4575. }, R.prototype.seek = function (t) {
  4576. if (!(this.vd || this.ta || this.qf()))
  4577. switch (this.U) {
  4578. case 0:
  4579. try {
  4580. this.i.currentTime = t;
  4581. } catch (t) {
  4582. }
  4583. break;
  4584. case 1:
  4585. if (1 === this.buffer.U)
  4586. this.ic ? this.cc = t : (this.pause(), this.cc = t, this.mr());
  4587. else
  4588. try {
  4589. this.i.currentTime = t;
  4590. } catch (t) {
  4591. }
  4592. break;
  4593. case 3:
  4594. q.pb && AppMobi.context.seekSound(this.src, t);
  4595. }
  4596. }, R.prototype.cy = function (t) {
  4597. 1 === this.U && (this.Bd ? (this.Xa.disconnect(), this.Xa.connect(t)) : (this.fb.disconnect(), this.fb.connect(t)));
  4598. }, R.prototype.mf = function () {
  4599. var t = 0;
  4600. switch (this.U) {
  4601. case 0:
  4602. void 0 !== this.i.duration && (t = this.i.duration);
  4603. break;
  4604. case 1:
  4605. t = this.buffer.ca.duration;
  4606. break;
  4607. case 2:
  4608. t = this.i.getDuration();
  4609. break;
  4610. case 3:
  4611. q.pb && (t = AppMobi.context.getDurationSound(this.src));
  4612. }
  4613. return t;
  4614. }, R.prototype.nm = function (t) {
  4615. var i = this.mf(), s = 0;
  4616. switch (this.U) {
  4617. case 0:
  4618. void 0 !== this.i.currentTime && (s = this.i.currentTime);
  4619. break;
  4620. case 1:
  4621. if (1 === this.buffer.U) {
  4622. if (this.ic)
  4623. return this.cc;
  4624. s = (this.ig ? q.Bb.Z : q.oe.Z) - this.startTime;
  4625. } else
  4626. void 0 !== this.i.currentTime && (s = this.i.currentTime);
  4627. break;
  4628. case 3:
  4629. q.pb && (s = AppMobi.context.getPlaybackTimeSound(this.src));
  4630. }
  4631. return t && (s *= this.playbackRate), !this.Ad && i < s && (s = i), s;
  4632. }, R.prototype.hg = function () {
  4633. return !(this.ic || this.vd || this.ta || this.qf());
  4634. }, R.prototype.zy = function () {
  4635. return !this.vd && !this.ta && !this.qf();
  4636. }, R.prototype.Ly = function () {
  4637. var t = this.volume * X;
  4638. switch (isFinite(t) || (t = 0), this.U) {
  4639. case 0:
  4640. void 0 !== this.i.volume && this.i.volume !== t && (this.i.volume = t);
  4641. break;
  4642. case 1:
  4643. 1 === this.buffer.U ? this.fb.gain.value = t * this.zg : void 0 !== this.i.volume && this.i.volume !== t && (this.i.volume = t);
  4644. }
  4645. }, R.prototype.Bj = function (t) {
  4646. switch (this.U) {
  4647. case 0:
  4648. this.i.muted !== !!t && (this.i.muted = !!t);
  4649. break;
  4650. case 1:
  4651. 1 === this.buffer.U ? (this.zg = t ? 0 : 1, this.fb.gain.value = X * this.volume * this.zg) : this.i.muted !== !!t && (this.i.muted = !!t);
  4652. }
  4653. }, R.prototype.uy = function () {
  4654. this.lg = !0, this.Bj(this.lg || this.Kh);
  4655. }, R.prototype.xr = function (t) {
  4656. this.Kh = !!t, this.Bj(this.lg || this.Kh);
  4657. }, R.prototype.vy = function (t) {
  4658. this.playbackRate = t, this.Bi();
  4659. }, R.prototype.Bi = function () {
  4660. var t = this.playbackRate;
  4661. switch (this.ig && (t *= q.Jf), this.U) {
  4662. case 0:
  4663. this.i.playbackRate !== t && (this.i.playbackRate = t);
  4664. break;
  4665. case 1:
  4666. 1 === this.buffer.U ? this.i.playbackRate.value !== t && (this.i.playbackRate.value = t) : this.i.playbackRate !== t && (this.i.playbackRate = t);
  4667. }
  4668. }, R.prototype.xy = function (t) {
  4669. switch (this.U) {
  4670. case 0:
  4671. t ? this.hg() ? (this.Cc = !0, this.i.pause()) : this.Cc = !1 : this.Cc && (this.i.play(), this.Cc = !1);
  4672. break;
  4673. case 1:
  4674. t ? this.hg() ? (this.Cc = !0, 1 === this.buffer.U ? (this.cc = this.nm(!0), this.Ad && (this.cc = this.cc % this.mf()), i(this.i)) : this.i.pause()) : this.Cc = !1 : this.Cc && (1 === this.buffer.U ? (this.i = C.createBufferSource(), this.i.buffer = this.buffer.ca, this.i.connect(this.fb), this.i.onended = this.dn, this.cj = this.i, this.i.loop = this.Ad, this.fb.gain.value = X * this.volume * this.zg, this.Bi(), this.startTime = (this.ig ? q.Bb.Z : q.oe.Z) - this.cc / (this.playbackRate || 0.001), f(this.i, this.cc, this.mf())) : this.i.play(), this.Cc = !1);
  4675. break;
  4676. case 2:
  4677. t ? this.hg() ? (this.i.pause(), this.Cc = !0) : this.Cc = !1 : this.Cc && (this.Cc = !1, this.i.play());
  4678. }
  4679. }, P.S = function (t) {
  4680. if (this.type = t, q = this.b = t.b, (O = this).jc = null, this.Ph = -600, this.b.Jh && (ht = !0), !(this.b.pg || this.b.Dh && (this.b.Bm || this.b.Xj)) || this.b.Zj || this.b.pa || this.b.Mp || ht || (it = !0), C = null, 'undefined' != typeof AudioContext ? (F = 1, C = new AudioContext()) : 'undefined' != typeof webkitAudioContext && (F = 1, C = new webkitAudioContext()), this.b.pg && C && (C.close && C.close(), 'undefined' != typeof AudioContext ? C = new AudioContext() : 'undefined' != typeof webkitAudioContext && (C = new webkitAudioContext())), 1 !== F && (this.b.vc && void 0 !== window.Media ? F = 2 : this.b.Np && (F = 3)), 2 === F && (-1 < (t = (D = location.href).lastIndexOf('/')) && (D = D.substr(0, t + 1)), D = D.replace('file://', '')), this.b.hx && this.b.ix && 'undefined' == typeof Audio)
  4681. alert('It looks like you\'re using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed.'), this.b.Xe(this);
  4682. else {
  4683. if (this.b.pb)
  4684. N = this.b.Dh;
  4685. else
  4686. try {
  4687. N = !!new Audio().canPlayType('audio/ogg; codecs="vorbis"') && !this.b.$j;
  4688. } catch (t) {
  4689. N = !1;
  4690. }
  4691. this.b.If(this);
  4692. }
  4693. };
  4694. var rt = P.S.prototype;
  4695. rt.D = function () {
  4696. this.b.Rf = this, _ = this.A[0], this.fe = this.A[1], this.Sx = 0 !== this.A[2], this.pk = 0, W = this.A[3], Z = this.A[4], this.Ph = -this.A[5], J = this.A[6], K = this.A[7], Q = this.A[8], this.jc = new j();
  4697. var t = this.b.G || this.b.width, i = this.b.F || this.b.height;
  4698. 1 === F && (C.listener.setPosition(t / 2, i / 2, this.Ph), C.listener.setOrientation(0, 0, 1, 0, -1, 0), window.c2OnAudioMicStream = function (t, i) {
  4699. $ && $.disconnect(), tt = i.toLowerCase(), ($ = C.createMediaStreamSource(t)).connect(a(tt));
  4700. }), this.b.No(function (t) {
  4701. O.Lx(t);
  4702. });
  4703. var s = this;
  4704. this.b.Du(function (t) {
  4705. s.Dx(t);
  4706. });
  4707. }, rt.Dx = function (t) {
  4708. var i, s, h;
  4709. for (i = 0, s = U.length; i < s; i++)
  4710. (h = U[i]).Cb && h.Cb.ka === t && (h.Cb.ka = null, h.Bd && h.hg() && h.Ad && h.stop());
  4711. this.jc.ka === t && (this.jc.ka = null);
  4712. }, rt.Fb = function () {
  4713. var t, i, s, h, e, n, o = {
  4714. silent: z,
  4715. masterVolume: X,
  4716. listenerZ: this.Ph,
  4717. listenerUid: this.jc.Wj() ? this.jc.ka.uid : -1,
  4718. playing: [],
  4719. effects: {}
  4720. }, r = o.playing;
  4721. for (t = 0, i = U.length; t < i; t++)
  4722. !(s = U[t]).zy() || 3 === this.fe || s.yd && 1 === this.fe || !s.yd && 2 === this.fe || (h = s.nm(), s.Ad && (h %= s.mf()), h = {
  4723. tag: s.tag,
  4724. buffersrc: s.buffer.src,
  4725. is_music: s.yd,
  4726. playbackTime: h,
  4727. volume: s.volume,
  4728. looping: s.Ad,
  4729. muted: s.lg,
  4730. playbackRate: s.playbackRate,
  4731. paused: s.ic,
  4732. resume_position: s.cc
  4733. }, s.Bd && (h.pan = {}, n = h.pan, s.Cb && s.Cb.Wj() ? n.objUid = s.Cb.ka.uid : (n.x = s.Yq, n.y = s.Zq, n.a = s.Uq), n.ia = s.Vq, n.oa = s.Wq, n.og = s.Xq), r.push(h));
  4734. for (e in (r = o.effects, nt))
  4735. if (nt.hasOwnProperty(e)) {
  4736. for (s = [], t = 0, i = nt[e].length; t < i; t++)
  4737. s.push({
  4738. type: nt[e][t].type,
  4739. params: nt[e][t].Oa
  4740. });
  4741. r[e] = s;
  4742. }
  4743. return o;
  4744. };
  4745. var at = [];
  4746. rt.Qb = function (t) {
  4747. var i = t.silent;
  4748. X = t.masterVolume, this.Ph = t.listenerZ, this.jc.li(null), -1 !== (l = t.listenerUid) && (this.jc.ik = l, at.push(this.jc));
  4749. var s, h, e, n, o, r, a, c, p, u, f, l = t.playing;
  4750. if (3 !== this.fe)
  4751. for (s = 0, h = U.length; s < h; s++)
  4752. (p = U[s]).yd && 1 === this.fe || !p.yd && 2 === this.fe || p.stop();
  4753. for (o in nt)
  4754. if (nt.hasOwnProperty(o))
  4755. for (s = 0, h = nt[o].length; s < h; s++)
  4756. nt[o][s].remove();
  4757. for (o in (Ya(nt), t.effects))
  4758. if (t.effects.hasOwnProperty(o))
  4759. for (s = 0, h = (r = t.effects[o]).length; s < h; s++)
  4760. switch (e = r[s].type, u = r[s].params, e) {
  4761. case 'filter':
  4762. M(o, new b(u[0], u[1], u[2], u[3], u[4], u[5]));
  4763. break;
  4764. case 'delay':
  4765. M(o, new d(u[0], u[1], u[2]));
  4766. break;
  4767. case 'convolve':
  4768. e = u[2], (p = this.Nj(e, !1)).ca ? e = new g(p.ca, u[0], u[1], e) : (e = new g(null, u[0], u[1], e), p.Iq = u[0], p.tj = e), M(o, e);
  4769. break;
  4770. case 'flanger':
  4771. M(o, new y(u[0], u[1], u[2], u[3], u[4]));
  4772. break;
  4773. case 'phaser':
  4774. M(o, new v(u[0], u[1], u[2], u[3], u[4], u[5]));
  4775. break;
  4776. case 'gain':
  4777. M(o, new m(u[0]));
  4778. break;
  4779. case 'tremolo':
  4780. M(o, new w(u[0], u[1]));
  4781. break;
  4782. case 'ringmod':
  4783. M(o, new k(u[0], u[1]));
  4784. break;
  4785. case 'distortion':
  4786. M(o, new x(u[0], u[1], u[2], u[3], u[4]));
  4787. break;
  4788. case 'compressor':
  4789. M(o, new T(u[0], u[1], u[2], u[3], u[4]));
  4790. break;
  4791. case 'analyser':
  4792. M(o, new E(u[0], u[1]));
  4793. }
  4794. for (s = 0, h = l.length; s < h; s++)
  4795. 3 === this.fe || (e = (t = l[s]).buffersrc, n = t.is_music, o = t.tag, r = t.playbackTime, a = t.looping, c = t.volume, f = (u = t.pan) && u.hasOwnProperty('objUid') ? u.objUid : -1, n && 1 === this.fe) || !n && 2 === this.fe || ((p = this.Oj(e, o, n, a, c)) ? (p.cc = t.resume_position, p.Pk(!!u), p.play(a, c, r), p.Bi(), p.Ly(), p.Bj(p.lg || p.Kh), t.paused && p.pause(), t.muted && p.uy(), p.Bj(p.lg || p.Kh), u && (-1 !== f ? (p.Cb = p.Cb || new j(), p.Cb.ik = f, at.push(p.Cb)) : p.Cn(u.x, u.y, u.a, u.ia, u.oa, u.og))) : ((p = this.Nj(e, n)).Mk = r, p.wk = t.paused, u && (-1 !== f ? p.Eg.push({
  4796. Kq: f,
  4797. vm: u.ia,
  4798. Zm: u.oa,
  4799. bn: u.og,
  4800. Mr: o
  4801. }) : p.Eg.push({
  4802. x: u.x,
  4803. y: u.y,
  4804. zu: u.a,
  4805. vm: u.ia,
  4806. Zm: u.oa,
  4807. bn: u.og,
  4808. Mr: o
  4809. }))));
  4810. if (i && !z) {
  4811. for (s = 0, h = U.length; s < h; s++)
  4812. U[s].xr(!0);
  4813. z = !0;
  4814. } else if (!i && z) {
  4815. for (s = 0, h = U.length; s < h; s++)
  4816. U[s].xr(!1);
  4817. z = !1;
  4818. }
  4819. }, rt.Kd = function () {
  4820. var t, i, s, h;
  4821. for (t = 0, i = at.length; t < i; t++)
  4822. s = at[t], h = this.b.Uj(s.ik), s.li(h), s.ik = -1, h && (Y = h.x, H = h.y);
  4823. A(at);
  4824. }, rt.Lx = function (t) {
  4825. if (!this.Sx) {
  4826. var i, s;
  4827. for (!t && C && C.resume && (C.resume(), V = !1), i = 0, s = U.length; i < s; i++)
  4828. U[i].xy(t);
  4829. t && C && C.suspend && (C.suspend(), V = !0);
  4830. }
  4831. }, rt.mb = function () {
  4832. var t, i, s, h, e, n = this.b.De;
  4833. for (t = 0, i = U.length; t < i; t++)
  4834. (s = U[t]).mb(n), 0 !== _ && s.Bi();
  4835. for (h in nt)
  4836. if (nt.hasOwnProperty(h))
  4837. for (t = 0, i = (s = nt[h]).length; t < i; t++)
  4838. (e = s[t]).mb && e.mb();
  4839. 1 === F && this.jc.Wj() && (this.jc.mb(n), Y = this.jc.ka.x, H = this.jc.ka.y, C.listener.setPosition(this.jc.ka.x, this.jc.ka.y, this.Ph));
  4840. };
  4841. var ct = [];
  4842. rt.wy = function (t) {
  4843. var i, s, h, e, n, o = 0;
  4844. for (i = 0, s = t.length; i < s; ++i)
  4845. e = (h = t[i])[0], h = 2 * h[1], ((n = 4 < e.length && '.ogg' === e.substr(e.length - 4)) && N || !n && !N) && (ct.push({
  4846. filename: e,
  4847. size: h,
  4848. ka: null
  4849. }), o += h);
  4850. return o;
  4851. }, rt.By = function () {
  4852. var t, i, s, h;
  4853. for (t = 0, i = ct.length; t < i; ++t)
  4854. s = ct[t], h = this.b.rh + s.filename, s.ka = this.Nj(h, !1);
  4855. }, rt.xw = function () {
  4856. var t, i, s, h = 0;
  4857. for (t = 0, i = ct.length; t < i; ++t)
  4858. (s = ct[t]).ka.cx() || s.ka.Rw() || this.b.pa || this.b.Xj ? h += s.size : s.ka.Op() && (h += Math.floor(s.size / 2));
  4859. return h;
  4860. }, rt.fy = function () {
  4861. var t, i, s, h;
  4862. for (s = t = 0, i = I.length; t < i; ++t)
  4863. h = I[t], (I[s] = h).yd ? h.ey() : ++s;
  4864. I.length = s;
  4865. }, rt.Nj = function (t, i) {
  4866. var s, h, e, n = null;
  4867. for (s = 0, h = I.length; s < h; s++)
  4868. if ((e = I[s]).src === t) {
  4869. n = e;
  4870. break;
  4871. }
  4872. return n || (ht && i && this.fy(), n = new l(t, i), I.push(n)), n;
  4873. }, rt.Oj = function (t, i, s, h, e) {
  4874. var n, o, r;
  4875. for (n = 0, o = U.length; n < o; n++)
  4876. if ((r = U[n]).src === t && (r.Mu() || s))
  4877. return r.tag = i, r;
  4878. return (t = this.Nj(t, s)).ca ? (r = new R(t, i), U.push(r), r) : ('<preload>' !== i && (t.xk = i, t.Um = h, t.Vn = e), null);
  4879. };
  4880. var pt = [];
  4881. s.prototype.Si = function (t) {
  4882. return mb(L, t);
  4883. }, s.prototype.Xs = function (t) {
  4884. var i;
  4885. for (S(t), t = 0, i = pt.length; t < i; t++)
  4886. if (pt[t].hg())
  4887. return !0;
  4888. return !1;
  4889. }, P.c = new s(), h.prototype.Play = function (t, i, s, h) {
  4890. !z && (s = r(s), B = this.Oj(this.b.rh + t[0] + (N ? '.ogg' : '.m4a'), h, t[1], 0 !== i, s)) && (B.Pk(!1), B.play(0 !== i, s, 0, this.pk), this.pk = 0);
  4891. }, h.prototype.Lt = function (t, i, s, h, e) {
  4892. !z && (h = r(h), B = this.Oj(this.b.rh + i.toLowerCase() + (N ? '.ogg' : '.m4a'), e, 1 === t, 0 !== s, h)) && (B.Pk(!1), B.play(0 !== s, h, 0, this.pk), this.pk = 0);
  4893. }, h.prototype.Nt = function (t) {
  4894. if (!z) {
  4895. var i = t[1];
  4896. t = this.b.rh + t[0] + (N ? '.ogg' : '.m4a'), 3 === F ? this.b.pb ? AppMobi.context.loadSound(t) : AppMobi.player.loadSound(t) : 2 !== F && this.Oj(t, '<preload>', i, !1);
  4897. }
  4898. }, h.prototype.eu = function (t, i) {
  4899. var s, h;
  4900. for (S(t), i < 0 && (i = 0), s = 0, h = pt.length; s < h; s++)
  4901. pt[s].vy(i);
  4902. }, h.prototype.Fo = function (t) {
  4903. var i;
  4904. for (S(t), t = 0, i = pt.length; t < i; t++)
  4905. pt[t].stop();
  4906. }, h.prototype.pu = function () {
  4907. var t, i;
  4908. for (t = 0, i = U.length; t < i; t++)
  4909. U[t].stop();
  4910. }, h.prototype.du = function (t, i) {
  4911. var s, h;
  4912. for (S(t), s = 0, h = pt.length; s < h; s++)
  4913. 0 === i ? pt[s].pause() : pt[s].mr();
  4914. }, P.e = new h(), P.g = new function () {
  4915. }();
  4916. }(), function () {
  4917. function i() {
  4918. r && a && window.OfflineClientInfo && window.OfflineClientInfo.SetMessageCallback(function (t) {
  4919. c.Jx(t);
  4920. });
  4921. }
  4922. function t() {
  4923. }
  4924. function s() {
  4925. }
  4926. function h(t) {
  4927. console && console.warn && console.warn('Fullscreen request failed: ', t), u.setSize(window.innerWidth, window.innerHeight);
  4928. }
  4929. function e() {
  4930. }
  4931. var n = vc.prototype;
  4932. n.W = function (t) {
  4933. this.X = t, this.b = t.b;
  4934. };
  4935. var o = n.W.prototype, r = !(o.D = function () {
  4936. }), a = !1;
  4937. document.addEventListener('DOMContentLoaded', function () {
  4938. if (window.C2_RegisterSW && navigator.serviceWorker) {
  4939. var t = document.createElement('script');
  4940. t.onload = function () {
  4941. r = !0, i();
  4942. }, t.src = 'offlineClient.js', document.head.appendChild(t);
  4943. }
  4944. });
  4945. var c = null;
  4946. o.Oq = function () {
  4947. a = !0, i();
  4948. }, n.S = function (t) {
  4949. this.type = t, this.b = t.b;
  4950. }, (o = n.S.prototype).D = function () {
  4951. var i = this;
  4952. window.addEventListener('resize', function () {
  4953. i.b.trigger(vc.prototype.c.Bt, i);
  4954. }), c = this, void 0 !== navigator.onLine && (window.addEventListener('online', function () {
  4955. i.b.trigger(vc.prototype.c.yt, i);
  4956. }), window.addEventListener('offline', function () {
  4957. i.b.trigger(vc.prototype.c.wt, i);
  4958. })), this.b.pb || (document.addEventListener('appMobi.device.update.available', function () {
  4959. i.b.trigger(vc.prototype.c.Wi, i);
  4960. }), document.addEventListener('backbutton', function () {
  4961. i.b.trigger(vc.prototype.c.Ri, i);
  4962. }), document.addEventListener('menubutton', function () {
  4963. i.b.trigger(vc.prototype.c.vo, i);
  4964. }), document.addEventListener('searchbutton', function () {
  4965. i.b.trigger(vc.prototype.c.Ct, i);
  4966. }), document.addEventListener('tizenhwkey', function (t) {
  4967. switch (t.keyName) {
  4968. case 'back':
  4969. !i.b.trigger(vc.prototype.c.Ri, i) && window.tizen && window.tizen.application.getCurrentApplication().exit();
  4970. break;
  4971. case 'menu':
  4972. i.b.trigger(vc.prototype.c.vo, i) || t.preventDefault();
  4973. }
  4974. })), this.b.$j && 'undefined' != typeof Windows ? Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener('backrequested', function (t) {
  4975. i.b.trigger(vc.prototype.c.Ri, i) && (t.handled = !0);
  4976. }) : this.b.Qp && WinJS.Application && (WinJS.Application.onbackclick = function () {
  4977. return !!i.b.trigger(vc.prototype.c.Ri, i);
  4978. }), this.b.No(function (t) {
  4979. t ? i.b.trigger(vc.prototype.c.zt, i) : i.b.trigger(vc.prototype.c.At, i);
  4980. });
  4981. }, o.Jx = function (t) {
  4982. 'downloading-update' === (t = t.data.type) ? this.b.trigger(vc.prototype.c.Ao, this) : 'update-ready' === t || 'update-pending' === t ? this.b.trigger(vc.prototype.c.Wi, this) : 'offline-ready' === t && this.b.trigger(vc.prototype.c.xt, this);
  4983. }, t.prototype.yt = function () {
  4984. return !0;
  4985. }, t.prototype.wt = function () {
  4986. return !0;
  4987. }, t.prototype.Wi = function () {
  4988. return !0;
  4989. }, t.prototype.At = function () {
  4990. return !0;
  4991. }, t.prototype.zt = function () {
  4992. return !0;
  4993. }, t.prototype.Bt = function () {
  4994. return !0;
  4995. }, t.prototype.Ri = function () {
  4996. return !0;
  4997. }, t.prototype.vo = function () {
  4998. return !0;
  4999. }, t.prototype.Ct = function () {
  5000. return !0;
  5001. }, t.prototype.Ao = function () {
  5002. return !0;
  5003. }, t.prototype.Wi = function () {
  5004. return !0;
  5005. }, t.prototype.xt = function () {
  5006. return !0;
  5007. }, n.c = new t();
  5008. var p = !0, u = null;
  5009. s.prototype.St = function (t) {
  5010. this.b.pa ? fa('[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored') : (2 <= t && (t += 1), 6 === t && (t = 2), this.b.gx ? this.b.$w ? debuggerFullscreen(!0) : !this.b.gg && window.nwgui && (window.nwgui.Window.get().enterFullscreen(), this.b.gg = !0, this.b.Fe = 2 <= t ? t : 0) : document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement || document.fullScreen || document.fullScreenElement || (this.b.Fe = 2 <= t ? t : 0, t = document.documentElement, p && (p = !1, u = this.b, t.addEventListener('mozfullscreenerror', h), t.addEventListener('webkitfullscreenerror', h), t.addEventListener('MSFullscreenError', h), t.addEventListener('fullscreenerror', h)), t.requestFullscreen ? t.requestFullscreen() : t.mozRequestFullScreen ? t.mozRequestFullScreen() : t.msRequestFullscreen ? t.msRequestFullscreen() : t.webkitRequestFullScreen && ('undefined' != typeof Element && void 0 !== Element.ALLOW_KEYBOARD_INPUT ? t.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT) : t.webkitRequestFullScreen())));
  5011. }, s.prototype.ys = function (t, i) {
  5012. 'undefined' != typeof console && (0 === t && console.log && console.log(i.toString()), 1 === t && console.warn && console.warn(i.toString()), 2 === t && console.error && console.error(i.toString()));
  5013. }, n.e = new s(), e.prototype.Pt = function (t, i) {
  5014. if (this.b.pa)
  5015. t.la('');
  5016. else {
  5017. var s = RegExp('[?&]' + i + '=([^&]*)').exec(window.location.search);
  5018. s ? t.la(decodeURIComponent(s[1].replace(/\+/g, ' '))) : t.la('');
  5019. }
  5020. }, n.g = new e();
  5021. }(), function () {
  5022. function t() {
  5023. }
  5024. function i() {
  5025. }
  5026. function s() {
  5027. }
  5028. var h = wc.prototype;
  5029. h.W = function (t) {
  5030. this.X = t, this.b = t.b;
  5031. }, h.W.prototype.D = function () {
  5032. }, h.S = function (t) {
  5033. this.type = t, this.b = t.b;
  5034. };
  5035. var e = h.S.prototype;
  5036. e.D = function () {
  5037. this.dd = {}, this.rg = 0;
  5038. }, e.Fb = function () {
  5039. return this.dd;
  5040. }, e.Qb = function (t) {
  5041. for (var i in (this.dd = t, this.rg = 0, this.dd))
  5042. this.dd.hasOwnProperty(i) && this.rg++;
  5043. }, t.prototype.Js = function (t) {
  5044. return this.dd.hasOwnProperty(t);
  5045. }, t.prototype.nl = function () {
  5046. return 0 === this.rg;
  5047. }, h.c = new t(), i.prototype.js = function (t, i) {
  5048. this.dd.hasOwnProperty(t) || this.rg++, this.dd[t] = i;
  5049. }, i.prototype.co = function () {
  5050. Ya(this.dd), this.rg = 0;
  5051. }, h.e = new i(), s.prototype.Hs = function (t, i) {
  5052. this.dd.hasOwnProperty(i) ? t.Kg(this.dd[i]) : t.H(0);
  5053. }, s.prototype.Zs = function (t) {
  5054. t.H(this.rg);
  5055. }, s.prototype.ll = function (t) {
  5056. t.la(JSON.stringify({
  5057. c2dictionary: !0,
  5058. data: this.dd
  5059. }));
  5060. }, h.g = new s();
  5061. }(), function () {
  5062. function t() {
  5063. this.name = '', this.Hg = 0, this.Oa = [];
  5064. }
  5065. function r() {
  5066. return ++a === o.length && o.push(new t()), o[a];
  5067. }
  5068. function e() {
  5069. return a < 0 ? null : o[a];
  5070. }
  5071. function i() {
  5072. }
  5073. function s() {
  5074. }
  5075. function h() {
  5076. }
  5077. var n = sc.prototype;
  5078. n.W = function (t) {
  5079. this.X = t, this.b = t.b;
  5080. }, n.W.prototype.D = function () {
  5081. }, n.S = function (t) {
  5082. this.type = t, this.b = t.b;
  5083. };
  5084. var o = [], a = -1;
  5085. n.S.prototype.D = function () {
  5086. var o = this;
  5087. window.c2_callFunction = function (t, i) {
  5088. var s, h, e, n = r();
  5089. if (n.name = t.toLowerCase(), n.Hg = 0, i)
  5090. for (n.Oa.length = i.length, s = 0, h = i.length; s < h; ++s)
  5091. e = i[s], n.Oa[s] = 'number' == typeof e || 'string' == typeof e ? e : 'boolean' == typeof e && e ? 1 : 0;
  5092. else
  5093. A(n.Oa);
  5094. return o.b.trigger(sc.prototype.c.Ui, o, n.name), a--, n.Hg;
  5095. };
  5096. }, i.prototype.Ui = function (t) {
  5097. var i = e();
  5098. return !!i && mb(t, i.name);
  5099. }, i.prototype.ts = function (t, i, s) {
  5100. var h = e();
  5101. return !!h && (!((t = ta(t)) < 0 || t >= h.Oa.length) && ic(h.Oa[t], i, s));
  5102. }, n.c = new i(), s.prototype.CallFunction = function (t, i) {
  5103. var s = r();
  5104. s.name = t.toLowerCase(), s.Hg = 0, Da(s.Oa, i), this.b.trigger(sc.prototype.c.Ui, this, s.name), a--;
  5105. }, s.prototype.gu = function (t) {
  5106. var i = e();
  5107. i && (i.Hg = t);
  5108. }, n.e = new s(), h.prototype.Ft = function (t, i) {
  5109. i = ta(i);
  5110. var s = e();
  5111. s && 0 <= i && i < s.Oa.length ? t.Kg(s.Oa[i]) : t.H(0);
  5112. }, h.prototype.bo = function (t, i) {
  5113. var s, h, e = r();
  5114. for (e.name = i.toLowerCase(), e.Hg = 0, A(e.Oa), s = 2, h = arguments.length; s < h; s++)
  5115. e.Oa.push(arguments[s]);
  5116. this.b.trigger(sc.prototype.c.Ui, this, e.name), a--, t.Kg(e.Hg);
  5117. }, n.g = new h();
  5118. }(), function () {
  5119. function t() {
  5120. }
  5121. var i = xc.prototype;
  5122. i.W = function (t) {
  5123. this.X = t, this.b = t.b;
  5124. }, i.W.prototype.D = function () {
  5125. }, i.S = function (t) {
  5126. this.type = t, this.b = t.b, this.qg = Array(256), this.Ci = Array(256), this.me = 0;
  5127. };
  5128. var s = i.S.prototype;
  5129. s.D = function () {
  5130. var i = this;
  5131. this.b.pa || (jQuery(document).keydown(function (t) {
  5132. i.Ex(t);
  5133. }), jQuery(document).keyup(function (t) {
  5134. i.Fx(t);
  5135. }));
  5136. };
  5137. var e = [32,33,34,35,36,37,38,39,40,44];
  5138. s.Ex = function (t) {
  5139. var i = !1;
  5140. if (window != window.top && -1 < e.indexOf(t.which) && (t.preventDefault(), i = !0, t.stopPropagation()), this.qg[t.which])
  5141. this.Ci[t.which] && !i && t.preventDefault();
  5142. else {
  5143. this.qg[t.which] = !0, this.me = t.which, this.b.xc = !0, this.b.trigger(xc.prototype.c.ht, this);
  5144. var s = this.b.trigger(xc.prototype.c.qt, this), h = this.b.trigger(xc.prototype.c.tt, this);
  5145. this.b.xc = !1, (s || h) && (this.Ci[t.which] = !0, i || t.preventDefault());
  5146. }
  5147. }, s.Fx = function (t) {
  5148. this.qg[t.which] = !1, this.me = t.which, this.b.xc = !0, this.b.trigger(xc.prototype.c.no, this);
  5149. var i = this.b.trigger(xc.prototype.c.ro, this), s = this.b.trigger(xc.prototype.c.qo, this);
  5150. this.b.xc = !1, (i || s || this.Ci[t.which]) && (this.Ci[t.which] = !0, t.preventDefault());
  5151. }, s.Cg = function () {
  5152. var t;
  5153. for (t = 0; t < 256; ++t)
  5154. if (this.qg[t]) {
  5155. this.qg[t] = !1, this.me = t, this.b.trigger(xc.prototype.c.no, this);
  5156. var i = this.b.trigger(xc.prototype.c.ro, this), s = this.b.trigger(xc.prototype.c.qo, this);
  5157. (i || s) && (this.Ci[t] = !0);
  5158. }
  5159. }, s.Fb = function () {
  5160. return { triggerKey: this.me };
  5161. }, s.Qb = function (t) {
  5162. this.me = t.triggerKey;
  5163. }, t.prototype.Rs = function (t) {
  5164. return this.qg[t];
  5165. }, t.prototype.qt = function (t) {
  5166. return t === this.me;
  5167. }, t.prototype.ht = function () {
  5168. return !0;
  5169. }, t.prototype.no = function () {
  5170. return !0;
  5171. }, t.prototype.ro = function (t) {
  5172. return t === this.me;
  5173. }, t.prototype.tt = function (t) {
  5174. return t === this.me;
  5175. }, t.prototype.qo = function (t) {
  5176. return t === this.me;
  5177. }, i.c = new t(), i.e = new function () {
  5178. }(), i.g = new function () {
  5179. }();
  5180. }(), function () {
  5181. function v(t, i, s, h, e, n, o, r, a, c) {
  5182. t.save(), t.fillStyle = i;
  5183. var p = n % h;
  5184. (i = e % s) < 0 && (i += s), p < 0 && (p += h), t.translate(i + a, p + c), t.fillRect(e - i - a, n - p - c, o, r), t.restore();
  5185. }
  5186. var t = Y.prototype;
  5187. t.W = function (t) {
  5188. this.X = t, this.b = t.b;
  5189. };
  5190. var i = t.W.prototype;
  5191. i.D = function () {
  5192. this.B || (this.q = new Image(), this.q.Ql = this.Yk, this.b.gl(this.q, this.wi), this.Hi = this.Ki = this.Ji = this.Ii = this.Xg = this.r = this.So = this.Pr = this.nr = this.hq = this.em = null);
  5193. }, i.ei = function () {
  5194. this.B || (this.Hi = this.Ki = this.Ji = this.Ii = this.Xg = this.r = null);
  5195. }, i.fi = function () {
  5196. this.B || !this.d.length || this.r || (this.r = this.b.k.yc(this.q, !0, this.b.qa, this.Ue));
  5197. }, i.Ai = function () {
  5198. this.B || this.d.length || !this.b.k || (this.b.k.deleteTexture(this.r), this.b.k.deleteTexture(this.Xg), this.b.k.deleteTexture(this.Ii), this.b.k.deleteTexture(this.Ji), this.b.k.deleteTexture(this.Ki), this.b.k.deleteTexture(this.Hi), this.Hi = this.Ki = this.Ji = this.Ii = this.Xg = this.r = null);
  5199. }, i.Gd = function (t, i, s, h) {
  5200. var e = document.createElement('canvas');
  5201. return s -= t, h -= i, e.width = s, e.height = h, e.getContext('2d').drawImage(this.q, t, i, s, h, 0, 0, s, h), e;
  5202. }, i.Tu = function (t, i, s, h) {
  5203. var e = this.q.width, n = this.q.height, o = e - i, r = n - h;
  5204. if (this.b.k) {
  5205. if (!this.Xg) {
  5206. var a = this.b.k, c = this.b.qa, p = this.Ue;
  5207. t < o && s < r && (this.Xg = a.yc(this.Gd(t, s, o, r), !0, c, p)), 0 < t && s < r && (this.Ii = a.yc(this.Gd(0, s, t, r), !0, c, p, 'repeat-y')), 0 < i && s < r && (this.Ji = a.yc(this.Gd(o, s, e, r), !0, c, p, 'repeat-y')), 0 < s && t < o && (this.Ki = a.yc(this.Gd(t, 0, o, s), !0, c, p, 'repeat-x')), 0 < h && t < o && (this.Hi = a.yc(this.Gd(t, r, o, n), !0, c, p, 'repeat-x'));
  5208. }
  5209. } else
  5210. this.em || (a = this.b.Ba, t < o && s < r && (this.em = a.createPattern(this.Gd(t, s, o, r), 'repeat')), 0 < t && s < r && (this.hq = a.createPattern(this.Gd(0, s, t, r), 'repeat')), 0 < i && s < r && (this.nr = a.createPattern(this.Gd(o, s, e, r), 'repeat')), 0 < s && t < o && (this.Pr = a.createPattern(this.Gd(t, 0, o, s), 'repeat')), 0 < h && t < o && (this.So = a.createPattern(this.Gd(t, r, o, n), 'repeat')));
  5211. }, t.S = function (t) {
  5212. this.type = t, this.b = t.b;
  5213. }, (i = t.S.prototype).D = function () {
  5214. this.Om = this.A[0], this.wn = this.A[1], this.Ln = this.A[2], this.Hl = this.A[3], this.Cj = this.A[4], this.fill = this.A[5], this.visible = 0 === this.A[6], this.qr = 0 !== this.A[8], this.Bc ? this.de.set(0, 0, 0, 0) : this.de = new wa(0, 0, 0, 0), this.b.k && !this.type.r && (this.type.r = this.b.k.yc(this.type.q, !1, this.b.qa, this.type.Ue)), this.type.Tu(this.Om, this.wn, this.Ln, this.Hl);
  5215. }, i.ed = function (t) {
  5216. var i = this.type.q, s = this.Om, h = this.wn, e = this.Ln, n = this.Hl, o = i.width, r = i.height, a = o - h, c = r - n;
  5217. t.globalAlpha = this.opacity, t.save();
  5218. var p = this.x, u = this.y, f = this.width, l = this.height;
  5219. this.b.Ac && (p = Math.round(p), u = Math.round(u));
  5220. var b = -(this.Nb * this.width), d = -(this.Ob * this.height), g = b % o, y = d % r;
  5221. g < 0 && (g += o), y < 0 && (y += r), t.translate(p + g, u + y), o = b - g, d -= y, y = this.qr ? 1 : 0, 0 < s && 0 < e && t.drawImage(i, 0, 0, s + y, e + y, o, d, s + y, e + y), 0 < h && 0 < e && t.drawImage(i, a - y, 0, h + y, e + y, o + f - h - y, d, h + y, e + y), 0 < h && 0 < n && t.drawImage(i, a - y, c - y, h + y, n + y, o + f - h - y, d + l - n - y, h + y, n + y), 0 < s && 0 < n && t.drawImage(i, 0, c - y, s + y, n + y, o, d + l - n - y, s + y, n + y), 0 === this.Cj ? (y = 2 === this.fill ? 0 : y, 0 < s && e < c && v(t, this.type.hq, s, c - e, o, d + e, s + y, l - e - n, 0, 0), 0 < h && e < c && v(t, this.type.nr, h, c - e, o + f - h - y, d + e, h + y, l - e - n, y, 0), 0 < e && s < a && v(t, this.type.Pr, a - s, e, o + s, d, f - s - h, e + y, 0, 0), 0 < n && s < a && v(t, this.type.So, a - s, n, o + s, d + l - n - y, f - s - h, n + y, 0, y)) : 1 === this.Cj && (0 < s && e < c && 0 < l - e - n && t.drawImage(i, 0, e, s, c - e, o, d + e, s, l - e - n), 0 < h && e < c && 0 < l - e - n && t.drawImage(i, a, e, h, c - e, o + f - h, d + e, h, l - e - n), 0 < e && s < a && 0 < f - s - h && t.drawImage(i, s, 0, a - s, e, o + s, d, f - s - h, e), 0 < n && s < a && 0 < f - s - h && t.drawImage(i, s, c, a - s, n, o + s, d + l - n, f - s - h, n)), e < c && s < a && (0 === this.fill ? v(t, this.type.em, a - s, c - e, o + s, d + e, f - s - h, l - e - n, 0, 0) : 1 === this.fill && 0 < f - s - h && 0 < l - e - n && t.drawImage(i, s, e, a - s, c - e, o + s, d + e, f - s - h, l - e - n)), t.restore();
  5222. }, i.Td = function (t, i, s, h, e, n, o, r, a, c) {
  5223. t.Rb(i);
  5224. var p = this.de;
  5225. p.left = s / i.bd, p.top = h / i.ad, p.right = (s + e) / i.bd, p.bottom = (h + n) / i.ad, t.Sc(o, r, o + a, r, o + a, r + c, o, r + c, p);
  5226. }, i.xi = function (t, i, s, h, e, n, o, r) {
  5227. t.Rb(i);
  5228. var a = this.de;
  5229. a.left = -o / i.bd, a.top = -r / i.ad, a.right = (e - o) / i.bd, a.bottom = (n - r) / i.ad, t.Sc(s, h, s + e, h, s + e, h + n, s, h + n, a);
  5230. }, i.Ce = function (t) {
  5231. this.Kb(t);
  5232. }, i.Kb = function (t) {
  5233. var i = this.Om, s = this.wn, h = this.Ln, e = this.Hl, n = this.type.q.width - s, o = this.type.q.height - e;
  5234. t.Se(this.opacity);
  5235. var r = (a = this.Xb).Fa, a = a.Ga, c = this.width, p = this.height;
  5236. this.b.Ac && (r = Math.round(r), a = Math.round(a));
  5237. var u = this.qr ? 1 : 0;
  5238. 0 < i && 0 < h && this.Td(t, this.type.r, 0, 0, i + u, h + u, r, a, i + u, h + u), 0 < s && 0 < h && this.Td(t, this.type.r, n - u, 0, s + u, h + u, r + c - s - u, a, s + u, h + u), 0 < s && 0 < e && this.Td(t, this.type.r, n - u, o - u, s + u, e + u, r + c - s - u, a + p - e - u, s + u, e + u), 0 < i && 0 < e && this.Td(t, this.type.r, 0, o - u, i + u, e + u, r, a + p - e - u, i + u, e + u), 0 === this.Cj ? (u = 2 === this.fill ? 0 : u, 0 < i && h < o && this.xi(t, this.type.Ii, r, a + h, i + u, p - h - e, 0, 0), 0 < s && h < o && this.xi(t, this.type.Ji, r + c - s - u, a + h, s + u, p - h - e, u, 0), 0 < h && i < n && this.xi(t, this.type.Ki, r + i, a, c - i - s, h + u, 0, 0), 0 < e && i < n && this.xi(t, this.type.Hi, r + i, a + p - e - u, c - i - s, e + u, 0, u)) : 1 === this.Cj && (0 < i && h < o && this.Td(t, this.type.r, 0, h, i, o - h, r, a + h, i, p - h - e), 0 < s && h < o && this.Td(t, this.type.r, n, h, s, o - h, r + c - s, a + h, s, p - h - e), 0 < h && i < n && this.Td(t, this.type.r, i, 0, n - i, h, r + i, a, c - i - s, h), 0 < e && i < n && this.Td(t, this.type.r, i, o, n - i, e, r + i, a + p - e, c - i - s, e)), h < o && i < n && (0 === this.fill ? this.xi(t, this.type.Xg, r + i, a + h, c - i - s, p - h - e, 0, 0) : 1 === this.fill && this.Td(t, this.type.r, i, h, n - i, o - h, r + i, a + h, c - i - s, p - h - e));
  5239. }, t.c = new function () {
  5240. }(), t.e = new function () {
  5241. }(), t.g = new function () {
  5242. }();
  5243. }(), function () {
  5244. function c() {
  5245. if (0 === this.Vl.length) {
  5246. var t = document.createElement('canvas');
  5247. t.width = this.width, t.height = this.height;
  5248. var i = t.getContext('2d');
  5249. this.Mg ? i.drawImage(this.q, this.Ag, this.Bg, this.width, this.height, 0, 0, this.width, this.height) : i.drawImage(this.q, 0, 0, this.width, this.height), this.Vl = t.toDataURL('image/png');
  5250. }
  5251. return this.Vl;
  5252. }
  5253. function t() {
  5254. }
  5255. function h(t, i, s) {
  5256. if (!t)
  5257. return !1;
  5258. var h, e, n, o = 0 !== i || 0 !== s, r = !1, a = (c = this.b.Qj()).type, c = c.fg, p = t.N();
  5259. for (n = this.b.Ea().Ia.kc, p = p.R ? (this.Aa(), d.Vf(this.Qa), d.offset(i, s), this.b.ow(this.j, t, d, b), b) : !n || this.b.Zw() && !p.I.length && p.d.length ? p.d : p.I, l = a !== (u = t) && !c, o && (h = this.x, e = this.y, this.x += i, this.y += s, this.za()), i = 0, s = p.length; i < s; i++)
  5260. if (n = p[i], this.b.Ey(this, n)) {
  5261. if (r = !0, c)
  5262. break;
  5263. a !== t && f.add(n);
  5264. }
  5265. return o && (this.x = h, this.y = e, this.za()), A(b), r;
  5266. }
  5267. function i() {
  5268. }
  5269. function s() {
  5270. }
  5271. var e = V.prototype;
  5272. e.W = function (t) {
  5273. this.X = t, this.b = t.b;
  5274. };
  5275. var n = e.W.prototype;
  5276. n.D = function () {
  5277. var t, i, s, h, e, n, o, r, a;
  5278. if (!this.B)
  5279. for (this.Xc = [], this.yh = !1, t = 0, i = this.gc.length; t < i; t++) {
  5280. for (e = this.gc[t], (o = {}).name = e[0], o.speed = e[1], o.loop = e[2], o.un = e[3], o.vn = e[4], o.cr = e[5], o.Y = e[6], o.frames = [], s = 0, h = e[7].length; s < h; s++)
  5281. n = e[7][s], (r = {}).wi = n[0], r.Yk = n[1], r.Ag = n[2], r.Bg = n[3], r.width = n[4], r.height = n[5], r.duration = n[6], r.Nb = n[7], r.Ob = n[8], r.wm = n[9], r.yk = n[10], r.dr = n[11], r.Mg = 0 !== r.width, r.Vl = '', r.uz = c, a = {
  5282. left: 0,
  5283. top: 0,
  5284. right: 1,
  5285. bottom: 1
  5286. }, r.Dn = a, r.r = null, (a = this.b.gw(n[0])) ? r.q = a : (r.q = new Image(), r.q.Qu = n[0], r.q.Ql = n[1], r.q.Lu = null, this.b.gl(r.q, n[0])), o.frames.push(r), this.Xc.push(r);
  5287. this.gc[t] = o;
  5288. }
  5289. }, n.Yr = function () {
  5290. var t, i, s;
  5291. for (t = 0, i = this.d.length; t < i; t++)
  5292. (s = this.d[t]).vj = s.Sa.r;
  5293. }, n.ei = function () {
  5294. if (!this.B) {
  5295. var t, i, s;
  5296. for (t = 0, i = this.Xc.length; t < i; ++t)
  5297. (s = this.Xc[t]).q.Lu = null, s.r = null;
  5298. this.yh = !1, this.Yr();
  5299. }
  5300. }, n.fi = function () {
  5301. if (!this.B && this.d.length) {
  5302. var t, i, s;
  5303. for (t = 0, i = this.Xc.length; t < i; ++t)
  5304. (s = this.Xc[t]).r = this.b.k.yc(s.q, !1, this.b.qa, s.dr);
  5305. this.Yr();
  5306. }
  5307. }, n.Pm = function () {
  5308. if (!this.B && !this.yh && this.b.k) {
  5309. var t, i, s;
  5310. for (t = 0, i = this.Xc.length; t < i; ++t)
  5311. (s = this.Xc[t]).r = this.b.k.yc(s.q, !1, this.b.qa, s.dr);
  5312. this.yh = !0;
  5313. }
  5314. }, n.Ai = function () {
  5315. if (!this.B && !this.d.length && this.yh) {
  5316. var t, i, s;
  5317. for (t = 0, i = this.Xc.length; t < i; ++t)
  5318. s = this.Xc[t], this.b.k.deleteTexture(s.r), s.r = null;
  5319. this.yh = !1;
  5320. }
  5321. };
  5322. var o = [];
  5323. n.Ck = function (t) {
  5324. var i, s, h;
  5325. for (A(o), i = 0, s = this.Xc.length; i < s; ++i)
  5326. h = this.Xc[i].q, -1 === o.indexOf(h) && (t.drawImage(h, 0, 0), o.push(h));
  5327. }, e.S = function (t) {
  5328. this.type = t, this.b = t.b, t = this.type.gc[0].frames[0].yk, this.Bc ? this.ga.oi(t) : this.ga = new gb(t);
  5329. };
  5330. var r = e.S.prototype;
  5331. r.D = function () {
  5332. this.visible = 0 === this.A[0], this.zh = this.uf = !1, this.$e = 0 !== this.A[3], this.xa = this.sp(this.A[1]) || this.type.gc[0], this.C = this.A[2], this.C < 0 && (this.C = 0), this.C >= this.xa.frames.length && (this.C = this.xa.frames.length - 1);
  5333. var t = this.xa.frames[this.C];
  5334. this.ga.oi(t.yk), this.Nb = t.Nb, this.Ob = t.Ob, this.Wf = this.xa.speed, this.Be = this.xa.vn, 1 === this.type.gc.length && 1 === this.type.gc[0].frames.length || 0 === this.Wf || (this.b.If(this), this.uf = !0), this.Bc ? this.Yc.reset() : this.Yc = new eb(), this.ud = this.Yc.Z, this.Ld = !0, this.Md = 0, this.Ye = !0, this.Tf = this.Oo = '', this.Xo = 0, this.hh = -1, this.type.Pm();
  5335. var i, s, h, e, n, o, r;
  5336. t = 0;
  5337. for (i = this.type.gc.length; t < i; t++)
  5338. for (s = 0, h = (e = this.type.gc[t]).frames.length; s < h; s++)
  5339. 0 === (n = e.frames[s]).width && (n.width = n.q.width, n.height = n.q.height), n.Mg && (r = n.q, (o = n.Dn).left = n.Ag / r.width, o.top = n.Bg / r.height, o.right = (n.Ag + n.width) / r.width, o.bottom = (n.Bg + n.height) / r.height, 0 === n.Ag && 0 === n.Bg && n.width === r.width && n.height === r.height && (n.Mg = !1));
  5340. this.Sa = this.xa.frames[this.C], this.vj = this.Sa.r;
  5341. }, r.Fb = function () {
  5342. var t = {
  5343. a: this.xa.Y,
  5344. f: this.C,
  5345. cas: this.Wf,
  5346. fs: this.ud,
  5347. ar: this.Md,
  5348. at: this.Yc.Z,
  5349. rt: this.Be
  5350. };
  5351. return this.Ld || (t.ap = this.Ld), this.Ye || (t.af = this.Ye), t;
  5352. }, r.Qb = function (t) {
  5353. var i = this.kw(t.a);
  5354. i && (this.xa = i), this.C = t.f, this.C < 0 && (this.C = 0), this.C >= this.xa.frames.length && (this.C = this.xa.frames.length - 1), this.Wf = t.cas, this.ud = t.fs, this.Md = t.ar, this.Yc.reset(), this.Yc.Z = t.at, this.Ld = !t.hasOwnProperty('ap') || t.ap, this.Ye = !t.hasOwnProperty('af') || t.af, t.hasOwnProperty('rt') ? this.Be = t.rt : this.Be = this.xa.vn, this.Sa = this.xa.frames[this.C], this.vj = this.Sa.r, this.ga.oi(this.Sa.yk), this.Nb = this.Sa.Nb, this.Ob = this.Sa.Ob;
  5355. }, r.Dl = function (t) {
  5356. this.C = t ? 0 : this.xa.frames.length - 1, this.Ld = !1, this.Oo = this.xa.name, this.zh = !0, this.b.trigger(V.prototype.c.gt, this), this.b.trigger(V.prototype.c.mo, this), this.zh = !1, this.Md = 0;
  5357. }, r.El = function () {
  5358. return this.Yc.Z;
  5359. }, r.mb = function () {
  5360. this.Yc.add(this.b.Rj(this)), this.Tf.length && this.dp(), 0 <= this.hh && this.Zl();
  5361. var t = this.Yc.Z, i = this.xa, s = i.frames[this.C], h = s.duration / this.Wf;
  5362. this.Ld && t >= this.ud + h && (this.Ye ? this.C++ : this.C--, this.ud += h, this.C >= i.frames.length && (i.cr ? (this.Ye = !1, this.C = i.frames.length - 2) : i.loop ? this.C = this.Be : (this.Md++, this.Md >= i.un ? this.Dl(!1) : this.C = this.Be)), this.C < 0 && (i.cr ? (this.C = 1, this.Ye = !0, i.loop || (this.Md++, this.Md >= i.un && this.Dl(!0))) : i.loop ? this.C = this.Be : (this.Md++, this.Md >= i.un ? this.Dl(!0) : this.C = this.Be)), this.C < 0 ? this.C = 0 : this.C >= i.frames.length && (this.C = i.frames.length - 1), t > this.ud + i.frames[this.C].duration / this.Wf && (this.ud = t), t = i.frames[this.C], this.Of(s, t), this.b.fa = !0);
  5363. }, r.sp = function (t) {
  5364. var i, s, h;
  5365. for (i = 0, s = this.type.gc.length; i < s; i++)
  5366. if (h = this.type.gc[i], mb(h.name, t))
  5367. return h;
  5368. return null;
  5369. }, r.kw = function (t) {
  5370. var i, s, h;
  5371. for (i = 0, s = this.type.gc.length; i < s; i++)
  5372. if ((h = this.type.gc[i]).Y === t)
  5373. return h;
  5374. return null;
  5375. }, r.dp = function () {
  5376. var t = this.xa.frames[this.C], i = this.sp(this.Tf);
  5377. this.Tf = '', !i || mb(i.name, this.xa.name) && this.Ld || (this.xa = i, this.Wf = i.speed, this.Be = i.vn, this.C < 0 && (this.C = 0), this.C >= this.xa.frames.length && (this.C = this.xa.frames.length - 1), 1 === this.Xo && (this.C = 0), this.Ld = !0, this.ud = this.Yc.Z, this.Ye = !0, this.Of(t, this.xa.frames[this.C]), this.b.fa = !0);
  5378. }, r.Zl = function () {
  5379. var t = this.xa.frames[this.C], i = this.C;
  5380. this.C = ta(this.hh), this.C < 0 && (this.C = 0), this.C >= this.xa.frames.length && (this.C = this.xa.frames.length - 1), i !== this.C && (this.Of(t, this.xa.frames[this.C]), this.ud = this.Yc.Z, this.b.fa = !0), this.hh = -1;
  5381. }, r.Of = function (t, i) {
  5382. var s = t.width, h = t.height, e = i.width, n = i.height;
  5383. for (s != e && (this.width *= e / s), h != n && (this.height *= n / h), this.Nb = i.Nb, this.Ob = i.Ob, this.ga.oi(i.yk), this.za(), this.Sa = i, this.vj = i.r, s = 0, h = this.L.length; s < h; s++)
  5384. (e = this.L[s]).Kx && e.Kx(t, i);
  5385. this.b.trigger(V.prototype.c.Of, this);
  5386. }, r.ed = function (t) {
  5387. t.globalAlpha = this.opacity;
  5388. var i = this.Sa, s = i.Mg, h = i.q, e = this.x, n = this.y, o = this.width, r = this.height;
  5389. if (0 === this.m && 0 <= o && 0 <= r)
  5390. e -= this.Nb * o, n -= this.Ob * r, this.b.Ac && (e = Math.round(e), n = Math.round(n)), s ? t.drawImage(h, i.Ag, i.Bg, i.width, i.height, e, n, o, r) : t.drawImage(h, e, n, o, r);
  5391. else {
  5392. this.b.Ac && (e = Math.round(e), n = Math.round(n)), t.save();
  5393. var a = 0 < o ? 1 : -1, c = 0 < r ? 1 : -1;
  5394. t.translate(e, n), 1 == a && 1 == c || t.scale(a, c), t.rotate(this.m * a * c), e = 0 - this.Nb * na(o), n = 0 - this.Ob * na(r), s ? t.drawImage(h, i.Ag, i.Bg, i.width, i.height, e, n, na(o), na(r)) : t.drawImage(h, e, n, na(o), na(r)), t.restore();
  5395. }
  5396. }, r.Ce = function (t) {
  5397. this.Kb(t);
  5398. }, r.Kb = function (t) {
  5399. t.Rb(this.vj), t.Se(this.opacity);
  5400. var i = this.Sa, s = this.Xb;
  5401. if (this.b.Ac) {
  5402. var h = Math.round(this.x) - this.x, e = Math.round(this.y) - this.y;
  5403. i.Mg ? t.Sc(s.Fa + h, s.Ga + e, s.nb + h, s.ob + e, s.bb + h, s.cb + e, s.$a + h, s.ab + e, i.Dn) : t.ji(s.Fa + h, s.Ga + e, s.nb + h, s.ob + e, s.bb + h, s.cb + e, s.$a + h, s.ab + e);
  5404. } else
  5405. i.Mg ? t.Sc(s.Fa, s.Ga, s.nb, s.ob, s.bb, s.cb, s.$a, s.ab, i.Dn) : t.ji(s.Fa, s.Ga, s.nb, s.ob, s.bb, s.cb, s.$a, s.ab);
  5406. }, r.sw = function (t) {
  5407. var i, s, h = this.Sa;
  5408. for (i = 0, s = h.wm.length; i < s; i++)
  5409. if (mb(t, h.wm[i][0]))
  5410. return i;
  5411. return -1;
  5412. }, r.nf = function (t, i) {
  5413. var s, h = (e = this.Sa).wm;
  5414. if (s = z(t) ? this.sw(t) : t - 1, (s = ta(s)) < 0 || s >= h.length)
  5415. return i ? this.x : this.y;
  5416. var e, n = (h[s][1] - e.Nb) * this.width, o = (h = ((h = h[s][2]) - e.Ob) * this.height, n * (e = Math.cos(this.m)) - h * (s = Math.sin(this.m)));
  5417. h = h * e + n * s, n = o + this.x, h += this.y;
  5418. return i ? n : h;
  5419. };
  5420. var u = null, f = new ca(), l = !1, b = [], d = new wa(0, 0, 0, 0);
  5421. n.finish = function (t) {
  5422. if (l) {
  5423. if (t) {
  5424. var i = this.b.Ea().Ia.kc;
  5425. t = u.N();
  5426. var s, h, e = f.We();
  5427. if (t.R) {
  5428. for (t.R = !1, A(t.d), s = 0, h = e.length; s < h; ++s)
  5429. t.d[s] = e[s];
  5430. if (i)
  5431. for (A(t.I), s = 0, h = u.d.length; s < h; ++s)
  5432. e = u.d[s], f.contains(e) || t.I.push(e);
  5433. } else if (i)
  5434. for (i = t.d.length, s = 0, h = e.length; s < h; ++s)
  5435. t.d[i + s] = e[s], Ia(t.I, e[s]);
  5436. else
  5437. Da(t.d, e);
  5438. u.Gc();
  5439. }
  5440. f.clear(), l = !1;
  5441. }
  5442. }, t.prototype.Us = function (t) {
  5443. return h.call(this, t, 0, 0);
  5444. }, t.prototype.Vs = function (t, i, s) {
  5445. return h.call(this, t, i, s);
  5446. }, t.prototype.Ms = function (t) {
  5447. return this.Tf.length ? mb(this.Tf, t) : mb(this.xa.name, t);
  5448. }, t.prototype.mo = function (t) {
  5449. return mb(this.Oo, t);
  5450. }, t.prototype.gt = function () {
  5451. return !0;
  5452. }, t.prototype.Of = function () {
  5453. return !0;
  5454. }, e.c = new t(), i.prototype.mu = function (t, i, s) {
  5455. if (t && i && (i = this.b.Rl(t, i, this.nf(s, !0), this.nf(s, !1)))) {
  5456. var h, e, n;
  5457. if (void 0 !== i.m && (i.m = this.m, i.za()), this.b.wc++, this.b.trigger(Object.getPrototypeOf(t.X).c.Jd, i), i.Ab)
  5458. for (h = 0, e = i.siblings.length; h < e; h++)
  5459. n = i.siblings[h], this.b.trigger(Object.getPrototypeOf(n.type.X).c.Jd, n);
  5460. if (this.b.wc--, h = this.b.pw(), s = !1, (ha(h.ja.Spawn_LastExec) || h.ja.Spawn_LastExec < this.b.kf) && (s = !0, h.ja.Spawn_LastExec = this.b.kf), t != this.type && ((t = t.N()).R = !1, s ? (A(t.d), t.d[0] = i) : t.d.push(i), i.Ab))
  5461. for (h = 0, e = i.siblings.length; h < e; h++)
  5462. (t = (n = i.siblings[h]).type.N()).R = !1, s ? (A(t.d), t.d[0] = n) : t.d.push(n);
  5463. }
  5464. }, i.prototype.qu = function () {
  5465. this.Ld = !1;
  5466. }, i.prototype.ou = function (t) {
  5467. this.Ld = !0, this.ud = this.Yc.Z, 1 === t && 0 !== this.C && (this.hh = 0, this.zh || this.Zl()), this.uf || (this.b.If(this), this.uf = !0);
  5468. }, i.prototype.Xt = function (t, i) {
  5469. this.Tf = t, this.Xo = i, this.uf || (this.b.If(this), this.uf = !0), this.zh || this.dp();
  5470. }, i.prototype.Yt = function (t) {
  5471. this.hh = t, this.uf || (this.b.If(this), this.uf = !0), this.zh || this.Zl();
  5472. }, i.prototype.yl = function (t) {
  5473. var i = this.Sa, s = i.width * t * (this.width < 0 ? -1 : 1);
  5474. t = i.height * t * (this.height < 0 ? -1 : 1), this.width === s && this.height === t || (this.width = s, this.height = t, this.za());
  5475. }, e.e = new i(), s.prototype.Ks = function (t, i) {
  5476. t.n(this.nf(i, !0));
  5477. }, s.prototype.Ls = function (t, i) {
  5478. t.n(this.nf(i, !1));
  5479. }, s.prototype.jo = function (t) {
  5480. t.n(this.Sa.width);
  5481. }, s.prototype.io = function (t) {
  5482. t.n(this.Sa.height);
  5483. }, e.g = new s();
  5484. }(), function () {
  5485. function b(t, i) {
  5486. return t.length ? t.pop() : new i();
  5487. }
  5488. function o(t, i, s) {
  5489. if (s) {
  5490. var h;
  5491. for (s = 0, h = i.length; s < h; s++)
  5492. t.length < u && t.push(i[s]);
  5493. A(i);
  5494. } else
  5495. for (h in i)
  5496. Object.prototype.hasOwnProperty.call(i, h) && (t.length < u && t.push(i[h]), delete i[h]);
  5497. }
  5498. function p(t, i, s) {
  5499. var h = t.zf;
  5500. s = s.replace(/\s\s*$/, ''), i >= h.length && h.push(b(f, Object)), (i = h[i]).text = s, i.width = t.Wm(s), t.Qg = pa(t.Qg, i.width);
  5501. }
  5502. function t() {
  5503. }
  5504. var i = yc.prototype;
  5505. i.D = function () {
  5506. }, i.W = function (t) {
  5507. this.X = t, this.b = t.b;
  5508. };
  5509. var s = i.W.prototype;
  5510. s.D = function () {
  5511. this.B || (this.q = new Image(), this.b.gl(this.q, this.wi), this.r = null);
  5512. }, s.ei = function () {
  5513. this.B || (this.r = null);
  5514. }, s.fi = function () {
  5515. var t, i;
  5516. if (!this.B && this.d.length)
  5517. for (this.r || (this.r = this.b.k.yc(this.q, !1, this.b.qa, this.Ue)), t = 0, i = this.d.length; t < i; t++)
  5518. this.d[t].r = this.r;
  5519. }, s.Ai = function () {
  5520. this.B || this.d.length || !this.r || (this.b.k.deleteTexture(this.r), this.r = null);
  5521. }, s.Ck = function (t) {
  5522. t.drawImage(this.q, 0, 0);
  5523. }, i.S = function (t) {
  5524. this.type = t, this.b = t.b;
  5525. }, (s = i.S.prototype).Ef = function () {
  5526. o(f, this.zf, !0), o(d, this.pj, !1), o(g, this.qj, !1), Ya(this.xe);
  5527. }, s.D = function () {
  5528. this.q = this.type.q, this.oj = this.A[0], this.we = this.A[1], this.characterSet = this.A[2], this.text = this.A[3], this.rd = this.A[4], this.visible = 0 === this.A[5], this.xh = this.A[6] / 2, this.el = this.A[7] / 2, this.Ty = 0 === this.A[9], this.Uf = this.A[10], this.lineHeight = this.A[11], this.Gf = this.Qg = 0, this.Bc ? (A(this.zf), Ya(this.pj), Ya(this.qj), Ya(this.xe)) : (this.zf = [], this.pj = {}, this.qj = {}, this.xe = {}), this.Hf = !0, this.Mm = this.width, this.b.k && (this.type.r || (this.type.r = this.b.k.yc(this.type.q, !1, this.b.qa, this.type.Ue)), this.r = this.type.r), this.nu();
  5529. }, s.Fb = function () {
  5530. var t, i = {
  5531. t: this.text,
  5532. csc: this.rd,
  5533. csp: this.Uf,
  5534. lh: this.lineHeight,
  5535. tw: this.Qg,
  5536. th: this.Gf,
  5537. lrt: this.mx,
  5538. ha: this.xh,
  5539. va: this.el,
  5540. cw: {}
  5541. };
  5542. for (t in this.xe)
  5543. i.cw[t] = this.xe[t];
  5544. return i;
  5545. }, s.Qb = function (t) {
  5546. for (var i in (this.text = t.t, this.rd = t.csc, this.Uf = t.csp, this.lineHeight = t.lh, this.Qg = t.tw, this.Gf = t.th, this.mx = t.lrt, t.hasOwnProperty('ha') && (this.xh = t.ha), t.hasOwnProperty('va') && (this.el = t.va), t.cw))
  5547. this.xe[i] = t.cw[i];
  5548. this.Hf = !0, this.Mm = this.width;
  5549. };
  5550. var u = 1000, f = [], d = [], g = [];
  5551. s.nu = function () {
  5552. for (var t = (s = this.q).width, i = s.height, s = this.oj, h = this.we, e = s / t, n = h / i, o = this.characterSet, r = (t = Math.floor(t / s), i = Math.floor(i / h), 0); r < o.length && !(t * i <= r); r++) {
  5553. var a = r % t, c = Math.floor(r / t), p = o.charAt(r);
  5554. if (this.b.k) {
  5555. var u = this.qj, f = a * e, l = c * n;
  5556. a = (a + 1) * e, c = (c + 1) * n;
  5557. void 0 === u[p] && (u[p] = b(g, wa)), u[p].left = f, u[p].top = l, u[p].right = a, u[p].bottom = c;
  5558. } else
  5559. a *= s, c *= h, f = s, l = h, void 0 === (u = this.pj)[p] && (u[p] = b(d, Object)), u[p].x = a, u[p].y = c, u[p].cs = f, u[p].Ap = l;
  5560. }
  5561. };
  5562. var l = [];
  5563. i.tu = function (t) {
  5564. A(l);
  5565. for (var i, s = '', h = 0; h < t.length;)
  5566. if ('\n' === (i = t.charAt(h)))
  5567. s.length && (l.push(s), s = ''), l.push('\n'), ++h;
  5568. else if (' ' === i || '\t' === i || '-' === i) {
  5569. for (; s += t.charAt(h), ++h < t.length && (' ' === t.charAt(h) || '\t' === t.charAt(h)););
  5570. l.push(s), s = '';
  5571. } else
  5572. h < t.length && (s += i, h++);
  5573. s.length && l.push(s);
  5574. }, i.xu = function (t) {
  5575. var i = t.text, s = t.zf;
  5576. if (i && i.length) {
  5577. var h = t.width;
  5578. if (h <= 2)
  5579. o(f, s, !0);
  5580. else {
  5581. var e = t.rd, n = t.Uf;
  5582. if (i.length * (t.oj * e + n) - n <= h && -1 === i.indexOf('\n') && (n = t.Wm(i)) <= h)
  5583. return o(f, s, !0), s.push(b(f, Object)), s[0].text = i, s[0].width = n, t.Qg = n, void (t.Gf = t.we * e + t.lineHeight);
  5584. this.yu(t), t.Gf = s.length * (t.we * e + t.lineHeight);
  5585. }
  5586. } else
  5587. o(f, s, !0);
  5588. }, i.yu = function (t) {
  5589. var i = t.Ty, s = t.text, h = t.zf, e = t.width;
  5590. i && (this.tu(s), s = l);
  5591. var n, o, r = '', a = 0, c = !1;
  5592. for (o = 0; o < s.length; o++)
  5593. '\n' === s[o] ? (!0 === c ? c = !1 : (p(t, a, r), a++), r = '') : (c = !1, n = r, r += s[o], e < t.Wm(r.replace(/\s\s*$/, '')) && ('' === n ? (p(t, a, r), c = !(r = '')) : (p(t, a, n), r = s[o]), a++, i || ' ' !== r || (r = '')));
  5594. for (r.replace(/\s\s*$/, '').length && (p(t, a, r), a++), o = a; o < h.length; o++)
  5595. f.length < u && f.push(h[o]);
  5596. h.length = a;
  5597. }, s.Wm = function (t) {
  5598. for (var i = this.Uf, s = t.length, h = 0, e = 0; e < s; e++)
  5599. h += this.jm(t.charAt(e)) * this.rd + i;
  5600. return h - (0 < h ? i : 0);
  5601. }, s.jm = function (t) {
  5602. var i = this.xe;
  5603. return void 0 !== i[t] ? i[t] : this.oj;
  5604. }, s.jr = function () {
  5605. !this.Hf && this.width === this.Mm || (this.Gf = this.Qg = 0, this.type.X.xu(this), this.Hf = !1, this.Mm = this.width);
  5606. }, s.ed = function (t) {
  5607. var i = this.q;
  5608. if ('' !== this.text && null != i && (this.jr(), !(this.height < this.we * this.rd + this.lineHeight))) {
  5609. t.globalAlpha = this.opacity;
  5610. i = this.x;
  5611. var s = this.y;
  5612. this.b.Ac && (i = Math.round(i), s = Math.round(s));
  5613. var h = this.j.ma, e = this.j.na, n = this.j.wa, o = this.j.ua;
  5614. t.save(), t.translate(i, s), t.rotate(this.m);
  5615. for (var r, a, c, p, u = this.m, f = this.xh, l = this.rd, b = this.we * l, d = this.lineHeight, g = this.Uf, y = this.zf, v = -(this.Nb * this.width), m = (m = -(this.Ob * this.height)) + this.el * pa(0, this.height - this.Gf), w = 0; w < y.length; w++) {
  5616. var k = y[w].text;
  5617. if (a = v + (r = f * pa(0, this.width - y[w].width)), m += d, 0 === u && s + m + b < e)
  5618. m += b;
  5619. else {
  5620. for (var x = 0; x < k.length; x++) {
  5621. c = k.charAt(x), r = this.jm(c);
  5622. var T = this.pj[c];
  5623. if (0 === u && i + a + r * l + g < h)
  5624. a += r * l + g;
  5625. else {
  5626. if (a + r * l > this.width + 0.00001)
  5627. break;
  5628. if (void 0 !== T && (c = a, p = m, 0 === u && 1 === l && (c = Math.round(c), p = Math.round(p)), t.drawImage(this.q, T.x, T.y, T.cs, T.Ap, c, p, T.cs * l, T.Ap * l)), a += r * l + g, 0 === u && n < i + a)
  5629. break;
  5630. }
  5631. }
  5632. if (m += b, 0 === u && (m + b + d > this.height || o < s + m))
  5633. break;
  5634. }
  5635. }
  5636. t.restore();
  5637. }
  5638. };
  5639. var R = new xa();
  5640. s.Kb = function (t) {
  5641. if (t.Rb(this.r), t.Se(this.opacity), this.text && (this.jr(), !(this.height < this.we * this.rd + this.lineHeight))) {
  5642. this.Aa();
  5643. var i = this.Xb, s = 0, h = 0;
  5644. this.b.Ac && (s = Math.round(this.x) - this.x, h = Math.round(this.y) - this.y);
  5645. var e, n, o, r = this.j.ma, a = this.j.na, c = this.j.wa, p = this.j.ua, u = this.m, f = this.xh, l = this.el, b = this.rd, d = this.we * b, g = this.lineHeight, y = this.Uf, v = this.zf, m = this.Gf;
  5646. 0 !== u && (n = Math.cos(u), o = Math.sin(u));
  5647. var w, k, x;
  5648. for (s = i.Fa + s, i = i.Ga + h, l = l * pa(0, this.height - m), m = 0; m < v.length; m++)
  5649. if (h = v[m].text, w = e = f * pa(0, this.width - v[m].width), l += g, 0 === u && i + l + d < a)
  5650. l += d;
  5651. else {
  5652. for (var T = 0; T < h.length; T++) {
  5653. var E = h.charAt(T);
  5654. if (e = this.jm(E), E = this.qj[E], 0 === u && s + w + e * b + y < r)
  5655. w += e * b + y;
  5656. else {
  5657. if (w + e * b > this.width + 0.00001)
  5658. break;
  5659. if (void 0 !== E) {
  5660. var A = this.oj * b, j = this.we * b;
  5661. k = w, x = l, 0 === u && 1 === b && (k = Math.round(k), x = Math.round(x)), R.Fa = k, R.Ga = x, R.nb = k + A, R.ob = x, R.$a = k, R.ab = x + j, R.bb = k + A, R.cb = x + j, 0 !== u && (x = n, A = o, j = void 0, j = (k = R).Fa * x - k.Ga * A, k.Ga = k.Ga * x + k.Fa * A, k.Fa = j, j = k.nb * x - k.ob * A, k.ob = k.ob * x + k.nb * A, k.nb = j, j = k.$a * x - k.ab * A, k.ab = k.ab * x + k.$a * A, k.$a = j, j = k.bb * x - k.cb * A, k.cb = k.cb * x + k.bb * A, k.bb = j), R.offset(s, i), t.Sc(R.Fa, R.Ga, R.nb, R.ob, R.bb, R.cb, R.$a, R.ab, E);
  5662. }
  5663. if (w += e * b + y, 0 === u && c < s + w)
  5664. break;
  5665. }
  5666. }
  5667. if (l += d, 0 === u && (l + d + g > this.height || p < i + l))
  5668. break;
  5669. }
  5670. }
  5671. }, i.c = new function () {
  5672. }(), t.prototype.iu = function (t) {
  5673. ja(t) && t < 1000000000 && (t = Math.round(10000000000 * t) / 10000000000), t = t.toString(), this.text !== t && (this.text = t, this.Hf = !0, this.b.fa = !0);
  5674. }, t.prototype.yl = function (t) {
  5675. t !== this.rd && (this.rd = t, this.Hf = !0, this.b.fa = !0);
  5676. }, s.Zt = function (t, i) {
  5677. var s = parseInt(i, 10);
  5678. this.xe[t] !== s && (this.xe[t] = s, this.Hf = !0, this.b.fa = !0);
  5679. }, t.prototype.$t = function (t, i) {
  5680. if ('' !== t)
  5681. for (var s = 0; s < t.length; s++)
  5682. this.Zt(t.charAt(s), i);
  5683. }, t.prototype.bu = function (t) {
  5684. this.xh = t / 2, this.Hf = !0, this.b.fa = !0;
  5685. }, i.e = new t(), i.g = new function () {
  5686. }();
  5687. }(), function () {
  5688. function t() {
  5689. }
  5690. var i = zc.prototype;
  5691. i.W = function (t) {
  5692. this.X = t, this.b = t.b;
  5693. };
  5694. var s = i.W.prototype;
  5695. s.D = function () {
  5696. this.B || (this.q = new Image(), this.q.Ql = this.Yk, this.b.gl(this.q, this.wi), this.r = this.pattern = null);
  5697. }, s.ei = function () {
  5698. this.B || (this.r = null);
  5699. }, s.fi = function () {
  5700. var t, i;
  5701. if (!this.B && this.d.length)
  5702. for (this.r || (this.r = this.b.k.yc(this.q, !0, this.b.qa, this.Ue)), t = 0, i = this.d.length; t < i; t++)
  5703. this.d[t].r = this.r;
  5704. }, s.Pm = function () {
  5705. this.B || this.r || !this.b.k || (this.r = this.b.k.yc(this.q, !0, this.b.qa, this.Ue));
  5706. }, s.Ai = function () {
  5707. this.B || this.d.length || !this.r || (this.b.k.deleteTexture(this.r), this.r = null);
  5708. }, s.Ck = function (t) {
  5709. t.drawImage(this.q, 0, 0);
  5710. }, i.S = function (t) {
  5711. this.type = t, this.b = t.b;
  5712. }, (s = i.S.prototype).D = function () {
  5713. this.visible = 0 === this.A[0], this.de = new wa(0, 0, 0, 0), this.Ep = !1, this.q = this.type.q, this.b.k ? (this.type.Pm(), this.r = this.type.r) : (this.type.pattern || (this.type.pattern = this.b.Ba.createPattern(this.type.q, 'repeat')), this.pattern = this.type.pattern);
  5714. }, s.Kd = function () {
  5715. this.Ep = !1, this.q = this.type.q;
  5716. }, s.Ef = function () {
  5717. this.b.k && this.Ep && this.r && (this.b.k.deleteTexture(this.r), this.r = null);
  5718. }, s.ed = function (t) {
  5719. t.globalAlpha = this.opacity, t.save(), t.fillStyle = this.pattern;
  5720. var i = this.x, s = this.y;
  5721. this.b.Ac && (i = Math.round(i), s = Math.round(s));
  5722. var h = -(this.Nb * this.width), e = -(this.Ob * this.height), n = h % this.q.width, o = e % this.q.height;
  5723. n < 0 && (n += this.q.width), o < 0 && (o += this.q.height), t.translate(i, s), t.rotate(this.m), t.translate(n, o), t.fillRect(h - n, e - o, this.width, this.height), t.restore();
  5724. }, s.Ce = function (t) {
  5725. this.Kb(t);
  5726. }, s.Kb = function (t) {
  5727. t.Rb(this.r), t.Se(this.opacity);
  5728. var i = this.de;
  5729. i.right = this.width / this.q.width, i.bottom = this.height / this.q.height;
  5730. var s = this.Xb;
  5731. if (this.b.Ac) {
  5732. var h = Math.round(this.x) - this.x, e = Math.round(this.y) - this.y;
  5733. t.Sc(s.Fa + h, s.Ga + e, s.nb + h, s.ob + e, s.bb + h, s.cb + e, s.$a + h, s.ab + e, i);
  5734. } else
  5735. t.Sc(s.Fa, s.Ga, s.nb, s.ob, s.bb, s.cb, s.$a, s.ab, i);
  5736. }, i.c = new function () {
  5737. }(), i.e = new function () {
  5738. }(), t.prototype.jo = function (t) {
  5739. t.n(this.q.width);
  5740. }, t.prototype.io = function (t) {
  5741. t.n(this.q.height);
  5742. }, i.g = new t();
  5743. }(), function () {
  5744. function r(t) {
  5745. o = t.x, p = t.y, u = t.z;
  5746. }
  5747. function a(t, i, s, h) {
  5748. var e;
  5749. return (e = f.length ? f.pop() : new n()).init(t, i, s, h), e;
  5750. }
  5751. function n() {
  5752. this.ri = this.id = this.y = this.x = this.Uk = this.Tk = this.Lm = this.time = this.Hn = 0, this.yi = this.al = !1;
  5753. }
  5754. function i(t) {
  5755. return t.sourceCapabilities && t.sourceCapabilities.firesTouchEvents || t.originalEvent && t.originalEvent.sourceCapabilities && t.originalEvent.sourceCapabilities.firesTouchEvents;
  5756. }
  5757. function t() {
  5758. }
  5759. function s() {
  5760. }
  5761. var h = Z.prototype;
  5762. h.W = function (t) {
  5763. this.X = t, this.b = t.b;
  5764. }, h.W.prototype.D = function () {
  5765. }, h.S = function (t) {
  5766. this.type = t, this.b = t.b, this.touches = [], this.Xm = !1;
  5767. };
  5768. var e = h.S.prototype, c = {
  5769. left: 0,
  5770. top: 0
  5771. };
  5772. e.lf = function (t) {
  5773. var i, s;
  5774. for (i = 0, s = this.touches.length; i < s; i++)
  5775. if (this.touches[i].id === t)
  5776. return i;
  5777. return -1;
  5778. };
  5779. var o = 0, p = 0, u = 0, f = [];
  5780. n.prototype.init = function (t, i, s, h) {
  5781. var e = Za();
  5782. this.Hn = this.Lm = this.time = e, this.Tk = t, this.Uk = i, this.x = t, this.y = i, this.pressure = this.height = this.width = 0, this.id = s, this.ri = h, this.yi = this.al = !1;
  5783. }, n.prototype.update = function (t, i, s, h, e, n) {
  5784. this.Lm = this.time, this.time = t, this.x = i, this.y = s, this.width = h, this.height = e, this.pressure = n, !this.yi && 15 <= Va(this.Tk, this.Uk, this.x, this.y) && (this.yi = !0);
  5785. }, n.prototype.wx = function (t, i) {
  5786. !this.al && 500 <= Za() - this.Hn && !this.yi && Va(this.Tk, this.Uk, this.x, this.y) < 15 && (this.al = !0, t.Id = this.ri, t.Kf = this.id, t.bg = i, t.b.trigger(Z.prototype.c.ot, t), t.Qd = this.x, t.Rd = this.y, t.b.trigger(Z.prototype.c.pt, t), t.bg = 0);
  5787. };
  5788. var l = -1000, b = -1000, d = -10000;
  5789. n.prototype.Bq = function (t, i) {
  5790. if (!this.al) {
  5791. var s = Za();
  5792. s - this.Hn <= 333 && !this.yi && Va(this.Tk, this.Uk, this.x, this.y) < 15 && (t.Id = this.ri, t.Kf = this.id, t.bg = i, d = s - d <= 666 && Va(l, b, this.x, this.y) < 25 ? (t.b.trigger(Z.prototype.c.kt, t), t.Qd = this.x, t.Rd = this.y, t.b.trigger(Z.prototype.c.lt, t), b = l = -1000, -10000) : (t.b.trigger(Z.prototype.c.Dt, t), t.Qd = this.x, t.Rd = this.y, t.b.trigger(Z.prototype.c.Et, t), l = this.x, b = this.y, s), t.bg = 0);
  5793. }
  5794. }, e.D = function () {
  5795. this.jx = !(void 0 === window.c2isWindows8 || !window.c2isWindows8), this.bg = this.Kf = this.Id = this.Rd = this.Qd = this.Ko = this.Jo = this.Io = this.Cu = this.Bu = this.Au = this.vk = this.uk = this.tk = 0, this.Qy = 0 !== this.A[0];
  5796. var t = 0 < this.b.Yb ? document : this.b.canvas, i = document;
  5797. this.b.pb ? i = t = window.Canvas : this.b.Mc && (i = t = window);
  5798. var s = this;
  5799. if ('undefined' != typeof PointerEvent ? (t.addEventListener('pointerdown', function (t) {
  5800. s.Qq(t);
  5801. }, !1), t.addEventListener('pointermove', function (t) {
  5802. s.Pq(t);
  5803. }, !1), i.addEventListener('pointerup', function (t) {
  5804. s.sk(t, !1);
  5805. }, !1), i.addEventListener('pointercancel', function (t) {
  5806. s.sk(t, !0);
  5807. }, !1), this.b.canvas && (this.b.canvas.addEventListener('MSGestureHold', function (t) {
  5808. t.preventDefault();
  5809. }, !1), document.addEventListener('MSGestureHold', function (t) {
  5810. t.preventDefault();
  5811. }, !1), this.b.canvas.addEventListener('gesturehold', function (t) {
  5812. t.preventDefault();
  5813. }, !1), document.addEventListener('gesturehold', function (t) {
  5814. t.preventDefault();
  5815. }, !1))) : window.navigator.msPointerEnabled ? (t.addEventListener('MSPointerDown', function (t) {
  5816. s.Qq(t);
  5817. }, !1), t.addEventListener('MSPointerMove', function (t) {
  5818. s.Pq(t);
  5819. }, !1), i.addEventListener('MSPointerUp', function (t) {
  5820. s.sk(t, !1);
  5821. }, !1), i.addEventListener('MSPointerCancel', function (t) {
  5822. s.sk(t, !0);
  5823. }, !1), this.b.canvas && (this.b.canvas.addEventListener('MSGestureHold', function (t) {
  5824. t.preventDefault();
  5825. }, !1), document.addEventListener('MSGestureHold', function (t) {
  5826. t.preventDefault();
  5827. }, !1))) : (t.addEventListener('touchstart', function (t) {
  5828. s.Sq(t);
  5829. }, !1), t.addEventListener('touchmove', function (t) {
  5830. s.Rq(t);
  5831. }, !1), i.addEventListener('touchend', function (t) {
  5832. s.cn(t, !1);
  5833. }, !1), i.addEventListener('touchcancel', function (t) {
  5834. s.cn(t, !0);
  5835. }, !1)), this.jx) {
  5836. var h = function (t) {
  5837. t = t.reading, s.Io = t.accelerationX, s.Jo = t.accelerationY, s.Ko = t.accelerationZ;
  5838. }, e = function (t) {
  5839. t = t.reading, s.tk = t.yawDegrees, s.uk = t.pitchDegrees, s.vk = t.rollDegrees;
  5840. }, n = Windows.Devices.Sensors.Accelerometer.getDefault();
  5841. n && (n.reportInterval = Math.max(n.minimumReportInterval, 16), n.addEventListener('readingchanged', h));
  5842. var o = Windows.Devices.Sensors.Inclinometer.getDefault();
  5843. o && (o.reportInterval = Math.max(o.minimumReportInterval, 16), o.addEventListener('readingchanged', e)), document.addEventListener('visibilitychange', function () {
  5844. document.hidden || document.msHidden ? (n && n.removeEventListener('readingchanged', h), o && o.removeEventListener('readingchanged', e)) : (n && n.addEventListener('readingchanged', h), o && o.addEventListener('readingchanged', e));
  5845. }, !1);
  5846. } else
  5847. window.addEventListener('deviceorientation', function (t) {
  5848. s.tk = t.alpha || 0, s.uk = t.beta || 0, s.vk = t.gamma || 0;
  5849. }, !1), window.addEventListener('devicemotion', function (t) {
  5850. t.accelerationIncludingGravity && (s.Au = t.accelerationIncludingGravity.x || 0, s.Bu = t.accelerationIncludingGravity.y || 0, s.Cu = t.accelerationIncludingGravity.z || 0), t.acceleration && (s.Io = t.acceleration.x || 0, s.Jo = t.acceleration.y || 0, s.Ko = t.acceleration.z || 0);
  5851. }, !1);
  5852. this.Qy && !this.b.pa && (jQuery(document).mousemove(function (t) {
  5853. s.Hx(t);
  5854. }), jQuery(document).mousedown(function (t) {
  5855. s.Gx(t);
  5856. }), jQuery(document).mouseup(function (t) {
  5857. s.Ix(t);
  5858. })), !this.b.pg && this.b.vc && navigator.accelerometer && navigator.accelerometer.watchAcceleration && navigator.accelerometer.watchAcceleration(r, null, { frequency: 40 }), this.b.Fy(this);
  5859. }, e.Pq = function (t) {
  5860. if (t.pointerType !== t.MSPOINTER_TYPE_MOUSE && 'mouse' !== t.pointerType) {
  5861. t.preventDefault && t.preventDefault();
  5862. var i = this.lf(t.pointerId), s = Za();
  5863. if (0 <= i) {
  5864. var h = this.b.pa ? c : jQuery(this.b.canvas).offset();
  5865. s - (i = this.touches[i]).time < 2 || i.update(s, t.pageX - h.left, t.pageY - h.top, t.width || 0, t.height || 0, t.pressure || 0);
  5866. }
  5867. }
  5868. }, e.Qq = function (t) {
  5869. if (t.pointerType !== t.MSPOINTER_TYPE_MOUSE && 'mouse' !== t.pointerType) {
  5870. t.preventDefault && pb(t) && t.preventDefault();
  5871. var i = this.b.pa ? c : jQuery(this.b.canvas).offset(), s = t.pageX - i.left;
  5872. i = t.pageY - i.top;
  5873. Za(), this.Id = this.touches.length, this.Kf = t.pointerId, this.touches.push(a(s, i, t.pointerId, this.Id)), this.b.xc = !0, this.b.trigger(Z.prototype.c.xo, this), this.b.trigger(Z.prototype.c.tl, this), this.Qd = s, this.Rd = i, this.b.trigger(Z.prototype.c.sl, this), this.b.xc = !1;
  5874. }
  5875. }, e.sk = function (t, i) {
  5876. if (t.pointerType !== t.MSPOINTER_TYPE_MOUSE && 'mouse' !== t.pointerType) {
  5877. t.preventDefault && pb(t) && t.preventDefault();
  5878. var s = this.lf(t.pointerId);
  5879. this.Id = 0 <= s ? this.touches[s].ri : -1, this.Kf = 0 <= s ? this.touches[s].id : -1, this.b.xc = !0, this.b.trigger(Z.prototype.c.wo, this), this.b.trigger(Z.prototype.c.rl, this), 0 <= s && (i || this.touches[s].Bq(this, s), f.length < 100 && f.push(this.touches[s]), this.touches.splice(s, 1)), this.b.xc = !1;
  5880. }
  5881. }, e.Rq = function (t) {
  5882. t.preventDefault && t.preventDefault();
  5883. var i, s, h, e, n = Za();
  5884. for (i = 0, s = t.changedTouches.length; i < s; i++)
  5885. if (h = t.changedTouches[i], 0 <= (e = this.lf(h.identifier))) {
  5886. var o = this.b.pa ? c : jQuery(this.b.canvas).offset();
  5887. n - (e = this.touches[e]).time < 2 || e.update(n, h.pageX - o.left, h.pageY - o.top, 2 * (h.Fz || h.Nz || h.yz || h.Bz || 0), 2 * (h.Gz || h.Oz || h.zz || h.Cz || 0), h.qz || h.Mz || h.xz || h.Az || 0);
  5888. }
  5889. }, e.Sq = function (t) {
  5890. t.preventDefault && pb(t) && t.preventDefault();
  5891. var i, s, h, e, n = this.b.pa ? c : jQuery(this.b.canvas).offset();
  5892. for (Za(), this.b.xc = !0, i = 0, s = t.changedTouches.length; i < s; i++)
  5893. if (h = t.changedTouches[i], -1 === (e = this.lf(h.identifier))) {
  5894. e = h.pageX - n.left;
  5895. var o = h.pageY - n.top;
  5896. this.Id = this.touches.length, this.Kf = h.identifier, this.touches.push(a(e, o, h.identifier, this.Id)), this.b.trigger(Z.prototype.c.xo, this), this.b.trigger(Z.prototype.c.tl, this), this.Qd = e, this.Rd = o, this.b.trigger(Z.prototype.c.sl, this);
  5897. }
  5898. this.b.xc = !1;
  5899. }, e.cn = function (t, i) {
  5900. var s, h, e;
  5901. for (t.preventDefault && pb(t) && t.preventDefault(), this.b.xc = !0, s = 0, h = t.changedTouches.length; s < h; s++)
  5902. e = t.changedTouches[s], 0 <= (e = this.lf(e.identifier)) && (this.Id = this.touches[e].ri, this.Kf = this.touches[e].id, this.b.trigger(Z.prototype.c.wo, this), this.b.trigger(Z.prototype.c.rl, this), i || this.touches[e].Bq(this, e), f.length < 100 && f.push(this.touches[e]), this.touches.splice(e, 1));
  5903. this.b.xc = !1;
  5904. }, e.El = function () {
  5905. return this.b.vc && 0 === this.tk && 0 !== u ? 90 * u : this.tk;
  5906. }, e.Uu = function () {
  5907. return this.b.vc && 0 === this.uk && 0 !== p ? 90 * p : this.uk;
  5908. }, e.wv = function () {
  5909. return this.b.vc && 0 === this.vk && 0 !== o ? 90 * o : this.vk;
  5910. }, e.Gx = function (t) {
  5911. i(t) || (this.Sq({ changedTouches: [{pageX:t.pageX,pageY:t.pageY,identifier:0}] }), this.Xm = !0);
  5912. }, e.Hx = function (t) {
  5913. this.Xm && !i(t) && this.Rq({ changedTouches: [{pageX:t.pageX,pageY:t.pageY,identifier:0}] });
  5914. }, e.Ix = function (t) {
  5915. t.preventDefault && this.b.Bp && !this.b.sf && t.preventDefault(), this.b.Bp = !0, i(t) || (this.cn({ changedTouches: [{pageX:t.pageX,pageY:t.pageY,identifier:0}] }), this.Xm = !1);
  5916. }, e.Jn = function () {
  5917. var t, i, s, h = Za();
  5918. for (t = 0, i = this.touches.length; t < i; ++t)
  5919. (s = this.touches[t]).time <= h - 50 && (s.Lm = h), s.wx(this, t);
  5920. }, t.prototype.tl = function () {
  5921. return !0;
  5922. }, t.prototype.rl = function () {
  5923. return !0;
  5924. }, t.prototype.sl = function (t) {
  5925. return !!t && this.b.Wk(t, this.Qd, this.Rd);
  5926. }, t.prototype.xo = function (t) {
  5927. return (t = Math.floor(t)) === this.Id;
  5928. }, t.prototype.wo = function (t) {
  5929. return (t = Math.floor(t)) === this.Id;
  5930. }, t.prototype.ot = function () {
  5931. return !0;
  5932. }, t.prototype.Dt = function () {
  5933. return !0;
  5934. }, t.prototype.kt = function () {
  5935. return !0;
  5936. }, t.prototype.pt = function (t) {
  5937. return !!t && this.b.Wk(t, this.Qd, this.Rd);
  5938. }, t.prototype.Et = function (t) {
  5939. return !!t && this.b.Wk(t, this.Qd, this.Rd);
  5940. }, t.prototype.lt = function (t) {
  5941. return !!t && this.b.Wk(t, this.Qd, this.Rd);
  5942. }, h.c = new t(), h.e = new function () {
  5943. }(), s.prototype.aj = function (t, i) {
  5944. var s, h, e, n, o, r = this.bg;
  5945. r < 0 || r >= this.touches.length ? t.n(0) : ha(i) ? (h = (s = this.b.ag(0)).scale, e = s.qd, n = s.Pc, o = s.m, s.scale = 1, s.qd = 1, s.Pc = 1, s.m = 0, t.n(s.ub(this.touches[r].x, this.touches[r].y, !0)), s.scale = h, s.qd = e, s.Pc = n, s.m = o) : (s = ja(i) ? this.b.ag(i) : this.b.Sj(i)) ? t.n(s.ub(this.touches[r].x, this.touches[r].y, !0)) : t.n(0);
  5946. }, s.prototype.Al = function (t, i) {
  5947. var s, h, e, n, o, r = this.bg;
  5948. r < 0 || r >= this.touches.length ? t.n(0) : ha(i) ? (h = (s = this.b.ag(0)).scale, e = s.qd, n = s.Qc, o = s.m, s.scale = 1, s.qd = 1, s.Qc = 1, s.m = 0, t.n(s.ub(this.touches[r].x, this.touches[r].y, !1)), s.scale = h, s.qd = e, s.Qc = n, s.m = o) : (s = ja(i) ? this.b.ag(i) : this.b.Sj(i)) ? t.n(s.ub(this.touches[r].x, this.touches[r].y, !1)) : t.n(0);
  5949. }, s.prototype.es = function (t, i) {
  5950. var s = this.lf(i);
  5951. s < 0 ? t.n(0) : t.n(this.touches[s].x);
  5952. }, s.prototype.gs = function (t, i) {
  5953. var s = this.lf(i);
  5954. s < 0 ? t.n(0) : t.n(this.touches[s].y);
  5955. }, s.prototype.uu = function (t) {
  5956. t.n(this.Kf);
  5957. }, h.g = new s();
  5958. }(), function () {
  5959. function t() {
  5960. }
  5961. function i() {
  5962. }
  5963. function s() {
  5964. }
  5965. var h = Ac.prototype;
  5966. h.W = function (t) {
  5967. this.X = t, this.b = t.b;
  5968. }, h.W.prototype.D = function () {
  5969. }, h.S = function (t) {
  5970. this.type = t, this.b = t.b;
  5971. };
  5972. var e = h.S.prototype, n = window.URL || window.webkitURL || window.mozURL || window.msURL;
  5973. e.D = function () {
  5974. if (this.b.pa)
  5975. fa('[Construct 2] File Chooser plugin not supported on this platform - the object will not be created');
  5976. else {
  5977. this.Lb = document.createElement('input'), this.Lb.type = 'file', this.Lb.setAttribute('accept', this.A[0]), 0 !== this.A[1] && this.Lb.setAttribute('multiple', ''), this.Lb.id = this.A[3], jQuery(this.Lb).appendTo(this.b.nj ? this.b.nj : 'body'), this.ff = !1, 0 === this.A[2] && (jQuery(this.Lb).hide(), this.visible = !1, this.ff = !0);
  5978. var t = this;
  5979. this.Lb.onchange = function () {
  5980. t.b.trigger(Ac.prototype.c.oo, t);
  5981. }, this.bq = this.cq = this.Vp = this.Zp = this.aq = this.Xp = 0, this.Zr(!0), this.b.If(this);
  5982. }
  5983. }, e.Ef = function () {
  5984. this.b.pa || (jQuery(this.Lb).remove(), this.Lb = null);
  5985. }, e.mb = function () {
  5986. this.Zr();
  5987. }, e.Zr = function (t) {
  5988. if (!this.b.pa) {
  5989. var i = this.j.ib(this.x, this.y, !0), s = this.j.ib(this.x, this.y, !1), h = this.j.ib(this.x + this.width, this.y + this.height, !0), e = this.j.ib(this.x + this.width, this.y + this.height, !1), n = this.b.width / this.b.devicePixelRatio, o = this.b.height / this.b.devicePixelRatio;
  5990. !this.visible || !this.j.visible || h <= 0 || e <= 0 || n <= i || o <= s ? (this.ff || jQuery(this.Lb).hide(), this.ff = !0) : (i < 1 && (i = 1), s < 1 && (s = 1), n <= h && (h = n - 1), o <= e && (e = o - 1), n = window.innerWidth, o = window.innerHeight, t || this.Xp !== i || this.aq !== s || this.Zp !== h || this.Vp !== e || this.cq !== n || this.bq !== o ? (this.Xp = i, this.aq = s, this.Zp = h, this.Vp = e, this.cq = n, this.bq = o, this.ff && (jQuery(this.Lb).show(), this.ff = !1), t = Math.round(i) + jQuery(this.b.canvas).offset().left, n = Math.round(s) + jQuery(this.b.canvas).offset().top, jQuery(this.Lb).css('position', 'absolute'), jQuery(this.Lb).offset({
  5991. left: t,
  5992. top: n
  5993. }), jQuery(this.Lb).width(Math.round(h - i)), jQuery(this.Lb).height(Math.round(e - s))) : this.ff && (jQuery(this.Lb).show(), this.ff = !1));
  5994. }
  5995. }, e.ed = function () {
  5996. }, e.Kb = function () {
  5997. }, t.prototype.oo = function () {
  5998. return !0;
  5999. }, h.c = new t(), i.prototype.ah = function (t) {
  6000. this.b.pa || (this.visible = 0 !== t);
  6001. }, h.e = new i(), s.prototype.Es = function (t, i) {
  6002. var s;
  6003. if (this.b.pa)
  6004. s = null;
  6005. else {
  6006. var h = i;
  6007. s = (s = this.Lb.files) ? (h = Math.floor(h)) < 0 || h >= s.length ? null : s[h] : null;
  6008. }
  6009. s ? s.c2url ? t.la(s.c2url) : n && n.createObjectURL ? (s.c2url = n.createObjectURL(s), t.la(s.c2url)) : t.la('') : t.la('');
  6010. }, h.g = new s();
  6011. }(), function () {
  6012. function f(t) {
  6013. var i;
  6014. if (!g[t])
  6015. for (g[t] = Array(20), i = 0; i < 20; ++i)
  6016. g[t][i] = 0;
  6017. return g[t];
  6018. }
  6019. function l(t) {
  6020. var i;
  6021. if (!y[t])
  6022. for (y[t] = Array(20), i = 0; i < 20; ++i)
  6023. y[t][i] = 0;
  6024. return y[t];
  6025. }
  6026. function b(t, i) {
  6027. return i ? 4 <= t ? -1 : t + 16 : 16 <= t ? -1 : t;
  6028. }
  6029. function i(t) {
  6030. d[t.gamepad.index] = t.gamepad, e.trigger(Bc.prototype.c.mt, n);
  6031. }
  6032. function s(t) {
  6033. e.trigger(Bc.prototype.c.nt, n), d[t.gamepad.index] = null;
  6034. }
  6035. function t() {
  6036. }
  6037. var h = Bc.prototype;
  6038. h.W = function (t) {
  6039. this.X = t, this.b = t.b;
  6040. }, h.W.prototype.D = function () {
  6041. };
  6042. var e = null, n = null, d = Array(16), g = Array(16), y = Array(16), o = '', r = '', v = null, a = { windows: {} };
  6043. a.windows.firefox = {};
  6044. var c = [0,1,2,3,4,5,8,9,10,11], p = [0,1,[7,6],2,3,[14,15],[12,13]];
  6045. a.windows.firefox.xbox360 = function (t, i) {
  6046. return i ? p.length <= t ? -1 : ja(p[t]) ? p[t] + 16 : p[t] : c.length <= t ? -1 : c[t];
  6047. };
  6048. var u = [2,0,1,3,4,6,5,7,8,9], m = [0,1,2,3,[14,15],[12,13]];
  6049. a.windows.firefox.logitechdualaction = function (t, i) {
  6050. return i ? m.length <= t ? -1 : ja(m[t]) ? m[t] + 16 : m[t] : u.length <= t ? -1 : u[t];
  6051. }, h.S = function (t) {
  6052. this.type = t, e = this.b = t.b, n = this;
  6053. };
  6054. var w = h.S.prototype;
  6055. w.D = function () {
  6056. this.Vu = this.A[0], this.ck = 0;
  6057. var t = navigator.userAgent;
  6058. o = 'windows', /mac/i.test(t) && (o = 'mac'), v = a[o], r = 'chrome', /firefox/i.test(t) && (r = 'firefox'), v = v && v[r], window.addEventListener('webkitgamepadconnected', i, !1), window.addEventListener('webkitgamepaddisconnected', s, !1), window.addEventListener('MozGamepadConnected', i, !1), window.addEventListener('MozGamepadDisconnected', s, !1), window.addEventListener('gamepadconnected', i, !1), window.addEventListener('gamepaddisconnected', s, !1), this.b.If(this), this.bj = [];
  6059. }, w.mb = function () {
  6060. this.bj.length = 0;
  6061. var t = null, i = !1;
  6062. if (navigator.getGamepads ? t = navigator.getGamepads() : navigator.webkitGetGamepads ? t = navigator.webkitGetGamepads() : navigator.mozGetGamepads ? t = navigator.mozGetGamepads() : navigator.msGetGamepads ? t = navigator.msGetGamepads() : this.b.Sp && window.cr_getGamepads ? (t = window.cr_getGamepads(), i = !0) : t = navigator.gamepads || navigator.webkitGamepads || navigator.MozGamepads || d, t) {
  6063. var s, h, e, n, o, r, a;
  6064. for (s = 0, h = t.length; s < h; s++) {
  6065. var c = t[s];
  6066. if (c) {
  6067. var p = f(s), u = l(s);
  6068. for (e = f(n = s), n = l(n), o = void 0, o = 0; o < 20; ++o)
  6069. n[o] = e[o];
  6070. for (o = e = !i && v ? (e = '', -1 < (n = c.id.toLowerCase()).indexOf('xbox 360') ? e = 'xbox360' : -1 < n.indexOf('logitech dual action') && (e = 'logitechdualaction'), v[e] || b) : b, e = 0, n = c.buttons.length; e < n; e++)
  6071. 0 <= (r = o(e, !1, a = void 0 !== c.buttons[e].value ? c.buttons[e].value : c.buttons[e])) && r < 20 && (p[r] = 100 * a, 50 <= p[r] && u[r] < 50 && (this.ck = r));
  6072. for (e = 0, n = c.axes.length; e < n; e++)
  6073. r = o(e, !0, a = c.axes[e]), ja(r) ? 0 <= r && r < 20 && (p[r] = 100 * a) : (p[r[0]] = 0, a <= (p[r[1]] = 0) ? p[r[0]] = Math.abs(100 * a) : p[r[1]] = Math.abs(100 * a));
  6074. this.bj.push(c);
  6075. } else
  6076. g[c = s] = null, y[c] = null;
  6077. }
  6078. for (; s < 20; ++s)
  6079. g[t = s] = null, y[t] = null;
  6080. }
  6081. }, w.Fb = function () {
  6082. return { lastButton: this.ck };
  6083. }, w.Qb = function (t) {
  6084. this.ck = t.lastButton;
  6085. }, t.prototype.mt = function () {
  6086. return !0;
  6087. }, t.prototype.nt = function () {
  6088. return !0;
  6089. }, t.prototype.Os = function (t, i) {
  6090. if ((t = Math.floor(t)) < 0 || t >= this.bj.length)
  6091. return !1;
  6092. var s = f(t);
  6093. return !!s && ((s = 50 <= s[i]) && (this.ck = i), s);
  6094. }, t.prototype.rs = function (t, i, s, h) {
  6095. if (t = Math.floor(t), i = Math.floor(i), t < 0 || t >= this.bj.length)
  6096. return !1;
  6097. if (t = f(t)) {
  6098. var e = t[i + 16], n = 0 == i % 2 ? t[i + 16 + 1] : t[i + 16 - 1];
  6099. return Math.sqrt(e * e + n * n) <= this.Vu && (e = 0), ic(e, s, h);
  6100. }
  6101. }, h.c = new t(), h.e = new function () {
  6102. }(), h.g = new function () {
  6103. }();
  6104. }(), function () {
  6105. function t() {
  6106. }
  6107. function i() {
  6108. }
  6109. function s() {
  6110. }
  6111. var h = Cc.prototype;
  6112. h.W = function (t) {
  6113. this.behavior = t, this.b = t.b;
  6114. }, h.W.prototype.D = function () {
  6115. }, h.S = function (t, i) {
  6116. this.type = t, this.behavior = t.behavior, this.Na = i, this.b = t.b, this.ve = this.yb = this.xb = 0;
  6117. };
  6118. var e = h.S.prototype;
  6119. e.D = function () {
  6120. this.Og = this.A[0], this.qn = this.A[1], this.enabled = 0 !== this.A[2];
  6121. }, e.Fb = function () {
  6122. return {
  6123. dx: this.xb,
  6124. dy: this.yb,
  6125. cancelStep: this.ve,
  6126. enabled: this.enabled,
  6127. stepMode: this.Og,
  6128. pxPerStep: this.qn
  6129. };
  6130. }, e.Qb = function (t) {
  6131. this.xb = t.dx, this.yb = t.dy, this.ve = t.cancelStep, this.enabled = t.enabled, this.Og = t.stepMode, this.qn = t.pxPerStep;
  6132. }, e.zp = function () {
  6133. return Math.sqrt(this.xb * this.xb + this.yb * this.yb);
  6134. }, e.gb = function () {
  6135. return Math.atan2(this.yb, this.xb);
  6136. }, e.step = function (t, i, s) {
  6137. if (0 !== t || 0 !== i) {
  6138. var h, e, n = this.Na.x, o = this.Na.y, r = Math.round(Math.sqrt(t * t + i * i) / this.qn);
  6139. for (0 === r && (r = 1), e = 1; e <= r; e++) {
  6140. if (h = e / r, this.Na.x = n + t * h, this.Na.y = o + i * h, this.Na.za(), this.b.trigger(s, this.Na), 1 === this.ve) {
  6141. h = --e / r, this.Na.x = n + t * h, this.Na.y = o + i * h, this.Na.za();
  6142. break;
  6143. }
  6144. if (2 === this.ve)
  6145. break;
  6146. }
  6147. }
  6148. }, e.mb = function () {
  6149. var t = this.b.Rj(this.Na), i = this.xb * t;
  6150. t = this.yb * t;
  6151. 0 === this.xb && 0 === this.yb || !this.enabled || ((this.ve = 0) === this.Og ? (this.Na.x += i, this.Na.y += t) : 1 === this.Og ? this.step(i, t, Cc.prototype.c.it) : 2 === this.Og ? (this.step(i, 0, Cc.prototype.c.ol), this.ve = 0, this.step(0, t, Cc.prototype.c.pl)) : 3 === this.Og && (this.step(0, t, Cc.prototype.c.pl), this.ve = 0, this.step(i, 0, Cc.prototype.c.ol)), this.Na.za());
  6152. }, t.prototype.Ts = function () {
  6153. return 0 != this.xb || 0 != this.yb;
  6154. }, t.prototype.vs = function (t, i, s) {
  6155. var h;
  6156. switch (t) {
  6157. case 0:
  6158. h = this.zp();
  6159. break;
  6160. case 1:
  6161. h = this.xb;
  6162. break;
  6163. case 2:
  6164. h = this.yb;
  6165. }
  6166. return ic(h, i, s);
  6167. }, t.prototype.it = function () {
  6168. return !0;
  6169. }, t.prototype.ol = function () {
  6170. return !0;
  6171. }, t.prototype.pl = function () {
  6172. return !0;
  6173. }, h.c = new t(), i.prototype.Fo = function () {
  6174. this.yb = this.xb = 0;
  6175. }, i.prototype.hu = function (t, i) {
  6176. var s;
  6177. switch (t) {
  6178. case 0:
  6179. s = this.gb(), this.xb = Math.cos(s) * i, this.yb = Math.sin(s) * i;
  6180. break;
  6181. case 1:
  6182. this.xb = i;
  6183. break;
  6184. case 2:
  6185. this.yb = i;
  6186. }
  6187. }, i.prototype.hs = function (t, i) {
  6188. var s = t * this.b.Rj(this.Na), h = G(i);
  6189. this.xb += Math.cos(h) * s, this.yb += Math.sin(h) * s;
  6190. }, i.prototype.Wt = function (t) {
  6191. t = G(t);
  6192. var i = this.zp();
  6193. this.xb = Math.cos(t) * i, this.yb = Math.sin(t) * i;
  6194. }, i.prototype.ru = function (t) {
  6195. this.ve = t + 1;
  6196. }, i.prototype.xl = function (t) {
  6197. this.enabled = 1 === t;
  6198. }, h.e = new i(), s.prototype.xb = function (t) {
  6199. t.n(this.xb);
  6200. }, s.prototype.yb = function (t) {
  6201. t.n(this.yb);
  6202. }, h.g = new s();
  6203. }(), function () {
  6204. function t() {
  6205. }
  6206. var i = Ic.prototype;
  6207. i.W = function (t) {
  6208. this.behavior = t, this.b = t.b;
  6209. }, i.W.prototype.D = function () {
  6210. }, i.S = function (t, i) {
  6211. this.type = t, this.behavior = t.behavior, this.Na = i, this.b = t.b;
  6212. };
  6213. var s = i.S.prototype;
  6214. s.D = function () {
  6215. this.Na.ja.jumpthruEnabled = 0 !== this.A[0];
  6216. }, s.mb = function () {
  6217. }, i.c = new function () {
  6218. }(), t.prototype.xl = function (t) {
  6219. this.Na.ja.jumpthruEnabled = !!t;
  6220. }, i.e = new t();
  6221. }(), function () {
  6222. function t() {
  6223. }
  6224. var i = Jc.prototype;
  6225. i.W = function (t) {
  6226. this.behavior = t, this.b = t.b;
  6227. }, i.W.prototype.D = function () {
  6228. }, i.S = function (t, i) {
  6229. this.type = t, this.behavior = t.behavior, this.Na = i, this.b = t.b;
  6230. };
  6231. var s = i.S.prototype;
  6232. s.D = function () {
  6233. this.Na.ja.solidEnabled = 0 !== this.A[0];
  6234. }, s.mb = function () {
  6235. }, i.c = new function () {
  6236. }(), t.prototype.xl = function (t) {
  6237. this.Na.ja.solidEnabled = !!t;
  6238. }, i.e = new t();
  6239. }();