eta_comp.js 1.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908
  1. import { ref as Le, reactive as k0, nextTick as fs, openBlock as Je, createElementBlock as qe, normalizeStyle as Tr, createElementVNode as lr, toDisplayString as mn, unref as A0, createCommentVNode as Jn, createTextVNode as zp, Fragment as eh, renderList as ih, normalizeClass as T0, defineCustomElement as Yp } from "vue";
  2. const gs = {
  3. //图表配置
  4. chart: {
  5. spacingTop: 30,
  6. backgroundColor: "rgba(0,0,0,0)"
  7. },
  8. title: {
  9. enabled: !1
  10. },
  11. exporting: {
  12. enabled: !1
  13. },
  14. boost: {
  15. useGPUTranslations: !0
  16. },
  17. //默认颜色配置
  18. colors: [
  19. "#00f",
  20. "#f00",
  21. "#999",
  22. "#000",
  23. "#7cb5ec",
  24. "#90ed7d",
  25. "#f7a35c",
  26. "#8085e9",
  27. "#f15c80",
  28. "#e4d354",
  29. "#2b908f",
  30. "#f45b5b",
  31. "#91e8e1"
  32. ],
  33. //版权信息
  34. credits: { enabled: !1 },
  35. //数据列通用配置
  36. plotOptions: {
  37. series: {
  38. turboThreshold: 0,
  39. //不限制数据点个数
  40. boostThreshold: 0,
  41. dataGrouping: {
  42. enabled: !1
  43. },
  44. //取消数据大自动数据合并
  45. animation: {
  46. duration: 1e3
  47. }
  48. },
  49. areaspline: {
  50. lineWidth: 1,
  51. stacking: "normal",
  52. marker: {
  53. enabled: !1
  54. }
  55. // fillOpacity: 0.5,
  56. },
  57. column: {
  58. pointPadding: 0.05,
  59. stacking: "normal"
  60. },
  61. scatter: {
  62. turboThreshold: 0,
  63. marker: {
  64. symbol: "circle",
  65. radius: 5,
  66. states: {
  67. hover: {
  68. enabled: !0
  69. }
  70. }
  71. },
  72. states: {
  73. hover: {
  74. marker: {
  75. enabled: !0
  76. }
  77. }
  78. }
  79. }
  80. },
  81. //范围选择器
  82. rangeSelector: {
  83. enabled: !1,
  84. selected: 2
  85. },
  86. //悬浮提示框
  87. tooltip: {
  88. split: !1,
  89. shared: !0,
  90. dateTimeLabelFormats: {
  91. // 时间格式化字符
  92. day: "%Y/%m/%d",
  93. week: "%Y/%m",
  94. month: "%Y/%m",
  95. year: "%Y/%m"
  96. },
  97. xDateFormat: "%Y/%m/%d",
  98. className: "chart-tooltips-box"
  99. // formatter:function(e){
  100. // return `<p>${this.x}</p><p>aaa</p>`
  101. // // return e
  102. // }
  103. // outside: true,
  104. // valueDecimals: 4,
  105. },
  106. //图例
  107. legend: {
  108. enabled: !0,
  109. verticalAlign: "top",
  110. margin: 3
  111. // layout: 'vertical'
  112. },
  113. //滚动条
  114. scrollbar: {
  115. enabled: !1
  116. },
  117. //导航器
  118. navigator: {
  119. enabled: !1
  120. },
  121. //范围选择器
  122. rangeSelector: {
  123. enabled: !1
  124. },
  125. xAxis: {
  126. tickPosition: "inside",
  127. lineColor: "#bfbfbf",
  128. tickColor: "#bfbfbf",
  129. tickLength: 5,
  130. type: "datetime",
  131. ordinal: !1,
  132. dateTimeLabelFormats: {
  133. day: "%y/%m",
  134. week: "%y/%m",
  135. month: "%y/%m",
  136. year: "%y/%m"
  137. }
  138. // gridLineWidth:0
  139. }
  140. }, P0 = {
  141. //默认颜色配置
  142. colors: ["#4B0082", "#7FFFAA", "#FF4500", "#808000", "#EEE8AA", "#849EC1", "#8A4294", "#578B5A", "#FDA8C7", "#53B3FF", "#999999", "#000000", "#FFDF0C", "#FF0000", "#0033FF"],
  143. yAxis: {
  144. lineWidth: 1,
  145. lineColor: "#bfbfbf",
  146. tickColor: "#bfbfbf",
  147. offset: 0,
  148. opposite: !1,
  149. reversed: !1,
  150. visible: !0,
  151. gridLineWidth: 0,
  152. tickWidth: 1,
  153. tickLength: 5,
  154. tickPosition: "inside",
  155. endOnTick: !1,
  156. startOnTick: !1,
  157. showLastLabel: !0,
  158. //显示最后刻度值
  159. tickPixelInterval: 50
  160. }
  161. }, Mn = {
  162. tickPosition: "inside",
  163. lineColor: "#bfbfbf",
  164. tickColor: "#bfbfbf",
  165. tickLength: 5,
  166. ordinal: !1,
  167. type: "linear"
  168. }, Lr = {
  169. tickWidth: 1,
  170. tickLength: 5,
  171. lineWidth: 1,
  172. lineColor: "#bfbfbf",
  173. tickColor: "#bfbfbf",
  174. // offset: 0,
  175. visible: !0,
  176. gridLineWidth: 0,
  177. tickPosition: "inside",
  178. endOnTick: !1,
  179. startOnTick: !1,
  180. showLastLabel: !0,
  181. tickPixelInterval: 50
  182. }, Xp = {
  183. tickPosition: "inside",
  184. lineColor: "#bfbfbf",
  185. tickColor: "#bfbfbf",
  186. tickLength: 5,
  187. type: "datetime",
  188. ordinal: !1,
  189. dateTimeLabelFormats: {
  190. day: "%y/%m",
  191. week: "%y/%m",
  192. month: "%y/%m",
  193. year: "%y/%m"
  194. },
  195. xDateFormat: "%Y-%m-%d"
  196. }, E0 = {
  197. 年: "Y",
  198. 季: "Q",
  199. 月: "M",
  200. 周: "W",
  201. 天: "D"
  202. }, Mp = {
  203. 年: "Year",
  204. 季: "Season",
  205. 月: "Month",
  206. 周: "Week",
  207. 天: "Day"
  208. };
  209. var Fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
  210. function Cn(r) {
  211. return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
  212. }
  213. var Gp = { exports: {} };
  214. (function(r) {
  215. (function(f, E) {
  216. r.exports ? (E.default = E, r.exports = f.document ? E(f) : E) : (f.Highcharts && f.Highcharts.error(16, !0), f.Highcharts = E(f));
  217. })(typeof window < "u" ? window : Fr, function(f) {
  218. function E(y, j, I, Z) {
  219. y.hasOwnProperty(j) || (y[j] = Z.apply(null, I));
  220. }
  221. var h = {};
  222. return E(h, "Core/Globals.js", [], function() {
  223. var y = typeof f < "u" ? f : typeof window < "u" ? window : {}, j;
  224. return function(I) {
  225. I.SVG_NS = "http://www.w3.org/2000/svg", I.product = "Highcharts", I.version = "9.3.3", I.win = y, I.doc = I.win.document, I.svg = I.doc && I.doc.createElementNS && !!I.doc.createElementNS(I.SVG_NS, "svg").createSVGRect, I.userAgent = I.win.navigator && I.win.navigator.userAgent || "", I.isChrome = I.userAgent.indexOf("Chrome") !== -1, I.isFirefox = I.userAgent.indexOf("Firefox") !== -1, I.isMS = /(edge|msie|trident)/i.test(I.userAgent) && !I.win.opera, I.isSafari = !I.isChrome && I.userAgent.indexOf("Safari") !== -1, I.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(I.userAgent), I.isWebKit = I.userAgent.indexOf("AppleWebKit") !== -1, I.deg2rad = 2 * Math.PI / 360, I.hasBidiBug = I.isFirefox && 4 > parseInt(I.userAgent.split("Firefox/")[1], 10), I.hasTouch = !!I.win.TouchEvent, I.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], I.noop = function() {
  226. }, I.supportsPassiveEvents = function() {
  227. var Z = !1;
  228. if (!I.isMS) {
  229. var F = Object.defineProperty({}, "passive", { get: function() {
  230. Z = !0;
  231. } });
  232. I.win.addEventListener && I.win.removeEventListener && (I.win.addEventListener(
  233. "testPassive",
  234. I.noop,
  235. F
  236. ), I.win.removeEventListener("testPassive", I.noop, F));
  237. }
  238. return Z;
  239. }(), I.charts = [], I.dateFormats = {}, I.seriesTypes = {}, I.symbolSizes = {}, I.chartCount = 0;
  240. }(j || (j = {})), j;
  241. }), E(h, "Core/Utilities.js", [h["Core/Globals.js"]], function(y) {
  242. function j(t, o, n, A) {
  243. var _ = o ? "Highcharts error" : "Highcharts warning";
  244. t === 32 && (t = _ + ": Deprecated member");
  245. var D = S(t), B = D ? _ + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  246. if (typeof A < "u") {
  247. var T = "";
  248. D && (B += "?"), b(A, function(X, g) {
  249. T += `
  250. - ` + g + ": " + X, D && (B += encodeURI(g) + "=" + encodeURI(X));
  251. }), B += T;
  252. }
  253. x(y, "displayError", { chart: n, code: t, message: B, params: A }, function() {
  254. if (o)
  255. throw Error(B);
  256. p.console && j.messages.indexOf(B) === -1 && console.warn(B);
  257. }), j.messages.push(B);
  258. }
  259. function I(t, o) {
  260. var n = {};
  261. return b(t, function(A, _) {
  262. H(t[_], !0) && !t.nodeType && o[_] ? (A = I(t[_], o[_]), Object.keys(A).length && (n[_] = A)) : (H(t[_]) || t[_] !== o[_]) && (n[_] = t[_]);
  263. }), n;
  264. }
  265. function Z(t, o) {
  266. return parseInt(t, o || 10);
  267. }
  268. function F(t) {
  269. return typeof t == "string";
  270. }
  271. function U(t) {
  272. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  273. }
  274. function H(t, o) {
  275. return !!t && typeof t == "object" && (!o || !U(t));
  276. }
  277. function W(t) {
  278. return H(t) && typeof t.nodeType == "number";
  279. }
  280. function R(t) {
  281. var o = t && t.constructor;
  282. return !(!H(t, !0) || W(t) || !o || !o.name || o.name === "Object");
  283. }
  284. function S(t) {
  285. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  286. }
  287. function v(t) {
  288. return typeof t < "u" && t !== null;
  289. }
  290. function d(t, o, n) {
  291. var A;
  292. return F(o) ? v(n) ? t.setAttribute(o, n) : t && t.getAttribute && ((A = t.getAttribute(o)) || o !== "class" || (A = t.getAttribute(o + "Name"))) : b(o, function(_, D) {
  293. v(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  294. }), A;
  295. }
  296. function u(t, o) {
  297. var n;
  298. t || (t = {});
  299. for (n in o)
  300. t[n] = o[n];
  301. return t;
  302. }
  303. function P() {
  304. for (var t = arguments, o = t.length, n = 0; n < o; n++) {
  305. var A = t[n];
  306. if (typeof A < "u" && A !== null)
  307. return A;
  308. }
  309. }
  310. function O(t, o) {
  311. y.isMS && !y.svg && o && typeof o.opacity < "u" && (o.filter = "alpha(opacity=" + 100 * o.opacity + ")"), u(t.style, o);
  312. }
  313. function N(t, o) {
  314. return 1e14 < t ? t : parseFloat(t.toPrecision(o || 14));
  315. }
  316. function C(t, o, n) {
  317. var A = y.getStyle || C;
  318. if (o === "width")
  319. return o = Math.min(t.offsetWidth, t.scrollWidth), n = t.getBoundingClientRect && t.getBoundingClientRect().width, n < o && n >= o - 1 && (o = Math.floor(n)), Math.max(0, o - (A(t, "padding-left", !0) || 0) - (A(t, "padding-right", !0) || 0));
  320. if (o === "height")
  321. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (A(t, "padding-top", !0) || 0) - (A(t, "padding-bottom", !0) || 0));
  322. if (p.getComputedStyle || j(27, !0), t = p.getComputedStyle(t, void 0)) {
  323. var _ = t.getPropertyValue(o);
  324. P(n, o !== "opacity") && (_ = Z(_));
  325. }
  326. return _;
  327. }
  328. function b(t, o, n) {
  329. for (var A in t)
  330. Object.hasOwnProperty.call(t, A) && o.call(n || t[A], t[A], A, t);
  331. }
  332. function w(t, o, n) {
  333. function A(T, X) {
  334. var g = t.removeEventListener || y.removeEventListenerPolyfill;
  335. g && g.call(t, T, X, !1);
  336. }
  337. function _(T) {
  338. var X;
  339. if (t.nodeName) {
  340. if (o) {
  341. var g = {};
  342. g[o] = !0;
  343. } else
  344. g = T;
  345. b(g, function(m, L) {
  346. if (T[L])
  347. for (X = T[L].length; X--; )
  348. A(L, T[L][X].fn);
  349. });
  350. }
  351. }
  352. var D = typeof t == "function" && t.prototype || t;
  353. if (Object.hasOwnProperty.call(D, "hcEvents")) {
  354. var B = D.hcEvents;
  355. o ? (D = B[o] || [], n ? (B[o] = D.filter(function(T) {
  356. return n !== T.fn;
  357. }), A(o, n)) : (_(B), B[o] = [])) : (_(B), delete D.hcEvents);
  358. }
  359. }
  360. function x(t, o, n, A) {
  361. if (n = n || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  362. var _ = c.createEvent("Events");
  363. _.initEvent(o, !0, !0), n = u(_, n), t.dispatchEvent ? t.dispatchEvent(n) : t.fireEvent(o, n);
  364. } else if (t.hcEvents) {
  365. n.target || u(n, { preventDefault: function() {
  366. n.defaultPrevented = !0;
  367. }, target: t, type: o }), _ = [];
  368. for (var D = t, B = !1; D.hcEvents; )
  369. Object.hasOwnProperty.call(D, "hcEvents") && D.hcEvents[o] && (_.length && (B = !0), _.unshift.apply(_, D.hcEvents[o])), D = Object.getPrototypeOf(D);
  370. B && _.sort(function(T, X) {
  371. return T.order - X.order;
  372. }), _.forEach(function(T) {
  373. T.fn.call(t, n) === !1 && n.preventDefault();
  374. });
  375. }
  376. A && !n.defaultPrevented && A.call(t, n);
  377. }
  378. var a = y.charts, c = y.doc, p = y.win;
  379. (j || (j = {})).messages = [], Math.easeInOutSine = function(t) {
  380. return -0.5 * (Math.cos(Math.PI * t) - 1);
  381. };
  382. var i = Array.prototype.find ? function(t, o) {
  383. return t.find(o);
  384. } : function(t, o) {
  385. var n, A = t.length;
  386. for (n = 0; n < A; n++)
  387. if (o(t[n], n))
  388. return t[n];
  389. };
  390. b({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, o) {
  391. y[o] = function(n) {
  392. var A;
  393. return j(32, !1, void 0, (A = {}, A["Highcharts." + o] = "use Array." + t, A)), Array.prototype[t].apply(n, [].slice.call(arguments, 1));
  394. };
  395. });
  396. var l, s = function() {
  397. var t = Math.random().toString(36).substring(2, 9) + "-", o = 0;
  398. return function() {
  399. return "highcharts-" + (l ? "" : t) + o++;
  400. };
  401. }();
  402. return p.jQuery && (p.jQuery.fn.highcharts = function() {
  403. var t = [].slice.call(arguments);
  404. if (this[0])
  405. return t[0] ? (new y[F(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : a[d(this[0], "data-highcharts-chart")];
  406. }), i = { addEvent: function(t, o, n, A) {
  407. A === void 0 && (A = {});
  408. var _ = typeof t == "function" && t.prototype || t;
  409. Object.hasOwnProperty.call(_, "hcEvents") || (_.hcEvents = {}), _ = _.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  410. var D = t.addEventListener || y.addEventListenerPolyfill;
  411. return D && D.call(t, o, n, y.supportsPassiveEvents ? { passive: A.passive === void 0 ? o.indexOf("touch") !== -1 : A.passive, capture: !1 } : !1), _[o] || (_[o] = []), _[o].push({ fn: n, order: typeof A.order == "number" ? A.order : 1 / 0 }), _[o].sort(function(B, T) {
  412. return B.order - T.order;
  413. }), function() {
  414. w(t, o, n);
  415. };
  416. }, arrayMax: function(t) {
  417. for (var o = t.length, n = t[0]; o--; )
  418. t[o] > n && (n = t[o]);
  419. return n;
  420. }, arrayMin: function(t) {
  421. for (var o = t.length, n = t[0]; o--; )
  422. t[o] < n && (n = t[o]);
  423. return n;
  424. }, attr: d, clamp: function(t, o, n) {
  425. return t > o ? t < n ? t : n : o;
  426. }, cleanRecursively: I, clearTimeout: function(t) {
  427. v(t) && clearTimeout(t);
  428. }, correctFloat: N, createElement: function(t, o, n, A, _) {
  429. return t = c.createElement(t), o && u(t, o), _ && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), A && A.appendChild(t), t;
  430. }, css: O, defined: v, destroyObjectProperties: function(t, o) {
  431. b(t, function(n, A) {
  432. n && n !== o && n.destroy && n.destroy(), delete t[A];
  433. });
  434. }, discardElement: function(t) {
  435. t && t.parentElement && t.parentElement.removeChild(t);
  436. }, erase: function(t, o) {
  437. for (var n = t.length; n--; )
  438. if (t[n] === o) {
  439. t.splice(n, 1);
  440. break;
  441. }
  442. }, error: j, extend: u, extendClass: function(t, o) {
  443. var n = function() {
  444. };
  445. return n.prototype = new t(), u(n.prototype, o), n;
  446. }, find: i, fireEvent: x, getMagnitude: function(t) {
  447. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  448. }, getNestedProperty: function(t, o) {
  449. for (t = t.split("."); t.length && v(o); ) {
  450. var n = t.shift();
  451. if (typeof n > "u" || n === "__proto__" || (o = o[n], !v(o) || typeof o == "function" || typeof o.nodeType == "number" || o === p))
  452. return;
  453. }
  454. return o;
  455. }, getStyle: C, inArray: function(t, o, n) {
  456. return j(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), o.indexOf(t, n);
  457. }, isArray: U, isClass: R, isDOMElement: W, isFunction: function(t) {
  458. return typeof t == "function";
  459. }, isNumber: S, isObject: H, isString: F, keys: function(t) {
  460. return j(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  461. }, merge: function() {
  462. var t, o = arguments, n = {}, A = function(D, B) {
  463. return typeof D != "object" && (D = {}), b(B, function(T, X) {
  464. X !== "__proto__" && X !== "constructor" && (!H(T, !0) || R(T) || W(T) ? D[X] = B[X] : D[X] = A(D[X] || {}, T));
  465. }), D;
  466. };
  467. o[0] === !0 && (n = o[1], o = Array.prototype.slice.call(o, 2));
  468. var _ = o.length;
  469. for (t = 0; t < _; t++)
  470. n = A(n, o[t]);
  471. return n;
  472. }, normalizeTickInterval: function(t, o, n, A, _) {
  473. var D = t;
  474. n = P(n, 1);
  475. var B = t / n;
  476. for (o || (o = _ ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], A === !1 && (n === 1 ? o = o.filter(function(T) {
  477. return T % 1 === 0;
  478. }) : 0.1 >= n && (o = [1 / n]))), A = 0; A < o.length && (D = o[A], !(_ && D * n >= t || !_ && B <= (o[A] + (o[A + 1] || o[A])) / 2)); A++)
  479. ;
  480. return D = N(D * n, -Math.round(Math.log(1e-3) / Math.LN10));
  481. }, objectEach: b, offset: function(t) {
  482. var o = c.documentElement;
  483. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (p.pageYOffset || o.scrollTop) - (o.clientTop || 0), left: t.left + (p.pageXOffset || o.scrollLeft) - (o.clientLeft || 0), width: t.width, height: t.height };
  484. }, pad: function(t, o, n) {
  485. return Array((o || 2) + 1 - String(t).replace("-", "").length).join(n || "0") + t;
  486. }, pick: P, pInt: Z, relativeLength: function(t, o, n) {
  487. return /%$/.test(t) ? o * parseFloat(t) / 100 + (n || 0) : parseFloat(t);
  488. }, removeEvent: w, splat: function(t) {
  489. return U(t) ? t : [t];
  490. }, stableSort: function(t, o) {
  491. var n = t.length, A, _;
  492. for (_ = 0; _ < n; _++)
  493. t[_].safeI = _;
  494. for (t.sort(function(D, B) {
  495. return A = o(D, B), A === 0 ? D.safeI - B.safeI : A;
  496. }), _ = 0; _ < n; _++)
  497. delete t[_].safeI;
  498. }, syncTimeout: function(t, o, n) {
  499. return 0 < o ? setTimeout(t, o, n) : (t.call(0, n), -1);
  500. }, timeUnits: {
  501. millisecond: 1,
  502. second: 1e3,
  503. minute: 6e4,
  504. hour: 36e5,
  505. day: 864e5,
  506. week: 6048e5,
  507. month: 24192e5,
  508. year: 314496e5
  509. }, uniqueKey: s, useSerialIds: function(t) {
  510. return l = P(t, l);
  511. }, wrap: function(t, o, n) {
  512. var A = t[o];
  513. t[o] = function() {
  514. var _ = Array.prototype.slice.call(arguments), D = arguments, B = this;
  515. return B.proceed = function() {
  516. A.apply(B, arguments.length ? arguments : D);
  517. }, _.unshift(A), _ = n.apply(this, _), B.proceed = null, _;
  518. };
  519. } }, i;
  520. }), E(h, "Core/Chart/ChartDefaults.js", [], function() {
  521. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  522. 10,
  523. 10,
  524. 15,
  525. 10
  526. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  527. }), E(h, "Core/Color/Color.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j) {
  528. var I = j.isNumber, Z = j.merge, F = j.pInt;
  529. return j = function() {
  530. function U(H) {
  531. this.rgba = [NaN, NaN, NaN, NaN], this.input = H;
  532. var W = y.Color;
  533. if (W && W !== U)
  534. return new W(H);
  535. if (!(this instanceof U))
  536. return new U(H);
  537. this.init(H);
  538. }
  539. return U.parse = function(H) {
  540. return H ? new U(H) : U.None;
  541. }, U.prototype.init = function(H) {
  542. var W;
  543. if (typeof H == "object" && typeof H.stops < "u")
  544. this.stops = H.stops.map(function(d) {
  545. return new U(d[1]);
  546. });
  547. else if (typeof H == "string") {
  548. if (this.input = H = U.names[H.toLowerCase()] || H, H.charAt(0) === "#") {
  549. var R = H.length, S = parseInt(H.substr(1), 16);
  550. R === 7 ? W = [(S & 16711680) >> 16, (S & 65280) >> 8, S & 255, 1] : R === 4 && (W = [(S & 3840) >> 4 | (S & 3840) >> 8, (S & 240) >> 4 | S & 240, (S & 15) << 4 | S & 15, 1]);
  551. }
  552. if (!W)
  553. for (S = U.parsers.length; S-- && !W; ) {
  554. var v = U.parsers[S];
  555. (R = v.regex.exec(H)) && (W = v.parse(R));
  556. }
  557. }
  558. W && (this.rgba = W);
  559. }, U.prototype.get = function(H) {
  560. var W = this.input, R = this.rgba;
  561. if (typeof W == "object" && typeof this.stops < "u") {
  562. var S = Z(W);
  563. return S.stops = [].slice.call(S.stops), this.stops.forEach(function(v, d) {
  564. S.stops[d] = [S.stops[d][0], v.get(H)];
  565. }), S;
  566. }
  567. return R && I(R[0]) ? H === "rgb" || !H && R[3] === 1 ? "rgb(" + R[0] + "," + R[1] + "," + R[2] + ")" : H === "a" ? "" + R[3] : "rgba(" + R.join(",") + ")" : W;
  568. }, U.prototype.brighten = function(H) {
  569. var W = this.rgba;
  570. if (this.stops)
  571. this.stops.forEach(function(S) {
  572. S.brighten(H);
  573. });
  574. else if (I(H) && H !== 0)
  575. for (var R = 0; 3 > R; R++)
  576. W[R] += F(255 * H), 0 > W[R] && (W[R] = 0), 255 < W[R] && (W[R] = 255);
  577. return this;
  578. }, U.prototype.setOpacity = function(H) {
  579. return this.rgba[3] = H, this;
  580. }, U.prototype.tweenTo = function(H, W) {
  581. var R = this.rgba, S = H.rgba;
  582. return !I(R[0]) || !I(S[0]) ? H.input || "none" : (H = S[3] !== 1 || R[3] !== 1, (H ? "rgba(" : "rgb(") + Math.round(S[0] + (R[0] - S[0]) * (1 - W)) + "," + Math.round(S[1] + (R[1] - S[1]) * (1 - W)) + "," + Math.round(S[2] + (R[2] - S[2]) * (1 - W)) + (H ? "," + (S[3] + (R[3] - S[3]) * (1 - W)) : "") + ")");
  583. }, U.names = { white: "#ffffff", black: "#000000" }, U.parsers = [{
  584. regex: /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
  585. parse: function(H) {
  586. return [F(H[1]), F(H[2]), F(H[3]), parseFloat(H[4], 10)];
  587. }
  588. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(H) {
  589. return [F(H[1]), F(H[2]), F(H[3]), 1];
  590. } }], U.None = new U(""), U;
  591. }(), j;
  592. }), E(h, "Core/Color/Palettes.js", [], function() {
  593. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  594. }), E(h, "Core/Time.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j) {
  595. var I = y.win, Z = j.defined, F = j.error, U = j.extend, H = j.isObject, W = j.merge, R = j.objectEach, S = j.pad, v = j.pick, d = j.splat, u = j.timeUnits, P = y.isSafari && I.Intl && I.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && I.Intl && !I.Intl.DateTimeFormat.prototype.formatRange;
  596. return j = function() {
  597. function N(C) {
  598. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = I.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(C);
  599. }
  600. return N.prototype.get = function(C, b) {
  601. if (this.variableTimezone || this.timezoneOffset) {
  602. var w = b.getTime(), x = w - this.getTimezoneOffset(b);
  603. return b.setTime(x), C = b["getUTC" + C](), b.setTime(w), C;
  604. }
  605. return this.useUTC ? b["getUTC" + C]() : b["get" + C]();
  606. }, N.prototype.set = function(C, b, w) {
  607. if (this.variableTimezone || this.timezoneOffset) {
  608. if (C === "Milliseconds" || C === "Seconds" || C === "Minutes" && this.getTimezoneOffset(b) % 36e5 === 0)
  609. return b["setUTC" + C](w);
  610. var x = this.getTimezoneOffset(b);
  611. return x = b.getTime() - x, b.setTime(x), b["setUTC" + C](w), C = this.getTimezoneOffset(b), x = b.getTime() + C, b.setTime(x);
  612. }
  613. return this.useUTC || P && C === "FullYear" ? b["setUTC" + C](w) : b["set" + C](w);
  614. }, N.prototype.update = function(C) {
  615. var b = v(C && C.useUTC, !0);
  616. this.options = C = W(!0, this.options || {}, C), this.Date = C.Date || I.Date || Date, this.timezoneOffset = (this.useUTC = b) && C.timezoneOffset, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = b && !(!C.getTimezoneOffset && !C.timezone);
  617. }, N.prototype.makeTime = function(C, b, w, x, a, c) {
  618. if (this.useUTC) {
  619. var p = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(p);
  620. p += i;
  621. var l = this.getTimezoneOffset(p);
  622. i !== l ? p += l - i : i - 36e5 !== this.getTimezoneOffset(p - 36e5) || O || (p -= 36e5);
  623. } else
  624. p = new this.Date(C, b, v(w, 1), v(x, 0), v(a, 0), v(c, 0)).getTime();
  625. return p;
  626. }, N.prototype.timezoneOffsetFunction = function() {
  627. var C = this, b = this.options, w = b.getTimezoneOffset, x = b.moment || I.moment;
  628. if (!this.useUTC)
  629. return function(a) {
  630. return 6e4 * new Date(a.toString()).getTimezoneOffset();
  631. };
  632. if (b.timezone) {
  633. if (x)
  634. return function(a) {
  635. return 6e4 * -x.tz(a, b.timezone).utcOffset();
  636. };
  637. F(25);
  638. }
  639. return this.useUTC && w ? function(a) {
  640. return 6e4 * w(a.valueOf());
  641. } : function() {
  642. return 6e4 * (C.timezoneOffset || 0);
  643. };
  644. }, N.prototype.dateFormat = function(C, b, w) {
  645. if (!Z(b) || isNaN(b))
  646. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  647. C = v(C, "%Y-%m-%d %H:%M:%S");
  648. var x = this, a = new this.Date(b), c = this.get("Hours", a), p = this.get("Day", a), i = this.get("Date", a), l = this.get("Month", a), s = this.get("FullYear", a), t = y.defaultOptions.lang, o = t && t.weekdays, n = t && t.shortWeekdays;
  649. return a = U({ a: n ? n[p] : o[p].substr(0, 3), A: o[p], d: S(i), e: S(i, 2, " "), w: p, b: t.shortMonths[l], B: t.months[l], m: S(l + 1), o: l + 1, y: s.toString().substr(2, 2), Y: s, H: S(c), k: c, I: S(c % 12 || 12), l: c % 12 || 12, M: S(this.get("Minutes", a)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: S(a.getSeconds()), L: S(Math.floor(b % 1e3), 3) }, y.dateFormats), R(a, function(A, _) {
  650. for (; C.indexOf("%" + _) !== -1; )
  651. C = C.replace("%" + _, typeof A == "function" ? A.call(x, b) : A);
  652. }), w ? C.substr(0, 1).toUpperCase() + C.substr(1) : C;
  653. }, N.prototype.resolveDTLFormat = function(C) {
  654. return H(C, !0) ? C : (C = d(C), { main: C[0], from: C[1], to: C[2] });
  655. }, N.prototype.getTimeTicks = function(C, b, w, x) {
  656. var a = this, c = [], p = {}, i = new a.Date(b), l = C.unitRange, s = C.count || 1, t;
  657. if (x = v(x, 1), Z(b)) {
  658. if (a.set(
  659. "Milliseconds",
  660. i,
  661. l >= u.second ? 0 : s * Math.floor(a.get("Milliseconds", i) / s)
  662. ), l >= u.second && a.set("Seconds", i, l >= u.minute ? 0 : s * Math.floor(a.get("Seconds", i) / s)), l >= u.minute && a.set("Minutes", i, l >= u.hour ? 0 : s * Math.floor(a.get("Minutes", i) / s)), l >= u.hour && a.set("Hours", i, l >= u.day ? 0 : s * Math.floor(a.get("Hours", i) / s)), l >= u.day && a.set("Date", i, l >= u.month ? 1 : Math.max(1, s * Math.floor(a.get("Date", i) / s))), l >= u.month) {
  663. a.set("Month", i, l >= u.year ? 0 : s * Math.floor(a.get("Month", i) / s));
  664. var o = a.get("FullYear", i);
  665. }
  666. l >= u.year && a.set(
  667. "FullYear",
  668. i,
  669. o - o % s
  670. ), l === u.week && (o = a.get("Day", i), a.set("Date", i, a.get("Date", i) - o + x + (o < x ? -7 : 0))), o = a.get("FullYear", i), x = a.get("Month", i);
  671. var n = a.get("Date", i), A = a.get("Hours", i);
  672. for (b = i.getTime(), !a.variableTimezone && a.useUTC || !Z(w) || (t = w - b > 4 * u.month || a.getTimezoneOffset(b) !== a.getTimezoneOffset(w)), b = i.getTime(), i = 1; b < w; )
  673. c.push(b), b = l === u.year ? a.makeTime(o + i * s, 0) : l === u.month ? a.makeTime(o, x + i * s) : !t || l !== u.day && l !== u.week ? t && l === u.hour && 1 < s ? a.makeTime(o, x, n, A + i * s) : b + l * s : a.makeTime(o, x, n + i * s * (l === u.day ? 1 : 7)), i++;
  674. c.push(b), l <= u.hour && 1e4 > c.length && c.forEach(function(_) {
  675. _ % 18e5 === 0 && a.dateFormat("%H%M%S%L", _) === "000000000" && (p[_] = "day");
  676. });
  677. }
  678. return c.info = U(C, { higherRanks: p, totalRange: l * s }), c;
  679. }, N.prototype.getDateFormat = function(C, b, w, x) {
  680. var a = this.dateFormat("%m-%d %H:%M:%S.%L", b), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, p = "millisecond";
  681. for (i in u) {
  682. if (C === u.week && +this.dateFormat("%w", b) === w && a.substr(6) === "00:00:00.000") {
  683. var i = "week";
  684. break;
  685. }
  686. if (u[i] > C) {
  687. i = p;
  688. break;
  689. }
  690. if (c[i] && a.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  691. break;
  692. i !== "week" && (p = i);
  693. }
  694. if (i)
  695. var l = this.resolveDTLFormat(x[i]).main;
  696. return l;
  697. }, N;
  698. }(), j;
  699. }), E(h, "Core/DefaultOptions.js", [h["Core/Chart/ChartDefaults.js"], h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Color/Palettes.js"], h["Core/Time.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U) {
  700. j = j.parse;
  701. var H = U.merge, W = {
  702. colors: Z.colors,
  703. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  704. lang: {
  705. loading: "Loading...",
  706. months: "January February March April May June July August September October November December".split(" "),
  707. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  708. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  709. decimalPoint: ".",
  710. numericSymbols: "kMGTPE".split(""),
  711. resetZoom: "Reset zoom",
  712. resetZoomTitle: "Reset zoom level 1:1",
  713. thousandsSep: " "
  714. },
  715. global: {},
  716. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  717. chart: y,
  718. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  719. subtitle: { text: "", align: "center", widthAdjust: -44 },
  720. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  721. plotOptions: {},
  722. labels: { style: { position: "absolute", color: "#333333" } },
  723. legend: {
  724. enabled: !0,
  725. align: "center",
  726. alignColumns: !0,
  727. className: "highcharts-no-tooltip",
  728. layout: "horizontal",
  729. labelFormatter: function() {
  730. return this.name;
  731. },
  732. borderColor: "#999999",
  733. borderRadius: 0,
  734. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  735. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  736. itemHoverStyle: { color: "#000000" },
  737. itemHiddenStyle: { color: "#cccccc" },
  738. shadow: !1,
  739. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  740. squareSymbol: !0,
  741. symbolPadding: 5,
  742. verticalAlign: "bottom",
  743. x: 0,
  744. y: 0,
  745. title: { style: { fontWeight: "bold" } }
  746. },
  747. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  748. tooltip: {
  749. enabled: !0,
  750. animation: I.svg,
  751. borderRadius: 3,
  752. dateTimeLabelFormats: {
  753. millisecond: "%A, %b %e, %H:%M:%S.%L",
  754. second: "%A, %b %e, %H:%M:%S",
  755. minute: "%A, %b %e, %H:%M",
  756. hour: "%A, %b %e, %H:%M",
  757. day: "%A, %b %e, %Y",
  758. week: "Week from %A, %b %e, %Y",
  759. month: "%B %Y",
  760. year: "%Y"
  761. },
  762. footerFormat: "",
  763. headerShape: "callout",
  764. hideDelay: 500,
  765. padding: 8,
  766. shape: "callout",
  767. shared: !1,
  768. snap: I.isTouchDevice ? 25 : 10,
  769. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  770. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  771. backgroundColor: j("#f7f7f7").setOpacity(0.85).get(),
  772. borderWidth: 1,
  773. shadow: !0,
  774. stickOnContact: !1,
  775. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  776. useHTML: !1
  777. },
  778. credits: { enabled: !0, href: "https://www.highcharts.com?credits", position: { align: "right", x: -10, verticalAlign: "bottom", y: -5 }, style: { cursor: "pointer", color: "#999999", fontSize: "9px" }, text: "Highcharts.com" }
  779. };
  780. W.chart.styledMode = !1;
  781. var R = new F(H(W.global, W.time));
  782. return y = { defaultOptions: W, defaultTime: R, getOptions: function() {
  783. return W;
  784. }, setOptions: function(S) {
  785. return H(!0, W, S), (S.time || S.global) && (I.time ? I.time.update(H(
  786. W.global,
  787. W.time,
  788. S.global,
  789. S.time
  790. )) : I.time = R), W;
  791. } }, y;
  792. }), E(h, "Core/Animation/Fx.js", [h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j, I) {
  793. var Z = y.parse, F = j.win, U = I.isNumber, H = I.objectEach;
  794. return function() {
  795. function W(R, S, v) {
  796. this.pos = NaN, this.options = S, this.elem = R, this.prop = v;
  797. }
  798. return W.prototype.dSetter = function() {
  799. var R = this.paths, S = R && R[0];
  800. R = R && R[1];
  801. var v = this.now || 0, d = [];
  802. if (v !== 1 && S && R)
  803. if (S.length === R.length && 1 > v)
  804. for (var u = 0; u < R.length; u++) {
  805. for (var P = S[u], O = R[u], N = [], C = 0; C < O.length; C++) {
  806. var b = P[C], w = O[C];
  807. U(b) && U(w) && (O[0] !== "A" || C !== 4 && C !== 5) ? N[C] = b + v * (w - b) : N[C] = w;
  808. }
  809. d.push(N);
  810. }
  811. else
  812. d = R;
  813. else
  814. d = this.toD || [];
  815. this.elem.attr("d", d, void 0, !0);
  816. }, W.prototype.update = function() {
  817. var R = this.elem, S = this.prop, v = this.now, d = this.options.step;
  818. this[S + "Setter"] ? this[S + "Setter"]() : R.attr ? R.element && R.attr(S, v, null, !0) : R.style[S] = v + this.unit, d && d.call(R, v, this);
  819. }, W.prototype.run = function(R, S, v) {
  820. var d = this, u = d.options, P = function(C) {
  821. return P.stopped ? !1 : d.step(C);
  822. }, O = F.requestAnimationFrame || function(C) {
  823. setTimeout(
  824. C,
  825. 13
  826. );
  827. }, N = function() {
  828. for (var C = 0; C < W.timers.length; C++)
  829. W.timers[C]() || W.timers.splice(C--, 1);
  830. W.timers.length && O(N);
  831. };
  832. R !== S || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = R, this.end = S, this.unit = v, this.now = this.start, this.pos = 0, P.elem = this.elem, P.prop = this.prop, P() && W.timers.push(P) === 1 && O(N)) : (delete u.curAnim[this.prop], u.complete && Object.keys(u.curAnim).length === 0 && u.complete.call(this.elem));
  833. }, W.prototype.step = function(R) {
  834. var S = +/* @__PURE__ */ new Date(), v = this.options, d = this.elem, u = v.complete, P = v.duration, O = v.curAnim;
  835. if (d.attr && !d.element)
  836. R = !1;
  837. else if (R || S >= P + this.startTime) {
  838. this.now = this.end, this.pos = 1, this.update();
  839. var N = O[this.prop] = !0;
  840. H(O, function(C) {
  841. C !== !0 && (N = !1);
  842. }), N && u && u.call(d), R = !1;
  843. } else
  844. this.pos = v.easing((S - this.startTime) / P), this.now = this.start + (this.end - this.start) * this.pos, this.update(), R = !0;
  845. return R;
  846. }, W.prototype.initPath = function(R, S, v) {
  847. function d(a, c) {
  848. for (; a.length < x; ) {
  849. var p = a[0], i = c[x - a.length];
  850. i && p[0] === "M" && (a[0] = i[0] === "C" ? ["C", p[1], p[2], p[1], p[2], p[1], p[2]] : [
  851. "L",
  852. p[1],
  853. p[2]
  854. ]), a.unshift(p), N && (p = a.pop(), a.push(a[a.length - 1], p));
  855. }
  856. }
  857. function u(a, c) {
  858. for (; a.length < x; )
  859. if (c = a[Math.floor(a.length / C) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), N) {
  860. var p = a[Math.floor(a.length / C)].slice();
  861. a.splice(a.length / 2, 0, c, p);
  862. } else
  863. a.push(c);
  864. }
  865. var P = R.startX, O = R.endX;
  866. v = v.slice();
  867. var N = R.isArea, C = N ? 2 : 1;
  868. if (S = S && S.slice(), !S)
  869. return [v, v];
  870. if (P && O && O.length) {
  871. for (R = 0; R < P.length; R++)
  872. if (P[R] === O[0]) {
  873. var b = R;
  874. break;
  875. } else if (P[0] === O[O.length - P.length + R]) {
  876. b = R;
  877. var w = !0;
  878. break;
  879. } else if (P[P.length - 1] === O[O.length - P.length + R]) {
  880. b = P.length - R;
  881. break;
  882. }
  883. typeof b > "u" && (S = []);
  884. }
  885. if (S.length && U(b)) {
  886. var x = v.length + b * C;
  887. w ? (d(S, v), u(v, S)) : (d(v, S), u(S, v));
  888. }
  889. return [S, v];
  890. }, W.prototype.fillSetter = function() {
  891. W.prototype.strokeSetter.apply(this, arguments);
  892. }, W.prototype.strokeSetter = function() {
  893. this.elem.attr(this.prop, Z(this.start).tweenTo(Z(this.end), this.pos), void 0, !0);
  894. }, W.timers = [], W;
  895. }();
  896. }), E(h, "Core/Animation/AnimationUtilities.js", [h["Core/Animation/Fx.js"], h["Core/Utilities.js"]], function(y, j) {
  897. function I(u) {
  898. return R(u) ? S({ duration: 500, defer: 0 }, u) : { duration: u ? 500 : 0, defer: 0 };
  899. }
  900. function Z(u, P) {
  901. for (var O = y.timers.length; O--; )
  902. y.timers[O].elem !== u || P && P !== y.timers[O].prop || (y.timers[O].stopped = !0);
  903. }
  904. var F = j.defined, U = j.getStyle, H = j.isArray, W = j.isNumber, R = j.isObject, S = j.merge, v = j.objectEach, d = j.pick;
  905. return { animate: function(u, P, O) {
  906. var N, C = "", b, w;
  907. if (!R(O)) {
  908. var x = arguments;
  909. O = { duration: x[2], easing: x[3], complete: x[4] };
  910. }
  911. W(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = S(P), v(P, function(a, c) {
  912. Z(u, c), w = new y(u, O, c), b = void 0, c === "d" && H(P.d) ? (w.paths = w.initPath(u, u.pathArray, P.d), w.toD = P.d, N = 0, b = 1) : u.attr ? N = u.attr(c) : (N = parseFloat(U(u, c)) || 0, c !== "opacity" && (C = "px")), b || (b = a), typeof b == "string" && b.match("px") && (b = b.replace(/px/g, "")), w.run(N, b, C);
  913. });
  914. }, animObject: I, getDeferredAnimation: function(u, P, O) {
  915. var N = I(P), C = 0, b = 0;
  916. return (O ? [O] : u.series).forEach(function(w) {
  917. w = I(w.options.animation), C = P && F(P.defer) ? N.defer : Math.max(C, w.duration + w.defer), b = Math.min(N.duration, w.duration);
  918. }), u.renderer.forExport && (C = 0), { defer: Math.max(0, C - b), duration: Math.min(C, b) };
  919. }, setAnimation: function(u, P) {
  920. P.renderer.globalAnimation = d(u, P.options.chart.animation, !0);
  921. }, stop: Z };
  922. }), E(h, "Core/Renderer/HTML/AST.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j) {
  923. var I = y.SVG_NS, Z = j.attr, F = j.createElement, U = j.error, H = j.isFunction, W = j.isString, R = j.objectEach, S = j.splat, v = (j = y.win.trustedTypes) && H(j.createPolicy) && j.createPolicy("highcharts", { createHTML: function(P) {
  924. return P;
  925. } }), d = v ? v.createHTML("") : "";
  926. try {
  927. var u = !!new DOMParser().parseFromString(d, "text/html");
  928. } catch {
  929. u = !1;
  930. }
  931. return H = function() {
  932. function P(O) {
  933. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  934. }
  935. return P.filterUserAttributes = function(O) {
  936. return R(O, function(N, C) {
  937. var b = !0;
  938. P.allowedAttributes.indexOf(C) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(C) !== -1 && (b = W(N) && P.allowedReferences.some(function(w) {
  939. return N.indexOf(w) === 0;
  940. })), b || (U("Highcharts warning: Invalid attribute '" + C + "' in config"), delete O[C]);
  941. }), O;
  942. }, P.setElementHTML = function(O, N) {
  943. O.innerHTML = P.emptyHTML, N && new P(N).addToDOM(O);
  944. }, P.prototype.addToDOM = function(O) {
  945. function N(C, b) {
  946. var w;
  947. return S(C).forEach(function(x) {
  948. var a = x.tagName, c = x.textContent ? y.doc.createTextNode(x.textContent) : void 0;
  949. if (a)
  950. if (a === "#text")
  951. var p = c;
  952. else if (P.allowedTags.indexOf(a) !== -1) {
  953. a = y.doc.createElementNS(a === "svg" ? I : b.namespaceURI || I, a);
  954. var i = x.attributes || {};
  955. R(x, function(l, s) {
  956. s !== "tagName" && s !== "attributes" && s !== "children" && s !== "textContent" && (i[s] = l);
  957. }), Z(a, P.filterUserAttributes(i)), c && a.appendChild(c), N(x.children || [], a), p = a;
  958. } else
  959. U("Highcharts warning: Invalid tagName " + a + " in config");
  960. p && b.appendChild(p), w = p;
  961. }), w;
  962. }
  963. return N(this.nodes, O);
  964. }, P.prototype.parseMarkup = function(O) {
  965. var N = [];
  966. if (O = O.trim(), u)
  967. O = new DOMParser().parseFromString(v ? v.createHTML(O) : O, "text/html");
  968. else {
  969. var C = F("div");
  970. C.innerHTML = O, O = { body: C };
  971. }
  972. var b = function(w, x) {
  973. var a = w.nodeName.toLowerCase(), c = { tagName: a };
  974. if (a === "#text" && (c.textContent = w.textContent || ""), a = w.attributes) {
  975. var p = {};
  976. [].forEach.call(a, function(l) {
  977. p[l.name] = l.value;
  978. }), c.attributes = p;
  979. }
  980. if (w.childNodes.length) {
  981. var i = [];
  982. [].forEach.call(w.childNodes, function(l) {
  983. b(l, i);
  984. }), i.length && (c.children = i);
  985. }
  986. x.push(c);
  987. };
  988. return [].forEach.call(O.body.childNodes, function(w) {
  989. return b(w, N);
  990. }), N;
  991. }, P.allowedAttributes = "aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "), P.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), P.allowedTags = "a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "), P.emptyHTML = d, P;
  992. }(), H;
  993. }), E(
  994. h,
  995. "Core/FormatUtilities.js",
  996. [h["Core/DefaultOptions.js"], h["Core/Utilities.js"]],
  997. function(y, j) {
  998. function I(S, v, d, u) {
  999. S = +S || 0, v = +v;
  1000. var P = Z.lang, O = (S.toString().split(".")[1] || "").split("e")[0].length, N = S.toString().split("e"), C = v;
  1001. if (v === -1)
  1002. v = Math.min(O, 20);
  1003. else if (!H(v))
  1004. v = 2;
  1005. else if (v && N[1] && 0 > N[1]) {
  1006. var b = v + +N[1];
  1007. 0 <= b ? (N[0] = (+N[0]).toExponential(b).split("e")[0], v = b) : (N[0] = N[0].split(".")[0] || 0, S = 20 > v ? (N[0] * Math.pow(10, N[1])).toFixed(v) : 0, N[1] = 0);
  1008. }
  1009. b = (Math.abs(N[1] ? N[0] : S) + Math.pow(10, -Math.max(v, O) - 1)).toFixed(v), O = String(R(b));
  1010. var w = 3 < O.length ? O.length % 3 : 0;
  1011. return d = W(d, P.decimalPoint), u = W(u, P.thousandsSep), S = (0 > S ? "-" : "") + (w ? O.substr(0, w) + u : ""), S = 0 > +N[1] && !C ? "0" : S + O.substr(w).replace(/(\d{3})(?=\d)/g, "$1" + u), v && (S += d + b.slice(-v)), N[1] && +S != 0 && (S += "e" + N[1]), S;
  1012. }
  1013. var Z = y.defaultOptions, F = y.defaultTime, U = j.getNestedProperty, H = j.isNumber, W = j.pick, R = j.pInt;
  1014. return { dateFormat: function(S, v, d) {
  1015. return F.dateFormat(S, v, d);
  1016. }, format: function(S, v, d) {
  1017. var u = "{", P = !1, O = /f$/, N = /\.([0-9])/, C = Z.lang, b = d && d.time || F;
  1018. d = d && d.numberFormatter || I;
  1019. for (var w = []; S; ) {
  1020. var x = S.indexOf(u);
  1021. if (x === -1)
  1022. break;
  1023. var a = S.slice(0, x);
  1024. if (P) {
  1025. if (a = a.split(":"), u = U(a.shift() || "", v), a.length && typeof u == "number")
  1026. if (a = a.join(":"), O.test(a)) {
  1027. var c = parseInt((a.match(N) || ["", "-1"])[1], 10);
  1028. u !== null && (u = d(u, c, C.decimalPoint, -1 < a.indexOf(",") ? C.thousandsSep : ""));
  1029. } else
  1030. u = b.dateFormat(a, u);
  1031. w.push(u);
  1032. } else
  1033. w.push(a);
  1034. S = S.slice(x + 1), u = (P = !P) ? "}" : "{";
  1035. }
  1036. return w.push(S), w.join("");
  1037. }, numberFormat: I };
  1038. }
  1039. ), E(h, "Core/Renderer/RendererUtilities.js", [h["Core/Utilities.js"]], function(y) {
  1040. var j = y.clamp, I = y.pick, Z = y.stableSort, F;
  1041. return function(U) {
  1042. function H(W, R, S) {
  1043. var v = W, d = v.reducedLen || R, u = function(w, x) {
  1044. return (x.rank || 0) - (w.rank || 0);
  1045. }, P = function(w, x) {
  1046. return w.target - x.target;
  1047. }, O, N = !0, C = [], b = 0;
  1048. for (O = W.length; O--; )
  1049. b += W[O].size;
  1050. if (b > d) {
  1051. for (Z(W, u), b = O = 0; b <= d; )
  1052. b += W[O].size, O++;
  1053. C = W.splice(O - 1, W.length);
  1054. }
  1055. for (Z(W, P), W = W.map(function(w) {
  1056. return { size: w.size, targets: [w.target], align: I(w.align, 0.5) };
  1057. }); N; ) {
  1058. for (O = W.length; O--; )
  1059. d = W[O], u = (Math.min.apply(0, d.targets) + Math.max.apply(0, d.targets)) / 2, d.pos = j(
  1060. u - d.size * d.align,
  1061. 0,
  1062. R - d.size
  1063. );
  1064. for (O = W.length, N = !1; O--; )
  1065. 0 < O && W[O - 1].pos + W[O - 1].size > W[O].pos && (W[O - 1].size += W[O].size, W[O - 1].targets = W[O - 1].targets.concat(W[O].targets), W[O - 1].align = 0.5, W[O - 1].pos + W[O - 1].size > R && (W[O - 1].pos = R - W[O - 1].size), W.splice(O, 1), N = !0);
  1066. }
  1067. return v.push.apply(v, C), O = 0, W.some(function(w) {
  1068. var x = 0;
  1069. return (w.targets || []).some(function() {
  1070. return v[O].pos = w.pos + x, typeof S < "u" && Math.abs(v[O].pos - v[O].target) > S ? (v.slice(0, O + 1).forEach(function(a) {
  1071. return delete a.pos;
  1072. }), v.reducedLen = (v.reducedLen || R) - 0.1 * R, v.reducedLen > 0.1 * R && H(v, R, S), !0) : (x += v[O].size, O++, !1);
  1073. });
  1074. }), Z(v, P), v;
  1075. }
  1076. U.distribute = H;
  1077. }(F || (F = {})), F;
  1078. }), E(h, "Core/Renderer/SVG/SVGElement.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Renderer/HTML/AST.js"], h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F) {
  1079. var U = y.animate, H = y.animObject, W = y.stop, R = Z.deg2rad, S = Z.doc, v = Z.noop, d = Z.svg, u = Z.SVG_NS, P = Z.win, O = F.addEvent, N = F.attr, C = F.createElement, b = F.css, w = F.defined, x = F.erase, a = F.extend, c = F.fireEvent, p = F.isArray, i = F.isFunction, l = F.isNumber, s = F.isString, t = F.merge, o = F.objectEach, n = F.pick, A = F.pInt, _ = F.syncTimeout, D = F.uniqueKey;
  1080. return y = function() {
  1081. function B() {
  1082. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = u, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  1083. }
  1084. return B.prototype._defaultGetter = function(T) {
  1085. return T = n(this[T + "Value"], this[T], this.element ? this.element.getAttribute(T) : null, 0), /^[\-0-9\.]+$/.test(T) && (T = parseFloat(T)), T;
  1086. }, B.prototype._defaultSetter = function(T, X, g) {
  1087. g.setAttribute(X, T);
  1088. }, B.prototype.add = function(T) {
  1089. var X = this.renderer, g = this.element;
  1090. if (T && (this.parentGroup = T), this.parentInverted = T && T.inverted, typeof this.textStr < "u" && this.element.nodeName === "text" && X.buildText(this), this.added = !0, !T || T.handleZ || this.zIndex)
  1091. var m = this.zIndexSetter();
  1092. return m || (T ? T.element : X.box).appendChild(g), this.onAdd && this.onAdd(), this;
  1093. }, B.prototype.addClass = function(T, X) {
  1094. var g = X ? "" : this.attr("class") || "";
  1095. return T = (T || "").split(/ /g).reduce(function(m, L) {
  1096. return g.indexOf(L) === -1 && m.push(L), m;
  1097. }, g ? [g] : []).join(" "), T !== g && this.attr("class", T), this;
  1098. }, B.prototype.afterSetters = function() {
  1099. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  1100. }, B.prototype.align = function(T, X, g) {
  1101. var m = {}, L = this.renderer, Y = L.alignedObjects, V, Q, k;
  1102. T ? (this.alignOptions = T, this.alignByTranslate = X, (!g || s(g)) && (this.alignTo = V = g || "renderer", x(Y, this), Y.push(this), g = void 0)) : (T = this.alignOptions, X = this.alignByTranslate, V = this.alignTo), g = n(g, L[V], V === "scrollablePlotBox" ? L.plotBox : void 0, L), V = T.align;
  1103. var G = T.verticalAlign;
  1104. return L = (g.x || 0) + (T.x || 0), Y = (g.y || 0) + (T.y || 0), V === "right" ? Q = 1 : V === "center" && (Q = 2), Q && (L += (g.width - (T.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), G === "bottom" ? k = 1 : G === "middle" && (k = 2), k && (Y += (g.height - (T.height || 0)) / k), m[X ? "translateY" : "y"] = Math.round(Y), this[this.placed ? "animate" : "attr"](m), this.placed = !0, this.alignAttr = m, this;
  1105. }, B.prototype.alignSetter = function(T) {
  1106. var X = { left: "start", center: "middle", right: "end" };
  1107. X[T] && (this.alignValue = T, this.element.setAttribute(
  1108. "text-anchor",
  1109. X[T]
  1110. ));
  1111. }, B.prototype.animate = function(T, X, g) {
  1112. var m = this, L = H(n(X, this.renderer.globalAnimation, !0));
  1113. return X = L.defer, n(S.hidden, S.msHidden, S.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (g && (L.complete = g), _(function() {
  1114. m.element && U(m, T, L);
  1115. }, X)) : (this.attr(T, void 0, g), o(T, function(Y, V) {
  1116. L.step && L.step.call(this, Y, { prop: V, pos: 1, elem: this });
  1117. }, this)), this;
  1118. }, B.prototype.applyTextOutline = function(T) {
  1119. var X = this.element;
  1120. T.indexOf("contrast") !== -1 && (T = T.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  1121. var g = T.split(" ");
  1122. if (T = g[g.length - 1], (g = g[0]) && g !== "none" && Z.svg) {
  1123. this.fakeTS = !0, this.ySetter = this.xSetter, g = g.replace(/(^[\d\.]+)(.*?)$/g, function(Y, V, Q) {
  1124. return 2 * Number(V) + Q;
  1125. }), this.removeTextOutline();
  1126. var m = S.createElementNS(u, "tspan");
  1127. N(m, { class: "highcharts-text-outline", fill: T, stroke: T, "stroke-width": g, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(Y) {
  1128. var V = Y.cloneNode(!0);
  1129. V.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  1130. return V.removeAttribute(Q);
  1131. }), m.appendChild(V);
  1132. });
  1133. var L = S.createElementNS(u, "tspan");
  1134. L.textContent = "​", ["x", "y"].forEach(function(Y) {
  1135. var V = X.getAttribute(Y);
  1136. V && L.setAttribute(Y, V);
  1137. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  1138. }
  1139. }, B.prototype.attr = function(T, X, g, m) {
  1140. var L = this.element, Y = this.symbolCustomAttribs, V, Q = this, k, G;
  1141. if (typeof T == "string" && typeof X < "u") {
  1142. var z = T;
  1143. T = {}, T[z] = X;
  1144. }
  1145. return typeof T == "string" ? Q = (this[T + "Getter"] || this._defaultGetter).call(this, T, L) : (o(T, function($, q) {
  1146. k = !1, m || W(this, q), this.symbolName && Y.indexOf(q) !== -1 && (V || (this.symbolAttr(T), V = !0), k = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), k || (G = this[q + "Setter"] || this._defaultSetter, G.call(this, $, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, $, G));
  1147. }, this), this.afterSetters()), g && g.call(this), Q;
  1148. }, B.prototype.clip = function(T) {
  1149. return this.attr("clip-path", T ? "url(" + this.renderer.url + "#" + T.id + ")" : "none");
  1150. }, B.prototype.crisp = function(T, X) {
  1151. X = X || T.strokeWidth || 0;
  1152. var g = Math.round(X) % 2 / 2;
  1153. return T.x = Math.floor(T.x || this.x || 0) + g, T.y = Math.floor(T.y || this.y || 0) + g, T.width = Math.floor((T.width || this.width || 0) - 2 * g), T.height = Math.floor((T.height || this.height || 0) - 2 * g), w(T.strokeWidth) && (T.strokeWidth = X), T;
  1154. }, B.prototype.complexColor = function(T, X, g) {
  1155. var m = this.renderer, L, Y, V, Q, k, G, z, $, q, it, et = [], nt;
  1156. c(this.renderer, "complexColor", { args: arguments }, function() {
  1157. if (T.radialGradient ? Y = "radialGradient" : T.linearGradient && (Y = "linearGradient"), Y) {
  1158. if (V = T[Y], k = m.gradients, G = T.stops, q = g.radialReference, p(V) && (T[Y] = V = { x1: V[0], y1: V[1], x2: V[2], y2: V[3], gradientUnits: "userSpaceOnUse" }), Y === "radialGradient" && q && !w(V.gradientUnits) && (Q = V, V = t(V, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), o(V, function(ct, gt) {
  1159. gt !== "id" && et.push(gt, ct);
  1160. }), o(G, function(ct) {
  1161. et.push(ct);
  1162. }), et = et.join(","), k[et])
  1163. it = k[et].attr("id");
  1164. else {
  1165. V.id = it = D();
  1166. var rt = k[et] = m.createElement(Y).attr(V).add(m.defs);
  1167. rt.radAttr = Q, rt.stops = [], G.forEach(function(ct) {
  1168. ct[1].indexOf("rgba") === 0 ? (L = I.parse(ct[1]), z = L.get("rgb"), $ = L.get("a")) : (z = ct[1], $ = 1), ct = m.createElement("stop").attr({
  1169. offset: ct[0],
  1170. "stop-color": z,
  1171. "stop-opacity": $
  1172. }).add(rt), rt.stops.push(ct);
  1173. });
  1174. }
  1175. nt = "url(" + m.url + "#" + it + ")", g.setAttribute(X, nt), g.gradient = et, T.toString = function() {
  1176. return nt;
  1177. };
  1178. }
  1179. });
  1180. }, B.prototype.css = function(T) {
  1181. var X = this.styles, g = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], Y = "", V = !X;
  1182. if (T && T.color && (T.fill = T.color), X && o(T, function(G, z) {
  1183. X && X[z] !== G && (g[z] = G, V = !0);
  1184. }), V) {
  1185. if (X && (T = a(X, g)), T) {
  1186. if (T.width === null || T.width === "auto")
  1187. delete this.textWidth;
  1188. else if (m.nodeName.toLowerCase() === "text" && T.width)
  1189. var Q = this.textWidth = A(T.width);
  1190. }
  1191. if (this.styles = T, Q && !d && this.renderer.forExport && delete T.width, m.namespaceURI === this.SVG_NS) {
  1192. var k = function(G, z) {
  1193. return "-" + z.toLowerCase();
  1194. };
  1195. o(T, function(G, z) {
  1196. L.indexOf(z) === -1 && (Y += z.replace(/([A-Z])/g, k) + ":" + G + ";");
  1197. }), Y && N(m, "style", Y);
  1198. } else
  1199. b(m, T);
  1200. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), T && T.textOutline && this.applyTextOutline(T.textOutline));
  1201. }
  1202. return this;
  1203. }, B.prototype.dashstyleSetter = function(T) {
  1204. var X = this["stroke-width"];
  1205. if (X === "inherit" && (X = 1), T = T && T.toLowerCase()) {
  1206. var g = T.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot", "3,1,1,1").replace("shortdot", "1,1,").replace("shortdash", "3,1,").replace("longdash", "8,3,").replace(/dot/g, "1,3,").replace("dash", "4,3,").replace(/,$/, "").split(",");
  1207. for (T = g.length; T--; )
  1208. g[T] = "" + A(g[T]) * n(X, NaN);
  1209. T = g.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", T);
  1210. }
  1211. }, B.prototype.destroy = function() {
  1212. var T = this, X = T.element || {}, g = T.renderer, m = X.ownerSVGElement, L = g.isSVG && X.nodeName === "SPAN" && T.parentGroup || void 0;
  1213. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, W(T), T.clipPath && m) {
  1214. var Y = T.clipPath;
  1215. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function(V) {
  1216. -1 < V.getAttribute("clip-path").indexOf(Y.element.id) && V.removeAttribute("clip-path");
  1217. }), T.clipPath = Y.destroy();
  1218. }
  1219. if (T.stops) {
  1220. for (m = 0; m < T.stops.length; m++)
  1221. T.stops[m].destroy();
  1222. T.stops.length = 0, T.stops = void 0;
  1223. }
  1224. for (T.safeRemoveChild(X), g.styledMode || T.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  1225. X = L.parentGroup, T.safeRemoveChild(L.div), delete L.div, L = X;
  1226. T.alignTo && x(g.alignedObjects, T), o(T, function(V, Q) {
  1227. T[Q] && T[Q].parentGroup === T && T[Q].destroy && T[Q].destroy(), delete T[Q];
  1228. });
  1229. }, B.prototype.destroyShadows = function() {
  1230. (this.shadows || []).forEach(function(T) {
  1231. this.safeRemoveChild(T);
  1232. }, this), this.shadows = void 0;
  1233. }, B.prototype.destroyTextPath = function(T, X) {
  1234. var g = T.getElementsByTagName("text")[0];
  1235. if (g) {
  1236. if (g.removeAttribute("dx"), g.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && g.getElementsByTagName("textPath").length) {
  1237. for (T = this.textPathWrapper.element.childNodes; T.length; )
  1238. g.appendChild(T[0]);
  1239. g.removeChild(this.textPathWrapper.element);
  1240. }
  1241. } else
  1242. (T.getAttribute("dx") || T.getAttribute("dy")) && (T.removeAttribute("dx"), T.removeAttribute("dy"));
  1243. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  1244. }, B.prototype.dSetter = function(T, X, g) {
  1245. p(T) && (typeof T[0] == "string" && (T = this.renderer.pathToSegments(T)), this.pathArray = T, T = T.reduce(function(m, L, Y) {
  1246. return L && L.join ? (Y ? m + " " : "") + L.join(" ") : (L || "").toString();
  1247. }, "")), /(NaN| {2}|^$)/.test(T) && (T = "M 0 0"), this[X] !== T && (g.setAttribute(X, T), this[X] = T);
  1248. }, B.prototype.fadeOut = function(T) {
  1249. var X = this;
  1250. X.animate({ opacity: 0 }, { duration: n(T, 150), complete: function() {
  1251. X.attr({ y: -9999 }).hide();
  1252. } });
  1253. }, B.prototype.fillSetter = function(T, X, g) {
  1254. typeof T == "string" ? g.setAttribute(X, T) : T && this.complexColor(T, X, g);
  1255. }, B.prototype.getBBox = function(T, X) {
  1256. var g = this.renderer, m = this.element, L = this.styles, Y = this.textStr, V = g.cache, Q = g.cacheKeys, k = m.namespaceURI === this.SVG_NS;
  1257. X = n(X, this.rotation, 0);
  1258. var G = g.styledMode ? m && B.prototype.getStyle.call(m, "font-size") : L && L.fontSize, z;
  1259. if (w(Y)) {
  1260. var $ = Y.toString();
  1261. $.indexOf("<") === -1 && ($ = $.replace(/[0-9]/g, "0")), $ += ["", X, G, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  1262. }
  1263. if ($ && !T && (z = V[$]), !z) {
  1264. if (k || g.forExport) {
  1265. try {
  1266. var q = this.fakeTS && function(it) {
  1267. var et = m.querySelector(".highcharts-text-outline");
  1268. et && b(et, { display: it });
  1269. };
  1270. i(q) && q("none"), z = m.getBBox ? a({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  1271. } catch {
  1272. }
  1273. (!z || 0 > z.width) && (z = {
  1274. width: 0,
  1275. height: 0
  1276. });
  1277. } else
  1278. z = this.htmlGetBBox();
  1279. if (g.isSVG && (T = z.width, g = z.height, k && (z.height = g = { "11px,17": 14, "13px,20": 16 }[(G || "") + "," + Math.round(g)] || g), X && (k = X * R, z.width = Math.abs(g * Math.sin(k)) + Math.abs(T * Math.cos(k)), z.height = Math.abs(g * Math.cos(k)) + Math.abs(T * Math.sin(k)))), $ && (Y === "" || 0 < z.height)) {
  1280. for (; 250 < Q.length; )
  1281. delete V[Q.shift()];
  1282. V[$] || Q.push($), V[$] = z;
  1283. }
  1284. }
  1285. return z;
  1286. }, B.prototype.getStyle = function(T) {
  1287. return P.getComputedStyle(this.element || this, "").getPropertyValue(T);
  1288. }, B.prototype.hasClass = function(T) {
  1289. return ("" + this.attr("class")).split(" ").indexOf(T) !== -1;
  1290. }, B.prototype.hide = function(T) {
  1291. return T ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  1292. }, B.prototype.htmlGetBBox = function() {
  1293. return { height: 0, width: 0, x: 0, y: 0 };
  1294. }, B.prototype.init = function(T, X) {
  1295. this.element = X === "span" ? C(X) : S.createElementNS(this.SVG_NS, X), this.renderer = T, c(this, "afterInit");
  1296. }, B.prototype.invert = function(T) {
  1297. return this.inverted = T, this.updateTransform(), this;
  1298. }, B.prototype.on = function(T, X) {
  1299. var g = this.onEvents;
  1300. return g[T] && g[T](), g[T] = O(
  1301. this.element,
  1302. T,
  1303. X
  1304. ), this;
  1305. }, B.prototype.opacitySetter = function(T, X, g) {
  1306. this.opacity = T = Number(Number(T).toFixed(3)), g.setAttribute(X, T);
  1307. }, B.prototype.removeClass = function(T) {
  1308. return this.attr("class", ("" + this.attr("class")).replace(s(T) ? new RegExp("(^| )" + T + "( |$)") : T, " ").replace(/ +/g, " ").trim());
  1309. }, B.prototype.removeTextOutline = function() {
  1310. var T = this.element.querySelector("tspan.highcharts-text-outline");
  1311. T && this.safeRemoveChild(T);
  1312. }, B.prototype.safeRemoveChild = function(T) {
  1313. var X = T.parentNode;
  1314. X && X.removeChild(T);
  1315. }, B.prototype.setRadialReference = function(T) {
  1316. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  1317. return this.element.radialReference = T, X && X.radAttr && X.animate(this.renderer.getRadialAttr(T, X.radAttr)), this;
  1318. }, B.prototype.setTextPath = function(T, X) {
  1319. var g = this.element, m = this.text ? this.text.element : g, L = { textAnchor: "text-anchor" }, Y = !1, V = this.textPathWrapper, Q = !V;
  1320. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  1321. var k = j.filterUserAttributes(X.attributes);
  1322. if (T && X && X.enabled) {
  1323. V && V.element.parentNode === null ? (Q = !0, V = V.destroy()) : V && this.removeTextOutline.call(V.parentGroup), this.options && this.options.padding && (k.dx = -this.options.padding), V || (this.textPathWrapper = V = this.renderer.createElement("textPath"), Y = !0);
  1324. var G = V.element;
  1325. if ((X = T.element.getAttribute("id")) || T.element.setAttribute("id", X = D()), Q)
  1326. for (m.setAttribute("y", 0), l(k.dx) && m.setAttribute("x", -k.dx), T = [].slice.call(m.childNodes), Q = 0; Q < T.length; Q++) {
  1327. var z = T[Q];
  1328. z.nodeType !== P.Node.TEXT_NODE && z.nodeName !== "tspan" || G.appendChild(z);
  1329. }
  1330. Y && V && V.add({ element: m }), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), w(k.dy) && (G.parentNode.setAttribute("dy", k.dy), delete k.dy), w(k.dx) && (G.parentNode.setAttribute("dx", k.dx), delete k.dx), o(k, function($, q) {
  1331. G.setAttribute(L[q] || q, $);
  1332. }), g.removeAttribute("transform"), this.removeTextOutline.call(V), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = v;
  1333. } else
  1334. V && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(g, T), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  1335. return this;
  1336. }, B.prototype.shadow = function(T, X, g) {
  1337. var m = [], L = this.element, Y = this.oldShadowOptions, V = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, k;
  1338. if (T === !0 ? k = V : typeof T == "object" && (k = a(V, T)), k && (k && Y && o(k, function(it, et) {
  1339. it !== Y[et] && (Q = !0);
  1340. }), Q && this.destroyShadows(), this.oldShadowOptions = k), !k)
  1341. this.destroyShadows();
  1342. else if (!this.shadows) {
  1343. var G = k.opacity / k.width, z = this.parentInverted ? "translate(" + k.offsetY + ", " + k.offsetX + ")" : "translate(" + k.offsetX + ", " + k.offsetY + ")";
  1344. for (V = 1; V <= k.width; V++) {
  1345. var $ = L.cloneNode(!1), q = 2 * k.width + 1 - 2 * V;
  1346. N($, { stroke: T.color || "#000000", "stroke-opacity": G * V, "stroke-width": q, transform: z, fill: "none" }), $.setAttribute("class", ($.getAttribute("class") || "") + " highcharts-shadow"), g && (N($, "height", Math.max(N($, "height") - q, 0)), $.cutHeight = q), X ? X.element.appendChild($) : L.parentNode && L.parentNode.insertBefore($, L), m.push($);
  1347. }
  1348. this.shadows = m;
  1349. }
  1350. return this;
  1351. }, B.prototype.show = function(T) {
  1352. return this.attr({ visibility: T ? "inherit" : "visible" });
  1353. }, B.prototype.strokeSetter = function(T, X, g) {
  1354. this[X] = T, this.stroke && this["stroke-width"] ? (B.prototype.fillSetter.call(this, this.stroke, "stroke", g), g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : X === "stroke-width" && T === 0 && this.hasStroke ? (g.removeAttribute("stroke"), this.hasStroke = !1) : this.renderer.styledMode && this["stroke-width"] && (g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0);
  1355. }, B.prototype.strokeWidth = function() {
  1356. if (!this.renderer.styledMode)
  1357. return this["stroke-width"] || 0;
  1358. var T = this.getStyle("stroke-width"), X = 0;
  1359. if (T.indexOf("px") === T.length - 2)
  1360. X = A(T);
  1361. else if (T !== "") {
  1362. var g = S.createElementNS(u, "rect");
  1363. N(g, { width: T, "stroke-width": 0 }), this.element.parentNode.appendChild(g), X = g.getBBox().width, g.parentNode.removeChild(g);
  1364. }
  1365. return X;
  1366. }, B.prototype.symbolAttr = function(T) {
  1367. var X = this;
  1368. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g) {
  1369. X[g] = n(T[g], X[g]);
  1370. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  1371. }, B.prototype.textSetter = function(T) {
  1372. T !== this.textStr && (delete this.textPxLength, this.textStr = T, this.added && this.renderer.buildText(this));
  1373. }, B.prototype.titleSetter = function(T) {
  1374. var X = this.element, g = X.getElementsByTagName("title")[0] || S.createElementNS(this.SVG_NS, "title");
  1375. X.insertBefore ? X.insertBefore(g, X.firstChild) : X.appendChild(g), g.textContent = String(n(T, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  1376. /&gt;/g,
  1377. ">"
  1378. );
  1379. }, B.prototype.toFront = function() {
  1380. var T = this.element;
  1381. return T.parentNode.appendChild(T), this;
  1382. }, B.prototype.translate = function(T, X) {
  1383. return this.attr({ translateX: T, translateY: X });
  1384. }, B.prototype.updateShadows = function(T, X, g) {
  1385. var m = this.shadows;
  1386. if (m)
  1387. for (var L = m.length; L--; )
  1388. g.call(m[L], T === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : T === "d" ? this.d : X, T, m[L]);
  1389. }, B.prototype.updateTransform = function() {
  1390. var T = this.scaleX, X = this.scaleY, g = this.inverted, m = this.rotation, L = this.matrix, Y = this.element, V = this.translateX || 0, Q = this.translateY || 0;
  1391. g && (V += this.width, Q += this.height), V = ["translate(" + V + "," + Q + ")"], w(L) && V.push("matrix(" + L.join(",") + ")"), g ? V.push("rotate(90) scale(-1,1)") : m && V.push("rotate(" + m + " " + n(this.rotationOriginX, Y.getAttribute("x"), 0) + " " + n(this.rotationOriginY, Y.getAttribute("y") || 0) + ")"), (w(T) || w(X)) && V.push("scale(" + n(T, 1) + " " + n(X, 1) + ")"), V.length && Y.setAttribute("transform", V.join(" "));
  1392. }, B.prototype.visibilitySetter = function(T, X, g) {
  1393. T === "inherit" ? g.removeAttribute(X) : this[X] !== T && g.setAttribute(
  1394. X,
  1395. T
  1396. ), this[X] = T;
  1397. }, B.prototype.xGetter = function(T) {
  1398. return this.element.nodeName === "circle" && (T === "x" ? T = "cx" : T === "y" && (T = "cy")), this._defaultGetter(T);
  1399. }, B.prototype.zIndexSetter = function(T, X) {
  1400. var g = this.renderer, m = this.parentGroup, L = (m || g).element || g.box, Y = this.element;
  1401. g = L === g.box;
  1402. var V = !1, Q = this.added, k;
  1403. if (w(T) ? (Y.setAttribute("data-z-index", T), T = +T, this[X] === T && (Q = !1)) : w(this[X]) && Y.removeAttribute("data-z-index"), this[X] = T, Q) {
  1404. for ((T = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, k = X.length - 1; 0 <= k && !V; k--) {
  1405. m = X[k], Q = m.getAttribute("data-z-index");
  1406. var G = !w(Q);
  1407. m !== Y && (0 > T && G && !g && !k ? (L.insertBefore(Y, X[k]), V = !0) : (A(Q) <= T || G && (!w(T) || 0 <= T)) && (L.insertBefore(Y, X[k + 1] || null), V = !0));
  1408. }
  1409. V || (L.insertBefore(Y, X[g ? 3 : 0] || null), V = !0);
  1410. }
  1411. return V;
  1412. }, B;
  1413. }(), y.prototype["stroke-widthSetter"] = y.prototype.strokeSetter, y.prototype.yGetter = y.prototype.xGetter, y.prototype.matrixSetter = y.prototype.rotationOriginXSetter = y.prototype.rotationOriginYSetter = y.prototype.rotationSetter = y.prototype.scaleXSetter = y.prototype.scaleYSetter = y.prototype.translateXSetter = y.prototype.translateYSetter = y.prototype.verticalAlignSetter = function(B, T) {
  1414. this[T] = B, this.doTransform = !0;
  1415. }, y;
  1416. }), E(h, "Core/Renderer/RendererRegistry.js", [h["Core/Globals.js"]], function(y) {
  1417. var j;
  1418. return function(I) {
  1419. I.rendererTypes = {};
  1420. var Z;
  1421. I.getRendererType = function(F) {
  1422. return F === void 0 && (F = Z), I.rendererTypes[F] || I.rendererTypes[Z];
  1423. }, I.registerRendererType = function(F, U, H) {
  1424. I.rendererTypes[F] = U, (!Z || H) && (Z = F, y.Renderer = U);
  1425. };
  1426. }(j || (j = {})), j;
  1427. }), E(
  1428. h,
  1429. "Core/Renderer/SVG/SVGLabel.js",
  1430. [h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]],
  1431. function(y, j) {
  1432. var I = this && this.__extends || function() {
  1433. var S = function(v, d) {
  1434. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, P) {
  1435. u.__proto__ = P;
  1436. } || function(u, P) {
  1437. for (var O in P)
  1438. P.hasOwnProperty(O) && (u[O] = P[O]);
  1439. }, S(v, d);
  1440. };
  1441. return function(v, d) {
  1442. function u() {
  1443. this.constructor = v;
  1444. }
  1445. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  1446. };
  1447. }(), Z = j.defined, F = j.extend, U = j.isNumber, H = j.merge, W = j.pick, R = j.removeEvent;
  1448. return function(S) {
  1449. function v(d, u, P, O, N, C, b, w, x, a) {
  1450. var c = S.call(this) || this;
  1451. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(d, "g"), c.textStr = u, c.x = P, c.y = O, c.anchorX = C, c.anchorY = b, c.baseline = x, c.className = a, c.addClass(a === "button" ? "highcharts-no-tooltip" : "highcharts-label"), a && c.addClass("highcharts-" + a), c.text = d.text(void 0, 0, 0, w).attr({ zIndex: 1 });
  1452. var p;
  1453. return typeof N == "string" && ((p = /^url\((.*?)\)$/.test(N)) || c.renderer.symbols[N]) && (c.symbolKey = N), c.bBox = v.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = d.styledMode || p, c.deferredAttr = {}, c.alignFactor = 0, c;
  1454. }
  1455. return I(v, S), v.prototype.alignSetter = function(d) {
  1456. d = { left: 0, center: 0.5, right: 1 }[d], d !== this.alignFactor && (this.alignFactor = d, this.bBox && U(this.xSetting) && this.attr({ x: this.xSetting }));
  1457. }, v.prototype.anchorXSetter = function(d, u) {
  1458. this.anchorX = d, this.boxAttr(u, Math.round(d) - this.getCrispAdjust() - this.xSetting);
  1459. }, v.prototype.anchorYSetter = function(d, u) {
  1460. this.anchorY = d, this.boxAttr(u, d - this.ySetting);
  1461. }, v.prototype.boxAttr = function(d, u) {
  1462. this.box ? this.box.attr(d, u) : this.deferredAttr[d] = u;
  1463. }, v.prototype.css = function(d) {
  1464. if (d) {
  1465. var u = {};
  1466. d = H(d), v.textProps.forEach(function(O) {
  1467. typeof d[O] < "u" && (u[O] = d[O], delete d[O]);
  1468. }), this.text.css(u);
  1469. var P = "width" in u;
  1470. "fontSize" in u || "fontWeight" in u ? this.updateTextPadding() : P && this.updateBoxSize();
  1471. }
  1472. return y.prototype.css.call(this, d);
  1473. }, v.prototype.destroy = function() {
  1474. R(this.element, "mouseenter"), R(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  1475. }, v.prototype.fillSetter = function(d, u) {
  1476. d && (this.needsBox = !0), this.fill = d, this.boxAttr(u, d);
  1477. }, v.prototype.getBBox = function() {
  1478. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  1479. var d = this.padding, u = W(this.paddingLeft, d);
  1480. return { width: this.width, height: this.height, x: this.bBox.x - u, y: this.bBox.y - d };
  1481. }, v.prototype.getCrispAdjust = function() {
  1482. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  1483. this["stroke-width"],
  1484. 10
  1485. ) : 0) % 2 / 2;
  1486. }, v.prototype.heightSetter = function(d) {
  1487. this.heightSetting = d;
  1488. }, v.prototype.onAdd = function() {
  1489. var d = this.textStr;
  1490. this.text.add(this), this.attr({ text: Z(d) ? d : "", x: this.x, y: this.y }), this.box && Z(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  1491. }, v.prototype.paddingSetter = function(d, u) {
  1492. U(d) ? d !== this[u] && (this[u] = d, this.updateTextPadding()) : this[u] = void 0;
  1493. }, v.prototype.rSetter = function(d, u) {
  1494. this.boxAttr(u, d);
  1495. }, v.prototype.shadow = function(d) {
  1496. return d && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(d)), this;
  1497. }, v.prototype.strokeSetter = function(d, u) {
  1498. this.stroke = d, this.boxAttr(u, d);
  1499. }, v.prototype["stroke-widthSetter"] = function(d, u) {
  1500. d && (this.needsBox = !0), this["stroke-width"] = d, this.boxAttr(u, d);
  1501. }, v.prototype["text-alignSetter"] = function(d) {
  1502. this.textAlign = d;
  1503. }, v.prototype.textSetter = function(d) {
  1504. typeof d < "u" && this.text.attr({ text: d }), this.updateTextPadding();
  1505. }, v.prototype.updateBoxSize = function() {
  1506. var d = this.text.element.style, u = {}, P = this.padding, O = this.bBox = U(this.widthSetting) && U(this.heightSetting) && !this.textAlign || !Z(this.text.textStr) ? v.emptyBBox : this.text.getBBox();
  1507. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * P, d = this.renderer.fontMetrics(d && d.fontSize, this.text), this.baselineOffset = P + Math.min((this.text.firstLineMetrics || d).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - d.h) / 2), this.needsBox && (this.box || (P = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), P.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), P.add(this)), P = this.getCrispAdjust(), u.x = P, u.y = (this.baseline ? -this.baselineOffset : 0) + P, u.width = Math.round(this.width), u.height = Math.round(this.height), this.box.attr(F(u, this.deferredAttr)), this.deferredAttr = {});
  1508. }, v.prototype.updateTextPadding = function() {
  1509. var d = this.text;
  1510. this.updateBoxSize();
  1511. var u = this.baseline ? 0 : this.baselineOffset, P = W(this.paddingLeft, this.padding);
  1512. Z(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (P += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (P !== d.x || u !== d.y) && (d.attr("x", P), d.hasBoxWidthChanged && (this.bBox = d.getBBox(!0)), typeof u < "u" && d.attr("y", u)), d.x = P, d.y = u;
  1513. }, v.prototype.widthSetter = function(d) {
  1514. this.widthSetting = U(d) ? d : void 0;
  1515. }, v.prototype.getPaddedWidth = function() {
  1516. var d = this.padding, u = W(this.paddingLeft, d);
  1517. return d = W(this.paddingRight, d), (this.widthSetting || this.bBox.width || 0) + u + d;
  1518. }, v.prototype.xSetter = function(d) {
  1519. this.x = d, this.alignFactor && (d -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(d), this.attr("translateX", this.xSetting);
  1520. }, v.prototype.ySetter = function(d) {
  1521. this.ySetting = this.y = Math.round(d), this.attr("translateY", this.ySetting);
  1522. }, v.emptyBBox = { width: 0, height: 0, x: 0, y: 0 }, v.textProps = "color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "), v;
  1523. }(y);
  1524. }
  1525. ), E(
  1526. h,
  1527. "Core/Renderer/SVG/Symbols.js",
  1528. [h["Core/Utilities.js"]],
  1529. function(y) {
  1530. function j(W, R, S, v, d) {
  1531. var u = [];
  1532. if (d) {
  1533. var P = d.start || 0, O = H(d.r, S);
  1534. S = H(d.r, v || S);
  1535. var N = (d.end || 0) - 1e-3;
  1536. v = d.innerR;
  1537. var C = H(d.open, 1e-3 > Math.abs((d.end || 0) - P - 2 * Math.PI)), b = Math.cos(P), w = Math.sin(P), x = Math.cos(N), a = Math.sin(N);
  1538. P = H(d.longArc, 1e-3 > N - P - Math.PI ? 0 : 1), u.push(["M", W + O * b, R + S * w], ["A", O, S, 0, P, H(d.clockwise, 1), W + O * x, R + S * a]), F(v) && u.push(C ? ["M", W + v * x, R + v * a] : ["L", W + v * x, R + v * a], ["A", v, v, 0, P, F(d.clockwise) ? 1 - d.clockwise : 0, W + v * b, R + v * w]), C || u.push(["Z"]);
  1539. }
  1540. return u;
  1541. }
  1542. function I(W, R, S, v, d) {
  1543. return d && d.r ? Z(W, R, S, v, d) : [["M", W, R], ["L", W + S, R], ["L", W + S, R + v], ["L", W, R + v], ["Z"]];
  1544. }
  1545. function Z(W, R, S, v, d) {
  1546. return d = d && d.r || 0, [["M", W + d, R], ["L", W + S - d, R], ["C", W + S, R, W + S, R, W + S, R + d], ["L", W + S, R + v - d], ["C", W + S, R + v, W + S, R + v, W + S - d, R + v], ["L", W + d, R + v], ["C", W, R + v, W, R + v, W, R + v - d], ["L", W, R + d], ["C", W, R, W, R, W + d, R]];
  1547. }
  1548. var F = y.defined, U = y.isNumber, H = y.pick;
  1549. return { arc: j, callout: function(W, R, S, v, d) {
  1550. var u = Math.min(d && d.r || 0, S, v), P = u + 6, O = d && d.anchorX;
  1551. d = d && d.anchorY || 0;
  1552. var N = Z(W, R, S, v, { r: u });
  1553. return U(O) && (W + O >= S ? d > R + P && d < R + v - P ? N.splice(3, 1, ["L", W + S, d - 6], ["L", W + S + 6, d], ["L", W + S, d + 6], ["L", W + S, R + v - u]) : N.splice(3, 1, ["L", W + S, v / 2], ["L", O, d], ["L", W + S, v / 2], ["L", W + S, R + v - u]) : 0 >= W + O ? d > R + P && d < R + v - P ? N.splice(7, 1, ["L", W, d + 6], ["L", W - 6, d], ["L", W, d - 6], ["L", W, R + u]) : N.splice(7, 1, ["L", W, v / 2], ["L", O, d], ["L", W, v / 2], ["L", W, R + u]) : d && d > v && O > W + P && O < W + S - P ? N.splice(5, 1, ["L", O + 6, R + v], ["L", O, R + v + 6], ["L", O - 6, R + v], ["L", W + u, R + v]) : d && 0 > d && O > W + P && O < W + S - P && N.splice(1, 1, ["L", O - 6, R], ["L", O, R - 6], ["L", O + 6, R], ["L", S - u, R])), N;
  1554. }, circle: function(W, R, S, v) {
  1555. return j(W + S / 2, R + v / 2, S / 2, v / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  1556. }, diamond: function(W, R, S, v) {
  1557. return [["M", W + S / 2, R], ["L", W + S, R + v / 2], ["L", W + S / 2, R + v], ["L", W, R + v / 2], ["Z"]];
  1558. }, rect: I, roundedRect: Z, square: I, triangle: function(W, R, S, v) {
  1559. return [["M", W + S / 2, R], ["L", W + S, R + v], ["L", W, R + v], ["Z"]];
  1560. }, "triangle-down": function(W, R, S, v) {
  1561. return [["M", W, R], ["L", W + S, R], ["L", W + S / 2, R + v], ["Z"]];
  1562. } };
  1563. }
  1564. ), E(h, "Core/Renderer/SVG/TextBuilder.js", [h["Core/Renderer/HTML/AST.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j, I) {
  1565. var Z = j.doc, F = j.SVG_NS, U = j.win, H = I.attr, W = I.isString, R = I.objectEach, S = I.pick;
  1566. return function() {
  1567. function v(d) {
  1568. var u = d.styles;
  1569. this.renderer = d.renderer, this.svgElement = d, this.width = d.textWidth, this.textLineHeight = u && u.lineHeight, this.textOutline = u && u.textOutline, this.ellipsis = !(!u || u.textOverflow !== "ellipsis"), this.noWrap = !(!u || u.whiteSpace !== "nowrap"), this.fontSize = u && u.fontSize;
  1570. }
  1571. return v.prototype.buildSVG = function() {
  1572. var d = this.svgElement, u = d.element, P = d.renderer, O = S(d.textStr, "").toString(), N = O.indexOf("<") !== -1, C = u.childNodes;
  1573. P = this.width && !d.added && P.box;
  1574. var b = /<br.*?>/g, w = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  1575. if (w !== d.textCache) {
  1576. for (d.textCache = w, delete d.actualWidth, w = C.length; w--; )
  1577. u.removeChild(C[w]);
  1578. N || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || b.test(O)) ? O !== "" && (P && P.appendChild(u), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(d.element), this.modifyDOM(), this.ellipsis && (u.textContent || "").indexOf("…") !== -1 && d.attr(
  1579. "title",
  1580. this.unescapeEntities(d.textStr || "", ["&lt;", "&gt;"])
  1581. ), P && P.removeChild(u)) : u.appendChild(Z.createTextNode(this.unescapeEntities(O))), W(this.textOutline) && d.applyTextOutline && d.applyTextOutline(this.textOutline);
  1582. }
  1583. }, v.prototype.modifyDOM = function() {
  1584. var d = this, u = this.svgElement, P = H(u.element, "x");
  1585. u.firstLineMetrics = void 0;
  1586. for (var O; (O = u.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  1587. u.element.removeChild(O);
  1588. [].forEach.call(u.element.querySelectorAll("tspan.highcharts-br"), function(w, x) {
  1589. w.nextSibling && w.previousSibling && (x === 0 && w.previousSibling.nodeType === 1 && (u.firstLineMetrics = u.renderer.fontMetrics(void 0, w.previousSibling)), H(w, { dy: d.getLineHeight(w.nextSibling), x: P }));
  1590. });
  1591. var N = this.width || 0;
  1592. if (N) {
  1593. var C = function(w, x) {
  1594. var a = w.textContent || "", c = a.replace(/([^\^])-/g, "$1- ").split(" "), p = !d.noWrap && (1 < c.length || 1 < u.element.childNodes.length), i = d.getLineHeight(x), l = 0, s = u.actualWidth;
  1595. if (d.ellipsis)
  1596. a && d.truncate(w, a, void 0, 0, Math.max(0, N - parseInt(d.fontSize || 12, 10)), function(t, o) {
  1597. return t.substring(
  1598. 0,
  1599. o
  1600. ) + "…";
  1601. });
  1602. else if (p) {
  1603. for (a = [], p = []; x.firstChild && x.firstChild !== w; )
  1604. p.push(x.firstChild), x.removeChild(x.firstChild);
  1605. for (; c.length; )
  1606. c.length && !d.noWrap && 0 < l && (a.push(w.textContent || ""), w.textContent = c.join(" ").replace(/- /g, "-")), d.truncate(w, void 0, c, l === 0 && s || 0, N, function(t, o) {
  1607. return c.slice(0, o).join(" ").replace(/- /g, "-");
  1608. }), s = u.actualWidth, l++;
  1609. p.forEach(function(t) {
  1610. x.insertBefore(t, w);
  1611. }), a.forEach(function(t) {
  1612. x.insertBefore(Z.createTextNode(t), w), t = Z.createElementNS(F, "tspan"), t.textContent = "​", H(t, { dy: i, x: P }), x.insertBefore(t, w);
  1613. });
  1614. }
  1615. }, b = function(w) {
  1616. [].slice.call(w.childNodes).forEach(function(x) {
  1617. x.nodeType === U.Node.TEXT_NODE ? C(x, w) : (x.className.baseVal.indexOf("highcharts-br") !== -1 && (u.actualWidth = 0), b(x));
  1618. });
  1619. };
  1620. b(u.element);
  1621. }
  1622. }, v.prototype.getLineHeight = function(d) {
  1623. var u;
  1624. return d = d.nodeType === U.Node.TEXT_NODE ? d.parentElement : d, this.renderer.styledMode || (u = d && /(px|em)$/.test(d.style.fontSize) ? d.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  1625. this.textLineHeight.toString(),
  1626. 10
  1627. ) : this.renderer.fontMetrics(u, d || this.svgElement.element).h;
  1628. }, v.prototype.modifyTree = function(d) {
  1629. var u = this, P = function(O, N) {
  1630. var C = O.attributes;
  1631. C = C === void 0 ? {} : C;
  1632. var b = O.children, w = O.tagName, x = u.renderer.styledMode;
  1633. w === "b" || w === "strong" ? x ? C.class = "highcharts-strong" : C.style = "font-weight:bold;" + (C.style || "") : (w === "i" || w === "em") && (x ? C.class = "highcharts-emphasized" : C.style = "font-style:italic;" + (C.style || "")), W(C.style) && (C.style = C.style.replace(/(;| |^)color([ :])/, "$1fill$2")), w === "br" ? (C.class = "highcharts-br", O.textContent = "​", (N = d[N + 1]) && N.textContent && (N.textContent = N.textContent.replace(/^ +/gm, ""))) : w === "a" && b && b.some(function(a) {
  1634. return a.tagName === "#text";
  1635. }) && (O.children = [{ children: b, tagName: "tspan" }]), w !== "#text" && w !== "a" && (O.tagName = "tspan"), O.attributes = C, b && b.filter(function(a) {
  1636. return a.tagName !== "#text";
  1637. }).forEach(P);
  1638. };
  1639. d.forEach(P);
  1640. }, v.prototype.truncate = function(d, u, P, O, N, C) {
  1641. var b = this.svgElement, w = b.renderer, x = b.rotation, a = [], c = P ? 1 : 0, p = (u || P || "").length, i = p, l, s = function(o, n) {
  1642. n = n || o;
  1643. var A = d.parentNode;
  1644. if (A && typeof a[n] > "u")
  1645. if (A.getSubStringLength)
  1646. try {
  1647. a[n] = O + A.getSubStringLength(0, P ? n + 1 : n);
  1648. } catch {
  1649. }
  1650. else
  1651. w.getSpanWidth && (d.textContent = C(u || P, o), a[n] = O + w.getSpanWidth(b, d));
  1652. return a[n];
  1653. };
  1654. b.rotation = 0;
  1655. var t = s(d.textContent.length);
  1656. if (O + t > N) {
  1657. for (; c <= p; )
  1658. i = Math.ceil((c + p) / 2), P && (l = C(P, i)), t = s(i, l && l.length - 1), c === p ? c = p + 1 : t > N ? p = i - 1 : c = i;
  1659. p === 0 ? d.textContent = "" : u && p === u.length - 1 || (d.textContent = l || C(u || P, i));
  1660. }
  1661. P && P.splice(0, i), b.actualWidth = t, b.rotation = x;
  1662. }, v.prototype.unescapeEntities = function(d, u) {
  1663. return R(this.renderer.escapes, function(P, O) {
  1664. u && u.indexOf(P) !== -1 || (d = d.toString().replace(new RegExp(P, "g"), O));
  1665. }), d;
  1666. }, v;
  1667. }();
  1668. }), E(h, "Core/Renderer/SVG/SVGRenderer.js", [h["Core/Renderer/HTML/AST.js"], h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Renderer/RendererRegistry.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Renderer/SVG/SVGLabel.js"], h["Core/Renderer/SVG/Symbols.js"], h["Core/Renderer/SVG/TextBuilder.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U, H, W, R) {
  1669. var S = I.charts, v = I.deg2rad, d = I.doc, u = I.isFirefox, P = I.isMS, O = I.isWebKit, N = I.noop, C = I.SVG_NS, b = I.symbolSizes, w = I.win, x = R.addEvent, a = R.attr, c = R.createElement, p = R.css, i = R.defined, l = R.destroyObjectProperties, s = R.extend, t = R.isArray, o = R.isNumber, n = R.isObject, A = R.isString, _ = R.merge, D = R.pick, B = R.pInt, T = R.uniqueKey, X;
  1670. return I = function() {
  1671. function g(m, L, Y, V, Q, k, G) {
  1672. this.width = this.url = this.style = this.isSVG = this.imgCount = this.height = this.gradients = this.globalAnimation = this.defs = this.chartIndex = this.cacheKeys = this.cache = this.boxWrapper = this.box = this.alignedObjects = void 0, this.init(m, L, Y, V, Q, k, G);
  1673. }
  1674. return g.prototype.init = function(m, L, Y, V, Q, k, G) {
  1675. var z = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), $ = z.element;
  1676. G || z.css(this.getStyle(V)), m.appendChild($), a(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && a($, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = $, this.boxWrapper = z, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 9.3.3")), this.defs = this.createElement("defs").add(), this.allowHTML = k, this.forExport = Q, this.styledMode = G, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.setSize(L, Y, !1);
  1677. var q;
  1678. u && m.getBoundingClientRect && (L = function() {
  1679. p(m, { left: 0, top: 0 }), q = m.getBoundingClientRect(), p(m, { left: Math.ceil(q.left) - q.left + "px", top: Math.ceil(q.top) - q.top + "px" });
  1680. }, L(), this.unSubPixelFix = x(w, "resize", L));
  1681. }, g.prototype.definition = function(m) {
  1682. return new y([m]).addToDOM(this.defs.element);
  1683. }, g.prototype.getReferenceURL = function() {
  1684. if ((u || O) && d.getElementsByTagName("base").length) {
  1685. if (!i(X)) {
  1686. var m = T();
  1687. m = new y([{ tagName: "svg", attributes: { width: 8, height: 8 }, children: [{ tagName: "defs", children: [{ tagName: "clipPath", attributes: { id: m }, children: [{ tagName: "rect", attributes: { width: 4, height: 4 } }] }] }, { tagName: "rect", attributes: { id: "hitme", width: 8, height: 8, "clip-path": "url(#" + m + ")", fill: "rgba(0,0,0,0.001)" } }] }]).addToDOM(d.body), p(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  1688. var L = d.elementFromPoint(6, 6);
  1689. X = (L && L.id) === "hitme", d.body.removeChild(m);
  1690. }
  1691. if (X)
  1692. return w.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  1693. }
  1694. return "";
  1695. }, g.prototype.getStyle = function(m) {
  1696. return this.style = s({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  1697. }, g.prototype.setStyle = function(m) {
  1698. this.boxWrapper.css(this.getStyle(m));
  1699. }, g.prototype.isHidden = function() {
  1700. return !this.boxWrapper.getBBox().width;
  1701. }, g.prototype.destroy = function() {
  1702. var m = this.defs;
  1703. return this.box = null, this.boxWrapper = this.boxWrapper.destroy(), l(this.gradients || {}), this.gradients = null, m && (this.defs = m.destroy()), this.unSubPixelFix && this.unSubPixelFix(), this.alignedObjects = null;
  1704. }, g.prototype.createElement = function(m) {
  1705. var L = new this.Element();
  1706. return L.init(this, m), L;
  1707. }, g.prototype.getRadialAttr = function(m, L) {
  1708. return { cx: m[0] - m[2] / 2 + (L.cx || 0) * m[2], cy: m[1] - m[2] / 2 + (L.cy || 0) * m[2], r: (L.r || 0) * m[2] };
  1709. }, g.prototype.buildText = function(m) {
  1710. new W(m).buildSVG();
  1711. }, g.prototype.getContrast = function(m) {
  1712. return m = j.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  1713. }, g.prototype.button = function(m, L, Y, V, Q, k, G, z, $, q) {
  1714. var it = this.label(m, L, Y, $, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? _(Q) : {};
  1715. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(_({ padding: 8, r: 2 }, rt)), !et) {
  1716. rt = _({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  1717. var ct = rt.style;
  1718. delete rt.style, k = _(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(k || {}));
  1719. var gt = k.style;
  1720. delete k.style, G = _(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(G || {}));
  1721. var dt = G.style;
  1722. delete G.style, z = _(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(z || {}));
  1723. var lt = z.style;
  1724. delete z.style;
  1725. }
  1726. return x(it.element, P ? "mouseover" : "mouseenter", function() {
  1727. nt !== 3 && it.setState(1);
  1728. }), x(it.element, P ? "mouseout" : "mouseleave", function() {
  1729. nt !== 3 && it.setState(nt);
  1730. }), it.setState = function(at) {
  1731. at !== 1 && (it.state = nt = at), it.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-" + ["normal", "hover", "pressed", "disabled"][at || 0]), et || it.attr([rt, k, G, z][at || 0]).css([ct, gt, dt, lt][at || 0]);
  1732. }, et || it.attr(rt).css(s({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  1733. return at.stopPropagation();
  1734. }).on("click", function(at) {
  1735. nt !== 3 && V.call(it, at);
  1736. });
  1737. }, g.prototype.crispLine = function(m, L, Y) {
  1738. Y === void 0 && (Y = "round");
  1739. var V = m[0], Q = m[1];
  1740. return i(V[1]) && V[1] === Q[1] && (V[1] = Q[1] = Math[Y](V[1]) - L % 2 / 2), i(V[2]) && V[2] === Q[2] && (V[2] = Q[2] = Math[Y](V[2]) + L % 2 / 2), m;
  1741. }, g.prototype.path = function(m) {
  1742. var L = this.styledMode ? {} : { fill: "none" };
  1743. return t(m) ? L.d = m : n(m) && s(L, m), this.createElement("path").attr(L);
  1744. }, g.prototype.circle = function(m, L, Y) {
  1745. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: Y }, L = this.createElement("circle"), L.xSetter = L.ySetter = function(V, Q, k) {
  1746. k.setAttribute("c" + Q, V);
  1747. }, L.attr(m);
  1748. }, g.prototype.arc = function(m, L, Y, V, Q, k) {
  1749. return n(m) ? (V = m, L = V.y, Y = V.r, m = V.x) : V = { innerR: V, start: Q, end: k }, m = this.symbol("arc", m, L, Y, Y, V), m.r = Y, m;
  1750. }, g.prototype.rect = function(m, L, Y, V, Q, k) {
  1751. Q = n(m) ? m.r : Q;
  1752. var G = this.createElement("rect");
  1753. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(Y, 0), height: Math.max(V, 0) }, this.styledMode || (typeof k < "u" && (m["stroke-width"] = k, m = G.crisp(m)), m.fill = "none"), Q && (m.r = Q), G.rSetter = function(z, $, q) {
  1754. G.r = z, a(q, { rx: z, ry: z });
  1755. }, G.rGetter = function() {
  1756. return G.r || 0;
  1757. }, G.attr(m);
  1758. }, g.prototype.setSize = function(m, L, Y) {
  1759. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  1760. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  1761. }, duration: D(
  1762. Y,
  1763. !0
  1764. ) ? void 0 : 0 }), this.alignElements();
  1765. }, g.prototype.g = function(m) {
  1766. var L = this.createElement("g");
  1767. return m ? L.attr({ class: "highcharts-" + m }) : L;
  1768. }, g.prototype.image = function(m, L, Y, V, Q, k) {
  1769. var G = { preserveAspectRatio: "none" }, z = function(q, it) {
  1770. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  1771. };
  1772. o(L) && (G.x = L), o(Y) && (G.y = Y), o(V) && (G.width = V), o(Q) && (G.height = Q);
  1773. var $ = this.createElement("image").attr(G);
  1774. return L = function(q) {
  1775. z($.element, m), k.call($, q);
  1776. }, k ? (z(
  1777. $.element,
  1778. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  1779. ), Y = new w.Image(), x(Y, "load", L), Y.src = m, Y.complete && L({})) : z($.element, m), $;
  1780. }, g.prototype.symbol = function(m, L, Y, V, Q, k) {
  1781. var G = this, z = /^url\((.*?)\)$/, $ = z.test(m), q = !$ && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  1782. if (it) {
  1783. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(Y || 0), V || 0, Q || 0, k));
  1784. var nt = this.path(et);
  1785. G.styledMode || nt.attr("fill", "none"), s(nt, { symbolName: q || void 0, x: L, y: Y, width: V, height: Q }), k && s(nt, k);
  1786. } else if ($) {
  1787. var rt = m.match(z)[1], ct = nt = this.image(rt);
  1788. ct.imgwidth = D(b[rt] && b[rt].width, k && k.width), ct.imgheight = D(b[rt] && b[rt].height, k && k.height);
  1789. var gt = function(dt) {
  1790. return dt.attr({ width: dt.width, height: dt.height });
  1791. };
  1792. ["width", "height"].forEach(function(dt) {
  1793. ct[dt + "Setter"] = function(lt, at) {
  1794. var J = this["img" + at];
  1795. this[at] = lt, i(J) && (k && k.backgroundSize === "within" && this.width && this.height && (J = Math.round(J * Math.min(this.width / this.imgwidth, this.height / this.imgheight))), this.element && this.element.setAttribute(at, J), this.alignByTranslate || (lt = ((this[at] || 0) - J) / 2, this.attr(at === "width" ? { translateX: lt } : { translateY: lt })));
  1796. };
  1797. }), i(L) && ct.attr({ x: L, y: Y }), ct.isImg = !0, i(ct.imgwidth) && i(ct.imgheight) ? gt(ct) : (ct.attr({ width: 0, height: 0 }), c("img", { onload: function() {
  1798. var dt = S[G.chartIndex];
  1799. this.width === 0 && (p(this, { position: "absolute", top: "-999em" }), d.body.appendChild(this)), b[rt] = { width: this.width, height: this.height }, ct.imgwidth = this.width, ct.imgheight = this.height, ct.element && gt(ct), this.parentNode && this.parentNode.removeChild(this), G.imgCount--, !G.imgCount && dt && !dt.hasLoaded && dt.onload();
  1800. }, src: rt }), this.imgCount++);
  1801. }
  1802. return nt;
  1803. }, g.prototype.clipRect = function(m, L, Y, V) {
  1804. var Q = T() + "-", k = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  1805. return m = this.rect(m, L, Y, V, 0).add(k), m.id = Q, m.clipPath = k, m.count = 0, m;
  1806. }, g.prototype.text = function(m, L, Y, V) {
  1807. var Q = {};
  1808. return V && (this.allowHTML || !this.forExport) ? this.html(m, L, Y) : (Q.x = Math.round(L || 0), Y && (Q.y = Math.round(Y)), i(m) && (Q.text = m), m = this.createElement("text").attr(Q), (!V || this.forExport && !this.allowHTML) && (m.xSetter = function(k, G, z) {
  1809. for (var $ = z.getElementsByTagName("tspan"), q = z.getAttribute(G), it = 0, et; it < $.length; it++)
  1810. et = $[it], et.getAttribute(G) === q && et.setAttribute(G, k);
  1811. z.setAttribute(G, k);
  1812. }), m);
  1813. }, g.prototype.fontMetrics = function(m, L) {
  1814. return m = !this.styledMode && /px/.test(m) || !w.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && F.prototype.getStyle.call(L, "font-size"), m = /px/.test(m) ? B(m) : 12, L = 24 > m ? m + 3 : Math.round(1.2 * m), { h: L, b: Math.round(0.8 * L), f: m };
  1815. }, g.prototype.rotCorr = function(m, L, Y) {
  1816. var V = m;
  1817. return L && Y && (V = Math.max(V * Math.cos(L * v), 4)), { x: -m / 3 * Math.sin(L * v), y: V };
  1818. }, g.prototype.pathToSegments = function(m) {
  1819. for (var L = [], Y = [], V = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  1820. A(Y[0]) && o(m[Q]) && Y.length === V[Y[0].toUpperCase()] && m.splice(Q, 0, Y[0].replace("M", "L").replace("m", "l")), typeof m[Q] == "string" && (Y.length && L.push(Y.slice(0)), Y.length = 0), Y.push(m[Q]);
  1821. return L.push(Y.slice(0)), L;
  1822. }, g.prototype.label = function(m, L, Y, V, Q, k, G, z, $) {
  1823. return new U(this, m, L, Y, V, Q, k, G, z, $);
  1824. }, g.prototype.alignElements = function() {
  1825. this.alignedObjects.forEach(function(m) {
  1826. return m.align();
  1827. });
  1828. }, g;
  1829. }(), s(I.prototype, { Element: F, SVG_NS: C, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: H, draw: N }), Z.registerRendererType("svg", I, !0), I;
  1830. }), E(h, "Core/Renderer/HTML/HTMLElement.js", [h["Core/Globals.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]], function(y, j, I) {
  1831. var Z = this && this.__extends || function() {
  1832. var P = function(O, N) {
  1833. return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  1834. C.__proto__ = b;
  1835. } || function(C, b) {
  1836. for (var w in b)
  1837. b.hasOwnProperty(w) && (C[w] = b[w]);
  1838. }, P(O, N);
  1839. };
  1840. return function(O, N) {
  1841. function C() {
  1842. this.constructor = O;
  1843. }
  1844. P(O, N), O.prototype = N === null ? Object.create(N) : (C.prototype = N.prototype, new C());
  1845. };
  1846. }(), F = y.isFirefox, U = y.isMS, H = y.isWebKit, W = y.win, R = I.css, S = I.defined, v = I.extend, d = I.pick, u = I.pInt;
  1847. return function(P) {
  1848. function O() {
  1849. return P !== null && P.apply(this, arguments) || this;
  1850. }
  1851. return Z(O, P), O.compose = function(N) {
  1852. if (O.composedClasses.indexOf(N) === -1) {
  1853. O.composedClasses.push(N);
  1854. var C = O.prototype, b = N.prototype;
  1855. b.getSpanCorrection = C.getSpanCorrection, b.htmlCss = C.htmlCss, b.htmlGetBBox = C.htmlGetBBox, b.htmlUpdateTransform = C.htmlUpdateTransform, b.setSpanRotation = C.setSpanRotation;
  1856. }
  1857. return N;
  1858. }, O.prototype.getSpanCorrection = function(N, C, b) {
  1859. this.xCorr = -N * b, this.yCorr = -C;
  1860. }, O.prototype.htmlCss = function(N) {
  1861. var C = this.element.tagName === "SPAN" && N && "width" in N, b = d(C && N.width, void 0);
  1862. if (C) {
  1863. delete N.width, this.textWidth = b;
  1864. var w = !0;
  1865. }
  1866. return N && N.textOverflow === "ellipsis" && (N.whiteSpace = "nowrap", N.overflow = "hidden"), this.styles = v(this.styles, N), R(this.element, N), w && this.htmlUpdateTransform(), this;
  1867. }, O.prototype.htmlGetBBox = function() {
  1868. var N = this.element;
  1869. return { x: N.offsetLeft, y: N.offsetTop, width: N.offsetWidth, height: N.offsetHeight };
  1870. }, O.prototype.htmlUpdateTransform = function() {
  1871. if (this.added) {
  1872. var N = this.renderer, C = this.element, b = this.translateX || 0, w = this.translateY || 0, x = this.x || 0, a = this.y || 0, c = this.textAlign || "left", p = { left: 0, center: 0.5, right: 1 }[c], i = this.styles;
  1873. if (i = i && i.whiteSpace, R(C, { marginLeft: b, marginTop: w }), !N.styledMode && this.shadows && this.shadows.forEach(function(A) {
  1874. R(A, { marginLeft: b + 1, marginTop: w + 1 });
  1875. }), this.inverted && [].forEach.call(C.childNodes, function(A) {
  1876. N.invertChild(A, C);
  1877. }), C.tagName === "SPAN") {
  1878. var l = this.rotation, s = this.textWidth && u(this.textWidth), t = [l, c, C.innerHTML, this.textWidth, this.textAlign].join(), o = void 0;
  1879. if (o = !1, s !== this.oldTextWidth) {
  1880. if (this.textPxLength)
  1881. var n = this.textPxLength;
  1882. else
  1883. R(C, { width: "", whiteSpace: i || "nowrap" }), n = C.offsetWidth;
  1884. (s > this.oldTextWidth || n > s) && (/[ \-]/.test(C.textContent || C.innerText) || C.style.textOverflow === "ellipsis") && (R(C, { width: n > s || l ? s + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = s, o = !0);
  1885. }
  1886. this.hasBoxWidthChanged = o, t !== this.cTT && (o = N.fontMetrics(C.style.fontSize, C).b, !S(l) || l === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(l, p, o), this.getSpanCorrection(!S(l) && this.textPxLength || C.offsetWidth, o, p, l, c)), R(C, { left: x + (this.xCorr || 0) + "px", top: a + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = l, this.oldAlign = c;
  1887. }
  1888. } else
  1889. this.alignOnAdd = !0;
  1890. }, O.prototype.setSpanRotation = function(N, C, b) {
  1891. var w = {}, x = U && !/Edge/.test(W.navigator.userAgent) ? "-ms-transform" : H ? "-webkit-transform" : F ? "MozTransform" : W.opera ? "-o-transform" : void 0;
  1892. x && (w[x] = w.transform = "rotate(" + N + "deg)", w[x + (F ? "Origin" : "-origin")] = w.transformOrigin = 100 * C + "% " + b + "px", R(this.element, w));
  1893. }, O.composedClasses = [], O;
  1894. }(j);
  1895. }), E(
  1896. h,
  1897. "Core/Renderer/HTML/HTMLRenderer.js",
  1898. [h["Core/Renderer/HTML/AST.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Renderer/SVG/SVGRenderer.js"], h["Core/Utilities.js"]],
  1899. function(y, j, I, Z) {
  1900. var F = this && this.__extends || function() {
  1901. var S = function(v, d) {
  1902. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, P) {
  1903. u.__proto__ = P;
  1904. } || function(u, P) {
  1905. for (var O in P)
  1906. P.hasOwnProperty(O) && (u[O] = P[O]);
  1907. }, S(v, d);
  1908. };
  1909. return function(v, d) {
  1910. function u() {
  1911. this.constructor = v;
  1912. }
  1913. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  1914. };
  1915. }(), U = Z.attr, H = Z.createElement, W = Z.extend, R = Z.pick;
  1916. return function(S) {
  1917. function v() {
  1918. return S !== null && S.apply(this, arguments) || this;
  1919. }
  1920. return F(v, S), v.compose = function(d) {
  1921. return v.composedClasses.indexOf(d) === -1 && (v.composedClasses.push(d), d.prototype.html = v.prototype.html), d;
  1922. }, v.prototype.html = function(d, u, P) {
  1923. var O = this.createElement("span"), N = O.element, C = O.renderer, b = C.isSVG, w = function(x, a) {
  1924. ["opacity", "visibility"].forEach(function(c) {
  1925. x[c + "Setter"] = function(p, i, l) {
  1926. var s = x.div ? x.div.style : a;
  1927. j.prototype[c + "Setter"].call(this, p, i, l), s && (s[i] = p);
  1928. };
  1929. }), x.addedSetters = !0;
  1930. };
  1931. return O.textSetter = function(x) {
  1932. x !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, R(x, "")), this.textStr = x, O.doTransform = !0);
  1933. }, b && w(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(x, a) {
  1934. a === "align" ? O.alignValue = O.textAlign = x : O[a] = x, O.doTransform = !0;
  1935. }, O.afterSetters = function() {
  1936. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  1937. }, O.attr({ text: d, x: Math.round(u), y: Math.round(P) }).css({ position: "absolute" }), C.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), N.style.whiteSpace = "nowrap", O.css = O.htmlCss, b && (O.add = function(x) {
  1938. var a = C.box.parentNode, c = [];
  1939. if (this.parentGroup = x) {
  1940. var p = x.div;
  1941. if (!p) {
  1942. for (; x; )
  1943. c.push(x), x = x.parentGroup;
  1944. c.reverse().forEach(function(i) {
  1945. function l(n, A) {
  1946. i[A] = n, A === "translateX" ? o.left = n + "px" : o.top = n + "px", i.doTransform = !0;
  1947. }
  1948. var s = U(i.element, "class"), t = i.styles || {};
  1949. p = i.div = i.div || H("div", s ? { className: s } : void 0, {
  1950. position: "absolute",
  1951. left: (i.translateX || 0) + "px",
  1952. top: (i.translateY || 0) + "px",
  1953. display: i.display,
  1954. opacity: i.opacity,
  1955. cursor: t.cursor,
  1956. pointerEvents: t.pointerEvents,
  1957. visibility: i.visibility
  1958. }, p || a);
  1959. var o = p.style;
  1960. W(i, { classSetter: function(n) {
  1961. return function(A) {
  1962. this.element.setAttribute("class", A), n.className = A;
  1963. };
  1964. }(p), on: function() {
  1965. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  1966. }, translateXSetter: l, translateYSetter: l }), i.addedSetters || w(i);
  1967. });
  1968. }
  1969. } else
  1970. p = a;
  1971. return p.appendChild(N), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  1972. }), O;
  1973. }, v.composedClasses = [], v;
  1974. }(I);
  1975. }
  1976. ), E(h, "Core/Axis/AxisDefaults.js", [], function() {
  1977. var y;
  1978. return function(j) {
  1979. j.defaultXAxisOptions = { alignTicks: !0, allowDecimals: void 0, panningEnabled: !0, zIndex: 2, zoomEnabled: !0, dateTimeLabelFormats: { millisecond: { main: "%H:%M:%S.%L", range: !1 }, second: { main: "%H:%M:%S", range: !1 }, minute: { main: "%H:%M", range: !1 }, hour: { main: "%H:%M", range: !1 }, day: { main: "%e. %b" }, week: { main: "%e. %b" }, month: { main: "%b '%y" }, year: { main: "%Y" } }, endOnTick: !1, gridLineDashStyle: "Solid", gridZIndex: 1, labels: {
  1980. autoRotation: void 0,
  1981. autoRotationLimit: 80,
  1982. distance: void 0,
  1983. enabled: !0,
  1984. indentation: 10,
  1985. overflow: "justify",
  1986. padding: 5,
  1987. reserveSpace: void 0,
  1988. rotation: void 0,
  1989. staggerLines: 0,
  1990. step: 0,
  1991. useHTML: !1,
  1992. x: 0,
  1993. zIndex: 7,
  1994. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  1995. }, maxPadding: 0.01, minorGridLineDashStyle: "Solid", minorTickLength: 2, minorTickPosition: "outside", minPadding: 0.01, offset: void 0, opposite: !1, reversed: void 0, reversedStacks: !1, showEmpty: !0, showFirstLabel: !0, showLastLabel: !0, startOfWeek: 1, startOnTick: !1, tickLength: 10, tickPixelInterval: 100, tickmarkPlacement: "between", tickPosition: "outside", title: {
  1996. align: "middle",
  1997. rotation: 0,
  1998. useHTML: !1,
  1999. x: 0,
  2000. y: 0,
  2001. style: { color: "#666666" }
  2002. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, j.defaultYAxisOptions = { reversedStacks: !0, endOnTick: !0, maxPadding: 0.05, minPadding: 0.05, tickPixelInterval: 72, showLastLabel: !0, labels: { x: -8 }, startOnTick: !0, title: { rotation: 270, text: "Values" }, stackLabels: {
  2003. animation: {},
  2004. allowOverlap: !1,
  2005. enabled: !1,
  2006. crop: !0,
  2007. overflow: "justify",
  2008. formatter: function() {
  2009. var I = this.axis.chart.numberFormatter;
  2010. return I(this.total, -1);
  2011. },
  2012. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  2013. }, gridLineWidth: 1, lineWidth: 0 }, j.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, j.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, j.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, j.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  2014. }(y || (y = {})), y;
  2015. }), E(h, "Core/Foundation.js", [h["Core/Utilities.js"]], function(y) {
  2016. var j = y.addEvent, I = y.isFunction, Z = y.objectEach, F = y.removeEvent, U;
  2017. return function(H) {
  2018. H.registerEventOptions = function(W, R) {
  2019. W.eventOptions = W.eventOptions || {}, Z(R.events, function(S, v) {
  2020. W.eventOptions[v] !== S && (W.eventOptions[v] && (F(W, v, W.eventOptions[v]), delete W.eventOptions[v]), I(S) && (W.eventOptions[v] = S, j(W, v, S)));
  2021. });
  2022. };
  2023. }(U || (U = {})), U;
  2024. }), E(
  2025. h,
  2026. "Core/Axis/Tick.js",
  2027. [h["Core/FormatUtilities.js"], h["Core/Globals.js"], h["Core/Utilities.js"]],
  2028. function(y, j, I) {
  2029. var Z = j.deg2rad, F = I.clamp, U = I.correctFloat, H = I.defined, W = I.destroyObjectProperties, R = I.extend, S = I.fireEvent, v = I.isNumber, d = I.merge, u = I.objectEach, P = I.pick;
  2030. return j = function() {
  2031. function O(N, C, b, w, x) {
  2032. this.isNewLabel = this.isNew = !0, this.axis = N, this.pos = C, this.type = b || "", this.parameters = x || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, S(this, "init"), b || w || this.addLabel();
  2033. }
  2034. return O.prototype.addLabel = function() {
  2035. var N = this, C = N.axis, b = C.options, w = C.chart, x = C.categories, a = C.logarithmic, c = C.names, p = N.pos, i = P(N.options && N.options.labels, b.labels), l = C.tickPositions, s = p === l[0], t = p === l[l.length - 1], o = (!i.step || i.step === 1) && C.tickInterval === 1;
  2036. l = l.info;
  2037. var n = N.label, A;
  2038. if (x = this.parameters.category || (x ? P(x[p], c[p], p) : p), a && v(x) && (x = U(a.lin2log(x))), C.dateTime)
  2039. if (l)
  2040. var _ = w.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid && l.higherRanks[p] || l.unitName]), D = _.main;
  2041. else
  2042. v(x) && (D = C.dateTime.getXDateFormat(x, b.dateTimeLabelFormats || {}));
  2043. N.isFirst = s, N.isLast = t;
  2044. var B = {
  2045. axis: C,
  2046. chart: w,
  2047. dateTimeLabelFormat: D,
  2048. isFirst: s,
  2049. isLast: t,
  2050. pos: p,
  2051. tick: N,
  2052. tickPositionInfo: l,
  2053. value: x
  2054. };
  2055. S(this, "labelFormat", B);
  2056. var T = function(g) {
  2057. return i.formatter ? i.formatter.call(g, g) : i.format ? (g.text = C.defaultLabelFormatter.call(g), y.format(i.format, g, w)) : C.defaultLabelFormatter.call(g, g);
  2058. };
  2059. b = T.call(B, B);
  2060. var X = _ && _.list;
  2061. N.shortenLabel = X ? function() {
  2062. for (A = 0; A < X.length; A++)
  2063. if (R(B, { dateTimeLabelFormat: X[A] }), n.attr({ text: T.call(B, B) }), n.getBBox().width < C.getSlotWidth(N) - 2 * i.padding)
  2064. return;
  2065. n.attr({ text: "" });
  2066. } : void 0, o && C._addedPlotLB && N.moveLabel(b, i), H(n) || N.movedLabel ? n && n.textStr !== b && !o && (!n.textWidth || i.style.width || n.styles.width || n.css({ width: null }), n.attr({ text: b }), n.textPxLength = n.getBBox().width) : (N.label = n = N.createLabel({ x: 0, y: 0 }, b, i), N.rotation = 0);
  2067. }, O.prototype.createLabel = function(N, C, b) {
  2068. var w = this.axis, x = w.chart;
  2069. return (N = H(C) && b.enabled ? x.renderer.text(C, N.x, N.y, b.useHTML).add(w.labelGroup) : null) && (x.styledMode || N.css(d(b.style)), N.textPxLength = N.getBBox().width), N;
  2070. }, O.prototype.destroy = function() {
  2071. W(
  2072. this,
  2073. this.axis
  2074. );
  2075. }, O.prototype.getPosition = function(N, C, b, w) {
  2076. var x = this.axis, a = x.chart, c = w && a.oldChartHeight || a.chartHeight;
  2077. return N = { x: N ? U(x.translate(C + b, null, null, w) + x.transB) : x.left + x.offset + (x.opposite ? (w && a.oldChartWidth || a.chartWidth) - x.right - x.left : 0), y: N ? c - x.bottom + x.offset - (x.opposite ? x.height : 0) : U(c - x.translate(C + b, null, null, w) - x.transB) }, N.y = F(N.y, -1e5, 1e5), S(this, "afterGetPosition", { pos: N }), N;
  2078. }, O.prototype.getLabelPosition = function(N, C, b, w, x, a, c, p) {
  2079. var i = this.axis, l = i.transA, s = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, o = i.tickRotCorr || { x: 0, y: 0 }, n = w || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), A = {}, _ = x.y;
  2080. return H(_) || (_ = i.side === 0 ? b.rotation ? -8 : -b.getBBox().height : i.side === 2 ? o.y + 8 : Math.cos(b.rotation * Z) * (o.y - b.getBBox(!1, 0).height / 2)), N = N + x.x + n + o.x - (a && w ? a * l * (s ? -1 : 1) : 0), C = C + _ - (a && !w ? a * l * (s ? 1 : -1) : 0), t && (b = c / (p || 1) % t, i.opposite && (b = t - b - 1), C += i.labelOffset / t * b), A.x = N, A.y = Math.round(C), S(this, "afterGetLabelPosition", { pos: A, tickmarkOffset: a, index: c }), A;
  2081. }, O.prototype.getLabelSize = function() {
  2082. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  2083. }, O.prototype.getMarkPath = function(N, C, b, w, x, a) {
  2084. return a.crispLine([["M", N, C], ["L", N + (x ? 0 : -b), C + (x ? b : 0)]], w);
  2085. }, O.prototype.handleOverflow = function(N) {
  2086. var C = this.axis, b = C.options.labels, w = N.x, x = C.chart.chartWidth, a = C.chart.spacing, c = P(C.labelLeft, Math.min(C.pos, a[3]));
  2087. a = P(C.labelRight, Math.max(C.isRadial ? 0 : C.pos + C.len, x - a[1]));
  2088. var p = this.label, i = this.rotation, l = { left: 0, center: 0.5, right: 1 }[C.labelAlign || p.attr("align")], s = p.getBBox().width, t = C.getSlotWidth(this), o = {}, n = t, A = 1, _;
  2089. i || b.overflow !== "justify" ? 0 > i && w - l * s < c ? _ = Math.round(w / Math.cos(i * Z) - c) : 0 < i && w + l * s > a && (_ = Math.round((x - w) / Math.cos(i * Z))) : (x = w + (1 - l) * s, w - l * s < c ? n = N.x + n * (1 - l) - c : x > a && (n = a - N.x + n * l, A = -1), n = Math.min(t, n), n < t && C.labelAlign === "center" && (N.x += A * (t - n - l * (t - Math.min(s, n)))), (s > n || C.autoRotation && (p.styles || {}).width) && (_ = n)), _ && (this.shortenLabel ? this.shortenLabel() : (o.width = Math.floor(_) + "px", (b.style || {}).textOverflow || (o.textOverflow = "ellipsis"), p.css(o)));
  2090. }, O.prototype.moveLabel = function(N, C) {
  2091. var b = this, w = b.label, x = b.axis, a = x.reversed, c = !1;
  2092. if (w && w.textStr === N ? (b.movedLabel = w, c = !0, delete b.label) : u(x.ticks, function(i) {
  2093. c || i.isNew || i === b || !i.label || i.label.textStr !== N || (b.movedLabel = i.label, c = !0, i.labelPos = b.movedLabel.xy, delete i.label);
  2094. }), !c && (b.labelPos || w)) {
  2095. var p = b.labelPos || w.xy;
  2096. w = x.horiz ? a ? 0 : x.width + x.left : p.x, x = x.horiz ? p.y : a ? x.width + x.left : 0, b.movedLabel = b.createLabel({ x: w, y: x }, N, C), b.movedLabel && b.movedLabel.attr({ opacity: 0 });
  2097. }
  2098. }, O.prototype.render = function(N, C, b) {
  2099. var w = this.axis, x = w.horiz, a = this.pos, c = P(this.tickmarkOffset, w.tickmarkOffset);
  2100. a = this.getPosition(x, a, c, C), c = a.x;
  2101. var p = a.y;
  2102. w = x && c === w.pos + w.len || !x && p === w.pos ? -1 : 1, x = P(b, this.label && this.label.newOpacity, 1), b = P(b, 1), this.isActive = !0, this.renderGridLine(C, b, w), this.renderMark(a, b, w), this.renderLabel(a, C, x, N), this.isNew = !1, S(this, "afterRender");
  2103. }, O.prototype.renderGridLine = function(N, C, b) {
  2104. var w = this.axis, x = w.options, a = {}, c = this.pos, p = this.type, i = P(
  2105. this.tickmarkOffset,
  2106. w.tickmarkOffset
  2107. ), l = w.chart.renderer, s = this.gridLine, t = x.gridLineWidth, o = x.gridLineColor, n = x.gridLineDashStyle;
  2108. this.type === "minor" && (t = x.minorGridLineWidth, o = x.minorGridLineColor, n = x.minorGridLineDashStyle), s || (w.chart.styledMode || (a.stroke = o, a["stroke-width"] = t || 0, a.dashstyle = n), p || (a.zIndex = 1), N && (C = 0), this.gridLine = s = l.path().attr(a).addClass("highcharts-" + (p ? p + "-" : "") + "grid-line").add(w.gridGroup)), s && (b = w.getPlotLinePath({ value: c + i, lineWidth: s.strokeWidth() * b, force: "pass", old: N })) && s[N || this.isNew ? "attr" : "animate"]({ d: b, opacity: C });
  2109. }, O.prototype.renderMark = function(N, C, b) {
  2110. var w = this.axis, x = w.options, a = w.chart.renderer, c = this.type, p = w.tickSize(c ? c + "Tick" : "tick"), i = N.x;
  2111. N = N.y;
  2112. var l = P(x[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && w.isXAxis ? 1 : 0);
  2113. x = x[c !== "minor" ? "tickColor" : "minorTickColor"];
  2114. var s = this.mark, t = !s;
  2115. p && (w.opposite && (p[0] = -p[0]), s || (this.mark = s = a.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(w.axisGroup), w.chart.styledMode || s.attr({ stroke: x, "stroke-width": l })), s[t ? "attr" : "animate"]({ d: this.getMarkPath(
  2116. i,
  2117. N,
  2118. p[0],
  2119. s.strokeWidth() * b,
  2120. w.horiz,
  2121. a
  2122. ), opacity: C }));
  2123. }, O.prototype.renderLabel = function(N, C, b, w) {
  2124. var x = this.axis, a = x.horiz, c = x.options, p = this.label, i = c.labels, l = i.step;
  2125. x = P(this.tickmarkOffset, x.tickmarkOffset);
  2126. var s = N.x;
  2127. N = N.y;
  2128. var t = !0;
  2129. p && v(s) && (p.xy = N = this.getLabelPosition(s, N, p, a, i, x, w, l), this.isFirst && !this.isLast && !c.showFirstLabel || this.isLast && !this.isFirst && !c.showLastLabel ? t = !1 : !a || i.step || i.rotation || C || b === 0 || this.handleOverflow(N), l && w % l && (t = !1), t && v(N.y) ? (N.opacity = b, p[this.isNewLabel ? "attr" : "animate"](N), this.isNewLabel = !1) : (p.attr("y", -9999), this.isNewLabel = !0));
  2130. }, O.prototype.replaceMovedLabel = function() {
  2131. var N = this.label, C = this.axis, b = C.reversed;
  2132. if (N && !this.isNew) {
  2133. var w = C.horiz ? b ? C.left : C.width + C.left : N.xy.x;
  2134. b = C.horiz ? N.xy.y : b ? C.width + C.top : C.top, N.animate({ x: w, y: b, opacity: 0 }, void 0, N.destroy), delete this.label;
  2135. }
  2136. C.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  2137. }, O;
  2138. }(), j;
  2139. }
  2140. ), E(h, "Core/Axis/Axis.js", [
  2141. h["Core/Animation/AnimationUtilities.js"],
  2142. h["Core/Axis/AxisDefaults.js"],
  2143. h["Core/Color/Color.js"],
  2144. h["Core/DefaultOptions.js"],
  2145. h["Core/Foundation.js"],
  2146. h["Core/Globals.js"],
  2147. h["Core/Axis/Tick.js"],
  2148. h["Core/Utilities.js"]
  2149. ], function(y, j, I, Z, F, U, H, W) {
  2150. var R = y.animObject, S = Z.defaultOptions, v = F.registerEventOptions, d = U.deg2rad, u = W.arrayMax, P = W.arrayMin, O = W.clamp, N = W.correctFloat, C = W.defined, b = W.destroyObjectProperties, w = W.erase, x = W.error, a = W.extend, c = W.fireEvent, p = W.getMagnitude, i = W.isArray, l = W.isNumber, s = W.isString, t = W.merge, o = W.normalizeTickInterval, n = W.objectEach, A = W.pick, _ = W.relativeLength, D = W.removeEvent, B = W.splat, T = W.syncTimeout;
  2151. return y = function() {
  2152. function X(g, m) {
  2153. this.zoomEnabled = this.width = this.visible = this.userOptions = this.translationSlope = this.transB = this.transA = this.top = this.ticks = this.tickRotCorr = this.tickPositions = this.tickmarkOffset = this.tickInterval = this.tickAmount = this.side = this.series = this.right = this.positiveValuesOnly = this.pos = this.pointRangePadding = this.pointRange = this.plotLinesAndBandsGroups = this.plotLinesAndBands = this.paddedTicks = this.overlap = this.options = this.offset = this.names = this.minPixelPadding = this.minorTicks = this.minorTickInterval = this.min = this.maxLabelLength = this.max = this.len = this.left = this.labelFormatter = this.labelEdge = this.isLinked = this.height = this.hasVisibleSeries = this.hasNames = this.eventOptions = this.coll = this.closestPointRange = this.chart = this.categories = this.bottom = this.alternateBands = void 0, this.init(g, m);
  2154. }
  2155. return X.prototype.init = function(g, m) {
  2156. var L = m.isX;
  2157. this.chart = g, this.horiz = g.inverted && !this.isZAxis ? !L : L, this.isXAxis = L, this.coll = this.coll || (L ? "xAxis" : "yAxis"), c(this, "init", { userOptions: m }), this.opposite = A(m.opposite, this.opposite), this.side = A(m.side, this.side, this.horiz ? this.opposite ? 0 : 2 : this.opposite ? 1 : 3), this.setOptions(m);
  2158. var Y = this.options, V = Y.labels, Q = Y.type;
  2159. this.userOptions = m, this.minPixelPadding = 0, this.reversed = A(Y.reversed, this.reversed), this.visible = Y.visible, this.zoomEnabled = Y.zoomEnabled, this.hasNames = Q === "category" || Y.categories === !0, this.categories = Y.categories || this.hasNames, this.names || (this.names = [], this.names.keys = {}), this.plotLinesAndBandsGroups = {}, this.positiveValuesOnly = !!this.logarithmic, this.isLinked = C(Y.linkedTo), this.ticks = {}, this.labelEdge = [], this.minorTicks = {}, this.plotLinesAndBands = [], this.alternateBands = {}, this.len = 0, this.minRange = this.userMinRange = Y.minRange || Y.maxZoom, this.range = Y.range, this.offset = Y.offset || 0, this.min = this.max = null, m = A(Y.crosshair, B(g.options.tooltip.crosshairs)[L ? 0 : 1]), this.crosshair = m === !0 ? {} : m, g.axes.indexOf(this) === -1 && (L ? g.axes.splice(g.xAxis.length, 0, this) : g.axes.push(this), g[this.coll].push(this)), this.series = this.series || [], g.inverted && !this.isZAxis && L && typeof this.reversed > "u" && (this.reversed = !0), this.labelRotation = l(V.rotation) ? V.rotation : void 0, v(this, Y), c(this, "afterInit");
  2160. }, X.prototype.setOptions = function(g) {
  2161. this.options = t(j.defaultXAxisOptions, this.coll === "yAxis" && j.defaultYAxisOptions, [j.defaultTopAxisOptions, j.defaultRightAxisOptions, j.defaultBottomAxisOptions, j.defaultLeftAxisOptions][this.side], t(S[this.coll], g)), c(this, "afterSetOptions", { userOptions: g });
  2162. }, X.prototype.defaultLabelFormatter = function(g) {
  2163. var m = this.axis;
  2164. g = this.chart.numberFormatter;
  2165. var L = l(this.value) ? this.value : NaN, Y = m.chart.time, V = this.dateTimeLabelFormat, Q = S.lang, k = Q.numericSymbols;
  2166. Q = Q.numericSymbolMagnitude || 1e3;
  2167. var G = m.logarithmic ? Math.abs(L) : m.tickInterval, z = k && k.length;
  2168. if (m.categories)
  2169. var $ = "" + this.value;
  2170. else if (V)
  2171. $ = Y.dateFormat(V, L);
  2172. else if (z && 1e3 <= G)
  2173. for (; z-- && typeof $ > "u"; )
  2174. m = Math.pow(Q, z + 1), G >= m && 10 * L % m === 0 && k[z] !== null && L !== 0 && ($ = g(L / m, -1) + k[z]);
  2175. return typeof $ > "u" && ($ = 1e4 <= Math.abs(L) ? g(L, -1) : g(L, -1, void 0, "")), $;
  2176. }, X.prototype.getSeriesExtremes = function() {
  2177. var g = this, m = g.chart, L;
  2178. c(this, "getSeriesExtremes", null, function() {
  2179. g.hasVisibleSeries = !1, g.dataMin = g.dataMax = g.threshold = null, g.softThreshold = !g.isXAxis, g.stacking && g.stacking.buildStacks(), g.series.forEach(function(Y) {
  2180. if (Y.visible || !m.options.chart.ignoreHiddenSeries) {
  2181. var V = Y.options, Q = V.threshold;
  2182. if (g.hasVisibleSeries = !0, g.positiveValuesOnly && 0 >= Q && (Q = null), g.isXAxis) {
  2183. if (V = Y.xData, V.length) {
  2184. V = g.logarithmic ? V.filter(g.validatePositiveValue) : V, L = Y.getXExtremes(V);
  2185. var k = L.min, G = L.max;
  2186. l(k) || k instanceof Date || (V = V.filter(l), L = Y.getXExtremes(V), k = L.min, G = L.max), V.length && (g.dataMin = Math.min(A(g.dataMin, k), k), g.dataMax = Math.max(A(g.dataMax, G), G));
  2187. }
  2188. } else
  2189. Y = Y.applyExtremes(), l(Y.dataMin) && (k = Y.dataMin, g.dataMin = Math.min(A(g.dataMin, k), k)), l(Y.dataMax) && (G = Y.dataMax, g.dataMax = Math.max(A(g.dataMax, G), G)), C(Q) && (g.threshold = Q), (!V.softThreshold || g.positiveValuesOnly) && (g.softThreshold = !1);
  2190. }
  2191. });
  2192. }), c(this, "afterGetSeriesExtremes");
  2193. }, X.prototype.translate = function(g, m, L, Y, V, Q) {
  2194. var k = this.linkedParent || this, G = Y && k.old ? k.old.min : k.min, z = k.minPixelPadding;
  2195. V = (k.isOrdinal || k.brokenAxis && k.brokenAxis.hasBreaks || k.logarithmic && V) && k.lin2val;
  2196. var $ = 1, q = 0;
  2197. return Y = Y && k.old ? k.old.transA : k.transA, Y || (Y = k.transA), L && ($ *= -1, q = k.len), k.reversed && ($ *= -1, q -= $ * (k.sector || k.len)), m ? (g = (g * $ + q - z) / Y + G, V && (g = k.lin2val(g))) : (V && (g = k.val2lin(g)), g = l(G) ? $ * (g - G) * Y + q + $ * z + (l(Q) ? Y * Q : 0) : void 0), g;
  2198. }, X.prototype.toPixels = function(g, m) {
  2199. return this.translate(
  2200. g,
  2201. !1,
  2202. !this.horiz,
  2203. null,
  2204. !0
  2205. ) + (m ? 0 : this.pos);
  2206. }, X.prototype.toValue = function(g, m) {
  2207. return this.translate(g - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  2208. }, X.prototype.getPlotLinePath = function(g) {
  2209. function m(at, J, tt) {
  2210. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : lt = !0), at;
  2211. }
  2212. var L = this, Y = L.chart, V = L.left, Q = L.top, k = g.old, G = g.value, z = g.lineWidth, $ = k && Y.oldChartHeight || Y.chartHeight, q = k && Y.oldChartWidth || Y.chartWidth, it = L.transB, et = g.translatedValue, nt = g.force, rt, ct, gt, dt, lt;
  2213. return g = {
  2214. value: G,
  2215. lineWidth: z,
  2216. old: k,
  2217. force: nt,
  2218. acrossPanes: g.acrossPanes,
  2219. translatedValue: et
  2220. }, c(this, "getPlotLinePath", g, function(at) {
  2221. et = A(et, L.translate(G, null, null, k)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round($ - et - it), l(et) ? L.horiz ? (ct = Q, dt = $ - L.bottom, rt = gt = m(rt, V, V + L.width)) : (rt = V, gt = q - L.right, ct = dt = m(ct, Q, Q + L.height)) : (lt = !0, nt = !1), at.path = lt && !nt ? null : Y.renderer.crispLine([["M", rt, ct], ["L", gt, dt]], z || 1);
  2222. }), g.path;
  2223. }, X.prototype.getLinearTickPositions = function(g, m, L) {
  2224. var Y = N(Math.floor(m / g) * g);
  2225. L = N(Math.ceil(L / g) * g);
  2226. var V = [], Q;
  2227. if (N(Y + g) === Y && (Q = 20), this.single)
  2228. return [m];
  2229. for (m = Y; m <= L && (V.push(m), m = N(m + g, Q), m !== k); )
  2230. var k = m;
  2231. return V;
  2232. }, X.prototype.getMinorTickInterval = function() {
  2233. var g = this.options;
  2234. return g.minorTicks === !0 ? A(g.minorTickInterval, "auto") : g.minorTicks === !1 ? null : g.minorTickInterval;
  2235. }, X.prototype.getMinorTickPositions = function() {
  2236. var g = this.options, m = this.tickPositions, L = this.minorTickInterval, Y = this.pointRangePadding || 0, V = this.min - Y;
  2237. Y = this.max + Y;
  2238. var Q = Y - V, k = [];
  2239. if (Q && Q / L < this.len / 3) {
  2240. var G = this.logarithmic;
  2241. if (G)
  2242. this.paddedTicks.forEach(function(z, $, q) {
  2243. $ && k.push.apply(
  2244. k,
  2245. G.getLogTickPositions(L, q[$ - 1], q[$], !0)
  2246. );
  2247. });
  2248. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  2249. k = k.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), V, Y, g.startOfWeek));
  2250. else
  2251. for (g = V + (m[0] - V) % L; g <= Y && g !== k[0]; g += L)
  2252. k.push(g);
  2253. }
  2254. return k.length !== 0 && this.trimTicks(k), k;
  2255. }, X.prototype.adjustForMinRange = function() {
  2256. var g = this.options, m = this.logarithmic, L = this.min, Y = this.max, V = 0, Q, k, G, z;
  2257. if (this.isXAxis && typeof this.minRange > "u" && !m && (C(g.min) || C(g.max) || C(g.floor) || C(g.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  2258. if (G = et.xData, z = et.xIncrement ? 1 : G.length - 1, 1 < G.length)
  2259. for (Q = z; 0 < Q; Q--)
  2260. k = G[Q] - G[Q - 1], (!V || k < V) && (V = k);
  2261. }), this.minRange = Math.min(5 * V, this.dataMax - this.dataMin))), Y - L < this.minRange) {
  2262. var $ = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - Y + L) / 2;
  2263. it = [L - it, A(g.min, L - it)], $ && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = u(it), Y = [L + q, A(g.max, L + q)], $ && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = P(Y), Y - L < q && (it[0] = Y - q, it[1] = A(g.min, Y - q), L = u(it));
  2264. }
  2265. this.min = L, this.max = Y;
  2266. }, X.prototype.getClosest = function() {
  2267. var g;
  2268. return this.categories ? g = 1 : this.series.forEach(function(m) {
  2269. var L = m.closestPointRange, Y = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  2270. !m.noSharedTooltip && C(L) && Y && (g = C(g) ? Math.min(g, L) : L);
  2271. }), g;
  2272. }, X.prototype.nameToX = function(g) {
  2273. var m = i(this.categories), L = m ? this.categories : this.names, Y = g.options.x;
  2274. if (g.series.requireSorting = !1, C(Y) || (Y = this.options.uniqueNames ? m ? L.indexOf(g.name) : A(L.keys[g.name], -1) : g.series.autoIncrement()), Y === -1) {
  2275. if (!m)
  2276. var V = L.length;
  2277. } else
  2278. V = Y;
  2279. return typeof V < "u" && (this.names[V] = g.name, this.names.keys[g.name] = V), V;
  2280. }, X.prototype.updateNames = function() {
  2281. var g = this, m = this.names;
  2282. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  2283. delete m.keys[L];
  2284. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  2285. L.xIncrement = null, (!L.points || L.isDirtyData) && (g.max = Math.max(g.max, L.xData.length - 1), L.processData(), L.generatePoints()), L.data.forEach(function(Y, V) {
  2286. if (Y && Y.options && typeof Y.name < "u") {
  2287. var Q = g.nameToX(Y);
  2288. typeof Q < "u" && Q !== Y.x && (Y.x = Q, L.xData[V] = Q);
  2289. }
  2290. });
  2291. }));
  2292. }, X.prototype.setAxisTranslation = function() {
  2293. var g = this, m = g.max - g.min, L = g.linkedParent, Y = !!g.categories, V = g.isXAxis, Q = g.axisPointRange || 0, k = 0, G = 0, z = g.transA;
  2294. if (V || Y || Q) {
  2295. var $ = g.getClosest();
  2296. L ? (k = L.minPointOffset, G = L.pointRangePadding) : g.series.forEach(function(q) {
  2297. var it = Y ? 1 : V ? A(q.options.pointRange, $, 0) : g.axisPointRange || 0, et = q.options.pointPlacement;
  2298. Q = Math.max(Q, it), (!g.single || Y) && (q = q.is("xrange") ? !V : V, k = Math.max(k, q && s(et) ? 0 : it / 2), G = Math.max(G, q && et === "on" ? 0 : it));
  2299. }), L = g.ordinal && g.ordinal.slope && $ ? g.ordinal.slope / $ : 1, g.minPointOffset = k *= L, g.pointRangePadding = G *= L, g.pointRange = Math.min(Q, g.single && Y ? 1 : m), V && (g.closestPointRange = $);
  2300. }
  2301. g.translationSlope = g.transA = z = g.staticScale || g.len / (m + G || 1), g.transB = g.horiz ? g.left : g.bottom, g.minPixelPadding = z * k, c(this, "afterSetAxisTranslation");
  2302. }, X.prototype.minFromRange = function() {
  2303. return this.max - this.range;
  2304. }, X.prototype.setTickInterval = function(g) {
  2305. var m = this.chart, L = this.logarithmic, Y = this.options, V = this.isXAxis, Q = this.isLinked, k = Y.tickPixelInterval, G = this.categories, z = this.softThreshold, $ = Y.maxPadding, q = Y.minPadding, it = l(Y.tickInterval) && 0 <= Y.tickInterval ? Y.tickInterval : void 0, et = l(this.threshold) ? this.threshold : null;
  2306. this.dateTime || G || Q || this.getTickAmount();
  2307. var nt = A(this.userMin, Y.min), rt = A(this.userMax, Y.max);
  2308. if (Q) {
  2309. this.linkedParent = m[this.coll][Y.linkedTo];
  2310. var ct = this.linkedParent.getExtremes();
  2311. this.min = A(ct.min, ct.dataMin), this.max = A(ct.max, ct.dataMax), Y.type !== this.linkedParent.options.type && x(11, 1, m);
  2312. } else {
  2313. if (z && C(et)) {
  2314. if (this.dataMin >= et)
  2315. ct = et, q = 0;
  2316. else if (this.dataMax <= et) {
  2317. var gt = et;
  2318. $ = 0;
  2319. }
  2320. }
  2321. this.min = A(nt, ct, this.dataMin), this.max = A(rt, gt, this.dataMax);
  2322. }
  2323. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, A(this.dataMin, this.min)) && x(10, 1, m), this.min = N(L.log2lin(this.min), 16), this.max = N(L.log2lin(this.max), 16)), this.range && C(this.max) && (this.userMin = this.min = nt = Math.max(this.dataMin, this.minFromRange()), this.userMax = rt = this.max, this.range = null), c(this, "foundExtremes"), this.beforePadding && this.beforePadding(), this.adjustForMinRange(), !(G || this.axisPointRange || this.stacking && this.stacking.usePercentage || Q) && C(this.min) && C(this.max) && (m = this.max - this.min) && (!C(nt) && q && (this.min -= m * q), !C(rt) && $ && (this.max += m * $)), l(this.userMin) || (l(Y.softMin) && Y.softMin < this.min && (this.min = nt = Y.softMin), l(Y.floor) && (this.min = Math.max(this.min, Y.floor))), l(this.userMax) || (l(Y.softMax) && Y.softMax > this.max && (this.max = rt = Y.softMax), l(Y.ceiling) && (this.max = Math.min(this.max, Y.ceiling))), z && C(this.dataMin) && (et = et || 0, !C(nt) && this.min < et && this.dataMin >= et ? this.min = this.options.minRange ? Math.min(et, this.max - this.minRange) : et : !C(rt) && this.max > et && this.dataMax <= et && (this.max = this.options.minRange ? Math.max(et, this.min + this.minRange) : et)), l(this.min) && l(this.max) && !this.chart.polar && this.min > this.max && (C(this.options.min) ? this.max = this.min : C(this.options.max) && (this.min = this.max)), this.tickInterval = this.min === this.max || typeof this.min > "u" || typeof this.max > "u" ? 1 : Q && this.linkedParent && !it && k === this.linkedParent.options.tickPixelInterval ? it = this.linkedParent.tickInterval : A(it, this.tickAmount ? (this.max - this.min) / Math.max(this.tickAmount - 1, 1) : void 0, G ? 1 : (this.max - this.min) * k / Math.max(this.len, k)), V && !g) {
  2324. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  2325. this.series.forEach(function(lt) {
  2326. lt.forceCrop = lt.forceCropping && lt.forceCropping(), lt.processData(dt);
  2327. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  2328. }
  2329. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), g = A(Y.minTickInterval, this.dateTime && !this.series.some(function(lt) {
  2330. return lt.noSharedTooltip;
  2331. }) ? this.closestPointRange : 0), !it && this.tickInterval < g && (this.tickInterval = g), this.dateTime || this.logarithmic || it || (this.tickInterval = o(this.tickInterval, void 0, p(this.tickInterval), A(Y.allowDecimals, 0.5 > this.tickInterval || this.tickAmount !== void 0), !!this.tickAmount)), this.tickAmount || (this.tickInterval = this.unsquish()), this.setTickPositions();
  2332. }, X.prototype.setTickPositions = function() {
  2333. var g = this.options, m = g.tickPositions, L = this.getMinorTickInterval(), Y = this.hasVerticalPanning(), V = this.coll === "colorAxis", Q = (V || !Y) && g.startOnTick;
  2334. Y = (V || !Y) && g.endOnTick, V = g.tickPositioner, this.tickmarkOffset = this.categories && g.tickmarkPlacement === "between" && this.tickInterval === 1 ? 0.5 : 0, this.minorTickInterval = L === "auto" && this.tickInterval ? this.tickInterval / 5 : L, this.single = this.min === this.max && C(this.min) && !this.tickAmount && (parseInt(this.min, 10) === this.min || g.allowDecimals !== !1), this.tickPositions = L = m && m.slice(), !L && (this.ordinal && this.ordinal.positions || !((this.max - this.min) / this.tickInterval > Math.max(2 * this.len, 200)) ? L = this.dateTime ? this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval, g.units), this.min, this.max, g.startOfWeek, this.ordinal && this.ordinal.positions, this.closestPointRange, !0) : this.logarithmic ? this.logarithmic.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(
  2335. this.tickInterval,
  2336. this.min,
  2337. this.max
  2338. ) : (L = [this.min, this.max], x(19, !1, this.chart)), L.length > this.len && (L = [L[0], L.pop()], L[0] === L[1] && (L.length = 1)), this.tickPositions = L, V && (V = V.apply(this, [this.min, this.max]))) && (this.tickPositions = L = V), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, Y), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(k) {
  2339. return k.is("heatmap") && k.options.pointPlacement === "between";
  2340. }) && (this.min -= 0.5, this.max += 0.5), m || V || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  2341. }, X.prototype.trimTicks = function(g, m, L) {
  2342. var Y = g[0], V = g[g.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  2343. if (c(this, "trimTicks"), !this.isLinked) {
  2344. if (m && Y !== -1 / 0)
  2345. this.min = Y;
  2346. else
  2347. for (; this.min - Q > g[0]; )
  2348. g.shift();
  2349. if (L)
  2350. this.max = V;
  2351. else
  2352. for (; this.max + Q < g[g.length - 1]; )
  2353. g.pop();
  2354. g.length === 0 && C(Y) && !this.options.tickPositions && g.push((V + Y) / 2);
  2355. }
  2356. }, X.prototype.alignToOthers = function() {
  2357. var g = {}, m = this.options, L;
  2358. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(Y) {
  2359. var V = Y.options;
  2360. V = [Y.horiz ? V.left : V.top, V.width, V.height, V.pane].join(), Y.series.length && (g[V] ? L = !0 : g[V] = 1);
  2361. }), L;
  2362. }, X.prototype.getTickAmount = function() {
  2363. var g = this.options, m = g.tickPixelInterval, L = g.tickAmount;
  2364. !C(g.tickInterval) && !L && this.len < m && !this.isRadial && !this.logarithmic && g.startOnTick && g.endOnTick && (L = 2), !L && this.alignToOthers() && (L = Math.ceil(this.len / m) + 1), 4 > L && (this.finalTickAmt = L, L = 5), this.tickAmount = L;
  2365. }, X.prototype.adjustTickAmount = function() {
  2366. var g = this.options, m = this.tickInterval, L = this.tickPositions, Y = this.tickAmount, V = this.finalTickAmt, Q = L && L.length, k = A(this.threshold, this.softThreshold ? 0 : null);
  2367. if (this.hasData() && l(this.min) && l(this.max)) {
  2368. if (Q < Y) {
  2369. for (; L.length < Y; )
  2370. L.length % 2 || this.min === k ? L.push(N(L[L.length - 1] + m)) : L.unshift(N(L[0] - m));
  2371. this.transA *= (Q - 1) / (Y - 1), this.min = g.startOnTick ? L[0] : Math.min(this.min, L[0]), this.max = g.endOnTick ? L[L.length - 1] : Math.max(this.max, L[L.length - 1]);
  2372. } else
  2373. Q > Y && (this.tickInterval *= 2, this.setTickPositions());
  2374. if (C(V)) {
  2375. for (m = g = L.length; m--; )
  2376. (V === 3 && m % 2 === 1 || 2 >= V && 0 < m && m < g - 1) && L.splice(m, 1);
  2377. this.finalTickAmt = void 0;
  2378. }
  2379. }
  2380. }, X.prototype.setScale = function() {
  2381. var g = !1, m = !1;
  2382. this.series.forEach(function(Y) {
  2383. g = g || Y.isDirtyData || Y.isDirty, m = m || Y.xAxis && Y.xAxis.isDirty || !1;
  2384. }), this.setAxisSize();
  2385. var L = this.len !== (this.old && this.old.len);
  2386. L || g || m || this.isLinked || this.forceRedraw || this.userMin !== (this.old && this.old.userMin) || this.userMax !== (this.old && this.old.userMax) || this.alignToOthers() ? (this.stacking && this.stacking.resetStacks(), this.forceRedraw = !1, this.getSeriesExtremes(), this.setTickInterval(), this.isDirty || (this.isDirty = L || this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max))) : this.stacking && this.stacking.cleanStacks(), g && this.panningState && (this.panningState.isDirty = !0), c(this, "afterSetScale");
  2387. }, X.prototype.setExtremes = function(g, m, L, Y, V) {
  2388. var Q = this, k = Q.chart;
  2389. L = A(L, !0), Q.series.forEach(function(G) {
  2390. delete G.kdTree;
  2391. }), V = a(V, { min: g, max: m }), c(Q, "setExtremes", V, function() {
  2392. Q.userMin = g, Q.userMax = m, Q.eventArgs = V, L && k.redraw(Y);
  2393. });
  2394. }, X.prototype.zoom = function(g, m) {
  2395. var L = this, Y = this.dataMin, V = this.dataMax, Q = this.options, k = Math.min(Y, A(Q.min, Y)), G = Math.max(V, A(Q.max, V));
  2396. return g = { newMin: g, newMax: m }, c(this, "zoom", g, function(z) {
  2397. var $ = z.newMin, q = z.newMax;
  2398. ($ !== L.min || q !== L.max) && (L.allowZoomOutside || (C(Y) && ($ < k && ($ = k), $ > G && ($ = G)), C(V) && (q < k && (q = k), q > G && (q = G))), L.displayBtn = typeof $ < "u" || typeof q < "u", L.setExtremes($, q, !1, void 0, { trigger: "zoom" })), z.zoomed = !0;
  2399. }), g.zoomed;
  2400. }, X.prototype.setAxisSize = function() {
  2401. var g = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], Y = this.horiz, V = this.width = Math.round(_(A(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(_(A(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), k = this.top = Math.round(_(A(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  2402. m = this.left = Math.round(_(A(m.left, g.plotLeft + L[3]), g.plotWidth, g.plotLeft)), this.bottom = g.chartHeight - Q - k, this.right = g.chartWidth - V - m, this.len = Math.max(Y ? V : Q, 0), this.pos = Y ? m : k;
  2403. }, X.prototype.getExtremes = function() {
  2404. var g = this.logarithmic;
  2405. return { min: g ? N(g.lin2log(this.min)) : this.min, max: g ? N(g.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  2406. }, X.prototype.getThreshold = function(g) {
  2407. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  2408. return m = m ? m.lin2log(this.max) : this.max, g === null || g === -1 / 0 ? g = L : g === 1 / 0 ? g = m : L > g ? g = L : m < g && (g = m), this.translate(g, 0, 1, 0, 1);
  2409. }, X.prototype.autoLabelAlign = function(g) {
  2410. var m = (A(g, 0) - 90 * this.side + 720) % 360;
  2411. return g = { align: "center" }, c(
  2412. this,
  2413. "autoLabelAlign",
  2414. g,
  2415. function(L) {
  2416. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  2417. }
  2418. ), g.align;
  2419. }, X.prototype.tickSize = function(g) {
  2420. var m = this.options, L = A(m[g === "tick" ? "tickWidth" : "minorTickWidth"], g === "tick" && this.isXAxis && !this.categories ? 1 : 0), Y = m[g === "tick" ? "tickLength" : "minorTickLength"];
  2421. if (L && Y) {
  2422. m[g + "Position"] === "inside" && (Y = -Y);
  2423. var V = [Y, L];
  2424. }
  2425. return g = { tickSize: V }, c(this, "afterTickSize", g), g.tickSize;
  2426. }, X.prototype.labelMetrics = function() {
  2427. var g = this.tickPositions && this.tickPositions[0] || 0;
  2428. return this.chart.renderer.fontMetrics(
  2429. this.options.labels.style.fontSize,
  2430. this.ticks[g] && this.ticks[g].label
  2431. );
  2432. }, X.prototype.unsquish = function() {
  2433. var g = this.options.labels, m = this.horiz, L = this.tickInterval, Y = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), V = g.rotation, Q = this.labelMetrics(), k = Math.max(this.max - this.min, 0), G = function(nt) {
  2434. var rt = nt / (Y || 1);
  2435. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > k && nt !== 1 / 0 && Y !== 1 / 0 && k && (rt = Math.ceil(k / L)), N(rt * L);
  2436. }, z = L, $, q, it = Number.MAX_VALUE;
  2437. if (m) {
  2438. if (!g.staggerLines && !g.step)
  2439. if (l(V))
  2440. var et = [V];
  2441. else
  2442. Y < g.autoRotationLimit && (et = g.autoRotation);
  2443. et && et.forEach(function(nt) {
  2444. if (nt === V || nt && -90 <= nt && 90 >= nt) {
  2445. q = G(Math.abs(Q.h / Math.sin(d * nt)));
  2446. var rt = q + Math.abs(nt / 360);
  2447. rt < it && (it = rt, $ = nt, z = q);
  2448. }
  2449. });
  2450. } else
  2451. g.step || (z = G(Q.h));
  2452. return this.autoRotation = et, this.labelRotation = A($, l(V) ? V : 0), z;
  2453. }, X.prototype.getSlotWidth = function(g) {
  2454. var m = this.chart, L = this.horiz, Y = this.options.labels, V = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  2455. if (g && l(g.slotWidth))
  2456. return g.slotWidth;
  2457. if (L && 2 > Y.step)
  2458. return Y.rotation ? 0 : (this.staggerLines || 1) * this.len / V;
  2459. if (!L) {
  2460. if (g = Y.style.width, g !== void 0)
  2461. return parseInt(String(g), 10);
  2462. if (Q)
  2463. return Q - m.spacing[3];
  2464. }
  2465. return 0.33 * m.chartWidth;
  2466. }, X.prototype.renderUnsquish = function() {
  2467. var g = this.chart, m = g.renderer, L = this.tickPositions, Y = this.ticks, V = this.options.labels, Q = V.style, k = this.horiz, G = this.getSlotWidth(), z = Math.max(1, Math.round(G - 2 * V.padding)), $ = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  2468. if (s(V.rotation) || ($.rotation = V.rotation || 0), L.forEach(function(gt) {
  2469. gt = Y[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  2470. }), this.maxLabelLength = et, this.autoRotation)
  2471. et > z && et > q.h ? $.rotation = this.labelRotation : this.labelRotation = 0;
  2472. else if (G) {
  2473. var nt = z;
  2474. if (!it) {
  2475. var rt = "clip";
  2476. for (z = L.length; !k && z--; ) {
  2477. var ct = L[z];
  2478. (ct = Y[ct].label) && (ct.styles && ct.styles.textOverflow === "ellipsis" ? ct.css({ textOverflow: "clip" }) : ct.textPxLength > G && ct.css({ width: G + "px" }), ct.getBBox().height > this.len / L.length - (q.h - q.f) && (ct.specificTextOverflow = "ellipsis"));
  2479. }
  2480. }
  2481. }
  2482. $.rotation && (nt = et > 0.5 * g.chartHeight ? 0.33 * g.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = V.align || this.autoLabelAlign(this.labelRotation)) && ($.align = this.labelAlign), L.forEach(function(gt) {
  2483. var dt = (gt = Y[gt]) && gt.label, lt = Q.width, at = {};
  2484. dt && (dt.attr($), gt.shortenLabel ? gt.shortenLabel() : nt && !lt && Q.whiteSpace !== "nowrap" && (nt < dt.textPxLength || dt.element.tagName === "SPAN") ? (at.width = nt + "px", it || (at.textOverflow = dt.specificTextOverflow || rt), dt.css(at)) : dt.styles && dt.styles.width && !at.width && !lt && dt.css({ width: null }), delete dt.specificTextOverflow, gt.rotation = $.rotation);
  2485. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  2486. }, X.prototype.hasData = function() {
  2487. return this.series.some(function(g) {
  2488. return g.hasData();
  2489. }) || this.options.showEmpty && C(this.min) && C(this.max);
  2490. }, X.prototype.addTitle = function(g) {
  2491. var m = this.chart.renderer, L = this.horiz, Y = this.opposite, V = this.options.title, Q = this.chart.styledMode, k;
  2492. this.axisTitle || ((k = V.textAlign) || (k = (L ? { low: "left", middle: "center", high: "right" } : { low: Y ? "right" : "left", middle: "center", high: Y ? "left" : "right" })[V.align]), this.axisTitle = m.text(V.text || "", 0, 0, V.useHTML).attr({ zIndex: 7, rotation: V.rotation, align: k }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t(V.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || V.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[g ? "show" : "hide"](g);
  2493. }, X.prototype.generateTick = function(g) {
  2494. var m = this.ticks;
  2495. m[g] ? m[g].addLabel() : m[g] = new H(this, g);
  2496. }, X.prototype.getOffset = function() {
  2497. var g = this, m = this, L = m.chart, Y = m.horiz, V = m.options, Q = m.side, k = m.ticks, G = m.tickPositions, z = m.coll, $ = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = V.title, rt = V.labels, ct = L.axisOffset;
  2498. L = L.clipOffset;
  2499. var gt = [
  2500. -1,
  2501. 1,
  2502. 1,
  2503. -1
  2504. ][Q], dt = V.className, lt, at = 0, J = 0, tt = 0;
  2505. if (m.showAxis = lt = et || V.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  2506. var st = function(pt, yt, vt) {
  2507. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + z.toLowerCase() + yt + " " + (g.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add($);
  2508. };
  2509. m.gridGroup = st("grid", "-grid", V.gridZIndex), m.axisGroup = st("axis", "", V.zIndex), m.labelGroup = st("axis-labels", "-labels", rt.zIndex);
  2510. }
  2511. if (et || m.isLinked ? (G.forEach(function(pt) {
  2512. m.generateTick(pt);
  2513. }), m.renderUnsquish(), m.reserveSpaceDefault = Q === 0 || Q === 2 || { 1: "left", 3: "right" }[Q] === m.labelAlign, A(rt.reserveSpace, m.labelAlign === "center" ? !0 : null, m.reserveSpaceDefault) && G.forEach(function(pt) {
  2514. tt = Math.max(k[pt].getLabelSize(), tt);
  2515. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : n(k, function(pt, yt) {
  2516. pt.destroy(), delete k[yt];
  2517. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(lt), lt && nt.reserveSpace !== !1)) {
  2518. m.titleOffset = at = m.axisTitle.getBBox()[Y ? "height" : "width"];
  2519. var ht = nt.offset;
  2520. J = C(ht) ? 0 : A(nt.margin, Y ? 5 : 10);
  2521. }
  2522. m.renderLine(), m.offset = gt * A(
  2523. V.offset,
  2524. ct[Q] ? ct[Q] + (V.margin || 0) : 0
  2525. ), m.tickRotCorr = m.tickRotCorr || { x: 0, y: 0 }, nt = Q === 0 ? -m.labelMetrics().h : Q === 2 ? m.tickRotCorr.y : 0, et = Math.abs(tt) + J, tt && (et = et - nt + gt * (Y ? A(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = A(ht, et), m.getMaxLabelDimensions && (m.maxLabelDimensions = m.getMaxLabelDimensions(k, G)), z !== "colorAxis" && (Y = this.tickSize("tick"), ct[Q] = Math.max(ct[Q], (m.axisTitleMargin || 0) + at + gt * m.offset, et, G && G.length && Y ? Y[0] + gt * m.offset : 0), V = !m.axisLine || V.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(
  2526. L[it],
  2527. V
  2528. )), c(this, "afterGetOffset");
  2529. }, X.prototype.getLinePath = function(g) {
  2530. var m = this.chart, L = this.opposite, Y = this.offset, V = this.horiz, Q = this.left + (L ? this.width : 0) + Y;
  2531. return Y = m.chartHeight - this.bottom - (L ? this.height : 0) + Y, L && (g *= -1), m.renderer.crispLine([["M", V ? this.left : Q, V ? Y : this.top], ["L", V ? m.chartWidth - this.right : Q, V ? Y : m.chartHeight - this.bottom]], g);
  2532. }, X.prototype.renderLine = function() {
  2533. this.axisLine || (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.chart.styledMode || this.axisLine.attr({ stroke: this.options.lineColor, "stroke-width": this.options.lineWidth, zIndex: 7 }));
  2534. }, X.prototype.getTitlePosition = function() {
  2535. var g = this.horiz, m = this.left, L = this.top, Y = this.len, V = this.options.title, Q = g ? m : L, k = this.opposite, G = this.offset, z = V.x, $ = V.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics(V.style.fontSize, q);
  2536. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), Y = { low: Q + (g ? 0 : Y), middle: Q + Y / 2, high: Q + (g ? Y : 0) }[V.align], m = (g ? L + this.height : m) + (g ? 1 : -1) * (k ? -1 : 1) * this.axisTitleMargin + [
  2537. -q,
  2538. q,
  2539. it.f,
  2540. -q
  2541. ][this.side], g = { x: g ? Y + z : m + (k ? this.width : 0) + G + z, y: g ? m + $ - (k ? this.height : 0) + G : Y + $ }, c(this, "afterGetTitlePosition", { titlePosition: g }), g;
  2542. }, X.prototype.renderMinorTick = function(g, m) {
  2543. var L = this.minorTicks;
  2544. L[g] || (L[g] = new H(this, g, "minor")), m && L[g].isNew && L[g].render(null, !0), L[g].render(null, !1, 1);
  2545. }, X.prototype.renderTick = function(g, m, L) {
  2546. var Y = this.ticks;
  2547. (!this.isLinked || g >= this.min && g <= this.max || this.grid && this.grid.isColumn) && (Y[g] || (Y[g] = new H(this, g)), L && Y[g].isNew && Y[g].render(m, !0, -1), Y[g].render(m));
  2548. }, X.prototype.render = function() {
  2549. var g = this, m = g.chart, L = g.logarithmic, Y = g.options, V = g.isLinked, Q = g.tickPositions, k = g.axisTitle, G = g.ticks, z = g.minorTicks, $ = g.alternateBands, q = Y.stackLabels, it = Y.alternateGridColor, et = g.tickmarkOffset, nt = g.axisLine, rt = g.showAxis, ct = R(m.renderer.globalAnimation), gt, dt;
  2550. if (g.labelEdge.length = 0, g.overlap = !1, [G, z, $].forEach(function(at) {
  2551. n(at, function(J) {
  2552. J.isActive = !1;
  2553. });
  2554. }), g.hasData() || V) {
  2555. var lt = g.chart.hasRendered && g.old && l(g.old.min);
  2556. g.minorTickInterval && !g.categories && g.getMinorTickPositions().forEach(function(at) {
  2557. g.renderMinorTick(
  2558. at,
  2559. lt
  2560. );
  2561. }), Q.length && (Q.forEach(function(at, J) {
  2562. g.renderTick(at, J, lt);
  2563. }), et && (g.min === 0 || g.single) && (G[-1] || (G[-1] = new H(g, -1, null, !0)), G[-1].render(-1))), it && Q.forEach(function(at, J) {
  2564. dt = typeof Q[J + 1] < "u" ? Q[J + 1] + et : g.max - et, J % 2 === 0 && at < g.max && dt <= g.max + (m.polar ? -et : et) && ($[at] || ($[at] = new U.PlotLineOrBand(g)), gt = at + et, $[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, $[at].render(), $[at].isActive = !0);
  2565. }), g._addedPlotLB || (g._addedPlotLB = !0, (Y.plotLines || []).concat(Y.plotBands || []).forEach(function(at) {
  2566. g.addPlotBandOrLine(at);
  2567. }));
  2568. }
  2569. [G, z, $].forEach(function(at) {
  2570. var J = [], tt = ct.duration;
  2571. n(at, function(st, ht) {
  2572. st.isActive || (st.render(ht, !1, 0), st.isActive = !1, J.push(ht));
  2573. }), T(function() {
  2574. for (var st = J.length; st--; )
  2575. at[J[st]] && !at[J[st]].isActive && (at[J[st]].destroy(), delete at[J[st]]);
  2576. }, at !== $ && m.hasRendered && tt ? tt : 0);
  2577. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), k && rt && (Y = g.getTitlePosition(), l(Y.y) ? (k[k.isNew ? "attr" : "animate"](Y), k.isNew = !1) : (k.attr(
  2578. "y",
  2579. -9999
  2580. ), k.isNew = !0)), q && q.enabled && g.stacking && g.stacking.renderStackTotals(), g.old = { len: g.len, max: g.max, min: g.min, transA: g.transA, userMax: g.userMax, userMin: g.userMin }, g.isDirty = !1, c(this, "afterRender");
  2581. }, X.prototype.redraw = function() {
  2582. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(g) {
  2583. g.render();
  2584. })), this.series.forEach(function(g) {
  2585. g.isDirty = !0;
  2586. });
  2587. }, X.prototype.getKeepProps = function() {
  2588. return this.keepProps || X.keepProps;
  2589. }, X.prototype.destroy = function(g) {
  2590. var m = this, L = m.plotLinesAndBands, Y = this.eventOptions;
  2591. if (c(this, "destroy", { keepEvents: g }), g || D(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  2592. b(Q);
  2593. }), L)
  2594. for (g = L.length; g--; )
  2595. L[g].destroy();
  2596. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  2597. m[Q] && (m[Q] = m[Q].destroy());
  2598. });
  2599. for (var V in m.plotLinesAndBandsGroups)
  2600. m.plotLinesAndBandsGroups[V] = m.plotLinesAndBandsGroups[V].destroy();
  2601. n(m, function(Q, k) {
  2602. m.getKeepProps().indexOf(k) === -1 && delete m[k];
  2603. }), this.eventOptions = Y;
  2604. }, X.prototype.drawCrosshair = function(g, m) {
  2605. var L = this.crosshair, Y = A(L && L.snap, !0), V = this.chart, Q, k = this.cross;
  2606. if (c(this, "drawCrosshair", { e: g, point: m }), g || (g = this.cross && this.cross.e), L && (C(m) || !Y) !== !1) {
  2607. if (Y ? C(m) && (Q = A(this.coll !== "colorAxis" ? m.crosshairPos : null, this.isXAxis ? m.plotX : this.len - m.plotY)) : Q = g && (this.horiz ? g.chartX - this.pos : this.len - g.chartY + this.pos), C(Q)) {
  2608. var G = { value: m && (this.isXAxis ? m.x : A(m.stackY, m.y)), translatedValue: Q };
  2609. V.polar && a(G, { isCrosshair: !0, chartX: g && g.chartX, chartY: g && g.chartY, point: m }), G = this.getPlotLinePath(G) || null;
  2610. }
  2611. if (!C(G)) {
  2612. this.hideCrosshair();
  2613. return;
  2614. }
  2615. Y = this.categories && !this.isRadial, k || (this.cross = k = V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (Y ? "category " : "thin ") + (L.className || "")).attr({ zIndex: A(L.zIndex, 2) }).add(), V.styledMode || (k.attr({ stroke: L.color || (Y ? I.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": A(L.width, 1) }).css({ "pointer-events": "none" }), L.dashStyle && k.attr({ dashstyle: L.dashStyle }))), k.show().attr({ d: G }), Y && !L.width && k.attr({ "stroke-width": this.transA }), this.cross.e = g;
  2616. } else
  2617. this.hideCrosshair();
  2618. c(this, "afterDrawCrosshair", { e: g, point: m });
  2619. }, X.prototype.hideCrosshair = function() {
  2620. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  2621. }, X.prototype.hasVerticalPanning = function() {
  2622. var g = this.chart.options.chart.panning;
  2623. return !!(g && g.enabled && /y/.test(g.type));
  2624. }, X.prototype.validatePositiveValue = function(g) {
  2625. return l(g) && 0 < g;
  2626. }, X.prototype.update = function(g, m) {
  2627. var L = this.chart;
  2628. g = t(this.userOptions, g), this.destroy(!0), this.init(L, g), L.isDirtyBox = !0, A(m, !0) && L.redraw();
  2629. }, X.prototype.remove = function(g) {
  2630. for (var m = this.chart, L = this.coll, Y = this.series, V = Y.length; V--; )
  2631. Y[V] && Y[V].remove(!1);
  2632. w(m.axes, this), w(m[L], this), m[L].forEach(function(Q, k) {
  2633. Q.options.index = Q.userOptions.index = k;
  2634. }), this.destroy(), m.isDirtyBox = !0, A(g, !0) && m.redraw();
  2635. }, X.prototype.setTitle = function(g, m) {
  2636. this.update({ title: g }, m);
  2637. }, X.prototype.setCategories = function(g, m) {
  2638. this.update({ categories: g }, m);
  2639. }, X.defaultOptions = j.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  2640. }(), y;
  2641. }), E(h, "Core/Axis/DateTimeAxis.js", [h["Core/Utilities.js"]], function(y) {
  2642. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, F = y.timeUnits, U;
  2643. return function(H) {
  2644. function W() {
  2645. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  2646. }
  2647. function R(d) {
  2648. d.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new v(this));
  2649. }
  2650. var S = [];
  2651. H.compose = function(d) {
  2652. return S.indexOf(d) === -1 && (S.push(d), d.keepProps.push("dateTime"), d.prototype.getTimeTicks = W, j(
  2653. d,
  2654. "init",
  2655. R
  2656. )), d;
  2657. };
  2658. var v = function() {
  2659. function d(u) {
  2660. this.axis = u;
  2661. }
  2662. return d.prototype.normalizeTimeTickInterval = function(u, P) {
  2663. var O = P || [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2]], ["week", [1, 2]], ["month", [1, 2, 3, 4, 6]], ["year", null]];
  2664. P = O[O.length - 1];
  2665. var N = F[P[0]], C = P[1], b;
  2666. for (b = 0; b < O.length && (P = O[b], N = F[P[0]], C = P[1], !(O[b + 1] && u <= (N * C[C.length - 1] + F[O[b + 1][0]]) / 2)); b++)
  2667. ;
  2668. return N === F.year && u < 5 * N && (C = [1, 2, 5]), u = Z(u / N, C, P[0] === "year" ? Math.max(I(u / N), 1) : 1), { unitRange: N, count: u, unitName: P[0] };
  2669. }, d.prototype.getXDateFormat = function(u, P) {
  2670. var O = this.axis;
  2671. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, u, O.options.startOfWeek, P) || P.year : P.day;
  2672. }, d;
  2673. }();
  2674. H.Additions = v;
  2675. }(U || (U = {})), U;
  2676. }), E(h, "Core/Axis/LogarithmicAxis.js", [h["Core/Utilities.js"]], function(y) {
  2677. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, F = y.pick, U;
  2678. return function(H) {
  2679. function W(d) {
  2680. var u = this.logarithmic;
  2681. d.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : u || (this.logarithmic = new v(this));
  2682. }
  2683. function R() {
  2684. var d = this.logarithmic;
  2685. d && (this.lin2val = function(u) {
  2686. return d.lin2log(u);
  2687. }, this.val2lin = function(u) {
  2688. return d.log2lin(u);
  2689. });
  2690. }
  2691. var S = [];
  2692. H.compose = function(d) {
  2693. return S.indexOf(d) === -1 && (S.push(d), d.keepProps.push("logarithmic"), j(d, "init", W), j(d, "afterInit", R)), d;
  2694. };
  2695. var v = function() {
  2696. function d(u) {
  2697. this.axis = u;
  2698. }
  2699. return d.prototype.getLogTickPositions = function(u, P, O, N) {
  2700. var C = this.axis, b = C.len, w = C.options, x = [];
  2701. if (N || (this.minorAutoInterval = void 0), 0.5 <= u)
  2702. u = Math.round(u), x = C.getLinearTickPositions(u, P, O);
  2703. else if (0.08 <= u) {
  2704. var a = Math.floor(P), c, p = w = void 0;
  2705. for (b = 0.3 < u ? [1, 2, 4] : 0.15 < u ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; a < O + 1 && !p; a++) {
  2706. var i = b.length;
  2707. for (c = 0; c < i && !p; c++) {
  2708. var l = this.log2lin(this.lin2log(a) * b[c]);
  2709. l > P && (!N || w <= O) && typeof w < "u" && x.push(w), w > O && (p = !0), w = l;
  2710. }
  2711. }
  2712. } else
  2713. P = this.lin2log(P), O = this.lin2log(O), u = N ? C.getMinorTickInterval() : w.tickInterval, u = F(u === "auto" ? null : u, this.minorAutoInterval, w.tickPixelInterval / (N ? 5 : 1) * (O - P) / ((N ? b / C.tickPositions.length : b) || 1)), u = Z(u, void 0, I(u)), x = C.getLinearTickPositions(u, P, O).map(this.log2lin), N || (this.minorAutoInterval = u / 5);
  2714. return N || (C.tickInterval = u), x;
  2715. }, d.prototype.lin2log = function(u) {
  2716. return Math.pow(10, u);
  2717. }, d.prototype.log2lin = function(u) {
  2718. return Math.log(u) / Math.LN10;
  2719. }, d;
  2720. }();
  2721. H.Additions = v;
  2722. }(U || (U = {})), U;
  2723. }), E(h, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [h["Core/Utilities.js"]], function(y) {
  2724. var j = y.erase, I = y.extend, Z = y.isNumber, F;
  2725. return function(U) {
  2726. var H = [], W;
  2727. U.compose = function(S, v) {
  2728. return W || (W = S), H.indexOf(v) === -1 && (H.push(v), I(v.prototype, R.prototype)), v;
  2729. };
  2730. var R = function() {
  2731. function S() {
  2732. }
  2733. return S.prototype.getPlotBandPath = function(v, d, u) {
  2734. u === void 0 && (u = this.options);
  2735. var P = this.getPlotLinePath({ value: d, force: !0, acrossPanes: u.acrossPanes }), O = [], N = this.horiz;
  2736. if (d = !Z(this.min) || !Z(this.max) || v < this.min && d < this.min || v > this.max && d > this.max, v = this.getPlotLinePath({ value: v, force: !0, acrossPanes: u.acrossPanes }), u = 1, v && P) {
  2737. if (d) {
  2738. var C = v.toString() === P.toString();
  2739. u = 0;
  2740. }
  2741. for (d = 0; d < v.length; d += 2) {
  2742. var b = v[d], w = v[d + 1], x = P[d], a = P[d + 1];
  2743. b[0] !== "M" && b[0] !== "L" || w[0] !== "M" && w[0] !== "L" || x[0] !== "M" && x[0] !== "L" || a[0] !== "M" && a[0] !== "L" || (N && x[1] === b[1] ? (x[1] += u, a[1] += u) : N || x[2] !== b[2] || (x[2] += u, a[2] += u), O.push(["M", b[1], b[2]], ["L", w[1], w[2]], ["L", a[1], a[2]], ["L", x[1], x[2]], ["Z"])), O.isFlat = C;
  2744. }
  2745. }
  2746. return O;
  2747. }, S.prototype.addPlotBand = function(v) {
  2748. return this.addPlotBandOrLine(v, "plotBands");
  2749. }, S.prototype.addPlotLine = function(v) {
  2750. return this.addPlotBandOrLine(v, "plotLines");
  2751. }, S.prototype.addPlotBandOrLine = function(v, d) {
  2752. var u = this, P = this.userOptions, O = new W(this, v);
  2753. if (this.visible && (O = O.render()), O) {
  2754. if (this._addedPlotLB || (this._addedPlotLB = !0, (P.plotLines || []).concat(P.plotBands || []).forEach(function(C) {
  2755. u.addPlotBandOrLine(C);
  2756. })), d) {
  2757. var N = P[d] || [];
  2758. N.push(v), P[d] = N;
  2759. }
  2760. this.plotLinesAndBands.push(O);
  2761. }
  2762. return O;
  2763. }, S.prototype.removePlotBandOrLine = function(v) {
  2764. var d = this.plotLinesAndBands, u = this.options, P = this.userOptions;
  2765. if (d) {
  2766. for (var O = d.length; O--; )
  2767. d[O].id === v && d[O].destroy();
  2768. [u.plotLines || [], P.plotLines || [], u.plotBands || [], P.plotBands || []].forEach(function(N) {
  2769. for (O = N.length; O--; )
  2770. (N[O] || {}).id === v && j(N, N[O]);
  2771. });
  2772. }
  2773. }, S.prototype.removePlotBand = function(v) {
  2774. this.removePlotBandOrLine(v);
  2775. }, S.prototype.removePlotLine = function(v) {
  2776. this.removePlotBandOrLine(v);
  2777. }, S;
  2778. }();
  2779. }(F || (F = {})), F;
  2780. }), E(h, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [h["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], h["Core/Utilities.js"]], function(y, j) {
  2781. var I = j.arrayMax, Z = j.arrayMin, F = j.defined, U = j.destroyObjectProperties, H = j.erase, W = j.fireEvent, R = j.merge, S = j.objectEach, v = j.pick;
  2782. return j = function() {
  2783. function d(u, P) {
  2784. this.axis = u, P && (this.options = P, this.id = P.id);
  2785. }
  2786. return d.compose = function(u) {
  2787. return y.compose(d, u);
  2788. }, d.prototype.render = function() {
  2789. W(this, "render");
  2790. var u = this, P = u.axis, O = P.horiz, N = P.logarithmic, C = u.options, b = C.color, w = v(C.zIndex, 0), x = C.events, a = {}, c = P.chart.renderer, p = C.label, i = u.label, l = C.to, s = C.from, t = C.value, o = u.svgElem, n = [], A = F(s) && F(l);
  2791. n = F(t);
  2792. var _ = !o, D = { class: "highcharts-plot-" + (A ? "band " : "line ") + (C.className || "") }, B = A ? "bands" : "lines";
  2793. if (N && (s = N.log2lin(s), l = N.log2lin(l), t = N.log2lin(t)), P.chart.styledMode || (n ? (D.stroke = b || "#999999", D["stroke-width"] = v(C.width, 1), C.dashStyle && (D.dashstyle = C.dashStyle)) : A && (D.fill = b || "#e6ebf5", C.borderWidth && (D.stroke = C.borderColor, D["stroke-width"] = C.borderWidth))), a.zIndex = w, B += "-" + w, (N = P.plotLinesAndBandsGroups[B]) || (P.plotLinesAndBandsGroups[B] = N = c.g("plot-" + B).attr(a).add()), _ && (u.svgElem = o = c.path().attr(D).add(N)), n)
  2794. n = P.getPlotLinePath({ value: t, lineWidth: o.strokeWidth(), acrossPanes: C.acrossPanes });
  2795. else if (A)
  2796. n = P.getPlotBandPath(
  2797. s,
  2798. l,
  2799. C
  2800. );
  2801. else
  2802. return;
  2803. return !u.eventsAdded && x && (S(x, function(T, X) {
  2804. o.on(X, function(g) {
  2805. x[X].apply(u, [g]);
  2806. });
  2807. }), u.eventsAdded = !0), (_ || !o.d) && n && n.length ? o.attr({ d: n }) : o && (n ? (o.show(!0), o.animate({ d: n })) : o.d && (o.hide(), i && (u.label = i = i.destroy()))), p && (F(p.text) || F(p.formatter)) && n && n.length && 0 < P.width && 0 < P.height && !n.isFlat ? (p = R({ align: O && A && "center", x: O ? !A && 4 : 10, verticalAlign: !O && A && "middle", y: O ? A ? 16 : 10 : A ? 6 : -4, rotation: O && !A && 90 }, p), this.renderLabel(p, n, A, w)) : i && i.hide(), u;
  2808. }, d.prototype.renderLabel = function(u, P, O, N) {
  2809. var C = this.axis, b = C.chart.renderer, w = this.label;
  2810. w || (this.label = w = b.text(this.getLabelText(u), 0, 0, u.useHTML).attr({ align: u.textAlign || u.align, rotation: u.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (u.className || ""), zIndex: N }).add(), C.chart.styledMode || w.css(R({ textOverflow: "ellipsis" }, u.style))), N = P.xBounds || [P[0][1], P[1][1], O ? P[2][1] : P[0][1]], P = P.yBounds || [P[0][2], P[1][2], O ? P[2][2] : P[0][2]], O = Z(N), b = Z(P), w.align(u, !1, { x: O, y: b, width: I(N) - O, height: I(P) - b }), w.alignValue && w.alignValue !== "left" || w.css({ width: (w.rotation === 90 ? C.height - (w.alignAttr.y - C.top) : C.width - (w.alignAttr.x - C.left)) + "px" }), w.show(!0);
  2811. }, d.prototype.getLabelText = function(u) {
  2812. return F(u.formatter) ? u.formatter.call(this) : u.text;
  2813. }, d.prototype.destroy = function() {
  2814. H(this.axis.plotLinesAndBands, this), delete this.axis, U(this);
  2815. }, d;
  2816. }(), j;
  2817. }), E(
  2818. h,
  2819. "Core/Tooltip.js",
  2820. [h["Core/FormatUtilities.js"], h["Core/Globals.js"], h["Core/Renderer/RendererUtilities.js"], h["Core/Renderer/RendererRegistry.js"], h["Core/Utilities.js"]],
  2821. function(y, j, I, Z, F) {
  2822. var U = y.format, H = j.doc, W = I.distribute, R = F.addEvent, S = F.clamp, v = F.css, d = F.defined, u = F.discardElement, P = F.extend, O = F.fireEvent, N = F.isArray, C = F.isNumber, b = F.isString, w = F.merge, x = F.pick, a = F.splat, c = F.syncTimeout;
  2823. return y = function() {
  2824. function p(i, l) {
  2825. this.allowShared = !0, this.container = void 0, this.crosshairs = [], this.distance = 0, this.isHidden = !0, this.isSticky = !1, this.now = {}, this.options = {}, this.outside = !1, this.chart = i, this.init(i, l);
  2826. }
  2827. return p.prototype.applyFilter = function() {
  2828. var i = this.chart;
  2829. i.renderer.definition({
  2830. tagName: "filter",
  2831. attributes: { id: "drop-shadow-" + i.index, opacity: 0.5 },
  2832. children: [{ tagName: "feGaussianBlur", attributes: { in: "SourceAlpha", stdDeviation: 1 } }, { tagName: "feOffset", attributes: { dx: 1, dy: 1 } }, { tagName: "feComponentTransfer", children: [{ tagName: "feFuncA", attributes: { type: "linear", slope: 0.3 } }] }, { tagName: "feMerge", children: [{ tagName: "feMergeNode" }, { tagName: "feMergeNode", attributes: { in: "SourceGraphic" } }] }]
  2833. });
  2834. }, p.prototype.bodyFormatter = function(i) {
  2835. return i.map(function(l) {
  2836. var s = l.series.tooltipOptions;
  2837. return (s[(l.point.formatPrefix || "point") + "Formatter"] || l.point.tooltipFormatter).call(l.point, s[(l.point.formatPrefix || "point") + "Format"] || "");
  2838. });
  2839. }, p.prototype.cleanSplit = function(i) {
  2840. this.chart.series.forEach(function(l) {
  2841. var s = l && l.tt;
  2842. s && (!s.isActive || i ? l.tt = s.destroy() : s.isActive = !1);
  2843. });
  2844. }, p.prototype.defaultFormatter = function(i) {
  2845. var l = this.points || a(this), s = [i.tooltipFooterHeaderFormatter(l[0])];
  2846. return s = s.concat(i.bodyFormatter(l)), s.push(i.tooltipFooterHeaderFormatter(l[0], !0)), s;
  2847. }, p.prototype.destroy = function() {
  2848. this.label && (this.label = this.label.destroy()), this.split && this.tt && (this.cleanSplit(!0), this.tt = this.tt.destroy()), this.renderer && (this.renderer = this.renderer.destroy(), u(this.container)), F.clearTimeout(this.hideTimer), F.clearTimeout(this.tooltipTimeout);
  2849. }, p.prototype.getAnchor = function(i, l) {
  2850. var s = this.chart, t = s.pointer, o = s.inverted, n = s.plotTop, A = s.plotLeft, _, D, B = 0, T = 0;
  2851. return i = a(i), this.followPointer && l ? (typeof l.chartX > "u" && (l = t.normalize(l)), t = [l.chartX - A, l.chartY - n]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  2852. _ = X.series.yAxis, D = X.series.xAxis, B += X.plotX || 0, T += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, D && _ && (o ? (B += n + s.plotHeight - D.len - D.pos, T += A + s.plotWidth - _.len - _.pos) : (B += D.pos - A, T += _.pos - n));
  2853. }), B /= i.length, T /= i.length, t = [o ? s.plotWidth - T : B, o ? s.plotHeight - B : T], this.shared && 1 < i.length && l && (o ? t[0] = l.chartX - A : t[1] = l.chartY - n)), t.map(Math.round);
  2854. }, p.prototype.getLabel = function() {
  2855. var i = this, l = this.chart.styledMode, s = this.options, t = this.split && this.allowShared, o = "tooltip" + (d(s.className) ? " " + s.className : ""), n = s.style.pointerEvents || (!this.followPointer && s.stickOnContact ? "auto" : "none"), A = function() {
  2856. i.inContact = !0;
  2857. }, _ = function(Y) {
  2858. var V = i.chart.hoverSeries;
  2859. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(Y.relatedTarget, "highcharts-tooltip"), !i.inContact && V && V.onMouseOut && V.onMouseOut();
  2860. }, D, B = this.chart.renderer;
  2861. if (i.label) {
  2862. var T = !i.label.hasClass("highcharts-label");
  2863. (t && !T || !t && T) && i.destroy();
  2864. }
  2865. if (!this.label) {
  2866. if (this.outside) {
  2867. T = this.chart.options.chart.style;
  2868. var X = Z.getRendererType();
  2869. this.container = D = j.doc.createElement("div"), D.className = "highcharts-tooltip-container", v(D, { position: "absolute", top: "1px", pointerEvents: n, zIndex: Math.max(this.options.style.zIndex || 0, (T && T.zIndex || 0) + 3) }), R(D, "mouseenter", A), R(D, "mouseleave", _), j.doc.body.appendChild(D), this.renderer = B = new X(D, 0, 0, T, void 0, void 0, B.styledMode);
  2870. }
  2871. if (t ? this.label = B.g(o) : (this.label = B.label("", 0, 0, s.shape, void 0, void 0, s.useHTML, void 0, o).attr({ padding: s.padding, r: s.borderRadius }), l || this.label.attr({
  2872. fill: s.backgroundColor,
  2873. "stroke-width": s.borderWidth
  2874. }).css(s.style).css({ pointerEvents: n }).shadow(s.shadow)), l && s.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  2875. var g = this.label, m = g.xSetter, L = g.ySetter;
  2876. g.xSetter = function(Y) {
  2877. m.call(g, i.distance), D.style.left = Y + "px";
  2878. }, g.ySetter = function(Y) {
  2879. L.call(g, i.distance), D.style.top = Y + "px";
  2880. };
  2881. }
  2882. this.label.on("mouseenter", A).on("mouseleave", _).attr({ zIndex: 8 }).add();
  2883. }
  2884. return this.label;
  2885. }, p.prototype.getPosition = function(i, l, s) {
  2886. var t = this.chart, o = this.distance, n = {}, A = t.inverted && s.h || 0, _ = this.outside, D = _ ? H.documentElement.clientWidth - 2 * o : t.chartWidth, B = _ ? Math.max(H.body.scrollHeight, H.documentElement.scrollHeight, H.body.offsetHeight, H.documentElement.offsetHeight, H.documentElement.clientHeight) : t.chartHeight, T = t.pointer.getChartPosition(), X = function(z) {
  2887. var $ = z === "x";
  2888. return [z, $ ? D : B, $ ? i : l].concat(_ ? [$ ? i * T.scaleX : l * T.scaleY, $ ? T.left - o + (s.plotX + t.plotLeft) * T.scaleX : T.top - o + (s.plotY + t.plotTop) * T.scaleY, 0, $ ? D : B] : [$ ? i : l, $ ? s.plotX + t.plotLeft : s.plotY + t.plotTop, $ ? t.plotLeft : t.plotTop, $ ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  2889. }, g = X("y"), m = X("x"), L;
  2890. X = !!s.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  2891. var Y = !this.followPointer && x(s.ttBelow, !t.inverted === X), V = function(z, $, q, it, et, nt, rt) {
  2892. var ct = _ ? z === "y" ? o * T.scaleY : o * T.scaleX : o, gt = (q - it) / 2, dt = it < et - o, lt = et + o + it < $, at = et - ct - q + gt;
  2893. if (et = et + ct - gt, Y && lt)
  2894. n[z] = et;
  2895. else if (!Y && dt)
  2896. n[z] = at;
  2897. else if (dt)
  2898. n[z] = Math.min(rt - it, 0 > at - A ? at : at - A);
  2899. else if (lt)
  2900. n[z] = Math.max(nt, et + A + q > $ ? et : et + A);
  2901. else
  2902. return !1;
  2903. }, Q = function(z, $, q, it, et) {
  2904. var nt;
  2905. return et < o || et > $ - o ? nt = !1 : n[z] = et < q / 2 ? 1 : et > $ - it / 2 ? $ - it - 2 : et - q / 2, nt;
  2906. }, k = function(z) {
  2907. var $ = g;
  2908. g = m, m = $, L = z;
  2909. }, G = function() {
  2910. V.apply(0, g) !== !1 ? Q.apply(0, m) !== !1 || L || (k(!0), G()) : L ? n.x = n.y = 0 : (k(!0), G());
  2911. };
  2912. return (t.inverted || 1 < this.len) && k(), G(), n;
  2913. }, p.prototype.hide = function(i) {
  2914. var l = this;
  2915. F.clearTimeout(this.hideTimer), i = x(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  2916. l.getLabel().fadeOut(i && void 0), l.isHidden = !0;
  2917. }, i));
  2918. }, p.prototype.init = function(i, l) {
  2919. this.chart = i, this.options = l, this.crosshairs = [], this.now = { x: 0, y: 0 }, this.isHidden = !0, this.split = l.split && !i.inverted && !i.polar, this.shared = l.shared || this.split, this.outside = x(l.outside, !(!i.scrollablePixelsX && !i.scrollablePixelsY));
  2920. }, p.prototype.shouldStickOnContact = function() {
  2921. return !(this.followPointer || !this.options.stickOnContact);
  2922. }, p.prototype.isStickyOnContact = function() {
  2923. return !(!this.shouldStickOnContact() || !this.inContact);
  2924. }, p.prototype.move = function(i, l, s, t) {
  2925. var o = this, n = o.now, A = o.options.animation !== !1 && !o.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(l - n.y)), _ = o.followPointer || 1 < o.len;
  2926. P(n, { x: A ? (2 * n.x + i) / 3 : i, y: A ? (n.y + l) / 2 : l, anchorX: _ ? void 0 : A ? (2 * n.anchorX + s) / 3 : s, anchorY: _ ? void 0 : A ? (n.anchorY + t) / 2 : t }), o.getLabel().attr(n), o.drawTracker(), A && (F.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  2927. o && o.move(i, l, s, t);
  2928. }, 32));
  2929. }, p.prototype.refresh = function(i, l) {
  2930. var s = this.chart, t = this.options, o = a(i), n = o[0], A = [], _ = t.formatter || this.defaultFormatter, D = this.shared, B = s.styledMode, T = {};
  2931. if (t.enabled) {
  2932. F.clearTimeout(this.hideTimer), this.allowShared = !(!N(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && n.series.tooltipOptions.followPointer, i = this.getAnchor(i, l);
  2933. var X = i[0], g = i[1];
  2934. if (D && this.allowShared ? (s.pointer.applyInactiveState(o), o.forEach(function(Y) {
  2935. Y.setState("hover"), A.push(Y.getLabelConfig());
  2936. }), T = { x: n.category, y: n.y }, T.points = A) : T = n.getLabelConfig(), this.len = A.length, _ = _.call(T, this), D = n.series, this.distance = x(D.tooltipOptions.distance, 16), _ === !1)
  2937. this.hide();
  2938. else {
  2939. if (this.split && this.allowShared)
  2940. this.renderSplit(
  2941. _,
  2942. o
  2943. );
  2944. else {
  2945. var m = X, L = g;
  2946. if (l && s.pointer.isDirectTouch && (m = l.chartX - s.plotLeft, L = l.chartY - s.plotTop), s.polar || D.options.clip === !1 || o.some(function(Y) {
  2947. return Y.series.shouldShowTooltip(m, L);
  2948. }))
  2949. l = this.getLabel(), t.style.width && !B || l.css({ width: this.chart.spacingBox.width + "px" }), l.attr({ text: _ && _.join ? _.join("") : _ }), l.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + x(n.colorIndex, D.colorIndex)), B || l.attr({ stroke: t.borderColor || n.color || D.color || "#666666" }), this.updatePosition({
  2950. plotX: X,
  2951. plotY: g,
  2952. negative: n.negative,
  2953. ttBelow: n.ttBelow,
  2954. h: i[2] || 0
  2955. });
  2956. else {
  2957. this.hide();
  2958. return;
  2959. }
  2960. }
  2961. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  2962. }
  2963. O(this, "refresh");
  2964. }
  2965. }, p.prototype.renderSplit = function(i, l) {
  2966. function s(lt, at, J, tt, st) {
  2967. return st === void 0 && (st = !0), J ? (at = it ? 0 : ct, lt = S(lt - tt / 2, z.left, z.right - tt - (t.outside ? et : 0))) : (at -= nt, lt = st ? lt - tt - Q : lt + Q, lt = S(lt, st ? lt : z.left, z.right)), { x: lt, y: at };
  2968. }
  2969. var t = this, o = t.chart, n = t.chart, A = n.chartWidth, _ = n.chartHeight, D = n.plotHeight, B = n.plotLeft, T = n.plotTop, X = n.pointer, g = n.scrollablePixelsY;
  2970. g = g === void 0 ? 0 : g;
  2971. var m = n.scrollablePixelsX, L = n.scrollingContainer;
  2972. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  2973. var Y = L.scrollLeft;
  2974. L = L.scrollTop;
  2975. var V = n.styledMode, Q = t.distance, k = t.options, G = t.options.positioner, z = t.outside && typeof m != "number" ? H.documentElement.getBoundingClientRect() : { left: Y, right: Y + A, top: L, bottom: L + _ }, $ = t.getLabel(), q = this.renderer || o.renderer, it = !(!o.xAxis[0] || !o.xAxis[0].opposite);
  2976. o = X.getChartPosition();
  2977. var et = o.left;
  2978. o = o.top;
  2979. var nt = T + L, rt = 0, ct = D - g;
  2980. b(i) && (i = [!1, i]), i = i.slice(0, l.length + 1).reduce(function(lt, at, J) {
  2981. if (at !== !1 && at !== "") {
  2982. J = l[J - 1] || { isHeader: !0, plotX: l[0].plotX, plotY: D, series: {} };
  2983. var tt = J.isHeader, st = tt ? t : J.series;
  2984. at = at.toString();
  2985. var ht = st.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + x(J.colorIndex, yt.colorIndex, "none");
  2986. if (ht || (ht = { padding: k.padding, r: k.borderRadius }, V || (ht.fill = k.backgroundColor, ht["stroke-width"] = k.borderWidth), ht = q.label("", 0, 0, k[pt ? "headerShape" : "shape"], void 0, void 0, k.useHTML).addClass((pt ? "highcharts-tooltip-header " : "") + "highcharts-tooltip-box " + vt).attr(ht).add($)), ht.isActive = !0, ht.attr({ text: at }), V || ht.css(k.style).shadow(k.shadow).attr({ stroke: k.borderColor || J.color || yt.color || "#333333" }), st = st.tt = ht, pt = st.getBBox(), at = pt.width + st.strokeWidth(), tt && (rt = pt.height, ct += rt, it && (nt -= rt)), yt = J.plotX, yt = yt === void 0 ? 0 : yt, vt = J.plotY, vt = vt === void 0 ? 0 : vt, ht = J.series, J.isHeader) {
  2987. yt = B + yt;
  2988. var Ct = T + D / 2;
  2989. } else {
  2990. var Pt = ht.xAxis, kt = ht.yAxis;
  2991. yt = Pt.pos + S(yt, -Q, Pt.len + Q), ht.shouldShowTooltip(0, kt.pos - T + vt, { ignoreX: !0 }) && (Ct = kt.pos + vt);
  2992. }
  2993. yt = S(yt, z.left - Q, z.right + Q), typeof Ct == "number" ? (pt = pt.height + 1, vt = G ? G.call(t, at, pt, J) : s(
  2994. yt,
  2995. Ct,
  2996. tt,
  2997. at
  2998. ), lt.push({ align: G ? 0 : void 0, anchorX: yt, anchorY: Ct, boxWidth: at, point: J, rank: x(vt.rank, tt ? 1 : 0), size: pt, target: vt.y, tt: st, x: vt.x })) : st.isActive = !1;
  2999. }
  3000. return lt;
  3001. }, []), !G && i.some(function(lt) {
  3002. var at = (t.outside ? et : 0) + lt.anchorX;
  3003. return at < z.left && at + lt.boxWidth < z.right ? !0 : at < et - z.left + lt.boxWidth && z.right - at > at;
  3004. }) && (i = i.map(function(lt) {
  3005. var at = s(lt.anchorX, lt.anchorY, lt.point.isHeader, lt.boxWidth, !1);
  3006. return P(lt, { target: at.y, x: at.x });
  3007. })), t.cleanSplit(), W(i, ct);
  3008. var gt = et, dt = et;
  3009. i.forEach(function(lt) {
  3010. var at = lt.x, J = lt.boxWidth;
  3011. lt = lt.isHeader, lt || (t.outside && et + at < gt && (gt = et + at), !lt && t.outside && gt + J > dt && (dt = et + at));
  3012. }), i.forEach(function(lt) {
  3013. var at = lt.x, J = lt.anchorX, tt = lt.pos, st = lt.point.isHeader;
  3014. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: lt.anchorY }, t.outside && at < J) {
  3015. var ht = et - gt;
  3016. 0 < ht && (st || (tt.x = at + ht, tt.anchorX = J + ht), st && (tt.x = (dt - gt) / 2, tt.anchorX = J + ht));
  3017. }
  3018. lt.tt.attr(tt);
  3019. }), i = t.container, g = t.renderer, t.outside && i && g && (n = $.getBBox(), g.setSize(n.width + n.x, n.height + n.y, !1), i.style.left = gt + "px", i.style.top = o + "px");
  3020. }, p.prototype.drawTracker = function() {
  3021. if (this.followPointer || !this.options.stickOnContact)
  3022. this.tracker && this.tracker.destroy();
  3023. else {
  3024. var i = this.chart, l = this.label, s = this.shared ? i.hoverPoints : i.hoverPoint;
  3025. if (l && s) {
  3026. var t = { x: 0, y: 0, width: 0, height: 0 };
  3027. s = this.getAnchor(s);
  3028. var o = l.getBBox();
  3029. s[0] += i.plotLeft - l.translateX, s[1] += i.plotTop - l.translateY, t.x = Math.min(0, s[0]), t.y = Math.min(0, s[1]), t.width = 0 > s[0] ? Math.max(Math.abs(s[0]), o.width - s[0]) : Math.max(Math.abs(s[0]), o.width), t.height = 0 > s[1] ? Math.max(Math.abs(s[1]), o.height - Math.abs(s[1])) : Math.max(Math.abs(s[1]), o.height), this.tracker ? this.tracker.attr(t) : (this.tracker = l.renderer.rect(t).addClass("highcharts-tracker").add(l), i.styledMode || this.tracker.attr({ fill: "rgba(0,0,0,0)" }));
  3030. }
  3031. }
  3032. }, p.prototype.styledModeFormat = function(i) {
  3033. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  3034. }, p.prototype.tooltipFooterHeaderFormatter = function(i, l) {
  3035. var s = i.series, t = s.tooltipOptions, o = s.xAxis, n = o && o.dateTime;
  3036. o = {
  3037. isFooter: l,
  3038. labelConfig: i
  3039. };
  3040. var A = t.xDateFormat, _ = t[l ? "footerFormat" : "headerFormat"];
  3041. return O(this, "headerFormatter", o, function(D) {
  3042. n && !A && C(i.key) && (A = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && A && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(B) {
  3043. _ = _.replace("{point." + B + "}", "{point." + B + ":" + A + "}");
  3044. }), s.chart.styledMode && (_ = this.styledModeFormat(_)), D.text = U(_, { point: i, series: s }, this.chart);
  3045. }), o.text;
  3046. }, p.prototype.update = function(i) {
  3047. this.destroy(), w(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, w(!0, this.options, i));
  3048. }, p.prototype.updatePosition = function(i) {
  3049. var l = this.chart, s = this.options, t = l.pointer, o = this.getLabel();
  3050. t = t.getChartPosition();
  3051. var n = (s.positioner || this.getPosition).call(this, o.width, o.height, i), A = i.plotX + l.plotLeft;
  3052. i = i.plotY + l.plotTop, this.outside && (s = s.borderWidth + 2 * this.distance, this.renderer.setSize(o.width + s, o.height + s, !1), (t.scaleX !== 1 || t.scaleY !== 1) && (v(this.container, { transform: "scale(" + t.scaleX + ", " + t.scaleY + ")" }), A *= t.scaleX, i *= t.scaleY), A += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), A, i);
  3053. }, p;
  3054. }(), y;
  3055. }
  3056. ), E(h, "Core/Series/Point.js", [h["Core/Renderer/HTML/AST.js"], h["Core/Animation/AnimationUtilities.js"], h["Core/DefaultOptions.js"], h["Core/FormatUtilities.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F) {
  3057. var U = j.animObject, H = I.defaultOptions, W = Z.format, R = F.addEvent, S = F.defined, v = F.erase, d = F.extend, u = F.fireEvent, P = F.getNestedProperty, O = F.isArray, N = F.isFunction, C = F.isNumber, b = F.isObject, w = F.merge, x = F.objectEach, a = F.pick, c = F.syncTimeout, p = F.removeEvent, i = F.uniqueKey;
  3058. return j = function() {
  3059. function l() {
  3060. this.colorIndex = this.category = void 0, this.formatPrefix = "point", this.id = void 0, this.isNull = !1, this.percentage = this.options = this.name = void 0, this.selected = !1, this.total = this.series = void 0, this.visible = !0, this.x = void 0;
  3061. }
  3062. return l.prototype.animateBeforeDestroy = function() {
  3063. var s = this, t = { x: s.startXPos, opacity: 0 }, o = s.getGraphicalProps();
  3064. o.singular.forEach(function(n) {
  3065. s[n] = s[n].animate(n === "dataLabel" ? {
  3066. x: s[n].startXPos,
  3067. y: s[n].startYPos,
  3068. opacity: 0
  3069. } : t);
  3070. }), o.plural.forEach(function(n) {
  3071. s[n].forEach(function(A) {
  3072. A.element && A.animate(d({ x: s.startXPos }, A.startYPos ? { x: A.startXPos, y: A.startYPos } : {}));
  3073. });
  3074. });
  3075. }, l.prototype.applyOptions = function(s, t) {
  3076. var o = this.series, n = o.options.pointValKey || o.pointValKey;
  3077. return s = l.prototype.optionsToObject.call(this, s), d(this, s), this.options = this.options ? d(this.options, s) : s, s.group && delete this.group, s.dataLabels && delete this.dataLabels, n && (this.y = l.prototype.getNestedProperty.call(this, n)), this.formatPrefix = (this.isNull = a(this.isValid && !this.isValid(), this.x === null || !C(this.y))) ? "null" : "point", this.selected && (this.state = "select"), "name" in this && typeof t > "u" && o.xAxis && o.xAxis.hasNames && (this.x = o.xAxis.nameToX(this)), typeof this.x > "u" && o ? this.x = typeof t > "u" ? o.autoIncrement() : t : C(s.x) && o.options.relativeXValue && (this.x = o.autoIncrement(s.x)), this;
  3078. }, l.prototype.destroy = function() {
  3079. function s() {
  3080. (t.graphic || t.dataLabel || t.dataLabels) && (p(t), t.destroyElements());
  3081. for (D in t)
  3082. t[D] = null;
  3083. }
  3084. var t = this, o = t.series, n = o.chart;
  3085. o = o.options.dataSorting;
  3086. var A = n.hoverPoints, _ = U(t.series.chart.renderer.globalAnimation), D;
  3087. t.legendItem && n.legend.destroyItem(t), A && (t.setState(), v(A, t), A.length || (n.hoverPoints = null)), t === n.hoverPoint && t.onMouseOut(), o && o.enabled ? (this.animateBeforeDestroy(), c(s, _.duration)) : s(), n.pointCount--;
  3088. }, l.prototype.destroyElements = function(s) {
  3089. var t = this;
  3090. s = t.getGraphicalProps(s), s.singular.forEach(function(o) {
  3091. t[o] = t[o].destroy();
  3092. }), s.plural.forEach(function(o) {
  3093. t[o].forEach(function(n) {
  3094. n.element && n.destroy();
  3095. }), delete t[o];
  3096. });
  3097. }, l.prototype.firePointEvent = function(s, t, o) {
  3098. var n = this, A = this.series.options;
  3099. (A.point.events[s] || n.options && n.options.events && n.options.events[s]) && n.importEvents(), s === "click" && A.allowPointSelect && (o = function(_) {
  3100. n.select && n.select(null, _.ctrlKey || _.metaKey || _.shiftKey);
  3101. }), u(n, s, t, o);
  3102. }, l.prototype.getClassName = function() {
  3103. return "highcharts-point" + (this.selected ? " highcharts-point-select" : "") + (this.negative ? " highcharts-negative" : "") + (this.isNull ? " highcharts-null-point" : "") + (typeof this.colorIndex < "u" ? " highcharts-color-" + this.colorIndex : "") + (this.options.className ? " " + this.options.className : "") + (this.zone && this.zone.className ? " " + this.zone.className.replace("highcharts-negative", "") : "");
  3104. }, l.prototype.getGraphicalProps = function(s) {
  3105. var t = this, o = [], n = { singular: [], plural: [] }, A;
  3106. for (s = s || { graphic: 1, dataLabel: 1 }, s.graphic && o.push("graphic", "upperGraphic", "shadowGroup"), s.dataLabel && o.push("dataLabel", "dataLabelUpper", "connector"), A = o.length; A--; ) {
  3107. var _ = o[A];
  3108. t[_] && n.singular.push(_);
  3109. }
  3110. return ["dataLabel", "connector"].forEach(function(D) {
  3111. var B = D + "s";
  3112. s[D] && t[B] && n.plural.push(B);
  3113. }), n;
  3114. }, l.prototype.getLabelConfig = function() {
  3115. return { x: this.category, y: this.y, color: this.color, colorIndex: this.colorIndex, key: this.name || this.category, series: this.series, point: this, percentage: this.percentage, total: this.total || this.stackTotal };
  3116. }, l.prototype.getNestedProperty = function(s) {
  3117. if (s)
  3118. return s.indexOf("custom.") === 0 ? P(s, this.options) : this[s];
  3119. }, l.prototype.getZone = function() {
  3120. var s = this.series, t = s.zones;
  3121. s = s.zoneAxis || "y";
  3122. var o, n = 0;
  3123. for (o = t[n]; this[s] >= o.value; )
  3124. o = t[++n];
  3125. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = o && o.color && !this.options.color ? o.color : this.nonZonedColor, o;
  3126. }, l.prototype.hasNewShapeType = function() {
  3127. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  3128. }, l.prototype.init = function(s, t, o) {
  3129. return this.series = s, this.applyOptions(t, o), this.id = S(this.id) ? this.id : i(), this.resolveColor(), s.chart.pointCount++, u(this, "afterInit"), this;
  3130. }, l.prototype.optionsToObject = function(s) {
  3131. var t = this.series, o = t.options.keys, n = o || t.pointArrayMap || ["y"], A = n.length, _ = {}, D = 0, B = 0;
  3132. if (C(s) || s === null)
  3133. _[n[0]] = s;
  3134. else if (O(s))
  3135. for (!o && s.length > A && (t = typeof s[0], t === "string" ? _.name = s[0] : t === "number" && (_.x = s[0]), D++); B < A; )
  3136. o && typeof s[D] > "u" || (0 < n[B].indexOf(".") ? l.prototype.setNestedProperty(_, s[D], n[B]) : _[n[B]] = s[D]), D++, B++;
  3137. else
  3138. typeof s == "object" && (_ = s, s.dataLabels && (t._hasPointLabels = !0), s.marker && (t._hasPointMarkers = !0));
  3139. return _;
  3140. }, l.prototype.resolveColor = function() {
  3141. var s = this.series, t = s.chart.styledMode, o = s.chart.options.chart.colorCount;
  3142. if (delete this.nonZonedColor, s.options.colorByPoint) {
  3143. if (!t) {
  3144. o = s.options.colors || s.chart.options.colors;
  3145. var n = o[s.colorCounter];
  3146. o = o.length;
  3147. }
  3148. t = s.colorCounter, s.colorCounter++, s.colorCounter === o && (s.colorCounter = 0);
  3149. } else
  3150. t || (n = s.color), t = s.colorIndex;
  3151. this.colorIndex = a(this.options.colorIndex, t), this.color = a(this.options.color, n);
  3152. }, l.prototype.setNestedProperty = function(s, t, o) {
  3153. return o.split(".").reduce(function(n, A, _, D) {
  3154. return n[A] = D.length - 1 === _ ? t : b(n[A], !0) ? n[A] : {}, n[A];
  3155. }, s), s;
  3156. }, l.prototype.tooltipFormatter = function(s) {
  3157. var t = this.series, o = t.tooltipOptions, n = a(o.valueDecimals, ""), A = o.valuePrefix || "", _ = o.valueSuffix || "";
  3158. return t.chart.styledMode && (s = t.chart.tooltip.styledModeFormat(s)), (t.pointArrayMap || ["y"]).forEach(function(D) {
  3159. D = "{point." + D, (A || _) && (s = s.replace(RegExp(D + "}", "g"), A + D + "}" + _)), s = s.replace(RegExp(D + "}", "g"), D + ":,." + n + "f}");
  3160. }), W(s, { point: this, series: this.series }, t.chart);
  3161. }, l.prototype.update = function(s, t, o, n) {
  3162. function A() {
  3163. _.applyOptions(s);
  3164. var m = B && _.hasDummyGraphic;
  3165. m = _.y === null ? !m : m, B && m && (_.graphic = B.destroy(), delete _.hasDummyGraphic), b(s, !0) && (B && B.element && s && s.marker && typeof s.marker.symbol < "u" && (_.graphic = B.destroy()), s && s.dataLabels && _.dataLabel && (_.dataLabel = _.dataLabel.destroy()), _.connector && (_.connector = _.connector.destroy())), g = _.index, D.updateParallelArrays(_, g), X.data[g] = b(X.data[g], !0) || b(s, !0) ? _.options : a(s, X.data[g]), D.isDirty = D.isDirtyData = !0, !D.fixedBox && D.hasCartesianSeries && (T.isDirtyBox = !0), X.legendType === "point" && (T.isDirtyLegend = !0), t && T.redraw(o);
  3166. }
  3167. var _ = this, D = _.series, B = _.graphic, T = D.chart, X = D.options, g;
  3168. t = a(t, !0), n === !1 ? A() : _.firePointEvent("update", { options: s }, A);
  3169. }, l.prototype.remove = function(s, t) {
  3170. this.series.removePoint(this.series.data.indexOf(this), s, t);
  3171. }, l.prototype.select = function(s, t) {
  3172. var o = this, n = o.series, A = n.chart;
  3173. this.selectedStaging = s = a(s, !o.selected), o.firePointEvent(s ? "select" : "unselect", { accumulate: t }, function() {
  3174. o.selected = o.options.selected = s, n.options.data[n.data.indexOf(o)] = o.options, o.setState(s && "select"), t || A.getSelectedPoints().forEach(function(_) {
  3175. var D = _.series;
  3176. _.selected && _ !== o && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(A.hoverPoints && D.options.inactiveOtherPoints ? "inactive" : ""), _.firePointEvent("unselect"));
  3177. });
  3178. }), delete this.selectedStaging;
  3179. }, l.prototype.onMouseOver = function(s) {
  3180. var t = this.series.chart, o = t.pointer;
  3181. s = s ? o.normalize(s) : o.getChartCoordinatesFromPoint(this, t.inverted), o.runPointActions(
  3182. s,
  3183. this
  3184. );
  3185. }, l.prototype.onMouseOut = function() {
  3186. var s = this.series.chart;
  3187. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (s.hoverPoints || []).forEach(function(t) {
  3188. t.setState();
  3189. }), s.hoverPoints = s.hoverPoint = null;
  3190. }, l.prototype.importEvents = function() {
  3191. if (!this.hasImportedEvents) {
  3192. var s = this, t = w(s.series.options.point, s.options).events;
  3193. s.events = t, x(t, function(o, n) {
  3194. N(o) && R(s, n, o);
  3195. }), this.hasImportedEvents = !0;
  3196. }
  3197. }, l.prototype.setState = function(s, t) {
  3198. var o = this.series, n = this.state, A = o.options.states[s || "normal"] || {}, _ = H.plotOptions[o.type].marker && o.options.marker, D = _ && _.enabled === !1, B = _ && _.states && _.states[s || "normal"] || {}, T = B.enabled === !1, X = this.marker || {}, g = o.chart, m = _ && o.markerAttribs, L = o.halo, Y, V = o.stateMarkerGraphic;
  3199. if (s = s || "", !(s === this.state && !t || this.selected && s !== "select" || A.enabled === !1 || s && (T || D && B.enabled === !1) || s && X.states && X.states[s] && X.states[s].enabled === !1)) {
  3200. if (this.state = s, m && (Y = o.markerAttribs(this, s)), this.graphic && !this.hasDummyGraphic) {
  3201. if (n && this.graphic.removeClass("highcharts-point-" + n), s && this.graphic.addClass("highcharts-point-" + s), !g.styledMode) {
  3202. var Q = o.pointAttribs(this, s), k = a(g.options.chart.animation, A.animation);
  3203. o.options.inactiveOtherPoints && C(Q.opacity) && ((this.dataLabels || []).forEach(function(G) {
  3204. G && G.animate({ opacity: Q.opacity }, k);
  3205. }), this.connector && this.connector.animate({ opacity: Q.opacity }, k)), this.graphic.animate(Q, k);
  3206. }
  3207. Y && this.graphic.animate(Y, a(g.options.chart.animation, B.animation, _.animation)), V && V.hide();
  3208. } else
  3209. s && B && (n = X.symbol || o.symbol, V && V.currentSymbol !== n && (V = V.destroy()), Y && (V ? V[t ? "animate" : "attr"]({ x: Y.x, y: Y.y }) : n && (o.stateMarkerGraphic = V = g.renderer.symbol(n, Y.x, Y.y, Y.width, Y.height).add(o.markerGroup), V.currentSymbol = n)), !g.styledMode && V && this.state !== "inactive" && V.attr(o.pointAttribs(this, s))), V && (V[s && this.isInside ? "show" : "hide"](), V.element.point = this, V.addClass(this.getClassName(), !0));
  3210. A = A.halo, Y = (V = this.graphic || V) && V.visibility || "inherit", A && A.size && V && Y !== "hidden" && !this.isCluster ? (L || (o.halo = L = g.renderer.path().add(V.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(A.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + a(this.colorIndex, o.colorIndex) + (this.className ? " " + this.className : ""), visibility: Y, zIndex: -1 }), L.point = this, g.styledMode || L.attr(d({ fill: this.color || o.color, "fill-opacity": A.opacity }, y.filterUserAttributes(A.attributes || {})))) : L && L.point && L.point.haloPath && L.animate({ d: L.point.haloPath(0) }, null, L.hide), u(this, "afterSetState", { state: s });
  3211. }
  3212. }, l.prototype.haloPath = function(s) {
  3213. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - s, this.plotY - s, 2 * s, 2 * s);
  3214. }, l;
  3215. }(), j;
  3216. }), E(h, "Core/Pointer.js", [h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Tooltip.js"], h["Core/Utilities.js"]], function(y, j, I, Z) {
  3217. var F = y.parse, U = j.charts, H = j.noop, W = Z.addEvent, R = Z.attr, S = Z.css, v = Z.defined, d = Z.extend, u = Z.find, P = Z.fireEvent, O = Z.isNumber, N = Z.isObject, C = Z.objectEach, b = Z.offset, w = Z.pick, x = Z.splat;
  3218. return y = function() {
  3219. function a(c, p) {
  3220. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = p, this.init(c, p);
  3221. }
  3222. return a.prototype.applyInactiveState = function(c) {
  3223. var p = [], i;
  3224. (c || []).forEach(function(l) {
  3225. i = l.series, p.push(i), i.linkedParent && p.push(i.linkedParent), i.linkedSeries && (p = p.concat(i.linkedSeries)), i.navigatorSeries && p.push(i.navigatorSeries);
  3226. }), this.chart.series.forEach(function(l) {
  3227. p.indexOf(l) === -1 ? l.setState("inactive", !0) : l.options.inactiveOtherPoints && l.setAllPointsToState("inactive");
  3228. });
  3229. }, a.prototype.destroy = function() {
  3230. var c = this;
  3231. this.eventsToUnbind.forEach(function(p) {
  3232. return p();
  3233. }), this.eventsToUnbind = [], j.chartCount || (a.unbindDocumentMouseUp && (a.unbindDocumentMouseUp = a.unbindDocumentMouseUp()), a.unbindDocumentTouchEnd && (a.unbindDocumentTouchEnd = a.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), C(c, function(p, i) {
  3234. c[i] = void 0;
  3235. });
  3236. }, a.prototype.drag = function(c) {
  3237. var p = this.chart, i = p.options.chart, l = this.zoomHor, s = this.zoomVert, t = p.plotLeft, o = p.plotTop, n = p.plotWidth, A = p.plotHeight, _ = this.mouseDownX || 0, D = this.mouseDownY || 0, B = N(i.panning) ? i.panning && i.panning.enabled : i.panning, T = i.panKey && c[i.panKey + "Key"], X = c.chartX, g = c.chartY, m = this.selectionMarker;
  3238. if ((!m || !m.touch) && (X < t ? X = t : X > t + n && (X = t + n), g < o ? g = o : g > o + A && (g = o + A), this.hasDragged = Math.sqrt(Math.pow(_ - X, 2) + Math.pow(D - g, 2)), 10 < this.hasDragged)) {
  3239. var L = p.isInsidePlot(_ - t, D - o, { visiblePlotOnly: !0 });
  3240. !p.hasCartesianSeries && !p.mapView || !this.zoomX && !this.zoomY || !L || T || m || (this.selectionMarker = m = p.renderer.rect(t, o, l ? 1 : n, s ? 1 : A, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), p.styledMode || m.attr({ fill: i.selectionMarkerFill || F("#335cad").setOpacity(0.25).get() })), m && l && (l = X - _, m.attr({ width: Math.abs(l), x: (0 < l ? 0 : l) + _ })), m && s && (l = g - D, m.attr({ height: Math.abs(l), y: (0 < l ? 0 : l) + D })), L && !m && B && p.pan(c, i.panning);
  3241. }
  3242. }, a.prototype.dragStart = function(c) {
  3243. var p = this.chart;
  3244. p.mouseIsDown = c.type, p.cancelClick = !1, p.mouseDownX = this.mouseDownX = c.chartX, p.mouseDownY = this.mouseDownY = c.chartY;
  3245. }, a.prototype.drop = function(c) {
  3246. var p = this, i = this.chart, l = this.hasPinched;
  3247. if (this.selectionMarker) {
  3248. var s = this.selectionMarker, t = s.attr ? s.attr("x") : s.x, o = s.attr ? s.attr("y") : s.y, n = s.attr ? s.attr("width") : s.width, A = s.attr ? s.attr("height") : s.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: o, width: n, height: A }, D = !!i.mapView;
  3249. (this.hasDragged || l) && (i.axes.forEach(function(B) {
  3250. if (B.zoomEnabled && v(B.min) && (l || p[{ xAxis: "zoomX", yAxis: "zoomY" }[B.coll]]) && O(t) && O(o)) {
  3251. var T = B.horiz, X = c.type === "touchend" ? B.minPixelPadding : 0, g = B.toValue((T ? t : o) + X);
  3252. T = B.toValue((T ? t + n : o + A) - X), _[B.coll].push({ axis: B, min: Math.min(g, T), max: Math.max(g, T) }), D = !0;
  3253. }
  3254. }), D && P(i, "selection", _, function(B) {
  3255. i.zoom(d(
  3256. B,
  3257. l ? { animation: !1 } : null
  3258. ));
  3259. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), l && this.scaleGroups();
  3260. }
  3261. i && O(i.index) && (S(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  3262. }, a.prototype.findNearestKDPoint = function(c, p, i) {
  3263. var l = this.chart, s = l.hoverPoint;
  3264. if (l = l.tooltip, s && l && l.isStickyOnContact())
  3265. return s;
  3266. var t;
  3267. return c.forEach(function(o) {
  3268. var n = !(o.noSharedTooltip && p) && 0 > o.options.findNearestPointBy.indexOf("y");
  3269. if (o = o.searchPoint(i, n), (n = N(o, !0) && o.series) && !(n = !N(t, !0))) {
  3270. n = t.distX - o.distX;
  3271. var A = t.dist - o.dist, _ = (o.series.group && o.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  3272. n = 0 < (n !== 0 && p ? n : A !== 0 ? A : _ !== 0 ? _ : t.series.index > o.series.index ? -1 : 1);
  3273. }
  3274. n && (t = o);
  3275. }), t;
  3276. }, a.prototype.getChartCoordinatesFromPoint = function(c, p) {
  3277. var i = c.series, l = i.xAxis;
  3278. i = i.yAxis;
  3279. var s = c.shapeArgs;
  3280. if (l && i) {
  3281. var t = w(c.clientX, c.plotX), o = c.plotY || 0;
  3282. return c.isNode && s && O(s.x) && O(s.y) && (t = s.x, o = s.y), p ? { chartX: i.len + i.pos - o, chartY: l.len + l.pos - t } : { chartX: t + l.pos, chartY: o + i.pos };
  3283. }
  3284. if (s && s.x && s.y)
  3285. return { chartX: s.x, chartY: s.y };
  3286. }, a.prototype.getChartPosition = function() {
  3287. if (this.chartPosition)
  3288. return this.chartPosition;
  3289. var c = this.chart.container, p = b(c);
  3290. this.chartPosition = { left: p.left, top: p.top, scaleX: 1, scaleY: 1 };
  3291. var i = c.offsetWidth;
  3292. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = p.width / i, this.chartPosition.scaleY = p.height / c), this.chartPosition;
  3293. }, a.prototype.getCoordinates = function(c) {
  3294. var p = { xAxis: [], yAxis: [] };
  3295. return this.chart.axes.forEach(function(i) {
  3296. p[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  3297. }), p;
  3298. }, a.prototype.getHoverData = function(c, p, i, l, s, t) {
  3299. var o = [];
  3300. l = !(!l || !c);
  3301. var n = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: s };
  3302. P(this, "beforeGetHoverData", n);
  3303. var A = p && !p.stickyTracking ? [p] : i.filter(function(D) {
  3304. return n.filter ? n.filter(D) : D.visible && !(!s && D.directTouch) && w(D.options.enableMouseTracking, !0) && D.stickyTracking;
  3305. }), _ = l || !t ? c : this.findNearestKDPoint(A, s, t);
  3306. return p = _ && _.series, _ && (s && !p.noSharedTooltip ? (A = i.filter(function(D) {
  3307. return n.filter ? n.filter(D) : D.visible && !(!s && D.directTouch) && w(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  3308. }), A.forEach(function(D) {
  3309. var B = u(D.points, function(T) {
  3310. return T.x === _.x && !T.isNull;
  3311. });
  3312. N(B) && (D.chart.isBoosting && (B = D.getPoint(B)), o.push(B));
  3313. })) : o.push(_)), n = { hoverPoint: _ }, P(this, "afterGetHoverData", n), { hoverPoint: n.hoverPoint, hoverSeries: p, hoverPoints: o };
  3314. }, a.prototype.getPointFromEvent = function(c) {
  3315. c = c.target;
  3316. for (var p; c && !p; )
  3317. p = c.point, c = c.parentNode;
  3318. return p;
  3319. }, a.prototype.onTrackerMouseOut = function(c) {
  3320. c = c.relatedTarget || c.toElement;
  3321. var p = this.chart.hoverSeries;
  3322. this.isDirectTouch = !1, !p || !c || p.stickyTracking || this.inClass(c, "highcharts-tooltip") || this.inClass(c, "highcharts-series-" + p.index) && this.inClass(c, "highcharts-tracker") || p.onMouseOut();
  3323. }, a.prototype.inClass = function(c, p) {
  3324. for (var i; c; ) {
  3325. if (i = R(c, "class")) {
  3326. if (i.indexOf(p) !== -1)
  3327. return !0;
  3328. if (i.indexOf("highcharts-container") !== -1)
  3329. return !1;
  3330. }
  3331. c = c.parentNode;
  3332. }
  3333. }, a.prototype.init = function(c, p) {
  3334. this.options = p, this.chart = c, this.runChartClick = !(!p.chart.events || !p.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, I && (c.tooltip = new I(c, p.tooltip), this.followTouchMove = w(p.tooltip.followTouchMove, !0)), this.setDOMEvents();
  3335. }, a.prototype.normalize = function(c, p) {
  3336. var i = c.touches, l = i ? i.length ? i.item(0) : w(i.changedTouches, c.changedTouches)[0] : c;
  3337. return p || (p = this.getChartPosition()), i = l.pageX - p.left, l = l.pageY - p.top, i /= p.scaleX, l /= p.scaleY, d(c, { chartX: Math.round(i), chartY: Math.round(l) });
  3338. }, a.prototype.onContainerClick = function(c) {
  3339. var p = this.chart, i = p.hoverPoint;
  3340. c = this.normalize(c);
  3341. var l = p.plotLeft, s = p.plotTop;
  3342. p.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (P(i.series, "click", d(c, { point: i })), p.hoverPoint && i.firePointEvent("click", c)) : (d(c, this.getCoordinates(c)), p.isInsidePlot(c.chartX - l, c.chartY - s, { visiblePlotOnly: !0 }) && P(p, "click", c)));
  3343. }, a.prototype.onContainerMouseDown = function(c) {
  3344. var p = ((c.buttons || c.button) & 1) === 1;
  3345. c = this.normalize(c), j.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || p) && (this.zoomOption(c), p && c.preventDefault && c.preventDefault(), this.dragStart(c));
  3346. }, a.prototype.onContainerMouseLeave = function(c) {
  3347. var p = U[w(a.hoverChartIndex, -1)], i = this.chart.tooltip;
  3348. i && i.shouldStickOnContact() && this.inClass(c.relatedTarget, "highcharts-tooltip-container") || (c = this.normalize(c), p && (c.relatedTarget || c.toElement) && (p.pointer.reset(), p.pointer.chartPosition = void 0), i && !i.isHidden && this.reset());
  3349. }, a.prototype.onContainerMouseEnter = function(c) {
  3350. delete this.chartPosition;
  3351. }, a.prototype.onContainerMouseMove = function(c) {
  3352. var p = this.chart;
  3353. c = this.normalize(c), this.setHoverChartIndex(), c.preventDefault || (c.returnValue = !1), (p.mouseIsDown === "mousedown" || this.touchSelect(c)) && this.drag(c), p.openMenu || !this.inClass(c.target, "highcharts-tracker") && !p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || (this.inClass(c.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(c));
  3354. }, a.prototype.onDocumentTouchEnd = function(c) {
  3355. var p = U[w(
  3356. a.hoverChartIndex,
  3357. -1
  3358. )];
  3359. p && p.pointer.drop(c);
  3360. }, a.prototype.onContainerTouchMove = function(c) {
  3361. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  3362. }, a.prototype.onContainerTouchStart = function(c) {
  3363. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  3364. }, a.prototype.onDocumentMouseMove = function(c) {
  3365. var p = this.chart, i = this.chartPosition;
  3366. c = this.normalize(c, i);
  3367. var l = p.tooltip;
  3368. !i || l && l.isStickyOnContact() || p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  3369. }, a.prototype.onDocumentMouseUp = function(c) {
  3370. var p = U[w(a.hoverChartIndex, -1)];
  3371. p && p.pointer.drop(c);
  3372. }, a.prototype.pinch = function(c) {
  3373. var p = this, i = p.chart, l = p.pinchDown, s = c.touches || [], t = s.length, o = p.lastValidTouch, n = p.hasZoom, A = {}, _ = t === 1 && (p.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || p.runChartClick), D = {}, B = p.selectionMarker;
  3374. 1 < t ? p.initiated = !0 : t === 1 && this.followTouchMove && (p.initiated = !1), n && p.initiated && !_ && c.cancelable !== !1 && c.preventDefault(), [].map.call(s, function(T) {
  3375. return p.normalize(T);
  3376. }), c.type === "touchstart" ? ([].forEach.call(s, function(T, X) {
  3377. l[X] = { chartX: T.chartX, chartY: T.chartY };
  3378. }), o.x = [l[0].chartX, l[1] && l[1].chartX], o.y = [l[0].chartY, l[1] && l[1].chartY], i.axes.forEach(function(T) {
  3379. if (T.zoomEnabled) {
  3380. var X = i.bounds[T.horiz ? "h" : "v"], g = T.minPixelPadding, m = T.toPixels(Math.min(w(T.options.min, T.dataMin), T.dataMin)), L = T.toPixels(Math.max(w(T.options.max, T.dataMax), T.dataMax)), Y = Math.max(m, L);
  3381. X.min = Math.min(T.pos, Math.min(
  3382. m,
  3383. L
  3384. ) - g), X.max = Math.max(T.pos + T.len, Y + g);
  3385. }
  3386. }), p.res = !0) : p.followTouchMove && t === 1 ? this.runPointActions(p.normalize(c)) : l.length && (P(i, "touchpan", { originalEvent: c }, function() {
  3387. B || (p.selectionMarker = B = d({ destroy: H, touch: !0 }, i.plotBox)), p.pinchTranslate(l, s, A, B, D, o), p.hasPinched = n, p.scaleGroups(A, D);
  3388. }), p.res && (p.res = !1, this.reset(!1, 0)));
  3389. }, a.prototype.pinchTranslate = function(c, p, i, l, s, t) {
  3390. this.zoomHor && this.pinchTranslateDirection(!0, c, p, i, l, s, t), this.zoomVert && this.pinchTranslateDirection(!1, c, p, i, l, s, t);
  3391. }, a.prototype.pinchTranslateDirection = function(c, p, i, l, s, t, o, n) {
  3392. var A = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", B = "chart" + D, T = c ? "width" : "height", X = A["plot" + (c ? "Left" : "Top")], g = A.inverted, m = A.bounds[c ? "h" : "v"], L = p.length === 1, Y = p[0][B], V = !L && p[1][B];
  3393. p = function() {
  3394. typeof $ == "number" && 20 < Math.abs(Y - V) && (G = n || Math.abs(z - $) / Math.abs(Y - V)), k = (X - z) / G + Y, Q = A["plot" + (c ? "Width" : "Height")] / G;
  3395. };
  3396. var Q, k, G = n || 1, z = i[0][B], $ = !L && i[1][B];
  3397. if (p(), i = k, i < m.min) {
  3398. i = m.min;
  3399. var q = !0;
  3400. } else
  3401. i + Q > m.max && (i = m.max - Q, q = !0);
  3402. q ? (z -= 0.8 * (z - o[_][0]), typeof $ == "number" && ($ -= 0.8 * ($ - o[_][1])), p()) : o[_] = [z, $], g || (t[_] = k - X, t[T] = Q), t = g ? 1 / G : G, s[T] = Q, s[_] = i, l[g ? c ? "scaleY" : "scaleX" : "scale" + D] = G, l["translate" + D] = t * X + (z - t * Y);
  3403. }, a.prototype.reset = function(c, p) {
  3404. var i = this.chart, l = i.hoverSeries, s = i.hoverPoint, t = i.hoverPoints, o = i.tooltip, n = o && o.shared ? t : s;
  3405. c && n && x(n).forEach(function(A) {
  3406. A.series.isCartesian && typeof A.plotX > "u" && (c = !1);
  3407. }), c ? o && n && x(n).length && (o.refresh(n), o.shared && t ? t.forEach(function(A) {
  3408. A.setState(A.state, !0), A.series.isCartesian && (A.series.xAxis.crosshair && A.series.xAxis.drawCrosshair(
  3409. null,
  3410. A
  3411. ), A.series.yAxis.crosshair && A.series.yAxis.drawCrosshair(null, A));
  3412. }) : s && (s.setState(s.state, !0), i.axes.forEach(function(A) {
  3413. A.crosshair && s.series[A.coll] === A && A.drawCrosshair(null, s);
  3414. }))) : (s && s.onMouseOut(), t && t.forEach(function(A) {
  3415. A.setState();
  3416. }), l && l.onMouseOut(), o && o.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(A) {
  3417. A.hideCrosshair();
  3418. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  3419. }, a.prototype.runPointActions = function(c, p) {
  3420. var i = this.chart, l = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, s = l ? l.shared : !1, t = p || i.hoverPoint, o = t && t.series || i.hoverSeries;
  3421. p = this.getHoverData(t, o, i.series, (!c || c.type !== "touchmove") && (!!p || o && o.directTouch && this.isDirectTouch), s, c), t = p.hoverPoint, o = p.hoverSeries;
  3422. var n = p.hoverPoints;
  3423. if (p = o && o.tooltipOptions.followPointer && !o.tooltipOptions.split, s = s && o && !o.noSharedTooltip, t && (t !== i.hoverPoint || l && l.isHidden)) {
  3424. if ((i.hoverPoints || []).forEach(function(A) {
  3425. n.indexOf(A) === -1 && A.setState();
  3426. }), i.hoverSeries !== o && o.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(A) {
  3427. A.setState("hover");
  3428. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  3429. return;
  3430. i.hoverPoints = n, i.hoverPoint = t, t.firePointEvent("mouseOver"), l && l.refresh(s ? n : t, c);
  3431. } else
  3432. p && l && !l.isHidden && (t = l.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && l.updatePosition({ plotX: t[0], plotY: t[1] }));
  3433. this.unDocMouseMove || (this.unDocMouseMove = W(i.container.ownerDocument, "mousemove", function(A) {
  3434. var _ = U[a.hoverChartIndex];
  3435. _ && _.pointer.onDocumentMouseMove(A);
  3436. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(A) {
  3437. var _ = w((A.crosshair || {}).snap, !0), D;
  3438. _ && ((D = i.hoverPoint) && D.series[A.coll] === A || (D = u(n, function(B) {
  3439. return B.series[A.coll] === A;
  3440. }))), D || !_ ? A.drawCrosshair(c, D) : A.hideCrosshair();
  3441. });
  3442. }, a.prototype.scaleGroups = function(c, p) {
  3443. var i = this.chart;
  3444. i.series.forEach(function(l) {
  3445. var s = c || l.getPlotBox();
  3446. l.group && (l.xAxis && l.xAxis.zoomEnabled || i.mapView) && (l.group.attr(s), l.markerGroup && (l.markerGroup.attr(s), l.markerGroup.clip(p ? i.clipRect : null)), l.dataLabelsGroup && l.dataLabelsGroup.attr(s));
  3447. }), i.clipRect.attr(p || i.clipBox);
  3448. }, a.prototype.setDOMEvents = function() {
  3449. var c = this, p = this.chart.container, i = p.ownerDocument;
  3450. p.onmousedown = this.onContainerMouseDown.bind(this), p.onmousemove = this.onContainerMouseMove.bind(this), p.onclick = this.onContainerClick.bind(this), this.eventsToUnbind.push(W(p, "mouseenter", this.onContainerMouseEnter.bind(this))), this.eventsToUnbind.push(W(p, "mouseleave", this.onContainerMouseLeave.bind(this))), a.unbindDocumentMouseUp || (a.unbindDocumentMouseUp = W(i, "mouseup", this.onDocumentMouseUp.bind(this)));
  3451. for (var l = this.chart.renderTo.parentElement; l && l.tagName !== "BODY"; )
  3452. this.eventsToUnbind.push(W(l, "scroll", function() {
  3453. delete c.chartPosition;
  3454. })), l = l.parentElement;
  3455. j.hasTouch && (this.eventsToUnbind.push(W(p, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(W(p, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), a.unbindDocumentTouchEnd || (a.unbindDocumentTouchEnd = W(i, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
  3456. }, a.prototype.setHoverChartIndex = function() {
  3457. var c = this.chart, p = j.charts[w(a.hoverChartIndex, -1)];
  3458. p && p !== c && p.pointer.onContainerMouseLeave({ relatedTarget: !0 }), p && p.mouseIsDown || (a.hoverChartIndex = c.index);
  3459. }, a.prototype.touch = function(c, p) {
  3460. var i = this.chart;
  3461. if (this.setHoverChartIndex(), c.touches.length === 1)
  3462. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  3463. if (p && this.runPointActions(c), c.type === "touchmove") {
  3464. p = this.pinchDown;
  3465. var l = p[0] ? 4 <= Math.sqrt(Math.pow(p[0].chartX - c.chartX, 2) + Math.pow(p[0].chartY - c.chartY, 2)) : !1;
  3466. }
  3467. w(l, !0) && this.pinch(c);
  3468. } else
  3469. p && this.reset();
  3470. else
  3471. c.touches.length === 2 && this.pinch(c);
  3472. }, a.prototype.touchSelect = function(c) {
  3473. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  3474. }, a.prototype.zoomOption = function(c) {
  3475. var p = this.chart, i = p.options.chart;
  3476. p = p.inverted;
  3477. var l = i.zoomType || "";
  3478. /touch/.test(c.type) && (l = w(i.pinchType, l)), this.zoomX = c = /x/.test(l), this.zoomY = i = /y/.test(l), this.zoomHor = c && !p || i && p, this.zoomVert = i && !p || c && p, this.hasZoom = c || i;
  3479. }, a;
  3480. }(), y;
  3481. }), E(h, "Core/MSPointer.js", [h["Core/Globals.js"], h["Core/Pointer.js"], h["Core/Utilities.js"]], function(y, j, I) {
  3482. function Z() {
  3483. var C = [];
  3484. return C.item = function(b) {
  3485. return this[b];
  3486. }, u(O, function(b) {
  3487. C.push({ pageX: b.pageX, pageY: b.pageY, target: b.target });
  3488. }), C;
  3489. }
  3490. function F(C, b, w, x) {
  3491. var a = H[j.hoverChartIndex || NaN];
  3492. C.pointerType !== "touch" && C.pointerType !== C.MSPOINTER_TYPE_TOUCH || !a || (a = a.pointer, x(C), a[b]({ type: w, target: C.currentTarget, preventDefault: R, touches: Z() }));
  3493. }
  3494. var U = this && this.__extends || function() {
  3495. var C = function(b, w) {
  3496. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  3497. x.__proto__ = a;
  3498. } || function(x, a) {
  3499. for (var c in a)
  3500. a.hasOwnProperty(c) && (x[c] = a[c]);
  3501. }, C(b, w);
  3502. };
  3503. return function(b, w) {
  3504. function x() {
  3505. this.constructor = b;
  3506. }
  3507. C(b, w), b.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  3508. };
  3509. }(), H = y.charts, W = y.doc, R = y.noop, S = y.win, v = I.addEvent, d = I.css, u = I.objectEach, P = I.removeEvent, O = {}, N = !!S.PointerEvent;
  3510. return function(C) {
  3511. function b() {
  3512. return C !== null && C.apply(this, arguments) || this;
  3513. }
  3514. return U(b, C), b.isRequired = function() {
  3515. return !(y.hasTouch || !S.PointerEvent && !S.MSPointerEvent);
  3516. }, b.prototype.batchMSEvents = function(w) {
  3517. w(this.chart.container, N ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), w(this.chart.container, N ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), w(W, N ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  3518. }, b.prototype.destroy = function() {
  3519. this.batchMSEvents(P), C.prototype.destroy.call(this);
  3520. }, b.prototype.init = function(w, x) {
  3521. C.prototype.init.call(this, w, x), this.hasZoom && d(w.container, { "-ms-touch-action": "none", "touch-action": "none" });
  3522. }, b.prototype.onContainerPointerDown = function(w) {
  3523. F(w, "onContainerTouchStart", "touchstart", function(x) {
  3524. O[x.pointerId] = { pageX: x.pageX, pageY: x.pageY, target: x.currentTarget };
  3525. });
  3526. }, b.prototype.onContainerPointerMove = function(w) {
  3527. F(w, "onContainerTouchMove", "touchmove", function(x) {
  3528. O[x.pointerId] = {
  3529. pageX: x.pageX,
  3530. pageY: x.pageY
  3531. }, O[x.pointerId].target || (O[x.pointerId].target = x.currentTarget);
  3532. });
  3533. }, b.prototype.onDocumentPointerUp = function(w) {
  3534. F(w, "onDocumentTouchEnd", "touchend", function(x) {
  3535. delete O[x.pointerId];
  3536. });
  3537. }, b.prototype.setDOMEvents = function() {
  3538. C.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(v);
  3539. }, b;
  3540. }(j);
  3541. }), E(h, "Core/Legend/Legend.js", [
  3542. h["Core/Animation/AnimationUtilities.js"],
  3543. h["Core/FormatUtilities.js"],
  3544. h["Core/Globals.js"],
  3545. h["Core/Series/Point.js"],
  3546. h["Core/Renderer/RendererUtilities.js"],
  3547. h["Core/Utilities.js"]
  3548. ], function(y, j, I, Z, F, U) {
  3549. var H = y.animObject, W = y.setAnimation, R = j.format;
  3550. y = I.isFirefox;
  3551. var S = I.marginNames;
  3552. I = I.win;
  3553. var v = F.distribute, d = U.addEvent, u = U.createElement, P = U.css, O = U.defined, N = U.discardElement, C = U.find, b = U.fireEvent, w = U.isNumber, x = U.merge, a = U.pick, c = U.relativeLength, p = U.stableSort, i = U.syncTimeout;
  3554. return F = U.wrap, U = function() {
  3555. function l(s, t) {
  3556. this.allItems = [], this.contentGroup = this.box = void 0, this.display = !1, this.group = void 0, this.offsetWidth = this.maxLegendWidth = this.maxItemWidth = this.legendWidth = this.legendHeight = this.lastLineHeight = this.lastItemY = this.itemY = this.itemX = this.itemMarginTop = this.itemMarginBottom = this.itemHeight = this.initialItemY = 0, this.options = {}, this.padding = 0, this.pages = [], this.proximate = !1, this.scrollGroup = void 0, this.widthOption = this.totalItemWidth = this.titleHeight = this.symbolWidth = this.symbolHeight = 0, this.chart = s, this.init(s, t);
  3557. }
  3558. return l.prototype.init = function(s, t) {
  3559. this.chart = s, this.setOptions(t), t.enabled && (this.render(), d(this.chart, "endResize", function() {
  3560. this.legend.positionCheckboxes();
  3561. }), this.proximate ? this.unchartrender = d(this.chart, "render", function() {
  3562. this.legend.proximatePositions(), this.legend.positionItems();
  3563. }) : this.unchartrender && this.unchartrender());
  3564. }, l.prototype.setOptions = function(s) {
  3565. var t = a(s.padding, 8);
  3566. this.options = s, this.chart.styledMode || (this.itemStyle = s.itemStyle, this.itemHiddenStyle = x(this.itemStyle, s.itemHiddenStyle)), this.itemMarginTop = s.itemMarginTop || 0, this.itemMarginBottom = s.itemMarginBottom || 0, this.padding = t, this.initialItemY = t - 5, this.symbolWidth = a(
  3567. s.symbolWidth,
  3568. 16
  3569. ), this.pages = [], this.proximate = s.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  3570. }, l.prototype.update = function(s, t) {
  3571. var o = this.chart;
  3572. this.setOptions(x(!0, this.options, s)), this.destroy(), o.isDirtyLegend = o.isDirtyBox = !0, a(t, !0) && o.redraw(), b(this, "afterUpdate");
  3573. }, l.prototype.colorizeItem = function(s, t) {
  3574. if (s.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  3575. var o = this.options, n = s.legendItem, A = s.legendLine, _ = s.legendSymbol, D = this.itemHiddenStyle.color;
  3576. o = t ? o.itemStyle.color : D;
  3577. var B = t && s.color || D, T = s.options && s.options.marker, X = { fill: B };
  3578. n && n.css({ fill: o, color: o }), A && A.attr({ stroke: B }), _ && (T && _.isMarker && (X = s.pointAttribs(), t || (X.stroke = X.fill = D)), _.attr(X));
  3579. }
  3580. b(this, "afterColorizeItem", { item: s, visible: t });
  3581. }, l.prototype.positionItems = function() {
  3582. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  3583. }, l.prototype.positionItem = function(s) {
  3584. var t = this, o = this.options, n = o.symbolPadding, A = !o.rtl, _ = s._legendItemPos;
  3585. o = _[0], _ = _[1];
  3586. var D = s.checkbox, B = s.legendGroup;
  3587. B && B.element && (n = { translateX: A ? o : this.legendWidth - o - 2 * n - 4, translateY: _ }, A = function() {
  3588. b(t, "afterPositionItem", { item: s });
  3589. }, O(B.translateY) ? B.animate(n, void 0, A) : (B.attr(n), A())), D && (D.x = o, D.y = _);
  3590. }, l.prototype.destroyItem = function(s) {
  3591. var t = s.checkbox;
  3592. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(o) {
  3593. s[o] && (s[o] = s[o].destroy());
  3594. }), t && N(s.checkbox);
  3595. }, l.prototype.destroy = function() {
  3596. function s(t) {
  3597. this[t] && (this[t] = this[t].destroy());
  3598. }
  3599. this.getAllItems().forEach(function(t) {
  3600. [
  3601. "legendItem",
  3602. "legendGroup"
  3603. ].forEach(s, t);
  3604. }), "clipRect up down pager nav box title group".split(" ").forEach(s, this), this.display = null;
  3605. }, l.prototype.positionCheckboxes = function() {
  3606. var s = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, o = this.titleHeight;
  3607. if (s) {
  3608. var n = s.translateY;
  3609. this.allItems.forEach(function(A) {
  3610. var _ = A.checkbox;
  3611. if (_) {
  3612. var D = n + o + _.y + (this.scrollOffset || 0) + 3;
  3613. P(_, { left: s.translateX + A.checkboxOffset + _.x - 20 + "px", top: D + "px", display: this.proximate || D > n - 6 && D < n + t - 6 ? "" : "none" });
  3614. }
  3615. }, this);
  3616. }
  3617. }, l.prototype.renderTitle = function() {
  3618. var s = this.options, t = this.padding, o = s.title, n = 0;
  3619. o.text && (this.title || (this.title = this.chart.renderer.label(o.text, t - 3, t - 4, null, null, null, s.useHTML, null, "legend-title").attr({ zIndex: 1 }), this.chart.styledMode || this.title.css(o.style), this.title.add(this.group)), o.width || this.title.css({ width: this.maxLegendWidth + "px" }), s = this.title.getBBox(), n = s.height, this.offsetWidth = s.width, this.contentGroup.attr({ translateY: n })), this.titleHeight = n;
  3620. }, l.prototype.setText = function(s) {
  3621. var t = this.options;
  3622. s.legendItem.attr({ text: t.labelFormat ? R(t.labelFormat, s, this.chart) : t.labelFormatter.call(s) });
  3623. }, l.prototype.renderItem = function(s) {
  3624. var t = this.chart, o = t.renderer, n = this.options, A = this.symbolWidth, _ = n.symbolPadding || 0, D = this.itemStyle, B = this.itemHiddenStyle, T = n.layout === "horizontal" ? a(n.itemDistance, 20) : 0, X = !n.rtl, g = !s.series, m = !g && s.series.drawLegendSymbol ? s.series : s, L = m.options, Y = this.createCheckboxForItem && L && L.showCheckbox, V = n.useHTML, Q = s.options.className, k = s.legendItem;
  3625. L = A + _ + T + (Y ? 20 : 0), k || (s.legendGroup = o.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + s.colorIndex + (Q ? " " + Q : "") + (g ? " highcharts-series-" + s.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), s.legendItem = k = o.text("", X ? A + _ : -_, this.baseline || 0, V), t.styledMode || k.css(x(s.visible ? D : B)), k.attr({ align: X ? "left" : "right", zIndex: 2 }).add(s.legendGroup), this.baseline || (this.fontMetrics = o.fontMetrics(t.styledMode ? 12 : D.fontSize, k), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, k.attr("y", this.baseline), this.symbolHeight = n.symbolHeight || this.fontMetrics.f, n.squareSymbol && (this.symbolWidth = a(n.symbolWidth, Math.max(this.symbolHeight, 16)), L = this.symbolWidth + _ + T + (Y ? 20 : 0), X && k.attr("x", this.symbolWidth + _))), m.drawLegendSymbol(this, s), this.setItemEvents && this.setItemEvents(s, k, V)), Y && !s.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(s), this.colorizeItem(s, s.visible), !t.styledMode && D.width || k.css({ width: (n.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(s), t = k.getBBox(), o = this.fontMetrics && this.fontMetrics.h || 0, s.itemWidth = s.checkboxOffset = n.itemWidth || s.legendItemWidth || t.width + L, this.maxItemWidth = Math.max(this.maxItemWidth, s.itemWidth), this.totalItemWidth += s.itemWidth, this.itemHeight = s.itemHeight = Math.round(s.legendItemHeight || (t.height > 1.5 * o ? t.height : o));
  3626. }, l.prototype.layoutItem = function(s) {
  3627. var t = this.options, o = this.padding, n = t.layout === "horizontal", A = s.itemHeight, _ = this.itemMarginBottom, D = this.itemMarginTop, B = n ? a(t.itemDistance, 20) : 0, T = this.maxLegendWidth;
  3628. t = t.alignColumns && this.totalItemWidth > T ? this.maxItemWidth : s.itemWidth, n && this.itemX - o + t > T && (this.itemX = o, this.lastLineHeight && (this.itemY += D + this.lastLineHeight + _), this.lastLineHeight = 0), this.lastItemY = D + this.itemY + _, this.lastLineHeight = Math.max(A, this.lastLineHeight), s._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += D + A + _, this.lastLineHeight = A), this.offsetWidth = this.widthOption || Math.max((n ? this.itemX - o - (s.checkbox ? 0 : B) : t) + o, this.offsetWidth);
  3629. }, l.prototype.getAllItems = function() {
  3630. var s = [];
  3631. return this.chart.series.forEach(function(t) {
  3632. var o = t && t.options;
  3633. t && a(o.showInLegend, O(o.linkedTo) ? !1 : void 0, !0) && (s = s.concat(t.legendItems || (o.legendType === "point" ? t.data : t)));
  3634. }), b(this, "afterGetAllItems", { allItems: s }), s;
  3635. }, l.prototype.getAlignment = function() {
  3636. var s = this.options;
  3637. return this.proximate ? s.align.charAt(0) + "tv" : s.floating ? "" : s.align.charAt(0) + s.verticalAlign.charAt(0) + s.layout.charAt(0);
  3638. }, l.prototype.adjustMargins = function(s, t) {
  3639. var o = this.chart, n = this.options, A = this.getAlignment();
  3640. A && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  3641. _.test(A) && !O(s[D]) && (o[S[D]] = Math.max(o[S[D]], o.legend[(D + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][D] * n[D % 2 ? "x" : "y"] + a(n.margin, 12) + t[D] + (o.titleOffset[D] || 0)));
  3642. });
  3643. }, l.prototype.proximatePositions = function() {
  3644. var s = this.chart, t = [], o = this.options.align === "left";
  3645. this.allItems.forEach(function(n) {
  3646. var A, _ = o;
  3647. if (n.yAxis) {
  3648. n.xAxis.options.reversed && (_ = !_), n.points && (A = C(_ ? n.points : n.points.slice(0).reverse(), function(B) {
  3649. return w(B.plotY);
  3650. })), _ = this.itemMarginTop + n.legendItem.getBBox().height + this.itemMarginBottom;
  3651. var D = n.yAxis.top - s.plotTop;
  3652. n.visible ? (A = A ? A.plotY : n.yAxis.height, A += D - 0.3 * _) : A = D + n.yAxis.height, t.push({ target: A, size: _, item: n });
  3653. }
  3654. }, this), v(t, s.plotHeight).forEach(function(n) {
  3655. n.item._legendItemPos && (n.item._legendItemPos[1] = s.plotTop - s.spacing[0] + n.pos);
  3656. });
  3657. }, l.prototype.render = function() {
  3658. var s = this.chart, t = s.renderer, o = this.options, n = this.padding, A = this.getAllItems(), _ = this.group, D = this.box;
  3659. this.itemX = n, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(o.width, s.spacingBox.width - n);
  3660. var B = s.spacingBox.width - 2 * n - o.x;
  3661. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (B /= 2), this.maxLegendWidth = this.widthOption || B, _ || (this.group = _ = t.g("legend").addClass(o.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = t.g().attr({ zIndex: 1 }).add(_), this.scrollGroup = t.g().add(this.contentGroup)), this.renderTitle(), p(A, function(X, g) {
  3662. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  3663. }), o.reversed && A.reverse(), this.allItems = A, this.display = B = !!A.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, A.forEach(this.renderItem, this), A.forEach(this.layoutItem, this), A = (this.widthOption || this.offsetWidth) + n;
  3664. var T = this.lastItemY + this.lastLineHeight + this.titleHeight;
  3665. T = this.handleOverflow(T), T += n, D || (this.box = D = t.rect().addClass("highcharts-legend-box").attr({ r: o.borderRadius }).add(_), D.isNew = !0), s.styledMode || D.attr({ stroke: o.borderColor, "stroke-width": o.borderWidth || 0, fill: o.backgroundColor || "none" }).shadow(o.shadow), 0 < A && 0 < T && (D[D.isNew ? "attr" : "animate"](D.crisp.call({}, { x: 0, y: 0, width: A, height: T }, D.strokeWidth())), D.isNew = !1), D[B ? "show" : "hide"](), s.styledMode && _.getStyle("display") === "none" && (A = T = 0), this.legendWidth = A, this.legendHeight = T, B && this.align(), this.proximate || this.positionItems(), b(this, "afterRender");
  3666. }, l.prototype.align = function(s) {
  3667. s === void 0 && (s = this.chart.spacingBox);
  3668. var t = this.chart, o = this.options, n = s.y;
  3669. /(lth|ct|rth)/.test(this.getAlignment()) && 0 < t.titleOffset[0] ? n += t.titleOffset[0] : /(lbh|cb|rbh)/.test(this.getAlignment()) && 0 < t.titleOffset[2] && (n -= t.titleOffset[2]), n !== s.y && (s = x(s, { y: n })), this.group.align(x(o, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : o.verticalAlign }), !0, s);
  3670. }, l.prototype.handleOverflow = function(s) {
  3671. var t = this, o = this.chart, n = o.renderer, A = this.options, _ = A.y, D = A.verticalAlign === "top", B = this.padding, T = A.maxHeight, X = A.navigation, g = a(X.animation, !0), m = X.arrowSize || 12, L = this.pages, Y = this.allItems, V = function(q) {
  3672. typeof q == "number" ? $.attr({ height: q }) : $ && (t.clipRect = $.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + B + "px,9999px," + (B + q) + "px,0)" : "auto");
  3673. }, Q = function(q) {
  3674. return t[q] = n.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(z), o.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  3675. }, k, G;
  3676. _ = o.spacingBox.height + (D ? -_ : _) - B;
  3677. var z = this.nav, $ = this.clipRect;
  3678. return A.layout !== "horizontal" || A.verticalAlign === "middle" || A.floating || (_ /= 2), T && (_ = Math.min(_, T)), L.length = 0, s && 0 < _ && s > _ && X.enabled !== !1 ? (this.clipHeight = k = Math.max(_ - 20 - this.titleHeight - B, 0), this.currentPage = a(this.currentPage, 1), this.fullHeight = s, Y.forEach(function(q, it) {
  3679. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  3680. (!rt || et - L[rt - 1] > k && (G || et) !== L[rt - 1]) && (L.push(G || et), rt++), q.pageIx = rt - 1, G && (Y[it - 1].pageIx = rt - 1), it === Y.length - 1 && et + nt - L[rt - 1] > k && nt <= k && (L.push(et), q.pageIx = rt), et !== G && (G = et);
  3681. }), $ || ($ = t.clipRect = n.clipRect(0, B, 9999, 0), t.contentGroup.clip($)), V(k), z || (this.nav = z = n.g().attr({ zIndex: 1 }).add(this.group), this.up = n.symbol("triangle", 0, 0, m, m).add(z), Q("upTracker").on(
  3682. "click",
  3683. function() {
  3684. t.scroll(-1, g);
  3685. }
  3686. ), this.pager = n.text("", 15, 10).addClass("highcharts-legend-navigation"), o.styledMode || this.pager.css(X.style), this.pager.add(z), this.down = n.symbol("triangle-down", 0, 0, m, m).add(z), Q("downTracker").on("click", function() {
  3687. t.scroll(1, g);
  3688. })), t.scroll(0), s = _) : z && (V(), this.nav = z.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), s;
  3689. }, l.prototype.scroll = function(s, t) {
  3690. var o = this, n = this.chart, A = this.pages, _ = A.length, D = this.clipHeight, B = this.options.navigation, T = this.pager, X = this.padding, g = this.currentPage + s;
  3691. g > _ && (g = _), 0 < g && (typeof t < "u" && W(t, n), this.nav.attr({ translateX: X, translateY: D + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  3692. m.attr({ class: g === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3693. }), T.attr({ text: g + "/" + _ }), [this.down, this.downTracker].forEach(
  3694. function(m) {
  3695. m.attr({ x: 18 + this.pager.getBBox().width, class: g === _ ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3696. },
  3697. this
  3698. ), n.styledMode || (this.up.attr({ fill: g === 1 ? B.inactiveColor : B.activeColor }), this.upTracker.css({ cursor: g === 1 ? "default" : "pointer" }), this.down.attr({ fill: g === _ ? B.inactiveColor : B.activeColor }), this.downTracker.css({ cursor: g === _ ? "default" : "pointer" })), this.scrollOffset = -A[g - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = g, this.positionCheckboxes(), s = H(a(t, n.renderer.globalAnimation, !0)), i(function() {
  3699. b(o, "afterScroll", { currentPage: g });
  3700. }, s.duration));
  3701. }, l.prototype.setItemEvents = function(s, t, o) {
  3702. var n = this, A = n.chart.renderer.boxWrapper, _ = s instanceof Z, D = "highcharts-legend-" + (_ ? "point" : "series") + "-active", B = n.chart.styledMode, T = function(X) {
  3703. n.allItems.forEach(function(g) {
  3704. s !== g && [g].concat(g.linkedSeries || []).forEach(function(m) {
  3705. m.setState(X, !_);
  3706. });
  3707. });
  3708. };
  3709. (o ? [t, s.legendSymbol] : [s.legendGroup]).forEach(function(X) {
  3710. X && X.on("mouseover", function() {
  3711. s.visible && T("inactive"), s.setState("hover"), s.visible && A.addClass(D), B || t.css(n.options.itemHoverStyle);
  3712. }).on("mouseout", function() {
  3713. n.chart.styledMode || t.css(x(s.visible ? n.itemStyle : n.itemHiddenStyle)), T(""), A.removeClass(D), s.setState();
  3714. }).on("click", function(g) {
  3715. var m = function() {
  3716. s.setVisible && s.setVisible(), T(s.visible ? "inactive" : "");
  3717. };
  3718. A.removeClass(D), g = { browserEvent: g }, s.firePointEvent ? s.firePointEvent("legendItemClick", g, m) : b(s, "legendItemClick", g, m);
  3719. });
  3720. });
  3721. }, l.prototype.createCheckboxForItem = function(s) {
  3722. s.checkbox = u(
  3723. "input",
  3724. { type: "checkbox", className: "highcharts-legend-checkbox", checked: s.selected, defaultChecked: s.selected },
  3725. this.options.itemCheckboxStyle,
  3726. this.chart.container
  3727. ), d(s.checkbox, "click", function(t) {
  3728. b(s.series || s, "checkboxClick", { checked: t.target.checked, item: s }, function() {
  3729. s.select();
  3730. });
  3731. });
  3732. }, l;
  3733. }(), (/Trident\/7\.0/.test(I.navigator && I.navigator.userAgent) || y) && F(U.prototype, "positionItem", function(l, s) {
  3734. var t = this, o = function() {
  3735. s._legendItemPos && l.call(t, s);
  3736. };
  3737. o(), t.bubbleLegend || setTimeout(o);
  3738. }), U;
  3739. }), E(
  3740. h,
  3741. "Core/Series/SeriesRegistry.js",
  3742. [h["Core/Globals.js"], h["Core/DefaultOptions.js"], h["Core/Series/Point.js"], h["Core/Utilities.js"]],
  3743. function(y, j, I, Z) {
  3744. var F = j.defaultOptions, U = Z.error, H = Z.extendClass, W = Z.merge, R;
  3745. return function(S) {
  3746. function v(d, u) {
  3747. var P = F.plotOptions || {}, O = u.defaultOptions;
  3748. u.prototype.pointClass || (u.prototype.pointClass = I), u.prototype.type = d, O && (P[d] = O), S.seriesTypes[d] = u;
  3749. }
  3750. S.seriesTypes = y.seriesTypes, S.getSeries = function(d, u) {
  3751. u === void 0 && (u = {});
  3752. var P = d.options.chart;
  3753. P = u.type || P.type || P.defaultSeriesType || "";
  3754. var O = S.seriesTypes[P];
  3755. return S || U(17, !0, d, { missingModuleFor: P }), P = new O(), typeof P.init == "function" && P.init(d, u), P;
  3756. }, S.registerSeriesType = v, S.seriesType = function(d, u, P, O, N) {
  3757. var C = F.plotOptions || {};
  3758. return u = u || "", C[d] = W(C[u], P), v(d, H(S.seriesTypes[u] || function() {
  3759. }, O)), S.seriesTypes[d].prototype.type = d, N && (S.seriesTypes[d].prototype.pointClass = H(I, N)), S.seriesTypes[d];
  3760. };
  3761. }(R || (R = {})), R;
  3762. }
  3763. ), E(h, "Core/Chart/Chart.js", [
  3764. h["Core/Animation/AnimationUtilities.js"],
  3765. h["Core/Axis/Axis.js"],
  3766. h["Core/FormatUtilities.js"],
  3767. h["Core/Foundation.js"],
  3768. h["Core/Globals.js"],
  3769. h["Core/Legend/Legend.js"],
  3770. h["Core/MSPointer.js"],
  3771. h["Core/DefaultOptions.js"],
  3772. h["Core/Pointer.js"],
  3773. h["Core/Renderer/RendererRegistry.js"],
  3774. h["Core/Series/SeriesRegistry.js"],
  3775. h["Core/Renderer/SVG/SVGRenderer.js"],
  3776. h["Core/Time.js"],
  3777. h["Core/Utilities.js"],
  3778. h["Core/Renderer/HTML/AST.js"]
  3779. ], function(y, j, I, Z, F, U, H, W, R, S, v, d, u, P, O) {
  3780. var N = y.animate, C = y.animObject, b = y.setAnimation, w = I.numberFormat, x = Z.registerEventOptions, a = F.charts, c = F.doc, p = F.marginNames, i = F.svg, l = F.win, s = W.defaultOptions, t = W.defaultTime, o = v.seriesTypes, n = P.addEvent, A = P.attr, _ = P.cleanRecursively, D = P.createElement, B = P.css, T = P.defined, X = P.discardElement, g = P.erase, m = P.error, L = P.extend, Y = P.find, V = P.fireEvent, Q = P.getStyle, k = P.isArray, G = P.isNumber, z = P.isObject, $ = P.isString, q = P.merge, it = P.objectEach, et = P.pick, nt = P.pInt, rt = P.relativeLength, ct = P.removeEvent, gt = P.splat, dt = P.syncTimeout, lt = P.uniqueKey;
  3781. return y = function() {
  3782. function at(J, tt, st) {
  3783. this.series = this.renderTo = this.renderer = this.pointer = this.pointCount = this.plotWidth = this.plotTop = this.plotLeft = this.plotHeight = this.plotBox = this.options = this.numberFormatter = this.margin = this.legend = this.labelCollectors = this.isResizing = this.index = this.eventOptions = this.container = this.colorCounter = this.clipBox = this.chartWidth = this.chartHeight = this.bounds = this.axisOffset = this.axes = void 0, this.sharedClips = {}, this.yAxis = this.xAxis = this.userOptions = this.titleOffset = this.time = this.symbolCounter = this.spacingBox = this.spacing = void 0, this.getArgs(J, tt, st);
  3784. }
  3785. return at.chart = function(J, tt, st) {
  3786. return new at(J, tt, st);
  3787. }, at.prototype.getArgs = function(J, tt, st) {
  3788. $(J) || J.nodeName ? (this.renderTo = J, this.init(tt, st)) : this.init(J, tt);
  3789. }, at.prototype.init = function(J, tt) {
  3790. var st = J.plotOptions || {};
  3791. V(this, "init", { args: arguments }, function() {
  3792. var ht = q(s, J), pt = ht.chart;
  3793. it(ht.plotOptions, function(yt, vt) {
  3794. z(yt) && (yt.tooltip = st[vt] && q(st[vt].tooltip) || void 0);
  3795. }), ht.tooltip.userOptions = J.chart && J.chart.forExport && J.tooltip.userOptions || J.tooltip, this.userOptions = J, this.margin = [], this.spacing = [], this.bounds = { h: {}, v: {} }, this.labelCollectors = [], this.callback = tt, this.isResizing = 0, this.options = ht, this.axes = [], this.series = [], this.time = J.time && Object.keys(J.time).length ? new u(J.time) : F.time, this.numberFormatter = pt.numberFormatter || w, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = a.length, a.push(this), F.chartCount++, x(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, V(this, "afterInit"), this.firstRender();
  3796. });
  3797. }, at.prototype.initSeries = function(J) {
  3798. var tt = this.options.chart;
  3799. tt = J.type || tt.type || tt.defaultSeriesType;
  3800. var st = o[tt];
  3801. return st || m(17, !0, this, { missingModuleFor: tt }), tt = new st(), typeof tt.init == "function" && tt.init(this, J), tt;
  3802. }, at.prototype.setSeriesData = function() {
  3803. this.getSeriesOrderByLinks().forEach(function(J) {
  3804. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  3805. });
  3806. }, at.prototype.getSeriesOrderByLinks = function() {
  3807. return this.series.concat().sort(function(J, tt) {
  3808. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  3809. });
  3810. }, at.prototype.orderSeries = function(J) {
  3811. var tt = this.series;
  3812. J = J || 0;
  3813. for (var st = tt.length; J < st; ++J)
  3814. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  3815. }, at.prototype.isInsidePlot = function(J, tt, st) {
  3816. st === void 0 && (st = {});
  3817. var ht = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Ct = this.scrollablePlotBox, Pt = 0, kt = 0;
  3818. st.visiblePlotOnly && this.scrollingContainer && (kt = this.scrollingContainer, Pt = kt.scrollLeft, kt = kt.scrollTop);
  3819. var St = st.series;
  3820. if (pt = st.visiblePlotOnly && Ct || pt, Ct = st.inverted ? tt : J, tt = st.inverted ? J : tt, J = { x: Ct, y: tt, isInsidePlot: !0 }, !st.ignoreX) {
  3821. var Dt = St && (ht ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  3822. Ct = st.paneCoordinates ? Dt.pos + Ct : yt + Ct, Ct >= Math.max(Pt + yt, Dt.pos) && Ct <= Math.min(Pt + yt + pt.width, Dt.pos + Dt.len) || (J.isInsidePlot = !1);
  3823. }
  3824. return !st.ignoreY && J.isInsidePlot && (ht = St && (ht ? St.xAxis : St.yAxis) || { pos: vt, len: 1 / 0 }, st = st.paneCoordinates ? ht.pos + tt : vt + tt, st >= Math.max(kt + vt, ht.pos) && st <= Math.min(kt + vt + pt.height, ht.pos + ht.len) || (J.isInsidePlot = !1)), V(this, "afterIsInsidePlot", J), J.isInsidePlot;
  3825. }, at.prototype.redraw = function(J) {
  3826. V(this, "beforeRedraw");
  3827. var tt = this.hasCartesianSeries ? this.axes : this.colorAxis || [], st = this.series, ht = this.pointer, pt = this.legend, yt = this.userOptions.legend, vt = this.renderer, Ct = vt.isHidden(), Pt = [], kt = this.isDirtyBox, St = this.isDirtyLegend;
  3828. for (this.setResponsive && this.setResponsive(!1), b(this.hasRendered ? J : !1, this), Ct && this.temporaryDisplay(), this.layOutTitles(), J = st.length; J--; ) {
  3829. var Dt = st[J];
  3830. if (Dt.options.stacking || Dt.options.centerInCategory) {
  3831. var Lt = !0;
  3832. if (Dt.isDirty) {
  3833. var Nt = !0;
  3834. break;
  3835. }
  3836. }
  3837. }
  3838. if (Nt)
  3839. for (J = st.length; J--; )
  3840. Dt = st[J], Dt.options.stacking && (Dt.isDirty = !0);
  3841. st.forEach(function(Et) {
  3842. Et.isDirty && (Et.options.legendType === "point" ? (typeof Et.updateTotals == "function" && Et.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Et.isDirtyData && V(Et, "updatedData");
  3843. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), Lt && this.getStacks(), tt.forEach(function(Et) {
  3844. Et.updateNames(), Et.setScale();
  3845. }), this.getMargins(), tt.forEach(function(Et) {
  3846. Et.isDirty && (kt = !0);
  3847. }), tt.forEach(function(Et) {
  3848. var Kt = Et.min + "," + Et.max;
  3849. Et.extKey !== Kt && (Et.extKey = Kt, Pt.push(function() {
  3850. V(Et, "afterSetExtremes", L(Et.eventArgs, Et.getExtremes())), delete Et.eventArgs;
  3851. })), (kt || Lt) && Et.redraw();
  3852. }), kt && this.drawChartBox(), V(this, "predraw"), st.forEach(function(Et) {
  3853. (kt || Et.isDirty) && Et.visible && Et.redraw(), Et.isDirtyData = !1;
  3854. }), ht && ht.reset(!0), vt.draw(), V(this, "redraw"), V(this, "render"), Ct && this.temporaryDisplay(!0), Pt.forEach(function(Et) {
  3855. Et.call();
  3856. });
  3857. }, at.prototype.get = function(J) {
  3858. function tt(yt) {
  3859. return yt.id === J || yt.options && yt.options.id === J;
  3860. }
  3861. for (var st = this.series, ht = Y(this.axes, tt) || Y(this.series, tt), pt = 0; !ht && pt < st.length; pt++)
  3862. ht = Y(st[pt].points || [], tt);
  3863. return ht;
  3864. }, at.prototype.getAxes = function() {
  3865. var J = this, tt = this.options, st = tt.xAxis = gt(tt.xAxis || {});
  3866. tt = tt.yAxis = gt(tt.yAxis || {}), V(this, "getAxes"), st.forEach(function(ht, pt) {
  3867. ht.index = pt, ht.isX = !0;
  3868. }), tt.forEach(function(ht, pt) {
  3869. ht.index = pt;
  3870. }), st.concat(tt).forEach(function(ht) {
  3871. new j(J, ht);
  3872. }), V(this, "afterGetAxes");
  3873. }, at.prototype.getSelectedPoints = function() {
  3874. return this.series.reduce(function(J, tt) {
  3875. return tt.getPointsCollection().forEach(function(st) {
  3876. et(st.selectedStaging, st.selected) && J.push(st);
  3877. }), J;
  3878. }, []);
  3879. }, at.prototype.getSelectedSeries = function() {
  3880. return this.series.filter(function(J) {
  3881. return J.selected;
  3882. });
  3883. }, at.prototype.setTitle = function(J, tt, st) {
  3884. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription("caption", void 0), this.layOutTitles(st);
  3885. }, at.prototype.applyDescription = function(J, tt) {
  3886. var st = this, ht = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  3887. ht = this.options[J] = q(!this.styledMode && { style: ht }, this.options[J], tt);
  3888. var pt = this[J];
  3889. pt && tt && (this[J] = pt = pt.destroy()), ht && !pt && (pt = this.renderer.text(ht.text, 0, 0, ht.useHTML).attr({ align: ht.align, class: "highcharts-" + J, zIndex: ht.zIndex || 4 }).add(), pt.update = function(yt) {
  3890. st[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  3891. }, this.styledMode || pt.css(ht.style), this[J] = pt);
  3892. }, at.prototype.layOutTitles = function(J) {
  3893. var tt = [0, 0, 0], st = this.renderer, ht = this.spacingBox;
  3894. ["title", "subtitle", "caption"].forEach(function(yt) {
  3895. var vt = this[yt], Ct = this.options[yt], Pt = Ct.verticalAlign || "top";
  3896. yt = yt === "title" ? Pt === "top" ? -3 : 0 : Pt === "top" ? tt[0] + 2 : 0;
  3897. var kt;
  3898. if (vt) {
  3899. this.styledMode || (kt = Ct.style && Ct.style.fontSize), kt = st.fontMetrics(kt, vt).b, vt.css({ width: (Ct.width || ht.width + (Ct.widthAdjust || 0)) + "px" });
  3900. var St = Math.round(vt.getBBox(Ct.useHTML).height);
  3901. vt.align(
  3902. L({ y: Pt === "bottom" ? kt : yt + kt, height: St }, Ct),
  3903. !1,
  3904. "spacingBox"
  3905. ), Ct.floating || (Pt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Pt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  3906. }
  3907. }, this), tt[0] && (this.options.title.verticalAlign || "top") === "top" && (tt[0] += this.options.title.margin), tt[2] && this.options.caption.verticalAlign === "bottom" && (tt[2] += this.options.caption.margin);
  3908. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  3909. this.titleOffset = tt, V(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  3910. }, at.prototype.getChartSize = function() {
  3911. var J = this.options.chart, tt = J.width;
  3912. J = J.height;
  3913. var st = this.renderTo;
  3914. T(tt) || (this.containerWidth = Q(st, "width")), T(J) || (this.containerHeight = Q(st, "height")), this.chartWidth = Math.max(0, tt || this.containerWidth || 600), this.chartHeight = Math.max(0, rt(J, this.chartWidth) || (1 < this.containerHeight ? this.containerHeight : 400));
  3915. }, at.prototype.temporaryDisplay = function(J) {
  3916. var tt = this.renderTo;
  3917. if (J)
  3918. for (; tt && tt.style; )
  3919. tt.hcOrigStyle && (B(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  3920. else
  3921. for (; tt && tt.style && (c.body.contains(tt) || tt.parentNode || (tt.hcOrigDetached = !0, c.body.appendChild(tt)), (Q(tt, "display", !1) === "none" || tt.hcOricDetached) && (tt.hcOrigStyle = { display: tt.style.display, height: tt.style.height, overflow: tt.style.overflow }, J = { display: "block", overflow: "hidden" }, tt !== this.renderTo && (J.height = 0), B(tt, J), tt.offsetWidth || tt.style.setProperty("display", "block", "important")), tt = tt.parentNode, tt !== c.body); )
  3922. ;
  3923. }, at.prototype.setClassName = function(J) {
  3924. this.container.className = "highcharts-container " + (J || "");
  3925. }, at.prototype.getContainer = function() {
  3926. var J = this.options, tt = J.chart, st = lt(), ht, pt = this.renderTo;
  3927. pt || (this.renderTo = pt = tt.renderTo), $(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  3928. var yt = nt(A(pt, "data-highcharts-chart"));
  3929. G(yt) && a[yt] && a[yt].hasRendered && a[yt].destroy(), A(pt, "data-highcharts-chart", this.index), pt.innerHTML = O.emptyHTML, tt.skipClone || pt.offsetWidth || this.temporaryDisplay(), this.getChartSize(), yt = this.chartWidth;
  3930. var vt = this.chartHeight;
  3931. if (B(pt, { overflow: "hidden" }), this.styledMode || (ht = L({ position: "relative", overflow: "hidden", width: yt + "px", height: vt + "px", textAlign: "left", lineHeight: "normal", zIndex: 0, "-webkit-tap-highlight-color": "rgba(0,0,0,0)", userSelect: "none", "touch-action": "manipulation", outline: "none" }, tt.style || {})), this.container = st = D("div", { id: st }, ht, pt), this._cursor = st.style.cursor, this.renderer = new (tt.renderer || !i ? S.getRendererType(tt.renderer) : d)(st, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), b(
  3932. void 0,
  3933. this
  3934. ), this.setClassName(tt.className), this.styledMode)
  3935. for (var Ct in J.defs)
  3936. this.renderer.definition(J.defs[Ct]);
  3937. else
  3938. this.renderer.setStyle(tt.style);
  3939. this.renderer.chartIndex = this.index, V(this, "afterGetContainer");
  3940. }, at.prototype.getMargins = function(J) {
  3941. var tt = this.spacing, st = this.margin, ht = this.titleOffset;
  3942. this.resetMargins(), ht[0] && !T(st[0]) && (this.plotTop = Math.max(this.plotTop, ht[0] + tt[0])), ht[2] && !T(st[2]) && (this.marginBottom = Math.max(this.marginBottom, ht[2] + tt[2])), this.legend && this.legend.display && this.legend.adjustMargins(
  3943. st,
  3944. tt
  3945. ), V(this, "getMargins"), J || this.getAxisMargins();
  3946. }, at.prototype.getAxisMargins = function() {
  3947. var J = this, tt = J.axisOffset = [0, 0, 0, 0], st = J.colorAxis, ht = J.margin, pt = function(yt) {
  3948. yt.forEach(function(vt) {
  3949. vt.visible && vt.getOffset();
  3950. });
  3951. };
  3952. J.hasCartesianSeries ? pt(J.axes) : st && st.length && pt(st), p.forEach(function(yt, vt) {
  3953. T(ht[vt]) || (J[yt] += tt[vt]);
  3954. }), J.setChartSize();
  3955. }, at.prototype.reflow = function(J) {
  3956. var tt = this, st = tt.options.chart, ht = tt.renderTo, pt = T(st.width) && T(st.height), yt = st.width || Q(ht, "width");
  3957. st = st.height || Q(ht, "height"), ht = J ? J.target : l, delete tt.pointer.chartPosition, !pt && !tt.isPrinting && yt && st && (ht === l || ht === c) && ((yt !== tt.containerWidth || st !== tt.containerHeight) && (P.clearTimeout(tt.reflowTimeout), tt.reflowTimeout = dt(function() {
  3958. tt.container && tt.setSize(void 0, void 0, !1);
  3959. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = st);
  3960. }, at.prototype.setReflow = function(J) {
  3961. var tt = this;
  3962. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = n(l, "resize", function(st) {
  3963. tt.options && tt.reflow(st);
  3964. }), n(this, "destroy", this.unbindReflow));
  3965. }, at.prototype.setSize = function(J, tt, st) {
  3966. var ht = this, pt = ht.renderer;
  3967. ht.isResizing += 1, b(st, ht), st = pt.globalAnimation, ht.oldChartHeight = ht.chartHeight, ht.oldChartWidth = ht.chartWidth, typeof J < "u" && (ht.options.chart.width = J), typeof tt < "u" && (ht.options.chart.height = tt), ht.getChartSize(), ht.styledMode || (st ? N : B)(ht.container, { width: ht.chartWidth + "px", height: ht.chartHeight + "px" }, st), ht.setChartSize(!0), pt.setSize(ht.chartWidth, ht.chartHeight, st), ht.axes.forEach(function(yt) {
  3968. yt.isDirty = !0, yt.setScale();
  3969. }), ht.isDirtyLegend = !0, ht.isDirtyBox = !0, ht.layOutTitles(), ht.getMargins(), ht.redraw(st), ht.oldChartHeight = null, V(ht, "resize"), dt(function() {
  3970. ht && V(ht, "endResize", null, function() {
  3971. --ht.isResizing;
  3972. });
  3973. }, C(st).duration);
  3974. }, at.prototype.setChartSize = function(J) {
  3975. var tt = this.inverted, st = this.renderer, ht = this.chartWidth, pt = this.chartHeight, yt = this.options.chart, vt = this.spacing, Ct = this.clipOffset, Pt, kt, St, Dt;
  3976. this.plotLeft = Pt = Math.round(this.plotLeft), this.plotTop = kt = Math.round(this.plotTop), this.plotWidth = St = Math.max(0, Math.round(ht - Pt - this.marginRight)), this.plotHeight = Dt = Math.max(0, Math.round(pt - kt - this.marginBottom)), this.plotSizeX = tt ? Dt : St, this.plotSizeY = tt ? St : Dt, this.plotBorderWidth = yt.plotBorderWidth || 0, this.spacingBox = st.spacingBox = { x: vt[3], y: vt[0], width: ht - vt[3] - vt[1], height: pt - vt[0] - vt[2] }, this.plotBox = st.plotBox = { x: Pt, y: kt, width: St, height: Dt }, tt = 2 * Math.floor(this.plotBorderWidth / 2), ht = Math.ceil(Math.max(tt, Ct[3]) / 2), pt = Math.ceil(Math.max(tt, Ct[0]) / 2), this.clipBox = { x: ht, y: pt, width: Math.floor(this.plotSizeX - Math.max(tt, Ct[1]) / 2 - ht), height: Math.max(0, Math.floor(this.plotSizeY - Math.max(tt, Ct[2]) / 2 - pt)) }, J || (this.axes.forEach(function(Lt) {
  3977. Lt.setAxisSize(), Lt.setAxisTranslation();
  3978. }), st.alignElements()), V(this, "afterSetChartSize", { skipAxes: J });
  3979. }, at.prototype.resetMargins = function() {
  3980. V(this, "resetMargins");
  3981. var J = this, tt = J.options.chart;
  3982. ["margin", "spacing"].forEach(function(st) {
  3983. var ht = tt[st], pt = z(ht) ? ht : [ht, ht, ht, ht];
  3984. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  3985. J[st][vt] = et(tt[st + yt], pt[vt]);
  3986. });
  3987. }), p.forEach(function(st, ht) {
  3988. J[st] = et(J.margin[ht], J.spacing[ht]);
  3989. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  3990. }, at.prototype.drawChartBox = function() {
  3991. var J = this.options.chart, tt = this.renderer, st = this.chartWidth, ht = this.chartHeight, pt = this.styledMode, yt = this.plotBGImage, vt = J.backgroundColor, Ct = J.plotBackgroundColor, Pt = J.plotBackgroundImage, kt = this.plotLeft, St = this.plotTop, Dt = this.plotWidth, Lt = this.plotHeight, Nt = this.plotBox, Et = this.clipRect, Kt = this.clipBox, Gt = this.chartBackground, Wt = this.plotBackground, Jt = this.plotBorder, be, zt = "animate";
  3992. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), zt = "attr"), pt)
  3993. var Vt = be = Gt.strokeWidth();
  3994. else
  3995. Vt = J.borderWidth || 0, be = Vt + (J.shadow ? 8 : 0), vt = { fill: vt || "none" }, (Vt || Gt["stroke-width"]) && (vt.stroke = J.borderColor, vt["stroke-width"] = Vt), Gt.attr(vt).shadow(J.shadow);
  3996. Gt[zt]({ x: be / 2, y: be / 2, width: st - be - Vt % 2, height: ht - be - Vt % 2, r: J.borderRadius }), zt = "animate", Wt || (zt = "attr", this.plotBackground = Wt = tt.rect().addClass("highcharts-plot-background").add()), Wt[zt](Nt), pt || (Wt.attr({ fill: Ct || "none" }).shadow(J.plotShadow), Pt && (yt ? (Pt !== yt.attr("href") && yt.attr("href", Pt), yt.animate(Nt)) : this.plotBGImage = tt.image(Pt, kt, St, Dt, Lt).add())), Et ? Et.animate({ width: Kt.width, height: Kt.height }) : this.clipRect = tt.clipRect(Kt), zt = "animate", Jt || (zt = "attr", this.plotBorder = Jt = tt.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()), pt || Jt.attr({ stroke: J.plotBorderColor, "stroke-width": J.plotBorderWidth || 0, fill: "none" }), Jt[zt](Jt.crisp({ x: kt, y: St, width: Dt, height: Lt }, -Jt.strokeWidth())), this.isDirtyBox = !1, V(this, "afterDrawChartBox");
  3997. }, at.prototype.propFromSeries = function() {
  3998. var J = this, tt = J.options.chart, st = J.options.series, ht, pt, yt;
  3999. ["inverted", "angular", "polar"].forEach(function(vt) {
  4000. for (pt = o[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], ht = st && st.length; !yt && ht--; )
  4001. (pt = o[st[ht].type]) && pt.prototype[vt] && (yt = !0);
  4002. J[vt] = yt;
  4003. });
  4004. }, at.prototype.linkSeries = function() {
  4005. var J = this, tt = J.series;
  4006. tt.forEach(function(st) {
  4007. st.linkedSeries.length = 0;
  4008. }), tt.forEach(function(st) {
  4009. var ht = st.options.linkedTo;
  4010. $(ht) && (ht = ht === ":previous" ? J.series[st.index - 1] : J.get(ht)) && ht.linkedParent !== st && (ht.linkedSeries.push(st), st.linkedParent = ht, ht.enabledDataSorting && st.setDataSortingOptions(), st.visible = et(st.options.visible, ht.options.visible, st.visible));
  4011. }), V(this, "afterLinkSeries");
  4012. }, at.prototype.renderSeries = function() {
  4013. this.series.forEach(function(J) {
  4014. J.translate(), J.render();
  4015. });
  4016. }, at.prototype.renderLabels = function() {
  4017. var J = this, tt = J.options.labels;
  4018. tt.items && tt.items.forEach(function(st) {
  4019. var ht = L(tt.style, st.style), pt = nt(ht.left) + J.plotLeft, yt = nt(ht.top) + J.plotTop + 12;
  4020. delete ht.left, delete ht.top, J.renderer.text(st.html, pt, yt).attr({ zIndex: 2 }).css(ht).add();
  4021. });
  4022. }, at.prototype.render = function() {
  4023. var J = this.axes, tt = this.colorAxis, st = this.renderer, ht = this.options, pt = function(kt) {
  4024. kt.forEach(function(St) {
  4025. St.visible && St.render();
  4026. });
  4027. }, yt = 0;
  4028. this.setTitle(), this.legend = new U(this, ht.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), ht = this.plotWidth, J.some(function(kt) {
  4029. if (kt.horiz && kt.visible && kt.options.labels.enabled && kt.series.length)
  4030. return yt = 21, !0;
  4031. });
  4032. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  4033. J.forEach(function(kt) {
  4034. kt.setScale();
  4035. }), this.getAxisMargins();
  4036. var Ct = 1.1 < ht / this.plotWidth, Pt = 1.05 < vt / this.plotHeight;
  4037. (Ct || Pt) && (J.forEach(function(kt) {
  4038. (kt.horiz && Ct || !kt.horiz && Pt) && kt.setTickInterval(!0);
  4039. }), this.getMargins()), this.drawChartBox(), this.hasCartesianSeries ? pt(J) : tt && tt.length && pt(tt), this.seriesGroup || (this.seriesGroup = st.g("series-group").attr({ zIndex: 3 }).add()), this.renderSeries(), this.renderLabels(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = !0;
  4040. }, at.prototype.addCredits = function(J) {
  4041. var tt = this, st = q(!0, this.options.credits, J);
  4042. st.enabled && !this.credits && (this.credits = this.renderer.text(st.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  4043. st.href && (l.location.href = st.href);
  4044. }).attr({ align: st.position.align, zIndex: 8 }), tt.styledMode || this.credits.css(st.style), this.credits.add().align(st.position), this.credits.update = function(ht) {
  4045. tt.credits = tt.credits.destroy(), tt.addCredits(ht);
  4046. });
  4047. }, at.prototype.destroy = function() {
  4048. var J = this, tt = J.axes, st = J.series, ht = J.container, pt = ht && ht.parentNode, yt;
  4049. for (V(J, "destroy"), J.renderer.forExport ? g(a, J) : a[J.index] = void 0, F.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  4050. tt[yt] = tt[yt].destroy();
  4051. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = st.length; yt--; )
  4052. st[yt] = st[yt].destroy();
  4053. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  4054. var Ct = J[vt];
  4055. Ct && Ct.destroy && (J[vt] = Ct.destroy());
  4056. }), ht && (ht.innerHTML = O.emptyHTML, ct(ht), pt && X(ht)), it(J, function(vt, Ct) {
  4057. delete J[Ct];
  4058. });
  4059. }, at.prototype.firstRender = function() {
  4060. var J = this, tt = J.options;
  4061. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (k(tt.series) ? tt.series : []).forEach(function(st) {
  4062. J.initSeries(st);
  4063. }), J.linkSeries(), J.setSeriesData(), V(J, "beforeRender"), R && (H.isRequired() ? J.pointer = new H(J, tt) : J.pointer = new R(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  4064. }, at.prototype.onload = function() {
  4065. this.callbacks.concat([this.callback]).forEach(function(J) {
  4066. J && typeof this.index < "u" && J.apply(this, [this]);
  4067. }, this), V(this, "load"), V(this, "render"), T(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  4068. }, at.prototype.addSeries = function(J, tt, st) {
  4069. var ht = this, pt;
  4070. return J && (tt = et(tt, !0), V(ht, "addSeries", { options: J }, function() {
  4071. pt = ht.initSeries(J), ht.isDirtyLegend = !0, ht.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), V(ht, "afterAddSeries", { series: pt }), tt && ht.redraw(st);
  4072. })), pt;
  4073. }, at.prototype.addAxis = function(J, tt, st, ht) {
  4074. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: st, animation: ht });
  4075. }, at.prototype.addColorAxis = function(J, tt, st) {
  4076. return this.createAxis("colorAxis", { axis: J, redraw: tt, animation: st });
  4077. }, at.prototype.createAxis = function(J, tt) {
  4078. return J = new j(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  4079. }, at.prototype.showLoading = function(J) {
  4080. var tt = this, st = tt.options, ht = st.loading, pt = function() {
  4081. yt && B(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  4082. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  4083. yt || (tt.loadingDiv = yt = D("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = D(
  4084. "span",
  4085. { className: "highcharts-loading-inner" },
  4086. null,
  4087. yt
  4088. ), n(tt, "redraw", pt)), yt.className = "highcharts-loading", O.setElementHTML(vt, et(J, st.lang.loading, "")), tt.styledMode || (B(yt, L(ht.style, { zIndex: 10 })), B(vt, ht.labelStyle), tt.loadingShown || (B(yt, { opacity: 0, display: "" }), N(yt, { opacity: ht.style.opacity || 0.5 }, { duration: ht.showDuration || 0 }))), tt.loadingShown = !0, pt();
  4089. }, at.prototype.hideLoading = function() {
  4090. var J = this.options, tt = this.loadingDiv;
  4091. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || N(tt, { opacity: 0 }, {
  4092. duration: J.loading.hideDuration || 100,
  4093. complete: function() {
  4094. B(tt, { display: "none" });
  4095. }
  4096. })), this.loadingShown = !1;
  4097. }, at.prototype.update = function(J, tt, st, ht) {
  4098. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Ct = [], Pt, kt;
  4099. V(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = _(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  4100. var St = J.chart;
  4101. if (St) {
  4102. if (q(!0, pt.options.chart, St), "className" in St && pt.setClassName(St.className), "reflow" in St && pt.setReflow(St.reflow), "inverted" in St || "polar" in St || "type" in St) {
  4103. pt.propFromSeries();
  4104. var Dt = !0;
  4105. }
  4106. "alignTicks" in St && (Dt = !0), "events" in St && x(this, St), it(St, function(Lt, Nt) {
  4107. pt.propsRequireUpdateSeries.indexOf("chart." + Nt) !== -1 && (Pt = !0), pt.propsRequireDirtyBox.indexOf(Nt) !== -1 && (pt.isDirtyBox = !0), pt.propsRequireReflow.indexOf(Nt) !== -1 && (vt ? pt.isDirtyBox = !0 : kt = !0);
  4108. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  4109. }
  4110. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new u(J.time)), q(!0, pt.options.time, J.time)), it(J, function(Lt, Nt) {
  4111. pt[Nt] && typeof pt[Nt].update == "function" ? pt[Nt].update(Lt, !1) : typeof pt[yt[Nt]] == "function" ? pt[yt[Nt]](Lt) : Nt !== "colors" && pt.collectionsWithUpdate.indexOf(Nt) === -1 && q(!0, pt.options[Nt], J[Nt]), Nt !== "chart" && pt.propsRequireUpdateSeries.indexOf(Nt) !== -1 && (Pt = !0);
  4112. }), this.collectionsWithUpdate.forEach(function(Lt) {
  4113. if (J[Lt]) {
  4114. var Nt = [];
  4115. pt[Lt].forEach(function(Et, Kt) {
  4116. Et.options.isInternal || Nt.push(et(Et.options.index, Kt));
  4117. }), gt(J[Lt]).forEach(function(Et, Kt) {
  4118. var Gt = T(Et.id), Wt;
  4119. Gt && (Wt = pt.get(Et.id)), !Wt && pt[Lt] && (Wt = pt[Lt][Nt ? Nt[Kt] : Kt]) && Gt && T(Wt.options.id) && (Wt = void 0), Wt && Wt.coll === Lt && (Wt.update(Et, !1), st && (Wt.touched = !0)), !Wt && st && pt.collectionsWithInit[Lt] && (pt.collectionsWithInit[Lt][0].apply(pt, [Et].concat(pt.collectionsWithInit[Lt][1] || []).concat([!1])).touched = !0);
  4120. }), st && pt[Lt].forEach(function(Et) {
  4121. Et.touched || Et.options.isInternal ? delete Et.touched : Ct.push(Et);
  4122. });
  4123. }
  4124. }), Ct.forEach(function(Lt) {
  4125. Lt.chart && Lt.remove && Lt.remove(!1);
  4126. }), Dt && pt.axes.forEach(function(Lt) {
  4127. Lt.update({}, !1);
  4128. }), Pt && pt.getSeriesOrderByLinks().forEach(function(Lt) {
  4129. Lt.chart && Lt.update({}, !1);
  4130. }, this), Dt = St && St.width, St = St && ($(St.height) ? rt(St.height, Dt || pt.chartWidth) : St.height), kt || G(Dt) && Dt !== pt.chartWidth || G(St) && St !== pt.chartHeight ? pt.setSize(Dt, St, ht) : et(tt, !0) && pt.redraw(ht), V(pt, "afterUpdate", { options: J, redraw: tt, animation: ht });
  4131. }, at.prototype.setSubtitle = function(J, tt) {
  4132. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  4133. }, at.prototype.setCaption = function(J, tt) {
  4134. this.applyDescription("caption", J), this.layOutTitles(tt);
  4135. }, at.prototype.showResetZoom = function() {
  4136. function J() {
  4137. tt.zoomOut();
  4138. }
  4139. var tt = this, st = s.lang, ht = tt.options.chart.resetZoomButton, pt = ht.theme, yt = pt.states, vt = ht.relativeTo === "chart" || ht.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
  4140. V(this, "beforeShowResetZoom", null, function() {
  4141. tt.resetZoomButton = tt.renderer.button(st.resetZoom, null, null, J, pt, yt && yt.hover).attr({ align: ht.position.align, title: st.resetZoomTitle }).addClass("highcharts-reset-zoom").add().align(ht.position, !1, vt);
  4142. }), V(this, "afterShowResetZoom");
  4143. }, at.prototype.zoomOut = function() {
  4144. V(this, "selection", { resetSelection: !0 }, this.zoom);
  4145. }, at.prototype.zoom = function(J) {
  4146. var tt = this, st = tt.pointer, ht = tt.inverted ? st.mouseDownX : st.mouseDownY, pt = !1, yt;
  4147. !J || J.resetSelection ? (tt.axes.forEach(function(Ct) {
  4148. yt = Ct.zoom();
  4149. }), st.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Ct) {
  4150. var Pt = Ct.axis, kt = tt.inverted ? Pt.left : Pt.top, St = tt.inverted ? kt + Pt.width : kt + Pt.height, Dt = Pt.isXAxis, Lt = !1;
  4151. (!Dt && ht >= kt && ht <= St || Dt || !T(ht)) && (Lt = !0), st[Dt ? "zoomX" : "zoomY"] && Lt && (yt = Pt.zoom(Ct.min, Ct.max), Pt.displayBtn && (pt = !0));
  4152. });
  4153. var vt = tt.resetZoomButton;
  4154. pt && !vt ? tt.showResetZoom() : !pt && z(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  4155. tt.options.chart.animation,
  4156. J && J.animation,
  4157. 100 > tt.pointCount
  4158. ));
  4159. }, at.prototype.pan = function(J, tt) {
  4160. var st = this, ht = st.hoverPoints;
  4161. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  4162. var pt = st.options.chart, yt = st.options.mapNavigation && st.options.mapNavigation.enabled;
  4163. pt && pt.panning && (pt.panning = tt);
  4164. var vt = tt.type, Ct;
  4165. V(this, "pan", { originalEvent: J }, function() {
  4166. ht && ht.forEach(function(St) {
  4167. St.setState();
  4168. });
  4169. var Pt = st.xAxis;
  4170. vt === "xy" ? Pt = Pt.concat(st.yAxis) : vt === "y" && (Pt = st.yAxis);
  4171. var kt = {};
  4172. Pt.forEach(function(St) {
  4173. if (St.options.panningEnabled && !St.options.isInternal) {
  4174. var Dt = St.horiz, Lt = J[Dt ? "chartX" : "chartY"];
  4175. Dt = Dt ? "mouseDownX" : "mouseDownY";
  4176. var Nt = st[Dt], Et = St.minPointOffset || 0, Kt = St.reversed && !st.inverted || !St.reversed && st.inverted ? -1 : 1, Gt = St.getExtremes(), Wt = St.toValue(Nt - Lt, !0) + Et * Kt, Jt = St.toValue(Nt + St.len - Lt, !0) - (Et * Kt || St.isXAxis && St.pointRangePadding || 0), be = Jt < Wt;
  4177. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  4178. var zt = St.panningState;
  4179. !Kt || St.isXAxis || zt && !zt.isDirty || St.series.forEach(function(Vt) {
  4180. var Me = Vt.getProcessedData(!0);
  4181. Me = Vt.getExtremes(Me.yData, !0), zt || (zt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), G(Me.dataMin) && G(Me.dataMax) && (zt.startMin = Math.min(et(Vt.options.threshold, 1 / 0), Me.dataMin, zt.startMin), zt.startMax = Math.max(et(Vt.options.threshold, -1 / 0), Me.dataMax, zt.startMax));
  4182. }), Kt = Math.min(et(zt && zt.startMin, Gt.dataMin), Et ? Gt.min : St.toValue(St.toPixels(Gt.min) - St.minPixelPadding)), Jt = Math.max(et(zt && zt.startMax, Gt.dataMax), Et ? Gt.max : St.toValue(St.toPixels(Gt.max) + St.minPixelPadding)), St.panningState = zt, St.isOrdinal || (Et = Kt - Nt, 0 < Et && (Wt += Et, Nt = Kt), Et = Wt - Jt, 0 < Et && (Wt = Jt, Nt -= Et), St.series.length && Nt !== Gt.min && Wt !== Gt.max && Nt >= Kt && Wt <= Jt && (St.setExtremes(Nt, Wt, !1, !1, { trigger: "pan" }), st.resetZoomButton || yt || Nt === Kt || Wt === Jt || !vt.match("y") || (st.showResetZoom(), St.displayBtn = !1), Ct = !0), kt[Dt] = Lt);
  4183. }
  4184. }), it(kt, function(St, Dt) {
  4185. st[Dt] = St;
  4186. }), Ct && st.redraw(!1), B(st.container, { cursor: "move" });
  4187. });
  4188. }, at;
  4189. }(), L(y.prototype, {
  4190. callbacks: [],
  4191. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  4192. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  4193. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  4194. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  4195. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  4196. }), y;
  4197. }), E(h, "Core/Legend/LegendSymbol.js", [h["Core/Utilities.js"]], function(y) {
  4198. var j = y.merge, I = y.pick, Z;
  4199. return function(F) {
  4200. F.drawLineMarker = function(U) {
  4201. var H = this.options, W = U.symbolWidth, R = U.symbolHeight, S = R / 2, v = this.chart.renderer, d = this.legendGroup;
  4202. U = U.baseline - Math.round(0.3 * U.fontMetrics.b);
  4203. var u = {}, P = H.marker;
  4204. this.chart.styledMode || (u = { "stroke-width": H.lineWidth || 0 }, H.dashStyle && (u.dashstyle = H.dashStyle)), this.legendLine = v.path([["M", 0, U], ["L", W, U]]).addClass("highcharts-graph").attr(u).add(d), P && P.enabled !== !1 && W && (H = Math.min(I(P.radius, S), S), this.symbol.indexOf("url") === 0 && (P = j(P, { width: R, height: R }), H = 0), this.legendSymbol = W = v.symbol(this.symbol, W / 2 - H, U - H, 2 * H, 2 * H, P).addClass("highcharts-point").add(d), W.isMarker = !0);
  4205. }, F.drawRectangle = function(U, H) {
  4206. var W = U.symbolHeight, R = U.options.squareSymbol;
  4207. H.legendSymbol = this.chart.renderer.rect(R ? (U.symbolWidth - W) / 2 : 0, U.baseline - W + 1, R ? W : U.symbolWidth, W, I(U.options.symbolRadius, W / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(H.legendGroup);
  4208. };
  4209. }(Z || (Z = {})), Z;
  4210. }), E(h, "Core/Series/SeriesDefaults.js", [], function() {
  4211. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  4212. normal: { animation: !0 },
  4213. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  4214. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  4215. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  4216. var y = this.series.chart.numberFormatter;
  4217. return typeof this.y != "number" ? "" : y(this.y, -1);
  4218. }, padding: 5, style: { fontSize: "11px", fontWeight: "bold", color: "contrast", textOutline: "1px contrast" }, verticalAlign: "bottom", x: 0, y: 0 }, cropThreshold: 300, opacity: 1, pointRange: 0, softThreshold: !0, states: {
  4219. normal: { animation: !0 },
  4220. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  4221. select: { animation: { duration: 0 } },
  4222. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  4223. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  4224. }), E(h, "Core/Series/Series.js", [
  4225. h["Core/Animation/AnimationUtilities.js"],
  4226. h["Core/DefaultOptions.js"],
  4227. h["Core/Foundation.js"],
  4228. h["Core/Globals.js"],
  4229. h["Core/Legend/LegendSymbol.js"],
  4230. h["Core/Series/Point.js"],
  4231. h["Core/Series/SeriesDefaults.js"],
  4232. h["Core/Series/SeriesRegistry.js"],
  4233. h["Core/Renderer/SVG/SVGElement.js"],
  4234. h["Core/Utilities.js"]
  4235. ], function(y, j, I, Z, F, U, H, W, R, S) {
  4236. var v = y.animObject, d = y.setAnimation, u = j.defaultOptions, P = I.registerEventOptions, O = Z.hasTouch, N = Z.svg, C = Z.win, b = W.seriesTypes, w = S.addEvent, x = S.arrayMax, a = S.arrayMin, c = S.clamp, p = S.cleanRecursively, i = S.correctFloat, l = S.defined, s = S.erase, t = S.error, o = S.extend, n = S.find, A = S.fireEvent, _ = S.getNestedProperty, D = S.isArray, B = S.isNumber, T = S.isString, X = S.merge, g = S.objectEach, m = S.pick, L = S.removeEvent, Y = S.splat, V = S.syncTimeout;
  4237. return y = function() {
  4238. function Q() {
  4239. this.zones = this.yAxis = this.xAxis = this.userOptions = this.tooltipOptions = this.processedYData = this.processedXData = this.points = this.options = this.linkedSeries = this.index = this.eventsToUnbind = this.eventOptions = this.data = this.chart = this._i = void 0;
  4240. }
  4241. return Q.prototype.init = function(k, G) {
  4242. A(this, "init", { options: G });
  4243. var z = this, $ = k.series;
  4244. this.eventsToUnbind = [], z.chart = k, z.options = z.setOptions(G), G = z.options, z.linkedSeries = [], z.bindAxes(), o(z, { name: G.name, state: "", visible: G.visible !== !1, selected: G.selected === !0 }), P(this, G);
  4245. var q = G.events;
  4246. (q && q.click || G.point && G.point.events && G.point.events.click || G.allowPointSelect) && (k.runTrackerClick = !0), z.getColor(), z.getSymbol(), z.parallelArrays.forEach(function(et) {
  4247. z[et + "Data"] || (z[et + "Data"] = []);
  4248. }), z.isCartesian && (k.hasCartesianSeries = !0);
  4249. var it;
  4250. $.length && (it = $[$.length - 1]), z._i = m(it && it._i, -1) + 1, z.opacity = z.options.opacity, k.orderSeries(this.insert($)), G.dataSorting && G.dataSorting.enabled ? z.setDataSortingOptions() : z.points || z.data || z.setData(G.data, !1), A(this, "afterInit");
  4251. }, Q.prototype.is = function(k) {
  4252. return b[k] && this instanceof b[k];
  4253. }, Q.prototype.insert = function(k) {
  4254. var G = this.options.index, z;
  4255. if (B(G)) {
  4256. for (z = k.length; z--; )
  4257. if (G >= m(k[z].options.index, k[z]._i)) {
  4258. k.splice(z + 1, 0, this);
  4259. break;
  4260. }
  4261. z === -1 && k.unshift(this), z += 1;
  4262. } else
  4263. k.push(this);
  4264. return m(z, k.length - 1);
  4265. }, Q.prototype.bindAxes = function() {
  4266. var k = this, G = k.options, z = k.chart, $;
  4267. A(this, "bindAxes", null, function() {
  4268. (k.axisTypes || []).forEach(function(q) {
  4269. var it = 0;
  4270. z[q].forEach(function(et) {
  4271. $ = et.options, (G[q] === it && !$.isInternal || typeof G[q] < "u" && G[q] === $.id || typeof G[q] > "u" && $.index === 0) && (k.insert(et.series), k[q] = et, et.isDirty = !0), $.isInternal || it++;
  4272. }), k[q] || k.optionalAxis === q || t(18, !0, z);
  4273. });
  4274. }), A(this, "afterBindAxes");
  4275. }, Q.prototype.updateParallelArrays = function(k, G) {
  4276. var z = k.series, $ = arguments, q = B(G) ? function(it) {
  4277. var et = it === "y" && z.toYData ? z.toYData(k) : k[it];
  4278. z[it + "Data"][G] = et;
  4279. } : function(it) {
  4280. Array.prototype[G].apply(z[it + "Data"], Array.prototype.slice.call($, 2));
  4281. };
  4282. z.parallelArrays.forEach(q);
  4283. }, Q.prototype.hasData = function() {
  4284. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  4285. }, Q.prototype.autoIncrement = function(k) {
  4286. var G = this.options, z = G.pointIntervalUnit, $ = G.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  4287. return it = m(it, G.pointStart, 0), this.pointInterval = et = m(this.pointInterval, G.pointInterval, 1), $ && B(k) && (et *= k), z && (G = new q.Date(it), z === "day" ? q.set("Date", G, q.get("Date", G) + et) : z === "month" ? q.set("Month", G, q.get("Month", G) + et) : z === "year" && q.set("FullYear", G, q.get("FullYear", G) + et), et = G.getTime() - it), $ && B(k) ? it + et : (this.xIncrement = it + et, it);
  4288. }, Q.prototype.setDataSortingOptions = function() {
  4289. var k = this.options;
  4290. o(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), l(k.pointRange) || (k.pointRange = 1);
  4291. }, Q.prototype.setOptions = function(k) {
  4292. var G = this.chart, z = G.options, $ = z.plotOptions, q = G.userOptions || {};
  4293. k = X(k), G = G.styledMode;
  4294. var it = { plotOptions: $, userOptions: k };
  4295. A(this, "setOptions", it);
  4296. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  4297. return this.userOptions = it.userOptions, q = X(et, $.series, q.plotOptions && q.plotOptions[this.type], k), this.tooltipOptions = X(u.tooltip, u.plotOptions.series && u.plotOptions.series.tooltip, u.plotOptions[this.type].tooltip, z.tooltip.userOptions, $.series && $.series.tooltip, $[this.type].tooltip, k.tooltip), this.stickyTracking = m(k.stickyTracking, nt[this.type] && nt[this.type].stickyTracking, nt.series && nt.series.stickyTracking, this.tooltipOptions.shared && !this.noSharedTooltip ? !0 : q.stickyTracking), et.marker === null && delete q.marker, this.zoneAxis = q.zoneAxis, $ = this.zones = (q.zones || []).slice(), !q.negativeColor && !q.negativeFillColor || q.zones || (z = { value: q[this.zoneAxis + "Threshold"] || q.threshold || 0, className: "highcharts-negative" }, G || (z.color = q.negativeColor, z.fillColor = q.negativeFillColor), $.push(z)), $.length && l($[$.length - 1].value) && $.push(G ? {} : { color: this.color, fillColor: this.fillColor }), A(this, "afterSetOptions", { options: q }), q;
  4298. }, Q.prototype.getName = function() {
  4299. return m(this.options.name, "Series " + (this.index + 1));
  4300. }, Q.prototype.getCyclic = function(k, G, z) {
  4301. var $ = this.chart, q = this.userOptions, it = k + "Index", et = k + "Counter", nt = z ? z.length : m($.options.chart[k + "Count"], $[k + "Count"]);
  4302. if (!G) {
  4303. var rt = m(q[it], q["_" + it]);
  4304. l(rt) || ($.series.length || ($[et] = 0), q["_" + it] = rt = $[et] % nt, $[et] += 1), z && (G = z[rt]);
  4305. }
  4306. typeof rt < "u" && (this[it] = rt), this[k] = G;
  4307. }, Q.prototype.getColor = function() {
  4308. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || u.plotOptions[this.type].color, this.chart.options.colors);
  4309. }, Q.prototype.getPointsCollection = function() {
  4310. return (this.hasGroupedData ? this.points : this.data) || [];
  4311. }, Q.prototype.getSymbol = function() {
  4312. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  4313. }, Q.prototype.findPointIndex = function(k, G) {
  4314. var z = k.id, $ = k.x, q = this.points, it = this.options.dataSorting, et, nt;
  4315. if (z)
  4316. it = this.chart.get(z), it instanceof U && (et = it);
  4317. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  4318. return !ct.touched && ct.index === k.index;
  4319. }, it && it.matchByName ? et = function(ct) {
  4320. return !ct.touched && ct.name === k.name;
  4321. } : this.options.relativeXValue && (et = function(ct) {
  4322. return !ct.touched && ct.options.x === k.x;
  4323. }), et = n(q, et), !et))
  4324. return;
  4325. if (et) {
  4326. var rt = et && et.index;
  4327. typeof rt < "u" && (nt = !0);
  4328. }
  4329. return typeof rt > "u" && B($) && (rt = this.xData.indexOf($, G)), rt !== -1 && typeof rt < "u" && this.cropped && (rt = rt >= this.cropStart ? rt - this.cropStart : rt), !nt && B(rt) && q[rt] && q[rt].touched && (rt = void 0), rt;
  4330. }, Q.prototype.updateData = function(k, G) {
  4331. var z = this.options, $ = z.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = k.length === q.length, rt, ct, gt, dt = !0;
  4332. if (this.xIncrement = null, k.forEach(function(lt, at) {
  4333. var J = l(lt) && this.pointClass.prototype.optionsToObject.call({ series: this }, lt) || {}, tt = J.x;
  4334. J.id || B(tt) ? (J = this.findPointIndex(J, gt), J === -1 || typeof J > "u" ? it.push(lt) : q[J] && lt !== z.data[J] ? (q[J].update(lt, !1, null, !1), q[J].touched = !0, et && (gt = J + 1)) : q[J] && (q[J].touched = !0), (!nt || at !== J || $ && $.enabled || this.hasDerivedData) && (rt = !0)) : it.push(lt);
  4335. }, this), rt)
  4336. for (k = q.length; k--; )
  4337. (ct = q[k]) && !ct.touched && ct.remove && ct.remove(!1, G);
  4338. else
  4339. !nt || $ && $.enabled ? dt = !1 : (k.forEach(function(lt, at) {
  4340. lt !== q[at].y && q[at].update && q[at].update(
  4341. lt,
  4342. !1,
  4343. null,
  4344. !1
  4345. );
  4346. }), it.length = 0);
  4347. return q.forEach(function(lt) {
  4348. lt && (lt.touched = !1);
  4349. }), dt ? (it.forEach(function(lt) {
  4350. this.addPoint(lt, !1, null, null, !1);
  4351. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = x(this.xData), this.autoIncrement()), !0) : !1;
  4352. }, Q.prototype.setData = function(k, G, z, $) {
  4353. var q = this, it = q.points, et = it && it.length || 0, nt = q.options, rt = q.chart, ct = nt.dataSorting, gt = q.xAxis, dt = nt.turboThreshold, lt = this.xData, at = this.yData, J = q.pointArrayMap;
  4354. J = J && J.length;
  4355. var tt = nt.keys, st, ht = 0, pt = 1, yt = null;
  4356. k = k || [];
  4357. var vt = k.length;
  4358. if (G = m(G, !0), ct && ct.enabled && (k = this.sortData(k)), $ !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (st = this.updateData(k, z)), !st) {
  4359. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Ct) {
  4360. q[Ct + "Data"].length = 0;
  4361. }), dt && vt > dt)
  4362. if (yt = q.getFirstValidPoint(k), B(yt))
  4363. for (z = 0; z < vt; z++)
  4364. lt[z] = this.autoIncrement(), at[z] = k[z];
  4365. else if (D(yt))
  4366. if (J)
  4367. if (yt.length === J)
  4368. for (z = 0; z < vt; z++)
  4369. lt[z] = this.autoIncrement(), at[z] = k[z];
  4370. else
  4371. for (z = 0; z < vt; z++)
  4372. $ = k[z], lt[z] = $[0], at[z] = $.slice(
  4373. 1,
  4374. J + 1
  4375. );
  4376. else if (tt && (ht = tt.indexOf("x"), pt = tt.indexOf("y"), ht = 0 <= ht ? ht : 0, pt = 0 <= pt ? pt : 1), yt.length === 1 && (pt = 0), ht === pt)
  4377. for (z = 0; z < vt; z++)
  4378. lt[z] = this.autoIncrement(), at[z] = k[z][pt];
  4379. else
  4380. for (z = 0; z < vt; z++)
  4381. $ = k[z], lt[z] = $[ht], at[z] = $[pt];
  4382. else
  4383. t(12, !1, rt);
  4384. else
  4385. for (z = 0; z < vt; z++)
  4386. typeof k[z] < "u" && ($ = { series: q }, q.pointClass.prototype.applyOptions.apply($, [k[z]]), q.updateParallelArrays($, z));
  4387. for (at && T(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = k, z = et; z--; )
  4388. it[z] && it[z].destroy && it[z].destroy();
  4389. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, z = !1;
  4390. }
  4391. nt.legendType === "point" && (this.processData(), this.generatePoints()), G && rt.redraw(z);
  4392. }, Q.prototype.sortData = function(k) {
  4393. var G = this, z = G.options.dataSorting.sortKey || "y", $ = function(q, it) {
  4394. return l(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  4395. };
  4396. return k.forEach(function(q, it) {
  4397. k[it] = $(G, q), k[it].index = it;
  4398. }, this), k.concat().sort(function(q, it) {
  4399. return q = _(z, q), it = _(z, it), it < q ? -1 : it > q ? 1 : 0;
  4400. }).forEach(function(q, it) {
  4401. q.x = it;
  4402. }, this), G.linkedSeries && G.linkedSeries.forEach(function(q) {
  4403. var it = q.options, et = it.data;
  4404. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  4405. et[rt] = $(q, nt), k[rt] && (et[rt].x = k[rt].x, et[rt].index = rt);
  4406. }), q.setData(et, !1));
  4407. }), k;
  4408. }, Q.prototype.getProcessedData = function(k) {
  4409. var G = this.xAxis, z = this.options, $ = z.cropThreshold, q = k || this.getExtremesFromAll || z.getExtremesFromAll, it = this.isCartesian;
  4410. k = G && G.val2lin, z = !(!G || !G.logarithmic);
  4411. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  4412. if (G) {
  4413. gt = G.getExtremes();
  4414. var lt = gt.min, at = gt.max;
  4415. gt = G.categories && !G.names.length;
  4416. }
  4417. if (it && this.sorted && !q && (!$ || dt > $ || this.forceCrop)) {
  4418. if (nt[dt - 1] < lt || nt[0] > at)
  4419. nt = [], rt = [];
  4420. else if (this.yData && (nt[0] < lt || nt[dt - 1] > at)) {
  4421. var J = this.cropData(this.xData, this.yData, lt, at);
  4422. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  4423. }
  4424. }
  4425. for ($ = nt.length || 1; --$; )
  4426. if (G = z ? k(nt[$]) - k(nt[$ - 1]) : nt[$] - nt[$ - 1], 0 < G && (typeof tt > "u" || G < tt))
  4427. var tt = G;
  4428. else
  4429. 0 > G && ct && !gt && (t(15, !1, this.chart), ct = !1);
  4430. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  4431. }, Q.prototype.processData = function(k) {
  4432. var G = this.xAxis;
  4433. if (this.isCartesian && !this.isDirty && !G.isDirty && !this.yAxis.isDirty && !k)
  4434. return !1;
  4435. k = this.getProcessedData(), this.cropped = k.cropped, this.cropStart = k.cropStart, this.processedXData = k.xData, this.processedYData = k.yData, this.closestPointRange = this.basePointRange = k.closestPointRange, A(this, "afterProcessData");
  4436. }, Q.prototype.cropData = function(k, G, z, $, q) {
  4437. var it = k.length, et, nt = 0, rt = it;
  4438. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  4439. if (k[et] >= z) {
  4440. nt = Math.max(0, et - q);
  4441. break;
  4442. }
  4443. for (z = et; z < it; z++)
  4444. if (k[z] > $) {
  4445. rt = z + q;
  4446. break;
  4447. }
  4448. return { xData: k.slice(nt, rt), yData: G.slice(
  4449. nt,
  4450. rt
  4451. ), start: nt, end: rt };
  4452. }, Q.prototype.generatePoints = function() {
  4453. var k = this.options, G = k.data, z = this.processedXData, $ = this.processedYData, q = this.pointClass, it = z.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = k.keys, ct = [];
  4454. k = k.dataGrouping && k.dataGrouping.groupAll ? et : 0;
  4455. var gt, dt, lt = this.data;
  4456. if (!lt && !nt) {
  4457. var at = [];
  4458. at.length = G.length, lt = this.data = at;
  4459. }
  4460. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  4461. if (at = et + dt, nt) {
  4462. var J = new q().init(this, [z[dt]].concat(Y($[dt])));
  4463. J.dataGroup = this.groupMap[k + dt], J.dataGroup.options && (J.options = J.dataGroup.options, o(J, J.dataGroup.options), delete J.dataLabels);
  4464. } else
  4465. (J = lt[at]) || typeof G[at] > "u" || (lt[at] = J = new q().init(this, G[at], z[dt]));
  4466. J && (J.index = nt ? k + dt : at, ct[dt] = J);
  4467. }
  4468. if (this.options.keys = rt, lt && (it !== (gt = lt.length) || nt))
  4469. for (dt = 0; dt < gt; dt++)
  4470. dt !== et || nt || (dt += it), lt[dt] && (lt[dt].destroyElements(), lt[dt].plotX = void 0);
  4471. this.data = lt, this.points = ct, A(this, "afterGeneratePoints");
  4472. }, Q.prototype.getXExtremes = function(k) {
  4473. return { min: a(k), max: x(k) };
  4474. }, Q.prototype.getExtremes = function(k, G) {
  4475. var z = this.xAxis, $ = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  4476. $ = $ ? $.positiveValuesOnly : !1;
  4477. var nt, rt = 0, ct = 0, gt = 0;
  4478. k = k || this.stackedYData || this.processedYData || [];
  4479. var dt = k.length;
  4480. if (z) {
  4481. var lt = z.getExtremes();
  4482. rt = lt.min, ct = lt.max;
  4483. }
  4484. for (nt = 0; nt < dt; nt++) {
  4485. var at = q[nt];
  4486. lt = k[nt];
  4487. var J = (B(lt) || D(lt)) && (lt.length || 0 < lt || !$);
  4488. if (at = G || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !z || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  4489. if (J = lt.length)
  4490. for (; J--; )
  4491. B(lt[J]) && (it[gt++] = lt[J]);
  4492. else
  4493. it[gt++] = lt;
  4494. }
  4495. return k = { activeYData: it, dataMin: a(it), dataMax: x(it) }, A(this, "afterGetExtremes", { dataExtremes: k }), k;
  4496. }, Q.prototype.applyExtremes = function() {
  4497. var k = this.getExtremes();
  4498. return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
  4499. }, Q.prototype.getFirstValidPoint = function(k) {
  4500. for (var G = k.length, z = 0, $ = null; $ === null && z < G; )
  4501. $ = k[z], z++;
  4502. return $;
  4503. }, Q.prototype.translate = function() {
  4504. this.processedXData || this.processData(), this.generatePoints();
  4505. var k = this.options, G = k.stacking, z = this.xAxis, $ = z.categories, q = this.enabledDataSorting, it = this.yAxis, et = this.points, nt = et.length, rt = this.pointPlacementToXValue(), ct = !!rt, gt = k.threshold, dt = k.startFromThreshold ? gt : 0, lt = this.zoneAxis || "y", at, J, tt = Number.MAX_VALUE;
  4506. for (at = 0; at < nt; at++) {
  4507. var st = et[at], ht = st.x, pt = void 0, yt = void 0, vt = st.y, Ct = st.low, Pt = G && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  4508. if ((it.positiveValuesOnly && !it.validatePositiveValue(vt) || z.positiveValuesOnly && !z.validatePositiveValue(ht)) && (st.isNull = !0), st.plotX = J = i(c(z.translate(ht, 0, 0, 0, 1, rt, this.type === "flags"), -1e5, 1e5)), G && this.visible && Pt && Pt[ht]) {
  4509. var kt = this.getStackIndicator(
  4510. kt,
  4511. ht,
  4512. this.index
  4513. );
  4514. st.isNull || (pt = Pt[ht], yt = pt.points[kt.key]);
  4515. }
  4516. if (D(yt) && (Ct = yt[0], vt = yt[1], Ct === dt && kt.key === Pt[ht].base && (Ct = m(B(gt) && gt, it.min)), it.positiveValuesOnly && 0 >= Ct && (Ct = null), st.total = st.stackTotal = pt.total, st.percentage = pt.total && st.y / pt.total * 100, st.stackY = vt, this.irregularWidths || pt.setOffset(this.pointXOffset || 0, this.barW || 0)), st.yBottom = l(Ct) ? c(it.translate(Ct, 0, 1, 0, 1), -1e5, 1e5) : null, this.dataModify && (vt = this.dataModify.modifyValue(vt, at)), st.plotY = void 0, B(vt) && (pt = it.translate(vt, !1, !0, !1, !0), typeof pt < "u" && (st.plotY = c(
  4517. pt,
  4518. -1e5,
  4519. 1e5
  4520. ))), st.isInside = this.isPointInside(st), st.clientX = ct ? i(z.translate(ht, 0, 0, 0, 1, rt)) : J, st.negative = st[lt] < (k[lt + "Threshold"] || gt || 0), st.category = $ && typeof $[st.x] < "u" ? $[st.x] : st.x, !st.isNull && st.visible !== !1) {
  4521. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  4522. var St = J;
  4523. }
  4524. st.zone = this.zones.length ? st.getZone() : void 0, !st.graphic && this.group && q && (st.isNew = !0);
  4525. }
  4526. this.closestPointRangePx = tt, A(this, "afterTranslate");
  4527. }, Q.prototype.getValidPoints = function(k, G, z) {
  4528. var $ = this.chart;
  4529. return (k || this.points || []).filter(function(q) {
  4530. return G && !$.isInsidePlot(q.plotX, q.plotY, { inverted: $.inverted }) ? !1 : q.visible !== !1 && (z || !q.isNull);
  4531. });
  4532. }, Q.prototype.getClipBox = function() {
  4533. var k = this.chart, G = this.xAxis, z = this.yAxis, $ = X(k.clipBox);
  4534. return G && G.len !== k.plotSizeX && ($.width = G.len), z && z.len !== k.plotSizeY && ($.height = z.len), $;
  4535. }, Q.prototype.getSharedClipKey = function() {
  4536. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  4537. }, Q.prototype.setClip = function() {
  4538. var k = this.chart, G = this.group, z = this.markerGroup, $ = k.sharedClips;
  4539. k = k.renderer;
  4540. var q = this.getClipBox(), it = this.getSharedClipKey(), et = $[it];
  4541. et ? et.animate(q) : $[it] = et = k.clipRect(q), G && G.clip(this.options.clip === !1 ? void 0 : et), z && z.clip();
  4542. }, Q.prototype.animate = function(k) {
  4543. var G = this.chart, z = this.group, $ = this.markerGroup, q = G.inverted, it = v(this.options.animation), et = [this.getSharedClipKey(), it.duration, it.easing, it.defer].join(), nt = G.sharedClips[et], rt = G.sharedClips[et + "m"];
  4544. if (k && z)
  4545. it = this.getClipBox(), nt ? nt.attr("height", it.height) : (it.width = 0, q && (it.x = G.plotHeight), nt = G.renderer.clipRect(it), G.sharedClips[et] = nt, rt = G.renderer.clipRect({ x: q ? (G.plotSizeX || 0) + 99 : -99, y: q ? -G.plotLeft : -G.plotTop, width: 99, height: q ? G.chartWidth : G.chartHeight }), G.sharedClips[et + "m"] = rt), z.clip(nt), $ && $.clip(rt);
  4546. else if (nt && !nt.hasClass("highcharts-animating")) {
  4547. G = this.getClipBox();
  4548. var ct = it.step;
  4549. $ && $.element.childNodes.length && (it.step = function(gt, dt) {
  4550. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  4551. }), nt.addClass("highcharts-animating").animate(G, it);
  4552. }
  4553. }, Q.prototype.afterAnimate = function() {
  4554. var k = this;
  4555. this.setClip(), g(
  4556. this.chart.sharedClips,
  4557. function(G, z, $) {
  4558. G && !k.chart.container.querySelector('[clip-path="url(#' + G.id + ')"]') && (G.destroy(), delete $[z]);
  4559. }
  4560. ), this.finishedAnimating = !0, A(this, "afterAnimate");
  4561. }, Q.prototype.drawPoints = function() {
  4562. var k = this.points, G = this.chart, z = this.options.marker, $ = this[this.specialGroup] || this.markerGroup, q = this.xAxis, it = m(z.enabled, !q || q.isRadial ? !0 : null, this.closestPointRangePx >= z.enabledThreshold * z.radius), et, nt;
  4563. if (z.enabled !== !1 || this._hasPointMarkers)
  4564. for (et = 0; et < k.length; et++) {
  4565. var rt = k[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  4566. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  4567. var lt = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  4568. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  4569. var J = rt.isInside !== !1;
  4570. nt ? nt[J ? "show" : "hide"](J).animate(at) : J && (0 < (at.width || 0) || rt.hasImage) && (rt.graphic = nt = G.renderer.symbol(lt, at.x, at.y, at.width, at.height, dt ? gt : z).add($), this.enabledDataSorting && G.hasRendered && (nt.attr({ x: rt.startXPos }), ct = "animate")), nt && ct === "animate" && nt[J ? "show" : "hide"](J).animate(at), nt && !G.styledMode && nt[ct](this.pointAttribs(rt, rt.selected && "select")), nt && nt.addClass(rt.getClassName(), !0);
  4571. } else
  4572. nt && (rt.graphic = nt.destroy());
  4573. }
  4574. }, Q.prototype.markerAttribs = function(k, G) {
  4575. var z = this.options, $ = z.marker, q = k.marker || {}, it = q.symbol || $.symbol, et = m(q.radius, $.radius);
  4576. return G && ($ = $.states[G], G = q.states && q.states[G], et = m(G && G.radius, $ && $.radius, et + ($ && $.radiusPlus || 0))), k.hasImage = it && it.indexOf("url") === 0, k.hasImage && (et = 0), k = { x: z.crisp ? Math.floor(k.plotX - et) : k.plotX - et, y: k.plotY - et }, et && (k.width = k.height = 2 * et), k;
  4577. }, Q.prototype.pointAttribs = function(k, G) {
  4578. var z = this.options.marker, $ = k && k.options, q = $ && $.marker || {}, it = $ && $.color, et = k && k.color, nt = k && k.zone && k.zone.color, rt = this.color;
  4579. return k = m(q.lineWidth, z.lineWidth), $ = 1, rt = it || nt || et || rt, it = q.fillColor || z.fillColor || rt, et = q.lineColor || z.lineColor || rt, G = G || "normal", z = z.states[G] || {}, G = q.states && q.states[G] || {}, k = m(G.lineWidth, z.lineWidth, k + m(G.lineWidthPlus, z.lineWidthPlus, 0)), it = G.fillColor || z.fillColor || it, et = G.lineColor || z.lineColor || et, $ = m(G.opacity, z.opacity, $), { stroke: et, "stroke-width": k, fill: it, opacity: $ };
  4580. }, Q.prototype.destroy = function(k) {
  4581. var G = this, z = G.chart, $ = /AppleWebKit\/533/.test(C.navigator.userAgent), q = G.data || [], it, et, nt, rt;
  4582. for (A(G, "destroy"), this.removeEvents(k), (G.axisTypes || []).forEach(function(ct) {
  4583. (rt = G[ct]) && rt.series && (s(rt.series, G), rt.isDirty = rt.forceRedraw = !0);
  4584. }), G.legendItem && G.chart.legend.destroyItem(G), et = q.length; et--; )
  4585. (nt = q[et]) && nt.destroy && nt.destroy();
  4586. G.clips && G.clips.forEach(function(ct) {
  4587. return ct.destroy();
  4588. }), S.clearTimeout(G.animationTimeout), g(G, function(ct, gt) {
  4589. ct instanceof R && !ct.survive && (it = $ && gt === "group" ? "hide" : "destroy", ct[it]());
  4590. }), z.hoverSeries === G && (z.hoverSeries = void 0), s(z.series, G), z.orderSeries(), g(G, function(ct, gt) {
  4591. k && gt === "hcEvents" || delete G[gt];
  4592. });
  4593. }, Q.prototype.applyZones = function() {
  4594. var k = this, G = this.chart, z = G.renderer, $ = this.zones, q = this.clips || [], it = this.graph, et = this.area, nt = Math.max(G.chartWidth, G.chartHeight), rt = this[(this.zoneAxis || "y") + "Axis"], ct = G.inverted, gt, dt, lt, at, J, tt, st, ht, pt = !1;
  4595. if ($.length && (it || et) && rt && typeof rt.min < "u") {
  4596. var yt = rt.reversed, vt = rt.horiz;
  4597. it && !this.showLine && it.hide(), et && et.hide();
  4598. var Ct = rt.getExtremes();
  4599. $.forEach(function(Pt, kt) {
  4600. gt = yt ? vt ? G.plotWidth : 0 : vt ? 0 : rt.toPixels(Ct.min) || 0, gt = c(m(dt, gt), 0, nt), dt = c(Math.round(rt.toPixels(m(Pt.value, Ct.max), !0) || 0), 0, nt), pt && (gt = dt = rt.toPixels(Ct.max)), at = Math.abs(gt - dt), J = Math.min(gt, dt), tt = Math.max(gt, dt), rt.isXAxis ? (lt = { x: ct ? tt : J, y: 0, width: at, height: nt }, vt || (lt.x = G.plotHeight - lt.x)) : (lt = { x: 0, y: ct ? tt : J, width: nt, height: at }, vt && (lt.y = G.plotWidth - lt.y)), ct && z.isVML && (lt = rt.isXAxis ? {
  4601. x: 0,
  4602. y: yt ? J : tt,
  4603. height: lt.width,
  4604. width: G.chartWidth
  4605. } : { x: lt.y - G.plotLeft - G.spacingBox.x, y: 0, width: lt.height, height: G.chartHeight }), q[kt] ? q[kt].animate(lt) : q[kt] = z.clipRect(lt), st = k["zone-area-" + kt], ht = k["zone-graph-" + kt], it && ht && ht.clip(q[kt]), et && st && st.clip(q[kt]), pt = Pt.value > Ct.max, k.resetZones && dt === 0 && (dt = void 0);
  4606. }), this.clips = q;
  4607. } else
  4608. k.visible && (it && it.show(!0), et && et.show(!0));
  4609. }, Q.prototype.invertGroups = function(k) {
  4610. function G() {
  4611. ["group", "markerGroup"].forEach(function(q) {
  4612. z[q] && ($.renderer.isVML && z[q].attr({ width: z.yAxis.len, height: z.xAxis.len }), z[q].width = z.yAxis.len, z[q].height = z.xAxis.len, z[q].invert(z.isRadialSeries ? !1 : k));
  4613. });
  4614. }
  4615. var z = this, $ = z.chart;
  4616. z.xAxis && (z.eventsToUnbind.push(w($, "resize", G)), G(), z.invertGroups = G);
  4617. }, Q.prototype.plotGroup = function(k, G, z, $, q) {
  4618. var it = this[k], et = !it;
  4619. return z = { visibility: z, zIndex: $ || 0.1 }, typeof this.opacity > "u" || this.chart.styledMode || this.state === "inactive" || (z.opacity = this.opacity), et && (this[k] = it = this.chart.renderer.g().add(q)), it.addClass("highcharts-" + G + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (l(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (it.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), it.attr(z)[et ? "attr" : "animate"](this.getPlotBox()), it;
  4620. }, Q.prototype.getPlotBox = function() {
  4621. var k = this.chart, G = this.xAxis, z = this.yAxis;
  4622. return k.inverted && (G = z, z = this.xAxis), { translateX: G ? G.left : k.plotLeft, translateY: z ? z.top : k.plotTop, scaleX: 1, scaleY: 1 };
  4623. }, Q.prototype.removeEvents = function(k) {
  4624. k || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(G) {
  4625. G();
  4626. }), this.eventsToUnbind.length = 0);
  4627. }, Q.prototype.render = function() {
  4628. var k = this, G = k.chart, z = k.options, $ = v(z.animation), q = k.visible ? "inherit" : "hidden", it = z.zIndex, et = k.hasRendered, nt = G.seriesGroup, rt = G.inverted;
  4629. G = !k.finishedAnimating && G.renderer.isSVG ? $.duration : 0, A(this, "render");
  4630. var ct = k.plotGroup("group", "series", q, it, nt);
  4631. k.markerGroup = k.plotGroup("markerGroup", "markers", q, it, nt), z.clip !== !1 && k.setClip(), k.animate && G && k.animate(!0), ct.inverted = m(k.invertible, k.isCartesian) ? rt : !1, k.drawGraph && (k.drawGraph(), k.applyZones()), k.visible && k.drawPoints(), k.drawDataLabels && k.drawDataLabels(), k.redrawPoints && k.redrawPoints(), k.drawTracker && k.options.enableMouseTracking !== !1 && k.drawTracker(), k.invertGroups(rt), k.animate && G && k.animate(), et || (G && $.defer && (G += $.defer), k.animationTimeout = V(function() {
  4632. k.afterAnimate();
  4633. }, G || 0)), k.isDirty = !1, k.hasRendered = !0, A(k, "afterRender");
  4634. }, Q.prototype.redraw = function() {
  4635. var k = this.chart, G = this.isDirty || this.isDirtyData, z = this.group, $ = this.xAxis, q = this.yAxis;
  4636. z && (k.inverted && z.attr({
  4637. width: k.plotWidth,
  4638. height: k.plotHeight
  4639. }), z.animate({ translateX: m($ && $.left, k.plotLeft), translateY: m(q && q.top, k.plotTop) })), this.translate(), this.render(), G && delete this.kdTree;
  4640. }, Q.prototype.searchPoint = function(k, G) {
  4641. var z = this.xAxis, $ = this.yAxis, q = this.chart.inverted;
  4642. return this.searchKDTree({ clientX: q ? z.len - k.chartY + z.pos : k.chartX - z.pos, plotY: q ? $.len - k.chartX + $.pos : k.chartY - $.pos }, G, k);
  4643. }, Q.prototype.buildKDTree = function(k) {
  4644. function G(q, it, et) {
  4645. var nt = q && q.length;
  4646. if (nt) {
  4647. var rt = z.kdAxisArray[it % et];
  4648. return q.sort(function(ct, gt) {
  4649. return ct[rt] - gt[rt];
  4650. }), nt = Math.floor(nt / 2), { point: q[nt], left: G(q.slice(0, nt), it + 1, et), right: G(q.slice(nt + 1), it + 1, et) };
  4651. }
  4652. }
  4653. this.buildingKdTree = !0;
  4654. var z = this, $ = -1 < z.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  4655. delete z.kdTree, V(function() {
  4656. z.kdTree = G(z.getValidPoints(null, !z.directTouch), $, $), z.buildingKdTree = !1;
  4657. }, z.options.kdNow || k && k.type === "touchstart" ? 0 : 1);
  4658. }, Q.prototype.searchKDTree = function(k, G, z) {
  4659. function $(rt, ct, gt, dt) {
  4660. var lt = ct.point, at = q.kdAxisArray[gt % dt], J = lt, tt = l(rt[it]) && l(lt[it]) ? Math.pow(rt[it] - lt[it], 2) : null, st = l(rt[et]) && l(lt[et]) ? Math.pow(rt[et] - lt[et], 2) : null;
  4661. return st = (tt || 0) + (st || 0), lt.dist = l(st) ? Math.sqrt(st) : Number.MAX_VALUE, lt.distX = l(tt) ? Math.sqrt(tt) : Number.MAX_VALUE, at = rt[at] - lt[at], st = 0 > at ? "left" : "right", tt = 0 > at ? "right" : "left", ct[st] && (st = $(rt, ct[st], gt + 1, dt), J = st[nt] < J[nt] ? st : lt), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = $(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  4662. }
  4663. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = G ? "distX" : "dist";
  4664. if (G = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(z), this.kdTree)
  4665. return $(
  4666. k,
  4667. this.kdTree,
  4668. G,
  4669. G
  4670. );
  4671. }, Q.prototype.pointPlacementToXValue = function() {
  4672. var k = this.options, G = k.pointRange, z = this.xAxis;
  4673. return k = k.pointPlacement, k === "between" && (k = z.reversed ? -0.5 : 0.5), B(k) ? k * (G || z.pointRange) : 0;
  4674. }, Q.prototype.isPointInside = function(k) {
  4675. var G = this.chart, z = this.xAxis, $ = this.yAxis;
  4676. return typeof k.plotY < "u" && typeof k.plotX < "u" && 0 <= k.plotY && k.plotY <= ($ ? $.len : G.plotHeight) && 0 <= k.plotX && k.plotX <= (z ? z.len : G.plotWidth);
  4677. }, Q.prototype.drawTracker = function() {
  4678. var k = this, G = k.options, z = G.trackByArea, $ = [].concat(z ? k.areaPath : k.graphPath), q = k.chart, it = q.pointer, et = q.renderer, nt = q.options.tooltip.snap, rt = k.tracker, ct = function(dt) {
  4679. q.hoverSeries !== k && k.onMouseOver();
  4680. }, gt = "rgba(192,192,192," + (N ? 1e-4 : 2e-3) + ")";
  4681. rt ? rt.attr({ d: $ }) : k.graph && (k.tracker = et.path($).attr({ visibility: k.visible ? "visible" : "hidden", zIndex: 2 }).addClass(z ? "highcharts-tracker-area" : "highcharts-tracker-line").add(k.group), q.styledMode || k.tracker.attr({ "stroke-linecap": "round", "stroke-linejoin": "round", stroke: gt, fill: z ? gt : "none", "stroke-width": k.graph.strokeWidth() + (z ? 0 : 2 * nt) }), [k.tracker, k.markerGroup, k.dataLabelsGroup].forEach(function(dt) {
  4682. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(lt) {
  4683. it.onTrackerMouseOut(lt);
  4684. }), G.cursor && !q.styledMode && dt.css({ cursor: G.cursor }), O) && dt.on("touchstart", ct);
  4685. })), A(this, "afterDrawTracker");
  4686. }, Q.prototype.addPoint = function(k, G, z, $, q) {
  4687. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  4688. rt = rt && rt.hasNames && rt.names;
  4689. var ct = it.data, gt = this.xData, dt;
  4690. G = m(G, !0);
  4691. var lt = { series: this };
  4692. this.pointClass.prototype.applyOptions.apply(
  4693. lt,
  4694. [k]
  4695. );
  4696. var at = lt.x, J = gt.length;
  4697. if (this.requireSorting && at < gt[J - 1])
  4698. for (dt = !0; J && gt[J - 1] > at; )
  4699. J--;
  4700. this.updateParallelArrays(lt, "splice", J, 0, 0), this.updateParallelArrays(lt, J), rt && lt.name && (rt[at] = lt.name), ct.splice(J, 0, k), dt && (this.data.splice(J, 0, null), this.processData()), it.legendType === "point" && this.generatePoints(), z && (et[0] && et[0].remove ? et[0].remove(!1) : (et.shift(), this.updateParallelArrays(lt, "shift"), ct.shift())), q !== !1 && A(this, "addPoint", { point: lt }), this.isDirtyData = this.isDirty = !0, G && nt.redraw($);
  4701. }, Q.prototype.removePoint = function(k, G, z) {
  4702. var $ = this, q = $.data, it = q[k], et = $.points, nt = $.chart, rt = function() {
  4703. et && et.length === q.length && et.splice(k, 1), q.splice(k, 1), $.options.data.splice(k, 1), $.updateParallelArrays(it || { series: $ }, "splice", k, 1), it && it.destroy(), $.isDirty = !0, $.isDirtyData = !0, G && nt.redraw();
  4704. };
  4705. d(z, nt), G = m(G, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  4706. }, Q.prototype.remove = function(k, G, z, $) {
  4707. function q() {
  4708. it.destroy($), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(k, !0) && et.redraw(G);
  4709. }
  4710. var it = this, et = it.chart;
  4711. z !== !1 ? A(
  4712. it,
  4713. "remove",
  4714. null,
  4715. q
  4716. ) : q();
  4717. }, Q.prototype.update = function(k, G) {
  4718. k = p(k, this.userOptions), A(this, "update", { options: k });
  4719. var z = this, $ = z.chart, q = z.userOptions, it = z.initialType || z.type, et = $.options.plotOptions, nt = b[it].prototype, rt = z.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], lt = k.type || q.type || $.options.chart.type, at = !(this.hasDerivedData || lt && lt !== this.type || typeof k.pointStart < "u" || typeof k.pointInterval < "u" || typeof k.relativeXValue < "u" || z.hasOptionChanged("dataGrouping") || z.hasOptionChanged("pointStart") || z.hasOptionChanged("pointInterval") || z.hasOptionChanged("pointIntervalUnit") || z.hasOptionChanged("keys"));
  4720. if (lt = lt || it, at && (dt.push("data", "isDirtyData", "points", "processedXData", "processedYData", "xIncrement", "cropped", "_hasPointMarkers", "_hasPointLabels", "clips", "nodes", "layout", "mapMap", "mapData", "minY", "maxY", "minX", "maxX"), k.visible !== !1 && dt.push("area", "graph"), z.parallelArrays.forEach(function(tt) {
  4721. dt.push(tt + "Data");
  4722. }), k.data && (k.dataSorting && o(z.options.dataSorting, k.dataSorting), this.setData(k.data, !1))), k = X(q, rt, { index: typeof q.index > "u" ? z.index : q.index, pointStart: m(et && et.series && et.series.pointStart, q.pointStart, z.xData[0]) }, !at && { data: z.options.data }, k), at && k.data && (k.data = z.options.data), dt = ["group", "markerGroup", "dataLabelsGroup", "transformGroup"].concat(dt), dt.forEach(function(tt) {
  4723. dt[tt] = z[tt], delete z[tt];
  4724. }), et = !1, b[lt]) {
  4725. if (et = lt !== z.type, z.remove(!1, !1, !1, !0), et)
  4726. if (Object.setPrototypeOf)
  4727. Object.setPrototypeOf(z, b[lt].prototype);
  4728. else {
  4729. rt = Object.hasOwnProperty.call(z, "hcEvents") && z.hcEvents;
  4730. for (gt in nt)
  4731. z[gt] = void 0;
  4732. o(z, b[lt].prototype), rt ? z.hcEvents = rt : delete z.hcEvents;
  4733. }
  4734. } else
  4735. t(17, !0, $, { missingModuleFor: lt });
  4736. if (dt.forEach(function(tt) {
  4737. z[tt] = dt[tt];
  4738. }), z.init($, k), at && this.points) {
  4739. var J = z.options;
  4740. J.visible === !1 ? (ct.graphic = 1, ct.dataLabel = 1) : z._hasPointLabels || (k = J.marker, nt = J.dataLabels, !k || k.enabled !== !1 && (q.marker && q.marker.symbol) === k.symbol || (ct.graphic = 1), nt && nt.enabled === !1 && (ct.dataLabel = 1)), this.points.forEach(function(tt) {
  4741. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && $.legend.destroyItem(tt));
  4742. }, this);
  4743. }
  4744. z.initialType = it, $.linkSeries(), et && z.linkedSeries.length && (z.isDirtyData = !0), A(this, "afterUpdate"), m(G, !0) && $.redraw(at ? void 0 : !1);
  4745. }, Q.prototype.setName = function(k) {
  4746. this.name = this.options.name = this.userOptions.name = k, this.chart.isDirtyLegend = !0;
  4747. }, Q.prototype.hasOptionChanged = function(k) {
  4748. var G = this.options[k], z = this.chart.options.plotOptions, $ = this.userOptions[k];
  4749. return $ ? G !== $ : G !== m(
  4750. z && z[this.type] && z[this.type][k],
  4751. z && z.series && z.series[k],
  4752. G
  4753. );
  4754. }, Q.prototype.onMouseOver = function() {
  4755. var k = this.chart, G = k.hoverSeries;
  4756. k.pointer.setHoverChartIndex(), G && G !== this && G.onMouseOut(), this.options.events.mouseOver && A(this, "mouseOver"), this.setState("hover"), k.hoverSeries = this;
  4757. }, Q.prototype.onMouseOut = function() {
  4758. var k = this.options, G = this.chart, z = G.tooltip, $ = G.hoverPoint;
  4759. G.hoverSeries = null, $ && $.onMouseOut(), this && k.events.mouseOut && A(this, "mouseOut"), !z || this.stickyTracking || z.shared && !this.noSharedTooltip || z.hide(), G.series.forEach(function(q) {
  4760. q.setState(
  4761. "",
  4762. !0
  4763. );
  4764. });
  4765. }, Q.prototype.setState = function(k, G) {
  4766. var z = this, $ = z.options, q = z.graph, it = $.inactiveOtherPoints, et = $.states, nt = m(et[k || "normal"] && et[k || "normal"].animation, z.chart.options.chart.animation), rt = $.lineWidth, ct = 0, gt = $.opacity;
  4767. if (k = k || "", z.state !== k && ([z.group, z.markerGroup, z.dataLabelsGroup].forEach(function(dt) {
  4768. dt && (z.state && dt.removeClass("highcharts-series-" + z.state), k && dt.addClass("highcharts-series-" + k));
  4769. }), z.state = k, !z.chart.styledMode)) {
  4770. if (et[k] && et[k].enabled === !1)
  4771. return;
  4772. if (k && (rt = et[k].lineWidth || rt + (et[k].lineWidthPlus || 0), gt = m(et[k].opacity, gt)), q && !q.dashstyle)
  4773. for ($ = { "stroke-width": rt }, q.animate($, nt); z["zone-graph-" + ct]; )
  4774. z["zone-graph-" + ct].animate($, nt), ct += 1;
  4775. it || [z.group, z.markerGroup, z.dataLabelsGroup, z.labelBySeries].forEach(function(dt) {
  4776. dt && dt.animate({ opacity: gt }, nt);
  4777. });
  4778. }
  4779. G && it && z.points && z.setAllPointsToState(k || void 0);
  4780. }, Q.prototype.setAllPointsToState = function(k) {
  4781. this.points.forEach(function(G) {
  4782. G.setState && G.setState(k);
  4783. });
  4784. }, Q.prototype.setVisible = function(k, G) {
  4785. var z = this, $ = z.chart, q = z.legendItem, it = $.options.chart.ignoreHiddenSeries, et = z.visible, nt = (z.visible = k = z.options.visible = z.userOptions.visible = typeof k > "u" ? !et : k) ? "show" : "hide";
  4786. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  4787. z[rt] && z[rt][nt]();
  4788. }), ($.hoverSeries === z || ($.hoverPoint && $.hoverPoint.series) === z) && z.onMouseOut(), q && $.legend.colorizeItem(z, k), z.isDirty = !0, z.options.stacking && $.series.forEach(function(rt) {
  4789. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  4790. }), z.linkedSeries.forEach(function(rt) {
  4791. rt.setVisible(k, !1);
  4792. }), it && ($.isDirtyBox = !0), A(z, nt), G !== !1 && $.redraw();
  4793. }, Q.prototype.show = function() {
  4794. this.setVisible(!0);
  4795. }, Q.prototype.hide = function() {
  4796. this.setVisible(!1);
  4797. }, Q.prototype.select = function(k) {
  4798. this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), A(this, k ? "select" : "unselect");
  4799. }, Q.prototype.shouldShowTooltip = function(k, G, z) {
  4800. return z === void 0 && (z = {}), z.series = this, z.visiblePlotOnly = !0, this.chart.isInsidePlot(k, G, z);
  4801. }, Q.defaultOptions = H, Q;
  4802. }(), o(y.prototype, { axisTypes: [
  4803. "xAxis",
  4804. "yAxis"
  4805. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: F.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: U, requireSorting: !0, sorted: !0 }), W.series = y, y;
  4806. }), E(h, "Extensions/ScrollablePlotArea.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Axis/Axis.js"], h["Core/Chart/Chart.js"], h["Core/Series/Series.js"], h["Core/Renderer/RendererRegistry.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U) {
  4807. var H = y.stop, W = U.addEvent, R = U.createElement, S = U.merge, v = U.pick;
  4808. W(I, "afterSetChartSize", function(d) {
  4809. var u = this.options.chart.scrollablePlotArea, P = u && u.minWidth;
  4810. if (u = u && u.minHeight, !this.renderer.forExport) {
  4811. if (P) {
  4812. if (this.scrollablePixelsX = P = Math.max(0, P - this.chartWidth)) {
  4813. this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.width = this.plotWidth += P, this.inverted ? this.clipBox.height += P : this.clipBox.width += P;
  4814. var O = { 1: { name: "right", value: P } };
  4815. }
  4816. } else
  4817. u && (this.scrollablePixelsY = P = Math.max(
  4818. 0,
  4819. u - this.chartHeight
  4820. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.height = this.plotHeight += P, this.inverted ? this.clipBox.width += P : this.clipBox.height += P, O = { 2: { name: "bottom", value: P } });
  4821. O && !d.skipAxes && this.axes.forEach(function(N) {
  4822. O[N.side] ? N.getPlotLinePath = function() {
  4823. var C = O[N.side].name, b = this[C];
  4824. this[C] = b - O[N.side].value;
  4825. var w = j.prototype.getPlotLinePath.apply(this, arguments);
  4826. return this[C] = b, w;
  4827. } : (N.setAxisSize(), N.setAxisTranslation());
  4828. });
  4829. }
  4830. }), W(I, "render", function() {
  4831. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  4832. }), I.prototype.setUpScrolling = function() {
  4833. var d = this, u = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  4834. this.scrollablePixelsX && (u.overflowX = "auto"), this.scrollablePixelsY && (u.overflowY = "auto"), this.scrollingParent = R("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = R(
  4835. "div",
  4836. { className: "highcharts-scrolling" },
  4837. u,
  4838. this.scrollingParent
  4839. ), W(this.scrollingContainer, "scroll", function() {
  4840. d.pointer && delete d.pointer.chartPosition;
  4841. }), this.innerContainer = R("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  4842. }, I.prototype.moveFixedElements = function() {
  4843. var d = this.container, u = this.fixedRenderer, P = ".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), O;
  4844. this.scrollablePixelsX && !this.inverted ? O = ".highcharts-yaxis" : this.scrollablePixelsX && this.inverted || this.scrollablePixelsY && !this.inverted ? O = ".highcharts-xaxis" : this.scrollablePixelsY && this.inverted && (O = ".highcharts-yaxis"), O && P.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), P.forEach(function(N) {
  4845. [].forEach.call(d.querySelectorAll(N), function(C) {
  4846. (C.namespaceURI === u.SVG_NS ? u.box : u.box.parentNode).appendChild(C), C.style.pointerEvents = "auto";
  4847. });
  4848. });
  4849. }, I.prototype.applyFixed = function() {
  4850. var d = !this.fixedDiv, u = this.options.chart, P = u.scrollablePlotArea, O = F.getRendererType();
  4851. d ? (this.fixedDiv = R("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (u.style && u.style.zIndex || 0) + 2, top: 0 }, null, !0), this.scrollingContainer && this.scrollingContainer.parentNode.insertBefore(this.fixedDiv, this.scrollingContainer), this.renderTo.style.overflow = "visible", this.fixedRenderer = u = new O(
  4852. this.fixedDiv,
  4853. this.chartWidth,
  4854. this.chartHeight,
  4855. this.options.chart.style
  4856. ), this.scrollableMask = u.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": v(P.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), W(this, "afterShowResetZoom", this.moveFixedElements), W(this, "afterDrilldown", this.moveFixedElements), W(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || d) && (this.scrollableDirty = !1, this.moveFixedElements()), u = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), H(this.container), this.container.style.width = u + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: u, height: O, viewBox: [0, 0, u, O].join(" ") }), this.chartBackground.attr({ width: u, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", d && (P.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * P.scrollPositionX), P.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * P.scrollPositionY)), O = this.axisOffset, d = this.plotTop - O[0] - 1, P = this.plotLeft - O[3] - 1, u = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  4857. var N = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), C = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  4858. d = this.scrollablePixelsX ? [["M", 0, d], ["L", this.plotLeft - 1, d], ["L", this.plotLeft - 1, u], ["L", 0, u], ["Z"], ["M", N, d], ["L", this.chartWidth, d], ["L", this.chartWidth, u], ["L", N, u], ["Z"]] : this.scrollablePixelsY ? [["M", P, 0], ["L", P, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", P, C], ["L", P, this.chartHeight], ["L", O, this.chartHeight], ["L", O, C], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d });
  4859. }, W(j, "afterInit", function() {
  4860. this.chart.scrollableDirty = !0;
  4861. }), W(Z, "show", function() {
  4862. this.chart.scrollableDirty = !0;
  4863. });
  4864. }), E(h, "Core/Axis/StackingAxis.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Axis/Axis.js"], h["Core/Utilities.js"]], function(y, j, I) {
  4865. var Z = y.getDeferredAnimation, F = I.addEvent, U = I.destroyObjectProperties, H = I.fireEvent, W = I.isNumber, R = I.objectEach, S;
  4866. return function(v) {
  4867. function d() {
  4868. var N = this.stacking;
  4869. if (N) {
  4870. var C = N.stacks;
  4871. R(C, function(b, w) {
  4872. U(b), C[w] = null;
  4873. }), N && N.stackTotalGroup && N.stackTotalGroup.destroy();
  4874. }
  4875. }
  4876. function u() {
  4877. this.stacking || (this.stacking = new O(this));
  4878. }
  4879. var P = [];
  4880. v.compose = function(N) {
  4881. return P.indexOf(N) === -1 && (P.push(N), F(N, "init", u), F(N, "destroy", d)), N;
  4882. };
  4883. var O = function() {
  4884. function N(C) {
  4885. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = C;
  4886. }
  4887. return N.prototype.buildStacks = function() {
  4888. var C = this.axis, b = C.series, w = C.options.reversedStacks, x = b.length, a;
  4889. if (!C.isXAxis) {
  4890. for (this.usePercentage = !1, a = x; a--; ) {
  4891. var c = b[w ? a : x - a - 1];
  4892. c.setStackedPoints(), c.setGroupedPoints();
  4893. }
  4894. for (a = 0; a < x; a++)
  4895. b[a].modifyStacks();
  4896. H(C, "afterBuildStacks");
  4897. }
  4898. }, N.prototype.cleanStacks = function() {
  4899. if (!this.axis.isXAxis) {
  4900. if (this.oldStacks)
  4901. var C = this.stacks = this.oldStacks;
  4902. R(C, function(b) {
  4903. R(b, function(w) {
  4904. w.cumulative = w.total;
  4905. });
  4906. });
  4907. }
  4908. }, N.prototype.resetStacks = function() {
  4909. var C = this, b = C.stacks;
  4910. C.axis.isXAxis || R(b, function(w) {
  4911. R(
  4912. w,
  4913. function(x, a) {
  4914. W(x.touched) && x.touched < C.stacksTouched ? (x.destroy(), delete w[a]) : (x.total = null, x.cumulative = null);
  4915. }
  4916. );
  4917. });
  4918. }, N.prototype.renderStackTotals = function() {
  4919. var C = this.axis, b = C.chart, w = b.renderer, x = this.stacks;
  4920. C = Z(b, C.options.stackLabels && C.options.stackLabels.animation || !1);
  4921. var a = this.stackTotalGroup = this.stackTotalGroup || w.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  4922. a.translate(b.plotLeft, b.plotTop), R(x, function(c) {
  4923. R(c, function(p) {
  4924. p.render(a);
  4925. });
  4926. }), a.animate(
  4927. { opacity: 1 },
  4928. C
  4929. );
  4930. }, N;
  4931. }();
  4932. v.Additions = O;
  4933. }(S || (S = {})), S;
  4934. }), E(h, "Extensions/Stacking.js", [h["Core/Axis/Axis.js"], h["Core/Chart/Chart.js"], h["Core/FormatUtilities.js"], h["Core/Globals.js"], h["Core/Series/Series.js"], h["Core/Axis/StackingAxis.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U, H) {
  4935. var W = I.format, R = H.correctFloat, S = H.defined, v = H.destroyObjectProperties, d = H.isArray, u = H.isNumber, P = H.objectEach, O = H.pick, N = function() {
  4936. function C(b, w, x, a, c) {
  4937. var p = b.chart.inverted;
  4938. this.axis = b, this.isNegative = x, this.options = w = w || {}, this.x = a, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: w.align || (p ? x ? "left" : "right" : "center"), verticalAlign: w.verticalAlign || (p ? "middle" : x ? "bottom" : "top"), y: w.y, x: w.x }, this.textAlign = w.textAlign || (p ? x ? "right" : "left" : "center");
  4939. }
  4940. return C.prototype.destroy = function() {
  4941. v(this, this.axis);
  4942. }, C.prototype.render = function(b) {
  4943. var w = this.axis.chart, x = this.options, a = x.format;
  4944. a = a ? W(a, this, w) : x.formatter.call(this), this.label ? this.label.attr({
  4945. text: a,
  4946. visibility: "hidden"
  4947. }) : (this.label = w.renderer.label(a, null, null, x.shape, null, null, x.useHTML, !1, "stack-labels"), a = { r: x.borderRadius || 0, text: a, rotation: x.rotation, padding: O(x.padding, 5), visibility: "hidden" }, w.styledMode || (a.fill = x.backgroundColor, a.stroke = x.borderColor, a["stroke-width"] = x.borderWidth, this.label.css(x.style)), this.label.attr(a), this.label.added || this.label.add(b)), this.label.labelrank = w.plotSizeY;
  4948. }, C.prototype.setOffset = function(b, w, x, a, c) {
  4949. var p = this.axis, i = p.chart;
  4950. a = p.translate(p.stacking.usePercentage ? 100 : a || this.total, 0, 0, 0, 1), x = p.translate(x || 0), x = S(a) && Math.abs(a - x), b = O(c, i.xAxis[0].translate(this.x)) + b, p = S(a) && this.getStackBox(i, this, b, a, w, x, p), w = this.label, x = this.isNegative, b = O(this.options.overflow, "justify") === "justify";
  4951. var l = this.textAlign;
  4952. w && p && (c = w.getBBox(), a = w.padding, l = l === "left" ? i.inverted ? -a : a : l === "right" ? c.width : i.inverted && l === "center" ? c.width / 2 : i.inverted ? x ? c.width + a : -a : c.width / 2, x = i.inverted ? c.height / 2 : x ? -a : c.height, this.alignOptions.x = O(this.options.x, 0), this.alignOptions.y = O(this.options.y, 0), p.x -= l, p.y -= x, w.align(this.alignOptions, null, p), i.isInsidePlot(w.alignAttr.x + l - this.alignOptions.x, w.alignAttr.y + x - this.alignOptions.y) ? w.show() : (w.alignAttr.y = -9999, b = !1), b && F.prototype.justifyDataLabel.call(this.axis, w, this.alignOptions, w.alignAttr, c, p), w.attr({ x: w.alignAttr.x, y: w.alignAttr.y }), O(!b && this.options.crop, !0) && ((i = u(w.x) && u(w.y) && i.isInsidePlot(w.x - a + w.width, w.y) && i.isInsidePlot(w.x + a, w.y)) || w.hide()));
  4953. }, C.prototype.getStackBox = function(b, w, x, a, c, p, i) {
  4954. var l = w.axis.reversed, s = b.inverted, t = i.height + i.pos - (s ? b.plotLeft : b.plotTop);
  4955. return w = w.isNegative && !l || !w.isNegative && l, { x: s ? w ? a - i.right : a - p + i.pos - b.plotLeft : x + b.xAxis[0].transB - b.plotLeft, y: s ? i.height - x - c : w ? t - a - p : t - a, width: s ? p : c, height: s ? c : p };
  4956. }, C;
  4957. }();
  4958. return j.prototype.getStacks = function() {
  4959. var C = this, b = C.inverted;
  4960. C.yAxis.forEach(function(w) {
  4961. w.stacking && w.stacking.stacks && w.hasVisibleSeries && (w.stacking.oldStacks = w.stacking.stacks);
  4962. }), C.series.forEach(function(w) {
  4963. var x = w.xAxis && w.xAxis.options || {};
  4964. !w.options.stacking || w.visible !== !0 && C.options.chart.ignoreHiddenSeries !== !1 || (w.stackKey = [w.type, O(w.options.stack, ""), b ? x.top : x.left, b ? x.height : x.width].join());
  4965. });
  4966. }, U.compose(y), F.prototype.setGroupedPoints = function() {
  4967. var C = this.yAxis.stacking;
  4968. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? F.prototype.setStackedPoints.call(this, "group") : C && P(C.stacks, function(b, w) {
  4969. w.slice(-5) === "group" && (P(b, function(x) {
  4970. return x.destroy();
  4971. }), delete C.stacks[w]);
  4972. });
  4973. }, F.prototype.setStackedPoints = function(C) {
  4974. var b = C || this.options.stacking;
  4975. if (b && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  4976. var w = this.processedXData, x = this.processedYData, a = [], c = x.length, p = this.options, i = p.threshold, l = O(p.startFromThreshold && i, 0);
  4977. p = p.stack, C = C ? this.type + "," + b : this.stackKey;
  4978. var s = "-" + C, t = this.negStacks, o = this.yAxis, n = o.stacking.stacks, A = o.stacking.oldStacks, _, D;
  4979. for (o.stacking.stacksTouched += 1, D = 0; D < c; D++) {
  4980. var B = w[D], T = x[D], X = this.getStackIndicator(
  4981. X,
  4982. B,
  4983. this.index
  4984. ), g = X.key, m = (_ = t && T < (l ? 0 : i)) ? s : C;
  4985. n[m] || (n[m] = {}), n[m][B] || (A[m] && A[m][B] ? (n[m][B] = A[m][B], n[m][B].total = null) : n[m][B] = new N(o, o.options.stackLabels, _, B, p)), m = n[m][B], T !== null ? (m.points[g] = m.points[this.index] = [O(m.cumulative, l)], S(m.cumulative) || (m.base = g), m.touched = o.stacking.stacksTouched, 0 < X.index && this.singleStacks === !1 && (m.points[g][0] = m.points[this.index + "," + B + ",0"][0])) : m.points[g] = m.points[this.index] = null, b === "percent" ? (_ = _ ? C : s, t && n[_] && n[_][B] ? (_ = n[_][B], m.total = _.total = Math.max(_.total, m.total) + Math.abs(T) || 0) : m.total = R(m.total + (Math.abs(T) || 0))) : b === "group" ? (d(T) && (T = T[0]), T !== null && (m.total = (m.total || 0) + 1)) : m.total = R(m.total + (T || 0)), m.cumulative = b === "group" ? (m.total || 1) - 1 : O(m.cumulative, l) + (T || 0), T !== null && (m.points[g].push(m.cumulative), a[D] = m.cumulative, m.hasValidPoints = !0);
  4986. }
  4987. b === "percent" && (o.stacking.usePercentage = !0), b !== "group" && (this.stackedYData = a), o.stacking.oldStacks = {};
  4988. }
  4989. }, F.prototype.modifyStacks = function() {
  4990. var C = this, b = C.stackKey, w = C.yAxis.stacking.stacks, x = C.processedXData, a, c = C.options.stacking;
  4991. C[c + "Stacker"] && [b, "-" + b].forEach(function(p) {
  4992. for (var i = x.length, l, s; i--; )
  4993. l = x[i], a = C.getStackIndicator(a, l, C.index, p), (s = (l = w[p] && w[p][l]) && l.points[a.key]) && C[c + "Stacker"](s, l, i);
  4994. });
  4995. }, F.prototype.percentStacker = function(C, b, w) {
  4996. b = b.total ? 100 / b.total : 0, C[0] = R(C[0] * b), C[1] = R(C[1] * b), this.stackedYData[w] = C[1];
  4997. }, F.prototype.getStackIndicator = function(C, b, w, x) {
  4998. return !S(C) || C.x !== b || x && C.key !== x ? C = { x: b, index: 0, key: x } : C.index++, C.key = [w, b, C.index].join(), C;
  4999. }, Z.StackItem = N, Z.StackItem;
  5000. }), E(h, "Series/Line/LineSeries.js", [h["Core/Series/Series.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I) {
  5001. var Z = this && this.__extends || function() {
  5002. var H = function(W, R) {
  5003. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  5004. S.__proto__ = v;
  5005. } || function(S, v) {
  5006. for (var d in v)
  5007. v.hasOwnProperty(d) && (S[d] = v[d]);
  5008. }, H(W, R);
  5009. };
  5010. return function(W, R) {
  5011. function S() {
  5012. this.constructor = W;
  5013. }
  5014. H(W, R), W.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  5015. };
  5016. }(), F = I.defined, U = I.merge;
  5017. return I = function(H) {
  5018. function W() {
  5019. var R = H !== null && H.apply(this, arguments) || this;
  5020. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  5021. }
  5022. return Z(W, H), W.prototype.drawGraph = function() {
  5023. var R = this, S = this.options, v = (this.gappedPath || this.getGraphPath).call(this), d = this.chart.styledMode, u = [["graph", "highcharts-graph"]];
  5024. d || u[0].push(S.lineColor || this.color || "#cccccc", S.dashStyle), u = R.getZonesGraphs(u), u.forEach(function(P, O) {
  5025. var N = P[0], C = R[N], b = C ? "animate" : "attr";
  5026. C ? (C.endX = R.preventGraphAnimation ? null : v.xMap, C.animate({ d: v })) : v.length && (R[N] = C = R.chart.renderer.path(v).addClass(P[1]).attr({ zIndex: 1 }).add(R.group)), C && !d && (N = { stroke: P[2], "stroke-width": S.lineWidth, fill: R.fillGraph && R.color || "none" }, P[3] ? N.dashstyle = P[3] : S.linecap !== "square" && (N["stroke-linecap"] = N["stroke-linejoin"] = "round"), C[b](N).shadow(2 > O && S.shadow)), C && (C.startX = v.xMap, C.isArea = v.isArea);
  5027. });
  5028. }, W.prototype.getGraphPath = function(R, S, v) {
  5029. var d = this, u = d.options, P = [], O = [], N, C = u.step;
  5030. R = R || d.points;
  5031. var b = R.reversed;
  5032. return b && R.reverse(), (C = { right: 1, center: 2 }[C] || C && 3) && b && (C = 4 - C), R = this.getValidPoints(R, !1, !(u.connectNulls && !S && !v)), R.forEach(function(w, x) {
  5033. var a = w.plotX, c = w.plotY, p = R[x - 1];
  5034. (w.leftCliff || p && p.rightCliff) && !v && (N = !0), w.isNull && !F(S) && 0 < x ? N = !u.connectNulls : w.isNull && !S ? N = !0 : (x === 0 || N ? x = [["M", w.plotX, w.plotY]] : d.getPointSpline ? x = [d.getPointSpline(R, w, x)] : C ? (x = C === 1 ? [["L", p.plotX, c]] : C === 2 ? [["L", (p.plotX + a) / 2, p.plotY], ["L", (p.plotX + a) / 2, c]] : [["L", a, p.plotY]], x.push(["L", a, c])) : x = [["L", a, c]], O.push(w.x), C && (O.push(w.x), C === 2 && O.push(w.x)), P.push.apply(P, x), N = !1);
  5035. }), P.xMap = O, d.graphPath = P;
  5036. }, W.prototype.getZonesGraphs = function(R) {
  5037. return this.zones.forEach(function(S, v) {
  5038. v = ["zone-graph-" + v, "highcharts-graph highcharts-zone-graph-" + v + " " + (S.className || "")], this.chart.styledMode || v.push(S.color || this.color, S.dashStyle || this.options.dashStyle), R.push(v);
  5039. }, this), R;
  5040. }, W.defaultOptions = U(y.defaultOptions, {}), W;
  5041. }(y), j.registerSeriesType("line", I), I;
  5042. }), E(h, "Series/Area/AreaSeries.js", [
  5043. h["Core/Color/Color.js"],
  5044. h["Core/Legend/LegendSymbol.js"],
  5045. h["Core/Series/SeriesRegistry.js"],
  5046. h["Core/Utilities.js"]
  5047. ], function(y, j, I, Z) {
  5048. var F = this && this.__extends || function() {
  5049. var v = function(d, u) {
  5050. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  5051. P.__proto__ = O;
  5052. } || function(P, O) {
  5053. for (var N in O)
  5054. O.hasOwnProperty(N) && (P[N] = O[N]);
  5055. }, v(d, u);
  5056. };
  5057. return function(d, u) {
  5058. function P() {
  5059. this.constructor = d;
  5060. }
  5061. v(d, u), d.prototype = u === null ? Object.create(u) : (P.prototype = u.prototype, new P());
  5062. };
  5063. }(), U = y.parse, H = I.seriesTypes.line;
  5064. y = Z.extend;
  5065. var W = Z.merge, R = Z.objectEach, S = Z.pick;
  5066. return Z = function(v) {
  5067. function d() {
  5068. var u = v !== null && v.apply(this, arguments) || this;
  5069. return u.data = void 0, u.options = void 0, u.points = void 0, u;
  5070. }
  5071. return F(d, v), d.prototype.drawGraph = function() {
  5072. this.areaPath = [], v.prototype.drawGraph.apply(this);
  5073. var u = this, P = this.areaPath, O = this.options, N = [["area", "highcharts-area", this.color, O.fillColor]];
  5074. this.zones.forEach(function(C, b) {
  5075. N.push(["zone-area-" + b, "highcharts-area highcharts-zone-area-" + b + " " + C.className, C.color || u.color, C.fillColor || O.fillColor]);
  5076. }), N.forEach(function(C) {
  5077. var b = C[0], w = u[b], x = w ? "animate" : "attr", a = {};
  5078. w ? (w.endX = u.preventGraphAnimation ? null : P.xMap, w.animate({ d: P })) : (a.zIndex = 0, w = u[b] = u.chart.renderer.path(P).addClass(C[1]).add(u.group), w.isArea = !0), u.chart.styledMode || (a.fill = S(C[3], U(C[2]).setOpacity(S(O.fillOpacity, 0.75)).get())), w[x](a), w.startX = P.xMap, w.shiftUnit = O.step ? 2 : 1;
  5079. });
  5080. }, d.prototype.getGraphPath = function(u) {
  5081. var P = H.prototype.getGraphPath, O = this.options, N = O.stacking, C = this.yAxis, b, w = [], x = [], a = this.index, c = C.stacking.stacks[this.stackKey], p = O.threshold, i = Math.round(C.getThreshold(O.threshold));
  5082. O = S(O.connectNulls, N === "percent");
  5083. var l = function(n, A, _) {
  5084. var D = u[n];
  5085. n = N && c[D.x].points[a];
  5086. var B = D[_ + "Null"] || 0;
  5087. if (_ = D[_ + "Cliff"] || 0, D = !0, _ || B) {
  5088. var T = (B ? n[0] : n[1]) + _, X = n[0] + _;
  5089. D = !!B;
  5090. } else
  5091. !N && u[A] && u[A].isNull && (T = X = p);
  5092. typeof T < "u" && (x.push({ plotX: t, plotY: T === null ? i : C.getThreshold(T), isNull: D, isCliff: !0 }), w.push({ plotX: t, plotY: X === null ? i : C.getThreshold(X), doCurve: !1 }));
  5093. };
  5094. for (u = u || this.points, N && (u = this.getStackPoints(u)), b = 0; b < u.length; b++) {
  5095. N || (u[b].leftCliff = u[b].rightCliff = u[b].leftNull = u[b].rightNull = void 0);
  5096. var s = u[b].isNull, t = S(u[b].rectPlotX, u[b].plotX), o = N ? S(u[b].yBottom, i) : i;
  5097. (!s || O) && (O || l(b, b - 1, "left"), s && !N && O || (x.push(u[b]), w.push({ x: b, plotX: t, plotY: o })), O || l(b, b + 1, "right"));
  5098. }
  5099. return b = P.call(this, x, !0, !0), w.reversed = !0, s = P.call(this, w, !0, !0), (o = s[0]) && o[0] === "M" && (s[0] = ["L", o[1], o[2]]), s = b.concat(s), s.length && s.push(["Z"]), P = P.call(this, x, !1, O), s.xMap = b.xMap, this.areaPath = s, P;
  5100. }, d.prototype.getStackPoints = function(u) {
  5101. var P = this, O = [], N = [], C = this.xAxis, b = this.yAxis, w = b.stacking.stacks[this.stackKey], x = {}, a = b.series, c = a.length, p = b.options.reversedStacks ? 1 : -1, i = a.indexOf(P);
  5102. if (u = u || this.points, this.options.stacking) {
  5103. for (var l = 0; l < u.length; l++)
  5104. u[l].leftNull = u[l].rightNull = void 0, x[u[l].x] = u[l];
  5105. R(w, function(t, o) {
  5106. t.total !== null && N.push(o);
  5107. }), N.sort(function(t, o) {
  5108. return t - o;
  5109. });
  5110. var s = a.map(function(t) {
  5111. return t.visible;
  5112. });
  5113. N.forEach(function(t, o) {
  5114. var n = 0, A, _;
  5115. if (x[t] && !x[t].isNull)
  5116. O.push(x[t]), [-1, 1].forEach(function(B) {
  5117. var T = B === 1 ? "rightNull" : "leftNull", X = 0, g = w[N[o + B]];
  5118. if (g)
  5119. for (var m = i; 0 <= m && m < c; ) {
  5120. var L = a[m].index;
  5121. A = g.points[L], A || (L === P.index ? x[t][T] = !0 : s[m] && (_ = w[t].points[L]) && (X -= _[1] - _[0])), m += p;
  5122. }
  5123. x[t][B === 1 ? "rightCliff" : "leftCliff"] = X;
  5124. });
  5125. else {
  5126. for (var D = i; 0 <= D && D < c; ) {
  5127. if (A = w[t].points[a[D].index]) {
  5128. n = A[1];
  5129. break;
  5130. }
  5131. D += p;
  5132. }
  5133. n = S(n, 0), n = b.translate(n, 0, 1, 0, 1), O.push({ isNull: !0, plotX: C.translate(t, 0, 0, 0, 1), x: t, plotY: n, yBottom: n });
  5134. }
  5135. });
  5136. }
  5137. return O;
  5138. }, d.defaultOptions = W(H.defaultOptions, { threshold: 0 }), d;
  5139. }(H), y(Z.prototype, {
  5140. singleStacks: !1,
  5141. drawLegendSymbol: j.drawRectangle
  5142. }), I.registerSeriesType("area", Z), Z;
  5143. }), E(h, "Series/Spline/SplineSeries.js", [h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j) {
  5144. var I = this && this.__extends || function() {
  5145. var H = function(W, R) {
  5146. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  5147. S.__proto__ = v;
  5148. } || function(S, v) {
  5149. for (var d in v)
  5150. v.hasOwnProperty(d) && (S[d] = v[d]);
  5151. }, H(W, R);
  5152. };
  5153. return function(W, R) {
  5154. function S() {
  5155. this.constructor = W;
  5156. }
  5157. H(W, R), W.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  5158. };
  5159. }(), Z = y.seriesTypes.line, F = j.merge, U = j.pick;
  5160. return j = function(H) {
  5161. function W() {
  5162. var R = H !== null && H.apply(this, arguments) || this;
  5163. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  5164. }
  5165. return I(W, H), W.prototype.getPointSpline = function(R, S, v) {
  5166. var d = S.plotX || 0, u = S.plotY || 0, P = R[v - 1];
  5167. if (v = R[v + 1], P && !P.isNull && P.doCurve !== !1 && !S.isCliff && v && !v.isNull && v.doCurve !== !1 && !S.isCliff) {
  5168. R = P.plotY || 0;
  5169. var O = v.plotX || 0;
  5170. v = v.plotY || 0;
  5171. var N = 0, C = (1.5 * d + (P.plotX || 0)) / 2.5, b = (1.5 * u + R) / 2.5;
  5172. O = (1.5 * d + O) / 2.5;
  5173. var w = (1.5 * u + v) / 2.5;
  5174. O !== C && (N = (w - b) * (O - d) / (O - C) + u - w), b += N, w += N, b > R && b > u ? (b = Math.max(R, u), w = 2 * u - b) : b < R && b < u && (b = Math.min(R, u), w = 2 * u - b), w > v && w > u ? (w = Math.max(v, u), b = 2 * u - w) : w < v && w < u && (w = Math.min(v, u), b = 2 * u - w), S.rightContX = O, S.rightContY = w;
  5175. }
  5176. return S = ["C", U(P.rightContX, P.plotX, 0), U(P.rightContY, P.plotY, 0), U(C, d, 0), U(b, u, 0), d, u], P.rightContX = P.rightContY = void 0, S;
  5177. }, W.defaultOptions = F(Z.defaultOptions), W;
  5178. }(Z), y.registerSeriesType("spline", j), j;
  5179. }), E(
  5180. h,
  5181. "Series/AreaSpline/AreaSplineSeries.js",
  5182. [h["Series/Area/AreaSeries.js"], h["Series/Spline/SplineSeries.js"], h["Core/Legend/LegendSymbol.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]],
  5183. function(y, j, I, Z, F) {
  5184. var U = this && this.__extends || function() {
  5185. var S = function(v, d) {
  5186. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, P) {
  5187. u.__proto__ = P;
  5188. } || function(u, P) {
  5189. for (var O in P)
  5190. P.hasOwnProperty(O) && (u[O] = P[O]);
  5191. }, S(v, d);
  5192. };
  5193. return function(v, d) {
  5194. function u() {
  5195. this.constructor = v;
  5196. }
  5197. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  5198. };
  5199. }(), H = y.prototype, W = F.extend, R = F.merge;
  5200. return F = function(S) {
  5201. function v() {
  5202. var d = S !== null && S.apply(this, arguments) || this;
  5203. return d.data = void 0, d.points = void 0, d.options = void 0, d;
  5204. }
  5205. return U(v, S), v.defaultOptions = R(j.defaultOptions, y.defaultOptions), v;
  5206. }(j), W(F.prototype, { getGraphPath: H.getGraphPath, getStackPoints: H.getStackPoints, drawGraph: H.drawGraph, drawLegendSymbol: I.drawRectangle }), Z.registerSeriesType("areaspline", F), F;
  5207. }
  5208. ), E(h, "Series/Column/ColumnSeries.js", [
  5209. h["Core/Animation/AnimationUtilities.js"],
  5210. h["Core/Color/Color.js"],
  5211. h["Core/Globals.js"],
  5212. h["Core/Legend/LegendSymbol.js"],
  5213. h["Core/Series/Series.js"],
  5214. h["Core/Series/SeriesRegistry.js"],
  5215. h["Core/Utilities.js"]
  5216. ], function(y, j, I, Z, F, U, H) {
  5217. var W = this && this.__extends || function() {
  5218. var c = function(p, i) {
  5219. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, s) {
  5220. l.__proto__ = s;
  5221. } || function(l, s) {
  5222. for (var t in s)
  5223. s.hasOwnProperty(t) && (l[t] = s[t]);
  5224. }, c(p, i);
  5225. };
  5226. return function(p, i) {
  5227. function l() {
  5228. this.constructor = p;
  5229. }
  5230. c(p, i), p.prototype = i === null ? Object.create(i) : (l.prototype = i.prototype, new l());
  5231. };
  5232. }(), R = y.animObject, S = j.parse, v = I.hasTouch;
  5233. y = I.noop;
  5234. var d = H.clamp, u = H.css, P = H.defined, O = H.extend, N = H.fireEvent, C = H.isArray, b = H.isNumber, w = H.merge, x = H.pick, a = H.objectEach;
  5235. return H = function(c) {
  5236. function p() {
  5237. var i = c !== null && c.apply(this, arguments) || this;
  5238. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  5239. }
  5240. return W(p, c), p.prototype.animate = function(i) {
  5241. var l = this, s = this.yAxis, t = l.options, o = this.chart.inverted, n = {}, A = o ? "translateX" : "translateY";
  5242. if (i)
  5243. n.scaleY = 1e-3, i = d(s.toPixels(t.threshold), s.pos, s.pos + s.len), o ? n.translateX = i - s.len : n.translateY = i, l.clipBox && l.setClip(), l.group.attr(n);
  5244. else {
  5245. var _ = Number(l.group.attr(A));
  5246. l.group.animate({ scaleY: 1 }, O(R(l.options.animation), { step: function(D, B) {
  5247. l.group && (n[A] = _ + B.pos * (s.pos - _), l.group.attr(n));
  5248. } }));
  5249. }
  5250. }, p.prototype.init = function(i, l) {
  5251. c.prototype.init.apply(this, arguments);
  5252. var s = this;
  5253. i = s.chart, i.hasRendered && i.series.forEach(function(t) {
  5254. t.type === s.type && (t.isDirty = !0);
  5255. });
  5256. }, p.prototype.getColumnMetrics = function() {
  5257. var i = this, l = i.options, s = i.xAxis, t = i.yAxis, o = s.options.reversedStacks;
  5258. o = s.reversed && !o || !s.reversed && o;
  5259. var n = {}, A, _ = 0;
  5260. l.grouping === !1 ? _ = 1 : i.chart.series.forEach(function(X) {
  5261. var g = X.yAxis, m = X.options;
  5262. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === g.len && t.pos === g.pos) {
  5263. if (m.stacking && m.stacking !== "group") {
  5264. A = X.stackKey, typeof n[A] > "u" && (n[A] = _++);
  5265. var L = n[A];
  5266. } else
  5267. m.grouping !== !1 && (L = _++);
  5268. X.columnIndex = L;
  5269. }
  5270. });
  5271. var D = Math.min(Math.abs(s.transA) * (s.ordinal && s.ordinal.slope || l.pointRange || s.closestPointRange || s.tickInterval || 1), s.len), B = D * l.groupPadding, T = (D - 2 * B) / (_ || 1);
  5272. return l = Math.min(l.maxPointWidth || s.len, x(l.pointWidth, T * (1 - 2 * l.pointPadding))), i.columnMetrics = { width: l, offset: (T - l) / 2 + (B + ((i.columnIndex || 0) + (o ? 1 : 0)) * T - D / 2) * (o ? -1 : 1), paddedWidth: T, columnCount: _ }, i.columnMetrics;
  5273. }, p.prototype.crispCol = function(i, l, s, t) {
  5274. var o = this.chart, n = this.borderWidth, A = -(n % 2 ? 0.5 : 0);
  5275. return n = n % 2 ? 0.5 : 1, o.inverted && o.renderer.isVML && (n += 1), this.options.crisp && (s = Math.round(i + s) + A, i = Math.round(i) + A, s -= i), t = Math.round(l + t) + n, A = 0.5 >= Math.abs(l) && 0.5 < t, l = Math.round(l) + n, t -= l, A && t && (--l, t += 1), { x: i, y: l, width: s, height: t };
  5276. }, p.prototype.adjustForMissingColumns = function(i, l, s, t) {
  5277. var o = this, n = this.options.stacking;
  5278. if (!s.isNull && 1 < t.columnCount) {
  5279. var A = 0, _ = 0;
  5280. a(this.yAxis.stacking && this.yAxis.stacking.stacks, function(D) {
  5281. if (typeof s.x == "number" && (D = D[s.x.toString()])) {
  5282. var B = D.points[o.index], T = D.total;
  5283. n ? (B && (A = _), D.hasValidPoints && _++) : C(B) && (A = B[1], _ = T || 0);
  5284. }
  5285. }), i = (s.plotX || 0) + ((_ - 1) * t.paddedWidth + l) / 2 - l - A * t.paddedWidth;
  5286. }
  5287. return i;
  5288. }, p.prototype.translate = function() {
  5289. var i = this, l = i.chart, s = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  5290. t = i.borderWidth = x(s.borderWidth, t ? 0 : 1);
  5291. var o = i.xAxis, n = i.yAxis, A = s.threshold, _ = i.translatedThreshold = n.getThreshold(A), D = x(s.minPointLength, 5), B = i.getColumnMetrics(), T = B.width, X = i.pointXOffset = B.offset, g = i.dataMin, m = i.dataMax, L = i.barW = Math.max(T, 1 + 2 * t);
  5292. l.inverted && (_ -= 0.5), s.pointPadding && (L = Math.ceil(L)), F.prototype.translate.apply(i), i.points.forEach(function(Y) {
  5293. var V = x(Y.yBottom, _), Q = 999 + Math.abs(V), k = Y.plotX || 0;
  5294. Q = d(Y.plotY, -Q, n.len + Q);
  5295. var G = Math.min(Q, V), z = Math.max(Q, V) - G, $ = T, q = k + X, it = L;
  5296. D && Math.abs(z) < D && (z = D, k = !n.reversed && !Y.negative || n.reversed && Y.negative, b(A) && b(m) && Y.y === A && m <= A && (n.min || 0) < A && (g !== m || (n.max || 0) <= A) && (k = !k), G = Math.abs(G - _) > D ? V - D : _ - (k ? D : 0)), P(Y.options.pointWidth) && ($ = it = Math.ceil(Y.options.pointWidth), q -= Math.round(($ - T) / 2)), s.centerInCategory && (q = i.adjustForMissingColumns(q, $, Y, B)), Y.barX = q, Y.pointWidth = $, Y.tooltipPos = l.inverted ? [d(n.len + n.pos - l.plotLeft - Q, n.pos - l.plotLeft, n.len + n.pos - l.plotLeft), o.len + o.pos - l.plotTop - q - it / 2, z] : [o.left - l.plotLeft + q + it / 2, d(Q + n.pos - l.plotTop, n.pos - l.plotTop, n.len + n.pos - l.plotTop), z], Y.shapeType = i.pointClass.prototype.shapeType || "rect", Y.shapeArgs = i.crispCol.apply(i, Y.isNull ? [q, _, it, 0] : [q, G, it, z]);
  5297. });
  5298. }, p.prototype.drawGraph = function() {
  5299. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  5300. }, p.prototype.pointAttribs = function(i, l) {
  5301. var s = this.options, t = this.pointAttrToOptions || {}, o = t.stroke || "borderColor", n = t["stroke-width"] || "borderWidth", A = i && i.color || this.color, _ = i && i[o] || s[o] || A;
  5302. t = i && i.options.dashStyle || s.dashStyle;
  5303. var D = i && i[n] || s[n] || this[n] || 0, B = x(i && i.opacity, s.opacity, 1);
  5304. if (i && this.zones.length) {
  5305. var T = i.getZone();
  5306. A = i.options.color || T && (T.color || i.nonZonedColor) || this.color, T && (_ = T.borderColor || _, t = T.dashStyle || t, D = T.borderWidth || D);
  5307. }
  5308. return l && i && (i = w(s.states[l], i.options.states && i.options.states[l] || {}), l = i.brightness, A = i.color || typeof l < "u" && S(A).brighten(i.brightness).get() || A, _ = i[o] || _, D = i[n] || D, t = i.dashStyle || t, B = x(i.opacity, B)), o = { fill: A, stroke: _, "stroke-width": D, opacity: B }, t && (o.dashstyle = t), o;
  5309. }, p.prototype.drawPoints = function() {
  5310. var i = this, l = this.chart, s = i.options, t = l.renderer, o = s.animationLimit || 250, n;
  5311. i.points.forEach(function(A) {
  5312. var _ = A.graphic, D = !!_, B = _ && l.pointCount < o ? "animate" : "attr";
  5313. b(A.plotY) && A.y !== null ? (n = A.shapeArgs, _ && A.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (A.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), _ || (A.graphic = _ = t[A.shapeType](n).add(A.group || i.group)) && i.enabledDataSorting && l.hasRendered && l.pointCount < o && (_.attr({ x: A.startXPos }), D = !0, B = "animate"), _ && D && _[B](w(n)), s.borderRadius && _[B]({ r: s.borderRadius }), l.styledMode || _[B](i.pointAttribs(A, A.selected && "select")).shadow(A.allowShadow !== !1 && s.shadow, null, s.stacking && !s.borderRadius), _ && (_.addClass(A.getClassName(), !0), _.attr({ visibility: A.visible ? "inherit" : "hidden" }))) : _ && (A.graphic = _.destroy());
  5314. });
  5315. }, p.prototype.drawTracker = function() {
  5316. var i = this, l = i.chart, s = l.pointer, t = function(n) {
  5317. var A = s.getPointFromEvent(n);
  5318. typeof A < "u" && (s.isDirectTouch = !0, A.onMouseOver(n));
  5319. }, o;
  5320. i.points.forEach(function(n) {
  5321. o = C(n.dataLabels) ? n.dataLabels : n.dataLabel ? [n.dataLabel] : [], n.graphic && (n.graphic.element.point = n), o.forEach(function(A) {
  5322. A.div ? A.div.point = n : A.element.point = n;
  5323. });
  5324. }), i._hasTracking || (i.trackerGroups.forEach(function(n) {
  5325. i[n] && (i[n].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(A) {
  5326. s.onTrackerMouseOut(A);
  5327. }), v && i[n].on(
  5328. "touchstart",
  5329. t
  5330. ), !l.styledMode && i.options.cursor && i[n].css(u).css({ cursor: i.options.cursor }));
  5331. }), i._hasTracking = !0), N(this, "afterDrawTracker");
  5332. }, p.prototype.remove = function() {
  5333. var i = this, l = i.chart;
  5334. l.hasRendered && l.series.forEach(function(s) {
  5335. s.type === i.type && (s.isDirty = !0);
  5336. }), F.prototype.remove.apply(i, arguments);
  5337. }, p.defaultOptions = w(F.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  5338. hover: { halo: !1, brightness: 0.1 },
  5339. select: { color: "#cccccc", borderColor: "#000000" }
  5340. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), p;
  5341. }(F), O(H.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: Z.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), U.registerSeriesType("column", H), H;
  5342. }), E(h, "Core/Series/DataLabel.js", [
  5343. h["Core/Animation/AnimationUtilities.js"],
  5344. h["Core/FormatUtilities.js"],
  5345. h["Core/Utilities.js"]
  5346. ], function(y, j, I) {
  5347. var Z = y.getDeferredAnimation, F = j.format, U = I.defined, H = I.extend, W = I.fireEvent, R = I.isArray, S = I.merge, v = I.objectEach, d = I.pick, u = I.splat, P;
  5348. return function(O) {
  5349. function N(p, i, l, s, t) {
  5350. var o = this, n = this.chart, A = this.isCartesian && n.inverted, _ = this.enabledDataSorting, D = d(p.dlBox && p.dlBox.centerX, p.plotX, -9999), B = d(p.plotY, -9999), T = i.getBBox(), X = l.rotation, g = l.align, m = n.isInsidePlot(D, Math.round(B), { inverted: A, paneCoordinates: !0, series: o }), L = function(k) {
  5351. _ && o.xAxis && !Y && o.setDataLabelStartPos(
  5352. p,
  5353. i,
  5354. t,
  5355. m,
  5356. k
  5357. );
  5358. }, Y = d(l.overflow, _ ? "none" : "justify") === "justify", V = this.visible && p.visible !== !1 && (p.series.forceDL || _ && !Y || m || d(l.inside, !!this.options.stacking) && s && n.isInsidePlot(D, A ? s.x + 1 : s.y + s.height - 1, { inverted: A, paneCoordinates: !0, series: o }));
  5359. if (V) {
  5360. var Q = n.renderer.fontMetrics(n.styledMode ? void 0 : l.style.fontSize, i).b;
  5361. s = H({ x: A ? this.yAxis.len - B : D, y: Math.round(A ? this.xAxis.len - D : B), width: 0, height: 0 }, s), H(l, { width: T.width, height: T.height }), X ? (Y = !1, D = n.renderer.rotCorr(Q, X), D = { x: s.x + (l.x || 0) + s.width / 2 + D.x, y: s.y + (l.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[l.verticalAlign] * s.height }, L(D), i[t ? "attr" : "animate"](D).attr({ align: g }), L = (X + 720) % 360, L = 180 < L && 360 > L, g === "left" ? D.y -= L ? T.height : 0 : g === "center" ? (D.x -= T.width / 2, D.y -= T.height / 2) : g === "right" && (D.x -= T.width, D.y -= L ? 0 : T.height), i.placed = !0, i.alignAttr = D) : (L(s), i.align(l, void 0, s), D = i.alignAttr), Y && 0 <= s.height ? this.justifyDataLabel(i, l, D, T, s, t) : d(l.crop, !0) && (V = n.isInsidePlot(D.x, D.y, { paneCoordinates: !0, series: o }) && n.isInsidePlot(D.x + T.width, D.y + T.height, {
  5362. paneCoordinates: !0,
  5363. series: o
  5364. })), l.shape && !X && i[t ? "attr" : "animate"]({ anchorX: A ? n.plotWidth - p.plotY : p.plotX, anchorY: A ? n.plotHeight - p.plotX : p.plotY });
  5365. }
  5366. t && _ && (i.placed = !1), V || _ && !Y || (i.hide(!0), i.placed = !1);
  5367. }
  5368. function C(p, i) {
  5369. var l = i.filter;
  5370. return l ? (i = l.operator, p = p[l.property], l = l.value, i === ">" && p > l || i === "<" && p < l || i === ">=" && p >= l || i === "<=" && p <= l || i === "==" && p == l || i === "===" && p === l) : !0;
  5371. }
  5372. function b() {
  5373. var p = this, i = p.chart, l = p.options, s = p.points, t = p.hasRendered || 0, o = i.renderer, n = l.dataLabels, A, _ = n.animation;
  5374. if (_ = n.defer ? Z(
  5375. i,
  5376. _,
  5377. p
  5378. ) : { defer: 0, duration: 0 }, n = x(x(i.options.plotOptions && i.options.plotOptions.series && i.options.plotOptions.series.dataLabels, i.options.plotOptions && i.options.plotOptions[p.type] && i.options.plotOptions[p.type].dataLabels), n), W(this, "drawDataLabels"), R(n) || n.enabled || p._hasPointLabels) {
  5379. var D = p.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", n.zIndex || 6);
  5380. D.attr({ opacity: +t }), !t && (t = p.dataLabelsGroup) && (p.visible && D.show(!0), t[l.animation ? "animate" : "attr"]({ opacity: 1 }, _)), s.forEach(function(B) {
  5381. A = u(x(n, B.dlOptions || B.options && B.options.dataLabels)), A.forEach(function(T, X) {
  5382. var g = T.enabled && (!B.isNull || B.dataLabelOnNull) && C(B, T), m = B.connectors ? B.connectors[X] : B.connector, L = B.dataLabels ? B.dataLabels[X] : B.dataLabel, Y = d(T.distance, B.labelDistance), V = !L;
  5383. if (g) {
  5384. var Q = B.getLabelConfig(), k = d(T[B.formatPrefix + "Format"], T.format);
  5385. Q = U(k) ? F(k, Q, i) : (T[B.formatPrefix + "Formatter"] || T.formatter).call(Q, T), k = T.style;
  5386. var G = T.rotation;
  5387. i.styledMode || (k.color = d(T.color, k.color, p.color, "#000000"), k.color === "contrast" ? (B.contrastColor = o.getContrast(B.color || p.color), k.color = !U(Y) && T.inside || 0 > Y || l.stacking ? B.contrastColor : "#000000") : delete B.contrastColor, l.cursor && (k.cursor = l.cursor));
  5388. var z = { r: T.borderRadius || 0, rotation: G, padding: T.padding, zIndex: 1 };
  5389. i.styledMode || (z.fill = T.backgroundColor, z.stroke = T.borderColor, z["stroke-width"] = T.borderWidth), v(z, function($, q) {
  5390. typeof $ > "u" && delete z[q];
  5391. });
  5392. }
  5393. !L || g && U(Q) && !!L.div == !!T.useHTML || (B.dataLabel = L = B.dataLabel && B.dataLabel.destroy(), B.dataLabels && (B.dataLabels.length === 1 ? delete B.dataLabels : delete B.dataLabels[X]), X || delete B.dataLabel, m && (B.connector = B.connector.destroy(), B.connectors && (B.connectors.length === 1 ? delete B.connectors : delete B.connectors[X]))), g && U(Q) && (L ? z.text = Q : (B.dataLabels = B.dataLabels || [], L = B.dataLabels[X] = G ? o.text(Q, 0, -9999, T.useHTML).addClass("highcharts-data-label") : o.label(Q, 0, -9999, T.shape, null, null, T.useHTML, null, "data-label"), X || (B.dataLabel = L), L.addClass(" highcharts-data-label-color-" + B.colorIndex + " " + (T.className || "") + (T.useHTML ? " highcharts-tracker" : ""))), L.options = T, L.attr(z), i.styledMode || L.css(k).shadow(T.shadow), L.added || L.add(D), T.textPath && !T.useHTML && (L.setTextPath(B.getDataLabelPath && B.getDataLabelPath(L) || B.graphic, T.textPath), B.dataLabelPath && !T.textPath.enabled && (B.dataLabelPath = B.dataLabelPath.destroy())), p.alignDataLabel(B, L, T, null, V));
  5394. });
  5395. });
  5396. }
  5397. W(this, "afterDrawDataLabels");
  5398. }
  5399. function w(p, i, l, s, t, o) {
  5400. var n = this.chart, A = i.align, _ = i.verticalAlign, D = p.box ? 0 : p.padding || 0, B = i.x;
  5401. B = B === void 0 ? 0 : B;
  5402. var T = i.y;
  5403. T = T === void 0 ? 0 : T;
  5404. var X = (l.x || 0) + D;
  5405. if (0 > X) {
  5406. A === "right" && 0 <= B ? (i.align = "left", i.inside = !0) : B -= X;
  5407. var g = !0;
  5408. }
  5409. return X = (l.x || 0) + s.width - D, X > n.plotWidth && (A === "left" && 0 >= B ? (i.align = "right", i.inside = !0) : B += n.plotWidth - X, g = !0), X = l.y + D, 0 > X && (_ === "bottom" && 0 <= T ? (i.verticalAlign = "top", i.inside = !0) : T -= X, g = !0), X = (l.y || 0) + s.height - D, X > n.plotHeight && (_ === "top" && 0 >= T ? (i.verticalAlign = "bottom", i.inside = !0) : T += n.plotHeight - X, g = !0), g && (i.x = B, i.y = T, p.placed = !o, p.align(i, void 0, t)), g;
  5410. }
  5411. function x(p, i) {
  5412. var l = [], s;
  5413. if (R(p) && !R(i))
  5414. l = p.map(function(t) {
  5415. return S(t, i);
  5416. });
  5417. else if (R(i) && !R(p))
  5418. l = i.map(function(t) {
  5419. return S(p, t);
  5420. });
  5421. else if (R(p) || R(i))
  5422. for (s = Math.max(p.length, i.length); s--; )
  5423. l[s] = S(p[s], i[s]);
  5424. else
  5425. l = S(p, i);
  5426. return l;
  5427. }
  5428. function a(p, i, l, s, t) {
  5429. var o = this.chart, n = o.inverted, A = this.xAxis, _ = A.reversed, D = n ? i.height / 2 : i.width / 2;
  5430. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = n ? t.x : _ ? -D - p : A.width - D + p, i.startYPos = n ? _ ? this.yAxis.height - D + p : -D - p : t.y, s ? i.visibility === "hidden" && (i.show(), i.attr({ opacity: 0 }).animate({ opacity: 1 })) : i.attr({ opacity: 1 }).animate(
  5431. { opacity: 0 },
  5432. void 0,
  5433. i.hide
  5434. ), o.hasRendered && (l && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  5435. }
  5436. var c = [];
  5437. O.compose = function(p) {
  5438. if (c.indexOf(p) === -1) {
  5439. var i = p.prototype;
  5440. c.push(p), i.alignDataLabel = N, i.drawDataLabels = b, i.justifyDataLabel = w, i.setDataLabelStartPos = a;
  5441. }
  5442. };
  5443. }(P || (P = {})), P;
  5444. }), E(h, "Series/Column/ColumnDataLabel.js", [h["Core/Series/DataLabel.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I) {
  5445. var Z = j.series, F = I.merge, U = I.pick, H;
  5446. return function(W) {
  5447. function R(v, d, u, P, O) {
  5448. var N = this.chart.inverted, C = v.series, b = (C.xAxis ? C.xAxis.len : this.chart.plotSizeX) || 0;
  5449. C = (C.yAxis ? C.yAxis.len : this.chart.plotSizeY) || 0;
  5450. var w = v.dlBox || v.shapeArgs, x = U(v.below, v.plotY > U(this.translatedThreshold, C)), a = U(u.inside, !!this.options.stacking);
  5451. w && (P = F(w), 0 > P.y && (P.height += P.y, P.y = 0), w = P.y + P.height - C, 0 < w && w < P.height && (P.height -= w), N && (P = { x: C - P.y - P.height, y: b - P.x - P.width, width: P.height, height: P.width }), a || (N ? (P.x += x ? 0 : P.width, P.width = 0) : (P.y += x ? P.height : 0, P.height = 0))), u.align = U(u.align, !N || a ? "center" : x ? "right" : "left"), u.verticalAlign = U(u.verticalAlign, N || a ? "middle" : x ? "top" : "bottom"), Z.prototype.alignDataLabel.call(this, v, d, u, P, O), u.inside && v.contrastColor && d.css({ color: v.contrastColor });
  5452. }
  5453. var S = [];
  5454. W.compose = function(v) {
  5455. y.compose(Z), S.indexOf(v) === -1 && (S.push(v), v.prototype.alignDataLabel = R);
  5456. };
  5457. }(H || (H = {})), H;
  5458. }), E(h, "Series/Bar/BarSeries.js", [h["Series/Column/ColumnSeries.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I) {
  5459. var Z = this && this.__extends || function() {
  5460. var H = function(W, R) {
  5461. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  5462. S.__proto__ = v;
  5463. } || function(S, v) {
  5464. for (var d in v)
  5465. v.hasOwnProperty(d) && (S[d] = v[d]);
  5466. }, H(W, R);
  5467. };
  5468. return function(W, R) {
  5469. function S() {
  5470. this.constructor = W;
  5471. }
  5472. H(W, R), W.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  5473. };
  5474. }(), F = I.extend, U = I.merge;
  5475. return I = function(H) {
  5476. function W() {
  5477. var R = H !== null && H.apply(this, arguments) || this;
  5478. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  5479. }
  5480. return Z(W, H), W.defaultOptions = U(
  5481. y.defaultOptions,
  5482. {}
  5483. ), W;
  5484. }(y), F(I.prototype, { inverted: !0 }), j.registerSeriesType("bar", I), I;
  5485. }), E(h, "Series/Scatter/ScatterSeries.js", [h["Series/Column/ColumnSeries.js"], h["Series/Line/LineSeries.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I, Z) {
  5486. var F = this && this.__extends || function() {
  5487. var R = function(S, v) {
  5488. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, u) {
  5489. d.__proto__ = u;
  5490. } || function(d, u) {
  5491. for (var P in u)
  5492. u.hasOwnProperty(P) && (d[P] = u[P]);
  5493. }, R(S, v);
  5494. };
  5495. return function(S, v) {
  5496. function d() {
  5497. this.constructor = S;
  5498. }
  5499. R(S, v), S.prototype = v === null ? Object.create(v) : (d.prototype = v.prototype, new d());
  5500. };
  5501. }(), U = Z.addEvent, H = Z.extend, W = Z.merge;
  5502. return Z = function(R) {
  5503. function S() {
  5504. var v = R !== null && R.apply(this, arguments) || this;
  5505. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  5506. }
  5507. return F(S, R), S.prototype.applyJitter = function() {
  5508. var v = this, d = this.options.jitter, u = this.points.length;
  5509. d && this.points.forEach(function(P, O) {
  5510. ["x", "y"].forEach(function(N, C) {
  5511. var b = "plot" + N.toUpperCase();
  5512. if (d[N] && !P.isNull) {
  5513. var w = v[N + "Axis"], x = d[N] * w.transA;
  5514. if (w && !w.isLog) {
  5515. var a = Math.max(0, P[b] - x);
  5516. w = Math.min(w.len, P[b] + x), C = 1e4 * Math.sin(O + C * u), P[b] = a + (w - a) * (C - Math.floor(C)), N === "x" && (P.clientX = P.plotX);
  5517. }
  5518. }
  5519. });
  5520. });
  5521. }, S.prototype.drawGraph = function() {
  5522. this.options.lineWidth ? R.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  5523. }, S.defaultOptions = W(j.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  5524. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  5525. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  5526. } }), S;
  5527. }(j), H(Z.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), U(Z, "afterTranslate", function() {
  5528. this.applyJitter();
  5529. }), I.registerSeriesType("scatter", Z), Z;
  5530. }), E(h, "Series/CenteredUtilities.js", [h["Core/Globals.js"], h["Core/Series/Series.js"], h["Core/Utilities.js"]], function(y, j, I) {
  5531. var Z = y.deg2rad, F = I.isNumber, U = I.pick, H = I.relativeLength, W;
  5532. return function(R) {
  5533. R.getCenter = function() {
  5534. var S = this.options, v = this.chart, d = 2 * (S.slicedOffset || 0), u = v.plotWidth - 2 * d, P = v.plotHeight - 2 * d, O = S.center, N = Math.min(u, P), C = S.size, b = S.innerSize || 0;
  5535. for (typeof C == "string" && (C = parseFloat(C)), typeof b == "string" && (b = parseFloat(b)), S = [U(O[0], "50%"), U(O[1], "50%"), U(C && 0 > C ? void 0 : S.size, "100%"), U(b && 0 > b ? void 0 : S.innerSize || 0, "0%")], !v.angular || this instanceof j || (S[3] = 0), O = 0; 4 > O; ++O)
  5536. C = S[O], v = 2 > O || O === 2 && /%$/.test(C), S[O] = H(C, [u, P, N, S[2]][O]) + (v ? d : 0);
  5537. return S[3] > S[2] && (S[3] = S[2]), S;
  5538. }, R.getStartAndEndRadians = function(S, v) {
  5539. return S = F(S) ? S : 0, v = F(v) && v > S && 360 > v - S ? v : S + 360, { start: Z * (S + -90), end: Z * (v + -90) };
  5540. };
  5541. }(W || (W = {})), W;
  5542. }), E(h, "Series/Pie/PiePoint.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Series/Point.js"], h["Core/Utilities.js"]], function(y, j, I) {
  5543. var Z = this && this.__extends || function() {
  5544. var v = function(d, u) {
  5545. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  5546. P.__proto__ = O;
  5547. } || function(P, O) {
  5548. for (var N in O)
  5549. O.hasOwnProperty(N) && (P[N] = O[N]);
  5550. }, v(d, u);
  5551. };
  5552. return function(d, u) {
  5553. function P() {
  5554. this.constructor = d;
  5555. }
  5556. v(d, u), d.prototype = u === null ? Object.create(u) : (P.prototype = u.prototype, new P());
  5557. };
  5558. }(), F = y.setAnimation, U = I.addEvent, H = I.defined;
  5559. y = I.extend;
  5560. var W = I.isNumber, R = I.pick, S = I.relativeLength;
  5561. return j = function(v) {
  5562. function d() {
  5563. var u = v !== null && v.apply(this, arguments) || this;
  5564. return u.labelDistance = void 0, u.options = void 0, u.series = void 0, u;
  5565. }
  5566. return Z(d, v), d.prototype.getConnectorPath = function() {
  5567. var u = this.labelPosition, P = this.series.options.dataLabels, O = this.connectorShapes, N = P.connectorShape;
  5568. return O[N] && (N = O[N]), N.call(this, { x: u.final.x, y: u.final.y, alignment: u.alignment }, u.connectorPosition, P);
  5569. }, d.prototype.getTranslate = function() {
  5570. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  5571. }, d.prototype.haloPath = function(u) {
  5572. var P = this.shapeArgs;
  5573. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(P.x, P.y, P.r + u, P.r + u, { innerR: P.r - 1, start: P.start, end: P.end });
  5574. }, d.prototype.init = function() {
  5575. var u = this;
  5576. v.prototype.init.apply(
  5577. this,
  5578. arguments
  5579. ), this.name = R(this.name, "Slice");
  5580. var P = function(O) {
  5581. u.slice(O.type === "select");
  5582. };
  5583. return U(this, "select", P), U(this, "unselect", P), this;
  5584. }, d.prototype.isValid = function() {
  5585. return W(this.y) && 0 <= this.y;
  5586. }, d.prototype.setVisible = function(u, P) {
  5587. var O = this, N = this.series, C = N.chart, b = N.options.ignoreHiddenPoint;
  5588. P = R(P, b), u !== this.visible && (this.visible = this.options.visible = u = typeof u > "u" ? !this.visible : u, N.options.data[N.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(w) {
  5589. O[w] && O[w][u ? "show" : "hide"](u);
  5590. }), this.legendItem && C.legend.colorizeItem(this, u), u || this.state !== "hover" || this.setState(""), b && (N.isDirty = !0), P && C.redraw());
  5591. }, d.prototype.slice = function(u, P, O) {
  5592. var N = this.series;
  5593. F(O, N.chart), R(P, !0), this.sliced = this.options.sliced = H(u) ? u : !this.sliced, N.options.data[N.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  5594. }, d;
  5595. }(j), y(j.prototype, { connectorShapes: { fixedOffset: function(v, d, u) {
  5596. var P = d.breakAt;
  5597. return d = d.touchingSliceAt, [["M", v.x, v.y], u.softConnector ? ["C", v.x + (v.alignment === "left" ? -5 : 5), v.y, 2 * P.x - d.x, 2 * P.y - d.y, P.x, P.y] : ["L", P.x, P.y], ["L", d.x, d.y]];
  5598. }, straight: function(v, d) {
  5599. return d = d.touchingSliceAt, [["M", v.x, v.y], ["L", d.x, d.y]];
  5600. }, crookedLine: function(v, d, u) {
  5601. d = d.touchingSliceAt;
  5602. var P = this.series, O = P.center[0], N = P.chart.plotWidth, C = P.chart.plotLeft;
  5603. P = v.alignment;
  5604. var b = this.shapeArgs.r;
  5605. return u = S(u.crookDistance, 1), N = P === "left" ? O + b + (N + C - O - b) * (1 - u) : C + (O - b) * u, u = ["L", N, v.y], O = !0, (P === "left" ? N > v.x || N < d.x : N < v.x || N > d.x) && (O = !1), v = [["M", v.x, v.y]], O && v.push(u), v.push(["L", d.x, d.y]), v;
  5606. } } }), j;
  5607. }), E(h, "Series/Pie/PieSeries.js", [h["Series/CenteredUtilities.js"], h["Series/Column/ColumnSeries.js"], h["Core/Globals.js"], h["Core/Legend/LegendSymbol.js"], h["Series/Pie/PiePoint.js"], h["Core/Series/Series.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Renderer/SVG/Symbols.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U, H, W, R) {
  5608. var S = this && this.__extends || function() {
  5609. var b = function(w, x) {
  5610. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, c) {
  5611. a.__proto__ = c;
  5612. } || function(a, c) {
  5613. for (var p in c)
  5614. c.hasOwnProperty(p) && (a[p] = c[p]);
  5615. }, b(w, x);
  5616. };
  5617. return function(w, x) {
  5618. function a() {
  5619. this.constructor = w;
  5620. }
  5621. b(w, x), w.prototype = x === null ? Object.create(x) : (a.prototype = x.prototype, new a());
  5622. };
  5623. }(), v = y.getStartAndEndRadians;
  5624. I = I.noop;
  5625. var d = R.clamp, u = R.extend, P = R.fireEvent, O = R.merge, N = R.pick, C = R.relativeLength;
  5626. return R = function(b) {
  5627. function w() {
  5628. var x = b !== null && b.apply(this, arguments) || this;
  5629. return x.center = void 0, x.data = void 0, x.maxLabelDistance = void 0, x.options = void 0, x.points = void 0, x;
  5630. }
  5631. return S(w, b), w.prototype.animate = function(x) {
  5632. var a = this, c = a.points, p = a.startAngleRad;
  5633. x || c.forEach(function(i) {
  5634. var l = i.graphic, s = i.shapeArgs;
  5635. l && s && (l.attr({ r: N(i.startR, a.center && a.center[3] / 2), start: p, end: p }), l.animate({ r: s.r, start: s.start, end: s.end }, a.options.animation));
  5636. });
  5637. }, w.prototype.drawEmpty = function() {
  5638. var x = this.startAngleRad, a = this.endAngleRad, c = this.options;
  5639. if (this.total === 0 && this.center) {
  5640. var p = this.center[0], i = this.center[1];
  5641. this.graph || (this.graph = this.chart.renderer.arc(p, i, this.center[1] / 2, 0, x, a).addClass("highcharts-empty-series").add(this.group)), this.graph.attr({ d: W.arc(p, i, this.center[2] / 2, 0, { start: x, end: a, innerR: this.center[3] / 2 }) }), this.chart.styledMode || this.graph.attr({ "stroke-width": c.borderWidth, fill: c.fillColor || "none", stroke: c.color || "#cccccc" });
  5642. } else
  5643. this.graph && (this.graph = this.graph.destroy());
  5644. }, w.prototype.drawPoints = function() {
  5645. var x = this.chart.renderer;
  5646. this.points.forEach(function(a) {
  5647. a.graphic && a.hasNewShapeType() && (a.graphic = a.graphic.destroy()), a.graphic || (a.graphic = x[a.shapeType](a.shapeArgs).add(a.series.group), a.delayedRendering = !0);
  5648. });
  5649. }, w.prototype.generatePoints = function() {
  5650. b.prototype.generatePoints.call(this), this.updateTotals();
  5651. }, w.prototype.getX = function(x, a, c) {
  5652. var p = this.center, i = this.radii ? this.radii[c.index] || 0 : p[2] / 2;
  5653. return x = Math.asin(d((x - p[1]) / (i + c.labelDistance), -1, 1)), p[0] + (a ? -1 : 1) * Math.cos(x) * (i + c.labelDistance) + (0 < c.labelDistance ? (a ? -1 : 1) * this.options.dataLabels.padding : 0);
  5654. }, w.prototype.hasData = function() {
  5655. return !!this.processedXData.length;
  5656. }, w.prototype.redrawPoints = function() {
  5657. var x = this, a = x.chart, c = a.renderer, p = x.options.shadow, i, l, s, t;
  5658. this.drawEmpty(), !p || x.shadowGroup || a.styledMode || (x.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(x.group)), x.points.forEach(function(o) {
  5659. var n = {};
  5660. if (l = o.graphic, !o.isNull && l) {
  5661. var A = void 0;
  5662. t = o.shapeArgs, i = o.getTranslate(), a.styledMode || (A = o.shadowGroup, p && !A && (A = o.shadowGroup = c.g("shadow").add(x.shadowGroup)), A && A.attr(i), s = x.pointAttribs(o, o.selected && "select")), o.delayedRendering ? (l.setRadialReference(x.center).attr(t).attr(i), a.styledMode || l.attr(s).attr({ "stroke-linejoin": "round" }).shadow(p, A), o.delayedRendering = !1) : (l.setRadialReference(x.center), a.styledMode || O(!0, n, s), O(!0, n, t, i), l.animate(n)), l.attr({ visibility: o.visible ? "inherit" : "hidden" }), l.addClass(o.getClassName(), !0);
  5663. } else
  5664. l && (o.graphic = l.destroy());
  5665. });
  5666. }, w.prototype.sortByAngle = function(x, a) {
  5667. x.sort(function(c, p) {
  5668. return typeof c.angle < "u" && (p.angle - c.angle) * a;
  5669. });
  5670. }, w.prototype.translate = function(x) {
  5671. this.generatePoints();
  5672. var a = this.options, c = a.slicedOffset, p = c + (a.borderWidth || 0), i = v(a.startAngle, a.endAngle), l = this.startAngleRad = i.start;
  5673. i = (this.endAngleRad = i.end) - l;
  5674. var s = this.points, t = a.dataLabels.distance;
  5675. a = a.ignoreHiddenPoint;
  5676. var o = s.length, n, A = 0;
  5677. for (x || (this.center = x = this.getCenter()), n = 0; n < o; n++) {
  5678. var _ = s[n], D = l + A * i;
  5679. !_.isValid() || a && !_.visible || (A += _.percentage / 100);
  5680. var B = l + A * i, T = { x: x[0], y: x[1], r: x[2] / 2, innerR: x[3] / 2, start: Math.round(1e3 * D) / 1e3, end: Math.round(1e3 * B) / 1e3 };
  5681. _.shapeType = "arc", _.shapeArgs = T, _.labelDistance = N(_.options.dataLabels && _.options.dataLabels.distance, t), _.labelDistance = C(_.labelDistance, T.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, _.labelDistance), B = (B + D) / 2, B > 1.5 * Math.PI ? B -= 2 * Math.PI : B < -Math.PI / 2 && (B += 2 * Math.PI), _.slicedTranslation = { translateX: Math.round(Math.cos(B) * c), translateY: Math.round(Math.sin(B) * c) }, T = Math.cos(B) * x[2] / 2;
  5682. var X = Math.sin(B) * x[2] / 2;
  5683. _.tooltipPos = [x[0] + 0.7 * T, x[1] + 0.7 * X], _.half = B < -Math.PI / 2 || B > Math.PI / 2 ? 1 : 0, _.angle = B, D = Math.min(p, _.labelDistance / 5), _.labelPosition = { natural: { x: x[0] + T + Math.cos(B) * _.labelDistance, y: x[1] + X + Math.sin(B) * _.labelDistance }, final: {}, alignment: 0 > _.labelDistance ? "center" : _.half ? "right" : "left", connectorPosition: { breakAt: { x: x[0] + T + Math.cos(B) * D, y: x[1] + X + Math.sin(B) * D }, touchingSliceAt: { x: x[0] + T, y: x[1] + X } } };
  5684. }
  5685. P(this, "afterTranslate");
  5686. }, w.prototype.updateTotals = function() {
  5687. var x = this.points, a = x.length, c = this.options.ignoreHiddenPoint, p, i = 0;
  5688. for (p = 0; p < a; p++) {
  5689. var l = x[p];
  5690. !l.isValid() || c && !l.visible || (i += l.y);
  5691. }
  5692. for (this.total = i, p = 0; p < a; p++)
  5693. l = x[p], l.percentage = 0 < i && (l.visible || !c) ? l.y / i * 100 : 0, l.total = i;
  5694. }, w.defaultOptions = O(U.defaultOptions, {
  5695. center: [null, null],
  5696. clip: !1,
  5697. colorByPoint: !0,
  5698. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  5699. return this.point.isNull ? void 0 : this.point.name;
  5700. }, softConnector: !0, x: 0 },
  5701. fillColor: void 0,
  5702. ignoreHiddenPoint: !0,
  5703. inactiveOtherPoints: !0,
  5704. legendType: "point",
  5705. marker: null,
  5706. size: null,
  5707. showInLegend: !1,
  5708. slicedOffset: 10,
  5709. stickyTracking: !1,
  5710. tooltip: { followPointer: !0 },
  5711. borderColor: "#ffffff",
  5712. borderWidth: 1,
  5713. lineWidth: void 0,
  5714. states: { hover: { brightness: 0.1 } }
  5715. }), w;
  5716. }(U), u(R.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: Z.drawRectangle, drawTracker: j.prototype.drawTracker, getCenter: y.getCenter, getSymbol: I, isCartesian: !1, noSharedTooltip: !0, pointAttribs: j.prototype.pointAttribs, pointClass: F, requireSorting: !1, searchPoint: I, trackerGroups: ["group", "dataLabelsGroup"] }), H.registerSeriesType("pie", R), R;
  5717. }), E(h, "Series/Pie/PieDataLabel.js", [
  5718. h["Core/Series/DataLabel.js"],
  5719. h["Core/Globals.js"],
  5720. h["Core/Renderer/RendererUtilities.js"],
  5721. h["Core/Series/SeriesRegistry.js"],
  5722. h["Core/Utilities.js"]
  5723. ], function(y, j, I, Z, F) {
  5724. var U = j.noop, H = I.distribute, W = Z.series, R = F.arrayMax, S = F.clamp, v = F.defined, d = F.merge, u = F.pick, P = F.relativeLength, O;
  5725. return function(N) {
  5726. function C() {
  5727. var c = this, p = c.data, i = c.chart, l = c.options.dataLabels || {}, s = l.connectorPadding, t = i.plotWidth, o = i.plotHeight, n = i.plotLeft, A = Math.round(i.chartWidth / 3), _ = c.center, D = _[2] / 2, B = _[1], T = [[], []], X = [0, 0, 0, 0], g = c.dataLabelPositioners, m, L, Y, V, Q, k, G, z, $, q, it, et;
  5728. c.visible && (l.enabled || c._hasPointLabels) && (p.forEach(function(nt) {
  5729. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  5730. }), W.prototype.drawDataLabels.apply(c), p.forEach(function(nt) {
  5731. nt.dataLabel && (nt.visible ? (T[nt.half].push(nt), nt.dataLabel._pos = null, !v(l.style.width) && !v(nt.options.dataLabels && nt.options.dataLabels.style && nt.options.dataLabels.style.width) && nt.dataLabel.getBBox().width > A && (nt.dataLabel.css({ width: Math.round(0.7 * A) + "px" }), nt.dataLabel.shortened = !0)) : (nt.dataLabel = nt.dataLabel.destroy(), nt.dataLabels && nt.dataLabels.length === 1 && delete nt.dataLabels));
  5732. }), T.forEach(function(nt, rt) {
  5733. var ct = nt.length, gt = [], dt;
  5734. if (ct) {
  5735. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  5736. var lt = Math.max(0, B - D - c.maxLabelDistance), at = Math.min(B + D + c.maxLabelDistance, i.plotHeight);
  5737. nt.forEach(function(J) {
  5738. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, B - D - J.labelDistance), J.bottom = Math.min(B + D + J.labelDistance, i.plotHeight), dt = J.dataLabel.getBBox().height || 21, J.distributeBox = { target: J.labelPosition.natural.y - J.top + dt / 2, size: dt, rank: J.y }, gt.push(J.distributeBox));
  5739. }), lt = at + dt - lt, H(gt, lt, lt / 5);
  5740. }
  5741. for (it = 0; it < ct; it++) {
  5742. if (m = nt[it], k = m.labelPosition, V = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", $ = lt = k.natural.y, gt && v(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (G = m.distributeBox.size, $ = g.radialDistributionY(m))), delete m.positionIndex, l.justify)
  5743. z = g.justify(m, D, _);
  5744. else
  5745. switch (l.alignTo) {
  5746. case "connectors":
  5747. z = g.alignToConnectors(nt, rt, t, n);
  5748. break;
  5749. case "plotEdges":
  5750. z = g.alignToPlotEdges(V, rt, t, n);
  5751. break;
  5752. default:
  5753. z = g.radialDistributionX(c, m, $, lt);
  5754. }
  5755. V._attr = { visibility: q, align: k.alignment }, et = m.options.dataLabels || {}, V._pos = { x: z + u(et.x, l.x) + ({ left: s, right: -s }[k.alignment] || 0), y: $ + u(et.y, l.y) - 10 }, k.final.x = z, k.final.y = $, u(l.crop, !0) && (Q = V.getBBox().width, lt = null, z - Q < s && rt === 1 ? (lt = Math.round(Q - z + s), X[3] = Math.max(lt, X[3])) : z + Q > t - s && rt === 0 && (lt = Math.round(z + Q - t + s), X[1] = Math.max(lt, X[1])), 0 > $ - G / 2 ? X[0] = Math.max(Math.round(-$ + G / 2), X[0]) : $ + G / 2 > o && (X[2] = Math.max(Math.round($ + G / 2 - o), X[2])), V.sideOverflow = lt);
  5756. }
  5757. }
  5758. }), R(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  5759. if (et = d(l, nt.options.dataLabels), L = u(et.connectorWidth, 1)) {
  5760. var rt;
  5761. Y = nt.connector, (V = nt.dataLabel) && V._pos && nt.visible && 0 < nt.labelDistance ? (q = V._attr.visibility, (rt = !Y) && (nt.connector = Y = i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + nt.colorIndex + (nt.className ? " " + nt.className : "")).add(c.dataLabelsGroup), i.styledMode || Y.attr({ "stroke-width": L, stroke: et.connectorColor || nt.color || "#666666" })), Y[rt ? "attr" : "animate"]({ d: nt.getConnectorPath() }), Y.attr("visibility", q)) : Y && (nt.connector = Y.destroy());
  5762. }
  5763. }));
  5764. }
  5765. function b() {
  5766. this.points.forEach(function(c) {
  5767. var p = c.dataLabel, i;
  5768. p && c.visible && ((i = p._pos) ? (p.sideOverflow && (p._attr.width = Math.max(p.getBBox().width - p.sideOverflow, 0), p.css({ width: p._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), p.shortened = !0), p.attr(p._attr), p[p.moved ? "animate" : "attr"](i), p.moved = !0) : p && p.attr({ y: -9999 })), delete c.distributeBox;
  5769. }, this);
  5770. }
  5771. function w(c) {
  5772. var p = this.center, i = this.options, l = i.center, s = i.minSize || 80, t = i.size !== null;
  5773. if (!t) {
  5774. if (l[0] !== null)
  5775. var o = Math.max(p[2] - Math.max(c[1], c[3]), s);
  5776. else
  5777. o = Math.max(p[2] - c[1] - c[3], s), p[0] += (c[3] - c[1]) / 2;
  5778. l[1] !== null ? o = S(o, s, p[2] - Math.max(c[0], c[2])) : (o = S(o, s, p[2] - c[0] - c[2]), p[1] += (c[0] - c[2]) / 2), o < p[2] ? (p[2] = o, p[3] = Math.min(P(i.innerSize || 0, o), o), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  5779. }
  5780. return t;
  5781. }
  5782. var x = [], a = { radialDistributionY: function(c) {
  5783. return c.top + c.distributeBox.pos;
  5784. }, radialDistributionX: function(c, p, i, l) {
  5785. return c.getX(i < p.top + 2 || i > p.bottom - 2 ? l : i, p.half, p);
  5786. }, justify: function(c, p, i) {
  5787. return i[0] + (c.half ? -1 : 1) * (p + c.labelDistance);
  5788. }, alignToPlotEdges: function(c, p, i, l) {
  5789. return c = c.getBBox().width, p ? c + l : i - c - l;
  5790. }, alignToConnectors: function(c, p, i, l) {
  5791. var s = 0, t;
  5792. return c.forEach(function(o) {
  5793. t = o.dataLabel.getBBox().width, t > s && (s = t);
  5794. }), p ? s + l : i - s - l;
  5795. } };
  5796. N.compose = function(c) {
  5797. y.compose(W), x.indexOf(c) === -1 && (x.push(c), c = c.prototype, c.dataLabelPositioners = a, c.alignDataLabel = U, c.drawDataLabels = C, c.placeDataLabels = b, c.verifyDataLabelOverflow = w);
  5798. };
  5799. }(O || (O = {})), O;
  5800. }), E(h, "Extensions/OverlappingDataLabels.js", [h["Core/Chart/Chart.js"], h["Core/Utilities.js"]], function(y, j) {
  5801. function I(S, v) {
  5802. var d = !1;
  5803. if (S) {
  5804. var u = S.newOpacity;
  5805. S.oldOpacity !== u && (S.alignAttr && S.placed ? (S[u ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), d = !0, S.alignAttr.opacity = u, S[S.isOld ? "animate" : "attr"](S.alignAttr, null, function() {
  5806. v.styledMode || S.css({ pointerEvents: u ? "auto" : "none" });
  5807. }), F(v, "afterHideOverlappingLabel")) : S.attr({ opacity: u })), S.isOld = !0;
  5808. }
  5809. return d;
  5810. }
  5811. var Z = j.addEvent, F = j.fireEvent, U = j.isArray, H = j.isNumber, W = j.objectEach, R = j.pick;
  5812. Z(y, "render", function() {
  5813. var S = this, v = [];
  5814. (this.labelCollectors || []).forEach(function(d) {
  5815. v = v.concat(d());
  5816. }), (this.yAxis || []).forEach(function(d) {
  5817. d.stacking && d.options.stackLabels && !d.options.stackLabels.allowOverlap && W(d.stacking.stacks, function(u) {
  5818. W(u, function(P) {
  5819. P.label && P.label.visibility !== "hidden" && v.push(P.label);
  5820. });
  5821. });
  5822. }), (this.series || []).forEach(function(d) {
  5823. var u = d.options.dataLabels;
  5824. d.visible && (u.enabled !== !1 || d._hasPointLabels) && (u = function(P) {
  5825. return P.forEach(function(O) {
  5826. O.visible && (U(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(N) {
  5827. var C = N.options;
  5828. N.labelrank = R(C.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), C.allowOverlap ? (N.oldOpacity = N.opacity, N.newOpacity = 1, I(N, S)) : v.push(N);
  5829. });
  5830. });
  5831. }, u(d.nodes || []), u(d.points));
  5832. }), this.hideOverlappingLabels(v);
  5833. }), y.prototype.hideOverlappingLabels = function(S) {
  5834. var v = this, d = S.length, u = v.renderer, P, O, N, C = !1, b = function(a) {
  5835. var c, p = a.box ? 0 : a.padding || 0, i = c = 0, l;
  5836. if (a && (!a.alignAttr || a.placed)) {
  5837. var s = a.alignAttr || { x: a.attr("x"), y: a.attr("y") }, t = a.parentGroup;
  5838. a.width || (c = a.getBBox(), a.width = c.width, a.height = c.height, c = u.fontMetrics(null, a.element).h);
  5839. var o = a.width - 2 * p;
  5840. return (l = { left: "0", center: "0.5", right: "1" }[a.alignValue]) ? i = +l * o : H(a.x) && Math.round(a.x) !== a.translateX && (i = a.x - a.translateX), { x: s.x + (t.translateX || 0) + p - (i || 0), y: s.y + (t.translateY || 0) + p - c, width: a.width - 2 * p, height: a.height - 2 * p };
  5841. }
  5842. };
  5843. for (O = 0; O < d; O++)
  5844. (P = S[O]) && (P.oldOpacity = P.opacity, P.newOpacity = 1, P.absoluteBox = b(P));
  5845. for (S.sort(function(a, c) {
  5846. return (c.labelrank || 0) - (a.labelrank || 0);
  5847. }), O = 0; O < d; O++) {
  5848. var w = (b = S[O]) && b.absoluteBox;
  5849. for (P = O + 1; P < d; ++P) {
  5850. var x = (N = S[P]) && N.absoluteBox;
  5851. !w || !x || b === N || b.newOpacity === 0 || N.newOpacity === 0 || x.x >= w.x + w.width || x.x + x.width <= w.x || x.y >= w.y + w.height || x.y + x.height <= w.y || ((b.labelrank < N.labelrank ? b : N).newOpacity = 0);
  5852. }
  5853. }
  5854. S.forEach(function(a) {
  5855. I(a, v) && (C = !0);
  5856. }), C && F(v, "afterHideAllOverlappingLabels");
  5857. };
  5858. }), E(
  5859. h,
  5860. "Core/Responsive.js",
  5861. [h["Core/Utilities.js"]],
  5862. function(y) {
  5863. var j = y.extend, I = y.find, Z = y.isArray, F = y.isObject, U = y.merge, H = y.objectEach, W = y.pick, R = y.splat, S = y.uniqueKey, v;
  5864. return function(d) {
  5865. var u = [];
  5866. d.compose = function(O) {
  5867. return u.indexOf(O) === -1 && (u.push(O), j(O.prototype, P.prototype)), O;
  5868. };
  5869. var P = function() {
  5870. function O() {
  5871. }
  5872. return O.prototype.currentOptions = function(N) {
  5873. function C(x, a, c, p) {
  5874. var i;
  5875. H(x, function(l, s) {
  5876. if (!p && -1 < b.collectionsWithUpdate.indexOf(s) && a[s])
  5877. for (l = R(l), c[s] = [], i = 0; i < Math.max(l.length, a[s].length); i++)
  5878. a[s][i] && (l[i] === void 0 ? c[s][i] = a[s][i] : (c[s][i] = {}, C(l[i], a[s][i], c[s][i], p + 1)));
  5879. else
  5880. F(l) ? (c[s] = Z(l) ? [] : {}, C(l, a[s] || {}, c[s], p + 1)) : c[s] = typeof a[s] > "u" ? null : a[s];
  5881. });
  5882. }
  5883. var b = this, w = {};
  5884. return C(N, this.options, w, 0), w;
  5885. }, O.prototype.matchResponsiveRule = function(N, C) {
  5886. var b = N.condition;
  5887. (b.callback || function() {
  5888. return this.chartWidth <= W(b.maxWidth, Number.MAX_VALUE) && this.chartHeight <= W(b.maxHeight, Number.MAX_VALUE) && this.chartWidth >= W(b.minWidth, 0) && this.chartHeight >= W(b.minHeight, 0);
  5889. }).call(this) && C.push(N._id);
  5890. }, O.prototype.setResponsive = function(N, C) {
  5891. var b = this, w = this.options.responsive, x = this.currentResponsive, a = [];
  5892. !C && w && w.rules && w.rules.forEach(function(c) {
  5893. typeof c._id > "u" && (c._id = S()), b.matchResponsiveRule(c, a);
  5894. }, this), C = U.apply(void 0, a.map(function(c) {
  5895. return I((w || {}).rules || [], function(p) {
  5896. return p._id === c;
  5897. });
  5898. }).map(function(c) {
  5899. return c && c.chartOptions;
  5900. })), C.isResponsiveOptions = !0, a = a.toString() || void 0, a !== (x && x.ruleIds) && (x && this.update(x.undoOptions, N, !0), a ? (x = this.currentOptions(C), x.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: a, mergedOptions: C, undoOptions: x }, this.update(C, N, !0)) : this.currentResponsive = void 0);
  5901. }, O;
  5902. }();
  5903. }(v || (v = {})), v;
  5904. }
  5905. ), E(h, "masters/highcharts.src.js", [
  5906. h["Core/Globals.js"],
  5907. h["Core/Utilities.js"],
  5908. h["Core/DefaultOptions.js"],
  5909. h["Core/Animation/Fx.js"],
  5910. h["Core/Animation/AnimationUtilities.js"],
  5911. h["Core/Renderer/HTML/AST.js"],
  5912. h["Core/FormatUtilities.js"],
  5913. h["Core/Renderer/RendererUtilities.js"],
  5914. h["Core/Renderer/SVG/SVGElement.js"],
  5915. h["Core/Renderer/SVG/SVGRenderer.js"],
  5916. h["Core/Renderer/HTML/HTMLElement.js"],
  5917. h["Core/Renderer/HTML/HTMLRenderer.js"],
  5918. h["Core/Axis/Axis.js"],
  5919. h["Core/Axis/DateTimeAxis.js"],
  5920. h["Core/Axis/LogarithmicAxis.js"],
  5921. h["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  5922. h["Core/Axis/Tick.js"],
  5923. h["Core/Tooltip.js"],
  5924. h["Core/Series/Point.js"],
  5925. h["Core/Pointer.js"],
  5926. h["Core/MSPointer.js"],
  5927. h["Core/Legend/Legend.js"],
  5928. h["Core/Chart/Chart.js"],
  5929. h["Core/Series/Series.js"],
  5930. h["Core/Series/SeriesRegistry.js"],
  5931. h["Series/Column/ColumnSeries.js"],
  5932. h["Series/Column/ColumnDataLabel.js"],
  5933. h["Series/Pie/PieSeries.js"],
  5934. h["Series/Pie/PieDataLabel.js"],
  5935. h["Core/Series/DataLabel.js"],
  5936. h["Core/Responsive.js"],
  5937. h["Core/Color/Color.js"],
  5938. h["Core/Time.js"]
  5939. ], function(y, j, I, Z, F, U, H, W, R, S, v, d, u, P, O, N, C, b, w, x, a, c, p, i, l, s, t, o, n, A, _, D, B) {
  5940. return y.animate = F.animate, y.animObject = F.animObject, y.getDeferredAnimation = F.getDeferredAnimation, y.setAnimation = F.setAnimation, y.stop = F.stop, y.timers = Z.timers, y.AST = U, y.Axis = u, y.Chart = p, y.chart = p.chart, y.Fx = Z, y.Legend = c, y.PlotLineOrBand = N, y.Point = w, y.Pointer = a.isRequired() ? a : x, y.Series = i, y.SVGElement = R, y.SVGRenderer = S, y.Tick = C, y.Time = B, y.Tooltip = b, y.Color = D, y.color = D.parse, d.compose(S), v.compose(R), y.defaultOptions = I.defaultOptions, y.getOptions = I.getOptions, y.time = I.defaultTime, y.setOptions = I.setOptions, y.dateFormat = H.dateFormat, y.format = H.format, y.numberFormat = H.numberFormat, y.addEvent = j.addEvent, y.arrayMax = j.arrayMax, y.arrayMin = j.arrayMin, y.attr = j.attr, y.clearTimeout = j.clearTimeout, y.correctFloat = j.correctFloat, y.createElement = j.createElement, y.css = j.css, y.defined = j.defined, y.destroyObjectProperties = j.destroyObjectProperties, y.discardElement = j.discardElement, y.distribute = W.distribute, y.erase = j.erase, y.error = j.error, y.extend = j.extend, y.extendClass = j.extendClass, y.find = j.find, y.fireEvent = j.fireEvent, y.getMagnitude = j.getMagnitude, y.getStyle = j.getStyle, y.inArray = j.inArray, y.isArray = j.isArray, y.isClass = j.isClass, y.isDOMElement = j.isDOMElement, y.isFunction = j.isFunction, y.isNumber = j.isNumber, y.isObject = j.isObject, y.isString = j.isString, y.keys = j.keys, y.merge = j.merge, y.normalizeTickInterval = j.normalizeTickInterval, y.objectEach = j.objectEach, y.offset = j.offset, y.pad = j.pad, y.pick = j.pick, y.pInt = j.pInt, y.relativeLength = j.relativeLength, y.removeEvent = j.removeEvent, y.seriesType = l.seriesType, y.splat = j.splat, y.stableSort = j.stableSort, y.syncTimeout = j.syncTimeout, y.timeUnits = j.timeUnits, y.uniqueKey = j.uniqueKey, y.useSerialIds = j.useSerialIds, y.wrap = j.wrap, t.compose(s), A.compose(i), P.compose(u), O.compose(u), n.compose(o), N.compose(u), _.compose(p), y;
  5941. }), E(h, "Core/Axis/OrdinalAxis.js", [
  5942. h["Core/Axis/Axis.js"],
  5943. h["Core/Globals.js"],
  5944. h["Core/Series/Series.js"],
  5945. h["Core/Utilities.js"]
  5946. ], function(y, j, I, Z) {
  5947. var F = Z.addEvent, U = Z.correctFloat, H = Z.css, W = Z.defined, R = Z.error, S = Z.pick, v = Z.timeUnits, d = [], u;
  5948. return function(P) {
  5949. function O(t, o, n, A, _, D, B) {
  5950. _ === void 0 && (_ = []), D === void 0 && (D = 0);
  5951. var T = {}, X = this.options.tickPixelInterval, g = this.chart.time, m = [], L, Y, V = 0, Q = [], k = -Number.MAX_VALUE;
  5952. if (!this.options.ordinal && !this.options.breaks || !_ || 3 > _.length || typeof o > "u")
  5953. return g.getTimeTicks.apply(g, arguments);
  5954. var G = _.length;
  5955. for (L = 0; L < G; L++) {
  5956. var z = L && _[L - 1] > n;
  5957. if (_[L] < o && (V = L), L === G - 1 || _[L + 1] - _[L] > 5 * D || z) {
  5958. if (_[L] > k) {
  5959. for (Y = g.getTimeTicks(t, _[V], _[L], A); Y.length && Y[0] <= k; )
  5960. Y.shift();
  5961. Y.length && (k = Y[Y.length - 1]), m.push(Q.length), Q = Q.concat(Y);
  5962. }
  5963. V = L + 1;
  5964. }
  5965. if (z)
  5966. break;
  5967. }
  5968. if (Y) {
  5969. if (Y = Y.info, B && Y.unitRange <= v.hour) {
  5970. for (L = Q.length - 1, V = 1; V < L; V++)
  5971. if (g.dateFormat("%d", Q[V]) !== g.dateFormat("%d", Q[V - 1])) {
  5972. T[Q[V]] = "day";
  5973. var $ = !0;
  5974. }
  5975. $ && (T[Q[0]] = "day"), Y.higherRanks = T;
  5976. }
  5977. Y.segmentStarts = m, Q.info = Y;
  5978. } else
  5979. R(12, !1, this.chart);
  5980. if (B && W(X)) {
  5981. for (Y = Q.length, g = [], V = [], L = void 0, $ = Y; $--; )
  5982. m = this.translate(Q[$]), L && (V[$] = L - m), g[$] = L = m;
  5983. for (V.sort(), V = V[Math.floor(V.length / 2)], V < 0.6 * X && (V = null), $ = Q[Y - 1] > n ? Y - 1 : Y, L = void 0; $--; )
  5984. m = g[$], Y = Math.abs(L - m), L && Y < 0.8 * X && (V === null || Y < 0.8 * V) ? (T[Q[$]] && !T[Q[$ + 1]] ? (Y = $ + 1, L = m) : Y = $, Q.splice(Y, 1)) : L = m;
  5985. }
  5986. return Q;
  5987. }
  5988. function N(t) {
  5989. var o = this.ordinal.positions;
  5990. if (!o)
  5991. return t;
  5992. var n = o.length - 1;
  5993. if (0 > t)
  5994. t = o[0];
  5995. else if (t > n)
  5996. t = o[n];
  5997. else {
  5998. n = Math.floor(t);
  5999. var A = t - n;
  6000. }
  6001. return typeof A < "u" && typeof o[n] < "u" ? o[n] + (A ? A * (o[n + 1] - o[n]) : 0) : t;
  6002. }
  6003. function C(t) {
  6004. var o = this.ordinal, n = o.positions;
  6005. if (!n)
  6006. return t;
  6007. var A = (t - (this.old ? this.old.min : this.min)) * (this.old ? this.old.transA : this.transA) + this.minPixelPadding;
  6008. if (0 < A && A < this.left + this.len || (o.extendedOrdinalPositions || (o.extendedOrdinalPositions = o.getExtendedPositions()), n = o.extendedOrdinalPositions), n && n.length) {
  6009. if (t = o.getIndexOfPoint(A, n), o = U(t % 1), 0 <= t && t < n.length - 1)
  6010. return n[Math.floor(t)] + o * (n[Math.ceil(t)] - n[Math.floor(t)]);
  6011. o = n.length, A = n[0], n = n[o - 1];
  6012. var _ = (n - A) / (o - 1);
  6013. return 0 > t ? A + _ * t : n + _ * (t - o);
  6014. }
  6015. return t;
  6016. }
  6017. function b(t, o) {
  6018. var n = P.Additions.findIndexOf(t, o, !0);
  6019. return t[n] === o ? n : n + (o - t[n]) / (t[n + 1] - t[n]);
  6020. }
  6021. function w() {
  6022. this.ordinal || (this.ordinal = new P.Additions(this));
  6023. }
  6024. function x() {
  6025. this.isXAxis && W(this.options.overscroll) && this.max === this.dataMax && (!this.chart.mouseIsDown || this.isInternal) && (!this.eventArgs || this.eventArgs && this.eventArgs.trigger !== "navigator") && (this.max += this.options.overscroll, !this.isInternal && W(this.userMin) && (this.min += this.options.overscroll));
  6026. }
  6027. function a() {
  6028. this.horiz && !this.isDirty && (this.isDirty = this.isOrdinal && this.chart.navigator && !this.chart.navigator.adaptToUpdatedData);
  6029. }
  6030. function c() {
  6031. this.ordinal && (this.ordinal.beforeSetTickPositions(), this.tickInterval = this.ordinal.postProcessTickInterval(this.tickInterval));
  6032. }
  6033. function p(t) {
  6034. var o = this.xAxis[0], n = o.options.overscroll, A = t.originalEvent.chartX, _ = this.options.chart.panning, D = !1;
  6035. if (_ && _.type !== "y" && o.options.ordinal && o.series.length) {
  6036. var B = this.mouseDownX, T = o.getExtremes(), X = T.dataMax, g = T.min, m = T.max, L = this.hoverPoints, Y = o.closestPointRange || o.ordinal && o.ordinal.overscrollPointsRange;
  6037. B = (B - A) / (o.translationSlope * (o.ordinal.slope || Y)), Y = { ordinal: { positions: o.ordinal.getExtendedPositions() } };
  6038. var V = o.index2val, Q = o.val2lin, k = void 0, G = k = void 0, z = void 0;
  6039. Y.ordinal.positions ? 1 < Math.abs(B) && (L && L.forEach(function($) {
  6040. $.setState();
  6041. }), 0 > B ? (G = Y, z = o.ordinal.positions ? o : Y) : (G = o.ordinal.positions ? o : Y, z = Y), k = z.ordinal.positions, X > k[k.length - 1] && k.push(X), this.fixedRange = m - g, k = o.navigatorAxis.toFixedRange(void 0, void 0, V.apply(G, [Q.apply(G, [g, !0]) + B]), V.apply(z, [Q.apply(z, [m, !0]) + B])), k.min >= Math.min(
  6042. T.dataMin,
  6043. g
  6044. ) && k.max <= Math.max(X, m) + n && o.setExtremes(k.min, k.max, !0, !1, { trigger: "pan" }), this.mouseDownX = A, H(this.container, { cursor: "move" })) : D = !0;
  6045. } else
  6046. D = !0;
  6047. D || _ && /y/.test(_.type) ? n && (o.max = o.dataMax + n) : t.preventDefault();
  6048. }
  6049. function i() {
  6050. var t = this.xAxis;
  6051. t && t.options.ordinal && (delete t.ordinal.index, delete t.ordinal.extendedOrdinalPositions);
  6052. }
  6053. function l(t, o) {
  6054. var n = this.ordinal, A = n.positions, _ = n.slope, D = n.extendedOrdinalPositions;
  6055. if (!A)
  6056. return t;
  6057. var B = A.length;
  6058. if (A[0] <= t && A[B - 1] >= t)
  6059. t = b(A, t);
  6060. else {
  6061. if (D || (D = n.getExtendedPositions && n.getExtendedPositions(), n.extendedOrdinalPositions = D), !D || !D.length)
  6062. return t;
  6063. B = D.length, _ || (_ = (D[B - 1] - D[0]) / B), A = b(D, A[0]), t >= D[0] && t <= D[B - 1] ? t = b(D, t) - A : t < D[0] ? (t = D[0] - t, t = -A - t / _) : (t -= D[B - 1], t = t / _ + B - A);
  6064. }
  6065. return o ? t : _ * (t || 0) + n.offset;
  6066. }
  6067. P.compose = function(t, o, n) {
  6068. if (d.indexOf(t) === -1) {
  6069. d.push(t);
  6070. var A = t.prototype;
  6071. A.getTimeTicks = O, A.index2val = N, A.lin2val = C, A.val2lin = l, A.ordinal2lin = A.val2lin, F(t, "afterInit", w), F(t, "foundExtremes", x), F(t, "afterSetScale", a), F(t, "initialAxisTranslation", c);
  6072. }
  6073. return d.indexOf(n) === -1 && (d.push(n), F(n, "pan", p)), d.indexOf(o) === -1 && (d.push(o), F(o, "updatedData", i)), t;
  6074. };
  6075. var s = function() {
  6076. function t(o) {
  6077. this.index = {}, this.axis = o;
  6078. }
  6079. return t.prototype.beforeSetTickPositions = function() {
  6080. var o = this.axis, n = o.ordinal, A = o.getExtremes(), _ = A.min, D = A.max, B = o.isXAxis && !!o.options.breaks;
  6081. A = o.options.ordinal;
  6082. var T = o.chart.options.chart.ignoreHiddenSeries, X, g, m = [], L = Number.MAX_VALUE, Y = !1;
  6083. if (A || B) {
  6084. o.series.forEach(function(k, G) {
  6085. if (X = [], !(T && k.visible === !1 || k.takeOrdinalPosition === !1 && !B) && (m = m.concat(k.processedXData), V = m.length, m.sort(function(z, $) {
  6086. return z - $;
  6087. }), L = Math.min(L, S(k.closestPointRange, L)), V)) {
  6088. for (G = 0; G < V - 1; )
  6089. m[G] !== m[G + 1] && X.push(m[G + 1]), G++;
  6090. X[0] !== m[0] && X.unshift(m[0]), m = X;
  6091. }
  6092. });
  6093. var V = m.length;
  6094. if (2 < V) {
  6095. var Q = m[1] - m[0];
  6096. for (g = V - 1; g-- && !Y; )
  6097. m[g + 1] - m[g] !== Q && (Y = !0);
  6098. !o.options.keepOrdinalPadding && (m[0] - _ > Q || D - m[m.length - 1] > Q) && (Y = !0);
  6099. } else
  6100. o.options.overscroll && (V === 2 ? L = m[1] - m[0] : V === 1 ? (L = o.options.overscroll, m = [m[0], m[0] + L]) : L = n.overscrollPointsRange);
  6101. Y || o.forceOrdinal ? (o.options.overscroll && (n.overscrollPointsRange = L, m = m.concat(n.getOverscrollPositions())), n.positions = m, Q = o.ordinal2lin(Math.max(_, m[0]), !0), g = Math.max(o.ordinal2lin(Math.min(D, m[m.length - 1]), !0), 1), n.slope = D = (D - _) / (g - Q), n.offset = _ - Q * D) : (n.overscrollPointsRange = S(o.closestPointRange, n.overscrollPointsRange), n.positions = o.ordinal.slope = n.offset = void 0);
  6102. }
  6103. o.isOrdinal = A && Y, n.groupIntervalFactor = null;
  6104. }, t.findIndexOf = function(o, n, A) {
  6105. for (var _ = 0, D = o.length - 1, B; _ < D; )
  6106. B = Math.ceil((_ + D) / 2), o[B] <= n ? _ = B : D = B - 1;
  6107. return o[_] === n || A ? _ : -1;
  6108. }, t.prototype.getExtendedPositions = function() {
  6109. var o = this, n = o.axis, A = n.constructor.prototype, _ = n.chart, D = n.series[0].currentDataGrouping, B = D ? D.count + D.unitName : "raw", T = n.options.overscroll, X = n.getExtremes(), g = void 0, m = o.index;
  6110. if (m || (m = o.index = {}), !m[B]) {
  6111. var L = {
  6112. series: [],
  6113. chart: _,
  6114. forceOrdinal: !1,
  6115. getExtremes: function() {
  6116. return { min: X.dataMin, max: X.dataMax + T };
  6117. },
  6118. getGroupPixelWidth: A.getGroupPixelWidth,
  6119. getTimeTicks: A.getTimeTicks,
  6120. options: { ordinal: !0 },
  6121. ordinal: { getGroupIntervalFactor: this.getGroupIntervalFactor },
  6122. ordinal2lin: A.ordinal2lin,
  6123. getIndexOfPoint: A.getIndexOfPoint,
  6124. val2lin: A.val2lin
  6125. };
  6126. L.ordinal.axis = L, n.series.forEach(function(Y) {
  6127. g = { xAxis: L, xData: Y.xData.slice(), chart: _, destroyGroupedData: j.noop, getProcessedData: I.prototype.getProcessedData, applyGrouping: I.prototype.applyGrouping }, g.xData = g.xData.concat(o.getOverscrollPositions()), g.options = { dataGrouping: D ? { firstAnchor: "firstPoint", anchor: "middle", lastAnchor: "lastPoint", enabled: !0, forced: !0, approximation: "open", units: [[D.unitName, [D.count]]] } : { enabled: !1 } }, L.series.push(g), Y.processData.apply(g);
  6128. }), g.closestPointRange !== g.basePointRange && g.currentDataGrouping && (L.forceOrdinal = !0), n.ordinal.beforeSetTickPositions.apply({ axis: L }), m[B] = L.ordinal.positions;
  6129. }
  6130. return m[B];
  6131. }, t.prototype.getGroupIntervalFactor = function(o, n, A) {
  6132. A = A.processedXData;
  6133. var _ = A.length, D = [], B = this.groupIntervalFactor;
  6134. if (!B) {
  6135. for (B = 0; B < _ - 1; B++)
  6136. D[B] = A[B + 1] - A[B];
  6137. D.sort(function(T, X) {
  6138. return T - X;
  6139. }), D = D[Math.floor(_ / 2)], o = Math.max(o, A[0]), n = Math.min(n, A[_ - 1]), this.groupIntervalFactor = B = _ * D / (n - o);
  6140. }
  6141. return B;
  6142. }, t.prototype.getIndexOfPoint = function(o, n) {
  6143. var A = this.axis, _ = this.positions ? this.positions[0] : 0, D = A.series[0].points && A.series[0].points[0] && A.series[0].points[0].plotX || A.minPixelPadding;
  6144. return 1 < A.series.length && A.series.forEach(function(B) {
  6145. B.points && W(B.points[0]) && W(B.points[0].plotX) && B.points[0].plotX < D && (D = B.points[0].plotX);
  6146. }), o = (o - D) / (A.translationSlope * (this.slope || A.closestPointRange || this.overscrollPointsRange)), t.findIndexOf(n, _) + o;
  6147. }, t.prototype.getOverscrollPositions = function() {
  6148. var o = this.axis, n = o.options.overscroll, A = this.overscrollPointsRange, _ = [], D = o.dataMax;
  6149. if (W(A))
  6150. for (; D <= o.dataMax + n; )
  6151. D += A, _.push(D);
  6152. return _;
  6153. }, t.prototype.postProcessTickInterval = function(o) {
  6154. var n = this.axis, A = this.slope;
  6155. return A ? n.options.breaks ? n.closestPointRange || o : o / (A / n.closestPointRange) : o;
  6156. }, t;
  6157. }();
  6158. P.Additions = s;
  6159. }(u || (u = {})), u;
  6160. }), E(h, "Series/DataModifyComposition.js", [h["Core/Axis/Axis.js"], h["Core/Series/Point.js"], h["Core/Series/Series.js"], h["Core/Utilities.js"]], function(y, j, I, Z) {
  6161. var F = j.prototype.tooltipFormatter, U = Z.addEvent, H = Z.arrayMax, W = Z.arrayMin, R = Z.correctFloat, S = Z.defined, v = Z.isArray, d = Z.isNumber, u = Z.isString, P = Z.pick, O;
  6162. return function(N) {
  6163. function C(o, n, A) {
  6164. this.isXAxis || (this.series.forEach(function(_) {
  6165. o === "compare" && typeof n != "boolean" ? _.setCompare(n, !1) : o !== "cumulative" || u(n) || _.setCumulative(n, !1);
  6166. }), P(A, !0) && this.chart.redraw());
  6167. }
  6168. function b(o) {
  6169. var n = this, A = n.series.chart.numberFormatter, _ = function(D) {
  6170. o = o.replace("{point." + D + "}", (0 < n[D] && D === "change" ? "+" : "") + A(n[D], P(n.series.tooltipOptions.changeDecimals, 2)));
  6171. };
  6172. return S(n.change) && _("change"), S(n.cumulativeSum) && _("cumulativeSum"), F.apply(this, [o]);
  6173. }
  6174. function w() {
  6175. var o = this.options.compare;
  6176. if (o === "percent" || o === "value" || this.options.cumulative) {
  6177. var n = new t(this);
  6178. o === "percent" || o === "value" ? n.initCompare(o) : n.initCumulative();
  6179. }
  6180. this.dataModify = n;
  6181. }
  6182. function x(o) {
  6183. o = o.dataExtremes;
  6184. var n = o.activeYData;
  6185. if (this.dataModify && o) {
  6186. var A = void 0;
  6187. this.options.compare ? A = [this.dataModify.modifyValue(o.dataMin), this.dataModify.modifyValue(o.dataMax)] : this.options.cumulative && v(n) && 2 <= n.length && (A = t.getCumulativeExtremes(n)), A && (o.dataMin = W(A), o.dataMax = H(A));
  6188. }
  6189. }
  6190. function a(o, n) {
  6191. this.options.compare = this.userOptions.compare = o, this.update({}, P(n, !0)), !this.dataModify || o !== "value" && o !== "percent" ? this.points.forEach(function(A) {
  6192. delete A.change;
  6193. }) : this.dataModify.initCompare(o);
  6194. }
  6195. function c() {
  6196. if (this.xAxis && this.processedYData && this.dataModify) {
  6197. var o = this.processedXData, n = this.processedYData, A = n.length, _ = this.options.compareStart === !0 ? 0 : 1, D = -1, B;
  6198. for (this.pointArrayMap && (D = this.pointArrayMap.indexOf(this.options.pointValKey || this.pointValKey || "y")), B = 0; B < A - _; B++) {
  6199. var T = n[B] && -1 < D ? n[B][D] : n[B];
  6200. if (d(T) && T !== 0 && o[B + _] >= (this.xAxis.min || 0)) {
  6201. this.dataModify.compareValue = T;
  6202. break;
  6203. }
  6204. }
  6205. }
  6206. }
  6207. function p(o, n) {
  6208. this.setModifier("compare", o, n);
  6209. }
  6210. function i(o, n) {
  6211. o = P(o, !1), this.options.cumulative = this.userOptions.cumulative = o, this.update({}, P(n, !0)), this.dataModify ? this.dataModify.initCumulative() : this.points.forEach(function(A) {
  6212. delete A.cumulativeSum;
  6213. });
  6214. }
  6215. function l(o, n) {
  6216. this.setModifier("cumulative", o, n);
  6217. }
  6218. var s = [];
  6219. N.compose = function(o, n, A) {
  6220. if (s.indexOf(o) === -1) {
  6221. s.push(o);
  6222. var _ = o.prototype;
  6223. _.setCompare = a, _.setCumulative = i, U(o, "afterInit", w), U(o, "afterGetExtremes", x), U(o, "afterProcessData", c);
  6224. }
  6225. return s.indexOf(n) === -1 && (s.push(n), n = n.prototype, n.setCompare = p, n.setModifier = C, n.setCumulative = l), s.indexOf(A) === -1 && (s.push(A), A.prototype.tooltipFormatter = b), o;
  6226. };
  6227. var t = function() {
  6228. function o(n) {
  6229. this.series = n;
  6230. }
  6231. return o.prototype.modifyValue = function() {
  6232. return 0;
  6233. }, o.getCumulativeExtremes = function(n) {
  6234. var A = 1 / 0, _ = -1 / 0;
  6235. return n.reduce(function(D, B) {
  6236. return B = D + B, A = Math.min(A, B, D), _ = Math.max(
  6237. _,
  6238. B,
  6239. D
  6240. ), B;
  6241. }), [A, _];
  6242. }, o.prototype.initCompare = function(n) {
  6243. this.modifyValue = function(A, _) {
  6244. A === null && (A = 0);
  6245. var D = this.compareValue;
  6246. return typeof A < "u" && typeof D < "u" ? (A = n === "value" ? A - D : A / D * 100 - (this.series.options.compareBase === 100 ? 0 : 100), typeof _ < "u" && (_ = this.series.points[_]) && (_.change = A), A) : 0;
  6247. };
  6248. }, o.prototype.initCumulative = function() {
  6249. this.modifyValue = function(n, A) {
  6250. if (n === null && (n = 0), n !== void 0 && A !== void 0) {
  6251. var _ = 0 < A ? this.series.points[A - 1] : null;
  6252. return _ && _.cumulativeSum && (n = R(_.cumulativeSum + n)), (A = this.series.points[A]) && (A.cumulativeSum = n), n;
  6253. }
  6254. return 0;
  6255. };
  6256. }, o;
  6257. }();
  6258. N.Additions = t;
  6259. }(O || (O = {})), O;
  6260. }), E(h, "Core/Axis/BrokenAxis.js", [h["Extensions/Stacking.js"], h["Core/Utilities.js"]], function(y, j) {
  6261. var I = j.addEvent, Z = j.find, F = j.fireEvent, U = j.isArray, H = j.isNumber, W = j.pick, R;
  6262. return function(S) {
  6263. function v() {
  6264. typeof this.brokenAxis < "u" && this.brokenAxis.setBreaks(this.options.breaks, !1);
  6265. }
  6266. function d() {
  6267. this.brokenAxis && this.brokenAxis.hasBreaks && (this.options.ordinal = !1);
  6268. }
  6269. function u() {
  6270. var a = this.brokenAxis;
  6271. if (a && a.hasBreaks) {
  6272. for (var c = this.tickPositions, p = this.tickPositions.info, i = [], l = 0; l < c.length; l++)
  6273. a.isInAnyBreak(c[l]) || i.push(c[l]);
  6274. this.tickPositions = i, this.tickPositions.info = p;
  6275. }
  6276. }
  6277. function P() {
  6278. this.brokenAxis || (this.brokenAxis = new x(this));
  6279. }
  6280. function O() {
  6281. var a = this.options.connectNulls, c = this.points, p = this.xAxis, i = this.yAxis;
  6282. if (this.isDirty)
  6283. for (var l = c.length; l--; ) {
  6284. var s = c[l], t = !(s.y === null && a === !1) && (p && p.brokenAxis && p.brokenAxis.isInAnyBreak(s.x, !0) || i && i.brokenAxis && i.brokenAxis.isInAnyBreak(s.y, !0));
  6285. s.visible = t ? !1 : s.options.visible !== !1;
  6286. }
  6287. }
  6288. function N() {
  6289. this.drawBreaks(this.xAxis, ["x"]), this.drawBreaks(this.yAxis, W(this.pointArrayMap, ["y"]));
  6290. }
  6291. function C(a, c) {
  6292. var p = this, i = p.points, l, s, t, o;
  6293. if (a && a.brokenAxis && a.brokenAxis.hasBreaks) {
  6294. var n = a.brokenAxis;
  6295. c.forEach(function(A) {
  6296. l = n && n.breakArray || [], s = a.isXAxis ? a.min : W(p.options.threshold, a.min), i.forEach(function(_) {
  6297. o = W(_["stack" + A.toUpperCase()], _[A]), l.forEach(function(D) {
  6298. H(s) && H(o) && (t = !1, s < D.from && o > D.to || s > D.from && o < D.from ? t = "pointBreak" : (s < D.from && o > D.from && o < D.to || s > D.from && o > D.to && o < D.from) && (t = "pointInBreak"), t && F(a, t, { point: _, brk: D }));
  6299. });
  6300. });
  6301. });
  6302. }
  6303. }
  6304. function b() {
  6305. var a = this.currentDataGrouping, c = a && a.gapSize;
  6306. a = this.points.slice();
  6307. var p = this.yAxis, i = this.options.gapSize, l = a.length - 1, s;
  6308. if (i && 0 < l)
  6309. for (this.options.gapUnit !== "value" && (i *= this.basePointRange), c && c > i && c >= this.basePointRange && (i = c), s = void 0; l--; )
  6310. s && s.visible !== !1 || (s = a[l + 1]), c = a[l], s.visible !== !1 && c.visible !== !1 && (s.x - c.x > i && (s = (c.x + s.x) / 2, a.splice(l + 1, 0, { isNull: !0, x: s }), p.stacking && this.options.stacking && (s = p.stacking.stacks[this.stackKey][s] = new y(p, p.options.stackLabels, !1, s, this.stack), s.total = 0)), s = c);
  6311. return this.getGraphPath(a);
  6312. }
  6313. var w = [];
  6314. S.compose = function(a, c) {
  6315. if (w.indexOf(a) === -1 && (w.push(a), a.keepProps.push("brokenAxis"), I(a, "init", P), I(a, "afterInit", v), I(a, "afterSetTickPositions", u), I(a, "afterSetOptions", d)), w.indexOf(c) === -1) {
  6316. w.push(c);
  6317. var p = c.prototype;
  6318. p.drawBreaks = C, p.gappedPath = b, I(c, "afterGeneratePoints", O), I(
  6319. c,
  6320. "afterRender",
  6321. N
  6322. );
  6323. }
  6324. return a;
  6325. };
  6326. var x = function() {
  6327. function a(c) {
  6328. this.hasBreaks = !1, this.axis = c;
  6329. }
  6330. return a.isInBreak = function(c, p) {
  6331. var i = c.repeat || 1 / 0, l = c.from, s = c.to - c.from;
  6332. return p = p >= l ? (p - l) % i : i - (l - p) % i, c.inclusive ? p <= s : p < s && p !== 0;
  6333. }, a.lin2Val = function(c) {
  6334. var p = this.brokenAxis;
  6335. if (p = p && p.breakArray, !p || !H(c))
  6336. return c;
  6337. var i;
  6338. for (i = 0; i < p.length; i++) {
  6339. var l = p[i];
  6340. if (l.from >= c)
  6341. break;
  6342. (l.to < c || a.isInBreak(l, c)) && (c += l.len);
  6343. }
  6344. return c;
  6345. }, a.val2Lin = function(c) {
  6346. var p = this.brokenAxis;
  6347. if (p = p && p.breakArray, !p || !H(c))
  6348. return c;
  6349. var i = c, l;
  6350. for (l = 0; l < p.length; l++) {
  6351. var s = p[l];
  6352. if (s.to <= c)
  6353. i -= s.len;
  6354. else {
  6355. if (s.from >= c)
  6356. break;
  6357. if (a.isInBreak(s, c)) {
  6358. i -= c - s.from;
  6359. break;
  6360. }
  6361. }
  6362. }
  6363. return i;
  6364. }, a.prototype.findBreakAt = function(c, p) {
  6365. return Z(p, function(i) {
  6366. return i.from < c && c < i.to;
  6367. });
  6368. }, a.prototype.isInAnyBreak = function(c, p) {
  6369. var i = this.axis, l = i.options.breaks || [], s = l.length, t;
  6370. if (s && H(c)) {
  6371. for (; s--; )
  6372. if (a.isInBreak(l[s], c)) {
  6373. var o = !0;
  6374. t || (t = W(l[s].showPoints, !i.isXAxis));
  6375. }
  6376. var n = o && p ? o && !t : o;
  6377. }
  6378. return n;
  6379. }, a.prototype.setBreaks = function(c, p) {
  6380. var i = this, l = i.axis, s = U(c) && !!c.length;
  6381. l.isDirty = i.hasBreaks !== s, i.hasBreaks = s, l.options.breaks = l.userOptions.breaks = c, l.forceRedraw = !0, l.series.forEach(function(t) {
  6382. t.isDirty = !0;
  6383. }), s || l.val2lin !== a.val2Lin || (delete l.val2lin, delete l.lin2val), s && (l.userOptions.ordinal = !1, l.lin2val = a.lin2Val, l.val2lin = a.val2Lin, l.setExtremes = function(t, o, n, A, _) {
  6384. if (i.hasBreaks) {
  6385. for (var D = this.options.breaks || [], B; B = i.findBreakAt(t, D); )
  6386. t = B.to;
  6387. for (; B = i.findBreakAt(o, D); )
  6388. o = B.from;
  6389. o < t && (o = t);
  6390. }
  6391. l.constructor.prototype.setExtremes.call(this, t, o, n, A, _);
  6392. }, l.setAxisTranslation = function() {
  6393. if (l.constructor.prototype.setAxisTranslation.call(this), i.unitLength = void 0, i.hasBreaks) {
  6394. var t = l.options.breaks || [], o = [], n = [], A = W(l.pointRangePadding, 0), _ = 0, D, B = l.userMin || l.min, T = l.userMax || l.max, X;
  6395. t.forEach(function(L) {
  6396. D = L.repeat || 1 / 0, H(B) && H(T) && (a.isInBreak(L, B) && (B += L.to % D - B % D), a.isInBreak(L, T) && (T -= T % D - L.from % D));
  6397. }), t.forEach(function(L) {
  6398. if (m = L.from, D = L.repeat || 1 / 0, H(B) && H(T)) {
  6399. for (; m - D > B; )
  6400. m -= D;
  6401. for (; m < B; )
  6402. m += D;
  6403. for (X = m; X < T; X += D)
  6404. o.push({ value: X, move: "in" }), o.push({ value: X + L.to - L.from, move: "out", size: L.breakSize });
  6405. }
  6406. }), o.sort(function(L, Y) {
  6407. return L.value === Y.value ? (L.move === "in" ? 0 : 1) - (Y.move === "in" ? 0 : 1) : L.value - Y.value;
  6408. });
  6409. var g = 0, m = B;
  6410. o.forEach(function(L) {
  6411. g += L.move === "in" ? 1 : -1, g === 1 && L.move === "in" && (m = L.value), g === 0 && H(m) && (n.push({ from: m, to: L.value, len: L.value - m - (L.size || 0) }), _ += L.value - m - (L.size || 0));
  6412. }), i.breakArray = n, H(B) && H(T) && H(l.min) && (i.unitLength = T - B - _ + A, F(l, "afterBreaks"), l.staticScale ? l.transA = l.staticScale : i.unitLength && (l.transA *= (T - l.min + A) / i.unitLength), A && (l.minPixelPadding = l.transA * (l.minPointOffset || 0)), l.min = B, l.max = T);
  6413. }
  6414. }), W(p, !0) && l.chart.redraw();
  6415. }, a;
  6416. }();
  6417. S.Additions = x;
  6418. }(R || (R = {})), R;
  6419. }), E(h, "masters/modules/broken-axis.src.js", [h["Core/Globals.js"], h["Core/Axis/BrokenAxis.js"]], function(y, j) {
  6420. j.compose(y.Axis, y.Series);
  6421. }), E(h, "Extensions/DataGrouping.js", [
  6422. h["Core/Axis/Axis.js"],
  6423. h["Core/Axis/DateTimeAxis.js"],
  6424. h["Core/FormatUtilities.js"],
  6425. h["Core/Globals.js"],
  6426. h["Core/Series/Point.js"],
  6427. h["Core/Series/Series.js"],
  6428. h["Core/Tooltip.js"],
  6429. h["Core/DefaultOptions.js"],
  6430. h["Core/Utilities.js"]
  6431. ], function(y, j, I, Z, F, U, H, W, R) {
  6432. var S = I.format, v = U.prototype;
  6433. I = R.addEvent;
  6434. var d = R.arrayMax, u = R.arrayMin, P = R.correctFloat, O = R.defined, N = R.error, C = R.extend, b = R.isNumber, w = R.merge, x = R.pick, a = Z.approximations = {
  6435. sum: function(t) {
  6436. var o = t.length;
  6437. if (!o && t.hasNulls)
  6438. var n = null;
  6439. else if (o)
  6440. for (n = 0; o--; )
  6441. n += t[o];
  6442. return n;
  6443. },
  6444. average: function(t) {
  6445. var o = t.length;
  6446. return t = a.sum(t), b(t) && o && (t = P(t / o)), t;
  6447. },
  6448. averages: function() {
  6449. var t = [];
  6450. return [].forEach.call(arguments, function(o) {
  6451. t.push(a.average(o));
  6452. }), typeof t[0] > "u" ? void 0 : t;
  6453. },
  6454. open: function(t) {
  6455. return t.length ? t[0] : t.hasNulls ? null : void 0;
  6456. },
  6457. high: function(t) {
  6458. return t.length ? d(t) : t.hasNulls ? null : void 0;
  6459. },
  6460. low: function(t) {
  6461. return t.length ? u(t) : t.hasNulls ? null : void 0;
  6462. },
  6463. close: function(t) {
  6464. return t.length ? t[t.length - 1] : t.hasNulls ? null : void 0;
  6465. },
  6466. hlc: function(t, o, n) {
  6467. if (t = a.high(t), o = a.low(o), n = a.close(n), b(t) || b(o) || b(n))
  6468. return [t, o, n];
  6469. },
  6470. ohlc: function(t, o, n, A) {
  6471. if (t = a.open(t), o = a.high(o), n = a.low(n), A = a.close(A), b(t) || b(o) || b(n) || b(A))
  6472. return [t, o, n, A];
  6473. },
  6474. range: function(t, o) {
  6475. if (t = a.low(t), o = a.high(o), b(t) || b(o))
  6476. return [t, o];
  6477. if (t === null && o === null)
  6478. return null;
  6479. }
  6480. };
  6481. R = function(t, o, n, A) {
  6482. var _ = this, D = _.data, B = _.options && _.options.data, T = [], X = [], g = [], m = t.length, L = !!o, Y = [], V = _.pointArrayMap, Q = V && V.length, k = ["x"].concat(V || ["y"]), G = this.options.dataGrouping && this.options.dataGrouping.groupAll, z = 0, $ = 0, q;
  6483. A = typeof A == "function" ? A : a[A] ? a[A] : a[_.getDGApproximation && _.getDGApproximation() || "average"], Q ? V.forEach(function() {
  6484. Y.push([]);
  6485. }) : Y.push([]);
  6486. var it = Q || 1;
  6487. for (q = 0; q <= m && !(t[q] >= n[0]); q++)
  6488. ;
  6489. for (q; q <= m; q++) {
  6490. for (; typeof n[z + 1] < "u" && t[q] >= n[z + 1] || q === m; ) {
  6491. var et = n[z];
  6492. _.dataGroupInfo = { start: G ? $ : _.cropStart + $, length: Y[0].length };
  6493. var nt = A.apply(_, Y);
  6494. for (_.pointClass && !O(_.dataGroupInfo.options) && (_.dataGroupInfo.options = w(_.pointClass.prototype.optionsToObject.call({ series: _ }, _.options.data[_.cropStart + $])), k.forEach(function(ct) {
  6495. delete _.dataGroupInfo.options[ct];
  6496. })), typeof nt < "u" && (T.push(et), X.push(nt), g.push(_.dataGroupInfo)), $ = q, et = 0; et < it; et++)
  6497. Y[et].length = 0, Y[et].hasNulls = !1;
  6498. if (z += 1, q === m)
  6499. break;
  6500. }
  6501. if (q === m)
  6502. break;
  6503. if (V) {
  6504. et = _.options.dataGrouping && _.options.dataGrouping.groupAll ? q : _.cropStart + q, nt = D && D[et] || _.pointClass.prototype.applyOptions.apply({ series: _ }, [B[et]]);
  6505. var rt = void 0;
  6506. for (et = 0; et < Q; et++)
  6507. rt = nt[V[et]], b(rt) ? Y[et].push(rt) : rt === null && (Y[et].hasNulls = !0);
  6508. } else
  6509. et = L ? o[q] : null, b(et) ? Y[0].push(et) : et === null && (Y[0].hasNulls = !0);
  6510. }
  6511. return { groupedXData: T, groupedYData: X, groupMap: g };
  6512. };
  6513. var c = { approximations: a, groupData: R }, p = v.generatePoints, i = { groupPixelWidth: 2, dateTimeLabelFormats: { millisecond: [
  6514. "%A, %b %e, %H:%M:%S.%L",
  6515. "%A, %b %e, %H:%M:%S.%L",
  6516. "-%H:%M:%S.%L"
  6517. ], second: ["%A, %b %e, %H:%M:%S", "%A, %b %e, %H:%M:%S", "-%H:%M:%S"], minute: ["%A, %b %e, %H:%M", "%A, %b %e, %H:%M", "-%H:%M"], hour: ["%A, %b %e, %H:%M", "%A, %b %e, %H:%M", "-%H:%M"], day: ["%A, %b %e, %Y", "%A, %b %e", "-%A, %b %e, %Y"], week: ["Week from %A, %b %e, %Y", "%A, %b %e", "-%A, %b %e, %Y"], month: ["%B %Y", "%B", "-%B %Y"], year: ["%Y", "%Y", "-%Y"] } }, l = {
  6518. line: {},
  6519. spline: {},
  6520. area: {},
  6521. areaspline: {},
  6522. arearange: {},
  6523. column: { groupPixelWidth: 10 },
  6524. columnrange: { groupPixelWidth: 10 },
  6525. candlestick: { groupPixelWidth: 10 },
  6526. ohlc: { groupPixelWidth: 5 },
  6527. hlc: { groupPixelWidth: 5 },
  6528. heikinashi: { groupPixelWidth: 10 }
  6529. }, s = Z.defaultDataGroupingUnits = [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1]], ["week", [1]], ["month", [1, 3, 6]], ["year", null]];
  6530. return v.getDGApproximation = function() {
  6531. return this.is("arearange") ? "range" : this.is("ohlc") ? "ohlc" : this.is("hlc") ? "hlc" : this.is("column") ? "sum" : "average";
  6532. }, v.groupData = R, v.applyGrouping = function(t) {
  6533. var o = this.chart, n = this.options.dataGrouping, A = this.allowDG !== !1 && n && x(n.enabled, o.options.isStock), _ = this.visible || !o.options.chart.ignoreHiddenSeries, D, B = this.currentDataGrouping, T = !1;
  6534. if (A && !this.requireSorting && (this.requireSorting = T = !0), t = !!(this.isCartesian && !this.isDirty && !this.xAxis.isDirty && !this.yAxis.isDirty && !t) || !A, T && (this.requireSorting = !1), !t) {
  6535. this.destroyGroupedData(), A = n.groupAll ? this.xData : this.processedXData;
  6536. var X = n.groupAll ? this.yData : this.processedYData;
  6537. t = o.plotSizeX, T = this.xAxis;
  6538. var g = T.options.ordinal, m = this.groupPixelWidth;
  6539. if (m && A && A.length) {
  6540. this.isDirty = D = !0, this.points = null;
  6541. var L = T.getExtremes(), Y = L.min;
  6542. L = L.max, g = g && T.ordinal && T.ordinal.getGroupIntervalFactor(Y, L, this) || 1, t = T.getTimeTicks(j.Additions.prototype.normalizeTimeTickInterval(m * (L - Y) / t * g, n.units || s), Math.min(Y, A[0]), Math.max(L, A[A.length - 1]), T.options.startOfWeek, A, this.closestPointRange), m = v.groupData.apply(this, [A, X, t, n.approximation]), A = m.groupedXData, X = m.groupedYData, g = 0, n && n.smoothed && A.length && (n.firstAnchor = "firstPoint", n.anchor = "middle", n.lastAnchor = "lastPoint", N(32, !1, o, { "dataGrouping.smoothed": "use dataGrouping.anchor" })), o = A;
  6543. var V = this.options.dataGrouping;
  6544. if (Y = this.currentDataGrouping && this.currentDataGrouping.gapSize, V && this.xData && Y && this.groupMap) {
  6545. var Q = o.length - 1, k = V.anchor, G = x(V.firstAnchor, k);
  6546. if (V = x(V.lastAnchor, k), k && k !== "start") {
  6547. var z = Y * { middle: 0.5, end: 1 }[k];
  6548. for (k = o.length - 1; k-- && 0 < k; )
  6549. o[k] += z;
  6550. }
  6551. if (G && G !== "start" && this.xData[0] >= o[0]) {
  6552. k = this.groupMap[0].start, z = this.groupMap[0].length;
  6553. var $ = void 0;
  6554. b(k) && b(z) && ($ = k + (z - 1)), o[0] = { middle: o[0] + 0.5 * Y, end: o[0] + Y, firstPoint: this.xData[0], lastPoint: $ && this.xData[$] }[G];
  6555. }
  6556. V && V !== "start" && Y && o[Q] >= L - Y && (L = this.groupMap[this.groupMap.length - 1].start, o[Q] = { middle: o[Q] + 0.5 * Y, end: o[Q] + Y, firstPoint: L && this.xData[L], lastPoint: this.xData[this.xData.length - 1] }[V]);
  6557. }
  6558. for (L = 1; L < t.length; L++)
  6559. t.info.segmentStarts && t.info.segmentStarts.indexOf(L) !== -1 || (g = Math.max(t[L] - t[L - 1], g));
  6560. L = t.info, L.gapSize = g, this.closestPointRange = t.info.totalRange, this.groupMap = m.groupMap, _ && (_ = A, O(_[0]) && b(T.min) && b(T.dataMin) && _[0] < T.min && ((!O(T.options.min) && T.min <= T.dataMin || T.min === T.dataMin) && (T.min = Math.min(_[0], T.min)), T.dataMin = Math.min(_[0], T.dataMin)), O(_[_.length - 1]) && b(T.max) && b(T.dataMax) && _[_.length - 1] > T.max && ((!O(T.options.max) && b(T.dataMax) && T.max >= T.dataMax || T.max === T.dataMax) && (T.max = Math.max(_[_.length - 1], T.max)), T.dataMax = Math.max(_[_.length - 1], T.dataMax))), n.groupAll && (this.allGroupedData = X, n = this.cropData(A, X, T.min, T.max, 1), A = n.xData, X = n.yData, this.cropStart = n.start), this.processedXData = A, this.processedYData = X;
  6561. } else
  6562. this.groupMap = null;
  6563. this.hasGroupedData = D, this.currentDataGrouping = L, this.preventGraphAnimation = (B && B.totalRange) !== (L && L.totalRange);
  6564. }
  6565. }, v.destroyGroupedData = function() {
  6566. this.groupedData && (this.groupedData.forEach(function(t, o) {
  6567. t && (this.groupedData[o] = t.destroy ? t.destroy() : null);
  6568. }, this), this.groupedData.length = 0);
  6569. }, v.generatePoints = function() {
  6570. p.apply(this), this.destroyGroupedData(), this.groupedData = this.hasGroupedData ? this.points : null;
  6571. }, y.prototype.applyGrouping = function(t) {
  6572. var o = this;
  6573. o.series.forEach(function(n) {
  6574. n.groupPixelWidth = void 0, n.groupPixelWidth = o.getGroupPixelWidth && o.getGroupPixelWidth(), n.groupPixelWidth && (n.hasProcessed = !0), n.applyGrouping(!!t.hasExtemesChanged);
  6575. });
  6576. }, y.prototype.getGroupPixelWidth = function() {
  6577. var t = this.series, o = t.length, n, A = 0, _ = !1, D;
  6578. for (n = o; n--; )
  6579. (D = t[n].options.dataGrouping) && (A = Math.max(A, x(D.groupPixelWidth, i.groupPixelWidth)));
  6580. for (n = o; n--; )
  6581. (D = t[n].options.dataGrouping) && (o = (t[n].processedXData || t[n].data).length, (t[n].groupPixelWidth || o > this.chart.plotSizeX / A || o && D.forced) && (_ = !0));
  6582. return _ ? A : 0;
  6583. }, y.prototype.setDataGrouping = function(t, o) {
  6584. var n;
  6585. if (o = x(o, !0), t || (t = { forced: !1, units: null }), this instanceof y)
  6586. for (n = this.series.length; n--; )
  6587. this.series[n].update({ dataGrouping: t }, !1);
  6588. else
  6589. this.chart.options.series.forEach(function(A) {
  6590. A.dataGrouping = t;
  6591. }, !1);
  6592. this.ordinal && (this.ordinal.slope = void 0), o && this.chart.redraw();
  6593. }, I(y, "postProcessData", y.prototype.applyGrouping), I(F, "update", function() {
  6594. if (this.dataGroup)
  6595. return N(
  6596. 24,
  6597. !1,
  6598. this.series.chart
  6599. ), !1;
  6600. }), I(H, "headerFormatter", function(t) {
  6601. var o = this.chart, n = o.time, A = t.labelConfig, _ = A.series, D = _.tooltipOptions, B = _.options.dataGrouping, T = D.xDateFormat, X = _.xAxis, g = D[t.isFooter ? "footerFormat" : "headerFormat"];
  6602. if (X && X.options.type === "datetime" && B && b(A.key)) {
  6603. var m = _.currentDataGrouping;
  6604. if (B = B.dateTimeLabelFormats || i.dateTimeLabelFormats, m)
  6605. if (D = B[m.unitName], m.count === 1)
  6606. T = D[0];
  6607. else {
  6608. T = D[1];
  6609. var L = D[2];
  6610. }
  6611. else
  6612. !T && B && X.dateTime && (T = X.dateTime.getXDateFormat(A.x, D.dateTimeLabelFormats));
  6613. T = n.dateFormat(T, A.key), L && (T += n.dateFormat(L, A.key + m.totalRange - 1)), _.chart.styledMode && (g = this.styledModeFormat(g)), t.text = S(g, { point: C(A.point, { key: T }), series: _ }, o), t.preventDefault();
  6614. }
  6615. }), I(U, "destroy", v.destroyGroupedData), I(U, "afterSetOptions", function(t) {
  6616. t = t.options;
  6617. var o = this.type, n = this.chart.options.plotOptions, A = W.defaultOptions.plotOptions[o].dataGrouping, _ = this.useCommonDataGrouping && i;
  6618. if (n && (l[o] || _)) {
  6619. A || (A = w(i, l[o]));
  6620. var D = this.chart.rangeSelector;
  6621. t.dataGrouping = w(
  6622. _,
  6623. A,
  6624. n.series && n.series.dataGrouping,
  6625. n[o].dataGrouping,
  6626. this.userOptions.dataGrouping,
  6627. !t.isInternal && D && b(D.selected) && D.buttonOptions[D.selected].dataGrouping
  6628. );
  6629. }
  6630. }), I(y, "afterSetScale", function() {
  6631. this.series.forEach(function(t) {
  6632. t.hasProcessed = !1;
  6633. });
  6634. }), Z.dataGrouping = c, c;
  6635. }), E(h, "Series/HLC/HLCPoint.js", [h["Core/Series/SeriesRegistry.js"]], function(y) {
  6636. var j = this && this.__extends || function() {
  6637. var I = function(Z, F) {
  6638. return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(U, H) {
  6639. U.__proto__ = H;
  6640. } || function(U, H) {
  6641. for (var W in H)
  6642. H.hasOwnProperty(W) && (U[W] = H[W]);
  6643. }, I(Z, F);
  6644. };
  6645. return function(Z, F) {
  6646. function U() {
  6647. this.constructor = Z;
  6648. }
  6649. I(Z, F), Z.prototype = F === null ? Object.create(F) : (U.prototype = F.prototype, new U());
  6650. };
  6651. }();
  6652. return function(I) {
  6653. function Z() {
  6654. var F = I !== null && I.apply(this, arguments) || this;
  6655. return F.close = void 0, F.high = void 0, F.low = void 0, F.options = void 0, F.plotClose = void 0, F.series = void 0, F;
  6656. }
  6657. return j(Z, I), Z;
  6658. }(y.seriesTypes.column.prototype.pointClass);
  6659. }), E(
  6660. h,
  6661. "Series/HLC/HLCSeries.js",
  6662. [h["Series/HLC/HLCPoint.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]],
  6663. function(y, j, I) {
  6664. var Z = this && this.__extends || function() {
  6665. var W = function(R, S) {
  6666. return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, d) {
  6667. v.__proto__ = d;
  6668. } || function(v, d) {
  6669. for (var u in d)
  6670. d.hasOwnProperty(u) && (v[u] = d[u]);
  6671. }, W(R, S);
  6672. };
  6673. return function(R, S) {
  6674. function v() {
  6675. this.constructor = R;
  6676. }
  6677. W(R, S), R.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  6678. };
  6679. }(), F = j.seriesTypes.column, U = I.extend, H = I.merge;
  6680. return I = function(W) {
  6681. function R() {
  6682. var S = W !== null && W.apply(this, arguments) || this;
  6683. return S.data = void 0, S.options = void 0, S.points = void 0, S.yData = void 0, S;
  6684. }
  6685. return Z(R, W), R.prototype.extendStem = function(S, v, d) {
  6686. var u = S[0];
  6687. S = S[1], typeof u[2] == "number" && (u[2] = Math.max(d + v, u[2])), typeof S[2] == "number" && (S[2] = Math.min(d - v, S[2]));
  6688. }, R.prototype.getPointPath = function(S, v) {
  6689. v = v.strokeWidth();
  6690. var d = S.series, u = v % 2 / 2, P = Math.round(S.plotX) - u, O = Math.round(S.shapeArgs.width / 2), N = [["M", P, Math.round(S.yBottom)], ["L", P, Math.round(S.plotHigh)]];
  6691. return S.close !== null && (S = Math.round(S.plotClose) + u, N.push(["M", P, S], ["L", P + O, S]), d.extendStem(N, v / 2, S)), N;
  6692. }, R.prototype.drawSinglePoint = function(S) {
  6693. var v = S.series, d = v.chart, u = S.graphic, P = !u;
  6694. typeof S.plotY < "u" && (u || (S.graphic = u = d.renderer.path().add(v.group)), d.styledMode || u.attr(v.pointAttribs(S, S.selected && "select")), v = v.getPointPath(S, u), u[P ? "attr" : "animate"]({ d: v }).addClass(S.getClassName(), !0));
  6695. }, R.prototype.drawPoints = function() {
  6696. this.points.forEach(this.drawSinglePoint);
  6697. }, R.prototype.init = function() {
  6698. W.prototype.init.apply(this, arguments), this.options.stacking = void 0;
  6699. }, R.prototype.pointAttribs = function(S, v) {
  6700. return S = W.prototype.pointAttribs.call(this, S, v), delete S.fill, S;
  6701. }, R.prototype.toYData = function(S) {
  6702. return [S.high, S.low, S.close];
  6703. }, R.prototype.translate = function() {
  6704. var S = this, v = S.yAxis, d = this.pointArrayMap && this.pointArrayMap.slice() || [], u = d.map(function(P) {
  6705. return "plot" + (P.charAt(0).toUpperCase() + P.slice(1));
  6706. });
  6707. u.push("yBottom"), d.push("low"), W.prototype.translate.apply(S), S.points.forEach(function(P) {
  6708. d.forEach(function(O, N) {
  6709. O = P[O], O !== null && (S.dataModify && (O = S.dataModify.modifyValue(O)), P[u[N]] = v.toPixels(O, !0));
  6710. }), P.tooltipPos[1] = P.plotHigh + v.pos - S.chart.plotTop;
  6711. });
  6712. }, R.defaultOptions = H(F.defaultOptions, { lineWidth: 1, tooltip: { pointFormat: '<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>' }, threshold: null, states: { hover: { lineWidth: 3 } }, stickyTracking: !0 }), R;
  6713. }(F), U(I.prototype, { animate: null, directTouch: !1, pointArrayMap: ["high", "low", "close"], pointAttrToOptions: {
  6714. stroke: "color",
  6715. "stroke-width": "lineWidth"
  6716. }, pointValKey: "close" }), I.prototype.pointClass = y, j.registerSeriesType("hlc", I), I;
  6717. }
  6718. ), E(h, "Series/OHLC/OHLCPoint.js", [h["Core/Series/SeriesRegistry.js"]], function(y) {
  6719. var j = this && this.__extends || function() {
  6720. var I = function(Z, F) {
  6721. return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(U, H) {
  6722. U.__proto__ = H;
  6723. } || function(U, H) {
  6724. for (var W in H)
  6725. H.hasOwnProperty(W) && (U[W] = H[W]);
  6726. }, I(Z, F);
  6727. };
  6728. return function(Z, F) {
  6729. function U() {
  6730. this.constructor = Z;
  6731. }
  6732. I(Z, F), Z.prototype = F === null ? Object.create(F) : (U.prototype = F.prototype, new U());
  6733. };
  6734. }();
  6735. return function(I) {
  6736. function Z() {
  6737. var F = I !== null && I.apply(this, arguments) || this;
  6738. return F.open = void 0, F.options = void 0, F.plotOpen = void 0, F.series = void 0, F;
  6739. }
  6740. return j(Z, I), Z.prototype.getClassName = function() {
  6741. return I.prototype.getClassName.call(this) + (this.open < this.close ? " highcharts-point-up" : " highcharts-point-down");
  6742. }, Z.prototype.resolveUpColor = function() {
  6743. this.open < this.close && !this.options.color && this.series.options.upColor && (this.color = this.series.options.upColor);
  6744. }, Z.prototype.resolveColor = function() {
  6745. I.prototype.resolveColor.call(this), this.resolveUpColor();
  6746. }, Z.prototype.getZone = function() {
  6747. var F = I.prototype.getZone.call(this);
  6748. return this.resolveUpColor(), F;
  6749. }, Z.prototype.applyOptions = function() {
  6750. return I.prototype.applyOptions.apply(this, arguments), this.resolveColor && this.resolveColor(), this;
  6751. }, Z;
  6752. }(y.seriesTypes.hlc.prototype.pointClass);
  6753. }), E(
  6754. h,
  6755. "Series/OHLC/OHLCSeries.js",
  6756. [h["Series/OHLC/OHLCPoint.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]],
  6757. function(y, j, I) {
  6758. var Z = this && this.__extends || function() {
  6759. var v = function(d, u) {
  6760. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  6761. P.__proto__ = O;
  6762. } || function(P, O) {
  6763. for (var N in O)
  6764. O.hasOwnProperty(N) && (P[N] = O[N]);
  6765. }, v(d, u);
  6766. };
  6767. return function(d, u) {
  6768. function P() {
  6769. this.constructor = d;
  6770. }
  6771. v(d, u), d.prototype = u === null ? Object.create(u) : (P.prototype = u.prototype, new P());
  6772. };
  6773. }(), F = j.series, U = j.seriesTypes.hlc, H = I.addEvent, W = I.extend, R = I.merge, S = function(v) {
  6774. function d() {
  6775. var u = v !== null && v.apply(this, arguments) || this;
  6776. return u.data = void 0, u.options = void 0, u.points = void 0, u;
  6777. }
  6778. return Z(d, v), d.prototype.getPointPath = function(u, P) {
  6779. var O = v.prototype.getPointPath.call(this, u, P);
  6780. P = P.strokeWidth();
  6781. var N = P % 2 / 2, C = Math.round(u.plotX) - N, b = Math.round(u.shapeArgs.width / 2);
  6782. return u.open !== null && (u = Math.round(u.plotOpen) + N, O.push(["M", C, u], ["L", C - b, u]), v.prototype.extendStem.call(this, O, P / 2, u)), O;
  6783. }, d.prototype.pointAttribs = function(u, P) {
  6784. P = v.prototype.pointAttribs.call(this, u, P);
  6785. var O = this.options;
  6786. return delete P.fill, !u.options.color && O.upColor && u.open < u.close && (P.stroke = O.upColor), P;
  6787. }, d.prototype.toYData = function(u) {
  6788. return [u.open, u.high, u.low, u.close];
  6789. }, d.defaultOptions = R(U.defaultOptions, { tooltip: { pointFormat: '<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>' } }), d;
  6790. }(U);
  6791. return W(S.prototype, { pointArrayMap: ["open", "high", "low", "close"] }), S.prototype.pointClass = y, j.registerSeriesType("ohlc", S), H(F, "init", function(v) {
  6792. v = v.options, v.useOhlcData && v.id !== "highcharts-navigator-series" && W(this, { pointValKey: S.prototype.pointValKey, pointArrayMap: S.prototype.pointArrayMap, toYData: S.prototype.toYData });
  6793. }), H(F, "afterSetOptions", function(v) {
  6794. v = v.options;
  6795. var d = v.dataGrouping;
  6796. d && v.useOhlcData && v.id !== "highcharts-navigator-series" && (d.approximation = "ohlc");
  6797. }), S;
  6798. }
  6799. ), E(h, "Series/Candlestick/CandlestickSeries.js", [h["Core/DefaultOptions.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I) {
  6800. var Z = this && this.__extends || function() {
  6801. var R = function(S, v) {
  6802. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, u) {
  6803. d.__proto__ = u;
  6804. } || function(d, u) {
  6805. for (var P in u)
  6806. u.hasOwnProperty(P) && (d[P] = u[P]);
  6807. }, R(S, v);
  6808. };
  6809. return function(S, v) {
  6810. function d() {
  6811. this.constructor = S;
  6812. }
  6813. R(S, v), S.prototype = v === null ? Object.create(v) : (d.prototype = v.prototype, new d());
  6814. };
  6815. }(), F = y.defaultOptions;
  6816. y = j.seriesTypes;
  6817. var U = y.column, H = y.ohlc, W = I.merge;
  6818. return I = function(R) {
  6819. function S() {
  6820. var v = R !== null && R.apply(this, arguments) || this;
  6821. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  6822. }
  6823. return Z(S, R), S.prototype.pointAttribs = function(v, d) {
  6824. var u = U.prototype.pointAttribs.call(this, v, d), P = this.options, O = v.open < v.close, N = P.lineColor || this.color, C = v.color || this.color;
  6825. return u["stroke-width"] = P.lineWidth, u.fill = v.options.color || O && P.upColor || C, u.stroke = v.options.lineColor || O && P.upLineColor || N, d && (v = P.states[d], u.fill = v.color || u.fill, u.stroke = v.lineColor || u.stroke, u["stroke-width"] = v.lineWidth || u["stroke-width"]), u;
  6826. }, S.prototype.drawPoints = function() {
  6827. var v = this, d = v.chart, u = v.yAxis.reversed;
  6828. v.points.forEach(function(P) {
  6829. var O = P.graphic, N = !O;
  6830. if (typeof P.plotY < "u") {
  6831. O || (P.graphic = O = d.renderer.path().add(v.group)), v.chart.styledMode || O.attr(v.pointAttribs(P, P.selected && "select")).shadow(v.options.shadow);
  6832. var C = O.strokeWidth() % 2 / 2, b = Math.round(P.plotX) - C, w = P.plotOpen, x = P.plotClose, a = Math.min(w, x);
  6833. w = Math.max(w, x);
  6834. var c = Math.round(P.shapeArgs.width / 2);
  6835. x = u ? w !== P.yBottom : Math.round(a) !== Math.round(P.plotHigh);
  6836. var p = u ? Math.round(a) !== Math.round(P.plotHigh) : w !== P.yBottom;
  6837. a = Math.round(a) + C, w = Math.round(w) + C, C = [], C.push(["M", b - c, w], ["L", b - c, a], ["L", b + c, a], ["L", b + c, w], ["Z"], ["M", b, a], ["L", b, x ? Math.round(u ? P.yBottom : P.plotHigh) : a], ["M", b, w], ["L", b, p ? Math.round(u ? P.plotHigh : P.yBottom) : w]), O[N ? "attr" : "animate"]({ d: C }).addClass(P.getClassName(), !0);
  6838. }
  6839. });
  6840. }, S.defaultOptions = W(H.defaultOptions, F.plotOptions, { states: { hover: { lineWidth: 2 } }, tooltip: F.plotOptions.ohlc.tooltip, threshold: null, lineColor: "#000000", lineWidth: 1, upColor: "#ffffff", stickyTracking: !0 }), S;
  6841. }(H), j.registerSeriesType("candlestick", I), I;
  6842. }), E(h, "Series/Flags/FlagsPoint.js", [h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j) {
  6843. var I = this && this.__extends || function() {
  6844. var F = function(U, H) {
  6845. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(W, R) {
  6846. W.__proto__ = R;
  6847. } || function(W, R) {
  6848. for (var S in R)
  6849. R.hasOwnProperty(S) && (W[S] = R[S]);
  6850. }, F(U, H);
  6851. };
  6852. return function(U, H) {
  6853. function W() {
  6854. this.constructor = U;
  6855. }
  6856. F(U, H), U.prototype = H === null ? Object.create(H) : (W.prototype = H.prototype, new W());
  6857. };
  6858. }(), Z = j.isNumber;
  6859. return function(F) {
  6860. function U() {
  6861. var H = F !== null && F.apply(this, arguments) || this;
  6862. return H.options = void 0, H.series = void 0, H;
  6863. }
  6864. return I(U, F), U.prototype.isValid = function() {
  6865. return Z(this.y) || typeof this.y > "u";
  6866. }, U.prototype.hasNewShapeType = function() {
  6867. var H = this.options.shape || this.series.options.shape;
  6868. return this.graphic && H && H !== this.graphic.symbolKey;
  6869. }, U;
  6870. }(y.seriesTypes.column.prototype.pointClass);
  6871. }), E(h, "Series/OnSeriesComposition.js", [
  6872. h["Series/Column/ColumnSeries.js"],
  6873. h["Core/Series/Series.js"],
  6874. h["Core/Utilities.js"]
  6875. ], function(y, j, I) {
  6876. var Z = y.prototype, F = j.prototype, U = I.defined, H = I.stableSort, W;
  6877. return function(R) {
  6878. function S() {
  6879. return F.getPlotBox.call(this.options.onSeries && this.chart.get(this.options.onSeries) || this);
  6880. }
  6881. function v() {
  6882. Z.translate.apply(this);
  6883. var u = this, P = u.options, O = u.chart, N = u.points, C = P.onSeries, b = (C = C && O.get(C)) && C.options.step, w = C && C.points, x = O.inverted, a = u.xAxis, c = u.yAxis;
  6884. O = N.length - 1;
  6885. var p;
  6886. P = P.onKey || "y";
  6887. var i = w && w.length, l = 0, s;
  6888. if (C && C.visible && i) {
  6889. l = (C.pointXOffset || 0) + (C.barW || 0) / 2;
  6890. var t = C.currentDataGrouping, o = w[i - 1].x + (t ? t.totalRange : 0);
  6891. for (H(N, function(_, D) {
  6892. return _.x - D.x;
  6893. }), P = "plot" + P[0].toUpperCase() + P.substr(1); i-- && N[O]; ) {
  6894. var n = w[i];
  6895. if (t = N[O], t.y = n.y, n.x <= t.x && typeof n[P] < "u") {
  6896. if (t.x <= o && (t.plotY = n[P], n.x < t.x && !b && (s = w[i + 1]) && typeof s[P] < "u")) {
  6897. var A = (t.x - n.x) / (s.x - n.x);
  6898. t.plotY += A * (s[P] - n[P]), t.y += A * (s.y - n.y);
  6899. }
  6900. if (O--, i++, 0 > O)
  6901. break;
  6902. }
  6903. }
  6904. }
  6905. N.forEach(function(_, D) {
  6906. if (_.plotX += l, (typeof _.plotY > "u" || x) && (0 <= _.plotX && _.plotX <= a.len ? x ? (_.plotY = a.translate(_.x, 0, 1, 0, 1), _.plotX = U(_.y) ? c.translate(_.y, 0, 0, 0, 1) : 0) : _.plotY = (a.opposite ? 0 : u.yAxis.len) + a.offset : _.shapeArgs = {}), (p = N[D - 1]) && p.plotX === _.plotX) {
  6907. typeof p.stackIndex > "u" && (p.stackIndex = 0);
  6908. var B = p.stackIndex + 1;
  6909. }
  6910. _.stackIndex = B;
  6911. }), this.onSeries = C;
  6912. }
  6913. var d = [];
  6914. R.compose = function(u) {
  6915. if (d.indexOf(u) === -1) {
  6916. d.push(u);
  6917. var P = u.prototype;
  6918. P.getPlotBox = S, P.translate = v;
  6919. }
  6920. return u;
  6921. }, R.getPlotBox = S, R.translate = v;
  6922. }(W || (W = {})), W;
  6923. }), E(
  6924. h,
  6925. "Series/Flags/FlagsSymbols.js",
  6926. [h["Core/Renderer/RendererRegistry.js"], h["Core/Renderer/SVG/SVGRenderer.js"]],
  6927. function(y, j) {
  6928. function I(F) {
  6929. Z[F + "pin"] = function(U, H, W, R, S) {
  6930. var v = S && S.anchorX;
  6931. S = S && S.anchorY, F === "circle" && R > W && (U -= Math.round((R - W) / 2), W = R);
  6932. var d = Z[F](U, H, W, R);
  6933. if (v && S) {
  6934. var u = v;
  6935. F === "circle" ? u = U + W / 2 : (U = d[0], W = d[1], U[0] === "M" && W[0] === "L" && (u = (U[1] + W[1]) / 2)), d.push(["M", u, H > S ? H : H + R], ["L", v, S]), d = d.concat(Z.circle(v - 1, S - 1, 2, 2));
  6936. }
  6937. return d;
  6938. };
  6939. }
  6940. var Z = j.prototype.symbols;
  6941. return Z.flag = function(F, U, H, W, R) {
  6942. var S = R && R.anchorX || F;
  6943. R = R && R.anchorY || U;
  6944. var v = Z.circle(S - 1, R - 1, 2, 2);
  6945. return v.push(["M", S, R], ["L", F, U + W], ["L", F, U], ["L", F + H, U], ["L", F + H, U + W], ["L", F, U + W], ["Z"]), v;
  6946. }, I("circle"), I("square"), y = y.getRendererType(), y !== j && (y.prototype.symbols.circlepin = Z.circlepin, y.prototype.symbols.flag = Z.flag, y.prototype.symbols.squarepin = Z.squarepin), Z;
  6947. }
  6948. ), E(h, "Series/Flags/FlagsSeries.js", [
  6949. h["Series/Flags/FlagsPoint.js"],
  6950. h["Core/Globals.js"],
  6951. h["Series/OnSeriesComposition.js"],
  6952. h["Core/Renderer/RendererUtilities.js"],
  6953. h["Core/Series/SeriesRegistry.js"],
  6954. h["Core/Renderer/SVG/SVGElement.js"],
  6955. h["Core/Utilities.js"]
  6956. ], function(y, j, I, Z, F, U, H) {
  6957. var W = this && this.__extends || function() {
  6958. var C = function(b, w) {
  6959. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  6960. x.__proto__ = a;
  6961. } || function(x, a) {
  6962. for (var c in a)
  6963. a.hasOwnProperty(c) && (x[c] = a[c]);
  6964. }, C(b, w);
  6965. };
  6966. return function(b, w) {
  6967. function x() {
  6968. this.constructor = b;
  6969. }
  6970. C(b, w), b.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  6971. };
  6972. }();
  6973. j = j.noop;
  6974. var R = Z.distribute, S = F.series, v = F.seriesTypes.column, d = H.addEvent, u = H.defined;
  6975. Z = H.extend;
  6976. var P = H.merge, O = H.objectEach, N = H.wrap;
  6977. return H = function(C) {
  6978. function b() {
  6979. var w = C !== null && C.apply(this, arguments) || this;
  6980. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  6981. }
  6982. return W(b, C), b.prototype.animate = function(w) {
  6983. w && this.setClip();
  6984. }, b.prototype.drawPoints = function() {
  6985. var w = this.points, x = this.chart, a = x.renderer, c = x.inverted, p = this.options, i = p.y, l, s = this.yAxis, t = {}, o = [];
  6986. for (l = w.length; l--; ) {
  6987. var n = w[l], A = (c ? n.plotY : n.plotX) > this.xAxis.len, _ = n.plotX, D = n.stackIndex, B = n.options.shape || p.shape, T = n.plotY;
  6988. typeof T < "u" && (T = n.plotY + i - (typeof D < "u" && D * p.stackDistance)), n.anchorX = D ? void 0 : n.plotX;
  6989. var X = D ? void 0 : n.plotY, g = B !== "flag";
  6990. D = n.graphic, typeof T < "u" && 0 <= _ && !A ? (D && n.hasNewShapeType() && (D = D.destroy()), D || (D = n.graphic = a.label("", null, null, B, null, null, p.useHTML).addClass("highcharts-point").add(this.markerGroup), n.graphic.div && (n.graphic.div.point = n), D.isNew = !0), D.attr({
  6991. align: g ? "center" : "left",
  6992. width: p.width,
  6993. height: p.height,
  6994. "text-align": p.textAlign
  6995. }), x.styledMode || D.attr(this.pointAttribs(n)).css(P(p.style, n.style)).shadow(p.shadow), 0 < _ && (_ -= D.strokeWidth() % 2), B = { y: T, anchorY: X }, p.allowOverlapX && (B.x = _, B.anchorX = n.anchorX), D.attr({ text: n.options.title || p.title || "A" })[D.isNew ? "attr" : "animate"](B), p.allowOverlapX || (t[n.plotX] ? t[n.plotX].size = Math.max(t[n.plotX].size, D.width) : t[n.plotX] = { align: g ? 0.5 : 0, size: D.width, target: _, anchorX: _ }), n.tooltipPos = [_, T + s.pos - x.plotTop]) : D && (n.graphic = D.destroy());
  6996. }
  6997. if (!p.allowOverlapX) {
  6998. var m = 100;
  6999. O(t, function(L) {
  7000. L.plotX = L.anchorX, o.push(L), m = Math.max(L.size, m);
  7001. }), R(o, c ? s.len : this.xAxis.len, m), w.forEach(function(L) {
  7002. var Y = L.graphic && t[L.plotX];
  7003. Y && (L.graphic[L.graphic.isNew ? "attr" : "animate"]({ x: Y.pos + Y.align * Y.size, anchorX: L.anchorX }), u(Y.pos) ? L.graphic.isNew = !1 : (L.graphic.attr({ x: -9999, anchorX: -9999 }), L.graphic.isNew = !0));
  7004. });
  7005. }
  7006. p.useHTML && N(this.markerGroup, "on", function(L) {
  7007. return U.prototype.on.apply(L.apply(this, [].slice.call(arguments, 1)), [].slice.call(arguments, 1));
  7008. });
  7009. }, b.prototype.drawTracker = function() {
  7010. var w = this.points;
  7011. C.prototype.drawTracker.call(this), w.forEach(function(x) {
  7012. var a = x.graphic;
  7013. a && (x.unbindMouseOver && x.unbindMouseOver(), x.unbindMouseOver = d(a.element, "mouseover", function() {
  7014. 0 < x.stackIndex && !x.raised && (x._y = a.y, a.attr({ y: x._y - 8 }), x.raised = !0), w.forEach(function(c) {
  7015. c !== x && c.raised && c.graphic && (c.graphic.attr({ y: c._y }), c.raised = !1);
  7016. });
  7017. }));
  7018. });
  7019. }, b.prototype.pointAttribs = function(w, x) {
  7020. var a = this.options, c = w && w.color || this.color, p = a.lineColor, i = w && w.lineWidth;
  7021. return w = w && w.fillColor || a.fillColor, x && (w = a.states[x].fillColor, p = a.states[x].lineColor, i = a.states[x].lineWidth), { fill: w || c, stroke: p || c, "stroke-width": i || a.lineWidth || 0 };
  7022. }, b.prototype.setClip = function() {
  7023. S.prototype.setClip.apply(this, arguments), this.options.clip !== !1 && this.sharedClipKey && this.markerGroup && this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey]);
  7024. }, b.defaultOptions = P(v.defaultOptions, {
  7025. pointRange: 0,
  7026. allowOverlapX: !1,
  7027. shape: "flag",
  7028. stackDistance: 12,
  7029. textAlign: "center",
  7030. tooltip: { pointFormat: "{point.text}" },
  7031. threshold: null,
  7032. y: -30,
  7033. fillColor: "#ffffff",
  7034. lineWidth: 1,
  7035. states: { hover: { lineColor: "#000000", fillColor: "#ccd6eb" } },
  7036. style: { fontSize: "11px", fontWeight: "bold" }
  7037. }), b;
  7038. }(v), I.compose(H), Z(H.prototype, { allowDG: !1, forceCrop: !0, invertible: !1, noSharedTooltip: !0, pointClass: y, sorted: !1, takeOrdinalPosition: !1, trackerGroups: ["markerGroup"], buildKDTree: j, init: S.prototype.init, invertGroups: j }), F.registerSeriesType("flags", H), H;
  7039. }), E(h, "Core/Axis/ScrollbarAxis.js", [h["Core/Utilities.js"]], function(y) {
  7040. var j = y.addEvent, I = y.defined, Z = y.pick;
  7041. return function() {
  7042. function F() {
  7043. }
  7044. return F.compose = function(U, H) {
  7045. if (F.composed.indexOf(U) === -1)
  7046. F.composed.push(U);
  7047. else
  7048. return U;
  7049. var W = function(R) {
  7050. var S = Z(R.options && R.options.min, R.min), v = Z(R.options && R.options.max, R.max);
  7051. return { axisMin: S, axisMax: v, scrollMin: I(R.dataMin) ? Math.min(S, R.min, R.dataMin, Z(R.threshold, 1 / 0)) : S, scrollMax: I(R.dataMax) ? Math.max(v, R.max, R.dataMax, Z(R.threshold, -1 / 0)) : v };
  7052. };
  7053. return j(U, "afterInit", function() {
  7054. var R = this;
  7055. R.options && R.options.scrollbar && R.options.scrollbar.enabled && (R.options.scrollbar.vertical = !R.horiz, R.options.startOnTick = R.options.endOnTick = !1, R.scrollbar = new H(R.chart.renderer, R.options.scrollbar, R.chart), j(R.scrollbar, "changed", function(S) {
  7056. var v = W(R), d = v.axisMax, u = v.scrollMin, P = v.scrollMax - u;
  7057. I(v.axisMin) && I(d) && (R.horiz && !R.reversed || !R.horiz && R.reversed ? (v = u + P * this.to, u += P * this.from) : (v = u + P * (1 - this.from), u += P * (1 - this.to)), this.shouldUpdateExtremes(S.DOMType) ? R.setExtremes(u, v, !0, S.DOMType !== "mousemove" && S.DOMType !== "touchmove", S) : this.setRange(
  7058. this.from,
  7059. this.to
  7060. ));
  7061. }));
  7062. }), j(U, "afterRender", function() {
  7063. var R = W(this), S = R.scrollMin, v = R.scrollMax;
  7064. R = this.scrollbar;
  7065. var d = this.axisTitleMargin + (this.titleOffset || 0), u = this.chart.scrollbarsOffsets, P = this.options.margin || 0;
  7066. R && (this.horiz ? (this.opposite || (u[1] += d), R.position(this.left, this.top + this.height + 2 + u[1] - (this.opposite ? P : 0), this.width, this.height), this.opposite || (u[1] += P), d = 1) : (this.opposite && (u[0] += d), R.position(
  7067. R.options.opposite ? this.left + this.width + 2 + u[0] - (this.opposite ? 0 : P) : this.opposite ? 0 : P,
  7068. this.top,
  7069. this.width,
  7070. this.height
  7071. ), this.opposite && (u[0] += P), d = 0), u[d] += R.size + R.options.margin, isNaN(S) || isNaN(v) || !I(this.min) || !I(this.max) || this.min === this.max ? R.setRange(0, 1) : (u = (this.min - S) / (v - S), S = (this.max - S) / (v - S), this.horiz && !this.reversed || !this.horiz && this.reversed ? R.setRange(u, S) : R.setRange(1 - S, 1 - u)));
  7072. }), j(U, "afterGetOffset", function() {
  7073. var R = this.scrollbar && !this.scrollbar.options.opposite;
  7074. R = this.horiz ? 2 : R ? 3 : 1;
  7075. var S = this.scrollbar;
  7076. S && (this.chart.scrollbarsOffsets = [0, 0], this.chart.axisOffset[R] += S.size + S.options.margin);
  7077. }), U;
  7078. }, F.composed = [], F;
  7079. }();
  7080. }), E(h, "Core/ScrollbarDefaults.js", [h["Core/Globals.js"]], function(y) {
  7081. return {
  7082. height: y.isTouchDevice ? 20 : 14,
  7083. barBorderRadius: 0,
  7084. buttonBorderRadius: 0,
  7085. liveRedraw: void 0,
  7086. margin: 10,
  7087. minWidth: 6,
  7088. opposite: !0,
  7089. step: 0.2,
  7090. zIndex: 3,
  7091. barBackgroundColor: "#cccccc",
  7092. barBorderWidth: 1,
  7093. barBorderColor: "#cccccc",
  7094. buttonArrowColor: "#333333",
  7095. buttonBackgroundColor: "#e6e6e6",
  7096. buttonBorderColor: "#cccccc",
  7097. buttonBorderWidth: 1,
  7098. rifleColor: "#333333",
  7099. trackBackgroundColor: "#f2f2f2",
  7100. trackBorderColor: "#f2f2f2",
  7101. trackBorderWidth: 1
  7102. };
  7103. }), E(h, "Core/Scrollbar.js", [h["Core/DefaultOptions.js"], h["Core/Globals.js"], h["Core/Axis/ScrollbarAxis.js"], h["Core/ScrollbarDefaults.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F) {
  7104. var U = y.defaultOptions, H = F.addEvent, W = F.correctFloat, R = F.defined, S = F.destroyObjectProperties, v = F.fireEvent, d = F.merge, u = F.pick, P = F.removeEvent;
  7105. return y = function() {
  7106. function O(N, C, b) {
  7107. this._events = [], this.chart = void 0, this.from = this.chartY = this.chartX = 0, this.scrollbar = this.renderer = this.options = this.group = void 0, this.scrollbarButtons = [], this.scrollbarGroup = void 0, this.scrollbarLeft = 0, this.scrollbarRifles = void 0, this.scrollbarStrokeWidth = 1, this.to = this.size = this.scrollbarTop = 0, this.track = void 0, this.trackBorderWidth = 1, this.userOptions = void 0, this.y = this.x = 0, this.init(N, C, b);
  7108. }
  7109. return O.compose = function(N) {
  7110. I.compose(N, O);
  7111. }, O.swapXY = function(N, C) {
  7112. return C && N.forEach(function(b) {
  7113. for (var w = b.length, x, a = 0; a < w; a += 2)
  7114. x = b[a + 1], typeof x == "number" && (b[a + 1] = b[a + 2], b[a + 2] = x);
  7115. }), N;
  7116. }, O.prototype.addEvents = function() {
  7117. var N = this.options.inverted ? [1, 0] : [0, 1], C = this.scrollbarButtons, b = this.scrollbarGroup.element, w = this.track.element, x = this.mouseDownHandler.bind(this), a = this.mouseMoveHandler.bind(this), c = this.mouseUpHandler.bind(this);
  7118. N = [[C[N[0]].element, "click", this.buttonToMinClick.bind(this)], [C[N[1]].element, "click", this.buttonToMaxClick.bind(this)], [w, "click", this.trackClick.bind(this)], [b, "mousedown", x], [b.ownerDocument, "mousemove", a], [b.ownerDocument, "mouseup", c]], j.hasTouch && N.push(
  7119. [b, "touchstart", x],
  7120. [b.ownerDocument, "touchmove", a],
  7121. [b.ownerDocument, "touchend", c]
  7122. ), N.forEach(function(p) {
  7123. H.apply(null, p);
  7124. }), this._events = N;
  7125. }, O.prototype.buttonToMaxClick = function(N) {
  7126. var C = (this.to - this.from) * u(this.options.step, 0.2);
  7127. this.updatePosition(this.from + C, this.to + C), v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: N });
  7128. }, O.prototype.buttonToMinClick = function(N) {
  7129. var C = W(this.to - this.from) * u(this.options.step, 0.2);
  7130. this.updatePosition(W(this.from - C), W(this.to - C)), v(this, "changed", {
  7131. from: this.from,
  7132. to: this.to,
  7133. trigger: "scrollbar",
  7134. DOMEvent: N
  7135. });
  7136. }, O.prototype.cursorToScrollbarPosition = function(N) {
  7137. var C = this.options;
  7138. return C = C.minWidth > this.calculatedWidth ? C.minWidth : 0, { chartX: (N.chartX - this.x - this.xOffset) / (this.barWidth - C), chartY: (N.chartY - this.y - this.yOffset) / (this.barWidth - C) };
  7139. }, O.prototype.destroy = function() {
  7140. var N = this, C = N.chart.scroller;
  7141. N.removeEvents(), ["track", "scrollbarRifles", "scrollbar", "scrollbarGroup", "group"].forEach(function(b) {
  7142. N[b] && N[b].destroy && (N[b] = N[b].destroy());
  7143. }), C && N === C.scrollbar && (C.scrollbar = null, S(C.scrollbarButtons));
  7144. }, O.prototype.drawScrollbarButton = function(N) {
  7145. var C = this.renderer, b = this.scrollbarButtons, w = this.options, x = this.size, a = C.g().add(this.group);
  7146. b.push(a), a = C.rect().addClass("highcharts-scrollbar-button").add(a), this.chart.styledMode || a.attr({ stroke: w.buttonBorderColor, "stroke-width": w.buttonBorderWidth, fill: w.buttonBackgroundColor }), a.attr(a.crisp({ x: -0.5, y: -0.5, width: x + 1, height: x + 1, r: w.buttonBorderRadius }, a.strokeWidth())), a = C.path(O.swapXY([["M", x / 2 + (N ? -1 : 1), x / 2 - 3], ["L", x / 2 + (N ? -1 : 1), x / 2 + 3], ["L", x / 2 + (N ? 2 : -2), x / 2]], w.vertical)).addClass("highcharts-scrollbar-arrow").add(b[N]), this.chart.styledMode || a.attr({ fill: w.buttonArrowColor });
  7147. }, O.prototype.init = function(N, C, b) {
  7148. this.scrollbarButtons = [], this.renderer = N, this.userOptions = C, this.options = d(Z, U.scrollbar, C), this.chart = b, this.size = u(this.options.size, this.options.height), C.enabled && (this.render(), this.addEvents());
  7149. }, O.prototype.mouseDownHandler = function(N) {
  7150. N = this.chart.pointer.normalize(N), N = this.cursorToScrollbarPosition(N), this.chartX = N.chartX, this.chartY = N.chartY, this.initPositions = [this.from, this.to], this.grabbedCenter = !0;
  7151. }, O.prototype.mouseMoveHandler = function(N) {
  7152. var C = this.chart.pointer.normalize(N), b = this.options.vertical ? "chartY" : "chartX", w = this.initPositions || [];
  7153. !this.grabbedCenter || N.touches && N.touches[0][b] === 0 || (C = this.cursorToScrollbarPosition(C)[b], b = this[b], b = C - b, this.hasDragged = !0, this.updatePosition(w[0] + b, w[1] + b), this.hasDragged && v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: N.type, DOMEvent: N }));
  7154. }, O.prototype.mouseUpHandler = function(N) {
  7155. this.hasDragged && v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: N.type, DOMEvent: N }), this.grabbedCenter = this.hasDragged = this.chartX = this.chartY = null;
  7156. }, O.prototype.position = function(N, C, b, w) {
  7157. var x = this.options.vertical, a = this.rendered ? "animate" : "attr", c = 0;
  7158. this.x = N, this.y = C + this.trackBorderWidth, this.width = b, this.xOffset = this.height = w, this.yOffset = c, x ? (this.width = this.yOffset = b = c = this.size, this.xOffset = C = 0, this.barWidth = w - 2 * b, this.x = N += this.options.margin) : (this.height = this.xOffset = w = C = this.size, this.barWidth = b - 2 * w, this.y += this.options.margin), this.group[a]({ translateX: N, translateY: this.y }), this.track[a]({ width: b, height: w }), this.scrollbarButtons[1][a]({ translateX: x ? 0 : b - C, translateY: x ? w - c : 0 });
  7159. }, O.prototype.removeEvents = function() {
  7160. this._events.forEach(function(N) {
  7161. P.apply(null, N);
  7162. }), this._events.length = 0;
  7163. }, O.prototype.render = function() {
  7164. var N = this.renderer, C = this.options, b = this.size, w = this.chart.styledMode, x = N.g("scrollbar").attr({ zIndex: C.zIndex, translateY: -99999 }).add();
  7165. this.group = x, this.track = N.rect().addClass("highcharts-scrollbar-track").attr({ x: 0, r: C.trackBorderRadius || 0, height: b, width: b }).add(x), w || this.track.attr({ fill: C.trackBackgroundColor, stroke: C.trackBorderColor, "stroke-width": C.trackBorderWidth }), this.trackBorderWidth = this.track.strokeWidth(), this.track.attr({ y: -this.trackBorderWidth % 2 / 2 }), this.scrollbarGroup = N.g().add(x), this.scrollbar = N.rect().addClass("highcharts-scrollbar-thumb").attr({ height: b, width: b, r: C.barBorderRadius || 0 }).add(this.scrollbarGroup), this.scrollbarRifles = N.path(O.swapXY([["M", -3, b / 4], ["L", -3, 2 * b / 3], ["M", 0, b / 4], ["L", 0, 2 * b / 3], ["M", 3, b / 4], ["L", 3, 2 * b / 3]], C.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup), w || (this.scrollbar.attr({ fill: C.barBackgroundColor, stroke: C.barBorderColor, "stroke-width": C.barBorderWidth }), this.scrollbarRifles.attr({ stroke: C.rifleColor, "stroke-width": 1 })), this.scrollbarStrokeWidth = this.scrollbar.strokeWidth(), this.scrollbarGroup.translate(-this.scrollbarStrokeWidth % 2 / 2, -this.scrollbarStrokeWidth % 2 / 2), this.drawScrollbarButton(0), this.drawScrollbarButton(1);
  7166. }, O.prototype.setRange = function(N, C) {
  7167. var b = this.options, w = b.vertical, x = b.minWidth, a = this.barWidth, c = !this.rendered || this.hasDragged || this.chart.navigator && this.chart.navigator.hasDragged ? "attr" : "animate";
  7168. if (R(a)) {
  7169. var p = a * Math.min(C, 1);
  7170. N = Math.max(N, 0);
  7171. var i = Math.ceil(a * N);
  7172. this.calculatedWidth = p = W(p - i), p < x && (i = (a - x + p) * N, p = x), x = Math.floor(i + this.xOffset + this.yOffset), a = p / 2 - 0.5, this.from = N, this.to = C, w ? (this.scrollbarGroup[c]({ translateY: x }), this.scrollbar[c]({ height: p }), this.scrollbarRifles[c]({ translateY: a }), this.scrollbarTop = x, this.scrollbarLeft = 0) : (this.scrollbarGroup[c]({ translateX: x }), this.scrollbar[c]({ width: p }), this.scrollbarRifles[c]({ translateX: a }), this.scrollbarLeft = x, this.scrollbarTop = 0), 12 >= p ? this.scrollbarRifles.hide() : this.scrollbarRifles.show(!0), b.showFull === !1 && (0 >= N && 1 <= C ? this.group.hide() : this.group.show()), this.rendered = !0;
  7173. }
  7174. }, O.prototype.shouldUpdateExtremes = function(N) {
  7175. return u(this.options.liveRedraw, j.svg && !j.isTouchDevice && !this.chart.isBoosting) || N === "mouseup" || N === "touchend" || !R(N);
  7176. }, O.prototype.trackClick = function(N) {
  7177. var C = this.chart.pointer.normalize(N), b = this.to - this.from, w = this.y + this.scrollbarTop, x = this.x + this.scrollbarLeft;
  7178. this.options.vertical && C.chartY > w || !this.options.vertical && C.chartX > x ? this.updatePosition(this.from + b, this.to + b) : this.updatePosition(this.from - b, this.to - b), v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: N });
  7179. }, O.prototype.update = function(N) {
  7180. this.destroy(), this.init(this.chart.renderer, d(
  7181. !0,
  7182. this.options,
  7183. N
  7184. ), this.chart);
  7185. }, O.prototype.updatePosition = function(N, C) {
  7186. 1 < C && (N = W(1 - W(C - N)), C = 1), 0 > N && (C = W(C - N), N = 0), this.from = N, this.to = C;
  7187. }, O.defaultOptions = Z, O;
  7188. }(), U.scrollbar = d(!0, y.defaultOptions, U.scrollbar), y;
  7189. }), E(h, "Core/Axis/NavigatorAxis.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j) {
  7190. var I = y.isTouchDevice, Z = j.addEvent, F = j.correctFloat, U = j.defined, H = j.isNumber, W = j.pick, R = function() {
  7191. function S(v) {
  7192. this.axis = v;
  7193. }
  7194. return S.prototype.destroy = function() {
  7195. this.axis = void 0;
  7196. }, S.prototype.toFixedRange = function(v, d, u, P) {
  7197. var O = this.axis, N = O.chart;
  7198. N = N && N.fixedRange;
  7199. var C = (O.pointRange || 0) / 2;
  7200. return v = W(u, O.translate(v, !0, !O.horiz)), d = W(P, O.translate(d, !0, !O.horiz)), O = N && (d - v) / N, U(u) || (v = F(v + C)), U(P) || (d = F(d - C)), 0.7 < O && 1.3 > O && (P ? v = d - N : d = v + N), H(v) && H(d) || (v = d = void 0), { min: v, max: d };
  7201. }, S;
  7202. }();
  7203. return function() {
  7204. function S() {
  7205. }
  7206. return S.compose = function(v) {
  7207. v.keepProps.push("navigatorAxis"), Z(v, "init", function() {
  7208. this.navigatorAxis || (this.navigatorAxis = new R(this));
  7209. }), Z(v, "zoom", function(d) {
  7210. var u = this.chart.options, P = u.navigator, O = this.navigatorAxis, N = u.chart.pinchType, C = u.rangeSelector;
  7211. u = u.chart.zoomType, this.isXAxis && (P && P.enabled || C && C.enabled) && (u === "y" ? d.zoomed = !1 : (!I && u === "xy" || I && N === "xy") && this.options.range && (P = O.previousZoom, U(d.newMin) ? O.previousZoom = [this.min, this.max] : P && (d.newMin = P[0], d.newMax = P[1], O.previousZoom = void 0))), typeof d.zoomed < "u" && d.preventDefault();
  7212. });
  7213. }, S.AdditionsClass = R, S;
  7214. }();
  7215. }), E(h, "Core/Navigator.js", [
  7216. h["Core/Axis/Axis.js"],
  7217. h["Core/Chart/Chart.js"],
  7218. h["Core/Color/Color.js"],
  7219. h["Core/Globals.js"],
  7220. h["Core/Axis/NavigatorAxis.js"],
  7221. h["Core/DefaultOptions.js"],
  7222. h["Core/Renderer/RendererRegistry.js"],
  7223. h["Core/Scrollbar.js"],
  7224. h["Core/Series/Series.js"],
  7225. h["Core/Series/SeriesRegistry.js"],
  7226. h["Core/Utilities.js"]
  7227. ], function(y, j, I, Z, F, U, H, W, R, S, v) {
  7228. I = I.parse;
  7229. var d = Z.hasTouch, u = Z.isTouchDevice, P = U.defaultOptions, O = v.addEvent, N = v.clamp, C = v.correctFloat, b = v.defined, w = v.destroyObjectProperties, x = v.erase, a = v.extend, c = v.find, p = v.isArray, i = v.isNumber, l = v.merge, s = v.pick, t = v.removeEvent, o = v.splat, n = function(_) {
  7230. for (var D = [], B = 1; B < arguments.length; B++)
  7231. D[B - 1] = arguments[B];
  7232. if (D = [].filter.call(D, i), D.length)
  7233. return Math[_].apply(0, D);
  7234. };
  7235. U = typeof S.seriesTypes.areaspline > "u" ? "line" : "areaspline", a(P, { navigator: { height: 40, margin: 25, maskInside: !0, handles: { width: 7, height: 15, symbols: ["navigator-handle", "navigator-handle"], enabled: !0, lineWidth: 1, backgroundColor: "#f2f2f2", borderColor: "#999999" }, maskFill: I("#6685c2").setOpacity(0.3).get(), outlineColor: "#cccccc", outlineWidth: 1, series: {
  7236. type: U,
  7237. fillOpacity: 0.05,
  7238. lineWidth: 1,
  7239. compare: null,
  7240. dataGrouping: { approximation: "average", enabled: !0, groupPixelWidth: 2, firstAnchor: "firstPoint", anchor: "middle", lastAnchor: "lastPoint", units: [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2, 3, 4]], ["week", [1, 2, 3]], ["month", [1, 3, 6]], ["year", null]] },
  7241. dataLabels: { enabled: !1, zIndex: 2 },
  7242. id: "highcharts-navigator-series",
  7243. className: "highcharts-navigator-series",
  7244. lineColor: null,
  7245. marker: { enabled: !1 },
  7246. threshold: null
  7247. }, xAxis: { overscroll: 0, className: "highcharts-navigator-xaxis", tickLength: 0, lineWidth: 0, gridLineColor: "#e6e6e6", gridLineWidth: 1, tickPixelInterval: 200, labels: { align: "left", style: { color: "#999999" }, x: 3, y: -4 }, crosshair: !1 }, yAxis: { className: "highcharts-navigator-yaxis", gridLineWidth: 0, startOnTick: !1, endOnTick: !1, minPadding: 0.1, maxPadding: 0.1, labels: { enabled: !1 }, crosshair: !1, title: { text: null }, tickLength: 0, tickWidth: 0 } } }), H.getRendererType().prototype.symbols["navigator-handle"] = function(_, D, B, T, X) {
  7248. return _ = (X && X.width || 0) / 2, D = Math.round(_ / 3) + 0.5, X = X && X.height || 0, [["M", -_ - 1, 0.5], ["L", _, 0.5], ["L", _, X + 0.5], ["L", -_ - 1, X + 0.5], ["L", -_ - 1, 0.5], ["M", -D, 4], ["L", -D, X - 3], ["M", D - 1, 4], ["L", D - 1, X - 3]];
  7249. };
  7250. var A = function() {
  7251. function _(D) {
  7252. this.zoomedMin = this.zoomedMax = this.yAxis = this.xAxis = this.top = this.size = this.shades = this.rendered = this.range = this.outlineHeight = this.outline = this.opposite = this.navigatorSize = this.navigatorSeries = this.navigatorOptions = this.navigatorGroup = this.navigatorEnabled = this.left = this.height = this.handles = this.chart = this.baseSeries = void 0, this.init(D);
  7253. }
  7254. return _.prototype.drawHandle = function(D, B, T, X) {
  7255. var g = this.navigatorOptions.handles.height;
  7256. this.handles[B][X](T ? { translateX: Math.round(this.left + this.height / 2), translateY: Math.round(this.top + parseInt(D, 10) + 0.5 - g) } : { translateX: Math.round(this.left + parseInt(D, 10)), translateY: Math.round(this.top + this.height / 2 - g / 2 - 1) });
  7257. }, _.prototype.drawOutline = function(D, B, T, X) {
  7258. var g = this.navigatorOptions.maskInside, m = this.outline.strokeWidth(), L = m / 2, Y = m % 2 / 2;
  7259. m = this.outlineHeight;
  7260. var V = this.scrollbarHeight || 0, Q = this.size, k = this.left - V, G = this.top;
  7261. T ? (k -= L, T = G + B + Y, B = G + D + Y, Y = [["M", k + m, G - V - Y], ["L", k + m, T], ["L", k, T], ["L", k, B], ["L", k + m, B], ["L", k + m, G + Q + V]], g && Y.push(["M", k + m, T - L], ["L", k + m, B + L])) : (D += k + V - Y, B += k + V - Y, G += L, Y = [["M", k, G], ["L", D, G], ["L", D, G + m], ["L", B, G + m], ["L", B, G], ["L", k + Q + 2 * V, G]], g && Y.push(["M", D - L, G], ["L", B + L, G])), this.outline[X]({ d: Y });
  7262. }, _.prototype.drawMasks = function(D, B, T, X) {
  7263. var g = this.left, m = this.top, L = this.height;
  7264. if (T)
  7265. var Y = [g, g, g], V = [m, m + D, m + B], Q = [L, L, L], k = [D, B - D, this.size - B];
  7266. else
  7267. Y = [g, g + D, g + B], V = [m, m, m], Q = [D, B - D, this.size - B], k = [L, L, L];
  7268. this.shades.forEach(function(G, z) {
  7269. G[X]({ x: Y[z], y: V[z], width: Q[z], height: k[z] });
  7270. });
  7271. }, _.prototype.renderElements = function() {
  7272. var D = this, B = D.navigatorOptions, T = B.maskInside, X = D.chart, g = X.renderer, m, L = { cursor: X.inverted ? "ns-resize" : "ew-resize" };
  7273. D.navigatorGroup = m = g.g("navigator").attr({ zIndex: 8, visibility: "hidden" }).add(), [!T, T, !T].forEach(function(Y, V) {
  7274. D.shades[V] = g.rect().addClass("highcharts-navigator-mask" + (V === 1 ? "-inside" : "-outside")).add(m), X.styledMode || D.shades[V].attr({ fill: Y ? B.maskFill : "rgba(0,0,0,0)" }).css(V === 1 && L);
  7275. }), D.outline = g.path().addClass("highcharts-navigator-outline").add(m), X.styledMode || D.outline.attr({ "stroke-width": B.outlineWidth, stroke: B.outlineColor }), B.handles.enabled && [0, 1].forEach(function(Y) {
  7276. if (B.handles.inverted = X.inverted, D.handles[Y] = g.symbol(B.handles.symbols[Y], -B.handles.width / 2 - 1, 0, B.handles.width, B.handles.height, B.handles), D.handles[Y].attr({ zIndex: 7 - Y }).addClass("highcharts-navigator-handle highcharts-navigator-handle-" + ["left", "right"][Y]).add(m), !X.styledMode) {
  7277. var V = B.handles;
  7278. D.handles[Y].attr({ fill: V.backgroundColor, stroke: V.borderColor, "stroke-width": V.lineWidth }).css(L);
  7279. }
  7280. });
  7281. }, _.prototype.update = function(D) {
  7282. (this.series || []).forEach(function(B) {
  7283. B.baseSeries && delete B.baseSeries.navigatorSeries;
  7284. }), this.destroy(), l(!0, this.chart.options.navigator, this.options, D), this.init(this.chart);
  7285. }, _.prototype.render = function(D, B, T, X) {
  7286. var g = this.chart, m = this.scrollbarHeight, L, Y = this.xAxis, V = Y.pointRange || 0, Q = Y.navigatorAxis.fake ? g.xAxis[0] : Y, k = this.navigatorEnabled, G, z = this.rendered, $ = g.inverted, q = g.xAxis[0].minRange, it = g.xAxis[0].options.maxRange;
  7287. if (!this.hasDragged || b(T)) {
  7288. if (D = C(D - V / 2), B = C(B + V / 2), !i(D) || !i(B))
  7289. if (z)
  7290. T = 0, X = s(Y.width, Q.width);
  7291. else
  7292. return;
  7293. this.left = s(Y.left, g.plotLeft + m + ($ ? g.plotWidth : 0)), this.size = G = L = s(Y.len, ($ ? g.plotHeight : g.plotWidth) - 2 * m), g = $ ? m : L + 2 * m, T = s(T, Y.toPixels(D, !0)), X = s(X, Y.toPixels(B, !0)), i(T) && Math.abs(T) !== 1 / 0 || (T = 0, X = g), D = Y.toValue(T, !0), B = Y.toValue(X, !0);
  7294. var et = Math.abs(C(B - D));
  7295. et < q ? this.grabbedLeft ? T = Y.toPixels(B - q - V, !0) : this.grabbedRight && (X = Y.toPixels(D + q + V, !0)) : b(it) && C(et - V) > it && (this.grabbedLeft ? T = Y.toPixels(B - it - V, !0) : this.grabbedRight && (X = Y.toPixels(D + it + V, !0))), this.zoomedMax = N(Math.max(T, X), 0, G), this.zoomedMin = N(this.fixedWidth ? this.zoomedMax - this.fixedWidth : Math.min(T, X), 0, G), this.range = this.zoomedMax - this.zoomedMin, G = Math.round(this.zoomedMax), T = Math.round(this.zoomedMin), k && (this.navigatorGroup.attr({ visibility: "visible" }), z = z && !this.hasDragged ? "animate" : "attr", this.drawMasks(T, G, $, z), this.drawOutline(T, G, $, z), this.navigatorOptions.handles.enabled && (this.drawHandle(T, 0, $, z), this.drawHandle(G, 1, $, z))), this.scrollbar && ($ ? ($ = this.top - m, Q = this.left - m + (k || !Q.opposite ? 0 : (Q.titleOffset || 0) + Q.axisTitleMargin), m = L + 2 * m) : ($ = this.top + (k ? this.height : -m), Q = this.left - m), this.scrollbar.position(Q, $, g, m), this.scrollbar.setRange(this.zoomedMin / (L || 1), this.zoomedMax / (L || 1))), this.rendered = !0;
  7296. }
  7297. }, _.prototype.addMouseEvents = function() {
  7298. var D = this, B = D.chart, T = B.container, X = [], g, m;
  7299. D.mouseMoveHandler = g = function(L) {
  7300. D.onMouseMove(L);
  7301. }, D.mouseUpHandler = m = function(L) {
  7302. D.onMouseUp(L);
  7303. }, X = D.getPartsEvents("mousedown"), X.push(O(B.renderTo, "mousemove", g), O(T.ownerDocument, "mouseup", m)), d && (X.push(O(B.renderTo, "touchmove", g), O(T.ownerDocument, "touchend", m)), X.concat(D.getPartsEvents("touchstart"))), D.eventsToUnbind = X, D.series && D.series[0] && X.push(O(D.series[0].xAxis, "foundExtremes", function() {
  7304. B.navigator.modifyNavigatorAxisExtremes();
  7305. }));
  7306. }, _.prototype.getPartsEvents = function(D) {
  7307. var B = this, T = [];
  7308. return ["shades", "handles"].forEach(function(X) {
  7309. B[X].forEach(function(g, m) {
  7310. T.push(O(g.element, D, function(L) {
  7311. B[X + "Mousedown"](L, m);
  7312. }));
  7313. });
  7314. }), T;
  7315. }, _.prototype.shadesMousedown = function(D, B) {
  7316. D = this.chart.pointer.normalize(D);
  7317. var T = this.chart, X = this.xAxis, g = this.zoomedMin, m = this.left, L = this.size, Y = this.range, V = D.chartX;
  7318. if (T.inverted && (V = D.chartY, m = this.top), B === 1)
  7319. this.grabbedCenter = V, this.fixedWidth = Y, this.dragOffset = V - g;
  7320. else {
  7321. if (D = V - m - Y / 2, B === 0)
  7322. D = Math.max(0, D);
  7323. else if (B === 2 && D + Y >= L)
  7324. if (D = L - Y, this.reversedExtremes) {
  7325. D -= Y;
  7326. var Q = this.getUnionExtremes().dataMin;
  7327. } else
  7328. var k = this.getUnionExtremes().dataMax;
  7329. D !== g && (this.fixedWidth = Y, B = X.navigatorAxis.toFixedRange(D, D + Y, Q, k), b(B.min) && T.xAxis[0].setExtremes(Math.min(B.min, B.max), Math.max(B.min, B.max), !0, null, { trigger: "navigator" }));
  7330. }
  7331. }, _.prototype.handlesMousedown = function(D, B) {
  7332. this.chart.pointer.normalize(D), D = this.chart;
  7333. var T = D.xAxis[0], X = this.reversedExtremes;
  7334. B === 0 ? (this.grabbedLeft = !0, this.otherHandlePos = this.zoomedMax, this.fixedExtreme = X ? T.min : T.max) : (this.grabbedRight = !0, this.otherHandlePos = this.zoomedMin, this.fixedExtreme = X ? T.max : T.min), D.fixedRange = null;
  7335. }, _.prototype.onMouseMove = function(D) {
  7336. var B = this, T = B.chart, X = B.left, g = B.navigatorSize, m = B.range, L = B.dragOffset, Y = T.inverted;
  7337. D.touches && D.touches[0].pageX === 0 || (D = T.pointer.normalize(D), T = D.chartX, Y && (X = B.top, T = D.chartY), B.grabbedLeft ? (B.hasDragged = !0, B.render(0, 0, T - X, B.otherHandlePos)) : B.grabbedRight ? (B.hasDragged = !0, B.render(0, 0, B.otherHandlePos, T - X)) : B.grabbedCenter && (B.hasDragged = !0, T < L ? T = L : T > g + L - m && (T = g + L - m), B.render(0, 0, T - L, T - L + m)), B.hasDragged && B.scrollbar && s(B.scrollbar.options.liveRedraw, Z.svg && !u && !this.chart.isBoosting) && (D.DOMType = D.type, setTimeout(function() {
  7338. B.onMouseUp(D);
  7339. }, 0)));
  7340. }, _.prototype.onMouseUp = function(D) {
  7341. var B = this.chart, T = this.xAxis, X = this.scrollbar, g = D.DOMEvent || D, m = B.inverted, L = this.rendered && !this.hasDragged ? "animate" : "attr";
  7342. if (this.hasDragged && (!X || !X.hasDragged) || D.trigger === "scrollbar") {
  7343. if (X = this.getUnionExtremes(), this.zoomedMin === this.otherHandlePos)
  7344. var Y = this.fixedExtreme;
  7345. else if (this.zoomedMax === this.otherHandlePos)
  7346. var V = this.fixedExtreme;
  7347. this.zoomedMax === this.size && (V = this.reversedExtremes ? X.dataMin : X.dataMax), this.zoomedMin === 0 && (Y = this.reversedExtremes ? X.dataMax : X.dataMin), T = T.navigatorAxis.toFixedRange(this.zoomedMin, this.zoomedMax, Y, V), b(T.min) && B.xAxis[0].setExtremes(Math.min(T.min, T.max), Math.max(T.min, T.max), !0, this.hasDragged ? !1 : null, { trigger: "navigator", triggerOp: "navigator-drag", DOMEvent: g });
  7348. }
  7349. D.DOMType !== "mousemove" && D.DOMType !== "touchmove" && (this.grabbedLeft = this.grabbedRight = this.grabbedCenter = this.fixedWidth = this.fixedExtreme = this.otherHandlePos = this.hasDragged = this.dragOffset = null), this.navigatorEnabled && i(this.zoomedMin) && i(this.zoomedMax) && (B = Math.round(this.zoomedMin), D = Math.round(this.zoomedMax), this.shades && this.drawMasks(B, D, m, L), this.outline && this.drawOutline(B, D, m, L), this.navigatorOptions.handles.enabled && Object.keys(this.handles).length === this.handles.length && (this.drawHandle(B, 0, m, L), this.drawHandle(D, 1, m, L)));
  7350. }, _.prototype.removeEvents = function() {
  7351. this.eventsToUnbind && (this.eventsToUnbind.forEach(function(D) {
  7352. D();
  7353. }), this.eventsToUnbind = void 0), this.removeBaseSeriesEvents();
  7354. }, _.prototype.removeBaseSeriesEvents = function() {
  7355. var D = this.baseSeries || [];
  7356. this.navigatorEnabled && D[0] && (this.navigatorOptions.adaptToUpdatedData !== !1 && D.forEach(function(B) {
  7357. t(B, "updatedData", this.updatedDataHandler);
  7358. }, this), D[0].xAxis && t(D[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes));
  7359. }, _.prototype.init = function(D) {
  7360. var B = D.options, T = B.navigator, X = T.enabled, g = B.scrollbar, m = g.enabled;
  7361. B = X ? T.height : 0;
  7362. var L = m ? g.height : 0;
  7363. this.handles = [], this.shades = [], this.chart = D, this.setBaseSeries(), this.height = B, this.scrollbarHeight = L, this.scrollbarEnabled = m, this.navigatorEnabled = X, this.navigatorOptions = T, this.scrollbarOptions = g, this.outlineHeight = B + L, this.opposite = s(T.opposite, !(X || !D.inverted));
  7364. var Y = this;
  7365. X = Y.baseSeries, g = D.xAxis.length, m = D.yAxis.length;
  7366. var V = X && X[0] && X[0].xAxis || D.xAxis[0] || { options: {} };
  7367. D.isDirtyBox = !0, Y.navigatorEnabled ? (Y.xAxis = new y(D, l(
  7368. { breaks: V.options.breaks, ordinal: V.options.ordinal },
  7369. T.xAxis,
  7370. { id: "navigator-x-axis", yAxis: "navigator-y-axis", isX: !0, type: "datetime", index: g, isInternal: !0, offset: 0, keepOrdinalPadding: !0, startOnTick: !1, endOnTick: !1, minPadding: 0, maxPadding: 0, zoomEnabled: !1 },
  7371. D.inverted ? { offsets: [L, 0, -L, 0], width: B } : { offsets: [0, -L, 0, L], height: B }
  7372. )), Y.yAxis = new y(D, l(T.yAxis, { id: "navigator-y-axis", alignTicks: !1, offset: 0, index: m, isInternal: !0, reversed: s(T.yAxis && T.yAxis.reversed, D.yAxis[0] && D.yAxis[0].reversed, !1), zoomEnabled: !1 }, D.inverted ? { width: B } : { height: B })), X || T.series.data ? Y.updateNavigatorSeries(!1) : D.series.length === 0 && (Y.unbindRedraw = O(D, "beforeRedraw", function() {
  7373. 0 < D.series.length && !Y.series && (Y.setBaseSeries(), Y.unbindRedraw());
  7374. })), Y.reversedExtremes = D.inverted && !Y.xAxis.reversed || !D.inverted && Y.xAxis.reversed, Y.renderElements(), Y.addMouseEvents()) : (Y.xAxis = {
  7375. chart: D,
  7376. navigatorAxis: { fake: !0 },
  7377. translate: function(Q, k) {
  7378. var G = D.xAxis[0], z = G.getExtremes(), $ = G.len - 2 * L, q = n("min", G.options.min, z.dataMin);
  7379. return G = n("max", G.options.max, z.dataMax) - q, k ? Q * G / $ + q : $ * (Q - q) / G;
  7380. },
  7381. toPixels: function(Q) {
  7382. return this.translate(Q);
  7383. },
  7384. toValue: function(Q) {
  7385. return this.translate(Q, !0);
  7386. }
  7387. }, Y.xAxis.navigatorAxis.axis = Y.xAxis, Y.xAxis.navigatorAxis.toFixedRange = F.AdditionsClass.prototype.toFixedRange.bind(Y.xAxis.navigatorAxis)), D.options.scrollbar.enabled && (D.scrollbar = Y.scrollbar = new W(D.renderer, l(D.options.scrollbar, { margin: Y.navigatorEnabled ? 0 : 10, vertical: D.inverted }), D), O(Y.scrollbar, "changed", function(Q) {
  7388. var k = Y.size, G = k * this.to;
  7389. k *= this.from, Y.hasDragged = Y.scrollbar.hasDragged, Y.render(0, 0, k, G), this.shouldUpdateExtremes(Q.DOMType) && setTimeout(function() {
  7390. Y.onMouseUp(Q);
  7391. });
  7392. })), Y.addBaseSeriesEvents(), Y.addChartEvents();
  7393. }, _.prototype.getUnionExtremes = function(D) {
  7394. var B = this.chart.xAxis[0], T = this.xAxis, X = T.options, g = B.options, m;
  7395. return D && B.dataMin === null || (m = { dataMin: s(X && X.min, n("min", g.min, B.dataMin, T.dataMin, T.min)), dataMax: s(X && X.max, n("max", g.max, B.dataMax, T.dataMax, T.max)) }), m;
  7396. }, _.prototype.setBaseSeries = function(D, B) {
  7397. var T = this.chart, X = this.baseSeries = [];
  7398. D = D || T.options && T.options.navigator.baseSeries || (T.series.length ? c(
  7399. T.series,
  7400. function(g) {
  7401. return !g.options.isInternal;
  7402. }
  7403. ).index : 0), (T.series || []).forEach(function(g, m) {
  7404. g.options.isInternal || !g.options.showInNavigator && (m !== D && g.options.id !== D || g.options.showInNavigator === !1) || X.push(g);
  7405. }), this.xAxis && !this.xAxis.navigatorAxis.fake && this.updateNavigatorSeries(!0, B);
  7406. }, _.prototype.updateNavigatorSeries = function(D, B) {
  7407. var T = this, X = T.chart, g = T.baseSeries, m, L, Y = T.navigatorOptions.series, V, Q = {
  7408. enableMouseTracking: !1,
  7409. index: null,
  7410. linkedTo: null,
  7411. group: "nav",
  7412. padXAxis: !1,
  7413. xAxis: "navigator-x-axis",
  7414. yAxis: "navigator-y-axis",
  7415. showInLegend: !1,
  7416. stacking: void 0,
  7417. isInternal: !0,
  7418. states: { inactive: { opacity: 1 } }
  7419. }, k = T.series = (T.series || []).filter(function(G) {
  7420. var z = G.baseSeries;
  7421. return 0 > g.indexOf(z) ? (z && (t(z, "updatedData", T.updatedDataHandler), delete z.navigatorSeries), G.chart && G.destroy(), !1) : !0;
  7422. });
  7423. g && g.length && g.forEach(function(G) {
  7424. var z = G.navigatorSeries, $ = a({ color: G.color, visible: G.visible }, p(Y) ? P.navigator.series : Y);
  7425. z && T.navigatorOptions.adaptToUpdatedData === !1 || (Q.name = "Navigator " + g.length, m = G.options || {}, V = m.navigatorOptions || {}, $.dataLabels = o($.dataLabels), L = l(m, Q, $, V), L.pointRange = s($.pointRange, V.pointRange, P.plotOptions[L.type || "line"].pointRange), $ = V.data || $.data, T.hasNavigatorData = T.hasNavigatorData || !!$, L.data = $ || m.data && m.data.slice(0), z && z.options ? z.update(L, B) : (G.navigatorSeries = X.initSeries(L), G.navigatorSeries.baseSeries = G, k.push(G.navigatorSeries)));
  7426. }), (Y.data && (!g || !g.length) || p(Y)) && (T.hasNavigatorData = !1, Y = o(Y), Y.forEach(function(G, z) {
  7427. Q.name = "Navigator " + (k.length + 1), L = l(
  7428. P.navigator.series,
  7429. { color: X.series[z] && !X.series[z].options.isInternal && X.series[z].color || X.options.colors[z] || X.options.colors[0] },
  7430. Q,
  7431. G
  7432. ), L.data = G.data, L.data && (T.hasNavigatorData = !0, k.push(X.initSeries(L)));
  7433. })), D && this.addBaseSeriesEvents();
  7434. }, _.prototype.addBaseSeriesEvents = function() {
  7435. var D = this, B = D.baseSeries || [];
  7436. B[0] && B[0].xAxis && B[0].eventsToUnbind.push(O(B[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes)), B.forEach(function(T) {
  7437. T.eventsToUnbind.push(O(T, "show", function() {
  7438. this.navigatorSeries && this.navigatorSeries.setVisible(
  7439. !0,
  7440. !1
  7441. );
  7442. })), T.eventsToUnbind.push(O(T, "hide", function() {
  7443. this.navigatorSeries && this.navigatorSeries.setVisible(!1, !1);
  7444. })), this.navigatorOptions.adaptToUpdatedData !== !1 && T.xAxis && T.eventsToUnbind.push(O(T, "updatedData", this.updatedDataHandler)), T.eventsToUnbind.push(O(T, "remove", function() {
  7445. this.navigatorSeries && (x(D.series, this.navigatorSeries), b(this.navigatorSeries.options) && this.navigatorSeries.remove(!1), delete this.navigatorSeries);
  7446. }));
  7447. }, this);
  7448. }, _.prototype.getBaseSeriesMin = function(D) {
  7449. return this.baseSeries.reduce(function(B, T) {
  7450. return Math.min(B, T.xData ? T.xData[0] : B);
  7451. }, D);
  7452. }, _.prototype.modifyNavigatorAxisExtremes = function() {
  7453. var D = this.xAxis, B;
  7454. typeof D.getExtremes < "u" && (!(B = this.getUnionExtremes(!0)) || B.dataMin === D.min && B.dataMax === D.max || (D.min = B.dataMin, D.max = B.dataMax));
  7455. }, _.prototype.modifyBaseAxisExtremes = function() {
  7456. var D = this.chart.navigator, B = this.getExtremes(), T = B.dataMin, X = B.dataMax;
  7457. B = B.max - B.min;
  7458. var g = D.stickToMin, m = D.stickToMax, L = s(this.options.overscroll, 0), Y = D.series && D.series[0], V = !!this.setExtremes;
  7459. if (!this.eventArgs || this.eventArgs.trigger !== "rangeSelectorButton") {
  7460. if (g)
  7461. var Q = T, k = Q + B;
  7462. m && (k = X + L, g || (Q = Math.max(T, k - B, D.getBaseSeriesMin(Y && Y.xData ? Y.xData[0] : -Number.MAX_VALUE)))), V && (g || m) && i(Q) && (this.min = this.userMin = Q, this.max = this.userMax = k);
  7463. }
  7464. D.stickToMin = D.stickToMax = null;
  7465. }, _.prototype.updatedDataHandler = function() {
  7466. var D = this.chart.navigator, B = this.navigatorSeries;
  7467. D.stickToMax = D.reversedExtremes ? Math.round(D.zoomedMin) === 0 : Math.round(D.zoomedMax) >= Math.round(D.size), D.stickToMin = D.shouldStickToMin(
  7468. this,
  7469. D
  7470. ), B && !D.hasNavigatorData && (B.options.pointStart = this.xData[0], B.setData(this.options.data, !1, null, !1));
  7471. }, _.prototype.shouldStickToMin = function(D, B) {
  7472. B = B.getBaseSeriesMin(D.xData[0]);
  7473. var T = D.xAxis;
  7474. D = T.max;
  7475. var X = T.min;
  7476. return T = T.options.range, i(D) && i(X) ? T && 0 < D - B ? D - B < T : X <= B : !1;
  7477. }, _.prototype.addChartEvents = function() {
  7478. this.eventsToUnbind || (this.eventsToUnbind = []), this.eventsToUnbind.push(O(this.chart, "redraw", function() {
  7479. var D = this.navigator, B = D && (D.baseSeries && D.baseSeries[0] && D.baseSeries[0].xAxis || this.xAxis[0]);
  7480. B && D.render(B.min, B.max);
  7481. }), O(this.chart, "getMargins", function() {
  7482. var D = this.navigator, B = D.opposite ? "plotTop" : "marginBottom";
  7483. this.inverted && (B = D.opposite ? "marginRight" : "plotLeft"), this[B] = (this[B] || 0) + (D.navigatorEnabled || !this.inverted ? D.outlineHeight : 0) + D.navigatorOptions.margin;
  7484. }));
  7485. }, _.prototype.destroy = function() {
  7486. this.removeEvents(), this.xAxis && (x(this.chart.xAxis, this.xAxis), x(this.chart.axes, this.xAxis)), this.yAxis && (x(this.chart.yAxis, this.yAxis), x(this.chart.axes, this.yAxis)), (this.series || []).forEach(function(D) {
  7487. D.destroy && D.destroy();
  7488. }), "series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(D) {
  7489. this[D] && this[D].destroy && this[D].destroy(), this[D] = null;
  7490. }, this), [this.handles].forEach(function(D) {
  7491. w(D);
  7492. }, this);
  7493. }, _;
  7494. }();
  7495. return Z.Navigator || (Z.Navigator = A, F.compose(y), O(j, "beforeShowResetZoom", function() {
  7496. var _ = this.options, D = _.navigator, B = _.rangeSelector;
  7497. if ((D && D.enabled || B && B.enabled) && (!u && _.chart.zoomType === "x" || u && _.chart.pinchType === "x"))
  7498. return !1;
  7499. }), O(j, "beforeRender", function() {
  7500. var _ = this.options;
  7501. (_.navigator.enabled || _.scrollbar.enabled) && (this.scroller = this.navigator = new A(this));
  7502. }), O(j, "afterSetChartSize", function() {
  7503. var _ = this.legend, D = this.navigator;
  7504. if (D) {
  7505. var B = _ && _.options, T = D.xAxis, X = D.yAxis, g = D.scrollbarHeight;
  7506. this.inverted ? (D.left = D.opposite ? this.chartWidth - g - D.height : this.spacing[3] + g, D.top = this.plotTop + g) : (D.left = s(T.left, this.plotLeft + g), D.top = D.navigatorOptions.top || this.chartHeight - D.height - g - this.spacing[2] - (this.rangeSelector && this.extraBottomMargin ? this.rangeSelector.getHeight() : 0) - (B && B.verticalAlign === "bottom" && B.layout !== "proximate" && B.enabled && !B.floating ? _.legendHeight + s(B.margin, 10) : 0) - (this.titleOffset ? this.titleOffset[2] : 0)), T && X && (this.inverted ? T.options.left = X.options.left = D.left : T.options.top = X.options.top = D.top, T.setAxisSize(), X.setAxisSize());
  7507. }
  7508. }), O(j, "update", function(_) {
  7509. var D = _.options.navigator || {}, B = _.options.scrollbar || {};
  7510. this.navigator || this.scroller || !D.enabled && !B.enabled || (l(
  7511. !0,
  7512. this.options.navigator,
  7513. D
  7514. ), l(!0, this.options.scrollbar, B), delete _.options.navigator, delete _.options.scrollbar);
  7515. }), O(j, "afterUpdate", function(_) {
  7516. this.navigator || this.scroller || !this.options.navigator.enabled && !this.options.scrollbar.enabled || (this.scroller = this.navigator = new A(this), s(_.redraw, !0) && this.redraw(_.animation));
  7517. }), O(j, "afterAddSeries", function() {
  7518. this.navigator && this.navigator.setBaseSeries(null, !1);
  7519. }), O(R, "afterUpdate", function() {
  7520. this.chart.navigator && !this.options.isInternal && this.chart.navigator.setBaseSeries(
  7521. null,
  7522. !1
  7523. );
  7524. }), j.prototype.callbacks.push(function(_) {
  7525. var D = _.navigator;
  7526. D && _.xAxis[0] && (_ = _.xAxis[0].getExtremes(), D.render(_.min, _.max));
  7527. })), Z.Navigator = A, Z.Navigator;
  7528. }), E(h, "Extensions/RangeSelector.js", [h["Core/Axis/Axis.js"], h["Core/Chart/Chart.js"], h["Core/Globals.js"], h["Core/DefaultOptions.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U) {
  7529. function H(o) {
  7530. if (o.indexOf("%L") !== -1)
  7531. return "text";
  7532. var n = "aAdewbBmoyY".split("").some(function(_) {
  7533. return o.indexOf("%" + _) !== -1;
  7534. }), A = "HkIlMS".split("").some(function(_) {
  7535. return o.indexOf("%" + _) !== -1;
  7536. });
  7537. return n && A ? "datetime-local" : n ? "date" : A ? "time" : "text";
  7538. }
  7539. var W = Z.defaultOptions, R = U.addEvent, S = U.createElement, v = U.css, d = U.defined, u = U.destroyObjectProperties, P = U.discardElement, O = U.extend, N = U.find, C = U.fireEvent, b = U.isNumber, w = U.merge, x = U.objectEach, a = U.pad, c = U.pick, p = U.pInt, i = U.splat;
  7540. O(W, { rangeSelector: { allButtonsEnabled: !1, buttons: void 0, buttonSpacing: 5, dropdown: "responsive", enabled: void 0, verticalAlign: "top", buttonTheme: {
  7541. width: 28,
  7542. height: 18,
  7543. padding: 2,
  7544. zIndex: 7
  7545. }, floating: !1, x: 0, y: 0, height: void 0, inputBoxBorderColor: "none", inputBoxHeight: 17, inputBoxWidth: void 0, inputDateFormat: "%b %e, %Y", inputDateParser: void 0, inputEditDateFormat: "%Y-%m-%d", inputEnabled: !0, inputPosition: { align: "right", x: 0, y: 0 }, inputSpacing: 5, selected: void 0, buttonPosition: { align: "left", x: 0, y: 0 }, inputStyle: { color: "#335cad", cursor: "pointer" }, labelStyle: { color: "#666666" } } }), O(W.lang, { rangeSelectorZoom: "Zoom", rangeSelectorFrom: "", rangeSelectorTo: "→" });
  7546. var l = function() {
  7547. function o(n) {
  7548. this.buttons = void 0, this.buttonOptions = o.prototype.defaultButtons, this.initialButtonGroupWidth = 0, this.options = void 0, this.chart = n, this.init(n);
  7549. }
  7550. return o.prototype.clickButton = function(n, A) {
  7551. var _ = this.chart, D = this.buttonOptions[n], B = _.xAxis[0], T = _.scroller && _.scroller.getUnionExtremes() || B || {}, X = T.dataMin, g = T.dataMax, m = B && Math.round(Math.min(B.max, c(g, B.max))), L = D.type;
  7552. T = D._range;
  7553. var Y, V = D.dataGrouping;
  7554. if (X !== null && g !== null) {
  7555. if (_.fixedRange = T, this.setSelected(n), V && (this.forcedDataGrouping = !0, y.prototype.setDataGrouping.call(B || { chart: this.chart }, V, !1), this.frozenStates = D.preserveDataGrouping), L === "month" || L === "year")
  7556. if (B) {
  7557. L = { range: D, max: m, chart: _, dataMin: X, dataMax: g };
  7558. var Q = B.minFromRange.call(L);
  7559. b(L.newMax) && (m = L.newMax);
  7560. } else
  7561. T = D;
  7562. else if (T)
  7563. Q = Math.max(m - T, X), m = Math.min(Q + T, g);
  7564. else if (L === "ytd")
  7565. if (B)
  7566. typeof g > "u" && (X = Number.MAX_VALUE, g = Number.MIN_VALUE, _.series.forEach(function($) {
  7567. $ = $.xData, X = Math.min($[0], X), g = Math.max($[$.length - 1], g);
  7568. }), A = !1), m = this.getYTDExtremes(
  7569. g,
  7570. X,
  7571. _.time.useUTC
  7572. ), Q = Y = m.min, m = m.max;
  7573. else {
  7574. this.deferredYTDClick = n;
  7575. return;
  7576. }
  7577. else
  7578. L === "all" && B && (_.navigator && _.navigator.baseSeries[0] && (_.navigator.baseSeries[0].xAxis.options.range = void 0), Q = X, m = g);
  7579. if (d(Q) && (Q += D._offsetMin), d(m) && (m += D._offsetMax), this.dropdown && (this.dropdown.selectedIndex = n + 1), B)
  7580. B.setExtremes(Q, m, c(A, !0), void 0, { trigger: "rangeSelectorButton", rangeSelectorButton: D });
  7581. else {
  7582. var k = i(_.options.xAxis)[0], G = k.range;
  7583. k.range = T;
  7584. var z = k.min;
  7585. k.min = Y, R(_, "load", function() {
  7586. k.range = G, k.min = z;
  7587. });
  7588. }
  7589. C(
  7590. this,
  7591. "afterBtnClick"
  7592. );
  7593. }
  7594. }, o.prototype.setSelected = function(n) {
  7595. this.selected = this.options.selected = n;
  7596. }, o.prototype.init = function(n) {
  7597. var A = this, _ = n.options.rangeSelector, D = _.buttons || A.defaultButtons.slice(), B = _.selected, T = function() {
  7598. var X = A.minInput, g = A.maxInput;
  7599. X && X.blur && C(X, "blur"), g && g.blur && C(g, "blur");
  7600. };
  7601. A.chart = n, A.options = _, A.buttons = [], A.buttonOptions = D, this.eventsToUnbind = [], this.eventsToUnbind.push(R(n.container, "mousedown", T)), this.eventsToUnbind.push(R(n, "resize", T)), D.forEach(A.computeButtonRange), typeof B < "u" && D[B] && this.clickButton(B, !1), this.eventsToUnbind.push(R(n, "load", function() {
  7602. n.xAxis && n.xAxis[0] && R(n.xAxis[0], "setExtremes", function(X) {
  7603. this.max - this.min !== n.fixedRange && X.trigger !== "rangeSelectorButton" && X.trigger !== "updatedData" && A.forcedDataGrouping && !A.frozenStates && this.setDataGrouping(!1, !1);
  7604. });
  7605. }));
  7606. }, o.prototype.updateButtonStates = function() {
  7607. var n = this, A = this.chart, _ = this.dropdown, D = A.xAxis[0], B = Math.round(D.max - D.min), T = !D.hasVisibleSeries, X = A.scroller && A.scroller.getUnionExtremes() || D, g = X.dataMin, m = X.dataMax;
  7608. A = n.getYTDExtremes(m, g, A.time.useUTC);
  7609. var L = A.min, Y = A.max, V = n.selected, Q = b(V), k = n.options.allButtonsEnabled, G = n.buttons;
  7610. n.buttonOptions.forEach(function(z, $) {
  7611. var q = z._range, it = z.type, et = z.count || 1, nt = G[$], rt = 0, ct = z._offsetMax - z._offsetMin;
  7612. z = $ === V;
  7613. var gt = q > m - g, dt = q < D.minRange, lt = !1, at = !1;
  7614. q = q === B, (it === "month" || it === "year") && B + 36e5 >= 864e5 * { month: 28, year: 365 }[it] * et - ct && B - 36e5 <= 864e5 * { month: 31, year: 366 }[it] * et + ct ? q = !0 : it === "ytd" ? (q = Y - L + ct === B, lt = !z) : it === "all" && (q = D.max - D.min >= m - g, at = !z && Q && q), it = !k && (gt || dt || at || T), et = z && q || q && !Q && !lt || z && n.frozenStates, it ? rt = 3 : et && (Q = !0, rt = 2), nt.state !== rt && (nt.setState(rt), _ && (_.options[$ + 1].disabled = it, rt === 2 && (_.selectedIndex = $ + 1)), rt === 0 && V === $ && n.setSelected());
  7615. });
  7616. }, o.prototype.computeButtonRange = function(n) {
  7617. var A = n.type, _ = n.count || 1, D = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5 };
  7618. D[A] ? n._range = D[A] * _ : (A === "month" || A === "year") && (n._range = 864e5 * { month: 30, year: 365 }[A] * _), n._offsetMin = c(n.offsetMin, 0), n._offsetMax = c(n.offsetMax, 0), n._range += n._offsetMax - n._offsetMin;
  7619. }, o.prototype.getInputValue = function(n) {
  7620. n = n === "min" ? this.minInput : this.maxInput;
  7621. var A = this.chart.options.rangeSelector, _ = this.chart.time;
  7622. return n ? (n.type === "text" && A.inputDateParser || this.defaultInputDateParser)(n.value, _.useUTC, _) : 0;
  7623. }, o.prototype.setInputValue = function(n, A) {
  7624. var _ = this.options, D = this.chart.time, B = n === "min" ? this.minInput : this.maxInput;
  7625. if (n = n === "min" ? this.minDateBox : this.maxDateBox, B) {
  7626. var T = B.getAttribute("data-hc-time");
  7627. T = d(T) ? Number(T) : void 0, d(A) && (d(T) && B.setAttribute("data-hc-time-previous", T), B.setAttribute("data-hc-time", A), T = A), B.value = D.dateFormat(this.inputTypeFormats[B.type] || _.inputEditDateFormat, T), n && n.attr({ text: D.dateFormat(_.inputDateFormat, T) });
  7628. }
  7629. }, o.prototype.setInputExtremes = function(n, A, _) {
  7630. if (n = n === "min" ? this.minInput : this.maxInput) {
  7631. var D = this.inputTypeFormats[n.type], B = this.chart.time;
  7632. D && (A = B.dateFormat(D, A), n.min !== A && (n.min = A), _ = B.dateFormat(D, _), n.max !== _ && (n.max = _));
  7633. }
  7634. }, o.prototype.showInput = function(n) {
  7635. var A = n === "min" ? this.minDateBox : this.maxDateBox;
  7636. if ((n = n === "min" ? this.minInput : this.maxInput) && A && this.inputGroup) {
  7637. var _ = n.type === "text", D = this.inputGroup, B = D.translateX;
  7638. D = D.translateY;
  7639. var T = this.options.inputBoxWidth;
  7640. v(n, { width: _ ? A.width + (T ? -2 : 20) + "px" : "auto", height: _ ? A.height - 2 + "px" : "auto", border: "2px solid silver" }), _ && T ? v(n, { left: B + A.x + "px", top: D + "px" }) : v(n, { left: Math.min(Math.round(A.x + B - (n.offsetWidth - A.width) / 2), this.chart.chartWidth - n.offsetWidth) + "px", top: D - (n.offsetHeight - A.height) / 2 + "px" });
  7641. }
  7642. }, o.prototype.hideInput = function(n) {
  7643. (n = n === "min" ? this.minInput : this.maxInput) && v(n, { top: "-9999em", border: 0, width: "1px", height: "1px" });
  7644. }, o.prototype.defaultInputDateParser = function(n, A, _) {
  7645. var D = n.split("/").join("-").split(" ").join("T");
  7646. if (D.indexOf("T") === -1 && (D += "T00:00"), A)
  7647. D += "Z";
  7648. else {
  7649. var B;
  7650. (B = I.isSafari) && (B = D, B = !(6 < B.length && (B.lastIndexOf("-") === B.length - 6 || B.lastIndexOf("+") === B.length - 6))), B && (B = new Date(D).getTimezoneOffset() / 60, D += 0 >= B ? "+" + a(-B) + ":00" : "-" + a(B) + ":00");
  7651. }
  7652. return D = Date.parse(D), b(D) || (n = n.split("-"), D = Date.UTC(p(n[0]), p(n[1]) - 1, p(n[2]))), _ && A && b(D) && (D += _.getTimezoneOffset(D)), D;
  7653. }, o.prototype.drawInput = function(n) {
  7654. function A() {
  7655. var k = T.getInputValue(n), G = _.xAxis[0], z = _.scroller && _.scroller.xAxis ? _.scroller.xAxis : G, $ = z.dataMin;
  7656. z = z.dataMax;
  7657. var q = T.maxInput, it = T.minInput;
  7658. k !== Number(V.getAttribute("data-hc-time-previous")) && b(k) && (V.setAttribute("data-hc-time-previous", k), L && q && b($) ? k > Number(q.getAttribute("data-hc-time")) ? k = void 0 : k < $ && (k = $) : it && b(z) && (k < Number(it.getAttribute("data-hc-time")) ? k = void 0 : k > z && (k = z)), typeof k < "u" && G.setExtremes(L ? k : G.min, L ? G.max : k, void 0, void 0, { trigger: "rangeSelectorInput" }));
  7659. }
  7660. var _ = this.chart, D = this.div, B = this.inputGroup, T = this, X = _.renderer.style || {}, g = _.renderer, m = _.options.rangeSelector, L = n === "min", Y = W.lang[L ? "rangeSelectorFrom" : "rangeSelectorTo"] || "";
  7661. Y = g.label(Y, 0).addClass("highcharts-range-label").attr({ padding: Y ? 2 : 0, height: Y ? m.inputBoxHeight : 0 }).add(B), g = g.label("", 0).addClass("highcharts-range-input").attr({ padding: 2, width: m.inputBoxWidth, height: m.inputBoxHeight, "text-align": "center" }).on(
  7662. "click",
  7663. function() {
  7664. T.showInput(n), T[n + "Input"].focus();
  7665. }
  7666. ), _.styledMode || g.attr({ stroke: m.inputBoxBorderColor, "stroke-width": 1 }), g.add(B);
  7667. var V = S("input", { name: n, className: "highcharts-range-selector" }, void 0, D);
  7668. V.setAttribute("type", H(m.inputDateFormat || "%b %e, %Y")), _.styledMode || (Y.css(w(X, m.labelStyle)), g.css(w({ color: "#333333" }, X, m.inputStyle)), v(V, O({
  7669. position: "absolute",
  7670. border: 0,
  7671. boxShadow: "0 0 15px rgba(0,0,0,0.3)",
  7672. width: "1px",
  7673. height: "1px",
  7674. padding: 0,
  7675. textAlign: "center",
  7676. fontSize: X.fontSize,
  7677. fontFamily: X.fontFamily,
  7678. top: "-9999em"
  7679. }, m.inputStyle))), V.onfocus = function() {
  7680. T.showInput(n);
  7681. }, V.onblur = function() {
  7682. V === I.doc.activeElement && A(), T.hideInput(n), T.setInputValue(n), V.blur();
  7683. };
  7684. var Q = !1;
  7685. return V.onchange = function() {
  7686. Q || (A(), T.hideInput(n), V.blur());
  7687. }, V.onkeypress = function(k) {
  7688. k.keyCode === 13 && A();
  7689. }, V.onkeydown = function(k) {
  7690. Q = !0, k.keyCode !== 38 && k.keyCode !== 40 || A();
  7691. }, V.onkeyup = function() {
  7692. Q = !1;
  7693. }, { dateBox: g, input: V, label: Y };
  7694. }, o.prototype.getPosition = function() {
  7695. var n = this.chart, A = n.options.rangeSelector;
  7696. return n = A.verticalAlign === "top" ? n.plotTop - n.axisOffset[0] : 0, { buttonTop: n + A.buttonPosition.y, inputTop: n + A.inputPosition.y - 10 };
  7697. }, o.prototype.getYTDExtremes = function(n, A, _) {
  7698. var D = this.chart.time, B = new D.Date(n), T = D.get("FullYear", B);
  7699. return _ = _ ? D.Date.UTC(T, 0, 1) : +new D.Date(T, 0, 1), A = Math.max(A, _), B = B.getTime(), { max: Math.min(n || B, B), min: A };
  7700. }, o.prototype.render = function(n, A) {
  7701. var _ = this.chart, D = _.renderer, B = _.container, T = _.options, X = T.rangeSelector, g = c(T.chart.style && T.chart.style.zIndex, 0) + 1;
  7702. if (T = X.inputEnabled, X.enabled !== !1) {
  7703. if (this.rendered || (this.group = D.g("range-selector-group").attr({ zIndex: 7 }).add(), this.div = S("div", void 0, { position: "relative", height: 0, zIndex: g }), this.buttonOptions.length && this.renderButtons(), B.parentNode && B.parentNode.insertBefore(this.div, B), T && (this.inputGroup = D.g("input-group").add(this.group), D = this.drawInput("min"), this.minDateBox = D.dateBox, this.minLabel = D.label, this.minInput = D.input, D = this.drawInput("max"), this.maxDateBox = D.dateBox, this.maxLabel = D.label, this.maxInput = D.input)), T && (this.setInputValue(
  7704. "min",
  7705. n
  7706. ), this.setInputValue("max", A), n = _.scroller && _.scroller.getUnionExtremes() || _.xAxis[0] || {}, d(n.dataMin) && d(n.dataMax) && (_ = _.xAxis[0].minRange || 0, this.setInputExtremes("min", n.dataMin, Math.min(n.dataMax, this.getInputValue("max")) - _), this.setInputExtremes("max", Math.max(n.dataMin, this.getInputValue("min")) + _, n.dataMax)), this.inputGroup)) {
  7707. var m = 0;
  7708. [this.minLabel, this.minDateBox, this.maxLabel, this.maxDateBox].forEach(function(L) {
  7709. if (L) {
  7710. var Y = L.getBBox().width;
  7711. Y && (L.attr({ x: m }), m += Y + X.inputSpacing);
  7712. }
  7713. });
  7714. }
  7715. this.alignElements(), this.rendered = !0;
  7716. }
  7717. }, o.prototype.renderButtons = function() {
  7718. var n = this, A = this.buttons, _ = this.options, D = W.lang, B = this.chart.renderer, T = w(_.buttonTheme), X = T && T.states, g = T.width || 28;
  7719. delete T.width, delete T.states, this.buttonGroup = B.g("range-selector-buttons").add(this.group);
  7720. var m = this.dropdown = S("select", void 0, { position: "absolute", width: "1px", height: "1px", padding: 0, border: 0, top: "-9999em", cursor: "pointer", opacity: 1e-4 }, this.div);
  7721. R(m, "touchstart", function() {
  7722. m.style.fontSize = "16px";
  7723. }), [[I.isMS ? "mouseover" : "mouseenter"], [I.isMS ? "mouseout" : "mouseleave"], ["change", "click"]].forEach(function(L) {
  7724. var Y = L[0], V = L[1];
  7725. R(m, Y, function() {
  7726. var Q = A[n.currentButtonIndex()];
  7727. Q && C(Q.element, V || Y);
  7728. });
  7729. }), this.zoomText = B.label(D && D.rangeSelectorZoom || "", 0).attr({ padding: _.buttonTheme.padding, height: _.buttonTheme.height, paddingLeft: 0, paddingRight: 0 }).add(this.buttonGroup), this.chart.styledMode || (this.zoomText.css(_.labelStyle), T["stroke-width"] = c(T["stroke-width"], 0)), S(
  7730. "option",
  7731. { textContent: this.zoomText.textStr, disabled: !0 },
  7732. void 0,
  7733. m
  7734. ), this.buttonOptions.forEach(function(L, Y) {
  7735. S("option", { textContent: L.title || L.text }, void 0, m), A[Y] = B.button(L.text, 0, 0, function(V) {
  7736. var Q = L.events && L.events.click, k;
  7737. Q && (k = Q.call(L, V)), k !== !1 && n.clickButton(Y), n.isActive = !0;
  7738. }, T, X && X.hover, X && X.select, X && X.disabled).attr({ "text-align": "center", width: g }).add(n.buttonGroup), L.title && A[Y].attr("title", L.title);
  7739. });
  7740. }, o.prototype.alignElements = function() {
  7741. var n = this, A = this.buttonGroup, _ = this.buttons, D = this.chart, B = this.group, T = this.inputGroup, X = this.options, g = this.zoomText, m = D.options, L = m.exporting && m.exporting.enabled !== !1 && m.navigation && m.navigation.buttonOptions;
  7742. m = X.buttonPosition;
  7743. var Y = X.inputPosition, V = X.verticalAlign, Q = function($, q) {
  7744. return L && n.titleCollision(D) && V === "top" && q.align === "right" && q.y - $.getBBox().height - 12 < (L.y || 0) + (L.height || 0) + D.spacing[0] ? -40 : 0;
  7745. }, k = D.plotLeft;
  7746. if (B && m && Y) {
  7747. var G = m.x - D.spacing[3];
  7748. if (A) {
  7749. if (this.positionButtons(), !this.initialButtonGroupWidth) {
  7750. var z = 0;
  7751. g && (z += g.getBBox().width + 5), _.forEach(function($, q) {
  7752. z += $.width, q !== _.length - 1 && (z += X.buttonSpacing);
  7753. }), this.initialButtonGroupWidth = z;
  7754. }
  7755. k -= D.spacing[3], this.updateButtonStates(), g = Q(A, m), this.alignButtonGroup(g), B.placed = A.placed = D.hasLoaded;
  7756. }
  7757. A = 0, T && (A = Q(T, Y), Y.align === "left" ? G = k : Y.align === "right" && (G = -Math.max(D.axisOffset[1], -A)), T.align({ y: Y.y, width: T.getBBox().width, align: Y.align, x: Y.x + G - 2 }, !0, D.spacingBox), T.placed = D.hasLoaded), this.handleCollision(A), B.align({ verticalAlign: V }, !0, D.spacingBox), T = B.alignAttr.translateY, A = B.getBBox().height + 20, Q = 0, V === "bottom" && (Q = (Q = D.legend && D.legend.options) && Q.verticalAlign === "bottom" && Q.enabled && !Q.floating ? D.legend.legendHeight + c(Q.margin, 10) : 0, A = A + Q - 20, Q = T - A - (X.floating ? 0 : X.y) - (D.titleOffset ? D.titleOffset[2] : 0) - 10), V === "top" ? (X.floating && (Q = 0), D.titleOffset && D.titleOffset[0] && (Q = D.titleOffset[0]), Q += D.margin[0] - D.spacing[0] || 0) : V === "middle" && (Y.y === m.y ? Q = T : (Y.y || m.y) && (Q = 0 > Y.y || 0 > m.y ? Q - Math.min(Y.y, m.y) : T - A)), B.translate(X.x, X.y + Math.floor(Q)), m = this.minInput, Y = this.maxInput, T = this.dropdown, X.inputEnabled && m && Y && (m.style.marginTop = B.translateY + "px", Y.style.marginTop = B.translateY + "px"), T && (T.style.marginTop = B.translateY + "px");
  7758. }
  7759. }, o.prototype.alignButtonGroup = function(n, A) {
  7760. var _ = this.chart, D = this.buttonGroup, B = this.options.buttonPosition, T = _.plotLeft - _.spacing[3], X = B.x - _.spacing[3];
  7761. B.align === "right" ? X += n - T : B.align === "center" && (X -= T / 2), D && D.align({ y: B.y, width: c(A, this.initialButtonGroupWidth), align: B.align, x: X }, !0, _.spacingBox);
  7762. }, o.prototype.positionButtons = function() {
  7763. var n = this.buttons, A = this.chart, _ = this.options, D = this.zoomText, B = A.hasLoaded ? "animate" : "attr", T = _.buttonPosition, X = A.plotLeft, g = X;
  7764. D && D.visibility !== "hidden" && (D[B]({ x: c(X + T.x, X) }), g += T.x + D.getBBox().width + 5), this.buttonOptions.forEach(function(m, L) {
  7765. n[L].visibility !== "hidden" ? (n[L][B]({ x: g }), g += n[L].width + _.buttonSpacing) : n[L][B]({ x: X });
  7766. });
  7767. }, o.prototype.handleCollision = function(n) {
  7768. var A = this, _ = this.chart, D = this.buttonGroup, B = this.inputGroup, T = this.options, X = T.buttonPosition, g = T.dropdown, m = T.inputPosition;
  7769. T = function() {
  7770. var V = 0;
  7771. return A.buttons.forEach(function(Q) {
  7772. Q = Q.getBBox(), Q.width > V && (V = Q.width);
  7773. }), V;
  7774. };
  7775. var L = function(V) {
  7776. if (B && D) {
  7777. var Q = B.alignAttr.translateX + B.alignOptions.x - n + B.getBBox().x + 2, k = B.alignOptions.width, G = D.alignAttr.translateX + D.getBBox().x;
  7778. return G + V > Q && Q + k > G && X.y < m.y + B.getBBox().height;
  7779. }
  7780. return !1;
  7781. }, Y = function() {
  7782. B && D && B.attr({ translateX: B.alignAttr.translateX + (_.axisOffset[1] >= -n ? 0 : -n), translateY: B.alignAttr.translateY + D.getBBox().height + 10 });
  7783. };
  7784. if (D) {
  7785. if (g === "always") {
  7786. this.collapseButtons(n), L(T()) && Y();
  7787. return;
  7788. }
  7789. g === "never" && this.expandButtons();
  7790. }
  7791. B && D ? m.align === X.align || L(this.initialButtonGroupWidth + 20) ? g === "responsive" ? (this.collapseButtons(n), L(T()) && Y()) : Y() : g === "responsive" && this.expandButtons() : D && g === "responsive" && (this.initialButtonGroupWidth > _.plotWidth ? this.collapseButtons(n) : this.expandButtons());
  7792. }, o.prototype.collapseButtons = function(n) {
  7793. var A = this.buttons, _ = this.buttonOptions, D = this.chart, B = this.dropdown, T = this.options, X = this.zoomText, g = D.userOptions.rangeSelector && D.userOptions.rangeSelector.buttonTheme || {}, m = function(Y) {
  7794. return { text: Y ? Y + " ▾" : "▾", width: "auto", paddingLeft: c(T.buttonTheme.paddingLeft, g.padding, 8), paddingRight: c(T.buttonTheme.paddingRight, g.padding, 8) };
  7795. };
  7796. X && X.hide();
  7797. var L = !1;
  7798. _.forEach(function(Y, V) {
  7799. V = A[V], V.state !== 2 ? V.hide() : (V.show(), V.attr(m(Y.text)), L = !0);
  7800. }), L || (B && (B.selectedIndex = 0), A[0].show(), A[0].attr(m(this.zoomText && this.zoomText.textStr))), _ = T.buttonPosition.align, this.positionButtons(), _ !== "right" && _ !== "center" || this.alignButtonGroup(n, A[this.currentButtonIndex()].getBBox().width), this.showDropdown();
  7801. }, o.prototype.expandButtons = function() {
  7802. var n = this.buttons, A = this.buttonOptions, _ = this.options, D = this.zoomText;
  7803. this.hideDropdown(), D && D.show(), A.forEach(function(B, T) {
  7804. T = n[T], T.show(), T.attr({ text: B.text, width: _.buttonTheme.width || 28, paddingLeft: c(_.buttonTheme.paddingLeft, "unset"), paddingRight: c(_.buttonTheme.paddingRight, "unset") }), 2 > T.state && T.setState(0);
  7805. }), this.positionButtons();
  7806. }, o.prototype.currentButtonIndex = function() {
  7807. var n = this.dropdown;
  7808. return n && 0 < n.selectedIndex ? n.selectedIndex - 1 : 0;
  7809. }, o.prototype.showDropdown = function() {
  7810. var n = this.buttonGroup, A = this.buttons, _ = this.chart, D = this.dropdown;
  7811. if (n && D) {
  7812. var B = n.translateX;
  7813. n = n.translateY, A = A[this.currentButtonIndex()].getBBox(), v(D, { left: _.plotLeft + B + "px", top: n + 0.5 + "px", width: A.width + "px", height: A.height + "px" }), this.hasVisibleDropdown = !0;
  7814. }
  7815. }, o.prototype.hideDropdown = function() {
  7816. var n = this.dropdown;
  7817. n && (v(n, { top: "-9999em", width: "1px", height: "1px" }), this.hasVisibleDropdown = !1);
  7818. }, o.prototype.getHeight = function() {
  7819. var n = this.options, A = this.group, _ = n.y, D = n.buttonPosition.y, B = n.inputPosition.y;
  7820. return n.height ? n.height : (this.alignElements(), n = A ? A.getBBox(!0).height + 13 + _ : 0, A = Math.min(B, D), (0 > B && 0 > D || 0 < B && 0 < D) && (n += Math.abs(A)), n);
  7821. }, o.prototype.titleCollision = function(n) {
  7822. return !(n.options.title.text || n.options.subtitle.text);
  7823. }, o.prototype.update = function(n) {
  7824. var A = this.chart;
  7825. w(!0, A.options.rangeSelector, n), this.destroy(), this.init(A), this.render();
  7826. }, o.prototype.destroy = function() {
  7827. var n = this, A = n.minInput, _ = n.maxInput;
  7828. n.eventsToUnbind && (n.eventsToUnbind.forEach(function(D) {
  7829. return D();
  7830. }), n.eventsToUnbind = void 0), u(n.buttons), A && (A.onfocus = A.onblur = A.onchange = null), _ && (_.onfocus = _.onblur = _.onchange = null), x(n, function(D, B) {
  7831. D && B !== "chart" && (D instanceof F ? D.destroy() : D instanceof window.HTMLElement && P(D)), D !== o.prototype[B] && (n[B] = null);
  7832. }, this);
  7833. }, o;
  7834. }();
  7835. if (l.prototype.defaultButtons = [
  7836. { type: "month", count: 1, text: "1m", title: "View 1 month" },
  7837. { type: "month", count: 3, text: "3m", title: "View 3 months" },
  7838. { type: "month", count: 6, text: "6m", title: "View 6 months" },
  7839. { type: "ytd", text: "YTD", title: "View year to date" },
  7840. { type: "year", count: 1, text: "1y", title: "View 1 year" },
  7841. { type: "all", text: "All", title: "View all" }
  7842. ], l.prototype.inputTypeFormats = { "datetime-local": "%Y-%m-%dT%H:%M:%S", date: "%Y-%m-%d", time: "%H:%M:%S" }, y.prototype.minFromRange = function() {
  7843. var o = this.range, n = o.type, A = this.max, _ = this.chart.time, D = function(g, m) {
  7844. var L = n === "year" ? "FullYear" : "Month", Y = new _.Date(g), V = _.get(L, Y);
  7845. return _.set(L, Y, V + m), V === _.get(L, Y) && _.set("Date", Y, 0), Y.getTime() - g;
  7846. };
  7847. if (b(o))
  7848. var B = A - o, T = o;
  7849. else
  7850. B = A + D(A, -o.count), this.chart && (this.chart.fixedRange = A - B);
  7851. var X = c(this.dataMin, Number.MIN_VALUE);
  7852. return b(B) || (B = X), B <= X && (B = X, typeof T > "u" && (T = D(B, o.count)), this.newMax = Math.min(B + T, this.dataMax)), b(A) || (B = void 0), B;
  7853. }, !I.RangeSelector) {
  7854. var s = [], t = function(o) {
  7855. function n() {
  7856. _ && (A = o.xAxis[0].getExtremes(), D = o.legend, T = _ && _.options.verticalAlign, b(A.min) && _.render(A.min, A.max), D.display && T === "top" && T === D.options.verticalAlign && (B = w(o.spacingBox), B.y = D.options.layout === "vertical" ? o.plotTop : B.y + _.getHeight(), D.group.placed = !1, D.align(B)));
  7857. }
  7858. var A, _ = o.rangeSelector, D, B, T;
  7859. _ && (N(s, function(X) {
  7860. return X[0] === o;
  7861. }) || s.push([o, [R(o.xAxis[0], "afterSetExtremes", function(X) {
  7862. _ && _.render(X.min, X.max);
  7863. }), R(o, "redraw", n)]]), n());
  7864. };
  7865. R(j, "afterGetContainer", function() {
  7866. this.options.rangeSelector && this.options.rangeSelector.enabled && (this.rangeSelector = new l(this));
  7867. }), R(j, "beforeRender", function() {
  7868. var o = this.axes, n = this.rangeSelector;
  7869. n && (b(n.deferredYTDClick) && (n.clickButton(n.deferredYTDClick), delete n.deferredYTDClick), o.forEach(function(A) {
  7870. A.updateNames(), A.setScale();
  7871. }), this.getAxisMargins(), n.render(), o = n.options.verticalAlign, n.options.floating || (o === "bottom" ? this.extraBottomMargin = !0 : o !== "middle" && (this.extraTopMargin = !0)));
  7872. }), R(j, "update", function(o) {
  7873. var n = o.options.rangeSelector;
  7874. o = this.rangeSelector;
  7875. var A = this.extraBottomMargin, _ = this.extraTopMargin;
  7876. n && n.enabled && !d(o) && this.options.rangeSelector && (this.options.rangeSelector.enabled = !0, this.rangeSelector = o = new l(this)), this.extraTopMargin = this.extraBottomMargin = !1, o && (t(this), n = n && n.verticalAlign || o.options && o.options.verticalAlign, o.options.floating || (n === "bottom" ? this.extraBottomMargin = !0 : n !== "middle" && (this.extraTopMargin = !0)), this.extraBottomMargin !== A || this.extraTopMargin !== _) && (this.isDirtyBox = !0);
  7877. }), R(j, "render", function() {
  7878. var o = this.rangeSelector;
  7879. o && !o.options.floating && (o.render(), o = o.options.verticalAlign, o === "bottom" ? this.extraBottomMargin = !0 : o !== "middle" && (this.extraTopMargin = !0));
  7880. }), R(j, "getMargins", function() {
  7881. var o = this.rangeSelector;
  7882. o && (o = o.getHeight(), this.extraTopMargin && (this.plotTop += o), this.extraBottomMargin && (this.marginBottom += o));
  7883. }), j.prototype.callbacks.push(t), R(j, "destroy", function() {
  7884. for (var o = 0; o < s.length; o++) {
  7885. var n = s[o];
  7886. if (n[0] === this) {
  7887. n[1].forEach(function(A) {
  7888. return A();
  7889. }), s.splice(o, 1);
  7890. break;
  7891. }
  7892. }
  7893. }), I.RangeSelector = l;
  7894. }
  7895. return l;
  7896. }), E(
  7897. h,
  7898. "Core/Chart/StockChart.js",
  7899. [h["Core/Animation/AnimationUtilities.js"], h["Core/Axis/Axis.js"], h["Core/Chart/Chart.js"], h["Core/FormatUtilities.js"], h["Core/DefaultOptions.js"], h["Core/Series/Series.js"], h["Core/Renderer/SVG/SVGRenderer.js"], h["Core/Utilities.js"]],
  7900. function(y, j, I, Z, F, U, H, W) {
  7901. function R(p, i) {
  7902. return p === "xAxis" ? { minPadding: 0, maxPadding: 0, overscroll: 0, ordinal: !0, title: { text: null }, labels: { overflow: "justify" }, showLastLabel: !0 } : p === "yAxis" ? { labels: { y: -2 }, opposite: a(i.opposite, !0), showLastLabel: !(!i.categories && i.type !== "category"), title: { text: null } } : {};
  7903. }
  7904. function S(p, i) {
  7905. if (p === "xAxis") {
  7906. p = u();
  7907. var l = { type: "datetime", categories: void 0 };
  7908. return a(i.navigator && i.navigator.enabled, p.navigator.enabled, !0) && (l.startOnTick = !1, l.endOnTick = !1), l;
  7909. }
  7910. return {};
  7911. }
  7912. var v = this && this.__extends || function() {
  7913. var p = function(i, l) {
  7914. return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, t) {
  7915. s.__proto__ = t;
  7916. } || function(s, t) {
  7917. for (var o in t)
  7918. t.hasOwnProperty(o) && (s[o] = t[o]);
  7919. }, p(i, l);
  7920. };
  7921. return function(i, l) {
  7922. function s() {
  7923. this.constructor = i;
  7924. }
  7925. p(i, l), i.prototype = l === null ? Object.create(l) : (s.prototype = l.prototype, new s());
  7926. };
  7927. }(), d = Z.format, u = F.getOptions;
  7928. y = W.addEvent;
  7929. var P = W.clamp, O = W.defined, N = W.extend, C = W.find, b = W.isNumber, w = W.isString, x = W.merge, a = W.pick, c = W.splat;
  7930. return W = function(p) {
  7931. function i() {
  7932. return p !== null && p.apply(this, arguments) || this;
  7933. }
  7934. return v(i, p), i.prototype.init = function(l, s) {
  7935. var t = u(), o = l.xAxis, n = l.yAxis, A = a(l.navigator && l.navigator.enabled, t.navigator.enabled, !0);
  7936. l.xAxis = l.yAxis = void 0, A = x({ chart: { panning: { enabled: !0, type: "x" }, pinchType: "x" }, navigator: { enabled: A }, scrollbar: { enabled: a(t.scrollbar && t.scrollbar.enabled, !0) }, rangeSelector: { enabled: a(t.rangeSelector.enabled, !0) }, title: { text: null }, tooltip: { split: a(t.tooltip.split, !0), crosshairs: !0 }, legend: { enabled: !1 } }, l, { isStock: !0 }), l.xAxis = o, l.yAxis = n, A.xAxis = c(l.xAxis || {}).map(function(_, D) {
  7937. return x(R("xAxis", _), t.xAxis, t.xAxis && t.xAxis[D], _, S("xAxis", l));
  7938. }), A.yAxis = c(l.yAxis || {}).map(function(_, D) {
  7939. return x(R("yAxis", _), t.yAxis, t.yAxis && t.yAxis[D], _);
  7940. }), p.prototype.init.call(this, A, s);
  7941. }, i.prototype.createAxis = function(l, s) {
  7942. return s.axis = x(R(l, s.axis), s.axis, S(l, this.userOptions)), p.prototype.createAxis.call(this, l, s);
  7943. }, i;
  7944. }(I), function(p) {
  7945. p.stockChart = function(i, l, s) {
  7946. return new p(i, l, s);
  7947. };
  7948. }(W || (W = {})), y(U, "setOptions", function(p) {
  7949. var i;
  7950. this.chart.options.isStock && (this.is("column") || this.is("columnrange") ? i = { borderWidth: 0, shadow: !1 } : this.is("scatter") || this.is("sma") || (i = { marker: { enabled: !1, radius: 2 } }), i && (p.plotOptions[this.type] = x(p.plotOptions[this.type], i)));
  7951. }), y(j, "autoLabelAlign", function(p) {
  7952. var i = this.chart, l = this.options;
  7953. i = i._labelPanes = i._labelPanes || {};
  7954. var s = this.options.labels;
  7955. this.chart.options.isStock && this.coll === "yAxis" && (l = l.top + "," + l.height, !i[l] && s.enabled && (s.x === 15 && (s.x = 0), typeof s.align > "u" && (s.align = "right"), i[l] = this, p.align = "right", p.preventDefault()));
  7956. }), y(j, "destroy", function() {
  7957. var p = this.chart, i = this.options && this.options.top + "," + this.options.height;
  7958. i && p._labelPanes && p._labelPanes[i] === this && delete p._labelPanes[i];
  7959. }), y(j, "getPlotLinePath", function(p) {
  7960. function i(G) {
  7961. var z = G === "xAxis" ? "yAxis" : "xAxis";
  7962. return G = l.options[z], b(G) ? [t[z][G]] : w(G) ? [t.get(G)] : s.map(function($) {
  7963. return $[z];
  7964. });
  7965. }
  7966. var l = this, s = this.isLinked && !this.series ? this.linkedParent.series : this.series, t = l.chart, o = t.renderer, n = l.left, A = l.top, _, D, B, T, X = [], g = [], m = p.translatedValue, L = p.value, Y = p.force;
  7967. if (t.options.isStock && p.acrossPanes !== !1 && l.coll === "xAxis" || l.coll === "yAxis") {
  7968. p.preventDefault(), g = i(l.coll);
  7969. var V = l.isXAxis ? t.yAxis : t.xAxis;
  7970. V.forEach(function(G) {
  7971. if (!O(G.options.id) || G.options.id.indexOf("navigator") === -1) {
  7972. var z = G.isXAxis ? "yAxis" : "xAxis";
  7973. z = O(G.options[z]) ? t[z][G.options[z]] : t[z][0], l === z && g.push(G);
  7974. }
  7975. });
  7976. var Q = g.length ? [] : [l.isXAxis ? t.yAxis[0] : t.xAxis[0]];
  7977. g.forEach(function(G) {
  7978. Q.indexOf(G) !== -1 || C(Q, function(z) {
  7979. return z.pos === G.pos && z.len === G.len;
  7980. }) || Q.push(G);
  7981. });
  7982. var k = a(m, l.translate(L, null, null, p.old));
  7983. b(k) && (l.horiz ? Q.forEach(function(G) {
  7984. var z;
  7985. D = G.pos, T = D + G.len, _ = B = Math.round(k + l.transB), Y !== "pass" && (_ < n || _ > n + l.width) && (Y ? _ = B = P(_, n, n + l.width) : z = !0), z || X.push(["M", _, D], ["L", B, T]);
  7986. }) : Q.forEach(function(G) {
  7987. var z;
  7988. _ = G.pos, B = _ + G.len, D = T = Math.round(A + l.height - k), Y !== "pass" && (D < A || D > A + l.height) && (Y ? D = T = P(D, A, A + l.height) : z = !0), z || X.push(["M", _, D], ["L", B, T]);
  7989. })), p.path = 0 < X.length ? o.crispPolyLine(X, p.lineWidth || 1) : null;
  7990. }
  7991. }), H.prototype.crispPolyLine = function(p, i) {
  7992. for (var l = 0; l < p.length; l += 2) {
  7993. var s = p[l], t = p[l + 1];
  7994. s[1] === t[1] && (s[1] = t[1] = Math.round(s[1]) - i % 2 / 2), s[2] === t[2] && (s[2] = t[2] = Math.round(s[2]) + i % 2 / 2);
  7995. }
  7996. return p;
  7997. }, y(j, "afterHideCrosshair", function() {
  7998. this.crossLabel && (this.crossLabel = this.crossLabel.hide());
  7999. }), y(j, "afterDrawCrosshair", function(p) {
  8000. var i, l;
  8001. if (this.crosshair && this.crosshair.label && this.crosshair.label.enabled && this.cross && b(this.min) && b(this.max)) {
  8002. var s = this.chart, t = this.logarithmic, o = this.crosshair.label, n = this.horiz, A = this.opposite, _ = this.left, D = this.top, B = this.crossLabel, T = o.format, X = "", g = this.options.tickPosition === "inside", m = this.crosshair.snap !== !1, L = 0, Y = p.e || this.cross && this.cross.e;
  8003. p = p.point;
  8004. var V = this.min, Q = this.max;
  8005. t && (V = t.lin2log(V), Q = t.lin2log(Q)), t = n ? "center" : A ? this.labelAlign === "right" ? "right" : "left" : this.labelAlign === "left" ? "left" : "center", B || (B = this.crossLabel = s.renderer.label("", 0, void 0, o.shape || "callout").addClass("highcharts-crosshair-label highcharts-color-" + (p ? p.series.colorIndex : this.series[0] && this.series[0].colorIndex)).attr({ align: o.align || t, padding: a(o.padding, 8), r: a(o.borderRadius, 3), zIndex: 2 }).add(this.labelGroup), s.styledMode || B.attr({ fill: o.backgroundColor || p && p.series && p.series.color || "#666666", stroke: o.borderColor || "", "stroke-width": o.borderWidth || 0 }).css(N({ color: "#ffffff", fontWeight: "normal", fontSize: "11px", textAlign: "center" }, o.style || {}))), n ? (t = m ? (p.plotX || 0) + _ : Y.chartX, D += A ? 0 : this.height) : (t = A ? this.width + _ : 0, D = m ? (p.plotY || 0) + D : Y.chartY), T || o.formatter || (this.dateTime && (X = "%b %d, %Y"), T = "{value" + (X ? ":" + X : "") + "}"), X = m ? this.isXAxis ? p.x : p.y : this.toValue(n ? Y.chartX : Y.chartY), m = p ? p.series.isPointInside(p) : b(X) && X > V && X < Q, Y = "", T ? Y = d(T, { value: X }, s) : o.formatter && b(X) && (Y = o.formatter.call(this, X)), B.attr({ text: Y, x: t, y: D, visibility: m ? "visible" : "hidden" }), o = B.getBBox(), b(B.y) && (n ? (g && !A || !g && A) && (D = B.y - o.height) : D = B.y - o.height / 2), n ? (i = _ - o.x, l = _ + this.width - o.x) : (i = this.labelAlign === "left" ? _ : 0, l = this.labelAlign === "right" ? _ + this.width : s.chartWidth), B.translateX < i && (L = i - B.translateX), B.translateX + o.width >= l && (L = -(B.translateX + o.width - l)), B.attr({ x: t + L, y: D, anchorX: n ? t : this.opposite ? 0 : s.chartWidth, anchorY: n ? this.opposite ? s.chartHeight : 0 : D + o.height / 2 });
  8006. }
  8007. }), U.prototype.forceCropping = function() {
  8008. var p = this.chart, i = this.options.dataGrouping;
  8009. return this.allowDG !== !1 && i && a(i.enabled, p.options.isStock);
  8010. }, y(I, "update", function(p) {
  8011. p = p.options, "scrollbar" in p && this.navigator && (x(!0, this.options.scrollbar, p.scrollbar), this.navigator.update({}, !1), delete p.scrollbar);
  8012. }), W;
  8013. }
  8014. ), E(h, "masters/modules/stock.src.js", [
  8015. h["Core/Globals.js"],
  8016. h["Core/Axis/OrdinalAxis.js"],
  8017. h["Series/DataModifyComposition.js"],
  8018. h["Core/Scrollbar.js"],
  8019. h["Core/Chart/StockChart.js"]
  8020. ], function(y, j, I, Z, F) {
  8021. y.Scrollbar = Z, y.StockChart = y.stockChart = F.stockChart, Z.compose(y.Axis), j.compose(y.Axis, y.Series, y.Chart), I.compose(y.Series, y.Axis, y.Point);
  8022. }), E(h, "masters/highstock.src.js", [h["masters/highcharts.src.js"]], function(y) {
  8023. return y.product = "Highstock", y;
  8024. }), h["masters/highstock.src.js"]._modules = h, h["masters/highstock.src.js"];
  8025. });
  8026. })(Gp);
  8027. var O0 = Gp.exports;
  8028. const Sn = /* @__PURE__ */ Cn(O0);
  8029. var Hp = { exports: {} };
  8030. (function(r) {
  8031. (function(f, E) {
  8032. r.exports ? (E.default = E, r.exports = f.document ? E(f) : E) : (f.Highcharts && f.Highcharts.error(16, !0), f.Highcharts = E(f));
  8033. })(typeof window < "u" ? window : Fr, function(f) {
  8034. function E(y, j, I, Z) {
  8035. y.hasOwnProperty(j) || (y[j] = Z.apply(null, I));
  8036. }
  8037. var h = {};
  8038. return E(h, "Core/Globals.js", [], function() {
  8039. var y = typeof f < "u" ? f : typeof window < "u" ? window : {}, j;
  8040. return function(I) {
  8041. I.SVG_NS = "http://www.w3.org/2000/svg", I.product = "Highcharts", I.version = "9.3.3", I.win = y, I.doc = I.win.document, I.svg = I.doc && I.doc.createElementNS && !!I.doc.createElementNS(I.SVG_NS, "svg").createSVGRect, I.userAgent = I.win.navigator && I.win.navigator.userAgent || "", I.isChrome = I.userAgent.indexOf("Chrome") !== -1, I.isFirefox = I.userAgent.indexOf("Firefox") !== -1, I.isMS = /(edge|msie|trident)/i.test(I.userAgent) && !I.win.opera, I.isSafari = !I.isChrome && I.userAgent.indexOf("Safari") !== -1, I.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(I.userAgent), I.isWebKit = I.userAgent.indexOf("AppleWebKit") !== -1, I.deg2rad = 2 * Math.PI / 360, I.hasBidiBug = I.isFirefox && 4 > parseInt(I.userAgent.split("Firefox/")[1], 10), I.hasTouch = !!I.win.TouchEvent, I.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], I.noop = function() {
  8042. }, I.supportsPassiveEvents = function() {
  8043. var Z = !1;
  8044. if (!I.isMS) {
  8045. var F = Object.defineProperty({}, "passive", { get: function() {
  8046. Z = !0;
  8047. } });
  8048. I.win.addEventListener && I.win.removeEventListener && (I.win.addEventListener(
  8049. "testPassive",
  8050. I.noop,
  8051. F
  8052. ), I.win.removeEventListener("testPassive", I.noop, F));
  8053. }
  8054. return Z;
  8055. }(), I.charts = [], I.dateFormats = {}, I.seriesTypes = {}, I.symbolSizes = {}, I.chartCount = 0;
  8056. }(j || (j = {})), j;
  8057. }), E(h, "Core/Utilities.js", [h["Core/Globals.js"]], function(y) {
  8058. function j(t, o, n, A) {
  8059. var _ = o ? "Highcharts error" : "Highcharts warning";
  8060. t === 32 && (t = _ + ": Deprecated member");
  8061. var D = S(t), B = D ? _ + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  8062. if (typeof A < "u") {
  8063. var T = "";
  8064. D && (B += "?"), b(A, function(X, g) {
  8065. T += `
  8066. - ` + g + ": " + X, D && (B += encodeURI(g) + "=" + encodeURI(X));
  8067. }), B += T;
  8068. }
  8069. x(y, "displayError", { chart: n, code: t, message: B, params: A }, function() {
  8070. if (o)
  8071. throw Error(B);
  8072. p.console && j.messages.indexOf(B) === -1 && console.warn(B);
  8073. }), j.messages.push(B);
  8074. }
  8075. function I(t, o) {
  8076. var n = {};
  8077. return b(t, function(A, _) {
  8078. H(t[_], !0) && !t.nodeType && o[_] ? (A = I(t[_], o[_]), Object.keys(A).length && (n[_] = A)) : (H(t[_]) || t[_] !== o[_]) && (n[_] = t[_]);
  8079. }), n;
  8080. }
  8081. function Z(t, o) {
  8082. return parseInt(t, o || 10);
  8083. }
  8084. function F(t) {
  8085. return typeof t == "string";
  8086. }
  8087. function U(t) {
  8088. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  8089. }
  8090. function H(t, o) {
  8091. return !!t && typeof t == "object" && (!o || !U(t));
  8092. }
  8093. function W(t) {
  8094. return H(t) && typeof t.nodeType == "number";
  8095. }
  8096. function R(t) {
  8097. var o = t && t.constructor;
  8098. return !(!H(t, !0) || W(t) || !o || !o.name || o.name === "Object");
  8099. }
  8100. function S(t) {
  8101. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  8102. }
  8103. function v(t) {
  8104. return typeof t < "u" && t !== null;
  8105. }
  8106. function d(t, o, n) {
  8107. var A;
  8108. return F(o) ? v(n) ? t.setAttribute(o, n) : t && t.getAttribute && ((A = t.getAttribute(o)) || o !== "class" || (A = t.getAttribute(o + "Name"))) : b(o, function(_, D) {
  8109. v(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  8110. }), A;
  8111. }
  8112. function u(t, o) {
  8113. var n;
  8114. t || (t = {});
  8115. for (n in o)
  8116. t[n] = o[n];
  8117. return t;
  8118. }
  8119. function P() {
  8120. for (var t = arguments, o = t.length, n = 0; n < o; n++) {
  8121. var A = t[n];
  8122. if (typeof A < "u" && A !== null)
  8123. return A;
  8124. }
  8125. }
  8126. function O(t, o) {
  8127. y.isMS && !y.svg && o && typeof o.opacity < "u" && (o.filter = "alpha(opacity=" + 100 * o.opacity + ")"), u(t.style, o);
  8128. }
  8129. function N(t, o) {
  8130. return 1e14 < t ? t : parseFloat(t.toPrecision(o || 14));
  8131. }
  8132. function C(t, o, n) {
  8133. var A = y.getStyle || C;
  8134. if (o === "width")
  8135. return o = Math.min(t.offsetWidth, t.scrollWidth), n = t.getBoundingClientRect && t.getBoundingClientRect().width, n < o && n >= o - 1 && (o = Math.floor(n)), Math.max(0, o - (A(t, "padding-left", !0) || 0) - (A(t, "padding-right", !0) || 0));
  8136. if (o === "height")
  8137. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (A(t, "padding-top", !0) || 0) - (A(t, "padding-bottom", !0) || 0));
  8138. if (p.getComputedStyle || j(27, !0), t = p.getComputedStyle(t, void 0)) {
  8139. var _ = t.getPropertyValue(o);
  8140. P(n, o !== "opacity") && (_ = Z(_));
  8141. }
  8142. return _;
  8143. }
  8144. function b(t, o, n) {
  8145. for (var A in t)
  8146. Object.hasOwnProperty.call(t, A) && o.call(n || t[A], t[A], A, t);
  8147. }
  8148. function w(t, o, n) {
  8149. function A(T, X) {
  8150. var g = t.removeEventListener || y.removeEventListenerPolyfill;
  8151. g && g.call(t, T, X, !1);
  8152. }
  8153. function _(T) {
  8154. var X;
  8155. if (t.nodeName) {
  8156. if (o) {
  8157. var g = {};
  8158. g[o] = !0;
  8159. } else
  8160. g = T;
  8161. b(g, function(m, L) {
  8162. if (T[L])
  8163. for (X = T[L].length; X--; )
  8164. A(L, T[L][X].fn);
  8165. });
  8166. }
  8167. }
  8168. var D = typeof t == "function" && t.prototype || t;
  8169. if (Object.hasOwnProperty.call(D, "hcEvents")) {
  8170. var B = D.hcEvents;
  8171. o ? (D = B[o] || [], n ? (B[o] = D.filter(function(T) {
  8172. return n !== T.fn;
  8173. }), A(o, n)) : (_(B), B[o] = [])) : (_(B), delete D.hcEvents);
  8174. }
  8175. }
  8176. function x(t, o, n, A) {
  8177. if (n = n || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  8178. var _ = c.createEvent("Events");
  8179. _.initEvent(o, !0, !0), n = u(_, n), t.dispatchEvent ? t.dispatchEvent(n) : t.fireEvent(o, n);
  8180. } else if (t.hcEvents) {
  8181. n.target || u(n, { preventDefault: function() {
  8182. n.defaultPrevented = !0;
  8183. }, target: t, type: o }), _ = [];
  8184. for (var D = t, B = !1; D.hcEvents; )
  8185. Object.hasOwnProperty.call(D, "hcEvents") && D.hcEvents[o] && (_.length && (B = !0), _.unshift.apply(_, D.hcEvents[o])), D = Object.getPrototypeOf(D);
  8186. B && _.sort(function(T, X) {
  8187. return T.order - X.order;
  8188. }), _.forEach(function(T) {
  8189. T.fn.call(t, n) === !1 && n.preventDefault();
  8190. });
  8191. }
  8192. A && !n.defaultPrevented && A.call(t, n);
  8193. }
  8194. var a = y.charts, c = y.doc, p = y.win;
  8195. (j || (j = {})).messages = [], Math.easeInOutSine = function(t) {
  8196. return -0.5 * (Math.cos(Math.PI * t) - 1);
  8197. };
  8198. var i = Array.prototype.find ? function(t, o) {
  8199. return t.find(o);
  8200. } : function(t, o) {
  8201. var n, A = t.length;
  8202. for (n = 0; n < A; n++)
  8203. if (o(t[n], n))
  8204. return t[n];
  8205. };
  8206. b({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, o) {
  8207. y[o] = function(n) {
  8208. var A;
  8209. return j(32, !1, void 0, (A = {}, A["Highcharts." + o] = "use Array." + t, A)), Array.prototype[t].apply(n, [].slice.call(arguments, 1));
  8210. };
  8211. });
  8212. var l, s = function() {
  8213. var t = Math.random().toString(36).substring(2, 9) + "-", o = 0;
  8214. return function() {
  8215. return "highcharts-" + (l ? "" : t) + o++;
  8216. };
  8217. }();
  8218. return p.jQuery && (p.jQuery.fn.highcharts = function() {
  8219. var t = [].slice.call(arguments);
  8220. if (this[0])
  8221. return t[0] ? (new y[F(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : a[d(this[0], "data-highcharts-chart")];
  8222. }), i = { addEvent: function(t, o, n, A) {
  8223. A === void 0 && (A = {});
  8224. var _ = typeof t == "function" && t.prototype || t;
  8225. Object.hasOwnProperty.call(_, "hcEvents") || (_.hcEvents = {}), _ = _.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  8226. var D = t.addEventListener || y.addEventListenerPolyfill;
  8227. return D && D.call(t, o, n, y.supportsPassiveEvents ? { passive: A.passive === void 0 ? o.indexOf("touch") !== -1 : A.passive, capture: !1 } : !1), _[o] || (_[o] = []), _[o].push({ fn: n, order: typeof A.order == "number" ? A.order : 1 / 0 }), _[o].sort(function(B, T) {
  8228. return B.order - T.order;
  8229. }), function() {
  8230. w(t, o, n);
  8231. };
  8232. }, arrayMax: function(t) {
  8233. for (var o = t.length, n = t[0]; o--; )
  8234. t[o] > n && (n = t[o]);
  8235. return n;
  8236. }, arrayMin: function(t) {
  8237. for (var o = t.length, n = t[0]; o--; )
  8238. t[o] < n && (n = t[o]);
  8239. return n;
  8240. }, attr: d, clamp: function(t, o, n) {
  8241. return t > o ? t < n ? t : n : o;
  8242. }, cleanRecursively: I, clearTimeout: function(t) {
  8243. v(t) && clearTimeout(t);
  8244. }, correctFloat: N, createElement: function(t, o, n, A, _) {
  8245. return t = c.createElement(t), o && u(t, o), _ && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), A && A.appendChild(t), t;
  8246. }, css: O, defined: v, destroyObjectProperties: function(t, o) {
  8247. b(t, function(n, A) {
  8248. n && n !== o && n.destroy && n.destroy(), delete t[A];
  8249. });
  8250. }, discardElement: function(t) {
  8251. t && t.parentElement && t.parentElement.removeChild(t);
  8252. }, erase: function(t, o) {
  8253. for (var n = t.length; n--; )
  8254. if (t[n] === o) {
  8255. t.splice(n, 1);
  8256. break;
  8257. }
  8258. }, error: j, extend: u, extendClass: function(t, o) {
  8259. var n = function() {
  8260. };
  8261. return n.prototype = new t(), u(n.prototype, o), n;
  8262. }, find: i, fireEvent: x, getMagnitude: function(t) {
  8263. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  8264. }, getNestedProperty: function(t, o) {
  8265. for (t = t.split("."); t.length && v(o); ) {
  8266. var n = t.shift();
  8267. if (typeof n > "u" || n === "__proto__" || (o = o[n], !v(o) || typeof o == "function" || typeof o.nodeType == "number" || o === p))
  8268. return;
  8269. }
  8270. return o;
  8271. }, getStyle: C, inArray: function(t, o, n) {
  8272. return j(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), o.indexOf(t, n);
  8273. }, isArray: U, isClass: R, isDOMElement: W, isFunction: function(t) {
  8274. return typeof t == "function";
  8275. }, isNumber: S, isObject: H, isString: F, keys: function(t) {
  8276. return j(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  8277. }, merge: function() {
  8278. var t, o = arguments, n = {}, A = function(D, B) {
  8279. return typeof D != "object" && (D = {}), b(B, function(T, X) {
  8280. X !== "__proto__" && X !== "constructor" && (!H(T, !0) || R(T) || W(T) ? D[X] = B[X] : D[X] = A(D[X] || {}, T));
  8281. }), D;
  8282. };
  8283. o[0] === !0 && (n = o[1], o = Array.prototype.slice.call(o, 2));
  8284. var _ = o.length;
  8285. for (t = 0; t < _; t++)
  8286. n = A(n, o[t]);
  8287. return n;
  8288. }, normalizeTickInterval: function(t, o, n, A, _) {
  8289. var D = t;
  8290. n = P(n, 1);
  8291. var B = t / n;
  8292. for (o || (o = _ ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], A === !1 && (n === 1 ? o = o.filter(function(T) {
  8293. return T % 1 === 0;
  8294. }) : 0.1 >= n && (o = [1 / n]))), A = 0; A < o.length && (D = o[A], !(_ && D * n >= t || !_ && B <= (o[A] + (o[A + 1] || o[A])) / 2)); A++)
  8295. ;
  8296. return D = N(D * n, -Math.round(Math.log(1e-3) / Math.LN10));
  8297. }, objectEach: b, offset: function(t) {
  8298. var o = c.documentElement;
  8299. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (p.pageYOffset || o.scrollTop) - (o.clientTop || 0), left: t.left + (p.pageXOffset || o.scrollLeft) - (o.clientLeft || 0), width: t.width, height: t.height };
  8300. }, pad: function(t, o, n) {
  8301. return Array((o || 2) + 1 - String(t).replace("-", "").length).join(n || "0") + t;
  8302. }, pick: P, pInt: Z, relativeLength: function(t, o, n) {
  8303. return /%$/.test(t) ? o * parseFloat(t) / 100 + (n || 0) : parseFloat(t);
  8304. }, removeEvent: w, splat: function(t) {
  8305. return U(t) ? t : [t];
  8306. }, stableSort: function(t, o) {
  8307. var n = t.length, A, _;
  8308. for (_ = 0; _ < n; _++)
  8309. t[_].safeI = _;
  8310. for (t.sort(function(D, B) {
  8311. return A = o(D, B), A === 0 ? D.safeI - B.safeI : A;
  8312. }), _ = 0; _ < n; _++)
  8313. delete t[_].safeI;
  8314. }, syncTimeout: function(t, o, n) {
  8315. return 0 < o ? setTimeout(t, o, n) : (t.call(0, n), -1);
  8316. }, timeUnits: {
  8317. millisecond: 1,
  8318. second: 1e3,
  8319. minute: 6e4,
  8320. hour: 36e5,
  8321. day: 864e5,
  8322. week: 6048e5,
  8323. month: 24192e5,
  8324. year: 314496e5
  8325. }, uniqueKey: s, useSerialIds: function(t) {
  8326. return l = P(t, l);
  8327. }, wrap: function(t, o, n) {
  8328. var A = t[o];
  8329. t[o] = function() {
  8330. var _ = Array.prototype.slice.call(arguments), D = arguments, B = this;
  8331. return B.proceed = function() {
  8332. A.apply(B, arguments.length ? arguments : D);
  8333. }, _.unshift(A), _ = n.apply(this, _), B.proceed = null, _;
  8334. };
  8335. } }, i;
  8336. }), E(h, "Core/Chart/ChartDefaults.js", [], function() {
  8337. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  8338. 10,
  8339. 10,
  8340. 15,
  8341. 10
  8342. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  8343. }), E(h, "Core/Color/Color.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j) {
  8344. var I = j.isNumber, Z = j.merge, F = j.pInt;
  8345. return j = function() {
  8346. function U(H) {
  8347. this.rgba = [NaN, NaN, NaN, NaN], this.input = H;
  8348. var W = y.Color;
  8349. if (W && W !== U)
  8350. return new W(H);
  8351. if (!(this instanceof U))
  8352. return new U(H);
  8353. this.init(H);
  8354. }
  8355. return U.parse = function(H) {
  8356. return H ? new U(H) : U.None;
  8357. }, U.prototype.init = function(H) {
  8358. var W;
  8359. if (typeof H == "object" && typeof H.stops < "u")
  8360. this.stops = H.stops.map(function(d) {
  8361. return new U(d[1]);
  8362. });
  8363. else if (typeof H == "string") {
  8364. if (this.input = H = U.names[H.toLowerCase()] || H, H.charAt(0) === "#") {
  8365. var R = H.length, S = parseInt(H.substr(1), 16);
  8366. R === 7 ? W = [(S & 16711680) >> 16, (S & 65280) >> 8, S & 255, 1] : R === 4 && (W = [(S & 3840) >> 4 | (S & 3840) >> 8, (S & 240) >> 4 | S & 240, (S & 15) << 4 | S & 15, 1]);
  8367. }
  8368. if (!W)
  8369. for (S = U.parsers.length; S-- && !W; ) {
  8370. var v = U.parsers[S];
  8371. (R = v.regex.exec(H)) && (W = v.parse(R));
  8372. }
  8373. }
  8374. W && (this.rgba = W);
  8375. }, U.prototype.get = function(H) {
  8376. var W = this.input, R = this.rgba;
  8377. if (typeof W == "object" && typeof this.stops < "u") {
  8378. var S = Z(W);
  8379. return S.stops = [].slice.call(S.stops), this.stops.forEach(function(v, d) {
  8380. S.stops[d] = [S.stops[d][0], v.get(H)];
  8381. }), S;
  8382. }
  8383. return R && I(R[0]) ? H === "rgb" || !H && R[3] === 1 ? "rgb(" + R[0] + "," + R[1] + "," + R[2] + ")" : H === "a" ? "" + R[3] : "rgba(" + R.join(",") + ")" : W;
  8384. }, U.prototype.brighten = function(H) {
  8385. var W = this.rgba;
  8386. if (this.stops)
  8387. this.stops.forEach(function(S) {
  8388. S.brighten(H);
  8389. });
  8390. else if (I(H) && H !== 0)
  8391. for (var R = 0; 3 > R; R++)
  8392. W[R] += F(255 * H), 0 > W[R] && (W[R] = 0), 255 < W[R] && (W[R] = 255);
  8393. return this;
  8394. }, U.prototype.setOpacity = function(H) {
  8395. return this.rgba[3] = H, this;
  8396. }, U.prototype.tweenTo = function(H, W) {
  8397. var R = this.rgba, S = H.rgba;
  8398. return !I(R[0]) || !I(S[0]) ? H.input || "none" : (H = S[3] !== 1 || R[3] !== 1, (H ? "rgba(" : "rgb(") + Math.round(S[0] + (R[0] - S[0]) * (1 - W)) + "," + Math.round(S[1] + (R[1] - S[1]) * (1 - W)) + "," + Math.round(S[2] + (R[2] - S[2]) * (1 - W)) + (H ? "," + (S[3] + (R[3] - S[3]) * (1 - W)) : "") + ")");
  8399. }, U.names = { white: "#ffffff", black: "#000000" }, U.parsers = [{
  8400. regex: /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
  8401. parse: function(H) {
  8402. return [F(H[1]), F(H[2]), F(H[3]), parseFloat(H[4], 10)];
  8403. }
  8404. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(H) {
  8405. return [F(H[1]), F(H[2]), F(H[3]), 1];
  8406. } }], U.None = new U(""), U;
  8407. }(), j;
  8408. }), E(h, "Core/Color/Palettes.js", [], function() {
  8409. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  8410. }), E(h, "Core/Time.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j) {
  8411. var I = y.win, Z = j.defined, F = j.error, U = j.extend, H = j.isObject, W = j.merge, R = j.objectEach, S = j.pad, v = j.pick, d = j.splat, u = j.timeUnits, P = y.isSafari && I.Intl && I.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && I.Intl && !I.Intl.DateTimeFormat.prototype.formatRange;
  8412. return j = function() {
  8413. function N(C) {
  8414. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = I.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(C);
  8415. }
  8416. return N.prototype.get = function(C, b) {
  8417. if (this.variableTimezone || this.timezoneOffset) {
  8418. var w = b.getTime(), x = w - this.getTimezoneOffset(b);
  8419. return b.setTime(x), C = b["getUTC" + C](), b.setTime(w), C;
  8420. }
  8421. return this.useUTC ? b["getUTC" + C]() : b["get" + C]();
  8422. }, N.prototype.set = function(C, b, w) {
  8423. if (this.variableTimezone || this.timezoneOffset) {
  8424. if (C === "Milliseconds" || C === "Seconds" || C === "Minutes" && this.getTimezoneOffset(b) % 36e5 === 0)
  8425. return b["setUTC" + C](w);
  8426. var x = this.getTimezoneOffset(b);
  8427. return x = b.getTime() - x, b.setTime(x), b["setUTC" + C](w), C = this.getTimezoneOffset(b), x = b.getTime() + C, b.setTime(x);
  8428. }
  8429. return this.useUTC || P && C === "FullYear" ? b["setUTC" + C](w) : b["set" + C](w);
  8430. }, N.prototype.update = function(C) {
  8431. var b = v(C && C.useUTC, !0);
  8432. this.options = C = W(!0, this.options || {}, C), this.Date = C.Date || I.Date || Date, this.timezoneOffset = (this.useUTC = b) && C.timezoneOffset, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = b && !(!C.getTimezoneOffset && !C.timezone);
  8433. }, N.prototype.makeTime = function(C, b, w, x, a, c) {
  8434. if (this.useUTC) {
  8435. var p = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(p);
  8436. p += i;
  8437. var l = this.getTimezoneOffset(p);
  8438. i !== l ? p += l - i : i - 36e5 !== this.getTimezoneOffset(p - 36e5) || O || (p -= 36e5);
  8439. } else
  8440. p = new this.Date(C, b, v(w, 1), v(x, 0), v(a, 0), v(c, 0)).getTime();
  8441. return p;
  8442. }, N.prototype.timezoneOffsetFunction = function() {
  8443. var C = this, b = this.options, w = b.getTimezoneOffset, x = b.moment || I.moment;
  8444. if (!this.useUTC)
  8445. return function(a) {
  8446. return 6e4 * new Date(a.toString()).getTimezoneOffset();
  8447. };
  8448. if (b.timezone) {
  8449. if (x)
  8450. return function(a) {
  8451. return 6e4 * -x.tz(a, b.timezone).utcOffset();
  8452. };
  8453. F(25);
  8454. }
  8455. return this.useUTC && w ? function(a) {
  8456. return 6e4 * w(a.valueOf());
  8457. } : function() {
  8458. return 6e4 * (C.timezoneOffset || 0);
  8459. };
  8460. }, N.prototype.dateFormat = function(C, b, w) {
  8461. if (!Z(b) || isNaN(b))
  8462. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  8463. C = v(C, "%Y-%m-%d %H:%M:%S");
  8464. var x = this, a = new this.Date(b), c = this.get("Hours", a), p = this.get("Day", a), i = this.get("Date", a), l = this.get("Month", a), s = this.get("FullYear", a), t = y.defaultOptions.lang, o = t && t.weekdays, n = t && t.shortWeekdays;
  8465. return a = U({ a: n ? n[p] : o[p].substr(0, 3), A: o[p], d: S(i), e: S(i, 2, " "), w: p, b: t.shortMonths[l], B: t.months[l], m: S(l + 1), o: l + 1, y: s.toString().substr(2, 2), Y: s, H: S(c), k: c, I: S(c % 12 || 12), l: c % 12 || 12, M: S(this.get("Minutes", a)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: S(a.getSeconds()), L: S(Math.floor(b % 1e3), 3) }, y.dateFormats), R(a, function(A, _) {
  8466. for (; C.indexOf("%" + _) !== -1; )
  8467. C = C.replace("%" + _, typeof A == "function" ? A.call(x, b) : A);
  8468. }), w ? C.substr(0, 1).toUpperCase() + C.substr(1) : C;
  8469. }, N.prototype.resolveDTLFormat = function(C) {
  8470. return H(C, !0) ? C : (C = d(C), { main: C[0], from: C[1], to: C[2] });
  8471. }, N.prototype.getTimeTicks = function(C, b, w, x) {
  8472. var a = this, c = [], p = {}, i = new a.Date(b), l = C.unitRange, s = C.count || 1, t;
  8473. if (x = v(x, 1), Z(b)) {
  8474. if (a.set(
  8475. "Milliseconds",
  8476. i,
  8477. l >= u.second ? 0 : s * Math.floor(a.get("Milliseconds", i) / s)
  8478. ), l >= u.second && a.set("Seconds", i, l >= u.minute ? 0 : s * Math.floor(a.get("Seconds", i) / s)), l >= u.minute && a.set("Minutes", i, l >= u.hour ? 0 : s * Math.floor(a.get("Minutes", i) / s)), l >= u.hour && a.set("Hours", i, l >= u.day ? 0 : s * Math.floor(a.get("Hours", i) / s)), l >= u.day && a.set("Date", i, l >= u.month ? 1 : Math.max(1, s * Math.floor(a.get("Date", i) / s))), l >= u.month) {
  8479. a.set("Month", i, l >= u.year ? 0 : s * Math.floor(a.get("Month", i) / s));
  8480. var o = a.get("FullYear", i);
  8481. }
  8482. l >= u.year && a.set(
  8483. "FullYear",
  8484. i,
  8485. o - o % s
  8486. ), l === u.week && (o = a.get("Day", i), a.set("Date", i, a.get("Date", i) - o + x + (o < x ? -7 : 0))), o = a.get("FullYear", i), x = a.get("Month", i);
  8487. var n = a.get("Date", i), A = a.get("Hours", i);
  8488. for (b = i.getTime(), !a.variableTimezone && a.useUTC || !Z(w) || (t = w - b > 4 * u.month || a.getTimezoneOffset(b) !== a.getTimezoneOffset(w)), b = i.getTime(), i = 1; b < w; )
  8489. c.push(b), b = l === u.year ? a.makeTime(o + i * s, 0) : l === u.month ? a.makeTime(o, x + i * s) : !t || l !== u.day && l !== u.week ? t && l === u.hour && 1 < s ? a.makeTime(o, x, n, A + i * s) : b + l * s : a.makeTime(o, x, n + i * s * (l === u.day ? 1 : 7)), i++;
  8490. c.push(b), l <= u.hour && 1e4 > c.length && c.forEach(function(_) {
  8491. _ % 18e5 === 0 && a.dateFormat("%H%M%S%L", _) === "000000000" && (p[_] = "day");
  8492. });
  8493. }
  8494. return c.info = U(C, { higherRanks: p, totalRange: l * s }), c;
  8495. }, N.prototype.getDateFormat = function(C, b, w, x) {
  8496. var a = this.dateFormat("%m-%d %H:%M:%S.%L", b), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, p = "millisecond";
  8497. for (i in u) {
  8498. if (C === u.week && +this.dateFormat("%w", b) === w && a.substr(6) === "00:00:00.000") {
  8499. var i = "week";
  8500. break;
  8501. }
  8502. if (u[i] > C) {
  8503. i = p;
  8504. break;
  8505. }
  8506. if (c[i] && a.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  8507. break;
  8508. i !== "week" && (p = i);
  8509. }
  8510. if (i)
  8511. var l = this.resolveDTLFormat(x[i]).main;
  8512. return l;
  8513. }, N;
  8514. }(), j;
  8515. }), E(h, "Core/DefaultOptions.js", [h["Core/Chart/ChartDefaults.js"], h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Color/Palettes.js"], h["Core/Time.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U) {
  8516. j = j.parse;
  8517. var H = U.merge, W = {
  8518. colors: Z.colors,
  8519. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  8520. lang: {
  8521. loading: "Loading...",
  8522. months: "January February March April May June July August September October November December".split(" "),
  8523. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  8524. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  8525. decimalPoint: ".",
  8526. numericSymbols: "kMGTPE".split(""),
  8527. resetZoom: "Reset zoom",
  8528. resetZoomTitle: "Reset zoom level 1:1",
  8529. thousandsSep: " "
  8530. },
  8531. global: {},
  8532. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  8533. chart: y,
  8534. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  8535. subtitle: { text: "", align: "center", widthAdjust: -44 },
  8536. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  8537. plotOptions: {},
  8538. labels: { style: { position: "absolute", color: "#333333" } },
  8539. legend: {
  8540. enabled: !0,
  8541. align: "center",
  8542. alignColumns: !0,
  8543. className: "highcharts-no-tooltip",
  8544. layout: "horizontal",
  8545. labelFormatter: function() {
  8546. return this.name;
  8547. },
  8548. borderColor: "#999999",
  8549. borderRadius: 0,
  8550. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  8551. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  8552. itemHoverStyle: { color: "#000000" },
  8553. itemHiddenStyle: { color: "#cccccc" },
  8554. shadow: !1,
  8555. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  8556. squareSymbol: !0,
  8557. symbolPadding: 5,
  8558. verticalAlign: "bottom",
  8559. x: 0,
  8560. y: 0,
  8561. title: { style: { fontWeight: "bold" } }
  8562. },
  8563. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  8564. tooltip: {
  8565. enabled: !0,
  8566. animation: I.svg,
  8567. borderRadius: 3,
  8568. dateTimeLabelFormats: {
  8569. millisecond: "%A, %b %e, %H:%M:%S.%L",
  8570. second: "%A, %b %e, %H:%M:%S",
  8571. minute: "%A, %b %e, %H:%M",
  8572. hour: "%A, %b %e, %H:%M",
  8573. day: "%A, %b %e, %Y",
  8574. week: "Week from %A, %b %e, %Y",
  8575. month: "%B %Y",
  8576. year: "%Y"
  8577. },
  8578. footerFormat: "",
  8579. headerShape: "callout",
  8580. hideDelay: 500,
  8581. padding: 8,
  8582. shape: "callout",
  8583. shared: !1,
  8584. snap: I.isTouchDevice ? 25 : 10,
  8585. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  8586. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  8587. backgroundColor: j("#f7f7f7").setOpacity(0.85).get(),
  8588. borderWidth: 1,
  8589. shadow: !0,
  8590. stickOnContact: !1,
  8591. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  8592. useHTML: !1
  8593. },
  8594. credits: { enabled: !0, href: "https://www.highcharts.com?credits", position: { align: "right", x: -10, verticalAlign: "bottom", y: -5 }, style: { cursor: "pointer", color: "#999999", fontSize: "9px" }, text: "Highcharts.com" }
  8595. };
  8596. W.chart.styledMode = !1;
  8597. var R = new F(H(W.global, W.time));
  8598. return y = { defaultOptions: W, defaultTime: R, getOptions: function() {
  8599. return W;
  8600. }, setOptions: function(S) {
  8601. return H(!0, W, S), (S.time || S.global) && (I.time ? I.time.update(H(
  8602. W.global,
  8603. W.time,
  8604. S.global,
  8605. S.time
  8606. )) : I.time = R), W;
  8607. } }, y;
  8608. }), E(h, "Core/Animation/Fx.js", [h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j, I) {
  8609. var Z = y.parse, F = j.win, U = I.isNumber, H = I.objectEach;
  8610. return function() {
  8611. function W(R, S, v) {
  8612. this.pos = NaN, this.options = S, this.elem = R, this.prop = v;
  8613. }
  8614. return W.prototype.dSetter = function() {
  8615. var R = this.paths, S = R && R[0];
  8616. R = R && R[1];
  8617. var v = this.now || 0, d = [];
  8618. if (v !== 1 && S && R)
  8619. if (S.length === R.length && 1 > v)
  8620. for (var u = 0; u < R.length; u++) {
  8621. for (var P = S[u], O = R[u], N = [], C = 0; C < O.length; C++) {
  8622. var b = P[C], w = O[C];
  8623. U(b) && U(w) && (O[0] !== "A" || C !== 4 && C !== 5) ? N[C] = b + v * (w - b) : N[C] = w;
  8624. }
  8625. d.push(N);
  8626. }
  8627. else
  8628. d = R;
  8629. else
  8630. d = this.toD || [];
  8631. this.elem.attr("d", d, void 0, !0);
  8632. }, W.prototype.update = function() {
  8633. var R = this.elem, S = this.prop, v = this.now, d = this.options.step;
  8634. this[S + "Setter"] ? this[S + "Setter"]() : R.attr ? R.element && R.attr(S, v, null, !0) : R.style[S] = v + this.unit, d && d.call(R, v, this);
  8635. }, W.prototype.run = function(R, S, v) {
  8636. var d = this, u = d.options, P = function(C) {
  8637. return P.stopped ? !1 : d.step(C);
  8638. }, O = F.requestAnimationFrame || function(C) {
  8639. setTimeout(
  8640. C,
  8641. 13
  8642. );
  8643. }, N = function() {
  8644. for (var C = 0; C < W.timers.length; C++)
  8645. W.timers[C]() || W.timers.splice(C--, 1);
  8646. W.timers.length && O(N);
  8647. };
  8648. R !== S || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = R, this.end = S, this.unit = v, this.now = this.start, this.pos = 0, P.elem = this.elem, P.prop = this.prop, P() && W.timers.push(P) === 1 && O(N)) : (delete u.curAnim[this.prop], u.complete && Object.keys(u.curAnim).length === 0 && u.complete.call(this.elem));
  8649. }, W.prototype.step = function(R) {
  8650. var S = +/* @__PURE__ */ new Date(), v = this.options, d = this.elem, u = v.complete, P = v.duration, O = v.curAnim;
  8651. if (d.attr && !d.element)
  8652. R = !1;
  8653. else if (R || S >= P + this.startTime) {
  8654. this.now = this.end, this.pos = 1, this.update();
  8655. var N = O[this.prop] = !0;
  8656. H(O, function(C) {
  8657. C !== !0 && (N = !1);
  8658. }), N && u && u.call(d), R = !1;
  8659. } else
  8660. this.pos = v.easing((S - this.startTime) / P), this.now = this.start + (this.end - this.start) * this.pos, this.update(), R = !0;
  8661. return R;
  8662. }, W.prototype.initPath = function(R, S, v) {
  8663. function d(a, c) {
  8664. for (; a.length < x; ) {
  8665. var p = a[0], i = c[x - a.length];
  8666. i && p[0] === "M" && (a[0] = i[0] === "C" ? ["C", p[1], p[2], p[1], p[2], p[1], p[2]] : [
  8667. "L",
  8668. p[1],
  8669. p[2]
  8670. ]), a.unshift(p), N && (p = a.pop(), a.push(a[a.length - 1], p));
  8671. }
  8672. }
  8673. function u(a, c) {
  8674. for (; a.length < x; )
  8675. if (c = a[Math.floor(a.length / C) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), N) {
  8676. var p = a[Math.floor(a.length / C)].slice();
  8677. a.splice(a.length / 2, 0, c, p);
  8678. } else
  8679. a.push(c);
  8680. }
  8681. var P = R.startX, O = R.endX;
  8682. v = v.slice();
  8683. var N = R.isArea, C = N ? 2 : 1;
  8684. if (S = S && S.slice(), !S)
  8685. return [v, v];
  8686. if (P && O && O.length) {
  8687. for (R = 0; R < P.length; R++)
  8688. if (P[R] === O[0]) {
  8689. var b = R;
  8690. break;
  8691. } else if (P[0] === O[O.length - P.length + R]) {
  8692. b = R;
  8693. var w = !0;
  8694. break;
  8695. } else if (P[P.length - 1] === O[O.length - P.length + R]) {
  8696. b = P.length - R;
  8697. break;
  8698. }
  8699. typeof b > "u" && (S = []);
  8700. }
  8701. if (S.length && U(b)) {
  8702. var x = v.length + b * C;
  8703. w ? (d(S, v), u(v, S)) : (d(v, S), u(S, v));
  8704. }
  8705. return [S, v];
  8706. }, W.prototype.fillSetter = function() {
  8707. W.prototype.strokeSetter.apply(this, arguments);
  8708. }, W.prototype.strokeSetter = function() {
  8709. this.elem.attr(this.prop, Z(this.start).tweenTo(Z(this.end), this.pos), void 0, !0);
  8710. }, W.timers = [], W;
  8711. }();
  8712. }), E(h, "Core/Animation/AnimationUtilities.js", [h["Core/Animation/Fx.js"], h["Core/Utilities.js"]], function(y, j) {
  8713. function I(u) {
  8714. return R(u) ? S({ duration: 500, defer: 0 }, u) : { duration: u ? 500 : 0, defer: 0 };
  8715. }
  8716. function Z(u, P) {
  8717. for (var O = y.timers.length; O--; )
  8718. y.timers[O].elem !== u || P && P !== y.timers[O].prop || (y.timers[O].stopped = !0);
  8719. }
  8720. var F = j.defined, U = j.getStyle, H = j.isArray, W = j.isNumber, R = j.isObject, S = j.merge, v = j.objectEach, d = j.pick;
  8721. return { animate: function(u, P, O) {
  8722. var N, C = "", b, w;
  8723. if (!R(O)) {
  8724. var x = arguments;
  8725. O = { duration: x[2], easing: x[3], complete: x[4] };
  8726. }
  8727. W(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = S(P), v(P, function(a, c) {
  8728. Z(u, c), w = new y(u, O, c), b = void 0, c === "d" && H(P.d) ? (w.paths = w.initPath(u, u.pathArray, P.d), w.toD = P.d, N = 0, b = 1) : u.attr ? N = u.attr(c) : (N = parseFloat(U(u, c)) || 0, c !== "opacity" && (C = "px")), b || (b = a), typeof b == "string" && b.match("px") && (b = b.replace(/px/g, "")), w.run(N, b, C);
  8729. });
  8730. }, animObject: I, getDeferredAnimation: function(u, P, O) {
  8731. var N = I(P), C = 0, b = 0;
  8732. return (O ? [O] : u.series).forEach(function(w) {
  8733. w = I(w.options.animation), C = P && F(P.defer) ? N.defer : Math.max(C, w.duration + w.defer), b = Math.min(N.duration, w.duration);
  8734. }), u.renderer.forExport && (C = 0), { defer: Math.max(0, C - b), duration: Math.min(C, b) };
  8735. }, setAnimation: function(u, P) {
  8736. P.renderer.globalAnimation = d(u, P.options.chart.animation, !0);
  8737. }, stop: Z };
  8738. }), E(h, "Core/Renderer/HTML/AST.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j) {
  8739. var I = y.SVG_NS, Z = j.attr, F = j.createElement, U = j.error, H = j.isFunction, W = j.isString, R = j.objectEach, S = j.splat, v = (j = y.win.trustedTypes) && H(j.createPolicy) && j.createPolicy("highcharts", { createHTML: function(P) {
  8740. return P;
  8741. } }), d = v ? v.createHTML("") : "";
  8742. try {
  8743. var u = !!new DOMParser().parseFromString(d, "text/html");
  8744. } catch {
  8745. u = !1;
  8746. }
  8747. return H = function() {
  8748. function P(O) {
  8749. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  8750. }
  8751. return P.filterUserAttributes = function(O) {
  8752. return R(O, function(N, C) {
  8753. var b = !0;
  8754. P.allowedAttributes.indexOf(C) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(C) !== -1 && (b = W(N) && P.allowedReferences.some(function(w) {
  8755. return N.indexOf(w) === 0;
  8756. })), b || (U("Highcharts warning: Invalid attribute '" + C + "' in config"), delete O[C]);
  8757. }), O;
  8758. }, P.setElementHTML = function(O, N) {
  8759. O.innerHTML = P.emptyHTML, N && new P(N).addToDOM(O);
  8760. }, P.prototype.addToDOM = function(O) {
  8761. function N(C, b) {
  8762. var w;
  8763. return S(C).forEach(function(x) {
  8764. var a = x.tagName, c = x.textContent ? y.doc.createTextNode(x.textContent) : void 0;
  8765. if (a)
  8766. if (a === "#text")
  8767. var p = c;
  8768. else if (P.allowedTags.indexOf(a) !== -1) {
  8769. a = y.doc.createElementNS(a === "svg" ? I : b.namespaceURI || I, a);
  8770. var i = x.attributes || {};
  8771. R(x, function(l, s) {
  8772. s !== "tagName" && s !== "attributes" && s !== "children" && s !== "textContent" && (i[s] = l);
  8773. }), Z(a, P.filterUserAttributes(i)), c && a.appendChild(c), N(x.children || [], a), p = a;
  8774. } else
  8775. U("Highcharts warning: Invalid tagName " + a + " in config");
  8776. p && b.appendChild(p), w = p;
  8777. }), w;
  8778. }
  8779. return N(this.nodes, O);
  8780. }, P.prototype.parseMarkup = function(O) {
  8781. var N = [];
  8782. if (O = O.trim(), u)
  8783. O = new DOMParser().parseFromString(v ? v.createHTML(O) : O, "text/html");
  8784. else {
  8785. var C = F("div");
  8786. C.innerHTML = O, O = { body: C };
  8787. }
  8788. var b = function(w, x) {
  8789. var a = w.nodeName.toLowerCase(), c = { tagName: a };
  8790. if (a === "#text" && (c.textContent = w.textContent || ""), a = w.attributes) {
  8791. var p = {};
  8792. [].forEach.call(a, function(l) {
  8793. p[l.name] = l.value;
  8794. }), c.attributes = p;
  8795. }
  8796. if (w.childNodes.length) {
  8797. var i = [];
  8798. [].forEach.call(w.childNodes, function(l) {
  8799. b(l, i);
  8800. }), i.length && (c.children = i);
  8801. }
  8802. x.push(c);
  8803. };
  8804. return [].forEach.call(O.body.childNodes, function(w) {
  8805. return b(w, N);
  8806. }), N;
  8807. }, P.allowedAttributes = "aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "), P.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), P.allowedTags = "a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "), P.emptyHTML = d, P;
  8808. }(), H;
  8809. }), E(
  8810. h,
  8811. "Core/FormatUtilities.js",
  8812. [h["Core/DefaultOptions.js"], h["Core/Utilities.js"]],
  8813. function(y, j) {
  8814. function I(S, v, d, u) {
  8815. S = +S || 0, v = +v;
  8816. var P = Z.lang, O = (S.toString().split(".")[1] || "").split("e")[0].length, N = S.toString().split("e"), C = v;
  8817. if (v === -1)
  8818. v = Math.min(O, 20);
  8819. else if (!H(v))
  8820. v = 2;
  8821. else if (v && N[1] && 0 > N[1]) {
  8822. var b = v + +N[1];
  8823. 0 <= b ? (N[0] = (+N[0]).toExponential(b).split("e")[0], v = b) : (N[0] = N[0].split(".")[0] || 0, S = 20 > v ? (N[0] * Math.pow(10, N[1])).toFixed(v) : 0, N[1] = 0);
  8824. }
  8825. b = (Math.abs(N[1] ? N[0] : S) + Math.pow(10, -Math.max(v, O) - 1)).toFixed(v), O = String(R(b));
  8826. var w = 3 < O.length ? O.length % 3 : 0;
  8827. return d = W(d, P.decimalPoint), u = W(u, P.thousandsSep), S = (0 > S ? "-" : "") + (w ? O.substr(0, w) + u : ""), S = 0 > +N[1] && !C ? "0" : S + O.substr(w).replace(/(\d{3})(?=\d)/g, "$1" + u), v && (S += d + b.slice(-v)), N[1] && +S != 0 && (S += "e" + N[1]), S;
  8828. }
  8829. var Z = y.defaultOptions, F = y.defaultTime, U = j.getNestedProperty, H = j.isNumber, W = j.pick, R = j.pInt;
  8830. return { dateFormat: function(S, v, d) {
  8831. return F.dateFormat(S, v, d);
  8832. }, format: function(S, v, d) {
  8833. var u = "{", P = !1, O = /f$/, N = /\.([0-9])/, C = Z.lang, b = d && d.time || F;
  8834. d = d && d.numberFormatter || I;
  8835. for (var w = []; S; ) {
  8836. var x = S.indexOf(u);
  8837. if (x === -1)
  8838. break;
  8839. var a = S.slice(0, x);
  8840. if (P) {
  8841. if (a = a.split(":"), u = U(a.shift() || "", v), a.length && typeof u == "number")
  8842. if (a = a.join(":"), O.test(a)) {
  8843. var c = parseInt((a.match(N) || ["", "-1"])[1], 10);
  8844. u !== null && (u = d(u, c, C.decimalPoint, -1 < a.indexOf(",") ? C.thousandsSep : ""));
  8845. } else
  8846. u = b.dateFormat(a, u);
  8847. w.push(u);
  8848. } else
  8849. w.push(a);
  8850. S = S.slice(x + 1), u = (P = !P) ? "}" : "{";
  8851. }
  8852. return w.push(S), w.join("");
  8853. }, numberFormat: I };
  8854. }
  8855. ), E(h, "Core/Renderer/RendererUtilities.js", [h["Core/Utilities.js"]], function(y) {
  8856. var j = y.clamp, I = y.pick, Z = y.stableSort, F;
  8857. return function(U) {
  8858. function H(W, R, S) {
  8859. var v = W, d = v.reducedLen || R, u = function(w, x) {
  8860. return (x.rank || 0) - (w.rank || 0);
  8861. }, P = function(w, x) {
  8862. return w.target - x.target;
  8863. }, O, N = !0, C = [], b = 0;
  8864. for (O = W.length; O--; )
  8865. b += W[O].size;
  8866. if (b > d) {
  8867. for (Z(W, u), b = O = 0; b <= d; )
  8868. b += W[O].size, O++;
  8869. C = W.splice(O - 1, W.length);
  8870. }
  8871. for (Z(W, P), W = W.map(function(w) {
  8872. return { size: w.size, targets: [w.target], align: I(w.align, 0.5) };
  8873. }); N; ) {
  8874. for (O = W.length; O--; )
  8875. d = W[O], u = (Math.min.apply(0, d.targets) + Math.max.apply(0, d.targets)) / 2, d.pos = j(
  8876. u - d.size * d.align,
  8877. 0,
  8878. R - d.size
  8879. );
  8880. for (O = W.length, N = !1; O--; )
  8881. 0 < O && W[O - 1].pos + W[O - 1].size > W[O].pos && (W[O - 1].size += W[O].size, W[O - 1].targets = W[O - 1].targets.concat(W[O].targets), W[O - 1].align = 0.5, W[O - 1].pos + W[O - 1].size > R && (W[O - 1].pos = R - W[O - 1].size), W.splice(O, 1), N = !0);
  8882. }
  8883. return v.push.apply(v, C), O = 0, W.some(function(w) {
  8884. var x = 0;
  8885. return (w.targets || []).some(function() {
  8886. return v[O].pos = w.pos + x, typeof S < "u" && Math.abs(v[O].pos - v[O].target) > S ? (v.slice(0, O + 1).forEach(function(a) {
  8887. return delete a.pos;
  8888. }), v.reducedLen = (v.reducedLen || R) - 0.1 * R, v.reducedLen > 0.1 * R && H(v, R, S), !0) : (x += v[O].size, O++, !1);
  8889. });
  8890. }), Z(v, P), v;
  8891. }
  8892. U.distribute = H;
  8893. }(F || (F = {})), F;
  8894. }), E(h, "Core/Renderer/SVG/SVGElement.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Renderer/HTML/AST.js"], h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F) {
  8895. var U = y.animate, H = y.animObject, W = y.stop, R = Z.deg2rad, S = Z.doc, v = Z.noop, d = Z.svg, u = Z.SVG_NS, P = Z.win, O = F.addEvent, N = F.attr, C = F.createElement, b = F.css, w = F.defined, x = F.erase, a = F.extend, c = F.fireEvent, p = F.isArray, i = F.isFunction, l = F.isNumber, s = F.isString, t = F.merge, o = F.objectEach, n = F.pick, A = F.pInt, _ = F.syncTimeout, D = F.uniqueKey;
  8896. return y = function() {
  8897. function B() {
  8898. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = u, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  8899. }
  8900. return B.prototype._defaultGetter = function(T) {
  8901. return T = n(this[T + "Value"], this[T], this.element ? this.element.getAttribute(T) : null, 0), /^[\-0-9\.]+$/.test(T) && (T = parseFloat(T)), T;
  8902. }, B.prototype._defaultSetter = function(T, X, g) {
  8903. g.setAttribute(X, T);
  8904. }, B.prototype.add = function(T) {
  8905. var X = this.renderer, g = this.element;
  8906. if (T && (this.parentGroup = T), this.parentInverted = T && T.inverted, typeof this.textStr < "u" && this.element.nodeName === "text" && X.buildText(this), this.added = !0, !T || T.handleZ || this.zIndex)
  8907. var m = this.zIndexSetter();
  8908. return m || (T ? T.element : X.box).appendChild(g), this.onAdd && this.onAdd(), this;
  8909. }, B.prototype.addClass = function(T, X) {
  8910. var g = X ? "" : this.attr("class") || "";
  8911. return T = (T || "").split(/ /g).reduce(function(m, L) {
  8912. return g.indexOf(L) === -1 && m.push(L), m;
  8913. }, g ? [g] : []).join(" "), T !== g && this.attr("class", T), this;
  8914. }, B.prototype.afterSetters = function() {
  8915. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  8916. }, B.prototype.align = function(T, X, g) {
  8917. var m = {}, L = this.renderer, Y = L.alignedObjects, V, Q, k;
  8918. T ? (this.alignOptions = T, this.alignByTranslate = X, (!g || s(g)) && (this.alignTo = V = g || "renderer", x(Y, this), Y.push(this), g = void 0)) : (T = this.alignOptions, X = this.alignByTranslate, V = this.alignTo), g = n(g, L[V], V === "scrollablePlotBox" ? L.plotBox : void 0, L), V = T.align;
  8919. var G = T.verticalAlign;
  8920. return L = (g.x || 0) + (T.x || 0), Y = (g.y || 0) + (T.y || 0), V === "right" ? Q = 1 : V === "center" && (Q = 2), Q && (L += (g.width - (T.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), G === "bottom" ? k = 1 : G === "middle" && (k = 2), k && (Y += (g.height - (T.height || 0)) / k), m[X ? "translateY" : "y"] = Math.round(Y), this[this.placed ? "animate" : "attr"](m), this.placed = !0, this.alignAttr = m, this;
  8921. }, B.prototype.alignSetter = function(T) {
  8922. var X = { left: "start", center: "middle", right: "end" };
  8923. X[T] && (this.alignValue = T, this.element.setAttribute(
  8924. "text-anchor",
  8925. X[T]
  8926. ));
  8927. }, B.prototype.animate = function(T, X, g) {
  8928. var m = this, L = H(n(X, this.renderer.globalAnimation, !0));
  8929. return X = L.defer, n(S.hidden, S.msHidden, S.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (g && (L.complete = g), _(function() {
  8930. m.element && U(m, T, L);
  8931. }, X)) : (this.attr(T, void 0, g), o(T, function(Y, V) {
  8932. L.step && L.step.call(this, Y, { prop: V, pos: 1, elem: this });
  8933. }, this)), this;
  8934. }, B.prototype.applyTextOutline = function(T) {
  8935. var X = this.element;
  8936. T.indexOf("contrast") !== -1 && (T = T.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  8937. var g = T.split(" ");
  8938. if (T = g[g.length - 1], (g = g[0]) && g !== "none" && Z.svg) {
  8939. this.fakeTS = !0, this.ySetter = this.xSetter, g = g.replace(/(^[\d\.]+)(.*?)$/g, function(Y, V, Q) {
  8940. return 2 * Number(V) + Q;
  8941. }), this.removeTextOutline();
  8942. var m = S.createElementNS(u, "tspan");
  8943. N(m, { class: "highcharts-text-outline", fill: T, stroke: T, "stroke-width": g, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(Y) {
  8944. var V = Y.cloneNode(!0);
  8945. V.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  8946. return V.removeAttribute(Q);
  8947. }), m.appendChild(V);
  8948. });
  8949. var L = S.createElementNS(u, "tspan");
  8950. L.textContent = "​", ["x", "y"].forEach(function(Y) {
  8951. var V = X.getAttribute(Y);
  8952. V && L.setAttribute(Y, V);
  8953. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  8954. }
  8955. }, B.prototype.attr = function(T, X, g, m) {
  8956. var L = this.element, Y = this.symbolCustomAttribs, V, Q = this, k, G;
  8957. if (typeof T == "string" && typeof X < "u") {
  8958. var z = T;
  8959. T = {}, T[z] = X;
  8960. }
  8961. return typeof T == "string" ? Q = (this[T + "Getter"] || this._defaultGetter).call(this, T, L) : (o(T, function($, q) {
  8962. k = !1, m || W(this, q), this.symbolName && Y.indexOf(q) !== -1 && (V || (this.symbolAttr(T), V = !0), k = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), k || (G = this[q + "Setter"] || this._defaultSetter, G.call(this, $, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, $, G));
  8963. }, this), this.afterSetters()), g && g.call(this), Q;
  8964. }, B.prototype.clip = function(T) {
  8965. return this.attr("clip-path", T ? "url(" + this.renderer.url + "#" + T.id + ")" : "none");
  8966. }, B.prototype.crisp = function(T, X) {
  8967. X = X || T.strokeWidth || 0;
  8968. var g = Math.round(X) % 2 / 2;
  8969. return T.x = Math.floor(T.x || this.x || 0) + g, T.y = Math.floor(T.y || this.y || 0) + g, T.width = Math.floor((T.width || this.width || 0) - 2 * g), T.height = Math.floor((T.height || this.height || 0) - 2 * g), w(T.strokeWidth) && (T.strokeWidth = X), T;
  8970. }, B.prototype.complexColor = function(T, X, g) {
  8971. var m = this.renderer, L, Y, V, Q, k, G, z, $, q, it, et = [], nt;
  8972. c(this.renderer, "complexColor", { args: arguments }, function() {
  8973. if (T.radialGradient ? Y = "radialGradient" : T.linearGradient && (Y = "linearGradient"), Y) {
  8974. if (V = T[Y], k = m.gradients, G = T.stops, q = g.radialReference, p(V) && (T[Y] = V = { x1: V[0], y1: V[1], x2: V[2], y2: V[3], gradientUnits: "userSpaceOnUse" }), Y === "radialGradient" && q && !w(V.gradientUnits) && (Q = V, V = t(V, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), o(V, function(ct, gt) {
  8975. gt !== "id" && et.push(gt, ct);
  8976. }), o(G, function(ct) {
  8977. et.push(ct);
  8978. }), et = et.join(","), k[et])
  8979. it = k[et].attr("id");
  8980. else {
  8981. V.id = it = D();
  8982. var rt = k[et] = m.createElement(Y).attr(V).add(m.defs);
  8983. rt.radAttr = Q, rt.stops = [], G.forEach(function(ct) {
  8984. ct[1].indexOf("rgba") === 0 ? (L = I.parse(ct[1]), z = L.get("rgb"), $ = L.get("a")) : (z = ct[1], $ = 1), ct = m.createElement("stop").attr({
  8985. offset: ct[0],
  8986. "stop-color": z,
  8987. "stop-opacity": $
  8988. }).add(rt), rt.stops.push(ct);
  8989. });
  8990. }
  8991. nt = "url(" + m.url + "#" + it + ")", g.setAttribute(X, nt), g.gradient = et, T.toString = function() {
  8992. return nt;
  8993. };
  8994. }
  8995. });
  8996. }, B.prototype.css = function(T) {
  8997. var X = this.styles, g = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], Y = "", V = !X;
  8998. if (T && T.color && (T.fill = T.color), X && o(T, function(G, z) {
  8999. X && X[z] !== G && (g[z] = G, V = !0);
  9000. }), V) {
  9001. if (X && (T = a(X, g)), T) {
  9002. if (T.width === null || T.width === "auto")
  9003. delete this.textWidth;
  9004. else if (m.nodeName.toLowerCase() === "text" && T.width)
  9005. var Q = this.textWidth = A(T.width);
  9006. }
  9007. if (this.styles = T, Q && !d && this.renderer.forExport && delete T.width, m.namespaceURI === this.SVG_NS) {
  9008. var k = function(G, z) {
  9009. return "-" + z.toLowerCase();
  9010. };
  9011. o(T, function(G, z) {
  9012. L.indexOf(z) === -1 && (Y += z.replace(/([A-Z])/g, k) + ":" + G + ";");
  9013. }), Y && N(m, "style", Y);
  9014. } else
  9015. b(m, T);
  9016. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), T && T.textOutline && this.applyTextOutline(T.textOutline));
  9017. }
  9018. return this;
  9019. }, B.prototype.dashstyleSetter = function(T) {
  9020. var X = this["stroke-width"];
  9021. if (X === "inherit" && (X = 1), T = T && T.toLowerCase()) {
  9022. var g = T.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot", "3,1,1,1").replace("shortdot", "1,1,").replace("shortdash", "3,1,").replace("longdash", "8,3,").replace(/dot/g, "1,3,").replace("dash", "4,3,").replace(/,$/, "").split(",");
  9023. for (T = g.length; T--; )
  9024. g[T] = "" + A(g[T]) * n(X, NaN);
  9025. T = g.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", T);
  9026. }
  9027. }, B.prototype.destroy = function() {
  9028. var T = this, X = T.element || {}, g = T.renderer, m = X.ownerSVGElement, L = g.isSVG && X.nodeName === "SPAN" && T.parentGroup || void 0;
  9029. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, W(T), T.clipPath && m) {
  9030. var Y = T.clipPath;
  9031. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function(V) {
  9032. -1 < V.getAttribute("clip-path").indexOf(Y.element.id) && V.removeAttribute("clip-path");
  9033. }), T.clipPath = Y.destroy();
  9034. }
  9035. if (T.stops) {
  9036. for (m = 0; m < T.stops.length; m++)
  9037. T.stops[m].destroy();
  9038. T.stops.length = 0, T.stops = void 0;
  9039. }
  9040. for (T.safeRemoveChild(X), g.styledMode || T.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  9041. X = L.parentGroup, T.safeRemoveChild(L.div), delete L.div, L = X;
  9042. T.alignTo && x(g.alignedObjects, T), o(T, function(V, Q) {
  9043. T[Q] && T[Q].parentGroup === T && T[Q].destroy && T[Q].destroy(), delete T[Q];
  9044. });
  9045. }, B.prototype.destroyShadows = function() {
  9046. (this.shadows || []).forEach(function(T) {
  9047. this.safeRemoveChild(T);
  9048. }, this), this.shadows = void 0;
  9049. }, B.prototype.destroyTextPath = function(T, X) {
  9050. var g = T.getElementsByTagName("text")[0];
  9051. if (g) {
  9052. if (g.removeAttribute("dx"), g.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && g.getElementsByTagName("textPath").length) {
  9053. for (T = this.textPathWrapper.element.childNodes; T.length; )
  9054. g.appendChild(T[0]);
  9055. g.removeChild(this.textPathWrapper.element);
  9056. }
  9057. } else
  9058. (T.getAttribute("dx") || T.getAttribute("dy")) && (T.removeAttribute("dx"), T.removeAttribute("dy"));
  9059. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  9060. }, B.prototype.dSetter = function(T, X, g) {
  9061. p(T) && (typeof T[0] == "string" && (T = this.renderer.pathToSegments(T)), this.pathArray = T, T = T.reduce(function(m, L, Y) {
  9062. return L && L.join ? (Y ? m + " " : "") + L.join(" ") : (L || "").toString();
  9063. }, "")), /(NaN| {2}|^$)/.test(T) && (T = "M 0 0"), this[X] !== T && (g.setAttribute(X, T), this[X] = T);
  9064. }, B.prototype.fadeOut = function(T) {
  9065. var X = this;
  9066. X.animate({ opacity: 0 }, { duration: n(T, 150), complete: function() {
  9067. X.attr({ y: -9999 }).hide();
  9068. } });
  9069. }, B.prototype.fillSetter = function(T, X, g) {
  9070. typeof T == "string" ? g.setAttribute(X, T) : T && this.complexColor(T, X, g);
  9071. }, B.prototype.getBBox = function(T, X) {
  9072. var g = this.renderer, m = this.element, L = this.styles, Y = this.textStr, V = g.cache, Q = g.cacheKeys, k = m.namespaceURI === this.SVG_NS;
  9073. X = n(X, this.rotation, 0);
  9074. var G = g.styledMode ? m && B.prototype.getStyle.call(m, "font-size") : L && L.fontSize, z;
  9075. if (w(Y)) {
  9076. var $ = Y.toString();
  9077. $.indexOf("<") === -1 && ($ = $.replace(/[0-9]/g, "0")), $ += ["", X, G, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  9078. }
  9079. if ($ && !T && (z = V[$]), !z) {
  9080. if (k || g.forExport) {
  9081. try {
  9082. var q = this.fakeTS && function(it) {
  9083. var et = m.querySelector(".highcharts-text-outline");
  9084. et && b(et, { display: it });
  9085. };
  9086. i(q) && q("none"), z = m.getBBox ? a({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  9087. } catch {
  9088. }
  9089. (!z || 0 > z.width) && (z = {
  9090. width: 0,
  9091. height: 0
  9092. });
  9093. } else
  9094. z = this.htmlGetBBox();
  9095. if (g.isSVG && (T = z.width, g = z.height, k && (z.height = g = { "11px,17": 14, "13px,20": 16 }[(G || "") + "," + Math.round(g)] || g), X && (k = X * R, z.width = Math.abs(g * Math.sin(k)) + Math.abs(T * Math.cos(k)), z.height = Math.abs(g * Math.cos(k)) + Math.abs(T * Math.sin(k)))), $ && (Y === "" || 0 < z.height)) {
  9096. for (; 250 < Q.length; )
  9097. delete V[Q.shift()];
  9098. V[$] || Q.push($), V[$] = z;
  9099. }
  9100. }
  9101. return z;
  9102. }, B.prototype.getStyle = function(T) {
  9103. return P.getComputedStyle(this.element || this, "").getPropertyValue(T);
  9104. }, B.prototype.hasClass = function(T) {
  9105. return ("" + this.attr("class")).split(" ").indexOf(T) !== -1;
  9106. }, B.prototype.hide = function(T) {
  9107. return T ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  9108. }, B.prototype.htmlGetBBox = function() {
  9109. return { height: 0, width: 0, x: 0, y: 0 };
  9110. }, B.prototype.init = function(T, X) {
  9111. this.element = X === "span" ? C(X) : S.createElementNS(this.SVG_NS, X), this.renderer = T, c(this, "afterInit");
  9112. }, B.prototype.invert = function(T) {
  9113. return this.inverted = T, this.updateTransform(), this;
  9114. }, B.prototype.on = function(T, X) {
  9115. var g = this.onEvents;
  9116. return g[T] && g[T](), g[T] = O(
  9117. this.element,
  9118. T,
  9119. X
  9120. ), this;
  9121. }, B.prototype.opacitySetter = function(T, X, g) {
  9122. this.opacity = T = Number(Number(T).toFixed(3)), g.setAttribute(X, T);
  9123. }, B.prototype.removeClass = function(T) {
  9124. return this.attr("class", ("" + this.attr("class")).replace(s(T) ? new RegExp("(^| )" + T + "( |$)") : T, " ").replace(/ +/g, " ").trim());
  9125. }, B.prototype.removeTextOutline = function() {
  9126. var T = this.element.querySelector("tspan.highcharts-text-outline");
  9127. T && this.safeRemoveChild(T);
  9128. }, B.prototype.safeRemoveChild = function(T) {
  9129. var X = T.parentNode;
  9130. X && X.removeChild(T);
  9131. }, B.prototype.setRadialReference = function(T) {
  9132. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  9133. return this.element.radialReference = T, X && X.radAttr && X.animate(this.renderer.getRadialAttr(T, X.radAttr)), this;
  9134. }, B.prototype.setTextPath = function(T, X) {
  9135. var g = this.element, m = this.text ? this.text.element : g, L = { textAnchor: "text-anchor" }, Y = !1, V = this.textPathWrapper, Q = !V;
  9136. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  9137. var k = j.filterUserAttributes(X.attributes);
  9138. if (T && X && X.enabled) {
  9139. V && V.element.parentNode === null ? (Q = !0, V = V.destroy()) : V && this.removeTextOutline.call(V.parentGroup), this.options && this.options.padding && (k.dx = -this.options.padding), V || (this.textPathWrapper = V = this.renderer.createElement("textPath"), Y = !0);
  9140. var G = V.element;
  9141. if ((X = T.element.getAttribute("id")) || T.element.setAttribute("id", X = D()), Q)
  9142. for (m.setAttribute("y", 0), l(k.dx) && m.setAttribute("x", -k.dx), T = [].slice.call(m.childNodes), Q = 0; Q < T.length; Q++) {
  9143. var z = T[Q];
  9144. z.nodeType !== P.Node.TEXT_NODE && z.nodeName !== "tspan" || G.appendChild(z);
  9145. }
  9146. Y && V && V.add({ element: m }), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), w(k.dy) && (G.parentNode.setAttribute("dy", k.dy), delete k.dy), w(k.dx) && (G.parentNode.setAttribute("dx", k.dx), delete k.dx), o(k, function($, q) {
  9147. G.setAttribute(L[q] || q, $);
  9148. }), g.removeAttribute("transform"), this.removeTextOutline.call(V), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = v;
  9149. } else
  9150. V && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(g, T), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  9151. return this;
  9152. }, B.prototype.shadow = function(T, X, g) {
  9153. var m = [], L = this.element, Y = this.oldShadowOptions, V = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, k;
  9154. if (T === !0 ? k = V : typeof T == "object" && (k = a(V, T)), k && (k && Y && o(k, function(it, et) {
  9155. it !== Y[et] && (Q = !0);
  9156. }), Q && this.destroyShadows(), this.oldShadowOptions = k), !k)
  9157. this.destroyShadows();
  9158. else if (!this.shadows) {
  9159. var G = k.opacity / k.width, z = this.parentInverted ? "translate(" + k.offsetY + ", " + k.offsetX + ")" : "translate(" + k.offsetX + ", " + k.offsetY + ")";
  9160. for (V = 1; V <= k.width; V++) {
  9161. var $ = L.cloneNode(!1), q = 2 * k.width + 1 - 2 * V;
  9162. N($, { stroke: T.color || "#000000", "stroke-opacity": G * V, "stroke-width": q, transform: z, fill: "none" }), $.setAttribute("class", ($.getAttribute("class") || "") + " highcharts-shadow"), g && (N($, "height", Math.max(N($, "height") - q, 0)), $.cutHeight = q), X ? X.element.appendChild($) : L.parentNode && L.parentNode.insertBefore($, L), m.push($);
  9163. }
  9164. this.shadows = m;
  9165. }
  9166. return this;
  9167. }, B.prototype.show = function(T) {
  9168. return this.attr({ visibility: T ? "inherit" : "visible" });
  9169. }, B.prototype.strokeSetter = function(T, X, g) {
  9170. this[X] = T, this.stroke && this["stroke-width"] ? (B.prototype.fillSetter.call(this, this.stroke, "stroke", g), g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : X === "stroke-width" && T === 0 && this.hasStroke ? (g.removeAttribute("stroke"), this.hasStroke = !1) : this.renderer.styledMode && this["stroke-width"] && (g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0);
  9171. }, B.prototype.strokeWidth = function() {
  9172. if (!this.renderer.styledMode)
  9173. return this["stroke-width"] || 0;
  9174. var T = this.getStyle("stroke-width"), X = 0;
  9175. if (T.indexOf("px") === T.length - 2)
  9176. X = A(T);
  9177. else if (T !== "") {
  9178. var g = S.createElementNS(u, "rect");
  9179. N(g, { width: T, "stroke-width": 0 }), this.element.parentNode.appendChild(g), X = g.getBBox().width, g.parentNode.removeChild(g);
  9180. }
  9181. return X;
  9182. }, B.prototype.symbolAttr = function(T) {
  9183. var X = this;
  9184. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g) {
  9185. X[g] = n(T[g], X[g]);
  9186. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  9187. }, B.prototype.textSetter = function(T) {
  9188. T !== this.textStr && (delete this.textPxLength, this.textStr = T, this.added && this.renderer.buildText(this));
  9189. }, B.prototype.titleSetter = function(T) {
  9190. var X = this.element, g = X.getElementsByTagName("title")[0] || S.createElementNS(this.SVG_NS, "title");
  9191. X.insertBefore ? X.insertBefore(g, X.firstChild) : X.appendChild(g), g.textContent = String(n(T, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  9192. /&gt;/g,
  9193. ">"
  9194. );
  9195. }, B.prototype.toFront = function() {
  9196. var T = this.element;
  9197. return T.parentNode.appendChild(T), this;
  9198. }, B.prototype.translate = function(T, X) {
  9199. return this.attr({ translateX: T, translateY: X });
  9200. }, B.prototype.updateShadows = function(T, X, g) {
  9201. var m = this.shadows;
  9202. if (m)
  9203. for (var L = m.length; L--; )
  9204. g.call(m[L], T === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : T === "d" ? this.d : X, T, m[L]);
  9205. }, B.prototype.updateTransform = function() {
  9206. var T = this.scaleX, X = this.scaleY, g = this.inverted, m = this.rotation, L = this.matrix, Y = this.element, V = this.translateX || 0, Q = this.translateY || 0;
  9207. g && (V += this.width, Q += this.height), V = ["translate(" + V + "," + Q + ")"], w(L) && V.push("matrix(" + L.join(",") + ")"), g ? V.push("rotate(90) scale(-1,1)") : m && V.push("rotate(" + m + " " + n(this.rotationOriginX, Y.getAttribute("x"), 0) + " " + n(this.rotationOriginY, Y.getAttribute("y") || 0) + ")"), (w(T) || w(X)) && V.push("scale(" + n(T, 1) + " " + n(X, 1) + ")"), V.length && Y.setAttribute("transform", V.join(" "));
  9208. }, B.prototype.visibilitySetter = function(T, X, g) {
  9209. T === "inherit" ? g.removeAttribute(X) : this[X] !== T && g.setAttribute(
  9210. X,
  9211. T
  9212. ), this[X] = T;
  9213. }, B.prototype.xGetter = function(T) {
  9214. return this.element.nodeName === "circle" && (T === "x" ? T = "cx" : T === "y" && (T = "cy")), this._defaultGetter(T);
  9215. }, B.prototype.zIndexSetter = function(T, X) {
  9216. var g = this.renderer, m = this.parentGroup, L = (m || g).element || g.box, Y = this.element;
  9217. g = L === g.box;
  9218. var V = !1, Q = this.added, k;
  9219. if (w(T) ? (Y.setAttribute("data-z-index", T), T = +T, this[X] === T && (Q = !1)) : w(this[X]) && Y.removeAttribute("data-z-index"), this[X] = T, Q) {
  9220. for ((T = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, k = X.length - 1; 0 <= k && !V; k--) {
  9221. m = X[k], Q = m.getAttribute("data-z-index");
  9222. var G = !w(Q);
  9223. m !== Y && (0 > T && G && !g && !k ? (L.insertBefore(Y, X[k]), V = !0) : (A(Q) <= T || G && (!w(T) || 0 <= T)) && (L.insertBefore(Y, X[k + 1] || null), V = !0));
  9224. }
  9225. V || (L.insertBefore(Y, X[g ? 3 : 0] || null), V = !0);
  9226. }
  9227. return V;
  9228. }, B;
  9229. }(), y.prototype["stroke-widthSetter"] = y.prototype.strokeSetter, y.prototype.yGetter = y.prototype.xGetter, y.prototype.matrixSetter = y.prototype.rotationOriginXSetter = y.prototype.rotationOriginYSetter = y.prototype.rotationSetter = y.prototype.scaleXSetter = y.prototype.scaleYSetter = y.prototype.translateXSetter = y.prototype.translateYSetter = y.prototype.verticalAlignSetter = function(B, T) {
  9230. this[T] = B, this.doTransform = !0;
  9231. }, y;
  9232. }), E(h, "Core/Renderer/RendererRegistry.js", [h["Core/Globals.js"]], function(y) {
  9233. var j;
  9234. return function(I) {
  9235. I.rendererTypes = {};
  9236. var Z;
  9237. I.getRendererType = function(F) {
  9238. return F === void 0 && (F = Z), I.rendererTypes[F] || I.rendererTypes[Z];
  9239. }, I.registerRendererType = function(F, U, H) {
  9240. I.rendererTypes[F] = U, (!Z || H) && (Z = F, y.Renderer = U);
  9241. };
  9242. }(j || (j = {})), j;
  9243. }), E(
  9244. h,
  9245. "Core/Renderer/SVG/SVGLabel.js",
  9246. [h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]],
  9247. function(y, j) {
  9248. var I = this && this.__extends || function() {
  9249. var S = function(v, d) {
  9250. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, P) {
  9251. u.__proto__ = P;
  9252. } || function(u, P) {
  9253. for (var O in P)
  9254. P.hasOwnProperty(O) && (u[O] = P[O]);
  9255. }, S(v, d);
  9256. };
  9257. return function(v, d) {
  9258. function u() {
  9259. this.constructor = v;
  9260. }
  9261. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  9262. };
  9263. }(), Z = j.defined, F = j.extend, U = j.isNumber, H = j.merge, W = j.pick, R = j.removeEvent;
  9264. return function(S) {
  9265. function v(d, u, P, O, N, C, b, w, x, a) {
  9266. var c = S.call(this) || this;
  9267. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(d, "g"), c.textStr = u, c.x = P, c.y = O, c.anchorX = C, c.anchorY = b, c.baseline = x, c.className = a, c.addClass(a === "button" ? "highcharts-no-tooltip" : "highcharts-label"), a && c.addClass("highcharts-" + a), c.text = d.text(void 0, 0, 0, w).attr({ zIndex: 1 });
  9268. var p;
  9269. return typeof N == "string" && ((p = /^url\((.*?)\)$/.test(N)) || c.renderer.symbols[N]) && (c.symbolKey = N), c.bBox = v.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = d.styledMode || p, c.deferredAttr = {}, c.alignFactor = 0, c;
  9270. }
  9271. return I(v, S), v.prototype.alignSetter = function(d) {
  9272. d = { left: 0, center: 0.5, right: 1 }[d], d !== this.alignFactor && (this.alignFactor = d, this.bBox && U(this.xSetting) && this.attr({ x: this.xSetting }));
  9273. }, v.prototype.anchorXSetter = function(d, u) {
  9274. this.anchorX = d, this.boxAttr(u, Math.round(d) - this.getCrispAdjust() - this.xSetting);
  9275. }, v.prototype.anchorYSetter = function(d, u) {
  9276. this.anchorY = d, this.boxAttr(u, d - this.ySetting);
  9277. }, v.prototype.boxAttr = function(d, u) {
  9278. this.box ? this.box.attr(d, u) : this.deferredAttr[d] = u;
  9279. }, v.prototype.css = function(d) {
  9280. if (d) {
  9281. var u = {};
  9282. d = H(d), v.textProps.forEach(function(O) {
  9283. typeof d[O] < "u" && (u[O] = d[O], delete d[O]);
  9284. }), this.text.css(u);
  9285. var P = "width" in u;
  9286. "fontSize" in u || "fontWeight" in u ? this.updateTextPadding() : P && this.updateBoxSize();
  9287. }
  9288. return y.prototype.css.call(this, d);
  9289. }, v.prototype.destroy = function() {
  9290. R(this.element, "mouseenter"), R(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  9291. }, v.prototype.fillSetter = function(d, u) {
  9292. d && (this.needsBox = !0), this.fill = d, this.boxAttr(u, d);
  9293. }, v.prototype.getBBox = function() {
  9294. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  9295. var d = this.padding, u = W(this.paddingLeft, d);
  9296. return { width: this.width, height: this.height, x: this.bBox.x - u, y: this.bBox.y - d };
  9297. }, v.prototype.getCrispAdjust = function() {
  9298. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  9299. this["stroke-width"],
  9300. 10
  9301. ) : 0) % 2 / 2;
  9302. }, v.prototype.heightSetter = function(d) {
  9303. this.heightSetting = d;
  9304. }, v.prototype.onAdd = function() {
  9305. var d = this.textStr;
  9306. this.text.add(this), this.attr({ text: Z(d) ? d : "", x: this.x, y: this.y }), this.box && Z(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  9307. }, v.prototype.paddingSetter = function(d, u) {
  9308. U(d) ? d !== this[u] && (this[u] = d, this.updateTextPadding()) : this[u] = void 0;
  9309. }, v.prototype.rSetter = function(d, u) {
  9310. this.boxAttr(u, d);
  9311. }, v.prototype.shadow = function(d) {
  9312. return d && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(d)), this;
  9313. }, v.prototype.strokeSetter = function(d, u) {
  9314. this.stroke = d, this.boxAttr(u, d);
  9315. }, v.prototype["stroke-widthSetter"] = function(d, u) {
  9316. d && (this.needsBox = !0), this["stroke-width"] = d, this.boxAttr(u, d);
  9317. }, v.prototype["text-alignSetter"] = function(d) {
  9318. this.textAlign = d;
  9319. }, v.prototype.textSetter = function(d) {
  9320. typeof d < "u" && this.text.attr({ text: d }), this.updateTextPadding();
  9321. }, v.prototype.updateBoxSize = function() {
  9322. var d = this.text.element.style, u = {}, P = this.padding, O = this.bBox = U(this.widthSetting) && U(this.heightSetting) && !this.textAlign || !Z(this.text.textStr) ? v.emptyBBox : this.text.getBBox();
  9323. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * P, d = this.renderer.fontMetrics(d && d.fontSize, this.text), this.baselineOffset = P + Math.min((this.text.firstLineMetrics || d).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - d.h) / 2), this.needsBox && (this.box || (P = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), P.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), P.add(this)), P = this.getCrispAdjust(), u.x = P, u.y = (this.baseline ? -this.baselineOffset : 0) + P, u.width = Math.round(this.width), u.height = Math.round(this.height), this.box.attr(F(u, this.deferredAttr)), this.deferredAttr = {});
  9324. }, v.prototype.updateTextPadding = function() {
  9325. var d = this.text;
  9326. this.updateBoxSize();
  9327. var u = this.baseline ? 0 : this.baselineOffset, P = W(this.paddingLeft, this.padding);
  9328. Z(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (P += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (P !== d.x || u !== d.y) && (d.attr("x", P), d.hasBoxWidthChanged && (this.bBox = d.getBBox(!0)), typeof u < "u" && d.attr("y", u)), d.x = P, d.y = u;
  9329. }, v.prototype.widthSetter = function(d) {
  9330. this.widthSetting = U(d) ? d : void 0;
  9331. }, v.prototype.getPaddedWidth = function() {
  9332. var d = this.padding, u = W(this.paddingLeft, d);
  9333. return d = W(this.paddingRight, d), (this.widthSetting || this.bBox.width || 0) + u + d;
  9334. }, v.prototype.xSetter = function(d) {
  9335. this.x = d, this.alignFactor && (d -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(d), this.attr("translateX", this.xSetting);
  9336. }, v.prototype.ySetter = function(d) {
  9337. this.ySetting = this.y = Math.round(d), this.attr("translateY", this.ySetting);
  9338. }, v.emptyBBox = { width: 0, height: 0, x: 0, y: 0 }, v.textProps = "color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "), v;
  9339. }(y);
  9340. }
  9341. ), E(
  9342. h,
  9343. "Core/Renderer/SVG/Symbols.js",
  9344. [h["Core/Utilities.js"]],
  9345. function(y) {
  9346. function j(W, R, S, v, d) {
  9347. var u = [];
  9348. if (d) {
  9349. var P = d.start || 0, O = H(d.r, S);
  9350. S = H(d.r, v || S);
  9351. var N = (d.end || 0) - 1e-3;
  9352. v = d.innerR;
  9353. var C = H(d.open, 1e-3 > Math.abs((d.end || 0) - P - 2 * Math.PI)), b = Math.cos(P), w = Math.sin(P), x = Math.cos(N), a = Math.sin(N);
  9354. P = H(d.longArc, 1e-3 > N - P - Math.PI ? 0 : 1), u.push(["M", W + O * b, R + S * w], ["A", O, S, 0, P, H(d.clockwise, 1), W + O * x, R + S * a]), F(v) && u.push(C ? ["M", W + v * x, R + v * a] : ["L", W + v * x, R + v * a], ["A", v, v, 0, P, F(d.clockwise) ? 1 - d.clockwise : 0, W + v * b, R + v * w]), C || u.push(["Z"]);
  9355. }
  9356. return u;
  9357. }
  9358. function I(W, R, S, v, d) {
  9359. return d && d.r ? Z(W, R, S, v, d) : [["M", W, R], ["L", W + S, R], ["L", W + S, R + v], ["L", W, R + v], ["Z"]];
  9360. }
  9361. function Z(W, R, S, v, d) {
  9362. return d = d && d.r || 0, [["M", W + d, R], ["L", W + S - d, R], ["C", W + S, R, W + S, R, W + S, R + d], ["L", W + S, R + v - d], ["C", W + S, R + v, W + S, R + v, W + S - d, R + v], ["L", W + d, R + v], ["C", W, R + v, W, R + v, W, R + v - d], ["L", W, R + d], ["C", W, R, W, R, W + d, R]];
  9363. }
  9364. var F = y.defined, U = y.isNumber, H = y.pick;
  9365. return { arc: j, callout: function(W, R, S, v, d) {
  9366. var u = Math.min(d && d.r || 0, S, v), P = u + 6, O = d && d.anchorX;
  9367. d = d && d.anchorY || 0;
  9368. var N = Z(W, R, S, v, { r: u });
  9369. return U(O) && (W + O >= S ? d > R + P && d < R + v - P ? N.splice(3, 1, ["L", W + S, d - 6], ["L", W + S + 6, d], ["L", W + S, d + 6], ["L", W + S, R + v - u]) : N.splice(3, 1, ["L", W + S, v / 2], ["L", O, d], ["L", W + S, v / 2], ["L", W + S, R + v - u]) : 0 >= W + O ? d > R + P && d < R + v - P ? N.splice(7, 1, ["L", W, d + 6], ["L", W - 6, d], ["L", W, d - 6], ["L", W, R + u]) : N.splice(7, 1, ["L", W, v / 2], ["L", O, d], ["L", W, v / 2], ["L", W, R + u]) : d && d > v && O > W + P && O < W + S - P ? N.splice(5, 1, ["L", O + 6, R + v], ["L", O, R + v + 6], ["L", O - 6, R + v], ["L", W + u, R + v]) : d && 0 > d && O > W + P && O < W + S - P && N.splice(1, 1, ["L", O - 6, R], ["L", O, R - 6], ["L", O + 6, R], ["L", S - u, R])), N;
  9370. }, circle: function(W, R, S, v) {
  9371. return j(W + S / 2, R + v / 2, S / 2, v / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  9372. }, diamond: function(W, R, S, v) {
  9373. return [["M", W + S / 2, R], ["L", W + S, R + v / 2], ["L", W + S / 2, R + v], ["L", W, R + v / 2], ["Z"]];
  9374. }, rect: I, roundedRect: Z, square: I, triangle: function(W, R, S, v) {
  9375. return [["M", W + S / 2, R], ["L", W + S, R + v], ["L", W, R + v], ["Z"]];
  9376. }, "triangle-down": function(W, R, S, v) {
  9377. return [["M", W, R], ["L", W + S, R], ["L", W + S / 2, R + v], ["Z"]];
  9378. } };
  9379. }
  9380. ), E(h, "Core/Renderer/SVG/TextBuilder.js", [h["Core/Renderer/HTML/AST.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, j, I) {
  9381. var Z = j.doc, F = j.SVG_NS, U = j.win, H = I.attr, W = I.isString, R = I.objectEach, S = I.pick;
  9382. return function() {
  9383. function v(d) {
  9384. var u = d.styles;
  9385. this.renderer = d.renderer, this.svgElement = d, this.width = d.textWidth, this.textLineHeight = u && u.lineHeight, this.textOutline = u && u.textOutline, this.ellipsis = !(!u || u.textOverflow !== "ellipsis"), this.noWrap = !(!u || u.whiteSpace !== "nowrap"), this.fontSize = u && u.fontSize;
  9386. }
  9387. return v.prototype.buildSVG = function() {
  9388. var d = this.svgElement, u = d.element, P = d.renderer, O = S(d.textStr, "").toString(), N = O.indexOf("<") !== -1, C = u.childNodes;
  9389. P = this.width && !d.added && P.box;
  9390. var b = /<br.*?>/g, w = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  9391. if (w !== d.textCache) {
  9392. for (d.textCache = w, delete d.actualWidth, w = C.length; w--; )
  9393. u.removeChild(C[w]);
  9394. N || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || b.test(O)) ? O !== "" && (P && P.appendChild(u), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(d.element), this.modifyDOM(), this.ellipsis && (u.textContent || "").indexOf("…") !== -1 && d.attr(
  9395. "title",
  9396. this.unescapeEntities(d.textStr || "", ["&lt;", "&gt;"])
  9397. ), P && P.removeChild(u)) : u.appendChild(Z.createTextNode(this.unescapeEntities(O))), W(this.textOutline) && d.applyTextOutline && d.applyTextOutline(this.textOutline);
  9398. }
  9399. }, v.prototype.modifyDOM = function() {
  9400. var d = this, u = this.svgElement, P = H(u.element, "x");
  9401. u.firstLineMetrics = void 0;
  9402. for (var O; (O = u.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  9403. u.element.removeChild(O);
  9404. [].forEach.call(u.element.querySelectorAll("tspan.highcharts-br"), function(w, x) {
  9405. w.nextSibling && w.previousSibling && (x === 0 && w.previousSibling.nodeType === 1 && (u.firstLineMetrics = u.renderer.fontMetrics(void 0, w.previousSibling)), H(w, { dy: d.getLineHeight(w.nextSibling), x: P }));
  9406. });
  9407. var N = this.width || 0;
  9408. if (N) {
  9409. var C = function(w, x) {
  9410. var a = w.textContent || "", c = a.replace(/([^\^])-/g, "$1- ").split(" "), p = !d.noWrap && (1 < c.length || 1 < u.element.childNodes.length), i = d.getLineHeight(x), l = 0, s = u.actualWidth;
  9411. if (d.ellipsis)
  9412. a && d.truncate(w, a, void 0, 0, Math.max(0, N - parseInt(d.fontSize || 12, 10)), function(t, o) {
  9413. return t.substring(
  9414. 0,
  9415. o
  9416. ) + "…";
  9417. });
  9418. else if (p) {
  9419. for (a = [], p = []; x.firstChild && x.firstChild !== w; )
  9420. p.push(x.firstChild), x.removeChild(x.firstChild);
  9421. for (; c.length; )
  9422. c.length && !d.noWrap && 0 < l && (a.push(w.textContent || ""), w.textContent = c.join(" ").replace(/- /g, "-")), d.truncate(w, void 0, c, l === 0 && s || 0, N, function(t, o) {
  9423. return c.slice(0, o).join(" ").replace(/- /g, "-");
  9424. }), s = u.actualWidth, l++;
  9425. p.forEach(function(t) {
  9426. x.insertBefore(t, w);
  9427. }), a.forEach(function(t) {
  9428. x.insertBefore(Z.createTextNode(t), w), t = Z.createElementNS(F, "tspan"), t.textContent = "​", H(t, { dy: i, x: P }), x.insertBefore(t, w);
  9429. });
  9430. }
  9431. }, b = function(w) {
  9432. [].slice.call(w.childNodes).forEach(function(x) {
  9433. x.nodeType === U.Node.TEXT_NODE ? C(x, w) : (x.className.baseVal.indexOf("highcharts-br") !== -1 && (u.actualWidth = 0), b(x));
  9434. });
  9435. };
  9436. b(u.element);
  9437. }
  9438. }, v.prototype.getLineHeight = function(d) {
  9439. var u;
  9440. return d = d.nodeType === U.Node.TEXT_NODE ? d.parentElement : d, this.renderer.styledMode || (u = d && /(px|em)$/.test(d.style.fontSize) ? d.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  9441. this.textLineHeight.toString(),
  9442. 10
  9443. ) : this.renderer.fontMetrics(u, d || this.svgElement.element).h;
  9444. }, v.prototype.modifyTree = function(d) {
  9445. var u = this, P = function(O, N) {
  9446. var C = O.attributes;
  9447. C = C === void 0 ? {} : C;
  9448. var b = O.children, w = O.tagName, x = u.renderer.styledMode;
  9449. w === "b" || w === "strong" ? x ? C.class = "highcharts-strong" : C.style = "font-weight:bold;" + (C.style || "") : (w === "i" || w === "em") && (x ? C.class = "highcharts-emphasized" : C.style = "font-style:italic;" + (C.style || "")), W(C.style) && (C.style = C.style.replace(/(;| |^)color([ :])/, "$1fill$2")), w === "br" ? (C.class = "highcharts-br", O.textContent = "​", (N = d[N + 1]) && N.textContent && (N.textContent = N.textContent.replace(/^ +/gm, ""))) : w === "a" && b && b.some(function(a) {
  9450. return a.tagName === "#text";
  9451. }) && (O.children = [{ children: b, tagName: "tspan" }]), w !== "#text" && w !== "a" && (O.tagName = "tspan"), O.attributes = C, b && b.filter(function(a) {
  9452. return a.tagName !== "#text";
  9453. }).forEach(P);
  9454. };
  9455. d.forEach(P);
  9456. }, v.prototype.truncate = function(d, u, P, O, N, C) {
  9457. var b = this.svgElement, w = b.renderer, x = b.rotation, a = [], c = P ? 1 : 0, p = (u || P || "").length, i = p, l, s = function(o, n) {
  9458. n = n || o;
  9459. var A = d.parentNode;
  9460. if (A && typeof a[n] > "u")
  9461. if (A.getSubStringLength)
  9462. try {
  9463. a[n] = O + A.getSubStringLength(0, P ? n + 1 : n);
  9464. } catch {
  9465. }
  9466. else
  9467. w.getSpanWidth && (d.textContent = C(u || P, o), a[n] = O + w.getSpanWidth(b, d));
  9468. return a[n];
  9469. };
  9470. b.rotation = 0;
  9471. var t = s(d.textContent.length);
  9472. if (O + t > N) {
  9473. for (; c <= p; )
  9474. i = Math.ceil((c + p) / 2), P && (l = C(P, i)), t = s(i, l && l.length - 1), c === p ? c = p + 1 : t > N ? p = i - 1 : c = i;
  9475. p === 0 ? d.textContent = "" : u && p === u.length - 1 || (d.textContent = l || C(u || P, i));
  9476. }
  9477. P && P.splice(0, i), b.actualWidth = t, b.rotation = x;
  9478. }, v.prototype.unescapeEntities = function(d, u) {
  9479. return R(this.renderer.escapes, function(P, O) {
  9480. u && u.indexOf(P) !== -1 || (d = d.toString().replace(new RegExp(P, "g"), O));
  9481. }), d;
  9482. }, v;
  9483. }();
  9484. }), E(h, "Core/Renderer/SVG/SVGRenderer.js", [h["Core/Renderer/HTML/AST.js"], h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Renderer/RendererRegistry.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Renderer/SVG/SVGLabel.js"], h["Core/Renderer/SVG/Symbols.js"], h["Core/Renderer/SVG/TextBuilder.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U, H, W, R) {
  9485. var S = I.charts, v = I.deg2rad, d = I.doc, u = I.isFirefox, P = I.isMS, O = I.isWebKit, N = I.noop, C = I.SVG_NS, b = I.symbolSizes, w = I.win, x = R.addEvent, a = R.attr, c = R.createElement, p = R.css, i = R.defined, l = R.destroyObjectProperties, s = R.extend, t = R.isArray, o = R.isNumber, n = R.isObject, A = R.isString, _ = R.merge, D = R.pick, B = R.pInt, T = R.uniqueKey, X;
  9486. return I = function() {
  9487. function g(m, L, Y, V, Q, k, G) {
  9488. this.width = this.url = this.style = this.isSVG = this.imgCount = this.height = this.gradients = this.globalAnimation = this.defs = this.chartIndex = this.cacheKeys = this.cache = this.boxWrapper = this.box = this.alignedObjects = void 0, this.init(m, L, Y, V, Q, k, G);
  9489. }
  9490. return g.prototype.init = function(m, L, Y, V, Q, k, G) {
  9491. var z = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), $ = z.element;
  9492. G || z.css(this.getStyle(V)), m.appendChild($), a(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && a($, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = $, this.boxWrapper = z, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 9.3.3")), this.defs = this.createElement("defs").add(), this.allowHTML = k, this.forExport = Q, this.styledMode = G, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.setSize(L, Y, !1);
  9493. var q;
  9494. u && m.getBoundingClientRect && (L = function() {
  9495. p(m, { left: 0, top: 0 }), q = m.getBoundingClientRect(), p(m, { left: Math.ceil(q.left) - q.left + "px", top: Math.ceil(q.top) - q.top + "px" });
  9496. }, L(), this.unSubPixelFix = x(w, "resize", L));
  9497. }, g.prototype.definition = function(m) {
  9498. return new y([m]).addToDOM(this.defs.element);
  9499. }, g.prototype.getReferenceURL = function() {
  9500. if ((u || O) && d.getElementsByTagName("base").length) {
  9501. if (!i(X)) {
  9502. var m = T();
  9503. m = new y([{ tagName: "svg", attributes: { width: 8, height: 8 }, children: [{ tagName: "defs", children: [{ tagName: "clipPath", attributes: { id: m }, children: [{ tagName: "rect", attributes: { width: 4, height: 4 } }] }] }, { tagName: "rect", attributes: { id: "hitme", width: 8, height: 8, "clip-path": "url(#" + m + ")", fill: "rgba(0,0,0,0.001)" } }] }]).addToDOM(d.body), p(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  9504. var L = d.elementFromPoint(6, 6);
  9505. X = (L && L.id) === "hitme", d.body.removeChild(m);
  9506. }
  9507. if (X)
  9508. return w.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  9509. }
  9510. return "";
  9511. }, g.prototype.getStyle = function(m) {
  9512. return this.style = s({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  9513. }, g.prototype.setStyle = function(m) {
  9514. this.boxWrapper.css(this.getStyle(m));
  9515. }, g.prototype.isHidden = function() {
  9516. return !this.boxWrapper.getBBox().width;
  9517. }, g.prototype.destroy = function() {
  9518. var m = this.defs;
  9519. return this.box = null, this.boxWrapper = this.boxWrapper.destroy(), l(this.gradients || {}), this.gradients = null, m && (this.defs = m.destroy()), this.unSubPixelFix && this.unSubPixelFix(), this.alignedObjects = null;
  9520. }, g.prototype.createElement = function(m) {
  9521. var L = new this.Element();
  9522. return L.init(this, m), L;
  9523. }, g.prototype.getRadialAttr = function(m, L) {
  9524. return { cx: m[0] - m[2] / 2 + (L.cx || 0) * m[2], cy: m[1] - m[2] / 2 + (L.cy || 0) * m[2], r: (L.r || 0) * m[2] };
  9525. }, g.prototype.buildText = function(m) {
  9526. new W(m).buildSVG();
  9527. }, g.prototype.getContrast = function(m) {
  9528. return m = j.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  9529. }, g.prototype.button = function(m, L, Y, V, Q, k, G, z, $, q) {
  9530. var it = this.label(m, L, Y, $, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? _(Q) : {};
  9531. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(_({ padding: 8, r: 2 }, rt)), !et) {
  9532. rt = _({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  9533. var ct = rt.style;
  9534. delete rt.style, k = _(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(k || {}));
  9535. var gt = k.style;
  9536. delete k.style, G = _(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(G || {}));
  9537. var dt = G.style;
  9538. delete G.style, z = _(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(z || {}));
  9539. var lt = z.style;
  9540. delete z.style;
  9541. }
  9542. return x(it.element, P ? "mouseover" : "mouseenter", function() {
  9543. nt !== 3 && it.setState(1);
  9544. }), x(it.element, P ? "mouseout" : "mouseleave", function() {
  9545. nt !== 3 && it.setState(nt);
  9546. }), it.setState = function(at) {
  9547. at !== 1 && (it.state = nt = at), it.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-" + ["normal", "hover", "pressed", "disabled"][at || 0]), et || it.attr([rt, k, G, z][at || 0]).css([ct, gt, dt, lt][at || 0]);
  9548. }, et || it.attr(rt).css(s({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  9549. return at.stopPropagation();
  9550. }).on("click", function(at) {
  9551. nt !== 3 && V.call(it, at);
  9552. });
  9553. }, g.prototype.crispLine = function(m, L, Y) {
  9554. Y === void 0 && (Y = "round");
  9555. var V = m[0], Q = m[1];
  9556. return i(V[1]) && V[1] === Q[1] && (V[1] = Q[1] = Math[Y](V[1]) - L % 2 / 2), i(V[2]) && V[2] === Q[2] && (V[2] = Q[2] = Math[Y](V[2]) + L % 2 / 2), m;
  9557. }, g.prototype.path = function(m) {
  9558. var L = this.styledMode ? {} : { fill: "none" };
  9559. return t(m) ? L.d = m : n(m) && s(L, m), this.createElement("path").attr(L);
  9560. }, g.prototype.circle = function(m, L, Y) {
  9561. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: Y }, L = this.createElement("circle"), L.xSetter = L.ySetter = function(V, Q, k) {
  9562. k.setAttribute("c" + Q, V);
  9563. }, L.attr(m);
  9564. }, g.prototype.arc = function(m, L, Y, V, Q, k) {
  9565. return n(m) ? (V = m, L = V.y, Y = V.r, m = V.x) : V = { innerR: V, start: Q, end: k }, m = this.symbol("arc", m, L, Y, Y, V), m.r = Y, m;
  9566. }, g.prototype.rect = function(m, L, Y, V, Q, k) {
  9567. Q = n(m) ? m.r : Q;
  9568. var G = this.createElement("rect");
  9569. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(Y, 0), height: Math.max(V, 0) }, this.styledMode || (typeof k < "u" && (m["stroke-width"] = k, m = G.crisp(m)), m.fill = "none"), Q && (m.r = Q), G.rSetter = function(z, $, q) {
  9570. G.r = z, a(q, { rx: z, ry: z });
  9571. }, G.rGetter = function() {
  9572. return G.r || 0;
  9573. }, G.attr(m);
  9574. }, g.prototype.setSize = function(m, L, Y) {
  9575. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  9576. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  9577. }, duration: D(
  9578. Y,
  9579. !0
  9580. ) ? void 0 : 0 }), this.alignElements();
  9581. }, g.prototype.g = function(m) {
  9582. var L = this.createElement("g");
  9583. return m ? L.attr({ class: "highcharts-" + m }) : L;
  9584. }, g.prototype.image = function(m, L, Y, V, Q, k) {
  9585. var G = { preserveAspectRatio: "none" }, z = function(q, it) {
  9586. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  9587. };
  9588. o(L) && (G.x = L), o(Y) && (G.y = Y), o(V) && (G.width = V), o(Q) && (G.height = Q);
  9589. var $ = this.createElement("image").attr(G);
  9590. return L = function(q) {
  9591. z($.element, m), k.call($, q);
  9592. }, k ? (z(
  9593. $.element,
  9594. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  9595. ), Y = new w.Image(), x(Y, "load", L), Y.src = m, Y.complete && L({})) : z($.element, m), $;
  9596. }, g.prototype.symbol = function(m, L, Y, V, Q, k) {
  9597. var G = this, z = /^url\((.*?)\)$/, $ = z.test(m), q = !$ && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  9598. if (it) {
  9599. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(Y || 0), V || 0, Q || 0, k));
  9600. var nt = this.path(et);
  9601. G.styledMode || nt.attr("fill", "none"), s(nt, { symbolName: q || void 0, x: L, y: Y, width: V, height: Q }), k && s(nt, k);
  9602. } else if ($) {
  9603. var rt = m.match(z)[1], ct = nt = this.image(rt);
  9604. ct.imgwidth = D(b[rt] && b[rt].width, k && k.width), ct.imgheight = D(b[rt] && b[rt].height, k && k.height);
  9605. var gt = function(dt) {
  9606. return dt.attr({ width: dt.width, height: dt.height });
  9607. };
  9608. ["width", "height"].forEach(function(dt) {
  9609. ct[dt + "Setter"] = function(lt, at) {
  9610. var J = this["img" + at];
  9611. this[at] = lt, i(J) && (k && k.backgroundSize === "within" && this.width && this.height && (J = Math.round(J * Math.min(this.width / this.imgwidth, this.height / this.imgheight))), this.element && this.element.setAttribute(at, J), this.alignByTranslate || (lt = ((this[at] || 0) - J) / 2, this.attr(at === "width" ? { translateX: lt } : { translateY: lt })));
  9612. };
  9613. }), i(L) && ct.attr({ x: L, y: Y }), ct.isImg = !0, i(ct.imgwidth) && i(ct.imgheight) ? gt(ct) : (ct.attr({ width: 0, height: 0 }), c("img", { onload: function() {
  9614. var dt = S[G.chartIndex];
  9615. this.width === 0 && (p(this, { position: "absolute", top: "-999em" }), d.body.appendChild(this)), b[rt] = { width: this.width, height: this.height }, ct.imgwidth = this.width, ct.imgheight = this.height, ct.element && gt(ct), this.parentNode && this.parentNode.removeChild(this), G.imgCount--, !G.imgCount && dt && !dt.hasLoaded && dt.onload();
  9616. }, src: rt }), this.imgCount++);
  9617. }
  9618. return nt;
  9619. }, g.prototype.clipRect = function(m, L, Y, V) {
  9620. var Q = T() + "-", k = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  9621. return m = this.rect(m, L, Y, V, 0).add(k), m.id = Q, m.clipPath = k, m.count = 0, m;
  9622. }, g.prototype.text = function(m, L, Y, V) {
  9623. var Q = {};
  9624. return V && (this.allowHTML || !this.forExport) ? this.html(m, L, Y) : (Q.x = Math.round(L || 0), Y && (Q.y = Math.round(Y)), i(m) && (Q.text = m), m = this.createElement("text").attr(Q), (!V || this.forExport && !this.allowHTML) && (m.xSetter = function(k, G, z) {
  9625. for (var $ = z.getElementsByTagName("tspan"), q = z.getAttribute(G), it = 0, et; it < $.length; it++)
  9626. et = $[it], et.getAttribute(G) === q && et.setAttribute(G, k);
  9627. z.setAttribute(G, k);
  9628. }), m);
  9629. }, g.prototype.fontMetrics = function(m, L) {
  9630. return m = !this.styledMode && /px/.test(m) || !w.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && F.prototype.getStyle.call(L, "font-size"), m = /px/.test(m) ? B(m) : 12, L = 24 > m ? m + 3 : Math.round(1.2 * m), { h: L, b: Math.round(0.8 * L), f: m };
  9631. }, g.prototype.rotCorr = function(m, L, Y) {
  9632. var V = m;
  9633. return L && Y && (V = Math.max(V * Math.cos(L * v), 4)), { x: -m / 3 * Math.sin(L * v), y: V };
  9634. }, g.prototype.pathToSegments = function(m) {
  9635. for (var L = [], Y = [], V = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  9636. A(Y[0]) && o(m[Q]) && Y.length === V[Y[0].toUpperCase()] && m.splice(Q, 0, Y[0].replace("M", "L").replace("m", "l")), typeof m[Q] == "string" && (Y.length && L.push(Y.slice(0)), Y.length = 0), Y.push(m[Q]);
  9637. return L.push(Y.slice(0)), L;
  9638. }, g.prototype.label = function(m, L, Y, V, Q, k, G, z, $) {
  9639. return new U(this, m, L, Y, V, Q, k, G, z, $);
  9640. }, g.prototype.alignElements = function() {
  9641. this.alignedObjects.forEach(function(m) {
  9642. return m.align();
  9643. });
  9644. }, g;
  9645. }(), s(I.prototype, { Element: F, SVG_NS: C, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: H, draw: N }), Z.registerRendererType("svg", I, !0), I;
  9646. }), E(h, "Core/Renderer/HTML/HTMLElement.js", [h["Core/Globals.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]], function(y, j, I) {
  9647. var Z = this && this.__extends || function() {
  9648. var P = function(O, N) {
  9649. return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  9650. C.__proto__ = b;
  9651. } || function(C, b) {
  9652. for (var w in b)
  9653. b.hasOwnProperty(w) && (C[w] = b[w]);
  9654. }, P(O, N);
  9655. };
  9656. return function(O, N) {
  9657. function C() {
  9658. this.constructor = O;
  9659. }
  9660. P(O, N), O.prototype = N === null ? Object.create(N) : (C.prototype = N.prototype, new C());
  9661. };
  9662. }(), F = y.isFirefox, U = y.isMS, H = y.isWebKit, W = y.win, R = I.css, S = I.defined, v = I.extend, d = I.pick, u = I.pInt;
  9663. return function(P) {
  9664. function O() {
  9665. return P !== null && P.apply(this, arguments) || this;
  9666. }
  9667. return Z(O, P), O.compose = function(N) {
  9668. if (O.composedClasses.indexOf(N) === -1) {
  9669. O.composedClasses.push(N);
  9670. var C = O.prototype, b = N.prototype;
  9671. b.getSpanCorrection = C.getSpanCorrection, b.htmlCss = C.htmlCss, b.htmlGetBBox = C.htmlGetBBox, b.htmlUpdateTransform = C.htmlUpdateTransform, b.setSpanRotation = C.setSpanRotation;
  9672. }
  9673. return N;
  9674. }, O.prototype.getSpanCorrection = function(N, C, b) {
  9675. this.xCorr = -N * b, this.yCorr = -C;
  9676. }, O.prototype.htmlCss = function(N) {
  9677. var C = this.element.tagName === "SPAN" && N && "width" in N, b = d(C && N.width, void 0);
  9678. if (C) {
  9679. delete N.width, this.textWidth = b;
  9680. var w = !0;
  9681. }
  9682. return N && N.textOverflow === "ellipsis" && (N.whiteSpace = "nowrap", N.overflow = "hidden"), this.styles = v(this.styles, N), R(this.element, N), w && this.htmlUpdateTransform(), this;
  9683. }, O.prototype.htmlGetBBox = function() {
  9684. var N = this.element;
  9685. return { x: N.offsetLeft, y: N.offsetTop, width: N.offsetWidth, height: N.offsetHeight };
  9686. }, O.prototype.htmlUpdateTransform = function() {
  9687. if (this.added) {
  9688. var N = this.renderer, C = this.element, b = this.translateX || 0, w = this.translateY || 0, x = this.x || 0, a = this.y || 0, c = this.textAlign || "left", p = { left: 0, center: 0.5, right: 1 }[c], i = this.styles;
  9689. if (i = i && i.whiteSpace, R(C, { marginLeft: b, marginTop: w }), !N.styledMode && this.shadows && this.shadows.forEach(function(A) {
  9690. R(A, { marginLeft: b + 1, marginTop: w + 1 });
  9691. }), this.inverted && [].forEach.call(C.childNodes, function(A) {
  9692. N.invertChild(A, C);
  9693. }), C.tagName === "SPAN") {
  9694. var l = this.rotation, s = this.textWidth && u(this.textWidth), t = [l, c, C.innerHTML, this.textWidth, this.textAlign].join(), o = void 0;
  9695. if (o = !1, s !== this.oldTextWidth) {
  9696. if (this.textPxLength)
  9697. var n = this.textPxLength;
  9698. else
  9699. R(C, { width: "", whiteSpace: i || "nowrap" }), n = C.offsetWidth;
  9700. (s > this.oldTextWidth || n > s) && (/[ \-]/.test(C.textContent || C.innerText) || C.style.textOverflow === "ellipsis") && (R(C, { width: n > s || l ? s + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = s, o = !0);
  9701. }
  9702. this.hasBoxWidthChanged = o, t !== this.cTT && (o = N.fontMetrics(C.style.fontSize, C).b, !S(l) || l === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(l, p, o), this.getSpanCorrection(!S(l) && this.textPxLength || C.offsetWidth, o, p, l, c)), R(C, { left: x + (this.xCorr || 0) + "px", top: a + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = l, this.oldAlign = c;
  9703. }
  9704. } else
  9705. this.alignOnAdd = !0;
  9706. }, O.prototype.setSpanRotation = function(N, C, b) {
  9707. var w = {}, x = U && !/Edge/.test(W.navigator.userAgent) ? "-ms-transform" : H ? "-webkit-transform" : F ? "MozTransform" : W.opera ? "-o-transform" : void 0;
  9708. x && (w[x] = w.transform = "rotate(" + N + "deg)", w[x + (F ? "Origin" : "-origin")] = w.transformOrigin = 100 * C + "% " + b + "px", R(this.element, w));
  9709. }, O.composedClasses = [], O;
  9710. }(j);
  9711. }), E(
  9712. h,
  9713. "Core/Renderer/HTML/HTMLRenderer.js",
  9714. [h["Core/Renderer/HTML/AST.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Renderer/SVG/SVGRenderer.js"], h["Core/Utilities.js"]],
  9715. function(y, j, I, Z) {
  9716. var F = this && this.__extends || function() {
  9717. var S = function(v, d) {
  9718. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, P) {
  9719. u.__proto__ = P;
  9720. } || function(u, P) {
  9721. for (var O in P)
  9722. P.hasOwnProperty(O) && (u[O] = P[O]);
  9723. }, S(v, d);
  9724. };
  9725. return function(v, d) {
  9726. function u() {
  9727. this.constructor = v;
  9728. }
  9729. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  9730. };
  9731. }(), U = Z.attr, H = Z.createElement, W = Z.extend, R = Z.pick;
  9732. return function(S) {
  9733. function v() {
  9734. return S !== null && S.apply(this, arguments) || this;
  9735. }
  9736. return F(v, S), v.compose = function(d) {
  9737. return v.composedClasses.indexOf(d) === -1 && (v.composedClasses.push(d), d.prototype.html = v.prototype.html), d;
  9738. }, v.prototype.html = function(d, u, P) {
  9739. var O = this.createElement("span"), N = O.element, C = O.renderer, b = C.isSVG, w = function(x, a) {
  9740. ["opacity", "visibility"].forEach(function(c) {
  9741. x[c + "Setter"] = function(p, i, l) {
  9742. var s = x.div ? x.div.style : a;
  9743. j.prototype[c + "Setter"].call(this, p, i, l), s && (s[i] = p);
  9744. };
  9745. }), x.addedSetters = !0;
  9746. };
  9747. return O.textSetter = function(x) {
  9748. x !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, R(x, "")), this.textStr = x, O.doTransform = !0);
  9749. }, b && w(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(x, a) {
  9750. a === "align" ? O.alignValue = O.textAlign = x : O[a] = x, O.doTransform = !0;
  9751. }, O.afterSetters = function() {
  9752. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  9753. }, O.attr({ text: d, x: Math.round(u), y: Math.round(P) }).css({ position: "absolute" }), C.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), N.style.whiteSpace = "nowrap", O.css = O.htmlCss, b && (O.add = function(x) {
  9754. var a = C.box.parentNode, c = [];
  9755. if (this.parentGroup = x) {
  9756. var p = x.div;
  9757. if (!p) {
  9758. for (; x; )
  9759. c.push(x), x = x.parentGroup;
  9760. c.reverse().forEach(function(i) {
  9761. function l(n, A) {
  9762. i[A] = n, A === "translateX" ? o.left = n + "px" : o.top = n + "px", i.doTransform = !0;
  9763. }
  9764. var s = U(i.element, "class"), t = i.styles || {};
  9765. p = i.div = i.div || H("div", s ? { className: s } : void 0, {
  9766. position: "absolute",
  9767. left: (i.translateX || 0) + "px",
  9768. top: (i.translateY || 0) + "px",
  9769. display: i.display,
  9770. opacity: i.opacity,
  9771. cursor: t.cursor,
  9772. pointerEvents: t.pointerEvents,
  9773. visibility: i.visibility
  9774. }, p || a);
  9775. var o = p.style;
  9776. W(i, { classSetter: function(n) {
  9777. return function(A) {
  9778. this.element.setAttribute("class", A), n.className = A;
  9779. };
  9780. }(p), on: function() {
  9781. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  9782. }, translateXSetter: l, translateYSetter: l }), i.addedSetters || w(i);
  9783. });
  9784. }
  9785. } else
  9786. p = a;
  9787. return p.appendChild(N), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  9788. }), O;
  9789. }, v.composedClasses = [], v;
  9790. }(I);
  9791. }
  9792. ), E(h, "Core/Axis/AxisDefaults.js", [], function() {
  9793. var y;
  9794. return function(j) {
  9795. j.defaultXAxisOptions = { alignTicks: !0, allowDecimals: void 0, panningEnabled: !0, zIndex: 2, zoomEnabled: !0, dateTimeLabelFormats: { millisecond: { main: "%H:%M:%S.%L", range: !1 }, second: { main: "%H:%M:%S", range: !1 }, minute: { main: "%H:%M", range: !1 }, hour: { main: "%H:%M", range: !1 }, day: { main: "%e. %b" }, week: { main: "%e. %b" }, month: { main: "%b '%y" }, year: { main: "%Y" } }, endOnTick: !1, gridLineDashStyle: "Solid", gridZIndex: 1, labels: {
  9796. autoRotation: void 0,
  9797. autoRotationLimit: 80,
  9798. distance: void 0,
  9799. enabled: !0,
  9800. indentation: 10,
  9801. overflow: "justify",
  9802. padding: 5,
  9803. reserveSpace: void 0,
  9804. rotation: void 0,
  9805. staggerLines: 0,
  9806. step: 0,
  9807. useHTML: !1,
  9808. x: 0,
  9809. zIndex: 7,
  9810. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  9811. }, maxPadding: 0.01, minorGridLineDashStyle: "Solid", minorTickLength: 2, minorTickPosition: "outside", minPadding: 0.01, offset: void 0, opposite: !1, reversed: void 0, reversedStacks: !1, showEmpty: !0, showFirstLabel: !0, showLastLabel: !0, startOfWeek: 1, startOnTick: !1, tickLength: 10, tickPixelInterval: 100, tickmarkPlacement: "between", tickPosition: "outside", title: {
  9812. align: "middle",
  9813. rotation: 0,
  9814. useHTML: !1,
  9815. x: 0,
  9816. y: 0,
  9817. style: { color: "#666666" }
  9818. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, j.defaultYAxisOptions = { reversedStacks: !0, endOnTick: !0, maxPadding: 0.05, minPadding: 0.05, tickPixelInterval: 72, showLastLabel: !0, labels: { x: -8 }, startOnTick: !0, title: { rotation: 270, text: "Values" }, stackLabels: {
  9819. animation: {},
  9820. allowOverlap: !1,
  9821. enabled: !1,
  9822. crop: !0,
  9823. overflow: "justify",
  9824. formatter: function() {
  9825. var I = this.axis.chart.numberFormatter;
  9826. return I(this.total, -1);
  9827. },
  9828. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  9829. }, gridLineWidth: 1, lineWidth: 0 }, j.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, j.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, j.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, j.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  9830. }(y || (y = {})), y;
  9831. }), E(h, "Core/Foundation.js", [h["Core/Utilities.js"]], function(y) {
  9832. var j = y.addEvent, I = y.isFunction, Z = y.objectEach, F = y.removeEvent, U;
  9833. return function(H) {
  9834. H.registerEventOptions = function(W, R) {
  9835. W.eventOptions = W.eventOptions || {}, Z(R.events, function(S, v) {
  9836. W.eventOptions[v] !== S && (W.eventOptions[v] && (F(W, v, W.eventOptions[v]), delete W.eventOptions[v]), I(S) && (W.eventOptions[v] = S, j(W, v, S)));
  9837. });
  9838. };
  9839. }(U || (U = {})), U;
  9840. }), E(
  9841. h,
  9842. "Core/Axis/Tick.js",
  9843. [h["Core/FormatUtilities.js"], h["Core/Globals.js"], h["Core/Utilities.js"]],
  9844. function(y, j, I) {
  9845. var Z = j.deg2rad, F = I.clamp, U = I.correctFloat, H = I.defined, W = I.destroyObjectProperties, R = I.extend, S = I.fireEvent, v = I.isNumber, d = I.merge, u = I.objectEach, P = I.pick;
  9846. return j = function() {
  9847. function O(N, C, b, w, x) {
  9848. this.isNewLabel = this.isNew = !0, this.axis = N, this.pos = C, this.type = b || "", this.parameters = x || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, S(this, "init"), b || w || this.addLabel();
  9849. }
  9850. return O.prototype.addLabel = function() {
  9851. var N = this, C = N.axis, b = C.options, w = C.chart, x = C.categories, a = C.logarithmic, c = C.names, p = N.pos, i = P(N.options && N.options.labels, b.labels), l = C.tickPositions, s = p === l[0], t = p === l[l.length - 1], o = (!i.step || i.step === 1) && C.tickInterval === 1;
  9852. l = l.info;
  9853. var n = N.label, A;
  9854. if (x = this.parameters.category || (x ? P(x[p], c[p], p) : p), a && v(x) && (x = U(a.lin2log(x))), C.dateTime)
  9855. if (l)
  9856. var _ = w.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid && l.higherRanks[p] || l.unitName]), D = _.main;
  9857. else
  9858. v(x) && (D = C.dateTime.getXDateFormat(x, b.dateTimeLabelFormats || {}));
  9859. N.isFirst = s, N.isLast = t;
  9860. var B = {
  9861. axis: C,
  9862. chart: w,
  9863. dateTimeLabelFormat: D,
  9864. isFirst: s,
  9865. isLast: t,
  9866. pos: p,
  9867. tick: N,
  9868. tickPositionInfo: l,
  9869. value: x
  9870. };
  9871. S(this, "labelFormat", B);
  9872. var T = function(g) {
  9873. return i.formatter ? i.formatter.call(g, g) : i.format ? (g.text = C.defaultLabelFormatter.call(g), y.format(i.format, g, w)) : C.defaultLabelFormatter.call(g, g);
  9874. };
  9875. b = T.call(B, B);
  9876. var X = _ && _.list;
  9877. N.shortenLabel = X ? function() {
  9878. for (A = 0; A < X.length; A++)
  9879. if (R(B, { dateTimeLabelFormat: X[A] }), n.attr({ text: T.call(B, B) }), n.getBBox().width < C.getSlotWidth(N) - 2 * i.padding)
  9880. return;
  9881. n.attr({ text: "" });
  9882. } : void 0, o && C._addedPlotLB && N.moveLabel(b, i), H(n) || N.movedLabel ? n && n.textStr !== b && !o && (!n.textWidth || i.style.width || n.styles.width || n.css({ width: null }), n.attr({ text: b }), n.textPxLength = n.getBBox().width) : (N.label = n = N.createLabel({ x: 0, y: 0 }, b, i), N.rotation = 0);
  9883. }, O.prototype.createLabel = function(N, C, b) {
  9884. var w = this.axis, x = w.chart;
  9885. return (N = H(C) && b.enabled ? x.renderer.text(C, N.x, N.y, b.useHTML).add(w.labelGroup) : null) && (x.styledMode || N.css(d(b.style)), N.textPxLength = N.getBBox().width), N;
  9886. }, O.prototype.destroy = function() {
  9887. W(
  9888. this,
  9889. this.axis
  9890. );
  9891. }, O.prototype.getPosition = function(N, C, b, w) {
  9892. var x = this.axis, a = x.chart, c = w && a.oldChartHeight || a.chartHeight;
  9893. return N = { x: N ? U(x.translate(C + b, null, null, w) + x.transB) : x.left + x.offset + (x.opposite ? (w && a.oldChartWidth || a.chartWidth) - x.right - x.left : 0), y: N ? c - x.bottom + x.offset - (x.opposite ? x.height : 0) : U(c - x.translate(C + b, null, null, w) - x.transB) }, N.y = F(N.y, -1e5, 1e5), S(this, "afterGetPosition", { pos: N }), N;
  9894. }, O.prototype.getLabelPosition = function(N, C, b, w, x, a, c, p) {
  9895. var i = this.axis, l = i.transA, s = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, o = i.tickRotCorr || { x: 0, y: 0 }, n = w || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), A = {}, _ = x.y;
  9896. return H(_) || (_ = i.side === 0 ? b.rotation ? -8 : -b.getBBox().height : i.side === 2 ? o.y + 8 : Math.cos(b.rotation * Z) * (o.y - b.getBBox(!1, 0).height / 2)), N = N + x.x + n + o.x - (a && w ? a * l * (s ? -1 : 1) : 0), C = C + _ - (a && !w ? a * l * (s ? 1 : -1) : 0), t && (b = c / (p || 1) % t, i.opposite && (b = t - b - 1), C += i.labelOffset / t * b), A.x = N, A.y = Math.round(C), S(this, "afterGetLabelPosition", { pos: A, tickmarkOffset: a, index: c }), A;
  9897. }, O.prototype.getLabelSize = function() {
  9898. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  9899. }, O.prototype.getMarkPath = function(N, C, b, w, x, a) {
  9900. return a.crispLine([["M", N, C], ["L", N + (x ? 0 : -b), C + (x ? b : 0)]], w);
  9901. }, O.prototype.handleOverflow = function(N) {
  9902. var C = this.axis, b = C.options.labels, w = N.x, x = C.chart.chartWidth, a = C.chart.spacing, c = P(C.labelLeft, Math.min(C.pos, a[3]));
  9903. a = P(C.labelRight, Math.max(C.isRadial ? 0 : C.pos + C.len, x - a[1]));
  9904. var p = this.label, i = this.rotation, l = { left: 0, center: 0.5, right: 1 }[C.labelAlign || p.attr("align")], s = p.getBBox().width, t = C.getSlotWidth(this), o = {}, n = t, A = 1, _;
  9905. i || b.overflow !== "justify" ? 0 > i && w - l * s < c ? _ = Math.round(w / Math.cos(i * Z) - c) : 0 < i && w + l * s > a && (_ = Math.round((x - w) / Math.cos(i * Z))) : (x = w + (1 - l) * s, w - l * s < c ? n = N.x + n * (1 - l) - c : x > a && (n = a - N.x + n * l, A = -1), n = Math.min(t, n), n < t && C.labelAlign === "center" && (N.x += A * (t - n - l * (t - Math.min(s, n)))), (s > n || C.autoRotation && (p.styles || {}).width) && (_ = n)), _ && (this.shortenLabel ? this.shortenLabel() : (o.width = Math.floor(_) + "px", (b.style || {}).textOverflow || (o.textOverflow = "ellipsis"), p.css(o)));
  9906. }, O.prototype.moveLabel = function(N, C) {
  9907. var b = this, w = b.label, x = b.axis, a = x.reversed, c = !1;
  9908. if (w && w.textStr === N ? (b.movedLabel = w, c = !0, delete b.label) : u(x.ticks, function(i) {
  9909. c || i.isNew || i === b || !i.label || i.label.textStr !== N || (b.movedLabel = i.label, c = !0, i.labelPos = b.movedLabel.xy, delete i.label);
  9910. }), !c && (b.labelPos || w)) {
  9911. var p = b.labelPos || w.xy;
  9912. w = x.horiz ? a ? 0 : x.width + x.left : p.x, x = x.horiz ? p.y : a ? x.width + x.left : 0, b.movedLabel = b.createLabel({ x: w, y: x }, N, C), b.movedLabel && b.movedLabel.attr({ opacity: 0 });
  9913. }
  9914. }, O.prototype.render = function(N, C, b) {
  9915. var w = this.axis, x = w.horiz, a = this.pos, c = P(this.tickmarkOffset, w.tickmarkOffset);
  9916. a = this.getPosition(x, a, c, C), c = a.x;
  9917. var p = a.y;
  9918. w = x && c === w.pos + w.len || !x && p === w.pos ? -1 : 1, x = P(b, this.label && this.label.newOpacity, 1), b = P(b, 1), this.isActive = !0, this.renderGridLine(C, b, w), this.renderMark(a, b, w), this.renderLabel(a, C, x, N), this.isNew = !1, S(this, "afterRender");
  9919. }, O.prototype.renderGridLine = function(N, C, b) {
  9920. var w = this.axis, x = w.options, a = {}, c = this.pos, p = this.type, i = P(
  9921. this.tickmarkOffset,
  9922. w.tickmarkOffset
  9923. ), l = w.chart.renderer, s = this.gridLine, t = x.gridLineWidth, o = x.gridLineColor, n = x.gridLineDashStyle;
  9924. this.type === "minor" && (t = x.minorGridLineWidth, o = x.minorGridLineColor, n = x.minorGridLineDashStyle), s || (w.chart.styledMode || (a.stroke = o, a["stroke-width"] = t || 0, a.dashstyle = n), p || (a.zIndex = 1), N && (C = 0), this.gridLine = s = l.path().attr(a).addClass("highcharts-" + (p ? p + "-" : "") + "grid-line").add(w.gridGroup)), s && (b = w.getPlotLinePath({ value: c + i, lineWidth: s.strokeWidth() * b, force: "pass", old: N })) && s[N || this.isNew ? "attr" : "animate"]({ d: b, opacity: C });
  9925. }, O.prototype.renderMark = function(N, C, b) {
  9926. var w = this.axis, x = w.options, a = w.chart.renderer, c = this.type, p = w.tickSize(c ? c + "Tick" : "tick"), i = N.x;
  9927. N = N.y;
  9928. var l = P(x[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && w.isXAxis ? 1 : 0);
  9929. x = x[c !== "minor" ? "tickColor" : "minorTickColor"];
  9930. var s = this.mark, t = !s;
  9931. p && (w.opposite && (p[0] = -p[0]), s || (this.mark = s = a.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(w.axisGroup), w.chart.styledMode || s.attr({ stroke: x, "stroke-width": l })), s[t ? "attr" : "animate"]({ d: this.getMarkPath(
  9932. i,
  9933. N,
  9934. p[0],
  9935. s.strokeWidth() * b,
  9936. w.horiz,
  9937. a
  9938. ), opacity: C }));
  9939. }, O.prototype.renderLabel = function(N, C, b, w) {
  9940. var x = this.axis, a = x.horiz, c = x.options, p = this.label, i = c.labels, l = i.step;
  9941. x = P(this.tickmarkOffset, x.tickmarkOffset);
  9942. var s = N.x;
  9943. N = N.y;
  9944. var t = !0;
  9945. p && v(s) && (p.xy = N = this.getLabelPosition(s, N, p, a, i, x, w, l), this.isFirst && !this.isLast && !c.showFirstLabel || this.isLast && !this.isFirst && !c.showLastLabel ? t = !1 : !a || i.step || i.rotation || C || b === 0 || this.handleOverflow(N), l && w % l && (t = !1), t && v(N.y) ? (N.opacity = b, p[this.isNewLabel ? "attr" : "animate"](N), this.isNewLabel = !1) : (p.attr("y", -9999), this.isNewLabel = !0));
  9946. }, O.prototype.replaceMovedLabel = function() {
  9947. var N = this.label, C = this.axis, b = C.reversed;
  9948. if (N && !this.isNew) {
  9949. var w = C.horiz ? b ? C.left : C.width + C.left : N.xy.x;
  9950. b = C.horiz ? N.xy.y : b ? C.width + C.top : C.top, N.animate({ x: w, y: b, opacity: 0 }, void 0, N.destroy), delete this.label;
  9951. }
  9952. C.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  9953. }, O;
  9954. }(), j;
  9955. }
  9956. ), E(h, "Core/Axis/Axis.js", [
  9957. h["Core/Animation/AnimationUtilities.js"],
  9958. h["Core/Axis/AxisDefaults.js"],
  9959. h["Core/Color/Color.js"],
  9960. h["Core/DefaultOptions.js"],
  9961. h["Core/Foundation.js"],
  9962. h["Core/Globals.js"],
  9963. h["Core/Axis/Tick.js"],
  9964. h["Core/Utilities.js"]
  9965. ], function(y, j, I, Z, F, U, H, W) {
  9966. var R = y.animObject, S = Z.defaultOptions, v = F.registerEventOptions, d = U.deg2rad, u = W.arrayMax, P = W.arrayMin, O = W.clamp, N = W.correctFloat, C = W.defined, b = W.destroyObjectProperties, w = W.erase, x = W.error, a = W.extend, c = W.fireEvent, p = W.getMagnitude, i = W.isArray, l = W.isNumber, s = W.isString, t = W.merge, o = W.normalizeTickInterval, n = W.objectEach, A = W.pick, _ = W.relativeLength, D = W.removeEvent, B = W.splat, T = W.syncTimeout;
  9967. return y = function() {
  9968. function X(g, m) {
  9969. this.zoomEnabled = this.width = this.visible = this.userOptions = this.translationSlope = this.transB = this.transA = this.top = this.ticks = this.tickRotCorr = this.tickPositions = this.tickmarkOffset = this.tickInterval = this.tickAmount = this.side = this.series = this.right = this.positiveValuesOnly = this.pos = this.pointRangePadding = this.pointRange = this.plotLinesAndBandsGroups = this.plotLinesAndBands = this.paddedTicks = this.overlap = this.options = this.offset = this.names = this.minPixelPadding = this.minorTicks = this.minorTickInterval = this.min = this.maxLabelLength = this.max = this.len = this.left = this.labelFormatter = this.labelEdge = this.isLinked = this.height = this.hasVisibleSeries = this.hasNames = this.eventOptions = this.coll = this.closestPointRange = this.chart = this.categories = this.bottom = this.alternateBands = void 0, this.init(g, m);
  9970. }
  9971. return X.prototype.init = function(g, m) {
  9972. var L = m.isX;
  9973. this.chart = g, this.horiz = g.inverted && !this.isZAxis ? !L : L, this.isXAxis = L, this.coll = this.coll || (L ? "xAxis" : "yAxis"), c(this, "init", { userOptions: m }), this.opposite = A(m.opposite, this.opposite), this.side = A(m.side, this.side, this.horiz ? this.opposite ? 0 : 2 : this.opposite ? 1 : 3), this.setOptions(m);
  9974. var Y = this.options, V = Y.labels, Q = Y.type;
  9975. this.userOptions = m, this.minPixelPadding = 0, this.reversed = A(Y.reversed, this.reversed), this.visible = Y.visible, this.zoomEnabled = Y.zoomEnabled, this.hasNames = Q === "category" || Y.categories === !0, this.categories = Y.categories || this.hasNames, this.names || (this.names = [], this.names.keys = {}), this.plotLinesAndBandsGroups = {}, this.positiveValuesOnly = !!this.logarithmic, this.isLinked = C(Y.linkedTo), this.ticks = {}, this.labelEdge = [], this.minorTicks = {}, this.plotLinesAndBands = [], this.alternateBands = {}, this.len = 0, this.minRange = this.userMinRange = Y.minRange || Y.maxZoom, this.range = Y.range, this.offset = Y.offset || 0, this.min = this.max = null, m = A(Y.crosshair, B(g.options.tooltip.crosshairs)[L ? 0 : 1]), this.crosshair = m === !0 ? {} : m, g.axes.indexOf(this) === -1 && (L ? g.axes.splice(g.xAxis.length, 0, this) : g.axes.push(this), g[this.coll].push(this)), this.series = this.series || [], g.inverted && !this.isZAxis && L && typeof this.reversed > "u" && (this.reversed = !0), this.labelRotation = l(V.rotation) ? V.rotation : void 0, v(this, Y), c(this, "afterInit");
  9976. }, X.prototype.setOptions = function(g) {
  9977. this.options = t(j.defaultXAxisOptions, this.coll === "yAxis" && j.defaultYAxisOptions, [j.defaultTopAxisOptions, j.defaultRightAxisOptions, j.defaultBottomAxisOptions, j.defaultLeftAxisOptions][this.side], t(S[this.coll], g)), c(this, "afterSetOptions", { userOptions: g });
  9978. }, X.prototype.defaultLabelFormatter = function(g) {
  9979. var m = this.axis;
  9980. g = this.chart.numberFormatter;
  9981. var L = l(this.value) ? this.value : NaN, Y = m.chart.time, V = this.dateTimeLabelFormat, Q = S.lang, k = Q.numericSymbols;
  9982. Q = Q.numericSymbolMagnitude || 1e3;
  9983. var G = m.logarithmic ? Math.abs(L) : m.tickInterval, z = k && k.length;
  9984. if (m.categories)
  9985. var $ = "" + this.value;
  9986. else if (V)
  9987. $ = Y.dateFormat(V, L);
  9988. else if (z && 1e3 <= G)
  9989. for (; z-- && typeof $ > "u"; )
  9990. m = Math.pow(Q, z + 1), G >= m && 10 * L % m === 0 && k[z] !== null && L !== 0 && ($ = g(L / m, -1) + k[z]);
  9991. return typeof $ > "u" && ($ = 1e4 <= Math.abs(L) ? g(L, -1) : g(L, -1, void 0, "")), $;
  9992. }, X.prototype.getSeriesExtremes = function() {
  9993. var g = this, m = g.chart, L;
  9994. c(this, "getSeriesExtremes", null, function() {
  9995. g.hasVisibleSeries = !1, g.dataMin = g.dataMax = g.threshold = null, g.softThreshold = !g.isXAxis, g.stacking && g.stacking.buildStacks(), g.series.forEach(function(Y) {
  9996. if (Y.visible || !m.options.chart.ignoreHiddenSeries) {
  9997. var V = Y.options, Q = V.threshold;
  9998. if (g.hasVisibleSeries = !0, g.positiveValuesOnly && 0 >= Q && (Q = null), g.isXAxis) {
  9999. if (V = Y.xData, V.length) {
  10000. V = g.logarithmic ? V.filter(g.validatePositiveValue) : V, L = Y.getXExtremes(V);
  10001. var k = L.min, G = L.max;
  10002. l(k) || k instanceof Date || (V = V.filter(l), L = Y.getXExtremes(V), k = L.min, G = L.max), V.length && (g.dataMin = Math.min(A(g.dataMin, k), k), g.dataMax = Math.max(A(g.dataMax, G), G));
  10003. }
  10004. } else
  10005. Y = Y.applyExtremes(), l(Y.dataMin) && (k = Y.dataMin, g.dataMin = Math.min(A(g.dataMin, k), k)), l(Y.dataMax) && (G = Y.dataMax, g.dataMax = Math.max(A(g.dataMax, G), G)), C(Q) && (g.threshold = Q), (!V.softThreshold || g.positiveValuesOnly) && (g.softThreshold = !1);
  10006. }
  10007. });
  10008. }), c(this, "afterGetSeriesExtremes");
  10009. }, X.prototype.translate = function(g, m, L, Y, V, Q) {
  10010. var k = this.linkedParent || this, G = Y && k.old ? k.old.min : k.min, z = k.minPixelPadding;
  10011. V = (k.isOrdinal || k.brokenAxis && k.brokenAxis.hasBreaks || k.logarithmic && V) && k.lin2val;
  10012. var $ = 1, q = 0;
  10013. return Y = Y && k.old ? k.old.transA : k.transA, Y || (Y = k.transA), L && ($ *= -1, q = k.len), k.reversed && ($ *= -1, q -= $ * (k.sector || k.len)), m ? (g = (g * $ + q - z) / Y + G, V && (g = k.lin2val(g))) : (V && (g = k.val2lin(g)), g = l(G) ? $ * (g - G) * Y + q + $ * z + (l(Q) ? Y * Q : 0) : void 0), g;
  10014. }, X.prototype.toPixels = function(g, m) {
  10015. return this.translate(
  10016. g,
  10017. !1,
  10018. !this.horiz,
  10019. null,
  10020. !0
  10021. ) + (m ? 0 : this.pos);
  10022. }, X.prototype.toValue = function(g, m) {
  10023. return this.translate(g - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  10024. }, X.prototype.getPlotLinePath = function(g) {
  10025. function m(at, J, tt) {
  10026. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : lt = !0), at;
  10027. }
  10028. var L = this, Y = L.chart, V = L.left, Q = L.top, k = g.old, G = g.value, z = g.lineWidth, $ = k && Y.oldChartHeight || Y.chartHeight, q = k && Y.oldChartWidth || Y.chartWidth, it = L.transB, et = g.translatedValue, nt = g.force, rt, ct, gt, dt, lt;
  10029. return g = {
  10030. value: G,
  10031. lineWidth: z,
  10032. old: k,
  10033. force: nt,
  10034. acrossPanes: g.acrossPanes,
  10035. translatedValue: et
  10036. }, c(this, "getPlotLinePath", g, function(at) {
  10037. et = A(et, L.translate(G, null, null, k)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round($ - et - it), l(et) ? L.horiz ? (ct = Q, dt = $ - L.bottom, rt = gt = m(rt, V, V + L.width)) : (rt = V, gt = q - L.right, ct = dt = m(ct, Q, Q + L.height)) : (lt = !0, nt = !1), at.path = lt && !nt ? null : Y.renderer.crispLine([["M", rt, ct], ["L", gt, dt]], z || 1);
  10038. }), g.path;
  10039. }, X.prototype.getLinearTickPositions = function(g, m, L) {
  10040. var Y = N(Math.floor(m / g) * g);
  10041. L = N(Math.ceil(L / g) * g);
  10042. var V = [], Q;
  10043. if (N(Y + g) === Y && (Q = 20), this.single)
  10044. return [m];
  10045. for (m = Y; m <= L && (V.push(m), m = N(m + g, Q), m !== k); )
  10046. var k = m;
  10047. return V;
  10048. }, X.prototype.getMinorTickInterval = function() {
  10049. var g = this.options;
  10050. return g.minorTicks === !0 ? A(g.minorTickInterval, "auto") : g.minorTicks === !1 ? null : g.minorTickInterval;
  10051. }, X.prototype.getMinorTickPositions = function() {
  10052. var g = this.options, m = this.tickPositions, L = this.minorTickInterval, Y = this.pointRangePadding || 0, V = this.min - Y;
  10053. Y = this.max + Y;
  10054. var Q = Y - V, k = [];
  10055. if (Q && Q / L < this.len / 3) {
  10056. var G = this.logarithmic;
  10057. if (G)
  10058. this.paddedTicks.forEach(function(z, $, q) {
  10059. $ && k.push.apply(
  10060. k,
  10061. G.getLogTickPositions(L, q[$ - 1], q[$], !0)
  10062. );
  10063. });
  10064. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  10065. k = k.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), V, Y, g.startOfWeek));
  10066. else
  10067. for (g = V + (m[0] - V) % L; g <= Y && g !== k[0]; g += L)
  10068. k.push(g);
  10069. }
  10070. return k.length !== 0 && this.trimTicks(k), k;
  10071. }, X.prototype.adjustForMinRange = function() {
  10072. var g = this.options, m = this.logarithmic, L = this.min, Y = this.max, V = 0, Q, k, G, z;
  10073. if (this.isXAxis && typeof this.minRange > "u" && !m && (C(g.min) || C(g.max) || C(g.floor) || C(g.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  10074. if (G = et.xData, z = et.xIncrement ? 1 : G.length - 1, 1 < G.length)
  10075. for (Q = z; 0 < Q; Q--)
  10076. k = G[Q] - G[Q - 1], (!V || k < V) && (V = k);
  10077. }), this.minRange = Math.min(5 * V, this.dataMax - this.dataMin))), Y - L < this.minRange) {
  10078. var $ = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - Y + L) / 2;
  10079. it = [L - it, A(g.min, L - it)], $ && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = u(it), Y = [L + q, A(g.max, L + q)], $ && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = P(Y), Y - L < q && (it[0] = Y - q, it[1] = A(g.min, Y - q), L = u(it));
  10080. }
  10081. this.min = L, this.max = Y;
  10082. }, X.prototype.getClosest = function() {
  10083. var g;
  10084. return this.categories ? g = 1 : this.series.forEach(function(m) {
  10085. var L = m.closestPointRange, Y = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  10086. !m.noSharedTooltip && C(L) && Y && (g = C(g) ? Math.min(g, L) : L);
  10087. }), g;
  10088. }, X.prototype.nameToX = function(g) {
  10089. var m = i(this.categories), L = m ? this.categories : this.names, Y = g.options.x;
  10090. if (g.series.requireSorting = !1, C(Y) || (Y = this.options.uniqueNames ? m ? L.indexOf(g.name) : A(L.keys[g.name], -1) : g.series.autoIncrement()), Y === -1) {
  10091. if (!m)
  10092. var V = L.length;
  10093. } else
  10094. V = Y;
  10095. return typeof V < "u" && (this.names[V] = g.name, this.names.keys[g.name] = V), V;
  10096. }, X.prototype.updateNames = function() {
  10097. var g = this, m = this.names;
  10098. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  10099. delete m.keys[L];
  10100. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  10101. L.xIncrement = null, (!L.points || L.isDirtyData) && (g.max = Math.max(g.max, L.xData.length - 1), L.processData(), L.generatePoints()), L.data.forEach(function(Y, V) {
  10102. if (Y && Y.options && typeof Y.name < "u") {
  10103. var Q = g.nameToX(Y);
  10104. typeof Q < "u" && Q !== Y.x && (Y.x = Q, L.xData[V] = Q);
  10105. }
  10106. });
  10107. }));
  10108. }, X.prototype.setAxisTranslation = function() {
  10109. var g = this, m = g.max - g.min, L = g.linkedParent, Y = !!g.categories, V = g.isXAxis, Q = g.axisPointRange || 0, k = 0, G = 0, z = g.transA;
  10110. if (V || Y || Q) {
  10111. var $ = g.getClosest();
  10112. L ? (k = L.minPointOffset, G = L.pointRangePadding) : g.series.forEach(function(q) {
  10113. var it = Y ? 1 : V ? A(q.options.pointRange, $, 0) : g.axisPointRange || 0, et = q.options.pointPlacement;
  10114. Q = Math.max(Q, it), (!g.single || Y) && (q = q.is("xrange") ? !V : V, k = Math.max(k, q && s(et) ? 0 : it / 2), G = Math.max(G, q && et === "on" ? 0 : it));
  10115. }), L = g.ordinal && g.ordinal.slope && $ ? g.ordinal.slope / $ : 1, g.minPointOffset = k *= L, g.pointRangePadding = G *= L, g.pointRange = Math.min(Q, g.single && Y ? 1 : m), V && (g.closestPointRange = $);
  10116. }
  10117. g.translationSlope = g.transA = z = g.staticScale || g.len / (m + G || 1), g.transB = g.horiz ? g.left : g.bottom, g.minPixelPadding = z * k, c(this, "afterSetAxisTranslation");
  10118. }, X.prototype.minFromRange = function() {
  10119. return this.max - this.range;
  10120. }, X.prototype.setTickInterval = function(g) {
  10121. var m = this.chart, L = this.logarithmic, Y = this.options, V = this.isXAxis, Q = this.isLinked, k = Y.tickPixelInterval, G = this.categories, z = this.softThreshold, $ = Y.maxPadding, q = Y.minPadding, it = l(Y.tickInterval) && 0 <= Y.tickInterval ? Y.tickInterval : void 0, et = l(this.threshold) ? this.threshold : null;
  10122. this.dateTime || G || Q || this.getTickAmount();
  10123. var nt = A(this.userMin, Y.min), rt = A(this.userMax, Y.max);
  10124. if (Q) {
  10125. this.linkedParent = m[this.coll][Y.linkedTo];
  10126. var ct = this.linkedParent.getExtremes();
  10127. this.min = A(ct.min, ct.dataMin), this.max = A(ct.max, ct.dataMax), Y.type !== this.linkedParent.options.type && x(11, 1, m);
  10128. } else {
  10129. if (z && C(et)) {
  10130. if (this.dataMin >= et)
  10131. ct = et, q = 0;
  10132. else if (this.dataMax <= et) {
  10133. var gt = et;
  10134. $ = 0;
  10135. }
  10136. }
  10137. this.min = A(nt, ct, this.dataMin), this.max = A(rt, gt, this.dataMax);
  10138. }
  10139. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, A(this.dataMin, this.min)) && x(10, 1, m), this.min = N(L.log2lin(this.min), 16), this.max = N(L.log2lin(this.max), 16)), this.range && C(this.max) && (this.userMin = this.min = nt = Math.max(this.dataMin, this.minFromRange()), this.userMax = rt = this.max, this.range = null), c(this, "foundExtremes"), this.beforePadding && this.beforePadding(), this.adjustForMinRange(), !(G || this.axisPointRange || this.stacking && this.stacking.usePercentage || Q) && C(this.min) && C(this.max) && (m = this.max - this.min) && (!C(nt) && q && (this.min -= m * q), !C(rt) && $ && (this.max += m * $)), l(this.userMin) || (l(Y.softMin) && Y.softMin < this.min && (this.min = nt = Y.softMin), l(Y.floor) && (this.min = Math.max(this.min, Y.floor))), l(this.userMax) || (l(Y.softMax) && Y.softMax > this.max && (this.max = rt = Y.softMax), l(Y.ceiling) && (this.max = Math.min(this.max, Y.ceiling))), z && C(this.dataMin) && (et = et || 0, !C(nt) && this.min < et && this.dataMin >= et ? this.min = this.options.minRange ? Math.min(et, this.max - this.minRange) : et : !C(rt) && this.max > et && this.dataMax <= et && (this.max = this.options.minRange ? Math.max(et, this.min + this.minRange) : et)), l(this.min) && l(this.max) && !this.chart.polar && this.min > this.max && (C(this.options.min) ? this.max = this.min : C(this.options.max) && (this.min = this.max)), this.tickInterval = this.min === this.max || typeof this.min > "u" || typeof this.max > "u" ? 1 : Q && this.linkedParent && !it && k === this.linkedParent.options.tickPixelInterval ? it = this.linkedParent.tickInterval : A(it, this.tickAmount ? (this.max - this.min) / Math.max(this.tickAmount - 1, 1) : void 0, G ? 1 : (this.max - this.min) * k / Math.max(this.len, k)), V && !g) {
  10140. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  10141. this.series.forEach(function(lt) {
  10142. lt.forceCrop = lt.forceCropping && lt.forceCropping(), lt.processData(dt);
  10143. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  10144. }
  10145. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), g = A(Y.minTickInterval, this.dateTime && !this.series.some(function(lt) {
  10146. return lt.noSharedTooltip;
  10147. }) ? this.closestPointRange : 0), !it && this.tickInterval < g && (this.tickInterval = g), this.dateTime || this.logarithmic || it || (this.tickInterval = o(this.tickInterval, void 0, p(this.tickInterval), A(Y.allowDecimals, 0.5 > this.tickInterval || this.tickAmount !== void 0), !!this.tickAmount)), this.tickAmount || (this.tickInterval = this.unsquish()), this.setTickPositions();
  10148. }, X.prototype.setTickPositions = function() {
  10149. var g = this.options, m = g.tickPositions, L = this.getMinorTickInterval(), Y = this.hasVerticalPanning(), V = this.coll === "colorAxis", Q = (V || !Y) && g.startOnTick;
  10150. Y = (V || !Y) && g.endOnTick, V = g.tickPositioner, this.tickmarkOffset = this.categories && g.tickmarkPlacement === "between" && this.tickInterval === 1 ? 0.5 : 0, this.minorTickInterval = L === "auto" && this.tickInterval ? this.tickInterval / 5 : L, this.single = this.min === this.max && C(this.min) && !this.tickAmount && (parseInt(this.min, 10) === this.min || g.allowDecimals !== !1), this.tickPositions = L = m && m.slice(), !L && (this.ordinal && this.ordinal.positions || !((this.max - this.min) / this.tickInterval > Math.max(2 * this.len, 200)) ? L = this.dateTime ? this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval, g.units), this.min, this.max, g.startOfWeek, this.ordinal && this.ordinal.positions, this.closestPointRange, !0) : this.logarithmic ? this.logarithmic.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(
  10151. this.tickInterval,
  10152. this.min,
  10153. this.max
  10154. ) : (L = [this.min, this.max], x(19, !1, this.chart)), L.length > this.len && (L = [L[0], L.pop()], L[0] === L[1] && (L.length = 1)), this.tickPositions = L, V && (V = V.apply(this, [this.min, this.max]))) && (this.tickPositions = L = V), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, Y), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(k) {
  10155. return k.is("heatmap") && k.options.pointPlacement === "between";
  10156. }) && (this.min -= 0.5, this.max += 0.5), m || V || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  10157. }, X.prototype.trimTicks = function(g, m, L) {
  10158. var Y = g[0], V = g[g.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  10159. if (c(this, "trimTicks"), !this.isLinked) {
  10160. if (m && Y !== -1 / 0)
  10161. this.min = Y;
  10162. else
  10163. for (; this.min - Q > g[0]; )
  10164. g.shift();
  10165. if (L)
  10166. this.max = V;
  10167. else
  10168. for (; this.max + Q < g[g.length - 1]; )
  10169. g.pop();
  10170. g.length === 0 && C(Y) && !this.options.tickPositions && g.push((V + Y) / 2);
  10171. }
  10172. }, X.prototype.alignToOthers = function() {
  10173. var g = {}, m = this.options, L;
  10174. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(Y) {
  10175. var V = Y.options;
  10176. V = [Y.horiz ? V.left : V.top, V.width, V.height, V.pane].join(), Y.series.length && (g[V] ? L = !0 : g[V] = 1);
  10177. }), L;
  10178. }, X.prototype.getTickAmount = function() {
  10179. var g = this.options, m = g.tickPixelInterval, L = g.tickAmount;
  10180. !C(g.tickInterval) && !L && this.len < m && !this.isRadial && !this.logarithmic && g.startOnTick && g.endOnTick && (L = 2), !L && this.alignToOthers() && (L = Math.ceil(this.len / m) + 1), 4 > L && (this.finalTickAmt = L, L = 5), this.tickAmount = L;
  10181. }, X.prototype.adjustTickAmount = function() {
  10182. var g = this.options, m = this.tickInterval, L = this.tickPositions, Y = this.tickAmount, V = this.finalTickAmt, Q = L && L.length, k = A(this.threshold, this.softThreshold ? 0 : null);
  10183. if (this.hasData() && l(this.min) && l(this.max)) {
  10184. if (Q < Y) {
  10185. for (; L.length < Y; )
  10186. L.length % 2 || this.min === k ? L.push(N(L[L.length - 1] + m)) : L.unshift(N(L[0] - m));
  10187. this.transA *= (Q - 1) / (Y - 1), this.min = g.startOnTick ? L[0] : Math.min(this.min, L[0]), this.max = g.endOnTick ? L[L.length - 1] : Math.max(this.max, L[L.length - 1]);
  10188. } else
  10189. Q > Y && (this.tickInterval *= 2, this.setTickPositions());
  10190. if (C(V)) {
  10191. for (m = g = L.length; m--; )
  10192. (V === 3 && m % 2 === 1 || 2 >= V && 0 < m && m < g - 1) && L.splice(m, 1);
  10193. this.finalTickAmt = void 0;
  10194. }
  10195. }
  10196. }, X.prototype.setScale = function() {
  10197. var g = !1, m = !1;
  10198. this.series.forEach(function(Y) {
  10199. g = g || Y.isDirtyData || Y.isDirty, m = m || Y.xAxis && Y.xAxis.isDirty || !1;
  10200. }), this.setAxisSize();
  10201. var L = this.len !== (this.old && this.old.len);
  10202. L || g || m || this.isLinked || this.forceRedraw || this.userMin !== (this.old && this.old.userMin) || this.userMax !== (this.old && this.old.userMax) || this.alignToOthers() ? (this.stacking && this.stacking.resetStacks(), this.forceRedraw = !1, this.getSeriesExtremes(), this.setTickInterval(), this.isDirty || (this.isDirty = L || this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max))) : this.stacking && this.stacking.cleanStacks(), g && this.panningState && (this.panningState.isDirty = !0), c(this, "afterSetScale");
  10203. }, X.prototype.setExtremes = function(g, m, L, Y, V) {
  10204. var Q = this, k = Q.chart;
  10205. L = A(L, !0), Q.series.forEach(function(G) {
  10206. delete G.kdTree;
  10207. }), V = a(V, { min: g, max: m }), c(Q, "setExtremes", V, function() {
  10208. Q.userMin = g, Q.userMax = m, Q.eventArgs = V, L && k.redraw(Y);
  10209. });
  10210. }, X.prototype.zoom = function(g, m) {
  10211. var L = this, Y = this.dataMin, V = this.dataMax, Q = this.options, k = Math.min(Y, A(Q.min, Y)), G = Math.max(V, A(Q.max, V));
  10212. return g = { newMin: g, newMax: m }, c(this, "zoom", g, function(z) {
  10213. var $ = z.newMin, q = z.newMax;
  10214. ($ !== L.min || q !== L.max) && (L.allowZoomOutside || (C(Y) && ($ < k && ($ = k), $ > G && ($ = G)), C(V) && (q < k && (q = k), q > G && (q = G))), L.displayBtn = typeof $ < "u" || typeof q < "u", L.setExtremes($, q, !1, void 0, { trigger: "zoom" })), z.zoomed = !0;
  10215. }), g.zoomed;
  10216. }, X.prototype.setAxisSize = function() {
  10217. var g = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], Y = this.horiz, V = this.width = Math.round(_(A(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(_(A(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), k = this.top = Math.round(_(A(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  10218. m = this.left = Math.round(_(A(m.left, g.plotLeft + L[3]), g.plotWidth, g.plotLeft)), this.bottom = g.chartHeight - Q - k, this.right = g.chartWidth - V - m, this.len = Math.max(Y ? V : Q, 0), this.pos = Y ? m : k;
  10219. }, X.prototype.getExtremes = function() {
  10220. var g = this.logarithmic;
  10221. return { min: g ? N(g.lin2log(this.min)) : this.min, max: g ? N(g.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  10222. }, X.prototype.getThreshold = function(g) {
  10223. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  10224. return m = m ? m.lin2log(this.max) : this.max, g === null || g === -1 / 0 ? g = L : g === 1 / 0 ? g = m : L > g ? g = L : m < g && (g = m), this.translate(g, 0, 1, 0, 1);
  10225. }, X.prototype.autoLabelAlign = function(g) {
  10226. var m = (A(g, 0) - 90 * this.side + 720) % 360;
  10227. return g = { align: "center" }, c(
  10228. this,
  10229. "autoLabelAlign",
  10230. g,
  10231. function(L) {
  10232. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  10233. }
  10234. ), g.align;
  10235. }, X.prototype.tickSize = function(g) {
  10236. var m = this.options, L = A(m[g === "tick" ? "tickWidth" : "minorTickWidth"], g === "tick" && this.isXAxis && !this.categories ? 1 : 0), Y = m[g === "tick" ? "tickLength" : "minorTickLength"];
  10237. if (L && Y) {
  10238. m[g + "Position"] === "inside" && (Y = -Y);
  10239. var V = [Y, L];
  10240. }
  10241. return g = { tickSize: V }, c(this, "afterTickSize", g), g.tickSize;
  10242. }, X.prototype.labelMetrics = function() {
  10243. var g = this.tickPositions && this.tickPositions[0] || 0;
  10244. return this.chart.renderer.fontMetrics(
  10245. this.options.labels.style.fontSize,
  10246. this.ticks[g] && this.ticks[g].label
  10247. );
  10248. }, X.prototype.unsquish = function() {
  10249. var g = this.options.labels, m = this.horiz, L = this.tickInterval, Y = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), V = g.rotation, Q = this.labelMetrics(), k = Math.max(this.max - this.min, 0), G = function(nt) {
  10250. var rt = nt / (Y || 1);
  10251. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > k && nt !== 1 / 0 && Y !== 1 / 0 && k && (rt = Math.ceil(k / L)), N(rt * L);
  10252. }, z = L, $, q, it = Number.MAX_VALUE;
  10253. if (m) {
  10254. if (!g.staggerLines && !g.step)
  10255. if (l(V))
  10256. var et = [V];
  10257. else
  10258. Y < g.autoRotationLimit && (et = g.autoRotation);
  10259. et && et.forEach(function(nt) {
  10260. if (nt === V || nt && -90 <= nt && 90 >= nt) {
  10261. q = G(Math.abs(Q.h / Math.sin(d * nt)));
  10262. var rt = q + Math.abs(nt / 360);
  10263. rt < it && (it = rt, $ = nt, z = q);
  10264. }
  10265. });
  10266. } else
  10267. g.step || (z = G(Q.h));
  10268. return this.autoRotation = et, this.labelRotation = A($, l(V) ? V : 0), z;
  10269. }, X.prototype.getSlotWidth = function(g) {
  10270. var m = this.chart, L = this.horiz, Y = this.options.labels, V = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  10271. if (g && l(g.slotWidth))
  10272. return g.slotWidth;
  10273. if (L && 2 > Y.step)
  10274. return Y.rotation ? 0 : (this.staggerLines || 1) * this.len / V;
  10275. if (!L) {
  10276. if (g = Y.style.width, g !== void 0)
  10277. return parseInt(String(g), 10);
  10278. if (Q)
  10279. return Q - m.spacing[3];
  10280. }
  10281. return 0.33 * m.chartWidth;
  10282. }, X.prototype.renderUnsquish = function() {
  10283. var g = this.chart, m = g.renderer, L = this.tickPositions, Y = this.ticks, V = this.options.labels, Q = V.style, k = this.horiz, G = this.getSlotWidth(), z = Math.max(1, Math.round(G - 2 * V.padding)), $ = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  10284. if (s(V.rotation) || ($.rotation = V.rotation || 0), L.forEach(function(gt) {
  10285. gt = Y[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  10286. }), this.maxLabelLength = et, this.autoRotation)
  10287. et > z && et > q.h ? $.rotation = this.labelRotation : this.labelRotation = 0;
  10288. else if (G) {
  10289. var nt = z;
  10290. if (!it) {
  10291. var rt = "clip";
  10292. for (z = L.length; !k && z--; ) {
  10293. var ct = L[z];
  10294. (ct = Y[ct].label) && (ct.styles && ct.styles.textOverflow === "ellipsis" ? ct.css({ textOverflow: "clip" }) : ct.textPxLength > G && ct.css({ width: G + "px" }), ct.getBBox().height > this.len / L.length - (q.h - q.f) && (ct.specificTextOverflow = "ellipsis"));
  10295. }
  10296. }
  10297. }
  10298. $.rotation && (nt = et > 0.5 * g.chartHeight ? 0.33 * g.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = V.align || this.autoLabelAlign(this.labelRotation)) && ($.align = this.labelAlign), L.forEach(function(gt) {
  10299. var dt = (gt = Y[gt]) && gt.label, lt = Q.width, at = {};
  10300. dt && (dt.attr($), gt.shortenLabel ? gt.shortenLabel() : nt && !lt && Q.whiteSpace !== "nowrap" && (nt < dt.textPxLength || dt.element.tagName === "SPAN") ? (at.width = nt + "px", it || (at.textOverflow = dt.specificTextOverflow || rt), dt.css(at)) : dt.styles && dt.styles.width && !at.width && !lt && dt.css({ width: null }), delete dt.specificTextOverflow, gt.rotation = $.rotation);
  10301. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  10302. }, X.prototype.hasData = function() {
  10303. return this.series.some(function(g) {
  10304. return g.hasData();
  10305. }) || this.options.showEmpty && C(this.min) && C(this.max);
  10306. }, X.prototype.addTitle = function(g) {
  10307. var m = this.chart.renderer, L = this.horiz, Y = this.opposite, V = this.options.title, Q = this.chart.styledMode, k;
  10308. this.axisTitle || ((k = V.textAlign) || (k = (L ? { low: "left", middle: "center", high: "right" } : { low: Y ? "right" : "left", middle: "center", high: Y ? "left" : "right" })[V.align]), this.axisTitle = m.text(V.text || "", 0, 0, V.useHTML).attr({ zIndex: 7, rotation: V.rotation, align: k }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t(V.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || V.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[g ? "show" : "hide"](g);
  10309. }, X.prototype.generateTick = function(g) {
  10310. var m = this.ticks;
  10311. m[g] ? m[g].addLabel() : m[g] = new H(this, g);
  10312. }, X.prototype.getOffset = function() {
  10313. var g = this, m = this, L = m.chart, Y = m.horiz, V = m.options, Q = m.side, k = m.ticks, G = m.tickPositions, z = m.coll, $ = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = V.title, rt = V.labels, ct = L.axisOffset;
  10314. L = L.clipOffset;
  10315. var gt = [
  10316. -1,
  10317. 1,
  10318. 1,
  10319. -1
  10320. ][Q], dt = V.className, lt, at = 0, J = 0, tt = 0;
  10321. if (m.showAxis = lt = et || V.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  10322. var st = function(pt, yt, vt) {
  10323. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + z.toLowerCase() + yt + " " + (g.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add($);
  10324. };
  10325. m.gridGroup = st("grid", "-grid", V.gridZIndex), m.axisGroup = st("axis", "", V.zIndex), m.labelGroup = st("axis-labels", "-labels", rt.zIndex);
  10326. }
  10327. if (et || m.isLinked ? (G.forEach(function(pt) {
  10328. m.generateTick(pt);
  10329. }), m.renderUnsquish(), m.reserveSpaceDefault = Q === 0 || Q === 2 || { 1: "left", 3: "right" }[Q] === m.labelAlign, A(rt.reserveSpace, m.labelAlign === "center" ? !0 : null, m.reserveSpaceDefault) && G.forEach(function(pt) {
  10330. tt = Math.max(k[pt].getLabelSize(), tt);
  10331. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : n(k, function(pt, yt) {
  10332. pt.destroy(), delete k[yt];
  10333. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(lt), lt && nt.reserveSpace !== !1)) {
  10334. m.titleOffset = at = m.axisTitle.getBBox()[Y ? "height" : "width"];
  10335. var ht = nt.offset;
  10336. J = C(ht) ? 0 : A(nt.margin, Y ? 5 : 10);
  10337. }
  10338. m.renderLine(), m.offset = gt * A(V.offset, ct[Q] ? ct[Q] + (V.margin || 0) : 0), m.tickRotCorr = m.tickRotCorr || { x: 0, y: 0 }, nt = Q === 0 ? -m.labelMetrics().h : Q === 2 ? m.tickRotCorr.y : 0, et = Math.abs(tt) + J, tt && (et = et - nt + gt * (Y ? A(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = A(ht, et), m.getMaxLabelDimensions && (m.maxLabelDimensions = m.getMaxLabelDimensions(k, G)), z !== "colorAxis" && (Y = this.tickSize("tick"), ct[Q] = Math.max(ct[Q], (m.axisTitleMargin || 0) + at + gt * m.offset, et, G && G.length && Y ? Y[0] + gt * m.offset : 0), V = !m.axisLine || V.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(L[it], V)), c(this, "afterGetOffset");
  10339. }, X.prototype.getLinePath = function(g) {
  10340. var m = this.chart, L = this.opposite, Y = this.offset, V = this.horiz, Q = this.left + (L ? this.width : 0) + Y;
  10341. return Y = m.chartHeight - this.bottom - (L ? this.height : 0) + Y, L && (g *= -1), m.renderer.crispLine([["M", V ? this.left : Q, V ? Y : this.top], ["L", V ? m.chartWidth - this.right : Q, V ? Y : m.chartHeight - this.bottom]], g);
  10342. }, X.prototype.renderLine = function() {
  10343. this.axisLine || (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.chart.styledMode || this.axisLine.attr({ stroke: this.options.lineColor, "stroke-width": this.options.lineWidth, zIndex: 7 }));
  10344. }, X.prototype.getTitlePosition = function() {
  10345. var g = this.horiz, m = this.left, L = this.top, Y = this.len, V = this.options.title, Q = g ? m : L, k = this.opposite, G = this.offset, z = V.x, $ = V.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics(V.style.fontSize, q);
  10346. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), Y = { low: Q + (g ? 0 : Y), middle: Q + Y / 2, high: Q + (g ? Y : 0) }[V.align], m = (g ? L + this.height : m) + (g ? 1 : -1) * (k ? -1 : 1) * this.axisTitleMargin + [-q, q, it.f, -q][this.side], g = { x: g ? Y + z : m + (k ? this.width : 0) + G + z, y: g ? m + $ - (k ? this.height : 0) + G : Y + $ }, c(this, "afterGetTitlePosition", { titlePosition: g }), g;
  10347. }, X.prototype.renderMinorTick = function(g, m) {
  10348. var L = this.minorTicks;
  10349. L[g] || (L[g] = new H(this, g, "minor")), m && L[g].isNew && L[g].render(null, !0), L[g].render(null, !1, 1);
  10350. }, X.prototype.renderTick = function(g, m, L) {
  10351. var Y = this.ticks;
  10352. (!this.isLinked || g >= this.min && g <= this.max || this.grid && this.grid.isColumn) && (Y[g] || (Y[g] = new H(this, g)), L && Y[g].isNew && Y[g].render(
  10353. m,
  10354. !0,
  10355. -1
  10356. ), Y[g].render(m));
  10357. }, X.prototype.render = function() {
  10358. var g = this, m = g.chart, L = g.logarithmic, Y = g.options, V = g.isLinked, Q = g.tickPositions, k = g.axisTitle, G = g.ticks, z = g.minorTicks, $ = g.alternateBands, q = Y.stackLabels, it = Y.alternateGridColor, et = g.tickmarkOffset, nt = g.axisLine, rt = g.showAxis, ct = R(m.renderer.globalAnimation), gt, dt;
  10359. if (g.labelEdge.length = 0, g.overlap = !1, [G, z, $].forEach(function(at) {
  10360. n(at, function(J) {
  10361. J.isActive = !1;
  10362. });
  10363. }), g.hasData() || V) {
  10364. var lt = g.chart.hasRendered && g.old && l(g.old.min);
  10365. g.minorTickInterval && !g.categories && g.getMinorTickPositions().forEach(function(at) {
  10366. g.renderMinorTick(at, lt);
  10367. }), Q.length && (Q.forEach(function(at, J) {
  10368. g.renderTick(at, J, lt);
  10369. }), et && (g.min === 0 || g.single) && (G[-1] || (G[-1] = new H(g, -1, null, !0)), G[-1].render(-1))), it && Q.forEach(function(at, J) {
  10370. dt = typeof Q[J + 1] < "u" ? Q[J + 1] + et : g.max - et, J % 2 === 0 && at < g.max && dt <= g.max + (m.polar ? -et : et) && ($[at] || ($[at] = new U.PlotLineOrBand(g)), gt = at + et, $[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, $[at].render(), $[at].isActive = !0);
  10371. }), g._addedPlotLB || (g._addedPlotLB = !0, (Y.plotLines || []).concat(Y.plotBands || []).forEach(function(at) {
  10372. g.addPlotBandOrLine(at);
  10373. }));
  10374. }
  10375. [G, z, $].forEach(function(at) {
  10376. var J = [], tt = ct.duration;
  10377. n(at, function(st, ht) {
  10378. st.isActive || (st.render(ht, !1, 0), st.isActive = !1, J.push(ht));
  10379. }), T(function() {
  10380. for (var st = J.length; st--; )
  10381. at[J[st]] && !at[J[st]].isActive && (at[J[st]].destroy(), delete at[J[st]]);
  10382. }, at !== $ && m.hasRendered && tt ? tt : 0);
  10383. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), k && rt && (Y = g.getTitlePosition(), l(Y.y) ? (k[k.isNew ? "attr" : "animate"](Y), k.isNew = !1) : (k.attr("y", -9999), k.isNew = !0)), q && q.enabled && g.stacking && g.stacking.renderStackTotals(), g.old = { len: g.len, max: g.max, min: g.min, transA: g.transA, userMax: g.userMax, userMin: g.userMin }, g.isDirty = !1, c(this, "afterRender");
  10384. }, X.prototype.redraw = function() {
  10385. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(g) {
  10386. g.render();
  10387. })), this.series.forEach(function(g) {
  10388. g.isDirty = !0;
  10389. });
  10390. }, X.prototype.getKeepProps = function() {
  10391. return this.keepProps || X.keepProps;
  10392. }, X.prototype.destroy = function(g) {
  10393. var m = this, L = m.plotLinesAndBands, Y = this.eventOptions;
  10394. if (c(this, "destroy", { keepEvents: g }), g || D(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  10395. b(Q);
  10396. }), L)
  10397. for (g = L.length; g--; )
  10398. L[g].destroy();
  10399. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  10400. m[Q] && (m[Q] = m[Q].destroy());
  10401. });
  10402. for (var V in m.plotLinesAndBandsGroups)
  10403. m.plotLinesAndBandsGroups[V] = m.plotLinesAndBandsGroups[V].destroy();
  10404. n(m, function(Q, k) {
  10405. m.getKeepProps().indexOf(k) === -1 && delete m[k];
  10406. }), this.eventOptions = Y;
  10407. }, X.prototype.drawCrosshair = function(g, m) {
  10408. var L = this.crosshair, Y = A(L && L.snap, !0), V = this.chart, Q, k = this.cross;
  10409. if (c(this, "drawCrosshair", { e: g, point: m }), g || (g = this.cross && this.cross.e), L && (C(m) || !Y) !== !1) {
  10410. if (Y ? C(m) && (Q = A(this.coll !== "colorAxis" ? m.crosshairPos : null, this.isXAxis ? m.plotX : this.len - m.plotY)) : Q = g && (this.horiz ? g.chartX - this.pos : this.len - g.chartY + this.pos), C(Q)) {
  10411. var G = { value: m && (this.isXAxis ? m.x : A(m.stackY, m.y)), translatedValue: Q };
  10412. V.polar && a(G, { isCrosshair: !0, chartX: g && g.chartX, chartY: g && g.chartY, point: m }), G = this.getPlotLinePath(G) || null;
  10413. }
  10414. if (!C(G)) {
  10415. this.hideCrosshair();
  10416. return;
  10417. }
  10418. Y = this.categories && !this.isRadial, k || (this.cross = k = V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (Y ? "category " : "thin ") + (L.className || "")).attr({ zIndex: A(L.zIndex, 2) }).add(), V.styledMode || (k.attr({ stroke: L.color || (Y ? I.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": A(L.width, 1) }).css({ "pointer-events": "none" }), L.dashStyle && k.attr({ dashstyle: L.dashStyle }))), k.show().attr({ d: G }), Y && !L.width && k.attr({ "stroke-width": this.transA }), this.cross.e = g;
  10419. } else
  10420. this.hideCrosshair();
  10421. c(this, "afterDrawCrosshair", { e: g, point: m });
  10422. }, X.prototype.hideCrosshair = function() {
  10423. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  10424. }, X.prototype.hasVerticalPanning = function() {
  10425. var g = this.chart.options.chart.panning;
  10426. return !!(g && g.enabled && /y/.test(g.type));
  10427. }, X.prototype.validatePositiveValue = function(g) {
  10428. return l(g) && 0 < g;
  10429. }, X.prototype.update = function(g, m) {
  10430. var L = this.chart;
  10431. g = t(this.userOptions, g), this.destroy(!0), this.init(L, g), L.isDirtyBox = !0, A(m, !0) && L.redraw();
  10432. }, X.prototype.remove = function(g) {
  10433. for (var m = this.chart, L = this.coll, Y = this.series, V = Y.length; V--; )
  10434. Y[V] && Y[V].remove(!1);
  10435. w(m.axes, this), w(m[L], this), m[L].forEach(function(Q, k) {
  10436. Q.options.index = Q.userOptions.index = k;
  10437. }), this.destroy(), m.isDirtyBox = !0, A(g, !0) && m.redraw();
  10438. }, X.prototype.setTitle = function(g, m) {
  10439. this.update({ title: g }, m);
  10440. }, X.prototype.setCategories = function(g, m) {
  10441. this.update(
  10442. { categories: g },
  10443. m
  10444. );
  10445. }, X.defaultOptions = j.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  10446. }(), y;
  10447. }), E(h, "Core/Axis/DateTimeAxis.js", [h["Core/Utilities.js"]], function(y) {
  10448. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, F = y.timeUnits, U;
  10449. return function(H) {
  10450. function W() {
  10451. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  10452. }
  10453. function R(d) {
  10454. d.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new v(this));
  10455. }
  10456. var S = [];
  10457. H.compose = function(d) {
  10458. return S.indexOf(d) === -1 && (S.push(d), d.keepProps.push("dateTime"), d.prototype.getTimeTicks = W, j(d, "init", R)), d;
  10459. };
  10460. var v = function() {
  10461. function d(u) {
  10462. this.axis = u;
  10463. }
  10464. return d.prototype.normalizeTimeTickInterval = function(u, P) {
  10465. var O = P || [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2]], ["week", [1, 2]], ["month", [1, 2, 3, 4, 6]], ["year", null]];
  10466. P = O[O.length - 1];
  10467. var N = F[P[0]], C = P[1], b;
  10468. for (b = 0; b < O.length && (P = O[b], N = F[P[0]], C = P[1], !(O[b + 1] && u <= (N * C[C.length - 1] + F[O[b + 1][0]]) / 2)); b++)
  10469. ;
  10470. return N === F.year && u < 5 * N && (C = [1, 2, 5]), u = Z(u / N, C, P[0] === "year" ? Math.max(I(u / N), 1) : 1), { unitRange: N, count: u, unitName: P[0] };
  10471. }, d.prototype.getXDateFormat = function(u, P) {
  10472. var O = this.axis;
  10473. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, u, O.options.startOfWeek, P) || P.year : P.day;
  10474. }, d;
  10475. }();
  10476. H.Additions = v;
  10477. }(U || (U = {})), U;
  10478. }), E(h, "Core/Axis/LogarithmicAxis.js", [h["Core/Utilities.js"]], function(y) {
  10479. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, F = y.pick, U;
  10480. return function(H) {
  10481. function W(d) {
  10482. var u = this.logarithmic;
  10483. d.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : u || (this.logarithmic = new v(this));
  10484. }
  10485. function R() {
  10486. var d = this.logarithmic;
  10487. d && (this.lin2val = function(u) {
  10488. return d.lin2log(u);
  10489. }, this.val2lin = function(u) {
  10490. return d.log2lin(u);
  10491. });
  10492. }
  10493. var S = [];
  10494. H.compose = function(d) {
  10495. return S.indexOf(d) === -1 && (S.push(d), d.keepProps.push("logarithmic"), j(d, "init", W), j(d, "afterInit", R)), d;
  10496. };
  10497. var v = function() {
  10498. function d(u) {
  10499. this.axis = u;
  10500. }
  10501. return d.prototype.getLogTickPositions = function(u, P, O, N) {
  10502. var C = this.axis, b = C.len, w = C.options, x = [];
  10503. if (N || (this.minorAutoInterval = void 0), 0.5 <= u)
  10504. u = Math.round(u), x = C.getLinearTickPositions(u, P, O);
  10505. else if (0.08 <= u) {
  10506. var a = Math.floor(P), c, p = w = void 0;
  10507. for (b = 0.3 < u ? [1, 2, 4] : 0.15 < u ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; a < O + 1 && !p; a++) {
  10508. var i = b.length;
  10509. for (c = 0; c < i && !p; c++) {
  10510. var l = this.log2lin(this.lin2log(a) * b[c]);
  10511. l > P && (!N || w <= O) && typeof w < "u" && x.push(w), w > O && (p = !0), w = l;
  10512. }
  10513. }
  10514. } else
  10515. P = this.lin2log(P), O = this.lin2log(O), u = N ? C.getMinorTickInterval() : w.tickInterval, u = F(u === "auto" ? null : u, this.minorAutoInterval, w.tickPixelInterval / (N ? 5 : 1) * (O - P) / ((N ? b / C.tickPositions.length : b) || 1)), u = Z(u, void 0, I(u)), x = C.getLinearTickPositions(u, P, O).map(this.log2lin), N || (this.minorAutoInterval = u / 5);
  10516. return N || (C.tickInterval = u), x;
  10517. }, d.prototype.lin2log = function(u) {
  10518. return Math.pow(10, u);
  10519. }, d.prototype.log2lin = function(u) {
  10520. return Math.log(u) / Math.LN10;
  10521. }, d;
  10522. }();
  10523. H.Additions = v;
  10524. }(U || (U = {})), U;
  10525. }), E(h, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [h["Core/Utilities.js"]], function(y) {
  10526. var j = y.erase, I = y.extend, Z = y.isNumber, F;
  10527. return function(U) {
  10528. var H = [], W;
  10529. U.compose = function(S, v) {
  10530. return W || (W = S), H.indexOf(v) === -1 && (H.push(v), I(v.prototype, R.prototype)), v;
  10531. };
  10532. var R = function() {
  10533. function S() {
  10534. }
  10535. return S.prototype.getPlotBandPath = function(v, d, u) {
  10536. u === void 0 && (u = this.options);
  10537. var P = this.getPlotLinePath({ value: d, force: !0, acrossPanes: u.acrossPanes }), O = [], N = this.horiz;
  10538. if (d = !Z(this.min) || !Z(this.max) || v < this.min && d < this.min || v > this.max && d > this.max, v = this.getPlotLinePath({ value: v, force: !0, acrossPanes: u.acrossPanes }), u = 1, v && P) {
  10539. if (d) {
  10540. var C = v.toString() === P.toString();
  10541. u = 0;
  10542. }
  10543. for (d = 0; d < v.length; d += 2) {
  10544. var b = v[d], w = v[d + 1], x = P[d], a = P[d + 1];
  10545. b[0] !== "M" && b[0] !== "L" || w[0] !== "M" && w[0] !== "L" || x[0] !== "M" && x[0] !== "L" || a[0] !== "M" && a[0] !== "L" || (N && x[1] === b[1] ? (x[1] += u, a[1] += u) : N || x[2] !== b[2] || (x[2] += u, a[2] += u), O.push(["M", b[1], b[2]], ["L", w[1], w[2]], ["L", a[1], a[2]], ["L", x[1], x[2]], ["Z"])), O.isFlat = C;
  10546. }
  10547. }
  10548. return O;
  10549. }, S.prototype.addPlotBand = function(v) {
  10550. return this.addPlotBandOrLine(v, "plotBands");
  10551. }, S.prototype.addPlotLine = function(v) {
  10552. return this.addPlotBandOrLine(
  10553. v,
  10554. "plotLines"
  10555. );
  10556. }, S.prototype.addPlotBandOrLine = function(v, d) {
  10557. var u = this, P = this.userOptions, O = new W(this, v);
  10558. if (this.visible && (O = O.render()), O) {
  10559. if (this._addedPlotLB || (this._addedPlotLB = !0, (P.plotLines || []).concat(P.plotBands || []).forEach(function(C) {
  10560. u.addPlotBandOrLine(C);
  10561. })), d) {
  10562. var N = P[d] || [];
  10563. N.push(v), P[d] = N;
  10564. }
  10565. this.plotLinesAndBands.push(O);
  10566. }
  10567. return O;
  10568. }, S.prototype.removePlotBandOrLine = function(v) {
  10569. var d = this.plotLinesAndBands, u = this.options, P = this.userOptions;
  10570. if (d) {
  10571. for (var O = d.length; O--; )
  10572. d[O].id === v && d[O].destroy();
  10573. [u.plotLines || [], P.plotLines || [], u.plotBands || [], P.plotBands || []].forEach(function(N) {
  10574. for (O = N.length; O--; )
  10575. (N[O] || {}).id === v && j(N, N[O]);
  10576. });
  10577. }
  10578. }, S.prototype.removePlotBand = function(v) {
  10579. this.removePlotBandOrLine(v);
  10580. }, S.prototype.removePlotLine = function(v) {
  10581. this.removePlotBandOrLine(v);
  10582. }, S;
  10583. }();
  10584. }(F || (F = {})), F;
  10585. }), E(h, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [h["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], h["Core/Utilities.js"]], function(y, j) {
  10586. var I = j.arrayMax, Z = j.arrayMin, F = j.defined, U = j.destroyObjectProperties, H = j.erase, W = j.fireEvent, R = j.merge, S = j.objectEach, v = j.pick;
  10587. return j = function() {
  10588. function d(u, P) {
  10589. this.axis = u, P && (this.options = P, this.id = P.id);
  10590. }
  10591. return d.compose = function(u) {
  10592. return y.compose(d, u);
  10593. }, d.prototype.render = function() {
  10594. W(this, "render");
  10595. var u = this, P = u.axis, O = P.horiz, N = P.logarithmic, C = u.options, b = C.color, w = v(C.zIndex, 0), x = C.events, a = {}, c = P.chart.renderer, p = C.label, i = u.label, l = C.to, s = C.from, t = C.value, o = u.svgElem, n = [], A = F(s) && F(l);
  10596. n = F(t);
  10597. var _ = !o, D = { class: "highcharts-plot-" + (A ? "band " : "line ") + (C.className || "") }, B = A ? "bands" : "lines";
  10598. if (N && (s = N.log2lin(s), l = N.log2lin(l), t = N.log2lin(t)), P.chart.styledMode || (n ? (D.stroke = b || "#999999", D["stroke-width"] = v(C.width, 1), C.dashStyle && (D.dashstyle = C.dashStyle)) : A && (D.fill = b || "#e6ebf5", C.borderWidth && (D.stroke = C.borderColor, D["stroke-width"] = C.borderWidth))), a.zIndex = w, B += "-" + w, (N = P.plotLinesAndBandsGroups[B]) || (P.plotLinesAndBandsGroups[B] = N = c.g("plot-" + B).attr(a).add()), _ && (u.svgElem = o = c.path().attr(D).add(N)), n)
  10599. n = P.getPlotLinePath({
  10600. value: t,
  10601. lineWidth: o.strokeWidth(),
  10602. acrossPanes: C.acrossPanes
  10603. });
  10604. else if (A)
  10605. n = P.getPlotBandPath(s, l, C);
  10606. else
  10607. return;
  10608. return !u.eventsAdded && x && (S(x, function(T, X) {
  10609. o.on(X, function(g) {
  10610. x[X].apply(u, [g]);
  10611. });
  10612. }), u.eventsAdded = !0), (_ || !o.d) && n && n.length ? o.attr({ d: n }) : o && (n ? (o.show(!0), o.animate({ d: n })) : o.d && (o.hide(), i && (u.label = i = i.destroy()))), p && (F(p.text) || F(p.formatter)) && n && n.length && 0 < P.width && 0 < P.height && !n.isFlat ? (p = R({ align: O && A && "center", x: O ? !A && 4 : 10, verticalAlign: !O && A && "middle", y: O ? A ? 16 : 10 : A ? 6 : -4, rotation: O && !A && 90 }, p), this.renderLabel(
  10613. p,
  10614. n,
  10615. A,
  10616. w
  10617. )) : i && i.hide(), u;
  10618. }, d.prototype.renderLabel = function(u, P, O, N) {
  10619. var C = this.axis, b = C.chart.renderer, w = this.label;
  10620. w || (this.label = w = b.text(this.getLabelText(u), 0, 0, u.useHTML).attr({ align: u.textAlign || u.align, rotation: u.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (u.className || ""), zIndex: N }).add(), C.chart.styledMode || w.css(R({ textOverflow: "ellipsis" }, u.style))), N = P.xBounds || [P[0][1], P[1][1], O ? P[2][1] : P[0][1]], P = P.yBounds || [P[0][2], P[1][2], O ? P[2][2] : P[0][2]], O = Z(N), b = Z(P), w.align(
  10621. u,
  10622. !1,
  10623. { x: O, y: b, width: I(N) - O, height: I(P) - b }
  10624. ), w.alignValue && w.alignValue !== "left" || w.css({ width: (w.rotation === 90 ? C.height - (w.alignAttr.y - C.top) : C.width - (w.alignAttr.x - C.left)) + "px" }), w.show(!0);
  10625. }, d.prototype.getLabelText = function(u) {
  10626. return F(u.formatter) ? u.formatter.call(this) : u.text;
  10627. }, d.prototype.destroy = function() {
  10628. H(this.axis.plotLinesAndBands, this), delete this.axis, U(this);
  10629. }, d;
  10630. }(), j;
  10631. }), E(h, "Core/Tooltip.js", [
  10632. h["Core/FormatUtilities.js"],
  10633. h["Core/Globals.js"],
  10634. h["Core/Renderer/RendererUtilities.js"],
  10635. h["Core/Renderer/RendererRegistry.js"],
  10636. h["Core/Utilities.js"]
  10637. ], function(y, j, I, Z, F) {
  10638. var U = y.format, H = j.doc, W = I.distribute, R = F.addEvent, S = F.clamp, v = F.css, d = F.defined, u = F.discardElement, P = F.extend, O = F.fireEvent, N = F.isArray, C = F.isNumber, b = F.isString, w = F.merge, x = F.pick, a = F.splat, c = F.syncTimeout;
  10639. return y = function() {
  10640. function p(i, l) {
  10641. this.allowShared = !0, this.container = void 0, this.crosshairs = [], this.distance = 0, this.isHidden = !0, this.isSticky = !1, this.now = {}, this.options = {}, this.outside = !1, this.chart = i, this.init(i, l);
  10642. }
  10643. return p.prototype.applyFilter = function() {
  10644. var i = this.chart;
  10645. i.renderer.definition({ tagName: "filter", attributes: { id: "drop-shadow-" + i.index, opacity: 0.5 }, children: [{ tagName: "feGaussianBlur", attributes: { in: "SourceAlpha", stdDeviation: 1 } }, { tagName: "feOffset", attributes: { dx: 1, dy: 1 } }, { tagName: "feComponentTransfer", children: [{ tagName: "feFuncA", attributes: { type: "linear", slope: 0.3 } }] }, { tagName: "feMerge", children: [{ tagName: "feMergeNode" }, { tagName: "feMergeNode", attributes: { in: "SourceGraphic" } }] }] });
  10646. }, p.prototype.bodyFormatter = function(i) {
  10647. return i.map(function(l) {
  10648. var s = l.series.tooltipOptions;
  10649. return (s[(l.point.formatPrefix || "point") + "Formatter"] || l.point.tooltipFormatter).call(l.point, s[(l.point.formatPrefix || "point") + "Format"] || "");
  10650. });
  10651. }, p.prototype.cleanSplit = function(i) {
  10652. this.chart.series.forEach(function(l) {
  10653. var s = l && l.tt;
  10654. s && (!s.isActive || i ? l.tt = s.destroy() : s.isActive = !1);
  10655. });
  10656. }, p.prototype.defaultFormatter = function(i) {
  10657. var l = this.points || a(this), s = [i.tooltipFooterHeaderFormatter(l[0])];
  10658. return s = s.concat(i.bodyFormatter(l)), s.push(i.tooltipFooterHeaderFormatter(
  10659. l[0],
  10660. !0
  10661. )), s;
  10662. }, p.prototype.destroy = function() {
  10663. this.label && (this.label = this.label.destroy()), this.split && this.tt && (this.cleanSplit(!0), this.tt = this.tt.destroy()), this.renderer && (this.renderer = this.renderer.destroy(), u(this.container)), F.clearTimeout(this.hideTimer), F.clearTimeout(this.tooltipTimeout);
  10664. }, p.prototype.getAnchor = function(i, l) {
  10665. var s = this.chart, t = s.pointer, o = s.inverted, n = s.plotTop, A = s.plotLeft, _, D, B = 0, T = 0;
  10666. return i = a(i), this.followPointer && l ? (typeof l.chartX > "u" && (l = t.normalize(l)), t = [l.chartX - A, l.chartY - n]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  10667. _ = X.series.yAxis, D = X.series.xAxis, B += X.plotX || 0, T += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, D && _ && (o ? (B += n + s.plotHeight - D.len - D.pos, T += A + s.plotWidth - _.len - _.pos) : (B += D.pos - A, T += _.pos - n));
  10668. }), B /= i.length, T /= i.length, t = [o ? s.plotWidth - T : B, o ? s.plotHeight - B : T], this.shared && 1 < i.length && l && (o ? t[0] = l.chartX - A : t[1] = l.chartY - n)), t.map(Math.round);
  10669. }, p.prototype.getLabel = function() {
  10670. var i = this, l = this.chart.styledMode, s = this.options, t = this.split && this.allowShared, o = "tooltip" + (d(s.className) ? " " + s.className : ""), n = s.style.pointerEvents || (!this.followPointer && s.stickOnContact ? "auto" : "none"), A = function() {
  10671. i.inContact = !0;
  10672. }, _ = function(Y) {
  10673. var V = i.chart.hoverSeries;
  10674. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(Y.relatedTarget, "highcharts-tooltip"), !i.inContact && V && V.onMouseOut && V.onMouseOut();
  10675. }, D, B = this.chart.renderer;
  10676. if (i.label) {
  10677. var T = !i.label.hasClass("highcharts-label");
  10678. (t && !T || !t && T) && i.destroy();
  10679. }
  10680. if (!this.label) {
  10681. if (this.outside) {
  10682. T = this.chart.options.chart.style;
  10683. var X = Z.getRendererType();
  10684. this.container = D = j.doc.createElement("div"), D.className = "highcharts-tooltip-container", v(D, { position: "absolute", top: "1px", pointerEvents: n, zIndex: Math.max(this.options.style.zIndex || 0, (T && T.zIndex || 0) + 3) }), R(D, "mouseenter", A), R(D, "mouseleave", _), j.doc.body.appendChild(D), this.renderer = B = new X(D, 0, 0, T, void 0, void 0, B.styledMode);
  10685. }
  10686. if (t ? this.label = B.g(o) : (this.label = B.label("", 0, 0, s.shape, void 0, void 0, s.useHTML, void 0, o).attr({ padding: s.padding, r: s.borderRadius }), l || this.label.attr({ fill: s.backgroundColor, "stroke-width": s.borderWidth }).css(s.style).css({ pointerEvents: n }).shadow(s.shadow)), l && s.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  10687. var g = this.label, m = g.xSetter, L = g.ySetter;
  10688. g.xSetter = function(Y) {
  10689. m.call(g, i.distance), D.style.left = Y + "px";
  10690. }, g.ySetter = function(Y) {
  10691. L.call(g, i.distance), D.style.top = Y + "px";
  10692. };
  10693. }
  10694. this.label.on("mouseenter", A).on("mouseleave", _).attr({ zIndex: 8 }).add();
  10695. }
  10696. return this.label;
  10697. }, p.prototype.getPosition = function(i, l, s) {
  10698. var t = this.chart, o = this.distance, n = {}, A = t.inverted && s.h || 0, _ = this.outside, D = _ ? H.documentElement.clientWidth - 2 * o : t.chartWidth, B = _ ? Math.max(H.body.scrollHeight, H.documentElement.scrollHeight, H.body.offsetHeight, H.documentElement.offsetHeight, H.documentElement.clientHeight) : t.chartHeight, T = t.pointer.getChartPosition(), X = function(z) {
  10699. var $ = z === "x";
  10700. return [z, $ ? D : B, $ ? i : l].concat(_ ? [$ ? i * T.scaleX : l * T.scaleY, $ ? T.left - o + (s.plotX + t.plotLeft) * T.scaleX : T.top - o + (s.plotY + t.plotTop) * T.scaleY, 0, $ ? D : B] : [$ ? i : l, $ ? s.plotX + t.plotLeft : s.plotY + t.plotTop, $ ? t.plotLeft : t.plotTop, $ ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  10701. }, g = X("y"), m = X("x"), L;
  10702. X = !!s.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  10703. var Y = !this.followPointer && x(s.ttBelow, !t.inverted === X), V = function(z, $, q, it, et, nt, rt) {
  10704. var ct = _ ? z === "y" ? o * T.scaleY : o * T.scaleX : o, gt = (q - it) / 2, dt = it < et - o, lt = et + o + it < $, at = et - ct - q + gt;
  10705. if (et = et + ct - gt, Y && lt)
  10706. n[z] = et;
  10707. else if (!Y && dt)
  10708. n[z] = at;
  10709. else if (dt)
  10710. n[z] = Math.min(rt - it, 0 > at - A ? at : at - A);
  10711. else if (lt)
  10712. n[z] = Math.max(nt, et + A + q > $ ? et : et + A);
  10713. else
  10714. return !1;
  10715. }, Q = function(z, $, q, it, et) {
  10716. var nt;
  10717. return et < o || et > $ - o ? nt = !1 : n[z] = et < q / 2 ? 1 : et > $ - it / 2 ? $ - it - 2 : et - q / 2, nt;
  10718. }, k = function(z) {
  10719. var $ = g;
  10720. g = m, m = $, L = z;
  10721. }, G = function() {
  10722. V.apply(0, g) !== !1 ? Q.apply(0, m) !== !1 || L || (k(!0), G()) : L ? n.x = n.y = 0 : (k(!0), G());
  10723. };
  10724. return (t.inverted || 1 < this.len) && k(), G(), n;
  10725. }, p.prototype.hide = function(i) {
  10726. var l = this;
  10727. F.clearTimeout(this.hideTimer), i = x(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  10728. l.getLabel().fadeOut(i && void 0), l.isHidden = !0;
  10729. }, i));
  10730. }, p.prototype.init = function(i, l) {
  10731. this.chart = i, this.options = l, this.crosshairs = [], this.now = { x: 0, y: 0 }, this.isHidden = !0, this.split = l.split && !i.inverted && !i.polar, this.shared = l.shared || this.split, this.outside = x(l.outside, !(!i.scrollablePixelsX && !i.scrollablePixelsY));
  10732. }, p.prototype.shouldStickOnContact = function() {
  10733. return !(this.followPointer || !this.options.stickOnContact);
  10734. }, p.prototype.isStickyOnContact = function() {
  10735. return !(!this.shouldStickOnContact() || !this.inContact);
  10736. }, p.prototype.move = function(i, l, s, t) {
  10737. var o = this, n = o.now, A = o.options.animation !== !1 && !o.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(l - n.y)), _ = o.followPointer || 1 < o.len;
  10738. P(n, { x: A ? (2 * n.x + i) / 3 : i, y: A ? (n.y + l) / 2 : l, anchorX: _ ? void 0 : A ? (2 * n.anchorX + s) / 3 : s, anchorY: _ ? void 0 : A ? (n.anchorY + t) / 2 : t }), o.getLabel().attr(n), o.drawTracker(), A && (F.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  10739. o && o.move(i, l, s, t);
  10740. }, 32));
  10741. }, p.prototype.refresh = function(i, l) {
  10742. var s = this.chart, t = this.options, o = a(i), n = o[0], A = [], _ = t.formatter || this.defaultFormatter, D = this.shared, B = s.styledMode, T = {};
  10743. if (t.enabled) {
  10744. F.clearTimeout(this.hideTimer), this.allowShared = !(!N(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && n.series.tooltipOptions.followPointer, i = this.getAnchor(i, l);
  10745. var X = i[0], g = i[1];
  10746. if (D && this.allowShared ? (s.pointer.applyInactiveState(o), o.forEach(function(Y) {
  10747. Y.setState("hover"), A.push(Y.getLabelConfig());
  10748. }), T = { x: n.category, y: n.y }, T.points = A) : T = n.getLabelConfig(), this.len = A.length, _ = _.call(T, this), D = n.series, this.distance = x(
  10749. D.tooltipOptions.distance,
  10750. 16
  10751. ), _ === !1)
  10752. this.hide();
  10753. else {
  10754. if (this.split && this.allowShared)
  10755. this.renderSplit(_, o);
  10756. else {
  10757. var m = X, L = g;
  10758. if (l && s.pointer.isDirectTouch && (m = l.chartX - s.plotLeft, L = l.chartY - s.plotTop), s.polar || D.options.clip === !1 || o.some(function(Y) {
  10759. return Y.series.shouldShowTooltip(m, L);
  10760. }))
  10761. l = this.getLabel(), t.style.width && !B || l.css({ width: this.chart.spacingBox.width + "px" }), l.attr({ text: _ && _.join ? _.join("") : _ }), l.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + x(n.colorIndex, D.colorIndex)), B || l.attr({ stroke: t.borderColor || n.color || D.color || "#666666" }), this.updatePosition({ plotX: X, plotY: g, negative: n.negative, ttBelow: n.ttBelow, h: i[2] || 0 });
  10762. else {
  10763. this.hide();
  10764. return;
  10765. }
  10766. }
  10767. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  10768. }
  10769. O(this, "refresh");
  10770. }
  10771. }, p.prototype.renderSplit = function(i, l) {
  10772. function s(lt, at, J, tt, st) {
  10773. return st === void 0 && (st = !0), J ? (at = it ? 0 : ct, lt = S(lt - tt / 2, z.left, z.right - tt - (t.outside ? et : 0))) : (at -= nt, lt = st ? lt - tt - Q : lt + Q, lt = S(lt, st ? lt : z.left, z.right)), { x: lt, y: at };
  10774. }
  10775. var t = this, o = t.chart, n = t.chart, A = n.chartWidth, _ = n.chartHeight, D = n.plotHeight, B = n.plotLeft, T = n.plotTop, X = n.pointer, g = n.scrollablePixelsY;
  10776. g = g === void 0 ? 0 : g;
  10777. var m = n.scrollablePixelsX, L = n.scrollingContainer;
  10778. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  10779. var Y = L.scrollLeft;
  10780. L = L.scrollTop;
  10781. var V = n.styledMode, Q = t.distance, k = t.options, G = t.options.positioner, z = t.outside && typeof m != "number" ? H.documentElement.getBoundingClientRect() : { left: Y, right: Y + A, top: L, bottom: L + _ }, $ = t.getLabel(), q = this.renderer || o.renderer, it = !(!o.xAxis[0] || !o.xAxis[0].opposite);
  10782. o = X.getChartPosition();
  10783. var et = o.left;
  10784. o = o.top;
  10785. var nt = T + L, rt = 0, ct = D - g;
  10786. b(i) && (i = [!1, i]), i = i.slice(0, l.length + 1).reduce(function(lt, at, J) {
  10787. if (at !== !1 && at !== "") {
  10788. J = l[J - 1] || { isHeader: !0, plotX: l[0].plotX, plotY: D, series: {} };
  10789. var tt = J.isHeader, st = tt ? t : J.series;
  10790. at = at.toString();
  10791. var ht = st.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + x(J.colorIndex, yt.colorIndex, "none");
  10792. if (ht || (ht = { padding: k.padding, r: k.borderRadius }, V || (ht.fill = k.backgroundColor, ht["stroke-width"] = k.borderWidth), ht = q.label("", 0, 0, k[pt ? "headerShape" : "shape"], void 0, void 0, k.useHTML).addClass((pt ? "highcharts-tooltip-header " : "") + "highcharts-tooltip-box " + vt).attr(ht).add($)), ht.isActive = !0, ht.attr({ text: at }), V || ht.css(k.style).shadow(k.shadow).attr({ stroke: k.borderColor || J.color || yt.color || "#333333" }), st = st.tt = ht, pt = st.getBBox(), at = pt.width + st.strokeWidth(), tt && (rt = pt.height, ct += rt, it && (nt -= rt)), yt = J.plotX, yt = yt === void 0 ? 0 : yt, vt = J.plotY, vt = vt === void 0 ? 0 : vt, ht = J.series, J.isHeader) {
  10793. yt = B + yt;
  10794. var Ct = T + D / 2;
  10795. } else {
  10796. var Pt = ht.xAxis, kt = ht.yAxis;
  10797. yt = Pt.pos + S(yt, -Q, Pt.len + Q), ht.shouldShowTooltip(0, kt.pos - T + vt, { ignoreX: !0 }) && (Ct = kt.pos + vt);
  10798. }
  10799. yt = S(
  10800. yt,
  10801. z.left - Q,
  10802. z.right + Q
  10803. ), typeof Ct == "number" ? (pt = pt.height + 1, vt = G ? G.call(t, at, pt, J) : s(yt, Ct, tt, at), lt.push({ align: G ? 0 : void 0, anchorX: yt, anchorY: Ct, boxWidth: at, point: J, rank: x(vt.rank, tt ? 1 : 0), size: pt, target: vt.y, tt: st, x: vt.x })) : st.isActive = !1;
  10804. }
  10805. return lt;
  10806. }, []), !G && i.some(function(lt) {
  10807. var at = (t.outside ? et : 0) + lt.anchorX;
  10808. return at < z.left && at + lt.boxWidth < z.right ? !0 : at < et - z.left + lt.boxWidth && z.right - at > at;
  10809. }) && (i = i.map(function(lt) {
  10810. var at = s(lt.anchorX, lt.anchorY, lt.point.isHeader, lt.boxWidth, !1);
  10811. return P(lt, { target: at.y, x: at.x });
  10812. })), t.cleanSplit(), W(i, ct);
  10813. var gt = et, dt = et;
  10814. i.forEach(function(lt) {
  10815. var at = lt.x, J = lt.boxWidth;
  10816. lt = lt.isHeader, lt || (t.outside && et + at < gt && (gt = et + at), !lt && t.outside && gt + J > dt && (dt = et + at));
  10817. }), i.forEach(function(lt) {
  10818. var at = lt.x, J = lt.anchorX, tt = lt.pos, st = lt.point.isHeader;
  10819. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: lt.anchorY }, t.outside && at < J) {
  10820. var ht = et - gt;
  10821. 0 < ht && (st || (tt.x = at + ht, tt.anchorX = J + ht), st && (tt.x = (dt - gt) / 2, tt.anchorX = J + ht));
  10822. }
  10823. lt.tt.attr(tt);
  10824. }), i = t.container, g = t.renderer, t.outside && i && g && (n = $.getBBox(), g.setSize(n.width + n.x, n.height + n.y, !1), i.style.left = gt + "px", i.style.top = o + "px");
  10825. }, p.prototype.drawTracker = function() {
  10826. if (this.followPointer || !this.options.stickOnContact)
  10827. this.tracker && this.tracker.destroy();
  10828. else {
  10829. var i = this.chart, l = this.label, s = this.shared ? i.hoverPoints : i.hoverPoint;
  10830. if (l && s) {
  10831. var t = { x: 0, y: 0, width: 0, height: 0 };
  10832. s = this.getAnchor(s);
  10833. var o = l.getBBox();
  10834. s[0] += i.plotLeft - l.translateX, s[1] += i.plotTop - l.translateY, t.x = Math.min(0, s[0]), t.y = Math.min(0, s[1]), t.width = 0 > s[0] ? Math.max(Math.abs(s[0]), o.width - s[0]) : Math.max(
  10835. Math.abs(s[0]),
  10836. o.width
  10837. ), t.height = 0 > s[1] ? Math.max(Math.abs(s[1]), o.height - Math.abs(s[1])) : Math.max(Math.abs(s[1]), o.height), this.tracker ? this.tracker.attr(t) : (this.tracker = l.renderer.rect(t).addClass("highcharts-tracker").add(l), i.styledMode || this.tracker.attr({ fill: "rgba(0,0,0,0)" }));
  10838. }
  10839. }
  10840. }, p.prototype.styledModeFormat = function(i) {
  10841. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  10842. }, p.prototype.tooltipFooterHeaderFormatter = function(i, l) {
  10843. var s = i.series, t = s.tooltipOptions, o = s.xAxis, n = o && o.dateTime;
  10844. o = { isFooter: l, labelConfig: i };
  10845. var A = t.xDateFormat, _ = t[l ? "footerFormat" : "headerFormat"];
  10846. return O(this, "headerFormatter", o, function(D) {
  10847. n && !A && C(i.key) && (A = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && A && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(B) {
  10848. _ = _.replace("{point." + B + "}", "{point." + B + ":" + A + "}");
  10849. }), s.chart.styledMode && (_ = this.styledModeFormat(_)), D.text = U(_, { point: i, series: s }, this.chart);
  10850. }), o.text;
  10851. }, p.prototype.update = function(i) {
  10852. this.destroy(), w(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, w(!0, this.options, i));
  10853. }, p.prototype.updatePosition = function(i) {
  10854. var l = this.chart, s = this.options, t = l.pointer, o = this.getLabel();
  10855. t = t.getChartPosition();
  10856. var n = (s.positioner || this.getPosition).call(this, o.width, o.height, i), A = i.plotX + l.plotLeft;
  10857. i = i.plotY + l.plotTop, this.outside && (s = s.borderWidth + 2 * this.distance, this.renderer.setSize(o.width + s, o.height + s, !1), (t.scaleX !== 1 || t.scaleY !== 1) && (v(this.container, { transform: "scale(" + t.scaleX + ", " + t.scaleY + ")" }), A *= t.scaleX, i *= t.scaleY), A += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), A, i);
  10858. }, p;
  10859. }(), y;
  10860. }), E(h, "Core/Series/Point.js", [h["Core/Renderer/HTML/AST.js"], h["Core/Animation/AnimationUtilities.js"], h["Core/DefaultOptions.js"], h["Core/FormatUtilities.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F) {
  10861. var U = j.animObject, H = I.defaultOptions, W = Z.format, R = F.addEvent, S = F.defined, v = F.erase, d = F.extend, u = F.fireEvent, P = F.getNestedProperty, O = F.isArray, N = F.isFunction, C = F.isNumber, b = F.isObject, w = F.merge, x = F.objectEach, a = F.pick, c = F.syncTimeout, p = F.removeEvent, i = F.uniqueKey;
  10862. return j = function() {
  10863. function l() {
  10864. this.colorIndex = this.category = void 0, this.formatPrefix = "point", this.id = void 0, this.isNull = !1, this.percentage = this.options = this.name = void 0, this.selected = !1, this.total = this.series = void 0, this.visible = !0, this.x = void 0;
  10865. }
  10866. return l.prototype.animateBeforeDestroy = function() {
  10867. var s = this, t = { x: s.startXPos, opacity: 0 }, o = s.getGraphicalProps();
  10868. o.singular.forEach(function(n) {
  10869. s[n] = s[n].animate(n === "dataLabel" ? { x: s[n].startXPos, y: s[n].startYPos, opacity: 0 } : t);
  10870. }), o.plural.forEach(function(n) {
  10871. s[n].forEach(function(A) {
  10872. A.element && A.animate(d({ x: s.startXPos }, A.startYPos ? { x: A.startXPos, y: A.startYPos } : {}));
  10873. });
  10874. });
  10875. }, l.prototype.applyOptions = function(s, t) {
  10876. var o = this.series, n = o.options.pointValKey || o.pointValKey;
  10877. return s = l.prototype.optionsToObject.call(this, s), d(this, s), this.options = this.options ? d(this.options, s) : s, s.group && delete this.group, s.dataLabels && delete this.dataLabels, n && (this.y = l.prototype.getNestedProperty.call(
  10878. this,
  10879. n
  10880. )), this.formatPrefix = (this.isNull = a(this.isValid && !this.isValid(), this.x === null || !C(this.y))) ? "null" : "point", this.selected && (this.state = "select"), "name" in this && typeof t > "u" && o.xAxis && o.xAxis.hasNames && (this.x = o.xAxis.nameToX(this)), typeof this.x > "u" && o ? this.x = typeof t > "u" ? o.autoIncrement() : t : C(s.x) && o.options.relativeXValue && (this.x = o.autoIncrement(s.x)), this;
  10881. }, l.prototype.destroy = function() {
  10882. function s() {
  10883. (t.graphic || t.dataLabel || t.dataLabels) && (p(t), t.destroyElements());
  10884. for (D in t)
  10885. t[D] = null;
  10886. }
  10887. var t = this, o = t.series, n = o.chart;
  10888. o = o.options.dataSorting;
  10889. var A = n.hoverPoints, _ = U(t.series.chart.renderer.globalAnimation), D;
  10890. t.legendItem && n.legend.destroyItem(t), A && (t.setState(), v(A, t), A.length || (n.hoverPoints = null)), t === n.hoverPoint && t.onMouseOut(), o && o.enabled ? (this.animateBeforeDestroy(), c(s, _.duration)) : s(), n.pointCount--;
  10891. }, l.prototype.destroyElements = function(s) {
  10892. var t = this;
  10893. s = t.getGraphicalProps(s), s.singular.forEach(function(o) {
  10894. t[o] = t[o].destroy();
  10895. }), s.plural.forEach(function(o) {
  10896. t[o].forEach(function(n) {
  10897. n.element && n.destroy();
  10898. }), delete t[o];
  10899. });
  10900. }, l.prototype.firePointEvent = function(s, t, o) {
  10901. var n = this, A = this.series.options;
  10902. (A.point.events[s] || n.options && n.options.events && n.options.events[s]) && n.importEvents(), s === "click" && A.allowPointSelect && (o = function(_) {
  10903. n.select && n.select(null, _.ctrlKey || _.metaKey || _.shiftKey);
  10904. }), u(n, s, t, o);
  10905. }, l.prototype.getClassName = function() {
  10906. return "highcharts-point" + (this.selected ? " highcharts-point-select" : "") + (this.negative ? " highcharts-negative" : "") + (this.isNull ? " highcharts-null-point" : "") + (typeof this.colorIndex < "u" ? " highcharts-color-" + this.colorIndex : "") + (this.options.className ? " " + this.options.className : "") + (this.zone && this.zone.className ? " " + this.zone.className.replace("highcharts-negative", "") : "");
  10907. }, l.prototype.getGraphicalProps = function(s) {
  10908. var t = this, o = [], n = { singular: [], plural: [] }, A;
  10909. for (s = s || { graphic: 1, dataLabel: 1 }, s.graphic && o.push("graphic", "upperGraphic", "shadowGroup"), s.dataLabel && o.push("dataLabel", "dataLabelUpper", "connector"), A = o.length; A--; ) {
  10910. var _ = o[A];
  10911. t[_] && n.singular.push(_);
  10912. }
  10913. return ["dataLabel", "connector"].forEach(function(D) {
  10914. var B = D + "s";
  10915. s[D] && t[B] && n.plural.push(B);
  10916. }), n;
  10917. }, l.prototype.getLabelConfig = function() {
  10918. return { x: this.category, y: this.y, color: this.color, colorIndex: this.colorIndex, key: this.name || this.category, series: this.series, point: this, percentage: this.percentage, total: this.total || this.stackTotal };
  10919. }, l.prototype.getNestedProperty = function(s) {
  10920. if (s)
  10921. return s.indexOf("custom.") === 0 ? P(s, this.options) : this[s];
  10922. }, l.prototype.getZone = function() {
  10923. var s = this.series, t = s.zones;
  10924. s = s.zoneAxis || "y";
  10925. var o, n = 0;
  10926. for (o = t[n]; this[s] >= o.value; )
  10927. o = t[++n];
  10928. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = o && o.color && !this.options.color ? o.color : this.nonZonedColor, o;
  10929. }, l.prototype.hasNewShapeType = function() {
  10930. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  10931. }, l.prototype.init = function(s, t, o) {
  10932. return this.series = s, this.applyOptions(t, o), this.id = S(this.id) ? this.id : i(), this.resolveColor(), s.chart.pointCount++, u(this, "afterInit"), this;
  10933. }, l.prototype.optionsToObject = function(s) {
  10934. var t = this.series, o = t.options.keys, n = o || t.pointArrayMap || ["y"], A = n.length, _ = {}, D = 0, B = 0;
  10935. if (C(s) || s === null)
  10936. _[n[0]] = s;
  10937. else if (O(s))
  10938. for (!o && s.length > A && (t = typeof s[0], t === "string" ? _.name = s[0] : t === "number" && (_.x = s[0]), D++); B < A; )
  10939. o && typeof s[D] > "u" || (0 < n[B].indexOf(".") ? l.prototype.setNestedProperty(_, s[D], n[B]) : _[n[B]] = s[D]), D++, B++;
  10940. else
  10941. typeof s == "object" && (_ = s, s.dataLabels && (t._hasPointLabels = !0), s.marker && (t._hasPointMarkers = !0));
  10942. return _;
  10943. }, l.prototype.resolveColor = function() {
  10944. var s = this.series, t = s.chart.styledMode, o = s.chart.options.chart.colorCount;
  10945. if (delete this.nonZonedColor, s.options.colorByPoint) {
  10946. if (!t) {
  10947. o = s.options.colors || s.chart.options.colors;
  10948. var n = o[s.colorCounter];
  10949. o = o.length;
  10950. }
  10951. t = s.colorCounter, s.colorCounter++, s.colorCounter === o && (s.colorCounter = 0);
  10952. } else
  10953. t || (n = s.color), t = s.colorIndex;
  10954. this.colorIndex = a(this.options.colorIndex, t), this.color = a(this.options.color, n);
  10955. }, l.prototype.setNestedProperty = function(s, t, o) {
  10956. return o.split(".").reduce(function(n, A, _, D) {
  10957. return n[A] = D.length - 1 === _ ? t : b(n[A], !0) ? n[A] : {}, n[A];
  10958. }, s), s;
  10959. }, l.prototype.tooltipFormatter = function(s) {
  10960. var t = this.series, o = t.tooltipOptions, n = a(o.valueDecimals, ""), A = o.valuePrefix || "", _ = o.valueSuffix || "";
  10961. return t.chart.styledMode && (s = t.chart.tooltip.styledModeFormat(s)), (t.pointArrayMap || ["y"]).forEach(function(D) {
  10962. D = "{point." + D, (A || _) && (s = s.replace(RegExp(D + "}", "g"), A + D + "}" + _)), s = s.replace(RegExp(D + "}", "g"), D + ":,." + n + "f}");
  10963. }), W(s, { point: this, series: this.series }, t.chart);
  10964. }, l.prototype.update = function(s, t, o, n) {
  10965. function A() {
  10966. _.applyOptions(s);
  10967. var m = B && _.hasDummyGraphic;
  10968. m = _.y === null ? !m : m, B && m && (_.graphic = B.destroy(), delete _.hasDummyGraphic), b(s, !0) && (B && B.element && s && s.marker && typeof s.marker.symbol < "u" && (_.graphic = B.destroy()), s && s.dataLabels && _.dataLabel && (_.dataLabel = _.dataLabel.destroy()), _.connector && (_.connector = _.connector.destroy())), g = _.index, D.updateParallelArrays(_, g), X.data[g] = b(X.data[g], !0) || b(s, !0) ? _.options : a(s, X.data[g]), D.isDirty = D.isDirtyData = !0, !D.fixedBox && D.hasCartesianSeries && (T.isDirtyBox = !0), X.legendType === "point" && (T.isDirtyLegend = !0), t && T.redraw(o);
  10969. }
  10970. var _ = this, D = _.series, B = _.graphic, T = D.chart, X = D.options, g;
  10971. t = a(t, !0), n === !1 ? A() : _.firePointEvent("update", { options: s }, A);
  10972. }, l.prototype.remove = function(s, t) {
  10973. this.series.removePoint(this.series.data.indexOf(this), s, t);
  10974. }, l.prototype.select = function(s, t) {
  10975. var o = this, n = o.series, A = n.chart;
  10976. this.selectedStaging = s = a(s, !o.selected), o.firePointEvent(s ? "select" : "unselect", { accumulate: t }, function() {
  10977. o.selected = o.options.selected = s, n.options.data[n.data.indexOf(o)] = o.options, o.setState(s && "select"), t || A.getSelectedPoints().forEach(function(_) {
  10978. var D = _.series;
  10979. _.selected && _ !== o && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(A.hoverPoints && D.options.inactiveOtherPoints ? "inactive" : ""), _.firePointEvent("unselect"));
  10980. });
  10981. }), delete this.selectedStaging;
  10982. }, l.prototype.onMouseOver = function(s) {
  10983. var t = this.series.chart, o = t.pointer;
  10984. s = s ? o.normalize(s) : o.getChartCoordinatesFromPoint(this, t.inverted), o.runPointActions(
  10985. s,
  10986. this
  10987. );
  10988. }, l.prototype.onMouseOut = function() {
  10989. var s = this.series.chart;
  10990. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (s.hoverPoints || []).forEach(function(t) {
  10991. t.setState();
  10992. }), s.hoverPoints = s.hoverPoint = null;
  10993. }, l.prototype.importEvents = function() {
  10994. if (!this.hasImportedEvents) {
  10995. var s = this, t = w(s.series.options.point, s.options).events;
  10996. s.events = t, x(t, function(o, n) {
  10997. N(o) && R(s, n, o);
  10998. }), this.hasImportedEvents = !0;
  10999. }
  11000. }, l.prototype.setState = function(s, t) {
  11001. var o = this.series, n = this.state, A = o.options.states[s || "normal"] || {}, _ = H.plotOptions[o.type].marker && o.options.marker, D = _ && _.enabled === !1, B = _ && _.states && _.states[s || "normal"] || {}, T = B.enabled === !1, X = this.marker || {}, g = o.chart, m = _ && o.markerAttribs, L = o.halo, Y, V = o.stateMarkerGraphic;
  11002. if (s = s || "", !(s === this.state && !t || this.selected && s !== "select" || A.enabled === !1 || s && (T || D && B.enabled === !1) || s && X.states && X.states[s] && X.states[s].enabled === !1)) {
  11003. if (this.state = s, m && (Y = o.markerAttribs(this, s)), this.graphic && !this.hasDummyGraphic) {
  11004. if (n && this.graphic.removeClass("highcharts-point-" + n), s && this.graphic.addClass("highcharts-point-" + s), !g.styledMode) {
  11005. var Q = o.pointAttribs(this, s), k = a(g.options.chart.animation, A.animation);
  11006. o.options.inactiveOtherPoints && C(Q.opacity) && ((this.dataLabels || []).forEach(function(G) {
  11007. G && G.animate({ opacity: Q.opacity }, k);
  11008. }), this.connector && this.connector.animate({ opacity: Q.opacity }, k)), this.graphic.animate(Q, k);
  11009. }
  11010. Y && this.graphic.animate(Y, a(g.options.chart.animation, B.animation, _.animation)), V && V.hide();
  11011. } else
  11012. s && B && (n = X.symbol || o.symbol, V && V.currentSymbol !== n && (V = V.destroy()), Y && (V ? V[t ? "animate" : "attr"]({ x: Y.x, y: Y.y }) : n && (o.stateMarkerGraphic = V = g.renderer.symbol(n, Y.x, Y.y, Y.width, Y.height).add(o.markerGroup), V.currentSymbol = n)), !g.styledMode && V && this.state !== "inactive" && V.attr(o.pointAttribs(this, s))), V && (V[s && this.isInside ? "show" : "hide"](), V.element.point = this, V.addClass(this.getClassName(), !0));
  11013. A = A.halo, Y = (V = this.graphic || V) && V.visibility || "inherit", A && A.size && V && Y !== "hidden" && !this.isCluster ? (L || (o.halo = L = g.renderer.path().add(V.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(A.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + a(this.colorIndex, o.colorIndex) + (this.className ? " " + this.className : ""), visibility: Y, zIndex: -1 }), L.point = this, g.styledMode || L.attr(d({ fill: this.color || o.color, "fill-opacity": A.opacity }, y.filterUserAttributes(A.attributes || {})))) : L && L.point && L.point.haloPath && L.animate({ d: L.point.haloPath(0) }, null, L.hide), u(this, "afterSetState", { state: s });
  11014. }
  11015. }, l.prototype.haloPath = function(s) {
  11016. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - s, this.plotY - s, 2 * s, 2 * s);
  11017. }, l;
  11018. }(), j;
  11019. }), E(h, "Core/Pointer.js", [h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Tooltip.js"], h["Core/Utilities.js"]], function(y, j, I, Z) {
  11020. var F = y.parse, U = j.charts, H = j.noop, W = Z.addEvent, R = Z.attr, S = Z.css, v = Z.defined, d = Z.extend, u = Z.find, P = Z.fireEvent, O = Z.isNumber, N = Z.isObject, C = Z.objectEach, b = Z.offset, w = Z.pick, x = Z.splat;
  11021. return y = function() {
  11022. function a(c, p) {
  11023. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = p, this.init(c, p);
  11024. }
  11025. return a.prototype.applyInactiveState = function(c) {
  11026. var p = [], i;
  11027. (c || []).forEach(function(l) {
  11028. i = l.series, p.push(i), i.linkedParent && p.push(i.linkedParent), i.linkedSeries && (p = p.concat(i.linkedSeries)), i.navigatorSeries && p.push(i.navigatorSeries);
  11029. }), this.chart.series.forEach(function(l) {
  11030. p.indexOf(l) === -1 ? l.setState("inactive", !0) : l.options.inactiveOtherPoints && l.setAllPointsToState("inactive");
  11031. });
  11032. }, a.prototype.destroy = function() {
  11033. var c = this;
  11034. this.eventsToUnbind.forEach(function(p) {
  11035. return p();
  11036. }), this.eventsToUnbind = [], j.chartCount || (a.unbindDocumentMouseUp && (a.unbindDocumentMouseUp = a.unbindDocumentMouseUp()), a.unbindDocumentTouchEnd && (a.unbindDocumentTouchEnd = a.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), C(c, function(p, i) {
  11037. c[i] = void 0;
  11038. });
  11039. }, a.prototype.drag = function(c) {
  11040. var p = this.chart, i = p.options.chart, l = this.zoomHor, s = this.zoomVert, t = p.plotLeft, o = p.plotTop, n = p.plotWidth, A = p.plotHeight, _ = this.mouseDownX || 0, D = this.mouseDownY || 0, B = N(i.panning) ? i.panning && i.panning.enabled : i.panning, T = i.panKey && c[i.panKey + "Key"], X = c.chartX, g = c.chartY, m = this.selectionMarker;
  11041. if ((!m || !m.touch) && (X < t ? X = t : X > t + n && (X = t + n), g < o ? g = o : g > o + A && (g = o + A), this.hasDragged = Math.sqrt(Math.pow(_ - X, 2) + Math.pow(D - g, 2)), 10 < this.hasDragged)) {
  11042. var L = p.isInsidePlot(_ - t, D - o, { visiblePlotOnly: !0 });
  11043. !p.hasCartesianSeries && !p.mapView || !this.zoomX && !this.zoomY || !L || T || m || (this.selectionMarker = m = p.renderer.rect(t, o, l ? 1 : n, s ? 1 : A, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), p.styledMode || m.attr({ fill: i.selectionMarkerFill || F("#335cad").setOpacity(0.25).get() })), m && l && (l = X - _, m.attr({ width: Math.abs(l), x: (0 < l ? 0 : l) + _ })), m && s && (l = g - D, m.attr({ height: Math.abs(l), y: (0 < l ? 0 : l) + D })), L && !m && B && p.pan(c, i.panning);
  11044. }
  11045. }, a.prototype.dragStart = function(c) {
  11046. var p = this.chart;
  11047. p.mouseIsDown = c.type, p.cancelClick = !1, p.mouseDownX = this.mouseDownX = c.chartX, p.mouseDownY = this.mouseDownY = c.chartY;
  11048. }, a.prototype.drop = function(c) {
  11049. var p = this, i = this.chart, l = this.hasPinched;
  11050. if (this.selectionMarker) {
  11051. var s = this.selectionMarker, t = s.attr ? s.attr("x") : s.x, o = s.attr ? s.attr("y") : s.y, n = s.attr ? s.attr("width") : s.width, A = s.attr ? s.attr("height") : s.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: o, width: n, height: A }, D = !!i.mapView;
  11052. (this.hasDragged || l) && (i.axes.forEach(function(B) {
  11053. if (B.zoomEnabled && v(B.min) && (l || p[{ xAxis: "zoomX", yAxis: "zoomY" }[B.coll]]) && O(t) && O(o)) {
  11054. var T = B.horiz, X = c.type === "touchend" ? B.minPixelPadding : 0, g = B.toValue((T ? t : o) + X);
  11055. T = B.toValue((T ? t + n : o + A) - X), _[B.coll].push({ axis: B, min: Math.min(g, T), max: Math.max(g, T) }), D = !0;
  11056. }
  11057. }), D && P(i, "selection", _, function(B) {
  11058. i.zoom(d(
  11059. B,
  11060. l ? { animation: !1 } : null
  11061. ));
  11062. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), l && this.scaleGroups();
  11063. }
  11064. i && O(i.index) && (S(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  11065. }, a.prototype.findNearestKDPoint = function(c, p, i) {
  11066. var l = this.chart, s = l.hoverPoint;
  11067. if (l = l.tooltip, s && l && l.isStickyOnContact())
  11068. return s;
  11069. var t;
  11070. return c.forEach(function(o) {
  11071. var n = !(o.noSharedTooltip && p) && 0 > o.options.findNearestPointBy.indexOf("y");
  11072. if (o = o.searchPoint(i, n), (n = N(o, !0) && o.series) && !(n = !N(t, !0))) {
  11073. n = t.distX - o.distX;
  11074. var A = t.dist - o.dist, _ = (o.series.group && o.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  11075. n = 0 < (n !== 0 && p ? n : A !== 0 ? A : _ !== 0 ? _ : t.series.index > o.series.index ? -1 : 1);
  11076. }
  11077. n && (t = o);
  11078. }), t;
  11079. }, a.prototype.getChartCoordinatesFromPoint = function(c, p) {
  11080. var i = c.series, l = i.xAxis;
  11081. i = i.yAxis;
  11082. var s = c.shapeArgs;
  11083. if (l && i) {
  11084. var t = w(c.clientX, c.plotX), o = c.plotY || 0;
  11085. return c.isNode && s && O(s.x) && O(s.y) && (t = s.x, o = s.y), p ? { chartX: i.len + i.pos - o, chartY: l.len + l.pos - t } : { chartX: t + l.pos, chartY: o + i.pos };
  11086. }
  11087. if (s && s.x && s.y)
  11088. return { chartX: s.x, chartY: s.y };
  11089. }, a.prototype.getChartPosition = function() {
  11090. if (this.chartPosition)
  11091. return this.chartPosition;
  11092. var c = this.chart.container, p = b(c);
  11093. this.chartPosition = { left: p.left, top: p.top, scaleX: 1, scaleY: 1 };
  11094. var i = c.offsetWidth;
  11095. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = p.width / i, this.chartPosition.scaleY = p.height / c), this.chartPosition;
  11096. }, a.prototype.getCoordinates = function(c) {
  11097. var p = { xAxis: [], yAxis: [] };
  11098. return this.chart.axes.forEach(function(i) {
  11099. p[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  11100. }), p;
  11101. }, a.prototype.getHoverData = function(c, p, i, l, s, t) {
  11102. var o = [];
  11103. l = !(!l || !c);
  11104. var n = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: s };
  11105. P(this, "beforeGetHoverData", n);
  11106. var A = p && !p.stickyTracking ? [p] : i.filter(function(D) {
  11107. return n.filter ? n.filter(D) : D.visible && !(!s && D.directTouch) && w(D.options.enableMouseTracking, !0) && D.stickyTracking;
  11108. }), _ = l || !t ? c : this.findNearestKDPoint(A, s, t);
  11109. return p = _ && _.series, _ && (s && !p.noSharedTooltip ? (A = i.filter(function(D) {
  11110. return n.filter ? n.filter(D) : D.visible && !(!s && D.directTouch) && w(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  11111. }), A.forEach(function(D) {
  11112. var B = u(D.points, function(T) {
  11113. return T.x === _.x && !T.isNull;
  11114. });
  11115. N(B) && (D.chart.isBoosting && (B = D.getPoint(B)), o.push(B));
  11116. })) : o.push(_)), n = { hoverPoint: _ }, P(this, "afterGetHoverData", n), { hoverPoint: n.hoverPoint, hoverSeries: p, hoverPoints: o };
  11117. }, a.prototype.getPointFromEvent = function(c) {
  11118. c = c.target;
  11119. for (var p; c && !p; )
  11120. p = c.point, c = c.parentNode;
  11121. return p;
  11122. }, a.prototype.onTrackerMouseOut = function(c) {
  11123. c = c.relatedTarget || c.toElement;
  11124. var p = this.chart.hoverSeries;
  11125. this.isDirectTouch = !1, !p || !c || p.stickyTracking || this.inClass(c, "highcharts-tooltip") || this.inClass(c, "highcharts-series-" + p.index) && this.inClass(c, "highcharts-tracker") || p.onMouseOut();
  11126. }, a.prototype.inClass = function(c, p) {
  11127. for (var i; c; ) {
  11128. if (i = R(c, "class")) {
  11129. if (i.indexOf(p) !== -1)
  11130. return !0;
  11131. if (i.indexOf("highcharts-container") !== -1)
  11132. return !1;
  11133. }
  11134. c = c.parentNode;
  11135. }
  11136. }, a.prototype.init = function(c, p) {
  11137. this.options = p, this.chart = c, this.runChartClick = !(!p.chart.events || !p.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, I && (c.tooltip = new I(c, p.tooltip), this.followTouchMove = w(p.tooltip.followTouchMove, !0)), this.setDOMEvents();
  11138. }, a.prototype.normalize = function(c, p) {
  11139. var i = c.touches, l = i ? i.length ? i.item(0) : w(i.changedTouches, c.changedTouches)[0] : c;
  11140. return p || (p = this.getChartPosition()), i = l.pageX - p.left, l = l.pageY - p.top, i /= p.scaleX, l /= p.scaleY, d(c, { chartX: Math.round(i), chartY: Math.round(l) });
  11141. }, a.prototype.onContainerClick = function(c) {
  11142. var p = this.chart, i = p.hoverPoint;
  11143. c = this.normalize(c);
  11144. var l = p.plotLeft, s = p.plotTop;
  11145. p.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (P(i.series, "click", d(c, { point: i })), p.hoverPoint && i.firePointEvent("click", c)) : (d(c, this.getCoordinates(c)), p.isInsidePlot(c.chartX - l, c.chartY - s, { visiblePlotOnly: !0 }) && P(p, "click", c)));
  11146. }, a.prototype.onContainerMouseDown = function(c) {
  11147. var p = ((c.buttons || c.button) & 1) === 1;
  11148. c = this.normalize(c), j.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || p) && (this.zoomOption(c), p && c.preventDefault && c.preventDefault(), this.dragStart(c));
  11149. }, a.prototype.onContainerMouseLeave = function(c) {
  11150. var p = U[w(a.hoverChartIndex, -1)], i = this.chart.tooltip;
  11151. i && i.shouldStickOnContact() && this.inClass(c.relatedTarget, "highcharts-tooltip-container") || (c = this.normalize(c), p && (c.relatedTarget || c.toElement) && (p.pointer.reset(), p.pointer.chartPosition = void 0), i && !i.isHidden && this.reset());
  11152. }, a.prototype.onContainerMouseEnter = function(c) {
  11153. delete this.chartPosition;
  11154. }, a.prototype.onContainerMouseMove = function(c) {
  11155. var p = this.chart;
  11156. c = this.normalize(c), this.setHoverChartIndex(), c.preventDefault || (c.returnValue = !1), (p.mouseIsDown === "mousedown" || this.touchSelect(c)) && this.drag(c), p.openMenu || !this.inClass(c.target, "highcharts-tracker") && !p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || (this.inClass(c.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(c));
  11157. }, a.prototype.onDocumentTouchEnd = function(c) {
  11158. var p = U[w(
  11159. a.hoverChartIndex,
  11160. -1
  11161. )];
  11162. p && p.pointer.drop(c);
  11163. }, a.prototype.onContainerTouchMove = function(c) {
  11164. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  11165. }, a.prototype.onContainerTouchStart = function(c) {
  11166. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  11167. }, a.prototype.onDocumentMouseMove = function(c) {
  11168. var p = this.chart, i = this.chartPosition;
  11169. c = this.normalize(c, i);
  11170. var l = p.tooltip;
  11171. !i || l && l.isStickyOnContact() || p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  11172. }, a.prototype.onDocumentMouseUp = function(c) {
  11173. var p = U[w(a.hoverChartIndex, -1)];
  11174. p && p.pointer.drop(c);
  11175. }, a.prototype.pinch = function(c) {
  11176. var p = this, i = p.chart, l = p.pinchDown, s = c.touches || [], t = s.length, o = p.lastValidTouch, n = p.hasZoom, A = {}, _ = t === 1 && (p.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || p.runChartClick), D = {}, B = p.selectionMarker;
  11177. 1 < t ? p.initiated = !0 : t === 1 && this.followTouchMove && (p.initiated = !1), n && p.initiated && !_ && c.cancelable !== !1 && c.preventDefault(), [].map.call(s, function(T) {
  11178. return p.normalize(T);
  11179. }), c.type === "touchstart" ? ([].forEach.call(s, function(T, X) {
  11180. l[X] = { chartX: T.chartX, chartY: T.chartY };
  11181. }), o.x = [l[0].chartX, l[1] && l[1].chartX], o.y = [l[0].chartY, l[1] && l[1].chartY], i.axes.forEach(function(T) {
  11182. if (T.zoomEnabled) {
  11183. var X = i.bounds[T.horiz ? "h" : "v"], g = T.minPixelPadding, m = T.toPixels(Math.min(w(T.options.min, T.dataMin), T.dataMin)), L = T.toPixels(Math.max(w(T.options.max, T.dataMax), T.dataMax)), Y = Math.max(m, L);
  11184. X.min = Math.min(T.pos, Math.min(
  11185. m,
  11186. L
  11187. ) - g), X.max = Math.max(T.pos + T.len, Y + g);
  11188. }
  11189. }), p.res = !0) : p.followTouchMove && t === 1 ? this.runPointActions(p.normalize(c)) : l.length && (P(i, "touchpan", { originalEvent: c }, function() {
  11190. B || (p.selectionMarker = B = d({ destroy: H, touch: !0 }, i.plotBox)), p.pinchTranslate(l, s, A, B, D, o), p.hasPinched = n, p.scaleGroups(A, D);
  11191. }), p.res && (p.res = !1, this.reset(!1, 0)));
  11192. }, a.prototype.pinchTranslate = function(c, p, i, l, s, t) {
  11193. this.zoomHor && this.pinchTranslateDirection(!0, c, p, i, l, s, t), this.zoomVert && this.pinchTranslateDirection(!1, c, p, i, l, s, t);
  11194. }, a.prototype.pinchTranslateDirection = function(c, p, i, l, s, t, o, n) {
  11195. var A = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", B = "chart" + D, T = c ? "width" : "height", X = A["plot" + (c ? "Left" : "Top")], g = A.inverted, m = A.bounds[c ? "h" : "v"], L = p.length === 1, Y = p[0][B], V = !L && p[1][B];
  11196. p = function() {
  11197. typeof $ == "number" && 20 < Math.abs(Y - V) && (G = n || Math.abs(z - $) / Math.abs(Y - V)), k = (X - z) / G + Y, Q = A["plot" + (c ? "Width" : "Height")] / G;
  11198. };
  11199. var Q, k, G = n || 1, z = i[0][B], $ = !L && i[1][B];
  11200. if (p(), i = k, i < m.min) {
  11201. i = m.min;
  11202. var q = !0;
  11203. } else
  11204. i + Q > m.max && (i = m.max - Q, q = !0);
  11205. q ? (z -= 0.8 * (z - o[_][0]), typeof $ == "number" && ($ -= 0.8 * ($ - o[_][1])), p()) : o[_] = [z, $], g || (t[_] = k - X, t[T] = Q), t = g ? 1 / G : G, s[T] = Q, s[_] = i, l[g ? c ? "scaleY" : "scaleX" : "scale" + D] = G, l["translate" + D] = t * X + (z - t * Y);
  11206. }, a.prototype.reset = function(c, p) {
  11207. var i = this.chart, l = i.hoverSeries, s = i.hoverPoint, t = i.hoverPoints, o = i.tooltip, n = o && o.shared ? t : s;
  11208. c && n && x(n).forEach(function(A) {
  11209. A.series.isCartesian && typeof A.plotX > "u" && (c = !1);
  11210. }), c ? o && n && x(n).length && (o.refresh(n), o.shared && t ? t.forEach(function(A) {
  11211. A.setState(A.state, !0), A.series.isCartesian && (A.series.xAxis.crosshair && A.series.xAxis.drawCrosshair(
  11212. null,
  11213. A
  11214. ), A.series.yAxis.crosshair && A.series.yAxis.drawCrosshair(null, A));
  11215. }) : s && (s.setState(s.state, !0), i.axes.forEach(function(A) {
  11216. A.crosshair && s.series[A.coll] === A && A.drawCrosshair(null, s);
  11217. }))) : (s && s.onMouseOut(), t && t.forEach(function(A) {
  11218. A.setState();
  11219. }), l && l.onMouseOut(), o && o.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(A) {
  11220. A.hideCrosshair();
  11221. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  11222. }, a.prototype.runPointActions = function(c, p) {
  11223. var i = this.chart, l = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, s = l ? l.shared : !1, t = p || i.hoverPoint, o = t && t.series || i.hoverSeries;
  11224. p = this.getHoverData(t, o, i.series, (!c || c.type !== "touchmove") && (!!p || o && o.directTouch && this.isDirectTouch), s, c), t = p.hoverPoint, o = p.hoverSeries;
  11225. var n = p.hoverPoints;
  11226. if (p = o && o.tooltipOptions.followPointer && !o.tooltipOptions.split, s = s && o && !o.noSharedTooltip, t && (t !== i.hoverPoint || l && l.isHidden)) {
  11227. if ((i.hoverPoints || []).forEach(function(A) {
  11228. n.indexOf(A) === -1 && A.setState();
  11229. }), i.hoverSeries !== o && o.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(A) {
  11230. A.setState("hover");
  11231. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  11232. return;
  11233. i.hoverPoints = n, i.hoverPoint = t, t.firePointEvent("mouseOver"), l && l.refresh(s ? n : t, c);
  11234. } else
  11235. p && l && !l.isHidden && (t = l.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && l.updatePosition({ plotX: t[0], plotY: t[1] }));
  11236. this.unDocMouseMove || (this.unDocMouseMove = W(i.container.ownerDocument, "mousemove", function(A) {
  11237. var _ = U[a.hoverChartIndex];
  11238. _ && _.pointer.onDocumentMouseMove(A);
  11239. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(A) {
  11240. var _ = w((A.crosshair || {}).snap, !0), D;
  11241. _ && ((D = i.hoverPoint) && D.series[A.coll] === A || (D = u(n, function(B) {
  11242. return B.series[A.coll] === A;
  11243. }))), D || !_ ? A.drawCrosshair(c, D) : A.hideCrosshair();
  11244. });
  11245. }, a.prototype.scaleGroups = function(c, p) {
  11246. var i = this.chart;
  11247. i.series.forEach(function(l) {
  11248. var s = c || l.getPlotBox();
  11249. l.group && (l.xAxis && l.xAxis.zoomEnabled || i.mapView) && (l.group.attr(s), l.markerGroup && (l.markerGroup.attr(s), l.markerGroup.clip(p ? i.clipRect : null)), l.dataLabelsGroup && l.dataLabelsGroup.attr(s));
  11250. }), i.clipRect.attr(p || i.clipBox);
  11251. }, a.prototype.setDOMEvents = function() {
  11252. var c = this, p = this.chart.container, i = p.ownerDocument;
  11253. p.onmousedown = this.onContainerMouseDown.bind(this), p.onmousemove = this.onContainerMouseMove.bind(this), p.onclick = this.onContainerClick.bind(this), this.eventsToUnbind.push(W(p, "mouseenter", this.onContainerMouseEnter.bind(this))), this.eventsToUnbind.push(W(p, "mouseleave", this.onContainerMouseLeave.bind(this))), a.unbindDocumentMouseUp || (a.unbindDocumentMouseUp = W(i, "mouseup", this.onDocumentMouseUp.bind(this)));
  11254. for (var l = this.chart.renderTo.parentElement; l && l.tagName !== "BODY"; )
  11255. this.eventsToUnbind.push(W(l, "scroll", function() {
  11256. delete c.chartPosition;
  11257. })), l = l.parentElement;
  11258. j.hasTouch && (this.eventsToUnbind.push(W(p, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(W(p, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), a.unbindDocumentTouchEnd || (a.unbindDocumentTouchEnd = W(i, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
  11259. }, a.prototype.setHoverChartIndex = function() {
  11260. var c = this.chart, p = j.charts[w(a.hoverChartIndex, -1)];
  11261. p && p !== c && p.pointer.onContainerMouseLeave({ relatedTarget: !0 }), p && p.mouseIsDown || (a.hoverChartIndex = c.index);
  11262. }, a.prototype.touch = function(c, p) {
  11263. var i = this.chart;
  11264. if (this.setHoverChartIndex(), c.touches.length === 1)
  11265. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  11266. if (p && this.runPointActions(c), c.type === "touchmove") {
  11267. p = this.pinchDown;
  11268. var l = p[0] ? 4 <= Math.sqrt(Math.pow(p[0].chartX - c.chartX, 2) + Math.pow(p[0].chartY - c.chartY, 2)) : !1;
  11269. }
  11270. w(l, !0) && this.pinch(c);
  11271. } else
  11272. p && this.reset();
  11273. else
  11274. c.touches.length === 2 && this.pinch(c);
  11275. }, a.prototype.touchSelect = function(c) {
  11276. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  11277. }, a.prototype.zoomOption = function(c) {
  11278. var p = this.chart, i = p.options.chart;
  11279. p = p.inverted;
  11280. var l = i.zoomType || "";
  11281. /touch/.test(c.type) && (l = w(i.pinchType, l)), this.zoomX = c = /x/.test(l), this.zoomY = i = /y/.test(l), this.zoomHor = c && !p || i && p, this.zoomVert = i && !p || c && p, this.hasZoom = c || i;
  11282. }, a;
  11283. }(), y;
  11284. }), E(h, "Core/MSPointer.js", [h["Core/Globals.js"], h["Core/Pointer.js"], h["Core/Utilities.js"]], function(y, j, I) {
  11285. function Z() {
  11286. var C = [];
  11287. return C.item = function(b) {
  11288. return this[b];
  11289. }, u(O, function(b) {
  11290. C.push({ pageX: b.pageX, pageY: b.pageY, target: b.target });
  11291. }), C;
  11292. }
  11293. function F(C, b, w, x) {
  11294. var a = H[j.hoverChartIndex || NaN];
  11295. C.pointerType !== "touch" && C.pointerType !== C.MSPOINTER_TYPE_TOUCH || !a || (a = a.pointer, x(C), a[b]({ type: w, target: C.currentTarget, preventDefault: R, touches: Z() }));
  11296. }
  11297. var U = this && this.__extends || function() {
  11298. var C = function(b, w) {
  11299. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  11300. x.__proto__ = a;
  11301. } || function(x, a) {
  11302. for (var c in a)
  11303. a.hasOwnProperty(c) && (x[c] = a[c]);
  11304. }, C(b, w);
  11305. };
  11306. return function(b, w) {
  11307. function x() {
  11308. this.constructor = b;
  11309. }
  11310. C(b, w), b.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  11311. };
  11312. }(), H = y.charts, W = y.doc, R = y.noop, S = y.win, v = I.addEvent, d = I.css, u = I.objectEach, P = I.removeEvent, O = {}, N = !!S.PointerEvent;
  11313. return function(C) {
  11314. function b() {
  11315. return C !== null && C.apply(this, arguments) || this;
  11316. }
  11317. return U(b, C), b.isRequired = function() {
  11318. return !(y.hasTouch || !S.PointerEvent && !S.MSPointerEvent);
  11319. }, b.prototype.batchMSEvents = function(w) {
  11320. w(this.chart.container, N ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), w(this.chart.container, N ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), w(W, N ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  11321. }, b.prototype.destroy = function() {
  11322. this.batchMSEvents(P), C.prototype.destroy.call(this);
  11323. }, b.prototype.init = function(w, x) {
  11324. C.prototype.init.call(this, w, x), this.hasZoom && d(w.container, { "-ms-touch-action": "none", "touch-action": "none" });
  11325. }, b.prototype.onContainerPointerDown = function(w) {
  11326. F(w, "onContainerTouchStart", "touchstart", function(x) {
  11327. O[x.pointerId] = { pageX: x.pageX, pageY: x.pageY, target: x.currentTarget };
  11328. });
  11329. }, b.prototype.onContainerPointerMove = function(w) {
  11330. F(w, "onContainerTouchMove", "touchmove", function(x) {
  11331. O[x.pointerId] = {
  11332. pageX: x.pageX,
  11333. pageY: x.pageY
  11334. }, O[x.pointerId].target || (O[x.pointerId].target = x.currentTarget);
  11335. });
  11336. }, b.prototype.onDocumentPointerUp = function(w) {
  11337. F(w, "onDocumentTouchEnd", "touchend", function(x) {
  11338. delete O[x.pointerId];
  11339. });
  11340. }, b.prototype.setDOMEvents = function() {
  11341. C.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(v);
  11342. }, b;
  11343. }(j);
  11344. }), E(h, "Core/Legend/Legend.js", [
  11345. h["Core/Animation/AnimationUtilities.js"],
  11346. h["Core/FormatUtilities.js"],
  11347. h["Core/Globals.js"],
  11348. h["Core/Series/Point.js"],
  11349. h["Core/Renderer/RendererUtilities.js"],
  11350. h["Core/Utilities.js"]
  11351. ], function(y, j, I, Z, F, U) {
  11352. var H = y.animObject, W = y.setAnimation, R = j.format;
  11353. y = I.isFirefox;
  11354. var S = I.marginNames;
  11355. I = I.win;
  11356. var v = F.distribute, d = U.addEvent, u = U.createElement, P = U.css, O = U.defined, N = U.discardElement, C = U.find, b = U.fireEvent, w = U.isNumber, x = U.merge, a = U.pick, c = U.relativeLength, p = U.stableSort, i = U.syncTimeout;
  11357. return F = U.wrap, U = function() {
  11358. function l(s, t) {
  11359. this.allItems = [], this.contentGroup = this.box = void 0, this.display = !1, this.group = void 0, this.offsetWidth = this.maxLegendWidth = this.maxItemWidth = this.legendWidth = this.legendHeight = this.lastLineHeight = this.lastItemY = this.itemY = this.itemX = this.itemMarginTop = this.itemMarginBottom = this.itemHeight = this.initialItemY = 0, this.options = {}, this.padding = 0, this.pages = [], this.proximate = !1, this.scrollGroup = void 0, this.widthOption = this.totalItemWidth = this.titleHeight = this.symbolWidth = this.symbolHeight = 0, this.chart = s, this.init(s, t);
  11360. }
  11361. return l.prototype.init = function(s, t) {
  11362. this.chart = s, this.setOptions(t), t.enabled && (this.render(), d(this.chart, "endResize", function() {
  11363. this.legend.positionCheckboxes();
  11364. }), this.proximate ? this.unchartrender = d(this.chart, "render", function() {
  11365. this.legend.proximatePositions(), this.legend.positionItems();
  11366. }) : this.unchartrender && this.unchartrender());
  11367. }, l.prototype.setOptions = function(s) {
  11368. var t = a(s.padding, 8);
  11369. this.options = s, this.chart.styledMode || (this.itemStyle = s.itemStyle, this.itemHiddenStyle = x(this.itemStyle, s.itemHiddenStyle)), this.itemMarginTop = s.itemMarginTop || 0, this.itemMarginBottom = s.itemMarginBottom || 0, this.padding = t, this.initialItemY = t - 5, this.symbolWidth = a(
  11370. s.symbolWidth,
  11371. 16
  11372. ), this.pages = [], this.proximate = s.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  11373. }, l.prototype.update = function(s, t) {
  11374. var o = this.chart;
  11375. this.setOptions(x(!0, this.options, s)), this.destroy(), o.isDirtyLegend = o.isDirtyBox = !0, a(t, !0) && o.redraw(), b(this, "afterUpdate");
  11376. }, l.prototype.colorizeItem = function(s, t) {
  11377. if (s.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  11378. var o = this.options, n = s.legendItem, A = s.legendLine, _ = s.legendSymbol, D = this.itemHiddenStyle.color;
  11379. o = t ? o.itemStyle.color : D;
  11380. var B = t && s.color || D, T = s.options && s.options.marker, X = { fill: B };
  11381. n && n.css({ fill: o, color: o }), A && A.attr({ stroke: B }), _ && (T && _.isMarker && (X = s.pointAttribs(), t || (X.stroke = X.fill = D)), _.attr(X));
  11382. }
  11383. b(this, "afterColorizeItem", { item: s, visible: t });
  11384. }, l.prototype.positionItems = function() {
  11385. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  11386. }, l.prototype.positionItem = function(s) {
  11387. var t = this, o = this.options, n = o.symbolPadding, A = !o.rtl, _ = s._legendItemPos;
  11388. o = _[0], _ = _[1];
  11389. var D = s.checkbox, B = s.legendGroup;
  11390. B && B.element && (n = { translateX: A ? o : this.legendWidth - o - 2 * n - 4, translateY: _ }, A = function() {
  11391. b(t, "afterPositionItem", { item: s });
  11392. }, O(B.translateY) ? B.animate(n, void 0, A) : (B.attr(n), A())), D && (D.x = o, D.y = _);
  11393. }, l.prototype.destroyItem = function(s) {
  11394. var t = s.checkbox;
  11395. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(o) {
  11396. s[o] && (s[o] = s[o].destroy());
  11397. }), t && N(s.checkbox);
  11398. }, l.prototype.destroy = function() {
  11399. function s(t) {
  11400. this[t] && (this[t] = this[t].destroy());
  11401. }
  11402. this.getAllItems().forEach(function(t) {
  11403. [
  11404. "legendItem",
  11405. "legendGroup"
  11406. ].forEach(s, t);
  11407. }), "clipRect up down pager nav box title group".split(" ").forEach(s, this), this.display = null;
  11408. }, l.prototype.positionCheckboxes = function() {
  11409. var s = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, o = this.titleHeight;
  11410. if (s) {
  11411. var n = s.translateY;
  11412. this.allItems.forEach(function(A) {
  11413. var _ = A.checkbox;
  11414. if (_) {
  11415. var D = n + o + _.y + (this.scrollOffset || 0) + 3;
  11416. P(_, { left: s.translateX + A.checkboxOffset + _.x - 20 + "px", top: D + "px", display: this.proximate || D > n - 6 && D < n + t - 6 ? "" : "none" });
  11417. }
  11418. }, this);
  11419. }
  11420. }, l.prototype.renderTitle = function() {
  11421. var s = this.options, t = this.padding, o = s.title, n = 0;
  11422. o.text && (this.title || (this.title = this.chart.renderer.label(o.text, t - 3, t - 4, null, null, null, s.useHTML, null, "legend-title").attr({ zIndex: 1 }), this.chart.styledMode || this.title.css(o.style), this.title.add(this.group)), o.width || this.title.css({ width: this.maxLegendWidth + "px" }), s = this.title.getBBox(), n = s.height, this.offsetWidth = s.width, this.contentGroup.attr({ translateY: n })), this.titleHeight = n;
  11423. }, l.prototype.setText = function(s) {
  11424. var t = this.options;
  11425. s.legendItem.attr({ text: t.labelFormat ? R(t.labelFormat, s, this.chart) : t.labelFormatter.call(s) });
  11426. }, l.prototype.renderItem = function(s) {
  11427. var t = this.chart, o = t.renderer, n = this.options, A = this.symbolWidth, _ = n.symbolPadding || 0, D = this.itemStyle, B = this.itemHiddenStyle, T = n.layout === "horizontal" ? a(n.itemDistance, 20) : 0, X = !n.rtl, g = !s.series, m = !g && s.series.drawLegendSymbol ? s.series : s, L = m.options, Y = this.createCheckboxForItem && L && L.showCheckbox, V = n.useHTML, Q = s.options.className, k = s.legendItem;
  11428. L = A + _ + T + (Y ? 20 : 0), k || (s.legendGroup = o.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + s.colorIndex + (Q ? " " + Q : "") + (g ? " highcharts-series-" + s.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), s.legendItem = k = o.text("", X ? A + _ : -_, this.baseline || 0, V), t.styledMode || k.css(x(s.visible ? D : B)), k.attr({ align: X ? "left" : "right", zIndex: 2 }).add(s.legendGroup), this.baseline || (this.fontMetrics = o.fontMetrics(t.styledMode ? 12 : D.fontSize, k), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, k.attr("y", this.baseline), this.symbolHeight = n.symbolHeight || this.fontMetrics.f, n.squareSymbol && (this.symbolWidth = a(n.symbolWidth, Math.max(this.symbolHeight, 16)), L = this.symbolWidth + _ + T + (Y ? 20 : 0), X && k.attr("x", this.symbolWidth + _))), m.drawLegendSymbol(this, s), this.setItemEvents && this.setItemEvents(s, k, V)), Y && !s.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(s), this.colorizeItem(s, s.visible), !t.styledMode && D.width || k.css({ width: (n.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(s), t = k.getBBox(), o = this.fontMetrics && this.fontMetrics.h || 0, s.itemWidth = s.checkboxOffset = n.itemWidth || s.legendItemWidth || t.width + L, this.maxItemWidth = Math.max(this.maxItemWidth, s.itemWidth), this.totalItemWidth += s.itemWidth, this.itemHeight = s.itemHeight = Math.round(s.legendItemHeight || (t.height > 1.5 * o ? t.height : o));
  11429. }, l.prototype.layoutItem = function(s) {
  11430. var t = this.options, o = this.padding, n = t.layout === "horizontal", A = s.itemHeight, _ = this.itemMarginBottom, D = this.itemMarginTop, B = n ? a(t.itemDistance, 20) : 0, T = this.maxLegendWidth;
  11431. t = t.alignColumns && this.totalItemWidth > T ? this.maxItemWidth : s.itemWidth, n && this.itemX - o + t > T && (this.itemX = o, this.lastLineHeight && (this.itemY += D + this.lastLineHeight + _), this.lastLineHeight = 0), this.lastItemY = D + this.itemY + _, this.lastLineHeight = Math.max(A, this.lastLineHeight), s._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += D + A + _, this.lastLineHeight = A), this.offsetWidth = this.widthOption || Math.max((n ? this.itemX - o - (s.checkbox ? 0 : B) : t) + o, this.offsetWidth);
  11432. }, l.prototype.getAllItems = function() {
  11433. var s = [];
  11434. return this.chart.series.forEach(function(t) {
  11435. var o = t && t.options;
  11436. t && a(o.showInLegend, O(o.linkedTo) ? !1 : void 0, !0) && (s = s.concat(t.legendItems || (o.legendType === "point" ? t.data : t)));
  11437. }), b(this, "afterGetAllItems", { allItems: s }), s;
  11438. }, l.prototype.getAlignment = function() {
  11439. var s = this.options;
  11440. return this.proximate ? s.align.charAt(0) + "tv" : s.floating ? "" : s.align.charAt(0) + s.verticalAlign.charAt(0) + s.layout.charAt(0);
  11441. }, l.prototype.adjustMargins = function(s, t) {
  11442. var o = this.chart, n = this.options, A = this.getAlignment();
  11443. A && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  11444. _.test(A) && !O(s[D]) && (o[S[D]] = Math.max(o[S[D]], o.legend[(D + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][D] * n[D % 2 ? "x" : "y"] + a(n.margin, 12) + t[D] + (o.titleOffset[D] || 0)));
  11445. });
  11446. }, l.prototype.proximatePositions = function() {
  11447. var s = this.chart, t = [], o = this.options.align === "left";
  11448. this.allItems.forEach(function(n) {
  11449. var A, _ = o;
  11450. if (n.yAxis) {
  11451. n.xAxis.options.reversed && (_ = !_), n.points && (A = C(_ ? n.points : n.points.slice(0).reverse(), function(B) {
  11452. return w(B.plotY);
  11453. })), _ = this.itemMarginTop + n.legendItem.getBBox().height + this.itemMarginBottom;
  11454. var D = n.yAxis.top - s.plotTop;
  11455. n.visible ? (A = A ? A.plotY : n.yAxis.height, A += D - 0.3 * _) : A = D + n.yAxis.height, t.push({ target: A, size: _, item: n });
  11456. }
  11457. }, this), v(t, s.plotHeight).forEach(function(n) {
  11458. n.item._legendItemPos && (n.item._legendItemPos[1] = s.plotTop - s.spacing[0] + n.pos);
  11459. });
  11460. }, l.prototype.render = function() {
  11461. var s = this.chart, t = s.renderer, o = this.options, n = this.padding, A = this.getAllItems(), _ = this.group, D = this.box;
  11462. this.itemX = n, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(o.width, s.spacingBox.width - n);
  11463. var B = s.spacingBox.width - 2 * n - o.x;
  11464. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (B /= 2), this.maxLegendWidth = this.widthOption || B, _ || (this.group = _ = t.g("legend").addClass(o.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = t.g().attr({ zIndex: 1 }).add(_), this.scrollGroup = t.g().add(this.contentGroup)), this.renderTitle(), p(A, function(X, g) {
  11465. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  11466. }), o.reversed && A.reverse(), this.allItems = A, this.display = B = !!A.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, A.forEach(this.renderItem, this), A.forEach(this.layoutItem, this), A = (this.widthOption || this.offsetWidth) + n;
  11467. var T = this.lastItemY + this.lastLineHeight + this.titleHeight;
  11468. T = this.handleOverflow(T), T += n, D || (this.box = D = t.rect().addClass("highcharts-legend-box").attr({ r: o.borderRadius }).add(_), D.isNew = !0), s.styledMode || D.attr({ stroke: o.borderColor, "stroke-width": o.borderWidth || 0, fill: o.backgroundColor || "none" }).shadow(o.shadow), 0 < A && 0 < T && (D[D.isNew ? "attr" : "animate"](D.crisp.call({}, { x: 0, y: 0, width: A, height: T }, D.strokeWidth())), D.isNew = !1), D[B ? "show" : "hide"](), s.styledMode && _.getStyle("display") === "none" && (A = T = 0), this.legendWidth = A, this.legendHeight = T, B && this.align(), this.proximate || this.positionItems(), b(this, "afterRender");
  11469. }, l.prototype.align = function(s) {
  11470. s === void 0 && (s = this.chart.spacingBox);
  11471. var t = this.chart, o = this.options, n = s.y;
  11472. /(lth|ct|rth)/.test(this.getAlignment()) && 0 < t.titleOffset[0] ? n += t.titleOffset[0] : /(lbh|cb|rbh)/.test(this.getAlignment()) && 0 < t.titleOffset[2] && (n -= t.titleOffset[2]), n !== s.y && (s = x(s, { y: n })), this.group.align(x(o, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : o.verticalAlign }), !0, s);
  11473. }, l.prototype.handleOverflow = function(s) {
  11474. var t = this, o = this.chart, n = o.renderer, A = this.options, _ = A.y, D = A.verticalAlign === "top", B = this.padding, T = A.maxHeight, X = A.navigation, g = a(X.animation, !0), m = X.arrowSize || 12, L = this.pages, Y = this.allItems, V = function(q) {
  11475. typeof q == "number" ? $.attr({ height: q }) : $ && (t.clipRect = $.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + B + "px,9999px," + (B + q) + "px,0)" : "auto");
  11476. }, Q = function(q) {
  11477. return t[q] = n.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(z), o.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  11478. }, k, G;
  11479. _ = o.spacingBox.height + (D ? -_ : _) - B;
  11480. var z = this.nav, $ = this.clipRect;
  11481. return A.layout !== "horizontal" || A.verticalAlign === "middle" || A.floating || (_ /= 2), T && (_ = Math.min(_, T)), L.length = 0, s && 0 < _ && s > _ && X.enabled !== !1 ? (this.clipHeight = k = Math.max(_ - 20 - this.titleHeight - B, 0), this.currentPage = a(this.currentPage, 1), this.fullHeight = s, Y.forEach(function(q, it) {
  11482. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  11483. (!rt || et - L[rt - 1] > k && (G || et) !== L[rt - 1]) && (L.push(G || et), rt++), q.pageIx = rt - 1, G && (Y[it - 1].pageIx = rt - 1), it === Y.length - 1 && et + nt - L[rt - 1] > k && nt <= k && (L.push(et), q.pageIx = rt), et !== G && (G = et);
  11484. }), $ || ($ = t.clipRect = n.clipRect(0, B, 9999, 0), t.contentGroup.clip($)), V(k), z || (this.nav = z = n.g().attr({ zIndex: 1 }).add(this.group), this.up = n.symbol("triangle", 0, 0, m, m).add(z), Q("upTracker").on(
  11485. "click",
  11486. function() {
  11487. t.scroll(-1, g);
  11488. }
  11489. ), this.pager = n.text("", 15, 10).addClass("highcharts-legend-navigation"), o.styledMode || this.pager.css(X.style), this.pager.add(z), this.down = n.symbol("triangle-down", 0, 0, m, m).add(z), Q("downTracker").on("click", function() {
  11490. t.scroll(1, g);
  11491. })), t.scroll(0), s = _) : z && (V(), this.nav = z.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), s;
  11492. }, l.prototype.scroll = function(s, t) {
  11493. var o = this, n = this.chart, A = this.pages, _ = A.length, D = this.clipHeight, B = this.options.navigation, T = this.pager, X = this.padding, g = this.currentPage + s;
  11494. g > _ && (g = _), 0 < g && (typeof t < "u" && W(t, n), this.nav.attr({ translateX: X, translateY: D + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  11495. m.attr({ class: g === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11496. }), T.attr({ text: g + "/" + _ }), [this.down, this.downTracker].forEach(
  11497. function(m) {
  11498. m.attr({ x: 18 + this.pager.getBBox().width, class: g === _ ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11499. },
  11500. this
  11501. ), n.styledMode || (this.up.attr({ fill: g === 1 ? B.inactiveColor : B.activeColor }), this.upTracker.css({ cursor: g === 1 ? "default" : "pointer" }), this.down.attr({ fill: g === _ ? B.inactiveColor : B.activeColor }), this.downTracker.css({ cursor: g === _ ? "default" : "pointer" })), this.scrollOffset = -A[g - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = g, this.positionCheckboxes(), s = H(a(t, n.renderer.globalAnimation, !0)), i(function() {
  11502. b(o, "afterScroll", { currentPage: g });
  11503. }, s.duration));
  11504. }, l.prototype.setItemEvents = function(s, t, o) {
  11505. var n = this, A = n.chart.renderer.boxWrapper, _ = s instanceof Z, D = "highcharts-legend-" + (_ ? "point" : "series") + "-active", B = n.chart.styledMode, T = function(X) {
  11506. n.allItems.forEach(function(g) {
  11507. s !== g && [g].concat(g.linkedSeries || []).forEach(function(m) {
  11508. m.setState(X, !_);
  11509. });
  11510. });
  11511. };
  11512. (o ? [t, s.legendSymbol] : [s.legendGroup]).forEach(function(X) {
  11513. X && X.on("mouseover", function() {
  11514. s.visible && T("inactive"), s.setState("hover"), s.visible && A.addClass(D), B || t.css(n.options.itemHoverStyle);
  11515. }).on("mouseout", function() {
  11516. n.chart.styledMode || t.css(x(s.visible ? n.itemStyle : n.itemHiddenStyle)), T(""), A.removeClass(D), s.setState();
  11517. }).on("click", function(g) {
  11518. var m = function() {
  11519. s.setVisible && s.setVisible(), T(s.visible ? "inactive" : "");
  11520. };
  11521. A.removeClass(D), g = { browserEvent: g }, s.firePointEvent ? s.firePointEvent("legendItemClick", g, m) : b(s, "legendItemClick", g, m);
  11522. });
  11523. });
  11524. }, l.prototype.createCheckboxForItem = function(s) {
  11525. s.checkbox = u(
  11526. "input",
  11527. { type: "checkbox", className: "highcharts-legend-checkbox", checked: s.selected, defaultChecked: s.selected },
  11528. this.options.itemCheckboxStyle,
  11529. this.chart.container
  11530. ), d(s.checkbox, "click", function(t) {
  11531. b(s.series || s, "checkboxClick", { checked: t.target.checked, item: s }, function() {
  11532. s.select();
  11533. });
  11534. });
  11535. }, l;
  11536. }(), (/Trident\/7\.0/.test(I.navigator && I.navigator.userAgent) || y) && F(U.prototype, "positionItem", function(l, s) {
  11537. var t = this, o = function() {
  11538. s._legendItemPos && l.call(t, s);
  11539. };
  11540. o(), t.bubbleLegend || setTimeout(o);
  11541. }), U;
  11542. }), E(
  11543. h,
  11544. "Core/Series/SeriesRegistry.js",
  11545. [h["Core/Globals.js"], h["Core/DefaultOptions.js"], h["Core/Series/Point.js"], h["Core/Utilities.js"]],
  11546. function(y, j, I, Z) {
  11547. var F = j.defaultOptions, U = Z.error, H = Z.extendClass, W = Z.merge, R;
  11548. return function(S) {
  11549. function v(d, u) {
  11550. var P = F.plotOptions || {}, O = u.defaultOptions;
  11551. u.prototype.pointClass || (u.prototype.pointClass = I), u.prototype.type = d, O && (P[d] = O), S.seriesTypes[d] = u;
  11552. }
  11553. S.seriesTypes = y.seriesTypes, S.getSeries = function(d, u) {
  11554. u === void 0 && (u = {});
  11555. var P = d.options.chart;
  11556. P = u.type || P.type || P.defaultSeriesType || "";
  11557. var O = S.seriesTypes[P];
  11558. return S || U(17, !0, d, { missingModuleFor: P }), P = new O(), typeof P.init == "function" && P.init(d, u), P;
  11559. }, S.registerSeriesType = v, S.seriesType = function(d, u, P, O, N) {
  11560. var C = F.plotOptions || {};
  11561. return u = u || "", C[d] = W(C[u], P), v(d, H(S.seriesTypes[u] || function() {
  11562. }, O)), S.seriesTypes[d].prototype.type = d, N && (S.seriesTypes[d].prototype.pointClass = H(I, N)), S.seriesTypes[d];
  11563. };
  11564. }(R || (R = {})), R;
  11565. }
  11566. ), E(h, "Core/Chart/Chart.js", [
  11567. h["Core/Animation/AnimationUtilities.js"],
  11568. h["Core/Axis/Axis.js"],
  11569. h["Core/FormatUtilities.js"],
  11570. h["Core/Foundation.js"],
  11571. h["Core/Globals.js"],
  11572. h["Core/Legend/Legend.js"],
  11573. h["Core/MSPointer.js"],
  11574. h["Core/DefaultOptions.js"],
  11575. h["Core/Pointer.js"],
  11576. h["Core/Renderer/RendererRegistry.js"],
  11577. h["Core/Series/SeriesRegistry.js"],
  11578. h["Core/Renderer/SVG/SVGRenderer.js"],
  11579. h["Core/Time.js"],
  11580. h["Core/Utilities.js"],
  11581. h["Core/Renderer/HTML/AST.js"]
  11582. ], function(y, j, I, Z, F, U, H, W, R, S, v, d, u, P, O) {
  11583. var N = y.animate, C = y.animObject, b = y.setAnimation, w = I.numberFormat, x = Z.registerEventOptions, a = F.charts, c = F.doc, p = F.marginNames, i = F.svg, l = F.win, s = W.defaultOptions, t = W.defaultTime, o = v.seriesTypes, n = P.addEvent, A = P.attr, _ = P.cleanRecursively, D = P.createElement, B = P.css, T = P.defined, X = P.discardElement, g = P.erase, m = P.error, L = P.extend, Y = P.find, V = P.fireEvent, Q = P.getStyle, k = P.isArray, G = P.isNumber, z = P.isObject, $ = P.isString, q = P.merge, it = P.objectEach, et = P.pick, nt = P.pInt, rt = P.relativeLength, ct = P.removeEvent, gt = P.splat, dt = P.syncTimeout, lt = P.uniqueKey;
  11584. return y = function() {
  11585. function at(J, tt, st) {
  11586. this.series = this.renderTo = this.renderer = this.pointer = this.pointCount = this.plotWidth = this.plotTop = this.plotLeft = this.plotHeight = this.plotBox = this.options = this.numberFormatter = this.margin = this.legend = this.labelCollectors = this.isResizing = this.index = this.eventOptions = this.container = this.colorCounter = this.clipBox = this.chartWidth = this.chartHeight = this.bounds = this.axisOffset = this.axes = void 0, this.sharedClips = {}, this.yAxis = this.xAxis = this.userOptions = this.titleOffset = this.time = this.symbolCounter = this.spacingBox = this.spacing = void 0, this.getArgs(J, tt, st);
  11587. }
  11588. return at.chart = function(J, tt, st) {
  11589. return new at(J, tt, st);
  11590. }, at.prototype.getArgs = function(J, tt, st) {
  11591. $(J) || J.nodeName ? (this.renderTo = J, this.init(tt, st)) : this.init(J, tt);
  11592. }, at.prototype.init = function(J, tt) {
  11593. var st = J.plotOptions || {};
  11594. V(this, "init", { args: arguments }, function() {
  11595. var ht = q(s, J), pt = ht.chart;
  11596. it(ht.plotOptions, function(yt, vt) {
  11597. z(yt) && (yt.tooltip = st[vt] && q(st[vt].tooltip) || void 0);
  11598. }), ht.tooltip.userOptions = J.chart && J.chart.forExport && J.tooltip.userOptions || J.tooltip, this.userOptions = J, this.margin = [], this.spacing = [], this.bounds = { h: {}, v: {} }, this.labelCollectors = [], this.callback = tt, this.isResizing = 0, this.options = ht, this.axes = [], this.series = [], this.time = J.time && Object.keys(J.time).length ? new u(J.time) : F.time, this.numberFormatter = pt.numberFormatter || w, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = a.length, a.push(this), F.chartCount++, x(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, V(this, "afterInit"), this.firstRender();
  11599. });
  11600. }, at.prototype.initSeries = function(J) {
  11601. var tt = this.options.chart;
  11602. tt = J.type || tt.type || tt.defaultSeriesType;
  11603. var st = o[tt];
  11604. return st || m(17, !0, this, { missingModuleFor: tt }), tt = new st(), typeof tt.init == "function" && tt.init(this, J), tt;
  11605. }, at.prototype.setSeriesData = function() {
  11606. this.getSeriesOrderByLinks().forEach(function(J) {
  11607. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  11608. });
  11609. }, at.prototype.getSeriesOrderByLinks = function() {
  11610. return this.series.concat().sort(function(J, tt) {
  11611. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  11612. });
  11613. }, at.prototype.orderSeries = function(J) {
  11614. var tt = this.series;
  11615. J = J || 0;
  11616. for (var st = tt.length; J < st; ++J)
  11617. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  11618. }, at.prototype.isInsidePlot = function(J, tt, st) {
  11619. st === void 0 && (st = {});
  11620. var ht = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Ct = this.scrollablePlotBox, Pt = 0, kt = 0;
  11621. st.visiblePlotOnly && this.scrollingContainer && (kt = this.scrollingContainer, Pt = kt.scrollLeft, kt = kt.scrollTop);
  11622. var St = st.series;
  11623. if (pt = st.visiblePlotOnly && Ct || pt, Ct = st.inverted ? tt : J, tt = st.inverted ? J : tt, J = { x: Ct, y: tt, isInsidePlot: !0 }, !st.ignoreX) {
  11624. var Dt = St && (ht ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  11625. Ct = st.paneCoordinates ? Dt.pos + Ct : yt + Ct, Ct >= Math.max(Pt + yt, Dt.pos) && Ct <= Math.min(Pt + yt + pt.width, Dt.pos + Dt.len) || (J.isInsidePlot = !1);
  11626. }
  11627. return !st.ignoreY && J.isInsidePlot && (ht = St && (ht ? St.xAxis : St.yAxis) || { pos: vt, len: 1 / 0 }, st = st.paneCoordinates ? ht.pos + tt : vt + tt, st >= Math.max(kt + vt, ht.pos) && st <= Math.min(kt + vt + pt.height, ht.pos + ht.len) || (J.isInsidePlot = !1)), V(this, "afterIsInsidePlot", J), J.isInsidePlot;
  11628. }, at.prototype.redraw = function(J) {
  11629. V(this, "beforeRedraw");
  11630. var tt = this.hasCartesianSeries ? this.axes : this.colorAxis || [], st = this.series, ht = this.pointer, pt = this.legend, yt = this.userOptions.legend, vt = this.renderer, Ct = vt.isHidden(), Pt = [], kt = this.isDirtyBox, St = this.isDirtyLegend;
  11631. for (this.setResponsive && this.setResponsive(!1), b(this.hasRendered ? J : !1, this), Ct && this.temporaryDisplay(), this.layOutTitles(), J = st.length; J--; ) {
  11632. var Dt = st[J];
  11633. if (Dt.options.stacking || Dt.options.centerInCategory) {
  11634. var Lt = !0;
  11635. if (Dt.isDirty) {
  11636. var Nt = !0;
  11637. break;
  11638. }
  11639. }
  11640. }
  11641. if (Nt)
  11642. for (J = st.length; J--; )
  11643. Dt = st[J], Dt.options.stacking && (Dt.isDirty = !0);
  11644. st.forEach(function(Et) {
  11645. Et.isDirty && (Et.options.legendType === "point" ? (typeof Et.updateTotals == "function" && Et.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Et.isDirtyData && V(Et, "updatedData");
  11646. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), Lt && this.getStacks(), tt.forEach(function(Et) {
  11647. Et.updateNames(), Et.setScale();
  11648. }), this.getMargins(), tt.forEach(function(Et) {
  11649. Et.isDirty && (kt = !0);
  11650. }), tt.forEach(function(Et) {
  11651. var Kt = Et.min + "," + Et.max;
  11652. Et.extKey !== Kt && (Et.extKey = Kt, Pt.push(function() {
  11653. V(Et, "afterSetExtremes", L(Et.eventArgs, Et.getExtremes())), delete Et.eventArgs;
  11654. })), (kt || Lt) && Et.redraw();
  11655. }), kt && this.drawChartBox(), V(this, "predraw"), st.forEach(function(Et) {
  11656. (kt || Et.isDirty) && Et.visible && Et.redraw(), Et.isDirtyData = !1;
  11657. }), ht && ht.reset(!0), vt.draw(), V(this, "redraw"), V(this, "render"), Ct && this.temporaryDisplay(!0), Pt.forEach(function(Et) {
  11658. Et.call();
  11659. });
  11660. }, at.prototype.get = function(J) {
  11661. function tt(yt) {
  11662. return yt.id === J || yt.options && yt.options.id === J;
  11663. }
  11664. for (var st = this.series, ht = Y(this.axes, tt) || Y(this.series, tt), pt = 0; !ht && pt < st.length; pt++)
  11665. ht = Y(st[pt].points || [], tt);
  11666. return ht;
  11667. }, at.prototype.getAxes = function() {
  11668. var J = this, tt = this.options, st = tt.xAxis = gt(tt.xAxis || {});
  11669. tt = tt.yAxis = gt(tt.yAxis || {}), V(this, "getAxes"), st.forEach(function(ht, pt) {
  11670. ht.index = pt, ht.isX = !0;
  11671. }), tt.forEach(function(ht, pt) {
  11672. ht.index = pt;
  11673. }), st.concat(tt).forEach(function(ht) {
  11674. new j(J, ht);
  11675. }), V(this, "afterGetAxes");
  11676. }, at.prototype.getSelectedPoints = function() {
  11677. return this.series.reduce(function(J, tt) {
  11678. return tt.getPointsCollection().forEach(function(st) {
  11679. et(st.selectedStaging, st.selected) && J.push(st);
  11680. }), J;
  11681. }, []);
  11682. }, at.prototype.getSelectedSeries = function() {
  11683. return this.series.filter(function(J) {
  11684. return J.selected;
  11685. });
  11686. }, at.prototype.setTitle = function(J, tt, st) {
  11687. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription(
  11688. "caption",
  11689. void 0
  11690. ), this.layOutTitles(st);
  11691. }, at.prototype.applyDescription = function(J, tt) {
  11692. var st = this, ht = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  11693. ht = this.options[J] = q(!this.styledMode && { style: ht }, this.options[J], tt);
  11694. var pt = this[J];
  11695. pt && tt && (this[J] = pt = pt.destroy()), ht && !pt && (pt = this.renderer.text(ht.text, 0, 0, ht.useHTML).attr({ align: ht.align, class: "highcharts-" + J, zIndex: ht.zIndex || 4 }).add(), pt.update = function(yt) {
  11696. st[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  11697. }, this.styledMode || pt.css(ht.style), this[J] = pt);
  11698. }, at.prototype.layOutTitles = function(J) {
  11699. var tt = [0, 0, 0], st = this.renderer, ht = this.spacingBox;
  11700. ["title", "subtitle", "caption"].forEach(function(yt) {
  11701. var vt = this[yt], Ct = this.options[yt], Pt = Ct.verticalAlign || "top";
  11702. yt = yt === "title" ? Pt === "top" ? -3 : 0 : Pt === "top" ? tt[0] + 2 : 0;
  11703. var kt;
  11704. if (vt) {
  11705. this.styledMode || (kt = Ct.style && Ct.style.fontSize), kt = st.fontMetrics(kt, vt).b, vt.css({ width: (Ct.width || ht.width + (Ct.widthAdjust || 0)) + "px" });
  11706. var St = Math.round(vt.getBBox(Ct.useHTML).height);
  11707. vt.align(L({ y: Pt === "bottom" ? kt : yt + kt, height: St }, Ct), !1, "spacingBox"), Ct.floating || (Pt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Pt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  11708. }
  11709. }, this), tt[0] && (this.options.title.verticalAlign || "top") === "top" && (tt[0] += this.options.title.margin), tt[2] && this.options.caption.verticalAlign === "bottom" && (tt[2] += this.options.caption.margin);
  11710. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  11711. this.titleOffset = tt, V(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  11712. }, at.prototype.getChartSize = function() {
  11713. var J = this.options.chart, tt = J.width;
  11714. J = J.height;
  11715. var st = this.renderTo;
  11716. T(tt) || (this.containerWidth = Q(st, "width")), T(J) || (this.containerHeight = Q(st, "height")), this.chartWidth = Math.max(0, tt || this.containerWidth || 600), this.chartHeight = Math.max(0, rt(J, this.chartWidth) || (1 < this.containerHeight ? this.containerHeight : 400));
  11717. }, at.prototype.temporaryDisplay = function(J) {
  11718. var tt = this.renderTo;
  11719. if (J)
  11720. for (; tt && tt.style; )
  11721. tt.hcOrigStyle && (B(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  11722. else
  11723. for (; tt && tt.style && (c.body.contains(tt) || tt.parentNode || (tt.hcOrigDetached = !0, c.body.appendChild(tt)), (Q(tt, "display", !1) === "none" || tt.hcOricDetached) && (tt.hcOrigStyle = { display: tt.style.display, height: tt.style.height, overflow: tt.style.overflow }, J = { display: "block", overflow: "hidden" }, tt !== this.renderTo && (J.height = 0), B(tt, J), tt.offsetWidth || tt.style.setProperty("display", "block", "important")), tt = tt.parentNode, tt !== c.body); )
  11724. ;
  11725. }, at.prototype.setClassName = function(J) {
  11726. this.container.className = "highcharts-container " + (J || "");
  11727. }, at.prototype.getContainer = function() {
  11728. var J = this.options, tt = J.chart, st = lt(), ht, pt = this.renderTo;
  11729. pt || (this.renderTo = pt = tt.renderTo), $(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  11730. var yt = nt(A(pt, "data-highcharts-chart"));
  11731. G(yt) && a[yt] && a[yt].hasRendered && a[yt].destroy(), A(pt, "data-highcharts-chart", this.index), pt.innerHTML = O.emptyHTML, tt.skipClone || pt.offsetWidth || this.temporaryDisplay(), this.getChartSize(), yt = this.chartWidth;
  11732. var vt = this.chartHeight;
  11733. if (B(pt, { overflow: "hidden" }), this.styledMode || (ht = L({ position: "relative", overflow: "hidden", width: yt + "px", height: vt + "px", textAlign: "left", lineHeight: "normal", zIndex: 0, "-webkit-tap-highlight-color": "rgba(0,0,0,0)", userSelect: "none", "touch-action": "manipulation", outline: "none" }, tt.style || {})), this.container = st = D("div", { id: st }, ht, pt), this._cursor = st.style.cursor, this.renderer = new (tt.renderer || !i ? S.getRendererType(tt.renderer) : d)(st, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), b(
  11734. void 0,
  11735. this
  11736. ), this.setClassName(tt.className), this.styledMode)
  11737. for (var Ct in J.defs)
  11738. this.renderer.definition(J.defs[Ct]);
  11739. else
  11740. this.renderer.setStyle(tt.style);
  11741. this.renderer.chartIndex = this.index, V(this, "afterGetContainer");
  11742. }, at.prototype.getMargins = function(J) {
  11743. var tt = this.spacing, st = this.margin, ht = this.titleOffset;
  11744. this.resetMargins(), ht[0] && !T(st[0]) && (this.plotTop = Math.max(this.plotTop, ht[0] + tt[0])), ht[2] && !T(st[2]) && (this.marginBottom = Math.max(this.marginBottom, ht[2] + tt[2])), this.legend && this.legend.display && this.legend.adjustMargins(
  11745. st,
  11746. tt
  11747. ), V(this, "getMargins"), J || this.getAxisMargins();
  11748. }, at.prototype.getAxisMargins = function() {
  11749. var J = this, tt = J.axisOffset = [0, 0, 0, 0], st = J.colorAxis, ht = J.margin, pt = function(yt) {
  11750. yt.forEach(function(vt) {
  11751. vt.visible && vt.getOffset();
  11752. });
  11753. };
  11754. J.hasCartesianSeries ? pt(J.axes) : st && st.length && pt(st), p.forEach(function(yt, vt) {
  11755. T(ht[vt]) || (J[yt] += tt[vt]);
  11756. }), J.setChartSize();
  11757. }, at.prototype.reflow = function(J) {
  11758. var tt = this, st = tt.options.chart, ht = tt.renderTo, pt = T(st.width) && T(st.height), yt = st.width || Q(ht, "width");
  11759. st = st.height || Q(ht, "height"), ht = J ? J.target : l, delete tt.pointer.chartPosition, !pt && !tt.isPrinting && yt && st && (ht === l || ht === c) && ((yt !== tt.containerWidth || st !== tt.containerHeight) && (P.clearTimeout(tt.reflowTimeout), tt.reflowTimeout = dt(function() {
  11760. tt.container && tt.setSize(void 0, void 0, !1);
  11761. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = st);
  11762. }, at.prototype.setReflow = function(J) {
  11763. var tt = this;
  11764. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = n(l, "resize", function(st) {
  11765. tt.options && tt.reflow(st);
  11766. }), n(this, "destroy", this.unbindReflow));
  11767. }, at.prototype.setSize = function(J, tt, st) {
  11768. var ht = this, pt = ht.renderer;
  11769. ht.isResizing += 1, b(st, ht), st = pt.globalAnimation, ht.oldChartHeight = ht.chartHeight, ht.oldChartWidth = ht.chartWidth, typeof J < "u" && (ht.options.chart.width = J), typeof tt < "u" && (ht.options.chart.height = tt), ht.getChartSize(), ht.styledMode || (st ? N : B)(ht.container, { width: ht.chartWidth + "px", height: ht.chartHeight + "px" }, st), ht.setChartSize(!0), pt.setSize(ht.chartWidth, ht.chartHeight, st), ht.axes.forEach(function(yt) {
  11770. yt.isDirty = !0, yt.setScale();
  11771. }), ht.isDirtyLegend = !0, ht.isDirtyBox = !0, ht.layOutTitles(), ht.getMargins(), ht.redraw(st), ht.oldChartHeight = null, V(ht, "resize"), dt(function() {
  11772. ht && V(ht, "endResize", null, function() {
  11773. --ht.isResizing;
  11774. });
  11775. }, C(st).duration);
  11776. }, at.prototype.setChartSize = function(J) {
  11777. var tt = this.inverted, st = this.renderer, ht = this.chartWidth, pt = this.chartHeight, yt = this.options.chart, vt = this.spacing, Ct = this.clipOffset, Pt, kt, St, Dt;
  11778. this.plotLeft = Pt = Math.round(this.plotLeft), this.plotTop = kt = Math.round(this.plotTop), this.plotWidth = St = Math.max(0, Math.round(ht - Pt - this.marginRight)), this.plotHeight = Dt = Math.max(0, Math.round(pt - kt - this.marginBottom)), this.plotSizeX = tt ? Dt : St, this.plotSizeY = tt ? St : Dt, this.plotBorderWidth = yt.plotBorderWidth || 0, this.spacingBox = st.spacingBox = { x: vt[3], y: vt[0], width: ht - vt[3] - vt[1], height: pt - vt[0] - vt[2] }, this.plotBox = st.plotBox = { x: Pt, y: kt, width: St, height: Dt }, tt = 2 * Math.floor(this.plotBorderWidth / 2), ht = Math.ceil(Math.max(tt, Ct[3]) / 2), pt = Math.ceil(Math.max(tt, Ct[0]) / 2), this.clipBox = { x: ht, y: pt, width: Math.floor(this.plotSizeX - Math.max(tt, Ct[1]) / 2 - ht), height: Math.max(0, Math.floor(this.plotSizeY - Math.max(tt, Ct[2]) / 2 - pt)) }, J || (this.axes.forEach(function(Lt) {
  11779. Lt.setAxisSize(), Lt.setAxisTranslation();
  11780. }), st.alignElements()), V(this, "afterSetChartSize", { skipAxes: J });
  11781. }, at.prototype.resetMargins = function() {
  11782. V(this, "resetMargins");
  11783. var J = this, tt = J.options.chart;
  11784. ["margin", "spacing"].forEach(function(st) {
  11785. var ht = tt[st], pt = z(ht) ? ht : [ht, ht, ht, ht];
  11786. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  11787. J[st][vt] = et(tt[st + yt], pt[vt]);
  11788. });
  11789. }), p.forEach(function(st, ht) {
  11790. J[st] = et(J.margin[ht], J.spacing[ht]);
  11791. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  11792. }, at.prototype.drawChartBox = function() {
  11793. var J = this.options.chart, tt = this.renderer, st = this.chartWidth, ht = this.chartHeight, pt = this.styledMode, yt = this.plotBGImage, vt = J.backgroundColor, Ct = J.plotBackgroundColor, Pt = J.plotBackgroundImage, kt = this.plotLeft, St = this.plotTop, Dt = this.plotWidth, Lt = this.plotHeight, Nt = this.plotBox, Et = this.clipRect, Kt = this.clipBox, Gt = this.chartBackground, Wt = this.plotBackground, Jt = this.plotBorder, be, zt = "animate";
  11794. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), zt = "attr"), pt)
  11795. var Vt = be = Gt.strokeWidth();
  11796. else
  11797. Vt = J.borderWidth || 0, be = Vt + (J.shadow ? 8 : 0), vt = { fill: vt || "none" }, (Vt || Gt["stroke-width"]) && (vt.stroke = J.borderColor, vt["stroke-width"] = Vt), Gt.attr(vt).shadow(J.shadow);
  11798. Gt[zt]({ x: be / 2, y: be / 2, width: st - be - Vt % 2, height: ht - be - Vt % 2, r: J.borderRadius }), zt = "animate", Wt || (zt = "attr", this.plotBackground = Wt = tt.rect().addClass("highcharts-plot-background").add()), Wt[zt](Nt), pt || (Wt.attr({ fill: Ct || "none" }).shadow(J.plotShadow), Pt && (yt ? (Pt !== yt.attr("href") && yt.attr("href", Pt), yt.animate(Nt)) : this.plotBGImage = tt.image(Pt, kt, St, Dt, Lt).add())), Et ? Et.animate({ width: Kt.width, height: Kt.height }) : this.clipRect = tt.clipRect(Kt), zt = "animate", Jt || (zt = "attr", this.plotBorder = Jt = tt.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()), pt || Jt.attr({ stroke: J.plotBorderColor, "stroke-width": J.plotBorderWidth || 0, fill: "none" }), Jt[zt](Jt.crisp({ x: kt, y: St, width: Dt, height: Lt }, -Jt.strokeWidth())), this.isDirtyBox = !1, V(this, "afterDrawChartBox");
  11799. }, at.prototype.propFromSeries = function() {
  11800. var J = this, tt = J.options.chart, st = J.options.series, ht, pt, yt;
  11801. ["inverted", "angular", "polar"].forEach(function(vt) {
  11802. for (pt = o[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], ht = st && st.length; !yt && ht--; )
  11803. (pt = o[st[ht].type]) && pt.prototype[vt] && (yt = !0);
  11804. J[vt] = yt;
  11805. });
  11806. }, at.prototype.linkSeries = function() {
  11807. var J = this, tt = J.series;
  11808. tt.forEach(function(st) {
  11809. st.linkedSeries.length = 0;
  11810. }), tt.forEach(function(st) {
  11811. var ht = st.options.linkedTo;
  11812. $(ht) && (ht = ht === ":previous" ? J.series[st.index - 1] : J.get(ht)) && ht.linkedParent !== st && (ht.linkedSeries.push(st), st.linkedParent = ht, ht.enabledDataSorting && st.setDataSortingOptions(), st.visible = et(st.options.visible, ht.options.visible, st.visible));
  11813. }), V(this, "afterLinkSeries");
  11814. }, at.prototype.renderSeries = function() {
  11815. this.series.forEach(function(J) {
  11816. J.translate(), J.render();
  11817. });
  11818. }, at.prototype.renderLabels = function() {
  11819. var J = this, tt = J.options.labels;
  11820. tt.items && tt.items.forEach(function(st) {
  11821. var ht = L(tt.style, st.style), pt = nt(ht.left) + J.plotLeft, yt = nt(ht.top) + J.plotTop + 12;
  11822. delete ht.left, delete ht.top, J.renderer.text(st.html, pt, yt).attr({ zIndex: 2 }).css(ht).add();
  11823. });
  11824. }, at.prototype.render = function() {
  11825. var J = this.axes, tt = this.colorAxis, st = this.renderer, ht = this.options, pt = function(kt) {
  11826. kt.forEach(function(St) {
  11827. St.visible && St.render();
  11828. });
  11829. }, yt = 0;
  11830. this.setTitle(), this.legend = new U(this, ht.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), ht = this.plotWidth, J.some(function(kt) {
  11831. if (kt.horiz && kt.visible && kt.options.labels.enabled && kt.series.length)
  11832. return yt = 21, !0;
  11833. });
  11834. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  11835. J.forEach(function(kt) {
  11836. kt.setScale();
  11837. }), this.getAxisMargins();
  11838. var Ct = 1.1 < ht / this.plotWidth, Pt = 1.05 < vt / this.plotHeight;
  11839. (Ct || Pt) && (J.forEach(function(kt) {
  11840. (kt.horiz && Ct || !kt.horiz && Pt) && kt.setTickInterval(!0);
  11841. }), this.getMargins()), this.drawChartBox(), this.hasCartesianSeries ? pt(J) : tt && tt.length && pt(tt), this.seriesGroup || (this.seriesGroup = st.g("series-group").attr({ zIndex: 3 }).add()), this.renderSeries(), this.renderLabels(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = !0;
  11842. }, at.prototype.addCredits = function(J) {
  11843. var tt = this, st = q(!0, this.options.credits, J);
  11844. st.enabled && !this.credits && (this.credits = this.renderer.text(st.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  11845. st.href && (l.location.href = st.href);
  11846. }).attr({ align: st.position.align, zIndex: 8 }), tt.styledMode || this.credits.css(st.style), this.credits.add().align(st.position), this.credits.update = function(ht) {
  11847. tt.credits = tt.credits.destroy(), tt.addCredits(ht);
  11848. });
  11849. }, at.prototype.destroy = function() {
  11850. var J = this, tt = J.axes, st = J.series, ht = J.container, pt = ht && ht.parentNode, yt;
  11851. for (V(J, "destroy"), J.renderer.forExport ? g(a, J) : a[J.index] = void 0, F.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  11852. tt[yt] = tt[yt].destroy();
  11853. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = st.length; yt--; )
  11854. st[yt] = st[yt].destroy();
  11855. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  11856. var Ct = J[vt];
  11857. Ct && Ct.destroy && (J[vt] = Ct.destroy());
  11858. }), ht && (ht.innerHTML = O.emptyHTML, ct(ht), pt && X(ht)), it(J, function(vt, Ct) {
  11859. delete J[Ct];
  11860. });
  11861. }, at.prototype.firstRender = function() {
  11862. var J = this, tt = J.options;
  11863. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (k(tt.series) ? tt.series : []).forEach(function(st) {
  11864. J.initSeries(st);
  11865. }), J.linkSeries(), J.setSeriesData(), V(J, "beforeRender"), R && (H.isRequired() ? J.pointer = new H(J, tt) : J.pointer = new R(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  11866. }, at.prototype.onload = function() {
  11867. this.callbacks.concat([this.callback]).forEach(function(J) {
  11868. J && typeof this.index < "u" && J.apply(this, [this]);
  11869. }, this), V(this, "load"), V(this, "render"), T(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  11870. }, at.prototype.addSeries = function(J, tt, st) {
  11871. var ht = this, pt;
  11872. return J && (tt = et(tt, !0), V(ht, "addSeries", { options: J }, function() {
  11873. pt = ht.initSeries(J), ht.isDirtyLegend = !0, ht.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), V(ht, "afterAddSeries", { series: pt }), tt && ht.redraw(st);
  11874. })), pt;
  11875. }, at.prototype.addAxis = function(J, tt, st, ht) {
  11876. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: st, animation: ht });
  11877. }, at.prototype.addColorAxis = function(J, tt, st) {
  11878. return this.createAxis(
  11879. "colorAxis",
  11880. { axis: J, redraw: tt, animation: st }
  11881. );
  11882. }, at.prototype.createAxis = function(J, tt) {
  11883. return J = new j(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  11884. }, at.prototype.showLoading = function(J) {
  11885. var tt = this, st = tt.options, ht = st.loading, pt = function() {
  11886. yt && B(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  11887. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  11888. yt || (tt.loadingDiv = yt = D("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = D("span", { className: "highcharts-loading-inner" }, null, yt), n(tt, "redraw", pt)), yt.className = "highcharts-loading", O.setElementHTML(vt, et(J, st.lang.loading, "")), tt.styledMode || (B(yt, L(ht.style, { zIndex: 10 })), B(vt, ht.labelStyle), tt.loadingShown || (B(yt, { opacity: 0, display: "" }), N(yt, { opacity: ht.style.opacity || 0.5 }, { duration: ht.showDuration || 0 }))), tt.loadingShown = !0, pt();
  11889. }, at.prototype.hideLoading = function() {
  11890. var J = this.options, tt = this.loadingDiv;
  11891. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || N(tt, { opacity: 0 }, { duration: J.loading.hideDuration || 100, complete: function() {
  11892. B(tt, { display: "none" });
  11893. } })), this.loadingShown = !1;
  11894. }, at.prototype.update = function(J, tt, st, ht) {
  11895. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Ct = [], Pt, kt;
  11896. V(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = _(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  11897. var St = J.chart;
  11898. if (St) {
  11899. if (q(!0, pt.options.chart, St), "className" in St && pt.setClassName(St.className), "reflow" in St && pt.setReflow(St.reflow), "inverted" in St || "polar" in St || "type" in St) {
  11900. pt.propFromSeries();
  11901. var Dt = !0;
  11902. }
  11903. "alignTicks" in St && (Dt = !0), "events" in St && x(this, St), it(St, function(Lt, Nt) {
  11904. pt.propsRequireUpdateSeries.indexOf("chart." + Nt) !== -1 && (Pt = !0), pt.propsRequireDirtyBox.indexOf(Nt) !== -1 && (pt.isDirtyBox = !0), pt.propsRequireReflow.indexOf(Nt) !== -1 && (vt ? pt.isDirtyBox = !0 : kt = !0);
  11905. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  11906. }
  11907. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new u(J.time)), q(
  11908. !0,
  11909. pt.options.time,
  11910. J.time
  11911. )), it(J, function(Lt, Nt) {
  11912. pt[Nt] && typeof pt[Nt].update == "function" ? pt[Nt].update(Lt, !1) : typeof pt[yt[Nt]] == "function" ? pt[yt[Nt]](Lt) : Nt !== "colors" && pt.collectionsWithUpdate.indexOf(Nt) === -1 && q(!0, pt.options[Nt], J[Nt]), Nt !== "chart" && pt.propsRequireUpdateSeries.indexOf(Nt) !== -1 && (Pt = !0);
  11913. }), this.collectionsWithUpdate.forEach(function(Lt) {
  11914. if (J[Lt]) {
  11915. var Nt = [];
  11916. pt[Lt].forEach(function(Et, Kt) {
  11917. Et.options.isInternal || Nt.push(et(Et.options.index, Kt));
  11918. }), gt(J[Lt]).forEach(function(Et, Kt) {
  11919. var Gt = T(Et.id), Wt;
  11920. Gt && (Wt = pt.get(Et.id)), !Wt && pt[Lt] && (Wt = pt[Lt][Nt ? Nt[Kt] : Kt]) && Gt && T(Wt.options.id) && (Wt = void 0), Wt && Wt.coll === Lt && (Wt.update(Et, !1), st && (Wt.touched = !0)), !Wt && st && pt.collectionsWithInit[Lt] && (pt.collectionsWithInit[Lt][0].apply(pt, [Et].concat(pt.collectionsWithInit[Lt][1] || []).concat([!1])).touched = !0);
  11921. }), st && pt[Lt].forEach(function(Et) {
  11922. Et.touched || Et.options.isInternal ? delete Et.touched : Ct.push(Et);
  11923. });
  11924. }
  11925. }), Ct.forEach(function(Lt) {
  11926. Lt.chart && Lt.remove && Lt.remove(!1);
  11927. }), Dt && pt.axes.forEach(function(Lt) {
  11928. Lt.update({}, !1);
  11929. }), Pt && pt.getSeriesOrderByLinks().forEach(function(Lt) {
  11930. Lt.chart && Lt.update({}, !1);
  11931. }, this), Dt = St && St.width, St = St && ($(St.height) ? rt(St.height, Dt || pt.chartWidth) : St.height), kt || G(Dt) && Dt !== pt.chartWidth || G(St) && St !== pt.chartHeight ? pt.setSize(Dt, St, ht) : et(tt, !0) && pt.redraw(ht), V(pt, "afterUpdate", { options: J, redraw: tt, animation: ht });
  11932. }, at.prototype.setSubtitle = function(J, tt) {
  11933. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  11934. }, at.prototype.setCaption = function(J, tt) {
  11935. this.applyDescription("caption", J), this.layOutTitles(tt);
  11936. }, at.prototype.showResetZoom = function() {
  11937. function J() {
  11938. tt.zoomOut();
  11939. }
  11940. var tt = this, st = s.lang, ht = tt.options.chart.resetZoomButton, pt = ht.theme, yt = pt.states, vt = ht.relativeTo === "chart" || ht.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
  11941. V(this, "beforeShowResetZoom", null, function() {
  11942. tt.resetZoomButton = tt.renderer.button(st.resetZoom, null, null, J, pt, yt && yt.hover).attr({ align: ht.position.align, title: st.resetZoomTitle }).addClass("highcharts-reset-zoom").add().align(ht.position, !1, vt);
  11943. }), V(this, "afterShowResetZoom");
  11944. }, at.prototype.zoomOut = function() {
  11945. V(this, "selection", { resetSelection: !0 }, this.zoom);
  11946. }, at.prototype.zoom = function(J) {
  11947. var tt = this, st = tt.pointer, ht = tt.inverted ? st.mouseDownX : st.mouseDownY, pt = !1, yt;
  11948. !J || J.resetSelection ? (tt.axes.forEach(function(Ct) {
  11949. yt = Ct.zoom();
  11950. }), st.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Ct) {
  11951. var Pt = Ct.axis, kt = tt.inverted ? Pt.left : Pt.top, St = tt.inverted ? kt + Pt.width : kt + Pt.height, Dt = Pt.isXAxis, Lt = !1;
  11952. (!Dt && ht >= kt && ht <= St || Dt || !T(ht)) && (Lt = !0), st[Dt ? "zoomX" : "zoomY"] && Lt && (yt = Pt.zoom(Ct.min, Ct.max), Pt.displayBtn && (pt = !0));
  11953. });
  11954. var vt = tt.resetZoomButton;
  11955. pt && !vt ? tt.showResetZoom() : !pt && z(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  11956. tt.options.chart.animation,
  11957. J && J.animation,
  11958. 100 > tt.pointCount
  11959. ));
  11960. }, at.prototype.pan = function(J, tt) {
  11961. var st = this, ht = st.hoverPoints;
  11962. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  11963. var pt = st.options.chart, yt = st.options.mapNavigation && st.options.mapNavigation.enabled;
  11964. pt && pt.panning && (pt.panning = tt);
  11965. var vt = tt.type, Ct;
  11966. V(this, "pan", { originalEvent: J }, function() {
  11967. ht && ht.forEach(function(St) {
  11968. St.setState();
  11969. });
  11970. var Pt = st.xAxis;
  11971. vt === "xy" ? Pt = Pt.concat(st.yAxis) : vt === "y" && (Pt = st.yAxis);
  11972. var kt = {};
  11973. Pt.forEach(function(St) {
  11974. if (St.options.panningEnabled && !St.options.isInternal) {
  11975. var Dt = St.horiz, Lt = J[Dt ? "chartX" : "chartY"];
  11976. Dt = Dt ? "mouseDownX" : "mouseDownY";
  11977. var Nt = st[Dt], Et = St.minPointOffset || 0, Kt = St.reversed && !st.inverted || !St.reversed && st.inverted ? -1 : 1, Gt = St.getExtremes(), Wt = St.toValue(Nt - Lt, !0) + Et * Kt, Jt = St.toValue(Nt + St.len - Lt, !0) - (Et * Kt || St.isXAxis && St.pointRangePadding || 0), be = Jt < Wt;
  11978. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  11979. var zt = St.panningState;
  11980. !Kt || St.isXAxis || zt && !zt.isDirty || St.series.forEach(function(Vt) {
  11981. var Me = Vt.getProcessedData(!0);
  11982. Me = Vt.getExtremes(Me.yData, !0), zt || (zt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), G(Me.dataMin) && G(Me.dataMax) && (zt.startMin = Math.min(et(Vt.options.threshold, 1 / 0), Me.dataMin, zt.startMin), zt.startMax = Math.max(et(Vt.options.threshold, -1 / 0), Me.dataMax, zt.startMax));
  11983. }), Kt = Math.min(et(zt && zt.startMin, Gt.dataMin), Et ? Gt.min : St.toValue(St.toPixels(Gt.min) - St.minPixelPadding)), Jt = Math.max(et(zt && zt.startMax, Gt.dataMax), Et ? Gt.max : St.toValue(St.toPixels(Gt.max) + St.minPixelPadding)), St.panningState = zt, St.isOrdinal || (Et = Kt - Nt, 0 < Et && (Wt += Et, Nt = Kt), Et = Wt - Jt, 0 < Et && (Wt = Jt, Nt -= Et), St.series.length && Nt !== Gt.min && Wt !== Gt.max && Nt >= Kt && Wt <= Jt && (St.setExtremes(
  11984. Nt,
  11985. Wt,
  11986. !1,
  11987. !1,
  11988. { trigger: "pan" }
  11989. ), st.resetZoomButton || yt || Nt === Kt || Wt === Jt || !vt.match("y") || (st.showResetZoom(), St.displayBtn = !1), Ct = !0), kt[Dt] = Lt);
  11990. }
  11991. }), it(kt, function(St, Dt) {
  11992. st[Dt] = St;
  11993. }), Ct && st.redraw(!1), B(st.container, { cursor: "move" });
  11994. });
  11995. }, at;
  11996. }(), L(y.prototype, {
  11997. callbacks: [],
  11998. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  11999. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  12000. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  12001. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  12002. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  12003. }), y;
  12004. }), E(h, "Core/Legend/LegendSymbol.js", [h["Core/Utilities.js"]], function(y) {
  12005. var j = y.merge, I = y.pick, Z;
  12006. return function(F) {
  12007. F.drawLineMarker = function(U) {
  12008. var H = this.options, W = U.symbolWidth, R = U.symbolHeight, S = R / 2, v = this.chart.renderer, d = this.legendGroup;
  12009. U = U.baseline - Math.round(0.3 * U.fontMetrics.b);
  12010. var u = {}, P = H.marker;
  12011. this.chart.styledMode || (u = { "stroke-width": H.lineWidth || 0 }, H.dashStyle && (u.dashstyle = H.dashStyle)), this.legendLine = v.path([["M", 0, U], ["L", W, U]]).addClass("highcharts-graph").attr(u).add(d), P && P.enabled !== !1 && W && (H = Math.min(I(P.radius, S), S), this.symbol.indexOf("url") === 0 && (P = j(P, { width: R, height: R }), H = 0), this.legendSymbol = W = v.symbol(this.symbol, W / 2 - H, U - H, 2 * H, 2 * H, P).addClass("highcharts-point").add(d), W.isMarker = !0);
  12012. }, F.drawRectangle = function(U, H) {
  12013. var W = U.symbolHeight, R = U.options.squareSymbol;
  12014. H.legendSymbol = this.chart.renderer.rect(R ? (U.symbolWidth - W) / 2 : 0, U.baseline - W + 1, R ? W : U.symbolWidth, W, I(U.options.symbolRadius, W / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(H.legendGroup);
  12015. };
  12016. }(Z || (Z = {})), Z;
  12017. }), E(h, "Core/Series/SeriesDefaults.js", [], function() {
  12018. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  12019. normal: { animation: !0 },
  12020. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  12021. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  12022. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  12023. var y = this.series.chart.numberFormatter;
  12024. return typeof this.y != "number" ? "" : y(this.y, -1);
  12025. }, padding: 5, style: { fontSize: "11px", fontWeight: "bold", color: "contrast", textOutline: "1px contrast" }, verticalAlign: "bottom", x: 0, y: 0 }, cropThreshold: 300, opacity: 1, pointRange: 0, softThreshold: !0, states: {
  12026. normal: { animation: !0 },
  12027. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  12028. select: { animation: { duration: 0 } },
  12029. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  12030. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  12031. }), E(h, "Core/Series/Series.js", [
  12032. h["Core/Animation/AnimationUtilities.js"],
  12033. h["Core/DefaultOptions.js"],
  12034. h["Core/Foundation.js"],
  12035. h["Core/Globals.js"],
  12036. h["Core/Legend/LegendSymbol.js"],
  12037. h["Core/Series/Point.js"],
  12038. h["Core/Series/SeriesDefaults.js"],
  12039. h["Core/Series/SeriesRegistry.js"],
  12040. h["Core/Renderer/SVG/SVGElement.js"],
  12041. h["Core/Utilities.js"]
  12042. ], function(y, j, I, Z, F, U, H, W, R, S) {
  12043. var v = y.animObject, d = y.setAnimation, u = j.defaultOptions, P = I.registerEventOptions, O = Z.hasTouch, N = Z.svg, C = Z.win, b = W.seriesTypes, w = S.addEvent, x = S.arrayMax, a = S.arrayMin, c = S.clamp, p = S.cleanRecursively, i = S.correctFloat, l = S.defined, s = S.erase, t = S.error, o = S.extend, n = S.find, A = S.fireEvent, _ = S.getNestedProperty, D = S.isArray, B = S.isNumber, T = S.isString, X = S.merge, g = S.objectEach, m = S.pick, L = S.removeEvent, Y = S.splat, V = S.syncTimeout;
  12044. return y = function() {
  12045. function Q() {
  12046. this.zones = this.yAxis = this.xAxis = this.userOptions = this.tooltipOptions = this.processedYData = this.processedXData = this.points = this.options = this.linkedSeries = this.index = this.eventsToUnbind = this.eventOptions = this.data = this.chart = this._i = void 0;
  12047. }
  12048. return Q.prototype.init = function(k, G) {
  12049. A(this, "init", { options: G });
  12050. var z = this, $ = k.series;
  12051. this.eventsToUnbind = [], z.chart = k, z.options = z.setOptions(G), G = z.options, z.linkedSeries = [], z.bindAxes(), o(z, { name: G.name, state: "", visible: G.visible !== !1, selected: G.selected === !0 }), P(this, G);
  12052. var q = G.events;
  12053. (q && q.click || G.point && G.point.events && G.point.events.click || G.allowPointSelect) && (k.runTrackerClick = !0), z.getColor(), z.getSymbol(), z.parallelArrays.forEach(function(et) {
  12054. z[et + "Data"] || (z[et + "Data"] = []);
  12055. }), z.isCartesian && (k.hasCartesianSeries = !0);
  12056. var it;
  12057. $.length && (it = $[$.length - 1]), z._i = m(it && it._i, -1) + 1, z.opacity = z.options.opacity, k.orderSeries(this.insert($)), G.dataSorting && G.dataSorting.enabled ? z.setDataSortingOptions() : z.points || z.data || z.setData(G.data, !1), A(this, "afterInit");
  12058. }, Q.prototype.is = function(k) {
  12059. return b[k] && this instanceof b[k];
  12060. }, Q.prototype.insert = function(k) {
  12061. var G = this.options.index, z;
  12062. if (B(G)) {
  12063. for (z = k.length; z--; )
  12064. if (G >= m(k[z].options.index, k[z]._i)) {
  12065. k.splice(z + 1, 0, this);
  12066. break;
  12067. }
  12068. z === -1 && k.unshift(this), z += 1;
  12069. } else
  12070. k.push(this);
  12071. return m(z, k.length - 1);
  12072. }, Q.prototype.bindAxes = function() {
  12073. var k = this, G = k.options, z = k.chart, $;
  12074. A(this, "bindAxes", null, function() {
  12075. (k.axisTypes || []).forEach(function(q) {
  12076. var it = 0;
  12077. z[q].forEach(function(et) {
  12078. $ = et.options, (G[q] === it && !$.isInternal || typeof G[q] < "u" && G[q] === $.id || typeof G[q] > "u" && $.index === 0) && (k.insert(et.series), k[q] = et, et.isDirty = !0), $.isInternal || it++;
  12079. }), k[q] || k.optionalAxis === q || t(18, !0, z);
  12080. });
  12081. }), A(this, "afterBindAxes");
  12082. }, Q.prototype.updateParallelArrays = function(k, G) {
  12083. var z = k.series, $ = arguments, q = B(G) ? function(it) {
  12084. var et = it === "y" && z.toYData ? z.toYData(k) : k[it];
  12085. z[it + "Data"][G] = et;
  12086. } : function(it) {
  12087. Array.prototype[G].apply(z[it + "Data"], Array.prototype.slice.call($, 2));
  12088. };
  12089. z.parallelArrays.forEach(q);
  12090. }, Q.prototype.hasData = function() {
  12091. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  12092. }, Q.prototype.autoIncrement = function(k) {
  12093. var G = this.options, z = G.pointIntervalUnit, $ = G.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  12094. return it = m(it, G.pointStart, 0), this.pointInterval = et = m(this.pointInterval, G.pointInterval, 1), $ && B(k) && (et *= k), z && (G = new q.Date(it), z === "day" ? q.set("Date", G, q.get("Date", G) + et) : z === "month" ? q.set("Month", G, q.get("Month", G) + et) : z === "year" && q.set("FullYear", G, q.get("FullYear", G) + et), et = G.getTime() - it), $ && B(k) ? it + et : (this.xIncrement = it + et, it);
  12095. }, Q.prototype.setDataSortingOptions = function() {
  12096. var k = this.options;
  12097. o(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), l(k.pointRange) || (k.pointRange = 1);
  12098. }, Q.prototype.setOptions = function(k) {
  12099. var G = this.chart, z = G.options, $ = z.plotOptions, q = G.userOptions || {};
  12100. k = X(k), G = G.styledMode;
  12101. var it = { plotOptions: $, userOptions: k };
  12102. A(this, "setOptions", it);
  12103. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  12104. return this.userOptions = it.userOptions, q = X(et, $.series, q.plotOptions && q.plotOptions[this.type], k), this.tooltipOptions = X(u.tooltip, u.plotOptions.series && u.plotOptions.series.tooltip, u.plotOptions[this.type].tooltip, z.tooltip.userOptions, $.series && $.series.tooltip, $[this.type].tooltip, k.tooltip), this.stickyTracking = m(k.stickyTracking, nt[this.type] && nt[this.type].stickyTracking, nt.series && nt.series.stickyTracking, this.tooltipOptions.shared && !this.noSharedTooltip ? !0 : q.stickyTracking), et.marker === null && delete q.marker, this.zoneAxis = q.zoneAxis, $ = this.zones = (q.zones || []).slice(), !q.negativeColor && !q.negativeFillColor || q.zones || (z = { value: q[this.zoneAxis + "Threshold"] || q.threshold || 0, className: "highcharts-negative" }, G || (z.color = q.negativeColor, z.fillColor = q.negativeFillColor), $.push(z)), $.length && l($[$.length - 1].value) && $.push(G ? {} : { color: this.color, fillColor: this.fillColor }), A(this, "afterSetOptions", { options: q }), q;
  12105. }, Q.prototype.getName = function() {
  12106. return m(this.options.name, "Series " + (this.index + 1));
  12107. }, Q.prototype.getCyclic = function(k, G, z) {
  12108. var $ = this.chart, q = this.userOptions, it = k + "Index", et = k + "Counter", nt = z ? z.length : m($.options.chart[k + "Count"], $[k + "Count"]);
  12109. if (!G) {
  12110. var rt = m(q[it], q["_" + it]);
  12111. l(rt) || ($.series.length || ($[et] = 0), q["_" + it] = rt = $[et] % nt, $[et] += 1), z && (G = z[rt]);
  12112. }
  12113. typeof rt < "u" && (this[it] = rt), this[k] = G;
  12114. }, Q.prototype.getColor = function() {
  12115. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || u.plotOptions[this.type].color, this.chart.options.colors);
  12116. }, Q.prototype.getPointsCollection = function() {
  12117. return (this.hasGroupedData ? this.points : this.data) || [];
  12118. }, Q.prototype.getSymbol = function() {
  12119. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  12120. }, Q.prototype.findPointIndex = function(k, G) {
  12121. var z = k.id, $ = k.x, q = this.points, it = this.options.dataSorting, et, nt;
  12122. if (z)
  12123. it = this.chart.get(z), it instanceof U && (et = it);
  12124. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  12125. return !ct.touched && ct.index === k.index;
  12126. }, it && it.matchByName ? et = function(ct) {
  12127. return !ct.touched && ct.name === k.name;
  12128. } : this.options.relativeXValue && (et = function(ct) {
  12129. return !ct.touched && ct.options.x === k.x;
  12130. }), et = n(q, et), !et))
  12131. return;
  12132. if (et) {
  12133. var rt = et && et.index;
  12134. typeof rt < "u" && (nt = !0);
  12135. }
  12136. return typeof rt > "u" && B($) && (rt = this.xData.indexOf($, G)), rt !== -1 && typeof rt < "u" && this.cropped && (rt = rt >= this.cropStart ? rt - this.cropStart : rt), !nt && B(rt) && q[rt] && q[rt].touched && (rt = void 0), rt;
  12137. }, Q.prototype.updateData = function(k, G) {
  12138. var z = this.options, $ = z.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = k.length === q.length, rt, ct, gt, dt = !0;
  12139. if (this.xIncrement = null, k.forEach(function(lt, at) {
  12140. var J = l(lt) && this.pointClass.prototype.optionsToObject.call({ series: this }, lt) || {}, tt = J.x;
  12141. J.id || B(tt) ? (J = this.findPointIndex(J, gt), J === -1 || typeof J > "u" ? it.push(lt) : q[J] && lt !== z.data[J] ? (q[J].update(lt, !1, null, !1), q[J].touched = !0, et && (gt = J + 1)) : q[J] && (q[J].touched = !0), (!nt || at !== J || $ && $.enabled || this.hasDerivedData) && (rt = !0)) : it.push(lt);
  12142. }, this), rt)
  12143. for (k = q.length; k--; )
  12144. (ct = q[k]) && !ct.touched && ct.remove && ct.remove(!1, G);
  12145. else
  12146. !nt || $ && $.enabled ? dt = !1 : (k.forEach(function(lt, at) {
  12147. lt !== q[at].y && q[at].update && q[at].update(
  12148. lt,
  12149. !1,
  12150. null,
  12151. !1
  12152. );
  12153. }), it.length = 0);
  12154. return q.forEach(function(lt) {
  12155. lt && (lt.touched = !1);
  12156. }), dt ? (it.forEach(function(lt) {
  12157. this.addPoint(lt, !1, null, null, !1);
  12158. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = x(this.xData), this.autoIncrement()), !0) : !1;
  12159. }, Q.prototype.setData = function(k, G, z, $) {
  12160. var q = this, it = q.points, et = it && it.length || 0, nt = q.options, rt = q.chart, ct = nt.dataSorting, gt = q.xAxis, dt = nt.turboThreshold, lt = this.xData, at = this.yData, J = q.pointArrayMap;
  12161. J = J && J.length;
  12162. var tt = nt.keys, st, ht = 0, pt = 1, yt = null;
  12163. k = k || [];
  12164. var vt = k.length;
  12165. if (G = m(G, !0), ct && ct.enabled && (k = this.sortData(k)), $ !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (st = this.updateData(k, z)), !st) {
  12166. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Ct) {
  12167. q[Ct + "Data"].length = 0;
  12168. }), dt && vt > dt)
  12169. if (yt = q.getFirstValidPoint(k), B(yt))
  12170. for (z = 0; z < vt; z++)
  12171. lt[z] = this.autoIncrement(), at[z] = k[z];
  12172. else if (D(yt))
  12173. if (J)
  12174. if (yt.length === J)
  12175. for (z = 0; z < vt; z++)
  12176. lt[z] = this.autoIncrement(), at[z] = k[z];
  12177. else
  12178. for (z = 0; z < vt; z++)
  12179. $ = k[z], lt[z] = $[0], at[z] = $.slice(
  12180. 1,
  12181. J + 1
  12182. );
  12183. else if (tt && (ht = tt.indexOf("x"), pt = tt.indexOf("y"), ht = 0 <= ht ? ht : 0, pt = 0 <= pt ? pt : 1), yt.length === 1 && (pt = 0), ht === pt)
  12184. for (z = 0; z < vt; z++)
  12185. lt[z] = this.autoIncrement(), at[z] = k[z][pt];
  12186. else
  12187. for (z = 0; z < vt; z++)
  12188. $ = k[z], lt[z] = $[ht], at[z] = $[pt];
  12189. else
  12190. t(12, !1, rt);
  12191. else
  12192. for (z = 0; z < vt; z++)
  12193. typeof k[z] < "u" && ($ = { series: q }, q.pointClass.prototype.applyOptions.apply($, [k[z]]), q.updateParallelArrays($, z));
  12194. for (at && T(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = k, z = et; z--; )
  12195. it[z] && it[z].destroy && it[z].destroy();
  12196. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, z = !1;
  12197. }
  12198. nt.legendType === "point" && (this.processData(), this.generatePoints()), G && rt.redraw(z);
  12199. }, Q.prototype.sortData = function(k) {
  12200. var G = this, z = G.options.dataSorting.sortKey || "y", $ = function(q, it) {
  12201. return l(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  12202. };
  12203. return k.forEach(function(q, it) {
  12204. k[it] = $(G, q), k[it].index = it;
  12205. }, this), k.concat().sort(function(q, it) {
  12206. return q = _(z, q), it = _(z, it), it < q ? -1 : it > q ? 1 : 0;
  12207. }).forEach(function(q, it) {
  12208. q.x = it;
  12209. }, this), G.linkedSeries && G.linkedSeries.forEach(function(q) {
  12210. var it = q.options, et = it.data;
  12211. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  12212. et[rt] = $(q, nt), k[rt] && (et[rt].x = k[rt].x, et[rt].index = rt);
  12213. }), q.setData(et, !1));
  12214. }), k;
  12215. }, Q.prototype.getProcessedData = function(k) {
  12216. var G = this.xAxis, z = this.options, $ = z.cropThreshold, q = k || this.getExtremesFromAll || z.getExtremesFromAll, it = this.isCartesian;
  12217. k = G && G.val2lin, z = !(!G || !G.logarithmic);
  12218. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  12219. if (G) {
  12220. gt = G.getExtremes();
  12221. var lt = gt.min, at = gt.max;
  12222. gt = G.categories && !G.names.length;
  12223. }
  12224. if (it && this.sorted && !q && (!$ || dt > $ || this.forceCrop)) {
  12225. if (nt[dt - 1] < lt || nt[0] > at)
  12226. nt = [], rt = [];
  12227. else if (this.yData && (nt[0] < lt || nt[dt - 1] > at)) {
  12228. var J = this.cropData(this.xData, this.yData, lt, at);
  12229. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  12230. }
  12231. }
  12232. for ($ = nt.length || 1; --$; )
  12233. if (G = z ? k(nt[$]) - k(nt[$ - 1]) : nt[$] - nt[$ - 1], 0 < G && (typeof tt > "u" || G < tt))
  12234. var tt = G;
  12235. else
  12236. 0 > G && ct && !gt && (t(15, !1, this.chart), ct = !1);
  12237. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  12238. }, Q.prototype.processData = function(k) {
  12239. var G = this.xAxis;
  12240. if (this.isCartesian && !this.isDirty && !G.isDirty && !this.yAxis.isDirty && !k)
  12241. return !1;
  12242. k = this.getProcessedData(), this.cropped = k.cropped, this.cropStart = k.cropStart, this.processedXData = k.xData, this.processedYData = k.yData, this.closestPointRange = this.basePointRange = k.closestPointRange, A(this, "afterProcessData");
  12243. }, Q.prototype.cropData = function(k, G, z, $, q) {
  12244. var it = k.length, et, nt = 0, rt = it;
  12245. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  12246. if (k[et] >= z) {
  12247. nt = Math.max(0, et - q);
  12248. break;
  12249. }
  12250. for (z = et; z < it; z++)
  12251. if (k[z] > $) {
  12252. rt = z + q;
  12253. break;
  12254. }
  12255. return { xData: k.slice(nt, rt), yData: G.slice(
  12256. nt,
  12257. rt
  12258. ), start: nt, end: rt };
  12259. }, Q.prototype.generatePoints = function() {
  12260. var k = this.options, G = k.data, z = this.processedXData, $ = this.processedYData, q = this.pointClass, it = z.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = k.keys, ct = [];
  12261. k = k.dataGrouping && k.dataGrouping.groupAll ? et : 0;
  12262. var gt, dt, lt = this.data;
  12263. if (!lt && !nt) {
  12264. var at = [];
  12265. at.length = G.length, lt = this.data = at;
  12266. }
  12267. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  12268. if (at = et + dt, nt) {
  12269. var J = new q().init(this, [z[dt]].concat(Y($[dt])));
  12270. J.dataGroup = this.groupMap[k + dt], J.dataGroup.options && (J.options = J.dataGroup.options, o(J, J.dataGroup.options), delete J.dataLabels);
  12271. } else
  12272. (J = lt[at]) || typeof G[at] > "u" || (lt[at] = J = new q().init(this, G[at], z[dt]));
  12273. J && (J.index = nt ? k + dt : at, ct[dt] = J);
  12274. }
  12275. if (this.options.keys = rt, lt && (it !== (gt = lt.length) || nt))
  12276. for (dt = 0; dt < gt; dt++)
  12277. dt !== et || nt || (dt += it), lt[dt] && (lt[dt].destroyElements(), lt[dt].plotX = void 0);
  12278. this.data = lt, this.points = ct, A(this, "afterGeneratePoints");
  12279. }, Q.prototype.getXExtremes = function(k) {
  12280. return { min: a(k), max: x(k) };
  12281. }, Q.prototype.getExtremes = function(k, G) {
  12282. var z = this.xAxis, $ = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  12283. $ = $ ? $.positiveValuesOnly : !1;
  12284. var nt, rt = 0, ct = 0, gt = 0;
  12285. k = k || this.stackedYData || this.processedYData || [];
  12286. var dt = k.length;
  12287. if (z) {
  12288. var lt = z.getExtremes();
  12289. rt = lt.min, ct = lt.max;
  12290. }
  12291. for (nt = 0; nt < dt; nt++) {
  12292. var at = q[nt];
  12293. lt = k[nt];
  12294. var J = (B(lt) || D(lt)) && (lt.length || 0 < lt || !$);
  12295. if (at = G || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !z || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  12296. if (J = lt.length)
  12297. for (; J--; )
  12298. B(lt[J]) && (it[gt++] = lt[J]);
  12299. else
  12300. it[gt++] = lt;
  12301. }
  12302. return k = { activeYData: it, dataMin: a(it), dataMax: x(it) }, A(this, "afterGetExtremes", { dataExtremes: k }), k;
  12303. }, Q.prototype.applyExtremes = function() {
  12304. var k = this.getExtremes();
  12305. return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
  12306. }, Q.prototype.getFirstValidPoint = function(k) {
  12307. for (var G = k.length, z = 0, $ = null; $ === null && z < G; )
  12308. $ = k[z], z++;
  12309. return $;
  12310. }, Q.prototype.translate = function() {
  12311. this.processedXData || this.processData(), this.generatePoints();
  12312. var k = this.options, G = k.stacking, z = this.xAxis, $ = z.categories, q = this.enabledDataSorting, it = this.yAxis, et = this.points, nt = et.length, rt = this.pointPlacementToXValue(), ct = !!rt, gt = k.threshold, dt = k.startFromThreshold ? gt : 0, lt = this.zoneAxis || "y", at, J, tt = Number.MAX_VALUE;
  12313. for (at = 0; at < nt; at++) {
  12314. var st = et[at], ht = st.x, pt = void 0, yt = void 0, vt = st.y, Ct = st.low, Pt = G && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  12315. if ((it.positiveValuesOnly && !it.validatePositiveValue(vt) || z.positiveValuesOnly && !z.validatePositiveValue(ht)) && (st.isNull = !0), st.plotX = J = i(c(z.translate(ht, 0, 0, 0, 1, rt, this.type === "flags"), -1e5, 1e5)), G && this.visible && Pt && Pt[ht]) {
  12316. var kt = this.getStackIndicator(
  12317. kt,
  12318. ht,
  12319. this.index
  12320. );
  12321. st.isNull || (pt = Pt[ht], yt = pt.points[kt.key]);
  12322. }
  12323. if (D(yt) && (Ct = yt[0], vt = yt[1], Ct === dt && kt.key === Pt[ht].base && (Ct = m(B(gt) && gt, it.min)), it.positiveValuesOnly && 0 >= Ct && (Ct = null), st.total = st.stackTotal = pt.total, st.percentage = pt.total && st.y / pt.total * 100, st.stackY = vt, this.irregularWidths || pt.setOffset(this.pointXOffset || 0, this.barW || 0)), st.yBottom = l(Ct) ? c(it.translate(Ct, 0, 1, 0, 1), -1e5, 1e5) : null, this.dataModify && (vt = this.dataModify.modifyValue(vt, at)), st.plotY = void 0, B(vt) && (pt = it.translate(vt, !1, !0, !1, !0), typeof pt < "u" && (st.plotY = c(
  12324. pt,
  12325. -1e5,
  12326. 1e5
  12327. ))), st.isInside = this.isPointInside(st), st.clientX = ct ? i(z.translate(ht, 0, 0, 0, 1, rt)) : J, st.negative = st[lt] < (k[lt + "Threshold"] || gt || 0), st.category = $ && typeof $[st.x] < "u" ? $[st.x] : st.x, !st.isNull && st.visible !== !1) {
  12328. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  12329. var St = J;
  12330. }
  12331. st.zone = this.zones.length ? st.getZone() : void 0, !st.graphic && this.group && q && (st.isNew = !0);
  12332. }
  12333. this.closestPointRangePx = tt, A(this, "afterTranslate");
  12334. }, Q.prototype.getValidPoints = function(k, G, z) {
  12335. var $ = this.chart;
  12336. return (k || this.points || []).filter(function(q) {
  12337. return G && !$.isInsidePlot(q.plotX, q.plotY, { inverted: $.inverted }) ? !1 : q.visible !== !1 && (z || !q.isNull);
  12338. });
  12339. }, Q.prototype.getClipBox = function() {
  12340. var k = this.chart, G = this.xAxis, z = this.yAxis, $ = X(k.clipBox);
  12341. return G && G.len !== k.plotSizeX && ($.width = G.len), z && z.len !== k.plotSizeY && ($.height = z.len), $;
  12342. }, Q.prototype.getSharedClipKey = function() {
  12343. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  12344. }, Q.prototype.setClip = function() {
  12345. var k = this.chart, G = this.group, z = this.markerGroup, $ = k.sharedClips;
  12346. k = k.renderer;
  12347. var q = this.getClipBox(), it = this.getSharedClipKey(), et = $[it];
  12348. et ? et.animate(q) : $[it] = et = k.clipRect(q), G && G.clip(this.options.clip === !1 ? void 0 : et), z && z.clip();
  12349. }, Q.prototype.animate = function(k) {
  12350. var G = this.chart, z = this.group, $ = this.markerGroup, q = G.inverted, it = v(this.options.animation), et = [this.getSharedClipKey(), it.duration, it.easing, it.defer].join(), nt = G.sharedClips[et], rt = G.sharedClips[et + "m"];
  12351. if (k && z)
  12352. it = this.getClipBox(), nt ? nt.attr("height", it.height) : (it.width = 0, q && (it.x = G.plotHeight), nt = G.renderer.clipRect(it), G.sharedClips[et] = nt, rt = G.renderer.clipRect({ x: q ? (G.plotSizeX || 0) + 99 : -99, y: q ? -G.plotLeft : -G.plotTop, width: 99, height: q ? G.chartWidth : G.chartHeight }), G.sharedClips[et + "m"] = rt), z.clip(nt), $ && $.clip(rt);
  12353. else if (nt && !nt.hasClass("highcharts-animating")) {
  12354. G = this.getClipBox();
  12355. var ct = it.step;
  12356. $ && $.element.childNodes.length && (it.step = function(gt, dt) {
  12357. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  12358. }), nt.addClass("highcharts-animating").animate(G, it);
  12359. }
  12360. }, Q.prototype.afterAnimate = function() {
  12361. var k = this;
  12362. this.setClip(), g(
  12363. this.chart.sharedClips,
  12364. function(G, z, $) {
  12365. G && !k.chart.container.querySelector('[clip-path="url(#' + G.id + ')"]') && (G.destroy(), delete $[z]);
  12366. }
  12367. ), this.finishedAnimating = !0, A(this, "afterAnimate");
  12368. }, Q.prototype.drawPoints = function() {
  12369. var k = this.points, G = this.chart, z = this.options.marker, $ = this[this.specialGroup] || this.markerGroup, q = this.xAxis, it = m(z.enabled, !q || q.isRadial ? !0 : null, this.closestPointRangePx >= z.enabledThreshold * z.radius), et, nt;
  12370. if (z.enabled !== !1 || this._hasPointMarkers)
  12371. for (et = 0; et < k.length; et++) {
  12372. var rt = k[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  12373. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  12374. var lt = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  12375. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  12376. var J = rt.isInside !== !1;
  12377. nt ? nt[J ? "show" : "hide"](J).animate(at) : J && (0 < (at.width || 0) || rt.hasImage) && (rt.graphic = nt = G.renderer.symbol(lt, at.x, at.y, at.width, at.height, dt ? gt : z).add($), this.enabledDataSorting && G.hasRendered && (nt.attr({ x: rt.startXPos }), ct = "animate")), nt && ct === "animate" && nt[J ? "show" : "hide"](J).animate(at), nt && !G.styledMode && nt[ct](this.pointAttribs(rt, rt.selected && "select")), nt && nt.addClass(rt.getClassName(), !0);
  12378. } else
  12379. nt && (rt.graphic = nt.destroy());
  12380. }
  12381. }, Q.prototype.markerAttribs = function(k, G) {
  12382. var z = this.options, $ = z.marker, q = k.marker || {}, it = q.symbol || $.symbol, et = m(q.radius, $.radius);
  12383. return G && ($ = $.states[G], G = q.states && q.states[G], et = m(G && G.radius, $ && $.radius, et + ($ && $.radiusPlus || 0))), k.hasImage = it && it.indexOf("url") === 0, k.hasImage && (et = 0), k = { x: z.crisp ? Math.floor(k.plotX - et) : k.plotX - et, y: k.plotY - et }, et && (k.width = k.height = 2 * et), k;
  12384. }, Q.prototype.pointAttribs = function(k, G) {
  12385. var z = this.options.marker, $ = k && k.options, q = $ && $.marker || {}, it = $ && $.color, et = k && k.color, nt = k && k.zone && k.zone.color, rt = this.color;
  12386. return k = m(q.lineWidth, z.lineWidth), $ = 1, rt = it || nt || et || rt, it = q.fillColor || z.fillColor || rt, et = q.lineColor || z.lineColor || rt, G = G || "normal", z = z.states[G] || {}, G = q.states && q.states[G] || {}, k = m(G.lineWidth, z.lineWidth, k + m(G.lineWidthPlus, z.lineWidthPlus, 0)), it = G.fillColor || z.fillColor || it, et = G.lineColor || z.lineColor || et, $ = m(G.opacity, z.opacity, $), { stroke: et, "stroke-width": k, fill: it, opacity: $ };
  12387. }, Q.prototype.destroy = function(k) {
  12388. var G = this, z = G.chart, $ = /AppleWebKit\/533/.test(C.navigator.userAgent), q = G.data || [], it, et, nt, rt;
  12389. for (A(G, "destroy"), this.removeEvents(k), (G.axisTypes || []).forEach(function(ct) {
  12390. (rt = G[ct]) && rt.series && (s(rt.series, G), rt.isDirty = rt.forceRedraw = !0);
  12391. }), G.legendItem && G.chart.legend.destroyItem(G), et = q.length; et--; )
  12392. (nt = q[et]) && nt.destroy && nt.destroy();
  12393. G.clips && G.clips.forEach(function(ct) {
  12394. return ct.destroy();
  12395. }), S.clearTimeout(G.animationTimeout), g(G, function(ct, gt) {
  12396. ct instanceof R && !ct.survive && (it = $ && gt === "group" ? "hide" : "destroy", ct[it]());
  12397. }), z.hoverSeries === G && (z.hoverSeries = void 0), s(z.series, G), z.orderSeries(), g(G, function(ct, gt) {
  12398. k && gt === "hcEvents" || delete G[gt];
  12399. });
  12400. }, Q.prototype.applyZones = function() {
  12401. var k = this, G = this.chart, z = G.renderer, $ = this.zones, q = this.clips || [], it = this.graph, et = this.area, nt = Math.max(G.chartWidth, G.chartHeight), rt = this[(this.zoneAxis || "y") + "Axis"], ct = G.inverted, gt, dt, lt, at, J, tt, st, ht, pt = !1;
  12402. if ($.length && (it || et) && rt && typeof rt.min < "u") {
  12403. var yt = rt.reversed, vt = rt.horiz;
  12404. it && !this.showLine && it.hide(), et && et.hide();
  12405. var Ct = rt.getExtremes();
  12406. $.forEach(function(Pt, kt) {
  12407. gt = yt ? vt ? G.plotWidth : 0 : vt ? 0 : rt.toPixels(Ct.min) || 0, gt = c(m(dt, gt), 0, nt), dt = c(Math.round(rt.toPixels(m(Pt.value, Ct.max), !0) || 0), 0, nt), pt && (gt = dt = rt.toPixels(Ct.max)), at = Math.abs(gt - dt), J = Math.min(gt, dt), tt = Math.max(gt, dt), rt.isXAxis ? (lt = { x: ct ? tt : J, y: 0, width: at, height: nt }, vt || (lt.x = G.plotHeight - lt.x)) : (lt = { x: 0, y: ct ? tt : J, width: nt, height: at }, vt && (lt.y = G.plotWidth - lt.y)), ct && z.isVML && (lt = rt.isXAxis ? {
  12408. x: 0,
  12409. y: yt ? J : tt,
  12410. height: lt.width,
  12411. width: G.chartWidth
  12412. } : { x: lt.y - G.plotLeft - G.spacingBox.x, y: 0, width: lt.height, height: G.chartHeight }), q[kt] ? q[kt].animate(lt) : q[kt] = z.clipRect(lt), st = k["zone-area-" + kt], ht = k["zone-graph-" + kt], it && ht && ht.clip(q[kt]), et && st && st.clip(q[kt]), pt = Pt.value > Ct.max, k.resetZones && dt === 0 && (dt = void 0);
  12413. }), this.clips = q;
  12414. } else
  12415. k.visible && (it && it.show(!0), et && et.show(!0));
  12416. }, Q.prototype.invertGroups = function(k) {
  12417. function G() {
  12418. ["group", "markerGroup"].forEach(function(q) {
  12419. z[q] && ($.renderer.isVML && z[q].attr({ width: z.yAxis.len, height: z.xAxis.len }), z[q].width = z.yAxis.len, z[q].height = z.xAxis.len, z[q].invert(z.isRadialSeries ? !1 : k));
  12420. });
  12421. }
  12422. var z = this, $ = z.chart;
  12423. z.xAxis && (z.eventsToUnbind.push(w($, "resize", G)), G(), z.invertGroups = G);
  12424. }, Q.prototype.plotGroup = function(k, G, z, $, q) {
  12425. var it = this[k], et = !it;
  12426. return z = { visibility: z, zIndex: $ || 0.1 }, typeof this.opacity > "u" || this.chart.styledMode || this.state === "inactive" || (z.opacity = this.opacity), et && (this[k] = it = this.chart.renderer.g().add(q)), it.addClass("highcharts-" + G + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (l(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (it.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), it.attr(z)[et ? "attr" : "animate"](this.getPlotBox()), it;
  12427. }, Q.prototype.getPlotBox = function() {
  12428. var k = this.chart, G = this.xAxis, z = this.yAxis;
  12429. return k.inverted && (G = z, z = this.xAxis), { translateX: G ? G.left : k.plotLeft, translateY: z ? z.top : k.plotTop, scaleX: 1, scaleY: 1 };
  12430. }, Q.prototype.removeEvents = function(k) {
  12431. k || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(G) {
  12432. G();
  12433. }), this.eventsToUnbind.length = 0);
  12434. }, Q.prototype.render = function() {
  12435. var k = this, G = k.chart, z = k.options, $ = v(z.animation), q = k.visible ? "inherit" : "hidden", it = z.zIndex, et = k.hasRendered, nt = G.seriesGroup, rt = G.inverted;
  12436. G = !k.finishedAnimating && G.renderer.isSVG ? $.duration : 0, A(this, "render");
  12437. var ct = k.plotGroup("group", "series", q, it, nt);
  12438. k.markerGroup = k.plotGroup("markerGroup", "markers", q, it, nt), z.clip !== !1 && k.setClip(), k.animate && G && k.animate(!0), ct.inverted = m(k.invertible, k.isCartesian) ? rt : !1, k.drawGraph && (k.drawGraph(), k.applyZones()), k.visible && k.drawPoints(), k.drawDataLabels && k.drawDataLabels(), k.redrawPoints && k.redrawPoints(), k.drawTracker && k.options.enableMouseTracking !== !1 && k.drawTracker(), k.invertGroups(rt), k.animate && G && k.animate(), et || (G && $.defer && (G += $.defer), k.animationTimeout = V(function() {
  12439. k.afterAnimate();
  12440. }, G || 0)), k.isDirty = !1, k.hasRendered = !0, A(k, "afterRender");
  12441. }, Q.prototype.redraw = function() {
  12442. var k = this.chart, G = this.isDirty || this.isDirtyData, z = this.group, $ = this.xAxis, q = this.yAxis;
  12443. z && (k.inverted && z.attr({
  12444. width: k.plotWidth,
  12445. height: k.plotHeight
  12446. }), z.animate({ translateX: m($ && $.left, k.plotLeft), translateY: m(q && q.top, k.plotTop) })), this.translate(), this.render(), G && delete this.kdTree;
  12447. }, Q.prototype.searchPoint = function(k, G) {
  12448. var z = this.xAxis, $ = this.yAxis, q = this.chart.inverted;
  12449. return this.searchKDTree({ clientX: q ? z.len - k.chartY + z.pos : k.chartX - z.pos, plotY: q ? $.len - k.chartX + $.pos : k.chartY - $.pos }, G, k);
  12450. }, Q.prototype.buildKDTree = function(k) {
  12451. function G(q, it, et) {
  12452. var nt = q && q.length;
  12453. if (nt) {
  12454. var rt = z.kdAxisArray[it % et];
  12455. return q.sort(function(ct, gt) {
  12456. return ct[rt] - gt[rt];
  12457. }), nt = Math.floor(nt / 2), { point: q[nt], left: G(q.slice(0, nt), it + 1, et), right: G(q.slice(nt + 1), it + 1, et) };
  12458. }
  12459. }
  12460. this.buildingKdTree = !0;
  12461. var z = this, $ = -1 < z.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  12462. delete z.kdTree, V(function() {
  12463. z.kdTree = G(z.getValidPoints(null, !z.directTouch), $, $), z.buildingKdTree = !1;
  12464. }, z.options.kdNow || k && k.type === "touchstart" ? 0 : 1);
  12465. }, Q.prototype.searchKDTree = function(k, G, z) {
  12466. function $(rt, ct, gt, dt) {
  12467. var lt = ct.point, at = q.kdAxisArray[gt % dt], J = lt, tt = l(rt[it]) && l(lt[it]) ? Math.pow(rt[it] - lt[it], 2) : null, st = l(rt[et]) && l(lt[et]) ? Math.pow(rt[et] - lt[et], 2) : null;
  12468. return st = (tt || 0) + (st || 0), lt.dist = l(st) ? Math.sqrt(st) : Number.MAX_VALUE, lt.distX = l(tt) ? Math.sqrt(tt) : Number.MAX_VALUE, at = rt[at] - lt[at], st = 0 > at ? "left" : "right", tt = 0 > at ? "right" : "left", ct[st] && (st = $(rt, ct[st], gt + 1, dt), J = st[nt] < J[nt] ? st : lt), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = $(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  12469. }
  12470. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = G ? "distX" : "dist";
  12471. if (G = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(z), this.kdTree)
  12472. return $(
  12473. k,
  12474. this.kdTree,
  12475. G,
  12476. G
  12477. );
  12478. }, Q.prototype.pointPlacementToXValue = function() {
  12479. var k = this.options, G = k.pointRange, z = this.xAxis;
  12480. return k = k.pointPlacement, k === "between" && (k = z.reversed ? -0.5 : 0.5), B(k) ? k * (G || z.pointRange) : 0;
  12481. }, Q.prototype.isPointInside = function(k) {
  12482. var G = this.chart, z = this.xAxis, $ = this.yAxis;
  12483. return typeof k.plotY < "u" && typeof k.plotX < "u" && 0 <= k.plotY && k.plotY <= ($ ? $.len : G.plotHeight) && 0 <= k.plotX && k.plotX <= (z ? z.len : G.plotWidth);
  12484. }, Q.prototype.drawTracker = function() {
  12485. var k = this, G = k.options, z = G.trackByArea, $ = [].concat(z ? k.areaPath : k.graphPath), q = k.chart, it = q.pointer, et = q.renderer, nt = q.options.tooltip.snap, rt = k.tracker, ct = function(dt) {
  12486. q.hoverSeries !== k && k.onMouseOver();
  12487. }, gt = "rgba(192,192,192," + (N ? 1e-4 : 2e-3) + ")";
  12488. rt ? rt.attr({ d: $ }) : k.graph && (k.tracker = et.path($).attr({ visibility: k.visible ? "visible" : "hidden", zIndex: 2 }).addClass(z ? "highcharts-tracker-area" : "highcharts-tracker-line").add(k.group), q.styledMode || k.tracker.attr({ "stroke-linecap": "round", "stroke-linejoin": "round", stroke: gt, fill: z ? gt : "none", "stroke-width": k.graph.strokeWidth() + (z ? 0 : 2 * nt) }), [k.tracker, k.markerGroup, k.dataLabelsGroup].forEach(function(dt) {
  12489. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(lt) {
  12490. it.onTrackerMouseOut(lt);
  12491. }), G.cursor && !q.styledMode && dt.css({ cursor: G.cursor }), O) && dt.on("touchstart", ct);
  12492. })), A(this, "afterDrawTracker");
  12493. }, Q.prototype.addPoint = function(k, G, z, $, q) {
  12494. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  12495. rt = rt && rt.hasNames && rt.names;
  12496. var ct = it.data, gt = this.xData, dt;
  12497. G = m(G, !0);
  12498. var lt = { series: this };
  12499. this.pointClass.prototype.applyOptions.apply(
  12500. lt,
  12501. [k]
  12502. );
  12503. var at = lt.x, J = gt.length;
  12504. if (this.requireSorting && at < gt[J - 1])
  12505. for (dt = !0; J && gt[J - 1] > at; )
  12506. J--;
  12507. this.updateParallelArrays(lt, "splice", J, 0, 0), this.updateParallelArrays(lt, J), rt && lt.name && (rt[at] = lt.name), ct.splice(J, 0, k), dt && (this.data.splice(J, 0, null), this.processData()), it.legendType === "point" && this.generatePoints(), z && (et[0] && et[0].remove ? et[0].remove(!1) : (et.shift(), this.updateParallelArrays(lt, "shift"), ct.shift())), q !== !1 && A(this, "addPoint", { point: lt }), this.isDirtyData = this.isDirty = !0, G && nt.redraw($);
  12508. }, Q.prototype.removePoint = function(k, G, z) {
  12509. var $ = this, q = $.data, it = q[k], et = $.points, nt = $.chart, rt = function() {
  12510. et && et.length === q.length && et.splice(k, 1), q.splice(k, 1), $.options.data.splice(k, 1), $.updateParallelArrays(it || { series: $ }, "splice", k, 1), it && it.destroy(), $.isDirty = !0, $.isDirtyData = !0, G && nt.redraw();
  12511. };
  12512. d(z, nt), G = m(G, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  12513. }, Q.prototype.remove = function(k, G, z, $) {
  12514. function q() {
  12515. it.destroy($), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(k, !0) && et.redraw(G);
  12516. }
  12517. var it = this, et = it.chart;
  12518. z !== !1 ? A(
  12519. it,
  12520. "remove",
  12521. null,
  12522. q
  12523. ) : q();
  12524. }, Q.prototype.update = function(k, G) {
  12525. k = p(k, this.userOptions), A(this, "update", { options: k });
  12526. var z = this, $ = z.chart, q = z.userOptions, it = z.initialType || z.type, et = $.options.plotOptions, nt = b[it].prototype, rt = z.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], lt = k.type || q.type || $.options.chart.type, at = !(this.hasDerivedData || lt && lt !== this.type || typeof k.pointStart < "u" || typeof k.pointInterval < "u" || typeof k.relativeXValue < "u" || z.hasOptionChanged("dataGrouping") || z.hasOptionChanged("pointStart") || z.hasOptionChanged("pointInterval") || z.hasOptionChanged("pointIntervalUnit") || z.hasOptionChanged("keys"));
  12527. if (lt = lt || it, at && (dt.push("data", "isDirtyData", "points", "processedXData", "processedYData", "xIncrement", "cropped", "_hasPointMarkers", "_hasPointLabels", "clips", "nodes", "layout", "mapMap", "mapData", "minY", "maxY", "minX", "maxX"), k.visible !== !1 && dt.push("area", "graph"), z.parallelArrays.forEach(function(tt) {
  12528. dt.push(tt + "Data");
  12529. }), k.data && (k.dataSorting && o(z.options.dataSorting, k.dataSorting), this.setData(k.data, !1))), k = X(q, rt, { index: typeof q.index > "u" ? z.index : q.index, pointStart: m(et && et.series && et.series.pointStart, q.pointStart, z.xData[0]) }, !at && { data: z.options.data }, k), at && k.data && (k.data = z.options.data), dt = ["group", "markerGroup", "dataLabelsGroup", "transformGroup"].concat(dt), dt.forEach(function(tt) {
  12530. dt[tt] = z[tt], delete z[tt];
  12531. }), et = !1, b[lt]) {
  12532. if (et = lt !== z.type, z.remove(!1, !1, !1, !0), et)
  12533. if (Object.setPrototypeOf)
  12534. Object.setPrototypeOf(z, b[lt].prototype);
  12535. else {
  12536. rt = Object.hasOwnProperty.call(z, "hcEvents") && z.hcEvents;
  12537. for (gt in nt)
  12538. z[gt] = void 0;
  12539. o(z, b[lt].prototype), rt ? z.hcEvents = rt : delete z.hcEvents;
  12540. }
  12541. } else
  12542. t(17, !0, $, { missingModuleFor: lt });
  12543. if (dt.forEach(function(tt) {
  12544. z[tt] = dt[tt];
  12545. }), z.init($, k), at && this.points) {
  12546. var J = z.options;
  12547. J.visible === !1 ? (ct.graphic = 1, ct.dataLabel = 1) : z._hasPointLabels || (k = J.marker, nt = J.dataLabels, !k || k.enabled !== !1 && (q.marker && q.marker.symbol) === k.symbol || (ct.graphic = 1), nt && nt.enabled === !1 && (ct.dataLabel = 1)), this.points.forEach(function(tt) {
  12548. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && $.legend.destroyItem(tt));
  12549. }, this);
  12550. }
  12551. z.initialType = it, $.linkSeries(), et && z.linkedSeries.length && (z.isDirtyData = !0), A(this, "afterUpdate"), m(G, !0) && $.redraw(at ? void 0 : !1);
  12552. }, Q.prototype.setName = function(k) {
  12553. this.name = this.options.name = this.userOptions.name = k, this.chart.isDirtyLegend = !0;
  12554. }, Q.prototype.hasOptionChanged = function(k) {
  12555. var G = this.options[k], z = this.chart.options.plotOptions, $ = this.userOptions[k];
  12556. return $ ? G !== $ : G !== m(
  12557. z && z[this.type] && z[this.type][k],
  12558. z && z.series && z.series[k],
  12559. G
  12560. );
  12561. }, Q.prototype.onMouseOver = function() {
  12562. var k = this.chart, G = k.hoverSeries;
  12563. k.pointer.setHoverChartIndex(), G && G !== this && G.onMouseOut(), this.options.events.mouseOver && A(this, "mouseOver"), this.setState("hover"), k.hoverSeries = this;
  12564. }, Q.prototype.onMouseOut = function() {
  12565. var k = this.options, G = this.chart, z = G.tooltip, $ = G.hoverPoint;
  12566. G.hoverSeries = null, $ && $.onMouseOut(), this && k.events.mouseOut && A(this, "mouseOut"), !z || this.stickyTracking || z.shared && !this.noSharedTooltip || z.hide(), G.series.forEach(function(q) {
  12567. q.setState(
  12568. "",
  12569. !0
  12570. );
  12571. });
  12572. }, Q.prototype.setState = function(k, G) {
  12573. var z = this, $ = z.options, q = z.graph, it = $.inactiveOtherPoints, et = $.states, nt = m(et[k || "normal"] && et[k || "normal"].animation, z.chart.options.chart.animation), rt = $.lineWidth, ct = 0, gt = $.opacity;
  12574. if (k = k || "", z.state !== k && ([z.group, z.markerGroup, z.dataLabelsGroup].forEach(function(dt) {
  12575. dt && (z.state && dt.removeClass("highcharts-series-" + z.state), k && dt.addClass("highcharts-series-" + k));
  12576. }), z.state = k, !z.chart.styledMode)) {
  12577. if (et[k] && et[k].enabled === !1)
  12578. return;
  12579. if (k && (rt = et[k].lineWidth || rt + (et[k].lineWidthPlus || 0), gt = m(et[k].opacity, gt)), q && !q.dashstyle)
  12580. for ($ = { "stroke-width": rt }, q.animate($, nt); z["zone-graph-" + ct]; )
  12581. z["zone-graph-" + ct].animate($, nt), ct += 1;
  12582. it || [z.group, z.markerGroup, z.dataLabelsGroup, z.labelBySeries].forEach(function(dt) {
  12583. dt && dt.animate({ opacity: gt }, nt);
  12584. });
  12585. }
  12586. G && it && z.points && z.setAllPointsToState(k || void 0);
  12587. }, Q.prototype.setAllPointsToState = function(k) {
  12588. this.points.forEach(function(G) {
  12589. G.setState && G.setState(k);
  12590. });
  12591. }, Q.prototype.setVisible = function(k, G) {
  12592. var z = this, $ = z.chart, q = z.legendItem, it = $.options.chart.ignoreHiddenSeries, et = z.visible, nt = (z.visible = k = z.options.visible = z.userOptions.visible = typeof k > "u" ? !et : k) ? "show" : "hide";
  12593. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  12594. z[rt] && z[rt][nt]();
  12595. }), ($.hoverSeries === z || ($.hoverPoint && $.hoverPoint.series) === z) && z.onMouseOut(), q && $.legend.colorizeItem(z, k), z.isDirty = !0, z.options.stacking && $.series.forEach(function(rt) {
  12596. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  12597. }), z.linkedSeries.forEach(function(rt) {
  12598. rt.setVisible(k, !1);
  12599. }), it && ($.isDirtyBox = !0), A(z, nt), G !== !1 && $.redraw();
  12600. }, Q.prototype.show = function() {
  12601. this.setVisible(!0);
  12602. }, Q.prototype.hide = function() {
  12603. this.setVisible(!1);
  12604. }, Q.prototype.select = function(k) {
  12605. this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), A(this, k ? "select" : "unselect");
  12606. }, Q.prototype.shouldShowTooltip = function(k, G, z) {
  12607. return z === void 0 && (z = {}), z.series = this, z.visiblePlotOnly = !0, this.chart.isInsidePlot(k, G, z);
  12608. }, Q.defaultOptions = H, Q;
  12609. }(), o(y.prototype, { axisTypes: [
  12610. "xAxis",
  12611. "yAxis"
  12612. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: F.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: U, requireSorting: !0, sorted: !0 }), W.series = y, y;
  12613. }), E(h, "Extensions/ScrollablePlotArea.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Axis/Axis.js"], h["Core/Chart/Chart.js"], h["Core/Series/Series.js"], h["Core/Renderer/RendererRegistry.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U) {
  12614. var H = y.stop, W = U.addEvent, R = U.createElement, S = U.merge, v = U.pick;
  12615. W(I, "afterSetChartSize", function(d) {
  12616. var u = this.options.chart.scrollablePlotArea, P = u && u.minWidth;
  12617. if (u = u && u.minHeight, !this.renderer.forExport) {
  12618. if (P) {
  12619. if (this.scrollablePixelsX = P = Math.max(0, P - this.chartWidth)) {
  12620. this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.width = this.plotWidth += P, this.inverted ? this.clipBox.height += P : this.clipBox.width += P;
  12621. var O = { 1: { name: "right", value: P } };
  12622. }
  12623. } else
  12624. u && (this.scrollablePixelsY = P = Math.max(
  12625. 0,
  12626. u - this.chartHeight
  12627. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.height = this.plotHeight += P, this.inverted ? this.clipBox.width += P : this.clipBox.height += P, O = { 2: { name: "bottom", value: P } });
  12628. O && !d.skipAxes && this.axes.forEach(function(N) {
  12629. O[N.side] ? N.getPlotLinePath = function() {
  12630. var C = O[N.side].name, b = this[C];
  12631. this[C] = b - O[N.side].value;
  12632. var w = j.prototype.getPlotLinePath.apply(this, arguments);
  12633. return this[C] = b, w;
  12634. } : (N.setAxisSize(), N.setAxisTranslation());
  12635. });
  12636. }
  12637. }), W(I, "render", function() {
  12638. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  12639. }), I.prototype.setUpScrolling = function() {
  12640. var d = this, u = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  12641. this.scrollablePixelsX && (u.overflowX = "auto"), this.scrollablePixelsY && (u.overflowY = "auto"), this.scrollingParent = R("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = R(
  12642. "div",
  12643. { className: "highcharts-scrolling" },
  12644. u,
  12645. this.scrollingParent
  12646. ), W(this.scrollingContainer, "scroll", function() {
  12647. d.pointer && delete d.pointer.chartPosition;
  12648. }), this.innerContainer = R("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  12649. }, I.prototype.moveFixedElements = function() {
  12650. var d = this.container, u = this.fixedRenderer, P = ".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), O;
  12651. this.scrollablePixelsX && !this.inverted ? O = ".highcharts-yaxis" : this.scrollablePixelsX && this.inverted || this.scrollablePixelsY && !this.inverted ? O = ".highcharts-xaxis" : this.scrollablePixelsY && this.inverted && (O = ".highcharts-yaxis"), O && P.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), P.forEach(function(N) {
  12652. [].forEach.call(d.querySelectorAll(N), function(C) {
  12653. (C.namespaceURI === u.SVG_NS ? u.box : u.box.parentNode).appendChild(C), C.style.pointerEvents = "auto";
  12654. });
  12655. });
  12656. }, I.prototype.applyFixed = function() {
  12657. var d = !this.fixedDiv, u = this.options.chart, P = u.scrollablePlotArea, O = F.getRendererType();
  12658. d ? (this.fixedDiv = R("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (u.style && u.style.zIndex || 0) + 2, top: 0 }, null, !0), this.scrollingContainer && this.scrollingContainer.parentNode.insertBefore(this.fixedDiv, this.scrollingContainer), this.renderTo.style.overflow = "visible", this.fixedRenderer = u = new O(
  12659. this.fixedDiv,
  12660. this.chartWidth,
  12661. this.chartHeight,
  12662. this.options.chart.style
  12663. ), this.scrollableMask = u.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": v(P.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), W(this, "afterShowResetZoom", this.moveFixedElements), W(this, "afterDrilldown", this.moveFixedElements), W(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || d) && (this.scrollableDirty = !1, this.moveFixedElements()), u = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), H(this.container), this.container.style.width = u + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: u, height: O, viewBox: [0, 0, u, O].join(" ") }), this.chartBackground.attr({ width: u, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", d && (P.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * P.scrollPositionX), P.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * P.scrollPositionY)), O = this.axisOffset, d = this.plotTop - O[0] - 1, P = this.plotLeft - O[3] - 1, u = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  12664. var N = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), C = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  12665. d = this.scrollablePixelsX ? [["M", 0, d], ["L", this.plotLeft - 1, d], ["L", this.plotLeft - 1, u], ["L", 0, u], ["Z"], ["M", N, d], ["L", this.chartWidth, d], ["L", this.chartWidth, u], ["L", N, u], ["Z"]] : this.scrollablePixelsY ? [["M", P, 0], ["L", P, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", P, C], ["L", P, this.chartHeight], ["L", O, this.chartHeight], ["L", O, C], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d });
  12666. }, W(j, "afterInit", function() {
  12667. this.chart.scrollableDirty = !0;
  12668. }), W(Z, "show", function() {
  12669. this.chart.scrollableDirty = !0;
  12670. });
  12671. }), E(h, "Core/Axis/StackingAxis.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Axis/Axis.js"], h["Core/Utilities.js"]], function(y, j, I) {
  12672. var Z = y.getDeferredAnimation, F = I.addEvent, U = I.destroyObjectProperties, H = I.fireEvent, W = I.isNumber, R = I.objectEach, S;
  12673. return function(v) {
  12674. function d() {
  12675. var N = this.stacking;
  12676. if (N) {
  12677. var C = N.stacks;
  12678. R(C, function(b, w) {
  12679. U(b), C[w] = null;
  12680. }), N && N.stackTotalGroup && N.stackTotalGroup.destroy();
  12681. }
  12682. }
  12683. function u() {
  12684. this.stacking || (this.stacking = new O(this));
  12685. }
  12686. var P = [];
  12687. v.compose = function(N) {
  12688. return P.indexOf(N) === -1 && (P.push(N), F(N, "init", u), F(N, "destroy", d)), N;
  12689. };
  12690. var O = function() {
  12691. function N(C) {
  12692. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = C;
  12693. }
  12694. return N.prototype.buildStacks = function() {
  12695. var C = this.axis, b = C.series, w = C.options.reversedStacks, x = b.length, a;
  12696. if (!C.isXAxis) {
  12697. for (this.usePercentage = !1, a = x; a--; ) {
  12698. var c = b[w ? a : x - a - 1];
  12699. c.setStackedPoints(), c.setGroupedPoints();
  12700. }
  12701. for (a = 0; a < x; a++)
  12702. b[a].modifyStacks();
  12703. H(C, "afterBuildStacks");
  12704. }
  12705. }, N.prototype.cleanStacks = function() {
  12706. if (!this.axis.isXAxis) {
  12707. if (this.oldStacks)
  12708. var C = this.stacks = this.oldStacks;
  12709. R(C, function(b) {
  12710. R(b, function(w) {
  12711. w.cumulative = w.total;
  12712. });
  12713. });
  12714. }
  12715. }, N.prototype.resetStacks = function() {
  12716. var C = this, b = C.stacks;
  12717. C.axis.isXAxis || R(b, function(w) {
  12718. R(
  12719. w,
  12720. function(x, a) {
  12721. W(x.touched) && x.touched < C.stacksTouched ? (x.destroy(), delete w[a]) : (x.total = null, x.cumulative = null);
  12722. }
  12723. );
  12724. });
  12725. }, N.prototype.renderStackTotals = function() {
  12726. var C = this.axis, b = C.chart, w = b.renderer, x = this.stacks;
  12727. C = Z(b, C.options.stackLabels && C.options.stackLabels.animation || !1);
  12728. var a = this.stackTotalGroup = this.stackTotalGroup || w.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  12729. a.translate(b.plotLeft, b.plotTop), R(x, function(c) {
  12730. R(c, function(p) {
  12731. p.render(a);
  12732. });
  12733. }), a.animate(
  12734. { opacity: 1 },
  12735. C
  12736. );
  12737. }, N;
  12738. }();
  12739. v.Additions = O;
  12740. }(S || (S = {})), S;
  12741. }), E(h, "Extensions/Stacking.js", [h["Core/Axis/Axis.js"], h["Core/Chart/Chart.js"], h["Core/FormatUtilities.js"], h["Core/Globals.js"], h["Core/Series/Series.js"], h["Core/Axis/StackingAxis.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U, H) {
  12742. var W = I.format, R = H.correctFloat, S = H.defined, v = H.destroyObjectProperties, d = H.isArray, u = H.isNumber, P = H.objectEach, O = H.pick, N = function() {
  12743. function C(b, w, x, a, c) {
  12744. var p = b.chart.inverted;
  12745. this.axis = b, this.isNegative = x, this.options = w = w || {}, this.x = a, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: w.align || (p ? x ? "left" : "right" : "center"), verticalAlign: w.verticalAlign || (p ? "middle" : x ? "bottom" : "top"), y: w.y, x: w.x }, this.textAlign = w.textAlign || (p ? x ? "right" : "left" : "center");
  12746. }
  12747. return C.prototype.destroy = function() {
  12748. v(this, this.axis);
  12749. }, C.prototype.render = function(b) {
  12750. var w = this.axis.chart, x = this.options, a = x.format;
  12751. a = a ? W(a, this, w) : x.formatter.call(this), this.label ? this.label.attr({
  12752. text: a,
  12753. visibility: "hidden"
  12754. }) : (this.label = w.renderer.label(a, null, null, x.shape, null, null, x.useHTML, !1, "stack-labels"), a = { r: x.borderRadius || 0, text: a, rotation: x.rotation, padding: O(x.padding, 5), visibility: "hidden" }, w.styledMode || (a.fill = x.backgroundColor, a.stroke = x.borderColor, a["stroke-width"] = x.borderWidth, this.label.css(x.style)), this.label.attr(a), this.label.added || this.label.add(b)), this.label.labelrank = w.plotSizeY;
  12755. }, C.prototype.setOffset = function(b, w, x, a, c) {
  12756. var p = this.axis, i = p.chart;
  12757. a = p.translate(p.stacking.usePercentage ? 100 : a || this.total, 0, 0, 0, 1), x = p.translate(x || 0), x = S(a) && Math.abs(a - x), b = O(c, i.xAxis[0].translate(this.x)) + b, p = S(a) && this.getStackBox(i, this, b, a, w, x, p), w = this.label, x = this.isNegative, b = O(this.options.overflow, "justify") === "justify";
  12758. var l = this.textAlign;
  12759. w && p && (c = w.getBBox(), a = w.padding, l = l === "left" ? i.inverted ? -a : a : l === "right" ? c.width : i.inverted && l === "center" ? c.width / 2 : i.inverted ? x ? c.width + a : -a : c.width / 2, x = i.inverted ? c.height / 2 : x ? -a : c.height, this.alignOptions.x = O(this.options.x, 0), this.alignOptions.y = O(this.options.y, 0), p.x -= l, p.y -= x, w.align(this.alignOptions, null, p), i.isInsidePlot(w.alignAttr.x + l - this.alignOptions.x, w.alignAttr.y + x - this.alignOptions.y) ? w.show() : (w.alignAttr.y = -9999, b = !1), b && F.prototype.justifyDataLabel.call(this.axis, w, this.alignOptions, w.alignAttr, c, p), w.attr({ x: w.alignAttr.x, y: w.alignAttr.y }), O(!b && this.options.crop, !0) && ((i = u(w.x) && u(w.y) && i.isInsidePlot(w.x - a + w.width, w.y) && i.isInsidePlot(w.x + a, w.y)) || w.hide()));
  12760. }, C.prototype.getStackBox = function(b, w, x, a, c, p, i) {
  12761. var l = w.axis.reversed, s = b.inverted, t = i.height + i.pos - (s ? b.plotLeft : b.plotTop);
  12762. return w = w.isNegative && !l || !w.isNegative && l, { x: s ? w ? a - i.right : a - p + i.pos - b.plotLeft : x + b.xAxis[0].transB - b.plotLeft, y: s ? i.height - x - c : w ? t - a - p : t - a, width: s ? p : c, height: s ? c : p };
  12763. }, C;
  12764. }();
  12765. return j.prototype.getStacks = function() {
  12766. var C = this, b = C.inverted;
  12767. C.yAxis.forEach(function(w) {
  12768. w.stacking && w.stacking.stacks && w.hasVisibleSeries && (w.stacking.oldStacks = w.stacking.stacks);
  12769. }), C.series.forEach(function(w) {
  12770. var x = w.xAxis && w.xAxis.options || {};
  12771. !w.options.stacking || w.visible !== !0 && C.options.chart.ignoreHiddenSeries !== !1 || (w.stackKey = [w.type, O(w.options.stack, ""), b ? x.top : x.left, b ? x.height : x.width].join());
  12772. });
  12773. }, U.compose(y), F.prototype.setGroupedPoints = function() {
  12774. var C = this.yAxis.stacking;
  12775. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? F.prototype.setStackedPoints.call(this, "group") : C && P(C.stacks, function(b, w) {
  12776. w.slice(-5) === "group" && (P(b, function(x) {
  12777. return x.destroy();
  12778. }), delete C.stacks[w]);
  12779. });
  12780. }, F.prototype.setStackedPoints = function(C) {
  12781. var b = C || this.options.stacking;
  12782. if (b && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  12783. var w = this.processedXData, x = this.processedYData, a = [], c = x.length, p = this.options, i = p.threshold, l = O(p.startFromThreshold && i, 0);
  12784. p = p.stack, C = C ? this.type + "," + b : this.stackKey;
  12785. var s = "-" + C, t = this.negStacks, o = this.yAxis, n = o.stacking.stacks, A = o.stacking.oldStacks, _, D;
  12786. for (o.stacking.stacksTouched += 1, D = 0; D < c; D++) {
  12787. var B = w[D], T = x[D], X = this.getStackIndicator(
  12788. X,
  12789. B,
  12790. this.index
  12791. ), g = X.key, m = (_ = t && T < (l ? 0 : i)) ? s : C;
  12792. n[m] || (n[m] = {}), n[m][B] || (A[m] && A[m][B] ? (n[m][B] = A[m][B], n[m][B].total = null) : n[m][B] = new N(o, o.options.stackLabels, _, B, p)), m = n[m][B], T !== null ? (m.points[g] = m.points[this.index] = [O(m.cumulative, l)], S(m.cumulative) || (m.base = g), m.touched = o.stacking.stacksTouched, 0 < X.index && this.singleStacks === !1 && (m.points[g][0] = m.points[this.index + "," + B + ",0"][0])) : m.points[g] = m.points[this.index] = null, b === "percent" ? (_ = _ ? C : s, t && n[_] && n[_][B] ? (_ = n[_][B], m.total = _.total = Math.max(_.total, m.total) + Math.abs(T) || 0) : m.total = R(m.total + (Math.abs(T) || 0))) : b === "group" ? (d(T) && (T = T[0]), T !== null && (m.total = (m.total || 0) + 1)) : m.total = R(m.total + (T || 0)), m.cumulative = b === "group" ? (m.total || 1) - 1 : O(m.cumulative, l) + (T || 0), T !== null && (m.points[g].push(m.cumulative), a[D] = m.cumulative, m.hasValidPoints = !0);
  12793. }
  12794. b === "percent" && (o.stacking.usePercentage = !0), b !== "group" && (this.stackedYData = a), o.stacking.oldStacks = {};
  12795. }
  12796. }, F.prototype.modifyStacks = function() {
  12797. var C = this, b = C.stackKey, w = C.yAxis.stacking.stacks, x = C.processedXData, a, c = C.options.stacking;
  12798. C[c + "Stacker"] && [b, "-" + b].forEach(function(p) {
  12799. for (var i = x.length, l, s; i--; )
  12800. l = x[i], a = C.getStackIndicator(a, l, C.index, p), (s = (l = w[p] && w[p][l]) && l.points[a.key]) && C[c + "Stacker"](s, l, i);
  12801. });
  12802. }, F.prototype.percentStacker = function(C, b, w) {
  12803. b = b.total ? 100 / b.total : 0, C[0] = R(C[0] * b), C[1] = R(C[1] * b), this.stackedYData[w] = C[1];
  12804. }, F.prototype.getStackIndicator = function(C, b, w, x) {
  12805. return !S(C) || C.x !== b || x && C.key !== x ? C = { x: b, index: 0, key: x } : C.index++, C.key = [w, b, C.index].join(), C;
  12806. }, Z.StackItem = N, Z.StackItem;
  12807. }), E(h, "Series/Line/LineSeries.js", [h["Core/Series/Series.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I) {
  12808. var Z = this && this.__extends || function() {
  12809. var H = function(W, R) {
  12810. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  12811. S.__proto__ = v;
  12812. } || function(S, v) {
  12813. for (var d in v)
  12814. v.hasOwnProperty(d) && (S[d] = v[d]);
  12815. }, H(W, R);
  12816. };
  12817. return function(W, R) {
  12818. function S() {
  12819. this.constructor = W;
  12820. }
  12821. H(W, R), W.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  12822. };
  12823. }(), F = I.defined, U = I.merge;
  12824. return I = function(H) {
  12825. function W() {
  12826. var R = H !== null && H.apply(this, arguments) || this;
  12827. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  12828. }
  12829. return Z(W, H), W.prototype.drawGraph = function() {
  12830. var R = this, S = this.options, v = (this.gappedPath || this.getGraphPath).call(this), d = this.chart.styledMode, u = [["graph", "highcharts-graph"]];
  12831. d || u[0].push(S.lineColor || this.color || "#cccccc", S.dashStyle), u = R.getZonesGraphs(u), u.forEach(function(P, O) {
  12832. var N = P[0], C = R[N], b = C ? "animate" : "attr";
  12833. C ? (C.endX = R.preventGraphAnimation ? null : v.xMap, C.animate({ d: v })) : v.length && (R[N] = C = R.chart.renderer.path(v).addClass(P[1]).attr({ zIndex: 1 }).add(R.group)), C && !d && (N = { stroke: P[2], "stroke-width": S.lineWidth, fill: R.fillGraph && R.color || "none" }, P[3] ? N.dashstyle = P[3] : S.linecap !== "square" && (N["stroke-linecap"] = N["stroke-linejoin"] = "round"), C[b](N).shadow(2 > O && S.shadow)), C && (C.startX = v.xMap, C.isArea = v.isArea);
  12834. });
  12835. }, W.prototype.getGraphPath = function(R, S, v) {
  12836. var d = this, u = d.options, P = [], O = [], N, C = u.step;
  12837. R = R || d.points;
  12838. var b = R.reversed;
  12839. return b && R.reverse(), (C = { right: 1, center: 2 }[C] || C && 3) && b && (C = 4 - C), R = this.getValidPoints(R, !1, !(u.connectNulls && !S && !v)), R.forEach(function(w, x) {
  12840. var a = w.plotX, c = w.plotY, p = R[x - 1];
  12841. (w.leftCliff || p && p.rightCliff) && !v && (N = !0), w.isNull && !F(S) && 0 < x ? N = !u.connectNulls : w.isNull && !S ? N = !0 : (x === 0 || N ? x = [["M", w.plotX, w.plotY]] : d.getPointSpline ? x = [d.getPointSpline(R, w, x)] : C ? (x = C === 1 ? [["L", p.plotX, c]] : C === 2 ? [["L", (p.plotX + a) / 2, p.plotY], ["L", (p.plotX + a) / 2, c]] : [["L", a, p.plotY]], x.push(["L", a, c])) : x = [["L", a, c]], O.push(w.x), C && (O.push(w.x), C === 2 && O.push(w.x)), P.push.apply(P, x), N = !1);
  12842. }), P.xMap = O, d.graphPath = P;
  12843. }, W.prototype.getZonesGraphs = function(R) {
  12844. return this.zones.forEach(function(S, v) {
  12845. v = ["zone-graph-" + v, "highcharts-graph highcharts-zone-graph-" + v + " " + (S.className || "")], this.chart.styledMode || v.push(S.color || this.color, S.dashStyle || this.options.dashStyle), R.push(v);
  12846. }, this), R;
  12847. }, W.defaultOptions = U(y.defaultOptions, {}), W;
  12848. }(y), j.registerSeriesType("line", I), I;
  12849. }), E(h, "Series/Area/AreaSeries.js", [
  12850. h["Core/Color/Color.js"],
  12851. h["Core/Legend/LegendSymbol.js"],
  12852. h["Core/Series/SeriesRegistry.js"],
  12853. h["Core/Utilities.js"]
  12854. ], function(y, j, I, Z) {
  12855. var F = this && this.__extends || function() {
  12856. var v = function(d, u) {
  12857. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  12858. P.__proto__ = O;
  12859. } || function(P, O) {
  12860. for (var N in O)
  12861. O.hasOwnProperty(N) && (P[N] = O[N]);
  12862. }, v(d, u);
  12863. };
  12864. return function(d, u) {
  12865. function P() {
  12866. this.constructor = d;
  12867. }
  12868. v(d, u), d.prototype = u === null ? Object.create(u) : (P.prototype = u.prototype, new P());
  12869. };
  12870. }(), U = y.parse, H = I.seriesTypes.line;
  12871. y = Z.extend;
  12872. var W = Z.merge, R = Z.objectEach, S = Z.pick;
  12873. return Z = function(v) {
  12874. function d() {
  12875. var u = v !== null && v.apply(this, arguments) || this;
  12876. return u.data = void 0, u.options = void 0, u.points = void 0, u;
  12877. }
  12878. return F(d, v), d.prototype.drawGraph = function() {
  12879. this.areaPath = [], v.prototype.drawGraph.apply(this);
  12880. var u = this, P = this.areaPath, O = this.options, N = [["area", "highcharts-area", this.color, O.fillColor]];
  12881. this.zones.forEach(function(C, b) {
  12882. N.push(["zone-area-" + b, "highcharts-area highcharts-zone-area-" + b + " " + C.className, C.color || u.color, C.fillColor || O.fillColor]);
  12883. }), N.forEach(function(C) {
  12884. var b = C[0], w = u[b], x = w ? "animate" : "attr", a = {};
  12885. w ? (w.endX = u.preventGraphAnimation ? null : P.xMap, w.animate({ d: P })) : (a.zIndex = 0, w = u[b] = u.chart.renderer.path(P).addClass(C[1]).add(u.group), w.isArea = !0), u.chart.styledMode || (a.fill = S(C[3], U(C[2]).setOpacity(S(O.fillOpacity, 0.75)).get())), w[x](a), w.startX = P.xMap, w.shiftUnit = O.step ? 2 : 1;
  12886. });
  12887. }, d.prototype.getGraphPath = function(u) {
  12888. var P = H.prototype.getGraphPath, O = this.options, N = O.stacking, C = this.yAxis, b, w = [], x = [], a = this.index, c = C.stacking.stacks[this.stackKey], p = O.threshold, i = Math.round(C.getThreshold(O.threshold));
  12889. O = S(O.connectNulls, N === "percent");
  12890. var l = function(n, A, _) {
  12891. var D = u[n];
  12892. n = N && c[D.x].points[a];
  12893. var B = D[_ + "Null"] || 0;
  12894. if (_ = D[_ + "Cliff"] || 0, D = !0, _ || B) {
  12895. var T = (B ? n[0] : n[1]) + _, X = n[0] + _;
  12896. D = !!B;
  12897. } else
  12898. !N && u[A] && u[A].isNull && (T = X = p);
  12899. typeof T < "u" && (x.push({ plotX: t, plotY: T === null ? i : C.getThreshold(T), isNull: D, isCliff: !0 }), w.push({ plotX: t, plotY: X === null ? i : C.getThreshold(X), doCurve: !1 }));
  12900. };
  12901. for (u = u || this.points, N && (u = this.getStackPoints(u)), b = 0; b < u.length; b++) {
  12902. N || (u[b].leftCliff = u[b].rightCliff = u[b].leftNull = u[b].rightNull = void 0);
  12903. var s = u[b].isNull, t = S(u[b].rectPlotX, u[b].plotX), o = N ? S(u[b].yBottom, i) : i;
  12904. (!s || O) && (O || l(b, b - 1, "left"), s && !N && O || (x.push(u[b]), w.push({ x: b, plotX: t, plotY: o })), O || l(b, b + 1, "right"));
  12905. }
  12906. return b = P.call(this, x, !0, !0), w.reversed = !0, s = P.call(this, w, !0, !0), (o = s[0]) && o[0] === "M" && (s[0] = ["L", o[1], o[2]]), s = b.concat(s), s.length && s.push(["Z"]), P = P.call(this, x, !1, O), s.xMap = b.xMap, this.areaPath = s, P;
  12907. }, d.prototype.getStackPoints = function(u) {
  12908. var P = this, O = [], N = [], C = this.xAxis, b = this.yAxis, w = b.stacking.stacks[this.stackKey], x = {}, a = b.series, c = a.length, p = b.options.reversedStacks ? 1 : -1, i = a.indexOf(P);
  12909. if (u = u || this.points, this.options.stacking) {
  12910. for (var l = 0; l < u.length; l++)
  12911. u[l].leftNull = u[l].rightNull = void 0, x[u[l].x] = u[l];
  12912. R(w, function(t, o) {
  12913. t.total !== null && N.push(o);
  12914. }), N.sort(function(t, o) {
  12915. return t - o;
  12916. });
  12917. var s = a.map(function(t) {
  12918. return t.visible;
  12919. });
  12920. N.forEach(function(t, o) {
  12921. var n = 0, A, _;
  12922. if (x[t] && !x[t].isNull)
  12923. O.push(x[t]), [-1, 1].forEach(function(B) {
  12924. var T = B === 1 ? "rightNull" : "leftNull", X = 0, g = w[N[o + B]];
  12925. if (g)
  12926. for (var m = i; 0 <= m && m < c; ) {
  12927. var L = a[m].index;
  12928. A = g.points[L], A || (L === P.index ? x[t][T] = !0 : s[m] && (_ = w[t].points[L]) && (X -= _[1] - _[0])), m += p;
  12929. }
  12930. x[t][B === 1 ? "rightCliff" : "leftCliff"] = X;
  12931. });
  12932. else {
  12933. for (var D = i; 0 <= D && D < c; ) {
  12934. if (A = w[t].points[a[D].index]) {
  12935. n = A[1];
  12936. break;
  12937. }
  12938. D += p;
  12939. }
  12940. n = S(n, 0), n = b.translate(n, 0, 1, 0, 1), O.push({ isNull: !0, plotX: C.translate(t, 0, 0, 0, 1), x: t, plotY: n, yBottom: n });
  12941. }
  12942. });
  12943. }
  12944. return O;
  12945. }, d.defaultOptions = W(H.defaultOptions, { threshold: 0 }), d;
  12946. }(H), y(Z.prototype, {
  12947. singleStacks: !1,
  12948. drawLegendSymbol: j.drawRectangle
  12949. }), I.registerSeriesType("area", Z), Z;
  12950. }), E(h, "Series/Spline/SplineSeries.js", [h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j) {
  12951. var I = this && this.__extends || function() {
  12952. var H = function(W, R) {
  12953. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  12954. S.__proto__ = v;
  12955. } || function(S, v) {
  12956. for (var d in v)
  12957. v.hasOwnProperty(d) && (S[d] = v[d]);
  12958. }, H(W, R);
  12959. };
  12960. return function(W, R) {
  12961. function S() {
  12962. this.constructor = W;
  12963. }
  12964. H(W, R), W.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  12965. };
  12966. }(), Z = y.seriesTypes.line, F = j.merge, U = j.pick;
  12967. return j = function(H) {
  12968. function W() {
  12969. var R = H !== null && H.apply(this, arguments) || this;
  12970. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  12971. }
  12972. return I(W, H), W.prototype.getPointSpline = function(R, S, v) {
  12973. var d = S.plotX || 0, u = S.plotY || 0, P = R[v - 1];
  12974. if (v = R[v + 1], P && !P.isNull && P.doCurve !== !1 && !S.isCliff && v && !v.isNull && v.doCurve !== !1 && !S.isCliff) {
  12975. R = P.plotY || 0;
  12976. var O = v.plotX || 0;
  12977. v = v.plotY || 0;
  12978. var N = 0, C = (1.5 * d + (P.plotX || 0)) / 2.5, b = (1.5 * u + R) / 2.5;
  12979. O = (1.5 * d + O) / 2.5;
  12980. var w = (1.5 * u + v) / 2.5;
  12981. O !== C && (N = (w - b) * (O - d) / (O - C) + u - w), b += N, w += N, b > R && b > u ? (b = Math.max(R, u), w = 2 * u - b) : b < R && b < u && (b = Math.min(R, u), w = 2 * u - b), w > v && w > u ? (w = Math.max(v, u), b = 2 * u - w) : w < v && w < u && (w = Math.min(v, u), b = 2 * u - w), S.rightContX = O, S.rightContY = w;
  12982. }
  12983. return S = ["C", U(P.rightContX, P.plotX, 0), U(P.rightContY, P.plotY, 0), U(C, d, 0), U(b, u, 0), d, u], P.rightContX = P.rightContY = void 0, S;
  12984. }, W.defaultOptions = F(Z.defaultOptions), W;
  12985. }(Z), y.registerSeriesType("spline", j), j;
  12986. }), E(
  12987. h,
  12988. "Series/AreaSpline/AreaSplineSeries.js",
  12989. [h["Series/Area/AreaSeries.js"], h["Series/Spline/SplineSeries.js"], h["Core/Legend/LegendSymbol.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]],
  12990. function(y, j, I, Z, F) {
  12991. var U = this && this.__extends || function() {
  12992. var S = function(v, d) {
  12993. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, P) {
  12994. u.__proto__ = P;
  12995. } || function(u, P) {
  12996. for (var O in P)
  12997. P.hasOwnProperty(O) && (u[O] = P[O]);
  12998. }, S(v, d);
  12999. };
  13000. return function(v, d) {
  13001. function u() {
  13002. this.constructor = v;
  13003. }
  13004. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  13005. };
  13006. }(), H = y.prototype, W = F.extend, R = F.merge;
  13007. return F = function(S) {
  13008. function v() {
  13009. var d = S !== null && S.apply(this, arguments) || this;
  13010. return d.data = void 0, d.points = void 0, d.options = void 0, d;
  13011. }
  13012. return U(v, S), v.defaultOptions = R(j.defaultOptions, y.defaultOptions), v;
  13013. }(j), W(F.prototype, { getGraphPath: H.getGraphPath, getStackPoints: H.getStackPoints, drawGraph: H.drawGraph, drawLegendSymbol: I.drawRectangle }), Z.registerSeriesType("areaspline", F), F;
  13014. }
  13015. ), E(h, "Series/Column/ColumnSeries.js", [
  13016. h["Core/Animation/AnimationUtilities.js"],
  13017. h["Core/Color/Color.js"],
  13018. h["Core/Globals.js"],
  13019. h["Core/Legend/LegendSymbol.js"],
  13020. h["Core/Series/Series.js"],
  13021. h["Core/Series/SeriesRegistry.js"],
  13022. h["Core/Utilities.js"]
  13023. ], function(y, j, I, Z, F, U, H) {
  13024. var W = this && this.__extends || function() {
  13025. var c = function(p, i) {
  13026. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, s) {
  13027. l.__proto__ = s;
  13028. } || function(l, s) {
  13029. for (var t in s)
  13030. s.hasOwnProperty(t) && (l[t] = s[t]);
  13031. }, c(p, i);
  13032. };
  13033. return function(p, i) {
  13034. function l() {
  13035. this.constructor = p;
  13036. }
  13037. c(p, i), p.prototype = i === null ? Object.create(i) : (l.prototype = i.prototype, new l());
  13038. };
  13039. }(), R = y.animObject, S = j.parse, v = I.hasTouch;
  13040. y = I.noop;
  13041. var d = H.clamp, u = H.css, P = H.defined, O = H.extend, N = H.fireEvent, C = H.isArray, b = H.isNumber, w = H.merge, x = H.pick, a = H.objectEach;
  13042. return H = function(c) {
  13043. function p() {
  13044. var i = c !== null && c.apply(this, arguments) || this;
  13045. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  13046. }
  13047. return W(p, c), p.prototype.animate = function(i) {
  13048. var l = this, s = this.yAxis, t = l.options, o = this.chart.inverted, n = {}, A = o ? "translateX" : "translateY";
  13049. if (i)
  13050. n.scaleY = 1e-3, i = d(s.toPixels(t.threshold), s.pos, s.pos + s.len), o ? n.translateX = i - s.len : n.translateY = i, l.clipBox && l.setClip(), l.group.attr(n);
  13051. else {
  13052. var _ = Number(l.group.attr(A));
  13053. l.group.animate({ scaleY: 1 }, O(R(l.options.animation), { step: function(D, B) {
  13054. l.group && (n[A] = _ + B.pos * (s.pos - _), l.group.attr(n));
  13055. } }));
  13056. }
  13057. }, p.prototype.init = function(i, l) {
  13058. c.prototype.init.apply(this, arguments);
  13059. var s = this;
  13060. i = s.chart, i.hasRendered && i.series.forEach(function(t) {
  13061. t.type === s.type && (t.isDirty = !0);
  13062. });
  13063. }, p.prototype.getColumnMetrics = function() {
  13064. var i = this, l = i.options, s = i.xAxis, t = i.yAxis, o = s.options.reversedStacks;
  13065. o = s.reversed && !o || !s.reversed && o;
  13066. var n = {}, A, _ = 0;
  13067. l.grouping === !1 ? _ = 1 : i.chart.series.forEach(function(X) {
  13068. var g = X.yAxis, m = X.options;
  13069. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === g.len && t.pos === g.pos) {
  13070. if (m.stacking && m.stacking !== "group") {
  13071. A = X.stackKey, typeof n[A] > "u" && (n[A] = _++);
  13072. var L = n[A];
  13073. } else
  13074. m.grouping !== !1 && (L = _++);
  13075. X.columnIndex = L;
  13076. }
  13077. });
  13078. var D = Math.min(Math.abs(s.transA) * (s.ordinal && s.ordinal.slope || l.pointRange || s.closestPointRange || s.tickInterval || 1), s.len), B = D * l.groupPadding, T = (D - 2 * B) / (_ || 1);
  13079. return l = Math.min(l.maxPointWidth || s.len, x(l.pointWidth, T * (1 - 2 * l.pointPadding))), i.columnMetrics = { width: l, offset: (T - l) / 2 + (B + ((i.columnIndex || 0) + (o ? 1 : 0)) * T - D / 2) * (o ? -1 : 1), paddedWidth: T, columnCount: _ }, i.columnMetrics;
  13080. }, p.prototype.crispCol = function(i, l, s, t) {
  13081. var o = this.chart, n = this.borderWidth, A = -(n % 2 ? 0.5 : 0);
  13082. return n = n % 2 ? 0.5 : 1, o.inverted && o.renderer.isVML && (n += 1), this.options.crisp && (s = Math.round(i + s) + A, i = Math.round(i) + A, s -= i), t = Math.round(l + t) + n, A = 0.5 >= Math.abs(l) && 0.5 < t, l = Math.round(l) + n, t -= l, A && t && (--l, t += 1), { x: i, y: l, width: s, height: t };
  13083. }, p.prototype.adjustForMissingColumns = function(i, l, s, t) {
  13084. var o = this, n = this.options.stacking;
  13085. if (!s.isNull && 1 < t.columnCount) {
  13086. var A = 0, _ = 0;
  13087. a(this.yAxis.stacking && this.yAxis.stacking.stacks, function(D) {
  13088. if (typeof s.x == "number" && (D = D[s.x.toString()])) {
  13089. var B = D.points[o.index], T = D.total;
  13090. n ? (B && (A = _), D.hasValidPoints && _++) : C(B) && (A = B[1], _ = T || 0);
  13091. }
  13092. }), i = (s.plotX || 0) + ((_ - 1) * t.paddedWidth + l) / 2 - l - A * t.paddedWidth;
  13093. }
  13094. return i;
  13095. }, p.prototype.translate = function() {
  13096. var i = this, l = i.chart, s = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  13097. t = i.borderWidth = x(s.borderWidth, t ? 0 : 1);
  13098. var o = i.xAxis, n = i.yAxis, A = s.threshold, _ = i.translatedThreshold = n.getThreshold(A), D = x(s.minPointLength, 5), B = i.getColumnMetrics(), T = B.width, X = i.pointXOffset = B.offset, g = i.dataMin, m = i.dataMax, L = i.barW = Math.max(T, 1 + 2 * t);
  13099. l.inverted && (_ -= 0.5), s.pointPadding && (L = Math.ceil(L)), F.prototype.translate.apply(i), i.points.forEach(function(Y) {
  13100. var V = x(Y.yBottom, _), Q = 999 + Math.abs(V), k = Y.plotX || 0;
  13101. Q = d(Y.plotY, -Q, n.len + Q);
  13102. var G = Math.min(Q, V), z = Math.max(Q, V) - G, $ = T, q = k + X, it = L;
  13103. D && Math.abs(z) < D && (z = D, k = !n.reversed && !Y.negative || n.reversed && Y.negative, b(A) && b(m) && Y.y === A && m <= A && (n.min || 0) < A && (g !== m || (n.max || 0) <= A) && (k = !k), G = Math.abs(G - _) > D ? V - D : _ - (k ? D : 0)), P(Y.options.pointWidth) && ($ = it = Math.ceil(Y.options.pointWidth), q -= Math.round(($ - T) / 2)), s.centerInCategory && (q = i.adjustForMissingColumns(q, $, Y, B)), Y.barX = q, Y.pointWidth = $, Y.tooltipPos = l.inverted ? [d(n.len + n.pos - l.plotLeft - Q, n.pos - l.plotLeft, n.len + n.pos - l.plotLeft), o.len + o.pos - l.plotTop - q - it / 2, z] : [o.left - l.plotLeft + q + it / 2, d(Q + n.pos - l.plotTop, n.pos - l.plotTop, n.len + n.pos - l.plotTop), z], Y.shapeType = i.pointClass.prototype.shapeType || "rect", Y.shapeArgs = i.crispCol.apply(i, Y.isNull ? [q, _, it, 0] : [q, G, it, z]);
  13104. });
  13105. }, p.prototype.drawGraph = function() {
  13106. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  13107. }, p.prototype.pointAttribs = function(i, l) {
  13108. var s = this.options, t = this.pointAttrToOptions || {}, o = t.stroke || "borderColor", n = t["stroke-width"] || "borderWidth", A = i && i.color || this.color, _ = i && i[o] || s[o] || A;
  13109. t = i && i.options.dashStyle || s.dashStyle;
  13110. var D = i && i[n] || s[n] || this[n] || 0, B = x(i && i.opacity, s.opacity, 1);
  13111. if (i && this.zones.length) {
  13112. var T = i.getZone();
  13113. A = i.options.color || T && (T.color || i.nonZonedColor) || this.color, T && (_ = T.borderColor || _, t = T.dashStyle || t, D = T.borderWidth || D);
  13114. }
  13115. return l && i && (i = w(s.states[l], i.options.states && i.options.states[l] || {}), l = i.brightness, A = i.color || typeof l < "u" && S(A).brighten(i.brightness).get() || A, _ = i[o] || _, D = i[n] || D, t = i.dashStyle || t, B = x(i.opacity, B)), o = { fill: A, stroke: _, "stroke-width": D, opacity: B }, t && (o.dashstyle = t), o;
  13116. }, p.prototype.drawPoints = function() {
  13117. var i = this, l = this.chart, s = i.options, t = l.renderer, o = s.animationLimit || 250, n;
  13118. i.points.forEach(function(A) {
  13119. var _ = A.graphic, D = !!_, B = _ && l.pointCount < o ? "animate" : "attr";
  13120. b(A.plotY) && A.y !== null ? (n = A.shapeArgs, _ && A.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (A.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), _ || (A.graphic = _ = t[A.shapeType](n).add(A.group || i.group)) && i.enabledDataSorting && l.hasRendered && l.pointCount < o && (_.attr({ x: A.startXPos }), D = !0, B = "animate"), _ && D && _[B](w(n)), s.borderRadius && _[B]({ r: s.borderRadius }), l.styledMode || _[B](i.pointAttribs(A, A.selected && "select")).shadow(A.allowShadow !== !1 && s.shadow, null, s.stacking && !s.borderRadius), _ && (_.addClass(A.getClassName(), !0), _.attr({ visibility: A.visible ? "inherit" : "hidden" }))) : _ && (A.graphic = _.destroy());
  13121. });
  13122. }, p.prototype.drawTracker = function() {
  13123. var i = this, l = i.chart, s = l.pointer, t = function(n) {
  13124. var A = s.getPointFromEvent(n);
  13125. typeof A < "u" && (s.isDirectTouch = !0, A.onMouseOver(n));
  13126. }, o;
  13127. i.points.forEach(function(n) {
  13128. o = C(n.dataLabels) ? n.dataLabels : n.dataLabel ? [n.dataLabel] : [], n.graphic && (n.graphic.element.point = n), o.forEach(function(A) {
  13129. A.div ? A.div.point = n : A.element.point = n;
  13130. });
  13131. }), i._hasTracking || (i.trackerGroups.forEach(function(n) {
  13132. i[n] && (i[n].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(A) {
  13133. s.onTrackerMouseOut(A);
  13134. }), v && i[n].on(
  13135. "touchstart",
  13136. t
  13137. ), !l.styledMode && i.options.cursor && i[n].css(u).css({ cursor: i.options.cursor }));
  13138. }), i._hasTracking = !0), N(this, "afterDrawTracker");
  13139. }, p.prototype.remove = function() {
  13140. var i = this, l = i.chart;
  13141. l.hasRendered && l.series.forEach(function(s) {
  13142. s.type === i.type && (s.isDirty = !0);
  13143. }), F.prototype.remove.apply(i, arguments);
  13144. }, p.defaultOptions = w(F.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  13145. hover: { halo: !1, brightness: 0.1 },
  13146. select: { color: "#cccccc", borderColor: "#000000" }
  13147. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), p;
  13148. }(F), O(H.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: Z.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), U.registerSeriesType("column", H), H;
  13149. }), E(h, "Core/Series/DataLabel.js", [
  13150. h["Core/Animation/AnimationUtilities.js"],
  13151. h["Core/FormatUtilities.js"],
  13152. h["Core/Utilities.js"]
  13153. ], function(y, j, I) {
  13154. var Z = y.getDeferredAnimation, F = j.format, U = I.defined, H = I.extend, W = I.fireEvent, R = I.isArray, S = I.merge, v = I.objectEach, d = I.pick, u = I.splat, P;
  13155. return function(O) {
  13156. function N(p, i, l, s, t) {
  13157. var o = this, n = this.chart, A = this.isCartesian && n.inverted, _ = this.enabledDataSorting, D = d(p.dlBox && p.dlBox.centerX, p.plotX, -9999), B = d(p.plotY, -9999), T = i.getBBox(), X = l.rotation, g = l.align, m = n.isInsidePlot(D, Math.round(B), { inverted: A, paneCoordinates: !0, series: o }), L = function(k) {
  13158. _ && o.xAxis && !Y && o.setDataLabelStartPos(
  13159. p,
  13160. i,
  13161. t,
  13162. m,
  13163. k
  13164. );
  13165. }, Y = d(l.overflow, _ ? "none" : "justify") === "justify", V = this.visible && p.visible !== !1 && (p.series.forceDL || _ && !Y || m || d(l.inside, !!this.options.stacking) && s && n.isInsidePlot(D, A ? s.x + 1 : s.y + s.height - 1, { inverted: A, paneCoordinates: !0, series: o }));
  13166. if (V) {
  13167. var Q = n.renderer.fontMetrics(n.styledMode ? void 0 : l.style.fontSize, i).b;
  13168. s = H({ x: A ? this.yAxis.len - B : D, y: Math.round(A ? this.xAxis.len - D : B), width: 0, height: 0 }, s), H(l, { width: T.width, height: T.height }), X ? (Y = !1, D = n.renderer.rotCorr(Q, X), D = { x: s.x + (l.x || 0) + s.width / 2 + D.x, y: s.y + (l.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[l.verticalAlign] * s.height }, L(D), i[t ? "attr" : "animate"](D).attr({ align: g }), L = (X + 720) % 360, L = 180 < L && 360 > L, g === "left" ? D.y -= L ? T.height : 0 : g === "center" ? (D.x -= T.width / 2, D.y -= T.height / 2) : g === "right" && (D.x -= T.width, D.y -= L ? 0 : T.height), i.placed = !0, i.alignAttr = D) : (L(s), i.align(l, void 0, s), D = i.alignAttr), Y && 0 <= s.height ? this.justifyDataLabel(i, l, D, T, s, t) : d(l.crop, !0) && (V = n.isInsidePlot(D.x, D.y, { paneCoordinates: !0, series: o }) && n.isInsidePlot(D.x + T.width, D.y + T.height, {
  13169. paneCoordinates: !0,
  13170. series: o
  13171. })), l.shape && !X && i[t ? "attr" : "animate"]({ anchorX: A ? n.plotWidth - p.plotY : p.plotX, anchorY: A ? n.plotHeight - p.plotX : p.plotY });
  13172. }
  13173. t && _ && (i.placed = !1), V || _ && !Y || (i.hide(!0), i.placed = !1);
  13174. }
  13175. function C(p, i) {
  13176. var l = i.filter;
  13177. return l ? (i = l.operator, p = p[l.property], l = l.value, i === ">" && p > l || i === "<" && p < l || i === ">=" && p >= l || i === "<=" && p <= l || i === "==" && p == l || i === "===" && p === l) : !0;
  13178. }
  13179. function b() {
  13180. var p = this, i = p.chart, l = p.options, s = p.points, t = p.hasRendered || 0, o = i.renderer, n = l.dataLabels, A, _ = n.animation;
  13181. if (_ = n.defer ? Z(
  13182. i,
  13183. _,
  13184. p
  13185. ) : { defer: 0, duration: 0 }, n = x(x(i.options.plotOptions && i.options.plotOptions.series && i.options.plotOptions.series.dataLabels, i.options.plotOptions && i.options.plotOptions[p.type] && i.options.plotOptions[p.type].dataLabels), n), W(this, "drawDataLabels"), R(n) || n.enabled || p._hasPointLabels) {
  13186. var D = p.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", n.zIndex || 6);
  13187. D.attr({ opacity: +t }), !t && (t = p.dataLabelsGroup) && (p.visible && D.show(!0), t[l.animation ? "animate" : "attr"]({ opacity: 1 }, _)), s.forEach(function(B) {
  13188. A = u(x(n, B.dlOptions || B.options && B.options.dataLabels)), A.forEach(function(T, X) {
  13189. var g = T.enabled && (!B.isNull || B.dataLabelOnNull) && C(B, T), m = B.connectors ? B.connectors[X] : B.connector, L = B.dataLabels ? B.dataLabels[X] : B.dataLabel, Y = d(T.distance, B.labelDistance), V = !L;
  13190. if (g) {
  13191. var Q = B.getLabelConfig(), k = d(T[B.formatPrefix + "Format"], T.format);
  13192. Q = U(k) ? F(k, Q, i) : (T[B.formatPrefix + "Formatter"] || T.formatter).call(Q, T), k = T.style;
  13193. var G = T.rotation;
  13194. i.styledMode || (k.color = d(T.color, k.color, p.color, "#000000"), k.color === "contrast" ? (B.contrastColor = o.getContrast(B.color || p.color), k.color = !U(Y) && T.inside || 0 > Y || l.stacking ? B.contrastColor : "#000000") : delete B.contrastColor, l.cursor && (k.cursor = l.cursor));
  13195. var z = { r: T.borderRadius || 0, rotation: G, padding: T.padding, zIndex: 1 };
  13196. i.styledMode || (z.fill = T.backgroundColor, z.stroke = T.borderColor, z["stroke-width"] = T.borderWidth), v(z, function($, q) {
  13197. typeof $ > "u" && delete z[q];
  13198. });
  13199. }
  13200. !L || g && U(Q) && !!L.div == !!T.useHTML || (B.dataLabel = L = B.dataLabel && B.dataLabel.destroy(), B.dataLabels && (B.dataLabels.length === 1 ? delete B.dataLabels : delete B.dataLabels[X]), X || delete B.dataLabel, m && (B.connector = B.connector.destroy(), B.connectors && (B.connectors.length === 1 ? delete B.connectors : delete B.connectors[X]))), g && U(Q) && (L ? z.text = Q : (B.dataLabels = B.dataLabels || [], L = B.dataLabels[X] = G ? o.text(Q, 0, -9999, T.useHTML).addClass("highcharts-data-label") : o.label(Q, 0, -9999, T.shape, null, null, T.useHTML, null, "data-label"), X || (B.dataLabel = L), L.addClass(" highcharts-data-label-color-" + B.colorIndex + " " + (T.className || "") + (T.useHTML ? " highcharts-tracker" : ""))), L.options = T, L.attr(z), i.styledMode || L.css(k).shadow(T.shadow), L.added || L.add(D), T.textPath && !T.useHTML && (L.setTextPath(B.getDataLabelPath && B.getDataLabelPath(L) || B.graphic, T.textPath), B.dataLabelPath && !T.textPath.enabled && (B.dataLabelPath = B.dataLabelPath.destroy())), p.alignDataLabel(B, L, T, null, V));
  13201. });
  13202. });
  13203. }
  13204. W(this, "afterDrawDataLabels");
  13205. }
  13206. function w(p, i, l, s, t, o) {
  13207. var n = this.chart, A = i.align, _ = i.verticalAlign, D = p.box ? 0 : p.padding || 0, B = i.x;
  13208. B = B === void 0 ? 0 : B;
  13209. var T = i.y;
  13210. T = T === void 0 ? 0 : T;
  13211. var X = (l.x || 0) + D;
  13212. if (0 > X) {
  13213. A === "right" && 0 <= B ? (i.align = "left", i.inside = !0) : B -= X;
  13214. var g = !0;
  13215. }
  13216. return X = (l.x || 0) + s.width - D, X > n.plotWidth && (A === "left" && 0 >= B ? (i.align = "right", i.inside = !0) : B += n.plotWidth - X, g = !0), X = l.y + D, 0 > X && (_ === "bottom" && 0 <= T ? (i.verticalAlign = "top", i.inside = !0) : T -= X, g = !0), X = (l.y || 0) + s.height - D, X > n.plotHeight && (_ === "top" && 0 >= T ? (i.verticalAlign = "bottom", i.inside = !0) : T += n.plotHeight - X, g = !0), g && (i.x = B, i.y = T, p.placed = !o, p.align(i, void 0, t)), g;
  13217. }
  13218. function x(p, i) {
  13219. var l = [], s;
  13220. if (R(p) && !R(i))
  13221. l = p.map(function(t) {
  13222. return S(t, i);
  13223. });
  13224. else if (R(i) && !R(p))
  13225. l = i.map(function(t) {
  13226. return S(p, t);
  13227. });
  13228. else if (R(p) || R(i))
  13229. for (s = Math.max(p.length, i.length); s--; )
  13230. l[s] = S(p[s], i[s]);
  13231. else
  13232. l = S(p, i);
  13233. return l;
  13234. }
  13235. function a(p, i, l, s, t) {
  13236. var o = this.chart, n = o.inverted, A = this.xAxis, _ = A.reversed, D = n ? i.height / 2 : i.width / 2;
  13237. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = n ? t.x : _ ? -D - p : A.width - D + p, i.startYPos = n ? _ ? this.yAxis.height - D + p : -D - p : t.y, s ? i.visibility === "hidden" && (i.show(), i.attr({ opacity: 0 }).animate({ opacity: 1 })) : i.attr({ opacity: 1 }).animate(
  13238. { opacity: 0 },
  13239. void 0,
  13240. i.hide
  13241. ), o.hasRendered && (l && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  13242. }
  13243. var c = [];
  13244. O.compose = function(p) {
  13245. if (c.indexOf(p) === -1) {
  13246. var i = p.prototype;
  13247. c.push(p), i.alignDataLabel = N, i.drawDataLabels = b, i.justifyDataLabel = w, i.setDataLabelStartPos = a;
  13248. }
  13249. };
  13250. }(P || (P = {})), P;
  13251. }), E(h, "Series/Column/ColumnDataLabel.js", [h["Core/Series/DataLabel.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I) {
  13252. var Z = j.series, F = I.merge, U = I.pick, H;
  13253. return function(W) {
  13254. function R(v, d, u, P, O) {
  13255. var N = this.chart.inverted, C = v.series, b = (C.xAxis ? C.xAxis.len : this.chart.plotSizeX) || 0;
  13256. C = (C.yAxis ? C.yAxis.len : this.chart.plotSizeY) || 0;
  13257. var w = v.dlBox || v.shapeArgs, x = U(v.below, v.plotY > U(this.translatedThreshold, C)), a = U(u.inside, !!this.options.stacking);
  13258. w && (P = F(w), 0 > P.y && (P.height += P.y, P.y = 0), w = P.y + P.height - C, 0 < w && w < P.height && (P.height -= w), N && (P = { x: C - P.y - P.height, y: b - P.x - P.width, width: P.height, height: P.width }), a || (N ? (P.x += x ? 0 : P.width, P.width = 0) : (P.y += x ? P.height : 0, P.height = 0))), u.align = U(u.align, !N || a ? "center" : x ? "right" : "left"), u.verticalAlign = U(u.verticalAlign, N || a ? "middle" : x ? "top" : "bottom"), Z.prototype.alignDataLabel.call(this, v, d, u, P, O), u.inside && v.contrastColor && d.css({ color: v.contrastColor });
  13259. }
  13260. var S = [];
  13261. W.compose = function(v) {
  13262. y.compose(Z), S.indexOf(v) === -1 && (S.push(v), v.prototype.alignDataLabel = R);
  13263. };
  13264. }(H || (H = {})), H;
  13265. }), E(h, "Series/Bar/BarSeries.js", [h["Series/Column/ColumnSeries.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I) {
  13266. var Z = this && this.__extends || function() {
  13267. var H = function(W, R) {
  13268. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  13269. S.__proto__ = v;
  13270. } || function(S, v) {
  13271. for (var d in v)
  13272. v.hasOwnProperty(d) && (S[d] = v[d]);
  13273. }, H(W, R);
  13274. };
  13275. return function(W, R) {
  13276. function S() {
  13277. this.constructor = W;
  13278. }
  13279. H(W, R), W.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  13280. };
  13281. }(), F = I.extend, U = I.merge;
  13282. return I = function(H) {
  13283. function W() {
  13284. var R = H !== null && H.apply(this, arguments) || this;
  13285. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  13286. }
  13287. return Z(W, H), W.defaultOptions = U(
  13288. y.defaultOptions,
  13289. {}
  13290. ), W;
  13291. }(y), F(I.prototype, { inverted: !0 }), j.registerSeriesType("bar", I), I;
  13292. }), E(h, "Series/Scatter/ScatterSeries.js", [h["Series/Column/ColumnSeries.js"], h["Series/Line/LineSeries.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, j, I, Z) {
  13293. var F = this && this.__extends || function() {
  13294. var R = function(S, v) {
  13295. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, u) {
  13296. d.__proto__ = u;
  13297. } || function(d, u) {
  13298. for (var P in u)
  13299. u.hasOwnProperty(P) && (d[P] = u[P]);
  13300. }, R(S, v);
  13301. };
  13302. return function(S, v) {
  13303. function d() {
  13304. this.constructor = S;
  13305. }
  13306. R(S, v), S.prototype = v === null ? Object.create(v) : (d.prototype = v.prototype, new d());
  13307. };
  13308. }(), U = Z.addEvent, H = Z.extend, W = Z.merge;
  13309. return Z = function(R) {
  13310. function S() {
  13311. var v = R !== null && R.apply(this, arguments) || this;
  13312. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  13313. }
  13314. return F(S, R), S.prototype.applyJitter = function() {
  13315. var v = this, d = this.options.jitter, u = this.points.length;
  13316. d && this.points.forEach(function(P, O) {
  13317. ["x", "y"].forEach(function(N, C) {
  13318. var b = "plot" + N.toUpperCase();
  13319. if (d[N] && !P.isNull) {
  13320. var w = v[N + "Axis"], x = d[N] * w.transA;
  13321. if (w && !w.isLog) {
  13322. var a = Math.max(0, P[b] - x);
  13323. w = Math.min(w.len, P[b] + x), C = 1e4 * Math.sin(O + C * u), P[b] = a + (w - a) * (C - Math.floor(C)), N === "x" && (P.clientX = P.plotX);
  13324. }
  13325. }
  13326. });
  13327. });
  13328. }, S.prototype.drawGraph = function() {
  13329. this.options.lineWidth ? R.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  13330. }, S.defaultOptions = W(j.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  13331. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  13332. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  13333. } }), S;
  13334. }(j), H(Z.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), U(Z, "afterTranslate", function() {
  13335. this.applyJitter();
  13336. }), I.registerSeriesType("scatter", Z), Z;
  13337. }), E(h, "Series/CenteredUtilities.js", [h["Core/Globals.js"], h["Core/Series/Series.js"], h["Core/Utilities.js"]], function(y, j, I) {
  13338. var Z = y.deg2rad, F = I.isNumber, U = I.pick, H = I.relativeLength, W;
  13339. return function(R) {
  13340. R.getCenter = function() {
  13341. var S = this.options, v = this.chart, d = 2 * (S.slicedOffset || 0), u = v.plotWidth - 2 * d, P = v.plotHeight - 2 * d, O = S.center, N = Math.min(u, P), C = S.size, b = S.innerSize || 0;
  13342. for (typeof C == "string" && (C = parseFloat(C)), typeof b == "string" && (b = parseFloat(b)), S = [U(O[0], "50%"), U(O[1], "50%"), U(C && 0 > C ? void 0 : S.size, "100%"), U(b && 0 > b ? void 0 : S.innerSize || 0, "0%")], !v.angular || this instanceof j || (S[3] = 0), O = 0; 4 > O; ++O)
  13343. C = S[O], v = 2 > O || O === 2 && /%$/.test(C), S[O] = H(C, [u, P, N, S[2]][O]) + (v ? d : 0);
  13344. return S[3] > S[2] && (S[3] = S[2]), S;
  13345. }, R.getStartAndEndRadians = function(S, v) {
  13346. return S = F(S) ? S : 0, v = F(v) && v > S && 360 > v - S ? v : S + 360, { start: Z * (S + -90), end: Z * (v + -90) };
  13347. };
  13348. }(W || (W = {})), W;
  13349. }), E(h, "Series/Pie/PiePoint.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Series/Point.js"], h["Core/Utilities.js"]], function(y, j, I) {
  13350. var Z = this && this.__extends || function() {
  13351. var v = function(d, u) {
  13352. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  13353. P.__proto__ = O;
  13354. } || function(P, O) {
  13355. for (var N in O)
  13356. O.hasOwnProperty(N) && (P[N] = O[N]);
  13357. }, v(d, u);
  13358. };
  13359. return function(d, u) {
  13360. function P() {
  13361. this.constructor = d;
  13362. }
  13363. v(d, u), d.prototype = u === null ? Object.create(u) : (P.prototype = u.prototype, new P());
  13364. };
  13365. }(), F = y.setAnimation, U = I.addEvent, H = I.defined;
  13366. y = I.extend;
  13367. var W = I.isNumber, R = I.pick, S = I.relativeLength;
  13368. return j = function(v) {
  13369. function d() {
  13370. var u = v !== null && v.apply(this, arguments) || this;
  13371. return u.labelDistance = void 0, u.options = void 0, u.series = void 0, u;
  13372. }
  13373. return Z(d, v), d.prototype.getConnectorPath = function() {
  13374. var u = this.labelPosition, P = this.series.options.dataLabels, O = this.connectorShapes, N = P.connectorShape;
  13375. return O[N] && (N = O[N]), N.call(this, { x: u.final.x, y: u.final.y, alignment: u.alignment }, u.connectorPosition, P);
  13376. }, d.prototype.getTranslate = function() {
  13377. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  13378. }, d.prototype.haloPath = function(u) {
  13379. var P = this.shapeArgs;
  13380. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(P.x, P.y, P.r + u, P.r + u, { innerR: P.r - 1, start: P.start, end: P.end });
  13381. }, d.prototype.init = function() {
  13382. var u = this;
  13383. v.prototype.init.apply(
  13384. this,
  13385. arguments
  13386. ), this.name = R(this.name, "Slice");
  13387. var P = function(O) {
  13388. u.slice(O.type === "select");
  13389. };
  13390. return U(this, "select", P), U(this, "unselect", P), this;
  13391. }, d.prototype.isValid = function() {
  13392. return W(this.y) && 0 <= this.y;
  13393. }, d.prototype.setVisible = function(u, P) {
  13394. var O = this, N = this.series, C = N.chart, b = N.options.ignoreHiddenPoint;
  13395. P = R(P, b), u !== this.visible && (this.visible = this.options.visible = u = typeof u > "u" ? !this.visible : u, N.options.data[N.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(w) {
  13396. O[w] && O[w][u ? "show" : "hide"](u);
  13397. }), this.legendItem && C.legend.colorizeItem(this, u), u || this.state !== "hover" || this.setState(""), b && (N.isDirty = !0), P && C.redraw());
  13398. }, d.prototype.slice = function(u, P, O) {
  13399. var N = this.series;
  13400. F(O, N.chart), R(P, !0), this.sliced = this.options.sliced = H(u) ? u : !this.sliced, N.options.data[N.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  13401. }, d;
  13402. }(j), y(j.prototype, { connectorShapes: { fixedOffset: function(v, d, u) {
  13403. var P = d.breakAt;
  13404. return d = d.touchingSliceAt, [["M", v.x, v.y], u.softConnector ? ["C", v.x + (v.alignment === "left" ? -5 : 5), v.y, 2 * P.x - d.x, 2 * P.y - d.y, P.x, P.y] : ["L", P.x, P.y], ["L", d.x, d.y]];
  13405. }, straight: function(v, d) {
  13406. return d = d.touchingSliceAt, [["M", v.x, v.y], ["L", d.x, d.y]];
  13407. }, crookedLine: function(v, d, u) {
  13408. d = d.touchingSliceAt;
  13409. var P = this.series, O = P.center[0], N = P.chart.plotWidth, C = P.chart.plotLeft;
  13410. P = v.alignment;
  13411. var b = this.shapeArgs.r;
  13412. return u = S(u.crookDistance, 1), N = P === "left" ? O + b + (N + C - O - b) * (1 - u) : C + (O - b) * u, u = ["L", N, v.y], O = !0, (P === "left" ? N > v.x || N < d.x : N < v.x || N > d.x) && (O = !1), v = [["M", v.x, v.y]], O && v.push(u), v.push(["L", d.x, d.y]), v;
  13413. } } }), j;
  13414. }), E(h, "Series/Pie/PieSeries.js", [h["Series/CenteredUtilities.js"], h["Series/Column/ColumnSeries.js"], h["Core/Globals.js"], h["Core/Legend/LegendSymbol.js"], h["Series/Pie/PiePoint.js"], h["Core/Series/Series.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Renderer/SVG/Symbols.js"], h["Core/Utilities.js"]], function(y, j, I, Z, F, U, H, W, R) {
  13415. var S = this && this.__extends || function() {
  13416. var b = function(w, x) {
  13417. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, c) {
  13418. a.__proto__ = c;
  13419. } || function(a, c) {
  13420. for (var p in c)
  13421. c.hasOwnProperty(p) && (a[p] = c[p]);
  13422. }, b(w, x);
  13423. };
  13424. return function(w, x) {
  13425. function a() {
  13426. this.constructor = w;
  13427. }
  13428. b(w, x), w.prototype = x === null ? Object.create(x) : (a.prototype = x.prototype, new a());
  13429. };
  13430. }(), v = y.getStartAndEndRadians;
  13431. I = I.noop;
  13432. var d = R.clamp, u = R.extend, P = R.fireEvent, O = R.merge, N = R.pick, C = R.relativeLength;
  13433. return R = function(b) {
  13434. function w() {
  13435. var x = b !== null && b.apply(this, arguments) || this;
  13436. return x.center = void 0, x.data = void 0, x.maxLabelDistance = void 0, x.options = void 0, x.points = void 0, x;
  13437. }
  13438. return S(w, b), w.prototype.animate = function(x) {
  13439. var a = this, c = a.points, p = a.startAngleRad;
  13440. x || c.forEach(function(i) {
  13441. var l = i.graphic, s = i.shapeArgs;
  13442. l && s && (l.attr({ r: N(i.startR, a.center && a.center[3] / 2), start: p, end: p }), l.animate({ r: s.r, start: s.start, end: s.end }, a.options.animation));
  13443. });
  13444. }, w.prototype.drawEmpty = function() {
  13445. var x = this.startAngleRad, a = this.endAngleRad, c = this.options;
  13446. if (this.total === 0 && this.center) {
  13447. var p = this.center[0], i = this.center[1];
  13448. this.graph || (this.graph = this.chart.renderer.arc(p, i, this.center[1] / 2, 0, x, a).addClass("highcharts-empty-series").add(this.group)), this.graph.attr({ d: W.arc(p, i, this.center[2] / 2, 0, { start: x, end: a, innerR: this.center[3] / 2 }) }), this.chart.styledMode || this.graph.attr({ "stroke-width": c.borderWidth, fill: c.fillColor || "none", stroke: c.color || "#cccccc" });
  13449. } else
  13450. this.graph && (this.graph = this.graph.destroy());
  13451. }, w.prototype.drawPoints = function() {
  13452. var x = this.chart.renderer;
  13453. this.points.forEach(function(a) {
  13454. a.graphic && a.hasNewShapeType() && (a.graphic = a.graphic.destroy()), a.graphic || (a.graphic = x[a.shapeType](a.shapeArgs).add(a.series.group), a.delayedRendering = !0);
  13455. });
  13456. }, w.prototype.generatePoints = function() {
  13457. b.prototype.generatePoints.call(this), this.updateTotals();
  13458. }, w.prototype.getX = function(x, a, c) {
  13459. var p = this.center, i = this.radii ? this.radii[c.index] || 0 : p[2] / 2;
  13460. return x = Math.asin(d((x - p[1]) / (i + c.labelDistance), -1, 1)), p[0] + (a ? -1 : 1) * Math.cos(x) * (i + c.labelDistance) + (0 < c.labelDistance ? (a ? -1 : 1) * this.options.dataLabels.padding : 0);
  13461. }, w.prototype.hasData = function() {
  13462. return !!this.processedXData.length;
  13463. }, w.prototype.redrawPoints = function() {
  13464. var x = this, a = x.chart, c = a.renderer, p = x.options.shadow, i, l, s, t;
  13465. this.drawEmpty(), !p || x.shadowGroup || a.styledMode || (x.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(x.group)), x.points.forEach(function(o) {
  13466. var n = {};
  13467. if (l = o.graphic, !o.isNull && l) {
  13468. var A = void 0;
  13469. t = o.shapeArgs, i = o.getTranslate(), a.styledMode || (A = o.shadowGroup, p && !A && (A = o.shadowGroup = c.g("shadow").add(x.shadowGroup)), A && A.attr(i), s = x.pointAttribs(o, o.selected && "select")), o.delayedRendering ? (l.setRadialReference(x.center).attr(t).attr(i), a.styledMode || l.attr(s).attr({ "stroke-linejoin": "round" }).shadow(p, A), o.delayedRendering = !1) : (l.setRadialReference(x.center), a.styledMode || O(!0, n, s), O(!0, n, t, i), l.animate(n)), l.attr({ visibility: o.visible ? "inherit" : "hidden" }), l.addClass(o.getClassName(), !0);
  13470. } else
  13471. l && (o.graphic = l.destroy());
  13472. });
  13473. }, w.prototype.sortByAngle = function(x, a) {
  13474. x.sort(function(c, p) {
  13475. return typeof c.angle < "u" && (p.angle - c.angle) * a;
  13476. });
  13477. }, w.prototype.translate = function(x) {
  13478. this.generatePoints();
  13479. var a = this.options, c = a.slicedOffset, p = c + (a.borderWidth || 0), i = v(a.startAngle, a.endAngle), l = this.startAngleRad = i.start;
  13480. i = (this.endAngleRad = i.end) - l;
  13481. var s = this.points, t = a.dataLabels.distance;
  13482. a = a.ignoreHiddenPoint;
  13483. var o = s.length, n, A = 0;
  13484. for (x || (this.center = x = this.getCenter()), n = 0; n < o; n++) {
  13485. var _ = s[n], D = l + A * i;
  13486. !_.isValid() || a && !_.visible || (A += _.percentage / 100);
  13487. var B = l + A * i, T = { x: x[0], y: x[1], r: x[2] / 2, innerR: x[3] / 2, start: Math.round(1e3 * D) / 1e3, end: Math.round(1e3 * B) / 1e3 };
  13488. _.shapeType = "arc", _.shapeArgs = T, _.labelDistance = N(_.options.dataLabels && _.options.dataLabels.distance, t), _.labelDistance = C(_.labelDistance, T.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, _.labelDistance), B = (B + D) / 2, B > 1.5 * Math.PI ? B -= 2 * Math.PI : B < -Math.PI / 2 && (B += 2 * Math.PI), _.slicedTranslation = { translateX: Math.round(Math.cos(B) * c), translateY: Math.round(Math.sin(B) * c) }, T = Math.cos(B) * x[2] / 2;
  13489. var X = Math.sin(B) * x[2] / 2;
  13490. _.tooltipPos = [x[0] + 0.7 * T, x[1] + 0.7 * X], _.half = B < -Math.PI / 2 || B > Math.PI / 2 ? 1 : 0, _.angle = B, D = Math.min(p, _.labelDistance / 5), _.labelPosition = { natural: { x: x[0] + T + Math.cos(B) * _.labelDistance, y: x[1] + X + Math.sin(B) * _.labelDistance }, final: {}, alignment: 0 > _.labelDistance ? "center" : _.half ? "right" : "left", connectorPosition: { breakAt: { x: x[0] + T + Math.cos(B) * D, y: x[1] + X + Math.sin(B) * D }, touchingSliceAt: { x: x[0] + T, y: x[1] + X } } };
  13491. }
  13492. P(this, "afterTranslate");
  13493. }, w.prototype.updateTotals = function() {
  13494. var x = this.points, a = x.length, c = this.options.ignoreHiddenPoint, p, i = 0;
  13495. for (p = 0; p < a; p++) {
  13496. var l = x[p];
  13497. !l.isValid() || c && !l.visible || (i += l.y);
  13498. }
  13499. for (this.total = i, p = 0; p < a; p++)
  13500. l = x[p], l.percentage = 0 < i && (l.visible || !c) ? l.y / i * 100 : 0, l.total = i;
  13501. }, w.defaultOptions = O(U.defaultOptions, {
  13502. center: [null, null],
  13503. clip: !1,
  13504. colorByPoint: !0,
  13505. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  13506. return this.point.isNull ? void 0 : this.point.name;
  13507. }, softConnector: !0, x: 0 },
  13508. fillColor: void 0,
  13509. ignoreHiddenPoint: !0,
  13510. inactiveOtherPoints: !0,
  13511. legendType: "point",
  13512. marker: null,
  13513. size: null,
  13514. showInLegend: !1,
  13515. slicedOffset: 10,
  13516. stickyTracking: !1,
  13517. tooltip: { followPointer: !0 },
  13518. borderColor: "#ffffff",
  13519. borderWidth: 1,
  13520. lineWidth: void 0,
  13521. states: { hover: { brightness: 0.1 } }
  13522. }), w;
  13523. }(U), u(R.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: Z.drawRectangle, drawTracker: j.prototype.drawTracker, getCenter: y.getCenter, getSymbol: I, isCartesian: !1, noSharedTooltip: !0, pointAttribs: j.prototype.pointAttribs, pointClass: F, requireSorting: !1, searchPoint: I, trackerGroups: ["group", "dataLabelsGroup"] }), H.registerSeriesType("pie", R), R;
  13524. }), E(h, "Series/Pie/PieDataLabel.js", [
  13525. h["Core/Series/DataLabel.js"],
  13526. h["Core/Globals.js"],
  13527. h["Core/Renderer/RendererUtilities.js"],
  13528. h["Core/Series/SeriesRegistry.js"],
  13529. h["Core/Utilities.js"]
  13530. ], function(y, j, I, Z, F) {
  13531. var U = j.noop, H = I.distribute, W = Z.series, R = F.arrayMax, S = F.clamp, v = F.defined, d = F.merge, u = F.pick, P = F.relativeLength, O;
  13532. return function(N) {
  13533. function C() {
  13534. var c = this, p = c.data, i = c.chart, l = c.options.dataLabels || {}, s = l.connectorPadding, t = i.plotWidth, o = i.plotHeight, n = i.plotLeft, A = Math.round(i.chartWidth / 3), _ = c.center, D = _[2] / 2, B = _[1], T = [[], []], X = [0, 0, 0, 0], g = c.dataLabelPositioners, m, L, Y, V, Q, k, G, z, $, q, it, et;
  13535. c.visible && (l.enabled || c._hasPointLabels) && (p.forEach(function(nt) {
  13536. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  13537. }), W.prototype.drawDataLabels.apply(c), p.forEach(function(nt) {
  13538. nt.dataLabel && (nt.visible ? (T[nt.half].push(nt), nt.dataLabel._pos = null, !v(l.style.width) && !v(nt.options.dataLabels && nt.options.dataLabels.style && nt.options.dataLabels.style.width) && nt.dataLabel.getBBox().width > A && (nt.dataLabel.css({ width: Math.round(0.7 * A) + "px" }), nt.dataLabel.shortened = !0)) : (nt.dataLabel = nt.dataLabel.destroy(), nt.dataLabels && nt.dataLabels.length === 1 && delete nt.dataLabels));
  13539. }), T.forEach(function(nt, rt) {
  13540. var ct = nt.length, gt = [], dt;
  13541. if (ct) {
  13542. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  13543. var lt = Math.max(0, B - D - c.maxLabelDistance), at = Math.min(B + D + c.maxLabelDistance, i.plotHeight);
  13544. nt.forEach(function(J) {
  13545. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, B - D - J.labelDistance), J.bottom = Math.min(B + D + J.labelDistance, i.plotHeight), dt = J.dataLabel.getBBox().height || 21, J.distributeBox = { target: J.labelPosition.natural.y - J.top + dt / 2, size: dt, rank: J.y }, gt.push(J.distributeBox));
  13546. }), lt = at + dt - lt, H(gt, lt, lt / 5);
  13547. }
  13548. for (it = 0; it < ct; it++) {
  13549. if (m = nt[it], k = m.labelPosition, V = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", $ = lt = k.natural.y, gt && v(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (G = m.distributeBox.size, $ = g.radialDistributionY(m))), delete m.positionIndex, l.justify)
  13550. z = g.justify(m, D, _);
  13551. else
  13552. switch (l.alignTo) {
  13553. case "connectors":
  13554. z = g.alignToConnectors(nt, rt, t, n);
  13555. break;
  13556. case "plotEdges":
  13557. z = g.alignToPlotEdges(V, rt, t, n);
  13558. break;
  13559. default:
  13560. z = g.radialDistributionX(c, m, $, lt);
  13561. }
  13562. V._attr = { visibility: q, align: k.alignment }, et = m.options.dataLabels || {}, V._pos = { x: z + u(et.x, l.x) + ({ left: s, right: -s }[k.alignment] || 0), y: $ + u(et.y, l.y) - 10 }, k.final.x = z, k.final.y = $, u(l.crop, !0) && (Q = V.getBBox().width, lt = null, z - Q < s && rt === 1 ? (lt = Math.round(Q - z + s), X[3] = Math.max(lt, X[3])) : z + Q > t - s && rt === 0 && (lt = Math.round(z + Q - t + s), X[1] = Math.max(lt, X[1])), 0 > $ - G / 2 ? X[0] = Math.max(Math.round(-$ + G / 2), X[0]) : $ + G / 2 > o && (X[2] = Math.max(Math.round($ + G / 2 - o), X[2])), V.sideOverflow = lt);
  13563. }
  13564. }
  13565. }), R(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  13566. if (et = d(l, nt.options.dataLabels), L = u(et.connectorWidth, 1)) {
  13567. var rt;
  13568. Y = nt.connector, (V = nt.dataLabel) && V._pos && nt.visible && 0 < nt.labelDistance ? (q = V._attr.visibility, (rt = !Y) && (nt.connector = Y = i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + nt.colorIndex + (nt.className ? " " + nt.className : "")).add(c.dataLabelsGroup), i.styledMode || Y.attr({ "stroke-width": L, stroke: et.connectorColor || nt.color || "#666666" })), Y[rt ? "attr" : "animate"]({ d: nt.getConnectorPath() }), Y.attr("visibility", q)) : Y && (nt.connector = Y.destroy());
  13569. }
  13570. }));
  13571. }
  13572. function b() {
  13573. this.points.forEach(function(c) {
  13574. var p = c.dataLabel, i;
  13575. p && c.visible && ((i = p._pos) ? (p.sideOverflow && (p._attr.width = Math.max(p.getBBox().width - p.sideOverflow, 0), p.css({ width: p._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), p.shortened = !0), p.attr(p._attr), p[p.moved ? "animate" : "attr"](i), p.moved = !0) : p && p.attr({ y: -9999 })), delete c.distributeBox;
  13576. }, this);
  13577. }
  13578. function w(c) {
  13579. var p = this.center, i = this.options, l = i.center, s = i.minSize || 80, t = i.size !== null;
  13580. if (!t) {
  13581. if (l[0] !== null)
  13582. var o = Math.max(p[2] - Math.max(c[1], c[3]), s);
  13583. else
  13584. o = Math.max(p[2] - c[1] - c[3], s), p[0] += (c[3] - c[1]) / 2;
  13585. l[1] !== null ? o = S(o, s, p[2] - Math.max(c[0], c[2])) : (o = S(o, s, p[2] - c[0] - c[2]), p[1] += (c[0] - c[2]) / 2), o < p[2] ? (p[2] = o, p[3] = Math.min(P(i.innerSize || 0, o), o), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  13586. }
  13587. return t;
  13588. }
  13589. var x = [], a = { radialDistributionY: function(c) {
  13590. return c.top + c.distributeBox.pos;
  13591. }, radialDistributionX: function(c, p, i, l) {
  13592. return c.getX(i < p.top + 2 || i > p.bottom - 2 ? l : i, p.half, p);
  13593. }, justify: function(c, p, i) {
  13594. return i[0] + (c.half ? -1 : 1) * (p + c.labelDistance);
  13595. }, alignToPlotEdges: function(c, p, i, l) {
  13596. return c = c.getBBox().width, p ? c + l : i - c - l;
  13597. }, alignToConnectors: function(c, p, i, l) {
  13598. var s = 0, t;
  13599. return c.forEach(function(o) {
  13600. t = o.dataLabel.getBBox().width, t > s && (s = t);
  13601. }), p ? s + l : i - s - l;
  13602. } };
  13603. N.compose = function(c) {
  13604. y.compose(W), x.indexOf(c) === -1 && (x.push(c), c = c.prototype, c.dataLabelPositioners = a, c.alignDataLabel = U, c.drawDataLabels = C, c.placeDataLabels = b, c.verifyDataLabelOverflow = w);
  13605. };
  13606. }(O || (O = {})), O;
  13607. }), E(h, "Extensions/OverlappingDataLabels.js", [h["Core/Chart/Chart.js"], h["Core/Utilities.js"]], function(y, j) {
  13608. function I(S, v) {
  13609. var d = !1;
  13610. if (S) {
  13611. var u = S.newOpacity;
  13612. S.oldOpacity !== u && (S.alignAttr && S.placed ? (S[u ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), d = !0, S.alignAttr.opacity = u, S[S.isOld ? "animate" : "attr"](S.alignAttr, null, function() {
  13613. v.styledMode || S.css({ pointerEvents: u ? "auto" : "none" });
  13614. }), F(v, "afterHideOverlappingLabel")) : S.attr({ opacity: u })), S.isOld = !0;
  13615. }
  13616. return d;
  13617. }
  13618. var Z = j.addEvent, F = j.fireEvent, U = j.isArray, H = j.isNumber, W = j.objectEach, R = j.pick;
  13619. Z(y, "render", function() {
  13620. var S = this, v = [];
  13621. (this.labelCollectors || []).forEach(function(d) {
  13622. v = v.concat(d());
  13623. }), (this.yAxis || []).forEach(function(d) {
  13624. d.stacking && d.options.stackLabels && !d.options.stackLabels.allowOverlap && W(d.stacking.stacks, function(u) {
  13625. W(u, function(P) {
  13626. P.label && P.label.visibility !== "hidden" && v.push(P.label);
  13627. });
  13628. });
  13629. }), (this.series || []).forEach(function(d) {
  13630. var u = d.options.dataLabels;
  13631. d.visible && (u.enabled !== !1 || d._hasPointLabels) && (u = function(P) {
  13632. return P.forEach(function(O) {
  13633. O.visible && (U(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(N) {
  13634. var C = N.options;
  13635. N.labelrank = R(C.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), C.allowOverlap ? (N.oldOpacity = N.opacity, N.newOpacity = 1, I(N, S)) : v.push(N);
  13636. });
  13637. });
  13638. }, u(d.nodes || []), u(d.points));
  13639. }), this.hideOverlappingLabels(v);
  13640. }), y.prototype.hideOverlappingLabels = function(S) {
  13641. var v = this, d = S.length, u = v.renderer, P, O, N, C = !1, b = function(a) {
  13642. var c, p = a.box ? 0 : a.padding || 0, i = c = 0, l;
  13643. if (a && (!a.alignAttr || a.placed)) {
  13644. var s = a.alignAttr || { x: a.attr("x"), y: a.attr("y") }, t = a.parentGroup;
  13645. a.width || (c = a.getBBox(), a.width = c.width, a.height = c.height, c = u.fontMetrics(null, a.element).h);
  13646. var o = a.width - 2 * p;
  13647. return (l = { left: "0", center: "0.5", right: "1" }[a.alignValue]) ? i = +l * o : H(a.x) && Math.round(a.x) !== a.translateX && (i = a.x - a.translateX), { x: s.x + (t.translateX || 0) + p - (i || 0), y: s.y + (t.translateY || 0) + p - c, width: a.width - 2 * p, height: a.height - 2 * p };
  13648. }
  13649. };
  13650. for (O = 0; O < d; O++)
  13651. (P = S[O]) && (P.oldOpacity = P.opacity, P.newOpacity = 1, P.absoluteBox = b(P));
  13652. for (S.sort(function(a, c) {
  13653. return (c.labelrank || 0) - (a.labelrank || 0);
  13654. }), O = 0; O < d; O++) {
  13655. var w = (b = S[O]) && b.absoluteBox;
  13656. for (P = O + 1; P < d; ++P) {
  13657. var x = (N = S[P]) && N.absoluteBox;
  13658. !w || !x || b === N || b.newOpacity === 0 || N.newOpacity === 0 || x.x >= w.x + w.width || x.x + x.width <= w.x || x.y >= w.y + w.height || x.y + x.height <= w.y || ((b.labelrank < N.labelrank ? b : N).newOpacity = 0);
  13659. }
  13660. }
  13661. S.forEach(function(a) {
  13662. I(a, v) && (C = !0);
  13663. }), C && F(v, "afterHideAllOverlappingLabels");
  13664. };
  13665. }), E(
  13666. h,
  13667. "Core/Responsive.js",
  13668. [h["Core/Utilities.js"]],
  13669. function(y) {
  13670. var j = y.extend, I = y.find, Z = y.isArray, F = y.isObject, U = y.merge, H = y.objectEach, W = y.pick, R = y.splat, S = y.uniqueKey, v;
  13671. return function(d) {
  13672. var u = [];
  13673. d.compose = function(O) {
  13674. return u.indexOf(O) === -1 && (u.push(O), j(O.prototype, P.prototype)), O;
  13675. };
  13676. var P = function() {
  13677. function O() {
  13678. }
  13679. return O.prototype.currentOptions = function(N) {
  13680. function C(x, a, c, p) {
  13681. var i;
  13682. H(x, function(l, s) {
  13683. if (!p && -1 < b.collectionsWithUpdate.indexOf(s) && a[s])
  13684. for (l = R(l), c[s] = [], i = 0; i < Math.max(l.length, a[s].length); i++)
  13685. a[s][i] && (l[i] === void 0 ? c[s][i] = a[s][i] : (c[s][i] = {}, C(l[i], a[s][i], c[s][i], p + 1)));
  13686. else
  13687. F(l) ? (c[s] = Z(l) ? [] : {}, C(l, a[s] || {}, c[s], p + 1)) : c[s] = typeof a[s] > "u" ? null : a[s];
  13688. });
  13689. }
  13690. var b = this, w = {};
  13691. return C(N, this.options, w, 0), w;
  13692. }, O.prototype.matchResponsiveRule = function(N, C) {
  13693. var b = N.condition;
  13694. (b.callback || function() {
  13695. return this.chartWidth <= W(b.maxWidth, Number.MAX_VALUE) && this.chartHeight <= W(b.maxHeight, Number.MAX_VALUE) && this.chartWidth >= W(b.minWidth, 0) && this.chartHeight >= W(b.minHeight, 0);
  13696. }).call(this) && C.push(N._id);
  13697. }, O.prototype.setResponsive = function(N, C) {
  13698. var b = this, w = this.options.responsive, x = this.currentResponsive, a = [];
  13699. !C && w && w.rules && w.rules.forEach(function(c) {
  13700. typeof c._id > "u" && (c._id = S()), b.matchResponsiveRule(c, a);
  13701. }, this), C = U.apply(void 0, a.map(function(c) {
  13702. return I((w || {}).rules || [], function(p) {
  13703. return p._id === c;
  13704. });
  13705. }).map(function(c) {
  13706. return c && c.chartOptions;
  13707. })), C.isResponsiveOptions = !0, a = a.toString() || void 0, a !== (x && x.ruleIds) && (x && this.update(x.undoOptions, N, !0), a ? (x = this.currentOptions(C), x.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: a, mergedOptions: C, undoOptions: x }, this.update(C, N, !0)) : this.currentResponsive = void 0);
  13708. }, O;
  13709. }();
  13710. }(v || (v = {})), v;
  13711. }
  13712. ), E(h, "masters/highcharts.src.js", [
  13713. h["Core/Globals.js"],
  13714. h["Core/Utilities.js"],
  13715. h["Core/DefaultOptions.js"],
  13716. h["Core/Animation/Fx.js"],
  13717. h["Core/Animation/AnimationUtilities.js"],
  13718. h["Core/Renderer/HTML/AST.js"],
  13719. h["Core/FormatUtilities.js"],
  13720. h["Core/Renderer/RendererUtilities.js"],
  13721. h["Core/Renderer/SVG/SVGElement.js"],
  13722. h["Core/Renderer/SVG/SVGRenderer.js"],
  13723. h["Core/Renderer/HTML/HTMLElement.js"],
  13724. h["Core/Renderer/HTML/HTMLRenderer.js"],
  13725. h["Core/Axis/Axis.js"],
  13726. h["Core/Axis/DateTimeAxis.js"],
  13727. h["Core/Axis/LogarithmicAxis.js"],
  13728. h["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  13729. h["Core/Axis/Tick.js"],
  13730. h["Core/Tooltip.js"],
  13731. h["Core/Series/Point.js"],
  13732. h["Core/Pointer.js"],
  13733. h["Core/MSPointer.js"],
  13734. h["Core/Legend/Legend.js"],
  13735. h["Core/Chart/Chart.js"],
  13736. h["Core/Series/Series.js"],
  13737. h["Core/Series/SeriesRegistry.js"],
  13738. h["Series/Column/ColumnSeries.js"],
  13739. h["Series/Column/ColumnDataLabel.js"],
  13740. h["Series/Pie/PieSeries.js"],
  13741. h["Series/Pie/PieDataLabel.js"],
  13742. h["Core/Series/DataLabel.js"],
  13743. h["Core/Responsive.js"],
  13744. h["Core/Color/Color.js"],
  13745. h["Core/Time.js"]
  13746. ], function(y, j, I, Z, F, U, H, W, R, S, v, d, u, P, O, N, C, b, w, x, a, c, p, i, l, s, t, o, n, A, _, D, B) {
  13747. return y.animate = F.animate, y.animObject = F.animObject, y.getDeferredAnimation = F.getDeferredAnimation, y.setAnimation = F.setAnimation, y.stop = F.stop, y.timers = Z.timers, y.AST = U, y.Axis = u, y.Chart = p, y.chart = p.chart, y.Fx = Z, y.Legend = c, y.PlotLineOrBand = N, y.Point = w, y.Pointer = a.isRequired() ? a : x, y.Series = i, y.SVGElement = R, y.SVGRenderer = S, y.Tick = C, y.Time = B, y.Tooltip = b, y.Color = D, y.color = D.parse, d.compose(S), v.compose(R), y.defaultOptions = I.defaultOptions, y.getOptions = I.getOptions, y.time = I.defaultTime, y.setOptions = I.setOptions, y.dateFormat = H.dateFormat, y.format = H.format, y.numberFormat = H.numberFormat, y.addEvent = j.addEvent, y.arrayMax = j.arrayMax, y.arrayMin = j.arrayMin, y.attr = j.attr, y.clearTimeout = j.clearTimeout, y.correctFloat = j.correctFloat, y.createElement = j.createElement, y.css = j.css, y.defined = j.defined, y.destroyObjectProperties = j.destroyObjectProperties, y.discardElement = j.discardElement, y.distribute = W.distribute, y.erase = j.erase, y.error = j.error, y.extend = j.extend, y.extendClass = j.extendClass, y.find = j.find, y.fireEvent = j.fireEvent, y.getMagnitude = j.getMagnitude, y.getStyle = j.getStyle, y.inArray = j.inArray, y.isArray = j.isArray, y.isClass = j.isClass, y.isDOMElement = j.isDOMElement, y.isFunction = j.isFunction, y.isNumber = j.isNumber, y.isObject = j.isObject, y.isString = j.isString, y.keys = j.keys, y.merge = j.merge, y.normalizeTickInterval = j.normalizeTickInterval, y.objectEach = j.objectEach, y.offset = j.offset, y.pad = j.pad, y.pick = j.pick, y.pInt = j.pInt, y.relativeLength = j.relativeLength, y.removeEvent = j.removeEvent, y.seriesType = l.seriesType, y.splat = j.splat, y.stableSort = j.stableSort, y.syncTimeout = j.syncTimeout, y.timeUnits = j.timeUnits, y.uniqueKey = j.uniqueKey, y.useSerialIds = j.useSerialIds, y.wrap = j.wrap, t.compose(s), A.compose(i), P.compose(u), O.compose(u), n.compose(o), N.compose(u), _.compose(p), y;
  13748. }), h["masters/highcharts.src.js"]._modules = h, h["masters/highcharts.src.js"];
  13749. });
  13750. })(Hp);
  13751. var L0 = Hp.exports;
  13752. const to = /* @__PURE__ */ Cn(L0);
  13753. var Fp = { exports: {} };
  13754. (function(r) {
  13755. (function(f) {
  13756. r.exports ? (f.default = f, r.exports = f) : f(typeof Highcharts < "u" ? Highcharts : void 0);
  13757. })(function(f) {
  13758. function E(h, y, j, I) {
  13759. h.hasOwnProperty(y) || (h[y] = I.apply(null, j));
  13760. }
  13761. f = f ? f._modules : {}, E(f, "Extensions/Pane.js", [
  13762. f["Core/Chart/Chart.js"],
  13763. f["Series/CenteredUtilities.js"],
  13764. f["Core/Globals.js"],
  13765. f["Core/Pointer.js"],
  13766. f["Core/Utilities.js"]
  13767. ], function(h, y, j, I, Z) {
  13768. function F(v, d, u) {
  13769. return Math.sqrt(Math.pow(v - u[0], 2) + Math.pow(d - u[1], 2)) <= u[2] / 2;
  13770. }
  13771. var U = Z.addEvent, H = Z.extend, W = Z.merge, R = Z.pick, S = Z.splat;
  13772. return h.prototype.collectionsWithUpdate.push("pane"), Z = function() {
  13773. function v(d, u) {
  13774. this.options = this.chart = this.center = this.background = void 0, this.coll = "pane", this.defaultOptions = { center: ["50%", "50%"], size: "85%", innerSize: "0%", startAngle: 0 }, this.defaultBackgroundOptions = { shape: "circle", borderWidth: 1, borderColor: "#cccccc", backgroundColor: { linearGradient: {
  13775. x1: 0,
  13776. y1: 0,
  13777. x2: 0,
  13778. y2: 1
  13779. }, stops: [[0, "#ffffff"], [1, "#e6e6e6"]] }, from: -Number.MAX_VALUE, innerRadius: 0, to: Number.MAX_VALUE, outerRadius: "105%" }, this.init(d, u);
  13780. }
  13781. return v.prototype.init = function(d, u) {
  13782. this.chart = u, this.background = [], u.pane.push(this), this.setOptions(d);
  13783. }, v.prototype.setOptions = function(d) {
  13784. this.options = W(this.defaultOptions, this.chart.angular ? { background: {} } : void 0, d);
  13785. }, v.prototype.render = function() {
  13786. var d = this.options, u = this.options.background, P = this.chart.renderer;
  13787. if (this.group || (this.group = P.g("pane-group").attr({ zIndex: d.zIndex || 0 }).add()), this.updateCenter(), u)
  13788. for (u = S(u), d = Math.max(u.length, this.background.length || 0), P = 0; P < d; P++)
  13789. u[P] && this.axis ? this.renderBackground(W(this.defaultBackgroundOptions, u[P]), P) : this.background[P] && (this.background[P] = this.background[P].destroy(), this.background.splice(P, 1));
  13790. }, v.prototype.renderBackground = function(d, u) {
  13791. var P = "animate", O = { class: "highcharts-pane " + (d.className || "") };
  13792. this.chart.styledMode || H(O, { fill: d.backgroundColor, stroke: d.borderColor, "stroke-width": d.borderWidth }), this.background[u] || (this.background[u] = this.chart.renderer.path().add(this.group), P = "attr"), this.background[u][P]({ d: this.axis.getPlotBandPath(d.from, d.to, d) }).attr(O);
  13793. }, v.prototype.updateCenter = function(d) {
  13794. this.center = (d || this.axis || {}).center = y.getCenter.call(this);
  13795. }, v.prototype.update = function(d, u) {
  13796. W(!0, this.options, d), this.setOptions(this.options), this.render(), this.chart.axes.forEach(function(P) {
  13797. P.pane === this && (P.pane = null, P.update({}, u));
  13798. }, this);
  13799. }, v;
  13800. }(), h.prototype.getHoverPane = function(v) {
  13801. var d = this, u;
  13802. return v && d.pane.forEach(function(P) {
  13803. var O = v.chartX - d.plotLeft, N = v.chartY - d.plotTop;
  13804. F(d.inverted ? N : O, d.inverted ? O : N, P.center) && (u = P);
  13805. }), u;
  13806. }, U(h, "afterIsInsidePlot", function(v) {
  13807. this.polar && (v.isInsidePlot = this.pane.some(function(d) {
  13808. return F(v.x, v.y, d.center);
  13809. }));
  13810. }), U(I, "beforeGetHoverData", function(v) {
  13811. var d = this.chart;
  13812. d.polar ? (d.hoverPane = d.getHoverPane(v), v.filter = function(u) {
  13813. return u.visible && !(!v.shared && u.directTouch) && R(u.options.enableMouseTracking, !0) && (!d.hoverPane || u.xAxis.pane === d.hoverPane);
  13814. }) : d.hoverPane = void 0;
  13815. }), U(
  13816. I,
  13817. "afterGetHoverData",
  13818. function(v) {
  13819. var d = this.chart;
  13820. v.hoverPoint && v.hoverPoint.plotX && v.hoverPoint.plotY && d.hoverPane && !F(v.hoverPoint.plotX, v.hoverPoint.plotY, d.hoverPane.center) && (v.hoverPoint = void 0);
  13821. }
  13822. ), j.Pane = Z, j.Pane;
  13823. }), E(f, "Core/Axis/RadialAxis.js", [f["Core/Axis/AxisDefaults.js"], f["Core/DefaultOptions.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  13824. var Z = y.defaultOptions, F = j.noop, U = I.addEvent, H = I.correctFloat, W = I.defined, R = I.extend, S = I.fireEvent, v = I.merge, d = I.pick, u = I.relativeLength, P = I.wrap, O;
  13825. return function(N) {
  13826. function C() {
  13827. this.autoConnect = this.isCircular && typeof d(this.userMax, this.options.max) > "u" && H(this.endAngleRad - this.startAngleRad) === H(2 * Math.PI), !this.isCircular && this.chart.inverted && this.max++, this.autoConnect && (this.max += this.categories && 1 || this.pointRange || this.closestPointRange || 0);
  13828. }
  13829. function b() {
  13830. var $ = this;
  13831. return function() {
  13832. if ($.isRadial && $.tickPositions && $.options.labels && $.options.labels.allowOverlap !== !0)
  13833. return $.tickPositions.map(function(q) {
  13834. return $.ticks[q] && $.ticks[q].label;
  13835. }).filter(function(q) {
  13836. return !!q;
  13837. });
  13838. };
  13839. }
  13840. function w() {
  13841. return F;
  13842. }
  13843. function x($, q, it) {
  13844. var et = this.pane.center, nt = $.value;
  13845. if (this.isCircular) {
  13846. if (W(nt))
  13847. $.point && (rt = $.point.shapeArgs || {}, rt.start && (nt = this.chart.inverted ? this.translate($.point.rectPlotY, !0) : $.point.x));
  13848. else {
  13849. var rt = $.chartX || 0, ct = $.chartY || 0;
  13850. nt = this.translate(Math.atan2(ct - it, rt - q) - this.startAngleRad, !0);
  13851. }
  13852. $ = this.getPosition(nt), rt = $.x, ct = $.y;
  13853. } else
  13854. W(nt) || (rt = $.chartX, ct = $.chartY), W(rt) && W(ct) && (it = et[1] + this.chart.plotTop, nt = this.translate(Math.min(Math.sqrt(Math.pow(rt - q, 2) + Math.pow(ct - it, 2)), et[2] / 2) - et[3] / 2, !0));
  13855. return [nt, rt || 0, ct || 0];
  13856. }
  13857. function a($, q, it) {
  13858. $ = this.pane.center;
  13859. var et = this.chart, nt = this.left || 0, rt = this.top || 0, ct = d(q, $[2] / 2 - this.offset);
  13860. return typeof it > "u" && (it = this.horiz ? 0 : this.center && -this.center[3] / 2), it && (ct += it), this.isCircular || typeof q < "u" ? (q = this.chart.renderer.symbols.arc(nt + $[0], rt + $[1], ct, ct, { start: this.startAngleRad, end: this.endAngleRad, open: !0, innerR: 0 }), q.xBounds = [nt + $[0]], q.yBounds = [rt + $[1] - ct]) : (q = this.postTranslate(this.angleRad, ct), q = [["M", this.center[0] + et.plotLeft, this.center[1] + et.plotTop], ["L", q.x, q.y]]), q;
  13861. }
  13862. function c() {
  13863. this.constructor.prototype.getOffset.call(this), this.chart.axisOffset[this.side] = 0;
  13864. }
  13865. function p($, q, it) {
  13866. var et = this.chart, nt = function(yt) {
  13867. if (typeof yt == "string") {
  13868. var vt = parseInt(yt, 10);
  13869. return J.test(yt) && (vt = vt * gt / 100), vt;
  13870. }
  13871. return yt;
  13872. }, rt = this.center, ct = this.startAngleRad, gt = rt[2] / 2, dt = Math.min(this.offset, 0), lt = this.left || 0, at = this.top || 0, J = /%$/, tt = this.isCircular, st = d(nt(it.outerRadius), gt), ht = nt(it.innerRadius);
  13873. if (nt = d(nt(it.thickness), 10), this.options.gridLineInterpolation === "polygon")
  13874. dt = this.getPlotLinePath({ value: $ }).concat(this.getPlotLinePath({ value: q, reverse: !0 }));
  13875. else {
  13876. if ($ = Math.max($, this.min), q = Math.min(q, this.max), $ = this.translate($), q = this.translate(q), tt || (st = $ || 0, ht = q || 0), it.shape !== "circle" && tt)
  13877. it = ct + ($ || 0), ct += q || 0;
  13878. else {
  13879. it = -Math.PI / 2, ct = 1.5 * Math.PI;
  13880. var pt = !0;
  13881. }
  13882. st -= dt, dt = et.renderer.symbols.arc(lt + rt[0], at + rt[1], st, st, { start: Math.min(it, ct), end: Math.max(it, ct), innerR: d(ht, st - (nt - dt)), open: pt }), tt && (tt = (ct + it) / 2, lt = lt + rt[0] + rt[2] / 2 * Math.cos(tt), dt.xBounds = tt > -Math.PI / 2 && tt < Math.PI / 2 ? [lt, et.plotWidth] : [0, lt], dt.yBounds = [at + rt[1] + rt[2] / 2 * Math.sin(tt)], dt.yBounds[0] += tt > -Math.PI && 0 > tt || tt > Math.PI ? -10 : 10);
  13883. }
  13884. return dt;
  13885. }
  13886. function i($) {
  13887. var q = this, it = this.pane.center, et = this.chart, nt = et.inverted, rt = $.reverse, ct = this.pane.options.background ? this.pane.options.background[0] || this.pane.options.background : {}, gt = ct.innerRadius || "0%", dt = ct.outerRadius || "100%", lt = it[0] + et.plotLeft, at = it[1] + et.plotTop, J = this.height, tt = $.isCrosshair;
  13888. ct = it[3] / 2;
  13889. var st = $.value, ht, pt = this.getPosition(st), yt = pt.x;
  13890. if (pt = pt.y, tt && (pt = this.getCrosshairPosition($, lt, at), st = pt[0], yt = pt[1], pt = pt[2]), this.isCircular)
  13891. st = Math.sqrt(Math.pow(yt - lt, 2) + Math.pow(pt - at, 2)), rt = typeof gt == "string" ? u(gt, 1) : gt / st, et = typeof dt == "string" ? u(dt, 1) : dt / st, it && ct && (ct /= st, rt < ct && (rt = ct), et < ct && (et = ct)), it = [["M", lt + rt * (yt - lt), at - rt * (at - pt)], ["L", yt - (1 - et) * (yt - lt), pt + (1 - et) * (at - pt)]];
  13892. else if ((st = this.translate(st)) && (0 > st || st > J) && (st = 0), this.options.gridLineInterpolation === "circle")
  13893. it = this.getLinePath(0, st, ct);
  13894. else if (it = [], et[nt ? "yAxis" : "xAxis"].forEach(function(vt) {
  13895. vt.pane === q.pane && (ht = vt);
  13896. }), ht)
  13897. for (lt = ht.tickPositions, ht.autoConnect && (lt = lt.concat([lt[0]])), rt && (lt = lt.slice().reverse()), st && (st += ct), at = 0; at < lt.length; at++)
  13898. ct = ht.getPosition(lt[at], st), it.push(at ? ["L", ct.x, ct.y] : ["M", ct.x, ct.y]);
  13899. return it;
  13900. }
  13901. function l($, q) {
  13902. return $ = this.translate($), this.postTranslate(this.isCircular ? $ : this.angleRad, d(this.isCircular ? q : 0 > $ ? 0 : $, this.center[2] / 2) - this.offset);
  13903. }
  13904. function s() {
  13905. var $ = this.center, q = this.chart, it = this.options.title;
  13906. return { x: q.plotLeft + $[0] + (it.x || 0), y: q.plotTop + $[1] - { high: 0.5, middle: 0.25, low: 0 }[it.align] * $[2] + (it.y || 0) };
  13907. }
  13908. function t($) {
  13909. $.beforeSetTickPositions = C, $.createLabelCollector = b, $.getCrosshairPosition = x, $.getLinePath = a, $.getOffset = c, $.getPlotBandPath = p, $.getPlotLinePath = i, $.getPosition = l, $.getTitlePosition = s, $.postTranslate = X, $.setAxisSize = m, $.setAxisTranslation = L, $.setOptions = Y;
  13910. }
  13911. function o() {
  13912. var $ = this.chart, q = this.options, it = this.pane, et = it && it.options;
  13913. $.angular && this.isXAxis || !it || !$.angular && !$.polar || (this.angleRad = (q.angle || 0) * Math.PI / 180, this.startAngleRad = (et.startAngle - 90) * Math.PI / 180, this.endAngleRad = (d(et.endAngle, et.startAngle + 360) - 90) * Math.PI / 180, this.offset = q.offset || 0);
  13914. }
  13915. function n($) {
  13916. this.isRadial && ($.align = void 0, $.preventDefault());
  13917. }
  13918. function A() {
  13919. if (this.chart && this.chart.labelCollectors) {
  13920. var $ = this.labelCollector ? this.chart.labelCollectors.indexOf(this.labelCollector) : -1;
  13921. 0 <= $ && this.chart.labelCollectors.splice($, 1);
  13922. }
  13923. }
  13924. function _($) {
  13925. var q = this.chart, it = q.inverted, et = q.angular, nt = q.polar, rt = this.isXAxis, ct = this.coll, gt = et && rt, dt = q.options;
  13926. $ = $.userOptions.pane || 0, $ = this.pane = q.pane && q.pane[$];
  13927. var lt;
  13928. ct === "colorAxis" ? this.isRadial = !1 : (et ? (gt ? (this.isHidden = !0, this.createLabelCollector = w, this.getOffset = F, this.render = this.redraw = g, this.setTitle = this.setCategories = this.setScale = F) : t(this), (lt = !rt) && (this.defaultPolarOptions = G)) : nt && (t(this), this.defaultPolarOptions = (lt = this.horiz) ? k : v(ct === "xAxis" ? h.defaultXAxisOptions : h.defaultYAxisOptions, z), it && ct === "yAxis" && (this.defaultPolarOptions.stackLabels = h.defaultYAxisOptions.stackLabels, this.defaultPolarOptions.reversedStacks = !0)), et || nt ? (this.isRadial = !0, dt.chart.zoomType = null, this.labelCollector || (this.labelCollector = this.createLabelCollector()), this.labelCollector && q.labelCollectors.push(this.labelCollector)) : this.isRadial = !1, $ && lt && ($.axis = this), this.isCircular = lt);
  13929. }
  13930. function D() {
  13931. this.isRadial && this.beforeSetTickPositions();
  13932. }
  13933. function B($) {
  13934. var q = this.label;
  13935. if (q) {
  13936. var it = this.axis, et = q.getBBox(), nt = it.options.labels, rt = (it.translate(this.pos) + it.startAngleRad + Math.PI / 2) / Math.PI * 180 % 360, ct = Math.round(rt), gt = W(nt.y) ? 0 : 0.3 * -et.height, dt = nt.y, lt = 20, at = nt.align, J = "end", tt = 0 > ct ? ct + 360 : ct, st = tt, ht = 0, pt = 0;
  13937. if (it.isRadial) {
  13938. var yt = it.getPosition(this.pos, it.center[2] / 2 + u(d(nt.distance, -25), it.center[2] / 2, -it.center[2] / 2));
  13939. nt.rotation === "auto" ? q.attr({ rotation: rt }) : W(dt) || (dt = it.chart.renderer.fontMetrics(q.styles && q.styles.fontSize).b - et.height / 2), W(at) || (it.isCircular ? (et.width > it.len * it.tickInterval / (it.max - it.min) && (lt = 0), at = rt > lt && rt < 180 - lt ? "left" : rt > 180 + lt && rt < 360 - lt ? "right" : "center") : at = "center", q.attr({ align: at })), at === "auto" && it.tickPositions.length === 2 && it.isCircular && (90 < tt && 180 > tt ? tt = 180 - tt : 270 < tt && 360 >= tt && (tt = 540 - tt), 180 < st && 360 >= st && (st = 360 - st), (it.pane.options.startAngle === ct || it.pane.options.startAngle === ct + 360 || it.pane.options.startAngle === ct - 360) && (J = "start"), at = -90 <= ct && 90 >= ct || -360 <= ct && -270 >= ct || 270 <= ct && 360 >= ct ? J === "start" ? "right" : "left" : J === "start" ? "left" : "right", 70 < st && 110 > st && (at = "center"), 15 > tt || 180 <= tt && 195 > tt ? ht = 0.3 * et.height : 15 <= tt && 35 >= tt ? ht = J === "start" ? 0 : 0.75 * et.height : 195 <= tt && 215 >= tt ? ht = J === "start" ? 0.75 * et.height : 0 : 35 < tt && 90 >= tt ? ht = J === "start" ? 0.25 * -et.height : et.height : 215 < tt && 270 >= tt && (ht = J === "start" ? et.height : 0.25 * -et.height), 15 > st ? pt = J === "start" ? 0.15 * -et.height : 0.15 * et.height : 165 < st && 180 >= st && (pt = J === "start" ? 0.15 * et.height : 0.15 * -et.height), q.attr({ align: at }), q.translate(
  13940. pt,
  13941. ht + gt
  13942. )), $.pos.x = yt.x + (nt.x || 0), $.pos.y = yt.y + (dt || 0);
  13943. }
  13944. }
  13945. }
  13946. function T($) {
  13947. this.axis.getPosition && R($.pos, this.axis.getPosition(this.pos));
  13948. }
  13949. function X($, q) {
  13950. var it = this.chart, et = this.center;
  13951. return $ = this.startAngleRad + $, { x: it.plotLeft + et[0] + Math.cos($) * q, y: it.plotTop + et[1] + Math.sin($) * q };
  13952. }
  13953. function g() {
  13954. this.isDirty = !1;
  13955. }
  13956. function m() {
  13957. if (this.constructor.prototype.setAxisSize.call(this), this.isRadial) {
  13958. this.pane.updateCenter(this);
  13959. var $ = this.center = this.pane.center.slice();
  13960. if (this.isCircular)
  13961. this.sector = this.endAngleRad - this.startAngleRad;
  13962. else {
  13963. var q = this.postTranslate(this.angleRad, $[3] / 2);
  13964. $[0] = q.x - this.chart.plotLeft, $[1] = q.y - this.chart.plotTop;
  13965. }
  13966. this.len = this.width = this.height = ($[2] - $[3]) * d(this.sector, 1) / 2;
  13967. }
  13968. }
  13969. function L() {
  13970. this.constructor.prototype.setAxisTranslation.call(this), this.center && (this.transA = this.isCircular ? (this.endAngleRad - this.startAngleRad) / (this.max - this.min || 1) : (this.center[2] - this.center[3]) / 2 / (this.max - this.min || 1), this.minPixelPadding = this.isXAxis ? this.transA * this.minPointOffset : 0);
  13971. }
  13972. function Y($) {
  13973. $ = this.options = v(this.constructor.defaultOptions, this.defaultPolarOptions, Z[this.coll], $), $.plotBands || ($.plotBands = []), S(this, "afterSetOptions");
  13974. }
  13975. function V($, q, it, et, nt, rt, ct) {
  13976. var gt = this.axis;
  13977. return gt.isRadial ? ($ = gt.getPosition(this.pos, gt.center[2] / 2 + et), q = ["M", q, it, "L", $.x, $.y]) : q = $.call(this, q, it, et, nt, rt, ct), q;
  13978. }
  13979. var Q = [], k = { gridLineWidth: 1, labels: { align: void 0, distance: 15, x: 0, y: void 0, style: { textOverflow: "none" } }, maxPadding: 0, minPadding: 0, showLastLabel: !1, tickLength: 0 }, G = {
  13980. labels: { align: "center", x: 0, y: void 0 },
  13981. minorGridLineWidth: 0,
  13982. minorTickInterval: "auto",
  13983. minorTickLength: 10,
  13984. minorTickPosition: "inside",
  13985. minorTickWidth: 1,
  13986. tickLength: 10,
  13987. tickPosition: "inside",
  13988. tickWidth: 2,
  13989. title: { rotation: 0 },
  13990. zIndex: 2
  13991. }, z = { gridLineInterpolation: "circle", gridLineWidth: 1, labels: { align: "right", x: -3, y: -2 }, showLastLabel: !1, title: { x: 4, text: null, rotation: 90 } };
  13992. N.compose = function($, q) {
  13993. return Q.indexOf($) === -1 && (Q.push($), U($, "afterInit", o), U($, "autoLabelAlign", n), U($, "destroy", A), U($, "init", _), U($, "initialAxisTranslation", D)), Q.indexOf(q) === -1 && (Q.push(q), U(
  13994. q,
  13995. "afterGetLabelPosition",
  13996. B
  13997. ), U(q, "afterGetPosition", T), P(q.prototype, "getMarkPath", V)), $;
  13998. };
  13999. }(O || (O = {})), O;
  14000. }), E(f, "Series/AreaRange/AreaRangePoint.js", [f["Series/Area/AreaSeries.js"], f["Core/Series/Point.js"], f["Core/Utilities.js"]], function(h, y, j) {
  14001. var I = this && this.__extends || function() {
  14002. var H = function(W, R) {
  14003. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  14004. S.__proto__ = v;
  14005. } || function(S, v) {
  14006. for (var d in v)
  14007. v.hasOwnProperty(d) && (S[d] = v[d]);
  14008. }, H(W, R);
  14009. };
  14010. return function(W, R) {
  14011. function S() {
  14012. this.constructor = W;
  14013. }
  14014. H(W, R), W.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  14015. };
  14016. }(), Z = y.prototype, F = j.defined, U = j.isNumber;
  14017. return function(H) {
  14018. function W() {
  14019. var R = H !== null && H.apply(this, arguments) || this;
  14020. return R.high = void 0, R.low = void 0, R.options = void 0, R.plotHigh = void 0, R.plotLow = void 0, R.plotHighX = void 0, R.plotLowX = void 0, R.plotX = void 0, R.series = void 0, R;
  14021. }
  14022. return I(W, H), W.prototype.setState = function() {
  14023. var R = this.state, S = this.series, v = S.chart.polar;
  14024. F(this.plotHigh) || (this.plotHigh = S.yAxis.toPixels(
  14025. this.high,
  14026. !0
  14027. )), F(this.plotLow) || (this.plotLow = this.plotY = S.yAxis.toPixels(this.low, !0)), S.stateMarkerGraphic && (S.lowerStateMarkerGraphic = S.stateMarkerGraphic, S.stateMarkerGraphic = S.upperStateMarkerGraphic), this.graphic = this.upperGraphic, this.plotY = this.plotHigh, v && (this.plotX = this.plotHighX), Z.setState.apply(this, arguments), this.state = R, this.plotY = this.plotLow, this.graphic = this.lowerGraphic, v && (this.plotX = this.plotLowX), S.stateMarkerGraphic && (S.upperStateMarkerGraphic = S.stateMarkerGraphic, S.stateMarkerGraphic = S.lowerStateMarkerGraphic, S.lowerStateMarkerGraphic = void 0), Z.setState.apply(this, arguments);
  14028. }, W.prototype.haloPath = function() {
  14029. var R = this.series.chart.polar, S = [];
  14030. return this.plotY = this.plotLow, R && (this.plotX = this.plotLowX), this.isInside && (S = Z.haloPath.apply(this, arguments)), this.plotY = this.plotHigh, R && (this.plotX = this.plotHighX), this.isTopInside && (S = S.concat(Z.haloPath.apply(this, arguments))), S;
  14031. }, W.prototype.isValid = function() {
  14032. return U(this.low) && U(this.high);
  14033. }, W;
  14034. }(h.prototype.pointClass);
  14035. }), E(
  14036. f,
  14037. "Series/AreaRange/AreaRangeSeries.js",
  14038. [f["Series/AreaRange/AreaRangePoint.js"], f["Series/Area/AreaSeries.js"], f["Series/Column/ColumnSeries.js"], f["Core/Globals.js"], f["Core/Series/Series.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]],
  14039. function(h, y, j, I, Z, F, U) {
  14040. var H = this && this.__extends || function() {
  14041. var N = function(C, b) {
  14042. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  14043. w.__proto__ = x;
  14044. } || function(w, x) {
  14045. for (var a in x)
  14046. x.hasOwnProperty(a) && (w[a] = x[a]);
  14047. }, N(C, b);
  14048. };
  14049. return function(C, b) {
  14050. function w() {
  14051. this.constructor = C;
  14052. }
  14053. N(C, b), C.prototype = b === null ? Object.create(b) : (w.prototype = b.prototype, new w());
  14054. };
  14055. }(), W = y.prototype, R = j.prototype;
  14056. j = I.noop;
  14057. var S = Z.prototype, v = U.defined, d = U.extend, u = U.isArray, P = U.pick, O = U.merge;
  14058. return Z = function(N) {
  14059. function C() {
  14060. var b = N !== null && N.apply(this, arguments) || this;
  14061. return b.data = void 0, b.options = void 0, b.points = void 0, b.lowerStateMarkerGraphic = void 0, b.xAxis = void 0, b;
  14062. }
  14063. return H(C, N), C.prototype.toYData = function(b) {
  14064. return [b.low, b.high];
  14065. }, C.prototype.highToXY = function(b) {
  14066. var w = this.chart, x = this.xAxis.postTranslate(b.rectPlotX || 0, this.yAxis.len - b.plotHigh);
  14067. b.plotHighX = x.x - w.plotLeft, b.plotHigh = x.y - w.plotTop, b.plotLowX = b.plotX;
  14068. }, C.prototype.translate = function() {
  14069. var b = this, w = b.yAxis;
  14070. W.translate.apply(b), b.points.forEach(function(x) {
  14071. var a = x.high, c = x.plotY;
  14072. x.isNull ? x.plotY = null : (x.plotLow = c, x.plotHigh = w.translate(b.dataModify ? b.dataModify.modifyValue(a) : a, 0, 1, 0, 1), b.dataModify && (x.yBottom = x.plotHigh));
  14073. }), this.chart.polar && this.points.forEach(function(x) {
  14074. b.highToXY(x), x.tooltipPos = [(x.plotHighX + x.plotLowX) / 2, (x.plotHigh + x.plotLow) / 2];
  14075. });
  14076. }, C.prototype.getGraphPath = function(b) {
  14077. var w = [], x = [], a, c = W.getGraphPath, p = this.options, i = this.chart.polar, l = i && p.connectEnds !== !1, s = p.connectNulls, t = p.step;
  14078. for (b = b || this.points, a = b.length; a--; ) {
  14079. var o = b[a], n = i ? { plotX: o.rectPlotX, plotY: o.yBottom, doCurve: !1 } : { plotX: o.plotX, plotY: o.plotY, doCurve: !1 };
  14080. o.isNull || l || s || b[a + 1] && !b[a + 1].isNull || x.push(n);
  14081. var A = { polarPlotY: o.polarPlotY, rectPlotX: o.rectPlotX, yBottom: o.yBottom, plotX: P(
  14082. o.plotHighX,
  14083. o.plotX
  14084. ), plotY: o.plotHigh, isNull: o.isNull };
  14085. x.push(A), w.push(A), o.isNull || l || s || b[a - 1] && !b[a - 1].isNull || x.push(n);
  14086. }
  14087. return b = c.call(this, b), t && (t === !0 && (t = "left"), p.step = { left: "right", center: "center", right: "left" }[t]), w = c.call(this, w), x = c.call(this, x), p.step = t, p = [].concat(b, w), !this.chart.polar && x[0] && x[0][0] === "M" && (x[0] = ["L", x[0][1], x[0][2]]), this.graphPath = p, this.areaPath = b.concat(x), p.isArea = !0, p.xMap = b.xMap, this.areaPath.xMap = b.xMap, p;
  14088. }, C.prototype.drawDataLabels = function() {
  14089. var b = this.points, w = b.length, x, a = [], c = this.options.dataLabels, p, i = this.chart.inverted;
  14090. if (c) {
  14091. if (u(c))
  14092. var l = c[0] || { enabled: !1 }, s = c[1] || { enabled: !1 };
  14093. else
  14094. l = d({}, c), l.x = c.xHigh, l.y = c.yHigh, s = d({}, c), s.x = c.xLow, s.y = c.yLow;
  14095. if (l.enabled || this._hasPointLabels) {
  14096. for (x = w; x--; )
  14097. if (p = b[x]) {
  14098. var t = l.inside ? p.plotHigh < p.plotLow : p.plotHigh > p.plotLow;
  14099. p.y = p.high, p._plotY = p.plotY, p.plotY = p.plotHigh, a[x] = p.dataLabel, p.dataLabel = p.dataLabelUpper, p.below = t, i ? l.align || (l.align = t ? "right" : "left") : l.verticalAlign || (l.verticalAlign = t ? "top" : "bottom");
  14100. }
  14101. for (this.options.dataLabels = l, S.drawDataLabels && S.drawDataLabels.apply(this, arguments), x = w; x--; )
  14102. (p = b[x]) && (p.dataLabelUpper = p.dataLabel, p.dataLabel = a[x], delete p.dataLabels, p.y = p.low, p.plotY = p._plotY);
  14103. }
  14104. if (s.enabled || this._hasPointLabels) {
  14105. for (x = w; x--; )
  14106. (p = b[x]) && (t = s.inside ? p.plotHigh < p.plotLow : p.plotHigh > p.plotLow, p.below = !t, i ? s.align || (s.align = t ? "left" : "right") : s.verticalAlign || (s.verticalAlign = t ? "bottom" : "top"));
  14107. this.options.dataLabels = s, S.drawDataLabels && S.drawDataLabels.apply(this, arguments);
  14108. }
  14109. if (l.enabled)
  14110. for (x = w; x--; )
  14111. (p = b[x]) && (p.dataLabels = [p.dataLabelUpper, p.dataLabel].filter(function(o) {
  14112. return !!o;
  14113. }));
  14114. this.options.dataLabels = c;
  14115. }
  14116. }, C.prototype.alignDataLabel = function() {
  14117. R.alignDataLabel.apply(this, arguments);
  14118. }, C.prototype.drawPoints = function() {
  14119. var b = this.points.length, w;
  14120. for (S.drawPoints.apply(this, arguments), w = 0; w < b; ) {
  14121. var x = this.points[w];
  14122. x.origProps = { plotY: x.plotY, plotX: x.plotX, isInside: x.isInside, negative: x.negative, zone: x.zone, y: x.y }, x.lowerGraphic = x.graphic, x.graphic = x.upperGraphic, x.plotY = x.plotHigh, v(x.plotHighX) && (x.plotX = x.plotHighX), x.y = P(x.high, x.origProps.y), x.negative = x.y < (this.options.threshold || 0), this.zones.length && (x.zone = x.getZone()), this.chart.polar || (x.isInside = x.isTopInside = typeof x.plotY < "u" && 0 <= x.plotY && x.plotY <= this.yAxis.len && 0 <= x.plotX && x.plotX <= this.xAxis.len), w++;
  14123. }
  14124. for (S.drawPoints.apply(this, arguments), w = 0; w < b; )
  14125. x = this.points[w], x.upperGraphic = x.graphic, x.graphic = x.lowerGraphic, x.origProps && (d(x, x.origProps), delete x.origProps), w++;
  14126. }, C.defaultOptions = O(y.defaultOptions, {
  14127. lineWidth: 1,
  14128. threshold: null,
  14129. tooltip: { pointFormat: '<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14130. trackByArea: !0,
  14131. dataLabels: { align: void 0, verticalAlign: void 0, xLow: 0, xHigh: 0, yLow: 0, yHigh: 0 }
  14132. }), C;
  14133. }(y), d(Z.prototype, { pointArrayMap: ["low", "high"], pointValKey: "low", deferTranslatePolar: !0, pointClass: h, setStackedPoints: j }), F.registerSeriesType("arearange", Z), Z;
  14134. }
  14135. ), E(f, "Series/AreaSplineRange/AreaSplineRangeSeries.js", [
  14136. f["Series/AreaRange/AreaRangeSeries.js"],
  14137. f["Core/Series/SeriesRegistry.js"],
  14138. f["Core/Utilities.js"]
  14139. ], function(h, y, j) {
  14140. var I = this && this.__extends || function() {
  14141. var H = function(W, R) {
  14142. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  14143. S.__proto__ = v;
  14144. } || function(S, v) {
  14145. for (var d in v)
  14146. v.hasOwnProperty(d) && (S[d] = v[d]);
  14147. }, H(W, R);
  14148. };
  14149. return function(W, R) {
  14150. function S() {
  14151. this.constructor = W;
  14152. }
  14153. H(W, R), W.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  14154. };
  14155. }(), Z = y.seriesTypes.spline, F = j.merge;
  14156. j = j.extend;
  14157. var U = function(H) {
  14158. function W() {
  14159. var R = H !== null && H.apply(this, arguments) || this;
  14160. return R.options = void 0, R.data = void 0, R.points = void 0, R;
  14161. }
  14162. return I(W, H), W.defaultOptions = F(h.defaultOptions), W;
  14163. }(h);
  14164. return j(U.prototype, { getPointSpline: Z.prototype.getPointSpline }), y.registerSeriesType("areasplinerange", U), U;
  14165. }), E(f, "Series/BoxPlot/BoxPlotSeries.js", [f["Series/Column/ColumnSeries.js"], f["Core/Globals.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  14166. var Z = this && this.__extends || function() {
  14167. var W = function(R, S) {
  14168. return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, d) {
  14169. v.__proto__ = d;
  14170. } || function(v, d) {
  14171. for (var u in d)
  14172. d.hasOwnProperty(u) && (v[u] = d[u]);
  14173. }, W(R, S);
  14174. };
  14175. return function(R, S) {
  14176. function v() {
  14177. this.constructor = R;
  14178. }
  14179. W(R, S), R.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  14180. };
  14181. }();
  14182. y = y.noop;
  14183. var F = I.extend, U = I.merge, H = I.pick;
  14184. return I = function(W) {
  14185. function R() {
  14186. var S = W !== null && W.apply(this, arguments) || this;
  14187. return S.data = void 0, S.options = void 0, S.points = void 0, S;
  14188. }
  14189. return Z(R, W), R.prototype.pointAttribs = function() {
  14190. return {};
  14191. }, R.prototype.translate = function() {
  14192. var S = this.yAxis, v = this.pointArrayMap;
  14193. W.prototype.translate.apply(this), this.points.forEach(function(d) {
  14194. v.forEach(function(u) {
  14195. d[u] !== null && (d[u + "Plot"] = S.translate(d[u], 0, 1, 0, 1));
  14196. }), d.plotHigh = d.highPlot;
  14197. });
  14198. }, R.prototype.drawPoints = function() {
  14199. var S = this, v = S.options, d = S.chart, u = d.renderer, P, O, N, C, b, w, x = 0, a, c, p, i, l = S.doQuartiles !== !1, s, t = S.options.whiskerLength;
  14200. S.points.forEach(function(o) {
  14201. var n = o.graphic, A = n ? "animate" : "attr", _ = o.shapeArgs, D = {}, B = {}, T = {}, X = {}, g = o.color || S.color;
  14202. typeof o.plotY < "u" && (a = Math.round(_.width), c = Math.floor(_.x), p = c + a, i = Math.round(a / 2), P = Math.floor(l ? o.q1Plot : o.lowPlot), O = Math.floor(l ? o.q3Plot : o.lowPlot), N = Math.floor(o.highPlot), C = Math.floor(o.lowPlot), n || (o.graphic = n = u.g("point").add(S.group), o.stem = u.path().addClass("highcharts-boxplot-stem").add(n), t && (o.whiskers = u.path().addClass("highcharts-boxplot-whisker").add(n)), l && (o.box = u.path(void 0).addClass("highcharts-boxplot-box").add(n)), o.medianShape = u.path(void 0).addClass("highcharts-boxplot-median").add(n)), d.styledMode || (B.stroke = o.stemColor || v.stemColor || g, B["stroke-width"] = H(o.stemWidth, v.stemWidth, v.lineWidth), B.dashstyle = o.stemDashStyle || v.stemDashStyle || v.dashStyle, o.stem.attr(B), t && (T.stroke = o.whiskerColor || v.whiskerColor || g, T["stroke-width"] = H(o.whiskerWidth, v.whiskerWidth, v.lineWidth), T.dashstyle = o.whiskerDashStyle || v.whiskerDashStyle || v.dashStyle, o.whiskers.attr(T)), l && (D.fill = o.fillColor || v.fillColor || g, D.stroke = v.lineColor || g, D["stroke-width"] = v.lineWidth || 0, D.dashstyle = o.boxDashStyle || v.boxDashStyle || v.dashStyle, o.box.attr(D)), X.stroke = o.medianColor || v.medianColor || g, X["stroke-width"] = H(o.medianWidth, v.medianWidth, v.lineWidth), X.dashstyle = o.medianDashStyle || v.medianDashStyle || v.dashStyle, o.medianShape.attr(X)), w = o.stem.strokeWidth() % 2 / 2, x = c + i + w, n = [["M", x, O], ["L", x, N], ["M", x, P], ["L", x, C]], o.stem[A]({ d: n }), l && (w = o.box.strokeWidth() % 2 / 2, P = Math.floor(P) + w, O = Math.floor(O) + w, c += w, p += w, n = [["M", c, O], ["L", c, P], ["L", p, P], ["L", p, O], ["L", c, O], ["Z"]], o.box[A]({ d: n })), t && (w = o.whiskers.strokeWidth() % 2 / 2, N += w, C += w, s = /%$/.test(t) ? i * parseFloat(t) / 100 : t / 2, n = [["M", x - s, N], ["L", x + s, N], ["M", x - s, C], ["L", x + s, C]], o.whiskers[A]({ d: n })), b = Math.round(o.medianPlot), w = o.medianShape.strokeWidth() % 2 / 2, b += w, n = [["M", c, b], ["L", p, b]], o.medianShape[A]({ d: n }));
  14203. });
  14204. }, R.prototype.toYData = function(S) {
  14205. return [S.low, S.q1, S.median, S.q3, S.high];
  14206. }, R.defaultOptions = U(h.defaultOptions, {
  14207. threshold: null,
  14208. tooltip: { pointFormat: '<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>' },
  14209. whiskerLength: "50%",
  14210. fillColor: "#ffffff",
  14211. lineWidth: 1,
  14212. medianWidth: 2,
  14213. whiskerWidth: 2
  14214. }), R;
  14215. }(h), F(I.prototype, { pointArrayMap: ["low", "q1", "median", "q3", "high"], pointValKey: "high", drawDataLabels: y, setStackedPoints: y }), j.registerSeriesType("boxplot", I), I;
  14216. }), E(f, "Series/Bubble/BubbleLegendDefaults.js", [], function() {
  14217. return { borderColor: void 0, borderWidth: 2, className: void 0, color: void 0, connectorClassName: void 0, connectorColor: void 0, connectorDistance: 60, connectorWidth: 1, enabled: !1, labels: {
  14218. className: void 0,
  14219. allowOverlap: !1,
  14220. format: "",
  14221. formatter: void 0,
  14222. align: "right",
  14223. style: { fontSize: "10px", color: "#000000" },
  14224. x: 0,
  14225. y: 0
  14226. }, maxSize: 60, minSize: 10, legendIndex: 0, ranges: { value: void 0, borderColor: void 0, color: void 0, connectorColor: void 0 }, sizeBy: "area", sizeByAbsoluteValue: !1, zIndex: 1, zThreshold: 0 };
  14227. }), E(f, "Series/Bubble/BubbleLegendItem.js", [f["Core/Color/Color.js"], f["Core/FormatUtilities.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  14228. var Z = h.parse, F = j.noop, U = I.arrayMax, H = I.arrayMin, W = I.isNumber, R = I.merge, S = I.pick, v = I.stableSort;
  14229. return function() {
  14230. function d(u, P) {
  14231. this.options = this.symbols = this.visible = this.selected = this.ranges = this.movementX = this.maxLabel = this.legendSymbol = this.legendItemWidth = this.legendItemHeight = this.legendItem = this.legendGroup = this.legend = this.fontMetrics = this.chart = void 0, this.setState = F, this.init(u, P);
  14232. }
  14233. return d.prototype.init = function(u, P) {
  14234. this.options = u, this.visible = !0, this.chart = P.chart, this.legend = P;
  14235. }, d.prototype.addToLegend = function(u) {
  14236. u.splice(
  14237. this.options.legendIndex,
  14238. 0,
  14239. this
  14240. );
  14241. }, d.prototype.drawLegendSymbol = function(u) {
  14242. var P = this.chart, O = this.options, N = S(u.options.itemDistance, 20), C = O.ranges, b = O.connectorDistance;
  14243. this.fontMetrics = P.renderer.fontMetrics(O.labels.style.fontSize), C && C.length && W(C[0].value) ? (v(C, function(w, x) {
  14244. return x.value - w.value;
  14245. }), this.ranges = C, this.setOptions(), this.render(), u = this.getMaxLabelSize(), C = this.ranges[0].radius, P = 2 * C, b = b - C + u.width, b = 0 < b ? b : 0, this.maxLabel = u, this.movementX = O.labels.align === "left" ? b : 0, this.legendItemWidth = P + b + N, this.legendItemHeight = P + this.fontMetrics.h / 2) : u.options.bubbleLegend.autoRanges = !0;
  14246. }, d.prototype.setOptions = function() {
  14247. var u = this.ranges, P = this.options, O = this.chart.series[P.seriesIndex], N = this.legend.baseline, C = { zIndex: P.zIndex, "stroke-width": P.borderWidth }, b = { zIndex: P.zIndex, "stroke-width": P.connectorWidth }, w = { align: this.legend.options.rtl || P.labels.align === "left" ? "right" : "left", zIndex: P.zIndex }, x = O.options.marker.fillOpacity, a = this.chart.styledMode;
  14248. u.forEach(function(c, p) {
  14249. a || (C.stroke = S(c.borderColor, P.borderColor, O.color), C.fill = S(c.color, P.color, x !== 1 ? Z(O.color).setOpacity(x).get("rgba") : O.color), b.stroke = S(c.connectorColor, P.connectorColor, O.color)), u[p].radius = this.getRangeRadius(c.value), u[p] = R(u[p], { center: u[0].radius - u[p].radius + N }), a || R(!0, u[p], { bubbleAttribs: R(C), connectorAttribs: R(b), labelAttribs: w });
  14250. }, this);
  14251. }, d.prototype.getRangeRadius = function(u) {
  14252. var P = this.options;
  14253. return this.chart.series[this.options.seriesIndex].getRadius.call(
  14254. this,
  14255. P.ranges[P.ranges.length - 1].value,
  14256. P.ranges[0].value,
  14257. P.minSize,
  14258. P.maxSize,
  14259. u
  14260. );
  14261. }, d.prototype.render = function() {
  14262. var u = this.chart.renderer, P = this.options.zThreshold;
  14263. this.symbols || (this.symbols = { connectors: [], bubbleItems: [], labels: [] }), this.legendSymbol = u.g("bubble-legend"), this.legendItem = u.g("bubble-legend-item"), this.legendSymbol.translateX = 0, this.legendSymbol.translateY = 0, this.ranges.forEach(function(O) {
  14264. O.value >= P && this.renderRange(O);
  14265. }, this), this.legendSymbol.add(this.legendItem), this.legendItem.add(this.legendGroup), this.hideOverlappingLabels();
  14266. }, d.prototype.renderRange = function(u) {
  14267. var P = this.options, O = P.labels, N = this.chart, C = N.series[P.seriesIndex], b = N.renderer, w = this.symbols;
  14268. N = w.labels;
  14269. var x = u.center, a = Math.abs(u.radius), c = P.connectorDistance || 0, p = O.align, i = P.connectorWidth, l = this.ranges[0].radius || 0, s = x - a - P.borderWidth / 2 + i / 2, t = this.fontMetrics;
  14270. t = t.f / 2 - (t.h - t.f) / 2;
  14271. var o = b.styledMode;
  14272. c = this.legend.options.rtl || p === "left" ? -c : c, p === "center" && (c = 0, P.connectorDistance = 0, u.labelAttribs.align = "center"), p = s + P.labels.y;
  14273. var n = l + c + P.labels.x;
  14274. w.bubbleItems.push(b.circle(
  14275. l,
  14276. x + ((s % 1 ? 1 : 0.5) - (i % 2 ? 0 : 0.5)),
  14277. a
  14278. ).attr(o ? {} : u.bubbleAttribs).addClass((o ? "highcharts-color-" + C.colorIndex + " " : "") + "highcharts-bubble-legend-symbol " + (P.className || "")).add(this.legendSymbol)), w.connectors.push(b.path(b.crispLine([["M", l, s], ["L", l + c, s]], P.connectorWidth)).attr(o ? {} : u.connectorAttribs).addClass((o ? "highcharts-color-" + this.options.seriesIndex + " " : "") + "highcharts-bubble-legend-connectors " + (P.connectorClassName || "")).add(this.legendSymbol)), u = b.text(this.formatLabel(u), n, p + t).attr(o ? {} : u.labelAttribs).css(o ? {} : O.style).addClass("highcharts-bubble-legend-labels " + (P.labels.className || "")).add(this.legendSymbol), N.push(u), u.placed = !0, u.alignAttr = { x: n, y: p + t };
  14279. }, d.prototype.getMaxLabelSize = function() {
  14280. var u, P;
  14281. return this.symbols.labels.forEach(function(O) {
  14282. P = O.getBBox(!0), u = u ? P.width > u.width ? P : u : P;
  14283. }), u || {};
  14284. }, d.prototype.formatLabel = function(u) {
  14285. var P = this.options, O = P.labels.formatter;
  14286. P = P.labels.format;
  14287. var N = this.chart.numberFormatter;
  14288. return P ? y.format(P, u) : O ? O.call(u) : N(u.value, 1);
  14289. }, d.prototype.hideOverlappingLabels = function() {
  14290. var u = this.chart, P = this.symbols;
  14291. !this.options.labels.allowOverlap && P && (u.hideOverlappingLabels(P.labels), P.labels.forEach(function(O, N) {
  14292. O.newOpacity ? O.newOpacity !== O.oldOpacity && P.connectors[N].show() : P.connectors[N].hide();
  14293. }));
  14294. }, d.prototype.getRanges = function() {
  14295. var u = this.legend.bubbleLegend, P = u.options.ranges, O, N = Number.MAX_VALUE, C = -Number.MAX_VALUE;
  14296. u.chart.series.forEach(function(w) {
  14297. w.isBubble && !w.ignoreSeries && (O = w.zData.filter(W), O.length && (N = S(w.options.zMin, Math.min(N, Math.max(
  14298. H(O),
  14299. w.options.displayNegative === !1 ? w.options.zThreshold : -Number.MAX_VALUE
  14300. ))), C = S(w.options.zMax, Math.max(C, U(O)))));
  14301. });
  14302. var b = N === C ? [{ value: C }] : [{ value: N }, { value: (N + C) / 2 }, { value: C, autoRanges: !0 }];
  14303. return P.length && P[0].radius && b.reverse(), b.forEach(function(w, x) {
  14304. P && P[x] && (b[x] = R(P[x], w));
  14305. }), b;
  14306. }, d.prototype.predictBubbleSizes = function() {
  14307. var u = this.chart, P = this.fontMetrics, O = u.legend.options, N = O.floating, C = (O = O.layout === "horizontal") ? u.legend.lastLineHeight : 0, b = u.plotSizeX, w = u.plotSizeY, x = u.series[this.options.seriesIndex], a = x.getPxExtremes();
  14308. u = Math.ceil(a.minPxSize), a = Math.ceil(a.maxPxSize);
  14309. var c = Math.min(w, b);
  14310. return x = x.options.maxSize, N || !/%$/.test(x) ? P = a : (x = parseFloat(x), P = (c + C - P.h / 2) * x / 100 / (x / 100 + 1), (O && w - P >= b || !O && b - P >= w) && (P = a)), [u, Math.ceil(P)];
  14311. }, d.prototype.updateRanges = function(u, P) {
  14312. var O = this.legend.options.bubbleLegend;
  14313. O.minSize = u, O.maxSize = P, O.ranges = this.getRanges();
  14314. }, d.prototype.correctSizes = function() {
  14315. var u = this.legend, P = this.chart.series[this.options.seriesIndex].getPxExtremes();
  14316. 1 < Math.abs(Math.ceil(P.maxPxSize) - this.options.maxSize) && (this.updateRanges(this.options.minSize, P.maxPxSize), u.render());
  14317. }, d;
  14318. }();
  14319. }), E(f, "Series/Bubble/BubbleLegendComposition.js", [f["Series/Bubble/BubbleLegendDefaults.js"], f["Series/Bubble/BubbleLegendItem.js"], f["Core/DefaultOptions.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  14320. var Z = j.setOptions, F = I.addEvent, U = I.objectEach, H = I.wrap, W;
  14321. return function(R) {
  14322. function S(C, b, w) {
  14323. var x = this.legend, a = 0 <= v(this);
  14324. if (x && x.options.enabled && x.bubbleLegend && x.options.bubbleLegend.autoRanges && a) {
  14325. var c = x.bubbleLegend.options;
  14326. a = x.bubbleLegend.predictBubbleSizes(), x.bubbleLegend.updateRanges(a[0], a[1]), c.placed || (x.group.placed = !1, x.allItems.forEach(function(p) {
  14327. p.legendGroup.translateY = null;
  14328. })), x.render(), this.getMargins(), this.axes.forEach(function(p) {
  14329. p.visible && p.render(), c.placed || (p.setScale(), p.updateNames(), U(p.ticks, function(i) {
  14330. i.isNew = !0, i.isNewLabel = !0;
  14331. }));
  14332. }), c.placed = !0, this.getMargins(), C.call(this, b, w), x.bubbleLegend.correctSizes(), O(x, d(x));
  14333. } else
  14334. C.call(this, b, w), x && x.options.enabled && x.bubbleLegend && (x.render(), O(x, d(x)));
  14335. }
  14336. function v(C) {
  14337. C = C.series;
  14338. for (var b = 0; b < C.length; ) {
  14339. if (C[b] && C[b].isBubble && C[b].visible && C[b].zData.length)
  14340. return b;
  14341. b++;
  14342. }
  14343. return -1;
  14344. }
  14345. function d(C) {
  14346. C = C.allItems;
  14347. var b = [], w = C.length, x, a = 0;
  14348. for (x = 0; x < w; x++)
  14349. if (C[x].legendItemHeight && (C[x].itemHeight = C[x].legendItemHeight), C[x] === C[w - 1] || C[x + 1] && C[x]._legendItemPos[1] !== C[x + 1]._legendItemPos[1]) {
  14350. b.push({ height: 0 });
  14351. var c = b[b.length - 1];
  14352. for (a; a <= x; a++)
  14353. C[a].itemHeight > c.height && (c.height = C[a].itemHeight);
  14354. c.step = x;
  14355. }
  14356. return b;
  14357. }
  14358. function u(C) {
  14359. var b = this.bubbleLegend, w = this.options, x = w.bubbleLegend, a = v(this.chart);
  14360. b && b.ranges && b.ranges.length && (x.ranges.length && (x.autoRanges = !!x.ranges[0].autoRanges), this.destroyItem(b)), 0 <= a && w.enabled && x.enabled && (x.seriesIndex = a, this.bubbleLegend = new y(x, this), this.bubbleLegend.addToLegend(C.allItems));
  14361. }
  14362. function P() {
  14363. var C = this.chart, b = this.visible, w = this.chart.legend;
  14364. w && w.bubbleLegend && (this.visible = !b, this.ignoreSeries = b, C = 0 <= v(C), w.bubbleLegend.visible !== C && (w.update({ bubbleLegend: { enabled: C } }), w.bubbleLegend.visible = C), this.visible = b);
  14365. }
  14366. function O(C, b) {
  14367. var w = C.options.rtl, x, a, c, p = 0;
  14368. C.allItems.forEach(function(i, l) {
  14369. x = i.legendGroup.translateX, a = i._legendItemPos[1], ((c = i.movementX) || w && i.ranges) && (c = w ? x - i.options.maxSize / 2 : x + c, i.legendGroup.attr({ translateX: c })), l > b[p].step && p++, i.legendGroup.attr({ translateY: Math.round(a + b[p].height / 2) }), i._legendItemPos[1] = a + b[p].height / 2;
  14370. });
  14371. }
  14372. var N = [];
  14373. R.compose = function(C, b, w) {
  14374. N.indexOf(C) === -1 && (N.push(C), Z({ legend: { bubbleLegend: h } }), H(C.prototype, "drawChartBox", S)), N.indexOf(b) === -1 && (N.push(b), F(b, "afterGetAllItems", u)), N.indexOf(w) === -1 && (N.push(w), F(w, "legendItemClick", P));
  14375. };
  14376. }(W || (W = {})), W;
  14377. }), E(f, "Series/Bubble/BubblePoint.js", [f["Core/Series/Point.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y, j) {
  14378. var I = this && this.__extends || function() {
  14379. var Z = function(F, U) {
  14380. return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(H, W) {
  14381. H.__proto__ = W;
  14382. } || function(H, W) {
  14383. for (var R in W)
  14384. W.hasOwnProperty(R) && (H[R] = W[R]);
  14385. }, Z(F, U);
  14386. };
  14387. return function(F, U) {
  14388. function H() {
  14389. this.constructor = F;
  14390. }
  14391. Z(F, U), F.prototype = U === null ? Object.create(U) : (H.prototype = U.prototype, new H());
  14392. };
  14393. }();
  14394. return j = j.extend, y = function(Z) {
  14395. function F() {
  14396. var U = Z !== null && Z.apply(this, arguments) || this;
  14397. return U.options = void 0, U.series = void 0, U;
  14398. }
  14399. return I(F, Z), F.prototype.haloPath = function(U) {
  14400. return h.prototype.haloPath.call(this, U === 0 ? 0 : (this.marker && this.marker.radius || 0) + U);
  14401. }, F;
  14402. }(y.seriesTypes.scatter.prototype.pointClass), j(y.prototype, { ttBelow: !1 }), y;
  14403. }), E(f, "Series/Bubble/BubbleSeries.js", [
  14404. f["Core/Axis/Axis.js"],
  14405. f["Series/Bubble/BubbleLegendComposition.js"],
  14406. f["Series/Bubble/BubblePoint.js"],
  14407. f["Core/Color/Color.js"],
  14408. f["Core/Globals.js"],
  14409. f["Core/Series/Series.js"],
  14410. f["Core/Series/SeriesRegistry.js"],
  14411. f["Core/Utilities.js"]
  14412. ], function(h, y, j, I, Z, F, U, H) {
  14413. var W = this && this.__extends || function() {
  14414. var w = function(x, a) {
  14415. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
  14416. c.__proto__ = p;
  14417. } || function(c, p) {
  14418. for (var i in p)
  14419. p.hasOwnProperty(i) && (c[i] = p[i]);
  14420. }, w(x, a);
  14421. };
  14422. return function(x, a) {
  14423. function c() {
  14424. this.constructor = x;
  14425. }
  14426. w(x, a), x.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c());
  14427. };
  14428. }(), R = I.parse;
  14429. I = Z.noop;
  14430. var S = U.seriesTypes;
  14431. Z = S.column;
  14432. var v = S.scatter;
  14433. S = H.addEvent;
  14434. var d = H.arrayMax, u = H.arrayMin, P = H.clamp, O = H.extend, N = H.isNumber, C = H.merge, b = H.pick;
  14435. return H = function(w) {
  14436. function x() {
  14437. var a = w !== null && w.apply(this, arguments) || this;
  14438. return a.data = void 0, a.maxPxSize = void 0, a.minPxSize = void 0, a.options = void 0, a.points = void 0, a.radii = void 0, a.yData = void 0, a.zData = void 0, a;
  14439. }
  14440. return W(x, w), x.prototype.animate = function(a) {
  14441. !a && this.points.length < this.options.animationLimit && this.points.forEach(function(c) {
  14442. var p = c.graphic;
  14443. p && p.width && (this.hasRendered || p.attr({ x: c.plotX, y: c.plotY, width: 1, height: 1 }), p.animate(this.markerAttribs(c), this.options.animation));
  14444. }, this);
  14445. }, x.prototype.getRadii = function() {
  14446. var a = this, c = this.zData, p = this.yData, i = [], l = this.chart.bubbleZExtremes, s = this.getPxExtremes(), t = s.minPxSize, o = s.maxPxSize;
  14447. if (!l) {
  14448. var n = Number.MAX_VALUE, A = -Number.MAX_VALUE, _;
  14449. this.chart.series.forEach(function(T) {
  14450. T.bubblePadding && (T.visible || !a.chart.options.chart.ignoreHiddenSeries) && (T = T.getZExtremes()) && (n = Math.min(n || T.zMin, T.zMin), A = Math.max(A || T.zMax, T.zMax), _ = !0);
  14451. }), _ ? (l = { zMin: n, zMax: A }, this.chart.bubbleZExtremes = l) : l = { zMin: 0, zMax: 0 };
  14452. }
  14453. var D = 0;
  14454. for (s = c.length; D < s; D++) {
  14455. var B = c[D];
  14456. i.push(this.getRadius(l.zMin, l.zMax, t, o, B, p[D]));
  14457. }
  14458. this.radii = i;
  14459. }, x.prototype.getRadius = function(a, c, p, i, l, s) {
  14460. var t = this.options, o = t.sizeBy !== "width", n = t.zThreshold, A = c - a, _ = 0.5;
  14461. if (s === null || l === null)
  14462. return null;
  14463. if (N(l)) {
  14464. if (t.sizeByAbsoluteValue && (l = Math.abs(l - n), A = Math.max(c - n, Math.abs(a - n)), a = 0), l < a)
  14465. return p / 2 - 1;
  14466. 0 < A && (_ = (l - a) / A);
  14467. }
  14468. return o && 0 <= _ && (_ = Math.sqrt(_)), Math.ceil(p + _ * (i - p)) / 2;
  14469. }, x.prototype.hasData = function() {
  14470. return !!this.processedXData.length;
  14471. }, x.prototype.pointAttribs = function(a, c) {
  14472. var p = this.options.marker.fillOpacity;
  14473. return a = F.prototype.pointAttribs.call(this, a, c), p !== 1 && (a.fill = R(a.fill).setOpacity(p).get("rgba")), a;
  14474. }, x.prototype.translate = function() {
  14475. w.prototype.translate.call(this), this.getRadii(), this.translateBubble();
  14476. }, x.prototype.translateBubble = function() {
  14477. for (var a = this.data, c = this.radii, p = this.getPxExtremes().minPxSize, i = a.length; i--; ) {
  14478. var l = a[i], s = c ? c[i] : 0;
  14479. N(s) && s >= p / 2 ? (l.marker = O(l.marker, { radius: s, width: 2 * s, height: 2 * s }), l.dlBox = { x: l.plotX - s, y: l.plotY - s, width: 2 * s, height: 2 * s }) : l.shapeArgs = l.plotY = l.dlBox = void 0;
  14480. }
  14481. }, x.prototype.getPxExtremes = function() {
  14482. var a = Math.min(this.chart.plotWidth, this.chart.plotHeight), c = function(i) {
  14483. if (typeof i == "string") {
  14484. var l = /%$/.test(i);
  14485. i = parseInt(i, 10);
  14486. }
  14487. return l ? a * i / 100 : i;
  14488. }, p = c(b(this.options.minSize, 8));
  14489. return c = Math.max(c(b(this.options.maxSize, "20%")), p), {
  14490. minPxSize: p,
  14491. maxPxSize: c
  14492. };
  14493. }, x.prototype.getZExtremes = function() {
  14494. var a = this.options, c = (this.zData || []).filter(N);
  14495. if (c.length) {
  14496. var p = b(a.zMin, P(u(c), a.displayNegative === !1 ? a.zThreshold || 0 : -Number.MAX_VALUE, Number.MAX_VALUE));
  14497. if (a = b(a.zMax, d(c)), N(p) && N(a))
  14498. return { zMin: p, zMax: a };
  14499. }
  14500. }, x.compose = y.compose, x.defaultOptions = C(v.defaultOptions, { dataLabels: { formatter: function() {
  14501. var a = this.series.chart.numberFormatter, c = this.point.z;
  14502. return N(c) ? a(c, -1) : "";
  14503. }, inside: !0, verticalAlign: "middle" }, animationLimit: 250, marker: {
  14504. lineColor: null,
  14505. lineWidth: 1,
  14506. fillOpacity: 0.5,
  14507. radius: null,
  14508. states: { hover: { radiusPlus: 0 } },
  14509. symbol: "circle"
  14510. }, minSize: 8, maxSize: "20%", softThreshold: !1, states: { hover: { halo: { size: 5 } } }, tooltip: { pointFormat: "({point.x}, {point.y}), Size: {point.z}" }, turboThreshold: 0, zThreshold: 0, zoneAxis: "z" }), x;
  14511. }(v), O(H.prototype, {
  14512. alignDataLabel: Z.prototype.alignDataLabel,
  14513. applyZones: I,
  14514. bubblePadding: !0,
  14515. buildKDTree: I,
  14516. directTouch: !0,
  14517. isBubble: !0,
  14518. pointArrayMap: ["y", "z"],
  14519. pointClass: j,
  14520. parallelArrays: ["x", "y", "z"],
  14521. trackerGroups: ["group", "dataLabelsGroup"],
  14522. specialGroup: "group",
  14523. zoneAxis: "z"
  14524. }), S(H, "updatedData", function(w) {
  14525. delete w.target.chart.bubbleZExtremes;
  14526. }), h.prototype.beforePadding = function() {
  14527. var w = this, x = this.len, a = this.chart, c = 0, p = x, i = this.isXAxis, l = i ? "xData" : "yData", s = this.min, t = this.max - s, o = x / t, n;
  14528. this.series.forEach(function(A) {
  14529. if (A.bubblePadding && (A.visible || !a.options.chart.ignoreHiddenSeries)) {
  14530. n = w.allowZoomOutside = !0;
  14531. var _ = A[l];
  14532. if (i && A.getRadii(0, 0, A), 0 < t) {
  14533. for (var D = _.length; D--; )
  14534. if (N(_[D]) && w.dataMin <= _[D] && _[D] <= w.max) {
  14535. var B = A.radii && A.radii[D] || 0;
  14536. c = Math.min((_[D] - s) * o - B, c), p = Math.max((_[D] - s) * o + B, p);
  14537. }
  14538. }
  14539. }
  14540. }), n && 0 < t && !this.logarithmic && (p -= x, o *= (x + Math.max(0, c) - Math.min(p, x)) / x, [["min", "userMin", c], ["max", "userMax", p]].forEach(function(A) {
  14541. typeof b(w.options[A[0]], w[A[1]]) > "u" && (w[A[0]] += A[2] / o);
  14542. }));
  14543. }, U.registerSeriesType("bubble", H), H;
  14544. }), E(f, "Series/ColumnRange/ColumnRangePoint.js", [f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y) {
  14545. var j = this && this.__extends || function() {
  14546. var U = function(H, W) {
  14547. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(R, S) {
  14548. R.__proto__ = S;
  14549. } || function(R, S) {
  14550. for (var v in S)
  14551. S.hasOwnProperty(v) && (R[v] = S[v]);
  14552. }, U(H, W);
  14553. };
  14554. return function(H, W) {
  14555. function R() {
  14556. this.constructor = H;
  14557. }
  14558. U(H, W), H.prototype = W === null ? Object.create(W) : (R.prototype = W.prototype, new R());
  14559. };
  14560. }(), I = h.seriesTypes;
  14561. h = I.column.prototype.pointClass;
  14562. var Z = y.extend, F = y.isNumber;
  14563. return y = function(U) {
  14564. function H() {
  14565. var W = U !== null && U.apply(this, arguments) || this;
  14566. return W.series = void 0, W.options = void 0, W.barX = void 0, W.pointWidth = void 0, W.shapeType = void 0, W;
  14567. }
  14568. return j(H, U), H.prototype.isValid = function() {
  14569. return F(this.low);
  14570. }, H;
  14571. }(I.arearange.prototype.pointClass), Z(y.prototype, { setState: h.prototype.setState }), y;
  14572. }), E(f, "Series/ColumnRange/ColumnRangeSeries.js", [f["Series/ColumnRange/ColumnRangePoint.js"], f["Core/Globals.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  14573. var Z = this && this.__extends || function() {
  14574. var P = function(O, N) {
  14575. return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  14576. C.__proto__ = b;
  14577. } || function(C, b) {
  14578. for (var w in b)
  14579. b.hasOwnProperty(w) && (C[w] = b[w]);
  14580. }, P(O, N);
  14581. };
  14582. return function(O, N) {
  14583. function C() {
  14584. this.constructor = O;
  14585. }
  14586. P(O, N), O.prototype = N === null ? Object.create(N) : (C.prototype = N.prototype, new C());
  14587. };
  14588. }();
  14589. y = y.noop;
  14590. var F = j.seriesTypes, U = F.arearange, H = F.column, W = H.prototype, R = U.prototype, S = I.clamp, v = I.merge, d = I.pick;
  14591. I = I.extend;
  14592. var u = { pointRange: null, marker: null, states: { hover: { halo: !1 } } };
  14593. return F = function(P) {
  14594. function O() {
  14595. var N = P !== null && P.apply(this, arguments) || this;
  14596. return N.data = void 0, N.points = void 0, N.options = void 0, N;
  14597. }
  14598. return Z(O, P), O.prototype.setOptions = function() {
  14599. return v(!0, arguments[0], { stacking: void 0 }), R.setOptions.apply(this, arguments);
  14600. }, O.prototype.translate = function() {
  14601. var N = this, C = N.yAxis, b = N.xAxis, w = b.startAngleRad, x, a = N.chart, c = N.xAxis.isRadial, p = Math.max(a.chartWidth, a.chartHeight) + 999, i;
  14602. W.translate.apply(N), N.points.forEach(function(l) {
  14603. var s = l.shapeArgs || {}, t = N.options.minPointLength;
  14604. l.plotHigh = i = S(C.translate(l.high, 0, 1, 0, 1), -p, p), l.plotLow = S(l.plotY, -p, p);
  14605. var o = i, n = d(
  14606. l.rectPlotY,
  14607. l.plotY
  14608. ) - i;
  14609. Math.abs(n) < t ? (t -= n, n += t, o -= t / 2) : 0 > n && (n *= -1, o -= n), c ? (x = l.barX + w, l.shapeType = "arc", l.shapeArgs = N.polarArc(o + n, o, x, x + l.pointWidth)) : (s.height = n, s.y = o, t = s.x, t = t === void 0 ? 0 : t, s = s.width, s = s === void 0 ? 0 : s, l.tooltipPos = a.inverted ? [C.len + C.pos - a.plotLeft - o - n / 2, b.len + b.pos - a.plotTop - t - s / 2, n] : [b.left - a.plotLeft + t + s / 2, C.pos - a.plotTop + o + n / 2, n]);
  14610. });
  14611. }, O.prototype.crispCol = function() {
  14612. return W.crispCol.apply(this, arguments);
  14613. }, O.prototype.drawPoints = function() {
  14614. return W.drawPoints.apply(this, arguments);
  14615. }, O.prototype.drawTracker = function() {
  14616. return W.drawTracker.apply(this, arguments);
  14617. }, O.prototype.getColumnMetrics = function() {
  14618. return W.getColumnMetrics.apply(this, arguments);
  14619. }, O.prototype.pointAttribs = function() {
  14620. return W.pointAttribs.apply(this, arguments);
  14621. }, O.prototype.adjustForMissingColumns = function() {
  14622. return W.adjustForMissingColumns.apply(this, arguments);
  14623. }, O.prototype.animate = function() {
  14624. return W.animate.apply(this, arguments);
  14625. }, O.prototype.translate3dPoints = function() {
  14626. return W.translate3dPoints.apply(this, arguments);
  14627. }, O.prototype.translate3dShapes = function() {
  14628. return W.translate3dShapes.apply(this, arguments);
  14629. }, O.defaultOptions = v(H.defaultOptions, U.defaultOptions, u), O;
  14630. }(U), I(F.prototype, { directTouch: !0, trackerGroups: ["group", "dataLabelsGroup"], drawGraph: y, getSymbol: y, polarArc: function() {
  14631. return W.polarArc.apply(this, arguments);
  14632. }, pointClass: h }), j.registerSeriesType("columnrange", F), F;
  14633. }), E(f, "Series/ColumnPyramid/ColumnPyramidSeries.js", [f["Series/Column/ColumnSeries.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y, j) {
  14634. var I = this && this.__extends || function() {
  14635. var W = function(R, S) {
  14636. return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, d) {
  14637. v.__proto__ = d;
  14638. } || function(v, d) {
  14639. for (var u in d)
  14640. d.hasOwnProperty(u) && (v[u] = d[u]);
  14641. }, W(R, S);
  14642. };
  14643. return function(R, S) {
  14644. function v() {
  14645. this.constructor = R;
  14646. }
  14647. W(R, S), R.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  14648. };
  14649. }(), Z = h.prototype, F = j.clamp, U = j.merge, H = j.pick;
  14650. return j = function(W) {
  14651. function R() {
  14652. var S = W !== null && W.apply(this, arguments) || this;
  14653. return S.data = void 0, S.options = void 0, S.points = void 0, S;
  14654. }
  14655. return I(R, W), R.prototype.translate = function() {
  14656. var S = this, v = S.chart, d = S.options, u = S.dense = 2 > S.closestPointRange * S.xAxis.transA;
  14657. u = S.borderWidth = H(d.borderWidth, u ? 0 : 1);
  14658. var P = S.yAxis, O = d.threshold, N = S.translatedThreshold = P.getThreshold(O), C = H(d.minPointLength, 5), b = S.getColumnMetrics(), w = b.width, x = S.barW = Math.max(w, 1 + 2 * u), a = S.pointXOffset = b.offset;
  14659. v.inverted && (N -= 0.5), d.pointPadding && (x = Math.ceil(x)), Z.translate.apply(S), S.points.forEach(function(c) {
  14660. var p = H(c.yBottom, N), i = 999 + Math.abs(p), l = F(c.plotY, -i, P.len + i);
  14661. i = c.plotX + a;
  14662. var s = x / 2, t = Math.min(l, p);
  14663. p = Math.max(l, p) - t;
  14664. var o;
  14665. c.barX = i, c.pointWidth = w, c.tooltipPos = v.inverted ? [P.len + P.pos - v.plotLeft - l, S.xAxis.len - i - s, p] : [i + s, l + P.pos - v.plotTop, p], l = O + (c.total || c.y), d.stacking === "percent" && (l = O + (0 > c.y) ? -100 : 100), l = P.toPixels(l, !0);
  14666. var n = (o = v.plotHeight - l - (v.plotHeight - N)) ? s * (t - l) / o : 0, A = o ? s * (t + p - l) / o : 0;
  14667. o = i - n + s, n = i + n + s;
  14668. var _ = i + A + s;
  14669. A = i - A + s;
  14670. var D = t - C, B = t + p;
  14671. 0 > c.y && (D = t, B = t + p + C), v.inverted && (_ = P.width - t, o = l - (P.width - N), n = s * (l - _) / o, A = s * (l - (_ - p)) / o, o = i + s + n, n = o - 2 * n, _ = i - A + s, A = i + A + s, D = t, B = t + p - C, 0 > c.y && (B = t + p + C)), c.shapeType = "path", c.shapeArgs = { x: o, y: D, width: n - o, height: p, d: [["M", o, D], ["L", n, D], ["L", _, B], ["L", A, B], ["Z"]] };
  14672. });
  14673. }, R.defaultOptions = U(h.defaultOptions, {}), R;
  14674. }(h), y.registerSeriesType("columnpyramid", j), j;
  14675. }), E(f, "Series/ErrorBar/ErrorBarSeries.js", [f["Series/BoxPlot/BoxPlotSeries.js"], f["Series/Column/ColumnSeries.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  14676. var Z = this && this.__extends || function() {
  14677. var W = function(R, S) {
  14678. return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, d) {
  14679. v.__proto__ = d;
  14680. } || function(v, d) {
  14681. for (var u in d)
  14682. d.hasOwnProperty(u) && (v[u] = d[u]);
  14683. }, W(R, S);
  14684. };
  14685. return function(R, S) {
  14686. function v() {
  14687. this.constructor = R;
  14688. }
  14689. W(R, S), R.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  14690. };
  14691. }(), F = j.seriesTypes.arearange, U = I.merge;
  14692. I = I.extend;
  14693. var H = function(W) {
  14694. function R() {
  14695. var S = W !== null && W.apply(this, arguments) || this;
  14696. return S.data = void 0, S.options = void 0, S.points = void 0, S;
  14697. }
  14698. return Z(R, W), R.prototype.getColumnMetrics = function() {
  14699. return this.linkedParent && this.linkedParent.columnMetrics || y.prototype.getColumnMetrics.call(this);
  14700. }, R.prototype.drawDataLabels = function() {
  14701. var S = this.pointValKey;
  14702. F && (F.prototype.drawDataLabels.call(this), this.data.forEach(function(v) {
  14703. v.y = v[S];
  14704. }));
  14705. }, R.prototype.toYData = function(S) {
  14706. return [S.low, S.high];
  14707. }, R.defaultOptions = U(h.defaultOptions, {
  14708. color: "#000000",
  14709. grouping: !1,
  14710. linkedTo: ":previous",
  14711. tooltip: { pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14712. whiskerWidth: null
  14713. }), R;
  14714. }(h);
  14715. return I(H.prototype, { pointArrayMap: ["low", "high"], pointValKey: "high", doQuartiles: !1 }), j.registerSeriesType("errorbar", H), H;
  14716. }), E(f, "Series/Gauge/GaugePoint.js", [f["Core/Series/SeriesRegistry.js"]], function(h) {
  14717. var y = this && this.__extends || function() {
  14718. var j = function(I, Z) {
  14719. return j = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, U) {
  14720. F.__proto__ = U;
  14721. } || function(F, U) {
  14722. for (var H in U)
  14723. U.hasOwnProperty(H) && (F[H] = U[H]);
  14724. }, j(I, Z);
  14725. };
  14726. return function(I, Z) {
  14727. function F() {
  14728. this.constructor = I;
  14729. }
  14730. j(I, Z), I.prototype = Z === null ? Object.create(Z) : (F.prototype = Z.prototype, new F());
  14731. };
  14732. }();
  14733. return function(j) {
  14734. function I() {
  14735. var Z = j !== null && j.apply(this, arguments) || this;
  14736. return Z.options = void 0, Z.series = void 0, Z.shapeArgs = void 0, Z;
  14737. }
  14738. return y(I, j), I.prototype.setState = function(Z) {
  14739. this.state = Z;
  14740. }, I;
  14741. }(h.series.prototype.pointClass);
  14742. }), E(f, "Series/Gauge/GaugeSeries.js", [f["Series/Gauge/GaugePoint.js"], f["Core/Globals.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  14743. var Z = this && this.__extends || function() {
  14744. var u = function(P, O) {
  14745. return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(N, C) {
  14746. N.__proto__ = C;
  14747. } || function(N, C) {
  14748. for (var b in C)
  14749. C.hasOwnProperty(b) && (N[b] = C[b]);
  14750. }, u(P, O);
  14751. };
  14752. return function(P, O) {
  14753. function N() {
  14754. this.constructor = P;
  14755. }
  14756. u(P, O), P.prototype = O === null ? Object.create(O) : (N.prototype = O.prototype, new N());
  14757. };
  14758. }();
  14759. y = y.noop;
  14760. var F = j.series, U = j.seriesTypes.column, H = I.clamp, W = I.isNumber, R = I.extend, S = I.merge, v = I.pick, d = I.pInt;
  14761. return I = function(u) {
  14762. function P() {
  14763. var O = u !== null && u.apply(this, arguments) || this;
  14764. return O.data = void 0, O.points = void 0, O.options = void 0, O.yAxis = void 0, O;
  14765. }
  14766. return Z(P, u), P.prototype.translate = function() {
  14767. var O = this.yAxis, N = this.options, C = O.center;
  14768. this.generatePoints(), this.points.forEach(function(b) {
  14769. var w = S(N.dial, b.dial), x = d(v(w.radius, "80%")) * C[2] / 200, a = d(v(w.baseLength, "70%")) * x / 100, c = d(v(w.rearLength, "10%")) * x / 100, p = w.baseWidth || 3, i = w.topWidth || 1, l = N.overshoot, s = O.startAngleRad + O.translate(b.y, null, null, null, !0);
  14770. (W(l) || N.wrap === !1) && (l = W(l) ? l / 180 * Math.PI : 0, s = H(
  14771. s,
  14772. O.startAngleRad - l,
  14773. O.endAngleRad + l
  14774. )), s = 180 * s / Math.PI, b.shapeType = "path", b.shapeArgs = { d: w.path || [["M", -c, -p / 2], ["L", a, -p / 2], ["L", x, -i / 2], ["L", x, i / 2], ["L", a, p / 2], ["L", -c, p / 2], ["Z"]], translateX: C[0], translateY: C[1], rotation: s }, b.plotX = C[0], b.plotY = C[1];
  14775. });
  14776. }, P.prototype.drawPoints = function() {
  14777. var O = this, N = O.chart, C = O.yAxis.center, b = O.pivot, w = O.options, x = w.pivot, a = N.renderer;
  14778. O.points.forEach(function(c) {
  14779. var p = c.graphic, i = c.shapeArgs, l = i.d, s = S(w.dial, c.dial);
  14780. p ? (p.animate(i), i.d = l) : c.graphic = a[c.shapeType](i).attr({
  14781. rotation: i.rotation,
  14782. zIndex: 1
  14783. }).addClass("highcharts-dial").add(O.group), N.styledMode || c.graphic[p ? "animate" : "attr"]({ stroke: s.borderColor || "none", "stroke-width": s.borderWidth || 0, fill: s.backgroundColor || "#000000" });
  14784. }), b ? b.animate({ translateX: C[0], translateY: C[1] }) : (O.pivot = a.circle(0, 0, v(x.radius, 5)).attr({ zIndex: 2 }).addClass("highcharts-pivot").translate(C[0], C[1]).add(O.group), N.styledMode || O.pivot.attr({ "stroke-width": x.borderWidth || 0, stroke: x.borderColor || "#cccccc", fill: x.backgroundColor || "#000000" }));
  14785. }, P.prototype.animate = function(O) {
  14786. var N = this;
  14787. O || N.points.forEach(function(C) {
  14788. var b = C.graphic;
  14789. b && (b.attr({ rotation: 180 * N.yAxis.startAngleRad / Math.PI }), b.animate({ rotation: C.shapeArgs.rotation }, N.options.animation));
  14790. });
  14791. }, P.prototype.render = function() {
  14792. this.group = this.plotGroup("group", "series", this.visible ? "visible" : "hidden", this.options.zIndex, this.chart.seriesGroup), F.prototype.render.call(this), this.group.clip(this.chart.clipRect);
  14793. }, P.prototype.setData = function(O, N) {
  14794. F.prototype.setData.call(this, O, !1), this.processData(), this.generatePoints(), v(N, !0) && this.chart.redraw();
  14795. }, P.prototype.hasData = function() {
  14796. return !!this.points.length;
  14797. }, P.defaultOptions = S(F.defaultOptions, { dataLabels: { borderColor: "#cccccc", borderRadius: 3, borderWidth: 1, crop: !1, defer: !1, enabled: !0, verticalAlign: "top", y: 15, zIndex: 2 }, dial: {}, pivot: {}, tooltip: { headerFormat: "" }, showInLegend: !1 }), P;
  14798. }(F), R(I.prototype, { angular: !0, directTouch: !0, drawGraph: y, drawTracker: U.prototype.drawTracker, fixedBox: !0, forceDL: !0, noSharedTooltip: !0, pointClass: h, trackerGroups: [
  14799. "group",
  14800. "dataLabelsGroup"
  14801. ] }), j.registerSeriesType("gauge", I), I;
  14802. }), E(f, "Series/PackedBubble/PackedBubblePoint.js", [f["Core/Chart/Chart.js"], f["Core/Series/Point.js"], f["Core/Series/SeriesRegistry.js"]], function(h, y, j) {
  14803. var I = this && this.__extends || function() {
  14804. var Z = function(F, U) {
  14805. return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(H, W) {
  14806. H.__proto__ = W;
  14807. } || function(H, W) {
  14808. for (var R in W)
  14809. W.hasOwnProperty(R) && (H[R] = W[R]);
  14810. }, Z(F, U);
  14811. };
  14812. return function(F, U) {
  14813. function H() {
  14814. this.constructor = F;
  14815. }
  14816. Z(F, U), F.prototype = U === null ? Object.create(U) : (H.prototype = U.prototype, new H());
  14817. };
  14818. }();
  14819. return function(Z) {
  14820. function F() {
  14821. var U = Z !== null && Z.apply(this, arguments) || this;
  14822. return U.degree = NaN, U.mass = NaN, U.radius = NaN, U.options = void 0, U.series = void 0, U.value = null, U;
  14823. }
  14824. return I(F, Z), F.prototype.destroy = function() {
  14825. return this.series.layout && this.series.layout.removeElementFromCollection(this, this.series.layout.nodes), y.prototype.destroy.apply(this, arguments);
  14826. }, F.prototype.firePointEvent = function() {
  14827. var U = this.series.options;
  14828. if (this.isParentNode && U.parentNode) {
  14829. var H = U.allowPointSelect;
  14830. U.allowPointSelect = U.parentNode.allowPointSelect, y.prototype.firePointEvent.apply(this, arguments), U.allowPointSelect = H;
  14831. } else
  14832. y.prototype.firePointEvent.apply(this, arguments);
  14833. }, F.prototype.select = function() {
  14834. var U = this.series.chart;
  14835. this.isParentNode ? (U.getSelectedPoints = U.getSelectedParentNodes, y.prototype.select.apply(this, arguments), U.getSelectedPoints = h.prototype.getSelectedPoints) : y.prototype.select.apply(this, arguments);
  14836. }, F;
  14837. }(j.seriesTypes.bubble.prototype.pointClass);
  14838. }), E(f, "Series/Networkgraph/DraggableNodes.js", [f["Core/Chart/Chart.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(h, y, j) {
  14839. var I = j.addEvent;
  14840. y.dragNodesMixin = { onMouseDown: function(Z, F) {
  14841. F = this.chart.pointer.normalize(F), Z.fixedPosition = { chartX: F.chartX, chartY: F.chartY, plotX: Z.plotX, plotY: Z.plotY }, Z.inDragMode = !0;
  14842. }, onMouseMove: function(Z, F) {
  14843. if (Z.fixedPosition && Z.inDragMode) {
  14844. var U = this.chart, H = U.pointer.normalize(F);
  14845. F = Z.fixedPosition.chartX - H.chartX, H = Z.fixedPosition.chartY - H.chartY;
  14846. var W = void 0, R = void 0, S = U.graphLayoutsLookup;
  14847. (5 < Math.abs(F) || 5 < Math.abs(H)) && (W = Z.fixedPosition.plotX - F, R = Z.fixedPosition.plotY - H, U.isInsidePlot(W, R) && (Z.plotX = W, Z.plotY = R, Z.hasDragged = !0, this.redrawHalo(Z), S.forEach(function(v) {
  14848. v.restartSimulation();
  14849. })));
  14850. }
  14851. }, onMouseUp: function(Z, F) {
  14852. Z.fixedPosition && (Z.hasDragged && (this.layout.enableSimulation ? this.layout.start() : this.chart.redraw()), Z.inDragMode = Z.hasDragged = !1, this.options.fixedDraggable || delete Z.fixedPosition);
  14853. }, redrawHalo: function(Z) {
  14854. Z && this.halo && this.halo.attr({ d: Z.haloPath(this.options.states.hover.halo.size) });
  14855. } }, I(h, "load", function() {
  14856. var Z = this, F, U, H;
  14857. Z.container && (F = I(Z.container, "mousedown", function(W) {
  14858. var R = Z.hoverPoint;
  14859. R && R.series && R.series.hasDraggableNodes && R.series.options.draggable && (R.series.onMouseDown(R, W), U = I(Z.container, "mousemove", function(S) {
  14860. return R && R.series && R.series.onMouseMove(R, S);
  14861. }), H = I(Z.container.ownerDocument, "mouseup", function(S) {
  14862. return U(), H(), R && R.series && R.series.onMouseUp(R, S);
  14863. }));
  14864. })), I(Z, "destroy", function() {
  14865. F();
  14866. });
  14867. });
  14868. }), E(
  14869. f,
  14870. "Series/Networkgraph/Integrations.js",
  14871. [f["Core/Globals.js"]],
  14872. function(h) {
  14873. h.networkgraphIntegrations = { verlet: { attractiveForceFunction: function(y, j) {
  14874. return (j - y) / y;
  14875. }, repulsiveForceFunction: function(y, j) {
  14876. return (j - y) / y * (j > y ? 1 : 0);
  14877. }, barycenter: function() {
  14878. var y = this.options.gravitationalConstant, j = this.barycenter.xFactor, I = this.barycenter.yFactor;
  14879. j = (j - (this.box.left + this.box.width) / 2) * y, I = (I - (this.box.top + this.box.height) / 2) * y, this.nodes.forEach(function(Z) {
  14880. Z.fixedPosition || (Z.plotX -= j / Z.mass / Z.degree, Z.plotY -= I / Z.mass / Z.degree);
  14881. });
  14882. }, repulsive: function(y, j, I) {
  14883. j = j * this.diffTemperature / y.mass / y.degree, y.fixedPosition || (y.plotX += I.x * j, y.plotY += I.y * j);
  14884. }, attractive: function(y, j, I) {
  14885. var Z = y.getMass(), F = -I.x * j * this.diffTemperature;
  14886. j = -I.y * j * this.diffTemperature, y.fromNode.fixedPosition || (y.fromNode.plotX -= F * Z.fromNode / y.fromNode.degree, y.fromNode.plotY -= j * Z.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.plotX += F * Z.toNode / y.toNode.degree, y.toNode.plotY += j * Z.toNode / y.toNode.degree);
  14887. }, integrate: function(y, j) {
  14888. var I = -y.options.friction, Z = y.options.maxSpeed, F = (j.plotX + j.dispX - j.prevX) * I;
  14889. I *= j.plotY + j.dispY - j.prevY;
  14890. var U = Math.abs, H = U(F) / (F || 1);
  14891. U = U(I) / (I || 1), F = H * Math.min(Z, Math.abs(F)), I = U * Math.min(Z, Math.abs(I)), j.prevX = j.plotX + j.dispX, j.prevY = j.plotY + j.dispY, j.plotX += F, j.plotY += I, j.temperature = y.vectorLength({ x: F, y: I });
  14892. }, getK: function(y) {
  14893. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.5);
  14894. } }, euler: { attractiveForceFunction: function(y, j) {
  14895. return y * y / j;
  14896. }, repulsiveForceFunction: function(y, j) {
  14897. return j * j / y;
  14898. }, barycenter: function() {
  14899. var y = this.options.gravitationalConstant, j = this.barycenter.xFactor, I = this.barycenter.yFactor;
  14900. this.nodes.forEach(function(Z) {
  14901. if (!Z.fixedPosition) {
  14902. var F = Z.getDegree();
  14903. F *= 1 + F / 2, Z.dispX += (j - Z.plotX) * y * F / Z.degree, Z.dispY += (I - Z.plotY) * y * F / Z.degree;
  14904. }
  14905. });
  14906. }, repulsive: function(y, j, I, Z) {
  14907. y.dispX += I.x / Z * j / y.degree, y.dispY += I.y / Z * j / y.degree;
  14908. }, attractive: function(y, j, I, Z) {
  14909. var F = y.getMass(), U = I.x / Z * j;
  14910. j *= I.y / Z, y.fromNode.fixedPosition || (y.fromNode.dispX -= U * F.fromNode / y.fromNode.degree, y.fromNode.dispY -= j * F.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.dispX += U * F.toNode / y.toNode.degree, y.toNode.dispY += j * F.toNode / y.toNode.degree);
  14911. }, integrate: function(y, j) {
  14912. j.dispX += j.dispX * y.options.friction, j.dispY += j.dispY * y.options.friction;
  14913. var I = j.temperature = y.vectorLength({ x: j.dispX, y: j.dispY });
  14914. I !== 0 && (j.plotX += j.dispX / I * Math.min(Math.abs(j.dispX), y.temperature), j.plotY += j.dispY / I * Math.min(Math.abs(j.dispY), y.temperature));
  14915. }, getK: function(y) {
  14916. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.3);
  14917. } } };
  14918. }
  14919. ), E(
  14920. f,
  14921. "Series/Networkgraph/QuadTree.js",
  14922. [f["Core/Globals.js"], f["Core/Utilities.js"]],
  14923. function(h, y) {
  14924. y = y.extend;
  14925. var j = h.QuadTreeNode = function(I) {
  14926. this.box = I, this.boxSize = Math.min(I.width, I.height), this.nodes = [], this.body = this.isInternal = !1, this.isEmpty = !0;
  14927. };
  14928. y(j.prototype, { insert: function(I, Z) {
  14929. this.isInternal ? this.nodes[this.getBoxPosition(I)].insert(I, Z - 1) : (this.isEmpty = !1, this.body ? Z ? (this.isInternal = !0, this.divideBox(), this.body !== !0 && (this.nodes[this.getBoxPosition(this.body)].insert(this.body, Z - 1), this.body = !0), this.nodes[this.getBoxPosition(I)].insert(I, Z - 1)) : (Z = new j({
  14930. top: I.plotX,
  14931. left: I.plotY,
  14932. width: 0.1,
  14933. height: 0.1
  14934. }), Z.body = I, Z.isInternal = !1, this.nodes.push(Z)) : (this.isInternal = !1, this.body = I));
  14935. }, updateMassAndCenter: function() {
  14936. var I = 0, Z = 0, F = 0;
  14937. this.isInternal ? (this.nodes.forEach(function(U) {
  14938. U.isEmpty || (I += U.mass, Z += U.plotX * U.mass, F += U.plotY * U.mass);
  14939. }), Z /= I, F /= I) : this.body && (I = this.body.mass, Z = this.body.plotX, F = this.body.plotY), this.mass = I, this.plotX = Z, this.plotY = F;
  14940. }, divideBox: function() {
  14941. var I = this.box.width / 2, Z = this.box.height / 2;
  14942. this.nodes[0] = new j({
  14943. left: this.box.left,
  14944. top: this.box.top,
  14945. width: I,
  14946. height: Z
  14947. }), this.nodes[1] = new j({ left: this.box.left + I, top: this.box.top, width: I, height: Z }), this.nodes[2] = new j({ left: this.box.left + I, top: this.box.top + Z, width: I, height: Z }), this.nodes[3] = new j({ left: this.box.left, top: this.box.top + Z, width: I, height: Z });
  14948. }, getBoxPosition: function(I) {
  14949. var Z = I.plotY < this.box.top + this.box.height / 2;
  14950. return I.plotX < this.box.left + this.box.width / 2 ? Z ? 0 : 3 : Z ? 1 : 2;
  14951. } }), h = h.QuadTree = function(I, Z, F, U) {
  14952. this.box = { left: I, top: Z, width: F, height: U }, this.maxDepth = 25, this.root = new j(
  14953. this.box,
  14954. "0"
  14955. ), this.root.isInternal = !0, this.root.isRoot = !0, this.root.divideBox();
  14956. }, y(h.prototype, { insertNodes: function(I) {
  14957. I.forEach(function(Z) {
  14958. this.root.insert(Z, this.maxDepth);
  14959. }, this);
  14960. }, visitNodeRecursive: function(I, Z, F) {
  14961. var U;
  14962. I || (I = this.root), I === this.root && Z && (U = Z(I)), U !== !1 && (I.nodes.forEach(function(H) {
  14963. if (H.isInternal) {
  14964. if (Z && (U = Z(H)), U === !1)
  14965. return;
  14966. this.visitNodeRecursive(H, Z, F);
  14967. } else
  14968. H.body && Z && Z(H.body);
  14969. F && F(H);
  14970. }, this), I === this.root && F && F(I));
  14971. }, calculateMassAndCenter: function() {
  14972. this.visitNodeRecursive(
  14973. null,
  14974. null,
  14975. function(I) {
  14976. I.updateMassAndCenter();
  14977. }
  14978. );
  14979. } });
  14980. }
  14981. ), E(f, "Series/Networkgraph/Layouts.js", [f["Core/Chart/Chart.js"], f["Core/Animation/AnimationUtilities.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  14982. var Z = y.setAnimation;
  14983. y = I.addEvent;
  14984. var F = I.clamp, U = I.defined, H = I.extend, W = I.isFunction, R = I.pick;
  14985. j.layouts = { "reingold-fruchterman": function() {
  14986. } }, H(j.layouts["reingold-fruchterman"].prototype, {
  14987. init: function(S) {
  14988. this.options = S, this.nodes = [], this.links = [], this.series = [], this.box = {
  14989. x: 0,
  14990. y: 0,
  14991. width: 0,
  14992. height: 0
  14993. }, this.setInitialRendering(!0), this.integration = j.networkgraphIntegrations[S.integration], this.enableSimulation = S.enableSimulation, this.attractiveForce = R(S.attractiveForce, this.integration.attractiveForceFunction), this.repulsiveForce = R(S.repulsiveForce, this.integration.repulsiveForceFunction), this.approximation = S.approximation;
  14994. },
  14995. updateSimulation: function(S) {
  14996. this.enableSimulation = R(S, this.options.enableSimulation);
  14997. },
  14998. start: function() {
  14999. var S = this.series, v = this.options;
  15000. this.currentStep = 0, this.forces = S[0] && S[0].forces || [], this.chart = S[0] && S[0].chart, this.initialRendering && (this.initPositions(), S.forEach(function(d) {
  15001. d.finishedAnimating = !0, d.render();
  15002. })), this.setK(), this.resetSimulation(v), this.enableSimulation && this.step();
  15003. },
  15004. step: function() {
  15005. var S = this, v = this.series;
  15006. S.currentStep++, S.approximation === "barnes-hut" && (S.createQuadTree(), S.quadTree.calculateMassAndCenter()), S.forces.forEach(function(d) {
  15007. S[d + "Forces"](S.temperature);
  15008. }), S.applyLimits(S.temperature), S.temperature = S.coolDown(
  15009. S.startTemperature,
  15010. S.diffTemperature,
  15011. S.currentStep
  15012. ), S.prevSystemTemperature = S.systemTemperature, S.systemTemperature = S.getSystemTemperature(), S.enableSimulation && (v.forEach(function(d) {
  15013. d.chart && d.render();
  15014. }), S.maxIterations-- && isFinite(S.temperature) && !S.isStable() ? (S.simulation && j.win.cancelAnimationFrame(S.simulation), S.simulation = j.win.requestAnimationFrame(function() {
  15015. S.step();
  15016. })) : S.simulation = !1);
  15017. },
  15018. stop: function() {
  15019. this.simulation && j.win.cancelAnimationFrame(this.simulation);
  15020. },
  15021. setArea: function(S, v, d, u) {
  15022. this.box = {
  15023. left: S,
  15024. top: v,
  15025. width: d,
  15026. height: u
  15027. };
  15028. },
  15029. setK: function() {
  15030. this.k = this.options.linkLength || this.integration.getK(this);
  15031. },
  15032. addElementsToCollection: function(S, v) {
  15033. S.forEach(function(d) {
  15034. v.indexOf(d) === -1 && v.push(d);
  15035. });
  15036. },
  15037. removeElementFromCollection: function(S, v) {
  15038. S = v.indexOf(S), S !== -1 && v.splice(S, 1);
  15039. },
  15040. clear: function() {
  15041. this.nodes.length = 0, this.links.length = 0, this.series.length = 0, this.resetSimulation();
  15042. },
  15043. resetSimulation: function() {
  15044. this.forcedStop = !1, this.systemTemperature = 0, this.setMaxIterations(), this.setTemperature(), this.setDiffTemperature();
  15045. },
  15046. restartSimulation: function() {
  15047. this.simulation ? this.resetSimulation() : (this.setInitialRendering(!1), this.enableSimulation ? this.start() : this.setMaxIterations(1), this.chart && this.chart.redraw(), this.setInitialRendering(!0));
  15048. },
  15049. setMaxIterations: function(S) {
  15050. this.maxIterations = R(S, this.options.maxIterations);
  15051. },
  15052. setTemperature: function() {
  15053. this.temperature = this.startTemperature = Math.sqrt(this.nodes.length);
  15054. },
  15055. setDiffTemperature: function() {
  15056. this.diffTemperature = this.startTemperature / (this.options.maxIterations + 1);
  15057. },
  15058. setInitialRendering: function(S) {
  15059. this.initialRendering = S;
  15060. },
  15061. createQuadTree: function() {
  15062. this.quadTree = new j.QuadTree(this.box.left, this.box.top, this.box.width, this.box.height), this.quadTree.insertNodes(this.nodes);
  15063. },
  15064. initPositions: function() {
  15065. var S = this.options.initialPositions;
  15066. W(S) ? (S.call(this), this.nodes.forEach(function(v) {
  15067. U(v.prevX) || (v.prevX = v.plotX), U(v.prevY) || (v.prevY = v.plotY), v.dispX = 0, v.dispY = 0;
  15068. })) : S === "circle" ? this.setCircularPositions() : this.setRandomPositions();
  15069. },
  15070. setCircularPositions: function() {
  15071. function S(b) {
  15072. b.linksFrom.forEach(function(w) {
  15073. N[w.toNode.id] || (N[w.toNode.id] = !0, O.push(w.toNode), S(w.toNode));
  15074. });
  15075. }
  15076. var v = this.box, d = this.nodes, u = 2 * Math.PI / (d.length + 1), P = d.filter(function(b) {
  15077. return b.linksTo.length === 0;
  15078. }), O = [], N = {}, C = this.options.initialPositionRadius;
  15079. P.forEach(function(b) {
  15080. O.push(b), S(b);
  15081. }), O.length ? d.forEach(function(b) {
  15082. O.indexOf(b) === -1 && O.push(b);
  15083. }) : O = d, O.forEach(function(b, w) {
  15084. b.plotX = b.prevX = R(b.plotX, v.width / 2 + C * Math.cos(w * u)), b.plotY = b.prevY = R(b.plotY, v.height / 2 + C * Math.sin(w * u)), b.dispX = 0, b.dispY = 0;
  15085. });
  15086. },
  15087. setRandomPositions: function() {
  15088. function S(P) {
  15089. return P = P * P / Math.PI, P -= Math.floor(P);
  15090. }
  15091. var v = this.box, d = this.nodes, u = d.length + 1;
  15092. d.forEach(function(P, O) {
  15093. P.plotX = P.prevX = R(P.plotX, v.width * S(O)), P.plotY = P.prevY = R(P.plotY, v.height * S(u + O)), P.dispX = 0, P.dispY = 0;
  15094. });
  15095. },
  15096. force: function(S) {
  15097. this.integration[S].apply(this, Array.prototype.slice.call(arguments, 1));
  15098. },
  15099. barycenterForces: function() {
  15100. this.getBarycenter(), this.force("barycenter");
  15101. },
  15102. getBarycenter: function() {
  15103. var S = 0, v = 0, d = 0;
  15104. return this.nodes.forEach(function(u) {
  15105. v += u.plotX * u.mass, d += u.plotY * u.mass, S += u.mass;
  15106. }), this.barycenter = { x: v, y: d, xFactor: v / S, yFactor: d / S };
  15107. },
  15108. barnesHutApproximation: function(S, v) {
  15109. var d = this.getDistXY(S, v), u = this.vectorLength(d);
  15110. if (S !== v && u !== 0)
  15111. if (v.isInternal)
  15112. if (v.boxSize / u < this.options.theta && u !== 0) {
  15113. var P = this.repulsiveForce(u, this.k);
  15114. this.force("repulsive", S, P * v.mass, d, u);
  15115. var O = !1;
  15116. } else
  15117. O = !0;
  15118. else
  15119. P = this.repulsiveForce(u, this.k), this.force("repulsive", S, P * v.mass, d, u);
  15120. return O;
  15121. },
  15122. repulsiveForces: function() {
  15123. var S = this;
  15124. S.approximation === "barnes-hut" ? S.nodes.forEach(function(v) {
  15125. S.quadTree.visitNodeRecursive(
  15126. null,
  15127. function(d) {
  15128. return S.barnesHutApproximation(v, d);
  15129. }
  15130. );
  15131. }) : S.nodes.forEach(function(v) {
  15132. S.nodes.forEach(function(d) {
  15133. if (v !== d && !v.fixedPosition) {
  15134. var u = S.getDistXY(v, d), P = S.vectorLength(u);
  15135. if (P !== 0) {
  15136. var O = S.repulsiveForce(P, S.k);
  15137. S.force("repulsive", v, O * d.mass, u, P);
  15138. }
  15139. }
  15140. });
  15141. });
  15142. },
  15143. attractiveForces: function() {
  15144. var S = this, v, d, u;
  15145. S.links.forEach(function(P) {
  15146. P.fromNode && P.toNode && (v = S.getDistXY(P.fromNode, P.toNode), d = S.vectorLength(v), d !== 0 && (u = S.attractiveForce(d, S.k), S.force("attractive", P, u, v, d)));
  15147. });
  15148. },
  15149. applyLimits: function() {
  15150. var S = this;
  15151. S.nodes.forEach(function(v) {
  15152. v.fixedPosition || (S.integration.integrate(S, v), S.applyLimitBox(v, S.box), v.dispX = 0, v.dispY = 0);
  15153. });
  15154. },
  15155. applyLimitBox: function(S, v) {
  15156. var d = S.radius;
  15157. S.plotX = F(S.plotX, v.left + d, v.width - d), S.plotY = F(S.plotY, v.top + d, v.height - d);
  15158. },
  15159. coolDown: function(S, v, d) {
  15160. return S - v * d;
  15161. },
  15162. isStable: function() {
  15163. return 1e-5 > Math.abs(this.systemTemperature - this.prevSystemTemperature) || 0 >= this.temperature;
  15164. },
  15165. getSystemTemperature: function() {
  15166. return this.nodes.reduce(function(S, v) {
  15167. return S + v.temperature;
  15168. }, 0);
  15169. },
  15170. vectorLength: function(S) {
  15171. return Math.sqrt(S.x * S.x + S.y * S.y);
  15172. },
  15173. getDistR: function(S, v) {
  15174. return S = this.getDistXY(S, v), this.vectorLength(S);
  15175. },
  15176. getDistXY: function(S, v) {
  15177. var d = S.plotX - v.plotX;
  15178. return S = S.plotY - v.plotY, { x: d, y: S, absX: Math.abs(d), absY: Math.abs(S) };
  15179. }
  15180. }), y(h, "predraw", function() {
  15181. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(S) {
  15182. S.stop();
  15183. });
  15184. }), y(h, "render", function() {
  15185. function S(u) {
  15186. u.maxIterations-- && isFinite(u.temperature) && !u.isStable() && !u.enableSimulation && (u.beforeStep && u.beforeStep(), u.step(), d = !1, v = !0);
  15187. }
  15188. var v = !1;
  15189. if (this.graphLayoutsLookup) {
  15190. for (Z(!1, this), this.graphLayoutsLookup.forEach(function(u) {
  15191. u.start();
  15192. }); !d; ) {
  15193. var d = !0;
  15194. this.graphLayoutsLookup.forEach(S);
  15195. }
  15196. v && this.series.forEach(function(u) {
  15197. u && u.layout && u.render();
  15198. });
  15199. }
  15200. }), y(h, "beforePrint", function() {
  15201. this.graphLayoutsLookup && (this.graphLayoutsLookup.forEach(function(S) {
  15202. S.updateSimulation(!1);
  15203. }), this.redraw());
  15204. }), y(h, "afterPrint", function() {
  15205. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(S) {
  15206. S.updateSimulation();
  15207. }), this.redraw();
  15208. });
  15209. }), E(f, "Series/PackedBubble/PackedBubbleComposition.js", [f["Core/Chart/Chart.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(h, y, j) {
  15210. var I = y.layouts["reingold-fruchterman"], Z = j.addEvent, F = j.extendClass, U = j.pick;
  15211. h.prototype.getSelectedParentNodes = function() {
  15212. var H = [];
  15213. return this.series.forEach(function(W) {
  15214. W.parentNode && W.parentNode.selected && H.push(W.parentNode);
  15215. }), H;
  15216. }, y.networkgraphIntegrations.packedbubble = { repulsiveForceFunction: function(H, W, R, S) {
  15217. return Math.min(H, (R.marker.radius + S.marker.radius) / 2);
  15218. }, barycenter: function() {
  15219. var H = this, W = H.options.gravitationalConstant, R = H.box, S = H.nodes, v, d;
  15220. S.forEach(function(u) {
  15221. H.options.splitSeries && !u.isParentNode ? (v = u.series.parentNode.plotX, d = u.series.parentNode.plotY) : (v = R.width / 2, d = R.height / 2), u.fixedPosition || (u.plotX -= (u.plotX - v) * W / (u.mass * Math.sqrt(S.length)), u.plotY -= (u.plotY - d) * W / (u.mass * Math.sqrt(S.length)));
  15222. });
  15223. }, repulsive: function(H, W, R, S) {
  15224. var v = W * this.diffTemperature / H.mass / H.degree;
  15225. W = R.x * v, R = R.y * v, H.fixedPosition || (H.plotX += W, H.plotY += R), S.fixedPosition || (S.plotX -= W, S.plotY -= R);
  15226. }, integrate: y.networkgraphIntegrations.verlet.integrate, getK: y.noop }, y.layouts.packedbubble = F(I, { beforeStep: function() {
  15227. this.options.marker && this.series.forEach(function(H) {
  15228. H && H.calculateParentRadius();
  15229. });
  15230. }, isStable: function() {
  15231. var H = Math.abs(this.prevSystemTemperature - this.systemTemperature);
  15232. return 1 > Math.abs(10 * this.systemTemperature / Math.sqrt(this.nodes.length)) && 1e-5 > H || 0 >= this.temperature;
  15233. }, setCircularPositions: function() {
  15234. var H = this, W = H.box, R = H.nodes, S = 2 * Math.PI / (R.length + 1), v, d, u = H.options.initialPositionRadius;
  15235. R.forEach(function(P, O) {
  15236. H.options.splitSeries && !P.isParentNode ? (v = P.series.parentNode.plotX, d = P.series.parentNode.plotY) : (v = W.width / 2, d = W.height / 2), P.plotX = P.prevX = U(P.plotX, v + u * Math.cos(P.index || O * S)), P.plotY = P.prevY = U(P.plotY, d + u * Math.sin(P.index || O * S)), P.dispX = 0, P.dispY = 0;
  15237. });
  15238. }, repulsiveForces: function() {
  15239. var H = this, W, R, S, v = H.options.bubblePadding;
  15240. H.nodes.forEach(function(d) {
  15241. d.degree = d.mass, d.neighbours = 0, H.nodes.forEach(function(u) {
  15242. W = 0, d === u || d.fixedPosition || !H.options.seriesInteraction && d.series !== u.series || (S = H.getDistXY(d, u), R = H.vectorLength(S) - (d.marker.radius + u.marker.radius + v), 0 > R && (d.degree += 0.01, d.neighbours++, W = H.repulsiveForce(-R / Math.sqrt(d.neighbours), H.k, d, u)), H.force("repulsive", d, W * u.mass, S, u, R));
  15243. });
  15244. });
  15245. }, applyLimitBox: function(H) {
  15246. if (this.options.splitSeries && !H.isParentNode && this.options.parentNodeLimit) {
  15247. var W = this.getDistXY(H, H.series.parentNode), R = H.series.parentNodeRadius - H.marker.radius - this.vectorLength(W);
  15248. 0 > R && R > -2 * H.marker.radius && (H.plotX -= 0.01 * W.x, H.plotY -= 0.01 * W.y);
  15249. }
  15250. I.prototype.applyLimitBox.apply(this, arguments);
  15251. } }), Z(h, "beforeRedraw", function() {
  15252. this.allDataPoints && delete this.allDataPoints;
  15253. });
  15254. }), E(f, "Series/PackedBubble/PackedBubbleSeries.js", [f["Core/Color/Color.js"], f["Core/Globals.js"], f["Series/PackedBubble/PackedBubblePoint.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y, j, I, Z) {
  15255. var F = this && this.__extends || function() {
  15256. var w = function(x, a) {
  15257. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
  15258. c.__proto__ = p;
  15259. } || function(c, p) {
  15260. for (var i in p)
  15261. p.hasOwnProperty(i) && (c[i] = p[i]);
  15262. }, w(x, a);
  15263. };
  15264. return function(x, a) {
  15265. function c() {
  15266. this.constructor = x;
  15267. }
  15268. w(x, a), x.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c());
  15269. };
  15270. }(), U = h.parse, H = I.series, W = I.seriesTypes.bubble, R = Z.addEvent, S = Z.clamp, v = Z.defined, d = Z.extend, u = Z.fireEvent, P = Z.isArray, O = Z.isNumber, N = Z.merge, C = Z.pick, b = y.dragNodesMixin;
  15271. return h = function(w) {
  15272. function x() {
  15273. var a = w !== null && w.apply(this, arguments) || this;
  15274. return a.chart = void 0, a.data = void 0, a.layout = void 0, a.options = void 0, a.points = void 0, a.xData = void 0, a;
  15275. }
  15276. return F(x, w), x.prototype.accumulateAllPoints = function(a) {
  15277. var c = a.chart, p = [], i, l;
  15278. for (i = 0; i < c.series.length; i++)
  15279. if (a = c.series[i], a.is("packedbubble") && a.visible || !c.options.chart.ignoreHiddenSeries)
  15280. for (l = 0; l < a.yData.length; l++)
  15281. p.push([null, null, a.yData[l], a.index, l, { id: l, marker: { radius: 0 } }]);
  15282. return p;
  15283. }, x.prototype.addLayout = function() {
  15284. var a = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, p = this.chart.graphLayoutsLookup, i = this.chart.options.chart;
  15285. c || (this.chart.graphLayoutsStorage = c = {}, this.chart.graphLayoutsLookup = p = []);
  15286. var l = c[a.type];
  15287. l || (a.enableSimulation = v(i.forExport) ? !i.forExport : a.enableSimulation, c[a.type] = l = new y.layouts[a.type](), l.init(a), p.splice(l.index, 0, l)), this.layout = l, this.points.forEach(function(s) {
  15288. s.mass = 2, s.degree = 1, s.collisionNmb = 1;
  15289. }), l.setArea(0, 0, this.chart.plotWidth, this.chart.plotHeight), l.addElementsToCollection([this], l.series), l.addElementsToCollection(this.points, l.nodes);
  15290. }, x.prototype.addSeriesLayout = function() {
  15291. var a = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, p = this.chart.graphLayoutsLookup, i = N(a, a.parentNodeOptions, { enableSimulation: this.layout.options.enableSimulation }), l = c[a.type + "-series"];
  15292. l || (c[a.type + "-series"] = l = new y.layouts[a.type](), l.init(i), p.splice(l.index, 0, l)), this.parentNodeLayout = l, this.createParentNodes();
  15293. }, x.prototype.calculateParentRadius = function() {
  15294. var a = this.seriesBox();
  15295. this.parentNodeRadius = S(Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20, 20, a ? Math.max(Math.sqrt(Math.pow(
  15296. a.width,
  15297. 2
  15298. ) + Math.pow(a.height, 2)) / 2 + 20, 20) : Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20), this.parentNode && (this.parentNode.marker.radius = this.parentNode.radius = this.parentNodeRadius);
  15299. }, x.prototype.calculateZExtremes = function() {
  15300. var a = this.options.zMin, c = this.options.zMax, p = 1 / 0, i = -1 / 0;
  15301. return a && c ? [a, c] : (this.chart.series.forEach(function(l) {
  15302. l.yData.forEach(function(s) {
  15303. v(s) && (s > i && (i = s), s < p && (p = s));
  15304. });
  15305. }), a = C(a, p), c = C(c, i), [a, c]);
  15306. }, x.prototype.checkOverlap = function(a, c) {
  15307. var p = a[0] - c[0], i = a[1] - c[1];
  15308. return -1e-3 > Math.sqrt(p * p + i * i) - Math.abs(a[2] + c[2]);
  15309. }, x.prototype.createParentNodes = function() {
  15310. var a = this, c = a.chart, p = a.parentNodeLayout, i, l = a.parentNode, s = a.pointClass, t = a.layout.options, o = { radius: a.parentNodeRadius, lineColor: a.color, fillColor: U(a.color).brighten(0.4).get() };
  15311. t.parentNodeOptions && (o = N(t.parentNodeOptions.marker || {}, o)), a.parentNodeMass = 0, a.points.forEach(function(n) {
  15312. a.parentNodeMass += Math.PI * Math.pow(n.marker.radius, 2);
  15313. }), a.calculateParentRadius(), p.nodes.forEach(function(n) {
  15314. n.seriesIndex === a.index && (i = !0);
  15315. }), p.setArea(0, 0, c.plotWidth, c.plotHeight), i || (l || (l = new s().init(this, { mass: a.parentNodeRadius / 2, marker: o, dataLabels: { inside: !1 }, states: { normal: { marker: o }, hover: { marker: o } }, dataLabelOnNull: !0, degree: a.parentNodeRadius, isParentNode: !0, seriesIndex: a.index })), a.parentNode && (l.plotX = a.parentNode.plotX, l.plotY = a.parentNode.plotY), a.parentNode = l, p.addElementsToCollection([a], p.series), p.addElementsToCollection([l], p.nodes));
  15316. }, x.prototype.deferLayout = function() {
  15317. var a = this.options.layoutAlgorithm;
  15318. this.visible && (this.addLayout(), a.splitSeries && this.addSeriesLayout());
  15319. }, x.prototype.destroy = function() {
  15320. this.chart.graphLayoutsLookup && this.chart.graphLayoutsLookup.forEach(function(a) {
  15321. a.removeElementFromCollection(this, a.series);
  15322. }, this), this.parentNode && this.parentNodeLayout && (this.parentNodeLayout.removeElementFromCollection(this.parentNode, this.parentNodeLayout.nodes), this.parentNode.dataLabel && (this.parentNode.dataLabel = this.parentNode.dataLabel.destroy())), H.prototype.destroy.apply(this, arguments);
  15323. }, x.prototype.drawDataLabels = function() {
  15324. var a = this.options.dataLabels.textPath, c = this.points;
  15325. H.prototype.drawDataLabels.apply(this, arguments), this.parentNode && (this.parentNode.formatPrefix = "parentNode", this.points = [this.parentNode], this.options.dataLabels.textPath = this.options.dataLabels.parentNodeTextPath, H.prototype.drawDataLabels.apply(this, arguments), this.points = c, this.options.dataLabels.textPath = a);
  15326. }, x.prototype.drawGraph = function() {
  15327. if (this.layout && this.layout.options.splitSeries) {
  15328. var a = this.chart, c = this.layout.options.parentNodeOptions.marker, p = { fill: c.fillColor || U(this.color).brighten(0.4).get(), opacity: c.fillOpacity, stroke: c.lineColor || this.color, "stroke-width": C(c.lineWidth, this.options.lineWidth) };
  15329. this.parentNodesGroup || (this.parentNodesGroup = this.plotGroup("parentNodesGroup", "parentNode", this.visible ? "inherit" : "hidden", 0.1, a.seriesGroup), this.group.attr({ zIndex: 2 })), this.calculateParentRadius(), c = N({
  15330. x: this.parentNode.plotX - this.parentNodeRadius,
  15331. y: this.parentNode.plotY - this.parentNodeRadius,
  15332. width: 2 * this.parentNodeRadius,
  15333. height: 2 * this.parentNodeRadius
  15334. }, p), this.parentNode.graphic || (this.graph = this.parentNode.graphic = a.renderer.symbol(p.symbol).add(this.parentNodesGroup)), this.parentNode.graphic.attr(c);
  15335. }
  15336. }, x.prototype.drawTracker = function() {
  15337. var a = this.parentNode;
  15338. if (w.prototype.drawTracker.call(this), a) {
  15339. var c = P(a.dataLabels) ? a.dataLabels : a.dataLabel ? [a.dataLabel] : [];
  15340. a.graphic && (a.graphic.element.point = a), c.forEach(function(p) {
  15341. p.div ? p.div.point = a : p.element.point = a;
  15342. });
  15343. }
  15344. }, x.prototype.getPointRadius = function() {
  15345. var a = this, c = a.chart, p = a.options, i = p.useSimulation, l = Math.min(c.plotWidth, c.plotHeight), s = {}, t = [], o = c.allDataPoints, n, A, _, D;
  15346. ["minSize", "maxSize"].forEach(function(T) {
  15347. var X = parseInt(p[T], 10), g = /%$/.test(p[T]);
  15348. s[T] = g ? l * X / 100 : X * Math.sqrt(o.length);
  15349. }), c.minRadius = n = s.minSize / Math.sqrt(o.length), c.maxRadius = A = s.maxSize / Math.sqrt(o.length);
  15350. var B = i ? a.calculateZExtremes() : [n, A];
  15351. (o || []).forEach(function(T, X) {
  15352. _ = i ? S(T[2], B[0], B[1]) : T[2], D = a.getRadius(B[0], B[1], n, A, _), D === 0 && (D = null), o[X][2] = D, t.push(D);
  15353. }), a.radii = t;
  15354. }, x.prototype.init = function() {
  15355. return H.prototype.init.apply(this, arguments), this.eventsToUnbind.push(R(this, "updatedData", function() {
  15356. this.chart.series.forEach(function(a) {
  15357. a.type === this.type && (a.isDirty = !0);
  15358. }, this);
  15359. })), this;
  15360. }, x.prototype.onMouseUp = function(a) {
  15361. if (a.fixedPosition && !a.removed) {
  15362. var c, p, i = this.layout, l = this.parentNodeLayout;
  15363. l && i.options.dragBetweenSeries && l.nodes.forEach(function(s) {
  15364. a && a.marker && s !== a.series.parentNode && (c = i.getDistXY(a, s), p = i.vectorLength(c) - s.marker.radius - a.marker.radius, 0 > p && (s.series.addPoint(N(a.options, { plotX: a.plotX, plotY: a.plotY }), !1), i.removeElementFromCollection(a, i.nodes), a.remove()));
  15365. }), b.onMouseUp.apply(this, arguments);
  15366. }
  15367. }, x.prototype.placeBubbles = function(a) {
  15368. var c = this.checkOverlap, p = this.positionBubble, i = [], l = 1, s = 0, t = 0, o = [], n;
  15369. if (a = a.sort(function(A, _) {
  15370. return _[2] - A[2];
  15371. }), a.length) {
  15372. if (i.push([[0, 0, a[0][2], a[0][3], a[0][4]]]), 1 < a.length)
  15373. for (i.push([[0, 0 - a[1][2] - a[0][2], a[1][2], a[1][3], a[1][4]]]), n = 2; n < a.length; n++)
  15374. a[n][2] = a[n][2] || 1, o = p(i[l][s], i[l - 1][t], a[n]), c(o, i[l][0]) ? (i.push([]), t = 0, i[l + 1].push(p(i[l][s], i[l][0], a[n])), l++, s = 0) : 1 < l && i[l - 1][t + 1] && c(o, i[l - 1][t + 1]) ? (t++, i[l].push(p(i[l][s], i[l - 1][t], a[n])), s++) : (s++, i[l].push(o));
  15375. this.chart.stages = i, this.chart.rawPositions = [].concat.apply([], i), this.resizeRadius(), o = this.chart.rawPositions;
  15376. }
  15377. return o;
  15378. }, x.prototype.pointAttribs = function(a, c) {
  15379. var p = this.options, i = p.marker;
  15380. return a && a.isParentNode && p.layoutAlgorithm && p.layoutAlgorithm.parentNodeOptions && (i = p.layoutAlgorithm.parentNodeOptions.marker), p = i.fillOpacity, a = H.prototype.pointAttribs.call(this, a, c), p !== 1 && (a["fill-opacity"] = p), a;
  15381. }, x.prototype.positionBubble = function(a, c, p) {
  15382. var i = Math.sqrt, l = Math.asin, s = Math.acos, t = Math.pow, o = Math.abs;
  15383. return i = i(t(a[0] - c[0], 2) + t(a[1] - c[1], 2)), s = s((t(i, 2) + t(p[2] + c[2], 2) - t(p[2] + a[2], 2)) / (2 * (p[2] + c[2]) * i)), l = l(o(a[0] - c[0]) / i), a = (0 > a[1] - c[1] ? 0 : Math.PI) + s + l * (0 > (a[0] - c[0]) * (a[1] - c[1]) ? 1 : -1), [c[0] + (c[2] + p[2]) * Math.sin(a), c[1] - (c[2] + p[2]) * Math.cos(a), p[2], p[3], p[4]];
  15384. }, x.prototype.render = function() {
  15385. var a = [];
  15386. H.prototype.render.apply(this, arguments), this.options.dataLabels.allowOverlap || (this.data.forEach(function(c) {
  15387. P(c.dataLabels) && c.dataLabels.forEach(function(p) {
  15388. a.push(p);
  15389. });
  15390. }), this.options.useSimulation && this.chart.hideOverlappingLabels(a));
  15391. }, x.prototype.resizeRadius = function() {
  15392. var a = this.chart, c = a.rawPositions, p = Math.min, i = Math.max, l = a.plotLeft, s = a.plotTop, t = a.plotHeight, o = a.plotWidth, n, A, _, D = n = Number.POSITIVE_INFINITY, B = A = Number.NEGATIVE_INFINITY;
  15393. for (_ = 0; _ < c.length; _++) {
  15394. var T = c[_][2];
  15395. D = p(
  15396. D,
  15397. c[_][0] - T
  15398. ), B = i(B, c[_][0] + T), n = p(n, c[_][1] - T), A = i(A, c[_][1] + T);
  15399. }
  15400. if (_ = [B - D, A - n], p = p.apply([], [(o - l) / _[0], (t - s) / _[1]]), 1e-10 < Math.abs(p - 1)) {
  15401. for (_ = 0; _ < c.length; _++)
  15402. c[_][2] *= p;
  15403. this.placeBubbles(c);
  15404. } else
  15405. a.diffY = t / 2 + s - n - (A - n) / 2, a.diffX = o / 2 + l - D - (B - D) / 2;
  15406. }, x.prototype.seriesBox = function() {
  15407. var a = this.chart, c = Math.max, p = Math.min, i, l = [a.plotLeft, a.plotLeft + a.plotWidth, a.plotTop, a.plotTop + a.plotHeight];
  15408. return this.data.forEach(function(s) {
  15409. v(s.plotX) && v(s.plotY) && s.marker.radius && (i = s.marker.radius, l[0] = p(l[0], s.plotX - i), l[1] = c(l[1], s.plotX + i), l[2] = p(l[2], s.plotY - i), l[3] = c(l[3], s.plotY + i));
  15410. }), O(l.width / l.height) ? l : null;
  15411. }, x.prototype.setVisible = function() {
  15412. var a = this;
  15413. H.prototype.setVisible.apply(a, arguments), a.parentNodeLayout && a.graph ? a.visible ? (a.graph.show(), a.parentNode.dataLabel && a.parentNode.dataLabel.show()) : (a.graph.hide(), a.parentNodeLayout.removeElementFromCollection(a.parentNode, a.parentNodeLayout.nodes), a.parentNode.dataLabel && a.parentNode.dataLabel.hide()) : a.layout && (a.visible ? a.layout.addElementsToCollection(
  15414. a.points,
  15415. a.layout.nodes
  15416. ) : a.points.forEach(function(c) {
  15417. a.layout.removeElementFromCollection(c, a.layout.nodes);
  15418. }));
  15419. }, x.prototype.translate = function() {
  15420. var a = this.chart, c = this.data, p = this.index, i, l = this.options.useSimulation;
  15421. if (this.processedXData = this.xData, this.generatePoints(), v(a.allDataPoints) || (a.allDataPoints = this.accumulateAllPoints(this), this.getPointRadius()), l)
  15422. var s = a.allDataPoints;
  15423. else
  15424. s = this.placeBubbles(a.allDataPoints), this.options.draggable = !1;
  15425. for (i = 0; i < s.length; i++)
  15426. if (s[i][3] === p) {
  15427. var t = c[s[i][4]], o = C(s[i][2], void 0);
  15428. l || (t.plotX = s[i][0] - a.plotLeft + a.diffX, t.plotY = s[i][1] - a.plotTop + a.diffY), O(o) && (t.marker = d(t.marker, { radius: o, width: 2 * o, height: 2 * o }), t.radius = o);
  15429. }
  15430. l && this.deferLayout(), u(this, "afterTranslate");
  15431. }, x.defaultOptions = N(W.defaultOptions, { minSize: "10%", maxSize: "50%", sizeBy: "area", zoneAxis: "y", crisp: !1, tooltip: { pointFormat: "Value: {point.value}" }, draggable: !0, useSimulation: !0, parentNode: { allowPointSelect: !1 }, dataLabels: { formatter: function() {
  15432. var a = this.series.chart.numberFormatter, c = this.point.value;
  15433. return O(c) ? a(c, -1) : "";
  15434. }, parentNodeFormatter: function() {
  15435. return this.name;
  15436. }, parentNodeTextPath: { enabled: !0 }, padding: 0, style: { transition: "opacity 2000ms" } }, layoutAlgorithm: { initialPositions: "circle", initialPositionRadius: 20, bubblePadding: 5, parentNodeLimit: !1, seriesInteraction: !0, dragBetweenSeries: !1, parentNodeOptions: { maxIterations: 400, gravitationalConstant: 0.03, maxSpeed: 50, initialPositionRadius: 100, seriesInteraction: !0, marker: {
  15437. fillColor: null,
  15438. fillOpacity: 1,
  15439. lineWidth: null,
  15440. lineColor: null,
  15441. symbol: "circle"
  15442. } }, enableSimulation: !0, type: "packedbubble", integration: "packedbubble", maxIterations: 1e3, splitSeries: !1, maxSpeed: 5, gravitationalConstant: 0.01, friction: -0.981 } }), x;
  15443. }(W), d(h.prototype, {
  15444. alignDataLabel: H.prototype.alignDataLabel,
  15445. axisTypes: [],
  15446. directTouch: !0,
  15447. forces: ["barycenter", "repulsive"],
  15448. hasDraggableNodes: !0,
  15449. isCartesian: !1,
  15450. noSharedTooltip: !0,
  15451. onMouseDown: b.onMouseDown,
  15452. onMouseMove: b.onMouseMove,
  15453. pointArrayMap: ["value"],
  15454. pointClass: j,
  15455. pointValKey: "value",
  15456. redrawHalo: b.redrawHalo,
  15457. requireSorting: !1,
  15458. searchPoint: y.noop,
  15459. trackerGroups: ["group", "dataLabelsGroup", "parentNodesGroup"]
  15460. }), I.registerSeriesType("packedbubble", h), h;
  15461. }), E(f, "Series/Polygon/PolygonSeries.js", [f["Core/Globals.js"], f["Core/Legend/LegendSymbol.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  15462. var Z = this && this.__extends || function() {
  15463. var v = function(d, u) {
  15464. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  15465. P.__proto__ = O;
  15466. } || function(P, O) {
  15467. for (var N in O)
  15468. O.hasOwnProperty(N) && (P[N] = O[N]);
  15469. }, v(d, u);
  15470. };
  15471. return function(d, u) {
  15472. function P() {
  15473. this.constructor = d;
  15474. }
  15475. v(d, u), d.prototype = u === null ? Object.create(u) : (P.prototype = u.prototype, new P());
  15476. };
  15477. }();
  15478. h = h.noop;
  15479. var F = j.series, U = j.seriesTypes, H = U.area, W = U.line, R = U.scatter;
  15480. U = I.extend;
  15481. var S = I.merge;
  15482. return I = function(v) {
  15483. function d() {
  15484. var u = v !== null && v.apply(this, arguments) || this;
  15485. return u.data = void 0, u.options = void 0, u.points = void 0, u;
  15486. }
  15487. return Z(d, v), d.prototype.getGraphPath = function() {
  15488. for (var u = W.prototype.getGraphPath.call(this), P = u.length + 1; P--; )
  15489. (P === u.length || u[P][0] === "M") && 0 < P && u.splice(P, 0, ["Z"]);
  15490. return this.areaPath = u;
  15491. }, d.prototype.drawGraph = function() {
  15492. this.options.fillColor = this.color, H.prototype.drawGraph.call(this);
  15493. }, d.defaultOptions = S(R.defaultOptions, { marker: { enabled: !1, states: { hover: { enabled: !1 } } }, stickyTracking: !1, tooltip: { followPointer: !0, pointFormat: "" }, trackByArea: !0 }), d;
  15494. }(R), U(I.prototype, { type: "polygon", drawLegendSymbol: y.drawRectangle, drawTracker: F.prototype.drawTracker, setStackedPoints: h }), j.registerSeriesType("polygon", I), I;
  15495. }), E(f, "Core/Axis/WaterfallAxis.js", [f["Extensions/Stacking.js"], f["Core/Utilities.js"]], function(h, y) {
  15496. var j = y.addEvent, I = y.objectEach, Z;
  15497. return function(F) {
  15498. function U() {
  15499. var v = this.waterfall.stacks;
  15500. v && (v.changed = !1, delete v.alreadyChanged);
  15501. }
  15502. function H() {
  15503. var v = this.options.stackLabels;
  15504. v && v.enabled && this.waterfall.stacks && this.waterfall.renderStackTotals();
  15505. }
  15506. function W() {
  15507. for (var v = this.axes, d = this.series, u = d.length; u--; )
  15508. d[u].options.stacking && (v.forEach(function(P) {
  15509. P.isXAxis || (P.waterfall.stacks.changed = !0);
  15510. }), u = 0);
  15511. }
  15512. function R() {
  15513. this.waterfall || (this.waterfall = new S(this));
  15514. }
  15515. var S = function() {
  15516. function v(d) {
  15517. this.axis = d, this.stacks = { changed: !1 };
  15518. }
  15519. return v.prototype.renderStackTotals = function() {
  15520. var d = this.axis, u = d.waterfall.stacks, P = d.stacking && d.stacking.stackTotalGroup, O = new h(d, d.options.stackLabels, !1, 0, void 0);
  15521. this.dummyStackItem = O, I(u, function(N) {
  15522. I(N, function(C) {
  15523. O.total = C.stackTotal, C.label && (O.label = C.label), h.prototype.render.call(O, P), C.label = O.label, delete O.label;
  15524. });
  15525. }), O.total = null;
  15526. }, v;
  15527. }();
  15528. F.Composition = S, F.compose = function(v, d) {
  15529. j(v, "init", R), j(v, "afterBuildStacks", U), j(v, "afterRender", H), j(d, "beforeRedraw", W);
  15530. };
  15531. }(Z || (Z = {})), Z;
  15532. }), E(f, "Series/Waterfall/WaterfallPoint.js", [f["Series/Column/ColumnSeries.js"], f["Core/Series/Point.js"], f["Core/Utilities.js"]], function(h, y, j) {
  15533. var I = this && this.__extends || function() {
  15534. var F = function(U, H) {
  15535. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(W, R) {
  15536. W.__proto__ = R;
  15537. } || function(W, R) {
  15538. for (var S in R)
  15539. R.hasOwnProperty(S) && (W[S] = R[S]);
  15540. }, F(U, H);
  15541. };
  15542. return function(U, H) {
  15543. function W() {
  15544. this.constructor = U;
  15545. }
  15546. F(U, H), U.prototype = H === null ? Object.create(H) : (W.prototype = H.prototype, new W());
  15547. };
  15548. }(), Z = j.isNumber;
  15549. return function(F) {
  15550. function U() {
  15551. var H = F !== null && F.apply(this, arguments) || this;
  15552. return H.options = void 0, H.series = void 0, H;
  15553. }
  15554. return I(U, F), U.prototype.getClassName = function() {
  15555. var H = y.prototype.getClassName.call(this);
  15556. return this.isSum ? H += " highcharts-sum" : this.isIntermediateSum && (H += " highcharts-intermediate-sum"), H;
  15557. }, U.prototype.isValid = function() {
  15558. return Z(this.y) || this.isSum || !!this.isIntermediateSum;
  15559. }, U;
  15560. }(h.prototype.pointClass);
  15561. }), E(f, "Series/Waterfall/WaterfallSeries.js", [f["Core/Axis/Axis.js"], f["Core/Chart/Chart.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"], f["Core/Axis/WaterfallAxis.js"], f["Series/Waterfall/WaterfallPoint.js"]], function(h, y, j, I, Z, F) {
  15562. var U = this && this.__extends || function() {
  15563. var C = function(b, w) {
  15564. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  15565. x.__proto__ = a;
  15566. } || function(x, a) {
  15567. for (var c in a)
  15568. a.hasOwnProperty(c) && (x[c] = a[c]);
  15569. }, C(b, w);
  15570. };
  15571. return function(b, w) {
  15572. function x() {
  15573. this.constructor = b;
  15574. }
  15575. C(b, w), b.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  15576. };
  15577. }(), H = j.seriesTypes, W = H.column, R = H.line, S = I.arrayMax, v = I.arrayMin, d = I.correctFloat;
  15578. H = I.extend;
  15579. var u = I.isNumber, P = I.merge, O = I.objectEach, N = I.pick;
  15580. return I = function(C) {
  15581. function b() {
  15582. var w = C !== null && C.apply(this, arguments) || this;
  15583. return w.chart = void 0, w.data = void 0, w.options = void 0, w.points = void 0, w.stackedYNeg = void 0, w.stackedYPos = void 0, w.stackKey = void 0, w.xData = void 0, w.yAxis = void 0, w.yData = void 0, w;
  15584. }
  15585. return U(b, C), b.prototype.generatePoints = function() {
  15586. var w;
  15587. W.prototype.generatePoints.apply(this);
  15588. var x = 0;
  15589. for (w = this.points.length; x < w; x++) {
  15590. var a = this.points[x], c = this.processedYData[x];
  15591. (a.isIntermediateSum || a.isSum) && (a.y = d(c));
  15592. }
  15593. }, b.prototype.translate = function() {
  15594. var w = this.options, x = this.yAxis, a = N(w.minPointLength, 5), c = a / 2, p = w.threshold || 0, i = p, l = p;
  15595. w = w.stacking;
  15596. var s = x.waterfall.stacks[this.stackKey];
  15597. W.prototype.translate.apply(this);
  15598. for (var t = this.points, o = 0; o < t.length; o++) {
  15599. var n = t[o], A = this.processedYData[o], _ = n.shapeArgs;
  15600. if (_ && u(A)) {
  15601. var D = [0, A], B = n.y;
  15602. if (w) {
  15603. if (s) {
  15604. if (D = s[o], w === "overlap") {
  15605. var T = D.stackState[D.stateIndex--];
  15606. T = 0 <= B ? T : T - B, Object.hasOwnProperty.call(D, "absolutePos") && delete D.absolutePos, Object.hasOwnProperty.call(D, "absoluteNeg") && delete D.absoluteNeg;
  15607. } else
  15608. 0 <= B ? (T = D.threshold + D.posTotal, D.posTotal -= B) : (T = D.threshold + D.negTotal, D.negTotal -= B, T -= B), !D.posTotal && Object.hasOwnProperty.call(D, "absolutePos") && (D.posTotal = D.absolutePos, delete D.absolutePos), !D.negTotal && Object.hasOwnProperty.call(D, "absoluteNeg") && (D.negTotal = D.absoluteNeg, delete D.absoluteNeg);
  15609. n.isSum || (D.connectorThreshold = D.threshold + D.stackTotal), x.reversed ? (A = 0 <= B ? T - B : T + B, B = T) : (A = T, B = T - B), n.below = A <= p, _.y = x.translate(A, !1, !0, !1, !0) || 0, _.height = Math.abs(_.y - (x.translate(B, !1, !0, !1, !0) || 0)), (B = x.waterfall.dummyStackItem) && (B.x = o, B.label = s[o].label, B.setOffset(this.pointXOffset || 0, this.barW || 0, this.stackedYNeg[o], this.stackedYPos[o]));
  15610. }
  15611. } else
  15612. T = Math.max(i, i + B) + D[0], _.y = x.translate(
  15613. T,
  15614. !1,
  15615. !0,
  15616. !1,
  15617. !0
  15618. ) || 0, n.isSum ? (_.y = x.translate(D[1], !1, !0, !1, !0) || 0, _.height = Math.min(x.translate(D[0], !1, !0, !1, !0) || 0, x.len) - _.y, n.below = D[1] <= p) : n.isIntermediateSum ? (0 <= B ? (A = D[1] + l, B = l) : (A = l, B = D[1] + l), x.reversed && (A ^= B, B ^= A, A ^= B), _.y = x.translate(A, !1, !0, !1, !0) || 0, _.height = Math.abs(_.y - Math.min(x.translate(B, !1, !0, !1, !0) || 0, x.len)), l += D[1], n.below = A <= p) : (_.height = 0 < A ? (x.translate(i, !1, !0, !1, !0) || 0) - _.y : (x.translate(i, !1, !0, !1, !0) || 0) - (x.translate(i - A, !1, !0, !1, !0) || 0), i += A, n.below = i < p), 0 > _.height && (_.y += _.height, _.height *= -1);
  15619. n.plotY = _.y = Math.round(_.y || 0) - this.borderWidth % 2 / 2, _.height = Math.max(Math.round(_.height || 0), 1e-3), n.yBottom = _.y + _.height, _.height <= a && !n.isNull ? (_.height = a, _.y -= c, n.plotY = _.y, n.minPointLengthOffset = 0 > n.y ? -c : c) : (n.isNull && (_.width = 0), n.minPointLengthOffset = 0), B = n.plotY + (n.negative ? _.height : 0), n.below && (n.plotY += _.height), n.tooltipPos && (this.chart.inverted ? n.tooltipPos[0] = x.len - B : n.tooltipPos[1] = B);
  15620. }
  15621. }
  15622. }, b.prototype.processData = function(w) {
  15623. var x = this.options, a = this.yData, c = x.data, p = a.length, i = x.threshold || 0, l, s, t, o, n;
  15624. for (n = s = l = t = o = 0; n < p; n++) {
  15625. var A = a[n], _ = c && c[n] ? c[n] : {};
  15626. A === "sum" || _.isSum ? a[n] = d(s) : A === "intermediateSum" || _.isIntermediateSum ? (a[n] = d(l), l = 0) : (s += A, l += A), t = Math.min(s, t), o = Math.max(s, o);
  15627. }
  15628. C.prototype.processData.call(this, w), x.stacking || (this.dataMin = t + i, this.dataMax = o);
  15629. }, b.prototype.toYData = function(w) {
  15630. return w.isSum ? "sum" : w.isIntermediateSum ? "intermediateSum" : w.y;
  15631. }, b.prototype.updateParallelArrays = function(w, x) {
  15632. C.prototype.updateParallelArrays.call(this, w, x), (this.yData[0] === "sum" || this.yData[0] === "intermediateSum") && (this.yData[0] = null);
  15633. }, b.prototype.pointAttribs = function(w, x) {
  15634. var a = this.options.upColor;
  15635. return a && !w.options.color && (w.color = 0 < w.y ? a : null), w = W.prototype.pointAttribs.call(this, w, x), delete w.dashstyle, w;
  15636. }, b.prototype.getGraphPath = function() {
  15637. return [["M", 0, 0]];
  15638. }, b.prototype.getCrispPath = function() {
  15639. var w = this.data, x = this.yAxis, a = w.length, c = Math.round(this.graph.strokeWidth()) % 2 / 2, p = Math.round(this.borderWidth) % 2 / 2, i = this.xAxis.reversed, l = this.yAxis.reversed, s = this.options.stacking, t = [], o;
  15640. for (o = 1; o < a; o++) {
  15641. var n = w[o].shapeArgs, A = w[o - 1], _ = w[o - 1].shapeArgs, D = x.waterfall.stacks[this.stackKey], B = 0 < A.y ? -_.height : 0;
  15642. D && _ && n && (D = D[o - 1], s ? (D = D.connectorThreshold, B = Math.round(x.translate(D, 0, 1, 0, 1) + (l ? B : 0)) - c) : B = _.y + A.minPointLengthOffset + p - c, t.push(["M", (_.x || 0) + (i ? 0 : _.width || 0), B], ["L", (n.x || 0) + (i && n.width || 0), B])), _ && t.length && (!s && 0 > A.y && !l || 0 < A.y && l) && ((A = t[t.length - 2]) && typeof A[2] == "number" && (A[2] += _.height || 0), (A = t[t.length - 1]) && typeof A[2] == "number" && (A[2] += _.height || 0));
  15643. }
  15644. return t;
  15645. }, b.prototype.drawGraph = function() {
  15646. R.prototype.drawGraph.call(this), this.graph.attr({ d: this.getCrispPath() });
  15647. }, b.prototype.setStackedPoints = function() {
  15648. function w(V, Q, k, G) {
  15649. if (Y)
  15650. for (k; k < Y; k++)
  15651. X.stackState[k] += G;
  15652. else
  15653. X.stackState[0] = V, Y = X.stackState.length;
  15654. X.stackState.push(X.stackState[Y - 1] + Q);
  15655. }
  15656. var x = this.options, a = this.yAxis.waterfall.stacks, c = x.threshold, p = c || 0, i = p, l = this.stackKey, s = this.xData, t = s.length, o, n, A;
  15657. this.yAxis.stacking.usePercentage = !1;
  15658. var _ = n = A = p;
  15659. if (this.visible || !this.chart.options.chart.ignoreHiddenSeries) {
  15660. var D = a.changed;
  15661. (o = a.alreadyChanged) && 0 > o.indexOf(l) && (D = !0), a[l] || (a[l] = {}), o = a[l];
  15662. for (var B = 0; B < t; B++) {
  15663. var T = s[B];
  15664. (!o[T] || D) && (o[T] = { negTotal: 0, posTotal: 0, stackTotal: 0, threshold: 0, stateIndex: 0, stackState: [], label: D && o[T] ? o[T].label : void 0 });
  15665. var X = o[T], g = this.yData[B];
  15666. 0 <= g ? X.posTotal += g : X.negTotal += g;
  15667. var m = x.data[B];
  15668. T = X.absolutePos = X.posTotal;
  15669. var L = X.absoluteNeg = X.negTotal;
  15670. X.stackTotal = T + L;
  15671. var Y = X.stackState.length;
  15672. m && m.isIntermediateSum ? (w(A, n, 0, A), A = n, n = c, p ^= i, i ^= p, p ^= i) : m && m.isSum ? (w(c, _, Y), p = c) : (w(p, g, 0, _), m && (_ += g, n += g)), X.stateIndex++, X.threshold = p, p += X.stackTotal;
  15673. }
  15674. a.changed = !1, a.alreadyChanged || (a.alreadyChanged = []), a.alreadyChanged.push(l);
  15675. }
  15676. }, b.prototype.getExtremes = function() {
  15677. var w = this.options.stacking;
  15678. if (w) {
  15679. var x = this.yAxis;
  15680. x = x.waterfall.stacks;
  15681. var a = this.stackedYNeg = [], c = this.stackedYPos = [];
  15682. return w === "overlap" ? O(x[this.stackKey], function(p) {
  15683. a.push(v(p.stackState)), c.push(S(p.stackState));
  15684. }) : O(x[this.stackKey], function(p) {
  15685. a.push(p.negTotal + p.threshold), c.push(p.posTotal + p.threshold);
  15686. }), { dataMin: v(a), dataMax: S(c) };
  15687. }
  15688. return { dataMin: this.dataMin, dataMax: this.dataMax };
  15689. }, b.defaultOptions = P(W.defaultOptions, { dataLabels: { inside: !0 }, lineWidth: 1, lineColor: "#333333", dashStyle: "Dot", borderColor: "#333333", states: { hover: { lineWidthPlus: 0 } } }), b;
  15690. }(W), H(I.prototype, { getZonesGraphs: R.prototype.getZonesGraphs, pointValKey: "y", showLine: !0, pointClass: F }), j.registerSeriesType("waterfall", I), Z.compose(h, y), I;
  15691. }), E(f, "Extensions/Polar.js", [
  15692. f["Core/Animation/AnimationUtilities.js"],
  15693. f["Core/Chart/Chart.js"],
  15694. f["Core/Globals.js"],
  15695. f["Extensions/Pane.js"],
  15696. f["Core/Pointer.js"],
  15697. f["Core/Series/Series.js"],
  15698. f["Core/Series/SeriesRegistry.js"],
  15699. f["Core/Renderer/SVG/SVGRenderer.js"],
  15700. f["Core/Utilities.js"]
  15701. ], function(h, y, j, I, Z, F, U, H, W) {
  15702. var R = h.animObject;
  15703. U = U.seriesTypes;
  15704. var S = W.addEvent, v = W.defined, d = W.find, u = W.isNumber, P = W.pick, O = W.splat, N = W.uniqueKey;
  15705. h = W.wrap;
  15706. var C = F.prototype;
  15707. Z = Z.prototype, C.searchPointByAngle = function(x) {
  15708. var a = this.chart, c = this.xAxis.pane.center;
  15709. return this.searchKDTree({ clientX: 180 + -180 / Math.PI * Math.atan2(x.chartX - c[0] - a.plotLeft, x.chartY - c[1] - a.plotTop) });
  15710. }, C.getConnectors = function(x, a, c, p) {
  15711. var i = p ? 1 : 0, l = 0 <= a && a <= x.length - 1 ? a : 0 > a ? x.length - 1 + a : 0;
  15712. a = 0 > l - 1 ? x.length - (1 + i) : l - 1, i = l + 1 > x.length - 1 ? i : l + 1;
  15713. var s = x[a];
  15714. i = x[i];
  15715. var t = s.plotX;
  15716. s = s.plotY;
  15717. var o = i.plotX, n = i.plotY;
  15718. i = x[l].plotX, l = x[l].plotY, t = (1.5 * i + t) / 2.5, s = (1.5 * l + s) / 2.5, o = (1.5 * i + o) / 2.5;
  15719. var A = (1.5 * l + n) / 2.5;
  15720. n = Math.sqrt(Math.pow(t - i, 2) + Math.pow(s - l, 2));
  15721. var _ = Math.sqrt(Math.pow(o - i, 2) + Math.pow(A - l, 2));
  15722. return t = Math.atan2(s - l, t - i), A = Math.PI / 2 + (t + Math.atan2(A - l, o - i)) / 2, Math.abs(t - A) > Math.PI / 2 && (A -= Math.PI), t = i + Math.cos(A) * n, s = l + Math.sin(A) * n, o = i + Math.cos(Math.PI + A) * _, A = l + Math.sin(Math.PI + A) * _, i = { rightContX: o, rightContY: A, leftContX: t, leftContY: s, plotX: i, plotY: l }, c && (i.prevPointCont = this.getConnectors(x, a, !1, p)), i;
  15723. }, C.toXY = function(x) {
  15724. var a = this.chart, c = this.xAxis, p = this.yAxis, i = x.plotX, l = x.plotY, s = x.series, t = a.inverted, o = x.y, n = t ? i : p.len - l;
  15725. t && s && !s.isRadialBar && (x.plotY = l = typeof o == "number" && p.translate(o) || 0), x.rectPlotX = i, x.rectPlotY = l, p.center && (n += p.center[3] / 2), u(l) && (p = t ? p.postTranslate(l, n) : c.postTranslate(i, n), x.plotX = x.polarPlotX = p.x - a.plotLeft, x.plotY = x.polarPlotY = p.y - a.plotTop), this.kdByAngle ? (a = (i / Math.PI * 180 + c.pane.options.startAngle) % 360, 0 > a && (a += 360), x.clientX = a) : x.clientX = x.plotX;
  15726. }, U.spline && (h(U.spline.prototype, "getPointSpline", function(x, a, c, p) {
  15727. return this.chart.polar ? p ? (x = this.getConnectors(a, p, !0, this.connectEnds), a = x.prevPointCont && x.prevPointCont.rightContX, c = x.prevPointCont && x.prevPointCont.rightContY, x = ["C", u(a) ? a : x.plotX, u(c) ? c : x.plotY, u(x.leftContX) ? x.leftContX : x.plotX, u(x.leftContY) ? x.leftContY : x.plotY, x.plotX, x.plotY]) : x = ["M", c.plotX, c.plotY] : x = x.call(this, a, c, p), x;
  15728. }), U.areasplinerange && (U.areasplinerange.prototype.getPointSpline = U.spline.prototype.getPointSpline)), S(F, "afterTranslate", function() {
  15729. var x = this.chart;
  15730. if (x.polar && this.xAxis) {
  15731. if ((this.kdByAngle = x.tooltip && x.tooltip.shared) ? this.searchPoint = this.searchPointByAngle : this.options.findNearestPointBy = "xy", !this.preventPostTranslate)
  15732. for (var a = this.points, c = a.length; c--; )
  15733. this.toXY(a[c]), !x.hasParallelCoordinates && !this.yAxis.reversed && a[c].y < this.yAxis.min && (a[c].isNull = !0);
  15734. this.hasClipCircleSetter || (this.hasClipCircleSetter = !!this.eventsToUnbind.push(S(this, "afterRender", function() {
  15735. if (x.polar) {
  15736. var p = this.yAxis.pane.center;
  15737. this.clipCircle ? this.clipCircle.animate({ x: p[0], y: p[1], r: p[2] / 2, innerR: p[3] / 2 }) : this.clipCircle = x.renderer.clipCircle(p[0], p[1], p[2] / 2, p[3] / 2), this.group.clip(this.clipCircle), this.setClip = j.noop;
  15738. }
  15739. })));
  15740. }
  15741. }, { order: 2 }), h(
  15742. U.line.prototype,
  15743. "getGraphPath",
  15744. function(x, a) {
  15745. var c = this, p;
  15746. if (this.chart.polar) {
  15747. for (a = a || this.points, p = 0; p < a.length; p++)
  15748. if (!a[p].isNull) {
  15749. var i = p;
  15750. break;
  15751. }
  15752. if (this.options.connectEnds !== !1 && typeof i < "u") {
  15753. this.connectEnds = !0, a.splice(a.length, 0, a[i]);
  15754. var l = !0;
  15755. }
  15756. a.forEach(function(s) {
  15757. typeof s.polarPlotY > "u" && c.toXY(s);
  15758. });
  15759. }
  15760. return p = x.apply(this, [].slice.call(arguments, 1)), l && a.pop(), p;
  15761. }
  15762. );
  15763. var b = function(x, a) {
  15764. var c = this, p = this.chart, i = this.options.animation, l = this.group, s = this.markerGroup, t = this.xAxis && this.xAxis.center, o = p.plotLeft, n = p.plotTop, A, _, D, B;
  15765. if (p.polar) {
  15766. if (c.isRadialBar)
  15767. a || (c.startAngleRad = P(c.translatedThreshold, c.xAxis.startAngleRad), j.seriesTypes.pie.prototype.animate.call(c, a));
  15768. else if (p.renderer.isSVG)
  15769. if (i = R(i), c.is("column")) {
  15770. if (!a) {
  15771. var T = t[3] / 2;
  15772. c.points.forEach(function(X) {
  15773. A = X.graphic, D = (_ = X.shapeArgs) && _.r, B = _ && _.innerR, A && _ && (A.attr({ r: T, innerR: T }), A.animate({ r: D, innerR: B }, c.options.animation));
  15774. });
  15775. }
  15776. } else
  15777. a ? (x = { translateX: t[0] + o, translateY: t[1] + n, scaleX: 1e-3, scaleY: 1e-3 }, l.attr(x), s && s.attr(x)) : (x = { translateX: o, translateY: n, scaleX: 1, scaleY: 1 }, l.animate(x, i), s && s.animate(x, i));
  15778. } else
  15779. x.call(this, a);
  15780. };
  15781. if (h(C, "animate", b), U.column) {
  15782. var w = U.arearange.prototype;
  15783. U = U.column.prototype, U.polarArc = function(x, a, c, p) {
  15784. var i = this.xAxis.center, l = this.yAxis.len, s = i[3] / 2;
  15785. return a = l - a + s, x = l - P(x, l) + s, this.yAxis.reversed && (0 > a && (a = s), 0 > x && (x = s)), { x: i[0], y: i[1], r: a, innerR: x, start: c, end: p };
  15786. }, h(U, "animate", b), h(U, "translate", function(x) {
  15787. var a = this.options, c = a.stacking, p = this.chart, i = this.xAxis, l = this.yAxis, s = l.reversed, t = l.center, o = i.startAngleRad, n = i.endAngleRad - o;
  15788. if (this.preventPostTranslate = !0, x.call(this), i.isRadial) {
  15789. x = this.points, i = x.length;
  15790. var A = l.translate(l.min), _ = l.translate(l.max);
  15791. if (a = a.threshold || 0, p.inverted && u(a)) {
  15792. var D = l.translate(a);
  15793. v(D) && (0 > D ? D = 0 : D > n && (D = n), this.translatedThreshold = D + o);
  15794. }
  15795. for (; i--; ) {
  15796. a = x[i];
  15797. var B = a.barX, T = a.x, X = a.y;
  15798. if (a.shapeType = "arc", p.inverted) {
  15799. if (a.plotY = l.translate(X), c && l.stacking) {
  15800. if (X = l.stacking.stacks[(0 > X ? "-" : "") + this.stackKey], this.visible && X && X[T] && !a.isNull) {
  15801. var g = X[T].points[this.getStackIndicator(void 0, T, this.index).key], m = l.translate(g[0]);
  15802. g = l.translate(g[1]), v(m) && (m = W.clamp(m, 0, n));
  15803. }
  15804. } else
  15805. m = D, g = a.plotY;
  15806. m > g && (g = [m, m = g][0]), s ? g > A ? g = A : m < _ ? m = _ : (m > A || g < _) && (m = g = n) : m < A ? m = A : g > _ ? g = _ : (g < A || m > _) && (m = g = 0), l.min > l.max && (m = g = s ? n : 0), m += o, g += o, t && (a.barX = B += t[3] / 2), T = Math.max(B, 0), X = Math.max(B + a.pointWidth, 0), a.shapeArgs = { x: t && t[0], y: t && t[1], r: X, innerR: T, start: m, end: g }, a.opacity = m === g ? 0 : void 0, a.plotY = (v(this.translatedThreshold) && (m < this.translatedThreshold ? m : g)) - o;
  15807. } else
  15808. m = B + o, a.shapeArgs = this.polarArc(a.yBottom, a.plotY, m, m + a.pointWidth);
  15809. this.toXY(a), p.inverted ? (B = l.postTranslate(a.rectPlotY, B + a.pointWidth / 2), a.tooltipPos = [B.x - p.plotLeft, B.y - p.plotTop]) : a.tooltipPos = [a.plotX, a.plotY], t && (a.ttBelow = a.plotY > t[1]);
  15810. }
  15811. }
  15812. }), U.findAlignments = function(x, a) {
  15813. return a.align === null && (a.align = 20 < x && 160 > x ? "left" : 200 < x && 340 > x ? "right" : "center"), a.verticalAlign === null && (a.verticalAlign = 45 > x || 315 < x ? "bottom" : 135 < x && 225 > x ? "top" : "middle"), a;
  15814. }, w && (w.findAlignments = U.findAlignments), h(U, "alignDataLabel", function(x, a, c, p, i, l) {
  15815. var s = this.chart, t = P(p.inside, !!this.options.stacking);
  15816. s.polar ? (x = a.rectPlotX / Math.PI * 180, s.inverted ? (this.forceDL = s.isInsidePlot(a.plotX, Math.round(a.plotY)), t && a.shapeArgs ? (i = a.shapeArgs, i = this.yAxis.postTranslate(((i.start || 0) + (i.end || 0)) / 2 - this.xAxis.startAngleRad, a.barX + a.pointWidth / 2), i = { x: i.x - s.plotLeft, y: i.y - s.plotTop }) : a.tooltipPos && (i = { x: a.tooltipPos[0], y: a.tooltipPos[1] }), p.align = P(p.align, "center"), p.verticalAlign = P(
  15817. p.verticalAlign,
  15818. "middle"
  15819. )) : this.findAlignments && (p = this.findAlignments(x, p)), C.alignDataLabel.call(this, a, c, p, i, l), this.isRadialBar && a.shapeArgs && a.shapeArgs.start === a.shapeArgs.end && c.hide(!0)) : x.call(this, a, c, p, i, l);
  15820. });
  15821. }
  15822. h(Z, "getCoordinates", function(x, a) {
  15823. var c = this.chart, p = { xAxis: [], yAxis: [] };
  15824. return c.polar ? c.axes.forEach(function(i) {
  15825. var l = i.isXAxis, s = i.center;
  15826. if (i.coll !== "colorAxis") {
  15827. var t = a.chartX - s[0] - c.plotLeft;
  15828. s = a.chartY - s[1] - c.plotTop, p[l ? "xAxis" : "yAxis"].push({ axis: i, value: i.translate(l ? Math.PI - Math.atan2(t, s) : Math.sqrt(Math.pow(
  15829. t,
  15830. 2
  15831. ) + Math.pow(s, 2)), !0) });
  15832. }
  15833. }) : p = x.call(this, a), p;
  15834. }), H.prototype.clipCircle = function(x, a, c, p) {
  15835. var i = N(), l = this.createElement("clipPath").attr({ id: i }).add(this.defs);
  15836. return x = p ? this.arc(x, a, c, p, 0, 2 * Math.PI).add(l) : this.circle(x, a, c).add(l), x.id = i, x.clipPath = l, x;
  15837. }, S(y, "getAxes", function() {
  15838. this.pane || (this.pane = []), this.options.pane = O(this.options.pane), this.options.pane.forEach(function(x) {
  15839. new I(x, this);
  15840. }, this);
  15841. }), S(y, "afterDrawChartBox", function() {
  15842. this.pane.forEach(function(x) {
  15843. x.render();
  15844. });
  15845. }), S(
  15846. F,
  15847. "afterInit",
  15848. function() {
  15849. var x = this.chart;
  15850. x.inverted && x.polar && (this.isRadialSeries = !0, this.is("column") && (this.isRadialBar = !0));
  15851. }
  15852. ), h(y.prototype, "get", function(x, a) {
  15853. return d(this.pane || [], function(c) {
  15854. return c.options.id === a;
  15855. }) || x.call(this, a);
  15856. });
  15857. }), E(f, "masters/highcharts-more.src.js", [f["Core/Globals.js"], f["Core/Axis/RadialAxis.js"], f["Series/Bubble/BubbleSeries.js"]], function(h, y, j) {
  15858. y.compose(h.Axis, h.Tick), j.compose(h.Chart, h.Legend, h.Series);
  15859. });
  15860. });
  15861. })(Fp);
  15862. var _0 = Fp.exports;
  15863. const D0 = /* @__PURE__ */ Cn(_0);
  15864. var Up = { exports: {} };
  15865. (function(r) {
  15866. (function(f) {
  15867. r.exports ? (f.default = f, r.exports = f) : f(typeof Highcharts < "u" ? Highcharts : void 0);
  15868. })(function(f) {
  15869. function E(h, y, j, I) {
  15870. h.hasOwnProperty(y) || (h[y] = I.apply(null, j));
  15871. }
  15872. f = f ? f._modules : {}, E(
  15873. f,
  15874. "Extensions/FullScreen.js",
  15875. [f["Core/Chart/Chart.js"], f["Core/Globals.js"], f["Core/Renderer/HTML/AST.js"], f["Core/Utilities.js"]],
  15876. function(h, y, j, I) {
  15877. var Z = I.addEvent;
  15878. return I = function() {
  15879. function F(U) {
  15880. this.chart = U, this.isOpen = !1, U = U.renderTo, this.browserProps || (typeof U.requestFullscreen == "function" ? this.browserProps = { fullscreenChange: "fullscreenchange", requestFullscreen: "requestFullscreen", exitFullscreen: "exitFullscreen" } : U.mozRequestFullScreen ? this.browserProps = { fullscreenChange: "mozfullscreenchange", requestFullscreen: "mozRequestFullScreen", exitFullscreen: "mozCancelFullScreen" } : U.webkitRequestFullScreen ? this.browserProps = {
  15881. fullscreenChange: "webkitfullscreenchange",
  15882. requestFullscreen: "webkitRequestFullScreen",
  15883. exitFullscreen: "webkitExitFullscreen"
  15884. } : U.msRequestFullscreen && (this.browserProps = { fullscreenChange: "MSFullscreenChange", requestFullscreen: "msRequestFullscreen", exitFullscreen: "msExitFullscreen" }));
  15885. }
  15886. return F.prototype.close = function() {
  15887. var U = this.chart, H = U.options.chart;
  15888. this.isOpen && this.browserProps && U.container.ownerDocument instanceof Document && U.container.ownerDocument[this.browserProps.exitFullscreen](), this.unbindFullscreenEvent && (this.unbindFullscreenEvent = this.unbindFullscreenEvent()), U.setSize(this.origWidth, this.origHeight, !1), this.origHeight = this.origWidth = void 0, H.width = this.origWidthOption, H.height = this.origHeightOption, this.origHeightOption = this.origWidthOption = void 0, this.isOpen = !1, this.setButtonText();
  15889. }, F.prototype.open = function() {
  15890. var U = this, H = U.chart, W = H.options.chart;
  15891. if (W && (U.origWidthOption = W.width, U.origHeightOption = W.height), U.origWidth = H.chartWidth, U.origHeight = H.chartHeight, U.browserProps) {
  15892. var R = Z(
  15893. H.container.ownerDocument,
  15894. U.browserProps.fullscreenChange,
  15895. function() {
  15896. U.isOpen ? (U.isOpen = !1, U.close()) : (H.setSize(null, null, !1), U.isOpen = !0, U.setButtonText());
  15897. }
  15898. ), S = Z(H, "destroy", R);
  15899. U.unbindFullscreenEvent = function() {
  15900. R(), S();
  15901. }, (W = H.renderTo[U.browserProps.requestFullscreen]()) && W.catch(function() {
  15902. alert("Full screen is not supported inside a frame.");
  15903. });
  15904. }
  15905. }, F.prototype.setButtonText = function() {
  15906. var U = this.chart, H = U.exportDivElements, W = U.options.exporting, R = W && W.buttons && W.buttons.contextButton.menuItems;
  15907. U = U.options.lang, W && W.menuItemDefinitions && U && U.exitFullscreen && U.viewFullscreen && R && H && (H = H[R.indexOf("viewFullscreen")]) && j.setElementHTML(H, this.isOpen ? U.exitFullscreen : W.menuItemDefinitions.viewFullscreen.text || U.viewFullscreen);
  15908. }, F.prototype.toggle = function() {
  15909. this.isOpen ? this.close() : this.open();
  15910. }, F;
  15911. }(), y.Fullscreen = I, Z(h, "beforeRender", function() {
  15912. this.fullscreen = new y.Fullscreen(this);
  15913. }), y.Fullscreen;
  15914. }
  15915. ), E(f, "Core/Chart/ChartNavigationComposition.js", [], function() {
  15916. var h;
  15917. return function(y) {
  15918. y.compose = function(I) {
  15919. return I.navigation || (I.navigation = new j(I)), I;
  15920. };
  15921. var j = function() {
  15922. function I(Z) {
  15923. this.updates = [], this.chart = Z;
  15924. }
  15925. return I.prototype.addUpdate = function(Z) {
  15926. this.chart.navigation.updates.push(Z);
  15927. }, I.prototype.update = function(Z, F) {
  15928. var U = this;
  15929. this.updates.forEach(function(H) {
  15930. H.call(U.chart, Z, F);
  15931. });
  15932. }, I;
  15933. }();
  15934. y.Additions = j;
  15935. }(h || (h = {})), h;
  15936. }), E(f, "Extensions/Exporting/ExportingDefaults.js", [f["Core/Globals.js"]], function(h) {
  15937. return { exporting: { type: "image/png", url: "https://export.highcharts.com/", printMaxWidth: 780, scale: 2, buttons: { contextButton: {
  15938. className: "highcharts-contextbutton",
  15939. menuClassName: "highcharts-contextmenu",
  15940. symbol: "menu",
  15941. titleKey: "contextButtonTitle",
  15942. menuItems: "viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")
  15943. } }, menuItemDefinitions: { viewFullscreen: { textKey: "viewFullscreen", onclick: function() {
  15944. this.fullscreen.toggle();
  15945. } }, printChart: { textKey: "printChart", onclick: function() {
  15946. this.print();
  15947. } }, separator: { separator: !0 }, downloadPNG: { textKey: "downloadPNG", onclick: function() {
  15948. this.exportChart();
  15949. } }, downloadJPEG: {
  15950. textKey: "downloadJPEG",
  15951. onclick: function() {
  15952. this.exportChart({ type: "image/jpeg" });
  15953. }
  15954. }, downloadPDF: { textKey: "downloadPDF", onclick: function() {
  15955. this.exportChart({ type: "application/pdf" });
  15956. } }, downloadSVG: { textKey: "downloadSVG", onclick: function() {
  15957. this.exportChart({ type: "image/svg+xml" });
  15958. } } } }, lang: {
  15959. viewFullscreen: "View in full screen",
  15960. exitFullscreen: "Exit from full screen",
  15961. printChart: "Print chart",
  15962. downloadPNG: "Download PNG image",
  15963. downloadJPEG: "Download JPEG image",
  15964. downloadPDF: "Download PDF document",
  15965. downloadSVG: "Download SVG vector image",
  15966. contextButtonTitle: "Chart context menu"
  15967. }, navigation: { buttonOptions: { symbolSize: 14, symbolX: 12.5, symbolY: 10.5, align: "right", buttonSpacing: 3, height: 22, verticalAlign: "top", width: 24, symbolFill: "#666666", symbolStroke: "#666666", symbolStrokeWidth: 3, theme: { padding: 5 } }, menuStyle: { border: "1px solid #999999", background: "#ffffff", padding: "5px 0" }, menuItemStyle: { padding: "0.5em 1em", color: "#333333", background: "none", fontSize: h.isTouchDevice ? "14px" : "11px", transition: "background 250ms, color 250ms" }, menuItemHoverStyle: {
  15968. background: "#335cad",
  15969. color: "#ffffff"
  15970. } } };
  15971. }), E(f, "Extensions/Exporting/ExportingSymbols.js", [], function() {
  15972. var h;
  15973. return function(y) {
  15974. function j(F, U, H, W) {
  15975. return [["M", F, U + 2.5], ["L", F + H, U + 2.5], ["M", F, U + W / 2 + 0.5], ["L", F + H, U + W / 2 + 0.5], ["M", F, U + W - 1.5], ["L", F + H, U + W - 1.5]];
  15976. }
  15977. function I(F, U, H, W) {
  15978. return F = W / 3 - 2, W = [], W = W.concat(this.circle(H - F, U, F, F), this.circle(H - F, U + F + 4, F, F), this.circle(H - F, U + 2 * (F + 4), F, F));
  15979. }
  15980. var Z = [];
  15981. y.compose = function(F) {
  15982. Z.indexOf(F) === -1 && (Z.push(F), F = F.prototype.symbols, F.menu = j, F.menuball = I.bind(F));
  15983. };
  15984. }(h || (h = {})), h;
  15985. }), E(f, "Core/HttpUtilities.js", [f["Core/Globals.js"], f["Core/Utilities.js"]], function(h, y) {
  15986. var j = h.doc, I = y.createElement, Z = y.discardElement, F = y.merge, U = y.objectEach, H = { ajax: function(W) {
  15987. var R = F(!0, { url: !1, type: "get", dataType: "json", success: !1, error: !1, data: !1, headers: {} }, W);
  15988. W = { json: "application/json", xml: "application/xml", text: "text/plain", octet: "application/octet-stream" };
  15989. var S = new XMLHttpRequest();
  15990. if (!R.url)
  15991. return !1;
  15992. S.open(R.type.toUpperCase(), R.url, !0), R.headers["Content-Type"] || S.setRequestHeader(
  15993. "Content-Type",
  15994. W[R.dataType] || W.text
  15995. ), U(R.headers, function(v, d) {
  15996. S.setRequestHeader(d, v);
  15997. }), S.onreadystatechange = function() {
  15998. if (S.readyState === 4) {
  15999. if (S.status === 200) {
  16000. var v = S.responseText;
  16001. if (R.dataType === "json")
  16002. try {
  16003. v = JSON.parse(v);
  16004. } catch (d) {
  16005. R.error && R.error(S, d);
  16006. return;
  16007. }
  16008. return R.success && R.success(v);
  16009. }
  16010. R.error && R.error(S, S.responseText);
  16011. }
  16012. };
  16013. try {
  16014. R.data = JSON.stringify(R.data);
  16015. } catch {
  16016. }
  16017. S.send(R.data || !0);
  16018. }, getJSON: function(W, R) {
  16019. H.ajax({ url: W, success: R, dataType: "json", headers: { "Content-Type": "text/plain" } });
  16020. }, post: function(W, R, S) {
  16021. var v = I("form", F({ method: "post", action: W, enctype: "multipart/form-data" }, S), { display: "none" }, j.body);
  16022. U(R, function(d, u) {
  16023. I("input", { type: "hidden", name: u, value: d }, null, v);
  16024. }), v.submit(), Z(v);
  16025. } };
  16026. return H;
  16027. }), E(f, "Extensions/Exporting/Exporting.js", [
  16028. f["Core/Renderer/HTML/AST.js"],
  16029. f["Core/Chart/Chart.js"],
  16030. f["Core/Chart/ChartNavigationComposition.js"],
  16031. f["Core/DefaultOptions.js"],
  16032. f["Extensions/Exporting/ExportingDefaults.js"],
  16033. f["Extensions/Exporting/ExportingSymbols.js"],
  16034. f["Core/Globals.js"],
  16035. f["Core/HttpUtilities.js"],
  16036. f["Core/Utilities.js"]
  16037. ], function(h, y, j, I, Z, F, U, H, W) {
  16038. y = I.defaultOptions;
  16039. var R = U.doc, S = U.win, v = W.addEvent, d = W.css, u = W.createElement, P = W.discardElement, O = W.extend, N = W.find, C = W.fireEvent, b = W.isObject, w = W.merge, x = W.objectEach, a = W.pick, c = W.removeEvent, p = W.uniqueKey, i;
  16040. return function(l) {
  16041. function s(nt) {
  16042. var rt = this, ct = rt.renderer, gt = w(rt.options.navigation.buttonOptions, nt), dt = gt.onclick, lt = gt.menuItems, at = gt.symbolSize || 12;
  16043. if (rt.btnCount || (rt.btnCount = 0), rt.exportDivElements || (rt.exportDivElements = [], rt.exportSVGElements = []), gt.enabled !== !1 && gt.theme) {
  16044. var J = gt.theme, tt = J.states, st = tt && tt.hover;
  16045. tt = tt && tt.select;
  16046. var ht;
  16047. rt.styledMode || (J.fill = a(J.fill, "#ffffff"), J.stroke = a(J.stroke, "none")), delete J.states, dt ? ht = function(vt) {
  16048. vt && vt.stopPropagation(), dt.call(rt, vt);
  16049. } : lt && (ht = function(vt) {
  16050. vt && vt.stopPropagation(), rt.contextMenu(pt.menuClassName, lt, pt.translateX, pt.translateY, pt.width, pt.height, pt), pt.setState(2);
  16051. }), gt.text && gt.symbol ? J.paddingLeft = a(J.paddingLeft, 30) : gt.text || O(J, { width: gt.width, height: gt.height, padding: 0 }), rt.styledMode || (J["stroke-linecap"] = "round", J.fill = a(J.fill, "#ffffff"), J.stroke = a(J.stroke, "none"));
  16052. var pt = ct.button(gt.text, 0, 0, ht, J, st, tt).addClass(nt.className).attr({ title: a(rt.options.lang[gt._titleKey || gt.titleKey], "") });
  16053. if (pt.menuClassName = nt.menuClassName || "highcharts-menu-" + rt.btnCount++, gt.symbol) {
  16054. var yt = ct.symbol(gt.symbol, gt.symbolX - at / 2, gt.symbolY - at / 2, at, at, { width: at, height: at }).addClass("highcharts-button-symbol").attr({ zIndex: 1 }).add(pt);
  16055. rt.styledMode || yt.attr({ stroke: gt.symbolStroke, fill: gt.symbolFill, "stroke-width": gt.symbolStrokeWidth || 1 });
  16056. }
  16057. pt.add(rt.exportingGroup).align(O(
  16058. gt,
  16059. { width: pt.width, x: a(gt.x, rt.buttonOffset) }
  16060. ), !0, "spacingBox"), rt.buttonOffset += (pt.width + gt.buttonSpacing) * (gt.align === "right" ? -1 : 1), rt.exportSVGElements.push(pt, yt);
  16061. }
  16062. }
  16063. function t() {
  16064. if (this.printReverseInfo) {
  16065. var nt = this.printReverseInfo, rt = nt.childNodes, ct = nt.origDisplay;
  16066. nt = nt.resetParams, this.moveContainers(this.renderTo), [].forEach.call(rt, function(gt, dt) {
  16067. gt.nodeType === 1 && (gt.style.display = ct[dt] || "");
  16068. }), this.isPrinting = !1, nt && this.setSize.apply(this, nt), delete this.printReverseInfo, et = void 0, C(this, "afterPrint");
  16069. }
  16070. }
  16071. function o() {
  16072. var nt = R.body, rt = this.options.exporting.printMaxWidth, ct = { childNodes: nt.childNodes, origDisplay: [], resetParams: void 0 };
  16073. this.isPrinting = !0, this.pointer.reset(null, 0), C(this, "beforePrint"), rt && this.chartWidth > rt && (ct.resetParams = [this.options.chart.width, void 0, !1], this.setSize(rt, void 0, !1)), [].forEach.call(ct.childNodes, function(gt, dt) {
  16074. gt.nodeType === 1 && (ct.origDisplay[dt] = gt.style.display, gt.style.display = "none");
  16075. }), this.moveContainers(nt), this.printReverseInfo = ct;
  16076. }
  16077. function n(nt) {
  16078. nt.renderExporting(), v(nt, "redraw", nt.renderExporting), v(nt, "destroy", nt.destroyExport);
  16079. }
  16080. function A(nt, rt, ct, gt, dt, lt, at) {
  16081. var J = this, tt = J.options.navigation, st = J.chartWidth, ht = J.chartHeight, pt = "cache-" + nt, yt = Math.max(dt, lt), vt = J[pt];
  16082. if (!vt) {
  16083. J.exportContextMenu = J[pt] = vt = u("div", { className: nt }, { position: "absolute", zIndex: 1e3, padding: yt + "px", pointerEvents: "auto" }, J.fixedDiv || J.container);
  16084. var Ct = u("ul", { className: "highcharts-menu" }, { listStyle: "none", margin: 0, padding: 0 }, vt);
  16085. J.styledMode || d(Ct, O(
  16086. { MozBoxShadow: "3px 3px 10px #888", WebkitBoxShadow: "3px 3px 10px #888", boxShadow: "3px 3px 10px #888" },
  16087. tt.menuStyle
  16088. )), vt.hideMenu = function() {
  16089. d(vt, { display: "none" }), at && at.setState(0), J.openMenu = !1, d(J.renderTo, { overflow: "hidden" }), d(J.container, { overflow: "hidden" }), W.clearTimeout(vt.hideTimer), C(J, "exportMenuHidden");
  16090. }, J.exportEvents.push(v(vt, "mouseleave", function() {
  16091. vt.hideTimer = S.setTimeout(vt.hideMenu, 500);
  16092. }), v(vt, "mouseenter", function() {
  16093. W.clearTimeout(vt.hideTimer);
  16094. }), v(R, "mouseup", function(Pt) {
  16095. J.pointer.inClass(Pt.target, nt) || vt.hideMenu();
  16096. }), v(vt, "click", function() {
  16097. J.openMenu && vt.hideMenu();
  16098. })), rt.forEach(function(Pt) {
  16099. if (typeof Pt == "string" && (Pt = J.options.exporting.menuItemDefinitions[Pt]), b(Pt, !0)) {
  16100. var kt = void 0;
  16101. Pt.separator ? kt = u("hr", void 0, void 0, Ct) : (Pt.textKey === "viewData" && J.isDataTableVisible && (Pt.textKey = "hideData"), kt = u("li", { className: "highcharts-menu-item", onclick: function(St) {
  16102. St && St.stopPropagation(), vt.hideMenu(), Pt.onclick && Pt.onclick.apply(J, arguments);
  16103. } }, void 0, Ct), h.setElementHTML(kt, Pt.text || J.options.lang[Pt.textKey]), J.styledMode || (kt.onmouseover = function() {
  16104. d(this, tt.menuItemHoverStyle);
  16105. }, kt.onmouseout = function() {
  16106. d(this, tt.menuItemStyle);
  16107. }, d(kt, O({ cursor: "pointer" }, tt.menuItemStyle)))), J.exportDivElements.push(kt);
  16108. }
  16109. }), J.exportDivElements.push(Ct, vt), J.exportMenuWidth = vt.offsetWidth, J.exportMenuHeight = vt.offsetHeight;
  16110. }
  16111. rt = { display: "block" }, ct + J.exportMenuWidth > st ? rt.right = st - ct - dt - yt + "px" : rt.left = ct - yt + "px", gt + lt + J.exportMenuHeight > ht && at.alignOptions.verticalAlign !== "top" ? rt.bottom = ht - gt - yt + "px" : rt.top = gt + lt - yt + "px", d(vt, rt), d(J.renderTo, { overflow: "" }), d(J.container, { overflow: "" }), J.openMenu = !0, C(J, "exportMenuShown");
  16112. }
  16113. function _(nt) {
  16114. var rt = nt ? nt.target : this, ct = rt.exportSVGElements, gt = rt.exportDivElements;
  16115. nt = rt.exportEvents;
  16116. var dt;
  16117. ct && (ct.forEach(function(lt, at) {
  16118. lt && (lt.onclick = lt.ontouchstart = null, dt = "cache-" + lt.menuClassName, rt[dt] && delete rt[dt], ct[at] = lt.destroy());
  16119. }), ct.length = 0), rt.exportingGroup && (rt.exportingGroup.destroy(), delete rt.exportingGroup), gt && (gt.forEach(function(lt, at) {
  16120. lt && (W.clearTimeout(lt.hideTimer), c(lt, "mouseleave"), gt[at] = lt.onmouseout = lt.onmouseover = lt.ontouchstart = lt.onclick = null, P(lt));
  16121. }), gt.length = 0), nt && (nt.forEach(function(lt) {
  16122. lt();
  16123. }), nt.length = 0);
  16124. }
  16125. function D(nt, rt) {
  16126. rt = this.getSVGForExport(nt, rt), nt = w(this.options.exporting, nt), H.post(nt.url, { filename: nt.filename ? nt.filename.replace(/\//g, "-") : this.getFilename(), type: nt.type, width: nt.width || 0, scale: nt.scale, svg: rt }, nt.formAttributes);
  16127. }
  16128. function B() {
  16129. return this.styledMode && this.inlineStyles(), this.container.innerHTML;
  16130. }
  16131. function T() {
  16132. var nt = this.userOptions.title && this.userOptions.title.text, rt = this.options.exporting.filename;
  16133. return rt ? rt.replace(/\//g, "-") : (typeof nt == "string" && (rt = nt.toLowerCase().replace(/<\/?[^>]+(>|$)/g, "").replace(/[\s_]+/g, "-").replace(
  16134. /[^a-z0-9\-]/g,
  16135. ""
  16136. ).replace(/^[\-]+/g, "").replace(/[\-]+/g, "-").substr(0, 24).replace(/[\-]+$/g, "")), (!rt || 5 > rt.length) && (rt = "chart"), rt);
  16137. }
  16138. function X(nt) {
  16139. var rt, ct = w(this.options, nt);
  16140. ct.plotOptions = w(this.userOptions.plotOptions, nt && nt.plotOptions), ct.time = w(this.userOptions.time, nt && nt.time);
  16141. var gt = u("div", null, { position: "absolute", top: "-9999em", width: this.chartWidth + "px", height: this.chartHeight + "px" }, R.body), dt = this.renderTo.style.width, lt = this.renderTo.style.height;
  16142. dt = ct.exporting.sourceWidth || ct.chart.width || /px$/.test(dt) && parseInt(dt, 10) || (ct.isGantt ? 800 : 600), lt = ct.exporting.sourceHeight || ct.chart.height || /px$/.test(lt) && parseInt(lt, 10) || 400, O(ct.chart, { animation: !1, renderTo: gt, forExport: !0, renderer: "SVGRenderer", width: dt, height: lt }), ct.exporting.enabled = !1, delete ct.data, ct.series = [], this.series.forEach(function(tt) {
  16143. rt = w(tt.userOptions, { animation: !1, enableMouseTracking: !1, showCheckbox: !1, visible: tt.visible }), rt.isInternal || ct.series.push(rt);
  16144. });
  16145. var at = {};
  16146. this.axes.forEach(function(tt) {
  16147. tt.userOptions.internalKey || (tt.userOptions.internalKey = p()), tt.options.isInternal || (at[tt.coll] || (at[tt.coll] = !0, ct[tt.coll] = []), ct[tt.coll].push(w(tt.userOptions, { visible: tt.visible })));
  16148. });
  16149. var J = new this.constructor(ct, this.callback);
  16150. return nt && ["xAxis", "yAxis", "series"].forEach(function(tt) {
  16151. var st = {};
  16152. nt[tt] && (st[tt] = nt[tt], J.update(st));
  16153. }), this.axes.forEach(function(tt) {
  16154. var st = N(J.axes, function(yt) {
  16155. return yt.options.internalKey === tt.userOptions.internalKey;
  16156. }), ht = tt.getExtremes(), pt = ht.userMin;
  16157. ht = ht.userMax, st && (typeof pt < "u" && pt !== st.min || typeof ht < "u" && ht !== st.max) && st.setExtremes(
  16158. pt,
  16159. ht,
  16160. !0,
  16161. !1
  16162. );
  16163. }), lt = J.getChartHTML(), C(this, "getSVG", { chartCopy: J }), lt = this.sanitizeSVG(lt, ct), ct = null, J.destroy(), P(gt), lt;
  16164. }
  16165. function g(nt, rt) {
  16166. var ct = this.options.exporting;
  16167. return this.getSVG(w({ chart: { borderRadius: 0 } }, ct.chartOptions, rt, { exporting: { sourceWidth: nt && nt.sourceWidth || ct.sourceWidth, sourceHeight: nt && nt.sourceHeight || ct.sourceHeight } }));
  16168. }
  16169. function m(nt) {
  16170. return nt.replace(/([A-Z])/g, function(rt, ct) {
  16171. return "-" + ct.toLowerCase();
  16172. });
  16173. }
  16174. function L() {
  16175. function nt(J) {
  16176. function tt(St, Dt) {
  16177. if (ht = pt = !1, ct.length) {
  16178. for (yt = ct.length; yt-- && !pt; )
  16179. pt = ct[yt].test(Dt);
  16180. ht = !pt;
  16181. }
  16182. for (Dt === "transform" && St === "none" && (ht = !0), yt = rt.length; yt-- && !ht; )
  16183. ht = rt[yt].test(Dt) || typeof St == "function";
  16184. ht || Ct[Dt] === St && J.nodeName !== "svg" || gt[J.nodeName][Dt] === St || (q && q.indexOf(Dt) === -1 ? st += m(Dt) + ":" + St + ";" : St && J.setAttribute(m(Dt), St));
  16185. }
  16186. var st = "", ht, pt, yt;
  16187. if (J.nodeType === 1 && it.indexOf(J.nodeName) === -1) {
  16188. var vt = S.getComputedStyle(J, null), Ct = J.nodeName === "svg" ? {} : S.getComputedStyle(J.parentNode, null);
  16189. if (!gt[J.nodeName]) {
  16190. dt = at.getElementsByTagName("svg")[0];
  16191. var Pt = at.createElementNS(J.namespaceURI, J.nodeName);
  16192. dt.appendChild(Pt), gt[J.nodeName] = w(S.getComputedStyle(Pt, null)), J.nodeName === "text" && delete gt.text.fill, dt.removeChild(Pt);
  16193. }
  16194. if (U.isFirefox || U.isMS)
  16195. for (var kt in vt)
  16196. tt(vt[kt], kt);
  16197. else
  16198. x(vt, tt);
  16199. st && (vt = J.getAttribute("style"), J.setAttribute("style", (vt ? vt + ";" : "") + st)), J.nodeName === "svg" && J.setAttribute("stroke-width", "1px"), J.nodeName !== "text" && [].forEach.call(J.children || J.childNodes, nt);
  16200. }
  16201. }
  16202. var rt = $, ct = l.inlineWhitelist, gt = {}, dt, lt = R.createElement("iframe");
  16203. d(lt, { width: "1px", height: "1px", visibility: "hidden" }), R.body.appendChild(lt);
  16204. var at = lt.contentWindow.document;
  16205. at.open(), at.write('<svg xmlns="http://www.w3.org/2000/svg"></svg>'), at.close(), nt(this.container.querySelector("svg")), dt.parentNode.removeChild(dt), lt.parentNode.removeChild(lt);
  16206. }
  16207. function Y(nt) {
  16208. (this.fixedDiv ? [this.fixedDiv, this.scrollingContainer] : [this.container]).forEach(function(rt) {
  16209. nt.appendChild(rt);
  16210. });
  16211. }
  16212. function V() {
  16213. var nt = this;
  16214. nt.exporting = { update: function(rt, ct) {
  16215. nt.isDirtyExporting = !0, w(!0, nt.options.exporting, rt), a(ct, !0) && nt.redraw();
  16216. } }, j.compose(nt).navigation.addUpdate(function(rt, ct) {
  16217. nt.isDirtyExporting = !0, w(!0, nt.options.navigation, rt), a(ct, !0) && nt.redraw();
  16218. });
  16219. }
  16220. function Q() {
  16221. var nt = this;
  16222. nt.isPrinting || (et = nt, U.isSafari || nt.beforePrint(), setTimeout(function() {
  16223. S.focus(), S.print(), U.isSafari || setTimeout(function() {
  16224. nt.afterPrint();
  16225. }, 1e3);
  16226. }, 1));
  16227. }
  16228. function k() {
  16229. var nt = this, rt = nt.options.exporting, ct = rt.buttons, gt = nt.isDirtyExporting || !nt.exportSVGElements;
  16230. nt.buttonOffset = 0, nt.isDirtyExporting && nt.destroyExport(), gt && rt.enabled !== !1 && (nt.exportEvents = [], nt.exportingGroup = nt.exportingGroup || nt.renderer.g("exporting-group").attr({ zIndex: 3 }).add(), x(ct, function(dt) {
  16231. nt.addButton(dt);
  16232. }), nt.isDirtyExporting = !1);
  16233. }
  16234. function G(nt, rt) {
  16235. var ct = nt.indexOf("</svg>") + 6, gt = nt.substr(ct);
  16236. return nt = nt.substr(0, ct), rt && rt.exporting && rt.exporting.allowHTML && gt && (gt = '<foreignObject x="0" y="0" width="' + rt.chart.width + '" height="' + rt.chart.height + '"><body xmlns="http://www.w3.org/1999/xhtml">' + gt.replace(/(<(?:img|br).*?(?=>))>/g, "$1 />") + "</body></foreignObject>", nt = nt.replace("</svg>", gt + "</svg>")), nt = nt.replace(/zIndex="[^"]+"/g, "").replace(/symbolName="[^"]+"/g, "").replace(
  16237. /jQuery[0-9]+="[^"]+"/g,
  16238. ""
  16239. ).replace(/url\(("|&quot;)(.*?)("|&quot;);?\)/g, "url($2)").replace(/url\([^#]+#/g, "url(#").replace(/<svg /, '<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (|NS[0-9]+:)href=/g, " xlink:href=").replace(/\n/, " ").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g, '$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g, " ").replace(/&shy;/g, "­"), this.ieSanitizeSVG && (nt = this.ieSanitizeSVG(nt)), nt;
  16240. }
  16241. var z = [], $ = [
  16242. /-/,
  16243. /^(clipPath|cssText|d|height|width)$/,
  16244. /^font$/,
  16245. /[lL]ogical(Width|Height)$/,
  16246. /perspective/,
  16247. /TapHighlightColor/,
  16248. /^transition/,
  16249. /^length$/
  16250. ], q = "fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" ");
  16251. l.inlineWhitelist = [];
  16252. var it = ["clipPath", "defs", "desc"], et;
  16253. l.compose = function(nt, rt) {
  16254. F.compose(rt), z.indexOf(nt) === -1 && (z.push(nt), rt = nt.prototype, rt.afterPrint = t, rt.exportChart = D, rt.inlineStyles = L, rt.print = Q, rt.sanitizeSVG = G, rt.getChartHTML = B, rt.getSVG = X, rt.getSVGForExport = g, rt.getFilename = T, rt.moveContainers = Y, rt.beforePrint = o, rt.contextMenu = A, rt.addButton = s, rt.destroyExport = _, rt.renderExporting = k, rt.callbacks.push(n), v(nt, "init", V), U.isSafari && U.win.matchMedia("print").addListener(function(ct) {
  16255. et && (ct.matches ? et.beforePrint() : et.afterPrint());
  16256. }));
  16257. };
  16258. }(i || (i = {})), y.exporting = w(Z.exporting, y.exporting), y.lang = w(Z.lang, y.lang), y.navigation = w(Z.navigation, y.navigation), i;
  16259. }), E(f, "masters/modules/exporting.src.js", [f["Core/Globals.js"], f["Extensions/Exporting/Exporting.js"], f["Core/HttpUtilities.js"]], function(h, y, j) {
  16260. h.HttpUtilities = j, h.ajax = j.ajax, h.getJSON = j.getJSON, h.post = j.post, y.compose(h.Chart, h.Renderer);
  16261. });
  16262. });
  16263. })(Up);
  16264. var I0 = Up.exports;
  16265. const R0 = /* @__PURE__ */ Cn(I0);
  16266. var Vp = { exports: {} };
  16267. (function(r) {
  16268. (function(f) {
  16269. r.exports ? (f.default = f, r.exports = f) : f(typeof Highcharts < "u" ? Highcharts : void 0);
  16270. })(function(f) {
  16271. function E(h, y, j, I) {
  16272. h.hasOwnProperty(y) || (h[y] = I.apply(null, j));
  16273. }
  16274. f = f ? f._modules : {}, E(f, "Extensions/Boost/Boostables.js", [], function() {
  16275. return "area arearange column columnrange bar line scatter heatmap bubble treemap".split(" ");
  16276. }), E(f, "Extensions/Boost/BoostableMap.js", [f["Extensions/Boost/Boostables.js"]], function(h) {
  16277. var y = {};
  16278. return h.forEach(function(j) {
  16279. y[j] = 1;
  16280. }), y;
  16281. }), E(f, "Extensions/Boost/WGLShader.js", [f["Core/Utilities.js"]], function(h) {
  16282. var y = h.clamp, j = h.error, I = h.pick;
  16283. return function(Z) {
  16284. function F() {
  16285. x.length && j("[highcharts boost] shader error - " + x.join(`
  16286. `));
  16287. }
  16288. function U(c, p) {
  16289. var i = Z.createShader(p === "vertex" ? Z.VERTEX_SHADER : Z.FRAGMENT_SHADER);
  16290. return Z.shaderSource(i, c), Z.compileShader(i), Z.getShaderParameter(i, Z.COMPILE_STATUS) ? i : (x.push("when compiling " + p + ` shader:
  16291. ` + Z.getShaderInfoLog(i)), !1);
  16292. }
  16293. function H() {
  16294. function c(l) {
  16295. return Z.getUniformLocation(S, l);
  16296. }
  16297. var p = U(
  16298. `#version 100
  16299. #define LN10 2.302585092994046
  16300. precision highp float;
  16301. attribute vec4 aVertexPosition;
  16302. attribute vec4 aColor;
  16303. varying highp vec2 position;
  16304. varying highp vec4 vColor;
  16305. uniform mat4 uPMatrix;
  16306. uniform float pSize;
  16307. uniform float translatedThreshold;
  16308. uniform bool hasThreshold;
  16309. uniform bool skipTranslation;
  16310. uniform float xAxisTrans;
  16311. uniform float xAxisMin;
  16312. uniform float xAxisMinPad;
  16313. uniform float xAxisPointRange;
  16314. uniform float xAxisLen;
  16315. uniform bool xAxisPostTranslate;
  16316. uniform float xAxisOrdinalSlope;
  16317. uniform float xAxisOrdinalOffset;
  16318. uniform float xAxisPos;
  16319. uniform bool xAxisCVSCoord;
  16320. uniform bool xAxisIsLog;
  16321. uniform bool xAxisReversed;
  16322. uniform float yAxisTrans;
  16323. uniform float yAxisMin;
  16324. uniform float yAxisMinPad;
  16325. uniform float yAxisPointRange;
  16326. uniform float yAxisLen;
  16327. uniform bool yAxisPostTranslate;
  16328. uniform float yAxisOrdinalSlope;
  16329. uniform float yAxisOrdinalOffset;
  16330. uniform float yAxisPos;
  16331. uniform bool yAxisCVSCoord;
  16332. uniform bool yAxisIsLog;
  16333. uniform bool yAxisReversed;
  16334. uniform bool isBubble;
  16335. uniform bool bubbleSizeByArea;
  16336. uniform float bubbleZMin;
  16337. uniform float bubbleZMax;
  16338. uniform float bubbleZThreshold;
  16339. uniform float bubbleMinSize;
  16340. uniform float bubbleMaxSize;
  16341. uniform bool bubbleSizeAbs;
  16342. uniform bool isInverted;
  16343. float bubbleRadius(){
  16344. float value = aVertexPosition.w;
  16345. float zMax = bubbleZMax;
  16346. float zMin = bubbleZMin;
  16347. float radius = 0.0;
  16348. float pos = 0.0;
  16349. float zRange = zMax - zMin;
  16350. if (bubbleSizeAbs){
  16351. value = value - bubbleZThreshold;
  16352. zMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);
  16353. zMin = 0.0;
  16354. }
  16355. if (value < zMin){
  16356. radius = bubbleZMin / 2.0 - 1.0;
  16357. } else {
  16358. pos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;
  16359. if (bubbleSizeByArea && pos > 0.0){
  16360. pos = sqrt(pos);
  16361. }
  16362. radius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;
  16363. }
  16364. return radius * 2.0;
  16365. }
  16366. float translate(float val,
  16367. float pointPlacement,
  16368. float localA,
  16369. float localMin,
  16370. float minPixelPadding,
  16371. float pointRange,
  16372. float len,
  16373. bool cvsCoord,
  16374. bool isLog,
  16375. bool reversed
  16376. ){
  16377. float sign = 1.0;
  16378. float cvsOffset = 0.0;
  16379. if (cvsCoord) {
  16380. sign *= -1.0;
  16381. cvsOffset = len;
  16382. }
  16383. if (isLog) {
  16384. val = log(val) / LN10;
  16385. }
  16386. if (reversed) {
  16387. sign *= -1.0;
  16388. cvsOffset -= sign * len;
  16389. }
  16390. return sign * (val - localMin) * localA + cvsOffset +
  16391. (sign * minPixelPadding);
  16392. }
  16393. float xToPixels(float value) {
  16394. if (skipTranslation){
  16395. return value;// + xAxisPos;
  16396. }
  16397. return translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;
  16398. }
  16399. float yToPixels(float value, float checkTreshold) {
  16400. float v;
  16401. if (skipTranslation){
  16402. v = value;// + yAxisPos;
  16403. } else {
  16404. v = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;
  16405. if (v > yAxisLen) {
  16406. v = yAxisLen;
  16407. }
  16408. }
  16409. if (checkTreshold > 0.0 && hasThreshold) {
  16410. v = min(v, translatedThreshold);
  16411. }
  16412. return v;
  16413. }
  16414. void main(void) {
  16415. if (isBubble){
  16416. gl_PointSize = bubbleRadius();
  16417. } else {
  16418. gl_PointSize = pSize;
  16419. }
  16420. vColor = aColor;
  16421. if (skipTranslation && isInverted) {
  16422. gl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);
  16423. } else if (isInverted) {
  16424. gl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);
  16425. } else {
  16426. gl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);
  16427. }
  16428. }`,
  16429. "vertex"
  16430. ), i = U(`precision highp float;
  16431. uniform vec4 fillColor;
  16432. varying highp vec2 position;
  16433. varying highp vec4 vColor;
  16434. uniform sampler2D uSampler;
  16435. uniform bool isCircle;
  16436. uniform bool hasColor;
  16437. void main(void) {
  16438. vec4 col = fillColor;
  16439. vec4 tcol = texture2D(uSampler, gl_PointCoord.st);
  16440. if (hasColor) {
  16441. col = vColor;
  16442. }
  16443. if (isCircle) {
  16444. col *= tcol;
  16445. if (tcol.r < 0.0) {
  16446. discard;
  16447. } else {
  16448. gl_FragColor = col;
  16449. }
  16450. } else {
  16451. gl_FragColor = col;
  16452. }
  16453. }`, "fragment");
  16454. return !p || !i ? (S = !1, F(), !1) : (S = Z.createProgram(), Z.attachShader(S, p), Z.attachShader(S, i), Z.linkProgram(S), Z.getProgramParameter(S, Z.LINK_STATUS) ? (Z.useProgram(S), Z.bindAttribLocation(S, 0, "aVertexPosition"), v = c("uPMatrix"), d = c("pSize"), u = c("fillColor"), P = c("isBubble"), O = c("bubbleSizeAbs"), N = c("bubbleSizeByArea"), a = c("uSampler"), C = c("skipTranslation"), b = c("isCircle"), w = c("isInverted"), !0) : (x.push(Z.getProgramInfoLog(S)), F(), S = !1));
  16455. }
  16456. function W(c, p) {
  16457. Z && S && (c = R[c] = R[c] || Z.getUniformLocation(S, c), Z.uniform1f(c, p));
  16458. }
  16459. var R = {}, S, v, d, u, P, O, N, C, b, w, x = [], a;
  16460. return Z && !H() ? !1 : { psUniform: function() {
  16461. return d;
  16462. }, pUniform: function() {
  16463. return v;
  16464. }, fillColorUniform: function() {
  16465. return u;
  16466. }, setBubbleUniforms: function(c, p, i) {
  16467. var l = c.options, s = Number.MAX_VALUE, t = -Number.MAX_VALUE;
  16468. if (Z && S && c.is("bubble")) {
  16469. var o = c.getPxExtremes();
  16470. s = I(l.zMin, y(p, l.displayNegative === !1 ? l.zThreshold : -Number.MAX_VALUE, s)), t = I(l.zMax, Math.max(t, i)), Z.uniform1i(P, 1), Z.uniform1i(b, 1), Z.uniform1i(N, c.options.sizeBy !== "width"), Z.uniform1i(O, c.options.sizeByAbsoluteValue), W("bubbleZMin", s), W("bubbleZMax", t), W("bubbleZThreshold", c.options.zThreshold), W("bubbleMinSize", o.minPxSize), W("bubbleMaxSize", o.maxPxSize);
  16471. }
  16472. }, bind: function() {
  16473. Z && S && Z.useProgram(S);
  16474. }, program: function() {
  16475. return S;
  16476. }, create: H, setUniform: W, setPMatrix: function(c) {
  16477. Z && S && Z.uniformMatrix4fv(v, !1, c);
  16478. }, setColor: function(c) {
  16479. Z && S && Z.uniform4f(u, c[0] / 255, c[1] / 255, c[2] / 255, c[3]);
  16480. }, setPointSize: function(c) {
  16481. Z && S && Z.uniform1f(d, c);
  16482. }, setSkipTranslation: function(c) {
  16483. Z && S && Z.uniform1i(C, c === !0 ? 1 : 0);
  16484. }, setTexture: function(c) {
  16485. Z && S && Z.uniform1i(a, c);
  16486. }, setDrawAsCircle: function(c) {
  16487. Z && S && Z.uniform1i(b, c ? 1 : 0);
  16488. }, reset: function() {
  16489. Z && S && (Z.uniform1i(P, 0), Z.uniform1i(b, 0));
  16490. }, setInverted: function(c) {
  16491. Z && S && Z.uniform1i(w, c);
  16492. }, destroy: function() {
  16493. Z && S && (Z.deleteProgram(S), S = !1);
  16494. } };
  16495. };
  16496. }), E(f, "Extensions/Boost/WGLVBuffer.js", [], function() {
  16497. return function(h, y, j) {
  16498. function I() {
  16499. Z && (h.deleteBuffer(Z), F = Z = !1), W = 0, U = j || 2, R = [];
  16500. }
  16501. var Z = !1, F = !1, U = j || 2, H = !1, W = 0, R;
  16502. return {
  16503. destroy: I,
  16504. bind: function() {
  16505. if (!Z)
  16506. return !1;
  16507. h.vertexAttribPointer(F, U, h.FLOAT, !1, 0, 0);
  16508. },
  16509. data: R,
  16510. build: function(S, v, d) {
  16511. var u;
  16512. return R = S || [], R && R.length !== 0 || H ? (U = d || U, Z && h.deleteBuffer(Z), H || (u = new Float32Array(R)), Z = h.createBuffer(), h.bindBuffer(h.ARRAY_BUFFER, Z), h.bufferData(h.ARRAY_BUFFER, H || u, h.STATIC_DRAW), F = h.getAttribLocation(y.program(), v), h.enableVertexAttribArray(F), !0) : (I(), !1);
  16513. },
  16514. render: function(S, v, d) {
  16515. var u = H ? H.length : R.length;
  16516. return !Z || !u || ((!S || S > u || 0 > S) && (S = 0), (!v || v > u) && (v = u), S >= v) ? !1 : (h.drawArrays(h[(d || "points").toUpperCase()], S / U, (v - S) / U), !0);
  16517. },
  16518. allocate: function(S) {
  16519. W = -1, H = new Float32Array(4 * S);
  16520. },
  16521. push: function(S, v, d, u) {
  16522. H && (H[++W] = S, H[++W] = v, H[++W] = d, H[++W] = u);
  16523. }
  16524. };
  16525. };
  16526. }), E(f, "Extensions/Boost/WGLRenderer.js", [f["Core/Color/Color.js"], f["Extensions/Boost/WGLShader.js"], f["Extensions/Boost/WGLVBuffer.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(h, y, j, I, Z) {
  16527. var F = h.parse, U = I.doc, H = Z.isNumber, W = Z.isObject, R = Z.merge, S = Z.objectEach, v = Z.pick;
  16528. return function(d) {
  16529. function u(m) {
  16530. if (m.isSeriesBoosting) {
  16531. var L = !!m.options.stacking, Y = m.xData || m.options.xData || m.processedXData;
  16532. return L = (L ? m.data : Y || m.options.data).length, m.type === "treemap" ? L *= 12 : m.type === "heatmap" ? L *= 6 : T[m.type] && (L *= 2), L;
  16533. }
  16534. return 0;
  16535. }
  16536. function P() {
  16537. l.clear(l.COLOR_BUFFER_BIT | l.DEPTH_BUFFER_BIT);
  16538. }
  16539. function O(m, L) {
  16540. function Y($t) {
  16541. $t && (L.colorData.push($t[0]), L.colorData.push($t[1]), L.colorData.push($t[2]), L.colorData.push($t[3]));
  16542. }
  16543. function V($t, ue, ge, Re, De) {
  16544. Y(De), g.usePreallocated ? (p.push($t, ue, ge ? 1 : 0, Re || 1), i += 4) : (o.push($t), o.push(ue), o.push(ge ? 1 : 0), o.push(Re || 1));
  16545. }
  16546. function Q() {
  16547. L.segments.length && (L.segments[L.segments.length - 1].to = o.length || i);
  16548. }
  16549. function k() {
  16550. L.segments.length && L.segments[L.segments.length - 1].from === (o.length || i) || (Q(), L.segments.push({ from: o.length || i }));
  16551. }
  16552. function G($t, ue, ge, Re, De) {
  16553. Y(De), V($t + ge, ue), Y(De), V($t, ue), Y(De), V($t, ue + Re), Y(De), V($t, ue + Re), Y(De), V($t + ge, ue + Re), Y(De), V($t + ge, ue);
  16554. }
  16555. function z($t, ue) {
  16556. g.useGPUTranslations || (L.skipTranslation = !0, $t.x = ht.toPixels($t.x, !0), $t.y = st.toPixels($t.y, !0)), ue ? o = [$t.x, $t.y, 0, 2].concat(o) : V($t.x, $t.y, 0, 2);
  16557. }
  16558. var $ = m.pointArrayMap && m.pointArrayMap.join(",") === "low,high", q = m.chart, it = m.options, et = !!it.stacking, nt = it.data, rt = m.xAxis.getExtremes(), ct = rt.min, gt = rt.max;
  16559. rt = m.yAxis.getExtremes();
  16560. var dt = rt.min, lt = rt.max, at = m.xData || it.xData || m.processedXData, J = m.yData || it.yData || m.processedYData, tt = m.zData || it.zData || m.processedZData, st = m.yAxis, ht = m.xAxis, pt = m.chart.plotWidth, yt = !at || at.length === 0, vt = it.connectNulls;
  16561. rt = m.points || !1;
  16562. var Ct = !1, Pt = !1, kt, St, Dt = et ? m.data : at || nt, Lt = { x: Number.MAX_VALUE, y: 0 }, Nt = { x: -Number.MAX_VALUE, y: 0 }, Et = 0, Kt = !1, Gt, Wt, Jt, be, zt = -1, Vt = !1, Me = !1, _r, po = typeof q.index > "u", Pn = !1, En = !1, $e = !1, On = T[m.type], Ln = !1, Kr = !0, uo = !0, Hs = it.zoneAxis || "y", Dr = it.zones || !1, zi = !1, fo = it.threshold, _n = !1;
  16563. if (!(it.boostData && 0 < it.boostData.length)) {
  16564. if (it.gapSize && (_n = it.gapUnit !== "value" ? it.gapSize * m.closestPointRange : it.gapSize), Dr) {
  16565. var Ir = [];
  16566. Dr.forEach(function($t, ue) {
  16567. if ($t.color) {
  16568. var ge = F($t.color).rgba;
  16569. ge[0] /= 255, ge[1] /= 255, ge[2] /= 255, Ir[ue] = ge, zi || typeof $t.value < "u" || (zi = ge);
  16570. }
  16571. }), zi || (at = m.pointAttribs && m.pointAttribs().fill || m.color, zi = F(at).rgba, zi[0] /= 255, zi[1] /= 255, zi[2] /= 255);
  16572. }
  16573. if (q.inverted && (pt = m.chart.plotHeight), m.closestPointRangePx = Number.MAX_VALUE, k(), rt && 0 < rt.length)
  16574. L.skipTranslation = !0, L.drawMode = "triangles", rt[0].node && rt[0].node.levelDynamic && rt.sort(function($t, ue) {
  16575. if ($t.node) {
  16576. if ($t.node.levelDynamic > ue.node.levelDynamic)
  16577. return 1;
  16578. if ($t.node.levelDynamic < ue.node.levelDynamic)
  16579. return -1;
  16580. }
  16581. return 0;
  16582. }), rt.forEach(function($t) {
  16583. var ue = $t.plotY;
  16584. if (typeof ue < "u" && !isNaN(ue) && $t.y !== null && $t.shapeArgs) {
  16585. var ge = $t.shapeArgs;
  16586. ue = ge.x, ue = ue === void 0 ? 0 : ue;
  16587. var Re = ge.y;
  16588. Re = Re === void 0 ? 0 : Re;
  16589. var De = ge.width;
  16590. De = De === void 0 ? 0 : De, ge = ge.height, ge = ge === void 0 ? 0 : ge;
  16591. var Jr = q.styledMode ? $t.series.colorAttribs($t) : Jr = $t.series.pointAttribs($t);
  16592. $t = Jr["stroke-width"] || 0, $e = F(Jr.fill).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255, m.type === "treemap" && ($t = $t || 1, St = F(Jr.stroke).rgba, St[0] /= 255, St[1] /= 255, St[2] /= 255, G(ue, Re, De, ge, St), $t /= 2), m.type === "heatmap" && q.inverted && (ue = ht.len - ue, Re = st.len - Re, De = -De, ge = -ge), G(ue + $t, Re + $t, De - 2 * $t, ge - 2 * $t, $e);
  16593. }
  16594. });
  16595. else {
  16596. for (rt = function() {
  16597. if (Jt = Dt[++zt], typeof Jt > "u")
  16598. return "continue";
  16599. if (po)
  16600. return "break";
  16601. var $t = nt && nt[zt];
  16602. if (!yt && W($t, !0) && $t.color && ($e = F($t.color).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255), yt ? (Gt = Jt[0], Wt = Jt[1], Dt[zt + 1] && (Me = Dt[zt + 1][0]), Dt[zt - 1] && (Vt = Dt[zt - 1][0]), 3 <= Jt.length && (be = Jt[2], Jt[2] > L.zMax && (L.zMax = Jt[2]), Jt[2] < L.zMin && (L.zMin = Jt[2]))) : (Gt = Jt, Wt = J[zt], Dt[zt + 1] && (Me = Dt[zt + 1]), Dt[zt - 1] && (Vt = Dt[zt - 1]), tt && tt.length && (be = tt[zt], tt[zt] > L.zMax && (L.zMax = tt[zt]), tt[zt] < L.zMin && (L.zMin = tt[zt]))), !vt && (Gt === null || Wt === null))
  16603. return k(), "continue";
  16604. if (Me && Me >= ct && Me <= gt && (Pn = !0), Vt && Vt >= ct && Vt <= gt && (En = !0), $ ? (yt && (Wt = Jt.slice(1, 3)), _r = Wt[0], Wt = Wt[1]) : et && (Gt = Jt.x, Wt = Jt.stackY, _r = Wt - Jt.y), dt !== null && typeof dt < "u" && lt !== null && typeof lt < "u" && (Kr = Wt >= dt && Wt <= lt), Gt > gt && Nt.x < gt && (Nt.x = Gt, Nt.y = Wt), Gt < ct && Lt.x > ct && (Lt.x = Gt, Lt.y = Wt), Wt === null && vt)
  16605. return "continue";
  16606. if (Wt === null || !Kr && !Pn && !En)
  16607. return k(), "continue";
  16608. if ((Me >= ct || Gt >= ct) && (Vt <= gt || Gt <= gt) && (Ln = !0), !Ln && !Pn && !En)
  16609. return "continue";
  16610. if (_n && Gt - Vt > _n && k(), Dr) {
  16611. var ue;
  16612. Dr.some(function(ge, Re) {
  16613. var De = Dr[Re - 1];
  16614. return Hs === "x" ? typeof ge.value < "u" && Gt <= ge.value ? (Ir[Re] && (!De || Gt >= De.value) && (ue = Ir[Re]), !0) : !1 : typeof ge.value < "u" && Wt <= ge.value ? (Ir[Re] && (!De || Wt >= De.value) && (ue = Ir[Re]), !0) : !1;
  16615. }), $e = ue || zi || $e;
  16616. }
  16617. if (!g.useGPUTranslations && (L.skipTranslation = !0, Gt = ht.toPixels(Gt, !0), Wt = st.toPixels(Wt, !0), Gt > pt && L.drawMode === "points"))
  16618. return "continue";
  16619. if (L.hasMarkers && Ln && Ct !== !1 && (m.closestPointRangePx = Math.min(m.closestPointRangePx, Math.abs(Gt - Ct))), !g.useGPUTranslations && !g.usePreallocated && Ct && 1 > Math.abs(Gt - Ct) && Pt && 1 > Math.abs(Wt - Pt))
  16620. return g.debug.showSkipSummary && ++Et, "continue";
  16621. On && (kt = _r, (_r === !1 || typeof _r > "u") && (kt = 0 > Wt ? Wt : 0), $ || et || (kt = Math.max(fo === null ? dt : fo, dt)), g.useGPUTranslations || (kt = st.toPixels(kt, !0)), V(Gt, kt, 0, 0, $e)), it.step && !uo && V(Gt, Pt, 0, 2, $e), V(Gt, Wt, 0, m.type === "bubble" ? be || 1 : 2, $e), Ct = Gt, Pt = Wt, Kt = !0, uo = !1;
  16622. }; zt < Dt.length - 1 && rt() !== "break"; )
  16623. ;
  16624. g.debug.showSkipSummary && console.log("skipped points:", Et), Kt || vt === !1 || m.drawMode !== "line_strip" || (Lt.x < Number.MAX_VALUE && z(Lt, !0), Nt.x > -Number.MAX_VALUE && z(Nt));
  16625. }
  16626. Q();
  16627. }
  16628. }
  16629. function N() {
  16630. D = [], A.data = o = [], n = [], p && p.destroy();
  16631. }
  16632. function C(m) {
  16633. c && (c.setUniform("xAxisTrans", m.transA), c.setUniform("xAxisMin", m.min), c.setUniform("xAxisMinPad", m.minPixelPadding), c.setUniform("xAxisPointRange", m.pointRange), c.setUniform("xAxisLen", m.len), c.setUniform(
  16634. "xAxisPos",
  16635. m.pos
  16636. ), c.setUniform("xAxisCVSCoord", !m.horiz), c.setUniform("xAxisIsLog", !!m.logarithmic), c.setUniform("xAxisReversed", !!m.reversed));
  16637. }
  16638. function b(m) {
  16639. c && (c.setUniform("yAxisTrans", m.transA), c.setUniform("yAxisMin", m.min), c.setUniform("yAxisMinPad", m.minPixelPadding), c.setUniform("yAxisPointRange", m.pointRange), c.setUniform("yAxisLen", m.len), c.setUniform("yAxisPos", m.pos), c.setUniform("yAxisCVSCoord", !m.horiz), c.setUniform("yAxisIsLog", !!m.logarithmic), c.setUniform("yAxisReversed", !!m.reversed));
  16640. }
  16641. function w(m, L) {
  16642. c.setUniform("hasThreshold", m), c.setUniform("translatedThreshold", L);
  16643. }
  16644. function x(m) {
  16645. if (m)
  16646. s = m.chartWidth || 800, t = m.chartHeight || 400;
  16647. else
  16648. return !1;
  16649. if (!(l && s && t && c))
  16650. return !1;
  16651. g.debug.timeRendering && console.time("gl rendering"), l.canvas.width = s, l.canvas.height = t, c.bind(), l.viewport(0, 0, s, t), c.setPMatrix([2 / s, 0, 0, 0, 0, -(2 / t), 0, 0, 0, 0, -2, 0, -1, 1, -1, 1]), 1 < g.lineWidth && !I.isMS && l.lineWidth(g.lineWidth), p.build(A.data, "aVertexPosition", 4), p.bind(), c.setInverted(m.inverted), D.forEach(function(L, Y) {
  16652. var V = L.series.options, Q = V.marker, k = typeof V.lineWidth < "u" ? V.lineWidth : 1, G = V.threshold, z = H(G), $ = L.series.yAxis.getThreshold(G);
  16653. if (G = v(V.marker ? V.marker.enabled : null, L.series.xAxis.isRadial ? !0 : null, L.series.closestPointRangePx > 2 * ((V.marker ? V.marker.radius : 10) || 10)), Q = B[Q && Q.symbol || L.series.symbol] || B.circle, L.segments.length !== 0 && L.segments[0].from !== L.segments[0].to) {
  16654. if (Q.isReady && (l.bindTexture(l.TEXTURE_2D, Q.handle), c.setTexture(Q.handle)), m.styledMode ? Q = L.series.markerGroup && L.series.markerGroup.getStyle("fill") : (Q = L.drawMode === "points" && L.series.pointAttribs && L.series.pointAttribs().fill || L.series.color, V.colorByPoint && (Q = L.series.chart.options.colors[Y])), L.series.fillOpacity && V.fillOpacity && (Q = new h(Q).setOpacity(v(V.fillOpacity, 1)).get()), Q = F(Q).rgba, g.useAlpha || (Q[3] = 1), L.drawMode === "lines" && g.useAlpha && 1 > Q[3] && (Q[3] /= 10), V.boostBlending === "add" ? (l.blendFunc(l.SRC_ALPHA, l.ONE), l.blendEquation(l.FUNC_ADD)) : V.boostBlending === "mult" || V.boostBlending === "multiply" ? l.blendFunc(l.DST_COLOR, l.ZERO) : V.boostBlending === "darken" ? (l.blendFunc(l.ONE, l.ONE), l.blendEquation(l.FUNC_MIN)) : l.blendFuncSeparate(l.SRC_ALPHA, l.ONE_MINUS_SRC_ALPHA, l.ONE, l.ONE_MINUS_SRC_ALPHA), c.reset(), 0 < L.colorData.length ? (c.setUniform("hasColor", 1), Y = j(l, c), Y.build(L.colorData, "aColor", 4), Y.bind()) : l.disableVertexAttribArray(l.getAttribLocation(c.program(), "aColor")), c.setColor(Q), C(L.series.xAxis), b(L.series.yAxis), w(z, $), L.drawMode === "points" && (V.marker && H(V.marker.radius) ? c.setPointSize(2 * V.marker.radius) : c.setPointSize(1)), c.setSkipTranslation(L.skipTranslation), L.series.type === "bubble" && c.setBubbleUniforms(L.series, L.zMin, L.zMax), c.setDrawAsCircle(X[L.series.type] || !1), 0 < k || L.drawMode !== "line_strip")
  16655. for (k = 0; k < L.segments.length; k++)
  16656. p.render(L.segments[k].from, L.segments[k].to, L.drawMode);
  16657. if (L.hasMarkers && G)
  16658. for (V.marker && H(V.marker.radius) ? c.setPointSize(2 * V.marker.radius) : c.setPointSize(10), c.setDrawAsCircle(!0), k = 0; k < L.segments.length; k++)
  16659. p.render(L.segments[k].from, L.segments[k].to, "POINTS");
  16660. }
  16661. }), g.debug.timeRendering && console.timeEnd("gl rendering"), d && d(), N();
  16662. }
  16663. function a(m) {
  16664. if (P(), m.renderer.forExport)
  16665. return x(m);
  16666. _ ? x(m) : setTimeout(function() {
  16667. a(m);
  16668. }, 1);
  16669. }
  16670. var c = !1, p = !1, i = 0, l = !1, s = 0, t = 0, o = !1, n = !1, A = {}, _ = !1, D = [], B = {}, T = { column: !0, columnrange: !0, bar: !0, area: !0, arearange: !0 }, X = { scatter: !0, bubble: !0 }, g = { pointSize: 1, lineWidth: 1, fillColor: "#AA00AA", useAlpha: !0, usePreallocated: !1, useGPUTranslations: !1, debug: { timeRendering: !1, timeSeriesProcessing: !1, timeSetup: !1, timeBufferCopy: !1, timeKDTree: !1, showSkipSummary: !1 } };
  16671. return A = { allocateBufferForSingleSeries: function(m) {
  16672. var L = 0;
  16673. g.usePreallocated && (m.isSeriesBoosting && (L = u(m)), p.allocate(L));
  16674. }, pushSeries: function(m) {
  16675. 0 < D.length && D[D.length - 1].hasMarkers && (D[D.length - 1].markerTo = n.length), g.debug.timeSeriesProcessing && console.time("building " + m.type + " series");
  16676. var L = { segments: [], markerFrom: n.length, colorData: [], series: m, zMin: Number.MAX_VALUE, zMax: -Number.MAX_VALUE, hasMarkers: m.options.marker ? m.options.marker.enabled !== !1 : !1, showMarkers: !0, drawMode: {
  16677. area: "lines",
  16678. arearange: "lines",
  16679. areaspline: "line_strip",
  16680. column: "lines",
  16681. columnrange: "lines",
  16682. bar: "lines",
  16683. line: "line_strip",
  16684. scatter: "points",
  16685. heatmap: "triangles",
  16686. treemap: "triangles",
  16687. bubble: "points"
  16688. }[m.type] || "line_strip" };
  16689. m.index >= D.length ? D.push(L) : D[m.index] = L, O(m, L), g.debug.timeSeriesProcessing && console.timeEnd("building " + m.type + " series");
  16690. }, setSize: function(m, L) {
  16691. s === m && t === L || !c || (s = m, t = L, c.bind(), c.setPMatrix([2 / s, 0, 0, 0, 0, -(2 / t), 0, 0, 0, 0, -2, 0, -1, 1, -1, 1]));
  16692. }, inited: function() {
  16693. return _;
  16694. }, setThreshold: w, init: function(m, L) {
  16695. function Y(k, G) {
  16696. var z = { isReady: !1, texture: U.createElement("canvas"), handle: l.createTexture() }, $ = z.texture.getContext("2d");
  16697. B[k] = z, z.texture.width = 512, z.texture.height = 512, $.mozImageSmoothingEnabled = !1, $.webkitImageSmoothingEnabled = !1, $.msImageSmoothingEnabled = !1, $.imageSmoothingEnabled = !1, $.strokeStyle = "rgba(255, 255, 255, 0)", $.fillStyle = "#FFF", G($);
  16698. try {
  16699. l.activeTexture(l.TEXTURE0), l.bindTexture(l.TEXTURE_2D, z.handle), l.texImage2D(l.TEXTURE_2D, 0, l.RGBA, l.RGBA, l.UNSIGNED_BYTE, z.texture), l.texParameteri(l.TEXTURE_2D, l.TEXTURE_WRAP_S, l.CLAMP_TO_EDGE), l.texParameteri(
  16700. l.TEXTURE_2D,
  16701. l.TEXTURE_WRAP_T,
  16702. l.CLAMP_TO_EDGE
  16703. ), l.texParameteri(l.TEXTURE_2D, l.TEXTURE_MAG_FILTER, l.LINEAR), l.texParameteri(l.TEXTURE_2D, l.TEXTURE_MIN_FILTER, l.LINEAR), l.bindTexture(l.TEXTURE_2D, null), z.isReady = !0;
  16704. } catch {
  16705. }
  16706. }
  16707. var V = 0, Q = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
  16708. if (_ = !1, !m)
  16709. return !1;
  16710. for (g.debug.timeSetup && console.time("gl setup"); V < Q.length && !(l = m.getContext(Q[V], {})); V++)
  16711. ;
  16712. if (l)
  16713. L || N();
  16714. else
  16715. return !1;
  16716. return l.enable(l.BLEND), l.blendFunc(l.SRC_ALPHA, l.ONE_MINUS_SRC_ALPHA), l.disable(l.DEPTH_TEST), l.depthFunc(l.LESS), c = y(l), c ? (p = j(l, c), Y("circle", function(k) {
  16717. k.beginPath(), k.arc(256, 256, 256, 0, 2 * Math.PI), k.stroke(), k.fill();
  16718. }), Y("square", function(k) {
  16719. k.fillRect(0, 0, 512, 512);
  16720. }), Y("diamond", function(k) {
  16721. k.beginPath(), k.moveTo(256, 0), k.lineTo(512, 256), k.lineTo(256, 512), k.lineTo(0, 256), k.lineTo(256, 0), k.fill();
  16722. }), Y("triangle", function(k) {
  16723. k.beginPath(), k.moveTo(0, 512), k.lineTo(256, 0), k.lineTo(512, 512), k.lineTo(0, 512), k.fill();
  16724. }), Y("triangle-down", function(k) {
  16725. k.beginPath(), k.moveTo(0, 0), k.lineTo(256, 512), k.lineTo(
  16726. 512,
  16727. 0
  16728. ), k.lineTo(0, 0), k.fill();
  16729. }), _ = !0, g.debug.timeSetup && console.timeEnd("gl setup"), !0) : !1;
  16730. }, render: a, settings: g, valid: function() {
  16731. return l !== !1;
  16732. }, clear: P, flush: N, setXAxis: C, setYAxis: b, data: o, gl: function() {
  16733. return l;
  16734. }, allocateBuffer: function(m) {
  16735. var L = 0;
  16736. g.usePreallocated && (m.series.forEach(function(Y) {
  16737. Y.isSeriesBoosting && (L += u(Y));
  16738. }), p.allocate(L));
  16739. }, destroy: function() {
  16740. N(), p.destroy(), c.destroy(), l && (S(B, function(m) {
  16741. m.handle && l.deleteTexture(m.handle);
  16742. }), l.canvas.width = 1, l.canvas.height = 1);
  16743. }, setOptions: function(m) {
  16744. R(
  16745. !0,
  16746. g,
  16747. m
  16748. );
  16749. } };
  16750. };
  16751. }), E(f, "Extensions/Boost/BoostAttach.js", [f["Core/Chart/Chart.js"], f["Extensions/Boost/WGLRenderer.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  16752. var Z = j.doc, F = I.error, U;
  16753. return function(H, W) {
  16754. var R = H.chartWidth, S = H.chartHeight, v = H, d = H.seriesGroup || W.group, u = Z.implementation.hasFeature("www.http://w3.org/TR/SVG11/feature#Extensibility", "1.1");
  16755. return v = H.isChartSeriesBoosting() ? H : W, u = !1, U || (U = Z.createElement("canvas")), v.renderTarget || (v.canvas = U, H.renderer.forExport || !u ? (v.renderTarget = H.renderer.image("", 0, 0, R, S).addClass("highcharts-boost-canvas").add(d), v.boostClear = function() {
  16756. v.renderTarget.attr({ href: "" });
  16757. }, v.boostCopy = function() {
  16758. v.boostResizeTarget(), v.renderTarget.attr({ href: v.canvas.toDataURL("image/png") });
  16759. }) : (v.renderTargetFo = H.renderer.createElement("foreignObject").add(d), v.renderTarget = Z.createElement("canvas"), v.renderTargetCtx = v.renderTarget.getContext("2d"), v.renderTargetFo.element.appendChild(v.renderTarget), v.boostClear = function() {
  16760. v.renderTarget.width = v.canvas.width, v.renderTarget.height = v.canvas.height;
  16761. }, v.boostCopy = function() {
  16762. v.renderTarget.width = v.canvas.width, v.renderTarget.height = v.canvas.height, v.renderTargetCtx.drawImage(v.canvas, 0, 0);
  16763. }), v.boostResizeTarget = function() {
  16764. R = H.chartWidth, S = H.chartHeight, (v.renderTargetFo || v.renderTarget).attr({ x: 0, y: 0, width: R, height: S }).css({ pointerEvents: "none", mixedBlendMode: "normal", opacity: 1 }), v instanceof h && v.markerGroup.translate(H.plotLeft, H.plotTop);
  16765. }, v.boostClipRect = H.renderer.clipRect(), (v.renderTargetFo || v.renderTarget).clip(v.boostClipRect), v instanceof h && (v.markerGroup = v.renderer.g().add(d), v.markerGroup.translate(W.xAxis.pos, W.yAxis.pos))), v.canvas.width = R, v.canvas.height = S, v.boostClipRect.attr(H.getBoostClipRect(v)), v.boostResizeTarget(), v.boostClear(), v.ogl || (v.ogl = y(function() {
  16766. v.ogl.settings.debug.timeBufferCopy && console.time("buffer copy"), v.boostCopy(), v.ogl.settings.debug.timeBufferCopy && console.timeEnd("buffer copy");
  16767. }), v.ogl.init(v.canvas) || F("[highcharts boost] - unable to init WebGL renderer"), v.ogl.setOptions(H.options.boost || {}), v instanceof h && v.ogl.allocateBuffer(H)), v.ogl.setSize(R, S), v.ogl;
  16768. };
  16769. }), E(f, "Extensions/Boost/BoostUtils.js", [f["Core/Globals.js"], f["Extensions/Boost/BoostableMap.js"], f["Extensions/Boost/BoostAttach.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  16770. function Z() {
  16771. for (var d = [], u = 0; u < arguments.length; u++)
  16772. d[u] = arguments[u];
  16773. var P = -Number.MAX_VALUE;
  16774. return d.forEach(function(O) {
  16775. if (typeof O < "u" && O !== null && typeof O.length < "u" && 0 < O.length)
  16776. return P = O.length, !0;
  16777. }), P;
  16778. }
  16779. function F(d, u, P) {
  16780. d && u.renderTarget && u.canvas && !(P || u.chart).isChartSeriesBoosting() && d.render(P || u.chart);
  16781. }
  16782. function U(d, u) {
  16783. d && u.renderTarget && u.canvas && !u.chart.isChartSeriesBoosting() && d.allocateBufferForSingleSeries(u);
  16784. }
  16785. function H(d, u, P, O, N, C) {
  16786. N = N || 0, O = O || 3e3;
  16787. for (var b = N + O, w = !0; w && N < b && N < d.length; )
  16788. w = u(d[N], N), ++N;
  16789. w && (N < d.length ? C ? H(d, u, P, O, N, C) : R.requestAnimationFrame ? R.requestAnimationFrame(function() {
  16790. H(d, u, P, O, N);
  16791. }) : setTimeout(function() {
  16792. H(d, u, P, O, N);
  16793. }) : P && P());
  16794. }
  16795. function W() {
  16796. var d = 0, u, P = [
  16797. "webgl",
  16798. "experimental-webgl",
  16799. "moz-webgl",
  16800. "webkit-3d"
  16801. ], O = !1;
  16802. if (typeof R.WebGLRenderingContext < "u")
  16803. for (u = S.createElement("canvas"); d < P.length; d++)
  16804. try {
  16805. if (O = u.getContext(P[d]), typeof O < "u" && O !== null)
  16806. return !0;
  16807. } catch {
  16808. }
  16809. return !1;
  16810. }
  16811. var R = h.win, S = h.doc, v = I.pick;
  16812. return I = { patientMax: Z, boostEnabled: function(d) {
  16813. return v(d && d.options && d.options.boost && d.options.boost.enabled, !0);
  16814. }, shouldForceChartSeriesBoosting: function(d) {
  16815. var u = 0, P = 0, O = v(d.options.boost && d.options.boost.allowForce, !0);
  16816. if (typeof d.boostForceChartBoost < "u")
  16817. return d.boostForceChartBoost;
  16818. if (1 < d.series.length)
  16819. for (var N = 0; N < d.series.length; N++) {
  16820. var C = d.series[N];
  16821. C.options.boostThreshold !== 0 && C.visible !== !1 && C.type !== "heatmap" && (y[C.type] && ++P, Z(C.processedXData, C.options.data, C.points) >= (C.options.boostThreshold || Number.MAX_VALUE) && ++u);
  16822. }
  16823. return d.boostForceChartBoost = O && (P === d.series.length && 0 < u || 5 < u), d.boostForceChartBoost;
  16824. }, renderIfNotSeriesBoosting: F, allocateIfNotSeriesBoosting: U, eachAsync: H, hasWebGLSupport: W, pointDrawHandler: function(d) {
  16825. var u = !0;
  16826. if (this.chart.options && this.chart.options.boost && (u = typeof this.chart.options.boost.enabled > "u" ? !0 : this.chart.options.boost.enabled), !u || !this.isSeriesBoosting)
  16827. return d.call(this);
  16828. this.chart.isBoosting = !0, (d = j(this.chart, this)) && (U(d, this), d.pushSeries(this)), F(d, this);
  16829. } }, h.hasWebGLSupport = W, I;
  16830. }), E(
  16831. f,
  16832. "Extensions/Boost/BoostInit.js",
  16833. [f["Core/Chart/Chart.js"], f["Core/Globals.js"], f["Core/Series/Series.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"], f["Extensions/Boost/BoostUtils.js"], f["Extensions/Boost/BoostAttach.js"]],
  16834. function(h, y, j, I, Z, F, U) {
  16835. var H = y.noop, W = I.seriesTypes, R = Z.addEvent, S = Z.extend, v = Z.fireEvent, d = Z.wrap, u = F.eachAsync, P = F.pointDrawHandler, O = F.allocateIfNotSeriesBoosting, N = F.renderIfNotSeriesBoosting, C = F.shouldForceChartSeriesBoosting, b;
  16836. return function() {
  16837. S(j.prototype, { renderCanvas: function() {
  16838. function w(dt, lt) {
  16839. var at = !1, J = typeof i.index > "u", tt = !0;
  16840. if (typeof dt > "u")
  16841. return !0;
  16842. if (!J) {
  16843. if (G)
  16844. var st = dt[0], ht = dt[1];
  16845. else
  16846. st = dt, ht = o[lt];
  16847. Y ? (G && (ht = dt.slice(1, 3)), at = ht[0], ht = ht[1]) : V && (st = dt.x, ht = dt.stackY, at = ht - dt.y), k || (tt = ht >= D && ht <= B), ht !== null && st >= A && st <= _ && tt && (dt = l.toPixels(st, !0), g ? ((typeof q > "u" || dt === X) && (Y || (at = ht), (typeof it > "u" || ht > $) && ($ = ht, it = lt), (typeof q > "u" || at < z) && (z = at, q = lt)), dt !== X && (typeof q < "u" && (ht = s.toPixels($, !0), L = s.toPixels(z, !0), rt(dt, ht, it), L !== ht && rt(dt, L, q)), q = it = void 0, X = dt)) : (ht = Math.ceil(s.toPixels(ht, !0)), rt(dt, ht, lt)));
  16848. }
  16849. return !J;
  16850. }
  16851. function x() {
  16852. v(a, "renderedCanvas"), delete a.buildKDTree, a.buildKDTree(), ct.debug.timeKDTree && console.timeEnd("kd tree building");
  16853. }
  16854. var a = this, c = a.options || {}, p = !1, i = a.chart, l = this.xAxis, s = this.yAxis, t = c.xData || a.processedXData, o = c.yData || a.processedYData, n = c.data;
  16855. p = l.getExtremes();
  16856. var A = p.min, _ = p.max;
  16857. p = s.getExtremes();
  16858. var D = p.min, B = p.max, T = {}, X, g = !!a.sampling, m = c.enableMouseTracking !== !1, L = s.getThreshold(c.threshold), Y = a.pointArrayMap && a.pointArrayMap.join(",") === "low,high", V = !!c.stacking, Q = a.cropStart || 0, k = a.requireSorting, G = !t, z, $, q, it, et = c.findNearestPointBy === "x", nt = this.xData || this.options.xData || this.processedXData || !1, rt = function(dt, lt, at) {
  16859. dt = Math.ceil(dt), b = et ? dt : dt + "," + lt, m && !T[b] && (T[b] = !0, i.inverted && (dt = l.len - dt, lt = s.len - lt), gt.push({ x: nt ? nt[Q + at] : !1, clientX: dt, plotX: dt, plotY: lt, i: Q + at }));
  16860. };
  16861. p = U(i, a), i.isBoosting = !0;
  16862. var ct = p.settings;
  16863. if (this.visible) {
  16864. (this.points || this.graph) && this.destroyGraphics(), i.isChartSeriesBoosting() ? (this.markerGroup && this.markerGroup !== i.markerGroup && this.markerGroup.destroy(), this.markerGroup = i.markerGroup, this.renderTarget && (this.renderTarget = this.renderTarget.destroy())) : (this.markerGroup === i.markerGroup && (this.markerGroup = void 0), this.markerGroup = a.plotGroup("markerGroup", "markers", !0, 1, i.seriesGroup));
  16865. var gt = this.points = [];
  16866. a.buildKDTree = H, p && (O(p, this), p.pushSeries(a), N(p, this, i)), i.renderer.forExport || (ct.debug.timeKDTree && console.time("kd tree building"), u(V ? a.data : t || n, w, x));
  16867. }
  16868. } }), ["heatmap", "treemap"].forEach(function(w) {
  16869. W[w] && d(W[w].prototype, "drawPoints", P);
  16870. }), W.bubble && (delete W.bubble.prototype.buildKDTree, d(W.bubble.prototype, "markerAttribs", function(w) {
  16871. return this.isSeriesBoosting ? !1 : w.apply(this, [].slice.call(arguments, 1));
  16872. })), W.scatter.prototype.fill = !0, S(W.area.prototype, { fill: !0, fillOpacity: !0, sampling: !0 }), S(W.column.prototype, { fill: !0, sampling: !0 }), h.prototype.propsRequireUpdateSeries.push("boost"), h.prototype.callbacks.push(function(w) {
  16873. R(w, "predraw", function() {
  16874. w.boostForceChartBoost = void 0, w.boostForceChartBoost = C(w), w.isBoosting = !1, !w.isChartSeriesBoosting() && w.didBoost && (w.didBoost = !1), w.boostClear && w.boostClear(), w.canvas && w.ogl && w.isChartSeriesBoosting() && (w.didBoost = !0, w.ogl.allocateBuffer(w)), w.markerGroup && w.xAxis && 0 < w.xAxis.length && w.yAxis && 0 < w.yAxis.length && w.markerGroup.translate(w.xAxis[0].pos, w.yAxis[0].pos);
  16875. }), R(w, "render", function() {
  16876. w.ogl && w.isChartSeriesBoosting() && w.ogl.render(w);
  16877. });
  16878. var x = -1, a = -1;
  16879. R(w.pointer, "afterGetHoverData", function() {
  16880. var c = w.hoverSeries;
  16881. if (w.markerGroup && c) {
  16882. var p = w.inverted ? c.yAxis : c.xAxis;
  16883. c = w.inverted ? c.xAxis : c.yAxis, (p && p.pos !== x || c && c.pos !== a) && (w.markerGroup.translate(p.pos, c.pos), x = p.pos, a = c.pos);
  16884. }
  16885. });
  16886. });
  16887. };
  16888. }
  16889. ), E(
  16890. f,
  16891. "Extensions/BoostCanvas.js",
  16892. [f["Core/Chart/Chart.js"], f["Core/Color/Color.js"], f["Core/Globals.js"], f["Core/Series/Series.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]],
  16893. function(h, y, j, I, Z, F) {
  16894. var U = y.parse, H = j.doc, W = j.noop, R = Z.seriesTypes, S = F.addEvent, v = F.extend, d = F.fireEvent, u = F.isNumber, P = F.merge, O = F.pick, N = F.wrap, C;
  16895. return function() {
  16896. j.seriesTypes.heatmap && N(j.seriesTypes.heatmap.prototype, "drawPoints", function() {
  16897. var b = this.chart, w = this.getContext(), x = this.chart.inverted, a = this.xAxis, c = this.yAxis;
  16898. w ? (this.points.forEach(function(p) {
  16899. var i = p.plotY;
  16900. if (typeof i < "u" && !isNaN(i) && p.y !== null && w) {
  16901. var l = p.shapeArgs || {};
  16902. i = l.x, i = i === void 0 ? 0 : i;
  16903. var s = l.y;
  16904. s = s === void 0 ? 0 : s;
  16905. var t = l.width;
  16906. t = t === void 0 ? 0 : t, l = l.height, l = l === void 0 ? 0 : l, p = b.styledMode ? p.series.colorAttribs(p) : p.series.pointAttribs(p), w.fillStyle = p.fill, x ? w.fillRect(c.len - s + a.left, a.len - i + c.top, -l, -t) : w.fillRect(i + a.left, s + c.top, t, l);
  16907. }
  16908. }), this.canvasToSVG()) : this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser");
  16909. }), v(I.prototype, { getContext: function() {
  16910. var b = this.chart, w = b.chartWidth, x = b.chartHeight, a = b.seriesGroup || this.group, c = this, p = function(l, s, t, o, n, A, _) {
  16911. l.call(this, t, s, o, n, A, _);
  16912. };
  16913. b.isChartSeriesBoosting() && (c = b, a = b.seriesGroup);
  16914. var i = c.ctx;
  16915. return c.canvas || (c.canvas = H.createElement("canvas"), c.renderTarget = b.renderer.image("", 0, 0, w, x).addClass("highcharts-boost-canvas").add(a), c.ctx = i = c.canvas.getContext("2d"), b.inverted && ["moveTo", "lineTo", "rect", "arc"].forEach(function(l) {
  16916. N(i, l, p);
  16917. }), c.boostCopy = function() {
  16918. c.renderTarget.attr({ href: c.canvas.toDataURL("image/png") });
  16919. }, c.boostClear = function() {
  16920. i.clearRect(0, 0, c.canvas.width, c.canvas.height), c === this && c.renderTarget.attr({ href: "" });
  16921. }, c.boostClipRect = b.renderer.clipRect(), c.renderTarget.clip(c.boostClipRect)), c.canvas.width !== w && (c.canvas.width = w), c.canvas.height !== x && (c.canvas.height = x), c.renderTarget.attr({ x: 0, y: 0, width: w, height: x, style: "pointer-events: none", href: "" }), c.boostClipRect.attr(b.getBoostClipRect(c)), i;
  16922. }, canvasToSVG: function() {
  16923. this.chart.isChartSeriesBoosting() ? this.boostClear && this.boostClear() : (this.boostCopy || this.chart.boostCopy) && (this.boostCopy || this.chart.boostCopy)();
  16924. }, cvsLineTo: function(b, w, x) {
  16925. b.lineTo(w, x);
  16926. }, renderCanvas: function() {
  16927. var b = this, w = b.options, x = b.chart, a = this.xAxis, c = this.yAxis, p = (x.options.boost || {}).timeRendering || !1, i = 0, l = b.processedXData, s = b.processedYData, t = w.data, o = a.getExtremes(), n = o.min, A = o.max;
  16928. o = c.getExtremes();
  16929. var _ = o.min, D = o.max, B = {}, T, X = !!b.sampling, g = w.marker && w.marker.radius, m = this.cvsDrawPoint, L = w.lineWidth ? this.cvsLineTo : void 0, Y = g && 1 >= g ? this.cvsMarkerSquare : this.cvsMarkerCircle, V = this.cvsStrokeBatch || 1e3, Q = w.enableMouseTracking !== !1, k;
  16930. o = w.threshold;
  16931. var G = c.getThreshold(o), z = u(o), $ = G, q = this.fill, it = b.pointArrayMap && b.pointArrayMap.join(",") === "low,high", et = !!w.stacking, nt = b.cropStart || 0;
  16932. o = x.options.loading;
  16933. var rt = b.requireSorting, ct, gt = w.connectNulls, dt = !l, lt, at, J, tt, st, ht = et ? b.data : l || t, pt = b.fillOpacity ? y.parse(b.color).setOpacity(O(w.fillOpacity, 0.75)).get() : b.color, yt = function() {
  16934. q ? (Dt.fillStyle = pt, Dt.fill()) : (Dt.strokeStyle = b.color, Dt.lineWidth = w.lineWidth, Dt.stroke());
  16935. }, vt = function(Lt, Nt, Et, Kt) {
  16936. i === 0 && (Dt.beginPath(), L && (Dt.lineJoin = "round")), x.scroller && b.options.className === "highcharts-navigator-series" ? (Nt += x.scroller.top, Et && (Et += x.scroller.top)) : Nt += x.plotTop, Lt += x.plotLeft, ct ? Dt.moveTo(Lt, Nt) : m ? m(Dt, Lt, Nt, Et, k) : L ? L(Dt, Lt, Nt) : Y && Y.call(b, Dt, Lt, Nt, g, Kt), i += 1, i === V && (yt(), i = 0), k = { clientX: Lt, plotY: Nt, yBottom: Et };
  16937. }, Ct = w.findNearestPointBy === "x", Pt = this.xData || this.options.xData || this.processedXData || !1, kt = function(Lt, Nt, Et) {
  16938. st = Ct ? Lt : Lt + "," + Nt, Q && !B[st] && (B[st] = !0, x.inverted && (Lt = a.len - Lt, Nt = c.len - Nt), St.push({ x: Pt ? Pt[nt + Et] : !1, clientX: Lt, plotX: Lt, plotY: Nt, i: nt + Et }));
  16939. };
  16940. this.renderTarget && this.renderTarget.attr({ href: "" }), (this.points || this.graph) && this.destroyGraphics(), b.plotGroup("group", "series", b.visible ? "visible" : "hidden", w.zIndex, x.seriesGroup), b.markerGroup = b.group, S(b, "destroy", function() {
  16941. b.markerGroup = null;
  16942. });
  16943. var St = this.points = [], Dt = this.getContext();
  16944. b.buildKDTree = W, this.boostClear && this.boostClear(), this.visible && (99999 < t.length && (x.options.loading = P(o, { labelStyle: {
  16945. backgroundColor: U("#ffffff").setOpacity(0.75).get(),
  16946. padding: "1em",
  16947. borderRadius: "0.5em"
  16948. }, style: { backgroundColor: "none", opacity: 1 } }), F.clearTimeout(C), x.showLoading("Drawing..."), x.options.loading = o), p && console.time("canvas rendering"), j.eachAsync(ht, function(Lt, Nt) {
  16949. var Et = !1, Kt = !1, Gt = !1, Wt = !1, Jt = typeof x.index > "u", be = !0;
  16950. if (!Jt) {
  16951. if (dt) {
  16952. var zt = Lt[0], Vt = Lt[1];
  16953. ht[Nt + 1] && (Gt = ht[Nt + 1][0]), ht[Nt - 1] && (Wt = ht[Nt - 1][0]);
  16954. } else
  16955. zt = Lt, Vt = s[Nt], ht[Nt + 1] && (Gt = ht[Nt + 1]), ht[Nt - 1] && (Wt = ht[Nt - 1]);
  16956. if (Gt && Gt >= n && Gt <= A && (Et = !0), Wt && Wt >= n && Wt <= A && (Kt = !0), it) {
  16957. dt && (Vt = Lt.slice(1, 3));
  16958. var Me = Vt[0];
  16959. Vt = Vt[1];
  16960. } else
  16961. et && (zt = Lt.x, Vt = Lt.stackY, Me = Vt - Lt.y);
  16962. Lt = Vt === null, rt || (be = Vt >= _ && Vt <= D), !Lt && (zt >= n && zt <= A && be || Et || Kt) && (zt = Math.round(a.toPixels(zt, !0)), X ? ((typeof J > "u" || zt === T) && (it || (Me = Vt), (typeof tt > "u" || Vt > at) && (at = Vt, tt = Nt), (typeof J > "u" || Me < lt) && (lt = Me, J = Nt)), zt !== T && (typeof J < "u" && (Vt = c.toPixels(at, !0), G = c.toPixels(lt, !0), vt(zt, z ? Math.min(Vt, $) : Vt, z ? Math.max(G, $) : G, Nt), kt(zt, Vt, tt), G !== Vt && kt(zt, G, J)), J = tt = void 0, T = zt)) : (Vt = Math.round(c.toPixels(Vt, !0)), vt(zt, Vt, G, Nt), kt(zt, Vt, Nt))), ct = Lt && !gt, Nt % 5e4 === 0 && (b.boostCopy || b.chart.boostCopy) && (b.boostCopy || b.chart.boostCopy)();
  16963. }
  16964. return !Jt;
  16965. }, function() {
  16966. var Lt = x.loadingDiv, Nt = x.loadingShown;
  16967. yt(), b.canvasToSVG(), p && console.timeEnd("canvas rendering"), d(b, "renderedCanvas"), Nt && (v(Lt.style, { transition: "opacity 250ms", opacity: 0 }), x.loadingShown = !1, C = setTimeout(function() {
  16968. Lt.parentNode && Lt.parentNode.removeChild(Lt), x.loadingDiv = x.loadingSpan = null;
  16969. }, 250)), delete b.buildKDTree, b.buildKDTree();
  16970. }, x.renderer.forExport ? Number.MAX_VALUE : void 0));
  16971. } }), R.scatter.prototype.cvsMarkerCircle = function(b, w, x, a) {
  16972. b.moveTo(w, x), b.arc(w, x, a, 0, 2 * Math.PI, !1);
  16973. }, R.scatter.prototype.cvsMarkerSquare = function(b, w, x, a) {
  16974. b.rect(w - a, x - a, 2 * a, 2 * a);
  16975. }, R.scatter.prototype.fill = !0, R.bubble && (R.bubble.prototype.cvsMarkerCircle = function(b, w, x, a, c) {
  16976. b.moveTo(w, x), b.arc(w, x, this.radii && this.radii[c], 0, 2 * Math.PI, !1);
  16977. }, R.bubble.prototype.cvsStrokeBatch = 1), v(R.area.prototype, {
  16978. cvsDrawPoint: function(b, w, x, a, c) {
  16979. c && w !== c.clientX && (b.moveTo(c.clientX, c.yBottom), b.lineTo(c.clientX, c.plotY), b.lineTo(w, x), b.lineTo(w, a));
  16980. },
  16981. fill: !0,
  16982. fillOpacity: !0,
  16983. sampling: !0
  16984. }), v(R.column.prototype, { cvsDrawPoint: function(b, w, x, a) {
  16985. b.rect(w - 1, x, 1, a - x);
  16986. }, fill: !0, sampling: !0 }), h.prototype.callbacks.push(function(b) {
  16987. S(b, "predraw", function() {
  16988. b.renderTarget && b.renderTarget.attr({ href: "" }), b.canvas && b.canvas.getContext("2d").clearRect(0, 0, b.canvas.width, b.canvas.height);
  16989. }), S(b, "render", function() {
  16990. b.boostCopy && b.boostCopy();
  16991. });
  16992. });
  16993. };
  16994. }
  16995. ), E(f, "Extensions/Boost/BoostOverrides.js", [
  16996. f["Core/Chart/Chart.js"],
  16997. f["Core/DefaultOptions.js"],
  16998. f["Core/Series/Point.js"],
  16999. f["Core/Series/Series.js"],
  17000. f["Core/Series/SeriesRegistry.js"],
  17001. f["Core/Utilities.js"],
  17002. f["Extensions/Boost/BoostUtils.js"],
  17003. f["Extensions/Boost/Boostables.js"],
  17004. f["Extensions/Boost/BoostableMap.js"]
  17005. ], function(h, y, j, I, Z, F, U, H, W) {
  17006. y = y.getOptions;
  17007. var R = Z.seriesTypes;
  17008. Z = F.addEvent;
  17009. var S = F.error, v = F.isArray, d = F.isNumber, u = F.pick, P = F.wrap, O = U.boostEnabled, N = U.shouldForceChartSeriesBoosting, C = y().plotOptions;
  17010. h.prototype.isChartSeriesBoosting = function() {
  17011. return u(this.options.boost && this.options.boost.seriesThreshold, 50) <= this.series.length || N(this);
  17012. }, h.prototype.getBoostClipRect = function(b) {
  17013. var w = { x: this.plotLeft, y: this.plotTop, width: this.plotWidth, height: this.plotHeight };
  17014. return b === this && (b = this.inverted ? this.xAxis : this.yAxis, 1 >= b.length ? (w.y = Math.min(b[0].pos, w.y), w.height = b[0].pos - this.plotTop + b[0].len) : w.height = this.plotHeight), w;
  17015. }, I.prototype.getPoint = function(b) {
  17016. var w = b, x = this.xData || this.options.xData || this.processedXData || !1;
  17017. return !b || b instanceof this.pointClass || (w = new this.pointClass().init(this, this.options.data[b.i], x ? x[b.i] : void 0), w.category = u(this.xAxis.categories ? this.xAxis.categories[w.x] : w.x, w.x), w.dist = b.dist, w.distX = b.distX, w.plotX = b.plotX, w.plotY = b.plotY, w.index = b.i, w.isInside = this.isPointInside(b)), w;
  17018. }, P(I.prototype, "searchPoint", function(b) {
  17019. return this.getPoint(b.apply(this, [].slice.call(arguments, 1)));
  17020. }), P(j.prototype, "haloPath", function(b) {
  17021. var w = this.series, x = this.plotX, a = this.plotY, c = w.chart.inverted;
  17022. w.isSeriesBoosting && c && (this.plotX = w.yAxis.len - a, this.plotY = w.xAxis.len - x);
  17023. var p = b.apply(this, Array.prototype.slice.call(
  17024. arguments,
  17025. 1
  17026. ));
  17027. return w.isSeriesBoosting && c && (this.plotX = x, this.plotY = a), p;
  17028. }), P(I.prototype, "markerAttribs", function(b, w) {
  17029. var x = w.plotX, a = w.plotY, c = this.chart.inverted;
  17030. this.isSeriesBoosting && c && (w.plotX = this.yAxis.len - a, w.plotY = this.xAxis.len - x);
  17031. var p = b.apply(this, Array.prototype.slice.call(arguments, 1));
  17032. return this.isSeriesBoosting && c && (w.plotX = x, w.plotY = a), p;
  17033. }), Z(I, "destroy", function() {
  17034. var b = this, w = b.chart;
  17035. w.markerGroup === b.markerGroup && (b.markerGroup = null), w.hoverPoints && (w.hoverPoints = w.hoverPoints.filter(function(x) {
  17036. return x.series === b;
  17037. })), w.hoverPoint && w.hoverPoint.series === b && (w.hoverPoint = null);
  17038. }), P(I.prototype, "getExtremes", function(b) {
  17039. return this.isSeriesBoosting && this.hasExtremes && this.hasExtremes() ? {} : b.apply(this, Array.prototype.slice.call(arguments, 1));
  17040. }), ["translate", "generatePoints", "drawTracker", "drawPoints", "render"].forEach(function(b) {
  17041. function w(x) {
  17042. var a = this.options.stacking && (b === "translate" || b === "generatePoints");
  17043. !this.isSeriesBoosting || a || !O(this.chart) || this.type === "heatmap" || this.type === "treemap" || !W[this.type] || this.options.boostThreshold === 0 ? x.call(this) : this[b + "Canvas"] && this[b + "Canvas"]();
  17044. }
  17045. P(I.prototype, b, w), b === "translate" && "column bar arearange columnrange heatmap treemap".split(" ").forEach(function(x) {
  17046. R[x] && P(R[x].prototype, b, w);
  17047. });
  17048. }), P(I.prototype, "processData", function(b) {
  17049. function w(c) {
  17050. return x.forceCrop ? !1 : x.chart.isChartSeriesBoosting() || (c ? c.length : 0) >= (x.options.boostThreshold || Number.MAX_VALUE);
  17051. }
  17052. var x = this, a = this.options.data;
  17053. O(this.chart) && W[this.type] ? (w(a) && this.type !== "heatmap" && this.type !== "treemap" && !this.options.stacking && this.hasExtremes && this.hasExtremes(!0) || (b.apply(this, Array.prototype.slice.call(arguments, 1)), a = this.processedXData), (this.isSeriesBoosting = w(a)) ? (a = void 0, this.options.data && this.options.data.length && (a = this.getFirstValidPoint(this.options.data), d(a) || v(a) || S(12, !1, this.chart)), this.enterBoost()) : this.exitBoost && this.exitBoost()) : b.apply(this, Array.prototype.slice.call(arguments, 1));
  17054. }), Z(I, "hide", function() {
  17055. this.canvas && this.renderTarget && (this.ogl && this.ogl.clear(), this.boostClear());
  17056. }), I.prototype.enterBoost = function() {
  17057. this.alteredByBoost = [], ["allowDG", "directTouch", "stickyTracking"].forEach(function(b) {
  17058. this.alteredByBoost.push({ prop: b, val: this[b], own: Object.hasOwnProperty.call(this, b) });
  17059. }, this), this.directTouch = this.allowDG = !1, this.finishedAnimating = this.stickyTracking = !0, this.labelBySeries && (this.labelBySeries = this.labelBySeries.destroy());
  17060. }, I.prototype.exitBoost = function() {
  17061. (this.alteredByBoost || []).forEach(
  17062. function(b) {
  17063. b.own ? this[b.prop] = b.val : delete this[b.prop];
  17064. },
  17065. this
  17066. ), this.boostClear && this.boostClear();
  17067. }, I.prototype.hasExtremes = function(b) {
  17068. var w = this.options, x = this.xAxis && this.xAxis.options, a = this.yAxis && this.yAxis.options, c = this.colorAxis && this.colorAxis.options;
  17069. return w.data.length > (w.boostThreshold || Number.MAX_VALUE) && d(a.min) && d(a.max) && (!b || d(x.min) && d(x.max)) && (!c || d(c.min) && d(c.max));
  17070. }, I.prototype.destroyGraphics = function() {
  17071. var b = this, w = this, x = this.points, a, c;
  17072. if (x)
  17073. for (c = 0; c < x.length; c += 1)
  17074. (a = x[c]) && a.destroyElements && a.destroyElements();
  17075. [
  17076. "graph",
  17077. "area",
  17078. "tracker"
  17079. ].forEach(function(p) {
  17080. w[p] && (w[p] = w[p].destroy());
  17081. }), this.getZonesGraphs && this.getZonesGraphs([["graph", "highcharts-graph"]]).forEach(function(p) {
  17082. var i = b[p[0]];
  17083. i && (b[p[0]] = i.destroy());
  17084. });
  17085. }, H.forEach(function(b) {
  17086. C[b] && (C[b].boostThreshold = 5e3, C[b].boostData = [], R[b].prototype.fillOpacity = !0);
  17087. });
  17088. }), E(f, "Extensions/Boost/NamedColors.js", [f["Core/Color/Color.js"]], function(h) {
  17089. var y = {
  17090. aliceblue: "#f0f8ff",
  17091. antiquewhite: "#faebd7",
  17092. aqua: "#00ffff",
  17093. aquamarine: "#7fffd4",
  17094. azure: "#f0ffff",
  17095. beige: "#f5f5dc",
  17096. bisque: "#ffe4c4",
  17097. black: "#000000",
  17098. blanchedalmond: "#ffebcd",
  17099. blue: "#0000ff",
  17100. blueviolet: "#8a2be2",
  17101. brown: "#a52a2a",
  17102. burlywood: "#deb887",
  17103. cadetblue: "#5f9ea0",
  17104. chartreuse: "#7fff00",
  17105. chocolate: "#d2691e",
  17106. coral: "#ff7f50",
  17107. cornflowerblue: "#6495ed",
  17108. cornsilk: "#fff8dc",
  17109. crimson: "#dc143c",
  17110. cyan: "#00ffff",
  17111. darkblue: "#00008b",
  17112. darkcyan: "#008b8b",
  17113. darkgoldenrod: "#b8860b",
  17114. darkgray: "#a9a9a9",
  17115. darkgreen: "#006400",
  17116. darkkhaki: "#bdb76b",
  17117. darkmagenta: "#8b008b",
  17118. darkolivegreen: "#556b2f",
  17119. darkorange: "#ff8c00",
  17120. darkorchid: "#9932cc",
  17121. darkred: "#8b0000",
  17122. darksalmon: "#e9967a",
  17123. darkseagreen: "#8fbc8f",
  17124. darkslateblue: "#483d8b",
  17125. darkslategray: "#2f4f4f",
  17126. darkturquoise: "#00ced1",
  17127. darkviolet: "#9400d3",
  17128. deeppink: "#ff1493",
  17129. deepskyblue: "#00bfff",
  17130. dimgray: "#696969",
  17131. dodgerblue: "#1e90ff",
  17132. feldspar: "#d19275",
  17133. firebrick: "#b22222",
  17134. floralwhite: "#fffaf0",
  17135. forestgreen: "#228b22",
  17136. fuchsia: "#ff00ff",
  17137. gainsboro: "#dcdcdc",
  17138. ghostwhite: "#f8f8ff",
  17139. gold: "#ffd700",
  17140. goldenrod: "#daa520",
  17141. gray: "#808080",
  17142. green: "#008000",
  17143. greenyellow: "#adff2f",
  17144. honeydew: "#f0fff0",
  17145. hotpink: "#ff69b4",
  17146. indianred: "#cd5c5c",
  17147. indigo: "#4b0082",
  17148. ivory: "#fffff0",
  17149. khaki: "#f0e68c",
  17150. lavender: "#e6e6fa",
  17151. lavenderblush: "#fff0f5",
  17152. lawngreen: "#7cfc00",
  17153. lemonchiffon: "#fffacd",
  17154. lightblue: "#add8e6",
  17155. lightcoral: "#f08080",
  17156. lightcyan: "#e0ffff",
  17157. lightgoldenrodyellow: "#fafad2",
  17158. lightgrey: "#d3d3d3",
  17159. lightgreen: "#90ee90",
  17160. lightpink: "#ffb6c1",
  17161. lightsalmon: "#ffa07a",
  17162. lightseagreen: "#20b2aa",
  17163. lightskyblue: "#87cefa",
  17164. lightslateblue: "#8470ff",
  17165. lightslategray: "#778899",
  17166. lightsteelblue: "#b0c4de",
  17167. lightyellow: "#ffffe0",
  17168. lime: "#00ff00",
  17169. limegreen: "#32cd32",
  17170. linen: "#faf0e6",
  17171. magenta: "#ff00ff",
  17172. maroon: "#800000",
  17173. mediumaquamarine: "#66cdaa",
  17174. mediumblue: "#0000cd",
  17175. mediumorchid: "#ba55d3",
  17176. mediumpurple: "#9370d8",
  17177. mediumseagreen: "#3cb371",
  17178. mediumslateblue: "#7b68ee",
  17179. mediumspringgreen: "#00fa9a",
  17180. mediumturquoise: "#48d1cc",
  17181. mediumvioletred: "#c71585",
  17182. midnightblue: "#191970",
  17183. mintcream: "#f5fffa",
  17184. mistyrose: "#ffe4e1",
  17185. moccasin: "#ffe4b5",
  17186. navajowhite: "#ffdead",
  17187. navy: "#000080",
  17188. oldlace: "#fdf5e6",
  17189. olive: "#808000",
  17190. olivedrab: "#6b8e23",
  17191. orange: "#ffa500",
  17192. orangered: "#ff4500",
  17193. orchid: "#da70d6",
  17194. palegoldenrod: "#eee8aa",
  17195. palegreen: "#98fb98",
  17196. paleturquoise: "#afeeee",
  17197. palevioletred: "#d87093",
  17198. papayawhip: "#ffefd5",
  17199. peachpuff: "#ffdab9",
  17200. peru: "#cd853f",
  17201. pink: "#ffc0cb",
  17202. plum: "#dda0dd",
  17203. powderblue: "#b0e0e6",
  17204. purple: "#800080",
  17205. red: "#ff0000",
  17206. rosybrown: "#bc8f8f",
  17207. royalblue: "#4169e1",
  17208. saddlebrown: "#8b4513",
  17209. salmon: "#fa8072",
  17210. sandybrown: "#f4a460",
  17211. seagreen: "#2e8b57",
  17212. seashell: "#fff5ee",
  17213. sienna: "#a0522d",
  17214. silver: "#c0c0c0",
  17215. skyblue: "#87ceeb",
  17216. slateblue: "#6a5acd",
  17217. slategray: "#708090",
  17218. snow: "#fffafa",
  17219. springgreen: "#00ff7f",
  17220. steelblue: "#4682b4",
  17221. tan: "#d2b48c",
  17222. teal: "#008080",
  17223. thistle: "#d8bfd8",
  17224. tomato: "#ff6347",
  17225. turquoise: "#40e0d0",
  17226. violet: "#ee82ee",
  17227. violetred: "#d02090",
  17228. wheat: "#f5deb3",
  17229. white: "#ffffff",
  17230. whitesmoke: "#f5f5f5",
  17231. yellow: "#ffff00",
  17232. yellowgreen: "#9acd32"
  17233. };
  17234. return h.names = y;
  17235. }), E(f, "Extensions/Boost/Boost.js", [f["Extensions/Boost/BoostUtils.js"], f["Extensions/Boost/BoostInit.js"], f["Extensions/BoostCanvas.js"], f["Core/Utilities.js"]], function(h, y, j, I) {
  17236. I = I.error, h = h.hasWebGLSupport, h() ? y() : typeof j < "u" ? j() : I(26);
  17237. }), E(f, "masters/modules/boost.src.js", [], function() {
  17238. });
  17239. });
  17240. })(Vp);
  17241. var N0 = Vp.exports;
  17242. const B0 = /* @__PURE__ */ Cn(N0), j0 = (r) => {
  17243. let f = window.location.protocol;
  17244. /^http(s)?:&/.test(f) || (f = "http:");
  17245. let E = {
  17246. lang: {
  17247. // Highcharts
  17248. contextButtonTitle: "图表导出菜单",
  17249. decimalPoint: ".",
  17250. downloadJPEG: "下载 JPEG 图片",
  17251. downloadPDF: "下载 PDF 文件",
  17252. downloadPNG: "下载 PNG 文件",
  17253. downloadSVG: "下载 SVG 文件",
  17254. downloadXLS: "下载 XLS 文件",
  17255. drillUpText: "◁ 返回 {series.name}",
  17256. exitFullscreen: "退出全屏",
  17257. exportData: {
  17258. categoryDatetimeHeader: "时间",
  17259. categoryHeader: "类别"
  17260. },
  17261. openInCloud: "在 Highcharts Cloud 中打开",
  17262. invalidDate: "无效的时间",
  17263. loading: "加载中...",
  17264. months: [
  17265. "一月",
  17266. "二月",
  17267. "三月",
  17268. "四月",
  17269. "五月",
  17270. "六月",
  17271. "七月",
  17272. "八月",
  17273. "九月",
  17274. "十月",
  17275. "十一月",
  17276. "十二月"
  17277. ],
  17278. navigation: {
  17279. popup: {
  17280. addButton: "新增",
  17281. arrowLine: "直线",
  17282. arrowRay: "射线",
  17283. arrowSegment: "线段",
  17284. background: "背景",
  17285. backgroundColor: "背景颜色",
  17286. backgroundColors: "背景颜色",
  17287. borderColor: "边框颜色",
  17288. borderRadius: "圆角",
  17289. borderWidth: "边框大小",
  17290. circle: "圆",
  17291. color: "颜色",
  17292. connector: "连接",
  17293. crooked3: "Crooked 3 line",
  17294. crooked5: "Crooked 5 line",
  17295. crosshairX: "竖直准星线",
  17296. crosshairY: "水平准星线",
  17297. editButton: "编辑",
  17298. elliott3: "Elliott 3 line",
  17299. elliott5: "Elliott 5 line",
  17300. fibonacci: "斐波纳契",
  17301. fill: "填充颜色",
  17302. flags: "标志",
  17303. fontSize: "字体大小",
  17304. format: "文本",
  17305. height: "高度",
  17306. horizontalLine: "水平线",
  17307. infinityLine: "无限线",
  17308. innerBackground: "内背景",
  17309. label: "文字标签",
  17310. labelOptions: "文字标签配置",
  17311. labels: "文字标签",
  17312. line: "线",
  17313. lines: "线条",
  17314. measure: "Measure",
  17315. measureX: "Measure X",
  17316. measureXY: "Measure XY",
  17317. measureY: "Measure Y",
  17318. name: "名字",
  17319. outerBackground: "外背景",
  17320. padding: "内间距",
  17321. parallelChannel: "并行通道",
  17322. pitchfork: "杈子",
  17323. ray: "射线",
  17324. rectangle: "矩形",
  17325. removeButton: "删除",
  17326. saveButton: "保存",
  17327. segment: "段落",
  17328. series: "数据列",
  17329. shapeOptions: "图形配置",
  17330. shapes: "图形",
  17331. simpleShapes: "简单图形",
  17332. stroke: "线条颜色",
  17333. strokeWidth: "线条粗细",
  17334. style: "样式",
  17335. title: "标题",
  17336. tunnel: "通道",
  17337. typeOptions: "详情",
  17338. verticalArrow: "竖直箭头",
  17339. verticalCounter: "竖直计数器",
  17340. verticalLabel: "竖直标签",
  17341. verticalLine: "竖直线",
  17342. volume: "成交量"
  17343. }
  17344. },
  17345. noData: "暂无数据",
  17346. numericSymbols: null,
  17347. printChart: "打印图表",
  17348. resetZoom: "重置缩放比例",
  17349. resetZoomTitle: "重置为原始大小",
  17350. shortMonths: [
  17351. "一月",
  17352. "二月",
  17353. "三月",
  17354. "四月",
  17355. "五月",
  17356. "六月",
  17357. "七月",
  17358. "八月",
  17359. "九月",
  17360. "十月",
  17361. "十一月",
  17362. "十二月"
  17363. ],
  17364. thousandsSep: ",",
  17365. viewData: "查看数据表格",
  17366. viewFullscreen: "全屏查看",
  17367. weekdays: [
  17368. "星期天",
  17369. "星期一",
  17370. "星期二",
  17371. "星期三",
  17372. "星期四",
  17373. "星期五",
  17374. "星期六"
  17375. ],
  17376. viewData: "查看数据表格",
  17377. // Highstock
  17378. rangeSelectorFrom: "开始时间",
  17379. rangeSelectorTo: "结束时间",
  17380. rangeSelectorZoom: "范围",
  17381. // Highmaps
  17382. zoomIn: "缩小",
  17383. zoomOut: "放大"
  17384. },
  17385. global: {
  17386. // 不使用 UTC时间
  17387. useUTC: !1,
  17388. timezoneOffset: -8 * 60,
  17389. canvasToolsURL: f + "//cdn.hcharts.cn/highcharts/modules/canvas-tools.js",
  17390. VMLRadialGradientURL: f + +"//cdn.hcharts.cn/highcharts/gfx/vml-radial-gradient.png"
  17391. },
  17392. exporting: {
  17393. url: f + "//export.highcharts.com.cn"
  17394. },
  17395. credits: {
  17396. text: "Highcharts.com.cn",
  17397. href: "https://www.highcharts.com.cn"
  17398. },
  17399. /**
  17400. * Highstock
  17401. */
  17402. rangeSelector: {
  17403. inputDateFormat: "%Y-%m-%d",
  17404. buttons: [
  17405. {
  17406. type: "month",
  17407. count: 1,
  17408. text: "月"
  17409. },
  17410. {
  17411. type: "month",
  17412. count: 3,
  17413. text: "季度"
  17414. },
  17415. {
  17416. type: "month",
  17417. count: 6,
  17418. text: "半年"
  17419. },
  17420. {
  17421. type: "ytd",
  17422. text: "YTD"
  17423. },
  17424. {
  17425. type: "year",
  17426. count: 1,
  17427. text: "年"
  17428. },
  17429. {
  17430. type: "all",
  17431. text: "所有"
  17432. }
  17433. ]
  17434. },
  17435. plotOptions: {
  17436. series: {
  17437. dataGrouping: {
  17438. dateTimeLabelFormats: {
  17439. /* millisecond: [
  17440. '%Y-%m-%d %H:%M:%S.%L',
  17441. '%Y-%m-%d %H:%M:%S.%L',
  17442. ' ~ %H:%M:%S.%L',
  17443. ],
  17444. second: ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S', ' ~ %H:%M:%S'],
  17445. minute: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'],
  17446. hour: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'], */
  17447. day: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17448. week: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17449. month: ["%Y/%m", "%Y/%m", " ~ %Y/%m"],
  17450. year: ["%Y", "%Y", " ~ %Y"]
  17451. }
  17452. }
  17453. }
  17454. }
  17455. };
  17456. r.setOptions(E);
  17457. };
  17458. //! moment.js
  17459. //! version : 2.29.4
  17460. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  17461. //! license : MIT
  17462. //! momentjs.com
  17463. var $p;
  17464. function Xt() {
  17465. return $p.apply(null, arguments);
  17466. }
  17467. function W0(r) {
  17468. $p = r;
  17469. }
  17470. function Bi(r) {
  17471. return r instanceof Array || Object.prototype.toString.call(r) === "[object Array]";
  17472. }
  17473. function $r(r) {
  17474. return r != null && Object.prototype.toString.call(r) === "[object Object]";
  17475. }
  17476. function me(r, f) {
  17477. return Object.prototype.hasOwnProperty.call(r, f);
  17478. }
  17479. function kh(r) {
  17480. if (Object.getOwnPropertyNames)
  17481. return Object.getOwnPropertyNames(r).length === 0;
  17482. var f;
  17483. for (f in r)
  17484. if (me(r, f))
  17485. return !1;
  17486. return !0;
  17487. }
  17488. function li(r) {
  17489. return r === void 0;
  17490. }
  17491. function fr(r) {
  17492. return typeof r == "number" || Object.prototype.toString.call(r) === "[object Number]";
  17493. }
  17494. function oo(r) {
  17495. return r instanceof Date || Object.prototype.toString.call(r) === "[object Date]";
  17496. }
  17497. function Zp(r, f) {
  17498. var E = [], h, y = r.length;
  17499. for (h = 0; h < y; ++h)
  17500. E.push(f(r[h], h));
  17501. return E;
  17502. }
  17503. function Pr(r, f) {
  17504. for (var E in f)
  17505. me(f, E) && (r[E] = f[E]);
  17506. return me(f, "toString") && (r.toString = f.toString), me(f, "valueOf") && (r.valueOf = f.valueOf), r;
  17507. }
  17508. function Zi(r, f, E, h) {
  17509. return xu(r, f, E, h, !0).utc();
  17510. }
  17511. function z0() {
  17512. return {
  17513. empty: !1,
  17514. unusedTokens: [],
  17515. unusedInput: [],
  17516. overflow: -2,
  17517. charsLeftOver: 0,
  17518. nullInput: !1,
  17519. invalidEra: null,
  17520. invalidMonth: null,
  17521. invalidFormat: !1,
  17522. userInvalidated: !1,
  17523. iso: !1,
  17524. parsedDateParts: [],
  17525. era: null,
  17526. meridiem: null,
  17527. rfc2822: !1,
  17528. weekdayMismatch: !1
  17529. };
  17530. }
  17531. function oe(r) {
  17532. return r._pf == null && (r._pf = z0()), r._pf;
  17533. }
  17534. var fh;
  17535. Array.prototype.some ? fh = Array.prototype.some : fh = function(r) {
  17536. var f = Object(this), E = f.length >>> 0, h;
  17537. for (h = 0; h < E; h++)
  17538. if (h in f && r.call(this, f[h], h, f))
  17539. return !0;
  17540. return !1;
  17541. };
  17542. function Ah(r) {
  17543. if (r._isValid == null) {
  17544. var f = oe(r), E = fh.call(f.parsedDateParts, function(y) {
  17545. return y != null;
  17546. }), h = !isNaN(r._d.getTime()) && f.overflow < 0 && !f.empty && !f.invalidEra && !f.invalidMonth && !f.invalidWeekday && !f.weekdayMismatch && !f.nullInput && !f.invalidFormat && !f.userInvalidated && (!f.meridiem || f.meridiem && E);
  17547. if (r._strict && (h = h && f.charsLeftOver === 0 && f.unusedTokens.length === 0 && f.bigHour === void 0), Object.isFrozen == null || !Object.isFrozen(r))
  17548. r._isValid = h;
  17549. else
  17550. return h;
  17551. }
  17552. return r._isValid;
  17553. }
  17554. function As(r) {
  17555. var f = Zi(NaN);
  17556. return r != null ? Pr(oe(f), r) : oe(f).userInvalidated = !0, f;
  17557. }
  17558. var Cp = Xt.momentProperties = [], rh = !1;
  17559. function Th(r, f) {
  17560. var E, h, y, j = Cp.length;
  17561. if (li(f._isAMomentObject) || (r._isAMomentObject = f._isAMomentObject), li(f._i) || (r._i = f._i), li(f._f) || (r._f = f._f), li(f._l) || (r._l = f._l), li(f._strict) || (r._strict = f._strict), li(f._tzm) || (r._tzm = f._tzm), li(f._isUTC) || (r._isUTC = f._isUTC), li(f._offset) || (r._offset = f._offset), li(f._pf) || (r._pf = oe(f)), li(f._locale) || (r._locale = f._locale), j > 0)
  17562. for (E = 0; E < j; E++)
  17563. h = Cp[E], y = f[h], li(y) || (r[h] = y);
  17564. return r;
  17565. }
  17566. function so(r) {
  17567. Th(this, r), this._d = new Date(r._d != null ? r._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), rh === !1 && (rh = !0, Xt.updateOffset(this), rh = !1);
  17568. }
  17569. function ji(r) {
  17570. return r instanceof so || r != null && r._isAMomentObject != null;
  17571. }
  17572. function Kp(r) {
  17573. Xt.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + r);
  17574. }
  17575. function Ei(r, f) {
  17576. var E = !0;
  17577. return Pr(function() {
  17578. if (Xt.deprecationHandler != null && Xt.deprecationHandler(null, r), E) {
  17579. var h = [], y, j, I, Z = arguments.length;
  17580. for (j = 0; j < Z; j++) {
  17581. if (y = "", typeof arguments[j] == "object") {
  17582. y += `
  17583. [` + j + "] ";
  17584. for (I in arguments[0])
  17585. me(arguments[0], I) && (y += I + ": " + arguments[0][I] + ", ");
  17586. y = y.slice(0, -2);
  17587. } else
  17588. y = arguments[j];
  17589. h.push(y);
  17590. }
  17591. Kp(
  17592. r + `
  17593. Arguments: ` + Array.prototype.slice.call(h).join("") + `
  17594. ` + new Error().stack
  17595. ), E = !1;
  17596. }
  17597. return f.apply(this, arguments);
  17598. }, f);
  17599. }
  17600. var kp = {};
  17601. function Jp(r, f) {
  17602. Xt.deprecationHandler != null && Xt.deprecationHandler(r, f), kp[r] || (Kp(f), kp[r] = !0);
  17603. }
  17604. Xt.suppressDeprecationWarnings = !1;
  17605. Xt.deprecationHandler = null;
  17606. function Ki(r) {
  17607. return typeof Function < "u" && r instanceof Function || Object.prototype.toString.call(r) === "[object Function]";
  17608. }
  17609. function Y0(r) {
  17610. var f, E;
  17611. for (E in r)
  17612. me(r, E) && (f = r[E], Ki(f) ? this[E] = f : this["_" + E] = f);
  17613. this._config = r, this._dayOfMonthOrdinalParseLenient = new RegExp(
  17614. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
  17615. );
  17616. }
  17617. function gh(r, f) {
  17618. var E = Pr({}, r), h;
  17619. for (h in f)
  17620. me(f, h) && ($r(r[h]) && $r(f[h]) ? (E[h] = {}, Pr(E[h], r[h]), Pr(E[h], f[h])) : f[h] != null ? E[h] = f[h] : delete E[h]);
  17621. for (h in r)
  17622. me(r, h) && !me(f, h) && $r(r[h]) && (E[h] = Pr({}, E[h]));
  17623. return E;
  17624. }
  17625. function Ph(r) {
  17626. r != null && this.set(r);
  17627. }
  17628. var mh;
  17629. Object.keys ? mh = Object.keys : mh = function(r) {
  17630. var f, E = [];
  17631. for (f in r)
  17632. me(r, f) && E.push(f);
  17633. return E;
  17634. };
  17635. var X0 = {
  17636. sameDay: "[Today at] LT",
  17637. nextDay: "[Tomorrow at] LT",
  17638. nextWeek: "dddd [at] LT",
  17639. lastDay: "[Yesterday at] LT",
  17640. lastWeek: "[Last] dddd [at] LT",
  17641. sameElse: "L"
  17642. };
  17643. function G0(r, f, E) {
  17644. var h = this._calendar[r] || this._calendar.sameElse;
  17645. return Ki(h) ? h.call(f, E) : h;
  17646. }
  17647. function Ui(r, f, E) {
  17648. var h = "" + Math.abs(r), y = f - h.length, j = r >= 0;
  17649. return (j ? E ? "+" : "" : "-") + Math.pow(10, Math.max(0, y)).toString().substr(1) + h;
  17650. }
  17651. var Eh = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, rs = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, nh = {}, yn = {};
  17652. function Zt(r, f, E, h) {
  17653. var y = h;
  17654. typeof h == "string" && (y = function() {
  17655. return this[h]();
  17656. }), r && (yn[r] = y), f && (yn[f[0]] = function() {
  17657. return Ui(y.apply(this, arguments), f[1], f[2]);
  17658. }), E && (yn[E] = function() {
  17659. return this.localeData().ordinal(
  17660. y.apply(this, arguments),
  17661. r
  17662. );
  17663. });
  17664. }
  17665. function H0(r) {
  17666. return r.match(/\[[\s\S]/) ? r.replace(/^\[|\]$/g, "") : r.replace(/\\/g, "");
  17667. }
  17668. function F0(r) {
  17669. var f = r.match(Eh), E, h;
  17670. for (E = 0, h = f.length; E < h; E++)
  17671. yn[f[E]] ? f[E] = yn[f[E]] : f[E] = H0(f[E]);
  17672. return function(y) {
  17673. var j = "", I;
  17674. for (I = 0; I < h; I++)
  17675. j += Ki(f[I]) ? f[I].call(y, r) : f[I];
  17676. return j;
  17677. };
  17678. }
  17679. function ss(r, f) {
  17680. return r.isValid() ? (f = qp(f, r.localeData()), nh[f] = nh[f] || F0(f), nh[f](r)) : r.localeData().invalidDate();
  17681. }
  17682. function qp(r, f) {
  17683. var E = 5;
  17684. function h(y) {
  17685. return f.longDateFormat(y) || y;
  17686. }
  17687. for (rs.lastIndex = 0; E >= 0 && rs.test(r); )
  17688. r = r.replace(
  17689. rs,
  17690. h
  17691. ), rs.lastIndex = 0, E -= 1;
  17692. return r;
  17693. }
  17694. var U0 = {
  17695. LTS: "h:mm:ss A",
  17696. LT: "h:mm A",
  17697. L: "MM/DD/YYYY",
  17698. LL: "MMMM D, YYYY",
  17699. LLL: "MMMM D, YYYY h:mm A",
  17700. LLLL: "dddd, MMMM D, YYYY h:mm A"
  17701. };
  17702. function V0(r) {
  17703. var f = this._longDateFormat[r], E = this._longDateFormat[r.toUpperCase()];
  17704. return f || !E ? f : (this._longDateFormat[r] = E.match(Eh).map(function(h) {
  17705. return h === "MMMM" || h === "MM" || h === "DD" || h === "dddd" ? h.slice(1) : h;
  17706. }).join(""), this._longDateFormat[r]);
  17707. }
  17708. var $0 = "Invalid date";
  17709. function Z0() {
  17710. return this._invalidDate;
  17711. }
  17712. var K0 = "%d", J0 = /\d{1,2}/;
  17713. function q0(r) {
  17714. return this._ordinal.replace("%d", r);
  17715. }
  17716. var Q0 = {
  17717. future: "in %s",
  17718. past: "%s ago",
  17719. s: "a few seconds",
  17720. ss: "%d seconds",
  17721. m: "a minute",
  17722. mm: "%d minutes",
  17723. h: "an hour",
  17724. hh: "%d hours",
  17725. d: "a day",
  17726. dd: "%d days",
  17727. w: "a week",
  17728. ww: "%d weeks",
  17729. M: "a month",
  17730. MM: "%d months",
  17731. y: "a year",
  17732. yy: "%d years"
  17733. };
  17734. function t1(r, f, E, h) {
  17735. var y = this._relativeTime[E];
  17736. return Ki(y) ? y(r, f, E, h) : y.replace(/%d/i, r);
  17737. }
  17738. function e1(r, f) {
  17739. var E = this._relativeTime[r > 0 ? "future" : "past"];
  17740. return Ki(E) ? E(f) : E.replace(/%s/i, f);
  17741. }
  17742. var qn = {};
  17743. function ti(r, f) {
  17744. var E = r.toLowerCase();
  17745. qn[E] = qn[E + "s"] = qn[f] = r;
  17746. }
  17747. function Oi(r) {
  17748. return typeof r == "string" ? qn[r] || qn[r.toLowerCase()] : void 0;
  17749. }
  17750. function Oh(r) {
  17751. var f = {}, E, h;
  17752. for (h in r)
  17753. me(r, h) && (E = Oi(h), E && (f[E] = r[h]));
  17754. return f;
  17755. }
  17756. var Qp = {};
  17757. function ei(r, f) {
  17758. Qp[r] = f;
  17759. }
  17760. function i1(r) {
  17761. var f = [], E;
  17762. for (E in r)
  17763. me(r, E) && f.push({ unit: E, priority: Qp[E] });
  17764. return f.sort(function(h, y) {
  17765. return h.priority - y.priority;
  17766. }), f;
  17767. }
  17768. function Ts(r) {
  17769. return r % 4 === 0 && r % 100 !== 0 || r % 400 === 0;
  17770. }
  17771. function Ti(r) {
  17772. return r < 0 ? Math.ceil(r) || 0 : Math.floor(r);
  17773. }
  17774. function he(r) {
  17775. var f = +r, E = 0;
  17776. return f !== 0 && isFinite(f) && (E = Ti(f)), E;
  17777. }
  17778. function kn(r, f) {
  17779. return function(E) {
  17780. return E != null ? (tu(this, r, E), Xt.updateOffset(this, f), this) : ms(this, r);
  17781. };
  17782. }
  17783. function ms(r, f) {
  17784. return r.isValid() ? r._d["get" + (r._isUTC ? "UTC" : "") + f]() : NaN;
  17785. }
  17786. function tu(r, f, E) {
  17787. r.isValid() && !isNaN(E) && (f === "FullYear" && Ts(r.year()) && r.month() === 1 && r.date() === 29 ? (E = he(E), r._d["set" + (r._isUTC ? "UTC" : "") + f](
  17788. E,
  17789. r.month(),
  17790. Ds(E, r.month())
  17791. )) : r._d["set" + (r._isUTC ? "UTC" : "") + f](E));
  17792. }
  17793. function r1(r) {
  17794. return r = Oi(r), Ki(this[r]) ? this[r]() : this;
  17795. }
  17796. function n1(r, f) {
  17797. if (typeof r == "object") {
  17798. r = Oh(r);
  17799. var E = i1(r), h, y = E.length;
  17800. for (h = 0; h < y; h++)
  17801. this[E[h].unit](r[E[h].unit]);
  17802. } else if (r = Oi(r), Ki(this[r]))
  17803. return this[r](f);
  17804. return this;
  17805. }
  17806. var eu = /\d/, vi = /\d\d/, iu = /\d{3}/, Lh = /\d{4}/, Ps = /[+-]?\d{6}/, Pe = /\d\d?/, ru = /\d\d\d\d?/, nu = /\d\d\d\d\d\d?/, Es = /\d{1,3}/, _h = /\d{1,4}/, Os = /[+-]?\d{1,6}/, An = /\d+/, Ls = /[+-]?\d+/, o1 = /Z|[+-]\d\d:?\d\d/gi, _s = /Z|[+-]\d\d(?::?\d\d)?/gi, s1 = /[+-]?\d+(\.\d{1,3})?/, ao = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, ys;
  17807. ys = {};
  17808. function Ft(r, f, E) {
  17809. ys[r] = Ki(f) ? f : function(h, y) {
  17810. return h && E ? E : f;
  17811. };
  17812. }
  17813. function a1(r, f) {
  17814. return me(ys, r) ? ys[r](f._strict, f._locale) : new RegExp(h1(r));
  17815. }
  17816. function h1(r) {
  17817. return yi(
  17818. r.replace("\\", "").replace(
  17819. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  17820. function(f, E, h, y, j) {
  17821. return E || h || y || j;
  17822. }
  17823. )
  17824. );
  17825. }
  17826. function yi(r) {
  17827. return r.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
  17828. }
  17829. var yh = {};
  17830. function we(r, f) {
  17831. var E, h = f, y;
  17832. for (typeof r == "string" && (r = [r]), fr(f) && (h = function(j, I) {
  17833. I[f] = he(j);
  17834. }), y = r.length, E = 0; E < y; E++)
  17835. yh[r[E]] = h;
  17836. }
  17837. function ho(r, f) {
  17838. we(r, function(E, h, y, j) {
  17839. y._w = y._w || {}, f(E, y._w, y, j);
  17840. });
  17841. }
  17842. function l1(r, f, E) {
  17843. f != null && me(yh, r) && yh[r](f, E._a, E, r);
  17844. }
  17845. var Qe = 0, cr = 1, Hi = 2, Xe = 3, Ni = 4, pr = 5, Ur = 6, c1 = 7, p1 = 8;
  17846. function u1(r, f) {
  17847. return (r % f + f) % f;
  17848. }
  17849. var We;
  17850. Array.prototype.indexOf ? We = Array.prototype.indexOf : We = function(r) {
  17851. var f;
  17852. for (f = 0; f < this.length; ++f)
  17853. if (this[f] === r)
  17854. return f;
  17855. return -1;
  17856. };
  17857. function Ds(r, f) {
  17858. if (isNaN(r) || isNaN(f))
  17859. return NaN;
  17860. var E = u1(f, 12);
  17861. return r += (f - E) / 12, E === 1 ? Ts(r) ? 29 : 28 : 31 - E % 7 % 2;
  17862. }
  17863. Zt("M", ["MM", 2], "Mo", function() {
  17864. return this.month() + 1;
  17865. });
  17866. Zt("MMM", 0, 0, function(r) {
  17867. return this.localeData().monthsShort(this, r);
  17868. });
  17869. Zt("MMMM", 0, 0, function(r) {
  17870. return this.localeData().months(this, r);
  17871. });
  17872. ti("month", "M");
  17873. ei("month", 8);
  17874. Ft("M", Pe);
  17875. Ft("MM", Pe, vi);
  17876. Ft("MMM", function(r, f) {
  17877. return f.monthsShortRegex(r);
  17878. });
  17879. Ft("MMMM", function(r, f) {
  17880. return f.monthsRegex(r);
  17881. });
  17882. we(["M", "MM"], function(r, f) {
  17883. f[cr] = he(r) - 1;
  17884. });
  17885. we(["MMM", "MMMM"], function(r, f, E, h) {
  17886. var y = E._locale.monthsParse(r, h, E._strict);
  17887. y != null ? f[cr] = y : oe(E).invalidMonth = r;
  17888. });
  17889. var d1 = "January_February_March_April_May_June_July_August_September_October_November_December".split(
  17890. "_"
  17891. ), ou = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), su = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, f1 = ao, g1 = ao;
  17892. function m1(r, f) {
  17893. return r ? Bi(this._months) ? this._months[r.month()] : this._months[(this._months.isFormat || su).test(f) ? "format" : "standalone"][r.month()] : Bi(this._months) ? this._months : this._months.standalone;
  17894. }
  17895. function y1(r, f) {
  17896. return r ? Bi(this._monthsShort) ? this._monthsShort[r.month()] : this._monthsShort[su.test(f) ? "format" : "standalone"][r.month()] : Bi(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
  17897. }
  17898. function v1(r, f, E) {
  17899. var h, y, j, I = r.toLocaleLowerCase();
  17900. if (!this._monthsParse)
  17901. for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], h = 0; h < 12; ++h)
  17902. j = Zi([2e3, h]), this._shortMonthsParse[h] = this.monthsShort(
  17903. j,
  17904. ""
  17905. ).toLocaleLowerCase(), this._longMonthsParse[h] = this.months(j, "").toLocaleLowerCase();
  17906. return E ? f === "MMM" ? (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : null) : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : null) : f === "MMM" ? (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : null)) : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : null));
  17907. }
  17908. function x1(r, f, E) {
  17909. var h, y, j;
  17910. if (this._monthsParseExact)
  17911. return v1.call(this, r, f, E);
  17912. for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), h = 0; h < 12; h++) {
  17913. if (y = Zi([2e3, h]), E && !this._longMonthsParse[h] && (this._longMonthsParse[h] = new RegExp(
  17914. "^" + this.months(y, "").replace(".", "") + "$",
  17915. "i"
  17916. ), this._shortMonthsParse[h] = new RegExp(
  17917. "^" + this.monthsShort(y, "").replace(".", "") + "$",
  17918. "i"
  17919. )), !E && !this._monthsParse[h] && (j = "^" + this.months(y, "") + "|^" + this.monthsShort(y, ""), this._monthsParse[h] = new RegExp(j.replace(".", ""), "i")), E && f === "MMMM" && this._longMonthsParse[h].test(r))
  17920. return h;
  17921. if (E && f === "MMM" && this._shortMonthsParse[h].test(r))
  17922. return h;
  17923. if (!E && this._monthsParse[h].test(r))
  17924. return h;
  17925. }
  17926. }
  17927. function au(r, f) {
  17928. var E;
  17929. if (!r.isValid())
  17930. return r;
  17931. if (typeof f == "string") {
  17932. if (/^\d+$/.test(f))
  17933. f = he(f);
  17934. else if (f = r.localeData().monthsParse(f), !fr(f))
  17935. return r;
  17936. }
  17937. return E = Math.min(r.date(), Ds(r.year(), f)), r._d["set" + (r._isUTC ? "UTC" : "") + "Month"](f, E), r;
  17938. }
  17939. function hu(r) {
  17940. return r != null ? (au(this, r), Xt.updateOffset(this, !0), this) : ms(this, "Month");
  17941. }
  17942. function b1() {
  17943. return Ds(this.year(), this.month());
  17944. }
  17945. function S1(r) {
  17946. return this._monthsParseExact ? (me(this, "_monthsRegex") || lu.call(this), r ? this._monthsShortStrictRegex : this._monthsShortRegex) : (me(this, "_monthsShortRegex") || (this._monthsShortRegex = f1), this._monthsShortStrictRegex && r ? this._monthsShortStrictRegex : this._monthsShortRegex);
  17947. }
  17948. function w1(r) {
  17949. return this._monthsParseExact ? (me(this, "_monthsRegex") || lu.call(this), r ? this._monthsStrictRegex : this._monthsRegex) : (me(this, "_monthsRegex") || (this._monthsRegex = g1), this._monthsStrictRegex && r ? this._monthsStrictRegex : this._monthsRegex);
  17950. }
  17951. function lu() {
  17952. function r(I, Z) {
  17953. return Z.length - I.length;
  17954. }
  17955. var f = [], E = [], h = [], y, j;
  17956. for (y = 0; y < 12; y++)
  17957. j = Zi([2e3, y]), f.push(this.monthsShort(j, "")), E.push(this.months(j, "")), h.push(this.months(j, "")), h.push(this.monthsShort(j, ""));
  17958. for (f.sort(r), E.sort(r), h.sort(r), y = 0; y < 12; y++)
  17959. f[y] = yi(f[y]), E[y] = yi(E[y]);
  17960. for (y = 0; y < 24; y++)
  17961. h[y] = yi(h[y]);
  17962. this._monthsRegex = new RegExp("^(" + h.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
  17963. "^(" + E.join("|") + ")",
  17964. "i"
  17965. ), this._monthsShortStrictRegex = new RegExp(
  17966. "^(" + f.join("|") + ")",
  17967. "i"
  17968. );
  17969. }
  17970. Zt("Y", 0, 0, function() {
  17971. var r = this.year();
  17972. return r <= 9999 ? Ui(r, 4) : "+" + r;
  17973. });
  17974. Zt(0, ["YY", 2], 0, function() {
  17975. return this.year() % 100;
  17976. });
  17977. Zt(0, ["YYYY", 4], 0, "year");
  17978. Zt(0, ["YYYYY", 5], 0, "year");
  17979. Zt(0, ["YYYYYY", 6, !0], 0, "year");
  17980. ti("year", "y");
  17981. ei("year", 1);
  17982. Ft("Y", Ls);
  17983. Ft("YY", Pe, vi);
  17984. Ft("YYYY", _h, Lh);
  17985. Ft("YYYYY", Os, Ps);
  17986. Ft("YYYYYY", Os, Ps);
  17987. we(["YYYYY", "YYYYYY"], Qe);
  17988. we("YYYY", function(r, f) {
  17989. f[Qe] = r.length === 2 ? Xt.parseTwoDigitYear(r) : he(r);
  17990. });
  17991. we("YY", function(r, f) {
  17992. f[Qe] = Xt.parseTwoDigitYear(r);
  17993. });
  17994. we("Y", function(r, f) {
  17995. f[Qe] = parseInt(r, 10);
  17996. });
  17997. function Qn(r) {
  17998. return Ts(r) ? 366 : 365;
  17999. }
  18000. Xt.parseTwoDigitYear = function(r) {
  18001. return he(r) + (he(r) > 68 ? 1900 : 2e3);
  18002. };
  18003. var cu = kn("FullYear", !0);
  18004. function M1() {
  18005. return Ts(this.year());
  18006. }
  18007. function C1(r, f, E, h, y, j, I) {
  18008. var Z;
  18009. return r < 100 && r >= 0 ? (Z = new Date(r + 400, f, E, h, y, j, I), isFinite(Z.getFullYear()) && Z.setFullYear(r)) : Z = new Date(r, f, E, h, y, j, I), Z;
  18010. }
  18011. function eo(r) {
  18012. var f, E;
  18013. return r < 100 && r >= 0 ? (E = Array.prototype.slice.call(arguments), E[0] = r + 400, f = new Date(Date.UTC.apply(null, E)), isFinite(f.getUTCFullYear()) && f.setUTCFullYear(r)) : f = new Date(Date.UTC.apply(null, arguments)), f;
  18014. }
  18015. function vs(r, f, E) {
  18016. var h = 7 + f - E, y = (7 + eo(r, 0, h).getUTCDay() - f) % 7;
  18017. return -y + h - 1;
  18018. }
  18019. function pu(r, f, E, h, y) {
  18020. var j = (7 + E - h) % 7, I = vs(r, h, y), Z = 1 + 7 * (f - 1) + j + I, F, U;
  18021. return Z <= 0 ? (F = r - 1, U = Qn(F) + Z) : Z > Qn(r) ? (F = r + 1, U = Z - Qn(r)) : (F = r, U = Z), {
  18022. year: F,
  18023. dayOfYear: U
  18024. };
  18025. }
  18026. function io(r, f, E) {
  18027. var h = vs(r.year(), f, E), y = Math.floor((r.dayOfYear() - h - 1) / 7) + 1, j, I;
  18028. return y < 1 ? (I = r.year() - 1, j = y + ur(I, f, E)) : y > ur(r.year(), f, E) ? (j = y - ur(r.year(), f, E), I = r.year() + 1) : (I = r.year(), j = y), {
  18029. week: j,
  18030. year: I
  18031. };
  18032. }
  18033. function ur(r, f, E) {
  18034. var h = vs(r, f, E), y = vs(r + 1, f, E);
  18035. return (Qn(r) - h + y) / 7;
  18036. }
  18037. Zt("w", ["ww", 2], "wo", "week");
  18038. Zt("W", ["WW", 2], "Wo", "isoWeek");
  18039. ti("week", "w");
  18040. ti("isoWeek", "W");
  18041. ei("week", 5);
  18042. ei("isoWeek", 5);
  18043. Ft("w", Pe);
  18044. Ft("ww", Pe, vi);
  18045. Ft("W", Pe);
  18046. Ft("WW", Pe, vi);
  18047. ho(
  18048. ["w", "ww", "W", "WW"],
  18049. function(r, f, E, h) {
  18050. f[h.substr(0, 1)] = he(r);
  18051. }
  18052. );
  18053. function k1(r) {
  18054. return io(r, this._week.dow, this._week.doy).week;
  18055. }
  18056. var A1 = {
  18057. dow: 0,
  18058. // Sunday is the first day of the week.
  18059. doy: 6
  18060. // The week that contains Jan 6th is the first week of the year.
  18061. };
  18062. function T1() {
  18063. return this._week.dow;
  18064. }
  18065. function P1() {
  18066. return this._week.doy;
  18067. }
  18068. function E1(r) {
  18069. var f = this.localeData().week(this);
  18070. return r == null ? f : this.add((r - f) * 7, "d");
  18071. }
  18072. function O1(r) {
  18073. var f = io(this, 1, 4).week;
  18074. return r == null ? f : this.add((r - f) * 7, "d");
  18075. }
  18076. Zt("d", 0, "do", "day");
  18077. Zt("dd", 0, 0, function(r) {
  18078. return this.localeData().weekdaysMin(this, r);
  18079. });
  18080. Zt("ddd", 0, 0, function(r) {
  18081. return this.localeData().weekdaysShort(this, r);
  18082. });
  18083. Zt("dddd", 0, 0, function(r) {
  18084. return this.localeData().weekdays(this, r);
  18085. });
  18086. Zt("e", 0, 0, "weekday");
  18087. Zt("E", 0, 0, "isoWeekday");
  18088. ti("day", "d");
  18089. ti("weekday", "e");
  18090. ti("isoWeekday", "E");
  18091. ei("day", 11);
  18092. ei("weekday", 11);
  18093. ei("isoWeekday", 11);
  18094. Ft("d", Pe);
  18095. Ft("e", Pe);
  18096. Ft("E", Pe);
  18097. Ft("dd", function(r, f) {
  18098. return f.weekdaysMinRegex(r);
  18099. });
  18100. Ft("ddd", function(r, f) {
  18101. return f.weekdaysShortRegex(r);
  18102. });
  18103. Ft("dddd", function(r, f) {
  18104. return f.weekdaysRegex(r);
  18105. });
  18106. ho(["dd", "ddd", "dddd"], function(r, f, E, h) {
  18107. var y = E._locale.weekdaysParse(r, h, E._strict);
  18108. y != null ? f.d = y : oe(E).invalidWeekday = r;
  18109. });
  18110. ho(["d", "e", "E"], function(r, f, E, h) {
  18111. f[h] = he(r);
  18112. });
  18113. function L1(r, f) {
  18114. return typeof r != "string" ? r : isNaN(r) ? (r = f.weekdaysParse(r), typeof r == "number" ? r : null) : parseInt(r, 10);
  18115. }
  18116. function _1(r, f) {
  18117. return typeof r == "string" ? f.weekdaysParse(r) % 7 || 7 : isNaN(r) ? null : r;
  18118. }
  18119. function Dh(r, f) {
  18120. return r.slice(f, 7).concat(r.slice(0, f));
  18121. }
  18122. var D1 = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), uu = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), I1 = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), R1 = ao, N1 = ao, B1 = ao;
  18123. function j1(r, f) {
  18124. var E = Bi(this._weekdays) ? this._weekdays : this._weekdays[r && r !== !0 && this._weekdays.isFormat.test(f) ? "format" : "standalone"];
  18125. return r === !0 ? Dh(E, this._week.dow) : r ? E[r.day()] : E;
  18126. }
  18127. function W1(r) {
  18128. return r === !0 ? Dh(this._weekdaysShort, this._week.dow) : r ? this._weekdaysShort[r.day()] : this._weekdaysShort;
  18129. }
  18130. function z1(r) {
  18131. return r === !0 ? Dh(this._weekdaysMin, this._week.dow) : r ? this._weekdaysMin[r.day()] : this._weekdaysMin;
  18132. }
  18133. function Y1(r, f, E) {
  18134. var h, y, j, I = r.toLocaleLowerCase();
  18135. if (!this._weekdaysParse)
  18136. for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], h = 0; h < 7; ++h)
  18137. j = Zi([2e3, 1]).day(h), this._minWeekdaysParse[h] = this.weekdaysMin(
  18138. j,
  18139. ""
  18140. ).toLocaleLowerCase(), this._shortWeekdaysParse[h] = this.weekdaysShort(
  18141. j,
  18142. ""
  18143. ).toLocaleLowerCase(), this._weekdaysParse[h] = this.weekdays(j, "").toLocaleLowerCase();
  18144. return E ? f === "dddd" ? (y = We.call(this._weekdaysParse, I), y !== -1 ? y : null) : f === "ddd" ? (y = We.call(this._shortWeekdaysParse, I), y !== -1 ? y : null) : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null) : f === "dddd" ? (y = We.call(this._weekdaysParse, I), y !== -1 || (y = We.call(this._shortWeekdaysParse, I), y !== -1) ? y : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null)) : f === "ddd" ? (y = We.call(this._shortWeekdaysParse, I), y !== -1 || (y = We.call(this._weekdaysParse, I), y !== -1) ? y : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null)) : (y = We.call(this._minWeekdaysParse, I), y !== -1 || (y = We.call(this._weekdaysParse, I), y !== -1) ? y : (y = We.call(this._shortWeekdaysParse, I), y !== -1 ? y : null));
  18145. }
  18146. function X1(r, f, E) {
  18147. var h, y, j;
  18148. if (this._weekdaysParseExact)
  18149. return Y1.call(this, r, f, E);
  18150. for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), h = 0; h < 7; h++) {
  18151. if (y = Zi([2e3, 1]).day(h), E && !this._fullWeekdaysParse[h] && (this._fullWeekdaysParse[h] = new RegExp(
  18152. "^" + this.weekdays(y, "").replace(".", "\\.?") + "$",
  18153. "i"
  18154. ), this._shortWeekdaysParse[h] = new RegExp(
  18155. "^" + this.weekdaysShort(y, "").replace(".", "\\.?") + "$",
  18156. "i"
  18157. ), this._minWeekdaysParse[h] = new RegExp(
  18158. "^" + this.weekdaysMin(y, "").replace(".", "\\.?") + "$",
  18159. "i"
  18160. )), this._weekdaysParse[h] || (j = "^" + this.weekdays(y, "") + "|^" + this.weekdaysShort(y, "") + "|^" + this.weekdaysMin(y, ""), this._weekdaysParse[h] = new RegExp(j.replace(".", ""), "i")), E && f === "dddd" && this._fullWeekdaysParse[h].test(r))
  18161. return h;
  18162. if (E && f === "ddd" && this._shortWeekdaysParse[h].test(r))
  18163. return h;
  18164. if (E && f === "dd" && this._minWeekdaysParse[h].test(r))
  18165. return h;
  18166. if (!E && this._weekdaysParse[h].test(r))
  18167. return h;
  18168. }
  18169. }
  18170. function G1(r) {
  18171. if (!this.isValid())
  18172. return r != null ? this : NaN;
  18173. var f = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  18174. return r != null ? (r = L1(r, this.localeData()), this.add(r - f, "d")) : f;
  18175. }
  18176. function H1(r) {
  18177. if (!this.isValid())
  18178. return r != null ? this : NaN;
  18179. var f = (this.day() + 7 - this.localeData()._week.dow) % 7;
  18180. return r == null ? f : this.add(r - f, "d");
  18181. }
  18182. function F1(r) {
  18183. if (!this.isValid())
  18184. return r != null ? this : NaN;
  18185. if (r != null) {
  18186. var f = _1(r, this.localeData());
  18187. return this.day(this.day() % 7 ? f : f - 7);
  18188. } else
  18189. return this.day() || 7;
  18190. }
  18191. function U1(r) {
  18192. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Ih.call(this), r ? this._weekdaysStrictRegex : this._weekdaysRegex) : (me(this, "_weekdaysRegex") || (this._weekdaysRegex = R1), this._weekdaysStrictRegex && r ? this._weekdaysStrictRegex : this._weekdaysRegex);
  18193. }
  18194. function V1(r) {
  18195. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Ih.call(this), r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (me(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = N1), this._weekdaysShortStrictRegex && r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
  18196. }
  18197. function $1(r) {
  18198. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Ih.call(this), r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (me(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = B1), this._weekdaysMinStrictRegex && r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
  18199. }
  18200. function Ih() {
  18201. function r(H, W) {
  18202. return W.length - H.length;
  18203. }
  18204. var f = [], E = [], h = [], y = [], j, I, Z, F, U;
  18205. for (j = 0; j < 7; j++)
  18206. I = Zi([2e3, 1]).day(j), Z = yi(this.weekdaysMin(I, "")), F = yi(this.weekdaysShort(I, "")), U = yi(this.weekdays(I, "")), f.push(Z), E.push(F), h.push(U), y.push(Z), y.push(F), y.push(U);
  18207. f.sort(r), E.sort(r), h.sort(r), y.sort(r), this._weekdaysRegex = new RegExp("^(" + y.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
  18208. "^(" + h.join("|") + ")",
  18209. "i"
  18210. ), this._weekdaysShortStrictRegex = new RegExp(
  18211. "^(" + E.join("|") + ")",
  18212. "i"
  18213. ), this._weekdaysMinStrictRegex = new RegExp(
  18214. "^(" + f.join("|") + ")",
  18215. "i"
  18216. );
  18217. }
  18218. function Rh() {
  18219. return this.hours() % 12 || 12;
  18220. }
  18221. function Z1() {
  18222. return this.hours() || 24;
  18223. }
  18224. Zt("H", ["HH", 2], 0, "hour");
  18225. Zt("h", ["hh", 2], 0, Rh);
  18226. Zt("k", ["kk", 2], 0, Z1);
  18227. Zt("hmm", 0, 0, function() {
  18228. return "" + Rh.apply(this) + Ui(this.minutes(), 2);
  18229. });
  18230. Zt("hmmss", 0, 0, function() {
  18231. return "" + Rh.apply(this) + Ui(this.minutes(), 2) + Ui(this.seconds(), 2);
  18232. });
  18233. Zt("Hmm", 0, 0, function() {
  18234. return "" + this.hours() + Ui(this.minutes(), 2);
  18235. });
  18236. Zt("Hmmss", 0, 0, function() {
  18237. return "" + this.hours() + Ui(this.minutes(), 2) + Ui(this.seconds(), 2);
  18238. });
  18239. function du(r, f) {
  18240. Zt(r, 0, 0, function() {
  18241. return this.localeData().meridiem(
  18242. this.hours(),
  18243. this.minutes(),
  18244. f
  18245. );
  18246. });
  18247. }
  18248. du("a", !0);
  18249. du("A", !1);
  18250. ti("hour", "h");
  18251. ei("hour", 13);
  18252. function fu(r, f) {
  18253. return f._meridiemParse;
  18254. }
  18255. Ft("a", fu);
  18256. Ft("A", fu);
  18257. Ft("H", Pe);
  18258. Ft("h", Pe);
  18259. Ft("k", Pe);
  18260. Ft("HH", Pe, vi);
  18261. Ft("hh", Pe, vi);
  18262. Ft("kk", Pe, vi);
  18263. Ft("hmm", ru);
  18264. Ft("hmmss", nu);
  18265. Ft("Hmm", ru);
  18266. Ft("Hmmss", nu);
  18267. we(["H", "HH"], Xe);
  18268. we(["k", "kk"], function(r, f, E) {
  18269. var h = he(r);
  18270. f[Xe] = h === 24 ? 0 : h;
  18271. });
  18272. we(["a", "A"], function(r, f, E) {
  18273. E._isPm = E._locale.isPM(r), E._meridiem = r;
  18274. });
  18275. we(["h", "hh"], function(r, f, E) {
  18276. f[Xe] = he(r), oe(E).bigHour = !0;
  18277. });
  18278. we("hmm", function(r, f, E) {
  18279. var h = r.length - 2;
  18280. f[Xe] = he(r.substr(0, h)), f[Ni] = he(r.substr(h)), oe(E).bigHour = !0;
  18281. });
  18282. we("hmmss", function(r, f, E) {
  18283. var h = r.length - 4, y = r.length - 2;
  18284. f[Xe] = he(r.substr(0, h)), f[Ni] = he(r.substr(h, 2)), f[pr] = he(r.substr(y)), oe(E).bigHour = !0;
  18285. });
  18286. we("Hmm", function(r, f, E) {
  18287. var h = r.length - 2;
  18288. f[Xe] = he(r.substr(0, h)), f[Ni] = he(r.substr(h));
  18289. });
  18290. we("Hmmss", function(r, f, E) {
  18291. var h = r.length - 4, y = r.length - 2;
  18292. f[Xe] = he(r.substr(0, h)), f[Ni] = he(r.substr(h, 2)), f[pr] = he(r.substr(y));
  18293. });
  18294. function K1(r) {
  18295. return (r + "").toLowerCase().charAt(0) === "p";
  18296. }
  18297. var J1 = /[ap]\.?m?\.?/i, q1 = kn("Hours", !0);
  18298. function Q1(r, f, E) {
  18299. return r > 11 ? E ? "pm" : "PM" : E ? "am" : "AM";
  18300. }
  18301. var gu = {
  18302. calendar: X0,
  18303. longDateFormat: U0,
  18304. invalidDate: $0,
  18305. ordinal: K0,
  18306. dayOfMonthOrdinalParse: J0,
  18307. relativeTime: Q0,
  18308. months: d1,
  18309. monthsShort: ou,
  18310. week: A1,
  18311. weekdays: D1,
  18312. weekdaysMin: I1,
  18313. weekdaysShort: uu,
  18314. meridiemParse: J1
  18315. }, Oe = {}, $n = {}, ro;
  18316. function tb(r, f) {
  18317. var E, h = Math.min(r.length, f.length);
  18318. for (E = 0; E < h; E += 1)
  18319. if (r[E] !== f[E])
  18320. return E;
  18321. return h;
  18322. }
  18323. function Ap(r) {
  18324. return r && r.toLowerCase().replace("_", "-");
  18325. }
  18326. function eb(r) {
  18327. for (var f = 0, E, h, y, j; f < r.length; ) {
  18328. for (j = Ap(r[f]).split("-"), E = j.length, h = Ap(r[f + 1]), h = h ? h.split("-") : null; E > 0; ) {
  18329. if (y = Is(j.slice(0, E).join("-")), y)
  18330. return y;
  18331. if (h && h.length >= E && tb(j, h) >= E - 1)
  18332. break;
  18333. E--;
  18334. }
  18335. f++;
  18336. }
  18337. return ro;
  18338. }
  18339. function ib(r) {
  18340. return r.match("^[^/\\\\]*$") != null;
  18341. }
  18342. function Is(r) {
  18343. var f = null, E;
  18344. if (Oe[r] === void 0 && typeof module < "u" && module && module.exports && ib(r))
  18345. try {
  18346. f = ro._abbr, E = require, E("./locale/" + r), Or(f);
  18347. } catch {
  18348. Oe[r] = null;
  18349. }
  18350. return Oe[r];
  18351. }
  18352. function Or(r, f) {
  18353. var E;
  18354. return r && (li(f) ? E = gr(r) : E = Nh(r, f), E ? ro = E : typeof console < "u" && console.warn && console.warn(
  18355. "Locale " + r + " not found. Did you forget to load it?"
  18356. )), ro._abbr;
  18357. }
  18358. function Nh(r, f) {
  18359. if (f !== null) {
  18360. var E, h = gu;
  18361. if (f.abbr = r, Oe[r] != null)
  18362. Jp(
  18363. "defineLocaleOverride",
  18364. "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
  18365. ), h = Oe[r]._config;
  18366. else if (f.parentLocale != null)
  18367. if (Oe[f.parentLocale] != null)
  18368. h = Oe[f.parentLocale]._config;
  18369. else if (E = Is(f.parentLocale), E != null)
  18370. h = E._config;
  18371. else
  18372. return $n[f.parentLocale] || ($n[f.parentLocale] = []), $n[f.parentLocale].push({
  18373. name: r,
  18374. config: f
  18375. }), null;
  18376. return Oe[r] = new Ph(gh(h, f)), $n[r] && $n[r].forEach(function(y) {
  18377. Nh(y.name, y.config);
  18378. }), Or(r), Oe[r];
  18379. } else
  18380. return delete Oe[r], null;
  18381. }
  18382. function rb(r, f) {
  18383. if (f != null) {
  18384. var E, h, y = gu;
  18385. Oe[r] != null && Oe[r].parentLocale != null ? Oe[r].set(gh(Oe[r]._config, f)) : (h = Is(r), h != null && (y = h._config), f = gh(y, f), h == null && (f.abbr = r), E = new Ph(f), E.parentLocale = Oe[r], Oe[r] = E), Or(r);
  18386. } else
  18387. Oe[r] != null && (Oe[r].parentLocale != null ? (Oe[r] = Oe[r].parentLocale, r === Or() && Or(r)) : Oe[r] != null && delete Oe[r]);
  18388. return Oe[r];
  18389. }
  18390. function gr(r) {
  18391. var f;
  18392. if (r && r._locale && r._locale._abbr && (r = r._locale._abbr), !r)
  18393. return ro;
  18394. if (!Bi(r)) {
  18395. if (f = Is(r), f)
  18396. return f;
  18397. r = [r];
  18398. }
  18399. return eb(r);
  18400. }
  18401. function nb() {
  18402. return mh(Oe);
  18403. }
  18404. function Bh(r) {
  18405. var f, E = r._a;
  18406. return E && oe(r).overflow === -2 && (f = E[cr] < 0 || E[cr] > 11 ? cr : E[Hi] < 1 || E[Hi] > Ds(E[Qe], E[cr]) ? Hi : E[Xe] < 0 || E[Xe] > 24 || E[Xe] === 24 && (E[Ni] !== 0 || E[pr] !== 0 || E[Ur] !== 0) ? Xe : E[Ni] < 0 || E[Ni] > 59 ? Ni : E[pr] < 0 || E[pr] > 59 ? pr : E[Ur] < 0 || E[Ur] > 999 ? Ur : -1, oe(r)._overflowDayOfYear && (f < Qe || f > Hi) && (f = Hi), oe(r)._overflowWeeks && f === -1 && (f = c1), oe(r)._overflowWeekday && f === -1 && (f = p1), oe(r).overflow = f), r;
  18407. }
  18408. var ob = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, sb = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ab = /Z|[+-]\d\d(?::?\d\d)?/, ns = [
  18409. ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
  18410. ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
  18411. ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
  18412. ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
  18413. ["YYYY-DDD", /\d{4}-\d{3}/],
  18414. ["YYYY-MM", /\d{4}-\d\d/, !1],
  18415. ["YYYYYYMMDD", /[+-]\d{10}/],
  18416. ["YYYYMMDD", /\d{8}/],
  18417. ["GGGG[W]WWE", /\d{4}W\d{3}/],
  18418. ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
  18419. ["YYYYDDD", /\d{7}/],
  18420. ["YYYYMM", /\d{6}/, !1],
  18421. ["YYYY", /\d{4}/, !1]
  18422. ], oh = [
  18423. ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
  18424. ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
  18425. ["HH:mm:ss", /\d\d:\d\d:\d\d/],
  18426. ["HH:mm", /\d\d:\d\d/],
  18427. ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
  18428. ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
  18429. ["HHmmss", /\d\d\d\d\d\d/],
  18430. ["HHmm", /\d\d\d\d/],
  18431. ["HH", /\d\d/]
  18432. ], hb = /^\/?Date\((-?\d+)/i, lb = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, cb = {
  18433. UT: 0,
  18434. GMT: 0,
  18435. EDT: -4 * 60,
  18436. EST: -5 * 60,
  18437. CDT: -5 * 60,
  18438. CST: -6 * 60,
  18439. MDT: -6 * 60,
  18440. MST: -7 * 60,
  18441. PDT: -7 * 60,
  18442. PST: -8 * 60
  18443. };
  18444. function mu(r) {
  18445. var f, E, h = r._i, y = ob.exec(h) || sb.exec(h), j, I, Z, F, U = ns.length, H = oh.length;
  18446. if (y) {
  18447. for (oe(r).iso = !0, f = 0, E = U; f < E; f++)
  18448. if (ns[f][1].exec(y[1])) {
  18449. I = ns[f][0], j = ns[f][2] !== !1;
  18450. break;
  18451. }
  18452. if (I == null) {
  18453. r._isValid = !1;
  18454. return;
  18455. }
  18456. if (y[3]) {
  18457. for (f = 0, E = H; f < E; f++)
  18458. if (oh[f][1].exec(y[3])) {
  18459. Z = (y[2] || " ") + oh[f][0];
  18460. break;
  18461. }
  18462. if (Z == null) {
  18463. r._isValid = !1;
  18464. return;
  18465. }
  18466. }
  18467. if (!j && Z != null) {
  18468. r._isValid = !1;
  18469. return;
  18470. }
  18471. if (y[4])
  18472. if (ab.exec(y[4]))
  18473. F = "Z";
  18474. else {
  18475. r._isValid = !1;
  18476. return;
  18477. }
  18478. r._f = I + (Z || "") + (F || ""), Wh(r);
  18479. } else
  18480. r._isValid = !1;
  18481. }
  18482. function pb(r, f, E, h, y, j) {
  18483. var I = [
  18484. ub(r),
  18485. ou.indexOf(f),
  18486. parseInt(E, 10),
  18487. parseInt(h, 10),
  18488. parseInt(y, 10)
  18489. ];
  18490. return j && I.push(parseInt(j, 10)), I;
  18491. }
  18492. function ub(r) {
  18493. var f = parseInt(r, 10);
  18494. return f <= 49 ? 2e3 + f : f <= 999 ? 1900 + f : f;
  18495. }
  18496. function db(r) {
  18497. return r.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
  18498. }
  18499. function fb(r, f, E) {
  18500. if (r) {
  18501. var h = uu.indexOf(r), y = new Date(
  18502. f[0],
  18503. f[1],
  18504. f[2]
  18505. ).getDay();
  18506. if (h !== y)
  18507. return oe(E).weekdayMismatch = !0, E._isValid = !1, !1;
  18508. }
  18509. return !0;
  18510. }
  18511. function gb(r, f, E) {
  18512. if (r)
  18513. return cb[r];
  18514. if (f)
  18515. return 0;
  18516. var h = parseInt(E, 10), y = h % 100, j = (h - y) / 100;
  18517. return j * 60 + y;
  18518. }
  18519. function yu(r) {
  18520. var f = lb.exec(db(r._i)), E;
  18521. if (f) {
  18522. if (E = pb(
  18523. f[4],
  18524. f[3],
  18525. f[2],
  18526. f[5],
  18527. f[6],
  18528. f[7]
  18529. ), !fb(f[1], E, r))
  18530. return;
  18531. r._a = E, r._tzm = gb(f[8], f[9], f[10]), r._d = eo.apply(null, r._a), r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), oe(r).rfc2822 = !0;
  18532. } else
  18533. r._isValid = !1;
  18534. }
  18535. function mb(r) {
  18536. var f = hb.exec(r._i);
  18537. if (f !== null) {
  18538. r._d = /* @__PURE__ */ new Date(+f[1]);
  18539. return;
  18540. }
  18541. if (mu(r), r._isValid === !1)
  18542. delete r._isValid;
  18543. else
  18544. return;
  18545. if (yu(r), r._isValid === !1)
  18546. delete r._isValid;
  18547. else
  18548. return;
  18549. r._strict ? r._isValid = !1 : Xt.createFromInputFallback(r);
  18550. }
  18551. Xt.createFromInputFallback = Ei(
  18552. "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
  18553. function(r) {
  18554. r._d = /* @__PURE__ */ new Date(r._i + (r._useUTC ? " UTC" : ""));
  18555. }
  18556. );
  18557. function fn(r, f, E) {
  18558. return r ?? f ?? E;
  18559. }
  18560. function yb(r) {
  18561. var f = new Date(Xt.now());
  18562. return r._useUTC ? [
  18563. f.getUTCFullYear(),
  18564. f.getUTCMonth(),
  18565. f.getUTCDate()
  18566. ] : [f.getFullYear(), f.getMonth(), f.getDate()];
  18567. }
  18568. function jh(r) {
  18569. var f, E, h = [], y, j, I;
  18570. if (!r._d) {
  18571. for (y = yb(r), r._w && r._a[Hi] == null && r._a[cr] == null && vb(r), r._dayOfYear != null && (I = fn(r._a[Qe], y[Qe]), (r._dayOfYear > Qn(I) || r._dayOfYear === 0) && (oe(r)._overflowDayOfYear = !0), E = eo(I, 0, r._dayOfYear), r._a[cr] = E.getUTCMonth(), r._a[Hi] = E.getUTCDate()), f = 0; f < 3 && r._a[f] == null; ++f)
  18572. r._a[f] = h[f] = y[f];
  18573. for (; f < 7; f++)
  18574. r._a[f] = h[f] = r._a[f] == null ? f === 2 ? 1 : 0 : r._a[f];
  18575. r._a[Xe] === 24 && r._a[Ni] === 0 && r._a[pr] === 0 && r._a[Ur] === 0 && (r._nextDay = !0, r._a[Xe] = 0), r._d = (r._useUTC ? eo : C1).apply(
  18576. null,
  18577. h
  18578. ), j = r._useUTC ? r._d.getUTCDay() : r._d.getDay(), r._tzm != null && r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), r._nextDay && (r._a[Xe] = 24), r._w && typeof r._w.d < "u" && r._w.d !== j && (oe(r).weekdayMismatch = !0);
  18579. }
  18580. }
  18581. function vb(r) {
  18582. var f, E, h, y, j, I, Z, F, U;
  18583. f = r._w, f.GG != null || f.W != null || f.E != null ? (j = 1, I = 4, E = fn(
  18584. f.GG,
  18585. r._a[Qe],
  18586. io(Te(), 1, 4).year
  18587. ), h = fn(f.W, 1), y = fn(f.E, 1), (y < 1 || y > 7) && (F = !0)) : (j = r._locale._week.dow, I = r._locale._week.doy, U = io(Te(), j, I), E = fn(f.gg, r._a[Qe], U.year), h = fn(f.w, U.week), f.d != null ? (y = f.d, (y < 0 || y > 6) && (F = !0)) : f.e != null ? (y = f.e + j, (f.e < 0 || f.e > 6) && (F = !0)) : y = j), h < 1 || h > ur(E, j, I) ? oe(r)._overflowWeeks = !0 : F != null ? oe(r)._overflowWeekday = !0 : (Z = pu(E, h, y, j, I), r._a[Qe] = Z.year, r._dayOfYear = Z.dayOfYear);
  18588. }
  18589. Xt.ISO_8601 = function() {
  18590. };
  18591. Xt.RFC_2822 = function() {
  18592. };
  18593. function Wh(r) {
  18594. if (r._f === Xt.ISO_8601) {
  18595. mu(r);
  18596. return;
  18597. }
  18598. if (r._f === Xt.RFC_2822) {
  18599. yu(r);
  18600. return;
  18601. }
  18602. r._a = [], oe(r).empty = !0;
  18603. var f = "" + r._i, E, h, y, j, I, Z = f.length, F = 0, U, H;
  18604. for (y = qp(r._f, r._locale).match(Eh) || [], H = y.length, E = 0; E < H; E++)
  18605. j = y[E], h = (f.match(a1(j, r)) || [])[0], h && (I = f.substr(0, f.indexOf(h)), I.length > 0 && oe(r).unusedInput.push(I), f = f.slice(
  18606. f.indexOf(h) + h.length
  18607. ), F += h.length), yn[j] ? (h ? oe(r).empty = !1 : oe(r).unusedTokens.push(j), l1(j, h, r)) : r._strict && !h && oe(r).unusedTokens.push(j);
  18608. oe(r).charsLeftOver = Z - F, f.length > 0 && oe(r).unusedInput.push(f), r._a[Xe] <= 12 && oe(r).bigHour === !0 && r._a[Xe] > 0 && (oe(r).bigHour = void 0), oe(r).parsedDateParts = r._a.slice(0), oe(r).meridiem = r._meridiem, r._a[Xe] = xb(
  18609. r._locale,
  18610. r._a[Xe],
  18611. r._meridiem
  18612. ), U = oe(r).era, U !== null && (r._a[Qe] = r._locale.erasConvertYear(U, r._a[Qe])), jh(r), Bh(r);
  18613. }
  18614. function xb(r, f, E) {
  18615. var h;
  18616. return E == null ? f : r.meridiemHour != null ? r.meridiemHour(f, E) : (r.isPM != null && (h = r.isPM(E), h && f < 12 && (f += 12), !h && f === 12 && (f = 0)), f);
  18617. }
  18618. function bb(r) {
  18619. var f, E, h, y, j, I, Z = !1, F = r._f.length;
  18620. if (F === 0) {
  18621. oe(r).invalidFormat = !0, r._d = /* @__PURE__ */ new Date(NaN);
  18622. return;
  18623. }
  18624. for (y = 0; y < F; y++)
  18625. j = 0, I = !1, f = Th({}, r), r._useUTC != null && (f._useUTC = r._useUTC), f._f = r._f[y], Wh(f), Ah(f) && (I = !0), j += oe(f).charsLeftOver, j += oe(f).unusedTokens.length * 10, oe(f).score = j, Z ? j < h && (h = j, E = f) : (h == null || j < h || I) && (h = j, E = f, I && (Z = !0));
  18626. Pr(r, E || f);
  18627. }
  18628. function Sb(r) {
  18629. if (!r._d) {
  18630. var f = Oh(r._i), E = f.day === void 0 ? f.date : f.day;
  18631. r._a = Zp(
  18632. [f.year, f.month, E, f.hour, f.minute, f.second, f.millisecond],
  18633. function(h) {
  18634. return h && parseInt(h, 10);
  18635. }
  18636. ), jh(r);
  18637. }
  18638. }
  18639. function wb(r) {
  18640. var f = new so(Bh(vu(r)));
  18641. return f._nextDay && (f.add(1, "d"), f._nextDay = void 0), f;
  18642. }
  18643. function vu(r) {
  18644. var f = r._i, E = r._f;
  18645. return r._locale = r._locale || gr(r._l), f === null || E === void 0 && f === "" ? As({ nullInput: !0 }) : (typeof f == "string" && (r._i = f = r._locale.preparse(f)), ji(f) ? new so(Bh(f)) : (oo(f) ? r._d = f : Bi(E) ? bb(r) : E ? Wh(r) : Mb(r), Ah(r) || (r._d = null), r));
  18646. }
  18647. function Mb(r) {
  18648. var f = r._i;
  18649. li(f) ? r._d = new Date(Xt.now()) : oo(f) ? r._d = new Date(f.valueOf()) : typeof f == "string" ? mb(r) : Bi(f) ? (r._a = Zp(f.slice(0), function(E) {
  18650. return parseInt(E, 10);
  18651. }), jh(r)) : $r(f) ? Sb(r) : fr(f) ? r._d = new Date(f) : Xt.createFromInputFallback(r);
  18652. }
  18653. function xu(r, f, E, h, y) {
  18654. var j = {};
  18655. return (f === !0 || f === !1) && (h = f, f = void 0), (E === !0 || E === !1) && (h = E, E = void 0), ($r(r) && kh(r) || Bi(r) && r.length === 0) && (r = void 0), j._isAMomentObject = !0, j._useUTC = j._isUTC = y, j._l = E, j._i = r, j._f = f, j._strict = h, wb(j);
  18656. }
  18657. function Te(r, f, E, h) {
  18658. return xu(r, f, E, h, !1);
  18659. }
  18660. var Cb = Ei(
  18661. "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
  18662. function() {
  18663. var r = Te.apply(null, arguments);
  18664. return this.isValid() && r.isValid() ? r < this ? this : r : As();
  18665. }
  18666. ), kb = Ei(
  18667. "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
  18668. function() {
  18669. var r = Te.apply(null, arguments);
  18670. return this.isValid() && r.isValid() ? r > this ? this : r : As();
  18671. }
  18672. );
  18673. function bu(r, f) {
  18674. var E, h;
  18675. if (f.length === 1 && Bi(f[0]) && (f = f[0]), !f.length)
  18676. return Te();
  18677. for (E = f[0], h = 1; h < f.length; ++h)
  18678. (!f[h].isValid() || f[h][r](E)) && (E = f[h]);
  18679. return E;
  18680. }
  18681. function Ab() {
  18682. var r = [].slice.call(arguments, 0);
  18683. return bu("isBefore", r);
  18684. }
  18685. function Tb() {
  18686. var r = [].slice.call(arguments, 0);
  18687. return bu("isAfter", r);
  18688. }
  18689. var Pb = function() {
  18690. return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
  18691. }, Zn = [
  18692. "year",
  18693. "quarter",
  18694. "month",
  18695. "week",
  18696. "day",
  18697. "hour",
  18698. "minute",
  18699. "second",
  18700. "millisecond"
  18701. ];
  18702. function Eb(r) {
  18703. var f, E = !1, h, y = Zn.length;
  18704. for (f in r)
  18705. if (me(r, f) && !(We.call(Zn, f) !== -1 && (r[f] == null || !isNaN(r[f]))))
  18706. return !1;
  18707. for (h = 0; h < y; ++h)
  18708. if (r[Zn[h]]) {
  18709. if (E)
  18710. return !1;
  18711. parseFloat(r[Zn[h]]) !== he(r[Zn[h]]) && (E = !0);
  18712. }
  18713. return !0;
  18714. }
  18715. function Ob() {
  18716. return this._isValid;
  18717. }
  18718. function Lb() {
  18719. return Wi(NaN);
  18720. }
  18721. function Rs(r) {
  18722. var f = Oh(r), E = f.year || 0, h = f.quarter || 0, y = f.month || 0, j = f.week || f.isoWeek || 0, I = f.day || 0, Z = f.hour || 0, F = f.minute || 0, U = f.second || 0, H = f.millisecond || 0;
  18723. this._isValid = Eb(f), this._milliseconds = +H + U * 1e3 + // 1000
  18724. F * 6e4 + // 1000 * 60
  18725. Z * 1e3 * 60 * 60, this._days = +I + j * 7, this._months = +y + h * 3 + E * 12, this._data = {}, this._locale = gr(), this._bubble();
  18726. }
  18727. function as(r) {
  18728. return r instanceof Rs;
  18729. }
  18730. function vh(r) {
  18731. return r < 0 ? Math.round(-1 * r) * -1 : Math.round(r);
  18732. }
  18733. function _b(r, f, E) {
  18734. var h = Math.min(r.length, f.length), y = Math.abs(r.length - f.length), j = 0, I;
  18735. for (I = 0; I < h; I++)
  18736. (E && r[I] !== f[I] || !E && he(r[I]) !== he(f[I])) && j++;
  18737. return j + y;
  18738. }
  18739. function Su(r, f) {
  18740. Zt(r, 0, 0, function() {
  18741. var E = this.utcOffset(), h = "+";
  18742. return E < 0 && (E = -E, h = "-"), h + Ui(~~(E / 60), 2) + f + Ui(~~E % 60, 2);
  18743. });
  18744. }
  18745. Su("Z", ":");
  18746. Su("ZZ", "");
  18747. Ft("Z", _s);
  18748. Ft("ZZ", _s);
  18749. we(["Z", "ZZ"], function(r, f, E) {
  18750. E._useUTC = !0, E._tzm = zh(_s, r);
  18751. });
  18752. var Db = /([\+\-]|\d\d)/gi;
  18753. function zh(r, f) {
  18754. var E = (f || "").match(r), h, y, j;
  18755. return E === null ? null : (h = E[E.length - 1] || [], y = (h + "").match(Db) || ["-", 0, 0], j = +(y[1] * 60) + he(y[2]), j === 0 ? 0 : y[0] === "+" ? j : -j);
  18756. }
  18757. function Yh(r, f) {
  18758. var E, h;
  18759. return f._isUTC ? (E = f.clone(), h = (ji(r) || oo(r) ? r.valueOf() : Te(r).valueOf()) - E.valueOf(), E._d.setTime(E._d.valueOf() + h), Xt.updateOffset(E, !1), E) : Te(r).local();
  18760. }
  18761. function xh(r) {
  18762. return -Math.round(r._d.getTimezoneOffset());
  18763. }
  18764. Xt.updateOffset = function() {
  18765. };
  18766. function Ib(r, f, E) {
  18767. var h = this._offset || 0, y;
  18768. if (!this.isValid())
  18769. return r != null ? this : NaN;
  18770. if (r != null) {
  18771. if (typeof r == "string") {
  18772. if (r = zh(_s, r), r === null)
  18773. return this;
  18774. } else
  18775. Math.abs(r) < 16 && !E && (r = r * 60);
  18776. return !this._isUTC && f && (y = xh(this)), this._offset = r, this._isUTC = !0, y != null && this.add(y, "m"), h !== r && (!f || this._changeInProgress ? Cu(
  18777. this,
  18778. Wi(r - h, "m"),
  18779. 1,
  18780. !1
  18781. ) : this._changeInProgress || (this._changeInProgress = !0, Xt.updateOffset(this, !0), this._changeInProgress = null)), this;
  18782. } else
  18783. return this._isUTC ? h : xh(this);
  18784. }
  18785. function Rb(r, f) {
  18786. return r != null ? (typeof r != "string" && (r = -r), this.utcOffset(r, f), this) : -this.utcOffset();
  18787. }
  18788. function Nb(r) {
  18789. return this.utcOffset(0, r);
  18790. }
  18791. function Bb(r) {
  18792. return this._isUTC && (this.utcOffset(0, r), this._isUTC = !1, r && this.subtract(xh(this), "m")), this;
  18793. }
  18794. function jb() {
  18795. if (this._tzm != null)
  18796. this.utcOffset(this._tzm, !1, !0);
  18797. else if (typeof this._i == "string") {
  18798. var r = zh(o1, this._i);
  18799. r != null ? this.utcOffset(r) : this.utcOffset(0, !0);
  18800. }
  18801. return this;
  18802. }
  18803. function Wb(r) {
  18804. return this.isValid() ? (r = r ? Te(r).utcOffset() : 0, (this.utcOffset() - r) % 60 === 0) : !1;
  18805. }
  18806. function zb() {
  18807. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
  18808. }
  18809. function Yb() {
  18810. if (!li(this._isDSTShifted))
  18811. return this._isDSTShifted;
  18812. var r = {}, f;
  18813. return Th(r, this), r = vu(r), r._a ? (f = r._isUTC ? Zi(r._a) : Te(r._a), this._isDSTShifted = this.isValid() && _b(r._a, f.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
  18814. }
  18815. function Xb() {
  18816. return this.isValid() ? !this._isUTC : !1;
  18817. }
  18818. function Gb() {
  18819. return this.isValid() ? this._isUTC : !1;
  18820. }
  18821. function wu() {
  18822. return this.isValid() ? this._isUTC && this._offset === 0 : !1;
  18823. }
  18824. var Hb = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Fb = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  18825. function Wi(r, f) {
  18826. var E = r, h = null, y, j, I;
  18827. return as(r) ? E = {
  18828. ms: r._milliseconds,
  18829. d: r._days,
  18830. M: r._months
  18831. } : fr(r) || !isNaN(+r) ? (E = {}, f ? E[f] = +r : E.milliseconds = +r) : (h = Hb.exec(r)) ? (y = h[1] === "-" ? -1 : 1, E = {
  18832. y: 0,
  18833. d: he(h[Hi]) * y,
  18834. h: he(h[Xe]) * y,
  18835. m: he(h[Ni]) * y,
  18836. s: he(h[pr]) * y,
  18837. ms: he(vh(h[Ur] * 1e3)) * y
  18838. // the millisecond decimal point is included in the match
  18839. }) : (h = Fb.exec(r)) ? (y = h[1] === "-" ? -1 : 1, E = {
  18840. y: Hr(h[2], y),
  18841. M: Hr(h[3], y),
  18842. w: Hr(h[4], y),
  18843. d: Hr(h[5], y),
  18844. h: Hr(h[6], y),
  18845. m: Hr(h[7], y),
  18846. s: Hr(h[8], y)
  18847. }) : E == null ? E = {} : typeof E == "object" && ("from" in E || "to" in E) && (I = Ub(
  18848. Te(E.from),
  18849. Te(E.to)
  18850. ), E = {}, E.ms = I.milliseconds, E.M = I.months), j = new Rs(E), as(r) && me(r, "_locale") && (j._locale = r._locale), as(r) && me(r, "_isValid") && (j._isValid = r._isValid), j;
  18851. }
  18852. Wi.fn = Rs.prototype;
  18853. Wi.invalid = Lb;
  18854. function Hr(r, f) {
  18855. var E = r && parseFloat(r.replace(",", "."));
  18856. return (isNaN(E) ? 0 : E) * f;
  18857. }
  18858. function Tp(r, f) {
  18859. var E = {};
  18860. return E.months = f.month() - r.month() + (f.year() - r.year()) * 12, r.clone().add(E.months, "M").isAfter(f) && --E.months, E.milliseconds = +f - +r.clone().add(E.months, "M"), E;
  18861. }
  18862. function Ub(r, f) {
  18863. var E;
  18864. return r.isValid() && f.isValid() ? (f = Yh(f, r), r.isBefore(f) ? E = Tp(r, f) : (E = Tp(f, r), E.milliseconds = -E.milliseconds, E.months = -E.months), E) : { milliseconds: 0, months: 0 };
  18865. }
  18866. function Mu(r, f) {
  18867. return function(E, h) {
  18868. var y, j;
  18869. return h !== null && !isNaN(+h) && (Jp(
  18870. f,
  18871. "moment()." + f + "(period, number) is deprecated. Please use moment()." + f + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
  18872. ), j = E, E = h, h = j), y = Wi(E, h), Cu(this, y, r), this;
  18873. };
  18874. }
  18875. function Cu(r, f, E, h) {
  18876. var y = f._milliseconds, j = vh(f._days), I = vh(f._months);
  18877. r.isValid() && (h = h ?? !0, I && au(r, ms(r, "Month") + I * E), j && tu(r, "Date", ms(r, "Date") + j * E), y && r._d.setTime(r._d.valueOf() + y * E), h && Xt.updateOffset(r, j || I));
  18878. }
  18879. var Vb = Mu(1, "add"), $b = Mu(-1, "subtract");
  18880. function ku(r) {
  18881. return typeof r == "string" || r instanceof String;
  18882. }
  18883. function Zb(r) {
  18884. return ji(r) || oo(r) || ku(r) || fr(r) || Jb(r) || Kb(r) || r === null || r === void 0;
  18885. }
  18886. function Kb(r) {
  18887. var f = $r(r) && !kh(r), E = !1, h = [
  18888. "years",
  18889. "year",
  18890. "y",
  18891. "months",
  18892. "month",
  18893. "M",
  18894. "days",
  18895. "day",
  18896. "d",
  18897. "dates",
  18898. "date",
  18899. "D",
  18900. "hours",
  18901. "hour",
  18902. "h",
  18903. "minutes",
  18904. "minute",
  18905. "m",
  18906. "seconds",
  18907. "second",
  18908. "s",
  18909. "milliseconds",
  18910. "millisecond",
  18911. "ms"
  18912. ], y, j, I = h.length;
  18913. for (y = 0; y < I; y += 1)
  18914. j = h[y], E = E || me(r, j);
  18915. return f && E;
  18916. }
  18917. function Jb(r) {
  18918. var f = Bi(r), E = !1;
  18919. return f && (E = r.filter(function(h) {
  18920. return !fr(h) && ku(r);
  18921. }).length === 0), f && E;
  18922. }
  18923. function qb(r) {
  18924. var f = $r(r) && !kh(r), E = !1, h = [
  18925. "sameDay",
  18926. "nextDay",
  18927. "lastDay",
  18928. "nextWeek",
  18929. "lastWeek",
  18930. "sameElse"
  18931. ], y, j;
  18932. for (y = 0; y < h.length; y += 1)
  18933. j = h[y], E = E || me(r, j);
  18934. return f && E;
  18935. }
  18936. function Qb(r, f) {
  18937. var E = r.diff(f, "days", !0);
  18938. return E < -6 ? "sameElse" : E < -1 ? "lastWeek" : E < 0 ? "lastDay" : E < 1 ? "sameDay" : E < 2 ? "nextDay" : E < 7 ? "nextWeek" : "sameElse";
  18939. }
  18940. function tS(r, f) {
  18941. arguments.length === 1 && (arguments[0] ? Zb(arguments[0]) ? (r = arguments[0], f = void 0) : qb(arguments[0]) && (f = arguments[0], r = void 0) : (r = void 0, f = void 0));
  18942. var E = r || Te(), h = Yh(E, this).startOf("day"), y = Xt.calendarFormat(this, h) || "sameElse", j = f && (Ki(f[y]) ? f[y].call(this, E) : f[y]);
  18943. return this.format(
  18944. j || this.localeData().calendar(y, this, Te(E))
  18945. );
  18946. }
  18947. function eS() {
  18948. return new so(this);
  18949. }
  18950. function iS(r, f) {
  18951. var E = ji(r) ? r : Te(r);
  18952. return this.isValid() && E.isValid() ? (f = Oi(f) || "millisecond", f === "millisecond" ? this.valueOf() > E.valueOf() : E.valueOf() < this.clone().startOf(f).valueOf()) : !1;
  18953. }
  18954. function rS(r, f) {
  18955. var E = ji(r) ? r : Te(r);
  18956. return this.isValid() && E.isValid() ? (f = Oi(f) || "millisecond", f === "millisecond" ? this.valueOf() < E.valueOf() : this.clone().endOf(f).valueOf() < E.valueOf()) : !1;
  18957. }
  18958. function nS(r, f, E, h) {
  18959. var y = ji(r) ? r : Te(r), j = ji(f) ? f : Te(f);
  18960. return this.isValid() && y.isValid() && j.isValid() ? (h = h || "()", (h[0] === "(" ? this.isAfter(y, E) : !this.isBefore(y, E)) && (h[1] === ")" ? this.isBefore(j, E) : !this.isAfter(j, E))) : !1;
  18961. }
  18962. function oS(r, f) {
  18963. var E = ji(r) ? r : Te(r), h;
  18964. return this.isValid() && E.isValid() ? (f = Oi(f) || "millisecond", f === "millisecond" ? this.valueOf() === E.valueOf() : (h = E.valueOf(), this.clone().startOf(f).valueOf() <= h && h <= this.clone().endOf(f).valueOf())) : !1;
  18965. }
  18966. function sS(r, f) {
  18967. return this.isSame(r, f) || this.isAfter(r, f);
  18968. }
  18969. function aS(r, f) {
  18970. return this.isSame(r, f) || this.isBefore(r, f);
  18971. }
  18972. function hS(r, f, E) {
  18973. var h, y, j;
  18974. if (!this.isValid())
  18975. return NaN;
  18976. if (h = Yh(r, this), !h.isValid())
  18977. return NaN;
  18978. switch (y = (h.utcOffset() - this.utcOffset()) * 6e4, f = Oi(f), f) {
  18979. case "year":
  18980. j = hs(this, h) / 12;
  18981. break;
  18982. case "month":
  18983. j = hs(this, h);
  18984. break;
  18985. case "quarter":
  18986. j = hs(this, h) / 3;
  18987. break;
  18988. case "second":
  18989. j = (this - h) / 1e3;
  18990. break;
  18991. case "minute":
  18992. j = (this - h) / 6e4;
  18993. break;
  18994. case "hour":
  18995. j = (this - h) / 36e5;
  18996. break;
  18997. case "day":
  18998. j = (this - h - y) / 864e5;
  18999. break;
  19000. case "week":
  19001. j = (this - h - y) / 6048e5;
  19002. break;
  19003. default:
  19004. j = this - h;
  19005. }
  19006. return E ? j : Ti(j);
  19007. }
  19008. function hs(r, f) {
  19009. if (r.date() < f.date())
  19010. return -hs(f, r);
  19011. var E = (f.year() - r.year()) * 12 + (f.month() - r.month()), h = r.clone().add(E, "months"), y, j;
  19012. return f - h < 0 ? (y = r.clone().add(E - 1, "months"), j = (f - h) / (h - y)) : (y = r.clone().add(E + 1, "months"), j = (f - h) / (y - h)), -(E + j) || 0;
  19013. }
  19014. Xt.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
  19015. Xt.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
  19016. function lS() {
  19017. return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
  19018. }
  19019. function cS(r) {
  19020. if (!this.isValid())
  19021. return null;
  19022. var f = r !== !0, E = f ? this.clone().utc() : this;
  19023. return E.year() < 0 || E.year() > 9999 ? ss(
  19024. E,
  19025. f ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19026. ) : Ki(Date.prototype.toISOString) ? f ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", ss(E, "Z")) : ss(
  19027. E,
  19028. f ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19029. );
  19030. }
  19031. function pS() {
  19032. if (!this.isValid())
  19033. return "moment.invalid(/* " + this._i + " */)";
  19034. var r = "moment", f = "", E, h, y, j;
  19035. return this.isLocal() || (r = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", f = "Z"), E = "[" + r + '("]', h = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", y = "-MM-DD[T]HH:mm:ss.SSS", j = f + '[")]', this.format(E + h + y + j);
  19036. }
  19037. function uS(r) {
  19038. r || (r = this.isUtc() ? Xt.defaultFormatUtc : Xt.defaultFormat);
  19039. var f = ss(this, r);
  19040. return this.localeData().postformat(f);
  19041. }
  19042. function dS(r, f) {
  19043. return this.isValid() && (ji(r) && r.isValid() || Te(r).isValid()) ? Wi({ to: this, from: r }).locale(this.locale()).humanize(!f) : this.localeData().invalidDate();
  19044. }
  19045. function fS(r) {
  19046. return this.from(Te(), r);
  19047. }
  19048. function gS(r, f) {
  19049. return this.isValid() && (ji(r) && r.isValid() || Te(r).isValid()) ? Wi({ from: this, to: r }).locale(this.locale()).humanize(!f) : this.localeData().invalidDate();
  19050. }
  19051. function mS(r) {
  19052. return this.to(Te(), r);
  19053. }
  19054. function Au(r) {
  19055. var f;
  19056. return r === void 0 ? this._locale._abbr : (f = gr(r), f != null && (this._locale = f), this);
  19057. }
  19058. var Tu = Ei(
  19059. "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
  19060. function(r) {
  19061. return r === void 0 ? this.localeData() : this.locale(r);
  19062. }
  19063. );
  19064. function Pu() {
  19065. return this._locale;
  19066. }
  19067. var xs = 1e3, vn = 60 * xs, bs = 60 * vn, Eu = (365 * 400 + 97) * 24 * bs;
  19068. function xn(r, f) {
  19069. return (r % f + f) % f;
  19070. }
  19071. function Ou(r, f, E) {
  19072. return r < 100 && r >= 0 ? new Date(r + 400, f, E) - Eu : new Date(r, f, E).valueOf();
  19073. }
  19074. function Lu(r, f, E) {
  19075. return r < 100 && r >= 0 ? Date.UTC(r + 400, f, E) - Eu : Date.UTC(r, f, E);
  19076. }
  19077. function yS(r) {
  19078. var f, E;
  19079. if (r = Oi(r), r === void 0 || r === "millisecond" || !this.isValid())
  19080. return this;
  19081. switch (E = this._isUTC ? Lu : Ou, r) {
  19082. case "year":
  19083. f = E(this.year(), 0, 1);
  19084. break;
  19085. case "quarter":
  19086. f = E(
  19087. this.year(),
  19088. this.month() - this.month() % 3,
  19089. 1
  19090. );
  19091. break;
  19092. case "month":
  19093. f = E(this.year(), this.month(), 1);
  19094. break;
  19095. case "week":
  19096. f = E(
  19097. this.year(),
  19098. this.month(),
  19099. this.date() - this.weekday()
  19100. );
  19101. break;
  19102. case "isoWeek":
  19103. f = E(
  19104. this.year(),
  19105. this.month(),
  19106. this.date() - (this.isoWeekday() - 1)
  19107. );
  19108. break;
  19109. case "day":
  19110. case "date":
  19111. f = E(this.year(), this.month(), this.date());
  19112. break;
  19113. case "hour":
  19114. f = this._d.valueOf(), f -= xn(
  19115. f + (this._isUTC ? 0 : this.utcOffset() * vn),
  19116. bs
  19117. );
  19118. break;
  19119. case "minute":
  19120. f = this._d.valueOf(), f -= xn(f, vn);
  19121. break;
  19122. case "second":
  19123. f = this._d.valueOf(), f -= xn(f, xs);
  19124. break;
  19125. }
  19126. return this._d.setTime(f), Xt.updateOffset(this, !0), this;
  19127. }
  19128. function vS(r) {
  19129. var f, E;
  19130. if (r = Oi(r), r === void 0 || r === "millisecond" || !this.isValid())
  19131. return this;
  19132. switch (E = this._isUTC ? Lu : Ou, r) {
  19133. case "year":
  19134. f = E(this.year() + 1, 0, 1) - 1;
  19135. break;
  19136. case "quarter":
  19137. f = E(
  19138. this.year(),
  19139. this.month() - this.month() % 3 + 3,
  19140. 1
  19141. ) - 1;
  19142. break;
  19143. case "month":
  19144. f = E(this.year(), this.month() + 1, 1) - 1;
  19145. break;
  19146. case "week":
  19147. f = E(
  19148. this.year(),
  19149. this.month(),
  19150. this.date() - this.weekday() + 7
  19151. ) - 1;
  19152. break;
  19153. case "isoWeek":
  19154. f = E(
  19155. this.year(),
  19156. this.month(),
  19157. this.date() - (this.isoWeekday() - 1) + 7
  19158. ) - 1;
  19159. break;
  19160. case "day":
  19161. case "date":
  19162. f = E(this.year(), this.month(), this.date() + 1) - 1;
  19163. break;
  19164. case "hour":
  19165. f = this._d.valueOf(), f += bs - xn(
  19166. f + (this._isUTC ? 0 : this.utcOffset() * vn),
  19167. bs
  19168. ) - 1;
  19169. break;
  19170. case "minute":
  19171. f = this._d.valueOf(), f += vn - xn(f, vn) - 1;
  19172. break;
  19173. case "second":
  19174. f = this._d.valueOf(), f += xs - xn(f, xs) - 1;
  19175. break;
  19176. }
  19177. return this._d.setTime(f), Xt.updateOffset(this, !0), this;
  19178. }
  19179. function xS() {
  19180. return this._d.valueOf() - (this._offset || 0) * 6e4;
  19181. }
  19182. function bS() {
  19183. return Math.floor(this.valueOf() / 1e3);
  19184. }
  19185. function SS() {
  19186. return new Date(this.valueOf());
  19187. }
  19188. function wS() {
  19189. var r = this;
  19190. return [
  19191. r.year(),
  19192. r.month(),
  19193. r.date(),
  19194. r.hour(),
  19195. r.minute(),
  19196. r.second(),
  19197. r.millisecond()
  19198. ];
  19199. }
  19200. function MS() {
  19201. var r = this;
  19202. return {
  19203. years: r.year(),
  19204. months: r.month(),
  19205. date: r.date(),
  19206. hours: r.hours(),
  19207. minutes: r.minutes(),
  19208. seconds: r.seconds(),
  19209. milliseconds: r.milliseconds()
  19210. };
  19211. }
  19212. function CS() {
  19213. return this.isValid() ? this.toISOString() : null;
  19214. }
  19215. function kS() {
  19216. return Ah(this);
  19217. }
  19218. function AS() {
  19219. return Pr({}, oe(this));
  19220. }
  19221. function TS() {
  19222. return oe(this).overflow;
  19223. }
  19224. function PS() {
  19225. return {
  19226. input: this._i,
  19227. format: this._f,
  19228. locale: this._locale,
  19229. isUTC: this._isUTC,
  19230. strict: this._strict
  19231. };
  19232. }
  19233. Zt("N", 0, 0, "eraAbbr");
  19234. Zt("NN", 0, 0, "eraAbbr");
  19235. Zt("NNN", 0, 0, "eraAbbr");
  19236. Zt("NNNN", 0, 0, "eraName");
  19237. Zt("NNNNN", 0, 0, "eraNarrow");
  19238. Zt("y", ["y", 1], "yo", "eraYear");
  19239. Zt("y", ["yy", 2], 0, "eraYear");
  19240. Zt("y", ["yyy", 3], 0, "eraYear");
  19241. Zt("y", ["yyyy", 4], 0, "eraYear");
  19242. Ft("N", Xh);
  19243. Ft("NN", Xh);
  19244. Ft("NNN", Xh);
  19245. Ft("NNNN", WS);
  19246. Ft("NNNNN", zS);
  19247. we(
  19248. ["N", "NN", "NNN", "NNNN", "NNNNN"],
  19249. function(r, f, E, h) {
  19250. var y = E._locale.erasParse(r, h, E._strict);
  19251. y ? oe(E).era = y : oe(E).invalidEra = r;
  19252. }
  19253. );
  19254. Ft("y", An);
  19255. Ft("yy", An);
  19256. Ft("yyy", An);
  19257. Ft("yyyy", An);
  19258. Ft("yo", YS);
  19259. we(["y", "yy", "yyy", "yyyy"], Qe);
  19260. we(["yo"], function(r, f, E, h) {
  19261. var y;
  19262. E._locale._eraYearOrdinalRegex && (y = r.match(E._locale._eraYearOrdinalRegex)), E._locale.eraYearOrdinalParse ? f[Qe] = E._locale.eraYearOrdinalParse(r, y) : f[Qe] = parseInt(r, 10);
  19263. });
  19264. function ES(r, f) {
  19265. var E, h, y, j = this._eras || gr("en")._eras;
  19266. for (E = 0, h = j.length; E < h; ++E) {
  19267. switch (typeof j[E].since) {
  19268. case "string":
  19269. y = Xt(j[E].since).startOf("day"), j[E].since = y.valueOf();
  19270. break;
  19271. }
  19272. switch (typeof j[E].until) {
  19273. case "undefined":
  19274. j[E].until = 1 / 0;
  19275. break;
  19276. case "string":
  19277. y = Xt(j[E].until).startOf("day").valueOf(), j[E].until = y.valueOf();
  19278. break;
  19279. }
  19280. }
  19281. return j;
  19282. }
  19283. function OS(r, f, E) {
  19284. var h, y, j = this.eras(), I, Z, F;
  19285. for (r = r.toUpperCase(), h = 0, y = j.length; h < y; ++h)
  19286. if (I = j[h].name.toUpperCase(), Z = j[h].abbr.toUpperCase(), F = j[h].narrow.toUpperCase(), E)
  19287. switch (f) {
  19288. case "N":
  19289. case "NN":
  19290. case "NNN":
  19291. if (Z === r)
  19292. return j[h];
  19293. break;
  19294. case "NNNN":
  19295. if (I === r)
  19296. return j[h];
  19297. break;
  19298. case "NNNNN":
  19299. if (F === r)
  19300. return j[h];
  19301. break;
  19302. }
  19303. else if ([I, Z, F].indexOf(r) >= 0)
  19304. return j[h];
  19305. }
  19306. function LS(r, f) {
  19307. var E = r.since <= r.until ? 1 : -1;
  19308. return f === void 0 ? Xt(r.since).year() : Xt(r.since).year() + (f - r.offset) * E;
  19309. }
  19310. function _S() {
  19311. var r, f, E, h = this.localeData().eras();
  19312. for (r = 0, f = h.length; r < f; ++r)
  19313. if (E = this.clone().startOf("day").valueOf(), h[r].since <= E && E <= h[r].until || h[r].until <= E && E <= h[r].since)
  19314. return h[r].name;
  19315. return "";
  19316. }
  19317. function DS() {
  19318. var r, f, E, h = this.localeData().eras();
  19319. for (r = 0, f = h.length; r < f; ++r)
  19320. if (E = this.clone().startOf("day").valueOf(), h[r].since <= E && E <= h[r].until || h[r].until <= E && E <= h[r].since)
  19321. return h[r].narrow;
  19322. return "";
  19323. }
  19324. function IS() {
  19325. var r, f, E, h = this.localeData().eras();
  19326. for (r = 0, f = h.length; r < f; ++r)
  19327. if (E = this.clone().startOf("day").valueOf(), h[r].since <= E && E <= h[r].until || h[r].until <= E && E <= h[r].since)
  19328. return h[r].abbr;
  19329. return "";
  19330. }
  19331. function RS() {
  19332. var r, f, E, h, y = this.localeData().eras();
  19333. for (r = 0, f = y.length; r < f; ++r)
  19334. if (E = y[r].since <= y[r].until ? 1 : -1, h = this.clone().startOf("day").valueOf(), y[r].since <= h && h <= y[r].until || y[r].until <= h && h <= y[r].since)
  19335. return (this.year() - Xt(y[r].since).year()) * E + y[r].offset;
  19336. return this.year();
  19337. }
  19338. function NS(r) {
  19339. return me(this, "_erasNameRegex") || Gh.call(this), r ? this._erasNameRegex : this._erasRegex;
  19340. }
  19341. function BS(r) {
  19342. return me(this, "_erasAbbrRegex") || Gh.call(this), r ? this._erasAbbrRegex : this._erasRegex;
  19343. }
  19344. function jS(r) {
  19345. return me(this, "_erasNarrowRegex") || Gh.call(this), r ? this._erasNarrowRegex : this._erasRegex;
  19346. }
  19347. function Xh(r, f) {
  19348. return f.erasAbbrRegex(r);
  19349. }
  19350. function WS(r, f) {
  19351. return f.erasNameRegex(r);
  19352. }
  19353. function zS(r, f) {
  19354. return f.erasNarrowRegex(r);
  19355. }
  19356. function YS(r, f) {
  19357. return f._eraYearOrdinalRegex || An;
  19358. }
  19359. function Gh() {
  19360. var r = [], f = [], E = [], h = [], y, j, I = this.eras();
  19361. for (y = 0, j = I.length; y < j; ++y)
  19362. f.push(yi(I[y].name)), r.push(yi(I[y].abbr)), E.push(yi(I[y].narrow)), h.push(yi(I[y].name)), h.push(yi(I[y].abbr)), h.push(yi(I[y].narrow));
  19363. this._erasRegex = new RegExp("^(" + h.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + f.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
  19364. "^(" + E.join("|") + ")",
  19365. "i"
  19366. );
  19367. }
  19368. Zt(0, ["gg", 2], 0, function() {
  19369. return this.weekYear() % 100;
  19370. });
  19371. Zt(0, ["GG", 2], 0, function() {
  19372. return this.isoWeekYear() % 100;
  19373. });
  19374. function Ns(r, f) {
  19375. Zt(0, [r, r.length], 0, f);
  19376. }
  19377. Ns("gggg", "weekYear");
  19378. Ns("ggggg", "weekYear");
  19379. Ns("GGGG", "isoWeekYear");
  19380. Ns("GGGGG", "isoWeekYear");
  19381. ti("weekYear", "gg");
  19382. ti("isoWeekYear", "GG");
  19383. ei("weekYear", 1);
  19384. ei("isoWeekYear", 1);
  19385. Ft("G", Ls);
  19386. Ft("g", Ls);
  19387. Ft("GG", Pe, vi);
  19388. Ft("gg", Pe, vi);
  19389. Ft("GGGG", _h, Lh);
  19390. Ft("gggg", _h, Lh);
  19391. Ft("GGGGG", Os, Ps);
  19392. Ft("ggggg", Os, Ps);
  19393. ho(
  19394. ["gggg", "ggggg", "GGGG", "GGGGG"],
  19395. function(r, f, E, h) {
  19396. f[h.substr(0, 2)] = he(r);
  19397. }
  19398. );
  19399. ho(["gg", "GG"], function(r, f, E, h) {
  19400. f[h] = Xt.parseTwoDigitYear(r);
  19401. });
  19402. function XS(r) {
  19403. return _u.call(
  19404. this,
  19405. r,
  19406. this.week(),
  19407. this.weekday(),
  19408. this.localeData()._week.dow,
  19409. this.localeData()._week.doy
  19410. );
  19411. }
  19412. function GS(r) {
  19413. return _u.call(
  19414. this,
  19415. r,
  19416. this.isoWeek(),
  19417. this.isoWeekday(),
  19418. 1,
  19419. 4
  19420. );
  19421. }
  19422. function HS() {
  19423. return ur(this.year(), 1, 4);
  19424. }
  19425. function FS() {
  19426. return ur(this.isoWeekYear(), 1, 4);
  19427. }
  19428. function US() {
  19429. var r = this.localeData()._week;
  19430. return ur(this.year(), r.dow, r.doy);
  19431. }
  19432. function VS() {
  19433. var r = this.localeData()._week;
  19434. return ur(this.weekYear(), r.dow, r.doy);
  19435. }
  19436. function _u(r, f, E, h, y) {
  19437. var j;
  19438. return r == null ? io(this, h, y).year : (j = ur(r, h, y), f > j && (f = j), $S.call(this, r, f, E, h, y));
  19439. }
  19440. function $S(r, f, E, h, y) {
  19441. var j = pu(r, f, E, h, y), I = eo(j.year, 0, j.dayOfYear);
  19442. return this.year(I.getUTCFullYear()), this.month(I.getUTCMonth()), this.date(I.getUTCDate()), this;
  19443. }
  19444. Zt("Q", 0, "Qo", "quarter");
  19445. ti("quarter", "Q");
  19446. ei("quarter", 7);
  19447. Ft("Q", eu);
  19448. we("Q", function(r, f) {
  19449. f[cr] = (he(r) - 1) * 3;
  19450. });
  19451. function ZS(r) {
  19452. return r == null ? Math.ceil((this.month() + 1) / 3) : this.month((r - 1) * 3 + this.month() % 3);
  19453. }
  19454. Zt("D", ["DD", 2], "Do", "date");
  19455. ti("date", "D");
  19456. ei("date", 9);
  19457. Ft("D", Pe);
  19458. Ft("DD", Pe, vi);
  19459. Ft("Do", function(r, f) {
  19460. return r ? f._dayOfMonthOrdinalParse || f._ordinalParse : f._dayOfMonthOrdinalParseLenient;
  19461. });
  19462. we(["D", "DD"], Hi);
  19463. we("Do", function(r, f) {
  19464. f[Hi] = he(r.match(Pe)[0]);
  19465. });
  19466. var Du = kn("Date", !0);
  19467. Zt("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
  19468. ti("dayOfYear", "DDD");
  19469. ei("dayOfYear", 4);
  19470. Ft("DDD", Es);
  19471. Ft("DDDD", iu);
  19472. we(["DDD", "DDDD"], function(r, f, E) {
  19473. E._dayOfYear = he(r);
  19474. });
  19475. function KS(r) {
  19476. var f = Math.round(
  19477. (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
  19478. ) + 1;
  19479. return r == null ? f : this.add(r - f, "d");
  19480. }
  19481. Zt("m", ["mm", 2], 0, "minute");
  19482. ti("minute", "m");
  19483. ei("minute", 14);
  19484. Ft("m", Pe);
  19485. Ft("mm", Pe, vi);
  19486. we(["m", "mm"], Ni);
  19487. var JS = kn("Minutes", !1);
  19488. Zt("s", ["ss", 2], 0, "second");
  19489. ti("second", "s");
  19490. ei("second", 15);
  19491. Ft("s", Pe);
  19492. Ft("ss", Pe, vi);
  19493. we(["s", "ss"], pr);
  19494. var qS = kn("Seconds", !1);
  19495. Zt("S", 0, 0, function() {
  19496. return ~~(this.millisecond() / 100);
  19497. });
  19498. Zt(0, ["SS", 2], 0, function() {
  19499. return ~~(this.millisecond() / 10);
  19500. });
  19501. Zt(0, ["SSS", 3], 0, "millisecond");
  19502. Zt(0, ["SSSS", 4], 0, function() {
  19503. return this.millisecond() * 10;
  19504. });
  19505. Zt(0, ["SSSSS", 5], 0, function() {
  19506. return this.millisecond() * 100;
  19507. });
  19508. Zt(0, ["SSSSSS", 6], 0, function() {
  19509. return this.millisecond() * 1e3;
  19510. });
  19511. Zt(0, ["SSSSSSS", 7], 0, function() {
  19512. return this.millisecond() * 1e4;
  19513. });
  19514. Zt(0, ["SSSSSSSS", 8], 0, function() {
  19515. return this.millisecond() * 1e5;
  19516. });
  19517. Zt(0, ["SSSSSSSSS", 9], 0, function() {
  19518. return this.millisecond() * 1e6;
  19519. });
  19520. ti("millisecond", "ms");
  19521. ei("millisecond", 16);
  19522. Ft("S", Es, eu);
  19523. Ft("SS", Es, vi);
  19524. Ft("SSS", Es, iu);
  19525. var Er, Iu;
  19526. for (Er = "SSSS"; Er.length <= 9; Er += "S")
  19527. Ft(Er, An);
  19528. function QS(r, f) {
  19529. f[Ur] = he(("0." + r) * 1e3);
  19530. }
  19531. for (Er = "S"; Er.length <= 9; Er += "S")
  19532. we(Er, QS);
  19533. Iu = kn("Milliseconds", !1);
  19534. Zt("z", 0, 0, "zoneAbbr");
  19535. Zt("zz", 0, 0, "zoneName");
  19536. function tw() {
  19537. return this._isUTC ? "UTC" : "";
  19538. }
  19539. function ew() {
  19540. return this._isUTC ? "Coordinated Universal Time" : "";
  19541. }
  19542. var jt = so.prototype;
  19543. jt.add = Vb;
  19544. jt.calendar = tS;
  19545. jt.clone = eS;
  19546. jt.diff = hS;
  19547. jt.endOf = vS;
  19548. jt.format = uS;
  19549. jt.from = dS;
  19550. jt.fromNow = fS;
  19551. jt.to = gS;
  19552. jt.toNow = mS;
  19553. jt.get = r1;
  19554. jt.invalidAt = TS;
  19555. jt.isAfter = iS;
  19556. jt.isBefore = rS;
  19557. jt.isBetween = nS;
  19558. jt.isSame = oS;
  19559. jt.isSameOrAfter = sS;
  19560. jt.isSameOrBefore = aS;
  19561. jt.isValid = kS;
  19562. jt.lang = Tu;
  19563. jt.locale = Au;
  19564. jt.localeData = Pu;
  19565. jt.max = kb;
  19566. jt.min = Cb;
  19567. jt.parsingFlags = AS;
  19568. jt.set = n1;
  19569. jt.startOf = yS;
  19570. jt.subtract = $b;
  19571. jt.toArray = wS;
  19572. jt.toObject = MS;
  19573. jt.toDate = SS;
  19574. jt.toISOString = cS;
  19575. jt.inspect = pS;
  19576. typeof Symbol < "u" && Symbol.for != null && (jt[Symbol.for("nodejs.util.inspect.custom")] = function() {
  19577. return "Moment<" + this.format() + ">";
  19578. });
  19579. jt.toJSON = CS;
  19580. jt.toString = lS;
  19581. jt.unix = bS;
  19582. jt.valueOf = xS;
  19583. jt.creationData = PS;
  19584. jt.eraName = _S;
  19585. jt.eraNarrow = DS;
  19586. jt.eraAbbr = IS;
  19587. jt.eraYear = RS;
  19588. jt.year = cu;
  19589. jt.isLeapYear = M1;
  19590. jt.weekYear = XS;
  19591. jt.isoWeekYear = GS;
  19592. jt.quarter = jt.quarters = ZS;
  19593. jt.month = hu;
  19594. jt.daysInMonth = b1;
  19595. jt.week = jt.weeks = E1;
  19596. jt.isoWeek = jt.isoWeeks = O1;
  19597. jt.weeksInYear = US;
  19598. jt.weeksInWeekYear = VS;
  19599. jt.isoWeeksInYear = HS;
  19600. jt.isoWeeksInISOWeekYear = FS;
  19601. jt.date = Du;
  19602. jt.day = jt.days = G1;
  19603. jt.weekday = H1;
  19604. jt.isoWeekday = F1;
  19605. jt.dayOfYear = KS;
  19606. jt.hour = jt.hours = q1;
  19607. jt.minute = jt.minutes = JS;
  19608. jt.second = jt.seconds = qS;
  19609. jt.millisecond = jt.milliseconds = Iu;
  19610. jt.utcOffset = Ib;
  19611. jt.utc = Nb;
  19612. jt.local = Bb;
  19613. jt.parseZone = jb;
  19614. jt.hasAlignedHourOffset = Wb;
  19615. jt.isDST = zb;
  19616. jt.isLocal = Xb;
  19617. jt.isUtcOffset = Gb;
  19618. jt.isUtc = wu;
  19619. jt.isUTC = wu;
  19620. jt.zoneAbbr = tw;
  19621. jt.zoneName = ew;
  19622. jt.dates = Ei(
  19623. "dates accessor is deprecated. Use date instead.",
  19624. Du
  19625. );
  19626. jt.months = Ei(
  19627. "months accessor is deprecated. Use month instead",
  19628. hu
  19629. );
  19630. jt.years = Ei(
  19631. "years accessor is deprecated. Use year instead",
  19632. cu
  19633. );
  19634. jt.zone = Ei(
  19635. "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
  19636. Rb
  19637. );
  19638. jt.isDSTShifted = Ei(
  19639. "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
  19640. Yb
  19641. );
  19642. function iw(r) {
  19643. return Te(r * 1e3);
  19644. }
  19645. function rw() {
  19646. return Te.apply(null, arguments).parseZone();
  19647. }
  19648. function Ru(r) {
  19649. return r;
  19650. }
  19651. var ye = Ph.prototype;
  19652. ye.calendar = G0;
  19653. ye.longDateFormat = V0;
  19654. ye.invalidDate = Z0;
  19655. ye.ordinal = q0;
  19656. ye.preparse = Ru;
  19657. ye.postformat = Ru;
  19658. ye.relativeTime = t1;
  19659. ye.pastFuture = e1;
  19660. ye.set = Y0;
  19661. ye.eras = ES;
  19662. ye.erasParse = OS;
  19663. ye.erasConvertYear = LS;
  19664. ye.erasAbbrRegex = BS;
  19665. ye.erasNameRegex = NS;
  19666. ye.erasNarrowRegex = jS;
  19667. ye.months = m1;
  19668. ye.monthsShort = y1;
  19669. ye.monthsParse = x1;
  19670. ye.monthsRegex = w1;
  19671. ye.monthsShortRegex = S1;
  19672. ye.week = k1;
  19673. ye.firstDayOfYear = P1;
  19674. ye.firstDayOfWeek = T1;
  19675. ye.weekdays = j1;
  19676. ye.weekdaysMin = z1;
  19677. ye.weekdaysShort = W1;
  19678. ye.weekdaysParse = X1;
  19679. ye.weekdaysRegex = U1;
  19680. ye.weekdaysShortRegex = V1;
  19681. ye.weekdaysMinRegex = $1;
  19682. ye.isPM = K1;
  19683. ye.meridiem = Q1;
  19684. function Ss(r, f, E, h) {
  19685. var y = gr(), j = Zi().set(h, f);
  19686. return y[E](j, r);
  19687. }
  19688. function Nu(r, f, E) {
  19689. if (fr(r) && (f = r, r = void 0), r = r || "", f != null)
  19690. return Ss(r, f, E, "month");
  19691. var h, y = [];
  19692. for (h = 0; h < 12; h++)
  19693. y[h] = Ss(r, h, E, "month");
  19694. return y;
  19695. }
  19696. function Hh(r, f, E, h) {
  19697. typeof r == "boolean" ? (fr(f) && (E = f, f = void 0), f = f || "") : (f = r, E = f, r = !1, fr(f) && (E = f, f = void 0), f = f || "");
  19698. var y = gr(), j = r ? y._week.dow : 0, I, Z = [];
  19699. if (E != null)
  19700. return Ss(f, (E + j) % 7, h, "day");
  19701. for (I = 0; I < 7; I++)
  19702. Z[I] = Ss(f, (I + j) % 7, h, "day");
  19703. return Z;
  19704. }
  19705. function nw(r, f) {
  19706. return Nu(r, f, "months");
  19707. }
  19708. function ow(r, f) {
  19709. return Nu(r, f, "monthsShort");
  19710. }
  19711. function sw(r, f, E) {
  19712. return Hh(r, f, E, "weekdays");
  19713. }
  19714. function aw(r, f, E) {
  19715. return Hh(r, f, E, "weekdaysShort");
  19716. }
  19717. function hw(r, f, E) {
  19718. return Hh(r, f, E, "weekdaysMin");
  19719. }
  19720. Or("en", {
  19721. eras: [
  19722. {
  19723. since: "0001-01-01",
  19724. until: 1 / 0,
  19725. offset: 1,
  19726. name: "Anno Domini",
  19727. narrow: "AD",
  19728. abbr: "AD"
  19729. },
  19730. {
  19731. since: "0000-12-31",
  19732. until: -1 / 0,
  19733. offset: 1,
  19734. name: "Before Christ",
  19735. narrow: "BC",
  19736. abbr: "BC"
  19737. }
  19738. ],
  19739. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  19740. ordinal: function(r) {
  19741. var f = r % 10, E = he(r % 100 / 10) === 1 ? "th" : f === 1 ? "st" : f === 2 ? "nd" : f === 3 ? "rd" : "th";
  19742. return r + E;
  19743. }
  19744. });
  19745. Xt.lang = Ei(
  19746. "moment.lang is deprecated. Use moment.locale instead.",
  19747. Or
  19748. );
  19749. Xt.langData = Ei(
  19750. "moment.langData is deprecated. Use moment.localeData instead.",
  19751. gr
  19752. );
  19753. var ar = Math.abs;
  19754. function lw() {
  19755. var r = this._data;
  19756. return this._milliseconds = ar(this._milliseconds), this._days = ar(this._days), this._months = ar(this._months), r.milliseconds = ar(r.milliseconds), r.seconds = ar(r.seconds), r.minutes = ar(r.minutes), r.hours = ar(r.hours), r.months = ar(r.months), r.years = ar(r.years), this;
  19757. }
  19758. function Bu(r, f, E, h) {
  19759. var y = Wi(f, E);
  19760. return r._milliseconds += h * y._milliseconds, r._days += h * y._days, r._months += h * y._months, r._bubble();
  19761. }
  19762. function cw(r, f) {
  19763. return Bu(this, r, f, 1);
  19764. }
  19765. function pw(r, f) {
  19766. return Bu(this, r, f, -1);
  19767. }
  19768. function Pp(r) {
  19769. return r < 0 ? Math.floor(r) : Math.ceil(r);
  19770. }
  19771. function uw() {
  19772. var r = this._milliseconds, f = this._days, E = this._months, h = this._data, y, j, I, Z, F;
  19773. return r >= 0 && f >= 0 && E >= 0 || r <= 0 && f <= 0 && E <= 0 || (r += Pp(bh(E) + f) * 864e5, f = 0, E = 0), h.milliseconds = r % 1e3, y = Ti(r / 1e3), h.seconds = y % 60, j = Ti(y / 60), h.minutes = j % 60, I = Ti(j / 60), h.hours = I % 24, f += Ti(I / 24), F = Ti(ju(f)), E += F, f -= Pp(bh(F)), Z = Ti(E / 12), E %= 12, h.days = f, h.months = E, h.years = Z, this;
  19774. }
  19775. function ju(r) {
  19776. return r * 4800 / 146097;
  19777. }
  19778. function bh(r) {
  19779. return r * 146097 / 4800;
  19780. }
  19781. function dw(r) {
  19782. if (!this.isValid())
  19783. return NaN;
  19784. var f, E, h = this._milliseconds;
  19785. if (r = Oi(r), r === "month" || r === "quarter" || r === "year")
  19786. switch (f = this._days + h / 864e5, E = this._months + ju(f), r) {
  19787. case "month":
  19788. return E;
  19789. case "quarter":
  19790. return E / 3;
  19791. case "year":
  19792. return E / 12;
  19793. }
  19794. else
  19795. switch (f = this._days + Math.round(bh(this._months)), r) {
  19796. case "week":
  19797. return f / 7 + h / 6048e5;
  19798. case "day":
  19799. return f + h / 864e5;
  19800. case "hour":
  19801. return f * 24 + h / 36e5;
  19802. case "minute":
  19803. return f * 1440 + h / 6e4;
  19804. case "second":
  19805. return f * 86400 + h / 1e3;
  19806. case "millisecond":
  19807. return Math.floor(f * 864e5) + h;
  19808. default:
  19809. throw new Error("Unknown unit " + r);
  19810. }
  19811. }
  19812. function fw() {
  19813. return this.isValid() ? this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + he(this._months / 12) * 31536e6 : NaN;
  19814. }
  19815. function mr(r) {
  19816. return function() {
  19817. return this.as(r);
  19818. };
  19819. }
  19820. var gw = mr("ms"), mw = mr("s"), yw = mr("m"), vw = mr("h"), xw = mr("d"), bw = mr("w"), Sw = mr("M"), ww = mr("Q"), Mw = mr("y");
  19821. function Cw() {
  19822. return Wi(this);
  19823. }
  19824. function kw(r) {
  19825. return r = Oi(r), this.isValid() ? this[r + "s"]() : NaN;
  19826. }
  19827. function Zr(r) {
  19828. return function() {
  19829. return this.isValid() ? this._data[r] : NaN;
  19830. };
  19831. }
  19832. var Aw = Zr("milliseconds"), Tw = Zr("seconds"), Pw = Zr("minutes"), Ew = Zr("hours"), Ow = Zr("days"), Lw = Zr("months"), _w = Zr("years");
  19833. function Dw() {
  19834. return Ti(this.days() / 7);
  19835. }
  19836. var hr = Math.round, gn = {
  19837. ss: 44,
  19838. // a few seconds to seconds
  19839. s: 45,
  19840. // seconds to minute
  19841. m: 45,
  19842. // minutes to hour
  19843. h: 22,
  19844. // hours to day
  19845. d: 26,
  19846. // days to month/week
  19847. w: null,
  19848. // weeks to month
  19849. M: 11
  19850. // months to year
  19851. };
  19852. function Iw(r, f, E, h, y) {
  19853. return y.relativeTime(f || 1, !!E, r, h);
  19854. }
  19855. function Rw(r, f, E, h) {
  19856. var y = Wi(r).abs(), j = hr(y.as("s")), I = hr(y.as("m")), Z = hr(y.as("h")), F = hr(y.as("d")), U = hr(y.as("M")), H = hr(y.as("w")), W = hr(y.as("y")), R = j <= E.ss && ["s", j] || j < E.s && ["ss", j] || I <= 1 && ["m"] || I < E.m && ["mm", I] || Z <= 1 && ["h"] || Z < E.h && ["hh", Z] || F <= 1 && ["d"] || F < E.d && ["dd", F];
  19857. return E.w != null && (R = R || H <= 1 && ["w"] || H < E.w && ["ww", H]), R = R || U <= 1 && ["M"] || U < E.M && ["MM", U] || W <= 1 && ["y"] || ["yy", W], R[2] = f, R[3] = +r > 0, R[4] = h, Iw.apply(null, R);
  19858. }
  19859. function Nw(r) {
  19860. return r === void 0 ? hr : typeof r == "function" ? (hr = r, !0) : !1;
  19861. }
  19862. function Bw(r, f) {
  19863. return gn[r] === void 0 ? !1 : f === void 0 ? gn[r] : (gn[r] = f, r === "s" && (gn.ss = f - 1), !0);
  19864. }
  19865. function jw(r, f) {
  19866. if (!this.isValid())
  19867. return this.localeData().invalidDate();
  19868. var E = !1, h = gn, y, j;
  19869. return typeof r == "object" && (f = r, r = !1), typeof r == "boolean" && (E = r), typeof f == "object" && (h = Object.assign({}, gn, f), f.s != null && f.ss == null && (h.ss = f.s - 1)), y = this.localeData(), j = Rw(this, !E, h, y), E && (j = y.pastFuture(+this, j)), y.postformat(j);
  19870. }
  19871. var sh = Math.abs;
  19872. function dn(r) {
  19873. return (r > 0) - (r < 0) || +r;
  19874. }
  19875. function Bs() {
  19876. if (!this.isValid())
  19877. return this.localeData().invalidDate();
  19878. var r = sh(this._milliseconds) / 1e3, f = sh(this._days), E = sh(this._months), h, y, j, I, Z = this.asSeconds(), F, U, H, W;
  19879. return Z ? (h = Ti(r / 60), y = Ti(h / 60), r %= 60, h %= 60, j = Ti(E / 12), E %= 12, I = r ? r.toFixed(3).replace(/\.?0+$/, "") : "", F = Z < 0 ? "-" : "", U = dn(this._months) !== dn(Z) ? "-" : "", H = dn(this._days) !== dn(Z) ? "-" : "", W = dn(this._milliseconds) !== dn(Z) ? "-" : "", F + "P" + (j ? U + j + "Y" : "") + (E ? U + E + "M" : "") + (f ? H + f + "D" : "") + (y || h || r ? "T" : "") + (y ? W + y + "H" : "") + (h ? W + h + "M" : "") + (r ? W + I + "S" : "")) : "P0D";
  19880. }
  19881. var de = Rs.prototype;
  19882. de.isValid = Ob;
  19883. de.abs = lw;
  19884. de.add = cw;
  19885. de.subtract = pw;
  19886. de.as = dw;
  19887. de.asMilliseconds = gw;
  19888. de.asSeconds = mw;
  19889. de.asMinutes = yw;
  19890. de.asHours = vw;
  19891. de.asDays = xw;
  19892. de.asWeeks = bw;
  19893. de.asMonths = Sw;
  19894. de.asQuarters = ww;
  19895. de.asYears = Mw;
  19896. de.valueOf = fw;
  19897. de._bubble = uw;
  19898. de.clone = Cw;
  19899. de.get = kw;
  19900. de.milliseconds = Aw;
  19901. de.seconds = Tw;
  19902. de.minutes = Pw;
  19903. de.hours = Ew;
  19904. de.days = Ow;
  19905. de.weeks = Dw;
  19906. de.months = Lw;
  19907. de.years = _w;
  19908. de.humanize = jw;
  19909. de.toISOString = Bs;
  19910. de.toString = Bs;
  19911. de.toJSON = Bs;
  19912. de.locale = Au;
  19913. de.localeData = Pu;
  19914. de.toIsoString = Ei(
  19915. "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
  19916. Bs
  19917. );
  19918. de.lang = Tu;
  19919. Zt("X", 0, 0, "unix");
  19920. Zt("x", 0, 0, "valueOf");
  19921. Ft("x", Ls);
  19922. Ft("X", s1);
  19923. we("X", function(r, f, E) {
  19924. E._d = new Date(parseFloat(r) * 1e3);
  19925. });
  19926. we("x", function(r, f, E) {
  19927. E._d = new Date(he(r));
  19928. });
  19929. //! moment.js
  19930. Xt.version = "2.29.4";
  19931. W0(Te);
  19932. Xt.fn = jt;
  19933. Xt.min = Ab;
  19934. Xt.max = Tb;
  19935. Xt.now = Pb;
  19936. Xt.utc = Zi;
  19937. Xt.unix = iw;
  19938. Xt.months = nw;
  19939. Xt.isDate = oo;
  19940. Xt.locale = Or;
  19941. Xt.invalid = As;
  19942. Xt.duration = Wi;
  19943. Xt.isMoment = ji;
  19944. Xt.weekdays = sw;
  19945. Xt.parseZone = rw;
  19946. Xt.localeData = gr;
  19947. Xt.isDuration = as;
  19948. Xt.monthsShort = ow;
  19949. Xt.weekdaysMin = hw;
  19950. Xt.defineLocale = Nh;
  19951. Xt.updateLocale = rb;
  19952. Xt.locales = nb;
  19953. Xt.weekdaysShort = aw;
  19954. Xt.normalizeUnits = Oi;
  19955. Xt.relativeTimeRounding = Nw;
  19956. Xt.relativeTimeThreshold = Bw;
  19957. Xt.calendarFormat = Qb;
  19958. Xt.prototype = jt;
  19959. Xt.HTML5_FMT = {
  19960. DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  19961. // <input type="datetime-local" />
  19962. DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  19963. // <input type="datetime-local" step="1" />
  19964. DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  19965. // <input type="datetime-local" step="0.001" />
  19966. DATE: "YYYY-MM-DD",
  19967. // <input type="date" />
  19968. TIME: "HH:mm",
  19969. // <input type="time" />
  19970. TIME_SECONDS: "HH:mm:ss",
  19971. // <input type="time" step="1" />
  19972. TIME_MS: "HH:mm:ss.SSS",
  19973. // <input type="time" step="0.001" />
  19974. WEEK: "GGGG-[W]WW",
  19975. // <input type="week" />
  19976. MONTH: "YYYY-MM"
  19977. // <input type="month" />
  19978. };
  19979. var ws = { exports: {} };
  19980. /**
  19981. * @license
  19982. * Lodash <https://lodash.com/>
  19983. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  19984. * Released under MIT license <https://lodash.com/license>
  19985. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  19986. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  19987. */
  19988. ws.exports;
  19989. (function(r, f) {
  19990. (function() {
  19991. var E, h = "4.17.21", y = 200, j = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", I = "Expected a function", Z = "Invalid `variable` option passed into `_.template`", F = "__lodash_hash_undefined__", U = 500, H = "__lodash_placeholder__", W = 1, R = 2, S = 4, v = 1, d = 2, u = 1, P = 2, O = 4, N = 8, C = 16, b = 32, w = 64, x = 128, a = 256, c = 512, p = 30, i = "...", l = 800, s = 16, t = 1, o = 2, n = 3, A = 1 / 0, _ = 9007199254740991, D = 17976931348623157e292, B = 0 / 0, T = 4294967295, X = T - 1, g = T >>> 1, m = [
  19992. ["ary", x],
  19993. ["bind", u],
  19994. ["bindKey", P],
  19995. ["curry", N],
  19996. ["curryRight", C],
  19997. ["flip", c],
  19998. ["partial", b],
  19999. ["partialRight", w],
  20000. ["rearg", a]
  20001. ], L = "[object Arguments]", Y = "[object Array]", V = "[object AsyncFunction]", Q = "[object Boolean]", k = "[object Date]", G = "[object DOMException]", z = "[object Error]", $ = "[object Function]", q = "[object GeneratorFunction]", it = "[object Map]", et = "[object Number]", nt = "[object Null]", rt = "[object Object]", ct = "[object Promise]", gt = "[object Proxy]", dt = "[object RegExp]", lt = "[object Set]", at = "[object String]", J = "[object Symbol]", tt = "[object Undefined]", st = "[object WeakMap]", ht = "[object WeakSet]", pt = "[object ArrayBuffer]", yt = "[object DataView]", vt = "[object Float32Array]", Ct = "[object Float64Array]", Pt = "[object Int8Array]", kt = "[object Int16Array]", St = "[object Int32Array]", Dt = "[object Uint8Array]", Lt = "[object Uint8ClampedArray]", Nt = "[object Uint16Array]", Et = "[object Uint32Array]", Kt = /\b__p \+= '';/g, Gt = /\b(__p \+=) '' \+/g, Wt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Jt = /&(?:amp|lt|gt|quot|#39);/g, be = /[&<>"']/g, zt = RegExp(Jt.source), Vt = RegExp(be.source), Me = /<%-([\s\S]+?)%>/g, _r = /<%([\s\S]+?)%>/g, po = /<%=([\s\S]+?)%>/g, Pn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, En = /^\w*$/, $e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, On = /[\\^$.*+?()[\]{}|]/g, Ln = RegExp(On.source), Kr = /^\s+/, uo = /\s/, Hs = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Dr = /\{\n\/\* \[wrapped with (.+)\] \*/, zi = /,? & /, fo = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, _n = /[()=,{}\[\]\/\s]/, Ir = /\\(\\)?/g, $t = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ue = /\w*$/, ge = /^[-+]0x[0-9a-f]+$/i, Re = /^0b[01]+$/i, De = /^\[object .+?Constructor\]$/, Jr = /^0o[0-7]+$/i, fd = /^(?:0|[1-9]\d*)$/, gd = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, go = /($^)/, md = /['\n\r\u2028\u2029\\]/g, mo = "\\ud800-\\udfff", yd = "\\u0300-\\u036f", vd = "\\ufe20-\\ufe2f", xd = "\\u20d0-\\u20ff", qh = yd + vd + xd, Qh = "\\u2700-\\u27bf", tl = "a-z\\xdf-\\xf6\\xf8-\\xff", bd = "\\xac\\xb1\\xd7\\xf7", Sd = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", wd = "\\u2000-\\u206f", Md = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", el = "A-Z\\xc0-\\xd6\\xd8-\\xde", il = "\\ufe0e\\ufe0f", rl = bd + Sd + wd + Md, Fs = "['’]", Cd = "[" + mo + "]", nl = "[" + rl + "]", yo = "[" + qh + "]", ol = "\\d+", kd = "[" + Qh + "]", sl = "[" + tl + "]", al = "[^" + mo + rl + ol + Qh + tl + el + "]", Us = "\\ud83c[\\udffb-\\udfff]", Ad = "(?:" + yo + "|" + Us + ")", hl = "[^" + mo + "]", Vs = "(?:\\ud83c[\\udde6-\\uddff]){2}", $s = "[\\ud800-\\udbff][\\udc00-\\udfff]", qr = "[" + el + "]", ll = "\\u200d", cl = "(?:" + sl + "|" + al + ")", Td = "(?:" + qr + "|" + al + ")", pl = "(?:" + Fs + "(?:d|ll|m|re|s|t|ve))?", ul = "(?:" + Fs + "(?:D|LL|M|RE|S|T|VE))?", dl = Ad + "?", fl = "[" + il + "]?", Pd = "(?:" + ll + "(?:" + [hl, Vs, $s].join("|") + ")" + fl + dl + ")*", Ed = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Od = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gl = fl + dl + Pd, Ld = "(?:" + [kd, Vs, $s].join("|") + ")" + gl, _d = "(?:" + [hl + yo + "?", yo, Vs, $s, Cd].join("|") + ")", Dd = RegExp(Fs, "g"), Id = RegExp(yo, "g"), Zs = RegExp(Us + "(?=" + Us + ")|" + _d + gl, "g"), Rd = RegExp([
  20002. qr + "?" + sl + "+" + pl + "(?=" + [nl, qr, "$"].join("|") + ")",
  20003. Td + "+" + ul + "(?=" + [nl, qr + cl, "$"].join("|") + ")",
  20004. qr + "?" + cl + "+" + pl,
  20005. qr + "+" + ul,
  20006. Od,
  20007. Ed,
  20008. ol,
  20009. Ld
  20010. ].join("|"), "g"), Nd = RegExp("[" + ll + mo + qh + il + "]"), Bd = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, jd = [
  20011. "Array",
  20012. "Buffer",
  20013. "DataView",
  20014. "Date",
  20015. "Error",
  20016. "Float32Array",
  20017. "Float64Array",
  20018. "Function",
  20019. "Int8Array",
  20020. "Int16Array",
  20021. "Int32Array",
  20022. "Map",
  20023. "Math",
  20024. "Object",
  20025. "Promise",
  20026. "RegExp",
  20027. "Set",
  20028. "String",
  20029. "Symbol",
  20030. "TypeError",
  20031. "Uint8Array",
  20032. "Uint8ClampedArray",
  20033. "Uint16Array",
  20034. "Uint32Array",
  20035. "WeakMap",
  20036. "_",
  20037. "clearTimeout",
  20038. "isFinite",
  20039. "parseInt",
  20040. "setTimeout"
  20041. ], Wd = -1, Ae = {};
  20042. Ae[vt] = Ae[Ct] = Ae[Pt] = Ae[kt] = Ae[St] = Ae[Dt] = Ae[Lt] = Ae[Nt] = Ae[Et] = !0, Ae[L] = Ae[Y] = Ae[pt] = Ae[Q] = Ae[yt] = Ae[k] = Ae[z] = Ae[$] = Ae[it] = Ae[et] = Ae[rt] = Ae[dt] = Ae[lt] = Ae[at] = Ae[st] = !1;
  20043. var ke = {};
  20044. ke[L] = ke[Y] = ke[pt] = ke[yt] = ke[Q] = ke[k] = ke[vt] = ke[Ct] = ke[Pt] = ke[kt] = ke[St] = ke[it] = ke[et] = ke[rt] = ke[dt] = ke[lt] = ke[at] = ke[J] = ke[Dt] = ke[Lt] = ke[Nt] = ke[Et] = !0, ke[z] = ke[$] = ke[st] = !1;
  20045. var zd = {
  20046. // Latin-1 Supplement block.
  20047. À: "A",
  20048. Á: "A",
  20049. Â: "A",
  20050. Ã: "A",
  20051. Ä: "A",
  20052. Å: "A",
  20053. à: "a",
  20054. á: "a",
  20055. â: "a",
  20056. ã: "a",
  20057. ä: "a",
  20058. å: "a",
  20059. Ç: "C",
  20060. ç: "c",
  20061. Ð: "D",
  20062. ð: "d",
  20063. È: "E",
  20064. É: "E",
  20065. Ê: "E",
  20066. Ë: "E",
  20067. è: "e",
  20068. é: "e",
  20069. ê: "e",
  20070. ë: "e",
  20071. Ì: "I",
  20072. Í: "I",
  20073. Î: "I",
  20074. Ï: "I",
  20075. ì: "i",
  20076. í: "i",
  20077. î: "i",
  20078. ï: "i",
  20079. Ñ: "N",
  20080. ñ: "n",
  20081. Ò: "O",
  20082. Ó: "O",
  20083. Ô: "O",
  20084. Õ: "O",
  20085. Ö: "O",
  20086. Ø: "O",
  20087. ò: "o",
  20088. ó: "o",
  20089. ô: "o",
  20090. õ: "o",
  20091. ö: "o",
  20092. ø: "o",
  20093. Ù: "U",
  20094. Ú: "U",
  20095. Û: "U",
  20096. Ü: "U",
  20097. ù: "u",
  20098. ú: "u",
  20099. û: "u",
  20100. ü: "u",
  20101. Ý: "Y",
  20102. ý: "y",
  20103. ÿ: "y",
  20104. Æ: "Ae",
  20105. æ: "ae",
  20106. Þ: "Th",
  20107. þ: "th",
  20108. ß: "ss",
  20109. // Latin Extended-A block.
  20110. Ā: "A",
  20111. Ă: "A",
  20112. Ą: "A",
  20113. ā: "a",
  20114. ă: "a",
  20115. ą: "a",
  20116. Ć: "C",
  20117. Ĉ: "C",
  20118. Ċ: "C",
  20119. Č: "C",
  20120. ć: "c",
  20121. ĉ: "c",
  20122. ċ: "c",
  20123. č: "c",
  20124. Ď: "D",
  20125. Đ: "D",
  20126. ď: "d",
  20127. đ: "d",
  20128. Ē: "E",
  20129. Ĕ: "E",
  20130. Ė: "E",
  20131. Ę: "E",
  20132. Ě: "E",
  20133. ē: "e",
  20134. ĕ: "e",
  20135. ė: "e",
  20136. ę: "e",
  20137. ě: "e",
  20138. Ĝ: "G",
  20139. Ğ: "G",
  20140. Ġ: "G",
  20141. Ģ: "G",
  20142. ĝ: "g",
  20143. ğ: "g",
  20144. ġ: "g",
  20145. ģ: "g",
  20146. Ĥ: "H",
  20147. Ħ: "H",
  20148. ĥ: "h",
  20149. ħ: "h",
  20150. Ĩ: "I",
  20151. Ī: "I",
  20152. Ĭ: "I",
  20153. Į: "I",
  20154. İ: "I",
  20155. ĩ: "i",
  20156. ī: "i",
  20157. ĭ: "i",
  20158. į: "i",
  20159. ı: "i",
  20160. Ĵ: "J",
  20161. ĵ: "j",
  20162. Ķ: "K",
  20163. ķ: "k",
  20164. ĸ: "k",
  20165. Ĺ: "L",
  20166. Ļ: "L",
  20167. Ľ: "L",
  20168. Ŀ: "L",
  20169. Ł: "L",
  20170. ĺ: "l",
  20171. ļ: "l",
  20172. ľ: "l",
  20173. ŀ: "l",
  20174. ł: "l",
  20175. Ń: "N",
  20176. Ņ: "N",
  20177. Ň: "N",
  20178. Ŋ: "N",
  20179. ń: "n",
  20180. ņ: "n",
  20181. ň: "n",
  20182. ŋ: "n",
  20183. Ō: "O",
  20184. Ŏ: "O",
  20185. Ő: "O",
  20186. ō: "o",
  20187. ŏ: "o",
  20188. ő: "o",
  20189. Ŕ: "R",
  20190. Ŗ: "R",
  20191. Ř: "R",
  20192. ŕ: "r",
  20193. ŗ: "r",
  20194. ř: "r",
  20195. Ś: "S",
  20196. Ŝ: "S",
  20197. Ş: "S",
  20198. Š: "S",
  20199. ś: "s",
  20200. ŝ: "s",
  20201. ş: "s",
  20202. š: "s",
  20203. Ţ: "T",
  20204. Ť: "T",
  20205. Ŧ: "T",
  20206. ţ: "t",
  20207. ť: "t",
  20208. ŧ: "t",
  20209. Ũ: "U",
  20210. Ū: "U",
  20211. Ŭ: "U",
  20212. Ů: "U",
  20213. Ű: "U",
  20214. Ų: "U",
  20215. ũ: "u",
  20216. ū: "u",
  20217. ŭ: "u",
  20218. ů: "u",
  20219. ű: "u",
  20220. ų: "u",
  20221. Ŵ: "W",
  20222. ŵ: "w",
  20223. Ŷ: "Y",
  20224. ŷ: "y",
  20225. Ÿ: "Y",
  20226. Ź: "Z",
  20227. Ż: "Z",
  20228. Ž: "Z",
  20229. ź: "z",
  20230. ż: "z",
  20231. ž: "z",
  20232. IJ: "IJ",
  20233. ij: "ij",
  20234. Œ: "Oe",
  20235. œ: "oe",
  20236. ʼn: "'n",
  20237. ſ: "s"
  20238. }, Yd = {
  20239. "&": "&amp;",
  20240. "<": "&lt;",
  20241. ">": "&gt;",
  20242. '"': "&quot;",
  20243. "'": "&#39;"
  20244. }, Xd = {
  20245. "&amp;": "&",
  20246. "&lt;": "<",
  20247. "&gt;": ">",
  20248. "&quot;": '"',
  20249. "&#39;": "'"
  20250. }, Gd = {
  20251. "\\": "\\",
  20252. "'": "'",
  20253. "\n": "n",
  20254. "\r": "r",
  20255. "\u2028": "u2028",
  20256. "\u2029": "u2029"
  20257. }, Hd = parseFloat, Fd = parseInt, ml = typeof Fr == "object" && Fr && Fr.Object === Object && Fr, Ud = typeof self == "object" && self && self.Object === Object && self, Ue = ml || Ud || Function("return this")(), Ks = f && !f.nodeType && f, Rr = Ks && !0 && r && !r.nodeType && r, yl = Rr && Rr.exports === Ks, Js = yl && ml.process, xi = function() {
  20258. try {
  20259. var wt = Rr && Rr.require && Rr.require("util").types;
  20260. return wt || Js && Js.binding && Js.binding("util");
  20261. } catch {
  20262. }
  20263. }(), vl = xi && xi.isArrayBuffer, xl = xi && xi.isDate, bl = xi && xi.isMap, Sl = xi && xi.isRegExp, wl = xi && xi.isSet, Ml = xi && xi.isTypedArray;
  20264. function pi(wt, Ot, At) {
  20265. switch (At.length) {
  20266. case 0:
  20267. return wt.call(Ot);
  20268. case 1:
  20269. return wt.call(Ot, At[0]);
  20270. case 2:
  20271. return wt.call(Ot, At[0], At[1]);
  20272. case 3:
  20273. return wt.call(Ot, At[0], At[1], At[2]);
  20274. }
  20275. return wt.apply(Ot, At);
  20276. }
  20277. function Vd(wt, Ot, At, Ht) {
  20278. for (var ee = -1, ve = wt == null ? 0 : wt.length; ++ee < ve; ) {
  20279. var ze = wt[ee];
  20280. Ot(Ht, ze, At(ze), wt);
  20281. }
  20282. return Ht;
  20283. }
  20284. function bi(wt, Ot) {
  20285. for (var At = -1, Ht = wt == null ? 0 : wt.length; ++At < Ht && Ot(wt[At], At, wt) !== !1; )
  20286. ;
  20287. return wt;
  20288. }
  20289. function $d(wt, Ot) {
  20290. for (var At = wt == null ? 0 : wt.length; At-- && Ot(wt[At], At, wt) !== !1; )
  20291. ;
  20292. return wt;
  20293. }
  20294. function Cl(wt, Ot) {
  20295. for (var At = -1, Ht = wt == null ? 0 : wt.length; ++At < Ht; )
  20296. if (!Ot(wt[At], At, wt))
  20297. return !1;
  20298. return !0;
  20299. }
  20300. function yr(wt, Ot) {
  20301. for (var At = -1, Ht = wt == null ? 0 : wt.length, ee = 0, ve = []; ++At < Ht; ) {
  20302. var ze = wt[At];
  20303. Ot(ze, At, wt) && (ve[ee++] = ze);
  20304. }
  20305. return ve;
  20306. }
  20307. function vo(wt, Ot) {
  20308. var At = wt == null ? 0 : wt.length;
  20309. return !!At && Qr(wt, Ot, 0) > -1;
  20310. }
  20311. function qs(wt, Ot, At) {
  20312. for (var Ht = -1, ee = wt == null ? 0 : wt.length; ++Ht < ee; )
  20313. if (At(Ot, wt[Ht]))
  20314. return !0;
  20315. return !1;
  20316. }
  20317. function Ee(wt, Ot) {
  20318. for (var At = -1, Ht = wt == null ? 0 : wt.length, ee = Array(Ht); ++At < Ht; )
  20319. ee[At] = Ot(wt[At], At, wt);
  20320. return ee;
  20321. }
  20322. function vr(wt, Ot) {
  20323. for (var At = -1, Ht = Ot.length, ee = wt.length; ++At < Ht; )
  20324. wt[ee + At] = Ot[At];
  20325. return wt;
  20326. }
  20327. function Qs(wt, Ot, At, Ht) {
  20328. var ee = -1, ve = wt == null ? 0 : wt.length;
  20329. for (Ht && ve && (At = wt[++ee]); ++ee < ve; )
  20330. At = Ot(At, wt[ee], ee, wt);
  20331. return At;
  20332. }
  20333. function Zd(wt, Ot, At, Ht) {
  20334. var ee = wt == null ? 0 : wt.length;
  20335. for (Ht && ee && (At = wt[--ee]); ee--; )
  20336. At = Ot(At, wt[ee], ee, wt);
  20337. return At;
  20338. }
  20339. function ta(wt, Ot) {
  20340. for (var At = -1, Ht = wt == null ? 0 : wt.length; ++At < Ht; )
  20341. if (Ot(wt[At], At, wt))
  20342. return !0;
  20343. return !1;
  20344. }
  20345. var Kd = ea("length");
  20346. function Jd(wt) {
  20347. return wt.split("");
  20348. }
  20349. function qd(wt) {
  20350. return wt.match(fo) || [];
  20351. }
  20352. function kl(wt, Ot, At) {
  20353. var Ht;
  20354. return At(wt, function(ee, ve, ze) {
  20355. if (Ot(ee, ve, ze))
  20356. return Ht = ve, !1;
  20357. }), Ht;
  20358. }
  20359. function xo(wt, Ot, At, Ht) {
  20360. for (var ee = wt.length, ve = At + (Ht ? 1 : -1); Ht ? ve-- : ++ve < ee; )
  20361. if (Ot(wt[ve], ve, wt))
  20362. return ve;
  20363. return -1;
  20364. }
  20365. function Qr(wt, Ot, At) {
  20366. return Ot === Ot ? pf(wt, Ot, At) : xo(wt, Al, At);
  20367. }
  20368. function Qd(wt, Ot, At, Ht) {
  20369. for (var ee = At - 1, ve = wt.length; ++ee < ve; )
  20370. if (Ht(wt[ee], Ot))
  20371. return ee;
  20372. return -1;
  20373. }
  20374. function Al(wt) {
  20375. return wt !== wt;
  20376. }
  20377. function Tl(wt, Ot) {
  20378. var At = wt == null ? 0 : wt.length;
  20379. return At ? ra(wt, Ot) / At : B;
  20380. }
  20381. function ea(wt) {
  20382. return function(Ot) {
  20383. return Ot == null ? E : Ot[wt];
  20384. };
  20385. }
  20386. function ia(wt) {
  20387. return function(Ot) {
  20388. return wt == null ? E : wt[Ot];
  20389. };
  20390. }
  20391. function Pl(wt, Ot, At, Ht, ee) {
  20392. return ee(wt, function(ve, ze, Ce) {
  20393. At = Ht ? (Ht = !1, ve) : Ot(At, ve, ze, Ce);
  20394. }), At;
  20395. }
  20396. function tf(wt, Ot) {
  20397. var At = wt.length;
  20398. for (wt.sort(Ot); At--; )
  20399. wt[At] = wt[At].value;
  20400. return wt;
  20401. }
  20402. function ra(wt, Ot) {
  20403. for (var At, Ht = -1, ee = wt.length; ++Ht < ee; ) {
  20404. var ve = Ot(wt[Ht]);
  20405. ve !== E && (At = At === E ? ve : At + ve);
  20406. }
  20407. return At;
  20408. }
  20409. function na(wt, Ot) {
  20410. for (var At = -1, Ht = Array(wt); ++At < wt; )
  20411. Ht[At] = Ot(At);
  20412. return Ht;
  20413. }
  20414. function ef(wt, Ot) {
  20415. return Ee(Ot, function(At) {
  20416. return [At, wt[At]];
  20417. });
  20418. }
  20419. function El(wt) {
  20420. return wt && wt.slice(0, Dl(wt) + 1).replace(Kr, "");
  20421. }
  20422. function ui(wt) {
  20423. return function(Ot) {
  20424. return wt(Ot);
  20425. };
  20426. }
  20427. function oa(wt, Ot) {
  20428. return Ee(Ot, function(At) {
  20429. return wt[At];
  20430. });
  20431. }
  20432. function Dn(wt, Ot) {
  20433. return wt.has(Ot);
  20434. }
  20435. function Ol(wt, Ot) {
  20436. for (var At = -1, Ht = wt.length; ++At < Ht && Qr(Ot, wt[At], 0) > -1; )
  20437. ;
  20438. return At;
  20439. }
  20440. function Ll(wt, Ot) {
  20441. for (var At = wt.length; At-- && Qr(Ot, wt[At], 0) > -1; )
  20442. ;
  20443. return At;
  20444. }
  20445. function rf(wt, Ot) {
  20446. for (var At = wt.length, Ht = 0; At--; )
  20447. wt[At] === Ot && ++Ht;
  20448. return Ht;
  20449. }
  20450. var nf = ia(zd), of = ia(Yd);
  20451. function sf(wt) {
  20452. return "\\" + Gd[wt];
  20453. }
  20454. function af(wt, Ot) {
  20455. return wt == null ? E : wt[Ot];
  20456. }
  20457. function tn(wt) {
  20458. return Nd.test(wt);
  20459. }
  20460. function hf(wt) {
  20461. return Bd.test(wt);
  20462. }
  20463. function lf(wt) {
  20464. for (var Ot, At = []; !(Ot = wt.next()).done; )
  20465. At.push(Ot.value);
  20466. return At;
  20467. }
  20468. function sa(wt) {
  20469. var Ot = -1, At = Array(wt.size);
  20470. return wt.forEach(function(Ht, ee) {
  20471. At[++Ot] = [ee, Ht];
  20472. }), At;
  20473. }
  20474. function _l(wt, Ot) {
  20475. return function(At) {
  20476. return wt(Ot(At));
  20477. };
  20478. }
  20479. function xr(wt, Ot) {
  20480. for (var At = -1, Ht = wt.length, ee = 0, ve = []; ++At < Ht; ) {
  20481. var ze = wt[At];
  20482. (ze === Ot || ze === H) && (wt[At] = H, ve[ee++] = At);
  20483. }
  20484. return ve;
  20485. }
  20486. function bo(wt) {
  20487. var Ot = -1, At = Array(wt.size);
  20488. return wt.forEach(function(Ht) {
  20489. At[++Ot] = Ht;
  20490. }), At;
  20491. }
  20492. function cf(wt) {
  20493. var Ot = -1, At = Array(wt.size);
  20494. return wt.forEach(function(Ht) {
  20495. At[++Ot] = [Ht, Ht];
  20496. }), At;
  20497. }
  20498. function pf(wt, Ot, At) {
  20499. for (var Ht = At - 1, ee = wt.length; ++Ht < ee; )
  20500. if (wt[Ht] === Ot)
  20501. return Ht;
  20502. return -1;
  20503. }
  20504. function uf(wt, Ot, At) {
  20505. for (var Ht = At + 1; Ht--; )
  20506. if (wt[Ht] === Ot)
  20507. return Ht;
  20508. return Ht;
  20509. }
  20510. function en(wt) {
  20511. return tn(wt) ? ff(wt) : Kd(wt);
  20512. }
  20513. function Li(wt) {
  20514. return tn(wt) ? gf(wt) : Jd(wt);
  20515. }
  20516. function Dl(wt) {
  20517. for (var Ot = wt.length; Ot-- && uo.test(wt.charAt(Ot)); )
  20518. ;
  20519. return Ot;
  20520. }
  20521. var df = ia(Xd);
  20522. function ff(wt) {
  20523. for (var Ot = Zs.lastIndex = 0; Zs.test(wt); )
  20524. ++Ot;
  20525. return Ot;
  20526. }
  20527. function gf(wt) {
  20528. return wt.match(Zs) || [];
  20529. }
  20530. function mf(wt) {
  20531. return wt.match(Rd) || [];
  20532. }
  20533. var yf = function wt(Ot) {
  20534. Ot = Ot == null ? Ue : rn.defaults(Ue.Object(), Ot, rn.pick(Ue, jd));
  20535. var At = Ot.Array, Ht = Ot.Date, ee = Ot.Error, ve = Ot.Function, ze = Ot.Math, Ce = Ot.Object, aa = Ot.RegExp, vf = Ot.String, Si = Ot.TypeError, So = At.prototype, xf = ve.prototype, nn = Ce.prototype, wo = Ot["__core-js_shared__"], Mo = xf.toString, Se = nn.hasOwnProperty, bf = 0, Il = function() {
  20536. var e = /[^.]+$/.exec(wo && wo.keys && wo.keys.IE_PROTO || "");
  20537. return e ? "Symbol(src)_1." + e : "";
  20538. }(), Co = nn.toString, Sf = Mo.call(Ce), wf = Ue._, Mf = aa(
  20539. "^" + Mo.call(Se).replace(On, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  20540. ), ko = yl ? Ot.Buffer : E, br = Ot.Symbol, Ao = Ot.Uint8Array, Rl = ko ? ko.allocUnsafe : E, To = _l(Ce.getPrototypeOf, Ce), Nl = Ce.create, Bl = nn.propertyIsEnumerable, Po = So.splice, jl = br ? br.isConcatSpreadable : E, In = br ? br.iterator : E, Nr = br ? br.toStringTag : E, Eo = function() {
  20541. try {
  20542. var e = Yr(Ce, "defineProperty");
  20543. return e({}, "", {}), e;
  20544. } catch {
  20545. }
  20546. }(), Cf = Ot.clearTimeout !== Ue.clearTimeout && Ot.clearTimeout, kf = Ht && Ht.now !== Ue.Date.now && Ht.now, Af = Ot.setTimeout !== Ue.setTimeout && Ot.setTimeout, Oo = ze.ceil, Lo = ze.floor, ha = Ce.getOwnPropertySymbols, Tf = ko ? ko.isBuffer : E, Wl = Ot.isFinite, Pf = So.join, Ef = _l(Ce.keys, Ce), Ye = ze.max, Ze = ze.min, Of = Ht.now, Lf = Ot.parseInt, zl = ze.random, _f = So.reverse, la = Yr(Ot, "DataView"), Rn = Yr(Ot, "Map"), ca = Yr(Ot, "Promise"), on = Yr(Ot, "Set"), Nn = Yr(Ot, "WeakMap"), Bn = Yr(Ce, "create"), _o = Nn && new Nn(), sn = {}, Df = Xr(la), If = Xr(Rn), Rf = Xr(ca), Nf = Xr(on), Bf = Xr(Nn), Do = br ? br.prototype : E, jn = Do ? Do.valueOf : E, Yl = Do ? Do.toString : E;
  20547. function ft(e) {
  20548. if (Ne(e) && !ie(e) && !(e instanceof ce)) {
  20549. if (e instanceof wi)
  20550. return e;
  20551. if (Se.call(e, "__wrapped__"))
  20552. return Xc(e);
  20553. }
  20554. return new wi(e);
  20555. }
  20556. var an = function() {
  20557. function e() {
  20558. }
  20559. return function(M) {
  20560. if (!Ie(M))
  20561. return {};
  20562. if (Nl)
  20563. return Nl(M);
  20564. e.prototype = M;
  20565. var K = new e();
  20566. return e.prototype = E, K;
  20567. };
  20568. }();
  20569. function Io() {
  20570. }
  20571. function wi(e, M) {
  20572. this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!M, this.__index__ = 0, this.__values__ = E;
  20573. }
  20574. ft.templateSettings = {
  20575. /**
  20576. * Used to detect `data` property values to be HTML-escaped.
  20577. *
  20578. * @memberOf _.templateSettings
  20579. * @type {RegExp}
  20580. */
  20581. escape: Me,
  20582. /**
  20583. * Used to detect code to be evaluated.
  20584. *
  20585. * @memberOf _.templateSettings
  20586. * @type {RegExp}
  20587. */
  20588. evaluate: _r,
  20589. /**
  20590. * Used to detect `data` property values to inject.
  20591. *
  20592. * @memberOf _.templateSettings
  20593. * @type {RegExp}
  20594. */
  20595. interpolate: po,
  20596. /**
  20597. * Used to reference the data object in the template text.
  20598. *
  20599. * @memberOf _.templateSettings
  20600. * @type {string}
  20601. */
  20602. variable: "",
  20603. /**
  20604. * Used to import variables into the compiled template.
  20605. *
  20606. * @memberOf _.templateSettings
  20607. * @type {Object}
  20608. */
  20609. imports: {
  20610. /**
  20611. * A reference to the `lodash` function.
  20612. *
  20613. * @memberOf _.templateSettings.imports
  20614. * @type {Function}
  20615. */
  20616. _: ft
  20617. }
  20618. }, ft.prototype = Io.prototype, ft.prototype.constructor = ft, wi.prototype = an(Io.prototype), wi.prototype.constructor = wi;
  20619. function ce(e) {
  20620. this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = T, this.__views__ = [];
  20621. }
  20622. function jf() {
  20623. var e = new ce(this.__wrapped__);
  20624. return e.__actions__ = oi(this.__actions__), e.__dir__ = this.__dir__, e.__filtered__ = this.__filtered__, e.__iteratees__ = oi(this.__iteratees__), e.__takeCount__ = this.__takeCount__, e.__views__ = oi(this.__views__), e;
  20625. }
  20626. function Wf() {
  20627. if (this.__filtered__) {
  20628. var e = new ce(this);
  20629. e.__dir__ = -1, e.__filtered__ = !0;
  20630. } else
  20631. e = this.clone(), e.__dir__ *= -1;
  20632. return e;
  20633. }
  20634. function zf() {
  20635. var e = this.__wrapped__.value(), M = this.__dir__, K = ie(e), ot = M < 0, ut = K ? e.length : 0, mt = qg(0, ut, this.__views__), xt = mt.start, bt = mt.end, Mt = bt - xt, It = ot ? bt : xt - 1, Rt = this.__iteratees__, Bt = Rt.length, Yt = 0, Ut = Ze(Mt, this.__takeCount__);
  20636. if (!K || !ot && ut == Mt && Ut == Mt)
  20637. return pc(e, this.__actions__);
  20638. var Qt = [];
  20639. t:
  20640. for (; Mt-- && Yt < Ut; ) {
  20641. It += M;
  20642. for (var se = -1, te = e[It]; ++se < Bt; ) {
  20643. var le = Rt[se], pe = le.iteratee, gi = le.type, ni = pe(te);
  20644. if (gi == o)
  20645. te = ni;
  20646. else if (!ni) {
  20647. if (gi == t)
  20648. continue t;
  20649. break t;
  20650. }
  20651. }
  20652. Qt[Yt++] = te;
  20653. }
  20654. return Qt;
  20655. }
  20656. ce.prototype = an(Io.prototype), ce.prototype.constructor = ce;
  20657. function Br(e) {
  20658. var M = -1, K = e == null ? 0 : e.length;
  20659. for (this.clear(); ++M < K; ) {
  20660. var ot = e[M];
  20661. this.set(ot[0], ot[1]);
  20662. }
  20663. }
  20664. function Yf() {
  20665. this.__data__ = Bn ? Bn(null) : {}, this.size = 0;
  20666. }
  20667. function Xf(e) {
  20668. var M = this.has(e) && delete this.__data__[e];
  20669. return this.size -= M ? 1 : 0, M;
  20670. }
  20671. function Gf(e) {
  20672. var M = this.__data__;
  20673. if (Bn) {
  20674. var K = M[e];
  20675. return K === F ? E : K;
  20676. }
  20677. return Se.call(M, e) ? M[e] : E;
  20678. }
  20679. function Hf(e) {
  20680. var M = this.__data__;
  20681. return Bn ? M[e] !== E : Se.call(M, e);
  20682. }
  20683. function Ff(e, M) {
  20684. var K = this.__data__;
  20685. return this.size += this.has(e) ? 0 : 1, K[e] = Bn && M === E ? F : M, this;
  20686. }
  20687. Br.prototype.clear = Yf, Br.prototype.delete = Xf, Br.prototype.get = Gf, Br.prototype.has = Hf, Br.prototype.set = Ff;
  20688. function qi(e) {
  20689. var M = -1, K = e == null ? 0 : e.length;
  20690. for (this.clear(); ++M < K; ) {
  20691. var ot = e[M];
  20692. this.set(ot[0], ot[1]);
  20693. }
  20694. }
  20695. function Uf() {
  20696. this.__data__ = [], this.size = 0;
  20697. }
  20698. function Vf(e) {
  20699. var M = this.__data__, K = Ro(M, e);
  20700. if (K < 0)
  20701. return !1;
  20702. var ot = M.length - 1;
  20703. return K == ot ? M.pop() : Po.call(M, K, 1), --this.size, !0;
  20704. }
  20705. function $f(e) {
  20706. var M = this.__data__, K = Ro(M, e);
  20707. return K < 0 ? E : M[K][1];
  20708. }
  20709. function Zf(e) {
  20710. return Ro(this.__data__, e) > -1;
  20711. }
  20712. function Kf(e, M) {
  20713. var K = this.__data__, ot = Ro(K, e);
  20714. return ot < 0 ? (++this.size, K.push([e, M])) : K[ot][1] = M, this;
  20715. }
  20716. qi.prototype.clear = Uf, qi.prototype.delete = Vf, qi.prototype.get = $f, qi.prototype.has = Zf, qi.prototype.set = Kf;
  20717. function Qi(e) {
  20718. var M = -1, K = e == null ? 0 : e.length;
  20719. for (this.clear(); ++M < K; ) {
  20720. var ot = e[M];
  20721. this.set(ot[0], ot[1]);
  20722. }
  20723. }
  20724. function Jf() {
  20725. this.size = 0, this.__data__ = {
  20726. hash: new Br(),
  20727. map: new (Rn || qi)(),
  20728. string: new Br()
  20729. };
  20730. }
  20731. function qf(e) {
  20732. var M = Vo(this, e).delete(e);
  20733. return this.size -= M ? 1 : 0, M;
  20734. }
  20735. function Qf(e) {
  20736. return Vo(this, e).get(e);
  20737. }
  20738. function tg(e) {
  20739. return Vo(this, e).has(e);
  20740. }
  20741. function eg(e, M) {
  20742. var K = Vo(this, e), ot = K.size;
  20743. return K.set(e, M), this.size += K.size == ot ? 0 : 1, this;
  20744. }
  20745. Qi.prototype.clear = Jf, Qi.prototype.delete = qf, Qi.prototype.get = Qf, Qi.prototype.has = tg, Qi.prototype.set = eg;
  20746. function jr(e) {
  20747. var M = -1, K = e == null ? 0 : e.length;
  20748. for (this.__data__ = new Qi(); ++M < K; )
  20749. this.add(e[M]);
  20750. }
  20751. function ig(e) {
  20752. return this.__data__.set(e, F), this;
  20753. }
  20754. function rg(e) {
  20755. return this.__data__.has(e);
  20756. }
  20757. jr.prototype.add = jr.prototype.push = ig, jr.prototype.has = rg;
  20758. function _i(e) {
  20759. var M = this.__data__ = new qi(e);
  20760. this.size = M.size;
  20761. }
  20762. function ng() {
  20763. this.__data__ = new qi(), this.size = 0;
  20764. }
  20765. function og(e) {
  20766. var M = this.__data__, K = M.delete(e);
  20767. return this.size = M.size, K;
  20768. }
  20769. function sg(e) {
  20770. return this.__data__.get(e);
  20771. }
  20772. function ag(e) {
  20773. return this.__data__.has(e);
  20774. }
  20775. function hg(e, M) {
  20776. var K = this.__data__;
  20777. if (K instanceof qi) {
  20778. var ot = K.__data__;
  20779. if (!Rn || ot.length < y - 1)
  20780. return ot.push([e, M]), this.size = ++K.size, this;
  20781. K = this.__data__ = new Qi(ot);
  20782. }
  20783. return K.set(e, M), this.size = K.size, this;
  20784. }
  20785. _i.prototype.clear = ng, _i.prototype.delete = og, _i.prototype.get = sg, _i.prototype.has = ag, _i.prototype.set = hg;
  20786. function Xl(e, M) {
  20787. var K = ie(e), ot = !K && Gr(e), ut = !K && !ot && kr(e), mt = !K && !ot && !ut && pn(e), xt = K || ot || ut || mt, bt = xt ? na(e.length, vf) : [], Mt = bt.length;
  20788. for (var It in e)
  20789. (M || Se.call(e, It)) && !(xt && // Safari 9 has enumerable `arguments.length` in strict mode.
  20790. (It == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  20791. ut && (It == "offset" || It == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  20792. mt && (It == "buffer" || It == "byteLength" || It == "byteOffset") || // Skip index properties.
  20793. rr(It, Mt))) && bt.push(It);
  20794. return bt;
  20795. }
  20796. function Gl(e) {
  20797. var M = e.length;
  20798. return M ? e[Sa(0, M - 1)] : E;
  20799. }
  20800. function lg(e, M) {
  20801. return $o(oi(e), Wr(M, 0, e.length));
  20802. }
  20803. function cg(e) {
  20804. return $o(oi(e));
  20805. }
  20806. function pa(e, M, K) {
  20807. (K !== E && !Di(e[M], K) || K === E && !(M in e)) && tr(e, M, K);
  20808. }
  20809. function Wn(e, M, K) {
  20810. var ot = e[M];
  20811. (!(Se.call(e, M) && Di(ot, K)) || K === E && !(M in e)) && tr(e, M, K);
  20812. }
  20813. function Ro(e, M) {
  20814. for (var K = e.length; K--; )
  20815. if (Di(e[K][0], M))
  20816. return K;
  20817. return -1;
  20818. }
  20819. function pg(e, M, K, ot) {
  20820. return Sr(e, function(ut, mt, xt) {
  20821. M(ot, ut, K(ut), xt);
  20822. }), ot;
  20823. }
  20824. function Hl(e, M) {
  20825. return e && Xi(M, He(M), e);
  20826. }
  20827. function ug(e, M) {
  20828. return e && Xi(M, ai(M), e);
  20829. }
  20830. function tr(e, M, K) {
  20831. M == "__proto__" && Eo ? Eo(e, M, {
  20832. configurable: !0,
  20833. enumerable: !0,
  20834. value: K,
  20835. writable: !0
  20836. }) : e[M] = K;
  20837. }
  20838. function ua(e, M) {
  20839. for (var K = -1, ot = M.length, ut = At(ot), mt = e == null; ++K < ot; )
  20840. ut[K] = mt ? E : Ua(e, M[K]);
  20841. return ut;
  20842. }
  20843. function Wr(e, M, K) {
  20844. return e === e && (K !== E && (e = e <= K ? e : K), M !== E && (e = e >= M ? e : M)), e;
  20845. }
  20846. function Mi(e, M, K, ot, ut, mt) {
  20847. var xt, bt = M & W, Mt = M & R, It = M & S;
  20848. if (K && (xt = ut ? K(e, ot, ut, mt) : K(e)), xt !== E)
  20849. return xt;
  20850. if (!Ie(e))
  20851. return e;
  20852. var Rt = ie(e);
  20853. if (Rt) {
  20854. if (xt = tm(e), !bt)
  20855. return oi(e, xt);
  20856. } else {
  20857. var Bt = Ke(e), Yt = Bt == $ || Bt == q;
  20858. if (kr(e))
  20859. return fc(e, bt);
  20860. if (Bt == rt || Bt == L || Yt && !ut) {
  20861. if (xt = Mt || Yt ? {} : Dc(e), !bt)
  20862. return Mt ? Gg(e, ug(xt, e)) : Xg(e, Hl(xt, e));
  20863. } else {
  20864. if (!ke[Bt])
  20865. return ut ? e : {};
  20866. xt = em(e, Bt, bt);
  20867. }
  20868. }
  20869. mt || (mt = new _i());
  20870. var Ut = mt.get(e);
  20871. if (Ut)
  20872. return Ut;
  20873. mt.set(e, xt), hp(e) ? e.forEach(function(te) {
  20874. xt.add(Mi(te, M, K, te, e, mt));
  20875. }) : sp(e) && e.forEach(function(te, le) {
  20876. xt.set(le, Mi(te, M, K, le, e, mt));
  20877. });
  20878. var Qt = It ? Mt ? _a : La : Mt ? ai : He, se = Rt ? E : Qt(e);
  20879. return bi(se || e, function(te, le) {
  20880. se && (le = te, te = e[le]), Wn(xt, le, Mi(te, M, K, le, e, mt));
  20881. }), xt;
  20882. }
  20883. function dg(e) {
  20884. var M = He(e);
  20885. return function(K) {
  20886. return Fl(K, e, M);
  20887. };
  20888. }
  20889. function Fl(e, M, K) {
  20890. var ot = K.length;
  20891. if (e == null)
  20892. return !ot;
  20893. for (e = Ce(e); ot--; ) {
  20894. var ut = K[ot], mt = M[ut], xt = e[ut];
  20895. if (xt === E && !(ut in e) || !mt(xt))
  20896. return !1;
  20897. }
  20898. return !0;
  20899. }
  20900. function Ul(e, M, K) {
  20901. if (typeof e != "function")
  20902. throw new Si(I);
  20903. return Un(function() {
  20904. e.apply(E, K);
  20905. }, M);
  20906. }
  20907. function zn(e, M, K, ot) {
  20908. var ut = -1, mt = vo, xt = !0, bt = e.length, Mt = [], It = M.length;
  20909. if (!bt)
  20910. return Mt;
  20911. K && (M = Ee(M, ui(K))), ot ? (mt = qs, xt = !1) : M.length >= y && (mt = Dn, xt = !1, M = new jr(M));
  20912. t:
  20913. for (; ++ut < bt; ) {
  20914. var Rt = e[ut], Bt = K == null ? Rt : K(Rt);
  20915. if (Rt = ot || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  20916. for (var Yt = It; Yt--; )
  20917. if (M[Yt] === Bt)
  20918. continue t;
  20919. Mt.push(Rt);
  20920. } else
  20921. mt(M, Bt, ot) || Mt.push(Rt);
  20922. }
  20923. return Mt;
  20924. }
  20925. var Sr = xc(Yi), Vl = xc(fa, !0);
  20926. function fg(e, M) {
  20927. var K = !0;
  20928. return Sr(e, function(ot, ut, mt) {
  20929. return K = !!M(ot, ut, mt), K;
  20930. }), K;
  20931. }
  20932. function No(e, M, K) {
  20933. for (var ot = -1, ut = e.length; ++ot < ut; ) {
  20934. var mt = e[ot], xt = M(mt);
  20935. if (xt != null && (bt === E ? xt === xt && !fi(xt) : K(xt, bt)))
  20936. var bt = xt, Mt = mt;
  20937. }
  20938. return Mt;
  20939. }
  20940. function gg(e, M, K, ot) {
  20941. var ut = e.length;
  20942. for (K = ne(K), K < 0 && (K = -K > ut ? 0 : ut + K), ot = ot === E || ot > ut ? ut : ne(ot), ot < 0 && (ot += ut), ot = K > ot ? 0 : cp(ot); K < ot; )
  20943. e[K++] = M;
  20944. return e;
  20945. }
  20946. function $l(e, M) {
  20947. var K = [];
  20948. return Sr(e, function(ot, ut, mt) {
  20949. M(ot, ut, mt) && K.push(ot);
  20950. }), K;
  20951. }
  20952. function Ve(e, M, K, ot, ut) {
  20953. var mt = -1, xt = e.length;
  20954. for (K || (K = rm), ut || (ut = []); ++mt < xt; ) {
  20955. var bt = e[mt];
  20956. M > 0 && K(bt) ? M > 1 ? Ve(bt, M - 1, K, ot, ut) : vr(ut, bt) : ot || (ut[ut.length] = bt);
  20957. }
  20958. return ut;
  20959. }
  20960. var da = bc(), Zl = bc(!0);
  20961. function Yi(e, M) {
  20962. return e && da(e, M, He);
  20963. }
  20964. function fa(e, M) {
  20965. return e && Zl(e, M, He);
  20966. }
  20967. function Bo(e, M) {
  20968. return yr(M, function(K) {
  20969. return nr(e[K]);
  20970. });
  20971. }
  20972. function zr(e, M) {
  20973. M = Mr(M, e);
  20974. for (var K = 0, ot = M.length; e != null && K < ot; )
  20975. e = e[Gi(M[K++])];
  20976. return K && K == ot ? e : E;
  20977. }
  20978. function Kl(e, M, K) {
  20979. var ot = M(e);
  20980. return ie(e) ? ot : vr(ot, K(e));
  20981. }
  20982. function ii(e) {
  20983. return e == null ? e === E ? tt : nt : Nr && Nr in Ce(e) ? Jg(e) : cm(e);
  20984. }
  20985. function ga(e, M) {
  20986. return e > M;
  20987. }
  20988. function mg(e, M) {
  20989. return e != null && Se.call(e, M);
  20990. }
  20991. function yg(e, M) {
  20992. return e != null && M in Ce(e);
  20993. }
  20994. function vg(e, M, K) {
  20995. return e >= Ze(M, K) && e < Ye(M, K);
  20996. }
  20997. function ma(e, M, K) {
  20998. for (var ot = K ? qs : vo, ut = e[0].length, mt = e.length, xt = mt, bt = At(mt), Mt = 1 / 0, It = []; xt--; ) {
  20999. var Rt = e[xt];
  21000. xt && M && (Rt = Ee(Rt, ui(M))), Mt = Ze(Rt.length, Mt), bt[xt] = !K && (M || ut >= 120 && Rt.length >= 120) ? new jr(xt && Rt) : E;
  21001. }
  21002. Rt = e[0];
  21003. var Bt = -1, Yt = bt[0];
  21004. t:
  21005. for (; ++Bt < ut && It.length < Mt; ) {
  21006. var Ut = Rt[Bt], Qt = M ? M(Ut) : Ut;
  21007. if (Ut = K || Ut !== 0 ? Ut : 0, !(Yt ? Dn(Yt, Qt) : ot(It, Qt, K))) {
  21008. for (xt = mt; --xt; ) {
  21009. var se = bt[xt];
  21010. if (!(se ? Dn(se, Qt) : ot(e[xt], Qt, K)))
  21011. continue t;
  21012. }
  21013. Yt && Yt.push(Qt), It.push(Ut);
  21014. }
  21015. }
  21016. return It;
  21017. }
  21018. function xg(e, M, K, ot) {
  21019. return Yi(e, function(ut, mt, xt) {
  21020. M(ot, K(ut), mt, xt);
  21021. }), ot;
  21022. }
  21023. function Yn(e, M, K) {
  21024. M = Mr(M, e), e = Bc(e, M);
  21025. var ot = e == null ? e : e[Gi(ki(M))];
  21026. return ot == null ? E : pi(ot, e, K);
  21027. }
  21028. function Jl(e) {
  21029. return Ne(e) && ii(e) == L;
  21030. }
  21031. function bg(e) {
  21032. return Ne(e) && ii(e) == pt;
  21033. }
  21034. function Sg(e) {
  21035. return Ne(e) && ii(e) == k;
  21036. }
  21037. function Xn(e, M, K, ot, ut) {
  21038. return e === M ? !0 : e == null || M == null || !Ne(e) && !Ne(M) ? e !== e && M !== M : wg(e, M, K, ot, Xn, ut);
  21039. }
  21040. function wg(e, M, K, ot, ut, mt) {
  21041. var xt = ie(e), bt = ie(M), Mt = xt ? Y : Ke(e), It = bt ? Y : Ke(M);
  21042. Mt = Mt == L ? rt : Mt, It = It == L ? rt : It;
  21043. var Rt = Mt == rt, Bt = It == rt, Yt = Mt == It;
  21044. if (Yt && kr(e)) {
  21045. if (!kr(M))
  21046. return !1;
  21047. xt = !0, Rt = !1;
  21048. }
  21049. if (Yt && !Rt)
  21050. return mt || (mt = new _i()), xt || pn(e) ? Oc(e, M, K, ot, ut, mt) : Zg(e, M, Mt, K, ot, ut, mt);
  21051. if (!(K & v)) {
  21052. var Ut = Rt && Se.call(e, "__wrapped__"), Qt = Bt && Se.call(M, "__wrapped__");
  21053. if (Ut || Qt) {
  21054. var se = Ut ? e.value() : e, te = Qt ? M.value() : M;
  21055. return mt || (mt = new _i()), ut(se, te, K, ot, mt);
  21056. }
  21057. }
  21058. return Yt ? (mt || (mt = new _i()), Kg(e, M, K, ot, ut, mt)) : !1;
  21059. }
  21060. function Mg(e) {
  21061. return Ne(e) && Ke(e) == it;
  21062. }
  21063. function ya(e, M, K, ot) {
  21064. var ut = K.length, mt = ut, xt = !ot;
  21065. if (e == null)
  21066. return !mt;
  21067. for (e = Ce(e); ut--; ) {
  21068. var bt = K[ut];
  21069. if (xt && bt[2] ? bt[1] !== e[bt[0]] : !(bt[0] in e))
  21070. return !1;
  21071. }
  21072. for (; ++ut < mt; ) {
  21073. bt = K[ut];
  21074. var Mt = bt[0], It = e[Mt], Rt = bt[1];
  21075. if (xt && bt[2]) {
  21076. if (It === E && !(Mt in e))
  21077. return !1;
  21078. } else {
  21079. var Bt = new _i();
  21080. if (ot)
  21081. var Yt = ot(It, Rt, Mt, e, M, Bt);
  21082. if (!(Yt === E ? Xn(Rt, It, v | d, ot, Bt) : Yt))
  21083. return !1;
  21084. }
  21085. }
  21086. return !0;
  21087. }
  21088. function ql(e) {
  21089. if (!Ie(e) || om(e))
  21090. return !1;
  21091. var M = nr(e) ? Mf : De;
  21092. return M.test(Xr(e));
  21093. }
  21094. function Cg(e) {
  21095. return Ne(e) && ii(e) == dt;
  21096. }
  21097. function kg(e) {
  21098. return Ne(e) && Ke(e) == lt;
  21099. }
  21100. function Ag(e) {
  21101. return Ne(e) && ts(e.length) && !!Ae[ii(e)];
  21102. }
  21103. function Ql(e) {
  21104. return typeof e == "function" ? e : e == null ? hi : typeof e == "object" ? ie(e) ? ic(e[0], e[1]) : ec(e) : Sp(e);
  21105. }
  21106. function va(e) {
  21107. if (!Fn(e))
  21108. return Ef(e);
  21109. var M = [];
  21110. for (var K in Ce(e))
  21111. Se.call(e, K) && K != "constructor" && M.push(K);
  21112. return M;
  21113. }
  21114. function Tg(e) {
  21115. if (!Ie(e))
  21116. return lm(e);
  21117. var M = Fn(e), K = [];
  21118. for (var ot in e)
  21119. ot == "constructor" && (M || !Se.call(e, ot)) || K.push(ot);
  21120. return K;
  21121. }
  21122. function xa(e, M) {
  21123. return e < M;
  21124. }
  21125. function tc(e, M) {
  21126. var K = -1, ot = si(e) ? At(e.length) : [];
  21127. return Sr(e, function(ut, mt, xt) {
  21128. ot[++K] = M(ut, mt, xt);
  21129. }), ot;
  21130. }
  21131. function ec(e) {
  21132. var M = Ia(e);
  21133. return M.length == 1 && M[0][2] ? Rc(M[0][0], M[0][1]) : function(K) {
  21134. return K === e || ya(K, e, M);
  21135. };
  21136. }
  21137. function ic(e, M) {
  21138. return Na(e) && Ic(M) ? Rc(Gi(e), M) : function(K) {
  21139. var ot = Ua(K, e);
  21140. return ot === E && ot === M ? Va(K, e) : Xn(M, ot, v | d);
  21141. };
  21142. }
  21143. function jo(e, M, K, ot, ut) {
  21144. e !== M && da(M, function(mt, xt) {
  21145. if (ut || (ut = new _i()), Ie(mt))
  21146. Pg(e, M, xt, K, jo, ot, ut);
  21147. else {
  21148. var bt = ot ? ot(ja(e, xt), mt, xt + "", e, M, ut) : E;
  21149. bt === E && (bt = mt), pa(e, xt, bt);
  21150. }
  21151. }, ai);
  21152. }
  21153. function Pg(e, M, K, ot, ut, mt, xt) {
  21154. var bt = ja(e, K), Mt = ja(M, K), It = xt.get(Mt);
  21155. if (It) {
  21156. pa(e, K, It);
  21157. return;
  21158. }
  21159. var Rt = mt ? mt(bt, Mt, K + "", e, M, xt) : E, Bt = Rt === E;
  21160. if (Bt) {
  21161. var Yt = ie(Mt), Ut = !Yt && kr(Mt), Qt = !Yt && !Ut && pn(Mt);
  21162. Rt = Mt, Yt || Ut || Qt ? ie(bt) ? Rt = bt : Be(bt) ? Rt = oi(bt) : Ut ? (Bt = !1, Rt = fc(Mt, !0)) : Qt ? (Bt = !1, Rt = gc(Mt, !0)) : Rt = [] : Vn(Mt) || Gr(Mt) ? (Rt = bt, Gr(bt) ? Rt = pp(bt) : (!Ie(bt) || nr(bt)) && (Rt = Dc(Mt))) : Bt = !1;
  21163. }
  21164. Bt && (xt.set(Mt, Rt), ut(Rt, Mt, ot, mt, xt), xt.delete(Mt)), pa(e, K, Rt);
  21165. }
  21166. function rc(e, M) {
  21167. var K = e.length;
  21168. if (K)
  21169. return M += M < 0 ? K : 0, rr(M, K) ? e[M] : E;
  21170. }
  21171. function nc(e, M, K) {
  21172. M.length ? M = Ee(M, function(mt) {
  21173. return ie(mt) ? function(xt) {
  21174. return zr(xt, mt.length === 1 ? mt[0] : mt);
  21175. } : mt;
  21176. }) : M = [hi];
  21177. var ot = -1;
  21178. M = Ee(M, ui(qt()));
  21179. var ut = tc(e, function(mt, xt, bt) {
  21180. var Mt = Ee(M, function(It) {
  21181. return It(mt);
  21182. });
  21183. return { criteria: Mt, index: ++ot, value: mt };
  21184. });
  21185. return tf(ut, function(mt, xt) {
  21186. return Yg(mt, xt, K);
  21187. });
  21188. }
  21189. function Eg(e, M) {
  21190. return oc(e, M, function(K, ot) {
  21191. return Va(e, ot);
  21192. });
  21193. }
  21194. function oc(e, M, K) {
  21195. for (var ot = -1, ut = M.length, mt = {}; ++ot < ut; ) {
  21196. var xt = M[ot], bt = zr(e, xt);
  21197. K(bt, xt) && Gn(mt, Mr(xt, e), bt);
  21198. }
  21199. return mt;
  21200. }
  21201. function Og(e) {
  21202. return function(M) {
  21203. return zr(M, e);
  21204. };
  21205. }
  21206. function ba(e, M, K, ot) {
  21207. var ut = ot ? Qd : Qr, mt = -1, xt = M.length, bt = e;
  21208. for (e === M && (M = oi(M)), K && (bt = Ee(e, ui(K))); ++mt < xt; )
  21209. for (var Mt = 0, It = M[mt], Rt = K ? K(It) : It; (Mt = ut(bt, Rt, Mt, ot)) > -1; )
  21210. bt !== e && Po.call(bt, Mt, 1), Po.call(e, Mt, 1);
  21211. return e;
  21212. }
  21213. function sc(e, M) {
  21214. for (var K = e ? M.length : 0, ot = K - 1; K--; ) {
  21215. var ut = M[K];
  21216. if (K == ot || ut !== mt) {
  21217. var mt = ut;
  21218. rr(ut) ? Po.call(e, ut, 1) : Ca(e, ut);
  21219. }
  21220. }
  21221. return e;
  21222. }
  21223. function Sa(e, M) {
  21224. return e + Lo(zl() * (M - e + 1));
  21225. }
  21226. function Lg(e, M, K, ot) {
  21227. for (var ut = -1, mt = Ye(Oo((M - e) / (K || 1)), 0), xt = At(mt); mt--; )
  21228. xt[ot ? mt : ++ut] = e, e += K;
  21229. return xt;
  21230. }
  21231. function wa(e, M) {
  21232. var K = "";
  21233. if (!e || M < 1 || M > _)
  21234. return K;
  21235. do
  21236. M % 2 && (K += e), M = Lo(M / 2), M && (e += e);
  21237. while (M);
  21238. return K;
  21239. }
  21240. function ae(e, M) {
  21241. return Wa(Nc(e, M, hi), e + "");
  21242. }
  21243. function _g(e) {
  21244. return Gl(un(e));
  21245. }
  21246. function Dg(e, M) {
  21247. var K = un(e);
  21248. return $o(K, Wr(M, 0, K.length));
  21249. }
  21250. function Gn(e, M, K, ot) {
  21251. if (!Ie(e))
  21252. return e;
  21253. M = Mr(M, e);
  21254. for (var ut = -1, mt = M.length, xt = mt - 1, bt = e; bt != null && ++ut < mt; ) {
  21255. var Mt = Gi(M[ut]), It = K;
  21256. if (Mt === "__proto__" || Mt === "constructor" || Mt === "prototype")
  21257. return e;
  21258. if (ut != xt) {
  21259. var Rt = bt[Mt];
  21260. It = ot ? ot(Rt, Mt, bt) : E, It === E && (It = Ie(Rt) ? Rt : rr(M[ut + 1]) ? [] : {});
  21261. }
  21262. Wn(bt, Mt, It), bt = bt[Mt];
  21263. }
  21264. return e;
  21265. }
  21266. var ac = _o ? function(e, M) {
  21267. return _o.set(e, M), e;
  21268. } : hi, Ig = Eo ? function(e, M) {
  21269. return Eo(e, "toString", {
  21270. configurable: !0,
  21271. enumerable: !1,
  21272. value: Za(M),
  21273. writable: !0
  21274. });
  21275. } : hi;
  21276. function Rg(e) {
  21277. return $o(un(e));
  21278. }
  21279. function Ci(e, M, K) {
  21280. var ot = -1, ut = e.length;
  21281. M < 0 && (M = -M > ut ? 0 : ut + M), K = K > ut ? ut : K, K < 0 && (K += ut), ut = M > K ? 0 : K - M >>> 0, M >>>= 0;
  21282. for (var mt = At(ut); ++ot < ut; )
  21283. mt[ot] = e[ot + M];
  21284. return mt;
  21285. }
  21286. function Ng(e, M) {
  21287. var K;
  21288. return Sr(e, function(ot, ut, mt) {
  21289. return K = M(ot, ut, mt), !K;
  21290. }), !!K;
  21291. }
  21292. function Wo(e, M, K) {
  21293. var ot = 0, ut = e == null ? ot : e.length;
  21294. if (typeof M == "number" && M === M && ut <= g) {
  21295. for (; ot < ut; ) {
  21296. var mt = ot + ut >>> 1, xt = e[mt];
  21297. xt !== null && !fi(xt) && (K ? xt <= M : xt < M) ? ot = mt + 1 : ut = mt;
  21298. }
  21299. return ut;
  21300. }
  21301. return Ma(e, M, hi, K);
  21302. }
  21303. function Ma(e, M, K, ot) {
  21304. var ut = 0, mt = e == null ? 0 : e.length;
  21305. if (mt === 0)
  21306. return 0;
  21307. M = K(M);
  21308. for (var xt = M !== M, bt = M === null, Mt = fi(M), It = M === E; ut < mt; ) {
  21309. var Rt = Lo((ut + mt) / 2), Bt = K(e[Rt]), Yt = Bt !== E, Ut = Bt === null, Qt = Bt === Bt, se = fi(Bt);
  21310. if (xt)
  21311. var te = ot || Qt;
  21312. else
  21313. It ? te = Qt && (ot || Yt) : bt ? te = Qt && Yt && (ot || !Ut) : Mt ? te = Qt && Yt && !Ut && (ot || !se) : Ut || se ? te = !1 : te = ot ? Bt <= M : Bt < M;
  21314. te ? ut = Rt + 1 : mt = Rt;
  21315. }
  21316. return Ze(mt, X);
  21317. }
  21318. function hc(e, M) {
  21319. for (var K = -1, ot = e.length, ut = 0, mt = []; ++K < ot; ) {
  21320. var xt = e[K], bt = M ? M(xt) : xt;
  21321. if (!K || !Di(bt, Mt)) {
  21322. var Mt = bt;
  21323. mt[ut++] = xt === 0 ? 0 : xt;
  21324. }
  21325. }
  21326. return mt;
  21327. }
  21328. function lc(e) {
  21329. return typeof e == "number" ? e : fi(e) ? B : +e;
  21330. }
  21331. function di(e) {
  21332. if (typeof e == "string")
  21333. return e;
  21334. if (ie(e))
  21335. return Ee(e, di) + "";
  21336. if (fi(e))
  21337. return Yl ? Yl.call(e) : "";
  21338. var M = e + "";
  21339. return M == "0" && 1 / e == -A ? "-0" : M;
  21340. }
  21341. function wr(e, M, K) {
  21342. var ot = -1, ut = vo, mt = e.length, xt = !0, bt = [], Mt = bt;
  21343. if (K)
  21344. xt = !1, ut = qs;
  21345. else if (mt >= y) {
  21346. var It = M ? null : Vg(e);
  21347. if (It)
  21348. return bo(It);
  21349. xt = !1, ut = Dn, Mt = new jr();
  21350. } else
  21351. Mt = M ? [] : bt;
  21352. t:
  21353. for (; ++ot < mt; ) {
  21354. var Rt = e[ot], Bt = M ? M(Rt) : Rt;
  21355. if (Rt = K || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  21356. for (var Yt = Mt.length; Yt--; )
  21357. if (Mt[Yt] === Bt)
  21358. continue t;
  21359. M && Mt.push(Bt), bt.push(Rt);
  21360. } else
  21361. ut(Mt, Bt, K) || (Mt !== bt && Mt.push(Bt), bt.push(Rt));
  21362. }
  21363. return bt;
  21364. }
  21365. function Ca(e, M) {
  21366. return M = Mr(M, e), e = Bc(e, M), e == null || delete e[Gi(ki(M))];
  21367. }
  21368. function cc(e, M, K, ot) {
  21369. return Gn(e, M, K(zr(e, M)), ot);
  21370. }
  21371. function zo(e, M, K, ot) {
  21372. for (var ut = e.length, mt = ot ? ut : -1; (ot ? mt-- : ++mt < ut) && M(e[mt], mt, e); )
  21373. ;
  21374. return K ? Ci(e, ot ? 0 : mt, ot ? mt + 1 : ut) : Ci(e, ot ? mt + 1 : 0, ot ? ut : mt);
  21375. }
  21376. function pc(e, M) {
  21377. var K = e;
  21378. return K instanceof ce && (K = K.value()), Qs(M, function(ot, ut) {
  21379. return ut.func.apply(ut.thisArg, vr([ot], ut.args));
  21380. }, K);
  21381. }
  21382. function ka(e, M, K) {
  21383. var ot = e.length;
  21384. if (ot < 2)
  21385. return ot ? wr(e[0]) : [];
  21386. for (var ut = -1, mt = At(ot); ++ut < ot; )
  21387. for (var xt = e[ut], bt = -1; ++bt < ot; )
  21388. bt != ut && (mt[ut] = zn(mt[ut] || xt, e[bt], M, K));
  21389. return wr(Ve(mt, 1), M, K);
  21390. }
  21391. function uc(e, M, K) {
  21392. for (var ot = -1, ut = e.length, mt = M.length, xt = {}; ++ot < ut; ) {
  21393. var bt = ot < mt ? M[ot] : E;
  21394. K(xt, e[ot], bt);
  21395. }
  21396. return xt;
  21397. }
  21398. function Aa(e) {
  21399. return Be(e) ? e : [];
  21400. }
  21401. function Ta(e) {
  21402. return typeof e == "function" ? e : hi;
  21403. }
  21404. function Mr(e, M) {
  21405. return ie(e) ? e : Na(e, M) ? [e] : Yc(xe(e));
  21406. }
  21407. var Bg = ae;
  21408. function Cr(e, M, K) {
  21409. var ot = e.length;
  21410. return K = K === E ? ot : K, !M && K >= ot ? e : Ci(e, M, K);
  21411. }
  21412. var dc = Cf || function(e) {
  21413. return Ue.clearTimeout(e);
  21414. };
  21415. function fc(e, M) {
  21416. if (M)
  21417. return e.slice();
  21418. var K = e.length, ot = Rl ? Rl(K) : new e.constructor(K);
  21419. return e.copy(ot), ot;
  21420. }
  21421. function Pa(e) {
  21422. var M = new e.constructor(e.byteLength);
  21423. return new Ao(M).set(new Ao(e)), M;
  21424. }
  21425. function jg(e, M) {
  21426. var K = M ? Pa(e.buffer) : e.buffer;
  21427. return new e.constructor(K, e.byteOffset, e.byteLength);
  21428. }
  21429. function Wg(e) {
  21430. var M = new e.constructor(e.source, ue.exec(e));
  21431. return M.lastIndex = e.lastIndex, M;
  21432. }
  21433. function zg(e) {
  21434. return jn ? Ce(jn.call(e)) : {};
  21435. }
  21436. function gc(e, M) {
  21437. var K = M ? Pa(e.buffer) : e.buffer;
  21438. return new e.constructor(K, e.byteOffset, e.length);
  21439. }
  21440. function mc(e, M) {
  21441. if (e !== M) {
  21442. var K = e !== E, ot = e === null, ut = e === e, mt = fi(e), xt = M !== E, bt = M === null, Mt = M === M, It = fi(M);
  21443. if (!bt && !It && !mt && e > M || mt && xt && Mt && !bt && !It || ot && xt && Mt || !K && Mt || !ut)
  21444. return 1;
  21445. if (!ot && !mt && !It && e < M || It && K && ut && !ot && !mt || bt && K && ut || !xt && ut || !Mt)
  21446. return -1;
  21447. }
  21448. return 0;
  21449. }
  21450. function Yg(e, M, K) {
  21451. for (var ot = -1, ut = e.criteria, mt = M.criteria, xt = ut.length, bt = K.length; ++ot < xt; ) {
  21452. var Mt = mc(ut[ot], mt[ot]);
  21453. if (Mt) {
  21454. if (ot >= bt)
  21455. return Mt;
  21456. var It = K[ot];
  21457. return Mt * (It == "desc" ? -1 : 1);
  21458. }
  21459. }
  21460. return e.index - M.index;
  21461. }
  21462. function yc(e, M, K, ot) {
  21463. for (var ut = -1, mt = e.length, xt = K.length, bt = -1, Mt = M.length, It = Ye(mt - xt, 0), Rt = At(Mt + It), Bt = !ot; ++bt < Mt; )
  21464. Rt[bt] = M[bt];
  21465. for (; ++ut < xt; )
  21466. (Bt || ut < mt) && (Rt[K[ut]] = e[ut]);
  21467. for (; It--; )
  21468. Rt[bt++] = e[ut++];
  21469. return Rt;
  21470. }
  21471. function vc(e, M, K, ot) {
  21472. for (var ut = -1, mt = e.length, xt = -1, bt = K.length, Mt = -1, It = M.length, Rt = Ye(mt - bt, 0), Bt = At(Rt + It), Yt = !ot; ++ut < Rt; )
  21473. Bt[ut] = e[ut];
  21474. for (var Ut = ut; ++Mt < It; )
  21475. Bt[Ut + Mt] = M[Mt];
  21476. for (; ++xt < bt; )
  21477. (Yt || ut < mt) && (Bt[Ut + K[xt]] = e[ut++]);
  21478. return Bt;
  21479. }
  21480. function oi(e, M) {
  21481. var K = -1, ot = e.length;
  21482. for (M || (M = At(ot)); ++K < ot; )
  21483. M[K] = e[K];
  21484. return M;
  21485. }
  21486. function Xi(e, M, K, ot) {
  21487. var ut = !K;
  21488. K || (K = {});
  21489. for (var mt = -1, xt = M.length; ++mt < xt; ) {
  21490. var bt = M[mt], Mt = ot ? ot(K[bt], e[bt], bt, K, e) : E;
  21491. Mt === E && (Mt = e[bt]), ut ? tr(K, bt, Mt) : Wn(K, bt, Mt);
  21492. }
  21493. return K;
  21494. }
  21495. function Xg(e, M) {
  21496. return Xi(e, Ra(e), M);
  21497. }
  21498. function Gg(e, M) {
  21499. return Xi(e, Lc(e), M);
  21500. }
  21501. function Yo(e, M) {
  21502. return function(K, ot) {
  21503. var ut = ie(K) ? Vd : pg, mt = M ? M() : {};
  21504. return ut(K, e, qt(ot, 2), mt);
  21505. };
  21506. }
  21507. function hn(e) {
  21508. return ae(function(M, K) {
  21509. var ot = -1, ut = K.length, mt = ut > 1 ? K[ut - 1] : E, xt = ut > 2 ? K[2] : E;
  21510. for (mt = e.length > 3 && typeof mt == "function" ? (ut--, mt) : E, xt && ri(K[0], K[1], xt) && (mt = ut < 3 ? E : mt, ut = 1), M = Ce(M); ++ot < ut; ) {
  21511. var bt = K[ot];
  21512. bt && e(M, bt, ot, mt);
  21513. }
  21514. return M;
  21515. });
  21516. }
  21517. function xc(e, M) {
  21518. return function(K, ot) {
  21519. if (K == null)
  21520. return K;
  21521. if (!si(K))
  21522. return e(K, ot);
  21523. for (var ut = K.length, mt = M ? ut : -1, xt = Ce(K); (M ? mt-- : ++mt < ut) && ot(xt[mt], mt, xt) !== !1; )
  21524. ;
  21525. return K;
  21526. };
  21527. }
  21528. function bc(e) {
  21529. return function(M, K, ot) {
  21530. for (var ut = -1, mt = Ce(M), xt = ot(M), bt = xt.length; bt--; ) {
  21531. var Mt = xt[e ? bt : ++ut];
  21532. if (K(mt[Mt], Mt, mt) === !1)
  21533. break;
  21534. }
  21535. return M;
  21536. };
  21537. }
  21538. function Hg(e, M, K) {
  21539. var ot = M & u, ut = Hn(e);
  21540. function mt() {
  21541. var xt = this && this !== Ue && this instanceof mt ? ut : e;
  21542. return xt.apply(ot ? K : this, arguments);
  21543. }
  21544. return mt;
  21545. }
  21546. function Sc(e) {
  21547. return function(M) {
  21548. M = xe(M);
  21549. var K = tn(M) ? Li(M) : E, ot = K ? K[0] : M.charAt(0), ut = K ? Cr(K, 1).join("") : M.slice(1);
  21550. return ot[e]() + ut;
  21551. };
  21552. }
  21553. function ln(e) {
  21554. return function(M) {
  21555. return Qs(xp(vp(M).replace(Dd, "")), e, "");
  21556. };
  21557. }
  21558. function Hn(e) {
  21559. return function() {
  21560. var M = arguments;
  21561. switch (M.length) {
  21562. case 0:
  21563. return new e();
  21564. case 1:
  21565. return new e(M[0]);
  21566. case 2:
  21567. return new e(M[0], M[1]);
  21568. case 3:
  21569. return new e(M[0], M[1], M[2]);
  21570. case 4:
  21571. return new e(M[0], M[1], M[2], M[3]);
  21572. case 5:
  21573. return new e(M[0], M[1], M[2], M[3], M[4]);
  21574. case 6:
  21575. return new e(M[0], M[1], M[2], M[3], M[4], M[5]);
  21576. case 7:
  21577. return new e(M[0], M[1], M[2], M[3], M[4], M[5], M[6]);
  21578. }
  21579. var K = an(e.prototype), ot = e.apply(K, M);
  21580. return Ie(ot) ? ot : K;
  21581. };
  21582. }
  21583. function Fg(e, M, K) {
  21584. var ot = Hn(e);
  21585. function ut() {
  21586. for (var mt = arguments.length, xt = At(mt), bt = mt, Mt = cn(ut); bt--; )
  21587. xt[bt] = arguments[bt];
  21588. var It = mt < 3 && xt[0] !== Mt && xt[mt - 1] !== Mt ? [] : xr(xt, Mt);
  21589. if (mt -= It.length, mt < K)
  21590. return Ac(
  21591. e,
  21592. M,
  21593. Xo,
  21594. ut.placeholder,
  21595. E,
  21596. xt,
  21597. It,
  21598. E,
  21599. E,
  21600. K - mt
  21601. );
  21602. var Rt = this && this !== Ue && this instanceof ut ? ot : e;
  21603. return pi(Rt, this, xt);
  21604. }
  21605. return ut;
  21606. }
  21607. function wc(e) {
  21608. return function(M, K, ot) {
  21609. var ut = Ce(M);
  21610. if (!si(M)) {
  21611. var mt = qt(K, 3);
  21612. M = He(M), K = function(bt) {
  21613. return mt(ut[bt], bt, ut);
  21614. };
  21615. }
  21616. var xt = e(M, K, ot);
  21617. return xt > -1 ? ut[mt ? M[xt] : xt] : E;
  21618. };
  21619. }
  21620. function Mc(e) {
  21621. return ir(function(M) {
  21622. var K = M.length, ot = K, ut = wi.prototype.thru;
  21623. for (e && M.reverse(); ot--; ) {
  21624. var mt = M[ot];
  21625. if (typeof mt != "function")
  21626. throw new Si(I);
  21627. if (ut && !xt && Uo(mt) == "wrapper")
  21628. var xt = new wi([], !0);
  21629. }
  21630. for (ot = xt ? ot : K; ++ot < K; ) {
  21631. mt = M[ot];
  21632. var bt = Uo(mt), Mt = bt == "wrapper" ? Da(mt) : E;
  21633. Mt && Ba(Mt[0]) && Mt[1] == (x | N | b | a) && !Mt[4].length && Mt[9] == 1 ? xt = xt[Uo(Mt[0])].apply(xt, Mt[3]) : xt = mt.length == 1 && Ba(mt) ? xt[bt]() : xt.thru(mt);
  21634. }
  21635. return function() {
  21636. var It = arguments, Rt = It[0];
  21637. if (xt && It.length == 1 && ie(Rt))
  21638. return xt.plant(Rt).value();
  21639. for (var Bt = 0, Yt = K ? M[Bt].apply(this, It) : Rt; ++Bt < K; )
  21640. Yt = M[Bt].call(this, Yt);
  21641. return Yt;
  21642. };
  21643. });
  21644. }
  21645. function Xo(e, M, K, ot, ut, mt, xt, bt, Mt, It) {
  21646. var Rt = M & x, Bt = M & u, Yt = M & P, Ut = M & (N | C), Qt = M & c, se = Yt ? E : Hn(e);
  21647. function te() {
  21648. for (var le = arguments.length, pe = At(le), gi = le; gi--; )
  21649. pe[gi] = arguments[gi];
  21650. if (Ut)
  21651. var ni = cn(te), mi = rf(pe, ni);
  21652. if (ot && (pe = yc(pe, ot, ut, Ut)), mt && (pe = vc(pe, mt, xt, Ut)), le -= mi, Ut && le < It) {
  21653. var je = xr(pe, ni);
  21654. return Ac(
  21655. e,
  21656. M,
  21657. Xo,
  21658. te.placeholder,
  21659. K,
  21660. pe,
  21661. je,
  21662. bt,
  21663. Mt,
  21664. It - le
  21665. );
  21666. }
  21667. var Ii = Bt ? K : this, sr = Yt ? Ii[e] : e;
  21668. return le = pe.length, bt ? pe = pm(pe, bt) : Qt && le > 1 && pe.reverse(), Rt && Mt < le && (pe.length = Mt), this && this !== Ue && this instanceof te && (sr = se || Hn(sr)), sr.apply(Ii, pe);
  21669. }
  21670. return te;
  21671. }
  21672. function Cc(e, M) {
  21673. return function(K, ot) {
  21674. return xg(K, e, M(ot), {});
  21675. };
  21676. }
  21677. function Go(e, M) {
  21678. return function(K, ot) {
  21679. var ut;
  21680. if (K === E && ot === E)
  21681. return M;
  21682. if (K !== E && (ut = K), ot !== E) {
  21683. if (ut === E)
  21684. return ot;
  21685. typeof K == "string" || typeof ot == "string" ? (K = di(K), ot = di(ot)) : (K = lc(K), ot = lc(ot)), ut = e(K, ot);
  21686. }
  21687. return ut;
  21688. };
  21689. }
  21690. function Ea(e) {
  21691. return ir(function(M) {
  21692. return M = Ee(M, ui(qt())), ae(function(K) {
  21693. var ot = this;
  21694. return e(M, function(ut) {
  21695. return pi(ut, ot, K);
  21696. });
  21697. });
  21698. });
  21699. }
  21700. function Ho(e, M) {
  21701. M = M === E ? " " : di(M);
  21702. var K = M.length;
  21703. if (K < 2)
  21704. return K ? wa(M, e) : M;
  21705. var ot = wa(M, Oo(e / en(M)));
  21706. return tn(M) ? Cr(Li(ot), 0, e).join("") : ot.slice(0, e);
  21707. }
  21708. function Ug(e, M, K, ot) {
  21709. var ut = M & u, mt = Hn(e);
  21710. function xt() {
  21711. for (var bt = -1, Mt = arguments.length, It = -1, Rt = ot.length, Bt = At(Rt + Mt), Yt = this && this !== Ue && this instanceof xt ? mt : e; ++It < Rt; )
  21712. Bt[It] = ot[It];
  21713. for (; Mt--; )
  21714. Bt[It++] = arguments[++bt];
  21715. return pi(Yt, ut ? K : this, Bt);
  21716. }
  21717. return xt;
  21718. }
  21719. function kc(e) {
  21720. return function(M, K, ot) {
  21721. return ot && typeof ot != "number" && ri(M, K, ot) && (K = ot = E), M = or(M), K === E ? (K = M, M = 0) : K = or(K), ot = ot === E ? M < K ? 1 : -1 : or(ot), Lg(M, K, ot, e);
  21722. };
  21723. }
  21724. function Fo(e) {
  21725. return function(M, K) {
  21726. return typeof M == "string" && typeof K == "string" || (M = Ai(M), K = Ai(K)), e(M, K);
  21727. };
  21728. }
  21729. function Ac(e, M, K, ot, ut, mt, xt, bt, Mt, It) {
  21730. var Rt = M & N, Bt = Rt ? xt : E, Yt = Rt ? E : xt, Ut = Rt ? mt : E, Qt = Rt ? E : mt;
  21731. M |= Rt ? b : w, M &= ~(Rt ? w : b), M & O || (M &= ~(u | P));
  21732. var se = [
  21733. e,
  21734. M,
  21735. ut,
  21736. Ut,
  21737. Bt,
  21738. Qt,
  21739. Yt,
  21740. bt,
  21741. Mt,
  21742. It
  21743. ], te = K.apply(E, se);
  21744. return Ba(e) && jc(te, se), te.placeholder = ot, Wc(te, e, M);
  21745. }
  21746. function Oa(e) {
  21747. var M = ze[e];
  21748. return function(K, ot) {
  21749. if (K = Ai(K), ot = ot == null ? 0 : Ze(ne(ot), 292), ot && Wl(K)) {
  21750. var ut = (xe(K) + "e").split("e"), mt = M(ut[0] + "e" + (+ut[1] + ot));
  21751. return ut = (xe(mt) + "e").split("e"), +(ut[0] + "e" + (+ut[1] - ot));
  21752. }
  21753. return M(K);
  21754. };
  21755. }
  21756. var Vg = on && 1 / bo(new on([, -0]))[1] == A ? function(e) {
  21757. return new on(e);
  21758. } : qa;
  21759. function Tc(e) {
  21760. return function(M) {
  21761. var K = Ke(M);
  21762. return K == it ? sa(M) : K == lt ? cf(M) : ef(M, e(M));
  21763. };
  21764. }
  21765. function er(e, M, K, ot, ut, mt, xt, bt) {
  21766. var Mt = M & P;
  21767. if (!Mt && typeof e != "function")
  21768. throw new Si(I);
  21769. var It = ot ? ot.length : 0;
  21770. if (It || (M &= ~(b | w), ot = ut = E), xt = xt === E ? xt : Ye(ne(xt), 0), bt = bt === E ? bt : ne(bt), It -= ut ? ut.length : 0, M & w) {
  21771. var Rt = ot, Bt = ut;
  21772. ot = ut = E;
  21773. }
  21774. var Yt = Mt ? E : Da(e), Ut = [
  21775. e,
  21776. M,
  21777. K,
  21778. ot,
  21779. ut,
  21780. Rt,
  21781. Bt,
  21782. mt,
  21783. xt,
  21784. bt
  21785. ];
  21786. if (Yt && hm(Ut, Yt), e = Ut[0], M = Ut[1], K = Ut[2], ot = Ut[3], ut = Ut[4], bt = Ut[9] = Ut[9] === E ? Mt ? 0 : e.length : Ye(Ut[9] - It, 0), !bt && M & (N | C) && (M &= ~(N | C)), !M || M == u)
  21787. var Qt = Hg(e, M, K);
  21788. else
  21789. M == N || M == C ? Qt = Fg(e, M, bt) : (M == b || M == (u | b)) && !ut.length ? Qt = Ug(e, M, K, ot) : Qt = Xo.apply(E, Ut);
  21790. var se = Yt ? ac : jc;
  21791. return Wc(se(Qt, Ut), e, M);
  21792. }
  21793. function Pc(e, M, K, ot) {
  21794. return e === E || Di(e, nn[K]) && !Se.call(ot, K) ? M : e;
  21795. }
  21796. function Ec(e, M, K, ot, ut, mt) {
  21797. return Ie(e) && Ie(M) && (mt.set(M, e), jo(e, M, E, Ec, mt), mt.delete(M)), e;
  21798. }
  21799. function $g(e) {
  21800. return Vn(e) ? E : e;
  21801. }
  21802. function Oc(e, M, K, ot, ut, mt) {
  21803. var xt = K & v, bt = e.length, Mt = M.length;
  21804. if (bt != Mt && !(xt && Mt > bt))
  21805. return !1;
  21806. var It = mt.get(e), Rt = mt.get(M);
  21807. if (It && Rt)
  21808. return It == M && Rt == e;
  21809. var Bt = -1, Yt = !0, Ut = K & d ? new jr() : E;
  21810. for (mt.set(e, M), mt.set(M, e); ++Bt < bt; ) {
  21811. var Qt = e[Bt], se = M[Bt];
  21812. if (ot)
  21813. var te = xt ? ot(se, Qt, Bt, M, e, mt) : ot(Qt, se, Bt, e, M, mt);
  21814. if (te !== E) {
  21815. if (te)
  21816. continue;
  21817. Yt = !1;
  21818. break;
  21819. }
  21820. if (Ut) {
  21821. if (!ta(M, function(le, pe) {
  21822. if (!Dn(Ut, pe) && (Qt === le || ut(Qt, le, K, ot, mt)))
  21823. return Ut.push(pe);
  21824. })) {
  21825. Yt = !1;
  21826. break;
  21827. }
  21828. } else if (!(Qt === se || ut(Qt, se, K, ot, mt))) {
  21829. Yt = !1;
  21830. break;
  21831. }
  21832. }
  21833. return mt.delete(e), mt.delete(M), Yt;
  21834. }
  21835. function Zg(e, M, K, ot, ut, mt, xt) {
  21836. switch (K) {
  21837. case yt:
  21838. if (e.byteLength != M.byteLength || e.byteOffset != M.byteOffset)
  21839. return !1;
  21840. e = e.buffer, M = M.buffer;
  21841. case pt:
  21842. return !(e.byteLength != M.byteLength || !mt(new Ao(e), new Ao(M)));
  21843. case Q:
  21844. case k:
  21845. case et:
  21846. return Di(+e, +M);
  21847. case z:
  21848. return e.name == M.name && e.message == M.message;
  21849. case dt:
  21850. case at:
  21851. return e == M + "";
  21852. case it:
  21853. var bt = sa;
  21854. case lt:
  21855. var Mt = ot & v;
  21856. if (bt || (bt = bo), e.size != M.size && !Mt)
  21857. return !1;
  21858. var It = xt.get(e);
  21859. if (It)
  21860. return It == M;
  21861. ot |= d, xt.set(e, M);
  21862. var Rt = Oc(bt(e), bt(M), ot, ut, mt, xt);
  21863. return xt.delete(e), Rt;
  21864. case J:
  21865. if (jn)
  21866. return jn.call(e) == jn.call(M);
  21867. }
  21868. return !1;
  21869. }
  21870. function Kg(e, M, K, ot, ut, mt) {
  21871. var xt = K & v, bt = La(e), Mt = bt.length, It = La(M), Rt = It.length;
  21872. if (Mt != Rt && !xt)
  21873. return !1;
  21874. for (var Bt = Mt; Bt--; ) {
  21875. var Yt = bt[Bt];
  21876. if (!(xt ? Yt in M : Se.call(M, Yt)))
  21877. return !1;
  21878. }
  21879. var Ut = mt.get(e), Qt = mt.get(M);
  21880. if (Ut && Qt)
  21881. return Ut == M && Qt == e;
  21882. var se = !0;
  21883. mt.set(e, M), mt.set(M, e);
  21884. for (var te = xt; ++Bt < Mt; ) {
  21885. Yt = bt[Bt];
  21886. var le = e[Yt], pe = M[Yt];
  21887. if (ot)
  21888. var gi = xt ? ot(pe, le, Yt, M, e, mt) : ot(le, pe, Yt, e, M, mt);
  21889. if (!(gi === E ? le === pe || ut(le, pe, K, ot, mt) : gi)) {
  21890. se = !1;
  21891. break;
  21892. }
  21893. te || (te = Yt == "constructor");
  21894. }
  21895. if (se && !te) {
  21896. var ni = e.constructor, mi = M.constructor;
  21897. ni != mi && "constructor" in e && "constructor" in M && !(typeof ni == "function" && ni instanceof ni && typeof mi == "function" && mi instanceof mi) && (se = !1);
  21898. }
  21899. return mt.delete(e), mt.delete(M), se;
  21900. }
  21901. function ir(e) {
  21902. return Wa(Nc(e, E, Fc), e + "");
  21903. }
  21904. function La(e) {
  21905. return Kl(e, He, Ra);
  21906. }
  21907. function _a(e) {
  21908. return Kl(e, ai, Lc);
  21909. }
  21910. var Da = _o ? function(e) {
  21911. return _o.get(e);
  21912. } : qa;
  21913. function Uo(e) {
  21914. for (var M = e.name + "", K = sn[M], ot = Se.call(sn, M) ? K.length : 0; ot--; ) {
  21915. var ut = K[ot], mt = ut.func;
  21916. if (mt == null || mt == e)
  21917. return ut.name;
  21918. }
  21919. return M;
  21920. }
  21921. function cn(e) {
  21922. var M = Se.call(ft, "placeholder") ? ft : e;
  21923. return M.placeholder;
  21924. }
  21925. function qt() {
  21926. var e = ft.iteratee || Ka;
  21927. return e = e === Ka ? Ql : e, arguments.length ? e(arguments[0], arguments[1]) : e;
  21928. }
  21929. function Vo(e, M) {
  21930. var K = e.__data__;
  21931. return nm(M) ? K[typeof M == "string" ? "string" : "hash"] : K.map;
  21932. }
  21933. function Ia(e) {
  21934. for (var M = He(e), K = M.length; K--; ) {
  21935. var ot = M[K], ut = e[ot];
  21936. M[K] = [ot, ut, Ic(ut)];
  21937. }
  21938. return M;
  21939. }
  21940. function Yr(e, M) {
  21941. var K = af(e, M);
  21942. return ql(K) ? K : E;
  21943. }
  21944. function Jg(e) {
  21945. var M = Se.call(e, Nr), K = e[Nr];
  21946. try {
  21947. e[Nr] = E;
  21948. var ot = !0;
  21949. } catch {
  21950. }
  21951. var ut = Co.call(e);
  21952. return ot && (M ? e[Nr] = K : delete e[Nr]), ut;
  21953. }
  21954. var Ra = ha ? function(e) {
  21955. return e == null ? [] : (e = Ce(e), yr(ha(e), function(M) {
  21956. return Bl.call(e, M);
  21957. }));
  21958. } : Qa, Lc = ha ? function(e) {
  21959. for (var M = []; e; )
  21960. vr(M, Ra(e)), e = To(e);
  21961. return M;
  21962. } : Qa, Ke = ii;
  21963. (la && Ke(new la(new ArrayBuffer(1))) != yt || Rn && Ke(new Rn()) != it || ca && Ke(ca.resolve()) != ct || on && Ke(new on()) != lt || Nn && Ke(new Nn()) != st) && (Ke = function(e) {
  21964. var M = ii(e), K = M == rt ? e.constructor : E, ot = K ? Xr(K) : "";
  21965. if (ot)
  21966. switch (ot) {
  21967. case Df:
  21968. return yt;
  21969. case If:
  21970. return it;
  21971. case Rf:
  21972. return ct;
  21973. case Nf:
  21974. return lt;
  21975. case Bf:
  21976. return st;
  21977. }
  21978. return M;
  21979. });
  21980. function qg(e, M, K) {
  21981. for (var ot = -1, ut = K.length; ++ot < ut; ) {
  21982. var mt = K[ot], xt = mt.size;
  21983. switch (mt.type) {
  21984. case "drop":
  21985. e += xt;
  21986. break;
  21987. case "dropRight":
  21988. M -= xt;
  21989. break;
  21990. case "take":
  21991. M = Ze(M, e + xt);
  21992. break;
  21993. case "takeRight":
  21994. e = Ye(e, M - xt);
  21995. break;
  21996. }
  21997. }
  21998. return { start: e, end: M };
  21999. }
  22000. function Qg(e) {
  22001. var M = e.match(Dr);
  22002. return M ? M[1].split(zi) : [];
  22003. }
  22004. function _c(e, M, K) {
  22005. M = Mr(M, e);
  22006. for (var ot = -1, ut = M.length, mt = !1; ++ot < ut; ) {
  22007. var xt = Gi(M[ot]);
  22008. if (!(mt = e != null && K(e, xt)))
  22009. break;
  22010. e = e[xt];
  22011. }
  22012. return mt || ++ot != ut ? mt : (ut = e == null ? 0 : e.length, !!ut && ts(ut) && rr(xt, ut) && (ie(e) || Gr(e)));
  22013. }
  22014. function tm(e) {
  22015. var M = e.length, K = new e.constructor(M);
  22016. return M && typeof e[0] == "string" && Se.call(e, "index") && (K.index = e.index, K.input = e.input), K;
  22017. }
  22018. function Dc(e) {
  22019. return typeof e.constructor == "function" && !Fn(e) ? an(To(e)) : {};
  22020. }
  22021. function em(e, M, K) {
  22022. var ot = e.constructor;
  22023. switch (M) {
  22024. case pt:
  22025. return Pa(e);
  22026. case Q:
  22027. case k:
  22028. return new ot(+e);
  22029. case yt:
  22030. return jg(e, K);
  22031. case vt:
  22032. case Ct:
  22033. case Pt:
  22034. case kt:
  22035. case St:
  22036. case Dt:
  22037. case Lt:
  22038. case Nt:
  22039. case Et:
  22040. return gc(e, K);
  22041. case it:
  22042. return new ot();
  22043. case et:
  22044. case at:
  22045. return new ot(e);
  22046. case dt:
  22047. return Wg(e);
  22048. case lt:
  22049. return new ot();
  22050. case J:
  22051. return zg(e);
  22052. }
  22053. }
  22054. function im(e, M) {
  22055. var K = M.length;
  22056. if (!K)
  22057. return e;
  22058. var ot = K - 1;
  22059. return M[ot] = (K > 1 ? "& " : "") + M[ot], M = M.join(K > 2 ? ", " : " "), e.replace(Hs, `{
  22060. /* [wrapped with ` + M + `] */
  22061. `);
  22062. }
  22063. function rm(e) {
  22064. return ie(e) || Gr(e) || !!(jl && e && e[jl]);
  22065. }
  22066. function rr(e, M) {
  22067. var K = typeof e;
  22068. return M = M ?? _, !!M && (K == "number" || K != "symbol" && fd.test(e)) && e > -1 && e % 1 == 0 && e < M;
  22069. }
  22070. function ri(e, M, K) {
  22071. if (!Ie(K))
  22072. return !1;
  22073. var ot = typeof M;
  22074. return (ot == "number" ? si(K) && rr(M, K.length) : ot == "string" && M in K) ? Di(K[M], e) : !1;
  22075. }
  22076. function Na(e, M) {
  22077. if (ie(e))
  22078. return !1;
  22079. var K = typeof e;
  22080. return K == "number" || K == "symbol" || K == "boolean" || e == null || fi(e) ? !0 : En.test(e) || !Pn.test(e) || M != null && e in Ce(M);
  22081. }
  22082. function nm(e) {
  22083. var M = typeof e;
  22084. return M == "string" || M == "number" || M == "symbol" || M == "boolean" ? e !== "__proto__" : e === null;
  22085. }
  22086. function Ba(e) {
  22087. var M = Uo(e), K = ft[M];
  22088. if (typeof K != "function" || !(M in ce.prototype))
  22089. return !1;
  22090. if (e === K)
  22091. return !0;
  22092. var ot = Da(K);
  22093. return !!ot && e === ot[0];
  22094. }
  22095. function om(e) {
  22096. return !!Il && Il in e;
  22097. }
  22098. var sm = wo ? nr : th;
  22099. function Fn(e) {
  22100. var M = e && e.constructor, K = typeof M == "function" && M.prototype || nn;
  22101. return e === K;
  22102. }
  22103. function Ic(e) {
  22104. return e === e && !Ie(e);
  22105. }
  22106. function Rc(e, M) {
  22107. return function(K) {
  22108. return K == null ? !1 : K[e] === M && (M !== E || e in Ce(K));
  22109. };
  22110. }
  22111. function am(e) {
  22112. var M = qo(e, function(ot) {
  22113. return K.size === U && K.clear(), ot;
  22114. }), K = M.cache;
  22115. return M;
  22116. }
  22117. function hm(e, M) {
  22118. var K = e[1], ot = M[1], ut = K | ot, mt = ut < (u | P | x), xt = ot == x && K == N || ot == x && K == a && e[7].length <= M[8] || ot == (x | a) && M[7].length <= M[8] && K == N;
  22119. if (!(mt || xt))
  22120. return e;
  22121. ot & u && (e[2] = M[2], ut |= K & u ? 0 : O);
  22122. var bt = M[3];
  22123. if (bt) {
  22124. var Mt = e[3];
  22125. e[3] = Mt ? yc(Mt, bt, M[4]) : bt, e[4] = Mt ? xr(e[3], H) : M[4];
  22126. }
  22127. return bt = M[5], bt && (Mt = e[5], e[5] = Mt ? vc(Mt, bt, M[6]) : bt, e[6] = Mt ? xr(e[5], H) : M[6]), bt = M[7], bt && (e[7] = bt), ot & x && (e[8] = e[8] == null ? M[8] : Ze(e[8], M[8])), e[9] == null && (e[9] = M[9]), e[0] = M[0], e[1] = ut, e;
  22128. }
  22129. function lm(e) {
  22130. var M = [];
  22131. if (e != null)
  22132. for (var K in Ce(e))
  22133. M.push(K);
  22134. return M;
  22135. }
  22136. function cm(e) {
  22137. return Co.call(e);
  22138. }
  22139. function Nc(e, M, K) {
  22140. return M = Ye(M === E ? e.length - 1 : M, 0), function() {
  22141. for (var ot = arguments, ut = -1, mt = Ye(ot.length - M, 0), xt = At(mt); ++ut < mt; )
  22142. xt[ut] = ot[M + ut];
  22143. ut = -1;
  22144. for (var bt = At(M + 1); ++ut < M; )
  22145. bt[ut] = ot[ut];
  22146. return bt[M] = K(xt), pi(e, this, bt);
  22147. };
  22148. }
  22149. function Bc(e, M) {
  22150. return M.length < 2 ? e : zr(e, Ci(M, 0, -1));
  22151. }
  22152. function pm(e, M) {
  22153. for (var K = e.length, ot = Ze(M.length, K), ut = oi(e); ot--; ) {
  22154. var mt = M[ot];
  22155. e[ot] = rr(mt, K) ? ut[mt] : E;
  22156. }
  22157. return e;
  22158. }
  22159. function ja(e, M) {
  22160. if (!(M === "constructor" && typeof e[M] == "function") && M != "__proto__")
  22161. return e[M];
  22162. }
  22163. var jc = zc(ac), Un = Af || function(e, M) {
  22164. return Ue.setTimeout(e, M);
  22165. }, Wa = zc(Ig);
  22166. function Wc(e, M, K) {
  22167. var ot = M + "";
  22168. return Wa(e, im(ot, um(Qg(ot), K)));
  22169. }
  22170. function zc(e) {
  22171. var M = 0, K = 0;
  22172. return function() {
  22173. var ot = Of(), ut = s - (ot - K);
  22174. if (K = ot, ut > 0) {
  22175. if (++M >= l)
  22176. return arguments[0];
  22177. } else
  22178. M = 0;
  22179. return e.apply(E, arguments);
  22180. };
  22181. }
  22182. function $o(e, M) {
  22183. var K = -1, ot = e.length, ut = ot - 1;
  22184. for (M = M === E ? ot : M; ++K < M; ) {
  22185. var mt = Sa(K, ut), xt = e[mt];
  22186. e[mt] = e[K], e[K] = xt;
  22187. }
  22188. return e.length = M, e;
  22189. }
  22190. var Yc = am(function(e) {
  22191. var M = [];
  22192. return e.charCodeAt(0) === 46 && M.push(""), e.replace($e, function(K, ot, ut, mt) {
  22193. M.push(ut ? mt.replace(Ir, "$1") : ot || K);
  22194. }), M;
  22195. });
  22196. function Gi(e) {
  22197. if (typeof e == "string" || fi(e))
  22198. return e;
  22199. var M = e + "";
  22200. return M == "0" && 1 / e == -A ? "-0" : M;
  22201. }
  22202. function Xr(e) {
  22203. if (e != null) {
  22204. try {
  22205. return Mo.call(e);
  22206. } catch {
  22207. }
  22208. try {
  22209. return e + "";
  22210. } catch {
  22211. }
  22212. }
  22213. return "";
  22214. }
  22215. function um(e, M) {
  22216. return bi(m, function(K) {
  22217. var ot = "_." + K[0];
  22218. M & K[1] && !vo(e, ot) && e.push(ot);
  22219. }), e.sort();
  22220. }
  22221. function Xc(e) {
  22222. if (e instanceof ce)
  22223. return e.clone();
  22224. var M = new wi(e.__wrapped__, e.__chain__);
  22225. return M.__actions__ = oi(e.__actions__), M.__index__ = e.__index__, M.__values__ = e.__values__, M;
  22226. }
  22227. function dm(e, M, K) {
  22228. (K ? ri(e, M, K) : M === E) ? M = 1 : M = Ye(ne(M), 0);
  22229. var ot = e == null ? 0 : e.length;
  22230. if (!ot || M < 1)
  22231. return [];
  22232. for (var ut = 0, mt = 0, xt = At(Oo(ot / M)); ut < ot; )
  22233. xt[mt++] = Ci(e, ut, ut += M);
  22234. return xt;
  22235. }
  22236. function fm(e) {
  22237. for (var M = -1, K = e == null ? 0 : e.length, ot = 0, ut = []; ++M < K; ) {
  22238. var mt = e[M];
  22239. mt && (ut[ot++] = mt);
  22240. }
  22241. return ut;
  22242. }
  22243. function gm() {
  22244. var e = arguments.length;
  22245. if (!e)
  22246. return [];
  22247. for (var M = At(e - 1), K = arguments[0], ot = e; ot--; )
  22248. M[ot - 1] = arguments[ot];
  22249. return vr(ie(K) ? oi(K) : [K], Ve(M, 1));
  22250. }
  22251. var mm = ae(function(e, M) {
  22252. return Be(e) ? zn(e, Ve(M, 1, Be, !0)) : [];
  22253. }), ym = ae(function(e, M) {
  22254. var K = ki(M);
  22255. return Be(K) && (K = E), Be(e) ? zn(e, Ve(M, 1, Be, !0), qt(K, 2)) : [];
  22256. }), vm = ae(function(e, M) {
  22257. var K = ki(M);
  22258. return Be(K) && (K = E), Be(e) ? zn(e, Ve(M, 1, Be, !0), E, K) : [];
  22259. });
  22260. function xm(e, M, K) {
  22261. var ot = e == null ? 0 : e.length;
  22262. return ot ? (M = K || M === E ? 1 : ne(M), Ci(e, M < 0 ? 0 : M, ot)) : [];
  22263. }
  22264. function bm(e, M, K) {
  22265. var ot = e == null ? 0 : e.length;
  22266. return ot ? (M = K || M === E ? 1 : ne(M), M = ot - M, Ci(e, 0, M < 0 ? 0 : M)) : [];
  22267. }
  22268. function Sm(e, M) {
  22269. return e && e.length ? zo(e, qt(M, 3), !0, !0) : [];
  22270. }
  22271. function wm(e, M) {
  22272. return e && e.length ? zo(e, qt(M, 3), !0) : [];
  22273. }
  22274. function Mm(e, M, K, ot) {
  22275. var ut = e == null ? 0 : e.length;
  22276. return ut ? (K && typeof K != "number" && ri(e, M, K) && (K = 0, ot = ut), gg(e, M, K, ot)) : [];
  22277. }
  22278. function Gc(e, M, K) {
  22279. var ot = e == null ? 0 : e.length;
  22280. if (!ot)
  22281. return -1;
  22282. var ut = K == null ? 0 : ne(K);
  22283. return ut < 0 && (ut = Ye(ot + ut, 0)), xo(e, qt(M, 3), ut);
  22284. }
  22285. function Hc(e, M, K) {
  22286. var ot = e == null ? 0 : e.length;
  22287. if (!ot)
  22288. return -1;
  22289. var ut = ot - 1;
  22290. return K !== E && (ut = ne(K), ut = K < 0 ? Ye(ot + ut, 0) : Ze(ut, ot - 1)), xo(e, qt(M, 3), ut, !0);
  22291. }
  22292. function Fc(e) {
  22293. var M = e == null ? 0 : e.length;
  22294. return M ? Ve(e, 1) : [];
  22295. }
  22296. function Cm(e) {
  22297. var M = e == null ? 0 : e.length;
  22298. return M ? Ve(e, A) : [];
  22299. }
  22300. function km(e, M) {
  22301. var K = e == null ? 0 : e.length;
  22302. return K ? (M = M === E ? 1 : ne(M), Ve(e, M)) : [];
  22303. }
  22304. function Am(e) {
  22305. for (var M = -1, K = e == null ? 0 : e.length, ot = {}; ++M < K; ) {
  22306. var ut = e[M];
  22307. ot[ut[0]] = ut[1];
  22308. }
  22309. return ot;
  22310. }
  22311. function Uc(e) {
  22312. return e && e.length ? e[0] : E;
  22313. }
  22314. function Tm(e, M, K) {
  22315. var ot = e == null ? 0 : e.length;
  22316. if (!ot)
  22317. return -1;
  22318. var ut = K == null ? 0 : ne(K);
  22319. return ut < 0 && (ut = Ye(ot + ut, 0)), Qr(e, M, ut);
  22320. }
  22321. function Pm(e) {
  22322. var M = e == null ? 0 : e.length;
  22323. return M ? Ci(e, 0, -1) : [];
  22324. }
  22325. var Em = ae(function(e) {
  22326. var M = Ee(e, Aa);
  22327. return M.length && M[0] === e[0] ? ma(M) : [];
  22328. }), Om = ae(function(e) {
  22329. var M = ki(e), K = Ee(e, Aa);
  22330. return M === ki(K) ? M = E : K.pop(), K.length && K[0] === e[0] ? ma(K, qt(M, 2)) : [];
  22331. }), Lm = ae(function(e) {
  22332. var M = ki(e), K = Ee(e, Aa);
  22333. return M = typeof M == "function" ? M : E, M && K.pop(), K.length && K[0] === e[0] ? ma(K, E, M) : [];
  22334. });
  22335. function _m(e, M) {
  22336. return e == null ? "" : Pf.call(e, M);
  22337. }
  22338. function ki(e) {
  22339. var M = e == null ? 0 : e.length;
  22340. return M ? e[M - 1] : E;
  22341. }
  22342. function Dm(e, M, K) {
  22343. var ot = e == null ? 0 : e.length;
  22344. if (!ot)
  22345. return -1;
  22346. var ut = ot;
  22347. return K !== E && (ut = ne(K), ut = ut < 0 ? Ye(ot + ut, 0) : Ze(ut, ot - 1)), M === M ? uf(e, M, ut) : xo(e, Al, ut, !0);
  22348. }
  22349. function Im(e, M) {
  22350. return e && e.length ? rc(e, ne(M)) : E;
  22351. }
  22352. var Rm = ae(Vc);
  22353. function Vc(e, M) {
  22354. return e && e.length && M && M.length ? ba(e, M) : e;
  22355. }
  22356. function Nm(e, M, K) {
  22357. return e && e.length && M && M.length ? ba(e, M, qt(K, 2)) : e;
  22358. }
  22359. function Bm(e, M, K) {
  22360. return e && e.length && M && M.length ? ba(e, M, E, K) : e;
  22361. }
  22362. var jm = ir(function(e, M) {
  22363. var K = e == null ? 0 : e.length, ot = ua(e, M);
  22364. return sc(e, Ee(M, function(ut) {
  22365. return rr(ut, K) ? +ut : ut;
  22366. }).sort(mc)), ot;
  22367. });
  22368. function Wm(e, M) {
  22369. var K = [];
  22370. if (!(e && e.length))
  22371. return K;
  22372. var ot = -1, ut = [], mt = e.length;
  22373. for (M = qt(M, 3); ++ot < mt; ) {
  22374. var xt = e[ot];
  22375. M(xt, ot, e) && (K.push(xt), ut.push(ot));
  22376. }
  22377. return sc(e, ut), K;
  22378. }
  22379. function za(e) {
  22380. return e == null ? e : _f.call(e);
  22381. }
  22382. function zm(e, M, K) {
  22383. var ot = e == null ? 0 : e.length;
  22384. return ot ? (K && typeof K != "number" && ri(e, M, K) ? (M = 0, K = ot) : (M = M == null ? 0 : ne(M), K = K === E ? ot : ne(K)), Ci(e, M, K)) : [];
  22385. }
  22386. function Ym(e, M) {
  22387. return Wo(e, M);
  22388. }
  22389. function Xm(e, M, K) {
  22390. return Ma(e, M, qt(K, 2));
  22391. }
  22392. function Gm(e, M) {
  22393. var K = e == null ? 0 : e.length;
  22394. if (K) {
  22395. var ot = Wo(e, M);
  22396. if (ot < K && Di(e[ot], M))
  22397. return ot;
  22398. }
  22399. return -1;
  22400. }
  22401. function Hm(e, M) {
  22402. return Wo(e, M, !0);
  22403. }
  22404. function Fm(e, M, K) {
  22405. return Ma(e, M, qt(K, 2), !0);
  22406. }
  22407. function Um(e, M) {
  22408. var K = e == null ? 0 : e.length;
  22409. if (K) {
  22410. var ot = Wo(e, M, !0) - 1;
  22411. if (Di(e[ot], M))
  22412. return ot;
  22413. }
  22414. return -1;
  22415. }
  22416. function Vm(e) {
  22417. return e && e.length ? hc(e) : [];
  22418. }
  22419. function $m(e, M) {
  22420. return e && e.length ? hc(e, qt(M, 2)) : [];
  22421. }
  22422. function Zm(e) {
  22423. var M = e == null ? 0 : e.length;
  22424. return M ? Ci(e, 1, M) : [];
  22425. }
  22426. function Km(e, M, K) {
  22427. return e && e.length ? (M = K || M === E ? 1 : ne(M), Ci(e, 0, M < 0 ? 0 : M)) : [];
  22428. }
  22429. function Jm(e, M, K) {
  22430. var ot = e == null ? 0 : e.length;
  22431. return ot ? (M = K || M === E ? 1 : ne(M), M = ot - M, Ci(e, M < 0 ? 0 : M, ot)) : [];
  22432. }
  22433. function qm(e, M) {
  22434. return e && e.length ? zo(e, qt(M, 3), !1, !0) : [];
  22435. }
  22436. function Qm(e, M) {
  22437. return e && e.length ? zo(e, qt(M, 3)) : [];
  22438. }
  22439. var ty = ae(function(e) {
  22440. return wr(Ve(e, 1, Be, !0));
  22441. }), ey = ae(function(e) {
  22442. var M = ki(e);
  22443. return Be(M) && (M = E), wr(Ve(e, 1, Be, !0), qt(M, 2));
  22444. }), iy = ae(function(e) {
  22445. var M = ki(e);
  22446. return M = typeof M == "function" ? M : E, wr(Ve(e, 1, Be, !0), E, M);
  22447. });
  22448. function ry(e) {
  22449. return e && e.length ? wr(e) : [];
  22450. }
  22451. function ny(e, M) {
  22452. return e && e.length ? wr(e, qt(M, 2)) : [];
  22453. }
  22454. function oy(e, M) {
  22455. return M = typeof M == "function" ? M : E, e && e.length ? wr(e, E, M) : [];
  22456. }
  22457. function Ya(e) {
  22458. if (!(e && e.length))
  22459. return [];
  22460. var M = 0;
  22461. return e = yr(e, function(K) {
  22462. if (Be(K))
  22463. return M = Ye(K.length, M), !0;
  22464. }), na(M, function(K) {
  22465. return Ee(e, ea(K));
  22466. });
  22467. }
  22468. function $c(e, M) {
  22469. if (!(e && e.length))
  22470. return [];
  22471. var K = Ya(e);
  22472. return M == null ? K : Ee(K, function(ot) {
  22473. return pi(M, E, ot);
  22474. });
  22475. }
  22476. var sy = ae(function(e, M) {
  22477. return Be(e) ? zn(e, M) : [];
  22478. }), ay = ae(function(e) {
  22479. return ka(yr(e, Be));
  22480. }), hy = ae(function(e) {
  22481. var M = ki(e);
  22482. return Be(M) && (M = E), ka(yr(e, Be), qt(M, 2));
  22483. }), ly = ae(function(e) {
  22484. var M = ki(e);
  22485. return M = typeof M == "function" ? M : E, ka(yr(e, Be), E, M);
  22486. }), cy = ae(Ya);
  22487. function py(e, M) {
  22488. return uc(e || [], M || [], Wn);
  22489. }
  22490. function uy(e, M) {
  22491. return uc(e || [], M || [], Gn);
  22492. }
  22493. var dy = ae(function(e) {
  22494. var M = e.length, K = M > 1 ? e[M - 1] : E;
  22495. return K = typeof K == "function" ? (e.pop(), K) : E, $c(e, K);
  22496. });
  22497. function Zc(e) {
  22498. var M = ft(e);
  22499. return M.__chain__ = !0, M;
  22500. }
  22501. function fy(e, M) {
  22502. return M(e), e;
  22503. }
  22504. function Zo(e, M) {
  22505. return M(e);
  22506. }
  22507. var gy = ir(function(e) {
  22508. var M = e.length, K = M ? e[0] : 0, ot = this.__wrapped__, ut = function(mt) {
  22509. return ua(mt, e);
  22510. };
  22511. return M > 1 || this.__actions__.length || !(ot instanceof ce) || !rr(K) ? this.thru(ut) : (ot = ot.slice(K, +K + (M ? 1 : 0)), ot.__actions__.push({
  22512. func: Zo,
  22513. args: [ut],
  22514. thisArg: E
  22515. }), new wi(ot, this.__chain__).thru(function(mt) {
  22516. return M && !mt.length && mt.push(E), mt;
  22517. }));
  22518. });
  22519. function my() {
  22520. return Zc(this);
  22521. }
  22522. function yy() {
  22523. return new wi(this.value(), this.__chain__);
  22524. }
  22525. function vy() {
  22526. this.__values__ === E && (this.__values__ = lp(this.value()));
  22527. var e = this.__index__ >= this.__values__.length, M = e ? E : this.__values__[this.__index__++];
  22528. return { done: e, value: M };
  22529. }
  22530. function xy() {
  22531. return this;
  22532. }
  22533. function by(e) {
  22534. for (var M, K = this; K instanceof Io; ) {
  22535. var ot = Xc(K);
  22536. ot.__index__ = 0, ot.__values__ = E, M ? ut.__wrapped__ = ot : M = ot;
  22537. var ut = ot;
  22538. K = K.__wrapped__;
  22539. }
  22540. return ut.__wrapped__ = e, M;
  22541. }
  22542. function Sy() {
  22543. var e = this.__wrapped__;
  22544. if (e instanceof ce) {
  22545. var M = e;
  22546. return this.__actions__.length && (M = new ce(this)), M = M.reverse(), M.__actions__.push({
  22547. func: Zo,
  22548. args: [za],
  22549. thisArg: E
  22550. }), new wi(M, this.__chain__);
  22551. }
  22552. return this.thru(za);
  22553. }
  22554. function wy() {
  22555. return pc(this.__wrapped__, this.__actions__);
  22556. }
  22557. var My = Yo(function(e, M, K) {
  22558. Se.call(e, K) ? ++e[K] : tr(e, K, 1);
  22559. });
  22560. function Cy(e, M, K) {
  22561. var ot = ie(e) ? Cl : fg;
  22562. return K && ri(e, M, K) && (M = E), ot(e, qt(M, 3));
  22563. }
  22564. function ky(e, M) {
  22565. var K = ie(e) ? yr : $l;
  22566. return K(e, qt(M, 3));
  22567. }
  22568. var Ay = wc(Gc), Ty = wc(Hc);
  22569. function Py(e, M) {
  22570. return Ve(Ko(e, M), 1);
  22571. }
  22572. function Ey(e, M) {
  22573. return Ve(Ko(e, M), A);
  22574. }
  22575. function Oy(e, M, K) {
  22576. return K = K === E ? 1 : ne(K), Ve(Ko(e, M), K);
  22577. }
  22578. function Kc(e, M) {
  22579. var K = ie(e) ? bi : Sr;
  22580. return K(e, qt(M, 3));
  22581. }
  22582. function Jc(e, M) {
  22583. var K = ie(e) ? $d : Vl;
  22584. return K(e, qt(M, 3));
  22585. }
  22586. var Ly = Yo(function(e, M, K) {
  22587. Se.call(e, K) ? e[K].push(M) : tr(e, K, [M]);
  22588. });
  22589. function _y(e, M, K, ot) {
  22590. e = si(e) ? e : un(e), K = K && !ot ? ne(K) : 0;
  22591. var ut = e.length;
  22592. return K < 0 && (K = Ye(ut + K, 0)), es(e) ? K <= ut && e.indexOf(M, K) > -1 : !!ut && Qr(e, M, K) > -1;
  22593. }
  22594. var Dy = ae(function(e, M, K) {
  22595. var ot = -1, ut = typeof M == "function", mt = si(e) ? At(e.length) : [];
  22596. return Sr(e, function(xt) {
  22597. mt[++ot] = ut ? pi(M, xt, K) : Yn(xt, M, K);
  22598. }), mt;
  22599. }), Iy = Yo(function(e, M, K) {
  22600. tr(e, K, M);
  22601. });
  22602. function Ko(e, M) {
  22603. var K = ie(e) ? Ee : tc;
  22604. return K(e, qt(M, 3));
  22605. }
  22606. function Ry(e, M, K, ot) {
  22607. return e == null ? [] : (ie(M) || (M = M == null ? [] : [M]), K = ot ? E : K, ie(K) || (K = K == null ? [] : [K]), nc(e, M, K));
  22608. }
  22609. var Ny = Yo(function(e, M, K) {
  22610. e[K ? 0 : 1].push(M);
  22611. }, function() {
  22612. return [[], []];
  22613. });
  22614. function By(e, M, K) {
  22615. var ot = ie(e) ? Qs : Pl, ut = arguments.length < 3;
  22616. return ot(e, qt(M, 4), K, ut, Sr);
  22617. }
  22618. function jy(e, M, K) {
  22619. var ot = ie(e) ? Zd : Pl, ut = arguments.length < 3;
  22620. return ot(e, qt(M, 4), K, ut, Vl);
  22621. }
  22622. function Wy(e, M) {
  22623. var K = ie(e) ? yr : $l;
  22624. return K(e, Qo(qt(M, 3)));
  22625. }
  22626. function zy(e) {
  22627. var M = ie(e) ? Gl : _g;
  22628. return M(e);
  22629. }
  22630. function Yy(e, M, K) {
  22631. (K ? ri(e, M, K) : M === E) ? M = 1 : M = ne(M);
  22632. var ot = ie(e) ? lg : Dg;
  22633. return ot(e, M);
  22634. }
  22635. function Xy(e) {
  22636. var M = ie(e) ? cg : Rg;
  22637. return M(e);
  22638. }
  22639. function Gy(e) {
  22640. if (e == null)
  22641. return 0;
  22642. if (si(e))
  22643. return es(e) ? en(e) : e.length;
  22644. var M = Ke(e);
  22645. return M == it || M == lt ? e.size : va(e).length;
  22646. }
  22647. function Hy(e, M, K) {
  22648. var ot = ie(e) ? ta : Ng;
  22649. return K && ri(e, M, K) && (M = E), ot(e, qt(M, 3));
  22650. }
  22651. var Fy = ae(function(e, M) {
  22652. if (e == null)
  22653. return [];
  22654. var K = M.length;
  22655. return K > 1 && ri(e, M[0], M[1]) ? M = [] : K > 2 && ri(M[0], M[1], M[2]) && (M = [M[0]]), nc(e, Ve(M, 1), []);
  22656. }), Jo = kf || function() {
  22657. return Ue.Date.now();
  22658. };
  22659. function Uy(e, M) {
  22660. if (typeof M != "function")
  22661. throw new Si(I);
  22662. return e = ne(e), function() {
  22663. if (--e < 1)
  22664. return M.apply(this, arguments);
  22665. };
  22666. }
  22667. function qc(e, M, K) {
  22668. return M = K ? E : M, M = e && M == null ? e.length : M, er(e, x, E, E, E, E, M);
  22669. }
  22670. function Qc(e, M) {
  22671. var K;
  22672. if (typeof M != "function")
  22673. throw new Si(I);
  22674. return e = ne(e), function() {
  22675. return --e > 0 && (K = M.apply(this, arguments)), e <= 1 && (M = E), K;
  22676. };
  22677. }
  22678. var Xa = ae(function(e, M, K) {
  22679. var ot = u;
  22680. if (K.length) {
  22681. var ut = xr(K, cn(Xa));
  22682. ot |= b;
  22683. }
  22684. return er(e, ot, M, K, ut);
  22685. }), tp = ae(function(e, M, K) {
  22686. var ot = u | P;
  22687. if (K.length) {
  22688. var ut = xr(K, cn(tp));
  22689. ot |= b;
  22690. }
  22691. return er(M, ot, e, K, ut);
  22692. });
  22693. function ep(e, M, K) {
  22694. M = K ? E : M;
  22695. var ot = er(e, N, E, E, E, E, E, M);
  22696. return ot.placeholder = ep.placeholder, ot;
  22697. }
  22698. function ip(e, M, K) {
  22699. M = K ? E : M;
  22700. var ot = er(e, C, E, E, E, E, E, M);
  22701. return ot.placeholder = ip.placeholder, ot;
  22702. }
  22703. function rp(e, M, K) {
  22704. var ot, ut, mt, xt, bt, Mt, It = 0, Rt = !1, Bt = !1, Yt = !0;
  22705. if (typeof e != "function")
  22706. throw new Si(I);
  22707. M = Ai(M) || 0, Ie(K) && (Rt = !!K.leading, Bt = "maxWait" in K, mt = Bt ? Ye(Ai(K.maxWait) || 0, M) : mt, Yt = "trailing" in K ? !!K.trailing : Yt);
  22708. function Ut(je) {
  22709. var Ii = ot, sr = ut;
  22710. return ot = ut = E, It = je, xt = e.apply(sr, Ii), xt;
  22711. }
  22712. function Qt(je) {
  22713. return It = je, bt = Un(le, M), Rt ? Ut(je) : xt;
  22714. }
  22715. function se(je) {
  22716. var Ii = je - Mt, sr = je - It, wp = M - Ii;
  22717. return Bt ? Ze(wp, mt - sr) : wp;
  22718. }
  22719. function te(je) {
  22720. var Ii = je - Mt, sr = je - It;
  22721. return Mt === E || Ii >= M || Ii < 0 || Bt && sr >= mt;
  22722. }
  22723. function le() {
  22724. var je = Jo();
  22725. if (te(je))
  22726. return pe(je);
  22727. bt = Un(le, se(je));
  22728. }
  22729. function pe(je) {
  22730. return bt = E, Yt && ot ? Ut(je) : (ot = ut = E, xt);
  22731. }
  22732. function gi() {
  22733. bt !== E && dc(bt), It = 0, ot = Mt = ut = bt = E;
  22734. }
  22735. function ni() {
  22736. return bt === E ? xt : pe(Jo());
  22737. }
  22738. function mi() {
  22739. var je = Jo(), Ii = te(je);
  22740. if (ot = arguments, ut = this, Mt = je, Ii) {
  22741. if (bt === E)
  22742. return Qt(Mt);
  22743. if (Bt)
  22744. return dc(bt), bt = Un(le, M), Ut(Mt);
  22745. }
  22746. return bt === E && (bt = Un(le, M)), xt;
  22747. }
  22748. return mi.cancel = gi, mi.flush = ni, mi;
  22749. }
  22750. var Vy = ae(function(e, M) {
  22751. return Ul(e, 1, M);
  22752. }), $y = ae(function(e, M, K) {
  22753. return Ul(e, Ai(M) || 0, K);
  22754. });
  22755. function Zy(e) {
  22756. return er(e, c);
  22757. }
  22758. function qo(e, M) {
  22759. if (typeof e != "function" || M != null && typeof M != "function")
  22760. throw new Si(I);
  22761. var K = function() {
  22762. var ot = arguments, ut = M ? M.apply(this, ot) : ot[0], mt = K.cache;
  22763. if (mt.has(ut))
  22764. return mt.get(ut);
  22765. var xt = e.apply(this, ot);
  22766. return K.cache = mt.set(ut, xt) || mt, xt;
  22767. };
  22768. return K.cache = new (qo.Cache || Qi)(), K;
  22769. }
  22770. qo.Cache = Qi;
  22771. function Qo(e) {
  22772. if (typeof e != "function")
  22773. throw new Si(I);
  22774. return function() {
  22775. var M = arguments;
  22776. switch (M.length) {
  22777. case 0:
  22778. return !e.call(this);
  22779. case 1:
  22780. return !e.call(this, M[0]);
  22781. case 2:
  22782. return !e.call(this, M[0], M[1]);
  22783. case 3:
  22784. return !e.call(this, M[0], M[1], M[2]);
  22785. }
  22786. return !e.apply(this, M);
  22787. };
  22788. }
  22789. function Ky(e) {
  22790. return Qc(2, e);
  22791. }
  22792. var Jy = Bg(function(e, M) {
  22793. M = M.length == 1 && ie(M[0]) ? Ee(M[0], ui(qt())) : Ee(Ve(M, 1), ui(qt()));
  22794. var K = M.length;
  22795. return ae(function(ot) {
  22796. for (var ut = -1, mt = Ze(ot.length, K); ++ut < mt; )
  22797. ot[ut] = M[ut].call(this, ot[ut]);
  22798. return pi(e, this, ot);
  22799. });
  22800. }), Ga = ae(function(e, M) {
  22801. var K = xr(M, cn(Ga));
  22802. return er(e, b, E, M, K);
  22803. }), np = ae(function(e, M) {
  22804. var K = xr(M, cn(np));
  22805. return er(e, w, E, M, K);
  22806. }), qy = ir(function(e, M) {
  22807. return er(e, a, E, E, E, M);
  22808. });
  22809. function Qy(e, M) {
  22810. if (typeof e != "function")
  22811. throw new Si(I);
  22812. return M = M === E ? M : ne(M), ae(e, M);
  22813. }
  22814. function tv(e, M) {
  22815. if (typeof e != "function")
  22816. throw new Si(I);
  22817. return M = M == null ? 0 : Ye(ne(M), 0), ae(function(K) {
  22818. var ot = K[M], ut = Cr(K, 0, M);
  22819. return ot && vr(ut, ot), pi(e, this, ut);
  22820. });
  22821. }
  22822. function ev(e, M, K) {
  22823. var ot = !0, ut = !0;
  22824. if (typeof e != "function")
  22825. throw new Si(I);
  22826. return Ie(K) && (ot = "leading" in K ? !!K.leading : ot, ut = "trailing" in K ? !!K.trailing : ut), rp(e, M, {
  22827. leading: ot,
  22828. maxWait: M,
  22829. trailing: ut
  22830. });
  22831. }
  22832. function iv(e) {
  22833. return qc(e, 1);
  22834. }
  22835. function rv(e, M) {
  22836. return Ga(Ta(M), e);
  22837. }
  22838. function nv() {
  22839. if (!arguments.length)
  22840. return [];
  22841. var e = arguments[0];
  22842. return ie(e) ? e : [e];
  22843. }
  22844. function ov(e) {
  22845. return Mi(e, S);
  22846. }
  22847. function sv(e, M) {
  22848. return M = typeof M == "function" ? M : E, Mi(e, S, M);
  22849. }
  22850. function av(e) {
  22851. return Mi(e, W | S);
  22852. }
  22853. function hv(e, M) {
  22854. return M = typeof M == "function" ? M : E, Mi(e, W | S, M);
  22855. }
  22856. function lv(e, M) {
  22857. return M == null || Fl(e, M, He(M));
  22858. }
  22859. function Di(e, M) {
  22860. return e === M || e !== e && M !== M;
  22861. }
  22862. var cv = Fo(ga), pv = Fo(function(e, M) {
  22863. return e >= M;
  22864. }), Gr = Jl(function() {
  22865. return arguments;
  22866. }()) ? Jl : function(e) {
  22867. return Ne(e) && Se.call(e, "callee") && !Bl.call(e, "callee");
  22868. }, ie = At.isArray, uv = vl ? ui(vl) : bg;
  22869. function si(e) {
  22870. return e != null && ts(e.length) && !nr(e);
  22871. }
  22872. function Be(e) {
  22873. return Ne(e) && si(e);
  22874. }
  22875. function dv(e) {
  22876. return e === !0 || e === !1 || Ne(e) && ii(e) == Q;
  22877. }
  22878. var kr = Tf || th, fv = xl ? ui(xl) : Sg;
  22879. function gv(e) {
  22880. return Ne(e) && e.nodeType === 1 && !Vn(e);
  22881. }
  22882. function mv(e) {
  22883. if (e == null)
  22884. return !0;
  22885. if (si(e) && (ie(e) || typeof e == "string" || typeof e.splice == "function" || kr(e) || pn(e) || Gr(e)))
  22886. return !e.length;
  22887. var M = Ke(e);
  22888. if (M == it || M == lt)
  22889. return !e.size;
  22890. if (Fn(e))
  22891. return !va(e).length;
  22892. for (var K in e)
  22893. if (Se.call(e, K))
  22894. return !1;
  22895. return !0;
  22896. }
  22897. function yv(e, M) {
  22898. return Xn(e, M);
  22899. }
  22900. function vv(e, M, K) {
  22901. K = typeof K == "function" ? K : E;
  22902. var ot = K ? K(e, M) : E;
  22903. return ot === E ? Xn(e, M, E, K) : !!ot;
  22904. }
  22905. function Ha(e) {
  22906. if (!Ne(e))
  22907. return !1;
  22908. var M = ii(e);
  22909. return M == z || M == G || typeof e.message == "string" && typeof e.name == "string" && !Vn(e);
  22910. }
  22911. function xv(e) {
  22912. return typeof e == "number" && Wl(e);
  22913. }
  22914. function nr(e) {
  22915. if (!Ie(e))
  22916. return !1;
  22917. var M = ii(e);
  22918. return M == $ || M == q || M == V || M == gt;
  22919. }
  22920. function op(e) {
  22921. return typeof e == "number" && e == ne(e);
  22922. }
  22923. function ts(e) {
  22924. return typeof e == "number" && e > -1 && e % 1 == 0 && e <= _;
  22925. }
  22926. function Ie(e) {
  22927. var M = typeof e;
  22928. return e != null && (M == "object" || M == "function");
  22929. }
  22930. function Ne(e) {
  22931. return e != null && typeof e == "object";
  22932. }
  22933. var sp = bl ? ui(bl) : Mg;
  22934. function bv(e, M) {
  22935. return e === M || ya(e, M, Ia(M));
  22936. }
  22937. function Sv(e, M, K) {
  22938. return K = typeof K == "function" ? K : E, ya(e, M, Ia(M), K);
  22939. }
  22940. function wv(e) {
  22941. return ap(e) && e != +e;
  22942. }
  22943. function Mv(e) {
  22944. if (sm(e))
  22945. throw new ee(j);
  22946. return ql(e);
  22947. }
  22948. function Cv(e) {
  22949. return e === null;
  22950. }
  22951. function kv(e) {
  22952. return e == null;
  22953. }
  22954. function ap(e) {
  22955. return typeof e == "number" || Ne(e) && ii(e) == et;
  22956. }
  22957. function Vn(e) {
  22958. if (!Ne(e) || ii(e) != rt)
  22959. return !1;
  22960. var M = To(e);
  22961. if (M === null)
  22962. return !0;
  22963. var K = Se.call(M, "constructor") && M.constructor;
  22964. return typeof K == "function" && K instanceof K && Mo.call(K) == Sf;
  22965. }
  22966. var Fa = Sl ? ui(Sl) : Cg;
  22967. function Av(e) {
  22968. return op(e) && e >= -_ && e <= _;
  22969. }
  22970. var hp = wl ? ui(wl) : kg;
  22971. function es(e) {
  22972. return typeof e == "string" || !ie(e) && Ne(e) && ii(e) == at;
  22973. }
  22974. function fi(e) {
  22975. return typeof e == "symbol" || Ne(e) && ii(e) == J;
  22976. }
  22977. var pn = Ml ? ui(Ml) : Ag;
  22978. function Tv(e) {
  22979. return e === E;
  22980. }
  22981. function Pv(e) {
  22982. return Ne(e) && Ke(e) == st;
  22983. }
  22984. function Ev(e) {
  22985. return Ne(e) && ii(e) == ht;
  22986. }
  22987. var Ov = Fo(xa), Lv = Fo(function(e, M) {
  22988. return e <= M;
  22989. });
  22990. function lp(e) {
  22991. if (!e)
  22992. return [];
  22993. if (si(e))
  22994. return es(e) ? Li(e) : oi(e);
  22995. if (In && e[In])
  22996. return lf(e[In]());
  22997. var M = Ke(e), K = M == it ? sa : M == lt ? bo : un;
  22998. return K(e);
  22999. }
  23000. function or(e) {
  23001. if (!e)
  23002. return e === 0 ? e : 0;
  23003. if (e = Ai(e), e === A || e === -A) {
  23004. var M = e < 0 ? -1 : 1;
  23005. return M * D;
  23006. }
  23007. return e === e ? e : 0;
  23008. }
  23009. function ne(e) {
  23010. var M = or(e), K = M % 1;
  23011. return M === M ? K ? M - K : M : 0;
  23012. }
  23013. function cp(e) {
  23014. return e ? Wr(ne(e), 0, T) : 0;
  23015. }
  23016. function Ai(e) {
  23017. if (typeof e == "number")
  23018. return e;
  23019. if (fi(e))
  23020. return B;
  23021. if (Ie(e)) {
  23022. var M = typeof e.valueOf == "function" ? e.valueOf() : e;
  23023. e = Ie(M) ? M + "" : M;
  23024. }
  23025. if (typeof e != "string")
  23026. return e === 0 ? e : +e;
  23027. e = El(e);
  23028. var K = Re.test(e);
  23029. return K || Jr.test(e) ? Fd(e.slice(2), K ? 2 : 8) : ge.test(e) ? B : +e;
  23030. }
  23031. function pp(e) {
  23032. return Xi(e, ai(e));
  23033. }
  23034. function _v(e) {
  23035. return e ? Wr(ne(e), -_, _) : e === 0 ? e : 0;
  23036. }
  23037. function xe(e) {
  23038. return e == null ? "" : di(e);
  23039. }
  23040. var Dv = hn(function(e, M) {
  23041. if (Fn(M) || si(M)) {
  23042. Xi(M, He(M), e);
  23043. return;
  23044. }
  23045. for (var K in M)
  23046. Se.call(M, K) && Wn(e, K, M[K]);
  23047. }), up = hn(function(e, M) {
  23048. Xi(M, ai(M), e);
  23049. }), is = hn(function(e, M, K, ot) {
  23050. Xi(M, ai(M), e, ot);
  23051. }), Iv = hn(function(e, M, K, ot) {
  23052. Xi(M, He(M), e, ot);
  23053. }), Rv = ir(ua);
  23054. function Nv(e, M) {
  23055. var K = an(e);
  23056. return M == null ? K : Hl(K, M);
  23057. }
  23058. var Bv = ae(function(e, M) {
  23059. e = Ce(e);
  23060. var K = -1, ot = M.length, ut = ot > 2 ? M[2] : E;
  23061. for (ut && ri(M[0], M[1], ut) && (ot = 1); ++K < ot; )
  23062. for (var mt = M[K], xt = ai(mt), bt = -1, Mt = xt.length; ++bt < Mt; ) {
  23063. var It = xt[bt], Rt = e[It];
  23064. (Rt === E || Di(Rt, nn[It]) && !Se.call(e, It)) && (e[It] = mt[It]);
  23065. }
  23066. return e;
  23067. }), jv = ae(function(e) {
  23068. return e.push(E, Ec), pi(dp, E, e);
  23069. });
  23070. function Wv(e, M) {
  23071. return kl(e, qt(M, 3), Yi);
  23072. }
  23073. function zv(e, M) {
  23074. return kl(e, qt(M, 3), fa);
  23075. }
  23076. function Yv(e, M) {
  23077. return e == null ? e : da(e, qt(M, 3), ai);
  23078. }
  23079. function Xv(e, M) {
  23080. return e == null ? e : Zl(e, qt(M, 3), ai);
  23081. }
  23082. function Gv(e, M) {
  23083. return e && Yi(e, qt(M, 3));
  23084. }
  23085. function Hv(e, M) {
  23086. return e && fa(e, qt(M, 3));
  23087. }
  23088. function Fv(e) {
  23089. return e == null ? [] : Bo(e, He(e));
  23090. }
  23091. function Uv(e) {
  23092. return e == null ? [] : Bo(e, ai(e));
  23093. }
  23094. function Ua(e, M, K) {
  23095. var ot = e == null ? E : zr(e, M);
  23096. return ot === E ? K : ot;
  23097. }
  23098. function Vv(e, M) {
  23099. return e != null && _c(e, M, mg);
  23100. }
  23101. function Va(e, M) {
  23102. return e != null && _c(e, M, yg);
  23103. }
  23104. var $v = Cc(function(e, M, K) {
  23105. M != null && typeof M.toString != "function" && (M = Co.call(M)), e[M] = K;
  23106. }, Za(hi)), Zv = Cc(function(e, M, K) {
  23107. M != null && typeof M.toString != "function" && (M = Co.call(M)), Se.call(e, M) ? e[M].push(K) : e[M] = [K];
  23108. }, qt), Kv = ae(Yn);
  23109. function He(e) {
  23110. return si(e) ? Xl(e) : va(e);
  23111. }
  23112. function ai(e) {
  23113. return si(e) ? Xl(e, !0) : Tg(e);
  23114. }
  23115. function Jv(e, M) {
  23116. var K = {};
  23117. return M = qt(M, 3), Yi(e, function(ot, ut, mt) {
  23118. tr(K, M(ot, ut, mt), ot);
  23119. }), K;
  23120. }
  23121. function qv(e, M) {
  23122. var K = {};
  23123. return M = qt(M, 3), Yi(e, function(ot, ut, mt) {
  23124. tr(K, ut, M(ot, ut, mt));
  23125. }), K;
  23126. }
  23127. var Qv = hn(function(e, M, K) {
  23128. jo(e, M, K);
  23129. }), dp = hn(function(e, M, K, ot) {
  23130. jo(e, M, K, ot);
  23131. }), tx = ir(function(e, M) {
  23132. var K = {};
  23133. if (e == null)
  23134. return K;
  23135. var ot = !1;
  23136. M = Ee(M, function(mt) {
  23137. return mt = Mr(mt, e), ot || (ot = mt.length > 1), mt;
  23138. }), Xi(e, _a(e), K), ot && (K = Mi(K, W | R | S, $g));
  23139. for (var ut = M.length; ut--; )
  23140. Ca(K, M[ut]);
  23141. return K;
  23142. });
  23143. function ex(e, M) {
  23144. return fp(e, Qo(qt(M)));
  23145. }
  23146. var ix = ir(function(e, M) {
  23147. return e == null ? {} : Eg(e, M);
  23148. });
  23149. function fp(e, M) {
  23150. if (e == null)
  23151. return {};
  23152. var K = Ee(_a(e), function(ot) {
  23153. return [ot];
  23154. });
  23155. return M = qt(M), oc(e, K, function(ot, ut) {
  23156. return M(ot, ut[0]);
  23157. });
  23158. }
  23159. function rx(e, M, K) {
  23160. M = Mr(M, e);
  23161. var ot = -1, ut = M.length;
  23162. for (ut || (ut = 1, e = E); ++ot < ut; ) {
  23163. var mt = e == null ? E : e[Gi(M[ot])];
  23164. mt === E && (ot = ut, mt = K), e = nr(mt) ? mt.call(e) : mt;
  23165. }
  23166. return e;
  23167. }
  23168. function nx(e, M, K) {
  23169. return e == null ? e : Gn(e, M, K);
  23170. }
  23171. function ox(e, M, K, ot) {
  23172. return ot = typeof ot == "function" ? ot : E, e == null ? e : Gn(e, M, K, ot);
  23173. }
  23174. var gp = Tc(He), mp = Tc(ai);
  23175. function sx(e, M, K) {
  23176. var ot = ie(e), ut = ot || kr(e) || pn(e);
  23177. if (M = qt(M, 4), K == null) {
  23178. var mt = e && e.constructor;
  23179. ut ? K = ot ? new mt() : [] : Ie(e) ? K = nr(mt) ? an(To(e)) : {} : K = {};
  23180. }
  23181. return (ut ? bi : Yi)(e, function(xt, bt, Mt) {
  23182. return M(K, xt, bt, Mt);
  23183. }), K;
  23184. }
  23185. function ax(e, M) {
  23186. return e == null ? !0 : Ca(e, M);
  23187. }
  23188. function hx(e, M, K) {
  23189. return e == null ? e : cc(e, M, Ta(K));
  23190. }
  23191. function lx(e, M, K, ot) {
  23192. return ot = typeof ot == "function" ? ot : E, e == null ? e : cc(e, M, Ta(K), ot);
  23193. }
  23194. function un(e) {
  23195. return e == null ? [] : oa(e, He(e));
  23196. }
  23197. function cx(e) {
  23198. return e == null ? [] : oa(e, ai(e));
  23199. }
  23200. function px(e, M, K) {
  23201. return K === E && (K = M, M = E), K !== E && (K = Ai(K), K = K === K ? K : 0), M !== E && (M = Ai(M), M = M === M ? M : 0), Wr(Ai(e), M, K);
  23202. }
  23203. function ux(e, M, K) {
  23204. return M = or(M), K === E ? (K = M, M = 0) : K = or(K), e = Ai(e), vg(e, M, K);
  23205. }
  23206. function dx(e, M, K) {
  23207. if (K && typeof K != "boolean" && ri(e, M, K) && (M = K = E), K === E && (typeof M == "boolean" ? (K = M, M = E) : typeof e == "boolean" && (K = e, e = E)), e === E && M === E ? (e = 0, M = 1) : (e = or(e), M === E ? (M = e, e = 0) : M = or(M)), e > M) {
  23208. var ot = e;
  23209. e = M, M = ot;
  23210. }
  23211. if (K || e % 1 || M % 1) {
  23212. var ut = zl();
  23213. return Ze(e + ut * (M - e + Hd("1e-" + ((ut + "").length - 1))), M);
  23214. }
  23215. return Sa(e, M);
  23216. }
  23217. var fx = ln(function(e, M, K) {
  23218. return M = M.toLowerCase(), e + (K ? yp(M) : M);
  23219. });
  23220. function yp(e) {
  23221. return $a(xe(e).toLowerCase());
  23222. }
  23223. function vp(e) {
  23224. return e = xe(e), e && e.replace(gd, nf).replace(Id, "");
  23225. }
  23226. function gx(e, M, K) {
  23227. e = xe(e), M = di(M);
  23228. var ot = e.length;
  23229. K = K === E ? ot : Wr(ne(K), 0, ot);
  23230. var ut = K;
  23231. return K -= M.length, K >= 0 && e.slice(K, ut) == M;
  23232. }
  23233. function mx(e) {
  23234. return e = xe(e), e && Vt.test(e) ? e.replace(be, of) : e;
  23235. }
  23236. function yx(e) {
  23237. return e = xe(e), e && Ln.test(e) ? e.replace(On, "\\$&") : e;
  23238. }
  23239. var vx = ln(function(e, M, K) {
  23240. return e + (K ? "-" : "") + M.toLowerCase();
  23241. }), xx = ln(function(e, M, K) {
  23242. return e + (K ? " " : "") + M.toLowerCase();
  23243. }), bx = Sc("toLowerCase");
  23244. function Sx(e, M, K) {
  23245. e = xe(e), M = ne(M);
  23246. var ot = M ? en(e) : 0;
  23247. if (!M || ot >= M)
  23248. return e;
  23249. var ut = (M - ot) / 2;
  23250. return Ho(Lo(ut), K) + e + Ho(Oo(ut), K);
  23251. }
  23252. function wx(e, M, K) {
  23253. e = xe(e), M = ne(M);
  23254. var ot = M ? en(e) : 0;
  23255. return M && ot < M ? e + Ho(M - ot, K) : e;
  23256. }
  23257. function Mx(e, M, K) {
  23258. e = xe(e), M = ne(M);
  23259. var ot = M ? en(e) : 0;
  23260. return M && ot < M ? Ho(M - ot, K) + e : e;
  23261. }
  23262. function Cx(e, M, K) {
  23263. return K || M == null ? M = 0 : M && (M = +M), Lf(xe(e).replace(Kr, ""), M || 0);
  23264. }
  23265. function kx(e, M, K) {
  23266. return (K ? ri(e, M, K) : M === E) ? M = 1 : M = ne(M), wa(xe(e), M);
  23267. }
  23268. function Ax() {
  23269. var e = arguments, M = xe(e[0]);
  23270. return e.length < 3 ? M : M.replace(e[1], e[2]);
  23271. }
  23272. var Tx = ln(function(e, M, K) {
  23273. return e + (K ? "_" : "") + M.toLowerCase();
  23274. });
  23275. function Px(e, M, K) {
  23276. return K && typeof K != "number" && ri(e, M, K) && (M = K = E), K = K === E ? T : K >>> 0, K ? (e = xe(e), e && (typeof M == "string" || M != null && !Fa(M)) && (M = di(M), !M && tn(e)) ? Cr(Li(e), 0, K) : e.split(M, K)) : [];
  23277. }
  23278. var Ex = ln(function(e, M, K) {
  23279. return e + (K ? " " : "") + $a(M);
  23280. });
  23281. function Ox(e, M, K) {
  23282. return e = xe(e), K = K == null ? 0 : Wr(ne(K), 0, e.length), M = di(M), e.slice(K, K + M.length) == M;
  23283. }
  23284. function Lx(e, M, K) {
  23285. var ot = ft.templateSettings;
  23286. K && ri(e, M, K) && (M = E), e = xe(e), M = is({}, M, ot, Pc);
  23287. var ut = is({}, M.imports, ot.imports, Pc), mt = He(ut), xt = oa(ut, mt), bt, Mt, It = 0, Rt = M.interpolate || go, Bt = "__p += '", Yt = aa(
  23288. (M.escape || go).source + "|" + Rt.source + "|" + (Rt === po ? $t : go).source + "|" + (M.evaluate || go).source + "|$",
  23289. "g"
  23290. ), Ut = "//# sourceURL=" + (Se.call(M, "sourceURL") ? (M.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Wd + "]") + `
  23291. `;
  23292. e.replace(Yt, function(te, le, pe, gi, ni, mi) {
  23293. return pe || (pe = gi), Bt += e.slice(It, mi).replace(md, sf), le && (bt = !0, Bt += `' +
  23294. __e(` + le + `) +
  23295. '`), ni && (Mt = !0, Bt += `';
  23296. ` + ni + `;
  23297. __p += '`), pe && (Bt += `' +
  23298. ((__t = (` + pe + `)) == null ? '' : __t) +
  23299. '`), It = mi + te.length, te;
  23300. }), Bt += `';
  23301. `;
  23302. var Qt = Se.call(M, "variable") && M.variable;
  23303. if (!Qt)
  23304. Bt = `with (obj) {
  23305. ` + Bt + `
  23306. }
  23307. `;
  23308. else if (_n.test(Qt))
  23309. throw new ee(Z);
  23310. Bt = (Mt ? Bt.replace(Kt, "") : Bt).replace(Gt, "$1").replace(Wt, "$1;"), Bt = "function(" + (Qt || "obj") + `) {
  23311. ` + (Qt ? "" : `obj || (obj = {});
  23312. `) + "var __t, __p = ''" + (bt ? ", __e = _.escape" : "") + (Mt ? `, __j = Array.prototype.join;
  23313. function print() { __p += __j.call(arguments, '') }
  23314. ` : `;
  23315. `) + Bt + `return __p
  23316. }`;
  23317. var se = bp(function() {
  23318. return ve(mt, Ut + "return " + Bt).apply(E, xt);
  23319. });
  23320. if (se.source = Bt, Ha(se))
  23321. throw se;
  23322. return se;
  23323. }
  23324. function _x(e) {
  23325. return xe(e).toLowerCase();
  23326. }
  23327. function Dx(e) {
  23328. return xe(e).toUpperCase();
  23329. }
  23330. function Ix(e, M, K) {
  23331. if (e = xe(e), e && (K || M === E))
  23332. return El(e);
  23333. if (!e || !(M = di(M)))
  23334. return e;
  23335. var ot = Li(e), ut = Li(M), mt = Ol(ot, ut), xt = Ll(ot, ut) + 1;
  23336. return Cr(ot, mt, xt).join("");
  23337. }
  23338. function Rx(e, M, K) {
  23339. if (e = xe(e), e && (K || M === E))
  23340. return e.slice(0, Dl(e) + 1);
  23341. if (!e || !(M = di(M)))
  23342. return e;
  23343. var ot = Li(e), ut = Ll(ot, Li(M)) + 1;
  23344. return Cr(ot, 0, ut).join("");
  23345. }
  23346. function Nx(e, M, K) {
  23347. if (e = xe(e), e && (K || M === E))
  23348. return e.replace(Kr, "");
  23349. if (!e || !(M = di(M)))
  23350. return e;
  23351. var ot = Li(e), ut = Ol(ot, Li(M));
  23352. return Cr(ot, ut).join("");
  23353. }
  23354. function Bx(e, M) {
  23355. var K = p, ot = i;
  23356. if (Ie(M)) {
  23357. var ut = "separator" in M ? M.separator : ut;
  23358. K = "length" in M ? ne(M.length) : K, ot = "omission" in M ? di(M.omission) : ot;
  23359. }
  23360. e = xe(e);
  23361. var mt = e.length;
  23362. if (tn(e)) {
  23363. var xt = Li(e);
  23364. mt = xt.length;
  23365. }
  23366. if (K >= mt)
  23367. return e;
  23368. var bt = K - en(ot);
  23369. if (bt < 1)
  23370. return ot;
  23371. var Mt = xt ? Cr(xt, 0, bt).join("") : e.slice(0, bt);
  23372. if (ut === E)
  23373. return Mt + ot;
  23374. if (xt && (bt += Mt.length - bt), Fa(ut)) {
  23375. if (e.slice(bt).search(ut)) {
  23376. var It, Rt = Mt;
  23377. for (ut.global || (ut = aa(ut.source, xe(ue.exec(ut)) + "g")), ut.lastIndex = 0; It = ut.exec(Rt); )
  23378. var Bt = It.index;
  23379. Mt = Mt.slice(0, Bt === E ? bt : Bt);
  23380. }
  23381. } else if (e.indexOf(di(ut), bt) != bt) {
  23382. var Yt = Mt.lastIndexOf(ut);
  23383. Yt > -1 && (Mt = Mt.slice(0, Yt));
  23384. }
  23385. return Mt + ot;
  23386. }
  23387. function jx(e) {
  23388. return e = xe(e), e && zt.test(e) ? e.replace(Jt, df) : e;
  23389. }
  23390. var Wx = ln(function(e, M, K) {
  23391. return e + (K ? " " : "") + M.toUpperCase();
  23392. }), $a = Sc("toUpperCase");
  23393. function xp(e, M, K) {
  23394. return e = xe(e), M = K ? E : M, M === E ? hf(e) ? mf(e) : qd(e) : e.match(M) || [];
  23395. }
  23396. var bp = ae(function(e, M) {
  23397. try {
  23398. return pi(e, E, M);
  23399. } catch (K) {
  23400. return Ha(K) ? K : new ee(K);
  23401. }
  23402. }), zx = ir(function(e, M) {
  23403. return bi(M, function(K) {
  23404. K = Gi(K), tr(e, K, Xa(e[K], e));
  23405. }), e;
  23406. });
  23407. function Yx(e) {
  23408. var M = e == null ? 0 : e.length, K = qt();
  23409. return e = M ? Ee(e, function(ot) {
  23410. if (typeof ot[1] != "function")
  23411. throw new Si(I);
  23412. return [K(ot[0]), ot[1]];
  23413. }) : [], ae(function(ot) {
  23414. for (var ut = -1; ++ut < M; ) {
  23415. var mt = e[ut];
  23416. if (pi(mt[0], this, ot))
  23417. return pi(mt[1], this, ot);
  23418. }
  23419. });
  23420. }
  23421. function Xx(e) {
  23422. return dg(Mi(e, W));
  23423. }
  23424. function Za(e) {
  23425. return function() {
  23426. return e;
  23427. };
  23428. }
  23429. function Gx(e, M) {
  23430. return e == null || e !== e ? M : e;
  23431. }
  23432. var Hx = Mc(), Fx = Mc(!0);
  23433. function hi(e) {
  23434. return e;
  23435. }
  23436. function Ka(e) {
  23437. return Ql(typeof e == "function" ? e : Mi(e, W));
  23438. }
  23439. function Ux(e) {
  23440. return ec(Mi(e, W));
  23441. }
  23442. function Vx(e, M) {
  23443. return ic(e, Mi(M, W));
  23444. }
  23445. var $x = ae(function(e, M) {
  23446. return function(K) {
  23447. return Yn(K, e, M);
  23448. };
  23449. }), Zx = ae(function(e, M) {
  23450. return function(K) {
  23451. return Yn(e, K, M);
  23452. };
  23453. });
  23454. function Ja(e, M, K) {
  23455. var ot = He(M), ut = Bo(M, ot);
  23456. K == null && !(Ie(M) && (ut.length || !ot.length)) && (K = M, M = e, e = this, ut = Bo(M, He(M)));
  23457. var mt = !(Ie(K) && "chain" in K) || !!K.chain, xt = nr(e);
  23458. return bi(ut, function(bt) {
  23459. var Mt = M[bt];
  23460. e[bt] = Mt, xt && (e.prototype[bt] = function() {
  23461. var It = this.__chain__;
  23462. if (mt || It) {
  23463. var Rt = e(this.__wrapped__), Bt = Rt.__actions__ = oi(this.__actions__);
  23464. return Bt.push({ func: Mt, args: arguments, thisArg: e }), Rt.__chain__ = It, Rt;
  23465. }
  23466. return Mt.apply(e, vr([this.value()], arguments));
  23467. });
  23468. }), e;
  23469. }
  23470. function Kx() {
  23471. return Ue._ === this && (Ue._ = wf), this;
  23472. }
  23473. function qa() {
  23474. }
  23475. function Jx(e) {
  23476. return e = ne(e), ae(function(M) {
  23477. return rc(M, e);
  23478. });
  23479. }
  23480. var qx = Ea(Ee), Qx = Ea(Cl), t0 = Ea(ta);
  23481. function Sp(e) {
  23482. return Na(e) ? ea(Gi(e)) : Og(e);
  23483. }
  23484. function e0(e) {
  23485. return function(M) {
  23486. return e == null ? E : zr(e, M);
  23487. };
  23488. }
  23489. var i0 = kc(), r0 = kc(!0);
  23490. function Qa() {
  23491. return [];
  23492. }
  23493. function th() {
  23494. return !1;
  23495. }
  23496. function n0() {
  23497. return {};
  23498. }
  23499. function o0() {
  23500. return "";
  23501. }
  23502. function s0() {
  23503. return !0;
  23504. }
  23505. function a0(e, M) {
  23506. if (e = ne(e), e < 1 || e > _)
  23507. return [];
  23508. var K = T, ot = Ze(e, T);
  23509. M = qt(M), e -= T;
  23510. for (var ut = na(ot, M); ++K < e; )
  23511. M(K);
  23512. return ut;
  23513. }
  23514. function h0(e) {
  23515. return ie(e) ? Ee(e, Gi) : fi(e) ? [e] : oi(Yc(xe(e)));
  23516. }
  23517. function l0(e) {
  23518. var M = ++bf;
  23519. return xe(e) + M;
  23520. }
  23521. var c0 = Go(function(e, M) {
  23522. return e + M;
  23523. }, 0), p0 = Oa("ceil"), u0 = Go(function(e, M) {
  23524. return e / M;
  23525. }, 1), d0 = Oa("floor");
  23526. function f0(e) {
  23527. return e && e.length ? No(e, hi, ga) : E;
  23528. }
  23529. function g0(e, M) {
  23530. return e && e.length ? No(e, qt(M, 2), ga) : E;
  23531. }
  23532. function m0(e) {
  23533. return Tl(e, hi);
  23534. }
  23535. function y0(e, M) {
  23536. return Tl(e, qt(M, 2));
  23537. }
  23538. function v0(e) {
  23539. return e && e.length ? No(e, hi, xa) : E;
  23540. }
  23541. function x0(e, M) {
  23542. return e && e.length ? No(e, qt(M, 2), xa) : E;
  23543. }
  23544. var b0 = Go(function(e, M) {
  23545. return e * M;
  23546. }, 1), S0 = Oa("round"), w0 = Go(function(e, M) {
  23547. return e - M;
  23548. }, 0);
  23549. function M0(e) {
  23550. return e && e.length ? ra(e, hi) : 0;
  23551. }
  23552. function C0(e, M) {
  23553. return e && e.length ? ra(e, qt(M, 2)) : 0;
  23554. }
  23555. return ft.after = Uy, ft.ary = qc, ft.assign = Dv, ft.assignIn = up, ft.assignInWith = is, ft.assignWith = Iv, ft.at = Rv, ft.before = Qc, ft.bind = Xa, ft.bindAll = zx, ft.bindKey = tp, ft.castArray = nv, ft.chain = Zc, ft.chunk = dm, ft.compact = fm, ft.concat = gm, ft.cond = Yx, ft.conforms = Xx, ft.constant = Za, ft.countBy = My, ft.create = Nv, ft.curry = ep, ft.curryRight = ip, ft.debounce = rp, ft.defaults = Bv, ft.defaultsDeep = jv, ft.defer = Vy, ft.delay = $y, ft.difference = mm, ft.differenceBy = ym, ft.differenceWith = vm, ft.drop = xm, ft.dropRight = bm, ft.dropRightWhile = Sm, ft.dropWhile = wm, ft.fill = Mm, ft.filter = ky, ft.flatMap = Py, ft.flatMapDeep = Ey, ft.flatMapDepth = Oy, ft.flatten = Fc, ft.flattenDeep = Cm, ft.flattenDepth = km, ft.flip = Zy, ft.flow = Hx, ft.flowRight = Fx, ft.fromPairs = Am, ft.functions = Fv, ft.functionsIn = Uv, ft.groupBy = Ly, ft.initial = Pm, ft.intersection = Em, ft.intersectionBy = Om, ft.intersectionWith = Lm, ft.invert = $v, ft.invertBy = Zv, ft.invokeMap = Dy, ft.iteratee = Ka, ft.keyBy = Iy, ft.keys = He, ft.keysIn = ai, ft.map = Ko, ft.mapKeys = Jv, ft.mapValues = qv, ft.matches = Ux, ft.matchesProperty = Vx, ft.memoize = qo, ft.merge = Qv, ft.mergeWith = dp, ft.method = $x, ft.methodOf = Zx, ft.mixin = Ja, ft.negate = Qo, ft.nthArg = Jx, ft.omit = tx, ft.omitBy = ex, ft.once = Ky, ft.orderBy = Ry, ft.over = qx, ft.overArgs = Jy, ft.overEvery = Qx, ft.overSome = t0, ft.partial = Ga, ft.partialRight = np, ft.partition = Ny, ft.pick = ix, ft.pickBy = fp, ft.property = Sp, ft.propertyOf = e0, ft.pull = Rm, ft.pullAll = Vc, ft.pullAllBy = Nm, ft.pullAllWith = Bm, ft.pullAt = jm, ft.range = i0, ft.rangeRight = r0, ft.rearg = qy, ft.reject = Wy, ft.remove = Wm, ft.rest = Qy, ft.reverse = za, ft.sampleSize = Yy, ft.set = nx, ft.setWith = ox, ft.shuffle = Xy, ft.slice = zm, ft.sortBy = Fy, ft.sortedUniq = Vm, ft.sortedUniqBy = $m, ft.split = Px, ft.spread = tv, ft.tail = Zm, ft.take = Km, ft.takeRight = Jm, ft.takeRightWhile = qm, ft.takeWhile = Qm, ft.tap = fy, ft.throttle = ev, ft.thru = Zo, ft.toArray = lp, ft.toPairs = gp, ft.toPairsIn = mp, ft.toPath = h0, ft.toPlainObject = pp, ft.transform = sx, ft.unary = iv, ft.union = ty, ft.unionBy = ey, ft.unionWith = iy, ft.uniq = ry, ft.uniqBy = ny, ft.uniqWith = oy, ft.unset = ax, ft.unzip = Ya, ft.unzipWith = $c, ft.update = hx, ft.updateWith = lx, ft.values = un, ft.valuesIn = cx, ft.without = sy, ft.words = xp, ft.wrap = rv, ft.xor = ay, ft.xorBy = hy, ft.xorWith = ly, ft.zip = cy, ft.zipObject = py, ft.zipObjectDeep = uy, ft.zipWith = dy, ft.entries = gp, ft.entriesIn = mp, ft.extend = up, ft.extendWith = is, Ja(ft, ft), ft.add = c0, ft.attempt = bp, ft.camelCase = fx, ft.capitalize = yp, ft.ceil = p0, ft.clamp = px, ft.clone = ov, ft.cloneDeep = av, ft.cloneDeepWith = hv, ft.cloneWith = sv, ft.conformsTo = lv, ft.deburr = vp, ft.defaultTo = Gx, ft.divide = u0, ft.endsWith = gx, ft.eq = Di, ft.escape = mx, ft.escapeRegExp = yx, ft.every = Cy, ft.find = Ay, ft.findIndex = Gc, ft.findKey = Wv, ft.findLast = Ty, ft.findLastIndex = Hc, ft.findLastKey = zv, ft.floor = d0, ft.forEach = Kc, ft.forEachRight = Jc, ft.forIn = Yv, ft.forInRight = Xv, ft.forOwn = Gv, ft.forOwnRight = Hv, ft.get = Ua, ft.gt = cv, ft.gte = pv, ft.has = Vv, ft.hasIn = Va, ft.head = Uc, ft.identity = hi, ft.includes = _y, ft.indexOf = Tm, ft.inRange = ux, ft.invoke = Kv, ft.isArguments = Gr, ft.isArray = ie, ft.isArrayBuffer = uv, ft.isArrayLike = si, ft.isArrayLikeObject = Be, ft.isBoolean = dv, ft.isBuffer = kr, ft.isDate = fv, ft.isElement = gv, ft.isEmpty = mv, ft.isEqual = yv, ft.isEqualWith = vv, ft.isError = Ha, ft.isFinite = xv, ft.isFunction = nr, ft.isInteger = op, ft.isLength = ts, ft.isMap = sp, ft.isMatch = bv, ft.isMatchWith = Sv, ft.isNaN = wv, ft.isNative = Mv, ft.isNil = kv, ft.isNull = Cv, ft.isNumber = ap, ft.isObject = Ie, ft.isObjectLike = Ne, ft.isPlainObject = Vn, ft.isRegExp = Fa, ft.isSafeInteger = Av, ft.isSet = hp, ft.isString = es, ft.isSymbol = fi, ft.isTypedArray = pn, ft.isUndefined = Tv, ft.isWeakMap = Pv, ft.isWeakSet = Ev, ft.join = _m, ft.kebabCase = vx, ft.last = ki, ft.lastIndexOf = Dm, ft.lowerCase = xx, ft.lowerFirst = bx, ft.lt = Ov, ft.lte = Lv, ft.max = f0, ft.maxBy = g0, ft.mean = m0, ft.meanBy = y0, ft.min = v0, ft.minBy = x0, ft.stubArray = Qa, ft.stubFalse = th, ft.stubObject = n0, ft.stubString = o0, ft.stubTrue = s0, ft.multiply = b0, ft.nth = Im, ft.noConflict = Kx, ft.noop = qa, ft.now = Jo, ft.pad = Sx, ft.padEnd = wx, ft.padStart = Mx, ft.parseInt = Cx, ft.random = dx, ft.reduce = By, ft.reduceRight = jy, ft.repeat = kx, ft.replace = Ax, ft.result = rx, ft.round = S0, ft.runInContext = wt, ft.sample = zy, ft.size = Gy, ft.snakeCase = Tx, ft.some = Hy, ft.sortedIndex = Ym, ft.sortedIndexBy = Xm, ft.sortedIndexOf = Gm, ft.sortedLastIndex = Hm, ft.sortedLastIndexBy = Fm, ft.sortedLastIndexOf = Um, ft.startCase = Ex, ft.startsWith = Ox, ft.subtract = w0, ft.sum = M0, ft.sumBy = C0, ft.template = Lx, ft.times = a0, ft.toFinite = or, ft.toInteger = ne, ft.toLength = cp, ft.toLower = _x, ft.toNumber = Ai, ft.toSafeInteger = _v, ft.toString = xe, ft.toUpper = Dx, ft.trim = Ix, ft.trimEnd = Rx, ft.trimStart = Nx, ft.truncate = Bx, ft.unescape = jx, ft.uniqueId = l0, ft.upperCase = Wx, ft.upperFirst = $a, ft.each = Kc, ft.eachRight = Jc, ft.first = Uc, Ja(ft, function() {
  23556. var e = {};
  23557. return Yi(ft, function(M, K) {
  23558. Se.call(ft.prototype, K) || (e[K] = M);
  23559. }), e;
  23560. }(), { chain: !1 }), ft.VERSION = h, bi(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
  23561. ft[e].placeholder = ft;
  23562. }), bi(["drop", "take"], function(e, M) {
  23563. ce.prototype[e] = function(K) {
  23564. K = K === E ? 1 : Ye(ne(K), 0);
  23565. var ot = this.__filtered__ && !M ? new ce(this) : this.clone();
  23566. return ot.__filtered__ ? ot.__takeCount__ = Ze(K, ot.__takeCount__) : ot.__views__.push({
  23567. size: Ze(K, T),
  23568. type: e + (ot.__dir__ < 0 ? "Right" : "")
  23569. }), ot;
  23570. }, ce.prototype[e + "Right"] = function(K) {
  23571. return this.reverse()[e](K).reverse();
  23572. };
  23573. }), bi(["filter", "map", "takeWhile"], function(e, M) {
  23574. var K = M + 1, ot = K == t || K == n;
  23575. ce.prototype[e] = function(ut) {
  23576. var mt = this.clone();
  23577. return mt.__iteratees__.push({
  23578. iteratee: qt(ut, 3),
  23579. type: K
  23580. }), mt.__filtered__ = mt.__filtered__ || ot, mt;
  23581. };
  23582. }), bi(["head", "last"], function(e, M) {
  23583. var K = "take" + (M ? "Right" : "");
  23584. ce.prototype[e] = function() {
  23585. return this[K](1).value()[0];
  23586. };
  23587. }), bi(["initial", "tail"], function(e, M) {
  23588. var K = "drop" + (M ? "" : "Right");
  23589. ce.prototype[e] = function() {
  23590. return this.__filtered__ ? new ce(this) : this[K](1);
  23591. };
  23592. }), ce.prototype.compact = function() {
  23593. return this.filter(hi);
  23594. }, ce.prototype.find = function(e) {
  23595. return this.filter(e).head();
  23596. }, ce.prototype.findLast = function(e) {
  23597. return this.reverse().find(e);
  23598. }, ce.prototype.invokeMap = ae(function(e, M) {
  23599. return typeof e == "function" ? new ce(this) : this.map(function(K) {
  23600. return Yn(K, e, M);
  23601. });
  23602. }), ce.prototype.reject = function(e) {
  23603. return this.filter(Qo(qt(e)));
  23604. }, ce.prototype.slice = function(e, M) {
  23605. e = ne(e);
  23606. var K = this;
  23607. return K.__filtered__ && (e > 0 || M < 0) ? new ce(K) : (e < 0 ? K = K.takeRight(-e) : e && (K = K.drop(e)), M !== E && (M = ne(M), K = M < 0 ? K.dropRight(-M) : K.take(M - e)), K);
  23608. }, ce.prototype.takeRightWhile = function(e) {
  23609. return this.reverse().takeWhile(e).reverse();
  23610. }, ce.prototype.toArray = function() {
  23611. return this.take(T);
  23612. }, Yi(ce.prototype, function(e, M) {
  23613. var K = /^(?:filter|find|map|reject)|While$/.test(M), ot = /^(?:head|last)$/.test(M), ut = ft[ot ? "take" + (M == "last" ? "Right" : "") : M], mt = ot || /^find/.test(M);
  23614. ut && (ft.prototype[M] = function() {
  23615. var xt = this.__wrapped__, bt = ot ? [1] : arguments, Mt = xt instanceof ce, It = bt[0], Rt = Mt || ie(xt), Bt = function(le) {
  23616. var pe = ut.apply(ft, vr([le], bt));
  23617. return ot && Yt ? pe[0] : pe;
  23618. };
  23619. Rt && K && typeof It == "function" && It.length != 1 && (Mt = Rt = !1);
  23620. var Yt = this.__chain__, Ut = !!this.__actions__.length, Qt = mt && !Yt, se = Mt && !Ut;
  23621. if (!mt && Rt) {
  23622. xt = se ? xt : new ce(this);
  23623. var te = e.apply(xt, bt);
  23624. return te.__actions__.push({ func: Zo, args: [Bt], thisArg: E }), new wi(te, Yt);
  23625. }
  23626. return Qt && se ? e.apply(this, bt) : (te = this.thru(Bt), Qt ? ot ? te.value()[0] : te.value() : te);
  23627. });
  23628. }), bi(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
  23629. var M = So[e], K = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", ot = /^(?:pop|shift)$/.test(e);
  23630. ft.prototype[e] = function() {
  23631. var ut = arguments;
  23632. if (ot && !this.__chain__) {
  23633. var mt = this.value();
  23634. return M.apply(ie(mt) ? mt : [], ut);
  23635. }
  23636. return this[K](function(xt) {
  23637. return M.apply(ie(xt) ? xt : [], ut);
  23638. });
  23639. };
  23640. }), Yi(ce.prototype, function(e, M) {
  23641. var K = ft[M];
  23642. if (K) {
  23643. var ot = K.name + "";
  23644. Se.call(sn, ot) || (sn[ot] = []), sn[ot].push({ name: M, func: K });
  23645. }
  23646. }), sn[Xo(E, P).name] = [{
  23647. name: "wrapper",
  23648. func: E
  23649. }], ce.prototype.clone = jf, ce.prototype.reverse = Wf, ce.prototype.value = zf, ft.prototype.at = gy, ft.prototype.chain = my, ft.prototype.commit = yy, ft.prototype.next = vy, ft.prototype.plant = by, ft.prototype.reverse = Sy, ft.prototype.toJSON = ft.prototype.valueOf = ft.prototype.value = wy, ft.prototype.first = ft.prototype.head, In && (ft.prototype[In] = xy), ft;
  23650. }, rn = yf();
  23651. Rr ? ((Rr.exports = rn)._ = rn, Ks._ = rn) : Ue._ = rn;
  23652. }).call(Fr);
  23653. })(ws, ws.exports);
  23654. var Ww = ws.exports;
  23655. const Ms = /* @__PURE__ */ Cn(Ww);
  23656. j0(Sn);
  23657. R0(Sn);
  23658. D0(Sn);
  23659. B0(Sn);
  23660. let ls = null, _e = Le(null), Fe = Le("zh"), ah = Le(""), re = Le(null);
  23661. const Tt = k0({
  23662. //极值数据
  23663. leftIndex: -1,
  23664. //左侧上下限对应下标
  23665. rightIndex: -1,
  23666. //右侧上下限对应下标
  23667. rightTwoIndex: -1,
  23668. //右2上下限对应下标
  23669. hasLeftAxis: !1,
  23670. hasRightAxis: !1,
  23671. hasRightTwoAxis: !1,
  23672. hasXAxis: !1,
  23673. leftMin: 0,
  23674. leftMax: 0,
  23675. rightMin: 0,
  23676. rightMax: 0,
  23677. rightTwoMin: 0,
  23678. rightTwoMax: 0,
  23679. xMin: 0,
  23680. xMax: 0
  23681. });
  23682. let ci = !1, Wu = Le(!1);
  23683. const Fh = Le(document.body.clientWidth < 1200 ? "phone" : "pc");
  23684. function zw() {
  23685. return {
  23686. options: re,
  23687. axisLimitState: Tt,
  23688. chartRender: Yw,
  23689. setLimitData: aM,
  23690. isUseSelfLimit: Wu
  23691. };
  23692. }
  23693. function Yw({ data: r, renderId: f, lang: E = "zh", changeLangIsCheck: h, showChartTitle: y = !0, shouldUseSelfLimit: j = !1 }) {
  23694. Tt.leftIndex = -1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1, Tt.hasLeftAxis = !1, Tt.hasRightAxis = !1, Tt.hasRightTwoAxis = !1, Tt.hasXAxis = !1, Wu.value || (Tt.leftMin = 0, Tt.leftMax = 0, Tt.rightMin = 0, Tt.rightMax = 0, Tt.rightTwoMin = 0, Tt.rightTwoMax = 0, Tt.xMin = 0, Tt.xMax = 0);
  23695. let I = {};
  23696. Fe.value = E, ah.value = f, _e.value = r, ci = j, [1, 11].includes(r.ChartInfo.Source) ? I = {
  23697. 1: Ep,
  23698. 2: $w,
  23699. 3: lh,
  23700. 4: lh,
  23701. 5: Zw,
  23702. 6: lh,
  23703. 7: qw,
  23704. 10: rM,
  23705. 11: oM
  23706. }[r.ChartInfo.ChartType](r) : [2, 5].includes(r.ChartInfo.Source) ? I = eM(r) : [3].includes(r.ChartInfo.Source) ? I = iM(r) : [4, 6, 7, 8].includes(r.ChartInfo.Source) ? I = Ep(r) : [9].includes(r.ChartInfo.Source) ? I = Vw(r) : r.ChartInfo.Source === 10 && (Tt.hasLeftAxis = !0, Tt.leftMin = r.ChartInfo.LeftMin ? Number(r.ChartInfo.LeftMin) : Number(r.DataResp.YMinValue), Tt.leftMax = r.ChartInfo.LeftMax ? Number(r.ChartInfo.LeftMax) : Number(r.DataResp.YMaxValue), Tt.hasXAxis = !0, Tt.xMin = r.ChartInfo.XMin ? Number(r.ChartInfo.XMin) : Number(r.DataResp.XMinValue), Tt.xMax = r.ChartInfo.XMax ? Number(r.ChartInfo.XMax) : Number(r.DataResp.XMaxValue), I = nM(r));
  23707. let Z = Xw();
  23708. return re.value = { ...gs, ...Z, ...I }, Uw(y), Fw(h), (I.series ? I.series.some((U) => U.chartType === "linear") : !1) ? ls = Sn.chart(ah.value, re.value) : ls = Sn.stockChart(ah.value, re.value), ls;
  23709. }
  23710. function Xw() {
  23711. if (!_e.value.ChartInfo.ChartThemeStyle)
  23712. return {};
  23713. let r = JSON.parse(_e.value.ChartInfo.ChartThemeStyle);
  23714. return {
  23715. legend: {
  23716. ...gs.legend,
  23717. ...r.legendOptions
  23718. },
  23719. chart: {
  23720. ...gs.chart,
  23721. ...r.drawOption
  23722. },
  23723. colors: r.colorsOptions
  23724. };
  23725. }
  23726. function Vi(r, f) {
  23727. const { MarkersLines: E, ChartType: h } = _e.value.ChartInfo, { EdbInfoList: y } = _e.value;
  23728. return E ? JSON.parse(E).filter((F) => F.isShow && F.axis === r).map((F) => {
  23729. let U = r === 3 && f === "datetime", H;
  23730. if (U) {
  23731. let W = h === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23732. H = h === 2 ? (/* @__PURE__ */ new Date(`${W}-${F.value}`)).getTime() : new Date(F.value).getTime();
  23733. } else
  23734. H = Number(F.value);
  23735. return {
  23736. value: H,
  23737. dashStyle: F.dashStyle,
  23738. width: Number(F.lineWidth),
  23739. color: F.color,
  23740. label: {
  23741. text: F.text || "",
  23742. verticalAlign: F.textPosition,
  23743. style: {
  23744. color: F.textColor,
  23745. fontSize: F.textFontSize
  23746. }
  23747. }
  23748. };
  23749. }) : [];
  23750. }
  23751. function $i(r, f) {
  23752. const { MarkersAreas: E, ChartType: h } = _e.value.ChartInfo, { EdbInfoList: y } = _e.value;
  23753. return E ? JSON.parse(E).filter((F) => F.isShow && F.axis === r).map((F) => {
  23754. let U = r === 3 && f === "datetime", H, W;
  23755. if (U) {
  23756. let S = h === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23757. H = h === 2 ? (/* @__PURE__ */ new Date(`${S}-${F.fromValue}`)).getTime() : new Date(F.fromValue).getTime(), W = h === 2 ? (/* @__PURE__ */ new Date(`${S}-${F.toValue}`)).getTime() : new Date(F.toValue).getTime();
  23758. } else
  23759. H = Number(F.fromValue), W = Number(F.toValue);
  23760. let R = {
  23761. top: 12,
  23762. middle: 0,
  23763. bottom: -10
  23764. };
  23765. return {
  23766. from: H,
  23767. to: W,
  23768. color: F.color,
  23769. label: {
  23770. text: F.text || "",
  23771. verticalAlign: F.textPosition,
  23772. y: R[F.textPosition],
  23773. style: {
  23774. color: F.textColor,
  23775. fontSize: F.textFontSize
  23776. }
  23777. }
  23778. };
  23779. }) : [];
  23780. }
  23781. function zu({ LatestDate: r, PredictChartColor: f }) {
  23782. return {
  23783. zoneAxis: "x",
  23784. zones: [{
  23785. value: new Date(r).getTime() + 1
  23786. }, {
  23787. dashStyle: "ShortDot",
  23788. color: f
  23789. }]
  23790. };
  23791. }
  23792. function Gw(r) {
  23793. return r ? {
  23794. zoneAxis: "x",
  23795. zones: [{
  23796. value: new Date(r).getTime() + 1
  23797. }, {
  23798. dashStyle: "ShortDot"
  23799. }]
  23800. } : {};
  23801. }
  23802. function Yu(r, f, E) {
  23803. let h = Xt(f).diff(Xt(r), "years", !0);
  23804. return !!([5, 6].includes(E) && h <= 1);
  23805. }
  23806. function hh(r, f) {
  23807. const { IsAxis: E, IsOrder: h, EdbInfoType: y, LeadValue: j, LeadUnit: I } = r, Z = f == "zh" ? {
  23808. 0: "右轴",
  23809. 2: "右2轴"
  23810. } : {
  23811. 0: "RHS",
  23812. 2: "2-RHS"
  23813. }, F = f == "zh" ? {
  23814. 1: "逆序"
  23815. } : {
  23816. 1: "REV"
  23817. }, U = f == "zh" ? {
  23818. 0: "领先"
  23819. } : {
  23820. 0: "Lead"
  23821. }, H = f === "zh" ? I : E0[I];
  23822. let W = Z[E] || "", R = F[Number(h)] ? `${W ? "," : ""}${F[Number(h)]}` : "", S = U[y] ? `${W || R ? "," : ""}${U[y]}${j}${H}` : "";
  23823. return W || R || S ? `(${W}${R}${S})` : "";
  23824. }
  23825. function Cs(r, f, E = "zh") {
  23826. let h = "";
  23827. const y = r.EdbNameEn ? `${r.EdbNameEn}${hh(r, "en")}` : "", j = f.length > 1 ? `${r.EdbAliasName || r.EdbName}(${r.SourceName})${hh(r, "zh")}` : `${r.EdbAliasName || r.EdbName}${hh(r, "zh")}`;
  23828. if (h = E == "zh" ? j : y || j, h.length > 20) {
  23829. let I = [];
  23830. for (let Z = 0; Z < h.length / 20; Z++)
  23831. I.push(h.slice(Z * 20, Z * 20 + 20));
  23832. h = I.join("<br>");
  23833. }
  23834. return h;
  23835. }
  23836. function Xu(r) {
  23837. let f = r.filter((y) => y.IsAxis === 1), E = r.filter((y) => !y.IsAxis), h = r.filter((y) => y.IsAxis === 2);
  23838. return [f, E, h].flat(1 / 0);
  23839. }
  23840. function Hw() {
  23841. let r = !0;
  23842. return _e.value.ChartInfo.ChartNameEn || (r = !1), _e.value.EdbInfoList.forEach((f) => {
  23843. f.EdbNameEn || (r = !1), _e.value.ChartInfo.ChartType !== 10 && f.Unit && !f.UnitEn && (r = !1);
  23844. }), r;
  23845. }
  23846. function Fw(r) {
  23847. if (r && !Hw())
  23848. return;
  23849. const { ChartType: f, Source: E } = _e.value.ChartInfo;
  23850. E == 1 && (f == 5 ? (re.value.yAxis.title.text = Fe.value == "zh" ? re.value.yAxis.title.textZh : re.value.yAxis.title.textEn, re.value.xAxis.title.text = Fe.value == "zh" ? re.value.xAxis.title.textZh : re.value.xAxis.title.textEn, re.value.series.forEach((h) => {
  23851. h.name = Fe.value == "zh" ? h.nameZh : h.nameEn;
  23852. }), re.value.tooltip.formatter = Fe.value == "zh" ? re.value.tooltip.formatterZh : re.value.tooltip.formatterEn) : (re.value.yAxis.forEach((h) => {
  23853. h.title.text = Fe.value == "zh" ? h.title.textZh : h.title.textEn;
  23854. }), f != 2 && re.value.series.forEach((h) => {
  23855. h.name = Fe.value == "zh" ? h.nameZh : h.nameEn != "无英文名称" ? h.nameEn : `<span style="color:#999">${h.nameEn}</span>`;
  23856. }), f === 10 && (re.value.xAxis.title.text = Fe.value == "zh" ? re.value.xAxis.title.textZh : re.value.xAxis.title.textEn, re.value.tooltip.formatter = Fe.value == "zh" ? re.value.tooltip.formatterCh : re.value.tooltip.formatterEn, re.value.series.forEach((h) => {
  23857. h.linkedTo || h.data.forEach((y) => {
  23858. y.dataLabels.format = Fe.value == "zh" ? y.dataLabels.formatZh : y.dataLabels.formatEn || "无英文标签", y.dataLabels.color = Fe.value === "en" && !y.dataLabels.formatEn ? "#999" : "#333";
  23859. });
  23860. })), [7, 11].includes(f) && (re.value.xAxis.categories = _e.value.XEdbIdValue.map((h) => Fe.value == "zh" ? _e.value.EdbInfoList.find((y) => y.EdbInfoId === h).EdbAliasName || _e.value.EdbInfoList.find((y) => y.EdbInfoId === h).EdbName : _e.value.EdbInfoList.find((y) => y.EdbInfoId === h).EdbNameEn)))), [2, 3, 4].includes(E) && (re.value.yAxis.forEach((h) => {
  23861. h.title.text = Fe.value == "zh" ? h.title.textZh : h.title.textEn || h.title.textZh;
  23862. }), re.value.series.forEach((h) => {
  23863. h.name = Fe.value == "en" && h.nameEn || h.nameZh;
  23864. }), re.value.tooltip.formatter = Fe.value == "en" ? re.value.tooltip.formatterEn : re.value.tooltip.formatterZh, E == 2 && (re.value.xAxis.categories = Vr.value.filter((h) => h.IsHide === 0).map((h) => Fe.value == "en" ? h.NameEn : h.Name)), [3].includes(E) && (re.value.xAxis.title.text = Fe.value == "en" && re.value.xAxis.title.textEn || re.value.xAxis.title.textZh));
  23865. }
  23866. function Uw(r) {
  23867. if (r) {
  23868. const f = _e.value.ChartInfo;
  23869. re.value.title.textZh = f.ChartName, re.value.title.textEn = f.ChartNameEn, re.value.title.text = Fe.value == "zh" ? re.value.title.textZh : re.value.title.textEn || re.value.title.textZh;
  23870. } else
  23871. re.value.title.text = "";
  23872. }
  23873. function Vw(r) {
  23874. Tt.leftIndex = -1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1;
  23875. const f = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null, { DataList: E, LeftMaxValue: h, LeftMinValue: y, RightMaxValue: j, RightMinValue: I } = r.DataResp, Z = {
  23876. ...Mn,
  23877. tickWidth: 1,
  23878. labels: {
  23879. style: {
  23880. ...f && f.xAxisOptions.style
  23881. }
  23882. }
  23883. };
  23884. let F = [], U = [];
  23885. return E.forEach((W, R) => {
  23886. let S = {
  23887. ...Lr,
  23888. title: {
  23889. text: W.Unit,
  23890. textCh: W.Unit,
  23891. // 中文
  23892. textEn: W.UnitEn || W.Unit,
  23893. align: "high",
  23894. rotation: 0,
  23895. y: -15,
  23896. reserveSpace: !1,
  23897. style: {
  23898. ...f && f.yAxisOptions.style
  23899. }
  23900. },
  23901. labels: {
  23902. style: {
  23903. ...f && f.yAxisOptions.style
  23904. }
  23905. },
  23906. opposite: W.IsAxis !== 1,
  23907. min: Number(R === 0 ? y : I),
  23908. max: Number(R === 0 ? h : j),
  23909. tickWidth: 1
  23910. };
  23911. const v = f ? R % f.lineOptionList.length : R;
  23912. let d = {
  23913. data: W.Value.map((u) => [u.X, u.Y]),
  23914. dashStyle: f && f.lineOptionList[v].dashStyle || "Solid",
  23915. type: f && f.lineOptionList[v].lineType || "spline",
  23916. yAxis: R,
  23917. name: W.Name,
  23918. nameZh: W.Name,
  23919. nameEn: W.NameEn || W.Name,
  23920. color: W.Color,
  23921. lineWidth: f && f.lineOptionList[v].lineWidth || 3,
  23922. chartType: "linear",
  23923. zIndex: 1
  23924. };
  23925. U.push(d), F.push(S);
  23926. }), {
  23927. title: {
  23928. text: ""
  23929. },
  23930. tooltip: {
  23931. formatter: function() {
  23932. let W = E[0].Value.map((d) => d.X), R = W[1] - W[0], v = `<b>${`[${this.x},${this.x + R}]`}</b>`;
  23933. return this.points.forEach((d) => {
  23934. v += `<br><span style="color:${d.color}">●</span>${d.series.name}: ${d.y}%<br>`;
  23935. }), v;
  23936. },
  23937. shared: !0
  23938. },
  23939. series: U,
  23940. yAxis: F,
  23941. xAxis: Z
  23942. };
  23943. }
  23944. function Ep(r) {
  23945. const f = r.ChartInfo.Source === 1, E = [4, 6, 7, 8].includes(r.ChartInfo.Source) ? [r.DataResp] : r.EdbInfoList;
  23946. let h = [], y = [], j = {}, I = E.findIndex((d) => d.IsAxis === 1), Z = E.findIndex((d) => !d.IsAxis), F = E.findIndex((d) => d.IsAxis === 2);
  23947. Tt.leftIndex = I, Tt.rightIndex = Z, Tt.rightTwoIndex = F;
  23948. const U = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  23949. let H = [], W = E.some((d) => d.IsAxis === 2) ? Xu(E) : E;
  23950. W.forEach((d, u) => {
  23951. let P = W.findIndex((t) => t.IsAxis === d.IsAxis), O = d.EdbName, N = W.filter(
  23952. (t) => O === t.EdbName
  23953. ), C = Cs(d, N, "zh"), b = Cs(d, N, "en"), w = d.EdbInfoCategoryType === 1 ? zu(d) : {};
  23954. const x = U ? u % U.lineOptionList.length : u;
  23955. let a = {
  23956. data: [],
  23957. dataGrouping: {
  23958. enabled: !1
  23959. },
  23960. type: U && U.lineOptionList[x].lineType || "spline",
  23961. dashStyle: U && U.lineOptionList[x].dashStyle || "Solid",
  23962. yAxis: u,
  23963. name: C,
  23964. nameZh: C,
  23965. nameEn: b,
  23966. color: d.ChartColor,
  23967. lineWidth: Number(d.ChartWidth) || U && U.lineOptionList[x].lineWidth || 1,
  23968. visible: !0,
  23969. LatestDate: d.LatestDate,
  23970. LatestValue: d.LatestValue,
  23971. marker: U && U.lineOptionList[x].dataMark && U.lineOptionList[x].dataMark != "none" ? {
  23972. enabled: !0,
  23973. symbol: U.lineOptionList[x].markType || "circle",
  23974. fillColor: U.lineOptionList[x].markColor,
  23975. radius: U.lineOptionList[x].markSize
  23976. } : {},
  23977. ...w
  23978. };
  23979. d.DataList = d.DataList || [];
  23980. for (let t of d.DataList)
  23981. a.data.push([t.DataTimestamp, t.Value]);
  23982. h.push(a), d.IsAxis, console.log("useSelfLimit", ci);
  23983. let c = 0, p = 0;
  23984. if ((!ci || !f) && (c = d.MinData, p = d.MaxData), ci && f) {
  23985. const t = {
  23986. 0: ["rightMin", "rightMax"],
  23987. 1: ["leftMin", "leftMax"],
  23988. 2: ["rightTwoMin", "rightTwoMax"]
  23989. };
  23990. t[d.IsAxis] && (c = Tt[`${t[d.IsAxis][0]}`] || 0, p = Tt[`${t[d.IsAxis][1]}`] || 0);
  23991. }
  23992. const i = d.ConvertUnit || d.Unit, l = d.ConvertEnUnit || d.UnitEn || d.ConvertUnit || d.Unit;
  23993. let s = {
  23994. ...Lr,
  23995. IsAxis: d.IsAxis,
  23996. labels: {
  23997. formatter: function(t) {
  23998. return P !== u ? "" : t.value;
  23999. },
  24000. align: "center",
  24001. x: [0, 2].includes(d.IsAxis) ? 5 : -5,
  24002. style: {
  24003. ...U && U.yAxisOptions.style
  24004. }
  24005. },
  24006. tickWidth: P !== u ? 0 : 1,
  24007. title: {
  24008. text: P !== u ? "" : `${i}`,
  24009. textZh: i,
  24010. //中文单位
  24011. textEn: i ? l : "",
  24012. //英文单位,但如果无中文单位则不显示
  24013. align: "high",
  24014. rotation: 0,
  24015. y: -15,
  24016. x: d.IsAxis === 0 && F > -1 ? -W[F].Unit.length * 12 : 0,
  24017. textAlign: d.IsAxis === 1 ? "left" : "right",
  24018. reserveSpace: !1,
  24019. style: {
  24020. ...U && U.yAxisOptions.style
  24021. }
  24022. },
  24023. opposite: [0, 2].includes(d.IsAxis),
  24024. reversed: d.IsOrder,
  24025. min: Number(c),
  24026. max: Number(p),
  24027. visible: P === u,
  24028. chartEdbInfo: d,
  24029. //指标数据用于在保存时读取指标数据
  24030. plotBands: $i(d.IsAxis),
  24031. plotLines: Vi(d.IsAxis)
  24032. };
  24033. y.push(s), d.DataList.length > 0 && (H.push(d.DataList[0].DataTimestamp), H.push(d.DataList[d.DataList.length - 1].DataTimestamp));
  24034. });
  24035. let R = Math.min.apply(null, H), S = Math.max.apply(null, H);
  24036. const v = Yu(R, S, r.ChartInfo.DateType);
  24037. return j = {
  24038. ...Xp,
  24039. labels: {
  24040. formatter: function(d) {
  24041. return v ? to.dateFormat("%m/%d", d.value) : to.dateFormat("%y/%m", d.value);
  24042. },
  24043. style: {
  24044. ...U && U.xAxisOptions.style
  24045. }
  24046. },
  24047. tickInterval: Fh.value === "phone" ? (S - R) / 6 / (24 * 3600 * 1e3) > 30 ? (S - R) / 6 : 24 * 3600 * 1e3 * 30 : void 0,
  24048. plotBands: $i(3, "datetime"),
  24049. plotLines: Vi(3, "datetime")
  24050. }, y.forEach((d) => {
  24051. d.IsAxis === 1 ? (Tt.hasLeftAxis = !0, (!ci || !f) && (Tt.leftMin = E[I].MinData, Tt.leftMax = E[I].MaxData, d.min = E[I].MinData, d.max = E[I].MaxData)) : d.IsAxis === 2 ? (Tt.hasRightTwoAxis = !0, (!ci || !f) && (Tt.rightTwoMin = E[F].MinData, Tt.rightTwoMax = E[F].MaxData, d.min = E[F].MinData, d.max = E[F].MaxData)) : (Tt.hasRightAxis = !0, (!ci || !f) && (Tt.rightMin = E[Z].MinData, Tt.rightMax = E[Z].MaxData, d.min = E[Z].MinData, d.max = E[Z].MaxData));
  24052. }), {
  24053. series: h,
  24054. xAxis: [j],
  24055. yAxis: y,
  24056. rangeSelector: { enabled: !1 }
  24057. };
  24058. }
  24059. function $w(r) {
  24060. var C;
  24061. Tt.leftIndex = 0;
  24062. const { RightAxis: f = {} } = r.DataResp || {};
  24063. Tt.rightIndex = f.IsShow ? 1 : -1, Tt.rightTwoIndex = -1;
  24064. const E = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24065. let h = {};
  24066. const y = r.EdbInfoList[0], j = r.ChartInfo.Calendar || "公历", I = E && E.colorsOptions.reverse();
  24067. let Z = [], F = [];
  24068. const U = j === "农历" ? y.DataList.filter((b, w) => w > 0) : y.DataList;
  24069. E && (E.lineOptionList = E.lineOptionList.reverse().slice(-U.length)), U.forEach((b, w) => {
  24070. let x = y.EdbInfoCategoryType === 1 ? Gw(b.CuttingDataTimestamp) : {};
  24071. const a = E ? w % E.lineOptionList.length : w;
  24072. let c = {
  24073. data: [],
  24074. dataGrouping: {
  24075. enabled: !1
  24076. },
  24077. type: E && E.lineOptionList[a].lineType || y.ChartStyle,
  24078. dashStyle: E && E.lineOptionList[a].dashStyle || "Solid",
  24079. yAxis: 0,
  24080. name: b.ChartLegend,
  24081. lineWidth: E && E.lineOptionList[a].lineWidth || 1,
  24082. // color:colorsArr.slice(-chartDataHandle.length)[lineIndex], //与PC端的配置不同步,导致两边 十条之后的线条颜色不对应
  24083. visible: !0,
  24084. marker: E && E.lineOptionList[a].dataMark && E.lineOptionList[a].dataMark != "none" ? {
  24085. enabled: !0,
  24086. symbol: E.lineOptionList[a].markType || "circle",
  24087. fillColor: E.lineOptionList[a].markColor,
  24088. radius: E.lineOptionList[a].markSize
  24089. } : {},
  24090. ...x
  24091. };
  24092. b.DataList = b.DataList || [];
  24093. for (let p of b.DataList)
  24094. c.data.push([p.DataTimestamp, p.Value]);
  24095. Z.push(c);
  24096. }), h.colors = I.slice(-U.length);
  24097. const { MaxMinLimits: H = {}, SamePeriodAverage: W = {}, SamePeriodStandardDeviation: R = {} } = r.DataResp || {};
  24098. if (H.IsShow && H.List && H.List.length) {
  24099. let b = {
  24100. type: "arearange",
  24101. //上下限是一个范围
  24102. data: [],
  24103. name: H.Legend || "同期上下限",
  24104. color: H.Color || "#075EEE",
  24105. fillOpacity: os(H.Color || "") > 0.75 ? 0.75 : os(H.Color || "")
  24106. //透明度最高0.75
  24107. };
  24108. H.List.forEach((w) => {
  24109. b.data.push([w.DataTimestamp, w.MinValue, w.MaxValue]);
  24110. }), Z.push(b);
  24111. }
  24112. if (W.IsShow && W.List) {
  24113. let b = {
  24114. type: "line",
  24115. data: [],
  24116. lineWidth: W.LineWidth,
  24117. dashStyle: W.LineType,
  24118. name: W.Legend || "同期均值",
  24119. color: W.Color || "#075EEE"
  24120. };
  24121. W.List.forEach((w) => {
  24122. b.data.push([w.DataTimestamp, w.Value]);
  24123. }), Z.push(b);
  24124. }
  24125. if (R.IsShow && R.List) {
  24126. let b = {
  24127. type: "arearange",
  24128. //标准差也是一个范围
  24129. data: [],
  24130. name: R.Legend || "同期标准差",
  24131. color: R.Color || "#075EEE",
  24132. fillOpacity: os(R.Color || "") > 0.75 ? 0.75 : os(R.Color || "")
  24133. };
  24134. R.List.forEach((w) => {
  24135. b.data.push([w.DataTimestamp, w.MinValue, w.MaxValue]);
  24136. }), Z.push(b);
  24137. }
  24138. if (f.IsShow) {
  24139. let w = {
  24140. ...f.Style === "column" ? {
  24141. //柱形
  24142. type: "column",
  24143. color: f.ChartColor
  24144. } : {
  24145. //标记点
  24146. type: "spline",
  24147. lineWidth: f.LineWidth,
  24148. dashStyle: f.LineStyle,
  24149. color: f.IsConnected ? f.LineColor : "rgba(255, 255, 255, 0)",
  24150. //没有连线颜色设置为透明
  24151. marker: {
  24152. enabled: !0,
  24153. symbol: f.Shape,
  24154. fillColor: f.ChartColor,
  24155. radius: f.Size
  24156. }
  24157. },
  24158. name: f.Legend || "",
  24159. data: [],
  24160. yAxis: 1
  24161. };
  24162. ((f.IndicatorType === 1 ? f.EdbInfoList[0].DataList : (C = r.EdbInfoList[1]) == null ? void 0 : C.DataList) || []).forEach((a) => {
  24163. w.data.push([a.DataTimestamp, a.Value]);
  24164. }), Z.push(w);
  24165. }
  24166. let S = 0, v = 0, d = 0, u = 0;
  24167. ci ? (S = Tt.leftMin || 0, v = Tt.leftMax || 0, Tt.rightIndex !== -1 && (d = Tt.rightMin || 0, u = Tt.rightMax || 0)) : (S = y.MinData, v = y.MaxData);
  24168. const P = y.ConvertUnit || y.Unit, O = y.ConvertEnUnit || y.UnitEn || y.ConvertUnit || y.Unit;
  24169. if (F = [{
  24170. IsAxis: y.IsAxis,
  24171. labels: {
  24172. align: "center",
  24173. y: 5,
  24174. style: {
  24175. ...E && E.yAxisOptions.style
  24176. }
  24177. },
  24178. title: {
  24179. text: `${P}`,
  24180. textZh: P,
  24181. // 中文
  24182. // 中文不存在,无论英文有无都显示空
  24183. textEn: P ? O || "英文单位" : "",
  24184. // 英文
  24185. align: "high",
  24186. rotation: 0,
  24187. y: -5,
  24188. x: 0,
  24189. textAlign: "left",
  24190. reserveSpace: !1,
  24191. style: {
  24192. ...E && E.yAxisOptions.style
  24193. }
  24194. },
  24195. max: Number(v),
  24196. min: Number(S),
  24197. plotBands: $i(1),
  24198. plotLines: Vi(1),
  24199. lineWidth: 1,
  24200. lineColor: "#bfbfbf",
  24201. tickColor: "#bfbfbf",
  24202. offset: 0,
  24203. opposite: !1,
  24204. reversed: !1,
  24205. visible: !0,
  24206. gridLineWidth: 0,
  24207. tickWidth: 1,
  24208. tickLength: 5,
  24209. tickPosition: "inside",
  24210. endOnTick: !1,
  24211. startOnTick: !1,
  24212. showLastLabel: !0,
  24213. //显示最后刻度值
  24214. tickPixelInterval: 50
  24215. // chartEdbInfo:item//指标数据
  24216. }], f.IsShow) {
  24217. const b = (f.IndicatorType === 1 ? f.EdbInfoList[0] : r.EdbInfoList[1]) || { Unit: "" };
  24218. f.IndicatorType === 1 ? b.Unit = f.NumFormat === 1 ? "%" : "" : b.Unit = r.EdbInfoList[1] && (r.EdbInfoList[1].ConvertUnit || r.EdbInfoList[1].Unit) || "", F.push({
  24219. ...P0.yAxis,
  24220. opposite: !0,
  24221. //右轴
  24222. labels: {
  24223. align: "center",
  24224. y: 5,
  24225. style: {
  24226. ...E && E.yAxisOptions.style
  24227. }
  24228. },
  24229. title: {
  24230. text: b.Unit || "",
  24231. style: {
  24232. ...E && E.yAxisOptions.style
  24233. },
  24234. align: "high",
  24235. rotation: 0,
  24236. y: -5,
  24237. x: 0,
  24238. textAlign: "right",
  24239. reserveSpace: !1
  24240. },
  24241. max: Number(u),
  24242. min: Number(d)
  24243. });
  24244. }
  24245. h.series = Z, h.yAxis = F, Tt.hasLeftAxis = !0, ci || (Tt.leftMin = Number(y.MinData), Tt.leftMax = Number(y.MaxData));
  24246. let N = {
  24247. tickPosition: "inside",
  24248. lineColor: "#bfbfbf",
  24249. tickColor: "#bfbfbf",
  24250. tickLength: 5,
  24251. type: "datetime",
  24252. ordinal: !1,
  24253. dateTimeLabelFormats: {
  24254. day: "%y/%m",
  24255. week: "%y/%m",
  24256. month: "%y/%m",
  24257. year: "%y/%m"
  24258. },
  24259. labels: {
  24260. formatter: (b) => to.dateFormat("%m/%d", b.value),
  24261. style: {
  24262. ...E && E.xAxisOptions.style
  24263. }
  24264. },
  24265. tickInterval: Fh.value === "phone" ? 24 * 3600 * 1e3 * 60 : void 0,
  24266. //季节图
  24267. plotBands: $i(3, "datetime"),
  24268. plotLines: Vi(3, "datetime")
  24269. };
  24270. return h.xAxis = [N], h.tooltip = {
  24271. split: !1,
  24272. shared: !0,
  24273. dateTimeLabelFormats: {
  24274. // 时间格式化字符
  24275. day: "%m/%d",
  24276. week: "%m/%d",
  24277. month: "%m/%d",
  24278. year: "%m/%d"
  24279. },
  24280. xDateFormat: "%m/%d"
  24281. }, {
  24282. ...h
  24283. // title: {
  24284. // enabled: true,
  24285. // text:e.ChartInfo.ChartName
  24286. // },
  24287. // legend:{
  24288. // enabled:true,
  24289. // verticalAlign: 'top',
  24290. // y:-10,
  24291. // x:(10 * data.Unit.length)/2
  24292. // }
  24293. };
  24294. }
  24295. function lh(r) {
  24296. const f = r.EdbInfoList;
  24297. let h = {
  24298. 3: "areaspline",
  24299. 4: "column",
  24300. 6: ""
  24301. }[r.ChartInfo.ChartType];
  24302. const y = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24303. let j = [], I = [], Z = {}, F, U, H, W = [], R = f.some((u) => u.IsAxis === 2) ? Xu(f) : f;
  24304. R.forEach((u, P) => {
  24305. let O = R.findIndex((n) => n.IsAxis === u.IsAxis), N = P;
  24306. [3, 4].includes(r.ChartInfo.ChartType) ? N = 0 : r.ChartInfo.ChartType === 6 && ["areaspline", "column"].includes(u.ChartStyle) && (N = R.findIndex((n) => n.ChartStyle === u.ChartStyle)), u.IsAxis = N === P ? u.IsAxis : R[N].IsAxis, u.IsOrder = N === P ? u.IsOrder : R[N].IsOrder, F = [3, 4].includes(r.ChartInfo.ChartType) ? R[N].IsAxis ? N : -1 : f.findIndex((n) => n.IsAxis === 1), U = [3, 4].includes(r.ChartInfo.ChartType) ? R[N].IsAxis ? -1 : N : f.findIndex((n) => !n.IsAxis), H = [3, 4].includes(r.ChartInfo.ChartType) ? -1 : f.findIndex((n) => n.IsAxis === 2), Tt.leftIndex = F, Tt.rightIndex = U, Tt.rightTwoIndex = H;
  24307. let C = u.EdbName, b = R.filter(
  24308. (n) => C === n.EdbName
  24309. ), w = Cs(u, b, "zh"), x = Cs(u, b, "en"), a = u.EdbInfoCategoryType === 1 ? zu(u) : {};
  24310. const c = y ? P % y.lineOptionList.length : P;
  24311. let p = {
  24312. data: [],
  24313. dataGrouping: {
  24314. enabled: !1
  24315. },
  24316. type: h || u.ChartStyle,
  24317. yAxis: N,
  24318. name: w,
  24319. nameZh: w,
  24320. nameEn: x,
  24321. color: u.ChartColor,
  24322. lineWidth: Number(u.ChartWidth) || y && y.lineOptionList[c].lineWidth || 1,
  24323. fillColor: r.ChartInfo.ChartType === 3 || r.ChartInfo.ChartType === 6 && u.ChartStyle === "areaspline" ? u.ChartColor : void 0,
  24324. visible: !0,
  24325. LatestDate: u.LatestDate,
  24326. LatestValue: u.LatestValue,
  24327. ...a
  24328. };
  24329. u.DataList = u.DataList || [];
  24330. for (let n of u.DataList)
  24331. p.data.push([n.DataTimestamp, n.Value]);
  24332. j.push(p);
  24333. let i = 0, l = 0;
  24334. if (!ci)
  24335. i = R[O].MinData, l = R[O].MaxData;
  24336. else {
  24337. const n = {
  24338. 0: ["rightMin", "rightMax"],
  24339. 1: ["leftMin", "leftMax"],
  24340. 2: ["rightTwoMin", "rightTwoMax"]
  24341. };
  24342. n[u.IsAxis] && (i = Tt[`${n[u.IsAxis][0]}`] || 0, l = Tt[`${n[u.IsAxis][1]}`] || 0);
  24343. }
  24344. u.IsAxis;
  24345. const s = u.ConvertUnit || u.Unit, t = u.ConvertEnUnit || u.UnitEn || u.ConvertUnit || u.Unit;
  24346. let o = {
  24347. ...Lr,
  24348. IsAxis: u.IsAxis,
  24349. labels: {
  24350. formatter: function(n) {
  24351. return O !== P ? "" : n.value;
  24352. },
  24353. align: "center",
  24354. x: [0, 2].includes(u.IsAxis) ? 5 : -5,
  24355. style: {
  24356. ...y && y.yAxisOptions.style
  24357. }
  24358. },
  24359. title: {
  24360. // text: sameSideIndex !== index ? '' : `${item.Unit}`,
  24361. text: s,
  24362. textZh: s,
  24363. // 中文
  24364. // 中文不存在,无论英文有无都显示空
  24365. textEn: s ? t || "英文单位" : "",
  24366. // 英文
  24367. align: "high",
  24368. rotation: 0,
  24369. y: -15,
  24370. x: u.IsAxis === 0 && H > -1 ? -R[H].Unit.length * 12 : 0,
  24371. textAlign: u.IsAxis === 1 ? "left" : "right",
  24372. reserveSpace: !1,
  24373. style: {
  24374. ...y && y.yAxisOptions.style
  24375. }
  24376. },
  24377. opposite: [0, 2].includes(u.IsAxis),
  24378. reversed: u.IsOrder,
  24379. min: Number(i),
  24380. max: Number(l),
  24381. tickWidth: O !== P ? 0 : 1,
  24382. visible: N === P && O === P,
  24383. plotBands: $i(u.IsAxis),
  24384. plotLines: Vi(u.IsAxis),
  24385. chartEdbInfo: u
  24386. //指标数据用于在保存时读取指标数据
  24387. };
  24388. I.push(o), u.DataList.length > 0 && (W.push(u.DataList[0].DataTimestamp), W.push(u.DataList[u.DataList.length - 1].DataTimestamp));
  24389. });
  24390. let S = Math.min.apply(null, W), v = Math.max.apply(null, W);
  24391. const d = Yu(S, v, r.ChartInfo.DateType);
  24392. return Z = {
  24393. ...Xp,
  24394. labels: {
  24395. formatter: function(u) {
  24396. return d ? to.dateFormat("%m/%d", u.value) : to.dateFormat("%y/%m", u.value);
  24397. },
  24398. style: {
  24399. ...y && y.xAxisOptions.style
  24400. }
  24401. },
  24402. tickInterval: Fh.value === "phone" ? (v - S) / 6 / (24 * 3600 * 1e3) > 30 ? (v - S) / 6 : 24 * 3600 * 1e3 * 30 : void 0,
  24403. plotBands: $i(3, "datetime"),
  24404. plotLines: Vi(3, "datetime")
  24405. }, I.forEach((u) => {
  24406. u.IsAxis === 1 ? (Tt.hasLeftAxis = !0, ci || (Tt.leftMin = f[F].MinData, Tt.leftMax = f[F].MaxData, u.min = f[F].MinData, u.max = f[F].MaxData)) : u.IsAxis === 2 ? (Tt.hasRightTwoAxis = !0, ci || (Tt.rightTwoMin = f[H].MinData, Tt.rightTwoMax = f[H].MaxData, u.min = f[H].MinData, u.max = f[H].MaxData)) : (Tt.hasRightAxis = !0, ci || (Tt.rightMin = f[U].MinData, Tt.rightMax = f[U].MaxData, u.min = f[U].MinData, u.max = f[U].MaxData));
  24407. }), {
  24408. series: j,
  24409. xAxis: Z,
  24410. yAxis: I,
  24411. rangeSelector: { enabled: !1 }
  24412. };
  24413. }
  24414. function Zw(r) {
  24415. Tt.leftIndex = 1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1;
  24416. const f = r.EdbInfoList, { ChartInfo: E } = r, h = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null;
  24417. Tt.hasLeftAxis = !0;
  24418. const y = [];
  24419. let j = {}, I = Ms.cloneDeep(f)[0].DataList || [], Z = Ms.cloneDeep(f)[1].DataList || [];
  24420. I.forEach((N) => {
  24421. Z.forEach((C) => {
  24422. if (N.DataTimestamp === C.DataTimestamp) {
  24423. let b = N.Value + "_" + C.Value;
  24424. j[b] ? j[b].push(Xt(N.DataTimestamp).format("YYYY/MM/DD")) : j[b] = [Xt(N.DataTimestamp).format("YYYY/MM/DD")], y.push({
  24425. x: N.Value,
  24426. y: C.Value
  24427. });
  24428. }
  24429. });
  24430. }), y.sort((N, C) => N - C);
  24431. let F = {
  24432. formatter: function() {
  24433. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24434. ${f[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24435. ${f[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24436. `;
  24437. },
  24438. // 中文
  24439. formatterCh: function() {
  24440. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24441. ${f[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24442. ${f[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24443. `;
  24444. },
  24445. // 英文
  24446. formatterEn: function() {
  24447. let N = `${f[0].EdbNameEn}`, C = `${f[1].EdbNameEn}`;
  24448. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24449. ${N}: <span style="font-weight: 600"> ${this.x}</span><br>
  24450. ${C}: <span style="font-weight: 600"> ${this.y}</span>
  24451. `;
  24452. }
  24453. };
  24454. const { IsOrder: U, ChartColor: H } = f[0];
  24455. let W = 0, R = 0;
  24456. ci ? (W = Tt.leftMin || 0, R = Tt.leftMax || 0) : (W = r.ChartInfo.LeftMin || 0, R = r.ChartInfo.LeftMax || 0), console.log("check limit", W, R);
  24457. const S = f[1].ConvertUnit || f[1].Unit, v = f[1].ConvertEnUnit || f[1].UnitEn || f[1].ConvertUnit || f[1].Unit;
  24458. let d = {
  24459. title: {
  24460. text: `${S}`,
  24461. textZh: S,
  24462. textEn: S ? v : "",
  24463. align: "high",
  24464. rotation: 0,
  24465. y: -15,
  24466. x: 0,
  24467. textAlign: "left",
  24468. reserveSpace: !1,
  24469. style: {
  24470. ...h && h.yAxisOptions.style
  24471. }
  24472. },
  24473. labels: {
  24474. formatter: function(N) {
  24475. return N.value;
  24476. },
  24477. align: "center",
  24478. style: {
  24479. ...h && h.yAxisOptions.style
  24480. }
  24481. },
  24482. opposite: !1,
  24483. reversed: U,
  24484. min: Number(W),
  24485. max: Number(R),
  24486. tickWidth: 1,
  24487. tickLength: 5,
  24488. lineWidth: 1,
  24489. lineColor: "#bfbfbf",
  24490. tickColor: "#bfbfbf",
  24491. offset: 0,
  24492. visible: !0,
  24493. gridLineWidth: 0,
  24494. tickPosition: "inside",
  24495. endOnTick: !1,
  24496. startOnTick: !1,
  24497. showLastLabel: !0,
  24498. tickPixelInterval: 50,
  24499. plotBands: $i(1),
  24500. plotLines: Vi(1)
  24501. }, u = {
  24502. data: [],
  24503. type: "scatter",
  24504. name: `${E.ChartName}${U ? "(逆序)" : ""}`,
  24505. nameZh: `${E.ChartName}${U ? "(逆序)" : ""}`,
  24506. nameEn: E.ChartNameEn ? `${E.ChartNameEn}${U ? "(reverse)" : ""}` : "",
  24507. color: H,
  24508. visible: !0,
  24509. chartType: "linear",
  24510. marker: {
  24511. radius: h && h.lineOptionList[0].radius || 5
  24512. }
  24513. };
  24514. y.forEach((N) => {
  24515. u.data.push([N.x, N.y]);
  24516. });
  24517. const P = f[0].ConvertUnit || f[0].Unit, O = f[0].ConvertEnUnit || f[0].UnitEn || f[0].ConvertUnit || f[0].Unit;
  24518. return {
  24519. title: {
  24520. text: ""
  24521. },
  24522. series: [u],
  24523. yAxis: d,
  24524. xAxis: {
  24525. ...Mn,
  24526. title: {
  24527. text: `${P}`,
  24528. textZh: P,
  24529. textEn: P ? O : "",
  24530. align: "high",
  24531. rotation: 0,
  24532. x: 0,
  24533. offset: 20,
  24534. style: {
  24535. ...h && h.xAxisOptions.style
  24536. }
  24537. },
  24538. labels: {
  24539. style: {
  24540. ...h && h.xAxisOptions.style
  24541. }
  24542. }
  24543. },
  24544. tooltip: F
  24545. };
  24546. }
  24547. const Gu = Le([]), Hu = Le([]), Kw = Le([]);
  24548. function Jw(r) {
  24549. var H, W, R;
  24550. let f = [];
  24551. const E = Ms.cloneDeep(Gu.value), h = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24552. let y = {
  24553. ...Mn,
  24554. categories: Hu.value,
  24555. tickWidth: 1,
  24556. labels: {
  24557. style: {
  24558. ...h && h.xAxisOptions.style
  24559. }
  24560. }
  24561. };
  24562. const { leftMin: j, leftMax: I } = Tt, Z = (H = r.ChartInfo) == null ? void 0 : H.Unit, F = ((W = r.ChartInfo) == null ? void 0 : W.UnitEn) || ((R = r.ChartInfo) == null ? void 0 : R.Unit);
  24563. let U = {
  24564. ...Lr,
  24565. title: {
  24566. text: Z,
  24567. textZh: Z,
  24568. textEn: F,
  24569. align: "high",
  24570. rotation: 0,
  24571. y: -12,
  24572. x: 0,
  24573. textAlign: "left",
  24574. reserveSpace: !1,
  24575. style: {
  24576. ...h && h.yAxisOptions.style
  24577. }
  24578. },
  24579. labels: {
  24580. formatter: function(S) {
  24581. return S.value;
  24582. },
  24583. align: "center",
  24584. style: {
  24585. ...h && h.yAxisOptions.style
  24586. }
  24587. },
  24588. min: Number(j),
  24589. max: Number(I),
  24590. opposite: !1,
  24591. tickWidth: 1,
  24592. plotBands: $i(1),
  24593. plotLines: Vi(1)
  24594. };
  24595. return E.forEach((S) => {
  24596. let v = {
  24597. data: S.Value,
  24598. type: "column",
  24599. yAxis: 0,
  24600. name: S.Name || S.Date,
  24601. nameZh: S.Name || S.Date,
  24602. nameEn: S.Date,
  24603. color: S.Color,
  24604. chartType: "linear",
  24605. visible: !0
  24606. };
  24607. f.push(v);
  24608. }), {
  24609. title: {
  24610. text: ""
  24611. },
  24612. plotOptions: {
  24613. column: {
  24614. stacking: null
  24615. }
  24616. },
  24617. series: f,
  24618. yAxis: [U],
  24619. xAxis: y
  24620. };
  24621. }
  24622. function qw(r) {
  24623. const { XEdbIdValue: f, YDataList: E, EdbInfoList: h, ChartInfo: y } = r;
  24624. let j = f.map((I) => h.find((Z) => Z.EdbInfoId === I).EdbAliasName);
  24625. return Tt.leftIndex = -1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1, Gu.value = E, Hu.value = j, Kw.value = h, Tt.hasLeftAxis = !0, Tt.leftMin = Number(y.LeftMin), Tt.leftMax = Number(y.LeftMax), Jw(r);
  24626. }
  24627. const Fu = Le([]), Vr = Le([]), Ri = Le([]), Qw = (r, f) => {
  24628. Tt.leftIndex = -1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1;
  24629. const E = _e.value.ChartInfo.ChartThemeStyle ? JSON.parse(_e.value.ChartInfo.ChartThemeStyle) : null;
  24630. let h = [];
  24631. const y = Ms.cloneDeep(Fu.value);
  24632. console.log(y);
  24633. let j = {
  24634. ...Mn,
  24635. categories: Vr.value.filter((F) => F.IsHide === 0).map((F) => F.Name),
  24636. tickWidth: 1,
  24637. labels: {
  24638. style: {
  24639. ...E && E.xAxisOptions.style
  24640. }
  24641. }
  24642. }, I = {
  24643. ...Lr,
  24644. title: {
  24645. text: Ri.value[0].Unit,
  24646. textZh: Ri.value[0].Unit,
  24647. textEn: Ri.value[0].Unit ? Ri.value[0].UnitEn || "英文单位" : "",
  24648. align: "high",
  24649. rotation: 0,
  24650. y: -15,
  24651. textAlign: "left",
  24652. reserveSpace: !1,
  24653. style: {
  24654. ...E && E.yAxisOptions.style
  24655. }
  24656. },
  24657. labels: {
  24658. formatter: function(F) {
  24659. return F.value;
  24660. },
  24661. align: "center",
  24662. style: {
  24663. ...E && E.yAxisOptions.style
  24664. }
  24665. },
  24666. min: Number(r),
  24667. max: Number(f),
  24668. opposite: !1,
  24669. tickWidth: 1
  24670. };
  24671. return y.forEach((F, U) => {
  24672. let H = tM(F);
  24673. const W = E ? U % E.lineOptionList.length : U;
  24674. let R = {
  24675. data: H,
  24676. type: E && E.lineOptionList[W].lineType || "spline",
  24677. dashStyle: E && E.lineOptionList[W].dashStyle || "Solid",
  24678. yAxis: 0,
  24679. name: F.Name,
  24680. nameZh: F.Name,
  24681. nameEn: F.NameEn,
  24682. color: F.Color,
  24683. chartType: "linear",
  24684. lineWidth: E && E.lineOptionList[W].lineWidth || 3,
  24685. visible: !0,
  24686. marker: {
  24687. enabled: !1
  24688. }
  24689. };
  24690. h.push(R);
  24691. }), {
  24692. title: {
  24693. text: ""
  24694. },
  24695. series: h,
  24696. yAxis: [I],
  24697. xAxis: j,
  24698. tooltip: {
  24699. formatter: function() {
  24700. const F = this;
  24701. let U = "";
  24702. return F.points.forEach((H) => {
  24703. let W = y.find((v) => v.Name === H.series.name), R = Vr.value.findIndex((v) => v.Name === F.x);
  24704. const S = W.XEdbInfoIdList[R];
  24705. if (S) {
  24706. const v = Ri.value.some((u) => u.EdbInfoId === S);
  24707. let d = _e.value.ChartInfo.Source === 5 ? v ? W.NameList[R] : `${_e.value.DataResp.ProfitName}(${W.NameList[R]})` : Ri.value.find((u) => u.EdbInfoId === W.XEdbInfoIdList[R]).EdbName;
  24708. U += `<b>${d}</b>`, W.NoDataEdbList.includes(W.XEdbInfoIdList[R]) ? U += `<br><span style="color:${H.color}">●</span>${W.Date}: 无<br>` : U += `<br><span style="color:${H.color}">●</span>${W.Date}: ${H.y}<br>`;
  24709. }
  24710. }), U || "无合约";
  24711. },
  24712. formatterCh: function() {
  24713. const F = this;
  24714. let U = "";
  24715. return F.points.forEach((H) => {
  24716. let W = y.find((v) => v.Name === H.series.name), R = Vr.value.findIndex((v) => v.Name === F.x);
  24717. const S = W.XEdbInfoIdList[R];
  24718. if (S) {
  24719. const v = Ri.value.some((u) => u.EdbInfoId === S);
  24720. let d = _e.value.ChartInfo.Source === 5 ? v ? W.NameList[R] : `${_e.value.DataResp.ProfitName}(${W.NameList[R]})` : Ri.value.find((u) => u.EdbInfoId === W.XEdbInfoIdList[R]).EdbName;
  24721. U += `<b>${d}</b>`, W.NoDataEdbList.includes(W.XEdbInfoIdList[R]) ? U += `<br><span style="color:${H.color}">●</span>${W.Date}: 无<br>` : U += `<br><span style="color:${H.color}">●</span>${W.Date}: ${H.y}<br>`;
  24722. }
  24723. }), U || "无合约";
  24724. },
  24725. formatterEn: function() {
  24726. const F = this;
  24727. let U = "";
  24728. return F.points.forEach((H) => {
  24729. let W = y.find((v) => v.NameEn === H.series.name), R = Vr.value.findIndex((v) => v.NameEn === F.x);
  24730. const S = W.XEdbInfoIdList[R];
  24731. if (S) {
  24732. const v = Ri.value.some((u) => u.EdbInfoId === S);
  24733. let d = _e.value.ChartInfo.Source === 5 ? v ? W.NameList[R] : `${_e.value.DataResp.ProfitNameEn}(${W.NameList[R]})` : Ri.value.find((u) => u.EdbInfoId === W.XEdbInfoIdList[R]).EdbNameEn;
  24734. U += `<b>${d}</b>`, W.NoDataEdbList.includes(W.XEdbInfoIdList[R]) ? U += `<br><span style="color:${H.color}">●</span>${W.Date}: 无<br>` : U += `<br><span style="color:${H.color}">●</span>${W.Date}: ${H.y}<br>`;
  24735. }
  24736. }), U || "无合约";
  24737. },
  24738. shared: !0
  24739. }
  24740. };
  24741. };
  24742. function tM(r) {
  24743. let f = r.XEdbInfoIdList.filter((I) => !r.NoDataEdbList.includes(I)), E = r.XEdbInfoIdList.findIndex((I) => I === f[0]), h = r.XEdbInfoIdList.findIndex((I) => I === f[f.length - 1]), y = r.Value.map((I, Z) => Z < E || Z > h ? null : I), j = [];
  24744. return Vr.value.forEach((I, Z) => {
  24745. I.IsHide !== 1 && j.push(y[Z] || null);
  24746. }), j;
  24747. }
  24748. function eM(r) {
  24749. const { XDataList: f, YDataList: E, EdbInfoList: h, ChartInfo: y, DataResp: j } = r;
  24750. return Ri.value = h, Fu.value = y.Source === 5 ? j.YDataList : E, Vr.value = y.Source === 5 ? j.XDataList : f, Tt.hasLeftAxis = !0, Tt.leftMin = Number(y.LeftMin), Tt.leftMax = Number(y.LeftMax), Qw(y.LeftMin, y.LeftMax);
  24751. }
  24752. function iM(r) {
  24753. const f = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24754. Tt.leftIndex = -1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1;
  24755. let E = {
  24756. categories: r.ChartInfo.Source === 3 ? r.XEdbIdValue : r.DataResp.XDateTimeValue,
  24757. tickWidth: 1,
  24758. title: {
  24759. text: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24760. textZh: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24761. textEn: r.ChartInfo.Source === 3 ? `stage(${Mp[r.CorrelationChartInfo.LeadUnit]})` : null,
  24762. align: "high",
  24763. rotation: 0,
  24764. x: 0,
  24765. y: 10,
  24766. offset: 20,
  24767. style: {
  24768. ...f && f.xAxisOptions.style
  24769. }
  24770. },
  24771. labels: {
  24772. style: {
  24773. ...f && f.xAxisOptions.style
  24774. }
  24775. },
  24776. tickInterval: 1,
  24777. offset: 0,
  24778. tickmarkPlacement: "on"
  24779. }, h = {
  24780. ...Lr,
  24781. title: {
  24782. text: "相关性系数",
  24783. textZh: "相关性系数",
  24784. textEn: "Correlation coefficient",
  24785. align: "high",
  24786. rotation: 0,
  24787. y: -15,
  24788. textAlign: "left",
  24789. reserveSpace: !1,
  24790. style: {
  24791. ...f && f.yAxisOptions.style
  24792. }
  24793. },
  24794. labels: {
  24795. formatter: function(U) {
  24796. return U.value;
  24797. },
  24798. align: "center",
  24799. style: {
  24800. ...f && f.yAxisOptions.style
  24801. }
  24802. },
  24803. opposite: !1,
  24804. tickWidth: 1
  24805. }, y = [];
  24806. r.YDataList.forEach((U, H) => {
  24807. const W = f ? H % f.lineOptionList.length : H;
  24808. let R = {
  24809. data: U.Value,
  24810. type: f && f.lineOptionList[W].lineType || "spline",
  24811. dashStyle: f && f.lineOptionList[W].dashStyle || "Solid",
  24812. yAxis: 0,
  24813. name: U.Name || r.ChartInfo.ChartName,
  24814. nameZh: U.Name || r.ChartInfo.ChartName,
  24815. nameEn: U.NameEn || r.ChartInfo.ChartNameEn,
  24816. color: U.Color,
  24817. chartType: "linear",
  24818. lineWidth: f && f.lineOptionList[W].lineWidth || 3,
  24819. visible: !0,
  24820. marker: {
  24821. enabled: !1
  24822. }
  24823. };
  24824. y.push(R);
  24825. });
  24826. const { LeadValue: j, LeadUnit: I } = r.CorrelationChartInfo, { Source: Z } = r.ChartInfo;
  24827. let F = {
  24828. formatter: function() {
  24829. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${Z === 3 ? this.x + "期" : j + I}</p>`;
  24830. },
  24831. formatterCh: function() {
  24832. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${Z === 3 ? this.x + "期" : j + I}</p>`;
  24833. },
  24834. formatterEn: function() {
  24835. return `<p>Correlation coefficient:${this.y.toFixed(4)}</p><br><p>lead${Z === 3 ? this.x + "stage" : j + Mp[I]}</p>`;
  24836. }
  24837. };
  24838. return fs(() => {
  24839. re.value = {
  24840. isRelevanceChart: r.ChartInfo.Source === 3,
  24841. title: {
  24842. text: ""
  24843. },
  24844. series: y,
  24845. yAxis: [h],
  24846. xAxis: E,
  24847. tooltip: F
  24848. }, ls.update(re.value, !0);
  24849. }), {
  24850. isRelevanceChart: !0,
  24851. title: {
  24852. text: ""
  24853. },
  24854. series: y,
  24855. yAxis: [h],
  24856. xAxis: E,
  24857. tooltip: F
  24858. };
  24859. }
  24860. function rM({ DataResp: r, ChartInfo: f }) {
  24861. Tt.leftIndex = -1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1;
  24862. const E = f.ChartThemeStyle ? JSON.parse(f.ChartThemeStyle) : null, { DataList: h, XName: y, XNameEn: j, XUnitName: I, XUnitNameEn: Z, YName: F, YNameEn: U, YUnitName: H, YUnitNameEn: W } = r, R = Number(r.YMinValue), S = Number(r.YMaxValue), v = Number(r.XMinValue), d = Number(r.XMaxValue);
  24863. Tt.hasLeftAxis = !0, Tt.hasXAxis = !0, Tt.leftMin = R, Tt.leftMax = S, Tt.xMin = v, Tt.xMax = d;
  24864. let u = {
  24865. ...Lr,
  24866. title: {
  24867. text: F,
  24868. textZh: F,
  24869. // 中文
  24870. textEn: U || "",
  24871. style: {
  24872. ...E && E.yAxisOptions.style
  24873. },
  24874. align: "middle"
  24875. },
  24876. labels: {
  24877. style: {
  24878. ...E && E.yAxisOptions.style
  24879. }
  24880. },
  24881. opposite: !1,
  24882. reversed: !1,
  24883. min: Number(R),
  24884. max: Number(S),
  24885. tickWidth: 1,
  24886. plotBands: $i(1),
  24887. plotLines: Vi(1)
  24888. }, P = {
  24889. ...Mn,
  24890. title: {
  24891. text: y,
  24892. textZh: y,
  24893. // 中文
  24894. textEn: j || "",
  24895. style: {
  24896. ...E && E.xAxisOptions.style
  24897. },
  24898. align: "middle"
  24899. },
  24900. labels: {
  24901. style: {
  24902. ...E && E.xAxisOptions.style
  24903. }
  24904. },
  24905. min: Number(v),
  24906. max: Number(d),
  24907. plotBands: $i(3),
  24908. plotLines: Vi(3)
  24909. }, O = [];
  24910. return h.forEach((C, b) => {
  24911. const w = E ? b % E.lineOptionList.length : b;
  24912. let x = {
  24913. data: [],
  24914. type: "scatter",
  24915. name: C.Name,
  24916. nameZh: C.Name,
  24917. nameEn: C.NameEn,
  24918. color: C.Color,
  24919. lineWidth: 0,
  24920. chartType: "linear",
  24921. zIndex: 1,
  24922. visible: !0,
  24923. marker: {
  24924. radius: E && E.lineOptionList[w].radius || 5
  24925. }
  24926. };
  24927. if (C.EdbInfoList.forEach((a) => {
  24928. x.data.push({
  24929. x: a.XValue,
  24930. y: a.YValue,
  24931. dataLabels: {
  24932. enabled: a.IsShow,
  24933. allowOverlap: !0,
  24934. align: "left",
  24935. format: a.Name,
  24936. formatZh: a.Name,
  24937. formatEn: a.NameEn
  24938. }
  24939. });
  24940. }), O.push(x), C.ShowTrendLine) {
  24941. let c = {
  24942. data: C.TrendLimitData.map((p, i) => i === C.TrendLimitData.length - 1 ? {
  24943. x: p.X,
  24944. y: p.Y,
  24945. dataLabels: {
  24946. enabled: C.ShowRSquare || C.ShowFitEquation,
  24947. align: "left",
  24948. color: C.Color,
  24949. x: 20,
  24950. y: 30,
  24951. zIndex: 9,
  24952. allowOverlap: !0,
  24953. formatter: function() {
  24954. let l = "";
  24955. return C.ShowRSquare && C.ShowFitEquation ? l = `<span>${C.TrendLine}</span><br><span>R²=${C.RSquare}</span>` : C.ShowRSquare && !C.ShowFitEquation ? l = `<span>R²=${C.RSquare}</span>` : C.ShowFitEquation && !C.ShowRSquare && (l = `<span>${C.TrendLine}</span>`), l;
  24956. }
  24957. }
  24958. } : {
  24959. x: p.X,
  24960. y: p.Y
  24961. }),
  24962. type: "spline",
  24963. linkedTo: ":previous",
  24964. color: C.Color,
  24965. lineWidth: 1,
  24966. chartType: "linear",
  24967. enableMouseTracking: !1,
  24968. dashStyle: "Dash",
  24969. zIndex: 2,
  24970. visible: !0,
  24971. marker: {
  24972. enabled: !1
  24973. }
  24974. };
  24975. O.push(c);
  24976. }
  24977. }), {
  24978. title: {
  24979. text: ""
  24980. },
  24981. series: O,
  24982. yAxis: [u],
  24983. xAxis: P,
  24984. tooltip: {
  24985. formatter: function() {
  24986. let b = h.find((x) => x.Name === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), w = `<b>${b.Name}</b>`;
  24987. return w += `<br><span style="color:${this.color}">●</span>${b.XName}: ${this.x} ${b.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${b.YName}: ${this.y} (${b.YDate})`, w;
  24988. },
  24989. formatterCh: function() {
  24990. let b = h.find((x) => x.Name === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), w = `<b>${b.Name}</b>`;
  24991. return w += `<br><span style="color:${this.color}">●</span>${b.XName}: ${this.x} ${b.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${b.YName}: ${this.y} (${b.YDate})`, w;
  24992. },
  24993. formatterEn: function() {
  24994. let b = h.find((x) => x.NameEn === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), w = `<b>${b.NameEn}</b>`;
  24995. return w += `<br><span style="color:${this.color}">●</span>${b.XNameEn}: ${this.x} ${b.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${b.YNameEn}: ${this.y} ${b.YDate}`, w;
  24996. }
  24997. }
  24998. };
  24999. }
  25000. function nM({ DataResp: r, EdbInfoList: f, ChartInfo: E }) {
  25001. Tt.leftIndex = -1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1;
  25002. const h = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null, { DataList: y, XName: j, YName: I, XNameEn: Z, YNameEn: F, XMaxValue: U, XMinValue: H, YMaxValue: W, YMinValue: R } = r, { leftMin: S, leftMax: v, xMin: d, xMax: u } = Tt;
  25003. let P = {
  25004. ...Lr,
  25005. title: {
  25006. text: I,
  25007. textCh: I,
  25008. // 中文
  25009. textEn: F || I,
  25010. align: "middle",
  25011. style: {
  25012. ...h && h.xAxisOptions.style
  25013. }
  25014. },
  25015. labels: {
  25016. style: {
  25017. ...h && h.xAxisOptions.style
  25018. }
  25019. },
  25020. opposite: !1,
  25021. reversed: !1,
  25022. min: Number(S),
  25023. max: Number(v),
  25024. tickWidth: 1
  25025. }, O = {
  25026. ...Mn,
  25027. title: {
  25028. text: j,
  25029. textCh: j,
  25030. // 中文
  25031. textEn: Z || j,
  25032. align: "middle",
  25033. style: {
  25034. ...h && h.xAxisOptions.style
  25035. }
  25036. },
  25037. labels: {
  25038. style: {
  25039. ...h && h.xAxisOptions.style
  25040. }
  25041. },
  25042. min: Number(d),
  25043. max: Number(u)
  25044. }, N = [];
  25045. const C = {
  25046. //标签对应文字
  25047. 1: "最新",
  25048. 3: "Fix"
  25049. };
  25050. return y.forEach((w) => {
  25051. let x = {
  25052. data: [],
  25053. type: "scatter",
  25054. name: w.Name,
  25055. nameZh: w.Name,
  25056. nameEn: w.NameEn || w.Name,
  25057. color: w.Color,
  25058. lineWidth: 0,
  25059. chartType: "linear",
  25060. zIndex: 1
  25061. };
  25062. w.CoordinatePointData.forEach((a) => {
  25063. x.data.push({
  25064. x: a.X,
  25065. y: a.Y,
  25066. dataLabels: {
  25067. enabled: a.ShowTips === 1,
  25068. allowOverlap: !0,
  25069. align: "left",
  25070. format: C[a.DateType] || `-${a.DaysAgo}D`
  25071. }
  25072. });
  25073. }), N.push(x);
  25074. }), {
  25075. title: {
  25076. text: ""
  25077. },
  25078. series: N,
  25079. yAxis: [P],
  25080. xAxis: O,
  25081. tooltip: {
  25082. formatter: function() {
  25083. let x = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = f.find((i) => i.EdbInfoId === x.XEdbInfoId), c = f.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25084. return p += `<br><span style="color:${this.color}">●</span>${a.EdbName}: ${this.x} ${x.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbName}: ${this.y} ${x.YDate}`, p;
  25085. },
  25086. formatterCh: function() {
  25087. let x = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = f.find((i) => i.EdbInfoId === x.XEdbInfoId), c = f.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25088. return p += `<br><span style="color:${this.color}">●</span>${a.EdbName}: ${this.x} ${x.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbName}: ${this.y} ${x.YDate}`, p;
  25089. },
  25090. formatterEn: function() {
  25091. let x = y.find((i) => i.NameEn === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = f.find((i) => i.EdbInfoId === x.XEdbInfoId), c = f.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25092. return p += `<br><span style="color:${this.color}">●</span>${a.EdbNameEn}: ${this.x} ${x.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbNameEn}: ${this.y} ${x.YDate}`, p;
  25093. }
  25094. }
  25095. };
  25096. }
  25097. function oM({ DataResp: r, EdbInfoList: f, ChartInfo: E }) {
  25098. Tt.leftIndex = -1, Tt.rightIndex = -1, Tt.rightTwoIndex = -1;
  25099. const { YDataList: h, XEdbIdValue: y } = r;
  25100. let j = f.filter((H) => y.includes(H.EdbInfoId));
  25101. Tt.hasLeftAxis = !0, Tt.leftMin = Number(E.LeftMin), Tt.leftMax = Number(E.LeftMax);
  25102. const I = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null;
  25103. let Z = {
  25104. lineWidth: 0,
  25105. tickLength: 0,
  25106. tickmarkPlacement: "on",
  25107. categories: j.map((H) => H.EdbAliasName || H.EdbName),
  25108. labels: {
  25109. allowOverlap: !0,
  25110. autoRotationLimit: 40,
  25111. style: {
  25112. ...I && I.xAxisOptions.style
  25113. }
  25114. }
  25115. }, F = [{
  25116. gridLineInterpolation: "polygon",
  25117. gridLineWidth: 1,
  25118. lineWidth: 0,
  25119. endOnTick: !1,
  25120. startOnTick: !1,
  25121. showLastLabel: !0,
  25122. // tickAmount:4,
  25123. title: {
  25124. text: E.Unit,
  25125. textCh: E.Unit,
  25126. textEn: E.UnitEn,
  25127. align: "high",
  25128. rotation: 0,
  25129. y: 5,
  25130. x: 10,
  25131. textAlign: "left",
  25132. reserveSpace: !1,
  25133. style: {
  25134. ...I && I.yAxisOptions.style
  25135. }
  25136. },
  25137. labels: {
  25138. allowOverlap: !0,
  25139. style: {
  25140. ...I && I.yAxisOptions.style
  25141. }
  25142. },
  25143. min: Number(E.LeftMin),
  25144. max: Number(E.LeftMax)
  25145. }], U = [];
  25146. return h.forEach((H, W) => {
  25147. const R = I ? W % I.lineOptionList.length : W;
  25148. let S = {
  25149. name: H.Name || H.Date,
  25150. nameZh: H.Name || H.Date,
  25151. nameEn: H.Date,
  25152. data: H.Value,
  25153. pointPlacement: "on",
  25154. type: I && I.lineOptionList[R].lineType || "line",
  25155. dashStyle: I && I.lineOptionList[R].dashStyle || "Solid",
  25156. yAxis: 0,
  25157. color: H.Color,
  25158. lineWidth: I && I.lineOptionList[R].lineWidth || 1,
  25159. chartType: "linear"
  25160. };
  25161. U.push(S);
  25162. }), {
  25163. chart: {
  25164. ...gs.chart,
  25165. ...I == null ? void 0 : I.drawOption,
  25166. spacing: [2, 10, 2, 10],
  25167. polar: !0
  25168. },
  25169. title: {
  25170. text: ""
  25171. },
  25172. pane: {
  25173. size: "85%"
  25174. },
  25175. series: U,
  25176. yAxis: F,
  25177. xAxis: Z
  25178. };
  25179. }
  25180. function os(r = "rgba(51, 51, 51, 1)") {
  25181. const f = r.match(/(\d(\.\d+)?)+/g) || ["", "", "", 1];
  25182. return parseFloat(f[3] || 1);
  25183. }
  25184. function sM(r = [], f, E = {}) {
  25185. if (f.ChartType === 5) {
  25186. r[1] && (Tt.leftMin = r[1].MinData, Tt.leftMax = r[1].MaxData);
  25187. return;
  25188. }
  25189. const h = r.filter((I) => I.IsAxis === 1).map((I) => [Number(I.MinData), Number(I.MaxData)]), y = r.filter((I) => !I.IsAxis).map((I) => [Number(I.MinData), Number(I.MaxData)]), j = r.filter((I) => I.IsAxis === 2).map((I) => [Number(I.MinData), Number(I.MaxData)]);
  25190. if (h.length) {
  25191. const {
  25192. Max: I,
  25193. Min: Z
  25194. } = bn(h.flat());
  25195. Tt.leftMin = Z, Tt.leftMax = I;
  25196. }
  25197. if (y.length) {
  25198. const {
  25199. Max: I,
  25200. Min: Z
  25201. } = bn(y.flat());
  25202. Tt.rightMin = Z, Tt.rightMax = I;
  25203. }
  25204. if (j.length) {
  25205. const {
  25206. Max: I,
  25207. Min: Z
  25208. } = bn(j.flat());
  25209. Tt.rightTwoMin = Z, Tt.rightTwoMax = I;
  25210. }
  25211. f.ChartType === 2 && E.RightAxis && E.RightAxis.IsAdd && E.RightAxis.IsShow && (E.RightAxis.IndicatorType === 1 ? (Tt.rightMin = E.RightAxis.EdbInfoList[0].MinData || 0, Tt.rightMax = E.RightAxis.EdbInfoList[0].MaxData || 0) : (Tt.rightMin = r[1].MinData || 0, Tt.rightMax = r[1].MaxData || 0));
  25212. }
  25213. function bn(r) {
  25214. return {
  25215. Max: Math.max(...r),
  25216. Min: Math.min(...r)
  25217. };
  25218. }
  25219. function aM({ EdbInfoList: r, ChartInfo: f, DataResp: E }) {
  25220. const {
  25221. //左右轴极值字段
  25222. LeftMin: h = 0,
  25223. LeftMax: y = 0,
  25224. RightMin: j = 0,
  25225. RightMax: I = 0,
  25226. Right2Min: Z = 0,
  25227. Right2Max: F = 0,
  25228. MinMaxSave: U
  25229. } = f;
  25230. U ? (Tt.leftMin = Number(h), Tt.leftMax = Number(y), Tt.rightMin = Number(j), Tt.rightMax = Number(I), Tt.rightTwoMin = Number(Z), Tt.rightTwoMax = Number(F), hM(r, f), console.log("check", Tt.leftMin, Tt.leftMax)) : sM(r, f, E || {});
  25231. }
  25232. function hM(r = [], f) {
  25233. if (f.ChartType === 5) {
  25234. r[1] && Number(Tt.leftMin) === 0 && Number(Tt.leftMax) === 0 && (Tt.leftMin = r[1].MinData, Tt.leftMax = r[1].MaxData);
  25235. return;
  25236. }
  25237. if (Number(Tt.leftMin) === 0 && Number(Tt.leftMax) === 0) {
  25238. const E = r.filter((h) => h.IsAxis === 1).map((h) => [Number(h.MinData), Number(h.MaxData)]);
  25239. if (E.length) {
  25240. const { Max: h, Min: y } = bn(E.flat());
  25241. Tt.leftMin = y, Tt.leftMax = h;
  25242. }
  25243. }
  25244. if (Number(Tt.rightMin) === 0 && Number(Tt.rightMax) === 0) {
  25245. const E = r.filter((h) => !h.IsAxis).map((h) => [Number(h.MinData), Number(h.MaxData)]);
  25246. if (E.length) {
  25247. const { Max: h, Min: y } = bn(E.flat());
  25248. Tt.rightMin = y, Tt.rightMax = h;
  25249. }
  25250. }
  25251. if (Number(Tt.rightTwoMin) === 0 && Number(Tt.rightTwoMax) === 0) {
  25252. const E = r.filter((h) => h.IsAxis === 2).map((h) => [Number(h.MinData), Number(h.MaxData)]);
  25253. if (E.length) {
  25254. const { Max: h, Min: y } = bn(E.flat());
  25255. Tt.rightTwoMin = y, Tt.rightTwoMax = h;
  25256. }
  25257. }
  25258. }
  25259. function Uu(r, f) {
  25260. return function() {
  25261. return r.apply(f, arguments);
  25262. };
  25263. }
  25264. const { toString: lM } = Object.prototype, { getPrototypeOf: Uh } = Object, js = ((r) => (f) => {
  25265. const E = lM.call(f);
  25266. return r[E] || (r[E] = E.slice(8, -1).toLowerCase());
  25267. })(/* @__PURE__ */ Object.create(null)), Ji = (r) => (r = r.toLowerCase(), (f) => js(f) === r), Ws = (r) => (f) => typeof f === r, { isArray: Tn } = Array, no = Ws("undefined");
  25268. function cM(r) {
  25269. return r !== null && !no(r) && r.constructor !== null && !no(r.constructor) && Pi(r.constructor.isBuffer) && r.constructor.isBuffer(r);
  25270. }
  25271. const Vu = Ji("ArrayBuffer");
  25272. function pM(r) {
  25273. let f;
  25274. return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? f = ArrayBuffer.isView(r) : f = r && r.buffer && Vu(r.buffer), f;
  25275. }
  25276. const uM = Ws("string"), Pi = Ws("function"), $u = Ws("number"), zs = (r) => r !== null && typeof r == "object", dM = (r) => r === !0 || r === !1, cs = (r) => {
  25277. if (js(r) !== "object")
  25278. return !1;
  25279. const f = Uh(r);
  25280. return (f === null || f === Object.prototype || Object.getPrototypeOf(f) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r);
  25281. }, fM = Ji("Date"), gM = Ji("File"), mM = Ji("Blob"), yM = Ji("FileList"), vM = (r) => zs(r) && Pi(r.pipe), xM = (r) => {
  25282. let f;
  25283. return r && (typeof FormData == "function" && r instanceof FormData || Pi(r.append) && ((f = js(r)) === "formdata" || // detect form-data instance
  25284. f === "object" && Pi(r.toString) && r.toString() === "[object FormData]"));
  25285. }, bM = Ji("URLSearchParams"), SM = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  25286. function lo(r, f, { allOwnKeys: E = !1 } = {}) {
  25287. if (r === null || typeof r > "u")
  25288. return;
  25289. let h, y;
  25290. if (typeof r != "object" && (r = [r]), Tn(r))
  25291. for (h = 0, y = r.length; h < y; h++)
  25292. f.call(null, r[h], h, r);
  25293. else {
  25294. const j = E ? Object.getOwnPropertyNames(r) : Object.keys(r), I = j.length;
  25295. let Z;
  25296. for (h = 0; h < I; h++)
  25297. Z = j[h], f.call(null, r[Z], Z, r);
  25298. }
  25299. }
  25300. function Zu(r, f) {
  25301. f = f.toLowerCase();
  25302. const E = Object.keys(r);
  25303. let h = E.length, y;
  25304. for (; h-- > 0; )
  25305. if (y = E[h], f === y.toLowerCase())
  25306. return y;
  25307. return null;
  25308. }
  25309. const Ku = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ju = (r) => !no(r) && r !== Ku;
  25310. function Sh() {
  25311. const { caseless: r } = Ju(this) && this || {}, f = {}, E = (h, y) => {
  25312. const j = r && Zu(f, y) || y;
  25313. cs(f[j]) && cs(h) ? f[j] = Sh(f[j], h) : cs(h) ? f[j] = Sh({}, h) : Tn(h) ? f[j] = h.slice() : f[j] = h;
  25314. };
  25315. for (let h = 0, y = arguments.length; h < y; h++)
  25316. arguments[h] && lo(arguments[h], E);
  25317. return f;
  25318. }
  25319. const wM = (r, f, E, { allOwnKeys: h } = {}) => (lo(f, (y, j) => {
  25320. E && Pi(y) ? r[j] = Uu(y, E) : r[j] = y;
  25321. }, { allOwnKeys: h }), r), MM = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), CM = (r, f, E, h) => {
  25322. r.prototype = Object.create(f.prototype, h), r.prototype.constructor = r, Object.defineProperty(r, "super", {
  25323. value: f.prototype
  25324. }), E && Object.assign(r.prototype, E);
  25325. }, kM = (r, f, E, h) => {
  25326. let y, j, I;
  25327. const Z = {};
  25328. if (f = f || {}, r == null)
  25329. return f;
  25330. do {
  25331. for (y = Object.getOwnPropertyNames(r), j = y.length; j-- > 0; )
  25332. I = y[j], (!h || h(I, r, f)) && !Z[I] && (f[I] = r[I], Z[I] = !0);
  25333. r = E !== !1 && Uh(r);
  25334. } while (r && (!E || E(r, f)) && r !== Object.prototype);
  25335. return f;
  25336. }, AM = (r, f, E) => {
  25337. r = String(r), (E === void 0 || E > r.length) && (E = r.length), E -= f.length;
  25338. const h = r.indexOf(f, E);
  25339. return h !== -1 && h === E;
  25340. }, TM = (r) => {
  25341. if (!r)
  25342. return null;
  25343. if (Tn(r))
  25344. return r;
  25345. let f = r.length;
  25346. if (!$u(f))
  25347. return null;
  25348. const E = new Array(f);
  25349. for (; f-- > 0; )
  25350. E[f] = r[f];
  25351. return E;
  25352. }, PM = ((r) => (f) => r && f instanceof r)(typeof Uint8Array < "u" && Uh(Uint8Array)), EM = (r, f) => {
  25353. const h = (r && r[Symbol.iterator]).call(r);
  25354. let y;
  25355. for (; (y = h.next()) && !y.done; ) {
  25356. const j = y.value;
  25357. f.call(r, j[0], j[1]);
  25358. }
  25359. }, OM = (r, f) => {
  25360. let E;
  25361. const h = [];
  25362. for (; (E = r.exec(f)) !== null; )
  25363. h.push(E);
  25364. return h;
  25365. }, LM = Ji("HTMLFormElement"), _M = (r) => r.toLowerCase().replace(
  25366. /[-_\s]([a-z\d])(\w*)/g,
  25367. function(E, h, y) {
  25368. return h.toUpperCase() + y;
  25369. }
  25370. ), Op = (({ hasOwnProperty: r }) => (f, E) => r.call(f, E))(Object.prototype), DM = Ji("RegExp"), qu = (r, f) => {
  25371. const E = Object.getOwnPropertyDescriptors(r), h = {};
  25372. lo(E, (y, j) => {
  25373. f(y, j, r) !== !1 && (h[j] = y);
  25374. }), Object.defineProperties(r, h);
  25375. }, IM = (r) => {
  25376. qu(r, (f, E) => {
  25377. if (Pi(r) && ["arguments", "caller", "callee"].indexOf(E) !== -1)
  25378. return !1;
  25379. const h = r[E];
  25380. if (Pi(h)) {
  25381. if (f.enumerable = !1, "writable" in f) {
  25382. f.writable = !1;
  25383. return;
  25384. }
  25385. f.set || (f.set = () => {
  25386. throw Error("Can not rewrite read-only method '" + E + "'");
  25387. });
  25388. }
  25389. });
  25390. }, RM = (r, f) => {
  25391. const E = {}, h = (y) => {
  25392. y.forEach((j) => {
  25393. E[j] = !0;
  25394. });
  25395. };
  25396. return Tn(r) ? h(r) : h(String(r).split(f)), E;
  25397. }, NM = () => {
  25398. }, BM = (r, f) => (r = +r, Number.isFinite(r) ? r : f), ch = "abcdefghijklmnopqrstuvwxyz", Lp = "0123456789", Qu = {
  25399. DIGIT: Lp,
  25400. ALPHA: ch,
  25401. ALPHA_DIGIT: ch + ch.toUpperCase() + Lp
  25402. }, jM = (r = 16, f = Qu.ALPHA_DIGIT) => {
  25403. let E = "";
  25404. const { length: h } = f;
  25405. for (; r--; )
  25406. E += f[Math.random() * h | 0];
  25407. return E;
  25408. };
  25409. function WM(r) {
  25410. return !!(r && Pi(r.append) && r[Symbol.toStringTag] === "FormData" && r[Symbol.iterator]);
  25411. }
  25412. const zM = (r) => {
  25413. const f = new Array(10), E = (h, y) => {
  25414. if (zs(h)) {
  25415. if (f.indexOf(h) >= 0)
  25416. return;
  25417. if (!("toJSON" in h)) {
  25418. f[y] = h;
  25419. const j = Tn(h) ? [] : {};
  25420. return lo(h, (I, Z) => {
  25421. const F = E(I, y + 1);
  25422. !no(F) && (j[Z] = F);
  25423. }), f[y] = void 0, j;
  25424. }
  25425. }
  25426. return h;
  25427. };
  25428. return E(r, 0);
  25429. }, YM = Ji("AsyncFunction"), XM = (r) => r && (zs(r) || Pi(r)) && Pi(r.then) && Pi(r.catch), _t = {
  25430. isArray: Tn,
  25431. isArrayBuffer: Vu,
  25432. isBuffer: cM,
  25433. isFormData: xM,
  25434. isArrayBufferView: pM,
  25435. isString: uM,
  25436. isNumber: $u,
  25437. isBoolean: dM,
  25438. isObject: zs,
  25439. isPlainObject: cs,
  25440. isUndefined: no,
  25441. isDate: fM,
  25442. isFile: gM,
  25443. isBlob: mM,
  25444. isRegExp: DM,
  25445. isFunction: Pi,
  25446. isStream: vM,
  25447. isURLSearchParams: bM,
  25448. isTypedArray: PM,
  25449. isFileList: yM,
  25450. forEach: lo,
  25451. merge: Sh,
  25452. extend: wM,
  25453. trim: SM,
  25454. stripBOM: MM,
  25455. inherits: CM,
  25456. toFlatObject: kM,
  25457. kindOf: js,
  25458. kindOfTest: Ji,
  25459. endsWith: AM,
  25460. toArray: TM,
  25461. forEachEntry: EM,
  25462. matchAll: OM,
  25463. isHTMLForm: LM,
  25464. hasOwnProperty: Op,
  25465. hasOwnProp: Op,
  25466. // an alias to avoid ESLint no-prototype-builtins detection
  25467. reduceDescriptors: qu,
  25468. freezeMethods: IM,
  25469. toObjectSet: RM,
  25470. toCamelCase: _M,
  25471. noop: NM,
  25472. toFiniteNumber: BM,
  25473. findKey: Zu,
  25474. global: Ku,
  25475. isContextDefined: Ju,
  25476. ALPHABET: Qu,
  25477. generateString: jM,
  25478. isSpecCompliantForm: WM,
  25479. toJSONObject: zM,
  25480. isAsyncFn: YM,
  25481. isThenable: XM
  25482. };
  25483. function fe(r, f, E, h, y) {
  25484. Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = r, this.name = "AxiosError", f && (this.code = f), E && (this.config = E), h && (this.request = h), y && (this.response = y);
  25485. }
  25486. _t.inherits(fe, Error, {
  25487. toJSON: function() {
  25488. return {
  25489. // Standard
  25490. message: this.message,
  25491. name: this.name,
  25492. // Microsoft
  25493. description: this.description,
  25494. number: this.number,
  25495. // Mozilla
  25496. fileName: this.fileName,
  25497. lineNumber: this.lineNumber,
  25498. columnNumber: this.columnNumber,
  25499. stack: this.stack,
  25500. // Axios
  25501. config: _t.toJSONObject(this.config),
  25502. code: this.code,
  25503. status: this.response && this.response.status ? this.response.status : null
  25504. };
  25505. }
  25506. });
  25507. const td = fe.prototype, ed = {};
  25508. [
  25509. "ERR_BAD_OPTION_VALUE",
  25510. "ERR_BAD_OPTION",
  25511. "ECONNABORTED",
  25512. "ETIMEDOUT",
  25513. "ERR_NETWORK",
  25514. "ERR_FR_TOO_MANY_REDIRECTS",
  25515. "ERR_DEPRECATED",
  25516. "ERR_BAD_RESPONSE",
  25517. "ERR_BAD_REQUEST",
  25518. "ERR_CANCELED",
  25519. "ERR_NOT_SUPPORT",
  25520. "ERR_INVALID_URL"
  25521. // eslint-disable-next-line func-names
  25522. ].forEach((r) => {
  25523. ed[r] = { value: r };
  25524. });
  25525. Object.defineProperties(fe, ed);
  25526. Object.defineProperty(td, "isAxiosError", { value: !0 });
  25527. fe.from = (r, f, E, h, y, j) => {
  25528. const I = Object.create(td);
  25529. return _t.toFlatObject(r, I, function(F) {
  25530. return F !== Error.prototype;
  25531. }, (Z) => Z !== "isAxiosError"), fe.call(I, r.message, f, E, h, y), I.cause = r, I.name = r.name, j && Object.assign(I, j), I;
  25532. };
  25533. const GM = null;
  25534. function wh(r) {
  25535. return _t.isPlainObject(r) || _t.isArray(r);
  25536. }
  25537. function id(r) {
  25538. return _t.endsWith(r, "[]") ? r.slice(0, -2) : r;
  25539. }
  25540. function _p(r, f, E) {
  25541. return r ? r.concat(f).map(function(y, j) {
  25542. return y = id(y), !E && j ? "[" + y + "]" : y;
  25543. }).join(E ? "." : "") : f;
  25544. }
  25545. function HM(r) {
  25546. return _t.isArray(r) && !r.some(wh);
  25547. }
  25548. const FM = _t.toFlatObject(_t, {}, null, function(f) {
  25549. return /^is[A-Z]/.test(f);
  25550. });
  25551. function Ys(r, f, E) {
  25552. if (!_t.isObject(r))
  25553. throw new TypeError("target must be an object");
  25554. f = f || new FormData(), E = _t.toFlatObject(E, {
  25555. metaTokens: !0,
  25556. dots: !1,
  25557. indexes: !1
  25558. }, !1, function(d, u) {
  25559. return !_t.isUndefined(u[d]);
  25560. });
  25561. const h = E.metaTokens, y = E.visitor || H, j = E.dots, I = E.indexes, F = (E.Blob || typeof Blob < "u" && Blob) && _t.isSpecCompliantForm(f);
  25562. if (!_t.isFunction(y))
  25563. throw new TypeError("visitor must be a function");
  25564. function U(v) {
  25565. if (v === null)
  25566. return "";
  25567. if (_t.isDate(v))
  25568. return v.toISOString();
  25569. if (!F && _t.isBlob(v))
  25570. throw new fe("Blob is not supported. Use a Buffer instead.");
  25571. return _t.isArrayBuffer(v) || _t.isTypedArray(v) ? F && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v;
  25572. }
  25573. function H(v, d, u) {
  25574. let P = v;
  25575. if (v && !u && typeof v == "object") {
  25576. if (_t.endsWith(d, "{}"))
  25577. d = h ? d : d.slice(0, -2), v = JSON.stringify(v);
  25578. else if (_t.isArray(v) && HM(v) || (_t.isFileList(v) || _t.endsWith(d, "[]")) && (P = _t.toArray(v)))
  25579. return d = id(d), P.forEach(function(N, C) {
  25580. !(_t.isUndefined(N) || N === null) && f.append(
  25581. // eslint-disable-next-line no-nested-ternary
  25582. I === !0 ? _p([d], C, j) : I === null ? d : d + "[]",
  25583. U(N)
  25584. );
  25585. }), !1;
  25586. }
  25587. return wh(v) ? !0 : (f.append(_p(u, d, j), U(v)), !1);
  25588. }
  25589. const W = [], R = Object.assign(FM, {
  25590. defaultVisitor: H,
  25591. convertValue: U,
  25592. isVisitable: wh
  25593. });
  25594. function S(v, d) {
  25595. if (!_t.isUndefined(v)) {
  25596. if (W.indexOf(v) !== -1)
  25597. throw Error("Circular reference detected in " + d.join("."));
  25598. W.push(v), _t.forEach(v, function(P, O) {
  25599. (!(_t.isUndefined(P) || P === null) && y.call(
  25600. f,
  25601. P,
  25602. _t.isString(O) ? O.trim() : O,
  25603. d,
  25604. R
  25605. )) === !0 && S(P, d ? d.concat(O) : [O]);
  25606. }), W.pop();
  25607. }
  25608. }
  25609. if (!_t.isObject(r))
  25610. throw new TypeError("data must be an object");
  25611. return S(r), f;
  25612. }
  25613. function Dp(r) {
  25614. const f = {
  25615. "!": "%21",
  25616. "'": "%27",
  25617. "(": "%28",
  25618. ")": "%29",
  25619. "~": "%7E",
  25620. "%20": "+",
  25621. "%00": "\0"
  25622. };
  25623. return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g, function(h) {
  25624. return f[h];
  25625. });
  25626. }
  25627. function Vh(r, f) {
  25628. this._pairs = [], r && Ys(r, this, f);
  25629. }
  25630. const rd = Vh.prototype;
  25631. rd.append = function(f, E) {
  25632. this._pairs.push([f, E]);
  25633. };
  25634. rd.toString = function(f) {
  25635. const E = f ? function(h) {
  25636. return f.call(this, h, Dp);
  25637. } : Dp;
  25638. return this._pairs.map(function(y) {
  25639. return E(y[0]) + "=" + E(y[1]);
  25640. }, "").join("&");
  25641. };
  25642. function UM(r) {
  25643. return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  25644. }
  25645. function nd(r, f, E) {
  25646. if (!f)
  25647. return r;
  25648. const h = E && E.encode || UM, y = E && E.serialize;
  25649. let j;
  25650. if (y ? j = y(f, E) : j = _t.isURLSearchParams(f) ? f.toString() : new Vh(f, E).toString(h), j) {
  25651. const I = r.indexOf("#");
  25652. I !== -1 && (r = r.slice(0, I)), r += (r.indexOf("?") === -1 ? "?" : "&") + j;
  25653. }
  25654. return r;
  25655. }
  25656. class VM {
  25657. constructor() {
  25658. this.handlers = [];
  25659. }
  25660. /**
  25661. * Add a new interceptor to the stack
  25662. *
  25663. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  25664. * @param {Function} rejected The function to handle `reject` for a `Promise`
  25665. *
  25666. * @return {Number} An ID used to remove interceptor later
  25667. */
  25668. use(f, E, h) {
  25669. return this.handlers.push({
  25670. fulfilled: f,
  25671. rejected: E,
  25672. synchronous: h ? h.synchronous : !1,
  25673. runWhen: h ? h.runWhen : null
  25674. }), this.handlers.length - 1;
  25675. }
  25676. /**
  25677. * Remove an interceptor from the stack
  25678. *
  25679. * @param {Number} id The ID that was returned by `use`
  25680. *
  25681. * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
  25682. */
  25683. eject(f) {
  25684. this.handlers[f] && (this.handlers[f] = null);
  25685. }
  25686. /**
  25687. * Clear all interceptors from the stack
  25688. *
  25689. * @returns {void}
  25690. */
  25691. clear() {
  25692. this.handlers && (this.handlers = []);
  25693. }
  25694. /**
  25695. * Iterate over all the registered interceptors
  25696. *
  25697. * This method is particularly useful for skipping over any
  25698. * interceptors that may have become `null` calling `eject`.
  25699. *
  25700. * @param {Function} fn The function to call for each interceptor
  25701. *
  25702. * @returns {void}
  25703. */
  25704. forEach(f) {
  25705. _t.forEach(this.handlers, function(h) {
  25706. h !== null && f(h);
  25707. });
  25708. }
  25709. }
  25710. const Ip = VM, od = {
  25711. silentJSONParsing: !0,
  25712. forcedJSONParsing: !0,
  25713. clarifyTimeoutError: !1
  25714. }, $M = typeof URLSearchParams < "u" ? URLSearchParams : Vh, ZM = typeof FormData < "u" ? FormData : null, KM = typeof Blob < "u" ? Blob : null, JM = (() => {
  25715. let r;
  25716. return typeof navigator < "u" && ((r = navigator.product) === "ReactNative" || r === "NativeScript" || r === "NS") ? !1 : typeof window < "u" && typeof document < "u";
  25717. })(), qM = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
  25718. self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Fi = {
  25719. isBrowser: !0,
  25720. classes: {
  25721. URLSearchParams: $M,
  25722. FormData: ZM,
  25723. Blob: KM
  25724. },
  25725. isStandardBrowserEnv: JM,
  25726. isStandardBrowserWebWorkerEnv: qM,
  25727. protocols: ["http", "https", "file", "blob", "url", "data"]
  25728. };
  25729. function QM(r, f) {
  25730. return Ys(r, new Fi.classes.URLSearchParams(), Object.assign({
  25731. visitor: function(E, h, y, j) {
  25732. return Fi.isNode && _t.isBuffer(E) ? (this.append(h, E.toString("base64")), !1) : j.defaultVisitor.apply(this, arguments);
  25733. }
  25734. }, f));
  25735. }
  25736. function tC(r) {
  25737. return _t.matchAll(/\w+|\[(\w*)]/g, r).map((f) => f[0] === "[]" ? "" : f[1] || f[0]);
  25738. }
  25739. function eC(r) {
  25740. const f = {}, E = Object.keys(r);
  25741. let h;
  25742. const y = E.length;
  25743. let j;
  25744. for (h = 0; h < y; h++)
  25745. j = E[h], f[j] = r[j];
  25746. return f;
  25747. }
  25748. function sd(r) {
  25749. function f(E, h, y, j) {
  25750. let I = E[j++];
  25751. const Z = Number.isFinite(+I), F = j >= E.length;
  25752. return I = !I && _t.isArray(y) ? y.length : I, F ? (_t.hasOwnProp(y, I) ? y[I] = [y[I], h] : y[I] = h, !Z) : ((!y[I] || !_t.isObject(y[I])) && (y[I] = []), f(E, h, y[I], j) && _t.isArray(y[I]) && (y[I] = eC(y[I])), !Z);
  25753. }
  25754. if (_t.isFormData(r) && _t.isFunction(r.entries)) {
  25755. const E = {};
  25756. return _t.forEachEntry(r, (h, y) => {
  25757. f(tC(h), y, E, 0);
  25758. }), E;
  25759. }
  25760. return null;
  25761. }
  25762. const iC = {
  25763. "Content-Type": void 0
  25764. };
  25765. function rC(r, f, E) {
  25766. if (_t.isString(r))
  25767. try {
  25768. return (f || JSON.parse)(r), _t.trim(r);
  25769. } catch (h) {
  25770. if (h.name !== "SyntaxError")
  25771. throw h;
  25772. }
  25773. return (E || JSON.stringify)(r);
  25774. }
  25775. const Xs = {
  25776. transitional: od,
  25777. adapter: ["xhr", "http"],
  25778. transformRequest: [function(f, E) {
  25779. const h = E.getContentType() || "", y = h.indexOf("application/json") > -1, j = _t.isObject(f);
  25780. if (j && _t.isHTMLForm(f) && (f = new FormData(f)), _t.isFormData(f))
  25781. return y && y ? JSON.stringify(sd(f)) : f;
  25782. if (_t.isArrayBuffer(f) || _t.isBuffer(f) || _t.isStream(f) || _t.isFile(f) || _t.isBlob(f))
  25783. return f;
  25784. if (_t.isArrayBufferView(f))
  25785. return f.buffer;
  25786. if (_t.isURLSearchParams(f))
  25787. return E.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), f.toString();
  25788. let Z;
  25789. if (j) {
  25790. if (h.indexOf("application/x-www-form-urlencoded") > -1)
  25791. return QM(f, this.formSerializer).toString();
  25792. if ((Z = _t.isFileList(f)) || h.indexOf("multipart/form-data") > -1) {
  25793. const F = this.env && this.env.FormData;
  25794. return Ys(
  25795. Z ? { "files[]": f } : f,
  25796. F && new F(),
  25797. this.formSerializer
  25798. );
  25799. }
  25800. }
  25801. return j || y ? (E.setContentType("application/json", !1), rC(f)) : f;
  25802. }],
  25803. transformResponse: [function(f) {
  25804. const E = this.transitional || Xs.transitional, h = E && E.forcedJSONParsing, y = this.responseType === "json";
  25805. if (f && _t.isString(f) && (h && !this.responseType || y)) {
  25806. const I = !(E && E.silentJSONParsing) && y;
  25807. try {
  25808. return JSON.parse(f);
  25809. } catch (Z) {
  25810. if (I)
  25811. throw Z.name === "SyntaxError" ? fe.from(Z, fe.ERR_BAD_RESPONSE, this, null, this.response) : Z;
  25812. }
  25813. }
  25814. return f;
  25815. }],
  25816. /**
  25817. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  25818. * timeout is not created.
  25819. */
  25820. timeout: 0,
  25821. xsrfCookieName: "XSRF-TOKEN",
  25822. xsrfHeaderName: "X-XSRF-TOKEN",
  25823. maxContentLength: -1,
  25824. maxBodyLength: -1,
  25825. env: {
  25826. FormData: Fi.classes.FormData,
  25827. Blob: Fi.classes.Blob
  25828. },
  25829. validateStatus: function(f) {
  25830. return f >= 200 && f < 300;
  25831. },
  25832. headers: {
  25833. common: {
  25834. Accept: "application/json, text/plain, */*"
  25835. }
  25836. }
  25837. };
  25838. _t.forEach(["delete", "get", "head"], function(f) {
  25839. Xs.headers[f] = {};
  25840. });
  25841. _t.forEach(["post", "put", "patch"], function(f) {
  25842. Xs.headers[f] = _t.merge(iC);
  25843. });
  25844. const $h = Xs, nC = _t.toObjectSet([
  25845. "age",
  25846. "authorization",
  25847. "content-length",
  25848. "content-type",
  25849. "etag",
  25850. "expires",
  25851. "from",
  25852. "host",
  25853. "if-modified-since",
  25854. "if-unmodified-since",
  25855. "last-modified",
  25856. "location",
  25857. "max-forwards",
  25858. "proxy-authorization",
  25859. "referer",
  25860. "retry-after",
  25861. "user-agent"
  25862. ]), oC = (r) => {
  25863. const f = {};
  25864. let E, h, y;
  25865. return r && r.split(`
  25866. `).forEach(function(I) {
  25867. y = I.indexOf(":"), E = I.substring(0, y).trim().toLowerCase(), h = I.substring(y + 1).trim(), !(!E || f[E] && nC[E]) && (E === "set-cookie" ? f[E] ? f[E].push(h) : f[E] = [h] : f[E] = f[E] ? f[E] + ", " + h : h);
  25868. }), f;
  25869. }, Rp = Symbol("internals");
  25870. function Kn(r) {
  25871. return r && String(r).trim().toLowerCase();
  25872. }
  25873. function ps(r) {
  25874. return r === !1 || r == null ? r : _t.isArray(r) ? r.map(ps) : String(r);
  25875. }
  25876. function sC(r) {
  25877. const f = /* @__PURE__ */ Object.create(null), E = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  25878. let h;
  25879. for (; h = E.exec(r); )
  25880. f[h[1]] = h[2];
  25881. return f;
  25882. }
  25883. const aC = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
  25884. function ph(r, f, E, h, y) {
  25885. if (_t.isFunction(h))
  25886. return h.call(this, f, E);
  25887. if (y && (f = E), !!_t.isString(f)) {
  25888. if (_t.isString(h))
  25889. return f.indexOf(h) !== -1;
  25890. if (_t.isRegExp(h))
  25891. return h.test(f);
  25892. }
  25893. }
  25894. function hC(r) {
  25895. return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (f, E, h) => E.toUpperCase() + h);
  25896. }
  25897. function lC(r, f) {
  25898. const E = _t.toCamelCase(" " + f);
  25899. ["get", "set", "has"].forEach((h) => {
  25900. Object.defineProperty(r, h + E, {
  25901. value: function(y, j, I) {
  25902. return this[h].call(this, f, y, j, I);
  25903. },
  25904. configurable: !0
  25905. });
  25906. });
  25907. }
  25908. class Gs {
  25909. constructor(f) {
  25910. f && this.set(f);
  25911. }
  25912. set(f, E, h) {
  25913. const y = this;
  25914. function j(Z, F, U) {
  25915. const H = Kn(F);
  25916. if (!H)
  25917. throw new Error("header name must be a non-empty string");
  25918. const W = _t.findKey(y, H);
  25919. (!W || y[W] === void 0 || U === !0 || U === void 0 && y[W] !== !1) && (y[W || F] = ps(Z));
  25920. }
  25921. const I = (Z, F) => _t.forEach(Z, (U, H) => j(U, H, F));
  25922. return _t.isPlainObject(f) || f instanceof this.constructor ? I(f, E) : _t.isString(f) && (f = f.trim()) && !aC(f) ? I(oC(f), E) : f != null && j(E, f, h), this;
  25923. }
  25924. get(f, E) {
  25925. if (f = Kn(f), f) {
  25926. const h = _t.findKey(this, f);
  25927. if (h) {
  25928. const y = this[h];
  25929. if (!E)
  25930. return y;
  25931. if (E === !0)
  25932. return sC(y);
  25933. if (_t.isFunction(E))
  25934. return E.call(this, y, h);
  25935. if (_t.isRegExp(E))
  25936. return E.exec(y);
  25937. throw new TypeError("parser must be boolean|regexp|function");
  25938. }
  25939. }
  25940. }
  25941. has(f, E) {
  25942. if (f = Kn(f), f) {
  25943. const h = _t.findKey(this, f);
  25944. return !!(h && this[h] !== void 0 && (!E || ph(this, this[h], h, E)));
  25945. }
  25946. return !1;
  25947. }
  25948. delete(f, E) {
  25949. const h = this;
  25950. let y = !1;
  25951. function j(I) {
  25952. if (I = Kn(I), I) {
  25953. const Z = _t.findKey(h, I);
  25954. Z && (!E || ph(h, h[Z], Z, E)) && (delete h[Z], y = !0);
  25955. }
  25956. }
  25957. return _t.isArray(f) ? f.forEach(j) : j(f), y;
  25958. }
  25959. clear(f) {
  25960. const E = Object.keys(this);
  25961. let h = E.length, y = !1;
  25962. for (; h--; ) {
  25963. const j = E[h];
  25964. (!f || ph(this, this[j], j, f, !0)) && (delete this[j], y = !0);
  25965. }
  25966. return y;
  25967. }
  25968. normalize(f) {
  25969. const E = this, h = {};
  25970. return _t.forEach(this, (y, j) => {
  25971. const I = _t.findKey(h, j);
  25972. if (I) {
  25973. E[I] = ps(y), delete E[j];
  25974. return;
  25975. }
  25976. const Z = f ? hC(j) : String(j).trim();
  25977. Z !== j && delete E[j], E[Z] = ps(y), h[Z] = !0;
  25978. }), this;
  25979. }
  25980. concat(...f) {
  25981. return this.constructor.concat(this, ...f);
  25982. }
  25983. toJSON(f) {
  25984. const E = /* @__PURE__ */ Object.create(null);
  25985. return _t.forEach(this, (h, y) => {
  25986. h != null && h !== !1 && (E[y] = f && _t.isArray(h) ? h.join(", ") : h);
  25987. }), E;
  25988. }
  25989. [Symbol.iterator]() {
  25990. return Object.entries(this.toJSON())[Symbol.iterator]();
  25991. }
  25992. toString() {
  25993. return Object.entries(this.toJSON()).map(([f, E]) => f + ": " + E).join(`
  25994. `);
  25995. }
  25996. get [Symbol.toStringTag]() {
  25997. return "AxiosHeaders";
  25998. }
  25999. static from(f) {
  26000. return f instanceof this ? f : new this(f);
  26001. }
  26002. static concat(f, ...E) {
  26003. const h = new this(f);
  26004. return E.forEach((y) => h.set(y)), h;
  26005. }
  26006. static accessor(f) {
  26007. const h = (this[Rp] = this[Rp] = {
  26008. accessors: {}
  26009. }).accessors, y = this.prototype;
  26010. function j(I) {
  26011. const Z = Kn(I);
  26012. h[Z] || (lC(y, I), h[Z] = !0);
  26013. }
  26014. return _t.isArray(f) ? f.forEach(j) : j(f), this;
  26015. }
  26016. }
  26017. Gs.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
  26018. _t.freezeMethods(Gs.prototype);
  26019. _t.freezeMethods(Gs);
  26020. const dr = Gs;
  26021. function uh(r, f) {
  26022. const E = this || $h, h = f || E, y = dr.from(h.headers);
  26023. let j = h.data;
  26024. return _t.forEach(r, function(Z) {
  26025. j = Z.call(E, j, y.normalize(), f ? f.status : void 0);
  26026. }), y.normalize(), j;
  26027. }
  26028. function ad(r) {
  26029. return !!(r && r.__CANCEL__);
  26030. }
  26031. function co(r, f, E) {
  26032. fe.call(this, r ?? "canceled", fe.ERR_CANCELED, f, E), this.name = "CanceledError";
  26033. }
  26034. _t.inherits(co, fe, {
  26035. __CANCEL__: !0
  26036. });
  26037. function cC(r, f, E) {
  26038. const h = E.config.validateStatus;
  26039. !E.status || !h || h(E.status) ? r(E) : f(new fe(
  26040. "Request failed with status code " + E.status,
  26041. [fe.ERR_BAD_REQUEST, fe.ERR_BAD_RESPONSE][Math.floor(E.status / 100) - 4],
  26042. E.config,
  26043. E.request,
  26044. E
  26045. ));
  26046. }
  26047. const pC = Fi.isStandardBrowserEnv ? (
  26048. // Standard browser envs support document.cookie
  26049. function() {
  26050. return {
  26051. write: function(E, h, y, j, I, Z) {
  26052. const F = [];
  26053. F.push(E + "=" + encodeURIComponent(h)), _t.isNumber(y) && F.push("expires=" + new Date(y).toGMTString()), _t.isString(j) && F.push("path=" + j), _t.isString(I) && F.push("domain=" + I), Z === !0 && F.push("secure"), document.cookie = F.join("; ");
  26054. },
  26055. read: function(E) {
  26056. const h = document.cookie.match(new RegExp("(^|;\\s*)(" + E + ")=([^;]*)"));
  26057. return h ? decodeURIComponent(h[3]) : null;
  26058. },
  26059. remove: function(E) {
  26060. this.write(E, "", Date.now() - 864e5);
  26061. }
  26062. };
  26063. }()
  26064. ) : (
  26065. // Non standard browser env (web workers, react-native) lack needed support.
  26066. function() {
  26067. return {
  26068. write: function() {
  26069. },
  26070. read: function() {
  26071. return null;
  26072. },
  26073. remove: function() {
  26074. }
  26075. };
  26076. }()
  26077. );
  26078. function uC(r) {
  26079. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r);
  26080. }
  26081. function dC(r, f) {
  26082. return f ? r.replace(/\/+$/, "") + "/" + f.replace(/^\/+/, "") : r;
  26083. }
  26084. function hd(r, f) {
  26085. return r && !uC(f) ? dC(r, f) : f;
  26086. }
  26087. const fC = Fi.isStandardBrowserEnv ? (
  26088. // Standard browser envs have full support of the APIs needed to test
  26089. // whether the request URL is of the same origin as current location.
  26090. function() {
  26091. const f = /(msie|trident)/i.test(navigator.userAgent), E = document.createElement("a");
  26092. let h;
  26093. function y(j) {
  26094. let I = j;
  26095. return f && (E.setAttribute("href", I), I = E.href), E.setAttribute("href", I), {
  26096. href: E.href,
  26097. protocol: E.protocol ? E.protocol.replace(/:$/, "") : "",
  26098. host: E.host,
  26099. search: E.search ? E.search.replace(/^\?/, "") : "",
  26100. hash: E.hash ? E.hash.replace(/^#/, "") : "",
  26101. hostname: E.hostname,
  26102. port: E.port,
  26103. pathname: E.pathname.charAt(0) === "/" ? E.pathname : "/" + E.pathname
  26104. };
  26105. }
  26106. return h = y(window.location.href), function(I) {
  26107. const Z = _t.isString(I) ? y(I) : I;
  26108. return Z.protocol === h.protocol && Z.host === h.host;
  26109. };
  26110. }()
  26111. ) : (
  26112. // Non standard browser envs (web workers, react-native) lack needed support.
  26113. function() {
  26114. return function() {
  26115. return !0;
  26116. };
  26117. }()
  26118. );
  26119. function gC(r) {
  26120. const f = /^([-+\w]{1,25})(:?\/\/|:)/.exec(r);
  26121. return f && f[1] || "";
  26122. }
  26123. function mC(r, f) {
  26124. r = r || 10;
  26125. const E = new Array(r), h = new Array(r);
  26126. let y = 0, j = 0, I;
  26127. return f = f !== void 0 ? f : 1e3, function(F) {
  26128. const U = Date.now(), H = h[j];
  26129. I || (I = U), E[y] = F, h[y] = U;
  26130. let W = j, R = 0;
  26131. for (; W !== y; )
  26132. R += E[W++], W = W % r;
  26133. if (y = (y + 1) % r, y === j && (j = (j + 1) % r), U - I < f)
  26134. return;
  26135. const S = H && U - H;
  26136. return S ? Math.round(R * 1e3 / S) : void 0;
  26137. };
  26138. }
  26139. function Np(r, f) {
  26140. let E = 0;
  26141. const h = mC(50, 250);
  26142. return (y) => {
  26143. const j = y.loaded, I = y.lengthComputable ? y.total : void 0, Z = j - E, F = h(Z), U = j <= I;
  26144. E = j;
  26145. const H = {
  26146. loaded: j,
  26147. total: I,
  26148. progress: I ? j / I : void 0,
  26149. bytes: Z,
  26150. rate: F || void 0,
  26151. estimated: F && I && U ? (I - j) / F : void 0,
  26152. event: y
  26153. };
  26154. H[f ? "download" : "upload"] = !0, r(H);
  26155. };
  26156. }
  26157. const yC = typeof XMLHttpRequest < "u", vC = yC && function(r) {
  26158. return new Promise(function(E, h) {
  26159. let y = r.data;
  26160. const j = dr.from(r.headers).normalize(), I = r.responseType;
  26161. let Z;
  26162. function F() {
  26163. r.cancelToken && r.cancelToken.unsubscribe(Z), r.signal && r.signal.removeEventListener("abort", Z);
  26164. }
  26165. _t.isFormData(y) && (Fi.isStandardBrowserEnv || Fi.isStandardBrowserWebWorkerEnv ? j.setContentType(!1) : j.setContentType("multipart/form-data;", !1));
  26166. let U = new XMLHttpRequest();
  26167. if (r.auth) {
  26168. const S = r.auth.username || "", v = r.auth.password ? unescape(encodeURIComponent(r.auth.password)) : "";
  26169. j.set("Authorization", "Basic " + btoa(S + ":" + v));
  26170. }
  26171. const H = hd(r.baseURL, r.url);
  26172. U.open(r.method.toUpperCase(), nd(H, r.params, r.paramsSerializer), !0), U.timeout = r.timeout;
  26173. function W() {
  26174. if (!U)
  26175. return;
  26176. const S = dr.from(
  26177. "getAllResponseHeaders" in U && U.getAllResponseHeaders()
  26178. ), d = {
  26179. data: !I || I === "text" || I === "json" ? U.responseText : U.response,
  26180. status: U.status,
  26181. statusText: U.statusText,
  26182. headers: S,
  26183. config: r,
  26184. request: U
  26185. };
  26186. cC(function(P) {
  26187. E(P), F();
  26188. }, function(P) {
  26189. h(P), F();
  26190. }, d), U = null;
  26191. }
  26192. if ("onloadend" in U ? U.onloadend = W : U.onreadystatechange = function() {
  26193. !U || U.readyState !== 4 || U.status === 0 && !(U.responseURL && U.responseURL.indexOf("file:") === 0) || setTimeout(W);
  26194. }, U.onabort = function() {
  26195. U && (h(new fe("Request aborted", fe.ECONNABORTED, r, U)), U = null);
  26196. }, U.onerror = function() {
  26197. h(new fe("Network Error", fe.ERR_NETWORK, r, U)), U = null;
  26198. }, U.ontimeout = function() {
  26199. let v = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
  26200. const d = r.transitional || od;
  26201. r.timeoutErrorMessage && (v = r.timeoutErrorMessage), h(new fe(
  26202. v,
  26203. d.clarifyTimeoutError ? fe.ETIMEDOUT : fe.ECONNABORTED,
  26204. r,
  26205. U
  26206. )), U = null;
  26207. }, Fi.isStandardBrowserEnv) {
  26208. const S = (r.withCredentials || fC(H)) && r.xsrfCookieName && pC.read(r.xsrfCookieName);
  26209. S && j.set(r.xsrfHeaderName, S);
  26210. }
  26211. y === void 0 && j.setContentType(null), "setRequestHeader" in U && _t.forEach(j.toJSON(), function(v, d) {
  26212. U.setRequestHeader(d, v);
  26213. }), _t.isUndefined(r.withCredentials) || (U.withCredentials = !!r.withCredentials), I && I !== "json" && (U.responseType = r.responseType), typeof r.onDownloadProgress == "function" && U.addEventListener("progress", Np(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && U.upload && U.upload.addEventListener("progress", Np(r.onUploadProgress)), (r.cancelToken || r.signal) && (Z = (S) => {
  26214. U && (h(!S || S.type ? new co(null, r, U) : S), U.abort(), U = null);
  26215. }, r.cancelToken && r.cancelToken.subscribe(Z), r.signal && (r.signal.aborted ? Z() : r.signal.addEventListener("abort", Z)));
  26216. const R = gC(H);
  26217. if (R && Fi.protocols.indexOf(R) === -1) {
  26218. h(new fe("Unsupported protocol " + R + ":", fe.ERR_BAD_REQUEST, r));
  26219. return;
  26220. }
  26221. U.send(y || null);
  26222. });
  26223. }, us = {
  26224. http: GM,
  26225. xhr: vC
  26226. };
  26227. _t.forEach(us, (r, f) => {
  26228. if (r) {
  26229. try {
  26230. Object.defineProperty(r, "name", { value: f });
  26231. } catch {
  26232. }
  26233. Object.defineProperty(r, "adapterName", { value: f });
  26234. }
  26235. });
  26236. const xC = {
  26237. getAdapter: (r) => {
  26238. r = _t.isArray(r) ? r : [r];
  26239. const { length: f } = r;
  26240. let E, h;
  26241. for (let y = 0; y < f && (E = r[y], !(h = _t.isString(E) ? us[E.toLowerCase()] : E)); y++)
  26242. ;
  26243. if (!h)
  26244. throw h === !1 ? new fe(
  26245. `Adapter ${E} is not supported by the environment`,
  26246. "ERR_NOT_SUPPORT"
  26247. ) : new Error(
  26248. _t.hasOwnProp(us, E) ? `Adapter '${E}' is not available in the build` : `Unknown adapter '${E}'`
  26249. );
  26250. if (!_t.isFunction(h))
  26251. throw new TypeError("adapter is not a function");
  26252. return h;
  26253. },
  26254. adapters: us
  26255. };
  26256. function dh(r) {
  26257. if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
  26258. throw new co(null, r);
  26259. }
  26260. function Bp(r) {
  26261. return dh(r), r.headers = dr.from(r.headers), r.data = uh.call(
  26262. r,
  26263. r.transformRequest
  26264. ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), xC.getAdapter(r.adapter || $h.adapter)(r).then(function(h) {
  26265. return dh(r), h.data = uh.call(
  26266. r,
  26267. r.transformResponse,
  26268. h
  26269. ), h.headers = dr.from(h.headers), h;
  26270. }, function(h) {
  26271. return ad(h) || (dh(r), h && h.response && (h.response.data = uh.call(
  26272. r,
  26273. r.transformResponse,
  26274. h.response
  26275. ), h.response.headers = dr.from(h.response.headers))), Promise.reject(h);
  26276. });
  26277. }
  26278. const jp = (r) => r instanceof dr ? r.toJSON() : r;
  26279. function wn(r, f) {
  26280. f = f || {};
  26281. const E = {};
  26282. function h(U, H, W) {
  26283. return _t.isPlainObject(U) && _t.isPlainObject(H) ? _t.merge.call({ caseless: W }, U, H) : _t.isPlainObject(H) ? _t.merge({}, H) : _t.isArray(H) ? H.slice() : H;
  26284. }
  26285. function y(U, H, W) {
  26286. if (_t.isUndefined(H)) {
  26287. if (!_t.isUndefined(U))
  26288. return h(void 0, U, W);
  26289. } else
  26290. return h(U, H, W);
  26291. }
  26292. function j(U, H) {
  26293. if (!_t.isUndefined(H))
  26294. return h(void 0, H);
  26295. }
  26296. function I(U, H) {
  26297. if (_t.isUndefined(H)) {
  26298. if (!_t.isUndefined(U))
  26299. return h(void 0, U);
  26300. } else
  26301. return h(void 0, H);
  26302. }
  26303. function Z(U, H, W) {
  26304. if (W in f)
  26305. return h(U, H);
  26306. if (W in r)
  26307. return h(void 0, U);
  26308. }
  26309. const F = {
  26310. url: j,
  26311. method: j,
  26312. data: j,
  26313. baseURL: I,
  26314. transformRequest: I,
  26315. transformResponse: I,
  26316. paramsSerializer: I,
  26317. timeout: I,
  26318. timeoutMessage: I,
  26319. withCredentials: I,
  26320. adapter: I,
  26321. responseType: I,
  26322. xsrfCookieName: I,
  26323. xsrfHeaderName: I,
  26324. onUploadProgress: I,
  26325. onDownloadProgress: I,
  26326. decompress: I,
  26327. maxContentLength: I,
  26328. maxBodyLength: I,
  26329. beforeRedirect: I,
  26330. transport: I,
  26331. httpAgent: I,
  26332. httpsAgent: I,
  26333. cancelToken: I,
  26334. socketPath: I,
  26335. responseEncoding: I,
  26336. validateStatus: Z,
  26337. headers: (U, H) => y(jp(U), jp(H), !0)
  26338. };
  26339. return _t.forEach(Object.keys(Object.assign({}, r, f)), function(H) {
  26340. const W = F[H] || y, R = W(r[H], f[H], H);
  26341. _t.isUndefined(R) && W !== Z || (E[H] = R);
  26342. }), E;
  26343. }
  26344. const ld = "1.4.0", Zh = {};
  26345. ["object", "boolean", "number", "function", "string", "symbol"].forEach((r, f) => {
  26346. Zh[r] = function(h) {
  26347. return typeof h === r || "a" + (f < 1 ? "n " : " ") + r;
  26348. };
  26349. });
  26350. const Wp = {};
  26351. Zh.transitional = function(f, E, h) {
  26352. function y(j, I) {
  26353. return "[Axios v" + ld + "] Transitional option '" + j + "'" + I + (h ? ". " + h : "");
  26354. }
  26355. return (j, I, Z) => {
  26356. if (f === !1)
  26357. throw new fe(
  26358. y(I, " has been removed" + (E ? " in " + E : "")),
  26359. fe.ERR_DEPRECATED
  26360. );
  26361. return E && !Wp[I] && (Wp[I] = !0, console.warn(
  26362. y(
  26363. I,
  26364. " has been deprecated since v" + E + " and will be removed in the near future"
  26365. )
  26366. )), f ? f(j, I, Z) : !0;
  26367. };
  26368. };
  26369. function bC(r, f, E) {
  26370. if (typeof r != "object")
  26371. throw new fe("options must be an object", fe.ERR_BAD_OPTION_VALUE);
  26372. const h = Object.keys(r);
  26373. let y = h.length;
  26374. for (; y-- > 0; ) {
  26375. const j = h[y], I = f[j];
  26376. if (I) {
  26377. const Z = r[j], F = Z === void 0 || I(Z, j, r);
  26378. if (F !== !0)
  26379. throw new fe("option " + j + " must be " + F, fe.ERR_BAD_OPTION_VALUE);
  26380. continue;
  26381. }
  26382. if (E !== !0)
  26383. throw new fe("Unknown option " + j, fe.ERR_BAD_OPTION);
  26384. }
  26385. }
  26386. const Mh = {
  26387. assertOptions: bC,
  26388. validators: Zh
  26389. }, Ar = Mh.validators;
  26390. class ks {
  26391. constructor(f) {
  26392. this.defaults = f, this.interceptors = {
  26393. request: new Ip(),
  26394. response: new Ip()
  26395. };
  26396. }
  26397. /**
  26398. * Dispatch a request
  26399. *
  26400. * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
  26401. * @param {?Object} config
  26402. *
  26403. * @returns {Promise} The Promise to be fulfilled
  26404. */
  26405. request(f, E) {
  26406. typeof f == "string" ? (E = E || {}, E.url = f) : E = f || {}, E = wn(this.defaults, E);
  26407. const { transitional: h, paramsSerializer: y, headers: j } = E;
  26408. h !== void 0 && Mh.assertOptions(h, {
  26409. silentJSONParsing: Ar.transitional(Ar.boolean),
  26410. forcedJSONParsing: Ar.transitional(Ar.boolean),
  26411. clarifyTimeoutError: Ar.transitional(Ar.boolean)
  26412. }, !1), y != null && (_t.isFunction(y) ? E.paramsSerializer = {
  26413. serialize: y
  26414. } : Mh.assertOptions(y, {
  26415. encode: Ar.function,
  26416. serialize: Ar.function
  26417. }, !0)), E.method = (E.method || this.defaults.method || "get").toLowerCase();
  26418. let I;
  26419. I = j && _t.merge(
  26420. j.common,
  26421. j[E.method]
  26422. ), I && _t.forEach(
  26423. ["delete", "get", "head", "post", "put", "patch", "common"],
  26424. (v) => {
  26425. delete j[v];
  26426. }
  26427. ), E.headers = dr.concat(I, j);
  26428. const Z = [];
  26429. let F = !0;
  26430. this.interceptors.request.forEach(function(d) {
  26431. typeof d.runWhen == "function" && d.runWhen(E) === !1 || (F = F && d.synchronous, Z.unshift(d.fulfilled, d.rejected));
  26432. });
  26433. const U = [];
  26434. this.interceptors.response.forEach(function(d) {
  26435. U.push(d.fulfilled, d.rejected);
  26436. });
  26437. let H, W = 0, R;
  26438. if (!F) {
  26439. const v = [Bp.bind(this), void 0];
  26440. for (v.unshift.apply(v, Z), v.push.apply(v, U), R = v.length, H = Promise.resolve(E); W < R; )
  26441. H = H.then(v[W++], v[W++]);
  26442. return H;
  26443. }
  26444. R = Z.length;
  26445. let S = E;
  26446. for (W = 0; W < R; ) {
  26447. const v = Z[W++], d = Z[W++];
  26448. try {
  26449. S = v(S);
  26450. } catch (u) {
  26451. d.call(this, u);
  26452. break;
  26453. }
  26454. }
  26455. try {
  26456. H = Bp.call(this, S);
  26457. } catch (v) {
  26458. return Promise.reject(v);
  26459. }
  26460. for (W = 0, R = U.length; W < R; )
  26461. H = H.then(U[W++], U[W++]);
  26462. return H;
  26463. }
  26464. getUri(f) {
  26465. f = wn(this.defaults, f);
  26466. const E = hd(f.baseURL, f.url);
  26467. return nd(E, f.params, f.paramsSerializer);
  26468. }
  26469. }
  26470. _t.forEach(["delete", "get", "head", "options"], function(f) {
  26471. ks.prototype[f] = function(E, h) {
  26472. return this.request(wn(h || {}, {
  26473. method: f,
  26474. url: E,
  26475. data: (h || {}).data
  26476. }));
  26477. };
  26478. });
  26479. _t.forEach(["post", "put", "patch"], function(f) {
  26480. function E(h) {
  26481. return function(j, I, Z) {
  26482. return this.request(wn(Z || {}, {
  26483. method: f,
  26484. headers: h ? {
  26485. "Content-Type": "multipart/form-data"
  26486. } : {},
  26487. url: j,
  26488. data: I
  26489. }));
  26490. };
  26491. }
  26492. ks.prototype[f] = E(), ks.prototype[f + "Form"] = E(!0);
  26493. });
  26494. const ds = ks;
  26495. class Kh {
  26496. constructor(f) {
  26497. if (typeof f != "function")
  26498. throw new TypeError("executor must be a function.");
  26499. let E;
  26500. this.promise = new Promise(function(j) {
  26501. E = j;
  26502. });
  26503. const h = this;
  26504. this.promise.then((y) => {
  26505. if (!h._listeners)
  26506. return;
  26507. let j = h._listeners.length;
  26508. for (; j-- > 0; )
  26509. h._listeners[j](y);
  26510. h._listeners = null;
  26511. }), this.promise.then = (y) => {
  26512. let j;
  26513. const I = new Promise((Z) => {
  26514. h.subscribe(Z), j = Z;
  26515. }).then(y);
  26516. return I.cancel = function() {
  26517. h.unsubscribe(j);
  26518. }, I;
  26519. }, f(function(j, I, Z) {
  26520. h.reason || (h.reason = new co(j, I, Z), E(h.reason));
  26521. });
  26522. }
  26523. /**
  26524. * Throws a `CanceledError` if cancellation has been requested.
  26525. */
  26526. throwIfRequested() {
  26527. if (this.reason)
  26528. throw this.reason;
  26529. }
  26530. /**
  26531. * Subscribe to the cancel signal
  26532. */
  26533. subscribe(f) {
  26534. if (this.reason) {
  26535. f(this.reason);
  26536. return;
  26537. }
  26538. this._listeners ? this._listeners.push(f) : this._listeners = [f];
  26539. }
  26540. /**
  26541. * Unsubscribe from the cancel signal
  26542. */
  26543. unsubscribe(f) {
  26544. if (!this._listeners)
  26545. return;
  26546. const E = this._listeners.indexOf(f);
  26547. E !== -1 && this._listeners.splice(E, 1);
  26548. }
  26549. /**
  26550. * Returns an object that contains a new `CancelToken` and a function that, when called,
  26551. * cancels the `CancelToken`.
  26552. */
  26553. static source() {
  26554. let f;
  26555. return {
  26556. token: new Kh(function(y) {
  26557. f = y;
  26558. }),
  26559. cancel: f
  26560. };
  26561. }
  26562. }
  26563. const SC = Kh;
  26564. function wC(r) {
  26565. return function(E) {
  26566. return r.apply(null, E);
  26567. };
  26568. }
  26569. function MC(r) {
  26570. return _t.isObject(r) && r.isAxiosError === !0;
  26571. }
  26572. const Ch = {
  26573. Continue: 100,
  26574. SwitchingProtocols: 101,
  26575. Processing: 102,
  26576. EarlyHints: 103,
  26577. Ok: 200,
  26578. Created: 201,
  26579. Accepted: 202,
  26580. NonAuthoritativeInformation: 203,
  26581. NoContent: 204,
  26582. ResetContent: 205,
  26583. PartialContent: 206,
  26584. MultiStatus: 207,
  26585. AlreadyReported: 208,
  26586. ImUsed: 226,
  26587. MultipleChoices: 300,
  26588. MovedPermanently: 301,
  26589. Found: 302,
  26590. SeeOther: 303,
  26591. NotModified: 304,
  26592. UseProxy: 305,
  26593. Unused: 306,
  26594. TemporaryRedirect: 307,
  26595. PermanentRedirect: 308,
  26596. BadRequest: 400,
  26597. Unauthorized: 401,
  26598. PaymentRequired: 402,
  26599. Forbidden: 403,
  26600. NotFound: 404,
  26601. MethodNotAllowed: 405,
  26602. NotAcceptable: 406,
  26603. ProxyAuthenticationRequired: 407,
  26604. RequestTimeout: 408,
  26605. Conflict: 409,
  26606. Gone: 410,
  26607. LengthRequired: 411,
  26608. PreconditionFailed: 412,
  26609. PayloadTooLarge: 413,
  26610. UriTooLong: 414,
  26611. UnsupportedMediaType: 415,
  26612. RangeNotSatisfiable: 416,
  26613. ExpectationFailed: 417,
  26614. ImATeapot: 418,
  26615. MisdirectedRequest: 421,
  26616. UnprocessableEntity: 422,
  26617. Locked: 423,
  26618. FailedDependency: 424,
  26619. TooEarly: 425,
  26620. UpgradeRequired: 426,
  26621. PreconditionRequired: 428,
  26622. TooManyRequests: 429,
  26623. RequestHeaderFieldsTooLarge: 431,
  26624. UnavailableForLegalReasons: 451,
  26625. InternalServerError: 500,
  26626. NotImplemented: 501,
  26627. BadGateway: 502,
  26628. ServiceUnavailable: 503,
  26629. GatewayTimeout: 504,
  26630. HttpVersionNotSupported: 505,
  26631. VariantAlsoNegotiates: 506,
  26632. InsufficientStorage: 507,
  26633. LoopDetected: 508,
  26634. NotExtended: 510,
  26635. NetworkAuthenticationRequired: 511
  26636. };
  26637. Object.entries(Ch).forEach(([r, f]) => {
  26638. Ch[f] = r;
  26639. });
  26640. const CC = Ch;
  26641. function cd(r) {
  26642. const f = new ds(r), E = Uu(ds.prototype.request, f);
  26643. return _t.extend(E, ds.prototype, f, { allOwnKeys: !0 }), _t.extend(E, f, null, { allOwnKeys: !0 }), E.create = function(y) {
  26644. return cd(wn(r, y));
  26645. }, E;
  26646. }
  26647. const Ge = cd($h);
  26648. Ge.Axios = ds;
  26649. Ge.CanceledError = co;
  26650. Ge.CancelToken = SC;
  26651. Ge.isCancel = ad;
  26652. Ge.VERSION = ld;
  26653. Ge.toFormData = Ys;
  26654. Ge.AxiosError = fe;
  26655. Ge.Cancel = Ge.CanceledError;
  26656. Ge.all = function(f) {
  26657. return Promise.all(f);
  26658. };
  26659. Ge.spread = wC;
  26660. Ge.isAxiosError = MC;
  26661. Ge.mergeConfig = wn;
  26662. Ge.AxiosHeaders = dr;
  26663. Ge.formToJSON = (r) => sd(_t.isHTMLForm(r) ? new FormData(r) : r);
  26664. Ge.HttpStatusCode = CC;
  26665. Ge.default = Ge;
  26666. const kC = Ge;
  26667. let AC = {
  26668. baseURL: "/api",
  26669. timeout: 10 * 60 * 1e3
  26670. };
  26671. const Jh = kC.create(AC);
  26672. Jh.interceptors.request.use(
  26673. function(r) {
  26674. return r;
  26675. },
  26676. function(r) {
  26677. return console.error(r), Promise.reject(r);
  26678. }
  26679. );
  26680. Jh.interceptors.response.use(
  26681. function(r) {
  26682. let f = r.data;
  26683. return r.status !== 200 && console.error("网络异常"), f || console.error("服务器开了个小差"), f.Ret === 408 && console.error(f.Msg), f.Ret === 403 && console.error(f.Msg || "网络异常"), f;
  26684. },
  26685. function(r) {
  26686. return console.error(r), Promise.reject(r);
  26687. }
  26688. );
  26689. const pd = (r, f) => Jh.post(r, f), TC = (r) => pd("/chart/detail", r), PC = (r) => pd("/excel/detail", r);
  26690. function ud(r) {
  26691. if (r.indexOf("?") === -1)
  26692. return {};
  26693. const E = r.split("?")[1].split("&"), h = {};
  26694. return E.forEach((y) => {
  26695. const [j, I] = y.split("=");
  26696. h[j] = decodeURIComponent(I);
  26697. }), h;
  26698. }
  26699. const EC = `@charset "UTF-8";div[data-v-f415cce0]{box-sizing:border-box}.hz-chart-wrap[data-v-f415cce0]{font:initial;page-break-inside:avoid;max-width:1200PX;height:100%;overflow:hidden;position:relative;margin:0 auto;border:1PX solid rgba(0,0,0,.125)!important;background:#fff;border-radius:5PX;display:flex;flex-direction:column;font-family:PingFangSC-Regular,微软雅黑,宋体!important}.hz-chart-wrap .hz-chart-head[data-v-f415cce0]{box-sizing:border-box;background-color:#f2f2f2;border-bottom:1px solid rgba(0,0,0,.125);cursor:pointer;min-height:40PX;display:flex;align-items:center;padding:2PX 10PX}.hz-chart-wrap .hz-chart-head .chart-title[data-v-f415cce0]{width:100%}.hz-chart-wrap .chart-wrapper[data-v-f415cce0]{position:relative;display:flex;height:100%;width:100%}.hz-chart-wrap .chart-wrapper .hz-chart-content[data-v-f415cce0]{width:100%;flex:1}.hz-chart-wrap .chart-wrapper .mark[data-v-f415cce0]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-image:none;background-position:center center;background-repeat:no-repeat;background-size:contain;pointer-events:none;width:80%;height:80%}.hz-chart-wrap .notfound[data-v-f415cce0]{flex:1;overflow:hidden;padding:10PX;color:#777;text-align:center}.hz-chart-wrap .chart-bottom-info[data-v-f415cce0]{padding-right:10PX;padding-bottom:0;padding-left:25PX;display:flex}.hz-chart-wrap .chart-bottom-info .chart-instruction[data-v-f415cce0]{max-width:80%;flex:1;text-align:right;margin-left:auto}.hz-chart-wrap .hz-chart-footer[data-v-f415cce0]{padding-left:25PX;padding-right:10PX;padding-bottom:10PX;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:1px}.hz-chart-wrap .text_oneLine[data-v-f415cce0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  26700. `, dd = (r, f) => {
  26701. const E = r.__vccOpts || r;
  26702. for (const [h, y] of f)
  26703. E[h] = y;
  26704. return E;
  26705. }, OC = { class: "hz-chart-head" }, LC = {
  26706. key: 0,
  26707. class: "chart-wrapper"
  26708. }, _C = ["id"], DC = {
  26709. key: 1,
  26710. class: "notfound"
  26711. }, IC = {
  26712. key: 2,
  26713. class: "chart-bottom-info bootom-source"
  26714. }, RC = ["textContent"], NC = {
  26715. __name: "EtaChart.ce",
  26716. props: {
  26717. src: "",
  26718. width: "",
  26719. height: "",
  26720. style: ""
  26721. },
  26722. setup(r) {
  26723. const f = r, { chartRender: E, setLimitData: h, isUseSelfLimit: y } = zw(), j = ud(f.src), I = Le(null), Z = Le(""), F = Le(null), U = Le(null), H = Le(!1), W = Le(null), R = Le(null), S = Le(null);
  26724. async function v() {
  26725. if (!j.code) {
  26726. H.value = !1;
  26727. return;
  26728. }
  26729. try {
  26730. const u = await TC({
  26731. UniqueCode: j.code
  26732. });
  26733. if (u.Ret !== 200)
  26734. return;
  26735. F.value = u.Data.ChartInfo, U.value = u.Data.ChartInfo.Source === 1 ? u.Data.EdbInfoList : [u.Data.EdbInfoList[0]], Z.value = `hz-chart_${j.code}_${(/* @__PURE__ */ new Date()).getTime()}`, d(), H.value = !0, u.Data.ChartInfo.Source === 1 && ![7, 10, 11].includes(u.Data.ChartInfo.ChartType) ? (y.value = !0, h(u.Data)) : y.value = !1, fs(() => {
  26736. E({
  26737. data: u.Data,
  26738. renderId: I.value,
  26739. lang: j.language,
  26740. changeLangIsCheck: !1,
  26741. showChartTitle: !1,
  26742. shouldUseSelfLimit: !0
  26743. }), u.Data.WaterMark && (W.value.style.backgroundImage = `url(${u.Data.WaterMark})`);
  26744. }), fs(() => {
  26745. var P;
  26746. S.value && (S.value.style.maxWidth = ((P = R.value) == null ? void 0 : P.clientWidth) + "px");
  26747. });
  26748. } catch {
  26749. H.value = !1;
  26750. }
  26751. }
  26752. const d = () => {
  26753. j.language = j.fromPage || j.lang || "zh";
  26754. };
  26755. return v(), (u, P) => {
  26756. var O, N, C, b;
  26757. return Je(), qe("div", {
  26758. class: "hz-chart-wrap",
  26759. ref_key: "chartContainer",
  26760. ref: R,
  26761. style: Tr([f.style + ";height:" + f.height + "px", { margin: "0 0 10px 0" }])
  26762. }, [
  26763. lr("header", OC, [
  26764. F.value ? (Je(), qe("span", {
  26765. key: 0,
  26766. class: "chart-title",
  26767. style: Tr(F.value.ChartThemeStyle ? `
  26768. text-align:${JSON.parse(F.value.ChartThemeStyle).titleOptions.align};
  26769. font-size:${JSON.parse(F.value.ChartThemeStyle).titleOptions.style.fontSize}px;
  26770. color:${JSON.parse(F.value.ChartThemeStyle).titleOptions.style.color}
  26771. ` : "")
  26772. }, mn(A0(j).language === "en" ? F.value.ChartNameEn : F.value.ChartName), 5)) : Jn("", !0)
  26773. ]),
  26774. H.value ? (Je(), qe("div", LC, [
  26775. lr("div", {
  26776. id: Z.value,
  26777. ref_key: "chartContentEl",
  26778. ref: I,
  26779. class: "hz-chart-content"
  26780. }, null, 8, _C),
  26781. lr("div", {
  26782. class: "mark",
  26783. ref_key: "markDom",
  26784. ref: W
  26785. }, null, 512)
  26786. ])) : (Je(), qe("div", DC, " 哎吆,你的图飞了,赶快去找管理员救命吧~ ")),
  26787. (O = F.value) != null && O.Instructions && JSON.parse((N = F.value) == null ? void 0 : N.Instructions).isShow ? (Je(), qe("div", IC, [
  26788. lr("div", {
  26789. class: "chart-instruction text_oneLine",
  26790. textContent: mn(JSON.parse(F.value.Instructions).text),
  26791. style: Tr(`
  26792. color: ${JSON.parse(F.value.Instructions).color};
  26793. font-size: ${JSON.parse(F.value.Instructions).fontSize}px
  26794. `)
  26795. }, null, 12, RC)
  26796. ])) : Jn("", !0),
  26797. (C = F.value) != null && C.SourcesFrom && ((b = JSON.parse(F.value.SourcesFrom)) != null && b.isShow) ? (Je(), qe("div", {
  26798. key: 3,
  26799. class: "hz-chart-footer",
  26800. ref_key: "chartFooter",
  26801. ref: S,
  26802. style: Tr(`
  26803. color: ${JSON.parse(F.value.SourcesFrom).color};
  26804. font-size: ${JSON.parse(F.value.SourcesFrom).fontSize}px;
  26805. `)
  26806. }, [
  26807. zp(" source:"),
  26808. lr("em", null, mn(JSON.parse(F.value.SourcesFrom).text), 1)
  26809. ], 4)) : Jn("", !0)
  26810. ], 4);
  26811. };
  26812. }
  26813. }, BC = /* @__PURE__ */ dd(NC, [["styles", [EC]], ["__scopeId", "data-v-f415cce0"]]), jC = `@charset "UTF-8";.sheet-show-wrapper[data-v-98ab6c2e]{max-width:1200PX;overflow:hidden;position:relative;margin:0 auto;background:#fff;font-family:PingFangSC-Regular,微软雅黑,宋体!important}.sheet-show-wrapper .title[data-v-98ab6c2e]{font-size:17PX;font-weight:400;padding:0 10PX;margin:0 0 8PX}.sheet-show-wrapper .table-wrapper[data-v-98ab6c2e]{max-width:calc(100vw - 20PX);margin:0 auto;overflow:auto}.sheet-show-wrapper .table-wrapper table[data-v-98ab6c2e]{width:100%;font-size:14PX;color:#333;table-layout:auto}.sheet-show-wrapper .table-wrapper table td[data-v-98ab6c2e],.sheet-show-wrapper .table-wrapper table th[data-v-98ab6c2e]{width:auto;height:auto;padding:.4em 0;word-break:break-all;word-wrap:break-word;line-height:1.2em;border:1PX solid #dcdfe6;text-align:center;background-color:#fff;border-left:none;border-top:none}.sheet-show-wrapper .table-wrapper table td[data-v-98ab6c2e]:first-child,.sheet-show-wrapper .table-wrapper table th[data-v-98ab6c2e]:first-child{border-left:1PX solid #dcdfe6}.sheet-show-wrapper .table-wrapper table .data-cell[data-v-98ab6c2e]{color:#333}.sheet-show-wrapper .table-wrapper table .data-cell.one-bg[data-v-98ab6c2e]{background-color:#efeef1}.sheet-show-wrapper .table-wrapper table .data-cell.two-bg[data-v-98ab6c2e]{background-color:#fff}.sheet-show-wrapper .table-wrapper table .thead-sticky[data-v-98ab6c2e]{position:sticky;top:0}.sheet-show-wrapper .table-wrapper table .head-column[data-v-98ab6c2e]{background-color:#505b78;color:#fff}.sheet-show-wrapper .table-wrapper table .split-word span[data-v-98ab6c2e]{display:inline}.sheet-show-wrapper .sheet-source[data-v-98ab6c2e]{margin-top:5PX;min-width:150PX;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  26814. `, WC = { class: "table-wrapper" }, zC = ["colspan", "rowspan"], YC = {
  26815. key: 0,
  26816. class: "split-word"
  26817. }, XC = { key: 1 }, GC = {
  26818. __name: "EtaTable.ce",
  26819. props: {
  26820. src: "",
  26821. width: "",
  26822. height: "",
  26823. style: ""
  26824. },
  26825. setup(r) {
  26826. const E = ud(r.src), h = Le({}), y = Le(!1), j = Le(null), I = Le(null), Z = (U) => JSON.stringify({
  26827. isShow: !0,
  26828. text: U,
  26829. color: "#606266",
  26830. fontSize: 9
  26831. });
  26832. async function F() {
  26833. const U = await PC({ UniqueCode: E.code, FromScene: Number(E.fromScene || "") });
  26834. U.Ret === 200 && (h.value = U.Data, h.value.SourcesFrom || (h.value.SourcesFrom = U.Data.ExcelSource ? Z(U.Data.ExcelSource || "") : ""), y.value = !0, fs(() => {
  26835. var H;
  26836. console.log(j.value.clientWidth), I.value && (I.value.style.maxWidth = ((H = j.value) == null ? void 0 : H.clientWidth) + "px");
  26837. }));
  26838. }
  26839. return F(), (U, H) => {
  26840. var W, R;
  26841. return y.value ? (Je(), qe("div", {
  26842. key: 0,
  26843. class: "sheet-show-wrapper",
  26844. ref_key: "sheetRef",
  26845. ref: j
  26846. }, [
  26847. lr("div", WC, [
  26848. lr("table", {
  26849. cellpadding: "0",
  26850. cellspacing: "0",
  26851. style: Tr(`font-size: ${((W = h.value.Config) == null ? void 0 : W.FontSize) || 12}PX`)
  26852. }, [
  26853. lr("tbody", null, [
  26854. (Je(!0), qe(eh, null, ih((R = h.value.TableInfo) == null ? void 0 : R.TableDataList, (S, v) => (Je(), qe("tr", { key: v }, [
  26855. (Je(!0), qe(eh, null, ih(S, (d, u) => (Je(), qe("td", {
  26856. class: T0(["data-cell", {
  26857. "one-bg": (v + 1) % 2 && v > 0,
  26858. "tow-bg": (v + 1) % 2 !== 0 && v > 0,
  26859. "head-column": v === 0
  26860. }]),
  26861. key: u,
  26862. colspan: d.mc.cs || 1,
  26863. rowspan: d.mc.rs || 1,
  26864. style: Tr(`
  26865. color: ${d.fc};
  26866. font-weight: ${d.bl ? "bold" : "normal"};
  26867. font-style: ${d.it ? "italic" : "normal"};
  26868. background: ${d.bg};
  26869. `)
  26870. }, [
  26871. d.ct.s ? (Je(), qe("div", YC, [
  26872. (Je(!0), qe(eh, null, ih(d.ct.s, (P, O) => (Je(), qe("span", {
  26873. key: `${v}_${u}_${O}`,
  26874. style: Tr(`
  26875. color: ${P.fc};
  26876. font-weight: ${P.bl ? "bold" : "normal"};
  26877. font-style: ${P.it ? "italic" : "normal"};
  26878. `)
  26879. }, mn(P.v), 5))), 128))
  26880. ])) : (Je(), qe("div", XC, mn(d.m), 1))
  26881. ], 14, zC))), 128))
  26882. ]))), 128))
  26883. ])
  26884. ], 4)
  26885. ]),
  26886. h.value.SourcesFrom && JSON.parse(h.value.SourcesFrom).isShow ? (Je(), qe("div", {
  26887. key: 0,
  26888. class: "sheet-source",
  26889. ref_key: "sheetFooter",
  26890. ref: I,
  26891. style: Tr(`
  26892. color: ${JSON.parse(h.value.SourcesFrom).color};
  26893. font-size: ${JSON.parse(h.value.SourcesFrom).fontSize}px;
  26894. `)
  26895. }, [
  26896. zp(" source:"),
  26897. lr("em", null, mn(JSON.parse(h.value.SourcesFrom).text), 1)
  26898. ], 4)) : Jn("", !0)
  26899. ], 512)) : Jn("", !0);
  26900. };
  26901. }
  26902. }, HC = /* @__PURE__ */ dd(GC, [["styles", [jC]], ["__scopeId", "data-v-98ab6c2e"]]), FC = Yp(BC), UC = Yp(HC);
  26903. function $C() {
  26904. customElements.define("eta-chart", FC), customElements.define("eta-table", UC);
  26905. }
  26906. export {
  26907. $C as registerEtaComp
  26908. };