| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912 |
- !function(e) {
- function t(t) {
- for (var n, i, o = t[0], a = t[1], s = 0, u = []; s < o.length; s++)
- i = o[s],
- Object.prototype.hasOwnProperty.call(r, i) && r[i] && u.push(r[i][0]),
- r[i] = 0;
- for (n in a)
- Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n]);
- for (l && l(t); u.length; )
- u.shift()()
- }
- var n = {}
- , r = {
- 277: 0
- };
- function i(t) {
- if (n[t])
- return n[t].exports;
- var r = n[t] = {
- i: t,
- l: !1,
- exports: {}
- };
- return e[t].call(r.exports, r, r.exports, i),
- r.l = !0,
- r.exports
- }
- i.e = function(e) {
- var t = []
- , n = r[e];
- if (0 !== n)
- if (n)
- t.push(n[2]);
- else {
- var o = new Promise((function(t, i) {
- n = r[e] = [t, i]
- }
- ));
- t.push(n[2] = o);
- var a, s = document.createElement("script");
- s.charset = "utf-8",
- s.timeout = 120,
- i.nc && s.setAttribute("nonce", i.nc),
- s.src = function(e) {
- return i.p + "js/" + ({}[e] || e) + "." + {
- 303: "27a8ef6801"
- }[e] + ".js"
- }(e);
- var l = new Error;
- a = function(t) {
- s.onerror = s.onload = null,
- clearTimeout(u);
- var n = r[e];
- if (0 !== n) {
- if (n) {
- var i = t && ("load" === t.type ? "missing" : t.type)
- , o = t && t.target && t.target.src;
- l.message = "Loading chunk " + e + " failed.\n(" + i + ": " + o + ")",
- l.name = "ChunkLoadError",
- l.type = i,
- l.request = o,
- n[1](l)
- }
- r[e] = void 0
- }
- }
- ;
- var u = setTimeout((function() {
- a({
- type: "timeout",
- target: s
- })
- }
- ), 12e4);
- s.onerror = s.onload = a,
- document.head.appendChild(s)
- }
- return Promise.all(t)
- }
- ,
- i.m = e,
- i.c = n,
- i.d = function(e, t, n) {
- i.o(e, t) || Object.defineProperty(e, t, {
- enumerable: !0,
- get: n
- })
- }
- ,
- i.r = function(e) {
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
- value: "Module"
- }),
- Object.defineProperty(e, "__esModule", {
- value: !0
- })
- }
- ,
- i.t = function(e, t) {
- if (1 & t && (e = i(e)),
- 8 & t)
- return e;
- if (4 & t && "object" == typeof e && e && e.__esModule)
- return e;
- var n = Object.create(null);
- if (i.r(n),
- Object.defineProperty(n, "default", {
- enumerable: !0,
- value: e
- }),
- 2 & t && "string" != typeof e)
- for (var r in e)
- i.d(n, r, function(t) {
- return e[t]
- }
- .bind(null, r));
- return n
- }
- ,
- i.n = function(e) {
- var t = e && e.__esModule ? function() {
- return e.default
- }
- : function() {
- return e
- }
- ;
- return i.d(t, "a", t),
- t
- }
- ,
- i.o = function(e, t) {
- return Object.prototype.hasOwnProperty.call(e, t)
- }
- ,
- i.p = "",
- i.oe = function(e) {
- throw console.error(e),
- e
- }
- ;
- var o = window.wepbackJsonp1667381142044 = window.wepbackJsonp1667381142044 || []
- , a = o.push.bind(o);
- o.push = t,
- o = o.slice();
- for (var s = 0; s < o.length; s++)
- t(o[s]);
- var l = a;
- i(i.s = 1049)
- }({
- 0: function(e, t, n) {
- "use strict";
- function r(e, t, n, r, i, o, a, s) {
- var l, u = "function" == typeof e ? e.options : e;
- if (t && (u.render = t,
- u.staticRenderFns = n,
- u._compiled = !0),
- r && (u.functional = !0),
- o && (u._scopeId = "data-v-" + o),
- a ? (l = function(e) {
- (e = e || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (e = __VUE_SSR_CONTEXT__),
- i && i.call(this, e),
- e && e._registeredComponents && e._registeredComponents.add(a)
- }
- ,
- u._ssrRegister = l) : i && (l = s ? function() {
- i.call(this, (u.functional ? this.parent : this).$root.$options.shadowRoot)
- }
- : i),
- l)
- if (u.functional) {
- u._injectStyles = l;
- var c = u.render;
- u.render = function(e, t) {
- return l.call(t),
- c(e, t)
- }
- } else {
- var d = u.beforeCreate;
- u.beforeCreate = d ? [].concat(d, l) : [l]
- }
- return {
- exports: e,
- options: u
- }
- }
- n.d(t, "a", (function() {
- return r
- }
- ))
- },
- 1: function(e, t, n) {
- "use strict";
- n.r(t),
- n.d(t, "computed", (function() {
- return Oe
- }
- )),
- n.d(t, "createApp", (function() {
- return je
- }
- )),
- n.d(t, "customRef", (function() {
- return $
- }
- )),
- n.d(t, "defineComponent", (function() {
- return qe
- }
- )),
- n.d(t, "del", (function() {
- return ue
- }
- )),
- n.d(t, "getCurrentInstance", (function() {
- return x
- }
- )),
- n.d(t, "h", (function() {
- return Ne
- }
- )),
- n.d(t, "inject", (function() {
- return Pe
- }
- )),
- n.d(t, "isRaw", (function() {
- return X
- }
- )),
- n.d(t, "isReactive", (function() {
- return Q
- }
- )),
- n.d(t, "isReadonly", (function() {
- return J
- }
- )),
- n.d(t, "isRef", (function() {
- return W
- }
- )),
- n.d(t, "markRaw", (function() {
- return ae
- }
- )),
- n.d(t, "nextTick", (function() {
- return De
- }
- )),
- n.d(t, "onActivated", (function() {
- return be
- }
- )),
- n.d(t, "onBeforeMount", (function() {
- return fe
- }
- )),
- n.d(t, "onBeforeUnmount", (function() {
- return me
- }
- )),
- n.d(t, "onBeforeUpdate", (function() {
- return pe
- }
- )),
- n.d(t, "onDeactivated", (function() {
- return _e
- }
- )),
- n.d(t, "onErrorCaptured", (function() {
- return ye
- }
- )),
- n.d(t, "onMounted", (function() {
- return he
- }
- )),
- n.d(t, "onServerPrefetch", (function() {
- return we
- }
- )),
- n.d(t, "onUnmounted", (function() {
- return ve
- }
- )),
- n.d(t, "onUpdated", (function() {
- return ge
- }
- )),
- n.d(t, "provide", (function() {
- return Le
- }
- )),
- n.d(t, "proxyRefs", (function() {
- return Y
- }
- )),
- n.d(t, "reactive", (function() {
- return ie
- }
- )),
- n.d(t, "ref", (function() {
- return U
- }
- )),
- n.d(t, "set", (function() {
- return le
- }
- )),
- n.d(t, "shallowReactive", (function() {
- return re
- }
- )),
- n.d(t, "shallowReadonly", (function() {
- return oe
- }
- )),
- n.d(t, "shallowRef", (function() {
- return Z
- }
- )),
- n.d(t, "toRaw", (function() {
- return se
- }
- )),
- n.d(t, "toRef", (function() {
- return G
- }
- )),
- n.d(t, "toRefs", (function() {
- return V
- }
- )),
- n.d(t, "triggerRef", (function() {
- return q
- }
- )),
- n.d(t, "unref", (function() {
- return H
- }
- )),
- n.d(t, "useCSSModule", (function() {
- return ze
- }
- )),
- n.d(t, "version", (function() {
- return Ye
- }
- )),
- n.d(t, "watch", (function() {
- return Ee
- }
- )),
- n.d(t, "watchEffect", (function() {
- return Ae
- }
- ));
- var r = n(60);
- function i(e) {
- return "function" == typeof e && /native code/.test(e.toString())
- }
- var o = "undefined" != typeof Symbol && i(Symbol) && "undefined" != typeof Reflect && i(Reflect.ownKeys)
- , a = function(e) {
- return e
- }
- , s = {
- enumerable: !0,
- configurable: !0,
- get: a,
- set: a
- };
- function l(e, t, n) {
- var r = n.get
- , i = n.set;
- s.get = r || a,
- s.set = i || a,
- Object.defineProperty(e, t, s)
- }
- function u(e, t, n, r) {
- Object.defineProperty(e, t, {
- value: n,
- enumerable: !!r,
- writable: !0,
- configurable: !0
- })
- }
- function c(e, t) {
- return Object.hasOwnProperty.call(e, t)
- }
- function d(e) {
- return Array.isArray(e)
- }
- function f(e) {
- var t = parseFloat(String(e));
- return t >= 0 && Math.floor(t) === t && isFinite(e)
- }
- function h(e) {
- return "[object Object]" === function(e) {
- return Object.prototype.toString.call(e)
- }(e)
- }
- function p(e) {
- return "function" == typeof e
- }
- function g(e, t) {
- r.default.util.warn(e, t)
- }
- var m = void 0;
- try {
- var v = n(60);
- v && w(v) ? m = v : v && "default"in v && w(v.default) && (m = v.default)
- } catch (e) {}
- var y, b = null, _ = null;
- function w(e) {
- return e && "function" == typeof e && "Vue" === e.name
- }
- function S() {
- return b
- }
- function x() {
- return _
- }
- function k(e) {
- _ = e
- }
- function I(e) {
- return x()
- }
- function C(e, t) {
- void 0 === t && (t = {});
- var n = e.config.silent;
- e.config.silent = !0;
- var r = new e(t);
- return e.config.silent = n,
- r
- }
- function M(e, t) {
- return function() {
- for (var n = [], r = 0; r < arguments.length; r++)
- n[r] = arguments[r];
- return e.$scopedSlots[t] ? e.$scopedSlots[t].apply(e, n) : g("slots." + t + '() got called outside of the "render()" scope', e)
- }
- }
- var T = function() {
- return (T = Object.assign || function(e) {
- for (var t, n = 1, r = arguments.length; n < r; n++)
- for (var i in t = arguments[n])
- Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
- return e
- }
- ).apply(this, arguments)
- };
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- function A(e) {
- var t = "function" == typeof Symbol && Symbol.iterator
- , n = t && e[t]
- , r = 0;
- if (n)
- return n.call(e);
- if (e && "number" == typeof e.length)
- return {
- next: function() {
- return e && r >= e.length && (e = void 0),
- {
- value: e && e[r++],
- done: !e
- }
- }
- };
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.")
- }
- function E(e, t) {
- var n = "function" == typeof Symbol && e[Symbol.iterator];
- if (!n)
- return e;
- var r, i, o = n.call(e), a = [];
- try {
- for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; )
- a.push(r.value)
- } catch (e) {
- i = {
- error: e
- }
- } finally {
- try {
- r && !r.done && (n = o.return) && n.call(o)
- } finally {
- if (i)
- throw i.error
- }
- }
- return a
- }
- function O() {
- for (var e = [], t = 0; t < arguments.length; t++)
- e = e.concat(E(arguments[t]));
- return e
- }
- function B(e) {
- return o ? Symbol.for(e) : e
- }
- var L = B("composition-api.preFlushQueue")
- , P = B("composition-api.postFlushQueue")
- , R = "composition-api.refKey"
- , z = new WeakMap
- , j = new WeakMap
- , F = new WeakMap
- , D = function(e) {
- l(this, "value", {
- get: e.get,
- set: e.set
- })
- };
- function N(e, t) {
- var n = new D(e)
- , r = Object.seal(n);
- return F.set(r, !0),
- r
- }
- function U(e) {
- var t;
- if (W(e))
- return e;
- var n = ie(((t = {})[R] = e,
- t));
- return N({
- get: function() {
- return n[R]
- },
- set: function(e) {
- return n[R] = e
- }
- })
- }
- function W(e) {
- return e instanceof D
- }
- function H(e) {
- return W(e) ? e.value : e
- }
- function V(e) {
- if (!h(e))
- return e;
- var t = {};
- for (var n in e)
- t[n] = G(e, n);
- return t
- }
- function $(e) {
- var t = U(0);
- return N(e((function() {
- t.value
- }
- ), (function() {
- ++t.value
- }
- )))
- }
- function G(e, t) {
- var n = e[t];
- return W(n) ? n : N({
- get: function() {
- return e[t]
- },
- set: function(n) {
- return e[t] = n
- }
- })
- }
- function Z(e) {
- var t;
- if (W(e))
- return e;
- var n = re(((t = {})[R] = e,
- t));
- return N({
- get: function() {
- return n[R]
- },
- set: function(e) {
- return n[R] = e
- }
- })
- }
- function q(e) {
- W(e) && (e.value = e.value)
- }
- function Y(e) {
- var t, n, r;
- if (Q(e))
- return e;
- var i = ie(((t = {})[R] = e,
- t))
- , o = function(e) {
- l(i, e, {
- get: function() {
- return W(i[e]) ? i[e].value : i[e]
- },
- set: function(t) {
- if (W(i[e]))
- return i[e].value = H(t);
- i[e] = H(t)
- }
- })
- };
- try {
- for (var a = A(Object.keys(e)), s = a.next(); !s.done; s = a.next()) {
- o(s.value)
- }
- } catch (e) {
- n = {
- error: e
- }
- } finally {
- try {
- s && !s.done && (r = a.return) && r.call(a)
- } finally {
- if (n)
- throw n.error
- }
- }
- return i
- }
- function X(e) {
- var t;
- return Boolean((null == e ? void 0 : e.__ob__) && (null === (t = e.__ob__) || void 0 === t ? void 0 : t.__raw__))
- }
- function J(e) {
- return F.has(e)
- }
- function Q(e) {
- var t;
- return Boolean((null == e ? void 0 : e.__ob__) && !(null === (t = e.__ob__) || void 0 === t ? void 0 : t.__raw__))
- }
- function K(e) {
- if (!(!h(e) || X(e) || Array.isArray(e) || W(e) || (t = e,
- n = S(),
- n && t instanceof n) || z.has(e))) {
- var t, n;
- z.set(e, !0);
- for (var r = Object.keys(e), i = 0; i < r.length; i++)
- ee(e, r[i])
- }
- }
- function ee(e, t, n) {
- if ("__ob__" !== t && !X(e[t])) {
- var r, i, o = Object.getOwnPropertyDescriptor(e, t);
- if (o) {
- if (!1 === o.configurable)
- return;
- r = o.get,
- i = o.set,
- r && !i || 2 !== arguments.length || (n = e[t])
- }
- K(n),
- Object.defineProperty(e, t, {
- enumerable: !0,
- configurable: !0,
- get: function() {
- var i = r ? r.call(e) : n;
- return t !== R && W(i) ? i.value : i
- },
- set: function(o) {
- if (!r || i) {
- var a = r ? r.call(e) : n;
- t !== R && W(a) && !W(o) ? a.value = o : i ? i.call(e, o) : n = o,
- K(o)
- }
- }
- })
- }
- }
- function te(e) {
- var t, n = b || m;
- n.observable ? t = n.observable(e) : t = C(n, {
- data: {
- $$state: e
- }
- })._data.$$state;
- return c(t, "__ob__") || u(t, "__ob__", function(e) {
- void 0 === e && (e = {});
- return {
- value: e,
- dep: {
- notify: a,
- depend: a,
- addSub: a,
- removeSub: a
- }
- }
- }(t)),
- t
- }
- function ne() {
- return te({}).__ob__
- }
- function re(e) {
- var t, n;
- if (!h(e) && !d(e) || X(e) || !Object.isExtensible(e))
- return e;
- var r = te({});
- K(r);
- var i = r.__ob__
- , o = function(t) {
- var n, o, s = e[t], l = Object.getOwnPropertyDescriptor(e, t);
- if (l) {
- if (!1 === l.configurable)
- return "continue";
- n = l.get,
- o = l.set,
- n && !o || 2 !== a.length || (s = e[t])
- }
- Object.defineProperty(r, t, {
- enumerable: !0,
- configurable: !0,
- get: function() {
- var t, r = n ? n.call(e) : s;
- return null === (t = i.dep) || void 0 === t || t.depend(),
- r
- },
- set: function(t) {
- var r;
- n && !o || (o ? o.call(e, t) : s = t,
- null === (r = i.dep) || void 0 === r || r.notify())
- }
- })
- }
- , a = arguments;
- try {
- for (var s = A(Object.keys(e)), l = s.next(); !l.done; l = s.next()) {
- var u = l.value;
- o(u)
- }
- } catch (e) {
- t = {
- error: e
- }
- } finally {
- try {
- l && !l.done && (n = s.return) && n.call(s)
- } finally {
- if (t)
- throw t.error
- }
- }
- return r
- }
- function ie(e) {
- if (!h(e) && !d(e) || X(e) || !Object.isExtensible(e))
- return e;
- var t = te(e);
- return K(t),
- t
- }
- function oe(e) {
- var t, n;
- if (!h(e) && !d(e) || !Object.isExtensible(e))
- return e;
- var r = {}
- , i = ie({})
- , o = i.__ob__
- , a = function(t) {
- var n, i = e[t], a = void 0, l = Object.getOwnPropertyDescriptor(e, t);
- if (l) {
- if (!1 === l.configurable)
- return "continue";
- n = l.get,
- a = l.set,
- n && !a || 2 !== s.length || (i = e[t])
- }
- Object.defineProperty(r, t, {
- enumerable: !0,
- configurable: !0,
- get: function() {
- var t = n ? n.call(e) : i;
- return o.dep.depend(),
- t
- },
- set: function(e) {
- 0
- }
- })
- }
- , s = arguments;
- try {
- for (var l = A(Object.keys(e)), u = l.next(); !u.done; u = l.next()) {
- var c = u.value;
- a(c)
- }
- } catch (e) {
- t = {
- error: e
- }
- } finally {
- try {
- u && !u.done && (n = l.return) && n.call(l)
- } finally {
- if (t)
- throw t.error
- }
- }
- return F.set(r, !0),
- r
- }
- function ae(e) {
- if (!h(e) && !d(e) || !Object.isExtensible(e))
- return e;
- var t = ne();
- return t.__raw__ = !0,
- u(e, "__ob__", t),
- j.set(e, !0),
- e
- }
- function se(e) {
- var t, n;
- return X(e) || !Object.isExtensible(e) ? e : (null === (n = null === (t = e) || void 0 === t ? void 0 : t.__ob__) || void 0 === n ? void 0 : n.value) || e
- }
- function le(e, t, n) {
- var r = S().util
- , i = (r.warn,
- r.defineReactive);
- if (d(e) && f(t))
- return e.length = Math.max(e.length, t),
- e.splice(t, 1, n),
- n;
- if (t in e && !(t in Object.prototype))
- return e[t] = n,
- n;
- var o = e.__ob__;
- return e._isVue || o && o.vmCount ? n : o ? (i(o.value, t, n),
- ee(e, t, n),
- o.dep.notify(),
- n) : (e[t] = n,
- n)
- }
- function ue(e, t) {
- S().util.warn;
- if (Array.isArray(e) && f(t))
- e.splice(t, 1);
- else {
- var n = e.__ob__;
- e._isVue || n && n.vmCount || c(e, t) && (delete e[t],
- n && n.dep.notify())
- }
- }
- function ce(e) {
- return function(t) {
- var n, r = I(((n = e)[0].toUpperCase(),
- n.slice(1)));
- r && function(e, t, n, r) {
- var i = t.$options
- , o = e.config.optionMergeStrategies[n];
- i[n] = o(i[n], function(e, t) {
- return function() {
- for (var n = [], r = 0; r < arguments.length; r++)
- n[r] = arguments[r];
- var i = x();
- k(e);
- try {
- return t.apply(void 0, O(n))
- } finally {
- k(i)
- }
- }
- }(t, r))
- }(S(), r, e, t)
- }
- }
- var de, fe = ce("beforeMount"), he = ce("mounted"), pe = ce("beforeUpdate"), ge = ce("updated"), me = ce("beforeDestroy"), ve = ce("destroyed"), ye = ce("errorCaptured"), be = ce("activated"), _e = ce("deactivated"), we = ce("serverPrefetch");
- function Se() {
- Ie(this, L)
- }
- function xe() {
- Ie(this, P)
- }
- function ke() {
- var e = x();
- return e ? function(e) {
- return void 0 !== e[L]
- }(e) || function(e) {
- e[L] = [],
- e[P] = [],
- e.$on("hook:beforeUpdate", Se),
- e.$on("hook:updated", xe)
- }(e) : (de || (de = C(S())),
- e = de),
- e
- }
- function Ie(e, t) {
- for (var n = e[t], r = 0; r < n.length; r++)
- n[r]();
- n.length = 0
- }
- function Ce(e, t, n) {
- var r = function() {
- e.$nextTick((function() {
- e[L].length && Ie(e, L),
- e[P].length && Ie(e, P)
- }
- ))
- };
- switch (n) {
- case "pre":
- r(),
- e[L].push(t);
- break;
- case "post":
- r(),
- e[P].push(t);
- break;
- default:
- !function(e, t) {
- if (!e)
- throw new Error("[vue-composition-api] " + t)
- }(!1, 'flush must be one of ["post", "pre", "sync"], but got ' + n)
- }
- }
- function Me(e, t) {
- var n = e.teardown;
- e.teardown = function() {
- for (var r = [], i = 0; i < arguments.length; i++)
- r[i] = arguments[i];
- n.apply(e, r),
- t()
- }
- }
- function Te(e, t, n, r) {
- var i, o, s = r.flush, l = "sync" === s, u = function(e) {
- o = function() {
- try {
- e()
- } catch (e) {
- !function(e, t, n) {
- if ("undefined" == typeof window || "undefined" == typeof console)
- throw e;
- console.error(e)
- }(e)
- }
- }
- }, c = function() {
- o && (o(),
- o = null)
- }, d = function(t) {
- return l || e === de ? t : function() {
- for (var n = [], r = 0; r < arguments.length; r++)
- n[r] = arguments[r];
- return Ce(e, (function() {
- t.apply(void 0, O(n))
- }
- ), s)
- }
- };
- if (null === n) {
- var f = !1
- , h = function(e, t, n, r) {
- var i = e._watchers.length;
- return e.$watch(t, n, {
- immediate: r.immediateInvokeCallback,
- deep: r.deep,
- lazy: r.noRun,
- sync: r.sync,
- before: r.before
- }),
- e._watchers[i]
- }(e, (function() {
- if (!f)
- try {
- f = !0,
- t(u)
- } finally {
- f = !1
- }
- }
- ), a, {
- deep: r.deep || !1,
- sync: l,
- before: c
- });
- Me(h, c),
- h.lazy = !1;
- var m = h.get.bind(h);
- return h.get = d(m),
- function() {
- h.teardown()
- }
- }
- var v, y = r.deep;
- Array.isArray(t) ? v = function() {
- return t.map((function(e) {
- return W(e) ? e.value : e()
- }
- ))
- }
- : W(t) ? v = function() {
- return t.value
- }
- : Q(t) ? (v = function() {
- return t
- }
- ,
- y = !0) : p(t) ? v = t : (v = a,
- g("Invalid watch source: " + JSON.stringify(t) + ".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.", e));
- var b = function(e, t) {
- c(),
- n(e, t, u)
- }
- , _ = d(b);
- if (r.immediate) {
- var w = _
- , S = function(e, t) {
- S = w,
- b(e, t)
- };
- _ = function(e, t) {
- S(e, t)
- }
- }
- var x = e.$watch(v, _, {
- immediate: r.immediate,
- deep: y,
- sync: l
- })
- , k = e._watchers[e._watchers.length - 1];
- return Q(k.value) && (null === (i = k.value.__ob__) || void 0 === i ? void 0 : i.dep) && y && k.value.__ob__.dep.addSub({
- update: function() {
- k.run()
- }
- }),
- Me(k, c),
- function() {
- x()
- }
- }
- function Ae(e, t) {
- var n = function(e) {
- return T({
- immediate: !0,
- deep: !1,
- flush: "pre"
- }, e)
- }(t);
- return Te(ke(), e, null, n)
- }
- function Ee(e, t, n) {
- var r = null;
- "function" == typeof t ? r = t : (n = t,
- r = null);
- var i = function(e) {
- return T({
- immediate: !1,
- deep: !1,
- flush: "pre"
- }, e)
- }(n);
- return Te(ke(), e, r, i)
- }
- function Oe(e) {
- var t, n, r, i, o = x();
- if ("function" == typeof e ? t = e : (t = e.get,
- n = e.set),
- o && !o.$isServer) {
- var s, l = function() {
- if (!y) {
- var e = C(S(), {
- computed: {
- value: function() {
- return 0
- }
- }
- })
- , t = e._computedWatchers.value.constructor
- , n = e._data.__ob__.dep.constructor;
- y = {
- Watcher: t,
- Dep: n
- },
- e.$destroy()
- }
- return y
- }(), u = l.Watcher, c = l.Dep;
- i = function() {
- return s || (s = new u(o,t,a,{
- lazy: !0
- })),
- s.dirty && s.evaluate(),
- c.target && s.depend(),
- s.value
- }
- ,
- r = function(e) {
- n && n(e)
- }
- } else {
- var d = C(S(), {
- computed: {
- $$state: {
- get: t,
- set: n
- }
- }
- });
- o && o.$on("hook:destroyed", (function() {
- return d.$destroy()
- }
- )),
- i = function() {
- return d.$$state
- }
- ,
- r = function(e) {
- d.$$state = e
- }
- }
- return N({
- get: i,
- set: r
- })
- }
- var Be = {};
- function Le(e, t) {
- var n = I();
- if (n) {
- if (!n._provided) {
- var r = {};
- Object.defineProperty(n, "_provided", {
- get: function() {
- return r
- },
- set: function(e) {
- return Object.assign(r, e)
- }
- })
- }
- n._provided[e] = t
- }
- }
- function Pe(e, t, n) {
- if (void 0 === n && (n = !1),
- !e)
- return t;
- var r = x();
- if (r) {
- var i = function(e, t) {
- for (var n = t; n; ) {
- if (n._provided && c(n._provided, e))
- return n._provided[e];
- n = n.$parent
- }
- return Be
- }(e, r);
- return i !== Be ? i : n && p(t) ? t() : t
- }
- g("inject() can only be used inside setup() or functional components.")
- }
- var Re = {}
- , ze = function(e) {
- void 0 === e && (e = "$style");
- var t = x();
- if (!t)
- return Re;
- var n = t[e];
- return n || Re
- };
- function je(e, t) {
- void 0 === t && (t = void 0);
- var n = S()
- , r = void 0;
- return {
- config: n.config,
- use: n.use.bind(n),
- mixin: n.mixin.bind(n),
- component: n.component.bind(n),
- directive: n.directive.bind(n),
- mount: function(i, o) {
- return r || ((r = new n(T({
- propsData: t
- }, e))).$mount(i, o),
- r)
- },
- unmount: function() {
- r && (r.$destroy(),
- r = void 0)
- }
- }
- }
- var Fe, De = function() {
- for (var e, t = [], n = 0; n < arguments.length; n++)
- t[n] = arguments[n];
- return null === (e = S()) || void 0 === e ? void 0 : e.nextTick.apply(this, t)
- }, Ne = function() {
- for (var e = [], t = 0; t < arguments.length; t++)
- e[t] = arguments[t];
- var n = x();
- return n ? n.$createElement.apply(n, e) : (g("`createElement()` has been called outside of render function."),
- Fe || (Fe = C(S()).$createElement),
- Fe.apply(Fe, e))
- };
- var Ue = {
- set: function(e, t, n) {
- (e.__composition_api_state__ = e.__composition_api_state__ || {})[t] = n
- },
- get: function(e, t) {
- return (e.__composition_api_state__ || {})[t]
- }
- };
- function We(e) {
- var t = Ue.get(e, "rawBindings") || {};
- if (t && Object.keys(t).length) {
- for (var n = e.$refs, r = Ue.get(e, "refs") || [], i = 0; i < r.length; i++) {
- var o = t[l = r[i]];
- !n[l] && o && W(o) && (o.value = null)
- }
- var a = Object.keys(n)
- , s = [];
- for (i = 0; i < a.length; i++) {
- var l;
- o = t[l = a[i]];
- n[l] && o && W(o) && (o.value = n[l],
- s.push(l))
- }
- Ue.set(e, "refs", s)
- }
- }
- function He(e, t) {
- var n = e.$options._parentVnode;
- if (n) {
- for (var r = Ue.get(e, "slots") || [], i = function(e, t) {
- var n;
- if (e) {
- if (e._normalized)
- return e._normalized;
- for (var r in n = {},
- e)
- e[r] && "$" !== r[0] && (n[r] = !0)
- } else
- n = {};
- for (var r in t)
- r in n || (n[r] = !0);
- return n
- }(n.data.scopedSlots, e.$slots), o = 0; o < r.length; o++) {
- i[s = r[o]] || delete t[s]
- }
- var a = Object.keys(i);
- for (o = 0; o < a.length; o++) {
- var s;
- t[s = a[o]] || (t[s] = M(e, s))
- }
- Ue.set(e, "slots", a)
- }
- }
- function Ve(e, t, n) {
- var r = x();
- k(e);
- try {
- return t(e)
- } catch (e) {
- if (!n)
- throw e;
- n(e)
- } finally {
- k(r)
- }
- }
- function $e(e) {
- e.mixin({
- beforeCreate: function() {
- var e = this
- , t = e.$options
- , n = t.setup
- , r = t.render;
- r && (t.render = function() {
- for (var t = this, n = [], i = 0; i < arguments.length; i++)
- n[i] = arguments[i];
- return Ve(e, (function() {
- return r.apply(t, n)
- }
- ))
- }
- );
- if (!n)
- return;
- if ("function" != typeof n)
- return void 0;
- var i = t.data;
- t.data = function() {
- return function(e, t) {
- void 0 === t && (t = {});
- var n, r = e.$options.setup, i = function(e) {
- var t = {
- slots: {}
- };
- ["root", "parent", "refs", "attrs", "listeners", "isServer", "ssrContext"].forEach((function(n) {
- var r, i, o;
- Array.isArray(n) ? (r = E(n, 2),
- i = r[0],
- o = r[1]) : i = o = n,
- o = "$" + o,
- l(t, i, {
- get: function() {
- return e[o]
- },
- set: function() {
- g("Cannot assign to '" + i + "' because it is a read-only property", e)
- }
- })
- }
- )),
- ["emit"].forEach((function(n) {
- var r = "$" + n;
- l(t, n, {
- get: function() {
- return function() {
- for (var t = [], n = 0; n < arguments.length; n++)
- t[n] = arguments[n];
- var i = e[r];
- i.apply(e, t)
- }
- }
- })
- }
- )),
- !1;
- return t
- }(e);
- if (u(t, "__ob__", ne()),
- He(e, i.slots),
- Ve(e, (function() {
- n = r(t, i)
- }
- )),
- !n)
- return;
- if (p(n)) {
- var o = n;
- return void (e.$options.render = function() {
- return He(e, i.slots),
- Ve(e, (function() {
- return o()
- }
- ))
- }
- )
- }
- if (h(n)) {
- Q(n) && (n = V(n)),
- Ue.set(e, "rawBindings", n);
- var a = n;
- return void Object.keys(a).forEach((function(t) {
- var n, r = a[t];
- W(r) || (Q(r) ? d(r) && (r = U(r)) : p(r) ? r = r.bind(e) : null === (n = r) || "object" != typeof n ? r = U(r) : function e(t, n) {
- void 0 === n && (n = new Map);
- if (n.has(t))
- return n.get(t);
- if (n.set(t, !1),
- Array.isArray(t) && Q(t))
- return n.set(t, !0),
- !0;
- if (!h(t) || X(t))
- return !1;
- return Object.keys(t).some((function(r) {
- return e(t[r], n)
- }
- ))
- }(r) && function e(t) {
- if (!h(t) || W(t) || Q(t) || X(t))
- return;
- var n = S().util.defineReactive;
- Object.keys(t).forEach((function(r) {
- var i = t[r];
- n(t, r, i),
- i && e(i)
- }
- ))
- }(r)),
- function(e, t, n) {
- var r = e.$options.props;
- t in e || r && c(r, t) || (W(n) ? l(e, t, {
- get: function() {
- return n.value
- },
- set: function(e) {
- n.value = e
- }
- }) : e[t] = n)
- }(e, t, r)
- }
- ))
- }
- 0
- }(e, e.$props),
- "function" == typeof i ? i.call(e, e) : i || {}
- }
- },
- mounted: function() {
- We(this)
- },
- updated: function() {
- We(this)
- }
- })
- }
- function Ge(e) {
- (function(e) {
- return c(e, "__composition_api_installed__")
- }
- )(e) || (e.config.optionMergeStrategies.setup = function(e, t) {
- return function(n, r) {
- return function e(t, n) {
- if (!t)
- return n;
- if (!n)
- return t;
- for (var r, i, a, s = o ? Reflect.ownKeys(t) : Object.keys(t), l = 0; l < s.length; l++)
- "__ob__" !== (r = s[l]) && (i = n[r],
- a = t[r],
- c(n, r) ? i !== a && h(i) && !W(i) && h(a) && !W(a) && e(a, i) : n[r] = a);
- return n
- }("function" == typeof e ? e(n, r) || {} : void 0, "function" == typeof t ? t(n, r) || {} : void 0)
- }
- }
- ,
- function(e) {
- b = e,
- Object.defineProperty(e, "__composition_api_installed__", {
- configurable: !0,
- writable: !0,
- value: !0
- })
- }(e),
- $e(e))
- }
- var Ze = {
- install: function(e) {
- return Ge(e)
- }
- };
- function qe(e) {
- return e
- }
- var Ye = "1.0.0-beta.19";
- "undefined" != typeof window && window.Vue && window.Vue.use(Ze),
- t.default = Ze
- },
- 1049: function(e, t, n) {
- "use strict";
- n.r(t);
- var r = n(4)
- , i = n(60)
- , o = n(451)
- , a = n(23)
- , s = n(279)
- , l = n(280)
- , u = n(1);
- class c {
- constructor() {
- this.handlers = {},
- this.channelSetupPromise = new Promise(e=>{
- window.addEventListener("message", t=>{
- const [n,{port: r}] = t.data;
- "setup-channel" === n && (r.start(),
- r.addEventListener("message", this.eventDispatcher.bind(this)),
- this.port = r,
- r.postMessage(["channel-ready"]),
- e(null))
- }
- )
- }
- )
- }
- eventDispatcher(e) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- if (yield this.channelSetupPromise,
- !this.port)
- return;
- const [t,n,r] = e.data
- , i = this.handlers[t];
- i && this.port.postMessage([r, yield i(n)])
- }
- ))
- }
- addEventListener(e, t) {
- this.handlers[e] = t
- }
- removeEventListener(e) {
- delete this.handlers[e]
- }
- emit(e, t) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- yield this.channelSetupPromise,
- this.port && this.port.postMessage(["event", e, t])
- }
- ))
- }
- }
- const d = e=>{
- const t = Object(l.createServices)()
- , n = document.createElement("div");
- n.classList.add("h-100", "w-100");
- const a = document.createElement("div");
- n.appendChild(a),
- document.body.appendChild(n);
- const s = (location.pathname.match(/^\/(m|embed)\/(([0-9A-Za-z])+)/) || [])[2]
- , u = s ? "https://www.xmind.app/m/" + s : ""
- , c = new i.default({
- el: a,
- provide: t,
- render: t=>t(o.default, {
- props: {
- fileInformationPromise: e(),
- xmindShareLink: u
- }
- })
- });
- return {
- services: t,
- destroy: ()=>Object(r.a)(void 0, void 0, void 0, (function*() {
- var e;
- c.$destroy(),
- yield new Promise(e=>setTimeout(e)),
- null === (e = n.parentElement) || void 0 === e || e.removeChild(n)
- }
- ))
- }
- }
- ;
- (()=>{
- const e = (location.pathname.match(/^\/(m|embed)\/(([0-9A-Za-z])+)/) || [])[2];
- let t;
- if (e)
- t = d(()=>Object(r.a)(void 0, void 0, void 0, (function*() {
- const {downloadUrl: t} = yield window.api.getShareMapContentUrl(e)
- , n = yield Object(a.downloadFromRemoteAddress)(t, {}, new s.ShareStorage);
- if (n)
- return {
- fileBinaryContent: n.data,
- fileDownloadURL: t,
- fileDownloadHeaders: {}
- }
- }
- )));
- else {
- const e = new c;
- e.addEventListener("open-file", n=>Object(r.a)(void 0, void 0, void 0, (function*() {
- null == t || t.destroy(),
- t = d(()=>Object(r.a)(void 0, void 0, void 0, (function*() {
- return {
- fileBinaryContent: n,
- fileDownloadHeaders: {},
- fileDownloadURL: ""
- }
- }
- )));
- const {services: i} = t
- , {store: o} = i;
- Object(u.watch)(()=>o.workbook.state.value.sheets, t=>e.emit("sheets-load", t)),
- Object(u.watch)(()=>o.workbook.state.value.currentSheetId, t=>e.emit("sheet-switch", t)),
- Object(u.watch)(()=>o.workbook.state.value.zoomScale, t=>e.emit("zoom-change", t)),
- Object(u.watch)(()=>o.workbook.state.value.isReady, t=>e.emit("map-ready", t))
- }
- ))),
- e.addEventListener("fit-map", ()=>Object(r.a)(void 0, void 0, void 0, (function*() {
- t.services.store.workbook.actions.fitMap()
- }
- ))),
- e.addEventListener("zoom", e=>Object(r.a)(void 0, void 0, void 0, (function*() {
- t && t.services.store.workbook.actions.zoom(e)
- }
- ))),
- e.addEventListener("switch-sheet", e=>Object(r.a)(void 0, void 0, void 0, (function*() {
- t && t.services.store.workbook.actions.switchSheet(e)
- }
- )))
- }
- }
- )()
- },
- 109: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.findAncestralMainTopicIdFrom = t.findHeaderTopic = t.computeSiblingTopics = t.computeRootTopics = t.computeSubtopicsOf = t.computeSlideContent = void 0;
- const r = n(165);
- function i(e, t) {
- return t.getSubtopics(e).map(e=>{
- var n;
- return null !== (n = t.getTopicAttributes(e)) && void 0 !== n ? n : {
- id: e,
- title: ""
- }
- }
- )
- }
- function o(e) {
- const t = e.getStartingTopicId()
- , n = e.getFloatingTopics ? e.getFloatingTopics() : [];
- return t ? [t, ...n] : n
- }
- function a(e, t) {
- const n = t.indexOf(e);
- return {
- previousSiblingTopicId: n < 1 ? null : t[n - 1],
- nextSiblingTopicId: n < 0 || n >= t.length - 1 ? null : t[n + 1]
- }
- }
- function s(e, t) {
- const n = l(e, t);
- return n && n !== e ? t.getTopicAttributes(n) : null
- }
- function l(e, t) {
- let n = t.getParentTopicId(e);
- for (; n; ) {
- const r = t.getParentTopicId(n);
- if (!r)
- return e;
- e = n,
- n = r
- }
- return null
- }
- t.computeSlideContent = function(e, t) {
- var n;
- const l = t.getTopicAttributes(e);
- if (!l)
- return null;
- const u = r.computeTopicLevel(e, t)
- , c = i(e, t)
- , d = s(e, t)
- , f = l.calloutTopicId ? t.getTopicAttributes(l.calloutTopicId) : null
- , h = t.getParentTopicId(e)
- , p = h ? t.getTopicAttributes(h) : null
- , g = "summaryTopic" === u ? [] : "floatingTopic" === u ? o(t) : h ? t.getSubtopics(h) : o(t)
- , {previousSiblingTopicId: m, nextSiblingTopicId: v} = a(e, g)
- , y = (null !== (n = null == p ? void 0 : p.summaries) && void 0 !== n ? n : []).find(t=>t.topicId === e);
- return {
- topic: l,
- topicLevel: u,
- parentTopicId: h,
- previousSiblingTopicId: m,
- nextSiblingTopicId: v,
- subtopics: c,
- headerTopic: d,
- calloutTopic: f,
- summarySubtopics: h && y ? i(h, t).slice(y.startIndex, y.endIndex + 1) : []
- }
- }
- ,
- t.computeSubtopicsOf = i,
- t.computeRootTopics = o,
- t.computeSiblingTopics = a,
- t.findHeaderTopic = s,
- t.findAncestralMainTopicIdFrom = l
- },
- 110: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.findPresentationContext = void 0,
- t.findPresentationContext = function e(t, n) {
- return n in t ? t : t.superview ? e(t.superview, n) : null
- }
- },
- 111: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.GroupView = void 0;
- const r = n(51)
- , i = n(112)
- , o = n(50)
- , a = n(110)
- , s = n(12);
- class l extends r.BoxView {
- constructor() {
- super(...arguments),
- this._subviews = [],
- this.lastMaskImage = ""
- }
- createViewElement() {
- const e = document.createElement("div");
- return e.style.display = "block",
- e.style.position = "absolute",
- e.style.overflow = "visible",
- e.classList.add("pancake-view-group"),
- e.addEventListener("DOMNodeInsertedIntoDocument", ()=>{
- this.clippedEl.scrollTop = this.scrollOffset,
- this.updateMask()
- }
- ),
- e
- }
- get clippedEl() {
- return this._clippedEl || (this._clippedEl = document.createElement("div"),
- this._clippedEl.classList.add("pancake-view-group-clip"),
- this._clippedEl.style.position = "relative",
- this._clippedEl.style.width = "100%",
- this._clippedEl.style.height = "0",
- this._clippedEl.style.overflow = "scroll",
- this.el.appendChild(this._clippedEl),
- this._clippedEl.addEventListener("wheel", e=>e.stopPropagation()),
- this._clippedEl.addEventListener("scroll", e=>{
- e.stopPropagation(),
- this.onScrollUpdate()
- }
- )),
- this._clippedEl
- }
- get contentEl() {
- return this._contentEl || (this._contentEl = document.createElement("div"),
- this._contentEl.style.position = "relative",
- this._contentEl.style.width = "100%",
- this._contentEl.style.height = "0",
- this._contentEl.style.overflow = "visible",
- this.clippedEl.appendChild(this._contentEl)),
- this._contentEl
- }
- connect() {
- super.connect();
- for (const e of this._subviews)
- e.connect()
- }
- disconnect() {
- for (const e of this._subviews)
- e.disconnect();
- super.disconnect()
- }
- get subviews() {
- return [...this._subviews]
- }
- update() {
- var e, t, n, r, l;
- const u = this.renderedState.id;
- super.update();
- const c = [...this._subviews]
- , d = this.box.children;
- for (let e = 0; e < d.length; e++) {
- const t = d[e];
- let n = c[e];
- if (n)
- if (n.box.id === t.id)
- n.box = t,
- n.update();
- else {
- const r = c.slice(e + 1).find(e=>e.box.id === t.id);
- if (r)
- this.contentEl.insertBefore(r.el, n.el),
- r.box = t,
- r.update(),
- c.splice(e, 0, r);
- else {
- const r = i.createBoxView(this, t);
- this.contentEl.insertBefore(r.el, n.el),
- r.update(),
- c.splice(e, 0, r),
- this.connected && r.connect()
- }
- }
- else
- n = i.createBoxView(this, t),
- this.contentEl.appendChild(n.el),
- n.update(),
- c.push(n)
- }
- for (; c.length > d.length; ) {
- const e = c.pop();
- this.connected && e.disconnect(),
- this.contentEl.removeChild(e.el)
- }
- if (this._subviews = c,
- this.clippedEl.style.height = this.el.style.height,
- "scroll" === this.box.overflow)
- if (this.box.contentHeight > this.box.bounds.height) {
- const t = this.connected && "presenterPerspective" === (null === (e = a.findPresentationContext(this, "slideState")) || void 0 === e ? void 0 : e.slideState.mode);
- this.clippedEl.style.overflow = t ? "scroll" : "hidden"
- } else
- this.clippedEl.style.overflow = "visible";
- else
- this.clippedEl.style.overflow = null !== (t = this.box.overflow) && void 0 !== t ? t : "hidden";
- this.contentEl.style.height = s.toCSSLength(this.contentHeight),
- this.el.style.pointerEvents = !1 === this.box.mouseInteraction ? "none" : "";
- const f = null !== (r = null !== (n = this.state.scrollOffset) && void 0 !== n ? n : this.box.scrollOffset) && void 0 !== r ? r : 0;
- this.box.id === u && f === (null !== (l = this.renderedState.scrollOffset) && void 0 !== l ? l : 0) || o.ViewAnimator.perform(this, {
- scrollOffset: f
- })
- }
- onScrollUpdate() {
- var e, t;
- const n = null !== (e = this.renderedState.scrollOffset) && void 0 !== e ? e : 0
- , r = Math.round(this.clippedEl.scrollTop);
- this.renderedState.scrollOffset = r,
- this.updateMask(),
- this.connected && Math.abs(r - n) > 1 && (null === (t = a.findPresentationContext(this, "groupViewDidGetScrolled")) || void 0 === t || t.groupViewDidGetScrolled(this))
- }
- set scrollOffset(e) {
- var t;
- null !== (t = (e = Math.round(e)) === this.renderedState.scrollOffset) && void 0 !== t && t || (this.renderedState.scrollOffset = e,
- this.clippedEl.scrollTop = e,
- this.updateMask())
- }
- get scrollOffset() {
- var e;
- return null !== (e = this.renderedState.scrollOffset) && void 0 !== e ? e : 0
- }
- get contentHeight() {
- return this.box.contentHeight
- }
- get viewportHeight() {
- return this.box.bounds.height
- }
- updateMask() {
- const e = this._computeMaskImage(!0);
- e != this.lastMaskImage && (this.lastMaskImage = e,
- this.contentEl.style.maskImage = e,
- this.contentEl.style.webkitMaskImage = e)
- }
- computeMaskImage() {
- return this._computeMaskImage(!1)
- }
- _computeMaskImage(e) {
- var t, n, r;
- const i = this.contentHeight
- , o = this.viewportHeight;
- let a = "";
- if (i > o) {
- const s = null !== (n = null === (t = this.box) || void 0 === t ? void 0 : t.scrollFaderSize) && void 0 !== n ? n : 0
- , l = this.scrollOffset
- , u = i - o - l
- , c = Math.max(s - l, 0) / s
- , d = Math.max(s - u, 0) / s
- , f = e ? l : 0
- , h = f
- , p = f + s
- , g = f + o - s
- , m = f + o;
- if ("twoStops" === (null === (r = this.box) || void 0 === r ? void 0 : r.scrollFaderType)) {
- const e = .0729 * s
- , t = .8095 * s;
- a = `linear-gradient(to bottom, rgba(0,0,0,${c}) ${h + e}px, rgba(0,0,0,${c + .8 * (1 - c)}) ${h + t}px, black ${p}px, black ${g}px, rgba(0,0,0,${d + .8 * (1 - d)}) ${m - t}px, rgba(0,0,0,${d}) ${m - e}px)`
- } else {
- const e = .05 * s;
- a = `linear-gradient(to bottom, transparent ${h}px, rgba(0,0,0,${c}) ${h + e}px, black ${p}px, black ${g}px, rgba(0,0,0,${d}) ${m - e}px, transparent ${m}px)`
- }
- }
- return a
- }
- }
- t.GroupView = l
- },
- 112: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.createBoxView = void 0;
- const r = n(168)
- , i = n(111)
- , o = n(169)
- , a = n(170)
- , s = n(171);
- t.createBoxView = function(e, t) {
- switch (t.contentType) {
- case "text":
- return new r.TextView({
- superview: e,
- box: t
- });
- case "shape":
- return new o.ShapeView({
- superview: e,
- box: t
- });
- case "group":
- return new i.GroupView({
- superview: e,
- box: t
- });
- case "image":
- return new a.ImageView({
- superview: e,
- box: t
- });
- case "svg-template":
- return new s.SVGTemplateView({
- superview: e,
- box: t
- })
- }
- }
- },
- 113: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.IndexRange = void 0;
- class r {
- constructor(e, t) {
- if (this._start = "string" == typeof e ? parseInt(e, 10) : e,
- this._end = "string" == typeof t ? parseInt(t, 10) : t,
- this._start > this._end)
- throw new Error("Invalid range: End before start: " + this._start + " " + this._end)
- }
- static fromString(e) {
- const t = e.match(/^(\d+)-(\d+)$/);
- return t ? new r(t[1],t[2]) : null
- }
- get location() {
- return this._start
- }
- get lowerBound() {
- return this._start
- }
- get upperBound() {
- return this._end + 1
- }
- get start() {
- return this._start
- }
- get end() {
- return this._end
- }
- get count() {
- return this._end - this._start + 1
- }
- get length() {
- return this._end - this._start + 1
- }
- static sort(e) {
- return e.sort((e,t)=>e.start - t.start)
- }
- join(e) {
- return this.overlaps(e) || this.contiguous(e) ? new r(Math.min(this._start, e.start),Math.max(this._end, e.end)) : null
- }
- contains(e) {
- return (e = "string" == typeof e ? parseInt(e, 10) : e) >= this._start && e <= this._end
- }
- equals(e) {
- return e.start === this._start && e.end === this._end
- }
- overlaps(e) {
- const t = r.sort([e, this]);
- return t[0].end >= t[1].start
- }
- contiguous(e) {
- const t = r.sort([e, this]);
- return t[0].end + 1 === t[1].start
- }
- toString() {
- return this._start + "-" + this._end
- }
- static compact(e) {
- if (e.length < 2)
- return e;
- let t = (e = r.sort(e))[0];
- const n = [];
- for (let i = 1; i < e.length; i++) {
- const o = e[i];
- t.overlaps(new r(o.start - 1,o.end)) ? t = t.join(o) || t : (n.push(t),
- t = o),
- i === e.length - 1 && n.push(t)
- }
- return n
- }
- static subtract(e, t) {
- Array.isArray(e) || (e = [e]);
- let n = (e = r.sort(e).reverse()).length;
- const i = [];
- for (; n--; ) {
- const o = e[n];
- t.start <= o.start && t.end >= o.end ? e.splice(n, 1) : t.start > o.start && t.end < o.end ? (e.splice(n, 1),
- i.push(new r(o.start,t.start - 1)),
- i.push(new r(t.end + 1,o.end))) : t.end < o.end && t.end >= o.start ? (e.splice(n, 1),
- i.push(new r(t.end + 1,o.end))) : t.end > o.end && t.start <= o.end && (e.splice(n, 1),
- i.push(new r(o.start,t.start - 1)))
- }
- return r.sort(e.concat(i))
- }
- }
- t.IndexRange = r
- },
- 116: function(e, t) {
- e.exports = function(e) {
- return e.webpackPolyfill || (e.deprecate = function() {}
- ,
- e.paths = [],
- e.children || (e.children = []),
- Object.defineProperty(e, "loaded", {
- enumerable: !0,
- get: function() {
- return e.l
- }
- }),
- Object.defineProperty(e, "id", {
- enumerable: !0,
- get: function() {
- return e.i
- }
- }),
- e.webpackPolyfill = 1),
- e
- }
- },
- 117: function(e, t, n) {
- "use strict";
- e.exports = function(e, t) {
- return function() {
- for (var n = new Array(arguments.length), r = 0; r < n.length; r++)
- n[r] = arguments[r];
- return e.apply(t, n)
- }
- }
- },
- 118: function(e, t, n) {
- "use strict";
- var r = n(14)
- , i = n(192)
- , o = n(194)
- , a = n(195)
- , s = n(196)
- , l = n(119)
- , u = "undefined" != typeof window && window.btoa && window.btoa.bind(window) || n(197);
- e.exports = function(e) {
- return new Promise((function(t, c) {
- var d = e.data
- , f = e.headers;
- r.isFormData(d) && delete f["Content-Type"];
- var h = new XMLHttpRequest
- , p = "onreadystatechange"
- , g = !1;
- if ("undefined" == typeof window || !window.XDomainRequest || "withCredentials"in h || s(e.url) || (h = new window.XDomainRequest,
- p = "onload",
- g = !0,
- h.onprogress = function() {}
- ,
- h.ontimeout = function() {}
- ),
- e.auth) {
- var m = e.auth.username || ""
- , v = e.auth.password || "";
- f.Authorization = "Basic " + u(m + ":" + v)
- }
- if (h.open(e.method.toUpperCase(), o(e.url, e.params, e.paramsSerializer), !0),
- h.timeout = e.timeout,
- h[p] = function() {
- if (h && (4 === h.readyState || g) && (0 !== h.status || h.responseURL && 0 === h.responseURL.indexOf("file:"))) {
- var n = "getAllResponseHeaders"in h ? a(h.getAllResponseHeaders()) : null
- , r = {
- data: e.responseType && "text" !== e.responseType ? h.response : h.responseText,
- status: 1223 === h.status ? 204 : h.status,
- statusText: 1223 === h.status ? "No Content" : h.statusText,
- headers: n,
- config: e,
- request: h
- };
- i(t, c, r),
- h = null
- }
- }
- ,
- h.onerror = function() {
- c(l("Network Error", e, null, h)),
- h = null
- }
- ,
- h.ontimeout = function() {
- c(l("timeout of " + e.timeout + "ms exceeded", e, "ECONNABORTED", h)),
- h = null
- }
- ,
- r.isStandardBrowserEnv()) {
- var y = n(198)
- , b = (e.withCredentials || s(e.url)) && e.xsrfCookieName ? y.read(e.xsrfCookieName) : void 0;
- b && (f[e.xsrfHeaderName] = b)
- }
- if ("setRequestHeader"in h && r.forEach(f, (function(e, t) {
- void 0 === d && "content-type" === t.toLowerCase() ? delete f[t] : h.setRequestHeader(t, e)
- }
- )),
- e.withCredentials && (h.withCredentials = !0),
- e.responseType)
- try {
- h.responseType = e.responseType
- } catch (t) {
- if ("json" !== e.responseType)
- throw t
- }
- "function" == typeof e.onDownloadProgress && h.addEventListener("progress", e.onDownloadProgress),
- "function" == typeof e.onUploadProgress && h.upload && h.upload.addEventListener("progress", e.onUploadProgress),
- e.cancelToken && e.cancelToken.promise.then((function(e) {
- h && (h.abort(),
- c(e),
- h = null)
- }
- )),
- void 0 === d && (d = null),
- h.send(d)
- }
- ))
- }
- },
- 119: function(e, t, n) {
- "use strict";
- var r = n(193);
- e.exports = function(e, t, n, i, o) {
- var a = new Error(e);
- return r(a, t, n, i, o)
- }
- },
- 12: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.isSvg = t.getClippedBoundsOfElement = t.fillText = t.emptyElement = t.escapeHtmlTag = t.toCSSTextAlign = t.toCSSFont = t.toCSSLength = void 0,
- t.toCSSLength = function(e) {
- return void 0 === e ? "" : e + "px"
- }
- ,
- t.toCSSFont = function(e) {
- var t, n, r, i, o;
- const a = (null !== (t = null == e ? void 0 : e.fontFamily) && void 0 !== t ? t : ["sans-serif"]).map(e=>e.indexOf(" ") >= 0 ? `'${e}'` : e).join(", ")
- , s = null !== (n = null == e ? void 0 : e.fontSize) && void 0 !== n ? n : "12px"
- , l = null !== (r = null == e ? void 0 : e.lineHeight) && void 0 !== r ? r : "1em"
- , u = null !== (i = null == e ? void 0 : e.fontWeight) && void 0 !== i ? i : "normal";
- return `${null !== (o = null == e ? void 0 : e.fontStyle) && void 0 !== o ? o : "normal"} ${u} ${s}/${l} ${a}`
- }
- ,
- t.toCSSTextAlign = function(e) {
- if (e)
- switch (e) {
- case "leading":
- return "left";
- case "center":
- return "center";
- case "trailing":
- return "right"
- }
- }
- ;
- const r = {
- "&": "&",
- "<": "<",
- ">": ">"
- };
- t.escapeHtmlTag = function(e) {
- return e.replace(/[&<>]/g, (function(e) {
- return r[e] || e
- }
- ))
- }
- ,
- t.emptyElement = function(e) {
- for (let t = e.lastChild; t; t = e.lastChild)
- e.removeChild(t)
- }
- ,
- t.fillText = function(e, t) {
- t.split(/\r\n|\r|\n/g).forEach((t,n)=>{
- n > 0 && e.appendChild(document.createElement("br")),
- e.appendChild(document.createTextNode(t))
- }
- )
- }
- ,
- t.getClippedBoundsOfElement = function(e, t) {
- const n = {
- x: e.offsetLeft,
- y: e.offsetTop,
- width: e.offsetWidth,
- height: e.offsetHeight
- };
- let r = e.offsetParent;
- for (; r && r !== t; ) {
- n.x -= r.scrollLeft,
- n.y -= r.scrollTop;
- const t = getComputedStyle(r);
- "visible" !== t.overflowX && (n.x < 0 && (n.width += n.x,
- n.x = 0),
- n.x + n.width > r.offsetWidth && (n.width = r.offsetWidth - n.x)),
- "visible" !== t.overflowY && (n.y < 0 && (n.height += n.y,
- n.y = 0),
- n.y + n.height > r.offsetHeight && (n.height = r.offsetHeight - n.y)),
- n.x += r.offsetLeft,
- n.y += r.offsetTop,
- e = r,
- r = r.offsetParent
- }
- return n
- }
- ,
- t.isSvg = function(e) {
- return !(new DOMParser).parseFromString(e, "image/svg+xml").querySelector("parsererror")
- }
- },
- 120: function(e, t, n) {
- "use strict";
- e.exports = function(e) {
- return !(!e || !e.__CANCEL__)
- }
- },
- 121: function(e, t, n) {
- "use strict";
- function r(e) {
- this.message = e
- }
- r.prototype.toString = function() {
- return "Cancel" + (this.message ? ": " + this.message : "")
- }
- ,
- r.prototype.__CANCEL__ = !0,
- e.exports = r
- },
- 13: function(e, t, n) {
- "use strict";
- function r(e, t) {
- return "none" === t ? e : t.reduce((e,t)=>"translate"in t ? i(e, t.translate) : "scale"in t ? o(e, t.scale) : a(e, t.rotate), e)
- }
- function i({x: e, y: t}, n) {
- return {
- x: e + n.x,
- y: t + n.y
- }
- }
- function o({x: e, y: t}, n) {
- return {
- x: e * n.x,
- y: t * n.y
- }
- }
- function a(e, t) {
- return e
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.intersectRect = t.intersectDOMRect = t.invertTransform = t.scaleSize = t.transformRect = t.rotatePoint = t.scalePoint = t.translatePoint = t.transformPoint = t.calc = t.zeroInsets = t.zeroSize = t.zeroPoint = t.zeroRect = t.isPointInRect = void 0,
- t.isPointInRect = function(e, t) {
- return t.x <= e.x && t.y <= e.y && t.x + t.width >= e.x && t.y + t.height >= e.y
- }
- ,
- t.zeroRect = function() {
- return {
- x: 0,
- y: 0,
- width: 0,
- height: 0
- }
- }
- ,
- t.zeroPoint = function() {
- return {
- x: 0,
- y: 0
- }
- }
- ,
- t.zeroSize = function() {
- return {
- width: 0,
- height: 0
- }
- }
- ,
- t.zeroInsets = function() {
- return {
- left: 0,
- top: 0,
- right: 0,
- bottom: 0
- }
- }
- ,
- t.calc = function(e, t, n) {
- switch (t) {
- case "vh":
- return n.height * e;
- case "vw":
- return n.width * e;
- case "vmax":
- return Math.max(n.width, n.height) * e;
- case "vmin":
- return Math.min(n.width, n.height) * e
- }
- }
- ,
- t.transformPoint = r,
- t.translatePoint = i,
- t.scalePoint = o,
- t.rotatePoint = a,
- t.transformRect = function(e, t) {
- if ("none" === t)
- return e;
- const n = r(e, t)
- , i = r({
- x: e.x + e.width,
- y: e.y + e.height
- }, t);
- return {
- x: Math.min(n.x, i.x),
- y: Math.min(n.y, i.y),
- width: Math.abs(i.x - n.x),
- height: Math.abs(i.y - n.y)
- }
- }
- ,
- t.scaleSize = function({width: e, height: t}, n) {
- return {
- width: e * n.x,
- height: t * n.y
- }
- }
- ,
- t.invertTransform = function(e) {
- return "none" === e ? "none" : e.map(e=>"translate"in e ? {
- translate: {
- x: -e.translate.x,
- y: -e.translate.y
- }
- } : "scale"in e ? {
- scale: {
- x: 1 / e.scale.x,
- y: 1 / e.scale.y
- }
- } : {
- rotate: -e.rotate
- }).reverse()
- }
- ,
- t.intersectDOMRect = function(e, t) {
- return !(t.left > e.right || t.right < e.left || t.top > e.bottom || t.bottom < e.top)
- }
- ,
- t.intersectRect = function(e, t) {
- return !(t.x > e.x + e.width || t.x + e.width < e.x || t.y > e.y + e.height || t.y + t.height < e.y)
- }
- },
- 132: function(e, t, n) {
- "use strict";
- var r = n(133)
- , i = n.n(r);
- t.default = i.a
- },
- 133: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var r = n(1);
- t.default = (0,
- r.defineComponent)({
- name: "loading-animation",
- props: {
- videoLink: String,
- gifLink: String
- },
- setup: function() {
- return {}
- }
- })
- },
- 134: function(e, t, n) {
- "use strict";
- var r = n(135)
- , i = n.n(r);
- t.default = i.a
- },
- 135: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var r = n(1)
- , i = n(174);
- t.default = (0,
- r.defineComponent)({
- name: "frame-zoom-scale-bar",
- props: {
- zoomScale: {
- type: Number,
- default: 100
- },
- buttonStyles: String
- },
- setup: function(e, t) {
- return {
- handleZoom: function(e) {
- return t.emit("zoom", e)
- },
- PresetZoomScales: i.PresetZoomScales,
- handleZoomIn: function() {
- return t.emit("zoom-in")
- },
- handleZoomOut: function() {
- return t.emit("zoom-out")
- },
- handleFitMap: function() {
- return t.emit("fit-map")
- }
- }
- }
- })
- },
- 136: function(e, t, n) {
- "use strict";
- var r = n(137)
- , i = n.n(r);
- t.default = i.a
- },
- 137: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var r = n(1);
- t.default = (0,
- r.defineComponent)({
- name: "frame-sheets-bar",
- props: {
- buttonStyles: String,
- currentSheetId: String,
- sheets: {
- validator: function(e) {
- return !(!Array.isArray(e) || !e.every((function(e) {
- return e && "string" == typeof e.title && "string" == typeof e.id
- }
- )))
- }
- }
- },
- setup: function(e, t) {
- var n = (0,
- r.computed)((function() {
- return e.sheets.find((function(t) {
- return t.id === e.currentSheetId
- }
- ))
- }
- ));
- return {
- currentSheet: n,
- handleSwitchSheet: function(e) {
- n.value && n.value === e || t.emit("switch-sheet", e)
- }
- }
- }
- })
- },
- 138: function(e, t, n) {
- (function(t, n, r) {
- e.exports = function e(t, n, r) {
- function i(a, s) {
- if (!n[a]) {
- if (!t[a]) {
- if (o)
- return o(a, !0);
- var l = new Error("Cannot find module '" + a + "'");
- throw l.code = "MODULE_NOT_FOUND",
- l
- }
- var u = n[a] = {
- exports: {}
- };
- t[a][0].call(u.exports, (function(e) {
- return i(t[a][1][e] || e)
- }
- ), u, u.exports, e, t, n, r)
- }
- return n[a].exports
- }
- for (var o = !1, a = 0; a < r.length; a++)
- i(r[a]);
- return i
- }({
- 1: [function(e, t, n) {
- "use strict";
- var r = e("./utils")
- , i = e("./support")
- , o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
- n.encode = function(e) {
- for (var t, n, i, a, s, l, u, c = [], d = 0, f = e.length, h = f, p = "string" !== r.getTypeOf(e); d < e.length; )
- h = f - d,
- i = p ? (t = e[d++],
- n = d < f ? e[d++] : 0,
- d < f ? e[d++] : 0) : (t = e.charCodeAt(d++),
- n = d < f ? e.charCodeAt(d++) : 0,
- d < f ? e.charCodeAt(d++) : 0),
- a = t >> 2,
- s = (3 & t) << 4 | n >> 4,
- l = 1 < h ? (15 & n) << 2 | i >> 6 : 64,
- u = 2 < h ? 63 & i : 64,
- c.push(o.charAt(a) + o.charAt(s) + o.charAt(l) + o.charAt(u));
- return c.join("")
- }
- ,
- n.decode = function(e) {
- var t, n, r, a, s, l, u = 0, c = 0, d = "data:";
- if (e.substr(0, d.length) === d)
- throw new Error("Invalid base64 input, it looks like a data url.");
- var f, h = 3 * (e = e.replace(/[^A-Za-z0-9\+\/\=]/g, "")).length / 4;
- if (e.charAt(e.length - 1) === o.charAt(64) && h--,
- e.charAt(e.length - 2) === o.charAt(64) && h--,
- h % 1 != 0)
- throw new Error("Invalid base64 input, bad content length.");
- for (f = i.uint8array ? new Uint8Array(0 | h) : new Array(0 | h); u < e.length; )
- t = o.indexOf(e.charAt(u++)) << 2 | (a = o.indexOf(e.charAt(u++))) >> 4,
- n = (15 & a) << 4 | (s = o.indexOf(e.charAt(u++))) >> 2,
- r = (3 & s) << 6 | (l = o.indexOf(e.charAt(u++))),
- f[c++] = t,
- 64 !== s && (f[c++] = n),
- 64 !== l && (f[c++] = r);
- return f
- }
- }
- , {
- "./support": 30,
- "./utils": 32
- }],
- 2: [function(e, t, n) {
- "use strict";
- var r = e("./external")
- , i = e("./stream/DataWorker")
- , o = e("./stream/Crc32Probe")
- , a = e("./stream/DataLengthProbe");
- function s(e, t, n, r, i) {
- this.compressedSize = e,
- this.uncompressedSize = t,
- this.crc32 = n,
- this.compression = r,
- this.compressedContent = i
- }
- s.prototype = {
- getContentWorker: function() {
- var e = new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length"))
- , t = this;
- return e.on("end", (function() {
- if (this.streamInfo.data_length !== t.uncompressedSize)
- throw new Error("Bug : uncompressed data size mismatch")
- }
- )),
- e
- },
- getCompressedWorker: function() {
- return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression)
- }
- },
- s.createWorkerFrom = function(e, t, n) {
- return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression", t)
- }
- ,
- t.exports = s
- }
- , {
- "./external": 6,
- "./stream/Crc32Probe": 25,
- "./stream/DataLengthProbe": 26,
- "./stream/DataWorker": 27
- }],
- 3: [function(e, t, n) {
- "use strict";
- var r = e("./stream/GenericWorker");
- n.STORE = {
- magic: "\0\0",
- compressWorker: function(e) {
- return new r("STORE compression")
- },
- uncompressWorker: function() {
- return new r("STORE decompression")
- }
- },
- n.DEFLATE = e("./flate")
- }
- , {
- "./flate": 7,
- "./stream/GenericWorker": 28
- }],
- 4: [function(e, t, n) {
- "use strict";
- var r = e("./utils")
- , i = function() {
- for (var e, t = [], n = 0; n < 256; n++) {
- e = n;
- for (var r = 0; r < 8; r++)
- e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
- t[n] = e
- }
- return t
- }();
- t.exports = function(e, t) {
- return void 0 !== e && e.length ? "string" !== r.getTypeOf(e) ? function(e, t, n, r) {
- var o = i
- , a = 0 + n;
- e ^= -1;
- for (var s = 0; s < a; s++)
- e = e >>> 8 ^ o[255 & (e ^ t[s])];
- return -1 ^ e
- }(0 | t, e, e.length) : function(e, t, n, r) {
- var o = i
- , a = 0 + n;
- e ^= -1;
- for (var s = 0; s < a; s++)
- e = e >>> 8 ^ o[255 & (e ^ t.charCodeAt(s))];
- return -1 ^ e
- }(0 | t, e, e.length) : 0
- }
- }
- , {
- "./utils": 32
- }],
- 5: [function(e, t, n) {
- "use strict";
- n.base64 = !1,
- n.binary = !1,
- n.dir = !1,
- n.createFolders = !0,
- n.date = null,
- n.compression = null,
- n.compressionOptions = null,
- n.comment = null,
- n.unixPermissions = null,
- n.dosPermissions = null
- }
- , {}],
- 6: [function(e, t, n) {
- "use strict";
- var r;
- r = "undefined" != typeof Promise ? Promise : e("lie"),
- t.exports = {
- Promise: r
- }
- }
- , {
- lie: 37
- }],
- 7: [function(e, t, n) {
- "use strict";
- var r = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Uint32Array
- , i = e("pako")
- , o = e("./utils")
- , a = e("./stream/GenericWorker")
- , s = r ? "uint8array" : "array";
- function l(e, t) {
- a.call(this, "FlateWorker/" + e),
- this._pako = null,
- this._pakoAction = e,
- this._pakoOptions = t,
- this.meta = {}
- }
- n.magic = "\b\0",
- o.inherits(l, a),
- l.prototype.processChunk = function(e) {
- this.meta = e.meta,
- null === this._pako && this._createPako(),
- this._pako.push(o.transformTo(s, e.data), !1)
- }
- ,
- l.prototype.flush = function() {
- a.prototype.flush.call(this),
- null === this._pako && this._createPako(),
- this._pako.push([], !0)
- }
- ,
- l.prototype.cleanUp = function() {
- a.prototype.cleanUp.call(this),
- this._pako = null
- }
- ,
- l.prototype._createPako = function() {
- this._pako = new i[this._pakoAction]({
- raw: !0,
- level: this._pakoOptions.level || -1
- });
- var e = this;
- this._pako.onData = function(t) {
- e.push({
- data: t,
- meta: e.meta
- })
- }
- }
- ,
- n.compressWorker = function(e) {
- return new l("Deflate",e)
- }
- ,
- n.uncompressWorker = function() {
- return new l("Inflate",{})
- }
- }
- , {
- "./stream/GenericWorker": 28,
- "./utils": 32,
- pako: 38
- }],
- 8: [function(e, t, n) {
- "use strict";
- function r(e, t) {
- var n, r = "";
- for (n = 0; n < t; n++)
- r += String.fromCharCode(255 & e),
- e >>>= 8;
- return r
- }
- function i(e, t, n, i, a, c) {
- var d, f, h = e.file, p = e.compression, g = c !== s.utf8encode, m = o.transformTo("string", c(h.name)), v = o.transformTo("string", s.utf8encode(h.name)), y = h.comment, b = o.transformTo("string", c(y)), _ = o.transformTo("string", s.utf8encode(y)), w = v.length !== h.name.length, S = _.length !== y.length, x = "", k = "", I = "", C = h.dir, M = h.date, T = {
- crc32: 0,
- compressedSize: 0,
- uncompressedSize: 0
- };
- t && !n || (T.crc32 = e.crc32,
- T.compressedSize = e.compressedSize,
- T.uncompressedSize = e.uncompressedSize);
- var A = 0;
- t && (A |= 8),
- g || !w && !S || (A |= 2048);
- var E = 0
- , O = 0;
- C && (E |= 16),
- "UNIX" === a ? (O = 798,
- E |= function(e, t) {
- var n = e;
- return e || (n = t ? 16893 : 33204),
- (65535 & n) << 16
- }(h.unixPermissions, C)) : (O = 20,
- E |= function(e) {
- return 63 & (e || 0)
- }(h.dosPermissions)),
- d = M.getUTCHours(),
- d <<= 6,
- d |= M.getUTCMinutes(),
- d <<= 5,
- d |= M.getUTCSeconds() / 2,
- f = M.getUTCFullYear() - 1980,
- f <<= 4,
- f |= M.getUTCMonth() + 1,
- f <<= 5,
- f |= M.getUTCDate(),
- w && (k = r(1, 1) + r(l(m), 4) + v,
- x += "up" + r(k.length, 2) + k),
- S && (I = r(1, 1) + r(l(b), 4) + _,
- x += "uc" + r(I.length, 2) + I);
- var B = "";
- return B += "\n\0",
- B += r(A, 2),
- B += p.magic,
- B += r(d, 2),
- B += r(f, 2),
- B += r(T.crc32, 4),
- B += r(T.compressedSize, 4),
- B += r(T.uncompressedSize, 4),
- B += r(m.length, 2),
- B += r(x.length, 2),
- {
- fileRecord: u.LOCAL_FILE_HEADER + B + m + x,
- dirRecord: u.CENTRAL_FILE_HEADER + r(O, 2) + B + r(b.length, 2) + "\0\0\0\0" + r(E, 4) + r(i, 4) + m + x + b
- }
- }
- var o = e("../utils")
- , a = e("../stream/GenericWorker")
- , s = e("../utf8")
- , l = e("../crc32")
- , u = e("../signature");
- function c(e, t, n, r) {
- a.call(this, "ZipFileWorker"),
- this.bytesWritten = 0,
- this.zipComment = t,
- this.zipPlatform = n,
- this.encodeFileName = r,
- this.streamFiles = e,
- this.accumulate = !1,
- this.contentBuffer = [],
- this.dirRecords = [],
- this.currentSourceOffset = 0,
- this.entriesCount = 0,
- this.currentFile = null,
- this._sources = []
- }
- o.inherits(c, a),
- c.prototype.push = function(e) {
- var t = e.meta.percent || 0
- , n = this.entriesCount
- , r = this._sources.length;
- this.accumulate ? this.contentBuffer.push(e) : (this.bytesWritten += e.data.length,
- a.prototype.push.call(this, {
- data: e.data,
- meta: {
- currentFile: this.currentFile,
- percent: n ? (t + 100 * (n - r - 1)) / n : 100
- }
- }))
- }
- ,
- c.prototype.openedSource = function(e) {
- this.currentSourceOffset = this.bytesWritten,
- this.currentFile = e.file.name;
- var t = this.streamFiles && !e.file.dir;
- if (t) {
- var n = i(e, t, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
- this.push({
- data: n.fileRecord,
- meta: {
- percent: 0
- }
- })
- } else
- this.accumulate = !0
- }
- ,
- c.prototype.closedSource = function(e) {
- this.accumulate = !1;
- var t = this.streamFiles && !e.file.dir
- , n = i(e, t, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
- if (this.dirRecords.push(n.dirRecord),
- t)
- this.push({
- data: function(e) {
- return u.DATA_DESCRIPTOR + r(e.crc32, 4) + r(e.compressedSize, 4) + r(e.uncompressedSize, 4)
- }(e),
- meta: {
- percent: 100
- }
- });
- else
- for (this.push({
- data: n.fileRecord,
- meta: {
- percent: 0
- }
- }); this.contentBuffer.length; )
- this.push(this.contentBuffer.shift());
- this.currentFile = null
- }
- ,
- c.prototype.flush = function() {
- for (var e = this.bytesWritten, t = 0; t < this.dirRecords.length; t++)
- this.push({
- data: this.dirRecords[t],
- meta: {
- percent: 100
- }
- });
- var n = this.bytesWritten - e
- , i = function(e, t, n, i, a) {
- var s = o.transformTo("string", a(i));
- return u.CENTRAL_DIRECTORY_END + "\0\0\0\0" + r(e, 2) + r(e, 2) + r(t, 4) + r(n, 4) + r(s.length, 2) + s
- }(this.dirRecords.length, n, e, this.zipComment, this.encodeFileName);
- this.push({
- data: i,
- meta: {
- percent: 100
- }
- })
- }
- ,
- c.prototype.prepareNextSource = function() {
- this.previous = this._sources.shift(),
- this.openedSource(this.previous.streamInfo),
- this.isPaused ? this.previous.pause() : this.previous.resume()
- }
- ,
- c.prototype.registerPrevious = function(e) {
- this._sources.push(e);
- var t = this;
- return e.on("data", (function(e) {
- t.processChunk(e)
- }
- )),
- e.on("end", (function() {
- t.closedSource(t.previous.streamInfo),
- t._sources.length ? t.prepareNextSource() : t.end()
- }
- )),
- e.on("error", (function(e) {
- t.error(e)
- }
- )),
- this
- }
- ,
- c.prototype.resume = function() {
- return !!a.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(),
- !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(),
- !0))
- }
- ,
- c.prototype.error = function(e) {
- var t = this._sources;
- if (!a.prototype.error.call(this, e))
- return !1;
- for (var n = 0; n < t.length; n++)
- try {
- t[n].error(e)
- } catch (e) {}
- return !0
- }
- ,
- c.prototype.lock = function() {
- a.prototype.lock.call(this);
- for (var e = this._sources, t = 0; t < e.length; t++)
- e[t].lock()
- }
- ,
- t.exports = c
- }
- , {
- "../crc32": 4,
- "../signature": 23,
- "../stream/GenericWorker": 28,
- "../utf8": 31,
- "../utils": 32
- }],
- 9: [function(e, t, n) {
- "use strict";
- var r = e("../compressions")
- , i = e("./ZipFileWorker");
- n.generateWorker = function(e, t, n) {
- var o = new i(t.streamFiles,n,t.platform,t.encodeFileName)
- , a = 0;
- try {
- e.forEach((function(e, n) {
- a++;
- var i = function(e, t) {
- var n = e || t
- , i = r[n];
- if (!i)
- throw new Error(n + " is not a valid compression method !");
- return i
- }(n.options.compression, t.compression)
- , s = n.options.compressionOptions || t.compressionOptions || {}
- , l = n.dir
- , u = n.date;
- n._compressWorker(i, s).withStreamInfo("file", {
- name: e,
- dir: l,
- date: u,
- comment: n.comment || "",
- unixPermissions: n.unixPermissions,
- dosPermissions: n.dosPermissions
- }).pipe(o)
- }
- )),
- o.entriesCount = a
- } catch (e) {
- o.error(e)
- }
- return o
- }
- }
- , {
- "../compressions": 3,
- "./ZipFileWorker": 8
- }],
- 10: [function(e, t, n) {
- "use strict";
- function r() {
- if (!(this instanceof r))
- return new r;
- if (arguments.length)
- throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
- this.files = Object.create(null),
- this.comment = null,
- this.root = "",
- this.clone = function() {
- var e = new r;
- for (var t in this)
- "function" != typeof this[t] && (e[t] = this[t]);
- return e
- }
- }
- (r.prototype = e("./object")).loadAsync = e("./load"),
- r.support = e("./support"),
- r.defaults = e("./defaults"),
- r.version = "3.7.1",
- r.loadAsync = function(e, t) {
- return (new r).loadAsync(e, t)
- }
- ,
- r.external = e("./external"),
- t.exports = r
- }
- , {
- "./defaults": 5,
- "./external": 6,
- "./load": 11,
- "./object": 15,
- "./support": 30
- }],
- 11: [function(e, t, n) {
- "use strict";
- var r = e("./utils")
- , i = e("./external")
- , o = e("./utf8")
- , a = e("./zipEntries")
- , s = e("./stream/Crc32Probe")
- , l = e("./nodejsUtils");
- function u(e) {
- return new i.Promise((function(t, n) {
- var r = e.decompressed.getContentWorker().pipe(new s);
- r.on("error", (function(e) {
- n(e)
- }
- )).on("end", (function() {
- r.streamInfo.crc32 !== e.decompressed.crc32 ? n(new Error("Corrupted zip : CRC32 mismatch")) : t()
- }
- )).resume()
- }
- ))
- }
- t.exports = function(e, t) {
- var n = this;
- return t = r.extend(t || {}, {
- base64: !1,
- checkCRC32: !1,
- optimizedBinaryString: !1,
- createFolders: !1,
- decodeFileName: o.utf8decode
- }),
- l.isNode && l.isStream(e) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : r.prepareContent("the loaded zip file", e, !0, t.optimizedBinaryString, t.base64).then((function(e) {
- var n = new a(t);
- return n.load(e),
- n
- }
- )).then((function(e) {
- var n = [i.Promise.resolve(e)]
- , r = e.files;
- if (t.checkCRC32)
- for (var o = 0; o < r.length; o++)
- n.push(u(r[o]));
- return i.Promise.all(n)
- }
- )).then((function(e) {
- for (var r = e.shift(), i = r.files, o = 0; o < i.length; o++) {
- var a = i[o];
- n.file(a.fileNameStr, a.decompressed, {
- binary: !0,
- optimizedBinaryString: !0,
- date: a.date,
- dir: a.dir,
- comment: a.fileCommentStr.length ? a.fileCommentStr : null,
- unixPermissions: a.unixPermissions,
- dosPermissions: a.dosPermissions,
- createFolders: t.createFolders
- })
- }
- return r.zipComment.length && (n.comment = r.zipComment),
- n
- }
- ))
- }
- }
- , {
- "./external": 6,
- "./nodejsUtils": 14,
- "./stream/Crc32Probe": 25,
- "./utf8": 31,
- "./utils": 32,
- "./zipEntries": 33
- }],
- 12: [function(e, t, n) {
- "use strict";
- var r = e("../utils")
- , i = e("../stream/GenericWorker");
- function o(e, t) {
- i.call(this, "Nodejs stream input adapter for " + e),
- this._upstreamEnded = !1,
- this._bindStream(t)
- }
- r.inherits(o, i),
- o.prototype._bindStream = function(e) {
- var t = this;
- (this._stream = e).pause(),
- e.on("data", (function(e) {
- t.push({
- data: e,
- meta: {
- percent: 0
- }
- })
- }
- )).on("error", (function(e) {
- t.isPaused ? this.generatedError = e : t.error(e)
- }
- )).on("end", (function() {
- t.isPaused ? t._upstreamEnded = !0 : t.end()
- }
- ))
- }
- ,
- o.prototype.pause = function() {
- return !!i.prototype.pause.call(this) && (this._stream.pause(),
- !0)
- }
- ,
- o.prototype.resume = function() {
- return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(),
- !0)
- }
- ,
- t.exports = o
- }
- , {
- "../stream/GenericWorker": 28,
- "../utils": 32
- }],
- 13: [function(e, t, n) {
- "use strict";
- var r = e("readable-stream").Readable;
- function i(e, t, n) {
- r.call(this, t),
- this._helper = e;
- var i = this;
- e.on("data", (function(e, t) {
- i.push(e) || i._helper.pause(),
- n && n(t)
- }
- )).on("error", (function(e) {
- i.emit("error", e)
- }
- )).on("end", (function() {
- i.push(null)
- }
- ))
- }
- e("../utils").inherits(i, r),
- i.prototype._read = function() {
- this._helper.resume()
- }
- ,
- t.exports = i
- }
- , {
- "../utils": 32,
- "readable-stream": 16
- }],
- 14: [function(e, n, r) {
- "use strict";
- n.exports = {
- isNode: void 0 !== t,
- newBufferFrom: function(e, n) {
- if (t.from && t.from !== Uint8Array.from)
- return t.from(e, n);
- if ("number" == typeof e)
- throw new Error('The "data" argument must not be a number');
- return new t(e,n)
- },
- allocBuffer: function(e) {
- if (t.alloc)
- return t.alloc(e);
- var n = new t(e);
- return n.fill(0),
- n
- },
- isBuffer: function(e) {
- return t.isBuffer(e)
- },
- isStream: function(e) {
- return e && "function" == typeof e.on && "function" == typeof e.pause && "function" == typeof e.resume
- }
- }
- }
- , {}],
- 15: [function(e, t, n) {
- "use strict";
- function r(e, t, n) {
- var r, i = o.getTypeOf(t), s = o.extend(n || {}, l);
- s.date = s.date || new Date,
- null !== s.compression && (s.compression = s.compression.toUpperCase()),
- "string" == typeof s.unixPermissions && (s.unixPermissions = parseInt(s.unixPermissions, 8)),
- s.unixPermissions && 16384 & s.unixPermissions && (s.dir = !0),
- s.dosPermissions && 16 & s.dosPermissions && (s.dir = !0),
- s.dir && (e = g(e)),
- s.createFolders && (r = p(e)) && m.call(this, r, !0);
- var d, v = "string" === i && !1 === s.binary && !1 === s.base64;
- n && void 0 !== n.binary || (s.binary = !v),
- (t instanceof u && 0 === t.uncompressedSize || s.dir || !t || 0 === t.length) && (s.base64 = !1,
- s.binary = !0,
- t = "",
- s.compression = "STORE",
- i = "string"),
- d = t instanceof u || t instanceof a ? t : f.isNode && f.isStream(t) ? new h(e,t) : o.prepareContent(e, t, s.binary, s.optimizedBinaryString, s.base64);
- var y = new c(e,d,s);
- this.files[e] = y
- }
- var i = e("./utf8")
- , o = e("./utils")
- , a = e("./stream/GenericWorker")
- , s = e("./stream/StreamHelper")
- , l = e("./defaults")
- , u = e("./compressedObject")
- , c = e("./zipObject")
- , d = e("./generate")
- , f = e("./nodejsUtils")
- , h = e("./nodejs/NodejsStreamInputAdapter")
- , p = function(e) {
- "/" === e.slice(-1) && (e = e.substring(0, e.length - 1));
- var t = e.lastIndexOf("/");
- return 0 < t ? e.substring(0, t) : ""
- }
- , g = function(e) {
- return "/" !== e.slice(-1) && (e += "/"),
- e
- }
- , m = function(e, t) {
- return t = void 0 !== t ? t : l.createFolders,
- e = g(e),
- this.files[e] || r.call(this, e, null, {
- dir: !0,
- createFolders: t
- }),
- this.files[e]
- };
- function v(e) {
- return "[object RegExp]" === Object.prototype.toString.call(e)
- }
- var y = {
- load: function() {
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")
- },
- forEach: function(e) {
- var t, n, r;
- for (t in this.files)
- r = this.files[t],
- (n = t.slice(this.root.length, t.length)) && t.slice(0, this.root.length) === this.root && e(n, r)
- },
- filter: function(e) {
- var t = [];
- return this.forEach((function(n, r) {
- e(n, r) && t.push(r)
- }
- )),
- t
- },
- file: function(e, t, n) {
- if (1 !== arguments.length)
- return e = this.root + e,
- r.call(this, e, t, n),
- this;
- if (v(e)) {
- var i = e;
- return this.filter((function(e, t) {
- return !t.dir && i.test(e)
- }
- ))
- }
- var o = this.files[this.root + e];
- return o && !o.dir ? o : null
- },
- folder: function(e) {
- if (!e)
- return this;
- if (v(e))
- return this.filter((function(t, n) {
- return n.dir && e.test(t)
- }
- ));
- var t = this.root + e
- , n = m.call(this, t)
- , r = this.clone();
- return r.root = n.name,
- r
- },
- remove: function(e) {
- e = this.root + e;
- var t = this.files[e];
- if (t || ("/" !== e.slice(-1) && (e += "/"),
- t = this.files[e]),
- t && !t.dir)
- delete this.files[e];
- else
- for (var n = this.filter((function(t, n) {
- return n.name.slice(0, e.length) === e
- }
- )), r = 0; r < n.length; r++)
- delete this.files[n[r].name];
- return this
- },
- generate: function(e) {
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")
- },
- generateInternalStream: function(e) {
- var t, n = {};
- try {
- if ((n = o.extend(e || {}, {
- streamFiles: !1,
- compression: "STORE",
- compressionOptions: null,
- type: "",
- platform: "DOS",
- comment: null,
- mimeType: "application/zip",
- encodeFileName: i.utf8encode
- })).type = n.type.toLowerCase(),
- n.compression = n.compression.toUpperCase(),
- "binarystring" === n.type && (n.type = "string"),
- !n.type)
- throw new Error("No output type specified.");
- o.checkSupport(n.type),
- "darwin" !== n.platform && "freebsd" !== n.platform && "linux" !== n.platform && "sunos" !== n.platform || (n.platform = "UNIX"),
- "win32" === n.platform && (n.platform = "DOS");
- var r = n.comment || this.comment || "";
- t = d.generateWorker(this, n, r)
- } catch (e) {
- (t = new a("error")).error(e)
- }
- return new s(t,n.type || "string",n.mimeType)
- },
- generateAsync: function(e, t) {
- return this.generateInternalStream(e).accumulate(t)
- },
- generateNodeStream: function(e, t) {
- return (e = e || {}).type || (e.type = "nodebuffer"),
- this.generateInternalStream(e).toNodejsStream(t)
- }
- };
- t.exports = y
- }
- , {
- "./compressedObject": 2,
- "./defaults": 5,
- "./generate": 9,
- "./nodejs/NodejsStreamInputAdapter": 12,
- "./nodejsUtils": 14,
- "./stream/GenericWorker": 28,
- "./stream/StreamHelper": 29,
- "./utf8": 31,
- "./utils": 32,
- "./zipObject": 35
- }],
- 16: [function(e, t, n) {
- t.exports = e("stream")
- }
- , {
- stream: void 0
- }],
- 17: [function(e, t, n) {
- "use strict";
- var r = e("./DataReader");
- function i(e) {
- r.call(this, e);
- for (var t = 0; t < this.data.length; t++)
- e[t] = 255 & e[t]
- }
- e("../utils").inherits(i, r),
- i.prototype.byteAt = function(e) {
- return this.data[this.zero + e]
- }
- ,
- i.prototype.lastIndexOfSignature = function(e) {
- for (var t = e.charCodeAt(0), n = e.charCodeAt(1), r = e.charCodeAt(2), i = e.charCodeAt(3), o = this.length - 4; 0 <= o; --o)
- if (this.data[o] === t && this.data[o + 1] === n && this.data[o + 2] === r && this.data[o + 3] === i)
- return o - this.zero;
- return -1
- }
- ,
- i.prototype.readAndCheckSignature = function(e) {
- var t = e.charCodeAt(0)
- , n = e.charCodeAt(1)
- , r = e.charCodeAt(2)
- , i = e.charCodeAt(3)
- , o = this.readData(4);
- return t === o[0] && n === o[1] && r === o[2] && i === o[3]
- }
- ,
- i.prototype.readData = function(e) {
- if (this.checkOffset(e),
- 0 === e)
- return [];
- var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
- return this.index += e,
- t
- }
- ,
- t.exports = i
- }
- , {
- "../utils": 32,
- "./DataReader": 18
- }],
- 18: [function(e, t, n) {
- "use strict";
- var r = e("../utils");
- function i(e) {
- this.data = e,
- this.length = e.length,
- this.index = 0,
- this.zero = 0
- }
- i.prototype = {
- checkOffset: function(e) {
- this.checkIndex(this.index + e)
- },
- checkIndex: function(e) {
- if (this.length < this.zero + e || e < 0)
- throw new Error("End of data reached (data length = " + this.length + ", asked index = " + e + "). Corrupted zip ?")
- },
- setIndex: function(e) {
- this.checkIndex(e),
- this.index = e
- },
- skip: function(e) {
- this.setIndex(this.index + e)
- },
- byteAt: function(e) {},
- readInt: function(e) {
- var t, n = 0;
- for (this.checkOffset(e),
- t = this.index + e - 1; t >= this.index; t--)
- n = (n << 8) + this.byteAt(t);
- return this.index += e,
- n
- },
- readString: function(e) {
- return r.transformTo("string", this.readData(e))
- },
- readData: function(e) {},
- lastIndexOfSignature: function(e) {},
- readAndCheckSignature: function(e) {},
- readDate: function() {
- var e = this.readInt(4);
- return new Date(Date.UTC(1980 + (e >> 25 & 127), (e >> 21 & 15) - 1, e >> 16 & 31, e >> 11 & 31, e >> 5 & 63, (31 & e) << 1))
- }
- },
- t.exports = i
- }
- , {
- "../utils": 32
- }],
- 19: [function(e, t, n) {
- "use strict";
- var r = e("./Uint8ArrayReader");
- function i(e) {
- r.call(this, e)
- }
- e("../utils").inherits(i, r),
- i.prototype.readData = function(e) {
- this.checkOffset(e);
- var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
- return this.index += e,
- t
- }
- ,
- t.exports = i
- }
- , {
- "../utils": 32,
- "./Uint8ArrayReader": 21
- }],
- 20: [function(e, t, n) {
- "use strict";
- var r = e("./DataReader");
- function i(e) {
- r.call(this, e)
- }
- e("../utils").inherits(i, r),
- i.prototype.byteAt = function(e) {
- return this.data.charCodeAt(this.zero + e)
- }
- ,
- i.prototype.lastIndexOfSignature = function(e) {
- return this.data.lastIndexOf(e) - this.zero
- }
- ,
- i.prototype.readAndCheckSignature = function(e) {
- return e === this.readData(4)
- }
- ,
- i.prototype.readData = function(e) {
- this.checkOffset(e);
- var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
- return this.index += e,
- t
- }
- ,
- t.exports = i
- }
- , {
- "../utils": 32,
- "./DataReader": 18
- }],
- 21: [function(e, t, n) {
- "use strict";
- var r = e("./ArrayReader");
- function i(e) {
- r.call(this, e)
- }
- e("../utils").inherits(i, r),
- i.prototype.readData = function(e) {
- if (this.checkOffset(e),
- 0 === e)
- return new Uint8Array(0);
- var t = this.data.subarray(this.zero + this.index, this.zero + this.index + e);
- return this.index += e,
- t
- }
- ,
- t.exports = i
- }
- , {
- "../utils": 32,
- "./ArrayReader": 17
- }],
- 22: [function(e, t, n) {
- "use strict";
- var r = e("../utils")
- , i = e("../support")
- , o = e("./ArrayReader")
- , a = e("./StringReader")
- , s = e("./NodeBufferReader")
- , l = e("./Uint8ArrayReader");
- t.exports = function(e) {
- var t = r.getTypeOf(e);
- return r.checkSupport(t),
- "string" !== t || i.uint8array ? "nodebuffer" === t ? new s(e) : i.uint8array ? new l(r.transformTo("uint8array", e)) : new o(r.transformTo("array", e)) : new a(e)
- }
- }
- , {
- "../support": 30,
- "../utils": 32,
- "./ArrayReader": 17,
- "./NodeBufferReader": 19,
- "./StringReader": 20,
- "./Uint8ArrayReader": 21
- }],
- 23: [function(e, t, n) {
- "use strict";
- n.LOCAL_FILE_HEADER = "PK",
- n.CENTRAL_FILE_HEADER = "PK",
- n.CENTRAL_DIRECTORY_END = "PK",
- n.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK",
- n.ZIP64_CENTRAL_DIRECTORY_END = "PK",
- n.DATA_DESCRIPTOR = "PK\b"
- }
- , {}],
- 24: [function(e, t, n) {
- "use strict";
- var r = e("./GenericWorker")
- , i = e("../utils");
- function o(e) {
- r.call(this, "ConvertWorker to " + e),
- this.destType = e
- }
- i.inherits(o, r),
- o.prototype.processChunk = function(e) {
- this.push({
- data: i.transformTo(this.destType, e.data),
- meta: e.meta
- })
- }
- ,
- t.exports = o
- }
- , {
- "../utils": 32,
- "./GenericWorker": 28
- }],
- 25: [function(e, t, n) {
- "use strict";
- var r = e("./GenericWorker")
- , i = e("../crc32");
- function o() {
- r.call(this, "Crc32Probe"),
- this.withStreamInfo("crc32", 0)
- }
- e("../utils").inherits(o, r),
- o.prototype.processChunk = function(e) {
- this.streamInfo.crc32 = i(e.data, this.streamInfo.crc32 || 0),
- this.push(e)
- }
- ,
- t.exports = o
- }
- , {
- "../crc32": 4,
- "../utils": 32,
- "./GenericWorker": 28
- }],
- 26: [function(e, t, n) {
- "use strict";
- var r = e("../utils")
- , i = e("./GenericWorker");
- function o(e) {
- i.call(this, "DataLengthProbe for " + e),
- this.propName = e,
- this.withStreamInfo(e, 0)
- }
- r.inherits(o, i),
- o.prototype.processChunk = function(e) {
- if (e) {
- var t = this.streamInfo[this.propName] || 0;
- this.streamInfo[this.propName] = t + e.data.length
- }
- i.prototype.processChunk.call(this, e)
- }
- ,
- t.exports = o
- }
- , {
- "../utils": 32,
- "./GenericWorker": 28
- }],
- 27: [function(e, t, n) {
- "use strict";
- var r = e("../utils")
- , i = e("./GenericWorker");
- function o(e) {
- i.call(this, "DataWorker");
- var t = this;
- this.dataIsReady = !1,
- this.index = 0,
- this.max = 0,
- this.data = null,
- this.type = "",
- this._tickScheduled = !1,
- e.then((function(e) {
- t.dataIsReady = !0,
- t.data = e,
- t.max = e && e.length || 0,
- t.type = r.getTypeOf(e),
- t.isPaused || t._tickAndRepeat()
- }
- ), (function(e) {
- t.error(e)
- }
- ))
- }
- r.inherits(o, i),
- o.prototype.cleanUp = function() {
- i.prototype.cleanUp.call(this),
- this.data = null
- }
- ,
- o.prototype.resume = function() {
- return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0,
- r.delay(this._tickAndRepeat, [], this)),
- !0)
- }
- ,
- o.prototype._tickAndRepeat = function() {
- this._tickScheduled = !1,
- this.isPaused || this.isFinished || (this._tick(),
- this.isFinished || (r.delay(this._tickAndRepeat, [], this),
- this._tickScheduled = !0))
- }
- ,
- o.prototype._tick = function() {
- if (this.isPaused || this.isFinished)
- return !1;
- var e = null
- , t = Math.min(this.max, this.index + 16384);
- if (this.index >= this.max)
- return this.end();
- switch (this.type) {
- case "string":
- e = this.data.substring(this.index, t);
- break;
- case "uint8array":
- e = this.data.subarray(this.index, t);
- break;
- case "array":
- case "nodebuffer":
- e = this.data.slice(this.index, t)
- }
- return this.index = t,
- this.push({
- data: e,
- meta: {
- percent: this.max ? this.index / this.max * 100 : 0
- }
- })
- }
- ,
- t.exports = o
- }
- , {
- "../utils": 32,
- "./GenericWorker": 28
- }],
- 28: [function(e, t, n) {
- "use strict";
- function r(e) {
- this.name = e || "default",
- this.streamInfo = {},
- this.generatedError = null,
- this.extraStreamInfo = {},
- this.isPaused = !0,
- this.isFinished = !1,
- this.isLocked = !1,
- this._listeners = {
- data: [],
- end: [],
- error: []
- },
- this.previous = null
- }
- r.prototype = {
- push: function(e) {
- this.emit("data", e)
- },
- end: function() {
- if (this.isFinished)
- return !1;
- this.flush();
- try {
- this.emit("end"),
- this.cleanUp(),
- this.isFinished = !0
- } catch (e) {
- this.emit("error", e)
- }
- return !0
- },
- error: function(e) {
- return !this.isFinished && (this.isPaused ? this.generatedError = e : (this.isFinished = !0,
- this.emit("error", e),
- this.previous && this.previous.error(e),
- this.cleanUp()),
- !0)
- },
- on: function(e, t) {
- return this._listeners[e].push(t),
- this
- },
- cleanUp: function() {
- this.streamInfo = this.generatedError = this.extraStreamInfo = null,
- this._listeners = []
- },
- emit: function(e, t) {
- if (this._listeners[e])
- for (var n = 0; n < this._listeners[e].length; n++)
- this._listeners[e][n].call(this, t)
- },
- pipe: function(e) {
- return e.registerPrevious(this)
- },
- registerPrevious: function(e) {
- if (this.isLocked)
- throw new Error("The stream '" + this + "' has already been used.");
- this.streamInfo = e.streamInfo,
- this.mergeStreamInfo(),
- this.previous = e;
- var t = this;
- return e.on("data", (function(e) {
- t.processChunk(e)
- }
- )),
- e.on("end", (function() {
- t.end()
- }
- )),
- e.on("error", (function(e) {
- t.error(e)
- }
- )),
- this
- },
- pause: function() {
- return !this.isPaused && !this.isFinished && (this.isPaused = !0,
- this.previous && this.previous.pause(),
- !0)
- },
- resume: function() {
- if (!this.isPaused || this.isFinished)
- return !1;
- var e = this.isPaused = !1;
- return this.generatedError && (this.error(this.generatedError),
- e = !0),
- this.previous && this.previous.resume(),
- !e
- },
- flush: function() {},
- processChunk: function(e) {
- this.push(e)
- },
- withStreamInfo: function(e, t) {
- return this.extraStreamInfo[e] = t,
- this.mergeStreamInfo(),
- this
- },
- mergeStreamInfo: function() {
- for (var e in this.extraStreamInfo)
- this.extraStreamInfo.hasOwnProperty(e) && (this.streamInfo[e] = this.extraStreamInfo[e])
- },
- lock: function() {
- if (this.isLocked)
- throw new Error("The stream '" + this + "' has already been used.");
- this.isLocked = !0,
- this.previous && this.previous.lock()
- },
- toString: function() {
- var e = "Worker " + this.name;
- return this.previous ? this.previous + " -> " + e : e
- }
- },
- t.exports = r
- }
- , {}],
- 29: [function(e, n, r) {
- "use strict";
- var i = e("../utils")
- , o = e("./ConvertWorker")
- , a = e("./GenericWorker")
- , s = e("../base64")
- , l = e("../support")
- , u = e("../external")
- , c = null;
- if (l.nodestream)
- try {
- c = e("../nodejs/NodejsStreamOutputAdapter")
- } catch (e) {}
- function d(e, t, n) {
- var r = t;
- switch (t) {
- case "blob":
- case "arraybuffer":
- r = "uint8array";
- break;
- case "base64":
- r = "string"
- }
- try {
- this._internalType = r,
- this._outputType = t,
- this._mimeType = n,
- i.checkSupport(r),
- this._worker = e.pipe(new o(r)),
- e.lock()
- } catch (e) {
- this._worker = new a("error"),
- this._worker.error(e)
- }
- }
- d.prototype = {
- accumulate: function(e) {
- return function(e, n) {
- return new u.Promise((function(r, o) {
- var a = []
- , l = e._internalType
- , u = e._outputType
- , c = e._mimeType;
- e.on("data", (function(e, t) {
- a.push(e),
- n && n(t)
- }
- )).on("error", (function(e) {
- a = [],
- o(e)
- }
- )).on("end", (function() {
- try {
- var e = function(e, t, n) {
- switch (e) {
- case "blob":
- return i.newBlob(i.transformTo("arraybuffer", t), n);
- case "base64":
- return s.encode(t);
- default:
- return i.transformTo(e, t)
- }
- }(u, function(e, n) {
- var r, i = 0, o = null, a = 0;
- for (r = 0; r < n.length; r++)
- a += n[r].length;
- switch (e) {
- case "string":
- return n.join("");
- case "array":
- return Array.prototype.concat.apply([], n);
- case "uint8array":
- for (o = new Uint8Array(a),
- r = 0; r < n.length; r++)
- o.set(n[r], i),
- i += n[r].length;
- return o;
- case "nodebuffer":
- return t.concat(n);
- default:
- throw new Error("concat : unsupported type '" + e + "'")
- }
- }(l, a), c);
- r(e)
- } catch (e) {
- o(e)
- }
- a = []
- }
- )).resume()
- }
- ))
- }(this, e)
- },
- on: function(e, t) {
- var n = this;
- return "data" === e ? this._worker.on(e, (function(e) {
- t.call(n, e.data, e.meta)
- }
- )) : this._worker.on(e, (function() {
- i.delay(t, arguments, n)
- }
- )),
- this
- },
- resume: function() {
- return i.delay(this._worker.resume, [], this._worker),
- this
- },
- pause: function() {
- return this._worker.pause(),
- this
- },
- toNodejsStream: function(e) {
- if (i.checkSupport("nodestream"),
- "nodebuffer" !== this._outputType)
- throw new Error(this._outputType + " is not supported by this method");
- return new c(this,{
- objectMode: "nodebuffer" !== this._outputType
- },e)
- }
- },
- n.exports = d
- }
- , {
- "../base64": 1,
- "../external": 6,
- "../nodejs/NodejsStreamOutputAdapter": 13,
- "../support": 30,
- "../utils": 32,
- "./ConvertWorker": 24,
- "./GenericWorker": 28
- }],
- 30: [function(e, n, r) {
- "use strict";
- if (r.base64 = !0,
- r.array = !0,
- r.string = !0,
- r.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array,
- r.nodebuffer = void 0 !== t,
- r.uint8array = "undefined" != typeof Uint8Array,
- "undefined" == typeof ArrayBuffer)
- r.blob = !1;
- else {
- var i = new ArrayBuffer(0);
- try {
- r.blob = 0 === new Blob([i],{
- type: "application/zip"
- }).size
- } catch (e) {
- try {
- var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder);
- o.append(i),
- r.blob = 0 === o.getBlob("application/zip").size
- } catch (e) {
- r.blob = !1
- }
- }
- }
- try {
- r.nodestream = !!e("readable-stream").Readable
- } catch (e) {
- r.nodestream = !1
- }
- }
- , {
- "readable-stream": 16
- }],
- 31: [function(e, t, n) {
- "use strict";
- for (var r = e("./utils"), i = e("./support"), o = e("./nodejsUtils"), a = e("./stream/GenericWorker"), s = new Array(256), l = 0; l < 256; l++)
- s[l] = 252 <= l ? 6 : 248 <= l ? 5 : 240 <= l ? 4 : 224 <= l ? 3 : 192 <= l ? 2 : 1;
- function u() {
- a.call(this, "utf-8 decode"),
- this.leftOver = null
- }
- function c() {
- a.call(this, "utf-8 encode")
- }
- s[254] = s[254] = 1,
- n.utf8encode = function(e) {
- return i.nodebuffer ? o.newBufferFrom(e, "utf-8") : function(e) {
- var t, n, r, o, a, s = e.length, l = 0;
- for (o = 0; o < s; o++)
- 55296 == (64512 & (n = e.charCodeAt(o))) && o + 1 < s && 56320 == (64512 & (r = e.charCodeAt(o + 1))) && (n = 65536 + (n - 55296 << 10) + (r - 56320),
- o++),
- l += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
- for (t = i.uint8array ? new Uint8Array(l) : new Array(l),
- o = a = 0; a < l; o++)
- 55296 == (64512 & (n = e.charCodeAt(o))) && o + 1 < s && 56320 == (64512 & (r = e.charCodeAt(o + 1))) && (n = 65536 + (n - 55296 << 10) + (r - 56320),
- o++),
- n < 128 ? t[a++] = n : (n < 2048 ? t[a++] = 192 | n >>> 6 : (n < 65536 ? t[a++] = 224 | n >>> 12 : (t[a++] = 240 | n >>> 18,
- t[a++] = 128 | n >>> 12 & 63),
- t[a++] = 128 | n >>> 6 & 63),
- t[a++] = 128 | 63 & n);
- return t
- }(e)
- }
- ,
- n.utf8decode = function(e) {
- return i.nodebuffer ? r.transformTo("nodebuffer", e).toString("utf-8") : function(e) {
- var t, n, i, o, a = e.length, l = new Array(2 * a);
- for (t = n = 0; t < a; )
- if ((i = e[t++]) < 128)
- l[n++] = i;
- else if (4 < (o = s[i]))
- l[n++] = 65533,
- t += o - 1;
- else {
- for (i &= 2 === o ? 31 : 3 === o ? 15 : 7; 1 < o && t < a; )
- i = i << 6 | 63 & e[t++],
- o--;
- 1 < o ? l[n++] = 65533 : i < 65536 ? l[n++] = i : (i -= 65536,
- l[n++] = 55296 | i >> 10 & 1023,
- l[n++] = 56320 | 1023 & i)
- }
- return l.length !== n && (l.subarray ? l = l.subarray(0, n) : l.length = n),
- r.applyFromCharCode(l)
- }(e = r.transformTo(i.uint8array ? "uint8array" : "array", e))
- }
- ,
- r.inherits(u, a),
- u.prototype.processChunk = function(e) {
- var t = r.transformTo(i.uint8array ? "uint8array" : "array", e.data);
- if (this.leftOver && this.leftOver.length) {
- if (i.uint8array) {
- var o = t;
- (t = new Uint8Array(o.length + this.leftOver.length)).set(this.leftOver, 0),
- t.set(o, this.leftOver.length)
- } else
- t = this.leftOver.concat(t);
- this.leftOver = null
- }
- var a = function(e, t) {
- var n;
- for ((t = t || e.length) > e.length && (t = e.length),
- n = t - 1; 0 <= n && 128 == (192 & e[n]); )
- n--;
- return n < 0 || 0 === n ? t : n + s[e[n]] > t ? n : t
- }(t)
- , l = t;
- a !== t.length && (i.uint8array ? (l = t.subarray(0, a),
- this.leftOver = t.subarray(a, t.length)) : (l = t.slice(0, a),
- this.leftOver = t.slice(a, t.length))),
- this.push({
- data: n.utf8decode(l),
- meta: e.meta
- })
- }
- ,
- u.prototype.flush = function() {
- this.leftOver && this.leftOver.length && (this.push({
- data: n.utf8decode(this.leftOver),
- meta: {}
- }),
- this.leftOver = null)
- }
- ,
- n.Utf8DecodeWorker = u,
- r.inherits(c, a),
- c.prototype.processChunk = function(e) {
- this.push({
- data: n.utf8encode(e.data),
- meta: e.meta
- })
- }
- ,
- n.Utf8EncodeWorker = c
- }
- , {
- "./nodejsUtils": 14,
- "./stream/GenericWorker": 28,
- "./support": 30,
- "./utils": 32
- }],
- 32: [function(e, t, n) {
- "use strict";
- var r = e("./support")
- , i = e("./base64")
- , o = e("./nodejsUtils")
- , a = e("set-immediate-shim")
- , s = e("./external");
- function l(e) {
- return e
- }
- function u(e, t) {
- for (var n = 0; n < e.length; ++n)
- t[n] = 255 & e.charCodeAt(n);
- return t
- }
- n.newBlob = function(e, t) {
- n.checkSupport("blob");
- try {
- return new Blob([e],{
- type: t
- })
- } catch (n) {
- try {
- var r = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder);
- return r.append(e),
- r.getBlob(t)
- } catch (e) {
- throw new Error("Bug : can't construct the Blob.")
- }
- }
- }
- ;
- var c = {
- stringifyByChunk: function(e, t, n) {
- var r = []
- , i = 0
- , o = e.length;
- if (o <= n)
- return String.fromCharCode.apply(null, e);
- for (; i < o; )
- "array" === t || "nodebuffer" === t ? r.push(String.fromCharCode.apply(null, e.slice(i, Math.min(i + n, o)))) : r.push(String.fromCharCode.apply(null, e.subarray(i, Math.min(i + n, o)))),
- i += n;
- return r.join("")
- },
- stringifyByChar: function(e) {
- for (var t = "", n = 0; n < e.length; n++)
- t += String.fromCharCode(e[n]);
- return t
- },
- applyCanBeUsed: {
- uint8array: function() {
- try {
- return r.uint8array && 1 === String.fromCharCode.apply(null, new Uint8Array(1)).length
- } catch (e) {
- return !1
- }
- }(),
- nodebuffer: function() {
- try {
- return r.nodebuffer && 1 === String.fromCharCode.apply(null, o.allocBuffer(1)).length
- } catch (e) {
- return !1
- }
- }()
- }
- };
- function d(e) {
- var t = 65536
- , r = n.getTypeOf(e)
- , i = !0;
- if ("uint8array" === r ? i = c.applyCanBeUsed.uint8array : "nodebuffer" === r && (i = c.applyCanBeUsed.nodebuffer),
- i)
- for (; 1 < t; )
- try {
- return c.stringifyByChunk(e, r, t)
- } catch (e) {
- t = Math.floor(t / 2)
- }
- return c.stringifyByChar(e)
- }
- function f(e, t) {
- for (var n = 0; n < e.length; n++)
- t[n] = e[n];
- return t
- }
- n.applyFromCharCode = d;
- var h = {};
- h.string = {
- string: l,
- array: function(e) {
- return u(e, new Array(e.length))
- },
- arraybuffer: function(e) {
- return h.string.uint8array(e).buffer
- },
- uint8array: function(e) {
- return u(e, new Uint8Array(e.length))
- },
- nodebuffer: function(e) {
- return u(e, o.allocBuffer(e.length))
- }
- },
- h.array = {
- string: d,
- array: l,
- arraybuffer: function(e) {
- return new Uint8Array(e).buffer
- },
- uint8array: function(e) {
- return new Uint8Array(e)
- },
- nodebuffer: function(e) {
- return o.newBufferFrom(e)
- }
- },
- h.arraybuffer = {
- string: function(e) {
- return d(new Uint8Array(e))
- },
- array: function(e) {
- return f(new Uint8Array(e), new Array(e.byteLength))
- },
- arraybuffer: l,
- uint8array: function(e) {
- return new Uint8Array(e)
- },
- nodebuffer: function(e) {
- return o.newBufferFrom(new Uint8Array(e))
- }
- },
- h.uint8array = {
- string: d,
- array: function(e) {
- return f(e, new Array(e.length))
- },
- arraybuffer: function(e) {
- return e.buffer
- },
- uint8array: l,
- nodebuffer: function(e) {
- return o.newBufferFrom(e)
- }
- },
- h.nodebuffer = {
- string: d,
- array: function(e) {
- return f(e, new Array(e.length))
- },
- arraybuffer: function(e) {
- return h.nodebuffer.uint8array(e).buffer
- },
- uint8array: function(e) {
- return f(e, new Uint8Array(e.length))
- },
- nodebuffer: l
- },
- n.transformTo = function(e, t) {
- if (t = t || "",
- !e)
- return t;
- n.checkSupport(e);
- var r = n.getTypeOf(t);
- return h[r][e](t)
- }
- ,
- n.getTypeOf = function(e) {
- return "string" == typeof e ? "string" : "[object Array]" === Object.prototype.toString.call(e) ? "array" : r.nodebuffer && o.isBuffer(e) ? "nodebuffer" : r.uint8array && e instanceof Uint8Array ? "uint8array" : r.arraybuffer && e instanceof ArrayBuffer ? "arraybuffer" : void 0
- }
- ,
- n.checkSupport = function(e) {
- if (!r[e.toLowerCase()])
- throw new Error(e + " is not supported by this platform")
- }
- ,
- n.MAX_VALUE_16BITS = 65535,
- n.MAX_VALUE_32BITS = -1,
- n.pretty = function(e) {
- var t, n, r = "";
- for (n = 0; n < (e || "").length; n++)
- r += "\\x" + ((t = e.charCodeAt(n)) < 16 ? "0" : "") + t.toString(16).toUpperCase();
- return r
- }
- ,
- n.delay = function(e, t, n) {
- a((function() {
- e.apply(n || null, t || [])
- }
- ))
- }
- ,
- n.inherits = function(e, t) {
- function n() {}
- n.prototype = t.prototype,
- e.prototype = new n
- }
- ,
- n.extend = function() {
- var e, t, n = {};
- for (e = 0; e < arguments.length; e++)
- for (t in arguments[e])
- arguments[e].hasOwnProperty(t) && void 0 === n[t] && (n[t] = arguments[e][t]);
- return n
- }
- ,
- n.prepareContent = function(e, t, o, a, l) {
- return s.Promise.resolve(t).then((function(e) {
- return r.blob && (e instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(e))) && "undefined" != typeof FileReader ? new s.Promise((function(t, n) {
- var r = new FileReader;
- r.onload = function(e) {
- t(e.target.result)
- }
- ,
- r.onerror = function(e) {
- n(e.target.error)
- }
- ,
- r.readAsArrayBuffer(e)
- }
- )) : e
- }
- )).then((function(t) {
- var c = n.getTypeOf(t);
- return c ? ("arraybuffer" === c ? t = n.transformTo("uint8array", t) : "string" === c && (l ? t = i.decode(t) : o && !0 !== a && (t = function(e) {
- return u(e, r.uint8array ? new Uint8Array(e.length) : new Array(e.length))
- }(t))),
- t) : s.Promise.reject(new Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))
- }
- ))
- }
- }
- , {
- "./base64": 1,
- "./external": 6,
- "./nodejsUtils": 14,
- "./support": 30,
- "set-immediate-shim": 54
- }],
- 33: [function(e, t, n) {
- "use strict";
- var r = e("./reader/readerFor")
- , i = e("./utils")
- , o = e("./signature")
- , a = e("./zipEntry")
- , s = (e("./utf8"),
- e("./support"));
- function l(e) {
- this.files = [],
- this.loadOptions = e
- }
- l.prototype = {
- checkSignature: function(e) {
- if (!this.reader.readAndCheckSignature(e)) {
- this.reader.index -= 4;
- var t = this.reader.readString(4);
- throw new Error("Corrupted zip or bug: unexpected signature (" + i.pretty(t) + ", expected " + i.pretty(e) + ")")
- }
- },
- isSignature: function(e, t) {
- var n = this.reader.index;
- this.reader.setIndex(e);
- var r = this.reader.readString(4) === t;
- return this.reader.setIndex(n),
- r
- },
- readBlockEndOfCentral: function() {
- this.diskNumber = this.reader.readInt(2),
- this.diskWithCentralDirStart = this.reader.readInt(2),
- this.centralDirRecordsOnThisDisk = this.reader.readInt(2),
- this.centralDirRecords = this.reader.readInt(2),
- this.centralDirSize = this.reader.readInt(4),
- this.centralDirOffset = this.reader.readInt(4),
- this.zipCommentLength = this.reader.readInt(2);
- var e = this.reader.readData(this.zipCommentLength)
- , t = s.uint8array ? "uint8array" : "array"
- , n = i.transformTo(t, e);
- this.zipComment = this.loadOptions.decodeFileName(n)
- },
- readBlockZip64EndOfCentral: function() {
- this.zip64EndOfCentralSize = this.reader.readInt(8),
- this.reader.skip(4),
- this.diskNumber = this.reader.readInt(4),
- this.diskWithCentralDirStart = this.reader.readInt(4),
- this.centralDirRecordsOnThisDisk = this.reader.readInt(8),
- this.centralDirRecords = this.reader.readInt(8),
- this.centralDirSize = this.reader.readInt(8),
- this.centralDirOffset = this.reader.readInt(8),
- this.zip64ExtensibleData = {};
- for (var e, t, n, r = this.zip64EndOfCentralSize - 44; 0 < r; )
- e = this.reader.readInt(2),
- t = this.reader.readInt(4),
- n = this.reader.readData(t),
- this.zip64ExtensibleData[e] = {
- id: e,
- length: t,
- value: n
- }
- },
- readBlockZip64EndOfCentralLocator: function() {
- if (this.diskWithZip64CentralDirStart = this.reader.readInt(4),
- this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8),
- this.disksCount = this.reader.readInt(4),
- 1 < this.disksCount)
- throw new Error("Multi-volumes zip are not supported")
- },
- readLocalFiles: function() {
- var e, t;
- for (e = 0; e < this.files.length; e++)
- t = this.files[e],
- this.reader.setIndex(t.localHeaderOffset),
- this.checkSignature(o.LOCAL_FILE_HEADER),
- t.readLocalPart(this.reader),
- t.handleUTF8(),
- t.processAttributes()
- },
- readCentralDir: function() {
- var e;
- for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER); )
- (e = new a({
- zip64: this.zip64
- },this.loadOptions)).readCentralPart(this.reader),
- this.files.push(e);
- if (this.centralDirRecords !== this.files.length && 0 !== this.centralDirRecords && 0 === this.files.length)
- throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length)
- },
- readEndOfCentral: function() {
- var e = this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);
- if (e < 0)
- throw this.isSignature(0, o.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
- this.reader.setIndex(e);
- var t = e;
- if (this.checkSignature(o.CENTRAL_DIRECTORY_END),
- this.readBlockEndOfCentral(),
- this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) {
- if (this.zip64 = !0,
- (e = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0)
- throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
- if (this.reader.setIndex(e),
- this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),
- this.readBlockZip64EndOfCentralLocator(),
- !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, o.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),
- this.relativeOffsetEndOfZip64CentralDir < 0))
- throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
- this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),
- this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),
- this.readBlockZip64EndOfCentral()
- }
- var n = this.centralDirOffset + this.centralDirSize;
- this.zip64 && (n += 20,
- n += 12 + this.zip64EndOfCentralSize);
- var r = t - n;
- if (0 < r)
- this.isSignature(t, o.CENTRAL_FILE_HEADER) || (this.reader.zero = r);
- else if (r < 0)
- throw new Error("Corrupted zip: missing " + Math.abs(r) + " bytes.")
- },
- prepareReader: function(e) {
- this.reader = r(e)
- },
- load: function(e) {
- this.prepareReader(e),
- this.readEndOfCentral(),
- this.readCentralDir(),
- this.readLocalFiles()
- }
- },
- t.exports = l
- }
- , {
- "./reader/readerFor": 22,
- "./signature": 23,
- "./support": 30,
- "./utf8": 31,
- "./utils": 32,
- "./zipEntry": 34
- }],
- 34: [function(e, t, n) {
- "use strict";
- var r = e("./reader/readerFor")
- , i = e("./utils")
- , o = e("./compressedObject")
- , a = e("./crc32")
- , s = e("./utf8")
- , l = e("./compressions")
- , u = e("./support");
- function c(e, t) {
- this.options = e,
- this.loadOptions = t
- }
- c.prototype = {
- isEncrypted: function() {
- return 1 == (1 & this.bitFlag)
- },
- useUTF8: function() {
- return 2048 == (2048 & this.bitFlag)
- },
- readLocalPart: function(e) {
- var t, n;
- if (e.skip(22),
- this.fileNameLength = e.readInt(2),
- n = e.readInt(2),
- this.fileName = e.readData(this.fileNameLength),
- e.skip(n),
- -1 === this.compressedSize || -1 === this.uncompressedSize)
- throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
- if (null === (t = function(e) {
- for (var t in l)
- if (l.hasOwnProperty(t) && l[t].magic === e)
- return l[t];
- return null
- }(this.compressionMethod)))
- throw new Error("Corrupted zip : compression " + i.pretty(this.compressionMethod) + " unknown (inner file : " + i.transformTo("string", this.fileName) + ")");
- this.decompressed = new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))
- },
- readCentralPart: function(e) {
- this.versionMadeBy = e.readInt(2),
- e.skip(2),
- this.bitFlag = e.readInt(2),
- this.compressionMethod = e.readString(2),
- this.date = e.readDate(),
- this.crc32 = e.readInt(4),
- this.compressedSize = e.readInt(4),
- this.uncompressedSize = e.readInt(4);
- var t = e.readInt(2);
- if (this.extraFieldsLength = e.readInt(2),
- this.fileCommentLength = e.readInt(2),
- this.diskNumberStart = e.readInt(2),
- this.internalFileAttributes = e.readInt(2),
- this.externalFileAttributes = e.readInt(4),
- this.localHeaderOffset = e.readInt(4),
- this.isEncrypted())
- throw new Error("Encrypted zip are not supported");
- e.skip(t),
- this.readExtraFields(e),
- this.parseZIP64ExtraField(e),
- this.fileComment = e.readData(this.fileCommentLength)
- },
- processAttributes: function() {
- this.unixPermissions = null,
- this.dosPermissions = null;
- var e = this.versionMadeBy >> 8;
- this.dir = !!(16 & this.externalFileAttributes),
- 0 == e && (this.dosPermissions = 63 & this.externalFileAttributes),
- 3 == e && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535),
- this.dir || "/" !== this.fileNameStr.slice(-1) || (this.dir = !0)
- },
- parseZIP64ExtraField: function(e) {
- if (this.extraFields[1]) {
- var t = r(this.extraFields[1].value);
- this.uncompressedSize === i.MAX_VALUE_32BITS && (this.uncompressedSize = t.readInt(8)),
- this.compressedSize === i.MAX_VALUE_32BITS && (this.compressedSize = t.readInt(8)),
- this.localHeaderOffset === i.MAX_VALUE_32BITS && (this.localHeaderOffset = t.readInt(8)),
- this.diskNumberStart === i.MAX_VALUE_32BITS && (this.diskNumberStart = t.readInt(4))
- }
- },
- readExtraFields: function(e) {
- var t, n, r, i = e.index + this.extraFieldsLength;
- for (this.extraFields || (this.extraFields = {}); e.index + 4 < i; )
- t = e.readInt(2),
- n = e.readInt(2),
- r = e.readData(n),
- this.extraFields[t] = {
- id: t,
- length: n,
- value: r
- };
- e.setIndex(i)
- },
- handleUTF8: function() {
- var e = u.uint8array ? "uint8array" : "array";
- if (this.useUTF8())
- this.fileNameStr = s.utf8decode(this.fileName),
- this.fileCommentStr = s.utf8decode(this.fileComment);
- else {
- var t = this.findExtraFieldUnicodePath();
- if (null !== t)
- this.fileNameStr = t;
- else {
- var n = i.transformTo(e, this.fileName);
- this.fileNameStr = this.loadOptions.decodeFileName(n)
- }
- var r = this.findExtraFieldUnicodeComment();
- if (null !== r)
- this.fileCommentStr = r;
- else {
- var o = i.transformTo(e, this.fileComment);
- this.fileCommentStr = this.loadOptions.decodeFileName(o)
- }
- }
- },
- findExtraFieldUnicodePath: function() {
- var e = this.extraFields[28789];
- if (e) {
- var t = r(e.value);
- return 1 !== t.readInt(1) || a(this.fileName) !== t.readInt(4) ? null : s.utf8decode(t.readData(e.length - 5))
- }
- return null
- },
- findExtraFieldUnicodeComment: function() {
- var e = this.extraFields[25461];
- if (e) {
- var t = r(e.value);
- return 1 !== t.readInt(1) || a(this.fileComment) !== t.readInt(4) ? null : s.utf8decode(t.readData(e.length - 5))
- }
- return null
- }
- },
- t.exports = c
- }
- , {
- "./compressedObject": 2,
- "./compressions": 3,
- "./crc32": 4,
- "./reader/readerFor": 22,
- "./support": 30,
- "./utf8": 31,
- "./utils": 32
- }],
- 35: [function(e, t, n) {
- "use strict";
- function r(e, t, n) {
- this.name = e,
- this.dir = n.dir,
- this.date = n.date,
- this.comment = n.comment,
- this.unixPermissions = n.unixPermissions,
- this.dosPermissions = n.dosPermissions,
- this._data = t,
- this._dataBinary = n.binary,
- this.options = {
- compression: n.compression,
- compressionOptions: n.compressionOptions
- }
- }
- var i = e("./stream/StreamHelper")
- , o = e("./stream/DataWorker")
- , a = e("./utf8")
- , s = e("./compressedObject")
- , l = e("./stream/GenericWorker");
- r.prototype = {
- internalStream: function(e) {
- var t = null
- , n = "string";
- try {
- if (!e)
- throw new Error("No output type specified.");
- var r = "string" === (n = e.toLowerCase()) || "text" === n;
- "binarystring" !== n && "text" !== n || (n = "string"),
- t = this._decompressWorker();
- var o = !this._dataBinary;
- o && !r && (t = t.pipe(new a.Utf8EncodeWorker)),
- !o && r && (t = t.pipe(new a.Utf8DecodeWorker))
- } catch (e) {
- (t = new l("error")).error(e)
- }
- return new i(t,n,"")
- },
- async: function(e, t) {
- return this.internalStream(e).accumulate(t)
- },
- nodeStream: function(e, t) {
- return this.internalStream(e || "nodebuffer").toNodejsStream(t)
- },
- _compressWorker: function(e, t) {
- if (this._data instanceof s && this._data.compression.magic === e.magic)
- return this._data.getCompressedWorker();
- var n = this._decompressWorker();
- return this._dataBinary || (n = n.pipe(new a.Utf8EncodeWorker)),
- s.createWorkerFrom(n, e, t)
- },
- _decompressWorker: function() {
- return this._data instanceof s ? this._data.getContentWorker() : this._data instanceof l ? this._data : new o(this._data)
- }
- };
- for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], c = function() {
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")
- }, d = 0; d < u.length; d++)
- r.prototype[u[d]] = c;
- t.exports = r
- }
- , {
- "./compressedObject": 2,
- "./stream/DataWorker": 27,
- "./stream/GenericWorker": 28,
- "./stream/StreamHelper": 29,
- "./utf8": 31
- }],
- 36: [function(e, t, r) {
- (function(e) {
- "use strict";
- var n, r, i = e.MutationObserver || e.WebKitMutationObserver;
- if (i) {
- var o = 0
- , a = new i(c)
- , s = e.document.createTextNode("");
- a.observe(s, {
- characterData: !0
- }),
- n = function() {
- s.data = o = ++o % 2
- }
- } else if (e.setImmediate || void 0 === e.MessageChannel)
- n = "document"in e && "onreadystatechange"in e.document.createElement("script") ? function() {
- var t = e.document.createElement("script");
- t.onreadystatechange = function() {
- c(),
- t.onreadystatechange = null,
- t.parentNode.removeChild(t),
- t = null
- }
- ,
- e.document.documentElement.appendChild(t)
- }
- : function() {
- setTimeout(c, 0)
- }
- ;
- else {
- var l = new e.MessageChannel;
- l.port1.onmessage = c,
- n = function() {
- l.port2.postMessage(0)
- }
- }
- var u = [];
- function c() {
- var e, t;
- r = !0;
- for (var n = u.length; n; ) {
- for (t = u,
- u = [],
- e = -1; ++e < n; )
- t[e]();
- n = u.length
- }
- r = !1
- }
- t.exports = function(e) {
- 1 !== u.push(e) || r || n()
- }
- }
- ).call(this, void 0 !== n ? n : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
- }
- , {}],
- 37: [function(e, t, n) {
- "use strict";
- var r = e("immediate");
- function i() {}
- var o = {}
- , a = ["REJECTED"]
- , s = ["FULFILLED"]
- , l = ["PENDING"];
- function u(e) {
- if ("function" != typeof e)
- throw new TypeError("resolver must be a function");
- this.state = l,
- this.queue = [],
- this.outcome = void 0,
- e !== i && h(this, e)
- }
- function c(e, t, n) {
- this.promise = e,
- "function" == typeof t && (this.onFulfilled = t,
- this.callFulfilled = this.otherCallFulfilled),
- "function" == typeof n && (this.onRejected = n,
- this.callRejected = this.otherCallRejected)
- }
- function d(e, t, n) {
- r((function() {
- var r;
- try {
- r = t(n)
- } catch (r) {
- return o.reject(e, r)
- }
- r === e ? o.reject(e, new TypeError("Cannot resolve promise with itself")) : o.resolve(e, r)
- }
- ))
- }
- function f(e) {
- var t = e && e.then;
- if (e && ("object" == typeof e || "function" == typeof e) && "function" == typeof t)
- return function() {
- t.apply(e, arguments)
- }
- }
- function h(e, t) {
- var n = !1;
- function r(t) {
- n || (n = !0,
- o.reject(e, t))
- }
- function i(t) {
- n || (n = !0,
- o.resolve(e, t))
- }
- var a = p((function() {
- t(i, r)
- }
- ));
- "error" === a.status && r(a.value)
- }
- function p(e, t) {
- var n = {};
- try {
- n.value = e(t),
- n.status = "success"
- } catch (e) {
- n.status = "error",
- n.value = e
- }
- return n
- }
- (t.exports = u).prototype.finally = function(e) {
- if ("function" != typeof e)
- return this;
- var t = this.constructor;
- return this.then((function(n) {
- return t.resolve(e()).then((function() {
- return n
- }
- ))
- }
- ), (function(n) {
- return t.resolve(e()).then((function() {
- throw n
- }
- ))
- }
- ))
- }
- ,
- u.prototype.catch = function(e) {
- return this.then(null, e)
- }
- ,
- u.prototype.then = function(e, t) {
- if ("function" != typeof e && this.state === s || "function" != typeof t && this.state === a)
- return this;
- var n = new this.constructor(i);
- return this.state !== l ? d(n, this.state === s ? e : t, this.outcome) : this.queue.push(new c(n,e,t)),
- n
- }
- ,
- c.prototype.callFulfilled = function(e) {
- o.resolve(this.promise, e)
- }
- ,
- c.prototype.otherCallFulfilled = function(e) {
- d(this.promise, this.onFulfilled, e)
- }
- ,
- c.prototype.callRejected = function(e) {
- o.reject(this.promise, e)
- }
- ,
- c.prototype.otherCallRejected = function(e) {
- d(this.promise, this.onRejected, e)
- }
- ,
- o.resolve = function(e, t) {
- var n = p(f, t);
- if ("error" === n.status)
- return o.reject(e, n.value);
- var r = n.value;
- if (r)
- h(e, r);
- else {
- e.state = s,
- e.outcome = t;
- for (var i = -1, a = e.queue.length; ++i < a; )
- e.queue[i].callFulfilled(t)
- }
- return e
- }
- ,
- o.reject = function(e, t) {
- e.state = a,
- e.outcome = t;
- for (var n = -1, r = e.queue.length; ++n < r; )
- e.queue[n].callRejected(t);
- return e
- }
- ,
- u.resolve = function(e) {
- return e instanceof this ? e : o.resolve(new this(i), e)
- }
- ,
- u.reject = function(e) {
- var t = new this(i);
- return o.reject(t, e)
- }
- ,
- u.all = function(e) {
- var t = this;
- if ("[object Array]" !== Object.prototype.toString.call(e))
- return this.reject(new TypeError("must be an array"));
- var n = e.length
- , r = !1;
- if (!n)
- return this.resolve([]);
- for (var a = new Array(n), s = 0, l = -1, u = new this(i); ++l < n; )
- c(e[l], l);
- return u;
- function c(e, i) {
- t.resolve(e).then((function(e) {
- a[i] = e,
- ++s !== n || r || (r = !0,
- o.resolve(u, a))
- }
- ), (function(e) {
- r || (r = !0,
- o.reject(u, e))
- }
- ))
- }
- }
- ,
- u.race = function(e) {
- if ("[object Array]" !== Object.prototype.toString.call(e))
- return this.reject(new TypeError("must be an array"));
- var t = e.length
- , n = !1;
- if (!t)
- return this.resolve([]);
- for (var r, a = -1, s = new this(i); ++a < t; )
- r = e[a],
- this.resolve(r).then((function(e) {
- n || (n = !0,
- o.resolve(s, e))
- }
- ), (function(e) {
- n || (n = !0,
- o.reject(s, e))
- }
- ));
- return s
- }
- }
- , {
- immediate: 36
- }],
- 38: [function(e, t, n) {
- "use strict";
- var r = {};
- (0,
- e("./lib/utils/common").assign)(r, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")),
- t.exports = r
- }
- , {
- "./lib/deflate": 39,
- "./lib/inflate": 40,
- "./lib/utils/common": 41,
- "./lib/zlib/constants": 44
- }],
- 39: [function(e, t, n) {
- "use strict";
- var r = e("./zlib/deflate")
- , i = e("./utils/common")
- , o = e("./utils/strings")
- , a = e("./zlib/messages")
- , s = e("./zlib/zstream")
- , l = Object.prototype.toString;
- function u(e) {
- if (!(this instanceof u))
- return new u(e);
- this.options = i.assign({
- level: -1,
- method: 8,
- chunkSize: 16384,
- windowBits: 15,
- memLevel: 8,
- strategy: 0,
- to: ""
- }, e || {});
- var t = this.options;
- t.raw && 0 < t.windowBits ? t.windowBits = -t.windowBits : t.gzip && 0 < t.windowBits && t.windowBits < 16 && (t.windowBits += 16),
- this.err = 0,
- this.msg = "",
- this.ended = !1,
- this.chunks = [],
- this.strm = new s,
- this.strm.avail_out = 0;
- var n = r.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy);
- if (0 !== n)
- throw new Error(a[n]);
- if (t.header && r.deflateSetHeader(this.strm, t.header),
- t.dictionary) {
- var c;
- if (c = "string" == typeof t.dictionary ? o.string2buf(t.dictionary) : "[object ArrayBuffer]" === l.call(t.dictionary) ? new Uint8Array(t.dictionary) : t.dictionary,
- 0 !== (n = r.deflateSetDictionary(this.strm, c)))
- throw new Error(a[n]);
- this._dict_set = !0
- }
- }
- function c(e, t) {
- var n = new u(t);
- if (n.push(e, !0),
- n.err)
- throw n.msg || a[n.err];
- return n.result
- }
- u.prototype.push = function(e, t) {
- var n, a, s = this.strm, u = this.options.chunkSize;
- if (this.ended)
- return !1;
- a = t === ~~t ? t : !0 === t ? 4 : 0,
- "string" == typeof e ? s.input = o.string2buf(e) : "[object ArrayBuffer]" === l.call(e) ? s.input = new Uint8Array(e) : s.input = e,
- s.next_in = 0,
- s.avail_in = s.input.length;
- do {
- if (0 === s.avail_out && (s.output = new i.Buf8(u),
- s.next_out = 0,
- s.avail_out = u),
- 1 !== (n = r.deflate(s, a)) && 0 !== n)
- return this.onEnd(n),
- !(this.ended = !0);
- 0 !== s.avail_out && (0 !== s.avail_in || 4 !== a && 2 !== a) || ("string" === this.options.to ? this.onData(o.buf2binstring(i.shrinkBuf(s.output, s.next_out))) : this.onData(i.shrinkBuf(s.output, s.next_out)))
- } while ((0 < s.avail_in || 0 === s.avail_out) && 1 !== n);
- return 4 === a ? (n = r.deflateEnd(this.strm),
- this.onEnd(n),
- this.ended = !0,
- 0 === n) : 2 !== a || (this.onEnd(0),
- !(s.avail_out = 0))
- }
- ,
- u.prototype.onData = function(e) {
- this.chunks.push(e)
- }
- ,
- u.prototype.onEnd = function(e) {
- 0 === e && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)),
- this.chunks = [],
- this.err = e,
- this.msg = this.strm.msg
- }
- ,
- n.Deflate = u,
- n.deflate = c,
- n.deflateRaw = function(e, t) {
- return (t = t || {}).raw = !0,
- c(e, t)
- }
- ,
- n.gzip = function(e, t) {
- return (t = t || {}).gzip = !0,
- c(e, t)
- }
- }
- , {
- "./utils/common": 41,
- "./utils/strings": 42,
- "./zlib/deflate": 46,
- "./zlib/messages": 51,
- "./zlib/zstream": 53
- }],
- 40: [function(e, t, n) {
- "use strict";
- var r = e("./zlib/inflate")
- , i = e("./utils/common")
- , o = e("./utils/strings")
- , a = e("./zlib/constants")
- , s = e("./zlib/messages")
- , l = e("./zlib/zstream")
- , u = e("./zlib/gzheader")
- , c = Object.prototype.toString;
- function d(e) {
- if (!(this instanceof d))
- return new d(e);
- this.options = i.assign({
- chunkSize: 16384,
- windowBits: 0,
- to: ""
- }, e || {});
- var t = this.options;
- t.raw && 0 <= t.windowBits && t.windowBits < 16 && (t.windowBits = -t.windowBits,
- 0 === t.windowBits && (t.windowBits = -15)),
- !(0 <= t.windowBits && t.windowBits < 16) || e && e.windowBits || (t.windowBits += 32),
- 15 < t.windowBits && t.windowBits < 48 && 0 == (15 & t.windowBits) && (t.windowBits |= 15),
- this.err = 0,
- this.msg = "",
- this.ended = !1,
- this.chunks = [],
- this.strm = new l,
- this.strm.avail_out = 0;
- var n = r.inflateInit2(this.strm, t.windowBits);
- if (n !== a.Z_OK)
- throw new Error(s[n]);
- this.header = new u,
- r.inflateGetHeader(this.strm, this.header)
- }
- function f(e, t) {
- var n = new d(t);
- if (n.push(e, !0),
- n.err)
- throw n.msg || s[n.err];
- return n.result
- }
- d.prototype.push = function(e, t) {
- var n, s, l, u, d, f, h = this.strm, p = this.options.chunkSize, g = this.options.dictionary, m = !1;
- if (this.ended)
- return !1;
- s = t === ~~t ? t : !0 === t ? a.Z_FINISH : a.Z_NO_FLUSH,
- "string" == typeof e ? h.input = o.binstring2buf(e) : "[object ArrayBuffer]" === c.call(e) ? h.input = new Uint8Array(e) : h.input = e,
- h.next_in = 0,
- h.avail_in = h.input.length;
- do {
- if (0 === h.avail_out && (h.output = new i.Buf8(p),
- h.next_out = 0,
- h.avail_out = p),
- (n = r.inflate(h, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && g && (f = "string" == typeof g ? o.string2buf(g) : "[object ArrayBuffer]" === c.call(g) ? new Uint8Array(g) : g,
- n = r.inflateSetDictionary(this.strm, f)),
- n === a.Z_BUF_ERROR && !0 === m && (n = a.Z_OK,
- m = !1),
- n !== a.Z_STREAM_END && n !== a.Z_OK)
- return this.onEnd(n),
- !(this.ended = !0);
- h.next_out && (0 !== h.avail_out && n !== a.Z_STREAM_END && (0 !== h.avail_in || s !== a.Z_FINISH && s !== a.Z_SYNC_FLUSH) || ("string" === this.options.to ? (l = o.utf8border(h.output, h.next_out),
- u = h.next_out - l,
- d = o.buf2string(h.output, l),
- h.next_out = u,
- h.avail_out = p - u,
- u && i.arraySet(h.output, h.output, l, u, 0),
- this.onData(d)) : this.onData(i.shrinkBuf(h.output, h.next_out)))),
- 0 === h.avail_in && 0 === h.avail_out && (m = !0)
- } while ((0 < h.avail_in || 0 === h.avail_out) && n !== a.Z_STREAM_END);
- return n === a.Z_STREAM_END && (s = a.Z_FINISH),
- s === a.Z_FINISH ? (n = r.inflateEnd(this.strm),
- this.onEnd(n),
- this.ended = !0,
- n === a.Z_OK) : s !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK),
- !(h.avail_out = 0))
- }
- ,
- d.prototype.onData = function(e) {
- this.chunks.push(e)
- }
- ,
- d.prototype.onEnd = function(e) {
- e === a.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)),
- this.chunks = [],
- this.err = e,
- this.msg = this.strm.msg
- }
- ,
- n.Inflate = d,
- n.inflate = f,
- n.inflateRaw = function(e, t) {
- return (t = t || {}).raw = !0,
- f(e, t)
- }
- ,
- n.ungzip = f
- }
- , {
- "./utils/common": 41,
- "./utils/strings": 42,
- "./zlib/constants": 44,
- "./zlib/gzheader": 47,
- "./zlib/inflate": 49,
- "./zlib/messages": 51,
- "./zlib/zstream": 53
- }],
- 41: [function(e, t, n) {
- "use strict";
- var r = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array;
- n.assign = function(e) {
- for (var t = Array.prototype.slice.call(arguments, 1); t.length; ) {
- var n = t.shift();
- if (n) {
- if ("object" != typeof n)
- throw new TypeError(n + "must be non-object");
- for (var r in n)
- n.hasOwnProperty(r) && (e[r] = n[r])
- }
- }
- return e
- }
- ,
- n.shrinkBuf = function(e, t) {
- return e.length === t ? e : e.subarray ? e.subarray(0, t) : (e.length = t,
- e)
- }
- ;
- var i = {
- arraySet: function(e, t, n, r, i) {
- if (t.subarray && e.subarray)
- e.set(t.subarray(n, n + r), i);
- else
- for (var o = 0; o < r; o++)
- e[i + o] = t[n + o]
- },
- flattenChunks: function(e) {
- var t, n, r, i, o, a;
- for (t = r = 0,
- n = e.length; t < n; t++)
- r += e[t].length;
- for (a = new Uint8Array(r),
- t = i = 0,
- n = e.length; t < n; t++)
- o = e[t],
- a.set(o, i),
- i += o.length;
- return a
- }
- }
- , o = {
- arraySet: function(e, t, n, r, i) {
- for (var o = 0; o < r; o++)
- e[i + o] = t[n + o]
- },
- flattenChunks: function(e) {
- return [].concat.apply([], e)
- }
- };
- n.setTyped = function(e) {
- e ? (n.Buf8 = Uint8Array,
- n.Buf16 = Uint16Array,
- n.Buf32 = Int32Array,
- n.assign(n, i)) : (n.Buf8 = Array,
- n.Buf16 = Array,
- n.Buf32 = Array,
- n.assign(n, o))
- }
- ,
- n.setTyped(r)
- }
- , {}],
- 42: [function(e, t, n) {
- "use strict";
- var r = e("./common")
- , i = !0
- , o = !0;
- try {
- String.fromCharCode.apply(null, [0])
- } catch (e) {
- i = !1
- }
- try {
- String.fromCharCode.apply(null, new Uint8Array(1))
- } catch (e) {
- o = !1
- }
- for (var a = new r.Buf8(256), s = 0; s < 256; s++)
- a[s] = 252 <= s ? 6 : 248 <= s ? 5 : 240 <= s ? 4 : 224 <= s ? 3 : 192 <= s ? 2 : 1;
- function l(e, t) {
- if (t < 65537 && (e.subarray && o || !e.subarray && i))
- return String.fromCharCode.apply(null, r.shrinkBuf(e, t));
- for (var n = "", a = 0; a < t; a++)
- n += String.fromCharCode(e[a]);
- return n
- }
- a[254] = a[254] = 1,
- n.string2buf = function(e) {
- var t, n, i, o, a, s = e.length, l = 0;
- for (o = 0; o < s; o++)
- 55296 == (64512 & (n = e.charCodeAt(o))) && o + 1 < s && 56320 == (64512 & (i = e.charCodeAt(o + 1))) && (n = 65536 + (n - 55296 << 10) + (i - 56320),
- o++),
- l += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
- for (t = new r.Buf8(l),
- o = a = 0; a < l; o++)
- 55296 == (64512 & (n = e.charCodeAt(o))) && o + 1 < s && 56320 == (64512 & (i = e.charCodeAt(o + 1))) && (n = 65536 + (n - 55296 << 10) + (i - 56320),
- o++),
- n < 128 ? t[a++] = n : (n < 2048 ? t[a++] = 192 | n >>> 6 : (n < 65536 ? t[a++] = 224 | n >>> 12 : (t[a++] = 240 | n >>> 18,
- t[a++] = 128 | n >>> 12 & 63),
- t[a++] = 128 | n >>> 6 & 63),
- t[a++] = 128 | 63 & n);
- return t
- }
- ,
- n.buf2binstring = function(e) {
- return l(e, e.length)
- }
- ,
- n.binstring2buf = function(e) {
- for (var t = new r.Buf8(e.length), n = 0, i = t.length; n < i; n++)
- t[n] = e.charCodeAt(n);
- return t
- }
- ,
- n.buf2string = function(e, t) {
- var n, r, i, o, s = t || e.length, u = new Array(2 * s);
- for (n = r = 0; n < s; )
- if ((i = e[n++]) < 128)
- u[r++] = i;
- else if (4 < (o = a[i]))
- u[r++] = 65533,
- n += o - 1;
- else {
- for (i &= 2 === o ? 31 : 3 === o ? 15 : 7; 1 < o && n < s; )
- i = i << 6 | 63 & e[n++],
- o--;
- 1 < o ? u[r++] = 65533 : i < 65536 ? u[r++] = i : (i -= 65536,
- u[r++] = 55296 | i >> 10 & 1023,
- u[r++] = 56320 | 1023 & i)
- }
- return l(u, r)
- }
- ,
- n.utf8border = function(e, t) {
- var n;
- for ((t = t || e.length) > e.length && (t = e.length),
- n = t - 1; 0 <= n && 128 == (192 & e[n]); )
- n--;
- return n < 0 || 0 === n ? t : n + a[e[n]] > t ? n : t
- }
- }
- , {
- "./common": 41
- }],
- 43: [function(e, t, n) {
- "use strict";
- t.exports = function(e, t, n, r) {
- for (var i = 65535 & e | 0, o = e >>> 16 & 65535 | 0, a = 0; 0 !== n; ) {
- for (n -= a = 2e3 < n ? 2e3 : n; o = o + (i = i + t[r++] | 0) | 0,
- --a; )
- ;
- i %= 65521,
- o %= 65521
- }
- return i | o << 16 | 0
- }
- }
- , {}],
- 44: [function(e, t, n) {
- "use strict";
- t.exports = {
- Z_NO_FLUSH: 0,
- Z_PARTIAL_FLUSH: 1,
- Z_SYNC_FLUSH: 2,
- Z_FULL_FLUSH: 3,
- Z_FINISH: 4,
- Z_BLOCK: 5,
- Z_TREES: 6,
- Z_OK: 0,
- Z_STREAM_END: 1,
- Z_NEED_DICT: 2,
- Z_ERRNO: -1,
- Z_STREAM_ERROR: -2,
- Z_DATA_ERROR: -3,
- Z_BUF_ERROR: -5,
- Z_NO_COMPRESSION: 0,
- Z_BEST_SPEED: 1,
- Z_BEST_COMPRESSION: 9,
- Z_DEFAULT_COMPRESSION: -1,
- Z_FILTERED: 1,
- Z_HUFFMAN_ONLY: 2,
- Z_RLE: 3,
- Z_FIXED: 4,
- Z_DEFAULT_STRATEGY: 0,
- Z_BINARY: 0,
- Z_TEXT: 1,
- Z_UNKNOWN: 2,
- Z_DEFLATED: 8
- }
- }
- , {}],
- 45: [function(e, t, n) {
- "use strict";
- var r = function() {
- for (var e, t = [], n = 0; n < 256; n++) {
- e = n;
- for (var r = 0; r < 8; r++)
- e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
- t[n] = e
- }
- return t
- }();
- t.exports = function(e, t, n, i) {
- var o = r
- , a = i + n;
- e ^= -1;
- for (var s = i; s < a; s++)
- e = e >>> 8 ^ o[255 & (e ^ t[s])];
- return -1 ^ e
- }
- }
- , {}],
- 46: [function(e, t, n) {
- "use strict";
- var r, i = e("../utils/common"), o = e("./trees"), a = e("./adler32"), s = e("./crc32"), l = e("./messages"), u = -2, c = 258, d = 262, f = 113;
- function h(e, t) {
- return e.msg = l[t],
- t
- }
- function p(e) {
- return (e << 1) - (4 < e ? 9 : 0)
- }
- function g(e) {
- for (var t = e.length; 0 <= --t; )
- e[t] = 0
- }
- function m(e) {
- var t = e.state
- , n = t.pending;
- n > e.avail_out && (n = e.avail_out),
- 0 !== n && (i.arraySet(e.output, t.pending_buf, t.pending_out, n, e.next_out),
- e.next_out += n,
- t.pending_out += n,
- e.total_out += n,
- e.avail_out -= n,
- t.pending -= n,
- 0 === t.pending && (t.pending_out = 0))
- }
- function v(e, t) {
- o._tr_flush_block(e, 0 <= e.block_start ? e.block_start : -1, e.strstart - e.block_start, t),
- e.block_start = e.strstart,
- m(e.strm)
- }
- function y(e, t) {
- e.pending_buf[e.pending++] = t
- }
- function b(e, t) {
- e.pending_buf[e.pending++] = t >>> 8 & 255,
- e.pending_buf[e.pending++] = 255 & t
- }
- function _(e, t) {
- var n, r, i = e.max_chain_length, o = e.strstart, a = e.prev_length, s = e.nice_match, l = e.strstart > e.w_size - d ? e.strstart - (e.w_size - d) : 0, u = e.window, f = e.w_mask, h = e.prev, p = e.strstart + c, g = u[o + a - 1], m = u[o + a];
- e.prev_length >= e.good_match && (i >>= 2),
- s > e.lookahead && (s = e.lookahead);
- do {
- if (u[(n = t) + a] === m && u[n + a - 1] === g && u[n] === u[o] && u[++n] === u[o + 1]) {
- o += 2,
- n++;
- do {} while (u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && u[++o] === u[++n] && o < p);
- if (r = c - (p - o),
- o = p - c,
- a < r) {
- if (e.match_start = t,
- s <= (a = r))
- break;
- g = u[o + a - 1],
- m = u[o + a]
- }
- }
- } while ((t = h[t & f]) > l && 0 != --i);
- return a <= e.lookahead ? a : e.lookahead
- }
- function w(e) {
- var t, n, r, o, l, u, c, f, h, p, g = e.w_size;
- do {
- if (o = e.window_size - e.lookahead - e.strstart,
- e.strstart >= g + (g - d)) {
- for (i.arraySet(e.window, e.window, g, g, 0),
- e.match_start -= g,
- e.strstart -= g,
- e.block_start -= g,
- t = n = e.hash_size; r = e.head[--t],
- e.head[t] = g <= r ? r - g : 0,
- --n; )
- ;
- for (t = n = g; r = e.prev[--t],
- e.prev[t] = g <= r ? r - g : 0,
- --n; )
- ;
- o += g
- }
- if (0 === e.strm.avail_in)
- break;
- if (u = e.strm,
- c = e.window,
- f = e.strstart + e.lookahead,
- p = void 0,
- (h = o) < (p = u.avail_in) && (p = h),
- n = 0 === p ? 0 : (u.avail_in -= p,
- i.arraySet(c, u.input, u.next_in, p, f),
- 1 === u.state.wrap ? u.adler = a(u.adler, c, p, f) : 2 === u.state.wrap && (u.adler = s(u.adler, c, p, f)),
- u.next_in += p,
- u.total_in += p,
- p),
- e.lookahead += n,
- e.lookahead + e.insert >= 3)
- for (l = e.strstart - e.insert,
- e.ins_h = e.window[l],
- e.ins_h = (e.ins_h << e.hash_shift ^ e.window[l + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[l + 3 - 1]) & e.hash_mask,
- e.prev[l & e.w_mask] = e.head[e.ins_h],
- e.head[e.ins_h] = l,
- l++,
- e.insert--,
- !(e.lookahead + e.insert < 3)); )
- ;
- } while (e.lookahead < d && 0 !== e.strm.avail_in)
- }
- function S(e, t) {
- for (var n, r; ; ) {
- if (e.lookahead < d) {
- if (w(e),
- e.lookahead < d && 0 === t)
- return 1;
- if (0 === e.lookahead)
- break
- }
- if (n = 0,
- e.lookahead >= 3 && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask,
- n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h],
- e.head[e.ins_h] = e.strstart),
- 0 !== n && e.strstart - n <= e.w_size - d && (e.match_length = _(e, n)),
- e.match_length >= 3)
- if (r = o._tr_tally(e, e.strstart - e.match_start, e.match_length - 3),
- e.lookahead -= e.match_length,
- e.match_length <= e.max_lazy_match && e.lookahead >= 3) {
- for (e.match_length--; e.strstart++,
- e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask,
- n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h],
- e.head[e.ins_h] = e.strstart,
- 0 != --e.match_length; )
- ;
- e.strstart++
- } else
- e.strstart += e.match_length,
- e.match_length = 0,
- e.ins_h = e.window[e.strstart],
- e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
- else
- r = o._tr_tally(e, 0, e.window[e.strstart]),
- e.lookahead--,
- e.strstart++;
- if (r && (v(e, !1),
- 0 === e.strm.avail_out))
- return 1
- }
- return e.insert = e.strstart < 2 ? e.strstart : 2,
- 4 === t ? (v(e, !0),
- 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (v(e, !1),
- 0 === e.strm.avail_out) ? 1 : 2
- }
- function x(e, t) {
- for (var n, r, i; ; ) {
- if (e.lookahead < d) {
- if (w(e),
- e.lookahead < d && 0 === t)
- return 1;
- if (0 === e.lookahead)
- break
- }
- if (n = 0,
- e.lookahead >= 3 && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask,
- n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h],
- e.head[e.ins_h] = e.strstart),
- e.prev_length = e.match_length,
- e.prev_match = e.match_start,
- e.match_length = 2,
- 0 !== n && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - d && (e.match_length = _(e, n),
- e.match_length <= 5 && (1 === e.strategy || 3 === e.match_length && 4096 < e.strstart - e.match_start) && (e.match_length = 2)),
- e.prev_length >= 3 && e.match_length <= e.prev_length) {
- for (i = e.strstart + e.lookahead - 3,
- r = o._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - 3),
- e.lookahead -= e.prev_length - 1,
- e.prev_length -= 2; ++e.strstart <= i && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask,
- n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h],
- e.head[e.ins_h] = e.strstart),
- 0 != --e.prev_length; )
- ;
- if (e.match_available = 0,
- e.match_length = 2,
- e.strstart++,
- r && (v(e, !1),
- 0 === e.strm.avail_out))
- return 1
- } else if (e.match_available) {
- if ((r = o._tr_tally(e, 0, e.window[e.strstart - 1])) && v(e, !1),
- e.strstart++,
- e.lookahead--,
- 0 === e.strm.avail_out)
- return 1
- } else
- e.match_available = 1,
- e.strstart++,
- e.lookahead--
- }
- return e.match_available && (r = o._tr_tally(e, 0, e.window[e.strstart - 1]),
- e.match_available = 0),
- e.insert = e.strstart < 2 ? e.strstart : 2,
- 4 === t ? (v(e, !0),
- 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (v(e, !1),
- 0 === e.strm.avail_out) ? 1 : 2
- }
- function k(e, t, n, r, i) {
- this.good_length = e,
- this.max_lazy = t,
- this.nice_length = n,
- this.max_chain = r,
- this.func = i
- }
- function I() {
- this.strm = null,
- this.status = 0,
- this.pending_buf = null,
- this.pending_buf_size = 0,
- this.pending_out = 0,
- this.pending = 0,
- this.wrap = 0,
- this.gzhead = null,
- this.gzindex = 0,
- this.method = 8,
- this.last_flush = -1,
- this.w_size = 0,
- this.w_bits = 0,
- this.w_mask = 0,
- this.window = null,
- this.window_size = 0,
- this.prev = null,
- this.head = null,
- this.ins_h = 0,
- this.hash_size = 0,
- this.hash_bits = 0,
- this.hash_mask = 0,
- this.hash_shift = 0,
- this.block_start = 0,
- this.match_length = 0,
- this.prev_match = 0,
- this.match_available = 0,
- this.strstart = 0,
- this.match_start = 0,
- this.lookahead = 0,
- this.prev_length = 0,
- this.max_chain_length = 0,
- this.max_lazy_match = 0,
- this.level = 0,
- this.strategy = 0,
- this.good_match = 0,
- this.nice_match = 0,
- this.dyn_ltree = new i.Buf16(1146),
- this.dyn_dtree = new i.Buf16(122),
- this.bl_tree = new i.Buf16(78),
- g(this.dyn_ltree),
- g(this.dyn_dtree),
- g(this.bl_tree),
- this.l_desc = null,
- this.d_desc = null,
- this.bl_desc = null,
- this.bl_count = new i.Buf16(16),
- this.heap = new i.Buf16(573),
- g(this.heap),
- this.heap_len = 0,
- this.heap_max = 0,
- this.depth = new i.Buf16(573),
- g(this.depth),
- this.l_buf = 0,
- this.lit_bufsize = 0,
- this.last_lit = 0,
- this.d_buf = 0,
- this.opt_len = 0,
- this.static_len = 0,
- this.matches = 0,
- this.insert = 0,
- this.bi_buf = 0,
- this.bi_valid = 0
- }
- function C(e) {
- var t;
- return e && e.state ? (e.total_in = e.total_out = 0,
- e.data_type = 2,
- (t = e.state).pending = 0,
- t.pending_out = 0,
- t.wrap < 0 && (t.wrap = -t.wrap),
- t.status = t.wrap ? 42 : f,
- e.adler = 2 === t.wrap ? 0 : 1,
- t.last_flush = 0,
- o._tr_init(t),
- 0) : h(e, u)
- }
- function M(e) {
- var t = C(e);
- return 0 === t && function(e) {
- e.window_size = 2 * e.w_size,
- g(e.head),
- e.max_lazy_match = r[e.level].max_lazy,
- e.good_match = r[e.level].good_length,
- e.nice_match = r[e.level].nice_length,
- e.max_chain_length = r[e.level].max_chain,
- e.strstart = 0,
- e.block_start = 0,
- e.lookahead = 0,
- e.insert = 0,
- e.match_length = e.prev_length = 2,
- e.match_available = 0,
- e.ins_h = 0
- }(e.state),
- t
- }
- function T(e, t, n, r, o, a) {
- if (!e)
- return u;
- var s = 1;
- if (-1 === t && (t = 6),
- r < 0 ? (s = 0,
- r = -r) : 15 < r && (s = 2,
- r -= 16),
- o < 1 || 9 < o || 8 !== n || r < 8 || 15 < r || t < 0 || 9 < t || a < 0 || 4 < a)
- return h(e, u);
- 8 === r && (r = 9);
- var l = new I;
- return (e.state = l).strm = e,
- l.wrap = s,
- l.gzhead = null,
- l.w_bits = r,
- l.w_size = 1 << l.w_bits,
- l.w_mask = l.w_size - 1,
- l.hash_bits = o + 7,
- l.hash_size = 1 << l.hash_bits,
- l.hash_mask = l.hash_size - 1,
- l.hash_shift = ~~((l.hash_bits + 3 - 1) / 3),
- l.window = new i.Buf8(2 * l.w_size),
- l.head = new i.Buf16(l.hash_size),
- l.prev = new i.Buf16(l.w_size),
- l.lit_bufsize = 1 << o + 6,
- l.pending_buf_size = 4 * l.lit_bufsize,
- l.pending_buf = new i.Buf8(l.pending_buf_size),
- l.d_buf = 1 * l.lit_bufsize,
- l.l_buf = 3 * l.lit_bufsize,
- l.level = t,
- l.strategy = a,
- l.method = n,
- M(e)
- }
- r = [new k(0,0,0,0,(function(e, t) {
- var n = 65535;
- for (n > e.pending_buf_size - 5 && (n = e.pending_buf_size - 5); ; ) {
- if (e.lookahead <= 1) {
- if (w(e),
- 0 === e.lookahead && 0 === t)
- return 1;
- if (0 === e.lookahead)
- break
- }
- e.strstart += e.lookahead,
- e.lookahead = 0;
- var r = e.block_start + n;
- if ((0 === e.strstart || e.strstart >= r) && (e.lookahead = e.strstart - r,
- e.strstart = r,
- v(e, !1),
- 0 === e.strm.avail_out))
- return 1;
- if (e.strstart - e.block_start >= e.w_size - d && (v(e, !1),
- 0 === e.strm.avail_out))
- return 1
- }
- return e.insert = 0,
- 4 === t ? (v(e, !0),
- 0 === e.strm.avail_out ? 3 : 4) : (e.strstart > e.block_start && (v(e, !1),
- e.strm.avail_out),
- 1)
- }
- )), new k(4,4,8,4,S), new k(4,5,16,8,S), new k(4,6,32,32,S), new k(4,4,16,16,x), new k(8,16,32,32,x), new k(8,16,128,128,x), new k(8,32,128,256,x), new k(32,128,258,1024,x), new k(32,258,258,4096,x)],
- n.deflateInit = function(e, t) {
- return T(e, t, 8, 15, 8, 0)
- }
- ,
- n.deflateInit2 = T,
- n.deflateReset = M,
- n.deflateResetKeep = C,
- n.deflateSetHeader = function(e, t) {
- return e && e.state ? 2 !== e.state.wrap ? u : (e.state.gzhead = t,
- 0) : u
- }
- ,
- n.deflate = function(e, t) {
- var n, i, a, l;
- if (!e || !e.state || 5 < t || t < 0)
- return e ? h(e, u) : u;
- if (i = e.state,
- !e.output || !e.input && 0 !== e.avail_in || 666 === i.status && 4 !== t)
- return h(e, 0 === e.avail_out ? -5 : u);
- if (i.strm = e,
- n = i.last_flush,
- i.last_flush = t,
- 42 === i.status)
- if (2 === i.wrap)
- e.adler = 0,
- y(i, 31),
- y(i, 139),
- y(i, 8),
- i.gzhead ? (y(i, (i.gzhead.text ? 1 : 0) + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)),
- y(i, 255 & i.gzhead.time),
- y(i, i.gzhead.time >> 8 & 255),
- y(i, i.gzhead.time >> 16 & 255),
- y(i, i.gzhead.time >> 24 & 255),
- y(i, 9 === i.level ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0),
- y(i, 255 & i.gzhead.os),
- i.gzhead.extra && i.gzhead.extra.length && (y(i, 255 & i.gzhead.extra.length),
- y(i, i.gzhead.extra.length >> 8 & 255)),
- i.gzhead.hcrc && (e.adler = s(e.adler, i.pending_buf, i.pending, 0)),
- i.gzindex = 0,
- i.status = 69) : (y(i, 0),
- y(i, 0),
- y(i, 0),
- y(i, 0),
- y(i, 0),
- y(i, 9 === i.level ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0),
- y(i, 3),
- i.status = f);
- else {
- var d = 8 + (i.w_bits - 8 << 4) << 8;
- d |= (2 <= i.strategy || i.level < 2 ? 0 : i.level < 6 ? 1 : 6 === i.level ? 2 : 3) << 6,
- 0 !== i.strstart && (d |= 32),
- d += 31 - d % 31,
- i.status = f,
- b(i, d),
- 0 !== i.strstart && (b(i, e.adler >>> 16),
- b(i, 65535 & e.adler)),
- e.adler = 1
- }
- if (69 === i.status)
- if (i.gzhead.extra) {
- for (a = i.pending; i.gzindex < (65535 & i.gzhead.extra.length) && (i.pending !== i.pending_buf_size || (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
- m(e),
- a = i.pending,
- i.pending !== i.pending_buf_size)); )
- y(i, 255 & i.gzhead.extra[i.gzindex]),
- i.gzindex++;
- i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
- i.gzindex === i.gzhead.extra.length && (i.gzindex = 0,
- i.status = 73)
- } else
- i.status = 73;
- if (73 === i.status)
- if (i.gzhead.name) {
- a = i.pending;
- do {
- if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
- m(e),
- a = i.pending,
- i.pending === i.pending_buf_size)) {
- l = 1;
- break
- }
- l = i.gzindex < i.gzhead.name.length ? 255 & i.gzhead.name.charCodeAt(i.gzindex++) : 0,
- y(i, l)
- } while (0 !== l);
- i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
- 0 === l && (i.gzindex = 0,
- i.status = 91)
- } else
- i.status = 91;
- if (91 === i.status)
- if (i.gzhead.comment) {
- a = i.pending;
- do {
- if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
- m(e),
- a = i.pending,
- i.pending === i.pending_buf_size)) {
- l = 1;
- break
- }
- l = i.gzindex < i.gzhead.comment.length ? 255 & i.gzhead.comment.charCodeAt(i.gzindex++) : 0,
- y(i, l)
- } while (0 !== l);
- i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
- 0 === l && (i.status = 103)
- } else
- i.status = 103;
- if (103 === i.status && (i.gzhead.hcrc ? (i.pending + 2 > i.pending_buf_size && m(e),
- i.pending + 2 <= i.pending_buf_size && (y(i, 255 & e.adler),
- y(i, e.adler >> 8 & 255),
- e.adler = 0,
- i.status = f)) : i.status = f),
- 0 !== i.pending) {
- if (m(e),
- 0 === e.avail_out)
- return i.last_flush = -1,
- 0
- } else if (0 === e.avail_in && p(t) <= p(n) && 4 !== t)
- return h(e, -5);
- if (666 === i.status && 0 !== e.avail_in)
- return h(e, -5);
- if (0 !== e.avail_in || 0 !== i.lookahead || 0 !== t && 666 !== i.status) {
- var _ = 2 === i.strategy ? function(e, t) {
- for (var n; ; ) {
- if (0 === e.lookahead && (w(e),
- 0 === e.lookahead)) {
- if (0 === t)
- return 1;
- break
- }
- if (e.match_length = 0,
- n = o._tr_tally(e, 0, e.window[e.strstart]),
- e.lookahead--,
- e.strstart++,
- n && (v(e, !1),
- 0 === e.strm.avail_out))
- return 1
- }
- return e.insert = 0,
- 4 === t ? (v(e, !0),
- 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (v(e, !1),
- 0 === e.strm.avail_out) ? 1 : 2
- }(i, t) : 3 === i.strategy ? function(e, t) {
- for (var n, r, i, a, s = e.window; ; ) {
- if (e.lookahead <= c) {
- if (w(e),
- e.lookahead <= c && 0 === t)
- return 1;
- if (0 === e.lookahead)
- break
- }
- if (e.match_length = 0,
- e.lookahead >= 3 && 0 < e.strstart && (r = s[i = e.strstart - 1]) === s[++i] && r === s[++i] && r === s[++i]) {
- a = e.strstart + c;
- do {} while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && i < a);
- e.match_length = c - (a - i),
- e.match_length > e.lookahead && (e.match_length = e.lookahead)
- }
- if (e.match_length >= 3 ? (n = o._tr_tally(e, 1, e.match_length - 3),
- e.lookahead -= e.match_length,
- e.strstart += e.match_length,
- e.match_length = 0) : (n = o._tr_tally(e, 0, e.window[e.strstart]),
- e.lookahead--,
- e.strstart++),
- n && (v(e, !1),
- 0 === e.strm.avail_out))
- return 1
- }
- return e.insert = 0,
- 4 === t ? (v(e, !0),
- 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (v(e, !1),
- 0 === e.strm.avail_out) ? 1 : 2
- }(i, t) : r[i.level].func(i, t);
- if (3 !== _ && 4 !== _ || (i.status = 666),
- 1 === _ || 3 === _)
- return 0 === e.avail_out && (i.last_flush = -1),
- 0;
- if (2 === _ && (1 === t ? o._tr_align(i) : 5 !== t && (o._tr_stored_block(i, 0, 0, !1),
- 3 === t && (g(i.head),
- 0 === i.lookahead && (i.strstart = 0,
- i.block_start = 0,
- i.insert = 0))),
- m(e),
- 0 === e.avail_out))
- return i.last_flush = -1,
- 0
- }
- return 4 !== t ? 0 : i.wrap <= 0 ? 1 : (2 === i.wrap ? (y(i, 255 & e.adler),
- y(i, e.adler >> 8 & 255),
- y(i, e.adler >> 16 & 255),
- y(i, e.adler >> 24 & 255),
- y(i, 255 & e.total_in),
- y(i, e.total_in >> 8 & 255),
- y(i, e.total_in >> 16 & 255),
- y(i, e.total_in >> 24 & 255)) : (b(i, e.adler >>> 16),
- b(i, 65535 & e.adler)),
- m(e),
- 0 < i.wrap && (i.wrap = -i.wrap),
- 0 !== i.pending ? 0 : 1)
- }
- ,
- n.deflateEnd = function(e) {
- var t;
- return e && e.state ? 42 !== (t = e.state.status) && 69 !== t && 73 !== t && 91 !== t && 103 !== t && t !== f && 666 !== t ? h(e, u) : (e.state = null,
- t === f ? h(e, -3) : 0) : u
- }
- ,
- n.deflateSetDictionary = function(e, t) {
- var n, r, o, s, l, c, d, f, h = t.length;
- if (!e || !e.state)
- return u;
- if (2 === (s = (n = e.state).wrap) || 1 === s && 42 !== n.status || n.lookahead)
- return u;
- for (1 === s && (e.adler = a(e.adler, t, h, 0)),
- n.wrap = 0,
- h >= n.w_size && (0 === s && (g(n.head),
- n.strstart = 0,
- n.block_start = 0,
- n.insert = 0),
- f = new i.Buf8(n.w_size),
- i.arraySet(f, t, h - n.w_size, n.w_size, 0),
- t = f,
- h = n.w_size),
- l = e.avail_in,
- c = e.next_in,
- d = e.input,
- e.avail_in = h,
- e.next_in = 0,
- e.input = t,
- w(n); n.lookahead >= 3; ) {
- for (r = n.strstart,
- o = n.lookahead - 2; n.ins_h = (n.ins_h << n.hash_shift ^ n.window[r + 3 - 1]) & n.hash_mask,
- n.prev[r & n.w_mask] = n.head[n.ins_h],
- n.head[n.ins_h] = r,
- r++,
- --o; )
- ;
- n.strstart = r,
- n.lookahead = 2,
- w(n)
- }
- return n.strstart += n.lookahead,
- n.block_start = n.strstart,
- n.insert = n.lookahead,
- n.lookahead = 0,
- n.match_length = n.prev_length = 2,
- n.match_available = 0,
- e.next_in = c,
- e.input = d,
- e.avail_in = l,
- n.wrap = s,
- 0
- }
- ,
- n.deflateInfo = "pako deflate (from Nodeca project)"
- }
- , {
- "../utils/common": 41,
- "./adler32": 43,
- "./crc32": 45,
- "./messages": 51,
- "./trees": 52
- }],
- 47: [function(e, t, n) {
- "use strict";
- t.exports = function() {
- this.text = 0,
- this.time = 0,
- this.xflags = 0,
- this.os = 0,
- this.extra = null,
- this.extra_len = 0,
- this.name = "",
- this.comment = "",
- this.hcrc = 0,
- this.done = !1
- }
- }
- , {}],
- 48: [function(e, t, n) {
- "use strict";
- t.exports = function(e, t) {
- var n, r, i, o, a, s, l, u, c, d, f, h, p, g, m, v, y, b, _, w, S, x, k, I, C;
- n = e.state,
- r = e.next_in,
- I = e.input,
- i = r + (e.avail_in - 5),
- o = e.next_out,
- C = e.output,
- a = o - (t - e.avail_out),
- s = o + (e.avail_out - 257),
- l = n.dmax,
- u = n.wsize,
- c = n.whave,
- d = n.wnext,
- f = n.window,
- h = n.hold,
- p = n.bits,
- g = n.lencode,
- m = n.distcode,
- v = (1 << n.lenbits) - 1,
- y = (1 << n.distbits) - 1;
- e: do {
- p < 15 && (h += I[r++] << p,
- p += 8,
- h += I[r++] << p,
- p += 8),
- b = g[h & v];
- t: for (; ; ) {
- if (h >>>= _ = b >>> 24,
- p -= _,
- 0 == (_ = b >>> 16 & 255))
- C[o++] = 65535 & b;
- else {
- if (!(16 & _)) {
- if (0 == (64 & _)) {
- b = g[(65535 & b) + (h & (1 << _) - 1)];
- continue t
- }
- if (32 & _) {
- n.mode = 12;
- break e
- }
- e.msg = "invalid literal/length code",
- n.mode = 30;
- break e
- }
- w = 65535 & b,
- (_ &= 15) && (p < _ && (h += I[r++] << p,
- p += 8),
- w += h & (1 << _) - 1,
- h >>>= _,
- p -= _),
- p < 15 && (h += I[r++] << p,
- p += 8,
- h += I[r++] << p,
- p += 8),
- b = m[h & y];
- n: for (; ; ) {
- if (h >>>= _ = b >>> 24,
- p -= _,
- !(16 & (_ = b >>> 16 & 255))) {
- if (0 == (64 & _)) {
- b = m[(65535 & b) + (h & (1 << _) - 1)];
- continue n
- }
- e.msg = "invalid distance code",
- n.mode = 30;
- break e
- }
- if (S = 65535 & b,
- p < (_ &= 15) && (h += I[r++] << p,
- (p += 8) < _ && (h += I[r++] << p,
- p += 8)),
- l < (S += h & (1 << _) - 1)) {
- e.msg = "invalid distance too far back",
- n.mode = 30;
- break e
- }
- if (h >>>= _,
- p -= _,
- (_ = o - a) < S) {
- if (c < (_ = S - _) && n.sane) {
- e.msg = "invalid distance too far back",
- n.mode = 30;
- break e
- }
- if (k = f,
- (x = 0) === d) {
- if (x += u - _,
- _ < w) {
- for (w -= _; C[o++] = f[x++],
- --_; )
- ;
- x = o - S,
- k = C
- }
- } else if (d < _) {
- if (x += u + d - _,
- (_ -= d) < w) {
- for (w -= _; C[o++] = f[x++],
- --_; )
- ;
- if (x = 0,
- d < w) {
- for (w -= _ = d; C[o++] = f[x++],
- --_; )
- ;
- x = o - S,
- k = C
- }
- }
- } else if (x += d - _,
- _ < w) {
- for (w -= _; C[o++] = f[x++],
- --_; )
- ;
- x = o - S,
- k = C
- }
- for (; 2 < w; )
- C[o++] = k[x++],
- C[o++] = k[x++],
- C[o++] = k[x++],
- w -= 3;
- w && (C[o++] = k[x++],
- 1 < w && (C[o++] = k[x++]))
- } else {
- for (x = o - S; C[o++] = C[x++],
- C[o++] = C[x++],
- C[o++] = C[x++],
- 2 < (w -= 3); )
- ;
- w && (C[o++] = C[x++],
- 1 < w && (C[o++] = C[x++]))
- }
- break
- }
- }
- break
- }
- } while (r < i && o < s);
- r -= w = p >> 3,
- h &= (1 << (p -= w << 3)) - 1,
- e.next_in = r,
- e.next_out = o,
- e.avail_in = r < i ? i - r + 5 : 5 - (r - i),
- e.avail_out = o < s ? s - o + 257 : 257 - (o - s),
- n.hold = h,
- n.bits = p
- }
- }
- , {}],
- 49: [function(e, t, n) {
- "use strict";
- var r = e("../utils/common")
- , i = e("./adler32")
- , o = e("./crc32")
- , a = e("./inffast")
- , s = e("./inftrees")
- , l = -2;
- function u(e) {
- return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((65280 & e) << 8) + ((255 & e) << 24)
- }
- function c() {
- this.mode = 0,
- this.last = !1,
- this.wrap = 0,
- this.havedict = !1,
- this.flags = 0,
- this.dmax = 0,
- this.check = 0,
- this.total = 0,
- this.head = null,
- this.wbits = 0,
- this.wsize = 0,
- this.whave = 0,
- this.wnext = 0,
- this.window = null,
- this.hold = 0,
- this.bits = 0,
- this.length = 0,
- this.offset = 0,
- this.extra = 0,
- this.lencode = null,
- this.distcode = null,
- this.lenbits = 0,
- this.distbits = 0,
- this.ncode = 0,
- this.nlen = 0,
- this.ndist = 0,
- this.have = 0,
- this.next = null,
- this.lens = new r.Buf16(320),
- this.work = new r.Buf16(288),
- this.lendyn = null,
- this.distdyn = null,
- this.sane = 0,
- this.back = 0,
- this.was = 0
- }
- function d(e) {
- var t;
- return e && e.state ? (t = e.state,
- e.total_in = e.total_out = t.total = 0,
- e.msg = "",
- t.wrap && (e.adler = 1 & t.wrap),
- t.mode = 1,
- t.last = 0,
- t.havedict = 0,
- t.dmax = 32768,
- t.head = null,
- t.hold = 0,
- t.bits = 0,
- t.lencode = t.lendyn = new r.Buf32(852),
- t.distcode = t.distdyn = new r.Buf32(592),
- t.sane = 1,
- t.back = -1,
- 0) : l
- }
- function f(e) {
- var t;
- return e && e.state ? ((t = e.state).wsize = 0,
- t.whave = 0,
- t.wnext = 0,
- d(e)) : l
- }
- function h(e, t) {
- var n, r;
- return e && e.state ? (r = e.state,
- t < 0 ? (n = 0,
- t = -t) : (n = 1 + (t >> 4),
- t < 48 && (t &= 15)),
- t && (t < 8 || 15 < t) ? l : (null !== r.window && r.wbits !== t && (r.window = null),
- r.wrap = n,
- r.wbits = t,
- f(e))) : l
- }
- function p(e, t) {
- var n, r;
- return e ? (r = new c,
- (e.state = r).window = null,
- 0 !== (n = h(e, t)) && (e.state = null),
- n) : l
- }
- var g, m, v = !0;
- function y(e) {
- if (v) {
- var t;
- for (g = new r.Buf32(512),
- m = new r.Buf32(32),
- t = 0; t < 144; )
- e.lens[t++] = 8;
- for (; t < 256; )
- e.lens[t++] = 9;
- for (; t < 280; )
- e.lens[t++] = 7;
- for (; t < 288; )
- e.lens[t++] = 8;
- for (s(1, e.lens, 0, 288, g, 0, e.work, {
- bits: 9
- }),
- t = 0; t < 32; )
- e.lens[t++] = 5;
- s(2, e.lens, 0, 32, m, 0, e.work, {
- bits: 5
- }),
- v = !1
- }
- e.lencode = g,
- e.lenbits = 9,
- e.distcode = m,
- e.distbits = 5
- }
- function b(e, t, n, i) {
- var o, a = e.state;
- return null === a.window && (a.wsize = 1 << a.wbits,
- a.wnext = 0,
- a.whave = 0,
- a.window = new r.Buf8(a.wsize)),
- i >= a.wsize ? (r.arraySet(a.window, t, n - a.wsize, a.wsize, 0),
- a.wnext = 0,
- a.whave = a.wsize) : (i < (o = a.wsize - a.wnext) && (o = i),
- r.arraySet(a.window, t, n - i, o, a.wnext),
- (i -= o) ? (r.arraySet(a.window, t, n - i, i, 0),
- a.wnext = i,
- a.whave = a.wsize) : (a.wnext += o,
- a.wnext === a.wsize && (a.wnext = 0),
- a.whave < a.wsize && (a.whave += o))),
- 0
- }
- n.inflateReset = f,
- n.inflateReset2 = h,
- n.inflateResetKeep = d,
- n.inflateInit = function(e) {
- return p(e, 15)
- }
- ,
- n.inflateInit2 = p,
- n.inflate = function(e, t) {
- var n, c, d, f, h, p, g, m, v, _, w, S, x, k, I, C, M, T, A, E, O, B, L, P, R = 0, z = new r.Buf8(4), j = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
- if (!e || !e.state || !e.output || !e.input && 0 !== e.avail_in)
- return l;
- 12 === (n = e.state).mode && (n.mode = 13),
- h = e.next_out,
- d = e.output,
- g = e.avail_out,
- f = e.next_in,
- c = e.input,
- p = e.avail_in,
- m = n.hold,
- v = n.bits,
- _ = p,
- w = g,
- B = 0;
- e: for (; ; )
- switch (n.mode) {
- case 1:
- if (0 === n.wrap) {
- n.mode = 13;
- break
- }
- for (; v < 16; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (2 & n.wrap && 35615 === m) {
- z[n.check = 0] = 255 & m,
- z[1] = m >>> 8 & 255,
- n.check = o(n.check, z, 2, 0),
- v = m = 0,
- n.mode = 2;
- break
- }
- if (n.flags = 0,
- n.head && (n.head.done = !1),
- !(1 & n.wrap) || (((255 & m) << 8) + (m >> 8)) % 31) {
- e.msg = "incorrect header check",
- n.mode = 30;
- break
- }
- if (8 != (15 & m)) {
- e.msg = "unknown compression method",
- n.mode = 30;
- break
- }
- if (v -= 4,
- O = 8 + (15 & (m >>>= 4)),
- 0 === n.wbits)
- n.wbits = O;
- else if (O > n.wbits) {
- e.msg = "invalid window size",
- n.mode = 30;
- break
- }
- n.dmax = 1 << O,
- e.adler = n.check = 1,
- n.mode = 512 & m ? 10 : 12,
- v = m = 0;
- break;
- case 2:
- for (; v < 16; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (n.flags = m,
- 8 != (255 & n.flags)) {
- e.msg = "unknown compression method",
- n.mode = 30;
- break
- }
- if (57344 & n.flags) {
- e.msg = "unknown header flags set",
- n.mode = 30;
- break
- }
- n.head && (n.head.text = m >> 8 & 1),
- 512 & n.flags && (z[0] = 255 & m,
- z[1] = m >>> 8 & 255,
- n.check = o(n.check, z, 2, 0)),
- v = m = 0,
- n.mode = 3;
- case 3:
- for (; v < 32; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- n.head && (n.head.time = m),
- 512 & n.flags && (z[0] = 255 & m,
- z[1] = m >>> 8 & 255,
- z[2] = m >>> 16 & 255,
- z[3] = m >>> 24 & 255,
- n.check = o(n.check, z, 4, 0)),
- v = m = 0,
- n.mode = 4;
- case 4:
- for (; v < 16; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- n.head && (n.head.xflags = 255 & m,
- n.head.os = m >> 8),
- 512 & n.flags && (z[0] = 255 & m,
- z[1] = m >>> 8 & 255,
- n.check = o(n.check, z, 2, 0)),
- v = m = 0,
- n.mode = 5;
- case 5:
- if (1024 & n.flags) {
- for (; v < 16; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- n.length = m,
- n.head && (n.head.extra_len = m),
- 512 & n.flags && (z[0] = 255 & m,
- z[1] = m >>> 8 & 255,
- n.check = o(n.check, z, 2, 0)),
- v = m = 0
- } else
- n.head && (n.head.extra = null);
- n.mode = 6;
- case 6:
- if (1024 & n.flags && (p < (S = n.length) && (S = p),
- S && (n.head && (O = n.head.extra_len - n.length,
- n.head.extra || (n.head.extra = new Array(n.head.extra_len)),
- r.arraySet(n.head.extra, c, f, S, O)),
- 512 & n.flags && (n.check = o(n.check, c, S, f)),
- p -= S,
- f += S,
- n.length -= S),
- n.length))
- break e;
- n.length = 0,
- n.mode = 7;
- case 7:
- if (2048 & n.flags) {
- if (0 === p)
- break e;
- for (S = 0; O = c[f + S++],
- n.head && O && n.length < 65536 && (n.head.name += String.fromCharCode(O)),
- O && S < p; )
- ;
- if (512 & n.flags && (n.check = o(n.check, c, S, f)),
- p -= S,
- f += S,
- O)
- break e
- } else
- n.head && (n.head.name = null);
- n.length = 0,
- n.mode = 8;
- case 8:
- if (4096 & n.flags) {
- if (0 === p)
- break e;
- for (S = 0; O = c[f + S++],
- n.head && O && n.length < 65536 && (n.head.comment += String.fromCharCode(O)),
- O && S < p; )
- ;
- if (512 & n.flags && (n.check = o(n.check, c, S, f)),
- p -= S,
- f += S,
- O)
- break e
- } else
- n.head && (n.head.comment = null);
- n.mode = 9;
- case 9:
- if (512 & n.flags) {
- for (; v < 16; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (m !== (65535 & n.check)) {
- e.msg = "header crc mismatch",
- n.mode = 30;
- break
- }
- v = m = 0
- }
- n.head && (n.head.hcrc = n.flags >> 9 & 1,
- n.head.done = !0),
- e.adler = n.check = 0,
- n.mode = 12;
- break;
- case 10:
- for (; v < 32; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- e.adler = n.check = u(m),
- v = m = 0,
- n.mode = 11;
- case 11:
- if (0 === n.havedict)
- return e.next_out = h,
- e.avail_out = g,
- e.next_in = f,
- e.avail_in = p,
- n.hold = m,
- n.bits = v,
- 2;
- e.adler = n.check = 1,
- n.mode = 12;
- case 12:
- if (5 === t || 6 === t)
- break e;
- case 13:
- if (n.last) {
- m >>>= 7 & v,
- v -= 7 & v,
- n.mode = 27;
- break
- }
- for (; v < 3; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- switch (n.last = 1 & m,
- v -= 1,
- 3 & (m >>>= 1)) {
- case 0:
- n.mode = 14;
- break;
- case 1:
- if (y(n),
- n.mode = 20,
- 6 !== t)
- break;
- m >>>= 2,
- v -= 2;
- break e;
- case 2:
- n.mode = 17;
- break;
- case 3:
- e.msg = "invalid block type",
- n.mode = 30
- }
- m >>>= 2,
- v -= 2;
- break;
- case 14:
- for (m >>>= 7 & v,
- v -= 7 & v; v < 32; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if ((65535 & m) != (m >>> 16 ^ 65535)) {
- e.msg = "invalid stored block lengths",
- n.mode = 30;
- break
- }
- if (n.length = 65535 & m,
- v = m = 0,
- n.mode = 15,
- 6 === t)
- break e;
- case 15:
- n.mode = 16;
- case 16:
- if (S = n.length) {
- if (p < S && (S = p),
- g < S && (S = g),
- 0 === S)
- break e;
- r.arraySet(d, c, f, S, h),
- p -= S,
- f += S,
- g -= S,
- h += S,
- n.length -= S;
- break
- }
- n.mode = 12;
- break;
- case 17:
- for (; v < 14; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (n.nlen = 257 + (31 & m),
- m >>>= 5,
- v -= 5,
- n.ndist = 1 + (31 & m),
- m >>>= 5,
- v -= 5,
- n.ncode = 4 + (15 & m),
- m >>>= 4,
- v -= 4,
- 286 < n.nlen || 30 < n.ndist) {
- e.msg = "too many length or distance symbols",
- n.mode = 30;
- break
- }
- n.have = 0,
- n.mode = 18;
- case 18:
- for (; n.have < n.ncode; ) {
- for (; v < 3; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- n.lens[j[n.have++]] = 7 & m,
- m >>>= 3,
- v -= 3
- }
- for (; n.have < 19; )
- n.lens[j[n.have++]] = 0;
- if (n.lencode = n.lendyn,
- n.lenbits = 7,
- L = {
- bits: n.lenbits
- },
- B = s(0, n.lens, 0, 19, n.lencode, 0, n.work, L),
- n.lenbits = L.bits,
- B) {
- e.msg = "invalid code lengths set",
- n.mode = 30;
- break
- }
- n.have = 0,
- n.mode = 19;
- case 19:
- for (; n.have < n.nlen + n.ndist; ) {
- for (; C = (R = n.lencode[m & (1 << n.lenbits) - 1]) >>> 16 & 255,
- M = 65535 & R,
- !((I = R >>> 24) <= v); ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (M < 16)
- m >>>= I,
- v -= I,
- n.lens[n.have++] = M;
- else {
- if (16 === M) {
- for (P = I + 2; v < P; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (m >>>= I,
- v -= I,
- 0 === n.have) {
- e.msg = "invalid bit length repeat",
- n.mode = 30;
- break
- }
- O = n.lens[n.have - 1],
- S = 3 + (3 & m),
- m >>>= 2,
- v -= 2
- } else if (17 === M) {
- for (P = I + 3; v < P; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- v -= I,
- O = 0,
- S = 3 + (7 & (m >>>= I)),
- m >>>= 3,
- v -= 3
- } else {
- for (P = I + 7; v < P; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- v -= I,
- O = 0,
- S = 11 + (127 & (m >>>= I)),
- m >>>= 7,
- v -= 7
- }
- if (n.have + S > n.nlen + n.ndist) {
- e.msg = "invalid bit length repeat",
- n.mode = 30;
- break
- }
- for (; S--; )
- n.lens[n.have++] = O
- }
- }
- if (30 === n.mode)
- break;
- if (0 === n.lens[256]) {
- e.msg = "invalid code -- missing end-of-block",
- n.mode = 30;
- break
- }
- if (n.lenbits = 9,
- L = {
- bits: n.lenbits
- },
- B = s(1, n.lens, 0, n.nlen, n.lencode, 0, n.work, L),
- n.lenbits = L.bits,
- B) {
- e.msg = "invalid literal/lengths set",
- n.mode = 30;
- break
- }
- if (n.distbits = 6,
- n.distcode = n.distdyn,
- L = {
- bits: n.distbits
- },
- B = s(2, n.lens, n.nlen, n.ndist, n.distcode, 0, n.work, L),
- n.distbits = L.bits,
- B) {
- e.msg = "invalid distances set",
- n.mode = 30;
- break
- }
- if (n.mode = 20,
- 6 === t)
- break e;
- case 20:
- n.mode = 21;
- case 21:
- if (6 <= p && 258 <= g) {
- e.next_out = h,
- e.avail_out = g,
- e.next_in = f,
- e.avail_in = p,
- n.hold = m,
- n.bits = v,
- a(e, w),
- h = e.next_out,
- d = e.output,
- g = e.avail_out,
- f = e.next_in,
- c = e.input,
- p = e.avail_in,
- m = n.hold,
- v = n.bits,
- 12 === n.mode && (n.back = -1);
- break
- }
- for (n.back = 0; C = (R = n.lencode[m & (1 << n.lenbits) - 1]) >>> 16 & 255,
- M = 65535 & R,
- !((I = R >>> 24) <= v); ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (C && 0 == (240 & C)) {
- for (T = I,
- A = C,
- E = M; C = (R = n.lencode[E + ((m & (1 << T + A) - 1) >> T)]) >>> 16 & 255,
- M = 65535 & R,
- !(T + (I = R >>> 24) <= v); ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- m >>>= T,
- v -= T,
- n.back += T
- }
- if (m >>>= I,
- v -= I,
- n.back += I,
- n.length = M,
- 0 === C) {
- n.mode = 26;
- break
- }
- if (32 & C) {
- n.back = -1,
- n.mode = 12;
- break
- }
- if (64 & C) {
- e.msg = "invalid literal/length code",
- n.mode = 30;
- break
- }
- n.extra = 15 & C,
- n.mode = 22;
- case 22:
- if (n.extra) {
- for (P = n.extra; v < P; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- n.length += m & (1 << n.extra) - 1,
- m >>>= n.extra,
- v -= n.extra,
- n.back += n.extra
- }
- n.was = n.length,
- n.mode = 23;
- case 23:
- for (; C = (R = n.distcode[m & (1 << n.distbits) - 1]) >>> 16 & 255,
- M = 65535 & R,
- !((I = R >>> 24) <= v); ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (0 == (240 & C)) {
- for (T = I,
- A = C,
- E = M; C = (R = n.distcode[E + ((m & (1 << T + A) - 1) >> T)]) >>> 16 & 255,
- M = 65535 & R,
- !(T + (I = R >>> 24) <= v); ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- m >>>= T,
- v -= T,
- n.back += T
- }
- if (m >>>= I,
- v -= I,
- n.back += I,
- 64 & C) {
- e.msg = "invalid distance code",
- n.mode = 30;
- break
- }
- n.offset = M,
- n.extra = 15 & C,
- n.mode = 24;
- case 24:
- if (n.extra) {
- for (P = n.extra; v < P; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- n.offset += m & (1 << n.extra) - 1,
- m >>>= n.extra,
- v -= n.extra,
- n.back += n.extra
- }
- if (n.offset > n.dmax) {
- e.msg = "invalid distance too far back",
- n.mode = 30;
- break
- }
- n.mode = 25;
- case 25:
- if (0 === g)
- break e;
- if (S = w - g,
- n.offset > S) {
- if ((S = n.offset - S) > n.whave && n.sane) {
- e.msg = "invalid distance too far back",
- n.mode = 30;
- break
- }
- x = S > n.wnext ? (S -= n.wnext,
- n.wsize - S) : n.wnext - S,
- S > n.length && (S = n.length),
- k = n.window
- } else
- k = d,
- x = h - n.offset,
- S = n.length;
- for (g < S && (S = g),
- g -= S,
- n.length -= S; d[h++] = k[x++],
- --S; )
- ;
- 0 === n.length && (n.mode = 21);
- break;
- case 26:
- if (0 === g)
- break e;
- d[h++] = n.length,
- g--,
- n.mode = 21;
- break;
- case 27:
- if (n.wrap) {
- for (; v < 32; ) {
- if (0 === p)
- break e;
- p--,
- m |= c[f++] << v,
- v += 8
- }
- if (w -= g,
- e.total_out += w,
- n.total += w,
- w && (e.adler = n.check = n.flags ? o(n.check, d, w, h - w) : i(n.check, d, w, h - w)),
- w = g,
- (n.flags ? m : u(m)) !== n.check) {
- e.msg = "incorrect data check",
- n.mode = 30;
- break
- }
- v = m = 0
- }
- n.mode = 28;
- case 28:
- if (n.wrap && n.flags) {
- for (; v < 32; ) {
- if (0 === p)
- break e;
- p--,
- m += c[f++] << v,
- v += 8
- }
- if (m !== (4294967295 & n.total)) {
- e.msg = "incorrect length check",
- n.mode = 30;
- break
- }
- v = m = 0
- }
- n.mode = 29;
- case 29:
- B = 1;
- break e;
- case 30:
- B = -3;
- break e;
- case 31:
- return -4;
- case 32:
- default:
- return l
- }
- return e.next_out = h,
- e.avail_out = g,
- e.next_in = f,
- e.avail_in = p,
- n.hold = m,
- n.bits = v,
- (n.wsize || w !== e.avail_out && n.mode < 30 && (n.mode < 27 || 4 !== t)) && b(e, e.output, e.next_out, w - e.avail_out) ? (n.mode = 31,
- -4) : (_ -= e.avail_in,
- w -= e.avail_out,
- e.total_in += _,
- e.total_out += w,
- n.total += w,
- n.wrap && w && (e.adler = n.check = n.flags ? o(n.check, d, w, e.next_out - w) : i(n.check, d, w, e.next_out - w)),
- e.data_type = n.bits + (n.last ? 64 : 0) + (12 === n.mode ? 128 : 0) + (20 === n.mode || 15 === n.mode ? 256 : 0),
- (0 == _ && 0 === w || 4 === t) && 0 === B && (B = -5),
- B)
- }
- ,
- n.inflateEnd = function(e) {
- if (!e || !e.state)
- return l;
- var t = e.state;
- return t.window && (t.window = null),
- e.state = null,
- 0
- }
- ,
- n.inflateGetHeader = function(e, t) {
- var n;
- return e && e.state ? 0 == (2 & (n = e.state).wrap) ? l : ((n.head = t).done = !1,
- 0) : l
- }
- ,
- n.inflateSetDictionary = function(e, t) {
- var n, r = t.length;
- return e && e.state ? 0 !== (n = e.state).wrap && 11 !== n.mode ? l : 11 === n.mode && i(1, t, r, 0) !== n.check ? -3 : b(e, t, r, r) ? (n.mode = 31,
- -4) : (n.havedict = 1,
- 0) : l
- }
- ,
- n.inflateInfo = "pako inflate (from Nodeca project)"
- }
- , {
- "../utils/common": 41,
- "./adler32": 43,
- "./crc32": 45,
- "./inffast": 48,
- "./inftrees": 50
- }],
- 50: [function(e, t, n) {
- "use strict";
- var r = e("../utils/common")
- , i = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]
- , o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]
- , a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]
- , s = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
- t.exports = function(e, t, n, l, u, c, d, f) {
- var h, p, g, m, v, y, b, _, w, S = f.bits, x = 0, k = 0, I = 0, C = 0, M = 0, T = 0, A = 0, E = 0, O = 0, B = 0, L = null, P = 0, R = new r.Buf16(16), z = new r.Buf16(16), j = null, F = 0;
- for (x = 0; x <= 15; x++)
- R[x] = 0;
- for (k = 0; k < l; k++)
- R[t[n + k]]++;
- for (M = S,
- C = 15; 1 <= C && 0 === R[C]; C--)
- ;
- if (C < M && (M = C),
- 0 === C)
- return u[c++] = 20971520,
- u[c++] = 20971520,
- f.bits = 1,
- 0;
- for (I = 1; I < C && 0 === R[I]; I++)
- ;
- for (M < I && (M = I),
- x = E = 1; x <= 15; x++)
- if (E <<= 1,
- (E -= R[x]) < 0)
- return -1;
- if (0 < E && (0 === e || 1 !== C))
- return -1;
- for (z[1] = 0,
- x = 1; x < 15; x++)
- z[x + 1] = z[x] + R[x];
- for (k = 0; k < l; k++)
- 0 !== t[n + k] && (d[z[t[n + k]]++] = k);
- if (y = 0 === e ? (L = j = d,
- 19) : 1 === e ? (L = i,
- P -= 257,
- j = o,
- F -= 257,
- 256) : (L = a,
- j = s,
- -1),
- x = I,
- v = c,
- A = k = B = 0,
- g = -1,
- m = (O = 1 << (T = M)) - 1,
- 1 === e && 852 < O || 2 === e && 592 < O)
- return 1;
- for (; ; ) {
- for (b = x - A,
- w = d[k] < y ? (_ = 0,
- d[k]) : d[k] > y ? (_ = j[F + d[k]],
- L[P + d[k]]) : (_ = 96,
- 0),
- h = 1 << x - A,
- I = p = 1 << T; u[v + (B >> A) + (p -= h)] = b << 24 | _ << 16 | w | 0,
- 0 !== p; )
- ;
- for (h = 1 << x - 1; B & h; )
- h >>= 1;
- if (0 !== h ? (B &= h - 1,
- B += h) : B = 0,
- k++,
- 0 == --R[x]) {
- if (x === C)
- break;
- x = t[n + d[k]]
- }
- if (M < x && (B & m) !== g) {
- for (0 === A && (A = M),
- v += I,
- E = 1 << (T = x - A); T + A < C && !((E -= R[T + A]) <= 0); )
- T++,
- E <<= 1;
- if (O += 1 << T,
- 1 === e && 852 < O || 2 === e && 592 < O)
- return 1;
- u[g = B & m] = M << 24 | T << 16 | v - c | 0
- }
- }
- return 0 !== B && (u[v + B] = x - A << 24 | 64 << 16 | 0),
- f.bits = M,
- 0
- }
- }
- , {
- "../utils/common": 41
- }],
- 51: [function(e, t, n) {
- "use strict";
- t.exports = {
- 2: "need dictionary",
- 1: "stream end",
- 0: "",
- "-1": "file error",
- "-2": "stream error",
- "-3": "data error",
- "-4": "insufficient memory",
- "-5": "buffer error",
- "-6": "incompatible version"
- }
- }
- , {}],
- 52: [function(e, t, n) {
- "use strict";
- var r = e("../utils/common");
- function i(e) {
- for (var t = e.length; 0 <= --t; )
- e[t] = 0
- }
- var o = 256
- , a = 286
- , s = 30
- , l = 15
- , u = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]
- , c = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]
- , d = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
- , f = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
- , h = new Array(576);
- i(h);
- var p = new Array(60);
- i(p);
- var g = new Array(512);
- i(g);
- var m = new Array(256);
- i(m);
- var v = new Array(29);
- i(v);
- var y, b, _, w = new Array(s);
- function S(e, t, n, r, i) {
- this.static_tree = e,
- this.extra_bits = t,
- this.extra_base = n,
- this.elems = r,
- this.max_length = i,
- this.has_stree = e && e.length
- }
- function x(e, t) {
- this.dyn_tree = e,
- this.max_code = 0,
- this.stat_desc = t
- }
- function k(e) {
- return e < 256 ? g[e] : g[256 + (e >>> 7)]
- }
- function I(e, t) {
- e.pending_buf[e.pending++] = 255 & t,
- e.pending_buf[e.pending++] = t >>> 8 & 255
- }
- function C(e, t, n) {
- e.bi_valid > 16 - n ? (e.bi_buf |= t << e.bi_valid & 65535,
- I(e, e.bi_buf),
- e.bi_buf = t >> 16 - e.bi_valid,
- e.bi_valid += n - 16) : (e.bi_buf |= t << e.bi_valid & 65535,
- e.bi_valid += n)
- }
- function M(e, t, n) {
- C(e, n[2 * t], n[2 * t + 1])
- }
- function T(e, t) {
- for (var n = 0; n |= 1 & e,
- e >>>= 1,
- n <<= 1,
- 0 < --t; )
- ;
- return n >>> 1
- }
- function A(e, t, n) {
- var r, i, o = new Array(16), a = 0;
- for (r = 1; r <= l; r++)
- o[r] = a = a + n[r - 1] << 1;
- for (i = 0; i <= t; i++) {
- var s = e[2 * i + 1];
- 0 !== s && (e[2 * i] = T(o[s]++, s))
- }
- }
- function E(e) {
- var t;
- for (t = 0; t < a; t++)
- e.dyn_ltree[2 * t] = 0;
- for (t = 0; t < s; t++)
- e.dyn_dtree[2 * t] = 0;
- for (t = 0; t < 19; t++)
- e.bl_tree[2 * t] = 0;
- e.dyn_ltree[512] = 1,
- e.opt_len = e.static_len = 0,
- e.last_lit = e.matches = 0
- }
- function O(e) {
- 8 < e.bi_valid ? I(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf),
- e.bi_buf = 0,
- e.bi_valid = 0
- }
- function B(e, t, n, r) {
- var i = 2 * t
- , o = 2 * n;
- return e[i] < e[o] || e[i] === e[o] && r[t] <= r[n]
- }
- function L(e, t, n) {
- for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len && B(t, e.heap[i + 1], e.heap[i], e.depth) && i++,
- !B(t, r, e.heap[i], e.depth)); )
- e.heap[n] = e.heap[i],
- n = i,
- i <<= 1;
- e.heap[n] = r
- }
- function P(e, t, n) {
- var r, i, a, s, l = 0;
- if (0 !== e.last_lit)
- for (; r = e.pending_buf[e.d_buf + 2 * l] << 8 | e.pending_buf[e.d_buf + 2 * l + 1],
- i = e.pending_buf[e.l_buf + l],
- l++,
- 0 === r ? M(e, i, t) : (M(e, (a = m[i]) + o + 1, t),
- 0 !== (s = u[a]) && C(e, i -= v[a], s),
- M(e, a = k(--r), n),
- 0 !== (s = c[a]) && C(e, r -= w[a], s)),
- l < e.last_lit; )
- ;
- M(e, 256, t)
- }
- function R(e, t) {
- var n, r, i, o = t.dyn_tree, a = t.stat_desc.static_tree, s = t.stat_desc.has_stree, u = t.stat_desc.elems, c = -1;
- for (e.heap_len = 0,
- e.heap_max = 573,
- n = 0; n < u; n++)
- 0 !== o[2 * n] ? (e.heap[++e.heap_len] = c = n,
- e.depth[n] = 0) : o[2 * n + 1] = 0;
- for (; e.heap_len < 2; )
- o[2 * (i = e.heap[++e.heap_len] = c < 2 ? ++c : 0)] = 1,
- e.depth[i] = 0,
- e.opt_len--,
- s && (e.static_len -= a[2 * i + 1]);
- for (t.max_code = c,
- n = e.heap_len >> 1; 1 <= n; n--)
- L(e, o, n);
- for (i = u; n = e.heap[1],
- e.heap[1] = e.heap[e.heap_len--],
- L(e, o, 1),
- r = e.heap[1],
- e.heap[--e.heap_max] = n,
- e.heap[--e.heap_max] = r,
- o[2 * i] = o[2 * n] + o[2 * r],
- e.depth[i] = (e.depth[n] >= e.depth[r] ? e.depth[n] : e.depth[r]) + 1,
- o[2 * n + 1] = o[2 * r + 1] = i,
- e.heap[1] = i++,
- L(e, o, 1),
- 2 <= e.heap_len; )
- ;
- e.heap[--e.heap_max] = e.heap[1],
- function(e, t) {
- var n, r, i, o, a, s, u = t.dyn_tree, c = t.max_code, d = t.stat_desc.static_tree, f = t.stat_desc.has_stree, h = t.stat_desc.extra_bits, p = t.stat_desc.extra_base, g = t.stat_desc.max_length, m = 0;
- for (o = 0; o <= l; o++)
- e.bl_count[o] = 0;
- for (u[2 * e.heap[e.heap_max] + 1] = 0,
- n = e.heap_max + 1; n < 573; n++)
- g < (o = u[2 * u[2 * (r = e.heap[n]) + 1] + 1] + 1) && (o = g,
- m++),
- u[2 * r + 1] = o,
- c < r || (e.bl_count[o]++,
- a = 0,
- p <= r && (a = h[r - p]),
- s = u[2 * r],
- e.opt_len += s * (o + a),
- f && (e.static_len += s * (d[2 * r + 1] + a)));
- if (0 !== m) {
- do {
- for (o = g - 1; 0 === e.bl_count[o]; )
- o--;
- e.bl_count[o]--,
- e.bl_count[o + 1] += 2,
- e.bl_count[g]--,
- m -= 2
- } while (0 < m);
- for (o = g; 0 !== o; o--)
- for (r = e.bl_count[o]; 0 !== r; )
- c < (i = e.heap[--n]) || (u[2 * i + 1] !== o && (e.opt_len += (o - u[2 * i + 1]) * u[2 * i],
- u[2 * i + 1] = o),
- r--)
- }
- }(e, t),
- A(o, c, e.bl_count)
- }
- function z(e, t, n) {
- var r, i, o = -1, a = t[1], s = 0, l = 7, u = 4;
- for (0 === a && (l = 138,
- u = 3),
- t[2 * (n + 1) + 1] = 65535,
- r = 0; r <= n; r++)
- i = a,
- a = t[2 * (r + 1) + 1],
- ++s < l && i === a || (s < u ? e.bl_tree[2 * i] += s : 0 !== i ? (i !== o && e.bl_tree[2 * i]++,
- e.bl_tree[32]++) : s <= 10 ? e.bl_tree[34]++ : e.bl_tree[36]++,
- o = i,
- u = (s = 0) === a ? (l = 138,
- 3) : i === a ? (l = 6,
- 3) : (l = 7,
- 4))
- }
- function j(e, t, n) {
- var r, i, o = -1, a = t[1], s = 0, l = 7, u = 4;
- for (0 === a && (l = 138,
- u = 3),
- r = 0; r <= n; r++)
- if (i = a,
- a = t[2 * (r + 1) + 1],
- !(++s < l && i === a)) {
- if (s < u)
- for (; M(e, i, e.bl_tree),
- 0 != --s; )
- ;
- else
- 0 !== i ? (i !== o && (M(e, i, e.bl_tree),
- s--),
- M(e, 16, e.bl_tree),
- C(e, s - 3, 2)) : s <= 10 ? (M(e, 17, e.bl_tree),
- C(e, s - 3, 3)) : (M(e, 18, e.bl_tree),
- C(e, s - 11, 7));
- o = i,
- u = (s = 0) === a ? (l = 138,
- 3) : i === a ? (l = 6,
- 3) : (l = 7,
- 4)
- }
- }
- i(w);
- var F = !1;
- function D(e, t, n, i) {
- C(e, 0 + (i ? 1 : 0), 3),
- function(e, t, n, i) {
- O(e),
- I(e, n),
- I(e, ~n),
- r.arraySet(e.pending_buf, e.window, t, n, e.pending),
- e.pending += n
- }(e, t, n)
- }
- n._tr_init = function(e) {
- F || (function() {
- var e, t, n, r, i, o = new Array(16);
- for (r = n = 0; r < 28; r++)
- for (v[r] = n,
- e = 0; e < 1 << u[r]; e++)
- m[n++] = r;
- for (m[n - 1] = r,
- r = i = 0; r < 16; r++)
- for (w[r] = i,
- e = 0; e < 1 << c[r]; e++)
- g[i++] = r;
- for (i >>= 7; r < s; r++)
- for (w[r] = i << 7,
- e = 0; e < 1 << c[r] - 7; e++)
- g[256 + i++] = r;
- for (t = 0; t <= l; t++)
- o[t] = 0;
- for (e = 0; e <= 143; )
- h[2 * e + 1] = 8,
- e++,
- o[8]++;
- for (; e <= 255; )
- h[2 * e + 1] = 9,
- e++,
- o[9]++;
- for (; e <= 279; )
- h[2 * e + 1] = 7,
- e++,
- o[7]++;
- for (; e <= 287; )
- h[2 * e + 1] = 8,
- e++,
- o[8]++;
- for (A(h, 287, o),
- e = 0; e < s; e++)
- p[2 * e + 1] = 5,
- p[2 * e] = T(e, 5);
- y = new S(h,u,257,a,l),
- b = new S(p,c,0,s,l),
- _ = new S(new Array(0),d,0,19,7)
- }(),
- F = !0),
- e.l_desc = new x(e.dyn_ltree,y),
- e.d_desc = new x(e.dyn_dtree,b),
- e.bl_desc = new x(e.bl_tree,_),
- e.bi_buf = 0,
- e.bi_valid = 0,
- E(e)
- }
- ,
- n._tr_stored_block = D,
- n._tr_flush_block = function(e, t, n, r) {
- var i, a, s = 0;
- 0 < e.level ? (2 === e.strm.data_type && (e.strm.data_type = function(e) {
- var t, n = 4093624447;
- for (t = 0; t <= 31; t++,
- n >>>= 1)
- if (1 & n && 0 !== e.dyn_ltree[2 * t])
- return 0;
- if (0 !== e.dyn_ltree[18] || 0 !== e.dyn_ltree[20] || 0 !== e.dyn_ltree[26])
- return 1;
- for (t = 32; t < o; t++)
- if (0 !== e.dyn_ltree[2 * t])
- return 1;
- return 0
- }(e)),
- R(e, e.l_desc),
- R(e, e.d_desc),
- s = function(e) {
- var t;
- for (z(e, e.dyn_ltree, e.l_desc.max_code),
- z(e, e.dyn_dtree, e.d_desc.max_code),
- R(e, e.bl_desc),
- t = 18; 3 <= t && 0 === e.bl_tree[2 * f[t] + 1]; t--)
- ;
- return e.opt_len += 3 * (t + 1) + 5 + 5 + 4,
- t
- }(e),
- i = e.opt_len + 3 + 7 >>> 3,
- (a = e.static_len + 3 + 7 >>> 3) <= i && (i = a)) : i = a = n + 5,
- n + 4 <= i && -1 !== t ? D(e, t, n, r) : 4 === e.strategy || a === i ? (C(e, 2 + (r ? 1 : 0), 3),
- P(e, h, p)) : (C(e, 4 + (r ? 1 : 0), 3),
- function(e, t, n, r) {
- var i;
- for (C(e, t - 257, 5),
- C(e, n - 1, 5),
- C(e, r - 4, 4),
- i = 0; i < r; i++)
- C(e, e.bl_tree[2 * f[i] + 1], 3);
- j(e, e.dyn_ltree, t - 1),
- j(e, e.dyn_dtree, n - 1)
- }(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1),
- P(e, e.dyn_ltree, e.dyn_dtree)),
- E(e),
- r && O(e)
- }
- ,
- n._tr_tally = function(e, t, n) {
- return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255,
- e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t,
- e.pending_buf[e.l_buf + e.last_lit] = 255 & n,
- e.last_lit++,
- 0 === t ? e.dyn_ltree[2 * n]++ : (e.matches++,
- t--,
- e.dyn_ltree[2 * (m[n] + o + 1)]++,
- e.dyn_dtree[2 * k(t)]++),
- e.last_lit === e.lit_bufsize - 1
- }
- ,
- n._tr_align = function(e) {
- C(e, 2, 3),
- M(e, 256, h),
- function(e) {
- 16 === e.bi_valid ? (I(e, e.bi_buf),
- e.bi_buf = 0,
- e.bi_valid = 0) : 8 <= e.bi_valid && (e.pending_buf[e.pending++] = 255 & e.bi_buf,
- e.bi_buf >>= 8,
- e.bi_valid -= 8)
- }(e)
- }
- }
- , {
- "../utils/common": 41
- }],
- 53: [function(e, t, n) {
- "use strict";
- t.exports = function() {
- this.input = null,
- this.next_in = 0,
- this.avail_in = 0,
- this.total_in = 0,
- this.output = null,
- this.next_out = 0,
- this.avail_out = 0,
- this.total_out = 0,
- this.msg = "",
- this.state = null,
- this.data_type = 2,
- this.adler = 0
- }
- }
- , {}],
- 54: [function(e, t, n) {
- "use strict";
- t.exports = "function" == typeof r ? r : function() {
- var e = [].slice.apply(arguments);
- e.splice(1, 0, 0),
- setTimeout.apply(null, e)
- }
- }
- , {}]
- }, {}, [10])(10)
- }
- ).call(this, n(324).Buffer, n(20), n(184).setImmediate)
- },
- 139: function(e) {
- e.exports = JSON.parse('{"tagMarkers":{"id":"tagMarkers","markers":[{"markerId":"tag-red","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-red.svg","hidden":false},{"markerId":"tag-orange","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-orange.svg","hidden":false},{"markerId":"tag-yellow","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-yellow.svg","hidden":false},{"markerId":"tag-green","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-green.svg","hidden":false},{"markerId":"tag-blue","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-blue.svg","hidden":false},{"markerId":"tag-dark-purple","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-dark-purple.svg","hidden":false},{"markerId":"tag-grey","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-grey.svg","hidden":false},{"markerId":"tag-dark-blue","groupId":"tagMarkers","resource":"markers/tagMarkers/tag-dark-blue.svg","hidden":true}],"hidden":false},"priorityMarkers":{"id":"priorityMarkers","markers":[{"markerId":"priority-1","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-1.svg","hidden":false},{"markerId":"priority-2","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-2.svg","hidden":false},{"markerId":"priority-3","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-3.svg","hidden":false},{"markerId":"priority-4","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-4.svg","hidden":false},{"markerId":"priority-5","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-5.svg","hidden":false},{"markerId":"priority-6","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-6.svg","hidden":false},{"markerId":"priority-7","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-7.svg","hidden":false},{"markerId":"priority-8","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-8.svg","hidden":true},{"markerId":"priority-9","groupId":"priorityMarkers","resource":"markers/priorityMarkers/priority-9.svg","hidden":true}],"hidden":false},"smileyMarkers":{"id":"smileyMarkers","markers":[{"markerId":"smiley-laugh","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-laugh.svg","hidden":false},{"markerId":"smiley-smile","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-smile.svg","hidden":false},{"markerId":"smiley-cry","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-cry.svg","hidden":false},{"markerId":"smiley-surprise","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-surprise.svg","hidden":false},{"markerId":"smiley-boring","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-boring.svg","hidden":false},{"markerId":"smiley-angry","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-angry.svg","hidden":false},{"markerId":"smiley-embarrass","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-embarrass.svg","hidden":false},{"markerId":"smiley-think","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-think.svg","hidden":false},{"markerId":"smiley-love","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-love.svg","hidden":false},{"markerId":"smiley-sad","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-sad.svg","hidden":false},{"markerId":"smiley-cry-laugh","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-cry-laugh.svg","hidden":false},{"markerId":"smiley-adore","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-adore.svg","hidden":false},{"markerId":"smiley-devil","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-devil.svg","hidden":false},{"markerId":"smiley-upset","groupId":"smileyMarkers","resource":"markers/smileyMarkers/smiley-upset.svg","hidden":false}],"hidden":true},"taskMarkers":{"id":"taskMarkers","markers":[{"markerId":"task-start","groupId":"taskMarkers","resource":"markers/taskMarkers/task-start.svg","hidden":false},{"markerId":"task-oct","groupId":"taskMarkers","resource":"markers/taskMarkers/task-oct.svg","hidden":false},{"markerId":"task-quarter","groupId":"taskMarkers","resource":"markers/taskMarkers/task-quarter.svg","hidden":true},{"markerId":"task-3oct","groupId":"taskMarkers","resource":"markers/taskMarkers/task-3oct.svg","hidden":false},{"markerId":"task-half","groupId":"taskMarkers","resource":"markers/taskMarkers/task-half.svg","hidden":false},{"markerId":"task-5oct","groupId":"taskMarkers","resource":"markers/taskMarkers/task-5oct.svg","hidden":false},{"markerId":"task-3quar","groupId":"taskMarkers","resource":"markers/taskMarkers/task-3quar.svg","hidden":true},{"markerId":"task-7oct","groupId":"taskMarkers","resource":"markers/taskMarkers/task-7oct.svg","hidden":false},{"markerId":"task-done","groupId":"taskMarkers","resource":"markers/taskMarkers/task-done.svg","hidden":false},{"markerId":"task-pause","groupId":"taskMarkers","resource":"markers/taskMarkers/task-pause.png","hidden":true}],"hidden":false},"flagMarkers":{"id":"flagMarkers","markers":[{"markerId":"flag-red","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-red.svg","hidden":false},{"markerId":"flag-orange","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-orange.svg","hidden":false},{"markerId":"flag-yellow","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-yellow.svg","hidden":false},{"markerId":"flag-green","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-green.svg","hidden":false},{"markerId":"flag-blue","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-blue.svg","hidden":false},{"markerId":"flag-purple","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-purple.svg","hidden":false},{"markerId":"flag-gray","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-gray.svg","hidden":false},{"markerId":"flag-dark-blue","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-dark-blue.svg","hidden":true},{"markerId":"flag-dark-green","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-dark-green.svg","hidden":true},{"markerId":"flag-dark-gray","groupId":"flagMarkers","resource":"markers/flagMarkers/flag-dark-gray.svg","hidden":true}],"hidden":false},"starMarkers":{"id":"starMarkers","markers":[{"markerId":"star-red","groupId":"starMarkers","resource":"markers/starMarkers/star-red.svg","hidden":false},{"markerId":"star-orange","groupId":"starMarkers","resource":"markers/starMarkers/star-orange.svg","hidden":false},{"markerId":"star-yellow","groupId":"starMarkers","resource":"markers/starMarkers/star-yellow.svg","hidden":false},{"markerId":"star-green","groupId":"starMarkers","resource":"markers/starMarkers/star-green.svg","hidden":false},{"markerId":"star-blue","groupId":"starMarkers","resource":"markers/starMarkers/star-blue.svg","hidden":false},{"markerId":"star-purple","groupId":"starMarkers","resource":"markers/starMarkers/star-purple.svg","hidden":false},{"markerId":"star-gray","groupId":"starMarkers","resource":"markers/starMarkers/star-gray.svg","hidden":false},{"markerId":"star-dark-blue","groupId":"starMarkers","resource":"markers/starMarkers/star-dark-blue.svg","hidden":true},{"markerId":"star-dark-green","groupId":"starMarkers","resource":"markers/starMarkers/star-dark-green.svg","hidden":true},{"markerId":"star-dark-gray","groupId":"starMarkers","resource":"markers/starMarkers/star-dark-gray.svg","hidden":true}],"hidden":false},"peopleMarkers":{"id":"peopleMarkers","markers":[{"markerId":"people-red","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-red.svg","hidden":false},{"markerId":"people-orange","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-orange.svg","hidden":false},{"markerId":"people-yellow","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-yellow.svg","hidden":false},{"markerId":"people-green","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-green.svg","hidden":false},{"markerId":"people-blue","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-blue.svg","hidden":false},{"markerId":"people-purple","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-purple.svg","hidden":false},{"markerId":"people-gray","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-gray.svg","hidden":false},{"markerId":"people-dark-blue","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-dark-blue.svg","hidden":true},{"markerId":"people-dark-green","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-dark-green.svg","hidden":true},{"markerId":"people-dark-gray","groupId":"peopleMarkers","resource":"markers/peopleMarkers/people-dark-gray.svg","hidden":true}],"hidden":false},"arrowMarkers":{"id":"arrowMarkers","markers":[{"markerId":"arrow-left","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-left.svg","hidden":false},{"markerId":"arrow-right","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-right.svg","hidden":false},{"markerId":"arrow-up","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-up.svg","hidden":false},{"markerId":"arrow-down","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-down.svg","hidden":false},{"markerId":"arrow-left-right","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-left-right.svg","hidden":false},{"markerId":"arrow-up-down","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-up-down.svg","hidden":false},{"markerId":"arrow-refresh","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-refresh.svg","hidden":false},{"markerId":"arrow-up-right","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-up-right.svg","hidden":true},{"markerId":"arrow-down-right","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-down-right.svg","hidden":true},{"markerId":"arrow-down-left","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-down-left.svg","hidden":true},{"markerId":"arrow-up-left","groupId":"arrowMarkers","resource":"markers/arrowMarkers/arrow-up-left.svg","hidden":true}],"hidden":true},"academicMarkers":{"id":"academicMarkers","markers":[{"markerId":"c_symbol_quote","groupId":"academicMarkers","resource":"markers/academicMarkers/c_symbol_quote.svg","hidden":false},{"markerId":"c_symbol_apostrophe","groupId":"academicMarkers","resource":"markers/academicMarkers/c_symbol_apostrophe.svg","hidden":false},{"markerId":"symbol-question","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-question.svg","hidden":false},{"markerId":"symbol-attention","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-attention.svg","hidden":false},{"markerId":"symbol-pause","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-pause.svg","hidden":false},{"markerId":"symbol-wrong","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-wrong.svg","hidden":false},{"markerId":"symbol-about","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-about.svg","hidden":false},{"markerId":"symbol-plus","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-plus.svg","hidden":false},{"markerId":"symbol-minus","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-minus.svg","hidden":false},{"markerId":"symbol-divide","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-divide.svg","hidden":false},{"markerId":"symbol-equality","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-equality.svg","hidden":false},{"markerId":"symbol-right","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-right.svg","hidden":false},{"markerId":"symbol-code","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-code.svg","hidden":false},{"markerId":"symbol-not-equality","groupId":"academicMarkers","resource":"markers/academicMarkers/symbol-not-equality.svg","hidden":false}],"hidden":true},"socialMarkers":{"id":"socialMarkers","markers":[{"markerId":"c_symbol_broken_heart","groupId":"socialMarkers","resource":"markers/socialMarkers/c_symbol_broken_heart.svg","hidden":false},{"markerId":"c_symbol_contact","groupId":"socialMarkers","resource":"markers/socialMarkers/c_symbol_contact.svg","hidden":false},{"markerId":"symbol-no-entry","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-no-entry.svg","hidden":false},{"markerId":"symbol-notice","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-notice.svg","hidden":false},{"markerId":"symbol-rss","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-rss.svg","hidden":false},{"markerId":"symbol_forward","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol_forward.svg","hidden":false},{"markerId":"symbol-share","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-share.svg","hidden":false},{"markerId":"symbol-comment","groupId":"socialMarkers","resource":"markers/socialMarkers/symbol-comment.svg","hidden":false}],"hidden":true},"celebrationMarkers":{"id":"celebrationMarkers","markers":[{"markerId":"celebration-ribbon","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-ribbon.svg","hidden":true},{"markerId":"celebration-clap","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-clap.svg","hidden":true},{"markerId":"celebration-100","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-100.svg","hidden":true},{"markerId":"celebration-birthday","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-birthday.svg","hidden":true},{"markerId":"celebration-king","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-king.svg","hidden":true},{"markerId":"celebration-cheers","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-cheers.svg","hidden":true},{"markerId":"celebration-boom","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-boom.svg","hidden":true},{"markerId":"celebration-kiss","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-kiss.svg","hidden":true},{"markerId":"celebration-five","groupId":"celebrationMarkers","resource":"markers/celebrationMarkers/celebration-five.svg","hidden":true}],"hidden":true},"symbolMarkers":{"id":"symbolMarkers","markers":[{"markerId":"c_symbol_heart","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_heart.svg","hidden":false},{"markerId":"c_symbol_like","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_like.svg","hidden":false},{"markerId":"c_symbol_dislike","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_dislike.svg","hidden":false},{"markerId":"symbol-pin","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-pin.svg","hidden":false},{"markerId":"symbol-idea","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-idea.svg","hidden":false},{"markerId":"symbol-lightning","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-lightning.svg","hidden":false},{"markerId":"c_symbol_hourglass","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_hourglass.svg","hidden":false},{"markerId":"c_symbol_telephone","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_telephone.svg","hidden":false},{"markerId":"c_symbol_pen","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_pen.svg","hidden":false},{"markerId":"c_symbol_music","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_music.svg","hidden":false},{"markerId":"symbol-entertainment","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-entertainment.svg","hidden":false},{"markerId":"symbol-100","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-100.svg","hidden":false},{"markerId":"c_symbol_flight","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_flight.svg","hidden":false},{"markerId":"symbol-run","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-run.svg","hidden":false},{"markerId":"symbol-exclam","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-exclam.svg","hidden":false},{"markerId":"symbol-question","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-question.svg","hidden":false},{"markerId":"symbol-plus","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-plus.svg","hidden":true},{"markerId":"symbol-minus","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-minus.svg","hidden":true},{"markerId":"symbol-info","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-info.svg","hidden":true},{"markerId":"symbol-attention","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-attention.svg","hidden":true},{"markerId":"symbol-wrong","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-wrong.svg","hidden":true},{"markerId":"symbol-right","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-right.svg","hidden":true},{"markerId":"symbol-pause","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-pause.svg","hidden":true},{"markerId":"c_simbol-plus","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-plus.svg","hidden":true},{"markerId":"c_simbol-minus","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-minus.svg","hidden":true},{"markerId":"c_simbol-question","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-question.svg","hidden":true},{"markerId":"c_simbol-info","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-info.svg","hidden":true},{"markerId":"c_simbol-wrong","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-wrong.svg","hidden":true},{"markerId":"c_simbol-right","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-right.svg","hidden":true},{"markerId":"c_simbol-pause","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-pause.svg","hidden":true},{"markerId":"c_symbol_contact","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_contact.svg","hidden":true},{"markerId":"c_symbol_drink","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_drink.svg","hidden":true},{"markerId":"c_symbol_line_graph","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_line_graph.svg","hidden":true},{"markerId":"c_symbol_medals","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_medals.svg","hidden":true},{"markerId":"c_symbol_thermometer","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_thermometer.svg","hidden":true},{"markerId":"c_symbol_money","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_money.svg","hidden":true},{"markerId":"c_symbol_bar_chart","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_bar_chart.svg","hidden":true},{"markerId":"c_simbol-exclam","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_simbol-exclam.svg","hidden":true},{"markerId":"c_symbol_pie_chart","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_pie_chart.svg","hidden":true},{"markerId":"c_symbol_shopping_cart","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_shopping_cart.svg","hidden":true},{"markerId":"c_symbol_exercise","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_exercise.svg","hidden":true},{"markerId":"c_symbol_trophy","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_trophy.svg","hidden":true},{"markerId":"symbol-unlock","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-unlock.svg","hidden":true},{"markerId":"c_symbol_lock","groupId":"symbolMarkers","resource":"markers/symbolMarkers/c_symbol_lock.svg","hidden":true},{"markerId":"symbol-diamond","groupId":"symbolMarkers","resource":"markers/symbolMarkers/symbol-diamond.svg","hidden":true}],"hidden":false},"monthMarkers":{"id":"monthMarkers","markers":[{"markerId":"month-jan","groupId":"monthMarkers","resource":"markers/monthMarkers/month-jan.svg","hidden":false},{"markerId":"month-feb","groupId":"monthMarkers","resource":"markers/monthMarkers/month-feb.svg","hidden":false},{"markerId":"month-mar","groupId":"monthMarkers","resource":"markers/monthMarkers/month-mar.svg","hidden":false},{"markerId":"month-apr","groupId":"monthMarkers","resource":"markers/monthMarkers/month-apr.svg","hidden":false},{"markerId":"month-may","groupId":"monthMarkers","resource":"markers/monthMarkers/month-may.svg","hidden":false},{"markerId":"month-jun","groupId":"monthMarkers","resource":"markers/monthMarkers/month-jun.svg","hidden":false},{"markerId":"month-jul","groupId":"monthMarkers","resource":"markers/monthMarkers/month-jul.svg","hidden":false},{"markerId":"month-aug","groupId":"monthMarkers","resource":"markers/monthMarkers/month-aug.svg","hidden":false},{"markerId":"month-sep","groupId":"monthMarkers","resource":"markers/monthMarkers/month-sep.svg","hidden":false},{"markerId":"month-oct","groupId":"monthMarkers","resource":"markers/monthMarkers/month-oct.svg","hidden":false},{"markerId":"month-nov","groupId":"monthMarkers","resource":"markers/monthMarkers/month-nov.svg","hidden":false},{"markerId":"month-dec","groupId":"monthMarkers","resource":"markers/monthMarkers/month-dec.svg","hidden":false}],"hidden":true},"weekMarkers":{"id":"weekMarkers","markers":[{"markerId":"week-sun","groupId":"weekMarkers","resource":"markers/weekMarkers/week-sun.svg","hidden":false},{"markerId":"week-mon","groupId":"weekMarkers","resource":"markers/weekMarkers/week-mon.svg","hidden":false},{"markerId":"week-tue","groupId":"weekMarkers","resource":"markers/weekMarkers/week-tue.svg","hidden":false},{"markerId":"week-wed","groupId":"weekMarkers","resource":"markers/weekMarkers/week-wed.svg","hidden":false},{"markerId":"week-thu","groupId":"weekMarkers","resource":"markers/weekMarkers/week-thu.svg","hidden":false},{"markerId":"week-fri","groupId":"weekMarkers","resource":"markers/weekMarkers/week-fri.svg","hidden":false},{"markerId":"week-sat","groupId":"weekMarkers","resource":"markers/weekMarkers/week-sat.svg","hidden":false}],"hidden":true},"halfStarMarkers":{"id":"halfStarMarkers","markers":[{"markerId":"half-star-green","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-green.png","hidden":true},{"markerId":"half-star-red","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-red.png","hidden":true},{"markerId":"half-star-yellow","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-yellow.png","hidden":true},{"markerId":"half-star-purple","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-purple.png","hidden":true},{"markerId":"half-star-blue","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-blue.png","hidden":true},{"markerId":"half-star-gray","groupId":"halfStarMarkers","resource":"markers/halfStarMarkers/half-star-gray.png","hidden":true}],"hidden":true},"otherMarkers":{"id":"otherMarkers","markers":[{"markerId":"other-calendar","groupId":"otherMarkers","resource":"markers/otherMarkers/other-calendar.png","hidden":true},{"markerId":"other-email","groupId":"otherMarkers","resource":"markers/otherMarkers/other-email.png","hidden":true},{"markerId":"other-phone","groupId":"otherMarkers","resource":"markers/otherMarkers/other-phone.png","hidden":true},{"markerId":"other-phone2","groupId":"otherMarkers","resource":"markers/otherMarkers/other-phone2.png","hidden":true},{"markerId":"other-fax","groupId":"otherMarkers","resource":"markers/otherMarkers/other-fax.png","hidden":true},{"markerId":"other-people","groupId":"otherMarkers","resource":"markers/otherMarkers/other-people.png","hidden":true},{"markerId":"other-people2","groupId":"otherMarkers","resource":"markers/otherMarkers/other-people2.png","hidden":true},{"markerId":"other-clock","groupId":"otherMarkers","resource":"markers/otherMarkers/other-clock.png","hidden":true},{"markerId":"other-coffee-cup","groupId":"otherMarkers","resource":"markers/otherMarkers/other-coffee-cup.png","hidden":true},{"markerId":"other-question","groupId":"otherMarkers","resource":"markers/otherMarkers/other-question.svg","hidden":true},{"markerId":"other-exclam","groupId":"otherMarkers","resource":"markers/otherMarkers/other-exclam.svg","hidden":true},{"markerId":"other-lightbulb","groupId":"otherMarkers","resource":"markers/otherMarkers/other-lightbulb.png","hidden":true},{"markerId":"other-businesscard","groupId":"otherMarkers","resource":"markers/otherMarkers/other-businesscard.png","hidden":true},{"markerId":"other-social","groupId":"otherMarkers","resource":"markers/otherMarkers/other-social.png","hidden":true},{"markerId":"other-chat","groupId":"otherMarkers","resource":"markers/otherMarkers/other-chat.png","hidden":true},{"markerId":"other-note","groupId":"otherMarkers","resource":"markers/otherMarkers/other-note.png","hidden":true},{"markerId":"other-lock","groupId":"otherMarkers","resource":"markers/otherMarkers/other-lock.png","hidden":true},{"markerId":"other-unlock","groupId":"otherMarkers","resource":"markers/otherMarkers/other-unlock.png","hidden":true},{"markerId":"other-yes","groupId":"otherMarkers","resource":"markers/otherMarkers/other-yes.svg","hidden":true},{"markerId":"other-no","groupId":"otherMarkers","resource":"markers/otherMarkers/other-no.svg","hidden":true},{"markerId":"other-bomb","groupId":"otherMarkers","resource":"markers/otherMarkers/other-bomb.png","hidden":true},{"markerId":"symbol-info","groupId":"otherMarkers","resource":"markers/otherMarkers/symbol-info.svg","hidden":true},{"markerId":"c_symbol_line_graph","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_line_graph.svg","hidden":true},{"markerId":"c_symbol_shopping_cart","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_shopping_cart.svg","hidden":true},{"markerId":"c_symbol_medals","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_medals.svg","hidden":true},{"markerId":"c_symbol_trophy","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_trophy.svg","hidden":true},{"markerId":"symbol-image","groupId":"otherMarkers","resource":"markers/otherMarkers/symbol-image.svg","hidden":true},{"markerId":"c_symbol_exercise","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_exercise.svg","hidden":true},{"markerId":"c_simbol-plus","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-plus.svg","hidden":true},{"markerId":"c_simbol-minus","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-minus.svg","hidden":true},{"markerId":"c_simbol-question","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-question.svg","hidden":true},{"markerId":"c_simbol-info","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-info.svg","hidden":true},{"markerId":"c_simbol-wrong","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-wrong.svg","hidden":true},{"markerId":"c_simbol-right","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-right.svg","hidden":true},{"markerId":"c_simbol-pause","groupId":"otherMarkers","resource":"markers/otherMarkers/c_simbol-pause.svg","hidden":true},{"markerId":"c_symbol_thermometer","groupId":"otherMarkers","resource":"markers/otherMarkers/c_symbol_thermometer.svg","hidden":true}],"hidden":true}}')
- },
- 14: function(e, t, n) {
- "use strict";
- var r = n(117)
- , i = n(189)
- , o = Object.prototype.toString;
- function a(e) {
- return "[object Array]" === o.call(e)
- }
- function s(e) {
- return null !== e && "object" == typeof e
- }
- function l(e) {
- return "[object Function]" === o.call(e)
- }
- function u(e, t) {
- if (null != e)
- if ("object" != typeof e && (e = [e]),
- a(e))
- for (var n = 0, r = e.length; n < r; n++)
- t.call(null, e[n], n, e);
- else
- for (var i in e)
- Object.prototype.hasOwnProperty.call(e, i) && t.call(null, e[i], i, e)
- }
- e.exports = {
- isArray: a,
- isArrayBuffer: function(e) {
- return "[object ArrayBuffer]" === o.call(e)
- },
- isBuffer: i,
- isFormData: function(e) {
- return "undefined" != typeof FormData && e instanceof FormData
- },
- isArrayBufferView: function(e) {
- return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && e.buffer instanceof ArrayBuffer
- },
- isString: function(e) {
- return "string" == typeof e
- },
- isNumber: function(e) {
- return "number" == typeof e
- },
- isObject: s,
- isUndefined: function(e) {
- return void 0 === e
- },
- isDate: function(e) {
- return "[object Date]" === o.call(e)
- },
- isFile: function(e) {
- return "[object File]" === o.call(e)
- },
- isBlob: function(e) {
- return "[object Blob]" === o.call(e)
- },
- isFunction: l,
- isStream: function(e) {
- return s(e) && l(e.pipe)
- },
- isURLSearchParams: function(e) {
- return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams
- },
- isStandardBrowserEnv: function() {
- return ("undefined" == typeof navigator || "ReactNative" !== navigator.product) && ("undefined" != typeof window && "undefined" != typeof document)
- },
- forEach: u,
- merge: function e() {
- var t = {};
- function n(n, r) {
- "object" == typeof t[r] && "object" == typeof n ? t[r] = e(t[r], n) : t[r] = n
- }
- for (var r = 0, i = arguments.length; r < i; r++)
- u(arguments[r], n);
- return t
- },
- extend: function(e, t, n) {
- return u(t, (function(t, i) {
- e[i] = n && "function" == typeof t ? r(t, n) : t
- }
- )),
- e
- },
- trim: function(e) {
- return e.replace(/^\s*/, "").replace(/\s*$/, "")
- }
- }
- },
- 143: function(e, t, n) {
- "use strict";
- var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
- void 0 === r && (r = n),
- Object.defineProperty(e, r, {
- enumerable: !0,
- get: function() {
- return t[n]
- }
- })
- }
- : function(e, t, n, r) {
- void 0 === r && (r = n),
- e[r] = t[n]
- }
- )
- , i = this && this.__exportStar || function(e, t) {
- for (var n in e)
- "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- i(n(5), t),
- i(n(75), t),
- i(n(275), t)
- },
- 144: function(e, t, n) {
- e.exports = n(188)
- },
- 15: function(e, t, n) {
- "use strict";
- var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
- void 0 === r && (r = n),
- Object.defineProperty(e, r, {
- enumerable: !0,
- get: function() {
- return t[n]
- }
- })
- }
- : function(e, t, n, r) {
- void 0 === r && (r = n),
- e[r] = t[n]
- }
- )
- , i = this && this.__exportStar || function(e, t) {
- for (var n in e)
- "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.lightAppearance = t.defaultAppearance = t.dimensionOf = t.appearanceOf = t.allDimensions = t.allAppearances = void 0;
- const o = n(5)
- , a = n(32)
- , s = n(245);
- Object.defineProperty(t, "defaultAppearance", {
- enumerable: !0,
- get: function() {
- return s.defaultAppearance
- }
- });
- const l = n(246);
- Object.defineProperty(t, "lightAppearance", {
- enumerable: !0,
- get: function() {
- return l.lightAppearance
- }
- });
- const u = n(247);
- i(n(248), t),
- t.allAppearances = {
- default: s.defaultAppearance,
- light: l.lightAppearance
- },
- t.allDimensions = {
- "16:9": a.defaultDimension,
- "9:16": u.portraitDimension,
- "3:4": u.portraitDimension,
- "4:3": a.defaultDimension
- },
- t.appearanceOf = function(e) {
- return t.allAppearances[e]
- }
- ,
- t.dimensionOf = function(e) {
- let n = null
- , r = null;
- return Object.keys(o.slideSizes).forEach(t=>{
- const {width: i, height: a} = o.slideSizes[t]
- , s = Math.abs(i / a - e.width / e.height);
- (null === n || n > s) && (n = s,
- r = t)
- }
- ),
- r ? t.allDimensions[r] : a.defaultDimension
- }
- },
- 156: function(e, t, n) {
- "use strict";
- function r(e, t) {
- let n = null;
- return i(e, (e,r)=>{
- if (t(e))
- return n = e,
- r()
- }
- ),
- n
- }
- function i(e, t) {
- let n = !1;
- for (const r of e) {
- if (t(r, ()=>{
- n = !0
- }
- ),
- n)
- return;
- if ("group" === r.contentType && (i(r.children, (e,r)=>{
- t(e, ()=>{
- n = !0,
- r()
- }
- )
- }
- ),
- n))
- return
- }
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.mutateBoxes = t.forEachBox = t.assertBox = t.getBoxById = t.filterBoxes = t.findBox = t.toBoxRoles = t.contentOfSummary = t.braceShapeOfSummary = t.bottomBraceOfSummary = t.topBraceOfSummary = t.subtopicEllipsisOfSummary = t.headerLineOfTopic = t.treeBranchOfTopic = t.arrowOfTopic = t.subtopicListGroupOfTopic = t.separatorLineOfTopic = t.bulletDotOfTopic = t.bottomCurlyBraceOfTopic = t.topCurlyBraceOfTopic = t.curlyBraceOfTopic = t.contentGroupOfTopic = t.imageOfTopic = t.calloutOfTopic = t.noteOfTopic = t.labelListOfTopic = t.labelTextOfTopic = t.labelBorderOfTopic = t.labelOfTopic = t.markerListOfTopic = t.markerOfTopic = t.shadowTitleTextOfTopic = t.titleTextOfTopic = t.titleOfTopic = void 0,
- t.titleOfTopic = function(e) {
- return "topic:title:" + e
- }
- ,
- t.titleTextOfTopic = function(e) {
- return "topic:title-text:" + e
- }
- ,
- t.shadowTitleTextOfTopic = function(e) {
- return "topic:shadow-title-text:" + e
- }
- ,
- t.markerOfTopic = function(e, t) {
- return `topic:marker:${e}:${t}`
- }
- ,
- t.markerListOfTopic = function(e) {
- return "topic:marker-list:" + e
- }
- ,
- t.labelOfTopic = function(e, t) {
- return `topic:label:${e}:${t}`
- }
- ,
- t.labelBorderOfTopic = function(e, t) {
- return `topic:label-border:${e}:${t}`
- }
- ,
- t.labelTextOfTopic = function(e, t) {
- return `topic:label-text:${e}:${t}`
- }
- ,
- t.labelListOfTopic = function(e) {
- return "topic:label-list:" + e
- }
- ,
- t.noteOfTopic = function(e) {
- return "topic:note:" + e
- }
- ,
- t.calloutOfTopic = function(e) {
- return "topic:callout:" + e
- }
- ,
- t.imageOfTopic = function(e) {
- return "topic:image:" + e
- }
- ,
- t.contentGroupOfTopic = function(e) {
- return "topic:content-group:" + e
- }
- ,
- t.curlyBraceOfTopic = function(e) {
- return "topic:curly-brace:" + e
- }
- ,
- t.topCurlyBraceOfTopic = function(e) {
- return "topic:top-curly-brace:" + e
- }
- ,
- t.bottomCurlyBraceOfTopic = function(e) {
- return "topic:bottom-curly-brace:" + e
- }
- ,
- t.bulletDotOfTopic = function(e) {
- return "topic:bullet-dot:" + e
- }
- ,
- t.separatorLineOfTopic = function(e) {
- return "topic:separator-line:" + e
- }
- ,
- t.subtopicListGroupOfTopic = function(e) {
- return "topic:subtopic-list-group:" + e
- }
- ,
- t.arrowOfTopic = function(e) {
- return "topic:arrow:" + e
- }
- ,
- t.treeBranchOfTopic = function(e) {
- return "topic:tree-branch:" + e
- }
- ,
- t.headerLineOfTopic = function(e) {
- return "topic:header-underline:" + e
- }
- ,
- t.subtopicEllipsisOfSummary = function(e) {
- return "topic:summary-subtopic-ellipsis:" + e
- }
- ,
- t.topBraceOfSummary = function(e) {
- return "topic:summary-top-brace:" + e
- }
- ,
- t.bottomBraceOfSummary = function(e) {
- return "topic:summary-bottom-brace:" + e
- }
- ,
- t.braceShapeOfSummary = function(e) {
- return "topic:summary-brace-shape:" + e
- }
- ,
- t.contentOfSummary = function(e) {
- return "topic:summary-content:" + e
- }
- ,
- t.toBoxRoles = function(e) {
- return Object.keys(e).filter(t=>e[t])
- }
- ,
- t.findBox = r,
- t.filterBoxes = function(e, t) {
- const n = [];
- return i(e, e=>{
- t(e) && n.push(e)
- }
- ),
- n
- }
- ,
- t.getBoxById = function(e, t, n) {
- const i = r(e, e=>e.id === t);
- return i && n && i.contentType !== n ? null : i
- }
- ,
- t.assertBox = function(e) {
- if (!e)
- throw new Error("Box is null or undefined");
- return e
- }
- ,
- t.forEachBox = i,
- t.mutateBoxes = function e(t, n) {
- return t.map(t=>("group" === t.contentType && (t = Object.assign(Object.assign({}, t), {
- children: e(t.children, n)
- })),
- n(t)))
- }
- },
- 157: function(e, t, n) {
- "use strict";
- var r = this && this.__rest || function(e, t) {
- var n = {};
- for (var r in e)
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
- if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
- var i = 0;
- for (r = Object.getOwnPropertySymbols(e); i < r.length; i++)
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]])
- }
- return n
- }
- ;
- function i(e, t) {
- var n, i, o;
- if (e = null != e ? e : {},
- !t)
- return e;
- const {boxes: a} = t
- , s = r(t, ["boxes"]);
- for (const t of null != a ? a : []) {
- e = (null === (n = e.boxes) || void 0 === n ? void 0 : n.find(e=>e.id === t.id)) ? Object.assign(Object.assign({}, e), {
- boxes: (null !== (i = e.boxes) && void 0 !== i ? i : []).map(e=>e.id === t.id ? Object.assign(Object.assign({}, e), t) : e)
- }) : Object.assign(Object.assign({}, e), {
- boxes: [...null !== (o = e.boxes) && void 0 !== o ? o : [], Object.assign({}, t)]
- })
- }
- return Object.keys(s).length > 0 && (e = Object.assign(Object.assign({}, e), s)),
- e
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.isSlideContentFeatureCoveredBy = t.addSlideContentFeatures = t.setBoxStateForRevertedPresenterPerspectiveMode = t.setBoxStateForPresenterPerspectiveMode = t.mergeSlideState = t.setBoxEnteringState = t.addSlideAdditionalEnteringStates = t.setSlideEnteringState = t.addSlideEnteringAnimations = t.addSlideLeavingAnimations = t.addSlideAliases = t.slideSizes = t.slideSize_9_16 = t.slideSize_3_4 = t.slideSize_16_9 = t.slideSize_4_3 = void 0,
- t.slideSize_4_3 = {
- width: 1200,
- height: 900
- },
- t.slideSize_16_9 = {
- width: 1600,
- height: 900
- },
- t.slideSize_3_4 = {
- width: 900,
- height: 1200
- },
- t.slideSize_9_16 = {
- width: 900,
- height: 1600
- },
- t.slideSizes = {
- "4:3": t.slideSize_4_3,
- "16:9": t.slideSize_16_9,
- "3:4": t.slideSize_3_4,
- "9:16": t.slideSize_9_16
- },
- t.addSlideAliases = function(e, ...t) {
- var n;
- e.aliases = [...null !== (n = e.aliases) && void 0 !== n ? n : [], ...t]
- }
- ,
- t.addSlideLeavingAnimations = function(e, t) {
- var n;
- e.leavingAnimations = [...null !== (n = e.leavingAnimations) && void 0 !== n ? n : [], ...t]
- }
- ,
- t.addSlideEnteringAnimations = function(e, t) {
- var n;
- e.enteringAnimations = [...null !== (n = e.enteringAnimations) && void 0 !== n ? n : [], ...t]
- }
- ,
- t.setSlideEnteringState = function(e, t) {
- e.enteringStates = t
- }
- ,
- t.addSlideAdditionalEnteringStates = function(e, t) {
- var n;
- e.additionalEnteringStates = [...null !== (n = e.additionalEnteringStates) && void 0 !== n ? n : [], ...t]
- }
- ,
- t.setBoxEnteringState = function(e, t) {
- e.enteringStates = i(e.enteringStates, {
- boxes: [t]
- })
- }
- ,
- t.mergeSlideState = i,
- t.setBoxStateForPresenterPerspectiveMode = function(e, t) {
- e.presenterPerspectiveStates = i(e.presenterPerspectiveStates, {
- boxes: [t]
- })
- }
- ,
- t.setBoxStateForRevertedPresenterPerspectiveMode = function(e, t) {
- e.revertedPresenterPerspectiveStates = i(e.revertedPresenterPerspectiveStates, {
- boxes: [t]
- })
- }
- ,
- t.addSlideContentFeatures = function(e, ...t) {
- var n;
- e.contentFeatures = [...null !== (n = e.contentFeatures) && void 0 !== n ? n : [], ...t]
- }
- ,
- t.isSlideContentFeatureCoveredBy = function(e, t) {
- return e.kind === t.kind && e.topicId === t.topicId && ("partial" === e.integrity || "full" === t.integrity)
- }
- },
- 158: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeUserListSlideLayout = t.computeDefaultSummarySlideLayout = t.computeDefaultListSlideLayout = t.computeDefaultTopicSlideLayout = t.computeSlideLayout = t.getEligibleSlideLayouts = void 0;
- const r = n(159);
- function i(e) {
- return e.image && 0 !== e.image.size.width && 0 !== e.image.size.height ? "image-topic-slide" : "topic-slide"
- }
- function o(e, t, n, r) {
- if (1 === r.length)
- return "only-child";
- const i = e.width < e.height;
- return "centralTopic" === n || "mainTopic" === n && r.length > 1 && t.title.length <= 24 && r.every(e=>e.title.length <= 24) ? i ? "tree-chart" : "brace-list" : "lyric-list"
- }
- function a() {
- return "summary"
- }
- function s(e, t) {
- var n;
- return null !== (n = e.listSlideLayout) && void 0 !== n ? n : null
- }
- t.getEligibleSlideLayouts = function(e, t) {
- return Object.values(r.layoutEngines).filter(n=>n.isEligibleFor(e, t)).map(e=>e.id)
- }
- ,
- t.computeSlideLayout = function(e, t, n, a={}) {
- const {topic: l, topicLevel: u, subtopics: c} = n;
- switch (e) {
- case "topic":
- return i(l);
- case "list":
- if (!a.ignoresUserValue) {
- const t = s(l, c.length);
- if (t && t in r.layoutEngines && r.layoutEngines[t].isEligibleFor(e, n))
- return t
- }
- return o(t, l, u, c);
- case "summary":
- return "summary"
- }
- }
- ,
- t.computeDefaultTopicSlideLayout = i,
- t.computeDefaultListSlideLayout = o,
- t.computeDefaultSummarySlideLayout = a,
- t.computeUserListSlideLayout = s
- },
- 159: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.layoutEngines = void 0;
- const r = n(244)
- , i = n(249)
- , o = n(250)
- , a = n(251)
- , s = n(252)
- , l = n(253)
- , u = n(254)
- , c = n(255);
- t.layoutEngines = {
- "topic-slide": {
- id: "topic-slide",
- isEligibleFor: r.isTopicSlideLayoutEligibleFor,
- layoutTemplateSlide: r.layoutTopicSlide,
- generatePresentationalSlide: r.generateTopicSlide
- },
- "image-topic-slide": {
- id: "image-topic-slide",
- isEligibleFor: i.isImageTopicSlideLayoutEligibleFor,
- layoutTemplateSlide: i.layoutImageTopicSlide,
- generatePresentationalSlide: i.generateImageTopicSlide
- },
- "only-child": {
- id: "only-child",
- isEligibleFor: s.isOnlyChildLayoutEligibleFor,
- layoutTemplateSlide: s.layoutOnlyChildListSlide,
- generatePresentationalSlide: s.generateOnlyChildListSlide
- },
- "brace-list": {
- id: "brace-list",
- isEligibleFor: o.isBraceListLayoutEligibleFor,
- layoutTemplateSlide: o.layoutBraceListSlide,
- generatePresentationalSlide: o.generateBraceListSlide
- },
- "bullet-list": {
- id: "bullet-list",
- isEligibleFor: a.isBulletListLayoutEligibleFor,
- layoutTemplateSlide: a.layoutBulletListSlide,
- generatePresentationalSlide: a.generateBulletListSlide
- },
- "lyric-list": {
- id: "lyric-list",
- isEligibleFor: u.isLyricListLayoutEligibleFor,
- layoutTemplateSlide: u.layoutLyricListSlide,
- generatePresentationalSlide: u.generateLyricListSlide
- },
- "tree-chart": {
- id: "tree-chart",
- isEligibleFor: c.isTreeChartLayoutEligibleFor,
- layoutTemplateSlide: c.layoutTreeChartSlide,
- generatePresentationalSlide: c.generateTreeChartSlide
- },
- summary: {
- id: "summary",
- isEligibleFor: l.isSummaryLayoutEligibleFor,
- layoutTemplateSlide: l.layoutSummarySlide,
- generatePresentationalSlide: l.generateSummarySlide
- }
- }
- },
- 160: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeCalloutTextBox = void 0;
- const r = n(5)
- , i = n(12)
- , o = n(13)
- , a = n(15)
- , s = n(42)
- , l = n(61);
- t.computeCalloutTextBox = function(e, t, n, u, c, d) {
- var f;
- const {maxWidth: h, fontSize: p} = d
- , g = null !== (f = d.roles) && void 0 !== f ? f : []
- , m = {
- id: r.calloutOfTopic(u),
- roles: ["callout", ...g],
- bounds: o.zeroRect(),
- absBounds: o.zeroRect(),
- contentType: "text",
- text: c,
- fontSize: i.toCSSLength(p),
- lineHeight: l.computeTextLineHeight(p),
- overflowWrap: "break-word"
- };
- "textAlignment"in d && (m.textAlignment = d.textAlignment),
- a.initializeBoxStyle(m, e, t, {
- layout: n
- });
- const v = s.measureText(m, {
- maxWidth: h
- });
- return m.bounds.width = v.width,
- m.bounds.height = v.height,
- m
- }
- },
- 161: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeLabelGroup = t.computeLabelListGroupBox = t.labelMaxLineCount = void 0;
- const r = n(5)
- , i = n(12)
- , o = n(13)
- , a = n(15)
- , s = n(42)
- , l = n(34)
- , u = n(43)
- , c = n(162)
- , d = n(61);
- t.labelMaxLineCount = 1,
- t.computeLabelListGroupBox = function(e, t, n, i, s, l) {
- var u;
- const {maxWidth: d, labelSpacing: f, lineSpacing: h, alignment: p} = l
- , g = null !== (u = l.listRoles) && void 0 !== u ? u : []
- , m = new Array(s.length - 1).fill(f)
- , v = s.map(e=>Object.assign(Object.assign({}, e), {
- bounds: Object.assign({}, e.bounds)
- }))
- , y = c.layoutFlex(v, {
- spacings: m,
- direction: "row",
- wrap: "wrap",
- maxWidth: d,
- justifyContent: "leading" === p ? "start" : "trailing" === p ? "end" : "center",
- lineSpacing: h
- })
- , b = y.width
- , _ = y.height
- , w = {
- id: r.labelListOfTopic(i),
- roles: [...g],
- bounds: {
- x: 0,
- y: 0,
- width: b,
- height: _
- },
- absBounds: o.zeroRect(),
- contentType: "group",
- children: [...v],
- contentHeight: y.height,
- overflow: "visible"
- };
- return a.initializeBoxStyle(w, e, t, {
- layout: n
- }),
- w
- }
- ,
- t.computeLabelGroup = function(e, n, c, f, h, p, g) {
- var m, v, y, b, _;
- const {maxWidth: w, minWidth: S, fontSize: x, leftPadding: k, rightPadding: I} = g
- , C = null !== (m = g.groupRoles) && void 0 !== m ? m : []
- , M = null !== (v = g.textRoles) && void 0 !== v ? v : []
- , T = null !== (y = g.borderRoles) && void 0 !== y ? y : []
- , A = w - k - I;
- function E(t) {
- const l = {
- id: r.labelTextOfTopic(f, p),
- roles: ["label", ...M],
- bounds: o.zeroRect(),
- absBounds: o.zeroRect(),
- contentType: "text",
- text: t,
- fontSize: i.toCSSLength(x),
- lineHeight: d.computeTextLineHeight(x),
- overflowWrap: "normal"
- };
- a.initializeBoxStyle(l, e, n, {
- layout: c
- });
- const u = s.measureText(l, {
- maxWidth: A
- });
- return l.bounds.width = u.width,
- l.bounds.height = u.height,
- {
- textBox: l,
- textMeasurement: u
- }
- }
- const O = l.rangedIntegers(h.length, 1)
- , B = l.mapValues(O, e=>u.getTruncatedText(h, e))
- , L = l.mapValues(B, E)
- , P = null !== (b = l.findClosestMatch(L, e=>function({textMeasurement: e}) {
- return e.width <= A
- }(e) && function({textMeasurement: e}) {
- return e.lineCount <= t.labelMaxLineCount
- }(e))) && void 0 !== b ? b : E(u.getTruncatedText(h, 1))
- , {textBox: R, textMeasurement: z} = P
- , j = Math.max(S, Math.min(w, R.bounds.width + k + I))
- , F = z.lineHeight
- , D = (j - k - I - R.bounds.width) / 2
- , N = (F - R.bounds.height) / 2;
- R.bounds.x = k + D,
- R.bounds.y = N;
- const U = {
- id: r.labelBorderOfTopic(f, p),
- roles: ["labelBorder", ...T],
- bounds: {
- x: 0,
- y: 0,
- width: j,
- height: F
- },
- absBounds: o.zeroRect(),
- contentType: "shape",
- shapePath: ""
- };
- a.initializeBoxStyle(U, e, n, {
- layout: c
- }),
- U.shapePath = function(e, t) {
- const n = (e.height - t) / 2
- , r = t / 2
- , i = 2 * n + t
- , o = Math.max(e.width - i, 0)
- , a = Math.max(e.height - i, 0);
- return `\n M${n + r},${r}\n h${o}\n a${n},${n} 0 0 1 ${n},${n}\n v${a}\n a${n},${n} 0 0 1 -${n},${n}\n h-${o}\n a${n},${n} 0 0 1 -${n},-${n}\n v-${a}\n a${n},${n} 0 0 1 ${n},-${n}\n z`
- }({
- x: 0,
- y: 0,
- width: j,
- height: F
- }, null !== (_ = U.lineWidth) && void 0 !== _ ? _ : 1);
- const W = {
- id: r.labelOfTopic(f, p),
- roles: [...C],
- bounds: {
- x: 0,
- y: 0,
- width: j,
- height: F
- },
- absBounds: o.zeroRect(),
- contentType: "group",
- children: [U, R],
- contentHeight: F,
- overflow: "visible"
- };
- return a.initializeBoxStyle(W, e, n, {
- layout: c
- }),
- {
- groupBox: W,
- textBox: R,
- textMeasurement: z,
- borderShapeBox: U
- }
- }
- },
- 162: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.layoutFlex = void 0;
- const r = n(13);
- t.layoutFlex = function(e, t={}) {
- var n, i, o, a, s, l, u, c, d;
- const f = null !== (n = t.direction) && void 0 !== n ? n : "row"
- , h = Object.assign({}, null !== (i = t.paddings) && void 0 !== i ? i : r.zeroInsets());
- "column" === f && (e.forEach(e=>{
- const {width: t, height: n} = e.bounds;
- e.bounds.width = n,
- e.bounds.height = t
- }
- ),
- [h.left,h.top] = [h.top, h.left],
- [h.right,h.bottom] = [h.bottom, h.right]);
- const p = "column" === f ? null !== (o = t.maxHeight) && void 0 !== o ? o : 0 : null !== (a = t.maxWidth) && void 0 !== a ? a : 0
- , g = null !== (s = t.spacings) && void 0 !== s ? s : []
- , m = null !== (l = t.wrap) && void 0 !== l ? l : "nowrap"
- , v = null !== (u = t.justifyContent) && void 0 !== u ? u : "start"
- , y = null !== (c = t.alignItems) && void 0 !== c ? c : "start"
- , b = null !== (d = t.lineSpacing) && void 0 !== d ? d : 0;
- let _ = h.left
- , w = h.top
- , S = 0
- , x = 0;
- const k = [];
- let I = {
- width: 0,
- height: 0,
- boxes: []
- };
- function C() {
- S = Math.max(S, I.width),
- k.length > 0 && (x += b),
- x += I.height,
- _ = h.left,
- w += I.height + b,
- k.push(I),
- I = {
- width: 0,
- height: 0,
- boxes: []
- }
- }
- e.forEach((e,t)=>{
- var n, r;
- I.boxes.length > 0 && (I.width += null !== (n = g[t - 1]) && void 0 !== n ? n : 0);
- const {width: i, height: o} = e.bounds;
- "wrap" === m && p > 0 && _ + i + h.right > p && C(),
- e.bounds.x = _,
- e.bounds.y = w;
- const a = null !== (r = g[t]) && void 0 !== r ? r : 0;
- _ += i + a,
- I.width += i,
- I.height = Math.max(I.height, o),
- I.boxes.push(e)
- }
- ),
- I.boxes.length > 0 && C();
- for (const e of k) {
- const t = "center" === v && S > 0 ? (S - e.width) / 2 : "end" === v && S > 0 ? S - e.width : 0;
- e.boxes.forEach(n=>{
- n.bounds.x += t;
- const r = "center" === y ? (e.height - n.bounds.height) / 2 : "end" === y ? e.height - n.bounds.height : 0;
- n.bounds.y += r
- }
- )
- }
- return "column" === f && e.forEach(e=>{
- const t = e.bounds
- , {x: n, y: r, width: i, height: o} = t;
- t.x = r,
- t.y = n,
- t.width = o,
- t.height = i
- }
- ),
- "column" === f ? {
- width: x + h.top + h.bottom,
- height: S + h.left + h.right
- } : {
- width: S + h.left + h.right,
- height: x + h.top + h.bottom
- }
- }
- },
- 163: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeNoteTextBox = void 0;
- const r = n(5)
- , i = n(12)
- , o = n(13)
- , a = n(15)
- , s = n(42)
- , l = n(61);
- t.computeNoteTextBox = function(e, t, n, u, c, d) {
- var f;
- const {maxWidth: h, fontSize: p} = d
- , g = null !== (f = d.roles) && void 0 !== f ? f : []
- , m = {
- id: r.noteOfTopic(u),
- roles: ["note", ...g],
- bounds: o.zeroRect(),
- absBounds: o.zeroRect(),
- contentType: "text",
- text: c,
- fontSize: i.toCSSLength(p),
- lineHeight: l.computeTextLineHeight(p),
- overflowWrap: "break-word"
- };
- "textAlignment"in d && (m.textAlignment = d.textAlignment),
- a.initializeBoxStyle(m, e, t, {
- layout: n
- });
- const v = s.measureText(m, {
- maxWidth: h
- });
- return m.bounds.width = v.width,
- m.bounds.height = v.height,
- m
- }
- },
- 164: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.searchForBestTopicSlideContent = t.computeTopicSlideContentGroup = void 0;
- const r = n(5)
- , i = n(13)
- , o = n(15)
- , a = n(34)
- , s = n(162);
- t.computeTopicSlideContentGroup = function(e, t, n, a, l, u) {
- const {maxWidth: c, maxHeight: d, paddings: f, contentAlignment: h, spacingBetweenTitleAndLabelList: p, spacingBetweenTitleAndNote: g, spacingBetweenLabelListAndNote: m, spacingBetweenCalloutAndTitle: v, scrollFaderSize: y, imagePlacement: b, spacingAroundImage: _} = u
- , w = []
- , S = []
- , x = l.imageBox ? Object.assign({}, l.imageBox) : null;
- x && "aboveTitle" === b && (w.push(x),
- S.push(null != _ ? _ : 0),
- x.bounds = Object.assign({}, x.bounds));
- const k = l.calloutTextBox ? Object.assign({}, l.calloutTextBox) : null;
- k && (w.push(k),
- S.push(null != v ? v : 0),
- k.bounds = Object.assign({}, k.bounds),
- k.textAlignment = h);
- const I = Object.assign(Object.assign({}, l.titleGroup), {
- groupBox: Object.assign({}, l.titleGroup.groupBox)
- });
- I.groupBox.bounds = Object.assign({}, I.groupBox.bounds),
- w.push(I.groupBox);
- const C = l.labelListGroupBox ? Object.assign({}, l.labelListGroupBox) : null;
- C && (S.push(null != p ? p : 0),
- w.push(C),
- C.bounds = Object.assign({}, C.bounds));
- const M = l.noteTextBox ? Object.assign({}, l.noteTextBox) : null;
- M && (S.push(C ? null != m ? m : 0 : null != g ? g : 0),
- w.push(M),
- M.bounds = Object.assign({}, M.bounds),
- M.textAlignment = h),
- x && "belowTitle" === b && (w.push(x),
- S.push(null != _ ? _ : 0),
- x.bounds = Object.assign({}, x.bounds));
- const T = s.layoutFlex(w, {
- spacings: S,
- maxWidth: c,
- maxHeight: d,
- paddings: f,
- direction: "column",
- alignItems: "leading" === h ? "start" : "trailing" === h ? "end" : "center"
- })
- , A = Math.min(c, T.width)
- , E = Math.min(d, T.height)
- , O = {
- id: r.contentGroupOfTopic(a),
- roles: [],
- bounds: {
- x: 0,
- y: 0,
- width: A,
- height: E
- },
- absBounds: i.zeroRect(),
- contentType: "group",
- children: w,
- contentHeight: T.height,
- overflow: T.height > d ? "scroll" : "visible",
- scrollFaderSize: y,
- scrollFaderType: "twoStops"
- };
- return o.initializeBoxStyle(O, e, t, {
- layout: n
- }),
- {
- groupBox: O,
- titleGroup: I,
- labelListGroupBox: C,
- noteTextBox: M,
- calloutTextBox: k,
- imageBox: x
- }
- }
- ,
- t.searchForBestTopicSlideContent = function(e, t, n, r) {
- var i;
- const {maxHeight: o, singleLineTitleMaxFontSize: s, singleLineTitleMinFontSize: l, doubleLineTitleMaxFontSize: u, doubleLineTitleMinFontSize: c, multilineTitleMaxFontSize: d, multilineTitleMinFontSize: f} = r
- , h = null !== (i = r.compactMaxHeight) && void 0 !== i ? i : null;
- let p = a.rangedIntegers(s, l)
- , g = a.mapValues(p, t=>e(t))
- , m = a.findClosestMatch(g, e=>t(e) <= 1);
- if (m)
- return m;
- if (p = a.rangedIntegers(u, c),
- g = a.mapValues(p, t=>e(t)),
- m = a.findClosestMatch(g, e=>t(e) <= 2),
- m)
- return m;
- if (null !== h) {
- if (p = a.rangedIntegers(d, f),
- g = a.mapValues(p, t=>e(t)),
- m = a.findClosestMatch(g, e=>n(e) <= h),
- m)
- return m;
- const t = e(f);
- if (n(t) <= o)
- return t
- } else if (p = a.rangedIntegers(d, f),
- g = a.mapValues(p, t=>e(t)),
- m = a.findClosestMatch(g, e=>n(e) <= o),
- m)
- return m;
- return e(d)
- }
- },
- 165: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeTopicLevel = void 0,
- t.computeTopicLevel = function(e, t) {
- var n;
- if ((t.getFloatingTopics ? t.getFloatingTopics() : []).includes(e))
- return "floatingTopic";
- const r = t.getParentTopicId(e);
- if (!r)
- return "centralTopic";
- const {summaries: i} = null !== (n = t.getTopicAttributes(r)) && void 0 !== n ? n : {
- id: r,
- title: ""
- };
- return (null != i ? i : []).some(t=>t.topicId === e) ? "summaryTopic" : (r ? t.getParentTopicId(r) : null) ? "subtopic" : "mainTopic"
- }
- },
- 166: function(e, t, n) {
- "use strict";
- function r() {
- let e = 0;
- return ()=>{
- const t = e;
- return e += 1,
- t
- }
- }
- function i(e, t) {
- return t.filter(({endIndex: t})=>t === e).sort((e,t)=>t.startIndex - e.startIndex)
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeSummariesEndingAt = t.makeIndexGenerator = t.describeSlideSequenceForTopic = void 0,
- t.describeSlideSequenceForTopic = function(e) {
- var t;
- const n = []
- , {topic: o, topicLevel: a, subtopics: s, previousSiblingTopicId: l, nextSiblingTopicId: u} = e
- , {id: c} = o;
- "floatingTopic" === a ? l && n.push({
- alias: {
- kind: "endOfTopic",
- topicId: l
- },
- nextSlide: {
- kind: "outroOfTopic",
- topicId: l
- }
- }) : "summaryTopic" === a ? (n.push({
- alias: {
- kind: "introOfSummary",
- topicId: c
- }
- }),
- n.push({
- type: "summary",
- alias: {
- kind: "startOfSummary",
- topicId: c
- }
- })) : "centralTopic" !== a && n.push({
- alias: {
- kind: "introOfTopic",
- topicId: c
- }
- }),
- n.push({
- type: "topic",
- alias: {
- kind: "startOfTopic",
- topicId: c
- },
- previousSlide: {
- kind: "introOfTopic",
- topicId: c
- }
- });
- const d = r()
- , f = null !== (t = o.summaries) && void 0 !== t ? t : [];
- if (s.length > 0) {
- n.push({
- type: "list",
- alias: {
- kind: "listOfTopic",
- topicId: c,
- index: d()
- },
- layoutOptions: {
- numberOfVisitedTopics: 0
- },
- autoForwarding: !0,
- autoBackwarding: !0
- });
- for (let e = 0; e < s.length; e++) {
- const t = e;
- n.push({
- type: "list",
- alias: {
- kind: "listOfTopic",
- topicId: c,
- index: d()
- },
- layoutOptions: {
- numberOfVisitedTopics: t
- }
- });
- const r = s[e];
- n.push({
- alias: {
- kind: "startOfTopic",
- topicId: r.id
- },
- previousSlide: {
- kind: "introOfTopic",
- topicId: r.id
- }
- }),
- n.push({
- alias: {
- kind: "endOfTopic",
- topicId: r.id
- },
- nextSlide: {
- kind: "outroOfTopic",
- topicId: r.id
- }
- });
- for (const r of i(e, f)) {
- const e = r.topicId
- , i = d();
- n.push({
- type: "list",
- alias: {
- kind: "listOfTopic",
- topicId: c,
- index: i
- },
- layoutOptions: {
- numberOfVisitedTopics: t
- },
- autoForwarding: !0
- }),
- n.push({
- alias: {
- kind: "startOfSummary",
- topicId: e
- },
- previousSlide: {
- kind: "introOfSummary",
- topicId: e
- }
- }),
- n.push({
- alias: {
- kind: "endOfSummary",
- topicId: e
- },
- nextSlide: {
- kind: "outroOfSummary",
- topicId: e
- }
- })
- }
- const o = e < s.length - 1;
- n.push({
- type: "list",
- alias: {
- kind: "listOfTopic",
- topicId: c,
- index: d()
- },
- layoutOptions: {
- numberOfVisitedTopics: t
- },
- autoForwarding: o,
- autoBackwarding: o
- })
- }
- }
- return "centralTopic" === a || "floatingTopic" === a ? u ? n.push({
- alias: {
- kind: "startOfTopic",
- topicId: u
- },
- previousSlide: {
- kind: "endOfTopic",
- topicId: c
- },
- previousSlide2: {
- kind: "introOfTopic",
- topicId: u
- }
- }) : n.push({
- previousSlide: {
- kind: "endOfTopic",
- topicId: c
- }
- }) : "summaryTopic" === a ? (n.push({
- type: "summary",
- alias: {
- kind: "outroOfTopic",
- topicId: c
- },
- previousSlide: {
- kind: "endOfTopic",
- topicId: c
- },
- autoForwarding: !0
- }),
- n.push({
- alias: {
- kind: "outroOfSummary",
- topicId: c
- },
- previousSlide: {
- kind: "endOfSummary",
- topicId: c
- }
- })) : n.push({
- alias: {
- kind: "outroOfTopic",
- topicId: c
- },
- previousSlide: {
- kind: "endOfTopic",
- topicId: c
- }
- }),
- n
- }
- ,
- t.makeIndexGenerator = r,
- t.computeSummariesEndingAt = i
- },
- 167: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.inSlideScrollOffsetRatio = t.computeMultistepBoxChange = t.computeMultistepBoxChangeInSlide = t.computeMultistepChange = void 0;
- const r = n(5);
- function i(e, t, n) {
- var i, a;
- for (const s of null !== (i = e.multistepBoxes) && void 0 !== i ? i : []) {
- const i = r.findBox(e.boxes, e=>e.id === s);
- if (i) {
- const e = o(i, null === (a = t.boxes) || void 0 === a ? void 0 : a.find(e=>e.id === s), n);
- if (e)
- return {
- boxes: [e]
- }
- }
- }
- return null
- }
- function o(e, n, r) {
- var i, o;
- if ("group" === e.contentType && e.contentHeight > e.bounds.height) {
- const a = Math.round(null !== (o = null !== (i = null == n ? void 0 : n.scrollOffset) && void 0 !== i ? i : e.scrollOffset) && void 0 !== o ? o : 0)
- , s = e.bounds.height * t.inSlideScrollOffsetRatio
- , l = Math.round(r.scroll(a, s))
- , u = 0
- , c = Math.round(Math.max(u, e.contentHeight - e.bounds.height))
- , d = Math.max(u, Math.min(c, l));
- return d === a ? null : {
- id: e.id,
- scrollOffset: d
- }
- }
- return null
- }
- t.computeMultistepChange = function(e, t, n) {
- switch (e.kind) {
- case "forward":
- return i(t, n, {
- scroll: (e,t)=>e + t
- });
- case "backward":
- return i(t, n, {
- scroll: (e,t)=>e - t
- });
- case "present":
- case "fastForward":
- case "fastBackward":
- case "changeAppearance":
- case "changeSlideSize":
- return null
- }
- }
- ,
- t.computeMultistepBoxChangeInSlide = i,
- t.computeMultistepBoxChange = o,
- t.inSlideScrollOffsetRatio = .8
- },
- 168: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.TextView = void 0;
- const r = n(12)
- , i = n(51);
- class o extends i.BoxView {
- createViewElement() {
- const e = document.createElement("div");
- return e.style.display = "block",
- e.style.position = "absolute",
- e.style.userSelect = "none",
- e.style.overflow = "visible",
- e.classList.add("pancake-view-text-view"),
- e
- }
- get textEl() {
- var e;
- return null !== (e = this._textEl) && void 0 !== e ? e : this._textEl = this._createTextElement()
- }
- _createTextElement() {
- const e = document.createElement("div");
- return e.style.userSelect = "none",
- e.style.overflow = "visible",
- e.style.overflowWrap = "break-word",
- e.style.display = "block",
- e.style.position = "absolute",
- e.style.left = "0px",
- e.style.top = "0px",
- this.el.appendChild(e),
- e
- }
- update() {
- var e, t, n, i, o, a;
- super.update();
- const s = r.toCSSLength(this.box.bounds.width)
- , l = r.toCSSLength(this.box.bounds.height);
- this.textEl.style.width = s,
- this.textEl.style.height = l,
- this.textEl.style.font = r.toCSSFont(this.box),
- this.textEl.style.color = null !== (e = this.box.textColor) && void 0 !== e ? e : "",
- this.textEl.style.textAlign = null !== (t = r.toCSSTextAlign(this.box.textAlignment)) && void 0 !== t ? t : "",
- this.textEl.style.overflowWrap = null !== (n = this.box.overflowWrap) && void 0 !== n ? n : "",
- this.textEl.style.textIndent = null !== (i = this.box.textIndent) && void 0 !== i ? i : "",
- this.textEl.style.textShadow = null !== (o = this.box.textShadow) && void 0 !== o ? o : "",
- this.textEl.style.letterSpacing = null !== (a = this.box.letterSpacing) && void 0 !== a ? a : "";
- const u = this.textEl;
- u && (r.emptyElement(u),
- r.fillText(u, this.box.text))
- }
- }
- t.TextView = o
- },
- 169: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.ShapeView = void 0;
- const r = n(12)
- , i = n(51)
- , o = n(50);
- class a extends i.BoxView {
- createViewElement() {
- const e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
- return e.style.position = "absolute",
- e.style.pointerEvents = "none",
- e
- }
- get shape() {
- if (!this._shape) {
- if (this._shape = document.createElementNS("http://www.w3.org/2000/svg", "path"),
- this.box.markerStart) {
- const e = document.createElementNS("http://www.w3.org/2000/svg", "defs")
- , t = document.createElementNS("http://www.w3.org/2000/svg", "marker")
- , n = `marker-start-${(new Date).getTime()}-${Math.floor(1e3 * Math.random())}`;
- t.id = n,
- t.setAttribute("markerUnits", "userSpaceOnUse"),
- t.setAttribute("markerWidth", "" + this.box.markerStart.size.width),
- t.setAttribute("markerHeight", "" + this.box.markerStart.size.height),
- t.setAttribute("refX", "" + (this.box.markerStart.ref ? this.box.markerStart.ref.x : 0)),
- t.setAttribute("refY", "" + (this.box.markerStart.ref ? this.box.markerStart.ref.y : 0));
- const r = document.createElementNS("http://www.w3.org/2000/svg", "path");
- r.setAttribute("d", this.box.markerStart.path),
- t.appendChild(r),
- e.appendChild(t),
- this.el.appendChild(e),
- this.shape.style.markerStart = `url(#${n})`,
- this._markerStartEl = t
- }
- this.el.appendChild(this._shape)
- }
- return this._shape
- }
- update() {
- var e, t, n, i, a, s, l, u, c, d, f, h, p;
- super.update(),
- this.el.setAttribute("viewBox", `0 0 ${this.box.bounds.width} ${this.box.bounds.height}`),
- this.shape.setAttribute("d", null !== (e = this.box.shapePath) && void 0 !== e ? e : "");
- const g = this.state;
- this.shape.style.fill = null !== (n = null !== (t = g.fillColor) && void 0 !== t ? t : this.box.fillColor) && void 0 !== n ? n : "transparent",
- this.shape.style.stroke = null !== (a = null !== (i = g.strokeColor) && void 0 !== i ? i : this.box.strokeColor) && void 0 !== a ? a : "transparent",
- this.shape.style.strokeWidth = r.toCSSLength(null !== (l = null !== (s = g.lineWidth) && void 0 !== s ? s : this.box.lineWidth) && void 0 !== l ? l : 0),
- this.shape.style.strokeLinecap = null !== (c = null !== (u = g.lineCap) && void 0 !== u ? u : this.box.lineCap) && void 0 !== c ? c : "",
- this.shape.style.strokeLinejoin = null !== (f = null !== (d = g.lineJoin) && void 0 !== d ? d : this.box.lineJoin) && void 0 !== f ? f : "",
- this._markerStartEl && (this._markerStartEl.style.fill = null !== (p = null !== (h = g.strokeColor) && void 0 !== h ? h : this.box.strokeColor) && void 0 !== p ? p : "transparent"),
- this.updateStyle(g, "strokeOffset", e=>o.ViewAnimator.perform(this.shape, {
- strokeOffset: null != e ? e : 0
- }))
- }
- }
- t.ShapeView = a
- },
- 170: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.ImageView = void 0;
- const r = n(12)
- , i = n(51);
- class o extends i.BoxView {
- createViewElement() {
- const e = document.createElement("img");
- return e.style.display = "block",
- e.style.position = "absolute",
- e.style.userSelect = "none",
- e
- }
- update() {
- var e;
- super.update();
- const t = r.toCSSLength(this.box.bounds.width)
- , n = r.toCSSLength(this.box.bounds.height);
- this.el.style.width = t,
- this.el.style.height = n,
- this.el.style.objectFit = null !== (e = this.box.objectFit) && void 0 !== e ? e : "",
- this.el.src = this.box.imageSource
- }
- }
- t.ImageView = o
- },
- 171: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.SVGTemplateView = void 0;
- const r = n(51)
- , i = n(12);
- class o extends r.BoxView {
- createViewElement() {
- const e = document.createElement("div");
- return e.style.display = "block",
- e.style.position = "absolute",
- e.style.userSelect = "none",
- e
- }
- get svgEl() {
- var e;
- return null !== (e = this._svgEl) && void 0 !== e ? e : this._svgEl = this._createSVGElement()
- }
- _createSVGElement() {
- var e;
- const t = this._createSvgDom(this.box.svg);
- return t.setAttribute("fill", null !== (e = this.box.fillColor) && void 0 !== e ? e : ""),
- this.el.appendChild(t),
- t
- }
- update() {
- super.update();
- const e = i.toCSSLength(this.box.bounds.width)
- , t = i.toCSSLength(this.box.bounds.height);
- this.svgEl.style.width = e,
- this.svgEl.style.height = t
- }
- _createSvgDom(e) {
- return (new DOMParser).parseFromString(e, "image/svg+xml").documentElement
- }
- }
- t.SVGTemplateView = o
- },
- 172: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- , i = this && this.__importDefault || function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.SlideView = void 0;
- const o = n(76)
- , a = n(51)
- , s = n(112)
- , l = n(50)
- , u = n(111)
- , c = n(12)
- , d = n(110)
- , f = i(n(70))
- , h = n(13);
- class p extends o.View {
- constructor() {
- super(...arguments),
- this.slide = null,
- this.slideState = {},
- this._boxViews = [],
- this._renderedState = {}
- }
- createViewElement() {
- const e = document.createElement("div");
- return e.style.display = "block",
- e.style.position = "relative",
- e.style.overflow = "hidden",
- e
- }
- get positionMode() {
- return "absolute" === this.el.style.position ? "manual" : "auto"
- }
- set positionMode(e) {
- this.el.style.position = "manual" === e ? "absolute" : "relative"
- }
- get backgroundEl() {
- var e;
- return null !== (e = this._backgroundEl) && void 0 !== e ? e : this._backgroundEl = this.createBackgroundElement()
- }
- createBackgroundElement() {
- const e = this.createLayerElement();
- return this.el.insertBefore(e, this.el.firstChild),
- e
- }
- get contentEl() {
- var e;
- return null !== (e = this._contentEl) && void 0 !== e ? e : this._contentEl = this.createContentElement()
- }
- createContentElement() {
- const e = this.createLayerElement();
- return this.el.appendChild(e),
- e
- }
- createLayerElement() {
- const e = document.createElement("div");
- return e.style.display = "block",
- e.style.position = "absolute",
- e.style.top = "0px",
- e.style.left = "0px",
- e.style.backgroundColor = "none",
- e
- }
- get boxViews() {
- return [...this._boxViews]
- }
- update() {
- var e, t, n, r, i, o;
- super.update();
- const a = null !== (t = null === (e = this.slide) || void 0 === e ? void 0 : e.width) && void 0 !== t ? t : 1
- , u = null !== (r = null === (n = this.slide) || void 0 === n ? void 0 : n.height) && void 0 !== r ? r : 1
- , d = c.toCSSLength(a)
- , f = c.toCSSLength(u);
- this.el.style.width = d,
- this.el.style.height = f,
- this.backgroundEl.style.width = d,
- this.backgroundEl.style.height = f,
- this.contentEl.style.width = d,
- this.contentEl.style.height = f;
- const h = this.slideState;
- this._updateStyle(h, "opacity", e=>l.ViewAnimator.perform(this.el, {
- opacity: null != e ? e : 1
- })),
- this._updateStyle(h, "backgroundOpacity", e=>l.ViewAnimator.perform(this.backgroundEl, {
- opacity: null != e ? e : 1
- })),
- this._updateStyle(h, "backgroundColor", e=>l.ViewAnimator.perform(this.backgroundEl, {
- backgroundColor: null != e ? e : "none"
- }));
- const p = [...this._boxViews]
- , g = null !== (o = null === (i = this.slide) || void 0 === i ? void 0 : i.boxes) && void 0 !== o ? o : [];
- for (let e = 0; e < g.length; e++) {
- const t = g[e];
- let n = p[e];
- if (n)
- if (n.box.id === t.id)
- n.box = t,
- n.update();
- else {
- const r = p.slice(e + 1).find(e=>e.box.id === t.id);
- if (r)
- this.contentEl.insertBefore(r.el, n.el),
- r.box = t,
- r.update(),
- p.splice(e, 0, r);
- else {
- const r = s.createBoxView(this, t);
- this.contentEl.insertBefore(r.el, n.el),
- r.update(),
- p.splice(e, 0, r),
- this.connected && r.connect()
- }
- }
- else
- n = s.createBoxView(this, t),
- this.contentEl.appendChild(n.el),
- n.update(),
- p.push(n)
- }
- for (; p.length > g.length; ) {
- const e = p.pop();
- this.connected && e.disconnect(),
- this.contentEl.removeChild(e.el)
- }
- this._boxViews = p,
- this._updateHitRegionEls(h)
- }
- _updateStyle(e, t, n) {
- var r, i;
- const o = null !== (r = null == e ? void 0 : e[t]) && void 0 !== r ? r : null === (i = this.slide) || void 0 === i ? void 0 : i[t];
- o !== this._renderedState[t] && (n(o),
- this._renderedState[t] = o)
- }
- stackWith(e) {
- this.el.insertBefore(e.contentEl, this.contentEl.nextSibling),
- this.el.insertBefore(e.backgroundEl, this.backgroundEl.nextSibling)
- }
- unstackWith(e) {
- e.el.appendChild(e.contentEl),
- e.el.insertBefore(e.backgroundEl, e.el.firstChild)
- }
- getBoxViewById(e) {
- return this.findBoxView(t=>t.box.id === e)
- }
- findBoxView(e) {
- let t = null;
- return this.forEachBoxView((n,r)=>{
- if (e(n))
- return t = n,
- r()
- }
- ),
- t
- }
- forEachBoxView(e) {
- return a.forEachBoxViewIn(this._boxViews, e)
- }
- connect() {
- super.connect();
- for (const e of this._boxViews)
- e.connect()
- }
- disconnect() {
- for (const e of this._boxViews)
- e.disconnect();
- super.disconnect()
- }
- clone() {
- const e = new p;
- e.slide = this.slide,
- e.update();
- const t = {};
- return this.forEachBoxView((function(e) {
- e instanceof u.GroupView && (t[e.box.id] = e.scrollOffset)
- }
- )),
- e.forEachBoxView((function(e) {
- if (e instanceof u.GroupView) {
- const n = t[e.box.id];
- void 0 !== n && (e.scrollOffset = n)
- }
- }
- )),
- e
- }
- get hitRegionEls() {
- var e;
- return null !== (e = this._hitRegionEls) && void 0 !== e ? e : []
- }
- _createHitRegionEl() {
- const e = document.createElement("div");
- return e.style.position = "absolute",
- e.style.borderStyle = "solid",
- e.style.transition = "opacity 0.15s ease-in-out",
- e.style.userSelect = "none",
- e.style.pointerEvents = "none",
- e.style.opacity = "0",
- e.style.setProperty("backdrop-filter", "blur(20px)"),
- this.el.insertBefore(e, this.contentEl),
- e
- }
- _updateHitRegionEl(e, t, n) {
- var r, i, o, a, s, l, u, d, f, h, p, g, m;
- const v = e;
- v.style.opacity = "" + t.opacity,
- v.style.background = null !== (o = null !== (r = null == n ? void 0 : n.hitRegionFillColor) && void 0 !== r ? r : null === (i = this.slide) || void 0 === i ? void 0 : i.hitRegionFillColor) && void 0 !== o ? o : "rgba(0,0,0,0.5)",
- v.style.borderRadius = c.toCSSLength(null !== (a = null == n ? void 0 : n.hitRegionCornerRadius) && void 0 !== a ? a : null === (s = this.slide) || void 0 === s ? void 0 : s.hitRegionCornerRadius),
- v.style.borderWidth = c.toCSSLength(null !== (l = null == n ? void 0 : n.hitRegionLineWidth) && void 0 !== l ? l : null === (u = this.slide) || void 0 === u ? void 0 : u.hitRegionLineWidth),
- v.style.borderColor = null !== (h = null !== (d = null == n ? void 0 : n.hitRegionStrokeColor) && void 0 !== d ? d : null === (f = this.slide) || void 0 === f ? void 0 : f.hitRegionStrokeColor) && void 0 !== h ? h : "rgba(0,0,0,0.6)",
- v.style.boxShadow = null !== (m = null !== (p = null == n ? void 0 : n.hitRegionBoxShadow) && void 0 !== p ? p : null === (g = this.slide) || void 0 === g ? void 0 : g.hitRegionBoxShadow) && void 0 !== m ? m : "",
- v.style.transform = `translate(${c.toCSSLength(t.x)}, ${c.toCSSLength(t.y)})`,
- v.style.width = c.toCSSLength(t.width),
- v.style.height = c.toCSSLength(t.height)
- }
- enterHitRegionActiveEffect(e, t=200) {
- var n, i;
- return r(this, void 0, void 0, (function*() {
- const r = this.hitRegionEls.find(t=>h.intersectDOMRect(t.getBoundingClientRect(), e.el.getBoundingClientRect()));
- r && (yield Promise.all([f.default({
- targets: r,
- background: null !== (i = null === (n = this.slide) || void 0 === n ? void 0 : n.hitRegionActiveFillColor) && void 0 !== i ? i : "rgba(196, 196, 196, 0.3)",
- easing: "easeOutQuad",
- duration: t
- }).finished, f.default({
- targets: [r, e.el],
- scale: .97,
- easing: "easeOutQuad",
- duration: t
- }).finished]))
- }
- ))
- }
- cancelHitRegionActiveEffect(e, t=100) {
- var n, i;
- return r(this, void 0, void 0, (function*() {
- const r = this.hitRegionEls.find(t=>h.intersectDOMRect(t.getBoundingClientRect(), e.el.getBoundingClientRect()));
- r && (yield Promise.all([f.default({
- targets: r,
- background: null !== (i = null === (n = this.slide) || void 0 === n ? void 0 : n.hitRegionFillColor) && void 0 !== i ? i : "rgba(196, 196, 196, 0.3)",
- easing: "easeOutQuad",
- duration: t
- }).finished, f.default({
- targets: [r, e.el],
- scale: 1,
- easing: "easeOutQuad",
- duration: t
- }).finished]))
- }
- ))
- }
- _updateHitRegionEls(e) {
- var t;
- const n = null === (t = d.findPresentationContext(this, "presentationState")) || void 0 === t ? void 0 : t.presentationState
- , r = null == n ? void 0 : n.hitRegions;
- r ? 1 === r.length && 1 === this.hitRegionEls.length ? this._updateHitRegionEl(this.hitRegionEls[0], r[0], e) : (this.hitRegionEls.forEach(e=>this.el.removeChild(e)),
- this._hitRegionEls = [],
- r.forEach(t=>{
- var n;
- const r = this._createHitRegionEl();
- this._updateHitRegionEl(r, t, e),
- null === (n = this._hitRegionEls) || void 0 === n || n.push(r)
- }
- )) : (this.hitRegionEls.forEach(e=>this.el.removeChild(e)),
- this._hitRegionEls = [])
- }
- }
- t.SlideView = p
- },
- 173: function(e, t, n) {
- (function(e, r) {
- var i;
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
- (function() {
- var o = "Expected a function"
- , a = "__lodash_placeholder__"
- , s = [["ary", 128], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", 32], ["partialRight", 64], ["rearg", 256]]
- , l = "[object Arguments]"
- , u = "[object Array]"
- , c = "[object Boolean]"
- , d = "[object Date]"
- , f = "[object Error]"
- , h = "[object Function]"
- , p = "[object GeneratorFunction]"
- , g = "[object Map]"
- , m = "[object Number]"
- , v = "[object Object]"
- , y = "[object RegExp]"
- , b = "[object Set]"
- , _ = "[object String]"
- , w = "[object Symbol]"
- , S = "[object WeakMap]"
- , x = "[object ArrayBuffer]"
- , k = "[object DataView]"
- , I = "[object Float32Array]"
- , C = "[object Float64Array]"
- , M = "[object Int8Array]"
- , T = "[object Int16Array]"
- , A = "[object Int32Array]"
- , E = "[object Uint8Array]"
- , O = "[object Uint16Array]"
- , B = "[object Uint32Array]"
- , L = /\b__p \+= '';/g
- , P = /\b(__p \+=) '' \+/g
- , R = /(__e\(.*?\)|\b__t\)) \+\n'';/g
- , z = /&(?:amp|lt|gt|quot|#39);/g
- , j = /[&<>"']/g
- , F = RegExp(z.source)
- , D = RegExp(j.source)
- , N = /<%-([\s\S]+?)%>/g
- , U = /<%([\s\S]+?)%>/g
- , W = /<%=([\s\S]+?)%>/g
- , H = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/
- , V = /^\w*$/
- , $ = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g
- , G = /[\\^$.*+?()[\]{}|]/g
- , Z = RegExp(G.source)
- , q = /^\s+|\s+$/g
- , Y = /^\s+/
- , X = /\s+$/
- , J = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/
- , Q = /\{\n\/\* \[wrapped with (.+)\] \*/
- , K = /,? & /
- , ee = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g
- , te = /\\(\\)?/g
- , ne = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g
- , re = /\w*$/
- , ie = /^[-+]0x[0-9a-f]+$/i
- , oe = /^0b[01]+$/i
- , ae = /^\[object .+?Constructor\]$/
- , se = /^0o[0-7]+$/i
- , le = /^(?:0|[1-9]\d*)$/
- , ue = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g
- , ce = /($^)/
- , de = /['\n\r\u2028\u2029\\]/g
- , fe = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff"
- , he = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000"
- , pe = "[\\ud800-\\udfff]"
- , ge = "[" + he + "]"
- , me = "[" + fe + "]"
- , ve = "\\d+"
- , ye = "[\\u2700-\\u27bf]"
- , be = "[a-z\\xdf-\\xf6\\xf8-\\xff]"
- , _e = "[^\\ud800-\\udfff" + he + ve + "\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]"
- , we = "\\ud83c[\\udffb-\\udfff]"
- , Se = "[^\\ud800-\\udfff]"
- , xe = "(?:\\ud83c[\\udde6-\\uddff]){2}"
- , ke = "[\\ud800-\\udbff][\\udc00-\\udfff]"
- , Ie = "[A-Z\\xc0-\\xd6\\xd8-\\xde]"
- , Ce = "(?:" + be + "|" + _e + ")"
- , Me = "(?:" + Ie + "|" + _e + ")"
- , Te = "(?:" + me + "|" + we + ")" + "?"
- , Ae = "[\\ufe0e\\ufe0f]?" + Te + ("(?:\\u200d(?:" + [Se, xe, ke].join("|") + ")[\\ufe0e\\ufe0f]?" + Te + ")*")
- , Ee = "(?:" + [ye, xe, ke].join("|") + ")" + Ae
- , Oe = "(?:" + [Se + me + "?", me, xe, ke, pe].join("|") + ")"
- , Be = RegExp("['’]", "g")
- , Le = RegExp(me, "g")
- , Pe = RegExp(we + "(?=" + we + ")|" + Oe + Ae, "g")
- , Re = RegExp([Ie + "?" + be + "+(?:['’](?:d|ll|m|re|s|t|ve))?(?=" + [ge, Ie, "$"].join("|") + ")", Me + "+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=" + [ge, Ie + Ce, "$"].join("|") + ")", Ie + "?" + Ce + "+(?:['’](?:d|ll|m|re|s|t|ve))?", Ie + "+(?:['’](?:D|LL|M|RE|S|T|VE))?", "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ve, Ee].join("|"), "g")
- , ze = RegExp("[\\u200d\\ud800-\\udfff" + fe + "\\ufe0e\\ufe0f]")
- , je = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/
- , Fe = ["Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout"]
- , De = -1
- , Ne = {};
- Ne[I] = Ne[C] = Ne[M] = Ne[T] = Ne[A] = Ne[E] = Ne["[object Uint8ClampedArray]"] = Ne[O] = Ne[B] = !0,
- Ne[l] = Ne[u] = Ne[x] = Ne[c] = Ne[k] = Ne[d] = Ne[f] = Ne[h] = Ne[g] = Ne[m] = Ne[v] = Ne[y] = Ne[b] = Ne[_] = Ne[S] = !1;
- var Ue = {};
- Ue[l] = Ue[u] = Ue[x] = Ue[k] = Ue[c] = Ue[d] = Ue[I] = Ue[C] = Ue[M] = Ue[T] = Ue[A] = Ue[g] = Ue[m] = Ue[v] = Ue[y] = Ue[b] = Ue[_] = Ue[w] = Ue[E] = Ue["[object Uint8ClampedArray]"] = Ue[O] = Ue[B] = !0,
- Ue[f] = Ue[h] = Ue[S] = !1;
- var We = {
- "\\": "\\",
- "'": "'",
- "\n": "n",
- "\r": "r",
- "\u2028": "u2028",
- "\u2029": "u2029"
- }
- , He = parseFloat
- , Ve = parseInt
- , $e = "object" == typeof e && e && e.Object === Object && e
- , Ge = "object" == typeof self && self && self.Object === Object && self
- , Ze = $e || Ge || Function("return this")()
- , qe = t && !t.nodeType && t
- , Ye = qe && "object" == typeof r && r && !r.nodeType && r
- , Xe = Ye && Ye.exports === qe
- , Je = Xe && $e.process
- , Qe = function() {
- try {
- var e = Ye && Ye.require && Ye.require("util").types;
- return e || Je && Je.binding && Je.binding("util")
- } catch (e) {}
- }()
- , Ke = Qe && Qe.isArrayBuffer
- , et = Qe && Qe.isDate
- , tt = Qe && Qe.isMap
- , nt = Qe && Qe.isRegExp
- , rt = Qe && Qe.isSet
- , it = Qe && Qe.isTypedArray;
- function ot(e, t, n) {
- switch (n.length) {
- case 0:
- return e.call(t);
- case 1:
- return e.call(t, n[0]);
- case 2:
- return e.call(t, n[0], n[1]);
- case 3:
- return e.call(t, n[0], n[1], n[2])
- }
- return e.apply(t, n)
- }
- function at(e, t, n, r) {
- for (var i = -1, o = null == e ? 0 : e.length; ++i < o; ) {
- var a = e[i];
- t(r, a, n(a), e)
- }
- return r
- }
- function st(e, t) {
- for (var n = -1, r = null == e ? 0 : e.length; ++n < r && !1 !== t(e[n], n, e); )
- ;
- return e
- }
- function lt(e, t) {
- for (var n = null == e ? 0 : e.length; n-- && !1 !== t(e[n], n, e); )
- ;
- return e
- }
- function ut(e, t) {
- for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
- if (!t(e[n], n, e))
- return !1;
- return !0
- }
- function ct(e, t) {
- for (var n = -1, r = null == e ? 0 : e.length, i = 0, o = []; ++n < r; ) {
- var a = e[n];
- t(a, n, e) && (o[i++] = a)
- }
- return o
- }
- function dt(e, t) {
- return !!(null == e ? 0 : e.length) && wt(e, t, 0) > -1
- }
- function ft(e, t, n) {
- for (var r = -1, i = null == e ? 0 : e.length; ++r < i; )
- if (n(t, e[r]))
- return !0;
- return !1
- }
- function ht(e, t) {
- for (var n = -1, r = null == e ? 0 : e.length, i = Array(r); ++n < r; )
- i[n] = t(e[n], n, e);
- return i
- }
- function pt(e, t) {
- for (var n = -1, r = t.length, i = e.length; ++n < r; )
- e[i + n] = t[n];
- return e
- }
- function gt(e, t, n, r) {
- var i = -1
- , o = null == e ? 0 : e.length;
- for (r && o && (n = e[++i]); ++i < o; )
- n = t(n, e[i], i, e);
- return n
- }
- function mt(e, t, n, r) {
- var i = null == e ? 0 : e.length;
- for (r && i && (n = e[--i]); i--; )
- n = t(n, e[i], i, e);
- return n
- }
- function vt(e, t) {
- for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
- if (t(e[n], n, e))
- return !0;
- return !1
- }
- var yt = It("length");
- function bt(e, t, n) {
- var r;
- return n(e, (function(e, n, i) {
- if (t(e, n, i))
- return r = n,
- !1
- }
- )),
- r
- }
- function _t(e, t, n, r) {
- for (var i = e.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; )
- if (t(e[o], o, e))
- return o;
- return -1
- }
- function wt(e, t, n) {
- return t == t ? function(e, t, n) {
- var r = n - 1
- , i = e.length;
- for (; ++r < i; )
- if (e[r] === t)
- return r;
- return -1
- }(e, t, n) : _t(e, xt, n)
- }
- function St(e, t, n, r) {
- for (var i = n - 1, o = e.length; ++i < o; )
- if (r(e[i], t))
- return i;
- return -1
- }
- function xt(e) {
- return e != e
- }
- function kt(e, t) {
- var n = null == e ? 0 : e.length;
- return n ? Tt(e, t) / n : NaN
- }
- function It(e) {
- return function(t) {
- return null == t ? void 0 : t[e]
- }
- }
- function Ct(e) {
- return function(t) {
- return null == e ? void 0 : e[t]
- }
- }
- function Mt(e, t, n, r, i) {
- return i(e, (function(e, i, o) {
- n = r ? (r = !1,
- e) : t(n, e, i, o)
- }
- )),
- n
- }
- function Tt(e, t) {
- for (var n, r = -1, i = e.length; ++r < i; ) {
- var o = t(e[r]);
- void 0 !== o && (n = void 0 === n ? o : n + o)
- }
- return n
- }
- function At(e, t) {
- for (var n = -1, r = Array(e); ++n < e; )
- r[n] = t(n);
- return r
- }
- function Et(e) {
- return function(t) {
- return e(t)
- }
- }
- function Ot(e, t) {
- return ht(t, (function(t) {
- return e[t]
- }
- ))
- }
- function Bt(e, t) {
- return e.has(t)
- }
- function Lt(e, t) {
- for (var n = -1, r = e.length; ++n < r && wt(t, e[n], 0) > -1; )
- ;
- return n
- }
- function Pt(e, t) {
- for (var n = e.length; n-- && wt(t, e[n], 0) > -1; )
- ;
- return n
- }
- function Rt(e, t) {
- for (var n = e.length, r = 0; n--; )
- e[n] === t && ++r;
- return r
- }
- var zt = Ct({
- "À": "A",
- "Á": "A",
- "Â": "A",
- "Ã": "A",
- "Ä": "A",
- "Å": "A",
- "à": "a",
- "á": "a",
- "â": "a",
- "ã": "a",
- "ä": "a",
- "å": "a",
- "Ç": "C",
- "ç": "c",
- "Ð": "D",
- "ð": "d",
- "È": "E",
- "É": "E",
- "Ê": "E",
- "Ë": "E",
- "è": "e",
- "é": "e",
- "ê": "e",
- "ë": "e",
- "Ì": "I",
- "Í": "I",
- "Î": "I",
- "Ï": "I",
- "ì": "i",
- "í": "i",
- "î": "i",
- "ï": "i",
- "Ñ": "N",
- "ñ": "n",
- "Ò": "O",
- "Ó": "O",
- "Ô": "O",
- "Õ": "O",
- "Ö": "O",
- "Ø": "O",
- "ò": "o",
- "ó": "o",
- "ô": "o",
- "õ": "o",
- "ö": "o",
- "ø": "o",
- "Ù": "U",
- "Ú": "U",
- "Û": "U",
- "Ü": "U",
- "ù": "u",
- "ú": "u",
- "û": "u",
- "ü": "u",
- "Ý": "Y",
- "ý": "y",
- "ÿ": "y",
- "Æ": "Ae",
- "æ": "ae",
- "Þ": "Th",
- "þ": "th",
- "ß": "ss",
- "Ā": "A",
- "Ă": "A",
- "Ą": "A",
- "ā": "a",
- "ă": "a",
- "ą": "a",
- "Ć": "C",
- "Ĉ": "C",
- "Ċ": "C",
- "Č": "C",
- "ć": "c",
- "ĉ": "c",
- "ċ": "c",
- "č": "c",
- "Ď": "D",
- "Đ": "D",
- "ď": "d",
- "đ": "d",
- "Ē": "E",
- "Ĕ": "E",
- "Ė": "E",
- "Ę": "E",
- "Ě": "E",
- "ē": "e",
- "ĕ": "e",
- "ė": "e",
- "ę": "e",
- "ě": "e",
- "Ĝ": "G",
- "Ğ": "G",
- "Ġ": "G",
- "Ģ": "G",
- "ĝ": "g",
- "ğ": "g",
- "ġ": "g",
- "ģ": "g",
- "Ĥ": "H",
- "Ħ": "H",
- "ĥ": "h",
- "ħ": "h",
- "Ĩ": "I",
- "Ī": "I",
- "Ĭ": "I",
- "Į": "I",
- "İ": "I",
- "ĩ": "i",
- "ī": "i",
- "ĭ": "i",
- "į": "i",
- "ı": "i",
- "Ĵ": "J",
- "ĵ": "j",
- "Ķ": "K",
- "ķ": "k",
- "ĸ": "k",
- "Ĺ": "L",
- "Ļ": "L",
- "Ľ": "L",
- "Ŀ": "L",
- "Ł": "L",
- "ĺ": "l",
- "ļ": "l",
- "ľ": "l",
- "ŀ": "l",
- "ł": "l",
- "Ń": "N",
- "Ņ": "N",
- "Ň": "N",
- "Ŋ": "N",
- "ń": "n",
- "ņ": "n",
- "ň": "n",
- "ŋ": "n",
- "Ō": "O",
- "Ŏ": "O",
- "Ő": "O",
- "ō": "o",
- "ŏ": "o",
- "ő": "o",
- "Ŕ": "R",
- "Ŗ": "R",
- "Ř": "R",
- "ŕ": "r",
- "ŗ": "r",
- "ř": "r",
- "Ś": "S",
- "Ŝ": "S",
- "Ş": "S",
- "Š": "S",
- "ś": "s",
- "ŝ": "s",
- "ş": "s",
- "š": "s",
- "Ţ": "T",
- "Ť": "T",
- "Ŧ": "T",
- "ţ": "t",
- "ť": "t",
- "ŧ": "t",
- "Ũ": "U",
- "Ū": "U",
- "Ŭ": "U",
- "Ů": "U",
- "Ű": "U",
- "Ų": "U",
- "ũ": "u",
- "ū": "u",
- "ŭ": "u",
- "ů": "u",
- "ű": "u",
- "ų": "u",
- "Ŵ": "W",
- "ŵ": "w",
- "Ŷ": "Y",
- "ŷ": "y",
- "Ÿ": "Y",
- "Ź": "Z",
- "Ż": "Z",
- "Ž": "Z",
- "ź": "z",
- "ż": "z",
- "ž": "z",
- "IJ": "IJ",
- "ij": "ij",
- "Œ": "Oe",
- "œ": "oe",
- "ʼn": "'n",
- "ſ": "s"
- })
- , jt = Ct({
- "&": "&",
- "<": "<",
- ">": ">",
- '"': """,
- "'": "'"
- });
- function Ft(e) {
- return "\\" + We[e]
- }
- function Dt(e) {
- return ze.test(e)
- }
- function Nt(e) {
- var t = -1
- , n = Array(e.size);
- return e.forEach((function(e, r) {
- n[++t] = [r, e]
- }
- )),
- n
- }
- function Ut(e, t) {
- return function(n) {
- return e(t(n))
- }
- }
- function Wt(e, t) {
- for (var n = -1, r = e.length, i = 0, o = []; ++n < r; ) {
- var s = e[n];
- s !== t && s !== a || (e[n] = a,
- o[i++] = n)
- }
- return o
- }
- function Ht(e) {
- var t = -1
- , n = Array(e.size);
- return e.forEach((function(e) {
- n[++t] = e
- }
- )),
- n
- }
- function Vt(e) {
- var t = -1
- , n = Array(e.size);
- return e.forEach((function(e) {
- n[++t] = [e, e]
- }
- )),
- n
- }
- function $t(e) {
- return Dt(e) ? function(e) {
- var t = Pe.lastIndex = 0;
- for (; Pe.test(e); )
- ++t;
- return t
- }(e) : yt(e)
- }
- function Gt(e) {
- return Dt(e) ? function(e) {
- return e.match(Pe) || []
- }(e) : function(e) {
- return e.split("")
- }(e)
- }
- var Zt = Ct({
- "&": "&",
- "<": "<",
- ">": ">",
- """: '"',
- "'": "'"
- });
- var qt = function e(t) {
- var n, r = (t = null == t ? Ze : qt.defaults(Ze.Object(), t, qt.pick(Ze, Fe))).Array, i = t.Date, fe = t.Error, he = t.Function, pe = t.Math, ge = t.Object, me = t.RegExp, ve = t.String, ye = t.TypeError, be = r.prototype, _e = he.prototype, we = ge.prototype, Se = t["__core-js_shared__"], xe = _e.toString, ke = we.hasOwnProperty, Ie = 0, Ce = (n = /[^.]+$/.exec(Se && Se.keys && Se.keys.IE_PROTO || "")) ? "Symbol(src)_1." + n : "", Me = we.toString, Te = xe.call(ge), Ae = Ze._, Ee = me("^" + xe.call(ke).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Oe = Xe ? t.Buffer : void 0, Pe = t.Symbol, ze = t.Uint8Array, We = Oe ? Oe.allocUnsafe : void 0, $e = Ut(ge.getPrototypeOf, ge), Ge = ge.create, qe = we.propertyIsEnumerable, Ye = be.splice, Je = Pe ? Pe.isConcatSpreadable : void 0, Qe = Pe ? Pe.iterator : void 0, yt = Pe ? Pe.toStringTag : void 0, Ct = function() {
- try {
- var e = Ki(ge, "defineProperty");
- return e({}, "", {}),
- e
- } catch (e) {}
- }(), Yt = t.clearTimeout !== Ze.clearTimeout && t.clearTimeout, Xt = i && i.now !== Ze.Date.now && i.now, Jt = t.setTimeout !== Ze.setTimeout && t.setTimeout, Qt = pe.ceil, Kt = pe.floor, en = ge.getOwnPropertySymbols, tn = Oe ? Oe.isBuffer : void 0, nn = t.isFinite, rn = be.join, on = Ut(ge.keys, ge), an = pe.max, sn = pe.min, ln = i.now, un = t.parseInt, cn = pe.random, dn = be.reverse, fn = Ki(t, "DataView"), hn = Ki(t, "Map"), pn = Ki(t, "Promise"), gn = Ki(t, "Set"), mn = Ki(t, "WeakMap"), vn = Ki(ge, "create"), yn = mn && new mn, bn = {}, _n = Mo(fn), wn = Mo(hn), Sn = Mo(pn), xn = Mo(gn), kn = Mo(mn), In = Pe ? Pe.prototype : void 0, Cn = In ? In.valueOf : void 0, Mn = In ? In.toString : void 0;
- function Tn(e) {
- if (Va(e) && !La(e) && !(e instanceof Bn)) {
- if (e instanceof On)
- return e;
- if (ke.call(e, "__wrapped__"))
- return To(e)
- }
- return new On(e)
- }
- var An = function() {
- function e() {}
- return function(t) {
- if (!Ha(t))
- return {};
- if (Ge)
- return Ge(t);
- e.prototype = t;
- var n = new e;
- return e.prototype = void 0,
- n
- }
- }();
- function En() {}
- function On(e, t) {
- this.__wrapped__ = e,
- this.__actions__ = [],
- this.__chain__ = !!t,
- this.__index__ = 0,
- this.__values__ = void 0
- }
- function Bn(e) {
- this.__wrapped__ = e,
- this.__actions__ = [],
- this.__dir__ = 1,
- this.__filtered__ = !1,
- this.__iteratees__ = [],
- this.__takeCount__ = 4294967295,
- this.__views__ = []
- }
- function Ln(e) {
- var t = -1
- , n = null == e ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1])
- }
- }
- function Pn(e) {
- var t = -1
- , n = null == e ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1])
- }
- }
- function Rn(e) {
- var t = -1
- , n = null == e ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1])
- }
- }
- function zn(e) {
- var t = -1
- , n = null == e ? 0 : e.length;
- for (this.__data__ = new Rn; ++t < n; )
- this.add(e[t])
- }
- function jn(e) {
- var t = this.__data__ = new Pn(e);
- this.size = t.size
- }
- function Fn(e, t) {
- var n = La(e)
- , r = !n && Ba(e)
- , i = !n && !r && ja(e)
- , o = !n && !r && !i && Qa(e)
- , a = n || r || i || o
- , s = a ? At(e.length, ve) : []
- , l = s.length;
- for (var u in e)
- !t && !ke.call(e, u) || a && ("length" == u || i && ("offset" == u || "parent" == u) || o && ("buffer" == u || "byteLength" == u || "byteOffset" == u) || ao(u, l)) || s.push(u);
- return s
- }
- function Dn(e) {
- var t = e.length;
- return t ? e[zr(0, t - 1)] : void 0
- }
- function Nn(e, t) {
- return ko(vi(e), Yn(t, 0, e.length))
- }
- function Un(e) {
- return ko(vi(e))
- }
- function Wn(e, t, n) {
- (void 0 !== n && !Aa(e[t], n) || void 0 === n && !(t in e)) && Zn(e, t, n)
- }
- function Hn(e, t, n) {
- var r = e[t];
- ke.call(e, t) && Aa(r, n) && (void 0 !== n || t in e) || Zn(e, t, n)
- }
- function Vn(e, t) {
- for (var n = e.length; n--; )
- if (Aa(e[n][0], t))
- return n;
- return -1
- }
- function $n(e, t, n, r) {
- return er(e, (function(e, i, o) {
- t(r, e, n(e), o)
- }
- )),
- r
- }
- function Gn(e, t) {
- return e && yi(t, _s(t), e)
- }
- function Zn(e, t, n) {
- "__proto__" == t && Ct ? Ct(e, t, {
- configurable: !0,
- enumerable: !0,
- value: n,
- writable: !0
- }) : e[t] = n
- }
- function qn(e, t) {
- for (var n = -1, i = t.length, o = r(i), a = null == e; ++n < i; )
- o[n] = a ? void 0 : gs(e, t[n]);
- return o
- }
- function Yn(e, t, n) {
- return e == e && (void 0 !== n && (e = e <= n ? e : n),
- void 0 !== t && (e = e >= t ? e : t)),
- e
- }
- function Xn(e, t, n, r, i, o) {
- var a, s = 1 & t, u = 2 & t, f = 4 & t;
- if (n && (a = i ? n(e, r, i, o) : n(e)),
- void 0 !== a)
- return a;
- if (!Ha(e))
- return e;
- var S = La(e);
- if (S) {
- if (a = function(e) {
- var t = e.length
- , n = new e.constructor(t);
- t && "string" == typeof e[0] && ke.call(e, "index") && (n.index = e.index,
- n.input = e.input);
- return n
- }(e),
- !s)
- return vi(e, a)
- } else {
- var L = no(e)
- , P = L == h || L == p;
- if (ja(e))
- return di(e, s);
- if (L == v || L == l || P && !i) {
- if (a = u || P ? {} : io(e),
- !s)
- return u ? function(e, t) {
- return yi(e, to(e), t)
- }(e, function(e, t) {
- return e && yi(t, ws(t), e)
- }(a, e)) : function(e, t) {
- return yi(e, eo(e), t)
- }(e, Gn(a, e))
- } else {
- if (!Ue[L])
- return i ? e : {};
- a = function(e, t, n) {
- var r = e.constructor;
- switch (t) {
- case x:
- return fi(e);
- case c:
- case d:
- return new r(+e);
- case k:
- return function(e, t) {
- var n = t ? fi(e.buffer) : e.buffer;
- return new e.constructor(n,e.byteOffset,e.byteLength)
- }(e, n);
- case I:
- case C:
- case M:
- case T:
- case A:
- case E:
- case "[object Uint8ClampedArray]":
- case O:
- case B:
- return hi(e, n);
- case g:
- return new r;
- case m:
- case _:
- return new r(e);
- case y:
- return function(e) {
- var t = new e.constructor(e.source,re.exec(e));
- return t.lastIndex = e.lastIndex,
- t
- }(e);
- case b:
- return new r;
- case w:
- return i = e,
- Cn ? ge(Cn.call(i)) : {}
- }
- var i
- }(e, L, s)
- }
- }
- o || (o = new jn);
- var R = o.get(e);
- if (R)
- return R;
- o.set(e, a),
- Ya(e) ? e.forEach((function(r) {
- a.add(Xn(r, t, n, r, e, o))
- }
- )) : $a(e) && e.forEach((function(r, i) {
- a.set(i, Xn(r, t, n, i, e, o))
- }
- ));
- var z = S ? void 0 : (f ? u ? Gi : $i : u ? ws : _s)(e);
- return st(z || e, (function(r, i) {
- z && (r = e[i = r]),
- Hn(a, i, Xn(r, t, n, i, e, o))
- }
- )),
- a
- }
- function Jn(e, t, n) {
- var r = n.length;
- if (null == e)
- return !r;
- for (e = ge(e); r--; ) {
- var i = n[r]
- , o = t[i]
- , a = e[i];
- if (void 0 === a && !(i in e) || !o(a))
- return !1
- }
- return !0
- }
- function Qn(e, t, n) {
- if ("function" != typeof e)
- throw new ye(o);
- return _o((function() {
- e.apply(void 0, n)
- }
- ), t)
- }
- function Kn(e, t, n, r) {
- var i = -1
- , o = dt
- , a = !0
- , s = e.length
- , l = []
- , u = t.length;
- if (!s)
- return l;
- n && (t = ht(t, Et(n))),
- r ? (o = ft,
- a = !1) : t.length >= 200 && (o = Bt,
- a = !1,
- t = new zn(t));
- e: for (; ++i < s; ) {
- var c = e[i]
- , d = null == n ? c : n(c);
- if (c = r || 0 !== c ? c : 0,
- a && d == d) {
- for (var f = u; f--; )
- if (t[f] === d)
- continue e;
- l.push(c)
- } else
- o(t, d, r) || l.push(c)
- }
- return l
- }
- Tn.templateSettings = {
- escape: N,
- evaluate: U,
- interpolate: W,
- variable: "",
- imports: {
- _: Tn
- }
- },
- Tn.prototype = En.prototype,
- Tn.prototype.constructor = Tn,
- On.prototype = An(En.prototype),
- On.prototype.constructor = On,
- Bn.prototype = An(En.prototype),
- Bn.prototype.constructor = Bn,
- Ln.prototype.clear = function() {
- this.__data__ = vn ? vn(null) : {},
- this.size = 0
- }
- ,
- Ln.prototype.delete = function(e) {
- var t = this.has(e) && delete this.__data__[e];
- return this.size -= t ? 1 : 0,
- t
- }
- ,
- Ln.prototype.get = function(e) {
- var t = this.__data__;
- if (vn) {
- var n = t[e];
- return "__lodash_hash_undefined__" === n ? void 0 : n
- }
- return ke.call(t, e) ? t[e] : void 0
- }
- ,
- Ln.prototype.has = function(e) {
- var t = this.__data__;
- return vn ? void 0 !== t[e] : ke.call(t, e)
- }
- ,
- Ln.prototype.set = function(e, t) {
- var n = this.__data__;
- return this.size += this.has(e) ? 0 : 1,
- n[e] = vn && void 0 === t ? "__lodash_hash_undefined__" : t,
- this
- }
- ,
- Pn.prototype.clear = function() {
- this.__data__ = [],
- this.size = 0
- }
- ,
- Pn.prototype.delete = function(e) {
- var t = this.__data__
- , n = Vn(t, e);
- return !(n < 0) && (n == t.length - 1 ? t.pop() : Ye.call(t, n, 1),
- --this.size,
- !0)
- }
- ,
- Pn.prototype.get = function(e) {
- var t = this.__data__
- , n = Vn(t, e);
- return n < 0 ? void 0 : t[n][1]
- }
- ,
- Pn.prototype.has = function(e) {
- return Vn(this.__data__, e) > -1
- }
- ,
- Pn.prototype.set = function(e, t) {
- var n = this.__data__
- , r = Vn(n, e);
- return r < 0 ? (++this.size,
- n.push([e, t])) : n[r][1] = t,
- this
- }
- ,
- Rn.prototype.clear = function() {
- this.size = 0,
- this.__data__ = {
- hash: new Ln,
- map: new (hn || Pn),
- string: new Ln
- }
- }
- ,
- Rn.prototype.delete = function(e) {
- var t = Ji(this, e).delete(e);
- return this.size -= t ? 1 : 0,
- t
- }
- ,
- Rn.prototype.get = function(e) {
- return Ji(this, e).get(e)
- }
- ,
- Rn.prototype.has = function(e) {
- return Ji(this, e).has(e)
- }
- ,
- Rn.prototype.set = function(e, t) {
- var n = Ji(this, e)
- , r = n.size;
- return n.set(e, t),
- this.size += n.size == r ? 0 : 1,
- this
- }
- ,
- zn.prototype.add = zn.prototype.push = function(e) {
- return this.__data__.set(e, "__lodash_hash_undefined__"),
- this
- }
- ,
- zn.prototype.has = function(e) {
- return this.__data__.has(e)
- }
- ,
- jn.prototype.clear = function() {
- this.__data__ = new Pn,
- this.size = 0
- }
- ,
- jn.prototype.delete = function(e) {
- var t = this.__data__
- , n = t.delete(e);
- return this.size = t.size,
- n
- }
- ,
- jn.prototype.get = function(e) {
- return this.__data__.get(e)
- }
- ,
- jn.prototype.has = function(e) {
- return this.__data__.has(e)
- }
- ,
- jn.prototype.set = function(e, t) {
- var n = this.__data__;
- if (n instanceof Pn) {
- var r = n.__data__;
- if (!hn || r.length < 199)
- return r.push([e, t]),
- this.size = ++n.size,
- this;
- n = this.__data__ = new Rn(r)
- }
- return n.set(e, t),
- this.size = n.size,
- this
- }
- ;
- var er = wi(lr)
- , tr = wi(ur, !0);
- function nr(e, t) {
- var n = !0;
- return er(e, (function(e, r, i) {
- return n = !!t(e, r, i)
- }
- )),
- n
- }
- function rr(e, t, n) {
- for (var r = -1, i = e.length; ++r < i; ) {
- var o = e[r]
- , a = t(o);
- if (null != a && (void 0 === s ? a == a && !Ja(a) : n(a, s)))
- var s = a
- , l = o
- }
- return l
- }
- function ir(e, t) {
- var n = [];
- return er(e, (function(e, r, i) {
- t(e, r, i) && n.push(e)
- }
- )),
- n
- }
- function or(e, t, n, r, i) {
- var o = -1
- , a = e.length;
- for (n || (n = oo),
- i || (i = []); ++o < a; ) {
- var s = e[o];
- t > 0 && n(s) ? t > 1 ? or(s, t - 1, n, r, i) : pt(i, s) : r || (i[i.length] = s)
- }
- return i
- }
- var ar = Si()
- , sr = Si(!0);
- function lr(e, t) {
- return e && ar(e, t, _s)
- }
- function ur(e, t) {
- return e && sr(e, t, _s)
- }
- function cr(e, t) {
- return ct(t, (function(t) {
- return Na(e[t])
- }
- ))
- }
- function dr(e, t) {
- for (var n = 0, r = (t = si(t, e)).length; null != e && n < r; )
- e = e[Co(t[n++])];
- return n && n == r ? e : void 0
- }
- function fr(e, t, n) {
- var r = t(e);
- return La(e) ? r : pt(r, n(e))
- }
- function hr(e) {
- return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : yt && yt in ge(e) ? function(e) {
- var t = ke.call(e, yt)
- , n = e[yt];
- try {
- e[yt] = void 0;
- var r = !0
- } catch (e) {}
- var i = Me.call(e);
- r && (t ? e[yt] = n : delete e[yt]);
- return i
- }(e) : function(e) {
- return Me.call(e)
- }(e)
- }
- function pr(e, t) {
- return e > t
- }
- function gr(e, t) {
- return null != e && ke.call(e, t)
- }
- function mr(e, t) {
- return null != e && t in ge(e)
- }
- function vr(e, t, n) {
- for (var i = n ? ft : dt, o = e[0].length, a = e.length, s = a, l = r(a), u = 1 / 0, c = []; s--; ) {
- var d = e[s];
- s && t && (d = ht(d, Et(t))),
- u = sn(d.length, u),
- l[s] = !n && (t || o >= 120 && d.length >= 120) ? new zn(s && d) : void 0
- }
- d = e[0];
- var f = -1
- , h = l[0];
- e: for (; ++f < o && c.length < u; ) {
- var p = d[f]
- , g = t ? t(p) : p;
- if (p = n || 0 !== p ? p : 0,
- !(h ? Bt(h, g) : i(c, g, n))) {
- for (s = a; --s; ) {
- var m = l[s];
- if (!(m ? Bt(m, g) : i(e[s], g, n)))
- continue e
- }
- h && h.push(g),
- c.push(p)
- }
- }
- return c
- }
- function yr(e, t, n) {
- var r = null == (e = mo(e, t = si(t, e))) ? e : e[Co(Do(t))];
- return null == r ? void 0 : ot(r, e, n)
- }
- function br(e) {
- return Va(e) && hr(e) == l
- }
- function _r(e, t, n, r, i) {
- return e === t || (null == e || null == t || !Va(e) && !Va(t) ? e != e && t != t : function(e, t, n, r, i, o) {
- var a = La(e)
- , s = La(t)
- , h = a ? u : no(e)
- , p = s ? u : no(t)
- , S = (h = h == l ? v : h) == v
- , I = (p = p == l ? v : p) == v
- , C = h == p;
- if (C && ja(e)) {
- if (!ja(t))
- return !1;
- a = !0,
- S = !1
- }
- if (C && !S)
- return o || (o = new jn),
- a || Qa(e) ? Hi(e, t, n, r, i, o) : function(e, t, n, r, i, o, a) {
- switch (n) {
- case k:
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
- return !1;
- e = e.buffer,
- t = t.buffer;
- case x:
- return !(e.byteLength != t.byteLength || !o(new ze(e), new ze(t)));
- case c:
- case d:
- case m:
- return Aa(+e, +t);
- case f:
- return e.name == t.name && e.message == t.message;
- case y:
- case _:
- return e == t + "";
- case g:
- var s = Nt;
- case b:
- var l = 1 & r;
- if (s || (s = Ht),
- e.size != t.size && !l)
- return !1;
- var u = a.get(e);
- if (u)
- return u == t;
- r |= 2,
- a.set(e, t);
- var h = Hi(s(e), s(t), r, i, o, a);
- return a.delete(e),
- h;
- case w:
- if (Cn)
- return Cn.call(e) == Cn.call(t)
- }
- return !1
- }(e, t, h, n, r, i, o);
- if (!(1 & n)) {
- var M = S && ke.call(e, "__wrapped__")
- , T = I && ke.call(t, "__wrapped__");
- if (M || T) {
- var A = M ? e.value() : e
- , E = T ? t.value() : t;
- return o || (o = new jn),
- i(A, E, n, r, o)
- }
- }
- if (!C)
- return !1;
- return o || (o = new jn),
- function(e, t, n, r, i, o) {
- var a = 1 & n
- , s = $i(e)
- , l = s.length
- , u = $i(t).length;
- if (l != u && !a)
- return !1;
- var c = l;
- for (; c--; ) {
- var d = s[c];
- if (!(a ? d in t : ke.call(t, d)))
- return !1
- }
- var f = o.get(e);
- if (f && o.get(t))
- return f == t;
- var h = !0;
- o.set(e, t),
- o.set(t, e);
- var p = a;
- for (; ++c < l; ) {
- d = s[c];
- var g = e[d]
- , m = t[d];
- if (r)
- var v = a ? r(m, g, d, t, e, o) : r(g, m, d, e, t, o);
- if (!(void 0 === v ? g === m || i(g, m, n, r, o) : v)) {
- h = !1;
- break
- }
- p || (p = "constructor" == d)
- }
- if (h && !p) {
- var y = e.constructor
- , b = t.constructor;
- y == b || !("constructor"in e) || !("constructor"in t) || "function" == typeof y && y instanceof y && "function" == typeof b && b instanceof b || (h = !1)
- }
- return o.delete(e),
- o.delete(t),
- h
- }(e, t, n, r, i, o)
- }(e, t, n, r, _r, i))
- }
- function wr(e, t, n, r) {
- var i = n.length
- , o = i
- , a = !r;
- if (null == e)
- return !o;
- for (e = ge(e); i--; ) {
- var s = n[i];
- if (a && s[2] ? s[1] !== e[s[0]] : !(s[0]in e))
- return !1
- }
- for (; ++i < o; ) {
- var l = (s = n[i])[0]
- , u = e[l]
- , c = s[1];
- if (a && s[2]) {
- if (void 0 === u && !(l in e))
- return !1
- } else {
- var d = new jn;
- if (r)
- var f = r(u, c, l, e, t, d);
- if (!(void 0 === f ? _r(c, u, 3, r, d) : f))
- return !1
- }
- }
- return !0
- }
- function Sr(e) {
- return !(!Ha(e) || (t = e,
- Ce && Ce in t)) && (Na(e) ? Ee : ae).test(Mo(e));
- var t
- }
- function xr(e) {
- return "function" == typeof e ? e : null == e ? Gs : "object" == typeof e ? La(e) ? Ar(e[0], e[1]) : Tr(e) : tl(e)
- }
- function kr(e) {
- if (!fo(e))
- return on(e);
- var t = [];
- for (var n in ge(e))
- ke.call(e, n) && "constructor" != n && t.push(n);
- return t
- }
- function Ir(e) {
- if (!Ha(e))
- return function(e) {
- var t = [];
- if (null != e)
- for (var n in ge(e))
- t.push(n);
- return t
- }(e);
- var t = fo(e)
- , n = [];
- for (var r in e)
- ("constructor" != r || !t && ke.call(e, r)) && n.push(r);
- return n
- }
- function Cr(e, t) {
- return e < t
- }
- function Mr(e, t) {
- var n = -1
- , i = Ra(e) ? r(e.length) : [];
- return er(e, (function(e, r, o) {
- i[++n] = t(e, r, o)
- }
- )),
- i
- }
- function Tr(e) {
- var t = Qi(e);
- return 1 == t.length && t[0][2] ? po(t[0][0], t[0][1]) : function(n) {
- return n === e || wr(n, e, t)
- }
- }
- function Ar(e, t) {
- return lo(e) && ho(t) ? po(Co(e), t) : function(n) {
- var r = gs(n, e);
- return void 0 === r && r === t ? ms(n, e) : _r(t, r, 3)
- }
- }
- function Er(e, t, n, r, i) {
- e !== t && ar(t, (function(o, a) {
- if (i || (i = new jn),
- Ha(o))
- !function(e, t, n, r, i, o, a) {
- var s = yo(e, n)
- , l = yo(t, n)
- , u = a.get(l);
- if (u)
- return void Wn(e, n, u);
- var c = o ? o(s, l, n + "", e, t, a) : void 0
- , d = void 0 === c;
- if (d) {
- var f = La(l)
- , h = !f && ja(l)
- , p = !f && !h && Qa(l);
- c = l,
- f || h || p ? La(s) ? c = s : za(s) ? c = vi(s) : h ? (d = !1,
- c = di(l, !0)) : p ? (d = !1,
- c = hi(l, !0)) : c = [] : Za(l) || Ba(l) ? (c = s,
- Ba(s) ? c = as(s) : Ha(s) && !Na(s) || (c = io(l))) : d = !1
- }
- d && (a.set(l, c),
- i(c, l, r, o, a),
- a.delete(l));
- Wn(e, n, c)
- }(e, t, a, n, Er, r, i);
- else {
- var s = r ? r(yo(e, a), o, a + "", e, t, i) : void 0;
- void 0 === s && (s = o),
- Wn(e, a, s)
- }
- }
- ), ws)
- }
- function Or(e, t) {
- var n = e.length;
- if (n)
- return ao(t += t < 0 ? n : 0, n) ? e[t] : void 0
- }
- function Br(e, t, n) {
- var r = -1;
- return t = ht(t.length ? t : [Gs], Et(Xi())),
- function(e, t) {
- var n = e.length;
- for (e.sort(t); n--; )
- e[n] = e[n].value;
- return e
- }(Mr(e, (function(e, n, i) {
- return {
- criteria: ht(t, (function(t) {
- return t(e)
- }
- )),
- index: ++r,
- value: e
- }
- }
- )), (function(e, t) {
- return function(e, t, n) {
- var r = -1
- , i = e.criteria
- , o = t.criteria
- , a = i.length
- , s = n.length;
- for (; ++r < a; ) {
- var l = pi(i[r], o[r]);
- if (l) {
- if (r >= s)
- return l;
- var u = n[r];
- return l * ("desc" == u ? -1 : 1)
- }
- }
- return e.index - t.index
- }(e, t, n)
- }
- ))
- }
- function Lr(e, t, n) {
- for (var r = -1, i = t.length, o = {}; ++r < i; ) {
- var a = t[r]
- , s = dr(e, a);
- n(s, a) && Ur(o, si(a, e), s)
- }
- return o
- }
- function Pr(e, t, n, r) {
- var i = r ? St : wt
- , o = -1
- , a = t.length
- , s = e;
- for (e === t && (t = vi(t)),
- n && (s = ht(e, Et(n))); ++o < a; )
- for (var l = 0, u = t[o], c = n ? n(u) : u; (l = i(s, c, l, r)) > -1; )
- s !== e && Ye.call(s, l, 1),
- Ye.call(e, l, 1);
- return e
- }
- function Rr(e, t) {
- for (var n = e ? t.length : 0, r = n - 1; n--; ) {
- var i = t[n];
- if (n == r || i !== o) {
- var o = i;
- ao(i) ? Ye.call(e, i, 1) : Kr(e, i)
- }
- }
- return e
- }
- function zr(e, t) {
- return e + Kt(cn() * (t - e + 1))
- }
- function jr(e, t) {
- var n = "";
- if (!e || t < 1 || t > 9007199254740991)
- return n;
- do {
- t % 2 && (n += e),
- (t = Kt(t / 2)) && (e += e)
- } while (t);
- return n
- }
- function Fr(e, t) {
- return wo(go(e, t, Gs), e + "")
- }
- function Dr(e) {
- return Dn(As(e))
- }
- function Nr(e, t) {
- var n = As(e);
- return ko(n, Yn(t, 0, n.length))
- }
- function Ur(e, t, n, r) {
- if (!Ha(e))
- return e;
- for (var i = -1, o = (t = si(t, e)).length, a = o - 1, s = e; null != s && ++i < o; ) {
- var l = Co(t[i])
- , u = n;
- if (i != a) {
- var c = s[l];
- void 0 === (u = r ? r(c, l, s) : void 0) && (u = Ha(c) ? c : ao(t[i + 1]) ? [] : {})
- }
- Hn(s, l, u),
- s = s[l]
- }
- return e
- }
- var Wr = yn ? function(e, t) {
- return yn.set(e, t),
- e
- }
- : Gs
- , Hr = Ct ? function(e, t) {
- return Ct(e, "toString", {
- configurable: !0,
- enumerable: !1,
- value: Hs(t),
- writable: !0
- })
- }
- : Gs;
- function Vr(e) {
- return ko(As(e))
- }
- function $r(e, t, n) {
- var i = -1
- , o = e.length;
- t < 0 && (t = -t > o ? 0 : o + t),
- (n = n > o ? o : n) < 0 && (n += o),
- o = t > n ? 0 : n - t >>> 0,
- t >>>= 0;
- for (var a = r(o); ++i < o; )
- a[i] = e[i + t];
- return a
- }
- function Gr(e, t) {
- var n;
- return er(e, (function(e, r, i) {
- return !(n = t(e, r, i))
- }
- )),
- !!n
- }
- function Zr(e, t, n) {
- var r = 0
- , i = null == e ? r : e.length;
- if ("number" == typeof t && t == t && i <= 2147483647) {
- for (; r < i; ) {
- var o = r + i >>> 1
- , a = e[o];
- null !== a && !Ja(a) && (n ? a <= t : a < t) ? r = o + 1 : i = o
- }
- return i
- }
- return qr(e, t, Gs, n)
- }
- function qr(e, t, n, r) {
- t = n(t);
- for (var i = 0, o = null == e ? 0 : e.length, a = t != t, s = null === t, l = Ja(t), u = void 0 === t; i < o; ) {
- var c = Kt((i + o) / 2)
- , d = n(e[c])
- , f = void 0 !== d
- , h = null === d
- , p = d == d
- , g = Ja(d);
- if (a)
- var m = r || p;
- else
- m = u ? p && (r || f) : s ? p && f && (r || !h) : l ? p && f && !h && (r || !g) : !h && !g && (r ? d <= t : d < t);
- m ? i = c + 1 : o = c
- }
- return sn(o, 4294967294)
- }
- function Yr(e, t) {
- for (var n = -1, r = e.length, i = 0, o = []; ++n < r; ) {
- var a = e[n]
- , s = t ? t(a) : a;
- if (!n || !Aa(s, l)) {
- var l = s;
- o[i++] = 0 === a ? 0 : a
- }
- }
- return o
- }
- function Xr(e) {
- return "number" == typeof e ? e : Ja(e) ? NaN : +e
- }
- function Jr(e) {
- if ("string" == typeof e)
- return e;
- if (La(e))
- return ht(e, Jr) + "";
- if (Ja(e))
- return Mn ? Mn.call(e) : "";
- var t = e + "";
- return "0" == t && 1 / e == -1 / 0 ? "-0" : t
- }
- function Qr(e, t, n) {
- var r = -1
- , i = dt
- , o = e.length
- , a = !0
- , s = []
- , l = s;
- if (n)
- a = !1,
- i = ft;
- else if (o >= 200) {
- var u = t ? null : ji(e);
- if (u)
- return Ht(u);
- a = !1,
- i = Bt,
- l = new zn
- } else
- l = t ? [] : s;
- e: for (; ++r < o; ) {
- var c = e[r]
- , d = t ? t(c) : c;
- if (c = n || 0 !== c ? c : 0,
- a && d == d) {
- for (var f = l.length; f--; )
- if (l[f] === d)
- continue e;
- t && l.push(d),
- s.push(c)
- } else
- i(l, d, n) || (l !== s && l.push(d),
- s.push(c))
- }
- return s
- }
- function Kr(e, t) {
- return null == (e = mo(e, t = si(t, e))) || delete e[Co(Do(t))]
- }
- function ei(e, t, n, r) {
- return Ur(e, t, n(dr(e, t)), r)
- }
- function ti(e, t, n, r) {
- for (var i = e.length, o = r ? i : -1; (r ? o-- : ++o < i) && t(e[o], o, e); )
- ;
- return n ? $r(e, r ? 0 : o, r ? o + 1 : i) : $r(e, r ? o + 1 : 0, r ? i : o)
- }
- function ni(e, t) {
- var n = e;
- return n instanceof Bn && (n = n.value()),
- gt(t, (function(e, t) {
- return t.func.apply(t.thisArg, pt([e], t.args))
- }
- ), n)
- }
- function ri(e, t, n) {
- var i = e.length;
- if (i < 2)
- return i ? Qr(e[0]) : [];
- for (var o = -1, a = r(i); ++o < i; )
- for (var s = e[o], l = -1; ++l < i; )
- l != o && (a[o] = Kn(a[o] || s, e[l], t, n));
- return Qr(or(a, 1), t, n)
- }
- function ii(e, t, n) {
- for (var r = -1, i = e.length, o = t.length, a = {}; ++r < i; ) {
- var s = r < o ? t[r] : void 0;
- n(a, e[r], s)
- }
- return a
- }
- function oi(e) {
- return za(e) ? e : []
- }
- function ai(e) {
- return "function" == typeof e ? e : Gs
- }
- function si(e, t) {
- return La(e) ? e : lo(e, t) ? [e] : Io(ss(e))
- }
- var li = Fr;
- function ui(e, t, n) {
- var r = e.length;
- return n = void 0 === n ? r : n,
- !t && n >= r ? e : $r(e, t, n)
- }
- var ci = Yt || function(e) {
- return Ze.clearTimeout(e)
- }
- ;
- function di(e, t) {
- if (t)
- return e.slice();
- var n = e.length
- , r = We ? We(n) : new e.constructor(n);
- return e.copy(r),
- r
- }
- function fi(e) {
- var t = new e.constructor(e.byteLength);
- return new ze(t).set(new ze(e)),
- t
- }
- function hi(e, t) {
- var n = t ? fi(e.buffer) : e.buffer;
- return new e.constructor(n,e.byteOffset,e.length)
- }
- function pi(e, t) {
- if (e !== t) {
- var n = void 0 !== e
- , r = null === e
- , i = e == e
- , o = Ja(e)
- , a = void 0 !== t
- , s = null === t
- , l = t == t
- , u = Ja(t);
- if (!s && !u && !o && e > t || o && a && l && !s && !u || r && a && l || !n && l || !i)
- return 1;
- if (!r && !o && !u && e < t || u && n && i && !r && !o || s && n && i || !a && i || !l)
- return -1
- }
- return 0
- }
- function gi(e, t, n, i) {
- for (var o = -1, a = e.length, s = n.length, l = -1, u = t.length, c = an(a - s, 0), d = r(u + c), f = !i; ++l < u; )
- d[l] = t[l];
- for (; ++o < s; )
- (f || o < a) && (d[n[o]] = e[o]);
- for (; c--; )
- d[l++] = e[o++];
- return d
- }
- function mi(e, t, n, i) {
- for (var o = -1, a = e.length, s = -1, l = n.length, u = -1, c = t.length, d = an(a - l, 0), f = r(d + c), h = !i; ++o < d; )
- f[o] = e[o];
- for (var p = o; ++u < c; )
- f[p + u] = t[u];
- for (; ++s < l; )
- (h || o < a) && (f[p + n[s]] = e[o++]);
- return f
- }
- function vi(e, t) {
- var n = -1
- , i = e.length;
- for (t || (t = r(i)); ++n < i; )
- t[n] = e[n];
- return t
- }
- function yi(e, t, n, r) {
- var i = !n;
- n || (n = {});
- for (var o = -1, a = t.length; ++o < a; ) {
- var s = t[o]
- , l = r ? r(n[s], e[s], s, n, e) : void 0;
- void 0 === l && (l = e[s]),
- i ? Zn(n, s, l) : Hn(n, s, l)
- }
- return n
- }
- function bi(e, t) {
- return function(n, r) {
- var i = La(n) ? at : $n
- , o = t ? t() : {};
- return i(n, e, Xi(r, 2), o)
- }
- }
- function _i(e) {
- return Fr((function(t, n) {
- var r = -1
- , i = n.length
- , o = i > 1 ? n[i - 1] : void 0
- , a = i > 2 ? n[2] : void 0;
- for (o = e.length > 3 && "function" == typeof o ? (i--,
- o) : void 0,
- a && so(n[0], n[1], a) && (o = i < 3 ? void 0 : o,
- i = 1),
- t = ge(t); ++r < i; ) {
- var s = n[r];
- s && e(t, s, r, o)
- }
- return t
- }
- ))
- }
- function wi(e, t) {
- return function(n, r) {
- if (null == n)
- return n;
- if (!Ra(n))
- return e(n, r);
- for (var i = n.length, o = t ? i : -1, a = ge(n); (t ? o-- : ++o < i) && !1 !== r(a[o], o, a); )
- ;
- return n
- }
- }
- function Si(e) {
- return function(t, n, r) {
- for (var i = -1, o = ge(t), a = r(t), s = a.length; s--; ) {
- var l = a[e ? s : ++i];
- if (!1 === n(o[l], l, o))
- break
- }
- return t
- }
- }
- function xi(e) {
- return function(t) {
- var n = Dt(t = ss(t)) ? Gt(t) : void 0
- , r = n ? n[0] : t.charAt(0)
- , i = n ? ui(n, 1).join("") : t.slice(1);
- return r[e]() + i
- }
- }
- function ki(e) {
- return function(t) {
- return gt(Ns(Bs(t).replace(Be, "")), e, "")
- }
- }
- function Ii(e) {
- return function() {
- var t = arguments;
- switch (t.length) {
- case 0:
- return new e;
- case 1:
- return new e(t[0]);
- case 2:
- return new e(t[0],t[1]);
- case 3:
- return new e(t[0],t[1],t[2]);
- case 4:
- return new e(t[0],t[1],t[2],t[3]);
- case 5:
- return new e(t[0],t[1],t[2],t[3],t[4]);
- case 6:
- return new e(t[0],t[1],t[2],t[3],t[4],t[5]);
- case 7:
- return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])
- }
- var n = An(e.prototype)
- , r = e.apply(n, t);
- return Ha(r) ? r : n
- }
- }
- function Ci(e) {
- return function(t, n, r) {
- var i = ge(t);
- if (!Ra(t)) {
- var o = Xi(n, 3);
- t = _s(t),
- n = function(e) {
- return o(i[e], e, i)
- }
- }
- var a = e(t, n, r);
- return a > -1 ? i[o ? t[a] : a] : void 0
- }
- }
- function Mi(e) {
- return Vi((function(t) {
- var n = t.length
- , r = n
- , i = On.prototype.thru;
- for (e && t.reverse(); r--; ) {
- var a = t[r];
- if ("function" != typeof a)
- throw new ye(o);
- if (i && !s && "wrapper" == qi(a))
- var s = new On([],!0)
- }
- for (r = s ? r : n; ++r < n; ) {
- var l = qi(a = t[r])
- , u = "wrapper" == l ? Zi(a) : void 0;
- s = u && uo(u[0]) && 424 == u[1] && !u[4].length && 1 == u[9] ? s[qi(u[0])].apply(s, u[3]) : 1 == a.length && uo(a) ? s[l]() : s.thru(a)
- }
- return function() {
- var e = arguments
- , r = e[0];
- if (s && 1 == e.length && La(r))
- return s.plant(r).value();
- for (var i = 0, o = n ? t[i].apply(this, e) : r; ++i < n; )
- o = t[i].call(this, o);
- return o
- }
- }
- ))
- }
- function Ti(e, t, n, i, o, a, s, l, u, c) {
- var d = 128 & t
- , f = 1 & t
- , h = 2 & t
- , p = 24 & t
- , g = 512 & t
- , m = h ? void 0 : Ii(e);
- return function v() {
- for (var y = arguments.length, b = r(y), _ = y; _--; )
- b[_] = arguments[_];
- if (p)
- var w = Yi(v)
- , S = Rt(b, w);
- if (i && (b = gi(b, i, o, p)),
- a && (b = mi(b, a, s, p)),
- y -= S,
- p && y < c) {
- var x = Wt(b, w);
- return Ri(e, t, Ti, v.placeholder, n, b, x, l, u, c - y)
- }
- var k = f ? n : this
- , I = h ? k[e] : e;
- return y = b.length,
- l ? b = vo(b, l) : g && y > 1 && b.reverse(),
- d && u < y && (b.length = u),
- this && this !== Ze && this instanceof v && (I = m || Ii(I)),
- I.apply(k, b)
- }
- }
- function Ai(e, t) {
- return function(n, r) {
- return function(e, t, n, r) {
- return lr(e, (function(e, i, o) {
- t(r, n(e), i, o)
- }
- )),
- r
- }(n, e, t(r), {})
- }
- }
- function Ei(e, t) {
- return function(n, r) {
- var i;
- if (void 0 === n && void 0 === r)
- return t;
- if (void 0 !== n && (i = n),
- void 0 !== r) {
- if (void 0 === i)
- return r;
- "string" == typeof n || "string" == typeof r ? (n = Jr(n),
- r = Jr(r)) : (n = Xr(n),
- r = Xr(r)),
- i = e(n, r)
- }
- return i
- }
- }
- function Oi(e) {
- return Vi((function(t) {
- return t = ht(t, Et(Xi())),
- Fr((function(n) {
- var r = this;
- return e(t, (function(e) {
- return ot(e, r, n)
- }
- ))
- }
- ))
- }
- ))
- }
- function Bi(e, t) {
- var n = (t = void 0 === t ? " " : Jr(t)).length;
- if (n < 2)
- return n ? jr(t, e) : t;
- var r = jr(t, Qt(e / $t(t)));
- return Dt(t) ? ui(Gt(r), 0, e).join("") : r.slice(0, e)
- }
- function Li(e) {
- return function(t, n, i) {
- return i && "number" != typeof i && so(t, n, i) && (n = i = void 0),
- t = ns(t),
- void 0 === n ? (n = t,
- t = 0) : n = ns(n),
- function(e, t, n, i) {
- for (var o = -1, a = an(Qt((t - e) / (n || 1)), 0), s = r(a); a--; )
- s[i ? a : ++o] = e,
- e += n;
- return s
- }(t, n, i = void 0 === i ? t < n ? 1 : -1 : ns(i), e)
- }
- }
- function Pi(e) {
- return function(t, n) {
- return "string" == typeof t && "string" == typeof n || (t = os(t),
- n = os(n)),
- e(t, n)
- }
- }
- function Ri(e, t, n, r, i, o, a, s, l, u) {
- var c = 8 & t;
- t |= c ? 32 : 64,
- 4 & (t &= ~(c ? 64 : 32)) || (t &= -4);
- var d = [e, t, i, c ? o : void 0, c ? a : void 0, c ? void 0 : o, c ? void 0 : a, s, l, u]
- , f = n.apply(void 0, d);
- return uo(e) && bo(f, d),
- f.placeholder = r,
- So(f, e, t)
- }
- function zi(e) {
- var t = pe[e];
- return function(e, n) {
- if (e = os(e),
- (n = null == n ? 0 : sn(rs(n), 292)) && nn(e)) {
- var r = (ss(e) + "e").split("e");
- return +((r = (ss(t(r[0] + "e" + (+r[1] + n))) + "e").split("e"))[0] + "e" + (+r[1] - n))
- }
- return t(e)
- }
- }
- var ji = gn && 1 / Ht(new gn([, -0]))[1] == 1 / 0 ? function(e) {
- return new gn(e)
- }
- : Js;
- function Fi(e) {
- return function(t) {
- var n = no(t);
- return n == g ? Nt(t) : n == b ? Vt(t) : function(e, t) {
- return ht(t, (function(t) {
- return [t, e[t]]
- }
- ))
- }(t, e(t))
- }
- }
- function Di(e, t, n, i, s, l, u, c) {
- var d = 2 & t;
- if (!d && "function" != typeof e)
- throw new ye(o);
- var f = i ? i.length : 0;
- if (f || (t &= -97,
- i = s = void 0),
- u = void 0 === u ? u : an(rs(u), 0),
- c = void 0 === c ? c : rs(c),
- f -= s ? s.length : 0,
- 64 & t) {
- var h = i
- , p = s;
- i = s = void 0
- }
- var g = d ? void 0 : Zi(e)
- , m = [e, t, n, i, s, h, p, l, u, c];
- if (g && function(e, t) {
- var n = e[1]
- , r = t[1]
- , i = n | r
- , o = i < 131
- , s = 128 == r && 8 == n || 128 == r && 256 == n && e[7].length <= t[8] || 384 == r && t[7].length <= t[8] && 8 == n;
- if (!o && !s)
- return e;
- 1 & r && (e[2] = t[2],
- i |= 1 & n ? 0 : 4);
- var l = t[3];
- if (l) {
- var u = e[3];
- e[3] = u ? gi(u, l, t[4]) : l,
- e[4] = u ? Wt(e[3], a) : t[4]
- }
- (l = t[5]) && (u = e[5],
- e[5] = u ? mi(u, l, t[6]) : l,
- e[6] = u ? Wt(e[5], a) : t[6]);
- (l = t[7]) && (e[7] = l);
- 128 & r && (e[8] = null == e[8] ? t[8] : sn(e[8], t[8]));
- null == e[9] && (e[9] = t[9]);
- e[0] = t[0],
- e[1] = i
- }(m, g),
- e = m[0],
- t = m[1],
- n = m[2],
- i = m[3],
- s = m[4],
- !(c = m[9] = void 0 === m[9] ? d ? 0 : e.length : an(m[9] - f, 0)) && 24 & t && (t &= -25),
- t && 1 != t)
- v = 8 == t || 16 == t ? function(e, t, n) {
- var i = Ii(e);
- return function o() {
- for (var a = arguments.length, s = r(a), l = a, u = Yi(o); l--; )
- s[l] = arguments[l];
- var c = a < 3 && s[0] !== u && s[a - 1] !== u ? [] : Wt(s, u);
- if ((a -= c.length) < n)
- return Ri(e, t, Ti, o.placeholder, void 0, s, c, void 0, void 0, n - a);
- var d = this && this !== Ze && this instanceof o ? i : e;
- return ot(d, this, s)
- }
- }(e, t, c) : 32 != t && 33 != t || s.length ? Ti.apply(void 0, m) : function(e, t, n, i) {
- var o = 1 & t
- , a = Ii(e);
- return function t() {
- for (var s = -1, l = arguments.length, u = -1, c = i.length, d = r(c + l), f = this && this !== Ze && this instanceof t ? a : e; ++u < c; )
- d[u] = i[u];
- for (; l--; )
- d[u++] = arguments[++s];
- return ot(f, o ? n : this, d)
- }
- }(e, t, n, i);
- else
- var v = function(e, t, n) {
- var r = 1 & t
- , i = Ii(e);
- return function t() {
- var o = this && this !== Ze && this instanceof t ? i : e;
- return o.apply(r ? n : this, arguments)
- }
- }(e, t, n);
- return So((g ? Wr : bo)(v, m), e, t)
- }
- function Ni(e, t, n, r) {
- return void 0 === e || Aa(e, we[n]) && !ke.call(r, n) ? t : e
- }
- function Ui(e, t, n, r, i, o) {
- return Ha(e) && Ha(t) && (o.set(t, e),
- Er(e, t, void 0, Ui, o),
- o.delete(t)),
- e
- }
- function Wi(e) {
- return Za(e) ? void 0 : e
- }
- function Hi(e, t, n, r, i, o) {
- var a = 1 & n
- , s = e.length
- , l = t.length;
- if (s != l && !(a && l > s))
- return !1;
- var u = o.get(e);
- if (u && o.get(t))
- return u == t;
- var c = -1
- , d = !0
- , f = 2 & n ? new zn : void 0;
- for (o.set(e, t),
- o.set(t, e); ++c < s; ) {
- var h = e[c]
- , p = t[c];
- if (r)
- var g = a ? r(p, h, c, t, e, o) : r(h, p, c, e, t, o);
- if (void 0 !== g) {
- if (g)
- continue;
- d = !1;
- break
- }
- if (f) {
- if (!vt(t, (function(e, t) {
- if (!Bt(f, t) && (h === e || i(h, e, n, r, o)))
- return f.push(t)
- }
- ))) {
- d = !1;
- break
- }
- } else if (h !== p && !i(h, p, n, r, o)) {
- d = !1;
- break
- }
- }
- return o.delete(e),
- o.delete(t),
- d
- }
- function Vi(e) {
- return wo(go(e, void 0, Po), e + "")
- }
- function $i(e) {
- return fr(e, _s, eo)
- }
- function Gi(e) {
- return fr(e, ws, to)
- }
- var Zi = yn ? function(e) {
- return yn.get(e)
- }
- : Js;
- function qi(e) {
- for (var t = e.name + "", n = bn[t], r = ke.call(bn, t) ? n.length : 0; r--; ) {
- var i = n[r]
- , o = i.func;
- if (null == o || o == e)
- return i.name
- }
- return t
- }
- function Yi(e) {
- return (ke.call(Tn, "placeholder") ? Tn : e).placeholder
- }
- function Xi() {
- var e = Tn.iteratee || Zs;
- return e = e === Zs ? xr : e,
- arguments.length ? e(arguments[0], arguments[1]) : e
- }
- function Ji(e, t) {
- var n, r, i = e.__data__;
- return ("string" == (r = typeof (n = t)) || "number" == r || "symbol" == r || "boolean" == r ? "__proto__" !== n : null === n) ? i["string" == typeof t ? "string" : "hash"] : i.map
- }
- function Qi(e) {
- for (var t = _s(e), n = t.length; n--; ) {
- var r = t[n]
- , i = e[r];
- t[n] = [r, i, ho(i)]
- }
- return t
- }
- function Ki(e, t) {
- var n = function(e, t) {
- return null == e ? void 0 : e[t]
- }(e, t);
- return Sr(n) ? n : void 0
- }
- var eo = en ? function(e) {
- return null == e ? [] : (e = ge(e),
- ct(en(e), (function(t) {
- return qe.call(e, t)
- }
- )))
- }
- : il
- , to = en ? function(e) {
- for (var t = []; e; )
- pt(t, eo(e)),
- e = $e(e);
- return t
- }
- : il
- , no = hr;
- function ro(e, t, n) {
- for (var r = -1, i = (t = si(t, e)).length, o = !1; ++r < i; ) {
- var a = Co(t[r]);
- if (!(o = null != e && n(e, a)))
- break;
- e = e[a]
- }
- return o || ++r != i ? o : !!(i = null == e ? 0 : e.length) && Wa(i) && ao(a, i) && (La(e) || Ba(e))
- }
- function io(e) {
- return "function" != typeof e.constructor || fo(e) ? {} : An($e(e))
- }
- function oo(e) {
- return La(e) || Ba(e) || !!(Je && e && e[Je])
- }
- function ao(e, t) {
- var n = typeof e;
- return !!(t = null == t ? 9007199254740991 : t) && ("number" == n || "symbol" != n && le.test(e)) && e > -1 && e % 1 == 0 && e < t
- }
- function so(e, t, n) {
- if (!Ha(n))
- return !1;
- var r = typeof t;
- return !!("number" == r ? Ra(n) && ao(t, n.length) : "string" == r && t in n) && Aa(n[t], e)
- }
- function lo(e, t) {
- if (La(e))
- return !1;
- var n = typeof e;
- return !("number" != n && "symbol" != n && "boolean" != n && null != e && !Ja(e)) || (V.test(e) || !H.test(e) || null != t && e in ge(t))
- }
- function uo(e) {
- var t = qi(e)
- , n = Tn[t];
- if ("function" != typeof n || !(t in Bn.prototype))
- return !1;
- if (e === n)
- return !0;
- var r = Zi(n);
- return !!r && e === r[0]
- }
- (fn && no(new fn(new ArrayBuffer(1))) != k || hn && no(new hn) != g || pn && "[object Promise]" != no(pn.resolve()) || gn && no(new gn) != b || mn && no(new mn) != S) && (no = function(e) {
- var t = hr(e)
- , n = t == v ? e.constructor : void 0
- , r = n ? Mo(n) : "";
- if (r)
- switch (r) {
- case _n:
- return k;
- case wn:
- return g;
- case Sn:
- return "[object Promise]";
- case xn:
- return b;
- case kn:
- return S
- }
- return t
- }
- );
- var co = Se ? Na : ol;
- function fo(e) {
- var t = e && e.constructor;
- return e === ("function" == typeof t && t.prototype || we)
- }
- function ho(e) {
- return e == e && !Ha(e)
- }
- function po(e, t) {
- return function(n) {
- return null != n && (n[e] === t && (void 0 !== t || e in ge(n)))
- }
- }
- function go(e, t, n) {
- return t = an(void 0 === t ? e.length - 1 : t, 0),
- function() {
- for (var i = arguments, o = -1, a = an(i.length - t, 0), s = r(a); ++o < a; )
- s[o] = i[t + o];
- o = -1;
- for (var l = r(t + 1); ++o < t; )
- l[o] = i[o];
- return l[t] = n(s),
- ot(e, this, l)
- }
- }
- function mo(e, t) {
- return t.length < 2 ? e : dr(e, $r(t, 0, -1))
- }
- function vo(e, t) {
- for (var n = e.length, r = sn(t.length, n), i = vi(e); r--; ) {
- var o = t[r];
- e[r] = ao(o, n) ? i[o] : void 0
- }
- return e
- }
- function yo(e, t) {
- if (("constructor" !== t || "function" != typeof e[t]) && "__proto__" != t)
- return e[t]
- }
- var bo = xo(Wr)
- , _o = Jt || function(e, t) {
- return Ze.setTimeout(e, t)
- }
- , wo = xo(Hr);
- function So(e, t, n) {
- var r = t + "";
- return wo(e, function(e, t) {
- var n = t.length;
- if (!n)
- return e;
- var r = n - 1;
- return t[r] = (n > 1 ? "& " : "") + t[r],
- t = t.join(n > 2 ? ", " : " "),
- e.replace(J, "{\n/* [wrapped with " + t + "] */\n")
- }(r, function(e, t) {
- return st(s, (function(n) {
- var r = "_." + n[0];
- t & n[1] && !dt(e, r) && e.push(r)
- }
- )),
- e.sort()
- }(function(e) {
- var t = e.match(Q);
- return t ? t[1].split(K) : []
- }(r), n)))
- }
- function xo(e) {
- var t = 0
- , n = 0;
- return function() {
- var r = ln()
- , i = 16 - (r - n);
- if (n = r,
- i > 0) {
- if (++t >= 800)
- return arguments[0]
- } else
- t = 0;
- return e.apply(void 0, arguments)
- }
- }
- function ko(e, t) {
- var n = -1
- , r = e.length
- , i = r - 1;
- for (t = void 0 === t ? r : t; ++n < t; ) {
- var o = zr(n, i)
- , a = e[o];
- e[o] = e[n],
- e[n] = a
- }
- return e.length = t,
- e
- }
- var Io = function(e) {
- var t = xa(e, (function(e) {
- return 500 === n.size && n.clear(),
- e
- }
- ))
- , n = t.cache;
- return t
- }((function(e) {
- var t = [];
- return 46 === e.charCodeAt(0) && t.push(""),
- e.replace($, (function(e, n, r, i) {
- t.push(r ? i.replace(te, "$1") : n || e)
- }
- )),
- t
- }
- ));
- function Co(e) {
- if ("string" == typeof e || Ja(e))
- return e;
- var t = e + "";
- return "0" == t && 1 / e == -1 / 0 ? "-0" : t
- }
- function Mo(e) {
- if (null != e) {
- try {
- return xe.call(e)
- } catch (e) {}
- try {
- return e + ""
- } catch (e) {}
- }
- return ""
- }
- function To(e) {
- if (e instanceof Bn)
- return e.clone();
- var t = new On(e.__wrapped__,e.__chain__);
- return t.__actions__ = vi(e.__actions__),
- t.__index__ = e.__index__,
- t.__values__ = e.__values__,
- t
- }
- var Ao = Fr((function(e, t) {
- return za(e) ? Kn(e, or(t, 1, za, !0)) : []
- }
- ))
- , Eo = Fr((function(e, t) {
- var n = Do(t);
- return za(n) && (n = void 0),
- za(e) ? Kn(e, or(t, 1, za, !0), Xi(n, 2)) : []
- }
- ))
- , Oo = Fr((function(e, t) {
- var n = Do(t);
- return za(n) && (n = void 0),
- za(e) ? Kn(e, or(t, 1, za, !0), void 0, n) : []
- }
- ));
- function Bo(e, t, n) {
- var r = null == e ? 0 : e.length;
- if (!r)
- return -1;
- var i = null == n ? 0 : rs(n);
- return i < 0 && (i = an(r + i, 0)),
- _t(e, Xi(t, 3), i)
- }
- function Lo(e, t, n) {
- var r = null == e ? 0 : e.length;
- if (!r)
- return -1;
- var i = r - 1;
- return void 0 !== n && (i = rs(n),
- i = n < 0 ? an(r + i, 0) : sn(i, r - 1)),
- _t(e, Xi(t, 3), i, !0)
- }
- function Po(e) {
- return (null == e ? 0 : e.length) ? or(e, 1) : []
- }
- function Ro(e) {
- return e && e.length ? e[0] : void 0
- }
- var zo = Fr((function(e) {
- var t = ht(e, oi);
- return t.length && t[0] === e[0] ? vr(t) : []
- }
- ))
- , jo = Fr((function(e) {
- var t = Do(e)
- , n = ht(e, oi);
- return t === Do(n) ? t = void 0 : n.pop(),
- n.length && n[0] === e[0] ? vr(n, Xi(t, 2)) : []
- }
- ))
- , Fo = Fr((function(e) {
- var t = Do(e)
- , n = ht(e, oi);
- return (t = "function" == typeof t ? t : void 0) && n.pop(),
- n.length && n[0] === e[0] ? vr(n, void 0, t) : []
- }
- ));
- function Do(e) {
- var t = null == e ? 0 : e.length;
- return t ? e[t - 1] : void 0
- }
- var No = Fr(Uo);
- function Uo(e, t) {
- return e && e.length && t && t.length ? Pr(e, t) : e
- }
- var Wo = Vi((function(e, t) {
- var n = null == e ? 0 : e.length
- , r = qn(e, t);
- return Rr(e, ht(t, (function(e) {
- return ao(e, n) ? +e : e
- }
- )).sort(pi)),
- r
- }
- ));
- function Ho(e) {
- return null == e ? e : dn.call(e)
- }
- var Vo = Fr((function(e) {
- return Qr(or(e, 1, za, !0))
- }
- ))
- , $o = Fr((function(e) {
- var t = Do(e);
- return za(t) && (t = void 0),
- Qr(or(e, 1, za, !0), Xi(t, 2))
- }
- ))
- , Go = Fr((function(e) {
- var t = Do(e);
- return t = "function" == typeof t ? t : void 0,
- Qr(or(e, 1, za, !0), void 0, t)
- }
- ));
- function Zo(e) {
- if (!e || !e.length)
- return [];
- var t = 0;
- return e = ct(e, (function(e) {
- if (za(e))
- return t = an(e.length, t),
- !0
- }
- )),
- At(t, (function(t) {
- return ht(e, It(t))
- }
- ))
- }
- function qo(e, t) {
- if (!e || !e.length)
- return [];
- var n = Zo(e);
- return null == t ? n : ht(n, (function(e) {
- return ot(t, void 0, e)
- }
- ))
- }
- var Yo = Fr((function(e, t) {
- return za(e) ? Kn(e, t) : []
- }
- ))
- , Xo = Fr((function(e) {
- return ri(ct(e, za))
- }
- ))
- , Jo = Fr((function(e) {
- var t = Do(e);
- return za(t) && (t = void 0),
- ri(ct(e, za), Xi(t, 2))
- }
- ))
- , Qo = Fr((function(e) {
- var t = Do(e);
- return t = "function" == typeof t ? t : void 0,
- ri(ct(e, za), void 0, t)
- }
- ))
- , Ko = Fr(Zo);
- var ea = Fr((function(e) {
- var t = e.length
- , n = t > 1 ? e[t - 1] : void 0;
- return n = "function" == typeof n ? (e.pop(),
- n) : void 0,
- qo(e, n)
- }
- ));
- function ta(e) {
- var t = Tn(e);
- return t.__chain__ = !0,
- t
- }
- function na(e, t) {
- return t(e)
- }
- var ra = Vi((function(e) {
- var t = e.length
- , n = t ? e[0] : 0
- , r = this.__wrapped__
- , i = function(t) {
- return qn(t, e)
- };
- return !(t > 1 || this.__actions__.length) && r instanceof Bn && ao(n) ? ((r = r.slice(n, +n + (t ? 1 : 0))).__actions__.push({
- func: na,
- args: [i],
- thisArg: void 0
- }),
- new On(r,this.__chain__).thru((function(e) {
- return t && !e.length && e.push(void 0),
- e
- }
- ))) : this.thru(i)
- }
- ));
- var ia = bi((function(e, t, n) {
- ke.call(e, n) ? ++e[n] : Zn(e, n, 1)
- }
- ));
- var oa = Ci(Bo)
- , aa = Ci(Lo);
- function sa(e, t) {
- return (La(e) ? st : er)(e, Xi(t, 3))
- }
- function la(e, t) {
- return (La(e) ? lt : tr)(e, Xi(t, 3))
- }
- var ua = bi((function(e, t, n) {
- ke.call(e, n) ? e[n].push(t) : Zn(e, n, [t])
- }
- ));
- var ca = Fr((function(e, t, n) {
- var i = -1
- , o = "function" == typeof t
- , a = Ra(e) ? r(e.length) : [];
- return er(e, (function(e) {
- a[++i] = o ? ot(t, e, n) : yr(e, t, n)
- }
- )),
- a
- }
- ))
- , da = bi((function(e, t, n) {
- Zn(e, n, t)
- }
- ));
- function fa(e, t) {
- return (La(e) ? ht : Mr)(e, Xi(t, 3))
- }
- var ha = bi((function(e, t, n) {
- e[n ? 0 : 1].push(t)
- }
- ), (function() {
- return [[], []]
- }
- ));
- var pa = Fr((function(e, t) {
- if (null == e)
- return [];
- var n = t.length;
- return n > 1 && so(e, t[0], t[1]) ? t = [] : n > 2 && so(t[0], t[1], t[2]) && (t = [t[0]]),
- Br(e, or(t, 1), [])
- }
- ))
- , ga = Xt || function() {
- return Ze.Date.now()
- }
- ;
- function ma(e, t, n) {
- return t = n ? void 0 : t,
- Di(e, 128, void 0, void 0, void 0, void 0, t = e && null == t ? e.length : t)
- }
- function va(e, t) {
- var n;
- if ("function" != typeof t)
- throw new ye(o);
- return e = rs(e),
- function() {
- return --e > 0 && (n = t.apply(this, arguments)),
- e <= 1 && (t = void 0),
- n
- }
- }
- var ya = Fr((function(e, t, n) {
- var r = 1;
- if (n.length) {
- var i = Wt(n, Yi(ya));
- r |= 32
- }
- return Di(e, r, t, n, i)
- }
- ))
- , ba = Fr((function(e, t, n) {
- var r = 3;
- if (n.length) {
- var i = Wt(n, Yi(ba));
- r |= 32
- }
- return Di(t, r, e, n, i)
- }
- ));
- function _a(e, t, n) {
- var r, i, a, s, l, u, c = 0, d = !1, f = !1, h = !0;
- if ("function" != typeof e)
- throw new ye(o);
- function p(t) {
- var n = r
- , o = i;
- return r = i = void 0,
- c = t,
- s = e.apply(o, n)
- }
- function g(e) {
- return c = e,
- l = _o(v, t),
- d ? p(e) : s
- }
- function m(e) {
- var n = e - u;
- return void 0 === u || n >= t || n < 0 || f && e - c >= a
- }
- function v() {
- var e = ga();
- if (m(e))
- return y(e);
- l = _o(v, function(e) {
- var n = t - (e - u);
- return f ? sn(n, a - (e - c)) : n
- }(e))
- }
- function y(e) {
- return l = void 0,
- h && r ? p(e) : (r = i = void 0,
- s)
- }
- function b() {
- var e = ga()
- , n = m(e);
- if (r = arguments,
- i = this,
- u = e,
- n) {
- if (void 0 === l)
- return g(u);
- if (f)
- return ci(l),
- l = _o(v, t),
- p(u)
- }
- return void 0 === l && (l = _o(v, t)),
- s
- }
- return t = os(t) || 0,
- Ha(n) && (d = !!n.leading,
- a = (f = "maxWait"in n) ? an(os(n.maxWait) || 0, t) : a,
- h = "trailing"in n ? !!n.trailing : h),
- b.cancel = function() {
- void 0 !== l && ci(l),
- c = 0,
- r = u = i = l = void 0
- }
- ,
- b.flush = function() {
- return void 0 === l ? s : y(ga())
- }
- ,
- b
- }
- var wa = Fr((function(e, t) {
- return Qn(e, 1, t)
- }
- ))
- , Sa = Fr((function(e, t, n) {
- return Qn(e, os(t) || 0, n)
- }
- ));
- function xa(e, t) {
- if ("function" != typeof e || null != t && "function" != typeof t)
- throw new ye(o);
- var n = function() {
- var r = arguments
- , i = t ? t.apply(this, r) : r[0]
- , o = n.cache;
- if (o.has(i))
- return o.get(i);
- var a = e.apply(this, r);
- return n.cache = o.set(i, a) || o,
- a
- };
- return n.cache = new (xa.Cache || Rn),
- n
- }
- function ka(e) {
- if ("function" != typeof e)
- throw new ye(o);
- return function() {
- var t = arguments;
- switch (t.length) {
- case 0:
- return !e.call(this);
- case 1:
- return !e.call(this, t[0]);
- case 2:
- return !e.call(this, t[0], t[1]);
- case 3:
- return !e.call(this, t[0], t[1], t[2])
- }
- return !e.apply(this, t)
- }
- }
- xa.Cache = Rn;
- var Ia = li((function(e, t) {
- var n = (t = 1 == t.length && La(t[0]) ? ht(t[0], Et(Xi())) : ht(or(t, 1), Et(Xi()))).length;
- return Fr((function(r) {
- for (var i = -1, o = sn(r.length, n); ++i < o; )
- r[i] = t[i].call(this, r[i]);
- return ot(e, this, r)
- }
- ))
- }
- ))
- , Ca = Fr((function(e, t) {
- return Di(e, 32, void 0, t, Wt(t, Yi(Ca)))
- }
- ))
- , Ma = Fr((function(e, t) {
- return Di(e, 64, void 0, t, Wt(t, Yi(Ma)))
- }
- ))
- , Ta = Vi((function(e, t) {
- return Di(e, 256, void 0, void 0, void 0, t)
- }
- ));
- function Aa(e, t) {
- return e === t || e != e && t != t
- }
- var Ea = Pi(pr)
- , Oa = Pi((function(e, t) {
- return e >= t
- }
- ))
- , Ba = br(function() {
- return arguments
- }()) ? br : function(e) {
- return Va(e) && ke.call(e, "callee") && !qe.call(e, "callee")
- }
- , La = r.isArray
- , Pa = Ke ? Et(Ke) : function(e) {
- return Va(e) && hr(e) == x
- }
- ;
- function Ra(e) {
- return null != e && Wa(e.length) && !Na(e)
- }
- function za(e) {
- return Va(e) && Ra(e)
- }
- var ja = tn || ol
- , Fa = et ? Et(et) : function(e) {
- return Va(e) && hr(e) == d
- }
- ;
- function Da(e) {
- if (!Va(e))
- return !1;
- var t = hr(e);
- return t == f || "[object DOMException]" == t || "string" == typeof e.message && "string" == typeof e.name && !Za(e)
- }
- function Na(e) {
- if (!Ha(e))
- return !1;
- var t = hr(e);
- return t == h || t == p || "[object AsyncFunction]" == t || "[object Proxy]" == t
- }
- function Ua(e) {
- return "number" == typeof e && e == rs(e)
- }
- function Wa(e) {
- return "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991
- }
- function Ha(e) {
- var t = typeof e;
- return null != e && ("object" == t || "function" == t)
- }
- function Va(e) {
- return null != e && "object" == typeof e
- }
- var $a = tt ? Et(tt) : function(e) {
- return Va(e) && no(e) == g
- }
- ;
- function Ga(e) {
- return "number" == typeof e || Va(e) && hr(e) == m
- }
- function Za(e) {
- if (!Va(e) || hr(e) != v)
- return !1;
- var t = $e(e);
- if (null === t)
- return !0;
- var n = ke.call(t, "constructor") && t.constructor;
- return "function" == typeof n && n instanceof n && xe.call(n) == Te
- }
- var qa = nt ? Et(nt) : function(e) {
- return Va(e) && hr(e) == y
- }
- ;
- var Ya = rt ? Et(rt) : function(e) {
- return Va(e) && no(e) == b
- }
- ;
- function Xa(e) {
- return "string" == typeof e || !La(e) && Va(e) && hr(e) == _
- }
- function Ja(e) {
- return "symbol" == typeof e || Va(e) && hr(e) == w
- }
- var Qa = it ? Et(it) : function(e) {
- return Va(e) && Wa(e.length) && !!Ne[hr(e)]
- }
- ;
- var Ka = Pi(Cr)
- , es = Pi((function(e, t) {
- return e <= t
- }
- ));
- function ts(e) {
- if (!e)
- return [];
- if (Ra(e))
- return Xa(e) ? Gt(e) : vi(e);
- if (Qe && e[Qe])
- return function(e) {
- for (var t, n = []; !(t = e.next()).done; )
- n.push(t.value);
- return n
- }(e[Qe]());
- var t = no(e);
- return (t == g ? Nt : t == b ? Ht : As)(e)
- }
- function ns(e) {
- return e ? (e = os(e)) === 1 / 0 || e === -1 / 0 ? 17976931348623157e292 * (e < 0 ? -1 : 1) : e == e ? e : 0 : 0 === e ? e : 0
- }
- function rs(e) {
- var t = ns(e)
- , n = t % 1;
- return t == t ? n ? t - n : t : 0
- }
- function is(e) {
- return e ? Yn(rs(e), 0, 4294967295) : 0
- }
- function os(e) {
- if ("number" == typeof e)
- return e;
- if (Ja(e))
- return NaN;
- if (Ha(e)) {
- var t = "function" == typeof e.valueOf ? e.valueOf() : e;
- e = Ha(t) ? t + "" : t
- }
- if ("string" != typeof e)
- return 0 === e ? e : +e;
- e = e.replace(q, "");
- var n = oe.test(e);
- return n || se.test(e) ? Ve(e.slice(2), n ? 2 : 8) : ie.test(e) ? NaN : +e
- }
- function as(e) {
- return yi(e, ws(e))
- }
- function ss(e) {
- return null == e ? "" : Jr(e)
- }
- var ls = _i((function(e, t) {
- if (fo(t) || Ra(t))
- yi(t, _s(t), e);
- else
- for (var n in t)
- ke.call(t, n) && Hn(e, n, t[n])
- }
- ))
- , us = _i((function(e, t) {
- yi(t, ws(t), e)
- }
- ))
- , cs = _i((function(e, t, n, r) {
- yi(t, ws(t), e, r)
- }
- ))
- , ds = _i((function(e, t, n, r) {
- yi(t, _s(t), e, r)
- }
- ))
- , fs = Vi(qn);
- var hs = Fr((function(e, t) {
- e = ge(e);
- var n = -1
- , r = t.length
- , i = r > 2 ? t[2] : void 0;
- for (i && so(t[0], t[1], i) && (r = 1); ++n < r; )
- for (var o = t[n], a = ws(o), s = -1, l = a.length; ++s < l; ) {
- var u = a[s]
- , c = e[u];
- (void 0 === c || Aa(c, we[u]) && !ke.call(e, u)) && (e[u] = o[u])
- }
- return e
- }
- ))
- , ps = Fr((function(e) {
- return e.push(void 0, Ui),
- ot(xs, void 0, e)
- }
- ));
- function gs(e, t, n) {
- var r = null == e ? void 0 : dr(e, t);
- return void 0 === r ? n : r
- }
- function ms(e, t) {
- return null != e && ro(e, t, mr)
- }
- var vs = Ai((function(e, t, n) {
- null != t && "function" != typeof t.toString && (t = Me.call(t)),
- e[t] = n
- }
- ), Hs(Gs))
- , ys = Ai((function(e, t, n) {
- null != t && "function" != typeof t.toString && (t = Me.call(t)),
- ke.call(e, t) ? e[t].push(n) : e[t] = [n]
- }
- ), Xi)
- , bs = Fr(yr);
- function _s(e) {
- return Ra(e) ? Fn(e) : kr(e)
- }
- function ws(e) {
- return Ra(e) ? Fn(e, !0) : Ir(e)
- }
- var Ss = _i((function(e, t, n) {
- Er(e, t, n)
- }
- ))
- , xs = _i((function(e, t, n, r) {
- Er(e, t, n, r)
- }
- ))
- , ks = Vi((function(e, t) {
- var n = {};
- if (null == e)
- return n;
- var r = !1;
- t = ht(t, (function(t) {
- return t = si(t, e),
- r || (r = t.length > 1),
- t
- }
- )),
- yi(e, Gi(e), n),
- r && (n = Xn(n, 7, Wi));
- for (var i = t.length; i--; )
- Kr(n, t[i]);
- return n
- }
- ));
- var Is = Vi((function(e, t) {
- return null == e ? {} : function(e, t) {
- return Lr(e, t, (function(t, n) {
- return ms(e, n)
- }
- ))
- }(e, t)
- }
- ));
- function Cs(e, t) {
- if (null == e)
- return {};
- var n = ht(Gi(e), (function(e) {
- return [e]
- }
- ));
- return t = Xi(t),
- Lr(e, n, (function(e, n) {
- return t(e, n[0])
- }
- ))
- }
- var Ms = Fi(_s)
- , Ts = Fi(ws);
- function As(e) {
- return null == e ? [] : Ot(e, _s(e))
- }
- var Es = ki((function(e, t, n) {
- return t = t.toLowerCase(),
- e + (n ? Os(t) : t)
- }
- ));
- function Os(e) {
- return Ds(ss(e).toLowerCase())
- }
- function Bs(e) {
- return (e = ss(e)) && e.replace(ue, zt).replace(Le, "")
- }
- var Ls = ki((function(e, t, n) {
- return e + (n ? "-" : "") + t.toLowerCase()
- }
- ))
- , Ps = ki((function(e, t, n) {
- return e + (n ? " " : "") + t.toLowerCase()
- }
- ))
- , Rs = xi("toLowerCase");
- var zs = ki((function(e, t, n) {
- return e + (n ? "_" : "") + t.toLowerCase()
- }
- ));
- var js = ki((function(e, t, n) {
- return e + (n ? " " : "") + Ds(t)
- }
- ));
- var Fs = ki((function(e, t, n) {
- return e + (n ? " " : "") + t.toUpperCase()
- }
- ))
- , Ds = xi("toUpperCase");
- function Ns(e, t, n) {
- return e = ss(e),
- void 0 === (t = n ? void 0 : t) ? function(e) {
- return je.test(e)
- }(e) ? function(e) {
- return e.match(Re) || []
- }(e) : function(e) {
- return e.match(ee) || []
- }(e) : e.match(t) || []
- }
- var Us = Fr((function(e, t) {
- try {
- return ot(e, void 0, t)
- } catch (e) {
- return Da(e) ? e : new fe(e)
- }
- }
- ))
- , Ws = Vi((function(e, t) {
- return st(t, (function(t) {
- t = Co(t),
- Zn(e, t, ya(e[t], e))
- }
- )),
- e
- }
- ));
- function Hs(e) {
- return function() {
- return e
- }
- }
- var Vs = Mi()
- , $s = Mi(!0);
- function Gs(e) {
- return e
- }
- function Zs(e) {
- return xr("function" == typeof e ? e : Xn(e, 1))
- }
- var qs = Fr((function(e, t) {
- return function(n) {
- return yr(n, e, t)
- }
- }
- ))
- , Ys = Fr((function(e, t) {
- return function(n) {
- return yr(e, n, t)
- }
- }
- ));
- function Xs(e, t, n) {
- var r = _s(t)
- , i = cr(t, r);
- null != n || Ha(t) && (i.length || !r.length) || (n = t,
- t = e,
- e = this,
- i = cr(t, _s(t)));
- var o = !(Ha(n) && "chain"in n && !n.chain)
- , a = Na(e);
- return st(i, (function(n) {
- var r = t[n];
- e[n] = r,
- a && (e.prototype[n] = function() {
- var t = this.__chain__;
- if (o || t) {
- var n = e(this.__wrapped__)
- , i = n.__actions__ = vi(this.__actions__);
- return i.push({
- func: r,
- args: arguments,
- thisArg: e
- }),
- n.__chain__ = t,
- n
- }
- return r.apply(e, pt([this.value()], arguments))
- }
- )
- }
- )),
- e
- }
- function Js() {}
- var Qs = Oi(ht)
- , Ks = Oi(ut)
- , el = Oi(vt);
- function tl(e) {
- return lo(e) ? It(Co(e)) : function(e) {
- return function(t) {
- return dr(t, e)
- }
- }(e)
- }
- var nl = Li()
- , rl = Li(!0);
- function il() {
- return []
- }
- function ol() {
- return !1
- }
- var al = Ei((function(e, t) {
- return e + t
- }
- ), 0)
- , sl = zi("ceil")
- , ll = Ei((function(e, t) {
- return e / t
- }
- ), 1)
- , ul = zi("floor");
- var cl, dl = Ei((function(e, t) {
- return e * t
- }
- ), 1), fl = zi("round"), hl = Ei((function(e, t) {
- return e - t
- }
- ), 0);
- return Tn.after = function(e, t) {
- if ("function" != typeof t)
- throw new ye(o);
- return e = rs(e),
- function() {
- if (--e < 1)
- return t.apply(this, arguments)
- }
- }
- ,
- Tn.ary = ma,
- Tn.assign = ls,
- Tn.assignIn = us,
- Tn.assignInWith = cs,
- Tn.assignWith = ds,
- Tn.at = fs,
- Tn.before = va,
- Tn.bind = ya,
- Tn.bindAll = Ws,
- Tn.bindKey = ba,
- Tn.castArray = function() {
- if (!arguments.length)
- return [];
- var e = arguments[0];
- return La(e) ? e : [e]
- }
- ,
- Tn.chain = ta,
- Tn.chunk = function(e, t, n) {
- t = (n ? so(e, t, n) : void 0 === t) ? 1 : an(rs(t), 0);
- var i = null == e ? 0 : e.length;
- if (!i || t < 1)
- return [];
- for (var o = 0, a = 0, s = r(Qt(i / t)); o < i; )
- s[a++] = $r(e, o, o += t);
- return s
- }
- ,
- Tn.compact = function(e) {
- for (var t = -1, n = null == e ? 0 : e.length, r = 0, i = []; ++t < n; ) {
- var o = e[t];
- o && (i[r++] = o)
- }
- return i
- }
- ,
- Tn.concat = function() {
- var e = arguments.length;
- if (!e)
- return [];
- for (var t = r(e - 1), n = arguments[0], i = e; i--; )
- t[i - 1] = arguments[i];
- return pt(La(n) ? vi(n) : [n], or(t, 1))
- }
- ,
- Tn.cond = function(e) {
- var t = null == e ? 0 : e.length
- , n = Xi();
- return e = t ? ht(e, (function(e) {
- if ("function" != typeof e[1])
- throw new ye(o);
- return [n(e[0]), e[1]]
- }
- )) : [],
- Fr((function(n) {
- for (var r = -1; ++r < t; ) {
- var i = e[r];
- if (ot(i[0], this, n))
- return ot(i[1], this, n)
- }
- }
- ))
- }
- ,
- Tn.conforms = function(e) {
- return function(e) {
- var t = _s(e);
- return function(n) {
- return Jn(n, e, t)
- }
- }(Xn(e, 1))
- }
- ,
- Tn.constant = Hs,
- Tn.countBy = ia,
- Tn.create = function(e, t) {
- var n = An(e);
- return null == t ? n : Gn(n, t)
- }
- ,
- Tn.curry = function e(t, n, r) {
- var i = Di(t, 8, void 0, void 0, void 0, void 0, void 0, n = r ? void 0 : n);
- return i.placeholder = e.placeholder,
- i
- }
- ,
- Tn.curryRight = function e(t, n, r) {
- var i = Di(t, 16, void 0, void 0, void 0, void 0, void 0, n = r ? void 0 : n);
- return i.placeholder = e.placeholder,
- i
- }
- ,
- Tn.debounce = _a,
- Tn.defaults = hs,
- Tn.defaultsDeep = ps,
- Tn.defer = wa,
- Tn.delay = Sa,
- Tn.difference = Ao,
- Tn.differenceBy = Eo,
- Tn.differenceWith = Oo,
- Tn.drop = function(e, t, n) {
- var r = null == e ? 0 : e.length;
- return r ? $r(e, (t = n || void 0 === t ? 1 : rs(t)) < 0 ? 0 : t, r) : []
- }
- ,
- Tn.dropRight = function(e, t, n) {
- var r = null == e ? 0 : e.length;
- return r ? $r(e, 0, (t = r - (t = n || void 0 === t ? 1 : rs(t))) < 0 ? 0 : t) : []
- }
- ,
- Tn.dropRightWhile = function(e, t) {
- return e && e.length ? ti(e, Xi(t, 3), !0, !0) : []
- }
- ,
- Tn.dropWhile = function(e, t) {
- return e && e.length ? ti(e, Xi(t, 3), !0) : []
- }
- ,
- Tn.fill = function(e, t, n, r) {
- var i = null == e ? 0 : e.length;
- return i ? (n && "number" != typeof n && so(e, t, n) && (n = 0,
- r = i),
- function(e, t, n, r) {
- var i = e.length;
- for ((n = rs(n)) < 0 && (n = -n > i ? 0 : i + n),
- (r = void 0 === r || r > i ? i : rs(r)) < 0 && (r += i),
- r = n > r ? 0 : is(r); n < r; )
- e[n++] = t;
- return e
- }(e, t, n, r)) : []
- }
- ,
- Tn.filter = function(e, t) {
- return (La(e) ? ct : ir)(e, Xi(t, 3))
- }
- ,
- Tn.flatMap = function(e, t) {
- return or(fa(e, t), 1)
- }
- ,
- Tn.flatMapDeep = function(e, t) {
- return or(fa(e, t), 1 / 0)
- }
- ,
- Tn.flatMapDepth = function(e, t, n) {
- return n = void 0 === n ? 1 : rs(n),
- or(fa(e, t), n)
- }
- ,
- Tn.flatten = Po,
- Tn.flattenDeep = function(e) {
- return (null == e ? 0 : e.length) ? or(e, 1 / 0) : []
- }
- ,
- Tn.flattenDepth = function(e, t) {
- return (null == e ? 0 : e.length) ? or(e, t = void 0 === t ? 1 : rs(t)) : []
- }
- ,
- Tn.flip = function(e) {
- return Di(e, 512)
- }
- ,
- Tn.flow = Vs,
- Tn.flowRight = $s,
- Tn.fromPairs = function(e) {
- for (var t = -1, n = null == e ? 0 : e.length, r = {}; ++t < n; ) {
- var i = e[t];
- r[i[0]] = i[1]
- }
- return r
- }
- ,
- Tn.functions = function(e) {
- return null == e ? [] : cr(e, _s(e))
- }
- ,
- Tn.functionsIn = function(e) {
- return null == e ? [] : cr(e, ws(e))
- }
- ,
- Tn.groupBy = ua,
- Tn.initial = function(e) {
- return (null == e ? 0 : e.length) ? $r(e, 0, -1) : []
- }
- ,
- Tn.intersection = zo,
- Tn.intersectionBy = jo,
- Tn.intersectionWith = Fo,
- Tn.invert = vs,
- Tn.invertBy = ys,
- Tn.invokeMap = ca,
- Tn.iteratee = Zs,
- Tn.keyBy = da,
- Tn.keys = _s,
- Tn.keysIn = ws,
- Tn.map = fa,
- Tn.mapKeys = function(e, t) {
- var n = {};
- return t = Xi(t, 3),
- lr(e, (function(e, r, i) {
- Zn(n, t(e, r, i), e)
- }
- )),
- n
- }
- ,
- Tn.mapValues = function(e, t) {
- var n = {};
- return t = Xi(t, 3),
- lr(e, (function(e, r, i) {
- Zn(n, r, t(e, r, i))
- }
- )),
- n
- }
- ,
- Tn.matches = function(e) {
- return Tr(Xn(e, 1))
- }
- ,
- Tn.matchesProperty = function(e, t) {
- return Ar(e, Xn(t, 1))
- }
- ,
- Tn.memoize = xa,
- Tn.merge = Ss,
- Tn.mergeWith = xs,
- Tn.method = qs,
- Tn.methodOf = Ys,
- Tn.mixin = Xs,
- Tn.negate = ka,
- Tn.nthArg = function(e) {
- return e = rs(e),
- Fr((function(t) {
- return Or(t, e)
- }
- ))
- }
- ,
- Tn.omit = ks,
- Tn.omitBy = function(e, t) {
- return Cs(e, ka(Xi(t)))
- }
- ,
- Tn.once = function(e) {
- return va(2, e)
- }
- ,
- Tn.orderBy = function(e, t, n, r) {
- return null == e ? [] : (La(t) || (t = null == t ? [] : [t]),
- La(n = r ? void 0 : n) || (n = null == n ? [] : [n]),
- Br(e, t, n))
- }
- ,
- Tn.over = Qs,
- Tn.overArgs = Ia,
- Tn.overEvery = Ks,
- Tn.overSome = el,
- Tn.partial = Ca,
- Tn.partialRight = Ma,
- Tn.partition = ha,
- Tn.pick = Is,
- Tn.pickBy = Cs,
- Tn.property = tl,
- Tn.propertyOf = function(e) {
- return function(t) {
- return null == e ? void 0 : dr(e, t)
- }
- }
- ,
- Tn.pull = No,
- Tn.pullAll = Uo,
- Tn.pullAllBy = function(e, t, n) {
- return e && e.length && t && t.length ? Pr(e, t, Xi(n, 2)) : e
- }
- ,
- Tn.pullAllWith = function(e, t, n) {
- return e && e.length && t && t.length ? Pr(e, t, void 0, n) : e
- }
- ,
- Tn.pullAt = Wo,
- Tn.range = nl,
- Tn.rangeRight = rl,
- Tn.rearg = Ta,
- Tn.reject = function(e, t) {
- return (La(e) ? ct : ir)(e, ka(Xi(t, 3)))
- }
- ,
- Tn.remove = function(e, t) {
- var n = [];
- if (!e || !e.length)
- return n;
- var r = -1
- , i = []
- , o = e.length;
- for (t = Xi(t, 3); ++r < o; ) {
- var a = e[r];
- t(a, r, e) && (n.push(a),
- i.push(r))
- }
- return Rr(e, i),
- n
- }
- ,
- Tn.rest = function(e, t) {
- if ("function" != typeof e)
- throw new ye(o);
- return Fr(e, t = void 0 === t ? t : rs(t))
- }
- ,
- Tn.reverse = Ho,
- Tn.sampleSize = function(e, t, n) {
- return t = (n ? so(e, t, n) : void 0 === t) ? 1 : rs(t),
- (La(e) ? Nn : Nr)(e, t)
- }
- ,
- Tn.set = function(e, t, n) {
- return null == e ? e : Ur(e, t, n)
- }
- ,
- Tn.setWith = function(e, t, n, r) {
- return r = "function" == typeof r ? r : void 0,
- null == e ? e : Ur(e, t, n, r)
- }
- ,
- Tn.shuffle = function(e) {
- return (La(e) ? Un : Vr)(e)
- }
- ,
- Tn.slice = function(e, t, n) {
- var r = null == e ? 0 : e.length;
- return r ? (n && "number" != typeof n && so(e, t, n) ? (t = 0,
- n = r) : (t = null == t ? 0 : rs(t),
- n = void 0 === n ? r : rs(n)),
- $r(e, t, n)) : []
- }
- ,
- Tn.sortBy = pa,
- Tn.sortedUniq = function(e) {
- return e && e.length ? Yr(e) : []
- }
- ,
- Tn.sortedUniqBy = function(e, t) {
- return e && e.length ? Yr(e, Xi(t, 2)) : []
- }
- ,
- Tn.split = function(e, t, n) {
- return n && "number" != typeof n && so(e, t, n) && (t = n = void 0),
- (n = void 0 === n ? 4294967295 : n >>> 0) ? (e = ss(e)) && ("string" == typeof t || null != t && !qa(t)) && !(t = Jr(t)) && Dt(e) ? ui(Gt(e), 0, n) : e.split(t, n) : []
- }
- ,
- Tn.spread = function(e, t) {
- if ("function" != typeof e)
- throw new ye(o);
- return t = null == t ? 0 : an(rs(t), 0),
- Fr((function(n) {
- var r = n[t]
- , i = ui(n, 0, t);
- return r && pt(i, r),
- ot(e, this, i)
- }
- ))
- }
- ,
- Tn.tail = function(e) {
- var t = null == e ? 0 : e.length;
- return t ? $r(e, 1, t) : []
- }
- ,
- Tn.take = function(e, t, n) {
- return e && e.length ? $r(e, 0, (t = n || void 0 === t ? 1 : rs(t)) < 0 ? 0 : t) : []
- }
- ,
- Tn.takeRight = function(e, t, n) {
- var r = null == e ? 0 : e.length;
- return r ? $r(e, (t = r - (t = n || void 0 === t ? 1 : rs(t))) < 0 ? 0 : t, r) : []
- }
- ,
- Tn.takeRightWhile = function(e, t) {
- return e && e.length ? ti(e, Xi(t, 3), !1, !0) : []
- }
- ,
- Tn.takeWhile = function(e, t) {
- return e && e.length ? ti(e, Xi(t, 3)) : []
- }
- ,
- Tn.tap = function(e, t) {
- return t(e),
- e
- }
- ,
- Tn.throttle = function(e, t, n) {
- var r = !0
- , i = !0;
- if ("function" != typeof e)
- throw new ye(o);
- return Ha(n) && (r = "leading"in n ? !!n.leading : r,
- i = "trailing"in n ? !!n.trailing : i),
- _a(e, t, {
- leading: r,
- maxWait: t,
- trailing: i
- })
- }
- ,
- Tn.thru = na,
- Tn.toArray = ts,
- Tn.toPairs = Ms,
- Tn.toPairsIn = Ts,
- Tn.toPath = function(e) {
- return La(e) ? ht(e, Co) : Ja(e) ? [e] : vi(Io(ss(e)))
- }
- ,
- Tn.toPlainObject = as,
- Tn.transform = function(e, t, n) {
- var r = La(e)
- , i = r || ja(e) || Qa(e);
- if (t = Xi(t, 4),
- null == n) {
- var o = e && e.constructor;
- n = i ? r ? new o : [] : Ha(e) && Na(o) ? An($e(e)) : {}
- }
- return (i ? st : lr)(e, (function(e, r, i) {
- return t(n, e, r, i)
- }
- )),
- n
- }
- ,
- Tn.unary = function(e) {
- return ma(e, 1)
- }
- ,
- Tn.union = Vo,
- Tn.unionBy = $o,
- Tn.unionWith = Go,
- Tn.uniq = function(e) {
- return e && e.length ? Qr(e) : []
- }
- ,
- Tn.uniqBy = function(e, t) {
- return e && e.length ? Qr(e, Xi(t, 2)) : []
- }
- ,
- Tn.uniqWith = function(e, t) {
- return t = "function" == typeof t ? t : void 0,
- e && e.length ? Qr(e, void 0, t) : []
- }
- ,
- Tn.unset = function(e, t) {
- return null == e || Kr(e, t)
- }
- ,
- Tn.unzip = Zo,
- Tn.unzipWith = qo,
- Tn.update = function(e, t, n) {
- return null == e ? e : ei(e, t, ai(n))
- }
- ,
- Tn.updateWith = function(e, t, n, r) {
- return r = "function" == typeof r ? r : void 0,
- null == e ? e : ei(e, t, ai(n), r)
- }
- ,
- Tn.values = As,
- Tn.valuesIn = function(e) {
- return null == e ? [] : Ot(e, ws(e))
- }
- ,
- Tn.without = Yo,
- Tn.words = Ns,
- Tn.wrap = function(e, t) {
- return Ca(ai(t), e)
- }
- ,
- Tn.xor = Xo,
- Tn.xorBy = Jo,
- Tn.xorWith = Qo,
- Tn.zip = Ko,
- Tn.zipObject = function(e, t) {
- return ii(e || [], t || [], Hn)
- }
- ,
- Tn.zipObjectDeep = function(e, t) {
- return ii(e || [], t || [], Ur)
- }
- ,
- Tn.zipWith = ea,
- Tn.entries = Ms,
- Tn.entriesIn = Ts,
- Tn.extend = us,
- Tn.extendWith = cs,
- Xs(Tn, Tn),
- Tn.add = al,
- Tn.attempt = Us,
- Tn.camelCase = Es,
- Tn.capitalize = Os,
- Tn.ceil = sl,
- Tn.clamp = function(e, t, n) {
- return void 0 === n && (n = t,
- t = void 0),
- void 0 !== n && (n = (n = os(n)) == n ? n : 0),
- void 0 !== t && (t = (t = os(t)) == t ? t : 0),
- Yn(os(e), t, n)
- }
- ,
- Tn.clone = function(e) {
- return Xn(e, 4)
- }
- ,
- Tn.cloneDeep = function(e) {
- return Xn(e, 5)
- }
- ,
- Tn.cloneDeepWith = function(e, t) {
- return Xn(e, 5, t = "function" == typeof t ? t : void 0)
- }
- ,
- Tn.cloneWith = function(e, t) {
- return Xn(e, 4, t = "function" == typeof t ? t : void 0)
- }
- ,
- Tn.conformsTo = function(e, t) {
- return null == t || Jn(e, t, _s(t))
- }
- ,
- Tn.deburr = Bs,
- Tn.defaultTo = function(e, t) {
- return null == e || e != e ? t : e
- }
- ,
- Tn.divide = ll,
- Tn.endsWith = function(e, t, n) {
- e = ss(e),
- t = Jr(t);
- var r = e.length
- , i = n = void 0 === n ? r : Yn(rs(n), 0, r);
- return (n -= t.length) >= 0 && e.slice(n, i) == t
- }
- ,
- Tn.eq = Aa,
- Tn.escape = function(e) {
- return (e = ss(e)) && D.test(e) ? e.replace(j, jt) : e
- }
- ,
- Tn.escapeRegExp = function(e) {
- return (e = ss(e)) && Z.test(e) ? e.replace(G, "\\$&") : e
- }
- ,
- Tn.every = function(e, t, n) {
- var r = La(e) ? ut : nr;
- return n && so(e, t, n) && (t = void 0),
- r(e, Xi(t, 3))
- }
- ,
- Tn.find = oa,
- Tn.findIndex = Bo,
- Tn.findKey = function(e, t) {
- return bt(e, Xi(t, 3), lr)
- }
- ,
- Tn.findLast = aa,
- Tn.findLastIndex = Lo,
- Tn.findLastKey = function(e, t) {
- return bt(e, Xi(t, 3), ur)
- }
- ,
- Tn.floor = ul,
- Tn.forEach = sa,
- Tn.forEachRight = la,
- Tn.forIn = function(e, t) {
- return null == e ? e : ar(e, Xi(t, 3), ws)
- }
- ,
- Tn.forInRight = function(e, t) {
- return null == e ? e : sr(e, Xi(t, 3), ws)
- }
- ,
- Tn.forOwn = function(e, t) {
- return e && lr(e, Xi(t, 3))
- }
- ,
- Tn.forOwnRight = function(e, t) {
- return e && ur(e, Xi(t, 3))
- }
- ,
- Tn.get = gs,
- Tn.gt = Ea,
- Tn.gte = Oa,
- Tn.has = function(e, t) {
- return null != e && ro(e, t, gr)
- }
- ,
- Tn.hasIn = ms,
- Tn.head = Ro,
- Tn.identity = Gs,
- Tn.includes = function(e, t, n, r) {
- e = Ra(e) ? e : As(e),
- n = n && !r ? rs(n) : 0;
- var i = e.length;
- return n < 0 && (n = an(i + n, 0)),
- Xa(e) ? n <= i && e.indexOf(t, n) > -1 : !!i && wt(e, t, n) > -1
- }
- ,
- Tn.indexOf = function(e, t, n) {
- var r = null == e ? 0 : e.length;
- if (!r)
- return -1;
- var i = null == n ? 0 : rs(n);
- return i < 0 && (i = an(r + i, 0)),
- wt(e, t, i)
- }
- ,
- Tn.inRange = function(e, t, n) {
- return t = ns(t),
- void 0 === n ? (n = t,
- t = 0) : n = ns(n),
- function(e, t, n) {
- return e >= sn(t, n) && e < an(t, n)
- }(e = os(e), t, n)
- }
- ,
- Tn.invoke = bs,
- Tn.isArguments = Ba,
- Tn.isArray = La,
- Tn.isArrayBuffer = Pa,
- Tn.isArrayLike = Ra,
- Tn.isArrayLikeObject = za,
- Tn.isBoolean = function(e) {
- return !0 === e || !1 === e || Va(e) && hr(e) == c
- }
- ,
- Tn.isBuffer = ja,
- Tn.isDate = Fa,
- Tn.isElement = function(e) {
- return Va(e) && 1 === e.nodeType && !Za(e)
- }
- ,
- Tn.isEmpty = function(e) {
- if (null == e)
- return !0;
- if (Ra(e) && (La(e) || "string" == typeof e || "function" == typeof e.splice || ja(e) || Qa(e) || Ba(e)))
- return !e.length;
- var t = no(e);
- if (t == g || t == b)
- return !e.size;
- if (fo(e))
- return !kr(e).length;
- for (var n in e)
- if (ke.call(e, n))
- return !1;
- return !0
- }
- ,
- Tn.isEqual = function(e, t) {
- return _r(e, t)
- }
- ,
- Tn.isEqualWith = function(e, t, n) {
- var r = (n = "function" == typeof n ? n : void 0) ? n(e, t) : void 0;
- return void 0 === r ? _r(e, t, void 0, n) : !!r
- }
- ,
- Tn.isError = Da,
- Tn.isFinite = function(e) {
- return "number" == typeof e && nn(e)
- }
- ,
- Tn.isFunction = Na,
- Tn.isInteger = Ua,
- Tn.isLength = Wa,
- Tn.isMap = $a,
- Tn.isMatch = function(e, t) {
- return e === t || wr(e, t, Qi(t))
- }
- ,
- Tn.isMatchWith = function(e, t, n) {
- return n = "function" == typeof n ? n : void 0,
- wr(e, t, Qi(t), n)
- }
- ,
- Tn.isNaN = function(e) {
- return Ga(e) && e != +e
- }
- ,
- Tn.isNative = function(e) {
- if (co(e))
- throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");
- return Sr(e)
- }
- ,
- Tn.isNil = function(e) {
- return null == e
- }
- ,
- Tn.isNull = function(e) {
- return null === e
- }
- ,
- Tn.isNumber = Ga,
- Tn.isObject = Ha,
- Tn.isObjectLike = Va,
- Tn.isPlainObject = Za,
- Tn.isRegExp = qa,
- Tn.isSafeInteger = function(e) {
- return Ua(e) && e >= -9007199254740991 && e <= 9007199254740991
- }
- ,
- Tn.isSet = Ya,
- Tn.isString = Xa,
- Tn.isSymbol = Ja,
- Tn.isTypedArray = Qa,
- Tn.isUndefined = function(e) {
- return void 0 === e
- }
- ,
- Tn.isWeakMap = function(e) {
- return Va(e) && no(e) == S
- }
- ,
- Tn.isWeakSet = function(e) {
- return Va(e) && "[object WeakSet]" == hr(e)
- }
- ,
- Tn.join = function(e, t) {
- return null == e ? "" : rn.call(e, t)
- }
- ,
- Tn.kebabCase = Ls,
- Tn.last = Do,
- Tn.lastIndexOf = function(e, t, n) {
- var r = null == e ? 0 : e.length;
- if (!r)
- return -1;
- var i = r;
- return void 0 !== n && (i = (i = rs(n)) < 0 ? an(r + i, 0) : sn(i, r - 1)),
- t == t ? function(e, t, n) {
- for (var r = n + 1; r--; )
- if (e[r] === t)
- return r;
- return r
- }(e, t, i) : _t(e, xt, i, !0)
- }
- ,
- Tn.lowerCase = Ps,
- Tn.lowerFirst = Rs,
- Tn.lt = Ka,
- Tn.lte = es,
- Tn.max = function(e) {
- return e && e.length ? rr(e, Gs, pr) : void 0
- }
- ,
- Tn.maxBy = function(e, t) {
- return e && e.length ? rr(e, Xi(t, 2), pr) : void 0
- }
- ,
- Tn.mean = function(e) {
- return kt(e, Gs)
- }
- ,
- Tn.meanBy = function(e, t) {
- return kt(e, Xi(t, 2))
- }
- ,
- Tn.min = function(e) {
- return e && e.length ? rr(e, Gs, Cr) : void 0
- }
- ,
- Tn.minBy = function(e, t) {
- return e && e.length ? rr(e, Xi(t, 2), Cr) : void 0
- }
- ,
- Tn.stubArray = il,
- Tn.stubFalse = ol,
- Tn.stubObject = function() {
- return {}
- }
- ,
- Tn.stubString = function() {
- return ""
- }
- ,
- Tn.stubTrue = function() {
- return !0
- }
- ,
- Tn.multiply = dl,
- Tn.nth = function(e, t) {
- return e && e.length ? Or(e, rs(t)) : void 0
- }
- ,
- Tn.noConflict = function() {
- return Ze._ === this && (Ze._ = Ae),
- this
- }
- ,
- Tn.noop = Js,
- Tn.now = ga,
- Tn.pad = function(e, t, n) {
- e = ss(e);
- var r = (t = rs(t)) ? $t(e) : 0;
- if (!t || r >= t)
- return e;
- var i = (t - r) / 2;
- return Bi(Kt(i), n) + e + Bi(Qt(i), n)
- }
- ,
- Tn.padEnd = function(e, t, n) {
- e = ss(e);
- var r = (t = rs(t)) ? $t(e) : 0;
- return t && r < t ? e + Bi(t - r, n) : e
- }
- ,
- Tn.padStart = function(e, t, n) {
- e = ss(e);
- var r = (t = rs(t)) ? $t(e) : 0;
- return t && r < t ? Bi(t - r, n) + e : e
- }
- ,
- Tn.parseInt = function(e, t, n) {
- return n || null == t ? t = 0 : t && (t = +t),
- un(ss(e).replace(Y, ""), t || 0)
- }
- ,
- Tn.random = function(e, t, n) {
- if (n && "boolean" != typeof n && so(e, t, n) && (t = n = void 0),
- void 0 === n && ("boolean" == typeof t ? (n = t,
- t = void 0) : "boolean" == typeof e && (n = e,
- e = void 0)),
- void 0 === e && void 0 === t ? (e = 0,
- t = 1) : (e = ns(e),
- void 0 === t ? (t = e,
- e = 0) : t = ns(t)),
- e > t) {
- var r = e;
- e = t,
- t = r
- }
- if (n || e % 1 || t % 1) {
- var i = cn();
- return sn(e + i * (t - e + He("1e-" + ((i + "").length - 1))), t)
- }
- return zr(e, t)
- }
- ,
- Tn.reduce = function(e, t, n) {
- var r = La(e) ? gt : Mt
- , i = arguments.length < 3;
- return r(e, Xi(t, 4), n, i, er)
- }
- ,
- Tn.reduceRight = function(e, t, n) {
- var r = La(e) ? mt : Mt
- , i = arguments.length < 3;
- return r(e, Xi(t, 4), n, i, tr)
- }
- ,
- Tn.repeat = function(e, t, n) {
- return t = (n ? so(e, t, n) : void 0 === t) ? 1 : rs(t),
- jr(ss(e), t)
- }
- ,
- Tn.replace = function() {
- var e = arguments
- , t = ss(e[0]);
- return e.length < 3 ? t : t.replace(e[1], e[2])
- }
- ,
- Tn.result = function(e, t, n) {
- var r = -1
- , i = (t = si(t, e)).length;
- for (i || (i = 1,
- e = void 0); ++r < i; ) {
- var o = null == e ? void 0 : e[Co(t[r])];
- void 0 === o && (r = i,
- o = n),
- e = Na(o) ? o.call(e) : o
- }
- return e
- }
- ,
- Tn.round = fl,
- Tn.runInContext = e,
- Tn.sample = function(e) {
- return (La(e) ? Dn : Dr)(e)
- }
- ,
- Tn.size = function(e) {
- if (null == e)
- return 0;
- if (Ra(e))
- return Xa(e) ? $t(e) : e.length;
- var t = no(e);
- return t == g || t == b ? e.size : kr(e).length
- }
- ,
- Tn.snakeCase = zs,
- Tn.some = function(e, t, n) {
- var r = La(e) ? vt : Gr;
- return n && so(e, t, n) && (t = void 0),
- r(e, Xi(t, 3))
- }
- ,
- Tn.sortedIndex = function(e, t) {
- return Zr(e, t)
- }
- ,
- Tn.sortedIndexBy = function(e, t, n) {
- return qr(e, t, Xi(n, 2))
- }
- ,
- Tn.sortedIndexOf = function(e, t) {
- var n = null == e ? 0 : e.length;
- if (n) {
- var r = Zr(e, t);
- if (r < n && Aa(e[r], t))
- return r
- }
- return -1
- }
- ,
- Tn.sortedLastIndex = function(e, t) {
- return Zr(e, t, !0)
- }
- ,
- Tn.sortedLastIndexBy = function(e, t, n) {
- return qr(e, t, Xi(n, 2), !0)
- }
- ,
- Tn.sortedLastIndexOf = function(e, t) {
- if (null == e ? 0 : e.length) {
- var n = Zr(e, t, !0) - 1;
- if (Aa(e[n], t))
- return n
- }
- return -1
- }
- ,
- Tn.startCase = js,
- Tn.startsWith = function(e, t, n) {
- return e = ss(e),
- n = null == n ? 0 : Yn(rs(n), 0, e.length),
- t = Jr(t),
- e.slice(n, n + t.length) == t
- }
- ,
- Tn.subtract = hl,
- Tn.sum = function(e) {
- return e && e.length ? Tt(e, Gs) : 0
- }
- ,
- Tn.sumBy = function(e, t) {
- return e && e.length ? Tt(e, Xi(t, 2)) : 0
- }
- ,
- Tn.template = function(e, t, n) {
- var r = Tn.templateSettings;
- n && so(e, t, n) && (t = void 0),
- e = ss(e),
- t = cs({}, t, r, Ni);
- var i, o, a = cs({}, t.imports, r.imports, Ni), s = _s(a), l = Ot(a, s), u = 0, c = t.interpolate || ce, d = "__p += '", f = me((t.escape || ce).source + "|" + c.source + "|" + (c === W ? ne : ce).source + "|" + (t.evaluate || ce).source + "|$", "g"), h = "//# sourceURL=" + (ke.call(t, "sourceURL") ? (t.sourceURL + "").replace(/[\r\n]/g, " ") : "lodash.templateSources[" + ++De + "]") + "\n";
- e.replace(f, (function(t, n, r, a, s, l) {
- return r || (r = a),
- d += e.slice(u, l).replace(de, Ft),
- n && (i = !0,
- d += "' +\n__e(" + n + ") +\n'"),
- s && (o = !0,
- d += "';\n" + s + ";\n__p += '"),
- r && (d += "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"),
- u = l + t.length,
- t
- }
- )),
- d += "';\n";
- var p = ke.call(t, "variable") && t.variable;
- p || (d = "with (obj) {\n" + d + "\n}\n"),
- d = (o ? d.replace(L, "") : d).replace(P, "$1").replace(R, "$1;"),
- d = "function(" + (p || "obj") + ") {\n" + (p ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (i ? ", __e = _.escape" : "") + (o ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + d + "return __p\n}";
- var g = Us((function() {
- return he(s, h + "return " + d).apply(void 0, l)
- }
- ));
- if (g.source = d,
- Da(g))
- throw g;
- return g
- }
- ,
- Tn.times = function(e, t) {
- if ((e = rs(e)) < 1 || e > 9007199254740991)
- return [];
- var n = 4294967295
- , r = sn(e, 4294967295);
- e -= 4294967295;
- for (var i = At(r, t = Xi(t)); ++n < e; )
- t(n);
- return i
- }
- ,
- Tn.toFinite = ns,
- Tn.toInteger = rs,
- Tn.toLength = is,
- Tn.toLower = function(e) {
- return ss(e).toLowerCase()
- }
- ,
- Tn.toNumber = os,
- Tn.toSafeInteger = function(e) {
- return e ? Yn(rs(e), -9007199254740991, 9007199254740991) : 0 === e ? e : 0
- }
- ,
- Tn.toString = ss,
- Tn.toUpper = function(e) {
- return ss(e).toUpperCase()
- }
- ,
- Tn.trim = function(e, t, n) {
- if ((e = ss(e)) && (n || void 0 === t))
- return e.replace(q, "");
- if (!e || !(t = Jr(t)))
- return e;
- var r = Gt(e)
- , i = Gt(t);
- return ui(r, Lt(r, i), Pt(r, i) + 1).join("")
- }
- ,
- Tn.trimEnd = function(e, t, n) {
- if ((e = ss(e)) && (n || void 0 === t))
- return e.replace(X, "");
- if (!e || !(t = Jr(t)))
- return e;
- var r = Gt(e);
- return ui(r, 0, Pt(r, Gt(t)) + 1).join("")
- }
- ,
- Tn.trimStart = function(e, t, n) {
- if ((e = ss(e)) && (n || void 0 === t))
- return e.replace(Y, "");
- if (!e || !(t = Jr(t)))
- return e;
- var r = Gt(e);
- return ui(r, Lt(r, Gt(t))).join("")
- }
- ,
- Tn.truncate = function(e, t) {
- var n = 30
- , r = "...";
- if (Ha(t)) {
- var i = "separator"in t ? t.separator : i;
- n = "length"in t ? rs(t.length) : n,
- r = "omission"in t ? Jr(t.omission) : r
- }
- var o = (e = ss(e)).length;
- if (Dt(e)) {
- var a = Gt(e);
- o = a.length
- }
- if (n >= o)
- return e;
- var s = n - $t(r);
- if (s < 1)
- return r;
- var l = a ? ui(a, 0, s).join("") : e.slice(0, s);
- if (void 0 === i)
- return l + r;
- if (a && (s += l.length - s),
- qa(i)) {
- if (e.slice(s).search(i)) {
- var u, c = l;
- for (i.global || (i = me(i.source, ss(re.exec(i)) + "g")),
- i.lastIndex = 0; u = i.exec(c); )
- var d = u.index;
- l = l.slice(0, void 0 === d ? s : d)
- }
- } else if (e.indexOf(Jr(i), s) != s) {
- var f = l.lastIndexOf(i);
- f > -1 && (l = l.slice(0, f))
- }
- return l + r
- }
- ,
- Tn.unescape = function(e) {
- return (e = ss(e)) && F.test(e) ? e.replace(z, Zt) : e
- }
- ,
- Tn.uniqueId = function(e) {
- var t = ++Ie;
- return ss(e) + t
- }
- ,
- Tn.upperCase = Fs,
- Tn.upperFirst = Ds,
- Tn.each = sa,
- Tn.eachRight = la,
- Tn.first = Ro,
- Xs(Tn, (cl = {},
- lr(Tn, (function(e, t) {
- ke.call(Tn.prototype, t) || (cl[t] = e)
- }
- )),
- cl), {
- chain: !1
- }),
- Tn.VERSION = "4.17.14",
- st(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], (function(e) {
- Tn[e].placeholder = Tn
- }
- )),
- st(["drop", "take"], (function(e, t) {
- Bn.prototype[e] = function(n) {
- n = void 0 === n ? 1 : an(rs(n), 0);
- var r = this.__filtered__ && !t ? new Bn(this) : this.clone();
- return r.__filtered__ ? r.__takeCount__ = sn(n, r.__takeCount__) : r.__views__.push({
- size: sn(n, 4294967295),
- type: e + (r.__dir__ < 0 ? "Right" : "")
- }),
- r
- }
- ,
- Bn.prototype[e + "Right"] = function(t) {
- return this.reverse()[e](t).reverse()
- }
- }
- )),
- st(["filter", "map", "takeWhile"], (function(e, t) {
- var n = t + 1
- , r = 1 == n || 3 == n;
- Bn.prototype[e] = function(e) {
- var t = this.clone();
- return t.__iteratees__.push({
- iteratee: Xi(e, 3),
- type: n
- }),
- t.__filtered__ = t.__filtered__ || r,
- t
- }
- }
- )),
- st(["head", "last"], (function(e, t) {
- var n = "take" + (t ? "Right" : "");
- Bn.prototype[e] = function() {
- return this[n](1).value()[0]
- }
- }
- )),
- st(["initial", "tail"], (function(e, t) {
- var n = "drop" + (t ? "" : "Right");
- Bn.prototype[e] = function() {
- return this.__filtered__ ? new Bn(this) : this[n](1)
- }
- }
- )),
- Bn.prototype.compact = function() {
- return this.filter(Gs)
- }
- ,
- Bn.prototype.find = function(e) {
- return this.filter(e).head()
- }
- ,
- Bn.prototype.findLast = function(e) {
- return this.reverse().find(e)
- }
- ,
- Bn.prototype.invokeMap = Fr((function(e, t) {
- return "function" == typeof e ? new Bn(this) : this.map((function(n) {
- return yr(n, e, t)
- }
- ))
- }
- )),
- Bn.prototype.reject = function(e) {
- return this.filter(ka(Xi(e)))
- }
- ,
- Bn.prototype.slice = function(e, t) {
- e = rs(e);
- var n = this;
- return n.__filtered__ && (e > 0 || t < 0) ? new Bn(n) : (e < 0 ? n = n.takeRight(-e) : e && (n = n.drop(e)),
- void 0 !== t && (n = (t = rs(t)) < 0 ? n.dropRight(-t) : n.take(t - e)),
- n)
- }
- ,
- Bn.prototype.takeRightWhile = function(e) {
- return this.reverse().takeWhile(e).reverse()
- }
- ,
- Bn.prototype.toArray = function() {
- return this.take(4294967295)
- }
- ,
- lr(Bn.prototype, (function(e, t) {
- var n = /^(?:filter|find|map|reject)|While$/.test(t)
- , r = /^(?:head|last)$/.test(t)
- , i = Tn[r ? "take" + ("last" == t ? "Right" : "") : t]
- , o = r || /^find/.test(t);
- i && (Tn.prototype[t] = function() {
- var t = this.__wrapped__
- , a = r ? [1] : arguments
- , s = t instanceof Bn
- , l = a[0]
- , u = s || La(t)
- , c = function(e) {
- var t = i.apply(Tn, pt([e], a));
- return r && d ? t[0] : t
- };
- u && n && "function" == typeof l && 1 != l.length && (s = u = !1);
- var d = this.__chain__
- , f = !!this.__actions__.length
- , h = o && !d
- , p = s && !f;
- if (!o && u) {
- t = p ? t : new Bn(this);
- var g = e.apply(t, a);
- return g.__actions__.push({
- func: na,
- args: [c],
- thisArg: void 0
- }),
- new On(g,d)
- }
- return h && p ? e.apply(this, a) : (g = this.thru(c),
- h ? r ? g.value()[0] : g.value() : g)
- }
- )
- }
- )),
- st(["pop", "push", "shift", "sort", "splice", "unshift"], (function(e) {
- var t = be[e]
- , n = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru"
- , r = /^(?:pop|shift)$/.test(e);
- Tn.prototype[e] = function() {
- var e = arguments;
- if (r && !this.__chain__) {
- var i = this.value();
- return t.apply(La(i) ? i : [], e)
- }
- return this[n]((function(n) {
- return t.apply(La(n) ? n : [], e)
- }
- ))
- }
- }
- )),
- lr(Bn.prototype, (function(e, t) {
- var n = Tn[t];
- if (n) {
- var r = n.name + "";
- ke.call(bn, r) || (bn[r] = []),
- bn[r].push({
- name: t,
- func: n
- })
- }
- }
- )),
- bn[Ti(void 0, 2).name] = [{
- name: "wrapper",
- func: void 0
- }],
- Bn.prototype.clone = function() {
- var e = new Bn(this.__wrapped__);
- return e.__actions__ = vi(this.__actions__),
- e.__dir__ = this.__dir__,
- e.__filtered__ = this.__filtered__,
- e.__iteratees__ = vi(this.__iteratees__),
- e.__takeCount__ = this.__takeCount__,
- e.__views__ = vi(this.__views__),
- e
- }
- ,
- Bn.prototype.reverse = function() {
- if (this.__filtered__) {
- var e = new Bn(this);
- e.__dir__ = -1,
- e.__filtered__ = !0
- } else
- (e = this.clone()).__dir__ *= -1;
- return e
- }
- ,
- Bn.prototype.value = function() {
- var e = this.__wrapped__.value()
- , t = this.__dir__
- , n = La(e)
- , r = t < 0
- , i = n ? e.length : 0
- , o = function(e, t, n) {
- var r = -1
- , i = n.length;
- for (; ++r < i; ) {
- var o = n[r]
- , a = o.size;
- switch (o.type) {
- case "drop":
- e += a;
- break;
- case "dropRight":
- t -= a;
- break;
- case "take":
- t = sn(t, e + a);
- break;
- case "takeRight":
- e = an(e, t - a)
- }
- }
- return {
- start: e,
- end: t
- }
- }(0, i, this.__views__)
- , a = o.start
- , s = o.end
- , l = s - a
- , u = r ? s : a - 1
- , c = this.__iteratees__
- , d = c.length
- , f = 0
- , h = sn(l, this.__takeCount__);
- if (!n || !r && i == l && h == l)
- return ni(e, this.__actions__);
- var p = [];
- e: for (; l-- && f < h; ) {
- for (var g = -1, m = e[u += t]; ++g < d; ) {
- var v = c[g]
- , y = v.iteratee
- , b = v.type
- , _ = y(m);
- if (2 == b)
- m = _;
- else if (!_) {
- if (1 == b)
- continue e;
- break e
- }
- }
- p[f++] = m
- }
- return p
- }
- ,
- Tn.prototype.at = ra,
- Tn.prototype.chain = function() {
- return ta(this)
- }
- ,
- Tn.prototype.commit = function() {
- return new On(this.value(),this.__chain__)
- }
- ,
- Tn.prototype.next = function() {
- void 0 === this.__values__ && (this.__values__ = ts(this.value()));
- var e = this.__index__ >= this.__values__.length;
- return {
- done: e,
- value: e ? void 0 : this.__values__[this.__index__++]
- }
- }
- ,
- Tn.prototype.plant = function(e) {
- for (var t, n = this; n instanceof En; ) {
- var r = To(n);
- r.__index__ = 0,
- r.__values__ = void 0,
- t ? i.__wrapped__ = r : t = r;
- var i = r;
- n = n.__wrapped__
- }
- return i.__wrapped__ = e,
- t
- }
- ,
- Tn.prototype.reverse = function() {
- var e = this.__wrapped__;
- if (e instanceof Bn) {
- var t = e;
- return this.__actions__.length && (t = new Bn(this)),
- (t = t.reverse()).__actions__.push({
- func: na,
- args: [Ho],
- thisArg: void 0
- }),
- new On(t,this.__chain__)
- }
- return this.thru(Ho)
- }
- ,
- Tn.prototype.toJSON = Tn.prototype.valueOf = Tn.prototype.value = function() {
- return ni(this.__wrapped__, this.__actions__)
- }
- ,
- Tn.prototype.first = Tn.prototype.head,
- Qe && (Tn.prototype[Qe] = function() {
- return this
- }
- ),
- Tn
- }();
- Ze._ = qt,
- void 0 === (i = function() {
- return qt
- }
- .call(t, n, t, r)) || (r.exports = i)
- }
- ).call(this)
- }
- ).call(this, n(20), n(116)(e))
- },
- 174: function(e, t, n) {
- "use strict";
- n.r(t),
- n.d(t, "PresetZoomScales", (function() {
- return r
- }
- ));
- const r = [500, 400, 300, 200, 150, 120, 100, 80, 50, 20]
- },
- 175: function(e, t, n) {
- "use strict";
- n.d(t, "a", (function() {
- return r
- }
- ));
- const r = e=>function(e) {
- for (var t, n = "", r = e.length, i = 0; i < r; i++)
- t = e[i],
- n += String.fromCharCode(t > 251 && t < 254 && i + 5 < r ? 1073741824 * (t - 252) + (e[++i] - 128 << 24) + (e[++i] - 128 << 18) + (e[++i] - 128 << 12) + (e[++i] - 128 << 6) + e[++i] - 128 : t > 247 && t < 252 && i + 4 < r ? (t - 248 << 24) + (e[++i] - 128 << 18) + (e[++i] - 128 << 12) + (e[++i] - 128 << 6) + e[++i] - 128 : t > 239 && t < 248 && i + 3 < r ? (t - 240 << 18) + (e[++i] - 128 << 12) + (e[++i] - 128 << 6) + e[++i] - 128 : t > 223 && t < 240 && i + 2 < r ? (t - 224 << 12) + (e[++i] - 128 << 6) + e[++i] - 128 : t > 191 && t < 224 && i + 1 < r ? (t - 192 << 6) + e[++i] - 128 : t);
- return n
- }(function(e, t) {
- for (var n, r, i, o = e.replace(/[^A-Za-z0-9\+\/]/g, ""), a = o.length, s = t ? Math.ceil((3 * a + 1 >>> 2) / t) * t : 3 * a + 1 >>> 2, l = new Uint8Array(s), u = 0, c = 0, d = 0; d < a; d++)
- if (r = 3 & d,
- u |= ((i = o.charCodeAt(d)) > 64 && i < 91 ? i - 65 : i > 96 && i < 123 ? i - 71 : i > 47 && i < 58 ? i + 4 : 43 === i ? 62 : 47 === i ? 63 : 0) << 18 - 6 * r,
- 3 === r || a - d == 1) {
- for (n = 0; n < 3 && c < s; n++,
- c++)
- l[c] = u >>> (16 >>> n & 24) & 255;
- u = 0
- }
- return l
- }(e))
- },
- 181: function(e, t, n) {
- "use strict";
- n.d(t, "a", (function() {
- return r
- }
- )),
- n.d(t, "b", (function() {
- return i
- }
- ));
- var r = function() {
- var e = this.$createElement
- , t = this._self._c || e;
- return t("div", {
- staticClass: "share-map__loading position-fixed"
- }, [t("div", {
- staticClass: "p-3 spinner",
- attrs: {
- "uk-spinner": "ratio: 1.4"
- }
- }, [t("svg", {
- attrs: {
- width: "42",
- height: "42",
- viewBox: "0 0 30 30",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [t("circle", {
- staticStyle: {
- "stroke-width": "0.714286px"
- },
- attrs: {
- fill: "none",
- stroke: "#000",
- cx: "15",
- cy: "15",
- r: "14"
- }
- })])]), this._v(" "), t("div", {
- staticClass: "text-muted"
- }, [this._v("\n Loading...\n ")])])
- }
- , i = []
- },
- 182: function(e, t, n) {
- "use strict";
- n.d(t, "a", (function() {
- return r
- }
- )),
- n.d(t, "b", (function() {
- return i
- }
- ));
- var r = function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", [n("button", {
- staticClass: "btn dropdown-toggle",
- attrs: {
- type: "button",
- "data-toggle": "dropdown",
- "aria-haspopup": "true",
- "aria-expanded": "false",
- "data-offset": "0, 12"
- }
- }, [e._v("\n " + e._s(e.zoomScale) + "%\n ")]), e._v(" "), n("div", {
- staticClass: "dropdown-menu",
- staticStyle: {
- "min-width": "100px",
- "max-height": "80vh",
- overflow: "auto"
- }
- }, e._l(e.PresetZoomScales, (function(t) {
- return n("a", {
- staticClass: "dropdown-item",
- attrs: {
- href: "#"
- },
- on: {
- click: function(n) {
- return e.handleZoom(t)
- }
- }
- }, [e._v("\n " + e._s(t) + " %\n ")])
- }
- )), 0)])
- }
- , i = []
- },
- 183: function(e, t, n) {
- "use strict";
- n.d(t, "a", (function() {
- return r
- }
- )),
- n.d(t, "b", (function() {
- return i
- }
- ));
- var r = function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", {
- staticClass: "sheets-bar"
- }, [n("button", {
- staticClass: "btn dropdown-toggle",
- class: {
- "dropdown-toggle": e.sheets.length > 1
- },
- style: e.buttonStyles,
- attrs: {
- type: "button",
- "data-toggle": "dropdown",
- "aria-haspopup": "true",
- "aria-expanded": "false",
- "data-offset": "0, 12"
- }
- }, [e._v("\n " + e._s(e.currentSheet && e.currentSheet.title) + "\n ")]), e._v(" "), n("div", {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: e.sheets.length > 1,
- expression: "sheets.length > 1"
- }],
- staticClass: "dropdown-menu"
- }, e._l(e.sheets, (function(t) {
- return n("a", {
- staticClass: "dropdown-item",
- attrs: {
- href: "#"
- },
- on: {
- click: function(n) {
- return e.handleSwitchSheet(t.id)
- }
- }
- }, [e._v("\n " + e._s(t.title) + "\n ")])
- }
- )), 0)])
- }
- , i = []
- },
- 184: function(e, t, n) {
- (function(e) {
- var r = void 0 !== e && e || "undefined" != typeof self && self || window
- , i = Function.prototype.apply;
- function o(e, t) {
- this._id = e,
- this._clearFn = t
- }
- t.setTimeout = function() {
- return new o(i.call(setTimeout, r, arguments),clearTimeout)
- }
- ,
- t.setInterval = function() {
- return new o(i.call(setInterval, r, arguments),clearInterval)
- }
- ,
- t.clearTimeout = t.clearInterval = function(e) {
- e && e.close()
- }
- ,
- o.prototype.unref = o.prototype.ref = function() {}
- ,
- o.prototype.close = function() {
- this._clearFn.call(r, this._id)
- }
- ,
- t.enroll = function(e, t) {
- clearTimeout(e._idleTimeoutId),
- e._idleTimeout = t
- }
- ,
- t.unenroll = function(e) {
- clearTimeout(e._idleTimeoutId),
- e._idleTimeout = -1
- }
- ,
- t._unrefActive = t.active = function(e) {
- clearTimeout(e._idleTimeoutId);
- var t = e._idleTimeout;
- t >= 0 && (e._idleTimeoutId = setTimeout((function() {
- e._onTimeout && e._onTimeout()
- }
- ), t))
- }
- ,
- n(277),
- t.setImmediate = "undefined" != typeof self && self.setImmediate || void 0 !== e && e.setImmediate || this && this.setImmediate,
- t.clearImmediate = "undefined" != typeof self && self.clearImmediate || void 0 !== e && e.clearImmediate || this && this.clearImmediate
- }
- ).call(this, n(20))
- },
- 188: function(e, t, n) {
- "use strict";
- var r = n(14)
- , i = n(117)
- , o = n(190)
- , a = n(94);
- function s(e) {
- var t = new o(e)
- , n = i(o.prototype.request, t);
- return r.extend(n, o.prototype, t),
- r.extend(n, t),
- n
- }
- var l = s(a);
- l.Axios = o,
- l.create = function(e) {
- return s(r.merge(a, e))
- }
- ,
- l.Cancel = n(121),
- l.CancelToken = n(204),
- l.isCancel = n(120),
- l.all = function(e) {
- return Promise.all(e)
- }
- ,
- l.spread = n(205),
- e.exports = l,
- e.exports.default = l
- },
- 189: function(e, t) {
- function n(e) {
- return !!e.constructor && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e)
- }
- /*!
- * Determine if an object is a Buffer
- *
- * @author Feross Aboukhadijeh <https://feross.org>
- * @license MIT
- */
- e.exports = function(e) {
- return null != e && (n(e) || function(e) {
- return "function" == typeof e.readFloatLE && "function" == typeof e.slice && n(e.slice(0, 0))
- }(e) || !!e._isBuffer)
- }
- },
- 190: function(e, t, n) {
- "use strict";
- var r = n(94)
- , i = n(14)
- , o = n(199)
- , a = n(200);
- function s(e) {
- this.defaults = e,
- this.interceptors = {
- request: new o,
- response: new o
- }
- }
- s.prototype.request = function(e) {
- "string" == typeof e && (e = i.merge({
- url: arguments[0]
- }, arguments[1])),
- (e = i.merge(r, {
- method: "get"
- }, this.defaults, e)).method = e.method.toLowerCase();
- var t = [a, void 0]
- , n = Promise.resolve(e);
- for (this.interceptors.request.forEach((function(e) {
- t.unshift(e.fulfilled, e.rejected)
- }
- )),
- this.interceptors.response.forEach((function(e) {
- t.push(e.fulfilled, e.rejected)
- }
- )); t.length; )
- n = n.then(t.shift(), t.shift());
- return n
- }
- ,
- i.forEach(["delete", "get", "head", "options"], (function(e) {
- s.prototype[e] = function(t, n) {
- return this.request(i.merge(n || {}, {
- method: e,
- url: t
- }))
- }
- }
- )),
- i.forEach(["post", "put", "patch"], (function(e) {
- s.prototype[e] = function(t, n, r) {
- return this.request(i.merge(r || {}, {
- method: e,
- url: t,
- data: n
- }))
- }
- }
- )),
- e.exports = s
- },
- 191: function(e, t, n) {
- "use strict";
- var r = n(14);
- e.exports = function(e, t) {
- r.forEach(e, (function(n, r) {
- r !== t && r.toUpperCase() === t.toUpperCase() && (e[t] = n,
- delete e[r])
- }
- ))
- }
- },
- 192: function(e, t, n) {
- "use strict";
- var r = n(119);
- e.exports = function(e, t, n) {
- var i = n.config.validateStatus;
- n.status && i && !i(n.status) ? t(r("Request failed with status code " + n.status, n.config, null, n.request, n)) : e(n)
- }
- },
- 193: function(e, t, n) {
- "use strict";
- e.exports = function(e, t, n, r, i) {
- return e.config = t,
- n && (e.code = n),
- e.request = r,
- e.response = i,
- e
- }
- },
- 194: function(e, t, n) {
- "use strict";
- var r = n(14);
- function i(e) {
- return encodeURIComponent(e).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]")
- }
- e.exports = function(e, t, n) {
- if (!t)
- return e;
- var o;
- if (n)
- o = n(t);
- else if (r.isURLSearchParams(t))
- o = t.toString();
- else {
- var a = [];
- r.forEach(t, (function(e, t) {
- null != e && (r.isArray(e) ? t += "[]" : e = [e],
- r.forEach(e, (function(e) {
- r.isDate(e) ? e = e.toISOString() : r.isObject(e) && (e = JSON.stringify(e)),
- a.push(i(t) + "=" + i(e))
- }
- )))
- }
- )),
- o = a.join("&")
- }
- return o && (e += (-1 === e.indexOf("?") ? "?" : "&") + o),
- e
- }
- },
- 195: function(e, t, n) {
- "use strict";
- var r = n(14)
- , i = ["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"];
- e.exports = function(e) {
- var t, n, o, a = {};
- return e ? (r.forEach(e.split("\n"), (function(e) {
- if (o = e.indexOf(":"),
- t = r.trim(e.substr(0, o)).toLowerCase(),
- n = r.trim(e.substr(o + 1)),
- t) {
- if (a[t] && i.indexOf(t) >= 0)
- return;
- a[t] = "set-cookie" === t ? (a[t] ? a[t] : []).concat([n]) : a[t] ? a[t] + ", " + n : n
- }
- }
- )),
- a) : a
- }
- },
- 196: function(e, t, n) {
- "use strict";
- var r = n(14);
- e.exports = r.isStandardBrowserEnv() ? function() {
- var e, t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
- function i(e) {
- var r = e;
- return t && (n.setAttribute("href", r),
- r = n.href),
- n.setAttribute("href", r),
- {
- href: n.href,
- protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
- host: n.host,
- search: n.search ? n.search.replace(/^\?/, "") : "",
- hash: n.hash ? n.hash.replace(/^#/, "") : "",
- hostname: n.hostname,
- port: n.port,
- pathname: "/" === n.pathname.charAt(0) ? n.pathname : "/" + n.pathname
- }
- }
- return e = i(window.location.href),
- function(t) {
- var n = r.isString(t) ? i(t) : t;
- return n.protocol === e.protocol && n.host === e.host
- }
- }() : function() {
- return !0
- }
- },
- 197: function(e, t, n) {
- "use strict";
- function r() {
- this.message = "String contains an invalid character"
- }
- r.prototype = new Error,
- r.prototype.code = 5,
- r.prototype.name = "InvalidCharacterError",
- e.exports = function(e) {
- for (var t, n, i = String(e), o = "", a = 0, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; i.charAt(0 | a) || (s = "=",
- a % 1); o += s.charAt(63 & t >> 8 - a % 1 * 8)) {
- if ((n = i.charCodeAt(a += 3 / 4)) > 255)
- throw new r;
- t = t << 8 | n
- }
- return o
- }
- },
- 198: function(e, t, n) {
- "use strict";
- var r = n(14);
- e.exports = r.isStandardBrowserEnv() ? {
- write: function(e, t, n, i, o, a) {
- var s = [];
- s.push(e + "=" + encodeURIComponent(t)),
- r.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()),
- r.isString(i) && s.push("path=" + i),
- r.isString(o) && s.push("domain=" + o),
- !0 === a && s.push("secure"),
- document.cookie = s.join("; ")
- },
- read: function(e) {
- var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
- return t ? decodeURIComponent(t[3]) : null
- },
- remove: function(e) {
- this.write(e, "", Date.now() - 864e5)
- }
- } : {
- write: function() {},
- read: function() {
- return null
- },
- remove: function() {}
- }
- },
- 199: function(e, t, n) {
- "use strict";
- var r = n(14);
- function i() {
- this.handlers = []
- }
- i.prototype.use = function(e, t) {
- return this.handlers.push({
- fulfilled: e,
- rejected: t
- }),
- this.handlers.length - 1
- }
- ,
- i.prototype.eject = function(e) {
- this.handlers[e] && (this.handlers[e] = null)
- }
- ,
- i.prototype.forEach = function(e) {
- r.forEach(this.handlers, (function(t) {
- null !== t && e(t)
- }
- ))
- }
- ,
- e.exports = i
- },
- 2: function(e, t, n) {
- "use strict";
- e.exports = function(e) {
- var t = [];
- return t.toString = function() {
- return this.map((function(t) {
- var n = function(e, t) {
- var n = e[1] || ""
- , r = e[3];
- if (!r)
- return n;
- if (t && "function" == typeof btoa) {
- var i = (a = r,
- s = btoa(unescape(encodeURIComponent(JSON.stringify(a)))),
- l = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),
- "/*# ".concat(l, " */"))
- , o = r.sources.map((function(e) {
- return "/*# sourceURL=".concat(r.sourceRoot).concat(e, " */")
- }
- ));
- return [n].concat(o).concat([i]).join("\n")
- }
- var a, s, l;
- return [n].join("\n")
- }(t, e);
- return t[2] ? "@media ".concat(t[2], "{").concat(n, "}") : n
- }
- )).join("")
- }
- ,
- t.i = function(e, n) {
- "string" == typeof e && (e = [[null, e, ""]]);
- for (var r = {}, i = 0; i < this.length; i++) {
- var o = this[i][0];
- null != o && (r[o] = !0)
- }
- for (var a = 0; a < e.length; a++) {
- var s = e[a];
- null != s[0] && r[s[0]] || (n && !s[2] ? s[2] = n : n && (s[2] = "(".concat(s[2], ") and (").concat(n, ")")),
- t.push(s))
- }
- }
- ,
- t
- }
- },
- 20: function(e, t) {
- var n;
- n = function() {
- return this
- }();
- try {
- n = n || new Function("return this")()
- } catch (e) {
- "object" == typeof window && (n = window)
- }
- e.exports = n
- },
- 200: function(e, t, n) {
- "use strict";
- var r = n(14)
- , i = n(201)
- , o = n(120)
- , a = n(94)
- , s = n(202)
- , l = n(203);
- function u(e) {
- e.cancelToken && e.cancelToken.throwIfRequested()
- }
- e.exports = function(e) {
- return u(e),
- e.baseURL && !s(e.url) && (e.url = l(e.baseURL, e.url)),
- e.headers = e.headers || {},
- e.data = i(e.data, e.headers, e.transformRequest),
- e.headers = r.merge(e.headers.common || {}, e.headers[e.method] || {}, e.headers || {}),
- r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (function(t) {
- delete e.headers[t]
- }
- )),
- (e.adapter || a.adapter)(e).then((function(t) {
- return u(e),
- t.data = i(t.data, t.headers, e.transformResponse),
- t
- }
- ), (function(t) {
- return o(t) || (u(e),
- t && t.response && (t.response.data = i(t.response.data, t.response.headers, e.transformResponse))),
- Promise.reject(t)
- }
- ))
- }
- },
- 201: function(e, t, n) {
- "use strict";
- var r = n(14);
- e.exports = function(e, t, n) {
- return r.forEach(n, (function(n) {
- e = n(e, t)
- }
- )),
- e
- }
- },
- 202: function(e, t, n) {
- "use strict";
- e.exports = function(e) {
- return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)
- }
- },
- 203: function(e, t, n) {
- "use strict";
- e.exports = function(e, t) {
- return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e
- }
- },
- 204: function(e, t, n) {
- "use strict";
- var r = n(121);
- function i(e) {
- if ("function" != typeof e)
- throw new TypeError("executor must be a function.");
- var t;
- this.promise = new Promise((function(e) {
- t = e
- }
- ));
- var n = this;
- e((function(e) {
- n.reason || (n.reason = new r(e),
- t(n.reason))
- }
- ))
- }
- i.prototype.throwIfRequested = function() {
- if (this.reason)
- throw this.reason
- }
- ,
- i.source = function() {
- var e;
- return {
- token: new i((function(t) {
- e = t
- }
- )),
- cancel: e
- }
- }
- ,
- e.exports = i
- },
- 205: function(e, t, n) {
- "use strict";
- e.exports = function(e) {
- return function(t) {
- return e.apply(null, t)
- }
- }
- },
- 216: function(e, t, n) {
- var r = n(309);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("5c03a8fc", r, !0, {})
- },
- 217: function(e, t, n) {
- var r = n(311);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("6e1ff704", r, !0, {})
- },
- 218: function(e, t, n) {
- var r = n(313);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("696520d7", r, !0, {})
- },
- 219: function(e, t, n) {
- var r = n(315);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("e5c90d10", r, !0, {})
- },
- 220: function(e, t, n) {
- var r = n(317);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("6f31f93c", r, !0, {})
- },
- 221: function(e, t, n) {
- var r = n(319);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("3136a8f2", r, !0, {})
- },
- 222: function(e, t, n) {
- var r = n(321);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("6b8b3692", r, !0, {})
- },
- 223: function(e, t, n) {
- var r = n(323);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("0c5a7b5c", r, !0, {})
- },
- 224: function(e, t, n) {
- var r = n(329);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("09c0e74f", r, !0, {})
- },
- 225: function(e, t, n) {
- var r = n(331);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("e3196ad2", r, !0, {})
- },
- 226: function(e, t, n) {
- "use strict";
- var r = n(181)
- , i = n(132)
- , o = (n(308),
- n(0))
- , a = Object(o.a)(i.default, r.a, r.b, !1, null, "41ebd106", null);
- t.default = a.exports
- },
- 227: function(e, t, n) {
- "use strict";
- var r = n(182)
- , i = n(134)
- , o = (n(310),
- n(0))
- , a = Object(o.a)(i.default, r.a, r.b, !1, null, "700a78a7", null);
- t.default = a.exports
- },
- 228: function(e, t, n) {
- "use strict";
- var r = n(183)
- , i = n(136)
- , o = (n(312),
- n(0))
- , a = Object(o.a)(i.default, r.a, r.b, !1, null, "61c0885c", null);
- t.default = a.exports
- },
- 229: function(e, t, n) {
- "use strict";
- n.d(t, "a", (function() {
- return i
- }
- ));
- var r = n(1);
- const i = e=>{
- const {store: t} = e;
- return {
- isAppearanceDarkMode: Object(r.computed)(()=>{
- const e = t.workbook.state.value.currentSheetBackgroundColor;
- let n = 255
- , r = 255
- , i = 255;
- if (e && e.startsWith("rgb")) {
- const t = /rgba?\((\d+),(\d+),(\d+),(\d+)/.exec(e);
- if (!t)
- return;
- n = parseInt(t[1]),
- i = parseInt(t[2]),
- r = parseInt(t[3])
- }
- if (e && e.startsWith("#")) {
- const t = function(e) {
- const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
- return t ? {
- r: parseInt(t[1], 16),
- g: parseInt(t[2], 16),
- b: parseInt(t[3], 16)
- } : null
- }(e);
- if (!t)
- return;
- n = t.r,
- i = t.g,
- r = t.b
- }
- return n < 85 && i < 85 && r < 85
- }
- )
- }
- }
- },
- 23: function(e, t, n) {
- "use strict";
- n.r(t),
- n.d(t, "nonReactive", (function() {
- return a
- }
- )),
- n.d(t, "downloadFromRemoteAddress", (function() {
- return s
- }
- )),
- n.d(t, "isSupportFullScreen", (function() {
- return l
- }
- )),
- n.d(t, "requestFullScreen", (function() {
- return u
- }
- )),
- n.d(t, "fullScreenElement", (function() {
- return c
- }
- )),
- n.d(t, "exitFullScreen", (function() {
- return d
- }
- )),
- n.d(t, "isFullScreen", (function() {
- return f
- }
- )),
- n.d(t, "onFullScreenChanged", (function() {
- return h
- }
- )),
- n.d(t, "download", (function() {
- return p
- }
- ));
- var r = n(4)
- , i = n(144)
- , o = n.n(i);
- function a(e) {
- return Object.defineProperty({}, "value", {
- value: e,
- writable: !0,
- enumerable: !0,
- configurable: !1
- })
- }
- const s = (e,t,n)=>Object(r.a)(void 0, void 0, void 0, (function*() {
- const r = new URL(e)
- , i = null === r.searchParams.get("no-cache")
- , a = [r.origin + r.pathname, r.searchParams.get("version") || ""].filter(Boolean).join("@")
- , s = yield n.getSharedMap(a);
- if (s && i)
- return {
- data: s,
- cacheKey: a
- };
- if (!e)
- return;
- const l = yield o.a.get(e, {
- responseType: "arraybuffer",
- headers: Object.assign({}, t)
- });
- return l && l.status >= 200 && l.status < 300 ? (i && (yield n.setSharedMap(a, l.data)),
- {
- data: l.data,
- cacheKey: a
- }) : void 0
- }
- ));
- function l() {
- return ["fullscreenElement", "webkitFullscreenElement", "mozFullScreenElement", "msFullscreenElement"].some(e=>e in document)
- }
- function u(e) {
- return e || (e = document.documentElement),
- e.requestFullscreen ? e.requestFullscreen() : e.mozRequestFullScreen ? e.mozRequestFullScreen() : e.webkitRequestFullscreen ? e.webkitRequestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : void 0
- }
- function c() {
- return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement
- }
- function d() {
- document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.msExitFullscreen && document.msExitFullscreen()
- }
- function f() {
- return document.fullscreenElement && null !== document.fullscreenElement || document.webkitFullscreenElement && null !== document.webkitFullscreenElement || document.mozFullScreenElement && null !== document.mozFullScreenElement || document.msFullscreenElement && null !== document.msFullscreenElement
- }
- function h(e) {
- return document.addEventListener("webkitfullscreenchange", e, !1),
- document.addEventListener("mozfullscreenchange", e, !1),
- document.addEventListener("fullscreenchange", e, !1),
- document.addEventListener("MSFullscreenChange", e, !1),
- ()=>{
- document.removeEventListener("webkitfullscreenchange", e, !1),
- document.removeEventListener("mozfullscreenchange", e, !1),
- document.removeEventListener("fullscreenchange", e, !1),
- document.removeEventListener("MSFullscreenChange", e, !1)
- }
- }
- function p(e, t) {
- const n = e instanceof Blob ? e : new Blob([e]);
- if (navigator.msSaveBlob)
- navigator.msSaveBlob(n, t);
- else {
- const e = document.createElement("a");
- if (void 0 !== e.download) {
- const r = URL.createObjectURL(n);
- e.setAttribute("href", r),
- e.setAttribute("download", t),
- e.style.visibility = "hidden",
- e.style.position = "fixed",
- e.style.top = "-100%",
- document.body.appendChild(e),
- e.click(),
- document.body.removeChild(e)
- }
- }
- }
- },
- 230: function(e) {
- e.exports = JSON.parse('[{"id":"Business","items":[{"name":"cash"},{"name":"briefcase"},{"name":"calculator"},{"name":"discuss"},{"name":"coffee"},{"name":"contact"},{"name":"clock"},{"name":"envelope"},{"name":"file_search"},{"name":"file"},{"name":"presentation_mindmaps"},{"name":"mailbox"},{"name":"newpaper"},{"name":"notebook"},{"name":"paper_with_words"},{"name":"printer"},{"name":"todolist"},{"name":"file_encrypt"},{"name":"memo"},{"name":"resume"},{"name":"imgae"},{"name":"magnifier"},{"name":"target"},{"name":"coin_dollar"},{"name":"microphone"},{"name":"work_card"},{"name":"approve"},{"name":"stamp"},{"name":"video_meeting"},{"name":"meeting"},{"name":"support"},{"name":"team"},{"name":"phone_call"},{"name":"email"},{"name":"chart_up"},{"name":"chart_down"},{"name":"calendar"},{"name":"winner"},{"name":"faq"},{"name":"account"},{"name":"infomation"},{"name":"question"},{"name":"trash"},{"name":"global"}]},{"id":"Education","items":[{"name":"science"},{"name":"law"},{"name":"law1"},{"name":"pendulum"},{"name":"blackboard"},{"name":"book"},{"name":"biology"},{"name":"graduate_hat"},{"name":"flag"},{"name":"badge"},{"name":"hourglass"},{"name":"paper_boat"},{"name":"reading_note"},{"name":"bag"},{"name":"telescope"},{"name":"dividers"},{"name":"beakerflask"},{"name":"filter"},{"name":"fill_color"},{"name":"scissors"},{"name":"sketch"},{"name":"semicircle_ruler"},{"name":"ruler"},{"name":"triangle_ruler"},{"name":"pen"},{"name":"highlighter"},{"name":"crayon"},{"name":"paintbrush"},{"name":"pencil"},{"name":"fountain_pen"},{"name":"eraser"},{"name":"colorboard"},{"name":"puzzle"},{"name":"teaching"},{"name":"translate"},{"name":"math"},{"name":"lightbulb"},{"name":"yes"},{"name":"no"},{"name":"yes_and_no"}]},{"id":"Technology","items":[{"name":"service"},{"name":"service_inter"},{"name":"processor"},{"name":"window"},{"name":"code"},{"name":"terminal"},{"name":"modem"},{"name":"click"},{"name":"file_sharing"},{"name":"adjustment"},{"name":"data_transfer"},{"name":"cloud_transfer"},{"name":"cloud"},{"name":"rss"},{"name":"message"},{"name":"wireless"},{"name":"rounter"},{"name":"adaptor"},{"name":"internet"},{"name":"sdcard"},{"name":"save"},{"name":"ssd"},{"name":"sim"},{"name":"mobile"},{"name":"laptop"},{"name":"display_screen"},{"name":"pad"},{"name":"device"},{"name":"mouse"},{"name":"keyboard"},{"name":"visual_reality"},{"name":"smart_watch"},{"name":"headphone"},{"name":"online_support"},{"name":"earphone"},{"name":"louder"},{"name":"radio"},{"name":"cd"},{"name":"music_player"},{"name":"polaroid"},{"name":"projector"},{"name":"pc"},{"name":"action_camera"},{"name":"video_camera"},{"name":"cctv_camera"},{"name":"old_video_camera"},{"name":"clapperboard"},{"name":"game"},{"name":"game1"},{"name":"telephone"},{"name":"lens"},{"name":"television"},{"name":"tv"},{"name":"battery"},{"name":"battery1"},{"name":"gauge"}]},{"id":"Mood","items":[{"name":"smile_through_tears"},{"name":"awkard"},{"name":"cool"},{"name":"worried"},{"name":"like"},{"name":"shy"},{"name":"fall_ill"},{"name":"laugh"},{"name":"smile"},{"name":"sad"},{"name":"kiss"},{"name":"rolling_eyes"},{"name":"rolling_on_the_floor_laughing"},{"name":"thinking"},{"name":"weary"},{"name":"boring"},{"name":"angry"},{"name":"embarrass"},{"name":"o"},{"name":"ooooo"},{"name":"speechless"},{"name":"piss_off"},{"name":"pleased"},{"name":"boom"},{"name":"red_heard"},{"name":"blue_heard"},{"name":"purple_heard"},{"name":"brown_heard"},{"name":"two_heards"},{"name":"one_hundred"},{"name":"pointing_right"},{"name":"fold_hand"},{"name":"look"}]},{"id":"Travel","items":[{"name":"big_ben"},{"name":"statue_of_liberty"},{"name":"great_wall"},{"name":"eiffel_tower"},{"name":"opera_house"},{"name":"rome"},{"name":"motel"},{"name":"enterprise"},{"name":"store"},{"name":"school"},{"name":"building"},{"name":"museum"},{"name":"bank"},{"name":"park"},{"name":"lighthouse"},{"name":"oil_station"},{"name":"bridge"},{"name":"tent"},{"name":"mountain"},{"name":"desert"},{"name":"volcano"},{"name":"forest"},{"name":"beach"},{"name":"map"},{"name":"compass"},{"name":"hotair_ballon"},{"name":"plane"},{"name":"steamship"},{"name":"bus"},{"name":"taxi"},{"name":"jeep"},{"name":"emergency_car"},{"name":"delivery"},{"name":"camper"},{"name":"tractor"},{"name":"uavs"},{"name":"helicopter"},{"name":"tank"},{"name":"cablecar"},{"name":"subway"},{"name":"scooter"},{"name":"segway"},{"name":"scooter1"},{"name":"passport"},{"name":"id_card"},{"name":"parking"},{"name":"turn_sign"},{"name":"traffic_light"},{"name":"parking1"},{"name":"barrier"},{"name":"traffic_cone"},{"name":"credit"},{"name":"luggage"},{"name":"ticket"},{"name":"wallet"},{"name":"umbralla"},{"name":"soap"},{"name":"toothbrush"},{"name":"adaptor1"},{"name":"torch"},{"name":"sign"},{"name":"takeoff"},{"name":"camera"}]},{"id":"Holiday","items":[{"name":"magic"},{"name":"magic_band"},{"name":"ballon"},{"name":"confetti"},{"name":"framecracker"},{"name":"note"},{"name":"movie_theater"},{"name":"lantern"},{"name":"snowman"},{"name":"easter_egg"},{"name":"ghost"},{"name":"gift"},{"name":"birthday_card"},{"name":"cake"},{"name":"porker"},{"name":"counter"},{"name":"sing"},{"name":"christmas_sock"},{"name":"christmas_trees"},{"name":"christmas_hats"}]},{"id":"Daily Goods","items":[{"name":"washing_machine"},{"name":"hair_dryer"},{"name":"fans"},{"name":"fridge"},{"name":"microwave"},{"name":"desk"},{"name":"cabinet"},{"name":"chair"},{"name":"sofa"},{"name":"bed"},{"name":"shelf"},{"name":"bathtube"},{"name":"frame"},{"name":"pan"},{"name":"fork"},{"name":"ladder"},{"name":"besom"},{"name":"trash1"},{"name":"plastic_bag"},{"name":"weight"},{"name":"brush"},{"name":"alarm"},{"name":"lock"},{"name":"key"},{"name":"shirts"},{"name":"tshirts"},{"name":"vest"},{"name":"dress"},{"name":"skirts"},{"name":"pants"},{"name":"glove"},{"name":"scarf"},{"name":"fish_hat"},{"name":"cap"},{"name":"glass"},{"name":"sleeper"},{"name":"sleeper1"},{"name":"socks"},{"name":"shoes"},{"name":"high_heel_shoe"},{"name":"watch"},{"name":"cosmetics"},{"name":"perfume"},{"name":"scissor"},{"name":"lipstick"},{"name":"powder_puff"},{"name":"razor"},{"name":"comb"},{"name":"suncream"},{"name":"cosmetics1"},{"name":"cream"},{"name":"mask"}]},{"id":"Animal","items":[{"name":"bird"},{"name":"ladybug"},{"name":"butterfly"},{"name":"cat"},{"name":"dog"},{"name":"lion"},{"name":"monkey"},{"name":"cow"},{"name":"sheep"},{"name":"pig"},{"name":"horse"},{"name":"camelo"},{"name":"hatching_chicken"},{"name":"chicken"},{"name":"goose"},{"name":"seagull"},{"name":"snake"},{"name":"bat"},{"name":"bee"},{"name":"dolphin"},{"name":"shark"},{"name":"turtle"},{"name":"octpus"},{"name":"fish"}]},{"id":"Weather","items":[{"name":"cloud1"},{"name":"dust_storms"},{"name":"fog"},{"name":"tornado"},{"name":"thunder_and_cloud"},{"name":"moon"},{"name":"raining"},{"name":"snow"},{"name":"sun_and_cloud"},{"name":"snow1"},{"name":"bolt.cloud"},{"name":"humidity"},{"name":"templature_down"},{"name":"templature_up"},{"name":"templature.cold"},{"name":"templature.hot"},{"name":"wind"},{"name":"sun"},{"name":"thunder"},{"name":"moon1"},{"name":"sunrise"},{"name":"sunset"}]},{"id":"Sport","items":[{"name":"barbell"},{"name":"muscle"},{"name":"basketball"},{"name":"football"},{"name":"american_football"},{"name":"golf"},{"name":"badminton"},{"name":"volleyball"},{"name":"baseball"},{"name":"pingpong"},{"name":"tennis"},{"name":"skateboard"},{"name":"hiking"},{"name":"running"},{"name":"swimming"},{"name":"swimming_pool"},{"name":"stopwatch"}]},{"id":"Food & Drink","items":[{"name":"apple"},{"name":"cheery"},{"name":"grape"},{"name":"lemon"},{"name":"watermelon"},{"name":"orange"},{"name":"banana"},{"name":"tomato"},{"name":"pineapple"},{"name":"pear"},{"name":"mango"},{"name":"avocado"},{"name":"kiwi"},{"name":"durian"},{"name":"strawberry"},{"name":"blue_berry"},{"name":"mushroom"},{"name":"green_pepper"},{"name":"red_pepper"},{"name":"eggplant"},{"name":"broccoli"},{"name":"carrot"},{"name":"instant_noodles"},{"name":"lolipop"},{"name":"honey"},{"name":"icecream"},{"name":"dought"},{"name":"pancake"},{"name":"bread"},{"name":"croissant"},{"name":"toast"},{"name":"cheese"},{"name":"cake1"},{"name":"peanut"},{"name":"cashew_nut"},{"name":"almond"},{"name":"walnut"},{"name":"hazelnut"},{"name":"taco"},{"name":"chips"},{"name":"pizza"},{"name":"rice_roll"},{"name":"rice"},{"name":"hamburger"},{"name":"meat"},{"name":"dumpling"},{"name":"sushi"},{"name":"ramen_nooddle"},{"name":"salad"},{"name":"water"},{"name":"drink"},{"name":"tea"},{"name":"beer"},{"name":"milk"},{"name":"cocktail"}]},{"id":"Gesture","items":[{"name":"touch"},{"name":"press"},{"name":"hold_and_press"},{"name":"touch1"},{"name":"swipe_right"},{"name":"swipe_left"},{"name":"expand"},{"name":"pinch"},{"name":"two.finger"},{"name":"three.finger"},{"name":"fist"},{"name":"coorporation"},{"name":"thumbs_up"},{"name":"thumbs.down"}]},{"id":"Others","items":[{"name":"double_cube"},{"name":"package"},{"name":"shopbag"},{"name":"shield"},{"name":"flowchart"},{"name":"pacman"},{"name":"bomb"},{"name":"shopcart"},{"name":"gear"},{"name":"delivery1"},{"name":"speaker"},{"name":"rocket"},{"name":"astronaut"},{"name":"space_ship"},{"name":"ufo"},{"name":"asteroid"},{"name":"virus"},{"name":"ear"},{"name":"eye"},{"name":"warning"},{"name":"pill"},{"name":"thermometer"},{"name":"fingerprint"},{"name":"neuron"},{"name":"chain"},{"name":"male"},{"name":"female"},{"name":"clip"}]}]')
- },
- 231: function(e) {
- e.exports = JSON.parse('[{"id":"Productivity","items":[{"name":"calendar_planning"},{"name":"computer"},{"name":"presentation"},{"name":"briefcase"},{"name":"finance"},{"name":"inspiration"},{"name":"painting"},{"name":"sketch"}]},{"id":"Travel","items":[{"name":"beach"},{"name":"forest"},{"name":"space"},{"name":"travel"},{"name":"steamship"},{"name":"plane"},{"name":"taxi"},{"name":"bus"},{"name":"hotair_ballon"},{"name":"helicopter"}]},{"id":"Holiday","items":[{"name":"happy_birthday"},{"name":"moon"},{"name":"halloween"},{"name":"christmas"},{"name":"spring_festival"},{"name":"confetti"},{"name":"magic"},{"name":"movies"},{"name":"open_air"}]},{"id":"Food & Drink","items":[{"name":"fastfood"},{"name":"meat"},{"name":"dim_sum"},{"name":"vegetable"},{"name":"fruit"},{"name":"dessert"},{"name":"coffee"},{"name":"beers"}]},{"id":"Others","items":[{"name":"social"},{"name":"clothes"},{"name":"yes"},{"name":"boom"},{"name":"wow"}]}]')
- },
- 232: function(e, t, n) {
- "use strict";
- var r = n(4)
- , i = n(1);
- var o = Object(i.defineComponent)({
- name: "BaseOverlay",
- props: {
- isActivated: {
- type: Boolean,
- default: !1
- },
- backgroundColor: {
- type: String,
- default: "transparent"
- }
- },
- setup(e, t) {
- const n = Object(i.ref)()
- , r = Object(i.ref)({
- zIndex: "0"
- })
- , o = ()=>{
- t.emit("close")
- }
- , a = t=>{
- t.defaultPrevented || "escape" === t.key.toLowerCase() && e.escClose && (o(),
- t.preventDefault())
- }
- ;
- Object(i.onBeforeUnmount)(()=>{
- s(),
- l()
- }
- );
- const s = ()=>{
- n.value && (document.body.removeChild(n.value),
- n.value = null)
- }
- , l = ()=>{
- document.removeEventListener("keydown", a)
- }
- ;
- return Object(i.watch)(()=>e.isActivated, t=>{
- t ? (s(),
- n.value = document.createElement("div"),
- n.value.classList.add("overlay"),
- n.value.style.position = "fixed",
- n.value.style.width = "100vw",
- n.value.style.height = "100vh",
- n.value.style.left = "0",
- n.value.style.top = "0",
- n.value.style.zIndex = "1000",
- n.value.style.backgroundColor = e.backgroundColor,
- n.value.addEventListener("click", o),
- r.value.zIndex = "1001",
- document.body.appendChild(n.value),
- document.addEventListener("keydown", a)) : (s(),
- l())
- }
- , {
- immediate: !0
- }),
- {
- containerStyle: r,
- emitClose: o
- }
- }
- })
- , a = n(0)
- , s = Object(a.a)(o, (function() {
- var e = this
- , t = e.$createElement;
- return (e._self._c || t)("div", {
- staticStyle: {
- position: "fixed",
- left: "0",
- top: "0",
- "background-color": "transparent"
- },
- style: e.containerStyle,
- on: {
- keypress: function(t) {
- return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : (t.stopPropagation(),
- t.preventDefault(),
- e.emitClose.apply(null, arguments))
- }
- }
- }, [e._t("default")], 2)
- }
- ), [], !1, null, null, null).exports
- , l = Object(i.defineComponent)({
- name: "PopoverWrapper",
- components: {
- AppBaseOverlay: s
- },
- props: {
- width: {
- type: Number,
- default: 0
- },
- height: {
- type: Number,
- default: null
- },
- maxHeight: {
- type: Number,
- default: null
- },
- minHeight: {
- type: Number,
- default: null
- },
- x: {
- type: Number,
- default: 0
- },
- y: {
- type: Number,
- default: 0
- },
- value: {
- type: Boolean,
- default: !1
- }
- },
- setup(e, t) {
- Object(i.watch)(()=>e.value, (e,t)=>Object(r.a)(this, void 0, void 0, (function*() {}
- )));
- return {
- emitNewValue: e=>{
- t.emit("input", e)
- }
- ,
- containerStyles: Object(i.computed)(()=>{
- const t = e=>"number" == typeof e ? e + "px" : "auto";
- return {
- left: e.x + "px",
- top: e.y + "px",
- "max-width": e.width || "auto",
- "max-height": t(e.height ? e.height : e.maxHeight),
- "min-height": t(e.height ? e.height : e.minHeight),
- height: t(e.height),
- width: t(e.width)
- }
- }
- )
- }
- }
- })
- , u = (n(318),
- Object(a.a)(l, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: e.value,
- expression: "value"
- }]
- }, [n("div", {
- staticClass: "popover-arrow",
- staticStyle: {
- position: "fixed",
- width: "0",
- height: "0"
- },
- style: {
- left: e.x + "px",
- top: e.y + "px"
- }
- }), e._v(" "), n("app-base-overlay", {
- staticClass: "popover-body position-fixed overflow-hidden",
- style: e.containerStyles,
- attrs: {
- "is-activated": e.value
- },
- on: {
- close: function(t) {
- return e.emitNewValue(!1)
- }
- }
- }, [n("div", {
- staticClass: "h-100 w-100",
- staticStyle: {
- "background-color": "white"
- }
- }, [e._t("default")], 2)])], 1)
- }
- ), [], !1, null, "6c7a3c30", null).exports)
- , c = n(60);
- var d = Object(i.defineComponent)({
- name: "AppBaseTopicLocatorPopover",
- components: {
- AppPopoverWrapper: u
- },
- props: {
- topicId: {
- type: String
- },
- value: {
- type: Boolean,
- required: !0
- },
- height: {
- type: Number,
- default: null
- },
- width: {
- type: Number,
- required: !0
- },
- paddingTop: {
- type: Number,
- default: 0
- },
- paddingLeft: {
- type: Number,
- default: 0
- },
- paddingBottom: {
- type: Number,
- default: 0
- },
- paddingRight: {
- type: Number,
- default: 0
- }
- },
- setup(e, t) {
- const n = Object(i.inject)("store")
- , o = Object(i.ref)({
- x: 0,
- y: 0
- })
- , a = Object(i.ref)(!1)
- , s = Object(i.computed)(()=>({
- top: e.paddingTop + 16,
- left: e.paddingLeft + 16,
- right: e.paddingRight + 16,
- bottom: e.paddingBottom + 16
- }))
- , l = ()=>Object(r.a)(this, void 0, void 0, (function*() {
- if (!e.topicId)
- return;
- const t = n.workbook.getters.currentSheetViewportBounds.value
- , r = n.workbook.getters.getTopicBounds(e.topicId);
- if (!r || !t)
- return;
- const i = {
- x: r.x - (s.value.left + s.value.right),
- y: r.y - (s.value.top + s.value.bottom),
- width: r.width,
- height: r.height
- }
- , o = {
- width: e.width,
- height: e.height
- }
- , a = {
- width: t.width - (s.value.left + s.value.right),
- height: t.height - (s.value.top + s.value.bottom)
- }
- , {isOverflowInViewportTop: l, isOverflowInViewportBottom: u, isOverflowInViewportLeft: c, isOverflowInViewportRight: d, overflowTop: f, overflowBottom: h, overflowRight: p, overflowLeft: g} = ((e,t,n,r=0)=>{
- const i = t.height
- , o = t.width
- , a = Math.abs(Math.min(0, (e.width - o) / 2))
- , s = Math.min(0, e.y - e.height)
- , l = Math.min(0, n.height - (e.height + r + e.y + i))
- , u = Math.min(0, e.x - a)
- , c = Math.min(0, n.width - (e.x + e.width + a));
- return {
- overflowTop: s,
- overflowBottom: l,
- overflowRight: c,
- overflowLeft: u,
- isOverflowInViewportTop: s < 0,
- isOverflowInViewportBottom: l < 0,
- isOverflowInViewportLeft: u < 0,
- isOverflowInViewportRight: c < 0
- }
- }
- )(i, o, a, 0);
- let m = 0
- , v = 0;
- l && (v = -(f + s.value.top)),
- u && (v = h + (s.value.top + s.value.bottom)),
- c && (m = -(g + s.value.left)),
- d && (m = p - (s.value.left + s.value.right)),
- (l || u || c || d) && (v || m) && (yield new Promise(e=>{
- n.workbook.actions.moveViewport({
- deltaY: v,
- deltaX: m,
- option: {
- animate: !1,
- finishToRun: e
- }
- })
- }
- ))
- }
- ))
- , u = ()=>Object(r.a)(this, void 0, void 0, (function*() {
- if (!e.topicId)
- return;
- yield l();
- const t = n.workbook.getters.getTopicBounds(e.topicId);
- t ? (o.value = {
- x: t.x + t.width / 2,
- y: t.y + t.height + 0
- },
- yield c.default.nextTick()) : a.value = !1
- }
- ))
- , d = e=>Object(r.a)(this, void 0, void 0, (function*() {
- e ? (yield u(),
- a.value = !0,
- t.emit("show")) : (a.value = !1,
- t.emit("hide"))
- }
- ));
- return Object(i.watch)(()=>e.value, e=>Object(r.a)(this, void 0, void 0, (function*() {
- return d(e)
- }
- ))),
- Object(i.watch)(()=>e.width || e.height, ()=>u()),
- Object(i.watch)(()=>e.topicId, ()=>u()),
- {
- proxyExternalValue: a,
- coordinate: o
- }
- }
- })
- , f = Object(a.a)(d, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", [n("app-popover-wrapper", {
- attrs: {
- x: e.coordinate.x,
- y: e.coordinate.y,
- height: e.height,
- width: e.width,
- value: e.proxyExternalValue
- },
- on: {
- input: function(t) {
- return e.$emit("input", t)
- }
- }
- }, [e._t("default")], 2)], 1)
- }
- ), [], !1, null, null, null).exports
- , h = Object(i.defineComponent)({
- name: "AppNotesPopover",
- components: {
- AppBaseTopicLocatorPopover: f
- },
- props: {
- paddingTop: {
- type: Number,
- default: 0
- },
- paddingLeft: {
- type: Number,
- default: 0
- },
- paddingBottom: {
- type: Number,
- default: -100
- },
- paddingRight: {
- type: Number,
- default: 0
- }
- },
- setup() {
- const e = Object(i.inject)("store")
- , t = Object(i.ref)()
- , n = Object(i.ref)(!1);
- Object(i.watch)(()=>e.workbook.state.value.events.click, (e,r)=>{
- e.triggerId && e.triggerId !== r.triggerId && "notes" === e.currentTargetType && (t.value = e.currentTargetId,
- n.value = !0)
- }
- );
- const r = Object(i.computed)(()=>{
- if (!t.value)
- return "";
- const n = e.workbook.getters.getNotesById(t.value);
- return n.realHTML && n.realHTML.content || n.plain && n.plain.content || ""
- }
- );
- Object(i.watch)(()=>r.value, ()=>{
- if (!o.value || !o.value.contentWindow)
- return;
- const e = document.createElement("div");
- e.innerHTML = r.value,
- e.querySelectorAll("script").forEach(e=>{
- var t;
- return null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)
- }
- );
- let t = "<style> img { width: 100%; height: auto } body, html{ width: 100%; height: 100%; box-sizing: border-box; margin: 0; padding: 0 }; html { overflow: auto } </style>";
- t += e.innerHTML,
- o.value.contentWindow.document.body.innerHTML = t
- }
- ),
- Object(i.onMounted)(()=>{
- o.value && o.value.contentWindow && o.value.contentWindow.document.body.addEventListener("click", e=>{
- var t;
- if ("a" === (null === (t = e.target) || void 0 === t ? void 0 : t.tagName.toLowerCase())) {
- e.preventDefault();
- const t = e.target.getAttribute("href");
- t && window.open(t)
- }
- }
- )
- }
- );
- const o = Object(i.ref)();
- return {
- iframe: o,
- isNotesPopoverOpened: n,
- notesContent: r,
- currentClickedNoteTopicId: t,
- handleVisibleChange: e=>{
- n.value = e,
- e || (t.value = "")
- }
- }
- }
- })
- , p = Object(a.a)(h, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", {
- staticClass: "note-editor"
- }, [n("app-base-topic-locator-popover", {
- attrs: {
- "topic-id": e.currentClickedNoteTopicId,
- value: e.isNotesPopoverOpened,
- "padding-top": e.paddingTop,
- "padding-left": e.paddingLeft,
- "padding-right": e.paddingRight,
- "padding-bottom": e.paddingBottom,
- height: 280,
- width: 400
- },
- on: {
- input: e.handleVisibleChange
- }
- }, [n("div", {
- staticClass: "py-3 position-relative d-flex flex-column w-100 h-100"
- }, [n("h6", {
- staticClass: "px-3 w-100 text-white text-muted"
- }, [e._v("\n " + e._s("Note") + "\n ")]), e._v(" "), n("div", {
- staticClass: "pl-3 w-100 h-100"
- }, [n("iframe", {
- ref: "iframe",
- staticClass: "w-100 h-100 border-0"
- })])])])], 1)
- }
- ), [], !1, null, null, null).exports
- , g = Object(i.defineComponent)({
- name: "AppInformationPopover",
- components: {
- AppBaseTopicLocatorPopover: f
- },
- props: {
- paddingTop: {
- type: Number,
- default: 0
- },
- paddingLeft: {
- type: Number,
- default: 0
- },
- paddingBottom: {
- type: Number,
- default: 0
- },
- paddingRight: {
- type: Number,
- default: 0
- }
- },
- setup() {
- const e = Object(i.inject)("store")
- , t = Object(i.ref)(!1)
- , n = Object(i.ref)();
- Object(i.watch)(()=>e.workbook.state.value.events.click, (e,r)=>{
- e.triggerId && e.triggerId !== r.triggerId && "info-more" === e.currentTargetType && (n.value = e.currentTargetId,
- t.value = !0)
- }
- );
- const o = Object(i.ref)(0)
- , a = Object(i.ref)({
- note: null,
- hyperlink: "",
- comments: "",
- audioNote: "",
- taskInfo: "",
- topicLink: "",
- attachment: ""
- })
- , s = ()=>Object(r.a)(this, void 0, void 0, (function*() {
- const e = Object.values(a.value).filter(e=>Boolean(e)).length;
- o.value = 24 + 50 * e
- }
- ));
- return Object(i.watch)(()=>t.value, i=>Object(r.a)(this, void 0, void 0, (function*() {
- i && (()=>{
- if (!t.value || !n.value)
- return;
- a.value = {
- note: null,
- hyperlink: "",
- comments: "",
- audioNote: "",
- taskInfo: "",
- topicLink: "",
- attachment: ""
- },
- a.value.note = e.workbook.getters.getNotesById(n.value);
- e.workbook.getters.getAudioNoteById(n.value) && (a.value.audioNote = e.workbook.getters.getTopicTitleById(n.value) || "");
- const r = e.workbook.getters.getExtensionById(n.value);
- Array.isArray(r) && (a.value.taskInfo = r.find(e=>"org.xmind.ui.taskInfo" === e.provider));
- const i = e.workbook.getters.getHrefById(n.value);
- if (i)
- if (i.startsWith("xmind:#")) {
- const t = i.replace("xmind:#", "")
- , n = e.workbook.getters.getTopicTitleById(t) || ""
- , r = e.workbook.getters.getSheetTitleByTopicId(t) || "";
- a.value.topicLink = `${n}(${r})`
- } else
- i.startsWith("xap:") ? a.value.attachment = e.workbook.getters.getTopicTitleById(n.value) || i.split("/").pop() || "attachment" : (i.startsWith("file:") || i.startsWith("http:") || i.startsWith("https:") || console.warn("unknown url schema", i),
- a.value.hyperlink = i)
- }
- )()
- }
- ))),
- Object(i.watch)(()=>a.value, ()=>s()),
- {
- isInformationPopoverOpened: t,
- current: a,
- popoverHeight: o,
- handleVisibleChange: e=>{
- t.value = Boolean(e),
- s()
- }
- ,
- handleOpenNotePopover: ()=>{
- e.workbook.state.value.events.click = {
- triggerId: window.Snowbrush.utils.UUID(),
- currentTargetId: n.value || "",
- clientX: 0,
- clientY: 0,
- currentTargetType: "notes"
- },
- t.value = !1
- }
- ,
- currentTargetId: n,
- handleOpenHref: ()=>{
- n.value && (e.workbook.actions.openHref(e.workbook.getters.getHrefById(n.value)),
- t.value = !1)
- }
- }
- }
- })
- , m = (n(320),
- Object(a.a)(g, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", {
- staticClass: "information-more"
- }, [n("app-base-topic-locator-popover", {
- attrs: {
- "topic-id": e.currentTargetId,
- value: e.isInformationPopoverOpened,
- "padding-top": e.paddingTop,
- "padding-left": e.paddingLeft,
- "information.vue": "",
- "padding-right": e.paddingRight,
- "padding-bottom": e.paddingBottom,
- width: 280,
- height: e.popoverHeight
- },
- on: {
- input: e.handleVisibleChange
- }
- }, [n("div", {
- staticClass: "d-flex flex-column py-2"
- }, [e.current.note ? n("button", {
- staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
- on: {
- click: e.handleOpenNotePopover
- }
- }, [n("img", {
- staticClass: "information-more-item__icon ml-2 uk-background-norepeat flex-no-shrink",
- attrs: {
- draggable: "false",
- src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfbm90ZXM8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGRlZnM+PC9kZWZzPiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJpbmZvcm1hdGlvbi1jYXJkLeaWsOWinmNvbW1lbnRz5Y+K5YW25LuWIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTMyLjAwMDAwMCwgLTQyLjAwMDAwMCkiPiAgICAgICAgICAgIDxnIGlkPSJHcm91cC0zOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTMyLjAwMDAwMCwgNDIuMDAwMDAwKSI+ICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMTMiIGZpbGw9IiNGNEQ2MDciIGN4PSIxMCIgY3k9IjEwIiByPSIxMCI+PC9jaXJjbGU+ICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMjAtQ29weS0yIiBmaWxsPSIjMjIyNjJBIiB4PSI2IiB5PSI2IiB3aWR0aD0iOCIgaGVpZ2h0PSIxIj48L3JlY3Q+ICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMjMiIGZpbGw9IiMyMjI2MkEiIHg9IjYiIHk9IjEwIiB3aWR0aD0iOCIgaGVpZ2h0PSIxIj48L3JlY3Q+ICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMjMtQ29weSIgZmlsbD0iIzIyMjYyQSIgeD0iNiIgeT0iMTQiIHdpZHRoPSI0IiBoZWlnaHQ9IjEiPjwvcmVjdD4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
- }
- }), e._v(" "), n("span", {
- staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100"
- }, [e._v("\n " + e._s(e.current.note.plain.content) + "\n ")])]) : e._e(), e._v(" "), e.current.hyperlink ? n("button", {
- staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
- on: {
- click: e.handleOpenHref
- }
- }, [n("img", {
- staticClass: "information-more-item__icon ml-2 uk-preserve uk-background-norepeat flex-no-shrink",
- attrs: {
- draggable: "false",
- src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfaHlwZXJsaW5rPC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPjwvZGVmcz4gICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+ICAgICAgICA8ZyBpZD0iaW5mb3JtYXRpb24tY2FyZC3mlrDlop5jb21tZW50c+WPiuWFtuS7liIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2MC4wMDAwMDAsIC00Mi4wMDAwMDApIj4gICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzktQ29weS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjAuMDAwMDAwLCA0Mi4wMDAwMDApIj4gICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0xMyIgZmlsbD0iIzBCQUNGRCIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIj48L2NpcmNsZT4gICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTQxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC4wNzEwNjgsIDEwLjA3MTA2OCkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjA3MTA2OCwgLTEwLjA3MTA2OCkgdHJhbnNsYXRlKDYuNTcxMDY4LCAzLjU3MTA2OCkiPiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTAsNS41IEwwLDMuNSBDMCwxLjU2NzAwMzM4IDEuNTY3MDAzMzgsMCAzLjUsMCBDNS40MzI5OTY2MiwwIDcsMS41NjcwMDMzOCA3LDMuNSBDNywzLjk0MDk3MjIyIDcsNC42MDc2Mzg4OSA3LDUuNSIgaWQ9IlJlY3RhbmdsZS0yMCIgc3Ryb2tlPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMxIiBmaWxsPSIjRkZGRkZGIiB4PSIyLjUiIHk9IjQuNSIgd2lkdGg9IjIiIGhlaWdodD0iNCIgcng9IjEiPjwvcmVjdD4gICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLDEzIEwwLDExIEMwLDkuMDY3MDAzMzggMS41NjcwMDMzOCw3LjUgMy41LDcuNSBDNS40MzI5OTY2Miw3LjUgNyw5LjA2NzAwMzM4IDcsMTEgQzcsMTEuNDQwOTcyMiA3LDEyLjEwNzYzODkgNywxMyIgaWQ9IlJlY3RhbmdsZS0yMCIgc3Ryb2tlPSIjRkZGRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjUwMDAwMCwgMTAuMjUwMDAwKSBzY2FsZSgxLCAtMSkgdHJhbnNsYXRlKC0zLjUwMDAwMCwgLTEwLjI1MDAwMCkgIj48L3BhdGg+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
- }
- }), e._v(" "), n("span", {
- staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100"
- }, [e._v("\n " + e._s(e.current.hyperlink) + "\n ")])]) : e._e(), e._v(" "), e.current.topicLink ? n("button", {
- staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
- on: {
- click: e.handleOpenHref
- }
- }, [n("img", {
- staticClass: "information-more-item__icon ml-2 uk-preserve uk-background-norepeat flex-no-shrink",
- attrs: {
- draggable: "false",
- src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfaHlwZXJsaW5rPC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPjwvZGVmcz4gICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+ICAgICAgICA8ZyBpZD0iaW5mb3JtYXRpb24tY2FyZC3mlrDlop5jb21tZW50c+WPiuWFtuS7liIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2MC4wMDAwMDAsIC00Mi4wMDAwMDApIj4gICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzktQ29weS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjAuMDAwMDAwLCA0Mi4wMDAwMDApIj4gICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0xMyIgZmlsbD0iIzBCQUNGRCIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIj48L2NpcmNsZT4gICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTQxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC4wNzEwNjgsIDEwLjA3MTA2OCkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjA3MTA2OCwgLTEwLjA3MTA2OCkgdHJhbnNsYXRlKDYuNTcxMDY4LCAzLjU3MTA2OCkiPiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTAsNS41IEwwLDMuNSBDMCwxLjU2NzAwMzM4IDEuNTY3MDAzMzgsMCAzLjUsMCBDNS40MzI5OTY2MiwwIDcsMS41NjcwMDMzOCA3LDMuNSBDNywzLjk0MDk3MjIyIDcsNC42MDc2Mzg4OSA3LDUuNSIgaWQ9IlJlY3RhbmdsZS0yMCIgc3Ryb2tlPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMxIiBmaWxsPSIjRkZGRkZGIiB4PSIyLjUiIHk9IjQuNSIgd2lkdGg9IjIiIGhlaWdodD0iNCIgcng9IjEiPjwvcmVjdD4gICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLDEzIEwwLDExIEMwLDkuMDY3MDAzMzggMS41NjcwMDMzOCw3LjUgMy41LDcuNSBDNS40MzI5OTY2Miw3LjUgNyw5LjA2NzAwMzM4IDcsMTEgQzcsMTEuNDQwOTcyMiA3LDEyLjEwNzYzODkgNywxMyIgaWQ9IlJlY3RhbmdsZS0yMCIgc3Ryb2tlPSIjRkZGRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjUwMDAwMCwgMTAuMjUwMDAwKSBzY2FsZSgxLCAtMSkgdHJhbnNsYXRlKC0zLjUwMDAwMCwgLTEwLjI1MDAwMCkgIj48L3BhdGg+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
- }
- }), e._v(" "), n("span", {
- staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100"
- }, [e._v("\n " + e._s(e.current.topicLink) + "\n ")])]) : e._e(), e._v(" "), e.current.attachment ? n("button", {
- staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
- attrs: {
- disabled: ""
- },
- on: {
- click: e.handleOpenHref
- }
- }, [n("img", {
- staticClass: "information-more-item__icon ml-2 uk-preserve uk-background-norepeat flex-no-shrink",
- attrs: {
- draggable: "false",
- src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfYXR0YWNobWVudDwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImluZm9ybWF0aW9uLWNhcmQt5paw5aKeY29tbWVudHPlj4rlhbbku5YiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODguMDAwMDAwLCAtNDIuMDAwMDAwKSI+ICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTM5LUNvcHkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4OC4wMDAwMDAsIDQyLjAwMDAwMCkiPiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzgtQ29weSI+ICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzYtQ29weSI+ICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0xMyIgZmlsbD0iIzFDMTk0QyIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIj48L2NpcmNsZT4gICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNywxNiBMNyw1IEw3LDUgQzcsNC40NDc3MTUyNSA3LjQ0NzcxNTI1LDQgOCw0IEwxMyw0IEwxMyw0IEMxMy41NTIyODQ3LDQgMTQsNC40NDc3MTUyNSAxNCw1IEwxNCwxNSBMMTQsMTUgQzE0LDE1LjU1MjI4NDcgMTMuNTUyMjg0NywxNiAxMywxNiBMMTEsMTYgTDExLDE2IEMxMC40NDc3MTUzLDE2IDEwLDE1LjU1MjI4NDcgMTAsMTUgTDEwLDguMzk5NjM0NzUiIGlkPSJQYXRoLTEwLUNvcHkiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC41MDAwMDAsIDEwLjAwMDAwMCkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjUwMDAwMCwgLTEwLjAwMDAwMCkgIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8L2c+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
- }
- }), e._v(" "), n("span", {
- staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100",
- attrs: {
- title: e.current.attachment
- }
- }, [e._v("\n " + e._s(e.current.attachment) + "\n ")])]) : e._e(), e._v(" "), e.current.audioNote ? n("button", {
- staticClass: "btn btn-light text-left align-items-center information-more-item px-2 py-2 d-flex justify-content-center",
- attrs: {
- disabled: ""
- }
- }, [n("img", {
- staticClass: "information-more-item__icon ml-2 uk-preserve uk-background-norepeat flex-no-shrink",
- attrs: {
- draggable: "false",
- src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+aWNfYXR0YWNobWVudDwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImluZm9ybWF0aW9uLWNhcmQt5paw5aKeY29tbWVudHPlj4rlhbbku5YiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODguMDAwMDAwLCAtNDIuMDAwMDAwKSI+ICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTM5LUNvcHkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4OC4wMDAwMDAsIDQyLjAwMDAwMCkiPiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzgtQ29weSI+ICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMzYtQ29weSI+ICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0xMyIgZmlsbD0iIzFDMTk0QyIgY3g9IjEwIiBjeT0iMTAiIHI9IjEwIj48L2NpcmNsZT4gICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNywxNiBMNyw1IEw3LDUgQzcsNC40NDc3MTUyNSA3LjQ0NzcxNTI1LDQgOCw0IEwxMyw0IEwxMyw0IEMxMy41NTIyODQ3LDQgMTQsNC40NDc3MTUyNSAxNCw1IEwxNCwxNSBMMTQsMTUgQzE0LDE1LjU1MjI4NDcgMTMuNTUyMjg0NywxNiAxMywxNiBMMTEsMTYgTDExLDE2IEMxMC40NDc3MTUzLDE2IDEwLDE1LjU1MjI4NDcgMTAsMTUgTDEwLDguMzk5NjM0NzUiIGlkPSJQYXRoLTEwLUNvcHkiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC41MDAwMDAsIDEwLjAwMDAwMCkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjUwMDAwMCwgLTEwLjAwMDAwMCkgIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8L2c+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="
- }
- }), e._v(" "), n("span", {
- staticClass: "information-more-item__title ml-2 uk-text-left overflow-hidden w-100",
- attrs: {
- title: e.current.audioNote
- }
- }, [e._v("\n " + e._s(e.current.audioNote) + "\n ")])]) : e._e()])])], 1)
- }
- ), [], !1, null, "3759f7df", null).exports);
- var v = Object(i.defineComponent)({
- name: "BaseMap",
- components: {
- AppNotes: p,
- AppInfo: m
- },
- props: {
- fileBinaryContent: {
- type: ArrayBuffer,
- validator: e=>e instanceof ArrayBuffer,
- required: !0
- }
- },
- setup(e, t) {
- const n = Object(i.ref)()
- , o = Object(i.inject)("store");
- let a, s;
- return Object(i.onMounted)(()=>Object(r.a)(this, void 0, void 0, (function*() {
- e.fileBinaryContent && (yield o.workbook.actions.init(n.value, e.fileBinaryContent),
- a = ((e,t=document)=>{
- const n = t=>{
- const n = t
- , r = [];
- (n.ctrlKey || n.metaKey) && r.push("ctrl"),
- n.altKey && r.push("alt"),
- n.shiftKey && r.push("shift");
- const i = {
- " ": "space"
- }
- , o = (n.key || "").toLowerCase();
- o && -1 === ["control", "shift"].indexOf(o) && r.push(i[o] || o);
- const a = r.join("+");
- e.filter(e=>{
- if ("tester"in e)
- return e.tester(r);
- let t = [];
- return "composition"in e && t.push(e.composition),
- "compositions"in e && (t = e.compositions.slice()),
- t = t.map(e=>e.replace(/ /g, "").toLowerCase()),
- -1 !== t.indexOf(a)
- }
- ).forEach(e=>e.handler(n))
- }
- ;
- return t.addEventListener("keydown", n),
- ()=>{
- t.removeEventListener("keydown", n)
- }
- }
- )([{
- composition: "Ctrl + =",
- handler: e=>{
- e.preventDefault(),
- o.workbook.actions.zoomOut()
- }
- }, {
- composition: "Ctrl + -",
- handler: e=>{
- e.preventDefault(),
- o.workbook.actions.zoomIn()
- }
- }], n.value),
- s = ((e,t)=>{
- let n = 0;
- const r = ()=>{
- n = t.workbook.state.value.zoomScale
- }
- , i = e=>{
- n && t.workbook.actions.zoom(e.scale * n)
- }
- , o = ()=>{
- n = void 0
- }
- ;
- if (e)
- return e.addEventListener("gesturestart", r),
- e.addEventListener("gesturechange", i),
- e.addEventListener("gestureend", o),
- ()=>{
- e.removeEventListener("gesturestart", r),
- e.removeEventListener("gesturechange", i),
- e.removeEventListener("gestureend", o)
- }
- }
- )(n.value, o))
- }
- ))),
- Object(i.onBeforeUnmount)(()=>Object(r.a)(this, void 0, void 0, (function*() {
- a && a(),
- s && s(),
- yield o.workbook.actions.destroy()
- }
- ))),
- {
- workbookContainer: n
- }
- }
- })
- , y = (n(322),
- Object(a.a)(v, (function() {
- var e = this.$createElement
- , t = this._self._c || e;
- return t("div", {
- staticClass: "h-100 w-100 position-relative"
- }, [t("div", {
- ref: "workbookContainer",
- staticClass: "h-100 w-100"
- }), this._v(" "), t("app-notes"), this._v(" "), t("app-info")], 1)
- }
- ), [], !1, null, null, null));
- t.a = y.exports
- },
- 233: function(e, t, n) {
- "use strict";
- var r = n(4)
- , i = n(1)
- , o = n(143)
- , a = n(80);
- class s {
- constructor(e, t) {
- var n;
- this.store = e,
- this.storage = t,
- this.endingScreenBackground = "#FFFFFF",
- this.topicMap = new Map,
- this.parentMap = new Map,
- this.endingScreenImageSnapshot = null;
- const r = this.getRootTopic();
- this.collectTopic(r),
- this.endingScreenBackground = e.workbook.getters.getTopicViewBackgroundColor() || this.endingScreenBackground,
- null === (n = this.store.workbook.getters.getMapImage(this.endingScreenBackground)) || void 0 === n || n.then(e=>{
- this.endingScreenImageSnapshot = e
- }
- )
- }
- childrenOfTopic(e) {
- return e && e.children ? e.children : null
- }
- collectTopic(e) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- const t = e;
- t.imageAttributes = Object(a.b)(e, this.storage, this.store),
- this.topicMap.set(e.id, t);
- const n = this.childrenOfTopic(e);
- if (n) {
- if (n.attached)
- for (const t of n.attached)
- this.collectTopic(t),
- this.parentMap.set(t.id, e.id);
- if (n.detached)
- for (const t of n.detached)
- this.collectTopic(t),
- this.parentMap.set(t.id, e.id);
- if (n.summary)
- for (const t of n.summary)
- this.collectTopic(t),
- this.parentMap.set(t.id, e.id);
- if (n.callout)
- for (const t of n.callout)
- this.collectTopic(t),
- this.parentMap.set(t.id, e.id)
- }
- }
- ))
- }
- getRootTopic() {
- return this.store.workbook.getters.getRootTopic()
- }
- getStartingTopicId() {
- return this.getRootTopic().id
- }
- getSubtopics(e) {
- const t = this.childrenOfTopic(this.topicMap.get(e));
- return t && t.attached ? t.attached.map(e=>e.id) : []
- }
- getParentTopicId(e) {
- const t = this.parentMap.get(e);
- return t || ""
- }
- getFloatingTopics() {
- const e = this.getRootTopic().id
- , t = this.childrenOfTopic(e);
- return t && t.detached ? t.detached.map(e=>e.id) : []
- }
- getTopicAttributes(e) {
- const t = this.store.workbook.getters.getResourceUrlPrefix();
- return Object(a.e)(this.topicMap.get(e), t)
- }
- getEndingScreenContent() {
- return Object(r.a)(this, void 0, void 0, (function*() {
- return this.endingScreenImageSnapshot ? this.endingScreenImageSnapshot : yield this.store.workbook.getters.getMapImage(this.endingScreenBackground)
- }
- ))
- }
- getThemeIdFromExtension() {
- const e = this.getRootTopic();
- return Object(a.c)(e).preferredThemeId
- }
- }
- class l {
- constructor(e, t, n) {
- this.store = e,
- this.containerElement = t,
- this.keyBinding = e=>{
- switch (e.code) {
- case "Space":
- case "ArrowRight":
- case "ArrowDown":
- this.next();
- break;
- case "ArrowUp":
- case "ArrowLeft":
- this.prev()
- }
- }
- ,
- this.contentProvider = new s(this.store,n),
- this.slideShow = new o.Slideshow(this.contentProvider),
- this.view = new o.PresentationView({}),
- this.view.el.style.left = "0",
- this.view.el.style.top = "0",
- this.view.el.style.width = "100%",
- this.view.el.style.height = "100%",
- t.appendChild(this.view.el),
- this.slideShow.addPresenter(this.view),
- this.view.update(),
- this.view.connect(),
- this.slideShow.present();
- const r = this.getThemeId();
- this.changeThemeId(r),
- window.addEventListener("keyup", this.keyBinding)
- }
- next() {
- this.slideShow.forward()
- }
- prev() {
- this.slideShow.backward()
- }
- fastForward() {
- this.slideShow.fastForward()
- }
- fastBackward() {
- this.slideShow.fastBackward()
- }
- get animationEnabled() {
- return !this.slideShow.disablesAnimations
- }
- set animationEnabled(e) {
- this.slideShow.disablesAnimations = !e
- }
- getThemeId() {
- return this.contentProvider.getThemeIdFromExtension() || this.slideShow.slideAppearanceId || "default"
- }
- changeThemeId(e) {
- this.slideShow.changeSlideTheme(e)
- }
- unMount() {
- window.removeEventListener("keyup", this.keyBinding),
- this.view.disconnect(),
- this.slideShow.removePresenter(this.view),
- this.view.el.parentElement === this.containerElement && this.containerElement.removeChild(this.view.el)
- }
- }
- var u = n(23)
- , c = Object(i.defineComponent)({
- name: "share-pitch-menu-settings",
- components: {},
- props: {
- animation: Boolean,
- themeId: String
- },
- setup: (e,t)=>({
- toggleAnimation: ()=>t.emit("toggleAnimation"),
- changeTheme: e=>t.emit("changeTheme", e)
- })
- })
- , d = (n(328),
- n(0))
- , f = Object(d.a)(c, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", {
- staticClass: "share-pitch-menu__settings"
- }, [n("button", {
- staticClass: "btn btn-icon",
- attrs: {
- type: "button",
- "data-toggle": "dropdown",
- "aria-haspopup": "true",
- "aria-expanded": "false",
- "data-offset": "72, 18"
- }
- }, [n("svg", {
- attrs: {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- "fill-rule": "evenodd",
- "clip-rule": "evenodd",
- d: "M14.4782 20.7851C14.2943 21.5214 13.6966 22 12.9333 22H11.0667C10.2943 22 9.69655 21.5214 9.52184 20.7851L9.15402 19.1744L8.90575 19.0824L7.49885 19.9567C6.85517 20.3617 6.09195 20.2513 5.55862 19.7082L4.26207 18.4197C3.71954 17.8675 3.61839 17.1127 4.02299 16.4777L4.89655 15.0695L4.81379 14.8486L3.2046 14.4712C2.47816 14.2872 2 13.6889 2 12.925V11.1118C2 10.3479 2.46897 9.74966 3.2046 9.56558L4.7954 9.17902L4.88736 8.93971L4.01379 7.54073C3.6092 6.90566 3.71034 6.15094 4.25287 5.58951L5.54943 4.30097C6.08276 3.75794 6.83678 3.6567 7.48966 4.05246L8.89655 4.91763L9.15402 4.82559L9.52184 3.20571C9.69655 2.4694 10.2943 2 11.0667 2H12.9333C13.6966 2 14.2943 2.4694 14.4782 3.20571L14.846 4.82559L15.1034 4.91763L16.5103 4.05246C17.154 3.6567 17.9172 3.75794 18.4506 4.30097L19.7379 5.58951C20.2897 6.15094 20.3816 6.90566 19.977 7.54073L19.1034 8.93971L19.1954 9.17902L20.7954 9.56558C21.531 9.74966 22 10.3479 22 11.1118V12.925C22 13.6889 21.5218 14.2872 20.7954 14.4712L19.1862 14.8486L19.0943 15.0695L19.9678 16.4777C20.3724 17.1127 20.2805 17.8675 19.7287 18.4197L18.4414 19.7082C17.8989 20.2513 17.1356 20.3617 16.492 19.9567L15.0851 19.0824L14.846 19.1744L14.4782 20.7851ZM11.3057 20.3065H12.6942C12.8506 20.3065 12.9241 20.2421 12.9517 20.104L13.5034 17.8398C14.1103 17.6926 14.6345 17.4625 15.0942 17.1772L17.0712 18.4013C17.1908 18.4749 17.3011 18.4657 17.4115 18.3553L18.377 17.3797C18.4873 17.2784 18.4873 17.1772 18.4138 17.0483L17.1908 15.0695C17.4483 14.6369 17.6965 14.0755 17.8345 13.4956L20.1057 12.9526C20.2437 12.9342 20.308 12.8514 20.308 12.6949V11.3327C20.308 11.167 20.2529 11.1026 20.1057 11.0658L17.8437 10.532C17.7057 9.91532 17.4299 9.34468 17.2092 8.93051L18.423 6.96088C18.5057 6.83203 18.5057 6.72158 18.3954 6.62034L17.4207 5.66314C17.3103 5.55269 17.2092 5.54349 17.0712 5.61712L15.1034 6.82282C14.6437 6.56512 14.1011 6.31661 13.5034 6.16935L12.9517 3.89599C12.9241 3.74873 12.8506 3.68431 12.6942 3.68431H11.3057C11.1494 3.68431 11.0666 3.75794 11.0483 3.89599L10.5057 6.16015C9.91722 6.30741 9.30113 6.56512 8.88734 6.82282L6.91952 5.61712C6.78159 5.53428 6.68044 5.55269 6.5701 5.65393L5.59538 6.61113C5.49423 6.72158 5.49423 6.83203 5.5678 6.96088L6.79078 8.93051C6.5609 9.34468 6.29423 9.91532 6.1563 10.532L3.89423 11.0658C3.74711 11.1026 3.68274 11.167 3.68274 11.3327V12.6949C3.68274 12.8514 3.7563 12.9342 3.89423 12.9526L6.1655 13.4956C6.30343 14.0755 6.54251 14.6277 6.79998 15.0695L5.57699 17.0575C5.50343 17.1772 5.50343 17.2876 5.61377 17.3889L6.57929 18.3553C6.68964 18.4657 6.79998 18.4749 6.91952 18.4013L8.90573 17.1772C9.3563 17.4625 9.91722 17.7018 10.4965 17.8398L11.0483 20.104C11.0666 20.2421 11.1494 20.3065 11.3057 20.3065ZM12.0046 15.4929C13.9172 15.4929 15.4896 13.919 15.4896 11.9954C15.4896 10.0902 13.9172 8.51634 12.0046 8.51634C10.0827 8.51634 8.50114 10.0902 8.50114 11.9954C8.50114 13.919 10.0827 15.4929 12.0046 15.4929ZM10.1012 11.9954C10.1012 13.0446 10.9563 13.9006 12.0046 13.9006C13.0253 13.9006 13.8805 13.0354 13.8805 11.9954C13.8805 10.9646 13.0253 10.1086 12.0046 10.1086C10.9655 10.1086 10.1012 10.9646 10.1012 11.9954Z",
- fill: "currentcolor"
- }
- })])]), e._v(" "), n("div", {
- staticClass: "dropdown-menu dropdown-menu-right",
- on: {
- click: function(e) {
- return e.stopPropagation(),
- function() {}
- .apply(null, arguments)
- }
- }
- }, [n("div", {
- staticClass: "menu-container"
- }, [n("div", {
- staticClass: "menu-block"
- }, [n("span", {
- staticClass: "font-weight-bold dropdown-title d-block"
- }, [e._v("Settings")]), e._v(" "), n("span", {
- staticClass: "d-block",
- staticStyle: {
- "margin-bottom": "6px"
- }
- }, [e._v("Appearance")]), e._v(" "), n("div", {
- staticClass: "d-flex"
- }, [n("button", {
- staticClass: "btn btn-icon",
- class: {
- active: "default" === e.themeId
- },
- attrs: {
- type: "button"
- },
- on: {
- click: function(t) {
- return t.preventDefault(),
- t.stopPropagation(),
- e.changeTheme("default")
- }
- }
- }, [n("svg", {
- attrs: {
- width: "16",
- height: "16",
- viewBox: "0 0 16 16",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- "fill-rule": "evenodd",
- "clip-rule": "evenodd",
- d: "M1 11.2299C4.33413 11.7777 7.59894 9.87986 8.55241 6.68729C9.15077 4.68374 8.7083 2.60738 7.53235 1C8.62048 1.0465 9.71996 1.33069 10.7489 1.87536C14.299 3.75463 15.6649 8.02319 13.7997 11.4095C11.9344 14.7957 7.54441 16.0174 3.99428 14.1381C2.67826 13.4415 1.66239 12.4165 1 11.2299Z",
- fill: "currentcolor"
- }
- })])]), e._v(" "), n("button", {
- staticClass: "btn btn-icon ml-spacing-small",
- class: {
- active: "light" === e.themeId
- },
- attrs: {
- type: "button"
- },
- on: {
- click: function(t) {
- return t.preventDefault(),
- t.stopPropagation(),
- e.changeTheme("light")
- }
- }
- }, [n("svg", {
- attrs: {
- width: "16",
- height: "16",
- viewBox: "0 0 16 16",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- d: "M8.79427 0.831909C8.79427 0.390081 8.4361 0.0319092 7.99427 0.0319092C7.55244 0.0319092 7.19427 0.390081 7.19427 0.831909H8.79427ZM7.19427 2.63191C7.19427 3.07374 7.55244 3.43191 7.99427 3.43191C8.4361 3.43191 8.79427 3.07374 8.79427 2.63191H7.19427ZM8.79427 13.37C8.79427 12.9282 8.4361 12.57 7.99427 12.57C7.55244 12.57 7.19427 12.9282 7.19427 13.37H8.79427ZM7.19427 15.17C7.19427 15.6118 7.55244 15.97 7.99427 15.97C8.4361 15.97 8.79427 15.6118 8.79427 15.17H7.19427ZM13.6292 3.49736C13.9417 3.18494 13.9417 2.6784 13.6292 2.36599C13.3168 2.05357 12.8103 2.05357 12.4979 2.36599L13.6292 3.49736ZM11.2251 3.63878C10.9126 3.9512 10.9126 4.45773 11.2251 4.77015C11.5375 5.08257 12.044 5.08257 12.3564 4.77015L11.2251 3.63878ZM4.76348 12.3631C5.0759 12.0507 5.0759 11.5442 4.76348 11.2317C4.45106 10.9193 3.94453 10.9193 3.63211 11.2317L4.76348 12.3631ZM2.35931 12.5045C2.04689 12.817 2.04689 13.3235 2.35931 13.6359C2.67173 13.9483 3.17826 13.9483 3.49068 13.6359L2.35931 12.5045ZM15.1632 8.80096C15.6051 8.80096 15.9632 8.44279 15.9632 8.00096C15.9632 7.55913 15.6051 7.20096 15.1632 7.20096V8.80096ZM13.3632 7.20096C12.9214 7.20096 12.5632 7.55913 12.5632 8.00096C12.5632 8.44279 12.9214 8.80096 13.3632 8.80096V7.20096ZM2.6252 8.80098C3.06702 8.80098 3.4252 8.44281 3.4252 8.00098C3.4252 7.55915 3.06702 7.20098 2.6252 7.20098V8.80098ZM0.825195 7.20098C0.383368 7.20098 0.0251953 7.55915 0.0251953 8.00098C0.0251953 8.44281 0.383368 8.80098 0.825195 8.80098V7.20098ZM12.4978 13.6359C12.8102 13.9483 13.3167 13.9483 13.6291 13.6359C13.9416 13.3235 13.9416 12.817 13.6291 12.5045L12.4978 13.6359ZM12.3564 11.2318C12.0439 10.9193 11.5374 10.9193 11.225 11.2318C10.9126 11.5442 10.9126 12.0507 11.225 12.3631L12.3564 11.2318ZM3.63209 4.77025C3.94451 5.08267 4.45104 5.08267 4.76346 4.77025C5.07588 4.45783 5.07588 3.9513 4.76346 3.63888L3.63209 4.77025ZM3.49067 2.36609C3.17825 2.05367 2.67171 2.05367 2.3593 2.36609C2.04688 2.67851 2.04688 3.18504 2.3593 3.49746L3.49067 2.36609ZM7.19427 0.831909V2.63191H8.79427V0.831909H7.19427ZM7.19427 13.37V15.17H8.79427V13.37H7.19427ZM12.4979 2.36599L11.2251 3.63878L12.3564 4.77015L13.6292 3.49736L12.4979 2.36599ZM3.63211 11.2317L2.35931 12.5045L3.49068 13.6359L4.76348 12.3631L3.63211 11.2317ZM15.1632 7.20096H13.3632V8.80096H15.1632V7.20096ZM2.6252 7.20098H0.825195V8.80098H2.6252V7.20098ZM13.6291 12.5045L12.3564 11.2318L11.225 12.3631L12.4978 13.6359L13.6291 12.5045ZM4.76346 3.63888L3.49067 2.36609L2.3593 3.49746L3.63209 4.77025L4.76346 3.63888ZM10.2001 7.99998C10.2001 9.21501 9.21516 10.2 8.00013 10.2V11.8C10.0988 11.8 11.8001 10.0987 11.8001 7.99998H10.2001ZM8.00013 10.2C6.78511 10.2 5.80013 9.21501 5.80013 7.99998H4.20013C4.20013 10.0987 5.90145 11.8 8.00013 11.8V10.2ZM5.80013 7.99998C5.80013 6.78496 6.78511 5.79998 8.00013 5.79998V4.19998C5.90145 4.19998 4.20013 5.9013 4.20013 7.99998H5.80013ZM8.00013 5.79998C9.21516 5.79998 10.2001 6.78496 10.2001 7.99998H11.8001C11.8001 5.9013 10.0988 4.19998 8.00013 4.19998V5.79998Z",
- fill: "currentcolor"
- }
- })])])])]), e._v(" "), n("hr", {
- staticStyle: {
- margin: "0"
- }
- }), e._v(" "), n("div", {
- staticClass: "menu-block"
- }, [n("div", {
- staticClass: "d-md-flex flex-base-line"
- }, [n("input", {
- attrs: {
- type: "checkbox",
- id: "animation-checkbox",
- name: "animation"
- },
- domProps: {
- value: e.animation,
- checked: e.animation
- },
- on: {
- input: e.toggleAnimation
- }
- }), e._v(" "), e._m(0)])])])])])
- }
- ), [function() {
- var e = this.$createElement
- , t = this._self._c || e;
- return t("label", {
- staticStyle: {
- "margin-left": "4px",
- transform: "translateY(-1px)"
- },
- attrs: {
- for: "animation-checkbox"
- }
- }, [t("span", [this._v("Animation")])])
- }
- ], !1, null, "5e5182e9", null).exports
- , h = Object(i.defineComponent)({
- name: "PicthMode",
- props: {
- resourceStorage: Object
- },
- components: {
- SharePitchMenuSettings: f
- },
- setup(e, t) {
- const n = Object(i.getCurrentInstance)()
- , o = Object(i.inject)("store")
- , a = Object(i.ref)(!1)
- , s = Object(i.ref)()
- , c = Object(i.ref)(!1)
- , d = Object(i.ref)("default");
- let f;
- const h = ()=>{
- Object(u.isFullScreen)() || (f && f.unMount(),
- a.value = !1)
- }
- , p = ()=>{
- Object(u.exitFullScreen)(),
- f && f.unMount(),
- a.value = !1
- }
- ;
- let g;
- return Object(i.onMounted)(()=>Object(r.a)(this, void 0, void 0, (function*() {
- Object(u.isSupportFullScreen)() && (g = Object(u.onFullScreenChanged)(h),
- yield Object(u.requestFullScreen)(n.$el),
- yield new Promise(e=>setTimeout(e, 500)),
- Object(u.fullScreenElement)() === n.$el && (a.value = !0,
- yield new Promise(e=>setTimeout(e, 200)),
- s.value && (f = new l(o,s.value,e.resourceStorage),
- c.value = f.animationEnabled,
- d.value = f.getThemeId(),
- f.slideShow.on("finish", p))))
- }
- ))),
- Object(i.onBeforeUnmount)(()=>{
- "function" == typeof g && g()
- }
- ),
- {
- isContainerReady: a,
- pitchContainer: s,
- themeId: d,
- exitPitch: p,
- next: ()=>f && f.next(),
- prev: ()=>f && f.prev(),
- fastForward: ()=>f && f.fastForward(),
- fastBackward: ()=>f && f.fastBackward(),
- animationEnabled: c,
- toggleAnimation: ()=>{
- f && (f.animationEnabled = !f.animationEnabled,
- c.value = f.animationEnabled)
- }
- ,
- changeTheme: e=>{
- f && (f.changeThemeId(e),
- d.value = e)
- }
- }
- }
- })
- , p = (n(330),
- Object(d.a)(h, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", {
- staticClass: "position-relative"
- }, [n("div", {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: e.isContainerReady,
- expression: "isContainerReady"
- }],
- ref: "pitchContainer",
- staticClass: "pitch-mode-container w-100 h-100"
- }), e._v(" "), e.isContainerReady ? n("div", {
- staticClass: "pitch-mask",
- on: {
- click: e.next
- }
- }) : e._e(), e._v(" "), e.isContainerReady ? n("div", {
- staticClass: "top-right-bar d-flex",
- class: {
- dark: "default" === e.themeId
- }
- }, [n("div", {
- ref: "topBarRightElement",
- staticClass: "flex-middle align-items-center floating-bar d-flex",
- staticStyle: {
- "flex-shrink": "0"
- }
- }, [n("div", [n("button", {
- staticClass: "btn btn-text",
- attrs: {
- type: "button"
- },
- on: {
- click: e.exitPitch
- }
- }, [n("span", [e._v("Exit")])])]), e._v(" "), n("hr", {
- staticClass: "floating-bar__vertical-separator"
- }), e._v(" "), n("share-pitch-menu-settings", {
- attrs: {
- animation: e.animationEnabled,
- themeId: e.themeId
- },
- on: {
- toggleAnimation: e.toggleAnimation,
- changeTheme: e.changeTheme
- }
- })], 1), e._v(" "), n("div", {
- ref: "topBarRightElement",
- staticClass: "flex-middle align-items-center floating-bar d-flex ml-spacing",
- staticStyle: {
- "flex-shrink": "0"
- }
- }, [n("div", [n("button", {
- staticClass: "btn btn-icon",
- attrs: {
- type: "button"
- },
- on: {
- click: e.fastBackward
- }
- }, [n("svg", {
- attrs: {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- d: "M20.1674 18.7698L20.1674 18.7698L20.173 18.7729C20.5208 18.972 20.6627 19 20.7723 19C20.8739 19 20.9031 18.9694 20.9149 18.9564C20.9336 18.9358 21 18.8454 21 18.6146L21 6.3854C21 6.16097 20.9347 6.06877 20.9134 6.04514C20.8991 6.0293 20.869 6 20.7723 6C20.6627 6 20.5208 6.02796 20.173 6.22705L20.173 6.22707L20.1674 6.2302L9.81595 12.0684C9.46095 12.274 9.31975 12.3939 9.26303 12.4604C9.25734 12.4671 9.25349 12.4721 9.251 12.4756C9.2505 12.4807 9.25 12.4886 9.25 12.5C9.25 12.5136 9.2507 12.5224 9.25133 12.5276C9.25379 12.5312 9.25798 12.5368 9.26471 12.5448C9.31986 12.6098 9.45975 12.7296 9.81201 12.9294C9.81236 12.9296 9.81271 12.9298 9.81306 12.93L20.1674 18.7698Z",
- stroke: "currentcolor",
- "stroke-width": "2"
- }
- }), e._v(" "), n("path", {
- attrs: {
- d: "M13 20L2.68164 12.9648C2.35414 12.7415 2.35414 12.2585 2.68164 12.0352L13 5",
- stroke: "currentcolor",
- "stroke-width": "2",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }
- })])])]), e._v(" "), n("div", {
- staticClass: "ml-spacing"
- }, [n("button", {
- staticClass: "btn btn-icon",
- attrs: {
- type: "button"
- },
- on: {
- click: e.prev
- }
- }, [n("svg", {
- attrs: {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- d: "M17.1426 18.7559L17.1426 18.7559L17.1482 18.7593C17.5045 18.9729 17.6458 19 17.75 19C17.8419 19 17.8726 18.9728 17.8933 18.9489C17.9243 18.9131 18 18.7934 18 18.5222L18 5.47777C18 5.21323 17.9253 5.09171 17.8919 5.05285C17.8685 5.02573 17.8369 5 17.75 5C17.6458 5 17.5045 5.02708 17.1482 5.24074L17.1482 5.24076L17.1426 5.24407L6.60288 11.4715C6.24274 11.69 6.09508 11.8198 6.03226 11.8969C6.01961 11.9125 6.01324 11.9227 6.01032 11.9277C6.00757 11.9326 6.00666 11.935 6.00626 11.9362C6.00583 11.9374 6.00451 11.9414 6.00316 11.9499C6.00175 11.9589 6 11.9749 6 12C6 12.0473 6.00612 12.0647 6.00682 12.0667L6.00686 12.0668L6.00689 12.0669C6.00734 12.0683 6.01135 12.0806 6.03388 12.1085C6.09524 12.1842 6.24166 12.3139 6.59905 12.5262C6.59936 12.5264 6.59967 12.5266 6.59998 12.5268L17.1426 18.7559Z",
- stroke: "currentcolor",
- "stroke-width": "2"
- }
- })])])]), e._v(" "), n("div", {
- staticClass: "ml-spacing"
- }, [n("button", {
- staticClass: "btn btn-icon",
- attrs: {
- type: "button"
- },
- on: {
- click: e.next
- }
- }, [n("svg", {
- attrs: {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- d: "M6.85738 18.7559L6.85737 18.7559L6.85178 18.7593C6.49548 18.9729 6.35422 19 6.25 19C6.15808 19 6.1274 18.9728 6.10669 18.9489C6.07573 18.9131 6 18.7934 6 18.5222L6 5.47777C6 5.21323 6.07466 5.09171 6.10813 5.05285C6.13149 5.02573 6.16307 5 6.25 5C6.35422 5 6.49548 5.02708 6.85178 5.24074L6.85177 5.24076L6.85738 5.24407L17.3971 11.4715C17.7573 11.69 17.9049 11.8198 17.9677 11.8969C17.9804 11.9125 17.9868 11.9227 17.9897 11.9277C17.9924 11.9326 17.9933 11.935 17.9937 11.9362C17.9942 11.9374 17.9955 11.9414 17.9968 11.9499C17.9983 11.9589 18 11.9749 18 12C18 12.0473 17.9939 12.0647 17.9932 12.0667L17.9931 12.0668L17.9931 12.0669C17.9927 12.0683 17.9887 12.0806 17.9661 12.1085C17.9048 12.1842 17.7583 12.3139 17.401 12.5262C17.4006 12.5264 17.4003 12.5266 17.4 12.5268L6.85738 18.7559Z",
- stroke: "currentcolor",
- "stroke-width": "2"
- }
- })])])]), e._v(" "), n("div", {
- staticClass: "ml-spacing"
- }, [n("button", {
- staticClass: "btn btn-icon",
- attrs: {
- type: "button"
- },
- on: {
- click: e.fastForward
- }
- }, [n("svg", {
- attrs: {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- d: "M3.83257 18.7698L3.83256 18.7698L3.82704 18.7729C3.47922 18.972 3.3373 19 3.22768 19C3.12615 19 3.0969 18.9694 3.08512 18.9564C3.06642 18.9358 3 18.8454 3 18.6146L3 6.3854C3 6.16097 3.06529 6.06877 3.08661 6.04514C3.10091 6.0293 3.13097 6 3.22768 6C3.3373 6 3.47923 6.02796 3.82704 6.22705L3.82703 6.22707L3.83257 6.2302L14.1841 12.0684C14.5391 12.274 14.6802 12.3939 14.737 12.4604C14.7427 12.4671 14.7465 12.4721 14.749 12.4756C14.7495 12.4807 14.75 12.4886 14.75 12.5C14.75 12.5136 14.7493 12.5224 14.7487 12.5276C14.7462 12.5312 14.742 12.5368 14.7353 12.5448C14.6801 12.6098 14.5403 12.7296 14.188 12.9294C14.1876 12.9296 14.1873 12.9298 14.1869 12.93L3.83257 18.7698Z",
- stroke: "currentcolor",
- "stroke-width": "2"
- }
- }), e._v(" "), n("path", {
- attrs: {
- d: "M11 20L21.3184 12.9648C21.6459 12.7415 21.6459 12.2585 21.3184 12.0352L11 5",
- stroke: "currentcolor",
- "stroke-width": "2",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }
- })])])])])]) : e._e()])
- }
- ), [], !1, null, "2012282a", null));
- t.a = p.exports
- },
- 234: function(e, t, n) {
- "use strict";
- var r = n(1);
- const i = (e,t=0)=>{
- let n = "";
- return e.querySelectorAll(":scope > li").forEach(e=>{
- const r = e.querySelector(":scope > span")
- , o = r && r.textContent
- , a = e.querySelector(":scope > ol");
- n = n + "".padStart(2 * t, " ") + o + "\n",
- a && (n += i(a, t + 1))
- }
- ),
- n
- }
- ;
- var o = Object(r.defineComponent)({
- name: "share-map-menu-operation",
- components: {},
- props: {
- profileName: String,
- fileSize: String,
- username: String,
- createdTime: String,
- isXmindShareFile: Boolean,
- isDownloadable: Boolean,
- isFromAdmin: Boolean
- },
- setup(e, t) {
- const n = navigator.userAgent.toLowerCase().includes("mobile")
- , o = Object(r.computed)(()=>"https://www.xmind.app/share/" + e.username);
- return {
- isMenuEnable: Object(r.computed)(()=>e.isXmindShareFile || e.isDownloadable || e.isFromAdmin || !n && e.isDownloadable),
- isMobile: n,
- userProfilePage: o,
- handleDownload: ()=>{
- t.emit("download")
- }
- ,
- handleOpenWithApp: ()=>{
- t.emit("open-with-app")
- }
- ,
- handleCopyOutline: ()=>{
- !function(e) {
- const t = document.createElement("textarea");
- t.value = e,
- document.body.appendChild(t);
- if (navigator.userAgent.match(/ipad|iphone/i)) {
- const e = document.createRange();
- e.selectNodeContents(t);
- const n = window.getSelection();
- if (!n)
- return;
- n.removeAllRanges(),
- n.addRange(e),
- t.setSelectionRange(0, t.value.length)
- } else
- t.select();
- document.execCommand("copy"),
- document.body.removeChild(t)
- }(i(document.querySelector("#outline > ol")))
- }
- }
- }
- })
- , a = (n(316),
- n(0))
- , s = Object(a.a)(o, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return e.isMenuEnable ? n("div", {
- staticClass: "share-map-menu__operation"
- }, [n("button", {
- staticClass: "btn btn-icon",
- attrs: {
- type: "button",
- "data-toggle": "dropdown",
- "aria-haspopup": "true",
- "aria-expanded": "false",
- "data-offset": "0, 12"
- }
- }, [n("svg", {
- attrs: {
- xmlns: "http://www.w3.org/2000/svg",
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none"
- }
- }, [n("path", {
- attrs: {
- "fill-rule": "evenodd",
- "clip-rule": "evenodd",
- d: "M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM10 12C10 10.9 10.9 10 12 10C13.1 10 14 10.9 14 12C14 13.1 13.1 14 12 14C10.9 14 10 13.1 10 12Z",
- fill: "currentcolor"
- }
- })])]), e._v(" "), n("div", {
- staticClass: "dropdown-menu dropdown-menu-right"
- }, [e.isXmindShareFile ? n("a", {
- staticClass: "dropdown-item",
- attrs: {
- href: e.userProfilePage,
- target: "_blank"
- }
- }, [n("span", {
- staticClass: "w-100 d-inline-block",
- staticStyle: {
- "text-overflow": "ellipsis",
- "max-width": "240px",
- overflow: "hidden"
- }
- }, [e._v("\n Upload by\n ")]), e._v(" "), n("br"), e._v(" "), n("span", {
- staticClass: "small muted flex-no-shrink"
- }, [e._v("\n " + e._s(e.profileName) + " on " + e._s(e.createdTime) + "\n ")])]) : e._e(), e._v(" "), e.isDownloadable ? n("a", {
- staticClass: "dropdown-item d-flex justify-content-between",
- attrs: {
- href: "#"
- },
- on: {
- click: e.handleDownload
- }
- }, [e._v("\n Download\n "), n("span", {
- staticClass: "small muted flex-no-shrink"
- }, [e._v("\n " + e._s(e.fileSize) + "\n ")])]) : e._e(), e._v(" "), e.isFromAdmin ? n("a", {
- staticClass: "dropdown-item",
- attrs: {
- href: "#"
- },
- on: {
- click: e.handleCopyOutline
- }
- }, [e._v("\n Copy Outline\n ")]) : e._e(), e._v(" "), !e.isMobile && e.isDownloadable ? [n("a", {
- staticClass: "dropdown-divider"
- }), e._v(" "), n("a", {
- staticClass: "dropdown-item",
- attrs: {
- href: "#"
- },
- on: {
- click: e.handleOpenWithApp
- }
- }, [e._v("\n Open With App\n ")])] : e._e()], 2)]) : e._e()
- }
- ), [], !1, null, "3c5647e8", null);
- t.a = s.exports
- },
- 235: function(e, t, n) {
- "use strict";
- var r = n(1)
- , i = Object(r.defineComponent)({
- name: "share-map-menu-social",
- components: {},
- props: {
- shareEmbedWidth: Number,
- shareEmbedHeight: Number,
- manifests: {
- type: Object,
- required: !0
- }
- },
- setup(e, t) {
- var n;
- const i = encodeURI(window.location.href)
- , o = encodeURIComponent((null === (n = document.querySelector("title")) || void 0 === n ? void 0 : n.textContent) || "")
- , a = Object(r.computed)(()=>{
- const t = 750 * (e.shareEmbedHeight / e.shareEmbedWidth);
- return Math.min(Math.max(422, t), 1e3)
- }
- );
- return {
- computedShareEmbedHeight: a,
- handleFacebookShare: ()=>window.open("https://www.facebook.com/sharer/sharer.php?u=" + i, "Share to Facebook", "width=750, height=" + a.value),
- handleTwitterShare: ()=>window.open("http://twitter.com/share?text=" + o + "&url=" + i + "&hashtags=XMind", "Share to Twitter", "width=750, height=" + a.value),
- handleLinkedInShare: ()=>window.open("https://www.linkedin.com/shareArticle?mini=true&url=" + i + "&title=" + o, "Share to Linkedin", "width=750, height=" + a.value),
- handleOpenShareEmbedCodeDialog: ()=>t.emit("open-share-code")
- }
- }
- })
- , o = (n(314),
- n(0))
- , a = Object(o.a)(i, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", {
- staticClass: "share-map-menu__social"
- }, [[n("button", {
- staticClass: "btn btn-icon",
- attrs: {
- type: "button",
- "data-toggle": "dropdown",
- "data-offset": "0, 12",
- "aria-haspopup": "true",
- "aria-expanded": "false"
- }
- }, [n("svg", {
- attrs: {
- xmlns: "http://www.w3.org/2000/svg",
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none"
- }
- }, [n("path", {
- attrs: {
- d: "M17.3333 15.5156C16.6578 15.5156 16.0533 15.7822 15.5911 16.2L9.25333 12.5111C9.29778 12.3067 9.33333 12.1022 9.33333 11.8889C9.33333 11.6756 9.29778 11.4711 9.25333 11.2667L15.52 7.61333C16 8.05778 16.6311 8.33333 17.3333 8.33333C18.8089 8.33333 20 7.14222 20 5.66667C20 4.19111 18.8089 3 17.3333 3C15.8578 3 14.6667 4.19111 14.6667 5.66667C14.6667 5.88 14.7022 6.08444 14.7467 6.28889L8.48 9.94222C8 9.49778 7.36889 9.22222 6.66667 9.22222C5.19111 9.22222 4 10.4133 4 11.8889C4 13.3644 5.19111 14.5556 6.66667 14.5556C7.36889 14.5556 8 14.28 8.48 13.8356L14.8089 17.5333C14.7644 17.72 14.7378 17.9156 14.7378 18.1111C14.7378 19.5422 15.9022 20.7067 17.3333 20.7067C18.7644 20.7067 19.9289 19.5422 19.9289 18.1111C19.9289 16.68 18.7644 15.5156 17.3333 15.5156Z",
- fill: "currentcolor"
- }
- })])]), e._v(" "), n("div", {
- staticClass: "dropdown-menu dropdown-menu-right"
- }, [n("a", {
- staticClass: "code dropdown-item d-flex align-items-center",
- attrs: {
- href: "#"
- },
- on: {
- click: e.handleOpenShareEmbedCodeDialog
- }
- }, [n("svg", {
- attrs: {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- d: "M8.41 7.41L7 6L1 12L7 18L8.41 16.59L3.83 12L8.41 7.41Z",
- fill: "currentcolor",
- stroke: "currentcolor"
- }
- }), e._v(" "), n("path", {
- attrs: {
- d: "M15.59 7.41L17 6L23 12L17 18L15.59 16.59L20.17 12L15.59 7.41Z",
- fill: "currentcolor",
- stroke: "currentcolor"
- }
- })]), e._v(" "), n("span", {}, [e._v(" Embed Code ")])]), e._v(" "), n("a", {
- staticClass: "dropdown-item facebook d-flex align-items-center",
- attrs: {
- href: "#"
- },
- on: {
- click: e.handleFacebookShare
- }
- }, [n("img", {
- attrs: {
- src: e.manifests.facebookIcon
- }
- }), e._v(" "), n("span", {}, [e._v(" Facebook ")])]), e._v(" "), n("a", {
- staticClass: "dropdown-item twitter d-flex align-items-center",
- attrs: {
- href: "#"
- },
- on: {
- click: e.handleTwitterShare
- }
- }, [n("img", {
- attrs: {
- src: e.manifests.twitterIcon
- }
- }), e._v(" "), n("span", {}, [e._v(" Twitter ")])]), e._v(" "), n("a", {
- staticClass: "dropdown-item linkedin d-flex align-items-end",
- attrs: {
- href: "#"
- },
- on: {
- click: e.handleLinkedInShare
- }
- }, [n("img", {
- attrs: {
- src: e.manifests.linkedinIcon
- }
- }), e._v(" "), n("span", {}, [e._v(" LinkedIn ")])]), e._v(" "), e._t("default")], 2)]], 2)
- }
- ), [], !1, null, "40b1f39d", null);
- t.a = a.exports
- },
- 239: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- })
- },
- 240: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- })
- },
- 241: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- })
- },
- 242: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- })
- },
- 243: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeSlideContent = t.computeTopicLevel = t.computeSlideLayout = t.getEligibleSlideLayouts = void 0;
- const r = n(158)
- , i = n(165)
- , o = n(109);
- t.getEligibleSlideLayouts = function(e, t) {
- return r.getEligibleSlideLayouts(e, t)
- }
- ,
- t.computeSlideLayout = function(e, t, n, i={}) {
- return r.computeSlideLayout(e, t, n, i)
- }
- ,
- t.computeTopicLevel = function(e, t) {
- return i.computeTopicLevel(e, t)
- }
- ,
- t.computeSlideContent = function(e, t) {
- return o.computeSlideContent(e, t)
- }
- },
- 244: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateTopicSlide = t.layoutTopicSlide = t.isTopicSlideLayoutEligibleFor = void 0;
- const r = n(5)
- , i = n(15)
- , o = n(33)
- , a = n(41)
- , s = n(160)
- , l = n(161)
- , u = n(163)
- , c = n(35)
- , d = n(36)
- , f = n(164)
- , h = n(44)
- , p = n(32)
- , g = "topic-slide";
- t.isTopicSlideLayoutEligibleFor = function(e) {
- return "topic" === e
- }
- ,
- t.layoutTopicSlide = function(e, t, n={}) {
- var m, v, y, b, _, w, S;
- const {topic: x, headerTopic: k, calloutTopic: I} = t
- , {id: C} = x
- , M = null !== (m = null == n ? void 0 : n.dimension) && void 0 !== m ? m : p.defaultDimension
- , T = null !== (v = null == n ? void 0 : n.appearance) && void 0 !== v ? v : i.defaultAppearance;
- i.initializeSlideStyle(e, M, T, {
- layout: g
- });
- const A = i.calcLength(M.hSlidePadding, e)
- , E = i.calcLength(M.vSlidePadding, e)
- , O = Math.round(i.calcLength(M.topicSlideTitleFontSizeLarge, e))
- , B = Math.round(i.calcLength(M.topicSlideTitleFontSizeMedium, e))
- , L = Math.round(i.calcLength(M.topicSlideTitleFontSizeSmall, e))
- , P = i.calcLength(M.hPaddingSmall, e)
- , R = O
- , z = B
- , j = Math.round(.8 * O)
- , F = B
- , D = B
- , N = L
- , U = i.calcLength(M.topicSlideLabelFontSize, e)
- , W = i.calcLength(M.topicSlideLabelMinWidth, e)
- , H = i.calcLength(M.hPaddingSmall, e)
- , V = i.calcLength(M.hPaddingSmall, e)
- , $ = i.calcLength(M.vPaddingXSmall, e)
- , G = i.calcLength(M.vPaddingXSmall, e)
- , Z = i.calcLength(M.topicSlideCalloutFontSize, e)
- , q = i.calcLength(M.topicSlideNoteFontSize, e)
- , Y = i.calcLength(M.vPaddingXXSmall, e)
- , X = i.calcLength(M.vPaddingXXSmall, e)
- , J = i.calcLength(M.vPaddingLarge, e)
- , Q = i.calcLength(M.vPaddingLarge, e)
- , K = i.calcLength(M.topicSlideTitleScrollFaderHeight, e)
- , ee = e.width - A - A
- , te = {
- left: A,
- top: E,
- right: A,
- bottom: E
- }
- , ne = null !== (y = null == I ? void 0 : I.title) && void 0 !== y ? y : ""
- , re = ne ? s.computeCalloutTextBox(e, T, g, C, ne, {
- maxWidth: ee,
- fontSize: Z
- }) : null
- , ie = (null !== (b = x.labels) && void 0 !== b ? b : []).map((t,n)=>l.computeLabelGroup(e, T, g, C, t, n, {
- maxWidth: ee,
- minWidth: W,
- fontSize: U,
- leftPadding: H,
- rightPadding: V
- }))
- , oe = null !== (w = null === (_ = x.note) || void 0 === _ ? void 0 : _.plainText) && void 0 !== w ? w : ""
- , ae = oe ? u.computeNoteTextBox(e, T, g, C, oe, {
- maxWidth: ee,
- fontSize: q
- }) : null
- , se = d.computeTopicTitle(x)
- , le = null !== (S = x.markers) && void 0 !== S ? S : []
- , ue = le.slice(0, M.maxMarkerCount)
- , ce = !re && ie.length <= 0 && !ae ? e.height - E - E : null
- , de = f.searchForBestTopicSlideContent((function(t) {
- const n = c.computeTopicTitleGroup(e, T, g, C, se, ue, {
- maxWidth: ee,
- fontSize: t,
- markerRightMargin: P,
- textRoles: ["title"]
- });
- let r;
- n.textMeasurement.lineCount > 1 ? (n.textBox.textAlignment = "leading",
- r = "leading") : r = "center";
- const i = ie.length > 0 ? l.computeLabelListGroupBox(e, T, g, C, ie.map(({groupBox: e})=>e), {
- maxWidth: ee,
- labelSpacing: $,
- lineSpacing: G,
- alignment: r
- }) : null;
- return f.computeTopicSlideContentGroup(e, T, g, C, {
- titleGroup: n,
- calloutTextBox: re,
- labelListGroupBox: i,
- noteTextBox: ae
- }, {
- maxWidth: e.width,
- maxHeight: e.height,
- paddings: te,
- contentAlignment: r,
- spacingBetweenCalloutAndTitle: Y,
- spacingBetweenTitleAndLabelList: X,
- spacingBetweenTitleAndNote: J,
- spacingBetweenLabelListAndNote: Q,
- scrollFaderSize: K
- })
- }
- ), (function(e) {
- return e.titleGroup.textMeasurement.lineCount
- }
- ), (function(e) {
- return e.groupBox.contentHeight
- }
- ), {
- maxHeight: e.height,
- compactMaxHeight: ce,
- singleLineTitleMaxFontSize: R,
- singleLineTitleMinFontSize: z,
- doubleLineTitleMaxFontSize: j,
- doubleLineTitleMinFontSize: F,
- multilineTitleMaxFontSize: D,
- multilineTitleMinFontSize: N
- })
- , {groupBox: fe} = de;
- fe.bounds.x = (e.width - fe.bounds.width) / 2,
- fe.bounds.y = (e.height - fe.bounds.height) / 2,
- e.boxes.push(fe),
- k && a.addHeaderBoxes(e, k, M, T, g),
- o.computeAbsoluteBounds(e.boxes),
- r.addSlideContentFeatures(e, ...h.computeContentFeaturesForTitleGroup(de.titleGroup, C, se, le)),
- de.calloutTextBox && r.addSlideContentFeatures(e, {
- kind: "callout",
- topicId: C,
- integrity: "full"
- }),
- de.labelListGroupBox && r.addSlideContentFeatures(e, {
- kind: "labels",
- topicId: C,
- integrity: "full"
- }),
- de.noteTextBox && r.addSlideContentFeatures(e, {
- kind: "note",
- topicId: C,
- integrity: "full"
- })
- }
- ,
- t.generateTopicSlide = function(e) {
- const t = Object.assign({}, e)
- , n = r.assertBox(r.getBoxById(t.boxes, r.contentGroupOfTopic(t.topicId), "group"));
- return n.contentHeight > n.bounds.height && (t.multistepBoxes = [n.id],
- r.addSlideLeavingAnimations(t, [{
- durationMultiplier: 1,
- easing: "easeInOutCubic",
- on: "preTransition",
- effect: "mutate",
- finalState: {
- boxes: [{
- id: n.id,
- scrollOffset: 0
- }]
- }
- }])),
- function(e) {
- "centralTopic" == e.topicLevel || "floatingTopic" == e.topicLevel ? function(e) {
- const t = [...r.assertBox(r.getBoxById(e.boxes, r.contentGroupOfTopic(e.topicId), "group")).children].sort((e,t)=>e.bounds.y - t.bounds.y);
- let n = 0;
- t.forEach(t=>{
- var i;
- r.setBoxEnteringState(e, {
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: t.bounds.height / 5
- }
- }],
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- durationMultiplier: 1.75,
- delayMultiplier: n,
- easing: "easeInOutCubic",
- on: "postTransition",
- effect: "mutate",
- finalState: {
- boxes: [{
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: 0
- }
- }]
- }]
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- durationMultiplier: 2.5,
- delayMultiplier: n,
- easing: "easeInOutCubic",
- on: "postTransition",
- effect: "mutate",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
- }]
- }
- }]),
- n += .75
- }
- )
- }(e) : function(e) {
- const t = r.titleOfTopic(e.topicId)
- , n = r.assertBox(r.getBoxById(e.boxes, r.contentGroupOfTopic(e.topicId), "group"));
- n.children.forEach(n=>{
- var i;
- n.id !== t && (r.setBoxEnteringState(e, {
- id: n.id,
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: .75,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: n.id,
- opacity: null !== (i = n.opacity) && void 0 !== i ? i : 1
- }]
- }
- }]))
- }
- )
- }(e)
- }(t),
- t
- }
- },
- 245: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.defaultAppearance = void 0,
- t.defaultAppearance = {
- slideStyles: {
- slide: {
- opacity: 1,
- backgroundColor: "#000",
- backgroundOpacity: 1,
- foregroundColor: "white",
- hitRegionFillColor: "rgba(196, 196, 196, 0.12)",
- hitRegionActiveFillColor: "rgba(196, 196, 196, 0.3)",
- hitRegionBoxShadow: "0px 1px 21px -7px rgba(0, 0, 0, 0.25)",
- hitRegionStrokeColor: "rgba(185, 185, 185, 0.1)",
- hitRegionCornerRadius: 18,
- hitRegionLineWidth: 1,
- opacityForPendingSubtopicsUnderPresenterPerspectiveMode: .3
- }
- },
- boxStyles: {
- box: {
- opacity: 1,
- transform: "none"
- },
- "box.text": {
- fontFamily: ["SF Pro Display", "-apple-system", "Helvetica Neue", "Helvetica", "Arial", "PingFang SC", "Microsoft YaHei", "sans-serif"],
- fontSize: "24px",
- lineHeight: "1em",
- fontWeight: "normal",
- fontStyle: "normal",
- textColor: "#fff",
- textAlignment: "leading"
- },
- "box.shape": {
- lineWidth: 1,
- lineCap: "round"
- },
- "box.headerLine": {
- strokeColor: "#fff",
- lineCap: "round"
- },
- "box.labelBorder": {
- strokeColor: "#fff",
- lineWidth: 2
- },
- "box.note": {
- fontWeight: "normal",
- opacity: .8
- },
- "box.callout": {
- fontWeight: "normal",
- fontStyle: "italic",
- opacity: .6
- },
- "slide.layout-topic-slide box.title": {
- fontWeight: "bold",
- textAlignment: "center",
- overflowWrap: "break-word"
- },
- "slide.layout-image-topic-slide box.title": {
- fontWeight: "bold",
- textAlignment: "leading",
- overflowWrap: "break-word"
- },
- "slide.layout-image-topic-slide.image-placement-full box.text": {
- textShadow: "0 0 8px rgba(0, 0, 0, 0.3)"
- },
- "slide.layout-image-topic-slide.image-placement-full box.image": {
- objectFit: "cover"
- },
- "slide.layout-brace-list box.title": {
- fontWeight: "bold",
- textAlignment: "center"
- },
- "slide.layout-brace-list box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-brace-list box.curlyBrace": {
- strokeColor: "#fff",
- lineWidth: 8,
- lineCap: "round"
- },
- "slide.layout-bullet-list box.title": {
- fontSize: "60px",
- fontWeight: "bold"
- },
- "slide.layout-bullet-list box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-bullet-list box.bulletDot": {
- fillColor: "#fff"
- },
- "slide.layout-lyric-list box.title": {
- fontSize: "60px",
- fontWeight: "bold"
- },
- "slide.layout-lyric-list box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-lyric-list box.arrow": {
- fillColor: "#fff"
- },
- "slide.layout-tree-chart box.title": {
- fontWeight: "bold",
- textAlignment: "leading"
- },
- "slide.layout-tree-chart box.treeBranch": {
- strokeColor: "#fff",
- lineWidth: 8,
- lineCap: "round",
- lineJoin: "round"
- },
- "slide.layout-tree-chart box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-summary box.curlyBrace": {
- strokeColor: "#fff",
- lineWidth: 4,
- lineCap: "round",
- lineJoin: "round"
- },
- "slide.layout-summary box.title": {
- fontWeight: "bold",
- textAlignment: "center"
- },
- "slide.layout-only-child box.title": {
- fontSize: "82px",
- fontWeight: "bold"
- },
- "slide.layout-only-child box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-only-child box.separatorLine": {
- strokeColor: "#fff",
- lineCap: "round"
- }
- }
- }
- },
- 246: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.lightAppearance = void 0,
- t.lightAppearance = {
- slideStyles: {
- slide: {
- opacity: 1,
- backgroundColor: "#f9f9f9",
- backgroundOpacity: 1,
- foregroundColor: "black",
- hitRegionFillColor: "rgba(196, 196, 196, 0.12)",
- hitRegionActiveFillColor: "rgba(196, 196, 196, 0.3)",
- hitRegionBoxShadow: "0px 1px 21px -7px rgba(0, 0, 0, 0.15)",
- hitRegionStrokeColor: "rgba(185, 185, 185, 0.1)",
- hitRegionLineWidth: 1,
- hitRegionCornerRadius: 18,
- opacityForPendingSubtopicsUnderPresenterPerspectiveMode: .2
- }
- },
- boxStyles: {
- box: {
- opacity: 1,
- transform: "none"
- },
- "box.text": {
- fontFamily: ["SF Pro Display", "-apple-system", "Helvetica Neue", "Helvetica", "Arial", "PingFang SC", "Microsoft YaHei", "sans-serif"],
- fontSize: "24px",
- lineHeight: "1em",
- fontWeight: "normal",
- fontStyle: "normal",
- textColor: "#000",
- textAlignment: "leading"
- },
- "box.shape": {
- lineWidth: 1,
- lineCap: "round"
- },
- "box.headerLine": {
- strokeColor: "#000",
- lineCap: "round"
- },
- "box.labelBorder": {
- strokeColor: "#000",
- lineWidth: 2
- },
- "box.note": {
- fontWeight: "normal",
- opacity: .8
- },
- "box.callout": {
- fontWeight: "normal",
- fontStyle: "italic",
- opacity: .6
- },
- "slide.layout-topic-slide box.title": {
- fontWeight: "bold",
- textAlignment: "center",
- overflowWrap: "break-word"
- },
- "slide.layout-image-topic-slide box.title": {
- fontWeight: "bold",
- textAlignment: "leading",
- overflowWrap: "break-word"
- },
- "slide.layout-image-topic-slide.image-placement-full box.text": {
- textShadow: "0 0 8px rgba(0, 0, 0, 0.3)"
- },
- "slide.layout-image-topic-slide.image-placement-full box.image": {
- objectFit: "cover"
- },
- "slide.layout-brace-list box.title": {
- fontWeight: "bold",
- textAlignment: "center"
- },
- "slide.layout-brace-list box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-brace-list box.curlyBrace": {
- strokeColor: "#000",
- lineWidth: 8,
- lineCap: "round"
- },
- "slide.layout-lyric-list box.title": {
- fontSize: "60px",
- fontWeight: "bold"
- },
- "slide.layout-lyric-list box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-lyric-list box.arrow": {
- fillColor: "#000"
- },
- "slide.layout-bullet-list box.title": {
- fontSize: "60px",
- fontWeight: "bold"
- },
- "slide.layout-bullet-list box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-bullet-list box.bulletDot": {
- fillColor: "#000"
- },
- "slide.layout-tree-chart box.title": {
- fontWeight: "bold",
- textAlignment: "leading"
- },
- "slide.layout-tree-chart box.treeBranch": {
- strokeColor: "#000",
- lineWidth: 8,
- lineCap: "round",
- lineJoin: "round"
- },
- "slide.layout-tree-chart box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-summary box.curlyBrace": {
- strokeColor: "#000",
- lineWidth: 4,
- lineCap: "round",
- lineJoin: "round"
- },
- "slide.layout-summary box.title": {
- fontWeight: "bold",
- textAlignment: "center"
- },
- "slide.layout-only-child box.title": {
- fontSize: "82px",
- fontWeight: "bold"
- },
- "slide.layout-only-child box.subtopic": {
- overflowWrap: "break-word"
- },
- "slide.layout-only-child box.separatorLine": {
- strokeColor: "#000",
- lineCap: "round"
- }
- }
- }
- },
- 247: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.portraitDimension = void 0,
- t.portraitDimension = {
- vPaddingXXSmall: {
- pct: 2,
- unit: "vmin"
- },
- vPaddingXSmall: {
- pct: 5,
- unit: "vmin"
- },
- vPaddingSmall: {
- pct: 11,
- unit: "vmin"
- },
- vPaddingNormal: {
- pct: 13,
- unit: "vmin"
- },
- vPaddingMedium: {
- pct: 15,
- unit: "vmin"
- },
- vPaddingLarge: {
- pct: 20,
- unit: "vmin"
- },
- vPaddingXLarge: {
- pct: 30,
- unit: "vmin"
- },
- hPaddingXSmall: {
- pct: 1,
- unit: "vmin"
- },
- hPaddingSmall: {
- pct: 2,
- unit: "vmin"
- },
- hPaddingNormal: {
- pct: 3,
- unit: "vmin"
- },
- hPaddingMedium: {
- pct: 5,
- unit: "vmin"
- },
- hPaddingLarge: {
- pct: 8,
- unit: "vmin"
- },
- hPaddingXLarge: {
- pct: 11,
- unit: "vmin"
- },
- hSlidePadding: {
- pct: 100 / 15,
- unit: "vw"
- },
- vSlidePadding: {
- pct: 12.5,
- unit: "vh"
- },
- scrollFaderHeight: {
- pct: 12.5,
- unit: "vh"
- },
- topicSlideTitleFontSizeLarge: {
- pct: 14,
- unit: "vmin"
- },
- topicSlideTitleFontSizeMedium: {
- pct: 8,
- unit: "vmin"
- },
- topicSlideTitleFontSizeSmall: {
- pct: 7,
- unit: "vmin"
- },
- topicSlideTitleScrollFaderHeight: {
- pct: 25,
- unit: "vh"
- },
- topicSlideSingleLineTitleAlignment: "center",
- topicSlideMultilineTitleAlignment: "leading",
- topicSlideLabelFontSize: {
- pct: 4,
- unit: "vmin"
- },
- topicSlideLabelMinWidth: {
- pct: 9,
- unit: "vmin"
- },
- topicSlideNoteFontSize: {
- pct: 5,
- unit: "vmin"
- },
- topicSlideCalloutFontSize: {
- pct: 6,
- unit: "vmin"
- },
- imageTopicSlideSmallImageDefiningWidth: 400,
- imageTopicSlideHLayoutImageZoneWidth: {
- pct: 700 / 15,
- unit: "vw"
- },
- imageTopicSlideHLayoutImageZoneWidthForSmallImage: {
- pct: 20,
- unit: "vw"
- },
- imageTopicSlideHLayoutSpacingAroundImage: {
- pct: 100 / 15,
- unit: "vw"
- },
- imageTopicSlideHLayoutTitleFontSizeLarge: {
- pct: 10,
- unit: "vmin"
- },
- imageTopicSlideHLayoutTitleFontSizeMedium: {
- pct: 8,
- unit: "vmin"
- },
- imageTopicSlideHLayoutTitleFontSizeSmall: {
- pct: 7,
- unit: "vmin"
- },
- imageTopicSlideVLayoutImageZoneHeight: {
- pct: 62.5,
- unit: "vh"
- },
- imageTopicSlideVLayoutImageZoneHeightForSmallImage: {
- pct: 25,
- unit: "vh"
- },
- imageTopicSlideVLayoutTitleFontSizeLarge: {
- pct: 14,
- unit: "vmin"
- },
- imageTopicSlideVLayoutTitleFontSizeMedium: {
- pct: 8,
- unit: "vmin"
- },
- imageTopicSlideVLayoutTitleFontSizeSmall: {
- pct: 7,
- unit: "vmin"
- },
- headerZoneWidth: {
- pct: 20,
- unit: "vmax"
- },
- headerZoneHeight: {
- pct: 4,
- unit: "vmin"
- },
- headerTextFontSize: {
- pct: 4,
- unit: "vmin"
- },
- headerTextLeftMargin: {
- pct: 100 / 15,
- unit: "vmin"
- },
- headerMarkerRightMargin: {
- pct: .375,
- unit: "vmin"
- },
- headerLineTopMargin: {
- pct: 1,
- unit: "vmin"
- },
- headerLineLength: {
- pct: 5,
- unit: "vmin"
- },
- headerLineWidth: 4,
- braceListSlideParentTopicMaxFontSize: {
- pct: 14,
- unit: "vmin"
- },
- braceListSlideParentTopicMinFontSize: {
- pct: 11,
- unit: "vmin"
- },
- braceListSlideSubtopicMaxFontSize: {
- pct: 8,
- unit: "vmin"
- },
- braceListSlideSubtopicMinFontSize: {
- pct: 7,
- unit: "vmin"
- },
- braceListSlideScrollFaderHeight: {
- pct: 12.5,
- unit: "vh"
- },
- bulletListSlideParentTopicDefaultFontSize: {
- pct: 14,
- unit: "vmin"
- },
- bulletListSlideSubtopicMaxFontSize: {
- pct: 8,
- unit: "vmin"
- },
- bulletListSlideSubtopicMinFontSize: {
- pct: 7,
- unit: "vmin"
- },
- lyricListSlideParentTopicDefaultFontSize: {
- pct: 14,
- unit: "vmin"
- },
- lyricListSlideSubtopicMaxFontSize: {
- pct: 8,
- unit: "vmin"
- },
- lyricListSlideSubtopicMinFontSize: {
- pct: 7,
- unit: "vmin"
- },
- treeChartSlideParentTopicMaxFontSize: {
- pct: 14,
- unit: "vmin"
- },
- treeChartSlideParentTopicMinFontSize: {
- pct: 11,
- unit: "vmin"
- },
- treeChartSlideSubtopicMaxFontSize: {
- pct: 8,
- unit: "vmin"
- },
- treeChartSlideSubtopicMinFontSize: {
- pct: 7,
- unit: "vmin"
- },
- summarySlideTopicMaxFontSize: {
- pct: 14,
- unit: "vmin"
- },
- summarySlideTopicMinFontSize: {
- pct: 8,
- unit: "vmin"
- },
- summarySlideTopicMarkerRightMargin: {
- pct: 1.2,
- unit: "vmin"
- },
- summarySlideSubtopicFontSize: {
- pct: 8,
- unit: "vmin"
- },
- summarySlideSubtopicMarkerRightMargin: {
- pct: 1.2,
- unit: "vmin"
- },
- summarySlideLineHeight: {
- pct: 3.125,
- unit: "vh"
- },
- summarySlideLineStrokeWidth: 4,
- summaryScrollFaderHeight: {
- pct: 25,
- unit: "vh"
- },
- lyricListSlideArrowWidth: 46,
- lyricListSlideArrowHeight: 36,
- lyricListSlideArrowCornerRadius: 4,
- treeChartBranchStrokeWidth: 8,
- onlyChildSlideSeparatorLineWidth: 4,
- maxMarkerCount: 3,
- hitRegionHPadding: {
- pct: 1,
- unit: "vmin"
- },
- hitRegionVPadding: {
- pct: 1,
- unit: "vmin"
- }
- }
- },
- 248: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.matchesClasses = t.matchesStates = t.addStates = t.split = t.matchesBox = t.pickBoxStyle = t.computeBoxStyle = t.initializeBoxStyle = t.matchesSlide = t.computeSlideStyle = t.initializeSlideStyle = t.calcLength = void 0;
- const r = n(13);
- function i(e, t) {
- return "number" == typeof e ? e : r.calc(e.pct / 100, e.unit, t)
- }
- function o(e, t={}) {
- const n = {
- classes: new Set,
- states: new Set
- };
- t.type && n.classes.add(t.type),
- t.layout && n.classes.add("layout-" + t.layout),
- t.imagePlacement && n.classes.add("image-placement-" + t.imagePlacement),
- t.states && d(t.states, n.states);
- const r = {};
- if (e.slideStyles)
- for (const t in e.slideStyles)
- a(t, n) && p(r, e.slideStyles[t]);
- return r
- }
- function a(e, t) {
- const n = c(e);
- return !!n.slide && (!!h(n.slide.classes, t.classes) && !!f(n.slide.states, t.states))
- }
- function s(e, t={}) {
- const n = {
- slideClasses: new Set,
- slideStates: new Set,
- classes: new Set
- };
- t.slideType && n.slideClasses.add(t.slideType),
- t.slideLayout && n.slideClasses.add("layout-" + t.slideLayout),
- t.slideImagePlacement && n.slideClasses.add("image-placement-" + t.slideImagePlacement),
- t.slideStates && d(t.slideStates, n.slideStates),
- t.contentType && n.classes.add(t.contentType),
- t.roles && t.roles.forEach(e=>n.classes.add(e));
- const r = {};
- if (e.boxStyles)
- for (const t in e.boxStyles)
- l(t, n) && p(r, e.boxStyles[t]);
- return r
- }
- function l(e, t) {
- var n, r;
- const i = c(e);
- return !!i.box && (!!h(i.box.classes, t.classes) && (!!f(null !== (r = null === (n = i.slide) || void 0 === n ? void 0 : n.states) && void 0 !== r ? r : [], t.slideStates) && !(i.slide && !h(i.slide.classes, t.slideClasses))))
- }
- function u(e, t) {
- return e.split(t).filter(Boolean)
- }
- function c(e) {
- var t, n;
- const r = {}
- , i = /([\w-_]+)(\.[\w-_.]+)?(:[\w-_:]+)?/g;
- let o;
- for (; null !== (o = i.exec(e)); ) {
- const e = o[1]
- , i = u(null !== (t = o[2]) && void 0 !== t ? t : "", ".")
- , a = u(null !== (n = o[3]) && void 0 !== n ? n : "", ":");
- r[e] = {
- classes: i,
- states: a
- }
- }
- return r
- }
- function d(e, t) {
- for (const n in e)
- e[n] && t.add(n)
- }
- function f(e, t) {
- if (e.length !== t.size)
- return !1;
- for (const n of e)
- if (!t.has(n))
- return !1;
- return !0
- }
- function h(e, t) {
- return e.every(e=>t.has(e))
- }
- function p(e, t) {
- t && Object.assign(e, t)
- }
- t.calcLength = i,
- t.initializeSlideStyle = function(e, t, n, r={}) {
- const a = o(n, {
- type: e.type,
- layout: r.layout,
- imagePlacement: e.imagePlacement,
- states: r.states
- });
- t.hitRegionHPadding && (a.hitRegionHPadding = i(t.hitRegionHPadding, e)),
- t.hitRegionVPadding && (a.hitRegionVPadding = i(t.hitRegionVPadding, e)),
- t.hitRegionLineWidth && (a.hitRegionLineWidth = i(t.hitRegionLineWidth, e)),
- t.hitRegionCornerRadius && (a.hitRegionCornerRadius = i(t.hitRegionCornerRadius, e));
- const s = Object.assign({}, e);
- Object.assign(e, a, s)
- }
- ,
- t.computeSlideStyle = o,
- t.matchesSlide = a,
- t.initializeBoxStyle = function(e, t, n, r={}) {
- const i = s(n, {
- contentType: e.contentType,
- roles: e.roles,
- slideType: t.type,
- slideLayout: r.layout,
- slideImagePlacement: t.imagePlacement,
- slideStates: r.slideStates
- })
- , o = Object.assign({}, e);
- Object.assign(e, i, o)
- }
- ,
- t.computeBoxStyle = s,
- t.pickBoxStyle = function(e, t) {
- const n = Object.assign({}, t);
- return function(e, t) {
- if (!t)
- return;
- for (const n in e)
- n in t && (e[n] = t[n])
- }(n, e),
- n
- }
- ,
- t.matchesBox = l,
- t.split = u,
- t.addStates = d,
- t.matchesStates = f,
- t.matchesClasses = h
- },
- 249: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateImageTopicSlide = t.layoutImageTopicSlide = t.isImageTopicSlideLayoutEligibleFor = void 0;
- const r = n(5)
- , i = n(15)
- , o = n(13)
- , a = n(33)
- , s = n(161)
- , l = n(41)
- , u = n(36)
- , c = n(160)
- , d = n(163)
- , f = n(164)
- , h = n(35)
- , p = n(44)
- , g = n(32)
- , m = n(12)
- , v = "image-topic-slide";
- t.isImageTopicSlideLayoutEligibleFor = function(e, {topic: t}) {
- return "topic" === e && !!t.image
- }
- ,
- t.layoutImageTopicSlide = function(e, t, n={}) {
- var y, b, _, w, S, x, k, I;
- const {topic: C, headerTopic: M, calloutTopic: T} = t
- , {id: A, image: E} = C;
- if (!E)
- throw new Error("Missing image attributes for Topic Slide With Image");
- const O = null !== (y = null == n ? void 0 : n.dimension) && void 0 !== y ? y : g.defaultDimension
- , B = null !== (b = null == n ? void 0 : n.appearance) && void 0 !== b ? b : i.defaultAppearance
- , L = i.calcLength(O.hSlidePadding, e)
- , P = i.calcLength(O.vSlidePadding, e)
- , R = i.calcLength(O.imageTopicSlideSmallImageDefiningWidth, e)
- , z = E.size.width < R ? "small" : "normal"
- , j = null !== (_ = C.topicSlideImagePlacement) && void 0 !== _ ? _ : function(e, t, n) {
- const r = m.isSvg(e.source) ? "aboveTitle" : "left";
- if (n.width < n.height)
- return "aboveTitle";
- if ("small" === t)
- return r;
- if ((0 === e.size.width || 0 === e.size.height ? 1 : e.size.width / e.size.height) >= 2)
- return "aboveTitle";
- return r
- }(E, z, {
- width: e.width,
- height: e.height
- });
- e.imagePlacement = j,
- i.initializeSlideStyle(e, O, B, {
- layout: v
- });
- const F = u.computeTopicTitle(C)
- , D = null !== (w = C.markers) && void 0 !== w ? w : []
- , N = null !== (S = null == T ? void 0 : T.title) && void 0 !== S ? S : ""
- , U = null !== (x = C.labels) && void 0 !== x ? x : []
- , W = null !== (I = null === (k = C.note) || void 0 === k ? void 0 : k.plainText) && void 0 !== I ? I : ""
- , H = F.length > 0 || D.length > 0
- , V = N.length > 0 || U.length > 0 || W.length > 0
- , $ = "full" === j ? e.width : !H && !V || "left" !== j && "right" !== j ? H || V || "small" !== z ? e.width - L - L : e.width - 4 * L : i.calcLength("small" === z ? O.imageTopicSlideHLayoutImageZoneWidthForSmallImage : O.imageTopicSlideHLayoutImageZoneWidth, e)
- , G = "full" === j ? e.height : !H && !V || "aboveTitle" !== j && "belowTitle" !== j ? H || V || "small" !== z ? e.height - P - P : e.height - 4 * P : i.calcLength("small" === z ? O.imageTopicSlideVLayoutImageZoneHeightForSmallImage : O.imageTopicSlideVLayoutImageZoneHeight, e)
- , Z = 0 === E.size.width || 0 === E.size.height ? 1 : Math.min($ / E.size.width, G / E.size.height)
- , q = "full" === j ? e.width : E.size.width * Z
- , Y = "full" === j ? e.height : E.size.height * Z;
- let X;
- X = "aboveTitle" === j || "belowTitle" === j ? i.calcLength(O.vPaddingSmall, e) : "left" === j || "right" === j ? i.calcLength(O.imageTopicSlideHLayoutSpacingAroundImage, e) : 0;
- const J = i.calcLength(O.hPaddingSmall, e);
- let Q, K, ee;
- "aboveTitle" === j || "belowTitle" === j ? (Q = Math.round(i.calcLength(O.imageTopicSlideVLayoutTitleFontSizeLarge, e)),
- K = Math.round(i.calcLength(O.imageTopicSlideVLayoutTitleFontSizeMedium, e)),
- ee = Math.round(i.calcLength(O.imageTopicSlideVLayoutTitleFontSizeSmall, e))) : "left" === j || "right" === j ? (Q = Math.round(i.calcLength(O.imageTopicSlideHLayoutTitleFontSizeLarge, e)),
- K = Math.round(i.calcLength(O.imageTopicSlideHLayoutTitleFontSizeMedium, e)),
- ee = Math.round(i.calcLength(O.imageTopicSlideHLayoutTitleFontSizeSmall, e))) : (Q = Math.round(i.calcLength(O.topicSlideTitleFontSizeLarge, e)),
- K = Math.round(i.calcLength(O.topicSlideTitleFontSizeMedium, e)),
- ee = Math.round(i.calcLength(O.topicSlideTitleFontSizeSmall, e)));
- const te = Q
- , ne = K
- , re = Math.round(.8 * Q)
- , ie = K
- , oe = K
- , ae = ee
- , se = i.calcLength(O.topicSlideLabelFontSize, e)
- , le = i.calcLength(O.topicSlideLabelMinWidth, e)
- , ue = i.calcLength(O.hPaddingSmall, e)
- , ce = i.calcLength(O.hPaddingSmall, e)
- , de = i.calcLength(O.vPaddingXSmall, e)
- , fe = i.calcLength(O.vPaddingXSmall, e)
- , he = i.calcLength(O.topicSlideCalloutFontSize, e)
- , pe = i.calcLength(O.topicSlideNoteFontSize, e)
- , ge = i.calcLength(O.vPaddingXXSmall, e)
- , me = i.calcLength(O.vPaddingXXSmall, e)
- , ve = i.calcLength(O.vPaddingLarge, e)
- , ye = i.calcLength(O.vPaddingMedium, e)
- , be = i.calcLength(O.topicSlideTitleScrollFaderHeight, e)
- , _e = "left" === j || "right" === j ? e.width - L - $ - X - L : e.width
- , we = "left" === j || "right" === j ? _e : _e - L - L
- , Se = {
- left: "left" === j || "right" === j ? 0 : L,
- top: P,
- right: "left" === j || "right" === j ? 0 : L,
- bottom: P
- }
- , xe = e.height
- , ke = V ? null : xe - P - P;
- let Ie;
- Ie = m.isSvg(E.source) ? {
- id: r.imageOfTopic(A),
- roles: ["primaryImage"],
- bounds: {
- x: 0,
- y: 0,
- width: q,
- height: Y
- },
- absBounds: o.zeroRect(),
- contentType: "svg-template",
- svg: E.source,
- fillColor: e.foregroundColor
- } : {
- id: r.imageOfTopic(A),
- roles: ["primaryImage"],
- bounds: {
- x: 0,
- y: 0,
- width: q,
- height: Y
- },
- absBounds: o.zeroRect(),
- contentType: "image",
- imageSource: E.source
- },
- i.initializeBoxStyle(Ie, e, B, {
- layout: v
- });
- const Ce = N ? c.computeCalloutTextBox(e, B, v, A, N, {
- maxWidth: we,
- fontSize: he
- }) : null
- , Me = U.map((t,n)=>s.computeLabelGroup(e, B, v, A, t, n, {
- maxWidth: we,
- minWidth: le,
- fontSize: se,
- leftPadding: ue,
- rightPadding: ce
- }))
- , Te = W ? d.computeNoteTextBox(e, B, v, A, W, {
- maxWidth: we,
- fontSize: pe
- }) : null
- , Ae = D.slice(0, O.maxMarkerCount)
- , Ee = H || V ? f.searchForBestTopicSlideContent((function(t) {
- const n = h.computeTopicTitleGroup(e, B, v, A, F, Ae, {
- maxWidth: we,
- fontSize: t,
- markerRightMargin: J,
- textRoles: ["title"]
- });
- let r;
- n.textMeasurement.lineCount > 1 || "left" === j || "right" === j || "full" !== j && Ie.bounds.width > $ - 1 ? (n.textBox.textAlignment = "leading",
- r = "leading") : r = "center";
- const i = Me.length > 0 ? s.computeLabelListGroupBox(e, B, v, A, Me.map(({groupBox: e})=>e), {
- maxWidth: we,
- labelSpacing: de,
- lineSpacing: fe,
- alignment: r
- }) : null;
- return f.computeTopicSlideContentGroup(e, B, v, A, {
- titleGroup: n,
- calloutTextBox: Ce,
- labelListGroupBox: i,
- noteTextBox: Te,
- imageBox: "aboveTitle" === j || "belowTitle" === j ? Ie : null
- }, {
- maxWidth: _e,
- maxHeight: xe,
- paddings: Se,
- contentAlignment: r,
- spacingBetweenCalloutAndTitle: ge,
- spacingBetweenTitleAndLabelList: me,
- spacingBetweenTitleAndNote: ve,
- spacingBetweenLabelListAndNote: ye,
- scrollFaderSize: be,
- spacingAroundImage: X,
- imagePlacement: "belowTitle" === j ? "belowTitle" : "aboveTitle"
- })
- }
- ), (function(e) {
- return e.titleGroup.textMeasurement.lineCount
- }
- ), (function(e) {
- return e.groupBox.contentHeight
- }
- ), {
- maxHeight: e.height,
- compactMaxHeight: ke,
- singleLineTitleMaxFontSize: te,
- singleLineTitleMinFontSize: ne,
- doubleLineTitleMaxFontSize: re,
- doubleLineTitleMinFontSize: ie,
- multilineTitleMaxFontSize: oe,
- multilineTitleMinFontSize: ae
- }) : null
- , Oe = null == Ee ? void 0 : Ee.groupBox;
- if (Oe)
- if ("left" === j) {
- const t = Ie.bounds.width + X + Oe.bounds.width
- , n = Math.max(Ie.bounds.height, Oe.bounds.height)
- , r = (e.width - t) / 2
- , i = (e.height - n) / 2;
- Ie.bounds.x = r,
- Oe.bounds.x = Ie.bounds.x + Ie.bounds.width + X,
- Ie.bounds.y = i + (n - Ie.bounds.height) / 2,
- Oe.bounds.y = i + (n - Oe.bounds.height) / 2
- } else if ("right" === j) {
- const t = Oe.bounds.width + X + Ie.bounds.width
- , n = Math.max(Ie.bounds.height, Oe.bounds.height)
- , r = (e.width - t) / 2
- , i = (e.height - n) / 2;
- Oe.bounds.x = r,
- Ie.bounds.x = Oe.bounds.x + Oe.bounds.width + X,
- Oe.bounds.y = i + (n - Oe.bounds.height) / 2,
- Ie.bounds.y = i + (n - Ie.bounds.height) / 2
- } else if ("aboveTitle" === j || "belowTitle" === j)
- Oe.bounds.x = (e.width - Oe.bounds.width) / 2,
- Oe.bounds.y = (e.height - Oe.bounds.height) / 2;
- else {
- if ("full" !== j)
- throw new Error(`Undetermined slide layout for image placed for "${j}"`);
- Oe.bounds.x = (e.width - Oe.bounds.width) / 2,
- Oe.bounds.y = (e.height - Oe.bounds.height) / 2,
- Ie.bounds.x = 0,
- Ie.bounds.y = 0
- }
- else
- Ie.bounds.x = (e.width - Ie.bounds.width) / 2,
- Ie.bounds.y = (e.height - Ie.bounds.height) / 2;
- Ee ? ("full" === j && e.boxes.push(Ie),
- e.boxes.push(Ee.groupBox),
- "left" !== j && "right" !== j || e.boxes.push(Ie)) : e.boxes.push(Ie),
- M && l.addHeaderBoxes(e, M, O, B, v),
- a.computeAbsoluteBounds(e.boxes),
- e.shouldSkipImageAnimations = h.shouldShowPlaceholder(F.length > 0, Ae.length > 0),
- r.addSlideContentFeatures(e, {
- kind: "image",
- topicId: A,
- integrity: "full"
- }),
- Ee && (r.addSlideContentFeatures(e, ...p.computeContentFeaturesForTitleGroup(Ee.titleGroup, A, F, D)),
- Ee.calloutTextBox && r.addSlideContentFeatures(e, {
- kind: "callout",
- topicId: A,
- integrity: "full"
- }),
- Ee.labelListGroupBox && r.addSlideContentFeatures(e, {
- kind: "labels",
- topicId: A,
- integrity: "full"
- }),
- Ee.noteTextBox && r.addSlideContentFeatures(e, {
- kind: "note",
- topicId: A,
- integrity: "full"
- }))
- }
- ,
- t.generateImageTopicSlide = function(e) {
- const t = Object.assign({}, e)
- , n = r.getBoxById(t.boxes, r.contentGroupOfTopic(t.topicId), "group");
- return n && n.contentHeight > n.bounds.height && (t.multistepBoxes = [n.id],
- r.addSlideLeavingAnimations(t, [{
- durationMultiplier: 1,
- easing: "easeInOutCubic",
- on: "preTransition",
- effect: "mutate",
- finalState: {
- boxes: [{
- id: n.id,
- scrollOffset: 0
- }]
- }
- }])),
- function(e) {
- const t = r.assertBox(r.getBoxById(e.boxes, r.imageOfTopic(e.topicId)))
- , n = r.getBoxById(e.boxes, r.contentGroupOfTopic(e.topicId), "group");
- "centralTopic" == e.topicLevel || "floatingTopic" == e.topicLevel ? "full" === e.imagePlacement ? function(e, t, n) {
- var i;
- if (r.setBoxEnteringState(e, {
- id: t.id,
- opacity: 0,
- transform: [{
- scale: {
- x: 1.2,
- y: 1.2
- }
- }]
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- groups: ["scaleDownImage"],
- durationMultiplier: 2.5,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
- }]
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- groups: ["scaleDownImage"],
- durationMultiplier: 1.75,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: t.id,
- transform: [{
- scale: {
- x: 1,
- y: 1
- }
- }]
- }]
- }
- }]),
- n) {
- let t = 0;
- [...n.children].sort((e,t)=>e.bounds.y - t.bounds.y).forEach(n=>{
- var i;
- r.setBoxEnteringState(e, {
- id: n.id,
- transform: [{
- translate: {
- x: 0,
- y: n.bounds.height / 5
- }
- }],
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- after: "scaleDownImage",
- delayMultiplier: t,
- durationMultiplier: 1.75,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: n.id,
- transform: [{
- translate: {
- x: 0,
- y: 0
- }
- }]
- }]
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- after: "scaleDownImage",
- delayMultiplier: t,
- durationMultiplier: 2.5,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: n.id,
- opacity: null !== (i = n.opacity) && void 0 !== i ? i : 1
- }]
- }
- }]),
- t += .75
- }
- )
- }
- }(e, t, n) : n ? function(e, t, n) {
- var i;
- let o = 0;
- const a = r.titleOfTopic(e.topicId);
- let s = 0;
- [...n.children].sort((e,t)=>e.bounds.y - t.bounds.y).forEach(t=>{
- var n;
- t.id == a && (s = o),
- r.setBoxEnteringState(e, {
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: t.bounds.height / 5
- }
- }],
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- delayMultiplier: o,
- durationMultiplier: 1.75,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: 0
- }
- }]
- }]
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- delayMultiplier: o,
- durationMultiplier: 2.5,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
- }]
- }
- }]),
- o += .75
- }
- ),
- ("left" === e.imagePlacement || "right" === e.imagePlacement) && (r.setBoxEnteringState(e, {
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: t.bounds.height / 5
- }
- }],
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- delayMultiplier: s,
- durationMultiplier: 1.75,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: 0
- }
- }]
- }]
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- delayMultiplier: s,
- durationMultiplier: 2.5,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
- }]
- }
- }]))
- }(e, t, n) : function(e, t) {
- var n;
- r.setBoxEnteringState(e, {
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: t.bounds.height / 5
- }
- }],
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1.75,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: 0
- }
- }]
- }]
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 2.5,
- effect: "mutate",
- easing: "easeInOutCubic",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
- }]
- }
- }])
- }(e, t) : function(e, t, n) {
- var i;
- const o = r.imageOfTopic(e.topicId)
- , a = r.titleOfTopic(e.topicId);
- e.shouldSkipImageAnimations || (r.setBoxEnteringState(e, {
- id: t.id,
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: .75,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
- }]
- }
- }]));
- n && n.children.forEach(t=>{
- var n;
- t.id !== o && t.id !== a && (r.setBoxEnteringState(e, {
- id: t.id,
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: .75,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
- }]
- }
- }]))
- }
- )
- }(e, t, n)
- }(t),
- t
- }
- },
- 250: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateBraceListSlide = t.layoutBraceListSlide = t.isBraceListLayoutEligibleFor = void 0;
- const r = n(5)
- , i = n(13)
- , o = n(15)
- , a = n(34)
- , s = n(33)
- , l = n(43)
- , u = n(41)
- , c = n(36)
- , d = n(35)
- , f = n(92)
- , h = n(93)
- , p = n(44)
- , g = n(32)
- , m = n(62)
- , v = "brace-list"
- , y = 20
- , b = 20
- , _ = 10
- , w = 20
- , S = 30
- , x = 20;
- t.isBraceListLayoutEligibleFor = function(e, {subtopics: t}) {
- return "list" === e && t.length > 1
- }
- ,
- t.layoutBraceListSlide = function(e, t, n={}) {
- var f, h;
- const {topic: k, subtopics: I, headerTopic: C} = t
- , M = null !== (f = null == n ? void 0 : n.dimension) && void 0 !== f ? f : g.defaultDimension
- , T = null !== (h = null == n ? void 0 : n.appearance) && void 0 !== h ? h : o.defaultAppearance;
- o.initializeSlideStyle(e, M, T, {
- layout: v
- });
- const A = o.calcLength(M.hSlidePadding, e)
- , E = o.calcLength(M.vSlidePadding, e)
- , O = e.width - A - A
- , B = .3 * O
- , L = e.height - E - E
- , P = Math.round(o.calcLength(M.braceListSlideParentTopicMaxFontSize, e))
- , R = Math.round(o.calcLength(M.braceListSlideParentTopicMinFontSize, e))
- , z = o.calcLength(M.hPaddingXSmall, e)
- , j = o.calcLength(M.hPaddingSmall, e)
- , F = o.calcLength(M.hPaddingNormal, e)
- , D = j + 50 + F
- , N = e.height
- , U = {
- left: 0,
- top: E,
- right: A,
- bottom: E
- }
- , W = O - B - D + U.right
- , H = e.height
- , V = o.calcLength(M.vPaddingNormal, e)
- , $ = Math.round(o.calcLength(M.braceListSlideSubtopicMaxFontSize, e))
- , G = Math.round(o.calcLength(M.braceListSlideSubtopicMinFontSize, e))
- , Z = o.calcLength(M.hPaddingXSmall, e)
- , q = o.calcLength(M.braceListSlideScrollFaderHeight, e)
- , Y = function(e, t, n, r, i) {
- var o;
- const {maxFontSize: s, minFontSize: u, markerRightMargin: f, maxWidth: h, maxLineCount: g, preferredLineCount: y} = i;
- function b(e) {
- return e.textMeasurement.width <= h
- }
- function _(e) {
- return e.textMeasurement.lineCount <= y
- }
- function w(e) {
- return e.textMeasurement.lineCount <= g
- }
- const S = null !== (o = e.markers) && void 0 !== o ? o : []
- , x = S.slice(0, n.maxMarkerCount)
- , k = m.computePlaceholder(e);
- function I(n, i, o) {
- return d.computeTopicTitleGroup(t, r, v, e.id, n, x, {
- maxWidth: h,
- fontSize: i,
- markerRightMargin: f,
- overflowWrap: o,
- textRoles: ["title"],
- requestForHit: {
- kind: "fastBackward"
- },
- placeholder: k
- })
- }
- const C = c.computeTopicTitle(e);
- let M = C
- , T = s
- , A = "normal"
- , E = I(M, T, A);
- if (b(E) && _(E))
- return Object.assign(Object.assign({}, E), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(E, e.id, C, S)
- });
- if (T = u,
- E = I(M, T, A),
- b(E)) {
- if (_(E)) {
- const e = a.rangedIntegers(s, u)
- , t = a.mapValues(e, e=>({
- fontSize: e,
- group: I(M, e, A)
- }))
- , n = a.findClosestMatch(t, ({group: e})=>b(e) && _(e));
- if (!n)
- throw new Error("Unable to find the best font size for parent topic of brace list slide");
- T = n.fontSize,
- E = n.group
- }
- } else {
- A = "break-word";
- const e = a.rangedIntegers(s, u)
- , t = a.mapValues(e, e=>({
- fontSize: e,
- group: I(M, e, A)
- }))
- , n = a.findClosestMatch(t, ({group: e})=>_(e));
- n ? (T = n.fontSize,
- E = n.group) : (T = u,
- E = I(M, T, A))
- }
- if (!w(E)) {
- const e = a.rangedIntegers(M.length - 1, 1)
- , t = a.mapValues(e, e=>l.getTruncatedText(M, e))
- , n = a.mapValues(t, e=>({
- text: e,
- group: I(e, T, A)
- }))
- , r = a.findClosestMatch(n, ({group: e})=>w(e));
- r ? (M = r.text,
- E = r.group) : (M = l.getTruncatedText(M, 1),
- E = I(M, T, A))
- }
- return Object.assign(Object.assign({}, E), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(E, e.id, C, S)
- })
- }(k, e, M, T, {
- maxFontSize: P,
- minFontSize: R,
- markerRightMargin: z,
- maxWidth: B,
- maxLineCount: 5,
- preferredLineCount: 2
- })
- , X = function(e, t, n, s, u, f) {
- const {paddings: h, maxWidth: g, maxHeight: y, maxFontSize: b, minFontSize: _, preferredLineCount: w, maxLineCount: S, markerRightMargin: x, minSpacing: k, scrollFaderSize: I} = f;
- function C(e) {
- return e.groupBox.bounds.height <= y
- }
- function M(e) {
- return e.textMeasurement.lineCount <= w
- }
- const T = t.map(e=>{
- var t;
- return {
- topicId: e.id,
- text: c.computeTopicTitle(e),
- markers: null !== (t = e.markers) && void 0 !== t ? t : [],
- placeholder: m.computePlaceholder(e)
- }
- }
- );
- function A(t) {
- let c = h.top
- , f = 0
- , m = 0
- , b = 0;
- const _ = []
- , w = T.map(({topicId: e, text: r, markers: i, placeholder: o})=>{
- var y;
- const w = i.slice(0, s.maxMarkerCount);
- function I(r) {
- return d.computeTopicTitleGroup(n, u, v, e, r, w, {
- maxWidth: g,
- fontSize: t,
- markerRightMargin: x,
- textRoles: ["subtopic"],
- requestForHit: {
- kind: "present",
- topicId: e,
- viaIntro: !0
- },
- placeholder: o
- })
- }
- let C = I(r);
- if (!function(e) {
- return e.textMeasurement.lineCount <= S
- }(C)) {
- const e = a.rangedIntegers(r.length - 1, 1)
- , t = a.mapValues(e, e=>l.getTruncatedText(r, e))
- , n = a.mapValues(t, e=>I(e));
- C = null !== (y = a.findClosestMatch(n, M)) && void 0 !== y ? y : I(l.getTruncatedText(r, 1))
- }
- const T = C.groupBox.bounds;
- return T.x = h.left,
- T.y = c,
- c += T.height + k,
- f = Math.max(f, T.width),
- m > 0 && (m += k),
- m += T.height,
- b += T.height,
- _.push(...p.computeContentFeaturesForTitleGroup(C, e, r, i)),
- C
- }
- );
- f += h.left + h.right,
- m += h.top + h.bottom;
- const C = {
- id: r.subtopicListGroupOfTopic(e),
- roles: ["subtopicListGroup"],
- bounds: {
- x: 0,
- y: 0,
- width: Math.min(f, g),
- height: Math.min(m, y)
- },
- absBounds: i.zeroRect(),
- contentType: "group",
- children: w.map(e=>e.groupBox),
- contentHeight: m,
- overflow: m > y ? "scroll" : "hidden",
- scrollFaderSize: I
- };
- return o.initializeBoxStyle(C, n, u, {
- layout: v
- }),
- {
- groupBox: C,
- subtopicGroups: w,
- subtopicTotalHeight: b,
- contentFeatures: _
- }
- }
- let E, O;
- const B = a.rangedIntegers(b, _)
- , L = a.mapValues(B, e=>({
- fontSize: e,
- group: A(e)
- }))
- , P = a.findClosestMatch(L, ({group: e})=>function(e) {
- return e.subtopicGroups.every(M)
- }(e));
- P ? (E = P.fontSize,
- O = P.group) : (E = _,
- O = A(E));
- if (!C(O) && E > _) {
- const e = a.rangedIntegers(E, _)
- , t = a.mapValues(e, e=>({
- fontSize: e,
- group: A(e)
- }))
- , n = a.findClosestMatch(t, ({group: e})=>C(e));
- n ? (E = n.fontSize,
- O = n.group) : (E = b,
- O = A(E))
- }
- if (O.groupBox.bounds.height < y && t.length > 1) {
- const e = Math.max(k, 2 === t.length ? (y - h.top - h.bottom - O.subtopicTotalHeight) / 3 : (y - h.top - h.bottom - O.subtopicTotalHeight) / (t.length - 1));
- if (e !== k) {
- let t = h.top
- , n = 0;
- for (const r of O.subtopicGroups) {
- const i = r.groupBox.bounds;
- i.y = t,
- t += i.height + e,
- n > 0 && (n += e),
- n += i.height
- }
- n += h.top + h.bottom,
- O.groupBox.contentHeight = n,
- O.groupBox.bounds.height = Math.min(n, y)
- }
- }
- return O
- }(k.id, I, e, M, T, {
- paddings: U,
- maxWidth: W,
- maxHeight: H,
- maxFontSize: $,
- minFontSize: G,
- markerRightMargin: Z,
- preferredLineCount: 2,
- maxLineCount: 3,
- minSpacing: V,
- scrollFaderSize: q
- })
- , J = function(e, t, n, a) {
- const {contentHeight: s, contentLineHeight: l, curveWidth: u, leftPadding: c, rightPadding: d} = a
- , f = {
- x: 0,
- y: 0,
- width: c + u + d,
- height: s
- }
- , h = c
- , p = _
- , g = s / 2
- , m = s / 2 - S - w - l / 2
- , k = {
- id: r.topCurlyBraceOfTopic(e),
- roles: ["curlyBrace"],
- bounds: Object.assign({}, f),
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: m > 0 ? `M${h} ${g} c${y / 2} 0 ${y} ${-S / 2} ${y} ${-S} l0 ${-m} c0 ${-w / 2} ${b / 2} ${-w} ${b} ${-w} l${p} 0` : `M${h} ${g} l${y + b + _} 0`
- };
- o.initializeBoxStyle(k, t, n, {
- layout: v
- });
- const I = {
- id: r.bottomCurlyBraceOfTopic(e),
- roles: ["curlyBrace"],
- bounds: Object.assign({}, f),
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: m > 0 ? `M${h} ${g} c${y / 2} 0 ${y} ${S / 2} ${y} ${S} l0 ${m} c0 ${x / 2} ${b / 2} ${x} ${b} ${x} l${p} 0` : `M${h} ${g} l${y + b + _} 0`
- };
- o.initializeBoxStyle(I, t, n, {
- layout: v
- });
- return {
- groupBox: {
- id: r.curlyBraceOfTopic(e),
- roles: ["curlyBraceGroup"],
- bounds: Object.assign({}, f),
- absBounds: i.zeroRect(),
- contentType: "group",
- children: [k, I],
- contentHeight: f.height,
- overflow: "visible",
- opacity: 1
- },
- topCurveShape: k,
- bottomCurveShape: I
- }
- }(k.id, e, T, {
- curveWidth: 50,
- leftPadding: j,
- rightPadding: F,
- contentHeight: X.groupBox.bounds.height - U.top - U.bottom,
- contentLineHeight: X.subtopicGroups[0].textMeasurement.lineHeight
- })
- , Q = A + (O - (B + D + X.groupBox.bounds.width)) / 2
- , K = A + O / 2 - D - B
- , ee = Math.min(Q, K)
- , te = ee + B
- , ne = te + D
- , re = E;
- Y.groupBox.bounds.x = ee + (B - Y.groupBox.bounds.width) / 2,
- Y.groupBox.bounds.y = re + (L - Y.groupBox.bounds.height) / 2,
- X.groupBox.bounds.x = ne,
- X.groupBox.bounds.y = 0 + (H - X.groupBox.bounds.height) / 2,
- J.groupBox.bounds.x = te,
- J.groupBox.bounds.y = 0 + (N - J.groupBox.bounds.height) / 2,
- e.boxes.push(Y.groupBox),
- e.boxes.push(X.groupBox),
- e.boxes.push(J.groupBox),
- C && u.addHeaderBoxes(e, C, M, T, v),
- s.computeAbsoluteBounds(e.boxes),
- r.addSlideContentFeatures(e, ...Y.contentFeatures, ...X.contentFeatures)
- }
- ,
- t.generateBraceListSlide = function(e, t, n={}) {
- var i;
- const {subtopics: o} = t
- , a = null !== (i = n.numberOfVisitedTopics) && void 0 !== i ? i : 0
- , s = Object.assign({}, e);
- o.forEach(({id: e},t)=>{
- t > a && f.computePendingBoxStates(s, r.titleOfTopic(e))
- }
- );
- const l = a;
- return h.computeSubtopicListScrollingStates(s, r.subtopicListGroupOfTopic(s.topicId), r.titleOfTopic(o[l].id), (e,t)=>t.bounds.height / 2 - e.bounds.height / 2),
- function(e) {
- var t;
- const n = r.assertBox(r.getBoxById(e.boxes, r.subtopicListGroupOfTopic(e.topicId)))
- , i = r.assertBox(r.getBoxById(e.boxes, r.topCurlyBraceOfTopic(e.topicId)))
- , o = r.assertBox(r.getBoxById(e.boxes, r.bottomCurlyBraceOfTopic(e.topicId)));
- (null === (t = e.aliases) || void 0 === t ? void 0 : t.some(t=>"listOfTopic" === t.kind && t.topicId === e.topicId && 0 === t.index)) && (r.setSlideEnteringState(e, {
- boxes: [{
- id: n.id,
- opacity: 0
- }, {
- id: i.id,
- opacity: 0,
- strokeOffset: 1
- }, {
- id: o.id,
- opacity: 0,
- strokeOffset: 1
- }]
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: .75,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: n.id,
- opacity: 1
- }]
- }
- }, {
- on: "postTransition",
- groups: ["curlyBracesVisible"],
- durationMultiplier: 0,
- delayMultiplier: .5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: i.id,
- opacity: 1
- }, {
- id: o.id,
- opacity: 1
- }]
- }
- }, {
- after: "curlyBracesVisible",
- groups: ["curlyBracesReady"],
- durationMultiplier: 1,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: i.id,
- strokeOffset: 0
- }, {
- id: o.id,
- strokeOffset: 0
- }]
- }
- }]))
- }(s),
- s
- }
- },
- 251: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateBulletListSlide = t.layoutBulletListSlide = t.isBulletListLayoutEligibleFor = void 0;
- const r = n(5)
- , i = n(13)
- , o = n(15)
- , a = n(34)
- , s = n(33)
- , l = n(43)
- , u = n(41)
- , c = n(36)
- , d = n(35)
- , f = n(92)
- , h = n(93)
- , p = n(44)
- , g = n(32)
- , m = n(62)
- , v = "bullet-list";
- t.isBulletListLayoutEligibleFor = function(e) {
- return "list" === e
- }
- ,
- t.layoutBulletListSlide = function(e, t, n={}) {
- var f, h, y;
- const {topic: b, subtopics: _, headerTopic: w} = t
- , S = null !== (f = n.numberOfVisitedTopics) && void 0 !== f ? f : 0
- , x = null !== (h = null == n ? void 0 : n.dimension) && void 0 !== h ? h : g.defaultDimension
- , k = null !== (y = null == n ? void 0 : n.appearance) && void 0 !== y ? y : o.defaultAppearance;
- o.initializeSlideStyle(e, x, k, {
- layout: v
- });
- const I = o.calcLength(x.hSlidePadding, e)
- , C = o.calcLength(x.vSlidePadding, e)
- , M = e.width - I - I
- , T = o.calcLength(x.bulletListSlideParentTopicDefaultFontSize, e)
- , A = o.calcLength(x.hPaddingXSmall, e)
- , E = o.calcLength(x.vPaddingXSmall, e)
- , O = {
- left: I,
- top: o.calcLength(x.vPaddingNormal, e),
- right: I,
- bottom: C
- }
- , B = o.calcLength(x.scrollFaderHeight, e)
- , L = Math.round(o.calcLength(x.bulletListSlideSubtopicMaxFontSize, e))
- , P = Math.round(o.calcLength(x.bulletListSlideSubtopicMinFontSize, e))
- , R = o.calcLength(x.hPaddingXSmall, e)
- , z = o.calcLength(x.vPaddingSmall, e)
- , j = o.calcLength(x.hPaddingSmall, e)
- , F = function(e, t, n, r, i) {
- var o;
- const {fontSize: s, markerRightMargin: u, maxWidth: f, maxLineCount: h} = i;
- const g = null !== (o = e.markers) && void 0 !== o ? o : []
- , y = g.slice(0, n.maxMarkerCount)
- , b = m.computePlaceholder(e);
- function _(n) {
- return d.computeTopicTitleGroup(t, r, v, e.id, n, y, {
- maxWidth: f,
- fontSize: s,
- markerRightMargin: u,
- overflowWrap: "break-word",
- textRoles: ["title"],
- requestForHit: {
- kind: "fastBackward"
- },
- placeholder: b
- })
- }
- const w = c.computeTopicTitle(e);
- let S, x = w;
- if (x.length > 1) {
- const e = a.rangedIntegers(x.length, 1)
- , t = a.mapValues(e, e=>l.getTruncatedText(x, e))
- , n = a.mapValues(t, e=>({
- text: e,
- group: _(e)
- }))
- , r = a.findClosestMatch(n, ({group: e})=>function(e) {
- return e.textMeasurement.lineCount <= h
- }(e));
- r ? (x = r.text,
- S = r.group) : (x = l.getTruncatedText(x, 1),
- S = _(x))
- } else
- S = _(x);
- return Object.assign(Object.assign({}, S), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(S, e.id, w, g)
- })
- }(b, e, x, k, {
- fontSize: T,
- markerRightMargin: A,
- maxWidth: M,
- maxLineCount: 1
- })
- , D = e.width
- , N = e.height - C - F.groupBox.bounds.height - E
- , U = function(e, t, n, s, u, f) {
- const {paddings: h, maxWidth: g, maxHeight: y, maxFontSize: b, minFontSize: _, preferredLineCount: w, maxLineCount: S, markerRightMargin: x, subtopicSpacing: k, scrollFaderSize: I, numberOfVisitedTopics: C, bulletDotSizeRatio: M, bulletDotRightMargin: T} = f;
- function A(e) {
- return e.groupBox.contentHeight <= y
- }
- function E(e) {
- return e.textMeasurement.lineCount <= w
- }
- const O = t.map(e=>{
- var t;
- return {
- topicId: e.id,
- text: c.computeTopicTitle(e),
- markers: null !== (t = e.markers) && void 0 !== t ? t : [],
- placeholder: m.computePlaceholder(e)
- }
- }
- );
- function B(t) {
- const c = []
- , f = []
- , m = t * M
- , b = [];
- let _ = h.top
- , w = 0;
- O.forEach(({topicId: e, text: y, markers: I, placeholder: M},A)=>{
- var O;
- const B = A > C
- , L = g - h.left - m - T - h.right
- , P = I.slice(0, s.maxMarkerCount);
- function R(i) {
- return d.computeTopicTitleGroup(n, u, v, e, i, P, {
- maxWidth: L,
- fontSize: t,
- markerRightMargin: x,
- textRoles: ["subtopic"],
- groupRoles: r.toBoxRoles({
- pending: B
- }),
- requestForHit: {
- kind: "present",
- topicId: e,
- viaIntro: !0
- },
- placeholder: M
- })
- }
- let z = R(y);
- if (!function(e) {
- return e.textMeasurement.lineCount <= S
- }(z)) {
- const e = a.rangedIntegers(y.length - 1, 1)
- , t = a.mapValues(e, e=>l.getTruncatedText(y, e))
- , n = a.mapValues(t, e=>R(e));
- z = null !== (O = a.findClosestMatch(n, E)) && void 0 !== O ? O : R(l.getTruncatedText(y, 1))
- }
- const j = m
- , F = z.textMeasurement.lineHeight
- , D = function(e, t, n, a, s, l={}) {
- var u;
- const c = null !== (u = l.additionalRoles) && void 0 !== u ? u : []
- , d = Math.min(a, s) / 2
- , f = `M ${a / 2 - d},${s / 2} a ${d},${d} 0 1,1 ${2 * d},0 a ${d},${d} 0 1,1 -${2 * d},0`
- , h = {
- id: r.bulletDotOfTopic(e),
- roles: ["bulletDot", ...c],
- bounds: {
- x: 0,
- y: 0,
- width: a,
- height: s
- },
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: f
- };
- return o.initializeBoxStyle(h, t, n, {
- layout: v
- }),
- h
- }(e, n, u, j, F, {
- additionalRoles: r.toBoxRoles({
- pending: B
- })
- })
- , N = z.groupBox.bounds;
- D.bounds.x = h.left,
- N.x = D.bounds.x + D.bounds.width + T,
- D.bounds.y = _,
- N.y = _,
- _ += N.height + k,
- w > 0 && (w += k),
- w += N.height,
- c.push(z),
- f.push(D),
- b.push(...p.computeContentFeaturesForTitleGroup(z, e, y, I))
- }
- ),
- w += h.top + h.bottom;
- const A = {
- id: r.subtopicListGroupOfTopic(e),
- roles: ["subtopicListGroup"],
- bounds: {
- x: 0,
- y: 0,
- width: g,
- height: Math.min(w, y)
- },
- absBounds: i.zeroRect(),
- contentType: "group",
- children: [...c.map(e=>e.groupBox), ...f],
- contentHeight: w,
- overflow: w > y ? "scroll" : "hidden",
- scrollFaderSize: I
- };
- return o.initializeBoxStyle(A, n, u, {
- layout: v
- }),
- {
- groupBox: A,
- subtopicGroups: c,
- bulletDotShapes: f,
- contentFeatures: b
- }
- }
- let L, P;
- const R = a.rangedIntegers(b, _)
- , z = a.mapValues(R, e=>({
- fontSize: e,
- group: B(e)
- }))
- , j = a.findClosestMatch(z, ({group: e})=>function(e) {
- return e.subtopicGroups.every(E)
- }(e));
- j ? (L = j.fontSize,
- P = j.group) : (L = _,
- P = B(L));
- if (!A(P) && L > _) {
- const e = a.rangedIntegers(L, _)
- , t = a.mapValues(e, e=>({
- fontSize: e,
- group: B(e)
- }))
- , n = a.findClosestMatch(t, ({group: e})=>A(e));
- n ? (L = n.fontSize,
- P = n.group) : (L = b,
- P = B(L))
- }
- return P
- }(b.id, _, e, x, k, {
- paddings: O,
- maxWidth: D,
- maxHeight: N,
- maxFontSize: L,
- minFontSize: P,
- markerRightMargin: R,
- preferredLineCount: 2,
- maxLineCount: 3,
- subtopicSpacing: z,
- scrollFaderSize: B,
- numberOfVisitedTopics: S,
- bulletDotSizeRatio: .3,
- bulletDotRightMargin: j
- });
- F.groupBox.bounds.x = I,
- F.groupBox.bounds.y = C,
- U.groupBox.bounds.x = 0,
- U.groupBox.bounds.y = F.groupBox.bounds.y + F.groupBox.bounds.height + E,
- e.boxes.push(F.groupBox),
- e.boxes.push(U.groupBox),
- w && u.addHeaderBoxes(e, w, x, k, v),
- s.computeAbsoluteBounds(e.boxes),
- r.addSlideContentFeatures(e, ...F.contentFeatures, ...U.contentFeatures)
- }
- ,
- t.generateBulletListSlide = function(e, t, n={}) {
- var i;
- const {subtopics: o} = t
- , a = null !== (i = n.numberOfVisitedTopics) && void 0 !== i ? i : 0
- , s = Object.assign({}, e);
- o.forEach(({id: e},t)=>{
- t > a && (f.computePendingBoxStates(s, r.titleOfTopic(e)),
- f.computePendingBoxStates(s, r.bulletDotOfTopic(e)))
- }
- );
- const l = a;
- return h.computeSubtopicListScrollingStates(s, r.subtopicListGroupOfTopic(s.topicId), r.titleOfTopic(o[l].id), (e,t)=>t.bounds.height / 2 - e.bounds.height / 2),
- function(e) {
- var t;
- const n = r.assertBox(r.getBoxById(e.boxes, r.subtopicListGroupOfTopic(e.topicId)));
- (null === (t = e.aliases) || void 0 === t ? void 0 : t.some(t=>"listOfTopic" === t.kind && t.topicId === e.topicId && 0 === t.index)) && (r.setSlideEnteringState(e, {
- boxes: [{
- id: n.id,
- opacity: 0
- }]
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: .75,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: n.id,
- opacity: 1
- }]
- }
- }]))
- }(s),
- s
- }
- },
- 252: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateOnlyChildListSlide = t.layoutOnlyChildListSlide = t.isOnlyChildLayoutEligibleFor = void 0;
- const r = n(5)
- , i = n(13)
- , o = n(15)
- , a = n(34)
- , s = n(43)
- , l = n(36)
- , u = n(33)
- , c = n(41)
- , d = n(35)
- , f = n(44)
- , h = n(32)
- , p = n(62)
- , g = "only-child";
- function m(e) {
- const t = e.subtopics[0];
- if (!t)
- throw new Error("No subtopics found for Only Child layout");
- return t
- }
- t.isOnlyChildLayoutEligibleFor = function() {
- return !1
- }
- ,
- t.layoutOnlyChildListSlide = function(e, t, n={}) {
- var v, y;
- const {topic: b, headerTopic: _} = t
- , w = m(t)
- , S = null !== (v = null == n ? void 0 : n.dimension) && void 0 !== v ? v : h.defaultDimension
- , x = null !== (y = null == n ? void 0 : n.appearance) && void 0 !== y ? y : o.defaultAppearance;
- o.initializeSlideStyle(e, S, x, {
- layout: g
- });
- const k = o.calcLength(S.hSlidePadding, e)
- , I = o.calcLength(S.vSlidePadding, e)
- , C = e.width - k - k
- , M = e.height - I - I
- , T = i.calc(.14, "vmin", e)
- , A = o.calcLength(S.hPaddingXSmall, e)
- , E = C
- , O = o.calcLength(S.hPaddingXSmall, e)
- , B = i.calc(.1, "vmin", e)
- , L = i.calc(.04, "vmin", e)
- , P = C
- , R = o.calcLength(S.onlyChildSlideSeparatorLineWidth, e)
- , z = o.calcLength(e.width > e.height ? S.vPaddingSmall : S.vPaddingXSmall, e)
- , j = o.calcLength(e.width > e.height ? S.vPaddingSmall : S.vPaddingXSmall, e)
- , F = C
- , D = R + z + j
- , N = function(e, t, n, r, i) {
- var o, u;
- const {fontSize: c, maxWidth: h, markerRightMargin: m, maxLineCount: v} = i;
- const y = null !== (o = e.markers) && void 0 !== o ? o : []
- , b = y.slice(0, n.maxMarkerCount)
- , _ = p.computePlaceholder(e);
- function w(n) {
- return d.computeTopicTitleGroup(t, r, g, e.id, n, b, {
- maxWidth: h,
- fontSize: c,
- markerRightMargin: m,
- overflowWrap: "break-word",
- textRoles: ["title"],
- requestForHit: {
- kind: "fastBackward"
- },
- placeholder: _
- })
- }
- const S = l.computeTopicTitle(e)
- , x = a.rangedIntegers(S.length, 1)
- , k = a.mapValues(x, e=>s.getTruncatedText(S, e))
- , I = a.mapValues(k, w)
- , C = null !== (u = a.findClosestMatch(I, (function(e) {
- return e.textMeasurement.lineCount <= v
- }
- ))) && void 0 !== u ? u : w(s.getTruncatedText(S, 1));
- return Object.assign(Object.assign({}, C), {
- contentFeatures: f.computeContentFeaturesForTitleGroup(C, e.id, S, y)
- })
- }(b, e, S, x, {
- maxWidth: E,
- fontSize: T,
- markerRightMargin: A,
- maxLineCount: 2
- })
- , U = function(e, t, n, r, i) {
- var o, u;
- const {maxWidth: c, maxHeight: h, maxFontSize: m, minFontSize: v, preferredLineCount: y, maxLineCount: b, markerRightMargin: _} = i;
- const w = l.computeTopicTitle(e)
- , S = null !== (o = e.markers) && void 0 !== o ? o : []
- , x = p.computePlaceholder(e)
- , k = S.slice(0, n.maxMarkerCount);
- function I(n, i) {
- return d.computeTopicTitleGroup(t, r, g, e.id, n, k, {
- maxWidth: c,
- fontSize: i,
- markerRightMargin: _,
- textRoles: ["subtopic"],
- requestForHit: {
- kind: "present",
- topicId: e.id,
- viaIntro: !0
- },
- placeholder: x
- })
- }
- const C = a.rangedIntegers(m, v)
- , M = a.mapValues(C, e=>I(w, e))
- , T = a.findClosestMatch(M, (function(e) {
- return e.groupBox.bounds.height <= h
- }
- ));
- if (T)
- return Object.assign(Object.assign({}, T), {
- contentFeatures: f.computeContentFeaturesForTitleGroup(T, e.id, w, S)
- });
- const A = m;
- let E = I(w, A);
- if (!function(e) {
- return e.textMeasurement.lineCount <= b
- }(E)) {
- const e = a.rangedIntegers(w.length - 1, 1)
- , t = a.mapValues(e, e=>s.getTruncatedText(w, e))
- , n = a.mapValues(t, e=>I(e, A));
- E = null !== (u = a.findClosestMatch(n, (function(e) {
- return e.textMeasurement.lineCount <= y
- }
- ))) && void 0 !== u ? u : I(s.getTruncatedText(w, 1), A)
- }
- return Object.assign(Object.assign({}, E), {
- contentFeatures: f.computeContentFeaturesForTitleGroup(E, e.id, w, S)
- })
- }(w, e, S, x, {
- maxWidth: P,
- maxHeight: M - N.groupBox.bounds.height - D,
- maxFontSize: B,
- minFontSize: L,
- preferredLineCount: 2,
- maxLineCount: 3,
- markerRightMargin: O
- })
- , W = Math.min(F, Math.max(N.groupBox.bounds.width, U.groupBox.bounds.width))
- , H = function(e, t, n, a) {
- const {lineLength: s, lineWidth: l, topPadding: u, bottomPadding: c} = a
- , d = {
- id: r.separatorLineOfTopic(e),
- roles: ["separatorLine"],
- bounds: {
- x: 0,
- y: 0,
- width: s,
- height: u + l + c
- },
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: `M${l / 2} ${u + l / 2}l${s - l} 0`,
- lineWidth: l
- };
- return o.initializeBoxStyle(d, t, n, {
- layout: g
- }),
- d
- }(b.id, e, x, {
- lineWidth: R,
- lineLength: W,
- topPadding: z,
- bottomPadding: j
- })
- , V = (M - (N.groupBox.bounds.height + H.bounds.height + U.groupBox.bounds.height)) / 2;
- N.groupBox.bounds.x = k,
- N.groupBox.bounds.y = I + V,
- H.bounds.x = k,
- H.bounds.y = N.groupBox.bounds.y + N.groupBox.bounds.height,
- U.groupBox.bounds.x = k,
- U.groupBox.bounds.y = H.bounds.y + H.bounds.height,
- e.boxes.push(N.groupBox),
- e.boxes.push(U.groupBox),
- e.boxes.push(H),
- _ && c.addHeaderBoxes(e, _, S, x, g),
- u.computeAbsoluteBounds(e.boxes),
- r.addSlideContentFeatures(e, ...N.contentFeatures, ...U.contentFeatures)
- }
- ,
- t.generateOnlyChildListSlide = function(e, t) {
- var n, i;
- const o = Object.assign({}, e)
- , {id: a} = m(t)
- , s = r.assertBox(r.getBoxById(o.boxes, r.titleOfTopic(a), "group"))
- , l = r.assertBox(r.getBoxById(o.boxes, r.separatorLineOfTopic(o.topicId)));
- return s.contentHeight > s.bounds.height && (null === (n = o.aliases) || void 0 === n ? void 0 : n.some(e=>"listOfTopic" === e.kind && e.topicId === o.topicId && 0 === e.index)) && (o.multistepBoxes = [...null !== (i = o.multistepBoxes) && void 0 !== i ? i : [], s.id],
- r.addSlideLeavingAnimations(o, [{
- durationMultiplier: 1,
- easing: "easeInOutCubic",
- on: "preTransition",
- effect: "mutate",
- finalState: {
- boxes: [{
- id: s.id,
- scrollOffset: 0
- }]
- }
- }])),
- function(e, {subtopicGroupBox: t, separatorLineBox: n}) {
- var i;
- (null === (i = e.aliases) || void 0 === i ? void 0 : i.some(t=>"listOfTopic" === t.kind && t.topicId === e.topicId && 0 === t.index)) && (r.setSlideEnteringState(e, {
- boxes: [{
- id: t.id,
- opacity: 0
- }, {
- id: n.id,
- opacity: 0,
- strokeOffset: 1
- }]
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: .75,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: 1
- }]
- }
- }, {
- on: "postTransition",
- groups: ["separatorVisible"],
- durationMultiplier: 0,
- delayMultiplier: .5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: n.id,
- opacity: 1
- }]
- }
- }, {
- after: "separatorVisible",
- durationMultiplier: 1,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: n.id,
- strokeOffset: 0
- }]
- }
- }]))
- }(o, {
- subtopicGroupBox: s,
- separatorLineBox: l
- }),
- o
- }
- },
- 253: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateSummarySlide = t.layoutSummarySlide = t.isSummaryLayoutEligibleFor = void 0;
- const r = n(5)
- , i = n(13)
- , o = n(33)
- , a = n(15)
- , s = n(12)
- , l = n(42)
- , u = n(34)
- , c = n(41)
- , d = n(35)
- , f = n(43)
- , h = n(36)
- , p = n(44)
- , g = n(32)
- , m = n(61)
- , v = n(62)
- , y = "summary";
- function b(e, t, n, g, b) {
- const {topic: _, headerTopic: w, summarySubtopics: S} = t
- , {hSlidePadding: x, vSlidePadding: k, summaryTopicMaxFontSize: I, summaryTopicMinFontSize: C, summaryTopicMarkerRightMargin: M, subtopicFontSize: T, subtopicMarkerRightMargin: A, subtopicMaxLineCount: E, summarySlideLineStrokeWidth: O} = b
- , B = e.width - 2 * x
- , L = e.height - 2 * k
- , P = .3 * B
- , R = L
- , z = S.length > 1 ? "brace" : "flatLine"
- , j = S.length > 1 ? a.calcLength({
- pct: 100 / 15,
- unit: "vw"
- }, e) : a.calcLength({
- pct: 100 / 15 * 2,
- unit: "vw"
- }, e)
- , F = (S.length,
- a.calcLength(n.hPaddingNormal, e))
- , D = S.length > 1 ? a.calcLength(n.hPaddingXSmall, e) : a.calcLength(n.hPaddingNormal, e)
- , N = F + j + D
- , U = L
- , W = B - P - N
- , H = L
- , V = a.calcLength(n.vPaddingMedium, e)
- , $ = function(e, t, n, r, i) {
- var o;
- const {maxWidth: a, maxFontSize: s, minFontSize: l, markerRightMargin: c, preferredLineCount: g, maxLineCount: m} = i;
- function b(e) {
- return e.groupBox.bounds.width <= a
- }
- function _(e) {
- return e.textMeasurement.lineCount <= g
- }
- function w(e) {
- return e.textMeasurement.lineCount <= m
- }
- const S = null !== (o = e.markers) && void 0 !== o ? o : []
- , x = S.slice(0, n.maxMarkerCount)
- , k = v.computePlaceholder(e);
- function I(n, i, o) {
- return d.computeTopicTitleGroup(t, r, y, e.id, n, x, {
- maxWidth: a,
- fontSize: i,
- markerRightMargin: c,
- overflowWrap: o,
- textRoles: ["title"],
- requestForHit: {
- kind: "present",
- topicId: e.id
- },
- placeholder: k
- })
- }
- const C = h.computeTopicTitle(e);
- let M = C
- , T = s
- , A = "normal"
- , E = I(M, T, A);
- if (b(E) && _(E))
- return Object.assign(Object.assign({}, E), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(E, e.id, C, S)
- });
- if (T = l,
- E = I(M, T, A),
- b(E)) {
- if (_(E)) {
- const e = u.rangedIntegers(s, l)
- , t = u.mapValues(e, e=>({
- fontSize: e,
- group: I(M, e, A)
- }))
- , n = u.findClosestMatch(t, ({group: e})=>b(e) && _(e));
- if (!n)
- throw new Error("Unable to find the best font size for parent topic of summary slide");
- T = n.fontSize,
- E = n.group
- }
- } else {
- A = "break-word";
- const e = u.rangedIntegers(s, l)
- , t = u.mapValues(e, e=>({
- fontSize: e,
- group: I(M, e, A)
- }))
- , n = u.findClosestMatch(t, ({group: e})=>_(e));
- n ? (T = n.fontSize,
- E = n.group) : (T = l,
- E = I(M, T, A))
- }
- if (!w(E)) {
- const e = u.rangedIntegers(M.length - 1, 1)
- , t = u.mapValues(e, e=>f.getTruncatedText(M, e))
- , n = u.mapValues(t, e=>({
- text: e,
- group: I(e, T, A)
- }))
- , r = u.findClosestMatch(n, ({group: e})=>w(e));
- r ? (M = r.text,
- E = r.group) : (M = f.getTruncatedText(M, 1),
- E = I(M, T, A))
- }
- return Object.assign(Object.assign({}, E), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(E, e.id, C, S)
- })
- }(_, e, n, g, {
- maxWidth: P,
- maxFontSize: I,
- minFontSize: C,
- markerRightMargin: M,
- preferredLineCount: 2,
- maxLineCount: 5
- })
- , G = $.groupBox.bounds.width
- , Z = $.groupBox.bounds.height
- , q = function(e, t, n, o, c, g) {
- var b, _;
- const {maxWidth: w, maxHeight: S, fontSize: x, markerRightMargin: k, maxLineCount: I, spacingForMultipleSubtopics: C} = g;
- function M(e) {
- return e.textMeasurement.lineCount <= I
- }
- function T(e, t, r, i) {
- return d.computeTopicTitleGroup(n, c, y, e, t, r, {
- maxWidth: w,
- fontSize: x,
- markerRightMargin: k,
- textRoles: ["subtopic"],
- requestForHit: {
- kind: "present",
- topicId: e,
- viaIntro: !0
- },
- placeholder: i
- })
- }
- const A = t.length
- , E = (A > 2 ? [t[0], t[t.length - 1]] : t).map(e=>{
- var t, n;
- const r = h.computeTopicTitle(e)
- , i = null !== (t = e.markers) && void 0 !== t ? t : []
- , a = i.slice(0, o.maxMarkerCount)
- , s = v.computePlaceholder(e)
- , l = u.rangedIntegers(r.length, 1)
- , c = u.mapValues(l, e=>f.getTruncatedText(r, e))
- , d = u.mapValues(c, t=>T(e.id, t, a, s))
- , g = null !== (n = u.findClosestMatch(d, M)) && void 0 !== n ? n : T(e.id, f.getTruncatedText(r, 1), a, s);
- return Object.assign(Object.assign({}, g), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(g, e.id, r, i)
- })
- }
- )
- , O = E.reduce((e,t)=>Math.max(e, t.groupBox.bounds.width), 0)
- , B = E.reduce((e,t)=>e + t.groupBox.bounds.height, 0)
- , L = A > 2 ? function(e, t, n, o, u) {
- const c = {
- id: r.subtopicEllipsisOfSummary(e),
- roles: ["subtopic"],
- bounds: i.zeroRect(),
- absBounds: i.zeroRect(),
- contentType: "text",
- text: "...",
- fontSize: s.toCSSLength(o),
- lineHeight: m.computeTextLineHeight(o)
- };
- a.initializeBoxStyle(c, t, n, {
- layout: y
- });
- const d = l.measureText(c, {
- maxWidth: u
- })
- , {width: f, height: h} = d;
- return c.bounds.width = f,
- c.bounds.height = h,
- c
- }(e, n, c, x, w) : null
- , P = null !== (b = null == L ? void 0 : L.bounds.width) && void 0 !== b ? b : 0
- , R = null !== (_ = null == L ? void 0 : L.bounds.height) && void 0 !== _ ? _ : 0
- , z = {
- id: r.subtopicListGroupOfTopic(e),
- roles: ["subtopicListGroup"],
- bounds: i.zeroRect(),
- absBounds: i.zeroRect(),
- contentType: "group",
- children: [],
- overflow: "visible",
- contentHeight: 0
- };
- a.initializeBoxStyle(z, n, c, {
- layout: y
- });
- const j = Math.min(w, Math.max(O, P))
- , F = B + R
- , D = A > 2 ? C : (S - F) / 3;
- let N = 0
- , U = 0;
- E.forEach((e,t)=>{
- t === E.length - 1 && L && (L.bounds.y = N,
- L.bounds.x = j - L.bounds.width,
- z.children.push(L),
- N += L.bounds.height + D,
- U > 0 && (U += D),
- U += L.bounds.height),
- e.groupBox.bounds.y = N,
- e.groupBox.bounds.x = j - e.groupBox.bounds.width,
- z.children.push(e.groupBox),
- N += e.groupBox.bounds.height + D,
- U > 0 && (U += D),
- U += e.groupBox.bounds.height
- }
- ),
- z.contentHeight = U,
- z.bounds.width = j,
- z.bounds.height = Math.min(S, U);
- const W = E.reduce((e,t)=>[...e, ...t.contentFeatures], []);
- return {
- groupBox: z,
- subtopicGroups: E,
- ellipsisBox: L,
- contentFeatures: W
- }
- }(_.id, S, e, n, g, {
- maxWidth: W,
- maxHeight: H,
- fontSize: T,
- markerRightMargin: A,
- maxLineCount: E,
- spacingForMultipleSubtopics: V
- })
- , Y = q.groupBox.bounds.width
- , X = q.groupBox.bounds.height
- , J = (H - X) / 2
- , Q = H - X - J
- , K = J + (q.subtopicGroups.length > 0 ? q.subtopicGroups[0].groupBox.bounds.height / 2 : 0)
- , ee = Q + (q.subtopicGroups.length > 0 ? q.subtopicGroups[q.subtopicGroups.length - 1].groupBox.bounds.height / 2 : 0)
- , te = function(e, t, n, o) {
- const {type: s, width: l, height: u, leftPadding: c, rightPadding: d, topPadding: f, bottomPadding: h, summarySlideLineStrokeWidth: p} = o
- , g = l - c - d
- , m = []
- , v = {
- id: r.braceShapeOfSummary(e),
- roles: ["curlyBraceGroup"],
- bounds: {
- x: 0,
- y: 0,
- width: l,
- height: u
- },
- absBounds: i.zeroRect(),
- contentType: "group",
- children: [],
- contentHeight: u,
- overflow: "visible"
- };
- if (a.initializeBoxStyle(v, t, n, {
- layout: y
- }),
- "flatLine" === s) {
- const o = {
- id: r.topBraceOfSummary(e),
- roles: ["curlyBrace"],
- bounds: {
- x: 0,
- y: 0,
- width: l,
- height: u
- },
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: `M${c} ${u / 2} l${g} 0`,
- lineWidth: p
- };
- a.initializeBoxStyle(o, t, n, {
- layout: y
- }),
- m.push(o),
- v.children.push(o)
- } else {
- const o = c
- , s = c + g / 2
- , d = c + g
- , b = f
- , _ = u / 2
- , w = u - h
- , S = {
- id: r.topBraceOfSummary(e),
- roles: ["curlyBrace"],
- bounds: {
- x: 0,
- y: 0,
- width: l,
- height: u
- },
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: `M${o} ${b} L${s} ${b} L${s} ${_} L${d} ${_}`,
- lineWidth: p
- };
- a.initializeBoxStyle(S, t, n, {
- layout: y
- });
- const x = {
- id: r.bottomBraceOfSummary(e),
- roles: ["curlyBrace"],
- bounds: {
- x: 0,
- y: 0,
- width: l,
- height: u
- },
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: `M${o} ${w} L${s} ${w} L${s} ${_}`,
- lineWidth: p
- };
- a.initializeBoxStyle(x, t, n, {
- layout: y
- }),
- m.push(S),
- m.push(x),
- v.children.push(S),
- v.children.push(x)
- }
- return {
- groupBox: v,
- lineShapes: m
- }
- }(_.id, e, g, {
- type: z,
- width: N,
- height: U,
- leftPadding: F,
- rightPadding: D,
- topPadding: K,
- bottomPadding: ee,
- summarySlideLineStrokeWidth: O
- })
- , ne = te.groupBox.bounds.width
- , re = te.groupBox.bounds.height
- , ie = x + (B - (Y + N + P)) / 2
- , oe = x + B / 2 - j / 2 - F - Y
- , ae = Math.max(ie, oe)
- , se = ae
- , le = ae + Y
- , ue = le + N
- , ce = k + J
- , de = k
- , fe = k;
- $.groupBox.bounds.x = ue + (P - G) / 2,
- $.groupBox.bounds.y = fe + (R - Z) / 2,
- te.groupBox.bounds.x = le + (N - ne) / 2,
- te.groupBox.bounds.y = de + (U - re) / 2,
- q.groupBox.bounds.x = se,
- q.groupBox.bounds.y = ce,
- e.boxes.push($.groupBox),
- e.boxes.push(q.groupBox),
- e.boxes.push(te.groupBox),
- w && c.addHeaderBoxes(e, w, n, g, y),
- o.computeAbsoluteBounds(e.boxes),
- r.addSlideContentFeatures(e, ...$.contentFeatures, ...q.contentFeatures)
- }
- function _(e, t, n, s, l) {
- const {topic: f, headerTopic: g, summarySubtopics: m} = t
- , {hSlidePadding: b, vSlidePadding: _, summaryTopicMaxFontSize: S, summaryTopicMinFontSize: x, summaryTopicMarkerRightMargin: k, subtopicFontSize: I, subtopicMarkerRightMargin: C, subtopicMaxLineCount: M, summarySlideLineStrokeWidth: T} = l
- , A = e.width - 2 * b
- , E = g ? e.height - _ : e.height
- , O = a.calcLength(n.summaryScrollFaderHeight, e)
- , B = A
- , L = a.calcLength(n.vPaddingSmall, e)
- , P = a.calcLength(n.vPaddingSmall, e)
- , R = a.calcLength(n.vPaddingXSmall, e)
- , z = a.calcLength(n.summarySlideLineHeight, e)
- , j = A
- , F = P + z + R
- , D = function(e, t, n, o) {
- const {width: s, height: l, topPadding: u, summaryVerticalLineHeight: c, summarySlideLineStrokeWidth: d} = o
- , f = {
- id: r.braceShapeOfSummary(e),
- roles: ["curlyBraceGroup"],
- bounds: {
- x: 0,
- y: 0,
- width: s,
- height: l
- },
- absBounds: i.zeroRect(),
- contentType: "group",
- children: [],
- contentHeight: l,
- overflow: "visible"
- }
- , h = []
- , p = {
- id: r.topBraceOfSummary(e),
- roles: ["curlyBrace"],
- bounds: {
- x: 0,
- y: 0,
- width: s,
- height: l
- },
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: `M ${d} ${u} L ${s - d} ${u} L ${s / 2} ${u} L ${s / 2} ${u + c} `,
- lineWidth: d
- };
- return a.initializeBoxStyle(p, t, n, {
- layout: y
- }),
- h.push(p),
- f.children.push(p),
- a.initializeBoxStyle(f, t, n, {
- layout: y
- }),
- {
- groupBox: f,
- lineShapes: h
- }
- }(f.id, e, s, {
- width: j,
- height: F,
- topPadding: P,
- summaryVerticalLineHeight: z,
- summarySlideLineStrokeWidth: T
- })
- , N = Math.min(m.length, 2);
- let U = w(f.id, m, e, n, s, {
- maxWidth: B,
- fontSize: I,
- markerRightMargin: C,
- maxLineCount: M,
- subtopicSpacing: L,
- maxSubtopicCount: N
- });
- const W = U.groupBox.bounds.height
- , H = A;
- N < m.length && (U = w(f.id, m, e, n, s, {
- maxWidth: B,
- fontSize: I,
- markerRightMargin: C,
- maxLineCount: M,
- subtopicSpacing: L,
- maxSubtopicCount: m.length
- }));
- const V = function(e, t, n, r, i) {
- var o;
- const {maxWidth: a, maxHeight: s, maxFontSize: l, minFontSize: c, markerRightMargin: f} = i;
- function g(e) {
- return e.groupBox.contentHeight <= s
- }
- const m = null !== (o = e.markers) && void 0 !== o ? o : []
- , b = m.slice(0, n.maxMarkerCount)
- , _ = v.computePlaceholder(e);
- function w(n, i, o) {
- return d.computeTopicTitleGroup(t, r, y, e.id, n, b, {
- maxWidth: a,
- fontSize: i,
- markerRightMargin: f,
- overflowWrap: o,
- textRoles: ["title"],
- textAlignment: "leading",
- requestForHit: {
- kind: "present",
- topicId: e.id
- },
- placeholder: _
- })
- }
- const S = h.computeTopicTitle(e);
- let x = l;
- let k = w(S, x, "break-word");
- if (g(k))
- return Object.assign(Object.assign({}, k), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(k, e.id, S, m)
- });
- if (x = c,
- k = w(S, x, "break-word"),
- g(k)) {
- const e = u.rangedIntegers(l, c)
- , t = u.mapValues(e, e=>({
- fontSize: e,
- group: w(S, e, "break-word")
- }))
- , n = u.findClosestMatch(t, ({group: e})=>g(e));
- if (!n)
- throw new Error("Unable to find the best font size for parent topic of summary slide");
- x = n.fontSize,
- k = n.group
- }
- return Object.assign(Object.assign({}, k), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(k, e.id, S, m)
- })
- }(f, e, n, s, {
- maxWidth: H,
- maxHeight: E - U.groupBox.bounds.height - D.groupBox.bounds.height,
- maxFontSize: S,
- minFontSize: x,
- markerRightMargin: k
- })
- , $ = U.groupBox.bounds.height + D.groupBox.bounds.height + V.groupBox.bounds.height;
- U.groupBox.bounds.x = b,
- U.groupBox.bounds.y = 0,
- D.groupBox.bounds.x = b,
- D.groupBox.bounds.y = U.groupBox.bounds.y + U.groupBox.bounds.height,
- V.groupBox.bounds.x = b,
- V.groupBox.bounds.y = D.groupBox.bounds.y + D.groupBox.bounds.height;
- const G = {
- id: r.contentOfSummary(e.topicId),
- roles: [],
- bounds: {
- x: 0,
- y: 0,
- width: e.width,
- height: E
- },
- absBounds: i.zeroRect(),
- contentType: "group",
- children: [V.groupBox, U.groupBox, D.groupBox],
- contentHeight: $,
- overflow: "scroll",
- scrollFaderSize: O
- };
- a.initializeBoxStyle(G, e, s, {
- layout: y
- }),
- e.boxes.push(G),
- g && c.addHeaderBoxes(e, g, n, s, y),
- G.contentHeight <= e.height - 2 * _ ? G.bounds.y = (e.height - $) / 2 : (G.contentHeight += _,
- G.bounds.y = e.height - E,
- m.length > N && (G.scrollOffset = Math.min(U.groupBox.bounds.height - W, G.contentHeight - E))),
- o.computeAbsoluteBounds(e.boxes),
- r.addSlideContentFeatures(e, ...V.contentFeatures, ...U.contentFeatures)
- }
- function w(e, t, n, o, s, l) {
- const {maxWidth: c, fontSize: g, markerRightMargin: m, maxLineCount: b, subtopicSpacing: _, maxSubtopicCount: w} = l;
- function S(e) {
- return e.textMeasurement.lineCount <= b
- }
- function x(e, t, r, i) {
- return d.computeTopicTitleGroup(n, s, y, e, t, r, {
- maxWidth: c,
- fontSize: g,
- markerRightMargin: m,
- textRoles: ["subtopic"],
- requestForHit: {
- kind: "present",
- topicId: e,
- viaIntro: !0
- },
- placeholder: i
- })
- }
- const k = (t.length > w ? t.slice(t.length - w, t.length) : t).map(e=>{
- var t, n;
- const r = h.computeTopicTitle(e)
- , i = null !== (t = e.markers) && void 0 !== t ? t : []
- , a = i.slice(0, o.maxMarkerCount)
- , s = v.computePlaceholder(e)
- , l = u.rangedIntegers(r.length, 1)
- , c = u.mapValues(l, e=>f.getTruncatedText(r, e))
- , d = u.mapValues(c, t=>x(e.id, t, a, s))
- , g = null !== (n = u.findClosestMatch(d, S)) && void 0 !== n ? n : x(e.id, f.getTruncatedText(r, 1), a, s);
- return Object.assign(Object.assign({}, g), {
- contentFeatures: p.computeContentFeaturesForTitleGroup(g, e.id, r, i)
- })
- }
- )
- , I = {
- id: r.subtopicListGroupOfTopic(e),
- roles: ["subtopicListGroup"],
- bounds: i.zeroRect(),
- absBounds: i.zeroRect(),
- contentType: "group",
- children: [],
- overflow: "scroll",
- contentHeight: 0
- };
- a.initializeBoxStyle(I, n, s, {
- layout: y
- });
- const C = c;
- let M = 0
- , T = M;
- k.forEach((e,t)=>{
- e.groupBox.bounds.y = M,
- e.groupBox.bounds.x = 0,
- I.children.push(e.groupBox),
- M += e.groupBox.bounds.height,
- T += e.groupBox.bounds.height,
- t < k.length - 1 && (M += _,
- T += _)
- }
- ),
- I.contentHeight = T,
- I.bounds.width = C,
- I.bounds.height = T;
- const A = k.reduce((e,t)=>[...e, ...t.contentFeatures], []);
- return {
- groupBox: I,
- subtopicGroups: k,
- ellipsisBox: null,
- contentFeatures: A
- }
- }
- t.isSummaryLayoutEligibleFor = function(e) {
- return "summary" === e
- }
- ,
- t.layoutSummarySlide = function(e, t, n={}) {
- var r, i;
- const o = null !== (r = null == n ? void 0 : n.dimension) && void 0 !== r ? r : g.defaultDimension
- , s = null !== (i = null == n ? void 0 : n.appearance) && void 0 !== i ? i : a.defaultAppearance;
- a.initializeSlideStyle(e, o, s, {
- layout: y
- });
- const l = a.calcLength(o.hSlidePadding, e)
- , u = a.calcLength(o.vSlidePadding, e)
- , c = a.calcLength(o.summarySlideTopicMaxFontSize, e)
- , d = a.calcLength(o.summarySlideTopicMinFontSize, e)
- , f = a.calcLength(o.summarySlideTopicMarkerRightMargin, e)
- , h = a.calcLength(o.summarySlideSubtopicFontSize, e)
- , p = a.calcLength(o.summarySlideSubtopicMarkerRightMargin, e)
- , m = a.calcLength(o.summarySlideLineStrokeWidth, e);
- (e.width > e.height ? b : _)(e, t, o, s, {
- hSlidePadding: l,
- vSlidePadding: u,
- summaryTopicMaxFontSize: c,
- summaryTopicMinFontSize: d,
- summaryTopicMarkerRightMargin: f,
- subtopicFontSize: h,
- subtopicMarkerRightMargin: p,
- subtopicMaxLineCount: 1,
- summarySlideLineStrokeWidth: m
- })
- }
- ,
- t.generateSummarySlide = function(e) {
- var t, n;
- const i = Object.assign({}, e)
- , o = r.assertBox(r.getBoxById(i.boxes, r.titleOfTopic(i.topicId), "group"));
- o.contentHeight > o.bounds.height && (i.multistepBoxes = [...null !== (t = i.multistepBoxes) && void 0 !== t ? t : [], o.id]);
- const a = r.getBoxById(i.boxes, r.contentOfSummary(i.topicId));
- return a && a.contentHeight > a.bounds.height && (i.multistepBoxes = [...null !== (n = i.multistepBoxes) && void 0 !== n ? n : [], a.id]),
- function(e) {
- var t, n, i;
- if (null === (t = e.aliases) || void 0 === t ? void 0 : t.some(t=>"startOfSummary" === t.kind && t.topicId === e.topicId)) {
- const t = r.assertBox(r.getBoxById(e.boxes, r.titleOfTopic(e.topicId)))
- , o = [r.topBraceOfSummary(e.topicId), r.bottomBraceOfSummary(e.topicId)]
- , a = r.filterBoxes(e.boxes, e=>o.some(t=>t === e.id));
- for (const {id: t} of a)
- r.setBoxEnteringState(e, {
- id: t,
- opacity: 0,
- strokeOffset: 1
- });
- r.setBoxEnteringState(e, {
- id: t.id,
- opacity: 0
- });
- const s = r.getBoxById(e.boxes, r.contentOfSummary(e.topicId));
- s && s.scrollOffset ? (r.setBoxEnteringState(e, {
- id: s.id,
- scrollOffset: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- groups: ["subtopicListVisible"],
- durationMultiplier: 1,
- delayMultiplier: .5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: s.id,
- scrollOffset: s.scrollOffset
- }]
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- after: "subtopicListVisible",
- groups: ["curlyBracesVisible"],
- durationMultiplier: 0,
- delayMultiplier: .5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: a.map(({id: e})=>({
- id: e,
- opacity: 1
- }))
- }
- }, {
- after: "curlyBracesVisible",
- groups: ["curlyBracesReady"],
- durationMultiplier: 1,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: a.map(({id: e})=>({
- id: e,
- strokeOffset: 0
- }))
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- after: "curlyBracesReady",
- durationMultiplier: 1,
- delayMultiplier: .75,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
- }]
- }
- }])) : (r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- groups: ["curlyBracesVisible"],
- durationMultiplier: 0,
- delayMultiplier: .5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: a.map(({id: e})=>({
- id: e,
- opacity: 1
- }))
- }
- }, {
- after: "curlyBracesVisible",
- groups: ["curlyBracesReady"],
- durationMultiplier: 1,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: a.map(({id: e})=>({
- id: e,
- strokeOffset: 0
- }))
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: .75,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (i = t.opacity) && void 0 !== i ? i : 1
- }]
- }
- }]))
- }
- }(i),
- i
- }
- },
- 254: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateLyricListSlide = t.layoutLyricListSlide = t.isLyricListLayoutEligibleFor = void 0;
- const r = n(5)
- , i = n(12)
- , o = n(34)
- , a = n(13)
- , s = n(15)
- , l = n(32)
- , u = n(42)
- , c = n(33)
- , d = n(44)
- , f = n(92)
- , h = n(62)
- , p = n(93)
- , g = n(41)
- , m = n(61)
- , v = n(36)
- , y = n(35)
- , b = n(43)
- , _ = "lyric-list";
- function w(e, t) {
- var n;
- t && (r.setBoxEnteringState(e, {
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: t.bounds.height
- }
- }],
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- durationMultiplier: 1.75,
- delayMultiplier: .75,
- easing: "easeInOutCubic",
- on: "postTransition",
- effect: "mutate",
- finalState: {
- boxes: [{
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: 0
- }
- }]
- }]
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- durationMultiplier: 2.5,
- delayMultiplier: .75,
- easing: "easeInOutCubic",
- on: "postTransition",
- effect: "mutate",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
- }]
- }
- }]))
- }
- t.isLyricListLayoutEligibleFor = function(e, {subtopics: t}) {
- return "list" === e && t.length > 1
- }
- ,
- t.layoutLyricListSlide = function(e, t, n={}) {
- var f, p;
- const {topic: w, subtopics: S, headerTopic: x} = t
- , k = null !== (f = null == n ? void 0 : n.dimension) && void 0 !== f ? f : l.defaultDimension
- , I = null !== (p = null == n ? void 0 : n.appearance) && void 0 !== p ? p : s.defaultAppearance;
- s.initializeSlideStyle(e, k, I, {
- layout: _
- });
- const C = s.calcLength(k.hSlidePadding, e)
- , M = s.calcLength(k.vSlidePadding, e)
- , T = {
- left: C,
- top: 0,
- right: C,
- bottom: 0
- }
- , A = e.width - C - C
- , E = s.calcLength(k.lyricListSlideParentTopicDefaultFontSize, e)
- , O = s.calcLength(k.hPaddingXSmall, e)
- , B = s.calcLength(k.vPaddingXSmall, e)
- , L = Math.round(s.calcLength(k.lyricListSlideSubtopicMaxFontSize, e))
- , P = Math.round(s.calcLength(k.lyricListSlideSubtopicMinFontSize, e))
- , R = s.calcLength(k.hPaddingXSmall, e)
- , z = s.calcLength(k.scrollFaderHeight, e)
- , j = s.calcLength(k.vPaddingSmall, e)
- , F = s.calcLength(k.lyricListSlideArrowWidth, e)
- , D = s.calcLength(k.lyricListSlideArrowHeight, e)
- , N = s.calcLength(k.lyricListSlideArrowCornerRadius, e)
- , U = function(e, t, n, r, i) {
- var a;
- const {fontSize: s, markerRightMargin: l, maxWidth: u, maxLineCount: c} = i;
- const f = null !== (a = e.markers) && void 0 !== a ? a : []
- , p = f.slice(0, n.maxMarkerCount)
- , g = h.computePlaceholder(e);
- function m(n) {
- return y.computeTopicTitleGroup(t, r, _, e.id, n, p, {
- maxWidth: u,
- fontSize: s,
- markerRightMargin: l,
- overflowWrap: "break-word",
- textRoles: ["title"],
- requestForHit: {
- kind: "fastBackward"
- },
- placeholder: g
- })
- }
- const w = v.computeTopicTitle(e);
- let S, x = w;
- if (x.length > 1) {
- const e = o.rangedIntegers(x.length, 1)
- , t = o.mapValues(e, e=>b.getTruncatedText(x, e))
- , n = o.mapValues(t, e=>({
- text: e,
- group: m(e)
- }))
- , r = o.findClosestMatch(n, ({group: e})=>function(e) {
- return e.textMeasurement.lineCount <= c
- }(e));
- r ? (x = r.text,
- S = r.group) : (x = b.getTruncatedText(x, 1),
- S = m(x))
- } else
- S = m(x);
- return Object.assign(Object.assign({}, S), {
- contentFeatures: d.computeContentFeaturesForTitleGroup(S, e.id, w, f)
- })
- }(w, e, k, I, {
- fontSize: E,
- markerRightMargin: O,
- maxWidth: A,
- maxLineCount: 1
- })
- , W = e.width
- , H = e.height - 2 * M - U.groupBox.bounds.height - B
- , V = H / 2
- , $ = function(e, t, n, l, c, f) {
- const {paddings: p, maxWidth: g, maxHeight: w, maxFontSize: S, minFontSize: x, preferredLineCount: k, maxLineCount: I, markerRightMargin: C, subtopicSpacing: M, scrollFaderSize: T, currentSubtopicOffset: A} = f;
- function E(e) {
- return e.textMeasurement.lineCount <= k
- }
- const O = t.map(e=>{
- var t;
- return {
- topicId: e.id,
- text: v.computeTopicTitle(e),
- markers: null !== (t = e.markers) && void 0 !== t ? t : [],
- placeholder: h.computePlaceholder(e)
- }
- }
- );
- function B(t) {
- let f = p.top
- , h = p.top
- , v = 0;
- const S = []
- , x = [];
- O.forEach(({topicId: e, text: k, markers: T, placeholder: B},L)=>{
- var P;
- const R = g - p.left - p.right
- , z = T.slice(0, l.maxMarkerCount);
- function j(l) {
- return function(e, t, n, l, c, d, f) {
- var h, p, g, v;
- const {maxWidth: b, fontSize: _, markerRightMargin: w, placeholder: S} = f
- , x = null !== (h = f.textRoles) && void 0 !== h ? h : []
- , k = null !== (p = f.markerRoles) && void 0 !== p ? p : []
- , I = null !== (g = f.imagePlaceholderRoles) && void 0 !== g ? g : []
- , C = null !== (v = f.groupRoles) && void 0 !== v ? v : []
- , M = d.length
- , T = _
- , A = _
- , E = _
- , O = _
- , B = (T + w) * M
- , L = {
- id: r.titleTextOfTopic(l),
- roles: [...x],
- bounds: a.zeroRect(),
- absBounds: a.zeroRect(),
- contentType: "text",
- text: c,
- fontSize: i.toCSSLength(_),
- textIndent: i.toCSSLength(B),
- lineHeight: m.computeTextLineHeight(_),
- fontWeight: "bold",
- opacity: 0
- };
- "textAlignment"in f ? L.textAlignment = f.textAlignment : M > 0 && (L.textAlignment = "leading");
- "overflowWrap"in f && (L.overflowWrap = f.overflowWrap);
- s.initializeBoxStyle(L, e, t, {
- layout: n
- });
- const P = u.measureText(L, {
- maxWidth: b
- });
- L.bounds.width = P.width,
- L.bounds.height = P.height,
- L.lineCount = P.lineCount;
- const R = {
- id: r.shadowTitleTextOfTopic(l),
- roles: [...x],
- bounds: a.zeroRect(),
- absBounds: a.zeroRect(),
- contentType: "text",
- text: c,
- fontSize: i.toCSSLength(_),
- textIndent: i.toCSSLength(B),
- lineHeight: m.computeTextLineHeight(_)
- };
- "textAlignment"in f ? R.textAlignment = f.textAlignment : M > 0 && (R.textAlignment = "leading");
- "overflowWrap"in f && (R.overflowWrap = f.overflowWrap);
- let z;
- s.initializeBoxStyle(R, e, t, {
- layout: n
- });
- const j = o.rangedIntegers(1, 20)
- , F = o.mapValues(j, e=>u.measureText(Object.assign({}, R, {
- letterSpacing: .005 * e + "em"
- }), {
- maxWidth: b
- }));
- let D;
- D = 1 === P.lineCount ? o.findClosestMatch(F, e=>e.width - P.width >= 0) : o.findClosestMatch(F, e=>e.lineCount === P.lineCount);
- D ? (z = D,
- R.letterSpacing = D.letterSpacing) : z = u.measureText(R, {
- maxWidth: b
- });
- const N = z.lineHeight;
- R.bounds.width = z.width,
- R.bounds.height = z.height,
- R.lineCount = z.lineCount;
- const U = []
- , W = N;
- let H, V, $, G = 0, Z = 0;
- for (let i = 0; i < M; i++) {
- const o = d[i]
- , u = {
- id: r.markerOfTopic(l, i),
- roles: ["marker", ...k],
- bounds: {
- x: Z,
- y: (W - A) / 2,
- width: T,
- height: A
- },
- absBounds: a.zeroRect(),
- contentType: "image",
- imageSource: o.imageSource
- };
- s.initializeBoxStyle(u, e, t, {
- layout: n
- }),
- Z += T + w,
- G > 0 && (G += w),
- G += T,
- U.push(u)
- }
- y.shouldShowPlaceholder(c.length > 0, M > 0) && "image" === S ? (V = N,
- $ = N,
- H = {
- id: r.imageOfTopic(l),
- roles: ["imagePlaceholder", ...I],
- bounds: {
- x: (V - E) / 2,
- y: ($ - O) / 2,
- width: E,
- height: O
- },
- absBounds: a.zeroRect(),
- contentType: "svg-template",
- svg: y.getPlaceholderImageSource(),
- fillColor: e.foregroundColor
- },
- s.initializeBoxStyle(H, e, t, {
- layout: n
- })) : (V = 0,
- $ = 0,
- H = null);
- const q = Math.max(Math.max(R.bounds.width, L.bounds.width), G, V)
- , Y = Math.max(Math.max(R.bounds.height, L.bounds.height), N, W, $)
- , X = {
- id: r.titleOfTopic(l),
- roles: [...C],
- bounds: {
- x: 0,
- y: 0,
- width: q,
- height: Y
- },
- absBounds: a.zeroRect(),
- contentType: "group",
- children: [R, L, ...U, ...H ? [H] : []],
- contentHeight: Y,
- overflow: "visible"
- };
- "requestForHit"in f && (X.requestForHit = f.requestForHit);
- return s.initializeBoxStyle(X, e, t, {
- layout: n
- }),
- {
- groupBox: X,
- textBox: R,
- markerImageBoxes: U,
- textMeasurement: P,
- imagePlaceholderBox: H,
- lineHeight: N
- }
- }(n, c, _, e, l, z, {
- maxWidth: R,
- fontSize: t,
- markerRightMargin: C,
- textRoles: ["subtopic"],
- requestForHit: {
- kind: "present",
- topicId: e,
- viaIntro: !0
- },
- placeholder: B
- })
- }
- let F = j(k);
- if (!function(e) {
- return e.textMeasurement.lineCount <= I
- }(F)) {
- const e = o.rangedIntegers(k.length - 1, 1)
- , t = o.mapValues(e, e=>b.getTruncatedText(k, e))
- , n = o.mapValues(t, e=>j(e));
- F = null !== (P = o.findClosestMatch(n, E)) && void 0 !== P ? P : j(b.getTruncatedText(k, 1))
- }
- 0 === L && (f = A - F.lineHeight / 2,
- h += f,
- v = f);
- const D = F.groupBox.bounds;
- D.x = p.left,
- D.y = f,
- f += D.height + M,
- L > 0 && L < O.length && (h += M),
- h += D.height,
- L === O.length - 1 && (h += w - A - (F.groupBox.bounds.height - F.lineHeight / 2)),
- h += p.bottom,
- S.push(F),
- x.push(...d.computeContentFeaturesForTitleGroup(F, e, k, T))
- }
- );
- const k = {
- id: r.subtopicListGroupOfTopic(e),
- roles: ["subtopicListGroup"],
- bounds: {
- x: 0,
- y: 0,
- width: g,
- height: Math.min(h, w)
- },
- absBounds: a.zeroRect(),
- contentType: "group",
- children: [...S.map(e=>e.groupBox)],
- contentHeight: h,
- overflow: h > w ? "scroll" : "hidden",
- scrollFaderSize: T,
- scrollOffset: v
- };
- return s.initializeBoxStyle(k, n, c, {
- layout: _
- }),
- {
- groupBox: k,
- subtopicGroups: S,
- contentFeatures: x
- }
- }
- let L, P;
- const R = o.rangedIntegers(S, x)
- , z = o.mapValues(R, e=>({
- fontSize: e,
- group: B(e)
- }))
- , j = o.findClosestMatch(z, ({group: e})=>function(e) {
- return e.groupBox.bounds.height <= w
- }(e));
- j ? (L = j.fontSize,
- P = j.group) : (L = S,
- P = B(L));
- return P
- }(w.id, S, e, k, I, {
- paddings: T,
- maxWidth: W,
- maxHeight: H,
- maxFontSize: L,
- minFontSize: P,
- markerRightMargin: R,
- preferredLineCount: 2,
- maxLineCount: 3,
- subtopicSpacing: j,
- scrollFaderSize: z,
- currentSubtopicOffset: V
- })
- , G = function(e, t, n, i) {
- const {arrowWidth: o, arrowHeight: l, arrowCornerRadius: u} = i
- , c = o * (1 - 2 * u / l)
- , d = `M 0 0 L ${c} ${l / 2 - u} C ${o - u} ${(l - u) / 2} ${o - u} ${(l + u) / 2} ${c} ${l / 2 + u} L 0 ${l} Z`
- , f = {
- id: r.arrowOfTopic(e),
- roles: ["arrow"],
- bounds: {
- x: 0,
- y: 0,
- width: o,
- height: l
- },
- absBounds: a.zeroRect(),
- contentType: "shape",
- shapePath: d
- };
- return s.initializeBoxStyle(f, t, n, {
- layout: _
- }),
- f
- }(w.id, e, I, {
- arrowWidth: F,
- arrowHeight: D,
- arrowCornerRadius: N
- });
- U.groupBox.bounds.x = C,
- U.groupBox.bounds.y = M,
- $.groupBox.bounds.x = 0,
- $.groupBox.bounds.y = U.groupBox.bounds.y + U.groupBox.bounds.height + B,
- G.bounds.x = 0,
- G.bounds.y = $.groupBox.bounds.y + ($.groupBox.bounds.height - D) / 2,
- e.boxes.push(U.groupBox),
- e.boxes.push($.groupBox),
- e.boxes.push(G),
- x && g.addHeaderBoxes(e, x, k, I, _),
- c.computeAbsoluteBounds(e.boxes),
- r.addSlideContentFeatures(e, ...U.contentFeatures, ...$.contentFeatures)
- }
- ,
- t.generateLyricListSlide = function(e, t, n={}) {
- var i;
- const {subtopics: o} = t
- , a = null !== (i = n.numberOfVisitedTopics) && void 0 !== i ? i : 0
- , s = Object.assign({}, e);
- o.forEach(({id: e},t)=>{
- t > a ? f.computePendingBoxStates(s, r.titleOfTopic(e)) : t < a && function(e, t) {
- e.boxes = r.mutateBoxes(e.boxes, e=>e.id !== t ? e : Object.assign(Object.assign({}, e), {
- opacity: .4
- }))
- }(s, r.titleOfTopic(e)),
- function(e, t, n) {
- e.boxes = r.mutateBoxes(e.boxes, e=>e.id === r.titleTextOfTopic(t) ? Object.assign(Object.assign({}, e), {
- opacity: n ? 0 : 1
- }) : e.id === r.shadowTitleTextOfTopic(t) ? Object.assign(Object.assign({}, e), {
- opacity: n ? 1 : 0
- }) : e)
- }(s, e, t !== a)
- }
- );
- const l = a
- , u = r.assertBox(r.getBoxById(s.boxes, r.subtopicListGroupOfTopic(s.topicId)));
- return p.computeSubtopicListScrollingStates(s, u.id, r.titleOfTopic(o[l].id), (e,t)=>{
- const n = r.assertBox(r.getBoxById(s.boxes, r.titleTextOfTopic(o[l].id)));
- return "lineCount"in n && n.lineCount ? n.bounds.height / n.lineCount / 2 - e.bounds.height / 2 : t.bounds.height / 2 - e.bounds.height / 2
- }
- ),
- function(e) {
- var t, n;
- if (null === (t = e.aliases) || void 0 === t ? void 0 : t.some(t=>"listOfTopic" === t.kind && t.topicId === e.topicId && 0 === t.index)) {
- e.subtopics.forEach(t=>{
- const n = r.assertBox(r.getBoxById(e.boxes, r.titleOfTopic(t)))
- , i = r.assertBox(r.getBoxById(e.boxes, r.shadowTitleTextOfTopic(t)));
- w(e, n),
- w(e, i)
- }
- );
- const t = r.assertBox(r.getBoxById(e.boxes, r.arrowOfTopic(e.topicId)));
- r.setBoxEnteringState(e, {
- id: t.id,
- opacity: 0
- }),
- r.addSlideEnteringAnimations(e, [{
- durationMultiplier: 2.5,
- delayMultiplier: .75,
- easing: "easeInOutCubic",
- on: "postTransition",
- effect: "mutate",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: null !== (n = t.opacity) && void 0 !== n ? n : 1
- }]
- }
- }])
- }
- }(s),
- s
- }
- },
- 255: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateTreeChartSlide = t.layoutTreeChartSlide = t.isTreeChartLayoutEligibleFor = void 0;
- const r = n(5)
- , i = n(13)
- , o = n(15)
- , a = n(34)
- , s = n(33)
- , l = n(43)
- , u = n(41)
- , c = n(36)
- , d = n(35)
- , f = n(44)
- , h = n(92)
- , p = n(93)
- , g = n(32)
- , m = n(62)
- , v = "tree-chart";
- function y(e) {
- const t = r.findBox(e.children, e=>"text" === e.contentType);
- return t && "lineCount"in t && t.lineCount ? t.bounds.height / t.lineCount / 2 : e.bounds.height / 2
- }
- t.isTreeChartLayoutEligibleFor = function(e, {subtopics: t}) {
- return "list" === e && t.length > 1
- }
- ,
- t.layoutTreeChartSlide = function(e, t, n={}) {
- var h, p;
- const {topic: b, subtopics: _, headerTopic: w} = t
- , S = null !== (h = null == n ? void 0 : n.dimension) && void 0 !== h ? h : g.defaultDimension
- , x = null !== (p = null == n ? void 0 : n.appearance) && void 0 !== p ? p : o.defaultAppearance;
- o.initializeSlideStyle(e, S, x, {
- layout: v
- });
- const k = o.calcLength(S.hSlidePadding, e)
- , I = o.calcLength(S.vSlidePadding, e)
- , C = e.width - k - k
- , M = C
- , T = Math.round(o.calcLength(S.treeChartSlideParentTopicMaxFontSize, e))
- , A = Math.round(o.calcLength(S.treeChartSlideParentTopicMinFontSize, e))
- , E = o.calcLength(S.hPaddingXSmall, e)
- , O = o.calcLength(S.vPaddingXSmall, e)
- , B = {
- left: 0,
- top: o.calcLength(S.vPaddingMedium, e),
- right: 0,
- bottom: I
- }
- , L = o.calcLength(S.vPaddingSmall, e)
- , P = Math.round(o.calcLength(S.treeChartSlideSubtopicMaxFontSize, e))
- , R = Math.round(o.calcLength(S.treeChartSlideSubtopicMinFontSize, e))
- , z = o.calcLength(S.hPaddingXSmall, e)
- , j = o.calcLength(S.scrollFaderHeight, e)
- , F = C / 6
- , D = o.calcLength(S.hPaddingSmall, e)
- , N = C / 12
- , U = o.calcLength(S.treeChartBranchStrokeWidth, e)
- , W = function(e, t, n, r, i) {
- var o;
- const {maxFontSize: s, minFontSize: u, markerRightMargin: h, maxWidth: p, maxLineCount: g, preferredLineCount: y} = i;
- function b(e) {
- return e.textMeasurement.width <= p
- }
- function _(e) {
- return e.textMeasurement.lineCount <= y
- }
- function w(e) {
- return e.textMeasurement.lineCount <= g
- }
- const S = null !== (o = e.markers) && void 0 !== o ? o : []
- , x = S.slice(0, n.maxMarkerCount)
- , k = m.computePlaceholder(e);
- function I(n, i, o) {
- return d.computeTopicTitleGroup(t, r, v, e.id, n, x, {
- maxWidth: p,
- fontSize: i,
- markerRightMargin: h,
- overflowWrap: o,
- textRoles: ["title"],
- requestForHit: {
- kind: "fastBackward"
- },
- placeholder: k
- })
- }
- const C = c.computeTopicTitle(e);
- let M = C
- , T = s
- , A = "normal"
- , E = I(M, T, A);
- if (b(E) && _(E))
- return Object.assign(Object.assign({}, E), {
- contentFeatures: f.computeContentFeaturesForTitleGroup(E, e.id, C, S)
- });
- if (T = u,
- E = I(M, T, A),
- b(E)) {
- if (_(E)) {
- const e = a.rangedIntegers(s, u)
- , t = a.mapValues(e, e=>({
- fontSize: e,
- group: I(M, e, A)
- }))
- , n = a.findClosestMatch(t, ({group: e})=>b(e) && _(e));
- if (!n)
- throw new Error("Unable to find the best font size for parent topic of brace list slide");
- T = n.fontSize,
- E = n.group
- }
- } else {
- A = "break-word";
- const e = a.rangedIntegers(s, u)
- , t = a.mapValues(e, e=>({
- fontSize: e,
- group: I(M, e, A)
- }))
- , n = a.findClosestMatch(t, ({group: e})=>_(e));
- n ? (T = n.fontSize,
- E = n.group) : (T = u,
- E = I(M, T, A))
- }
- if (!w(E)) {
- const e = a.rangedIntegers(M.length - 1, 1)
- , t = a.mapValues(e, e=>l.getTruncatedText(M, e))
- , n = a.mapValues(t, e=>({
- text: e,
- group: I(e, T, A)
- }))
- , r = a.findClosestMatch(n, ({group: e})=>w(e));
- r ? (M = r.text,
- E = r.group) : (M = l.getTruncatedText(M, 1),
- E = I(M, T, A))
- }
- return Object.assign(Object.assign({}, E), {
- contentFeatures: f.computeContentFeaturesForTitleGroup(E, e.id, C, S)
- })
- }(b, e, S, x, {
- maxFontSize: T,
- minFontSize: A,
- markerRightMargin: E,
- maxWidth: M,
- maxLineCount: 2,
- preferredLineCount: 1
- })
- , H = e.width - k - k
- , V = e.height - I - W.groupBox.bounds.height - O
- , $ = function(e, t, n, s, u, h) {
- const {paddings: p, maxWidth: g, maxHeight: b, maxFontSize: _, minFontSize: w, markerRightMargin: S, maxLineCount: x, scrollFaderSize: k, subtopicSpacing: I, treeBranchLeftMargin: C, treeBranchRightMargin: M, treeBranchWidth: T, treeBranchStrokeWidth: A} = h;
- function E(e) {
- return e.textMeasurement.lineCount <= x
- }
- const O = t.map(e=>{
- var t;
- return {
- topicId: e.id,
- text: c.computeTopicTitle(e),
- markers: null !== (t = e.markers) && void 0 !== t ? t : [],
- placeholder: m.computePlaceholder(e)
- }
- }
- );
- function B(t) {
- const c = []
- , h = []
- , m = [];
- let _ = p.top
- , w = p.top;
- O.forEach(({topicId: e, text: b, markers: x, placeholder: k})=>{
- var O;
- const B = g - C - M - T
- , L = x.slice(0, s.maxMarkerCount);
- function P(r) {
- return d.computeTopicTitleGroup(n, u, v, e, r, L, {
- maxWidth: B,
- fontSize: t,
- markerRightMargin: S,
- textRoles: ["subtopic"],
- requestForHit: {
- kind: "present",
- topicId: e,
- viaIntro: !0
- },
- placeholder: k
- })
- }
- const R = a.rangedIntegers(b.length, 1)
- , z = a.mapValues(R, e=>l.getTruncatedText(b, e))
- , j = a.mapValues(z, e=>P(e))
- , F = null !== (O = a.findClosestMatch(j, E)) && void 0 !== O ? O : P(l.getTruncatedText(b, 1))
- , D = F.groupBox.bounds;
- let N;
- if (D.x = C + M + T,
- D.y = _,
- _ += D.height + I,
- w > 0 && (w += I),
- w += D.height,
- c.length > 0) {
- const e = c[c.length - 1].groupBox;
- N = e.bounds.height - y(e) + T / 2 + I + y(F.groupBox) + A / 2
- } else
- N = p.top + y(F.groupBox) - A;
- const U = function(e, t, n, a, s, l, u, c={}) {
- var d;
- const f = null !== (d = c.additionalRoles) && void 0 !== d ? d : [];
- let h, p;
- if (u)
- h = `M ${l / 2}, ${l / 2} L ${l / 2}, ${s - a / 2 - l / 2} A ${a / 2} ${a / 2} 0 0 0 ${a / 2 + l / 2} ${s - l / 2} L ${a - l / 2}, ${s - l / 2}`;
- else {
- const e = Math.sqrt(Math.pow(a / 2 + l / 2, 2) - Math.pow(a / 2 - l / 2, 2));
- h = `M ${l / 2}, ${e} L ${l / 2}, ${s - a / 2 - l / 2} A ${a / 2} ${a / 2} 0 0 0 ${a / 2 + l / 2} ${s - l / 2} L ${a - l / 2}, ${s - l / 2}`;
- p = {
- size: {
- width: l,
- height: e
- },
- ref: {
- x: l / 2,
- y: e
- },
- path: `M 0, 0 L 0, ${e} L ${l}, ${e} A ${a / 2 + l / 2} ${a / 2 + l / 2} 0 0 1 0,0`
- }
- }
- const g = {
- id: r.treeBranchOfTopic(e),
- roles: ["treeBranch", ...f],
- bounds: {
- x: 0,
- y: 0,
- width: a,
- height: s
- },
- absBounds: i.zeroRect(),
- contentType: "shape",
- shapePath: h,
- markerStart: p
- };
- return o.initializeBoxStyle(g, t, n, {
- layout: v
- }),
- g
- }(e, n, u, T, N, A, 0 === c.length);
- U.bounds.x = C - A / 2,
- U.bounds.y = D.y + y(F.groupBox) + A / 2 - U.bounds.height,
- c.push(F),
- h.push(U),
- m.push(...f.computeContentFeaturesForTitleGroup(F, e, b, x))
- }
- ),
- w += p.bottom;
- const x = {
- id: r.subtopicListGroupOfTopic(e),
- roles: ["subtopicListGroup"],
- bounds: {
- x: 0,
- y: 0,
- width: g,
- height: Math.min(w, b)
- },
- absBounds: i.zeroRect(),
- contentType: "group",
- children: [...c.map(e=>e.groupBox), ...h],
- contentHeight: w,
- overflow: w > b ? "scroll" : "hidden",
- scrollFaderSize: k
- };
- return o.initializeBoxStyle(x, n, u, {
- layout: v
- }),
- {
- groupBox: x,
- subtopicGroups: c,
- treeBranchShapes: h,
- contentFeatures: m
- }
- }
- let L, P;
- const R = a.rangedIntegers(_, w)
- , z = a.mapValues(R, e=>({
- fontSize: e,
- group: B(e)
- }))
- , j = a.findClosestMatch(z, ({group: e})=>function(e) {
- return e.groupBox.contentHeight <= b
- }(e));
- j ? (L = j.fontSize,
- P = j.group) : (L = _,
- P = B(L));
- return P
- }(b.id, _, e, S, x, {
- paddings: B,
- maxWidth: H,
- maxHeight: V,
- maxFontSize: P,
- minFontSize: R,
- markerRightMargin: z,
- maxLineCount: 2,
- scrollFaderSize: j,
- subtopicSpacing: L,
- treeBranchLeftMargin: F,
- treeBranchRightMargin: D,
- treeBranchWidth: N,
- treeBranchStrokeWidth: U
- });
- W.groupBox.bounds.x = k,
- W.groupBox.bounds.y = I,
- $.groupBox.bounds.x = k,
- $.groupBox.bounds.y = W.groupBox.bounds.y + W.groupBox.bounds.height + O,
- e.boxes.push(W.groupBox),
- e.boxes.push($.groupBox),
- w && u.addHeaderBoxes(e, w, S, x, v),
- s.computeAbsoluteBounds(e.boxes),
- r.addSlideContentFeatures(e, ...W.contentFeatures, ...$.contentFeatures)
- }
- ,
- t.generateTreeChartSlide = function(e, t, n={}) {
- var i;
- const {subtopics: o} = t
- , a = null !== (i = n.numberOfVisitedTopics) && void 0 !== i ? i : 0
- , s = Object.assign({}, e);
- o.forEach(({id: e},t)=>{
- var n;
- (t > a || (null === (n = s.aliases) || void 0 === n ? void 0 : n.some(e=>"listOfTopic" === e.kind && e.topicId === s.topicId && 0 === e.index))) && (h.computePendingBoxStates(s, r.titleOfTopic(e)),
- h.computePendingBoxStates(s, r.treeBranchOfTopic(e)))
- }
- );
- const l = a
- , u = r.assertBox(r.getBoxById(s.boxes, r.subtopicListGroupOfTopic(s.topicId)))
- , c = r.assertBox(r.getBoxById(s.boxes, r.titleOfTopic(o[o.length - 1].id)))
- , d = u.contentHeight - c.bounds.y - c.bounds.height;
- if (p.computeSubtopicListScrollingStates(s, u.id, r.titleOfTopic(o[l].id), (e,t)=>t.bounds.height - e.bounds.height + d),
- a < o.length) {
- const e = o[a].id
- , t = r.assertBox(r.getBoxById(s.boxes, r.titleOfTopic(e)))
- , n = r.assertBox(r.getBoxById(s.boxes, r.treeBranchOfTopic(e)));
- !function(e, {titleBox: t, treeBranchShape: n}) {
- const i = -(t.bounds.x - n.bounds.x - n.bounds.width);
- e.autoForwarding || (r.addSlideAdditionalEnteringStates(e, [{
- state: {
- boxes: [{
- id: n.id,
- strokeOffset: 1,
- opacity: 0
- }, {
- id: t.id,
- opacity: 0,
- transform: [{
- translate: {
- x: i,
- y: 0
- }
- }]
- }]
- },
- when: {
- request: "forward",
- sourceSlideType: e.type,
- sourceSlideTopicId: e.topicId
- }
- }]),
- r.addSlideEnteringAnimations(e, [{
- on: "postTransition",
- durationMultiplier: 1.5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: n.id,
- strokeOffset: 0
- }]
- },
- when: {
- request: "forward",
- sourceSlideType: e.type,
- sourceSlideTopicId: e.topicId
- }
- }, {
- on: "postTransition",
- durationMultiplier: 1.5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: n.id,
- opacity: 1
- }]
- },
- when: {
- request: "forward",
- sourceSlideType: e.type,
- sourceSlideTopicId: e.topicId
- }
- }, {
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: 1.5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: t.id,
- opacity: 1
- }]
- },
- when: {
- request: "forward",
- sourceSlideType: e.type,
- sourceSlideTopicId: e.topicId
- }
- }, {
- on: "postTransition",
- durationMultiplier: 1,
- delayMultiplier: 1.5,
- effect: "mutate",
- easing: "easeOutQuad",
- finalState: {
- boxes: [{
- id: t.id,
- transform: [{
- translate: {
- x: 0,
- y: 0
- }
- }]
- }]
- },
- when: {
- request: "forward",
- sourceSlideType: e.type,
- sourceSlideTopicId: e.topicId
- }
- }]))
- }(s, {
- titleBox: t,
- treeBranchShape: n
- })
- }
- return s
- }
- },
- 256: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.Slideshow = void 0;
- const i = n(157)
- , o = n(156)
- , a = n(257)
- , s = n(258)
- , l = n(259)
- , u = n(260)
- , c = n(261)
- , d = n(167)
- , f = n(109);
- t.Slideshow = class {
- constructor(e) {
- var t, n;
- this._disablesAnimations = !1,
- this._contentCache = new Map,
- this._templateSlides = new Map,
- this._slideStore = new a.SlideStore,
- this._presenters = [],
- this._currentSlide = null,
- this._isPerformingTransition = !1,
- this._isPerformingEndingScreenTransition = !1,
- this._slideBeforeEndingScreen = null,
- this._numberOfPendingTransitionRequests = 0,
- this._isHandlingTransitionRequest = !1,
- this._slideState = {},
- this.eventCallbacks = new Map,
- this.baseDuration = 400,
- this.restoreSlideDurationMultiplier = 1,
- this.inSlideAnimationDurationMultiplier = 1,
- this.presentEndingScreenDurationMultiplier = 2.5,
- this.dismissEndingScreenDurationMultiplier = 1,
- this._slideSize = null !== (t = "string" == typeof e.slideSize ? i.slideSizes[e.slideSize] : e.slideSize) && void 0 !== t ? t : i.slideSize_16_9,
- this._contentProvider = "contentProvider"in e ? e.contentProvider : e,
- this._slideAppearanceId = null !== (n = e.slideTheme) && void 0 !== n ? n : "default",
- this._enqueueAsyncJob = c.makeAsyncQueue()
- }
- get slideSize() {
- return this._slideSize
- }
- get slideAppearanceId() {
- return this._slideAppearanceId
- }
- get contentProvider() {
- return this._contentProvider
- }
- get currentSlide() {
- return this._currentSlide
- }
- get currentTopicId() {
- var e, t;
- return null !== (t = null === (e = this._currentSlide) || void 0 === e ? void 0 : e.topicId) && void 0 !== t ? t : null
- }
- get isPerformingTransition() {
- return this._isPerformingTransition || this._isPerformingEndingScreenTransition
- }
- get slideState() {
- return this._slideState
- }
- get isShowingEndingScreen() {
- return null !== this._slideBeforeEndingScreen
- }
- get isShowingNothing() {
- return null === this._currentSlide && !this.isShowingEndingScreen
- }
- getTransition(e, t) {
- return l.computeTransition(this, e, this.baseDuration, t, {
- disablesAnimations: this._disablesAnimations
- })
- }
- getStartingSlide(e) {
- const t = null != e ? e : this._contentProvider.getStartingTopicId();
- return t ? this.getSlideByAlias({
- kind: "startOfTopic",
- topicId: t
- }) : null
- }
- getSlideContent(e) {
- const t = e
- , n = this._contentCache.get(t);
- if (void 0 !== n)
- return n;
- const r = f.computeSlideContent(e, this._contentProvider);
- return this._contentCache.set(t, r),
- r
- }
- getTemplateSlide(e, t) {
- var n;
- const r = `${e}:${t}`;
- let i = null !== (n = this._templateSlides.get(r)) && void 0 !== n ? n : null;
- if (!i) {
- const n = this.getSlideContent(t);
- n && (i = s.generateTemplateSlideFor(e, n, {
- slideSize: this.slideSize,
- appearanceId: this.slideAppearanceId
- }),
- i && this._templateSlides.set(r, i))
- }
- return i
- }
- getSlideByAlias(e) {
- var t;
- let n = this._slideStore.getSlide(e);
- if (!n) {
- const r = s.getTopicIdForGeneratingSlideByAlias(e, this._contentProvider);
- if (r) {
- const i = this.getSlideContent(r);
- if (i) {
- const o = s.generatePresentationalSlidesFor(i, (e,t)=>this.getTemplateSlide(e, t));
- for (const e of o)
- for (const n of null !== (t = e.aliases) && void 0 !== t ? t : [])
- this._slideStore.setSlide(n, e),
- this._slideStore.addSlideGeneratedForTopic(r, n);
- n = this._slideStore.getSlide(e)
- }
- }
- }
- return n
- }
- isSlideSkipped(e) {
- return "skip" === u.computeSlideVisibility(e, this)
- }
- present(e) {
- return r(this, void 0, void 0, (function*() {
- return yield this._enqueueTransitionRequest({
- kind: "present",
- topicId: e
- })
- }
- ))
- }
- forward() {
- return r(this, void 0, void 0, (function*() {
- return yield this._enqueueTransitionRequest({
- kind: "forward"
- })
- }
- ))
- }
- backward() {
- return r(this, void 0, void 0, (function*() {
- return yield this._enqueueTransitionRequest({
- kind: "backward"
- })
- }
- ))
- }
- fastBackward() {
- return r(this, void 0, void 0, (function*() {
- return yield this._enqueueTransitionRequest({
- kind: "fastBackward"
- })
- }
- ))
- }
- fastForward() {
- return r(this, void 0, void 0, (function*() {
- return yield this._enqueueTransitionRequest({
- kind: "fastForward"
- })
- }
- ))
- }
- changeSlideSize(e) {
- return r(this, void 0, void 0, (function*() {
- return yield this._enqueueTransitionRequest({
- kind: "changeSlideSize",
- slideSize: e
- })
- }
- ))
- }
- changeSlideTheme(e) {
- return r(this, void 0, void 0, (function*() {
- return yield this._enqueueTransitionRequest({
- kind: "changeAppearance",
- appearanceId: e
- })
- }
- ))
- }
- get disablesAnimations() {
- return this._disablesAnimations
- }
- set disablesAnimations(e) {
- this._disablesAnimations = e,
- this._preloadNextSlideTransition()
- }
- addPresenter(e) {
- this._presenters = [...this._presenters, e],
- e.delegate = this
- }
- removePresenter(e) {
- delete e.delegate,
- this._presenters = this._presenters.filter(t=>t !== e)
- }
- presenterDidReceivePointerInteraction(e, t) {
- switch (t.kind) {
- case "hit":
- return this._handleHitInteraction(t);
- case "scroll":
- return this._handleScrollInteraction(t);
- case "activate":
- case "deactivate":
- return this._handleActivationInteraction(t)
- }
- }
- _handleHitInteraction(e) {
- if (this._isHandlingTransitionRequest)
- return;
- const t = this.currentSlide;
- if (e.boxId && t && "presenterPerspective" === this.mode) {
- const n = o.findBox(t.boxes, t=>t.id === e.boxId);
- if (n && n.requestForHit)
- return void this._enqueueTransitionRequest(n.requestForHit)
- }
- this._enqueueTransitionRequest({
- kind: "forward"
- })
- }
- _handleScrollInteraction(e) {
- if (this._isHandlingTransitionRequest)
- return;
- if (!this._currentSlide)
- return;
- const {boxId: t, scrollOffset: n} = e;
- this._changeState([e=>i.mergeSlideState(e, {
- boxes: [{
- id: t,
- scrollOffset: n
- }]
- }), this._setMode("presenterPerspective"), this._updatePresenterPerspectiveState()])
- }
- _handleActivationInteraction(e) {
- "activate" === e.kind ? this.mode = "presenterPerspective" : "deactivate" === e.kind && (this.mode = "presentation")
- }
- _changeState(e, t=0) {
- return r(this, void 0, void 0, (function*() {
- const n = this._disablesAnimations ? 0 : this.baseDuration * t;
- this.emit({
- type: "stateWillChange",
- slideshow: this
- }),
- this._slideState = e.reduce((e,t)=>t(e), this._slideState),
- yield Promise.all(this._presenters.map(e=>e.performStateChange(this._slideState, {
- duration: n,
- easing: "easeInOutCubic"
- }))),
- this.emit({
- type: "stateDidChange",
- slideshow: this
- })
- }
- ))
- }
- get mode() {
- var e;
- return null !== (e = this._slideState.mode) && void 0 !== e ? e : "presentation"
- }
- set mode(e) {
- this._enqueueAsyncJob(()=>this._changeState([this._setMode(e), this._updatePresenterPerspectiveState()]))
- }
- _setMode(e) {
- return t=>i.mergeSlideState(t, {
- mode: e
- })
- }
- _updatePresenterPerspectiveState() {
- const e = this._currentSlide;
- return t=>i.mergeSlideState(t, "presenterPerspective" === t.mode ? null == e ? void 0 : e.presenterPerspectiveStates : null == e ? void 0 : e.revertedPresenterPerspectiveStates)
- }
- _enqueueTransitionRequest(e) {
- return this._numberOfPendingTransitionRequests >= 1 ? Promise.resolve({
- ignored: !0
- }) : (this._numberOfPendingTransitionRequests += 1,
- new Promise((t,n)=>{
- this._enqueueAsyncJob(()=>(this._isHandlingTransitionRequest = !0,
- this._numberOfPendingTransitionRequests -= 1,
- this.emit({
- type: "transitionStart",
- request: e,
- slideshow: this
- }),
- this._handleTransitionRequest(e).then(()=>{
- t({})
- }
- ).catch(e=>{
- n(e)
- }
- ).then(()=>{
- this.emit({
- type: "transitionEnd",
- request: e,
- slideshow: this
- }),
- this._isHandlingTransitionRequest = !1,
- this._preloadNextSlideTransition(),
- this.isShowingNothing && this.emit({
- type: "finish",
- slideshow: this
- })
- }
- )))
- }
- ))
- }
- _handleTransitionRequest(e) {
- return r(this, void 0, void 0, (function*() {
- if ("changeSlideSize" === e.kind)
- return void (yield this._handleChangeSlideSizeRequest(e.slideSize));
- if ("changeAppearance" === e.kind)
- return void (yield this._handleChangeAppearanceRequest(e.appearanceId));
- if (this.isShowingEndingScreen)
- return void (yield this._handleTransitionRequestFromEndingScreen(e));
- if (yield this._tryPerformInSlideAnimations(e))
- return;
- let t = e;
- for (; t; )
- t = yield this._performSlideTransitionByRequest(t, {
- isAutomaticallyRequested: t !== e
- })
- }
- ))
- }
- _performSlideTransitionByRequest(e, t={}) {
- var n, i, o, a, s;
- return r(this, void 0, void 0, (function*() {
- const r = this._currentSlide
- , l = this.getTransition(e, r);
- return l && l.sourceSlide !== l.targetSlide ? (t.isAutomaticallyRequested || (yield this._changeState([this._setMode("presentation")], this.restoreSlideDurationMultiplier)),
- yield Promise.all([this._performTransition(l), l.targetSlide ? Promise.resolve() : this._presentEndingScreen(r, {
- duration: this.baseDuration * this.presentEndingScreenDurationMultiplier
- })]),
- t.isAutomaticallyRequested || (yield this._changeState([()=>({})], this.restoreSlideDurationMultiplier)),
- null !== (i = null === (n = l.targetSlide) || void 0 === n ? void 0 : n.autoForwarding) && void 0 !== i && i && "backward" !== e.kind && "fastBackward" !== e.kind ? {
- kind: "forward"
- } : null === (a = null === (o = l.targetSlide) || void 0 === o ? void 0 : o.autoBackwarding) || void 0 === a || !a || "backward" !== e.kind && "fastBackward" !== e.kind ? "present" === e.kind && e.viaIntro && l.targetSlide && !(null === (s = l.targetSlide.aliases) || void 0 === s ? void 0 : s.some(t=>"startOfTopic" === t.kind && t.topicId === e.topicId)) ? {
- kind: "present",
- topicId: e.topicId
- } : null : {
- kind: "backward"
- }) : null
- }
- ))
- }
- _handleChangeSlideSizeRequest(e) {
- return r(this, void 0, void 0, (function*() {
- e !== this._slideSize && (yield this._changeSlideAppearanceOrDimension(()=>{
- this._slideSize = e
- }
- ))
- }
- ))
- }
- _handleChangeAppearanceRequest(e) {
- return r(this, void 0, void 0, (function*() {
- e !== this._slideAppearanceId && (yield this._changeSlideAppearanceOrDimension(()=>{
- this._slideAppearanceId = e
- }
- ))
- }
- ))
- }
- _changeSlideAppearanceOrDimension(e) {
- return r(this, void 0, void 0, (function*() {
- const t = this._currentSlide;
- if (!t)
- return;
- if (!t.aliases || 0 === t.aliases.length)
- return;
- const n = t.aliases[0];
- this._templateSlides.clear(),
- this._slideStore.clear(),
- e();
- const r = this.getSlideByAlias(n);
- if (!r)
- throw new Error("Failed to find the target slide after changing slide theme.");
- const i = this.mode;
- "presenterPerspective" === i && (yield this._changeState([this._setMode("presentation")])),
- yield this._performTransition({
- effect: "dissolve",
- duration: this.baseDuration,
- baseDuration: this.baseDuration,
- sourceSlide: t,
- targetSlide: r
- }),
- "presenterPerspective" === i && (yield this._changeState([this._setMode("presenterPerspective"), this._updatePresenterPerspectiveState()]))
- }
- ))
- }
- _preloadNextSlideTransition() {
- if (null === this._currentSlide)
- return;
- const e = this.getTransition({
- kind: "forward"
- }, this._currentSlide);
- if (e && e.sourceSlide !== e.targetSlide)
- for (const t of this._presenters)
- t.preloadTransition && t.preloadTransition(e)
- }
- _handleTransitionRequestFromEndingScreen(e) {
- return r(this, void 0, void 0, (function*() {
- if ("forward" === e.kind)
- yield this._dismissEndingScreen({
- animated: !0,
- duration: this.baseDuration * this.dismissEndingScreenDurationMultiplier
- });
- else if ("backward" === e.kind) {
- const e = this._slideBeforeEndingScreen;
- yield this._dismissEndingScreen({
- animated: !1,
- duration: 0
- }),
- yield this._performTransition({
- effect: "none",
- duration: 0,
- baseDuration: this.baseDuration,
- sourceSlide: null,
- targetSlide: e
- })
- }
- }
- ))
- }
- _tryPerformInSlideAnimations(e) {
- return r(this, void 0, void 0, (function*() {
- const t = this._currentSlide;
- if (!t)
- return !1;
- const n = d.computeMultistepChange(e, t, this._slideState);
- return !(!n || 0 === Object.keys(n).length) && (yield this._changeState([e=>i.mergeSlideState(e, n), this._setMode("presentation"), this._updatePresenterPerspectiveState()], this.inSlideAnimationDurationMultiplier),
- !0)
- }
- ))
- }
- _performTransition(e) {
- return r(this, void 0, void 0, (function*() {
- this._isPerformingTransition = !0,
- yield Promise.all(this._presenters.map(t=>t.performTransition(e))),
- this._isPerformingTransition = !1,
- this._currentSlide = e.targetSlide
- }
- ))
- }
- _presentEndingScreen(e, t) {
- return r(this, void 0, void 0, (function*() {
- const n = this._presenters.filter(e=>"presentEndingScreen"in e);
- if (n.length <= 0)
- return;
- if (!this._contentProvider.getEndingScreenContent)
- return;
- const r = yield this._contentProvider.getEndingScreenContent();
- r && (this._slideBeforeEndingScreen = e,
- this._isPerformingEndingScreenTransition = !0,
- yield Promise.all(n.map(e=>e.presentEndingScreen(r, this.slideSize, t))),
- this._isPerformingEndingScreenTransition = !1)
- }
- ))
- }
- _dismissEndingScreen(e) {
- return r(this, void 0, void 0, (function*() {
- this._presenters.filter(e=>"presentEndingScreen"in e).length <= 0 || (this._isPerformingEndingScreenTransition = !0,
- yield Promise.all(this._presenters.filter(e=>"dismissEndingScreen"in e).map(t=>t.dismissEndingScreen(e))),
- this._isPerformingEndingScreenTransition = !1),
- this._slideBeforeEndingScreen = null
- }
- ))
- }
- on(e, t) {
- var n;
- const r = null !== (n = this.eventCallbacks.get(e)) && void 0 !== n ? n : [];
- this.eventCallbacks.set(e, [...r, t])
- }
- off(e, t) {
- var n;
- let r = null !== (n = this.eventCallbacks.get(e)) && void 0 !== n ? n : [];
- r = r.filter(e=>e !== t),
- this.eventCallbacks.set(e, r)
- }
- emit(e) {
- const t = this.eventCallbacks.get(e.type);
- if (t)
- for (const n of t)
- n(e)
- }
- }
- },
- 257: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.hash = t.SlideStore = void 0;
- function r(e) {
- var t;
- return `${e.kind}:${null !== (t = e.index) && void 0 !== t ? t : "x"}:${e.topicId}`
- }
- t.SlideStore = class {
- constructor() {
- this._slides = new Map,
- this._slideGenerations = new Map
- }
- getSlide(e) {
- var t;
- return null !== (t = this._slides.get(r(e))) && void 0 !== t ? t : null
- }
- setSlide(e, t) {
- this._slides.set(r(e), t)
- }
- hasSlidesGeneratedForTopic(e) {
- return this._slideGenerations.has(e)
- }
- getSlidesGeneratedForTopic(e) {
- var t, n;
- return null !== (n = null === (t = this._slideGenerations.get(e)) || void 0 === t ? void 0 : t.slides) && void 0 !== n ? n : []
- }
- addSlideGeneratedForTopic(e, t) {
- var n;
- const r = null !== (n = this._slideGenerations.get(e)) && void 0 !== n ? n : {
- slides: []
- };
- r.slides.push(t),
- this._slideGenerations.set(e, r)
- }
- clear() {
- this._slides = new Map,
- this._slideGenerations = new Map
- }
- }
- ,
- t.hash = r
- },
- 258: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.generateSlideFromDescriptor = t.generatePresentationalSlidesFor = t.getTopicIdForGeneratingSlideByAlias = t.generateTemplateSlideFor = void 0;
- const r = n(5)
- , i = n(159)
- , o = n(15)
- , a = n(166)
- , s = n(42)
- , l = n(158)
- , u = n(109);
- function c(e, t, n, o, a) {
- var s, l;
- if (!e.type || !e.alias)
- return null;
- const {alias: u, type: c, layoutOptions: d, autoForwarding: f, autoBackwarding: h} = e
- , {topic: {id: p}} = o
- , g = a(c, p);
- if (!g)
- throw new Error(`Unable to obtain template slide for type "${c}" and topicId "${p}"`);
- let m = Object.assign(Object.assign({}, g), {
- aliases: [...null !== (s = g.aliases) && void 0 !== s ? s : []]
- });
- return r.addSlideAliases(m, u),
- (null == t ? void 0 : t.alias) && (m.previousSlide = t.alias),
- (null == n ? void 0 : n.alias) && (m.nextSlide = n.alias),
- (null == t ? void 0 : t.nextSlide) && r.addSlideAliases(m, t.nextSlide),
- (null == n ? void 0 : n.previousSlide) && r.addSlideAliases(m, n.previousSlide),
- (null == n ? void 0 : n.previousSlide2) && r.addSlideAliases(m, n.previousSlide2),
- void 0 !== f && (m.autoForwarding = f),
- void 0 !== h && (m.autoBackwarding = h),
- m.layout in i.layoutEngines && (m = null !== (l = i.layoutEngines[m.layout].generatePresentationalSlide(m, o, d)) && void 0 !== l ? l : m),
- m
- }
- t.generateTemplateSlideFor = function(e, t, n={}) {
- var a, u, c, d;
- const f = o.appearanceOf(null !== (a = n.appearanceId) && void 0 !== a ? a : "default")
- , h = null !== (u = n.slideSize) && void 0 !== u ? u : r.slideSize_16_9
- , p = o.dimensionOf(h)
- , {topic: {id: g}, parentTopicId: m, topicLevel: v} = t
- , y = l.computeSlideLayout(e, h, t)
- , b = {
- type: e,
- layout: y,
- topicId: g,
- parentTopicId: m,
- subtopics: t.subtopics.map(e=>e.id),
- headerTopicId: null === (c = t.headerTopic) || void 0 === c ? void 0 : c.id,
- calloutTopicId: null === (d = t.calloutTopic) || void 0 === d ? void 0 : d.id,
- topicLevel: v,
- boxes: [],
- width: h.width,
- height: h.height
- };
- return y && y in i.layoutEngines && i.layoutEngines[y].layoutTemplateSlide(b, t, {
- dimension: p,
- appearance: f
- }),
- s.disposeTextMeasurementHelpers(),
- b
- }
- ,
- t.getTopicIdForGeneratingSlideByAlias = function(e, t) {
- var n, r;
- if ("introOfSummary" === e.kind || "outroOfSummary" === e.kind)
- return t.getParentTopicId(e.topicId);
- if ("introOfTopic" === e.kind || "outroOfTopic" === e.kind) {
- const i = t.getParentTopicId(e.topicId);
- if (!i || (null === (r = null === (n = t.getFloatingTopics) || void 0 === n ? void 0 : n.call(t)) || void 0 === r ? void 0 : r.includes(e.topicId))) {
- const n = u.computeRootTopics(t)
- , {previousSiblingTopicId: r, nextSiblingTopicId: i} = u.computeSiblingTopics(e.topicId, n);
- return "introOfTopic" === e.kind ? r : i
- }
- return i
- }
- return e.topicId
- }
- ,
- t.generatePresentationalSlidesFor = function(e, t) {
- var n, r;
- const i = a.describeSlideSequenceForTopic(e)
- , o = [];
- for (let a = 0; a < i.length; a++) {
- const s = c(i[a], null !== (n = i[a - 1]) && void 0 !== n ? n : null, null !== (r = i[a + 1]) && void 0 !== r ? r : null, e, t);
- s && o.push(s)
- }
- return o
- }
- ,
- t.generateSlideFromDescriptor = c
- },
- 259: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeTransitionEffect = t.doComputeTransition = t.findNonSkippedSlide = t.findTargetSlideForFastForwardTransition = t.findTargetSlideForFastBackwardTransition = t.findTargetSlideForPresentTransition = t.findTargetSlideForBackwardTransition = t.findTargetSlideForForwardTransition = t.computeTransition = void 0;
- const r = n(5);
- function i(e, t) {
- if (!t)
- return e.getStartingSlide();
- const n = t.nextSlide ? e.getSlideByAlias(t.nextSlide) : null;
- return u(e, n, e=>e.nextSlide)
- }
- function o(e, t) {
- var n;
- if (!t)
- return null;
- const r = t.previousSlide ? e.getSlideByAlias(t.previousSlide) : null;
- return null !== (n = u(e, r, e=>e.previousSlide)) && void 0 !== n ? n : t
- }
- function a(e, t, n, r) {
- var i;
- let o = null;
- return n && r && (o = e.getSlideByAlias({
- kind: "introOfTopic",
- topicId: n
- }),
- o === t && (o = null)),
- null !== (i = null != o ? o : e.getStartingSlide(n)) && void 0 !== i ? i : t
- }
- function s(e, t, n) {
- var r;
- const i = null != n ? n : null == t ? void 0 : t.topicId;
- if (!i)
- return null;
- const o = null !== (r = e.getSlideByAlias("summary" === (null == t ? void 0 : t.type) ? {
- kind: "introOfSummary",
- topicId: i
- } : {
- kind: "introOfTopic",
- topicId: i
- })) && void 0 !== r ? r : e.getSlideByAlias({
- kind: "startOfTopic",
- topicId: i
- });
- return null != o ? o : t
- }
- function l(e, t, n) {
- var r;
- const i = null != n ? n : null == t ? void 0 : t.topicId;
- if (!i)
- return null;
- const o = null !== (r = e.getSlideByAlias("summary" === (null == t ? void 0 : t.type) ? {
- kind: "outroOfSummary",
- topicId: i
- } : {
- kind: "outroOfTopic",
- topicId: i
- })) && void 0 !== r ? r : e.getSlideByAlias({
- kind: "endOfTopic",
- topicId: i
- });
- return null != o ? o : t
- }
- function u(e, t, n) {
- for (; t && e.isSlideSkipped(t); ) {
- const r = n(t);
- t = r ? e.getSlideByAlias(r) : null
- }
- return t
- }
- function c(e, t, n, i, o={}) {
- var a, s;
- if (n === i)
- return null;
- const l = o.disablesEffect ? {
- effect: "none",
- duration: 0
- } : f(t, n, i)
- , u = Object.assign(Object.assign({}, l), {
- baseDuration: t,
- sourceSlide: n,
- targetSlide: i
- });
- return !o.disablesSourceSlideAnimations && n && (u.sourceSlideAnimations = n.leavingAnimations),
- !o.disablesTargetSlideAnimations && i && (u.targetSlideEnteringState = i.enteringStates,
- null === (a = i.additionalEnteringStates) || void 0 === a || a.forEach(t=>{
- d(e, n, t.when) && (u.targetSlideEnteringState = r.mergeSlideState(u.targetSlideEnteringState, t.state))
- }
- ),
- null === (s = i.enteringAnimations) || void 0 === s || s.forEach(t=>{
- d(e, n, t.when) && (u.targetSlideAnimations || (u.targetSlideAnimations = []),
- u.targetSlideAnimations.push(t))
- }
- )),
- u
- }
- function d(e, t, n) {
- return !n || (!n.request || n.request === e.kind) && ((!n.sourceSlideType || n.sourceSlideType === (null == t ? void 0 : t.type)) && (!n.sourceSlideTopicId || n.sourceSlideTopicId === (null == t ? void 0 : t.topicId)))
- }
- function f(e, t, n) {
- return "topic" !== (null == n ? void 0 : n.type) || "centralTopic" != (null == n ? void 0 : n.topicLevel) && "floatingTopic" != (null == n ? void 0 : n.topicLevel) ? t && n ? t.topicId === n.topicId ? "list" === t.type && "topic" === n.type ? {
- effect: "magicMove",
- duration: 2.5 * e
- } : t.type === n.type ? {
- effect: "animateInSlide",
- duration: 1.5 * e
- } : {
- effect: "magicMove",
- duration: 2.5 * e
- } : (t.topicId === n.parentTopicId || (n.topicId,
- t.parentTopicId),
- {
- effect: "magicMove",
- duration: 2.5 * e
- }) : {
- effect: "dissolve",
- duration: e
- } : {
- effect: "dissolve",
- duration: 1.5 * e
- }
- }
- t.computeTransition = function(e, t, n, r, u={}) {
- switch (t.kind) {
- case "present":
- return c(t, n, r, a(e, r, t.topicId, t.viaIntro), {
- disablesEffect: u.disablesAnimations,
- disablesSourceSlideAnimations: u.disablesAnimations,
- disablesTargetSlideAnimations: !!t.viaIntro || u.disablesAnimations
- });
- case "forward":
- return c(t, n, r, i(e, r), {
- disablesEffect: u.disablesAnimations,
- disablesSourceSlideAnimations: u.disablesAnimations,
- disablesTargetSlideAnimations: u.disablesAnimations
- });
- case "backward":
- return c(t, n, r, o(e, r), {
- disablesEffect: !0,
- disablesSourceSlideAnimations: !0,
- disablesTargetSlideAnimations: !0
- });
- case "fastBackward":
- return c(t, n, r, s(e, r, t.topicId), {
- disablesEffect: u.disablesAnimations,
- disablesSourceSlideAnimations: !0,
- disablesTargetSlideAnimations: !0
- });
- case "fastForward":
- return c(t, n, r, l(e, r, t.topicId), {
- disablesEffect: u.disablesAnimations,
- disablesSourceSlideAnimations: u.disablesAnimations,
- disablesTargetSlideAnimations: u.disablesAnimations
- });
- case "changeAppearance":
- case "changeSlideSize":
- return null
- }
- }
- ,
- t.findTargetSlideForForwardTransition = i,
- t.findTargetSlideForBackwardTransition = o,
- t.findTargetSlideForPresentTransition = a,
- t.findTargetSlideForFastBackwardTransition = s,
- t.findTargetSlideForFastForwardTransition = l,
- t.findNonSkippedSlide = u,
- t.doComputeTransition = c,
- t.computeTransitionEffect = f
- },
- 260: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeUserSlideVisibility = t.computeDefaultSummarySlideVisibility = t.computeExitListSlideVisibility = t.computeDefaultListSlideVisibility = t.computeDefaultTopicSlideVisibilityByContent = t.computeDefaultTopicSlideVisibilityByTopicLevel = t.computeSlideVisibility = void 0;
- const r = n(5);
- function i(e, t) {
- var n, r, i, s, u;
- const d = t.getSlideContent(e.topicId);
- if (!d)
- return "skip";
- const {topic: f, topicLevel: h} = d;
- switch (e.type) {
- case "topic":
- return null !== (r = null !== (n = c(f.topicSlide)) && void 0 !== n ? n : o(h)) && void 0 !== r ? r : a(e, t);
- case "list":
- return null !== (s = null !== (i = c(f.listSlides)) && void 0 !== i ? i : l(e, t)) && void 0 !== s ? s : "show";
- case "summary":
- return null !== (u = c(f.summarySlide)) && void 0 !== u ? u : "show"
- }
- }
- function o(e) {
- return "centralTopic" === e || "mainTopic" === e || "floatingTopic" === e ? "show" : null
- }
- function a(e, t) {
- var n, o;
- const a = t.getSlideByAlias({
- kind: "introOfTopic",
- topicId: e.topicId
- });
- if (!a || a === e)
- return "show";
- if ("skip" === i(a, t))
- return "show";
- const s = null !== (n = e.contentFeatures) && void 0 !== n ? n : []
- , l = null !== (o = a.contentFeatures) && void 0 !== o ? o : [];
- return s.some(e=>l.every(t=>!r.isSlideContentFeatureCoveredBy(e, t))) ? "show" : "skip"
- }
- function s() {
- return "show"
- }
- function l(e, t) {
- var n, r;
- const o = null === (n = e.aliases) || void 0 === n ? void 0 : n.find(e=>"outroOfTopic" === e.kind);
- if (!o)
- return null;
- const a = e
- , s = o;
- function l(e) {
- return "introOfTopic" === e.kind && e.topicId === s.topicId
- }
- let u = a.previousSlide ? t.getSlideByAlias(a.previousSlide) : null;
- for (; null !== u && !(null === (r = u.aliases) || void 0 === r ? void 0 : r.some(l)); ) {
- if ("skip" !== i(u, t))
- return "show";
- u = u.previousSlide ? t.getSlideByAlias(u.previousSlide) : null
- }
- return u ? "skip" : null
- }
- function u() {
- return "show"
- }
- function c(e) {
- return "skip" === e ? "skip" : "show" === e ? "show" : null
- }
- t.computeSlideVisibility = i,
- t.computeDefaultTopicSlideVisibilityByTopicLevel = o,
- t.computeDefaultTopicSlideVisibilityByContent = a,
- t.computeDefaultListSlideVisibility = s,
- t.computeExitListSlideVisibility = l,
- t.computeDefaultSummarySlideVisibility = u,
- t.computeUserSlideVisibility = c
- },
- 261: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.makeAsyncQueue = void 0,
- t.makeAsyncQueue = function() {
- const e = [];
- let t = !1;
- const n = ()=>{
- if (t)
- return;
- const r = e.shift();
- r && (t = !0,
- r().then(()=>{
- t = !1,
- n()
- }
- ).catch(()=>{
- t = !1,
- n()
- }
- ))
- }
- ;
- return t=>{
- e.push(t),
- n()
- }
- }
- },
- 262: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.PresentationView = void 0;
- const i = n(5)
- , o = n(263)
- , a = n(271)
- , s = n(12)
- , l = n(172)
- , u = n(76)
- , c = n(274)
- , d = n(50)
- , f = n(173)
- , h = n(33);
- class p extends u.View {
- constructor(e={}) {
- var t;
- super(e),
- this.allowsActivatingPresenterPerspectiveMode = !1,
- this.allowsRenderingHitRegions = !0,
- this._mode = "presentation",
- this._slidePresentationState = {},
- this._hitRegionBoxId = null,
- this._isHandlingScrollEvent = !1,
- this._millisecondsForTimeoutWaitingScroll = 600,
- this._endingScreenView = null,
- this._eventListener = e=>{
- switch (e.type) {
- case "click":
- return this._onClick(e);
- case "mousemove":
- return this._onMouseMove(e);
- case "mouseenter":
- return this._onMouseEnter();
- case "mouseleave":
- return this._onMouseLeave()
- }
- }
- ,
- this._pointerMovementStartPoint = null,
- this._thresholdDistanceForPointerMovementActivatingPresenterPerspectiveMode = 100,
- this._timeoutToDeactivatePresenterPerspectiveMode = null,
- this._millisecondsForTimeoutToDeactivatePresenterPerspectiveMode = 5e3,
- this._slideView = this._createSlideView(null !== (t = e.initialSlide) && void 0 !== t ? t : null)
- }
- get slideView() {
- return this._slideView
- }
- get presentationState() {
- return this._slidePresentationState
- }
- startCountdownToDeactivatePresenterPerspectiveMode() {
- this._startCountdownToDeactivatePresenterPerspectiveMode()
- }
- discardCountdownToDeactivatePresenterPerspectiveMode() {
- this._discardCountdownToDeactivatePresenterPerspectiveMode()
- }
- createViewElement() {
- const e = document.createElement("div");
- return e.style.userSelect = "none",
- e.style.backgroundColor = "#000",
- this._addStylesViaCSS(e),
- e
- }
- _addStylesViaCSS(e) {
- const t = `pancake-presentation-view-${(new Date).getTime()}-${Math.floor(1e3 * Math.random())}`;
- e.classList.add(t);
- const n = this._makeStyleSheet(t)
- , r = document.createElement("style");
- r.setAttribute("type", "text/css"),
- r.textContent = n,
- e.appendChild(r)
- }
- _makeStyleSheet(e) {
- return `.${e} ::-webkit-scrollbar { display: none; }`
- }
- get contentEl() {
- var e;
- return null !== (e = this._contentEl) && void 0 !== e ? e : this._contentEl = this.createContentElement()
- }
- createContentElement() {
- const e = document.createElement("div");
- return e.style.position = "absolute",
- e.style.transformOrigin = "0 0",
- e.style.backgroundColor = "#000",
- this.el.appendChild(e),
- e
- }
- update() {
- super.update(),
- this.slideView.slide && this.layout(this.slideView.slide.width, this.slideView.slide.height),
- this._slidePresentationState.showCursor = this.allowsRenderingHitRegions,
- this._slidePresentationState.hitRegions = this._computeHitRegionsState(),
- this.slideView.update(),
- this.connected && (this.el.style.cursor = "presenterPerspective" === this._mode && this._slidePresentationState.showCursor ? "" : "none")
- }
- layout(e, t) {
- const n = this.el.clientWidth
- , r = this.el.clientHeight
- , i = Math.round(1e4 * Math.min(n / e, r / t)) / 1e4
- , o = {
- x: (n - e * i) / 2,
- y: (r - t * i) / 2
- };
- this.contentEl.style.left = s.toCSSLength(o.x),
- this.contentEl.style.top = s.toCSSLength(o.y),
- this.contentEl.style.width = s.toCSSLength(e),
- this.contentEl.style.height = s.toCSSLength(t),
- this.contentEl.style.transform = `scale(${i}, ${i})`
- }
- performTransition(e) {
- var t, n;
- return r(this, void 0, void 0, (function*() {
- this._discardCountdownToDeactivatePresenterPerspectiveMode(),
- this._hitRegionBoxId = null;
- const r = new a.AnimationExecutor(null !== (t = e.sourceSlideAnimations) && void 0 !== t ? t : [])
- , i = new a.AnimationExecutor(null !== (n = e.targetSlideAnimations) && void 0 !== n ? n : [])
- , s = this.slideView;
- yield r.performAnimationsOnStage(e.baseDuration, "preTransition", s);
- const l = this._createTargetSlideViewForTransition(e, s)
- , u = this.computeTransitionEffect(e, s, l);
- yield Promise.all([o.performTransitionEffect(e.duration, u, s, l), r.performAnimationsOnStage(e.duration, "transition", s), i.performAnimationsOnStage(e.duration, "transition", l)]),
- s != l && this._destroySlideView(s),
- yield i.performAnimationsOnStage(e.baseDuration, "postTransition", l),
- this._slideView = l,
- this._slideView.slide = e.targetSlide,
- this._slideView.update(),
- "presenterPerspective" === this._mode && this._startCountdownToDeactivatePresenterPerspectiveMode()
- }
- ))
- }
- _createTargetSlideViewForTransition(e, t, n={}) {
- if (this._shouldReuseSlideViewForTransition(e))
- return t;
- {
- const t = e.targetSlideEnteringState;
- return this._createSlideView(e.targetSlide, Object.assign({
- initialState: t
- }, n))
- }
- }
- _shouldReuseSlideViewForTransition(e) {
- if ("animateInSlide" === e.effect)
- return !0;
- if ("none" === e.effect) {
- const {sourceSlide: t, targetSlide: n} = e;
- return (null == t ? void 0 : t.type) === (null == n ? void 0 : n.type) && (null == t ? void 0 : t.topicId) === (null == n ? void 0 : n.topicId)
- }
- return !1
- }
- preloadTransition(e) {
- var t;
- return r(this, void 0, void 0, (function*() {
- const n = this._createSlideView(this.slideView.slide, {
- initialState: this.slideView.slideState,
- belowAll: !0
- })
- , r = new a.AnimationExecutor(null !== (t = e.sourceSlideAnimations) && void 0 !== t ? t : []);
- yield r.performAnimationsOnStage(0, "preTransition", n);
- const i = this._createTargetSlideViewForTransition(e, n, {
- belowAll: !0
- });
- this.computeTransitionEffect(e, n, i, {
- force: !0
- }),
- this._destroySlideView(n),
- n != i && this._destroySlideView(i)
- }
- ))
- }
- computeTransitionEffect(e, t, n, r={}) {
- let i = this._computedTransitionEffect;
- return !r.force && i && f.isEqual(i.transition, e) || (i = {
- effect: o.computeTransitionEffect(e, t, n),
- transition: e
- },
- this._computedTransitionEffect = i),
- i.effect
- }
- _createSlideView(e, {initialState: t, belowAll: n}={}) {
- const r = new l.SlideView({
- superview: this
- });
- return r.positionMode = "manual",
- e && this.layout(e.width, e.height),
- n ? this.contentEl.insertBefore(r.el, this.contentEl.firstElementChild) : this.contentEl.appendChild(r.el),
- r.slide = e,
- t && (r.slideState = t),
- r.update(),
- this.connected && r.connect(),
- r
- }
- _destroySlideView(e) {
- this.connected && e.disconnect(),
- e.el.parentElement == this.contentEl && this.contentEl.removeChild(e.el)
- }
- presentEndingScreen(e, t, n={}) {
- var i, o;
- return r(this, void 0, void 0, (function*() {
- const r = null !== (i = this._endingScreenView) && void 0 !== i ? i : this._endingScreenView = new c.EndingScreenView({
- superview: this,
- size: t
- });
- r.content = e,
- this.contentEl.appendChild(r.el),
- r.update(),
- r.connect(),
- yield r.present(null !== (o = n.duration) && void 0 !== o ? o : 1e3)
- }
- ))
- }
- dismissEndingScreen(e={}) {
- var t;
- return r(this, void 0, void 0, (function*() {
- const n = this._endingScreenView;
- n && (!1 !== e.animated && (yield n.dismiss(null !== (t = e.duration) && void 0 !== t ? t : 1e3)),
- n.disconnect(),
- this.contentEl.removeChild(n.el),
- this._endingScreenView = null)
- }
- ))
- }
- performStateChange(e, t) {
- var n;
- return r(this, void 0, void 0, (function*() {
- this._discardCountdownToDeactivatePresenterPerspectiveMode(),
- this._mode = null !== (n = e.mode) && void 0 !== n ? n : "presentation",
- this.slideView.slideState = e,
- t && t.duration && t.duration > 0 ? yield new d.ViewAnimator({
- duration: t.duration,
- easing: t.easing
- }).animate(()=>{
- this.update()
- }
- ).play() : this.update(),
- "presenterPerspective" === this._mode && this._startCountdownToDeactivatePresenterPerspectiveMode()
- }
- ))
- }
- groupViewDidGetScrolled(e) {
- var t;
- this._handleScrollEvent();
- const n = e.box.id
- , r = e.scrollOffset;
- null === (t = this.delegate) || void 0 === t || t.presenterDidReceivePointerInteraction(this, {
- kind: "scroll",
- boxId: n,
- scrollOffset: r
- })
- }
- boxViewDidGetHit(e) {
- var t;
- const n = e.box.id;
- null === (t = this.delegate) || void 0 === t || t.presenterDidReceivePointerInteraction(this, {
- kind: "hit",
- boxId: n
- })
- }
- boxViewDidGetPointerEntered(e) {
- this._hitRegionBoxId = e.box.id,
- "hovered" === this._hitRegionTrackingMode && this.update()
- }
- boxViewDidGetPointerLeft(e) {
- this._hitRegionBoxId === e.box.id && (this._hitRegionBoxId = null,
- "hovered" === this._hitRegionTrackingMode && this.update())
- }
- boxViewDidGetPointerCaptured(e) {
- this.slideView.enterHitRegionActiveEffect(e)
- }
- boxViewDidGetPointerReleased(e) {
- this.slideView.cancelHitRegionActiveEffect(e)
- }
- connect() {
- super.connect(),
- this.el.addEventListener("click", this._eventListener),
- this.el.addEventListener("mousemove", this._eventListener),
- this.el.addEventListener("mouseenter", this._eventListener),
- this.el.addEventListener("mouseleave", this._eventListener),
- this.update()
- }
- disconnect() {
- this.el.removeEventListener("mouseleave", this._eventListener),
- this.el.removeEventListener("mouseenter", this._eventListener),
- this.el.removeEventListener("mousemove", this._eventListener),
- this.el.removeEventListener("click", this._eventListener),
- super.disconnect(),
- this.update()
- }
- _handleScrollEvent() {
- clearTimeout(this._scrollingHandlerTimer),
- this._isHandlingScrollEvent || (this._isHandlingScrollEvent = !0,
- this.update()),
- this._scrollingHandlerTimer = setTimeout(()=>{
- this._isHandlingScrollEvent = !1,
- this.update()
- }
- , this._millisecondsForTimeoutWaitingScroll)
- }
- _onClick(e) {
- const t = this.delegate;
- t && (e.stopPropagation(),
- t.presenterDidReceivePointerInteraction(this, {
- kind: "hit"
- }),
- this._startCountdownToDeactivatePresenterPerspectiveMode())
- }
- _onMouseMove(e) {
- var t;
- if (this.allowsActivatingPresenterPerspectiveMode)
- if ("presenterPerspective" === this._mode)
- this._pointerMovementStartPoint = null;
- else {
- const n = this._computePointerLocation(e);
- this._pointerMovementStartPoint ? this._isPointBeyondThresholdDistance(n, this._pointerMovementStartPoint, this._thresholdDistanceForPointerMovementActivatingPresenterPerspectiveMode) && (this._hitRegionTrackingMode = "hovered",
- null === (t = this.delegate) || void 0 === t || t.presenterDidReceivePointerInteraction(this, {
- kind: "activate"
- })) : this._pointerMovementStartPoint = n
- }
- else
- this._pointerMovementStartPoint = null;
- this._startCountdownToDeactivatePresenterPerspectiveMode()
- }
- onTwoFingerTap() {
- var e;
- this.allowsActivatingPresenterPerspectiveMode && (this._hitRegionTrackingMode = "all",
- null === (e = this.delegate) || void 0 === e || e.presenterDidReceivePointerInteraction(this, {
- kind: "activate"
- }),
- this._startCountdownToDeactivatePresenterPerspectiveMode())
- }
- _computePointerLocation(e) {
- return {
- x: e.clientX,
- y: e.clientY
- }
- }
- _startCountdownToDeactivatePresenterPerspectiveMode() {
- var e, t;
- this._discardCountdownToDeactivatePresenterPerspectiveMode(),
- this.allowsActivatingPresenterPerspectiveMode && ("hovered" === this._hitRegionTrackingMode && null !== (t = null === (e = this._slidePresentationState.hitRegions) || void 0 === e ? void 0 : e.length) && void 0 !== t && t || (this._timeoutToDeactivatePresenterPerspectiveMode = setTimeout(()=>{
- var e;
- this._pointerMovementStartPoint = null,
- null === (e = this.delegate) || void 0 === e || e.presenterDidReceivePointerInteraction(this, {
- kind: "deactivate"
- })
- }
- , this._millisecondsForTimeoutToDeactivatePresenterPerspectiveMode)))
- }
- _discardCountdownToDeactivatePresenterPerspectiveMode() {
- const e = this._timeoutToDeactivatePresenterPerspectiveMode;
- e && (clearTimeout(e),
- this._timeoutToDeactivatePresenterPerspectiveMode = null)
- }
- _isPointBeyondThresholdDistance(e, t, n) {
- return Math.abs(e.x - t.x) > n || Math.abs(e.y - t.y) > n
- }
- _onMouseEnter() {
- this._startCountdownToDeactivatePresenterPerspectiveMode()
- }
- _onMouseLeave() {
- this._startCountdownToDeactivatePresenterPerspectiveMode()
- }
- _computeHitRegionsState() {
- var e, t, n, r, o, a, s;
- const l = []
- , u = this.slideView.slide
- , c = this.slideView.slideState
- , d = null !== (n = null !== (e = null == c ? void 0 : c.hitRegionHPadding) && void 0 !== e ? e : null === (t = this.slideView.slide) || void 0 === t ? void 0 : t.hitRegionHPadding) && void 0 !== n ? n : 0
- , f = null !== (a = null !== (r = null == c ? void 0 : c.hitRegionVPadding) && void 0 !== r ? r : null === (o = this.slideView.slide) || void 0 === o ? void 0 : o.hitRegionVPadding) && void 0 !== a ? a : 0;
- if (u && c && this.allowsRenderingHitRegions && "presenterPerspective" === this._mode)
- if ("all" === this._hitRegionTrackingMode) {
- if (!this._isHandlingScrollEvent) {
- const e = i.filterBoxes(u.boxes, e=>!!e.requestForHit).map(e=>{
- var t;
- return h.computeHitRegionBounds(e.id, u.boxes, null !== (t = c.boxes) && void 0 !== t ? t : [], {
- x: 0,
- y: 0,
- width: u.width,
- height: u.height
- }, d, f)
- }
- ).filter(e=>!!e);
- l.push(...e)
- }
- } else if ("hovered" === this._hitRegionTrackingMode) {
- const e = this._hitRegionBoxId;
- if (e) {
- const t = h.computeHitRegionBounds(e, u.boxes, null !== (s = c.boxes) && void 0 !== s ? s : [], {
- x: 0,
- y: 0,
- width: u.width,
- height: u.height
- }, d, f);
- t && (t.opacity = 1,
- l.push(t))
- }
- }
- return l
- }
- }
- t.PresentationView = p
- },
- 263: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.performTransitionEffect = t.computeTransitionEffect = void 0;
- const r = n(264)
- , i = n(265)
- , o = n(269)
- , a = n(270);
- t.computeTransitionEffect = function(e, t, n) {
- switch (e.effect) {
- case "none":
- return r.computeNoTransitionEffect();
- case "animateInSlide":
- return a.computeAnimateInSlideTransitionEffect(e);
- case "magicMove":
- return i.computeMagicMoveTransitionEffect(e, t, n);
- case "dissolve":
- return o.computeDissolveTransitionEffect()
- }
- }
- ,
- t.performTransitionEffect = function(e, t, n, s) {
- switch (t.effect) {
- case "none":
- return r.performNoTransitionEffect();
- case "animateInSlide":
- return a.performAnimateInSlideTransitionEffect(e, t, s);
- case "magicMove":
- return i.performMagicMoveTransitionEffect(e, t, n, s);
- case "dissolve":
- return o.performDissolveTransitionEffect(e, n, s)
- }
- }
- },
- 264: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.performNoTransitionEffect = t.computeNoTransitionEffect = void 0,
- t.computeNoTransitionEffect = function() {
- return {
- effect: "none"
- }
- }
- ,
- t.performNoTransitionEffect = function() {
- return r(this, void 0, void 0, (function*() {
- return Promise.resolve()
- }
- ))
- }
- },
- 265: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- , i = this && this.__importDefault || function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.performMagicMoveTransitionEffect = t.computeMagicMoveTransitionEffect = void 0;
- const o = i(n(70))
- , a = n(75)
- , s = n(170)
- , l = n(171)
- , u = n(12)
- , c = n(266);
- function d(e) {
- var t, n;
- let r = null !== (t = e.box.opacity) && void 0 !== t ? t : 1
- , i = e.superview;
- for (; i && i instanceof a.BoxView; )
- r *= null !== (n = i.box.opacity) && void 0 !== n ? n : 1,
- i = i.superview;
- return r
- }
- t.computeMagicMoveTransitionEffect = function(e, t, n) {
- const r = {
- effect: "magicMove",
- textDataSet: {},
- imageDataSet: {},
- hideDataSet: new Set,
- shapeDataSet: new Set,
- showDataSet: new Set
- }
- , i = t.clone()
- , o = n.clone()
- , f = document.createElement("div");
- function h(e, t) {
- var n;
- return null !== (n = null == t ? void 0 : t.some(t=>{
- var n;
- return "mutate" === t.effect && (null === (n = t.finalState.boxes) || void 0 === n ? void 0 : n.some(t=>t.id === e))
- }
- )) && void 0 !== n && n
- }
- f.style.width = "0",
- f.style.height = "0",
- f.style.position = "absolute",
- f.style.left = "0",
- f.style.top = "0",
- f.style.pointerEvents = "none",
- f.style.opacity = "0",
- f.style.visibility = "hidden",
- f.style.overflow = "hidden",
- document.body.insertBefore(f, document.body.firstElementChild),
- i.el.style.position = "absolute",
- i.el.style.left = "0",
- i.el.style.top = "0",
- o.el.style.position = "absolute",
- o.el.style.left = "0",
- o.el.style.top = "0",
- f.appendChild(i.el),
- f.appendChild(o.el);
- const p = new Set;
- return i.forEachBoxView(f=>{
- if (!function(t) {
- return !function(e, t) {
- var n, r;
- return null !== (r = null === (n = null == t ? void 0 : t.boxes) || void 0 === n ? void 0 : n.some(t=>t.id === e)) && void 0 !== r && r
- }(t, e.targetSlideEnteringState) && !h(t, e.sourceSlideAnimations) && !h(t, e.targetSlideAnimations)
- }(f.box.id))
- return;
- const g = f.box.id
- , m = o.getBoxViewById(g);
- m && f instanceof a.TextView && m instanceof a.TextView ? function(e, n, s) {
- function l(e) {
- if (e.superview instanceof a.GroupView) {
- const t = e.superview.box;
- if (void 0 === t.overflow || t.contentHeight > t.bounds.height)
- return t.absBounds
- }
- return {
- x: 0,
- y: 0,
- width: t.slide.width,
- height: t.slide.height
- }
- }
- const u = l(n)
- , f = l(s)
- , h = {
- boxId: e,
- magicMove: new c.TextMagicMove({
- textEl: n.textEl,
- clipRect: new DOMRect(u.x,u.y,u.width,u.height),
- rootEl: i.el,
- opacity: d(n)
- },{
- textEl: s.textEl,
- clipRect: new DOMRect(f.x,f.y,f.width,f.height),
- rootEl: o.el,
- opacity: d(s)
- })
- };
- n.superview instanceof a.GroupView && (h.source = {
- mask: n.superview.computeMaskImage()
- }),
- s.superview instanceof a.GroupView && (h.target = {
- mask: s.superview.computeMaskImage()
- }),
- r.textDataSet[e] = h
- }(g, f, m) : m && f instanceof a.ShapeView && m instanceof a.ShapeView ? r.shapeDataSet.add(g) : m && (f instanceof s.ImageView || f instanceof l.SVGTemplateView) && (m instanceof s.ImageView || m instanceof l.SVGTemplateView) ? function(a, s, l) {
- const c = {
- boxId: a
- }
- , f = s.box.absBounds
- , h = l.box.absBounds
- , p = u.getClippedBoundsOfElement(s.el, i.el)
- , g = u.getClippedBoundsOfElement(l.el, o.el)
- , m = d(s)
- , v = d(l)
- , y = m > 0 && p.width >= .9 * f.width && p.height >= .9 * f.height
- , b = v > 0 && g.width >= .9 * h.height && g.height >= .9 * h.height;
- if (y && b) {
- const r = s.el.getBoundingClientRect()
- , i = l.el.getBoundingClientRect()
- , o = t.getBoxViewById(a);
- if ("imageSource"in s.box && "imageSource"in l.box && s.box.imageSource === l.box.imageSource || "svg"in s.box && "svg"in l.box && s.box.svg === l.box.svg)
- o && (c.source = {
- left: r.x + "px",
- top: r.y + "px",
- animeParams: [{
- translateX: i.x - r.x,
- translateY: i.y - r.y,
- scaleX: i.width / Math.max(1, r.width),
- scaleY: i.width / Math.max(1, r.width),
- opacity: v
- }]
- });
- else {
- const t = n.getBoxViewById(a);
- if (o && t) {
- const n = null == o ? void 0 : o.box.roles.includes("imagePlaceholder")
- , a = i.width / Math.max(1, r.width)
- , s = i.height / Math.max(1, r.height)
- , l = Math.max(a, s);
- c.source = {
- left: r.x + "px",
- top: r.y + "px",
- animeParams: [{
- translateX: i.x - r.x,
- translateY: i.y - r.y,
- scaleX: [1, n ? l : a],
- scaleY: [1, n ? l : s]
- }, {
- opacity: [m, 0],
- duration: n ? .5 * e.duration : e.duration
- }]
- };
- const u = null == t ? void 0 : t.box.roles.includes("imagePlaceholder")
- , d = r.width / Math.max(1, i.width)
- , f = r.height / Math.max(1, i.height)
- , h = Math.max(d, f);
- c.target = {
- left: i.x + "px",
- top: i.y + "px",
- animeParams: [{
- translateX: [r.x - i.x, 0],
- translateY: [r.y - i.y, 0],
- scaleX: [u ? h : d, 1],
- scaleY: [u ? h : f, 1]
- }, {
- opacity: [0, v],
- duration: u ? .5 * e.duration : e.duration,
- delay: u ? .5 * e.duration : 0
- }]
- }
- }
- }
- } else {
- if (y) {
- if (t.getBoxViewById(a)) {
- const e = s.el.getBoundingClientRect();
- c.source = {
- left: e.x + "px",
- top: e.y + "px",
- animeParams: [{
- opacity: v
- }]
- }
- }
- }
- if (b) {
- if (n.getBoxViewById(a)) {
- const e = l.el.getBoundingClientRect();
- c.target = {
- left: e.x + "px",
- top: e.y + "px",
- animeParams: [{
- opacity: [0, v]
- }]
- }
- }
- }
- }
- r.imageDataSet[a] = c
- }(g, f, m) : r.hideDataSet.add(g),
- p.add(g)
- }
- ),
- o.forEachBoxView(e=>{
- p.has(e.box.id) || r.showDataSet.add(e.box.id)
- }
- ),
- document.body.removeChild(f),
- r
- }
- ,
- t.performMagicMoveTransitionEffect = function(e, t, n, i) {
- return r(this, void 0, void 0, (function*() {
- const r = o.default.timeline({
- easing: "easeInOutQuart",
- duration: e,
- autoplay: !1
- });
- n.stackWith(i);
- const a = n.el.parentElement
- , s = document.createElement("div");
- s.style.width = "100%",
- s.style.height = "100%",
- s.style.position = "absolute",
- s.style.left = "0",
- s.style.top = "0",
- null == a || a.appendChild(s);
- const l = []
- , u = [];
- function c(e) {
- const t = n.getBoxViewById(e);
- if (!t)
- return;
- u.push(t.el);
- const r = t.el.style.visibility;
- l.push(()=>{
- t.el.style.visibility = r
- }
- )
- }
- function d(e) {
- const t = i.getBoxViewById(e);
- if (!t)
- return;
- const n = t.el.style.visibility;
- t.el.style.visibility = "hidden",
- l.push(()=>{
- t.el.style.visibility = n
- }
- )
- }
- n.forEachBoxView(o=>{
- const a = o.box.id;
- t.hideDataSet.has(a) ? function(t) {
- const i = n.getBoxViewById(t);
- i && (i.el.style.transform += "translateZ(0)",
- i.el.style.willChange = "opacity",
- r.add({
- targets: i.el,
- opacity: 0,
- duration: .5 * e
- }, 0))
- }(a) : t.shapeDataSet.has(a) ? function(t, i, o) {
- const a = n.getBoxViewById(t);
- d(t),
- r.add({
- targets: a.shape,
- d: [{
- value: i.box.shapePath
- }, {
- value: o.box.shapePath
- }],
- duration: .5 * e
- }, .5 * e)
- }(a, o, i.getBoxViewById(a)) : t.imageDataSet[a] ? function(t) {
- if (t.source) {
- const i = n.getBoxViewById(t.boxId);
- if (i) {
- const n = i.el.cloneNode(!0);
- s.appendChild(n);
- const o = n.style;
- o.left = t.source.left,
- o.top = t.source.top,
- o.transformOrigin = "0 0",
- t.source.animeParams.forEach(t=>{
- r.add(Object.assign({
- targets: n,
- duration: e
- }, t), 0)
- }
- )
- }
- }
- if (t.target) {
- const n = i.getBoxViewById(t.boxId);
- if (n) {
- const i = n.el.cloneNode(!0);
- s.appendChild(i),
- i.style.left = t.target.left,
- i.style.top = t.target.top,
- i.style.transformOrigin = "0 0",
- t.target.animeParams.forEach(t=>{
- r.add(Object.assign({
- targets: i,
- duration: e
- }, t), 0)
- }
- )
- }
- }
- c(t.boxId),
- d(t.boxId)
- }(t.imageDataSet[a]) : t.textDataSet[a] && function(t) {
- var n, i;
- const o = {
- from: null,
- to: null
- };
- (null === (n = t.source) || void 0 === n ? void 0 : n.mask) && (o.from = document.createElement("div"),
- o.from.style.maskImage = t.source.mask,
- o.from.style.webkitMaskImage = t.source.mask),
- (null === (i = t.target) || void 0 === i ? void 0 : i.mask) && (o.to = document.createElement("div"),
- o.to.style.maskImage = t.target.mask,
- o.to.style.webkitMaskImage = t.target.mask),
- t.magicMove.play(e, s, r, o),
- c(t.boxId),
- d(t.boxId)
- }(t.textDataSet[a])
- }
- ),
- i.forEachBoxView(n=>{
- const o = n.box.id;
- t.showDataSet.has(o) && function(t) {
- const n = i.getBoxViewById(t);
- n && (n.el.style.transform += "translateZ(0)",
- n.el.style.willChange = "opacity",
- r.add({
- targets: n.el,
- opacity: [0, n.el.style.opacity],
- duration: .5 * e
- }, .5 * e))
- }(o)
- }
- ),
- setTimeout((function() {
- for (const e of u)
- e.style.visibility = "hidden";
- r.restart()
- }
- ), 0),
- yield r.finished,
- l.forEach(e=>e()),
- null == a || a.removeChild(s),
- n.unstackWith(i)
- }
- ))
- }
- },
- 266: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.TextMagicMove = void 0;
- const r = n(113)
- , i = n(267);
- function o(e) {
- return (new Array).concat(...e)
- }
- function a() {
- const e = document.createElement("div");
- return e.style.position = "absolute",
- e.style.opacity = "0",
- e.style.visibility = "0",
- e.style.width = "0",
- e.style.height = "0",
- e
- }
- function s(e, t) {
- if (e === t)
- return !0;
- const n = Math.abs(e - t);
- return n < Number.EPSILON || n <= Number.EPSILON * Math.min(Math.abs(e), Math.abs(t))
- }
- class l {
- constructor(e) {
- let t;
- for (; e; ) {
- if (e.nodeType == Node.ELEMENT_NODE) {
- t = e;
- break
- }
- e = e.parentNode
- }
- if (t) {
- const t = getComputedStyle(e);
- this.background = t.background,
- this.color = t.color,
- this.font = t.font,
- this.opacity = t.opacity,
- this.writingMode = t.writingMode
- } else
- this.background = "",
- this.color = "black",
- this.font = "",
- this.opacity = "1",
- this.writingMode = "horizontal-tb"
- }
- }
- class u {
- constructor(e, t) {
- this.node = e,
- this.contentRange = t,
- this.style = new l(e)
- }
- }
- class c {
- constructor(e, t) {
- this.from = e,
- this.to = t
- }
- toString() {
- let e = "";
- return this.from ? e += `(${this.from.range.location}, ${this.from.range.length})=>` : e += "(nil, nil)=>",
- this.to ? e += `(${this.to.range.location}, ${this.to.range.length})` : e += "(nil, nil)",
- e
- }
- }
- class d {
- constructor(e) {
- this.content = "",
- this.charRects = [],
- this.unitBreakIndices = new Set,
- this.zeroKerningIndices = new Set,
- this.nodeInfos = [],
- this.nonVisibleRanges = [],
- this.clippedRanges = [],
- this.visibleRange = new r.IndexRange(-1,-1);
- const t = e.textEl;
- this.clipRect = e.clipRect,
- this.rootElBBox = e.rootEl.getBoundingClientRect(),
- this.opacity = e.opacity,
- this.handleElement(t),
- this.computeValidRanges(),
- this.findUnitBreakIndices();
- const n = t.getBoundingClientRect()
- , i = new Range;
- i.setStartBefore(t),
- i.setEndAfter(t);
- const o = i.getBoundingClientRect();
- this.containerBBox = new DOMRect(Math.min(n.x, o.x),Math.min(n.y, o.y),Math.max(n.width, o.width),Math.max(n.height, o.height))
- }
- static get kerningTestWrapper() {
- if (!d._kerningTestWrapper) {
- const e = a();
- e.style.overflow = "hidden",
- e.style.whiteSpace = "nowrap",
- d._kerningTestWrapper = e,
- document.body.appendChild(e)
- }
- return d._kerningTestWrapper
- }
- handleElement(e) {
- var t, n;
- let i = e.firstChild;
- for (; i && i != e.lastChild; )
- switch (i.nodeType) {
- case Node.TEXT_NODE:
- {
- const r = i.nextSibling;
- r && r.nodeType == Node.TEXT_NODE ? (i.textContent = (null !== (t = i.textContent) && void 0 !== t ? t : "") + (null !== (n = r.textContent) && void 0 !== n ? n : ""),
- e.removeChild(r)) : i = r;
- break
- }
- default:
- i = i.nextSibling
- }
- const o = Array.prototype.slice.call(e.childNodes, 0);
- for (const t of o)
- if (t.nodeType == Node.TEXT_NODE) {
- const n = t.textContent;
- if (!n)
- continue;
- const i = this.content.length;
- this.nodeInfos.push(new u(e,new r.IndexRange(i,i + n.length - 1))),
- this.content += n;
- const o = new Range;
- for (let e = 0; e < n.length; ++e) {
- o.setStart(t, e),
- o.setEnd(t, e + 1);
- let n = Array.prototype.slice.call(o.getClientRects()).filter(e=>0 != e.width && 0 != e.height)[0];
- n || (n = o.getBoundingClientRect()),
- n.x -= this.rootElBBox.x,
- n.y -= this.rootElBBox.y,
- this.charRects.push(n)
- }
- } else if (t.nodeType == Node.ELEMENT_NODE) {
- "BR" == t.tagName ? this.unitBreakIndices.add(this.content.length) : this.handleElement(t);
- continue
- }
- }
- findUnitBreakIndices() {
- for (const e of this.nodeInfos) {
- if (e.style.writingMode.startsWith("vertical"))
- for (let t = e.contentRange.start + 1; t <= e.contentRange.end; ++t) {
- const e = this.charRects[t - 1]
- , n = this.charRects[t];
- Math.abs(e.x - n.x) > e.width / 2 && this.unitBreakIndices.add(t)
- }
- else
- for (let t = e.contentRange.start + 1; t <= e.contentRange.end; ++t) {
- const e = this.charRects[t - 1]
- , n = this.charRects[t];
- Math.abs(e.y - n.y) > e.height / 2 && this.unitBreakIndices.add(t)
- }
- this.unitBreakIndices.add(e.contentRange.upperBound)
- }
- for (const e of this.nonVisibleRanges)
- this.unitBreakIndices.add(e.upperBound);
- for (const e of this.clippedRanges)
- this.unitBreakIndices.add(e.upperBound);
- this.unitBreakIndices.add(this.visibleRange.upperBound),
- this.unitBreakIndices.delete(0)
- }
- computeValidRanges() {
- const e = this.clipRect.top
- , t = this.clipRect.right
- , n = this.clipRect.bottom
- , i = this.clipRect.left;
- for (let o = 0; o < this.charRects.length; ++o) {
- const a = this.charRects[o];
- if (a.bottom <= e || a.top >= n || a.right <= i || a.left >= t) {
- let e = this.nonVisibleRanges[this.nonVisibleRanges.length - 1];
- e && e.upperBound === o ? e._end = o : (e = new r.IndexRange(o,o),
- this.nonVisibleRanges.push(e))
- } else {
- const s = .12 * a.width
- , l = .12 * a.height;
- if (a.top + l >= e && a.bottom - l <= n && a.left + s >= i && a.right - s <= t)
- -1 === this.visibleRange.start && (this.visibleRange._start = o),
- this.visibleRange._end = o;
- else {
- let e = this.clippedRanges[this.clippedRanges.length - 1];
- e && e.upperBound == o ? e._end = o : (e = new r.IndexRange(o,o),
- this.clippedRanges.push(e))
- }
- }
- }
- }
- computeKerning(e) {
- var t;
- const n = d.kerningTestWrapper;
- n.innerHTML = "",
- n.style.fontKerning = "";
- const r = [];
- for (; e.length > 0; ) {
- const t = e[0]
- , i = this.nodeInfos.find(e=>e.contentRange.contains(t));
- let o = void 0
- , a = 1;
- i && (o = document.createElement("div"),
- o.style.font = i.style.font,
- o.style.writingMode = i.style.writingMode,
- n.appendChild(o),
- a = e.findIndex(e=>e >= 0 && !i.contentRange.contains(e)),
- -1 === a && (a = e.length)),
- r.push({
- nodeInfo: i,
- testEl: o,
- indices: e.splice(0, a)
- })
- }
- const i = [];
- for (const e of r)
- for (const n of e.indices)
- if (n <= 0 || this.unitBreakIndices.has(n) || this.zeroKerningIndices.has(n))
- i.push(void 0);
- else {
- const r = document.createElement("div");
- r.textContent = this.content.substr(n - 1, 2),
- null === (t = e.testEl) || void 0 === t || t.appendChild(r),
- i.push(r)
- }
- const o = new Range;
- function a(e) {
- return (null == e ? void 0 : e.firstChild) ? (o.setStart(e.firstChild, 1),
- o.setEnd(e.firstChild, 2),
- o.getBoundingClientRect().width) : 0
- }
- const s = i.map(a);
- n.style.fontKerning = "none";
- const l = i.map(a);
- return s.map((e,t)=>e - l[t])
- }
- computeUnitStates(e) {
- const t = this.computeKerning(e.map(e=>e ? e.start : -1));
- return e.map((e,n)=>{
- if (!e)
- return;
- if (-1 === e.start || -1 === e.end)
- return;
- const r = this.charRects[e.start];
- let i = 0;
- for (let t = e.start; t <= e.end; ++t)
- i = Math.max(i, this.charRects[t].height);
- return {
- range: e,
- style: this.nodeInfos.find(t=>t.contentRange.contains(e.start)).style,
- x: r.x,
- y: r.y,
- lineHeight: i,
- kerning: t[n]
- }
- }
- )
- }
- getVisibleState(e) {
- return this.visibleRange.contains(e.start) ? {
- visible: !0,
- clipped: !1
- } : this.clippedRanges.find(t=>t.contains(e.start)) ? {
- visible: !0,
- clipped: !0
- } : {
- visible: !1,
- clipped: !1
- }
- }
- get visibleContent() {
- return this.content.substr(this.visibleRange.location, this.visibleRange.length)
- }
- }
- const f = /[^\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-./:;<=>?@[\]^_`{|}~\s]+/g;
- class h {
- constructor(e, t) {
- if (this.units = [],
- null == t) {
- const t = e;
- this.fromInfo = t.fromInfo,
- this.toInfo = t.toInfo,
- this.units = t.units
- } else
- this.fromInfo = new d(e),
- this.toInfo = new d(t),
- this.fromInfo.visibleRange.start === this.toInfo.visibleRange.start && this.fromInfo.visibleRange.end === this.toInfo.visibleRange.end && this.fromInfo.content === this.toInfo.content ? this.createUnitIdentical() : this.createUnit()
- }
- serialize() {
- return {
- fromInfo: this.fromInfo,
- toInfo: this.toInfo,
- units: this.units
- }
- }
- static deserialize(e) {
- return new h(e,null)
- }
- createUnitIdentical() {
- const e = Array.from(new Set([...Array.from(this.fromInfo.unitBreakIndices), ...Array.from(this.toInfo.unitBreakIndices)])).sort((e,t)=>e - t).reduce((e,t)=>{
- const n = 0 == e.length ? 0 : e[e.length - 1].upperBound;
- return e.push(new r.IndexRange(n,t - 1)),
- e
- }
- , new Array)
- , t = this.fromInfo.computeUnitStates(e)
- , n = this.toInfo.computeUnitStates(e)
- , i = [];
- for (let r = 0; r < e.length; ++r) {
- const o = e[r]
- , a = this.fromInfo.getVisibleState(o)
- , s = this.toInfo.getVisibleState(o);
- !a.visible || a.clipped || !s.visible || s.clipped ? (a.visible && i.push(new c(t[r],void 0)),
- s.visible && i.push(new c(void 0,n[r]))) : i.push(new c(t[r],n[r]))
- }
- this.units = i
- }
- printUnits(e) {
- let t = "";
- for (const n of e)
- n.from ? t += this.fromInfo.content.substring(n.from.range.location, n.from.range.upperBound) + `(${n.from.range})` : t += "nil",
- t += "=>",
- n.to ? t += this.toInfo.content.substring(n.to.range.location, n.to.range.upperBound) + `(${n.to.range})` : t += "nil",
- t += "\n"
- }
- play(e, t, n, r) {
- var i, o;
- const l = [];
- let u = null
- , c = null;
- const d = this.fromInfo.clipRect
- , f = this.toInfo.clipRect
- , h = a();
- h.style.whiteSpace = "nowrap",
- document.body.appendChild(h);
- for (const t of this.units) {
- if (!t.from && !t.to)
- continue;
- let a = null
- , p = null;
- if (t.from && (a = document.createElement("span"),
- a.textContent = this.fromInfo.content.substring(t.from.range.location, t.from.range.upperBound),
- this.styleLayer(a, t.from, t.from.style),
- a.style.textIndent = t.from.kerning + "px",
- h.appendChild(a)),
- t.to && (p = document.createElement("span"),
- p.textContent = this.toInfo.content.substring(t.to.range.location, t.to.range.upperBound),
- this.styleLayer(p, t.to, t.to.style),
- p.style.textIndent = t.to.kerning + "px",
- h.appendChild(p)),
- a && p) {
- const r = t.from.x
- , i = t.from.y
- , o = a.clientWidth
- , u = a.clientHeight
- , c = t.to.x
- , d = t.to.y
- , f = p.clientWidth
- , h = p.clientHeight;
- if (!(s(o, f) && s(u, h) && t.from.style.font == t.to.style.font && s(t.from.lineHeight, t.to.lineHeight) && s(t.from.kerning, t.to.kerning) && a.textContent == p.textContent))
- n.add({
- targets: a,
- translateX: [0, c - r],
- translateY: [0, d - i],
- scaleX: [1, f / o],
- scaleY: [1, h / u]
- }, 0),
- n.add({
- targets: p,
- translateX: [r - c, 0],
- translateY: [i - d, 0],
- scaleX: [o / f, 1],
- scaleY: [u / h, 1]
- }, 0),
- n.add({
- targets: a,
- easing: "easeInQuart",
- opacity: [this.fromInfo.opacity, 0],
- duration: .12 * e
- }, 300),
- n.add({
- targets: p,
- easing: "easeOutQuart",
- opacity: [0, this.toInfo.opacity],
- duration: .12 * e
- }, 300),
- l.push(a),
- l.push(p);
- else {
- const o = {
- targets: a,
- duration: e
- };
- let u = !1;
- s(c, r) || (o.translateX = [0, c - r],
- u = !0),
- s(d, i) || (o.translateY = [0, d - i],
- u = !0);
- const f = this.fromInfo.opacity * parseFloat(t.from.style.opacity)
- , h = this.toInfo.opacity * parseFloat(t.to.style.opacity);
- s(f, h) || (a.style.opacity = "",
- o.opacity = [f, h],
- u = !0),
- t.from.style.color != t.to.style.color && (o.color = [t.from.style.color, t.to.style.color],
- u = !0),
- t.from.style.background != t.to.style.background && (o.background = [t.from.style.background, t.to.style.background],
- u = !0),
- u && n.add(o, 0),
- l.push(a)
- }
- } else
- a ? (u || (u = null !== (i = null == r ? void 0 : r.from) && void 0 !== i ? i : document.createElement("div"),
- u.style.overflow = "hidden",
- u.style.position = "absolute",
- u.style.left = d.x + "px",
- u.style.top = d.y + "px",
- u.style.width = d.width + "px",
- u.style.height = d.height + "px",
- l.unshift(u)),
- a.style.transform = `translate(${-d.x}px, ${-d.y}px)`,
- u.appendChild(a),
- n.add({
- targets: a,
- opacity: [this.fromInfo.opacity, 0],
- duration: .5 * e
- }, 0)) : p && (c || (c = null !== (o = null == r ? void 0 : r.to) && void 0 !== o ? o : document.createElement("div"),
- c.style.overflow = "hidden",
- c.style.position = "absolute",
- c.style.left = f.x + "px",
- c.style.top = f.y + "px",
- c.style.width = f.width + "px",
- c.style.height = f.height + "px",
- l.unshift(c)),
- p.style.transform = `translate(${-f.x}px, ${-f.y}px)`,
- p.style.opacity = "0",
- c.appendChild(p),
- n.add({
- targets: p,
- opacity: [0, this.toInfo.opacity],
- duration: .5 * e
- }, .5 * e))
- }
- document.body.removeChild(h);
- for (const e of l)
- t.appendChild(e)
- }
- styleLayer(e, t, n) {
- e.style.position = "absolute",
- e.style.left = t.x + "px",
- e.style.top = t.y + "px",
- e.style.font = n.font,
- e.style.background = n.background,
- e.style.color = n.color,
- e.style.transformOrigin = "0 0",
- e.style.whiteSpace = "nowrap",
- e.style.lineHeight = t.lineHeight + "px",
- e.style.transform = "translateZ(0)",
- e.style.willChange = "transform, opacity"
- }
- computeWords(e) {
- const t = []
- , n = [0];
- e.replace(f, (function(e, t) {
- return n.push(t),
- n.push(t + e.length),
- e
- }
- )),
- n.push(e.length);
- for (let o = 1; o < n.length; ++o) {
- let a = n[o - 1]
- , s = n[o];
- for (; a < s; ) {
- const t = e.charAt(a);
- if (" " != t && "\t" != t && "\n" != t)
- break;
- a += 1
- }
- for (; s > a; ) {
- const t = e.charAt(s - 1);
- if (" " != t && "\t" != t && "\n" != t)
- break;
- s -= 1
- }
- s > a && t.push(new i.Word(new r.IndexRange(a,s - 1),e))
- }
- return t
- }
- createUnit() {
- const e = this.computeWords(this.fromInfo.visibleContent)
- , t = this.computeWords(this.toInfo.visibleContent)
- , n = {
- inserted: [],
- deleted: []
- };
- let i = this.performDiff(e, t, n);
- function a(e, t) {
- const n = e.length > 0 ? e[e.length - 1] : void 0;
- if (n) {
- let r = n.range.upperBound;
- for (; r < n.base.length; ) {
- const e = n.base[r];
- if (" " != e && "\t" != e && "\n" != e)
- break;
- ++r
- }
- if (r === t.range.lowerBound)
- return n.range._end = t.range._end,
- e
- }
- return e.push(t),
- e
- }
- i = i.concat(this.handleCJKChange(n));
- const s = o(n.deleted).reduce(a, new Array)
- , l = o(n.inserted).reduce(a, new Array);
- if (l.length > 0 && s.length > 0) {
- const e = l[0]
- , t = s[0];
- let n = e.value
- , o = t.value;
- n.endsWith("...") && n.length > 3 ? (n = n.replace("...", ""),
- o.startsWith(n) && (i.push({
- from: new r.IndexRange(t.range.start,t.range.start + n.length - 1),
- to: new r.IndexRange(e.range.start,e.range.start + n.length - 1)
- }),
- e.range._start += n.length,
- t.range._start += n.length)) : o.endsWith("...") && o.length > 3 && (o = o.replace("...", ""),
- n.startsWith(o) && (i.push({
- from: new r.IndexRange(t.range.start,t.range.start + o.length - 1),
- to: new r.IndexRange(e.range.start,e.range.start + o.length - 1)
- }),
- e.range._start += o.length,
- t.range._start += o.length))
- }
- i = i.concat(s.map(e=>({
- from: e.range,
- to: void 0
- }))),
- i = i.concat(l.map(e=>({
- to: e.range,
- from: void 0
- }))),
- i = i.map(e=>{
- const t = this.fromInfo.visibleRange.start
- , n = this.toInfo.visibleRange.start;
- return e.from && (e.from = new r.IndexRange(e.from.start + t,e.from.end + t)),
- e.to && (e.to = new r.IndexRange(e.to.start + n,e.to.end + n)),
- e
- }
- ),
- i = i.concat(this.fromInfo.clippedRanges.map(e=>({
- from: e,
- to: void 0
- }))),
- i = i.concat(this.toInfo.clippedRanges.map(e=>({
- from: void 0,
- to: e
- }))),
- i = o(i.map(e=>{
- let t = [];
- const n = e.from;
- n && (t = t.concat(Array.from(this.fromInfo.unitBreakIndices).filter(e=>e > n.start && e <= n.end).map(e=>e - n.start)),
- t.push(n.upperBound - n.start));
- const i = e.to;
- i && (t = t.concat(Array.from(this.toInfo.unitBreakIndices).filter(e=>e > i.start && e <= i.end).map(e=>e - i.start)),
- t.push(i.upperBound - i.start)),
- t = t.sort((e,t)=>e - t);
- const o = [];
- let a = 0;
- for (const e of t) {
- if (e === a)
- continue;
- const t = {
- from: void 0,
- to: void 0
- };
- n && (t.from = new r.IndexRange(n.start + a,n.start + e - 1)),
- i && (t.to = new r.IndexRange(i.start + a,i.start + e - 1)),
- o.push(t),
- a = e
- }
- return o
- }
- )),
- i = i.sort((e,t)=>e.from && t.from ? e.from.start - t.from.start : e.to && t.to ? e.to.start - t.to.start : 0);
- const u = this.fromInfo.computeUnitStates(i.map(e=>e.from))
- , d = this.toInfo.computeUnitStates(i.map(e=>e.to));
- this.units = u.map((e,t)=>new c(e,d[t]))
- }
- performDiff(e, t, n) {
- return i.diff(e, t).reduce((function(r, i) {
- if (i.oldIndex < 0 && i.newIndex < 0)
- return r;
- if (i.oldIndex < 0) {
- const e = t.slice(i.newIndex, i.newIndex + i.length);
- return n.inserted.push(e),
- r
- }
- if (i.newIndex < 0) {
- const t = e.slice(i.oldIndex, i.oldIndex + i.length);
- return n.deleted.push(t),
- r
- }
- let o = e[i.oldIndex].range
- , a = t[i.newIndex].range;
- for (let n = 0; n < i.length; ++n) {
- const s = e[i.oldIndex + n].range
- , l = t[i.newIndex + n].range;
- s.upperBound - o.location != l.upperBound - a.location ? (r.push({
- from: o,
- to: a
- }),
- o = s,
- a = l) : (o._end = s.upperBound - 1,
- a._end = l.upperBound - 1)
- }
- return r.push({
- from: o,
- to: a
- }),
- r
- }
- ), new Array)
- }
- hasCJKChar(e) {
- return !!e.match(h.cjkRegex)
- }
- handleCJKChange(e) {
- let t = !1;
- const n = e=>{
- if (this.hasCJKChar(e.value)) {
- t = t || e.range.length > 1;
- const n = [];
- for (let t = 0; t < e.range.length; ++t)
- n.push(new i.Word(new r.IndexRange(e.range.lowerBound + t,e.range.lowerBound + t),e.base));
- return n
- }
- return [e]
- }
- , a = o(o(e.deleted).map(n))
- , s = o(o(e.inserted).map(n));
- if (!t)
- return [];
- const l = {
- inserted: [],
- deleted: []
- }
- , u = this.performDiff(a, s, l);
- return e.deleted = l.deleted,
- e.inserted = l.inserted,
- u
- }
- }
- t.TextMagicMove = h,
- h.cjkRegex = /[\u4E00-\u9FFF\u3400-\u4DBF\u3040-\u30ff\uf900-\ufaff\uff66-\uff9f]/
- },
- 267: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.diff = t.DiffResult = t.Word = void 0;
- const r = n(268)
- , i = n(113);
- t.Word = class {
- constructor(e, t) {
- this.range = e,
- this.base = t
- }
- get value() {
- return this.base.substr(this.range.location, this.range.length)
- }
- isEqualTo(e) {
- return this.value == e.value
- }
- get diffIdentifier() {
- return this.value
- }
- toString() {
- return `${this.value}{${this.range.location}, ${this.range.location + this.range.length}}`
- }
- }
- ;
- class o {
- constructor(e, t, n) {
- this.oldIndex = e,
- this.newIndex = t,
- this.length = n
- }
- get debugDescription() {
- return `[Diff@(${this.oldIndex},${this.length})=>(${this.newIndex},${this.length})]`
- }
- }
- t.DiffResult = o;
- class a {
- constructor(e=new Set, t=new Set) {
- this.oldIndices = e,
- this.newIndices = t
- }
- appearAtOld(e) {
- this.oldIndices.add(e)
- }
- appearAtNew(e) {
- this.newIndices.add(e)
- }
- removeOldIndex(e) {
- this.oldIndices.delete(e)
- }
- removeNewIndex(e) {
- this.newIndices.delete(e)
- }
- get debugDescription() {
- return this.oldIndices + "|" + this.newIndices
- }
- }
- class s {
- constructor(e, t, n) {
- this.oldIndex = e,
- this.newIndex = t,
- this.length = n
- }
- }
- t.diff = function(e, t) {
- var n;
- const l = {}
- , u = new r.IndexSet
- , c = [];
- for (let e = 0; e < t.length; ++e) {
- const n = t[e].diffIdentifier
- , r = l[n];
- if (r)
- r.appearAtNew(e);
- else {
- const t = new a;
- t.appearAtNew(e),
- l[n] = t
- }
- }
- for (let t = 0; t < e.length; ++t)
- null === (n = l[e[t].diffIdentifier]) || void 0 === n || n.appearAtOld(t);
- const d = e.length
- , f = Array(d).fill(0).map((e,t)=>t).reverse()
- , h = new Set(f);
- function p() {
- if (f.length > 0) {
- const e = f.pop();
- e && h.delete(e)
- }
- }
- function g(e) {
- const t = f.indexOf(e);
- t >= 0 && f.splice(t, 1),
- h.delete(e)
- }
- for (; f.length > 0; ) {
- const t = f[f.length - 1]
- , n = l[e[t].diffIdentifier];
- if (!n) {
- p(),
- u.addIndexes(t),
- e[t];
- continue
- }
- if (0 == n.oldIndices.size) {
- p(),
- e[t];
- continue
- }
- if (0 == n.newIndices.size) {
- p(),
- u.addIndexes(t),
- e[t];
- continue
- }
- const r = Array.from(n.oldIndices).map(t=>{
- let r = t + 1
- , i = n.newIndices;
- for (; h.has(r); ) {
- const t = l[e[r].diffIdentifier];
- if (!t)
- break;
- const n = new Set(Array.from(i).map(e=>e + 1))
- , o = new Set(Array.from(t.newIndices).filter(e=>n.has(e)));
- if (0 == o.size)
- break;
- i = o,
- r += 1
- }
- const o = r - t;
- return new s(t,Math.min(...i) - o + 1,o)
- }
- ).sort((e,t)=>e.length == t.length ? t.oldIndex - e.oldIndex : e.length - t.length).pop();
- r.oldIndex,
- r.length,
- r.newIndex,
- r.length;
- for (let t = r.oldIndex; t < r.oldIndex + r.length; ++t) {
- g(t);
- const n = l[e[t].diffIdentifier];
- n && (n.removeOldIndex(t),
- n.removeNewIndex(r.newIndex + (t - r.oldIndex)))
- }
- c.push([new i.IndexRange(r.oldIndex,r.oldIndex + r.length - 1), new i.IndexRange(r.newIndex,r.newIndex + r.length - 1)])
- }
- return function(e, t, n) {
- const r = [];
- for (const t of e._ranges)
- r.push(new o(t.lowerBound,-1,t.count));
- for (const e of t._ranges)
- r.push(new o(-1,e.lowerBound,e.count));
- for (const e of n)
- r.push(new o(e[0].location,e[1].location,e[0].length));
- return r
- }(u, new r.IndexSet(Object.values(l).reduce((e,t)=>e.concat(Array.from(t.newIndices)), [])), c)
- }
- },
- 268: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.IndexSet = void 0;
- const r = n(113);
- class i {
- constructor(e=[]) {
- if (this._ranges = [],
- this._count = 0,
- void 0 !== e && (!Array.isArray(e) || 0 !== e.length))
- if ("string" == typeof e)
- this._fromString(e);
- else {
- (Array.isArray(e) && e.length > 0 ? e[0] : e)instanceof r.IndexRange ? this.addRanges(e) : this.addIndexes(e)
- }
- }
- static fromString(e) {
- return new i(e)
- }
- addRanges(e) {
- Array.isArray(e) || (e = [e]),
- this._addRanges(e)
- }
- removeRange(e) {
- this._removeRange(e)
- }
- addIndexes(e) {
- let t;
- t = "number" == typeof e || "string" == typeof e ? [e] : e;
- let n = [];
- for (let e = 0; e < t.length; e++) {
- const r = t[e];
- n.push("string" == typeof r ? parseInt(r, 10) : r)
- }
- n = n.sort((function(e, t) {
- return e - t
- }
- ));
- const i = [];
- let o = void 0
- , a = void 0;
- for (let e = 0; e < n.length; e++) {
- const t = n[e];
- void 0 === o && (o = a = t),
- t - a < 2 ? a = t : (i.push(new r.IndexRange(o,a)),
- o = a = t)
- }
- i.push(new r.IndexRange(o,a)),
- this._addRanges(i)
- }
- removeIndexes(e) {
- let t;
- t = "number" == typeof e || "string" == typeof e ? [e] : e;
- for (let e = 0; e < t.length; e++) {
- const n = t[e]
- , i = new r.IndexRange(n,n);
- this._removeRange(i)
- }
- }
- contains(e) {
- e = "string" == typeof e ? parseInt(e, 10) : e;
- for (let t = 0; t < this._ranges.length; t++) {
- if (this._ranges[t].contains(e))
- return !0
- }
- return !1
- }
- get count() {
- return this._count
- }
- indexAt(e) {
- if (e >= this._count || e < 0)
- throw new Error("Index out of range");
- let t = 0
- , n = 0;
- for (let r = 0; r < this._ranges.length; r++) {
- const i = this._ranges[r];
- if (n += i.length,
- e >= t && e < n) {
- const n = e - t;
- return i.start + n
- }
- t += i.length
- }
- return -1
- }
- get firstIndex() {
- return 0 === this._ranges.length ? null : this._ranges[0].start
- }
- get lastIndex() {
- const e = this._ranges.length;
- return 0 === e ? null : this._ranges[e - 1].end
- }
- pagedRanges(e) {
- if (0 === this._ranges.length || void 0 === e)
- return this._ranges;
- const t = [];
- for (let n = 0; n < this._ranges.length; n++) {
- const i = this._ranges[n];
- if (i.length <= e)
- t.push(i);
- else {
- const n = Math.floor(i.length / e)
- , o = i.length % e;
- for (let o = 0; o < n; o++) {
- const n = i.start + e * o;
- t.push(new r.IndexRange(n,n + e - 1))
- }
- o > 0 && t.push(new r.IndexRange(e * n,e * n + o - 1))
- }
- }
- return t
- }
- toString() {
- if (0 === this._ranges.length)
- return "";
- const e = r.IndexRange.compact(this._ranges)
- , t = [];
- for (let n = 0; n < e.length; n++)
- t.push(e[n].toString());
- return t.join(",")
- }
- _addRanges(e) {
- this._ranges = r.IndexRange.compact(this._ranges.concat(e)),
- this._updateCount()
- }
- _removeRange(e) {
- this._ranges.length > 0 && (this._ranges = r.IndexRange.subtract(this._ranges, e)),
- this._updateCount()
- }
- _updateCount() {
- let e = 0;
- for (let t = 0; t < this._ranges.length; t++) {
- e += this._ranges[t].length
- }
- this._count = e
- }
- _fromString(e) {
- const t = e.split(",")
- , n = [];
- for (let e = 0; e < t.length; e++) {
- const i = r.IndexRange.fromString(t[e]);
- if (!i)
- throw new Error("Invalid range");
- n.push(i)
- }
- this._ranges = [],
- this._count = 0,
- this._addRanges(n)
- }
- }
- t.IndexSet = i
- },
- 269: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- , i = this && this.__importDefault || function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.performDissolveTransitionEffect = t.computeDissolveTransitionEffect = void 0;
- const o = i(n(70));
- t.computeDissolveTransitionEffect = function() {
- return {
- effect: "dissolve"
- }
- }
- ,
- t.performDissolveTransitionEffect = function(e, t, n) {
- return r(this, void 0, void 0, (function*() {
- const r = parseFloat(n.el.style.opacity || "1");
- yield Promise.all([o.default({
- targets: [t.el],
- opacity: 0,
- duration: e,
- easing: "easeOutQuad"
- }).finished, o.default({
- targets: [n.el],
- opacity: [0, r],
- duration: e,
- easing: "easeInQuad"
- }).finished])
- }
- ))
- }
- },
- 270: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.performAnimateInSlideTransitionEffect = t.computeAnimateInSlideTransitionEffect = void 0;
- const i = n(5)
- , o = n(75);
- t.computeAnimateInSlideTransitionEffect = function(e) {
- return {
- effect: "animateInSlide",
- targetSlide: e.targetSlide,
- targetSlideEnteringState: e.targetSlideEnteringState
- }
- }
- ,
- t.performAnimateInSlideTransitionEffect = function(e, t, n) {
- return r(this, void 0, void 0, (function*() {
- n.slide = t.targetSlide,
- t.targetSlideEnteringState && (n.slideState = i.mergeSlideState(n.slideState, t.targetSlideEnteringState)),
- yield new o.ViewAnimator({
- duration: e,
- easing: "easeInOutCubic"
- }).animate(()=>{
- n.update()
- }
- ).play()
- }
- ))
- }
- },
- 271: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- , i = this && this.__importDefault || function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.AnimationExecutor = t.performAnimation = void 0;
- const o = n(272)
- , a = n(273);
- function s(e, t, n) {
- var i, s;
- return r(this, void 0, void 0, (function*() {
- const r = Math.floor((null !== (i = t.delayMultiplier) && void 0 !== i ? i : 0) * e);
- r > 0 && (yield new Promise(e=>setTimeout(()=>e(), r)));
- const l = Math.floor((null !== (s = t.durationMultiplier) && void 0 !== s ? s : 1) * e);
- switch (t.effect) {
- case "sleep":
- yield o.performSleepAnimation(l);
- break;
- case "mutate":
- yield a.performSlideMutationAnimation(l, n, t.finalState, t.easing)
- }
- }
- ))
- }
- i(n(70)).default.suspendWhenDocumentHidden = !1,
- t.performAnimation = s;
- t.AnimationExecutor = class {
- constructor(e) {
- var t, n, r;
- this.onStage = {
- preTransition: [],
- transition: [],
- postTransition: []
- },
- this.afterGroup = {},
- this.groupCountDown = {};
- for (const i of e) {
- if ("on"in i)
- this.onStage[i.on].push(i);
- else {
- const e = null !== (t = this.afterGroup[i.after]) && void 0 !== t ? t : [];
- e.push(i),
- this.afterGroup[i.after] = e
- }
- for (const e of null !== (n = i.groups) && void 0 !== n ? n : [])
- this.groupCountDown[e] = (null !== (r = this.groupCountDown[e]) && void 0 !== r ? r : 0) + 1
- }
- }
- performAnimationsOnStage(e, t, n) {
- return r(this, void 0, void 0, (function*() {
- yield Promise.all(this.onStage[t].map(t=>this.performAnimationAndDescendantGroups(e, t, n)))
- }
- ))
- }
- performAnimationAndDescendantGroups(e, t, n) {
- return r(this, void 0, void 0, (function*() {
- yield s(e, t, n),
- yield this.performGroupedAnimationsAfter(e, t, n)
- }
- ))
- }
- performGroupedAnimationsAfter(e, t, n) {
- var i, o;
- return r(this, void 0, void 0, (function*() {
- let r = [];
- for (const e of null !== (i = t.groups) && void 0 !== i ? i : [])
- this.groupCountDown[e] -= 1,
- 0 === this.groupCountDown[e] && (r = r.concat(null !== (o = this.afterGroup[e]) && void 0 !== o ? o : []));
- yield Promise.all(r.map(t=>this.performAnimationAndDescendantGroups(e, t, n)))
- }
- ))
- }
- }
- },
- 272: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.performSleepAnimation = void 0,
- t.performSleepAnimation = function(e) {
- return r(this, void 0, void 0, (function*() {
- if (!(e <= 0))
- return new Promise(t=>setTimeout(t, e))
- }
- ))
- }
- },
- 273: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.performSlideMutationAnimation = void 0;
- const i = n(5)
- , o = n(75);
- t.performSlideMutationAnimation = function(e, t, n, a) {
- return r(this, void 0, void 0, (function*() {
- t.slideState = i.mergeSlideState(t.slideState, n),
- e > 0 ? yield new o.ViewAnimator({
- duration: e,
- easing: a
- }).animate(()=>{
- t.update()
- }
- ).play() : t.update()
- }
- ))
- }
- },
- 274: function(e, t, n) {
- "use strict";
- var r = this && this.__awaiter || function(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.EndingScreenView = void 0;
- const i = n(12)
- , o = n(76)
- , a = n(50);
- class s extends o.View {
- constructor(e) {
- super(e),
- this.content = null,
- this._size = e.size
- }
- createViewElement() {
- return document.createElement("div")
- }
- update() {
- var e, t;
- super.update(),
- this.el.style.position = "absolute",
- this.el.style.left = "0px",
- this.el.style.top = "0px",
- this.el.style.width = i.toCSSLength(this._size.width),
- this.el.style.height = i.toCSSLength(this._size.height),
- this.el.style.transformOrigin = "center center",
- this.el.style.opacity = "1",
- this.el.style.transform = "";
- const n = this.content;
- if (n && n.svgString === this._appliedSVGString || (this._contentEl && this.el.removeChild(this._contentEl),
- delete this._contentEl,
- delete this._appliedSVGString),
- n) {
- const t = null !== (e = this._contentEl) && void 0 !== e ? e : this._contentEl = this._createContentElement(n);
- t.parentElement !== this.el && this.el.appendChild(t),
- this._updateContentElement(t, n),
- this._appliedSVGString = n.svgString
- }
- this.el.style.backgroundColor = null !== (t = null == n ? void 0 : n.backgroundColor) && void 0 !== t ? t : "none"
- }
- _createContentElement(e) {
- return (new DOMParser).parseFromString(e.svgString, "image/svg+xml").documentElement
- }
- _updateContentElement(e, t) {
- const n = this._size
- , r = Math.min(n.width / t.width, n.height / t.height)
- , o = Math.floor(t.width * r)
- , a = Math.floor(t.height * r)
- , s = (n.width - o) / 2
- , l = (n.height - a) / 2;
- e.style.position = "absolute",
- e.style.left = i.toCSSLength(s),
- e.style.top = i.toCSSLength(l),
- e.style.width = i.toCSSLength(o),
- e.style.height = i.toCSSLength(a)
- }
- setOpacity(e) {
- a.ViewAnimator.perform(this.el, {
- opacity: e
- })
- }
- setScale(e) {
- a.ViewAnimator.perform(this.el, {
- transform: [{
- scale: {
- x: e,
- y: e
- }
- }]
- })
- }
- present(e) {
- return r(this, void 0, void 0, (function*() {
- this.setOpacity(0),
- this.setScale(1.3),
- yield new a.ViewAnimator({
- duration: e,
- easing: "easeInOutCubic"
- }).animate(()=>{
- this.setOpacity(1),
- this.setScale(1)
- }
- ).play()
- }
- ))
- }
- dismiss(e) {
- return r(this, void 0, void 0, (function*() {
- yield new a.ViewAnimator({
- duration: e,
- easing: "linear"
- }).animate(()=>{
- this.setOpacity(0)
- }
- ).play()
- }
- ))
- }
- }
- t.EndingScreenView = s
- },
- 275: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.SlideshowExporter = t.slideSequence = void 0;
- const r = n(5)
- , i = n(276)
- , o = n(12)
- , a = n(167)
- , s = n(75)
- , l = n(166)
- , u = n(42);
- function c(e) {
- var t;
- const n = []
- , r = []
- , i = e.getStartingTopicId();
- let o;
- for (i && r.push(i); o = r.pop(); ) {
- n.push({
- topicId: o,
- type: "topic"
- });
- const i = e.getSubtopics(o);
- i.length > 0 && (n.push({
- topicId: o,
- type: "list"
- }),
- r.push(...i.slice().reverse()));
- const a = e.getParentTopicId(o);
- if (!a)
- continue;
- const {summaries: s} = null !== (t = e.getTopicAttributes(a)) && void 0 !== t ? t : {};
- if (a && s) {
- const t = e.getSubtopics(a);
- for (const e of l.computeSummariesEndingAt(t.indexOf(o), s))
- n.push({
- topicId: e.topicId,
- type: "summary"
- }),
- n.push({
- topicId: e.topicId,
- type: "topic"
- })
- }
- }
- return n
- }
- t.slideSequence = c;
- t.SlideshowExporter = class {
- constructor(e) {
- this._fontFamilyInPptx = "Arial",
- this._slideshow = e
- }
- exportPptxSlides() {
- const e = [];
- for (const t of this.collectSlidesForPptx())
- e.push(this.parseSlideContent(t));
- return e
- }
- exportHtmlPages() {
- function e(e, t) {
- const n = new s.SlideView;
- n.slide = e,
- t && (n.slideState = t),
- n.update();
- return n.el.querySelectorAll("svg").forEach(e=>{
- var t;
- const n = e.parentElement;
- null == n || n.removeChild(e);
- const r = document.createElement("div");
- r.setAttribute("style", null !== (t = e.getAttribute("style")) && void 0 !== t ? t : ""),
- e.setAttribute("width", e.style.width + ""),
- e.setAttribute("height", e.style.height + ""),
- e.removeAttribute("style"),
- r.appendChild(e),
- null == n || n.appendChild(r)
- }
- ),
- n
- }
- function t(e) {
- const t = [];
- let n = e.slideState;
- for (; e.slide; ) {
- const i = a.computeMultistepChange({
- kind: "forward"
- }, e.slide, n);
- if (!i || 0 === Object.keys(i).length)
- break;
- const o = new s.SlideView;
- o.slide = e.slide,
- o.slideState = r.mergeSlideState(e.slideState, i),
- n = o.slideState,
- o.update(),
- t.push(o)
- }
- return t
- }
- const n = [];
- for (const r of this.collectSlidesForPdf()) {
- const i = e(r);
- n.push(i.el),
- n.push(...t(i).map(e=>e.el))
- }
- return n
- }
- parseSlideContent(e) {
- var t, n;
- const r = [];
- return e.boxes.forEach(e=>{
- this.parseBoxContent(r, e)
- }
- ),
- u.disposeTextMeasurementHelpers(),
- {
- backgroundColor: i.normalizeTo6DigitsRgb(null !== (t = e.backgroundColor) && void 0 !== t ? t : "#000"),
- backgroundTransparency: i.convertOpacityToTransparency(null !== (n = e.backgroundOpacity) && void 0 !== n ? n : 1),
- boxes: r
- }
- }
- parseBoxContent(e, t, n=0) {
- if (0 !== t.opacity)
- switch (t.contentType) {
- case "text":
- {
- const r = this.adjustFontSizeToFitBox(t);
- e.push(Object.assign(Object.assign({}, this.toPositionedBox(r, n)), this.toPptxText(r)));
- break
- }
- case "image":
- case "svg-template":
- e.push(Object.assign(Object.assign({}, this.toPositionedBox(t, n)), this.toPptxImage(t)));
- break;
- case "shape":
- this.parseShapeBoxContent(e, t, n);
- break;
- case "group":
- t.scrollOffset && (n += t.scrollOffset),
- t.children.forEach(t=>{
- this.parseBoxContent(e, t, n)
- }
- )
- }
- }
- parseShapeBoxContent(e, t, n) {
- var r, i, a, s, l, u;
- const c = document.createElementNS("http://www.w3.org/2000/svg", "svg");
- c.style.position = "absolute",
- c.style.transformOrigin = "0 0",
- c.setAttribute("viewBox", `0 0 ${t.bounds.width} ${t.bounds.height}`);
- const d = document.createElementNS("http://www.w3.org/2000/svg", "path");
- d.setAttribute("d", null !== (r = t.shapePath) && void 0 !== r ? r : ""),
- d.style.fill = null !== (i = t.fillColor) && void 0 !== i ? i : "transparent",
- t.fillColor || (d.style.fillOpacity = "0"),
- d.style.stroke = null !== (a = t.strokeColor) && void 0 !== a ? a : "transparent",
- d.style.strokeWidth = o.toCSSLength(null !== (s = t.lineWidth) && void 0 !== s ? s : 0),
- d.style.strokeLinecap = null !== (l = t.lineCap) && void 0 !== l ? l : "",
- d.style.strokeLinejoin = null !== (u = t.lineJoin) && void 0 !== u ? u : "",
- c.appendChild(d);
- const f = (new XMLSerializer).serializeToString(c)
- , h = unescape(encodeURIComponent(f))
- , p = "data:image/svg+xml;base64," + window.btoa(h);
- e.push(Object.assign({
- data: p
- }, this.toPositionedBox(t, n)))
- }
- collectSlidesForPdf() {
- const e = [];
- let t = this._slideshow.getStartingSlide();
- if (t)
- for (e.push(t); ; ) {
- const n = this._slideshow.getTransition({
- kind: "forward"
- }, t);
- if (!n || !n.targetSlide)
- break;
- t = n.targetSlide,
- 0 != t.boxes.length && 1 != t.autoForwarding && e.push(t)
- }
- return e
- }
- collectSlidesForPptx() {
- return c(this._slideshow.contentProvider).map(({topicId: e, type: t})=>this._slideshow.getTemplateSlide(t, e)).filter(e=>!!e).filter(e=>!this._slideshow.isSlideSkipped(e))
- }
- toPptxText(e) {
- var t, n, r;
- const o = i.convertFontSizeToPt(null !== (t = e.fontSize) && void 0 !== t ? t : "12px", this._slideshow.slideSize.height);
- return {
- text: e.text,
- color: i.normalizeTo6DigitsRgb(null !== (n = e.textColor) && void 0 !== n ? n : "#fff"),
- fontSize: o,
- fontFace: this._fontFamilyInPptx,
- bold: "bold" == e.fontWeight,
- align: i.convertTextAlignmentToHAlign(null !== (r = e.textAlignment) && void 0 !== r ? r : "center"),
- valign: "top",
- margin: 0,
- shrinkText: !0,
- lineSpacing: i.convertLineHeightToLineSpacingInPt(this._slideshow.slideSize.height, o, e.lineHeight)
- }
- }
- toPptxImage(e) {
- var t;
- const n = {};
- if ("imageSource"in e)
- e.imageSource.startsWith("data:") ? n.data = e.imageSource : n.path = e.imageSource;
- else {
- const r = (new DOMParser).parseFromString(e.svg, "image/svg+xml").documentElement;
- r.setAttribute("fill", null !== (t = e.fillColor) && void 0 !== t ? t : "");
- const i = (new XMLSerializer).serializeToString(r)
- , o = unescape(encodeURIComponent(i))
- , a = btoa(o);
- n.data = "data:image/svg+xml;base64," + a
- }
- return n
- }
- toPositionedBox(e, t) {
- var n;
- const {width: r, height: o} = this._slideshow.slideSize
- , {x: a, y: s, width: l, height: u} = e.absBounds;
- return {
- x: "textIndent"in e ? i.toPercentage(a + parseFloat(null !== (n = e.textIndent) && void 0 !== n ? n : "0"), r) : i.toPercentage(a, r),
- y: i.toPercentage(s - t, o),
- w: "text"in e ? i.toCeilPercentage(l, r) : i.toPercentage(l, r),
- h: "text"in e ? i.toCeilPercentage(u, o) : i.toPercentage(u, o)
- }
- }
- adjustFontSizeToFitBox(e) {
- const t = Object.assign({}, e, {
- fontFamily: [this._fontFamilyInPptx]
- });
- let {height: n, fontSize: r} = u.measureText(t, {
- maxWidth: t.absBounds.width
- });
- for (; n > t.absBounds.height; ) {
- t.fontSize = r - 1 + "px";
- const e = u.measureText(t, {
- maxWidth: t.absBounds.width
- });
- n = e.height,
- r = e.fontSize
- }
- return t
- }
- }
- },
- 276: function(e, t, n) {
- "use strict";
- function r(e) {
- return 5.625 * e * 72
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.convertTextAlignmentToHAlign = t.convertOpacityToTransparency = t.normalizeTo6DigitsRgb = t.convertLineHeightToLineSpacingInPt = t.convertFontSizeToPt = t.convertPercentageToPt = t.toCeilPercentage = t.toPercentage = void 0,
- t.toPercentage = function(e, t) {
- return (e / t * 100).toFixed(2) + "%"
- }
- ,
- t.toCeilPercentage = function(e, t) {
- return Math.ceil(e / t * 100).toFixed(2) + "%"
- }
- ,
- t.convertPercentageToPt = r,
- t.convertFontSizeToPt = function(e, t) {
- return r(parseFloat(e) / t * .94)
- }
- ,
- t.convertLineHeightToLineSpacingInPt = function(e, t, n) {
- if (n)
- return n.endsWith("em") ? t * parseFloat(n) : n.endsWith("px") ? r(parseFloat(n) / e) : void 0
- }
- ,
- t.normalizeTo6DigitsRgb = function(e) {
- if (3 != e.slice(1).length)
- return e;
- let t = e.split("").map(e=>"#" == e ? e : e + e).join("");
- return "#" != t[0] && (t = "#" + e),
- t
- }
- ,
- t.convertOpacityToTransparency = function(e) {
- return 100 * (1 - e)
- }
- ,
- t.convertTextAlignmentToHAlign = function(e) {
- switch (e) {
- case "leading":
- return "left";
- case "trailing":
- return "right";
- default:
- return "center"
- }
- }
- },
- 277: function(e, t, n) {
- (function(e, t) {
- !function(e, n) {
- "use strict";
- if (!e.setImmediate) {
- var r, i, o, a, s, l = 1, u = {}, c = !1, d = e.document, f = Object.getPrototypeOf && Object.getPrototypeOf(e);
- f = f && f.setTimeout ? f : e,
- "[object process]" === {}.toString.call(e.process) ? r = function(e) {
- t.nextTick((function() {
- p(e)
- }
- ))
- }
- : !function() {
- if (e.postMessage && !e.importScripts) {
- var t = !0
- , n = e.onmessage;
- return e.onmessage = function() {
- t = !1
- }
- ,
- e.postMessage("", "*"),
- e.onmessage = n,
- t
- }
- }() ? e.MessageChannel ? ((o = new MessageChannel).port1.onmessage = function(e) {
- p(e.data)
- }
- ,
- r = function(e) {
- o.port2.postMessage(e)
- }
- ) : d && "onreadystatechange"in d.createElement("script") ? (i = d.documentElement,
- r = function(e) {
- var t = d.createElement("script");
- t.onreadystatechange = function() {
- p(e),
- t.onreadystatechange = null,
- i.removeChild(t),
- t = null
- }
- ,
- i.appendChild(t)
- }
- ) : r = function(e) {
- setTimeout(p, 0, e)
- }
- : (a = "setImmediate$" + Math.random() + "$",
- s = function(t) {
- t.source === e && "string" == typeof t.data && 0 === t.data.indexOf(a) && p(+t.data.slice(a.length))
- }
- ,
- e.addEventListener ? e.addEventListener("message", s, !1) : e.attachEvent("onmessage", s),
- r = function(t) {
- e.postMessage(a + t, "*")
- }
- ),
- f.setImmediate = function(e) {
- "function" != typeof e && (e = new Function("" + e));
- for (var t = new Array(arguments.length - 1), n = 0; n < t.length; n++)
- t[n] = arguments[n + 1];
- var i = {
- callback: e,
- args: t
- };
- return u[l] = i,
- r(l),
- l++
- }
- ,
- f.clearImmediate = h
- }
- function h(e) {
- delete u[e]
- }
- function p(e) {
- if (c)
- setTimeout(p, 0, e);
- else {
- var t = u[e];
- if (t) {
- c = !0;
- try {
- !function(e) {
- var t = e.callback
- , n = e.args;
- switch (n.length) {
- case 0:
- t();
- break;
- case 1:
- t(n[0]);
- break;
- case 2:
- t(n[0], n[1]);
- break;
- case 3:
- t(n[0], n[1], n[2]);
- break;
- default:
- t.apply(void 0, n)
- }
- }(t)
- } finally {
- h(e),
- c = !1
- }
- }
- }
- }
- }("undefined" == typeof self ? void 0 === e ? this : e : self)
- }
- ).call(this, n(20), n(69))
- },
- 279: function(e, t, n) {
- "use strict";
- n.r(t),
- n.d(t, "ShareStorage", (function() {
- return a
- }
- ));
- var r = n(4)
- , i = n(90)
- , o = n.n(i);
- class a {
- constructor() {
- this.storage = void 0,
- this.fallbackCahced = {},
- this.waitUntilDbReady(),
- this.autoClean()
- }
- waitUntilDbReady() {
- return Object(r.a)(this, void 0, void 0, (function*() {
- try {
- yield o.a.ready()
- } catch (e) {
- return
- }
- this.storage = o.a.createInstance({
- name: "Share-" + a.SHARE_STORAGE_VERSION,
- driver: [o.a.INDEXEDDB, o.a.WEBSQL, o.a.LOCALSTORAGE]
- })
- }
- ))
- }
- setItem(e, t) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- yield this.waitUntilDbReady();
- const n = ()=>this.fallbackCahced[e] = t;
- if (this.storage)
- try {
- this.storage.setItem(e, t)
- } catch (e) {
- return n(),
- void console.error("Error", e)
- }
- else
- n()
- }
- ))
- }
- getItem(e) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- return yield this.waitUntilDbReady(),
- this.fallbackCahced[e] || this.storage && (yield this.storage.getItem(e))
- }
- ))
- }
- removeItem(e) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- delete this.fallbackCahced[e],
- yield this.waitUntilDbReady(),
- this.storage && (yield this.storage.removeItem(e))
- }
- ))
- }
- getRealItemKey(e) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- yield this.waitUntilDbReady();
- let t = [];
- return t = this.storage ? yield this.storage.keys() : Object.keys(this.fallbackCahced),
- t.find(t=>t.startsWith(e + "#"))
- }
- ))
- }
- autoClean() {
- return Object(r.a)(this, void 0, void 0, (function*() {
- if (yield this.waitUntilDbReady(),
- !this.storage)
- return;
- const e = (yield this.storage.keys()).sort((e,t)=>e.split("#")[1] > t.split("#")[1] ? 1 : -1).slice(0, -1 * a.MAX_CACHE_AMOUNT);
- for (const t of e)
- yield this.storage.removeItem(t)
- }
- ))
- }
- getSharedMap(e) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- const t = yield this.getRealItemKey(e);
- if (t)
- return yield this.getItem(t)
- }
- ))
- }
- setSharedMap(e, t) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- const n = yield this.getRealItemKey(e);
- n && (yield this.removeItem(n)),
- yield this.setItem(e + "#" + Date.now(), t)
- }
- ))
- }
- removeSharedMap(e) {
- return Object(r.a)(this, void 0, void 0, (function*() {
- const t = yield this.getRealItemKey(e);
- t && (yield this.removeItem(t))
- }
- ))
- }
- }
- a.SHARE_STORAGE_VERSION = "2.0",
- a.MAX_CACHE_AMOUNT = 5
- },
- 280: function(e, t, n) {
- "use strict";
- n.r(t),
- n.d(t, "createServices", (function() {
- return b
- }
- ));
- var r = n(1)
- , i = n(4);
- var o = n(60)
- , a = n(138)
- , s = n.n(a);
- const l = function(e) {
- const t = []
- , n = e.model.toJSON();
- for (let r = 0; r < n.sheetOrder.length; r++) {
- const i = e.model.getSheetByIndex(r).toJSON();
- i.id = n.sheetOrder[r];
- for (const e of n.sheets)
- if (i.id === e.id) {
- i.title = e.title;
- break
- }
- t.push(i)
- }
- return {
- sheets: t
- }
- };
- function u(e, t, r={}) {
- return Object(i.a)(this, void 0, void 0, (function*() {
- const [r] = yield Promise.all([n.e(303).then(n.t.bind(null, 1177, 7))]);
- if (e) {
- window.mode;
- const n = "https://assets.xmind.net/static/snowbird@0.0.23/"
- , o = yield function(e) {
- return Object(i.a)(this, void 0, void 0, (function*() {
- const {file: t, container: n, password: r, Snowbrush: i, resourceUrlPrefix: o, languageCode: a} = e
- , {fromXMind: l, isFileEncrypted: u} = i.formatconverter;
- i.config({
- [i.constant.CONFIG.URL_PREFIX]: o,
- [i.constant.CONFIG.LANGUAGE]: a,
- [i.constant.CONFIG.MAX_SCALE]: 500,
- [i.constant.CONFIG.NO_ANIMATION]: !0,
- [i.constant.CONFIG.MIN_SCALE]: 20,
- [i.constant.CONFIG.NO_KEYBIND]: !0,
- [i.constant.CONFIG.INFO_ITEM_STYLE]: i.constant.INFO_ITEM_STYLE_TYPE.FASHION,
- [i.constant.CONFIG.NO_EDIT_RECEIVER]: !0,
- [i.constant.CONFIG.FAKE_IMAGE]: !1,
- [i.constant.CONFIG.HIDE_COLLAPSE_BTN]: !1,
- [i.constant.CONFIG.READONLY]: !0
- });
- const c = yield function(e, t) {
- return new Promise((n,r)=>{
- (new s.a).loadAsync(e).then(e=>{
- l(e, {
- password: t
- }).then(e=>{
- const t = {
- sheets: e.sheets.map(e=>({
- id: e.id,
- title: e.title
- })),
- id: i.utils.UUID()
- };
- n({
- workbook: t,
- sheets: e.sheets,
- resources: e.manifest.resources,
- isOldVersion: e.isOldVersion
- })
- }
- ).catch(t=>{
- u(e).then(e=>r(e ? "PasswordError" : t)).catch(e=>r(e))
- }
- )
- }
- )
- }
- )
- }(t, r)
- , d = new i.Model.Workbook(c.workbook);
- c.sheets.forEach(e=>{
- d.addSheet(e.id, e)
- }
- );
- const f = new i.WorkbookEditor({
- el: n,
- model: d
- });
- f.config(i.constant.CONFIG.XAP_LOADER, e=>{
- let t = e.substring("xap:".length, e.length)
- , n = c.resources && c.resources[t];
- return new Promise(e=>{
- let r = "";
- switch (!0) {
- case t.endsWith(".svg"):
- r = "image/svg+xml";
- break;
- case t.endsWith(".png"):
- r = "image/png";
- break;
- case t.endsWith(".jpg"):
- case t.endsWith(".jpeg"):
- r = "image/jpeg";
- break;
- case t.endsWith("gif"):
- r = "image/gif"
- }
- let i = new Blob([n],{
- type: r
- });
- const o = new FileReader;
- o.readAsDataURL(i),
- o.onloadend = function() {
- e(o.result)
- }
- }
- )
- }
- );
- return {
- workbookEditor: f,
- switchSheetTo: f.switchTo.bind(f),
- getSheetsCount: ()=>f.sheetEditors.length,
- getSheetTitle: e=>f.model.getSheetByIndex(e).title,
- collapseBranch: (()=>f.execAction("collapseBranch")).bind(f),
- extendBranch: (()=>f.execAction("extendBranch")).bind(f),
- zoom: (e=>f.execAction("zoom", {
- scale: e
- })).bind(f),
- getZoomPencentage: f.getZoomPencentage.bind(f),
- close: ()=>{
- f.remove()
- }
- }
- }
- ))
- }({
- Snowbrush: r.default,
- container: t,
- file: e,
- languageCode: "en-US",
- resourceUrlPrefix: n,
- password: ""
- });
- return Object.assign(Object.assign({}, o), {
- resourceUrlPrefix: n,
- model: l(o.workbookEditor)
- })
- }
- }
- ))
- }
- var c = n(174)
- , d = n(84);
- class f {
- constructor(e) {
- this.state = e
- }
- }
- class h {
- constructor(e) {
- this.state = e
- }
- }
- var p = n(23);
- class g extends h {
- getReadonlyWorkbook() {
- if (this.state.value.readonlyWorkbook.value)
- return this.state.value.readonlyWorkbook.value;
- throw new Error("Readonly workbook are not initialized!")
- }
- getSheetEditor(e) {
- const t = this.getReadonlyWorkbook();
- return e ? t.workbookEditor.getSheetEditorById(e) : t.workbookEditor.getCurrentSheetEditor()
- }
- get currentSheetViewportBounds() {
- return Object(r.computed)(()=>{
- const e = this.getSheetEditor(this.state.value.currentSheetId);
- if (!e)
- return null;
- return {
- scrollLeft: e.el.scrollLeft,
- scrollTop: e.el.scrollTop,
- width: e.el.offsetWidth,
- height: e.el.offsetHeight
- }
- }
- )
- }
- getTopicBounds(e, t) {
- const n = this.getSheetEditor(t);
- if (!n)
- return null;
- const r = n.getComponentViewById(e);
- if (!r)
- return null;
- const i = r.el.getBoundingClientRect();
- return {
- width: i.width,
- height: i.height,
- x: i.x || i.left,
- y: i.y || i.top
- }
- }
- getModel(e, t, n) {
- const r = this.getSheetEditor(n);
- if (!r)
- return null;
- const i = r.getComponentViewById(e);
- return i ? i.model && i.model.get(t) : null
- }
- getNotesById(e, t) {
- return this.getModel(e, "notes", t)
- }
- getHrefById(e, t) {
- return this.getModel(e, "href", t)
- }
- getCommentsById(e, t) {
- return this.getModel(e, "comments", t)
- }
- getExtensionById(e, t) {
- return this.getModel(e, "extensions", t)
- }
- getLabelsById(e, t) {
- return this.getModel(e, "labels", t)
- }
- getAudioNoteById(e, t) {
- const n = this.getSheetEditor(t);
- if (!n)
- return null;
- return n.getComponentViewById(e).model.getAudioNotes()
- }
- getTopicTitleById(e, t) {
- var n, r;
- const i = null === (n = this.getReadonlyWorkbook()) || void 0 === n ? void 0 : n.workbookEditor
- , o = i.model.sheets;
- for (const t of o) {
- const t = null === (r = i.getComponentViewById(e)) || void 0 === r ? void 0 : r.model;
- if (t)
- return t.getTitle()
- }
- }
- getSheetTitleByTopicId(e) {
- var t;
- const n = (null === (t = this.getReadonlyWorkbook()) || void 0 === t ? void 0 : t.workbookEditor).model.sheets;
- for (const t of n) {
- if (t.findComponentById(e))
- return t.attributes.title
- }
- }
- getViewportBounds(e) {
- const t = this.getSheetEditor(e);
- if (!t)
- return null;
- return {
- scrollLeft: t.el.scrollLeft,
- scrollTop: t.el.scrollTop,
- width: t.el.offsetWidth,
- height: t.el.offsetHeight
- }
- }
- getRootTopic(e) {
- const t = this.getSheetEditor(e);
- return t && t.model ? t.model.attributes.rootTopic : null
- }
- getResourceUrlPrefix() {
- const e = this.getReadonlyWorkbook();
- return e && e.resourceUrlPrefix
- }
- getTopicViewBackgroundColor(e) {
- const t = this.getSheetEditor(e);
- if (!t)
- return;
- const n = t.getSheetView();
- return n && n.figure && n.figure.backgroundColor ? n.figure.backgroundColor : void 0
- }
- getTopicImageSize(e, t) {
- const n = this.getSheetEditor(t);
- if (!n)
- return;
- const r = n.getComponentViewById(e);
- if (!r)
- return;
- let i = 0
- , o = 0;
- if (r && r.topicView && r.topicView.image && r.topicView.image.figure && r.topicView.image.figure.originalSize) {
- const e = r.topicView.image.figure.originalSize;
- i = e.width,
- o = e.height
- }
- return {
- width: i,
- height: o
- }
- }
- getMapImage(e, t) {
- const n = this.getSheetEditor(t);
- return n ? n.exportImage({
- format: "SVG"
- }).then(t=>({
- width: t.width,
- height: t.height,
- svgString: t.data,
- backgroundColor: e
- })) : null
- }
- }
- class m extends f {
- init(e, t) {
- return Object(i.a)(this, void 0, void 0, (function*() {
- this.state.value.readonlyWorkbook.value && (console.warn("A workbook already activated, closing .."),
- this.state.value.readonlyWorkbook.value.close());
- const n = yield u(t, e);
- if (n) {
- this.state.value.readonlyWorkbook.value = n,
- this.state.value.sheets = n.model.sheets.map(e=>({
- title: e.title,
- id: e.id
- }));
- const e = n.workbookEditor
- , t = window.Snowbrush
- , r = ()=>{
- const t = e.getCurrentSheetEditor();
- t && (this.state.value.zoomScale = t.getSVGView().getScale())
- }
- , o = ()=>{
- const t = e.getCurrentSheetEditor();
- t && (this.state.value.currentSheetId = t.model.getId())
- }
- , a = ()=>{
- const n = e.getCurrentSheetEditor();
- if (!n)
- return;
- const r = n.model.getId()
- , i = e.getComponentViewById(r);
- i && (this.state.value.currentSheetBackgroundColor = t.utils.styleManager.getStyleValue(i, "svg:fill"))
- }
- , s = ()=>Object(i.a)(this, void 0, void 0, (function*() {
- yield new Promise(e=>setTimeout(e));
- const t = e.getCurrentSheetEditor();
- if (t) {
- const e = t.getContentBound();
- this.state.value.firstSheetContentBounds.height = e.height,
- this.state.value.firstSheetContentBounds.width = e.width
- }
- }
- ));
- e.on(t.constant.EVENTS.SCALE_CHANGED, ()=>{
- r()
- }
- ),
- e.on(t.constant.EVENTS.SHEET_SWITCHED, ()=>{
- r(),
- o(),
- a()
- }
- ),
- n.switchSheetTo(0),
- r(),
- o(),
- s(),
- e.onEvent("click", t.constant.VIEW_TYPE.INFORMATION_ICON, e=>{
- let n = null
- , r = e.sbView.parent().model.get("id");
- const i = e.sbView && e.sbView.iconType;
- i && (i === t.constant.VIEW_TYPE.NOTE ? (r = e.sbView.parent().model.getId(),
- n = "notes") : i === t.constant.VIEW_TYPE.HREF ? n = "hyperlink" : "jump" === i ? n = "topiclink" : i == t.constant.VIEW_TYPE.COMMENT || t.constant.VIEW_TYPE.TASK == i ? n = "comment" : i === t.constant.VIEW_TYPE.ATTACHMENT ? n = "attachment" : i === t.constant.VIEW_TYPE.FILE ? n = "file" : i === t.constant.VIEW_TYPE.INFO_MORE ? n = "info-more" : i === t.constant.VIEW_TYPE.AUDIO ? n = "audio-note" : console.warn("Unprocessed iconType " + i)),
- n && r && (this.state.value.events.click = {
- triggerId: t.utils.UUID(),
- currentTargetId: r,
- clientX: e.clientX,
- clientY: e.clientY,
- currentTargetType: n
- })
- }
- ),
- this.unlistenFullscreenEvents = Object(p.onFullScreenChanged)(()=>{
- this.state.value.isFullscreen = Object(p.isFullScreen)()
- }
- ),
- this.state.value.isReady = !0
- }
- }
- ))
- }
- getReadonlyWorkbook() {
- if (this.state.value.readonlyWorkbook.value)
- return this.state.value.readonlyWorkbook.value;
- throw new Error("Readonly workbook are not initialized!")
- }
- zoomScale(e) {
- const {offset: t} = e
- , n = this.getReadonlyWorkbook()
- , r = n.workbookEditor.getCurrentSheetEditor().getSVGView().getScale()
- , i = [...new Set(c.PresetZoomScales.concat([r]))].sort((e,t)=>e > t ? 1 : -1);
- return n.zoom(i[i.indexOf(r) + t] || r)
- }
- execAction(e, t) {
- const n = this.getReadonlyWorkbook().workbookEditor;
- let r = (t && t.targetIds && t.targetIds.slice(0) || []).map(e=>n.getComponentViewById(e)).filter(Boolean);
- return Array.isArray(r) && r.length || (r = n.getSelections()),
- n.execAction.apply(n, [e, Object.assign(Object.assign({}, t), {
- targets: r
- })])
- }
- zoom(e) {
- this.getReadonlyWorkbook().zoom(e)
- }
- zoomIn() {
- this.zoomScale({
- offset: -1
- })
- }
- zoomOut() {
- this.zoomScale({
- offset: 1
- })
- }
- fitMap() {
- const e = window.Snowbrush;
- this.execAction(e.constant.ACTION_NAMES.FIT_MAP)
- }
- switchSheet(e) {
- const t = this.getReadonlyWorkbook()
- , n = this.state.value.sheets.findIndex(t=>t.id === e);
- -1 !== n ? t.workbookEditor.switchTo(n) : console.error("Sheet not found!", e)
- }
- moveViewport(e) {
- const t = window.Snowbrush;
- return this.execAction(t.constant.ACTION_NAMES.MOVE_VIEWPORT, e)
- }
- openWithApp(e) {
- return Object(i.a)(this, void 0, void 0, (function*() {
- const t = window.navigator.userAgent.toLowerCase()
- , n = ["mobile", "android", "ios"].some(e=>t.includes(e));
- document.location.href = n ? `xmind://${location.hostname}/openFile?url=${encodeURIComponent(e)}&name=${encodeURIComponent(d.b.name)}` : "xmind-zen://editor/open-url?url=" + encodeURIComponent(e)
- }
- ))
- }
- openHref(e) {
- return Object(i.a)(this, void 0, void 0, (function*() {
- const t = window.Snowbrush;
- if (e.startsWith("xmind:#")) {
- const n = e.replace("xmind:#", "");
- this.execAction(t.constant.ACTION_NAMES.SELECT_TOPIC_BY_ID, {
- componentId: n,
- callback: ({reject: e})=>{
- e && alert("The target topic may have been deleted.")
- }
- })
- } else
- e.startsWith("file:") || e.startsWith("http:") || e.startsWith("https:") ? window.open(e) : window.location.href = e
- }
- ))
- }
- destroy() {
- return Object(i.a)(this, void 0, void 0, (function*() {
- this.unlistenFullscreenEvents && this.unlistenFullscreenEvents();
- this.getReadonlyWorkbook().close()
- }
- ))
- }
- requestFullscreen() {
- Object(p.requestFullScreen)(document.body)
- }
- exitFullscreen() {
- Object(p.exitFullScreen)()
- }
- toggleFullscreen() {
- Object(p.isFullScreen)() ? this.exitFullscreen() : this.requestFullscreen()
- }
- openEmbedCodeDialog() {
- const e = this.state.value.firstSheetContentBounds.height / this.state.value.firstSheetContentBounds.width
- , t = Math.min(750, this.state.value.firstSheetContentBounds.width)
- , n = Math.min(Math.max(422, t * e), 1e3)
- , r = (location.pathname.match(/^\/(m|embed)\/(([0-9A-Za-z])+)/) || [])[2]
- , o = document.createElement("textarea");
- o.readOnly = !0,
- o.classList.add("share-embed-code-textarea"),
- o.innerText = `<iframe src='https://www.xmind.app/embed/${r}/' width='${t.toFixed(0)}' height='${n.toFixed(0)}' frameborder='0' scrolling='no' allowfullscreen="true"></iframe>`;
- const a = new window.utils.Dialog({
- title: "Embed Code",
- contents: [o, '<span class="form-text text-muted">Copy the code to embed this map into your article. The embed map can even be zoomed in / out.</span>'],
- confirmText: "COPY TO CLIPBOARD",
- confirmAction: ()=>Object(i.a)(this, void 0, void 0, (function*() {
- o.select(),
- o.setSelectionRange(0, o.value.length),
- document.execCommand("copy")
- }
- )),
- closeAction(e) {
- return Object(i.a)(this, void 0, void 0, (function*() {
- e.hide()
- }
- ))
- }
- });
- a.$cancel.hide(),
- a.show()
- }
- }
- class v extends f {
- }
- const y = ()=>{
- const e = Object(r.ref)({
- isReady: !1,
- isFullscreen: !1,
- readonlyWorkbook: Object(p.nonReactive)(void 0),
- zoomScale: 100,
- sheets: [],
- currentSheetId: "",
- currentSheetBackgroundColor: "",
- events: {
- click: {
- triggerId: "",
- clientX: 0,
- clientY: 0,
- currentTargetId: "",
- currentTargetType: null
- }
- },
- firstSheetContentBounds: {
- width: 720,
- height: 360
- }
- })
- , t = new m(e)
- , n = new g(e)
- , i = Object(r.ref)({
- isWorkbookLoading: !0,
- fileDownloadURL: "",
- fileSize: 0
- });
- return {
- workbook: {
- state: e,
- actions: t,
- getters: n
- },
- frame: {
- state: i,
- actions: new v(i)
- }
- }
- }
- ;
- o.default.use(r.default);
- const b = ()=>{
- const e = y();
- return (e=>{
- Object(r.watch)(()=>e.workbook.state.value.events.click, (t,n)=>Object(i.a)(void 0, void 0, void 0, (function*() {
- if (t.triggerId && t.triggerId !== n.triggerId)
- return "hyperlink" === t.currentTargetType || "topiclink" === t.currentTargetType ? e.workbook.actions.openHref(e.workbook.getters.getHrefById(t.currentTargetId)) : void 0
- }
- )))
- }
- )(e),
- (e=>{
- const t = window.navigator.userAgent.toLowerCase();
- t.includes("safari") && !t.includes("mobile") && (document.addEventListener("gesturestart", e=>{
- e.preventDefault(),
- e.stopPropagation(),
- e.stopImmediatePropagation()
- }
- ),
- document.addEventListener("gesturechange", e=>{
- e.preventDefault(),
- e.stopPropagation(),
- e.stopImmediatePropagation()
- }
- ),
- document.addEventListener("gestureend", e=>{
- e.preventDefault(),
- e.stopPropagation(),
- e.stopImmediatePropagation()
- }
- ))
- }
- )(),
- {
- store: e
- }
- }
- },
- 3: function(e, t, n) {
- "use strict";
- function r(e, t) {
- for (var n = [], r = {}, i = 0; i < t.length; i++) {
- var o = t[i]
- , a = o[0]
- , s = {
- id: e + ":" + i,
- css: o[1],
- media: o[2],
- sourceMap: o[3]
- };
- r[a] ? r[a].parts.push(s) : n.push(r[a] = {
- id: a,
- parts: [s]
- })
- }
- return n
- }
- n.r(t),
- n.d(t, "default", (function() {
- return h
- }
- ));
- var i = "undefined" != typeof document;
- if ("undefined" != typeof DEBUG && DEBUG && !i)
- throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");
- var o = {}
- , a = i && (document.head || document.getElementsByTagName("head")[0])
- , s = null
- , l = 0
- , u = !1
- , c = function() {}
- , d = null
- , f = "undefined" != typeof navigator && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
- function h(e, t, n, i) {
- u = n,
- d = i || {};
- var a = r(e, t);
- return p(a),
- function(t) {
- for (var n = [], i = 0; i < a.length; i++) {
- var s = a[i];
- (l = o[s.id]).refs--,
- n.push(l)
- }
- t ? p(a = r(e, t)) : a = [];
- for (i = 0; i < n.length; i++) {
- var l;
- if (0 === (l = n[i]).refs) {
- for (var u = 0; u < l.parts.length; u++)
- l.parts[u]();
- delete o[l.id]
- }
- }
- }
- }
- function p(e) {
- for (var t = 0; t < e.length; t++) {
- var n = e[t]
- , r = o[n.id];
- if (r) {
- r.refs++;
- for (var i = 0; i < r.parts.length; i++)
- r.parts[i](n.parts[i]);
- for (; i < n.parts.length; i++)
- r.parts.push(m(n.parts[i]));
- r.parts.length > n.parts.length && (r.parts.length = n.parts.length)
- } else {
- var a = [];
- for (i = 0; i < n.parts.length; i++)
- a.push(m(n.parts[i]));
- o[n.id] = {
- id: n.id,
- refs: 1,
- parts: a
- }
- }
- }
- }
- function g() {
- var e = document.createElement("style");
- return e.type = "text/css",
- a.appendChild(e),
- e
- }
- function m(e) {
- var t, n, r = document.querySelector('style[data-vue-ssr-id~="' + e.id + '"]');
- if (r) {
- if (u)
- return c;
- r.parentNode.removeChild(r)
- }
- if (f) {
- var i = l++;
- r = s || (s = g()),
- t = b.bind(null, r, i, !1),
- n = b.bind(null, r, i, !0)
- } else
- r = g(),
- t = _.bind(null, r),
- n = function() {
- r.parentNode.removeChild(r)
- }
- ;
- return t(e),
- function(r) {
- if (r) {
- if (r.css === e.css && r.media === e.media && r.sourceMap === e.sourceMap)
- return;
- t(e = r)
- } else
- n()
- }
- }
- var v, y = (v = [],
- function(e, t) {
- return v[e] = t,
- v.filter(Boolean).join("\n")
- }
- );
- function b(e, t, n, r) {
- var i = n ? "" : r.css;
- if (e.styleSheet)
- e.styleSheet.cssText = y(t, i);
- else {
- var o = document.createTextNode(i)
- , a = e.childNodes;
- a[t] && e.removeChild(a[t]),
- a.length ? e.insertBefore(o, a[t]) : e.appendChild(o)
- }
- }
- function _(e, t) {
- var n = t.css
- , r = t.media
- , i = t.sourceMap;
- if (r && e.setAttribute("media", r),
- d.ssrId && e.setAttribute("data-vue-ssr-id", t.id),
- i && (n += "\n/*# sourceURL=" + i.sources[0] + " */",
- n += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */"),
- e.styleSheet)
- e.styleSheet.cssText = n;
- else {
- for (; e.firstChild; )
- e.removeChild(e.firstChild);
- e.appendChild(document.createTextNode(n))
- }
- }
- },
- 308: function(e, t, n) {
- "use strict";
- n(216)
- },
- 309: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-41ebd106]{color:#fcfcfc}.xm-color-g20[data-v-41ebd106]{color:#f9f9f9}.xm-color-g30[data-v-41ebd106]{color:#ebebeb}.xm-color-g40[data-v-41ebd106]{color:#d6d6d6}.xm-color-g50[data-v-41ebd106]{color:#b2b2b2}.xm-color-g60[data-v-41ebd106]{color:#8c8c8c}.xm-color-g70[data-v-41ebd106]{color:#666}.xm-color-g80[data-v-41ebd106]{color:#2b2b2b}.xm-color-g90[data-v-41ebd106]{color:#111}.share-map__loading[data-v-41ebd106]{height:100%;width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.share-map__loading .dot-animate[data-v-41ebd106]{display:inline-block;overflow:visible;width:1px}.share-map__loading .spinner>*[data-v-41ebd106]{animation:uk-spinner-rotate-data-v-41ebd106 1.4s linear infinite}@keyframes uk-spinner-rotate-data-v-41ebd106{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}.share-map__loading .spinner>*>*[data-v-41ebd106]{stroke-dasharray:88px;stroke-dashoffset:0;transform-origin:center;animation:uk-spinner-dash-data-v-41ebd106 1.4s ease-in-out infinite;stroke-width:1;stroke-linecap:round}@keyframes uk-spinner-dash-data-v-41ebd106{0%{stroke-dashoffset:88px}50%{stroke-dashoffset:22px;transform:rotate(135deg)}100%{stroke-dashoffset:88px;transform:rotate(450deg)}}\n", ""])
- },
- 310: function(e, t, n) {
- "use strict";
- n(217)
- },
- 311: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-700a78a7]{color:#fcfcfc}.xm-color-g20[data-v-700a78a7]{color:#f9f9f9}.xm-color-g30[data-v-700a78a7]{color:#ebebeb}.xm-color-g40[data-v-700a78a7]{color:#d6d6d6}.xm-color-g50[data-v-700a78a7]{color:#b2b2b2}.xm-color-g60[data-v-700a78a7]{color:#8c8c8c}.xm-color-g70[data-v-700a78a7]{color:#666}.xm-color-g80[data-v-700a78a7]{color:#2b2b2b}.xm-color-g90[data-v-700a78a7]{color:#111}.dropdown-toggle[data-v-700a78a7]{min-width:80px}\n", ""])
- },
- 312: function(e, t, n) {
- "use strict";
- n(218)
- },
- 313: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-61c0885c]{color:#fcfcfc}.xm-color-g20[data-v-61c0885c]{color:#f9f9f9}.xm-color-g30[data-v-61c0885c]{color:#ebebeb}.xm-color-g40[data-v-61c0885c]{color:#d6d6d6}.xm-color-g50[data-v-61c0885c]{color:#b2b2b2}.xm-color-g60[data-v-61c0885c]{color:#8c8c8c}.xm-color-g70[data-v-61c0885c]{color:#666}.xm-color-g80[data-v-61c0885c]{color:#2b2b2b}.xm-color-g90[data-v-61c0885c]{color:#111}\n", ""])
- },
- 314: function(e, t, n) {
- "use strict";
- n(219)
- },
- 315: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-40b1f39d]{color:#fcfcfc}.xm-color-g20[data-v-40b1f39d]{color:#f9f9f9}.xm-color-g30[data-v-40b1f39d]{color:#ebebeb}.xm-color-g40[data-v-40b1f39d]{color:#d6d6d6}.xm-color-g50[data-v-40b1f39d]{color:#b2b2b2}.xm-color-g60[data-v-40b1f39d]{color:#8c8c8c}.xm-color-g70[data-v-40b1f39d]{color:#666}.xm-color-g80[data-v-40b1f39d]{color:#2b2b2b}.xm-color-g90[data-v-40b1f39d]{color:#111}.share-map-menu__social a[data-v-40b1f39d]{width:100%;white-space:nowrap}\n", ""])
- },
- 316: function(e, t, n) {
- "use strict";
- n(220)
- },
- 317: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-3c5647e8]{color:#fcfcfc}.xm-color-g20[data-v-3c5647e8]{color:#f9f9f9}.xm-color-g30[data-v-3c5647e8]{color:#ebebeb}.xm-color-g40[data-v-3c5647e8]{color:#d6d6d6}.xm-color-g50[data-v-3c5647e8]{color:#b2b2b2}.xm-color-g60[data-v-3c5647e8]{color:#8c8c8c}.xm-color-g70[data-v-3c5647e8]{color:#666}.xm-color-g80[data-v-3c5647e8]{color:#2b2b2b}.xm-color-g90[data-v-3c5647e8]{color:#111}a[data-v-3c5647e8]{display:block;width:100%;white-space:nowrap}svg[data-v-3c5647e8]{width:16px;height:16px}.muted[data-v-3c5647e8]{opacity:0.6}\n", ""])
- },
- 318: function(e, t, n) {
- "use strict";
- n(221)
- },
- 319: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, '.xm-color-g10[data-v-6c7a3c30]{color:#fcfcfc}.xm-color-g20[data-v-6c7a3c30]{color:#f9f9f9}.xm-color-g30[data-v-6c7a3c30]{color:#ebebeb}.xm-color-g40[data-v-6c7a3c30]{color:#d6d6d6}.xm-color-g50[data-v-6c7a3c30]{color:#b2b2b2}.xm-color-g60[data-v-6c7a3c30]{color:#8c8c8c}.xm-color-g70[data-v-6c7a3c30]{color:#666}.xm-color-g80[data-v-6c7a3c30]{color:#2b2b2b}.xm-color-g90[data-v-6c7a3c30]{color:#111}.popover-body[data-v-6c7a3c30]{padding:0;margin-top:8px;transform:translateX(-50%);box-shadow:0 4px 18px 0 rgba(117,135,149,0.3),0 0 0 .5px #D8D8D8}.popover-body[data-v-6c7a3c30]::after{content:" ";display:block;position:absolute;width:0;height:0;border-style:solid}.popover-body[data-v-6c7a3c30]::after{bottom:100%;left:50%;margin-left:-8px;border-color:transparent;border-width:8px;border-bottom-color:#fff}\n', ""])
- },
- 32: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.defaultDimension = void 0,
- t.defaultDimension = {
- vPaddingXXSmall: {
- pct: 1,
- unit: "vmin"
- },
- vPaddingXSmall: {
- pct: 2,
- unit: "vmin"
- },
- vPaddingSmall: {
- pct: 4,
- unit: "vmin"
- },
- vPaddingNormal: {
- pct: 6,
- unit: "vmin"
- },
- vPaddingMedium: {
- pct: 8,
- unit: "vmin"
- },
- vPaddingLarge: {
- pct: 16,
- unit: "vmin"
- },
- vPaddingXLarge: {
- pct: 25,
- unit: "vmin"
- },
- hPaddingXSmall: {
- pct: 1,
- unit: "vmin"
- },
- hPaddingSmall: {
- pct: 2,
- unit: "vmin"
- },
- hPaddingNormal: {
- pct: 3,
- unit: "vmin"
- },
- hPaddingMedium: {
- pct: 4,
- unit: "vmin"
- },
- hPaddingLarge: {
- pct: 5,
- unit: "vmin"
- },
- hPaddingXLarge: {
- pct: 7,
- unit: "vmin"
- },
- hSlidePadding: {
- pct: 100 / 15,
- unit: "vw"
- },
- vSlidePadding: {
- pct: 12.5,
- unit: "vh"
- },
- scrollFaderHeight: {
- pct: 12.5,
- unit: "vh"
- },
- topicSlideTitleFontSizeLarge: {
- pct: 15,
- unit: "vmin"
- },
- topicSlideTitleFontSizeMedium: {
- pct: 8,
- unit: "vmin"
- },
- topicSlideTitleFontSizeSmall: {
- pct: 5,
- unit: "vmin"
- },
- topicSlideTitleScrollFaderHeight: {
- pct: 12.5,
- unit: "vh"
- },
- topicSlideSingleLineTitleAlignment: "center",
- topicSlideMultilineTitleAlignment: "leading",
- topicSlideLabelFontSize: {
- pct: 3,
- unit: "vmin"
- },
- topicSlideLabelMinWidth: {
- pct: 9,
- unit: "vmin"
- },
- topicSlideNoteFontSize: {
- pct: 4,
- unit: "vmin"
- },
- topicSlideCalloutFontSize: {
- pct: 4,
- unit: "vmin"
- },
- imageTopicSlideSmallImageDefiningWidth: 400,
- imageTopicSlideHLayoutImageZoneWidth: {
- pct: 700 / 15,
- unit: "vw"
- },
- imageTopicSlideHLayoutImageZoneWidthForSmallImage: {
- pct: 20,
- unit: "vw"
- },
- imageTopicSlideHLayoutSpacingAroundImage: {
- pct: 100 / 15,
- unit: "vw"
- },
- imageTopicSlideHLayoutTitleFontSizeLarge: {
- pct: 10,
- unit: "vmin"
- },
- imageTopicSlideHLayoutTitleFontSizeMedium: {
- pct: 8,
- unit: "vmin"
- },
- imageTopicSlideHLayoutTitleFontSizeSmall: {
- pct: 7,
- unit: "vmin"
- },
- imageTopicSlideVLayoutImageZoneHeight: {
- pct: 62.5,
- unit: "vh"
- },
- imageTopicSlideVLayoutImageZoneHeightForSmallImage: {
- pct: 25,
- unit: "vh"
- },
- imageTopicSlideVLayoutTitleFontSizeLarge: {
- pct: 7,
- unit: "vmin"
- },
- imageTopicSlideVLayoutTitleFontSizeMedium: {
- pct: 6,
- unit: "vmin"
- },
- imageTopicSlideVLayoutTitleFontSizeSmall: {
- pct: 4.5,
- unit: "vmin"
- },
- headerZoneWidth: {
- pct: 20,
- unit: "vw"
- },
- headerZoneHeight: {
- pct: 2.5,
- unit: "vh"
- },
- headerTextFontSize: {
- pct: 2.5,
- unit: "vmin"
- },
- headerTextLeftMargin: {
- pct: 5,
- unit: "vmin"
- },
- headerMarkerRightMargin: {
- pct: .375,
- unit: "vmin"
- },
- headerLineTopMargin: {
- pct: 1,
- unit: "vmin"
- },
- headerLineLength: {
- pct: 5,
- unit: "vmin"
- },
- headerLineWidth: 4,
- braceListSlideParentTopicMaxFontSize: {
- pct: 10,
- unit: "vmin"
- },
- braceListSlideParentTopicMinFontSize: {
- pct: 7,
- unit: "vmin"
- },
- braceListSlideSubtopicMaxFontSize: {
- pct: 8,
- unit: "vmin"
- },
- braceListSlideSubtopicMinFontSize: {
- pct: 4.5,
- unit: "vmin"
- },
- braceListSlideScrollFaderHeight: {
- pct: 25,
- unit: "vh"
- },
- bulletListSlideParentTopicDefaultFontSize: {
- pct: 11,
- unit: "vmin"
- },
- bulletListSlideSubtopicMaxFontSize: {
- pct: 6,
- unit: "vmin"
- },
- bulletListSlideSubtopicMinFontSize: {
- pct: 4.5,
- unit: "vmin"
- },
- lyricListSlideParentTopicDefaultFontSize: {
- pct: 11,
- unit: "vmin"
- },
- lyricListSlideSubtopicMaxFontSize: {
- pct: 6,
- unit: "vmin"
- },
- lyricListSlideSubtopicMinFontSize: {
- pct: 4.5,
- unit: "vmin"
- },
- treeChartSlideParentTopicMaxFontSize: {
- pct: 14,
- unit: "vmin"
- },
- treeChartSlideParentTopicMinFontSize: {
- pct: 11,
- unit: "vmin"
- },
- treeChartSlideSubtopicMaxFontSize: {
- pct: 8,
- unit: "vmin"
- },
- treeChartSlideSubtopicMinFontSize: {
- pct: 7,
- unit: "vmin"
- },
- summarySlideTopicMaxFontSize: {
- pct: 10,
- unit: "vmin"
- },
- summarySlideTopicMinFontSize: {
- pct: 6,
- unit: "vmin"
- },
- summarySlideTopicMarkerRightMargin: {
- pct: 1.2,
- unit: "vmin"
- },
- summarySlideSubtopicFontSize: {
- pct: 8,
- unit: "vmin"
- },
- summarySlideSubtopicMarkerRightMargin: {
- pct: 1.2,
- unit: "vmin"
- },
- summarySlideLineHeight: {
- pct: 3.125,
- unit: "vh"
- },
- summarySlideLineStrokeWidth: 5,
- summaryScrollFaderHeight: {
- pct: 12.5,
- unit: "vh"
- },
- lyricListSlideArrowWidth: 46,
- lyricListSlideArrowHeight: 36,
- lyricListSlideArrowCornerRadius: 4,
- treeChartBranchStrokeWidth: 8,
- onlyChildSlideSeparatorLineWidth: 4,
- maxMarkerCount: 3,
- hitRegionHPadding: {
- pct: 1,
- unit: "vmin"
- },
- hitRegionVPadding: {
- pct: 1,
- unit: "vmin"
- }
- }
- },
- 320: function(e, t, n) {
- "use strict";
- n(222)
- },
- 321: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-3759f7df]{color:#fcfcfc}.xm-color-g20[data-v-3759f7df]{color:#f9f9f9}.xm-color-g30[data-v-3759f7df]{color:#ebebeb}.xm-color-g40[data-v-3759f7df]{color:#d6d6d6}.xm-color-g50[data-v-3759f7df]{color:#b2b2b2}.xm-color-g60[data-v-3759f7df]{color:#8c8c8c}.xm-color-g70[data-v-3759f7df]{color:#666}.xm-color-g80[data-v-3759f7df]{color:#2b2b2b}.xm-color-g90[data-v-3759f7df]{color:#111}.information-more-item[data-v-3759f7df]{line-height:34px}.information-more-item .information-more-item__icon[data-v-3759f7df]{width:14px;height:14px}.information-more-item .information-more-item__title[data-v-3759f7df]{line-height:34px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.information-more-item .information-more-item__delete-button[data-v-3759f7df]{line-height:34px;min-width:26px;visibility:hidden;opacity:0;transition:.2s ease opacity}.information-more-item:hover .information-more-item__delete-button[data-v-3759f7df]{visibility:visible;opacity:1}.btn[data-v-3759f7df]{text-transform:none}\n", ""])
- },
- 322: function(e, t, n) {
- "use strict";
- n(223)
- },
- 323: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, '.xm-color-g10{color:#fcfcfc}.xm-color-g20{color:#f9f9f9}.xm-color-g30{color:#ebebeb}.xm-color-g40{color:#d6d6d6}.xm-color-g50{color:#b2b2b2}.xm-color-g60{color:#8c8c8c}.xm-color-g70{color:#666}.xm-color-g80{color:#2b2b2b}.xm-color-g90{color:#111}[data-name*=select-box],[data-name="resize-box"],[data-name="matrix-plus-box"]{display:none}[data-name="relationship"]{pointer-events:none;user-select:none}.workbook-item::-webkit-scrollbar{display:none}\n', ""])
- },
- 324: function(e, t, n) {
- "use strict";
- (function(e) {
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
- * @license MIT
- */
- var r = n(325)
- , i = n(326)
- , o = n(327);
- function a() {
- return l.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823
- }
- function s(e, t) {
- if (a() < t)
- throw new RangeError("Invalid typed array length");
- return l.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t)).__proto__ = l.prototype : (null === e && (e = new l(t)),
- e.length = t),
- e
- }
- function l(e, t, n) {
- if (!(l.TYPED_ARRAY_SUPPORT || this instanceof l))
- return new l(e,t,n);
- if ("number" == typeof e) {
- if ("string" == typeof t)
- throw new Error("If encoding is specified then the first argument must be a string");
- return d(this, e)
- }
- return u(this, e, t, n)
- }
- function u(e, t, n, r) {
- if ("number" == typeof t)
- throw new TypeError('"value" argument must not be a number');
- return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? function(e, t, n, r) {
- if (t.byteLength,
- n < 0 || t.byteLength < n)
- throw new RangeError("'offset' is out of bounds");
- if (t.byteLength < n + (r || 0))
- throw new RangeError("'length' is out of bounds");
- t = void 0 === n && void 0 === r ? new Uint8Array(t) : void 0 === r ? new Uint8Array(t,n) : new Uint8Array(t,n,r);
- l.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = l.prototype : e = f(e, t);
- return e
- }(e, t, n, r) : "string" == typeof t ? function(e, t, n) {
- "string" == typeof n && "" !== n || (n = "utf8");
- if (!l.isEncoding(n))
- throw new TypeError('"encoding" must be a valid string encoding');
- var r = 0 | p(t, n)
- , i = (e = s(e, r)).write(t, n);
- i !== r && (e = e.slice(0, i));
- return e
- }(e, t, n) : function(e, t) {
- if (l.isBuffer(t)) {
- var n = 0 | h(t.length);
- return 0 === (e = s(e, n)).length || t.copy(e, 0, 0, n),
- e
- }
- if (t) {
- if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length"in t)
- return "number" != typeof t.length || (r = t.length) != r ? s(e, 0) : f(e, t);
- if ("Buffer" === t.type && o(t.data))
- return f(e, t.data)
- }
- var r;
- throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")
- }(e, t)
- }
- function c(e) {
- if ("number" != typeof e)
- throw new TypeError('"size" argument must be a number');
- if (e < 0)
- throw new RangeError('"size" argument must not be negative')
- }
- function d(e, t) {
- if (c(t),
- e = s(e, t < 0 ? 0 : 0 | h(t)),
- !l.TYPED_ARRAY_SUPPORT)
- for (var n = 0; n < t; ++n)
- e[n] = 0;
- return e
- }
- function f(e, t) {
- var n = t.length < 0 ? 0 : 0 | h(t.length);
- e = s(e, n);
- for (var r = 0; r < n; r += 1)
- e[r] = 255 & t[r];
- return e
- }
- function h(e) {
- if (e >= a())
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a().toString(16) + " bytes");
- return 0 | e
- }
- function p(e, t) {
- if (l.isBuffer(e))
- return e.length;
- if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer))
- return e.byteLength;
- "string" != typeof e && (e = "" + e);
- var n = e.length;
- if (0 === n)
- return 0;
- for (var r = !1; ; )
- switch (t) {
- case "ascii":
- case "latin1":
- case "binary":
- return n;
- case "utf8":
- case "utf-8":
- case void 0:
- return N(e).length;
- case "ucs2":
- case "ucs-2":
- case "utf16le":
- case "utf-16le":
- return 2 * n;
- case "hex":
- return n >>> 1;
- case "base64":
- return U(e).length;
- default:
- if (r)
- return N(e).length;
- t = ("" + t).toLowerCase(),
- r = !0
- }
- }
- function g(e, t, n) {
- var r = !1;
- if ((void 0 === t || t < 0) && (t = 0),
- t > this.length)
- return "";
- if ((void 0 === n || n > this.length) && (n = this.length),
- n <= 0)
- return "";
- if ((n >>>= 0) <= (t >>>= 0))
- return "";
- for (e || (e = "utf8"); ; )
- switch (e) {
- case "hex":
- return A(this, t, n);
- case "utf8":
- case "utf-8":
- return C(this, t, n);
- case "ascii":
- return M(this, t, n);
- case "latin1":
- case "binary":
- return T(this, t, n);
- case "base64":
- return I(this, t, n);
- case "ucs2":
- case "ucs-2":
- case "utf16le":
- case "utf-16le":
- return E(this, t, n);
- default:
- if (r)
- throw new TypeError("Unknown encoding: " + e);
- e = (e + "").toLowerCase(),
- r = !0
- }
- }
- function m(e, t, n) {
- var r = e[t];
- e[t] = e[n],
- e[n] = r
- }
- function v(e, t, n, r, i) {
- if (0 === e.length)
- return -1;
- if ("string" == typeof n ? (r = n,
- n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648),
- n = +n,
- isNaN(n) && (n = i ? 0 : e.length - 1),
- n < 0 && (n = e.length + n),
- n >= e.length) {
- if (i)
- return -1;
- n = e.length - 1
- } else if (n < 0) {
- if (!i)
- return -1;
- n = 0
- }
- if ("string" == typeof t && (t = l.from(t, r)),
- l.isBuffer(t))
- return 0 === t.length ? -1 : y(e, t, n, r, i);
- if ("number" == typeof t)
- return t &= 255,
- l.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : y(e, [t], n, r, i);
- throw new TypeError("val must be string, number or Buffer")
- }
- function y(e, t, n, r, i) {
- var o, a = 1, s = e.length, l = t.length;
- if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
- if (e.length < 2 || t.length < 2)
- return -1;
- a = 2,
- s /= 2,
- l /= 2,
- n /= 2
- }
- function u(e, t) {
- return 1 === a ? e[t] : e.readUInt16BE(t * a)
- }
- if (i) {
- var c = -1;
- for (o = n; o < s; o++)
- if (u(e, o) === u(t, -1 === c ? 0 : o - c)) {
- if (-1 === c && (c = o),
- o - c + 1 === l)
- return c * a
- } else
- -1 !== c && (o -= o - c),
- c = -1
- } else
- for (n + l > s && (n = s - l),
- o = n; o >= 0; o--) {
- for (var d = !0, f = 0; f < l; f++)
- if (u(e, o + f) !== u(t, f)) {
- d = !1;
- break
- }
- if (d)
- return o
- }
- return -1
- }
- function b(e, t, n, r) {
- n = Number(n) || 0;
- var i = e.length - n;
- r ? (r = Number(r)) > i && (r = i) : r = i;
- var o = t.length;
- if (o % 2 != 0)
- throw new TypeError("Invalid hex string");
- r > o / 2 && (r = o / 2);
- for (var a = 0; a < r; ++a) {
- var s = parseInt(t.substr(2 * a, 2), 16);
- if (isNaN(s))
- return a;
- e[n + a] = s
- }
- return a
- }
- function _(e, t, n, r) {
- return W(N(t, e.length - n), e, n, r)
- }
- function w(e, t, n, r) {
- return W(function(e) {
- for (var t = [], n = 0; n < e.length; ++n)
- t.push(255 & e.charCodeAt(n));
- return t
- }(t), e, n, r)
- }
- function S(e, t, n, r) {
- return w(e, t, n, r)
- }
- function x(e, t, n, r) {
- return W(U(t), e, n, r)
- }
- function k(e, t, n, r) {
- return W(function(e, t) {
- for (var n, r, i, o = [], a = 0; a < e.length && !((t -= 2) < 0); ++a)
- n = e.charCodeAt(a),
- r = n >> 8,
- i = n % 256,
- o.push(i),
- o.push(r);
- return o
- }(t, e.length - n), e, n, r)
- }
- function I(e, t, n) {
- return 0 === t && n === e.length ? r.fromByteArray(e) : r.fromByteArray(e.slice(t, n))
- }
- function C(e, t, n) {
- n = Math.min(e.length, n);
- for (var r = [], i = t; i < n; ) {
- var o, a, s, l, u = e[i], c = null, d = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
- if (i + d <= n)
- switch (d) {
- case 1:
- u < 128 && (c = u);
- break;
- case 2:
- 128 == (192 & (o = e[i + 1])) && (l = (31 & u) << 6 | 63 & o) > 127 && (c = l);
- break;
- case 3:
- o = e[i + 1],
- a = e[i + 2],
- 128 == (192 & o) && 128 == (192 & a) && (l = (15 & u) << 12 | (63 & o) << 6 | 63 & a) > 2047 && (l < 55296 || l > 57343) && (c = l);
- break;
- case 4:
- o = e[i + 1],
- a = e[i + 2],
- s = e[i + 3],
- 128 == (192 & o) && 128 == (192 & a) && 128 == (192 & s) && (l = (15 & u) << 18 | (63 & o) << 12 | (63 & a) << 6 | 63 & s) > 65535 && l < 1114112 && (c = l)
- }
- null === c ? (c = 65533,
- d = 1) : c > 65535 && (c -= 65536,
- r.push(c >>> 10 & 1023 | 55296),
- c = 56320 | 1023 & c),
- r.push(c),
- i += d
- }
- return function(e) {
- var t = e.length;
- if (t <= 4096)
- return String.fromCharCode.apply(String, e);
- var n = ""
- , r = 0;
- for (; r < t; )
- n += String.fromCharCode.apply(String, e.slice(r, r += 4096));
- return n
- }(r)
- }
- t.Buffer = l,
- t.SlowBuffer = function(e) {
- +e != e && (e = 0);
- return l.alloc(+e)
- }
- ,
- t.INSPECT_MAX_BYTES = 50,
- l.TYPED_ARRAY_SUPPORT = void 0 !== e.TYPED_ARRAY_SUPPORT ? e.TYPED_ARRAY_SUPPORT : function() {
- try {
- var e = new Uint8Array(1);
- return e.__proto__ = {
- __proto__: Uint8Array.prototype,
- foo: function() {
- return 42
- }
- },
- 42 === e.foo() && "function" == typeof e.subarray && 0 === e.subarray(1, 1).byteLength
- } catch (e) {
- return !1
- }
- }(),
- t.kMaxLength = a(),
- l.poolSize = 8192,
- l._augment = function(e) {
- return e.__proto__ = l.prototype,
- e
- }
- ,
- l.from = function(e, t, n) {
- return u(null, e, t, n)
- }
- ,
- l.TYPED_ARRAY_SUPPORT && (l.prototype.__proto__ = Uint8Array.prototype,
- l.__proto__ = Uint8Array,
- "undefined" != typeof Symbol && Symbol.species && l[Symbol.species] === l && Object.defineProperty(l, Symbol.species, {
- value: null,
- configurable: !0
- })),
- l.alloc = function(e, t, n) {
- return function(e, t, n, r) {
- return c(t),
- t <= 0 ? s(e, t) : void 0 !== n ? "string" == typeof r ? s(e, t).fill(n, r) : s(e, t).fill(n) : s(e, t)
- }(null, e, t, n)
- }
- ,
- l.allocUnsafe = function(e) {
- return d(null, e)
- }
- ,
- l.allocUnsafeSlow = function(e) {
- return d(null, e)
- }
- ,
- l.isBuffer = function(e) {
- return !(null == e || !e._isBuffer)
- }
- ,
- l.compare = function(e, t) {
- if (!l.isBuffer(e) || !l.isBuffer(t))
- throw new TypeError("Arguments must be Buffers");
- if (e === t)
- return 0;
- for (var n = e.length, r = t.length, i = 0, o = Math.min(n, r); i < o; ++i)
- if (e[i] !== t[i]) {
- n = e[i],
- r = t[i];
- break
- }
- return n < r ? -1 : r < n ? 1 : 0
- }
- ,
- l.isEncoding = function(e) {
- switch (String(e).toLowerCase()) {
- case "hex":
- case "utf8":
- case "utf-8":
- case "ascii":
- case "latin1":
- case "binary":
- case "base64":
- case "ucs2":
- case "ucs-2":
- case "utf16le":
- case "utf-16le":
- return !0;
- default:
- return !1
- }
- }
- ,
- l.concat = function(e, t) {
- if (!o(e))
- throw new TypeError('"list" argument must be an Array of Buffers');
- if (0 === e.length)
- return l.alloc(0);
- var n;
- if (void 0 === t)
- for (t = 0,
- n = 0; n < e.length; ++n)
- t += e[n].length;
- var r = l.allocUnsafe(t)
- , i = 0;
- for (n = 0; n < e.length; ++n) {
- var a = e[n];
- if (!l.isBuffer(a))
- throw new TypeError('"list" argument must be an Array of Buffers');
- a.copy(r, i),
- i += a.length
- }
- return r
- }
- ,
- l.byteLength = p,
- l.prototype._isBuffer = !0,
- l.prototype.swap16 = function() {
- var e = this.length;
- if (e % 2 != 0)
- throw new RangeError("Buffer size must be a multiple of 16-bits");
- for (var t = 0; t < e; t += 2)
- m(this, t, t + 1);
- return this
- }
- ,
- l.prototype.swap32 = function() {
- var e = this.length;
- if (e % 4 != 0)
- throw new RangeError("Buffer size must be a multiple of 32-bits");
- for (var t = 0; t < e; t += 4)
- m(this, t, t + 3),
- m(this, t + 1, t + 2);
- return this
- }
- ,
- l.prototype.swap64 = function() {
- var e = this.length;
- if (e % 8 != 0)
- throw new RangeError("Buffer size must be a multiple of 64-bits");
- for (var t = 0; t < e; t += 8)
- m(this, t, t + 7),
- m(this, t + 1, t + 6),
- m(this, t + 2, t + 5),
- m(this, t + 3, t + 4);
- return this
- }
- ,
- l.prototype.toString = function() {
- var e = 0 | this.length;
- return 0 === e ? "" : 0 === arguments.length ? C(this, 0, e) : g.apply(this, arguments)
- }
- ,
- l.prototype.equals = function(e) {
- if (!l.isBuffer(e))
- throw new TypeError("Argument must be a Buffer");
- return this === e || 0 === l.compare(this, e)
- }
- ,
- l.prototype.inspect = function() {
- var e = ""
- , n = t.INSPECT_MAX_BYTES;
- return this.length > 0 && (e = this.toString("hex", 0, n).match(/.{2}/g).join(" "),
- this.length > n && (e += " ... ")),
- "<Buffer " + e + ">"
- }
- ,
- l.prototype.compare = function(e, t, n, r, i) {
- if (!l.isBuffer(e))
- throw new TypeError("Argument must be a Buffer");
- if (void 0 === t && (t = 0),
- void 0 === n && (n = e ? e.length : 0),
- void 0 === r && (r = 0),
- void 0 === i && (i = this.length),
- t < 0 || n > e.length || r < 0 || i > this.length)
- throw new RangeError("out of range index");
- if (r >= i && t >= n)
- return 0;
- if (r >= i)
- return -1;
- if (t >= n)
- return 1;
- if (this === e)
- return 0;
- for (var o = (i >>>= 0) - (r >>>= 0), a = (n >>>= 0) - (t >>>= 0), s = Math.min(o, a), u = this.slice(r, i), c = e.slice(t, n), d = 0; d < s; ++d)
- if (u[d] !== c[d]) {
- o = u[d],
- a = c[d];
- break
- }
- return o < a ? -1 : a < o ? 1 : 0
- }
- ,
- l.prototype.includes = function(e, t, n) {
- return -1 !== this.indexOf(e, t, n)
- }
- ,
- l.prototype.indexOf = function(e, t, n) {
- return v(this, e, t, n, !0)
- }
- ,
- l.prototype.lastIndexOf = function(e, t, n) {
- return v(this, e, t, n, !1)
- }
- ,
- l.prototype.write = function(e, t, n, r) {
- if (void 0 === t)
- r = "utf8",
- n = this.length,
- t = 0;
- else if (void 0 === n && "string" == typeof t)
- r = t,
- n = this.length,
- t = 0;
- else {
- if (!isFinite(t))
- throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
- t |= 0,
- isFinite(n) ? (n |= 0,
- void 0 === r && (r = "utf8")) : (r = n,
- n = void 0)
- }
- var i = this.length - t;
- if ((void 0 === n || n > i) && (n = i),
- e.length > 0 && (n < 0 || t < 0) || t > this.length)
- throw new RangeError("Attempt to write outside buffer bounds");
- r || (r = "utf8");
- for (var o = !1; ; )
- switch (r) {
- case "hex":
- return b(this, e, t, n);
- case "utf8":
- case "utf-8":
- return _(this, e, t, n);
- case "ascii":
- return w(this, e, t, n);
- case "latin1":
- case "binary":
- return S(this, e, t, n);
- case "base64":
- return x(this, e, t, n);
- case "ucs2":
- case "ucs-2":
- case "utf16le":
- case "utf-16le":
- return k(this, e, t, n);
- default:
- if (o)
- throw new TypeError("Unknown encoding: " + r);
- r = ("" + r).toLowerCase(),
- o = !0
- }
- }
- ,
- l.prototype.toJSON = function() {
- return {
- type: "Buffer",
- data: Array.prototype.slice.call(this._arr || this, 0)
- }
- }
- ;
- function M(e, t, n) {
- var r = "";
- n = Math.min(e.length, n);
- for (var i = t; i < n; ++i)
- r += String.fromCharCode(127 & e[i]);
- return r
- }
- function T(e, t, n) {
- var r = "";
- n = Math.min(e.length, n);
- for (var i = t; i < n; ++i)
- r += String.fromCharCode(e[i]);
- return r
- }
- function A(e, t, n) {
- var r = e.length;
- (!t || t < 0) && (t = 0),
- (!n || n < 0 || n > r) && (n = r);
- for (var i = "", o = t; o < n; ++o)
- i += D(e[o]);
- return i
- }
- function E(e, t, n) {
- for (var r = e.slice(t, n), i = "", o = 0; o < r.length; o += 2)
- i += String.fromCharCode(r[o] + 256 * r[o + 1]);
- return i
- }
- function O(e, t, n) {
- if (e % 1 != 0 || e < 0)
- throw new RangeError("offset is not uint");
- if (e + t > n)
- throw new RangeError("Trying to access beyond buffer length")
- }
- function B(e, t, n, r, i, o) {
- if (!l.isBuffer(e))
- throw new TypeError('"buffer" argument must be a Buffer instance');
- if (t > i || t < o)
- throw new RangeError('"value" argument is out of bounds');
- if (n + r > e.length)
- throw new RangeError("Index out of range")
- }
- function L(e, t, n, r) {
- t < 0 && (t = 65535 + t + 1);
- for (var i = 0, o = Math.min(e.length - n, 2); i < o; ++i)
- e[n + i] = (t & 255 << 8 * (r ? i : 1 - i)) >>> 8 * (r ? i : 1 - i)
- }
- function P(e, t, n, r) {
- t < 0 && (t = 4294967295 + t + 1);
- for (var i = 0, o = Math.min(e.length - n, 4); i < o; ++i)
- e[n + i] = t >>> 8 * (r ? i : 3 - i) & 255
- }
- function R(e, t, n, r, i, o) {
- if (n + r > e.length)
- throw new RangeError("Index out of range");
- if (n < 0)
- throw new RangeError("Index out of range")
- }
- function z(e, t, n, r, o) {
- return o || R(e, 0, n, 4),
- i.write(e, t, n, r, 23, 4),
- n + 4
- }
- function j(e, t, n, r, o) {
- return o || R(e, 0, n, 8),
- i.write(e, t, n, r, 52, 8),
- n + 8
- }
- l.prototype.slice = function(e, t) {
- var n, r = this.length;
- if ((e = ~~e) < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r),
- (t = void 0 === t ? r : ~~t) < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r),
- t < e && (t = e),
- l.TYPED_ARRAY_SUPPORT)
- (n = this.subarray(e, t)).__proto__ = l.prototype;
- else {
- var i = t - e;
- n = new l(i,void 0);
- for (var o = 0; o < i; ++o)
- n[o] = this[o + e]
- }
- return n
- }
- ,
- l.prototype.readUIntLE = function(e, t, n) {
- e |= 0,
- t |= 0,
- n || O(e, t, this.length);
- for (var r = this[e], i = 1, o = 0; ++o < t && (i *= 256); )
- r += this[e + o] * i;
- return r
- }
- ,
- l.prototype.readUIntBE = function(e, t, n) {
- e |= 0,
- t |= 0,
- n || O(e, t, this.length);
- for (var r = this[e + --t], i = 1; t > 0 && (i *= 256); )
- r += this[e + --t] * i;
- return r
- }
- ,
- l.prototype.readUInt8 = function(e, t) {
- return t || O(e, 1, this.length),
- this[e]
- }
- ,
- l.prototype.readUInt16LE = function(e, t) {
- return t || O(e, 2, this.length),
- this[e] | this[e + 1] << 8
- }
- ,
- l.prototype.readUInt16BE = function(e, t) {
- return t || O(e, 2, this.length),
- this[e] << 8 | this[e + 1]
- }
- ,
- l.prototype.readUInt32LE = function(e, t) {
- return t || O(e, 4, this.length),
- (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3]
- }
- ,
- l.prototype.readUInt32BE = function(e, t) {
- return t || O(e, 4, this.length),
- 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3])
- }
- ,
- l.prototype.readIntLE = function(e, t, n) {
- e |= 0,
- t |= 0,
- n || O(e, t, this.length);
- for (var r = this[e], i = 1, o = 0; ++o < t && (i *= 256); )
- r += this[e + o] * i;
- return r >= (i *= 128) && (r -= Math.pow(2, 8 * t)),
- r
- }
- ,
- l.prototype.readIntBE = function(e, t, n) {
- e |= 0,
- t |= 0,
- n || O(e, t, this.length);
- for (var r = t, i = 1, o = this[e + --r]; r > 0 && (i *= 256); )
- o += this[e + --r] * i;
- return o >= (i *= 128) && (o -= Math.pow(2, 8 * t)),
- o
- }
- ,
- l.prototype.readInt8 = function(e, t) {
- return t || O(e, 1, this.length),
- 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e]
- }
- ,
- l.prototype.readInt16LE = function(e, t) {
- t || O(e, 2, this.length);
- var n = this[e] | this[e + 1] << 8;
- return 32768 & n ? 4294901760 | n : n
- }
- ,
- l.prototype.readInt16BE = function(e, t) {
- t || O(e, 2, this.length);
- var n = this[e + 1] | this[e] << 8;
- return 32768 & n ? 4294901760 | n : n
- }
- ,
- l.prototype.readInt32LE = function(e, t) {
- return t || O(e, 4, this.length),
- this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24
- }
- ,
- l.prototype.readInt32BE = function(e, t) {
- return t || O(e, 4, this.length),
- this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]
- }
- ,
- l.prototype.readFloatLE = function(e, t) {
- return t || O(e, 4, this.length),
- i.read(this, e, !0, 23, 4)
- }
- ,
- l.prototype.readFloatBE = function(e, t) {
- return t || O(e, 4, this.length),
- i.read(this, e, !1, 23, 4)
- }
- ,
- l.prototype.readDoubleLE = function(e, t) {
- return t || O(e, 8, this.length),
- i.read(this, e, !0, 52, 8)
- }
- ,
- l.prototype.readDoubleBE = function(e, t) {
- return t || O(e, 8, this.length),
- i.read(this, e, !1, 52, 8)
- }
- ,
- l.prototype.writeUIntLE = function(e, t, n, r) {
- (e = +e,
- t |= 0,
- n |= 0,
- r) || B(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
- var i = 1
- , o = 0;
- for (this[t] = 255 & e; ++o < n && (i *= 256); )
- this[t + o] = e / i & 255;
- return t + n
- }
- ,
- l.prototype.writeUIntBE = function(e, t, n, r) {
- (e = +e,
- t |= 0,
- n |= 0,
- r) || B(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
- var i = n - 1
- , o = 1;
- for (this[t + i] = 255 & e; --i >= 0 && (o *= 256); )
- this[t + i] = e / o & 255;
- return t + n
- }
- ,
- l.prototype.writeUInt8 = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 1, 255, 0),
- l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
- this[t] = 255 & e,
- t + 1
- }
- ,
- l.prototype.writeUInt16LE = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 2, 65535, 0),
- l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e,
- this[t + 1] = e >>> 8) : L(this, e, t, !0),
- t + 2
- }
- ,
- l.prototype.writeUInt16BE = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 2, 65535, 0),
- l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8,
- this[t + 1] = 255 & e) : L(this, e, t, !1),
- t + 2
- }
- ,
- l.prototype.writeUInt32LE = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 4, 4294967295, 0),
- l.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24,
- this[t + 2] = e >>> 16,
- this[t + 1] = e >>> 8,
- this[t] = 255 & e) : P(this, e, t, !0),
- t + 4
- }
- ,
- l.prototype.writeUInt32BE = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 4, 4294967295, 0),
- l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24,
- this[t + 1] = e >>> 16,
- this[t + 2] = e >>> 8,
- this[t + 3] = 255 & e) : P(this, e, t, !1),
- t + 4
- }
- ,
- l.prototype.writeIntLE = function(e, t, n, r) {
- if (e = +e,
- t |= 0,
- !r) {
- var i = Math.pow(2, 8 * n - 1);
- B(this, e, t, n, i - 1, -i)
- }
- var o = 0
- , a = 1
- , s = 0;
- for (this[t] = 255 & e; ++o < n && (a *= 256); )
- e < 0 && 0 === s && 0 !== this[t + o - 1] && (s = 1),
- this[t + o] = (e / a >> 0) - s & 255;
- return t + n
- }
- ,
- l.prototype.writeIntBE = function(e, t, n, r) {
- if (e = +e,
- t |= 0,
- !r) {
- var i = Math.pow(2, 8 * n - 1);
- B(this, e, t, n, i - 1, -i)
- }
- var o = n - 1
- , a = 1
- , s = 0;
- for (this[t + o] = 255 & e; --o >= 0 && (a *= 256); )
- e < 0 && 0 === s && 0 !== this[t + o + 1] && (s = 1),
- this[t + o] = (e / a >> 0) - s & 255;
- return t + n
- }
- ,
- l.prototype.writeInt8 = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 1, 127, -128),
- l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
- e < 0 && (e = 255 + e + 1),
- this[t] = 255 & e,
- t + 1
- }
- ,
- l.prototype.writeInt16LE = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 2, 32767, -32768),
- l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e,
- this[t + 1] = e >>> 8) : L(this, e, t, !0),
- t + 2
- }
- ,
- l.prototype.writeInt16BE = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 2, 32767, -32768),
- l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8,
- this[t + 1] = 255 & e) : L(this, e, t, !1),
- t + 2
- }
- ,
- l.prototype.writeInt32LE = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 4, 2147483647, -2147483648),
- l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e,
- this[t + 1] = e >>> 8,
- this[t + 2] = e >>> 16,
- this[t + 3] = e >>> 24) : P(this, e, t, !0),
- t + 4
- }
- ,
- l.prototype.writeInt32BE = function(e, t, n) {
- return e = +e,
- t |= 0,
- n || B(this, e, t, 4, 2147483647, -2147483648),
- e < 0 && (e = 4294967295 + e + 1),
- l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24,
- this[t + 1] = e >>> 16,
- this[t + 2] = e >>> 8,
- this[t + 3] = 255 & e) : P(this, e, t, !1),
- t + 4
- }
- ,
- l.prototype.writeFloatLE = function(e, t, n) {
- return z(this, e, t, !0, n)
- }
- ,
- l.prototype.writeFloatBE = function(e, t, n) {
- return z(this, e, t, !1, n)
- }
- ,
- l.prototype.writeDoubleLE = function(e, t, n) {
- return j(this, e, t, !0, n)
- }
- ,
- l.prototype.writeDoubleBE = function(e, t, n) {
- return j(this, e, t, !1, n)
- }
- ,
- l.prototype.copy = function(e, t, n, r) {
- if (n || (n = 0),
- r || 0 === r || (r = this.length),
- t >= e.length && (t = e.length),
- t || (t = 0),
- r > 0 && r < n && (r = n),
- r === n)
- return 0;
- if (0 === e.length || 0 === this.length)
- return 0;
- if (t < 0)
- throw new RangeError("targetStart out of bounds");
- if (n < 0 || n >= this.length)
- throw new RangeError("sourceStart out of bounds");
- if (r < 0)
- throw new RangeError("sourceEnd out of bounds");
- r > this.length && (r = this.length),
- e.length - t < r - n && (r = e.length - t + n);
- var i, o = r - n;
- if (this === e && n < t && t < r)
- for (i = o - 1; i >= 0; --i)
- e[i + t] = this[i + n];
- else if (o < 1e3 || !l.TYPED_ARRAY_SUPPORT)
- for (i = 0; i < o; ++i)
- e[i + t] = this[i + n];
- else
- Uint8Array.prototype.set.call(e, this.subarray(n, n + o), t);
- return o
- }
- ,
- l.prototype.fill = function(e, t, n, r) {
- if ("string" == typeof e) {
- if ("string" == typeof t ? (r = t,
- t = 0,
- n = this.length) : "string" == typeof n && (r = n,
- n = this.length),
- 1 === e.length) {
- var i = e.charCodeAt(0);
- i < 256 && (e = i)
- }
- if (void 0 !== r && "string" != typeof r)
- throw new TypeError("encoding must be a string");
- if ("string" == typeof r && !l.isEncoding(r))
- throw new TypeError("Unknown encoding: " + r)
- } else
- "number" == typeof e && (e &= 255);
- if (t < 0 || this.length < t || this.length < n)
- throw new RangeError("Out of range index");
- if (n <= t)
- return this;
- var o;
- if (t >>>= 0,
- n = void 0 === n ? this.length : n >>> 0,
- e || (e = 0),
- "number" == typeof e)
- for (o = t; o < n; ++o)
- this[o] = e;
- else {
- var a = l.isBuffer(e) ? e : N(new l(e,r).toString())
- , s = a.length;
- for (o = 0; o < n - t; ++o)
- this[o + t] = a[o % s]
- }
- return this
- }
- ;
- var F = /[^+\/0-9A-Za-z-_]/g;
- function D(e) {
- return e < 16 ? "0" + e.toString(16) : e.toString(16)
- }
- function N(e, t) {
- var n;
- t = t || 1 / 0;
- for (var r = e.length, i = null, o = [], a = 0; a < r; ++a) {
- if ((n = e.charCodeAt(a)) > 55295 && n < 57344) {
- if (!i) {
- if (n > 56319) {
- (t -= 3) > -1 && o.push(239, 191, 189);
- continue
- }
- if (a + 1 === r) {
- (t -= 3) > -1 && o.push(239, 191, 189);
- continue
- }
- i = n;
- continue
- }
- if (n < 56320) {
- (t -= 3) > -1 && o.push(239, 191, 189),
- i = n;
- continue
- }
- n = 65536 + (i - 55296 << 10 | n - 56320)
- } else
- i && (t -= 3) > -1 && o.push(239, 191, 189);
- if (i = null,
- n < 128) {
- if ((t -= 1) < 0)
- break;
- o.push(n)
- } else if (n < 2048) {
- if ((t -= 2) < 0)
- break;
- o.push(n >> 6 | 192, 63 & n | 128)
- } else if (n < 65536) {
- if ((t -= 3) < 0)
- break;
- o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128)
- } else {
- if (!(n < 1114112))
- throw new Error("Invalid code point");
- if ((t -= 4) < 0)
- break;
- o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128)
- }
- }
- return o
- }
- function U(e) {
- return r.toByteArray(function(e) {
- if ((e = function(e) {
- return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "")
- }(e).replace(F, "")).length < 2)
- return "";
- for (; e.length % 4 != 0; )
- e += "=";
- return e
- }(e))
- }
- function W(e, t, n, r) {
- for (var i = 0; i < r && !(i + n >= t.length || i >= e.length); ++i)
- t[i + n] = e[i];
- return i
- }
- }
- ).call(this, n(20))
- },
- 325: function(e, t, n) {
- "use strict";
- t.byteLength = function(e) {
- var t = u(e)
- , n = t[0]
- , r = t[1];
- return 3 * (n + r) / 4 - r
- }
- ,
- t.toByteArray = function(e) {
- var t, n, r = u(e), a = r[0], s = r[1], l = new o(function(e, t, n) {
- return 3 * (t + n) / 4 - n
- }(0, a, s)), c = 0, d = s > 0 ? a - 4 : a;
- for (n = 0; n < d; n += 4)
- t = i[e.charCodeAt(n)] << 18 | i[e.charCodeAt(n + 1)] << 12 | i[e.charCodeAt(n + 2)] << 6 | i[e.charCodeAt(n + 3)],
- l[c++] = t >> 16 & 255,
- l[c++] = t >> 8 & 255,
- l[c++] = 255 & t;
- 2 === s && (t = i[e.charCodeAt(n)] << 2 | i[e.charCodeAt(n + 1)] >> 4,
- l[c++] = 255 & t);
- 1 === s && (t = i[e.charCodeAt(n)] << 10 | i[e.charCodeAt(n + 1)] << 4 | i[e.charCodeAt(n + 2)] >> 2,
- l[c++] = t >> 8 & 255,
- l[c++] = 255 & t);
- return l
- }
- ,
- t.fromByteArray = function(e) {
- for (var t, n = e.length, i = n % 3, o = [], a = 0, s = n - i; a < s; a += 16383)
- o.push(c(e, a, a + 16383 > s ? s : a + 16383));
- 1 === i ? (t = e[n - 1],
- o.push(r[t >> 2] + r[t << 4 & 63] + "==")) : 2 === i && (t = (e[n - 2] << 8) + e[n - 1],
- o.push(r[t >> 10] + r[t >> 4 & 63] + r[t << 2 & 63] + "="));
- return o.join("")
- }
- ;
- for (var r = [], i = [], o = "undefined" != typeof Uint8Array ? Uint8Array : Array, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, l = a.length; s < l; ++s)
- r[s] = a[s],
- i[a.charCodeAt(s)] = s;
- function u(e) {
- var t = e.length;
- if (t % 4 > 0)
- throw new Error("Invalid string. Length must be a multiple of 4");
- var n = e.indexOf("=");
- return -1 === n && (n = t),
- [n, n === t ? 0 : 4 - n % 4]
- }
- function c(e, t, n) {
- for (var i, o, a = [], s = t; s < n; s += 3)
- i = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (255 & e[s + 2]),
- a.push(r[(o = i) >> 18 & 63] + r[o >> 12 & 63] + r[o >> 6 & 63] + r[63 & o]);
- return a.join("")
- }
- i["-".charCodeAt(0)] = 62,
- i["_".charCodeAt(0)] = 63
- },
- 326: function(e, t) {
- t.read = function(e, t, n, r, i) {
- var o, a, s = 8 * i - r - 1, l = (1 << s) - 1, u = l >> 1, c = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, h = e[t + d];
- for (d += f,
- o = h & (1 << -c) - 1,
- h >>= -c,
- c += s; c > 0; o = 256 * o + e[t + d],
- d += f,
- c -= 8)
- ;
- for (a = o & (1 << -c) - 1,
- o >>= -c,
- c += r; c > 0; a = 256 * a + e[t + d],
- d += f,
- c -= 8)
- ;
- if (0 === o)
- o = 1 - u;
- else {
- if (o === l)
- return a ? NaN : 1 / 0 * (h ? -1 : 1);
- a += Math.pow(2, r),
- o -= u
- }
- return (h ? -1 : 1) * a * Math.pow(2, o - r)
- }
- ,
- t.write = function(e, t, n, r, i, o) {
- var a, s, l, u = 8 * o - i - 1, c = (1 << u) - 1, d = c >> 1, f = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = r ? 0 : o - 1, p = r ? 1 : -1, g = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
- for (t = Math.abs(t),
- isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0,
- a = c) : (a = Math.floor(Math.log(t) / Math.LN2),
- t * (l = Math.pow(2, -a)) < 1 && (a--,
- l *= 2),
- (t += a + d >= 1 ? f / l : f * Math.pow(2, 1 - d)) * l >= 2 && (a++,
- l /= 2),
- a + d >= c ? (s = 0,
- a = c) : a + d >= 1 ? (s = (t * l - 1) * Math.pow(2, i),
- a += d) : (s = t * Math.pow(2, d - 1) * Math.pow(2, i),
- a = 0)); i >= 8; e[n + h] = 255 & s,
- h += p,
- s /= 256,
- i -= 8)
- ;
- for (a = a << i | s,
- u += i; u > 0; e[n + h] = 255 & a,
- h += p,
- a /= 256,
- u -= 8)
- ;
- e[n + h - p] |= 128 * g
- }
- },
- 327: function(e, t) {
- var n = {}.toString;
- e.exports = Array.isArray || function(e) {
- return "[object Array]" == n.call(e)
- }
- },
- 328: function(e, t, n) {
- "use strict";
- n(224)
- },
- 329: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, '.xm-color-g10[data-v-5e5182e9]{color:#fcfcfc}.xm-color-g20[data-v-5e5182e9]{color:#f9f9f9}.xm-color-g30[data-v-5e5182e9]{color:#ebebeb}.xm-color-g40[data-v-5e5182e9]{color:#d6d6d6}.xm-color-g50[data-v-5e5182e9]{color:#b2b2b2}.xm-color-g60[data-v-5e5182e9]{color:#8c8c8c}.xm-color-g70[data-v-5e5182e9]{color:#666}.xm-color-g80[data-v-5e5182e9]{color:#2b2b2b}.xm-color-g90[data-v-5e5182e9]{color:#111}a[data-v-5e5182e9]{display:block;width:100%;white-space:nowrap}.flex-base-line[data-v-5e5182e9]{align-items:baseline}.muted[data-v-5e5182e9]{opacity:0.6}.ml-spacing-small[data-v-5e5182e9]{margin-left:3px}.dropdown-menu[data-v-5e5182e9]{padding:0;color:var(--dropdown-menu-color)}.dropdown-menu .menu-container[data-v-5e5182e9]{position:relative}.dropdown-menu .menu-container[data-v-5e5182e9]::before{content:"";position:absolute;width:12px;height:12px;background:var(--floating-bar-menu-background-color);top:-5px;right:calc(50% - 8px);transform:rotate(45deg)}.dropdown-menu .menu-block[data-v-5e5182e9]{padding:12px 20px}.dropdown-menu .dropdown-title[data-v-5e5182e9]{padding-top:8px;line-height:30px;font-size:24px;font-weight:600;margin-bottom:10px}.dropdown-menu .btn-icon[data-v-5e5182e9]{width:50%;height:24px}.dropdown-menu .btn-icon svg[data-v-5e5182e9]{width:16px;height:16px}.dropdown-menu .btn-icon.active[data-v-5e5182e9]{background:var(--dropdown-menu-button-active-color) !important}span[data-v-5e5182e9]{user-select:none}label[data-v-5e5182e9]{margin:0}\n', ""])
- },
- 33: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeHitRegionBounds = t.computeAbsoluteBounds = void 0,
- t.computeAbsoluteBounds = function e(t, n={
- x: 0,
- y: 0
- }) {
- for (const r of t)
- r.absBounds.x = r.bounds.x + n.x,
- r.absBounds.y = r.bounds.y + n.y,
- r.absBounds.width = r.bounds.width,
- r.absBounds.height = r.bounds.height,
- "group" === r.contentType && e(r.children, r.absBounds)
- }
- ,
- t.computeHitRegionBounds = function e(t, n, r, i, o, a) {
- var s, l, u;
- for (const c of n) {
- if (c.id === t) {
- const e = Object.assign({}, c.absBounds)
- , t = e.y + e.height / 2;
- return e.x = Math.max(e.x, i.x) - o,
- e.y = Math.max(e.y - a, i.y),
- e.width = Math.min(e.x + e.width + o + o, i.x + i.width) - e.x,
- e.height = Math.min(t + e.height / 2 + a, i.y + i.height) - e.y,
- Object.assign(e, {
- opacity: e.height / (c.absBounds.height + a + a)
- })
- }
- if ("group" === c.contentType) {
- const n = "visible" === c.overflow ? i : c.absBounds;
- let d = n;
- const f = null !== (u = null !== (l = null === (s = r.find(e=>e.id === c.id)) || void 0 === s ? void 0 : s.scrollOffset) && void 0 !== l ? l : c.scrollOffset) && void 0 !== u ? u : 0;
- f > 0 && (d = Object.assign(Object.assign({}, n), {
- y: n.y + f
- }));
- const h = e(t, c.children, r, d, o, a);
- if (h) {
- const e = f > 0 ? Object.assign(Object.assign({}, h), {
- y: h.y - f
- }) : h;
- if (e.y + e.height < n.y || e.y > n.y + n.height)
- return null;
- if (e.y < n.y) {
- e.y = n.y;
- const t = e.height - (n.y - e.y);
- e.opacity = t / e.height,
- e.height = t
- }
- return e
- }
- }
- }
- return null
- }
- },
- 330: function(e, t, n) {
- "use strict";
- n(225)
- },
- 331: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10[data-v-2012282a]{color:#fcfcfc}.xm-color-g20[data-v-2012282a]{color:#f9f9f9}.xm-color-g30[data-v-2012282a]{color:#ebebeb}.xm-color-g40[data-v-2012282a]{color:#d6d6d6}.xm-color-g50[data-v-2012282a]{color:#b2b2b2}.xm-color-g60[data-v-2012282a]{color:#8c8c8c}.xm-color-g70[data-v-2012282a]{color:#666}.xm-color-g80[data-v-2012282a]{color:#2b2b2b}.xm-color-g90[data-v-2012282a]{color:#111}.top-right-bar[data-v-2012282a]{--floating-bar-verical-separator-color: rgba(0, 0, 0, 0.1);--floating-bar-color: rgba(0, 0, 0, 1);--floating-bar-context-color: rgba(255, 255, 255, 1);--floating-bar-menu-color: currentcolor;--floating-bar-menu-background-color: rgba(255, 255, 255, 1);--floating-bar-menu-item-hover-background: #eeeef0;--floating-bar-button-floating-color: rgba(0,0,0,.05);--dropdown-menu-color: #212529;--dropdown-menu-button-active-color: #eeeeee;position:absolute;top:24px;right:24px;opacity:0.15;transition:opacity .3s ease-in-out}.top-right-bar.dark[data-v-2012282a]{--floating-bar-context-color: rgba(129, 129, 137, 0.5);--floating-bar-verical-separator-color: rgba(255, 255, 255, 0.1);--floating-bar-color: rgba(255, 255, 255, 1);--floating-bar-menu-color: white;--floating-bar-menu-background-color: #414144;--floating-bar-menu-item-hover-background: rgba(118,118,128,0.7);--floating-bar-button-floating-color: rgba(118,118,128,0.5);--dropdown-menu-color: rgba(255, 255, 255, 1);--dropdown-menu-button-active-color: rgba(118, 118, 128, 0.5)}.top-right-bar .floating-bar[data-v-2012282a]{backdrop-filter:unset;-webkit-backdrop-filter:unset}.top-right-bar .floating-bar .btn[data-v-2012282a]{line-height:24px}.top-right-bar[data-v-2012282a]:hover{opacity:1}.btn-text[data-v-2012282a]{padding:4px;color:currentcolor}.pitch-mask[data-v-2012282a]{position:absolute;width:100%;height:100%;top:0;right:0}\n", ""])
- },
- 332: function(e, t, n) {
- var r = n(471);
- "string" == typeof r && (r = [[e.i, r, ""]]),
- r.locals && (e.exports = r.locals);
- (0,
- n(3).default)("be704580", r, !0, {})
- },
- 34: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.mapValues = t.rangedIntegers = t.findClosestMatch = void 0,
- t.findClosestMatch = function(e, t) {
- let n = null
- , r = e(!0);
- for (; null !== r; ) {
- const i = t(r);
- i && (n = r),
- r = e(!i)
- }
- return n
- }
- ,
- t.rangedIntegers = function(e, t) {
- const n = e < t
- , r = n ? Math.floor : Math.ceil;
- let i = null;
- return o=>{
- if (null === i)
- return i = e,
- e;
- if (o) {
- if (e = i + (n ? 1 : -1),
- n ? i >= t : i <= t)
- return null
- } else if (t = i + (n ? -1 : 1),
- n ? i <= e : i >= e)
- return null;
- return i = r((e + t) / 2),
- i
- }
- }
- ,
- t.mapValues = function(e, t) {
- return n=>{
- const r = e(n);
- return null === r ? null : t(r)
- }
- }
- },
- 35: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.getPlaceholderImageSource = t.shouldShowPlaceholder = t.computeTopicTitleGroup = void 0;
- const r = n(5)
- , i = n(12)
- , o = n(13)
- , a = n(15)
- , s = n(42)
- , l = n(61);
- function u(e, t) {
- return !e && !t
- }
- function c() {
- return '<svg width="39" height="31" viewBox="0 0 39 31" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M33.14 3.94984H5.84824C4.34096 3.94984 3.11906 5.12474 3.11906 6.57405V25.3184C3.11906 26.7677 4.34096 27.9426 5.84824 27.9426H33.14C34.6473 27.9426 35.8692 26.7677 35.8692 25.3184V6.57405C35.8692 5.12473 34.6473 3.94984 33.14 3.94984ZM5.84824 0.950737C2.61835 0.950737 0 3.46838 0 6.57405V25.3184C0 28.4241 2.61835 30.9417 5.84824 30.9417H33.14C36.3699 30.9417 38.9883 28.4241 38.9883 25.3184V6.57405C38.9883 3.46838 36.3699 0.950737 33.14 0.950737H5.84824Z"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M29.3493 12.7836L38.3863 20.4546L36.3221 22.703L29.3133 16.7536L18.9795 25.2219L11.7384 19.6285L2.90691 26.6484L0.919604 24.3369L11.7102 15.7598L18.9207 21.3295L29.3493 12.7836Z"/>\n <path d="M16.7488 11.0501C16.7488 12.574 15.4641 13.8093 13.8792 13.8093C12.2944 13.8093 11.0096 12.574 11.0096 11.0501C11.0096 9.52619 12.2944 8.29083 13.8792 8.29083C15.4641 8.29083 16.7488 9.52619 16.7488 11.0501Z"/>\n </svg>'
- }
- t.computeTopicTitleGroup = function(e, t, n, d, f, h, p) {
- var g, m, v, y;
- const {maxWidth: b, fontSize: _, markerRightMargin: w, placeholder: S, maxHeight: x, scrollFaderSize: k} = p
- , I = null !== (g = p.textRoles) && void 0 !== g ? g : []
- , C = null !== (m = p.markerRoles) && void 0 !== m ? m : []
- , M = null !== (v = p.imagePlaceholderRoles) && void 0 !== v ? v : []
- , T = null !== (y = p.groupRoles) && void 0 !== y ? y : []
- , A = h.length
- , E = _
- , O = _
- , B = _
- , L = _
- , P = (E + w) * A
- , R = p.lineHeight ? i.toCSSLength(p.lineHeight) : l.computeTextLineHeight(_)
- , z = {
- id: r.titleTextOfTopic(d),
- roles: [...I],
- bounds: o.zeroRect(),
- absBounds: o.zeroRect(),
- contentType: "text",
- text: f,
- fontSize: i.toCSSLength(_),
- textIndent: i.toCSSLength(P),
- lineHeight: R
- };
- "textAlignment"in p ? z.textAlignment = p.textAlignment : A > 0 && (z.textAlignment = "leading"),
- "overflowWrap"in p && (z.overflowWrap = p.overflowWrap),
- a.initializeBoxStyle(z, e, t, {
- layout: n
- });
- const j = s.measureText(z, {
- maxWidth: b
- })
- , {lineHeight: F, width: D, height: N} = j;
- z.bounds.width = D,
- z.bounds.height = N,
- z.lineCount = j.lineCount;
- const U = []
- , W = F;
- let H, V, $, G = 0, Z = 0;
- for (let i = 0; i < A; i++) {
- const s = h[i]
- , l = {
- id: r.markerOfTopic(d, i),
- roles: ["marker", ...C],
- bounds: {
- x: Z,
- y: (W - O) / 2,
- width: E,
- height: O
- },
- absBounds: o.zeroRect(),
- contentType: "image",
- imageSource: s.imageSource
- };
- a.initializeBoxStyle(l, e, t, {
- layout: n
- }),
- Z += E + w,
- G > 0 && (G += w),
- G += E,
- U.push(l)
- }
- u(f.length > 0, A > 0) && "image" === S ? (V = F,
- $ = F,
- H = {
- id: r.imageOfTopic(d),
- roles: ["imagePlaceholder", ...M],
- bounds: {
- x: (V - B) / 2,
- y: ($ - L) / 2,
- width: B,
- height: L
- },
- absBounds: o.zeroRect(),
- contentType: "svg-template",
- fillColor: e.foregroundColor,
- svg: c()
- },
- a.initializeBoxStyle(H, e, t, {
- layout: n
- })) : (V = 0,
- $ = 0,
- H = null);
- const q = Math.max(D, G, V)
- , Y = Math.max(N, F, W, $)
- , X = x && Y > x ? x : Y
- , J = {
- id: r.titleOfTopic(d),
- roles: [...T],
- bounds: {
- x: 0,
- y: 0,
- width: q,
- height: X
- },
- absBounds: o.zeroRect(),
- contentType: "group",
- children: [z, ...U, ...H ? [H] : []],
- contentHeight: Y,
- overflow: X < Y ? "scroll" : "visible",
- scrollFaderSize: k
- };
- return "requestForHit"in p && (J.requestForHit = p.requestForHit),
- a.initializeBoxStyle(J, e, t, {
- layout: n
- }),
- {
- groupBox: J,
- textBox: z,
- markerImageBoxes: U,
- textMeasurement: j,
- imagePlaceholderBox: H
- }
- }
- ,
- t.shouldShowPlaceholder = u,
- t.getPlaceholderImageSource = c
- },
- 36: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeTopicTitle = void 0,
- t.computeTopicTitle = function(e) {
- var t, n;
- const r = e.title;
- return 0 === r.length && !e.image && (e.note && (null !== (n = null !== (t = e.note.html) && void 0 !== t ? t : e.note.plainText) && void 0 !== n ? n : "").length > 0 || e.labels && e.labels.length > 0) ? " ".repeat(6) : r
- }
- },
- 4: function(e, t, n) {
- "use strict";
- n.d(t, "a", (function() {
- return r
- }
- ));
- function r(e, t, n, r) {
- return new (n || (n = Promise))((function(i, o) {
- function a(e) {
- try {
- l(r.next(e))
- } catch (e) {
- o(e)
- }
- }
- function s(e) {
- try {
- l(r.throw(e))
- } catch (e) {
- o(e)
- }
- }
- function l(e) {
- var t;
- e.done ? i(e.value) : (t = e.value,
- t instanceof n ? t : new n((function(e) {
- e(t)
- }
- ))).then(a, s)
- }
- l((r = r.apply(e, t || [])).next())
- }
- ))
- }
- Object.create;
- Object.create
- },
- 41: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.addHeaderBoxes = void 0;
- const r = n(5)
- , i = n(15)
- , o = n(13)
- , a = n(34)
- , s = n(35)
- , l = n(36)
- , u = n(43);
- t.addHeaderBoxes = function(e, t, n, c, d) {
- var f, h;
- const p = i.calcLength(n.headerZoneWidth, e)
- , g = Math.round(i.calcLength(n.headerZoneHeight, e))
- , m = Math.round(i.calcLength(n.headerTextFontSize, e))
- , v = i.calcLength(n.headerMarkerRightMargin, e)
- , y = i.calcLength(n.vPaddingSmall, e)
- , b = i.calcLength(n.headerTextLeftMargin, e)
- , _ = i.calcLength(n.headerLineTopMargin, e)
- , w = Math.round(i.calcLength(n.headerLineLength, e))
- , S = Math.round(i.calcLength(n.headerLineWidth, e))
- , x = null !== (f = t.markers) && void 0 !== f ? f : [];
- function k(n) {
- return s.computeTopicTitleGroup(e, c, d, t.id, n, x, {
- maxWidth: p,
- fontSize: m,
- markerRightMargin: v,
- overflowWrap: "normal",
- lineHeight: g,
- textRoles: ["header"],
- requestForHit: {
- kind: "fastBackward",
- topicId: t.id
- }
- })
- }
- const I = l.computeTopicTitle(t)
- , C = a.rangedIntegers(I.length, 1)
- , M = a.mapValues(C, e=>u.getTruncatedText(I, e))
- , T = a.mapValues(M, k)
- , A = null !== (h = a.findClosestMatch(T, (function(e) {
- return e.textMeasurement.lineCount <= 1
- }
- ))) && void 0 !== h ? h : k(u.getTruncatedText(I, 1));
- A.groupBox.bounds.x = b,
- A.groupBox.bounds.y = y;
- const E = {
- id: r.headerLineOfTopic(t.id),
- roles: ["headerLine"],
- bounds: {
- x: b,
- y: y + g + _,
- width: w,
- height: S
- },
- absBounds: o.zeroRect(),
- contentType: "shape",
- shapePath: `M${S / 2} ${S / 2} l${w - S} 0`,
- lineWidth: S
- };
- i.initializeBoxStyle(E, e, c, {
- layout: d
- }),
- e.boxes.push(A.groupBox),
- e.boxes.push(E)
- }
- },
- 42: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.disposeTextMeasurementHelpers = t.measureText = void 0;
- const r = n(12);
- t.measureText = function(e, t) {
- var n, a, s, l;
- const u = null != i ? i : i = new o
- , c = null !== (n = e.text) && void 0 !== n ? n : "";
- return u.measureText(c, {
- font: r.toCSSFont(e),
- "text-indent": null !== (a = e.textIndent) && void 0 !== a ? a : "",
- "overflow-wrap": null !== (s = e.overflowWrap) && void 0 !== s ? s : "",
- "letter-spacing": null !== (l = e.letterSpacing) && void 0 !== l ? l : ""
- }, t.maxWidth)
- }
- ,
- t.disposeTextMeasurementHelpers = function() {
- i && i.remove(),
- i = null
- }
- ;
- let i = null;
- class o {
- constructor() {
- this.el = document.createElement("div"),
- this.el.style.visibility = "hidden",
- this.el.style.position = "absolute",
- this.el.style.width = "0",
- this.el.style.height = "0",
- this.el.style.left = "0",
- this.el.style.top = "0",
- this.el.style.opacity = "0",
- this.el.style.pointerEvents = "none";
- const e = document.createElement("div");
- e.style.position = "absolute",
- e.style.width = "10000px",
- e.style.height = "0",
- this.div = document.createElement("div"),
- this.div.style.position = "absolute",
- this.div.style.left = "0",
- this.div.style.top = "0",
- this.span = document.createElement("span"),
- this.div.appendChild(this.span),
- e.appendChild(this.div),
- this.el.appendChild(e),
- document.body.appendChild(this.el)
- }
- remove() {
- document.body.removeChild(this.el)
- }
- measureText(e, t, n) {
- this.span.innerHTML = "",
- r.fillText(this.span, e),
- this.div.style.maxWidth = r.toCSSLength(n);
- for (const e in t)
- this.div.style.setProperty(e, t[e]);
- const i = this.span.getBoundingClientRect()
- , o = Math.ceil(i.right)
- , a = Math.ceil(Math.max(i.height, this.span.scrollHeight, this.div.getBoundingClientRect().height, this.div.scrollHeight))
- , s = getComputedStyle(this.div)
- , l = parseFloat(s.getPropertyValue("font-size"))
- , u = parseFloat(s.getPropertyValue("line-height"))
- , c = s.getPropertyValue("letter-spacing")
- , d = Math.round(a / u);
- return {
- width: o,
- height: d * u,
- fontSize: l,
- lineHeight: u,
- lineCount: d,
- letterSpacing: c
- }
- }
- }
- },
- 43: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.getTruncatedText = void 0,
- t.getTruncatedText = function(e, t) {
- return t === e.length ? e : e.slice(0, t) + "..."
- }
- },
- 44: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeContentFeaturesForTitleGroup = void 0,
- t.computeContentFeaturesForTitleGroup = function(e, t, n, r) {
- const i = [];
- return i.push({
- kind: "title",
- topicId: t,
- integrity: e.textBox.text !== n ? "partial" : "full"
- }),
- e.markerImageBoxes.length > 0 && i.push({
- kind: "markers",
- topicId: t,
- integrity: e.markerImageBoxes.length < r.length ? "partial" : "full"
- }),
- i
- }
- },
- 451: function(e, t, n) {
- "use strict";
- n.r(t);
- var r = n(4)
- , i = n(1)
- , o = n(226)
- , a = n(227)
- , s = n(228)
- , l = n(235)
- , u = n(234)
- , c = n(84)
- , d = n(232)
- , f = n(229)
- , h = n(233)
- , p = n(80)
- , g = Object(i.defineComponent)({
- name: "share-embed",
- components: {
- LoadingAnimation: o.default,
- FrameZoomScaleBar: a.default,
- FrameSheetsBar: s.default,
- FrameShareMenuSocial: l.a,
- FrameShareMenuOperation: u.a,
- BaseMap: d.a,
- PitchMode: h.a
- },
- props: {
- fileInformationPromise: {
- type: Promise,
- required: !0
- },
- xmindShareLink: {
- type: String,
- default: ""
- }
- },
- setup(e) {
- const t = Object(i.ref)()
- , n = Object(i.ref)()
- , o = Object(i.ref)({})
- , a = Object(i.ref)("")
- , s = Object(i.ref)()
- , l = navigator.userAgent.toLowerCase().includes("mobile")
- , u = /iphone|ipad/.test(navigator.userAgent.toLowerCase())
- , d = Object(i.inject)("store")
- , {isAppearanceDarkMode: h} = Object(f.a)({
- store: d
- })
- , g = Object(i.ref)(0)
- , m = Object(i.ref)(new p.a)
- , v = Object(i.computed)(()=>d.workbook.state.value.isFullscreen);
- e.fileInformationPromise.then(e=>Object(r.a)(this, void 0, void 0, (function*() {
- var t;
- a.value = e.fileDownloadURL,
- s.value = e.fileBinaryContent,
- d.frame.state.value.fileDownloadURL = e.fileDownloadURL,
- d.frame.state.value.fileSize = (null === (t = s.value) || void 0 === t ? void 0 : t.byteLength) || 0,
- Object(p.d)(s.value, m.value)
- }
- )));
- const y = Object(i.watch)(()=>d.workbook.state.value.isReady, e=>{
- e && (d.workbook.actions.fitMap(),
- y && y())
- }
- )
- , b = Object(i.computed)(()=>d.workbook.state.value.sheets)
- , _ = Object(i.computed)(()=>d.workbook.state.value.zoomScale)
- , w = Object(i.computed)(()=>!d.workbook.state.value.isReady)
- , S = Object(i.computed)(()=>d.workbook.state.value.currentSheetId);
- return {
- container: n,
- manifests: c.a,
- handleZoomIn: ()=>d.workbook.actions.zoomIn(),
- handleZoomOut: ()=>d.workbook.actions.zoomOut(),
- handleZoom: e=>d.workbook.actions.zoom(e),
- handleToggleFullscreen: ()=>d.workbook.actions.toggleFullscreen(),
- handleSwitchSheet: e=>d.workbook.actions.switchSheet(e),
- handleGotoXmind: ()=>window.open("https://www.xmind.app"),
- handleGotoXmindShare: ()=>window.open(e.xmindShareLink),
- workbookContainer: t,
- sheets: b,
- zoomScale: _,
- isLoadingShareMap: w,
- isAppearanceDarkMode: h,
- isFullScreen: v,
- currentSheetId: S,
- fileDownloadURL: a,
- fileDownloadHeaders: o,
- fileBinaryContent: s,
- isMobile: l,
- isIphone: u,
- resourceStorage: m,
- pitchModeKey: g
- }
- }
- })
- , m = (n(470),
- n(0))
- , v = Object(m.a)(g, (function() {
- var e = this
- , t = e.$createElement
- , n = e._self._c || t;
- return n("div", {
- ref: "container",
- staticClass: "share-embed h-100 w-100 position-relative",
- class: {
- dark: e.isAppearanceDarkMode
- }
- }, [e.fileBinaryContent ? n("base-map", {
- staticClass: "h-100 w-100",
- attrs: {
- "file-binary-content": e.fileBinaryContent
- }
- }) : e._e(), e._v(" "), e.pitchModeKey ? n("pitch-mode", {
- key: e.pitchModeKey,
- attrs: {
- "resource-storage": e.resourceStorage
- }
- }) : e._e(), e._v(" "), n("div", {
- staticClass: "xmind-logo top-left-bar position-absolute d-flex justify-content-center align-items-center"
- }, [n("img", {
- staticClass: "xmind-logo__img",
- attrs: {
- src: e.manifests.xmindLogo
- },
- on: {
- click: e.handleGotoXmind
- }
- })]), e._v(" "), e.isLoadingShareMap ? n("loading-animation", {
- attrs: {
- "video-link": e.manifests.structureAnimationVideo,
- "gif-link": e.manifests.structureAnimationGIF
- }
- }) : n("div", {
- staticClass: "bottom-right-bar floating-bar position-absolute d-flex flex-middle ml-spacing"
- }, [e.sheets.length > 1 ? [n("frame-sheets-bar", {
- attrs: {
- "current-sheet-id": e.currentSheetId,
- sheets: e.sheets
- },
- on: {
- "switch-sheet": e.handleSwitchSheet
- }
- }), e._v(" "), n("hr", {
- staticClass: "floating-bar__vertical-separator"
- })] : e._e(), e._v(" "), n("frame-zoom-scale-bar", {
- attrs: {
- "zoom-scale": e.zoomScale
- },
- on: {
- "zoom-in": e.handleZoomIn,
- "zoom-out": e.handleZoomOut,
- zoom: e.handleZoom
- }
- }), e._v(" "), e.isMobile ? e._e() : n("button", {
- staticClass: "btn btn-icon ml-spacing",
- on: {
- click: e.handleToggleFullscreen
- }
- }, [n("svg", {
- attrs: {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- d: "M4.8002 4.5C4.21024 4.5 3.69109 4.77329 3.33199 5.13262C2.97297 5.49186 2.7002 6.01088 2.7002 6.6V10.2C2.7002 10.6971 3.10314 11.1 3.6002 11.1C4.09725 11.1 4.5002 10.6971 4.5002 10.2V6.6C4.5002 6.57262 4.51861 6.49164 4.60518 6.40501C4.69168 6.31846 4.77253 6.3 4.8002 6.3H9.0002C9.49725 6.3 9.9002 5.89706 9.9002 5.4C9.9002 4.90294 9.49725 4.5 9.0002 4.5H4.8002Z",
- fill: "#27292A"
- }
- }), e._v(" "), n("path", {
- attrs: {
- d: "M4.5002 13.8C4.5002 13.3029 4.09725 12.9 3.6002 12.9C3.10314 12.9 2.7002 13.3029 2.7002 13.8V17.4C2.7002 17.9927 2.98749 18.5101 3.3388 18.8614C3.69011 19.2127 4.20749 19.5 4.8002 19.5H8.4002C8.89725 19.5 9.3002 19.0971 9.3002 18.6C9.3002 18.1029 8.89725 17.7 8.4002 17.7H4.8002C4.7929 17.7 4.71028 17.6873 4.61159 17.5886C4.5129 17.4899 4.5002 17.4073 4.5002 17.4V13.8Z",
- fill: "#27292A"
- }
- }), e._v(" "), n("path", {
- attrs: {
- d: "M14.1002 5.4C14.1002 4.90294 14.5031 4.5 15.0002 4.5H19.2508C20.3649 4.5 21.2691 5.40298 21.2691 6.51713V10.2C21.2691 10.6971 20.8661 11.1 20.3691 11.1C19.872 11.1 19.4691 10.6971 19.4691 10.2V6.51713C19.4691 6.39827 19.372 6.3 19.2508 6.3H15.0002C14.5031 6.3 14.1002 5.89706 14.1002 5.4Z",
- fill: "#27292A"
- }
- }), e._v(" "), n("path", {
- attrs: {
- d: "M21.3002 13.8C21.3002 13.3029 20.8973 12.9 20.4002 12.9C19.9031 12.9 19.5002 13.3029 19.5002 13.8V17.4C19.5002 17.4282 19.4816 17.509 19.3954 17.5952C19.3092 17.6814 19.2284 17.7 19.2002 17.7H15.6002C15.1031 17.7 14.7002 18.1029 14.7002 18.6C14.7002 19.0971 15.1031 19.5 15.6002 19.5H19.2002C19.7896 19.5 20.3088 19.2274 20.6682 18.868C21.0276 18.5086 21.3002 17.9894 21.3002 17.4V13.8Z",
- fill: "#27292A"
- }
- })])]), e._v(" "), e.isIphone ? e._e() : n("div", {
- staticClass: "ml-spacing"
- }, [n("button", {
- staticClass: "btn btn-icon",
- attrs: {
- type: "button"
- },
- on: {
- click: function(t) {
- e.pitchModeKey += 1
- }
- }
- }, [n("svg", {
- attrs: {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg"
- }
- }, [n("path", {
- attrs: {
- d: "M10.0357 15C10.1964 15 10.338 14.9487 10.514 14.8563L15.0332 12.52C15.3622 12.3489 15.5 12.2155 15.5 12C15.5 11.7845 15.3622 11.6545 15.0332 11.48L10.514 9.14367C10.338 9.05131 10.1964 9 10.0357 9C9.72194 9 9.5 9.21551 9.5 9.55416V14.4458C9.5 14.7879 9.72194 15 10.0357 15Z",
- fill: "currentcolor"
- }
- }), e._v(" "), n("rect", {
- attrs: {
- x: "3",
- y: "5",
- width: "18",
- height: "14",
- rx: "3",
- stroke: "currentcolor",
- "stroke-width": "2"
- }
- })])])]), e._v(" "), n("button", {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: e.xmindShareLink,
- expression: "xmindShareLink"
- }],
- staticClass: "btn btn-icon ml-spacing",
- on: {
- click: e.handleGotoXmindShare
- }
- }, [n("span", {
- staticClass: "icon-jump"
- })])], 2)], 1)
- }
- ), [], !1, null, null, null);
- t.default = v.exports
- },
- 470: function(e, t, n) {
- "use strict";
- n(332)
- },
- 471: function(e, t, n) {
- (e.exports = n(2)(!1)).push([e.i, ".xm-color-g10{color:#fcfcfc}.xm-color-g20{color:#f9f9f9}.xm-color-g30{color:#ebebeb}.xm-color-g40{color:#d6d6d6}.xm-color-g50{color:#b2b2b2}.xm-color-g60{color:#8c8c8c}.xm-color-g70{color:#666}.xm-color-g80{color:#2b2b2b}.xm-color-g90{color:#111}.share-embed{background-color:white}.share-embed .xmind-logo .xmind-logo__img{cursor:pointer}.share-embed .top-left-bar{left:14px;top:14px}.share-embed .top-left-bar .top-left-bar__title{line-height:1.25;font-size:20px;padding-left:18px;padding-right:18px;padding-top:4px;padding-bottom:3px}.share-embed .top-left-bar .top-left-bar__title a{color:inherit}.share-embed .top-left-bar .top-left-bar__title a:hover{text-decoration:none}.share-embed .bottom-right-bar{right:14px;bottom:14px}\n", ""])
- },
- 5: function(e, t, n) {
- "use strict";
- var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
- void 0 === r && (r = n),
- Object.defineProperty(e, r, {
- enumerable: !0,
- get: function() {
- return t[n]
- }
- })
- }
- : function(e, t, n, r) {
- void 0 === r && (r = n),
- e[r] = t[n]
- }
- )
- , i = this && this.__exportStar || function(e, t) {
- for (var n in e)
- "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- i(n(239), t),
- i(n(240), t),
- i(n(156), t),
- i(n(157), t),
- i(n(241), t),
- i(n(242), t),
- i(n(243), t),
- i(n(256), t)
- },
- 50: function(e, t, n) {
- "use strict";
- var r = this && this.__importDefault || function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.ViewAnimator = void 0;
- const i = r(n(70));
- class o {
- constructor(e) {
- var t;
- this._pendingChanges = new Map,
- this.duration = e.duration,
- this.easing = null !== (t = e.easing) && void 0 !== t ? t : "linear"
- }
- registerPendingChange(e, t) {
- var n;
- const r = null !== (n = this._pendingChanges.get(e)) && void 0 !== n ? n : {};
- this._pendingChanges.set(e, Object.assign(Object.assign({}, r), t))
- }
- animate(e) {
- const t = o.current;
- return o.current = this,
- e(),
- o.current = t,
- this
- }
- play() {
- const e = this._pendingChanges;
- this._pendingChanges = new Map;
- const t = {
- duration: this.duration,
- easing: this.easing
- };
- return Promise.all(Array.from(e, ([e,n])=>i.default(Object.assign(Object.assign(Object.assign({}, a(n, e)), t), {
- targets: e
- })).finished)).then(()=>{}
- )
- }
- static perform(e, t) {
- o.current ? o.current.registerPendingChange(e, t) : i.default.set(e, a(t, e))
- }
- }
- function a(e, t) {
- const n = Object.assign({}, e);
- return void 0 !== e.strokeOffset ? (n.strokeDashoffset = i.default.setDashoffset(t) * e.strokeOffset,
- delete n.strokeOffset) : e.transform && ("none" !== e.transform && e.transform.forEach(e=>{
- "translate"in e && (n.translateX = e.translate.x,
- n.translateY = e.translate.y),
- "scale"in e && (n.scaleX = e.scale.x,
- n.scaleY = e.scale.y),
- "rotate"in e && (n.rotate = e.rotate)
- }
- ),
- delete n.transform),
- n
- }
- t.ViewAnimator = o,
- o.current = null
- },
- 51: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.htmlClassesForBox = t.forEachBoxViewIn = t.BoxView = void 0;
- const r = n(12)
- , i = n(76)
- , o = n(50)
- , a = n(110);
- class s extends i.View {
- constructor(e) {
- super(e),
- this._cachedState = null,
- this._eventListener = e=>{
- switch (e.type) {
- case "click":
- return this._onClick(e);
- case "mouseenter":
- return this._onMouseEnter(e);
- case "mouseleave":
- return this._onMouseLeave(e);
- case "mousedown":
- return this._onMouseDown(e);
- case "mouseup":
- return this._onMouseUp(e)
- }
- }
- ,
- this.box = e.box,
- this.renderedState = {
- id: e.box.id
- }
- }
- get state() {
- var e, t, n;
- if (this._cachedState)
- return this._cachedState;
- const r = null === (e = a.findPresentationContext(this, "slideState")) || void 0 === e ? void 0 : e.slideState;
- return this._cachedState = null !== (n = null === (t = null == r ? void 0 : r.boxes) || void 0 === t ? void 0 : t.find(e=>e.id === this.box.id)) && void 0 !== n ? n : {
- id: this.box.id
- },
- this._cachedState
- }
- update() {
- var e, t;
- super.update(),
- this._cachedState = null,
- this.renderedState.id = this.box.id;
- const n = this.box.bounds;
- this.el.style.left = r.toCSSLength(n.x),
- this.el.style.top = r.toCSSLength(n.y),
- this.el.style.width = r.toCSSLength(n.width),
- this.el.style.height = r.toCSSLength(n.height),
- this.el.style.transformOrigin = "center center",
- this.el.setAttribute("class", l(this.box)),
- this.updateStyle(this.state, "opacity", e=>o.ViewAnimator.perform(this.el, {
- opacity: null != e ? e : 1
- })),
- this.updateStyle(this.state, "transform", e=>o.ViewAnimator.perform(this.el, {
- transform: null != e ? e : "none"
- }));
- const i = this.connected && "presenterPerspective" === (null === (e = a.findPresentationContext(this, "slideState")) || void 0 === e ? void 0 : e.slideState.mode) && (null === (t = a.findPresentationContext(this, "presentationState")) || void 0 === t ? void 0 : t.presentationState.showCursor);
- this.el.style.cursor = this.box.requestForHit && i ? "pointer" : ""
- }
- updateStyle(e, t, n) {
- var r;
- const i = null !== (r = null == e ? void 0 : e[t]) && void 0 !== r ? r : this.box[t];
- i !== this.renderedState[t] && (n(i),
- this.renderedState[t] = i)
- }
- connect() {
- super.connect(),
- this.el.addEventListener("click", this._eventListener),
- this.el.addEventListener("mouseenter", this._eventListener),
- this.el.addEventListener("mouseleave", this._eventListener),
- this.el.addEventListener("mousedown", this._eventListener),
- this.el.addEventListener("mouseup", this._eventListener)
- }
- disconnect() {
- this.el.removeEventListener("click", this._eventListener),
- this.el.removeEventListener("mouseenter", this._eventListener),
- this.el.removeEventListener("mouseleave", this._eventListener),
- this.el.removeEventListener("mousedown", this._eventListener),
- this.el.removeEventListener("mouseup", this._eventListener),
- super.disconnect()
- }
- _onClick(e) {
- if (!this.box.requestForHit)
- return;
- const t = a.findPresentationContext(this, "boxViewDidGetHit");
- t && (e.stopPropagation(),
- t.boxViewDidGetHit(this))
- }
- _onMouseEnter(e) {
- var t;
- this.box.requestForHit && (null === (t = a.findPresentationContext(this, "boxViewDidGetPointerEntered")) || void 0 === t || t.boxViewDidGetPointerEntered(this))
- }
- _onMouseLeave(e) {
- var t;
- this.box.requestForHit && (null === (t = a.findPresentationContext(this, "boxViewDidGetPointerLeft")) || void 0 === t || t.boxViewDidGetPointerLeft(this))
- }
- _onMouseDown(e) {
- var t;
- this.box.requestForHit && (null === (t = a.findPresentationContext(this, "boxViewDidGetPointerCaptured")) || void 0 === t || t.boxViewDidGetPointerCaptured(this))
- }
- _onMouseUp(e) {
- var t;
- this.box.requestForHit && (null === (t = a.findPresentationContext(this, "boxViewDidGetPointerReleased")) || void 0 === t || t.boxViewDidGetPointerReleased(this))
- }
- }
- function l(e) {
- switch (e.contentType) {
- case "text":
- return "pancake-view-text";
- case "group":
- return "pancake-view-group";
- case "image":
- return "pancake-view-image";
- case "shape":
- return "pancake-view-shape";
- case "svg-template":
- return "pancake-view-svg-template"
- }
- }
- t.BoxView = s,
- t.forEachBoxViewIn = function e(t, n) {
- let r = !1;
- for (const i of t) {
- if (n(i, ()=>{
- r = !0
- }
- ),
- r)
- return;
- if ("group" === i.box.contentType && "subviews"in i && (e(i.subviews, (e,t)=>{
- n(e, ()=>{
- r = !0,
- t()
- }
- )
- }
- ),
- r))
- return
- }
- }
- ,
- t.htmlClassesForBox = l
- },
- 60: function(e, t, n) {
- "use strict";
- n.r(t),
- function(e, n) {
- /*!
- * Vue.js v2.6.14
- * (c) 2014-2021 Evan You
- * Released under the MIT License.
- */
- var r = Object.freeze({});
- function i(e) {
- return null == e
- }
- function o(e) {
- return null != e
- }
- function a(e) {
- return !0 === e
- }
- function s(e) {
- return "string" == typeof e || "number" == typeof e || "symbol" == typeof e || "boolean" == typeof e
- }
- function l(e) {
- return null !== e && "object" == typeof e
- }
- var u = Object.prototype.toString;
- function c(e) {
- return "[object Object]" === u.call(e)
- }
- function d(e) {
- return "[object RegExp]" === u.call(e)
- }
- function f(e) {
- var t = parseFloat(String(e));
- return t >= 0 && Math.floor(t) === t && isFinite(e)
- }
- function h(e) {
- return o(e) && "function" == typeof e.then && "function" == typeof e.catch
- }
- function p(e) {
- return null == e ? "" : Array.isArray(e) || c(e) && e.toString === u ? JSON.stringify(e, null, 2) : String(e)
- }
- function g(e) {
- var t = parseFloat(e);
- return isNaN(t) ? e : t
- }
- function m(e, t) {
- for (var n = Object.create(null), r = e.split(","), i = 0; i < r.length; i++)
- n[r[i]] = !0;
- return t ? function(e) {
- return n[e.toLowerCase()]
- }
- : function(e) {
- return n[e]
- }
- }
- m("slot,component", !0);
- var v = m("key,ref,slot,slot-scope,is");
- function y(e, t) {
- if (e.length) {
- var n = e.indexOf(t);
- if (n > -1)
- return e.splice(n, 1)
- }
- }
- var b = Object.prototype.hasOwnProperty;
- function _(e, t) {
- return b.call(e, t)
- }
- function w(e) {
- var t = Object.create(null);
- return function(n) {
- return t[n] || (t[n] = e(n))
- }
- }
- var S = /-(\w)/g
- , x = w((function(e) {
- return e.replace(S, (function(e, t) {
- return t ? t.toUpperCase() : ""
- }
- ))
- }
- ))
- , k = w((function(e) {
- return e.charAt(0).toUpperCase() + e.slice(1)
- }
- ))
- , I = /\B([A-Z])/g
- , C = w((function(e) {
- return e.replace(I, "-$1").toLowerCase()
- }
- ));
- var M = Function.prototype.bind ? function(e, t) {
- return e.bind(t)
- }
- : function(e, t) {
- function n(n) {
- var r = arguments.length;
- return r ? r > 1 ? e.apply(t, arguments) : e.call(t, n) : e.call(t)
- }
- return n._length = e.length,
- n
- }
- ;
- function T(e, t) {
- t = t || 0;
- for (var n = e.length - t, r = new Array(n); n--; )
- r[n] = e[n + t];
- return r
- }
- function A(e, t) {
- for (var n in t)
- e[n] = t[n];
- return e
- }
- function E(e) {
- for (var t = {}, n = 0; n < e.length; n++)
- e[n] && A(t, e[n]);
- return t
- }
- function O(e, t, n) {}
- var B = function(e, t, n) {
- return !1
- }
- , L = function(e) {
- return e
- };
- function P(e, t) {
- if (e === t)
- return !0;
- var n = l(e)
- , r = l(t);
- if (!n || !r)
- return !n && !r && String(e) === String(t);
- try {
- var i = Array.isArray(e)
- , o = Array.isArray(t);
- if (i && o)
- return e.length === t.length && e.every((function(e, n) {
- return P(e, t[n])
- }
- ));
- if (e instanceof Date && t instanceof Date)
- return e.getTime() === t.getTime();
- if (i || o)
- return !1;
- var a = Object.keys(e)
- , s = Object.keys(t);
- return a.length === s.length && a.every((function(n) {
- return P(e[n], t[n])
- }
- ))
- } catch (e) {
- return !1
- }
- }
- function R(e, t) {
- for (var n = 0; n < e.length; n++)
- if (P(e[n], t))
- return n;
- return -1
- }
- function z(e) {
- var t = !1;
- return function() {
- t || (t = !0,
- e.apply(this, arguments))
- }
- }
- var j = ["component", "directive", "filter"]
- , F = ["beforeCreate", "created", "beforeMount", "mounted", "beforeUpdate", "updated", "beforeDestroy", "destroyed", "activated", "deactivated", "errorCaptured", "serverPrefetch"]
- , D = {
- optionMergeStrategies: Object.create(null),
- silent: !1,
- productionTip: !1,
- devtools: !1,
- performance: !1,
- errorHandler: null,
- warnHandler: null,
- ignoredElements: [],
- keyCodes: Object.create(null),
- isReservedTag: B,
- isReservedAttr: B,
- isUnknownElement: B,
- getTagNamespace: O,
- parsePlatformTagName: L,
- mustUseProp: B,
- async: !0,
- _lifecycleHooks: F
- }
- , N = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
- function U(e, t, n, r) {
- Object.defineProperty(e, t, {
- value: n,
- enumerable: !!r,
- writable: !0,
- configurable: !0
- })
- }
- var W = new RegExp("[^" + N.source + ".$_\\d]");
- var H, V = "__proto__"in {}, $ = "undefined" != typeof window, G = "undefined" != typeof WXEnvironment && !!WXEnvironment.platform, Z = G && WXEnvironment.platform.toLowerCase(), q = $ && window.navigator.userAgent.toLowerCase(), Y = q && /msie|trident/.test(q), X = q && q.indexOf("msie 9.0") > 0, J = q && q.indexOf("edge/") > 0, Q = (q && q.indexOf("android"),
- q && /iphone|ipad|ipod|ios/.test(q) || "ios" === Z), K = (q && /chrome\/\d+/.test(q),
- q && /phantomjs/.test(q),
- q && q.match(/firefox\/(\d+)/)), ee = {}.watch, te = !1;
- if ($)
- try {
- var ne = {};
- Object.defineProperty(ne, "passive", {
- get: function() {
- te = !0
- }
- }),
- window.addEventListener("test-passive", null, ne)
- } catch (e) {}
- var re = function() {
- return void 0 === H && (H = !$ && !G && void 0 !== e && (e.process && "server" === e.process.env.VUE_ENV)),
- H
- }
- , ie = $ && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
- function oe(e) {
- return "function" == typeof e && /native code/.test(e.toString())
- }
- var ae, se = "undefined" != typeof Symbol && oe(Symbol) && "undefined" != typeof Reflect && oe(Reflect.ownKeys);
- ae = "undefined" != typeof Set && oe(Set) ? Set : function() {
- function e() {
- this.set = Object.create(null)
- }
- return e.prototype.has = function(e) {
- return !0 === this.set[e]
- }
- ,
- e.prototype.add = function(e) {
- this.set[e] = !0
- }
- ,
- e.prototype.clear = function() {
- this.set = Object.create(null)
- }
- ,
- e
- }();
- var le = O
- , ue = 0
- , ce = function() {
- this.id = ue++,
- this.subs = []
- };
- ce.prototype.addSub = function(e) {
- this.subs.push(e)
- }
- ,
- ce.prototype.removeSub = function(e) {
- y(this.subs, e)
- }
- ,
- ce.prototype.depend = function() {
- ce.target && ce.target.addDep(this)
- }
- ,
- ce.prototype.notify = function() {
- var e = this.subs.slice();
- for (var t = 0, n = e.length; t < n; t++)
- e[t].update()
- }
- ,
- ce.target = null;
- var de = [];
- function fe(e) {
- de.push(e),
- ce.target = e
- }
- function he() {
- de.pop(),
- ce.target = de[de.length - 1]
- }
- var pe = function(e, t, n, r, i, o, a, s) {
- this.tag = e,
- this.data = t,
- this.children = n,
- this.text = r,
- this.elm = i,
- this.ns = void 0,
- this.context = o,
- this.fnContext = void 0,
- this.fnOptions = void 0,
- this.fnScopeId = void 0,
- this.key = t && t.key,
- this.componentOptions = a,
- this.componentInstance = void 0,
- this.parent = void 0,
- this.raw = !1,
- this.isStatic = !1,
- this.isRootInsert = !0,
- this.isComment = !1,
- this.isCloned = !1,
- this.isOnce = !1,
- this.asyncFactory = s,
- this.asyncMeta = void 0,
- this.isAsyncPlaceholder = !1
- }
- , ge = {
- child: {
- configurable: !0
- }
- };
- ge.child.get = function() {
- return this.componentInstance
- }
- ,
- Object.defineProperties(pe.prototype, ge);
- var me = function(e) {
- void 0 === e && (e = "");
- var t = new pe;
- return t.text = e,
- t.isComment = !0,
- t
- };
- function ve(e) {
- return new pe(void 0,void 0,void 0,String(e))
- }
- function ye(e) {
- var t = new pe(e.tag,e.data,e.children && e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);
- return t.ns = e.ns,
- t.isStatic = e.isStatic,
- t.key = e.key,
- t.isComment = e.isComment,
- t.fnContext = e.fnContext,
- t.fnOptions = e.fnOptions,
- t.fnScopeId = e.fnScopeId,
- t.asyncMeta = e.asyncMeta,
- t.isCloned = !0,
- t
- }
- var be = Array.prototype
- , _e = Object.create(be);
- ["push", "pop", "shift", "unshift", "splice", "sort", "reverse"].forEach((function(e) {
- var t = be[e];
- U(_e, e, (function() {
- for (var n = [], r = arguments.length; r--; )
- n[r] = arguments[r];
- var i, o = t.apply(this, n), a = this.__ob__;
- switch (e) {
- case "push":
- case "unshift":
- i = n;
- break;
- case "splice":
- i = n.slice(2)
- }
- return i && a.observeArray(i),
- a.dep.notify(),
- o
- }
- ))
- }
- ));
- var we = Object.getOwnPropertyNames(_e)
- , Se = !0;
- function xe(e) {
- Se = e
- }
- var ke = function(e) {
- this.value = e,
- this.dep = new ce,
- this.vmCount = 0,
- U(e, "__ob__", this),
- Array.isArray(e) ? (V ? function(e, t) {
- e.__proto__ = t
- }(e, _e) : function(e, t, n) {
- for (var r = 0, i = n.length; r < i; r++) {
- var o = n[r];
- U(e, o, t[o])
- }
- }(e, _e, we),
- this.observeArray(e)) : this.walk(e)
- };
- function Ie(e, t) {
- var n;
- if (l(e) && !(e instanceof pe))
- return _(e, "__ob__") && e.__ob__ instanceof ke ? n = e.__ob__ : Se && !re() && (Array.isArray(e) || c(e)) && Object.isExtensible(e) && !e._isVue && (n = new ke(e)),
- t && n && n.vmCount++,
- n
- }
- function Ce(e, t, n, r, i) {
- var o = new ce
- , a = Object.getOwnPropertyDescriptor(e, t);
- if (!a || !1 !== a.configurable) {
- var s = a && a.get
- , l = a && a.set;
- s && !l || 2 !== arguments.length || (n = e[t]);
- var u = !i && Ie(n);
- Object.defineProperty(e, t, {
- enumerable: !0,
- configurable: !0,
- get: function() {
- var t = s ? s.call(e) : n;
- return ce.target && (o.depend(),
- u && (u.dep.depend(),
- Array.isArray(t) && Ae(t))),
- t
- },
- set: function(t) {
- var r = s ? s.call(e) : n;
- t === r || t != t && r != r || s && !l || (l ? l.call(e, t) : n = t,
- u = !i && Ie(t),
- o.notify())
- }
- })
- }
- }
- function Me(e, t, n) {
- if (Array.isArray(e) && f(t))
- return e.length = Math.max(e.length, t),
- e.splice(t, 1, n),
- n;
- if (t in e && !(t in Object.prototype))
- return e[t] = n,
- n;
- var r = e.__ob__;
- return e._isVue || r && r.vmCount ? n : r ? (Ce(r.value, t, n),
- r.dep.notify(),
- n) : (e[t] = n,
- n)
- }
- function Te(e, t) {
- if (Array.isArray(e) && f(t))
- e.splice(t, 1);
- else {
- var n = e.__ob__;
- e._isVue || n && n.vmCount || _(e, t) && (delete e[t],
- n && n.dep.notify())
- }
- }
- function Ae(e) {
- for (var t = void 0, n = 0, r = e.length; n < r; n++)
- (t = e[n]) && t.__ob__ && t.__ob__.dep.depend(),
- Array.isArray(t) && Ae(t)
- }
- ke.prototype.walk = function(e) {
- for (var t = Object.keys(e), n = 0; n < t.length; n++)
- Ce(e, t[n])
- }
- ,
- ke.prototype.observeArray = function(e) {
- for (var t = 0, n = e.length; t < n; t++)
- Ie(e[t])
- }
- ;
- var Ee = D.optionMergeStrategies;
- function Oe(e, t) {
- if (!t)
- return e;
- for (var n, r, i, o = se ? Reflect.ownKeys(t) : Object.keys(t), a = 0; a < o.length; a++)
- "__ob__" !== (n = o[a]) && (r = e[n],
- i = t[n],
- _(e, n) ? r !== i && c(r) && c(i) && Oe(r, i) : Me(e, n, i));
- return e
- }
- function Be(e, t, n) {
- return n ? function() {
- var r = "function" == typeof t ? t.call(n, n) : t
- , i = "function" == typeof e ? e.call(n, n) : e;
- return r ? Oe(r, i) : i
- }
- : t ? e ? function() {
- return Oe("function" == typeof t ? t.call(this, this) : t, "function" == typeof e ? e.call(this, this) : e)
- }
- : t : e
- }
- function Le(e, t) {
- var n = t ? e ? e.concat(t) : Array.isArray(t) ? t : [t] : e;
- return n ? function(e) {
- for (var t = [], n = 0; n < e.length; n++)
- -1 === t.indexOf(e[n]) && t.push(e[n]);
- return t
- }(n) : n
- }
- function Pe(e, t, n, r) {
- var i = Object.create(e || null);
- return t ? A(i, t) : i
- }
- Ee.data = function(e, t, n) {
- return n ? Be(e, t, n) : t && "function" != typeof t ? e : Be(e, t)
- }
- ,
- F.forEach((function(e) {
- Ee[e] = Le
- }
- )),
- j.forEach((function(e) {
- Ee[e + "s"] = Pe
- }
- )),
- Ee.watch = function(e, t, n, r) {
- if (e === ee && (e = void 0),
- t === ee && (t = void 0),
- !t)
- return Object.create(e || null);
- if (!e)
- return t;
- var i = {};
- for (var o in A(i, e),
- t) {
- var a = i[o]
- , s = t[o];
- a && !Array.isArray(a) && (a = [a]),
- i[o] = a ? a.concat(s) : Array.isArray(s) ? s : [s]
- }
- return i
- }
- ,
- Ee.props = Ee.methods = Ee.inject = Ee.computed = function(e, t, n, r) {
- if (!e)
- return t;
- var i = Object.create(null);
- return A(i, e),
- t && A(i, t),
- i
- }
- ,
- Ee.provide = Be;
- var Re = function(e, t) {
- return void 0 === t ? e : t
- };
- function ze(e, t, n) {
- if ("function" == typeof t && (t = t.options),
- function(e, t) {
- var n = e.props;
- if (n) {
- var r, i, o = {};
- if (Array.isArray(n))
- for (r = n.length; r--; )
- "string" == typeof (i = n[r]) && (o[x(i)] = {
- type: null
- });
- else if (c(n))
- for (var a in n)
- i = n[a],
- o[x(a)] = c(i) ? i : {
- type: i
- };
- else
- 0;
- e.props = o
- }
- }(t),
- function(e, t) {
- var n = e.inject;
- if (n) {
- var r = e.inject = {};
- if (Array.isArray(n))
- for (var i = 0; i < n.length; i++)
- r[n[i]] = {
- from: n[i]
- };
- else if (c(n))
- for (var o in n) {
- var a = n[o];
- r[o] = c(a) ? A({
- from: o
- }, a) : {
- from: a
- }
- }
- else
- 0
- }
- }(t),
- function(e) {
- var t = e.directives;
- if (t)
- for (var n in t) {
- var r = t[n];
- "function" == typeof r && (t[n] = {
- bind: r,
- update: r
- })
- }
- }(t),
- !t._base && (t.extends && (e = ze(e, t.extends, n)),
- t.mixins))
- for (var r = 0, i = t.mixins.length; r < i; r++)
- e = ze(e, t.mixins[r], n);
- var o, a = {};
- for (o in e)
- s(o);
- for (o in t)
- _(e, o) || s(o);
- function s(r) {
- var i = Ee[r] || Re;
- a[r] = i(e[r], t[r], n, r)
- }
- return a
- }
- function je(e, t, n, r) {
- if ("string" == typeof n) {
- var i = e[t];
- if (_(i, n))
- return i[n];
- var o = x(n);
- if (_(i, o))
- return i[o];
- var a = k(o);
- return _(i, a) ? i[a] : i[n] || i[o] || i[a]
- }
- }
- function Fe(e, t, n, r) {
- var i = t[e]
- , o = !_(n, e)
- , a = n[e]
- , s = We(Boolean, i.type);
- if (s > -1)
- if (o && !_(i, "default"))
- a = !1;
- else if ("" === a || a === C(e)) {
- var l = We(String, i.type);
- (l < 0 || s < l) && (a = !0)
- }
- if (void 0 === a) {
- a = function(e, t, n) {
- if (!_(t, "default"))
- return;
- var r = t.default;
- 0;
- if (e && e.$options.propsData && void 0 === e.$options.propsData[n] && void 0 !== e._props[n])
- return e._props[n];
- return "function" == typeof r && "Function" !== Ne(t.type) ? r.call(e) : r
- }(r, i, e);
- var u = Se;
- xe(!0),
- Ie(a),
- xe(u)
- }
- return a
- }
- var De = /^\s*function (\w+)/;
- function Ne(e) {
- var t = e && e.toString().match(De);
- return t ? t[1] : ""
- }
- function Ue(e, t) {
- return Ne(e) === Ne(t)
- }
- function We(e, t) {
- if (!Array.isArray(t))
- return Ue(t, e) ? 0 : -1;
- for (var n = 0, r = t.length; n < r; n++)
- if (Ue(t[n], e))
- return n;
- return -1
- }
- function He(e, t, n) {
- fe();
- try {
- if (t)
- for (var r = t; r = r.$parent; ) {
- var i = r.$options.errorCaptured;
- if (i)
- for (var o = 0; o < i.length; o++)
- try {
- if (!1 === i[o].call(r, e, t, n))
- return
- } catch (e) {
- $e(e, r, "errorCaptured hook")
- }
- }
- $e(e, t, n)
- } finally {
- he()
- }
- }
- function Ve(e, t, n, r, i) {
- var o;
- try {
- (o = n ? e.apply(t, n) : e.call(t)) && !o._isVue && h(o) && !o._handled && (o.catch((function(e) {
- return He(e, r, i + " (Promise/async)")
- }
- )),
- o._handled = !0)
- } catch (e) {
- He(e, r, i)
- }
- return o
- }
- function $e(e, t, n) {
- if (D.errorHandler)
- try {
- return D.errorHandler.call(null, e, t, n)
- } catch (t) {
- t !== e && Ge(t, null, "config.errorHandler")
- }
- Ge(e, t, n)
- }
- function Ge(e, t, n) {
- if (!$ && !G || "undefined" == typeof console)
- throw e;
- console.error(e)
- }
- var Ze, qe = !1, Ye = [], Xe = !1;
- function Je() {
- Xe = !1;
- var e = Ye.slice(0);
- Ye.length = 0;
- for (var t = 0; t < e.length; t++)
- e[t]()
- }
- if ("undefined" != typeof Promise && oe(Promise)) {
- var Qe = Promise.resolve();
- Ze = function() {
- Qe.then(Je),
- Q && setTimeout(O)
- }
- ,
- qe = !0
- } else if (Y || "undefined" == typeof MutationObserver || !oe(MutationObserver) && "[object MutationObserverConstructor]" !== MutationObserver.toString())
- Ze = void 0 !== n && oe(n) ? function() {
- n(Je)
- }
- : function() {
- setTimeout(Je, 0)
- }
- ;
- else {
- var Ke = 1
- , et = new MutationObserver(Je)
- , tt = document.createTextNode(String(Ke));
- et.observe(tt, {
- characterData: !0
- }),
- Ze = function() {
- Ke = (Ke + 1) % 2,
- tt.data = String(Ke)
- }
- ,
- qe = !0
- }
- function nt(e, t) {
- var n;
- if (Ye.push((function() {
- if (e)
- try {
- e.call(t)
- } catch (e) {
- He(e, t, "nextTick")
- }
- else
- n && n(t)
- }
- )),
- Xe || (Xe = !0,
- Ze()),
- !e && "undefined" != typeof Promise)
- return new Promise((function(e) {
- n = e
- }
- ))
- }
- var rt = new ae;
- function it(e) {
- !function e(t, n) {
- var r, i, o = Array.isArray(t);
- if (!o && !l(t) || Object.isFrozen(t) || t instanceof pe)
- return;
- if (t.__ob__) {
- var a = t.__ob__.dep.id;
- if (n.has(a))
- return;
- n.add(a)
- }
- if (o)
- for (r = t.length; r--; )
- e(t[r], n);
- else
- for (i = Object.keys(t),
- r = i.length; r--; )
- e(t[i[r]], n)
- }(e, rt),
- rt.clear()
- }
- var ot = w((function(e) {
- var t = "&" === e.charAt(0)
- , n = "~" === (e = t ? e.slice(1) : e).charAt(0)
- , r = "!" === (e = n ? e.slice(1) : e).charAt(0);
- return {
- name: e = r ? e.slice(1) : e,
- once: n,
- capture: r,
- passive: t
- }
- }
- ));
- function at(e, t) {
- function n() {
- var e = arguments
- , r = n.fns;
- if (!Array.isArray(r))
- return Ve(r, null, arguments, t, "v-on handler");
- for (var i = r.slice(), o = 0; o < i.length; o++)
- Ve(i[o], null, e, t, "v-on handler")
- }
- return n.fns = e,
- n
- }
- function st(e, t, n, r, o, s) {
- var l, u, c, d;
- for (l in e)
- u = e[l],
- c = t[l],
- d = ot(l),
- i(u) || (i(c) ? (i(u.fns) && (u = e[l] = at(u, s)),
- a(d.once) && (u = e[l] = o(d.name, u, d.capture)),
- n(d.name, u, d.capture, d.passive, d.params)) : u !== c && (c.fns = u,
- e[l] = c));
- for (l in t)
- i(e[l]) && r((d = ot(l)).name, t[l], d.capture)
- }
- function lt(e, t, n) {
- var r;
- e instanceof pe && (e = e.data.hook || (e.data.hook = {}));
- var s = e[t];
- function l() {
- n.apply(this, arguments),
- y(r.fns, l)
- }
- i(s) ? r = at([l]) : o(s.fns) && a(s.merged) ? (r = s).fns.push(l) : r = at([s, l]),
- r.merged = !0,
- e[t] = r
- }
- function ut(e, t, n, r, i) {
- if (o(t)) {
- if (_(t, n))
- return e[n] = t[n],
- i || delete t[n],
- !0;
- if (_(t, r))
- return e[n] = t[r],
- i || delete t[r],
- !0
- }
- return !1
- }
- function ct(e) {
- return s(e) ? [ve(e)] : Array.isArray(e) ? function e(t, n) {
- var r, l, u, c, d = [];
- for (r = 0; r < t.length; r++)
- i(l = t[r]) || "boolean" == typeof l || (u = d.length - 1,
- c = d[u],
- Array.isArray(l) ? l.length > 0 && (dt((l = e(l, (n || "") + "_" + r))[0]) && dt(c) && (d[u] = ve(c.text + l[0].text),
- l.shift()),
- d.push.apply(d, l)) : s(l) ? dt(c) ? d[u] = ve(c.text + l) : "" !== l && d.push(ve(l)) : dt(l) && dt(c) ? d[u] = ve(c.text + l.text) : (a(t._isVList) && o(l.tag) && i(l.key) && o(n) && (l.key = "__vlist" + n + "_" + r + "__"),
- d.push(l)));
- return d
- }(e) : void 0
- }
- function dt(e) {
- return o(e) && o(e.text) && !1 === e.isComment
- }
- function ft(e, t) {
- if (e) {
- for (var n = Object.create(null), r = se ? Reflect.ownKeys(e) : Object.keys(e), i = 0; i < r.length; i++) {
- var o = r[i];
- if ("__ob__" !== o) {
- for (var a = e[o].from, s = t; s; ) {
- if (s._provided && _(s._provided, a)) {
- n[o] = s._provided[a];
- break
- }
- s = s.$parent
- }
- if (!s)
- if ("default"in e[o]) {
- var l = e[o].default;
- n[o] = "function" == typeof l ? l.call(t) : l
- } else
- 0
- }
- }
- return n
- }
- }
- function ht(e, t) {
- if (!e || !e.length)
- return {};
- for (var n = {}, r = 0, i = e.length; r < i; r++) {
- var o = e[r]
- , a = o.data;
- if (a && a.attrs && a.attrs.slot && delete a.attrs.slot,
- o.context !== t && o.fnContext !== t || !a || null == a.slot)
- (n.default || (n.default = [])).push(o);
- else {
- var s = a.slot
- , l = n[s] || (n[s] = []);
- "template" === o.tag ? l.push.apply(l, o.children || []) : l.push(o)
- }
- }
- for (var u in n)
- n[u].every(pt) && delete n[u];
- return n
- }
- function pt(e) {
- return e.isComment && !e.asyncFactory || " " === e.text
- }
- function gt(e) {
- return e.isComment && e.asyncFactory
- }
- function mt(e, t, n) {
- var i, o = Object.keys(t).length > 0, a = e ? !!e.$stable : !o, s = e && e.$key;
- if (e) {
- if (e._normalized)
- return e._normalized;
- if (a && n && n !== r && s === n.$key && !o && !n.$hasNormal)
- return n;
- for (var l in i = {},
- e)
- e[l] && "$" !== l[0] && (i[l] = vt(t, l, e[l]))
- } else
- i = {};
- for (var u in t)
- u in i || (i[u] = yt(t, u));
- return e && Object.isExtensible(e) && (e._normalized = i),
- U(i, "$stable", a),
- U(i, "$key", s),
- U(i, "$hasNormal", o),
- i
- }
- function vt(e, t, n) {
- var r = function() {
- var e = arguments.length ? n.apply(null, arguments) : n({})
- , t = (e = e && "object" == typeof e && !Array.isArray(e) ? [e] : ct(e)) && e[0];
- return e && (!t || 1 === e.length && t.isComment && !gt(t)) ? void 0 : e
- };
- return n.proxy && Object.defineProperty(e, t, {
- get: r,
- enumerable: !0,
- configurable: !0
- }),
- r
- }
- function yt(e, t) {
- return function() {
- return e[t]
- }
- }
- function bt(e, t) {
- var n, r, i, a, s;
- if (Array.isArray(e) || "string" == typeof e)
- for (n = new Array(e.length),
- r = 0,
- i = e.length; r < i; r++)
- n[r] = t(e[r], r);
- else if ("number" == typeof e)
- for (n = new Array(e),
- r = 0; r < e; r++)
- n[r] = t(r + 1, r);
- else if (l(e))
- if (se && e[Symbol.iterator]) {
- n = [];
- for (var u = e[Symbol.iterator](), c = u.next(); !c.done; )
- n.push(t(c.value, n.length)),
- c = u.next()
- } else
- for (a = Object.keys(e),
- n = new Array(a.length),
- r = 0,
- i = a.length; r < i; r++)
- s = a[r],
- n[r] = t(e[s], s, r);
- return o(n) || (n = []),
- n._isVList = !0,
- n
- }
- function _t(e, t, n, r) {
- var i, o = this.$scopedSlots[e];
- o ? (n = n || {},
- r && (n = A(A({}, r), n)),
- i = o(n) || ("function" == typeof t ? t() : t)) : i = this.$slots[e] || ("function" == typeof t ? t() : t);
- var a = n && n.slot;
- return a ? this.$createElement("template", {
- slot: a
- }, i) : i
- }
- function wt(e) {
- return je(this.$options, "filters", e) || L
- }
- function St(e, t) {
- return Array.isArray(e) ? -1 === e.indexOf(t) : e !== t
- }
- function xt(e, t, n, r, i) {
- var o = D.keyCodes[t] || n;
- return i && r && !D.keyCodes[t] ? St(i, r) : o ? St(o, e) : r ? C(r) !== t : void 0 === e
- }
- function kt(e, t, n, r, i) {
- if (n)
- if (l(n)) {
- var o;
- Array.isArray(n) && (n = E(n));
- var a = function(a) {
- if ("class" === a || "style" === a || v(a))
- o = e;
- else {
- var s = e.attrs && e.attrs.type;
- o = r || D.mustUseProp(t, s, a) ? e.domProps || (e.domProps = {}) : e.attrs || (e.attrs = {})
- }
- var l = x(a)
- , u = C(a);
- l in o || u in o || (o[a] = n[a],
- i && ((e.on || (e.on = {}))["update:" + a] = function(e) {
- n[a] = e
- }
- ))
- };
- for (var s in n)
- a(s)
- } else
- ;return e
- }
- function It(e, t) {
- var n = this._staticTrees || (this._staticTrees = [])
- , r = n[e];
- return r && !t || Mt(r = n[e] = this.$options.staticRenderFns[e].call(this._renderProxy, null, this), "__static__" + e, !1),
- r
- }
- function Ct(e, t, n) {
- return Mt(e, "__once__" + t + (n ? "_" + n : ""), !0),
- e
- }
- function Mt(e, t, n) {
- if (Array.isArray(e))
- for (var r = 0; r < e.length; r++)
- e[r] && "string" != typeof e[r] && Tt(e[r], t + "_" + r, n);
- else
- Tt(e, t, n)
- }
- function Tt(e, t, n) {
- e.isStatic = !0,
- e.key = t,
- e.isOnce = n
- }
- function At(e, t) {
- if (t)
- if (c(t)) {
- var n = e.on = e.on ? A({}, e.on) : {};
- for (var r in t) {
- var i = n[r]
- , o = t[r];
- n[r] = i ? [].concat(i, o) : o
- }
- } else
- ;return e
- }
- function Et(e, t, n, r) {
- t = t || {
- $stable: !n
- };
- for (var i = 0; i < e.length; i++) {
- var o = e[i];
- Array.isArray(o) ? Et(o, t, n) : o && (o.proxy && (o.fn.proxy = !0),
- t[o.key] = o.fn)
- }
- return r && (t.$key = r),
- t
- }
- function Ot(e, t) {
- for (var n = 0; n < t.length; n += 2) {
- var r = t[n];
- "string" == typeof r && r && (e[t[n]] = t[n + 1])
- }
- return e
- }
- function Bt(e, t) {
- return "string" == typeof e ? t + e : e
- }
- function Lt(e) {
- e._o = Ct,
- e._n = g,
- e._s = p,
- e._l = bt,
- e._t = _t,
- e._q = P,
- e._i = R,
- e._m = It,
- e._f = wt,
- e._k = xt,
- e._b = kt,
- e._v = ve,
- e._e = me,
- e._u = Et,
- e._g = At,
- e._d = Ot,
- e._p = Bt
- }
- function Pt(e, t, n, i, o) {
- var s, l = this, u = o.options;
- _(i, "_uid") ? (s = Object.create(i))._original = i : (s = i,
- i = i._original);
- var c = a(u._compiled)
- , d = !c;
- this.data = e,
- this.props = t,
- this.children = n,
- this.parent = i,
- this.listeners = e.on || r,
- this.injections = ft(u.inject, i),
- this.slots = function() {
- return l.$slots || mt(e.scopedSlots, l.$slots = ht(n, i)),
- l.$slots
- }
- ,
- Object.defineProperty(this, "scopedSlots", {
- enumerable: !0,
- get: function() {
- return mt(e.scopedSlots, this.slots())
- }
- }),
- c && (this.$options = u,
- this.$slots = this.slots(),
- this.$scopedSlots = mt(e.scopedSlots, this.$slots)),
- u._scopeId ? this._c = function(e, t, n, r) {
- var o = Ut(s, e, t, n, r, d);
- return o && !Array.isArray(o) && (o.fnScopeId = u._scopeId,
- o.fnContext = i),
- o
- }
- : this._c = function(e, t, n, r) {
- return Ut(s, e, t, n, r, d)
- }
- }
- function Rt(e, t, n, r, i) {
- var o = ye(e);
- return o.fnContext = n,
- o.fnOptions = r,
- t.slot && ((o.data || (o.data = {})).slot = t.slot),
- o
- }
- function zt(e, t) {
- for (var n in t)
- e[x(n)] = t[n]
- }
- Lt(Pt.prototype);
- var jt = {
- init: function(e, t) {
- if (e.componentInstance && !e.componentInstance._isDestroyed && e.data.keepAlive) {
- var n = e;
- jt.prepatch(n, n)
- } else {
- (e.componentInstance = function(e, t) {
- var n = {
- _isComponent: !0,
- _parentVnode: e,
- parent: t
- }
- , r = e.data.inlineTemplate;
- o(r) && (n.render = r.render,
- n.staticRenderFns = r.staticRenderFns);
- return new e.componentOptions.Ctor(n)
- }(e, Xt)).$mount(t ? e.elm : void 0, t)
- }
- },
- prepatch: function(e, t) {
- var n = t.componentOptions;
- !function(e, t, n, i, o) {
- 0;
- var a = i.data.scopedSlots
- , s = e.$scopedSlots
- , l = !!(a && !a.$stable || s !== r && !s.$stable || a && e.$scopedSlots.$key !== a.$key || !a && e.$scopedSlots.$key)
- , u = !!(o || e.$options._renderChildren || l);
- e.$options._parentVnode = i,
- e.$vnode = i,
- e._vnode && (e._vnode.parent = i);
- if (e.$options._renderChildren = o,
- e.$attrs = i.data.attrs || r,
- e.$listeners = n || r,
- t && e.$options.props) {
- xe(!1);
- for (var c = e._props, d = e.$options._propKeys || [], f = 0; f < d.length; f++) {
- var h = d[f]
- , p = e.$options.props;
- c[h] = Fe(h, p, t, e)
- }
- xe(!0),
- e.$options.propsData = t
- }
- n = n || r;
- var g = e.$options._parentListeners;
- e.$options._parentListeners = n,
- Yt(e, n, g),
- u && (e.$slots = ht(o, i.context),
- e.$forceUpdate());
- 0
- }(t.componentInstance = e.componentInstance, n.propsData, n.listeners, t, n.children)
- },
- insert: function(e) {
- var t, n = e.context, r = e.componentInstance;
- r._isMounted || (r._isMounted = !0,
- en(r, "mounted")),
- e.data.keepAlive && (n._isMounted ? ((t = r)._inactive = !1,
- nn.push(t)) : Kt(r, !0))
- },
- destroy: function(e) {
- var t = e.componentInstance;
- t._isDestroyed || (e.data.keepAlive ? function e(t, n) {
- if (n && (t._directInactive = !0,
- Qt(t)))
- return;
- if (!t._inactive) {
- t._inactive = !0;
- for (var r = 0; r < t.$children.length; r++)
- e(t.$children[r]);
- en(t, "deactivated")
- }
- }(t, !0) : t.$destroy())
- }
- }
- , Ft = Object.keys(jt);
- function Dt(e, t, n, s, u) {
- if (!i(e)) {
- var c = n.$options._base;
- if (l(e) && (e = c.extend(e)),
- "function" == typeof e) {
- var d;
- if (i(e.cid) && void 0 === (e = function(e, t) {
- if (a(e.error) && o(e.errorComp))
- return e.errorComp;
- if (o(e.resolved))
- return e.resolved;
- var n = Ht;
- n && o(e.owners) && -1 === e.owners.indexOf(n) && e.owners.push(n);
- if (a(e.loading) && o(e.loadingComp))
- return e.loadingComp;
- if (n && !o(e.owners)) {
- var r = e.owners = [n]
- , s = !0
- , u = null
- , c = null;
- n.$on("hook:destroyed", (function() {
- return y(r, n)
- }
- ));
- var d = function(e) {
- for (var t = 0, n = r.length; t < n; t++)
- r[t].$forceUpdate();
- e && (r.length = 0,
- null !== u && (clearTimeout(u),
- u = null),
- null !== c && (clearTimeout(c),
- c = null))
- }
- , f = z((function(n) {
- e.resolved = Vt(n, t),
- s ? r.length = 0 : d(!0)
- }
- ))
- , p = z((function(t) {
- o(e.errorComp) && (e.error = !0,
- d(!0))
- }
- ))
- , g = e(f, p);
- return l(g) && (h(g) ? i(e.resolved) && g.then(f, p) : h(g.component) && (g.component.then(f, p),
- o(g.error) && (e.errorComp = Vt(g.error, t)),
- o(g.loading) && (e.loadingComp = Vt(g.loading, t),
- 0 === g.delay ? e.loading = !0 : u = setTimeout((function() {
- u = null,
- i(e.resolved) && i(e.error) && (e.loading = !0,
- d(!1))
- }
- ), g.delay || 200)),
- o(g.timeout) && (c = setTimeout((function() {
- c = null,
- i(e.resolved) && p(null)
- }
- ), g.timeout)))),
- s = !1,
- e.loading ? e.loadingComp : e.resolved
- }
- }(d = e, c)))
- return function(e, t, n, r, i) {
- var o = me();
- return o.asyncFactory = e,
- o.asyncMeta = {
- data: t,
- context: n,
- children: r,
- tag: i
- },
- o
- }(d, t, n, s, u);
- t = t || {},
- xn(e),
- o(t.model) && function(e, t) {
- var n = e.model && e.model.prop || "value"
- , r = e.model && e.model.event || "input";
- (t.attrs || (t.attrs = {}))[n] = t.model.value;
- var i = t.on || (t.on = {})
- , a = i[r]
- , s = t.model.callback;
- o(a) ? (Array.isArray(a) ? -1 === a.indexOf(s) : a !== s) && (i[r] = [s].concat(a)) : i[r] = s
- }(e.options, t);
- var f = function(e, t, n) {
- var r = t.options.props;
- if (!i(r)) {
- var a = {}
- , s = e.attrs
- , l = e.props;
- if (o(s) || o(l))
- for (var u in r) {
- var c = C(u);
- ut(a, l, u, c, !0) || ut(a, s, u, c, !1)
- }
- return a
- }
- }(t, e);
- if (a(e.options.functional))
- return function(e, t, n, i, a) {
- var s = e.options
- , l = {}
- , u = s.props;
- if (o(u))
- for (var c in u)
- l[c] = Fe(c, u, t || r);
- else
- o(n.attrs) && zt(l, n.attrs),
- o(n.props) && zt(l, n.props);
- var d = new Pt(n,l,a,i,e)
- , f = s.render.call(null, d._c, d);
- if (f instanceof pe)
- return Rt(f, n, d.parent, s, d);
- if (Array.isArray(f)) {
- for (var h = ct(f) || [], p = new Array(h.length), g = 0; g < h.length; g++)
- p[g] = Rt(h[g], n, d.parent, s, d);
- return p
- }
- }(e, f, t, n, s);
- var p = t.on;
- if (t.on = t.nativeOn,
- a(e.options.abstract)) {
- var g = t.slot;
- t = {},
- g && (t.slot = g)
- }
- !function(e) {
- for (var t = e.hook || (e.hook = {}), n = 0; n < Ft.length; n++) {
- var r = Ft[n]
- , i = t[r]
- , o = jt[r];
- i === o || i && i._merged || (t[r] = i ? Nt(o, i) : o)
- }
- }(t);
- var m = e.options.name || u;
- return new pe("vue-component-" + e.cid + (m ? "-" + m : ""),t,void 0,void 0,void 0,n,{
- Ctor: e,
- propsData: f,
- listeners: p,
- tag: u,
- children: s
- },d)
- }
- }
- }
- function Nt(e, t) {
- var n = function(n, r) {
- e(n, r),
- t(n, r)
- };
- return n._merged = !0,
- n
- }
- function Ut(e, t, n, r, u, c) {
- return (Array.isArray(n) || s(n)) && (u = r,
- r = n,
- n = void 0),
- a(c) && (u = 2),
- function(e, t, n, r, s) {
- if (o(n) && o(n.__ob__))
- return me();
- o(n) && o(n.is) && (t = n.is);
- if (!t)
- return me();
- 0;
- Array.isArray(r) && "function" == typeof r[0] && ((n = n || {}).scopedSlots = {
- default: r[0]
- },
- r.length = 0);
- 2 === s ? r = ct(r) : 1 === s && (r = function(e) {
- for (var t = 0; t < e.length; t++)
- if (Array.isArray(e[t]))
- return Array.prototype.concat.apply([], e);
- return e
- }(r));
- var u, c;
- if ("string" == typeof t) {
- var d;
- c = e.$vnode && e.$vnode.ns || D.getTagNamespace(t),
- u = D.isReservedTag(t) ? new pe(D.parsePlatformTagName(t),n,r,void 0,void 0,e) : n && n.pre || !o(d = je(e.$options, "components", t)) ? new pe(t,n,r,void 0,void 0,e) : Dt(d, n, e, r, t)
- } else
- u = Dt(t, n, e, r);
- return Array.isArray(u) ? u : o(u) ? (o(c) && function e(t, n, r) {
- t.ns = n,
- "foreignObject" === t.tag && (n = void 0,
- r = !0);
- if (o(t.children))
- for (var s = 0, l = t.children.length; s < l; s++) {
- var u = t.children[s];
- o(u.tag) && (i(u.ns) || a(r) && "svg" !== u.tag) && e(u, n, r)
- }
- }(u, c),
- o(n) && function(e) {
- l(e.style) && it(e.style);
- l(e.class) && it(e.class)
- }(n),
- u) : me()
- }(e, t, n, r, u)
- }
- var Wt, Ht = null;
- function Vt(e, t) {
- return (e.__esModule || se && "Module" === e[Symbol.toStringTag]) && (e = e.default),
- l(e) ? t.extend(e) : e
- }
- function $t(e) {
- if (Array.isArray(e))
- for (var t = 0; t < e.length; t++) {
- var n = e[t];
- if (o(n) && (o(n.componentOptions) || gt(n)))
- return n
- }
- }
- function Gt(e, t) {
- Wt.$on(e, t)
- }
- function Zt(e, t) {
- Wt.$off(e, t)
- }
- function qt(e, t) {
- var n = Wt;
- return function r() {
- var i = t.apply(null, arguments);
- null !== i && n.$off(e, r)
- }
- }
- function Yt(e, t, n) {
- Wt = e,
- st(t, n || {}, Gt, Zt, qt, e),
- Wt = void 0
- }
- var Xt = null;
- function Jt(e) {
- var t = Xt;
- return Xt = e,
- function() {
- Xt = t
- }
- }
- function Qt(e) {
- for (; e && (e = e.$parent); )
- if (e._inactive)
- return !0;
- return !1
- }
- function Kt(e, t) {
- if (t) {
- if (e._directInactive = !1,
- Qt(e))
- return
- } else if (e._directInactive)
- return;
- if (e._inactive || null === e._inactive) {
- e._inactive = !1;
- for (var n = 0; n < e.$children.length; n++)
- Kt(e.$children[n]);
- en(e, "activated")
- }
- }
- function en(e, t) {
- fe();
- var n = e.$options[t]
- , r = t + " hook";
- if (n)
- for (var i = 0, o = n.length; i < o; i++)
- Ve(n[i], e, null, e, r);
- e._hasHookEvent && e.$emit("hook:" + t),
- he()
- }
- var tn = []
- , nn = []
- , rn = {}
- , on = !1
- , an = !1
- , sn = 0;
- var ln = 0
- , un = Date.now;
- if ($ && !Y) {
- var cn = window.performance;
- cn && "function" == typeof cn.now && un() > document.createEvent("Event").timeStamp && (un = function() {
- return cn.now()
- }
- )
- }
- function dn() {
- var e, t;
- for (ln = un(),
- an = !0,
- tn.sort((function(e, t) {
- return e.id - t.id
- }
- )),
- sn = 0; sn < tn.length; sn++)
- (e = tn[sn]).before && e.before(),
- t = e.id,
- rn[t] = null,
- e.run();
- var n = nn.slice()
- , r = tn.slice();
- sn = tn.length = nn.length = 0,
- rn = {},
- on = an = !1,
- function(e) {
- for (var t = 0; t < e.length; t++)
- e[t]._inactive = !0,
- Kt(e[t], !0)
- }(n),
- function(e) {
- var t = e.length;
- for (; t--; ) {
- var n = e[t]
- , r = n.vm;
- r._watcher === n && r._isMounted && !r._isDestroyed && en(r, "updated")
- }
- }(r),
- ie && D.devtools && ie.emit("flush")
- }
- var fn = 0
- , hn = function(e, t, n, r, i) {
- this.vm = e,
- i && (e._watcher = this),
- e._watchers.push(this),
- r ? (this.deep = !!r.deep,
- this.user = !!r.user,
- this.lazy = !!r.lazy,
- this.sync = !!r.sync,
- this.before = r.before) : this.deep = this.user = this.lazy = this.sync = !1,
- this.cb = n,
- this.id = ++fn,
- this.active = !0,
- this.dirty = this.lazy,
- this.deps = [],
- this.newDeps = [],
- this.depIds = new ae,
- this.newDepIds = new ae,
- this.expression = "",
- "function" == typeof t ? this.getter = t : (this.getter = function(e) {
- if (!W.test(e)) {
- var t = e.split(".");
- return function(e) {
- for (var n = 0; n < t.length; n++) {
- if (!e)
- return;
- e = e[t[n]]
- }
- return e
- }
- }
- }(t),
- this.getter || (this.getter = O)),
- this.value = this.lazy ? void 0 : this.get()
- };
- hn.prototype.get = function() {
- var e;
- fe(this);
- var t = this.vm;
- try {
- e = this.getter.call(t, t)
- } catch (e) {
- if (!this.user)
- throw e;
- He(e, t, 'getter for watcher "' + this.expression + '"')
- } finally {
- this.deep && it(e),
- he(),
- this.cleanupDeps()
- }
- return e
- }
- ,
- hn.prototype.addDep = function(e) {
- var t = e.id;
- this.newDepIds.has(t) || (this.newDepIds.add(t),
- this.newDeps.push(e),
- this.depIds.has(t) || e.addSub(this))
- }
- ,
- hn.prototype.cleanupDeps = function() {
- for (var e = this.deps.length; e--; ) {
- var t = this.deps[e];
- this.newDepIds.has(t.id) || t.removeSub(this)
- }
- var n = this.depIds;
- this.depIds = this.newDepIds,
- this.newDepIds = n,
- this.newDepIds.clear(),
- n = this.deps,
- this.deps = this.newDeps,
- this.newDeps = n,
- this.newDeps.length = 0
- }
- ,
- hn.prototype.update = function() {
- this.lazy ? this.dirty = !0 : this.sync ? this.run() : function(e) {
- var t = e.id;
- if (null == rn[t]) {
- if (rn[t] = !0,
- an) {
- for (var n = tn.length - 1; n > sn && tn[n].id > e.id; )
- n--;
- tn.splice(n + 1, 0, e)
- } else
- tn.push(e);
- on || (on = !0,
- nt(dn))
- }
- }(this)
- }
- ,
- hn.prototype.run = function() {
- if (this.active) {
- var e = this.get();
- if (e !== this.value || l(e) || this.deep) {
- var t = this.value;
- if (this.value = e,
- this.user) {
- var n = 'callback for watcher "' + this.expression + '"';
- Ve(this.cb, this.vm, [e, t], this.vm, n)
- } else
- this.cb.call(this.vm, e, t)
- }
- }
- }
- ,
- hn.prototype.evaluate = function() {
- this.value = this.get(),
- this.dirty = !1
- }
- ,
- hn.prototype.depend = function() {
- for (var e = this.deps.length; e--; )
- this.deps[e].depend()
- }
- ,
- hn.prototype.teardown = function() {
- if (this.active) {
- this.vm._isBeingDestroyed || y(this.vm._watchers, this);
- for (var e = this.deps.length; e--; )
- this.deps[e].removeSub(this);
- this.active = !1
- }
- }
- ;
- var pn = {
- enumerable: !0,
- configurable: !0,
- get: O,
- set: O
- };
- function gn(e, t, n) {
- pn.get = function() {
- return this[t][n]
- }
- ,
- pn.set = function(e) {
- this[t][n] = e
- }
- ,
- Object.defineProperty(e, n, pn)
- }
- function mn(e) {
- e._watchers = [];
- var t = e.$options;
- t.props && function(e, t) {
- var n = e.$options.propsData || {}
- , r = e._props = {}
- , i = e.$options._propKeys = [];
- e.$parent && xe(!1);
- var o = function(o) {
- i.push(o);
- var a = Fe(o, t, n, e);
- Ce(r, o, a),
- o in e || gn(e, "_props", o)
- };
- for (var a in t)
- o(a);
- xe(!0)
- }(e, t.props),
- t.methods && function(e, t) {
- e.$options.props;
- for (var n in t)
- e[n] = "function" != typeof t[n] ? O : M(t[n], e)
- }(e, t.methods),
- t.data ? function(e) {
- var t = e.$options.data;
- c(t = e._data = "function" == typeof t ? function(e, t) {
- fe();
- try {
- return e.call(t, t)
- } catch (e) {
- return He(e, t, "data()"),
- {}
- } finally {
- he()
- }
- }(t, e) : t || {}) || (t = {});
- var n = Object.keys(t)
- , r = e.$options.props
- , i = (e.$options.methods,
- n.length);
- for (; i--; ) {
- var o = n[i];
- 0,
- r && _(r, o) || (a = void 0,
- 36 !== (a = (o + "").charCodeAt(0)) && 95 !== a && gn(e, "_data", o))
- }
- var a;
- Ie(t, !0)
- }(e) : Ie(e._data = {}, !0),
- t.computed && function(e, t) {
- var n = e._computedWatchers = Object.create(null)
- , r = re();
- for (var i in t) {
- var o = t[i]
- , a = "function" == typeof o ? o : o.get;
- 0,
- r || (n[i] = new hn(e,a || O,O,vn)),
- i in e || yn(e, i, o)
- }
- }(e, t.computed),
- t.watch && t.watch !== ee && function(e, t) {
- for (var n in t) {
- var r = t[n];
- if (Array.isArray(r))
- for (var i = 0; i < r.length; i++)
- wn(e, n, r[i]);
- else
- wn(e, n, r)
- }
- }(e, t.watch)
- }
- var vn = {
- lazy: !0
- };
- function yn(e, t, n) {
- var r = !re();
- "function" == typeof n ? (pn.get = r ? bn(t) : _n(n),
- pn.set = O) : (pn.get = n.get ? r && !1 !== n.cache ? bn(t) : _n(n.get) : O,
- pn.set = n.set || O),
- Object.defineProperty(e, t, pn)
- }
- function bn(e) {
- return function() {
- var t = this._computedWatchers && this._computedWatchers[e];
- if (t)
- return t.dirty && t.evaluate(),
- ce.target && t.depend(),
- t.value
- }
- }
- function _n(e) {
- return function() {
- return e.call(this, this)
- }
- }
- function wn(e, t, n, r) {
- return c(n) && (r = n,
- n = n.handler),
- "string" == typeof n && (n = e[n]),
- e.$watch(t, n, r)
- }
- var Sn = 0;
- function xn(e) {
- var t = e.options;
- if (e.super) {
- var n = xn(e.super);
- if (n !== e.superOptions) {
- e.superOptions = n;
- var r = function(e) {
- var t, n = e.options, r = e.sealedOptions;
- for (var i in n)
- n[i] !== r[i] && (t || (t = {}),
- t[i] = n[i]);
- return t
- }(e);
- r && A(e.extendOptions, r),
- (t = e.options = ze(n, e.extendOptions)).name && (t.components[t.name] = e)
- }
- }
- return t
- }
- function kn(e) {
- this._init(e)
- }
- function In(e) {
- e.cid = 0;
- var t = 1;
- e.extend = function(e) {
- e = e || {};
- var n = this
- , r = n.cid
- , i = e._Ctor || (e._Ctor = {});
- if (i[r])
- return i[r];
- var o = e.name || n.options.name;
- var a = function(e) {
- this._init(e)
- };
- return (a.prototype = Object.create(n.prototype)).constructor = a,
- a.cid = t++,
- a.options = ze(n.options, e),
- a.super = n,
- a.options.props && function(e) {
- var t = e.options.props;
- for (var n in t)
- gn(e.prototype, "_props", n)
- }(a),
- a.options.computed && function(e) {
- var t = e.options.computed;
- for (var n in t)
- yn(e.prototype, n, t[n])
- }(a),
- a.extend = n.extend,
- a.mixin = n.mixin,
- a.use = n.use,
- j.forEach((function(e) {
- a[e] = n[e]
- }
- )),
- o && (a.options.components[o] = a),
- a.superOptions = n.options,
- a.extendOptions = e,
- a.sealedOptions = A({}, a.options),
- i[r] = a,
- a
- }
- }
- function Cn(e) {
- return e && (e.Ctor.options.name || e.tag)
- }
- function Mn(e, t) {
- return Array.isArray(e) ? e.indexOf(t) > -1 : "string" == typeof e ? e.split(",").indexOf(t) > -1 : !!d(e) && e.test(t)
- }
- function Tn(e, t) {
- var n = e.cache
- , r = e.keys
- , i = e._vnode;
- for (var o in n) {
- var a = n[o];
- if (a) {
- var s = a.name;
- s && !t(s) && An(n, o, r, i)
- }
- }
- }
- function An(e, t, n, r) {
- var i = e[t];
- !i || r && i.tag === r.tag || i.componentInstance.$destroy(),
- e[t] = null,
- y(n, t)
- }
- !function(e) {
- e.prototype._init = function(e) {
- var t = this;
- t._uid = Sn++,
- t._isVue = !0,
- e && e._isComponent ? function(e, t) {
- var n = e.$options = Object.create(e.constructor.options)
- , r = t._parentVnode;
- n.parent = t.parent,
- n._parentVnode = r;
- var i = r.componentOptions;
- n.propsData = i.propsData,
- n._parentListeners = i.listeners,
- n._renderChildren = i.children,
- n._componentTag = i.tag,
- t.render && (n.render = t.render,
- n.staticRenderFns = t.staticRenderFns)
- }(t, e) : t.$options = ze(xn(t.constructor), e || {}, t),
- t._renderProxy = t,
- t._self = t,
- function(e) {
- var t = e.$options
- , n = t.parent;
- if (n && !t.abstract) {
- for (; n.$options.abstract && n.$parent; )
- n = n.$parent;
- n.$children.push(e)
- }
- e.$parent = n,
- e.$root = n ? n.$root : e,
- e.$children = [],
- e.$refs = {},
- e._watcher = null,
- e._inactive = null,
- e._directInactive = !1,
- e._isMounted = !1,
- e._isDestroyed = !1,
- e._isBeingDestroyed = !1
- }(t),
- function(e) {
- e._events = Object.create(null),
- e._hasHookEvent = !1;
- var t = e.$options._parentListeners;
- t && Yt(e, t)
- }(t),
- function(e) {
- e._vnode = null,
- e._staticTrees = null;
- var t = e.$options
- , n = e.$vnode = t._parentVnode
- , i = n && n.context;
- e.$slots = ht(t._renderChildren, i),
- e.$scopedSlots = r,
- e._c = function(t, n, r, i) {
- return Ut(e, t, n, r, i, !1)
- }
- ,
- e.$createElement = function(t, n, r, i) {
- return Ut(e, t, n, r, i, !0)
- }
- ;
- var o = n && n.data;
- Ce(e, "$attrs", o && o.attrs || r, null, !0),
- Ce(e, "$listeners", t._parentListeners || r, null, !0)
- }(t),
- en(t, "beforeCreate"),
- function(e) {
- var t = ft(e.$options.inject, e);
- t && (xe(!1),
- Object.keys(t).forEach((function(n) {
- Ce(e, n, t[n])
- }
- )),
- xe(!0))
- }(t),
- mn(t),
- function(e) {
- var t = e.$options.provide;
- t && (e._provided = "function" == typeof t ? t.call(e) : t)
- }(t),
- en(t, "created"),
- t.$options.el && t.$mount(t.$options.el)
- }
- }(kn),
- function(e) {
- var t = {
- get: function() {
- return this._data
- }
- }
- , n = {
- get: function() {
- return this._props
- }
- };
- Object.defineProperty(e.prototype, "$data", t),
- Object.defineProperty(e.prototype, "$props", n),
- e.prototype.$set = Me,
- e.prototype.$delete = Te,
- e.prototype.$watch = function(e, t, n) {
- if (c(t))
- return wn(this, e, t, n);
- (n = n || {}).user = !0;
- var r = new hn(this,e,t,n);
- if (n.immediate) {
- var i = 'callback for immediate watcher "' + r.expression + '"';
- fe(),
- Ve(t, this, [r.value], this, i),
- he()
- }
- return function() {
- r.teardown()
- }
- }
- }(kn),
- function(e) {
- var t = /^hook:/;
- e.prototype.$on = function(e, n) {
- var r = this;
- if (Array.isArray(e))
- for (var i = 0, o = e.length; i < o; i++)
- r.$on(e[i], n);
- else
- (r._events[e] || (r._events[e] = [])).push(n),
- t.test(e) && (r._hasHookEvent = !0);
- return r
- }
- ,
- e.prototype.$once = function(e, t) {
- var n = this;
- function r() {
- n.$off(e, r),
- t.apply(n, arguments)
- }
- return r.fn = t,
- n.$on(e, r),
- n
- }
- ,
- e.prototype.$off = function(e, t) {
- var n = this;
- if (!arguments.length)
- return n._events = Object.create(null),
- n;
- if (Array.isArray(e)) {
- for (var r = 0, i = e.length; r < i; r++)
- n.$off(e[r], t);
- return n
- }
- var o, a = n._events[e];
- if (!a)
- return n;
- if (!t)
- return n._events[e] = null,
- n;
- for (var s = a.length; s--; )
- if ((o = a[s]) === t || o.fn === t) {
- a.splice(s, 1);
- break
- }
- return n
- }
- ,
- e.prototype.$emit = function(e) {
- var t = this
- , n = t._events[e];
- if (n) {
- n = n.length > 1 ? T(n) : n;
- for (var r = T(arguments, 1), i = 'event handler for "' + e + '"', o = 0, a = n.length; o < a; o++)
- Ve(n[o], t, r, t, i)
- }
- return t
- }
- }(kn),
- function(e) {
- e.prototype._update = function(e, t) {
- var n = this
- , r = n.$el
- , i = n._vnode
- , o = Jt(n);
- n._vnode = e,
- n.$el = i ? n.__patch__(i, e) : n.__patch__(n.$el, e, t, !1),
- o(),
- r && (r.__vue__ = null),
- n.$el && (n.$el.__vue__ = n),
- n.$vnode && n.$parent && n.$vnode === n.$parent._vnode && (n.$parent.$el = n.$el)
- }
- ,
- e.prototype.$forceUpdate = function() {
- this._watcher && this._watcher.update()
- }
- ,
- e.prototype.$destroy = function() {
- var e = this;
- if (!e._isBeingDestroyed) {
- en(e, "beforeDestroy"),
- e._isBeingDestroyed = !0;
- var t = e.$parent;
- !t || t._isBeingDestroyed || e.$options.abstract || y(t.$children, e),
- e._watcher && e._watcher.teardown();
- for (var n = e._watchers.length; n--; )
- e._watchers[n].teardown();
- e._data.__ob__ && e._data.__ob__.vmCount--,
- e._isDestroyed = !0,
- e.__patch__(e._vnode, null),
- en(e, "destroyed"),
- e.$off(),
- e.$el && (e.$el.__vue__ = null),
- e.$vnode && (e.$vnode.parent = null)
- }
- }
- }(kn),
- function(e) {
- Lt(e.prototype),
- e.prototype.$nextTick = function(e) {
- return nt(e, this)
- }
- ,
- e.prototype._render = function() {
- var e, t = this, n = t.$options, r = n.render, i = n._parentVnode;
- i && (t.$scopedSlots = mt(i.data.scopedSlots, t.$slots, t.$scopedSlots)),
- t.$vnode = i;
- try {
- Ht = t,
- e = r.call(t._renderProxy, t.$createElement)
- } catch (n) {
- He(n, t, "render"),
- e = t._vnode
- } finally {
- Ht = null
- }
- return Array.isArray(e) && 1 === e.length && (e = e[0]),
- e instanceof pe || (e = me()),
- e.parent = i,
- e
- }
- }(kn);
- var En = [String, RegExp, Array]
- , On = {
- KeepAlive: {
- name: "keep-alive",
- abstract: !0,
- props: {
- include: En,
- exclude: En,
- max: [String, Number]
- },
- methods: {
- cacheVNode: function() {
- var e = this.cache
- , t = this.keys
- , n = this.vnodeToCache
- , r = this.keyToCache;
- if (n) {
- var i = n.tag
- , o = n.componentInstance
- , a = n.componentOptions;
- e[r] = {
- name: Cn(a),
- tag: i,
- componentInstance: o
- },
- t.push(r),
- this.max && t.length > parseInt(this.max) && An(e, t[0], t, this._vnode),
- this.vnodeToCache = null
- }
- }
- },
- created: function() {
- this.cache = Object.create(null),
- this.keys = []
- },
- destroyed: function() {
- for (var e in this.cache)
- An(this.cache, e, this.keys)
- },
- mounted: function() {
- var e = this;
- this.cacheVNode(),
- this.$watch("include", (function(t) {
- Tn(e, (function(e) {
- return Mn(t, e)
- }
- ))
- }
- )),
- this.$watch("exclude", (function(t) {
- Tn(e, (function(e) {
- return !Mn(t, e)
- }
- ))
- }
- ))
- },
- updated: function() {
- this.cacheVNode()
- },
- render: function() {
- var e = this.$slots.default
- , t = $t(e)
- , n = t && t.componentOptions;
- if (n) {
- var r = Cn(n)
- , i = this.include
- , o = this.exclude;
- if (i && (!r || !Mn(i, r)) || o && r && Mn(o, r))
- return t;
- var a = this.cache
- , s = this.keys
- , l = null == t.key ? n.Ctor.cid + (n.tag ? "::" + n.tag : "") : t.key;
- a[l] ? (t.componentInstance = a[l].componentInstance,
- y(s, l),
- s.push(l)) : (this.vnodeToCache = t,
- this.keyToCache = l),
- t.data.keepAlive = !0
- }
- return t || e && e[0]
- }
- }
- };
- !function(e) {
- var t = {
- get: function() {
- return D
- }
- };
- Object.defineProperty(e, "config", t),
- e.util = {
- warn: le,
- extend: A,
- mergeOptions: ze,
- defineReactive: Ce
- },
- e.set = Me,
- e.delete = Te,
- e.nextTick = nt,
- e.observable = function(e) {
- return Ie(e),
- e
- }
- ,
- e.options = Object.create(null),
- j.forEach((function(t) {
- e.options[t + "s"] = Object.create(null)
- }
- )),
- e.options._base = e,
- A(e.options.components, On),
- function(e) {
- e.use = function(e) {
- var t = this._installedPlugins || (this._installedPlugins = []);
- if (t.indexOf(e) > -1)
- return this;
- var n = T(arguments, 1);
- return n.unshift(this),
- "function" == typeof e.install ? e.install.apply(e, n) : "function" == typeof e && e.apply(null, n),
- t.push(e),
- this
- }
- }(e),
- function(e) {
- e.mixin = function(e) {
- return this.options = ze(this.options, e),
- this
- }
- }(e),
- In(e),
- function(e) {
- j.forEach((function(t) {
- e[t] = function(e, n) {
- return n ? ("component" === t && c(n) && (n.name = n.name || e,
- n = this.options._base.extend(n)),
- "directive" === t && "function" == typeof n && (n = {
- bind: n,
- update: n
- }),
- this.options[t + "s"][e] = n,
- n) : this.options[t + "s"][e]
- }
- }
- ))
- }(e)
- }(kn),
- Object.defineProperty(kn.prototype, "$isServer", {
- get: re
- }),
- Object.defineProperty(kn.prototype, "$ssrContext", {
- get: function() {
- return this.$vnode && this.$vnode.ssrContext
- }
- }),
- Object.defineProperty(kn, "FunctionalRenderContext", {
- value: Pt
- }),
- kn.version = "2.6.14";
- var Bn = m("style,class")
- , Ln = m("input,textarea,option,select,progress")
- , Pn = m("contenteditable,draggable,spellcheck")
- , Rn = m("events,caret,typing,plaintext-only")
- , zn = m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible")
- , jn = "http://www.w3.org/1999/xlink"
- , Fn = function(e) {
- return ":" === e.charAt(5) && "xlink" === e.slice(0, 5)
- }
- , Dn = function(e) {
- return Fn(e) ? e.slice(6, e.length) : ""
- }
- , Nn = function(e) {
- return null == e || !1 === e
- };
- function Un(e) {
- for (var t = e.data, n = e, r = e; o(r.componentInstance); )
- (r = r.componentInstance._vnode) && r.data && (t = Wn(r.data, t));
- for (; o(n = n.parent); )
- n && n.data && (t = Wn(t, n.data));
- return function(e, t) {
- if (o(e) || o(t))
- return Hn(e, Vn(t));
- return ""
- }(t.staticClass, t.class)
- }
- function Wn(e, t) {
- return {
- staticClass: Hn(e.staticClass, t.staticClass),
- class: o(e.class) ? [e.class, t.class] : t.class
- }
- }
- function Hn(e, t) {
- return e ? t ? e + " " + t : e : t || ""
- }
- function Vn(e) {
- return Array.isArray(e) ? function(e) {
- for (var t, n = "", r = 0, i = e.length; r < i; r++)
- o(t = Vn(e[r])) && "" !== t && (n && (n += " "),
- n += t);
- return n
- }(e) : l(e) ? function(e) {
- var t = "";
- for (var n in e)
- e[n] && (t && (t += " "),
- t += n);
- return t
- }(e) : "string" == typeof e ? e : ""
- }
- var $n = {
- svg: "http://www.w3.org/2000/svg",
- math: "http://www.w3.org/1998/Math/MathML"
- }
- , Gn = m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot")
- , Zn = m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view", !0)
- , qn = function(e) {
- return Gn(e) || Zn(e)
- };
- var Yn = Object.create(null);
- var Xn = m("text,number,password,search,email,tel,url");
- var Jn = Object.freeze({
- createElement: function(e, t) {
- var n = document.createElement(e);
- return "select" !== e || t.data && t.data.attrs && void 0 !== t.data.attrs.multiple && n.setAttribute("multiple", "multiple"),
- n
- },
- createElementNS: function(e, t) {
- return document.createElementNS($n[e], t)
- },
- createTextNode: function(e) {
- return document.createTextNode(e)
- },
- createComment: function(e) {
- return document.createComment(e)
- },
- insertBefore: function(e, t, n) {
- e.insertBefore(t, n)
- },
- removeChild: function(e, t) {
- e.removeChild(t)
- },
- appendChild: function(e, t) {
- e.appendChild(t)
- },
- parentNode: function(e) {
- return e.parentNode
- },
- nextSibling: function(e) {
- return e.nextSibling
- },
- tagName: function(e) {
- return e.tagName
- },
- setTextContent: function(e, t) {
- e.textContent = t
- },
- setStyleScope: function(e, t) {
- e.setAttribute(t, "")
- }
- })
- , Qn = {
- create: function(e, t) {
- Kn(t)
- },
- update: function(e, t) {
- e.data.ref !== t.data.ref && (Kn(e, !0),
- Kn(t))
- },
- destroy: function(e) {
- Kn(e, !0)
- }
- };
- function Kn(e, t) {
- var n = e.data.ref;
- if (o(n)) {
- var r = e.context
- , i = e.componentInstance || e.elm
- , a = r.$refs;
- t ? Array.isArray(a[n]) ? y(a[n], i) : a[n] === i && (a[n] = void 0) : e.data.refInFor ? Array.isArray(a[n]) ? a[n].indexOf(i) < 0 && a[n].push(i) : a[n] = [i] : a[n] = i
- }
- }
- var er = new pe("",{},[])
- , tr = ["create", "activate", "update", "remove", "destroy"];
- function nr(e, t) {
- return e.key === t.key && e.asyncFactory === t.asyncFactory && (e.tag === t.tag && e.isComment === t.isComment && o(e.data) === o(t.data) && function(e, t) {
- if ("input" !== e.tag)
- return !0;
- var n, r = o(n = e.data) && o(n = n.attrs) && n.type, i = o(n = t.data) && o(n = n.attrs) && n.type;
- return r === i || Xn(r) && Xn(i)
- }(e, t) || a(e.isAsyncPlaceholder) && i(t.asyncFactory.error))
- }
- function rr(e, t, n) {
- var r, i, a = {};
- for (r = t; r <= n; ++r)
- o(i = e[r].key) && (a[i] = r);
- return a
- }
- var ir = {
- create: or,
- update: or,
- destroy: function(e) {
- or(e, er)
- }
- };
- function or(e, t) {
- (e.data.directives || t.data.directives) && function(e, t) {
- var n, r, i, o = e === er, a = t === er, s = sr(e.data.directives, e.context), l = sr(t.data.directives, t.context), u = [], c = [];
- for (n in l)
- r = s[n],
- i = l[n],
- r ? (i.oldValue = r.value,
- i.oldArg = r.arg,
- ur(i, "update", t, e),
- i.def && i.def.componentUpdated && c.push(i)) : (ur(i, "bind", t, e),
- i.def && i.def.inserted && u.push(i));
- if (u.length) {
- var d = function() {
- for (var n = 0; n < u.length; n++)
- ur(u[n], "inserted", t, e)
- };
- o ? lt(t, "insert", d) : d()
- }
- c.length && lt(t, "postpatch", (function() {
- for (var n = 0; n < c.length; n++)
- ur(c[n], "componentUpdated", t, e)
- }
- ));
- if (!o)
- for (n in s)
- l[n] || ur(s[n], "unbind", e, e, a)
- }(e, t)
- }
- var ar = Object.create(null);
- function sr(e, t) {
- var n, r, i = Object.create(null);
- if (!e)
- return i;
- for (n = 0; n < e.length; n++)
- (r = e[n]).modifiers || (r.modifiers = ar),
- i[lr(r)] = r,
- r.def = je(t.$options, "directives", r.name);
- return i
- }
- function lr(e) {
- return e.rawName || e.name + "." + Object.keys(e.modifiers || {}).join(".")
- }
- function ur(e, t, n, r, i) {
- var o = e.def && e.def[t];
- if (o)
- try {
- o(n.elm, e, n, r, i)
- } catch (r) {
- He(r, n.context, "directive " + e.name + " " + t + " hook")
- }
- }
- var cr = [Qn, ir];
- function dr(e, t) {
- var n = t.componentOptions;
- if (!(o(n) && !1 === n.Ctor.options.inheritAttrs || i(e.data.attrs) && i(t.data.attrs))) {
- var r, a, s = t.elm, l = e.data.attrs || {}, u = t.data.attrs || {};
- for (r in o(u.__ob__) && (u = t.data.attrs = A({}, u)),
- u)
- a = u[r],
- l[r] !== a && fr(s, r, a, t.data.pre);
- for (r in (Y || J) && u.value !== l.value && fr(s, "value", u.value),
- l)
- i(u[r]) && (Fn(r) ? s.removeAttributeNS(jn, Dn(r)) : Pn(r) || s.removeAttribute(r))
- }
- }
- function fr(e, t, n, r) {
- r || e.tagName.indexOf("-") > -1 ? hr(e, t, n) : zn(t) ? Nn(n) ? e.removeAttribute(t) : (n = "allowfullscreen" === t && "EMBED" === e.tagName ? "true" : t,
- e.setAttribute(t, n)) : Pn(t) ? e.setAttribute(t, function(e, t) {
- return Nn(t) || "false" === t ? "false" : "contenteditable" === e && Rn(t) ? t : "true"
- }(t, n)) : Fn(t) ? Nn(n) ? e.removeAttributeNS(jn, Dn(t)) : e.setAttributeNS(jn, t, n) : hr(e, t, n)
- }
- function hr(e, t, n) {
- if (Nn(n))
- e.removeAttribute(t);
- else {
- if (Y && !X && "TEXTAREA" === e.tagName && "placeholder" === t && "" !== n && !e.__ieph) {
- var r = function(t) {
- t.stopImmediatePropagation(),
- e.removeEventListener("input", r)
- };
- e.addEventListener("input", r),
- e.__ieph = !0
- }
- e.setAttribute(t, n)
- }
- }
- var pr = {
- create: dr,
- update: dr
- };
- function gr(e, t) {
- var n = t.elm
- , r = t.data
- , a = e.data;
- if (!(i(r.staticClass) && i(r.class) && (i(a) || i(a.staticClass) && i(a.class)))) {
- var s = Un(t)
- , l = n._transitionClasses;
- o(l) && (s = Hn(s, Vn(l))),
- s !== n._prevClass && (n.setAttribute("class", s),
- n._prevClass = s)
- }
- }
- var mr, vr = {
- create: gr,
- update: gr
- };
- function yr(e, t, n) {
- var r = mr;
- return function i() {
- var o = t.apply(null, arguments);
- null !== o && wr(e, i, n, r)
- }
- }
- var br = qe && !(K && Number(K[1]) <= 53);
- function _r(e, t, n, r) {
- if (br) {
- var i = ln
- , o = t;
- t = o._wrapper = function(e) {
- if (e.target === e.currentTarget || e.timeStamp >= i || e.timeStamp <= 0 || e.target.ownerDocument !== document)
- return o.apply(this, arguments)
- }
- }
- mr.addEventListener(e, t, te ? {
- capture: n,
- passive: r
- } : n)
- }
- function wr(e, t, n, r) {
- (r || mr).removeEventListener(e, t._wrapper || t, n)
- }
- function Sr(e, t) {
- if (!i(e.data.on) || !i(t.data.on)) {
- var n = t.data.on || {}
- , r = e.data.on || {};
- mr = t.elm,
- function(e) {
- if (o(e.__r)) {
- var t = Y ? "change" : "input";
- e[t] = [].concat(e.__r, e[t] || []),
- delete e.__r
- }
- o(e.__c) && (e.change = [].concat(e.__c, e.change || []),
- delete e.__c)
- }(n),
- st(n, r, _r, wr, yr, t.context),
- mr = void 0
- }
- }
- var xr, kr = {
- create: Sr,
- update: Sr
- };
- function Ir(e, t) {
- if (!i(e.data.domProps) || !i(t.data.domProps)) {
- var n, r, a = t.elm, s = e.data.domProps || {}, l = t.data.domProps || {};
- for (n in o(l.__ob__) && (l = t.data.domProps = A({}, l)),
- s)
- n in l || (a[n] = "");
- for (n in l) {
- if (r = l[n],
- "textContent" === n || "innerHTML" === n) {
- if (t.children && (t.children.length = 0),
- r === s[n])
- continue;
- 1 === a.childNodes.length && a.removeChild(a.childNodes[0])
- }
- if ("value" === n && "PROGRESS" !== a.tagName) {
- a._value = r;
- var u = i(r) ? "" : String(r);
- Cr(a, u) && (a.value = u)
- } else if ("innerHTML" === n && Zn(a.tagName) && i(a.innerHTML)) {
- (xr = xr || document.createElement("div")).innerHTML = "<svg>" + r + "</svg>";
- for (var c = xr.firstChild; a.firstChild; )
- a.removeChild(a.firstChild);
- for (; c.firstChild; )
- a.appendChild(c.firstChild)
- } else if (r !== s[n])
- try {
- a[n] = r
- } catch (e) {}
- }
- }
- }
- function Cr(e, t) {
- return !e.composing && ("OPTION" === e.tagName || function(e, t) {
- var n = !0;
- try {
- n = document.activeElement !== e
- } catch (e) {}
- return n && e.value !== t
- }(e, t) || function(e, t) {
- var n = e.value
- , r = e._vModifiers;
- if (o(r)) {
- if (r.number)
- return g(n) !== g(t);
- if (r.trim)
- return n.trim() !== t.trim()
- }
- return n !== t
- }(e, t))
- }
- var Mr = {
- create: Ir,
- update: Ir
- }
- , Tr = w((function(e) {
- var t = {}
- , n = /:(.+)/;
- return e.split(/;(?![^(]*\))/g).forEach((function(e) {
- if (e) {
- var r = e.split(n);
- r.length > 1 && (t[r[0].trim()] = r[1].trim())
- }
- }
- )),
- t
- }
- ));
- function Ar(e) {
- var t = Er(e.style);
- return e.staticStyle ? A(e.staticStyle, t) : t
- }
- function Er(e) {
- return Array.isArray(e) ? E(e) : "string" == typeof e ? Tr(e) : e
- }
- var Or, Br = /^--/, Lr = /\s*!important$/, Pr = function(e, t, n) {
- if (Br.test(t))
- e.style.setProperty(t, n);
- else if (Lr.test(n))
- e.style.setProperty(C(t), n.replace(Lr, ""), "important");
- else {
- var r = zr(t);
- if (Array.isArray(n))
- for (var i = 0, o = n.length; i < o; i++)
- e.style[r] = n[i];
- else
- e.style[r] = n
- }
- }, Rr = ["Webkit", "Moz", "ms"], zr = w((function(e) {
- if (Or = Or || document.createElement("div").style,
- "filter" !== (e = x(e)) && e in Or)
- return e;
- for (var t = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < Rr.length; n++) {
- var r = Rr[n] + t;
- if (r in Or)
- return r
- }
- }
- ));
- function jr(e, t) {
- var n = t.data
- , r = e.data;
- if (!(i(n.staticStyle) && i(n.style) && i(r.staticStyle) && i(r.style))) {
- var a, s, l = t.elm, u = r.staticStyle, c = r.normalizedStyle || r.style || {}, d = u || c, f = Er(t.data.style) || {};
- t.data.normalizedStyle = o(f.__ob__) ? A({}, f) : f;
- var h = function(e, t) {
- var n, r = {};
- if (t)
- for (var i = e; i.componentInstance; )
- (i = i.componentInstance._vnode) && i.data && (n = Ar(i.data)) && A(r, n);
- (n = Ar(e.data)) && A(r, n);
- for (var o = e; o = o.parent; )
- o.data && (n = Ar(o.data)) && A(r, n);
- return r
- }(t, !0);
- for (s in d)
- i(h[s]) && Pr(l, s, "");
- for (s in h)
- (a = h[s]) !== d[s] && Pr(l, s, null == a ? "" : a)
- }
- }
- var Fr = {
- create: jr,
- update: jr
- }
- , Dr = /\s+/;
- function Nr(e, t) {
- if (t && (t = t.trim()))
- if (e.classList)
- t.indexOf(" ") > -1 ? t.split(Dr).forEach((function(t) {
- return e.classList.add(t)
- }
- )) : e.classList.add(t);
- else {
- var n = " " + (e.getAttribute("class") || "") + " ";
- n.indexOf(" " + t + " ") < 0 && e.setAttribute("class", (n + t).trim())
- }
- }
- function Ur(e, t) {
- if (t && (t = t.trim()))
- if (e.classList)
- t.indexOf(" ") > -1 ? t.split(Dr).forEach((function(t) {
- return e.classList.remove(t)
- }
- )) : e.classList.remove(t),
- e.classList.length || e.removeAttribute("class");
- else {
- for (var n = " " + (e.getAttribute("class") || "") + " ", r = " " + t + " "; n.indexOf(r) >= 0; )
- n = n.replace(r, " ");
- (n = n.trim()) ? e.setAttribute("class", n) : e.removeAttribute("class")
- }
- }
- function Wr(e) {
- if (e) {
- if ("object" == typeof e) {
- var t = {};
- return !1 !== e.css && A(t, Hr(e.name || "v")),
- A(t, e),
- t
- }
- return "string" == typeof e ? Hr(e) : void 0
- }
- }
- var Hr = w((function(e) {
- return {
- enterClass: e + "-enter",
- enterToClass: e + "-enter-to",
- enterActiveClass: e + "-enter-active",
- leaveClass: e + "-leave",
- leaveToClass: e + "-leave-to",
- leaveActiveClass: e + "-leave-active"
- }
- }
- ))
- , Vr = $ && !X
- , $r = "transition"
- , Gr = "transitionend"
- , Zr = "animation"
- , qr = "animationend";
- Vr && (void 0 === window.ontransitionend && void 0 !== window.onwebkittransitionend && ($r = "WebkitTransition",
- Gr = "webkitTransitionEnd"),
- void 0 === window.onanimationend && void 0 !== window.onwebkitanimationend && (Zr = "WebkitAnimation",
- qr = "webkitAnimationEnd"));
- var Yr = $ ? window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout : function(e) {
- return e()
- }
- ;
- function Xr(e) {
- Yr((function() {
- Yr(e)
- }
- ))
- }
- function Jr(e, t) {
- var n = e._transitionClasses || (e._transitionClasses = []);
- n.indexOf(t) < 0 && (n.push(t),
- Nr(e, t))
- }
- function Qr(e, t) {
- e._transitionClasses && y(e._transitionClasses, t),
- Ur(e, t)
- }
- function Kr(e, t, n) {
- var r = ti(e, t)
- , i = r.type
- , o = r.timeout
- , a = r.propCount;
- if (!i)
- return n();
- var s = "transition" === i ? Gr : qr
- , l = 0
- , u = function() {
- e.removeEventListener(s, c),
- n()
- }
- , c = function(t) {
- t.target === e && ++l >= a && u()
- };
- setTimeout((function() {
- l < a && u()
- }
- ), o + 1),
- e.addEventListener(s, c)
- }
- var ei = /\b(transform|all)(,|$)/;
- function ti(e, t) {
- var n, r = window.getComputedStyle(e), i = (r[$r + "Delay"] || "").split(", "), o = (r[$r + "Duration"] || "").split(", "), a = ni(i, o), s = (r[Zr + "Delay"] || "").split(", "), l = (r[Zr + "Duration"] || "").split(", "), u = ni(s, l), c = 0, d = 0;
- return "transition" === t ? a > 0 && (n = "transition",
- c = a,
- d = o.length) : "animation" === t ? u > 0 && (n = "animation",
- c = u,
- d = l.length) : d = (n = (c = Math.max(a, u)) > 0 ? a > u ? "transition" : "animation" : null) ? "transition" === n ? o.length : l.length : 0,
- {
- type: n,
- timeout: c,
- propCount: d,
- hasTransform: "transition" === n && ei.test(r[$r + "Property"])
- }
- }
- function ni(e, t) {
- for (; e.length < t.length; )
- e = e.concat(e);
- return Math.max.apply(null, t.map((function(t, n) {
- return ri(t) + ri(e[n])
- }
- )))
- }
- function ri(e) {
- return 1e3 * Number(e.slice(0, -1).replace(",", "."))
- }
- function ii(e, t) {
- var n = e.elm;
- o(n._leaveCb) && (n._leaveCb.cancelled = !0,
- n._leaveCb());
- var r = Wr(e.data.transition);
- if (!i(r) && !o(n._enterCb) && 1 === n.nodeType) {
- for (var a = r.css, s = r.type, u = r.enterClass, c = r.enterToClass, d = r.enterActiveClass, f = r.appearClass, h = r.appearToClass, p = r.appearActiveClass, m = r.beforeEnter, v = r.enter, y = r.afterEnter, b = r.enterCancelled, _ = r.beforeAppear, w = r.appear, S = r.afterAppear, x = r.appearCancelled, k = r.duration, I = Xt, C = Xt.$vnode; C && C.parent; )
- I = C.context,
- C = C.parent;
- var M = !I._isMounted || !e.isRootInsert;
- if (!M || w || "" === w) {
- var T = M && f ? f : u
- , A = M && p ? p : d
- , E = M && h ? h : c
- , O = M && _ || m
- , B = M && "function" == typeof w ? w : v
- , L = M && S || y
- , P = M && x || b
- , R = g(l(k) ? k.enter : k);
- 0;
- var j = !1 !== a && !X
- , F = si(B)
- , D = n._enterCb = z((function() {
- j && (Qr(n, E),
- Qr(n, A)),
- D.cancelled ? (j && Qr(n, T),
- P && P(n)) : L && L(n),
- n._enterCb = null
- }
- ));
- e.data.show || lt(e, "insert", (function() {
- var t = n.parentNode
- , r = t && t._pending && t._pending[e.key];
- r && r.tag === e.tag && r.elm._leaveCb && r.elm._leaveCb(),
- B && B(n, D)
- }
- )),
- O && O(n),
- j && (Jr(n, T),
- Jr(n, A),
- Xr((function() {
- Qr(n, T),
- D.cancelled || (Jr(n, E),
- F || (ai(R) ? setTimeout(D, R) : Kr(n, s, D)))
- }
- ))),
- e.data.show && (t && t(),
- B && B(n, D)),
- j || F || D()
- }
- }
- }
- function oi(e, t) {
- var n = e.elm;
- o(n._enterCb) && (n._enterCb.cancelled = !0,
- n._enterCb());
- var r = Wr(e.data.transition);
- if (i(r) || 1 !== n.nodeType)
- return t();
- if (!o(n._leaveCb)) {
- var a = r.css
- , s = r.type
- , u = r.leaveClass
- , c = r.leaveToClass
- , d = r.leaveActiveClass
- , f = r.beforeLeave
- , h = r.leave
- , p = r.afterLeave
- , m = r.leaveCancelled
- , v = r.delayLeave
- , y = r.duration
- , b = !1 !== a && !X
- , _ = si(h)
- , w = g(l(y) ? y.leave : y);
- 0;
- var S = n._leaveCb = z((function() {
- n.parentNode && n.parentNode._pending && (n.parentNode._pending[e.key] = null),
- b && (Qr(n, c),
- Qr(n, d)),
- S.cancelled ? (b && Qr(n, u),
- m && m(n)) : (t(),
- p && p(n)),
- n._leaveCb = null
- }
- ));
- v ? v(x) : x()
- }
- function x() {
- S.cancelled || (!e.data.show && n.parentNode && ((n.parentNode._pending || (n.parentNode._pending = {}))[e.key] = e),
- f && f(n),
- b && (Jr(n, u),
- Jr(n, d),
- Xr((function() {
- Qr(n, u),
- S.cancelled || (Jr(n, c),
- _ || (ai(w) ? setTimeout(S, w) : Kr(n, s, S)))
- }
- ))),
- h && h(n, S),
- b || _ || S())
- }
- }
- function ai(e) {
- return "number" == typeof e && !isNaN(e)
- }
- function si(e) {
- if (i(e))
- return !1;
- var t = e.fns;
- return o(t) ? si(Array.isArray(t) ? t[0] : t) : (e._length || e.length) > 1
- }
- function li(e, t) {
- !0 !== t.data.show && ii(t)
- }
- var ui = function(e) {
- var t, n, r = {}, l = e.modules, u = e.nodeOps;
- for (t = 0; t < tr.length; ++t)
- for (r[tr[t]] = [],
- n = 0; n < l.length; ++n)
- o(l[n][tr[t]]) && r[tr[t]].push(l[n][tr[t]]);
- function c(e) {
- var t = u.parentNode(e);
- o(t) && u.removeChild(t, e)
- }
- function d(e, t, n, i, s, l, c) {
- if (o(e.elm) && o(l) && (e = l[c] = ye(e)),
- e.isRootInsert = !s,
- !function(e, t, n, i) {
- var s = e.data;
- if (o(s)) {
- var l = o(e.componentInstance) && s.keepAlive;
- if (o(s = s.hook) && o(s = s.init) && s(e, !1),
- o(e.componentInstance))
- return f(e, t),
- h(n, e.elm, i),
- a(l) && function(e, t, n, i) {
- var a, s = e;
- for (; s.componentInstance; )
- if (s = s.componentInstance._vnode,
- o(a = s.data) && o(a = a.transition)) {
- for (a = 0; a < r.activate.length; ++a)
- r.activate[a](er, s);
- t.push(s);
- break
- }
- h(n, e.elm, i)
- }(e, t, n, i),
- !0
- }
- }(e, t, n, i)) {
- var d = e.data
- , g = e.children
- , m = e.tag;
- o(m) ? (e.elm = e.ns ? u.createElementNS(e.ns, m) : u.createElement(m, e),
- y(e),
- p(e, g, t),
- o(d) && v(e, t),
- h(n, e.elm, i)) : a(e.isComment) ? (e.elm = u.createComment(e.text),
- h(n, e.elm, i)) : (e.elm = u.createTextNode(e.text),
- h(n, e.elm, i))
- }
- }
- function f(e, t) {
- o(e.data.pendingInsert) && (t.push.apply(t, e.data.pendingInsert),
- e.data.pendingInsert = null),
- e.elm = e.componentInstance.$el,
- g(e) ? (v(e, t),
- y(e)) : (Kn(e),
- t.push(e))
- }
- function h(e, t, n) {
- o(e) && (o(n) ? u.parentNode(n) === e && u.insertBefore(e, t, n) : u.appendChild(e, t))
- }
- function p(e, t, n) {
- if (Array.isArray(t)) {
- 0;
- for (var r = 0; r < t.length; ++r)
- d(t[r], n, e.elm, null, !0, t, r)
- } else
- s(e.text) && u.appendChild(e.elm, u.createTextNode(String(e.text)))
- }
- function g(e) {
- for (; e.componentInstance; )
- e = e.componentInstance._vnode;
- return o(e.tag)
- }
- function v(e, n) {
- for (var i = 0; i < r.create.length; ++i)
- r.create[i](er, e);
- o(t = e.data.hook) && (o(t.create) && t.create(er, e),
- o(t.insert) && n.push(e))
- }
- function y(e) {
- var t;
- if (o(t = e.fnScopeId))
- u.setStyleScope(e.elm, t);
- else
- for (var n = e; n; )
- o(t = n.context) && o(t = t.$options._scopeId) && u.setStyleScope(e.elm, t),
- n = n.parent;
- o(t = Xt) && t !== e.context && t !== e.fnContext && o(t = t.$options._scopeId) && u.setStyleScope(e.elm, t)
- }
- function b(e, t, n, r, i, o) {
- for (; r <= i; ++r)
- d(n[r], o, e, t, !1, n, r)
- }
- function _(e) {
- var t, n, i = e.data;
- if (o(i))
- for (o(t = i.hook) && o(t = t.destroy) && t(e),
- t = 0; t < r.destroy.length; ++t)
- r.destroy[t](e);
- if (o(t = e.children))
- for (n = 0; n < e.children.length; ++n)
- _(e.children[n])
- }
- function w(e, t, n) {
- for (; t <= n; ++t) {
- var r = e[t];
- o(r) && (o(r.tag) ? (S(r),
- _(r)) : c(r.elm))
- }
- }
- function S(e, t) {
- if (o(t) || o(e.data)) {
- var n, i = r.remove.length + 1;
- for (o(t) ? t.listeners += i : t = function(e, t) {
- function n() {
- 0 == --n.listeners && c(e)
- }
- return n.listeners = t,
- n
- }(e.elm, i),
- o(n = e.componentInstance) && o(n = n._vnode) && o(n.data) && S(n, t),
- n = 0; n < r.remove.length; ++n)
- r.remove[n](e, t);
- o(n = e.data.hook) && o(n = n.remove) ? n(e, t) : t()
- } else
- c(e.elm)
- }
- function x(e, t, n, r) {
- for (var i = n; i < r; i++) {
- var a = t[i];
- if (o(a) && nr(e, a))
- return i
- }
- }
- function k(e, t, n, s, l, c) {
- if (e !== t) {
- o(t.elm) && o(s) && (t = s[l] = ye(t));
- var f = t.elm = e.elm;
- if (a(e.isAsyncPlaceholder))
- o(t.asyncFactory.resolved) ? M(e.elm, t, n) : t.isAsyncPlaceholder = !0;
- else if (a(t.isStatic) && a(e.isStatic) && t.key === e.key && (a(t.isCloned) || a(t.isOnce)))
- t.componentInstance = e.componentInstance;
- else {
- var h, p = t.data;
- o(p) && o(h = p.hook) && o(h = h.prepatch) && h(e, t);
- var m = e.children
- , v = t.children;
- if (o(p) && g(t)) {
- for (h = 0; h < r.update.length; ++h)
- r.update[h](e, t);
- o(h = p.hook) && o(h = h.update) && h(e, t)
- }
- i(t.text) ? o(m) && o(v) ? m !== v && function(e, t, n, r, a) {
- var s, l, c, f = 0, h = 0, p = t.length - 1, g = t[0], m = t[p], v = n.length - 1, y = n[0], _ = n[v], S = !a;
- for (0; f <= p && h <= v; )
- i(g) ? g = t[++f] : i(m) ? m = t[--p] : nr(g, y) ? (k(g, y, r, n, h),
- g = t[++f],
- y = n[++h]) : nr(m, _) ? (k(m, _, r, n, v),
- m = t[--p],
- _ = n[--v]) : nr(g, _) ? (k(g, _, r, n, v),
- S && u.insertBefore(e, g.elm, u.nextSibling(m.elm)),
- g = t[++f],
- _ = n[--v]) : nr(m, y) ? (k(m, y, r, n, h),
- S && u.insertBefore(e, m.elm, g.elm),
- m = t[--p],
- y = n[++h]) : (i(s) && (s = rr(t, f, p)),
- i(l = o(y.key) ? s[y.key] : x(y, t, f, p)) ? d(y, r, e, g.elm, !1, n, h) : nr(c = t[l], y) ? (k(c, y, r, n, h),
- t[l] = void 0,
- S && u.insertBefore(e, c.elm, g.elm)) : d(y, r, e, g.elm, !1, n, h),
- y = n[++h]);
- f > p ? b(e, i(n[v + 1]) ? null : n[v + 1].elm, n, h, v, r) : h > v && w(t, f, p)
- }(f, m, v, n, c) : o(v) ? (o(e.text) && u.setTextContent(f, ""),
- b(f, null, v, 0, v.length - 1, n)) : o(m) ? w(m, 0, m.length - 1) : o(e.text) && u.setTextContent(f, "") : e.text !== t.text && u.setTextContent(f, t.text),
- o(p) && o(h = p.hook) && o(h = h.postpatch) && h(e, t)
- }
- }
- }
- function I(e, t, n) {
- if (a(n) && o(e.parent))
- e.parent.data.pendingInsert = t;
- else
- for (var r = 0; r < t.length; ++r)
- t[r].data.hook.insert(t[r])
- }
- var C = m("attrs,class,staticClass,staticStyle,key");
- function M(e, t, n, r) {
- var i, s = t.tag, l = t.data, u = t.children;
- if (r = r || l && l.pre,
- t.elm = e,
- a(t.isComment) && o(t.asyncFactory))
- return t.isAsyncPlaceholder = !0,
- !0;
- if (o(l) && (o(i = l.hook) && o(i = i.init) && i(t, !0),
- o(i = t.componentInstance)))
- return f(t, n),
- !0;
- if (o(s)) {
- if (o(u))
- if (e.hasChildNodes())
- if (o(i = l) && o(i = i.domProps) && o(i = i.innerHTML)) {
- if (i !== e.innerHTML)
- return !1
- } else {
- for (var c = !0, d = e.firstChild, h = 0; h < u.length; h++) {
- if (!d || !M(d, u[h], n, r)) {
- c = !1;
- break
- }
- d = d.nextSibling
- }
- if (!c || d)
- return !1
- }
- else
- p(t, u, n);
- if (o(l)) {
- var g = !1;
- for (var m in l)
- if (!C(m)) {
- g = !0,
- v(t, n);
- break
- }
- !g && l.class && it(l.class)
- }
- } else
- e.data !== t.text && (e.data = t.text);
- return !0
- }
- return function(e, t, n, s) {
- if (!i(t)) {
- var l, c = !1, f = [];
- if (i(e))
- c = !0,
- d(t, f);
- else {
- var h = o(e.nodeType);
- if (!h && nr(e, t))
- k(e, t, f, null, null, s);
- else {
- if (h) {
- if (1 === e.nodeType && e.hasAttribute("data-server-rendered") && (e.removeAttribute("data-server-rendered"),
- n = !0),
- a(n) && M(e, t, f))
- return I(t, f, !0),
- e;
- l = e,
- e = new pe(u.tagName(l).toLowerCase(),{},[],void 0,l)
- }
- var p = e.elm
- , m = u.parentNode(p);
- if (d(t, f, p._leaveCb ? null : m, u.nextSibling(p)),
- o(t.parent))
- for (var v = t.parent, y = g(t); v; ) {
- for (var b = 0; b < r.destroy.length; ++b)
- r.destroy[b](v);
- if (v.elm = t.elm,
- y) {
- for (var S = 0; S < r.create.length; ++S)
- r.create[S](er, v);
- var x = v.data.hook.insert;
- if (x.merged)
- for (var C = 1; C < x.fns.length; C++)
- x.fns[C]()
- } else
- Kn(v);
- v = v.parent
- }
- o(m) ? w([e], 0, 0) : o(e.tag) && _(e)
- }
- }
- return I(t, f, c),
- t.elm
- }
- o(e) && _(e)
- }
- }({
- nodeOps: Jn,
- modules: [pr, vr, kr, Mr, Fr, $ ? {
- create: li,
- activate: li,
- remove: function(e, t) {
- !0 !== e.data.show ? oi(e, t) : t()
- }
- } : {}].concat(cr)
- });
- X && document.addEventListener("selectionchange", (function() {
- var e = document.activeElement;
- e && e.vmodel && vi(e, "input")
- }
- ));
- var ci = {
- inserted: function(e, t, n, r) {
- "select" === n.tag ? (r.elm && !r.elm._vOptions ? lt(n, "postpatch", (function() {
- ci.componentUpdated(e, t, n)
- }
- )) : di(e, t, n.context),
- e._vOptions = [].map.call(e.options, pi)) : ("textarea" === n.tag || Xn(e.type)) && (e._vModifiers = t.modifiers,
- t.modifiers.lazy || (e.addEventListener("compositionstart", gi),
- e.addEventListener("compositionend", mi),
- e.addEventListener("change", mi),
- X && (e.vmodel = !0)))
- },
- componentUpdated: function(e, t, n) {
- if ("select" === n.tag) {
- di(e, t, n.context);
- var r = e._vOptions
- , i = e._vOptions = [].map.call(e.options, pi);
- if (i.some((function(e, t) {
- return !P(e, r[t])
- }
- )))
- (e.multiple ? t.value.some((function(e) {
- return hi(e, i)
- }
- )) : t.value !== t.oldValue && hi(t.value, i)) && vi(e, "change")
- }
- }
- };
- function di(e, t, n) {
- fi(e, t, n),
- (Y || J) && setTimeout((function() {
- fi(e, t, n)
- }
- ), 0)
- }
- function fi(e, t, n) {
- var r = t.value
- , i = e.multiple;
- if (!i || Array.isArray(r)) {
- for (var o, a, s = 0, l = e.options.length; s < l; s++)
- if (a = e.options[s],
- i)
- o = R(r, pi(a)) > -1,
- a.selected !== o && (a.selected = o);
- else if (P(pi(a), r))
- return void (e.selectedIndex !== s && (e.selectedIndex = s));
- i || (e.selectedIndex = -1)
- }
- }
- function hi(e, t) {
- return t.every((function(t) {
- return !P(t, e)
- }
- ))
- }
- function pi(e) {
- return "_value"in e ? e._value : e.value
- }
- function gi(e) {
- e.target.composing = !0
- }
- function mi(e) {
- e.target.composing && (e.target.composing = !1,
- vi(e.target, "input"))
- }
- function vi(e, t) {
- var n = document.createEvent("HTMLEvents");
- n.initEvent(t, !0, !0),
- e.dispatchEvent(n)
- }
- function yi(e) {
- return !e.componentInstance || e.data && e.data.transition ? e : yi(e.componentInstance._vnode)
- }
- var bi = {
- model: ci,
- show: {
- bind: function(e, t, n) {
- var r = t.value
- , i = (n = yi(n)).data && n.data.transition
- , o = e.__vOriginalDisplay = "none" === e.style.display ? "" : e.style.display;
- r && i ? (n.data.show = !0,
- ii(n, (function() {
- e.style.display = o
- }
- ))) : e.style.display = r ? o : "none"
- },
- update: function(e, t, n) {
- var r = t.value;
- !r != !t.oldValue && ((n = yi(n)).data && n.data.transition ? (n.data.show = !0,
- r ? ii(n, (function() {
- e.style.display = e.__vOriginalDisplay
- }
- )) : oi(n, (function() {
- e.style.display = "none"
- }
- ))) : e.style.display = r ? e.__vOriginalDisplay : "none")
- },
- unbind: function(e, t, n, r, i) {
- i || (e.style.display = e.__vOriginalDisplay)
- }
- }
- }
- , _i = {
- name: String,
- appear: Boolean,
- css: Boolean,
- mode: String,
- type: String,
- enterClass: String,
- leaveClass: String,
- enterToClass: String,
- leaveToClass: String,
- enterActiveClass: String,
- leaveActiveClass: String,
- appearClass: String,
- appearActiveClass: String,
- appearToClass: String,
- duration: [Number, String, Object]
- };
- function wi(e) {
- var t = e && e.componentOptions;
- return t && t.Ctor.options.abstract ? wi($t(t.children)) : e
- }
- function Si(e) {
- var t = {}
- , n = e.$options;
- for (var r in n.propsData)
- t[r] = e[r];
- var i = n._parentListeners;
- for (var o in i)
- t[x(o)] = i[o];
- return t
- }
- function xi(e, t) {
- if (/\d-keep-alive$/.test(t.tag))
- return e("keep-alive", {
- props: t.componentOptions.propsData
- })
- }
- var ki = function(e) {
- return e.tag || gt(e)
- }
- , Ii = function(e) {
- return "show" === e.name
- }
- , Ci = {
- name: "transition",
- props: _i,
- abstract: !0,
- render: function(e) {
- var t = this
- , n = this.$slots.default;
- if (n && (n = n.filter(ki)).length) {
- 0;
- var r = this.mode;
- 0;
- var i = n[0];
- if (function(e) {
- for (; e = e.parent; )
- if (e.data.transition)
- return !0
- }(this.$vnode))
- return i;
- var o = wi(i);
- if (!o)
- return i;
- if (this._leaving)
- return xi(e, i);
- var a = "__transition-" + this._uid + "-";
- o.key = null == o.key ? o.isComment ? a + "comment" : a + o.tag : s(o.key) ? 0 === String(o.key).indexOf(a) ? o.key : a + o.key : o.key;
- var l = (o.data || (o.data = {})).transition = Si(this)
- , u = this._vnode
- , c = wi(u);
- if (o.data.directives && o.data.directives.some(Ii) && (o.data.show = !0),
- c && c.data && !function(e, t) {
- return t.key === e.key && t.tag === e.tag
- }(o, c) && !gt(c) && (!c.componentInstance || !c.componentInstance._vnode.isComment)) {
- var d = c.data.transition = A({}, l);
- if ("out-in" === r)
- return this._leaving = !0,
- lt(d, "afterLeave", (function() {
- t._leaving = !1,
- t.$forceUpdate()
- }
- )),
- xi(e, i);
- if ("in-out" === r) {
- if (gt(o))
- return u;
- var f, h = function() {
- f()
- };
- lt(l, "afterEnter", h),
- lt(l, "enterCancelled", h),
- lt(d, "delayLeave", (function(e) {
- f = e
- }
- ))
- }
- }
- return i
- }
- }
- }
- , Mi = A({
- tag: String,
- moveClass: String
- }, _i);
- function Ti(e) {
- e.elm._moveCb && e.elm._moveCb(),
- e.elm._enterCb && e.elm._enterCb()
- }
- function Ai(e) {
- e.data.newPos = e.elm.getBoundingClientRect()
- }
- function Ei(e) {
- var t = e.data.pos
- , n = e.data.newPos
- , r = t.left - n.left
- , i = t.top - n.top;
- if (r || i) {
- e.data.moved = !0;
- var o = e.elm.style;
- o.transform = o.WebkitTransform = "translate(" + r + "px," + i + "px)",
- o.transitionDuration = "0s"
- }
- }
- delete Mi.mode;
- var Oi = {
- Transition: Ci,
- TransitionGroup: {
- props: Mi,
- beforeMount: function() {
- var e = this
- , t = this._update;
- this._update = function(n, r) {
- var i = Jt(e);
- e.__patch__(e._vnode, e.kept, !1, !0),
- e._vnode = e.kept,
- i(),
- t.call(e, n, r)
- }
- },
- render: function(e) {
- for (var t = this.tag || this.$vnode.data.tag || "span", n = Object.create(null), r = this.prevChildren = this.children, i = this.$slots.default || [], o = this.children = [], a = Si(this), s = 0; s < i.length; s++) {
- var l = i[s];
- if (l.tag)
- if (null != l.key && 0 !== String(l.key).indexOf("__vlist"))
- o.push(l),
- n[l.key] = l,
- (l.data || (l.data = {})).transition = a;
- else
- ;
- }
- if (r) {
- for (var u = [], c = [], d = 0; d < r.length; d++) {
- var f = r[d];
- f.data.transition = a,
- f.data.pos = f.elm.getBoundingClientRect(),
- n[f.key] ? u.push(f) : c.push(f)
- }
- this.kept = e(t, null, u),
- this.removed = c
- }
- return e(t, null, o)
- },
- updated: function() {
- var e = this.prevChildren
- , t = this.moveClass || (this.name || "v") + "-move";
- e.length && this.hasMove(e[0].elm, t) && (e.forEach(Ti),
- e.forEach(Ai),
- e.forEach(Ei),
- this._reflow = document.body.offsetHeight,
- e.forEach((function(e) {
- if (e.data.moved) {
- var n = e.elm
- , r = n.style;
- Jr(n, t),
- r.transform = r.WebkitTransform = r.transitionDuration = "",
- n.addEventListener(Gr, n._moveCb = function e(r) {
- r && r.target !== n || r && !/transform$/.test(r.propertyName) || (n.removeEventListener(Gr, e),
- n._moveCb = null,
- Qr(n, t))
- }
- )
- }
- }
- )))
- },
- methods: {
- hasMove: function(e, t) {
- if (!Vr)
- return !1;
- if (this._hasMove)
- return this._hasMove;
- var n = e.cloneNode();
- e._transitionClasses && e._transitionClasses.forEach((function(e) {
- Ur(n, e)
- }
- )),
- Nr(n, t),
- n.style.display = "none",
- this.$el.appendChild(n);
- var r = ti(n);
- return this.$el.removeChild(n),
- this._hasMove = r.hasTransform
- }
- }
- }
- };
- kn.config.mustUseProp = function(e, t, n) {
- return "value" === n && Ln(e) && "button" !== t || "selected" === n && "option" === e || "checked" === n && "input" === e || "muted" === n && "video" === e
- }
- ,
- kn.config.isReservedTag = qn,
- kn.config.isReservedAttr = Bn,
- kn.config.getTagNamespace = function(e) {
- return Zn(e) ? "svg" : "math" === e ? "math" : void 0
- }
- ,
- kn.config.isUnknownElement = function(e) {
- if (!$)
- return !0;
- if (qn(e))
- return !1;
- if (e = e.toLowerCase(),
- null != Yn[e])
- return Yn[e];
- var t = document.createElement(e);
- return e.indexOf("-") > -1 ? Yn[e] = t.constructor === window.HTMLUnknownElement || t.constructor === window.HTMLElement : Yn[e] = /HTMLUnknownElement/.test(t.toString())
- }
- ,
- A(kn.options.directives, bi),
- A(kn.options.components, Oi),
- kn.prototype.__patch__ = $ ? ui : O,
- kn.prototype.$mount = function(e, t) {
- return function(e, t, n) {
- var r;
- return e.$el = t,
- e.$options.render || (e.$options.render = me),
- en(e, "beforeMount"),
- r = function() {
- e._update(e._render(), n)
- }
- ,
- new hn(e,r,O,{
- before: function() {
- e._isMounted && !e._isDestroyed && en(e, "beforeUpdate")
- }
- },!0),
- n = !1,
- null == e.$vnode && (e._isMounted = !0,
- en(e, "mounted")),
- e
- }(this, e = e && $ ? function(e) {
- if ("string" == typeof e) {
- var t = document.querySelector(e);
- return t || document.createElement("div")
- }
- return e
- }(e) : void 0, t)
- }
- ,
- $ && setTimeout((function() {
- D.devtools && ie && ie.emit("init", kn)
- }
- ), 0),
- t.default = kn
- }
- .call(this, n(20), n(184).setImmediate)
- },
- 61: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeTextLineHeight = void 0,
- t.computeTextLineHeight = function(e) {
- return e >= 50 && e < 90 ? "1.4em" : e >= 90 ? "1.3em" : "1.5em"
- }
- },
- 62: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computePlaceholder = void 0,
- t.computePlaceholder = function(e) {
- return e.image ? "image" : "none"
- }
- },
- 69: function(e, t) {
- var n, r, i = e.exports = {};
- function o() {
- throw new Error("setTimeout has not been defined")
- }
- function a() {
- throw new Error("clearTimeout has not been defined")
- }
- function s(e) {
- if (n === setTimeout)
- return setTimeout(e, 0);
- if ((n === o || !n) && setTimeout)
- return n = setTimeout,
- setTimeout(e, 0);
- try {
- return n(e, 0)
- } catch (t) {
- try {
- return n.call(null, e, 0)
- } catch (t) {
- return n.call(this, e, 0)
- }
- }
- }
- !function() {
- try {
- n = "function" == typeof setTimeout ? setTimeout : o
- } catch (e) {
- n = o
- }
- try {
- r = "function" == typeof clearTimeout ? clearTimeout : a
- } catch (e) {
- r = a
- }
- }();
- var l, u = [], c = !1, d = -1;
- function f() {
- c && l && (c = !1,
- l.length ? u = l.concat(u) : d = -1,
- u.length && h())
- }
- function h() {
- if (!c) {
- var e = s(f);
- c = !0;
- for (var t = u.length; t; ) {
- for (l = u,
- u = []; ++d < t; )
- l && l[d].run();
- d = -1,
- t = u.length
- }
- l = null,
- c = !1,
- function(e) {
- if (r === clearTimeout)
- return clearTimeout(e);
- if ((r === a || !r) && clearTimeout)
- return r = clearTimeout,
- clearTimeout(e);
- try {
- r(e)
- } catch (t) {
- try {
- return r.call(null, e)
- } catch (t) {
- return r.call(this, e)
- }
- }
- }(e)
- }
- }
- function p(e, t) {
- this.fun = e,
- this.array = t
- }
- function g() {}
- i.nextTick = function(e) {
- var t = new Array(arguments.length - 1);
- if (arguments.length > 1)
- for (var n = 1; n < arguments.length; n++)
- t[n - 1] = arguments[n];
- u.push(new p(e,t)),
- 1 !== u.length || c || s(h)
- }
- ,
- p.prototype.run = function() {
- this.fun.apply(null, this.array)
- }
- ,
- i.title = "browser",
- i.browser = !0,
- i.env = {},
- i.argv = [],
- i.version = "",
- i.versions = {},
- i.on = g,
- i.addListener = g,
- i.once = g,
- i.off = g,
- i.removeListener = g,
- i.removeAllListeners = g,
- i.emit = g,
- i.prependListener = g,
- i.prependOnceListener = g,
- i.listeners = function(e) {
- return []
- }
- ,
- i.binding = function(e) {
- throw new Error("process.binding is not supported")
- }
- ,
- i.cwd = function() {
- return "/"
- }
- ,
- i.chdir = function(e) {
- throw new Error("process.chdir is not supported")
- }
- ,
- i.umask = function() {
- return 0
- }
- },
- 70: function(e, t, n) {
- "use strict";
- n.r(t);
- var r = {
- update: null,
- begin: null,
- loopBegin: null,
- changeBegin: null,
- change: null,
- changeComplete: null,
- loopComplete: null,
- complete: null,
- loop: 1,
- direction: "normal",
- autoplay: !0,
- timelineOffset: 0
- }
- , i = {
- duration: 1e3,
- delay: 0,
- endDelay: 0,
- easing: "easeOutElastic(1, .5)",
- round: 0
- }
- , o = ["translateX", "translateY", "translateZ", "rotate", "rotateX", "rotateY", "rotateZ", "scale", "scaleX", "scaleY", "scaleZ", "skew", "skewX", "skewY", "perspective", "matrix", "matrix3d"]
- , a = {
- CSS: {},
- springs: {}
- };
- function s(e, t, n) {
- return Math.min(Math.max(e, t), n)
- }
- function l(e, t) {
- return e.indexOf(t) > -1
- }
- function u(e, t) {
- return e.apply(null, t)
- }
- var c = {
- arr: function(e) {
- return Array.isArray(e)
- },
- obj: function(e) {
- return l(Object.prototype.toString.call(e), "Object")
- },
- pth: function(e) {
- return c.obj(e) && e.hasOwnProperty("totalLength")
- },
- svg: function(e) {
- return e instanceof SVGElement
- },
- inp: function(e) {
- return e instanceof HTMLInputElement
- },
- dom: function(e) {
- return e.nodeType || c.svg(e)
- },
- str: function(e) {
- return "string" == typeof e
- },
- fnc: function(e) {
- return "function" == typeof e
- },
- und: function(e) {
- return void 0 === e
- },
- nil: function(e) {
- return c.und(e) || null === e
- },
- hex: function(e) {
- return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)
- },
- rgb: function(e) {
- return /^rgb/.test(e)
- },
- hsl: function(e) {
- return /^hsl/.test(e)
- },
- col: function(e) {
- return c.hex(e) || c.rgb(e) || c.hsl(e)
- },
- key: function(e) {
- return !r.hasOwnProperty(e) && !i.hasOwnProperty(e) && "targets" !== e && "keyframes" !== e
- }
- };
- function d(e) {
- var t = /\(([^)]+)\)/.exec(e);
- return t ? t[1].split(",").map((function(e) {
- return parseFloat(e)
- }
- )) : []
- }
- function f(e, t) {
- var n = d(e)
- , r = s(c.und(n[0]) ? 1 : n[0], .1, 100)
- , i = s(c.und(n[1]) ? 100 : n[1], .1, 100)
- , o = s(c.und(n[2]) ? 10 : n[2], .1, 100)
- , l = s(c.und(n[3]) ? 0 : n[3], .1, 100)
- , u = Math.sqrt(i / r)
- , f = o / (2 * Math.sqrt(i * r))
- , h = f < 1 ? u * Math.sqrt(1 - f * f) : 0
- , p = f < 1 ? (f * u - l) / h : -l + u;
- function g(e) {
- var n = t ? t * e / 1e3 : e;
- return n = f < 1 ? Math.exp(-n * f * u) * (1 * Math.cos(h * n) + p * Math.sin(h * n)) : (1 + p * n) * Math.exp(-n * u),
- 0 === e || 1 === e ? e : 1 - n
- }
- return t ? g : function() {
- var t = a.springs[e];
- if (t)
- return t;
- for (var n = 0, r = 0; ; )
- if (1 === g(n += 1 / 6)) {
- if (++r >= 16)
- break
- } else
- r = 0;
- var i = n * (1 / 6) * 1e3;
- return a.springs[e] = i,
- i
- }
- }
- function h(e) {
- return void 0 === e && (e = 10),
- function(t) {
- return Math.ceil(s(t, 1e-6, 1) * e) * (1 / e)
- }
- }
- var p, g, m = function() {
- function e(e, t) {
- return 1 - 3 * t + 3 * e
- }
- function t(e, t) {
- return 3 * t - 6 * e
- }
- function n(e) {
- return 3 * e
- }
- function r(r, i, o) {
- return ((e(i, o) * r + t(i, o)) * r + n(i)) * r
- }
- function i(r, i, o) {
- return 3 * e(i, o) * r * r + 2 * t(i, o) * r + n(i)
- }
- return function(e, t, n, o) {
- if (0 <= e && e <= 1 && 0 <= n && n <= 1) {
- var a = new Float32Array(11);
- if (e !== t || n !== o)
- for (var s = 0; s < 11; ++s)
- a[s] = r(.1 * s, e, n);
- return function(i) {
- return e === t && n === o || 0 === i || 1 === i ? i : r(l(i), t, o)
- }
- }
- function l(t) {
- for (var o = 0, s = 1; 10 !== s && a[s] <= t; ++s)
- o += .1;
- --s;
- var l = o + .1 * ((t - a[s]) / (a[s + 1] - a[s]))
- , u = i(l, e, n);
- return u >= .001 ? function(e, t, n, o) {
- for (var a = 0; a < 4; ++a) {
- var s = i(t, n, o);
- if (0 === s)
- return t;
- t -= (r(t, n, o) - e) / s
- }
- return t
- }(t, l, e, n) : 0 === u ? l : function(e, t, n, i, o) {
- var a, s, l = 0;
- do {
- (a = r(s = t + (n - t) / 2, i, o) - e) > 0 ? n = s : t = s
- } while (Math.abs(a) > 1e-7 && ++l < 10);
- return s
- }(t, o, o + .1, e, n)
- }
- }
- }(), v = (p = {
- linear: function() {
- return function(e) {
- return e
- }
- }
- },
- g = {
- Sine: function() {
- return function(e) {
- return 1 - Math.cos(e * Math.PI / 2)
- }
- },
- Circ: function() {
- return function(e) {
- return 1 - Math.sqrt(1 - e * e)
- }
- },
- Back: function() {
- return function(e) {
- return e * e * (3 * e - 2)
- }
- },
- Bounce: function() {
- return function(e) {
- for (var t, n = 4; e < ((t = Math.pow(2, --n)) - 1) / 11; )
- ;
- return 1 / Math.pow(4, 3 - n) - 7.5625 * Math.pow((3 * t - 2) / 22 - e, 2)
- }
- },
- Elastic: function(e, t) {
- void 0 === e && (e = 1),
- void 0 === t && (t = .5);
- var n = s(e, 1, 10)
- , r = s(t, .1, 2);
- return function(e) {
- return 0 === e || 1 === e ? e : -n * Math.pow(2, 10 * (e - 1)) * Math.sin((e - 1 - r / (2 * Math.PI) * Math.asin(1 / n)) * (2 * Math.PI) / r)
- }
- }
- },
- ["Quad", "Cubic", "Quart", "Quint", "Expo"].forEach((function(e, t) {
- g[e] = function() {
- return function(e) {
- return Math.pow(e, t + 2)
- }
- }
- }
- )),
- Object.keys(g).forEach((function(e) {
- var t = g[e];
- p["easeIn" + e] = t,
- p["easeOut" + e] = function(e, n) {
- return function(r) {
- return 1 - t(e, n)(1 - r)
- }
- }
- ,
- p["easeInOut" + e] = function(e, n) {
- return function(r) {
- return r < .5 ? t(e, n)(2 * r) / 2 : 1 - t(e, n)(-2 * r + 2) / 2
- }
- }
- ,
- p["easeOutIn" + e] = function(e, n) {
- return function(r) {
- return r < .5 ? (1 - t(e, n)(1 - 2 * r)) / 2 : (t(e, n)(2 * r - 1) + 1) / 2
- }
- }
- }
- )),
- p);
- function y(e, t) {
- if (c.fnc(e))
- return e;
- var n = e.split("(")[0]
- , r = v[n]
- , i = d(e);
- switch (n) {
- case "spring":
- return f(e, t);
- case "cubicBezier":
- return u(m, i);
- case "steps":
- return u(h, i);
- default:
- return u(r, i)
- }
- }
- function b(e) {
- try {
- return document.querySelectorAll(e)
- } catch (e) {
- return
- }
- }
- function _(e, t) {
- for (var n = e.length, r = arguments.length >= 2 ? arguments[1] : void 0, i = [], o = 0; o < n; o++)
- if (o in e) {
- var a = e[o];
- t.call(r, a, o, e) && i.push(a)
- }
- return i
- }
- function w(e) {
- return e.reduce((function(e, t) {
- return e.concat(c.arr(t) ? w(t) : t)
- }
- ), [])
- }
- function S(e) {
- return c.arr(e) ? e : (c.str(e) && (e = b(e) || e),
- e instanceof NodeList || e instanceof HTMLCollection ? [].slice.call(e) : [e])
- }
- function x(e, t) {
- return e.some((function(e) {
- return e === t
- }
- ))
- }
- function k(e) {
- var t = {};
- for (var n in e)
- t[n] = e[n];
- return t
- }
- function I(e, t) {
- var n = k(e);
- for (var r in e)
- n[r] = t.hasOwnProperty(r) ? t[r] : e[r];
- return n
- }
- function C(e, t) {
- var n = k(e);
- for (var r in t)
- n[r] = c.und(e[r]) ? t[r] : e[r];
- return n
- }
- function M(e) {
- return c.rgb(e) ? (n = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t = e)) ? "rgba(" + n[1] + ",1)" : t : c.hex(e) ? function(e) {
- var t = e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (function(e, t, n, r) {
- return t + t + n + n + r + r
- }
- ))
- , n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
- return "rgba(" + parseInt(n[1], 16) + "," + parseInt(n[2], 16) + "," + parseInt(n[3], 16) + ",1)"
- }(e) : c.hsl(e) ? function(e) {
- var t, n, r, i = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e) || /hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e), o = parseInt(i[1], 10) / 360, a = parseInt(i[2], 10) / 100, s = parseInt(i[3], 10) / 100, l = i[4] || 1;
- function u(e, t, n) {
- return n < 0 && (n += 1),
- n > 1 && (n -= 1),
- n < 1 / 6 ? e + 6 * (t - e) * n : n < .5 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e
- }
- if (0 == a)
- t = n = r = s;
- else {
- var c = s < .5 ? s * (1 + a) : s + a - s * a
- , d = 2 * s - c;
- t = u(d, c, o + 1 / 3),
- n = u(d, c, o),
- r = u(d, c, o - 1 / 3)
- }
- return "rgba(" + 255 * t + "," + 255 * n + "," + 255 * r + "," + l + ")"
- }(e) : void 0;
- var t, n
- }
- function T(e) {
- var t = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);
- if (t)
- return t[1]
- }
- function A(e, t) {
- return c.fnc(e) ? e(t.target, t.id, t.total) : e
- }
- function E(e, t) {
- return e.getAttribute(t)
- }
- function O(e, t, n) {
- if (x([n, "deg", "rad", "turn"], T(t)))
- return t;
- var r = a.CSS[t + n];
- if (!c.und(r))
- return r;
- var i = document.createElement(e.tagName)
- , o = e.parentNode && e.parentNode !== document ? e.parentNode : document.body;
- o.appendChild(i),
- i.style.position = "absolute",
- i.style.width = 100 + n;
- var s = 100 / i.offsetWidth;
- o.removeChild(i);
- var l = s * parseFloat(t);
- return a.CSS[t + n] = l,
- l
- }
- function B(e, t, n) {
- if (t in e.style) {
- var r = t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()
- , i = e.style[t] || getComputedStyle(e).getPropertyValue(r) || "0";
- return n ? O(e, i, n) : i
- }
- }
- function L(e, t) {
- return c.dom(e) && !c.inp(e) && (!c.nil(E(e, t)) || c.svg(e) && e[t]) ? "attribute" : c.dom(e) && x(o, t) ? "transform" : c.dom(e) && "transform" !== t && B(e, t) ? "css" : null != e[t] ? "object" : void 0
- }
- function P(e) {
- if (c.dom(e)) {
- for (var t, n = e.style.transform || "", r = /(\w+)\(([^)]*)\)/g, i = new Map; t = r.exec(n); )
- i.set(t[1], t[2]);
- return i
- }
- }
- function R(e, t, n, r) {
- var i = l(t, "scale") ? 1 : 0 + function(e) {
- return l(e, "translate") || "perspective" === e ? "px" : l(e, "rotate") || l(e, "skew") ? "deg" : void 0
- }(t)
- , o = P(e).get(t) || i;
- return n && (n.transforms.list.set(t, o),
- n.transforms.last = t),
- r ? O(e, o, r) : o
- }
- function z(e, t, n, r) {
- switch (L(e, t)) {
- case "transform":
- return R(e, t, r, n);
- case "css":
- return B(e, t, n);
- case "attribute":
- return E(e, t);
- default:
- return e[t] || 0
- }
- }
- function j(e, t) {
- var n = /^(\*=|\+=|-=)/.exec(e);
- if (!n)
- return e;
- var r = T(e) || 0
- , i = parseFloat(t)
- , o = parseFloat(e.replace(n[0], ""));
- switch (n[0][0]) {
- case "+":
- return i + o + r;
- case "-":
- return i - o + r;
- case "*":
- return i * o + r
- }
- }
- function F(e, t) {
- if (c.col(e))
- return M(e);
- if (/\s/g.test(e))
- return e;
- var n = T(e)
- , r = n ? e.substr(0, e.length - n.length) : e;
- return t ? r + t : r
- }
- function D(e, t) {
- return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2))
- }
- function N(e) {
- for (var t, n = e.points, r = 0, i = 0; i < n.numberOfItems; i++) {
- var o = n.getItem(i);
- i > 0 && (r += D(t, o)),
- t = o
- }
- return r
- }
- function U(e) {
- if (e.getTotalLength)
- return e.getTotalLength();
- switch (e.tagName.toLowerCase()) {
- case "circle":
- return function(e) {
- return 2 * Math.PI * E(e, "r")
- }(e);
- case "rect":
- return function(e) {
- return 2 * E(e, "width") + 2 * E(e, "height")
- }(e);
- case "line":
- return function(e) {
- return D({
- x: E(e, "x1"),
- y: E(e, "y1")
- }, {
- x: E(e, "x2"),
- y: E(e, "y2")
- })
- }(e);
- case "polyline":
- return N(e);
- case "polygon":
- return function(e) {
- var t = e.points;
- return N(e) + D(t.getItem(t.numberOfItems - 1), t.getItem(0))
- }(e)
- }
- }
- function W(e, t) {
- var n = t || {}
- , r = n.el || function(e) {
- for (var t = e.parentNode; c.svg(t) && c.svg(t.parentNode); )
- t = t.parentNode;
- return t
- }(e)
- , i = r.getBoundingClientRect()
- , o = E(r, "viewBox")
- , a = i.width
- , s = i.height
- , l = n.viewBox || (o ? o.split(" ") : [0, 0, a, s]);
- return {
- el: r,
- viewBox: l,
- x: l[0] / 1,
- y: l[1] / 1,
- w: a,
- h: s,
- vW: l[2],
- vH: l[3]
- }
- }
- function H(e, t, n) {
- function r(n) {
- void 0 === n && (n = 0);
- var r = t + n >= 1 ? t + n : 0;
- return e.el.getPointAtLength(r)
- }
- var i = W(e.el, e.svg)
- , o = r()
- , a = r(-1)
- , s = r(1)
- , l = n ? 1 : i.w / i.vW
- , u = n ? 1 : i.h / i.vH;
- switch (e.property) {
- case "x":
- return (o.x - i.x) * l;
- case "y":
- return (o.y - i.y) * u;
- case "angle":
- return 180 * Math.atan2(s.y - a.y, s.x - a.x) / Math.PI
- }
- }
- function V(e, t) {
- var n = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g
- , r = F(c.pth(e) ? e.totalLength : e, t) + "";
- return {
- original: r,
- numbers: r.match(n) ? r.match(n).map(Number) : [0],
- strings: c.str(e) || t ? r.split(n) : []
- }
- }
- function $(e) {
- return _(e ? w(c.arr(e) ? e.map(S) : S(e)) : [], (function(e, t, n) {
- return n.indexOf(e) === t
- }
- ))
- }
- function G(e) {
- var t = $(e);
- return t.map((function(e, n) {
- return {
- target: e,
- id: n,
- total: t.length,
- transforms: {
- list: P(e)
- }
- }
- }
- ))
- }
- function Z(e, t) {
- var n = k(t);
- if (/^spring/.test(n.easing) && (n.duration = f(n.easing)),
- c.arr(e)) {
- var r = e.length;
- 2 === r && !c.obj(e[0]) ? e = {
- value: e
- } : c.fnc(t.duration) || (n.duration = t.duration / r)
- }
- var i = c.arr(e) ? e : [e];
- return i.map((function(e, n) {
- var r = c.obj(e) && !c.pth(e) ? e : {
- value: e
- };
- return c.und(r.delay) && (r.delay = n ? 0 : t.delay),
- c.und(r.endDelay) && (r.endDelay = n === i.length - 1 ? t.endDelay : 0),
- r
- }
- )).map((function(e) {
- return C(e, n)
- }
- ))
- }
- function q(e, t) {
- var n = []
- , r = t.keyframes;
- for (var i in r && (t = C(function(e) {
- for (var t = _(w(e.map((function(e) {
- return Object.keys(e)
- }
- ))), (function(e) {
- return c.key(e)
- }
- )).reduce((function(e, t) {
- return e.indexOf(t) < 0 && e.push(t),
- e
- }
- ), []), n = {}, r = function(r) {
- var i = t[r];
- n[i] = e.map((function(e) {
- var t = {};
- for (var n in e)
- c.key(n) ? n == i && (t.value = e[n]) : t[n] = e[n];
- return t
- }
- ))
- }, i = 0; i < t.length; i++)
- r(i);
- return n
- }(r), t)),
- t)
- c.key(i) && n.push({
- name: i,
- tweens: Z(t[i], e)
- });
- return n
- }
- function Y(e, t) {
- var n;
- return e.tweens.map((function(r) {
- var i = function(e, t) {
- var n = {};
- for (var r in e) {
- var i = A(e[r], t);
- c.arr(i) && 1 === (i = i.map((function(e) {
- return A(e, t)
- }
- ))).length && (i = i[0]),
- n[r] = i
- }
- return n.duration = parseFloat(n.duration),
- n.delay = parseFloat(n.delay),
- n
- }(r, t)
- , o = i.value
- , a = c.arr(o) ? o[1] : o
- , s = T(a)
- , l = z(t.target, e.name, s, t)
- , u = n ? n.to.original : l
- , d = c.arr(o) ? o[0] : u
- , f = T(d) || T(l)
- , h = s || f;
- return c.und(a) && (a = u),
- i.from = V(d, h),
- i.to = V(j(a, d), h),
- i.start = n ? n.end : 0,
- i.end = i.start + i.delay + i.duration + i.endDelay,
- i.easing = y(i.easing, i.duration),
- i.isPath = c.pth(o),
- i.isPathTargetInsideSVG = i.isPath && c.svg(t.target),
- i.isColor = c.col(i.from.original),
- i.isColor && (i.round = 1),
- n = i,
- i
- }
- ))
- }
- var X = {
- css: function(e, t, n) {
- return e.style[t] = n
- },
- attribute: function(e, t, n) {
- return e.setAttribute(t, n)
- },
- object: function(e, t, n) {
- return e[t] = n
- },
- transform: function(e, t, n, r, i) {
- if (r.list.set(t, n),
- t === r.last || i) {
- var o = "";
- r.list.forEach((function(e, t) {
- o += t + "(" + e + ") "
- }
- )),
- e.style.transform = o
- }
- }
- };
- function J(e, t) {
- G(e).forEach((function(e) {
- for (var n in t) {
- var r = A(t[n], e)
- , i = e.target
- , o = T(r)
- , a = z(i, n, o, e)
- , s = j(F(r, o || T(a)), a)
- , l = L(i, n);
- X[l](i, n, s, e.transforms, !0)
- }
- }
- ))
- }
- function Q(e, t) {
- return _(w(e.map((function(e) {
- return t.map((function(t) {
- return function(e, t) {
- var n = L(e.target, t.name);
- if (n) {
- var r = Y(t, e)
- , i = r[r.length - 1];
- return {
- type: n,
- property: t.name,
- animatable: e,
- tweens: r,
- duration: i.end,
- delay: r[0].delay,
- endDelay: i.endDelay
- }
- }
- }(e, t)
- }
- ))
- }
- ))), (function(e) {
- return !c.und(e)
- }
- ))
- }
- function K(e, t) {
- var n = e.length
- , r = function(e) {
- return e.timelineOffset ? e.timelineOffset : 0
- }
- , i = {};
- return i.duration = n ? Math.max.apply(Math, e.map((function(e) {
- return r(e) + e.duration
- }
- ))) : t.duration,
- i.delay = n ? Math.min.apply(Math, e.map((function(e) {
- return r(e) + e.delay
- }
- ))) : t.delay,
- i.endDelay = n ? i.duration - Math.max.apply(Math, e.map((function(e) {
- return r(e) + e.duration - e.endDelay
- }
- ))) : t.endDelay,
- i
- }
- var ee = 0;
- var te = []
- , ne = function() {
- var e;
- function t(n) {
- for (var r = te.length, i = 0; i < r; ) {
- var o = te[i];
- o.paused ? (te.splice(i, 1),
- r--) : (o.tick(n),
- i++)
- }
- e = i > 0 ? requestAnimationFrame(t) : void 0
- }
- return "undefined" != typeof document && document.addEventListener("visibilitychange", (function() {
- ie.suspendWhenDocumentHidden && (re() ? e = cancelAnimationFrame(e) : (te.forEach((function(e) {
- return e._onDocumentVisibility()
- }
- )),
- ne()))
- }
- )),
- function() {
- e || re() && ie.suspendWhenDocumentHidden || !(te.length > 0) || (e = requestAnimationFrame(t))
- }
- }();
- function re() {
- return !!document && document.hidden
- }
- function ie(e) {
- void 0 === e && (e = {});
- var t, n = 0, o = 0, a = 0, l = 0, u = null;
- function c(e) {
- var t = window.Promise && new Promise((function(e) {
- return u = e
- }
- ));
- return e.finished = t,
- t
- }
- var d = function(e) {
- var t = I(r, e)
- , n = I(i, e)
- , o = q(n, e)
- , a = G(e.targets)
- , s = Q(a, o)
- , l = K(s, n)
- , u = ee;
- return ee++,
- C(t, {
- id: u,
- children: [],
- animatables: a,
- animations: s,
- duration: l.duration,
- delay: l.delay,
- endDelay: l.endDelay
- })
- }(e);
- c(d);
- function f() {
- var e = d.direction;
- "alternate" !== e && (d.direction = "normal" !== e ? "normal" : "reverse"),
- d.reversed = !d.reversed,
- t.forEach((function(e) {
- return e.reversed = d.reversed
- }
- ))
- }
- function h(e) {
- return d.reversed ? d.duration - e : e
- }
- function p() {
- n = 0,
- o = h(d.currentTime) * (1 / ie.speed)
- }
- function g(e, t) {
- t && t.seek(e - t.timelineOffset)
- }
- function m(e) {
- for (var t = 0, n = d.animations, r = n.length; t < r; ) {
- var i = n[t]
- , o = i.animatable
- , a = i.tweens
- , l = a.length - 1
- , u = a[l];
- l && (u = _(a, (function(t) {
- return e < t.end
- }
- ))[0] || u);
- for (var c = s(e - u.start - u.delay, 0, u.duration) / u.duration, f = isNaN(c) ? 1 : u.easing(c), h = u.to.strings, p = u.round, g = [], m = u.to.numbers.length, v = void 0, y = 0; y < m; y++) {
- var b = void 0
- , w = u.to.numbers[y]
- , S = u.from.numbers[y] || 0;
- b = u.isPath ? H(u.value, f * w, u.isPathTargetInsideSVG) : S + f * (w - S),
- p && (u.isColor && y > 2 || (b = Math.round(b * p) / p)),
- g.push(b)
- }
- var x = h.length;
- if (x) {
- v = h[0];
- for (var k = 0; k < x; k++) {
- h[k];
- var I = h[k + 1]
- , C = g[k];
- isNaN(C) || (v += I ? C + I : C + " ")
- }
- } else
- v = g[0];
- X[i.type](o.target, i.property, v, o.transforms),
- i.currentValue = v,
- t++
- }
- }
- function v(e) {
- d[e] && !d.passThrough && d[e](d)
- }
- function y(e) {
- var r = d.duration
- , i = d.delay
- , p = r - d.endDelay
- , y = h(e);
- d.progress = s(y / r * 100, 0, 100),
- d.reversePlayback = y < d.currentTime,
- t && function(e) {
- if (d.reversePlayback)
- for (var n = l; n--; )
- g(e, t[n]);
- else
- for (var r = 0; r < l; r++)
- g(e, t[r])
- }(y),
- !d.began && d.currentTime > 0 && (d.began = !0,
- v("begin")),
- !d.loopBegan && d.currentTime > 0 && (d.loopBegan = !0,
- v("loopBegin")),
- y <= i && 0 !== d.currentTime && m(0),
- (y >= p && d.currentTime !== r || !r) && m(r),
- y > i && y < p ? (d.changeBegan || (d.changeBegan = !0,
- d.changeCompleted = !1,
- v("changeBegin")),
- v("change"),
- m(y)) : d.changeBegan && (d.changeCompleted = !0,
- d.changeBegan = !1,
- v("changeComplete")),
- d.currentTime = s(y, 0, r),
- d.began && v("update"),
- e >= r && (o = 0,
- d.remaining && !0 !== d.remaining && d.remaining--,
- d.remaining ? (n = a,
- v("loopComplete"),
- d.loopBegan = !1,
- "alternate" === d.direction && f()) : (d.paused = !0,
- d.completed || (d.completed = !0,
- v("loopComplete"),
- v("complete"),
- !d.passThrough && "Promise"in window && (u(),
- c(d)))))
- }
- return d.reset = function() {
- var e = d.direction;
- d.passThrough = !1,
- d.currentTime = 0,
- d.progress = 0,
- d.paused = !0,
- d.began = !1,
- d.loopBegan = !1,
- d.changeBegan = !1,
- d.completed = !1,
- d.changeCompleted = !1,
- d.reversePlayback = !1,
- d.reversed = "reverse" === e,
- d.remaining = d.loop,
- t = d.children;
- for (var n = l = t.length; n--; )
- d.children[n].reset();
- (d.reversed && !0 !== d.loop || "alternate" === e && 1 === d.loop) && d.remaining++,
- m(d.reversed ? d.duration : 0)
- }
- ,
- d._onDocumentVisibility = p,
- d.set = function(e, t) {
- return J(e, t),
- d
- }
- ,
- d.tick = function(e) {
- a = e,
- n || (n = a),
- y((a + (o - n)) * ie.speed)
- }
- ,
- d.seek = function(e) {
- y(h(e))
- }
- ,
- d.pause = function() {
- d.paused = !0,
- p()
- }
- ,
- d.play = function() {
- d.paused && (d.completed && d.reset(),
- d.paused = !1,
- te.push(d),
- p(),
- ne())
- }
- ,
- d.reverse = function() {
- f(),
- d.completed = !d.reversed,
- p()
- }
- ,
- d.restart = function() {
- d.reset(),
- d.play()
- }
- ,
- d.remove = function(e) {
- ae($(e), d)
- }
- ,
- d.reset(),
- d.autoplay && d.play(),
- d
- }
- function oe(e, t) {
- for (var n = t.length; n--; )
- x(e, t[n].animatable.target) && t.splice(n, 1)
- }
- function ae(e, t) {
- var n = t.animations
- , r = t.children;
- oe(e, n);
- for (var i = r.length; i--; ) {
- var o = r[i]
- , a = o.animations;
- oe(e, a),
- a.length || o.children.length || r.splice(i, 1)
- }
- n.length || r.length || t.pause()
- }
- ie.version = "3.2.1",
- ie.speed = 1,
- ie.suspendWhenDocumentHidden = !0,
- ie.running = te,
- ie.remove = function(e) {
- for (var t = $(e), n = te.length; n--; ) {
- ae(t, te[n])
- }
- }
- ,
- ie.get = z,
- ie.set = J,
- ie.convertPx = O,
- ie.path = function(e, t) {
- var n = c.str(e) ? b(e)[0] : e
- , r = t || 100;
- return function(e) {
- return {
- property: e,
- el: n,
- svg: W(n),
- totalLength: U(n) * (r / 100)
- }
- }
- }
- ,
- ie.setDashoffset = function(e) {
- var t = U(e);
- return e.setAttribute("stroke-dasharray", t),
- t
- }
- ,
- ie.stagger = function(e, t) {
- void 0 === t && (t = {});
- var n = t.direction || "normal"
- , r = t.easing ? y(t.easing) : null
- , i = t.grid
- , o = t.axis
- , a = t.from || 0
- , s = "first" === a
- , l = "center" === a
- , u = "last" === a
- , d = c.arr(e)
- , f = d ? parseFloat(e[0]) : parseFloat(e)
- , h = d ? parseFloat(e[1]) : 0
- , p = T(d ? e[1] : e) || 0
- , g = t.start || 0 + (d ? f : 0)
- , m = []
- , v = 0;
- return function(e, t, c) {
- if (s && (a = 0),
- l && (a = (c - 1) / 2),
- u && (a = c - 1),
- !m.length) {
- for (var y = 0; y < c; y++) {
- if (i) {
- var b = l ? (i[0] - 1) / 2 : a % i[0]
- , _ = l ? (i[1] - 1) / 2 : Math.floor(a / i[0])
- , w = b - y % i[0]
- , S = _ - Math.floor(y / i[0])
- , x = Math.sqrt(w * w + S * S);
- "x" === o && (x = -w),
- "y" === o && (x = -S),
- m.push(x)
- } else
- m.push(Math.abs(a - y));
- v = Math.max.apply(Math, m)
- }
- r && (m = m.map((function(e) {
- return r(e / v) * v
- }
- ))),
- "reverse" === n && (m = m.map((function(e) {
- return o ? e < 0 ? -1 * e : -e : Math.abs(v - e)
- }
- )))
- }
- return g + (d ? (h - f) / v : f) * (Math.round(100 * m[t]) / 100) + p
- }
- }
- ,
- ie.timeline = function(e) {
- void 0 === e && (e = {});
- var t = ie(e);
- return t.duration = 0,
- t.add = function(n, r) {
- var o = te.indexOf(t)
- , a = t.children;
- function s(e) {
- e.passThrough = !0
- }
- o > -1 && te.splice(o, 1);
- for (var l = 0; l < a.length; l++)
- s(a[l]);
- var u = C(n, I(i, e));
- u.targets = u.targets || e.targets;
- var d = t.duration;
- u.autoplay = !1,
- u.direction = t.direction,
- u.timelineOffset = c.und(r) ? d : j(r, d),
- s(t),
- t.seek(u.timelineOffset);
- var f = ie(u);
- s(f),
- a.push(f);
- var h = K(a, e);
- return t.delay = h.delay,
- t.endDelay = h.endDelay,
- t.duration = h.duration,
- t.seek(0),
- t.reset(),
- t.autoplay && t.play(),
- t
- }
- ,
- t
- }
- ,
- ie.easing = y,
- ie.penner = v,
- ie.random = function(e, t) {
- return Math.floor(Math.random() * (t - e + 1)) + e
- }
- ,
- t.default = ie
- },
- 75: function(e, t, n) {
- "use strict";
- var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
- void 0 === r && (r = n),
- Object.defineProperty(e, r, {
- enumerable: !0,
- get: function() {
- return t[n]
- }
- })
- }
- : function(e, t, n, r) {
- void 0 === r && (r = n),
- e[r] = t[n]
- }
- )
- , i = this && this.__exportStar || function(e, t) {
- for (var n in e)
- "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
- }
- ;
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- i(n(76), t),
- i(n(50), t),
- i(n(51), t),
- i(n(168), t),
- i(n(169), t),
- i(n(111), t),
- i(n(172), t),
- i(n(262), t),
- i(n(112), t)
- },
- 76: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.View = void 0;
- t.View = class {
- constructor(e={}) {
- var t;
- this._superview = null,
- this._connected = !1,
- this._superview = null !== (t = e.superview) && void 0 !== t ? t : null
- }
- get superview() {
- return this._superview
- }
- get el() {
- var e;
- return null !== (e = this._el) && void 0 !== e ? e : this._el = this.createViewElement()
- }
- update() {}
- connect() {
- this._connected = !0
- }
- disconnect() {
- this._connected = !1
- }
- get connected() {
- return this._connected
- }
- }
- },
- 80: function(e, t, n) {
- "use strict";
- n.d(t, "a", (function() {
- return S
- }
- )),
- n.d(t, "c", (function() {
- return x
- }
- )),
- n.d(t, "e", (function() {
- return C
- }
- )),
- n.d(t, "b", (function() {
- return M
- }
- )),
- n.d(t, "d", (function() {
- return T
- }
- ));
- var r = {};
- n.r(r),
- n.d(r, "getMarkerInfoById", (function() {
- return m
- }
- )),
- n.d(r, "getGroupInfoById", (function() {
- return v
- }
- )),
- n.d(r, "getGroupInfoList", (function() {
- return y
- }
- )),
- n.d(r, "addUserMarkerInfoList", (function() {
- return b
- }
- )),
- n.d(r, "isSiblingMarker", (function() {
- return _
- }
- )),
- n.d(r, "indexOf", (function() {
- return w
- }
- ));
- var i, o = n(4), a = n(138), s = n.n(a), l = n(139);
- !function(e) {
- e.tagMarkers = "tagMarkers",
- e.priorityMarkers = "priorityMarkers",
- e.smileyMarkers = "smileyMarkers",
- e.taskMarkers = "taskMarkers",
- e.flagMarkers = "flagMarkers",
- e.starMarkers = "starMarkers",
- e.peopleMarkers = "peopleMarkers",
- e.arrowMarkers = "arrowMarkers",
- e.academicMarkers = "academicMarkers",
- e.socialMarkers = "socialMarkers",
- e.celebrationMarkers = "celebrationMarkers",
- e.symbolMarkers = "symbolMarkers",
- e.monthMarkers = "monthMarkers",
- e.weekMarkers = "weekMarkers",
- e.halfStarMarkers = "halfStarMarkers",
- e.otherMarkers = "otherMarkers"
- }(i || (i = {}));
- const u = [i.tagMarkers, i.priorityMarkers, i.taskMarkers, i.flagMarkers, i.starMarkers, i.peopleMarkers, i.symbolMarkers, i.smileyMarkers, i.arrowMarkers, i.academicMarkers, i.socialMarkers, i.celebrationMarkers, i.monthMarkers, i.weekMarkers, i.halfStarMarkers, i.otherMarkers];
- var c;
- function d(e={}) {
- return {
- lang: e.lang || c.EN_US
- }
- }
- !function(e) {
- e.ZH_CN = "zh-CN",
- e.EN_US = "en-US",
- e.ZH_HK = "zh-HK",
- e.ZH_TW = "zh-TW",
- e.JA_JP = "ja-JP",
- e.DE_DE = "de-DE",
- e.FR_FR = "fr-FR",
- e.ES_ES = "es",
- e.ID_ID = "id",
- e.IT_IT = "it-IT",
- e.KR_KR = "ko",
- e.PT_PT = "pt-PT",
- e.RU_RU = "ru-RU",
- e.TH_TH = "th"
- }(c || (c = {}));
- const f = {
- tagMarkers: {
- "zh-CN": "标签",
- "en-US": "Tag",
- "zh-HK": "標記",
- "zh-TW": "標記",
- "ja-JP": "タグ",
- "de-DE": "Tag",
- "fr-FR": "Étiquette",
- es: "Etiqueta",
- id: "Tag",
- "it-IT": "Tag",
- ko: "태그",
- "pt-PT": "Etiqueta",
- "ru-RU": "Метка",
- th: "แท็ก"
- },
- priorityMarkers: {
- "zh-CN": "优先级",
- "en-US": "Priority",
- "zh-HK": "優先等級",
- "zh-TW": "優先等級",
- "ja-JP": "優先度",
- "de-DE": "Priorität",
- "fr-FR": "Priorité",
- es: "Prioridad",
- id: "Prioritas",
- "it-IT": "Priorità",
- ko: "우선순위",
- "pt-PT": "Prioridade",
- "ru-RU": "Приоритет",
- th: "ลำดับความสำคัญ"
- },
- smileyMarkers: {
- "zh-CN": "情绪",
- "en-US": "Mood",
- "zh-HK": "表情",
- "zh-TW": "表情",
- "ja-JP": "情緒",
- "de-DE": "Emotion",
- "fr-FR": "Smiley",
- es: "Smiley",
- id: "Smiley",
- "it-IT": "Emoticon",
- ko: "웃는 얼굴",
- "pt-PT": "Sorriso",
- "ru-RU": "Смайлик",
- th: "หน้ายิ้ม"
- },
- taskMarkers: {
- "zh-CN": "任务",
- "en-US": "Task",
- "zh-HK": "任務",
- "zh-TW": "任務",
- "ja-JP": "タスク",
- "de-DE": "Aufgabe",
- "fr-FR": "Tâche",
- es: "Tarea",
- id: "Tugas",
- "it-IT": "Compito",
- ko: "작업",
- "pt-PT": "Tarefa",
- "ru-RU": "Задача",
- th: "งาน"
- },
- flagMarkers: {
- "zh-CN": "旗帜",
- "en-US": "Flag",
- "zh-HK": "旗幟",
- "zh-TW": "旗幟",
- "ja-JP": "フラグ",
- "de-DE": "Flagge",
- "fr-FR": "Drapeau",
- es: "Bandera",
- id: "Bendera",
- "it-IT": "Bandiera",
- ko: "깃발",
- "pt-PT": "Bandeira",
- "ru-RU": "Флаг",
- th: "ธง"
- },
- starMarkers: {
- "zh-CN": "星星",
- "en-US": "Star",
- "zh-HK": "星星",
- "zh-TW": "星星",
- "ja-JP": "スター",
- "de-DE": "Stern",
- "fr-FR": "Étoile",
- es: "Estrella",
- id: "Bintang",
- "it-IT": "Stella",
- ko: "별",
- "pt-PT": "Estrela",
- "ru-RU": "Звезда",
- th: "ดาว"
- },
- peopleMarkers: {
- "zh-CN": "人像",
- "en-US": "People",
- "zh-HK": "人像",
- "zh-TW": "人像",
- "ja-JP": "人物",
- "de-DE": "Menschen",
- "fr-FR": "Personnes",
- es: "Personas",
- id: "Orang",
- "it-IT": "Persone",
- ko: "사람",
- "pt-PT": "Pessoas",
- "ru-RU": "Люди",
- th: "ผู้คน"
- },
- arrowMarkers: {
- "zh-CN": "箭头",
- "en-US": "Arrow",
- "zh-HK": "箭頭",
- "zh-TW": "箭頭",
- "ja-JP": "矢印",
- "de-DE": "Pfeil",
- "fr-FR": "Flèche",
- es: "Flecha",
- id: "Panah",
- "it-IT": "Freccia",
- ko: "화살표",
- "pt-PT": "Seta",
- "ru-RU": "Стрелка",
- th: "ลูกศร"
- },
- academicMarkers: {
- "zh-CN": "学术",
- "en-US": "Academic",
- "zh-HK": "學院",
- "zh-TW": "學院",
- "ja-JP": "アカデミック",
- "de-DE": "Akademisch",
- "fr-FR": "Académique",
- es: "Académico",
- id: "Akademik",
- "it-IT": "Accademico",
- ko: "학술",
- "pt-PT": "Académico",
- "ru-RU": "Академический",
- th: "วิชาการ"
- },
- socialMarkers: {
- "zh-CN": "社交",
- "en-US": "Social",
- "zh-HK": "社交",
- "zh-TW": "社交",
- "ja-JP": "ソーシャル",
- "de-DE": "Sozial",
- "fr-FR": "Social",
- es: "Social",
- id: "Sosial",
- "it-IT": "Social",
- ko: "사회",
- "pt-PT": "Social",
- "ru-RU": "Социальный",
- th: "สังคม"
- },
- celebrationMarkers: {
- "zh-CN": "Celebration",
- "en-US": "Celebration",
- "zh-HK": "Celebration",
- "zh-TW": "Celebration",
- "ja-JP": "Celebration",
- "de-DE": "Celebration",
- "fr-FR": "Celebration",
- es: "Celebration",
- id: "Celebration",
- "it-IT": "Celebration",
- ko: "Celebration",
- "pt-PT": "Celebration",
- "ru-RU": "Celebration",
- th: "Celebration"
- },
- symbolMarkers: {
- "zh-CN": "符号",
- "en-US": "Symbol",
- "zh-HK": "符號",
- "zh-TW": "符號",
- "ja-JP": "シンボル",
- "de-DE": "Symbol",
- "fr-FR": "Symbole",
- es: "Símbolo",
- id: "Simbol",
- "it-IT": "Simbolo",
- ko: "기호",
- "pt-PT": "Símbolo",
- "ru-RU": "Символ",
- th: "สัญลักษณ์"
- },
- monthMarkers: {
- "zh-CN": "月份",
- "en-US": "Month",
- "zh-HK": "月份",
- "zh-TW": "月份",
- "ja-JP": "月",
- "de-DE": "Monat",
- "fr-FR": "Mois",
- es: "Mes",
- id: "Bulan",
- "it-IT": "Mese",
- ko: "개월",
- "pt-PT": "Mês",
- "ru-RU": "Месяц",
- th: "เดือน"
- },
- weekMarkers: {
- "zh-CN": "星期",
- "en-US": "Week",
- "zh-HK": "星期",
- "zh-TW": "星期",
- "ja-JP": "週",
- "de-DE": "Woche",
- "fr-FR": "Semaine",
- es: "Semana",
- id: "Minggu",
- "it-IT": "Settimana",
- ko: "주",
- "pt-PT": "Semana",
- "ru-RU": "Неделя",
- th: "สัปดาห์"
- },
- halfStarMarkers: {
- "zh-CN": "半星",
- "en-US": "HalfStar",
- "zh-HK": "半星",
- "zh-TW": "半星",
- "ja-JP": "ハーフスター",
- "de-DE": "Halber Stern",
- "fr-FR": "Demi-étoile",
- es: "HalfStar",
- id: "Bintang Setengah",
- "it-IT": "HalfStar",
- ko: "반별",
- "pt-PT": "Meia Estrela",
- "ru-RU": "Ползвезды",
- th: "ครึ่งดาว"
- },
- otherMarkers: {
- "zh-CN": "其他",
- "en-US": "Other",
- "zh-HK": "其他",
- "zh-TW": "其他",
- "ja-JP": "その他",
- "de-DE": "Andere",
- "fr-FR": "Autre",
- es: "Otros",
- id: "Lainnya",
- "it-IT": "Altro",
- ko: "기타",
- "pt-PT": "Outro",
- "ru-RU": "Прочее",
- th: "อื่น ๆ"
- }
- }
- , h = {
- "tag-red": {
- "en-US": "Red Tag"
- },
- "tag-orange": {
- "en-US": "Orange Tag"
- },
- "tag-dark-blue": {
- "en-US": "Dark Blue Tag"
- },
- "tag-dark-purple": {
- "en-US": "Dark Purple Tag"
- },
- "tag-green": {
- "en-US": "Green Tag"
- },
- "tag-blue": {
- "en-US": "Blue Tag"
- },
- "tag-grey": {
- "en-US": "Grey Tag"
- },
- "tag-yellow": {
- "en-US": "Yellow Tag"
- },
- "tag-purple": {
- "en-US": "Purple Tag"
- },
- "priority-1": {
- "en-US": "Priority 1"
- },
- "priority-2": {
- "en-US": "Priority 2"
- },
- "priority-3": {
- "en-US": "Priority 3"
- },
- "priority-4": {
- "en-US": "Priority 4"
- },
- "priority-5": {
- "en-US": "Priority 5"
- },
- "priority-6": {
- "en-US": "Priority 6"
- },
- "priority-7": {
- "en-US": "Priority 7"
- },
- "priority-8": {
- "en-US": "Priority 8"
- },
- "priority-9": {
- "en-US": "Priority 9"
- },
- "smiley-laugh": {
- "en-US": "Laugh"
- },
- "smiley-smile": {
- "en-US": "Smile"
- },
- "smiley-cry": {
- "en-US": "Cry"
- },
- "smiley-surprise": {
- "en-US": "Surprise"
- },
- "smiley-boring": {
- "en-US": "Boring"
- },
- "smiley-angry": {
- "en-US": "Angry"
- },
- "smiley-embarrass": {
- "en-US": "Embarrass"
- },
- "smiley-think": {
- "en-US": "Think"
- },
- "smiley-love": {
- "en-US": "Love"
- },
- "smiley-sad": {
- "en-US": "Sad"
- },
- "smiley-cry-laugh": {
- "en-US": "Cry Laugh"
- },
- "smiley-adore": {
- "en-US": "Adore"
- },
- "smiley-devil": {
- "en-US": "Devil"
- },
- "smiley-upset": {
- "en-US": "Upset"
- },
- "task-start": {
- "en-US": "Task Starting"
- },
- "task-oct": {
- "en-US": "1/8 Done"
- },
- "task-quarter": {
- "en-US": "1/4 Done"
- },
- "task-3oct": {
- "en-US": "3/8 Done"
- },
- "task-half": {
- "en-US": "1/2 Done"
- },
- "task-5oct": {
- "en-US": "5/8 Done"
- },
- "task-3quar": {
- "en-US": "3/4 Done"
- },
- "task-7oct": {
- "en-US": "7/8 Done"
- },
- "task-done": {
- "en-US": "Task Done"
- },
- "task-pause": {
- "en-US": "Task Paused"
- },
- "flag-red": {
- "en-US": "Red Flag"
- },
- "flag-orange": {
- "en-US": "Orange Flag"
- },
- "flag-yellow": {
- "en-US": "Yellow Flag"
- },
- "flag-dark-blue": {
- "en-US": "Dark Blue Flag"
- },
- "flag-purple": {
- "en-US": "Purple Flag"
- },
- "flag-green": {
- "en-US": "Green Flag"
- },
- "flag-blue": {
- "en-US": "Blue Flag"
- },
- "flag-gray": {
- "en-US": "Gray Flag"
- },
- "flag-dark-green": {
- "en-US": "Dark Green Flag"
- },
- "flag-dark-gray": {
- "en-US": "Dark Gray Flag"
- },
- "star-red": {
- "en-US": "Red Star"
- },
- "star-orange": {
- "en-US": "Orange Star"
- },
- "star-dark-blue": {
- "en-US": "Dark Blue Star"
- },
- "star-purple": {
- "en-US": "Purple Star"
- },
- "star-green": {
- "en-US": "Green Star"
- },
- "star-blue": {
- "en-US": "Blue Star"
- },
- "star-gray": {
- "en-US": "Gray Star"
- },
- "star-yellow": {
- "en-US": "Yellow Star"
- },
- "star-dark-green": {
- "en-US": "Dark Green Star"
- },
- "star-dark-gray": {
- "en-US": "Dark Gray Star"
- },
- "people-red": {
- "en-US": "Red Avatar"
- },
- "people-orange": {
- "en-US": "Orange Avatar"
- },
- "people-yellow": {
- "en-US": "Yellow Avatar"
- },
- "people-dark-blue": {
- "en-US": "Dark Blue Avatar"
- },
- "people-purple": {
- "en-US": "Purple Avatar"
- },
- "people-green": {
- "en-US": "Green Avatar"
- },
- "people-blue": {
- "en-US": "Blue Avatar"
- },
- "people-gray": {
- "en-US": "Gray Avatar"
- },
- "people-dark-green": {
- "en-US": "Dark Green Avatar"
- },
- "people-dark-gray": {
- "en-US": "Dark Gray Avatar"
- },
- "arrow-left": {
- "en-US": "Left"
- },
- "arrow-right": {
- "en-US": "Right"
- },
- "arrow-up": {
- "en-US": "Up"
- },
- "arrow-down": {
- "en-US": "Down"
- },
- "arrow-left-right": {
- "en-US": "Left and Right"
- },
- "arrow-up-down": {
- "en-US": "Up and Down"
- },
- "arrow-refresh": {
- "en-US": "Refresh"
- },
- "arrow-up-right": {
- "en-US": "Up and Right"
- },
- "arrow-down-right": {
- "en-US": "Down and Right"
- },
- "arrow-down-left": {
- "en-US": "Down and Left"
- },
- "arrow-up-left": {
- "en-US": "Up and Left"
- },
- c_symbol_quote: {
- "en-US": "Quote"
- },
- c_symbol_apostrophe: {
- "en-US": "Apostrophe"
- },
- "symbol-question": {
- "en-US": "Question"
- },
- "symbol-attention": {
- "en-US": "Attention"
- },
- "symbol-pause": {
- "en-US": "Pause"
- },
- "symbol-wrong": {
- "en-US": "Wrong"
- },
- "symbol-about": {
- "en-US": "About"
- },
- "symbol-plus": {
- "en-US": "Plus"
- },
- "symbol-minus": {
- "en-US": "Minus"
- },
- "symbol-divide": {
- "en-US": "Divide"
- },
- "symbol-equality": {
- "en-US": "Equality"
- },
- "symbol-right": {
- "en-US": "Check"
- },
- "symbol-code": {
- "en-US": "Code"
- },
- "symbol-not-equality": {
- "en-US": "Not Equality"
- },
- c_symbol_broken_heart: {
- "en-US": "Broken Heart"
- },
- c_symbol_heart: {
- "en-US": "Heart"
- },
- c_symbol_like: {
- "en-US": "Like"
- },
- c_symbol_dislike: {
- "en-US": "Dislike"
- },
- c_symbol_contact: {
- "en-US": "Contact"
- },
- "symbol-no-entry": {
- "en-US": "No Entry"
- },
- "symbol-notice": {
- "en-US": "Notice"
- },
- "symbol-rss": {
- "en-US": "RSS"
- },
- symbol_forward: {
- "en-US": "Forward"
- },
- "symbol-share": {
- "en-US": "Share"
- },
- "symbol-comment": {
- "en-US": "Comment"
- },
- "symbol-heart": {
- "en-US": "Heart"
- },
- "symbol-like": {
- "en-US": "Like"
- },
- "symbol-dislike": {
- "en-US": "Dislike"
- },
- "symbol-idea": {
- "en-US": "Idea"
- },
- "symbol-lightning": {
- "en-US": "Lightning"
- },
- "symbol-100": {
- "en-US": "100"
- },
- "symbol-airplane": {
- "en-US": "Airplane"
- },
- "symbol-exclamation": {
- "en-US": "Exclamation"
- },
- "symbol-hourglass": {
- "en-US": "Hourglass"
- },
- "symbol-music": {
- "en-US": "Music"
- },
- "symbol-pen": {
- "en-US": "Pen"
- },
- "symbol-run": {
- "en-US": "Run"
- },
- "symbol-telephone": {
- "en-US": "Telephone"
- },
- "celebration-ribbon": {
- "en-US": "Ribbon"
- },
- "celebration-clap": {
- "en-US": "Clap"
- },
- "celebration-100": {
- "en-US": "100"
- },
- "celebration-birthday": {
- "en-US": "Birthday"
- },
- "celebration-king": {
- "en-US": "Crown"
- },
- "celebration-cheers": {
- "en-US": "Cheers"
- },
- "celebration-boom": {
- "en-US": "Boom"
- },
- "celebration-kiss": {
- "en-US": "Kiss"
- },
- "celebration-five": {
- "en-US": "Give Me Five"
- },
- "symbol-exclam": {
- "en-US": "symbolExclam"
- },
- "symbol-info": {
- "en-US": "symbolInfo"
- },
- "c_simbol-plus": {
- "en-US": "Plus"
- },
- "c_simbol-minus": {
- "en-US": "Minus"
- },
- "c_simbol-question": {
- "en-US": "Question"
- },
- "c_simbol-exclam": {
- "en-US": "symbolExclam"
- },
- "c_simbol-info": {
- "en-US": "symbolInfo"
- },
- "c_simbol-wrong": {
- "en-US": "Wrong"
- },
- "c_simbol-right": {
- "en-US": "Check"
- },
- "c_simbol-pause": {
- "en-US": "Pause"
- },
- c_symbol_drink: {
- "en-US": "symbolDrink"
- },
- c_symbol_line_graph: {
- "en-US": "symbolLineGraph"
- },
- c_symbol_medals: {
- "en-US": "symbolMedals"
- },
- c_symbol_thermometer: {
- "en-US": "symbolThermometer"
- },
- c_symbol_telephone: {
- "en-US": "Telephone"
- },
- c_symbol_pen: {
- "en-US": "Pen"
- },
- c_symbol_money: {
- "en-US": "Money"
- },
- c_symbol_bar_chart: {
- "en-US": "Bar Chart"
- },
- c_symbol_pie_chart: {
- "en-US": "Pie Chart"
- },
- c_symbol_shopping_cart: {
- "en-US": "Shopping Cart"
- },
- c_symbol_exercise: {
- "en-US": "Exercise"
- },
- c_symbol_hourglass: {
- "en-US": "Hourglass"
- },
- c_symbol_flight: {
- "en-US": "Flight"
- },
- c_symbol_music: {
- "en-US": "Music"
- },
- "symbol-entertainment": {
- "en-US": "Entertainment"
- },
- c_symbol_trophy: {
- "en-US": "Trophy"
- },
- "symbol-pin": {
- "en-US": "Pin"
- },
- "symbol-unlock": {
- "en-US": "Unlock"
- },
- c_symbol_lock: {
- "en-US": "Lock"
- },
- "symbol-diamond": {
- "en-US": "Diamond"
- },
- "month-jan": {
- "en-US": "January"
- },
- "month-feb": {
- "en-US": "February"
- },
- "month-mar": {
- "en-US": "March"
- },
- "month-apr": {
- "en-US": "April"
- },
- "month-may": {
- "en-US": "May"
- },
- "month-jun": {
- "en-US": "June"
- },
- "month-jul": {
- "en-US": "July"
- },
- "month-aug": {
- "en-US": "August"
- },
- "month-sep": {
- "en-US": "September"
- },
- "month-oct": {
- "en-US": "October"
- },
- "month-nov": {
- "en-US": "November"
- },
- "month-dec": {
- "en-US": "December"
- },
- "week-sun": {
- "en-US": "Sunday"
- },
- "week-mon": {
- "en-US": "Monday"
- },
- "week-tue": {
- "en-US": "Tuesday"
- },
- "week-wed": {
- "en-US": "Wednesday"
- },
- "week-thu": {
- "en-US": "Thursday"
- },
- "week-fri": {
- "en-US": "Friday"
- },
- "week-sat": {
- "en-US": "Saturday"
- },
- "half-star-green": {
- "en-US": "Green"
- },
- "half-star-red": {
- "en-US": "Red"
- },
- "half-star-yellow": {
- "en-US": "Yellow"
- },
- "half-star-purple": {
- "en-US": "Purple"
- },
- "half-star-blue": {
- "en-US": "Blue"
- },
- "half-star-gray": {
- "en-US": "Gray"
- },
- "other-calendar": {
- "en-US": "Calendar"
- },
- "other-email": {
- "en-US": "Email"
- },
- "other-phone": {
- "en-US": "Phone"
- },
- "other-phone2": {
- "en-US": "Phone"
- },
- "other-fax": {
- "en-US": "Fax"
- },
- "other-people": {
- "en-US": "People"
- },
- "other-people2": {
- "en-US": "People"
- },
- "other-clock": {
- "en-US": "Clock"
- },
- "other-coffee-cup": {
- "en-US": "Coffee Cup"
- },
- "other-question": {
- "en-US": "Question"
- },
- "other-exclam": {
- "en-US": "Exclamation Mark"
- },
- "other-lightbulb": {
- "en-US": "Light Bulb"
- },
- "other-businesscard": {
- "en-US": "Business Card"
- },
- "other-social": {
- "en-US": "Social"
- },
- "other-chat": {
- "en-US": "Chat"
- },
- "other-note": {
- "en-US": "Note"
- },
- "other-lock": {
- "en-US": "Lock"
- },
- "other-unlock": {
- "en-US": "Unlock"
- },
- "other-yes": {
- "en-US": "Yes"
- },
- "other-no": {
- "en-US": "No"
- },
- "other-bomb": {
- "en-US": "Bomb"
- },
- "symbol-image": {
- "en-US": "symbolImage"
- }
- }
- , p = u.map(e=>l[e].markers).reduce((e,t)=>e.concat(t), []);
- let g = {};
- function m(e, t) {
- var n;
- const {lang: r} = d(t)
- , i = p.find(t=>t.markerId === e);
- return i ? Object.assign(Object.assign({}, i), {
- name: i.isUserMarker ? null !== (n = i.name) && void 0 !== n ? n : "" : h[e][r]
- }) : null
- }
- function v(e, t) {
- var n;
- t = d(t);
- const r = Object.assign(Object.assign({}, g), l)[e];
- return r ? Object.assign(Object.assign({}, r), {
- name: r.isUserMarker ? null !== (n = r.name) && void 0 !== n ? n : "" : f[e][t.lang],
- markers: r.markers.map(e=>m(e.markerId, t))
- }) : null
- }
- function y(e) {
- return e = d(e),
- u.map(e=>l[e]).filter(e=>!e.hidden).map(t=>{
- var n;
- return Object.assign(Object.assign({}, t), {
- name: null !== (n = f[t.id][e.lang]) && void 0 !== n ? n : f[t.id][c.EN_US],
- markers: t.markers.filter(e=>!e.hidden).map(t=>m(t.markerId, e))
- })
- }
- )
- }
- function b(e, t) {
- const n = e=>{
- for (const n in t) {
- const {markers: r} = t[n];
- if (Array.isArray(r) && r.includes(e))
- return n
- }
- }
- ;
- for (const r in e) {
- const {name: i, resource: o} = e[r];
- p.push({
- markerId: r,
- groupId: t ? n(r) : void 0,
- name: i,
- resource: o,
- hidden: !1,
- isUserMarker: !0
- })
- }
- if (t)
- for (const e in t) {
- const {name: n, markers: r} = t[e];
- g = Object.assign(Object.assign({}, g), {
- [e]: {
- id: e,
- name: n,
- markers: r.map(e=>m(e)).filter(Boolean),
- hidden: !1,
- isUserMarker: !0
- }
- })
- }
- }
- function _(e, t) {
- if (e === t)
- return !1;
- const n = m(e)
- , r = m(t);
- return !(!n || !r) && n.groupId === r.groupId
- }
- function w(e) {
- return p.findIndex(t=>t.markerId === e)
- }
- n(230);
- n(231);
- class S {
- constructor() {
- this._dataSet = new Map
- }
- put(e, t) {
- this._dataSet.set(e, t)
- }
- get(e) {
- var t;
- return null !== (t = this._dataSet.get(e)) && void 0 !== t ? t : null
- }
- }
- function x(e) {
- if (!e || !e.extensions)
- return {};
- let t;
- if ("function" == typeof e.extensions) {
- const n = e.extensions();
- n && n.getExtension && (t = n.getExtension("org.xmind.ui.pitchMode"))
- } else
- e.extensions && (t = e.extensions.find(e=>"org.xmind.ui.pitchMode" === e.provider));
- return t && t.content && t.content.length && t.content[0] || {}
- }
- function k(e) {
- return (e.summaries || []).map(e=>{
- if (!e.topicId || !e.range)
- return null;
- const [t,n,r] = e.range.match(/\((\d+),(\d+)\)/) || []
- , i = parseInt(n, 10)
- , o = parseInt(r, 10);
- return isNaN(i) || isNaN(o) ? null : {
- topicId: e.topicId,
- startIndex: i,
- endIndex: o
- }
- }
- ).filter(e=>!!e)
- }
- function I(e, t) {
- return 0 === e.length ? [] : e.sort((e,t)=>r.indexOf(e) - r.indexOf(t)).map(e=>{
- var n;
- return {
- markerId: e,
- imageSource: r.getMarkerInfoById(e) ? t + (null === (n = r.getMarkerInfoById(e)) || void 0 === n ? void 0 : n.resource) : ""
- }
- }
- ).filter(e=>!!e.imageSource)
- }
- function C(e, t) {
- if (!e)
- return {
- id: "",
- title: ""
- };
- const n = function(e) {
- let t = null
- , n = null
- , r = null
- , i = null
- , o = null;
- const a = x(e);
- return void 0 !== a.topicSlide && (t = a.topicSlide ? "show" : "skip"),
- void 0 !== a.listSlideDisabled && (n = !0 === a.listSlideDisabled ? "skip" : "show"),
- void 0 !== a.listSlideLayout && (r = a.listSlideLayout),
- void 0 !== a.topicImageAlignment && (i = a.topicImageAlignment),
- void 0 !== a.summarySlideDisabled && (o = !0 === a.summarySlideDisabled ? "skip" : "show"),
- {
- id: e ? e.id : "",
- title: "",
- labels: void 0,
- note: void 0,
- topicSlide: t,
- topicSlideAlignment: null,
- topicSlideImagePlacement: i,
- listSlides: n,
- listSlideLayout: r,
- summarySlide: o
- }
- }(e)
- , r = e.notes && e.notes.plain ? e.notes.plain.content : void 0;
- return Object.assign({}, n, {
- title: e.title || "",
- labels: e.labels ? e.labels.slice(0) : void 0,
- note: r ? {
- plainText: r
- } : null,
- image: e.imageAttributes,
- calloutTopicId: e.children && e.children.callout && e.children.callout.length > 0 ? e.children.callout[0].id : null,
- markers: I((e.markers || []).map(e=>e.markerId), t),
- summaries: k(e)
- })
- }
- function M(e, t, n) {
- const r = e && e.image && e.image.src;
- if (!r || !r.startsWith("xap:"))
- return;
- const i = t.get(r.slice("xap:".length));
- if (!i)
- return;
- const o = btoa(new Uint8Array(i).reduce((e,t)=>e + String.fromCharCode(t), ""));
- var a;
- const s = `data:image/${(a = r).endsWith(".svg") ? "svg+xml" : a.endsWith(".png") ? "png" : a.endsWith(".gif") ? "gif" : "jpg"};base64,${o}`;
- let l;
- return l = e.image.width && e.image.height ? {
- width: e.image.width,
- height: e.image.height
- } : n.workbook.getters.getTopicImageSize(e.id),
- l = l || {
- width: 0,
- height: 0
- },
- {
- source: s,
- size: l
- }
- }
- function T(e, t) {
- return Object(o.a)(this, void 0, void 0, (function*() {
- if (!e)
- return;
- const n = yield(new s.a).loadAsync(e);
- if (t)
- for (const [e,r] of Object.entries(n.files))
- if (e.startsWith("resources/") && !r.dir) {
- const n = yield r.async("arraybuffer");
- t.put(e, n)
- }
- }
- ))
- }
- },
- 84: function(e, t, n) {
- "use strict";
- n.d(t, "b", (function() {
- return i
- }
- )),
- n.d(t, "a", (function() {
- return o
- }
- ));
- var r = n(175);
- let i;
- try {
- i = JSON.parse(Object(r.a)(window.metadataString || "") || "{}")
- } catch (e) {
- i = {
- name: "",
- userName: "",
- updatedTime: "",
- createdTime: "",
- profileName: "",
- isDownloadable: !1
- }
- }
- const o = window.manifests
- },
- 90: function(e, t, n) {
- (function(t) {
- e.exports = function e(t, n, r) {
- function i(a, s) {
- if (!n[a]) {
- if (!t[a]) {
- if (o)
- return o(a, !0);
- var l = new Error("Cannot find module '" + a + "'");
- throw l.code = "MODULE_NOT_FOUND",
- l
- }
- var u = n[a] = {
- exports: {}
- };
- t[a][0].call(u.exports, (function(e) {
- var n = t[a][1][e];
- return i(n || e)
- }
- ), u, u.exports, e, t, n, r)
- }
- return n[a].exports
- }
- for (var o = !1, a = 0; a < r.length; a++)
- i(r[a]);
- return i
- }({
- 1: [function(e, n, r) {
- (function(e) {
- "use strict";
- var t, r, i = e.MutationObserver || e.WebKitMutationObserver;
- if (i) {
- var o = 0
- , a = new i(c)
- , s = e.document.createTextNode("");
- a.observe(s, {
- characterData: !0
- }),
- t = function() {
- s.data = o = ++o % 2
- }
- } else if (e.setImmediate || void 0 === e.MessageChannel)
- t = "document"in e && "onreadystatechange"in e.document.createElement("script") ? function() {
- var t = e.document.createElement("script");
- t.onreadystatechange = function() {
- c(),
- t.onreadystatechange = null,
- t.parentNode.removeChild(t),
- t = null
- }
- ,
- e.document.documentElement.appendChild(t)
- }
- : function() {
- setTimeout(c, 0)
- }
- ;
- else {
- var l = new e.MessageChannel;
- l.port1.onmessage = c,
- t = function() {
- l.port2.postMessage(0)
- }
- }
- var u = [];
- function c() {
- var e, t;
- r = !0;
- for (var n = u.length; n; ) {
- for (t = u,
- u = [],
- e = -1; ++e < n; )
- t[e]();
- n = u.length
- }
- r = !1
- }
- n.exports = function(e) {
- 1 !== u.push(e) || r || t()
- }
- }
- ).call(this, void 0 !== t ? t : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
- }
- , {}],
- 2: [function(e, t, n) {
- "use strict";
- var r = e(1);
- function i() {}
- var o = {}
- , a = ["REJECTED"]
- , s = ["FULFILLED"]
- , l = ["PENDING"];
- function u(e) {
- if ("function" != typeof e)
- throw new TypeError("resolver must be a function");
- this.state = l,
- this.queue = [],
- this.outcome = void 0,
- e !== i && h(this, e)
- }
- function c(e, t, n) {
- this.promise = e,
- "function" == typeof t && (this.onFulfilled = t,
- this.callFulfilled = this.otherCallFulfilled),
- "function" == typeof n && (this.onRejected = n,
- this.callRejected = this.otherCallRejected)
- }
- function d(e, t, n) {
- r((function() {
- var r;
- try {
- r = t(n)
- } catch (t) {
- return o.reject(e, t)
- }
- r === e ? o.reject(e, new TypeError("Cannot resolve promise with itself")) : o.resolve(e, r)
- }
- ))
- }
- function f(e) {
- var t = e && e.then;
- if (e && ("object" == typeof e || "function" == typeof e) && "function" == typeof t)
- return function() {
- t.apply(e, arguments)
- }
- }
- function h(e, t) {
- var n = !1;
- function r(t) {
- n || (n = !0,
- o.reject(e, t))
- }
- function i(t) {
- n || (n = !0,
- o.resolve(e, t))
- }
- var a = p((function() {
- t(i, r)
- }
- ));
- "error" === a.status && r(a.value)
- }
- function p(e, t) {
- var n = {};
- try {
- n.value = e(t),
- n.status = "success"
- } catch (e) {
- n.status = "error",
- n.value = e
- }
- return n
- }
- t.exports = u,
- u.prototype.catch = function(e) {
- return this.then(null, e)
- }
- ,
- u.prototype.then = function(e, t) {
- if ("function" != typeof e && this.state === s || "function" != typeof t && this.state === a)
- return this;
- var n = new this.constructor(i);
- return this.state !== l ? d(n, this.state === s ? e : t, this.outcome) : this.queue.push(new c(n,e,t)),
- n
- }
- ,
- c.prototype.callFulfilled = function(e) {
- o.resolve(this.promise, e)
- }
- ,
- c.prototype.otherCallFulfilled = function(e) {
- d(this.promise, this.onFulfilled, e)
- }
- ,
- c.prototype.callRejected = function(e) {
- o.reject(this.promise, e)
- }
- ,
- c.prototype.otherCallRejected = function(e) {
- d(this.promise, this.onRejected, e)
- }
- ,
- o.resolve = function(e, t) {
- var n = p(f, t);
- if ("error" === n.status)
- return o.reject(e, n.value);
- var r = n.value;
- if (r)
- h(e, r);
- else {
- e.state = s,
- e.outcome = t;
- for (var i = -1, a = e.queue.length; ++i < a; )
- e.queue[i].callFulfilled(t)
- }
- return e
- }
- ,
- o.reject = function(e, t) {
- e.state = a,
- e.outcome = t;
- for (var n = -1, r = e.queue.length; ++n < r; )
- e.queue[n].callRejected(t);
- return e
- }
- ,
- u.resolve = function(e) {
- return e instanceof this ? e : o.resolve(new this(i), e)
- }
- ,
- u.reject = function(e) {
- var t = new this(i);
- return o.reject(t, e)
- }
- ,
- u.all = function(e) {
- var t = this;
- if ("[object Array]" !== Object.prototype.toString.call(e))
- return this.reject(new TypeError("must be an array"));
- var n = e.length
- , r = !1;
- if (!n)
- return this.resolve([]);
- for (var a = new Array(n), s = 0, l = -1, u = new this(i); ++l < n; )
- c(e[l], l);
- return u;
- function c(e, i) {
- t.resolve(e).then((function(e) {
- a[i] = e,
- ++s !== n || r || (r = !0,
- o.resolve(u, a))
- }
- ), (function(e) {
- r || (r = !0,
- o.reject(u, e))
- }
- ))
- }
- }
- ,
- u.race = function(e) {
- var t = this;
- if ("[object Array]" !== Object.prototype.toString.call(e))
- return this.reject(new TypeError("must be an array"));
- var n = e.length
- , r = !1;
- if (!n)
- return this.resolve([]);
- for (var a, s = -1, l = new this(i); ++s < n; )
- a = e[s],
- t.resolve(a).then((function(e) {
- r || (r = !0,
- o.resolve(l, e))
- }
- ), (function(e) {
- r || (r = !0,
- o.reject(l, e))
- }
- ));
- return l
- }
- }
- , {
- 1: 1
- }],
- 3: [function(e, n, r) {
- (function(t) {
- "use strict";
- "function" != typeof t.Promise && (t.Promise = e(2))
- }
- ).call(this, void 0 !== t ? t : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
- }
- , {
- 2: 2
- }],
- 4: [function(e, t, n) {
- "use strict";
- var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
- return typeof e
- }
- : function(e) {
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
- }
- , i = function() {
- try {
- if ("undefined" != typeof indexedDB)
- return indexedDB;
- if ("undefined" != typeof webkitIndexedDB)
- return webkitIndexedDB;
- if ("undefined" != typeof mozIndexedDB)
- return mozIndexedDB;
- if ("undefined" != typeof OIndexedDB)
- return OIndexedDB;
- if ("undefined" != typeof msIndexedDB)
- return msIndexedDB
- } catch (e) {
- return
- }
- }();
- function o(e, t) {
- e = e || [],
- t = t || {};
- try {
- return new Blob(e,t)
- } catch (i) {
- if ("TypeError" !== i.name)
- throw i;
- for (var n = new ("undefined" != typeof BlobBuilder ? BlobBuilder : "undefined" != typeof MSBlobBuilder ? MSBlobBuilder : "undefined" != typeof MozBlobBuilder ? MozBlobBuilder : WebKitBlobBuilder), r = 0; r < e.length; r += 1)
- n.append(e[r]);
- return n.getBlob(t.type)
- }
- }
- "undefined" == typeof Promise && e(3);
- var a = Promise;
- function s(e, t) {
- t && e.then((function(e) {
- t(null, e)
- }
- ), (function(e) {
- t(e)
- }
- ))
- }
- function l(e, t, n) {
- "function" == typeof t && e.then(t),
- "function" == typeof n && e.catch(n)
- }
- function u(e) {
- return "string" != typeof e && (console.warn(e + " used as a key, but it is not a string."),
- e = String(e)),
- e
- }
- function c() {
- if (arguments.length && "function" == typeof arguments[arguments.length - 1])
- return arguments[arguments.length - 1]
- }
- var d = void 0
- , f = {}
- , h = Object.prototype.toString;
- function p(e) {
- return "boolean" == typeof d ? a.resolve(d) : function(e) {
- return new a((function(t) {
- var n = e.transaction("local-forage-detect-blob-support", "readwrite")
- , r = o([""]);
- n.objectStore("local-forage-detect-blob-support").put(r, "key"),
- n.onabort = function(e) {
- e.preventDefault(),
- e.stopPropagation(),
- t(!1)
- }
- ,
- n.oncomplete = function() {
- var e = navigator.userAgent.match(/Chrome\/(\d+)/)
- , n = navigator.userAgent.match(/Edge\//);
- t(n || !e || parseInt(e[1], 10) >= 43)
- }
- }
- )).catch((function() {
- return !1
- }
- ))
- }(e).then((function(e) {
- return d = e
- }
- ))
- }
- function g(e) {
- var t = f[e.name]
- , n = {};
- n.promise = new a((function(e, t) {
- n.resolve = e,
- n.reject = t
- }
- )),
- t.deferredOperations.push(n),
- t.dbReady ? t.dbReady = t.dbReady.then((function() {
- return n.promise
- }
- )) : t.dbReady = n.promise
- }
- function m(e) {
- var t = f[e.name].deferredOperations.pop();
- if (t)
- return t.resolve(),
- t.promise
- }
- function v(e, t) {
- var n = f[e.name].deferredOperations.pop();
- if (n)
- return n.reject(t),
- n.promise
- }
- function y(e, t) {
- return new a((function(n, r) {
- if (f[e.name] = f[e.name] || {
- forages: [],
- db: null,
- dbReady: null,
- deferredOperations: []
- },
- e.db) {
- if (!t)
- return n(e.db);
- g(e),
- e.db.close()
- }
- var o = [e.name];
- t && o.push(e.version);
- var a = i.open.apply(i, o);
- t && (a.onupgradeneeded = function(t) {
- var n = a.result;
- try {
- n.createObjectStore(e.storeName),
- t.oldVersion <= 1 && n.createObjectStore("local-forage-detect-blob-support")
- } catch (n) {
- if ("ConstraintError" !== n.name)
- throw n;
- console.warn('The database "' + e.name + '" has been upgraded from version ' + t.oldVersion + " to version " + t.newVersion + ', but the storage "' + e.storeName + '" already exists.')
- }
- }
- ),
- a.onerror = function(e) {
- e.preventDefault(),
- r(a.error)
- }
- ,
- a.onsuccess = function() {
- n(a.result),
- m(e)
- }
- }
- ))
- }
- function b(e) {
- return y(e, !1)
- }
- function _(e) {
- return y(e, !0)
- }
- function w(e, t) {
- if (!e.db)
- return !0;
- var n = !e.db.objectStoreNames.contains(e.storeName)
- , r = e.version < e.db.version
- , i = e.version > e.db.version;
- if (r && (e.version !== t && console.warn('The database "' + e.name + "\" can't be downgraded from version " + e.db.version + " to version " + e.version + "."),
- e.version = e.db.version),
- i || n) {
- if (n) {
- var o = e.db.version + 1;
- o > e.version && (e.version = o)
- }
- return !0
- }
- return !1
- }
- function S(e) {
- return o([function(e) {
- for (var t = e.length, n = new ArrayBuffer(t), r = new Uint8Array(n), i = 0; i < t; i++)
- r[i] = e.charCodeAt(i);
- return n
- }(atob(e.data))], {
- type: e.type
- })
- }
- function x(e) {
- return e && e.__local_forage_encoded_blob
- }
- function k(e) {
- var t = this
- , n = t._initReady().then((function() {
- var e = f[t._dbInfo.name];
- if (e && e.dbReady)
- return e.dbReady
- }
- ));
- return l(n, e, e),
- n
- }
- function I(e, t, n, r) {
- void 0 === r && (r = 1);
- try {
- var i = e.db.transaction(e.storeName, t);
- n(null, i)
- } catch (i) {
- if (r > 0 && (!e.db || "InvalidStateError" === i.name || "NotFoundError" === i.name))
- return a.resolve().then((function() {
- if (!e.db || "NotFoundError" === i.name && !e.db.objectStoreNames.contains(e.storeName) && e.version <= e.db.version)
- return e.db && (e.version = e.db.version + 1),
- _(e)
- }
- )).then((function() {
- return function(e) {
- g(e);
- for (var t = f[e.name], n = t.forages, r = 0; r < n.length; r++) {
- var i = n[r];
- i._dbInfo.db && (i._dbInfo.db.close(),
- i._dbInfo.db = null)
- }
- return e.db = null,
- b(e).then((function(t) {
- return e.db = t,
- w(e) ? _(e) : t
- }
- )).then((function(r) {
- e.db = t.db = r;
- for (var i = 0; i < n.length; i++)
- n[i]._dbInfo.db = r
- }
- )).catch((function(t) {
- throw v(e, t),
- t
- }
- ))
- }(e).then((function() {
- I(e, t, n, r - 1)
- }
- ))
- }
- )).catch(n);
- n(i)
- }
- }
- var C = {
- _driver: "asyncStorage",
- _initStorage: function(e) {
- var t = this
- , n = {
- db: null
- };
- if (e)
- for (var r in e)
- n[r] = e[r];
- var i = f[n.name];
- i || (i = {
- forages: [],
- db: null,
- dbReady: null,
- deferredOperations: []
- },
- f[n.name] = i),
- i.forages.push(t),
- t._initReady || (t._initReady = t.ready,
- t.ready = k);
- var o = [];
- function s() {
- return a.resolve()
- }
- for (var l = 0; l < i.forages.length; l++) {
- var u = i.forages[l];
- u !== t && o.push(u._initReady().catch(s))
- }
- var c = i.forages.slice(0);
- return a.all(o).then((function() {
- return n.db = i.db,
- b(n)
- }
- )).then((function(e) {
- return n.db = e,
- w(n, t._defaultConfig.version) ? _(n) : e
- }
- )).then((function(e) {
- n.db = i.db = e,
- t._dbInfo = n;
- for (var r = 0; r < c.length; r++) {
- var o = c[r];
- o !== t && (o._dbInfo.db = n.db,
- o._dbInfo.version = n.version)
- }
- }
- ))
- },
- _support: function() {
- try {
- if (!i || !i.open)
- return !1;
- var e = "undefined" != typeof openDatabase && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform)
- , t = "function" == typeof fetch && -1 !== fetch.toString().indexOf("[native code");
- return (!e || t) && "undefined" != typeof indexedDB && "undefined" != typeof IDBKeyRange
- } catch (e) {
- return !1
- }
- }(),
- iterate: function(e, t) {
- var n = this
- , r = new a((function(t, r) {
- n.ready().then((function() {
- I(n._dbInfo, "readonly", (function(i, o) {
- if (i)
- return r(i);
- try {
- var a = o.objectStore(n._dbInfo.storeName).openCursor()
- , s = 1;
- a.onsuccess = function() {
- var n = a.result;
- if (n) {
- var r = n.value;
- x(r) && (r = S(r));
- var i = e(r, n.key, s++);
- void 0 !== i ? t(i) : n.continue()
- } else
- t()
- }
- ,
- a.onerror = function() {
- r(a.error)
- }
- } catch (e) {
- r(e)
- }
- }
- ))
- }
- )).catch(r)
- }
- ));
- return s(r, t),
- r
- },
- getItem: function(e, t) {
- var n = this;
- e = u(e);
- var r = new a((function(t, r) {
- n.ready().then((function() {
- I(n._dbInfo, "readonly", (function(i, o) {
- if (i)
- return r(i);
- try {
- var a = o.objectStore(n._dbInfo.storeName).get(e);
- a.onsuccess = function() {
- var e = a.result;
- void 0 === e && (e = null),
- x(e) && (e = S(e)),
- t(e)
- }
- ,
- a.onerror = function() {
- r(a.error)
- }
- } catch (e) {
- r(e)
- }
- }
- ))
- }
- )).catch(r)
- }
- ));
- return s(r, t),
- r
- },
- setItem: function(e, t, n) {
- var r = this;
- e = u(e);
- var i = new a((function(n, i) {
- var o;
- r.ready().then((function() {
- return o = r._dbInfo,
- "[object Blob]" === h.call(t) ? p(o.db).then((function(e) {
- return e ? t : (n = t,
- new a((function(e, t) {
- var r = new FileReader;
- r.onerror = t,
- r.onloadend = function(t) {
- var r = btoa(t.target.result || "");
- e({
- __local_forage_encoded_blob: !0,
- data: r,
- type: n.type
- })
- }
- ,
- r.readAsBinaryString(n)
- }
- )));
- var n
- }
- )) : t
- }
- )).then((function(t) {
- I(r._dbInfo, "readwrite", (function(o, a) {
- if (o)
- return i(o);
- try {
- var s = a.objectStore(r._dbInfo.storeName);
- null === t && (t = void 0);
- var l = s.put(t, e);
- a.oncomplete = function() {
- void 0 === t && (t = null),
- n(t)
- }
- ,
- a.onabort = a.onerror = function() {
- var e = l.error ? l.error : l.transaction.error;
- i(e)
- }
- } catch (e) {
- i(e)
- }
- }
- ))
- }
- )).catch(i)
- }
- ));
- return s(i, n),
- i
- },
- removeItem: function(e, t) {
- var n = this;
- e = u(e);
- var r = new a((function(t, r) {
- n.ready().then((function() {
- I(n._dbInfo, "readwrite", (function(i, o) {
- if (i)
- return r(i);
- try {
- var a = o.objectStore(n._dbInfo.storeName).delete(e);
- o.oncomplete = function() {
- t()
- }
- ,
- o.onerror = function() {
- r(a.error)
- }
- ,
- o.onabort = function() {
- var e = a.error ? a.error : a.transaction.error;
- r(e)
- }
- } catch (e) {
- r(e)
- }
- }
- ))
- }
- )).catch(r)
- }
- ));
- return s(r, t),
- r
- },
- clear: function(e) {
- var t = this
- , n = new a((function(e, n) {
- t.ready().then((function() {
- I(t._dbInfo, "readwrite", (function(r, i) {
- if (r)
- return n(r);
- try {
- var o = i.objectStore(t._dbInfo.storeName).clear();
- i.oncomplete = function() {
- e()
- }
- ,
- i.onabort = i.onerror = function() {
- var e = o.error ? o.error : o.transaction.error;
- n(e)
- }
- } catch (e) {
- n(e)
- }
- }
- ))
- }
- )).catch(n)
- }
- ));
- return s(n, e),
- n
- },
- length: function(e) {
- var t = this
- , n = new a((function(e, n) {
- t.ready().then((function() {
- I(t._dbInfo, "readonly", (function(r, i) {
- if (r)
- return n(r);
- try {
- var o = i.objectStore(t._dbInfo.storeName).count();
- o.onsuccess = function() {
- e(o.result)
- }
- ,
- o.onerror = function() {
- n(o.error)
- }
- } catch (e) {
- n(e)
- }
- }
- ))
- }
- )).catch(n)
- }
- ));
- return s(n, e),
- n
- },
- key: function(e, t) {
- var n = this
- , r = new a((function(t, r) {
- e < 0 ? t(null) : n.ready().then((function() {
- I(n._dbInfo, "readonly", (function(i, o) {
- if (i)
- return r(i);
- try {
- var a = o.objectStore(n._dbInfo.storeName)
- , s = !1
- , l = a.openKeyCursor();
- l.onsuccess = function() {
- var n = l.result;
- n ? 0 === e || s ? t(n.key) : (s = !0,
- n.advance(e)) : t(null)
- }
- ,
- l.onerror = function() {
- r(l.error)
- }
- } catch (e) {
- r(e)
- }
- }
- ))
- }
- )).catch(r)
- }
- ));
- return s(r, t),
- r
- },
- keys: function(e) {
- var t = this
- , n = new a((function(e, n) {
- t.ready().then((function() {
- I(t._dbInfo, "readonly", (function(r, i) {
- if (r)
- return n(r);
- try {
- var o = i.objectStore(t._dbInfo.storeName).openKeyCursor()
- , a = [];
- o.onsuccess = function() {
- var t = o.result;
- t ? (a.push(t.key),
- t.continue()) : e(a)
- }
- ,
- o.onerror = function() {
- n(o.error)
- }
- } catch (e) {
- n(e)
- }
- }
- ))
- }
- )).catch(n)
- }
- ));
- return s(n, e),
- n
- },
- dropInstance: function(e, t) {
- t = c.apply(this, arguments);
- var n = this.config();
- (e = "function" != typeof e && e || {}).name || (e.name = e.name || n.name,
- e.storeName = e.storeName || n.storeName);
- var r, o = this;
- if (e.name) {
- var l = e.name === n.name && o._dbInfo.db
- , u = l ? a.resolve(o._dbInfo.db) : b(e).then((function(t) {
- var n = f[e.name]
- , r = n.forages;
- n.db = t;
- for (var i = 0; i < r.length; i++)
- r[i]._dbInfo.db = t;
- return t
- }
- ));
- r = e.storeName ? u.then((function(t) {
- if (t.objectStoreNames.contains(e.storeName)) {
- var n = t.version + 1;
- g(e);
- var r = f[e.name]
- , o = r.forages;
- t.close();
- for (var s = 0; s < o.length; s++) {
- var l = o[s];
- l._dbInfo.db = null,
- l._dbInfo.version = n
- }
- return new a((function(t, r) {
- var o = i.open(e.name, n);
- o.onerror = function(e) {
- o.result.close(),
- r(e)
- }
- ,
- o.onupgradeneeded = function() {
- o.result.deleteObjectStore(e.storeName)
- }
- ,
- o.onsuccess = function() {
- var e = o.result;
- e.close(),
- t(e)
- }
- }
- )).then((function(e) {
- r.db = e;
- for (var t = 0; t < o.length; t++) {
- var n = o[t];
- n._dbInfo.db = e,
- m(n._dbInfo)
- }
- }
- )).catch((function(t) {
- throw (v(e, t) || a.resolve()).catch((function() {}
- )),
- t
- }
- ))
- }
- }
- )) : u.then((function(t) {
- g(e);
- var n = f[e.name]
- , r = n.forages;
- t.close();
- for (var o = 0; o < r.length; o++)
- r[o]._dbInfo.db = null;
- return new a((function(t, n) {
- var r = i.deleteDatabase(e.name);
- r.onerror = r.onblocked = function(e) {
- var t = r.result;
- t && t.close(),
- n(e)
- }
- ,
- r.onsuccess = function() {
- var e = r.result;
- e && e.close(),
- t(e)
- }
- }
- )).then((function(e) {
- n.db = e;
- for (var t = 0; t < r.length; t++)
- m(r[t]._dbInfo)
- }
- )).catch((function(t) {
- throw (v(e, t) || a.resolve()).catch((function() {}
- )),
- t
- }
- ))
- }
- ))
- } else
- r = a.reject("Invalid arguments");
- return s(r, t),
- r
- }
- }
- , M = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
- , T = /^~~local_forage_type~([^~]+)~/
- , A = "__lfsc__:".length
- , E = A + "arbf".length
- , O = Object.prototype.toString;
- function B(e) {
- var t, n, r, i, o, a = .75 * e.length, s = e.length, l = 0;
- "=" === e[e.length - 1] && (a--,
- "=" === e[e.length - 2] && a--);
- var u = new ArrayBuffer(a)
- , c = new Uint8Array(u);
- for (t = 0; t < s; t += 4)
- n = M.indexOf(e[t]),
- r = M.indexOf(e[t + 1]),
- i = M.indexOf(e[t + 2]),
- o = M.indexOf(e[t + 3]),
- c[l++] = n << 2 | r >> 4,
- c[l++] = (15 & r) << 4 | i >> 2,
- c[l++] = (3 & i) << 6 | 63 & o;
- return u
- }
- function L(e) {
- var t, n = new Uint8Array(e), r = "";
- for (t = 0; t < n.length; t += 3)
- r += M[n[t] >> 2],
- r += M[(3 & n[t]) << 4 | n[t + 1] >> 4],
- r += M[(15 & n[t + 1]) << 2 | n[t + 2] >> 6],
- r += M[63 & n[t + 2]];
- return n.length % 3 == 2 ? r = r.substring(0, r.length - 1) + "=" : n.length % 3 == 1 && (r = r.substring(0, r.length - 2) + "=="),
- r
- }
- var P = {
- serialize: function(e, t) {
- var n = "";
- if (e && (n = O.call(e)),
- e && ("[object ArrayBuffer]" === n || e.buffer && "[object ArrayBuffer]" === O.call(e.buffer))) {
- var r, i = "__lfsc__:";
- e instanceof ArrayBuffer ? (r = e,
- i += "arbf") : (r = e.buffer,
- "[object Int8Array]" === n ? i += "si08" : "[object Uint8Array]" === n ? i += "ui08" : "[object Uint8ClampedArray]" === n ? i += "uic8" : "[object Int16Array]" === n ? i += "si16" : "[object Uint16Array]" === n ? i += "ur16" : "[object Int32Array]" === n ? i += "si32" : "[object Uint32Array]" === n ? i += "ui32" : "[object Float32Array]" === n ? i += "fl32" : "[object Float64Array]" === n ? i += "fl64" : t(new Error("Failed to get type for BinaryArray"))),
- t(i + L(r))
- } else if ("[object Blob]" === n) {
- var o = new FileReader;
- o.onload = function() {
- var n = "~~local_forage_type~" + e.type + "~" + L(this.result);
- t("__lfsc__:blob" + n)
- }
- ,
- o.readAsArrayBuffer(e)
- } else
- try {
- t(JSON.stringify(e))
- } catch (n) {
- console.error("Couldn't convert value into a JSON string: ", e),
- t(null, n)
- }
- },
- deserialize: function(e) {
- if ("__lfsc__:" !== e.substring(0, A))
- return JSON.parse(e);
- var t, n = e.substring(E), r = e.substring(A, E);
- if ("blob" === r && T.test(n)) {
- var i = n.match(T);
- t = i[1],
- n = n.substring(i[0].length)
- }
- var a = B(n);
- switch (r) {
- case "arbf":
- return a;
- case "blob":
- return o([a], {
- type: t
- });
- case "si08":
- return new Int8Array(a);
- case "ui08":
- return new Uint8Array(a);
- case "uic8":
- return new Uint8ClampedArray(a);
- case "si16":
- return new Int16Array(a);
- case "ur16":
- return new Uint16Array(a);
- case "si32":
- return new Int32Array(a);
- case "ui32":
- return new Uint32Array(a);
- case "fl32":
- return new Float32Array(a);
- case "fl64":
- return new Float64Array(a);
- default:
- throw new Error("Unkown type: " + r)
- }
- },
- stringToBuffer: B,
- bufferToString: L
- };
- function R(e, t, n, r) {
- e.executeSql("CREATE TABLE IF NOT EXISTS " + t.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], n, r)
- }
- function z(e, t, n, r, i, o) {
- e.executeSql(n, r, i, (function(e, a) {
- a.code === a.SYNTAX_ERR ? e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [t.storeName], (function(e, s) {
- s.rows.length ? o(e, a) : R(e, t, (function() {
- e.executeSql(n, r, i, o)
- }
- ), o)
- }
- ), o) : o(e, a)
- }
- ), o)
- }
- function j(e, t, n, r) {
- var i = this;
- e = u(e);
- var o = new a((function(o, a) {
- i.ready().then((function() {
- void 0 === t && (t = null);
- var s = t
- , l = i._dbInfo;
- l.serializer.serialize(t, (function(t, u) {
- u ? a(u) : l.db.transaction((function(n) {
- z(n, l, "INSERT OR REPLACE INTO " + l.storeName + " (key, value) VALUES (?, ?)", [e, t], (function() {
- o(s)
- }
- ), (function(e, t) {
- a(t)
- }
- ))
- }
- ), (function(t) {
- if (t.code === t.QUOTA_ERR) {
- if (r > 0)
- return void o(j.apply(i, [e, s, n, r - 1]));
- a(t)
- }
- }
- ))
- }
- ))
- }
- )).catch(a)
- }
- ));
- return s(o, n),
- o
- }
- function F(e) {
- return new a((function(t, n) {
- e.transaction((function(r) {
- r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], (function(n, r) {
- for (var i = [], o = 0; o < r.rows.length; o++)
- i.push(r.rows.item(o).name);
- t({
- db: e,
- storeNames: i
- })
- }
- ), (function(e, t) {
- n(t)
- }
- ))
- }
- ), (function(e) {
- n(e)
- }
- ))
- }
- ))
- }
- var D = {
- _driver: "webSQLStorage",
- _initStorage: function(e) {
- var t = this
- , n = {
- db: null
- };
- if (e)
- for (var r in e)
- n[r] = "string" != typeof e[r] ? e[r].toString() : e[r];
- var i = new a((function(e, r) {
- try {
- n.db = openDatabase(n.name, String(n.version), n.description, n.size)
- } catch (e) {
- return r(e)
- }
- n.db.transaction((function(i) {
- R(i, n, (function() {
- t._dbInfo = n,
- e()
- }
- ), (function(e, t) {
- r(t)
- }
- ))
- }
- ), r)
- }
- ));
- return n.serializer = P,
- i
- },
- _support: "function" == typeof openDatabase,
- iterate: function(e, t) {
- var n = this
- , r = new a((function(t, r) {
- n.ready().then((function() {
- var i = n._dbInfo;
- i.db.transaction((function(n) {
- z(n, i, "SELECT * FROM " + i.storeName, [], (function(n, r) {
- for (var o = r.rows, a = o.length, s = 0; s < a; s++) {
- var l = o.item(s)
- , u = l.value;
- if (u && (u = i.serializer.deserialize(u)),
- void 0 !== (u = e(u, l.key, s + 1)))
- return void t(u)
- }
- t()
- }
- ), (function(e, t) {
- r(t)
- }
- ))
- }
- ))
- }
- )).catch(r)
- }
- ));
- return s(r, t),
- r
- },
- getItem: function(e, t) {
- var n = this;
- e = u(e);
- var r = new a((function(t, r) {
- n.ready().then((function() {
- var i = n._dbInfo;
- i.db.transaction((function(n) {
- z(n, i, "SELECT * FROM " + i.storeName + " WHERE key = ? LIMIT 1", [e], (function(e, n) {
- var r = n.rows.length ? n.rows.item(0).value : null;
- r && (r = i.serializer.deserialize(r)),
- t(r)
- }
- ), (function(e, t) {
- r(t)
- }
- ))
- }
- ))
- }
- )).catch(r)
- }
- ));
- return s(r, t),
- r
- },
- setItem: function(e, t, n) {
- return j.apply(this, [e, t, n, 1])
- },
- removeItem: function(e, t) {
- var n = this;
- e = u(e);
- var r = new a((function(t, r) {
- n.ready().then((function() {
- var i = n._dbInfo;
- i.db.transaction((function(n) {
- z(n, i, "DELETE FROM " + i.storeName + " WHERE key = ?", [e], (function() {
- t()
- }
- ), (function(e, t) {
- r(t)
- }
- ))
- }
- ))
- }
- )).catch(r)
- }
- ));
- return s(r, t),
- r
- },
- clear: function(e) {
- var t = this
- , n = new a((function(e, n) {
- t.ready().then((function() {
- var r = t._dbInfo;
- r.db.transaction((function(t) {
- z(t, r, "DELETE FROM " + r.storeName, [], (function() {
- e()
- }
- ), (function(e, t) {
- n(t)
- }
- ))
- }
- ))
- }
- )).catch(n)
- }
- ));
- return s(n, e),
- n
- },
- length: function(e) {
- var t = this
- , n = new a((function(e, n) {
- t.ready().then((function() {
- var r = t._dbInfo;
- r.db.transaction((function(t) {
- z(t, r, "SELECT COUNT(key) as c FROM " + r.storeName, [], (function(t, n) {
- var r = n.rows.item(0).c;
- e(r)
- }
- ), (function(e, t) {
- n(t)
- }
- ))
- }
- ))
- }
- )).catch(n)
- }
- ));
- return s(n, e),
- n
- },
- key: function(e, t) {
- var n = this
- , r = new a((function(t, r) {
- n.ready().then((function() {
- var i = n._dbInfo;
- i.db.transaction((function(n) {
- z(n, i, "SELECT key FROM " + i.storeName + " WHERE id = ? LIMIT 1", [e + 1], (function(e, n) {
- var r = n.rows.length ? n.rows.item(0).key : null;
- t(r)
- }
- ), (function(e, t) {
- r(t)
- }
- ))
- }
- ))
- }
- )).catch(r)
- }
- ));
- return s(r, t),
- r
- },
- keys: function(e) {
- var t = this
- , n = new a((function(e, n) {
- t.ready().then((function() {
- var r = t._dbInfo;
- r.db.transaction((function(t) {
- z(t, r, "SELECT key FROM " + r.storeName, [], (function(t, n) {
- for (var r = [], i = 0; i < n.rows.length; i++)
- r.push(n.rows.item(i).key);
- e(r)
- }
- ), (function(e, t) {
- n(t)
- }
- ))
- }
- ))
- }
- )).catch(n)
- }
- ));
- return s(n, e),
- n
- },
- dropInstance: function(e, t) {
- t = c.apply(this, arguments);
- var n = this.config();
- (e = "function" != typeof e && e || {}).name || (e.name = e.name || n.name,
- e.storeName = e.storeName || n.storeName);
- var r, i = this;
- return s(r = e.name ? new a((function(t) {
- var r;
- r = e.name === n.name ? i._dbInfo.db : openDatabase(e.name, "", "", 0),
- e.storeName ? t({
- db: r,
- storeNames: [e.storeName]
- }) : t(F(r))
- }
- )).then((function(e) {
- return new a((function(t, n) {
- e.db.transaction((function(r) {
- function i(e) {
- return new a((function(t, n) {
- r.executeSql("DROP TABLE IF EXISTS " + e, [], (function() {
- t()
- }
- ), (function(e, t) {
- n(t)
- }
- ))
- }
- ))
- }
- for (var o = [], s = 0, l = e.storeNames.length; s < l; s++)
- o.push(i(e.storeNames[s]));
- a.all(o).then((function() {
- t()
- }
- )).catch((function(e) {
- n(e)
- }
- ))
- }
- ), (function(e) {
- n(e)
- }
- ))
- }
- ))
- }
- )) : a.reject("Invalid arguments"), t),
- r
- }
- };
- function N(e, t) {
- var n = e.name + "/";
- return e.storeName !== t.storeName && (n += e.storeName + "/"),
- n
- }
- function U() {
- return !function() {
- try {
- return localStorage.setItem("_localforage_support_test", !0),
- localStorage.removeItem("_localforage_support_test"),
- !1
- } catch (e) {
- return !0
- }
- }() || localStorage.length > 0
- }
- var W = {
- _driver: "localStorageWrapper",
- _initStorage: function(e) {
- var t = {};
- if (e)
- for (var n in e)
- t[n] = e[n];
- return t.keyPrefix = N(e, this._defaultConfig),
- U() ? (this._dbInfo = t,
- t.serializer = P,
- a.resolve()) : a.reject()
- },
- _support: function() {
- try {
- return "undefined" != typeof localStorage && "setItem"in localStorage && !!localStorage.setItem
- } catch (e) {
- return !1
- }
- }(),
- iterate: function(e, t) {
- var n = this
- , r = n.ready().then((function() {
- for (var t = n._dbInfo, r = t.keyPrefix, i = r.length, o = localStorage.length, a = 1, s = 0; s < o; s++) {
- var l = localStorage.key(s);
- if (0 === l.indexOf(r)) {
- var u = localStorage.getItem(l);
- if (u && (u = t.serializer.deserialize(u)),
- void 0 !== (u = e(u, l.substring(i), a++)))
- return u
- }
- }
- }
- ));
- return s(r, t),
- r
- },
- getItem: function(e, t) {
- var n = this;
- e = u(e);
- var r = n.ready().then((function() {
- var t = n._dbInfo
- , r = localStorage.getItem(t.keyPrefix + e);
- return r && (r = t.serializer.deserialize(r)),
- r
- }
- ));
- return s(r, t),
- r
- },
- setItem: function(e, t, n) {
- var r = this;
- e = u(e);
- var i = r.ready().then((function() {
- void 0 === t && (t = null);
- var n = t;
- return new a((function(i, o) {
- var a = r._dbInfo;
- a.serializer.serialize(t, (function(t, r) {
- if (r)
- o(r);
- else
- try {
- localStorage.setItem(a.keyPrefix + e, t),
- i(n)
- } catch (e) {
- "QuotaExceededError" !== e.name && "NS_ERROR_DOM_QUOTA_REACHED" !== e.name || o(e),
- o(e)
- }
- }
- ))
- }
- ))
- }
- ));
- return s(i, n),
- i
- },
- removeItem: function(e, t) {
- var n = this;
- e = u(e);
- var r = n.ready().then((function() {
- var t = n._dbInfo;
- localStorage.removeItem(t.keyPrefix + e)
- }
- ));
- return s(r, t),
- r
- },
- clear: function(e) {
- var t = this
- , n = t.ready().then((function() {
- for (var e = t._dbInfo.keyPrefix, n = localStorage.length - 1; n >= 0; n--) {
- var r = localStorage.key(n);
- 0 === r.indexOf(e) && localStorage.removeItem(r)
- }
- }
- ));
- return s(n, e),
- n
- },
- length: function(e) {
- var t = this.keys().then((function(e) {
- return e.length
- }
- ));
- return s(t, e),
- t
- },
- key: function(e, t) {
- var n = this
- , r = n.ready().then((function() {
- var t, r = n._dbInfo;
- try {
- t = localStorage.key(e)
- } catch (e) {
- t = null
- }
- return t && (t = t.substring(r.keyPrefix.length)),
- t
- }
- ));
- return s(r, t),
- r
- },
- keys: function(e) {
- var t = this
- , n = t.ready().then((function() {
- for (var e = t._dbInfo, n = localStorage.length, r = [], i = 0; i < n; i++) {
- var o = localStorage.key(i);
- 0 === o.indexOf(e.keyPrefix) && r.push(o.substring(e.keyPrefix.length))
- }
- return r
- }
- ));
- return s(n, e),
- n
- },
- dropInstance: function(e, t) {
- if (t = c.apply(this, arguments),
- !(e = "function" != typeof e && e || {}).name) {
- var n = this.config();
- e.name = e.name || n.name,
- e.storeName = e.storeName || n.storeName
- }
- var r, i = this;
- return s(r = e.name ? new a((function(t) {
- e.storeName ? t(N(e, i._defaultConfig)) : t(e.name + "/")
- }
- )).then((function(e) {
- for (var t = localStorage.length - 1; t >= 0; t--) {
- var n = localStorage.key(t);
- 0 === n.indexOf(e) && localStorage.removeItem(n)
- }
- }
- )) : a.reject("Invalid arguments"), t),
- r
- }
- }
- , H = function(e, t) {
- for (var n, r, i = e.length, o = 0; o < i; ) {
- if ((n = e[o]) === (r = t) || "number" == typeof n && "number" == typeof r && isNaN(n) && isNaN(r))
- return !0;
- o++
- }
- return !1
- }
- , V = Array.isArray || function(e) {
- return "[object Array]" === Object.prototype.toString.call(e)
- }
- , $ = {}
- , G = {}
- , Z = {
- INDEXEDDB: C,
- WEBSQL: D,
- LOCALSTORAGE: W
- }
- , q = [Z.INDEXEDDB._driver, Z.WEBSQL._driver, Z.LOCALSTORAGE._driver]
- , Y = ["dropInstance"]
- , X = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Y)
- , J = {
- description: "",
- driver: q.slice(),
- name: "localforage",
- size: 4980736,
- storeName: "keyvaluepairs",
- version: 1
- };
- function Q(e, t) {
- e[t] = function() {
- var n = arguments;
- return e.ready().then((function() {
- return e[t].apply(e, n)
- }
- ))
- }
- }
- function K() {
- for (var e = 1; e < arguments.length; e++) {
- var t = arguments[e];
- if (t)
- for (var n in t)
- t.hasOwnProperty(n) && (V(t[n]) ? arguments[0][n] = t[n].slice() : arguments[0][n] = t[n])
- }
- return arguments[0]
- }
- var ee = new (function() {
- function e(t) {
- for (var n in function(e, t) {
- if (!(e instanceof t))
- throw new TypeError("Cannot call a class as a function")
- }(this, e),
- Z)
- if (Z.hasOwnProperty(n)) {
- var r = Z[n]
- , i = r._driver;
- this[n] = i,
- $[i] || this.defineDriver(r)
- }
- this._defaultConfig = K({}, J),
- this._config = K({}, this._defaultConfig, t),
- this._driverSet = null,
- this._initDriver = null,
- this._ready = !1,
- this._dbInfo = null,
- this._wrapLibraryMethodsWithReady(),
- this.setDriver(this._config.driver).catch((function() {}
- ))
- }
- return e.prototype.config = function(e) {
- if ("object" === (void 0 === e ? "undefined" : r(e))) {
- if (this._ready)
- return new Error("Can't call config() after localforage has been used.");
- for (var t in e) {
- if ("storeName" === t && (e[t] = e[t].replace(/\W/g, "_")),
- "version" === t && "number" != typeof e[t])
- return new Error("Database version must be a number.");
- this._config[t] = e[t]
- }
- return !("driver"in e) || !e.driver || this.setDriver(this._config.driver)
- }
- return "string" == typeof e ? this._config[e] : this._config
- }
- ,
- e.prototype.defineDriver = function(e, t, n) {
- var r = new a((function(t, n) {
- try {
- var r = e._driver
- , i = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
- if (!e._driver)
- return void n(i);
- for (var o = X.concat("_initStorage"), l = 0, u = o.length; l < u; l++) {
- var c = o[l];
- if ((!H(Y, c) || e[c]) && "function" != typeof e[c])
- return void n(i)
- }
- !function() {
- for (var t = function(e) {
- return function() {
- var t = new Error("Method " + e + " is not implemented by the current driver")
- , n = a.reject(t);
- return s(n, arguments[arguments.length - 1]),
- n
- }
- }, n = 0, r = Y.length; n < r; n++) {
- var i = Y[n];
- e[i] || (e[i] = t(i))
- }
- }();
- var d = function(n) {
- $[r] && console.info("Redefining LocalForage driver: " + r),
- $[r] = e,
- G[r] = n,
- t()
- };
- "_support"in e ? e._support && "function" == typeof e._support ? e._support().then(d, n) : d(!!e._support) : d(!0)
- } catch (e) {
- n(e)
- }
- }
- ));
- return l(r, t, n),
- r
- }
- ,
- e.prototype.driver = function() {
- return this._driver || null
- }
- ,
- e.prototype.getDriver = function(e, t, n) {
- var r = $[e] ? a.resolve($[e]) : a.reject(new Error("Driver not found."));
- return l(r, t, n),
- r
- }
- ,
- e.prototype.getSerializer = function(e) {
- var t = a.resolve(P);
- return l(t, e),
- t
- }
- ,
- e.prototype.ready = function(e) {
- var t = this
- , n = t._driverSet.then((function() {
- return null === t._ready && (t._ready = t._initDriver()),
- t._ready
- }
- ));
- return l(n, e, e),
- n
- }
- ,
- e.prototype.setDriver = function(e, t, n) {
- var r = this;
- V(e) || (e = [e]);
- var i = this._getSupportedDrivers(e);
- function o() {
- r._config.driver = r.driver()
- }
- function s(e) {
- return r._extend(e),
- o(),
- r._ready = r._initStorage(r._config),
- r._ready
- }
- var u = null !== this._driverSet ? this._driverSet.catch((function() {
- return a.resolve()
- }
- )) : a.resolve();
- return this._driverSet = u.then((function() {
- var e = i[0];
- return r._dbInfo = null,
- r._ready = null,
- r.getDriver(e).then((function(e) {
- r._driver = e._driver,
- o(),
- r._wrapLibraryMethodsWithReady(),
- r._initDriver = function(e) {
- return function() {
- var t = 0;
- return function n() {
- for (; t < e.length; ) {
- var i = e[t];
- return t++,
- r._dbInfo = null,
- r._ready = null,
- r.getDriver(i).then(s).catch(n)
- }
- o();
- var l = new Error("No available storage method found.");
- return r._driverSet = a.reject(l),
- r._driverSet
- }()
- }
- }(i)
- }
- ))
- }
- )).catch((function() {
- o();
- var e = new Error("No available storage method found.");
- return r._driverSet = a.reject(e),
- r._driverSet
- }
- )),
- l(this._driverSet, t, n),
- this._driverSet
- }
- ,
- e.prototype.supports = function(e) {
- return !!G[e]
- }
- ,
- e.prototype._extend = function(e) {
- K(this, e)
- }
- ,
- e.prototype._getSupportedDrivers = function(e) {
- for (var t = [], n = 0, r = e.length; n < r; n++) {
- var i = e[n];
- this.supports(i) && t.push(i)
- }
- return t
- }
- ,
- e.prototype._wrapLibraryMethodsWithReady = function() {
- for (var e = 0, t = X.length; e < t; e++)
- Q(this, X[e])
- }
- ,
- e.prototype.createInstance = function(t) {
- return new e(t)
- }
- ,
- e
- }());
- t.exports = ee
- }
- , {
- 3: 3
- }]
- }, {}, [4])(4)
- }
- ).call(this, n(20))
- },
- 92: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computePendingBoxStates = void 0;
- const r = n(5);
- t.computePendingBoxStates = function(e, t) {
- e.boxes = r.mutateBoxes(e.boxes, n=>{
- var i;
- if (n.id !== t)
- return n;
- return r.setBoxStateForPresenterPerspectiveMode(e, {
- id: n.id,
- opacity: null !== (i = e.opacityForPendingSubtopicsUnderPresenterPerspectiveMode) && void 0 !== i ? i : .5
- }),
- r.setBoxStateForRevertedPresenterPerspectiveMode(e, {
- id: n.id,
- opacity: 0
- }),
- Object.assign(Object.assign({}, n), {
- opacity: 0
- })
- }
- )
- }
- },
- 93: function(e, t, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }),
- t.computeCenteredScrollOffsetForTextBox = t.computeSubtopicListScrollingStates = void 0;
- const r = n(5);
- function i(e, t, n, r, i) {
- const o = e + i
- , a = Math.min(e, o)
- , s = r - n;
- return Math.max(0, Math.min(s, a))
- }
- t.computeSubtopicListScrollingStates = function(e, t, n, o) {
- e.boxes = r.mutateBoxes(e.boxes, e=>{
- if (e.id !== t || "group" !== e.contentType)
- return e;
- if (e.contentHeight <= e.bounds.height)
- return e;
- const r = e.children.find(e=>e.id === n);
- if (!r)
- return e;
- const a = i(r.bounds.y, r.bounds.height, e.bounds.height, e.contentHeight, o(e, r));
- return Object.assign(Object.assign({}, e), {
- scrollOffset: a
- })
- }
- )
- }
- ,
- t.computeCenteredScrollOffsetForTextBox = i
- },
- 94: function(e, t, n) {
- "use strict";
- (function(t) {
- var r = n(14)
- , i = n(191)
- , o = {
- "Content-Type": "application/x-www-form-urlencoded"
- };
- function a(e, t) {
- !r.isUndefined(e) && r.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t)
- }
- var s, l = {
- adapter: (("undefined" != typeof XMLHttpRequest || void 0 !== t) && (s = n(118)),
- s),
- transformRequest: [function(e, t) {
- return i(t, "Content-Type"),
- r.isFormData(e) || r.isArrayBuffer(e) || r.isBuffer(e) || r.isStream(e) || r.isFile(e) || r.isBlob(e) ? e : r.isArrayBufferView(e) ? e.buffer : r.isURLSearchParams(e) ? (a(t, "application/x-www-form-urlencoded;charset=utf-8"),
- e.toString()) : r.isObject(e) ? (a(t, "application/json;charset=utf-8"),
- JSON.stringify(e)) : e
- }
- ],
- transformResponse: [function(e) {
- if ("string" == typeof e)
- try {
- e = JSON.parse(e)
- } catch (e) {}
- return e
- }
- ],
- timeout: 0,
- xsrfCookieName: "XSRF-TOKEN",
- xsrfHeaderName: "X-XSRF-TOKEN",
- maxContentLength: -1,
- validateStatus: function(e) {
- return e >= 200 && e < 300
- }
- };
- l.headers = {
- common: {
- Accept: "application/json, text/plain, */*"
- }
- },
- r.forEach(["delete", "get", "head"], (function(e) {
- l.headers[e] = {}
- }
- )),
- r.forEach(["post", "put", "patch"], (function(e) {
- l.headers[e] = r.merge(o)
- }
- )),
- e.exports = l
- }
- ).call(this, n(69))
- }
- });
|