canvg.min.js 439 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416
  1. /**
  2. * Skipped minification because the original files appears to be already minified.
  3. * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
  4. */
  5. !(function(t, e) {
  6. 'object' == typeof exports && 'undefined' != typeof module
  7. ? e(exports)
  8. : 'function' == typeof define && define.amd
  9. ? define(['exports'], e)
  10. : e(((t = t || self).canvg = {}));
  11. })(this, function(t) {
  12. 'use strict';
  13. var e =
  14. 'undefined' != typeof globalThis
  15. ? globalThis
  16. : 'undefined' != typeof window
  17. ? window
  18. : 'undefined' != typeof global
  19. ? global
  20. : 'undefined' != typeof self
  21. ? self
  22. : {};
  23. function r(t, e) {
  24. return t((e = { exports: {} }), e.exports), e.exports;
  25. }
  26. var n = function(t) {
  27. return t && t.Math == Math && t;
  28. },
  29. i =
  30. n('object' == typeof globalThis && globalThis) ||
  31. n('object' == typeof window && window) ||
  32. n('object' == typeof self && self) ||
  33. n('object' == typeof e && e) ||
  34. Function('return this')(),
  35. o = function(t) {
  36. try {
  37. return !!t();
  38. } catch (t) {
  39. return !0;
  40. }
  41. },
  42. a = !o(function() {
  43. return (
  44. 7 !=
  45. Object.defineProperty({}, 1, {
  46. get: function() {
  47. return 7;
  48. }
  49. })[1]
  50. );
  51. }),
  52. u = {}.propertyIsEnumerable,
  53. s = Object.getOwnPropertyDescriptor,
  54. c = {
  55. f:
  56. s && !u.call({ 1: 2 }, 1)
  57. ? function(t) {
  58. var e = s(this, t);
  59. return !!e && e.enumerable;
  60. }
  61. : u
  62. },
  63. l = function(t, e) {
  64. return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e };
  65. },
  66. f = {}.toString,
  67. h = function(t) {
  68. return f.call(t).slice(8, -1);
  69. },
  70. p = ''.split,
  71. g = o(function() {
  72. return !Object('z').propertyIsEnumerable(0);
  73. })
  74. ? function(t) {
  75. return 'String' == h(t) ? p.call(t, '') : Object(t);
  76. }
  77. : Object,
  78. y = function(t) {
  79. if (null == t) throw TypeError("Can't call method on " + t);
  80. return t;
  81. },
  82. v = function(t) {
  83. return g(y(t));
  84. },
  85. d = function(t) {
  86. return 'object' == typeof t ? null !== t : 'function' == typeof t;
  87. },
  88. m = function(t, e) {
  89. if (!d(t)) return t;
  90. var r, n;
  91. if (e && 'function' == typeof (r = t.toString) && !d((n = r.call(t)))) return n;
  92. if ('function' == typeof (r = t.valueOf) && !d((n = r.call(t)))) return n;
  93. if (!e && 'function' == typeof (r = t.toString) && !d((n = r.call(t)))) return n;
  94. throw TypeError("Can't convert object to primitive value");
  95. },
  96. x = {}.hasOwnProperty,
  97. b = function(t, e) {
  98. return x.call(t, e);
  99. },
  100. w = i.document,
  101. S = d(w) && d(w.createElement),
  102. k = function(t) {
  103. return S ? w.createElement(t) : {};
  104. },
  105. P =
  106. !a &&
  107. !o(function() {
  108. return (
  109. 7 !=
  110. Object.defineProperty(k('div'), 'a', {
  111. get: function() {
  112. return 7;
  113. }
  114. }).a
  115. );
  116. }),
  117. R = Object.getOwnPropertyDescriptor,
  118. A = {
  119. f: a
  120. ? R
  121. : function(t, e) {
  122. if (((t = v(t)), (e = m(e, !0)), P))
  123. try {
  124. return R(t, e);
  125. } catch (t) {}
  126. if (b(t, e)) return l(!c.f.call(t, e), t[e]);
  127. }
  128. },
  129. E = function(t) {
  130. if (!d(t)) throw TypeError(String(t) + ' is not an object');
  131. return t;
  132. },
  133. C = Object.defineProperty,
  134. T = {
  135. f: a
  136. ? C
  137. : function(t, e, r) {
  138. if ((E(t), (e = m(e, !0)), E(r), P))
  139. try {
  140. return C(t, e, r);
  141. } catch (t) {}
  142. if ('get' in r || 'set' in r) throw TypeError('Accessors not supported');
  143. return 'value' in r && (t[e] = r.value), t;
  144. }
  145. },
  146. O = a
  147. ? function(t, e, r) {
  148. return T.f(t, e, l(1, r));
  149. }
  150. : function(t, e, r) {
  151. return (t[e] = r), t;
  152. },
  153. M = function(t, e) {
  154. try {
  155. O(i, t, e);
  156. } catch (r) {
  157. i[t] = e;
  158. }
  159. return e;
  160. },
  161. D = i['__core-js_shared__'] || M('__core-js_shared__', {}),
  162. V = Function.toString;
  163. 'function' != typeof D.inspectSource &&
  164. (D.inspectSource = function(t) {
  165. return V.call(t);
  166. });
  167. var N,
  168. I,
  169. L,
  170. j = D.inspectSource,
  171. z = i.WeakMap,
  172. B = 'function' == typeof z && /native code/.test(j(z)),
  173. F = r(function(t) {
  174. (t.exports = function(t, e) {
  175. return D[t] || (D[t] = void 0 !== e ? e : {});
  176. })('versions', []).push({
  177. version: '3.6.4',
  178. mode: 'global',
  179. copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
  180. });
  181. }),
  182. _ = 0,
  183. $ = Math.random(),
  184. G = function(t) {
  185. return 'Symbol(' + String(void 0 === t ? '' : t) + ')_' + (++_ + $).toString(36);
  186. },
  187. q = F('keys'),
  188. U = function(t) {
  189. return q[t] || (q[t] = G(t));
  190. },
  191. W = {},
  192. H = i.WeakMap;
  193. if (B) {
  194. var X = new H(),
  195. Y = X.get,
  196. Q = X.has,
  197. Z = X.set;
  198. (N = function(t, e) {
  199. return Z.call(X, t, e), e;
  200. }),
  201. (I = function(t) {
  202. return Y.call(X, t) || {};
  203. }),
  204. (L = function(t) {
  205. return Q.call(X, t);
  206. });
  207. } else {
  208. var K = U('state');
  209. (W[K] = !0),
  210. (N = function(t, e) {
  211. return O(t, K, e), e;
  212. }),
  213. (I = function(t) {
  214. return b(t, K) ? t[K] : {};
  215. }),
  216. (L = function(t) {
  217. return b(t, K);
  218. });
  219. }
  220. var J,
  221. tt,
  222. et = {
  223. set: N,
  224. get: I,
  225. has: L,
  226. enforce: function(t) {
  227. return L(t) ? I(t) : N(t, {});
  228. },
  229. getterFor: function(t) {
  230. return function(e) {
  231. var r;
  232. if (!d(e) || (r = I(e)).type !== t) throw TypeError('Incompatible receiver, ' + t + ' required');
  233. return r;
  234. };
  235. }
  236. },
  237. rt = r(function(t) {
  238. var e = et.get,
  239. r = et.enforce,
  240. n = String(String).split('String');
  241. (t.exports = function(t, e, o, a) {
  242. var u = !!a && !!a.unsafe,
  243. s = !!a && !!a.enumerable,
  244. c = !!a && !!a.noTargetGet;
  245. 'function' == typeof o &&
  246. ('string' != typeof e || b(o, 'name') || O(o, 'name', e),
  247. (r(o).source = n.join('string' == typeof e ? e : ''))),
  248. t !== i
  249. ? (u ? !c && t[e] && (s = !0) : delete t[e], s ? (t[e] = o) : O(t, e, o))
  250. : s
  251. ? (t[e] = o)
  252. : M(e, o);
  253. })(Function.prototype, 'toString', function() {
  254. return ('function' == typeof this && e(this).source) || j(this);
  255. });
  256. }),
  257. nt = i,
  258. it = function(t) {
  259. return 'function' == typeof t ? t : void 0;
  260. },
  261. ot = function(t, e) {
  262. return arguments.length < 2 ? it(nt[t]) || it(i[t]) : (nt[t] && nt[t][e]) || (i[t] && i[t][e]);
  263. },
  264. at = Math.ceil,
  265. ut = Math.floor,
  266. st = function(t) {
  267. return isNaN((t = +t)) ? 0 : (t > 0 ? ut : at)(t);
  268. },
  269. ct = Math.min,
  270. lt = function(t) {
  271. return t > 0 ? ct(st(t), 9007199254740991) : 0;
  272. },
  273. ft = Math.max,
  274. ht = Math.min,
  275. pt = function(t, e) {
  276. var r = st(t);
  277. return r < 0 ? ft(r + e, 0) : ht(r, e);
  278. },
  279. gt = function(t) {
  280. return function(e, r, n) {
  281. var i,
  282. o = v(e),
  283. a = lt(o.length),
  284. u = pt(n, a);
  285. if (t && r != r) {
  286. for (; a > u; ) if ((i = o[u++]) != i) return !0;
  287. } else for (; a > u; u++) if ((t || u in o) && o[u] === r) return t || u || 0;
  288. return !t && -1;
  289. };
  290. },
  291. yt = { includes: gt(!0), indexOf: gt(!1) },
  292. vt = yt.indexOf,
  293. dt = function(t, e) {
  294. var r,
  295. n = v(t),
  296. i = 0,
  297. o = [];
  298. for (r in n) !b(W, r) && b(n, r) && o.push(r);
  299. for (; e.length > i; ) b(n, (r = e[i++])) && (~vt(o, r) || o.push(r));
  300. return o;
  301. },
  302. mt = [
  303. 'constructor',
  304. 'hasOwnProperty',
  305. 'isPrototypeOf',
  306. 'propertyIsEnumerable',
  307. 'toLocaleString',
  308. 'toString',
  309. 'valueOf'
  310. ],
  311. xt = mt.concat('length', 'prototype'),
  312. bt = {
  313. f:
  314. Object.getOwnPropertyNames ||
  315. function(t) {
  316. return dt(t, xt);
  317. }
  318. },
  319. wt = { f: Object.getOwnPropertySymbols },
  320. St =
  321. ot('Reflect', 'ownKeys') ||
  322. function(t) {
  323. var e = bt.f(E(t)),
  324. r = wt.f;
  325. return r ? e.concat(r(t)) : e;
  326. },
  327. kt = function(t, e) {
  328. for (var r = St(e), n = T.f, i = A.f, o = 0; o < r.length; o++) {
  329. var a = r[o];
  330. b(t, a) || n(t, a, i(e, a));
  331. }
  332. },
  333. Pt = /#|\.prototype\./,
  334. Rt = function(t, e) {
  335. var r = Et[At(t)];
  336. return r == Tt || (r != Ct && ('function' == typeof e ? o(e) : !!e));
  337. },
  338. At = (Rt.normalize = function(t) {
  339. return String(t)
  340. .replace(Pt, '.')
  341. .toLowerCase();
  342. }),
  343. Et = (Rt.data = {}),
  344. Ct = (Rt.NATIVE = 'N'),
  345. Tt = (Rt.POLYFILL = 'P'),
  346. Ot = Rt,
  347. Mt = A.f,
  348. Dt = function(t, e) {
  349. var r,
  350. n,
  351. o,
  352. a,
  353. u,
  354. s = t.target,
  355. c = t.global,
  356. l = t.stat;
  357. if ((r = c ? i : l ? i[s] || M(s, {}) : (i[s] || {}).prototype))
  358. for (n in e) {
  359. if (
  360. ((a = e[n]),
  361. (o = t.noTargetGet ? (u = Mt(r, n)) && u.value : r[n]),
  362. !Ot(c ? n : s + (l ? '.' : '#') + n, t.forced) && void 0 !== o)
  363. ) {
  364. if (typeof a == typeof o) continue;
  365. kt(a, o);
  366. }
  367. (t.sham || (o && o.sham)) && O(a, 'sham', !0), rt(r, n, a, t);
  368. }
  369. },
  370. Vt = function(t) {
  371. if ('function' != typeof t) throw TypeError(String(t) + ' is not a function');
  372. return t;
  373. },
  374. Nt = function(t, e, r) {
  375. if ((Vt(t), void 0 === e)) return t;
  376. switch (r) {
  377. case 0:
  378. return function() {
  379. return t.call(e);
  380. };
  381. case 1:
  382. return function(r) {
  383. return t.call(e, r);
  384. };
  385. case 2:
  386. return function(r, n) {
  387. return t.call(e, r, n);
  388. };
  389. case 3:
  390. return function(r, n, i) {
  391. return t.call(e, r, n, i);
  392. };
  393. }
  394. return function() {
  395. return t.apply(e, arguments);
  396. };
  397. },
  398. It = function(t) {
  399. return Object(y(t));
  400. },
  401. Lt =
  402. Array.isArray ||
  403. function(t) {
  404. return 'Array' == h(t);
  405. },
  406. jt =
  407. !!Object.getOwnPropertySymbols &&
  408. !o(function() {
  409. return !String(Symbol());
  410. }),
  411. zt = jt && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
  412. Bt = F('wks'),
  413. Ft = i.Symbol,
  414. _t = zt ? Ft : (Ft && Ft.withoutSetter) || G,
  415. $t = function(t) {
  416. return b(Bt, t) || (jt && b(Ft, t) ? (Bt[t] = Ft[t]) : (Bt[t] = _t('Symbol.' + t))), Bt[t];
  417. },
  418. Gt = $t('species'),
  419. qt = function(t, e) {
  420. var r;
  421. return (
  422. Lt(t) &&
  423. ('function' != typeof (r = t.constructor) || (r !== Array && !Lt(r.prototype))
  424. ? d(r) && null === (r = r[Gt]) && (r = void 0)
  425. : (r = void 0)),
  426. new (void 0 === r ? Array : r)(0 === e ? 0 : e)
  427. );
  428. },
  429. Ut = [].push,
  430. Wt = function(t) {
  431. var e = 1 == t,
  432. r = 2 == t,
  433. n = 3 == t,
  434. i = 4 == t,
  435. o = 6 == t,
  436. a = 5 == t || o;
  437. return function(u, s, c, l) {
  438. for (
  439. var f,
  440. h,
  441. p = It(u),
  442. y = g(p),
  443. v = Nt(s, c, 3),
  444. d = lt(y.length),
  445. m = 0,
  446. x = l || qt,
  447. b = e ? x(u, d) : r ? x(u, 0) : void 0;
  448. d > m;
  449. m++
  450. )
  451. if ((a || m in y) && ((h = v((f = y[m]), m, p)), t))
  452. if (e) b[m] = h;
  453. else if (h)
  454. switch (t) {
  455. case 3:
  456. return !0;
  457. case 5:
  458. return f;
  459. case 6:
  460. return m;
  461. case 2:
  462. Ut.call(b, f);
  463. }
  464. else if (i) return !1;
  465. return o ? -1 : n || i ? i : b;
  466. };
  467. },
  468. Ht = { forEach: Wt(0), map: Wt(1), filter: Wt(2), some: Wt(3), every: Wt(4), find: Wt(5), findIndex: Wt(6) },
  469. Xt = ot('navigator', 'userAgent') || '',
  470. Yt = i.process,
  471. Qt = Yt && Yt.versions,
  472. Zt = Qt && Qt.v8;
  473. Zt
  474. ? (tt = (J = Zt.split('.'))[0] + J[1])
  475. : Xt && (!(J = Xt.match(/Edge\/(\d+)/)) || J[1] >= 74) && (J = Xt.match(/Chrome\/(\d+)/)) && (tt = J[1]);
  476. var Kt = tt && +tt,
  477. Jt = $t('species'),
  478. te = function(t) {
  479. return (
  480. Kt >= 51 ||
  481. !o(function() {
  482. var e = [];
  483. return (
  484. ((e.constructor = {})[Jt] = function() {
  485. return { foo: 1 };
  486. }),
  487. 1 !== e[t](Boolean).foo
  488. );
  489. })
  490. );
  491. },
  492. ee = Object.defineProperty,
  493. re = {},
  494. ne = function(t) {
  495. throw t;
  496. },
  497. ie = function(t, e) {
  498. if (b(re, t)) return re[t];
  499. e || (e = {});
  500. var r = [][t],
  501. n = !!b(e, 'ACCESSORS') && e.ACCESSORS,
  502. i = b(e, 0) ? e[0] : ne,
  503. u = b(e, 1) ? e[1] : void 0;
  504. return (re[t] =
  505. !!r &&
  506. !o(function() {
  507. if (n && !a) return !0;
  508. var t = { length: -1 };
  509. n ? ee(t, 1, { enumerable: !0, get: ne }) : (t[1] = 1), r.call(t, i, u);
  510. }));
  511. },
  512. oe = Ht.map,
  513. ae = te('map'),
  514. ue = ie('map');
  515. Dt(
  516. { target: 'Array', proto: !0, forced: !ae || !ue },
  517. {
  518. map: function(t) {
  519. return oe(this, t, arguments.length > 1 ? arguments[1] : void 0);
  520. }
  521. }
  522. );
  523. var se = function() {
  524. var t = E(this),
  525. e = '';
  526. return (
  527. t.global && (e += 'g'),
  528. t.ignoreCase && (e += 'i'),
  529. t.multiline && (e += 'm'),
  530. t.dotAll && (e += 's'),
  531. t.unicode && (e += 'u'),
  532. t.sticky && (e += 'y'),
  533. e
  534. );
  535. };
  536. function ce(t, e) {
  537. return RegExp(t, e);
  538. }
  539. var le,
  540. fe,
  541. he = {
  542. UNSUPPORTED_Y: o(function() {
  543. var t = ce('a', 'y');
  544. return (t.lastIndex = 2), null != t.exec('abcd');
  545. }),
  546. BROKEN_CARET: o(function() {
  547. var t = ce('^r', 'gy');
  548. return (t.lastIndex = 2), null != t.exec('str');
  549. })
  550. },
  551. pe = RegExp.prototype.exec,
  552. ge = String.prototype.replace,
  553. ye = pe,
  554. ve = ((le = /a/), (fe = /b*/g), pe.call(le, 'a'), pe.call(fe, 'a'), 0 !== le.lastIndex || 0 !== fe.lastIndex),
  555. de = he.UNSUPPORTED_Y || he.BROKEN_CARET,
  556. me = void 0 !== /()??/.exec('')[1];
  557. (ve || me || de) &&
  558. (ye = function(t) {
  559. var e,
  560. r,
  561. n,
  562. i,
  563. o = this,
  564. a = de && o.sticky,
  565. u = se.call(o),
  566. s = o.source,
  567. c = 0,
  568. l = t;
  569. return (
  570. a &&
  571. (-1 === (u = u.replace('y', '')).indexOf('g') && (u += 'g'),
  572. (l = String(t).slice(o.lastIndex)),
  573. o.lastIndex > 0 &&
  574. (!o.multiline || (o.multiline && '\n' !== t[o.lastIndex - 1])) &&
  575. ((s = '(?: ' + s + ')'), (l = ' ' + l), c++),
  576. (r = new RegExp('^(?:' + s + ')', u))),
  577. me && (r = new RegExp('^' + s + '$(?!\\s)', u)),
  578. ve && (e = o.lastIndex),
  579. (n = pe.call(a ? r : o, l)),
  580. a
  581. ? n
  582. ? ((n.input = n.input.slice(c)),
  583. (n[0] = n[0].slice(c)),
  584. (n.index = o.lastIndex),
  585. (o.lastIndex += n[0].length))
  586. : (o.lastIndex = 0)
  587. : ve && n && (o.lastIndex = o.global ? n.index + n[0].length : e),
  588. me &&
  589. n &&
  590. n.length > 1 &&
  591. ge.call(n[0], r, function() {
  592. for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (n[i] = void 0);
  593. }),
  594. n
  595. );
  596. });
  597. var xe = ye;
  598. Dt({ target: 'RegExp', proto: !0, forced: /./.exec !== xe }, { exec: xe });
  599. var be = $t('species'),
  600. we = !o(function() {
  601. var t = /./;
  602. return (
  603. (t.exec = function() {
  604. var t = [];
  605. return (t.groups = { a: '7' }), t;
  606. }),
  607. '7' !== ''.replace(t, '$<a>')
  608. );
  609. }),
  610. Se = '$0' === 'a'.replace(/./, '$0'),
  611. ke = $t('replace'),
  612. Pe = !!/./[ke] && '' === /./[ke]('a', '$0'),
  613. Re = !o(function() {
  614. var t = /(?:)/,
  615. e = t.exec;
  616. t.exec = function() {
  617. return e.apply(this, arguments);
  618. };
  619. var r = 'ab'.split(t);
  620. return 2 !== r.length || 'a' !== r[0] || 'b' !== r[1];
  621. }),
  622. Ae = function(t, e, r, n) {
  623. var i = $t(t),
  624. a = !o(function() {
  625. var e = {};
  626. return (
  627. (e[i] = function() {
  628. return 7;
  629. }),
  630. 7 != ''[t](e)
  631. );
  632. }),
  633. u =
  634. a &&
  635. !o(function() {
  636. var e = !1,
  637. r = /a/;
  638. return (
  639. 'split' === t &&
  640. (((r = {}).constructor = {}),
  641. (r.constructor[be] = function() {
  642. return r;
  643. }),
  644. (r.flags = ''),
  645. (r[i] = /./[i])),
  646. (r.exec = function() {
  647. return (e = !0), null;
  648. }),
  649. r[i](''),
  650. !e
  651. );
  652. });
  653. if (!a || !u || ('replace' === t && (!we || !Se || Pe)) || ('split' === t && !Re)) {
  654. var s = /./[i],
  655. c = r(
  656. i,
  657. ''[t],
  658. function(t, e, r, n, i) {
  659. return e.exec === xe
  660. ? a && !i
  661. ? { done: !0, value: s.call(e, r, n) }
  662. : { done: !0, value: t.call(r, e, n) }
  663. : { done: !1 };
  664. },
  665. { REPLACE_KEEPS_$0: Se, REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: Pe }
  666. ),
  667. l = c[0],
  668. f = c[1];
  669. rt(String.prototype, t, l),
  670. rt(
  671. RegExp.prototype,
  672. i,
  673. 2 == e
  674. ? function(t, e) {
  675. return f.call(t, this, e);
  676. }
  677. : function(t) {
  678. return f.call(t, this);
  679. }
  680. );
  681. }
  682. n && O(RegExp.prototype[i], 'sham', !0);
  683. },
  684. Ee = function(t) {
  685. return function(e, r) {
  686. var n,
  687. i,
  688. o = String(y(e)),
  689. a = st(r),
  690. u = o.length;
  691. return a < 0 || a >= u
  692. ? t
  693. ? ''
  694. : void 0
  695. : (n = o.charCodeAt(a)) < 55296 ||
  696. n > 56319 ||
  697. a + 1 === u ||
  698. (i = o.charCodeAt(a + 1)) < 56320 ||
  699. i > 57343
  700. ? t
  701. ? o.charAt(a)
  702. : n
  703. : t
  704. ? o.slice(a, a + 2)
  705. : i - 56320 + ((n - 55296) << 10) + 65536;
  706. };
  707. },
  708. Ce = { codeAt: Ee(!1), charAt: Ee(!0) },
  709. Te = Ce.charAt,
  710. Oe = function(t, e, r) {
  711. return e + (r ? Te(t, e).length : 1);
  712. },
  713. Me = function(t, e) {
  714. var r = t.exec;
  715. if ('function' == typeof r) {
  716. var n = r.call(t, e);
  717. if ('object' != typeof n)
  718. throw TypeError('RegExp exec method returned something other than an Object or null');
  719. return n;
  720. }
  721. if ('RegExp' !== h(t)) throw TypeError('RegExp#exec called on incompatible receiver');
  722. return xe.call(t, e);
  723. };
  724. Ae('match', 1, function(t, e, r) {
  725. return [
  726. function(e) {
  727. var r = y(this),
  728. n = null == e ? void 0 : e[t];
  729. return void 0 !== n ? n.call(e, r) : new RegExp(e)[t](String(r));
  730. },
  731. function(t) {
  732. var n = r(e, t, this);
  733. if (n.done) return n.value;
  734. var i = E(t),
  735. o = String(this);
  736. if (!i.global) return Me(i, o);
  737. var a = i.unicode;
  738. i.lastIndex = 0;
  739. for (var u, s = [], c = 0; null !== (u = Me(i, o)); ) {
  740. var l = String(u[0]);
  741. (s[c] = l), '' === l && (i.lastIndex = Oe(o, lt(i.lastIndex), a)), c++;
  742. }
  743. return 0 === c ? null : s;
  744. }
  745. ];
  746. });
  747. var De = Math.max,
  748. Ve = Math.min,
  749. Ne = Math.floor,
  750. Ie = /\$([$&'`]|\d\d?|<[^>]*>)/g,
  751. Le = /\$([$&'`]|\d\d?)/g;
  752. Ae('replace', 2, function(t, e, r, n) {
  753. var i = n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,
  754. o = n.REPLACE_KEEPS_$0,
  755. a = i ? '$' : '$0';
  756. return [
  757. function(r, n) {
  758. var i = y(this),
  759. o = null == r ? void 0 : r[t];
  760. return void 0 !== o ? o.call(r, i, n) : e.call(String(i), r, n);
  761. },
  762. function(t, n) {
  763. if ((!i && o) || ('string' == typeof n && -1 === n.indexOf(a))) {
  764. var s = r(e, t, this, n);
  765. if (s.done) return s.value;
  766. }
  767. var c = E(t),
  768. l = String(this),
  769. f = 'function' == typeof n;
  770. f || (n = String(n));
  771. var h = c.global;
  772. if (h) {
  773. var p = c.unicode;
  774. c.lastIndex = 0;
  775. }
  776. for (var g = []; ; ) {
  777. var y = Me(c, l);
  778. if (null === y) break;
  779. if ((g.push(y), !h)) break;
  780. '' === String(y[0]) && (c.lastIndex = Oe(l, lt(c.lastIndex), p));
  781. }
  782. for (var v, d = '', m = 0, x = 0; x < g.length; x++) {
  783. y = g[x];
  784. for (var b = String(y[0]), w = De(Ve(st(y.index), l.length), 0), S = [], k = 1; k < y.length; k++)
  785. S.push(void 0 === (v = y[k]) ? v : String(v));
  786. var P = y.groups;
  787. if (f) {
  788. var R = [b].concat(S, w, l);
  789. void 0 !== P && R.push(P);
  790. var A = String(n.apply(void 0, R));
  791. } else A = u(b, l, w, S, P, n);
  792. w >= m && ((d += l.slice(m, w) + A), (m = w + b.length));
  793. }
  794. return d + l.slice(m);
  795. }
  796. ];
  797. function u(t, r, n, i, o, a) {
  798. var u = n + t.length,
  799. s = i.length,
  800. c = Le;
  801. return (
  802. void 0 !== o && ((o = It(o)), (c = Ie)),
  803. e.call(a, c, function(e, a) {
  804. var c;
  805. switch (a.charAt(0)) {
  806. case '$':
  807. return '$';
  808. case '&':
  809. return t;
  810. case '`':
  811. return r.slice(0, n);
  812. case "'":
  813. return r.slice(u);
  814. case '<':
  815. c = o[a.slice(1, -1)];
  816. break;
  817. default:
  818. var l = +a;
  819. if (0 === l) return e;
  820. if (l > s) {
  821. var f = Ne(l / 10);
  822. return 0 === f
  823. ? e
  824. : f <= s
  825. ? void 0 === i[f - 1]
  826. ? a.charAt(1)
  827. : i[f - 1] + a.charAt(1)
  828. : e;
  829. }
  830. c = i[l - 1];
  831. }
  832. return void 0 === c ? '' : c;
  833. })
  834. );
  835. }
  836. });
  837. var je,
  838. ze = $t('match'),
  839. Be = function(t) {
  840. var e;
  841. return d(t) && (void 0 !== (e = t[ze]) ? !!e : 'RegExp' == h(t));
  842. },
  843. Fe = function(t) {
  844. if (Be(t)) throw TypeError("The method doesn't accept regular expressions");
  845. return t;
  846. },
  847. _e = $t('match'),
  848. $e = function(t) {
  849. var e = /./;
  850. try {
  851. '/./'[t](e);
  852. } catch (r) {
  853. try {
  854. return (e[_e] = !1), '/./'[t](e);
  855. } catch (t) {}
  856. }
  857. return !1;
  858. },
  859. Ge = A.f,
  860. qe = ''.startsWith,
  861. Ue = Math.min,
  862. We = $e('startsWith'),
  863. He = !(We || ((je = Ge(String.prototype, 'startsWith')), !je || je.writable));
  864. function Xe(t) {
  865. return t.replace(/(?!\u3000)\s+/gm, ' ');
  866. }
  867. function Ye(t) {
  868. return t.replace(/^[\n \t]+/, '');
  869. }
  870. function Qe(t) {
  871. return t.replace(/[\n \t]+$/, '');
  872. }
  873. function Ze(t) {
  874. return ((t || '').match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || []).map(parseFloat);
  875. }
  876. Dt(
  877. { target: 'String', proto: !0, forced: !He && !We },
  878. {
  879. startsWith: function(t) {
  880. var e = String(y(this));
  881. Fe(t);
  882. var r = lt(Ue(arguments.length > 1 ? arguments[1] : void 0, e.length)),
  883. n = String(t);
  884. return qe ? qe.call(e, n, r) : e.slice(r, r + n.length) === n;
  885. }
  886. }
  887. );
  888. var Ke = /^[A-Z-]+$/;
  889. function Je(t) {
  890. return Ke.test(t) ? t.toLowerCase() : t;
  891. }
  892. function tr(t) {
  893. var e = t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/) || [];
  894. return e[2] || e[3] || e[4];
  895. }
  896. function er(t) {
  897. if (!t.startsWith('rgb')) return t;
  898. var e = 3;
  899. return t.replace(/\d+(\.\d+)?/g, function(t, r) {
  900. return e-- && r ? String(Math.round(parseFloat(t))) : t;
  901. });
  902. }
  903. var rr = function(t, e) {
  904. var r = [][t];
  905. return (
  906. !!r &&
  907. o(function() {
  908. r.call(
  909. null,
  910. e ||
  911. function() {
  912. throw 1;
  913. },
  914. 1
  915. );
  916. })
  917. );
  918. },
  919. nr = [].join,
  920. ir = g != Object,
  921. or = rr('join', ',');
  922. Dt(
  923. { target: 'Array', proto: !0, forced: ir || !or },
  924. {
  925. join: function(t) {
  926. return nr.call(v(this), void 0 === t ? ',' : t);
  927. }
  928. }
  929. );
  930. var ar = function(t) {
  931. if (Array.isArray(t)) return t;
  932. };
  933. var ur = function(t, e) {
  934. if ('undefined' != typeof Symbol && Symbol.iterator in Object(t)) {
  935. var r = [],
  936. n = !0,
  937. i = !1,
  938. o = void 0;
  939. try {
  940. for (
  941. var a, u = t[Symbol.iterator]();
  942. !(n = (a = u.next()).done) && (r.push(a.value), !e || r.length !== e);
  943. n = !0
  944. );
  945. } catch (t) {
  946. (i = !0), (o = t);
  947. } finally {
  948. try {
  949. n || null == u.return || u.return();
  950. } finally {
  951. if (i) throw o;
  952. }
  953. }
  954. return r;
  955. }
  956. };
  957. var sr = function(t, e) {
  958. (null == e || e > t.length) && (e = t.length);
  959. for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r];
  960. return n;
  961. };
  962. var cr = function(t, e) {
  963. if (t) {
  964. if ('string' == typeof t) return sr(t, e);
  965. var r = Object.prototype.toString.call(t).slice(8, -1);
  966. return (
  967. 'Object' === r && t.constructor && (r = t.constructor.name),
  968. 'Map' === r || 'Set' === r
  969. ? Array.from(r)
  970. : 'Arguments' === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)
  971. ? sr(t, e)
  972. : void 0
  973. );
  974. }
  975. };
  976. var lr = function() {
  977. throw new TypeError(
  978. 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  979. );
  980. };
  981. var fr = function(t, e) {
  982. return ar(t) || ur(t, e) || cr(t, e) || lr();
  983. },
  984. hr = /(\[[^\]]+\])/g,
  985. pr = /(#[^\s\+>~\.\[:]+)/g,
  986. gr = /(\.[^\s\+>~\.\[:]+)/g,
  987. yr = /(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,
  988. vr = /(:[\w-]+\([^\)]*\))/gi,
  989. dr = /(:[^\s\+>~\.\[:]+)/g,
  990. mr = /([^\s\+>~\.\[:]+)/g;
  991. function xr(t, e) {
  992. var r = t.match(e);
  993. return r ? [t.replace(e, ' '), r.length] : [t, 0];
  994. }
  995. function br(t) {
  996. var e = [0, 0, 0],
  997. r = t.replace(/:not\(([^\)]*)\)/g, ' $1 ').replace(/{[\s\S]*/gm, ' '),
  998. n = 0,
  999. i = xr(r, hr),
  1000. o = fr(i, 2);
  1001. (r = o[0]), (n = o[1]), (e[1] += n);
  1002. var a = xr(r, pr),
  1003. u = fr(a, 2);
  1004. (r = u[0]), (n = u[1]), (e[0] += n);
  1005. var s = xr(r, gr),
  1006. c = fr(s, 2);
  1007. (r = c[0]), (n = c[1]), (e[1] += n);
  1008. var l = xr(r, yr),
  1009. f = fr(l, 2);
  1010. (r = f[0]), (n = f[1]), (e[2] += n);
  1011. var h = xr(r, vr),
  1012. p = fr(h, 2);
  1013. (r = p[0]), (n = p[1]), (e[1] += n);
  1014. var g = xr(r, dr),
  1015. y = fr(g, 2);
  1016. (r = y[0]), (n = y[1]), (e[1] += n);
  1017. var v = xr((r = r.replace(/[\*\s\+>~]/g, ' ').replace(/[#\.]/g, ' ')), mr),
  1018. d = fr(v, 2);
  1019. return (r = d[0]), (n = d[1]), (e[2] += n), e.join('');
  1020. }
  1021. function wr(t) {
  1022. return Math.sqrt(Math.pow(t[0], 2) + Math.pow(t[1], 2));
  1023. }
  1024. function Sr(t, e) {
  1025. return (t[0] * e[0] + t[1] * e[1]) / (wr(t) * wr(e));
  1026. }
  1027. function kr(t, e) {
  1028. return (t[0] * e[1] < t[1] * e[0] ? -1 : 1) * Math.acos(Sr(t, e));
  1029. }
  1030. function Pr(t) {
  1031. return t * t * t;
  1032. }
  1033. function Rr(t) {
  1034. return 3 * t * t * (1 - t);
  1035. }
  1036. function Ar(t) {
  1037. return 3 * t * (1 - t) * (1 - t);
  1038. }
  1039. function Er(t) {
  1040. return (1 - t) * (1 - t) * (1 - t);
  1041. }
  1042. function Cr(t) {
  1043. return t * t;
  1044. }
  1045. function Tr(t) {
  1046. return 2 * t * (1 - t);
  1047. }
  1048. function Or(t) {
  1049. return (1 - t) * (1 - t);
  1050. }
  1051. var Mr,
  1052. Dr =
  1053. Object.keys ||
  1054. function(t) {
  1055. return dt(t, mt);
  1056. },
  1057. Vr = a
  1058. ? Object.defineProperties
  1059. : function(t, e) {
  1060. E(t);
  1061. for (var r, n = Dr(e), i = n.length, o = 0; i > o; ) T.f(t, (r = n[o++]), e[r]);
  1062. return t;
  1063. },
  1064. Nr = ot('document', 'documentElement'),
  1065. Ir = U('IE_PROTO'),
  1066. Lr = function() {},
  1067. jr = function(t) {
  1068. return '<script>' + t + '</script>';
  1069. },
  1070. zr = function() {
  1071. try {
  1072. Mr = document.domain && new ActiveXObject('htmlfile');
  1073. } catch (t) {}
  1074. var t, e;
  1075. zr = Mr
  1076. ? (function(t) {
  1077. t.write(jr('')), t.close();
  1078. var e = t.parentWindow.Object;
  1079. return (t = null), e;
  1080. })(Mr)
  1081. : (((e = k('iframe')).style.display = 'none'),
  1082. Nr.appendChild(e),
  1083. (e.src = String('javascript:')),
  1084. (t = e.contentWindow.document).open(),
  1085. t.write(jr('document.F=Object')),
  1086. t.close(),
  1087. t.F);
  1088. for (var r = mt.length; r--; ) delete zr.prototype[mt[r]];
  1089. return zr();
  1090. };
  1091. W[Ir] = !0;
  1092. var Br =
  1093. Object.create ||
  1094. function(t, e) {
  1095. var r;
  1096. return (
  1097. null !== t
  1098. ? ((Lr.prototype = E(t)), (r = new Lr()), (Lr.prototype = null), (r[Ir] = t))
  1099. : (r = zr()),
  1100. void 0 === e ? r : Vr(r, e)
  1101. );
  1102. },
  1103. Fr = bt.f,
  1104. _r = {}.toString,
  1105. $r =
  1106. 'object' == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [],
  1107. Gr = {
  1108. f: function(t) {
  1109. return $r && '[object Window]' == _r.call(t)
  1110. ? (function(t) {
  1111. try {
  1112. return Fr(t);
  1113. } catch (t) {
  1114. return $r.slice();
  1115. }
  1116. })(t)
  1117. : Fr(v(t));
  1118. }
  1119. },
  1120. qr = { f: $t },
  1121. Ur = T.f,
  1122. Wr = function(t) {
  1123. var e = nt.Symbol || (nt.Symbol = {});
  1124. b(e, t) || Ur(e, t, { value: qr.f(t) });
  1125. },
  1126. Hr = T.f,
  1127. Xr = $t('toStringTag'),
  1128. Yr = function(t, e, r) {
  1129. t && !b((t = r ? t : t.prototype), Xr) && Hr(t, Xr, { configurable: !0, value: e });
  1130. },
  1131. Qr = Ht.forEach,
  1132. Zr = U('hidden'),
  1133. Kr = $t('toPrimitive'),
  1134. Jr = et.set,
  1135. tn = et.getterFor('Symbol'),
  1136. en = Object.prototype,
  1137. rn = i.Symbol,
  1138. nn = ot('JSON', 'stringify'),
  1139. on = A.f,
  1140. an = T.f,
  1141. un = Gr.f,
  1142. sn = c.f,
  1143. cn = F('symbols'),
  1144. ln = F('op-symbols'),
  1145. fn = F('string-to-symbol-registry'),
  1146. hn = F('symbol-to-string-registry'),
  1147. pn = F('wks'),
  1148. gn = i.QObject,
  1149. yn = !gn || !gn.prototype || !gn.prototype.findChild,
  1150. vn =
  1151. a &&
  1152. o(function() {
  1153. return (
  1154. 7 !=
  1155. Br(
  1156. an({}, 'a', {
  1157. get: function() {
  1158. return an(this, 'a', { value: 7 }).a;
  1159. }
  1160. })
  1161. ).a
  1162. );
  1163. })
  1164. ? function(t, e, r) {
  1165. var n = on(en, e);
  1166. n && delete en[e], an(t, e, r), n && t !== en && an(en, e, n);
  1167. }
  1168. : an,
  1169. dn = function(t, e) {
  1170. var r = (cn[t] = Br(rn.prototype));
  1171. return Jr(r, { type: 'Symbol', tag: t, description: e }), a || (r.description = e), r;
  1172. },
  1173. mn = zt
  1174. ? function(t) {
  1175. return 'symbol' == typeof t;
  1176. }
  1177. : function(t) {
  1178. return Object(t) instanceof rn;
  1179. },
  1180. xn = function(t, e, r) {
  1181. t === en && xn(ln, e, r), E(t);
  1182. var n = m(e, !0);
  1183. return (
  1184. E(r),
  1185. b(cn, n)
  1186. ? (r.enumerable
  1187. ? (b(t, Zr) && t[Zr][n] && (t[Zr][n] = !1), (r = Br(r, { enumerable: l(0, !1) })))
  1188. : (b(t, Zr) || an(t, Zr, l(1, {})), (t[Zr][n] = !0)),
  1189. vn(t, n, r))
  1190. : an(t, n, r)
  1191. );
  1192. },
  1193. bn = function(t, e) {
  1194. E(t);
  1195. var r = v(e),
  1196. n = Dr(r).concat(Pn(r));
  1197. return (
  1198. Qr(n, function(e) {
  1199. (a && !wn.call(r, e)) || xn(t, e, r[e]);
  1200. }),
  1201. t
  1202. );
  1203. },
  1204. wn = function(t) {
  1205. var e = m(t, !0),
  1206. r = sn.call(this, e);
  1207. return (
  1208. !(this === en && b(cn, e) && !b(ln, e)) &&
  1209. (!(r || !b(this, e) || !b(cn, e) || (b(this, Zr) && this[Zr][e])) || r)
  1210. );
  1211. },
  1212. Sn = function(t, e) {
  1213. var r = v(t),
  1214. n = m(e, !0);
  1215. if (r !== en || !b(cn, n) || b(ln, n)) {
  1216. var i = on(r, n);
  1217. return !i || !b(cn, n) || (b(r, Zr) && r[Zr][n]) || (i.enumerable = !0), i;
  1218. }
  1219. },
  1220. kn = function(t) {
  1221. var e = un(v(t)),
  1222. r = [];
  1223. return (
  1224. Qr(e, function(t) {
  1225. b(cn, t) || b(W, t) || r.push(t);
  1226. }),
  1227. r
  1228. );
  1229. },
  1230. Pn = function(t) {
  1231. var e = t === en,
  1232. r = un(e ? ln : v(t)),
  1233. n = [];
  1234. return (
  1235. Qr(r, function(t) {
  1236. !b(cn, t) || (e && !b(en, t)) || n.push(cn[t]);
  1237. }),
  1238. n
  1239. );
  1240. };
  1241. if (
  1242. (jt ||
  1243. (rt(
  1244. (rn = function() {
  1245. if (this instanceof rn) throw TypeError('Symbol is not a constructor');
  1246. var t = arguments.length && void 0 !== arguments[0] ? String(arguments[0]) : void 0,
  1247. e = G(t),
  1248. r = function(t) {
  1249. this === en && r.call(ln, t),
  1250. b(this, Zr) && b(this[Zr], e) && (this[Zr][e] = !1),
  1251. vn(this, e, l(1, t));
  1252. };
  1253. return a && yn && vn(en, e, { configurable: !0, set: r }), dn(e, t);
  1254. }).prototype,
  1255. 'toString',
  1256. function() {
  1257. return tn(this).tag;
  1258. }
  1259. ),
  1260. rt(rn, 'withoutSetter', function(t) {
  1261. return dn(G(t), t);
  1262. }),
  1263. (c.f = wn),
  1264. (T.f = xn),
  1265. (A.f = Sn),
  1266. (bt.f = Gr.f = kn),
  1267. (wt.f = Pn),
  1268. (qr.f = function(t) {
  1269. return dn($t(t), t);
  1270. }),
  1271. a &&
  1272. (an(rn.prototype, 'description', {
  1273. configurable: !0,
  1274. get: function() {
  1275. return tn(this).description;
  1276. }
  1277. }),
  1278. rt(en, 'propertyIsEnumerable', wn, { unsafe: !0 }))),
  1279. Dt({ global: !0, wrap: !0, forced: !jt, sham: !jt }, { Symbol: rn }),
  1280. Qr(Dr(pn), function(t) {
  1281. Wr(t);
  1282. }),
  1283. Dt(
  1284. { target: 'Symbol', stat: !0, forced: !jt },
  1285. {
  1286. for: function(t) {
  1287. var e = String(t);
  1288. if (b(fn, e)) return fn[e];
  1289. var r = rn(e);
  1290. return (fn[e] = r), (hn[r] = e), r;
  1291. },
  1292. keyFor: function(t) {
  1293. if (!mn(t)) throw TypeError(t + ' is not a symbol');
  1294. if (b(hn, t)) return hn[t];
  1295. },
  1296. useSetter: function() {
  1297. yn = !0;
  1298. },
  1299. useSimple: function() {
  1300. yn = !1;
  1301. }
  1302. }
  1303. ),
  1304. Dt(
  1305. { target: 'Object', stat: !0, forced: !jt, sham: !a },
  1306. {
  1307. create: function(t, e) {
  1308. return void 0 === e ? Br(t) : bn(Br(t), e);
  1309. },
  1310. defineProperty: xn,
  1311. defineProperties: bn,
  1312. getOwnPropertyDescriptor: Sn
  1313. }
  1314. ),
  1315. Dt({ target: 'Object', stat: !0, forced: !jt }, { getOwnPropertyNames: kn, getOwnPropertySymbols: Pn }),
  1316. Dt(
  1317. {
  1318. target: 'Object',
  1319. stat: !0,
  1320. forced: o(function() {
  1321. wt.f(1);
  1322. })
  1323. },
  1324. {
  1325. getOwnPropertySymbols: function(t) {
  1326. return wt.f(It(t));
  1327. }
  1328. }
  1329. ),
  1330. nn)
  1331. ) {
  1332. var Rn =
  1333. !jt ||
  1334. o(function() {
  1335. var t = rn();
  1336. return '[null]' != nn([t]) || '{}' != nn({ a: t }) || '{}' != nn(Object(t));
  1337. });
  1338. Dt(
  1339. { target: 'JSON', stat: !0, forced: Rn },
  1340. {
  1341. stringify: function(t, e, r) {
  1342. for (var n, i = [t], o = 1; arguments.length > o; ) i.push(arguments[o++]);
  1343. if (((n = e), (d(e) || void 0 !== t) && !mn(t)))
  1344. return (
  1345. Lt(e) ||
  1346. (e = function(t, e) {
  1347. if (('function' == typeof n && (e = n.call(this, t, e)), !mn(e))) return e;
  1348. }),
  1349. (i[1] = e),
  1350. nn.apply(null, i)
  1351. );
  1352. }
  1353. }
  1354. );
  1355. }
  1356. rn.prototype[Kr] || O(rn.prototype, Kr, rn.prototype.valueOf), Yr(rn, 'Symbol'), (W[Zr] = !0);
  1357. var An = Ht.filter,
  1358. En = te('filter'),
  1359. Cn = ie('filter');
  1360. Dt(
  1361. { target: 'Array', proto: !0, forced: !En || !Cn },
  1362. {
  1363. filter: function(t) {
  1364. return An(this, t, arguments.length > 1 ? arguments[1] : void 0);
  1365. }
  1366. }
  1367. );
  1368. var Tn = Ht.forEach,
  1369. On = rr('forEach'),
  1370. Mn = ie('forEach'),
  1371. Dn =
  1372. On && Mn
  1373. ? [].forEach
  1374. : function(t) {
  1375. return Tn(this, t, arguments.length > 1 ? arguments[1] : void 0);
  1376. };
  1377. Dt({ target: 'Array', proto: !0, forced: [].forEach != Dn }, { forEach: Dn });
  1378. var Vn = A.f,
  1379. Nn = o(function() {
  1380. Vn(1);
  1381. });
  1382. Dt(
  1383. { target: 'Object', stat: !0, forced: !a || Nn, sham: !a },
  1384. {
  1385. getOwnPropertyDescriptor: function(t, e) {
  1386. return Vn(v(t), e);
  1387. }
  1388. }
  1389. );
  1390. var In = function(t, e, r) {
  1391. var n = m(e);
  1392. n in t ? T.f(t, n, l(0, r)) : (t[n] = r);
  1393. };
  1394. Dt(
  1395. { target: 'Object', stat: !0, sham: !a },
  1396. {
  1397. getOwnPropertyDescriptors: function(t) {
  1398. for (var e, r, n = v(t), i = A.f, o = St(n), a = {}, u = 0; o.length > u; )
  1399. void 0 !== (r = i(n, (e = o[u++]))) && In(a, e, r);
  1400. return a;
  1401. }
  1402. }
  1403. );
  1404. var Ln = o(function() {
  1405. Dr(1);
  1406. });
  1407. Dt(
  1408. { target: 'Object', stat: !0, forced: Ln },
  1409. {
  1410. keys: function(t) {
  1411. return Dr(It(t));
  1412. }
  1413. }
  1414. );
  1415. var jn = {
  1416. CSSRuleList: 0,
  1417. CSSStyleDeclaration: 0,
  1418. CSSValueList: 0,
  1419. ClientRectList: 0,
  1420. DOMRectList: 0,
  1421. DOMStringList: 0,
  1422. DOMTokenList: 1,
  1423. DataTransferItemList: 0,
  1424. FileList: 0,
  1425. HTMLAllCollection: 0,
  1426. HTMLCollection: 0,
  1427. HTMLFormElement: 0,
  1428. HTMLSelectElement: 0,
  1429. MediaList: 0,
  1430. MimeTypeArray: 0,
  1431. NamedNodeMap: 0,
  1432. NodeList: 1,
  1433. PaintRequestList: 0,
  1434. Plugin: 0,
  1435. PluginArray: 0,
  1436. SVGLengthList: 0,
  1437. SVGNumberList: 0,
  1438. SVGPathSegList: 0,
  1439. SVGPointList: 0,
  1440. SVGStringList: 0,
  1441. SVGTransformList: 0,
  1442. SourceBufferList: 0,
  1443. StyleSheetList: 0,
  1444. TextTrackCueList: 0,
  1445. TextTrackList: 0,
  1446. TouchList: 0
  1447. };
  1448. for (var zn in jn) {
  1449. var Bn = i[zn],
  1450. Fn = Bn && Bn.prototype;
  1451. if (Fn && Fn.forEach !== Dn)
  1452. try {
  1453. O(Fn, 'forEach', Dn);
  1454. } catch (t) {
  1455. Fn.forEach = Dn;
  1456. }
  1457. }
  1458. var _n = r(function(t) {
  1459. var e = (function(t) {
  1460. var e = Object.prototype,
  1461. r = e.hasOwnProperty,
  1462. n = 'function' == typeof Symbol ? Symbol : {},
  1463. i = n.iterator || '@@iterator',
  1464. o = n.asyncIterator || '@@asyncIterator',
  1465. a = n.toStringTag || '@@toStringTag';
  1466. function u(t, e, r, n) {
  1467. var i = e && e.prototype instanceof l ? e : l,
  1468. o = Object.create(i.prototype),
  1469. a = new S(n || []);
  1470. return (
  1471. (o._invoke = (function(t, e, r) {
  1472. var n = 'suspendedStart';
  1473. return function(i, o) {
  1474. if ('executing' === n) throw new Error('Generator is already running');
  1475. if ('completed' === n) {
  1476. if ('throw' === i) throw o;
  1477. return P();
  1478. }
  1479. for (r.method = i, r.arg = o; ; ) {
  1480. var a = r.delegate;
  1481. if (a) {
  1482. var u = x(a, r);
  1483. if (u) {
  1484. if (u === c) continue;
  1485. return u;
  1486. }
  1487. }
  1488. if ('next' === r.method) r.sent = r._sent = r.arg;
  1489. else if ('throw' === r.method) {
  1490. if ('suspendedStart' === n) throw ((n = 'completed'), r.arg);
  1491. r.dispatchException(r.arg);
  1492. } else 'return' === r.method && r.abrupt('return', r.arg);
  1493. n = 'executing';
  1494. var l = s(t, e, r);
  1495. if ('normal' === l.type) {
  1496. if (((n = r.done ? 'completed' : 'suspendedYield'), l.arg === c)) continue;
  1497. return { value: l.arg, done: r.done };
  1498. }
  1499. 'throw' === l.type && ((n = 'completed'), (r.method = 'throw'), (r.arg = l.arg));
  1500. }
  1501. };
  1502. })(t, r, a)),
  1503. o
  1504. );
  1505. }
  1506. function s(t, e, r) {
  1507. try {
  1508. return { type: 'normal', arg: t.call(e, r) };
  1509. } catch (t) {
  1510. return { type: 'throw', arg: t };
  1511. }
  1512. }
  1513. t.wrap = u;
  1514. var c = {};
  1515. function l() {}
  1516. function f() {}
  1517. function h() {}
  1518. var p = {};
  1519. p[i] = function() {
  1520. return this;
  1521. };
  1522. var g = Object.getPrototypeOf,
  1523. y = g && g(g(k([])));
  1524. y && y !== e && r.call(y, i) && (p = y);
  1525. var v = (h.prototype = l.prototype = Object.create(p));
  1526. function d(t) {
  1527. ['next', 'throw', 'return'].forEach(function(e) {
  1528. t[e] = function(t) {
  1529. return this._invoke(e, t);
  1530. };
  1531. });
  1532. }
  1533. function m(t, e) {
  1534. var n;
  1535. this._invoke = function(i, o) {
  1536. function a() {
  1537. return new e(function(n, a) {
  1538. !(function n(i, o, a, u) {
  1539. var c = s(t[i], t, o);
  1540. if ('throw' !== c.type) {
  1541. var l = c.arg,
  1542. f = l.value;
  1543. return f && 'object' == typeof f && r.call(f, '__await')
  1544. ? e.resolve(f.__await).then(
  1545. function(t) {
  1546. n('next', t, a, u);
  1547. },
  1548. function(t) {
  1549. n('throw', t, a, u);
  1550. }
  1551. )
  1552. : e.resolve(f).then(
  1553. function(t) {
  1554. (l.value = t), a(l);
  1555. },
  1556. function(t) {
  1557. return n('throw', t, a, u);
  1558. }
  1559. );
  1560. }
  1561. u(c.arg);
  1562. })(i, o, n, a);
  1563. });
  1564. }
  1565. return (n = n ? n.then(a, a) : a());
  1566. };
  1567. }
  1568. function x(t, e) {
  1569. var r = t.iterator[e.method];
  1570. if (void 0 === r) {
  1571. if (((e.delegate = null), 'throw' === e.method)) {
  1572. if (
  1573. t.iterator.return &&
  1574. ((e.method = 'return'), (e.arg = void 0), x(t, e), 'throw' === e.method)
  1575. )
  1576. return c;
  1577. (e.method = 'throw'), (e.arg = new TypeError("The iterator does not provide a 'throw' method"));
  1578. }
  1579. return c;
  1580. }
  1581. var n = s(r, t.iterator, e.arg);
  1582. if ('throw' === n.type) return (e.method = 'throw'), (e.arg = n.arg), (e.delegate = null), c;
  1583. var i = n.arg;
  1584. return i
  1585. ? i.done
  1586. ? ((e[t.resultName] = i.value),
  1587. (e.next = t.nextLoc),
  1588. 'return' !== e.method && ((e.method = 'next'), (e.arg = void 0)),
  1589. (e.delegate = null),
  1590. c)
  1591. : i
  1592. : ((e.method = 'throw'),
  1593. (e.arg = new TypeError('iterator result is not an object')),
  1594. (e.delegate = null),
  1595. c);
  1596. }
  1597. function b(t) {
  1598. var e = { tryLoc: t[0] };
  1599. 1 in t && (e.catchLoc = t[1]),
  1600. 2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
  1601. this.tryEntries.push(e);
  1602. }
  1603. function w(t) {
  1604. var e = t.completion || {};
  1605. (e.type = 'normal'), delete e.arg, (t.completion = e);
  1606. }
  1607. function S(t) {
  1608. (this.tryEntries = [{ tryLoc: 'root' }]), t.forEach(b, this), this.reset(!0);
  1609. }
  1610. function k(t) {
  1611. if (t) {
  1612. var e = t[i];
  1613. if (e) return e.call(t);
  1614. if ('function' == typeof t.next) return t;
  1615. if (!isNaN(t.length)) {
  1616. var n = -1,
  1617. o = function e() {
  1618. for (; ++n < t.length; ) if (r.call(t, n)) return (e.value = t[n]), (e.done = !1), e;
  1619. return (e.value = void 0), (e.done = !0), e;
  1620. };
  1621. return (o.next = o);
  1622. }
  1623. }
  1624. return { next: P };
  1625. }
  1626. function P() {
  1627. return { value: void 0, done: !0 };
  1628. }
  1629. return (
  1630. (f.prototype = v.constructor = h),
  1631. (h.constructor = f),
  1632. (h[a] = f.displayName = 'GeneratorFunction'),
  1633. (t.isGeneratorFunction = function(t) {
  1634. var e = 'function' == typeof t && t.constructor;
  1635. return !!e && (e === f || 'GeneratorFunction' === (e.displayName || e.name));
  1636. }),
  1637. (t.mark = function(t) {
  1638. return (
  1639. Object.setPrototypeOf
  1640. ? Object.setPrototypeOf(t, h)
  1641. : ((t.__proto__ = h), a in t || (t[a] = 'GeneratorFunction')),
  1642. (t.prototype = Object.create(v)),
  1643. t
  1644. );
  1645. }),
  1646. (t.awrap = function(t) {
  1647. return { __await: t };
  1648. }),
  1649. d(m.prototype),
  1650. (m.prototype[o] = function() {
  1651. return this;
  1652. }),
  1653. (t.AsyncIterator = m),
  1654. (t.async = function(e, r, n, i, o) {
  1655. void 0 === o && (o = Promise);
  1656. var a = new m(u(e, r, n, i), o);
  1657. return t.isGeneratorFunction(r)
  1658. ? a
  1659. : a.next().then(function(t) {
  1660. return t.done ? t.value : a.next();
  1661. });
  1662. }),
  1663. d(v),
  1664. (v[a] = 'Generator'),
  1665. (v[i] = function() {
  1666. return this;
  1667. }),
  1668. (v.toString = function() {
  1669. return '[object Generator]';
  1670. }),
  1671. (t.keys = function(t) {
  1672. var e = [];
  1673. for (var r in t) e.push(r);
  1674. return (
  1675. e.reverse(),
  1676. function r() {
  1677. for (; e.length; ) {
  1678. var n = e.pop();
  1679. if (n in t) return (r.value = n), (r.done = !1), r;
  1680. }
  1681. return (r.done = !0), r;
  1682. }
  1683. );
  1684. }),
  1685. (t.values = k),
  1686. (S.prototype = {
  1687. constructor: S,
  1688. reset: function(t) {
  1689. if (
  1690. ((this.prev = 0),
  1691. (this.next = 0),
  1692. (this.sent = this._sent = void 0),
  1693. (this.done = !1),
  1694. (this.delegate = null),
  1695. (this.method = 'next'),
  1696. (this.arg = void 0),
  1697. this.tryEntries.forEach(w),
  1698. !t)
  1699. )
  1700. for (var e in this)
  1701. 't' === e.charAt(0) && r.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0);
  1702. },
  1703. stop: function() {
  1704. this.done = !0;
  1705. var t = this.tryEntries[0].completion;
  1706. if ('throw' === t.type) throw t.arg;
  1707. return this.rval;
  1708. },
  1709. dispatchException: function(t) {
  1710. if (this.done) throw t;
  1711. var e = this;
  1712. function n(r, n) {
  1713. return (
  1714. (a.type = 'throw'),
  1715. (a.arg = t),
  1716. (e.next = r),
  1717. n && ((e.method = 'next'), (e.arg = void 0)),
  1718. !!n
  1719. );
  1720. }
  1721. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  1722. var o = this.tryEntries[i],
  1723. a = o.completion;
  1724. if ('root' === o.tryLoc) return n('end');
  1725. if (o.tryLoc <= this.prev) {
  1726. var u = r.call(o, 'catchLoc'),
  1727. s = r.call(o, 'finallyLoc');
  1728. if (u && s) {
  1729. if (this.prev < o.catchLoc) return n(o.catchLoc, !0);
  1730. if (this.prev < o.finallyLoc) return n(o.finallyLoc);
  1731. } else if (u) {
  1732. if (this.prev < o.catchLoc) return n(o.catchLoc, !0);
  1733. } else {
  1734. if (!s) throw new Error('try statement without catch or finally');
  1735. if (this.prev < o.finallyLoc) return n(o.finallyLoc);
  1736. }
  1737. }
  1738. }
  1739. },
  1740. abrupt: function(t, e) {
  1741. for (var n = this.tryEntries.length - 1; n >= 0; --n) {
  1742. var i = this.tryEntries[n];
  1743. if (i.tryLoc <= this.prev && r.call(i, 'finallyLoc') && this.prev < i.finallyLoc) {
  1744. var o = i;
  1745. break;
  1746. }
  1747. }
  1748. o && ('break' === t || 'continue' === t) && o.tryLoc <= e && e <= o.finallyLoc && (o = null);
  1749. var a = o ? o.completion : {};
  1750. return (
  1751. (a.type = t),
  1752. (a.arg = e),
  1753. o ? ((this.method = 'next'), (this.next = o.finallyLoc), c) : this.complete(a)
  1754. );
  1755. },
  1756. complete: function(t, e) {
  1757. if ('throw' === t.type) throw t.arg;
  1758. return (
  1759. 'break' === t.type || 'continue' === t.type
  1760. ? (this.next = t.arg)
  1761. : 'return' === t.type
  1762. ? ((this.rval = this.arg = t.arg), (this.method = 'return'), (this.next = 'end'))
  1763. : 'normal' === t.type && e && (this.next = e),
  1764. c
  1765. );
  1766. },
  1767. finish: function(t) {
  1768. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  1769. var r = this.tryEntries[e];
  1770. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), w(r), c;
  1771. }
  1772. },
  1773. catch: function(t) {
  1774. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  1775. var r = this.tryEntries[e];
  1776. if (r.tryLoc === t) {
  1777. var n = r.completion;
  1778. if ('throw' === n.type) {
  1779. var i = n.arg;
  1780. w(r);
  1781. }
  1782. return i;
  1783. }
  1784. }
  1785. throw new Error('illegal catch attempt');
  1786. },
  1787. delegateYield: function(t, e, r) {
  1788. return (
  1789. (this.delegate = { iterator: k(t), resultName: e, nextLoc: r }),
  1790. 'next' === this.method && (this.arg = void 0),
  1791. c
  1792. );
  1793. }
  1794. }),
  1795. t
  1796. );
  1797. })(t.exports);
  1798. try {
  1799. regeneratorRuntime = e;
  1800. } catch (t) {
  1801. Function('r', 'regeneratorRuntime = r')(e);
  1802. }
  1803. });
  1804. function $n(t, e, r, n, i, o, a) {
  1805. try {
  1806. var u = t[o](a),
  1807. s = u.value;
  1808. } catch (t) {
  1809. return void r(t);
  1810. }
  1811. u.done ? e(s) : Promise.resolve(s).then(n, i);
  1812. }
  1813. var Gn = function(t) {
  1814. return function() {
  1815. var e = this,
  1816. r = arguments;
  1817. return new Promise(function(n, i) {
  1818. var o = t.apply(e, r);
  1819. function a(t) {
  1820. $n(o, n, i, a, u, 'next', t);
  1821. }
  1822. function u(t) {
  1823. $n(o, n, i, a, u, 'throw', t);
  1824. }
  1825. a(void 0);
  1826. });
  1827. };
  1828. };
  1829. var qn = function(t, e, r) {
  1830. return (
  1831. e in t
  1832. ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 })
  1833. : (t[e] = r),
  1834. t
  1835. );
  1836. };
  1837. var Un = function(t, e) {
  1838. if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function');
  1839. };
  1840. function Wn(t, e) {
  1841. for (var r = 0; r < e.length; r++) {
  1842. var n = e[r];
  1843. (n.enumerable = n.enumerable || !1),
  1844. (n.configurable = !0),
  1845. 'value' in n && (n.writable = !0),
  1846. Object.defineProperty(t, n.key, n);
  1847. }
  1848. }
  1849. var Hn = function(t, e, r) {
  1850. return e && Wn(t.prototype, e), r && Wn(t, r), t;
  1851. },
  1852. Xn = $t('isConcatSpreadable'),
  1853. Yn =
  1854. Kt >= 51 ||
  1855. !o(function() {
  1856. var t = [];
  1857. return (t[Xn] = !1), t.concat()[0] !== t;
  1858. }),
  1859. Qn = te('concat'),
  1860. Zn = function(t) {
  1861. if (!d(t)) return !1;
  1862. var e = t[Xn];
  1863. return void 0 !== e ? !!e : Lt(t);
  1864. };
  1865. Dt(
  1866. { target: 'Array', proto: !0, forced: !Yn || !Qn },
  1867. {
  1868. concat: function(t) {
  1869. var e,
  1870. r,
  1871. n,
  1872. i,
  1873. o,
  1874. a = It(this),
  1875. u = qt(a, 0),
  1876. s = 0;
  1877. for (e = -1, n = arguments.length; e < n; e++)
  1878. if (((o = -1 === e ? a : arguments[e]), Zn(o))) {
  1879. if (s + (i = lt(o.length)) > 9007199254740991)
  1880. throw TypeError('Maximum allowed index exceeded');
  1881. for (r = 0; r < i; r++, s++) r in o && In(u, s, o[r]);
  1882. } else {
  1883. if (s >= 9007199254740991) throw TypeError('Maximum allowed index exceeded');
  1884. In(u, s++, o);
  1885. }
  1886. return (u.length = s), u;
  1887. }
  1888. }
  1889. );
  1890. var Kn = Ht.every,
  1891. Jn = rr('every'),
  1892. ti = ie('every');
  1893. Dt(
  1894. { target: 'Array', proto: !0, forced: !Jn || !ti },
  1895. {
  1896. every: function(t) {
  1897. return Kn(this, t, arguments.length > 1 ? arguments[1] : void 0);
  1898. }
  1899. }
  1900. );
  1901. var ei = function(t) {
  1902. return function(e, r, n, i) {
  1903. Vt(r);
  1904. var o = It(e),
  1905. a = g(o),
  1906. u = lt(o.length),
  1907. s = t ? u - 1 : 0,
  1908. c = t ? -1 : 1;
  1909. if (n < 2)
  1910. for (;;) {
  1911. if (s in a) {
  1912. (i = a[s]), (s += c);
  1913. break;
  1914. }
  1915. if (((s += c), t ? s < 0 : u <= s))
  1916. throw TypeError('Reduce of empty array with no initial value');
  1917. }
  1918. for (; t ? s >= 0 : u > s; s += c) s in a && (i = r(i, a[s], s, o));
  1919. return i;
  1920. };
  1921. },
  1922. ri = { left: ei(!1), right: ei(!0) }.left,
  1923. ni = rr('reduce'),
  1924. ii = ie('reduce', { 1: 0 });
  1925. Dt(
  1926. { target: 'Array', proto: !0, forced: !ni || !ii },
  1927. {
  1928. reduce: function(t) {
  1929. return ri(this, t, arguments.length, arguments.length > 1 ? arguments[1] : void 0);
  1930. }
  1931. }
  1932. );
  1933. var oi = {};
  1934. oi[$t('toStringTag')] = 'z';
  1935. var ai = '[object z]' === String(oi),
  1936. ui = $t('toStringTag'),
  1937. si =
  1938. 'Arguments' ==
  1939. h(
  1940. (function() {
  1941. return arguments;
  1942. })()
  1943. ),
  1944. ci = ai
  1945. ? h
  1946. : function(t) {
  1947. var e, r, n;
  1948. return void 0 === t
  1949. ? 'Undefined'
  1950. : null === t
  1951. ? 'Null'
  1952. : 'string' ==
  1953. typeof (r = (function(t, e) {
  1954. try {
  1955. return t[e];
  1956. } catch (t) {}
  1957. })((e = Object(t)), ui))
  1958. ? r
  1959. : si
  1960. ? h(e)
  1961. : 'Object' == (n = h(e)) && 'function' == typeof e.callee
  1962. ? 'Arguments'
  1963. : n;
  1964. },
  1965. li = ai
  1966. ? {}.toString
  1967. : function() {
  1968. return '[object ' + ci(this) + ']';
  1969. };
  1970. ai || rt(Object.prototype, 'toString', li, { unsafe: !0 });
  1971. var fi = i.Promise,
  1972. hi = function(t, e, r) {
  1973. for (var n in e) rt(t, n, e[n], r);
  1974. return t;
  1975. },
  1976. pi = $t('species'),
  1977. gi = function(t) {
  1978. var e = ot(t),
  1979. r = T.f;
  1980. a &&
  1981. e &&
  1982. !e[pi] &&
  1983. r(e, pi, {
  1984. configurable: !0,
  1985. get: function() {
  1986. return this;
  1987. }
  1988. });
  1989. },
  1990. yi = function(t, e, r) {
  1991. if (!(t instanceof e)) throw TypeError('Incorrect ' + (r ? r + ' ' : '') + 'invocation');
  1992. return t;
  1993. },
  1994. vi = {},
  1995. di = $t('iterator'),
  1996. mi = Array.prototype,
  1997. xi = function(t) {
  1998. return void 0 !== t && (vi.Array === t || mi[di] === t);
  1999. },
  2000. bi = $t('iterator'),
  2001. wi = function(t) {
  2002. if (null != t) return t[bi] || t['@@iterator'] || vi[ci(t)];
  2003. },
  2004. Si = function(t, e, r, n) {
  2005. try {
  2006. return n ? e(E(r)[0], r[1]) : e(r);
  2007. } catch (e) {
  2008. var i = t.return;
  2009. throw (void 0 !== i && E(i.call(t)), e);
  2010. }
  2011. },
  2012. ki = r(function(t) {
  2013. var e = function(t, e) {
  2014. (this.stopped = t), (this.result = e);
  2015. };
  2016. (t.exports = function(t, r, n, i, o) {
  2017. var a,
  2018. u,
  2019. s,
  2020. c,
  2021. l,
  2022. f,
  2023. h,
  2024. p = Nt(r, n, i ? 2 : 1);
  2025. if (o) a = t;
  2026. else {
  2027. if ('function' != typeof (u = wi(t))) throw TypeError('Target is not iterable');
  2028. if (xi(u)) {
  2029. for (s = 0, c = lt(t.length); c > s; s++)
  2030. if ((l = i ? p(E((h = t[s]))[0], h[1]) : p(t[s])) && l instanceof e) return l;
  2031. return new e(!1);
  2032. }
  2033. a = u.call(t);
  2034. }
  2035. for (f = a.next; !(h = f.call(a)).done; )
  2036. if ('object' == typeof (l = Si(a, p, h.value, i)) && l && l instanceof e) return l;
  2037. return new e(!1);
  2038. }).stop = function(t) {
  2039. return new e(!0, t);
  2040. };
  2041. }),
  2042. Pi = $t('iterator'),
  2043. Ri = !1;
  2044. try {
  2045. var Ai = 0,
  2046. Ei = {
  2047. next: function() {
  2048. return { done: !!Ai++ };
  2049. },
  2050. return: function() {
  2051. Ri = !0;
  2052. }
  2053. };
  2054. (Ei[Pi] = function() {
  2055. return this;
  2056. }),
  2057. Array.from(Ei, function() {
  2058. throw 2;
  2059. });
  2060. } catch (t) {}
  2061. var Ci,
  2062. Ti,
  2063. Oi,
  2064. Mi = function(t, e) {
  2065. if (!e && !Ri) return !1;
  2066. var r = !1;
  2067. try {
  2068. var n = {};
  2069. (n[Pi] = function() {
  2070. return {
  2071. next: function() {
  2072. return { done: (r = !0) };
  2073. }
  2074. };
  2075. }),
  2076. t(n);
  2077. } catch (t) {}
  2078. return r;
  2079. },
  2080. Di = $t('species'),
  2081. Vi = function(t, e) {
  2082. var r,
  2083. n = E(t).constructor;
  2084. return void 0 === n || null == (r = E(n)[Di]) ? e : Vt(r);
  2085. },
  2086. Ni = /(iphone|ipod|ipad).*applewebkit/i.test(Xt),
  2087. Ii = i.location,
  2088. Li = i.setImmediate,
  2089. ji = i.clearImmediate,
  2090. zi = i.process,
  2091. Bi = i.MessageChannel,
  2092. Fi = i.Dispatch,
  2093. _i = 0,
  2094. $i = {},
  2095. Gi = function(t) {
  2096. if ($i.hasOwnProperty(t)) {
  2097. var e = $i[t];
  2098. delete $i[t], e();
  2099. }
  2100. },
  2101. qi = function(t) {
  2102. return function() {
  2103. Gi(t);
  2104. };
  2105. },
  2106. Ui = function(t) {
  2107. Gi(t.data);
  2108. },
  2109. Wi = function(t) {
  2110. i.postMessage(t + '', Ii.protocol + '//' + Ii.host);
  2111. };
  2112. (Li && ji) ||
  2113. ((Li = function(t) {
  2114. for (var e = [], r = 1; arguments.length > r; ) e.push(arguments[r++]);
  2115. return (
  2116. ($i[++_i] = function() {
  2117. ('function' == typeof t ? t : Function(t)).apply(void 0, e);
  2118. }),
  2119. Ci(_i),
  2120. _i
  2121. );
  2122. }),
  2123. (ji = function(t) {
  2124. delete $i[t];
  2125. }),
  2126. 'process' == h(zi)
  2127. ? (Ci = function(t) {
  2128. zi.nextTick(qi(t));
  2129. })
  2130. : Fi && Fi.now
  2131. ? (Ci = function(t) {
  2132. Fi.now(qi(t));
  2133. })
  2134. : Bi && !Ni
  2135. ? ((Oi = (Ti = new Bi()).port2), (Ti.port1.onmessage = Ui), (Ci = Nt(Oi.postMessage, Oi, 1)))
  2136. : !i.addEventListener || 'function' != typeof postMessage || i.importScripts || o(Wi)
  2137. ? (Ci =
  2138. 'onreadystatechange' in k('script')
  2139. ? function(t) {
  2140. Nr.appendChild(k('script')).onreadystatechange = function() {
  2141. Nr.removeChild(this), Gi(t);
  2142. };
  2143. }
  2144. : function(t) {
  2145. setTimeout(qi(t), 0);
  2146. })
  2147. : ((Ci = Wi), i.addEventListener('message', Ui, !1)));
  2148. var Hi,
  2149. Xi,
  2150. Yi,
  2151. Qi,
  2152. Zi,
  2153. Ki,
  2154. Ji,
  2155. to,
  2156. eo = { set: Li, clear: ji },
  2157. ro = A.f,
  2158. no = eo.set,
  2159. io = i.MutationObserver || i.WebKitMutationObserver,
  2160. oo = i.process,
  2161. ao = i.Promise,
  2162. uo = 'process' == h(oo),
  2163. so = ro(i, 'queueMicrotask'),
  2164. co = so && so.value;
  2165. co ||
  2166. ((Hi = function() {
  2167. var t, e;
  2168. for (uo && (t = oo.domain) && t.exit(); Xi; ) {
  2169. (e = Xi.fn), (Xi = Xi.next);
  2170. try {
  2171. e();
  2172. } catch (t) {
  2173. throw (Xi ? Qi() : (Yi = void 0), t);
  2174. }
  2175. }
  2176. (Yi = void 0), t && t.enter();
  2177. }),
  2178. uo
  2179. ? (Qi = function() {
  2180. oo.nextTick(Hi);
  2181. })
  2182. : io && !Ni
  2183. ? ((Zi = !0),
  2184. (Ki = document.createTextNode('')),
  2185. new io(Hi).observe(Ki, { characterData: !0 }),
  2186. (Qi = function() {
  2187. Ki.data = Zi = !Zi;
  2188. }))
  2189. : ao && ao.resolve
  2190. ? ((Ji = ao.resolve(void 0)),
  2191. (to = Ji.then),
  2192. (Qi = function() {
  2193. to.call(Ji, Hi);
  2194. }))
  2195. : (Qi = function() {
  2196. no.call(i, Hi);
  2197. }));
  2198. var lo,
  2199. fo,
  2200. ho,
  2201. po,
  2202. go =
  2203. co ||
  2204. function(t) {
  2205. var e = { fn: t, next: void 0 };
  2206. Yi && (Yi.next = e), Xi || ((Xi = e), Qi()), (Yi = e);
  2207. },
  2208. yo = function(t) {
  2209. var e, r;
  2210. (this.promise = new t(function(t, n) {
  2211. if (void 0 !== e || void 0 !== r) throw TypeError('Bad Promise constructor');
  2212. (e = t), (r = n);
  2213. })),
  2214. (this.resolve = Vt(e)),
  2215. (this.reject = Vt(r));
  2216. },
  2217. vo = {
  2218. f: function(t) {
  2219. return new yo(t);
  2220. }
  2221. },
  2222. mo = function(t, e) {
  2223. if ((E(t), d(e) && e.constructor === t)) return e;
  2224. var r = vo.f(t);
  2225. return (0, r.resolve)(e), r.promise;
  2226. },
  2227. xo = function(t) {
  2228. try {
  2229. return { error: !1, value: t() };
  2230. } catch (t) {
  2231. return { error: !0, value: t };
  2232. }
  2233. },
  2234. bo = eo.set,
  2235. wo = $t('species'),
  2236. So = 'Promise',
  2237. ko = et.get,
  2238. Po = et.set,
  2239. Ro = et.getterFor(So),
  2240. Ao = fi,
  2241. Eo = i.TypeError,
  2242. Co = i.document,
  2243. To = i.process,
  2244. Oo = ot('fetch'),
  2245. Mo = vo.f,
  2246. Do = Mo,
  2247. Vo = 'process' == h(To),
  2248. No = !!(Co && Co.createEvent && i.dispatchEvent),
  2249. Io = Ot(So, function() {
  2250. if (!(j(Ao) !== String(Ao))) {
  2251. if (66 === Kt) return !0;
  2252. if (!Vo && 'function' != typeof PromiseRejectionEvent) return !0;
  2253. }
  2254. if (Kt >= 51 && /native code/.test(Ao)) return !1;
  2255. var t = Ao.resolve(1),
  2256. e = function(t) {
  2257. t(
  2258. function() {},
  2259. function() {}
  2260. );
  2261. };
  2262. return ((t.constructor = {})[wo] = e), !(t.then(function() {}) instanceof e);
  2263. }),
  2264. Lo =
  2265. Io ||
  2266. !Mi(function(t) {
  2267. Ao.all(t).catch(function() {});
  2268. }),
  2269. jo = function(t) {
  2270. var e;
  2271. return !(!d(t) || 'function' != typeof (e = t.then)) && e;
  2272. },
  2273. zo = function(t, e, r) {
  2274. if (!e.notified) {
  2275. e.notified = !0;
  2276. var n = e.reactions;
  2277. go(function() {
  2278. for (var i = e.value, o = 1 == e.state, a = 0; n.length > a; ) {
  2279. var u,
  2280. s,
  2281. c,
  2282. l = n[a++],
  2283. f = o ? l.ok : l.fail,
  2284. h = l.resolve,
  2285. p = l.reject,
  2286. g = l.domain;
  2287. try {
  2288. f
  2289. ? (o || (2 === e.rejection && $o(t, e), (e.rejection = 1)),
  2290. !0 === f ? (u = i) : (g && g.enter(), (u = f(i)), g && (g.exit(), (c = !0))),
  2291. u === l.promise ? p(Eo('Promise-chain cycle')) : (s = jo(u)) ? s.call(u, h, p) : h(u))
  2292. : p(i);
  2293. } catch (t) {
  2294. g && !c && g.exit(), p(t);
  2295. }
  2296. }
  2297. (e.reactions = []), (e.notified = !1), r && !e.rejection && Fo(t, e);
  2298. });
  2299. }
  2300. },
  2301. Bo = function(t, e, r) {
  2302. var n, o;
  2303. No
  2304. ? (((n = Co.createEvent('Event')).promise = e),
  2305. (n.reason = r),
  2306. n.initEvent(t, !1, !0),
  2307. i.dispatchEvent(n))
  2308. : (n = { promise: e, reason: r }),
  2309. (o = i['on' + t])
  2310. ? o(n)
  2311. : 'unhandledrejection' === t &&
  2312. (function(t, e) {
  2313. var r = i.console;
  2314. r && r.error && (1 === arguments.length ? r.error(t) : r.error(t, e));
  2315. })('Unhandled promise rejection', r);
  2316. },
  2317. Fo = function(t, e) {
  2318. bo.call(i, function() {
  2319. var r,
  2320. n = e.value;
  2321. if (
  2322. _o(e) &&
  2323. ((r = xo(function() {
  2324. Vo ? To.emit('unhandledRejection', n, t) : Bo('unhandledrejection', t, n);
  2325. })),
  2326. (e.rejection = Vo || _o(e) ? 2 : 1),
  2327. r.error)
  2328. )
  2329. throw r.value;
  2330. });
  2331. },
  2332. _o = function(t) {
  2333. return 1 !== t.rejection && !t.parent;
  2334. },
  2335. $o = function(t, e) {
  2336. bo.call(i, function() {
  2337. Vo ? To.emit('rejectionHandled', t) : Bo('rejectionhandled', t, e.value);
  2338. });
  2339. },
  2340. Go = function(t, e, r, n) {
  2341. return function(i) {
  2342. t(e, r, i, n);
  2343. };
  2344. },
  2345. qo = function(t, e, r, n) {
  2346. e.done || ((e.done = !0), n && (e = n), (e.value = r), (e.state = 2), zo(t, e, !0));
  2347. },
  2348. Uo = function(t, e, r, n) {
  2349. if (!e.done) {
  2350. (e.done = !0), n && (e = n);
  2351. try {
  2352. if (t === r) throw Eo("Promise can't be resolved itself");
  2353. var i = jo(r);
  2354. i
  2355. ? go(function() {
  2356. var n = { done: !1 };
  2357. try {
  2358. i.call(r, Go(Uo, t, n, e), Go(qo, t, n, e));
  2359. } catch (r) {
  2360. qo(t, n, r, e);
  2361. }
  2362. })
  2363. : ((e.value = r), (e.state = 1), zo(t, e, !1));
  2364. } catch (r) {
  2365. qo(t, { done: !1 }, r, e);
  2366. }
  2367. }
  2368. };
  2369. Io &&
  2370. ((Ao = function(t) {
  2371. yi(this, Ao, So), Vt(t), lo.call(this);
  2372. var e = ko(this);
  2373. try {
  2374. t(Go(Uo, this, e), Go(qo, this, e));
  2375. } catch (t) {
  2376. qo(this, e, t);
  2377. }
  2378. }),
  2379. ((lo = function(t) {
  2380. Po(this, {
  2381. type: So,
  2382. done: !1,
  2383. notified: !1,
  2384. parent: !1,
  2385. reactions: [],
  2386. rejection: !1,
  2387. state: 0,
  2388. value: void 0
  2389. });
  2390. }).prototype = hi(Ao.prototype, {
  2391. then: function(t, e) {
  2392. var r = Ro(this),
  2393. n = Mo(Vi(this, Ao));
  2394. return (
  2395. (n.ok = 'function' != typeof t || t),
  2396. (n.fail = 'function' == typeof e && e),
  2397. (n.domain = Vo ? To.domain : void 0),
  2398. (r.parent = !0),
  2399. r.reactions.push(n),
  2400. 0 != r.state && zo(this, r, !1),
  2401. n.promise
  2402. );
  2403. },
  2404. catch: function(t) {
  2405. return this.then(void 0, t);
  2406. }
  2407. })),
  2408. (fo = function() {
  2409. var t = new lo(),
  2410. e = ko(t);
  2411. (this.promise = t), (this.resolve = Go(Uo, t, e)), (this.reject = Go(qo, t, e));
  2412. }),
  2413. (vo.f = Mo = function(t) {
  2414. return t === Ao || t === ho ? new fo(t) : Do(t);
  2415. }),
  2416. 'function' == typeof fi &&
  2417. ((po = fi.prototype.then),
  2418. rt(
  2419. fi.prototype,
  2420. 'then',
  2421. function(t, e) {
  2422. var r = this;
  2423. return new Ao(function(t, e) {
  2424. po.call(r, t, e);
  2425. }).then(t, e);
  2426. },
  2427. { unsafe: !0 }
  2428. ),
  2429. 'function' == typeof Oo &&
  2430. Dt(
  2431. { global: !0, enumerable: !0, forced: !0 },
  2432. {
  2433. fetch: function(t) {
  2434. return mo(Ao, Oo.apply(i, arguments));
  2435. }
  2436. }
  2437. ))),
  2438. Dt({ global: !0, wrap: !0, forced: Io }, { Promise: Ao }),
  2439. Yr(Ao, So, !1),
  2440. gi(So),
  2441. (ho = ot(So)),
  2442. Dt(
  2443. { target: So, stat: !0, forced: Io },
  2444. {
  2445. reject: function(t) {
  2446. var e = Mo(this);
  2447. return e.reject.call(void 0, t), e.promise;
  2448. }
  2449. }
  2450. ),
  2451. Dt(
  2452. { target: So, stat: !0, forced: Io },
  2453. {
  2454. resolve: function(t) {
  2455. return mo(this, t);
  2456. }
  2457. }
  2458. ),
  2459. Dt(
  2460. { target: So, stat: !0, forced: Lo },
  2461. {
  2462. all: function(t) {
  2463. var e = this,
  2464. r = Mo(e),
  2465. n = r.resolve,
  2466. i = r.reject,
  2467. o = xo(function() {
  2468. var r = Vt(e.resolve),
  2469. o = [],
  2470. a = 0,
  2471. u = 1;
  2472. ki(t, function(t) {
  2473. var s = a++,
  2474. c = !1;
  2475. o.push(void 0),
  2476. u++,
  2477. r.call(e, t).then(function(t) {
  2478. c || ((c = !0), (o[s] = t), --u || n(o));
  2479. }, i);
  2480. }),
  2481. --u || n(o);
  2482. });
  2483. return o.error && i(o.value), r.promise;
  2484. },
  2485. race: function(t) {
  2486. var e = this,
  2487. r = Mo(e),
  2488. n = r.reject,
  2489. i = xo(function() {
  2490. var i = Vt(e.resolve);
  2491. ki(t, function(t) {
  2492. i.call(e, t).then(r.resolve, n);
  2493. });
  2494. });
  2495. return i.error && n(i.value), r.promise;
  2496. }
  2497. }
  2498. );
  2499. var Wo = [].push,
  2500. Ho = Math.min,
  2501. Xo = !o(function() {
  2502. return !RegExp(4294967295, 'y');
  2503. });
  2504. Ae(
  2505. 'split',
  2506. 2,
  2507. function(t, e, r) {
  2508. var n;
  2509. return (
  2510. (n =
  2511. 'c' == 'abbc'.split(/(b)*/)[1] ||
  2512. 4 != 'test'.split(/(?:)/, -1).length ||
  2513. 2 != 'ab'.split(/(?:ab)*/).length ||
  2514. 4 != '.'.split(/(.?)(.?)/).length ||
  2515. '.'.split(/()()/).length > 1 ||
  2516. ''.split(/.?/).length
  2517. ? function(t, r) {
  2518. var n = String(y(this)),
  2519. i = void 0 === r ? 4294967295 : r >>> 0;
  2520. if (0 === i) return [];
  2521. if (void 0 === t) return [n];
  2522. if (!Be(t)) return e.call(n, t, i);
  2523. for (
  2524. var o,
  2525. a,
  2526. u,
  2527. s = [],
  2528. c =
  2529. (t.ignoreCase ? 'i' : '') +
  2530. (t.multiline ? 'm' : '') +
  2531. (t.unicode ? 'u' : '') +
  2532. (t.sticky ? 'y' : ''),
  2533. l = 0,
  2534. f = new RegExp(t.source, c + 'g');
  2535. (o = xe.call(f, n)) &&
  2536. !(
  2537. (a = f.lastIndex) > l &&
  2538. (s.push(n.slice(l, o.index)),
  2539. o.length > 1 && o.index < n.length && Wo.apply(s, o.slice(1)),
  2540. (u = o[0].length),
  2541. (l = a),
  2542. s.length >= i)
  2543. );
  2544. )
  2545. f.lastIndex === o.index && f.lastIndex++;
  2546. return (
  2547. l === n.length ? (!u && f.test('')) || s.push('') : s.push(n.slice(l)),
  2548. s.length > i ? s.slice(0, i) : s
  2549. );
  2550. }
  2551. : '0'.split(void 0, 0).length
  2552. ? function(t, r) {
  2553. return void 0 === t && 0 === r ? [] : e.call(this, t, r);
  2554. }
  2555. : e),
  2556. [
  2557. function(e, r) {
  2558. var i = y(this),
  2559. o = null == e ? void 0 : e[t];
  2560. return void 0 !== o ? o.call(e, i, r) : n.call(String(i), e, r);
  2561. },
  2562. function(t, i) {
  2563. var o = r(n, t, this, i, n !== e);
  2564. if (o.done) return o.value;
  2565. var a = E(t),
  2566. u = String(this),
  2567. s = Vi(a, RegExp),
  2568. c = a.unicode,
  2569. l =
  2570. (a.ignoreCase ? 'i' : '') +
  2571. (a.multiline ? 'm' : '') +
  2572. (a.unicode ? 'u' : '') +
  2573. (Xo ? 'y' : 'g'),
  2574. f = new s(Xo ? a : '^(?:' + a.source + ')', l),
  2575. h = void 0 === i ? 4294967295 : i >>> 0;
  2576. if (0 === h) return [];
  2577. if (0 === u.length) return null === Me(f, u) ? [u] : [];
  2578. for (var p = 0, g = 0, y = []; g < u.length; ) {
  2579. f.lastIndex = Xo ? g : 0;
  2580. var v,
  2581. d = Me(f, Xo ? u : u.slice(g));
  2582. if (null === d || (v = Ho(lt(f.lastIndex + (Xo ? 0 : g)), u.length)) === p) g = Oe(u, g, c);
  2583. else {
  2584. if ((y.push(u.slice(p, g)), y.length === h)) return y;
  2585. for (var m = 1; m <= d.length - 1; m++) if ((y.push(d[m]), y.length === h)) return y;
  2586. g = p = v;
  2587. }
  2588. }
  2589. return y.push(u.slice(p)), y;
  2590. }
  2591. ]
  2592. );
  2593. },
  2594. !Xo
  2595. );
  2596. var Yo =
  2597. 'undefined' != typeof global
  2598. ? global
  2599. : 'undefined' != typeof self
  2600. ? self
  2601. : 'undefined' != typeof window
  2602. ? window
  2603. : {};
  2604. function Qo() {
  2605. throw new Error('setTimeout has not been defined');
  2606. }
  2607. function Zo() {
  2608. throw new Error('clearTimeout has not been defined');
  2609. }
  2610. var Ko = Qo,
  2611. Jo = Zo;
  2612. function ta(t) {
  2613. if (Ko === setTimeout) return setTimeout(t, 0);
  2614. if ((Ko === Qo || !Ko) && setTimeout) return (Ko = setTimeout), setTimeout(t, 0);
  2615. try {
  2616. return Ko(t, 0);
  2617. } catch (e) {
  2618. try {
  2619. return Ko.call(null, t, 0);
  2620. } catch (e) {
  2621. return Ko.call(this, t, 0);
  2622. }
  2623. }
  2624. }
  2625. 'function' == typeof Yo.setTimeout && (Ko = setTimeout),
  2626. 'function' == typeof Yo.clearTimeout && (Jo = clearTimeout);
  2627. var ea,
  2628. ra = [],
  2629. na = !1,
  2630. ia = -1;
  2631. function oa() {
  2632. na && ea && ((na = !1), ea.length ? (ra = ea.concat(ra)) : (ia = -1), ra.length && aa());
  2633. }
  2634. function aa() {
  2635. if (!na) {
  2636. var t = ta(oa);
  2637. na = !0;
  2638. for (var e = ra.length; e; ) {
  2639. for (ea = ra, ra = []; ++ia < e; ) ea && ea[ia].run();
  2640. (ia = -1), (e = ra.length);
  2641. }
  2642. (ea = null),
  2643. (na = !1),
  2644. (function(t) {
  2645. if (Jo === clearTimeout) return clearTimeout(t);
  2646. if ((Jo === Zo || !Jo) && clearTimeout) return (Jo = clearTimeout), clearTimeout(t);
  2647. try {
  2648. Jo(t);
  2649. } catch (e) {
  2650. try {
  2651. return Jo.call(null, t);
  2652. } catch (e) {
  2653. return Jo.call(this, t);
  2654. }
  2655. }
  2656. })(t);
  2657. }
  2658. }
  2659. function ua(t, e) {
  2660. (this.fun = t), (this.array = e);
  2661. }
  2662. ua.prototype.run = function() {
  2663. this.fun.apply(null, this.array);
  2664. };
  2665. function sa() {}
  2666. var ca = sa,
  2667. la = sa,
  2668. fa = sa,
  2669. ha = sa,
  2670. pa = sa,
  2671. ga = sa,
  2672. ya = sa;
  2673. var va = Yo.performance || {},
  2674. da =
  2675. va.now ||
  2676. va.mozNow ||
  2677. va.msNow ||
  2678. va.oNow ||
  2679. va.webkitNow ||
  2680. function() {
  2681. return new Date().getTime();
  2682. };
  2683. var ma = new Date();
  2684. for (
  2685. var xa = {
  2686. nextTick: function(t) {
  2687. var e = new Array(arguments.length - 1);
  2688. if (arguments.length > 1) for (var r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];
  2689. ra.push(new ua(t, e)), 1 !== ra.length || na || ta(aa);
  2690. },
  2691. title: 'browser',
  2692. browser: !0,
  2693. env: {},
  2694. argv: [],
  2695. version: '',
  2696. versions: {},
  2697. on: ca,
  2698. addListener: la,
  2699. once: fa,
  2700. off: ha,
  2701. removeListener: pa,
  2702. removeAllListeners: ga,
  2703. emit: ya,
  2704. binding: function(t) {
  2705. throw new Error('process.binding is not supported');
  2706. },
  2707. cwd: function() {
  2708. return '/';
  2709. },
  2710. chdir: function(t) {
  2711. throw new Error('process.chdir is not supported');
  2712. },
  2713. umask: function() {
  2714. return 0;
  2715. },
  2716. hrtime: function(t) {
  2717. var e = 0.001 * da.call(va),
  2718. r = Math.floor(e),
  2719. n = Math.floor((e % 1) * 1e9);
  2720. return t && ((r -= t[0]), (n -= t[1]) < 0 && (r--, (n += 1e9))), [r, n];
  2721. },
  2722. platform: 'browser',
  2723. release: {},
  2724. config: {},
  2725. uptime: function() {
  2726. return (new Date() - ma) / 1e3;
  2727. }
  2728. },
  2729. ba = r(function(t) {
  2730. (function() {
  2731. var e, r, n, i, o, a;
  2732. 'undefined' != typeof performance && null !== performance && performance.now
  2733. ? (t.exports = function() {
  2734. return performance.now();
  2735. })
  2736. : null != xa && xa.hrtime
  2737. ? ((t.exports = function() {
  2738. return (e() - o) / 1e6;
  2739. }),
  2740. (r = xa.hrtime),
  2741. (i = (e = function() {
  2742. var t;
  2743. return 1e9 * (t = r())[0] + t[1];
  2744. })()),
  2745. (a = 1e9 * xa.uptime()),
  2746. (o = i - a))
  2747. : Date.now
  2748. ? ((t.exports = function() {
  2749. return Date.now() - n;
  2750. }),
  2751. (n = Date.now()))
  2752. : ((t.exports = function() {
  2753. return new Date().getTime() - n;
  2754. }),
  2755. (n = new Date().getTime()));
  2756. }.call(e));
  2757. }),
  2758. wa = 'undefined' == typeof window ? e : window,
  2759. Sa = ['moz', 'webkit'],
  2760. ka = 'AnimationFrame',
  2761. Pa = wa['request' + ka],
  2762. Ra = wa['cancel' + ka] || wa['cancelRequest' + ka],
  2763. Aa = 0;
  2764. !Pa && Aa < Sa.length;
  2765. Aa++
  2766. )
  2767. (Pa = wa[Sa[Aa] + 'Request' + ka]), (Ra = wa[Sa[Aa] + 'Cancel' + ka] || wa[Sa[Aa] + 'CancelRequest' + ka]);
  2768. if (!Pa || !Ra) {
  2769. var Ea = 0,
  2770. Ca = 0,
  2771. Ta = [];
  2772. (Pa = function(t) {
  2773. if (0 === Ta.length) {
  2774. var e = ba(),
  2775. r = Math.max(0, 1e3 / 60 - (e - Ea));
  2776. (Ea = r + e),
  2777. setTimeout(function() {
  2778. var t = Ta.slice(0);
  2779. Ta.length = 0;
  2780. for (var e = 0; e < t.length; e++)
  2781. if (!t[e].cancelled)
  2782. try {
  2783. t[e].callback(Ea);
  2784. } catch (t) {
  2785. setTimeout(function() {
  2786. throw t;
  2787. }, 0);
  2788. }
  2789. }, Math.round(r));
  2790. }
  2791. return Ta.push({ handle: ++Ca, callback: t, cancelled: !1 }), Ca;
  2792. }),
  2793. (Ra = function(t) {
  2794. for (var e = 0; e < Ta.length; e++) Ta[e].handle === t && (Ta[e].cancelled = !0);
  2795. });
  2796. }
  2797. var Oa = function(t) {
  2798. return Pa.call(wa, t);
  2799. };
  2800. (Oa.cancel = function() {
  2801. Ra.apply(wa, arguments);
  2802. }),
  2803. (Oa.polyfill = function(t) {
  2804. t || (t = wa), (t.requestAnimationFrame = Pa), (t.cancelAnimationFrame = Ra);
  2805. });
  2806. var Ma = T.f,
  2807. Da = Function.prototype,
  2808. Va = Da.toString,
  2809. Na = /^\s*function ([^ (]*)/;
  2810. a &&
  2811. !('name' in Da) &&
  2812. Ma(Da, 'name', {
  2813. configurable: !0,
  2814. get: function() {
  2815. try {
  2816. return Va.call(this).match(Na)[1];
  2817. } catch (t) {
  2818. return '';
  2819. }
  2820. }
  2821. });
  2822. var Ia = function(t) {
  2823. (this.ok = !1),
  2824. (this.alpha = 1),
  2825. '#' == t.charAt(0) && (t = t.substr(1, 6)),
  2826. (t = (t = t.replace(/ /g, '')).toLowerCase());
  2827. var e = {
  2828. aliceblue: 'f0f8ff',
  2829. antiquewhite: 'faebd7',
  2830. aqua: '00ffff',
  2831. aquamarine: '7fffd4',
  2832. azure: 'f0ffff',
  2833. beige: 'f5f5dc',
  2834. bisque: 'ffe4c4',
  2835. black: '000000',
  2836. blanchedalmond: 'ffebcd',
  2837. blue: '0000ff',
  2838. blueviolet: '8a2be2',
  2839. brown: 'a52a2a',
  2840. burlywood: 'deb887',
  2841. cadetblue: '5f9ea0',
  2842. chartreuse: '7fff00',
  2843. chocolate: 'd2691e',
  2844. coral: 'ff7f50',
  2845. cornflowerblue: '6495ed',
  2846. cornsilk: 'fff8dc',
  2847. crimson: 'dc143c',
  2848. cyan: '00ffff',
  2849. darkblue: '00008b',
  2850. darkcyan: '008b8b',
  2851. darkgoldenrod: 'b8860b',
  2852. darkgray: 'a9a9a9',
  2853. darkgreen: '006400',
  2854. darkkhaki: 'bdb76b',
  2855. darkmagenta: '8b008b',
  2856. darkolivegreen: '556b2f',
  2857. darkorange: 'ff8c00',
  2858. darkorchid: '9932cc',
  2859. darkred: '8b0000',
  2860. darksalmon: 'e9967a',
  2861. darkseagreen: '8fbc8f',
  2862. darkslateblue: '483d8b',
  2863. darkslategray: '2f4f4f',
  2864. darkturquoise: '00ced1',
  2865. darkviolet: '9400d3',
  2866. deeppink: 'ff1493',
  2867. deepskyblue: '00bfff',
  2868. dimgray: '696969',
  2869. dodgerblue: '1e90ff',
  2870. feldspar: 'd19275',
  2871. firebrick: 'b22222',
  2872. floralwhite: 'fffaf0',
  2873. forestgreen: '228b22',
  2874. fuchsia: 'ff00ff',
  2875. gainsboro: 'dcdcdc',
  2876. ghostwhite: 'f8f8ff',
  2877. gold: 'ffd700',
  2878. goldenrod: 'daa520',
  2879. gray: '808080',
  2880. green: '008000',
  2881. greenyellow: 'adff2f',
  2882. honeydew: 'f0fff0',
  2883. hotpink: 'ff69b4',
  2884. indianred: 'cd5c5c',
  2885. indigo: '4b0082',
  2886. ivory: 'fffff0',
  2887. khaki: 'f0e68c',
  2888. lavender: 'e6e6fa',
  2889. lavenderblush: 'fff0f5',
  2890. lawngreen: '7cfc00',
  2891. lemonchiffon: 'fffacd',
  2892. lightblue: 'add8e6',
  2893. lightcoral: 'f08080',
  2894. lightcyan: 'e0ffff',
  2895. lightgoldenrodyellow: 'fafad2',
  2896. lightgrey: 'd3d3d3',
  2897. lightgreen: '90ee90',
  2898. lightpink: 'ffb6c1',
  2899. lightsalmon: 'ffa07a',
  2900. lightseagreen: '20b2aa',
  2901. lightskyblue: '87cefa',
  2902. lightslateblue: '8470ff',
  2903. lightslategray: '778899',
  2904. lightsteelblue: 'b0c4de',
  2905. lightyellow: 'ffffe0',
  2906. lime: '00ff00',
  2907. limegreen: '32cd32',
  2908. linen: 'faf0e6',
  2909. magenta: 'ff00ff',
  2910. maroon: '800000',
  2911. mediumaquamarine: '66cdaa',
  2912. mediumblue: '0000cd',
  2913. mediumorchid: 'ba55d3',
  2914. mediumpurple: '9370d8',
  2915. mediumseagreen: '3cb371',
  2916. mediumslateblue: '7b68ee',
  2917. mediumspringgreen: '00fa9a',
  2918. mediumturquoise: '48d1cc',
  2919. mediumvioletred: 'c71585',
  2920. midnightblue: '191970',
  2921. mintcream: 'f5fffa',
  2922. mistyrose: 'ffe4e1',
  2923. moccasin: 'ffe4b5',
  2924. navajowhite: 'ffdead',
  2925. navy: '000080',
  2926. oldlace: 'fdf5e6',
  2927. olive: '808000',
  2928. olivedrab: '6b8e23',
  2929. orange: 'ffa500',
  2930. orangered: 'ff4500',
  2931. orchid: 'da70d6',
  2932. palegoldenrod: 'eee8aa',
  2933. palegreen: '98fb98',
  2934. paleturquoise: 'afeeee',
  2935. palevioletred: 'd87093',
  2936. papayawhip: 'ffefd5',
  2937. peachpuff: 'ffdab9',
  2938. peru: 'cd853f',
  2939. pink: 'ffc0cb',
  2940. plum: 'dda0dd',
  2941. powderblue: 'b0e0e6',
  2942. purple: '800080',
  2943. rebeccapurple: '663399',
  2944. red: 'ff0000',
  2945. rosybrown: 'bc8f8f',
  2946. royalblue: '4169e1',
  2947. saddlebrown: '8b4513',
  2948. salmon: 'fa8072',
  2949. sandybrown: 'f4a460',
  2950. seagreen: '2e8b57',
  2951. seashell: 'fff5ee',
  2952. sienna: 'a0522d',
  2953. silver: 'c0c0c0',
  2954. skyblue: '87ceeb',
  2955. slateblue: '6a5acd',
  2956. slategray: '708090',
  2957. snow: 'fffafa',
  2958. springgreen: '00ff7f',
  2959. steelblue: '4682b4',
  2960. tan: 'd2b48c',
  2961. teal: '008080',
  2962. thistle: 'd8bfd8',
  2963. tomato: 'ff6347',
  2964. turquoise: '40e0d0',
  2965. violet: 'ee82ee',
  2966. violetred: 'd02090',
  2967. wheat: 'f5deb3',
  2968. white: 'ffffff',
  2969. whitesmoke: 'f5f5f5',
  2970. yellow: 'ffff00',
  2971. yellowgreen: '9acd32'
  2972. };
  2973. t = e[t] || t;
  2974. for (
  2975. var r = [
  2976. {
  2977. re: /^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,
  2978. example: ['rgba(123, 234, 45, 0.8)', 'rgba(255,234,245,1.0)'],
  2979. process: function(t) {
  2980. return [parseInt(t[1]), parseInt(t[2]), parseInt(t[3]), parseFloat(t[4])];
  2981. }
  2982. },
  2983. {
  2984. re: /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,
  2985. example: ['rgb(123, 234, 45)', 'rgb(255,234,245)'],
  2986. process: function(t) {
  2987. return [parseInt(t[1]), parseInt(t[2]), parseInt(t[3])];
  2988. }
  2989. },
  2990. {
  2991. re: /^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  2992. example: ['#00ff00', '336699'],
  2993. process: function(t) {
  2994. return [parseInt(t[1], 16), parseInt(t[2], 16), parseInt(t[3], 16)];
  2995. }
  2996. },
  2997. {
  2998. re: /^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  2999. example: ['#fb0', 'f0f'],
  3000. process: function(t) {
  3001. return [
  3002. parseInt(t[1] + t[1], 16),
  3003. parseInt(t[2] + t[2], 16),
  3004. parseInt(t[3] + t[3], 16)
  3005. ];
  3006. }
  3007. }
  3008. ],
  3009. n = 0;
  3010. n < r.length;
  3011. n++
  3012. ) {
  3013. var i = r[n].re,
  3014. o = r[n].process,
  3015. a = i.exec(t);
  3016. if (a) {
  3017. var u = o(a);
  3018. (this.r = u[0]),
  3019. (this.g = u[1]),
  3020. (this.b = u[2]),
  3021. u.length > 3 && (this.alpha = u[3]),
  3022. (this.ok = !0);
  3023. }
  3024. }
  3025. (this.r = this.r < 0 || isNaN(this.r) ? 0 : this.r > 255 ? 255 : this.r),
  3026. (this.g = this.g < 0 || isNaN(this.g) ? 0 : this.g > 255 ? 255 : this.g),
  3027. (this.b = this.b < 0 || isNaN(this.b) ? 0 : this.b > 255 ? 255 : this.b),
  3028. (this.alpha = this.alpha < 0 ? 0 : this.alpha > 1 || isNaN(this.alpha) ? 1 : this.alpha),
  3029. (this.toRGB = function() {
  3030. return 'rgb(' + this.r + ', ' + this.g + ', ' + this.b + ')';
  3031. }),
  3032. (this.toRGBA = function() {
  3033. return 'rgba(' + this.r + ', ' + this.g + ', ' + this.b + ', ' + this.alpha + ')';
  3034. }),
  3035. (this.toHex = function() {
  3036. var t = this.r.toString(16),
  3037. e = this.g.toString(16),
  3038. r = this.b.toString(16);
  3039. return (
  3040. 1 == t.length && (t = '0' + t),
  3041. 1 == e.length && (e = '0' + e),
  3042. 1 == r.length && (r = '0' + r),
  3043. '#' + t + e + r
  3044. );
  3045. }),
  3046. (this.getHelpXML = function() {
  3047. for (var t = new Array(), n = 0; n < r.length; n++)
  3048. for (var i = r[n].example, o = 0; o < i.length; o++) t[t.length] = i[o];
  3049. for (var a in e) t[t.length] = a;
  3050. var u = document.createElement('ul');
  3051. u.setAttribute('id', 'rgbcolor-examples');
  3052. for (n = 0; n < t.length; n++)
  3053. try {
  3054. var s = document.createElement('li'),
  3055. c = new RGBColor(t[n]),
  3056. l = document.createElement('div');
  3057. (l.style.cssText =
  3058. 'margin: 3px; border: 1px solid black; background:' +
  3059. c.toHex() +
  3060. '; color:' +
  3061. c.toHex()),
  3062. l.appendChild(document.createTextNode('test'));
  3063. var f = document.createTextNode(' ' + t[n] + ' -> ' + c.toRGB() + ' -> ' + c.toHex());
  3064. s.appendChild(l), s.appendChild(f), u.appendChild(s);
  3065. } catch (t) {}
  3066. return u;
  3067. });
  3068. },
  3069. La = (function() {
  3070. function t(e, r, n) {
  3071. Un(this, t), (this.document = e), (this.name = r), (this.value = n), (this.isNormalizedColor = !1);
  3072. }
  3073. return (
  3074. Hn(
  3075. t,
  3076. [
  3077. {
  3078. key: 'hasValue',
  3079. value: function() {
  3080. var t = this.value;
  3081. return null !== t && '' !== t && 0 !== t && void 0 !== t;
  3082. }
  3083. },
  3084. {
  3085. key: 'isString',
  3086. value: function(t) {
  3087. var e = this.value,
  3088. r = 'string' == typeof e;
  3089. return r && t ? t.test(e) : r;
  3090. }
  3091. },
  3092. {
  3093. key: 'isUrlDefinition',
  3094. value: function() {
  3095. return this.isString(/^url\(/);
  3096. }
  3097. },
  3098. {
  3099. key: 'isPixels',
  3100. value: function() {
  3101. if (!this.hasValue()) return !1;
  3102. var t = this.getString();
  3103. switch (!0) {
  3104. case /px$/.test(t):
  3105. case /^[0-9]+$/.test(t):
  3106. return !0;
  3107. default:
  3108. return !1;
  3109. }
  3110. }
  3111. },
  3112. {
  3113. key: 'setValue',
  3114. value: function(t) {
  3115. return (this.value = t), this;
  3116. }
  3117. },
  3118. {
  3119. key: 'getValue',
  3120. value: function(t) {
  3121. return void 0 === t || this.hasValue() ? this.value : t;
  3122. }
  3123. },
  3124. {
  3125. key: 'getNumber',
  3126. value: function(t) {
  3127. if (!this.hasValue()) return void 0 === t ? 0 : parseFloat(t);
  3128. var e = this.value,
  3129. r = parseFloat(e);
  3130. return this.isString(/%$/) && (r /= 100), r;
  3131. }
  3132. },
  3133. {
  3134. key: 'getString',
  3135. value: function(t) {
  3136. return void 0 === t || this.hasValue()
  3137. ? void 0 === this.value
  3138. ? ''
  3139. : String(this.value)
  3140. : String(t);
  3141. }
  3142. },
  3143. {
  3144. key: 'getColor',
  3145. value: function(t) {
  3146. var e = this.getString(t);
  3147. return (
  3148. this.isNormalizedColor ||
  3149. ((this.isNormalizedColor = !0), (e = er(e)), (this.value = e)),
  3150. e
  3151. );
  3152. }
  3153. },
  3154. {
  3155. key: 'getDpi',
  3156. value: function() {
  3157. return 96;
  3158. }
  3159. },
  3160. {
  3161. key: 'getRem',
  3162. value: function() {
  3163. return this.document.rootEmSize;
  3164. }
  3165. },
  3166. {
  3167. key: 'getEm',
  3168. value: function() {
  3169. return this.document.emSize;
  3170. }
  3171. },
  3172. {
  3173. key: 'getUnits',
  3174. value: function() {
  3175. return this.getString().replace(/[0-9\.\-]/g, '');
  3176. }
  3177. },
  3178. {
  3179. key: 'getPixels',
  3180. value: function(t) {
  3181. var e = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
  3182. if (!this.hasValue()) return 0;
  3183. var r = 'boolean' == typeof t ? [void 0, t] : [t],
  3184. n = fr(r, 2),
  3185. i = n[0],
  3186. o = n[1],
  3187. a = this.document.screen.viewPort;
  3188. switch (!0) {
  3189. case this.isString(/vmin$/):
  3190. return (
  3191. (this.getNumber() / 100) * Math.min(a.computeSize('x'), a.computeSize('y'))
  3192. );
  3193. case this.isString(/vmax$/):
  3194. return (
  3195. (this.getNumber() / 100) * Math.max(a.computeSize('x'), a.computeSize('y'))
  3196. );
  3197. case this.isString(/vw$/):
  3198. return (this.getNumber() / 100) * a.computeSize('x');
  3199. case this.isString(/vh$/):
  3200. return (this.getNumber() / 100) * a.computeSize('y');
  3201. case this.isString(/rem$/):
  3202. return this.getNumber() * this.getRem();
  3203. case this.isString(/em$/):
  3204. return this.getNumber() * this.getEm();
  3205. case this.isString(/ex$/):
  3206. return (this.getNumber() * this.getEm()) / 2;
  3207. case this.isString(/px$/):
  3208. return this.getNumber();
  3209. case this.isString(/pt$/):
  3210. return this.getNumber() * this.getDpi() * (1 / 72);
  3211. case this.isString(/pc$/):
  3212. return 15 * this.getNumber();
  3213. case this.isString(/cm$/):
  3214. return (this.getNumber() * this.getDpi()) / 2.54;
  3215. case this.isString(/mm$/):
  3216. return (this.getNumber() * this.getDpi()) / 25.4;
  3217. case this.isString(/in$/):
  3218. return this.getNumber() * this.getDpi();
  3219. case this.isString(/%$/) && o:
  3220. return this.getNumber() * this.getEm();
  3221. case this.isString(/%$/):
  3222. return this.getNumber() * a.computeSize(i);
  3223. default:
  3224. var u = this.getNumber();
  3225. return e && u < 1 ? u * a.computeSize(i) : u;
  3226. }
  3227. }
  3228. },
  3229. {
  3230. key: 'getMilliseconds',
  3231. value: function() {
  3232. return this.hasValue()
  3233. ? this.isString(/ms$/)
  3234. ? this.getNumber()
  3235. : 1e3 * this.getNumber()
  3236. : 0;
  3237. }
  3238. },
  3239. {
  3240. key: 'getRadians',
  3241. value: function() {
  3242. if (!this.hasValue()) return 0;
  3243. switch (!0) {
  3244. case this.isString(/deg$/):
  3245. return this.getNumber() * (Math.PI / 180);
  3246. case this.isString(/grad$/):
  3247. return this.getNumber() * (Math.PI / 200);
  3248. case this.isString(/rad$/):
  3249. return this.getNumber();
  3250. default:
  3251. return this.getNumber() * (Math.PI / 180);
  3252. }
  3253. }
  3254. },
  3255. {
  3256. key: 'getDefinition',
  3257. value: function() {
  3258. var t = this.getString(),
  3259. e = t.match(/#([^\)'"]+)/);
  3260. return e && (e = e[1]), e || (e = t), this.document.definitions[e];
  3261. }
  3262. },
  3263. {
  3264. key: 'getFillStyleDefinition',
  3265. value: function(t, e) {
  3266. var r = this.getDefinition();
  3267. if (!r) return null;
  3268. if ('function' == typeof r.createGradient)
  3269. return r.createGradient(this.document.ctx, t, e);
  3270. if ('function' == typeof r.createPattern) {
  3271. if (r.getHrefAttribute().hasValue()) {
  3272. var n = r.getAttribute('patternTransform');
  3273. (r = r.getHrefAttribute().getDefinition()),
  3274. n.hasValue() && r.getAttribute('patternTransform', !0).setValue(n.value);
  3275. }
  3276. return r.createPattern(this.document.ctx, t, e);
  3277. }
  3278. return null;
  3279. }
  3280. },
  3281. {
  3282. key: 'getTextBaseline',
  3283. value: function() {
  3284. return this.hasValue() ? t.textBaselineMapping[this.getString()] : null;
  3285. }
  3286. },
  3287. {
  3288. key: 'addOpacity',
  3289. value: function(e) {
  3290. for (
  3291. var r = this.getColor(), n = r.length, i = 0, o = 0;
  3292. o < n && (',' === r[o] && i++, 3 !== i);
  3293. o++
  3294. );
  3295. if (e.hasValue() && this.isString() && 3 !== i) {
  3296. var a = new Ia(r);
  3297. a.ok && ((a.alpha = e.getNumber()), (r = a.toRGBA()));
  3298. }
  3299. return new t(this.document, this.name, r);
  3300. }
  3301. }
  3302. ],
  3303. [
  3304. {
  3305. key: 'empty',
  3306. value: function(e) {
  3307. return new t(e, 'EMPTY', '');
  3308. }
  3309. }
  3310. ]
  3311. ),
  3312. t
  3313. );
  3314. })();
  3315. La.textBaselineMapping = {
  3316. baseline: 'alphabetic',
  3317. 'before-edge': 'top',
  3318. 'text-before-edge': 'top',
  3319. middle: 'middle',
  3320. central: 'middle',
  3321. 'after-edge': 'bottom',
  3322. 'text-after-edge': 'bottom',
  3323. ideographic: 'ideographic',
  3324. alphabetic: 'alphabetic',
  3325. hanging: 'hanging',
  3326. mathematical: 'alphabetic'
  3327. };
  3328. var ja = (function() {
  3329. function t() {
  3330. Un(this, t), (this.viewPorts = []);
  3331. }
  3332. return (
  3333. Hn(t, [
  3334. {
  3335. key: 'clear',
  3336. value: function() {
  3337. this.viewPorts = [];
  3338. }
  3339. },
  3340. {
  3341. key: 'setCurrent',
  3342. value: function(t, e) {
  3343. this.viewPorts.push({ width: t, height: e });
  3344. }
  3345. },
  3346. {
  3347. key: 'removeCurrent',
  3348. value: function() {
  3349. this.viewPorts.pop();
  3350. }
  3351. },
  3352. {
  3353. key: 'getCurrent',
  3354. value: function() {
  3355. var t = this.viewPorts;
  3356. return t[t.length - 1];
  3357. }
  3358. },
  3359. {
  3360. key: 'computeSize',
  3361. value: function(t) {
  3362. return 'number' == typeof t
  3363. ? t
  3364. : 'x' === t
  3365. ? this.width
  3366. : 'y' === t
  3367. ? this.height
  3368. : Math.sqrt(Math.pow(this.width, 2) + Math.pow(this.height, 2)) / Math.sqrt(2);
  3369. }
  3370. },
  3371. {
  3372. key: 'width',
  3373. get: function() {
  3374. return this.getCurrent().width;
  3375. }
  3376. },
  3377. {
  3378. key: 'height',
  3379. get: function() {
  3380. return this.getCurrent().height;
  3381. }
  3382. }
  3383. ]),
  3384. t
  3385. );
  3386. })(),
  3387. za = (function() {
  3388. function t(e, r) {
  3389. Un(this, t), (this.x = e), (this.y = r);
  3390. }
  3391. return (
  3392. Hn(
  3393. t,
  3394. [
  3395. {
  3396. key: 'angleTo',
  3397. value: function(t) {
  3398. return Math.atan2(t.y - this.y, t.x - this.x);
  3399. }
  3400. },
  3401. {
  3402. key: 'applyTransform',
  3403. value: function(t) {
  3404. var e = this.x,
  3405. r = this.y,
  3406. n = e * t[0] + r * t[2] + t[4],
  3407. i = e * t[1] + r * t[3] + t[5];
  3408. (this.x = n), (this.y = i);
  3409. }
  3410. }
  3411. ],
  3412. [
  3413. {
  3414. key: 'parse',
  3415. value: function(e) {
  3416. var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0,
  3417. n = Ze(e),
  3418. i = fr(n, 2),
  3419. o = i[0],
  3420. a = void 0 === o ? r : o,
  3421. u = i[1],
  3422. s = void 0 === u ? r : u;
  3423. return new t(a, s);
  3424. }
  3425. },
  3426. {
  3427. key: 'parseScale',
  3428. value: function(e) {
  3429. var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1,
  3430. n = Ze(e),
  3431. i = fr(n, 2),
  3432. o = i[0],
  3433. a = void 0 === o ? r : o,
  3434. u = i[1],
  3435. s = void 0 === u ? a : u;
  3436. return new t(a, s);
  3437. }
  3438. },
  3439. {
  3440. key: 'parsePath',
  3441. value: function(e) {
  3442. for (var r = Ze(e), n = r.length, i = [], o = 0; o < n; o += 2)
  3443. i.push(new t(r[o], r[o + 1]));
  3444. return i;
  3445. }
  3446. }
  3447. ]
  3448. ),
  3449. t
  3450. );
  3451. })(),
  3452. Ba = (function() {
  3453. function t(e) {
  3454. Un(this, t),
  3455. (this.screen = e),
  3456. (this.working = !1),
  3457. (this.events = []),
  3458. (this.eventElements = []),
  3459. (this.onClick = this.onClick.bind(this)),
  3460. (this.onMouseMove = this.onMouseMove.bind(this));
  3461. }
  3462. return (
  3463. Hn(t, [
  3464. {
  3465. key: 'isWorking',
  3466. value: function() {
  3467. return this.working;
  3468. }
  3469. },
  3470. {
  3471. key: 'start',
  3472. value: function() {
  3473. if (!this.working) {
  3474. var t = this.screen,
  3475. e = this.onClick,
  3476. r = this.onMouseMove,
  3477. n = t.ctx.canvas;
  3478. (n.onclick = e), (n.onmousemove = r), (this.working = !0);
  3479. }
  3480. }
  3481. },
  3482. {
  3483. key: 'stop',
  3484. value: function() {
  3485. if (this.working) {
  3486. var t = this.screen.ctx.canvas;
  3487. (this.working = !1), (t.onclick = null), (t.onmousemove = null);
  3488. }
  3489. }
  3490. },
  3491. {
  3492. key: 'hasEvents',
  3493. value: function() {
  3494. return this.working && this.events.length > 0;
  3495. }
  3496. },
  3497. {
  3498. key: 'runEvents',
  3499. value: function() {
  3500. if (this.working) {
  3501. var t = this.screen,
  3502. e = this.events,
  3503. r = this.eventElements,
  3504. n = t.ctx.canvas.style;
  3505. n && (n.cursor = ''),
  3506. e.forEach(function(t, e) {
  3507. for (var n = t.run, i = r[e]; i; ) n(i), (i = i.parent);
  3508. }),
  3509. (this.events = []),
  3510. (this.eventElements = []);
  3511. }
  3512. }
  3513. },
  3514. {
  3515. key: 'checkPath',
  3516. value: function(t, e) {
  3517. if (this.working && e) {
  3518. var r = this.events,
  3519. n = this.eventElements;
  3520. r.forEach(function(r, i) {
  3521. var o = r.x,
  3522. a = r.y;
  3523. !n[i] && e.isPointInPath && e.isPointInPath(o, a) && (n[i] = t);
  3524. });
  3525. }
  3526. }
  3527. },
  3528. {
  3529. key: 'checkBoundingBox',
  3530. value: function(t, e) {
  3531. if (this.working && e) {
  3532. var r = this.events,
  3533. n = this.eventElements;
  3534. r.forEach(function(r, i) {
  3535. var o = r.x,
  3536. a = r.y;
  3537. !n[i] && e.isPointInBox(o, a) && (n[i] = t);
  3538. });
  3539. }
  3540. }
  3541. },
  3542. {
  3543. key: 'mapXY',
  3544. value: function(t, e) {
  3545. for (var r = this.screen, n = r.window, i = r.ctx, o = new za(t, e), a = i.canvas; a; )
  3546. (o.x -= a.offsetLeft), (o.y -= a.offsetTop), (a = a.offsetParent);
  3547. return n.scrollX && (o.x += n.scrollX), n.scrollY && (o.y += n.scrollY), o;
  3548. }
  3549. },
  3550. {
  3551. key: 'onClick',
  3552. value: function(t) {
  3553. var e = this.mapXY((t || event).clientX, (t || event).clientY),
  3554. r = e.x,
  3555. n = e.y;
  3556. this.events.push({
  3557. type: 'onclick',
  3558. x: r,
  3559. y: n,
  3560. run: function(t) {
  3561. t.onClick && t.onClick();
  3562. }
  3563. });
  3564. }
  3565. },
  3566. {
  3567. key: 'onMouseMove',
  3568. value: function(t) {
  3569. var e = this.mapXY((t || event).clientX, (t || event).clientY),
  3570. r = e.x,
  3571. n = e.y;
  3572. this.events.push({
  3573. type: 'onmousemove',
  3574. x: r,
  3575. y: n,
  3576. run: function(t) {
  3577. t.onMouseMove && t.onMouseMove();
  3578. }
  3579. });
  3580. }
  3581. }
  3582. ]),
  3583. t
  3584. );
  3585. })(),
  3586. Fa = 'undefined' != typeof window ? window : null,
  3587. _a = 'undefined' != typeof fetch ? fetch.bind(void 0) : null,
  3588. $a = (function() {
  3589. function t(e) {
  3590. var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  3591. n = r.fetch,
  3592. i = void 0 === n ? _a : n,
  3593. o = r.window,
  3594. a = void 0 === o ? Fa : o;
  3595. Un(this, t),
  3596. (this.ctx = e),
  3597. (this.FRAMERATE = 30),
  3598. (this.MAX_VIRTUAL_PIXELS = 3e4),
  3599. (this.CLIENT_WIDTH = 800),
  3600. (this.CLIENT_HEIGHT = 600),
  3601. (this.viewPort = new ja()),
  3602. (this.mouse = new Ba(this)),
  3603. (this.animations = []),
  3604. (this.waits = []),
  3605. (this.frameDuration = 0),
  3606. (this.isReadyLock = !1),
  3607. (this.isFirstRender = !0),
  3608. (this.intervalId = null),
  3609. (this.window = a),
  3610. (this.fetch = i);
  3611. }
  3612. return (
  3613. Hn(t, [
  3614. {
  3615. key: 'wait',
  3616. value: function(t) {
  3617. this.waits.push(t);
  3618. }
  3619. },
  3620. {
  3621. key: 'ready',
  3622. value: function() {
  3623. return this.readyPromise ? this.readyPromise : Promise.resolve();
  3624. }
  3625. },
  3626. {
  3627. key: 'isReady',
  3628. value: function() {
  3629. if (this.isReadyLock) return !0;
  3630. var t = this.waits.every(function(t) {
  3631. return t();
  3632. });
  3633. return (
  3634. t && ((this.waits = []), this.resolveReady && this.resolveReady()),
  3635. (this.isReadyLock = t),
  3636. t
  3637. );
  3638. }
  3639. },
  3640. {
  3641. key: 'setDefaults',
  3642. value: function(t) {
  3643. (t.strokeStyle = 'rgba(0,0,0,0)'),
  3644. (t.lineCap = 'butt'),
  3645. (t.lineJoin = 'miter'),
  3646. (t.miterLimit = 4);
  3647. }
  3648. },
  3649. {
  3650. key: 'setViewBox',
  3651. value: function(t) {
  3652. var e = t.document,
  3653. r = t.ctx,
  3654. n = t.aspectRatio,
  3655. i = t.width,
  3656. o = t.desiredWidth,
  3657. a = t.height,
  3658. u = t.desiredHeight,
  3659. s = t.minX,
  3660. c = void 0 === s ? 0 : s,
  3661. l = t.minY,
  3662. f = void 0 === l ? 0 : l,
  3663. h = t.refX,
  3664. p = t.refY,
  3665. g = t.clip,
  3666. y = void 0 !== g && g,
  3667. v = t.clipX,
  3668. d = void 0 === v ? 0 : v,
  3669. m = t.clipY,
  3670. x = void 0 === m ? 0 : m,
  3671. b = Xe(n)
  3672. .replace(/^defer\s/, '')
  3673. .split(' '),
  3674. w = fr(b, 2),
  3675. S = w[0] || 'xMidYMid',
  3676. k = w[1] || 'meet',
  3677. P = i / o,
  3678. R = a / u,
  3679. A = Math.min(P, R),
  3680. E = Math.max(P, R),
  3681. C = o,
  3682. T = u;
  3683. 'meet' === k && ((C *= A), (T *= A)), 'slice' === k && ((C *= E), (T *= E));
  3684. var O = new La(e, 'refX', h),
  3685. M = new La(e, 'refY', p),
  3686. D = O.hasValue() && M.hasValue();
  3687. if ((D && r.translate(-A * O.getPixels('x'), -A * M.getPixels('y')), y)) {
  3688. var V = A * d,
  3689. N = A * x;
  3690. r.beginPath(),
  3691. r.moveTo(V, N),
  3692. r.lineTo(i, N),
  3693. r.lineTo(i, a),
  3694. r.lineTo(V, a),
  3695. r.closePath(),
  3696. r.clip();
  3697. }
  3698. if (!D) {
  3699. var I = 'meet' === k && A === R,
  3700. L = 'slice' === k && E === R,
  3701. j = 'meet' === k && A === P,
  3702. z = 'slice' === k && E === P;
  3703. /^xMid/.test(S) && (I || L) && r.translate(i / 2 - C / 2, 0),
  3704. /YMid$/.test(S) && (j || z) && r.translate(0, a / 2 - T / 2),
  3705. /^xMax/.test(S) && (I || L) && r.translate(i - C, 0),
  3706. /YMax$/.test(S) && (j || z) && r.translate(0, a - T);
  3707. }
  3708. switch (!0) {
  3709. case 'none' === S:
  3710. r.scale(P, R);
  3711. break;
  3712. case 'meet' === k:
  3713. r.scale(A, A);
  3714. break;
  3715. case 'slice' === k:
  3716. r.scale(E, E);
  3717. }
  3718. r.translate(-c, -f);
  3719. }
  3720. },
  3721. {
  3722. key: 'start',
  3723. value: function(t) {
  3724. var e = this,
  3725. r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  3726. n = r.enableRedraw,
  3727. i = void 0 !== n && n,
  3728. o = r.ignoreMouse,
  3729. a = void 0 !== o && o,
  3730. u = r.ignoreAnimation,
  3731. s = void 0 !== u && u,
  3732. c = r.ignoreDimensions,
  3733. l = void 0 !== c && c,
  3734. f = r.ignoreClear,
  3735. h = void 0 !== f && f,
  3736. p = r.forceRedraw,
  3737. g = r.scaleWidth,
  3738. y = r.scaleHeight,
  3739. v = r.offsetX,
  3740. d = r.offsetY,
  3741. m = this.FRAMERATE,
  3742. x = this.mouse,
  3743. b = 1e3 / m;
  3744. if (
  3745. ((this.frameDuration = b),
  3746. (this.readyPromise = new Promise(function(t) {
  3747. e.resolveReady = t;
  3748. })),
  3749. this.isReady() && this.render(t, l, h, g, y, v, d),
  3750. i)
  3751. ) {
  3752. var w = Date.now(),
  3753. S = w,
  3754. k = 0,
  3755. P = function r() {
  3756. (w = Date.now()),
  3757. (k = w - S) >= b &&
  3758. ((S = w - (k % b)),
  3759. e.shouldUpdate(s, p) && (e.render(t, l, h, g, y, v, d), x.runEvents())),
  3760. (e.intervalId = Oa(r));
  3761. };
  3762. a || x.start(), (this.intervalId = Oa(P));
  3763. }
  3764. }
  3765. },
  3766. {
  3767. key: 'stop',
  3768. value: function() {
  3769. this.intervalId && (Oa.cancel(this.intervalId), (this.intervalId = null)),
  3770. this.mouse.stop();
  3771. }
  3772. },
  3773. {
  3774. key: 'shouldUpdate',
  3775. value: function(t, e) {
  3776. if (!t) {
  3777. var r = this.frameDuration,
  3778. n = this.animations.reduce(function(t, e) {
  3779. return e.update(r) || t;
  3780. }, !1);
  3781. if (n) return !0;
  3782. }
  3783. return (
  3784. !('function' != typeof e || !e()) ||
  3785. !(this.isReadyLock || !this.isReady()) || !!this.mouse.hasEvents()
  3786. );
  3787. }
  3788. },
  3789. {
  3790. key: 'render',
  3791. value: function(t, e, r, n, i, o, a) {
  3792. var u = this.CLIENT_WIDTH,
  3793. s = this.CLIENT_HEIGHT,
  3794. c = this.viewPort,
  3795. l = this.ctx,
  3796. f = this.isFirstRender,
  3797. h = l.canvas;
  3798. c.clear(), h.width && h.height ? c.setCurrent(h.width, h.height) : c.setCurrent(u, s);
  3799. var p = t.getStyle('width'),
  3800. g = t.getStyle('height');
  3801. !e &&
  3802. (f || ('number' != typeof n && 'number' != typeof i)) &&
  3803. (p.hasValue() &&
  3804. ((h.width = p.getPixels('x')),
  3805. h.style && (h.style.width = ''.concat(h.width, 'px'))),
  3806. g.hasValue() &&
  3807. ((h.height = g.getPixels('y')),
  3808. h.style && (h.style.height = ''.concat(h.height, 'px'))));
  3809. var y = h.clientWidth || h.width,
  3810. v = h.clientHeight || h.height;
  3811. if (
  3812. (e && p.hasValue() && g.hasValue() && ((y = p.getPixels('x')), (v = g.getPixels('y'))),
  3813. c.setCurrent(y, v),
  3814. 'number' == typeof o && t.getAttribute('x', !0).setValue(o),
  3815. 'number' == typeof a && t.getAttribute('y', !0).setValue(a),
  3816. 'number' == typeof n || 'number' == typeof i)
  3817. ) {
  3818. var d = Ze(t.getAttribute('viewBox').getString()),
  3819. m = 0,
  3820. x = 0;
  3821. if ('number' == typeof n) {
  3822. var b = t.getStyle('width');
  3823. b.hasValue() ? (m = b.getPixels('x') / n) : isNaN(d[2]) || (m = d[2] / n);
  3824. }
  3825. if ('number' == typeof i) {
  3826. var w = t.getStyle('height');
  3827. w.hasValue() ? (x = w.getPixels('y') / i) : isNaN(d[3]) || (x = d[3] / i);
  3828. }
  3829. m || (m = x),
  3830. x || (x = m),
  3831. t.getAttribute('width', !0).setValue(n),
  3832. t.getAttribute('height', !0).setValue(i);
  3833. var S = t.getStyle('transform', !0, !0);
  3834. S.setValue(
  3835. ''
  3836. .concat(S.getString(), ' scale(')
  3837. .concat(1 / m, ', ')
  3838. .concat(1 / x, ')')
  3839. );
  3840. }
  3841. r || l.clearRect(0, 0, y, v), t.render(l), f && (this.isFirstRender = !1);
  3842. }
  3843. }
  3844. ]),
  3845. t
  3846. );
  3847. })();
  3848. ($a.defaultWindow = Fa), ($a.defaultFetch = _a);
  3849. var Ga = $a.defaultFetch,
  3850. qa = 'undefined' != typeof DOMParser ? DOMParser : null,
  3851. Ua = (function() {
  3852. function t() {
  3853. var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
  3854. r = e.fetch,
  3855. n = void 0 === r ? Ga : r,
  3856. i = e.DOMParser,
  3857. o = void 0 === i ? qa : i;
  3858. Un(this, t), (this.fetch = n), (this.DOMParser = o);
  3859. }
  3860. var e, r;
  3861. return (
  3862. Hn(t, [
  3863. {
  3864. key: 'parse',
  3865. value:
  3866. ((r = Gn(
  3867. _n.mark(function t(e) {
  3868. return _n.wrap(
  3869. function(t) {
  3870. for (;;)
  3871. switch ((t.prev = t.next)) {
  3872. case 0:
  3873. if (!/^</.test(e)) {
  3874. t.next = 2;
  3875. break;
  3876. }
  3877. return t.abrupt('return', this.parseFromString(e));
  3878. case 2:
  3879. return t.abrupt('return', this.load(e));
  3880. case 3:
  3881. case 'end':
  3882. return t.stop();
  3883. }
  3884. },
  3885. t,
  3886. this
  3887. );
  3888. })
  3889. )),
  3890. function(t) {
  3891. return r.apply(this, arguments);
  3892. })
  3893. },
  3894. {
  3895. key: 'parseFromString',
  3896. value: function(t) {
  3897. var e = new this.DOMParser();
  3898. try {
  3899. return this.checkDocument(e.parseFromString(t, 'image/svg+xml'));
  3900. } catch (r) {
  3901. return this.checkDocument(e.parseFromString(t, 'text/xml'));
  3902. }
  3903. }
  3904. },
  3905. {
  3906. key: 'checkDocument',
  3907. value: function(t) {
  3908. var e = t.getElementsByTagName('parsererror')[0];
  3909. if (e) throw new Error(e.textContent);
  3910. return t;
  3911. }
  3912. },
  3913. {
  3914. key: 'load',
  3915. value:
  3916. ((e = Gn(
  3917. _n.mark(function t(e) {
  3918. var r, n;
  3919. return _n.wrap(
  3920. function(t) {
  3921. for (;;)
  3922. switch ((t.prev = t.next)) {
  3923. case 0:
  3924. return (t.next = 2), this.fetch(e);
  3925. case 2:
  3926. return (r = t.sent), (t.next = 5), r.text();
  3927. case 5:
  3928. return (
  3929. (n = t.sent), t.abrupt('return', this.parseFromString(n))
  3930. );
  3931. case 7:
  3932. case 'end':
  3933. return t.stop();
  3934. }
  3935. },
  3936. t,
  3937. this
  3938. );
  3939. })
  3940. )),
  3941. function(t) {
  3942. return e.apply(this, arguments);
  3943. })
  3944. }
  3945. ]),
  3946. t
  3947. );
  3948. })(),
  3949. Wa = [].slice,
  3950. Ha = {},
  3951. Xa = function(t, e, r) {
  3952. if (!(e in Ha)) {
  3953. for (var n = [], i = 0; i < e; i++) n[i] = 'a[' + i + ']';
  3954. Ha[e] = Function('C,a', 'return new C(' + n.join(',') + ')');
  3955. }
  3956. return Ha[e](t, r);
  3957. },
  3958. Ya =
  3959. Function.bind ||
  3960. function(t) {
  3961. var e = Vt(this),
  3962. r = Wa.call(arguments, 1),
  3963. n = function() {
  3964. var i = r.concat(Wa.call(arguments));
  3965. return this instanceof n ? Xa(e, i.length, i) : e.apply(t, i);
  3966. };
  3967. return d(e.prototype) && (n.prototype = e.prototype), n;
  3968. },
  3969. Qa = ot('Reflect', 'construct'),
  3970. Za = o(function() {
  3971. function t() {}
  3972. return !(Qa(function() {}, [], t) instanceof t);
  3973. }),
  3974. Ka = !o(function() {
  3975. Qa(function() {});
  3976. }),
  3977. Ja = Za || Ka;
  3978. Dt(
  3979. { target: 'Reflect', stat: !0, forced: Ja, sham: Ja },
  3980. {
  3981. construct: function(t, e) {
  3982. Vt(t), E(e);
  3983. var r = arguments.length < 3 ? t : Vt(arguments[2]);
  3984. if (Ka && !Za) return Qa(t, e, r);
  3985. if (t == r) {
  3986. switch (e.length) {
  3987. case 0:
  3988. return new t();
  3989. case 1:
  3990. return new t(e[0]);
  3991. case 2:
  3992. return new t(e[0], e[1]);
  3993. case 3:
  3994. return new t(e[0], e[1], e[2]);
  3995. case 4:
  3996. return new t(e[0], e[1], e[2], e[3]);
  3997. }
  3998. var n = [null];
  3999. return n.push.apply(n, e), new (Ya.apply(t, n))();
  4000. }
  4001. var i = r.prototype,
  4002. o = Br(d(i) ? i : Object.prototype),
  4003. a = Function.apply.call(t, o, e);
  4004. return d(a) ? a : o;
  4005. }
  4006. }
  4007. );
  4008. var tu = RegExp.prototype,
  4009. eu = tu.toString,
  4010. ru = o(function() {
  4011. return '/a/b' != eu.call({ source: 'a', flags: 'b' });
  4012. }),
  4013. nu = 'toString' != eu.name;
  4014. (ru || nu) &&
  4015. rt(
  4016. RegExp.prototype,
  4017. 'toString',
  4018. function() {
  4019. var t = E(this),
  4020. e = String(t.source),
  4021. r = t.flags;
  4022. return '/' + e + '/' + String(void 0 === r && t instanceof RegExp && !('flags' in tu) ? se.call(t) : r);
  4023. },
  4024. { unsafe: !0 }
  4025. );
  4026. var iu = r(function(t) {
  4027. function e(r) {
  4028. return (
  4029. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  4030. ? (t.exports = e = function(t) {
  4031. return typeof t;
  4032. })
  4033. : (t.exports = e = function(t) {
  4034. return t && 'function' == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype
  4035. ? 'symbol'
  4036. : typeof t;
  4037. }),
  4038. e(r)
  4039. );
  4040. }
  4041. t.exports = e;
  4042. });
  4043. var ou = function(t) {
  4044. if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  4045. return t;
  4046. };
  4047. var au = function(t, e) {
  4048. return !e || ('object' !== iu(e) && 'function' != typeof e) ? ou(t) : e;
  4049. },
  4050. uu = r(function(t) {
  4051. function e(r) {
  4052. return (
  4053. (t.exports = e = Object.setPrototypeOf
  4054. ? Object.getPrototypeOf
  4055. : function(t) {
  4056. return t.__proto__ || Object.getPrototypeOf(t);
  4057. }),
  4058. e(r)
  4059. );
  4060. }
  4061. t.exports = e;
  4062. }),
  4063. su = r(function(t) {
  4064. function e(r, n) {
  4065. return (
  4066. (t.exports = e =
  4067. Object.setPrototypeOf ||
  4068. function(t, e) {
  4069. return (t.__proto__ = e), t;
  4070. }),
  4071. e(r, n)
  4072. );
  4073. }
  4074. t.exports = e;
  4075. });
  4076. var cu = function(t, e) {
  4077. if ('function' != typeof e && null !== e)
  4078. throw new TypeError('Super expression must either be null or a function');
  4079. (t.prototype = Object.create(e && e.prototype, {
  4080. constructor: { value: t, writable: !0, configurable: !0 }
  4081. })),
  4082. e && su(t, e);
  4083. },
  4084. lu = !Mi(function(t) {
  4085. Array.from(t);
  4086. });
  4087. Dt(
  4088. { target: 'Array', stat: !0, forced: lu },
  4089. {
  4090. from: function(t) {
  4091. var e,
  4092. r,
  4093. n,
  4094. i,
  4095. o,
  4096. a,
  4097. u = It(t),
  4098. s = 'function' == typeof this ? this : Array,
  4099. c = arguments.length,
  4100. l = c > 1 ? arguments[1] : void 0,
  4101. f = void 0 !== l,
  4102. h = wi(u),
  4103. p = 0;
  4104. if ((f && (l = Nt(l, c > 2 ? arguments[2] : void 0, 2)), null == h || (s == Array && xi(h))))
  4105. for (r = new s((e = lt(u.length))); e > p; p++) (a = f ? l(u[p], p) : u[p]), In(r, p, a);
  4106. else
  4107. for (o = (i = h.call(u)).next, r = new s(); !(n = o.call(i)).done; p++)
  4108. (a = f ? Si(i, l, [n.value, p], !0) : n.value), In(r, p, a);
  4109. return (r.length = p), r;
  4110. }
  4111. }
  4112. );
  4113. var fu = $t('unscopables'),
  4114. hu = Array.prototype;
  4115. null == hu[fu] && T.f(hu, fu, { configurable: !0, value: Br(null) });
  4116. var pu = function(t) {
  4117. hu[fu][t] = !0;
  4118. },
  4119. gu = yt.includes,
  4120. yu = ie('indexOf', { ACCESSORS: !0, 1: 0 });
  4121. Dt(
  4122. { target: 'Array', proto: !0, forced: !yu },
  4123. {
  4124. includes: function(t) {
  4125. return gu(this, t, arguments.length > 1 ? arguments[1] : void 0);
  4126. }
  4127. }
  4128. ),
  4129. pu('includes');
  4130. var vu = Ht.some,
  4131. du = rr('some'),
  4132. mu = ie('some');
  4133. Dt(
  4134. { target: 'Array', proto: !0, forced: !du || !mu },
  4135. {
  4136. some: function(t) {
  4137. return vu(this, t, arguments.length > 1 ? arguments[1] : void 0);
  4138. }
  4139. }
  4140. ),
  4141. Dt(
  4142. { target: 'String', proto: !0, forced: !$e('includes') },
  4143. {
  4144. includes: function(t) {
  4145. return !!~String(y(this)).indexOf(Fe(t), arguments.length > 1 ? arguments[1] : void 0);
  4146. }
  4147. }
  4148. );
  4149. var xu,
  4150. bu,
  4151. wu,
  4152. Su = !o(function() {
  4153. function t() {}
  4154. return (t.prototype.constructor = null), Object.getPrototypeOf(new t()) !== t.prototype;
  4155. }),
  4156. ku = U('IE_PROTO'),
  4157. Pu = Object.prototype,
  4158. Ru = Su
  4159. ? Object.getPrototypeOf
  4160. : function(t) {
  4161. return (
  4162. (t = It(t)),
  4163. b(t, ku)
  4164. ? t[ku]
  4165. : 'function' == typeof t.constructor && t instanceof t.constructor
  4166. ? t.constructor.prototype
  4167. : t instanceof Object
  4168. ? Pu
  4169. : null
  4170. );
  4171. },
  4172. Au = $t('iterator'),
  4173. Eu = !1;
  4174. [].keys && ('next' in (wu = [].keys()) ? (bu = Ru(Ru(wu))) !== Object.prototype && (xu = bu) : (Eu = !0)),
  4175. null == xu && (xu = {}),
  4176. b(xu, Au) ||
  4177. O(xu, Au, function() {
  4178. return this;
  4179. });
  4180. var Cu = { IteratorPrototype: xu, BUGGY_SAFARI_ITERATORS: Eu },
  4181. Tu = Cu.IteratorPrototype,
  4182. Ou = function() {
  4183. return this;
  4184. },
  4185. Mu =
  4186. Object.setPrototypeOf ||
  4187. ('__proto__' in {}
  4188. ? (function() {
  4189. var t,
  4190. e = !1,
  4191. r = {};
  4192. try {
  4193. (t = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set).call(r, []),
  4194. (e = r instanceof Array);
  4195. } catch (t) {}
  4196. return function(r, n) {
  4197. return (
  4198. E(r),
  4199. (function(t) {
  4200. if (!d(t) && null !== t)
  4201. throw TypeError("Can't set " + String(t) + ' as a prototype');
  4202. })(n),
  4203. e ? t.call(r, n) : (r.__proto__ = n),
  4204. r
  4205. );
  4206. };
  4207. })()
  4208. : void 0),
  4209. Du = Cu.IteratorPrototype,
  4210. Vu = Cu.BUGGY_SAFARI_ITERATORS,
  4211. Nu = $t('iterator'),
  4212. Iu = function() {
  4213. return this;
  4214. },
  4215. Lu = function(t, e, r, n, i, o, a) {
  4216. !(function(t, e, r) {
  4217. var n = e + ' Iterator';
  4218. (t.prototype = Br(Tu, { next: l(1, r) })), Yr(t, n, !1), (vi[n] = Ou);
  4219. })(r, e, n);
  4220. var u,
  4221. s,
  4222. c,
  4223. f = function(t) {
  4224. if (t === i && v) return v;
  4225. if (!Vu && t in g) return g[t];
  4226. switch (t) {
  4227. case 'keys':
  4228. case 'values':
  4229. case 'entries':
  4230. return function() {
  4231. return new r(this, t);
  4232. };
  4233. }
  4234. return function() {
  4235. return new r(this);
  4236. };
  4237. },
  4238. h = e + ' Iterator',
  4239. p = !1,
  4240. g = t.prototype,
  4241. y = g[Nu] || g['@@iterator'] || (i && g[i]),
  4242. v = (!Vu && y) || f(i),
  4243. d = ('Array' == e && g.entries) || y;
  4244. if (
  4245. (d &&
  4246. ((u = Ru(d.call(new t()))),
  4247. Du !== Object.prototype &&
  4248. u.next &&
  4249. (Ru(u) !== Du && (Mu ? Mu(u, Du) : 'function' != typeof u[Nu] && O(u, Nu, Iu)), Yr(u, h, !0))),
  4250. 'values' == i &&
  4251. y &&
  4252. 'values' !== y.name &&
  4253. ((p = !0),
  4254. (v = function() {
  4255. return y.call(this);
  4256. })),
  4257. g[Nu] !== v && O(g, Nu, v),
  4258. (vi[e] = v),
  4259. i)
  4260. )
  4261. if (((s = { values: f('values'), keys: o ? v : f('keys'), entries: f('entries') }), a))
  4262. for (c in s) (Vu || p || !(c in g)) && rt(g, c, s[c]);
  4263. else Dt({ target: e, proto: !0, forced: Vu || p }, s);
  4264. return s;
  4265. },
  4266. ju = Ce.charAt,
  4267. zu = et.set,
  4268. Bu = et.getterFor('String Iterator');
  4269. Lu(
  4270. String,
  4271. 'String',
  4272. function(t) {
  4273. zu(this, { type: 'String Iterator', string: String(t), index: 0 });
  4274. },
  4275. function() {
  4276. var t,
  4277. e = Bu(this),
  4278. r = e.string,
  4279. n = e.index;
  4280. return n >= r.length
  4281. ? { value: void 0, done: !0 }
  4282. : ((t = ju(r, n)), (e.index += t.length), { value: t, done: !1 });
  4283. }
  4284. );
  4285. var Fu = '\t\n\v\f\r                \u2028\u2029\ufeff',
  4286. _u = '[' + Fu + ']',
  4287. $u = RegExp('^' + _u + _u + '*'),
  4288. Gu = RegExp(_u + _u + '*$'),
  4289. qu = function(t) {
  4290. return function(e) {
  4291. var r = String(y(e));
  4292. return 1 & t && (r = r.replace($u, '')), 2 & t && (r = r.replace(Gu, '')), r;
  4293. };
  4294. },
  4295. Uu = { start: qu(1), end: qu(2), trim: qu(3) },
  4296. Wu = Uu.trim;
  4297. Dt(
  4298. {
  4299. target: 'String',
  4300. proto: !0,
  4301. forced: (function(t) {
  4302. return o(function() {
  4303. return !!Fu[t]() || '​…᠎' != '​…᠎'[t]() || Fu[t].name !== t;
  4304. });
  4305. })('trim')
  4306. },
  4307. {
  4308. trim: function() {
  4309. return Wu(this);
  4310. }
  4311. }
  4312. );
  4313. var Hu = function(t) {
  4314. if (Array.isArray(t)) return sr(t);
  4315. };
  4316. var Xu = function(t) {
  4317. if ('undefined' != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t);
  4318. };
  4319. var Yu = function() {
  4320. throw new TypeError(
  4321. 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  4322. );
  4323. };
  4324. var Qu = function(t) {
  4325. return Hu(t) || Xu(t) || cr(t) || Yu();
  4326. },
  4327. Zu = (function() {
  4328. function t(e, r) {
  4329. Un(this, t), (this.type = 'translate'), (this.point = null), (this.point = za.parse(r));
  4330. }
  4331. return (
  4332. Hn(t, [
  4333. {
  4334. key: 'apply',
  4335. value: function(t) {
  4336. var e = this.point,
  4337. r = e.x,
  4338. n = e.y;
  4339. t.translate(r || 0, n || 0);
  4340. }
  4341. },
  4342. {
  4343. key: 'unapply',
  4344. value: function(t) {
  4345. var e = this.point,
  4346. r = e.x,
  4347. n = e.y;
  4348. t.translate(-1 * r || 0, -1 * n || 0);
  4349. }
  4350. },
  4351. {
  4352. key: 'applyToPoint',
  4353. value: function(t) {
  4354. var e = this.point,
  4355. r = e.x,
  4356. n = e.y;
  4357. t.applyTransform([1, 0, 0, 1, r || 0, n || 0]);
  4358. }
  4359. }
  4360. ]),
  4361. t
  4362. );
  4363. })(),
  4364. Ku = (function() {
  4365. function t(e, r) {
  4366. var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [];
  4367. Un(this, t), (this.type = 'rotate'), (this.angle = null), (this.cx = 0), (this.cy = 0);
  4368. var i = Ze(r);
  4369. (this.angle = new La(e, 'angle', i[0])),
  4370. (this.cx = (i[1] || 0) + (n[0] || 0)),
  4371. (this.cy = (i[2] || 0) + (n[1] || 0));
  4372. }
  4373. return (
  4374. Hn(t, [
  4375. {
  4376. key: 'apply',
  4377. value: function(t) {
  4378. var e = this.cx,
  4379. r = this.cy,
  4380. n = this.angle;
  4381. t.translate(e, r), t.rotate(n.getRadians()), t.translate(-e, -r);
  4382. }
  4383. },
  4384. {
  4385. key: 'unapply',
  4386. value: function(t) {
  4387. var e = this.cx,
  4388. r = this.cy,
  4389. n = this.angle;
  4390. t.translate(e, r), t.rotate(-1 * n.getRadians()), t.translate(-e, -r);
  4391. }
  4392. },
  4393. {
  4394. key: 'applyToPoint',
  4395. value: function(t) {
  4396. var e = this.cx,
  4397. r = this.cy,
  4398. n = this.angle.getRadians();
  4399. t.applyTransform([1, 0, 0, 1, e || 0, r || 0]),
  4400. t.applyTransform([Math.cos(n), Math.sin(n), -Math.sin(n), Math.cos(n), 0, 0]),
  4401. t.applyTransform([1, 0, 0, 1, -e || 0, -r || 0]);
  4402. }
  4403. }
  4404. ]),
  4405. t
  4406. );
  4407. })(),
  4408. Ju = (function() {
  4409. function t(e, r) {
  4410. Un(this, t), (this.type = 'scale'), (this.scale = null);
  4411. var n = za.parseScale(r);
  4412. (0 !== n.x && 0 !== n.y) || ((n.x = 1e-8), (n.y = 1e-8)), (this.scale = n);
  4413. }
  4414. return (
  4415. Hn(t, [
  4416. {
  4417. key: 'apply',
  4418. value: function(t) {
  4419. var e = this.scale,
  4420. r = e.x,
  4421. n = e.y;
  4422. t.scale(r, n || r);
  4423. }
  4424. },
  4425. {
  4426. key: 'unapply',
  4427. value: function(t) {
  4428. var e = this.scale,
  4429. r = e.x,
  4430. n = e.y;
  4431. t.scale(1 / r, 1 / n || r);
  4432. }
  4433. },
  4434. {
  4435. key: 'applyToPoint',
  4436. value: function(t) {
  4437. var e = this.scale,
  4438. r = e.x,
  4439. n = e.y;
  4440. t.applyTransform([r || 0, 0, 0, n || 0, 0, 0]);
  4441. }
  4442. }
  4443. ]),
  4444. t
  4445. );
  4446. })(),
  4447. ts = (function() {
  4448. function t(e, r) {
  4449. Un(this, t), (this.type = 'matrix'), (this.matrix = []), (this.matrix = Ze(r));
  4450. }
  4451. return (
  4452. Hn(t, [
  4453. {
  4454. key: 'apply',
  4455. value: function(t) {
  4456. var e = this.matrix;
  4457. t.transform(e[0], e[1], e[2], e[3], e[4], e[5]);
  4458. }
  4459. },
  4460. {
  4461. key: 'unapply',
  4462. value: function(t) {
  4463. var e = this.matrix,
  4464. r = e[0],
  4465. n = e[2],
  4466. i = e[4],
  4467. o = e[1],
  4468. a = e[3],
  4469. u = e[5],
  4470. s = 1 / (r * (1 * a - 0 * u) - n * (1 * o - 0 * u) + i * (0 * o - 0 * a));
  4471. t.transform(
  4472. s * (1 * a - 0 * u),
  4473. s * (0 * u - 1 * o),
  4474. s * (0 * i - 1 * n),
  4475. s * (1 * r - 0 * i),
  4476. s * (n * u - i * a),
  4477. s * (i * o - r * u)
  4478. );
  4479. }
  4480. },
  4481. {
  4482. key: 'applyToPoint',
  4483. value: function(t) {
  4484. t.applyTransform(this.matrix);
  4485. }
  4486. }
  4487. ]),
  4488. t
  4489. );
  4490. })();
  4491. function es() {
  4492. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  4493. if (Reflect.construct.sham) return !1;
  4494. if ('function' == typeof Proxy) return !0;
  4495. try {
  4496. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  4497. } catch (t) {
  4498. return !1;
  4499. }
  4500. }
  4501. var rs = (function(t) {
  4502. cu(n, t);
  4503. var e,
  4504. r =
  4505. ((e = n),
  4506. function() {
  4507. var t,
  4508. r = uu(e);
  4509. if (es()) {
  4510. var n = uu(this).constructor;
  4511. t = Reflect.construct(r, arguments, n);
  4512. } else t = r.apply(this, arguments);
  4513. return au(this, t);
  4514. });
  4515. function n(t, e) {
  4516. var i;
  4517. return (
  4518. Un(this, n),
  4519. ((i = r.call(this, t, e)).type = 'skew'),
  4520. (i.angle = null),
  4521. (i.angle = new La(t, 'angle', e)),
  4522. i
  4523. );
  4524. }
  4525. return n;
  4526. })(ts);
  4527. function ns() {
  4528. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  4529. if (Reflect.construct.sham) return !1;
  4530. if ('function' == typeof Proxy) return !0;
  4531. try {
  4532. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  4533. } catch (t) {
  4534. return !1;
  4535. }
  4536. }
  4537. var is = (function(t) {
  4538. cu(n, t);
  4539. var e,
  4540. r =
  4541. ((e = n),
  4542. function() {
  4543. var t,
  4544. r = uu(e);
  4545. if (ns()) {
  4546. var n = uu(this).constructor;
  4547. t = Reflect.construct(r, arguments, n);
  4548. } else t = r.apply(this, arguments);
  4549. return au(this, t);
  4550. });
  4551. function n(t, e) {
  4552. var i;
  4553. return (
  4554. Un(this, n),
  4555. ((i = r.call(this, t, e)).type = 'skewX'),
  4556. (i.matrix = [1, 0, Math.tan(i.angle.getRadians()), 1, 0, 0]),
  4557. i
  4558. );
  4559. }
  4560. return n;
  4561. })(rs);
  4562. function os() {
  4563. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  4564. if (Reflect.construct.sham) return !1;
  4565. if ('function' == typeof Proxy) return !0;
  4566. try {
  4567. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  4568. } catch (t) {
  4569. return !1;
  4570. }
  4571. }
  4572. var as = (function(t) {
  4573. cu(n, t);
  4574. var e,
  4575. r =
  4576. ((e = n),
  4577. function() {
  4578. var t,
  4579. r = uu(e);
  4580. if (os()) {
  4581. var n = uu(this).constructor;
  4582. t = Reflect.construct(r, arguments, n);
  4583. } else t = r.apply(this, arguments);
  4584. return au(this, t);
  4585. });
  4586. function n(t, e) {
  4587. var i;
  4588. return (
  4589. Un(this, n),
  4590. ((i = r.call(this, t, e)).type = 'skewY'),
  4591. (i.matrix = [1, Math.tan(i.angle.getRadians()), 0, 1, 0, 0]),
  4592. i
  4593. );
  4594. }
  4595. return n;
  4596. })(rs);
  4597. var us = (function() {
  4598. function t(e, r, n) {
  4599. var i = this;
  4600. Un(this, t), (this.document = e), (this.transforms = []);
  4601. var o = (function(t) {
  4602. return Xe(t)
  4603. .trim()
  4604. .replace(/\)([a-zA-Z])/g, ') $1')
  4605. .replace(/\)(\s?,\s?)/g, ') ')
  4606. .split(/\s(?=[a-z])/);
  4607. })(r),
  4608. a = n ? Ze(n) : [];
  4609. o.forEach(function(e) {
  4610. if ('none' !== e) {
  4611. var r = (function(t) {
  4612. var e = t.split('('),
  4613. r = fr(e, 2),
  4614. n = r[0],
  4615. i = r[1];
  4616. return [n.trim(), i.trim().replace(')', '')];
  4617. })(e),
  4618. n = fr(r, 2),
  4619. o = n[0],
  4620. u = n[1],
  4621. s = t.transformTypes[o];
  4622. void 0 !== s && i.transforms.push(new s(i.document, u, a));
  4623. }
  4624. });
  4625. }
  4626. return (
  4627. Hn(
  4628. t,
  4629. [
  4630. {
  4631. key: 'apply',
  4632. value: function(t) {
  4633. for (var e = this.transforms, r = e.length, n = 0; n < r; n++) e[n].apply(t);
  4634. }
  4635. },
  4636. {
  4637. key: 'unapply',
  4638. value: function(t) {
  4639. for (var e = this.transforms, r = e.length - 1; r >= 0; r--) e[r].unapply(t);
  4640. }
  4641. },
  4642. {
  4643. key: 'applyToPoint',
  4644. value: function(t) {
  4645. for (var e = this.transforms, r = e.length, n = 0; n < r; n++) e[n].applyToPoint(t);
  4646. }
  4647. }
  4648. ],
  4649. [
  4650. {
  4651. key: 'fromElement',
  4652. value: function(e, r) {
  4653. var n = r.getStyle('transform', !1, !0),
  4654. i = r.getStyle('transform-origin', !1, !0);
  4655. return n.hasValue() ? new t(e, n.getString(), i.getString()) : null;
  4656. }
  4657. }
  4658. ]
  4659. ),
  4660. t
  4661. );
  4662. })();
  4663. us.transformTypes = { translate: Zu, rotate: Ku, scale: Ju, matrix: ts, skewX: is, skewY: as };
  4664. var ss = (function() {
  4665. function t(e, r) {
  4666. var n = this,
  4667. i = arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
  4668. if (
  4669. (Un(this, t),
  4670. (this.document = e),
  4671. (this.node = r),
  4672. (this.captureTextNodes = i),
  4673. (this.attributes = {}),
  4674. (this.styles = {}),
  4675. (this.stylesSpecificity = {}),
  4676. (this.animationFrozen = !1),
  4677. (this.animationFrozenValue = ''),
  4678. (this.parent = null),
  4679. (this.children = []),
  4680. r && 1 === r.nodeType)
  4681. ) {
  4682. if (
  4683. (Array.from(r.attributes).forEach(function(t) {
  4684. var r = Je(t.nodeName);
  4685. n.attributes[r] = new La(e, r, t.value);
  4686. }),
  4687. this.addStylesFromStyleDefinition(),
  4688. this.getAttribute('style').hasValue())
  4689. ) {
  4690. var o = this.getAttribute('style')
  4691. .getString()
  4692. .split(';')
  4693. .map(function(t) {
  4694. return t.trim();
  4695. });
  4696. o.forEach(function(t) {
  4697. if (t) {
  4698. var r = t.split(':').map(function(t) {
  4699. return t.trim();
  4700. }),
  4701. i = fr(r, 2),
  4702. o = i[0],
  4703. a = i[1];
  4704. n.styles[o] = new La(e, o, a);
  4705. }
  4706. });
  4707. }
  4708. var a = e.definitions,
  4709. u = this.getAttribute('id');
  4710. u.hasValue() && (a[u.getValue()] || (a[u.getValue()] = this)),
  4711. Array.from(r.childNodes).forEach(function(t) {
  4712. if (1 === t.nodeType) n.addChild(t);
  4713. else if (i && (3 === t.nodeType || 4 === t.nodeType)) {
  4714. var r = e.createTextNode(t);
  4715. r.getText().length > 0 && n.addChild(r);
  4716. }
  4717. });
  4718. }
  4719. }
  4720. return (
  4721. Hn(t, [
  4722. {
  4723. key: 'getAttribute',
  4724. value: function(t) {
  4725. var e = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
  4726. r = this.attributes[t];
  4727. if (!r && e) {
  4728. var n = new La(this.document, t, '');
  4729. return (this.attributes[t] = n), n;
  4730. }
  4731. return r || La.empty(this.document);
  4732. }
  4733. },
  4734. {
  4735. key: 'getHrefAttribute',
  4736. value: function() {
  4737. for (var t in this.attributes) if ('href' === t || /:href$/.test(t)) return this.attributes[t];
  4738. return La.empty(this.document);
  4739. }
  4740. },
  4741. {
  4742. key: 'getStyle',
  4743. value: function(t) {
  4744. var e = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
  4745. r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
  4746. n = this.styles[t];
  4747. if (n) return n;
  4748. var i = this.getAttribute(t);
  4749. if (i && i.hasValue()) return (this.styles[t] = i), i;
  4750. if (!r) {
  4751. var o = this.parent;
  4752. if (o) {
  4753. var a = o.getStyle(t);
  4754. if (a && a.hasValue()) return a;
  4755. }
  4756. }
  4757. if (e) {
  4758. var u = new La(this.document, t, '');
  4759. return (this.styles[t] = u), u;
  4760. }
  4761. return n || La.empty(this.document);
  4762. }
  4763. },
  4764. {
  4765. key: 'render',
  4766. value: function(t) {
  4767. if (
  4768. 'none' !== this.getStyle('display').getString() &&
  4769. 'hidden' !== this.getStyle('visibility').getString()
  4770. ) {
  4771. if ((t.save(), this.getStyle('mask').hasValue())) {
  4772. var e = this.getStyle('mask').getDefinition();
  4773. e && (this.applyEffects(t), e.apply(t, this));
  4774. } else if ('none' !== this.getStyle('filter').getValue('none')) {
  4775. var r = this.getStyle('filter').getDefinition();
  4776. r && (this.applyEffects(t), r.apply(t, this));
  4777. } else this.setContext(t), this.renderChildren(t), this.clearContext(t);
  4778. t.restore();
  4779. }
  4780. }
  4781. },
  4782. { key: 'setContext', value: function(t) {} },
  4783. {
  4784. key: 'applyEffects',
  4785. value: function(t) {
  4786. var e = us.fromElement(this.document, this);
  4787. e && e.apply(t);
  4788. var r = this.getStyle('clip-path', !1, !0);
  4789. if (r.hasValue()) {
  4790. var n = r.getDefinition();
  4791. n && n.apply(t);
  4792. }
  4793. }
  4794. },
  4795. { key: 'clearContext', value: function(t) {} },
  4796. {
  4797. key: 'renderChildren',
  4798. value: function(t) {
  4799. this.children.forEach(function(e) {
  4800. e.render(t);
  4801. });
  4802. }
  4803. },
  4804. {
  4805. key: 'addChild',
  4806. value: function(e) {
  4807. var r = e instanceof t ? e : this.document.createElement(e);
  4808. (r.parent = this), t.ignoreChildTypes.includes(r.type) || this.children.push(r);
  4809. }
  4810. },
  4811. {
  4812. key: 'matchesSelector',
  4813. value: function(t) {
  4814. var e = this.node;
  4815. if ('function' == typeof e.matches) return e.matches(t);
  4816. var r = e.getAttribute('class');
  4817. return (
  4818. !(!r || '' === r) &&
  4819. r.split(' ').some(function(e) {
  4820. if ('.'.concat(e) === t) return !0;
  4821. })
  4822. );
  4823. }
  4824. },
  4825. {
  4826. key: 'addStylesFromStyleDefinition',
  4827. value: function() {
  4828. var t = this.document,
  4829. e = t.styles,
  4830. r = t.stylesSpecificity;
  4831. for (var n in e)
  4832. if ('@' !== n[0] && this.matchesSelector(n)) {
  4833. var i = e[n],
  4834. o = r[n];
  4835. if (i)
  4836. for (var a in i) {
  4837. var u = this.stylesSpecificity[a];
  4838. void 0 === u && (u = '000'),
  4839. o >= u && ((this.styles[a] = i[a]), (this.stylesSpecificity[a] = o));
  4840. }
  4841. }
  4842. }
  4843. },
  4844. {
  4845. key: 'removeStyles',
  4846. value: function(t, e) {
  4847. return e.reduce(function(e, r) {
  4848. var n = t.getStyle(r);
  4849. if (!n.hasValue()) return e;
  4850. var i = n.getString();
  4851. return n.setValue(''), [].concat(Qu(e), [[r, i]]);
  4852. }, []);
  4853. }
  4854. },
  4855. {
  4856. key: 'restoreStyles',
  4857. value: function(t, e) {
  4858. e.forEach(function(e) {
  4859. var r = fr(e, 2),
  4860. n = r[0],
  4861. i = r[1];
  4862. t.getStyle(n, !0).setValue(i);
  4863. });
  4864. }
  4865. }
  4866. ]),
  4867. t
  4868. );
  4869. })();
  4870. function cs() {
  4871. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  4872. if (Reflect.construct.sham) return !1;
  4873. if ('function' == typeof Proxy) return !0;
  4874. try {
  4875. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  4876. } catch (t) {
  4877. return !1;
  4878. }
  4879. }
  4880. ss.ignoreChildTypes = ['title'];
  4881. var ls = (function(t) {
  4882. cu(n, t);
  4883. var e,
  4884. r =
  4885. ((e = n),
  4886. function() {
  4887. var t,
  4888. r = uu(e);
  4889. if (cs()) {
  4890. var n = uu(this).constructor;
  4891. t = Reflect.construct(r, arguments, n);
  4892. } else t = r.apply(this, arguments);
  4893. return au(this, t);
  4894. });
  4895. function n(t, e, i) {
  4896. return Un(this, n), r.call(this, t, e, i);
  4897. }
  4898. return n;
  4899. })(ss),
  4900. fs = yt.indexOf,
  4901. hs = [].indexOf,
  4902. ps = !!hs && 1 / [1].indexOf(1, -0) < 0,
  4903. gs = rr('indexOf'),
  4904. ys = ie('indexOf', { ACCESSORS: !0, 1: 0 });
  4905. Dt(
  4906. { target: 'Array', proto: !0, forced: ps || !gs || !ys },
  4907. {
  4908. indexOf: function(t) {
  4909. return ps ? hs.apply(this, arguments) || 0 : fs(this, t, arguments.length > 1 ? arguments[1] : void 0);
  4910. }
  4911. }
  4912. );
  4913. var vs = [].reverse,
  4914. ds = [1, 2];
  4915. Dt(
  4916. { target: 'Array', proto: !0, forced: String(ds) === String(ds.reverse()) },
  4917. {
  4918. reverse: function() {
  4919. return Lt(this) && (this.length = this.length), vs.call(this);
  4920. }
  4921. }
  4922. );
  4923. var ms = function(t, e) {
  4924. for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = uu(t)); );
  4925. return t;
  4926. },
  4927. xs = r(function(t) {
  4928. function e(r, n, i) {
  4929. return (
  4930. 'undefined' != typeof Reflect && Reflect.get
  4931. ? (t.exports = e = Reflect.get)
  4932. : (t.exports = e = function(t, e, r) {
  4933. var n = ms(t, e);
  4934. if (n) {
  4935. var i = Object.getOwnPropertyDescriptor(n, e);
  4936. return i.get ? i.get.call(r) : i.value;
  4937. }
  4938. }),
  4939. e(r, n, i || r)
  4940. );
  4941. }
  4942. t.exports = e;
  4943. });
  4944. function bs(t) {
  4945. var e = t.trim();
  4946. return /^('|")/.test(e) ? e : '"'.concat(e, '"');
  4947. }
  4948. function ws(t) {
  4949. if (!t) return '';
  4950. var e = t.trim().toLowerCase();
  4951. switch (e) {
  4952. case 'normal':
  4953. case 'italic':
  4954. case 'oblique':
  4955. case 'inherit':
  4956. case 'initial':
  4957. case 'unset':
  4958. return e;
  4959. default:
  4960. return /^oblique\s+(-|)\d+deg$/.test(e) ? e : '';
  4961. }
  4962. }
  4963. function Ss(t) {
  4964. if (!t) return '';
  4965. var e = t.trim().toLowerCase();
  4966. switch (e) {
  4967. case 'normal':
  4968. case 'bold':
  4969. case 'lighter':
  4970. case 'bolder':
  4971. case 'inherit':
  4972. case 'initial':
  4973. case 'unset':
  4974. return e;
  4975. default:
  4976. return /^[\d.]+$/.test(e) ? e : '';
  4977. }
  4978. }
  4979. var ks = (function() {
  4980. function t(e, r, n, i, o, a) {
  4981. Un(this, t);
  4982. var u = a ? ('string' == typeof a ? t.parse(a) : a) : {};
  4983. (this.fontFamily = o || u.fontFamily),
  4984. (this.fontSize = i || u.fontSize),
  4985. (this.fontStyle = e || u.fontStyle),
  4986. (this.fontWeight = n || u.fontWeight),
  4987. (this.fontVariant = r || u.fontVariant);
  4988. }
  4989. return (
  4990. Hn(
  4991. t,
  4992. [
  4993. {
  4994. key: 'toString',
  4995. value: function() {
  4996. return [
  4997. ws(this.fontStyle),
  4998. this.fontVariant,
  4999. Ss(this.fontWeight),
  5000. this.fontSize,
  5001. ((t = this.fontFamily),
  5002. 'undefined' == typeof process
  5003. ? t
  5004. : t
  5005. .trim()
  5006. .split(',')
  5007. .map(bs)
  5008. .join(','))
  5009. ]
  5010. .join(' ')
  5011. .trim();
  5012. var t;
  5013. }
  5014. }
  5015. ],
  5016. [
  5017. {
  5018. key: 'parse',
  5019. value: function() {
  5020. var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '',
  5021. r = arguments.length > 1 ? arguments[1] : void 0,
  5022. n = '',
  5023. i = '',
  5024. o = '',
  5025. a = '',
  5026. u = '',
  5027. s = Xe(e)
  5028. .trim()
  5029. .split(' '),
  5030. c = { fontSize: !1, fontStyle: !1, fontWeight: !1, fontVariant: !1 };
  5031. return (
  5032. s.forEach(function(e) {
  5033. switch (!0) {
  5034. case !c.fontStyle && t.styles.includes(e):
  5035. 'inherit' !== e && (n = e), (c.fontStyle = !0);
  5036. break;
  5037. case !c.fontVariant && t.variants.includes(e):
  5038. 'inherit' !== e && (i = e), (c.fontStyle = !0), (c.fontVariant = !0);
  5039. break;
  5040. case !c.fontWeight && t.weights.includes(e):
  5041. 'inherit' !== e && (o = e),
  5042. (c.fontStyle = !0),
  5043. (c.fontVariant = !0),
  5044. (c.fontWeight = !0);
  5045. break;
  5046. case !c.fontSize:
  5047. if ('inherit' !== e) {
  5048. var r = e.split('/'),
  5049. s = fr(r, 1);
  5050. a = s[0];
  5051. }
  5052. (c.fontStyle = !0),
  5053. (c.fontVariant = !0),
  5054. (c.fontWeight = !0),
  5055. (c.fontSize = !0);
  5056. break;
  5057. default:
  5058. 'inherit' !== e && (u += e);
  5059. }
  5060. }),
  5061. new t(n, i, o, a, u, r)
  5062. );
  5063. }
  5064. }
  5065. ]
  5066. ),
  5067. t
  5068. );
  5069. })();
  5070. (ks.styles = 'normal|italic|oblique|inherit'),
  5071. (ks.variants = 'normal|small-caps|inherit'),
  5072. (ks.weights = 'normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit');
  5073. var Ps = function(t, e, r) {
  5074. var n, i;
  5075. return (
  5076. Mu &&
  5077. 'function' == typeof (n = e.constructor) &&
  5078. n !== r &&
  5079. d((i = n.prototype)) &&
  5080. i !== r.prototype &&
  5081. Mu(t, i),
  5082. t
  5083. );
  5084. },
  5085. Rs = bt.f,
  5086. As = A.f,
  5087. Es = T.f,
  5088. Cs = Uu.trim,
  5089. Ts = i.Number,
  5090. Os = Ts.prototype,
  5091. Ms = 'Number' == h(Br(Os)),
  5092. Ds = function(t) {
  5093. var e,
  5094. r,
  5095. n,
  5096. i,
  5097. o,
  5098. a,
  5099. u,
  5100. s,
  5101. c = m(t, !1);
  5102. if ('string' == typeof c && c.length > 2)
  5103. if (43 === (e = (c = Cs(c)).charCodeAt(0)) || 45 === e) {
  5104. if (88 === (r = c.charCodeAt(2)) || 120 === r) return NaN;
  5105. } else if (48 === e) {
  5106. switch (c.charCodeAt(1)) {
  5107. case 66:
  5108. case 98:
  5109. (n = 2), (i = 49);
  5110. break;
  5111. case 79:
  5112. case 111:
  5113. (n = 8), (i = 55);
  5114. break;
  5115. default:
  5116. return +c;
  5117. }
  5118. for (a = (o = c.slice(2)).length, u = 0; u < a; u++)
  5119. if ((s = o.charCodeAt(u)) < 48 || s > i) return NaN;
  5120. return parseInt(o, n);
  5121. }
  5122. return +c;
  5123. };
  5124. if (Ot('Number', !Ts(' 0o1') || !Ts('0b1') || Ts('+0x1'))) {
  5125. for (
  5126. var Vs,
  5127. Ns = function(t) {
  5128. var e = arguments.length < 1 ? 0 : t,
  5129. r = this;
  5130. return r instanceof Ns &&
  5131. (Ms
  5132. ? o(function() {
  5133. Os.valueOf.call(r);
  5134. })
  5135. : 'Number' != h(r))
  5136. ? Ps(new Ts(Ds(e)), r, Ns)
  5137. : Ds(e);
  5138. },
  5139. Is = a
  5140. ? Rs(Ts)
  5141. : 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'.split(
  5142. ','
  5143. ),
  5144. Ls = 0;
  5145. Is.length > Ls;
  5146. Ls++
  5147. )
  5148. b(Ts, (Vs = Is[Ls])) && !b(Ns, Vs) && Es(Ns, Vs, As(Ts, Vs));
  5149. (Ns.prototype = Os), (Os.constructor = Ns), rt(i, 'Number', Ns);
  5150. }
  5151. var js = (function() {
  5152. function t() {
  5153. var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Number.NaN,
  5154. r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Number.NaN,
  5155. n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Number.NaN,
  5156. i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : Number.NaN;
  5157. Un(this, t),
  5158. (this.x1 = e),
  5159. (this.y1 = r),
  5160. (this.x2 = n),
  5161. (this.y2 = i),
  5162. this.addPoint(e, r),
  5163. this.addPoint(n, i);
  5164. }
  5165. return (
  5166. Hn(t, [
  5167. {
  5168. key: 'addPoint',
  5169. value: function(t, e) {
  5170. void 0 !== t &&
  5171. ((isNaN(this.x1) || isNaN(this.x2)) && ((this.x1 = t), (this.x2 = t)),
  5172. t < this.x1 && (this.x1 = t),
  5173. t > this.x2 && (this.x2 = t)),
  5174. void 0 !== e &&
  5175. ((isNaN(this.y1) || isNaN(this.y2)) && ((this.y1 = e), (this.y2 = e)),
  5176. e < this.y1 && (this.y1 = e),
  5177. e > this.y2 && (this.y2 = e));
  5178. }
  5179. },
  5180. {
  5181. key: 'addX',
  5182. value: function(t) {
  5183. this.addPoint(t, null);
  5184. }
  5185. },
  5186. {
  5187. key: 'addY',
  5188. value: function(t) {
  5189. this.addPoint(null, t);
  5190. }
  5191. },
  5192. {
  5193. key: 'addBoundingBox',
  5194. value: function(t) {
  5195. if (t) {
  5196. var e = t.x1,
  5197. r = t.y1,
  5198. n = t.x2,
  5199. i = t.y2;
  5200. this.addPoint(e, r), this.addPoint(n, i);
  5201. }
  5202. }
  5203. },
  5204. {
  5205. key: 'sumCubic',
  5206. value: function(t, e, r, n, i) {
  5207. return (
  5208. Math.pow(1 - t, 3) * e +
  5209. 3 * Math.pow(1 - t, 2) * t * r +
  5210. 3 * (1 - t) * Math.pow(t, 2) * n +
  5211. Math.pow(t, 3) * i
  5212. );
  5213. }
  5214. },
  5215. {
  5216. key: 'bezierCurveAdd',
  5217. value: function(t, e, r, n, i) {
  5218. var o = 6 * e - 12 * r + 6 * n,
  5219. a = -3 * e + 9 * r - 9 * n + 3 * i,
  5220. u = 3 * r - 3 * e;
  5221. if (0 !== a) {
  5222. var s = Math.pow(o, 2) - 4 * u * a;
  5223. if (!(s < 0)) {
  5224. var c = (-o + Math.sqrt(s)) / (2 * a);
  5225. 0 < c &&
  5226. c < 1 &&
  5227. (t
  5228. ? this.addX(this.sumCubic(c, e, r, n, i))
  5229. : this.addY(this.sumCubic(c, e, r, n, i)));
  5230. var l = (-o - Math.sqrt(s)) / (2 * a);
  5231. 0 < l &&
  5232. l < 1 &&
  5233. (t
  5234. ? this.addX(this.sumCubic(l, e, r, n, i))
  5235. : this.addY(this.sumCubic(l, e, r, n, i)));
  5236. }
  5237. } else {
  5238. if (0 === o) return;
  5239. var f = -u / o;
  5240. 0 < f &&
  5241. f < 1 &&
  5242. (t ? this.addX(this.sumCubic(f, e, r, n, i)) : this.addY(this.sumCubic(f, e, r, n, i)));
  5243. }
  5244. }
  5245. },
  5246. {
  5247. key: 'addBezierCurve',
  5248. value: function(t, e, r, n, i, o, a, u) {
  5249. this.addPoint(t, e),
  5250. this.addPoint(a, u),
  5251. this.bezierCurveAdd(!0, t, r, i, a),
  5252. this.bezierCurveAdd(!1, e, n, o, u);
  5253. }
  5254. },
  5255. {
  5256. key: 'addQuadraticCurve',
  5257. value: function(t, e, r, n, i, o) {
  5258. var a = t + (2 / 3) * (r - t),
  5259. u = e + (2 / 3) * (n - e),
  5260. s = a + (1 / 3) * (i - t),
  5261. c = u + (1 / 3) * (o - e);
  5262. this.addBezierCurve(t, e, a, s, u, c, i, o);
  5263. }
  5264. },
  5265. {
  5266. key: 'isPointInBox',
  5267. value: function(t, e) {
  5268. var r = this.x1,
  5269. n = this.y1,
  5270. i = this.x2,
  5271. o = this.y2;
  5272. return r <= t && t <= i && n <= e && e <= o;
  5273. }
  5274. },
  5275. {
  5276. key: 'x',
  5277. get: function() {
  5278. return this.x1;
  5279. }
  5280. },
  5281. {
  5282. key: 'y',
  5283. get: function() {
  5284. return this.y1;
  5285. }
  5286. },
  5287. {
  5288. key: 'width',
  5289. get: function() {
  5290. return this.x2 - this.x1;
  5291. }
  5292. },
  5293. {
  5294. key: 'height',
  5295. get: function() {
  5296. return this.y2 - this.y1;
  5297. }
  5298. }
  5299. ]),
  5300. t
  5301. );
  5302. })();
  5303. function zs() {
  5304. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  5305. if (Reflect.construct.sham) return !1;
  5306. if ('function' == typeof Proxy) return !0;
  5307. try {
  5308. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  5309. } catch (t) {
  5310. return !1;
  5311. }
  5312. }
  5313. var Bs = (function(t) {
  5314. cu(n, t);
  5315. var e,
  5316. r =
  5317. ((e = n),
  5318. function() {
  5319. var t,
  5320. r = uu(e);
  5321. if (zs()) {
  5322. var n = uu(this).constructor;
  5323. t = Reflect.construct(r, arguments, n);
  5324. } else t = r.apply(this, arguments);
  5325. return au(this, t);
  5326. });
  5327. function n() {
  5328. var t;
  5329. return Un(this, n), ((t = r.apply(this, arguments)).modifiedEmSizeStack = !1), t;
  5330. }
  5331. return (
  5332. Hn(n, [
  5333. {
  5334. key: 'calculateOpacity',
  5335. value: function() {
  5336. for (var t = 1, e = this; e; ) {
  5337. var r = e.getStyle('opacity', !1, !0);
  5338. r.hasValue() && (t *= r.getNumber()), (e = e.parent);
  5339. }
  5340. return t;
  5341. }
  5342. },
  5343. {
  5344. key: 'setContext',
  5345. value: function(t) {
  5346. var e = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
  5347. if (!e) {
  5348. var r = this.getStyle('fill'),
  5349. n = this.getStyle('fill-opacity'),
  5350. i = this.getStyle('stroke'),
  5351. o = this.getStyle('stroke-opacity');
  5352. if (r.isUrlDefinition()) {
  5353. var a = r.getFillStyleDefinition(this, n);
  5354. a && (t.fillStyle = a);
  5355. } else if (r.hasValue()) {
  5356. 'currentColor' === r.getString() && r.setValue(this.getStyle('color').getColor());
  5357. var u = r.getColor();
  5358. 'inherit' !== u && (t.fillStyle = 'none' === u ? 'rgba(0,0,0,0)' : u);
  5359. }
  5360. if (n.hasValue()) {
  5361. var s = new La(this.document, 'fill', t.fillStyle).addOpacity(n).getColor();
  5362. t.fillStyle = s;
  5363. }
  5364. if (i.isUrlDefinition()) {
  5365. var c = i.getFillStyleDefinition(this, o);
  5366. c && (t.strokeStyle = c);
  5367. } else if (i.hasValue()) {
  5368. 'currentColor' === i.getString() && i.setValue(this.getStyle('color').getColor());
  5369. var l = i.getString();
  5370. 'inherit' !== l && (t.strokeStyle = 'none' === l ? 'rgba(0,0,0,0)' : l);
  5371. }
  5372. if (o.hasValue()) {
  5373. var f = new La(this.document, 'stroke', t.strokeStyle).addOpacity(o).getString();
  5374. t.strokeStyle = f;
  5375. }
  5376. var h = this.getStyle('stroke-width');
  5377. if (h.hasValue()) {
  5378. var p = h.getPixels();
  5379. t.lineWidth = p || 1e-8;
  5380. }
  5381. var g = this.getStyle('stroke-linecap'),
  5382. y = this.getStyle('stroke-linejoin'),
  5383. v = this.getStyle('stroke-miterlimit'),
  5384. d = this.getStyle('paint-order'),
  5385. m = this.getStyle('stroke-dasharray'),
  5386. x = this.getStyle('stroke-dashoffset');
  5387. if (
  5388. (g.hasValue() && (t.lineCap = g.getString()),
  5389. y.hasValue() && (t.lineJoin = y.getString()),
  5390. v.hasValue() && (t.miterLimit = v.getNumber()),
  5391. d.hasValue() && (t.paintOrder = d.getValue()),
  5392. m.hasValue() && 'none' !== m.getString())
  5393. ) {
  5394. var b = Ze(m.getString());
  5395. void 0 !== t.setLineDash
  5396. ? t.setLineDash(b)
  5397. : void 0 !== t.webkitLineDash
  5398. ? (t.webkitLineDash = b)
  5399. : void 0 === t.mozDash || (1 === b.length && 0 === b[0]) || (t.mozDash = b);
  5400. var w = x.getPixels();
  5401. void 0 !== t.lineDashOffset
  5402. ? (t.lineDashOffset = w)
  5403. : void 0 !== t.webkitLineDashOffset
  5404. ? (t.webkitLineDashOffset = w)
  5405. : void 0 !== t.mozDashOffset && (t.mozDashOffset = w);
  5406. }
  5407. }
  5408. if (((this.modifiedEmSizeStack = !1), void 0 !== t.font)) {
  5409. var S = this.getStyle('font'),
  5410. k = this.getStyle('font-style'),
  5411. P = this.getStyle('font-variant'),
  5412. R = this.getStyle('font-weight'),
  5413. A = this.getStyle('font-size'),
  5414. E = this.getStyle('font-family'),
  5415. C = new ks(
  5416. k.getString(),
  5417. P.getString(),
  5418. R.getString(),
  5419. A.hasValue() ? ''.concat(A.getPixels(!0), 'px') : '',
  5420. E.getString(),
  5421. ks.parse(S.getString(), t.font)
  5422. );
  5423. k.setValue(C.fontStyle),
  5424. P.setValue(C.fontVariant),
  5425. R.setValue(C.fontWeight),
  5426. A.setValue(C.fontSize),
  5427. E.setValue(C.fontFamily),
  5428. (t.font = C.toString()),
  5429. A.isPixels() &&
  5430. ((this.document.emSize = A.getPixels()), (this.modifiedEmSizeStack = !0));
  5431. }
  5432. e || (this.applyEffects(t), (t.globalAlpha = this.calculateOpacity()));
  5433. }
  5434. },
  5435. {
  5436. key: 'clearContext',
  5437. value: function(t) {
  5438. xs(uu(n.prototype), 'clearContext', this).call(this, t),
  5439. this.modifiedEmSizeStack && this.document.popEmSize();
  5440. }
  5441. }
  5442. ]),
  5443. n
  5444. );
  5445. })(ss);
  5446. function Fs() {
  5447. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  5448. if (Reflect.construct.sham) return !1;
  5449. if ('function' == typeof Proxy) return !0;
  5450. try {
  5451. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  5452. } catch (t) {
  5453. return !1;
  5454. }
  5455. }
  5456. var _s = (function(t) {
  5457. cu(n, t);
  5458. var e,
  5459. r =
  5460. ((e = n),
  5461. function() {
  5462. var t,
  5463. r = uu(e);
  5464. if (Fs()) {
  5465. var n = uu(this).constructor;
  5466. t = Reflect.construct(r, arguments, n);
  5467. } else t = r.apply(this, arguments);
  5468. return au(this, t);
  5469. });
  5470. function n(t, e, i) {
  5471. var o;
  5472. return (
  5473. Un(this, n),
  5474. ((o = r.call(this, t, e, (this instanceof n ? this.constructor : void 0) === n || i)).type = 'text'),
  5475. (o.x = 0),
  5476. (o.y = 0),
  5477. (o.measureCache = -1),
  5478. o
  5479. );
  5480. }
  5481. return (
  5482. Hn(n, [
  5483. {
  5484. key: 'setContext',
  5485. value: function(t) {
  5486. var e = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
  5487. xs(uu(n.prototype), 'setContext', this).call(this, t, e);
  5488. var r =
  5489. this.getStyle('dominant-baseline').getTextBaseline() ||
  5490. this.getStyle('alignment-baseline').getTextBaseline();
  5491. r && (t.textBaseline = r);
  5492. }
  5493. },
  5494. {
  5495. key: 'initializeCoordinates',
  5496. value: function(t) {
  5497. (this.x = this.getAttribute('x').getPixels('x')),
  5498. (this.y = this.getAttribute('y').getPixels('y'));
  5499. var e = this.getAttribute('dx'),
  5500. r = this.getAttribute('dy');
  5501. e.hasValue() && (this.x += e.getPixels('x')),
  5502. r.hasValue() && (this.y += r.getPixels('y')),
  5503. (this.x += this.getAnchorDelta(t, this, 0));
  5504. }
  5505. },
  5506. {
  5507. key: 'getBoundingBox',
  5508. value: function(t) {
  5509. var e = this;
  5510. if ('text' !== this.type) return this.getTElementBoundingBox(t);
  5511. this.initializeCoordinates(t);
  5512. var r = null;
  5513. return (
  5514. this.children.forEach(function(n, i) {
  5515. var o = e.getChildBoundingBox(t, e, e, i);
  5516. r ? r.addBoundingBox(o) : (r = o);
  5517. }),
  5518. r
  5519. );
  5520. }
  5521. },
  5522. {
  5523. key: 'getFontSize',
  5524. value: function() {
  5525. var t = this.document,
  5526. e = this.parent,
  5527. r = ks.parse(t.ctx.font).fontSize;
  5528. return e.getStyle('font-size').getNumber(r);
  5529. }
  5530. },
  5531. {
  5532. key: 'getTElementBoundingBox',
  5533. value: function(t) {
  5534. var e = this.getFontSize();
  5535. return new js(this.x, this.y - e, this.x + this.measureText(t), this.y);
  5536. }
  5537. },
  5538. {
  5539. key: 'getGlyph',
  5540. value: function(t, e, r) {
  5541. var n = e[r],
  5542. i = null;
  5543. if (t.isArabic) {
  5544. var o = e.length,
  5545. a = e[r - 1],
  5546. u = e[r + 1],
  5547. s = 'isolated';
  5548. (0 === r || ' ' === a) && r < o - 2 && ' ' !== u && (s = 'terminal'),
  5549. r > 0 && ' ' !== a && r < o - 2 && ' ' !== u && (s = 'medial'),
  5550. r > 0 && ' ' !== a && (r === o - 1 || ' ' === u) && (s = 'initial'),
  5551. void 0 !== t.glyphs[n] &&
  5552. ((i = t.glyphs[n][s]) || 'glyph' !== t.glyphs[n].type || (i = t.glyphs[n]));
  5553. } else i = t.glyphs[n];
  5554. return i || (i = t.missingGlyph), i;
  5555. }
  5556. },
  5557. {
  5558. key: 'getText',
  5559. value: function() {
  5560. return '';
  5561. }
  5562. },
  5563. {
  5564. key: 'getTextFromNode',
  5565. value: function(t) {
  5566. var e = t || this.node,
  5567. r = Array.from(e.parentNode.childNodes),
  5568. n = r.indexOf(e),
  5569. i = r.length - 1,
  5570. o = Xe(e.value || e.text || e.textContent || '');
  5571. return 0 === n && (o = Ye(o)), n === i && (o = Qe(o)), o;
  5572. }
  5573. },
  5574. {
  5575. key: 'renderChildren',
  5576. value: function(t) {
  5577. var e = this;
  5578. if ('text' === this.type) {
  5579. this.initializeCoordinates(t),
  5580. this.children.forEach(function(r, n) {
  5581. e.renderChild(t, e, e, n);
  5582. });
  5583. var r = this.document.screen.mouse;
  5584. r.isWorking() && r.checkBoundingBox(this, this.getBoundingBox(t));
  5585. } else this.renderTElementChildren(t);
  5586. }
  5587. },
  5588. {
  5589. key: 'renderTElementChildren',
  5590. value: function(t) {
  5591. var e = this.document,
  5592. r = this.parent,
  5593. n = this.getText(),
  5594. i = r.getStyle('font-family').getDefinition();
  5595. if (i)
  5596. for (
  5597. var o = i.fontFace.unitsPerEm,
  5598. a = ks.parse(e.ctx.font),
  5599. u = r.getStyle('font-size').getNumber(a.fontSize),
  5600. s = r.getStyle('font-style').getString(a.fontStyle),
  5601. c = u / o,
  5602. l = i.isRTL
  5603. ? n
  5604. .split('')
  5605. .reverse()
  5606. .join('')
  5607. : n,
  5608. f = Ze(r.getAttribute('dx').getString()),
  5609. h = l.length,
  5610. p = 0;
  5611. p < h;
  5612. p++
  5613. ) {
  5614. var g = this.getGlyph(i, l, p);
  5615. t.translate(this.x, this.y), t.scale(c, -c);
  5616. var y = t.lineWidth;
  5617. (t.lineWidth = (t.lineWidth * o) / u),
  5618. 'italic' === s && t.transform(1, 0, 0.4, 1, 0, 0),
  5619. g.render(t),
  5620. 'italic' === s && t.transform(1, 0, -0.4, 1, 0, 0),
  5621. (t.lineWidth = y),
  5622. t.scale(1 / c, -1 / c),
  5623. t.translate(-this.x, -this.y),
  5624. (this.x += (u * (g.horizAdvX || i.horizAdvX)) / o),
  5625. void 0 === f[p] || isNaN(f[p]) || (this.x += f[p]);
  5626. }
  5627. else {
  5628. var v = this.x,
  5629. d = this.y;
  5630. 'stroke' === t.paintOrder
  5631. ? (t.strokeStyle && t.strokeText(n, v, d), t.fillStyle && t.fillText(n, v, d))
  5632. : (t.fillStyle && t.fillText(n, v, d), t.strokeStyle && t.strokeText(n, v, d));
  5633. }
  5634. }
  5635. },
  5636. {
  5637. key: 'getAnchorDelta',
  5638. value: function(t, e, r) {
  5639. var n = this.getStyle('text-anchor').getString('start');
  5640. if ('start' !== n) {
  5641. for (
  5642. var i = e.children, o = i.length, a = null, u = 0, s = r;
  5643. s < o &&
  5644. ((a = i[s]),
  5645. !(
  5646. (s > r && a.getAttribute('x').hasValue()) ||
  5647. a.getAttribute('text-anchor').hasValue()
  5648. ));
  5649. s++
  5650. )
  5651. u += a.measureTextRecursive(t);
  5652. return -1 * ('end' === n ? u : u / 2);
  5653. }
  5654. return 0;
  5655. }
  5656. },
  5657. {
  5658. key: 'adjustChildCoordinates',
  5659. value: function(t, e, r, n) {
  5660. var i = r.children[n];
  5661. if ('function' != typeof i.measureText) return i;
  5662. t.save(), i.setContext(t, !0);
  5663. var o = i.getAttribute('x'),
  5664. a = i.getAttribute('y'),
  5665. u = i.getAttribute('dx'),
  5666. s = i.getAttribute('dy'),
  5667. c = i.getAttribute('text-anchor').getString('start');
  5668. if (
  5669. (0 === n &&
  5670. 'textNode' !== i.type &&
  5671. (o.hasValue() || o.setValue(e.getAttribute('x').getValue('0')),
  5672. a.hasValue() || a.setValue(e.getAttribute('y').getValue('0')),
  5673. u.hasValue() || u.setValue(e.getAttribute('dx').getValue('0')),
  5674. s.hasValue() || s.setValue(e.getAttribute('dy').getValue('0'))),
  5675. o.hasValue())
  5676. ) {
  5677. if (((i.x = o.getPixels('x') + e.getAnchorDelta(t, r, n)), 'start' !== c)) {
  5678. var l = i.measureTextRecursive(t);
  5679. i.x += -1 * ('end' === c ? l : l / 2);
  5680. }
  5681. u.hasValue() && (i.x += u.getPixels('x'));
  5682. } else {
  5683. if ('start' !== c) {
  5684. var f = i.measureTextRecursive(t);
  5685. e.x += -1 * ('end' === c ? f : f / 2);
  5686. }
  5687. u.hasValue() && (e.x += u.getPixels('x')), (i.x = e.x);
  5688. }
  5689. return (
  5690. (e.x = i.x + i.measureText(t)),
  5691. a.hasValue()
  5692. ? ((i.y = a.getPixels('y')), s.hasValue() && (i.y += s.getPixels('y')))
  5693. : (s.hasValue() && (e.y += s.getPixels('y')), (i.y = e.y)),
  5694. (e.y = i.y),
  5695. i.clearContext(t),
  5696. t.restore(),
  5697. i
  5698. );
  5699. }
  5700. },
  5701. {
  5702. key: 'getChildBoundingBox',
  5703. value: function(t, e, r, n) {
  5704. var i = this.adjustChildCoordinates(t, e, r, n),
  5705. o = i.getBoundingBox(t);
  5706. return o
  5707. ? (i.children.forEach(function(r, n) {
  5708. var a = e.getChildBoundingBox(t, e, i, n);
  5709. o.addBoundingBox(a);
  5710. }),
  5711. o)
  5712. : null;
  5713. }
  5714. },
  5715. {
  5716. key: 'renderChild',
  5717. value: function(t, e, r, n) {
  5718. var i = this.adjustChildCoordinates(t, e, r, n);
  5719. i.render(t),
  5720. i.children.forEach(function(r, n) {
  5721. e.renderChild(t, e, i, n);
  5722. });
  5723. }
  5724. },
  5725. {
  5726. key: 'measureTextRecursive',
  5727. value: function(t) {
  5728. return this.children.reduce(function(e, r) {
  5729. return e + r.measureTextRecursive(t);
  5730. }, this.measureText(t));
  5731. }
  5732. },
  5733. {
  5734. key: 'measureText',
  5735. value: function(t) {
  5736. var e = this.measureCache;
  5737. if (~e) return e;
  5738. var r = this.getText(),
  5739. n = this.measureTargetText(t, r);
  5740. return (this.measureCache = n), n;
  5741. }
  5742. },
  5743. {
  5744. key: 'measureTargetText',
  5745. value: function(t, e) {
  5746. if (!e.length) return 0;
  5747. var r = this.parent,
  5748. n = r.getStyle('font-family').getDefinition();
  5749. if (n) {
  5750. for (
  5751. var i = this.getFontSize(),
  5752. o = n.isRTL
  5753. ? e
  5754. .split('')
  5755. .reverse()
  5756. .join('')
  5757. : e,
  5758. a = Ze(r.getAttribute('dx').getString()),
  5759. u = o.length,
  5760. s = 0,
  5761. c = 0;
  5762. c < u;
  5763. c++
  5764. ) {
  5765. (s += ((this.getGlyph(n, o, c).horizAdvX || n.horizAdvX) * i) / n.fontFace.unitsPerEm),
  5766. void 0 === a[c] || isNaN(a[c]) || (s += a[c]);
  5767. }
  5768. return s;
  5769. }
  5770. if (!t.measureText) return 10 * e.length;
  5771. t.save(), this.setContext(t, !0);
  5772. var l = t.measureText(e).width;
  5773. return this.clearContext(t), t.restore(), l;
  5774. }
  5775. }
  5776. ]),
  5777. n
  5778. );
  5779. })(Bs);
  5780. function $s() {
  5781. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  5782. if (Reflect.construct.sham) return !1;
  5783. if ('function' == typeof Proxy) return !0;
  5784. try {
  5785. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  5786. } catch (t) {
  5787. return !1;
  5788. }
  5789. }
  5790. var Gs = (function(t) {
  5791. cu(n, t);
  5792. var e,
  5793. r =
  5794. ((e = n),
  5795. function() {
  5796. var t,
  5797. r = uu(e);
  5798. if ($s()) {
  5799. var n = uu(this).constructor;
  5800. t = Reflect.construct(r, arguments, n);
  5801. } else t = r.apply(this, arguments);
  5802. return au(this, t);
  5803. });
  5804. function n(t, e, i) {
  5805. var o;
  5806. return (
  5807. Un(this, n),
  5808. ((o = r.call(this, t, e, (this instanceof n ? this.constructor : void 0) === n || i)).type = 'tspan'),
  5809. (o.text = o.children.length > 0 ? '' : o.getTextFromNode()),
  5810. o
  5811. );
  5812. }
  5813. return (
  5814. Hn(n, [
  5815. {
  5816. key: 'getText',
  5817. value: function() {
  5818. return this.text;
  5819. }
  5820. }
  5821. ]),
  5822. n
  5823. );
  5824. })(_s);
  5825. function qs() {
  5826. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  5827. if (Reflect.construct.sham) return !1;
  5828. if ('function' == typeof Proxy) return !0;
  5829. try {
  5830. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  5831. } catch (t) {
  5832. return !1;
  5833. }
  5834. }
  5835. var Us = (function(t) {
  5836. cu(n, t);
  5837. var e,
  5838. r =
  5839. ((e = n),
  5840. function() {
  5841. var t,
  5842. r = uu(e);
  5843. if (qs()) {
  5844. var n = uu(this).constructor;
  5845. t = Reflect.construct(r, arguments, n);
  5846. } else t = r.apply(this, arguments);
  5847. return au(this, t);
  5848. });
  5849. function n() {
  5850. var t;
  5851. return Un(this, n), ((t = r.apply(this, arguments)).type = 'textNode'), t;
  5852. }
  5853. return n;
  5854. })(Gs);
  5855. Dt(
  5856. { target: 'Array', proto: !0 },
  5857. {
  5858. fill: function(t) {
  5859. for (
  5860. var e = It(this),
  5861. r = lt(e.length),
  5862. n = arguments.length,
  5863. i = pt(n > 1 ? arguments[1] : void 0, r),
  5864. o = n > 2 ? arguments[2] : void 0,
  5865. a = void 0 === o ? r : pt(o, r);
  5866. a > i;
  5867. )
  5868. e[i++] = t;
  5869. return e;
  5870. }
  5871. }
  5872. ),
  5873. pu('fill');
  5874. var Ws = (function() {
  5875. function t(e) {
  5876. Un(this, t),
  5877. (this.control = null),
  5878. (this.start = null),
  5879. (this.current = null),
  5880. (this.command = ''),
  5881. (this.tokens = []),
  5882. (this.i = -1),
  5883. (this.previousCommand = ''),
  5884. (this.points = []),
  5885. (this.angles = []),
  5886. (this.tokens = (function(t) {
  5887. return Xe(
  5888. t
  5889. .replace(/,/gm, ' ')
  5890. .replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm, '$1 $2')
  5891. .replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm, '$1 $2')
  5892. .replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm, '$1 $2')
  5893. .replace(/([0-9])([+\-])/gm, '$1 $2')
  5894. .replace(/(\.[0-9]*)(\.)/gm, '$1 $2')
  5895. .replace(/(\.[0-9]*)(\.)/gm, '$1 $2')
  5896. .replace(/([Aa](?:\s+(?:[0-9]*\.)?[0-9]+){3})\s+([01])\s*([01])/gm, '$1 $2 $3 ')
  5897. ).trim();
  5898. })(e).split(' '));
  5899. }
  5900. return (
  5901. Hn(t, [
  5902. {
  5903. key: 'reset',
  5904. value: function() {
  5905. (this.i = -1),
  5906. (this.command = ''),
  5907. (this.previousCommand = ''),
  5908. (this.start = new za(0, 0)),
  5909. (this.control = new za(0, 0)),
  5910. (this.current = new za(0, 0)),
  5911. (this.points = []),
  5912. (this.angles = []);
  5913. }
  5914. },
  5915. {
  5916. key: 'isEnd',
  5917. value: function() {
  5918. return this.i >= this.tokens.length - 1;
  5919. }
  5920. },
  5921. {
  5922. key: 'isCommandOrEnd',
  5923. value: function() {
  5924. if (this.isEnd()) return !0;
  5925. var t = this.i,
  5926. e = this.tokens;
  5927. return /^[A-Za-z]$/.test(e[t + 1]);
  5928. }
  5929. },
  5930. {
  5931. key: 'isRelativeCommand',
  5932. value: function() {
  5933. switch (this.command) {
  5934. case 'm':
  5935. case 'l':
  5936. case 'h':
  5937. case 'v':
  5938. case 'c':
  5939. case 's':
  5940. case 'q':
  5941. case 't':
  5942. case 'a':
  5943. case 'z':
  5944. return !0;
  5945. default:
  5946. return !1;
  5947. }
  5948. }
  5949. },
  5950. {
  5951. key: 'getToken',
  5952. value: function() {
  5953. return this.i++, this.tokens[this.i];
  5954. }
  5955. },
  5956. {
  5957. key: 'getScalar',
  5958. value: function() {
  5959. return parseFloat(this.getToken());
  5960. }
  5961. },
  5962. {
  5963. key: 'nextCommand',
  5964. value: function() {
  5965. (this.previousCommand = this.command), (this.command = this.getToken());
  5966. }
  5967. },
  5968. {
  5969. key: 'getPoint',
  5970. value: function() {
  5971. var t = new za(this.getScalar(), this.getScalar());
  5972. return this.makeAbsolute(t);
  5973. }
  5974. },
  5975. {
  5976. key: 'getAsControlPoint',
  5977. value: function() {
  5978. var t = this.getPoint();
  5979. return (this.control = t), t;
  5980. }
  5981. },
  5982. {
  5983. key: 'getAsCurrentPoint',
  5984. value: function() {
  5985. var t = this.getPoint();
  5986. return (this.current = t), t;
  5987. }
  5988. },
  5989. {
  5990. key: 'getReflectedControlPoint',
  5991. value: function() {
  5992. var t = this.previousCommand.toLowerCase();
  5993. if ('c' !== t && 's' !== t && 'q' !== t && 't' !== t) return this.current;
  5994. var e = this.current,
  5995. r = e.x,
  5996. n = e.y,
  5997. i = this.control,
  5998. o = i.x,
  5999. a = i.y;
  6000. return new za(2 * r - o, 2 * n - a);
  6001. }
  6002. },
  6003. {
  6004. key: 'makeAbsolute',
  6005. value: function(t) {
  6006. if (this.isRelativeCommand()) {
  6007. var e = this.current,
  6008. r = e.x,
  6009. n = e.y;
  6010. (t.x += r), (t.y += n);
  6011. }
  6012. return t;
  6013. }
  6014. },
  6015. {
  6016. key: 'addMarker',
  6017. value: function(t, e, r) {
  6018. var n = this.points,
  6019. i = this.angles;
  6020. r && i.length > 0 && !i[i.length - 1] && (i[i.length - 1] = n[n.length - 1].angleTo(r)),
  6021. this.addMarkerAngle(t, e ? e.angleTo(t) : null);
  6022. }
  6023. },
  6024. {
  6025. key: 'addMarkerAngle',
  6026. value: function(t, e) {
  6027. this.points.push(t), this.angles.push(e);
  6028. }
  6029. },
  6030. {
  6031. key: 'getMarkerPoints',
  6032. value: function() {
  6033. return this.points;
  6034. }
  6035. },
  6036. {
  6037. key: 'getMarkerAngles',
  6038. value: function() {
  6039. for (var t = this.angles, e = t.length, r = 0; r < e; r++)
  6040. if (!t[r])
  6041. for (var n = r + 1; n < e; n++)
  6042. if (t[n]) {
  6043. t[r] = t[n];
  6044. break;
  6045. }
  6046. return t;
  6047. }
  6048. }
  6049. ]),
  6050. t
  6051. );
  6052. })();
  6053. function Hs() {
  6054. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6055. if (Reflect.construct.sham) return !1;
  6056. if ('function' == typeof Proxy) return !0;
  6057. try {
  6058. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6059. } catch (t) {
  6060. return !1;
  6061. }
  6062. }
  6063. var Xs = (function(t) {
  6064. cu(n, t);
  6065. var e,
  6066. r =
  6067. ((e = n),
  6068. function() {
  6069. var t,
  6070. r = uu(e);
  6071. if (Hs()) {
  6072. var n = uu(this).constructor;
  6073. t = Reflect.construct(r, arguments, n);
  6074. } else t = r.apply(this, arguments);
  6075. return au(this, t);
  6076. });
  6077. function n(t, e, i) {
  6078. var o;
  6079. return (
  6080. Un(this, n),
  6081. ((o = r.call(this, t, e, i)).type = 'path'),
  6082. (o.pathParser = null),
  6083. (o.pathParser = new Ws(o.getAttribute('d').getString())),
  6084. o
  6085. );
  6086. }
  6087. return (
  6088. Hn(n, [
  6089. {
  6090. key: 'path',
  6091. value: function(t) {
  6092. var e = this.pathParser,
  6093. r = new js();
  6094. for (e.reset(), t && t.beginPath(); !e.isEnd(); )
  6095. switch ((e.nextCommand(), e.command)) {
  6096. case 'M':
  6097. case 'm':
  6098. this.pathM(t, r);
  6099. break;
  6100. case 'L':
  6101. case 'l':
  6102. this.pathL(t, r);
  6103. break;
  6104. case 'H':
  6105. case 'h':
  6106. this.pathH(t, r);
  6107. break;
  6108. case 'V':
  6109. case 'v':
  6110. this.pathV(t, r);
  6111. break;
  6112. case 'C':
  6113. case 'c':
  6114. this.pathC(t, r);
  6115. break;
  6116. case 'S':
  6117. case 's':
  6118. this.pathS(t, r);
  6119. break;
  6120. case 'Q':
  6121. case 'q':
  6122. this.pathQ(t, r);
  6123. break;
  6124. case 'T':
  6125. case 't':
  6126. this.pathT(t, r);
  6127. break;
  6128. case 'A':
  6129. case 'a':
  6130. this.pathA(t, r);
  6131. break;
  6132. case 'Z':
  6133. case 'z':
  6134. this.pathZ(t, r);
  6135. }
  6136. return r;
  6137. }
  6138. },
  6139. {
  6140. key: 'getBoundingBox',
  6141. value: function(t) {
  6142. return this.path();
  6143. }
  6144. },
  6145. {
  6146. key: 'getMarkers',
  6147. value: function() {
  6148. var t = this.pathParser,
  6149. e = t.getMarkerPoints(),
  6150. r = t.getMarkerAngles();
  6151. return e.map(function(t, e) {
  6152. return [t, r[e]];
  6153. });
  6154. }
  6155. },
  6156. {
  6157. key: 'renderChildren',
  6158. value: function(t) {
  6159. this.path(t), this.document.screen.mouse.checkPath(this, t);
  6160. var e = this.getStyle('fill-rule');
  6161. '' !== t.fillStyle && ('inherit' !== e.getString('inherit') ? t.fill(e.getString()) : t.fill()),
  6162. '' !== t.strokeStyle && t.stroke();
  6163. var r = this.getMarkers();
  6164. if (r) {
  6165. var n = r.length - 1,
  6166. i = this.getStyle('marker-start'),
  6167. o = this.getStyle('marker-mid'),
  6168. a = this.getStyle('marker-end');
  6169. if (i.isUrlDefinition()) {
  6170. var u = i.getDefinition(),
  6171. s = fr(r[0], 2),
  6172. c = s[0],
  6173. l = s[1];
  6174. u.render(t, c, l);
  6175. }
  6176. if (o.isUrlDefinition())
  6177. for (var f = o.getDefinition(), h = 1; h < n; h++) {
  6178. var p = fr(r[h], 2),
  6179. g = p[0],
  6180. y = p[1];
  6181. f.render(t, g, y);
  6182. }
  6183. if (a.isUrlDefinition()) {
  6184. var v = a.getDefinition(),
  6185. d = fr(r[n], 2),
  6186. m = d[0],
  6187. x = d[1];
  6188. v.render(t, m, x);
  6189. }
  6190. }
  6191. }
  6192. },
  6193. {
  6194. key: 'pathM',
  6195. value: function(t, e) {
  6196. var r = this.pathParser,
  6197. n = r.getAsCurrentPoint(),
  6198. i = n.x,
  6199. o = n.y;
  6200. for (
  6201. r.addMarker(n), e.addPoint(i, o), t && t.moveTo(i, o), r.start = r.current;
  6202. !r.isCommandOrEnd();
  6203. ) {
  6204. var a = r.getAsCurrentPoint(),
  6205. u = a.x,
  6206. s = a.y;
  6207. r.addMarker(a, r.start), e.addPoint(u, s), t && t.lineTo(u, s);
  6208. }
  6209. }
  6210. },
  6211. {
  6212. key: 'pathL',
  6213. value: function(t, e) {
  6214. for (var r = this.pathParser; !r.isCommandOrEnd(); ) {
  6215. var n = r.current,
  6216. i = r.getAsCurrentPoint(),
  6217. o = i.x,
  6218. a = i.y;
  6219. r.addMarker(i, n), e.addPoint(o, a), t && t.lineTo(o, a);
  6220. }
  6221. }
  6222. },
  6223. {
  6224. key: 'pathH',
  6225. value: function(t, e) {
  6226. for (var r = this.pathParser; !r.isCommandOrEnd(); ) {
  6227. var n = r.current,
  6228. i = new za((r.isRelativeCommand() ? n.x : 0) + r.getScalar(), n.y);
  6229. r.addMarker(i, n), (r.current = i), e.addPoint(i.x, i.y), t && t.lineTo(i.x, i.y);
  6230. }
  6231. }
  6232. },
  6233. {
  6234. key: 'pathV',
  6235. value: function(t, e) {
  6236. for (var r = this.pathParser; !r.isCommandOrEnd(); ) {
  6237. var n = r.current,
  6238. i = new za(n.x, (r.isRelativeCommand() ? n.y : 0) + r.getScalar());
  6239. r.addMarker(i, n), (r.current = i), e.addPoint(i.x, i.y), t && t.lineTo(i.x, i.y);
  6240. }
  6241. }
  6242. },
  6243. {
  6244. key: 'pathC',
  6245. value: function(t, e) {
  6246. for (var r = this.pathParser; !r.isCommandOrEnd(); ) {
  6247. var n = r.current,
  6248. i = r.getPoint(),
  6249. o = r.getAsControlPoint(),
  6250. a = r.getAsCurrentPoint();
  6251. r.addMarker(a, o, i),
  6252. e.addBezierCurve(n.x, n.y, i.x, i.y, o.x, o.y, a.x, a.y),
  6253. t && t.bezierCurveTo(i.x, i.y, o.x, o.y, a.x, a.y);
  6254. }
  6255. }
  6256. },
  6257. {
  6258. key: 'pathS',
  6259. value: function(t, e) {
  6260. for (var r = this.pathParser; !r.isCommandOrEnd(); ) {
  6261. var n = r.current,
  6262. i = r.getReflectedControlPoint(),
  6263. o = r.getAsControlPoint(),
  6264. a = r.getAsCurrentPoint();
  6265. r.addMarker(a, o, i),
  6266. e.addBezierCurve(n.x, n.y, i.x, i.y, o.x, o.y, a.x, a.y),
  6267. t && t.bezierCurveTo(i.x, i.y, o.x, o.y, a.x, a.y);
  6268. }
  6269. }
  6270. },
  6271. {
  6272. key: 'pathQ',
  6273. value: function(t, e) {
  6274. for (var r = this.pathParser; !r.isCommandOrEnd(); ) {
  6275. var n = r.current,
  6276. i = r.getAsControlPoint(),
  6277. o = r.getAsCurrentPoint();
  6278. r.addMarker(o, i, i),
  6279. e.addQuadraticCurve(n.x, n.y, i.x, i.y, o.x, o.y),
  6280. t && t.quadraticCurveTo(i.x, i.y, o.x, o.y);
  6281. }
  6282. }
  6283. },
  6284. {
  6285. key: 'pathT',
  6286. value: function(t, e) {
  6287. for (var r = this.pathParser; !r.isCommandOrEnd(); ) {
  6288. var n = r.current,
  6289. i = r.getReflectedControlPoint();
  6290. r.control = i;
  6291. var o = r.getAsCurrentPoint();
  6292. r.addMarker(o, i, i),
  6293. e.addQuadraticCurve(n.x, n.y, i.x, i.y, o.x, o.y),
  6294. t && t.quadraticCurveTo(i.x, i.y, o.x, o.y);
  6295. }
  6296. }
  6297. },
  6298. {
  6299. key: 'pathA',
  6300. value: function(t, e) {
  6301. for (var r = this.pathParser; !r.isCommandOrEnd(); ) {
  6302. var n = r.current,
  6303. i = r.getScalar(),
  6304. o = r.getScalar(),
  6305. a = r.getScalar() * (Math.PI / 180),
  6306. u = r.getScalar(),
  6307. s = r.getScalar(),
  6308. c = r.getAsCurrentPoint(),
  6309. l = new za(
  6310. (Math.cos(a) * (n.x - c.x)) / 2 + (Math.sin(a) * (n.y - c.y)) / 2,
  6311. (-Math.sin(a) * (n.x - c.x)) / 2 + (Math.cos(a) * (n.y - c.y)) / 2
  6312. ),
  6313. f = Math.pow(l.x, 2) / Math.pow(i, 2) + Math.pow(l.y, 2) / Math.pow(o, 2);
  6314. f > 1 && ((i *= Math.sqrt(f)), (o *= Math.sqrt(f)));
  6315. var h =
  6316. (u === s ? -1 : 1) *
  6317. Math.sqrt(
  6318. (Math.pow(i, 2) * Math.pow(o, 2) -
  6319. Math.pow(i, 2) * Math.pow(l.y, 2) -
  6320. Math.pow(o, 2) * Math.pow(l.x, 2)) /
  6321. (Math.pow(i, 2) * Math.pow(l.y, 2) + Math.pow(o, 2) * Math.pow(l.x, 2))
  6322. );
  6323. isNaN(h) && (h = 0);
  6324. var p = new za((h * i * l.y) / o, (h * -o * l.x) / i),
  6325. g = new za(
  6326. (n.x + c.x) / 2 + Math.cos(a) * p.x - Math.sin(a) * p.y,
  6327. (n.y + c.y) / 2 + Math.sin(a) * p.x + Math.cos(a) * p.y
  6328. ),
  6329. y = kr([1, 0], [(l.x - p.x) / i, (l.y - p.y) / o]),
  6330. v = [(l.x - p.x) / i, (l.y - p.y) / o],
  6331. d = [(-l.x - p.x) / i, (-l.y - p.y) / o],
  6332. m = kr(v, d);
  6333. Sr(v, d) <= -1 && (m = Math.PI), Sr(v, d) >= 1 && (m = 0);
  6334. var x = 1 - s ? 1 : -1,
  6335. b = y + x * (m / 2),
  6336. w = new za(g.x + i * Math.cos(b), g.y + o * Math.sin(b));
  6337. if (
  6338. (r.addMarkerAngle(w, b - (x * Math.PI) / 2),
  6339. r.addMarkerAngle(c, b - x * Math.PI),
  6340. e.addPoint(c.x, c.y),
  6341. t && !isNaN(y) && !isNaN(m))
  6342. ) {
  6343. var S = i > o ? i : o,
  6344. k = i > o ? 1 : i / o,
  6345. P = i > o ? o / i : 1;
  6346. t.translate(g.x, g.y),
  6347. t.rotate(a),
  6348. t.scale(k, P),
  6349. t.arc(0, 0, S, y, y + m, Boolean(1 - s)),
  6350. t.scale(1 / k, 1 / P),
  6351. t.rotate(-a),
  6352. t.translate(-g.x, -g.y);
  6353. }
  6354. }
  6355. }
  6356. },
  6357. {
  6358. key: 'pathZ',
  6359. value: function(t, e) {
  6360. var r = this.pathParser;
  6361. t && e.x1 !== e.x2 && e.y1 !== e.y2 && t.closePath(), (r.current = r.start);
  6362. }
  6363. }
  6364. ]),
  6365. n
  6366. );
  6367. })(Bs);
  6368. function Ys() {
  6369. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6370. if (Reflect.construct.sham) return !1;
  6371. if ('function' == typeof Proxy) return !0;
  6372. try {
  6373. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6374. } catch (t) {
  6375. return !1;
  6376. }
  6377. }
  6378. var Qs = (function(t) {
  6379. cu(n, t);
  6380. var e,
  6381. r =
  6382. ((e = n),
  6383. function() {
  6384. var t,
  6385. r = uu(e);
  6386. if (Ys()) {
  6387. var n = uu(this).constructor;
  6388. t = Reflect.construct(r, arguments, n);
  6389. } else t = r.apply(this, arguments);
  6390. return au(this, t);
  6391. });
  6392. function n() {
  6393. var t;
  6394. return Un(this, n), ((t = r.apply(this, arguments)).type = 'svg'), (t.root = !1), t;
  6395. }
  6396. return (
  6397. Hn(n, [
  6398. {
  6399. key: 'clearContext',
  6400. value: function(t) {
  6401. xs(uu(n.prototype), 'clearContext', this).call(this, t),
  6402. this.document.screen.viewPort.removeCurrent();
  6403. }
  6404. },
  6405. {
  6406. key: 'setContext',
  6407. value: function(t) {
  6408. var e = this.document,
  6409. r = e.screen,
  6410. i = e.window,
  6411. o = t.canvas;
  6412. if ((r.setDefaults(t), o.style && void 0 !== t.font && i && void 0 !== i.getComputedStyle)) {
  6413. t.font = i.getComputedStyle(o).getPropertyValue('font');
  6414. var a = new La(e, 'fontSize', ks.parse(t.font).fontSize);
  6415. a.hasValue() && ((e.rootEmSize = a.getPixels('y')), (e.emSize = e.rootEmSize));
  6416. }
  6417. xs(uu(n.prototype), 'setContext', this).call(this, t),
  6418. this.getAttribute('x').hasValue() || this.getAttribute('x', !0).setValue(0),
  6419. this.getAttribute('y').hasValue() || this.getAttribute('y', !0).setValue(0),
  6420. t.translate(this.getAttribute('x').getPixels('x'), this.getAttribute('y').getPixels('y'));
  6421. var u = r.viewPort,
  6422. s = u.width,
  6423. c = u.height;
  6424. this.getStyle('width').hasValue() || this.getStyle('width', !0).setValue('100%'),
  6425. this.getStyle('height').hasValue() || this.getStyle('height', !0).setValue('100%'),
  6426. this.getStyle('color').hasValue() || this.getStyle('color', !0).setValue('black');
  6427. var l = this.getAttribute('refX'),
  6428. f = this.getAttribute('refY'),
  6429. h = this.getAttribute('viewBox'),
  6430. p = h.hasValue() ? Ze(h.getString()) : null,
  6431. g = !this.root && 'visible' !== this.getAttribute('overflow').getValue('hidden'),
  6432. y = 0,
  6433. v = 0,
  6434. d = 0,
  6435. m = 0;
  6436. p && ((y = p[0]), (v = p[1])),
  6437. this.root ||
  6438. ((s = this.getStyle('width').getPixels('x')),
  6439. (c = this.getStyle('height').getPixels('y')),
  6440. 'marker' === this.type && ((d = y), (m = v), (y = 0), (v = 0))),
  6441. r.viewPort.setCurrent(s, c),
  6442. p && ((s = p[2]), (c = p[3])),
  6443. e.setViewBox({
  6444. ctx: t,
  6445. aspectRatio: this.getAttribute('preserveAspectRatio').getString(),
  6446. width: r.viewPort.width,
  6447. desiredWidth: s,
  6448. height: r.viewPort.height,
  6449. desiredHeight: c,
  6450. minX: y,
  6451. minY: v,
  6452. refX: l.getValue(),
  6453. refY: f.getValue(),
  6454. clip: g,
  6455. clipX: d,
  6456. clipY: m
  6457. }),
  6458. p && (r.viewPort.removeCurrent(), r.viewPort.setCurrent(s, c));
  6459. }
  6460. },
  6461. {
  6462. key: 'resize',
  6463. value: function(t) {
  6464. var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : t,
  6465. r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
  6466. n = this.getAttribute('width', !0),
  6467. i = this.getAttribute('height', !0),
  6468. o = this.getAttribute('viewBox'),
  6469. a = this.getAttribute('style'),
  6470. u = n.getNumber(0),
  6471. s = i.getNumber(0);
  6472. if (r)
  6473. if ('string' == typeof r) this.getAttribute('preserveAspectRatio', !0).setValue(r);
  6474. else {
  6475. var c = this.getAttribute('preserveAspectRatio');
  6476. c.hasValue() && c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/, '$1'));
  6477. }
  6478. if (
  6479. (n.setValue(t),
  6480. i.setValue(e),
  6481. o.hasValue() || o.setValue('0 0 '.concat(u || t, ' ').concat(s || e)),
  6482. a.hasValue())
  6483. ) {
  6484. var l = this.getStyle('width'),
  6485. f = this.getStyle('height');
  6486. l.hasValue() && l.setValue(''.concat(t, 'px')),
  6487. f.hasValue() && f.setValue(''.concat(e, 'px'));
  6488. }
  6489. }
  6490. }
  6491. ]),
  6492. n
  6493. );
  6494. })(Bs);
  6495. function Zs() {
  6496. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6497. if (Reflect.construct.sham) return !1;
  6498. if ('function' == typeof Proxy) return !0;
  6499. try {
  6500. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6501. } catch (t) {
  6502. return !1;
  6503. }
  6504. }
  6505. var Ks = (function(t) {
  6506. cu(n, t);
  6507. var e,
  6508. r =
  6509. ((e = n),
  6510. function() {
  6511. var t,
  6512. r = uu(e);
  6513. if (Zs()) {
  6514. var n = uu(this).constructor;
  6515. t = Reflect.construct(r, arguments, n);
  6516. } else t = r.apply(this, arguments);
  6517. return au(this, t);
  6518. });
  6519. function n() {
  6520. var t;
  6521. return Un(this, n), ((t = r.apply(this, arguments)).type = 'rect'), t;
  6522. }
  6523. return (
  6524. Hn(n, [
  6525. {
  6526. key: 'path',
  6527. value: function(t) {
  6528. var e = this.getAttribute('x').getPixels('x'),
  6529. r = this.getAttribute('y').getPixels('y'),
  6530. n = this.getStyle('width').getPixels('x'),
  6531. i = this.getStyle('height').getPixels('y'),
  6532. o = this.getAttribute('rx'),
  6533. a = this.getAttribute('ry'),
  6534. u = o.getPixels('x'),
  6535. s = a.getPixels('y');
  6536. if (
  6537. (o.hasValue() && !a.hasValue() && (s = u),
  6538. a.hasValue() && !o.hasValue() && (u = s),
  6539. (u = Math.min(u, n / 2)),
  6540. (s = Math.min(s, i / 2)),
  6541. t)
  6542. ) {
  6543. var c = ((Math.sqrt(2) - 1) / 3) * 4;
  6544. t.beginPath(),
  6545. i > 0 &&
  6546. n > 0 &&
  6547. (t.moveTo(e + u, r),
  6548. t.lineTo(e + n - u, r),
  6549. t.bezierCurveTo(e + n - u + c * u, r, e + n, r + s - c * s, e + n, r + s),
  6550. t.lineTo(e + n, r + i - s),
  6551. t.bezierCurveTo(
  6552. e + n,
  6553. r + i - s + c * s,
  6554. e + n - u + c * u,
  6555. r + i,
  6556. e + n - u,
  6557. r + i
  6558. ),
  6559. t.lineTo(e + u, r + i),
  6560. t.bezierCurveTo(e + u - c * u, r + i, e, r + i - s + c * s, e, r + i - s),
  6561. t.lineTo(e, r + s),
  6562. t.bezierCurveTo(e, r + s - c * s, e + u - c * u, r, e + u, r),
  6563. t.closePath());
  6564. }
  6565. return new js(e, r, e + n, r + i);
  6566. }
  6567. },
  6568. {
  6569. key: 'getMarkers',
  6570. value: function() {
  6571. return null;
  6572. }
  6573. }
  6574. ]),
  6575. n
  6576. );
  6577. })(Xs);
  6578. function Js() {
  6579. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6580. if (Reflect.construct.sham) return !1;
  6581. if ('function' == typeof Proxy) return !0;
  6582. try {
  6583. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6584. } catch (t) {
  6585. return !1;
  6586. }
  6587. }
  6588. var tc = (function(t) {
  6589. cu(n, t);
  6590. var e,
  6591. r =
  6592. ((e = n),
  6593. function() {
  6594. var t,
  6595. r = uu(e);
  6596. if (Js()) {
  6597. var n = uu(this).constructor;
  6598. t = Reflect.construct(r, arguments, n);
  6599. } else t = r.apply(this, arguments);
  6600. return au(this, t);
  6601. });
  6602. function n() {
  6603. var t;
  6604. return Un(this, n), ((t = r.apply(this, arguments)).type = 'circle'), t;
  6605. }
  6606. return (
  6607. Hn(n, [
  6608. {
  6609. key: 'path',
  6610. value: function(t) {
  6611. var e = this.getAttribute('cx').getPixels('x'),
  6612. r = this.getAttribute('cy').getPixels('y'),
  6613. n = this.getAttribute('r').getPixels();
  6614. return (
  6615. t && n > 0 && (t.beginPath(), t.arc(e, r, n, 0, 2 * Math.PI, !1), t.closePath()),
  6616. new js(e - n, r - n, e + n, r + n)
  6617. );
  6618. }
  6619. },
  6620. {
  6621. key: 'getMarkers',
  6622. value: function() {
  6623. return null;
  6624. }
  6625. }
  6626. ]),
  6627. n
  6628. );
  6629. })(Xs);
  6630. function ec() {
  6631. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6632. if (Reflect.construct.sham) return !1;
  6633. if ('function' == typeof Proxy) return !0;
  6634. try {
  6635. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6636. } catch (t) {
  6637. return !1;
  6638. }
  6639. }
  6640. var rc = (function(t) {
  6641. cu(n, t);
  6642. var e,
  6643. r =
  6644. ((e = n),
  6645. function() {
  6646. var t,
  6647. r = uu(e);
  6648. if (ec()) {
  6649. var n = uu(this).constructor;
  6650. t = Reflect.construct(r, arguments, n);
  6651. } else t = r.apply(this, arguments);
  6652. return au(this, t);
  6653. });
  6654. function n() {
  6655. var t;
  6656. return Un(this, n), ((t = r.apply(this, arguments)).type = 'ellipse'), t;
  6657. }
  6658. return (
  6659. Hn(n, [
  6660. {
  6661. key: 'path',
  6662. value: function(t) {
  6663. var e = ((Math.sqrt(2) - 1) / 3) * 4,
  6664. r = this.getAttribute('rx').getPixels('x'),
  6665. n = this.getAttribute('ry').getPixels('y'),
  6666. i = this.getAttribute('cx').getPixels('x'),
  6667. o = this.getAttribute('cy').getPixels('y');
  6668. return (
  6669. t &&
  6670. r > 0 &&
  6671. n > 0 &&
  6672. (t.beginPath(),
  6673. t.moveTo(i + r, o),
  6674. t.bezierCurveTo(i + r, o + e * n, i + e * r, o + n, i, o + n),
  6675. t.bezierCurveTo(i - e * r, o + n, i - r, o + e * n, i - r, o),
  6676. t.bezierCurveTo(i - r, o - e * n, i - e * r, o - n, i, o - n),
  6677. t.bezierCurveTo(i + e * r, o - n, i + r, o - e * n, i + r, o),
  6678. t.closePath()),
  6679. new js(i - r, o - n, i + r, o + n)
  6680. );
  6681. }
  6682. },
  6683. {
  6684. key: 'getMarkers',
  6685. value: function() {
  6686. return null;
  6687. }
  6688. }
  6689. ]),
  6690. n
  6691. );
  6692. })(Xs);
  6693. function nc() {
  6694. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6695. if (Reflect.construct.sham) return !1;
  6696. if ('function' == typeof Proxy) return !0;
  6697. try {
  6698. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6699. } catch (t) {
  6700. return !1;
  6701. }
  6702. }
  6703. var ic = (function(t) {
  6704. cu(n, t);
  6705. var e,
  6706. r =
  6707. ((e = n),
  6708. function() {
  6709. var t,
  6710. r = uu(e);
  6711. if (nc()) {
  6712. var n = uu(this).constructor;
  6713. t = Reflect.construct(r, arguments, n);
  6714. } else t = r.apply(this, arguments);
  6715. return au(this, t);
  6716. });
  6717. function n() {
  6718. var t;
  6719. return Un(this, n), ((t = r.apply(this, arguments)).type = 'line'), t;
  6720. }
  6721. return (
  6722. Hn(n, [
  6723. {
  6724. key: 'getPoints',
  6725. value: function() {
  6726. return [
  6727. new za(this.getAttribute('x1').getPixels('x'), this.getAttribute('y1').getPixels('y')),
  6728. new za(this.getAttribute('x2').getPixels('x'), this.getAttribute('y2').getPixels('y'))
  6729. ];
  6730. }
  6731. },
  6732. {
  6733. key: 'path',
  6734. value: function(t) {
  6735. var e = this.getPoints(),
  6736. r = fr(e, 2),
  6737. n = r[0],
  6738. i = n.x,
  6739. o = n.y,
  6740. a = r[1],
  6741. u = a.x,
  6742. s = a.y;
  6743. return t && (t.beginPath(), t.moveTo(i, o), t.lineTo(u, s)), new js(i, o, u, s);
  6744. }
  6745. },
  6746. {
  6747. key: 'getMarkers',
  6748. value: function() {
  6749. var t = this.getPoints(),
  6750. e = fr(t, 2),
  6751. r = e[0],
  6752. n = e[1],
  6753. i = r.angleTo(n);
  6754. return [
  6755. [r, i],
  6756. [n, i]
  6757. ];
  6758. }
  6759. }
  6760. ]),
  6761. n
  6762. );
  6763. })(Xs);
  6764. function oc() {
  6765. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6766. if (Reflect.construct.sham) return !1;
  6767. if ('function' == typeof Proxy) return !0;
  6768. try {
  6769. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6770. } catch (t) {
  6771. return !1;
  6772. }
  6773. }
  6774. var ac = (function(t) {
  6775. cu(n, t);
  6776. var e,
  6777. r =
  6778. ((e = n),
  6779. function() {
  6780. var t,
  6781. r = uu(e);
  6782. if (oc()) {
  6783. var n = uu(this).constructor;
  6784. t = Reflect.construct(r, arguments, n);
  6785. } else t = r.apply(this, arguments);
  6786. return au(this, t);
  6787. });
  6788. function n(t, e, i) {
  6789. var o;
  6790. return (
  6791. Un(this, n),
  6792. ((o = r.call(this, t, e, i)).type = 'polyline'),
  6793. (o.points = []),
  6794. (o.points = za.parsePath(o.getAttribute('points').getString())),
  6795. o
  6796. );
  6797. }
  6798. return (
  6799. Hn(n, [
  6800. {
  6801. key: 'path',
  6802. value: function(t) {
  6803. var e = this.points,
  6804. r = fr(e, 1)[0],
  6805. n = r.x,
  6806. i = r.y,
  6807. o = new js(n, i);
  6808. return (
  6809. t && (t.beginPath(), t.moveTo(n, i)),
  6810. e.forEach(function(e) {
  6811. var r = e.x,
  6812. n = e.y;
  6813. o.addPoint(r, n), t && t.lineTo(r, n);
  6814. }),
  6815. o
  6816. );
  6817. }
  6818. },
  6819. {
  6820. key: 'getMarkers',
  6821. value: function() {
  6822. var t = this.points,
  6823. e = t.length - 1,
  6824. r = [];
  6825. return (
  6826. t.forEach(function(n, i) {
  6827. i !== e && r.push([n, n.angleTo(t[i + 1])]);
  6828. }),
  6829. r.length > 0 && r.push([t[t.length - 1], r[r.length - 1][1]]),
  6830. r
  6831. );
  6832. }
  6833. }
  6834. ]),
  6835. n
  6836. );
  6837. })(Xs);
  6838. function uc() {
  6839. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6840. if (Reflect.construct.sham) return !1;
  6841. if ('function' == typeof Proxy) return !0;
  6842. try {
  6843. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6844. } catch (t) {
  6845. return !1;
  6846. }
  6847. }
  6848. var sc = (function(t) {
  6849. cu(n, t);
  6850. var e,
  6851. r =
  6852. ((e = n),
  6853. function() {
  6854. var t,
  6855. r = uu(e);
  6856. if (uc()) {
  6857. var n = uu(this).constructor;
  6858. t = Reflect.construct(r, arguments, n);
  6859. } else t = r.apply(this, arguments);
  6860. return au(this, t);
  6861. });
  6862. function n() {
  6863. var t;
  6864. return Un(this, n), ((t = r.apply(this, arguments)).type = 'polygon'), t;
  6865. }
  6866. return (
  6867. Hn(n, [
  6868. {
  6869. key: 'path',
  6870. value: function(t) {
  6871. var e = xs(uu(n.prototype), 'path', this).call(this, t),
  6872. r = fr(this.points, 1)[0],
  6873. i = r.x,
  6874. o = r.y;
  6875. return t && (t.lineTo(i, o), t.closePath()), e;
  6876. }
  6877. }
  6878. ]),
  6879. n
  6880. );
  6881. })(ac),
  6882. cc = A.f;
  6883. function lc() {
  6884. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6885. if (Reflect.construct.sham) return !1;
  6886. if ('function' == typeof Proxy) return !0;
  6887. try {
  6888. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6889. } catch (t) {
  6890. return !1;
  6891. }
  6892. }
  6893. Dt(
  6894. { target: 'Reflect', stat: !0 },
  6895. {
  6896. deleteProperty: function(t, e) {
  6897. var r = cc(E(t), e);
  6898. return !(r && !r.configurable) && delete t[e];
  6899. }
  6900. }
  6901. );
  6902. var fc = (function(t) {
  6903. cu(n, t);
  6904. var e,
  6905. r =
  6906. ((e = n),
  6907. function() {
  6908. var t,
  6909. r = uu(e);
  6910. if (lc()) {
  6911. var n = uu(this).constructor;
  6912. t = Reflect.construct(r, arguments, n);
  6913. } else t = r.apply(this, arguments);
  6914. return au(this, t);
  6915. });
  6916. function n() {
  6917. var t;
  6918. return Un(this, n), ((t = r.apply(this, arguments)).type = 'pattern'), t;
  6919. }
  6920. return (
  6921. Hn(n, [
  6922. {
  6923. key: 'createPattern',
  6924. value: function(t, e, r) {
  6925. var n = this.getStyle('width').getPixels('x', !0),
  6926. i = this.getStyle('height').getPixels('y', !0),
  6927. o = new Qs(this.document, null);
  6928. (o.attributes.viewBox = new La(
  6929. this.document,
  6930. 'viewBox',
  6931. this.getAttribute('viewBox').getValue()
  6932. )),
  6933. (o.attributes.width = new La(this.document, 'width', ''.concat(n, 'px'))),
  6934. (o.attributes.height = new La(this.document, 'height', ''.concat(i, 'px'))),
  6935. (o.attributes.transform = new La(
  6936. this.document,
  6937. 'transform',
  6938. this.getAttribute('patternTransform').getValue()
  6939. )),
  6940. (o.children = this.children);
  6941. var a = this.document.createCanvas(n, i),
  6942. u = a.getContext('2d'),
  6943. s = this.getAttribute('x'),
  6944. c = this.getAttribute('y');
  6945. s.hasValue() && c.hasValue() && u.translate(s.getPixels('x', !0), c.getPixels('y', !0)),
  6946. r.hasValue()
  6947. ? (this.styles['fill-opacity'] = r)
  6948. : Reflect.deleteProperty(this.styles, 'fill-opacity');
  6949. for (var l = -1; l <= 1; l++)
  6950. for (var f = -1; f <= 1; f++)
  6951. u.save(),
  6952. (o.attributes.x = new La(this.document, 'x', l * a.width)),
  6953. (o.attributes.y = new La(this.document, 'y', f * a.height)),
  6954. o.render(u),
  6955. u.restore();
  6956. return t.createPattern(a, 'repeat');
  6957. }
  6958. }
  6959. ]),
  6960. n
  6961. );
  6962. })(ss);
  6963. function hc() {
  6964. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  6965. if (Reflect.construct.sham) return !1;
  6966. if ('function' == typeof Proxy) return !0;
  6967. try {
  6968. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  6969. } catch (t) {
  6970. return !1;
  6971. }
  6972. }
  6973. var pc = (function(t) {
  6974. cu(n, t);
  6975. var e,
  6976. r =
  6977. ((e = n),
  6978. function() {
  6979. var t,
  6980. r = uu(e);
  6981. if (hc()) {
  6982. var n = uu(this).constructor;
  6983. t = Reflect.construct(r, arguments, n);
  6984. } else t = r.apply(this, arguments);
  6985. return au(this, t);
  6986. });
  6987. function n() {
  6988. var t;
  6989. return Un(this, n), ((t = r.apply(this, arguments)).type = 'marker'), t;
  6990. }
  6991. return (
  6992. Hn(n, [
  6993. {
  6994. key: 'render',
  6995. value: function(t, e, r) {
  6996. if (e) {
  6997. var n = e.x,
  6998. i = e.y,
  6999. o = this.getAttribute('orient').getValue('auto'),
  7000. a = this.getAttribute('markerUnits').getValue('strokeWidth');
  7001. t.translate(n, i),
  7002. 'auto' === o && t.rotate(r),
  7003. 'strokeWidth' === a && t.scale(t.lineWidth, t.lineWidth),
  7004. t.save();
  7005. var u = new Qs(this.document, null);
  7006. (u.type = this.type),
  7007. (u.attributes.viewBox = new La(
  7008. this.document,
  7009. 'viewBox',
  7010. this.getAttribute('viewBox').getValue()
  7011. )),
  7012. (u.attributes.refX = new La(
  7013. this.document,
  7014. 'refX',
  7015. this.getAttribute('refX').getValue()
  7016. )),
  7017. (u.attributes.refY = new La(
  7018. this.document,
  7019. 'refY',
  7020. this.getAttribute('refY').getValue()
  7021. )),
  7022. (u.attributes.width = new La(
  7023. this.document,
  7024. 'width',
  7025. this.getAttribute('markerWidth').getValue()
  7026. )),
  7027. (u.attributes.height = new La(
  7028. this.document,
  7029. 'height',
  7030. this.getAttribute('markerHeight').getValue()
  7031. )),
  7032. (u.attributes.overflow = new La(
  7033. this.document,
  7034. 'overflow',
  7035. this.getAttribute('overflow').getValue()
  7036. )),
  7037. (u.attributes.fill = new La(
  7038. this.document,
  7039. 'fill',
  7040. this.getAttribute('fill').getColor('black')
  7041. )),
  7042. (u.attributes.stroke = new La(
  7043. this.document,
  7044. 'stroke',
  7045. this.getAttribute('stroke').getValue('none')
  7046. )),
  7047. (u.children = this.children),
  7048. u.render(t),
  7049. t.restore(),
  7050. 'strokeWidth' === a && t.scale(1 / t.lineWidth, 1 / t.lineWidth),
  7051. 'auto' === o && t.rotate(-r),
  7052. t.translate(-n, -i);
  7053. }
  7054. }
  7055. }
  7056. ]),
  7057. n
  7058. );
  7059. })(ss);
  7060. function gc() {
  7061. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7062. if (Reflect.construct.sham) return !1;
  7063. if ('function' == typeof Proxy) return !0;
  7064. try {
  7065. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7066. } catch (t) {
  7067. return !1;
  7068. }
  7069. }
  7070. var yc = (function(t) {
  7071. cu(n, t);
  7072. var e,
  7073. r =
  7074. ((e = n),
  7075. function() {
  7076. var t,
  7077. r = uu(e);
  7078. if (gc()) {
  7079. var n = uu(this).constructor;
  7080. t = Reflect.construct(r, arguments, n);
  7081. } else t = r.apply(this, arguments);
  7082. return au(this, t);
  7083. });
  7084. function n() {
  7085. var t;
  7086. return Un(this, n), ((t = r.apply(this, arguments)).type = 'defs'), t;
  7087. }
  7088. return Hn(n, [{ key: 'render', value: function() {} }]), n;
  7089. })(ss);
  7090. function vc() {
  7091. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7092. if (Reflect.construct.sham) return !1;
  7093. if ('function' == typeof Proxy) return !0;
  7094. try {
  7095. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7096. } catch (t) {
  7097. return !1;
  7098. }
  7099. }
  7100. var dc = (function(t) {
  7101. cu(n, t);
  7102. var e,
  7103. r =
  7104. ((e = n),
  7105. function() {
  7106. var t,
  7107. r = uu(e);
  7108. if (vc()) {
  7109. var n = uu(this).constructor;
  7110. t = Reflect.construct(r, arguments, n);
  7111. } else t = r.apply(this, arguments);
  7112. return au(this, t);
  7113. });
  7114. function n() {
  7115. var t;
  7116. return Un(this, n), ((t = r.apply(this, arguments)).type = 'g'), t;
  7117. }
  7118. return (
  7119. Hn(n, [
  7120. {
  7121. key: 'getBoundingBox',
  7122. value: function(t) {
  7123. var e = new js();
  7124. return (
  7125. this.children.forEach(function(r) {
  7126. e.addBoundingBox(r.getBoundingBox(t));
  7127. }),
  7128. e
  7129. );
  7130. }
  7131. }
  7132. ]),
  7133. n
  7134. );
  7135. })(Bs);
  7136. function mc() {
  7137. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7138. if (Reflect.construct.sham) return !1;
  7139. if ('function' == typeof Proxy) return !0;
  7140. try {
  7141. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7142. } catch (t) {
  7143. return !1;
  7144. }
  7145. }
  7146. var xc = (function(t) {
  7147. cu(n, t);
  7148. var e,
  7149. r =
  7150. ((e = n),
  7151. function() {
  7152. var t,
  7153. r = uu(e);
  7154. if (mc()) {
  7155. var n = uu(this).constructor;
  7156. t = Reflect.construct(r, arguments, n);
  7157. } else t = r.apply(this, arguments);
  7158. return au(this, t);
  7159. });
  7160. function n(t, e, i) {
  7161. var o;
  7162. Un(this, n), ((o = r.call(this, t, e, i)).attributesToInherit = ['gradientUnits']), (o.stops = []);
  7163. var a = ou(o),
  7164. u = a.stops;
  7165. return (
  7166. a.children.forEach(function(t) {
  7167. 'stop' === t.type && u.push(t);
  7168. }),
  7169. o
  7170. );
  7171. }
  7172. return (
  7173. Hn(n, [
  7174. {
  7175. key: 'getGradientUnits',
  7176. value: function() {
  7177. return this.getAttribute('gradientUnits').getString('objectBoundingBox');
  7178. }
  7179. },
  7180. {
  7181. key: 'createGradient',
  7182. value: function(t, e, r) {
  7183. var n = this,
  7184. i = this;
  7185. this.getHrefAttribute().hasValue() &&
  7186. ((i = this.getHrefAttribute().getDefinition()), this.inheritStopContainer(i));
  7187. var o = i.stops,
  7188. a = this.getGradient(t, e);
  7189. if (!a) return this.addParentOpacity(r, o[o.length - 1].color);
  7190. if (
  7191. (o.forEach(function(t) {
  7192. a.addColorStop(t.offset, n.addParentOpacity(r, t.color));
  7193. }),
  7194. this.getAttribute('gradientTransform').hasValue())
  7195. ) {
  7196. var u = this.document,
  7197. s = u.screen,
  7198. c = s.MAX_VIRTUAL_PIXELS,
  7199. l = s.viewPort,
  7200. f = fr(l.viewPorts, 1)[0],
  7201. h = new Ks(u, null);
  7202. (h.attributes.x = new La(u, 'x', -c / 3)),
  7203. (h.attributes.y = new La(u, 'y', -c / 3)),
  7204. (h.attributes.width = new La(u, 'width', c)),
  7205. (h.attributes.height = new La(u, 'height', c));
  7206. var p = new dc(u, null);
  7207. (p.attributes.transform = new La(
  7208. u,
  7209. 'transform',
  7210. this.getAttribute('gradientTransform').getValue()
  7211. )),
  7212. (p.children = [h]);
  7213. var g = new Qs(u, null);
  7214. (g.attributes.x = new La(u, 'x', 0)),
  7215. (g.attributes.y = new La(u, 'y', 0)),
  7216. (g.attributes.width = new La(u, 'width', f.width)),
  7217. (g.attributes.height = new La(u, 'height', f.height)),
  7218. (g.children = [p]);
  7219. var y = u.createCanvas(f.width, f.height),
  7220. v = y.getContext('2d');
  7221. return (v.fillStyle = a), g.render(v), v.createPattern(y, 'no-repeat');
  7222. }
  7223. return a;
  7224. }
  7225. },
  7226. {
  7227. key: 'inheritStopContainer',
  7228. value: function(t) {
  7229. var e = this;
  7230. this.attributesToInherit.forEach(function(r) {
  7231. !e.getAttribute(r).hasValue() &&
  7232. t.getAttribute(r).hasValue() &&
  7233. e.getAttribute(r, !0).setValue(t.getAttribute(r).getValue());
  7234. });
  7235. }
  7236. },
  7237. {
  7238. key: 'addParentOpacity',
  7239. value: function(t, e) {
  7240. return t.hasValue() ? new La(this.document, 'color', e).addOpacity(t).getColor() : e;
  7241. }
  7242. }
  7243. ]),
  7244. n
  7245. );
  7246. })(ss);
  7247. function bc() {
  7248. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7249. if (Reflect.construct.sham) return !1;
  7250. if ('function' == typeof Proxy) return !0;
  7251. try {
  7252. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7253. } catch (t) {
  7254. return !1;
  7255. }
  7256. }
  7257. var wc = (function(t) {
  7258. cu(n, t);
  7259. var e,
  7260. r =
  7261. ((e = n),
  7262. function() {
  7263. var t,
  7264. r = uu(e);
  7265. if (bc()) {
  7266. var n = uu(this).constructor;
  7267. t = Reflect.construct(r, arguments, n);
  7268. } else t = r.apply(this, arguments);
  7269. return au(this, t);
  7270. });
  7271. function n(t, e, i) {
  7272. var o;
  7273. return (
  7274. Un(this, n),
  7275. ((o = r.call(this, t, e, i)).type = 'linearGradient'),
  7276. o.attributesToInherit.push('x1', 'y1', 'x2', 'y2'),
  7277. o
  7278. );
  7279. }
  7280. return (
  7281. Hn(n, [
  7282. {
  7283. key: 'getGradient',
  7284. value: function(t, e) {
  7285. var r = 'objectBoundingBox' === this.getGradientUnits(),
  7286. n = r ? e.getBoundingBox(t) : null;
  7287. if (r && !n) return null;
  7288. this.getAttribute('x1').hasValue() ||
  7289. this.getAttribute('y1').hasValue() ||
  7290. this.getAttribute('x2').hasValue() ||
  7291. this.getAttribute('y2').hasValue() ||
  7292. (this.getAttribute('x1', !0).setValue(0),
  7293. this.getAttribute('y1', !0).setValue(0),
  7294. this.getAttribute('x2', !0).setValue(1),
  7295. this.getAttribute('y2', !0).setValue(0));
  7296. var i = r
  7297. ? n.x + n.width * this.getAttribute('x1').getNumber()
  7298. : this.getAttribute('x1').getPixels('x'),
  7299. o = r
  7300. ? n.y + n.height * this.getAttribute('y1').getNumber()
  7301. : this.getAttribute('y1').getPixels('y'),
  7302. a = r
  7303. ? n.x + n.width * this.getAttribute('x2').getNumber()
  7304. : this.getAttribute('x2').getPixels('x'),
  7305. u = r
  7306. ? n.y + n.height * this.getAttribute('y2').getNumber()
  7307. : this.getAttribute('y2').getPixels('y');
  7308. return i === a && o === u ? null : t.createLinearGradient(i, o, a, u);
  7309. }
  7310. }
  7311. ]),
  7312. n
  7313. );
  7314. })(xc);
  7315. function Sc() {
  7316. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7317. if (Reflect.construct.sham) return !1;
  7318. if ('function' == typeof Proxy) return !0;
  7319. try {
  7320. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7321. } catch (t) {
  7322. return !1;
  7323. }
  7324. }
  7325. var kc = (function(t) {
  7326. cu(n, t);
  7327. var e,
  7328. r =
  7329. ((e = n),
  7330. function() {
  7331. var t,
  7332. r = uu(e);
  7333. if (Sc()) {
  7334. var n = uu(this).constructor;
  7335. t = Reflect.construct(r, arguments, n);
  7336. } else t = r.apply(this, arguments);
  7337. return au(this, t);
  7338. });
  7339. function n(t, e, i) {
  7340. var o;
  7341. return (
  7342. Un(this, n),
  7343. ((o = r.call(this, t, e, i)).type = 'radialGradient'),
  7344. o.attributesToInherit.push('cx', 'cy', 'r', 'fx', 'fy', 'fr'),
  7345. o
  7346. );
  7347. }
  7348. return (
  7349. Hn(n, [
  7350. {
  7351. key: 'getGradient',
  7352. value: function(t, e) {
  7353. var r = 'objectBoundingBox' === this.getGradientUnits(),
  7354. n = e.getBoundingBox(t);
  7355. if (r && !n) return null;
  7356. this.getAttribute('cx').hasValue() || this.getAttribute('cx', !0).setValue('50%'),
  7357. this.getAttribute('cy').hasValue() || this.getAttribute('cy', !0).setValue('50%'),
  7358. this.getAttribute('r').hasValue() || this.getAttribute('r', !0).setValue('50%');
  7359. var i = r
  7360. ? n.x + n.width * this.getAttribute('cx').getNumber()
  7361. : this.getAttribute('cx').getPixels('x'),
  7362. o = r
  7363. ? n.y + n.height * this.getAttribute('cy').getNumber()
  7364. : this.getAttribute('cy').getPixels('y'),
  7365. a = i,
  7366. u = o;
  7367. this.getAttribute('fx').hasValue() &&
  7368. (a = r
  7369. ? n.x + n.width * this.getAttribute('fx').getNumber()
  7370. : this.getAttribute('fx').getPixels('x')),
  7371. this.getAttribute('fy').hasValue() &&
  7372. (u = r
  7373. ? n.y + n.height * this.getAttribute('fy').getNumber()
  7374. : this.getAttribute('fy').getPixels('y'));
  7375. var s = r
  7376. ? ((n.width + n.height) / 2) * this.getAttribute('r').getNumber()
  7377. : this.getAttribute('r').getPixels(),
  7378. c = this.getAttribute('fr').getPixels();
  7379. return t.createRadialGradient(a, u, c, i, o, s);
  7380. }
  7381. }
  7382. ]),
  7383. n
  7384. );
  7385. })(xc);
  7386. function Pc() {
  7387. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7388. if (Reflect.construct.sham) return !1;
  7389. if ('function' == typeof Proxy) return !0;
  7390. try {
  7391. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7392. } catch (t) {
  7393. return !1;
  7394. }
  7395. }
  7396. var Rc = (function(t) {
  7397. cu(n, t);
  7398. var e,
  7399. r =
  7400. ((e = n),
  7401. function() {
  7402. var t,
  7403. r = uu(e);
  7404. if (Pc()) {
  7405. var n = uu(this).constructor;
  7406. t = Reflect.construct(r, arguments, n);
  7407. } else t = r.apply(this, arguments);
  7408. return au(this, t);
  7409. });
  7410. function n(t, e, i) {
  7411. var o;
  7412. Un(this, n), ((o = r.call(this, t, e, i)).type = 'stop');
  7413. var a = Math.max(0, Math.min(1, o.getAttribute('offset').getNumber())),
  7414. u = o.getStyle('stop-opacity'),
  7415. s = o.getStyle('stop-color', !0);
  7416. return (
  7417. '' === s.getString() && s.setValue('#000'),
  7418. u.hasValue() && (s = s.addOpacity(u)),
  7419. (o.offset = a),
  7420. (o.color = s.getColor()),
  7421. o
  7422. );
  7423. }
  7424. return n;
  7425. })(ss),
  7426. Ac = et.set,
  7427. Ec = et.getterFor('Array Iterator'),
  7428. Cc = Lu(
  7429. Array,
  7430. 'Array',
  7431. function(t, e) {
  7432. Ac(this, { type: 'Array Iterator', target: v(t), index: 0, kind: e });
  7433. },
  7434. function() {
  7435. var t = Ec(this),
  7436. e = t.target,
  7437. r = t.kind,
  7438. n = t.index++;
  7439. return !e || n >= e.length
  7440. ? ((t.target = void 0), { value: void 0, done: !0 })
  7441. : 'keys' == r
  7442. ? { value: n, done: !1 }
  7443. : 'values' == r
  7444. ? { value: e[n], done: !1 }
  7445. : { value: [n, e[n]], done: !1 };
  7446. },
  7447. 'values'
  7448. );
  7449. (vi.Arguments = vi.Array), pu('keys'), pu('values'), pu('entries');
  7450. var Tc = $t('iterator'),
  7451. Oc = $t('toStringTag'),
  7452. Mc = Cc.values;
  7453. for (var Dc in jn) {
  7454. var Vc = i[Dc],
  7455. Nc = Vc && Vc.prototype;
  7456. if (Nc) {
  7457. if (Nc[Tc] !== Mc)
  7458. try {
  7459. O(Nc, Tc, Mc);
  7460. } catch (t) {
  7461. Nc[Tc] = Mc;
  7462. }
  7463. if ((Nc[Oc] || O(Nc, Oc, Dc), jn[Dc]))
  7464. for (var Ic in Cc)
  7465. if (Nc[Ic] !== Cc[Ic])
  7466. try {
  7467. O(Nc, Ic, Cc[Ic]);
  7468. } catch (t) {
  7469. Nc[Ic] = Cc[Ic];
  7470. }
  7471. }
  7472. }
  7473. function Lc() {
  7474. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7475. if (Reflect.construct.sham) return !1;
  7476. if ('function' == typeof Proxy) return !0;
  7477. try {
  7478. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7479. } catch (t) {
  7480. return !1;
  7481. }
  7482. }
  7483. var jc = (function(t) {
  7484. cu(n, t);
  7485. var e,
  7486. r =
  7487. ((e = n),
  7488. function() {
  7489. var t,
  7490. r = uu(e);
  7491. if (Lc()) {
  7492. var n = uu(this).constructor;
  7493. t = Reflect.construct(r, arguments, n);
  7494. } else t = r.apply(this, arguments);
  7495. return au(this, t);
  7496. });
  7497. function n(t, e, i) {
  7498. var o;
  7499. return (
  7500. Un(this, n),
  7501. ((o = r.call(this, t, e, i)).type = 'animate'),
  7502. (o.duration = 0),
  7503. (o.initialValue = null),
  7504. (o.initialUnits = ''),
  7505. (o.removed = !1),
  7506. (o.frozen = !1),
  7507. t.screen.animations.push(ou(o)),
  7508. (o.begin = o.getAttribute('begin').getMilliseconds()),
  7509. (o.maxDuration = o.begin + o.getAttribute('dur').getMilliseconds()),
  7510. (o.from = o.getAttribute('from')),
  7511. (o.to = o.getAttribute('to')),
  7512. (o.values = o.getAttribute('values')),
  7513. o.values.hasValue() && o.values.setValue(o.values.getString().split(';')),
  7514. o
  7515. );
  7516. }
  7517. return (
  7518. Hn(n, [
  7519. {
  7520. key: 'getProperty',
  7521. value: function() {
  7522. var t = this.getAttribute('attributeType').getString(),
  7523. e = this.getAttribute('attributeName').getString();
  7524. return 'CSS' === t ? this.parent.getStyle(e, !0) : this.parent.getAttribute(e, !0);
  7525. }
  7526. },
  7527. {
  7528. key: 'calcValue',
  7529. value: function() {
  7530. var t = this.initialUnits,
  7531. e = this.getProgress(),
  7532. r = e.progress,
  7533. n = e.from,
  7534. i = e.to,
  7535. o = n.getNumber() + (i.getNumber() - n.getNumber()) * r;
  7536. return '%' === t && (o *= 100), ''.concat(o).concat(t);
  7537. }
  7538. },
  7539. {
  7540. key: 'update',
  7541. value: function(t) {
  7542. var e = this.parent,
  7543. r = this.getProperty();
  7544. if (
  7545. (this.initialValue ||
  7546. ((this.initialValue = r.getString()), (this.initialUnits = r.getUnits())),
  7547. this.duration > this.maxDuration)
  7548. ) {
  7549. var n = this.getAttribute('fill').getString('remove');
  7550. if (
  7551. 'indefinite' === this.getAttribute('repeatCount').getString() ||
  7552. 'indefinite' === this.getAttribute('repeatDur').getString()
  7553. )
  7554. this.duration = 0;
  7555. else if ('freeze' !== n || this.frozen) {
  7556. if ('remove' === n && !this.removed)
  7557. return (
  7558. (this.removed = !0),
  7559. r.setValue(e.animationFrozen ? e.animationFrozenValue : this.initialValue),
  7560. !0
  7561. );
  7562. } else
  7563. (this.frozen = !0), (e.animationFrozen = !0), (e.animationFrozenValue = r.getString());
  7564. return !1;
  7565. }
  7566. this.duration += t;
  7567. var i = !1;
  7568. if (this.begin < this.duration) {
  7569. var o = this.calcValue(),
  7570. a = this.getAttribute('type');
  7571. if (a.hasValue()) {
  7572. var u = a.getString();
  7573. o = ''.concat(u, '(').concat(o, ')');
  7574. }
  7575. r.setValue(o), (i = !0);
  7576. }
  7577. return i;
  7578. }
  7579. },
  7580. {
  7581. key: 'getProgress',
  7582. value: function() {
  7583. var t = this.document,
  7584. e = this.values,
  7585. r = { progress: (this.duration - this.begin) / (this.maxDuration - this.begin) };
  7586. if (e.hasValue()) {
  7587. var n = r.progress * (e.getValue().length - 1),
  7588. i = Math.floor(n),
  7589. o = Math.ceil(n);
  7590. (r.from = new La(t, 'from', parseFloat(e.getValue()[i]))),
  7591. (r.to = new La(t, 'to', parseFloat(e.getValue()[o]))),
  7592. (r.progress = (n - i) / (o - i));
  7593. } else (r.from = this.from), (r.to = this.to);
  7594. return r;
  7595. }
  7596. }
  7597. ]),
  7598. n
  7599. );
  7600. })(ss);
  7601. function zc() {
  7602. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7603. if (Reflect.construct.sham) return !1;
  7604. if ('function' == typeof Proxy) return !0;
  7605. try {
  7606. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7607. } catch (t) {
  7608. return !1;
  7609. }
  7610. }
  7611. var Bc = (function(t) {
  7612. cu(n, t);
  7613. var e,
  7614. r =
  7615. ((e = n),
  7616. function() {
  7617. var t,
  7618. r = uu(e);
  7619. if (zc()) {
  7620. var n = uu(this).constructor;
  7621. t = Reflect.construct(r, arguments, n);
  7622. } else t = r.apply(this, arguments);
  7623. return au(this, t);
  7624. });
  7625. function n() {
  7626. var t;
  7627. return Un(this, n), ((t = r.apply(this, arguments)).type = 'animateColor'), t;
  7628. }
  7629. return (
  7630. Hn(n, [
  7631. {
  7632. key: 'calcValue',
  7633. value: function() {
  7634. var t = this.getProgress(),
  7635. e = t.progress,
  7636. r = t.from,
  7637. n = t.to,
  7638. i = new Ia(r.getColor()),
  7639. o = new Ia(n.getColor());
  7640. if (i.ok && o.ok) {
  7641. var a = i.r + (o.r - i.r) * e,
  7642. u = i.g + (o.g - i.g) * e,
  7643. s = i.b + (o.b - i.b) * e;
  7644. return 'rgb('
  7645. .concat(parseInt(a, 10), ', ')
  7646. .concat(parseInt(u, 10), ', ')
  7647. .concat(parseInt(s, 10), ')');
  7648. }
  7649. return this.getAttribute('from').getColor();
  7650. }
  7651. }
  7652. ]),
  7653. n
  7654. );
  7655. })(jc);
  7656. function Fc() {
  7657. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7658. if (Reflect.construct.sham) return !1;
  7659. if ('function' == typeof Proxy) return !0;
  7660. try {
  7661. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7662. } catch (t) {
  7663. return !1;
  7664. }
  7665. }
  7666. var _c = (function(t) {
  7667. cu(n, t);
  7668. var e,
  7669. r =
  7670. ((e = n),
  7671. function() {
  7672. var t,
  7673. r = uu(e);
  7674. if (Fc()) {
  7675. var n = uu(this).constructor;
  7676. t = Reflect.construct(r, arguments, n);
  7677. } else t = r.apply(this, arguments);
  7678. return au(this, t);
  7679. });
  7680. function n() {
  7681. var t;
  7682. return Un(this, n), ((t = r.apply(this, arguments)).type = 'animateTransform'), t;
  7683. }
  7684. return (
  7685. Hn(n, [
  7686. {
  7687. key: 'calcValue',
  7688. value: function() {
  7689. var t = this.getProgress(),
  7690. e = t.progress,
  7691. r = t.from,
  7692. n = t.to,
  7693. i = Ze(r.getString()),
  7694. o = Ze(n.getString());
  7695. return i
  7696. .map(function(t, r) {
  7697. return t + (o[r] - t) * e;
  7698. })
  7699. .join(' ');
  7700. }
  7701. }
  7702. ]),
  7703. n
  7704. );
  7705. })(jc),
  7706. $c = T.f,
  7707. Gc = i.Symbol;
  7708. if (a && 'function' == typeof Gc && (!('description' in Gc.prototype) || void 0 !== Gc().description)) {
  7709. var qc = {},
  7710. Uc = function() {
  7711. var t = arguments.length < 1 || void 0 === arguments[0] ? void 0 : String(arguments[0]),
  7712. e = this instanceof Uc ? new Gc(t) : void 0 === t ? Gc() : Gc(t);
  7713. return '' === t && (qc[e] = !0), e;
  7714. };
  7715. kt(Uc, Gc);
  7716. var Wc = (Uc.prototype = Gc.prototype);
  7717. Wc.constructor = Uc;
  7718. var Hc = Wc.toString,
  7719. Xc = 'Symbol(test)' == String(Gc('test')),
  7720. Yc = /^Symbol\((.*)\)[^)]+$/;
  7721. $c(Wc, 'description', {
  7722. configurable: !0,
  7723. get: function() {
  7724. var t = d(this) ? this.valueOf() : this,
  7725. e = Hc.call(t);
  7726. if (b(qc, t)) return '';
  7727. var r = Xc ? e.slice(7, -1) : e.replace(Yc, '$1');
  7728. return '' === r ? void 0 : r;
  7729. }
  7730. }),
  7731. Dt({ global: !0, forced: !0 }, { Symbol: Uc });
  7732. }
  7733. Wr('iterator');
  7734. var Qc = te('slice'),
  7735. Zc = ie('slice', { ACCESSORS: !0, 0: 0, 1: 2 }),
  7736. Kc = $t('species'),
  7737. Jc = [].slice,
  7738. tl = Math.max;
  7739. function el(t) {
  7740. if ('undefined' == typeof Symbol || null == t[Symbol.iterator]) {
  7741. if (
  7742. Array.isArray(t) ||
  7743. (t = (function(t, e) {
  7744. if (!t) return;
  7745. if ('string' == typeof t) return rl(t, e);
  7746. var r = Object.prototype.toString.call(t).slice(8, -1);
  7747. 'Object' === r && t.constructor && (r = t.constructor.name);
  7748. if ('Map' === r || 'Set' === r) return Array.from(r);
  7749. if ('Arguments' === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return rl(t, e);
  7750. })(t))
  7751. ) {
  7752. var e = 0,
  7753. r = function() {};
  7754. return {
  7755. s: r,
  7756. n: function() {
  7757. return e >= t.length ? { done: !0 } : { done: !1, value: t[e++] };
  7758. },
  7759. e: function(t) {
  7760. throw t;
  7761. },
  7762. f: r
  7763. };
  7764. }
  7765. throw new TypeError(
  7766. 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  7767. );
  7768. }
  7769. var n,
  7770. i,
  7771. o = !0,
  7772. a = !1;
  7773. return {
  7774. s: function() {
  7775. n = t[Symbol.iterator]();
  7776. },
  7777. n: function() {
  7778. var t = n.next();
  7779. return (o = t.done), t;
  7780. },
  7781. e: function(t) {
  7782. (a = !0), (i = t);
  7783. },
  7784. f: function() {
  7785. try {
  7786. o || null == n.return || n.return();
  7787. } finally {
  7788. if (a) throw i;
  7789. }
  7790. }
  7791. };
  7792. }
  7793. function rl(t, e) {
  7794. (null == e || e > t.length) && (e = t.length);
  7795. for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r];
  7796. return n;
  7797. }
  7798. function nl() {
  7799. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7800. if (Reflect.construct.sham) return !1;
  7801. if ('function' == typeof Proxy) return !0;
  7802. try {
  7803. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7804. } catch (t) {
  7805. return !1;
  7806. }
  7807. }
  7808. Dt(
  7809. { target: 'Array', proto: !0, forced: !Qc || !Zc },
  7810. {
  7811. slice: function(t, e) {
  7812. var r,
  7813. n,
  7814. i,
  7815. o = v(this),
  7816. a = lt(o.length),
  7817. u = pt(t, a),
  7818. s = pt(void 0 === e ? a : e, a);
  7819. if (
  7820. Lt(o) &&
  7821. ('function' != typeof (r = o.constructor) || (r !== Array && !Lt(r.prototype))
  7822. ? d(r) && null === (r = r[Kc]) && (r = void 0)
  7823. : (r = void 0),
  7824. r === Array || void 0 === r)
  7825. )
  7826. return Jc.call(o, u, s);
  7827. for (n = new (void 0 === r ? Array : r)(tl(s - u, 0)), i = 0; u < s; u++, i++) u in o && In(n, i, o[u]);
  7828. return (n.length = i), n;
  7829. }
  7830. }
  7831. );
  7832. var il = (function(t) {
  7833. cu(n, t);
  7834. var e,
  7835. r =
  7836. ((e = n),
  7837. function() {
  7838. var t,
  7839. r = uu(e);
  7840. if (nl()) {
  7841. var n = uu(this).constructor;
  7842. t = Reflect.construct(r, arguments, n);
  7843. } else t = r.apply(this, arguments);
  7844. return au(this, t);
  7845. });
  7846. function n(t, e, i) {
  7847. var o;
  7848. Un(this, n),
  7849. ((o = r.call(this, t, e, i)).type = 'font'),
  7850. (o.glyphs = {}),
  7851. (o.horizAdvX = o.getAttribute('horiz-adv-x').getNumber());
  7852. var a,
  7853. u = t.definitions,
  7854. s = el(ou(o).children);
  7855. try {
  7856. for (s.s(); !(a = s.n()).done; ) {
  7857. var c = a.value;
  7858. switch (c.type) {
  7859. case 'font-face':
  7860. o.fontFace = c;
  7861. var l = c.getStyle('font-family');
  7862. l.hasValue() && (u[l.getString()] = ou(o));
  7863. break;
  7864. case 'missing-glyph':
  7865. o.missingGlyph = c;
  7866. break;
  7867. case 'glyph':
  7868. var f = c;
  7869. f.arabicForm
  7870. ? ((o.isRTL = !0),
  7871. (o.isArabic = !0),
  7872. void 0 === o.glyphs[f.unicode] && (o.glyphs[f.unicode] = {}),
  7873. (o.glyphs[f.unicode][f.arabicForm] = f))
  7874. : (o.glyphs[f.unicode] = f);
  7875. }
  7876. }
  7877. } catch (t) {
  7878. s.e(t);
  7879. } finally {
  7880. s.f();
  7881. }
  7882. return o;
  7883. }
  7884. return Hn(n, [{ key: 'render', value: function() {} }]), n;
  7885. })(ss);
  7886. function ol() {
  7887. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7888. if (Reflect.construct.sham) return !1;
  7889. if ('function' == typeof Proxy) return !0;
  7890. try {
  7891. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7892. } catch (t) {
  7893. return !1;
  7894. }
  7895. }
  7896. var al = (function(t) {
  7897. cu(n, t);
  7898. var e,
  7899. r =
  7900. ((e = n),
  7901. function() {
  7902. var t,
  7903. r = uu(e);
  7904. if (ol()) {
  7905. var n = uu(this).constructor;
  7906. t = Reflect.construct(r, arguments, n);
  7907. } else t = r.apply(this, arguments);
  7908. return au(this, t);
  7909. });
  7910. function n(t, e, i) {
  7911. var o;
  7912. return (
  7913. Un(this, n),
  7914. ((o = r.call(this, t, e, i)).type = 'font-face'),
  7915. (o.ascent = o.getAttribute('ascent').getNumber()),
  7916. (o.descent = o.getAttribute('descent').getNumber()),
  7917. (o.unitsPerEm = o.getAttribute('units-per-em').getNumber()),
  7918. o
  7919. );
  7920. }
  7921. return n;
  7922. })(ss);
  7923. function ul() {
  7924. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7925. if (Reflect.construct.sham) return !1;
  7926. if ('function' == typeof Proxy) return !0;
  7927. try {
  7928. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7929. } catch (t) {
  7930. return !1;
  7931. }
  7932. }
  7933. var sl = (function(t) {
  7934. cu(n, t);
  7935. var e,
  7936. r =
  7937. ((e = n),
  7938. function() {
  7939. var t,
  7940. r = uu(e);
  7941. if (ul()) {
  7942. var n = uu(this).constructor;
  7943. t = Reflect.construct(r, arguments, n);
  7944. } else t = r.apply(this, arguments);
  7945. return au(this, t);
  7946. });
  7947. function n() {
  7948. var t;
  7949. return Un(this, n), ((t = r.apply(this, arguments)).type = 'missing-glyph'), (t.horizAdvX = 0), t;
  7950. }
  7951. return n;
  7952. })(Xs);
  7953. function cl() {
  7954. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7955. if (Reflect.construct.sham) return !1;
  7956. if ('function' == typeof Proxy) return !0;
  7957. try {
  7958. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7959. } catch (t) {
  7960. return !1;
  7961. }
  7962. }
  7963. var ll = (function(t) {
  7964. cu(n, t);
  7965. var e,
  7966. r =
  7967. ((e = n),
  7968. function() {
  7969. var t,
  7970. r = uu(e);
  7971. if (cl()) {
  7972. var n = uu(this).constructor;
  7973. t = Reflect.construct(r, arguments, n);
  7974. } else t = r.apply(this, arguments);
  7975. return au(this, t);
  7976. });
  7977. function n(t, e, i) {
  7978. var o;
  7979. return (
  7980. Un(this, n),
  7981. ((o = r.call(this, t, e, i)).type = 'glyph'),
  7982. (o.horizAdvX = o.getAttribute('horiz-adv-x').getNumber()),
  7983. (o.unicode = o.getAttribute('unicode').getString()),
  7984. (o.arabicForm = o.getAttribute('arabic-form').getString()),
  7985. o
  7986. );
  7987. }
  7988. return n;
  7989. })(Xs);
  7990. function fl() {
  7991. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  7992. if (Reflect.construct.sham) return !1;
  7993. if ('function' == typeof Proxy) return !0;
  7994. try {
  7995. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  7996. } catch (t) {
  7997. return !1;
  7998. }
  7999. }
  8000. var hl = (function(t) {
  8001. cu(n, t);
  8002. var e,
  8003. r =
  8004. ((e = n),
  8005. function() {
  8006. var t,
  8007. r = uu(e);
  8008. if (fl()) {
  8009. var n = uu(this).constructor;
  8010. t = Reflect.construct(r, arguments, n);
  8011. } else t = r.apply(this, arguments);
  8012. return au(this, t);
  8013. });
  8014. function n() {
  8015. var t;
  8016. return Un(this, n), ((t = r.apply(this, arguments)).type = 'tref'), t;
  8017. }
  8018. return (
  8019. Hn(n, [
  8020. {
  8021. key: 'getText',
  8022. value: function() {
  8023. var t = this.getHrefAttribute().getDefinition();
  8024. if (t) {
  8025. var e = t.children[0];
  8026. if (e) return e.getText();
  8027. }
  8028. return '';
  8029. }
  8030. }
  8031. ]),
  8032. n
  8033. );
  8034. })(_s);
  8035. function pl() {
  8036. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  8037. if (Reflect.construct.sham) return !1;
  8038. if ('function' == typeof Proxy) return !0;
  8039. try {
  8040. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  8041. } catch (t) {
  8042. return !1;
  8043. }
  8044. }
  8045. var gl = (function(t) {
  8046. cu(n, t);
  8047. var e,
  8048. r =
  8049. ((e = n),
  8050. function() {
  8051. var t,
  8052. r = uu(e);
  8053. if (pl()) {
  8054. var n = uu(this).constructor;
  8055. t = Reflect.construct(r, arguments, n);
  8056. } else t = r.apply(this, arguments);
  8057. return au(this, t);
  8058. });
  8059. function n(t, e, i) {
  8060. var o;
  8061. Un(this, n), ((o = r.call(this, t, e, i)).type = 'a');
  8062. var a = e.childNodes,
  8063. u = a[0],
  8064. s =
  8065. a.length > 0 &&
  8066. Array.from(a).every(function(t) {
  8067. return 3 === t.nodeType;
  8068. });
  8069. return (o.hasText = s), (o.text = s ? o.getTextFromNode(u) : ''), o;
  8070. }
  8071. return (
  8072. Hn(n, [
  8073. {
  8074. key: 'getText',
  8075. value: function() {
  8076. return this.text;
  8077. }
  8078. },
  8079. {
  8080. key: 'renderChildren',
  8081. value: function(t) {
  8082. if (this.hasText) {
  8083. xs(uu(n.prototype), 'renderChildren', this).call(this, t);
  8084. var e = this.document,
  8085. r = this.x,
  8086. i = this.y,
  8087. o = e.screen.mouse,
  8088. a = new La(e, 'fontSize', ks.parse(e.ctx.font).fontSize);
  8089. o.isWorking() &&
  8090. o.checkBoundingBox(
  8091. this,
  8092. new js(r, i - a.getPixels('y'), r + this.measureText(t), i)
  8093. );
  8094. } else if (this.children.length > 0) {
  8095. var u = new dc(this.document, null);
  8096. (u.children = this.children), (u.parent = this), u.render(t);
  8097. }
  8098. }
  8099. },
  8100. {
  8101. key: 'onClick',
  8102. value: function() {
  8103. var t = this.document.window;
  8104. t && t.open(this.getHrefAttribute().getString());
  8105. }
  8106. },
  8107. {
  8108. key: 'onMouseMove',
  8109. value: function() {
  8110. this.document.ctx.canvas.style.cursor = 'pointer';
  8111. }
  8112. }
  8113. ]),
  8114. n
  8115. );
  8116. })(_s),
  8117. yl = !o(function() {
  8118. return Object.isExtensible(Object.preventExtensions({}));
  8119. }),
  8120. vl = r(function(t) {
  8121. var e = T.f,
  8122. r = G('meta'),
  8123. n = 0,
  8124. i =
  8125. Object.isExtensible ||
  8126. function() {
  8127. return !0;
  8128. },
  8129. o = function(t) {
  8130. e(t, r, { value: { objectID: 'O' + ++n, weakData: {} } });
  8131. },
  8132. a = (t.exports = {
  8133. REQUIRED: !1,
  8134. fastKey: function(t, e) {
  8135. if (!d(t)) return 'symbol' == typeof t ? t : ('string' == typeof t ? 'S' : 'P') + t;
  8136. if (!b(t, r)) {
  8137. if (!i(t)) return 'F';
  8138. if (!e) return 'E';
  8139. o(t);
  8140. }
  8141. return t[r].objectID;
  8142. },
  8143. getWeakData: function(t, e) {
  8144. if (!b(t, r)) {
  8145. if (!i(t)) return !0;
  8146. if (!e) return !1;
  8147. o(t);
  8148. }
  8149. return t[r].weakData;
  8150. },
  8151. onFreeze: function(t) {
  8152. return yl && a.REQUIRED && i(t) && !b(t, r) && o(t), t;
  8153. }
  8154. });
  8155. W[r] = !0;
  8156. }),
  8157. dl = (vl.REQUIRED, vl.fastKey, vl.getWeakData, vl.onFreeze, T.f),
  8158. ml = vl.fastKey,
  8159. xl = et.set,
  8160. bl = et.getterFor;
  8161. !(function(t, e, r) {
  8162. var n = -1 !== t.indexOf('Map'),
  8163. a = -1 !== t.indexOf('Weak'),
  8164. u = n ? 'set' : 'add',
  8165. s = i[t],
  8166. c = s && s.prototype,
  8167. l = s,
  8168. f = {},
  8169. h = function(t) {
  8170. var e = c[t];
  8171. rt(
  8172. c,
  8173. t,
  8174. 'add' == t
  8175. ? function(t) {
  8176. return e.call(this, 0 === t ? 0 : t), this;
  8177. }
  8178. : 'delete' == t
  8179. ? function(t) {
  8180. return !(a && !d(t)) && e.call(this, 0 === t ? 0 : t);
  8181. }
  8182. : 'get' == t
  8183. ? function(t) {
  8184. return a && !d(t) ? void 0 : e.call(this, 0 === t ? 0 : t);
  8185. }
  8186. : 'has' == t
  8187. ? function(t) {
  8188. return !(a && !d(t)) && e.call(this, 0 === t ? 0 : t);
  8189. }
  8190. : function(t, r) {
  8191. return e.call(this, 0 === t ? 0 : t, r), this;
  8192. }
  8193. );
  8194. };
  8195. if (
  8196. Ot(
  8197. t,
  8198. 'function' != typeof s ||
  8199. !(
  8200. a ||
  8201. (c.forEach &&
  8202. !o(function() {
  8203. new s().entries().next();
  8204. }))
  8205. )
  8206. )
  8207. )
  8208. (l = r.getConstructor(e, t, n, u)), (vl.REQUIRED = !0);
  8209. else if (Ot(t, !0)) {
  8210. var p = new l(),
  8211. g = p[u](a ? {} : -0, 1) != p,
  8212. y = o(function() {
  8213. p.has(1);
  8214. }),
  8215. v = Mi(function(t) {
  8216. new s(t);
  8217. }),
  8218. m =
  8219. !a &&
  8220. o(function() {
  8221. for (var t = new s(), e = 5; e--; ) t[u](e, e);
  8222. return !t.has(-0);
  8223. });
  8224. v ||
  8225. (((l = e(function(e, r) {
  8226. yi(e, l, t);
  8227. var i = Ps(new s(), e, l);
  8228. return null != r && ki(r, i[u], i, n), i;
  8229. })).prototype = c),
  8230. (c.constructor = l)),
  8231. (y || m) && (h('delete'), h('has'), n && h('get')),
  8232. (m || g) && h(u),
  8233. a && c.clear && delete c.clear;
  8234. }
  8235. (f[t] = l), Dt({ global: !0, forced: l != s }, f), Yr(l, t), a || r.setStrong(l, t, n);
  8236. })(
  8237. 'Map',
  8238. function(t) {
  8239. return function() {
  8240. return t(this, arguments.length ? arguments[0] : void 0);
  8241. };
  8242. },
  8243. {
  8244. getConstructor: function(t, e, r, n) {
  8245. var i = t(function(t, o) {
  8246. yi(t, i, e),
  8247. xl(t, { type: e, index: Br(null), first: void 0, last: void 0, size: 0 }),
  8248. a || (t.size = 0),
  8249. null != o && ki(o, t[n], t, r);
  8250. }),
  8251. o = bl(e),
  8252. u = function(t, e, r) {
  8253. var n,
  8254. i,
  8255. u = o(t),
  8256. c = s(t, e);
  8257. return (
  8258. c
  8259. ? (c.value = r)
  8260. : ((u.last = c = {
  8261. index: (i = ml(e, !0)),
  8262. key: e,
  8263. value: r,
  8264. previous: (n = u.last),
  8265. next: void 0,
  8266. removed: !1
  8267. }),
  8268. u.first || (u.first = c),
  8269. n && (n.next = c),
  8270. a ? u.size++ : t.size++,
  8271. 'F' !== i && (u.index[i] = c)),
  8272. t
  8273. );
  8274. },
  8275. s = function(t, e) {
  8276. var r,
  8277. n = o(t),
  8278. i = ml(e);
  8279. if ('F' !== i) return n.index[i];
  8280. for (r = n.first; r; r = r.next) if (r.key == e) return r;
  8281. };
  8282. return (
  8283. hi(i.prototype, {
  8284. clear: function() {
  8285. for (var t = o(this), e = t.index, r = t.first; r; )
  8286. (r.removed = !0),
  8287. r.previous && (r.previous = r.previous.next = void 0),
  8288. delete e[r.index],
  8289. (r = r.next);
  8290. (t.first = t.last = void 0), a ? (t.size = 0) : (this.size = 0);
  8291. },
  8292. delete: function(t) {
  8293. var e = o(this),
  8294. r = s(this, t);
  8295. if (r) {
  8296. var n = r.next,
  8297. i = r.previous;
  8298. delete e.index[r.index],
  8299. (r.removed = !0),
  8300. i && (i.next = n),
  8301. n && (n.previous = i),
  8302. e.first == r && (e.first = n),
  8303. e.last == r && (e.last = i),
  8304. a ? e.size-- : this.size--;
  8305. }
  8306. return !!r;
  8307. },
  8308. forEach: function(t) {
  8309. for (
  8310. var e, r = o(this), n = Nt(t, arguments.length > 1 ? arguments[1] : void 0, 3);
  8311. (e = e ? e.next : r.first);
  8312. )
  8313. for (n(e.value, e.key, this); e && e.removed; ) e = e.previous;
  8314. },
  8315. has: function(t) {
  8316. return !!s(this, t);
  8317. }
  8318. }),
  8319. hi(
  8320. i.prototype,
  8321. r
  8322. ? {
  8323. get: function(t) {
  8324. var e = s(this, t);
  8325. return e && e.value;
  8326. },
  8327. set: function(t, e) {
  8328. return u(this, 0 === t ? 0 : t, e);
  8329. }
  8330. }
  8331. : {
  8332. add: function(t) {
  8333. return u(this, (t = 0 === t ? 0 : t), t);
  8334. }
  8335. }
  8336. ),
  8337. a &&
  8338. dl(i.prototype, 'size', {
  8339. get: function() {
  8340. return o(this).size;
  8341. }
  8342. }),
  8343. i
  8344. );
  8345. },
  8346. setStrong: function(t, e, r) {
  8347. var n = e + ' Iterator',
  8348. i = bl(e),
  8349. o = bl(n);
  8350. Lu(
  8351. t,
  8352. e,
  8353. function(t, e) {
  8354. xl(this, { type: n, target: t, state: i(t), kind: e, last: void 0 });
  8355. },
  8356. function() {
  8357. for (var t = o(this), e = t.kind, r = t.last; r && r.removed; ) r = r.previous;
  8358. return t.target && (t.last = r = r ? r.next : t.state.first)
  8359. ? 'keys' == e
  8360. ? { value: r.key, done: !1 }
  8361. : 'values' == e
  8362. ? { value: r.value, done: !1 }
  8363. : { value: [r.key, r.value], done: !1 }
  8364. : ((t.target = void 0), { value: void 0, done: !0 });
  8365. },
  8366. r ? 'entries' : 'values',
  8367. !r,
  8368. !0
  8369. ),
  8370. gi(e);
  8371. }
  8372. }
  8373. );
  8374. function wl(t) {
  8375. if ('undefined' == typeof Symbol || null == t[Symbol.iterator]) {
  8376. if (
  8377. Array.isArray(t) ||
  8378. (t = (function(t, e) {
  8379. if (!t) return;
  8380. if ('string' == typeof t) return Sl(t, e);
  8381. var r = Object.prototype.toString.call(t).slice(8, -1);
  8382. 'Object' === r && t.constructor && (r = t.constructor.name);
  8383. if ('Map' === r || 'Set' === r) return Array.from(r);
  8384. if ('Arguments' === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Sl(t, e);
  8385. })(t))
  8386. ) {
  8387. var e = 0,
  8388. r = function() {};
  8389. return {
  8390. s: r,
  8391. n: function() {
  8392. return e >= t.length ? { done: !0 } : { done: !1, value: t[e++] };
  8393. },
  8394. e: function(t) {
  8395. throw t;
  8396. },
  8397. f: r
  8398. };
  8399. }
  8400. throw new TypeError(
  8401. 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  8402. );
  8403. }
  8404. var n,
  8405. i,
  8406. o = !0,
  8407. a = !1;
  8408. return {
  8409. s: function() {
  8410. n = t[Symbol.iterator]();
  8411. },
  8412. n: function() {
  8413. var t = n.next();
  8414. return (o = t.done), t;
  8415. },
  8416. e: function(t) {
  8417. (a = !0), (i = t);
  8418. },
  8419. f: function() {
  8420. try {
  8421. o || null == n.return || n.return();
  8422. } finally {
  8423. if (a) throw i;
  8424. }
  8425. }
  8426. };
  8427. }
  8428. function Sl(t, e) {
  8429. (null == e || e > t.length) && (e = t.length);
  8430. for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r];
  8431. return n;
  8432. }
  8433. function kl() {
  8434. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  8435. if (Reflect.construct.sham) return !1;
  8436. if ('function' == typeof Proxy) return !0;
  8437. try {
  8438. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  8439. } catch (t) {
  8440. return !1;
  8441. }
  8442. }
  8443. var Pl = (function(t) {
  8444. cu(n, t);
  8445. var e,
  8446. r =
  8447. ((e = n),
  8448. function() {
  8449. var t,
  8450. r = uu(e);
  8451. if (kl()) {
  8452. var n = uu(this).constructor;
  8453. t = Reflect.construct(r, arguments, n);
  8454. } else t = r.apply(this, arguments);
  8455. return au(this, t);
  8456. });
  8457. function n(t, e, i) {
  8458. var o;
  8459. Un(this, n),
  8460. ((o = r.call(this, t, e, i)).type = 'textPath'),
  8461. (o.textWidth = 0),
  8462. (o.textHeight = 0),
  8463. (o.pathLength = -1),
  8464. (o.glyphInfo = null),
  8465. (o.letterSpacingCache = []),
  8466. (o.measuresCache = new Map([['', 0]]));
  8467. var a = o.getHrefAttribute().getDefinition();
  8468. return (o.text = o.getTextFromNode()), (o.dataArray = o.parsePathData(a)), o;
  8469. }
  8470. return (
  8471. Hn(n, [
  8472. {
  8473. key: 'getText',
  8474. value: function() {
  8475. return this.text;
  8476. }
  8477. },
  8478. {
  8479. key: 'path',
  8480. value: function(t) {
  8481. var e = this.dataArray;
  8482. t && t.beginPath(),
  8483. e.forEach(function(e) {
  8484. var r = e.command,
  8485. n = e.points;
  8486. switch (r) {
  8487. case 'L':
  8488. t && t.lineTo(n[0], n[1]);
  8489. break;
  8490. case 'M':
  8491. t && t.moveTo(n[0], n[1]);
  8492. break;
  8493. case 'C':
  8494. t && t.bezierCurveTo(n[0], n[1], n[2], n[3], n[4], n[5]);
  8495. break;
  8496. case 'Q':
  8497. t && t.quadraticCurveTo(n[0], n[1], n[2], n[3]);
  8498. break;
  8499. case 'A':
  8500. var i = n[0],
  8501. o = n[1],
  8502. a = n[2],
  8503. u = n[3],
  8504. s = n[4],
  8505. c = n[5],
  8506. l = n[6],
  8507. f = n[7],
  8508. h = a > u ? a : u,
  8509. p = a > u ? 1 : a / u,
  8510. g = a > u ? u / a : 1;
  8511. t &&
  8512. (t.translate(i, o),
  8513. t.rotate(l),
  8514. t.scale(p, g),
  8515. t.arc(0, 0, h, s, s + c, Boolean(1 - f)),
  8516. t.scale(1 / p, 1 / g),
  8517. t.rotate(-l),
  8518. t.translate(-i, -o));
  8519. break;
  8520. case 'z':
  8521. t && t.closePath();
  8522. }
  8523. });
  8524. }
  8525. },
  8526. {
  8527. key: 'renderChildren',
  8528. value: function(t) {
  8529. this.setTextData(t), t.save();
  8530. var e = this.parent.getStyle('text-decoration').getString(),
  8531. r = this.getFontSize(),
  8532. n = this.glyphInfo,
  8533. i = t.fillStyle;
  8534. 'underline' === e && t.beginPath(),
  8535. n.forEach(function(i, o) {
  8536. var a = i.p0,
  8537. u = i.p1,
  8538. s = i.text;
  8539. t.save(),
  8540. t.translate(a.x, a.y),
  8541. t.rotate(n[o].rotation),
  8542. t.fillStyle && t.fillText(s, 0, 0),
  8543. t.strokeStyle && t.strokeText(s, 0, 0),
  8544. t.restore(),
  8545. 'underline' === e &&
  8546. (0 === o && t.moveTo(a.x, a.y + r / 8), t.lineTo(u.x, u.y + r / 5));
  8547. }),
  8548. 'underline' === e &&
  8549. ((t.lineWidth = r / 20), (t.strokeStyle = i), t.stroke(), t.closePath()),
  8550. t.restore();
  8551. }
  8552. },
  8553. {
  8554. key: 'getLetterSpacingAt',
  8555. value: function() {
  8556. var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0;
  8557. return this.letterSpacingCache[t] || 0;
  8558. }
  8559. },
  8560. {
  8561. key: 'findSegmentToFitChar',
  8562. value: function(t, e, r, n, i, o, a, u) {
  8563. var s = o,
  8564. c = this.measureText(t, a);
  8565. ' ' === a && 'justify' === e && r < n && (c += (n - r) / i),
  8566. u > -1 && (s += this.getLetterSpacingAt(u));
  8567. var l = this.textHeight / 20,
  8568. f = {
  8569. p0: this.getEquidistantPointOnPath(s, l),
  8570. p1: this.getEquidistantPointOnPath(s + c, l)
  8571. };
  8572. return { offset: (s += c), segment: f };
  8573. }
  8574. },
  8575. {
  8576. key: 'measureText',
  8577. value: function(t, e) {
  8578. var r = this.measuresCache,
  8579. n = e || this.getText();
  8580. if (r.has(n)) return r.get(n);
  8581. var i = this.measureTargetText(t, n);
  8582. return r.set(n, i), i;
  8583. }
  8584. },
  8585. {
  8586. key: 'setTextData',
  8587. value: function(t) {
  8588. var e = this;
  8589. if (!this.glyphInfo) {
  8590. var r = this.getText(),
  8591. n = r.split(''),
  8592. i = r.split(' ').length - 1,
  8593. o = Ze(this.parent.getAttribute('dx').getString('0')),
  8594. a = this.parent.getStyle('text-anchor').getString('start'),
  8595. u = this.getStyle('letter-spacing'),
  8596. s = this.parent.getStyle('letter-spacing'),
  8597. c = 0;
  8598. u.hasValue() && 'inherit' !== u.getValue()
  8599. ? u.hasValue() &&
  8600. 'initial' !== u.getValue() &&
  8601. 'unset' !== u.getValue() &&
  8602. (c = u.getPixels())
  8603. : (c = s.getPixels());
  8604. var l = [],
  8605. f = r.length;
  8606. this.letterSpacingCache = l;
  8607. for (var h = 0; h < f; h++) l.push(void 0 !== o[h] ? o[h] : c);
  8608. var p = l.reduce(function(t, e) {
  8609. return t + e || 0;
  8610. }, 0);
  8611. (this.textWidth = this.measureText(t)), (this.textHeight = this.getFontSize());
  8612. var g = Math.max(this.textWidth + p, 0);
  8613. this.glyphInfo = [];
  8614. var y = this.getPathLength(),
  8615. v = this.getStyle('startOffset').getNumber(0) * y,
  8616. d = 0;
  8617. ('middle' !== a && 'center' !== a) || (d = -g / 2),
  8618. ('end' !== a && 'right' !== a) || (d = -g),
  8619. (d += v),
  8620. n.forEach(function(r, o) {
  8621. var u = e.findSegmentToFitChar(t, a, g, y, i, d, r, o),
  8622. s = u.offset,
  8623. c = u.segment;
  8624. if (((d = s), c.p0 && c.p1)) {
  8625. var l = e.getLineLength(c.p0.x, c.p0.y, c.p1.x, c.p1.y),
  8626. f = e.getPointOnLine(0 + l / 2, c.p0.x, c.p0.y, c.p1.x, c.p1.y),
  8627. h = Math.atan2(c.p1.y - c.p0.y, c.p1.x - c.p0.x);
  8628. e.glyphInfo.push({
  8629. transposeX: f.x,
  8630. transposeY: f.y,
  8631. text: n[o],
  8632. p0: c.p0,
  8633. p1: c.p1,
  8634. rotation: h
  8635. });
  8636. }
  8637. });
  8638. }
  8639. }
  8640. },
  8641. {
  8642. key: 'parsePathData',
  8643. value: function(t) {
  8644. if (((this.pathLength = -1), !t)) return [];
  8645. var e = [],
  8646. r = t.pathParser;
  8647. for (r.reset(); !r.isEnd(); ) {
  8648. var n = r.current,
  8649. i = n ? n.x : 0,
  8650. o = n ? n.y : 0,
  8651. a = '',
  8652. u = [];
  8653. r.nextCommand();
  8654. var s = r.command.toUpperCase();
  8655. switch (r.command) {
  8656. case 'M':
  8657. case 'm':
  8658. a = this.pathM(r, u);
  8659. break;
  8660. case 'L':
  8661. case 'l':
  8662. a = this.pathL(r, u);
  8663. break;
  8664. case 'H':
  8665. case 'h':
  8666. a = this.pathH(r, u);
  8667. break;
  8668. case 'V':
  8669. case 'v':
  8670. a = this.pathV(r, u);
  8671. break;
  8672. case 'C':
  8673. case 'c':
  8674. this.pathC(r, u);
  8675. break;
  8676. case 'S':
  8677. case 's':
  8678. a = this.pathS(r, u);
  8679. break;
  8680. case 'Q':
  8681. case 'q':
  8682. this.pathQ(r, u);
  8683. break;
  8684. case 'T':
  8685. case 't':
  8686. a = this.pathT(r, u);
  8687. break;
  8688. case 'A':
  8689. case 'a':
  8690. u = this.pathA(r);
  8691. break;
  8692. case 'Z':
  8693. case 'z':
  8694. r.current = r.start;
  8695. }
  8696. 'Z' !== s
  8697. ? e.push({
  8698. command: a || s,
  8699. points: u,
  8700. start: { x: i, y: o },
  8701. pathLength: this.calcLength(i, o, a || s, u)
  8702. })
  8703. : e.push({ command: 'z', points: [], pathLength: 0 });
  8704. }
  8705. return e;
  8706. }
  8707. },
  8708. {
  8709. key: 'pathM',
  8710. value: function(t, e) {
  8711. var r = t.getAsCurrentPoint();
  8712. for (e.push(r.x, r.y), t.start = t.current; !t.isCommandOrEnd(); ) {
  8713. var n = t.getAsCurrentPoint();
  8714. return e.push(n.x, n.y), 'L';
  8715. }
  8716. }
  8717. },
  8718. {
  8719. key: 'pathL',
  8720. value: function(t, e) {
  8721. for (; !t.isCommandOrEnd(); ) {
  8722. var r = t.getAsCurrentPoint();
  8723. e.push(r.x, r.y);
  8724. }
  8725. return 'L';
  8726. }
  8727. },
  8728. {
  8729. key: 'pathH',
  8730. value: function(t, e) {
  8731. for (; !t.isCommandOrEnd(); ) {
  8732. var r = t.current,
  8733. n = new za((t.isRelativeCommand() ? r.x : 0) + t.getScalar(), r.y);
  8734. e.push(n.x, n.y), (t.current = n);
  8735. }
  8736. return 'L';
  8737. }
  8738. },
  8739. {
  8740. key: 'pathV',
  8741. value: function(t, e) {
  8742. for (; !t.isCommandOrEnd(); ) {
  8743. var r = t.current,
  8744. n = new za(r.x, (t.isRelativeCommand() ? r.y : 0) + t.getScalar());
  8745. e.push(n.x, n.y), (t.current = n);
  8746. }
  8747. return 'L';
  8748. }
  8749. },
  8750. {
  8751. key: 'pathC',
  8752. value: function(t, e) {
  8753. for (; !t.isCommandOrEnd(); ) {
  8754. var r = t.getPoint(),
  8755. n = t.getAsControlPoint(),
  8756. i = t.getAsCurrentPoint();
  8757. e.push(r.x, r.y, n.x, n.y, i.x, i.y);
  8758. }
  8759. }
  8760. },
  8761. {
  8762. key: 'pathS',
  8763. value: function(t, e) {
  8764. for (; !t.isCommandOrEnd(); ) {
  8765. var r = t.getReflectedControlPoint(),
  8766. n = t.getAsControlPoint(),
  8767. i = t.getAsCurrentPoint();
  8768. e.push(r.x, r.y, n.x, n.y, i.x, i.y);
  8769. }
  8770. return 'C';
  8771. }
  8772. },
  8773. {
  8774. key: 'pathQ',
  8775. value: function(t, e) {
  8776. for (; !t.isCommandOrEnd(); ) {
  8777. var r = t.getAsControlPoint(),
  8778. n = t.getAsCurrentPoint();
  8779. e.push(r.x, r.y, n.x, n.y);
  8780. }
  8781. }
  8782. },
  8783. {
  8784. key: 'pathT',
  8785. value: function(t, e) {
  8786. for (; !t.isCommandOrEnd(); ) {
  8787. var r = t.getReflectedControlPoint();
  8788. t.control = r;
  8789. var n = t.getAsCurrentPoint();
  8790. e.push(r.x, r.y, n.x, n.y);
  8791. }
  8792. return 'Q';
  8793. }
  8794. },
  8795. {
  8796. key: 'pathA',
  8797. value: function(t) {
  8798. for (; !t.isCommandOrEnd(); ) {
  8799. var e = t.current,
  8800. r = t.getScalar(),
  8801. n = t.getScalar(),
  8802. i = t.getScalar() * (Math.PI / 180),
  8803. o = t.getScalar(),
  8804. a = t.getScalar(),
  8805. u = t.getAsCurrentPoint(),
  8806. s = new za(
  8807. (Math.cos(i) * (e.x - u.x)) / 2 + (Math.sin(i) * (e.y - u.y)) / 2,
  8808. (-Math.sin(i) * (e.x - u.x)) / 2 + (Math.cos(i) * (e.y - u.y)) / 2
  8809. ),
  8810. c = Math.pow(s.x, 2) / Math.pow(r, 2) + Math.pow(s.y, 2) / Math.pow(n, 2);
  8811. c > 1 && ((r *= Math.sqrt(c)), (n *= Math.sqrt(c)));
  8812. var l =
  8813. (o === a ? -1 : 1) *
  8814. Math.sqrt(
  8815. (Math.pow(r, 2) * Math.pow(n, 2) -
  8816. Math.pow(r, 2) * Math.pow(s.y, 2) -
  8817. Math.pow(n, 2) * Math.pow(s.x, 2)) /
  8818. (Math.pow(r, 2) * Math.pow(s.y, 2) + Math.pow(n, 2) * Math.pow(s.x, 2))
  8819. );
  8820. isNaN(l) && (l = 0);
  8821. var f = new za((l * r * s.y) / n, (l * -n * s.x) / r),
  8822. h = new za(
  8823. (e.x + u.x) / 2 + Math.cos(i) * f.x - Math.sin(i) * f.y,
  8824. (e.y + u.y) / 2 + Math.sin(i) * f.x + Math.cos(i) * f.y
  8825. ),
  8826. p = kr([1, 0], [(s.x - f.x) / r, (s.y - f.y) / n]),
  8827. g = [(s.x - f.x) / r, (s.y - f.y) / n],
  8828. y = [(-s.x - f.x) / r, (-s.y - f.y) / n],
  8829. v = kr(g, y);
  8830. return (
  8831. Sr(g, y) <= -1 && (v = Math.PI),
  8832. Sr(g, y) >= 1 && (v = 0),
  8833. 0 === a && v > 0 && (v -= 2 * Math.PI),
  8834. 1 === a && v < 0 && (v += 2 * Math.PI),
  8835. [h.x, h.y, r, n, p, v, i, a]
  8836. );
  8837. }
  8838. }
  8839. },
  8840. {
  8841. key: 'calcLength',
  8842. value: function(t, e, r, n) {
  8843. var i = 0,
  8844. o = null,
  8845. a = null,
  8846. u = 0;
  8847. switch (r) {
  8848. case 'L':
  8849. return this.getLineLength(t, e, n[0], n[1]);
  8850. case 'C':
  8851. for (
  8852. i = 0,
  8853. o = this.getPointOnCubicBezier(0, t, e, n[0], n[1], n[2], n[3], n[4], n[5]),
  8854. u = 0.01;
  8855. u <= 1;
  8856. u += 0.01
  8857. )
  8858. (a = this.getPointOnCubicBezier(u, t, e, n[0], n[1], n[2], n[3], n[4], n[5])),
  8859. (i += this.getLineLength(o.x, o.y, a.x, a.y)),
  8860. (o = a);
  8861. return i;
  8862. case 'Q':
  8863. for (
  8864. i = 0,
  8865. o = this.getPointOnQuadraticBezier(0, t, e, n[0], n[1], n[2], n[3]),
  8866. u = 0.01;
  8867. u <= 1;
  8868. u += 0.01
  8869. )
  8870. (a = this.getPointOnQuadraticBezier(u, t, e, n[0], n[1], n[2], n[3])),
  8871. (i += this.getLineLength(o.x, o.y, a.x, a.y)),
  8872. (o = a);
  8873. return i;
  8874. case 'A':
  8875. i = 0;
  8876. var s = n[4],
  8877. c = n[5],
  8878. l = n[4] + c,
  8879. f = Math.PI / 180;
  8880. if (
  8881. (Math.abs(s - l) < f && (f = Math.abs(s - l)),
  8882. (o = this.getPointOnEllipticalArc(n[0], n[1], n[2], n[3], s, 0)),
  8883. c < 0)
  8884. )
  8885. for (u = s - f; u > l; u -= f)
  8886. (a = this.getPointOnEllipticalArc(n[0], n[1], n[2], n[3], u, 0)),
  8887. (i += this.getLineLength(o.x, o.y, a.x, a.y)),
  8888. (o = a);
  8889. else
  8890. for (u = s + f; u < l; u += f)
  8891. (a = this.getPointOnEllipticalArc(n[0], n[1], n[2], n[3], u, 0)),
  8892. (i += this.getLineLength(o.x, o.y, a.x, a.y)),
  8893. (o = a);
  8894. return (
  8895. (a = this.getPointOnEllipticalArc(n[0], n[1], n[2], n[3], l, 0)),
  8896. (i += this.getLineLength(o.x, o.y, a.x, a.y))
  8897. );
  8898. }
  8899. return 0;
  8900. }
  8901. },
  8902. {
  8903. key: 'getPointOnLine',
  8904. value: function(t, e, r, n, i) {
  8905. var o = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : e,
  8906. a = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : r,
  8907. u = (i - r) / (n - e + 1e-8),
  8908. s = Math.sqrt((t * t) / (1 + u * u));
  8909. n < e && (s *= -1);
  8910. var c = u * s,
  8911. l = null;
  8912. if (n === e) l = { x: o, y: a + c };
  8913. else if ((a - r) / (o - e + 1e-8) === u) l = { x: o + s, y: a + c };
  8914. else {
  8915. var f = 0,
  8916. h = 0,
  8917. p = this.getLineLength(e, r, n, i);
  8918. if (p < 1e-8) return null;
  8919. var g = (o - e) * (n - e) + (a - r) * (i - r);
  8920. (f = e + (g /= p * p) * (n - e)), (h = r + g * (i - r));
  8921. var y = this.getLineLength(o, a, f, h),
  8922. v = Math.sqrt(t * t - y * y);
  8923. (s = Math.sqrt((v * v) / (1 + u * u))),
  8924. n < e && (s *= -1),
  8925. (l = { x: f + s, y: h + (c = u * s) });
  8926. }
  8927. return l;
  8928. }
  8929. },
  8930. {
  8931. key: 'getPointOnPath',
  8932. value: function(t) {
  8933. var e = this.getPathLength(),
  8934. r = 0,
  8935. n = null;
  8936. if (t < -5e-5 || t - 5e-5 > e) return null;
  8937. var i,
  8938. o = wl(this.dataArray);
  8939. try {
  8940. for (o.s(); !(i = o.n()).done; ) {
  8941. var a = i.value;
  8942. if (!a || !(a.pathLength < 5e-5 || r + a.pathLength + 5e-5 < t)) {
  8943. var u = t - r,
  8944. s = 0;
  8945. switch (a.command) {
  8946. case 'L':
  8947. n = this.getPointOnLine(
  8948. u,
  8949. a.start.x,
  8950. a.start.y,
  8951. a.points[0],
  8952. a.points[1],
  8953. a.start.x,
  8954. a.start.y
  8955. );
  8956. break;
  8957. case 'A':
  8958. var c = a.points[4],
  8959. l = a.points[5],
  8960. f = a.points[4] + l;
  8961. if (
  8962. ((s = c + (u / a.pathLength) * l),
  8963. (l < 0 && s < f) || (l >= 0 && s > f))
  8964. )
  8965. break;
  8966. n = this.getPointOnEllipticalArc(
  8967. a.points[0],
  8968. a.points[1],
  8969. a.points[2],
  8970. a.points[3],
  8971. s,
  8972. a.points[6]
  8973. );
  8974. break;
  8975. case 'C':
  8976. (s = u / a.pathLength) > 1 && (s = 1),
  8977. (n = this.getPointOnCubicBezier(
  8978. s,
  8979. a.start.x,
  8980. a.start.y,
  8981. a.points[0],
  8982. a.points[1],
  8983. a.points[2],
  8984. a.points[3],
  8985. a.points[4],
  8986. a.points[5]
  8987. ));
  8988. break;
  8989. case 'Q':
  8990. (s = u / a.pathLength) > 1 && (s = 1),
  8991. (n = this.getPointOnQuadraticBezier(
  8992. s,
  8993. a.start.x,
  8994. a.start.y,
  8995. a.points[0],
  8996. a.points[1],
  8997. a.points[2],
  8998. a.points[3]
  8999. ));
  9000. }
  9001. if (n) return n;
  9002. break;
  9003. }
  9004. r += a.pathLength;
  9005. }
  9006. } catch (t) {
  9007. o.e(t);
  9008. } finally {
  9009. o.f();
  9010. }
  9011. return null;
  9012. }
  9013. },
  9014. {
  9015. key: 'getLineLength',
  9016. value: function(t, e, r, n) {
  9017. return Math.sqrt((r - t) * (r - t) + (n - e) * (n - e));
  9018. }
  9019. },
  9020. {
  9021. key: 'getPathLength',
  9022. value: function() {
  9023. return (
  9024. -1 === this.pathLength &&
  9025. (this.pathLength = this.dataArray.reduce(function(t, e) {
  9026. return e.pathLength > 0 ? t + e.pathLength : t;
  9027. }, 0)),
  9028. this.pathLength
  9029. );
  9030. }
  9031. },
  9032. {
  9033. key: 'getPointOnCubicBezier',
  9034. value: function(t, e, r, n, i, o, a, u, s) {
  9035. return {
  9036. x: u * Pr(t) + o * Rr(t) + n * Ar(t) + e * Er(t),
  9037. y: s * Pr(t) + a * Rr(t) + i * Ar(t) + r * Er(t)
  9038. };
  9039. }
  9040. },
  9041. {
  9042. key: 'getPointOnQuadraticBezier',
  9043. value: function(t, e, r, n, i, o, a) {
  9044. return { x: o * Cr(t) + n * Tr(t) + e * Or(t), y: a * Cr(t) + i * Tr(t) + r * Or(t) };
  9045. }
  9046. },
  9047. {
  9048. key: 'getPointOnEllipticalArc',
  9049. value: function(t, e, r, n, i, o) {
  9050. var a = Math.cos(o),
  9051. u = Math.sin(o),
  9052. s = r * Math.cos(i),
  9053. c = n * Math.sin(i);
  9054. return { x: t + (s * a - c * u), y: e + (s * u + c * a) };
  9055. }
  9056. },
  9057. {
  9058. key: 'buildEquidistantCache',
  9059. value: function(t, e) {
  9060. var r = this.getPathLength(),
  9061. n = e || 0.25,
  9062. i = t || r / 100;
  9063. if (
  9064. !this.equidistantCache ||
  9065. this.equidistantCache.step !== i ||
  9066. this.equidistantCache.precision !== n
  9067. ) {
  9068. this.equidistantCache = { step: i, precision: n, points: [] };
  9069. for (var o = 0, a = 0; a <= r; a += n) {
  9070. var u = this.getPointOnPath(a),
  9071. s = this.getPointOnPath(a + n);
  9072. u &&
  9073. s &&
  9074. (o += this.getLineLength(u.x, u.y, s.x, s.y)) >= i &&
  9075. (this.equidistantCache.points.push({ x: u.x, y: u.y, distance: a }), (o -= i));
  9076. }
  9077. }
  9078. }
  9079. },
  9080. {
  9081. key: 'getEquidistantPointOnPath',
  9082. value: function(t, e, r) {
  9083. if ((this.buildEquidistantCache(e, r), t < 0 || t - this.getPathLength() > 5e-5)) return null;
  9084. var n = Math.round((t / this.getPathLength()) * (this.equidistantCache.points.length - 1));
  9085. return this.equidistantCache.points[n] || null;
  9086. }
  9087. }
  9088. ]),
  9089. n
  9090. );
  9091. })(_s);
  9092. function Rl() {
  9093. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9094. if (Reflect.construct.sham) return !1;
  9095. if ('function' == typeof Proxy) return !0;
  9096. try {
  9097. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9098. } catch (t) {
  9099. return !1;
  9100. }
  9101. }
  9102. var Al = (function(t) {
  9103. cu(o, t);
  9104. var e,
  9105. r,
  9106. n,
  9107. i =
  9108. ((e = o),
  9109. function() {
  9110. var t,
  9111. r = uu(e);
  9112. if (Rl()) {
  9113. var n = uu(this).constructor;
  9114. t = Reflect.construct(r, arguments, n);
  9115. } else t = r.apply(this, arguments);
  9116. return au(this, t);
  9117. });
  9118. function o(t, e, r) {
  9119. var n;
  9120. Un(this, o), ((n = i.call(this, t, e, r)).type = 'image'), (n.loaded = !1);
  9121. var a = n.getHrefAttribute().getString();
  9122. if (!a) return au(n);
  9123. var u = /\.svg$/.test(a);
  9124. return t.images.push(ou(n)), u ? n.loadSvg(a) : n.loadImage(a), (n.isSvg = u), n;
  9125. }
  9126. return (
  9127. Hn(o, [
  9128. {
  9129. key: 'loadImage',
  9130. value:
  9131. ((n = Gn(
  9132. _n.mark(function t(e) {
  9133. var r;
  9134. return _n.wrap(
  9135. function(t) {
  9136. for (;;)
  9137. switch ((t.prev = t.next)) {
  9138. case 0:
  9139. return (t.prev = 0), (t.next = 3), this.document.createImage(e);
  9140. case 3:
  9141. (r = t.sent), (this.image = r), (t.next = 10);
  9142. break;
  9143. case 7:
  9144. (t.prev = 7),
  9145. (t.t0 = t.catch(0)),
  9146. console.error(
  9147. 'Error while loading image "'.concat(e, '":'),
  9148. t.t0
  9149. );
  9150. case 10:
  9151. this.loaded = !0;
  9152. case 11:
  9153. case 'end':
  9154. return t.stop();
  9155. }
  9156. },
  9157. t,
  9158. this,
  9159. [[0, 7]]
  9160. );
  9161. })
  9162. )),
  9163. function(t) {
  9164. return n.apply(this, arguments);
  9165. })
  9166. },
  9167. {
  9168. key: 'loadSvg',
  9169. value:
  9170. ((r = Gn(
  9171. _n.mark(function t(e) {
  9172. var r, n;
  9173. return _n.wrap(
  9174. function(t) {
  9175. for (;;)
  9176. switch ((t.prev = t.next)) {
  9177. case 0:
  9178. return (t.prev = 0), (t.next = 3), this.document.fetch(e);
  9179. case 3:
  9180. return (r = t.sent), (t.next = 6), r.text();
  9181. case 6:
  9182. (n = t.sent), (this.image = n), (t.next = 13);
  9183. break;
  9184. case 10:
  9185. (t.prev = 10),
  9186. (t.t0 = t.catch(0)),
  9187. console.error(
  9188. 'Error while loading image "'.concat(e, '":'),
  9189. t.t0
  9190. );
  9191. case 13:
  9192. this.loaded = !0;
  9193. case 14:
  9194. case 'end':
  9195. return t.stop();
  9196. }
  9197. },
  9198. t,
  9199. this,
  9200. [[0, 10]]
  9201. );
  9202. })
  9203. )),
  9204. function(t) {
  9205. return r.apply(this, arguments);
  9206. })
  9207. },
  9208. {
  9209. key: 'renderChildren',
  9210. value: function(t) {
  9211. var e = this.document,
  9212. r = this.image,
  9213. n = this.loaded,
  9214. i = this.getAttribute('x').getPixels('x'),
  9215. o = this.getAttribute('y').getPixels('y'),
  9216. a = this.getStyle('width').getPixels('x'),
  9217. u = this.getStyle('height').getPixels('y');
  9218. if (n && r && a && u) {
  9219. if ((t.save(), this.isSvg))
  9220. e.canvg
  9221. .forkString(t, this.image, {
  9222. ignoreMouse: !0,
  9223. ignoreAnimation: !0,
  9224. ignoreDimensions: !0,
  9225. ignoreClear: !0,
  9226. offsetX: i,
  9227. offsetY: o,
  9228. scaleWidth: a,
  9229. scaleHeight: u
  9230. })
  9231. .render();
  9232. else {
  9233. var s = this.image;
  9234. t.translate(i, o),
  9235. e.setViewBox({
  9236. ctx: t,
  9237. aspectRatio: this.getAttribute('preserveAspectRatio').getString(),
  9238. width: a,
  9239. desiredWidth: s.width,
  9240. height: u,
  9241. desiredHeight: s.height
  9242. }),
  9243. this.loaded && (void 0 === s.complete || s.complete) && t.drawImage(s, 0, 0);
  9244. }
  9245. t.restore();
  9246. }
  9247. }
  9248. },
  9249. {
  9250. key: 'getBoundingBox',
  9251. value: function() {
  9252. var t = this.getAttribute('x').getPixels('x'),
  9253. e = this.getAttribute('y').getPixels('y'),
  9254. r = this.getStyle('width').getPixels('x'),
  9255. n = this.getStyle('height').getPixels('y');
  9256. return new js(t, e, t + r, e + n);
  9257. }
  9258. }
  9259. ]),
  9260. o
  9261. );
  9262. })(Bs);
  9263. function El() {
  9264. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9265. if (Reflect.construct.sham) return !1;
  9266. if ('function' == typeof Proxy) return !0;
  9267. try {
  9268. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9269. } catch (t) {
  9270. return !1;
  9271. }
  9272. }
  9273. var Cl = (function(t) {
  9274. cu(n, t);
  9275. var e,
  9276. r =
  9277. ((e = n),
  9278. function() {
  9279. var t,
  9280. r = uu(e);
  9281. if (El()) {
  9282. var n = uu(this).constructor;
  9283. t = Reflect.construct(r, arguments, n);
  9284. } else t = r.apply(this, arguments);
  9285. return au(this, t);
  9286. });
  9287. function n() {
  9288. var t;
  9289. return Un(this, n), ((t = r.apply(this, arguments)).type = 'symbol'), t;
  9290. }
  9291. return Hn(n, [{ key: 'render', value: function(t) {} }]), n;
  9292. })(Bs),
  9293. Tl = (function() {
  9294. function t(e) {
  9295. Un(this, t), (this.document = e), (this.loaded = !1), e.fonts.push(this);
  9296. }
  9297. var e;
  9298. return (
  9299. Hn(t, [
  9300. {
  9301. key: 'load',
  9302. value:
  9303. ((e = Gn(
  9304. _n.mark(function t(e, r) {
  9305. var n, i, o;
  9306. return _n.wrap(
  9307. function(t) {
  9308. for (;;)
  9309. switch ((t.prev = t.next)) {
  9310. case 0:
  9311. return (
  9312. (t.prev = 0),
  9313. (n = this.document),
  9314. (t.next = 4),
  9315. n.canvg.parser.load(r)
  9316. );
  9317. case 4:
  9318. (i = t.sent),
  9319. (o = i.getElementsByTagName('font')),
  9320. Array.from(o).forEach(function(t) {
  9321. var r = n.createElement(t);
  9322. n.definitions[e] = r;
  9323. }),
  9324. (t.next = 12);
  9325. break;
  9326. case 9:
  9327. (t.prev = 9),
  9328. (t.t0 = t.catch(0)),
  9329. console.error(
  9330. 'Error while loading font "'.concat(r, '":'),
  9331. t.t0
  9332. );
  9333. case 12:
  9334. this.loaded = !0;
  9335. case 13:
  9336. case 'end':
  9337. return t.stop();
  9338. }
  9339. },
  9340. t,
  9341. this,
  9342. [[0, 9]]
  9343. );
  9344. })
  9345. )),
  9346. function(t, r) {
  9347. return e.apply(this, arguments);
  9348. })
  9349. }
  9350. ]),
  9351. t
  9352. );
  9353. })();
  9354. function Ol() {
  9355. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9356. if (Reflect.construct.sham) return !1;
  9357. if ('function' == typeof Proxy) return !0;
  9358. try {
  9359. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9360. } catch (t) {
  9361. return !1;
  9362. }
  9363. }
  9364. var Ml = (function(t) {
  9365. cu(n, t);
  9366. var e,
  9367. r =
  9368. ((e = n),
  9369. function() {
  9370. var t,
  9371. r = uu(e);
  9372. if (Ol()) {
  9373. var n = uu(this).constructor;
  9374. t = Reflect.construct(r, arguments, n);
  9375. } else t = r.apply(this, arguments);
  9376. return au(this, t);
  9377. });
  9378. function n(t, e, i) {
  9379. var o;
  9380. return (
  9381. Un(this, n),
  9382. ((o = r.call(this, t, e, i)).type = 'style'),
  9383. Xe(
  9384. Array.from(e.childNodes)
  9385. .map(function(t) {
  9386. return t.data;
  9387. })
  9388. .join('')
  9389. .replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, '')
  9390. .replace(/@import.*;/g, '')
  9391. )
  9392. .split('}')
  9393. .forEach(function(e) {
  9394. var r = e.trim();
  9395. if (r) {
  9396. var n = r.split('{'),
  9397. i = n[0].split(','),
  9398. o = n[1].split(';');
  9399. i.forEach(function(e) {
  9400. var r = e.trim();
  9401. if (r) {
  9402. var n = t.styles[r] || {};
  9403. if (
  9404. (o.forEach(function(e) {
  9405. var r = e.indexOf(':'),
  9406. i = e.substr(0, r).trim(),
  9407. o = e.substr(r + 1, e.length - r).trim();
  9408. i && o && (n[i] = new La(t, i, o));
  9409. }),
  9410. (t.styles[r] = n),
  9411. (t.stylesSpecificity[r] = br(r)),
  9412. '@font-face' === r)
  9413. ) {
  9414. var i = n['font-family'].getString().replace(/"|'/g, '');
  9415. n.src
  9416. .getString()
  9417. .split(',')
  9418. .forEach(function(e) {
  9419. if (e.indexOf('format("svg")') > 0) {
  9420. var r = tr(e);
  9421. r && new Tl(t).load(i, r);
  9422. }
  9423. });
  9424. }
  9425. }
  9426. });
  9427. }
  9428. }),
  9429. o
  9430. );
  9431. }
  9432. return n;
  9433. })(ss);
  9434. function Dl() {
  9435. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9436. if (Reflect.construct.sham) return !1;
  9437. if ('function' == typeof Proxy) return !0;
  9438. try {
  9439. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9440. } catch (t) {
  9441. return !1;
  9442. }
  9443. }
  9444. Ml.parseExternalUrl = tr;
  9445. var Vl = (function(t) {
  9446. cu(n, t);
  9447. var e,
  9448. r =
  9449. ((e = n),
  9450. function() {
  9451. var t,
  9452. r = uu(e);
  9453. if (Dl()) {
  9454. var n = uu(this).constructor;
  9455. t = Reflect.construct(r, arguments, n);
  9456. } else t = r.apply(this, arguments);
  9457. return au(this, t);
  9458. });
  9459. function n() {
  9460. var t;
  9461. return Un(this, n), ((t = r.apply(this, arguments)).type = 'use'), t;
  9462. }
  9463. return (
  9464. Hn(n, [
  9465. {
  9466. key: 'setContext',
  9467. value: function(t) {
  9468. xs(uu(n.prototype), 'setContext', this).call(this, t);
  9469. var e = this.getAttribute('x'),
  9470. r = this.getAttribute('y');
  9471. e.hasValue() && t.translate(e.getPixels('x'), 0),
  9472. r.hasValue() && t.translate(0, r.getPixels('y'));
  9473. }
  9474. },
  9475. {
  9476. key: 'path',
  9477. value: function(t) {
  9478. var e = this.element;
  9479. e && e.path(t);
  9480. }
  9481. },
  9482. {
  9483. key: 'renderChildren',
  9484. value: function(t) {
  9485. var e = this.document,
  9486. r = this.element;
  9487. if (r) {
  9488. var n = r;
  9489. if (
  9490. ('symbol' === r.type &&
  9491. (((n = new Qs(e, null)).attributes.viewBox = new La(
  9492. e,
  9493. 'viewBox',
  9494. r.getAttribute('viewBox').getString()
  9495. )),
  9496. (n.attributes.preserveAspectRatio = new La(
  9497. e,
  9498. 'preserveAspectRatio',
  9499. r.getAttribute('preserveAspectRatio').getString()
  9500. )),
  9501. (n.attributes.overflow = new La(
  9502. e,
  9503. 'overflow',
  9504. r.getAttribute('overflow').getString()
  9505. )),
  9506. (n.children = r.children)),
  9507. 'svg' === n.type)
  9508. ) {
  9509. var i = this.getStyle('width', !1, !0),
  9510. o = this.getStyle('height', !1, !0);
  9511. i.hasValue() && (n.attributes.width = new La(e, 'width', i.getString())),
  9512. o.hasValue() && (n.attributes.height = new La(e, 'height', o.getString()));
  9513. }
  9514. var a = n.parent;
  9515. (n.parent = this), n.render(t), (n.parent = a);
  9516. }
  9517. }
  9518. },
  9519. {
  9520. key: 'getBoundingBox',
  9521. value: function(t) {
  9522. var e = this.element;
  9523. return e ? e.getBoundingBox(t) : null;
  9524. }
  9525. },
  9526. {
  9527. key: 'elementTransform',
  9528. value: function() {
  9529. var t = this.document,
  9530. e = this.element;
  9531. return us.fromElement(t, e);
  9532. }
  9533. },
  9534. {
  9535. key: 'element',
  9536. get: function() {
  9537. return (
  9538. this._element || (this._element = this.getHrefAttribute().getDefinition()), this._element
  9539. );
  9540. }
  9541. }
  9542. ]),
  9543. n
  9544. );
  9545. })(Bs);
  9546. function Nl() {
  9547. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9548. if (Reflect.construct.sham) return !1;
  9549. if ('function' == typeof Proxy) return !0;
  9550. try {
  9551. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9552. } catch (t) {
  9553. return !1;
  9554. }
  9555. }
  9556. function Il(t, e, r, n, i, o) {
  9557. return t[r * n * 4 + 4 * e + o];
  9558. }
  9559. function Ll(t, e, r, n, i, o, a) {
  9560. t[r * n * 4 + 4 * e + o] = a;
  9561. }
  9562. function jl(t, e, r) {
  9563. var n = t[e];
  9564. return n * (n < 0 ? r - 255 : r);
  9565. }
  9566. function zl(t, e, r, n) {
  9567. return e + Math.cos(t) * r + Math.sin(t) * n;
  9568. }
  9569. var Bl = (function(t) {
  9570. cu(n, t);
  9571. var e,
  9572. r =
  9573. ((e = n),
  9574. function() {
  9575. var t,
  9576. r = uu(e);
  9577. if (Nl()) {
  9578. var n = uu(this).constructor;
  9579. t = Reflect.construct(r, arguments, n);
  9580. } else t = r.apply(this, arguments);
  9581. return au(this, t);
  9582. });
  9583. function n(t, e, i) {
  9584. var o;
  9585. Un(this, n), ((o = r.call(this, t, e, i)).type = 'feColorMatrix');
  9586. var a = Ze(o.getAttribute('values').getString());
  9587. switch (o.getAttribute('type').getString('matrix')) {
  9588. case 'saturate':
  9589. var u = a[0];
  9590. a = [
  9591. 0.213 + 0.787 * u,
  9592. 0.715 - 0.715 * u,
  9593. 0.072 - 0.072 * u,
  9594. 0,
  9595. 0,
  9596. 0.213 - 0.213 * u,
  9597. 0.715 + 0.285 * u,
  9598. 0.072 - 0.072 * u,
  9599. 0,
  9600. 0,
  9601. 0.213 - 0.213 * u,
  9602. 0.715 - 0.715 * u,
  9603. 0.072 + 0.928 * u,
  9604. 0,
  9605. 0,
  9606. 0,
  9607. 0,
  9608. 0,
  9609. 1,
  9610. 0,
  9611. 0,
  9612. 0,
  9613. 0,
  9614. 0,
  9615. 1
  9616. ];
  9617. break;
  9618. case 'hueRotate':
  9619. var s = (a[0] * Math.PI) / 180;
  9620. a = [
  9621. zl(s, 0.213, 0.787, -0.213),
  9622. zl(s, 0.715, -0.715, -0.715),
  9623. zl(s, 0.072, -0.072, 0.928),
  9624. 0,
  9625. 0,
  9626. zl(s, 0.213, -0.213, 0.143),
  9627. zl(s, 0.715, 0.285, 0.14),
  9628. zl(s, 0.072, -0.072, -0.283),
  9629. 0,
  9630. 0,
  9631. zl(s, 0.213, -0.213, -0.787),
  9632. zl(s, 0.715, -0.715, 0.715),
  9633. zl(s, 0.072, 0.928, 0.072),
  9634. 0,
  9635. 0,
  9636. 0,
  9637. 0,
  9638. 0,
  9639. 1,
  9640. 0,
  9641. 0,
  9642. 0,
  9643. 0,
  9644. 0,
  9645. 1
  9646. ];
  9647. break;
  9648. case 'luminanceToAlpha':
  9649. a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2125, 0.7154, 0.0721, 0, 0, 0, 0, 0, 0, 1];
  9650. }
  9651. return (o.matrix = a), (o.includeOpacity = o.getAttribute('includeOpacity').hasValue()), o;
  9652. }
  9653. return (
  9654. Hn(n, [
  9655. {
  9656. key: 'apply',
  9657. value: function(t, e, r, n, i) {
  9658. for (
  9659. var o = this.includeOpacity, a = this.matrix, u = t.getImageData(0, 0, n, i), s = 0;
  9660. s < i;
  9661. s++
  9662. )
  9663. for (var c = 0; c < n; c++) {
  9664. var l = Il(u.data, c, s, n, 0, 0),
  9665. f = Il(u.data, c, s, n, 0, 1),
  9666. h = Il(u.data, c, s, n, 0, 2),
  9667. p = Il(u.data, c, s, n, 0, 3),
  9668. g = jl(a, 0, l) + jl(a, 1, f) + jl(a, 2, h) + jl(a, 3, p) + jl(a, 4, 1),
  9669. y = jl(a, 5, l) + jl(a, 6, f) + jl(a, 7, h) + jl(a, 8, p) + jl(a, 9, 1),
  9670. v = jl(a, 10, l) + jl(a, 11, f) + jl(a, 12, h) + jl(a, 13, p) + jl(a, 14, 1),
  9671. d = jl(a, 15, l) + jl(a, 16, f) + jl(a, 17, h) + jl(a, 18, p) + jl(a, 19, 1);
  9672. o && ((g = y = v = 0), (d *= p / 255)),
  9673. Ll(u.data, c, s, n, 0, 0, g),
  9674. Ll(u.data, c, s, n, 0, 1, y),
  9675. Ll(u.data, c, s, n, 0, 2, v),
  9676. Ll(u.data, c, s, n, 0, 3, d);
  9677. }
  9678. t.clearRect(0, 0, n, i), t.putImageData(u, 0, 0);
  9679. }
  9680. }
  9681. ]),
  9682. n
  9683. );
  9684. })(ss);
  9685. function Fl() {
  9686. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9687. if (Reflect.construct.sham) return !1;
  9688. if ('function' == typeof Proxy) return !0;
  9689. try {
  9690. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9691. } catch (t) {
  9692. return !1;
  9693. }
  9694. }
  9695. var _l = (function(t) {
  9696. cu(n, t);
  9697. var e,
  9698. r =
  9699. ((e = n),
  9700. function() {
  9701. var t,
  9702. r = uu(e);
  9703. if (Fl()) {
  9704. var n = uu(this).constructor;
  9705. t = Reflect.construct(r, arguments, n);
  9706. } else t = r.apply(this, arguments);
  9707. return au(this, t);
  9708. });
  9709. function n() {
  9710. var t;
  9711. return Un(this, n), ((t = r.apply(this, arguments)).type = 'mask'), t;
  9712. }
  9713. return (
  9714. Hn(n, [
  9715. {
  9716. key: 'apply',
  9717. value: function(t, e) {
  9718. var r = this.document,
  9719. i = this.getAttribute('x').getPixels('x'),
  9720. o = this.getAttribute('y').getPixels('y'),
  9721. a = this.getStyle('width').getPixels('x'),
  9722. u = this.getStyle('height').getPixels('y');
  9723. if (!a && !u) {
  9724. var s = new js();
  9725. this.children.forEach(function(e) {
  9726. s.addBoundingBox(e.getBoundingBox(t));
  9727. }),
  9728. (i = Math.floor(s.x1)),
  9729. (o = Math.floor(s.y1)),
  9730. (a = Math.floor(s.width)),
  9731. (u = Math.floor(s.height));
  9732. }
  9733. var c = this.removeStyles(e, n.ignoreStyles),
  9734. l = r.createCanvas(i + a, o + u),
  9735. f = l.getContext('2d');
  9736. r.screen.setDefaults(f),
  9737. this.renderChildren(f),
  9738. new Bl(r, {
  9739. nodeType: 1,
  9740. childNodes: [],
  9741. attributes: [
  9742. { nodeName: 'type', value: 'luminanceToAlpha' },
  9743. { nodeName: 'includeOpacity', value: 'true' }
  9744. ]
  9745. }).apply(f, 0, 0, i + a, o + u);
  9746. var h = r.createCanvas(i + a, o + u),
  9747. p = h.getContext('2d');
  9748. r.screen.setDefaults(p),
  9749. e.render(p),
  9750. (p.globalCompositeOperation = 'destination-in'),
  9751. (p.fillStyle = f.createPattern(l, 'no-repeat')),
  9752. p.fillRect(0, 0, i + a, o + u),
  9753. (t.fillStyle = p.createPattern(h, 'no-repeat')),
  9754. t.fillRect(0, 0, i + a, o + u),
  9755. this.restoreStyles(e, c);
  9756. }
  9757. },
  9758. { key: 'render', value: function(t) {} }
  9759. ]),
  9760. n
  9761. );
  9762. })(ss);
  9763. _l.ignoreStyles = ['mask', 'transform', 'clip-path'];
  9764. var $l = ot('Reflect', 'apply'),
  9765. Gl = Function.apply,
  9766. ql = !o(function() {
  9767. $l(function() {});
  9768. });
  9769. function Ul() {
  9770. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9771. if (Reflect.construct.sham) return !1;
  9772. if ('function' == typeof Proxy) return !0;
  9773. try {
  9774. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9775. } catch (t) {
  9776. return !1;
  9777. }
  9778. }
  9779. Dt(
  9780. { target: 'Reflect', stat: !0, forced: ql },
  9781. {
  9782. apply: function(t, e, r) {
  9783. return Vt(t), E(r), $l ? $l(t, e, r) : Gl.call(t, e, r);
  9784. }
  9785. }
  9786. ),
  9787. Dt(
  9788. { target: 'Reflect', stat: !0, sham: !Su },
  9789. {
  9790. getPrototypeOf: function(t) {
  9791. return Ru(E(t));
  9792. }
  9793. }
  9794. );
  9795. var Wl = function() {},
  9796. Hl = (function(t) {
  9797. cu(n, t);
  9798. var e,
  9799. r =
  9800. ((e = n),
  9801. function() {
  9802. var t,
  9803. r = uu(e);
  9804. if (Ul()) {
  9805. var n = uu(this).constructor;
  9806. t = Reflect.construct(r, arguments, n);
  9807. } else t = r.apply(this, arguments);
  9808. return au(this, t);
  9809. });
  9810. function n() {
  9811. var t;
  9812. return Un(this, n), ((t = r.apply(this, arguments)).type = 'clipPath'), t;
  9813. }
  9814. return (
  9815. Hn(n, [
  9816. {
  9817. key: 'apply',
  9818. value: function(t) {
  9819. var e = this.document,
  9820. r = Reflect.getPrototypeOf(t),
  9821. n = t.beginPath,
  9822. i = t.closePath;
  9823. r && ((r.beginPath = Wl), (r.closePath = Wl)),
  9824. Reflect.apply(n, t, []),
  9825. this.children.forEach(function(n) {
  9826. if (void 0 !== n.path) {
  9827. var o = void 0 !== n.elementTransform ? n.elementTransform() : null;
  9828. o || (o = us.fromElement(e, n)),
  9829. o && o.apply(t),
  9830. n.path(t),
  9831. r && (r.closePath = i),
  9832. o && o.unapply(t);
  9833. }
  9834. }),
  9835. Reflect.apply(i, t, []),
  9836. t.clip(),
  9837. r && ((r.beginPath = n), (r.closePath = i));
  9838. }
  9839. },
  9840. { key: 'render', value: function(t) {} }
  9841. ]),
  9842. n
  9843. );
  9844. })(ss);
  9845. function Xl() {
  9846. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9847. if (Reflect.construct.sham) return !1;
  9848. if ('function' == typeof Proxy) return !0;
  9849. try {
  9850. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9851. } catch (t) {
  9852. return !1;
  9853. }
  9854. }
  9855. var Yl = (function(t) {
  9856. cu(n, t);
  9857. var e,
  9858. r =
  9859. ((e = n),
  9860. function() {
  9861. var t,
  9862. r = uu(e);
  9863. if (Xl()) {
  9864. var n = uu(this).constructor;
  9865. t = Reflect.construct(r, arguments, n);
  9866. } else t = r.apply(this, arguments);
  9867. return au(this, t);
  9868. });
  9869. function n() {
  9870. var t;
  9871. return Un(this, n), ((t = r.apply(this, arguments)).type = 'filter'), t;
  9872. }
  9873. return (
  9874. Hn(n, [
  9875. {
  9876. key: 'apply',
  9877. value: function(t, e) {
  9878. var r = this.document,
  9879. i = this.children,
  9880. o = e.getBoundingBox(t);
  9881. if (o) {
  9882. var a = 0,
  9883. u = 0;
  9884. i.forEach(function(t) {
  9885. var e = t.extraFilterDistance || 0;
  9886. (a = Math.max(a, e)), (u = Math.max(u, e));
  9887. });
  9888. var s = Math.floor(o.width),
  9889. c = Math.floor(o.height),
  9890. l = s + 2 * a,
  9891. f = c + 2 * u;
  9892. if (!(l < 1 || f < 1)) {
  9893. var h = Math.floor(o.x),
  9894. p = Math.floor(o.y),
  9895. g = this.removeStyles(e, n.ignoreStyles),
  9896. y = r.createCanvas(l, f),
  9897. v = y.getContext('2d');
  9898. r.screen.setDefaults(v),
  9899. v.translate(-h + a, -p + u),
  9900. e.render(v),
  9901. i.forEach(function(t) {
  9902. 'function' == typeof t.apply && t.apply(v, 0, 0, l, f);
  9903. }),
  9904. t.drawImage(y, 0, 0, l, f, h - a, p - u, l, f),
  9905. this.restoreStyles(e, g);
  9906. }
  9907. }
  9908. }
  9909. },
  9910. { key: 'render', value: function(t) {} }
  9911. ]),
  9912. n
  9913. );
  9914. })(ss);
  9915. function Ql() {
  9916. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9917. if (Reflect.construct.sham) return !1;
  9918. if ('function' == typeof Proxy) return !0;
  9919. try {
  9920. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9921. } catch (t) {
  9922. return !1;
  9923. }
  9924. }
  9925. Yl.ignoreStyles = ['filter', 'transform', 'clip-path'];
  9926. var Zl = (function(t) {
  9927. cu(n, t);
  9928. var e,
  9929. r =
  9930. ((e = n),
  9931. function() {
  9932. var t,
  9933. r = uu(e);
  9934. if (Ql()) {
  9935. var n = uu(this).constructor;
  9936. t = Reflect.construct(r, arguments, n);
  9937. } else t = r.apply(this, arguments);
  9938. return au(this, t);
  9939. });
  9940. function n(t, e, i) {
  9941. var o;
  9942. return (
  9943. Un(this, n), ((o = r.call(this, t, e, i)).type = 'feDropShadow'), o.addStylesFromStyleDefinition(), o
  9944. );
  9945. }
  9946. return Hn(n, [{ key: 'apply', value: function(t, e, r, n, i) {} }]), n;
  9947. })(ss);
  9948. function Kl() {
  9949. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9950. if (Reflect.construct.sham) return !1;
  9951. if ('function' == typeof Proxy) return !0;
  9952. try {
  9953. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9954. } catch (t) {
  9955. return !1;
  9956. }
  9957. }
  9958. var Jl = (function(t) {
  9959. cu(n, t);
  9960. var e,
  9961. r =
  9962. ((e = n),
  9963. function() {
  9964. var t,
  9965. r = uu(e);
  9966. if (Kl()) {
  9967. var n = uu(this).constructor;
  9968. t = Reflect.construct(r, arguments, n);
  9969. } else t = r.apply(this, arguments);
  9970. return au(this, t);
  9971. });
  9972. function n() {
  9973. var t;
  9974. return Un(this, n), ((t = r.apply(this, arguments)).type = 'feMorphology'), t;
  9975. }
  9976. return Hn(n, [{ key: 'apply', value: function(t, e, r, n, i) {} }]), n;
  9977. })(ss);
  9978. function tf() {
  9979. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  9980. if (Reflect.construct.sham) return !1;
  9981. if ('function' == typeof Proxy) return !0;
  9982. try {
  9983. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  9984. } catch (t) {
  9985. return !1;
  9986. }
  9987. }
  9988. var ef = (function(t) {
  9989. cu(n, t);
  9990. var e,
  9991. r =
  9992. ((e = n),
  9993. function() {
  9994. var t,
  9995. r = uu(e);
  9996. if (tf()) {
  9997. var n = uu(this).constructor;
  9998. t = Reflect.construct(r, arguments, n);
  9999. } else t = r.apply(this, arguments);
  10000. return au(this, t);
  10001. });
  10002. function n() {
  10003. var t;
  10004. return Un(this, n), ((t = r.apply(this, arguments)).type = 'feComposite'), t;
  10005. }
  10006. return Hn(n, [{ key: 'apply', value: function(t, e, r, n, i) {} }]), n;
  10007. })(ss);
  10008. function rf(t) {
  10009. return (rf =
  10010. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  10011. ? function(t) {
  10012. return typeof t;
  10013. }
  10014. : function(t) {
  10015. return t && 'function' == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype
  10016. ? 'symbol'
  10017. : typeof t;
  10018. })(t);
  10019. }
  10020. var nf = [
  10021. 512,
  10022. 512,
  10023. 456,
  10024. 512,
  10025. 328,
  10026. 456,
  10027. 335,
  10028. 512,
  10029. 405,
  10030. 328,
  10031. 271,
  10032. 456,
  10033. 388,
  10034. 335,
  10035. 292,
  10036. 512,
  10037. 454,
  10038. 405,
  10039. 364,
  10040. 328,
  10041. 298,
  10042. 271,
  10043. 496,
  10044. 456,
  10045. 420,
  10046. 388,
  10047. 360,
  10048. 335,
  10049. 312,
  10050. 292,
  10051. 273,
  10052. 512,
  10053. 482,
  10054. 454,
  10055. 428,
  10056. 405,
  10057. 383,
  10058. 364,
  10059. 345,
  10060. 328,
  10061. 312,
  10062. 298,
  10063. 284,
  10064. 271,
  10065. 259,
  10066. 496,
  10067. 475,
  10068. 456,
  10069. 437,
  10070. 420,
  10071. 404,
  10072. 388,
  10073. 374,
  10074. 360,
  10075. 347,
  10076. 335,
  10077. 323,
  10078. 312,
  10079. 302,
  10080. 292,
  10081. 282,
  10082. 273,
  10083. 265,
  10084. 512,
  10085. 497,
  10086. 482,
  10087. 468,
  10088. 454,
  10089. 441,
  10090. 428,
  10091. 417,
  10092. 405,
  10093. 394,
  10094. 383,
  10095. 373,
  10096. 364,
  10097. 354,
  10098. 345,
  10099. 337,
  10100. 328,
  10101. 320,
  10102. 312,
  10103. 305,
  10104. 298,
  10105. 291,
  10106. 284,
  10107. 278,
  10108. 271,
  10109. 265,
  10110. 259,
  10111. 507,
  10112. 496,
  10113. 485,
  10114. 475,
  10115. 465,
  10116. 456,
  10117. 446,
  10118. 437,
  10119. 428,
  10120. 420,
  10121. 412,
  10122. 404,
  10123. 396,
  10124. 388,
  10125. 381,
  10126. 374,
  10127. 367,
  10128. 360,
  10129. 354,
  10130. 347,
  10131. 341,
  10132. 335,
  10133. 329,
  10134. 323,
  10135. 318,
  10136. 312,
  10137. 307,
  10138. 302,
  10139. 297,
  10140. 292,
  10141. 287,
  10142. 282,
  10143. 278,
  10144. 273,
  10145. 269,
  10146. 265,
  10147. 261,
  10148. 512,
  10149. 505,
  10150. 497,
  10151. 489,
  10152. 482,
  10153. 475,
  10154. 468,
  10155. 461,
  10156. 454,
  10157. 447,
  10158. 441,
  10159. 435,
  10160. 428,
  10161. 422,
  10162. 417,
  10163. 411,
  10164. 405,
  10165. 399,
  10166. 394,
  10167. 389,
  10168. 383,
  10169. 378,
  10170. 373,
  10171. 368,
  10172. 364,
  10173. 359,
  10174. 354,
  10175. 350,
  10176. 345,
  10177. 341,
  10178. 337,
  10179. 332,
  10180. 328,
  10181. 324,
  10182. 320,
  10183. 316,
  10184. 312,
  10185. 309,
  10186. 305,
  10187. 301,
  10188. 298,
  10189. 294,
  10190. 291,
  10191. 287,
  10192. 284,
  10193. 281,
  10194. 278,
  10195. 274,
  10196. 271,
  10197. 268,
  10198. 265,
  10199. 262,
  10200. 259,
  10201. 257,
  10202. 507,
  10203. 501,
  10204. 496,
  10205. 491,
  10206. 485,
  10207. 480,
  10208. 475,
  10209. 470,
  10210. 465,
  10211. 460,
  10212. 456,
  10213. 451,
  10214. 446,
  10215. 442,
  10216. 437,
  10217. 433,
  10218. 428,
  10219. 424,
  10220. 420,
  10221. 416,
  10222. 412,
  10223. 408,
  10224. 404,
  10225. 400,
  10226. 396,
  10227. 392,
  10228. 388,
  10229. 385,
  10230. 381,
  10231. 377,
  10232. 374,
  10233. 370,
  10234. 367,
  10235. 363,
  10236. 360,
  10237. 357,
  10238. 354,
  10239. 350,
  10240. 347,
  10241. 344,
  10242. 341,
  10243. 338,
  10244. 335,
  10245. 332,
  10246. 329,
  10247. 326,
  10248. 323,
  10249. 320,
  10250. 318,
  10251. 315,
  10252. 312,
  10253. 310,
  10254. 307,
  10255. 304,
  10256. 302,
  10257. 299,
  10258. 297,
  10259. 294,
  10260. 292,
  10261. 289,
  10262. 287,
  10263. 285,
  10264. 282,
  10265. 280,
  10266. 278,
  10267. 275,
  10268. 273,
  10269. 271,
  10270. 269,
  10271. 267,
  10272. 265,
  10273. 263,
  10274. 261,
  10275. 259
  10276. ],
  10277. of = [
  10278. 9,
  10279. 11,
  10280. 12,
  10281. 13,
  10282. 13,
  10283. 14,
  10284. 14,
  10285. 15,
  10286. 15,
  10287. 15,
  10288. 15,
  10289. 16,
  10290. 16,
  10291. 16,
  10292. 16,
  10293. 17,
  10294. 17,
  10295. 17,
  10296. 17,
  10297. 17,
  10298. 17,
  10299. 17,
  10300. 18,
  10301. 18,
  10302. 18,
  10303. 18,
  10304. 18,
  10305. 18,
  10306. 18,
  10307. 18,
  10308. 18,
  10309. 19,
  10310. 19,
  10311. 19,
  10312. 19,
  10313. 19,
  10314. 19,
  10315. 19,
  10316. 19,
  10317. 19,
  10318. 19,
  10319. 19,
  10320. 19,
  10321. 19,
  10322. 19,
  10323. 20,
  10324. 20,
  10325. 20,
  10326. 20,
  10327. 20,
  10328. 20,
  10329. 20,
  10330. 20,
  10331. 20,
  10332. 20,
  10333. 20,
  10334. 20,
  10335. 20,
  10336. 20,
  10337. 20,
  10338. 20,
  10339. 20,
  10340. 20,
  10341. 21,
  10342. 21,
  10343. 21,
  10344. 21,
  10345. 21,
  10346. 21,
  10347. 21,
  10348. 21,
  10349. 21,
  10350. 21,
  10351. 21,
  10352. 21,
  10353. 21,
  10354. 21,
  10355. 21,
  10356. 21,
  10357. 21,
  10358. 21,
  10359. 21,
  10360. 21,
  10361. 21,
  10362. 21,
  10363. 21,
  10364. 21,
  10365. 21,
  10366. 21,
  10367. 21,
  10368. 22,
  10369. 22,
  10370. 22,
  10371. 22,
  10372. 22,
  10373. 22,
  10374. 22,
  10375. 22,
  10376. 22,
  10377. 22,
  10378. 22,
  10379. 22,
  10380. 22,
  10381. 22,
  10382. 22,
  10383. 22,
  10384. 22,
  10385. 22,
  10386. 22,
  10387. 22,
  10388. 22,
  10389. 22,
  10390. 22,
  10391. 22,
  10392. 22,
  10393. 22,
  10394. 22,
  10395. 22,
  10396. 22,
  10397. 22,
  10398. 22,
  10399. 22,
  10400. 22,
  10401. 22,
  10402. 22,
  10403. 22,
  10404. 22,
  10405. 23,
  10406. 23,
  10407. 23,
  10408. 23,
  10409. 23,
  10410. 23,
  10411. 23,
  10412. 23,
  10413. 23,
  10414. 23,
  10415. 23,
  10416. 23,
  10417. 23,
  10418. 23,
  10419. 23,
  10420. 23,
  10421. 23,
  10422. 23,
  10423. 23,
  10424. 23,
  10425. 23,
  10426. 23,
  10427. 23,
  10428. 23,
  10429. 23,
  10430. 23,
  10431. 23,
  10432. 23,
  10433. 23,
  10434. 23,
  10435. 23,
  10436. 23,
  10437. 23,
  10438. 23,
  10439. 23,
  10440. 23,
  10441. 23,
  10442. 23,
  10443. 23,
  10444. 23,
  10445. 23,
  10446. 23,
  10447. 23,
  10448. 23,
  10449. 23,
  10450. 23,
  10451. 23,
  10452. 23,
  10453. 23,
  10454. 23,
  10455. 23,
  10456. 23,
  10457. 23,
  10458. 23,
  10459. 24,
  10460. 24,
  10461. 24,
  10462. 24,
  10463. 24,
  10464. 24,
  10465. 24,
  10466. 24,
  10467. 24,
  10468. 24,
  10469. 24,
  10470. 24,
  10471. 24,
  10472. 24,
  10473. 24,
  10474. 24,
  10475. 24,
  10476. 24,
  10477. 24,
  10478. 24,
  10479. 24,
  10480. 24,
  10481. 24,
  10482. 24,
  10483. 24,
  10484. 24,
  10485. 24,
  10486. 24,
  10487. 24,
  10488. 24,
  10489. 24,
  10490. 24,
  10491. 24,
  10492. 24,
  10493. 24,
  10494. 24,
  10495. 24,
  10496. 24,
  10497. 24,
  10498. 24,
  10499. 24,
  10500. 24,
  10501. 24,
  10502. 24,
  10503. 24,
  10504. 24,
  10505. 24,
  10506. 24,
  10507. 24,
  10508. 24,
  10509. 24,
  10510. 24,
  10511. 24,
  10512. 24,
  10513. 24,
  10514. 24,
  10515. 24,
  10516. 24,
  10517. 24,
  10518. 24,
  10519. 24,
  10520. 24,
  10521. 24,
  10522. 24,
  10523. 24,
  10524. 24,
  10525. 24,
  10526. 24,
  10527. 24,
  10528. 24,
  10529. 24,
  10530. 24,
  10531. 24,
  10532. 24
  10533. ];
  10534. function af(t, e, r, n, i, o) {
  10535. if (!(isNaN(o) || o < 1)) {
  10536. o |= 0;
  10537. var a = (function(t, e, r, n, i) {
  10538. if (
  10539. ('string' == typeof t && (t = document.getElementById(t)),
  10540. !t || 'object' !== rf(t) || !('getContext' in t))
  10541. )
  10542. throw new TypeError('Expecting canvas with `getContext` method in processCanvasRGB(A) calls!');
  10543. var o = t.getContext('2d');
  10544. try {
  10545. return o.getImageData(e, r, n, i);
  10546. } catch (t) {
  10547. throw new Error('unable to access image data: ' + t);
  10548. }
  10549. })(t, e, r, n, i);
  10550. (a = (function(t, e, r, n, i, o) {
  10551. var a,
  10552. u,
  10553. s,
  10554. c,
  10555. l,
  10556. f,
  10557. h,
  10558. p,
  10559. g,
  10560. y,
  10561. v,
  10562. d,
  10563. m,
  10564. x,
  10565. b,
  10566. w,
  10567. S,
  10568. k,
  10569. P,
  10570. R,
  10571. A,
  10572. E,
  10573. C,
  10574. T,
  10575. O,
  10576. M = t.data,
  10577. D = 2 * o + 1,
  10578. V = n - 1,
  10579. N = i - 1,
  10580. I = o + 1,
  10581. L = (I * (I + 1)) / 2,
  10582. j = new uf(),
  10583. z = j;
  10584. for (s = 1; s < D; s++) (z = z.next = new uf()), s === I && (O = z);
  10585. z.next = j;
  10586. var B = null,
  10587. F = null;
  10588. h = f = 0;
  10589. var _ = nf[o],
  10590. $ = of[o];
  10591. for (u = 0; u < i; u++) {
  10592. for (
  10593. w = S = k = P = p = g = y = v = 0,
  10594. d = I * (R = M[f]),
  10595. m = I * (A = M[f + 1]),
  10596. x = I * (E = M[f + 2]),
  10597. b = I * (C = M[f + 3]),
  10598. p += L * R,
  10599. g += L * A,
  10600. y += L * E,
  10601. v += L * C,
  10602. z = j,
  10603. s = 0;
  10604. s < I;
  10605. s++
  10606. )
  10607. (z.r = R), (z.g = A), (z.b = E), (z.a = C), (z = z.next);
  10608. for (s = 1; s < I; s++)
  10609. (c = f + ((V < s ? V : s) << 2)),
  10610. (p += (z.r = R = M[c]) * (T = I - s)),
  10611. (g += (z.g = A = M[c + 1]) * T),
  10612. (y += (z.b = E = M[c + 2]) * T),
  10613. (v += (z.a = C = M[c + 3]) * T),
  10614. (w += R),
  10615. (S += A),
  10616. (k += E),
  10617. (P += C),
  10618. (z = z.next);
  10619. for (B = j, F = O, a = 0; a < n; a++)
  10620. (M[f + 3] = C = (v * _) >> $),
  10621. 0 !== C
  10622. ? ((C = 255 / C),
  10623. (M[f] = ((p * _) >> $) * C),
  10624. (M[f + 1] = ((g * _) >> $) * C),
  10625. (M[f + 2] = ((y * _) >> $) * C))
  10626. : (M[f] = M[f + 1] = M[f + 2] = 0),
  10627. (p -= d),
  10628. (g -= m),
  10629. (y -= x),
  10630. (v -= b),
  10631. (d -= B.r),
  10632. (m -= B.g),
  10633. (x -= B.b),
  10634. (b -= B.a),
  10635. (c = (h + ((c = a + o + 1) < V ? c : V)) << 2),
  10636. (w += B.r = M[c]),
  10637. (S += B.g = M[c + 1]),
  10638. (k += B.b = M[c + 2]),
  10639. (P += B.a = M[c + 3]),
  10640. (p += w),
  10641. (g += S),
  10642. (y += k),
  10643. (v += P),
  10644. (B = B.next),
  10645. (d += R = F.r),
  10646. (m += A = F.g),
  10647. (x += E = F.b),
  10648. (b += C = F.a),
  10649. (w -= R),
  10650. (S -= A),
  10651. (k -= E),
  10652. (P -= C),
  10653. (F = F.next),
  10654. (f += 4);
  10655. h += n;
  10656. }
  10657. for (a = 0; a < n; a++) {
  10658. for (
  10659. S = k = P = w = g = y = v = p = 0,
  10660. d = I * (R = M[(f = a << 2)]),
  10661. m = I * (A = M[f + 1]),
  10662. x = I * (E = M[f + 2]),
  10663. b = I * (C = M[f + 3]),
  10664. p += L * R,
  10665. g += L * A,
  10666. y += L * E,
  10667. v += L * C,
  10668. z = j,
  10669. s = 0;
  10670. s < I;
  10671. s++
  10672. )
  10673. (z.r = R), (z.g = A), (z.b = E), (z.a = C), (z = z.next);
  10674. for (l = n, s = 1; s <= o; s++)
  10675. (f = (l + a) << 2),
  10676. (p += (z.r = R = M[f]) * (T = I - s)),
  10677. (g += (z.g = A = M[f + 1]) * T),
  10678. (y += (z.b = E = M[f + 2]) * T),
  10679. (v += (z.a = C = M[f + 3]) * T),
  10680. (w += R),
  10681. (S += A),
  10682. (k += E),
  10683. (P += C),
  10684. (z = z.next),
  10685. s < N && (l += n);
  10686. for (f = a, B = j, F = O, u = 0; u < i; u++)
  10687. (M[(c = f << 2) + 3] = C = (v * _) >> $),
  10688. C > 0
  10689. ? ((C = 255 / C),
  10690. (M[c] = ((p * _) >> $) * C),
  10691. (M[c + 1] = ((g * _) >> $) * C),
  10692. (M[c + 2] = ((y * _) >> $) * C))
  10693. : (M[c] = M[c + 1] = M[c + 2] = 0),
  10694. (p -= d),
  10695. (g -= m),
  10696. (y -= x),
  10697. (v -= b),
  10698. (d -= B.r),
  10699. (m -= B.g),
  10700. (x -= B.b),
  10701. (b -= B.a),
  10702. (c = (a + ((c = u + I) < N ? c : N) * n) << 2),
  10703. (p += w += B.r = M[c]),
  10704. (g += S += B.g = M[c + 1]),
  10705. (y += k += B.b = M[c + 2]),
  10706. (v += P += B.a = M[c + 3]),
  10707. (B = B.next),
  10708. (d += R = F.r),
  10709. (m += A = F.g),
  10710. (x += E = F.b),
  10711. (b += C = F.a),
  10712. (w -= R),
  10713. (S -= A),
  10714. (k -= E),
  10715. (P -= C),
  10716. (F = F.next),
  10717. (f += n);
  10718. }
  10719. return t;
  10720. })(a, 0, 0, n, i, o)),
  10721. t.getContext('2d').putImageData(a, e, r);
  10722. }
  10723. }
  10724. var uf = function t() {
  10725. !(function(t, e) {
  10726. if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function');
  10727. })(this, t),
  10728. (this.r = 0),
  10729. (this.g = 0),
  10730. (this.b = 0),
  10731. (this.a = 0),
  10732. (this.next = null);
  10733. };
  10734. function sf() {
  10735. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  10736. if (Reflect.construct.sham) return !1;
  10737. if ('function' == typeof Proxy) return !0;
  10738. try {
  10739. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  10740. } catch (t) {
  10741. return !1;
  10742. }
  10743. }
  10744. var cf = (function(t) {
  10745. cu(n, t);
  10746. var e,
  10747. r =
  10748. ((e = n),
  10749. function() {
  10750. var t,
  10751. r = uu(e);
  10752. if (sf()) {
  10753. var n = uu(this).constructor;
  10754. t = Reflect.construct(r, arguments, n);
  10755. } else t = r.apply(this, arguments);
  10756. return au(this, t);
  10757. });
  10758. function n(t, e, i) {
  10759. var o;
  10760. return (
  10761. Un(this, n),
  10762. ((o = r.call(this, t, e, i)).type = 'feGaussianBlur'),
  10763. (o.blurRadius = Math.floor(o.getAttribute('stdDeviation').getNumber())),
  10764. (o.extraFilterDistance = o.blurRadius),
  10765. o
  10766. );
  10767. }
  10768. return (
  10769. Hn(n, [
  10770. {
  10771. key: 'apply',
  10772. value: function(t, e, r, n, i) {
  10773. var o = this.document,
  10774. a = this.blurRadius,
  10775. u = o.window ? o.window.document.body : null,
  10776. s = t.canvas;
  10777. (s.id = o.getUniqueId()),
  10778. u && ((s.style.display = 'none'), u.appendChild(s)),
  10779. af(s, e, r, n, i, a),
  10780. u && u.removeChild(s);
  10781. }
  10782. }
  10783. ]),
  10784. n
  10785. );
  10786. })(ss);
  10787. function lf() {
  10788. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  10789. if (Reflect.construct.sham) return !1;
  10790. if ('function' == typeof Proxy) return !0;
  10791. try {
  10792. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  10793. } catch (t) {
  10794. return !1;
  10795. }
  10796. }
  10797. var ff = (function(t) {
  10798. cu(n, t);
  10799. var e,
  10800. r =
  10801. ((e = n),
  10802. function() {
  10803. var t,
  10804. r = uu(e);
  10805. if (lf()) {
  10806. var n = uu(this).constructor;
  10807. t = Reflect.construct(r, arguments, n);
  10808. } else t = r.apply(this, arguments);
  10809. return au(this, t);
  10810. });
  10811. function n() {
  10812. var t;
  10813. return Un(this, n), ((t = r.apply(this, arguments)).type = 'title'), t;
  10814. }
  10815. return n;
  10816. })(ss);
  10817. function hf() {
  10818. if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
  10819. if (Reflect.construct.sham) return !1;
  10820. if ('function' == typeof Proxy) return !0;
  10821. try {
  10822. return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
  10823. } catch (t) {
  10824. return !1;
  10825. }
  10826. }
  10827. var pf = (function(t) {
  10828. cu(n, t);
  10829. var e,
  10830. r =
  10831. ((e = n),
  10832. function() {
  10833. var t,
  10834. r = uu(e);
  10835. if (hf()) {
  10836. var n = uu(this).constructor;
  10837. t = Reflect.construct(r, arguments, n);
  10838. } else t = r.apply(this, arguments);
  10839. return au(this, t);
  10840. });
  10841. function n() {
  10842. var t;
  10843. return Un(this, n), ((t = r.apply(this, arguments)).type = 'desc'), t;
  10844. }
  10845. return n;
  10846. })(ss),
  10847. gf = {
  10848. svg: Qs,
  10849. rect: Ks,
  10850. circle: tc,
  10851. ellipse: rc,
  10852. line: ic,
  10853. polyline: ac,
  10854. polygon: sc,
  10855. path: Xs,
  10856. pattern: fc,
  10857. marker: pc,
  10858. defs: yc,
  10859. linearGradient: wc,
  10860. radialGradient: kc,
  10861. stop: Rc,
  10862. animate: jc,
  10863. animateColor: Bc,
  10864. animateTransform: _c,
  10865. font: il,
  10866. 'font-face': al,
  10867. 'missing-glyph': sl,
  10868. glyph: ll,
  10869. text: _s,
  10870. tspan: Gs,
  10871. tref: hl,
  10872. a: gl,
  10873. textPath: Pl,
  10874. image: Al,
  10875. g: dc,
  10876. symbol: Cl,
  10877. style: Ml,
  10878. use: Vl,
  10879. mask: _l,
  10880. clipPath: Hl,
  10881. filter: Yl,
  10882. feDropShadow: Zl,
  10883. feMorphology: Jl,
  10884. feComposite: ef,
  10885. feColorMatrix: Bl,
  10886. feGaussianBlur: cf,
  10887. title: ff,
  10888. desc: pf
  10889. };
  10890. function yf(t, e) {
  10891. var r = Object.keys(t);
  10892. if (Object.getOwnPropertySymbols) {
  10893. var n = Object.getOwnPropertySymbols(t);
  10894. e &&
  10895. (n = n.filter(function(e) {
  10896. return Object.getOwnPropertyDescriptor(t, e).enumerable;
  10897. })),
  10898. r.push.apply(r, n);
  10899. }
  10900. return r;
  10901. }
  10902. function vf() {
  10903. return (vf = Gn(
  10904. _n.mark(function t(e) {
  10905. var r,
  10906. n,
  10907. i = arguments;
  10908. return _n.wrap(function(t) {
  10909. for (;;)
  10910. switch ((t.prev = t.next)) {
  10911. case 0:
  10912. return (
  10913. (r = i.length > 1 && void 0 !== i[1] && i[1]),
  10914. (n = document.createElement('img')),
  10915. r && (n.crossOrigin = 'Anonymous'),
  10916. t.abrupt(
  10917. 'return',
  10918. new Promise(function(t, r) {
  10919. (n.onload = function() {
  10920. t(n);
  10921. }),
  10922. (n.onerror = function() {
  10923. r();
  10924. }),
  10925. (n.src = e);
  10926. })
  10927. )
  10928. );
  10929. case 4:
  10930. case 'end':
  10931. return t.stop();
  10932. }
  10933. }, t);
  10934. })
  10935. )).apply(this, arguments);
  10936. }
  10937. var df = (function() {
  10938. function t(e) {
  10939. var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  10940. n = r.rootEmSize,
  10941. i = void 0 === n ? 12 : n,
  10942. o = r.emSize,
  10943. a = void 0 === o ? 12 : o,
  10944. u = r.createCanvas,
  10945. s = void 0 === u ? t.createCanvas : u,
  10946. c = r.createImage,
  10947. l = void 0 === c ? t.createImage : c,
  10948. f = r.anonymousCrossOrigin;
  10949. Un(this, t),
  10950. (this.canvg = e),
  10951. (this.definitions = {}),
  10952. (this.styles = {}),
  10953. (this.stylesSpecificity = {}),
  10954. (this.images = []),
  10955. (this.fonts = []),
  10956. (this.emSizeStack = []),
  10957. (this.uniqueId = 0),
  10958. (this.screen = e.screen),
  10959. (this.rootEmSize = i),
  10960. (this.emSize = a),
  10961. (this.createCanvas = s),
  10962. (this.createImage = this.bindCreateImage(l, f)),
  10963. this.screen.wait(this.isImagesLoaded.bind(this)),
  10964. this.screen.wait(this.isFontsLoaded.bind(this));
  10965. }
  10966. return (
  10967. Hn(t, [
  10968. {
  10969. key: 'bindCreateImage',
  10970. value: function(t, e) {
  10971. return 'boolean' == typeof e
  10972. ? function(r, n) {
  10973. return t(r, 'boolean' == typeof n ? n : e);
  10974. }
  10975. : t;
  10976. }
  10977. },
  10978. {
  10979. key: 'popEmSize',
  10980. value: function() {
  10981. this.emSizeStack.pop();
  10982. }
  10983. },
  10984. {
  10985. key: 'getUniqueId',
  10986. value: function() {
  10987. return 'canvg'.concat(++this.uniqueId);
  10988. }
  10989. },
  10990. {
  10991. key: 'isImagesLoaded',
  10992. value: function() {
  10993. return this.images.every(function(t) {
  10994. return t.loaded;
  10995. });
  10996. }
  10997. },
  10998. {
  10999. key: 'isFontsLoaded',
  11000. value: function() {
  11001. return this.fonts.every(function(t) {
  11002. return t.loaded;
  11003. });
  11004. }
  11005. },
  11006. {
  11007. key: 'createDocumentElement',
  11008. value: function(t) {
  11009. var e = this.createElement(t.documentElement);
  11010. return (e.root = !0), e.addStylesFromStyleDefinition(), (this.documentElement = e), e;
  11011. }
  11012. },
  11013. {
  11014. key: 'createElement',
  11015. value: function(e) {
  11016. var r = e.nodeName.replace(/^[^:]+:/, ''),
  11017. n = t.elementTypes[r];
  11018. return void 0 !== n ? new n(this, e) : new ls(this, e);
  11019. }
  11020. },
  11021. {
  11022. key: 'createTextNode',
  11023. value: function(t) {
  11024. return new Us(this, t);
  11025. }
  11026. },
  11027. {
  11028. key: 'setViewBox',
  11029. value: function(t) {
  11030. this.screen.setViewBox(
  11031. (function(t) {
  11032. for (var e = 1; e < arguments.length; e++) {
  11033. var r = null != arguments[e] ? arguments[e] : {};
  11034. e % 2
  11035. ? yf(Object(r), !0).forEach(function(e) {
  11036. qn(t, e, r[e]);
  11037. })
  11038. : Object.getOwnPropertyDescriptors
  11039. ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
  11040. : yf(Object(r)).forEach(function(e) {
  11041. Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e));
  11042. });
  11043. }
  11044. return t;
  11045. })({ document: this }, t)
  11046. );
  11047. }
  11048. },
  11049. {
  11050. key: 'window',
  11051. get: function() {
  11052. return this.screen.window;
  11053. }
  11054. },
  11055. {
  11056. key: 'fetch',
  11057. get: function() {
  11058. return this.screen.fetch;
  11059. }
  11060. },
  11061. {
  11062. key: 'ctx',
  11063. get: function() {
  11064. return this.screen.ctx;
  11065. }
  11066. },
  11067. {
  11068. key: 'emSize',
  11069. get: function() {
  11070. var t = this.emSizeStack;
  11071. return t[t.length - 1];
  11072. },
  11073. set: function(t) {
  11074. this.emSizeStack.push(t);
  11075. }
  11076. }
  11077. ]),
  11078. t
  11079. );
  11080. })();
  11081. function mf(t, e) {
  11082. var r = Object.keys(t);
  11083. if (Object.getOwnPropertySymbols) {
  11084. var n = Object.getOwnPropertySymbols(t);
  11085. e &&
  11086. (n = n.filter(function(e) {
  11087. return Object.getOwnPropertyDescriptor(t, e).enumerable;
  11088. })),
  11089. r.push.apply(r, n);
  11090. }
  11091. return r;
  11092. }
  11093. function xf(t) {
  11094. for (var e = 1; e < arguments.length; e++) {
  11095. var r = null != arguments[e] ? arguments[e] : {};
  11096. e % 2
  11097. ? mf(Object(r), !0).forEach(function(e) {
  11098. qn(t, e, r[e]);
  11099. })
  11100. : Object.getOwnPropertyDescriptors
  11101. ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
  11102. : mf(Object(r)).forEach(function(e) {
  11103. Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e));
  11104. });
  11105. }
  11106. return t;
  11107. }
  11108. (df.createCanvas = function(t, e) {
  11109. var r = document.createElement('canvas');
  11110. return (r.width = t), (r.height = e), r;
  11111. }),
  11112. (df.createImage = function(t) {
  11113. return vf.apply(this, arguments);
  11114. }),
  11115. (df.elementTypes = gf);
  11116. var bf = (function() {
  11117. function t(e, r) {
  11118. var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
  11119. Un(this, t), (this.parser = new Ua(n)), (this.screen = new $a(e, n)), (this.options = n);
  11120. var i = new df(this, n),
  11121. o = i.createDocumentElement(r);
  11122. (this.document = i), (this.documentElement = o);
  11123. }
  11124. var e, r;
  11125. return (
  11126. Hn(
  11127. t,
  11128. [
  11129. {
  11130. key: 'fork',
  11131. value: function(e, r) {
  11132. var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
  11133. return t.from(e, r, xf({}, this.options, {}, n));
  11134. }
  11135. },
  11136. {
  11137. key: 'forkString',
  11138. value: function(e, r) {
  11139. var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
  11140. return t.fromString(e, r, xf({}, this.options, {}, n));
  11141. }
  11142. },
  11143. {
  11144. key: 'ready',
  11145. value: function() {
  11146. return this.screen.ready();
  11147. }
  11148. },
  11149. {
  11150. key: 'isReady',
  11151. value: function() {
  11152. return this.screen.isReady();
  11153. }
  11154. },
  11155. {
  11156. key: 'render',
  11157. value:
  11158. ((r = Gn(
  11159. _n.mark(function t() {
  11160. var e,
  11161. r = arguments;
  11162. return _n.wrap(
  11163. function(t) {
  11164. for (;;)
  11165. switch ((t.prev = t.next)) {
  11166. case 0:
  11167. return (
  11168. (e = r.length > 0 && void 0 !== r[0] ? r[0] : {}),
  11169. this.start(
  11170. xf(
  11171. {
  11172. enableRedraw: !0,
  11173. ignoreAnimation: !0,
  11174. ignoreMouse: !0
  11175. },
  11176. e
  11177. )
  11178. ),
  11179. (t.next = 4),
  11180. this.ready()
  11181. );
  11182. case 4:
  11183. this.stop();
  11184. case 5:
  11185. case 'end':
  11186. return t.stop();
  11187. }
  11188. },
  11189. t,
  11190. this
  11191. );
  11192. })
  11193. )),
  11194. function() {
  11195. return r.apply(this, arguments);
  11196. })
  11197. },
  11198. {
  11199. key: 'start',
  11200. value: function() {
  11201. var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
  11202. e = this.documentElement,
  11203. r = this.screen,
  11204. n = this.options;
  11205. r.start(e, xf({ enableRedraw: !0 }, n, {}, t));
  11206. }
  11207. },
  11208. {
  11209. key: 'stop',
  11210. value: function() {
  11211. this.screen.stop();
  11212. }
  11213. },
  11214. {
  11215. key: 'resize',
  11216. value: function(t) {
  11217. var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : t,
  11218. r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
  11219. this.documentElement.resize(t, e, r);
  11220. }
  11221. }
  11222. ],
  11223. [
  11224. {
  11225. key: 'from',
  11226. value:
  11227. ((e = Gn(
  11228. _n.mark(function e(r, n) {
  11229. var i,
  11230. o,
  11231. a,
  11232. u = arguments;
  11233. return _n.wrap(function(e) {
  11234. for (;;)
  11235. switch ((e.prev = e.next)) {
  11236. case 0:
  11237. return (
  11238. (i = u.length > 2 && void 0 !== u[2] ? u[2] : {}),
  11239. (o = new Ua(i)),
  11240. (e.next = 4),
  11241. o.parse(n)
  11242. );
  11243. case 4:
  11244. return (a = e.sent), e.abrupt('return', new t(r, a, i));
  11245. case 6:
  11246. case 'end':
  11247. return e.stop();
  11248. }
  11249. }, e);
  11250. })
  11251. )),
  11252. function(t, r) {
  11253. return e.apply(this, arguments);
  11254. })
  11255. },
  11256. {
  11257. key: 'fromString',
  11258. value: function(e, r) {
  11259. var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
  11260. i = new Ua(n),
  11261. o = i.parseFromString(r);
  11262. return new t(e, o, n);
  11263. }
  11264. }
  11265. ]
  11266. ),
  11267. t
  11268. );
  11269. })();
  11270. var wf = Object.freeze({
  11271. __proto__: null,
  11272. offscreen: function() {
  11273. var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
  11274. e = t.DOMParser,
  11275. r = {
  11276. window: null,
  11277. ignoreAnimation: !0,
  11278. ignoreMouse: !0,
  11279. DOMParser: e,
  11280. createCanvas: function(t, e) {
  11281. return new OffscreenCanvas(t, e);
  11282. },
  11283. createImage: function(t) {
  11284. return Gn(
  11285. _n.mark(function e() {
  11286. var r, n, i;
  11287. return _n.wrap(function(e) {
  11288. for (;;)
  11289. switch ((e.prev = e.next)) {
  11290. case 0:
  11291. return (e.next = 2), fetch(t);
  11292. case 2:
  11293. return (r = e.sent), (e.next = 5), r.blob();
  11294. case 5:
  11295. return (n = e.sent), (e.next = 8), createImageBitmap(n);
  11296. case 8:
  11297. return (i = e.sent), e.abrupt('return', i);
  11298. case 10:
  11299. case 'end':
  11300. return e.stop();
  11301. }
  11302. }, e);
  11303. })
  11304. )();
  11305. }
  11306. };
  11307. return ('undefined' == typeof DOMParser && void 0 !== e) || Reflect.deleteProperty(r, 'DOMParser'), r;
  11308. },
  11309. node: function(t) {
  11310. var e = t.DOMParser,
  11311. r = t.canvas;
  11312. return {
  11313. window: null,
  11314. ignoreAnimation: !0,
  11315. ignoreMouse: !0,
  11316. DOMParser: e,
  11317. fetch: t.fetch,
  11318. createCanvas: r.createCanvas,
  11319. createImage: r.loadImage
  11320. };
  11321. }
  11322. });
  11323. (t.AElement = gl),
  11324. (t.AnimateColorElement = Bc),
  11325. (t.AnimateElement = jc),
  11326. (t.AnimateTransformElement = _c),
  11327. (t.BoundingBox = js),
  11328. (t.CB1 = Pr),
  11329. (t.CB2 = Rr),
  11330. (t.CB3 = Ar),
  11331. (t.CB4 = Er),
  11332. (t.Canvg = bf),
  11333. (t.CircleElement = tc),
  11334. (t.ClipPathElement = Hl),
  11335. (t.DefsElement = yc),
  11336. (t.DescElement = pf),
  11337. (t.Document = df),
  11338. (t.Element = ss),
  11339. (t.EllipseElement = rc),
  11340. (t.FeColorMatrixElement = Bl),
  11341. (t.FeCompositeElement = ef),
  11342. (t.FeDropShadowElement = Zl),
  11343. (t.FeGaussianBlurElement = cf),
  11344. (t.FeMorphologyElement = Jl),
  11345. (t.FilterElement = Yl),
  11346. (t.Font = ks),
  11347. (t.FontElement = il),
  11348. (t.FontFaceElement = al),
  11349. (t.GElement = dc),
  11350. (t.GlyphElement = ll),
  11351. (t.GradientElement = xc),
  11352. (t.ImageElement = Al),
  11353. (t.LineElement = ic),
  11354. (t.LinearGradientElement = wc),
  11355. (t.MarkerElement = pc),
  11356. (t.MaskElement = _l),
  11357. (t.Matrix = ts),
  11358. (t.MissingGlyphElement = sl),
  11359. (t.Mouse = Ba),
  11360. (t.PSEUDO_ZERO = 1e-8),
  11361. (t.Parser = Ua),
  11362. (t.PathElement = Xs),
  11363. (t.PathParser = Ws),
  11364. (t.PatternElement = fc),
  11365. (t.Point = za),
  11366. (t.PolygonElement = sc),
  11367. (t.PolylineElement = ac),
  11368. (t.Property = La),
  11369. (t.QB1 = Cr),
  11370. (t.QB2 = Tr),
  11371. (t.QB3 = Or),
  11372. (t.RadialGradientElement = kc),
  11373. (t.RectElement = Ks),
  11374. (t.RenderedElement = Bs),
  11375. (t.Rotate = Ku),
  11376. (t.SVGElement = Qs),
  11377. (t.SVGFontLoader = Tl),
  11378. (t.Scale = Ju),
  11379. (t.Screen = $a),
  11380. (t.Skew = rs),
  11381. (t.SkewX = is),
  11382. (t.SkewY = as),
  11383. (t.StopElement = Rc),
  11384. (t.StyleElement = Ml),
  11385. (t.SymbolElement = Cl),
  11386. (t.TRefElement = hl),
  11387. (t.TSpanElement = Gs),
  11388. (t.TextElement = _s),
  11389. (t.TextPathElement = Pl),
  11390. (t.TitleElement = ff),
  11391. (t.Transform = us),
  11392. (t.Translate = Zu),
  11393. (t.UnknownElement = ls),
  11394. (t.UseElement = Vl),
  11395. (t.ViewPort = ja),
  11396. (t.compressSpaces = Xe),
  11397. (t.default = bf),
  11398. (t.getSelectorSpecificity = br),
  11399. (t.normalizeAttributeName = Je),
  11400. (t.normalizeColor = er),
  11401. (t.parseExternalUrl = tr),
  11402. (t.presets = wf),
  11403. (t.toNumbers = Ze),
  11404. (t.trimLeft = Ye),
  11405. (t.trimRight = Qe),
  11406. (t.vectorMagnitude = wr),
  11407. (t.vectorsAngle = kr),
  11408. (t.vectorsRatio = Sr),
  11409. Object.defineProperty(t, '__esModule', { value: !0 });
  11410. });
  11411. //# sourceMappingURL=umd.js.map