eta_comp.js 1.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716
  1. import { ref as Xe, reactive as M0, nextTick as Bp, openBlock as ri, createElementBlock as ni, normalizeStyle as Ur, createElementVNode as hr, toDisplayString as mn, unref as C0, createCommentVNode as ns, Fragment as os, createTextVNode as k0, renderList as Qa, normalizeClass as A0, defineCustomElement as jp } from "vue";
  2. const fs = {
  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. animation: {
  42. duration: 1e3
  43. }
  44. },
  45. areaspline: {
  46. lineWidth: 1,
  47. stacking: "normal",
  48. marker: {
  49. enabled: !1
  50. }
  51. // fillOpacity: 0.5,
  52. },
  53. column: {
  54. pointPadding: 0.05,
  55. stacking: "normal"
  56. },
  57. scatter: {
  58. turboThreshold: 0,
  59. marker: {
  60. symbol: "circle",
  61. radius: 5,
  62. states: {
  63. hover: {
  64. enabled: !0
  65. }
  66. }
  67. },
  68. states: {
  69. hover: {
  70. marker: {
  71. enabled: !0
  72. }
  73. }
  74. }
  75. }
  76. },
  77. //范围选择器
  78. rangeSelector: {
  79. enabled: !1,
  80. selected: 2
  81. },
  82. //悬浮提示框
  83. tooltip: {
  84. split: !1,
  85. shared: !0,
  86. dateTimeLabelFormats: {
  87. // 时间格式化字符
  88. day: "%Y/%m/%d",
  89. week: "%Y/%m",
  90. month: "%Y/%m",
  91. year: "%Y/%m"
  92. },
  93. xDateFormat: "%Y/%m/%d",
  94. className: "chart-tooltips-box"
  95. // formatter:function(e){
  96. // return `<p>${this.x}</p><p>aaa</p>`
  97. // // return e
  98. // }
  99. // outside: true,
  100. // valueDecimals: 4,
  101. },
  102. //图例
  103. legend: {
  104. enabled: !0,
  105. verticalAlign: "top",
  106. margin: 3
  107. // layout: 'vertical'
  108. },
  109. //滚动条
  110. scrollbar: {
  111. enabled: !1
  112. },
  113. //导航器
  114. navigator: {
  115. enabled: !1
  116. },
  117. //范围选择器
  118. rangeSelector: {
  119. enabled: !1
  120. },
  121. xAxis: {
  122. tickPosition: "inside",
  123. lineColor: "#bfbfbf",
  124. tickColor: "#bfbfbf",
  125. tickLength: 5,
  126. type: "datetime",
  127. ordinal: !1,
  128. dateTimeLabelFormats: {
  129. day: "%y/%m",
  130. week: "%y/%m",
  131. month: "%y/%m",
  132. year: "%y/%m"
  133. }
  134. // gridLineWidth:0
  135. }
  136. }, Mn = {
  137. tickPosition: "inside",
  138. lineColor: "#bfbfbf",
  139. tickColor: "#bfbfbf",
  140. tickLength: 5,
  141. ordinal: !1,
  142. type: "linear"
  143. }, Or = {
  144. tickWidth: 1,
  145. tickLength: 5,
  146. lineWidth: 1,
  147. lineColor: "#bfbfbf",
  148. tickColor: "#bfbfbf",
  149. // offset: 0,
  150. visible: !0,
  151. gridLineWidth: 0,
  152. tickPosition: "inside",
  153. endOnTick: !1,
  154. startOnTick: !1,
  155. showLastLabel: !0,
  156. tickPixelInterval: 50
  157. }, Wp = {
  158. tickPosition: "inside",
  159. lineColor: "#bfbfbf",
  160. tickColor: "#bfbfbf",
  161. tickLength: 5,
  162. type: "datetime",
  163. ordinal: !1,
  164. dateTimeLabelFormats: {
  165. day: "%y/%m",
  166. week: "%y/%m",
  167. month: "%y/%m",
  168. year: "%y/%m"
  169. },
  170. xDateFormat: "%Y-%m-%d"
  171. }, T0 = {
  172. 年: "Y",
  173. 季: "Q",
  174. 月: "M",
  175. 周: "W",
  176. 天: "D"
  177. }, bp = {
  178. 年: "Year",
  179. 季: "Season",
  180. 月: "Month",
  181. 周: "Week",
  182. 天: "Day"
  183. };
  184. var Hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
  185. function Cn(r) {
  186. return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
  187. }
  188. var zp = { exports: {} };
  189. (function(r) {
  190. (function(g, E) {
  191. r.exports ? (E.default = E, r.exports = g.document ? E(g) : E) : (g.Highcharts && g.Highcharts.error(16, !0), g.Highcharts = E(g));
  192. })(typeof window < "u" ? window : Hr, function(g) {
  193. function E(y, R, I, Z) {
  194. y.hasOwnProperty(R) || (y[R] = Z.apply(null, I));
  195. }
  196. var h = {};
  197. return E(h, "Core/Globals.js", [], function() {
  198. var y = typeof g < "u" ? g : typeof window < "u" ? window : {}, R;
  199. return function(I) {
  200. 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() {
  201. }, I.supportsPassiveEvents = function() {
  202. var Z = !1;
  203. if (!I.isMS) {
  204. var H = Object.defineProperty({}, "passive", { get: function() {
  205. Z = !0;
  206. } });
  207. I.win.addEventListener && I.win.removeEventListener && (I.win.addEventListener(
  208. "testPassive",
  209. I.noop,
  210. H
  211. ), I.win.removeEventListener("testPassive", I.noop, H));
  212. }
  213. return Z;
  214. }(), I.charts = [], I.dateFormats = {}, I.seriesTypes = {}, I.symbolSizes = {}, I.chartCount = 0;
  215. }(R || (R = {})), R;
  216. }), E(h, "Core/Utilities.js", [h["Core/Globals.js"]], function(y) {
  217. function R(t, n, o, A) {
  218. var _ = n ? "Highcharts error" : "Highcharts warning";
  219. t === 32 && (t = _ + ": Deprecated member");
  220. var D = w(t), j = D ? _ + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  221. if (typeof A < "u") {
  222. var T = "";
  223. D && (j += "?"), b(A, function(X, f) {
  224. T += `
  225. - ` + f + ": " + X, D && (j += encodeURI(f) + "=" + encodeURI(X));
  226. }), j += T;
  227. }
  228. x(y, "displayError", { chart: o, code: t, message: j, params: A }, function() {
  229. if (n)
  230. throw Error(j);
  231. p.console && R.messages.indexOf(j) === -1 && console.warn(j);
  232. }), R.messages.push(j);
  233. }
  234. function I(t, n) {
  235. var o = {};
  236. return b(t, function(A, _) {
  237. U(t[_], !0) && !t.nodeType && n[_] ? (A = I(t[_], n[_]), Object.keys(A).length && (o[_] = A)) : (U(t[_]) || t[_] !== n[_]) && (o[_] = t[_]);
  238. }), o;
  239. }
  240. function Z(t, n) {
  241. return parseInt(t, n || 10);
  242. }
  243. function H(t) {
  244. return typeof t == "string";
  245. }
  246. function $(t) {
  247. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  248. }
  249. function U(t, n) {
  250. return !!t && typeof t == "object" && (!n || !$(t));
  251. }
  252. function W(t) {
  253. return U(t) && typeof t.nodeType == "number";
  254. }
  255. function N(t) {
  256. var n = t && t.constructor;
  257. return !(!U(t, !0) || W(t) || !n || !n.name || n.name === "Object");
  258. }
  259. function w(t) {
  260. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  261. }
  262. function v(t) {
  263. return typeof t < "u" && t !== null;
  264. }
  265. function u(t, n, o) {
  266. var A;
  267. return H(n) ? v(o) ? t.setAttribute(n, o) : t && t.getAttribute && ((A = t.getAttribute(n)) || n !== "class" || (A = t.getAttribute(n + "Name"))) : b(n, function(_, D) {
  268. v(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  269. }), A;
  270. }
  271. function d(t, n) {
  272. var o;
  273. t || (t = {});
  274. for (o in n)
  275. t[o] = n[o];
  276. return t;
  277. }
  278. function P() {
  279. for (var t = arguments, n = t.length, o = 0; o < n; o++) {
  280. var A = t[o];
  281. if (typeof A < "u" && A !== null)
  282. return A;
  283. }
  284. }
  285. function O(t, n) {
  286. y.isMS && !y.svg && n && typeof n.opacity < "u" && (n.filter = "alpha(opacity=" + 100 * n.opacity + ")"), d(t.style, n);
  287. }
  288. function B(t, n) {
  289. return 1e14 < t ? t : parseFloat(t.toPrecision(n || 14));
  290. }
  291. function C(t, n, o) {
  292. var A = y.getStyle || C;
  293. if (n === "width")
  294. return n = Math.min(t.offsetWidth, t.scrollWidth), o = t.getBoundingClientRect && t.getBoundingClientRect().width, o < n && o >= n - 1 && (n = Math.floor(o)), Math.max(0, n - (A(t, "padding-left", !0) || 0) - (A(t, "padding-right", !0) || 0));
  295. if (n === "height")
  296. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (A(t, "padding-top", !0) || 0) - (A(t, "padding-bottom", !0) || 0));
  297. if (p.getComputedStyle || R(27, !0), t = p.getComputedStyle(t, void 0)) {
  298. var _ = t.getPropertyValue(n);
  299. P(o, n !== "opacity") && (_ = Z(_));
  300. }
  301. return _;
  302. }
  303. function b(t, n, o) {
  304. for (var A in t)
  305. Object.hasOwnProperty.call(t, A) && n.call(o || t[A], t[A], A, t);
  306. }
  307. function M(t, n, o) {
  308. function A(T, X) {
  309. var f = t.removeEventListener || y.removeEventListenerPolyfill;
  310. f && f.call(t, T, X, !1);
  311. }
  312. function _(T) {
  313. var X;
  314. if (t.nodeName) {
  315. if (n) {
  316. var f = {};
  317. f[n] = !0;
  318. } else
  319. f = T;
  320. b(f, function(m, L) {
  321. if (T[L])
  322. for (X = T[L].length; X--; )
  323. A(L, T[L][X].fn);
  324. });
  325. }
  326. }
  327. var D = typeof t == "function" && t.prototype || t;
  328. if (Object.hasOwnProperty.call(D, "hcEvents")) {
  329. var j = D.hcEvents;
  330. n ? (D = j[n] || [], o ? (j[n] = D.filter(function(T) {
  331. return o !== T.fn;
  332. }), A(n, o)) : (_(j), j[n] = [])) : (_(j), delete D.hcEvents);
  333. }
  334. }
  335. function x(t, n, o, A) {
  336. if (o = o || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  337. var _ = c.createEvent("Events");
  338. _.initEvent(n, !0, !0), o = d(_, o), t.dispatchEvent ? t.dispatchEvent(o) : t.fireEvent(n, o);
  339. } else if (t.hcEvents) {
  340. o.target || d(o, { preventDefault: function() {
  341. o.defaultPrevented = !0;
  342. }, target: t, type: n }), _ = [];
  343. for (var D = t, j = !1; D.hcEvents; )
  344. Object.hasOwnProperty.call(D, "hcEvents") && D.hcEvents[n] && (_.length && (j = !0), _.unshift.apply(_, D.hcEvents[n])), D = Object.getPrototypeOf(D);
  345. j && _.sort(function(T, X) {
  346. return T.order - X.order;
  347. }), _.forEach(function(T) {
  348. T.fn.call(t, o) === !1 && o.preventDefault();
  349. });
  350. }
  351. A && !o.defaultPrevented && A.call(t, o);
  352. }
  353. var a = y.charts, c = y.doc, p = y.win;
  354. (R || (R = {})).messages = [], Math.easeInOutSine = function(t) {
  355. return -0.5 * (Math.cos(Math.PI * t) - 1);
  356. };
  357. var i = Array.prototype.find ? function(t, n) {
  358. return t.find(n);
  359. } : function(t, n) {
  360. var o, A = t.length;
  361. for (o = 0; o < A; o++)
  362. if (n(t[o], o))
  363. return t[o];
  364. };
  365. b({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, n) {
  366. y[n] = function(o) {
  367. var A;
  368. return R(32, !1, void 0, (A = {}, A["Highcharts." + n] = "use Array." + t, A)), Array.prototype[t].apply(o, [].slice.call(arguments, 1));
  369. };
  370. });
  371. var l, s = function() {
  372. var t = Math.random().toString(36).substring(2, 9) + "-", n = 0;
  373. return function() {
  374. return "highcharts-" + (l ? "" : t) + n++;
  375. };
  376. }();
  377. return p.jQuery && (p.jQuery.fn.highcharts = function() {
  378. var t = [].slice.call(arguments);
  379. if (this[0])
  380. return t[0] ? (new y[H(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : a[u(this[0], "data-highcharts-chart")];
  381. }), i = { addEvent: function(t, n, o, A) {
  382. A === void 0 && (A = {});
  383. var _ = typeof t == "function" && t.prototype || t;
  384. Object.hasOwnProperty.call(_, "hcEvents") || (_.hcEvents = {}), _ = _.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  385. var D = t.addEventListener || y.addEventListenerPolyfill;
  386. return D && D.call(t, n, o, y.supportsPassiveEvents ? { passive: A.passive === void 0 ? n.indexOf("touch") !== -1 : A.passive, capture: !1 } : !1), _[n] || (_[n] = []), _[n].push({ fn: o, order: typeof A.order == "number" ? A.order : 1 / 0 }), _[n].sort(function(j, T) {
  387. return j.order - T.order;
  388. }), function() {
  389. M(t, n, o);
  390. };
  391. }, arrayMax: function(t) {
  392. for (var n = t.length, o = t[0]; n--; )
  393. t[n] > o && (o = t[n]);
  394. return o;
  395. }, arrayMin: function(t) {
  396. for (var n = t.length, o = t[0]; n--; )
  397. t[n] < o && (o = t[n]);
  398. return o;
  399. }, attr: u, clamp: function(t, n, o) {
  400. return t > n ? t < o ? t : o : n;
  401. }, cleanRecursively: I, clearTimeout: function(t) {
  402. v(t) && clearTimeout(t);
  403. }, correctFloat: B, createElement: function(t, n, o, A, _) {
  404. return t = c.createElement(t), n && d(t, n), _ && O(t, { padding: "0", border: "none", margin: "0" }), o && O(t, o), A && A.appendChild(t), t;
  405. }, css: O, defined: v, destroyObjectProperties: function(t, n) {
  406. b(t, function(o, A) {
  407. o && o !== n && o.destroy && o.destroy(), delete t[A];
  408. });
  409. }, discardElement: function(t) {
  410. t && t.parentElement && t.parentElement.removeChild(t);
  411. }, erase: function(t, n) {
  412. for (var o = t.length; o--; )
  413. if (t[o] === n) {
  414. t.splice(o, 1);
  415. break;
  416. }
  417. }, error: R, extend: d, extendClass: function(t, n) {
  418. var o = function() {
  419. };
  420. return o.prototype = new t(), d(o.prototype, n), o;
  421. }, find: i, fireEvent: x, getMagnitude: function(t) {
  422. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  423. }, getNestedProperty: function(t, n) {
  424. for (t = t.split("."); t.length && v(n); ) {
  425. var o = t.shift();
  426. if (typeof o > "u" || o === "__proto__" || (n = n[o], !v(n) || typeof n == "function" || typeof n.nodeType == "number" || n === p))
  427. return;
  428. }
  429. return n;
  430. }, getStyle: C, inArray: function(t, n, o) {
  431. return R(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), n.indexOf(t, o);
  432. }, isArray: $, isClass: N, isDOMElement: W, isFunction: function(t) {
  433. return typeof t == "function";
  434. }, isNumber: w, isObject: U, isString: H, keys: function(t) {
  435. return R(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  436. }, merge: function() {
  437. var t, n = arguments, o = {}, A = function(D, j) {
  438. return typeof D != "object" && (D = {}), b(j, function(T, X) {
  439. X !== "__proto__" && X !== "constructor" && (!U(T, !0) || N(T) || W(T) ? D[X] = j[X] : D[X] = A(D[X] || {}, T));
  440. }), D;
  441. };
  442. n[0] === !0 && (o = n[1], n = Array.prototype.slice.call(n, 2));
  443. var _ = n.length;
  444. for (t = 0; t < _; t++)
  445. o = A(o, n[t]);
  446. return o;
  447. }, normalizeTickInterval: function(t, n, o, A, _) {
  448. var D = t;
  449. o = P(o, 1);
  450. var j = t / o;
  451. for (n || (n = _ ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], A === !1 && (o === 1 ? n = n.filter(function(T) {
  452. return T % 1 === 0;
  453. }) : 0.1 >= o && (n = [1 / o]))), A = 0; A < n.length && (D = n[A], !(_ && D * o >= t || !_ && j <= (n[A] + (n[A + 1] || n[A])) / 2)); A++)
  454. ;
  455. return D = B(D * o, -Math.round(Math.log(1e-3) / Math.LN10));
  456. }, objectEach: b, offset: function(t) {
  457. var n = c.documentElement;
  458. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (p.pageYOffset || n.scrollTop) - (n.clientTop || 0), left: t.left + (p.pageXOffset || n.scrollLeft) - (n.clientLeft || 0), width: t.width, height: t.height };
  459. }, pad: function(t, n, o) {
  460. return Array((n || 2) + 1 - String(t).replace("-", "").length).join(o || "0") + t;
  461. }, pick: P, pInt: Z, relativeLength: function(t, n, o) {
  462. return /%$/.test(t) ? n * parseFloat(t) / 100 + (o || 0) : parseFloat(t);
  463. }, removeEvent: M, splat: function(t) {
  464. return $(t) ? t : [t];
  465. }, stableSort: function(t, n) {
  466. var o = t.length, A, _;
  467. for (_ = 0; _ < o; _++)
  468. t[_].safeI = _;
  469. for (t.sort(function(D, j) {
  470. return A = n(D, j), A === 0 ? D.safeI - j.safeI : A;
  471. }), _ = 0; _ < o; _++)
  472. delete t[_].safeI;
  473. }, syncTimeout: function(t, n, o) {
  474. return 0 < n ? setTimeout(t, n, o) : (t.call(0, o), -1);
  475. }, timeUnits: {
  476. millisecond: 1,
  477. second: 1e3,
  478. minute: 6e4,
  479. hour: 36e5,
  480. day: 864e5,
  481. week: 6048e5,
  482. month: 24192e5,
  483. year: 314496e5
  484. }, uniqueKey: s, useSerialIds: function(t) {
  485. return l = P(t, l);
  486. }, wrap: function(t, n, o) {
  487. var A = t[n];
  488. t[n] = function() {
  489. var _ = Array.prototype.slice.call(arguments), D = arguments, j = this;
  490. return j.proceed = function() {
  491. A.apply(j, arguments.length ? arguments : D);
  492. }, _.unshift(A), _ = o.apply(this, _), j.proceed = null, _;
  493. };
  494. } }, i;
  495. }), E(h, "Core/Chart/ChartDefaults.js", [], function() {
  496. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  497. 10,
  498. 10,
  499. 15,
  500. 10
  501. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  502. }), E(h, "Core/Color/Color.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R) {
  503. var I = R.isNumber, Z = R.merge, H = R.pInt;
  504. return R = function() {
  505. function $(U) {
  506. this.rgba = [NaN, NaN, NaN, NaN], this.input = U;
  507. var W = y.Color;
  508. if (W && W !== $)
  509. return new W(U);
  510. if (!(this instanceof $))
  511. return new $(U);
  512. this.init(U);
  513. }
  514. return $.parse = function(U) {
  515. return U ? new $(U) : $.None;
  516. }, $.prototype.init = function(U) {
  517. var W;
  518. if (typeof U == "object" && typeof U.stops < "u")
  519. this.stops = U.stops.map(function(u) {
  520. return new $(u[1]);
  521. });
  522. else if (typeof U == "string") {
  523. if (this.input = U = $.names[U.toLowerCase()] || U, U.charAt(0) === "#") {
  524. var N = U.length, w = parseInt(U.substr(1), 16);
  525. N === 7 ? W = [(w & 16711680) >> 16, (w & 65280) >> 8, w & 255, 1] : N === 4 && (W = [(w & 3840) >> 4 | (w & 3840) >> 8, (w & 240) >> 4 | w & 240, (w & 15) << 4 | w & 15, 1]);
  526. }
  527. if (!W)
  528. for (w = $.parsers.length; w-- && !W; ) {
  529. var v = $.parsers[w];
  530. (N = v.regex.exec(U)) && (W = v.parse(N));
  531. }
  532. }
  533. W && (this.rgba = W);
  534. }, $.prototype.get = function(U) {
  535. var W = this.input, N = this.rgba;
  536. if (typeof W == "object" && typeof this.stops < "u") {
  537. var w = Z(W);
  538. return w.stops = [].slice.call(w.stops), this.stops.forEach(function(v, u) {
  539. w.stops[u] = [w.stops[u][0], v.get(U)];
  540. }), w;
  541. }
  542. return N && I(N[0]) ? U === "rgb" || !U && N[3] === 1 ? "rgb(" + N[0] + "," + N[1] + "," + N[2] + ")" : U === "a" ? "" + N[3] : "rgba(" + N.join(",") + ")" : W;
  543. }, $.prototype.brighten = function(U) {
  544. var W = this.rgba;
  545. if (this.stops)
  546. this.stops.forEach(function(w) {
  547. w.brighten(U);
  548. });
  549. else if (I(U) && U !== 0)
  550. for (var N = 0; 3 > N; N++)
  551. W[N] += H(255 * U), 0 > W[N] && (W[N] = 0), 255 < W[N] && (W[N] = 255);
  552. return this;
  553. }, $.prototype.setOpacity = function(U) {
  554. return this.rgba[3] = U, this;
  555. }, $.prototype.tweenTo = function(U, W) {
  556. var N = this.rgba, w = U.rgba;
  557. return !I(N[0]) || !I(w[0]) ? U.input || "none" : (U = w[3] !== 1 || N[3] !== 1, (U ? "rgba(" : "rgb(") + Math.round(w[0] + (N[0] - w[0]) * (1 - W)) + "," + Math.round(w[1] + (N[1] - w[1]) * (1 - W)) + "," + Math.round(w[2] + (N[2] - w[2]) * (1 - W)) + (U ? "," + (w[3] + (N[3] - w[3]) * (1 - W)) : "") + ")");
  558. }, $.names = { white: "#ffffff", black: "#000000" }, $.parsers = [{
  559. 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*\)/,
  560. parse: function(U) {
  561. return [H(U[1]), H(U[2]), H(U[3]), parseFloat(U[4], 10)];
  562. }
  563. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(U) {
  564. return [H(U[1]), H(U[2]), H(U[3]), 1];
  565. } }], $.None = new $(""), $;
  566. }(), R;
  567. }), E(h, "Core/Color/Palettes.js", [], function() {
  568. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  569. }), E(h, "Core/Time.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R) {
  570. var I = y.win, Z = R.defined, H = R.error, $ = R.extend, U = R.isObject, W = R.merge, N = R.objectEach, w = R.pad, v = R.pick, u = R.splat, d = R.timeUnits, P = y.isSafari && I.Intl && I.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && I.Intl && !I.Intl.DateTimeFormat.prototype.formatRange;
  571. return R = function() {
  572. function B(C) {
  573. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = I.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(C);
  574. }
  575. return B.prototype.get = function(C, b) {
  576. if (this.variableTimezone || this.timezoneOffset) {
  577. var M = b.getTime(), x = M - this.getTimezoneOffset(b);
  578. return b.setTime(x), C = b["getUTC" + C](), b.setTime(M), C;
  579. }
  580. return this.useUTC ? b["getUTC" + C]() : b["get" + C]();
  581. }, B.prototype.set = function(C, b, M) {
  582. if (this.variableTimezone || this.timezoneOffset) {
  583. if (C === "Milliseconds" || C === "Seconds" || C === "Minutes" && this.getTimezoneOffset(b) % 36e5 === 0)
  584. return b["setUTC" + C](M);
  585. var x = this.getTimezoneOffset(b);
  586. return x = b.getTime() - x, b.setTime(x), b["setUTC" + C](M), C = this.getTimezoneOffset(b), x = b.getTime() + C, b.setTime(x);
  587. }
  588. return this.useUTC || P && C === "FullYear" ? b["setUTC" + C](M) : b["set" + C](M);
  589. }, B.prototype.update = function(C) {
  590. var b = v(C && C.useUTC, !0);
  591. 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);
  592. }, B.prototype.makeTime = function(C, b, M, x, a, c) {
  593. if (this.useUTC) {
  594. var p = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(p);
  595. p += i;
  596. var l = this.getTimezoneOffset(p);
  597. i !== l ? p += l - i : i - 36e5 !== this.getTimezoneOffset(p - 36e5) || O || (p -= 36e5);
  598. } else
  599. p = new this.Date(C, b, v(M, 1), v(x, 0), v(a, 0), v(c, 0)).getTime();
  600. return p;
  601. }, B.prototype.timezoneOffsetFunction = function() {
  602. var C = this, b = this.options, M = b.getTimezoneOffset, x = b.moment || I.moment;
  603. if (!this.useUTC)
  604. return function(a) {
  605. return 6e4 * new Date(a.toString()).getTimezoneOffset();
  606. };
  607. if (b.timezone) {
  608. if (x)
  609. return function(a) {
  610. return 6e4 * -x.tz(a, b.timezone).utcOffset();
  611. };
  612. H(25);
  613. }
  614. return this.useUTC && M ? function(a) {
  615. return 6e4 * M(a.valueOf());
  616. } : function() {
  617. return 6e4 * (C.timezoneOffset || 0);
  618. };
  619. }, B.prototype.dateFormat = function(C, b, M) {
  620. if (!Z(b) || isNaN(b))
  621. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  622. C = v(C, "%Y-%m-%d %H:%M:%S");
  623. 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, n = t && t.weekdays, o = t && t.shortWeekdays;
  624. return a = $({ a: o ? o[p] : n[p].substr(0, 3), A: n[p], d: w(i), e: w(i, 2, " "), w: p, b: t.shortMonths[l], B: t.months[l], m: w(l + 1), o: l + 1, y: s.toString().substr(2, 2), Y: s, H: w(c), k: c, I: w(c % 12 || 12), l: c % 12 || 12, M: w(this.get("Minutes", a)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: w(a.getSeconds()), L: w(Math.floor(b % 1e3), 3) }, y.dateFormats), N(a, function(A, _) {
  625. for (; C.indexOf("%" + _) !== -1; )
  626. C = C.replace("%" + _, typeof A == "function" ? A.call(x, b) : A);
  627. }), M ? C.substr(0, 1).toUpperCase() + C.substr(1) : C;
  628. }, B.prototype.resolveDTLFormat = function(C) {
  629. return U(C, !0) ? C : (C = u(C), { main: C[0], from: C[1], to: C[2] });
  630. }, B.prototype.getTimeTicks = function(C, b, M, x) {
  631. var a = this, c = [], p = {}, i = new a.Date(b), l = C.unitRange, s = C.count || 1, t;
  632. if (x = v(x, 1), Z(b)) {
  633. if (a.set(
  634. "Milliseconds",
  635. i,
  636. l >= d.second ? 0 : s * Math.floor(a.get("Milliseconds", i) / s)
  637. ), l >= d.second && a.set("Seconds", i, l >= d.minute ? 0 : s * Math.floor(a.get("Seconds", i) / s)), l >= d.minute && a.set("Minutes", i, l >= d.hour ? 0 : s * Math.floor(a.get("Minutes", i) / s)), l >= d.hour && a.set("Hours", i, l >= d.day ? 0 : s * Math.floor(a.get("Hours", i) / s)), l >= d.day && a.set("Date", i, l >= d.month ? 1 : Math.max(1, s * Math.floor(a.get("Date", i) / s))), l >= d.month) {
  638. a.set("Month", i, l >= d.year ? 0 : s * Math.floor(a.get("Month", i) / s));
  639. var n = a.get("FullYear", i);
  640. }
  641. l >= d.year && a.set(
  642. "FullYear",
  643. i,
  644. n - n % s
  645. ), l === d.week && (n = a.get("Day", i), a.set("Date", i, a.get("Date", i) - n + x + (n < x ? -7 : 0))), n = a.get("FullYear", i), x = a.get("Month", i);
  646. var o = a.get("Date", i), A = a.get("Hours", i);
  647. for (b = i.getTime(), !a.variableTimezone && a.useUTC || !Z(M) || (t = M - b > 4 * d.month || a.getTimezoneOffset(b) !== a.getTimezoneOffset(M)), b = i.getTime(), i = 1; b < M; )
  648. c.push(b), b = l === d.year ? a.makeTime(n + i * s, 0) : l === d.month ? a.makeTime(n, x + i * s) : !t || l !== d.day && l !== d.week ? t && l === d.hour && 1 < s ? a.makeTime(n, x, o, A + i * s) : b + l * s : a.makeTime(n, x, o + i * s * (l === d.day ? 1 : 7)), i++;
  649. c.push(b), l <= d.hour && 1e4 > c.length && c.forEach(function(_) {
  650. _ % 18e5 === 0 && a.dateFormat("%H%M%S%L", _) === "000000000" && (p[_] = "day");
  651. });
  652. }
  653. return c.info = $(C, { higherRanks: p, totalRange: l * s }), c;
  654. }, B.prototype.getDateFormat = function(C, b, M, x) {
  655. var a = this.dateFormat("%m-%d %H:%M:%S.%L", b), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, p = "millisecond";
  656. for (i in d) {
  657. if (C === d.week && +this.dateFormat("%w", b) === M && a.substr(6) === "00:00:00.000") {
  658. var i = "week";
  659. break;
  660. }
  661. if (d[i] > C) {
  662. i = p;
  663. break;
  664. }
  665. if (c[i] && a.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  666. break;
  667. i !== "week" && (p = i);
  668. }
  669. if (i)
  670. var l = this.resolveDTLFormat(x[i]).main;
  671. return l;
  672. }, B;
  673. }(), R;
  674. }), 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, R, I, Z, H, $) {
  675. R = R.parse;
  676. var U = $.merge, W = {
  677. colors: Z.colors,
  678. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  679. lang: {
  680. loading: "Loading...",
  681. months: "January February March April May June July August September October November December".split(" "),
  682. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  683. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  684. decimalPoint: ".",
  685. numericSymbols: "kMGTPE".split(""),
  686. resetZoom: "Reset zoom",
  687. resetZoomTitle: "Reset zoom level 1:1",
  688. thousandsSep: " "
  689. },
  690. global: {},
  691. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  692. chart: y,
  693. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  694. subtitle: { text: "", align: "center", widthAdjust: -44 },
  695. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  696. plotOptions: {},
  697. labels: { style: { position: "absolute", color: "#333333" } },
  698. legend: {
  699. enabled: !0,
  700. align: "center",
  701. alignColumns: !0,
  702. className: "highcharts-no-tooltip",
  703. layout: "horizontal",
  704. labelFormatter: function() {
  705. return this.name;
  706. },
  707. borderColor: "#999999",
  708. borderRadius: 0,
  709. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  710. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  711. itemHoverStyle: { color: "#000000" },
  712. itemHiddenStyle: { color: "#cccccc" },
  713. shadow: !1,
  714. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  715. squareSymbol: !0,
  716. symbolPadding: 5,
  717. verticalAlign: "bottom",
  718. x: 0,
  719. y: 0,
  720. title: { style: { fontWeight: "bold" } }
  721. },
  722. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  723. tooltip: {
  724. enabled: !0,
  725. animation: I.svg,
  726. borderRadius: 3,
  727. dateTimeLabelFormats: {
  728. millisecond: "%A, %b %e, %H:%M:%S.%L",
  729. second: "%A, %b %e, %H:%M:%S",
  730. minute: "%A, %b %e, %H:%M",
  731. hour: "%A, %b %e, %H:%M",
  732. day: "%A, %b %e, %Y",
  733. week: "Week from %A, %b %e, %Y",
  734. month: "%B %Y",
  735. year: "%Y"
  736. },
  737. footerFormat: "",
  738. headerShape: "callout",
  739. hideDelay: 500,
  740. padding: 8,
  741. shape: "callout",
  742. shared: !1,
  743. snap: I.isTouchDevice ? 25 : 10,
  744. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  745. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  746. backgroundColor: R("#f7f7f7").setOpacity(0.85).get(),
  747. borderWidth: 1,
  748. shadow: !0,
  749. stickOnContact: !1,
  750. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  751. useHTML: !1
  752. },
  753. 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" }
  754. };
  755. W.chart.styledMode = !1;
  756. var N = new H(U(W.global, W.time));
  757. return y = { defaultOptions: W, defaultTime: N, getOptions: function() {
  758. return W;
  759. }, setOptions: function(w) {
  760. return U(!0, W, w), (w.time || w.global) && (I.time ? I.time.update(U(
  761. W.global,
  762. W.time,
  763. w.global,
  764. w.time
  765. )) : I.time = N), W;
  766. } }, y;
  767. }), E(h, "Core/Animation/Fx.js", [h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R, I) {
  768. var Z = y.parse, H = R.win, $ = I.isNumber, U = I.objectEach;
  769. return function() {
  770. function W(N, w, v) {
  771. this.pos = NaN, this.options = w, this.elem = N, this.prop = v;
  772. }
  773. return W.prototype.dSetter = function() {
  774. var N = this.paths, w = N && N[0];
  775. N = N && N[1];
  776. var v = this.now || 0, u = [];
  777. if (v !== 1 && w && N)
  778. if (w.length === N.length && 1 > v)
  779. for (var d = 0; d < N.length; d++) {
  780. for (var P = w[d], O = N[d], B = [], C = 0; C < O.length; C++) {
  781. var b = P[C], M = O[C];
  782. $(b) && $(M) && (O[0] !== "A" || C !== 4 && C !== 5) ? B[C] = b + v * (M - b) : B[C] = M;
  783. }
  784. u.push(B);
  785. }
  786. else
  787. u = N;
  788. else
  789. u = this.toD || [];
  790. this.elem.attr("d", u, void 0, !0);
  791. }, W.prototype.update = function() {
  792. var N = this.elem, w = this.prop, v = this.now, u = this.options.step;
  793. this[w + "Setter"] ? this[w + "Setter"]() : N.attr ? N.element && N.attr(w, v, null, !0) : N.style[w] = v + this.unit, u && u.call(N, v, this);
  794. }, W.prototype.run = function(N, w, v) {
  795. var u = this, d = u.options, P = function(C) {
  796. return P.stopped ? !1 : u.step(C);
  797. }, O = H.requestAnimationFrame || function(C) {
  798. setTimeout(
  799. C,
  800. 13
  801. );
  802. }, B = function() {
  803. for (var C = 0; C < W.timers.length; C++)
  804. W.timers[C]() || W.timers.splice(C--, 1);
  805. W.timers.length && O(B);
  806. };
  807. N !== w || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = N, this.end = w, 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(B)) : (delete d.curAnim[this.prop], d.complete && Object.keys(d.curAnim).length === 0 && d.complete.call(this.elem));
  808. }, W.prototype.step = function(N) {
  809. var w = +/* @__PURE__ */ new Date(), v = this.options, u = this.elem, d = v.complete, P = v.duration, O = v.curAnim;
  810. if (u.attr && !u.element)
  811. N = !1;
  812. else if (N || w >= P + this.startTime) {
  813. this.now = this.end, this.pos = 1, this.update();
  814. var B = O[this.prop] = !0;
  815. U(O, function(C) {
  816. C !== !0 && (B = !1);
  817. }), B && d && d.call(u), N = !1;
  818. } else
  819. this.pos = v.easing((w - this.startTime) / P), this.now = this.start + (this.end - this.start) * this.pos, this.update(), N = !0;
  820. return N;
  821. }, W.prototype.initPath = function(N, w, v) {
  822. function u(a, c) {
  823. for (; a.length < x; ) {
  824. var p = a[0], i = c[x - a.length];
  825. i && p[0] === "M" && (a[0] = i[0] === "C" ? ["C", p[1], p[2], p[1], p[2], p[1], p[2]] : [
  826. "L",
  827. p[1],
  828. p[2]
  829. ]), a.unshift(p), B && (p = a.pop(), a.push(a[a.length - 1], p));
  830. }
  831. }
  832. function d(a, c) {
  833. for (; a.length < x; )
  834. if (c = a[Math.floor(a.length / C) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), B) {
  835. var p = a[Math.floor(a.length / C)].slice();
  836. a.splice(a.length / 2, 0, c, p);
  837. } else
  838. a.push(c);
  839. }
  840. var P = N.startX, O = N.endX;
  841. v = v.slice();
  842. var B = N.isArea, C = B ? 2 : 1;
  843. if (w = w && w.slice(), !w)
  844. return [v, v];
  845. if (P && O && O.length) {
  846. for (N = 0; N < P.length; N++)
  847. if (P[N] === O[0]) {
  848. var b = N;
  849. break;
  850. } else if (P[0] === O[O.length - P.length + N]) {
  851. b = N;
  852. var M = !0;
  853. break;
  854. } else if (P[P.length - 1] === O[O.length - P.length + N]) {
  855. b = P.length - N;
  856. break;
  857. }
  858. typeof b > "u" && (w = []);
  859. }
  860. if (w.length && $(b)) {
  861. var x = v.length + b * C;
  862. M ? (u(w, v), d(v, w)) : (u(v, w), d(w, v));
  863. }
  864. return [w, v];
  865. }, W.prototype.fillSetter = function() {
  866. W.prototype.strokeSetter.apply(this, arguments);
  867. }, W.prototype.strokeSetter = function() {
  868. this.elem.attr(this.prop, Z(this.start).tweenTo(Z(this.end), this.pos), void 0, !0);
  869. }, W.timers = [], W;
  870. }();
  871. }), E(h, "Core/Animation/AnimationUtilities.js", [h["Core/Animation/Fx.js"], h["Core/Utilities.js"]], function(y, R) {
  872. function I(d) {
  873. return N(d) ? w({ duration: 500, defer: 0 }, d) : { duration: d ? 500 : 0, defer: 0 };
  874. }
  875. function Z(d, P) {
  876. for (var O = y.timers.length; O--; )
  877. y.timers[O].elem !== d || P && P !== y.timers[O].prop || (y.timers[O].stopped = !0);
  878. }
  879. var H = R.defined, $ = R.getStyle, U = R.isArray, W = R.isNumber, N = R.isObject, w = R.merge, v = R.objectEach, u = R.pick;
  880. return { animate: function(d, P, O) {
  881. var B, C = "", b, M;
  882. if (!N(O)) {
  883. var x = arguments;
  884. O = { duration: x[2], easing: x[3], complete: x[4] };
  885. }
  886. W(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = w(P), v(P, function(a, c) {
  887. Z(d, c), M = new y(d, O, c), b = void 0, c === "d" && U(P.d) ? (M.paths = M.initPath(d, d.pathArray, P.d), M.toD = P.d, B = 0, b = 1) : d.attr ? B = d.attr(c) : (B = parseFloat($(d, c)) || 0, c !== "opacity" && (C = "px")), b || (b = a), typeof b == "string" && b.match("px") && (b = b.replace(/px/g, "")), M.run(B, b, C);
  888. });
  889. }, animObject: I, getDeferredAnimation: function(d, P, O) {
  890. var B = I(P), C = 0, b = 0;
  891. return (O ? [O] : d.series).forEach(function(M) {
  892. M = I(M.options.animation), C = P && H(P.defer) ? B.defer : Math.max(C, M.duration + M.defer), b = Math.min(B.duration, M.duration);
  893. }), d.renderer.forExport && (C = 0), { defer: Math.max(0, C - b), duration: Math.min(C, b) };
  894. }, setAnimation: function(d, P) {
  895. P.renderer.globalAnimation = u(d, P.options.chart.animation, !0);
  896. }, stop: Z };
  897. }), E(h, "Core/Renderer/HTML/AST.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R) {
  898. var I = y.SVG_NS, Z = R.attr, H = R.createElement, $ = R.error, U = R.isFunction, W = R.isString, N = R.objectEach, w = R.splat, v = (R = y.win.trustedTypes) && U(R.createPolicy) && R.createPolicy("highcharts", { createHTML: function(P) {
  899. return P;
  900. } }), u = v ? v.createHTML("") : "";
  901. try {
  902. var d = !!new DOMParser().parseFromString(u, "text/html");
  903. } catch {
  904. d = !1;
  905. }
  906. return U = function() {
  907. function P(O) {
  908. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  909. }
  910. return P.filterUserAttributes = function(O) {
  911. return N(O, function(B, C) {
  912. var b = !0;
  913. P.allowedAttributes.indexOf(C) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(C) !== -1 && (b = W(B) && P.allowedReferences.some(function(M) {
  914. return B.indexOf(M) === 0;
  915. })), b || ($("Highcharts warning: Invalid attribute '" + C + "' in config"), delete O[C]);
  916. }), O;
  917. }, P.setElementHTML = function(O, B) {
  918. O.innerHTML = P.emptyHTML, B && new P(B).addToDOM(O);
  919. }, P.prototype.addToDOM = function(O) {
  920. function B(C, b) {
  921. var M;
  922. return w(C).forEach(function(x) {
  923. var a = x.tagName, c = x.textContent ? y.doc.createTextNode(x.textContent) : void 0;
  924. if (a)
  925. if (a === "#text")
  926. var p = c;
  927. else if (P.allowedTags.indexOf(a) !== -1) {
  928. a = y.doc.createElementNS(a === "svg" ? I : b.namespaceURI || I, a);
  929. var i = x.attributes || {};
  930. N(x, function(l, s) {
  931. s !== "tagName" && s !== "attributes" && s !== "children" && s !== "textContent" && (i[s] = l);
  932. }), Z(a, P.filterUserAttributes(i)), c && a.appendChild(c), B(x.children || [], a), p = a;
  933. } else
  934. $("Highcharts warning: Invalid tagName " + a + " in config");
  935. p && b.appendChild(p), M = p;
  936. }), M;
  937. }
  938. return B(this.nodes, O);
  939. }, P.prototype.parseMarkup = function(O) {
  940. var B = [];
  941. if (O = O.trim(), d)
  942. O = new DOMParser().parseFromString(v ? v.createHTML(O) : O, "text/html");
  943. else {
  944. var C = H("div");
  945. C.innerHTML = O, O = { body: C };
  946. }
  947. var b = function(M, x) {
  948. var a = M.nodeName.toLowerCase(), c = { tagName: a };
  949. if (a === "#text" && (c.textContent = M.textContent || ""), a = M.attributes) {
  950. var p = {};
  951. [].forEach.call(a, function(l) {
  952. p[l.name] = l.value;
  953. }), c.attributes = p;
  954. }
  955. if (M.childNodes.length) {
  956. var i = [];
  957. [].forEach.call(M.childNodes, function(l) {
  958. b(l, i);
  959. }), i.length && (c.children = i);
  960. }
  961. x.push(c);
  962. };
  963. return [].forEach.call(O.body.childNodes, function(M) {
  964. return b(M, B);
  965. }), B;
  966. }, 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 = u, P;
  967. }(), U;
  968. }), E(
  969. h,
  970. "Core/FormatUtilities.js",
  971. [h["Core/DefaultOptions.js"], h["Core/Utilities.js"]],
  972. function(y, R) {
  973. function I(w, v, u, d) {
  974. w = +w || 0, v = +v;
  975. var P = Z.lang, O = (w.toString().split(".")[1] || "").split("e")[0].length, B = w.toString().split("e"), C = v;
  976. if (v === -1)
  977. v = Math.min(O, 20);
  978. else if (!U(v))
  979. v = 2;
  980. else if (v && B[1] && 0 > B[1]) {
  981. var b = v + +B[1];
  982. 0 <= b ? (B[0] = (+B[0]).toExponential(b).split("e")[0], v = b) : (B[0] = B[0].split(".")[0] || 0, w = 20 > v ? (B[0] * Math.pow(10, B[1])).toFixed(v) : 0, B[1] = 0);
  983. }
  984. b = (Math.abs(B[1] ? B[0] : w) + Math.pow(10, -Math.max(v, O) - 1)).toFixed(v), O = String(N(b));
  985. var M = 3 < O.length ? O.length % 3 : 0;
  986. return u = W(u, P.decimalPoint), d = W(d, P.thousandsSep), w = (0 > w ? "-" : "") + (M ? O.substr(0, M) + d : ""), w = 0 > +B[1] && !C ? "0" : w + O.substr(M).replace(/(\d{3})(?=\d)/g, "$1" + d), v && (w += u + b.slice(-v)), B[1] && +w != 0 && (w += "e" + B[1]), w;
  987. }
  988. var Z = y.defaultOptions, H = y.defaultTime, $ = R.getNestedProperty, U = R.isNumber, W = R.pick, N = R.pInt;
  989. return { dateFormat: function(w, v, u) {
  990. return H.dateFormat(w, v, u);
  991. }, format: function(w, v, u) {
  992. var d = "{", P = !1, O = /f$/, B = /\.([0-9])/, C = Z.lang, b = u && u.time || H;
  993. u = u && u.numberFormatter || I;
  994. for (var M = []; w; ) {
  995. var x = w.indexOf(d);
  996. if (x === -1)
  997. break;
  998. var a = w.slice(0, x);
  999. if (P) {
  1000. if (a = a.split(":"), d = $(a.shift() || "", v), a.length && typeof d == "number")
  1001. if (a = a.join(":"), O.test(a)) {
  1002. var c = parseInt((a.match(B) || ["", "-1"])[1], 10);
  1003. d !== null && (d = u(d, c, C.decimalPoint, -1 < a.indexOf(",") ? C.thousandsSep : ""));
  1004. } else
  1005. d = b.dateFormat(a, d);
  1006. M.push(d);
  1007. } else
  1008. M.push(a);
  1009. w = w.slice(x + 1), d = (P = !P) ? "}" : "{";
  1010. }
  1011. return M.push(w), M.join("");
  1012. }, numberFormat: I };
  1013. }
  1014. ), E(h, "Core/Renderer/RendererUtilities.js", [h["Core/Utilities.js"]], function(y) {
  1015. var R = y.clamp, I = y.pick, Z = y.stableSort, H;
  1016. return function($) {
  1017. function U(W, N, w) {
  1018. var v = W, u = v.reducedLen || N, d = function(M, x) {
  1019. return (x.rank || 0) - (M.rank || 0);
  1020. }, P = function(M, x) {
  1021. return M.target - x.target;
  1022. }, O, B = !0, C = [], b = 0;
  1023. for (O = W.length; O--; )
  1024. b += W[O].size;
  1025. if (b > u) {
  1026. for (Z(W, d), b = O = 0; b <= u; )
  1027. b += W[O].size, O++;
  1028. C = W.splice(O - 1, W.length);
  1029. }
  1030. for (Z(W, P), W = W.map(function(M) {
  1031. return { size: M.size, targets: [M.target], align: I(M.align, 0.5) };
  1032. }); B; ) {
  1033. for (O = W.length; O--; )
  1034. u = W[O], d = (Math.min.apply(0, u.targets) + Math.max.apply(0, u.targets)) / 2, u.pos = R(
  1035. d - u.size * u.align,
  1036. 0,
  1037. N - u.size
  1038. );
  1039. for (O = W.length, B = !1; O--; )
  1040. 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 > N && (W[O - 1].pos = N - W[O - 1].size), W.splice(O, 1), B = !0);
  1041. }
  1042. return v.push.apply(v, C), O = 0, W.some(function(M) {
  1043. var x = 0;
  1044. return (M.targets || []).some(function() {
  1045. return v[O].pos = M.pos + x, typeof w < "u" && Math.abs(v[O].pos - v[O].target) > w ? (v.slice(0, O + 1).forEach(function(a) {
  1046. return delete a.pos;
  1047. }), v.reducedLen = (v.reducedLen || N) - 0.1 * N, v.reducedLen > 0.1 * N && U(v, N, w), !0) : (x += v[O].size, O++, !1);
  1048. });
  1049. }), Z(v, P), v;
  1050. }
  1051. $.distribute = U;
  1052. }(H || (H = {})), H;
  1053. }), 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, R, I, Z, H) {
  1054. var $ = y.animate, U = y.animObject, W = y.stop, N = Z.deg2rad, w = Z.doc, v = Z.noop, u = Z.svg, d = Z.SVG_NS, P = Z.win, O = H.addEvent, B = H.attr, C = H.createElement, b = H.css, M = H.defined, x = H.erase, a = H.extend, c = H.fireEvent, p = H.isArray, i = H.isFunction, l = H.isNumber, s = H.isString, t = H.merge, n = H.objectEach, o = H.pick, A = H.pInt, _ = H.syncTimeout, D = H.uniqueKey;
  1055. return y = function() {
  1056. function j() {
  1057. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = d, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  1058. }
  1059. return j.prototype._defaultGetter = function(T) {
  1060. return T = o(this[T + "Value"], this[T], this.element ? this.element.getAttribute(T) : null, 0), /^[\-0-9\.]+$/.test(T) && (T = parseFloat(T)), T;
  1061. }, j.prototype._defaultSetter = function(T, X, f) {
  1062. f.setAttribute(X, T);
  1063. }, j.prototype.add = function(T) {
  1064. var X = this.renderer, f = this.element;
  1065. 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)
  1066. var m = this.zIndexSetter();
  1067. return m || (T ? T.element : X.box).appendChild(f), this.onAdd && this.onAdd(), this;
  1068. }, j.prototype.addClass = function(T, X) {
  1069. var f = X ? "" : this.attr("class") || "";
  1070. return T = (T || "").split(/ /g).reduce(function(m, L) {
  1071. return f.indexOf(L) === -1 && m.push(L), m;
  1072. }, f ? [f] : []).join(" "), T !== f && this.attr("class", T), this;
  1073. }, j.prototype.afterSetters = function() {
  1074. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  1075. }, j.prototype.align = function(T, X, f) {
  1076. var m = {}, L = this.renderer, Y = L.alignedObjects, F, Q, k;
  1077. T ? (this.alignOptions = T, this.alignByTranslate = X, (!f || s(f)) && (this.alignTo = F = f || "renderer", x(Y, this), Y.push(this), f = void 0)) : (T = this.alignOptions, X = this.alignByTranslate, F = this.alignTo), f = o(f, L[F], F === "scrollablePlotBox" ? L.plotBox : void 0, L), F = T.align;
  1078. var G = T.verticalAlign;
  1079. return L = (f.x || 0) + (T.x || 0), Y = (f.y || 0) + (T.y || 0), F === "right" ? Q = 1 : F === "center" && (Q = 2), Q && (L += (f.width - (T.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), G === "bottom" ? k = 1 : G === "middle" && (k = 2), k && (Y += (f.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;
  1080. }, j.prototype.alignSetter = function(T) {
  1081. var X = { left: "start", center: "middle", right: "end" };
  1082. X[T] && (this.alignValue = T, this.element.setAttribute(
  1083. "text-anchor",
  1084. X[T]
  1085. ));
  1086. }, j.prototype.animate = function(T, X, f) {
  1087. var m = this, L = U(o(X, this.renderer.globalAnimation, !0));
  1088. return X = L.defer, o(w.hidden, w.msHidden, w.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (f && (L.complete = f), _(function() {
  1089. m.element && $(m, T, L);
  1090. }, X)) : (this.attr(T, void 0, f), n(T, function(Y, F) {
  1091. L.step && L.step.call(this, Y, { prop: F, pos: 1, elem: this });
  1092. }, this)), this;
  1093. }, j.prototype.applyTextOutline = function(T) {
  1094. var X = this.element;
  1095. T.indexOf("contrast") !== -1 && (T = T.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  1096. var f = T.split(" ");
  1097. if (T = f[f.length - 1], (f = f[0]) && f !== "none" && Z.svg) {
  1098. this.fakeTS = !0, this.ySetter = this.xSetter, f = f.replace(/(^[\d\.]+)(.*?)$/g, function(Y, F, Q) {
  1099. return 2 * Number(F) + Q;
  1100. }), this.removeTextOutline();
  1101. var m = w.createElementNS(d, "tspan");
  1102. B(m, { class: "highcharts-text-outline", fill: T, stroke: T, "stroke-width": f, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(Y) {
  1103. var F = Y.cloneNode(!0);
  1104. F.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  1105. return F.removeAttribute(Q);
  1106. }), m.appendChild(F);
  1107. });
  1108. var L = w.createElementNS(d, "tspan");
  1109. L.textContent = "​", ["x", "y"].forEach(function(Y) {
  1110. var F = X.getAttribute(Y);
  1111. F && L.setAttribute(Y, F);
  1112. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  1113. }
  1114. }, j.prototype.attr = function(T, X, f, m) {
  1115. var L = this.element, Y = this.symbolCustomAttribs, F, Q = this, k, G;
  1116. if (typeof T == "string" && typeof X < "u") {
  1117. var z = T;
  1118. T = {}, T[z] = X;
  1119. }
  1120. return typeof T == "string" ? Q = (this[T + "Getter"] || this._defaultGetter).call(this, T, L) : (n(T, function(V, q) {
  1121. k = !1, m || W(this, q), this.symbolName && Y.indexOf(q) !== -1 && (F || (this.symbolAttr(T), F = !0), k = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), k || (G = this[q + "Setter"] || this._defaultSetter, G.call(this, V, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, V, G));
  1122. }, this), this.afterSetters()), f && f.call(this), Q;
  1123. }, j.prototype.clip = function(T) {
  1124. return this.attr("clip-path", T ? "url(" + this.renderer.url + "#" + T.id + ")" : "none");
  1125. }, j.prototype.crisp = function(T, X) {
  1126. X = X || T.strokeWidth || 0;
  1127. var f = Math.round(X) % 2 / 2;
  1128. return T.x = Math.floor(T.x || this.x || 0) + f, T.y = Math.floor(T.y || this.y || 0) + f, T.width = Math.floor((T.width || this.width || 0) - 2 * f), T.height = Math.floor((T.height || this.height || 0) - 2 * f), M(T.strokeWidth) && (T.strokeWidth = X), T;
  1129. }, j.prototype.complexColor = function(T, X, f) {
  1130. var m = this.renderer, L, Y, F, Q, k, G, z, V, q, it, et = [], nt;
  1131. c(this.renderer, "complexColor", { args: arguments }, function() {
  1132. if (T.radialGradient ? Y = "radialGradient" : T.linearGradient && (Y = "linearGradient"), Y) {
  1133. if (F = T[Y], k = m.gradients, G = T.stops, q = f.radialReference, p(F) && (T[Y] = F = { x1: F[0], y1: F[1], x2: F[2], y2: F[3], gradientUnits: "userSpaceOnUse" }), Y === "radialGradient" && q && !M(F.gradientUnits) && (Q = F, F = t(F, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), n(F, function(ct, gt) {
  1134. gt !== "id" && et.push(gt, ct);
  1135. }), n(G, function(ct) {
  1136. et.push(ct);
  1137. }), et = et.join(","), k[et])
  1138. it = k[et].attr("id");
  1139. else {
  1140. F.id = it = D();
  1141. var rt = k[et] = m.createElement(Y).attr(F).add(m.defs);
  1142. rt.radAttr = Q, rt.stops = [], G.forEach(function(ct) {
  1143. ct[1].indexOf("rgba") === 0 ? (L = I.parse(ct[1]), z = L.get("rgb"), V = L.get("a")) : (z = ct[1], V = 1), ct = m.createElement("stop").attr({
  1144. offset: ct[0],
  1145. "stop-color": z,
  1146. "stop-opacity": V
  1147. }).add(rt), rt.stops.push(ct);
  1148. });
  1149. }
  1150. nt = "url(" + m.url + "#" + it + ")", f.setAttribute(X, nt), f.gradient = et, T.toString = function() {
  1151. return nt;
  1152. };
  1153. }
  1154. });
  1155. }, j.prototype.css = function(T) {
  1156. var X = this.styles, f = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], Y = "", F = !X;
  1157. if (T && T.color && (T.fill = T.color), X && n(T, function(G, z) {
  1158. X && X[z] !== G && (f[z] = G, F = !0);
  1159. }), F) {
  1160. if (X && (T = a(X, f)), T) {
  1161. if (T.width === null || T.width === "auto")
  1162. delete this.textWidth;
  1163. else if (m.nodeName.toLowerCase() === "text" && T.width)
  1164. var Q = this.textWidth = A(T.width);
  1165. }
  1166. if (this.styles = T, Q && !u && this.renderer.forExport && delete T.width, m.namespaceURI === this.SVG_NS) {
  1167. var k = function(G, z) {
  1168. return "-" + z.toLowerCase();
  1169. };
  1170. n(T, function(G, z) {
  1171. L.indexOf(z) === -1 && (Y += z.replace(/([A-Z])/g, k) + ":" + G + ";");
  1172. }), Y && B(m, "style", Y);
  1173. } else
  1174. b(m, T);
  1175. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), T && T.textOutline && this.applyTextOutline(T.textOutline));
  1176. }
  1177. return this;
  1178. }, j.prototype.dashstyleSetter = function(T) {
  1179. var X = this["stroke-width"];
  1180. if (X === "inherit" && (X = 1), T = T && T.toLowerCase()) {
  1181. var f = 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(",");
  1182. for (T = f.length; T--; )
  1183. f[T] = "" + A(f[T]) * o(X, NaN);
  1184. T = f.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", T);
  1185. }
  1186. }, j.prototype.destroy = function() {
  1187. var T = this, X = T.element || {}, f = T.renderer, m = X.ownerSVGElement, L = f.isSVG && X.nodeName === "SPAN" && T.parentGroup || void 0;
  1188. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, W(T), T.clipPath && m) {
  1189. var Y = T.clipPath;
  1190. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function(F) {
  1191. -1 < F.getAttribute("clip-path").indexOf(Y.element.id) && F.removeAttribute("clip-path");
  1192. }), T.clipPath = Y.destroy();
  1193. }
  1194. if (T.stops) {
  1195. for (m = 0; m < T.stops.length; m++)
  1196. T.stops[m].destroy();
  1197. T.stops.length = 0, T.stops = void 0;
  1198. }
  1199. for (T.safeRemoveChild(X), f.styledMode || T.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  1200. X = L.parentGroup, T.safeRemoveChild(L.div), delete L.div, L = X;
  1201. T.alignTo && x(f.alignedObjects, T), n(T, function(F, Q) {
  1202. T[Q] && T[Q].parentGroup === T && T[Q].destroy && T[Q].destroy(), delete T[Q];
  1203. });
  1204. }, j.prototype.destroyShadows = function() {
  1205. (this.shadows || []).forEach(function(T) {
  1206. this.safeRemoveChild(T);
  1207. }, this), this.shadows = void 0;
  1208. }, j.prototype.destroyTextPath = function(T, X) {
  1209. var f = T.getElementsByTagName("text")[0];
  1210. if (f) {
  1211. if (f.removeAttribute("dx"), f.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && f.getElementsByTagName("textPath").length) {
  1212. for (T = this.textPathWrapper.element.childNodes; T.length; )
  1213. f.appendChild(T[0]);
  1214. f.removeChild(this.textPathWrapper.element);
  1215. }
  1216. } else
  1217. (T.getAttribute("dx") || T.getAttribute("dy")) && (T.removeAttribute("dx"), T.removeAttribute("dy"));
  1218. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  1219. }, j.prototype.dSetter = function(T, X, f) {
  1220. p(T) && (typeof T[0] == "string" && (T = this.renderer.pathToSegments(T)), this.pathArray = T, T = T.reduce(function(m, L, Y) {
  1221. return L && L.join ? (Y ? m + " " : "") + L.join(" ") : (L || "").toString();
  1222. }, "")), /(NaN| {2}|^$)/.test(T) && (T = "M 0 0"), this[X] !== T && (f.setAttribute(X, T), this[X] = T);
  1223. }, j.prototype.fadeOut = function(T) {
  1224. var X = this;
  1225. X.animate({ opacity: 0 }, { duration: o(T, 150), complete: function() {
  1226. X.attr({ y: -9999 }).hide();
  1227. } });
  1228. }, j.prototype.fillSetter = function(T, X, f) {
  1229. typeof T == "string" ? f.setAttribute(X, T) : T && this.complexColor(T, X, f);
  1230. }, j.prototype.getBBox = function(T, X) {
  1231. var f = this.renderer, m = this.element, L = this.styles, Y = this.textStr, F = f.cache, Q = f.cacheKeys, k = m.namespaceURI === this.SVG_NS;
  1232. X = o(X, this.rotation, 0);
  1233. var G = f.styledMode ? m && j.prototype.getStyle.call(m, "font-size") : L && L.fontSize, z;
  1234. if (M(Y)) {
  1235. var V = Y.toString();
  1236. V.indexOf("<") === -1 && (V = V.replace(/[0-9]/g, "0")), V += ["", X, G, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  1237. }
  1238. if (V && !T && (z = F[V]), !z) {
  1239. if (k || f.forExport) {
  1240. try {
  1241. var q = this.fakeTS && function(it) {
  1242. var et = m.querySelector(".highcharts-text-outline");
  1243. et && b(et, { display: it });
  1244. };
  1245. i(q) && q("none"), z = m.getBBox ? a({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  1246. } catch {
  1247. }
  1248. (!z || 0 > z.width) && (z = {
  1249. width: 0,
  1250. height: 0
  1251. });
  1252. } else
  1253. z = this.htmlGetBBox();
  1254. if (f.isSVG && (T = z.width, f = z.height, k && (z.height = f = { "11px,17": 14, "13px,20": 16 }[(G || "") + "," + Math.round(f)] || f), X && (k = X * N, z.width = Math.abs(f * Math.sin(k)) + Math.abs(T * Math.cos(k)), z.height = Math.abs(f * Math.cos(k)) + Math.abs(T * Math.sin(k)))), V && (Y === "" || 0 < z.height)) {
  1255. for (; 250 < Q.length; )
  1256. delete F[Q.shift()];
  1257. F[V] || Q.push(V), F[V] = z;
  1258. }
  1259. }
  1260. return z;
  1261. }, j.prototype.getStyle = function(T) {
  1262. return P.getComputedStyle(this.element || this, "").getPropertyValue(T);
  1263. }, j.prototype.hasClass = function(T) {
  1264. return ("" + this.attr("class")).split(" ").indexOf(T) !== -1;
  1265. }, j.prototype.hide = function(T) {
  1266. return T ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  1267. }, j.prototype.htmlGetBBox = function() {
  1268. return { height: 0, width: 0, x: 0, y: 0 };
  1269. }, j.prototype.init = function(T, X) {
  1270. this.element = X === "span" ? C(X) : w.createElementNS(this.SVG_NS, X), this.renderer = T, c(this, "afterInit");
  1271. }, j.prototype.invert = function(T) {
  1272. return this.inverted = T, this.updateTransform(), this;
  1273. }, j.prototype.on = function(T, X) {
  1274. var f = this.onEvents;
  1275. return f[T] && f[T](), f[T] = O(
  1276. this.element,
  1277. T,
  1278. X
  1279. ), this;
  1280. }, j.prototype.opacitySetter = function(T, X, f) {
  1281. this.opacity = T = Number(Number(T).toFixed(3)), f.setAttribute(X, T);
  1282. }, j.prototype.removeClass = function(T) {
  1283. return this.attr("class", ("" + this.attr("class")).replace(s(T) ? new RegExp("(^| )" + T + "( |$)") : T, " ").replace(/ +/g, " ").trim());
  1284. }, j.prototype.removeTextOutline = function() {
  1285. var T = this.element.querySelector("tspan.highcharts-text-outline");
  1286. T && this.safeRemoveChild(T);
  1287. }, j.prototype.safeRemoveChild = function(T) {
  1288. var X = T.parentNode;
  1289. X && X.removeChild(T);
  1290. }, j.prototype.setRadialReference = function(T) {
  1291. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  1292. return this.element.radialReference = T, X && X.radAttr && X.animate(this.renderer.getRadialAttr(T, X.radAttr)), this;
  1293. }, j.prototype.setTextPath = function(T, X) {
  1294. var f = this.element, m = this.text ? this.text.element : f, L = { textAnchor: "text-anchor" }, Y = !1, F = this.textPathWrapper, Q = !F;
  1295. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  1296. var k = R.filterUserAttributes(X.attributes);
  1297. if (T && X && X.enabled) {
  1298. F && F.element.parentNode === null ? (Q = !0, F = F.destroy()) : F && this.removeTextOutline.call(F.parentGroup), this.options && this.options.padding && (k.dx = -this.options.padding), F || (this.textPathWrapper = F = this.renderer.createElement("textPath"), Y = !0);
  1299. var G = F.element;
  1300. if ((X = T.element.getAttribute("id")) || T.element.setAttribute("id", X = D()), Q)
  1301. for (m.setAttribute("y", 0), l(k.dx) && m.setAttribute("x", -k.dx), T = [].slice.call(m.childNodes), Q = 0; Q < T.length; Q++) {
  1302. var z = T[Q];
  1303. z.nodeType !== P.Node.TEXT_NODE && z.nodeName !== "tspan" || G.appendChild(z);
  1304. }
  1305. Y && F && F.add({ element: m }), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), M(k.dy) && (G.parentNode.setAttribute("dy", k.dy), delete k.dy), M(k.dx) && (G.parentNode.setAttribute("dx", k.dx), delete k.dx), n(k, function(V, q) {
  1306. G.setAttribute(L[q] || q, V);
  1307. }), f.removeAttribute("transform"), this.removeTextOutline.call(F), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = v;
  1308. } else
  1309. F && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(f, T), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  1310. return this;
  1311. }, j.prototype.shadow = function(T, X, f) {
  1312. var m = [], L = this.element, Y = this.oldShadowOptions, F = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, k;
  1313. if (T === !0 ? k = F : typeof T == "object" && (k = a(F, T)), k && (k && Y && n(k, function(it, et) {
  1314. it !== Y[et] && (Q = !0);
  1315. }), Q && this.destroyShadows(), this.oldShadowOptions = k), !k)
  1316. this.destroyShadows();
  1317. else if (!this.shadows) {
  1318. var G = k.opacity / k.width, z = this.parentInverted ? "translate(" + k.offsetY + ", " + k.offsetX + ")" : "translate(" + k.offsetX + ", " + k.offsetY + ")";
  1319. for (F = 1; F <= k.width; F++) {
  1320. var V = L.cloneNode(!1), q = 2 * k.width + 1 - 2 * F;
  1321. B(V, { stroke: T.color || "#000000", "stroke-opacity": G * F, "stroke-width": q, transform: z, fill: "none" }), V.setAttribute("class", (V.getAttribute("class") || "") + " highcharts-shadow"), f && (B(V, "height", Math.max(B(V, "height") - q, 0)), V.cutHeight = q), X ? X.element.appendChild(V) : L.parentNode && L.parentNode.insertBefore(V, L), m.push(V);
  1322. }
  1323. this.shadows = m;
  1324. }
  1325. return this;
  1326. }, j.prototype.show = function(T) {
  1327. return this.attr({ visibility: T ? "inherit" : "visible" });
  1328. }, j.prototype.strokeSetter = function(T, X, f) {
  1329. this[X] = T, this.stroke && this["stroke-width"] ? (j.prototype.fillSetter.call(this, this.stroke, "stroke", f), f.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : X === "stroke-width" && T === 0 && this.hasStroke ? (f.removeAttribute("stroke"), this.hasStroke = !1) : this.renderer.styledMode && this["stroke-width"] && (f.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0);
  1330. }, j.prototype.strokeWidth = function() {
  1331. if (!this.renderer.styledMode)
  1332. return this["stroke-width"] || 0;
  1333. var T = this.getStyle("stroke-width"), X = 0;
  1334. if (T.indexOf("px") === T.length - 2)
  1335. X = A(T);
  1336. else if (T !== "") {
  1337. var f = w.createElementNS(d, "rect");
  1338. B(f, { width: T, "stroke-width": 0 }), this.element.parentNode.appendChild(f), X = f.getBBox().width, f.parentNode.removeChild(f);
  1339. }
  1340. return X;
  1341. }, j.prototype.symbolAttr = function(T) {
  1342. var X = this;
  1343. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(f) {
  1344. X[f] = o(T[f], X[f]);
  1345. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  1346. }, j.prototype.textSetter = function(T) {
  1347. T !== this.textStr && (delete this.textPxLength, this.textStr = T, this.added && this.renderer.buildText(this));
  1348. }, j.prototype.titleSetter = function(T) {
  1349. var X = this.element, f = X.getElementsByTagName("title")[0] || w.createElementNS(this.SVG_NS, "title");
  1350. X.insertBefore ? X.insertBefore(f, X.firstChild) : X.appendChild(f), f.textContent = String(o(T, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  1351. /&gt;/g,
  1352. ">"
  1353. );
  1354. }, j.prototype.toFront = function() {
  1355. var T = this.element;
  1356. return T.parentNode.appendChild(T), this;
  1357. }, j.prototype.translate = function(T, X) {
  1358. return this.attr({ translateX: T, translateY: X });
  1359. }, j.prototype.updateShadows = function(T, X, f) {
  1360. var m = this.shadows;
  1361. if (m)
  1362. for (var L = m.length; L--; )
  1363. f.call(m[L], T === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : T === "d" ? this.d : X, T, m[L]);
  1364. }, j.prototype.updateTransform = function() {
  1365. var T = this.scaleX, X = this.scaleY, f = this.inverted, m = this.rotation, L = this.matrix, Y = this.element, F = this.translateX || 0, Q = this.translateY || 0;
  1366. f && (F += this.width, Q += this.height), F = ["translate(" + F + "," + Q + ")"], M(L) && F.push("matrix(" + L.join(",") + ")"), f ? F.push("rotate(90) scale(-1,1)") : m && F.push("rotate(" + m + " " + o(this.rotationOriginX, Y.getAttribute("x"), 0) + " " + o(this.rotationOriginY, Y.getAttribute("y") || 0) + ")"), (M(T) || M(X)) && F.push("scale(" + o(T, 1) + " " + o(X, 1) + ")"), F.length && Y.setAttribute("transform", F.join(" "));
  1367. }, j.prototype.visibilitySetter = function(T, X, f) {
  1368. T === "inherit" ? f.removeAttribute(X) : this[X] !== T && f.setAttribute(
  1369. X,
  1370. T
  1371. ), this[X] = T;
  1372. }, j.prototype.xGetter = function(T) {
  1373. return this.element.nodeName === "circle" && (T === "x" ? T = "cx" : T === "y" && (T = "cy")), this._defaultGetter(T);
  1374. }, j.prototype.zIndexSetter = function(T, X) {
  1375. var f = this.renderer, m = this.parentGroup, L = (m || f).element || f.box, Y = this.element;
  1376. f = L === f.box;
  1377. var F = !1, Q = this.added, k;
  1378. if (M(T) ? (Y.setAttribute("data-z-index", T), T = +T, this[X] === T && (Q = !1)) : M(this[X]) && Y.removeAttribute("data-z-index"), this[X] = T, Q) {
  1379. for ((T = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, k = X.length - 1; 0 <= k && !F; k--) {
  1380. m = X[k], Q = m.getAttribute("data-z-index");
  1381. var G = !M(Q);
  1382. m !== Y && (0 > T && G && !f && !k ? (L.insertBefore(Y, X[k]), F = !0) : (A(Q) <= T || G && (!M(T) || 0 <= T)) && (L.insertBefore(Y, X[k + 1] || null), F = !0));
  1383. }
  1384. F || (L.insertBefore(Y, X[f ? 3 : 0] || null), F = !0);
  1385. }
  1386. return F;
  1387. }, j;
  1388. }(), 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(j, T) {
  1389. this[T] = j, this.doTransform = !0;
  1390. }, y;
  1391. }), E(h, "Core/Renderer/RendererRegistry.js", [h["Core/Globals.js"]], function(y) {
  1392. var R;
  1393. return function(I) {
  1394. I.rendererTypes = {};
  1395. var Z;
  1396. I.getRendererType = function(H) {
  1397. return H === void 0 && (H = Z), I.rendererTypes[H] || I.rendererTypes[Z];
  1398. }, I.registerRendererType = function(H, $, U) {
  1399. I.rendererTypes[H] = $, (!Z || U) && (Z = H, y.Renderer = $);
  1400. };
  1401. }(R || (R = {})), R;
  1402. }), E(
  1403. h,
  1404. "Core/Renderer/SVG/SVGLabel.js",
  1405. [h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]],
  1406. function(y, R) {
  1407. var I = this && this.__extends || function() {
  1408. var w = function(v, u) {
  1409. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, P) {
  1410. d.__proto__ = P;
  1411. } || function(d, P) {
  1412. for (var O in P)
  1413. P.hasOwnProperty(O) && (d[O] = P[O]);
  1414. }, w(v, u);
  1415. };
  1416. return function(v, u) {
  1417. function d() {
  1418. this.constructor = v;
  1419. }
  1420. w(v, u), v.prototype = u === null ? Object.create(u) : (d.prototype = u.prototype, new d());
  1421. };
  1422. }(), Z = R.defined, H = R.extend, $ = R.isNumber, U = R.merge, W = R.pick, N = R.removeEvent;
  1423. return function(w) {
  1424. function v(u, d, P, O, B, C, b, M, x, a) {
  1425. var c = w.call(this) || this;
  1426. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(u, "g"), c.textStr = d, 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 = u.text(void 0, 0, 0, M).attr({ zIndex: 1 });
  1427. var p;
  1428. return typeof B == "string" && ((p = /^url\((.*?)\)$/.test(B)) || c.renderer.symbols[B]) && (c.symbolKey = B), c.bBox = v.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = u.styledMode || p, c.deferredAttr = {}, c.alignFactor = 0, c;
  1429. }
  1430. return I(v, w), v.prototype.alignSetter = function(u) {
  1431. u = { left: 0, center: 0.5, right: 1 }[u], u !== this.alignFactor && (this.alignFactor = u, this.bBox && $(this.xSetting) && this.attr({ x: this.xSetting }));
  1432. }, v.prototype.anchorXSetter = function(u, d) {
  1433. this.anchorX = u, this.boxAttr(d, Math.round(u) - this.getCrispAdjust() - this.xSetting);
  1434. }, v.prototype.anchorYSetter = function(u, d) {
  1435. this.anchorY = u, this.boxAttr(d, u - this.ySetting);
  1436. }, v.prototype.boxAttr = function(u, d) {
  1437. this.box ? this.box.attr(u, d) : this.deferredAttr[u] = d;
  1438. }, v.prototype.css = function(u) {
  1439. if (u) {
  1440. var d = {};
  1441. u = U(u), v.textProps.forEach(function(O) {
  1442. typeof u[O] < "u" && (d[O] = u[O], delete u[O]);
  1443. }), this.text.css(d);
  1444. var P = "width" in d;
  1445. "fontSize" in d || "fontWeight" in d ? this.updateTextPadding() : P && this.updateBoxSize();
  1446. }
  1447. return y.prototype.css.call(this, u);
  1448. }, v.prototype.destroy = function() {
  1449. N(this.element, "mouseenter"), N(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  1450. }, v.prototype.fillSetter = function(u, d) {
  1451. u && (this.needsBox = !0), this.fill = u, this.boxAttr(d, u);
  1452. }, v.prototype.getBBox = function() {
  1453. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  1454. var u = this.padding, d = W(this.paddingLeft, u);
  1455. return { width: this.width, height: this.height, x: this.bBox.x - d, y: this.bBox.y - u };
  1456. }, v.prototype.getCrispAdjust = function() {
  1457. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  1458. this["stroke-width"],
  1459. 10
  1460. ) : 0) % 2 / 2;
  1461. }, v.prototype.heightSetter = function(u) {
  1462. this.heightSetting = u;
  1463. }, v.prototype.onAdd = function() {
  1464. var u = this.textStr;
  1465. this.text.add(this), this.attr({ text: Z(u) ? u : "", x: this.x, y: this.y }), this.box && Z(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  1466. }, v.prototype.paddingSetter = function(u, d) {
  1467. $(u) ? u !== this[d] && (this[d] = u, this.updateTextPadding()) : this[d] = void 0;
  1468. }, v.prototype.rSetter = function(u, d) {
  1469. this.boxAttr(d, u);
  1470. }, v.prototype.shadow = function(u) {
  1471. return u && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(u)), this;
  1472. }, v.prototype.strokeSetter = function(u, d) {
  1473. this.stroke = u, this.boxAttr(d, u);
  1474. }, v.prototype["stroke-widthSetter"] = function(u, d) {
  1475. u && (this.needsBox = !0), this["stroke-width"] = u, this.boxAttr(d, u);
  1476. }, v.prototype["text-alignSetter"] = function(u) {
  1477. this.textAlign = u;
  1478. }, v.prototype.textSetter = function(u) {
  1479. typeof u < "u" && this.text.attr({ text: u }), this.updateTextPadding();
  1480. }, v.prototype.updateBoxSize = function() {
  1481. var u = this.text.element.style, d = {}, P = this.padding, O = this.bBox = $(this.widthSetting) && $(this.heightSetting) && !this.textAlign || !Z(this.text.textStr) ? v.emptyBBox : this.text.getBBox();
  1482. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * P, u = this.renderer.fontMetrics(u && u.fontSize, this.text), this.baselineOffset = P + Math.min((this.text.firstLineMetrics || u).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - u.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(), d.x = P, d.y = (this.baseline ? -this.baselineOffset : 0) + P, d.width = Math.round(this.width), d.height = Math.round(this.height), this.box.attr(H(d, this.deferredAttr)), this.deferredAttr = {});
  1483. }, v.prototype.updateTextPadding = function() {
  1484. var u = this.text;
  1485. this.updateBoxSize();
  1486. var d = this.baseline ? 0 : this.baselineOffset, P = W(this.paddingLeft, this.padding);
  1487. 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 !== u.x || d !== u.y) && (u.attr("x", P), u.hasBoxWidthChanged && (this.bBox = u.getBBox(!0)), typeof d < "u" && u.attr("y", d)), u.x = P, u.y = d;
  1488. }, v.prototype.widthSetter = function(u) {
  1489. this.widthSetting = $(u) ? u : void 0;
  1490. }, v.prototype.getPaddedWidth = function() {
  1491. var u = this.padding, d = W(this.paddingLeft, u);
  1492. return u = W(this.paddingRight, u), (this.widthSetting || this.bBox.width || 0) + d + u;
  1493. }, v.prototype.xSetter = function(u) {
  1494. this.x = u, this.alignFactor && (u -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(u), this.attr("translateX", this.xSetting);
  1495. }, v.prototype.ySetter = function(u) {
  1496. this.ySetting = this.y = Math.round(u), this.attr("translateY", this.ySetting);
  1497. }, 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;
  1498. }(y);
  1499. }
  1500. ), E(
  1501. h,
  1502. "Core/Renderer/SVG/Symbols.js",
  1503. [h["Core/Utilities.js"]],
  1504. function(y) {
  1505. function R(W, N, w, v, u) {
  1506. var d = [];
  1507. if (u) {
  1508. var P = u.start || 0, O = U(u.r, w);
  1509. w = U(u.r, v || w);
  1510. var B = (u.end || 0) - 1e-3;
  1511. v = u.innerR;
  1512. var C = U(u.open, 1e-3 > Math.abs((u.end || 0) - P - 2 * Math.PI)), b = Math.cos(P), M = Math.sin(P), x = Math.cos(B), a = Math.sin(B);
  1513. P = U(u.longArc, 1e-3 > B - P - Math.PI ? 0 : 1), d.push(["M", W + O * b, N + w * M], ["A", O, w, 0, P, U(u.clockwise, 1), W + O * x, N + w * a]), H(v) && d.push(C ? ["M", W + v * x, N + v * a] : ["L", W + v * x, N + v * a], ["A", v, v, 0, P, H(u.clockwise) ? 1 - u.clockwise : 0, W + v * b, N + v * M]), C || d.push(["Z"]);
  1514. }
  1515. return d;
  1516. }
  1517. function I(W, N, w, v, u) {
  1518. return u && u.r ? Z(W, N, w, v, u) : [["M", W, N], ["L", W + w, N], ["L", W + w, N + v], ["L", W, N + v], ["Z"]];
  1519. }
  1520. function Z(W, N, w, v, u) {
  1521. return u = u && u.r || 0, [["M", W + u, N], ["L", W + w - u, N], ["C", W + w, N, W + w, N, W + w, N + u], ["L", W + w, N + v - u], ["C", W + w, N + v, W + w, N + v, W + w - u, N + v], ["L", W + u, N + v], ["C", W, N + v, W, N + v, W, N + v - u], ["L", W, N + u], ["C", W, N, W, N, W + u, N]];
  1522. }
  1523. var H = y.defined, $ = y.isNumber, U = y.pick;
  1524. return { arc: R, callout: function(W, N, w, v, u) {
  1525. var d = Math.min(u && u.r || 0, w, v), P = d + 6, O = u && u.anchorX;
  1526. u = u && u.anchorY || 0;
  1527. var B = Z(W, N, w, v, { r: d });
  1528. return $(O) && (W + O >= w ? u > N + P && u < N + v - P ? B.splice(3, 1, ["L", W + w, u - 6], ["L", W + w + 6, u], ["L", W + w, u + 6], ["L", W + w, N + v - d]) : B.splice(3, 1, ["L", W + w, v / 2], ["L", O, u], ["L", W + w, v / 2], ["L", W + w, N + v - d]) : 0 >= W + O ? u > N + P && u < N + v - P ? B.splice(7, 1, ["L", W, u + 6], ["L", W - 6, u], ["L", W, u - 6], ["L", W, N + d]) : B.splice(7, 1, ["L", W, v / 2], ["L", O, u], ["L", W, v / 2], ["L", W, N + d]) : u && u > v && O > W + P && O < W + w - P ? B.splice(5, 1, ["L", O + 6, N + v], ["L", O, N + v + 6], ["L", O - 6, N + v], ["L", W + d, N + v]) : u && 0 > u && O > W + P && O < W + w - P && B.splice(1, 1, ["L", O - 6, N], ["L", O, N - 6], ["L", O + 6, N], ["L", w - d, N])), B;
  1529. }, circle: function(W, N, w, v) {
  1530. return R(W + w / 2, N + v / 2, w / 2, v / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  1531. }, diamond: function(W, N, w, v) {
  1532. return [["M", W + w / 2, N], ["L", W + w, N + v / 2], ["L", W + w / 2, N + v], ["L", W, N + v / 2], ["Z"]];
  1533. }, rect: I, roundedRect: Z, square: I, triangle: function(W, N, w, v) {
  1534. return [["M", W + w / 2, N], ["L", W + w, N + v], ["L", W, N + v], ["Z"]];
  1535. }, "triangle-down": function(W, N, w, v) {
  1536. return [["M", W, N], ["L", W + w, N], ["L", W + w / 2, N + v], ["Z"]];
  1537. } };
  1538. }
  1539. ), E(h, "Core/Renderer/SVG/TextBuilder.js", [h["Core/Renderer/HTML/AST.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R, I) {
  1540. var Z = R.doc, H = R.SVG_NS, $ = R.win, U = I.attr, W = I.isString, N = I.objectEach, w = I.pick;
  1541. return function() {
  1542. function v(u) {
  1543. var d = u.styles;
  1544. this.renderer = u.renderer, this.svgElement = u, this.width = u.textWidth, this.textLineHeight = d && d.lineHeight, this.textOutline = d && d.textOutline, this.ellipsis = !(!d || d.textOverflow !== "ellipsis"), this.noWrap = !(!d || d.whiteSpace !== "nowrap"), this.fontSize = d && d.fontSize;
  1545. }
  1546. return v.prototype.buildSVG = function() {
  1547. var u = this.svgElement, d = u.element, P = u.renderer, O = w(u.textStr, "").toString(), B = O.indexOf("<") !== -1, C = d.childNodes;
  1548. P = this.width && !u.added && P.box;
  1549. var b = /<br.*?>/g, M = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  1550. if (M !== u.textCache) {
  1551. for (u.textCache = M, delete u.actualWidth, M = C.length; M--; )
  1552. d.removeChild(C[M]);
  1553. B || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || b.test(O)) ? O !== "" && (P && P.appendChild(d), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(u.element), this.modifyDOM(), this.ellipsis && (d.textContent || "").indexOf("…") !== -1 && u.attr(
  1554. "title",
  1555. this.unescapeEntities(u.textStr || "", ["&lt;", "&gt;"])
  1556. ), P && P.removeChild(d)) : d.appendChild(Z.createTextNode(this.unescapeEntities(O))), W(this.textOutline) && u.applyTextOutline && u.applyTextOutline(this.textOutline);
  1557. }
  1558. }, v.prototype.modifyDOM = function() {
  1559. var u = this, d = this.svgElement, P = U(d.element, "x");
  1560. d.firstLineMetrics = void 0;
  1561. for (var O; (O = d.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  1562. d.element.removeChild(O);
  1563. [].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"), function(M, x) {
  1564. M.nextSibling && M.previousSibling && (x === 0 && M.previousSibling.nodeType === 1 && (d.firstLineMetrics = d.renderer.fontMetrics(void 0, M.previousSibling)), U(M, { dy: u.getLineHeight(M.nextSibling), x: P }));
  1565. });
  1566. var B = this.width || 0;
  1567. if (B) {
  1568. var C = function(M, x) {
  1569. var a = M.textContent || "", c = a.replace(/([^\^])-/g, "$1- ").split(" "), p = !u.noWrap && (1 < c.length || 1 < d.element.childNodes.length), i = u.getLineHeight(x), l = 0, s = d.actualWidth;
  1570. if (u.ellipsis)
  1571. a && u.truncate(M, a, void 0, 0, Math.max(0, B - parseInt(u.fontSize || 12, 10)), function(t, n) {
  1572. return t.substring(
  1573. 0,
  1574. n
  1575. ) + "…";
  1576. });
  1577. else if (p) {
  1578. for (a = [], p = []; x.firstChild && x.firstChild !== M; )
  1579. p.push(x.firstChild), x.removeChild(x.firstChild);
  1580. for (; c.length; )
  1581. c.length && !u.noWrap && 0 < l && (a.push(M.textContent || ""), M.textContent = c.join(" ").replace(/- /g, "-")), u.truncate(M, void 0, c, l === 0 && s || 0, B, function(t, n) {
  1582. return c.slice(0, n).join(" ").replace(/- /g, "-");
  1583. }), s = d.actualWidth, l++;
  1584. p.forEach(function(t) {
  1585. x.insertBefore(t, M);
  1586. }), a.forEach(function(t) {
  1587. x.insertBefore(Z.createTextNode(t), M), t = Z.createElementNS(H, "tspan"), t.textContent = "​", U(t, { dy: i, x: P }), x.insertBefore(t, M);
  1588. });
  1589. }
  1590. }, b = function(M) {
  1591. [].slice.call(M.childNodes).forEach(function(x) {
  1592. x.nodeType === $.Node.TEXT_NODE ? C(x, M) : (x.className.baseVal.indexOf("highcharts-br") !== -1 && (d.actualWidth = 0), b(x));
  1593. });
  1594. };
  1595. b(d.element);
  1596. }
  1597. }, v.prototype.getLineHeight = function(u) {
  1598. var d;
  1599. return u = u.nodeType === $.Node.TEXT_NODE ? u.parentElement : u, this.renderer.styledMode || (d = u && /(px|em)$/.test(u.style.fontSize) ? u.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  1600. this.textLineHeight.toString(),
  1601. 10
  1602. ) : this.renderer.fontMetrics(d, u || this.svgElement.element).h;
  1603. }, v.prototype.modifyTree = function(u) {
  1604. var d = this, P = function(O, B) {
  1605. var C = O.attributes;
  1606. C = C === void 0 ? {} : C;
  1607. var b = O.children, M = O.tagName, x = d.renderer.styledMode;
  1608. M === "b" || M === "strong" ? x ? C.class = "highcharts-strong" : C.style = "font-weight:bold;" + (C.style || "") : (M === "i" || M === "em") && (x ? C.class = "highcharts-emphasized" : C.style = "font-style:italic;" + (C.style || "")), W(C.style) && (C.style = C.style.replace(/(;| |^)color([ :])/, "$1fill$2")), M === "br" ? (C.class = "highcharts-br", O.textContent = "​", (B = u[B + 1]) && B.textContent && (B.textContent = B.textContent.replace(/^ +/gm, ""))) : M === "a" && b && b.some(function(a) {
  1609. return a.tagName === "#text";
  1610. }) && (O.children = [{ children: b, tagName: "tspan" }]), M !== "#text" && M !== "a" && (O.tagName = "tspan"), O.attributes = C, b && b.filter(function(a) {
  1611. return a.tagName !== "#text";
  1612. }).forEach(P);
  1613. };
  1614. u.forEach(P);
  1615. }, v.prototype.truncate = function(u, d, P, O, B, C) {
  1616. var b = this.svgElement, M = b.renderer, x = b.rotation, a = [], c = P ? 1 : 0, p = (d || P || "").length, i = p, l, s = function(n, o) {
  1617. o = o || n;
  1618. var A = u.parentNode;
  1619. if (A && typeof a[o] > "u")
  1620. if (A.getSubStringLength)
  1621. try {
  1622. a[o] = O + A.getSubStringLength(0, P ? o + 1 : o);
  1623. } catch {
  1624. }
  1625. else
  1626. M.getSpanWidth && (u.textContent = C(d || P, n), a[o] = O + M.getSpanWidth(b, u));
  1627. return a[o];
  1628. };
  1629. b.rotation = 0;
  1630. var t = s(u.textContent.length);
  1631. if (O + t > B) {
  1632. for (; c <= p; )
  1633. i = Math.ceil((c + p) / 2), P && (l = C(P, i)), t = s(i, l && l.length - 1), c === p ? c = p + 1 : t > B ? p = i - 1 : c = i;
  1634. p === 0 ? u.textContent = "" : d && p === d.length - 1 || (u.textContent = l || C(d || P, i));
  1635. }
  1636. P && P.splice(0, i), b.actualWidth = t, b.rotation = x;
  1637. }, v.prototype.unescapeEntities = function(u, d) {
  1638. return N(this.renderer.escapes, function(P, O) {
  1639. d && d.indexOf(P) !== -1 || (u = u.toString().replace(new RegExp(P, "g"), O));
  1640. }), u;
  1641. }, v;
  1642. }();
  1643. }), 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, R, I, Z, H, $, U, W, N) {
  1644. var w = I.charts, v = I.deg2rad, u = I.doc, d = I.isFirefox, P = I.isMS, O = I.isWebKit, B = I.noop, C = I.SVG_NS, b = I.symbolSizes, M = I.win, x = N.addEvent, a = N.attr, c = N.createElement, p = N.css, i = N.defined, l = N.destroyObjectProperties, s = N.extend, t = N.isArray, n = N.isNumber, o = N.isObject, A = N.isString, _ = N.merge, D = N.pick, j = N.pInt, T = N.uniqueKey, X;
  1645. return I = function() {
  1646. function f(m, L, Y, F, Q, k, G) {
  1647. 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, F, Q, k, G);
  1648. }
  1649. return f.prototype.init = function(m, L, Y, F, Q, k, G) {
  1650. var z = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), V = z.element;
  1651. G || z.css(this.getStyle(F)), m.appendChild(V), a(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && a(V, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = V, this.boxWrapper = z, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(u.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);
  1652. var q;
  1653. d && m.getBoundingClientRect && (L = function() {
  1654. 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" });
  1655. }, L(), this.unSubPixelFix = x(M, "resize", L));
  1656. }, f.prototype.definition = function(m) {
  1657. return new y([m]).addToDOM(this.defs.element);
  1658. }, f.prototype.getReferenceURL = function() {
  1659. if ((d || O) && u.getElementsByTagName("base").length) {
  1660. if (!i(X)) {
  1661. var m = T();
  1662. 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(u.body), p(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  1663. var L = u.elementFromPoint(6, 6);
  1664. X = (L && L.id) === "hitme", u.body.removeChild(m);
  1665. }
  1666. if (X)
  1667. return M.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  1668. }
  1669. return "";
  1670. }, f.prototype.getStyle = function(m) {
  1671. return this.style = s({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  1672. }, f.prototype.setStyle = function(m) {
  1673. this.boxWrapper.css(this.getStyle(m));
  1674. }, f.prototype.isHidden = function() {
  1675. return !this.boxWrapper.getBBox().width;
  1676. }, f.prototype.destroy = function() {
  1677. var m = this.defs;
  1678. 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;
  1679. }, f.prototype.createElement = function(m) {
  1680. var L = new this.Element();
  1681. return L.init(this, m), L;
  1682. }, f.prototype.getRadialAttr = function(m, L) {
  1683. 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] };
  1684. }, f.prototype.buildText = function(m) {
  1685. new W(m).buildSVG();
  1686. }, f.prototype.getContrast = function(m) {
  1687. return m = R.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  1688. }, f.prototype.button = function(m, L, Y, F, Q, k, G, z, V, q) {
  1689. var it = this.label(m, L, Y, V, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? _(Q) : {};
  1690. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(_({ padding: 8, r: 2 }, rt)), !et) {
  1691. rt = _({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  1692. var ct = rt.style;
  1693. delete rt.style, k = _(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(k || {}));
  1694. var gt = k.style;
  1695. delete k.style, G = _(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(G || {}));
  1696. var dt = G.style;
  1697. delete G.style, z = _(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(z || {}));
  1698. var lt = z.style;
  1699. delete z.style;
  1700. }
  1701. return x(it.element, P ? "mouseover" : "mouseenter", function() {
  1702. nt !== 3 && it.setState(1);
  1703. }), x(it.element, P ? "mouseout" : "mouseleave", function() {
  1704. nt !== 3 && it.setState(nt);
  1705. }), it.setState = function(at) {
  1706. 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]);
  1707. }, et || it.attr(rt).css(s({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  1708. return at.stopPropagation();
  1709. }).on("click", function(at) {
  1710. nt !== 3 && F.call(it, at);
  1711. });
  1712. }, f.prototype.crispLine = function(m, L, Y) {
  1713. Y === void 0 && (Y = "round");
  1714. var F = m[0], Q = m[1];
  1715. return i(F[1]) && F[1] === Q[1] && (F[1] = Q[1] = Math[Y](F[1]) - L % 2 / 2), i(F[2]) && F[2] === Q[2] && (F[2] = Q[2] = Math[Y](F[2]) + L % 2 / 2), m;
  1716. }, f.prototype.path = function(m) {
  1717. var L = this.styledMode ? {} : { fill: "none" };
  1718. return t(m) ? L.d = m : o(m) && s(L, m), this.createElement("path").attr(L);
  1719. }, f.prototype.circle = function(m, L, Y) {
  1720. return m = o(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: Y }, L = this.createElement("circle"), L.xSetter = L.ySetter = function(F, Q, k) {
  1721. k.setAttribute("c" + Q, F);
  1722. }, L.attr(m);
  1723. }, f.prototype.arc = function(m, L, Y, F, Q, k) {
  1724. return o(m) ? (F = m, L = F.y, Y = F.r, m = F.x) : F = { innerR: F, start: Q, end: k }, m = this.symbol("arc", m, L, Y, Y, F), m.r = Y, m;
  1725. }, f.prototype.rect = function(m, L, Y, F, Q, k) {
  1726. Q = o(m) ? m.r : Q;
  1727. var G = this.createElement("rect");
  1728. return m = o(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(Y, 0), height: Math.max(F, 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, V, q) {
  1729. G.r = z, a(q, { rx: z, ry: z });
  1730. }, G.rGetter = function() {
  1731. return G.r || 0;
  1732. }, G.attr(m);
  1733. }, f.prototype.setSize = function(m, L, Y) {
  1734. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  1735. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  1736. }, duration: D(
  1737. Y,
  1738. !0
  1739. ) ? void 0 : 0 }), this.alignElements();
  1740. }, f.prototype.g = function(m) {
  1741. var L = this.createElement("g");
  1742. return m ? L.attr({ class: "highcharts-" + m }) : L;
  1743. }, f.prototype.image = function(m, L, Y, F, Q, k) {
  1744. var G = { preserveAspectRatio: "none" }, z = function(q, it) {
  1745. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  1746. };
  1747. n(L) && (G.x = L), n(Y) && (G.y = Y), n(F) && (G.width = F), n(Q) && (G.height = Q);
  1748. var V = this.createElement("image").attr(G);
  1749. return L = function(q) {
  1750. z(V.element, m), k.call(V, q);
  1751. }, k ? (z(
  1752. V.element,
  1753. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  1754. ), Y = new M.Image(), x(Y, "load", L), Y.src = m, Y.complete && L({})) : z(V.element, m), V;
  1755. }, f.prototype.symbol = function(m, L, Y, F, Q, k) {
  1756. var G = this, z = /^url\((.*?)\)$/, V = z.test(m), q = !V && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  1757. if (it) {
  1758. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(Y || 0), F || 0, Q || 0, k));
  1759. var nt = this.path(et);
  1760. G.styledMode || nt.attr("fill", "none"), s(nt, { symbolName: q || void 0, x: L, y: Y, width: F, height: Q }), k && s(nt, k);
  1761. } else if (V) {
  1762. var rt = m.match(z)[1], ct = nt = this.image(rt);
  1763. ct.imgwidth = D(b[rt] && b[rt].width, k && k.width), ct.imgheight = D(b[rt] && b[rt].height, k && k.height);
  1764. var gt = function(dt) {
  1765. return dt.attr({ width: dt.width, height: dt.height });
  1766. };
  1767. ["width", "height"].forEach(function(dt) {
  1768. ct[dt + "Setter"] = function(lt, at) {
  1769. var J = this["img" + at];
  1770. 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 })));
  1771. };
  1772. }), 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() {
  1773. var dt = w[G.chartIndex];
  1774. this.width === 0 && (p(this, { position: "absolute", top: "-999em" }), u.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();
  1775. }, src: rt }), this.imgCount++);
  1776. }
  1777. return nt;
  1778. }, f.prototype.clipRect = function(m, L, Y, F) {
  1779. var Q = T() + "-", k = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  1780. return m = this.rect(m, L, Y, F, 0).add(k), m.id = Q, m.clipPath = k, m.count = 0, m;
  1781. }, f.prototype.text = function(m, L, Y, F) {
  1782. var Q = {};
  1783. return F && (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), (!F || this.forExport && !this.allowHTML) && (m.xSetter = function(k, G, z) {
  1784. for (var V = z.getElementsByTagName("tspan"), q = z.getAttribute(G), it = 0, et; it < V.length; it++)
  1785. et = V[it], et.getAttribute(G) === q && et.setAttribute(G, k);
  1786. z.setAttribute(G, k);
  1787. }), m);
  1788. }, f.prototype.fontMetrics = function(m, L) {
  1789. return m = !this.styledMode && /px/.test(m) || !M.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && H.prototype.getStyle.call(L, "font-size"), m = /px/.test(m) ? j(m) : 12, L = 24 > m ? m + 3 : Math.round(1.2 * m), { h: L, b: Math.round(0.8 * L), f: m };
  1790. }, f.prototype.rotCorr = function(m, L, Y) {
  1791. var F = m;
  1792. return L && Y && (F = Math.max(F * Math.cos(L * v), 4)), { x: -m / 3 * Math.sin(L * v), y: F };
  1793. }, f.prototype.pathToSegments = function(m) {
  1794. for (var L = [], Y = [], F = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  1795. A(Y[0]) && n(m[Q]) && Y.length === F[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]);
  1796. return L.push(Y.slice(0)), L;
  1797. }, f.prototype.label = function(m, L, Y, F, Q, k, G, z, V) {
  1798. return new $(this, m, L, Y, F, Q, k, G, z, V);
  1799. }, f.prototype.alignElements = function() {
  1800. this.alignedObjects.forEach(function(m) {
  1801. return m.align();
  1802. });
  1803. }, f;
  1804. }(), s(I.prototype, { Element: H, SVG_NS: C, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: U, draw: B }), Z.registerRendererType("svg", I, !0), I;
  1805. }), E(h, "Core/Renderer/HTML/HTMLElement.js", [h["Core/Globals.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]], function(y, R, I) {
  1806. var Z = this && this.__extends || function() {
  1807. var P = function(O, B) {
  1808. return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  1809. C.__proto__ = b;
  1810. } || function(C, b) {
  1811. for (var M in b)
  1812. b.hasOwnProperty(M) && (C[M] = b[M]);
  1813. }, P(O, B);
  1814. };
  1815. return function(O, B) {
  1816. function C() {
  1817. this.constructor = O;
  1818. }
  1819. P(O, B), O.prototype = B === null ? Object.create(B) : (C.prototype = B.prototype, new C());
  1820. };
  1821. }(), H = y.isFirefox, $ = y.isMS, U = y.isWebKit, W = y.win, N = I.css, w = I.defined, v = I.extend, u = I.pick, d = I.pInt;
  1822. return function(P) {
  1823. function O() {
  1824. return P !== null && P.apply(this, arguments) || this;
  1825. }
  1826. return Z(O, P), O.compose = function(B) {
  1827. if (O.composedClasses.indexOf(B) === -1) {
  1828. O.composedClasses.push(B);
  1829. var C = O.prototype, b = B.prototype;
  1830. b.getSpanCorrection = C.getSpanCorrection, b.htmlCss = C.htmlCss, b.htmlGetBBox = C.htmlGetBBox, b.htmlUpdateTransform = C.htmlUpdateTransform, b.setSpanRotation = C.setSpanRotation;
  1831. }
  1832. return B;
  1833. }, O.prototype.getSpanCorrection = function(B, C, b) {
  1834. this.xCorr = -B * b, this.yCorr = -C;
  1835. }, O.prototype.htmlCss = function(B) {
  1836. var C = this.element.tagName === "SPAN" && B && "width" in B, b = u(C && B.width, void 0);
  1837. if (C) {
  1838. delete B.width, this.textWidth = b;
  1839. var M = !0;
  1840. }
  1841. return B && B.textOverflow === "ellipsis" && (B.whiteSpace = "nowrap", B.overflow = "hidden"), this.styles = v(this.styles, B), N(this.element, B), M && this.htmlUpdateTransform(), this;
  1842. }, O.prototype.htmlGetBBox = function() {
  1843. var B = this.element;
  1844. return { x: B.offsetLeft, y: B.offsetTop, width: B.offsetWidth, height: B.offsetHeight };
  1845. }, O.prototype.htmlUpdateTransform = function() {
  1846. if (this.added) {
  1847. var B = this.renderer, C = this.element, b = this.translateX || 0, M = 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;
  1848. if (i = i && i.whiteSpace, N(C, { marginLeft: b, marginTop: M }), !B.styledMode && this.shadows && this.shadows.forEach(function(A) {
  1849. N(A, { marginLeft: b + 1, marginTop: M + 1 });
  1850. }), this.inverted && [].forEach.call(C.childNodes, function(A) {
  1851. B.invertChild(A, C);
  1852. }), C.tagName === "SPAN") {
  1853. var l = this.rotation, s = this.textWidth && d(this.textWidth), t = [l, c, C.innerHTML, this.textWidth, this.textAlign].join(), n = void 0;
  1854. if (n = !1, s !== this.oldTextWidth) {
  1855. if (this.textPxLength)
  1856. var o = this.textPxLength;
  1857. else
  1858. N(C, { width: "", whiteSpace: i || "nowrap" }), o = C.offsetWidth;
  1859. (s > this.oldTextWidth || o > s) && (/[ \-]/.test(C.textContent || C.innerText) || C.style.textOverflow === "ellipsis") && (N(C, { width: o > s || l ? s + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = s, n = !0);
  1860. }
  1861. this.hasBoxWidthChanged = n, t !== this.cTT && (n = B.fontMetrics(C.style.fontSize, C).b, !w(l) || l === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(l, p, n), this.getSpanCorrection(!w(l) && this.textPxLength || C.offsetWidth, n, p, l, c)), N(C, { left: x + (this.xCorr || 0) + "px", top: a + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = l, this.oldAlign = c;
  1862. }
  1863. } else
  1864. this.alignOnAdd = !0;
  1865. }, O.prototype.setSpanRotation = function(B, C, b) {
  1866. var M = {}, x = $ && !/Edge/.test(W.navigator.userAgent) ? "-ms-transform" : U ? "-webkit-transform" : H ? "MozTransform" : W.opera ? "-o-transform" : void 0;
  1867. x && (M[x] = M.transform = "rotate(" + B + "deg)", M[x + (H ? "Origin" : "-origin")] = M.transformOrigin = 100 * C + "% " + b + "px", N(this.element, M));
  1868. }, O.composedClasses = [], O;
  1869. }(R);
  1870. }), E(
  1871. h,
  1872. "Core/Renderer/HTML/HTMLRenderer.js",
  1873. [h["Core/Renderer/HTML/AST.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Renderer/SVG/SVGRenderer.js"], h["Core/Utilities.js"]],
  1874. function(y, R, I, Z) {
  1875. var H = this && this.__extends || function() {
  1876. var w = function(v, u) {
  1877. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, P) {
  1878. d.__proto__ = P;
  1879. } || function(d, P) {
  1880. for (var O in P)
  1881. P.hasOwnProperty(O) && (d[O] = P[O]);
  1882. }, w(v, u);
  1883. };
  1884. return function(v, u) {
  1885. function d() {
  1886. this.constructor = v;
  1887. }
  1888. w(v, u), v.prototype = u === null ? Object.create(u) : (d.prototype = u.prototype, new d());
  1889. };
  1890. }(), $ = Z.attr, U = Z.createElement, W = Z.extend, N = Z.pick;
  1891. return function(w) {
  1892. function v() {
  1893. return w !== null && w.apply(this, arguments) || this;
  1894. }
  1895. return H(v, w), v.compose = function(u) {
  1896. return v.composedClasses.indexOf(u) === -1 && (v.composedClasses.push(u), u.prototype.html = v.prototype.html), u;
  1897. }, v.prototype.html = function(u, d, P) {
  1898. var O = this.createElement("span"), B = O.element, C = O.renderer, b = C.isSVG, M = function(x, a) {
  1899. ["opacity", "visibility"].forEach(function(c) {
  1900. x[c + "Setter"] = function(p, i, l) {
  1901. var s = x.div ? x.div.style : a;
  1902. R.prototype[c + "Setter"].call(this, p, i, l), s && (s[i] = p);
  1903. };
  1904. }), x.addedSetters = !0;
  1905. };
  1906. return O.textSetter = function(x) {
  1907. x !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, N(x, "")), this.textStr = x, O.doTransform = !0);
  1908. }, b && M(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(x, a) {
  1909. a === "align" ? O.alignValue = O.textAlign = x : O[a] = x, O.doTransform = !0;
  1910. }, O.afterSetters = function() {
  1911. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  1912. }, O.attr({ text: u, x: Math.round(d), y: Math.round(P) }).css({ position: "absolute" }), C.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), B.style.whiteSpace = "nowrap", O.css = O.htmlCss, b && (O.add = function(x) {
  1913. var a = C.box.parentNode, c = [];
  1914. if (this.parentGroup = x) {
  1915. var p = x.div;
  1916. if (!p) {
  1917. for (; x; )
  1918. c.push(x), x = x.parentGroup;
  1919. c.reverse().forEach(function(i) {
  1920. function l(o, A) {
  1921. i[A] = o, A === "translateX" ? n.left = o + "px" : n.top = o + "px", i.doTransform = !0;
  1922. }
  1923. var s = $(i.element, "class"), t = i.styles || {};
  1924. p = i.div = i.div || U("div", s ? { className: s } : void 0, {
  1925. position: "absolute",
  1926. left: (i.translateX || 0) + "px",
  1927. top: (i.translateY || 0) + "px",
  1928. display: i.display,
  1929. opacity: i.opacity,
  1930. cursor: t.cursor,
  1931. pointerEvents: t.pointerEvents,
  1932. visibility: i.visibility
  1933. }, p || a);
  1934. var n = p.style;
  1935. W(i, { classSetter: function(o) {
  1936. return function(A) {
  1937. this.element.setAttribute("class", A), o.className = A;
  1938. };
  1939. }(p), on: function() {
  1940. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  1941. }, translateXSetter: l, translateYSetter: l }), i.addedSetters || M(i);
  1942. });
  1943. }
  1944. } else
  1945. p = a;
  1946. return p.appendChild(B), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  1947. }), O;
  1948. }, v.composedClasses = [], v;
  1949. }(I);
  1950. }
  1951. ), E(h, "Core/Axis/AxisDefaults.js", [], function() {
  1952. var y;
  1953. return function(R) {
  1954. R.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: {
  1955. autoRotation: void 0,
  1956. autoRotationLimit: 80,
  1957. distance: void 0,
  1958. enabled: !0,
  1959. indentation: 10,
  1960. overflow: "justify",
  1961. padding: 5,
  1962. reserveSpace: void 0,
  1963. rotation: void 0,
  1964. staggerLines: 0,
  1965. step: 0,
  1966. useHTML: !1,
  1967. x: 0,
  1968. zIndex: 7,
  1969. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  1970. }, 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: {
  1971. align: "middle",
  1972. rotation: 0,
  1973. useHTML: !1,
  1974. x: 0,
  1975. y: 0,
  1976. style: { color: "#666666" }
  1977. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, R.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: {
  1978. animation: {},
  1979. allowOverlap: !1,
  1980. enabled: !1,
  1981. crop: !0,
  1982. overflow: "justify",
  1983. formatter: function() {
  1984. var I = this.axis.chart.numberFormatter;
  1985. return I(this.total, -1);
  1986. },
  1987. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  1988. }, gridLineWidth: 1, lineWidth: 0 }, R.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, R.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, R.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, R.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  1989. }(y || (y = {})), y;
  1990. }), E(h, "Core/Foundation.js", [h["Core/Utilities.js"]], function(y) {
  1991. var R = y.addEvent, I = y.isFunction, Z = y.objectEach, H = y.removeEvent, $;
  1992. return function(U) {
  1993. U.registerEventOptions = function(W, N) {
  1994. W.eventOptions = W.eventOptions || {}, Z(N.events, function(w, v) {
  1995. W.eventOptions[v] !== w && (W.eventOptions[v] && (H(W, v, W.eventOptions[v]), delete W.eventOptions[v]), I(w) && (W.eventOptions[v] = w, R(W, v, w)));
  1996. });
  1997. };
  1998. }($ || ($ = {})), $;
  1999. }), E(
  2000. h,
  2001. "Core/Axis/Tick.js",
  2002. [h["Core/FormatUtilities.js"], h["Core/Globals.js"], h["Core/Utilities.js"]],
  2003. function(y, R, I) {
  2004. var Z = R.deg2rad, H = I.clamp, $ = I.correctFloat, U = I.defined, W = I.destroyObjectProperties, N = I.extend, w = I.fireEvent, v = I.isNumber, u = I.merge, d = I.objectEach, P = I.pick;
  2005. return R = function() {
  2006. function O(B, C, b, M, x) {
  2007. this.isNewLabel = this.isNew = !0, this.axis = B, this.pos = C, this.type = b || "", this.parameters = x || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, w(this, "init"), b || M || this.addLabel();
  2008. }
  2009. return O.prototype.addLabel = function() {
  2010. var B = this, C = B.axis, b = C.options, M = C.chart, x = C.categories, a = C.logarithmic, c = C.names, p = B.pos, i = P(B.options && B.options.labels, b.labels), l = C.tickPositions, s = p === l[0], t = p === l[l.length - 1], n = (!i.step || i.step === 1) && C.tickInterval === 1;
  2011. l = l.info;
  2012. var o = B.label, A;
  2013. if (x = this.parameters.category || (x ? P(x[p], c[p], p) : p), a && v(x) && (x = $(a.lin2log(x))), C.dateTime)
  2014. if (l)
  2015. var _ = M.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid && l.higherRanks[p] || l.unitName]), D = _.main;
  2016. else
  2017. v(x) && (D = C.dateTime.getXDateFormat(x, b.dateTimeLabelFormats || {}));
  2018. B.isFirst = s, B.isLast = t;
  2019. var j = {
  2020. axis: C,
  2021. chart: M,
  2022. dateTimeLabelFormat: D,
  2023. isFirst: s,
  2024. isLast: t,
  2025. pos: p,
  2026. tick: B,
  2027. tickPositionInfo: l,
  2028. value: x
  2029. };
  2030. w(this, "labelFormat", j);
  2031. var T = function(f) {
  2032. return i.formatter ? i.formatter.call(f, f) : i.format ? (f.text = C.defaultLabelFormatter.call(f), y.format(i.format, f, M)) : C.defaultLabelFormatter.call(f, f);
  2033. };
  2034. b = T.call(j, j);
  2035. var X = _ && _.list;
  2036. B.shortenLabel = X ? function() {
  2037. for (A = 0; A < X.length; A++)
  2038. if (N(j, { dateTimeLabelFormat: X[A] }), o.attr({ text: T.call(j, j) }), o.getBBox().width < C.getSlotWidth(B) - 2 * i.padding)
  2039. return;
  2040. o.attr({ text: "" });
  2041. } : void 0, n && C._addedPlotLB && B.moveLabel(b, i), U(o) || B.movedLabel ? o && o.textStr !== b && !n && (!o.textWidth || i.style.width || o.styles.width || o.css({ width: null }), o.attr({ text: b }), o.textPxLength = o.getBBox().width) : (B.label = o = B.createLabel({ x: 0, y: 0 }, b, i), B.rotation = 0);
  2042. }, O.prototype.createLabel = function(B, C, b) {
  2043. var M = this.axis, x = M.chart;
  2044. return (B = U(C) && b.enabled ? x.renderer.text(C, B.x, B.y, b.useHTML).add(M.labelGroup) : null) && (x.styledMode || B.css(u(b.style)), B.textPxLength = B.getBBox().width), B;
  2045. }, O.prototype.destroy = function() {
  2046. W(
  2047. this,
  2048. this.axis
  2049. );
  2050. }, O.prototype.getPosition = function(B, C, b, M) {
  2051. var x = this.axis, a = x.chart, c = M && a.oldChartHeight || a.chartHeight;
  2052. return B = { x: B ? $(x.translate(C + b, null, null, M) + x.transB) : x.left + x.offset + (x.opposite ? (M && a.oldChartWidth || a.chartWidth) - x.right - x.left : 0), y: B ? c - x.bottom + x.offset - (x.opposite ? x.height : 0) : $(c - x.translate(C + b, null, null, M) - x.transB) }, B.y = H(B.y, -1e5, 1e5), w(this, "afterGetPosition", { pos: B }), B;
  2053. }, O.prototype.getLabelPosition = function(B, C, b, M, x, a, c, p) {
  2054. var i = this.axis, l = i.transA, s = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, n = i.tickRotCorr || { x: 0, y: 0 }, o = M || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), A = {}, _ = x.y;
  2055. return U(_) || (_ = i.side === 0 ? b.rotation ? -8 : -b.getBBox().height : i.side === 2 ? n.y + 8 : Math.cos(b.rotation * Z) * (n.y - b.getBBox(!1, 0).height / 2)), B = B + x.x + o + n.x - (a && M ? a * l * (s ? -1 : 1) : 0), C = C + _ - (a && !M ? 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 = B, A.y = Math.round(C), w(this, "afterGetLabelPosition", { pos: A, tickmarkOffset: a, index: c }), A;
  2056. }, O.prototype.getLabelSize = function() {
  2057. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  2058. }, O.prototype.getMarkPath = function(B, C, b, M, x, a) {
  2059. return a.crispLine([["M", B, C], ["L", B + (x ? 0 : -b), C + (x ? b : 0)]], M);
  2060. }, O.prototype.handleOverflow = function(B) {
  2061. var C = this.axis, b = C.options.labels, M = B.x, x = C.chart.chartWidth, a = C.chart.spacing, c = P(C.labelLeft, Math.min(C.pos, a[3]));
  2062. a = P(C.labelRight, Math.max(C.isRadial ? 0 : C.pos + C.len, x - a[1]));
  2063. 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), n = {}, o = t, A = 1, _;
  2064. i || b.overflow !== "justify" ? 0 > i && M - l * s < c ? _ = Math.round(M / Math.cos(i * Z) - c) : 0 < i && M + l * s > a && (_ = Math.round((x - M) / Math.cos(i * Z))) : (x = M + (1 - l) * s, M - l * s < c ? o = B.x + o * (1 - l) - c : x > a && (o = a - B.x + o * l, A = -1), o = Math.min(t, o), o < t && C.labelAlign === "center" && (B.x += A * (t - o - l * (t - Math.min(s, o)))), (s > o || C.autoRotation && (p.styles || {}).width) && (_ = o)), _ && (this.shortenLabel ? this.shortenLabel() : (n.width = Math.floor(_) + "px", (b.style || {}).textOverflow || (n.textOverflow = "ellipsis"), p.css(n)));
  2065. }, O.prototype.moveLabel = function(B, C) {
  2066. var b = this, M = b.label, x = b.axis, a = x.reversed, c = !1;
  2067. if (M && M.textStr === B ? (b.movedLabel = M, c = !0, delete b.label) : d(x.ticks, function(i) {
  2068. c || i.isNew || i === b || !i.label || i.label.textStr !== B || (b.movedLabel = i.label, c = !0, i.labelPos = b.movedLabel.xy, delete i.label);
  2069. }), !c && (b.labelPos || M)) {
  2070. var p = b.labelPos || M.xy;
  2071. M = 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: M, y: x }, B, C), b.movedLabel && b.movedLabel.attr({ opacity: 0 });
  2072. }
  2073. }, O.prototype.render = function(B, C, b) {
  2074. var M = this.axis, x = M.horiz, a = this.pos, c = P(this.tickmarkOffset, M.tickmarkOffset);
  2075. a = this.getPosition(x, a, c, C), c = a.x;
  2076. var p = a.y;
  2077. M = x && c === M.pos + M.len || !x && p === M.pos ? -1 : 1, x = P(b, this.label && this.label.newOpacity, 1), b = P(b, 1), this.isActive = !0, this.renderGridLine(C, b, M), this.renderMark(a, b, M), this.renderLabel(a, C, x, B), this.isNew = !1, w(this, "afterRender");
  2078. }, O.prototype.renderGridLine = function(B, C, b) {
  2079. var M = this.axis, x = M.options, a = {}, c = this.pos, p = this.type, i = P(
  2080. this.tickmarkOffset,
  2081. M.tickmarkOffset
  2082. ), l = M.chart.renderer, s = this.gridLine, t = x.gridLineWidth, n = x.gridLineColor, o = x.gridLineDashStyle;
  2083. this.type === "minor" && (t = x.minorGridLineWidth, n = x.minorGridLineColor, o = x.minorGridLineDashStyle), s || (M.chart.styledMode || (a.stroke = n, a["stroke-width"] = t || 0, a.dashstyle = o), p || (a.zIndex = 1), B && (C = 0), this.gridLine = s = l.path().attr(a).addClass("highcharts-" + (p ? p + "-" : "") + "grid-line").add(M.gridGroup)), s && (b = M.getPlotLinePath({ value: c + i, lineWidth: s.strokeWidth() * b, force: "pass", old: B })) && s[B || this.isNew ? "attr" : "animate"]({ d: b, opacity: C });
  2084. }, O.prototype.renderMark = function(B, C, b) {
  2085. var M = this.axis, x = M.options, a = M.chart.renderer, c = this.type, p = M.tickSize(c ? c + "Tick" : "tick"), i = B.x;
  2086. B = B.y;
  2087. var l = P(x[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && M.isXAxis ? 1 : 0);
  2088. x = x[c !== "minor" ? "tickColor" : "minorTickColor"];
  2089. var s = this.mark, t = !s;
  2090. p && (M.opposite && (p[0] = -p[0]), s || (this.mark = s = a.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(M.axisGroup), M.chart.styledMode || s.attr({ stroke: x, "stroke-width": l })), s[t ? "attr" : "animate"]({ d: this.getMarkPath(
  2091. i,
  2092. B,
  2093. p[0],
  2094. s.strokeWidth() * b,
  2095. M.horiz,
  2096. a
  2097. ), opacity: C }));
  2098. }, O.prototype.renderLabel = function(B, C, b, M) {
  2099. var x = this.axis, a = x.horiz, c = x.options, p = this.label, i = c.labels, l = i.step;
  2100. x = P(this.tickmarkOffset, x.tickmarkOffset);
  2101. var s = B.x;
  2102. B = B.y;
  2103. var t = !0;
  2104. p && v(s) && (p.xy = B = this.getLabelPosition(s, B, p, a, i, x, M, 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(B), l && M % l && (t = !1), t && v(B.y) ? (B.opacity = b, p[this.isNewLabel ? "attr" : "animate"](B), this.isNewLabel = !1) : (p.attr("y", -9999), this.isNewLabel = !0));
  2105. }, O.prototype.replaceMovedLabel = function() {
  2106. var B = this.label, C = this.axis, b = C.reversed;
  2107. if (B && !this.isNew) {
  2108. var M = C.horiz ? b ? C.left : C.width + C.left : B.xy.x;
  2109. b = C.horiz ? B.xy.y : b ? C.width + C.top : C.top, B.animate({ x: M, y: b, opacity: 0 }, void 0, B.destroy), delete this.label;
  2110. }
  2111. C.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  2112. }, O;
  2113. }(), R;
  2114. }
  2115. ), E(h, "Core/Axis/Axis.js", [
  2116. h["Core/Animation/AnimationUtilities.js"],
  2117. h["Core/Axis/AxisDefaults.js"],
  2118. h["Core/Color/Color.js"],
  2119. h["Core/DefaultOptions.js"],
  2120. h["Core/Foundation.js"],
  2121. h["Core/Globals.js"],
  2122. h["Core/Axis/Tick.js"],
  2123. h["Core/Utilities.js"]
  2124. ], function(y, R, I, Z, H, $, U, W) {
  2125. var N = y.animObject, w = Z.defaultOptions, v = H.registerEventOptions, u = $.deg2rad, d = W.arrayMax, P = W.arrayMin, O = W.clamp, B = W.correctFloat, C = W.defined, b = W.destroyObjectProperties, M = 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, n = W.normalizeTickInterval, o = W.objectEach, A = W.pick, _ = W.relativeLength, D = W.removeEvent, j = W.splat, T = W.syncTimeout;
  2126. return y = function() {
  2127. function X(f, m) {
  2128. 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(f, m);
  2129. }
  2130. return X.prototype.init = function(f, m) {
  2131. var L = m.isX;
  2132. this.chart = f, this.horiz = f.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);
  2133. var Y = this.options, F = Y.labels, Q = Y.type;
  2134. 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, j(f.options.tooltip.crosshairs)[L ? 0 : 1]), this.crosshair = m === !0 ? {} : m, f.axes.indexOf(this) === -1 && (L ? f.axes.splice(f.xAxis.length, 0, this) : f.axes.push(this), f[this.coll].push(this)), this.series = this.series || [], f.inverted && !this.isZAxis && L && typeof this.reversed > "u" && (this.reversed = !0), this.labelRotation = l(F.rotation) ? F.rotation : void 0, v(this, Y), c(this, "afterInit");
  2135. }, X.prototype.setOptions = function(f) {
  2136. this.options = t(R.defaultXAxisOptions, this.coll === "yAxis" && R.defaultYAxisOptions, [R.defaultTopAxisOptions, R.defaultRightAxisOptions, R.defaultBottomAxisOptions, R.defaultLeftAxisOptions][this.side], t(w[this.coll], f)), c(this, "afterSetOptions", { userOptions: f });
  2137. }, X.prototype.defaultLabelFormatter = function(f) {
  2138. var m = this.axis;
  2139. f = this.chart.numberFormatter;
  2140. var L = l(this.value) ? this.value : NaN, Y = m.chart.time, F = this.dateTimeLabelFormat, Q = w.lang, k = Q.numericSymbols;
  2141. Q = Q.numericSymbolMagnitude || 1e3;
  2142. var G = m.logarithmic ? Math.abs(L) : m.tickInterval, z = k && k.length;
  2143. if (m.categories)
  2144. var V = "" + this.value;
  2145. else if (F)
  2146. V = Y.dateFormat(F, L);
  2147. else if (z && 1e3 <= G)
  2148. for (; z-- && typeof V > "u"; )
  2149. m = Math.pow(Q, z + 1), G >= m && 10 * L % m === 0 && k[z] !== null && L !== 0 && (V = f(L / m, -1) + k[z]);
  2150. return typeof V > "u" && (V = 1e4 <= Math.abs(L) ? f(L, -1) : f(L, -1, void 0, "")), V;
  2151. }, X.prototype.getSeriesExtremes = function() {
  2152. var f = this, m = f.chart, L;
  2153. c(this, "getSeriesExtremes", null, function() {
  2154. f.hasVisibleSeries = !1, f.dataMin = f.dataMax = f.threshold = null, f.softThreshold = !f.isXAxis, f.stacking && f.stacking.buildStacks(), f.series.forEach(function(Y) {
  2155. if (Y.visible || !m.options.chart.ignoreHiddenSeries) {
  2156. var F = Y.options, Q = F.threshold;
  2157. if (f.hasVisibleSeries = !0, f.positiveValuesOnly && 0 >= Q && (Q = null), f.isXAxis) {
  2158. if (F = Y.xData, F.length) {
  2159. F = f.logarithmic ? F.filter(f.validatePositiveValue) : F, L = Y.getXExtremes(F);
  2160. var k = L.min, G = L.max;
  2161. l(k) || k instanceof Date || (F = F.filter(l), L = Y.getXExtremes(F), k = L.min, G = L.max), F.length && (f.dataMin = Math.min(A(f.dataMin, k), k), f.dataMax = Math.max(A(f.dataMax, G), G));
  2162. }
  2163. } else
  2164. Y = Y.applyExtremes(), l(Y.dataMin) && (k = Y.dataMin, f.dataMin = Math.min(A(f.dataMin, k), k)), l(Y.dataMax) && (G = Y.dataMax, f.dataMax = Math.max(A(f.dataMax, G), G)), C(Q) && (f.threshold = Q), (!F.softThreshold || f.positiveValuesOnly) && (f.softThreshold = !1);
  2165. }
  2166. });
  2167. }), c(this, "afterGetSeriesExtremes");
  2168. }, X.prototype.translate = function(f, m, L, Y, F, Q) {
  2169. var k = this.linkedParent || this, G = Y && k.old ? k.old.min : k.min, z = k.minPixelPadding;
  2170. F = (k.isOrdinal || k.brokenAxis && k.brokenAxis.hasBreaks || k.logarithmic && F) && k.lin2val;
  2171. var V = 1, q = 0;
  2172. return Y = Y && k.old ? k.old.transA : k.transA, Y || (Y = k.transA), L && (V *= -1, q = k.len), k.reversed && (V *= -1, q -= V * (k.sector || k.len)), m ? (f = (f * V + q - z) / Y + G, F && (f = k.lin2val(f))) : (F && (f = k.val2lin(f)), f = l(G) ? V * (f - G) * Y + q + V * z + (l(Q) ? Y * Q : 0) : void 0), f;
  2173. }, X.prototype.toPixels = function(f, m) {
  2174. return this.translate(
  2175. f,
  2176. !1,
  2177. !this.horiz,
  2178. null,
  2179. !0
  2180. ) + (m ? 0 : this.pos);
  2181. }, X.prototype.toValue = function(f, m) {
  2182. return this.translate(f - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  2183. }, X.prototype.getPlotLinePath = function(f) {
  2184. function m(at, J, tt) {
  2185. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : lt = !0), at;
  2186. }
  2187. var L = this, Y = L.chart, F = L.left, Q = L.top, k = f.old, G = f.value, z = f.lineWidth, V = k && Y.oldChartHeight || Y.chartHeight, q = k && Y.oldChartWidth || Y.chartWidth, it = L.transB, et = f.translatedValue, nt = f.force, rt, ct, gt, dt, lt;
  2188. return f = {
  2189. value: G,
  2190. lineWidth: z,
  2191. old: k,
  2192. force: nt,
  2193. acrossPanes: f.acrossPanes,
  2194. translatedValue: et
  2195. }, c(this, "getPlotLinePath", f, function(at) {
  2196. et = A(et, L.translate(G, null, null, k)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round(V - et - it), l(et) ? L.horiz ? (ct = Q, dt = V - L.bottom, rt = gt = m(rt, F, F + L.width)) : (rt = F, 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);
  2197. }), f.path;
  2198. }, X.prototype.getLinearTickPositions = function(f, m, L) {
  2199. var Y = B(Math.floor(m / f) * f);
  2200. L = B(Math.ceil(L / f) * f);
  2201. var F = [], Q;
  2202. if (B(Y + f) === Y && (Q = 20), this.single)
  2203. return [m];
  2204. for (m = Y; m <= L && (F.push(m), m = B(m + f, Q), m !== k); )
  2205. var k = m;
  2206. return F;
  2207. }, X.prototype.getMinorTickInterval = function() {
  2208. var f = this.options;
  2209. return f.minorTicks === !0 ? A(f.minorTickInterval, "auto") : f.minorTicks === !1 ? null : f.minorTickInterval;
  2210. }, X.prototype.getMinorTickPositions = function() {
  2211. var f = this.options, m = this.tickPositions, L = this.minorTickInterval, Y = this.pointRangePadding || 0, F = this.min - Y;
  2212. Y = this.max + Y;
  2213. var Q = Y - F, k = [];
  2214. if (Q && Q / L < this.len / 3) {
  2215. var G = this.logarithmic;
  2216. if (G)
  2217. this.paddedTicks.forEach(function(z, V, q) {
  2218. V && k.push.apply(
  2219. k,
  2220. G.getLogTickPositions(L, q[V - 1], q[V], !0)
  2221. );
  2222. });
  2223. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  2224. k = k.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), F, Y, f.startOfWeek));
  2225. else
  2226. for (f = F + (m[0] - F) % L; f <= Y && f !== k[0]; f += L)
  2227. k.push(f);
  2228. }
  2229. return k.length !== 0 && this.trimTicks(k), k;
  2230. }, X.prototype.adjustForMinRange = function() {
  2231. var f = this.options, m = this.logarithmic, L = this.min, Y = this.max, F = 0, Q, k, G, z;
  2232. if (this.isXAxis && typeof this.minRange > "u" && !m && (C(f.min) || C(f.max) || C(f.floor) || C(f.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  2233. if (G = et.xData, z = et.xIncrement ? 1 : G.length - 1, 1 < G.length)
  2234. for (Q = z; 0 < Q; Q--)
  2235. k = G[Q] - G[Q - 1], (!F || k < F) && (F = k);
  2236. }), this.minRange = Math.min(5 * F, this.dataMax - this.dataMin))), Y - L < this.minRange) {
  2237. var V = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - Y + L) / 2;
  2238. it = [L - it, A(f.min, L - it)], V && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = d(it), Y = [L + q, A(f.max, L + q)], V && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = P(Y), Y - L < q && (it[0] = Y - q, it[1] = A(f.min, Y - q), L = d(it));
  2239. }
  2240. this.min = L, this.max = Y;
  2241. }, X.prototype.getClosest = function() {
  2242. var f;
  2243. return this.categories ? f = 1 : this.series.forEach(function(m) {
  2244. var L = m.closestPointRange, Y = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  2245. !m.noSharedTooltip && C(L) && Y && (f = C(f) ? Math.min(f, L) : L);
  2246. }), f;
  2247. }, X.prototype.nameToX = function(f) {
  2248. var m = i(this.categories), L = m ? this.categories : this.names, Y = f.options.x;
  2249. if (f.series.requireSorting = !1, C(Y) || (Y = this.options.uniqueNames ? m ? L.indexOf(f.name) : A(L.keys[f.name], -1) : f.series.autoIncrement()), Y === -1) {
  2250. if (!m)
  2251. var F = L.length;
  2252. } else
  2253. F = Y;
  2254. return typeof F < "u" && (this.names[F] = f.name, this.names.keys[f.name] = F), F;
  2255. }, X.prototype.updateNames = function() {
  2256. var f = this, m = this.names;
  2257. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  2258. delete m.keys[L];
  2259. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  2260. L.xIncrement = null, (!L.points || L.isDirtyData) && (f.max = Math.max(f.max, L.xData.length - 1), L.processData(), L.generatePoints()), L.data.forEach(function(Y, F) {
  2261. if (Y && Y.options && typeof Y.name < "u") {
  2262. var Q = f.nameToX(Y);
  2263. typeof Q < "u" && Q !== Y.x && (Y.x = Q, L.xData[F] = Q);
  2264. }
  2265. });
  2266. }));
  2267. }, X.prototype.setAxisTranslation = function() {
  2268. var f = this, m = f.max - f.min, L = f.linkedParent, Y = !!f.categories, F = f.isXAxis, Q = f.axisPointRange || 0, k = 0, G = 0, z = f.transA;
  2269. if (F || Y || Q) {
  2270. var V = f.getClosest();
  2271. L ? (k = L.minPointOffset, G = L.pointRangePadding) : f.series.forEach(function(q) {
  2272. var it = Y ? 1 : F ? A(q.options.pointRange, V, 0) : f.axisPointRange || 0, et = q.options.pointPlacement;
  2273. Q = Math.max(Q, it), (!f.single || Y) && (q = q.is("xrange") ? !F : F, k = Math.max(k, q && s(et) ? 0 : it / 2), G = Math.max(G, q && et === "on" ? 0 : it));
  2274. }), L = f.ordinal && f.ordinal.slope && V ? f.ordinal.slope / V : 1, f.minPointOffset = k *= L, f.pointRangePadding = G *= L, f.pointRange = Math.min(Q, f.single && Y ? 1 : m), F && (f.closestPointRange = V);
  2275. }
  2276. f.translationSlope = f.transA = z = f.staticScale || f.len / (m + G || 1), f.transB = f.horiz ? f.left : f.bottom, f.minPixelPadding = z * k, c(this, "afterSetAxisTranslation");
  2277. }, X.prototype.minFromRange = function() {
  2278. return this.max - this.range;
  2279. }, X.prototype.setTickInterval = function(f) {
  2280. var m = this.chart, L = this.logarithmic, Y = this.options, F = this.isXAxis, Q = this.isLinked, k = Y.tickPixelInterval, G = this.categories, z = this.softThreshold, V = Y.maxPadding, q = Y.minPadding, it = l(Y.tickInterval) && 0 <= Y.tickInterval ? Y.tickInterval : void 0, et = l(this.threshold) ? this.threshold : null;
  2281. this.dateTime || G || Q || this.getTickAmount();
  2282. var nt = A(this.userMin, Y.min), rt = A(this.userMax, Y.max);
  2283. if (Q) {
  2284. this.linkedParent = m[this.coll][Y.linkedTo];
  2285. var ct = this.linkedParent.getExtremes();
  2286. this.min = A(ct.min, ct.dataMin), this.max = A(ct.max, ct.dataMax), Y.type !== this.linkedParent.options.type && x(11, 1, m);
  2287. } else {
  2288. if (z && C(et)) {
  2289. if (this.dataMin >= et)
  2290. ct = et, q = 0;
  2291. else if (this.dataMax <= et) {
  2292. var gt = et;
  2293. V = 0;
  2294. }
  2295. }
  2296. this.min = A(nt, ct, this.dataMin), this.max = A(rt, gt, this.dataMax);
  2297. }
  2298. if (L && (this.positiveValuesOnly && !f && 0 >= Math.min(this.min, A(this.dataMin, this.min)) && x(10, 1, m), this.min = B(L.log2lin(this.min), 16), this.max = B(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) && V && (this.max += m * V)), 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)), F && !f) {
  2299. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  2300. this.series.forEach(function(lt) {
  2301. lt.forceCrop = lt.forceCropping && lt.forceCropping(), lt.processData(dt);
  2302. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  2303. }
  2304. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), f = A(Y.minTickInterval, this.dateTime && !this.series.some(function(lt) {
  2305. return lt.noSharedTooltip;
  2306. }) ? this.closestPointRange : 0), !it && this.tickInterval < f && (this.tickInterval = f), this.dateTime || this.logarithmic || it || (this.tickInterval = n(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();
  2307. }, X.prototype.setTickPositions = function() {
  2308. var f = this.options, m = f.tickPositions, L = this.getMinorTickInterval(), Y = this.hasVerticalPanning(), F = this.coll === "colorAxis", Q = (F || !Y) && f.startOnTick;
  2309. Y = (F || !Y) && f.endOnTick, F = f.tickPositioner, this.tickmarkOffset = this.categories && f.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 || f.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, f.units), this.min, this.max, f.startOfWeek, this.ordinal && this.ordinal.positions, this.closestPointRange, !0) : this.logarithmic ? this.logarithmic.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(
  2310. this.tickInterval,
  2311. this.min,
  2312. this.max
  2313. ) : (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, F && (F = F.apply(this, [this.min, this.max]))) && (this.tickPositions = L = F), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, Y), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(k) {
  2314. return k.is("heatmap") && k.options.pointPlacement === "between";
  2315. }) && (this.min -= 0.5, this.max += 0.5), m || F || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  2316. }, X.prototype.trimTicks = function(f, m, L) {
  2317. var Y = f[0], F = f[f.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  2318. if (c(this, "trimTicks"), !this.isLinked) {
  2319. if (m && Y !== -1 / 0)
  2320. this.min = Y;
  2321. else
  2322. for (; this.min - Q > f[0]; )
  2323. f.shift();
  2324. if (L)
  2325. this.max = F;
  2326. else
  2327. for (; this.max + Q < f[f.length - 1]; )
  2328. f.pop();
  2329. f.length === 0 && C(Y) && !this.options.tickPositions && f.push((F + Y) / 2);
  2330. }
  2331. }, X.prototype.alignToOthers = function() {
  2332. var f = {}, m = this.options, L;
  2333. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(Y) {
  2334. var F = Y.options;
  2335. F = [Y.horiz ? F.left : F.top, F.width, F.height, F.pane].join(), Y.series.length && (f[F] ? L = !0 : f[F] = 1);
  2336. }), L;
  2337. }, X.prototype.getTickAmount = function() {
  2338. var f = this.options, m = f.tickPixelInterval, L = f.tickAmount;
  2339. !C(f.tickInterval) && !L && this.len < m && !this.isRadial && !this.logarithmic && f.startOnTick && f.endOnTick && (L = 2), !L && this.alignToOthers() && (L = Math.ceil(this.len / m) + 1), 4 > L && (this.finalTickAmt = L, L = 5), this.tickAmount = L;
  2340. }, X.prototype.adjustTickAmount = function() {
  2341. var f = this.options, m = this.tickInterval, L = this.tickPositions, Y = this.tickAmount, F = this.finalTickAmt, Q = L && L.length, k = A(this.threshold, this.softThreshold ? 0 : null);
  2342. if (this.hasData() && l(this.min) && l(this.max)) {
  2343. if (Q < Y) {
  2344. for (; L.length < Y; )
  2345. L.length % 2 || this.min === k ? L.push(B(L[L.length - 1] + m)) : L.unshift(B(L[0] - m));
  2346. this.transA *= (Q - 1) / (Y - 1), this.min = f.startOnTick ? L[0] : Math.min(this.min, L[0]), this.max = f.endOnTick ? L[L.length - 1] : Math.max(this.max, L[L.length - 1]);
  2347. } else
  2348. Q > Y && (this.tickInterval *= 2, this.setTickPositions());
  2349. if (C(F)) {
  2350. for (m = f = L.length; m--; )
  2351. (F === 3 && m % 2 === 1 || 2 >= F && 0 < m && m < f - 1) && L.splice(m, 1);
  2352. this.finalTickAmt = void 0;
  2353. }
  2354. }
  2355. }, X.prototype.setScale = function() {
  2356. var f = !1, m = !1;
  2357. this.series.forEach(function(Y) {
  2358. f = f || Y.isDirtyData || Y.isDirty, m = m || Y.xAxis && Y.xAxis.isDirty || !1;
  2359. }), this.setAxisSize();
  2360. var L = this.len !== (this.old && this.old.len);
  2361. L || f || 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(), f && this.panningState && (this.panningState.isDirty = !0), c(this, "afterSetScale");
  2362. }, X.prototype.setExtremes = function(f, m, L, Y, F) {
  2363. var Q = this, k = Q.chart;
  2364. L = A(L, !0), Q.series.forEach(function(G) {
  2365. delete G.kdTree;
  2366. }), F = a(F, { min: f, max: m }), c(Q, "setExtremes", F, function() {
  2367. Q.userMin = f, Q.userMax = m, Q.eventArgs = F, L && k.redraw(Y);
  2368. });
  2369. }, X.prototype.zoom = function(f, m) {
  2370. var L = this, Y = this.dataMin, F = this.dataMax, Q = this.options, k = Math.min(Y, A(Q.min, Y)), G = Math.max(F, A(Q.max, F));
  2371. return f = { newMin: f, newMax: m }, c(this, "zoom", f, function(z) {
  2372. var V = z.newMin, q = z.newMax;
  2373. (V !== L.min || q !== L.max) && (L.allowZoomOutside || (C(Y) && (V < k && (V = k), V > G && (V = G)), C(F) && (q < k && (q = k), q > G && (q = G))), L.displayBtn = typeof V < "u" || typeof q < "u", L.setExtremes(V, q, !1, void 0, { trigger: "zoom" })), z.zoomed = !0;
  2374. }), f.zoomed;
  2375. }, X.prototype.setAxisSize = function() {
  2376. var f = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], Y = this.horiz, F = this.width = Math.round(_(A(m.width, f.plotWidth - L[3] + L[1]), f.plotWidth)), Q = this.height = Math.round(_(A(m.height, f.plotHeight - L[0] + L[2]), f.plotHeight)), k = this.top = Math.round(_(A(m.top, f.plotTop + L[0]), f.plotHeight, f.plotTop));
  2377. m = this.left = Math.round(_(A(m.left, f.plotLeft + L[3]), f.plotWidth, f.plotLeft)), this.bottom = f.chartHeight - Q - k, this.right = f.chartWidth - F - m, this.len = Math.max(Y ? F : Q, 0), this.pos = Y ? m : k;
  2378. }, X.prototype.getExtremes = function() {
  2379. var f = this.logarithmic;
  2380. return { min: f ? B(f.lin2log(this.min)) : this.min, max: f ? B(f.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  2381. }, X.prototype.getThreshold = function(f) {
  2382. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  2383. return m = m ? m.lin2log(this.max) : this.max, f === null || f === -1 / 0 ? f = L : f === 1 / 0 ? f = m : L > f ? f = L : m < f && (f = m), this.translate(f, 0, 1, 0, 1);
  2384. }, X.prototype.autoLabelAlign = function(f) {
  2385. var m = (A(f, 0) - 90 * this.side + 720) % 360;
  2386. return f = { align: "center" }, c(
  2387. this,
  2388. "autoLabelAlign",
  2389. f,
  2390. function(L) {
  2391. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  2392. }
  2393. ), f.align;
  2394. }, X.prototype.tickSize = function(f) {
  2395. var m = this.options, L = A(m[f === "tick" ? "tickWidth" : "minorTickWidth"], f === "tick" && this.isXAxis && !this.categories ? 1 : 0), Y = m[f === "tick" ? "tickLength" : "minorTickLength"];
  2396. if (L && Y) {
  2397. m[f + "Position"] === "inside" && (Y = -Y);
  2398. var F = [Y, L];
  2399. }
  2400. return f = { tickSize: F }, c(this, "afterTickSize", f), f.tickSize;
  2401. }, X.prototype.labelMetrics = function() {
  2402. var f = this.tickPositions && this.tickPositions[0] || 0;
  2403. return this.chart.renderer.fontMetrics(
  2404. this.options.labels.style.fontSize,
  2405. this.ticks[f] && this.ticks[f].label
  2406. );
  2407. }, X.prototype.unsquish = function() {
  2408. var f = this.options.labels, m = this.horiz, L = this.tickInterval, Y = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), F = f.rotation, Q = this.labelMetrics(), k = Math.max(this.max - this.min, 0), G = function(nt) {
  2409. var rt = nt / (Y || 1);
  2410. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > k && nt !== 1 / 0 && Y !== 1 / 0 && k && (rt = Math.ceil(k / L)), B(rt * L);
  2411. }, z = L, V, q, it = Number.MAX_VALUE;
  2412. if (m) {
  2413. if (!f.staggerLines && !f.step)
  2414. if (l(F))
  2415. var et = [F];
  2416. else
  2417. Y < f.autoRotationLimit && (et = f.autoRotation);
  2418. et && et.forEach(function(nt) {
  2419. if (nt === F || nt && -90 <= nt && 90 >= nt) {
  2420. q = G(Math.abs(Q.h / Math.sin(u * nt)));
  2421. var rt = q + Math.abs(nt / 360);
  2422. rt < it && (it = rt, V = nt, z = q);
  2423. }
  2424. });
  2425. } else
  2426. f.step || (z = G(Q.h));
  2427. return this.autoRotation = et, this.labelRotation = A(V, l(F) ? F : 0), z;
  2428. }, X.prototype.getSlotWidth = function(f) {
  2429. var m = this.chart, L = this.horiz, Y = this.options.labels, F = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  2430. if (f && l(f.slotWidth))
  2431. return f.slotWidth;
  2432. if (L && 2 > Y.step)
  2433. return Y.rotation ? 0 : (this.staggerLines || 1) * this.len / F;
  2434. if (!L) {
  2435. if (f = Y.style.width, f !== void 0)
  2436. return parseInt(String(f), 10);
  2437. if (Q)
  2438. return Q - m.spacing[3];
  2439. }
  2440. return 0.33 * m.chartWidth;
  2441. }, X.prototype.renderUnsquish = function() {
  2442. var f = this.chart, m = f.renderer, L = this.tickPositions, Y = this.ticks, F = this.options.labels, Q = F.style, k = this.horiz, G = this.getSlotWidth(), z = Math.max(1, Math.round(G - 2 * F.padding)), V = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  2443. if (s(F.rotation) || (V.rotation = F.rotation || 0), L.forEach(function(gt) {
  2444. gt = Y[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  2445. }), this.maxLabelLength = et, this.autoRotation)
  2446. et > z && et > q.h ? V.rotation = this.labelRotation : this.labelRotation = 0;
  2447. else if (G) {
  2448. var nt = z;
  2449. if (!it) {
  2450. var rt = "clip";
  2451. for (z = L.length; !k && z--; ) {
  2452. var ct = L[z];
  2453. (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"));
  2454. }
  2455. }
  2456. }
  2457. V.rotation && (nt = et > 0.5 * f.chartHeight ? 0.33 * f.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = F.align || this.autoLabelAlign(this.labelRotation)) && (V.align = this.labelAlign), L.forEach(function(gt) {
  2458. var dt = (gt = Y[gt]) && gt.label, lt = Q.width, at = {};
  2459. dt && (dt.attr(V), 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 = V.rotation);
  2460. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  2461. }, X.prototype.hasData = function() {
  2462. return this.series.some(function(f) {
  2463. return f.hasData();
  2464. }) || this.options.showEmpty && C(this.min) && C(this.max);
  2465. }, X.prototype.addTitle = function(f) {
  2466. var m = this.chart.renderer, L = this.horiz, Y = this.opposite, F = this.options.title, Q = this.chart.styledMode, k;
  2467. this.axisTitle || ((k = F.textAlign) || (k = (L ? { low: "left", middle: "center", high: "right" } : { low: Y ? "right" : "left", middle: "center", high: Y ? "left" : "right" })[F.align]), this.axisTitle = m.text(F.text || "", 0, 0, F.useHTML).attr({ zIndex: 7, rotation: F.rotation, align: k }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t(F.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || F.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[f ? "show" : "hide"](f);
  2468. }, X.prototype.generateTick = function(f) {
  2469. var m = this.ticks;
  2470. m[f] ? m[f].addLabel() : m[f] = new U(this, f);
  2471. }, X.prototype.getOffset = function() {
  2472. var f = this, m = this, L = m.chart, Y = m.horiz, F = m.options, Q = m.side, k = m.ticks, G = m.tickPositions, z = m.coll, V = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = F.title, rt = F.labels, ct = L.axisOffset;
  2473. L = L.clipOffset;
  2474. var gt = [
  2475. -1,
  2476. 1,
  2477. 1,
  2478. -1
  2479. ][Q], dt = F.className, lt, at = 0, J = 0, tt = 0;
  2480. if (m.showAxis = lt = et || F.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  2481. var st = function(pt, yt, vt) {
  2482. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + z.toLowerCase() + yt + " " + (f.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add(V);
  2483. };
  2484. m.gridGroup = st("grid", "-grid", F.gridZIndex), m.axisGroup = st("axis", "", F.zIndex), m.labelGroup = st("axis-labels", "-labels", rt.zIndex);
  2485. }
  2486. if (et || m.isLinked ? (G.forEach(function(pt) {
  2487. m.generateTick(pt);
  2488. }), 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) {
  2489. tt = Math.max(k[pt].getLabelSize(), tt);
  2490. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : o(k, function(pt, yt) {
  2491. pt.destroy(), delete k[yt];
  2492. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(lt), lt && nt.reserveSpace !== !1)) {
  2493. m.titleOffset = at = m.axisTitle.getBBox()[Y ? "height" : "width"];
  2494. var ht = nt.offset;
  2495. J = C(ht) ? 0 : A(nt.margin, Y ? 5 : 10);
  2496. }
  2497. m.renderLine(), m.offset = gt * A(
  2498. F.offset,
  2499. ct[Q] ? ct[Q] + (F.margin || 0) : 0
  2500. ), 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), F = !m.axisLine || F.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(
  2501. L[it],
  2502. F
  2503. )), c(this, "afterGetOffset");
  2504. }, X.prototype.getLinePath = function(f) {
  2505. var m = this.chart, L = this.opposite, Y = this.offset, F = this.horiz, Q = this.left + (L ? this.width : 0) + Y;
  2506. return Y = m.chartHeight - this.bottom - (L ? this.height : 0) + Y, L && (f *= -1), m.renderer.crispLine([["M", F ? this.left : Q, F ? Y : this.top], ["L", F ? m.chartWidth - this.right : Q, F ? Y : m.chartHeight - this.bottom]], f);
  2507. }, X.prototype.renderLine = function() {
  2508. 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 }));
  2509. }, X.prototype.getTitlePosition = function() {
  2510. var f = this.horiz, m = this.left, L = this.top, Y = this.len, F = this.options.title, Q = f ? m : L, k = this.opposite, G = this.offset, z = F.x, V = F.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics(F.style.fontSize, q);
  2511. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), Y = { low: Q + (f ? 0 : Y), middle: Q + Y / 2, high: Q + (f ? Y : 0) }[F.align], m = (f ? L + this.height : m) + (f ? 1 : -1) * (k ? -1 : 1) * this.axisTitleMargin + [
  2512. -q,
  2513. q,
  2514. it.f,
  2515. -q
  2516. ][this.side], f = { x: f ? Y + z : m + (k ? this.width : 0) + G + z, y: f ? m + V - (k ? this.height : 0) + G : Y + V }, c(this, "afterGetTitlePosition", { titlePosition: f }), f;
  2517. }, X.prototype.renderMinorTick = function(f, m) {
  2518. var L = this.minorTicks;
  2519. L[f] || (L[f] = new U(this, f, "minor")), m && L[f].isNew && L[f].render(null, !0), L[f].render(null, !1, 1);
  2520. }, X.prototype.renderTick = function(f, m, L) {
  2521. var Y = this.ticks;
  2522. (!this.isLinked || f >= this.min && f <= this.max || this.grid && this.grid.isColumn) && (Y[f] || (Y[f] = new U(this, f)), L && Y[f].isNew && Y[f].render(m, !0, -1), Y[f].render(m));
  2523. }, X.prototype.render = function() {
  2524. var f = this, m = f.chart, L = f.logarithmic, Y = f.options, F = f.isLinked, Q = f.tickPositions, k = f.axisTitle, G = f.ticks, z = f.minorTicks, V = f.alternateBands, q = Y.stackLabels, it = Y.alternateGridColor, et = f.tickmarkOffset, nt = f.axisLine, rt = f.showAxis, ct = N(m.renderer.globalAnimation), gt, dt;
  2525. if (f.labelEdge.length = 0, f.overlap = !1, [G, z, V].forEach(function(at) {
  2526. o(at, function(J) {
  2527. J.isActive = !1;
  2528. });
  2529. }), f.hasData() || F) {
  2530. var lt = f.chart.hasRendered && f.old && l(f.old.min);
  2531. f.minorTickInterval && !f.categories && f.getMinorTickPositions().forEach(function(at) {
  2532. f.renderMinorTick(
  2533. at,
  2534. lt
  2535. );
  2536. }), Q.length && (Q.forEach(function(at, J) {
  2537. f.renderTick(at, J, lt);
  2538. }), et && (f.min === 0 || f.single) && (G[-1] || (G[-1] = new U(f, -1, null, !0)), G[-1].render(-1))), it && Q.forEach(function(at, J) {
  2539. dt = typeof Q[J + 1] < "u" ? Q[J + 1] + et : f.max - et, J % 2 === 0 && at < f.max && dt <= f.max + (m.polar ? -et : et) && (V[at] || (V[at] = new $.PlotLineOrBand(f)), gt = at + et, V[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, V[at].render(), V[at].isActive = !0);
  2540. }), f._addedPlotLB || (f._addedPlotLB = !0, (Y.plotLines || []).concat(Y.plotBands || []).forEach(function(at) {
  2541. f.addPlotBandOrLine(at);
  2542. }));
  2543. }
  2544. [G, z, V].forEach(function(at) {
  2545. var J = [], tt = ct.duration;
  2546. o(at, function(st, ht) {
  2547. st.isActive || (st.render(ht, !1, 0), st.isActive = !1, J.push(ht));
  2548. }), T(function() {
  2549. for (var st = J.length; st--; )
  2550. at[J[st]] && !at[J[st]].isActive && (at[J[st]].destroy(), delete at[J[st]]);
  2551. }, at !== V && m.hasRendered && tt ? tt : 0);
  2552. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), k && rt && (Y = f.getTitlePosition(), l(Y.y) ? (k[k.isNew ? "attr" : "animate"](Y), k.isNew = !1) : (k.attr(
  2553. "y",
  2554. -9999
  2555. ), k.isNew = !0)), q && q.enabled && f.stacking && f.stacking.renderStackTotals(), f.old = { len: f.len, max: f.max, min: f.min, transA: f.transA, userMax: f.userMax, userMin: f.userMin }, f.isDirty = !1, c(this, "afterRender");
  2556. }, X.prototype.redraw = function() {
  2557. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(f) {
  2558. f.render();
  2559. })), this.series.forEach(function(f) {
  2560. f.isDirty = !0;
  2561. });
  2562. }, X.prototype.getKeepProps = function() {
  2563. return this.keepProps || X.keepProps;
  2564. }, X.prototype.destroy = function(f) {
  2565. var m = this, L = m.plotLinesAndBands, Y = this.eventOptions;
  2566. if (c(this, "destroy", { keepEvents: f }), f || D(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  2567. b(Q);
  2568. }), L)
  2569. for (f = L.length; f--; )
  2570. L[f].destroy();
  2571. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  2572. m[Q] && (m[Q] = m[Q].destroy());
  2573. });
  2574. for (var F in m.plotLinesAndBandsGroups)
  2575. m.plotLinesAndBandsGroups[F] = m.plotLinesAndBandsGroups[F].destroy();
  2576. o(m, function(Q, k) {
  2577. m.getKeepProps().indexOf(k) === -1 && delete m[k];
  2578. }), this.eventOptions = Y;
  2579. }, X.prototype.drawCrosshair = function(f, m) {
  2580. var L = this.crosshair, Y = A(L && L.snap, !0), F = this.chart, Q, k = this.cross;
  2581. if (c(this, "drawCrosshair", { e: f, point: m }), f || (f = this.cross && this.cross.e), L && (C(m) || !Y) !== !1) {
  2582. if (Y ? C(m) && (Q = A(this.coll !== "colorAxis" ? m.crosshairPos : null, this.isXAxis ? m.plotX : this.len - m.plotY)) : Q = f && (this.horiz ? f.chartX - this.pos : this.len - f.chartY + this.pos), C(Q)) {
  2583. var G = { value: m && (this.isXAxis ? m.x : A(m.stackY, m.y)), translatedValue: Q };
  2584. F.polar && a(G, { isCrosshair: !0, chartX: f && f.chartX, chartY: f && f.chartY, point: m }), G = this.getPlotLinePath(G) || null;
  2585. }
  2586. if (!C(G)) {
  2587. this.hideCrosshair();
  2588. return;
  2589. }
  2590. Y = this.categories && !this.isRadial, k || (this.cross = k = F.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (Y ? "category " : "thin ") + (L.className || "")).attr({ zIndex: A(L.zIndex, 2) }).add(), F.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 = f;
  2591. } else
  2592. this.hideCrosshair();
  2593. c(this, "afterDrawCrosshair", { e: f, point: m });
  2594. }, X.prototype.hideCrosshair = function() {
  2595. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  2596. }, X.prototype.hasVerticalPanning = function() {
  2597. var f = this.chart.options.chart.panning;
  2598. return !!(f && f.enabled && /y/.test(f.type));
  2599. }, X.prototype.validatePositiveValue = function(f) {
  2600. return l(f) && 0 < f;
  2601. }, X.prototype.update = function(f, m) {
  2602. var L = this.chart;
  2603. f = t(this.userOptions, f), this.destroy(!0), this.init(L, f), L.isDirtyBox = !0, A(m, !0) && L.redraw();
  2604. }, X.prototype.remove = function(f) {
  2605. for (var m = this.chart, L = this.coll, Y = this.series, F = Y.length; F--; )
  2606. Y[F] && Y[F].remove(!1);
  2607. M(m.axes, this), M(m[L], this), m[L].forEach(function(Q, k) {
  2608. Q.options.index = Q.userOptions.index = k;
  2609. }), this.destroy(), m.isDirtyBox = !0, A(f, !0) && m.redraw();
  2610. }, X.prototype.setTitle = function(f, m) {
  2611. this.update({ title: f }, m);
  2612. }, X.prototype.setCategories = function(f, m) {
  2613. this.update({ categories: f }, m);
  2614. }, X.defaultOptions = R.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  2615. }(), y;
  2616. }), E(h, "Core/Axis/DateTimeAxis.js", [h["Core/Utilities.js"]], function(y) {
  2617. var R = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.timeUnits, $;
  2618. return function(U) {
  2619. function W() {
  2620. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  2621. }
  2622. function N(u) {
  2623. u.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new v(this));
  2624. }
  2625. var w = [];
  2626. U.compose = function(u) {
  2627. return w.indexOf(u) === -1 && (w.push(u), u.keepProps.push("dateTime"), u.prototype.getTimeTicks = W, R(
  2628. u,
  2629. "init",
  2630. N
  2631. )), u;
  2632. };
  2633. var v = function() {
  2634. function u(d) {
  2635. this.axis = d;
  2636. }
  2637. return u.prototype.normalizeTimeTickInterval = function(d, P) {
  2638. 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]];
  2639. P = O[O.length - 1];
  2640. var B = H[P[0]], C = P[1], b;
  2641. for (b = 0; b < O.length && (P = O[b], B = H[P[0]], C = P[1], !(O[b + 1] && d <= (B * C[C.length - 1] + H[O[b + 1][0]]) / 2)); b++)
  2642. ;
  2643. return B === H.year && d < 5 * B && (C = [1, 2, 5]), d = Z(d / B, C, P[0] === "year" ? Math.max(I(d / B), 1) : 1), { unitRange: B, count: d, unitName: P[0] };
  2644. }, u.prototype.getXDateFormat = function(d, P) {
  2645. var O = this.axis;
  2646. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, d, O.options.startOfWeek, P) || P.year : P.day;
  2647. }, u;
  2648. }();
  2649. U.Additions = v;
  2650. }($ || ($ = {})), $;
  2651. }), E(h, "Core/Axis/LogarithmicAxis.js", [h["Core/Utilities.js"]], function(y) {
  2652. var R = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.pick, $;
  2653. return function(U) {
  2654. function W(u) {
  2655. var d = this.logarithmic;
  2656. u.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : d || (this.logarithmic = new v(this));
  2657. }
  2658. function N() {
  2659. var u = this.logarithmic;
  2660. u && (this.lin2val = function(d) {
  2661. return u.lin2log(d);
  2662. }, this.val2lin = function(d) {
  2663. return u.log2lin(d);
  2664. });
  2665. }
  2666. var w = [];
  2667. U.compose = function(u) {
  2668. return w.indexOf(u) === -1 && (w.push(u), u.keepProps.push("logarithmic"), R(u, "init", W), R(u, "afterInit", N)), u;
  2669. };
  2670. var v = function() {
  2671. function u(d) {
  2672. this.axis = d;
  2673. }
  2674. return u.prototype.getLogTickPositions = function(d, P, O, B) {
  2675. var C = this.axis, b = C.len, M = C.options, x = [];
  2676. if (B || (this.minorAutoInterval = void 0), 0.5 <= d)
  2677. d = Math.round(d), x = C.getLinearTickPositions(d, P, O);
  2678. else if (0.08 <= d) {
  2679. var a = Math.floor(P), c, p = M = void 0;
  2680. for (b = 0.3 < d ? [1, 2, 4] : 0.15 < d ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; a < O + 1 && !p; a++) {
  2681. var i = b.length;
  2682. for (c = 0; c < i && !p; c++) {
  2683. var l = this.log2lin(this.lin2log(a) * b[c]);
  2684. l > P && (!B || M <= O) && typeof M < "u" && x.push(M), M > O && (p = !0), M = l;
  2685. }
  2686. }
  2687. } else
  2688. P = this.lin2log(P), O = this.lin2log(O), d = B ? C.getMinorTickInterval() : M.tickInterval, d = H(d === "auto" ? null : d, this.minorAutoInterval, M.tickPixelInterval / (B ? 5 : 1) * (O - P) / ((B ? b / C.tickPositions.length : b) || 1)), d = Z(d, void 0, I(d)), x = C.getLinearTickPositions(d, P, O).map(this.log2lin), B || (this.minorAutoInterval = d / 5);
  2689. return B || (C.tickInterval = d), x;
  2690. }, u.prototype.lin2log = function(d) {
  2691. return Math.pow(10, d);
  2692. }, u.prototype.log2lin = function(d) {
  2693. return Math.log(d) / Math.LN10;
  2694. }, u;
  2695. }();
  2696. U.Additions = v;
  2697. }($ || ($ = {})), $;
  2698. }), E(h, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [h["Core/Utilities.js"]], function(y) {
  2699. var R = y.erase, I = y.extend, Z = y.isNumber, H;
  2700. return function($) {
  2701. var U = [], W;
  2702. $.compose = function(w, v) {
  2703. return W || (W = w), U.indexOf(v) === -1 && (U.push(v), I(v.prototype, N.prototype)), v;
  2704. };
  2705. var N = function() {
  2706. function w() {
  2707. }
  2708. return w.prototype.getPlotBandPath = function(v, u, d) {
  2709. d === void 0 && (d = this.options);
  2710. var P = this.getPlotLinePath({ value: u, force: !0, acrossPanes: d.acrossPanes }), O = [], B = this.horiz;
  2711. if (u = !Z(this.min) || !Z(this.max) || v < this.min && u < this.min || v > this.max && u > this.max, v = this.getPlotLinePath({ value: v, force: !0, acrossPanes: d.acrossPanes }), d = 1, v && P) {
  2712. if (u) {
  2713. var C = v.toString() === P.toString();
  2714. d = 0;
  2715. }
  2716. for (u = 0; u < v.length; u += 2) {
  2717. var b = v[u], M = v[u + 1], x = P[u], a = P[u + 1];
  2718. b[0] !== "M" && b[0] !== "L" || M[0] !== "M" && M[0] !== "L" || x[0] !== "M" && x[0] !== "L" || a[0] !== "M" && a[0] !== "L" || (B && x[1] === b[1] ? (x[1] += d, a[1] += d) : B || x[2] !== b[2] || (x[2] += d, a[2] += d), O.push(["M", b[1], b[2]], ["L", M[1], M[2]], ["L", a[1], a[2]], ["L", x[1], x[2]], ["Z"])), O.isFlat = C;
  2719. }
  2720. }
  2721. return O;
  2722. }, w.prototype.addPlotBand = function(v) {
  2723. return this.addPlotBandOrLine(v, "plotBands");
  2724. }, w.prototype.addPlotLine = function(v) {
  2725. return this.addPlotBandOrLine(v, "plotLines");
  2726. }, w.prototype.addPlotBandOrLine = function(v, u) {
  2727. var d = this, P = this.userOptions, O = new W(this, v);
  2728. if (this.visible && (O = O.render()), O) {
  2729. if (this._addedPlotLB || (this._addedPlotLB = !0, (P.plotLines || []).concat(P.plotBands || []).forEach(function(C) {
  2730. d.addPlotBandOrLine(C);
  2731. })), u) {
  2732. var B = P[u] || [];
  2733. B.push(v), P[u] = B;
  2734. }
  2735. this.plotLinesAndBands.push(O);
  2736. }
  2737. return O;
  2738. }, w.prototype.removePlotBandOrLine = function(v) {
  2739. var u = this.plotLinesAndBands, d = this.options, P = this.userOptions;
  2740. if (u) {
  2741. for (var O = u.length; O--; )
  2742. u[O].id === v && u[O].destroy();
  2743. [d.plotLines || [], P.plotLines || [], d.plotBands || [], P.plotBands || []].forEach(function(B) {
  2744. for (O = B.length; O--; )
  2745. (B[O] || {}).id === v && R(B, B[O]);
  2746. });
  2747. }
  2748. }, w.prototype.removePlotBand = function(v) {
  2749. this.removePlotBandOrLine(v);
  2750. }, w.prototype.removePlotLine = function(v) {
  2751. this.removePlotBandOrLine(v);
  2752. }, w;
  2753. }();
  2754. }(H || (H = {})), H;
  2755. }), E(h, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [h["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], h["Core/Utilities.js"]], function(y, R) {
  2756. var I = R.arrayMax, Z = R.arrayMin, H = R.defined, $ = R.destroyObjectProperties, U = R.erase, W = R.fireEvent, N = R.merge, w = R.objectEach, v = R.pick;
  2757. return R = function() {
  2758. function u(d, P) {
  2759. this.axis = d, P && (this.options = P, this.id = P.id);
  2760. }
  2761. return u.compose = function(d) {
  2762. return y.compose(u, d);
  2763. }, u.prototype.render = function() {
  2764. W(this, "render");
  2765. var d = this, P = d.axis, O = P.horiz, B = P.logarithmic, C = d.options, b = C.color, M = v(C.zIndex, 0), x = C.events, a = {}, c = P.chart.renderer, p = C.label, i = d.label, l = C.to, s = C.from, t = C.value, n = d.svgElem, o = [], A = H(s) && H(l);
  2766. o = H(t);
  2767. var _ = !n, D = { class: "highcharts-plot-" + (A ? "band " : "line ") + (C.className || "") }, j = A ? "bands" : "lines";
  2768. if (B && (s = B.log2lin(s), l = B.log2lin(l), t = B.log2lin(t)), P.chart.styledMode || (o ? (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 = M, j += "-" + M, (B = P.plotLinesAndBandsGroups[j]) || (P.plotLinesAndBandsGroups[j] = B = c.g("plot-" + j).attr(a).add()), _ && (d.svgElem = n = c.path().attr(D).add(B)), o)
  2769. o = P.getPlotLinePath({ value: t, lineWidth: n.strokeWidth(), acrossPanes: C.acrossPanes });
  2770. else if (A)
  2771. o = P.getPlotBandPath(
  2772. s,
  2773. l,
  2774. C
  2775. );
  2776. else
  2777. return;
  2778. return !d.eventsAdded && x && (w(x, function(T, X) {
  2779. n.on(X, function(f) {
  2780. x[X].apply(d, [f]);
  2781. });
  2782. }), d.eventsAdded = !0), (_ || !n.d) && o && o.length ? n.attr({ d: o }) : n && (o ? (n.show(!0), n.animate({ d: o })) : n.d && (n.hide(), i && (d.label = i = i.destroy()))), p && (H(p.text) || H(p.formatter)) && o && o.length && 0 < P.width && 0 < P.height && !o.isFlat ? (p = N({ 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, o, A, M)) : i && i.hide(), d;
  2783. }, u.prototype.renderLabel = function(d, P, O, B) {
  2784. var C = this.axis, b = C.chart.renderer, M = this.label;
  2785. M || (this.label = M = b.text(this.getLabelText(d), 0, 0, d.useHTML).attr({ align: d.textAlign || d.align, rotation: d.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (d.className || ""), zIndex: B }).add(), C.chart.styledMode || M.css(N({ textOverflow: "ellipsis" }, d.style))), B = 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(B), b = Z(P), M.align(d, !1, { x: O, y: b, width: I(B) - O, height: I(P) - b }), M.alignValue && M.alignValue !== "left" || M.css({ width: (M.rotation === 90 ? C.height - (M.alignAttr.y - C.top) : C.width - (M.alignAttr.x - C.left)) + "px" }), M.show(!0);
  2786. }, u.prototype.getLabelText = function(d) {
  2787. return H(d.formatter) ? d.formatter.call(this) : d.text;
  2788. }, u.prototype.destroy = function() {
  2789. U(this.axis.plotLinesAndBands, this), delete this.axis, $(this);
  2790. }, u;
  2791. }(), R;
  2792. }), E(
  2793. h,
  2794. "Core/Tooltip.js",
  2795. [h["Core/FormatUtilities.js"], h["Core/Globals.js"], h["Core/Renderer/RendererUtilities.js"], h["Core/Renderer/RendererRegistry.js"], h["Core/Utilities.js"]],
  2796. function(y, R, I, Z, H) {
  2797. var $ = y.format, U = R.doc, W = I.distribute, N = H.addEvent, w = H.clamp, v = H.css, u = H.defined, d = H.discardElement, P = H.extend, O = H.fireEvent, B = H.isArray, C = H.isNumber, b = H.isString, M = H.merge, x = H.pick, a = H.splat, c = H.syncTimeout;
  2798. return y = function() {
  2799. function p(i, l) {
  2800. 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);
  2801. }
  2802. return p.prototype.applyFilter = function() {
  2803. var i = this.chart;
  2804. i.renderer.definition({
  2805. tagName: "filter",
  2806. attributes: { id: "drop-shadow-" + i.index, opacity: 0.5 },
  2807. 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" } }] }]
  2808. });
  2809. }, p.prototype.bodyFormatter = function(i) {
  2810. return i.map(function(l) {
  2811. var s = l.series.tooltipOptions;
  2812. return (s[(l.point.formatPrefix || "point") + "Formatter"] || l.point.tooltipFormatter).call(l.point, s[(l.point.formatPrefix || "point") + "Format"] || "");
  2813. });
  2814. }, p.prototype.cleanSplit = function(i) {
  2815. this.chart.series.forEach(function(l) {
  2816. var s = l && l.tt;
  2817. s && (!s.isActive || i ? l.tt = s.destroy() : s.isActive = !1);
  2818. });
  2819. }, p.prototype.defaultFormatter = function(i) {
  2820. var l = this.points || a(this), s = [i.tooltipFooterHeaderFormatter(l[0])];
  2821. return s = s.concat(i.bodyFormatter(l)), s.push(i.tooltipFooterHeaderFormatter(l[0], !0)), s;
  2822. }, p.prototype.destroy = function() {
  2823. 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(), d(this.container)), H.clearTimeout(this.hideTimer), H.clearTimeout(this.tooltipTimeout);
  2824. }, p.prototype.getAnchor = function(i, l) {
  2825. var s = this.chart, t = s.pointer, n = s.inverted, o = s.plotTop, A = s.plotLeft, _, D, j = 0, T = 0;
  2826. return i = a(i), this.followPointer && l ? (typeof l.chartX > "u" && (l = t.normalize(l)), t = [l.chartX - A, l.chartY - o]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  2827. _ = X.series.yAxis, D = X.series.xAxis, j += X.plotX || 0, T += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, D && _ && (n ? (j += o + s.plotHeight - D.len - D.pos, T += A + s.plotWidth - _.len - _.pos) : (j += D.pos - A, T += _.pos - o));
  2828. }), j /= i.length, T /= i.length, t = [n ? s.plotWidth - T : j, n ? s.plotHeight - j : T], this.shared && 1 < i.length && l && (n ? t[0] = l.chartX - A : t[1] = l.chartY - o)), t.map(Math.round);
  2829. }, p.prototype.getLabel = function() {
  2830. var i = this, l = this.chart.styledMode, s = this.options, t = this.split && this.allowShared, n = "tooltip" + (u(s.className) ? " " + s.className : ""), o = s.style.pointerEvents || (!this.followPointer && s.stickOnContact ? "auto" : "none"), A = function() {
  2831. i.inContact = !0;
  2832. }, _ = function(Y) {
  2833. var F = i.chart.hoverSeries;
  2834. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(Y.relatedTarget, "highcharts-tooltip"), !i.inContact && F && F.onMouseOut && F.onMouseOut();
  2835. }, D, j = this.chart.renderer;
  2836. if (i.label) {
  2837. var T = !i.label.hasClass("highcharts-label");
  2838. (t && !T || !t && T) && i.destroy();
  2839. }
  2840. if (!this.label) {
  2841. if (this.outside) {
  2842. T = this.chart.options.chart.style;
  2843. var X = Z.getRendererType();
  2844. this.container = D = R.doc.createElement("div"), D.className = "highcharts-tooltip-container", v(D, { position: "absolute", top: "1px", pointerEvents: o, zIndex: Math.max(this.options.style.zIndex || 0, (T && T.zIndex || 0) + 3) }), N(D, "mouseenter", A), N(D, "mouseleave", _), R.doc.body.appendChild(D), this.renderer = j = new X(D, 0, 0, T, void 0, void 0, j.styledMode);
  2845. }
  2846. if (t ? this.label = j.g(n) : (this.label = j.label("", 0, 0, s.shape, void 0, void 0, s.useHTML, void 0, n).attr({ padding: s.padding, r: s.borderRadius }), l || this.label.attr({
  2847. fill: s.backgroundColor,
  2848. "stroke-width": s.borderWidth
  2849. }).css(s.style).css({ pointerEvents: o }).shadow(s.shadow)), l && s.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  2850. var f = this.label, m = f.xSetter, L = f.ySetter;
  2851. f.xSetter = function(Y) {
  2852. m.call(f, i.distance), D.style.left = Y + "px";
  2853. }, f.ySetter = function(Y) {
  2854. L.call(f, i.distance), D.style.top = Y + "px";
  2855. };
  2856. }
  2857. this.label.on("mouseenter", A).on("mouseleave", _).attr({ zIndex: 8 }).add();
  2858. }
  2859. return this.label;
  2860. }, p.prototype.getPosition = function(i, l, s) {
  2861. var t = this.chart, n = this.distance, o = {}, A = t.inverted && s.h || 0, _ = this.outside, D = _ ? U.documentElement.clientWidth - 2 * n : t.chartWidth, j = _ ? Math.max(U.body.scrollHeight, U.documentElement.scrollHeight, U.body.offsetHeight, U.documentElement.offsetHeight, U.documentElement.clientHeight) : t.chartHeight, T = t.pointer.getChartPosition(), X = function(z) {
  2862. var V = z === "x";
  2863. return [z, V ? D : j, V ? i : l].concat(_ ? [V ? i * T.scaleX : l * T.scaleY, V ? T.left - n + (s.plotX + t.plotLeft) * T.scaleX : T.top - n + (s.plotY + t.plotTop) * T.scaleY, 0, V ? D : j] : [V ? i : l, V ? s.plotX + t.plotLeft : s.plotY + t.plotTop, V ? t.plotLeft : t.plotTop, V ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  2864. }, f = X("y"), m = X("x"), L;
  2865. X = !!s.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  2866. var Y = !this.followPointer && x(s.ttBelow, !t.inverted === X), F = function(z, V, q, it, et, nt, rt) {
  2867. var ct = _ ? z === "y" ? n * T.scaleY : n * T.scaleX : n, gt = (q - it) / 2, dt = it < et - n, lt = et + n + it < V, at = et - ct - q + gt;
  2868. if (et = et + ct - gt, Y && lt)
  2869. o[z] = et;
  2870. else if (!Y && dt)
  2871. o[z] = at;
  2872. else if (dt)
  2873. o[z] = Math.min(rt - it, 0 > at - A ? at : at - A);
  2874. else if (lt)
  2875. o[z] = Math.max(nt, et + A + q > V ? et : et + A);
  2876. else
  2877. return !1;
  2878. }, Q = function(z, V, q, it, et) {
  2879. var nt;
  2880. return et < n || et > V - n ? nt = !1 : o[z] = et < q / 2 ? 1 : et > V - it / 2 ? V - it - 2 : et - q / 2, nt;
  2881. }, k = function(z) {
  2882. var V = f;
  2883. f = m, m = V, L = z;
  2884. }, G = function() {
  2885. F.apply(0, f) !== !1 ? Q.apply(0, m) !== !1 || L || (k(!0), G()) : L ? o.x = o.y = 0 : (k(!0), G());
  2886. };
  2887. return (t.inverted || 1 < this.len) && k(), G(), o;
  2888. }, p.prototype.hide = function(i) {
  2889. var l = this;
  2890. H.clearTimeout(this.hideTimer), i = x(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  2891. l.getLabel().fadeOut(i && void 0), l.isHidden = !0;
  2892. }, i));
  2893. }, p.prototype.init = function(i, l) {
  2894. 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));
  2895. }, p.prototype.shouldStickOnContact = function() {
  2896. return !(this.followPointer || !this.options.stickOnContact);
  2897. }, p.prototype.isStickyOnContact = function() {
  2898. return !(!this.shouldStickOnContact() || !this.inContact);
  2899. }, p.prototype.move = function(i, l, s, t) {
  2900. var n = this, o = n.now, A = n.options.animation !== !1 && !n.isHidden && (1 < Math.abs(i - o.x) || 1 < Math.abs(l - o.y)), _ = n.followPointer || 1 < n.len;
  2901. P(o, { x: A ? (2 * o.x + i) / 3 : i, y: A ? (o.y + l) / 2 : l, anchorX: _ ? void 0 : A ? (2 * o.anchorX + s) / 3 : s, anchorY: _ ? void 0 : A ? (o.anchorY + t) / 2 : t }), n.getLabel().attr(o), n.drawTracker(), A && (H.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  2902. n && n.move(i, l, s, t);
  2903. }, 32));
  2904. }, p.prototype.refresh = function(i, l) {
  2905. var s = this.chart, t = this.options, n = a(i), o = n[0], A = [], _ = t.formatter || this.defaultFormatter, D = this.shared, j = s.styledMode, T = {};
  2906. if (t.enabled) {
  2907. H.clearTimeout(this.hideTimer), this.allowShared = !(!B(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && o.series.tooltipOptions.followPointer, i = this.getAnchor(i, l);
  2908. var X = i[0], f = i[1];
  2909. if (D && this.allowShared ? (s.pointer.applyInactiveState(n), n.forEach(function(Y) {
  2910. Y.setState("hover"), A.push(Y.getLabelConfig());
  2911. }), T = { x: o.category, y: o.y }, T.points = A) : T = o.getLabelConfig(), this.len = A.length, _ = _.call(T, this), D = o.series, this.distance = x(D.tooltipOptions.distance, 16), _ === !1)
  2912. this.hide();
  2913. else {
  2914. if (this.split && this.allowShared)
  2915. this.renderSplit(
  2916. _,
  2917. n
  2918. );
  2919. else {
  2920. var m = X, L = f;
  2921. if (l && s.pointer.isDirectTouch && (m = l.chartX - s.plotLeft, L = l.chartY - s.plotTop), s.polar || D.options.clip === !1 || n.some(function(Y) {
  2922. return Y.series.shouldShowTooltip(m, L);
  2923. }))
  2924. l = this.getLabel(), t.style.width && !j || l.css({ width: this.chart.spacingBox.width + "px" }), l.attr({ text: _ && _.join ? _.join("") : _ }), l.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + x(o.colorIndex, D.colorIndex)), j || l.attr({ stroke: t.borderColor || o.color || D.color || "#666666" }), this.updatePosition({
  2925. plotX: X,
  2926. plotY: f,
  2927. negative: o.negative,
  2928. ttBelow: o.ttBelow,
  2929. h: i[2] || 0
  2930. });
  2931. else {
  2932. this.hide();
  2933. return;
  2934. }
  2935. }
  2936. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  2937. }
  2938. O(this, "refresh");
  2939. }
  2940. }, p.prototype.renderSplit = function(i, l) {
  2941. function s(lt, at, J, tt, st) {
  2942. return st === void 0 && (st = !0), J ? (at = it ? 0 : ct, lt = w(lt - tt / 2, z.left, z.right - tt - (t.outside ? et : 0))) : (at -= nt, lt = st ? lt - tt - Q : lt + Q, lt = w(lt, st ? lt : z.left, z.right)), { x: lt, y: at };
  2943. }
  2944. var t = this, n = t.chart, o = t.chart, A = o.chartWidth, _ = o.chartHeight, D = o.plotHeight, j = o.plotLeft, T = o.plotTop, X = o.pointer, f = o.scrollablePixelsY;
  2945. f = f === void 0 ? 0 : f;
  2946. var m = o.scrollablePixelsX, L = o.scrollingContainer;
  2947. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  2948. var Y = L.scrollLeft;
  2949. L = L.scrollTop;
  2950. var F = o.styledMode, Q = t.distance, k = t.options, G = t.options.positioner, z = t.outside && typeof m != "number" ? U.documentElement.getBoundingClientRect() : { left: Y, right: Y + A, top: L, bottom: L + _ }, V = t.getLabel(), q = this.renderer || n.renderer, it = !(!n.xAxis[0] || !n.xAxis[0].opposite);
  2951. n = X.getChartPosition();
  2952. var et = n.left;
  2953. n = n.top;
  2954. var nt = T + L, rt = 0, ct = D - f;
  2955. b(i) && (i = [!1, i]), i = i.slice(0, l.length + 1).reduce(function(lt, at, J) {
  2956. if (at !== !1 && at !== "") {
  2957. J = l[J - 1] || { isHeader: !0, plotX: l[0].plotX, plotY: D, series: {} };
  2958. var tt = J.isHeader, st = tt ? t : J.series;
  2959. at = at.toString();
  2960. var ht = st.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + x(J.colorIndex, yt.colorIndex, "none");
  2961. if (ht || (ht = { padding: k.padding, r: k.borderRadius }, F || (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(V)), ht.isActive = !0, ht.attr({ text: at }), F || 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) {
  2962. yt = j + yt;
  2963. var Ct = T + D / 2;
  2964. } else {
  2965. var Tt = ht.xAxis, kt = ht.yAxis;
  2966. yt = Tt.pos + w(yt, -Q, Tt.len + Q), ht.shouldShowTooltip(0, kt.pos - T + vt, { ignoreX: !0 }) && (Ct = kt.pos + vt);
  2967. }
  2968. yt = w(yt, z.left - Q, z.right + Q), typeof Ct == "number" ? (pt = pt.height + 1, vt = G ? G.call(t, at, pt, J) : s(
  2969. yt,
  2970. Ct,
  2971. tt,
  2972. at
  2973. ), 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;
  2974. }
  2975. return lt;
  2976. }, []), !G && i.some(function(lt) {
  2977. var at = (t.outside ? et : 0) + lt.anchorX;
  2978. return at < z.left && at + lt.boxWidth < z.right ? !0 : at < et - z.left + lt.boxWidth && z.right - at > at;
  2979. }) && (i = i.map(function(lt) {
  2980. var at = s(lt.anchorX, lt.anchorY, lt.point.isHeader, lt.boxWidth, !1);
  2981. return P(lt, { target: at.y, x: at.x });
  2982. })), t.cleanSplit(), W(i, ct);
  2983. var gt = et, dt = et;
  2984. i.forEach(function(lt) {
  2985. var at = lt.x, J = lt.boxWidth;
  2986. lt = lt.isHeader, lt || (t.outside && et + at < gt && (gt = et + at), !lt && t.outside && gt + J > dt && (dt = et + at));
  2987. }), i.forEach(function(lt) {
  2988. var at = lt.x, J = lt.anchorX, tt = lt.pos, st = lt.point.isHeader;
  2989. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: lt.anchorY }, t.outside && at < J) {
  2990. var ht = et - gt;
  2991. 0 < ht && (st || (tt.x = at + ht, tt.anchorX = J + ht), st && (tt.x = (dt - gt) / 2, tt.anchorX = J + ht));
  2992. }
  2993. lt.tt.attr(tt);
  2994. }), i = t.container, f = t.renderer, t.outside && i && f && (o = V.getBBox(), f.setSize(o.width + o.x, o.height + o.y, !1), i.style.left = gt + "px", i.style.top = n + "px");
  2995. }, p.prototype.drawTracker = function() {
  2996. if (this.followPointer || !this.options.stickOnContact)
  2997. this.tracker && this.tracker.destroy();
  2998. else {
  2999. var i = this.chart, l = this.label, s = this.shared ? i.hoverPoints : i.hoverPoint;
  3000. if (l && s) {
  3001. var t = { x: 0, y: 0, width: 0, height: 0 };
  3002. s = this.getAnchor(s);
  3003. var n = l.getBBox();
  3004. 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]), n.width - s[0]) : Math.max(Math.abs(s[0]), n.width), t.height = 0 > s[1] ? Math.max(Math.abs(s[1]), n.height - Math.abs(s[1])) : Math.max(Math.abs(s[1]), n.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)" }));
  3005. }
  3006. }
  3007. }, p.prototype.styledModeFormat = function(i) {
  3008. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  3009. }, p.prototype.tooltipFooterHeaderFormatter = function(i, l) {
  3010. var s = i.series, t = s.tooltipOptions, n = s.xAxis, o = n && n.dateTime;
  3011. n = {
  3012. isFooter: l,
  3013. labelConfig: i
  3014. };
  3015. var A = t.xDateFormat, _ = t[l ? "footerFormat" : "headerFormat"];
  3016. return O(this, "headerFormatter", n, function(D) {
  3017. o && !A && C(i.key) && (A = o.getXDateFormat(i.key, t.dateTimeLabelFormats)), o && A && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(j) {
  3018. _ = _.replace("{point." + j + "}", "{point." + j + ":" + A + "}");
  3019. }), s.chart.styledMode && (_ = this.styledModeFormat(_)), D.text = $(_, { point: i, series: s }, this.chart);
  3020. }), n.text;
  3021. }, p.prototype.update = function(i) {
  3022. this.destroy(), M(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, M(!0, this.options, i));
  3023. }, p.prototype.updatePosition = function(i) {
  3024. var l = this.chart, s = this.options, t = l.pointer, n = this.getLabel();
  3025. t = t.getChartPosition();
  3026. var o = (s.positioner || this.getPosition).call(this, n.width, n.height, i), A = i.plotX + l.plotLeft;
  3027. i = i.plotY + l.plotTop, this.outside && (s = s.borderWidth + 2 * this.distance, this.renderer.setSize(n.width + s, n.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 - o.x, i += t.top - o.y), this.move(Math.round(o.x), Math.round(o.y || 0), A, i);
  3028. }, p;
  3029. }(), y;
  3030. }
  3031. ), 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, R, I, Z, H) {
  3032. var $ = R.animObject, U = I.defaultOptions, W = Z.format, N = H.addEvent, w = H.defined, v = H.erase, u = H.extend, d = H.fireEvent, P = H.getNestedProperty, O = H.isArray, B = H.isFunction, C = H.isNumber, b = H.isObject, M = H.merge, x = H.objectEach, a = H.pick, c = H.syncTimeout, p = H.removeEvent, i = H.uniqueKey;
  3033. return R = function() {
  3034. function l() {
  3035. 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;
  3036. }
  3037. return l.prototype.animateBeforeDestroy = function() {
  3038. var s = this, t = { x: s.startXPos, opacity: 0 }, n = s.getGraphicalProps();
  3039. n.singular.forEach(function(o) {
  3040. s[o] = s[o].animate(o === "dataLabel" ? {
  3041. x: s[o].startXPos,
  3042. y: s[o].startYPos,
  3043. opacity: 0
  3044. } : t);
  3045. }), n.plural.forEach(function(o) {
  3046. s[o].forEach(function(A) {
  3047. A.element && A.animate(u({ x: s.startXPos }, A.startYPos ? { x: A.startXPos, y: A.startYPos } : {}));
  3048. });
  3049. });
  3050. }, l.prototype.applyOptions = function(s, t) {
  3051. var n = this.series, o = n.options.pointValKey || n.pointValKey;
  3052. return s = l.prototype.optionsToObject.call(this, s), u(this, s), this.options = this.options ? u(this.options, s) : s, s.group && delete this.group, s.dataLabels && delete this.dataLabels, o && (this.y = l.prototype.getNestedProperty.call(this, o)), 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" && n.xAxis && n.xAxis.hasNames && (this.x = n.xAxis.nameToX(this)), typeof this.x > "u" && n ? this.x = typeof t > "u" ? n.autoIncrement() : t : C(s.x) && n.options.relativeXValue && (this.x = n.autoIncrement(s.x)), this;
  3053. }, l.prototype.destroy = function() {
  3054. function s() {
  3055. (t.graphic || t.dataLabel || t.dataLabels) && (p(t), t.destroyElements());
  3056. for (D in t)
  3057. t[D] = null;
  3058. }
  3059. var t = this, n = t.series, o = n.chart;
  3060. n = n.options.dataSorting;
  3061. var A = o.hoverPoints, _ = $(t.series.chart.renderer.globalAnimation), D;
  3062. t.legendItem && o.legend.destroyItem(t), A && (t.setState(), v(A, t), A.length || (o.hoverPoints = null)), t === o.hoverPoint && t.onMouseOut(), n && n.enabled ? (this.animateBeforeDestroy(), c(s, _.duration)) : s(), o.pointCount--;
  3063. }, l.prototype.destroyElements = function(s) {
  3064. var t = this;
  3065. s = t.getGraphicalProps(s), s.singular.forEach(function(n) {
  3066. t[n] = t[n].destroy();
  3067. }), s.plural.forEach(function(n) {
  3068. t[n].forEach(function(o) {
  3069. o.element && o.destroy();
  3070. }), delete t[n];
  3071. });
  3072. }, l.prototype.firePointEvent = function(s, t, n) {
  3073. var o = this, A = this.series.options;
  3074. (A.point.events[s] || o.options && o.options.events && o.options.events[s]) && o.importEvents(), s === "click" && A.allowPointSelect && (n = function(_) {
  3075. o.select && o.select(null, _.ctrlKey || _.metaKey || _.shiftKey);
  3076. }), d(o, s, t, n);
  3077. }, l.prototype.getClassName = function() {
  3078. 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", "") : "");
  3079. }, l.prototype.getGraphicalProps = function(s) {
  3080. var t = this, n = [], o = { singular: [], plural: [] }, A;
  3081. for (s = s || { graphic: 1, dataLabel: 1 }, s.graphic && n.push("graphic", "upperGraphic", "shadowGroup"), s.dataLabel && n.push("dataLabel", "dataLabelUpper", "connector"), A = n.length; A--; ) {
  3082. var _ = n[A];
  3083. t[_] && o.singular.push(_);
  3084. }
  3085. return ["dataLabel", "connector"].forEach(function(D) {
  3086. var j = D + "s";
  3087. s[D] && t[j] && o.plural.push(j);
  3088. }), o;
  3089. }, l.prototype.getLabelConfig = function() {
  3090. 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 };
  3091. }, l.prototype.getNestedProperty = function(s) {
  3092. if (s)
  3093. return s.indexOf("custom.") === 0 ? P(s, this.options) : this[s];
  3094. }, l.prototype.getZone = function() {
  3095. var s = this.series, t = s.zones;
  3096. s = s.zoneAxis || "y";
  3097. var n, o = 0;
  3098. for (n = t[o]; this[s] >= n.value; )
  3099. n = t[++o];
  3100. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = n && n.color && !this.options.color ? n.color : this.nonZonedColor, n;
  3101. }, l.prototype.hasNewShapeType = function() {
  3102. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  3103. }, l.prototype.init = function(s, t, n) {
  3104. return this.series = s, this.applyOptions(t, n), this.id = w(this.id) ? this.id : i(), this.resolveColor(), s.chart.pointCount++, d(this, "afterInit"), this;
  3105. }, l.prototype.optionsToObject = function(s) {
  3106. var t = this.series, n = t.options.keys, o = n || t.pointArrayMap || ["y"], A = o.length, _ = {}, D = 0, j = 0;
  3107. if (C(s) || s === null)
  3108. _[o[0]] = s;
  3109. else if (O(s))
  3110. for (!n && s.length > A && (t = typeof s[0], t === "string" ? _.name = s[0] : t === "number" && (_.x = s[0]), D++); j < A; )
  3111. n && typeof s[D] > "u" || (0 < o[j].indexOf(".") ? l.prototype.setNestedProperty(_, s[D], o[j]) : _[o[j]] = s[D]), D++, j++;
  3112. else
  3113. typeof s == "object" && (_ = s, s.dataLabels && (t._hasPointLabels = !0), s.marker && (t._hasPointMarkers = !0));
  3114. return _;
  3115. }, l.prototype.resolveColor = function() {
  3116. var s = this.series, t = s.chart.styledMode, n = s.chart.options.chart.colorCount;
  3117. if (delete this.nonZonedColor, s.options.colorByPoint) {
  3118. if (!t) {
  3119. n = s.options.colors || s.chart.options.colors;
  3120. var o = n[s.colorCounter];
  3121. n = n.length;
  3122. }
  3123. t = s.colorCounter, s.colorCounter++, s.colorCounter === n && (s.colorCounter = 0);
  3124. } else
  3125. t || (o = s.color), t = s.colorIndex;
  3126. this.colorIndex = a(this.options.colorIndex, t), this.color = a(this.options.color, o);
  3127. }, l.prototype.setNestedProperty = function(s, t, n) {
  3128. return n.split(".").reduce(function(o, A, _, D) {
  3129. return o[A] = D.length - 1 === _ ? t : b(o[A], !0) ? o[A] : {}, o[A];
  3130. }, s), s;
  3131. }, l.prototype.tooltipFormatter = function(s) {
  3132. var t = this.series, n = t.tooltipOptions, o = a(n.valueDecimals, ""), A = n.valuePrefix || "", _ = n.valueSuffix || "";
  3133. return t.chart.styledMode && (s = t.chart.tooltip.styledModeFormat(s)), (t.pointArrayMap || ["y"]).forEach(function(D) {
  3134. D = "{point." + D, (A || _) && (s = s.replace(RegExp(D + "}", "g"), A + D + "}" + _)), s = s.replace(RegExp(D + "}", "g"), D + ":,." + o + "f}");
  3135. }), W(s, { point: this, series: this.series }, t.chart);
  3136. }, l.prototype.update = function(s, t, n, o) {
  3137. function A() {
  3138. _.applyOptions(s);
  3139. var m = j && _.hasDummyGraphic;
  3140. m = _.y === null ? !m : m, j && m && (_.graphic = j.destroy(), delete _.hasDummyGraphic), b(s, !0) && (j && j.element && s && s.marker && typeof s.marker.symbol < "u" && (_.graphic = j.destroy()), s && s.dataLabels && _.dataLabel && (_.dataLabel = _.dataLabel.destroy()), _.connector && (_.connector = _.connector.destroy())), f = _.index, D.updateParallelArrays(_, f), X.data[f] = b(X.data[f], !0) || b(s, !0) ? _.options : a(s, X.data[f]), D.isDirty = D.isDirtyData = !0, !D.fixedBox && D.hasCartesianSeries && (T.isDirtyBox = !0), X.legendType === "point" && (T.isDirtyLegend = !0), t && T.redraw(n);
  3141. }
  3142. var _ = this, D = _.series, j = _.graphic, T = D.chart, X = D.options, f;
  3143. t = a(t, !0), o === !1 ? A() : _.firePointEvent("update", { options: s }, A);
  3144. }, l.prototype.remove = function(s, t) {
  3145. this.series.removePoint(this.series.data.indexOf(this), s, t);
  3146. }, l.prototype.select = function(s, t) {
  3147. var n = this, o = n.series, A = o.chart;
  3148. this.selectedStaging = s = a(s, !n.selected), n.firePointEvent(s ? "select" : "unselect", { accumulate: t }, function() {
  3149. n.selected = n.options.selected = s, o.options.data[o.data.indexOf(n)] = n.options, n.setState(s && "select"), t || A.getSelectedPoints().forEach(function(_) {
  3150. var D = _.series;
  3151. _.selected && _ !== n && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(A.hoverPoints && D.options.inactiveOtherPoints ? "inactive" : ""), _.firePointEvent("unselect"));
  3152. });
  3153. }), delete this.selectedStaging;
  3154. }, l.prototype.onMouseOver = function(s) {
  3155. var t = this.series.chart, n = t.pointer;
  3156. s = s ? n.normalize(s) : n.getChartCoordinatesFromPoint(this, t.inverted), n.runPointActions(
  3157. s,
  3158. this
  3159. );
  3160. }, l.prototype.onMouseOut = function() {
  3161. var s = this.series.chart;
  3162. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (s.hoverPoints || []).forEach(function(t) {
  3163. t.setState();
  3164. }), s.hoverPoints = s.hoverPoint = null;
  3165. }, l.prototype.importEvents = function() {
  3166. if (!this.hasImportedEvents) {
  3167. var s = this, t = M(s.series.options.point, s.options).events;
  3168. s.events = t, x(t, function(n, o) {
  3169. B(n) && N(s, o, n);
  3170. }), this.hasImportedEvents = !0;
  3171. }
  3172. }, l.prototype.setState = function(s, t) {
  3173. var n = this.series, o = this.state, A = n.options.states[s || "normal"] || {}, _ = U.plotOptions[n.type].marker && n.options.marker, D = _ && _.enabled === !1, j = _ && _.states && _.states[s || "normal"] || {}, T = j.enabled === !1, X = this.marker || {}, f = n.chart, m = _ && n.markerAttribs, L = n.halo, Y, F = n.stateMarkerGraphic;
  3174. if (s = s || "", !(s === this.state && !t || this.selected && s !== "select" || A.enabled === !1 || s && (T || D && j.enabled === !1) || s && X.states && X.states[s] && X.states[s].enabled === !1)) {
  3175. if (this.state = s, m && (Y = n.markerAttribs(this, s)), this.graphic && !this.hasDummyGraphic) {
  3176. if (o && this.graphic.removeClass("highcharts-point-" + o), s && this.graphic.addClass("highcharts-point-" + s), !f.styledMode) {
  3177. var Q = n.pointAttribs(this, s), k = a(f.options.chart.animation, A.animation);
  3178. n.options.inactiveOtherPoints && C(Q.opacity) && ((this.dataLabels || []).forEach(function(G) {
  3179. G && G.animate({ opacity: Q.opacity }, k);
  3180. }), this.connector && this.connector.animate({ opacity: Q.opacity }, k)), this.graphic.animate(Q, k);
  3181. }
  3182. Y && this.graphic.animate(Y, a(f.options.chart.animation, j.animation, _.animation)), F && F.hide();
  3183. } else
  3184. s && j && (o = X.symbol || n.symbol, F && F.currentSymbol !== o && (F = F.destroy()), Y && (F ? F[t ? "animate" : "attr"]({ x: Y.x, y: Y.y }) : o && (n.stateMarkerGraphic = F = f.renderer.symbol(o, Y.x, Y.y, Y.width, Y.height).add(n.markerGroup), F.currentSymbol = o)), !f.styledMode && F && this.state !== "inactive" && F.attr(n.pointAttribs(this, s))), F && (F[s && this.isInside ? "show" : "hide"](), F.element.point = this, F.addClass(this.getClassName(), !0));
  3185. A = A.halo, Y = (F = this.graphic || F) && F.visibility || "inherit", A && A.size && F && Y !== "hidden" && !this.isCluster ? (L || (n.halo = L = f.renderer.path().add(F.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(A.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + a(this.colorIndex, n.colorIndex) + (this.className ? " " + this.className : ""), visibility: Y, zIndex: -1 }), L.point = this, f.styledMode || L.attr(u({ fill: this.color || n.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), d(this, "afterSetState", { state: s });
  3186. }
  3187. }, l.prototype.haloPath = function(s) {
  3188. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - s, this.plotY - s, 2 * s, 2 * s);
  3189. }, l;
  3190. }(), R;
  3191. }), E(h, "Core/Pointer.js", [h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Tooltip.js"], h["Core/Utilities.js"]], function(y, R, I, Z) {
  3192. var H = y.parse, $ = R.charts, U = R.noop, W = Z.addEvent, N = Z.attr, w = Z.css, v = Z.defined, u = Z.extend, d = Z.find, P = Z.fireEvent, O = Z.isNumber, B = Z.isObject, C = Z.objectEach, b = Z.offset, M = Z.pick, x = Z.splat;
  3193. return y = function() {
  3194. function a(c, p) {
  3195. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = p, this.init(c, p);
  3196. }
  3197. return a.prototype.applyInactiveState = function(c) {
  3198. var p = [], i;
  3199. (c || []).forEach(function(l) {
  3200. 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);
  3201. }), this.chart.series.forEach(function(l) {
  3202. p.indexOf(l) === -1 ? l.setState("inactive", !0) : l.options.inactiveOtherPoints && l.setAllPointsToState("inactive");
  3203. });
  3204. }, a.prototype.destroy = function() {
  3205. var c = this;
  3206. this.eventsToUnbind.forEach(function(p) {
  3207. return p();
  3208. }), this.eventsToUnbind = [], R.chartCount || (a.unbindDocumentMouseUp && (a.unbindDocumentMouseUp = a.unbindDocumentMouseUp()), a.unbindDocumentTouchEnd && (a.unbindDocumentTouchEnd = a.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), C(c, function(p, i) {
  3209. c[i] = void 0;
  3210. });
  3211. }, a.prototype.drag = function(c) {
  3212. var p = this.chart, i = p.options.chart, l = this.zoomHor, s = this.zoomVert, t = p.plotLeft, n = p.plotTop, o = p.plotWidth, A = p.plotHeight, _ = this.mouseDownX || 0, D = this.mouseDownY || 0, j = B(i.panning) ? i.panning && i.panning.enabled : i.panning, T = i.panKey && c[i.panKey + "Key"], X = c.chartX, f = c.chartY, m = this.selectionMarker;
  3213. if ((!m || !m.touch) && (X < t ? X = t : X > t + o && (X = t + o), f < n ? f = n : f > n + A && (f = n + A), this.hasDragged = Math.sqrt(Math.pow(_ - X, 2) + Math.pow(D - f, 2)), 10 < this.hasDragged)) {
  3214. var L = p.isInsidePlot(_ - t, D - n, { visiblePlotOnly: !0 });
  3215. !p.hasCartesianSeries && !p.mapView || !this.zoomX && !this.zoomY || !L || T || m || (this.selectionMarker = m = p.renderer.rect(t, n, l ? 1 : o, s ? 1 : A, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), p.styledMode || m.attr({ fill: i.selectionMarkerFill || H("#335cad").setOpacity(0.25).get() })), m && l && (l = X - _, m.attr({ width: Math.abs(l), x: (0 < l ? 0 : l) + _ })), m && s && (l = f - D, m.attr({ height: Math.abs(l), y: (0 < l ? 0 : l) + D })), L && !m && j && p.pan(c, i.panning);
  3216. }
  3217. }, a.prototype.dragStart = function(c) {
  3218. var p = this.chart;
  3219. p.mouseIsDown = c.type, p.cancelClick = !1, p.mouseDownX = this.mouseDownX = c.chartX, p.mouseDownY = this.mouseDownY = c.chartY;
  3220. }, a.prototype.drop = function(c) {
  3221. var p = this, i = this.chart, l = this.hasPinched;
  3222. if (this.selectionMarker) {
  3223. var s = this.selectionMarker, t = s.attr ? s.attr("x") : s.x, n = s.attr ? s.attr("y") : s.y, o = s.attr ? s.attr("width") : s.width, A = s.attr ? s.attr("height") : s.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: n, width: o, height: A }, D = !!i.mapView;
  3224. (this.hasDragged || l) && (i.axes.forEach(function(j) {
  3225. if (j.zoomEnabled && v(j.min) && (l || p[{ xAxis: "zoomX", yAxis: "zoomY" }[j.coll]]) && O(t) && O(n)) {
  3226. var T = j.horiz, X = c.type === "touchend" ? j.minPixelPadding : 0, f = j.toValue((T ? t : n) + X);
  3227. T = j.toValue((T ? t + o : n + A) - X), _[j.coll].push({ axis: j, min: Math.min(f, T), max: Math.max(f, T) }), D = !0;
  3228. }
  3229. }), D && P(i, "selection", _, function(j) {
  3230. i.zoom(u(
  3231. j,
  3232. l ? { animation: !1 } : null
  3233. ));
  3234. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), l && this.scaleGroups();
  3235. }
  3236. i && O(i.index) && (w(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  3237. }, a.prototype.findNearestKDPoint = function(c, p, i) {
  3238. var l = this.chart, s = l.hoverPoint;
  3239. if (l = l.tooltip, s && l && l.isStickyOnContact())
  3240. return s;
  3241. var t;
  3242. return c.forEach(function(n) {
  3243. var o = !(n.noSharedTooltip && p) && 0 > n.options.findNearestPointBy.indexOf("y");
  3244. if (n = n.searchPoint(i, o), (o = B(n, !0) && n.series) && !(o = !B(t, !0))) {
  3245. o = t.distX - n.distX;
  3246. var A = t.dist - n.dist, _ = (n.series.group && n.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  3247. o = 0 < (o !== 0 && p ? o : A !== 0 ? A : _ !== 0 ? _ : t.series.index > n.series.index ? -1 : 1);
  3248. }
  3249. o && (t = n);
  3250. }), t;
  3251. }, a.prototype.getChartCoordinatesFromPoint = function(c, p) {
  3252. var i = c.series, l = i.xAxis;
  3253. i = i.yAxis;
  3254. var s = c.shapeArgs;
  3255. if (l && i) {
  3256. var t = M(c.clientX, c.plotX), n = c.plotY || 0;
  3257. return c.isNode && s && O(s.x) && O(s.y) && (t = s.x, n = s.y), p ? { chartX: i.len + i.pos - n, chartY: l.len + l.pos - t } : { chartX: t + l.pos, chartY: n + i.pos };
  3258. }
  3259. if (s && s.x && s.y)
  3260. return { chartX: s.x, chartY: s.y };
  3261. }, a.prototype.getChartPosition = function() {
  3262. if (this.chartPosition)
  3263. return this.chartPosition;
  3264. var c = this.chart.container, p = b(c);
  3265. this.chartPosition = { left: p.left, top: p.top, scaleX: 1, scaleY: 1 };
  3266. var i = c.offsetWidth;
  3267. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = p.width / i, this.chartPosition.scaleY = p.height / c), this.chartPosition;
  3268. }, a.prototype.getCoordinates = function(c) {
  3269. var p = { xAxis: [], yAxis: [] };
  3270. return this.chart.axes.forEach(function(i) {
  3271. p[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  3272. }), p;
  3273. }, a.prototype.getHoverData = function(c, p, i, l, s, t) {
  3274. var n = [];
  3275. l = !(!l || !c);
  3276. var o = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: s };
  3277. P(this, "beforeGetHoverData", o);
  3278. var A = p && !p.stickyTracking ? [p] : i.filter(function(D) {
  3279. return o.filter ? o.filter(D) : D.visible && !(!s && D.directTouch) && M(D.options.enableMouseTracking, !0) && D.stickyTracking;
  3280. }), _ = l || !t ? c : this.findNearestKDPoint(A, s, t);
  3281. return p = _ && _.series, _ && (s && !p.noSharedTooltip ? (A = i.filter(function(D) {
  3282. return o.filter ? o.filter(D) : D.visible && !(!s && D.directTouch) && M(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  3283. }), A.forEach(function(D) {
  3284. var j = d(D.points, function(T) {
  3285. return T.x === _.x && !T.isNull;
  3286. });
  3287. B(j) && (D.chart.isBoosting && (j = D.getPoint(j)), n.push(j));
  3288. })) : n.push(_)), o = { hoverPoint: _ }, P(this, "afterGetHoverData", o), { hoverPoint: o.hoverPoint, hoverSeries: p, hoverPoints: n };
  3289. }, a.prototype.getPointFromEvent = function(c) {
  3290. c = c.target;
  3291. for (var p; c && !p; )
  3292. p = c.point, c = c.parentNode;
  3293. return p;
  3294. }, a.prototype.onTrackerMouseOut = function(c) {
  3295. c = c.relatedTarget || c.toElement;
  3296. var p = this.chart.hoverSeries;
  3297. 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();
  3298. }, a.prototype.inClass = function(c, p) {
  3299. for (var i; c; ) {
  3300. if (i = N(c, "class")) {
  3301. if (i.indexOf(p) !== -1)
  3302. return !0;
  3303. if (i.indexOf("highcharts-container") !== -1)
  3304. return !1;
  3305. }
  3306. c = c.parentNode;
  3307. }
  3308. }, a.prototype.init = function(c, p) {
  3309. 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 = M(p.tooltip.followTouchMove, !0)), this.setDOMEvents();
  3310. }, a.prototype.normalize = function(c, p) {
  3311. var i = c.touches, l = i ? i.length ? i.item(0) : M(i.changedTouches, c.changedTouches)[0] : c;
  3312. return p || (p = this.getChartPosition()), i = l.pageX - p.left, l = l.pageY - p.top, i /= p.scaleX, l /= p.scaleY, u(c, { chartX: Math.round(i), chartY: Math.round(l) });
  3313. }, a.prototype.onContainerClick = function(c) {
  3314. var p = this.chart, i = p.hoverPoint;
  3315. c = this.normalize(c);
  3316. var l = p.plotLeft, s = p.plotTop;
  3317. p.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (P(i.series, "click", u(c, { point: i })), p.hoverPoint && i.firePointEvent("click", c)) : (u(c, this.getCoordinates(c)), p.isInsidePlot(c.chartX - l, c.chartY - s, { visiblePlotOnly: !0 }) && P(p, "click", c)));
  3318. }, a.prototype.onContainerMouseDown = function(c) {
  3319. var p = ((c.buttons || c.button) & 1) === 1;
  3320. c = this.normalize(c), R.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || p) && (this.zoomOption(c), p && c.preventDefault && c.preventDefault(), this.dragStart(c));
  3321. }, a.prototype.onContainerMouseLeave = function(c) {
  3322. var p = $[M(a.hoverChartIndex, -1)], i = this.chart.tooltip;
  3323. 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());
  3324. }, a.prototype.onContainerMouseEnter = function(c) {
  3325. delete this.chartPosition;
  3326. }, a.prototype.onContainerMouseMove = function(c) {
  3327. var p = this.chart;
  3328. 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));
  3329. }, a.prototype.onDocumentTouchEnd = function(c) {
  3330. var p = $[M(
  3331. a.hoverChartIndex,
  3332. -1
  3333. )];
  3334. p && p.pointer.drop(c);
  3335. }, a.prototype.onContainerTouchMove = function(c) {
  3336. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  3337. }, a.prototype.onContainerTouchStart = function(c) {
  3338. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  3339. }, a.prototype.onDocumentMouseMove = function(c) {
  3340. var p = this.chart, i = this.chartPosition;
  3341. c = this.normalize(c, i);
  3342. var l = p.tooltip;
  3343. !i || l && l.isStickyOnContact() || p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  3344. }, a.prototype.onDocumentMouseUp = function(c) {
  3345. var p = $[M(a.hoverChartIndex, -1)];
  3346. p && p.pointer.drop(c);
  3347. }, a.prototype.pinch = function(c) {
  3348. var p = this, i = p.chart, l = p.pinchDown, s = c.touches || [], t = s.length, n = p.lastValidTouch, o = p.hasZoom, A = {}, _ = t === 1 && (p.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || p.runChartClick), D = {}, j = p.selectionMarker;
  3349. 1 < t ? p.initiated = !0 : t === 1 && this.followTouchMove && (p.initiated = !1), o && p.initiated && !_ && c.cancelable !== !1 && c.preventDefault(), [].map.call(s, function(T) {
  3350. return p.normalize(T);
  3351. }), c.type === "touchstart" ? ([].forEach.call(s, function(T, X) {
  3352. l[X] = { chartX: T.chartX, chartY: T.chartY };
  3353. }), n.x = [l[0].chartX, l[1] && l[1].chartX], n.y = [l[0].chartY, l[1] && l[1].chartY], i.axes.forEach(function(T) {
  3354. if (T.zoomEnabled) {
  3355. var X = i.bounds[T.horiz ? "h" : "v"], f = T.minPixelPadding, m = T.toPixels(Math.min(M(T.options.min, T.dataMin), T.dataMin)), L = T.toPixels(Math.max(M(T.options.max, T.dataMax), T.dataMax)), Y = Math.max(m, L);
  3356. X.min = Math.min(T.pos, Math.min(
  3357. m,
  3358. L
  3359. ) - f), X.max = Math.max(T.pos + T.len, Y + f);
  3360. }
  3361. }), p.res = !0) : p.followTouchMove && t === 1 ? this.runPointActions(p.normalize(c)) : l.length && (P(i, "touchpan", { originalEvent: c }, function() {
  3362. j || (p.selectionMarker = j = u({ destroy: U, touch: !0 }, i.plotBox)), p.pinchTranslate(l, s, A, j, D, n), p.hasPinched = o, p.scaleGroups(A, D);
  3363. }), p.res && (p.res = !1, this.reset(!1, 0)));
  3364. }, a.prototype.pinchTranslate = function(c, p, i, l, s, t) {
  3365. this.zoomHor && this.pinchTranslateDirection(!0, c, p, i, l, s, t), this.zoomVert && this.pinchTranslateDirection(!1, c, p, i, l, s, t);
  3366. }, a.prototype.pinchTranslateDirection = function(c, p, i, l, s, t, n, o) {
  3367. var A = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", j = "chart" + D, T = c ? "width" : "height", X = A["plot" + (c ? "Left" : "Top")], f = A.inverted, m = A.bounds[c ? "h" : "v"], L = p.length === 1, Y = p[0][j], F = !L && p[1][j];
  3368. p = function() {
  3369. typeof V == "number" && 20 < Math.abs(Y - F) && (G = o || Math.abs(z - V) / Math.abs(Y - F)), k = (X - z) / G + Y, Q = A["plot" + (c ? "Width" : "Height")] / G;
  3370. };
  3371. var Q, k, G = o || 1, z = i[0][j], V = !L && i[1][j];
  3372. if (p(), i = k, i < m.min) {
  3373. i = m.min;
  3374. var q = !0;
  3375. } else
  3376. i + Q > m.max && (i = m.max - Q, q = !0);
  3377. q ? (z -= 0.8 * (z - n[_][0]), typeof V == "number" && (V -= 0.8 * (V - n[_][1])), p()) : n[_] = [z, V], f || (t[_] = k - X, t[T] = Q), t = f ? 1 / G : G, s[T] = Q, s[_] = i, l[f ? c ? "scaleY" : "scaleX" : "scale" + D] = G, l["translate" + D] = t * X + (z - t * Y);
  3378. }, a.prototype.reset = function(c, p) {
  3379. var i = this.chart, l = i.hoverSeries, s = i.hoverPoint, t = i.hoverPoints, n = i.tooltip, o = n && n.shared ? t : s;
  3380. c && o && x(o).forEach(function(A) {
  3381. A.series.isCartesian && typeof A.plotX > "u" && (c = !1);
  3382. }), c ? n && o && x(o).length && (n.refresh(o), n.shared && t ? t.forEach(function(A) {
  3383. A.setState(A.state, !0), A.series.isCartesian && (A.series.xAxis.crosshair && A.series.xAxis.drawCrosshair(
  3384. null,
  3385. A
  3386. ), A.series.yAxis.crosshair && A.series.yAxis.drawCrosshair(null, A));
  3387. }) : s && (s.setState(s.state, !0), i.axes.forEach(function(A) {
  3388. A.crosshair && s.series[A.coll] === A && A.drawCrosshair(null, s);
  3389. }))) : (s && s.onMouseOut(), t && t.forEach(function(A) {
  3390. A.setState();
  3391. }), l && l.onMouseOut(), n && n.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(A) {
  3392. A.hideCrosshair();
  3393. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  3394. }, a.prototype.runPointActions = function(c, p) {
  3395. var i = this.chart, l = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, s = l ? l.shared : !1, t = p || i.hoverPoint, n = t && t.series || i.hoverSeries;
  3396. p = this.getHoverData(t, n, i.series, (!c || c.type !== "touchmove") && (!!p || n && n.directTouch && this.isDirectTouch), s, c), t = p.hoverPoint, n = p.hoverSeries;
  3397. var o = p.hoverPoints;
  3398. if (p = n && n.tooltipOptions.followPointer && !n.tooltipOptions.split, s = s && n && !n.noSharedTooltip, t && (t !== i.hoverPoint || l && l.isHidden)) {
  3399. if ((i.hoverPoints || []).forEach(function(A) {
  3400. o.indexOf(A) === -1 && A.setState();
  3401. }), i.hoverSeries !== n && n.onMouseOver(), this.applyInactiveState(o), (o || []).forEach(function(A) {
  3402. A.setState("hover");
  3403. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  3404. return;
  3405. i.hoverPoints = o, i.hoverPoint = t, t.firePointEvent("mouseOver"), l && l.refresh(s ? o : t, c);
  3406. } else
  3407. p && l && !l.isHidden && (t = l.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && l.updatePosition({ plotX: t[0], plotY: t[1] }));
  3408. this.unDocMouseMove || (this.unDocMouseMove = W(i.container.ownerDocument, "mousemove", function(A) {
  3409. var _ = $[a.hoverChartIndex];
  3410. _ && _.pointer.onDocumentMouseMove(A);
  3411. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(A) {
  3412. var _ = M((A.crosshair || {}).snap, !0), D;
  3413. _ && ((D = i.hoverPoint) && D.series[A.coll] === A || (D = d(o, function(j) {
  3414. return j.series[A.coll] === A;
  3415. }))), D || !_ ? A.drawCrosshair(c, D) : A.hideCrosshair();
  3416. });
  3417. }, a.prototype.scaleGroups = function(c, p) {
  3418. var i = this.chart;
  3419. i.series.forEach(function(l) {
  3420. var s = c || l.getPlotBox();
  3421. 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));
  3422. }), i.clipRect.attr(p || i.clipBox);
  3423. }, a.prototype.setDOMEvents = function() {
  3424. var c = this, p = this.chart.container, i = p.ownerDocument;
  3425. 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)));
  3426. for (var l = this.chart.renderTo.parentElement; l && l.tagName !== "BODY"; )
  3427. this.eventsToUnbind.push(W(l, "scroll", function() {
  3428. delete c.chartPosition;
  3429. })), l = l.parentElement;
  3430. R.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 })));
  3431. }, a.prototype.setHoverChartIndex = function() {
  3432. var c = this.chart, p = R.charts[M(a.hoverChartIndex, -1)];
  3433. p && p !== c && p.pointer.onContainerMouseLeave({ relatedTarget: !0 }), p && p.mouseIsDown || (a.hoverChartIndex = c.index);
  3434. }, a.prototype.touch = function(c, p) {
  3435. var i = this.chart;
  3436. if (this.setHoverChartIndex(), c.touches.length === 1)
  3437. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  3438. if (p && this.runPointActions(c), c.type === "touchmove") {
  3439. p = this.pinchDown;
  3440. var l = p[0] ? 4 <= Math.sqrt(Math.pow(p[0].chartX - c.chartX, 2) + Math.pow(p[0].chartY - c.chartY, 2)) : !1;
  3441. }
  3442. M(l, !0) && this.pinch(c);
  3443. } else
  3444. p && this.reset();
  3445. else
  3446. c.touches.length === 2 && this.pinch(c);
  3447. }, a.prototype.touchSelect = function(c) {
  3448. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  3449. }, a.prototype.zoomOption = function(c) {
  3450. var p = this.chart, i = p.options.chart;
  3451. p = p.inverted;
  3452. var l = i.zoomType || "";
  3453. /touch/.test(c.type) && (l = M(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;
  3454. }, a;
  3455. }(), y;
  3456. }), E(h, "Core/MSPointer.js", [h["Core/Globals.js"], h["Core/Pointer.js"], h["Core/Utilities.js"]], function(y, R, I) {
  3457. function Z() {
  3458. var C = [];
  3459. return C.item = function(b) {
  3460. return this[b];
  3461. }, d(O, function(b) {
  3462. C.push({ pageX: b.pageX, pageY: b.pageY, target: b.target });
  3463. }), C;
  3464. }
  3465. function H(C, b, M, x) {
  3466. var a = U[R.hoverChartIndex || NaN];
  3467. C.pointerType !== "touch" && C.pointerType !== C.MSPOINTER_TYPE_TOUCH || !a || (a = a.pointer, x(C), a[b]({ type: M, target: C.currentTarget, preventDefault: N, touches: Z() }));
  3468. }
  3469. var $ = this && this.__extends || function() {
  3470. var C = function(b, M) {
  3471. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  3472. x.__proto__ = a;
  3473. } || function(x, a) {
  3474. for (var c in a)
  3475. a.hasOwnProperty(c) && (x[c] = a[c]);
  3476. }, C(b, M);
  3477. };
  3478. return function(b, M) {
  3479. function x() {
  3480. this.constructor = b;
  3481. }
  3482. C(b, M), b.prototype = M === null ? Object.create(M) : (x.prototype = M.prototype, new x());
  3483. };
  3484. }(), U = y.charts, W = y.doc, N = y.noop, w = y.win, v = I.addEvent, u = I.css, d = I.objectEach, P = I.removeEvent, O = {}, B = !!w.PointerEvent;
  3485. return function(C) {
  3486. function b() {
  3487. return C !== null && C.apply(this, arguments) || this;
  3488. }
  3489. return $(b, C), b.isRequired = function() {
  3490. return !(y.hasTouch || !w.PointerEvent && !w.MSPointerEvent);
  3491. }, b.prototype.batchMSEvents = function(M) {
  3492. M(this.chart.container, B ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), M(this.chart.container, B ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), M(W, B ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  3493. }, b.prototype.destroy = function() {
  3494. this.batchMSEvents(P), C.prototype.destroy.call(this);
  3495. }, b.prototype.init = function(M, x) {
  3496. C.prototype.init.call(this, M, x), this.hasZoom && u(M.container, { "-ms-touch-action": "none", "touch-action": "none" });
  3497. }, b.prototype.onContainerPointerDown = function(M) {
  3498. H(M, "onContainerTouchStart", "touchstart", function(x) {
  3499. O[x.pointerId] = { pageX: x.pageX, pageY: x.pageY, target: x.currentTarget };
  3500. });
  3501. }, b.prototype.onContainerPointerMove = function(M) {
  3502. H(M, "onContainerTouchMove", "touchmove", function(x) {
  3503. O[x.pointerId] = {
  3504. pageX: x.pageX,
  3505. pageY: x.pageY
  3506. }, O[x.pointerId].target || (O[x.pointerId].target = x.currentTarget);
  3507. });
  3508. }, b.prototype.onDocumentPointerUp = function(M) {
  3509. H(M, "onDocumentTouchEnd", "touchend", function(x) {
  3510. delete O[x.pointerId];
  3511. });
  3512. }, b.prototype.setDOMEvents = function() {
  3513. C.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(v);
  3514. }, b;
  3515. }(R);
  3516. }), E(h, "Core/Legend/Legend.js", [
  3517. h["Core/Animation/AnimationUtilities.js"],
  3518. h["Core/FormatUtilities.js"],
  3519. h["Core/Globals.js"],
  3520. h["Core/Series/Point.js"],
  3521. h["Core/Renderer/RendererUtilities.js"],
  3522. h["Core/Utilities.js"]
  3523. ], function(y, R, I, Z, H, $) {
  3524. var U = y.animObject, W = y.setAnimation, N = R.format;
  3525. y = I.isFirefox;
  3526. var w = I.marginNames;
  3527. I = I.win;
  3528. var v = H.distribute, u = $.addEvent, d = $.createElement, P = $.css, O = $.defined, B = $.discardElement, C = $.find, b = $.fireEvent, M = $.isNumber, x = $.merge, a = $.pick, c = $.relativeLength, p = $.stableSort, i = $.syncTimeout;
  3529. return H = $.wrap, $ = function() {
  3530. function l(s, t) {
  3531. 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);
  3532. }
  3533. return l.prototype.init = function(s, t) {
  3534. this.chart = s, this.setOptions(t), t.enabled && (this.render(), u(this.chart, "endResize", function() {
  3535. this.legend.positionCheckboxes();
  3536. }), this.proximate ? this.unchartrender = u(this.chart, "render", function() {
  3537. this.legend.proximatePositions(), this.legend.positionItems();
  3538. }) : this.unchartrender && this.unchartrender());
  3539. }, l.prototype.setOptions = function(s) {
  3540. var t = a(s.padding, 8);
  3541. 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(
  3542. s.symbolWidth,
  3543. 16
  3544. ), this.pages = [], this.proximate = s.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  3545. }, l.prototype.update = function(s, t) {
  3546. var n = this.chart;
  3547. this.setOptions(x(!0, this.options, s)), this.destroy(), n.isDirtyLegend = n.isDirtyBox = !0, a(t, !0) && n.redraw(), b(this, "afterUpdate");
  3548. }, l.prototype.colorizeItem = function(s, t) {
  3549. if (s.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  3550. var n = this.options, o = s.legendItem, A = s.legendLine, _ = s.legendSymbol, D = this.itemHiddenStyle.color;
  3551. n = t ? n.itemStyle.color : D;
  3552. var j = t && s.color || D, T = s.options && s.options.marker, X = { fill: j };
  3553. o && o.css({ fill: n, color: n }), A && A.attr({ stroke: j }), _ && (T && _.isMarker && (X = s.pointAttribs(), t || (X.stroke = X.fill = D)), _.attr(X));
  3554. }
  3555. b(this, "afterColorizeItem", { item: s, visible: t });
  3556. }, l.prototype.positionItems = function() {
  3557. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  3558. }, l.prototype.positionItem = function(s) {
  3559. var t = this, n = this.options, o = n.symbolPadding, A = !n.rtl, _ = s._legendItemPos;
  3560. n = _[0], _ = _[1];
  3561. var D = s.checkbox, j = s.legendGroup;
  3562. j && j.element && (o = { translateX: A ? n : this.legendWidth - n - 2 * o - 4, translateY: _ }, A = function() {
  3563. b(t, "afterPositionItem", { item: s });
  3564. }, O(j.translateY) ? j.animate(o, void 0, A) : (j.attr(o), A())), D && (D.x = n, D.y = _);
  3565. }, l.prototype.destroyItem = function(s) {
  3566. var t = s.checkbox;
  3567. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(n) {
  3568. s[n] && (s[n] = s[n].destroy());
  3569. }), t && B(s.checkbox);
  3570. }, l.prototype.destroy = function() {
  3571. function s(t) {
  3572. this[t] && (this[t] = this[t].destroy());
  3573. }
  3574. this.getAllItems().forEach(function(t) {
  3575. [
  3576. "legendItem",
  3577. "legendGroup"
  3578. ].forEach(s, t);
  3579. }), "clipRect up down pager nav box title group".split(" ").forEach(s, this), this.display = null;
  3580. }, l.prototype.positionCheckboxes = function() {
  3581. var s = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, n = this.titleHeight;
  3582. if (s) {
  3583. var o = s.translateY;
  3584. this.allItems.forEach(function(A) {
  3585. var _ = A.checkbox;
  3586. if (_) {
  3587. var D = o + n + _.y + (this.scrollOffset || 0) + 3;
  3588. P(_, { left: s.translateX + A.checkboxOffset + _.x - 20 + "px", top: D + "px", display: this.proximate || D > o - 6 && D < o + t - 6 ? "" : "none" });
  3589. }
  3590. }, this);
  3591. }
  3592. }, l.prototype.renderTitle = function() {
  3593. var s = this.options, t = this.padding, n = s.title, o = 0;
  3594. n.text && (this.title || (this.title = this.chart.renderer.label(n.text, t - 3, t - 4, null, null, null, s.useHTML, null, "legend-title").attr({ zIndex: 1 }), this.chart.styledMode || this.title.css(n.style), this.title.add(this.group)), n.width || this.title.css({ width: this.maxLegendWidth + "px" }), s = this.title.getBBox(), o = s.height, this.offsetWidth = s.width, this.contentGroup.attr({ translateY: o })), this.titleHeight = o;
  3595. }, l.prototype.setText = function(s) {
  3596. var t = this.options;
  3597. s.legendItem.attr({ text: t.labelFormat ? N(t.labelFormat, s, this.chart) : t.labelFormatter.call(s) });
  3598. }, l.prototype.renderItem = function(s) {
  3599. var t = this.chart, n = t.renderer, o = this.options, A = this.symbolWidth, _ = o.symbolPadding || 0, D = this.itemStyle, j = this.itemHiddenStyle, T = o.layout === "horizontal" ? a(o.itemDistance, 20) : 0, X = !o.rtl, f = !s.series, m = !f && s.series.drawLegendSymbol ? s.series : s, L = m.options, Y = this.createCheckboxForItem && L && L.showCheckbox, F = o.useHTML, Q = s.options.className, k = s.legendItem;
  3600. L = A + _ + T + (Y ? 20 : 0), k || (s.legendGroup = n.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + s.colorIndex + (Q ? " " + Q : "") + (f ? " highcharts-series-" + s.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), s.legendItem = k = n.text("", X ? A + _ : -_, this.baseline || 0, F), t.styledMode || k.css(x(s.visible ? D : j)), k.attr({ align: X ? "left" : "right", zIndex: 2 }).add(s.legendGroup), this.baseline || (this.fontMetrics = n.fontMetrics(t.styledMode ? 12 : D.fontSize, k), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, k.attr("y", this.baseline), this.symbolHeight = o.symbolHeight || this.fontMetrics.f, o.squareSymbol && (this.symbolWidth = a(o.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, F)), Y && !s.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(s), this.colorizeItem(s, s.visible), !t.styledMode && D.width || k.css({ width: (o.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(s), t = k.getBBox(), n = this.fontMetrics && this.fontMetrics.h || 0, s.itemWidth = s.checkboxOffset = o.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 * n ? t.height : n));
  3601. }, l.prototype.layoutItem = function(s) {
  3602. var t = this.options, n = this.padding, o = t.layout === "horizontal", A = s.itemHeight, _ = this.itemMarginBottom, D = this.itemMarginTop, j = o ? a(t.itemDistance, 20) : 0, T = this.maxLegendWidth;
  3603. t = t.alignColumns && this.totalItemWidth > T ? this.maxItemWidth : s.itemWidth, o && this.itemX - n + t > T && (this.itemX = n, 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], o ? this.itemX += t : (this.itemY += D + A + _, this.lastLineHeight = A), this.offsetWidth = this.widthOption || Math.max((o ? this.itemX - n - (s.checkbox ? 0 : j) : t) + n, this.offsetWidth);
  3604. }, l.prototype.getAllItems = function() {
  3605. var s = [];
  3606. return this.chart.series.forEach(function(t) {
  3607. var n = t && t.options;
  3608. t && a(n.showInLegend, O(n.linkedTo) ? !1 : void 0, !0) && (s = s.concat(t.legendItems || (n.legendType === "point" ? t.data : t)));
  3609. }), b(this, "afterGetAllItems", { allItems: s }), s;
  3610. }, l.prototype.getAlignment = function() {
  3611. var s = this.options;
  3612. return this.proximate ? s.align.charAt(0) + "tv" : s.floating ? "" : s.align.charAt(0) + s.verticalAlign.charAt(0) + s.layout.charAt(0);
  3613. }, l.prototype.adjustMargins = function(s, t) {
  3614. var n = this.chart, o = this.options, A = this.getAlignment();
  3615. A && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  3616. _.test(A) && !O(s[D]) && (n[w[D]] = Math.max(n[w[D]], n.legend[(D + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][D] * o[D % 2 ? "x" : "y"] + a(o.margin, 12) + t[D] + (n.titleOffset[D] || 0)));
  3617. });
  3618. }, l.prototype.proximatePositions = function() {
  3619. var s = this.chart, t = [], n = this.options.align === "left";
  3620. this.allItems.forEach(function(o) {
  3621. var A, _ = n;
  3622. if (o.yAxis) {
  3623. o.xAxis.options.reversed && (_ = !_), o.points && (A = C(_ ? o.points : o.points.slice(0).reverse(), function(j) {
  3624. return M(j.plotY);
  3625. })), _ = this.itemMarginTop + o.legendItem.getBBox().height + this.itemMarginBottom;
  3626. var D = o.yAxis.top - s.plotTop;
  3627. o.visible ? (A = A ? A.plotY : o.yAxis.height, A += D - 0.3 * _) : A = D + o.yAxis.height, t.push({ target: A, size: _, item: o });
  3628. }
  3629. }, this), v(t, s.plotHeight).forEach(function(o) {
  3630. o.item._legendItemPos && (o.item._legendItemPos[1] = s.plotTop - s.spacing[0] + o.pos);
  3631. });
  3632. }, l.prototype.render = function() {
  3633. var s = this.chart, t = s.renderer, n = this.options, o = this.padding, A = this.getAllItems(), _ = this.group, D = this.box;
  3634. this.itemX = o, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(n.width, s.spacingBox.width - o);
  3635. var j = s.spacingBox.width - 2 * o - n.x;
  3636. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (j /= 2), this.maxLegendWidth = this.widthOption || j, _ || (this.group = _ = t.g("legend").addClass(n.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, f) {
  3637. return (X.options && X.options.legendIndex || 0) - (f.options && f.options.legendIndex || 0);
  3638. }), n.reversed && A.reverse(), this.allItems = A, this.display = j = !!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) + o;
  3639. var T = this.lastItemY + this.lastLineHeight + this.titleHeight;
  3640. T = this.handleOverflow(T), T += o, D || (this.box = D = t.rect().addClass("highcharts-legend-box").attr({ r: n.borderRadius }).add(_), D.isNew = !0), s.styledMode || D.attr({ stroke: n.borderColor, "stroke-width": n.borderWidth || 0, fill: n.backgroundColor || "none" }).shadow(n.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[j ? "show" : "hide"](), s.styledMode && _.getStyle("display") === "none" && (A = T = 0), this.legendWidth = A, this.legendHeight = T, j && this.align(), this.proximate || this.positionItems(), b(this, "afterRender");
  3641. }, l.prototype.align = function(s) {
  3642. s === void 0 && (s = this.chart.spacingBox);
  3643. var t = this.chart, n = this.options, o = s.y;
  3644. /(lth|ct|rth)/.test(this.getAlignment()) && 0 < t.titleOffset[0] ? o += t.titleOffset[0] : /(lbh|cb|rbh)/.test(this.getAlignment()) && 0 < t.titleOffset[2] && (o -= t.titleOffset[2]), o !== s.y && (s = x(s, { y: o })), this.group.align(x(n, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : n.verticalAlign }), !0, s);
  3645. }, l.prototype.handleOverflow = function(s) {
  3646. var t = this, n = this.chart, o = n.renderer, A = this.options, _ = A.y, D = A.verticalAlign === "top", j = this.padding, T = A.maxHeight, X = A.navigation, f = a(X.animation, !0), m = X.arrowSize || 12, L = this.pages, Y = this.allItems, F = function(q) {
  3647. typeof q == "number" ? V.attr({ height: q }) : V && (t.clipRect = V.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + j + "px,9999px," + (j + q) + "px,0)" : "auto");
  3648. }, Q = function(q) {
  3649. return t[q] = o.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(z), n.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  3650. }, k, G;
  3651. _ = n.spacingBox.height + (D ? -_ : _) - j;
  3652. var z = this.nav, V = this.clipRect;
  3653. 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 - j, 0), this.currentPage = a(this.currentPage, 1), this.fullHeight = s, Y.forEach(function(q, it) {
  3654. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  3655. (!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);
  3656. }), V || (V = t.clipRect = o.clipRect(0, j, 9999, 0), t.contentGroup.clip(V)), F(k), z || (this.nav = z = o.g().attr({ zIndex: 1 }).add(this.group), this.up = o.symbol("triangle", 0, 0, m, m).add(z), Q("upTracker").on(
  3657. "click",
  3658. function() {
  3659. t.scroll(-1, f);
  3660. }
  3661. ), this.pager = o.text("", 15, 10).addClass("highcharts-legend-navigation"), n.styledMode || this.pager.css(X.style), this.pager.add(z), this.down = o.symbol("triangle-down", 0, 0, m, m).add(z), Q("downTracker").on("click", function() {
  3662. t.scroll(1, f);
  3663. })), t.scroll(0), s = _) : z && (F(), this.nav = z.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), s;
  3664. }, l.prototype.scroll = function(s, t) {
  3665. var n = this, o = this.chart, A = this.pages, _ = A.length, D = this.clipHeight, j = this.options.navigation, T = this.pager, X = this.padding, f = this.currentPage + s;
  3666. f > _ && (f = _), 0 < f && (typeof t < "u" && W(t, o), this.nav.attr({ translateX: X, translateY: D + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  3667. m.attr({ class: f === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3668. }), T.attr({ text: f + "/" + _ }), [this.down, this.downTracker].forEach(
  3669. function(m) {
  3670. m.attr({ x: 18 + this.pager.getBBox().width, class: f === _ ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3671. },
  3672. this
  3673. ), o.styledMode || (this.up.attr({ fill: f === 1 ? j.inactiveColor : j.activeColor }), this.upTracker.css({ cursor: f === 1 ? "default" : "pointer" }), this.down.attr({ fill: f === _ ? j.inactiveColor : j.activeColor }), this.downTracker.css({ cursor: f === _ ? "default" : "pointer" })), this.scrollOffset = -A[f - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = f, this.positionCheckboxes(), s = U(a(t, o.renderer.globalAnimation, !0)), i(function() {
  3674. b(n, "afterScroll", { currentPage: f });
  3675. }, s.duration));
  3676. }, l.prototype.setItemEvents = function(s, t, n) {
  3677. var o = this, A = o.chart.renderer.boxWrapper, _ = s instanceof Z, D = "highcharts-legend-" + (_ ? "point" : "series") + "-active", j = o.chart.styledMode, T = function(X) {
  3678. o.allItems.forEach(function(f) {
  3679. s !== f && [f].concat(f.linkedSeries || []).forEach(function(m) {
  3680. m.setState(X, !_);
  3681. });
  3682. });
  3683. };
  3684. (n ? [t, s.legendSymbol] : [s.legendGroup]).forEach(function(X) {
  3685. X && X.on("mouseover", function() {
  3686. s.visible && T("inactive"), s.setState("hover"), s.visible && A.addClass(D), j || t.css(o.options.itemHoverStyle);
  3687. }).on("mouseout", function() {
  3688. o.chart.styledMode || t.css(x(s.visible ? o.itemStyle : o.itemHiddenStyle)), T(""), A.removeClass(D), s.setState();
  3689. }).on("click", function(f) {
  3690. var m = function() {
  3691. s.setVisible && s.setVisible(), T(s.visible ? "inactive" : "");
  3692. };
  3693. A.removeClass(D), f = { browserEvent: f }, s.firePointEvent ? s.firePointEvent("legendItemClick", f, m) : b(s, "legendItemClick", f, m);
  3694. });
  3695. });
  3696. }, l.prototype.createCheckboxForItem = function(s) {
  3697. s.checkbox = d(
  3698. "input",
  3699. { type: "checkbox", className: "highcharts-legend-checkbox", checked: s.selected, defaultChecked: s.selected },
  3700. this.options.itemCheckboxStyle,
  3701. this.chart.container
  3702. ), u(s.checkbox, "click", function(t) {
  3703. b(s.series || s, "checkboxClick", { checked: t.target.checked, item: s }, function() {
  3704. s.select();
  3705. });
  3706. });
  3707. }, l;
  3708. }(), (/Trident\/7\.0/.test(I.navigator && I.navigator.userAgent) || y) && H($.prototype, "positionItem", function(l, s) {
  3709. var t = this, n = function() {
  3710. s._legendItemPos && l.call(t, s);
  3711. };
  3712. n(), t.bubbleLegend || setTimeout(n);
  3713. }), $;
  3714. }), E(
  3715. h,
  3716. "Core/Series/SeriesRegistry.js",
  3717. [h["Core/Globals.js"], h["Core/DefaultOptions.js"], h["Core/Series/Point.js"], h["Core/Utilities.js"]],
  3718. function(y, R, I, Z) {
  3719. var H = R.defaultOptions, $ = Z.error, U = Z.extendClass, W = Z.merge, N;
  3720. return function(w) {
  3721. function v(u, d) {
  3722. var P = H.plotOptions || {}, O = d.defaultOptions;
  3723. d.prototype.pointClass || (d.prototype.pointClass = I), d.prototype.type = u, O && (P[u] = O), w.seriesTypes[u] = d;
  3724. }
  3725. w.seriesTypes = y.seriesTypes, w.getSeries = function(u, d) {
  3726. d === void 0 && (d = {});
  3727. var P = u.options.chart;
  3728. P = d.type || P.type || P.defaultSeriesType || "";
  3729. var O = w.seriesTypes[P];
  3730. return w || $(17, !0, u, { missingModuleFor: P }), P = new O(), typeof P.init == "function" && P.init(u, d), P;
  3731. }, w.registerSeriesType = v, w.seriesType = function(u, d, P, O, B) {
  3732. var C = H.plotOptions || {};
  3733. return d = d || "", C[u] = W(C[d], P), v(u, U(w.seriesTypes[d] || function() {
  3734. }, O)), w.seriesTypes[u].prototype.type = u, B && (w.seriesTypes[u].prototype.pointClass = U(I, B)), w.seriesTypes[u];
  3735. };
  3736. }(N || (N = {})), N;
  3737. }
  3738. ), E(h, "Core/Chart/Chart.js", [
  3739. h["Core/Animation/AnimationUtilities.js"],
  3740. h["Core/Axis/Axis.js"],
  3741. h["Core/FormatUtilities.js"],
  3742. h["Core/Foundation.js"],
  3743. h["Core/Globals.js"],
  3744. h["Core/Legend/Legend.js"],
  3745. h["Core/MSPointer.js"],
  3746. h["Core/DefaultOptions.js"],
  3747. h["Core/Pointer.js"],
  3748. h["Core/Renderer/RendererRegistry.js"],
  3749. h["Core/Series/SeriesRegistry.js"],
  3750. h["Core/Renderer/SVG/SVGRenderer.js"],
  3751. h["Core/Time.js"],
  3752. h["Core/Utilities.js"],
  3753. h["Core/Renderer/HTML/AST.js"]
  3754. ], function(y, R, I, Z, H, $, U, W, N, w, v, u, d, P, O) {
  3755. var B = y.animate, C = y.animObject, b = y.setAnimation, M = I.numberFormat, x = Z.registerEventOptions, a = H.charts, c = H.doc, p = H.marginNames, i = H.svg, l = H.win, s = W.defaultOptions, t = W.defaultTime, n = v.seriesTypes, o = P.addEvent, A = P.attr, _ = P.cleanRecursively, D = P.createElement, j = P.css, T = P.defined, X = P.discardElement, f = P.erase, m = P.error, L = P.extend, Y = P.find, F = P.fireEvent, Q = P.getStyle, k = P.isArray, G = P.isNumber, z = P.isObject, V = 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;
  3756. return y = function() {
  3757. function at(J, tt, st) {
  3758. 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);
  3759. }
  3760. return at.chart = function(J, tt, st) {
  3761. return new at(J, tt, st);
  3762. }, at.prototype.getArgs = function(J, tt, st) {
  3763. V(J) || J.nodeName ? (this.renderTo = J, this.init(tt, st)) : this.init(J, tt);
  3764. }, at.prototype.init = function(J, tt) {
  3765. var st = J.plotOptions || {};
  3766. F(this, "init", { args: arguments }, function() {
  3767. var ht = q(s, J), pt = ht.chart;
  3768. it(ht.plotOptions, function(yt, vt) {
  3769. z(yt) && (yt.tooltip = st[vt] && q(st[vt].tooltip) || void 0);
  3770. }), 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 d(J.time) : H.time, this.numberFormatter = pt.numberFormatter || M, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = a.length, a.push(this), H.chartCount++, x(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, F(this, "afterInit"), this.firstRender();
  3771. });
  3772. }, at.prototype.initSeries = function(J) {
  3773. var tt = this.options.chart;
  3774. tt = J.type || tt.type || tt.defaultSeriesType;
  3775. var st = n[tt];
  3776. return st || m(17, !0, this, { missingModuleFor: tt }), tt = new st(), typeof tt.init == "function" && tt.init(this, J), tt;
  3777. }, at.prototype.setSeriesData = function() {
  3778. this.getSeriesOrderByLinks().forEach(function(J) {
  3779. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  3780. });
  3781. }, at.prototype.getSeriesOrderByLinks = function() {
  3782. return this.series.concat().sort(function(J, tt) {
  3783. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  3784. });
  3785. }, at.prototype.orderSeries = function(J) {
  3786. var tt = this.series;
  3787. J = J || 0;
  3788. for (var st = tt.length; J < st; ++J)
  3789. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  3790. }, at.prototype.isInsidePlot = function(J, tt, st) {
  3791. st === void 0 && (st = {});
  3792. var ht = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Ct = this.scrollablePlotBox, Tt = 0, kt = 0;
  3793. st.visiblePlotOnly && this.scrollingContainer && (kt = this.scrollingContainer, Tt = kt.scrollLeft, kt = kt.scrollTop);
  3794. var St = st.series;
  3795. 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) {
  3796. var _t = St && (ht ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  3797. Ct = st.paneCoordinates ? _t.pos + Ct : yt + Ct, Ct >= Math.max(Tt + yt, _t.pos) && Ct <= Math.min(Tt + yt + pt.width, _t.pos + _t.len) || (J.isInsidePlot = !1);
  3798. }
  3799. 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)), F(this, "afterIsInsidePlot", J), J.isInsidePlot;
  3800. }, at.prototype.redraw = function(J) {
  3801. F(this, "beforeRedraw");
  3802. 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(), Tt = [], kt = this.isDirtyBox, St = this.isDirtyLegend;
  3803. for (this.setResponsive && this.setResponsive(!1), b(this.hasRendered ? J : !1, this), Ct && this.temporaryDisplay(), this.layOutTitles(), J = st.length; J--; ) {
  3804. var _t = st[J];
  3805. if (_t.options.stacking || _t.options.centerInCategory) {
  3806. var Lt = !0;
  3807. if (_t.isDirty) {
  3808. var Nt = !0;
  3809. break;
  3810. }
  3811. }
  3812. }
  3813. if (Nt)
  3814. for (J = st.length; J--; )
  3815. _t = st[J], _t.options.stacking && (_t.isDirty = !0);
  3816. st.forEach(function(Et) {
  3817. Et.isDirty && (Et.options.legendType === "point" ? (typeof Et.updateTotals == "function" && Et.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Et.isDirtyData && F(Et, "updatedData");
  3818. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), Lt && this.getStacks(), tt.forEach(function(Et) {
  3819. Et.updateNames(), Et.setScale();
  3820. }), this.getMargins(), tt.forEach(function(Et) {
  3821. Et.isDirty && (kt = !0);
  3822. }), tt.forEach(function(Et) {
  3823. var Kt = Et.min + "," + Et.max;
  3824. Et.extKey !== Kt && (Et.extKey = Kt, Tt.push(function() {
  3825. F(Et, "afterSetExtremes", L(Et.eventArgs, Et.getExtremes())), delete Et.eventArgs;
  3826. })), (kt || Lt) && Et.redraw();
  3827. }), kt && this.drawChartBox(), F(this, "predraw"), st.forEach(function(Et) {
  3828. (kt || Et.isDirty) && Et.visible && Et.redraw(), Et.isDirtyData = !1;
  3829. }), ht && ht.reset(!0), vt.draw(), F(this, "redraw"), F(this, "render"), Ct && this.temporaryDisplay(!0), Tt.forEach(function(Et) {
  3830. Et.call();
  3831. });
  3832. }, at.prototype.get = function(J) {
  3833. function tt(yt) {
  3834. return yt.id === J || yt.options && yt.options.id === J;
  3835. }
  3836. for (var st = this.series, ht = Y(this.axes, tt) || Y(this.series, tt), pt = 0; !ht && pt < st.length; pt++)
  3837. ht = Y(st[pt].points || [], tt);
  3838. return ht;
  3839. }, at.prototype.getAxes = function() {
  3840. var J = this, tt = this.options, st = tt.xAxis = gt(tt.xAxis || {});
  3841. tt = tt.yAxis = gt(tt.yAxis || {}), F(this, "getAxes"), st.forEach(function(ht, pt) {
  3842. ht.index = pt, ht.isX = !0;
  3843. }), tt.forEach(function(ht, pt) {
  3844. ht.index = pt;
  3845. }), st.concat(tt).forEach(function(ht) {
  3846. new R(J, ht);
  3847. }), F(this, "afterGetAxes");
  3848. }, at.prototype.getSelectedPoints = function() {
  3849. return this.series.reduce(function(J, tt) {
  3850. return tt.getPointsCollection().forEach(function(st) {
  3851. et(st.selectedStaging, st.selected) && J.push(st);
  3852. }), J;
  3853. }, []);
  3854. }, at.prototype.getSelectedSeries = function() {
  3855. return this.series.filter(function(J) {
  3856. return J.selected;
  3857. });
  3858. }, at.prototype.setTitle = function(J, tt, st) {
  3859. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription("caption", void 0), this.layOutTitles(st);
  3860. }, at.prototype.applyDescription = function(J, tt) {
  3861. var st = this, ht = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  3862. ht = this.options[J] = q(!this.styledMode && { style: ht }, this.options[J], tt);
  3863. var pt = this[J];
  3864. 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) {
  3865. st[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  3866. }, this.styledMode || pt.css(ht.style), this[J] = pt);
  3867. }, at.prototype.layOutTitles = function(J) {
  3868. var tt = [0, 0, 0], st = this.renderer, ht = this.spacingBox;
  3869. ["title", "subtitle", "caption"].forEach(function(yt) {
  3870. var vt = this[yt], Ct = this.options[yt], Tt = Ct.verticalAlign || "top";
  3871. yt = yt === "title" ? Tt === "top" ? -3 : 0 : Tt === "top" ? tt[0] + 2 : 0;
  3872. var kt;
  3873. if (vt) {
  3874. 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" });
  3875. var St = Math.round(vt.getBBox(Ct.useHTML).height);
  3876. vt.align(
  3877. L({ y: Tt === "bottom" ? kt : yt + kt, height: St }, Ct),
  3878. !1,
  3879. "spacingBox"
  3880. ), Ct.floating || (Tt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Tt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  3881. }
  3882. }, 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);
  3883. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  3884. this.titleOffset = tt, F(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  3885. }, at.prototype.getChartSize = function() {
  3886. var J = this.options.chart, tt = J.width;
  3887. J = J.height;
  3888. var st = this.renderTo;
  3889. 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));
  3890. }, at.prototype.temporaryDisplay = function(J) {
  3891. var tt = this.renderTo;
  3892. if (J)
  3893. for (; tt && tt.style; )
  3894. tt.hcOrigStyle && (j(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  3895. else
  3896. 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), j(tt, J), tt.offsetWidth || tt.style.setProperty("display", "block", "important")), tt = tt.parentNode, tt !== c.body); )
  3897. ;
  3898. }, at.prototype.setClassName = function(J) {
  3899. this.container.className = "highcharts-container " + (J || "");
  3900. }, at.prototype.getContainer = function() {
  3901. var J = this.options, tt = J.chart, st = lt(), ht, pt = this.renderTo;
  3902. pt || (this.renderTo = pt = tt.renderTo), V(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  3903. var yt = nt(A(pt, "data-highcharts-chart"));
  3904. 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;
  3905. var vt = this.chartHeight;
  3906. if (j(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 ? w.getRendererType(tt.renderer) : u)(st, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), b(
  3907. void 0,
  3908. this
  3909. ), this.setClassName(tt.className), this.styledMode)
  3910. for (var Ct in J.defs)
  3911. this.renderer.definition(J.defs[Ct]);
  3912. else
  3913. this.renderer.setStyle(tt.style);
  3914. this.renderer.chartIndex = this.index, F(this, "afterGetContainer");
  3915. }, at.prototype.getMargins = function(J) {
  3916. var tt = this.spacing, st = this.margin, ht = this.titleOffset;
  3917. 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(
  3918. st,
  3919. tt
  3920. ), F(this, "getMargins"), J || this.getAxisMargins();
  3921. }, at.prototype.getAxisMargins = function() {
  3922. var J = this, tt = J.axisOffset = [0, 0, 0, 0], st = J.colorAxis, ht = J.margin, pt = function(yt) {
  3923. yt.forEach(function(vt) {
  3924. vt.visible && vt.getOffset();
  3925. });
  3926. };
  3927. J.hasCartesianSeries ? pt(J.axes) : st && st.length && pt(st), p.forEach(function(yt, vt) {
  3928. T(ht[vt]) || (J[yt] += tt[vt]);
  3929. }), J.setChartSize();
  3930. }, at.prototype.reflow = function(J) {
  3931. var tt = this, st = tt.options.chart, ht = tt.renderTo, pt = T(st.width) && T(st.height), yt = st.width || Q(ht, "width");
  3932. 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() {
  3933. tt.container && tt.setSize(void 0, void 0, !1);
  3934. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = st);
  3935. }, at.prototype.setReflow = function(J) {
  3936. var tt = this;
  3937. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = o(l, "resize", function(st) {
  3938. tt.options && tt.reflow(st);
  3939. }), o(this, "destroy", this.unbindReflow));
  3940. }, at.prototype.setSize = function(J, tt, st) {
  3941. var ht = this, pt = ht.renderer;
  3942. 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 ? B : j)(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) {
  3943. yt.isDirty = !0, yt.setScale();
  3944. }), ht.isDirtyLegend = !0, ht.isDirtyBox = !0, ht.layOutTitles(), ht.getMargins(), ht.redraw(st), ht.oldChartHeight = null, F(ht, "resize"), dt(function() {
  3945. ht && F(ht, "endResize", null, function() {
  3946. --ht.isResizing;
  3947. });
  3948. }, C(st).duration);
  3949. }, at.prototype.setChartSize = function(J) {
  3950. var tt = this.inverted, st = this.renderer, ht = this.chartWidth, pt = this.chartHeight, yt = this.options.chart, vt = this.spacing, Ct = this.clipOffset, Tt, kt, St, _t;
  3951. this.plotLeft = Tt = Math.round(this.plotLeft), this.plotTop = kt = Math.round(this.plotTop), this.plotWidth = St = Math.max(0, Math.round(ht - Tt - this.marginRight)), this.plotHeight = _t = Math.max(0, Math.round(pt - kt - this.marginBottom)), this.plotSizeX = tt ? _t : St, this.plotSizeY = tt ? St : _t, 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: Tt, y: kt, width: St, height: _t }, 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) {
  3952. Lt.setAxisSize(), Lt.setAxisTranslation();
  3953. }), st.alignElements()), F(this, "afterSetChartSize", { skipAxes: J });
  3954. }, at.prototype.resetMargins = function() {
  3955. F(this, "resetMargins");
  3956. var J = this, tt = J.options.chart;
  3957. ["margin", "spacing"].forEach(function(st) {
  3958. var ht = tt[st], pt = z(ht) ? ht : [ht, ht, ht, ht];
  3959. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  3960. J[st][vt] = et(tt[st + yt], pt[vt]);
  3961. });
  3962. }), p.forEach(function(st, ht) {
  3963. J[st] = et(J.margin[ht], J.spacing[ht]);
  3964. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  3965. }, at.prototype.drawChartBox = function() {
  3966. 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, Tt = J.plotBackgroundImage, kt = this.plotLeft, St = this.plotTop, _t = 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";
  3967. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), zt = "attr"), pt)
  3968. var Vt = be = Gt.strokeWidth();
  3969. else
  3970. 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);
  3971. 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), Tt && (yt ? (Tt !== yt.attr("href") && yt.attr("href", Tt), yt.animate(Nt)) : this.plotBGImage = tt.image(Tt, kt, St, _t, 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: _t, height: Lt }, -Jt.strokeWidth())), this.isDirtyBox = !1, F(this, "afterDrawChartBox");
  3972. }, at.prototype.propFromSeries = function() {
  3973. var J = this, tt = J.options.chart, st = J.options.series, ht, pt, yt;
  3974. ["inverted", "angular", "polar"].forEach(function(vt) {
  3975. for (pt = n[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], ht = st && st.length; !yt && ht--; )
  3976. (pt = n[st[ht].type]) && pt.prototype[vt] && (yt = !0);
  3977. J[vt] = yt;
  3978. });
  3979. }, at.prototype.linkSeries = function() {
  3980. var J = this, tt = J.series;
  3981. tt.forEach(function(st) {
  3982. st.linkedSeries.length = 0;
  3983. }), tt.forEach(function(st) {
  3984. var ht = st.options.linkedTo;
  3985. V(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));
  3986. }), F(this, "afterLinkSeries");
  3987. }, at.prototype.renderSeries = function() {
  3988. this.series.forEach(function(J) {
  3989. J.translate(), J.render();
  3990. });
  3991. }, at.prototype.renderLabels = function() {
  3992. var J = this, tt = J.options.labels;
  3993. tt.items && tt.items.forEach(function(st) {
  3994. var ht = L(tt.style, st.style), pt = nt(ht.left) + J.plotLeft, yt = nt(ht.top) + J.plotTop + 12;
  3995. delete ht.left, delete ht.top, J.renderer.text(st.html, pt, yt).attr({ zIndex: 2 }).css(ht).add();
  3996. });
  3997. }, at.prototype.render = function() {
  3998. var J = this.axes, tt = this.colorAxis, st = this.renderer, ht = this.options, pt = function(kt) {
  3999. kt.forEach(function(St) {
  4000. St.visible && St.render();
  4001. });
  4002. }, yt = 0;
  4003. this.setTitle(), this.legend = new $(this, ht.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), ht = this.plotWidth, J.some(function(kt) {
  4004. if (kt.horiz && kt.visible && kt.options.labels.enabled && kt.series.length)
  4005. return yt = 21, !0;
  4006. });
  4007. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  4008. J.forEach(function(kt) {
  4009. kt.setScale();
  4010. }), this.getAxisMargins();
  4011. var Ct = 1.1 < ht / this.plotWidth, Tt = 1.05 < vt / this.plotHeight;
  4012. (Ct || Tt) && (J.forEach(function(kt) {
  4013. (kt.horiz && Ct || !kt.horiz && Tt) && kt.setTickInterval(!0);
  4014. }), 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;
  4015. }, at.prototype.addCredits = function(J) {
  4016. var tt = this, st = q(!0, this.options.credits, J);
  4017. st.enabled && !this.credits && (this.credits = this.renderer.text(st.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  4018. st.href && (l.location.href = st.href);
  4019. }).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) {
  4020. tt.credits = tt.credits.destroy(), tt.addCredits(ht);
  4021. });
  4022. }, at.prototype.destroy = function() {
  4023. var J = this, tt = J.axes, st = J.series, ht = J.container, pt = ht && ht.parentNode, yt;
  4024. for (F(J, "destroy"), J.renderer.forExport ? f(a, J) : a[J.index] = void 0, H.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  4025. tt[yt] = tt[yt].destroy();
  4026. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = st.length; yt--; )
  4027. st[yt] = st[yt].destroy();
  4028. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  4029. var Ct = J[vt];
  4030. Ct && Ct.destroy && (J[vt] = Ct.destroy());
  4031. }), ht && (ht.innerHTML = O.emptyHTML, ct(ht), pt && X(ht)), it(J, function(vt, Ct) {
  4032. delete J[Ct];
  4033. });
  4034. }, at.prototype.firstRender = function() {
  4035. var J = this, tt = J.options;
  4036. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (k(tt.series) ? tt.series : []).forEach(function(st) {
  4037. J.initSeries(st);
  4038. }), J.linkSeries(), J.setSeriesData(), F(J, "beforeRender"), N && (U.isRequired() ? J.pointer = new U(J, tt) : J.pointer = new N(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  4039. }, at.prototype.onload = function() {
  4040. this.callbacks.concat([this.callback]).forEach(function(J) {
  4041. J && typeof this.index < "u" && J.apply(this, [this]);
  4042. }, this), F(this, "load"), F(this, "render"), T(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  4043. }, at.prototype.addSeries = function(J, tt, st) {
  4044. var ht = this, pt;
  4045. return J && (tt = et(tt, !0), F(ht, "addSeries", { options: J }, function() {
  4046. pt = ht.initSeries(J), ht.isDirtyLegend = !0, ht.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), F(ht, "afterAddSeries", { series: pt }), tt && ht.redraw(st);
  4047. })), pt;
  4048. }, at.prototype.addAxis = function(J, tt, st, ht) {
  4049. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: st, animation: ht });
  4050. }, at.prototype.addColorAxis = function(J, tt, st) {
  4051. return this.createAxis("colorAxis", { axis: J, redraw: tt, animation: st });
  4052. }, at.prototype.createAxis = function(J, tt) {
  4053. return J = new R(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  4054. }, at.prototype.showLoading = function(J) {
  4055. var tt = this, st = tt.options, ht = st.loading, pt = function() {
  4056. yt && j(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  4057. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  4058. yt || (tt.loadingDiv = yt = D("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = D(
  4059. "span",
  4060. { className: "highcharts-loading-inner" },
  4061. null,
  4062. yt
  4063. ), o(tt, "redraw", pt)), yt.className = "highcharts-loading", O.setElementHTML(vt, et(J, st.lang.loading, "")), tt.styledMode || (j(yt, L(ht.style, { zIndex: 10 })), j(vt, ht.labelStyle), tt.loadingShown || (j(yt, { opacity: 0, display: "" }), B(yt, { opacity: ht.style.opacity || 0.5 }, { duration: ht.showDuration || 0 }))), tt.loadingShown = !0, pt();
  4064. }, at.prototype.hideLoading = function() {
  4065. var J = this.options, tt = this.loadingDiv;
  4066. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || B(tt, { opacity: 0 }, {
  4067. duration: J.loading.hideDuration || 100,
  4068. complete: function() {
  4069. j(tt, { display: "none" });
  4070. }
  4071. })), this.loadingShown = !1;
  4072. }, at.prototype.update = function(J, tt, st, ht) {
  4073. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Ct = [], Tt, kt;
  4074. F(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = _(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  4075. var St = J.chart;
  4076. if (St) {
  4077. 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) {
  4078. pt.propFromSeries();
  4079. var _t = !0;
  4080. }
  4081. "alignTicks" in St && (_t = !0), "events" in St && x(this, St), it(St, function(Lt, Nt) {
  4082. pt.propsRequireUpdateSeries.indexOf("chart." + Nt) !== -1 && (Tt = !0), pt.propsRequireDirtyBox.indexOf(Nt) !== -1 && (pt.isDirtyBox = !0), pt.propsRequireReflow.indexOf(Nt) !== -1 && (vt ? pt.isDirtyBox = !0 : kt = !0);
  4083. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  4084. }
  4085. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new d(J.time)), q(!0, pt.options.time, J.time)), it(J, function(Lt, Nt) {
  4086. 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 && (Tt = !0);
  4087. }), this.collectionsWithUpdate.forEach(function(Lt) {
  4088. if (J[Lt]) {
  4089. var Nt = [];
  4090. pt[Lt].forEach(function(Et, Kt) {
  4091. Et.options.isInternal || Nt.push(et(Et.options.index, Kt));
  4092. }), gt(J[Lt]).forEach(function(Et, Kt) {
  4093. var Gt = T(Et.id), Wt;
  4094. 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);
  4095. }), st && pt[Lt].forEach(function(Et) {
  4096. Et.touched || Et.options.isInternal ? delete Et.touched : Ct.push(Et);
  4097. });
  4098. }
  4099. }), Ct.forEach(function(Lt) {
  4100. Lt.chart && Lt.remove && Lt.remove(!1);
  4101. }), _t && pt.axes.forEach(function(Lt) {
  4102. Lt.update({}, !1);
  4103. }), Tt && pt.getSeriesOrderByLinks().forEach(function(Lt) {
  4104. Lt.chart && Lt.update({}, !1);
  4105. }, this), _t = St && St.width, St = St && (V(St.height) ? rt(St.height, _t || pt.chartWidth) : St.height), kt || G(_t) && _t !== pt.chartWidth || G(St) && St !== pt.chartHeight ? pt.setSize(_t, St, ht) : et(tt, !0) && pt.redraw(ht), F(pt, "afterUpdate", { options: J, redraw: tt, animation: ht });
  4106. }, at.prototype.setSubtitle = function(J, tt) {
  4107. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  4108. }, at.prototype.setCaption = function(J, tt) {
  4109. this.applyDescription("caption", J), this.layOutTitles(tt);
  4110. }, at.prototype.showResetZoom = function() {
  4111. function J() {
  4112. tt.zoomOut();
  4113. }
  4114. 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";
  4115. F(this, "beforeShowResetZoom", null, function() {
  4116. 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);
  4117. }), F(this, "afterShowResetZoom");
  4118. }, at.prototype.zoomOut = function() {
  4119. F(this, "selection", { resetSelection: !0 }, this.zoom);
  4120. }, at.prototype.zoom = function(J) {
  4121. var tt = this, st = tt.pointer, ht = tt.inverted ? st.mouseDownX : st.mouseDownY, pt = !1, yt;
  4122. !J || J.resetSelection ? (tt.axes.forEach(function(Ct) {
  4123. yt = Ct.zoom();
  4124. }), st.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Ct) {
  4125. var Tt = Ct.axis, kt = tt.inverted ? Tt.left : Tt.top, St = tt.inverted ? kt + Tt.width : kt + Tt.height, _t = Tt.isXAxis, Lt = !1;
  4126. (!_t && ht >= kt && ht <= St || _t || !T(ht)) && (Lt = !0), st[_t ? "zoomX" : "zoomY"] && Lt && (yt = Tt.zoom(Ct.min, Ct.max), Tt.displayBtn && (pt = !0));
  4127. });
  4128. var vt = tt.resetZoomButton;
  4129. pt && !vt ? tt.showResetZoom() : !pt && z(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  4130. tt.options.chart.animation,
  4131. J && J.animation,
  4132. 100 > tt.pointCount
  4133. ));
  4134. }, at.prototype.pan = function(J, tt) {
  4135. var st = this, ht = st.hoverPoints;
  4136. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  4137. var pt = st.options.chart, yt = st.options.mapNavigation && st.options.mapNavigation.enabled;
  4138. pt && pt.panning && (pt.panning = tt);
  4139. var vt = tt.type, Ct;
  4140. F(this, "pan", { originalEvent: J }, function() {
  4141. ht && ht.forEach(function(St) {
  4142. St.setState();
  4143. });
  4144. var Tt = st.xAxis;
  4145. vt === "xy" ? Tt = Tt.concat(st.yAxis) : vt === "y" && (Tt = st.yAxis);
  4146. var kt = {};
  4147. Tt.forEach(function(St) {
  4148. if (St.options.panningEnabled && !St.options.isInternal) {
  4149. var _t = St.horiz, Lt = J[_t ? "chartX" : "chartY"];
  4150. _t = _t ? "mouseDownX" : "mouseDownY";
  4151. var Nt = st[_t], 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;
  4152. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  4153. var zt = St.panningState;
  4154. !Kt || St.isXAxis || zt && !zt.isDirty || St.series.forEach(function(Vt) {
  4155. var Me = Vt.getProcessedData(!0);
  4156. 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));
  4157. }), 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[_t] = Lt);
  4158. }
  4159. }), it(kt, function(St, _t) {
  4160. st[_t] = St;
  4161. }), Ct && st.redraw(!1), j(st.container, { cursor: "move" });
  4162. });
  4163. }, at;
  4164. }(), L(y.prototype, {
  4165. callbacks: [],
  4166. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  4167. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  4168. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  4169. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  4170. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  4171. }), y;
  4172. }), E(h, "Core/Legend/LegendSymbol.js", [h["Core/Utilities.js"]], function(y) {
  4173. var R = y.merge, I = y.pick, Z;
  4174. return function(H) {
  4175. H.drawLineMarker = function($) {
  4176. var U = this.options, W = $.symbolWidth, N = $.symbolHeight, w = N / 2, v = this.chart.renderer, u = this.legendGroup;
  4177. $ = $.baseline - Math.round(0.3 * $.fontMetrics.b);
  4178. var d = {}, P = U.marker;
  4179. this.chart.styledMode || (d = { "stroke-width": U.lineWidth || 0 }, U.dashStyle && (d.dashstyle = U.dashStyle)), this.legendLine = v.path([["M", 0, $], ["L", W, $]]).addClass("highcharts-graph").attr(d).add(u), P && P.enabled !== !1 && W && (U = Math.min(I(P.radius, w), w), this.symbol.indexOf("url") === 0 && (P = R(P, { width: N, height: N }), U = 0), this.legendSymbol = W = v.symbol(this.symbol, W / 2 - U, $ - U, 2 * U, 2 * U, P).addClass("highcharts-point").add(u), W.isMarker = !0);
  4180. }, H.drawRectangle = function($, U) {
  4181. var W = $.symbolHeight, N = $.options.squareSymbol;
  4182. U.legendSymbol = this.chart.renderer.rect(N ? ($.symbolWidth - W) / 2 : 0, $.baseline - W + 1, N ? W : $.symbolWidth, W, I($.options.symbolRadius, W / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(U.legendGroup);
  4183. };
  4184. }(Z || (Z = {})), Z;
  4185. }), E(h, "Core/Series/SeriesDefaults.js", [], function() {
  4186. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  4187. normal: { animation: !0 },
  4188. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  4189. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  4190. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  4191. var y = this.series.chart.numberFormatter;
  4192. return typeof this.y != "number" ? "" : y(this.y, -1);
  4193. }, 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: {
  4194. normal: { animation: !0 },
  4195. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  4196. select: { animation: { duration: 0 } },
  4197. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  4198. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  4199. }), E(h, "Core/Series/Series.js", [
  4200. h["Core/Animation/AnimationUtilities.js"],
  4201. h["Core/DefaultOptions.js"],
  4202. h["Core/Foundation.js"],
  4203. h["Core/Globals.js"],
  4204. h["Core/Legend/LegendSymbol.js"],
  4205. h["Core/Series/Point.js"],
  4206. h["Core/Series/SeriesDefaults.js"],
  4207. h["Core/Series/SeriesRegistry.js"],
  4208. h["Core/Renderer/SVG/SVGElement.js"],
  4209. h["Core/Utilities.js"]
  4210. ], function(y, R, I, Z, H, $, U, W, N, w) {
  4211. var v = y.animObject, u = y.setAnimation, d = R.defaultOptions, P = I.registerEventOptions, O = Z.hasTouch, B = Z.svg, C = Z.win, b = W.seriesTypes, M = w.addEvent, x = w.arrayMax, a = w.arrayMin, c = w.clamp, p = w.cleanRecursively, i = w.correctFloat, l = w.defined, s = w.erase, t = w.error, n = w.extend, o = w.find, A = w.fireEvent, _ = w.getNestedProperty, D = w.isArray, j = w.isNumber, T = w.isString, X = w.merge, f = w.objectEach, m = w.pick, L = w.removeEvent, Y = w.splat, F = w.syncTimeout;
  4212. return y = function() {
  4213. function Q() {
  4214. 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;
  4215. }
  4216. return Q.prototype.init = function(k, G) {
  4217. A(this, "init", { options: G });
  4218. var z = this, V = k.series;
  4219. this.eventsToUnbind = [], z.chart = k, z.options = z.setOptions(G), G = z.options, z.linkedSeries = [], z.bindAxes(), n(z, { name: G.name, state: "", visible: G.visible !== !1, selected: G.selected === !0 }), P(this, G);
  4220. var q = G.events;
  4221. (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) {
  4222. z[et + "Data"] || (z[et + "Data"] = []);
  4223. }), z.isCartesian && (k.hasCartesianSeries = !0);
  4224. var it;
  4225. V.length && (it = V[V.length - 1]), z._i = m(it && it._i, -1) + 1, z.opacity = z.options.opacity, k.orderSeries(this.insert(V)), G.dataSorting && G.dataSorting.enabled ? z.setDataSortingOptions() : z.points || z.data || z.setData(G.data, !1), A(this, "afterInit");
  4226. }, Q.prototype.is = function(k) {
  4227. return b[k] && this instanceof b[k];
  4228. }, Q.prototype.insert = function(k) {
  4229. var G = this.options.index, z;
  4230. if (j(G)) {
  4231. for (z = k.length; z--; )
  4232. if (G >= m(k[z].options.index, k[z]._i)) {
  4233. k.splice(z + 1, 0, this);
  4234. break;
  4235. }
  4236. z === -1 && k.unshift(this), z += 1;
  4237. } else
  4238. k.push(this);
  4239. return m(z, k.length - 1);
  4240. }, Q.prototype.bindAxes = function() {
  4241. var k = this, G = k.options, z = k.chart, V;
  4242. A(this, "bindAxes", null, function() {
  4243. (k.axisTypes || []).forEach(function(q) {
  4244. var it = 0;
  4245. z[q].forEach(function(et) {
  4246. V = et.options, (G[q] === it && !V.isInternal || typeof G[q] < "u" && G[q] === V.id || typeof G[q] > "u" && V.index === 0) && (k.insert(et.series), k[q] = et, et.isDirty = !0), V.isInternal || it++;
  4247. }), k[q] || k.optionalAxis === q || t(18, !0, z);
  4248. });
  4249. }), A(this, "afterBindAxes");
  4250. }, Q.prototype.updateParallelArrays = function(k, G) {
  4251. var z = k.series, V = arguments, q = j(G) ? function(it) {
  4252. var et = it === "y" && z.toYData ? z.toYData(k) : k[it];
  4253. z[it + "Data"][G] = et;
  4254. } : function(it) {
  4255. Array.prototype[G].apply(z[it + "Data"], Array.prototype.slice.call(V, 2));
  4256. };
  4257. z.parallelArrays.forEach(q);
  4258. }, Q.prototype.hasData = function() {
  4259. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  4260. }, Q.prototype.autoIncrement = function(k) {
  4261. var G = this.options, z = G.pointIntervalUnit, V = G.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  4262. return it = m(it, G.pointStart, 0), this.pointInterval = et = m(this.pointInterval, G.pointInterval, 1), V && j(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), V && j(k) ? it + et : (this.xIncrement = it + et, it);
  4263. }, Q.prototype.setDataSortingOptions = function() {
  4264. var k = this.options;
  4265. n(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), l(k.pointRange) || (k.pointRange = 1);
  4266. }, Q.prototype.setOptions = function(k) {
  4267. var G = this.chart, z = G.options, V = z.plotOptions, q = G.userOptions || {};
  4268. k = X(k), G = G.styledMode;
  4269. var it = { plotOptions: V, userOptions: k };
  4270. A(this, "setOptions", it);
  4271. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  4272. return this.userOptions = it.userOptions, q = X(et, V.series, q.plotOptions && q.plotOptions[this.type], k), this.tooltipOptions = X(d.tooltip, d.plotOptions.series && d.plotOptions.series.tooltip, d.plotOptions[this.type].tooltip, z.tooltip.userOptions, V.series && V.series.tooltip, V[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, V = 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), V.push(z)), V.length && l(V[V.length - 1].value) && V.push(G ? {} : { color: this.color, fillColor: this.fillColor }), A(this, "afterSetOptions", { options: q }), q;
  4273. }, Q.prototype.getName = function() {
  4274. return m(this.options.name, "Series " + (this.index + 1));
  4275. }, Q.prototype.getCyclic = function(k, G, z) {
  4276. var V = this.chart, q = this.userOptions, it = k + "Index", et = k + "Counter", nt = z ? z.length : m(V.options.chart[k + "Count"], V[k + "Count"]);
  4277. if (!G) {
  4278. var rt = m(q[it], q["_" + it]);
  4279. l(rt) || (V.series.length || (V[et] = 0), q["_" + it] = rt = V[et] % nt, V[et] += 1), z && (G = z[rt]);
  4280. }
  4281. typeof rt < "u" && (this[it] = rt), this[k] = G;
  4282. }, Q.prototype.getColor = function() {
  4283. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || d.plotOptions[this.type].color, this.chart.options.colors);
  4284. }, Q.prototype.getPointsCollection = function() {
  4285. return (this.hasGroupedData ? this.points : this.data) || [];
  4286. }, Q.prototype.getSymbol = function() {
  4287. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  4288. }, Q.prototype.findPointIndex = function(k, G) {
  4289. var z = k.id, V = k.x, q = this.points, it = this.options.dataSorting, et, nt;
  4290. if (z)
  4291. it = this.chart.get(z), it instanceof $ && (et = it);
  4292. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  4293. return !ct.touched && ct.index === k.index;
  4294. }, it && it.matchByName ? et = function(ct) {
  4295. return !ct.touched && ct.name === k.name;
  4296. } : this.options.relativeXValue && (et = function(ct) {
  4297. return !ct.touched && ct.options.x === k.x;
  4298. }), et = o(q, et), !et))
  4299. return;
  4300. if (et) {
  4301. var rt = et && et.index;
  4302. typeof rt < "u" && (nt = !0);
  4303. }
  4304. return typeof rt > "u" && j(V) && (rt = this.xData.indexOf(V, G)), rt !== -1 && typeof rt < "u" && this.cropped && (rt = rt >= this.cropStart ? rt - this.cropStart : rt), !nt && j(rt) && q[rt] && q[rt].touched && (rt = void 0), rt;
  4305. }, Q.prototype.updateData = function(k, G) {
  4306. var z = this.options, V = z.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = k.length === q.length, rt, ct, gt, dt = !0;
  4307. if (this.xIncrement = null, k.forEach(function(lt, at) {
  4308. var J = l(lt) && this.pointClass.prototype.optionsToObject.call({ series: this }, lt) || {}, tt = J.x;
  4309. J.id || j(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 || V && V.enabled || this.hasDerivedData) && (rt = !0)) : it.push(lt);
  4310. }, this), rt)
  4311. for (k = q.length; k--; )
  4312. (ct = q[k]) && !ct.touched && ct.remove && ct.remove(!1, G);
  4313. else
  4314. !nt || V && V.enabled ? dt = !1 : (k.forEach(function(lt, at) {
  4315. lt !== q[at].y && q[at].update && q[at].update(
  4316. lt,
  4317. !1,
  4318. null,
  4319. !1
  4320. );
  4321. }), it.length = 0);
  4322. return q.forEach(function(lt) {
  4323. lt && (lt.touched = !1);
  4324. }), dt ? (it.forEach(function(lt) {
  4325. this.addPoint(lt, !1, null, null, !1);
  4326. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = x(this.xData), this.autoIncrement()), !0) : !1;
  4327. }, Q.prototype.setData = function(k, G, z, V) {
  4328. 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;
  4329. J = J && J.length;
  4330. var tt = nt.keys, st, ht = 0, pt = 1, yt = null;
  4331. k = k || [];
  4332. var vt = k.length;
  4333. if (G = m(G, !0), ct && ct.enabled && (k = this.sortData(k)), V !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (st = this.updateData(k, z)), !st) {
  4334. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Ct) {
  4335. q[Ct + "Data"].length = 0;
  4336. }), dt && vt > dt)
  4337. if (yt = q.getFirstValidPoint(k), j(yt))
  4338. for (z = 0; z < vt; z++)
  4339. lt[z] = this.autoIncrement(), at[z] = k[z];
  4340. else if (D(yt))
  4341. if (J)
  4342. if (yt.length === J)
  4343. for (z = 0; z < vt; z++)
  4344. lt[z] = this.autoIncrement(), at[z] = k[z];
  4345. else
  4346. for (z = 0; z < vt; z++)
  4347. V = k[z], lt[z] = V[0], at[z] = V.slice(
  4348. 1,
  4349. J + 1
  4350. );
  4351. 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)
  4352. for (z = 0; z < vt; z++)
  4353. lt[z] = this.autoIncrement(), at[z] = k[z][pt];
  4354. else
  4355. for (z = 0; z < vt; z++)
  4356. V = k[z], lt[z] = V[ht], at[z] = V[pt];
  4357. else
  4358. t(12, !1, rt);
  4359. else
  4360. for (z = 0; z < vt; z++)
  4361. typeof k[z] < "u" && (V = { series: q }, q.pointClass.prototype.applyOptions.apply(V, [k[z]]), q.updateParallelArrays(V, z));
  4362. for (at && T(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = k, z = et; z--; )
  4363. it[z] && it[z].destroy && it[z].destroy();
  4364. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, z = !1;
  4365. }
  4366. nt.legendType === "point" && (this.processData(), this.generatePoints()), G && rt.redraw(z);
  4367. }, Q.prototype.sortData = function(k) {
  4368. var G = this, z = G.options.dataSorting.sortKey || "y", V = function(q, it) {
  4369. return l(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  4370. };
  4371. return k.forEach(function(q, it) {
  4372. k[it] = V(G, q), k[it].index = it;
  4373. }, this), k.concat().sort(function(q, it) {
  4374. return q = _(z, q), it = _(z, it), it < q ? -1 : it > q ? 1 : 0;
  4375. }).forEach(function(q, it) {
  4376. q.x = it;
  4377. }, this), G.linkedSeries && G.linkedSeries.forEach(function(q) {
  4378. var it = q.options, et = it.data;
  4379. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  4380. et[rt] = V(q, nt), k[rt] && (et[rt].x = k[rt].x, et[rt].index = rt);
  4381. }), q.setData(et, !1));
  4382. }), k;
  4383. }, Q.prototype.getProcessedData = function(k) {
  4384. var G = this.xAxis, z = this.options, V = z.cropThreshold, q = k || this.getExtremesFromAll || z.getExtremesFromAll, it = this.isCartesian;
  4385. k = G && G.val2lin, z = !(!G || !G.logarithmic);
  4386. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  4387. if (G) {
  4388. gt = G.getExtremes();
  4389. var lt = gt.min, at = gt.max;
  4390. gt = G.categories && !G.names.length;
  4391. }
  4392. if (it && this.sorted && !q && (!V || dt > V || this.forceCrop)) {
  4393. if (nt[dt - 1] < lt || nt[0] > at)
  4394. nt = [], rt = [];
  4395. else if (this.yData && (nt[0] < lt || nt[dt - 1] > at)) {
  4396. var J = this.cropData(this.xData, this.yData, lt, at);
  4397. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  4398. }
  4399. }
  4400. for (V = nt.length || 1; --V; )
  4401. if (G = z ? k(nt[V]) - k(nt[V - 1]) : nt[V] - nt[V - 1], 0 < G && (typeof tt > "u" || G < tt))
  4402. var tt = G;
  4403. else
  4404. 0 > G && ct && !gt && (t(15, !1, this.chart), ct = !1);
  4405. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  4406. }, Q.prototype.processData = function(k) {
  4407. var G = this.xAxis;
  4408. if (this.isCartesian && !this.isDirty && !G.isDirty && !this.yAxis.isDirty && !k)
  4409. return !1;
  4410. 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");
  4411. }, Q.prototype.cropData = function(k, G, z, V, q) {
  4412. var it = k.length, et, nt = 0, rt = it;
  4413. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  4414. if (k[et] >= z) {
  4415. nt = Math.max(0, et - q);
  4416. break;
  4417. }
  4418. for (z = et; z < it; z++)
  4419. if (k[z] > V) {
  4420. rt = z + q;
  4421. break;
  4422. }
  4423. return { xData: k.slice(nt, rt), yData: G.slice(
  4424. nt,
  4425. rt
  4426. ), start: nt, end: rt };
  4427. }, Q.prototype.generatePoints = function() {
  4428. var k = this.options, G = k.data, z = this.processedXData, V = this.processedYData, q = this.pointClass, it = z.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = k.keys, ct = [];
  4429. k = k.dataGrouping && k.dataGrouping.groupAll ? et : 0;
  4430. var gt, dt, lt = this.data;
  4431. if (!lt && !nt) {
  4432. var at = [];
  4433. at.length = G.length, lt = this.data = at;
  4434. }
  4435. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  4436. if (at = et + dt, nt) {
  4437. var J = new q().init(this, [z[dt]].concat(Y(V[dt])));
  4438. J.dataGroup = this.groupMap[k + dt], J.dataGroup.options && (J.options = J.dataGroup.options, n(J, J.dataGroup.options), delete J.dataLabels);
  4439. } else
  4440. (J = lt[at]) || typeof G[at] > "u" || (lt[at] = J = new q().init(this, G[at], z[dt]));
  4441. J && (J.index = nt ? k + dt : at, ct[dt] = J);
  4442. }
  4443. if (this.options.keys = rt, lt && (it !== (gt = lt.length) || nt))
  4444. for (dt = 0; dt < gt; dt++)
  4445. dt !== et || nt || (dt += it), lt[dt] && (lt[dt].destroyElements(), lt[dt].plotX = void 0);
  4446. this.data = lt, this.points = ct, A(this, "afterGeneratePoints");
  4447. }, Q.prototype.getXExtremes = function(k) {
  4448. return { min: a(k), max: x(k) };
  4449. }, Q.prototype.getExtremes = function(k, G) {
  4450. var z = this.xAxis, V = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  4451. V = V ? V.positiveValuesOnly : !1;
  4452. var nt, rt = 0, ct = 0, gt = 0;
  4453. k = k || this.stackedYData || this.processedYData || [];
  4454. var dt = k.length;
  4455. if (z) {
  4456. var lt = z.getExtremes();
  4457. rt = lt.min, ct = lt.max;
  4458. }
  4459. for (nt = 0; nt < dt; nt++) {
  4460. var at = q[nt];
  4461. lt = k[nt];
  4462. var J = (j(lt) || D(lt)) && (lt.length || 0 < lt || !V);
  4463. if (at = G || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !z || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  4464. if (J = lt.length)
  4465. for (; J--; )
  4466. j(lt[J]) && (it[gt++] = lt[J]);
  4467. else
  4468. it[gt++] = lt;
  4469. }
  4470. return k = { activeYData: it, dataMin: a(it), dataMax: x(it) }, A(this, "afterGetExtremes", { dataExtremes: k }), k;
  4471. }, Q.prototype.applyExtremes = function() {
  4472. var k = this.getExtremes();
  4473. return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
  4474. }, Q.prototype.getFirstValidPoint = function(k) {
  4475. for (var G = k.length, z = 0, V = null; V === null && z < G; )
  4476. V = k[z], z++;
  4477. return V;
  4478. }, Q.prototype.translate = function() {
  4479. this.processedXData || this.processData(), this.generatePoints();
  4480. var k = this.options, G = k.stacking, z = this.xAxis, V = 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;
  4481. for (at = 0; at < nt; at++) {
  4482. var st = et[at], ht = st.x, pt = void 0, yt = void 0, vt = st.y, Ct = st.low, Tt = G && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  4483. 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 && Tt && Tt[ht]) {
  4484. var kt = this.getStackIndicator(
  4485. kt,
  4486. ht,
  4487. this.index
  4488. );
  4489. st.isNull || (pt = Tt[ht], yt = pt.points[kt.key]);
  4490. }
  4491. if (D(yt) && (Ct = yt[0], vt = yt[1], Ct === dt && kt.key === Tt[ht].base && (Ct = m(j(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, j(vt) && (pt = it.translate(vt, !1, !0, !1, !0), typeof pt < "u" && (st.plotY = c(
  4492. pt,
  4493. -1e5,
  4494. 1e5
  4495. ))), 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 = V && typeof V[st.x] < "u" ? V[st.x] : st.x, !st.isNull && st.visible !== !1) {
  4496. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  4497. var St = J;
  4498. }
  4499. st.zone = this.zones.length ? st.getZone() : void 0, !st.graphic && this.group && q && (st.isNew = !0);
  4500. }
  4501. this.closestPointRangePx = tt, A(this, "afterTranslate");
  4502. }, Q.prototype.getValidPoints = function(k, G, z) {
  4503. var V = this.chart;
  4504. return (k || this.points || []).filter(function(q) {
  4505. return G && !V.isInsidePlot(q.plotX, q.plotY, { inverted: V.inverted }) ? !1 : q.visible !== !1 && (z || !q.isNull);
  4506. });
  4507. }, Q.prototype.getClipBox = function() {
  4508. var k = this.chart, G = this.xAxis, z = this.yAxis, V = X(k.clipBox);
  4509. return G && G.len !== k.plotSizeX && (V.width = G.len), z && z.len !== k.plotSizeY && (V.height = z.len), V;
  4510. }, Q.prototype.getSharedClipKey = function() {
  4511. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  4512. }, Q.prototype.setClip = function() {
  4513. var k = this.chart, G = this.group, z = this.markerGroup, V = k.sharedClips;
  4514. k = k.renderer;
  4515. var q = this.getClipBox(), it = this.getSharedClipKey(), et = V[it];
  4516. et ? et.animate(q) : V[it] = et = k.clipRect(q), G && G.clip(this.options.clip === !1 ? void 0 : et), z && z.clip();
  4517. }, Q.prototype.animate = function(k) {
  4518. var G = this.chart, z = this.group, V = 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"];
  4519. if (k && z)
  4520. 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), V && V.clip(rt);
  4521. else if (nt && !nt.hasClass("highcharts-animating")) {
  4522. G = this.getClipBox();
  4523. var ct = it.step;
  4524. V && V.element.childNodes.length && (it.step = function(gt, dt) {
  4525. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  4526. }), nt.addClass("highcharts-animating").animate(G, it);
  4527. }
  4528. }, Q.prototype.afterAnimate = function() {
  4529. var k = this;
  4530. this.setClip(), f(
  4531. this.chart.sharedClips,
  4532. function(G, z, V) {
  4533. G && !k.chart.container.querySelector('[clip-path="url(#' + G.id + ')"]') && (G.destroy(), delete V[z]);
  4534. }
  4535. ), this.finishedAnimating = !0, A(this, "afterAnimate");
  4536. }, Q.prototype.drawPoints = function() {
  4537. var k = this.points, G = this.chart, z = this.options.marker, V = 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;
  4538. if (z.enabled !== !1 || this._hasPointMarkers)
  4539. for (et = 0; et < k.length; et++) {
  4540. var rt = k[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  4541. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  4542. var lt = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  4543. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  4544. var J = rt.isInside !== !1;
  4545. 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(V), 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);
  4546. } else
  4547. nt && (rt.graphic = nt.destroy());
  4548. }
  4549. }, Q.prototype.markerAttribs = function(k, G) {
  4550. var z = this.options, V = z.marker, q = k.marker || {}, it = q.symbol || V.symbol, et = m(q.radius, V.radius);
  4551. return G && (V = V.states[G], G = q.states && q.states[G], et = m(G && G.radius, V && V.radius, et + (V && V.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;
  4552. }, Q.prototype.pointAttribs = function(k, G) {
  4553. var z = this.options.marker, V = k && k.options, q = V && V.marker || {}, it = V && V.color, et = k && k.color, nt = k && k.zone && k.zone.color, rt = this.color;
  4554. return k = m(q.lineWidth, z.lineWidth), V = 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, V = m(G.opacity, z.opacity, V), { stroke: et, "stroke-width": k, fill: it, opacity: V };
  4555. }, Q.prototype.destroy = function(k) {
  4556. var G = this, z = G.chart, V = /AppleWebKit\/533/.test(C.navigator.userAgent), q = G.data || [], it, et, nt, rt;
  4557. for (A(G, "destroy"), this.removeEvents(k), (G.axisTypes || []).forEach(function(ct) {
  4558. (rt = G[ct]) && rt.series && (s(rt.series, G), rt.isDirty = rt.forceRedraw = !0);
  4559. }), G.legendItem && G.chart.legend.destroyItem(G), et = q.length; et--; )
  4560. (nt = q[et]) && nt.destroy && nt.destroy();
  4561. G.clips && G.clips.forEach(function(ct) {
  4562. return ct.destroy();
  4563. }), w.clearTimeout(G.animationTimeout), f(G, function(ct, gt) {
  4564. ct instanceof N && !ct.survive && (it = V && gt === "group" ? "hide" : "destroy", ct[it]());
  4565. }), z.hoverSeries === G && (z.hoverSeries = void 0), s(z.series, G), z.orderSeries(), f(G, function(ct, gt) {
  4566. k && gt === "hcEvents" || delete G[gt];
  4567. });
  4568. }, Q.prototype.applyZones = function() {
  4569. var k = this, G = this.chart, z = G.renderer, V = 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;
  4570. if (V.length && (it || et) && rt && typeof rt.min < "u") {
  4571. var yt = rt.reversed, vt = rt.horiz;
  4572. it && !this.showLine && it.hide(), et && et.hide();
  4573. var Ct = rt.getExtremes();
  4574. V.forEach(function(Tt, kt) {
  4575. 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(Tt.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 ? {
  4576. x: 0,
  4577. y: yt ? J : tt,
  4578. height: lt.width,
  4579. width: G.chartWidth
  4580. } : { 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 = Tt.value > Ct.max, k.resetZones && dt === 0 && (dt = void 0);
  4581. }), this.clips = q;
  4582. } else
  4583. k.visible && (it && it.show(!0), et && et.show(!0));
  4584. }, Q.prototype.invertGroups = function(k) {
  4585. function G() {
  4586. ["group", "markerGroup"].forEach(function(q) {
  4587. z[q] && (V.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));
  4588. });
  4589. }
  4590. var z = this, V = z.chart;
  4591. z.xAxis && (z.eventsToUnbind.push(M(V, "resize", G)), G(), z.invertGroups = G);
  4592. }, Q.prototype.plotGroup = function(k, G, z, V, q) {
  4593. var it = this[k], et = !it;
  4594. return z = { visibility: z, zIndex: V || 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;
  4595. }, Q.prototype.getPlotBox = function() {
  4596. var k = this.chart, G = this.xAxis, z = this.yAxis;
  4597. return k.inverted && (G = z, z = this.xAxis), { translateX: G ? G.left : k.plotLeft, translateY: z ? z.top : k.plotTop, scaleX: 1, scaleY: 1 };
  4598. }, Q.prototype.removeEvents = function(k) {
  4599. k || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(G) {
  4600. G();
  4601. }), this.eventsToUnbind.length = 0);
  4602. }, Q.prototype.render = function() {
  4603. var k = this, G = k.chart, z = k.options, V = v(z.animation), q = k.visible ? "inherit" : "hidden", it = z.zIndex, et = k.hasRendered, nt = G.seriesGroup, rt = G.inverted;
  4604. G = !k.finishedAnimating && G.renderer.isSVG ? V.duration : 0, A(this, "render");
  4605. var ct = k.plotGroup("group", "series", q, it, nt);
  4606. 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 && V.defer && (G += V.defer), k.animationTimeout = F(function() {
  4607. k.afterAnimate();
  4608. }, G || 0)), k.isDirty = !1, k.hasRendered = !0, A(k, "afterRender");
  4609. }, Q.prototype.redraw = function() {
  4610. var k = this.chart, G = this.isDirty || this.isDirtyData, z = this.group, V = this.xAxis, q = this.yAxis;
  4611. z && (k.inverted && z.attr({
  4612. width: k.plotWidth,
  4613. height: k.plotHeight
  4614. }), z.animate({ translateX: m(V && V.left, k.plotLeft), translateY: m(q && q.top, k.plotTop) })), this.translate(), this.render(), G && delete this.kdTree;
  4615. }, Q.prototype.searchPoint = function(k, G) {
  4616. var z = this.xAxis, V = this.yAxis, q = this.chart.inverted;
  4617. return this.searchKDTree({ clientX: q ? z.len - k.chartY + z.pos : k.chartX - z.pos, plotY: q ? V.len - k.chartX + V.pos : k.chartY - V.pos }, G, k);
  4618. }, Q.prototype.buildKDTree = function(k) {
  4619. function G(q, it, et) {
  4620. var nt = q && q.length;
  4621. if (nt) {
  4622. var rt = z.kdAxisArray[it % et];
  4623. return q.sort(function(ct, gt) {
  4624. return ct[rt] - gt[rt];
  4625. }), 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) };
  4626. }
  4627. }
  4628. this.buildingKdTree = !0;
  4629. var z = this, V = -1 < z.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  4630. delete z.kdTree, F(function() {
  4631. z.kdTree = G(z.getValidPoints(null, !z.directTouch), V, V), z.buildingKdTree = !1;
  4632. }, z.options.kdNow || k && k.type === "touchstart" ? 0 : 1);
  4633. }, Q.prototype.searchKDTree = function(k, G, z) {
  4634. function V(rt, ct, gt, dt) {
  4635. 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;
  4636. 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 = V(rt, ct[st], gt + 1, dt), J = st[nt] < J[nt] ? st : lt), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = V(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  4637. }
  4638. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = G ? "distX" : "dist";
  4639. if (G = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(z), this.kdTree)
  4640. return V(
  4641. k,
  4642. this.kdTree,
  4643. G,
  4644. G
  4645. );
  4646. }, Q.prototype.pointPlacementToXValue = function() {
  4647. var k = this.options, G = k.pointRange, z = this.xAxis;
  4648. return k = k.pointPlacement, k === "between" && (k = z.reversed ? -0.5 : 0.5), j(k) ? k * (G || z.pointRange) : 0;
  4649. }, Q.prototype.isPointInside = function(k) {
  4650. var G = this.chart, z = this.xAxis, V = this.yAxis;
  4651. return typeof k.plotY < "u" && typeof k.plotX < "u" && 0 <= k.plotY && k.plotY <= (V ? V.len : G.plotHeight) && 0 <= k.plotX && k.plotX <= (z ? z.len : G.plotWidth);
  4652. }, Q.prototype.drawTracker = function() {
  4653. var k = this, G = k.options, z = G.trackByArea, V = [].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) {
  4654. q.hoverSeries !== k && k.onMouseOver();
  4655. }, gt = "rgba(192,192,192," + (B ? 1e-4 : 2e-3) + ")";
  4656. rt ? rt.attr({ d: V }) : k.graph && (k.tracker = et.path(V).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) {
  4657. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(lt) {
  4658. it.onTrackerMouseOut(lt);
  4659. }), G.cursor && !q.styledMode && dt.css({ cursor: G.cursor }), O) && dt.on("touchstart", ct);
  4660. })), A(this, "afterDrawTracker");
  4661. }, Q.prototype.addPoint = function(k, G, z, V, q) {
  4662. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  4663. rt = rt && rt.hasNames && rt.names;
  4664. var ct = it.data, gt = this.xData, dt;
  4665. G = m(G, !0);
  4666. var lt = { series: this };
  4667. this.pointClass.prototype.applyOptions.apply(
  4668. lt,
  4669. [k]
  4670. );
  4671. var at = lt.x, J = gt.length;
  4672. if (this.requireSorting && at < gt[J - 1])
  4673. for (dt = !0; J && gt[J - 1] > at; )
  4674. J--;
  4675. 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(V);
  4676. }, Q.prototype.removePoint = function(k, G, z) {
  4677. var V = this, q = V.data, it = q[k], et = V.points, nt = V.chart, rt = function() {
  4678. et && et.length === q.length && et.splice(k, 1), q.splice(k, 1), V.options.data.splice(k, 1), V.updateParallelArrays(it || { series: V }, "splice", k, 1), it && it.destroy(), V.isDirty = !0, V.isDirtyData = !0, G && nt.redraw();
  4679. };
  4680. u(z, nt), G = m(G, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  4681. }, Q.prototype.remove = function(k, G, z, V) {
  4682. function q() {
  4683. it.destroy(V), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(k, !0) && et.redraw(G);
  4684. }
  4685. var it = this, et = it.chart;
  4686. z !== !1 ? A(
  4687. it,
  4688. "remove",
  4689. null,
  4690. q
  4691. ) : q();
  4692. }, Q.prototype.update = function(k, G) {
  4693. k = p(k, this.userOptions), A(this, "update", { options: k });
  4694. var z = this, V = z.chart, q = z.userOptions, it = z.initialType || z.type, et = V.options.plotOptions, nt = b[it].prototype, rt = z.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], lt = k.type || q.type || V.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"));
  4695. 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) {
  4696. dt.push(tt + "Data");
  4697. }), k.data && (k.dataSorting && n(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) {
  4698. dt[tt] = z[tt], delete z[tt];
  4699. }), et = !1, b[lt]) {
  4700. if (et = lt !== z.type, z.remove(!1, !1, !1, !0), et)
  4701. if (Object.setPrototypeOf)
  4702. Object.setPrototypeOf(z, b[lt].prototype);
  4703. else {
  4704. rt = Object.hasOwnProperty.call(z, "hcEvents") && z.hcEvents;
  4705. for (gt in nt)
  4706. z[gt] = void 0;
  4707. n(z, b[lt].prototype), rt ? z.hcEvents = rt : delete z.hcEvents;
  4708. }
  4709. } else
  4710. t(17, !0, V, { missingModuleFor: lt });
  4711. if (dt.forEach(function(tt) {
  4712. z[tt] = dt[tt];
  4713. }), z.init(V, k), at && this.points) {
  4714. var J = z.options;
  4715. 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) {
  4716. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && V.legend.destroyItem(tt));
  4717. }, this);
  4718. }
  4719. z.initialType = it, V.linkSeries(), et && z.linkedSeries.length && (z.isDirtyData = !0), A(this, "afterUpdate"), m(G, !0) && V.redraw(at ? void 0 : !1);
  4720. }, Q.prototype.setName = function(k) {
  4721. this.name = this.options.name = this.userOptions.name = k, this.chart.isDirtyLegend = !0;
  4722. }, Q.prototype.hasOptionChanged = function(k) {
  4723. var G = this.options[k], z = this.chart.options.plotOptions, V = this.userOptions[k];
  4724. return V ? G !== V : G !== m(
  4725. z && z[this.type] && z[this.type][k],
  4726. z && z.series && z.series[k],
  4727. G
  4728. );
  4729. }, Q.prototype.onMouseOver = function() {
  4730. var k = this.chart, G = k.hoverSeries;
  4731. k.pointer.setHoverChartIndex(), G && G !== this && G.onMouseOut(), this.options.events.mouseOver && A(this, "mouseOver"), this.setState("hover"), k.hoverSeries = this;
  4732. }, Q.prototype.onMouseOut = function() {
  4733. var k = this.options, G = this.chart, z = G.tooltip, V = G.hoverPoint;
  4734. G.hoverSeries = null, V && V.onMouseOut(), this && k.events.mouseOut && A(this, "mouseOut"), !z || this.stickyTracking || z.shared && !this.noSharedTooltip || z.hide(), G.series.forEach(function(q) {
  4735. q.setState(
  4736. "",
  4737. !0
  4738. );
  4739. });
  4740. }, Q.prototype.setState = function(k, G) {
  4741. var z = this, V = z.options, q = z.graph, it = V.inactiveOtherPoints, et = V.states, nt = m(et[k || "normal"] && et[k || "normal"].animation, z.chart.options.chart.animation), rt = V.lineWidth, ct = 0, gt = V.opacity;
  4742. if (k = k || "", z.state !== k && ([z.group, z.markerGroup, z.dataLabelsGroup].forEach(function(dt) {
  4743. dt && (z.state && dt.removeClass("highcharts-series-" + z.state), k && dt.addClass("highcharts-series-" + k));
  4744. }), z.state = k, !z.chart.styledMode)) {
  4745. if (et[k] && et[k].enabled === !1)
  4746. return;
  4747. if (k && (rt = et[k].lineWidth || rt + (et[k].lineWidthPlus || 0), gt = m(et[k].opacity, gt)), q && !q.dashstyle)
  4748. for (V = { "stroke-width": rt }, q.animate(V, nt); z["zone-graph-" + ct]; )
  4749. z["zone-graph-" + ct].animate(V, nt), ct += 1;
  4750. it || [z.group, z.markerGroup, z.dataLabelsGroup, z.labelBySeries].forEach(function(dt) {
  4751. dt && dt.animate({ opacity: gt }, nt);
  4752. });
  4753. }
  4754. G && it && z.points && z.setAllPointsToState(k || void 0);
  4755. }, Q.prototype.setAllPointsToState = function(k) {
  4756. this.points.forEach(function(G) {
  4757. G.setState && G.setState(k);
  4758. });
  4759. }, Q.prototype.setVisible = function(k, G) {
  4760. var z = this, V = z.chart, q = z.legendItem, it = V.options.chart.ignoreHiddenSeries, et = z.visible, nt = (z.visible = k = z.options.visible = z.userOptions.visible = typeof k > "u" ? !et : k) ? "show" : "hide";
  4761. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  4762. z[rt] && z[rt][nt]();
  4763. }), (V.hoverSeries === z || (V.hoverPoint && V.hoverPoint.series) === z) && z.onMouseOut(), q && V.legend.colorizeItem(z, k), z.isDirty = !0, z.options.stacking && V.series.forEach(function(rt) {
  4764. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  4765. }), z.linkedSeries.forEach(function(rt) {
  4766. rt.setVisible(k, !1);
  4767. }), it && (V.isDirtyBox = !0), A(z, nt), G !== !1 && V.redraw();
  4768. }, Q.prototype.show = function() {
  4769. this.setVisible(!0);
  4770. }, Q.prototype.hide = function() {
  4771. this.setVisible(!1);
  4772. }, Q.prototype.select = function(k) {
  4773. this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), A(this, k ? "select" : "unselect");
  4774. }, Q.prototype.shouldShowTooltip = function(k, G, z) {
  4775. return z === void 0 && (z = {}), z.series = this, z.visiblePlotOnly = !0, this.chart.isInsidePlot(k, G, z);
  4776. }, Q.defaultOptions = U, Q;
  4777. }(), n(y.prototype, { axisTypes: [
  4778. "xAxis",
  4779. "yAxis"
  4780. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: H.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: $, requireSorting: !0, sorted: !0 }), W.series = y, y;
  4781. }), 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, R, I, Z, H, $) {
  4782. var U = y.stop, W = $.addEvent, N = $.createElement, w = $.merge, v = $.pick;
  4783. W(I, "afterSetChartSize", function(u) {
  4784. var d = this.options.chart.scrollablePlotArea, P = d && d.minWidth;
  4785. if (d = d && d.minHeight, !this.renderer.forExport) {
  4786. if (P) {
  4787. if (this.scrollablePixelsX = P = Math.max(0, P - this.chartWidth)) {
  4788. this.scrollablePlotBox = this.renderer.scrollablePlotBox = w(this.plotBox), this.plotBox.width = this.plotWidth += P, this.inverted ? this.clipBox.height += P : this.clipBox.width += P;
  4789. var O = { 1: { name: "right", value: P } };
  4790. }
  4791. } else
  4792. d && (this.scrollablePixelsY = P = Math.max(
  4793. 0,
  4794. d - this.chartHeight
  4795. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = w(this.plotBox), this.plotBox.height = this.plotHeight += P, this.inverted ? this.clipBox.width += P : this.clipBox.height += P, O = { 2: { name: "bottom", value: P } });
  4796. O && !u.skipAxes && this.axes.forEach(function(B) {
  4797. O[B.side] ? B.getPlotLinePath = function() {
  4798. var C = O[B.side].name, b = this[C];
  4799. this[C] = b - O[B.side].value;
  4800. var M = R.prototype.getPlotLinePath.apply(this, arguments);
  4801. return this[C] = b, M;
  4802. } : (B.setAxisSize(), B.setAxisTranslation());
  4803. });
  4804. }
  4805. }), W(I, "render", function() {
  4806. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  4807. }), I.prototype.setUpScrolling = function() {
  4808. var u = this, d = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  4809. this.scrollablePixelsX && (d.overflowX = "auto"), this.scrollablePixelsY && (d.overflowY = "auto"), this.scrollingParent = N("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = N(
  4810. "div",
  4811. { className: "highcharts-scrolling" },
  4812. d,
  4813. this.scrollingParent
  4814. ), W(this.scrollingContainer, "scroll", function() {
  4815. u.pointer && delete u.pointer.chartPosition;
  4816. }), this.innerContainer = N("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  4817. }, I.prototype.moveFixedElements = function() {
  4818. var u = this.container, d = 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;
  4819. 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(B) {
  4820. [].forEach.call(u.querySelectorAll(B), function(C) {
  4821. (C.namespaceURI === d.SVG_NS ? d.box : d.box.parentNode).appendChild(C), C.style.pointerEvents = "auto";
  4822. });
  4823. });
  4824. }, I.prototype.applyFixed = function() {
  4825. var u = !this.fixedDiv, d = this.options.chart, P = d.scrollablePlotArea, O = H.getRendererType();
  4826. u ? (this.fixedDiv = N("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (d.style && d.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 = d = new O(
  4827. this.fixedDiv,
  4828. this.chartWidth,
  4829. this.chartHeight,
  4830. this.options.chart.style
  4831. ), this.scrollableMask = d.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 || u) && (this.scrollableDirty = !1, this.moveFixedElements()), d = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), U(this.container), this.container.style.width = d + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: d, height: O, viewBox: [0, 0, d, O].join(" ") }), this.chartBackground.attr({ width: d, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", u && (P.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * P.scrollPositionX), P.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * P.scrollPositionY)), O = this.axisOffset, u = this.plotTop - O[0] - 1, P = this.plotLeft - O[3] - 1, d = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  4832. var B = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), C = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  4833. u = this.scrollablePixelsX ? [["M", 0, u], ["L", this.plotLeft - 1, u], ["L", this.plotLeft - 1, d], ["L", 0, d], ["Z"], ["M", B, u], ["L", this.chartWidth, u], ["L", this.chartWidth, d], ["L", B, d], ["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: u });
  4834. }, W(R, "afterInit", function() {
  4835. this.chart.scrollableDirty = !0;
  4836. }), W(Z, "show", function() {
  4837. this.chart.scrollableDirty = !0;
  4838. });
  4839. }), E(h, "Core/Axis/StackingAxis.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Axis/Axis.js"], h["Core/Utilities.js"]], function(y, R, I) {
  4840. var Z = y.getDeferredAnimation, H = I.addEvent, $ = I.destroyObjectProperties, U = I.fireEvent, W = I.isNumber, N = I.objectEach, w;
  4841. return function(v) {
  4842. function u() {
  4843. var B = this.stacking;
  4844. if (B) {
  4845. var C = B.stacks;
  4846. N(C, function(b, M) {
  4847. $(b), C[M] = null;
  4848. }), B && B.stackTotalGroup && B.stackTotalGroup.destroy();
  4849. }
  4850. }
  4851. function d() {
  4852. this.stacking || (this.stacking = new O(this));
  4853. }
  4854. var P = [];
  4855. v.compose = function(B) {
  4856. return P.indexOf(B) === -1 && (P.push(B), H(B, "init", d), H(B, "destroy", u)), B;
  4857. };
  4858. var O = function() {
  4859. function B(C) {
  4860. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = C;
  4861. }
  4862. return B.prototype.buildStacks = function() {
  4863. var C = this.axis, b = C.series, M = C.options.reversedStacks, x = b.length, a;
  4864. if (!C.isXAxis) {
  4865. for (this.usePercentage = !1, a = x; a--; ) {
  4866. var c = b[M ? a : x - a - 1];
  4867. c.setStackedPoints(), c.setGroupedPoints();
  4868. }
  4869. for (a = 0; a < x; a++)
  4870. b[a].modifyStacks();
  4871. U(C, "afterBuildStacks");
  4872. }
  4873. }, B.prototype.cleanStacks = function() {
  4874. if (!this.axis.isXAxis) {
  4875. if (this.oldStacks)
  4876. var C = this.stacks = this.oldStacks;
  4877. N(C, function(b) {
  4878. N(b, function(M) {
  4879. M.cumulative = M.total;
  4880. });
  4881. });
  4882. }
  4883. }, B.prototype.resetStacks = function() {
  4884. var C = this, b = C.stacks;
  4885. C.axis.isXAxis || N(b, function(M) {
  4886. N(
  4887. M,
  4888. function(x, a) {
  4889. W(x.touched) && x.touched < C.stacksTouched ? (x.destroy(), delete M[a]) : (x.total = null, x.cumulative = null);
  4890. }
  4891. );
  4892. });
  4893. }, B.prototype.renderStackTotals = function() {
  4894. var C = this.axis, b = C.chart, M = b.renderer, x = this.stacks;
  4895. C = Z(b, C.options.stackLabels && C.options.stackLabels.animation || !1);
  4896. var a = this.stackTotalGroup = this.stackTotalGroup || M.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  4897. a.translate(b.plotLeft, b.plotTop), N(x, function(c) {
  4898. N(c, function(p) {
  4899. p.render(a);
  4900. });
  4901. }), a.animate(
  4902. { opacity: 1 },
  4903. C
  4904. );
  4905. }, B;
  4906. }();
  4907. v.Additions = O;
  4908. }(w || (w = {})), w;
  4909. }), 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, R, I, Z, H, $, U) {
  4910. var W = I.format, N = U.correctFloat, w = U.defined, v = U.destroyObjectProperties, u = U.isArray, d = U.isNumber, P = U.objectEach, O = U.pick, B = function() {
  4911. function C(b, M, x, a, c) {
  4912. var p = b.chart.inverted;
  4913. this.axis = b, this.isNegative = x, this.options = M = M || {}, this.x = a, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: M.align || (p ? x ? "left" : "right" : "center"), verticalAlign: M.verticalAlign || (p ? "middle" : x ? "bottom" : "top"), y: M.y, x: M.x }, this.textAlign = M.textAlign || (p ? x ? "right" : "left" : "center");
  4914. }
  4915. return C.prototype.destroy = function() {
  4916. v(this, this.axis);
  4917. }, C.prototype.render = function(b) {
  4918. var M = this.axis.chart, x = this.options, a = x.format;
  4919. a = a ? W(a, this, M) : x.formatter.call(this), this.label ? this.label.attr({
  4920. text: a,
  4921. visibility: "hidden"
  4922. }) : (this.label = M.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" }, M.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 = M.plotSizeY;
  4923. }, C.prototype.setOffset = function(b, M, x, a, c) {
  4924. var p = this.axis, i = p.chart;
  4925. a = p.translate(p.stacking.usePercentage ? 100 : a || this.total, 0, 0, 0, 1), x = p.translate(x || 0), x = w(a) && Math.abs(a - x), b = O(c, i.xAxis[0].translate(this.x)) + b, p = w(a) && this.getStackBox(i, this, b, a, M, x, p), M = this.label, x = this.isNegative, b = O(this.options.overflow, "justify") === "justify";
  4926. var l = this.textAlign;
  4927. M && p && (c = M.getBBox(), a = M.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, M.align(this.alignOptions, null, p), i.isInsidePlot(M.alignAttr.x + l - this.alignOptions.x, M.alignAttr.y + x - this.alignOptions.y) ? M.show() : (M.alignAttr.y = -9999, b = !1), b && H.prototype.justifyDataLabel.call(this.axis, M, this.alignOptions, M.alignAttr, c, p), M.attr({ x: M.alignAttr.x, y: M.alignAttr.y }), O(!b && this.options.crop, !0) && ((i = d(M.x) && d(M.y) && i.isInsidePlot(M.x - a + M.width, M.y) && i.isInsidePlot(M.x + a, M.y)) || M.hide()));
  4928. }, C.prototype.getStackBox = function(b, M, x, a, c, p, i) {
  4929. var l = M.axis.reversed, s = b.inverted, t = i.height + i.pos - (s ? b.plotLeft : b.plotTop);
  4930. return M = M.isNegative && !l || !M.isNegative && l, { x: s ? M ? a - i.right : a - p + i.pos - b.plotLeft : x + b.xAxis[0].transB - b.plotLeft, y: s ? i.height - x - c : M ? t - a - p : t - a, width: s ? p : c, height: s ? c : p };
  4931. }, C;
  4932. }();
  4933. return R.prototype.getStacks = function() {
  4934. var C = this, b = C.inverted;
  4935. C.yAxis.forEach(function(M) {
  4936. M.stacking && M.stacking.stacks && M.hasVisibleSeries && (M.stacking.oldStacks = M.stacking.stacks);
  4937. }), C.series.forEach(function(M) {
  4938. var x = M.xAxis && M.xAxis.options || {};
  4939. !M.options.stacking || M.visible !== !0 && C.options.chart.ignoreHiddenSeries !== !1 || (M.stackKey = [M.type, O(M.options.stack, ""), b ? x.top : x.left, b ? x.height : x.width].join());
  4940. });
  4941. }, $.compose(y), H.prototype.setGroupedPoints = function() {
  4942. var C = this.yAxis.stacking;
  4943. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? H.prototype.setStackedPoints.call(this, "group") : C && P(C.stacks, function(b, M) {
  4944. M.slice(-5) === "group" && (P(b, function(x) {
  4945. return x.destroy();
  4946. }), delete C.stacks[M]);
  4947. });
  4948. }, H.prototype.setStackedPoints = function(C) {
  4949. var b = C || this.options.stacking;
  4950. if (b && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  4951. var M = this.processedXData, x = this.processedYData, a = [], c = x.length, p = this.options, i = p.threshold, l = O(p.startFromThreshold && i, 0);
  4952. p = p.stack, C = C ? this.type + "," + b : this.stackKey;
  4953. var s = "-" + C, t = this.negStacks, n = this.yAxis, o = n.stacking.stacks, A = n.stacking.oldStacks, _, D;
  4954. for (n.stacking.stacksTouched += 1, D = 0; D < c; D++) {
  4955. var j = M[D], T = x[D], X = this.getStackIndicator(
  4956. X,
  4957. j,
  4958. this.index
  4959. ), f = X.key, m = (_ = t && T < (l ? 0 : i)) ? s : C;
  4960. o[m] || (o[m] = {}), o[m][j] || (A[m] && A[m][j] ? (o[m][j] = A[m][j], o[m][j].total = null) : o[m][j] = new B(n, n.options.stackLabels, _, j, p)), m = o[m][j], T !== null ? (m.points[f] = m.points[this.index] = [O(m.cumulative, l)], w(m.cumulative) || (m.base = f), m.touched = n.stacking.stacksTouched, 0 < X.index && this.singleStacks === !1 && (m.points[f][0] = m.points[this.index + "," + j + ",0"][0])) : m.points[f] = m.points[this.index] = null, b === "percent" ? (_ = _ ? C : s, t && o[_] && o[_][j] ? (_ = o[_][j], m.total = _.total = Math.max(_.total, m.total) + Math.abs(T) || 0) : m.total = N(m.total + (Math.abs(T) || 0))) : b === "group" ? (u(T) && (T = T[0]), T !== null && (m.total = (m.total || 0) + 1)) : m.total = N(m.total + (T || 0)), m.cumulative = b === "group" ? (m.total || 1) - 1 : O(m.cumulative, l) + (T || 0), T !== null && (m.points[f].push(m.cumulative), a[D] = m.cumulative, m.hasValidPoints = !0);
  4961. }
  4962. b === "percent" && (n.stacking.usePercentage = !0), b !== "group" && (this.stackedYData = a), n.stacking.oldStacks = {};
  4963. }
  4964. }, H.prototype.modifyStacks = function() {
  4965. var C = this, b = C.stackKey, M = C.yAxis.stacking.stacks, x = C.processedXData, a, c = C.options.stacking;
  4966. C[c + "Stacker"] && [b, "-" + b].forEach(function(p) {
  4967. for (var i = x.length, l, s; i--; )
  4968. l = x[i], a = C.getStackIndicator(a, l, C.index, p), (s = (l = M[p] && M[p][l]) && l.points[a.key]) && C[c + "Stacker"](s, l, i);
  4969. });
  4970. }, H.prototype.percentStacker = function(C, b, M) {
  4971. b = b.total ? 100 / b.total : 0, C[0] = N(C[0] * b), C[1] = N(C[1] * b), this.stackedYData[M] = C[1];
  4972. }, H.prototype.getStackIndicator = function(C, b, M, x) {
  4973. return !w(C) || C.x !== b || x && C.key !== x ? C = { x: b, index: 0, key: x } : C.index++, C.key = [M, b, C.index].join(), C;
  4974. }, Z.StackItem = B, Z.StackItem;
  4975. }), E(h, "Series/Line/LineSeries.js", [h["Core/Series/Series.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R, I) {
  4976. var Z = this && this.__extends || function() {
  4977. var U = function(W, N) {
  4978. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  4979. w.__proto__ = v;
  4980. } || function(w, v) {
  4981. for (var u in v)
  4982. v.hasOwnProperty(u) && (w[u] = v[u]);
  4983. }, U(W, N);
  4984. };
  4985. return function(W, N) {
  4986. function w() {
  4987. this.constructor = W;
  4988. }
  4989. U(W, N), W.prototype = N === null ? Object.create(N) : (w.prototype = N.prototype, new w());
  4990. };
  4991. }(), H = I.defined, $ = I.merge;
  4992. return I = function(U) {
  4993. function W() {
  4994. var N = U !== null && U.apply(this, arguments) || this;
  4995. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  4996. }
  4997. return Z(W, U), W.prototype.drawGraph = function() {
  4998. var N = this, w = this.options, v = (this.gappedPath || this.getGraphPath).call(this), u = this.chart.styledMode, d = [["graph", "highcharts-graph"]];
  4999. u || d[0].push(w.lineColor || this.color || "#cccccc", w.dashStyle), d = N.getZonesGraphs(d), d.forEach(function(P, O) {
  5000. var B = P[0], C = N[B], b = C ? "animate" : "attr";
  5001. C ? (C.endX = N.preventGraphAnimation ? null : v.xMap, C.animate({ d: v })) : v.length && (N[B] = C = N.chart.renderer.path(v).addClass(P[1]).attr({ zIndex: 1 }).add(N.group)), C && !u && (B = { stroke: P[2], "stroke-width": w.lineWidth, fill: N.fillGraph && N.color || "none" }, P[3] ? B.dashstyle = P[3] : w.linecap !== "square" && (B["stroke-linecap"] = B["stroke-linejoin"] = "round"), C[b](B).shadow(2 > O && w.shadow)), C && (C.startX = v.xMap, C.isArea = v.isArea);
  5002. });
  5003. }, W.prototype.getGraphPath = function(N, w, v) {
  5004. var u = this, d = u.options, P = [], O = [], B, C = d.step;
  5005. N = N || u.points;
  5006. var b = N.reversed;
  5007. return b && N.reverse(), (C = { right: 1, center: 2 }[C] || C && 3) && b && (C = 4 - C), N = this.getValidPoints(N, !1, !(d.connectNulls && !w && !v)), N.forEach(function(M, x) {
  5008. var a = M.plotX, c = M.plotY, p = N[x - 1];
  5009. (M.leftCliff || p && p.rightCliff) && !v && (B = !0), M.isNull && !H(w) && 0 < x ? B = !d.connectNulls : M.isNull && !w ? B = !0 : (x === 0 || B ? x = [["M", M.plotX, M.plotY]] : u.getPointSpline ? x = [u.getPointSpline(N, M, 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(M.x), C && (O.push(M.x), C === 2 && O.push(M.x)), P.push.apply(P, x), B = !1);
  5010. }), P.xMap = O, u.graphPath = P;
  5011. }, W.prototype.getZonesGraphs = function(N) {
  5012. return this.zones.forEach(function(w, v) {
  5013. v = ["zone-graph-" + v, "highcharts-graph highcharts-zone-graph-" + v + " " + (w.className || "")], this.chart.styledMode || v.push(w.color || this.color, w.dashStyle || this.options.dashStyle), N.push(v);
  5014. }, this), N;
  5015. }, W.defaultOptions = $(y.defaultOptions, {}), W;
  5016. }(y), R.registerSeriesType("line", I), I;
  5017. }), E(h, "Series/Area/AreaSeries.js", [
  5018. h["Core/Color/Color.js"],
  5019. h["Core/Legend/LegendSymbol.js"],
  5020. h["Core/Series/SeriesRegistry.js"],
  5021. h["Core/Utilities.js"]
  5022. ], function(y, R, I, Z) {
  5023. var H = this && this.__extends || function() {
  5024. var v = function(u, d) {
  5025. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  5026. P.__proto__ = O;
  5027. } || function(P, O) {
  5028. for (var B in O)
  5029. O.hasOwnProperty(B) && (P[B] = O[B]);
  5030. }, v(u, d);
  5031. };
  5032. return function(u, d) {
  5033. function P() {
  5034. this.constructor = u;
  5035. }
  5036. v(u, d), u.prototype = d === null ? Object.create(d) : (P.prototype = d.prototype, new P());
  5037. };
  5038. }(), $ = y.parse, U = I.seriesTypes.line;
  5039. y = Z.extend;
  5040. var W = Z.merge, N = Z.objectEach, w = Z.pick;
  5041. return Z = function(v) {
  5042. function u() {
  5043. var d = v !== null && v.apply(this, arguments) || this;
  5044. return d.data = void 0, d.options = void 0, d.points = void 0, d;
  5045. }
  5046. return H(u, v), u.prototype.drawGraph = function() {
  5047. this.areaPath = [], v.prototype.drawGraph.apply(this);
  5048. var d = this, P = this.areaPath, O = this.options, B = [["area", "highcharts-area", this.color, O.fillColor]];
  5049. this.zones.forEach(function(C, b) {
  5050. B.push(["zone-area-" + b, "highcharts-area highcharts-zone-area-" + b + " " + C.className, C.color || d.color, C.fillColor || O.fillColor]);
  5051. }), B.forEach(function(C) {
  5052. var b = C[0], M = d[b], x = M ? "animate" : "attr", a = {};
  5053. M ? (M.endX = d.preventGraphAnimation ? null : P.xMap, M.animate({ d: P })) : (a.zIndex = 0, M = d[b] = d.chart.renderer.path(P).addClass(C[1]).add(d.group), M.isArea = !0), d.chart.styledMode || (a.fill = w(C[3], $(C[2]).setOpacity(w(O.fillOpacity, 0.75)).get())), M[x](a), M.startX = P.xMap, M.shiftUnit = O.step ? 2 : 1;
  5054. });
  5055. }, u.prototype.getGraphPath = function(d) {
  5056. var P = U.prototype.getGraphPath, O = this.options, B = O.stacking, C = this.yAxis, b, M = [], x = [], a = this.index, c = C.stacking.stacks[this.stackKey], p = O.threshold, i = Math.round(C.getThreshold(O.threshold));
  5057. O = w(O.connectNulls, B === "percent");
  5058. var l = function(o, A, _) {
  5059. var D = d[o];
  5060. o = B && c[D.x].points[a];
  5061. var j = D[_ + "Null"] || 0;
  5062. if (_ = D[_ + "Cliff"] || 0, D = !0, _ || j) {
  5063. var T = (j ? o[0] : o[1]) + _, X = o[0] + _;
  5064. D = !!j;
  5065. } else
  5066. !B && d[A] && d[A].isNull && (T = X = p);
  5067. typeof T < "u" && (x.push({ plotX: t, plotY: T === null ? i : C.getThreshold(T), isNull: D, isCliff: !0 }), M.push({ plotX: t, plotY: X === null ? i : C.getThreshold(X), doCurve: !1 }));
  5068. };
  5069. for (d = d || this.points, B && (d = this.getStackPoints(d)), b = 0; b < d.length; b++) {
  5070. B || (d[b].leftCliff = d[b].rightCliff = d[b].leftNull = d[b].rightNull = void 0);
  5071. var s = d[b].isNull, t = w(d[b].rectPlotX, d[b].plotX), n = B ? w(d[b].yBottom, i) : i;
  5072. (!s || O) && (O || l(b, b - 1, "left"), s && !B && O || (x.push(d[b]), M.push({ x: b, plotX: t, plotY: n })), O || l(b, b + 1, "right"));
  5073. }
  5074. return b = P.call(this, x, !0, !0), M.reversed = !0, s = P.call(this, M, !0, !0), (n = s[0]) && n[0] === "M" && (s[0] = ["L", n[1], n[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;
  5075. }, u.prototype.getStackPoints = function(d) {
  5076. var P = this, O = [], B = [], C = this.xAxis, b = this.yAxis, M = b.stacking.stacks[this.stackKey], x = {}, a = b.series, c = a.length, p = b.options.reversedStacks ? 1 : -1, i = a.indexOf(P);
  5077. if (d = d || this.points, this.options.stacking) {
  5078. for (var l = 0; l < d.length; l++)
  5079. d[l].leftNull = d[l].rightNull = void 0, x[d[l].x] = d[l];
  5080. N(M, function(t, n) {
  5081. t.total !== null && B.push(n);
  5082. }), B.sort(function(t, n) {
  5083. return t - n;
  5084. });
  5085. var s = a.map(function(t) {
  5086. return t.visible;
  5087. });
  5088. B.forEach(function(t, n) {
  5089. var o = 0, A, _;
  5090. if (x[t] && !x[t].isNull)
  5091. O.push(x[t]), [-1, 1].forEach(function(j) {
  5092. var T = j === 1 ? "rightNull" : "leftNull", X = 0, f = M[B[n + j]];
  5093. if (f)
  5094. for (var m = i; 0 <= m && m < c; ) {
  5095. var L = a[m].index;
  5096. A = f.points[L], A || (L === P.index ? x[t][T] = !0 : s[m] && (_ = M[t].points[L]) && (X -= _[1] - _[0])), m += p;
  5097. }
  5098. x[t][j === 1 ? "rightCliff" : "leftCliff"] = X;
  5099. });
  5100. else {
  5101. for (var D = i; 0 <= D && D < c; ) {
  5102. if (A = M[t].points[a[D].index]) {
  5103. o = A[1];
  5104. break;
  5105. }
  5106. D += p;
  5107. }
  5108. o = w(o, 0), o = b.translate(o, 0, 1, 0, 1), O.push({ isNull: !0, plotX: C.translate(t, 0, 0, 0, 1), x: t, plotY: o, yBottom: o });
  5109. }
  5110. });
  5111. }
  5112. return O;
  5113. }, u.defaultOptions = W(U.defaultOptions, { threshold: 0 }), u;
  5114. }(U), y(Z.prototype, {
  5115. singleStacks: !1,
  5116. drawLegendSymbol: R.drawRectangle
  5117. }), I.registerSeriesType("area", Z), Z;
  5118. }), E(h, "Series/Spline/SplineSeries.js", [h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R) {
  5119. var I = this && this.__extends || function() {
  5120. var U = function(W, N) {
  5121. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  5122. w.__proto__ = v;
  5123. } || function(w, v) {
  5124. for (var u in v)
  5125. v.hasOwnProperty(u) && (w[u] = v[u]);
  5126. }, U(W, N);
  5127. };
  5128. return function(W, N) {
  5129. function w() {
  5130. this.constructor = W;
  5131. }
  5132. U(W, N), W.prototype = N === null ? Object.create(N) : (w.prototype = N.prototype, new w());
  5133. };
  5134. }(), Z = y.seriesTypes.line, H = R.merge, $ = R.pick;
  5135. return R = function(U) {
  5136. function W() {
  5137. var N = U !== null && U.apply(this, arguments) || this;
  5138. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  5139. }
  5140. return I(W, U), W.prototype.getPointSpline = function(N, w, v) {
  5141. var u = w.plotX || 0, d = w.plotY || 0, P = N[v - 1];
  5142. if (v = N[v + 1], P && !P.isNull && P.doCurve !== !1 && !w.isCliff && v && !v.isNull && v.doCurve !== !1 && !w.isCliff) {
  5143. N = P.plotY || 0;
  5144. var O = v.plotX || 0;
  5145. v = v.plotY || 0;
  5146. var B = 0, C = (1.5 * u + (P.plotX || 0)) / 2.5, b = (1.5 * d + N) / 2.5;
  5147. O = (1.5 * u + O) / 2.5;
  5148. var M = (1.5 * d + v) / 2.5;
  5149. O !== C && (B = (M - b) * (O - u) / (O - C) + d - M), b += B, M += B, b > N && b > d ? (b = Math.max(N, d), M = 2 * d - b) : b < N && b < d && (b = Math.min(N, d), M = 2 * d - b), M > v && M > d ? (M = Math.max(v, d), b = 2 * d - M) : M < v && M < d && (M = Math.min(v, d), b = 2 * d - M), w.rightContX = O, w.rightContY = M;
  5150. }
  5151. return w = ["C", $(P.rightContX, P.plotX, 0), $(P.rightContY, P.plotY, 0), $(C, u, 0), $(b, d, 0), u, d], P.rightContX = P.rightContY = void 0, w;
  5152. }, W.defaultOptions = H(Z.defaultOptions), W;
  5153. }(Z), y.registerSeriesType("spline", R), R;
  5154. }), E(
  5155. h,
  5156. "Series/AreaSpline/AreaSplineSeries.js",
  5157. [h["Series/Area/AreaSeries.js"], h["Series/Spline/SplineSeries.js"], h["Core/Legend/LegendSymbol.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]],
  5158. function(y, R, I, Z, H) {
  5159. var $ = this && this.__extends || function() {
  5160. var w = function(v, u) {
  5161. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, P) {
  5162. d.__proto__ = P;
  5163. } || function(d, P) {
  5164. for (var O in P)
  5165. P.hasOwnProperty(O) && (d[O] = P[O]);
  5166. }, w(v, u);
  5167. };
  5168. return function(v, u) {
  5169. function d() {
  5170. this.constructor = v;
  5171. }
  5172. w(v, u), v.prototype = u === null ? Object.create(u) : (d.prototype = u.prototype, new d());
  5173. };
  5174. }(), U = y.prototype, W = H.extend, N = H.merge;
  5175. return H = function(w) {
  5176. function v() {
  5177. var u = w !== null && w.apply(this, arguments) || this;
  5178. return u.data = void 0, u.points = void 0, u.options = void 0, u;
  5179. }
  5180. return $(v, w), v.defaultOptions = N(R.defaultOptions, y.defaultOptions), v;
  5181. }(R), W(H.prototype, { getGraphPath: U.getGraphPath, getStackPoints: U.getStackPoints, drawGraph: U.drawGraph, drawLegendSymbol: I.drawRectangle }), Z.registerSeriesType("areaspline", H), H;
  5182. }
  5183. ), E(h, "Series/Column/ColumnSeries.js", [
  5184. h["Core/Animation/AnimationUtilities.js"],
  5185. h["Core/Color/Color.js"],
  5186. h["Core/Globals.js"],
  5187. h["Core/Legend/LegendSymbol.js"],
  5188. h["Core/Series/Series.js"],
  5189. h["Core/Series/SeriesRegistry.js"],
  5190. h["Core/Utilities.js"]
  5191. ], function(y, R, I, Z, H, $, U) {
  5192. var W = this && this.__extends || function() {
  5193. var c = function(p, i) {
  5194. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, s) {
  5195. l.__proto__ = s;
  5196. } || function(l, s) {
  5197. for (var t in s)
  5198. s.hasOwnProperty(t) && (l[t] = s[t]);
  5199. }, c(p, i);
  5200. };
  5201. return function(p, i) {
  5202. function l() {
  5203. this.constructor = p;
  5204. }
  5205. c(p, i), p.prototype = i === null ? Object.create(i) : (l.prototype = i.prototype, new l());
  5206. };
  5207. }(), N = y.animObject, w = R.parse, v = I.hasTouch;
  5208. y = I.noop;
  5209. var u = U.clamp, d = U.css, P = U.defined, O = U.extend, B = U.fireEvent, C = U.isArray, b = U.isNumber, M = U.merge, x = U.pick, a = U.objectEach;
  5210. return U = function(c) {
  5211. function p() {
  5212. var i = c !== null && c.apply(this, arguments) || this;
  5213. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  5214. }
  5215. return W(p, c), p.prototype.animate = function(i) {
  5216. var l = this, s = this.yAxis, t = l.options, n = this.chart.inverted, o = {}, A = n ? "translateX" : "translateY";
  5217. if (i)
  5218. o.scaleY = 1e-3, i = u(s.toPixels(t.threshold), s.pos, s.pos + s.len), n ? o.translateX = i - s.len : o.translateY = i, l.clipBox && l.setClip(), l.group.attr(o);
  5219. else {
  5220. var _ = Number(l.group.attr(A));
  5221. l.group.animate({ scaleY: 1 }, O(N(l.options.animation), { step: function(D, j) {
  5222. l.group && (o[A] = _ + j.pos * (s.pos - _), l.group.attr(o));
  5223. } }));
  5224. }
  5225. }, p.prototype.init = function(i, l) {
  5226. c.prototype.init.apply(this, arguments);
  5227. var s = this;
  5228. i = s.chart, i.hasRendered && i.series.forEach(function(t) {
  5229. t.type === s.type && (t.isDirty = !0);
  5230. });
  5231. }, p.prototype.getColumnMetrics = function() {
  5232. var i = this, l = i.options, s = i.xAxis, t = i.yAxis, n = s.options.reversedStacks;
  5233. n = s.reversed && !n || !s.reversed && n;
  5234. var o = {}, A, _ = 0;
  5235. l.grouping === !1 ? _ = 1 : i.chart.series.forEach(function(X) {
  5236. var f = X.yAxis, m = X.options;
  5237. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === f.len && t.pos === f.pos) {
  5238. if (m.stacking && m.stacking !== "group") {
  5239. A = X.stackKey, typeof o[A] > "u" && (o[A] = _++);
  5240. var L = o[A];
  5241. } else
  5242. m.grouping !== !1 && (L = _++);
  5243. X.columnIndex = L;
  5244. }
  5245. });
  5246. var D = Math.min(Math.abs(s.transA) * (s.ordinal && s.ordinal.slope || l.pointRange || s.closestPointRange || s.tickInterval || 1), s.len), j = D * l.groupPadding, T = (D - 2 * j) / (_ || 1);
  5247. return l = Math.min(l.maxPointWidth || s.len, x(l.pointWidth, T * (1 - 2 * l.pointPadding))), i.columnMetrics = { width: l, offset: (T - l) / 2 + (j + ((i.columnIndex || 0) + (n ? 1 : 0)) * T - D / 2) * (n ? -1 : 1), paddedWidth: T, columnCount: _ }, i.columnMetrics;
  5248. }, p.prototype.crispCol = function(i, l, s, t) {
  5249. var n = this.chart, o = this.borderWidth, A = -(o % 2 ? 0.5 : 0);
  5250. return o = o % 2 ? 0.5 : 1, n.inverted && n.renderer.isVML && (o += 1), this.options.crisp && (s = Math.round(i + s) + A, i = Math.round(i) + A, s -= i), t = Math.round(l + t) + o, A = 0.5 >= Math.abs(l) && 0.5 < t, l = Math.round(l) + o, t -= l, A && t && (--l, t += 1), { x: i, y: l, width: s, height: t };
  5251. }, p.prototype.adjustForMissingColumns = function(i, l, s, t) {
  5252. var n = this, o = this.options.stacking;
  5253. if (!s.isNull && 1 < t.columnCount) {
  5254. var A = 0, _ = 0;
  5255. a(this.yAxis.stacking && this.yAxis.stacking.stacks, function(D) {
  5256. if (typeof s.x == "number" && (D = D[s.x.toString()])) {
  5257. var j = D.points[n.index], T = D.total;
  5258. o ? (j && (A = _), D.hasValidPoints && _++) : C(j) && (A = j[1], _ = T || 0);
  5259. }
  5260. }), i = (s.plotX || 0) + ((_ - 1) * t.paddedWidth + l) / 2 - l - A * t.paddedWidth;
  5261. }
  5262. return i;
  5263. }, p.prototype.translate = function() {
  5264. var i = this, l = i.chart, s = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  5265. t = i.borderWidth = x(s.borderWidth, t ? 0 : 1);
  5266. var n = i.xAxis, o = i.yAxis, A = s.threshold, _ = i.translatedThreshold = o.getThreshold(A), D = x(s.minPointLength, 5), j = i.getColumnMetrics(), T = j.width, X = i.pointXOffset = j.offset, f = i.dataMin, m = i.dataMax, L = i.barW = Math.max(T, 1 + 2 * t);
  5267. l.inverted && (_ -= 0.5), s.pointPadding && (L = Math.ceil(L)), H.prototype.translate.apply(i), i.points.forEach(function(Y) {
  5268. var F = x(Y.yBottom, _), Q = 999 + Math.abs(F), k = Y.plotX || 0;
  5269. Q = u(Y.plotY, -Q, o.len + Q);
  5270. var G = Math.min(Q, F), z = Math.max(Q, F) - G, V = T, q = k + X, it = L;
  5271. D && Math.abs(z) < D && (z = D, k = !o.reversed && !Y.negative || o.reversed && Y.negative, b(A) && b(m) && Y.y === A && m <= A && (o.min || 0) < A && (f !== m || (o.max || 0) <= A) && (k = !k), G = Math.abs(G - _) > D ? F - D : _ - (k ? D : 0)), P(Y.options.pointWidth) && (V = it = Math.ceil(Y.options.pointWidth), q -= Math.round((V - T) / 2)), s.centerInCategory && (q = i.adjustForMissingColumns(q, V, Y, j)), Y.barX = q, Y.pointWidth = V, Y.tooltipPos = l.inverted ? [u(o.len + o.pos - l.plotLeft - Q, o.pos - l.plotLeft, o.len + o.pos - l.plotLeft), n.len + n.pos - l.plotTop - q - it / 2, z] : [n.left - l.plotLeft + q + it / 2, u(Q + o.pos - l.plotTop, o.pos - l.plotTop, o.len + o.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]);
  5272. });
  5273. }, p.prototype.drawGraph = function() {
  5274. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  5275. }, p.prototype.pointAttribs = function(i, l) {
  5276. var s = this.options, t = this.pointAttrToOptions || {}, n = t.stroke || "borderColor", o = t["stroke-width"] || "borderWidth", A = i && i.color || this.color, _ = i && i[n] || s[n] || A;
  5277. t = i && i.options.dashStyle || s.dashStyle;
  5278. var D = i && i[o] || s[o] || this[o] || 0, j = x(i && i.opacity, s.opacity, 1);
  5279. if (i && this.zones.length) {
  5280. var T = i.getZone();
  5281. A = i.options.color || T && (T.color || i.nonZonedColor) || this.color, T && (_ = T.borderColor || _, t = T.dashStyle || t, D = T.borderWidth || D);
  5282. }
  5283. return l && i && (i = M(s.states[l], i.options.states && i.options.states[l] || {}), l = i.brightness, A = i.color || typeof l < "u" && w(A).brighten(i.brightness).get() || A, _ = i[n] || _, D = i[o] || D, t = i.dashStyle || t, j = x(i.opacity, j)), n = { fill: A, stroke: _, "stroke-width": D, opacity: j }, t && (n.dashstyle = t), n;
  5284. }, p.prototype.drawPoints = function() {
  5285. var i = this, l = this.chart, s = i.options, t = l.renderer, n = s.animationLimit || 250, o;
  5286. i.points.forEach(function(A) {
  5287. var _ = A.graphic, D = !!_, j = _ && l.pointCount < n ? "animate" : "attr";
  5288. b(A.plotY) && A.y !== null ? (o = A.shapeArgs, _ && A.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (A.startXPos = i.xAxis.reversed ? -(o && o.width || 0) : i.xAxis.width), _ || (A.graphic = _ = t[A.shapeType](o).add(A.group || i.group)) && i.enabledDataSorting && l.hasRendered && l.pointCount < n && (_.attr({ x: A.startXPos }), D = !0, j = "animate"), _ && D && _[j](M(o)), s.borderRadius && _[j]({ r: s.borderRadius }), l.styledMode || _[j](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());
  5289. });
  5290. }, p.prototype.drawTracker = function() {
  5291. var i = this, l = i.chart, s = l.pointer, t = function(o) {
  5292. var A = s.getPointFromEvent(o);
  5293. typeof A < "u" && (s.isDirectTouch = !0, A.onMouseOver(o));
  5294. }, n;
  5295. i.points.forEach(function(o) {
  5296. n = C(o.dataLabels) ? o.dataLabels : o.dataLabel ? [o.dataLabel] : [], o.graphic && (o.graphic.element.point = o), n.forEach(function(A) {
  5297. A.div ? A.div.point = o : A.element.point = o;
  5298. });
  5299. }), i._hasTracking || (i.trackerGroups.forEach(function(o) {
  5300. i[o] && (i[o].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(A) {
  5301. s.onTrackerMouseOut(A);
  5302. }), v && i[o].on(
  5303. "touchstart",
  5304. t
  5305. ), !l.styledMode && i.options.cursor && i[o].css(d).css({ cursor: i.options.cursor }));
  5306. }), i._hasTracking = !0), B(this, "afterDrawTracker");
  5307. }, p.prototype.remove = function() {
  5308. var i = this, l = i.chart;
  5309. l.hasRendered && l.series.forEach(function(s) {
  5310. s.type === i.type && (s.isDirty = !0);
  5311. }), H.prototype.remove.apply(i, arguments);
  5312. }, p.defaultOptions = M(H.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  5313. hover: { halo: !1, brightness: 0.1 },
  5314. select: { color: "#cccccc", borderColor: "#000000" }
  5315. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), p;
  5316. }(H), O(U.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: Z.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), $.registerSeriesType("column", U), U;
  5317. }), E(h, "Core/Series/DataLabel.js", [
  5318. h["Core/Animation/AnimationUtilities.js"],
  5319. h["Core/FormatUtilities.js"],
  5320. h["Core/Utilities.js"]
  5321. ], function(y, R, I) {
  5322. var Z = y.getDeferredAnimation, H = R.format, $ = I.defined, U = I.extend, W = I.fireEvent, N = I.isArray, w = I.merge, v = I.objectEach, u = I.pick, d = I.splat, P;
  5323. return function(O) {
  5324. function B(p, i, l, s, t) {
  5325. var n = this, o = this.chart, A = this.isCartesian && o.inverted, _ = this.enabledDataSorting, D = u(p.dlBox && p.dlBox.centerX, p.plotX, -9999), j = u(p.plotY, -9999), T = i.getBBox(), X = l.rotation, f = l.align, m = o.isInsidePlot(D, Math.round(j), { inverted: A, paneCoordinates: !0, series: n }), L = function(k) {
  5326. _ && n.xAxis && !Y && n.setDataLabelStartPos(
  5327. p,
  5328. i,
  5329. t,
  5330. m,
  5331. k
  5332. );
  5333. }, Y = u(l.overflow, _ ? "none" : "justify") === "justify", F = this.visible && p.visible !== !1 && (p.series.forceDL || _ && !Y || m || u(l.inside, !!this.options.stacking) && s && o.isInsidePlot(D, A ? s.x + 1 : s.y + s.height - 1, { inverted: A, paneCoordinates: !0, series: n }));
  5334. if (F) {
  5335. var Q = o.renderer.fontMetrics(o.styledMode ? void 0 : l.style.fontSize, i).b;
  5336. s = U({ x: A ? this.yAxis.len - j : D, y: Math.round(A ? this.xAxis.len - D : j), width: 0, height: 0 }, s), U(l, { width: T.width, height: T.height }), X ? (Y = !1, D = o.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: f }), L = (X + 720) % 360, L = 180 < L && 360 > L, f === "left" ? D.y -= L ? T.height : 0 : f === "center" ? (D.x -= T.width / 2, D.y -= T.height / 2) : f === "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) : u(l.crop, !0) && (F = o.isInsidePlot(D.x, D.y, { paneCoordinates: !0, series: n }) && o.isInsidePlot(D.x + T.width, D.y + T.height, {
  5337. paneCoordinates: !0,
  5338. series: n
  5339. })), l.shape && !X && i[t ? "attr" : "animate"]({ anchorX: A ? o.plotWidth - p.plotY : p.plotX, anchorY: A ? o.plotHeight - p.plotX : p.plotY });
  5340. }
  5341. t && _ && (i.placed = !1), F || _ && !Y || (i.hide(!0), i.placed = !1);
  5342. }
  5343. function C(p, i) {
  5344. var l = i.filter;
  5345. 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;
  5346. }
  5347. function b() {
  5348. var p = this, i = p.chart, l = p.options, s = p.points, t = p.hasRendered || 0, n = i.renderer, o = l.dataLabels, A, _ = o.animation;
  5349. if (_ = o.defer ? Z(
  5350. i,
  5351. _,
  5352. p
  5353. ) : { defer: 0, duration: 0 }, o = 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), o), W(this, "drawDataLabels"), N(o) || o.enabled || p._hasPointLabels) {
  5354. var D = p.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", o.zIndex || 6);
  5355. D.attr({ opacity: +t }), !t && (t = p.dataLabelsGroup) && (p.visible && D.show(!0), t[l.animation ? "animate" : "attr"]({ opacity: 1 }, _)), s.forEach(function(j) {
  5356. A = d(x(o, j.dlOptions || j.options && j.options.dataLabels)), A.forEach(function(T, X) {
  5357. var f = T.enabled && (!j.isNull || j.dataLabelOnNull) && C(j, T), m = j.connectors ? j.connectors[X] : j.connector, L = j.dataLabels ? j.dataLabels[X] : j.dataLabel, Y = u(T.distance, j.labelDistance), F = !L;
  5358. if (f) {
  5359. var Q = j.getLabelConfig(), k = u(T[j.formatPrefix + "Format"], T.format);
  5360. Q = $(k) ? H(k, Q, i) : (T[j.formatPrefix + "Formatter"] || T.formatter).call(Q, T), k = T.style;
  5361. var G = T.rotation;
  5362. i.styledMode || (k.color = u(T.color, k.color, p.color, "#000000"), k.color === "contrast" ? (j.contrastColor = n.getContrast(j.color || p.color), k.color = !$(Y) && T.inside || 0 > Y || l.stacking ? j.contrastColor : "#000000") : delete j.contrastColor, l.cursor && (k.cursor = l.cursor));
  5363. var z = { r: T.borderRadius || 0, rotation: G, padding: T.padding, zIndex: 1 };
  5364. i.styledMode || (z.fill = T.backgroundColor, z.stroke = T.borderColor, z["stroke-width"] = T.borderWidth), v(z, function(V, q) {
  5365. typeof V > "u" && delete z[q];
  5366. });
  5367. }
  5368. !L || f && $(Q) && !!L.div == !!T.useHTML || (j.dataLabel = L = j.dataLabel && j.dataLabel.destroy(), j.dataLabels && (j.dataLabels.length === 1 ? delete j.dataLabels : delete j.dataLabels[X]), X || delete j.dataLabel, m && (j.connector = j.connector.destroy(), j.connectors && (j.connectors.length === 1 ? delete j.connectors : delete j.connectors[X]))), f && $(Q) && (L ? z.text = Q : (j.dataLabels = j.dataLabels || [], L = j.dataLabels[X] = G ? n.text(Q, 0, -9999, T.useHTML).addClass("highcharts-data-label") : n.label(Q, 0, -9999, T.shape, null, null, T.useHTML, null, "data-label"), X || (j.dataLabel = L), L.addClass(" highcharts-data-label-color-" + j.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(j.getDataLabelPath && j.getDataLabelPath(L) || j.graphic, T.textPath), j.dataLabelPath && !T.textPath.enabled && (j.dataLabelPath = j.dataLabelPath.destroy())), p.alignDataLabel(j, L, T, null, F));
  5369. });
  5370. });
  5371. }
  5372. W(this, "afterDrawDataLabels");
  5373. }
  5374. function M(p, i, l, s, t, n) {
  5375. var o = this.chart, A = i.align, _ = i.verticalAlign, D = p.box ? 0 : p.padding || 0, j = i.x;
  5376. j = j === void 0 ? 0 : j;
  5377. var T = i.y;
  5378. T = T === void 0 ? 0 : T;
  5379. var X = (l.x || 0) + D;
  5380. if (0 > X) {
  5381. A === "right" && 0 <= j ? (i.align = "left", i.inside = !0) : j -= X;
  5382. var f = !0;
  5383. }
  5384. return X = (l.x || 0) + s.width - D, X > o.plotWidth && (A === "left" && 0 >= j ? (i.align = "right", i.inside = !0) : j += o.plotWidth - X, f = !0), X = l.y + D, 0 > X && (_ === "bottom" && 0 <= T ? (i.verticalAlign = "top", i.inside = !0) : T -= X, f = !0), X = (l.y || 0) + s.height - D, X > o.plotHeight && (_ === "top" && 0 >= T ? (i.verticalAlign = "bottom", i.inside = !0) : T += o.plotHeight - X, f = !0), f && (i.x = j, i.y = T, p.placed = !n, p.align(i, void 0, t)), f;
  5385. }
  5386. function x(p, i) {
  5387. var l = [], s;
  5388. if (N(p) && !N(i))
  5389. l = p.map(function(t) {
  5390. return w(t, i);
  5391. });
  5392. else if (N(i) && !N(p))
  5393. l = i.map(function(t) {
  5394. return w(p, t);
  5395. });
  5396. else if (N(p) || N(i))
  5397. for (s = Math.max(p.length, i.length); s--; )
  5398. l[s] = w(p[s], i[s]);
  5399. else
  5400. l = w(p, i);
  5401. return l;
  5402. }
  5403. function a(p, i, l, s, t) {
  5404. var n = this.chart, o = n.inverted, A = this.xAxis, _ = A.reversed, D = o ? i.height / 2 : i.width / 2;
  5405. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = o ? t.x : _ ? -D - p : A.width - D + p, i.startYPos = o ? _ ? 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(
  5406. { opacity: 0 },
  5407. void 0,
  5408. i.hide
  5409. ), n.hasRendered && (l && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  5410. }
  5411. var c = [];
  5412. O.compose = function(p) {
  5413. if (c.indexOf(p) === -1) {
  5414. var i = p.prototype;
  5415. c.push(p), i.alignDataLabel = B, i.drawDataLabels = b, i.justifyDataLabel = M, i.setDataLabelStartPos = a;
  5416. }
  5417. };
  5418. }(P || (P = {})), P;
  5419. }), E(h, "Series/Column/ColumnDataLabel.js", [h["Core/Series/DataLabel.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R, I) {
  5420. var Z = R.series, H = I.merge, $ = I.pick, U;
  5421. return function(W) {
  5422. function N(v, u, d, P, O) {
  5423. var B = this.chart.inverted, C = v.series, b = (C.xAxis ? C.xAxis.len : this.chart.plotSizeX) || 0;
  5424. C = (C.yAxis ? C.yAxis.len : this.chart.plotSizeY) || 0;
  5425. var M = v.dlBox || v.shapeArgs, x = $(v.below, v.plotY > $(this.translatedThreshold, C)), a = $(d.inside, !!this.options.stacking);
  5426. M && (P = H(M), 0 > P.y && (P.height += P.y, P.y = 0), M = P.y + P.height - C, 0 < M && M < P.height && (P.height -= M), B && (P = { x: C - P.y - P.height, y: b - P.x - P.width, width: P.height, height: P.width }), a || (B ? (P.x += x ? 0 : P.width, P.width = 0) : (P.y += x ? P.height : 0, P.height = 0))), d.align = $(d.align, !B || a ? "center" : x ? "right" : "left"), d.verticalAlign = $(d.verticalAlign, B || a ? "middle" : x ? "top" : "bottom"), Z.prototype.alignDataLabel.call(this, v, u, d, P, O), d.inside && v.contrastColor && u.css({ color: v.contrastColor });
  5427. }
  5428. var w = [];
  5429. W.compose = function(v) {
  5430. y.compose(Z), w.indexOf(v) === -1 && (w.push(v), v.prototype.alignDataLabel = N);
  5431. };
  5432. }(U || (U = {})), U;
  5433. }), E(h, "Series/Bar/BarSeries.js", [h["Series/Column/ColumnSeries.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R, I) {
  5434. var Z = this && this.__extends || function() {
  5435. var U = function(W, N) {
  5436. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  5437. w.__proto__ = v;
  5438. } || function(w, v) {
  5439. for (var u in v)
  5440. v.hasOwnProperty(u) && (w[u] = v[u]);
  5441. }, U(W, N);
  5442. };
  5443. return function(W, N) {
  5444. function w() {
  5445. this.constructor = W;
  5446. }
  5447. U(W, N), W.prototype = N === null ? Object.create(N) : (w.prototype = N.prototype, new w());
  5448. };
  5449. }(), H = I.extend, $ = I.merge;
  5450. return I = function(U) {
  5451. function W() {
  5452. var N = U !== null && U.apply(this, arguments) || this;
  5453. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  5454. }
  5455. return Z(W, U), W.defaultOptions = $(
  5456. y.defaultOptions,
  5457. {}
  5458. ), W;
  5459. }(y), H(I.prototype, { inverted: !0 }), R.registerSeriesType("bar", I), I;
  5460. }), 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, R, I, Z) {
  5461. var H = this && this.__extends || function() {
  5462. var N = function(w, v) {
  5463. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, d) {
  5464. u.__proto__ = d;
  5465. } || function(u, d) {
  5466. for (var P in d)
  5467. d.hasOwnProperty(P) && (u[P] = d[P]);
  5468. }, N(w, v);
  5469. };
  5470. return function(w, v) {
  5471. function u() {
  5472. this.constructor = w;
  5473. }
  5474. N(w, v), w.prototype = v === null ? Object.create(v) : (u.prototype = v.prototype, new u());
  5475. };
  5476. }(), $ = Z.addEvent, U = Z.extend, W = Z.merge;
  5477. return Z = function(N) {
  5478. function w() {
  5479. var v = N !== null && N.apply(this, arguments) || this;
  5480. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  5481. }
  5482. return H(w, N), w.prototype.applyJitter = function() {
  5483. var v = this, u = this.options.jitter, d = this.points.length;
  5484. u && this.points.forEach(function(P, O) {
  5485. ["x", "y"].forEach(function(B, C) {
  5486. var b = "plot" + B.toUpperCase();
  5487. if (u[B] && !P.isNull) {
  5488. var M = v[B + "Axis"], x = u[B] * M.transA;
  5489. if (M && !M.isLog) {
  5490. var a = Math.max(0, P[b] - x);
  5491. M = Math.min(M.len, P[b] + x), C = 1e4 * Math.sin(O + C * d), P[b] = a + (M - a) * (C - Math.floor(C)), B === "x" && (P.clientX = P.plotX);
  5492. }
  5493. }
  5494. });
  5495. });
  5496. }, w.prototype.drawGraph = function() {
  5497. this.options.lineWidth ? N.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  5498. }, w.defaultOptions = W(R.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  5499. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  5500. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  5501. } }), w;
  5502. }(R), U(Z.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), $(Z, "afterTranslate", function() {
  5503. this.applyJitter();
  5504. }), I.registerSeriesType("scatter", Z), Z;
  5505. }), E(h, "Series/CenteredUtilities.js", [h["Core/Globals.js"], h["Core/Series/Series.js"], h["Core/Utilities.js"]], function(y, R, I) {
  5506. var Z = y.deg2rad, H = I.isNumber, $ = I.pick, U = I.relativeLength, W;
  5507. return function(N) {
  5508. N.getCenter = function() {
  5509. var w = this.options, v = this.chart, u = 2 * (w.slicedOffset || 0), d = v.plotWidth - 2 * u, P = v.plotHeight - 2 * u, O = w.center, B = Math.min(d, P), C = w.size, b = w.innerSize || 0;
  5510. for (typeof C == "string" && (C = parseFloat(C)), typeof b == "string" && (b = parseFloat(b)), w = [$(O[0], "50%"), $(O[1], "50%"), $(C && 0 > C ? void 0 : w.size, "100%"), $(b && 0 > b ? void 0 : w.innerSize || 0, "0%")], !v.angular || this instanceof R || (w[3] = 0), O = 0; 4 > O; ++O)
  5511. C = w[O], v = 2 > O || O === 2 && /%$/.test(C), w[O] = U(C, [d, P, B, w[2]][O]) + (v ? u : 0);
  5512. return w[3] > w[2] && (w[3] = w[2]), w;
  5513. }, N.getStartAndEndRadians = function(w, v) {
  5514. return w = H(w) ? w : 0, v = H(v) && v > w && 360 > v - w ? v : w + 360, { start: Z * (w + -90), end: Z * (v + -90) };
  5515. };
  5516. }(W || (W = {})), W;
  5517. }), E(h, "Series/Pie/PiePoint.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Series/Point.js"], h["Core/Utilities.js"]], function(y, R, I) {
  5518. var Z = this && this.__extends || function() {
  5519. var v = function(u, d) {
  5520. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  5521. P.__proto__ = O;
  5522. } || function(P, O) {
  5523. for (var B in O)
  5524. O.hasOwnProperty(B) && (P[B] = O[B]);
  5525. }, v(u, d);
  5526. };
  5527. return function(u, d) {
  5528. function P() {
  5529. this.constructor = u;
  5530. }
  5531. v(u, d), u.prototype = d === null ? Object.create(d) : (P.prototype = d.prototype, new P());
  5532. };
  5533. }(), H = y.setAnimation, $ = I.addEvent, U = I.defined;
  5534. y = I.extend;
  5535. var W = I.isNumber, N = I.pick, w = I.relativeLength;
  5536. return R = function(v) {
  5537. function u() {
  5538. var d = v !== null && v.apply(this, arguments) || this;
  5539. return d.labelDistance = void 0, d.options = void 0, d.series = void 0, d;
  5540. }
  5541. return Z(u, v), u.prototype.getConnectorPath = function() {
  5542. var d = this.labelPosition, P = this.series.options.dataLabels, O = this.connectorShapes, B = P.connectorShape;
  5543. return O[B] && (B = O[B]), B.call(this, { x: d.final.x, y: d.final.y, alignment: d.alignment }, d.connectorPosition, P);
  5544. }, u.prototype.getTranslate = function() {
  5545. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  5546. }, u.prototype.haloPath = function(d) {
  5547. var P = this.shapeArgs;
  5548. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(P.x, P.y, P.r + d, P.r + d, { innerR: P.r - 1, start: P.start, end: P.end });
  5549. }, u.prototype.init = function() {
  5550. var d = this;
  5551. v.prototype.init.apply(
  5552. this,
  5553. arguments
  5554. ), this.name = N(this.name, "Slice");
  5555. var P = function(O) {
  5556. d.slice(O.type === "select");
  5557. };
  5558. return $(this, "select", P), $(this, "unselect", P), this;
  5559. }, u.prototype.isValid = function() {
  5560. return W(this.y) && 0 <= this.y;
  5561. }, u.prototype.setVisible = function(d, P) {
  5562. var O = this, B = this.series, C = B.chart, b = B.options.ignoreHiddenPoint;
  5563. P = N(P, b), d !== this.visible && (this.visible = this.options.visible = d = typeof d > "u" ? !this.visible : d, B.options.data[B.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(M) {
  5564. O[M] && O[M][d ? "show" : "hide"](d);
  5565. }), this.legendItem && C.legend.colorizeItem(this, d), d || this.state !== "hover" || this.setState(""), b && (B.isDirty = !0), P && C.redraw());
  5566. }, u.prototype.slice = function(d, P, O) {
  5567. var B = this.series;
  5568. H(O, B.chart), N(P, !0), this.sliced = this.options.sliced = U(d) ? d : !this.sliced, B.options.data[B.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  5569. }, u;
  5570. }(R), y(R.prototype, { connectorShapes: { fixedOffset: function(v, u, d) {
  5571. var P = u.breakAt;
  5572. return u = u.touchingSliceAt, [["M", v.x, v.y], d.softConnector ? ["C", v.x + (v.alignment === "left" ? -5 : 5), v.y, 2 * P.x - u.x, 2 * P.y - u.y, P.x, P.y] : ["L", P.x, P.y], ["L", u.x, u.y]];
  5573. }, straight: function(v, u) {
  5574. return u = u.touchingSliceAt, [["M", v.x, v.y], ["L", u.x, u.y]];
  5575. }, crookedLine: function(v, u, d) {
  5576. u = u.touchingSliceAt;
  5577. var P = this.series, O = P.center[0], B = P.chart.plotWidth, C = P.chart.plotLeft;
  5578. P = v.alignment;
  5579. var b = this.shapeArgs.r;
  5580. return d = w(d.crookDistance, 1), B = P === "left" ? O + b + (B + C - O - b) * (1 - d) : C + (O - b) * d, d = ["L", B, v.y], O = !0, (P === "left" ? B > v.x || B < u.x : B < v.x || B > u.x) && (O = !1), v = [["M", v.x, v.y]], O && v.push(d), v.push(["L", u.x, u.y]), v;
  5581. } } }), R;
  5582. }), 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, R, I, Z, H, $, U, W, N) {
  5583. var w = this && this.__extends || function() {
  5584. var b = function(M, x) {
  5585. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, c) {
  5586. a.__proto__ = c;
  5587. } || function(a, c) {
  5588. for (var p in c)
  5589. c.hasOwnProperty(p) && (a[p] = c[p]);
  5590. }, b(M, x);
  5591. };
  5592. return function(M, x) {
  5593. function a() {
  5594. this.constructor = M;
  5595. }
  5596. b(M, x), M.prototype = x === null ? Object.create(x) : (a.prototype = x.prototype, new a());
  5597. };
  5598. }(), v = y.getStartAndEndRadians;
  5599. I = I.noop;
  5600. var u = N.clamp, d = N.extend, P = N.fireEvent, O = N.merge, B = N.pick, C = N.relativeLength;
  5601. return N = function(b) {
  5602. function M() {
  5603. var x = b !== null && b.apply(this, arguments) || this;
  5604. return x.center = void 0, x.data = void 0, x.maxLabelDistance = void 0, x.options = void 0, x.points = void 0, x;
  5605. }
  5606. return w(M, b), M.prototype.animate = function(x) {
  5607. var a = this, c = a.points, p = a.startAngleRad;
  5608. x || c.forEach(function(i) {
  5609. var l = i.graphic, s = i.shapeArgs;
  5610. l && s && (l.attr({ r: B(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));
  5611. });
  5612. }, M.prototype.drawEmpty = function() {
  5613. var x = this.startAngleRad, a = this.endAngleRad, c = this.options;
  5614. if (this.total === 0 && this.center) {
  5615. var p = this.center[0], i = this.center[1];
  5616. 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" });
  5617. } else
  5618. this.graph && (this.graph = this.graph.destroy());
  5619. }, M.prototype.drawPoints = function() {
  5620. var x = this.chart.renderer;
  5621. this.points.forEach(function(a) {
  5622. 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);
  5623. });
  5624. }, M.prototype.generatePoints = function() {
  5625. b.prototype.generatePoints.call(this), this.updateTotals();
  5626. }, M.prototype.getX = function(x, a, c) {
  5627. var p = this.center, i = this.radii ? this.radii[c.index] || 0 : p[2] / 2;
  5628. return x = Math.asin(u((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);
  5629. }, M.prototype.hasData = function() {
  5630. return !!this.processedXData.length;
  5631. }, M.prototype.redrawPoints = function() {
  5632. var x = this, a = x.chart, c = a.renderer, p = x.options.shadow, i, l, s, t;
  5633. this.drawEmpty(), !p || x.shadowGroup || a.styledMode || (x.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(x.group)), x.points.forEach(function(n) {
  5634. var o = {};
  5635. if (l = n.graphic, !n.isNull && l) {
  5636. var A = void 0;
  5637. t = n.shapeArgs, i = n.getTranslate(), a.styledMode || (A = n.shadowGroup, p && !A && (A = n.shadowGroup = c.g("shadow").add(x.shadowGroup)), A && A.attr(i), s = x.pointAttribs(n, n.selected && "select")), n.delayedRendering ? (l.setRadialReference(x.center).attr(t).attr(i), a.styledMode || l.attr(s).attr({ "stroke-linejoin": "round" }).shadow(p, A), n.delayedRendering = !1) : (l.setRadialReference(x.center), a.styledMode || O(!0, o, s), O(!0, o, t, i), l.animate(o)), l.attr({ visibility: n.visible ? "inherit" : "hidden" }), l.addClass(n.getClassName(), !0);
  5638. } else
  5639. l && (n.graphic = l.destroy());
  5640. });
  5641. }, M.prototype.sortByAngle = function(x, a) {
  5642. x.sort(function(c, p) {
  5643. return typeof c.angle < "u" && (p.angle - c.angle) * a;
  5644. });
  5645. }, M.prototype.translate = function(x) {
  5646. this.generatePoints();
  5647. var a = this.options, c = a.slicedOffset, p = c + (a.borderWidth || 0), i = v(a.startAngle, a.endAngle), l = this.startAngleRad = i.start;
  5648. i = (this.endAngleRad = i.end) - l;
  5649. var s = this.points, t = a.dataLabels.distance;
  5650. a = a.ignoreHiddenPoint;
  5651. var n = s.length, o, A = 0;
  5652. for (x || (this.center = x = this.getCenter()), o = 0; o < n; o++) {
  5653. var _ = s[o], D = l + A * i;
  5654. !_.isValid() || a && !_.visible || (A += _.percentage / 100);
  5655. var j = 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 * j) / 1e3 };
  5656. _.shapeType = "arc", _.shapeArgs = T, _.labelDistance = B(_.options.dataLabels && _.options.dataLabels.distance, t), _.labelDistance = C(_.labelDistance, T.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, _.labelDistance), j = (j + D) / 2, j > 1.5 * Math.PI ? j -= 2 * Math.PI : j < -Math.PI / 2 && (j += 2 * Math.PI), _.slicedTranslation = { translateX: Math.round(Math.cos(j) * c), translateY: Math.round(Math.sin(j) * c) }, T = Math.cos(j) * x[2] / 2;
  5657. var X = Math.sin(j) * x[2] / 2;
  5658. _.tooltipPos = [x[0] + 0.7 * T, x[1] + 0.7 * X], _.half = j < -Math.PI / 2 || j > Math.PI / 2 ? 1 : 0, _.angle = j, D = Math.min(p, _.labelDistance / 5), _.labelPosition = { natural: { x: x[0] + T + Math.cos(j) * _.labelDistance, y: x[1] + X + Math.sin(j) * _.labelDistance }, final: {}, alignment: 0 > _.labelDistance ? "center" : _.half ? "right" : "left", connectorPosition: { breakAt: { x: x[0] + T + Math.cos(j) * D, y: x[1] + X + Math.sin(j) * D }, touchingSliceAt: { x: x[0] + T, y: x[1] + X } } };
  5659. }
  5660. P(this, "afterTranslate");
  5661. }, M.prototype.updateTotals = function() {
  5662. var x = this.points, a = x.length, c = this.options.ignoreHiddenPoint, p, i = 0;
  5663. for (p = 0; p < a; p++) {
  5664. var l = x[p];
  5665. !l.isValid() || c && !l.visible || (i += l.y);
  5666. }
  5667. for (this.total = i, p = 0; p < a; p++)
  5668. l = x[p], l.percentage = 0 < i && (l.visible || !c) ? l.y / i * 100 : 0, l.total = i;
  5669. }, M.defaultOptions = O($.defaultOptions, {
  5670. center: [null, null],
  5671. clip: !1,
  5672. colorByPoint: !0,
  5673. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  5674. return this.point.isNull ? void 0 : this.point.name;
  5675. }, softConnector: !0, x: 0 },
  5676. fillColor: void 0,
  5677. ignoreHiddenPoint: !0,
  5678. inactiveOtherPoints: !0,
  5679. legendType: "point",
  5680. marker: null,
  5681. size: null,
  5682. showInLegend: !1,
  5683. slicedOffset: 10,
  5684. stickyTracking: !1,
  5685. tooltip: { followPointer: !0 },
  5686. borderColor: "#ffffff",
  5687. borderWidth: 1,
  5688. lineWidth: void 0,
  5689. states: { hover: { brightness: 0.1 } }
  5690. }), M;
  5691. }($), d(N.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: Z.drawRectangle, drawTracker: R.prototype.drawTracker, getCenter: y.getCenter, getSymbol: I, isCartesian: !1, noSharedTooltip: !0, pointAttribs: R.prototype.pointAttribs, pointClass: H, requireSorting: !1, searchPoint: I, trackerGroups: ["group", "dataLabelsGroup"] }), U.registerSeriesType("pie", N), N;
  5692. }), E(h, "Series/Pie/PieDataLabel.js", [
  5693. h["Core/Series/DataLabel.js"],
  5694. h["Core/Globals.js"],
  5695. h["Core/Renderer/RendererUtilities.js"],
  5696. h["Core/Series/SeriesRegistry.js"],
  5697. h["Core/Utilities.js"]
  5698. ], function(y, R, I, Z, H) {
  5699. var $ = R.noop, U = I.distribute, W = Z.series, N = H.arrayMax, w = H.clamp, v = H.defined, u = H.merge, d = H.pick, P = H.relativeLength, O;
  5700. return function(B) {
  5701. function C() {
  5702. var c = this, p = c.data, i = c.chart, l = c.options.dataLabels || {}, s = l.connectorPadding, t = i.plotWidth, n = i.plotHeight, o = i.plotLeft, A = Math.round(i.chartWidth / 3), _ = c.center, D = _[2] / 2, j = _[1], T = [[], []], X = [0, 0, 0, 0], f = c.dataLabelPositioners, m, L, Y, F, Q, k, G, z, V, q, it, et;
  5703. c.visible && (l.enabled || c._hasPointLabels) && (p.forEach(function(nt) {
  5704. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  5705. }), W.prototype.drawDataLabels.apply(c), p.forEach(function(nt) {
  5706. 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));
  5707. }), T.forEach(function(nt, rt) {
  5708. var ct = nt.length, gt = [], dt;
  5709. if (ct) {
  5710. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  5711. var lt = Math.max(0, j - D - c.maxLabelDistance), at = Math.min(j + D + c.maxLabelDistance, i.plotHeight);
  5712. nt.forEach(function(J) {
  5713. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, j - D - J.labelDistance), J.bottom = Math.min(j + 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));
  5714. }), lt = at + dt - lt, U(gt, lt, lt / 5);
  5715. }
  5716. for (it = 0; it < ct; it++) {
  5717. if (m = nt[it], k = m.labelPosition, F = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", V = lt = k.natural.y, gt && v(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (G = m.distributeBox.size, V = f.radialDistributionY(m))), delete m.positionIndex, l.justify)
  5718. z = f.justify(m, D, _);
  5719. else
  5720. switch (l.alignTo) {
  5721. case "connectors":
  5722. z = f.alignToConnectors(nt, rt, t, o);
  5723. break;
  5724. case "plotEdges":
  5725. z = f.alignToPlotEdges(F, rt, t, o);
  5726. break;
  5727. default:
  5728. z = f.radialDistributionX(c, m, V, lt);
  5729. }
  5730. F._attr = { visibility: q, align: k.alignment }, et = m.options.dataLabels || {}, F._pos = { x: z + d(et.x, l.x) + ({ left: s, right: -s }[k.alignment] || 0), y: V + d(et.y, l.y) - 10 }, k.final.x = z, k.final.y = V, d(l.crop, !0) && (Q = F.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 > V - G / 2 ? X[0] = Math.max(Math.round(-V + G / 2), X[0]) : V + G / 2 > n && (X[2] = Math.max(Math.round(V + G / 2 - n), X[2])), F.sideOverflow = lt);
  5731. }
  5732. }
  5733. }), N(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  5734. if (et = u(l, nt.options.dataLabels), L = d(et.connectorWidth, 1)) {
  5735. var rt;
  5736. Y = nt.connector, (F = nt.dataLabel) && F._pos && nt.visible && 0 < nt.labelDistance ? (q = F._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());
  5737. }
  5738. }));
  5739. }
  5740. function b() {
  5741. this.points.forEach(function(c) {
  5742. var p = c.dataLabel, i;
  5743. 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;
  5744. }, this);
  5745. }
  5746. function M(c) {
  5747. var p = this.center, i = this.options, l = i.center, s = i.minSize || 80, t = i.size !== null;
  5748. if (!t) {
  5749. if (l[0] !== null)
  5750. var n = Math.max(p[2] - Math.max(c[1], c[3]), s);
  5751. else
  5752. n = Math.max(p[2] - c[1] - c[3], s), p[0] += (c[3] - c[1]) / 2;
  5753. l[1] !== null ? n = w(n, s, p[2] - Math.max(c[0], c[2])) : (n = w(n, s, p[2] - c[0] - c[2]), p[1] += (c[0] - c[2]) / 2), n < p[2] ? (p[2] = n, p[3] = Math.min(P(i.innerSize || 0, n), n), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  5754. }
  5755. return t;
  5756. }
  5757. var x = [], a = { radialDistributionY: function(c) {
  5758. return c.top + c.distributeBox.pos;
  5759. }, radialDistributionX: function(c, p, i, l) {
  5760. return c.getX(i < p.top + 2 || i > p.bottom - 2 ? l : i, p.half, p);
  5761. }, justify: function(c, p, i) {
  5762. return i[0] + (c.half ? -1 : 1) * (p + c.labelDistance);
  5763. }, alignToPlotEdges: function(c, p, i, l) {
  5764. return c = c.getBBox().width, p ? c + l : i - c - l;
  5765. }, alignToConnectors: function(c, p, i, l) {
  5766. var s = 0, t;
  5767. return c.forEach(function(n) {
  5768. t = n.dataLabel.getBBox().width, t > s && (s = t);
  5769. }), p ? s + l : i - s - l;
  5770. } };
  5771. B.compose = function(c) {
  5772. y.compose(W), x.indexOf(c) === -1 && (x.push(c), c = c.prototype, c.dataLabelPositioners = a, c.alignDataLabel = $, c.drawDataLabels = C, c.placeDataLabels = b, c.verifyDataLabelOverflow = M);
  5773. };
  5774. }(O || (O = {})), O;
  5775. }), E(h, "Extensions/OverlappingDataLabels.js", [h["Core/Chart/Chart.js"], h["Core/Utilities.js"]], function(y, R) {
  5776. function I(w, v) {
  5777. var u = !1;
  5778. if (w) {
  5779. var d = w.newOpacity;
  5780. w.oldOpacity !== d && (w.alignAttr && w.placed ? (w[d ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), u = !0, w.alignAttr.opacity = d, w[w.isOld ? "animate" : "attr"](w.alignAttr, null, function() {
  5781. v.styledMode || w.css({ pointerEvents: d ? "auto" : "none" });
  5782. }), H(v, "afterHideOverlappingLabel")) : w.attr({ opacity: d })), w.isOld = !0;
  5783. }
  5784. return u;
  5785. }
  5786. var Z = R.addEvent, H = R.fireEvent, $ = R.isArray, U = R.isNumber, W = R.objectEach, N = R.pick;
  5787. Z(y, "render", function() {
  5788. var w = this, v = [];
  5789. (this.labelCollectors || []).forEach(function(u) {
  5790. v = v.concat(u());
  5791. }), (this.yAxis || []).forEach(function(u) {
  5792. u.stacking && u.options.stackLabels && !u.options.stackLabels.allowOverlap && W(u.stacking.stacks, function(d) {
  5793. W(d, function(P) {
  5794. P.label && P.label.visibility !== "hidden" && v.push(P.label);
  5795. });
  5796. });
  5797. }), (this.series || []).forEach(function(u) {
  5798. var d = u.options.dataLabels;
  5799. u.visible && (d.enabled !== !1 || u._hasPointLabels) && (d = function(P) {
  5800. return P.forEach(function(O) {
  5801. O.visible && ($(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(B) {
  5802. var C = B.options;
  5803. B.labelrank = N(C.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), C.allowOverlap ? (B.oldOpacity = B.opacity, B.newOpacity = 1, I(B, w)) : v.push(B);
  5804. });
  5805. });
  5806. }, d(u.nodes || []), d(u.points));
  5807. }), this.hideOverlappingLabels(v);
  5808. }), y.prototype.hideOverlappingLabels = function(w) {
  5809. var v = this, u = w.length, d = v.renderer, P, O, B, C = !1, b = function(a) {
  5810. var c, p = a.box ? 0 : a.padding || 0, i = c = 0, l;
  5811. if (a && (!a.alignAttr || a.placed)) {
  5812. var s = a.alignAttr || { x: a.attr("x"), y: a.attr("y") }, t = a.parentGroup;
  5813. a.width || (c = a.getBBox(), a.width = c.width, a.height = c.height, c = d.fontMetrics(null, a.element).h);
  5814. var n = a.width - 2 * p;
  5815. return (l = { left: "0", center: "0.5", right: "1" }[a.alignValue]) ? i = +l * n : U(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 };
  5816. }
  5817. };
  5818. for (O = 0; O < u; O++)
  5819. (P = w[O]) && (P.oldOpacity = P.opacity, P.newOpacity = 1, P.absoluteBox = b(P));
  5820. for (w.sort(function(a, c) {
  5821. return (c.labelrank || 0) - (a.labelrank || 0);
  5822. }), O = 0; O < u; O++) {
  5823. var M = (b = w[O]) && b.absoluteBox;
  5824. for (P = O + 1; P < u; ++P) {
  5825. var x = (B = w[P]) && B.absoluteBox;
  5826. !M || !x || b === B || b.newOpacity === 0 || B.newOpacity === 0 || x.x >= M.x + M.width || x.x + x.width <= M.x || x.y >= M.y + M.height || x.y + x.height <= M.y || ((b.labelrank < B.labelrank ? b : B).newOpacity = 0);
  5827. }
  5828. }
  5829. w.forEach(function(a) {
  5830. I(a, v) && (C = !0);
  5831. }), C && H(v, "afterHideAllOverlappingLabels");
  5832. };
  5833. }), E(
  5834. h,
  5835. "Core/Responsive.js",
  5836. [h["Core/Utilities.js"]],
  5837. function(y) {
  5838. var R = y.extend, I = y.find, Z = y.isArray, H = y.isObject, $ = y.merge, U = y.objectEach, W = y.pick, N = y.splat, w = y.uniqueKey, v;
  5839. return function(u) {
  5840. var d = [];
  5841. u.compose = function(O) {
  5842. return d.indexOf(O) === -1 && (d.push(O), R(O.prototype, P.prototype)), O;
  5843. };
  5844. var P = function() {
  5845. function O() {
  5846. }
  5847. return O.prototype.currentOptions = function(B) {
  5848. function C(x, a, c, p) {
  5849. var i;
  5850. U(x, function(l, s) {
  5851. if (!p && -1 < b.collectionsWithUpdate.indexOf(s) && a[s])
  5852. for (l = N(l), c[s] = [], i = 0; i < Math.max(l.length, a[s].length); i++)
  5853. 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)));
  5854. else
  5855. H(l) ? (c[s] = Z(l) ? [] : {}, C(l, a[s] || {}, c[s], p + 1)) : c[s] = typeof a[s] > "u" ? null : a[s];
  5856. });
  5857. }
  5858. var b = this, M = {};
  5859. return C(B, this.options, M, 0), M;
  5860. }, O.prototype.matchResponsiveRule = function(B, C) {
  5861. var b = B.condition;
  5862. (b.callback || function() {
  5863. 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);
  5864. }).call(this) && C.push(B._id);
  5865. }, O.prototype.setResponsive = function(B, C) {
  5866. var b = this, M = this.options.responsive, x = this.currentResponsive, a = [];
  5867. !C && M && M.rules && M.rules.forEach(function(c) {
  5868. typeof c._id > "u" && (c._id = w()), b.matchResponsiveRule(c, a);
  5869. }, this), C = $.apply(void 0, a.map(function(c) {
  5870. return I((M || {}).rules || [], function(p) {
  5871. return p._id === c;
  5872. });
  5873. }).map(function(c) {
  5874. return c && c.chartOptions;
  5875. })), C.isResponsiveOptions = !0, a = a.toString() || void 0, a !== (x && x.ruleIds) && (x && this.update(x.undoOptions, B, !0), a ? (x = this.currentOptions(C), x.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: a, mergedOptions: C, undoOptions: x }, this.update(C, B, !0)) : this.currentResponsive = void 0);
  5876. }, O;
  5877. }();
  5878. }(v || (v = {})), v;
  5879. }
  5880. ), E(h, "masters/highcharts.src.js", [
  5881. h["Core/Globals.js"],
  5882. h["Core/Utilities.js"],
  5883. h["Core/DefaultOptions.js"],
  5884. h["Core/Animation/Fx.js"],
  5885. h["Core/Animation/AnimationUtilities.js"],
  5886. h["Core/Renderer/HTML/AST.js"],
  5887. h["Core/FormatUtilities.js"],
  5888. h["Core/Renderer/RendererUtilities.js"],
  5889. h["Core/Renderer/SVG/SVGElement.js"],
  5890. h["Core/Renderer/SVG/SVGRenderer.js"],
  5891. h["Core/Renderer/HTML/HTMLElement.js"],
  5892. h["Core/Renderer/HTML/HTMLRenderer.js"],
  5893. h["Core/Axis/Axis.js"],
  5894. h["Core/Axis/DateTimeAxis.js"],
  5895. h["Core/Axis/LogarithmicAxis.js"],
  5896. h["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  5897. h["Core/Axis/Tick.js"],
  5898. h["Core/Tooltip.js"],
  5899. h["Core/Series/Point.js"],
  5900. h["Core/Pointer.js"],
  5901. h["Core/MSPointer.js"],
  5902. h["Core/Legend/Legend.js"],
  5903. h["Core/Chart/Chart.js"],
  5904. h["Core/Series/Series.js"],
  5905. h["Core/Series/SeriesRegistry.js"],
  5906. h["Series/Column/ColumnSeries.js"],
  5907. h["Series/Column/ColumnDataLabel.js"],
  5908. h["Series/Pie/PieSeries.js"],
  5909. h["Series/Pie/PieDataLabel.js"],
  5910. h["Core/Series/DataLabel.js"],
  5911. h["Core/Responsive.js"],
  5912. h["Core/Color/Color.js"],
  5913. h["Core/Time.js"]
  5914. ], function(y, R, I, Z, H, $, U, W, N, w, v, u, d, P, O, B, C, b, M, x, a, c, p, i, l, s, t, n, o, A, _, D, j) {
  5915. return y.animate = H.animate, y.animObject = H.animObject, y.getDeferredAnimation = H.getDeferredAnimation, y.setAnimation = H.setAnimation, y.stop = H.stop, y.timers = Z.timers, y.AST = $, y.Axis = d, y.Chart = p, y.chart = p.chart, y.Fx = Z, y.Legend = c, y.PlotLineOrBand = B, y.Point = M, y.Pointer = a.isRequired() ? a : x, y.Series = i, y.SVGElement = N, y.SVGRenderer = w, y.Tick = C, y.Time = j, y.Tooltip = b, y.Color = D, y.color = D.parse, u.compose(w), v.compose(N), y.defaultOptions = I.defaultOptions, y.getOptions = I.getOptions, y.time = I.defaultTime, y.setOptions = I.setOptions, y.dateFormat = U.dateFormat, y.format = U.format, y.numberFormat = U.numberFormat, y.addEvent = R.addEvent, y.arrayMax = R.arrayMax, y.arrayMin = R.arrayMin, y.attr = R.attr, y.clearTimeout = R.clearTimeout, y.correctFloat = R.correctFloat, y.createElement = R.createElement, y.css = R.css, y.defined = R.defined, y.destroyObjectProperties = R.destroyObjectProperties, y.discardElement = R.discardElement, y.distribute = W.distribute, y.erase = R.erase, y.error = R.error, y.extend = R.extend, y.extendClass = R.extendClass, y.find = R.find, y.fireEvent = R.fireEvent, y.getMagnitude = R.getMagnitude, y.getStyle = R.getStyle, y.inArray = R.inArray, y.isArray = R.isArray, y.isClass = R.isClass, y.isDOMElement = R.isDOMElement, y.isFunction = R.isFunction, y.isNumber = R.isNumber, y.isObject = R.isObject, y.isString = R.isString, y.keys = R.keys, y.merge = R.merge, y.normalizeTickInterval = R.normalizeTickInterval, y.objectEach = R.objectEach, y.offset = R.offset, y.pad = R.pad, y.pick = R.pick, y.pInt = R.pInt, y.relativeLength = R.relativeLength, y.removeEvent = R.removeEvent, y.seriesType = l.seriesType, y.splat = R.splat, y.stableSort = R.stableSort, y.syncTimeout = R.syncTimeout, y.timeUnits = R.timeUnits, y.uniqueKey = R.uniqueKey, y.useSerialIds = R.useSerialIds, y.wrap = R.wrap, t.compose(s), A.compose(i), P.compose(d), O.compose(d), o.compose(n), B.compose(d), _.compose(p), y;
  5916. }), E(h, "Core/Axis/OrdinalAxis.js", [
  5917. h["Core/Axis/Axis.js"],
  5918. h["Core/Globals.js"],
  5919. h["Core/Series/Series.js"],
  5920. h["Core/Utilities.js"]
  5921. ], function(y, R, I, Z) {
  5922. var H = Z.addEvent, $ = Z.correctFloat, U = Z.css, W = Z.defined, N = Z.error, w = Z.pick, v = Z.timeUnits, u = [], d;
  5923. return function(P) {
  5924. function O(t, n, o, A, _, D, j) {
  5925. _ === void 0 && (_ = []), D === void 0 && (D = 0);
  5926. var T = {}, X = this.options.tickPixelInterval, f = this.chart.time, m = [], L, Y, F = 0, Q = [], k = -Number.MAX_VALUE;
  5927. if (!this.options.ordinal && !this.options.breaks || !_ || 3 > _.length || typeof n > "u")
  5928. return f.getTimeTicks.apply(f, arguments);
  5929. var G = _.length;
  5930. for (L = 0; L < G; L++) {
  5931. var z = L && _[L - 1] > o;
  5932. if (_[L] < n && (F = L), L === G - 1 || _[L + 1] - _[L] > 5 * D || z) {
  5933. if (_[L] > k) {
  5934. for (Y = f.getTimeTicks(t, _[F], _[L], A); Y.length && Y[0] <= k; )
  5935. Y.shift();
  5936. Y.length && (k = Y[Y.length - 1]), m.push(Q.length), Q = Q.concat(Y);
  5937. }
  5938. F = L + 1;
  5939. }
  5940. if (z)
  5941. break;
  5942. }
  5943. if (Y) {
  5944. if (Y = Y.info, j && Y.unitRange <= v.hour) {
  5945. for (L = Q.length - 1, F = 1; F < L; F++)
  5946. if (f.dateFormat("%d", Q[F]) !== f.dateFormat("%d", Q[F - 1])) {
  5947. T[Q[F]] = "day";
  5948. var V = !0;
  5949. }
  5950. V && (T[Q[0]] = "day"), Y.higherRanks = T;
  5951. }
  5952. Y.segmentStarts = m, Q.info = Y;
  5953. } else
  5954. N(12, !1, this.chart);
  5955. if (j && W(X)) {
  5956. for (Y = Q.length, f = [], F = [], L = void 0, V = Y; V--; )
  5957. m = this.translate(Q[V]), L && (F[V] = L - m), f[V] = L = m;
  5958. for (F.sort(), F = F[Math.floor(F.length / 2)], F < 0.6 * X && (F = null), V = Q[Y - 1] > o ? Y - 1 : Y, L = void 0; V--; )
  5959. m = f[V], Y = Math.abs(L - m), L && Y < 0.8 * X && (F === null || Y < 0.8 * F) ? (T[Q[V]] && !T[Q[V + 1]] ? (Y = V + 1, L = m) : Y = V, Q.splice(Y, 1)) : L = m;
  5960. }
  5961. return Q;
  5962. }
  5963. function B(t) {
  5964. var n = this.ordinal.positions;
  5965. if (!n)
  5966. return t;
  5967. var o = n.length - 1;
  5968. if (0 > t)
  5969. t = n[0];
  5970. else if (t > o)
  5971. t = n[o];
  5972. else {
  5973. o = Math.floor(t);
  5974. var A = t - o;
  5975. }
  5976. return typeof A < "u" && typeof n[o] < "u" ? n[o] + (A ? A * (n[o + 1] - n[o]) : 0) : t;
  5977. }
  5978. function C(t) {
  5979. var n = this.ordinal, o = n.positions;
  5980. if (!o)
  5981. return t;
  5982. var A = (t - (this.old ? this.old.min : this.min)) * (this.old ? this.old.transA : this.transA) + this.minPixelPadding;
  5983. if (0 < A && A < this.left + this.len || (n.extendedOrdinalPositions || (n.extendedOrdinalPositions = n.getExtendedPositions()), o = n.extendedOrdinalPositions), o && o.length) {
  5984. if (t = n.getIndexOfPoint(A, o), n = $(t % 1), 0 <= t && t < o.length - 1)
  5985. return o[Math.floor(t)] + n * (o[Math.ceil(t)] - o[Math.floor(t)]);
  5986. n = o.length, A = o[0], o = o[n - 1];
  5987. var _ = (o - A) / (n - 1);
  5988. return 0 > t ? A + _ * t : o + _ * (t - n);
  5989. }
  5990. return t;
  5991. }
  5992. function b(t, n) {
  5993. var o = P.Additions.findIndexOf(t, n, !0);
  5994. return t[o] === n ? o : o + (n - t[o]) / (t[o + 1] - t[o]);
  5995. }
  5996. function M() {
  5997. this.ordinal || (this.ordinal = new P.Additions(this));
  5998. }
  5999. function x() {
  6000. 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));
  6001. }
  6002. function a() {
  6003. this.horiz && !this.isDirty && (this.isDirty = this.isOrdinal && this.chart.navigator && !this.chart.navigator.adaptToUpdatedData);
  6004. }
  6005. function c() {
  6006. this.ordinal && (this.ordinal.beforeSetTickPositions(), this.tickInterval = this.ordinal.postProcessTickInterval(this.tickInterval));
  6007. }
  6008. function p(t) {
  6009. var n = this.xAxis[0], o = n.options.overscroll, A = t.originalEvent.chartX, _ = this.options.chart.panning, D = !1;
  6010. if (_ && _.type !== "y" && n.options.ordinal && n.series.length) {
  6011. var j = this.mouseDownX, T = n.getExtremes(), X = T.dataMax, f = T.min, m = T.max, L = this.hoverPoints, Y = n.closestPointRange || n.ordinal && n.ordinal.overscrollPointsRange;
  6012. j = (j - A) / (n.translationSlope * (n.ordinal.slope || Y)), Y = { ordinal: { positions: n.ordinal.getExtendedPositions() } };
  6013. var F = n.index2val, Q = n.val2lin, k = void 0, G = k = void 0, z = void 0;
  6014. Y.ordinal.positions ? 1 < Math.abs(j) && (L && L.forEach(function(V) {
  6015. V.setState();
  6016. }), 0 > j ? (G = Y, z = n.ordinal.positions ? n : Y) : (G = n.ordinal.positions ? n : Y, z = Y), k = z.ordinal.positions, X > k[k.length - 1] && k.push(X), this.fixedRange = m - f, k = n.navigatorAxis.toFixedRange(void 0, void 0, F.apply(G, [Q.apply(G, [f, !0]) + j]), F.apply(z, [Q.apply(z, [m, !0]) + j])), k.min >= Math.min(
  6017. T.dataMin,
  6018. f
  6019. ) && k.max <= Math.max(X, m) + o && n.setExtremes(k.min, k.max, !0, !1, { trigger: "pan" }), this.mouseDownX = A, U(this.container, { cursor: "move" })) : D = !0;
  6020. } else
  6021. D = !0;
  6022. D || _ && /y/.test(_.type) ? o && (n.max = n.dataMax + o) : t.preventDefault();
  6023. }
  6024. function i() {
  6025. var t = this.xAxis;
  6026. t && t.options.ordinal && (delete t.ordinal.index, delete t.ordinal.extendedOrdinalPositions);
  6027. }
  6028. function l(t, n) {
  6029. var o = this.ordinal, A = o.positions, _ = o.slope, D = o.extendedOrdinalPositions;
  6030. if (!A)
  6031. return t;
  6032. var j = A.length;
  6033. if (A[0] <= t && A[j - 1] >= t)
  6034. t = b(A, t);
  6035. else {
  6036. if (D || (D = o.getExtendedPositions && o.getExtendedPositions(), o.extendedOrdinalPositions = D), !D || !D.length)
  6037. return t;
  6038. j = D.length, _ || (_ = (D[j - 1] - D[0]) / j), A = b(D, A[0]), t >= D[0] && t <= D[j - 1] ? t = b(D, t) - A : t < D[0] ? (t = D[0] - t, t = -A - t / _) : (t -= D[j - 1], t = t / _ + j - A);
  6039. }
  6040. return n ? t : _ * (t || 0) + o.offset;
  6041. }
  6042. P.compose = function(t, n, o) {
  6043. if (u.indexOf(t) === -1) {
  6044. u.push(t);
  6045. var A = t.prototype;
  6046. A.getTimeTicks = O, A.index2val = B, A.lin2val = C, A.val2lin = l, A.ordinal2lin = A.val2lin, H(t, "afterInit", M), H(t, "foundExtremes", x), H(t, "afterSetScale", a), H(t, "initialAxisTranslation", c);
  6047. }
  6048. return u.indexOf(o) === -1 && (u.push(o), H(o, "pan", p)), u.indexOf(n) === -1 && (u.push(n), H(n, "updatedData", i)), t;
  6049. };
  6050. var s = function() {
  6051. function t(n) {
  6052. this.index = {}, this.axis = n;
  6053. }
  6054. return t.prototype.beforeSetTickPositions = function() {
  6055. var n = this.axis, o = n.ordinal, A = n.getExtremes(), _ = A.min, D = A.max, j = n.isXAxis && !!n.options.breaks;
  6056. A = n.options.ordinal;
  6057. var T = n.chart.options.chart.ignoreHiddenSeries, X, f, m = [], L = Number.MAX_VALUE, Y = !1;
  6058. if (A || j) {
  6059. n.series.forEach(function(k, G) {
  6060. if (X = [], !(T && k.visible === !1 || k.takeOrdinalPosition === !1 && !j) && (m = m.concat(k.processedXData), F = m.length, m.sort(function(z, V) {
  6061. return z - V;
  6062. }), L = Math.min(L, w(k.closestPointRange, L)), F)) {
  6063. for (G = 0; G < F - 1; )
  6064. m[G] !== m[G + 1] && X.push(m[G + 1]), G++;
  6065. X[0] !== m[0] && X.unshift(m[0]), m = X;
  6066. }
  6067. });
  6068. var F = m.length;
  6069. if (2 < F) {
  6070. var Q = m[1] - m[0];
  6071. for (f = F - 1; f-- && !Y; )
  6072. m[f + 1] - m[f] !== Q && (Y = !0);
  6073. !n.options.keepOrdinalPadding && (m[0] - _ > Q || D - m[m.length - 1] > Q) && (Y = !0);
  6074. } else
  6075. n.options.overscroll && (F === 2 ? L = m[1] - m[0] : F === 1 ? (L = n.options.overscroll, m = [m[0], m[0] + L]) : L = o.overscrollPointsRange);
  6076. Y || n.forceOrdinal ? (n.options.overscroll && (o.overscrollPointsRange = L, m = m.concat(o.getOverscrollPositions())), o.positions = m, Q = n.ordinal2lin(Math.max(_, m[0]), !0), f = Math.max(n.ordinal2lin(Math.min(D, m[m.length - 1]), !0), 1), o.slope = D = (D - _) / (f - Q), o.offset = _ - Q * D) : (o.overscrollPointsRange = w(n.closestPointRange, o.overscrollPointsRange), o.positions = n.ordinal.slope = o.offset = void 0);
  6077. }
  6078. n.isOrdinal = A && Y, o.groupIntervalFactor = null;
  6079. }, t.findIndexOf = function(n, o, A) {
  6080. for (var _ = 0, D = n.length - 1, j; _ < D; )
  6081. j = Math.ceil((_ + D) / 2), n[j] <= o ? _ = j : D = j - 1;
  6082. return n[_] === o || A ? _ : -1;
  6083. }, t.prototype.getExtendedPositions = function() {
  6084. var n = this, o = n.axis, A = o.constructor.prototype, _ = o.chart, D = o.series[0].currentDataGrouping, j = D ? D.count + D.unitName : "raw", T = o.options.overscroll, X = o.getExtremes(), f = void 0, m = n.index;
  6085. if (m || (m = n.index = {}), !m[j]) {
  6086. var L = {
  6087. series: [],
  6088. chart: _,
  6089. forceOrdinal: !1,
  6090. getExtremes: function() {
  6091. return { min: X.dataMin, max: X.dataMax + T };
  6092. },
  6093. getGroupPixelWidth: A.getGroupPixelWidth,
  6094. getTimeTicks: A.getTimeTicks,
  6095. options: { ordinal: !0 },
  6096. ordinal: { getGroupIntervalFactor: this.getGroupIntervalFactor },
  6097. ordinal2lin: A.ordinal2lin,
  6098. getIndexOfPoint: A.getIndexOfPoint,
  6099. val2lin: A.val2lin
  6100. };
  6101. L.ordinal.axis = L, o.series.forEach(function(Y) {
  6102. f = { xAxis: L, xData: Y.xData.slice(), chart: _, destroyGroupedData: R.noop, getProcessedData: I.prototype.getProcessedData, applyGrouping: I.prototype.applyGrouping }, f.xData = f.xData.concat(n.getOverscrollPositions()), f.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(f), Y.processData.apply(f);
  6103. }), f.closestPointRange !== f.basePointRange && f.currentDataGrouping && (L.forceOrdinal = !0), o.ordinal.beforeSetTickPositions.apply({ axis: L }), m[j] = L.ordinal.positions;
  6104. }
  6105. return m[j];
  6106. }, t.prototype.getGroupIntervalFactor = function(n, o, A) {
  6107. A = A.processedXData;
  6108. var _ = A.length, D = [], j = this.groupIntervalFactor;
  6109. if (!j) {
  6110. for (j = 0; j < _ - 1; j++)
  6111. D[j] = A[j + 1] - A[j];
  6112. D.sort(function(T, X) {
  6113. return T - X;
  6114. }), D = D[Math.floor(_ / 2)], n = Math.max(n, A[0]), o = Math.min(o, A[_ - 1]), this.groupIntervalFactor = j = _ * D / (o - n);
  6115. }
  6116. return j;
  6117. }, t.prototype.getIndexOfPoint = function(n, o) {
  6118. 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;
  6119. return 1 < A.series.length && A.series.forEach(function(j) {
  6120. j.points && W(j.points[0]) && W(j.points[0].plotX) && j.points[0].plotX < D && (D = j.points[0].plotX);
  6121. }), n = (n - D) / (A.translationSlope * (this.slope || A.closestPointRange || this.overscrollPointsRange)), t.findIndexOf(o, _) + n;
  6122. }, t.prototype.getOverscrollPositions = function() {
  6123. var n = this.axis, o = n.options.overscroll, A = this.overscrollPointsRange, _ = [], D = n.dataMax;
  6124. if (W(A))
  6125. for (; D <= n.dataMax + o; )
  6126. D += A, _.push(D);
  6127. return _;
  6128. }, t.prototype.postProcessTickInterval = function(n) {
  6129. var o = this.axis, A = this.slope;
  6130. return A ? o.options.breaks ? o.closestPointRange || n : n / (A / o.closestPointRange) : n;
  6131. }, t;
  6132. }();
  6133. P.Additions = s;
  6134. }(d || (d = {})), d;
  6135. }), 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, R, I, Z) {
  6136. var H = R.prototype.tooltipFormatter, $ = Z.addEvent, U = Z.arrayMax, W = Z.arrayMin, N = Z.correctFloat, w = Z.defined, v = Z.isArray, u = Z.isNumber, d = Z.isString, P = Z.pick, O;
  6137. return function(B) {
  6138. function C(n, o, A) {
  6139. this.isXAxis || (this.series.forEach(function(_) {
  6140. n === "compare" && typeof o != "boolean" ? _.setCompare(o, !1) : n !== "cumulative" || d(o) || _.setCumulative(o, !1);
  6141. }), P(A, !0) && this.chart.redraw());
  6142. }
  6143. function b(n) {
  6144. var o = this, A = o.series.chart.numberFormatter, _ = function(D) {
  6145. n = n.replace("{point." + D + "}", (0 < o[D] && D === "change" ? "+" : "") + A(o[D], P(o.series.tooltipOptions.changeDecimals, 2)));
  6146. };
  6147. return w(o.change) && _("change"), w(o.cumulativeSum) && _("cumulativeSum"), H.apply(this, [n]);
  6148. }
  6149. function M() {
  6150. var n = this.options.compare;
  6151. if (n === "percent" || n === "value" || this.options.cumulative) {
  6152. var o = new t(this);
  6153. n === "percent" || n === "value" ? o.initCompare(n) : o.initCumulative();
  6154. }
  6155. this.dataModify = o;
  6156. }
  6157. function x(n) {
  6158. n = n.dataExtremes;
  6159. var o = n.activeYData;
  6160. if (this.dataModify && n) {
  6161. var A = void 0;
  6162. this.options.compare ? A = [this.dataModify.modifyValue(n.dataMin), this.dataModify.modifyValue(n.dataMax)] : this.options.cumulative && v(o) && 2 <= o.length && (A = t.getCumulativeExtremes(o)), A && (n.dataMin = W(A), n.dataMax = U(A));
  6163. }
  6164. }
  6165. function a(n, o) {
  6166. this.options.compare = this.userOptions.compare = n, this.update({}, P(o, !0)), !this.dataModify || n !== "value" && n !== "percent" ? this.points.forEach(function(A) {
  6167. delete A.change;
  6168. }) : this.dataModify.initCompare(n);
  6169. }
  6170. function c() {
  6171. if (this.xAxis && this.processedYData && this.dataModify) {
  6172. var n = this.processedXData, o = this.processedYData, A = o.length, _ = this.options.compareStart === !0 ? 0 : 1, D = -1, j;
  6173. for (this.pointArrayMap && (D = this.pointArrayMap.indexOf(this.options.pointValKey || this.pointValKey || "y")), j = 0; j < A - _; j++) {
  6174. var T = o[j] && -1 < D ? o[j][D] : o[j];
  6175. if (u(T) && T !== 0 && n[j + _] >= (this.xAxis.min || 0)) {
  6176. this.dataModify.compareValue = T;
  6177. break;
  6178. }
  6179. }
  6180. }
  6181. }
  6182. function p(n, o) {
  6183. this.setModifier("compare", n, o);
  6184. }
  6185. function i(n, o) {
  6186. n = P(n, !1), this.options.cumulative = this.userOptions.cumulative = n, this.update({}, P(o, !0)), this.dataModify ? this.dataModify.initCumulative() : this.points.forEach(function(A) {
  6187. delete A.cumulativeSum;
  6188. });
  6189. }
  6190. function l(n, o) {
  6191. this.setModifier("cumulative", n, o);
  6192. }
  6193. var s = [];
  6194. B.compose = function(n, o, A) {
  6195. if (s.indexOf(n) === -1) {
  6196. s.push(n);
  6197. var _ = n.prototype;
  6198. _.setCompare = a, _.setCumulative = i, $(n, "afterInit", M), $(n, "afterGetExtremes", x), $(n, "afterProcessData", c);
  6199. }
  6200. return s.indexOf(o) === -1 && (s.push(o), o = o.prototype, o.setCompare = p, o.setModifier = C, o.setCumulative = l), s.indexOf(A) === -1 && (s.push(A), A.prototype.tooltipFormatter = b), n;
  6201. };
  6202. var t = function() {
  6203. function n(o) {
  6204. this.series = o;
  6205. }
  6206. return n.prototype.modifyValue = function() {
  6207. return 0;
  6208. }, n.getCumulativeExtremes = function(o) {
  6209. var A = 1 / 0, _ = -1 / 0;
  6210. return o.reduce(function(D, j) {
  6211. return j = D + j, A = Math.min(A, j, D), _ = Math.max(
  6212. _,
  6213. j,
  6214. D
  6215. ), j;
  6216. }), [A, _];
  6217. }, n.prototype.initCompare = function(o) {
  6218. this.modifyValue = function(A, _) {
  6219. A === null && (A = 0);
  6220. var D = this.compareValue;
  6221. return typeof A < "u" && typeof D < "u" ? (A = o === "value" ? A - D : A / D * 100 - (this.series.options.compareBase === 100 ? 0 : 100), typeof _ < "u" && (_ = this.series.points[_]) && (_.change = A), A) : 0;
  6222. };
  6223. }, n.prototype.initCumulative = function() {
  6224. this.modifyValue = function(o, A) {
  6225. if (o === null && (o = 0), o !== void 0 && A !== void 0) {
  6226. var _ = 0 < A ? this.series.points[A - 1] : null;
  6227. return _ && _.cumulativeSum && (o = N(_.cumulativeSum + o)), (A = this.series.points[A]) && (A.cumulativeSum = o), o;
  6228. }
  6229. return 0;
  6230. };
  6231. }, n;
  6232. }();
  6233. B.Additions = t;
  6234. }(O || (O = {})), O;
  6235. }), E(h, "Core/Axis/BrokenAxis.js", [h["Extensions/Stacking.js"], h["Core/Utilities.js"]], function(y, R) {
  6236. var I = R.addEvent, Z = R.find, H = R.fireEvent, $ = R.isArray, U = R.isNumber, W = R.pick, N;
  6237. return function(w) {
  6238. function v() {
  6239. typeof this.brokenAxis < "u" && this.brokenAxis.setBreaks(this.options.breaks, !1);
  6240. }
  6241. function u() {
  6242. this.brokenAxis && this.brokenAxis.hasBreaks && (this.options.ordinal = !1);
  6243. }
  6244. function d() {
  6245. var a = this.brokenAxis;
  6246. if (a && a.hasBreaks) {
  6247. for (var c = this.tickPositions, p = this.tickPositions.info, i = [], l = 0; l < c.length; l++)
  6248. a.isInAnyBreak(c[l]) || i.push(c[l]);
  6249. this.tickPositions = i, this.tickPositions.info = p;
  6250. }
  6251. }
  6252. function P() {
  6253. this.brokenAxis || (this.brokenAxis = new x(this));
  6254. }
  6255. function O() {
  6256. var a = this.options.connectNulls, c = this.points, p = this.xAxis, i = this.yAxis;
  6257. if (this.isDirty)
  6258. for (var l = c.length; l--; ) {
  6259. 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));
  6260. s.visible = t ? !1 : s.options.visible !== !1;
  6261. }
  6262. }
  6263. function B() {
  6264. this.drawBreaks(this.xAxis, ["x"]), this.drawBreaks(this.yAxis, W(this.pointArrayMap, ["y"]));
  6265. }
  6266. function C(a, c) {
  6267. var p = this, i = p.points, l, s, t, n;
  6268. if (a && a.brokenAxis && a.brokenAxis.hasBreaks) {
  6269. var o = a.brokenAxis;
  6270. c.forEach(function(A) {
  6271. l = o && o.breakArray || [], s = a.isXAxis ? a.min : W(p.options.threshold, a.min), i.forEach(function(_) {
  6272. n = W(_["stack" + A.toUpperCase()], _[A]), l.forEach(function(D) {
  6273. U(s) && U(n) && (t = !1, s < D.from && n > D.to || s > D.from && n < D.from ? t = "pointBreak" : (s < D.from && n > D.from && n < D.to || s > D.from && n > D.to && n < D.from) && (t = "pointInBreak"), t && H(a, t, { point: _, brk: D }));
  6274. });
  6275. });
  6276. });
  6277. }
  6278. }
  6279. function b() {
  6280. var a = this.currentDataGrouping, c = a && a.gapSize;
  6281. a = this.points.slice();
  6282. var p = this.yAxis, i = this.options.gapSize, l = a.length - 1, s;
  6283. if (i && 0 < l)
  6284. for (this.options.gapUnit !== "value" && (i *= this.basePointRange), c && c > i && c >= this.basePointRange && (i = c), s = void 0; l--; )
  6285. 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);
  6286. return this.getGraphPath(a);
  6287. }
  6288. var M = [];
  6289. w.compose = function(a, c) {
  6290. if (M.indexOf(a) === -1 && (M.push(a), a.keepProps.push("brokenAxis"), I(a, "init", P), I(a, "afterInit", v), I(a, "afterSetTickPositions", d), I(a, "afterSetOptions", u)), M.indexOf(c) === -1) {
  6291. M.push(c);
  6292. var p = c.prototype;
  6293. p.drawBreaks = C, p.gappedPath = b, I(c, "afterGeneratePoints", O), I(
  6294. c,
  6295. "afterRender",
  6296. B
  6297. );
  6298. }
  6299. return a;
  6300. };
  6301. var x = function() {
  6302. function a(c) {
  6303. this.hasBreaks = !1, this.axis = c;
  6304. }
  6305. return a.isInBreak = function(c, p) {
  6306. var i = c.repeat || 1 / 0, l = c.from, s = c.to - c.from;
  6307. return p = p >= l ? (p - l) % i : i - (l - p) % i, c.inclusive ? p <= s : p < s && p !== 0;
  6308. }, a.lin2Val = function(c) {
  6309. var p = this.brokenAxis;
  6310. if (p = p && p.breakArray, !p || !U(c))
  6311. return c;
  6312. var i;
  6313. for (i = 0; i < p.length; i++) {
  6314. var l = p[i];
  6315. if (l.from >= c)
  6316. break;
  6317. (l.to < c || a.isInBreak(l, c)) && (c += l.len);
  6318. }
  6319. return c;
  6320. }, a.val2Lin = function(c) {
  6321. var p = this.brokenAxis;
  6322. if (p = p && p.breakArray, !p || !U(c))
  6323. return c;
  6324. var i = c, l;
  6325. for (l = 0; l < p.length; l++) {
  6326. var s = p[l];
  6327. if (s.to <= c)
  6328. i -= s.len;
  6329. else {
  6330. if (s.from >= c)
  6331. break;
  6332. if (a.isInBreak(s, c)) {
  6333. i -= c - s.from;
  6334. break;
  6335. }
  6336. }
  6337. }
  6338. return i;
  6339. }, a.prototype.findBreakAt = function(c, p) {
  6340. return Z(p, function(i) {
  6341. return i.from < c && c < i.to;
  6342. });
  6343. }, a.prototype.isInAnyBreak = function(c, p) {
  6344. var i = this.axis, l = i.options.breaks || [], s = l.length, t;
  6345. if (s && U(c)) {
  6346. for (; s--; )
  6347. if (a.isInBreak(l[s], c)) {
  6348. var n = !0;
  6349. t || (t = W(l[s].showPoints, !i.isXAxis));
  6350. }
  6351. var o = n && p ? n && !t : n;
  6352. }
  6353. return o;
  6354. }, a.prototype.setBreaks = function(c, p) {
  6355. var i = this, l = i.axis, s = $(c) && !!c.length;
  6356. l.isDirty = i.hasBreaks !== s, i.hasBreaks = s, l.options.breaks = l.userOptions.breaks = c, l.forceRedraw = !0, l.series.forEach(function(t) {
  6357. t.isDirty = !0;
  6358. }), 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, n, o, A, _) {
  6359. if (i.hasBreaks) {
  6360. for (var D = this.options.breaks || [], j; j = i.findBreakAt(t, D); )
  6361. t = j.to;
  6362. for (; j = i.findBreakAt(n, D); )
  6363. n = j.from;
  6364. n < t && (n = t);
  6365. }
  6366. l.constructor.prototype.setExtremes.call(this, t, n, o, A, _);
  6367. }, l.setAxisTranslation = function() {
  6368. if (l.constructor.prototype.setAxisTranslation.call(this), i.unitLength = void 0, i.hasBreaks) {
  6369. var t = l.options.breaks || [], n = [], o = [], A = W(l.pointRangePadding, 0), _ = 0, D, j = l.userMin || l.min, T = l.userMax || l.max, X;
  6370. t.forEach(function(L) {
  6371. D = L.repeat || 1 / 0, U(j) && U(T) && (a.isInBreak(L, j) && (j += L.to % D - j % D), a.isInBreak(L, T) && (T -= T % D - L.from % D));
  6372. }), t.forEach(function(L) {
  6373. if (m = L.from, D = L.repeat || 1 / 0, U(j) && U(T)) {
  6374. for (; m - D > j; )
  6375. m -= D;
  6376. for (; m < j; )
  6377. m += D;
  6378. for (X = m; X < T; X += D)
  6379. n.push({ value: X, move: "in" }), n.push({ value: X + L.to - L.from, move: "out", size: L.breakSize });
  6380. }
  6381. }), n.sort(function(L, Y) {
  6382. return L.value === Y.value ? (L.move === "in" ? 0 : 1) - (Y.move === "in" ? 0 : 1) : L.value - Y.value;
  6383. });
  6384. var f = 0, m = j;
  6385. n.forEach(function(L) {
  6386. f += L.move === "in" ? 1 : -1, f === 1 && L.move === "in" && (m = L.value), f === 0 && U(m) && (o.push({ from: m, to: L.value, len: L.value - m - (L.size || 0) }), _ += L.value - m - (L.size || 0));
  6387. }), i.breakArray = o, U(j) && U(T) && U(l.min) && (i.unitLength = T - j - _ + A, H(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 = j, l.max = T);
  6388. }
  6389. }), W(p, !0) && l.chart.redraw();
  6390. }, a;
  6391. }();
  6392. w.Additions = x;
  6393. }(N || (N = {})), N;
  6394. }), E(h, "masters/modules/broken-axis.src.js", [h["Core/Globals.js"], h["Core/Axis/BrokenAxis.js"]], function(y, R) {
  6395. R.compose(y.Axis, y.Series);
  6396. }), E(h, "Extensions/DataGrouping.js", [
  6397. h["Core/Axis/Axis.js"],
  6398. h["Core/Axis/DateTimeAxis.js"],
  6399. h["Core/FormatUtilities.js"],
  6400. h["Core/Globals.js"],
  6401. h["Core/Series/Point.js"],
  6402. h["Core/Series/Series.js"],
  6403. h["Core/Tooltip.js"],
  6404. h["Core/DefaultOptions.js"],
  6405. h["Core/Utilities.js"]
  6406. ], function(y, R, I, Z, H, $, U, W, N) {
  6407. var w = I.format, v = $.prototype;
  6408. I = N.addEvent;
  6409. var u = N.arrayMax, d = N.arrayMin, P = N.correctFloat, O = N.defined, B = N.error, C = N.extend, b = N.isNumber, M = N.merge, x = N.pick, a = Z.approximations = {
  6410. sum: function(t) {
  6411. var n = t.length;
  6412. if (!n && t.hasNulls)
  6413. var o = null;
  6414. else if (n)
  6415. for (o = 0; n--; )
  6416. o += t[n];
  6417. return o;
  6418. },
  6419. average: function(t) {
  6420. var n = t.length;
  6421. return t = a.sum(t), b(t) && n && (t = P(t / n)), t;
  6422. },
  6423. averages: function() {
  6424. var t = [];
  6425. return [].forEach.call(arguments, function(n) {
  6426. t.push(a.average(n));
  6427. }), typeof t[0] > "u" ? void 0 : t;
  6428. },
  6429. open: function(t) {
  6430. return t.length ? t[0] : t.hasNulls ? null : void 0;
  6431. },
  6432. high: function(t) {
  6433. return t.length ? u(t) : t.hasNulls ? null : void 0;
  6434. },
  6435. low: function(t) {
  6436. return t.length ? d(t) : t.hasNulls ? null : void 0;
  6437. },
  6438. close: function(t) {
  6439. return t.length ? t[t.length - 1] : t.hasNulls ? null : void 0;
  6440. },
  6441. hlc: function(t, n, o) {
  6442. if (t = a.high(t), n = a.low(n), o = a.close(o), b(t) || b(n) || b(o))
  6443. return [t, n, o];
  6444. },
  6445. ohlc: function(t, n, o, A) {
  6446. if (t = a.open(t), n = a.high(n), o = a.low(o), A = a.close(A), b(t) || b(n) || b(o) || b(A))
  6447. return [t, n, o, A];
  6448. },
  6449. range: function(t, n) {
  6450. if (t = a.low(t), n = a.high(n), b(t) || b(n))
  6451. return [t, n];
  6452. if (t === null && n === null)
  6453. return null;
  6454. }
  6455. };
  6456. N = function(t, n, o, A) {
  6457. var _ = this, D = _.data, j = _.options && _.options.data, T = [], X = [], f = [], m = t.length, L = !!n, Y = [], F = _.pointArrayMap, Q = F && F.length, k = ["x"].concat(F || ["y"]), G = this.options.dataGrouping && this.options.dataGrouping.groupAll, z = 0, V = 0, q;
  6458. A = typeof A == "function" ? A : a[A] ? a[A] : a[_.getDGApproximation && _.getDGApproximation() || "average"], Q ? F.forEach(function() {
  6459. Y.push([]);
  6460. }) : Y.push([]);
  6461. var it = Q || 1;
  6462. for (q = 0; q <= m && !(t[q] >= o[0]); q++)
  6463. ;
  6464. for (q; q <= m; q++) {
  6465. for (; typeof o[z + 1] < "u" && t[q] >= o[z + 1] || q === m; ) {
  6466. var et = o[z];
  6467. _.dataGroupInfo = { start: G ? V : _.cropStart + V, length: Y[0].length };
  6468. var nt = A.apply(_, Y);
  6469. for (_.pointClass && !O(_.dataGroupInfo.options) && (_.dataGroupInfo.options = M(_.pointClass.prototype.optionsToObject.call({ series: _ }, _.options.data[_.cropStart + V])), k.forEach(function(ct) {
  6470. delete _.dataGroupInfo.options[ct];
  6471. })), typeof nt < "u" && (T.push(et), X.push(nt), f.push(_.dataGroupInfo)), V = q, et = 0; et < it; et++)
  6472. Y[et].length = 0, Y[et].hasNulls = !1;
  6473. if (z += 1, q === m)
  6474. break;
  6475. }
  6476. if (q === m)
  6477. break;
  6478. if (F) {
  6479. et = _.options.dataGrouping && _.options.dataGrouping.groupAll ? q : _.cropStart + q, nt = D && D[et] || _.pointClass.prototype.applyOptions.apply({ series: _ }, [j[et]]);
  6480. var rt = void 0;
  6481. for (et = 0; et < Q; et++)
  6482. rt = nt[F[et]], b(rt) ? Y[et].push(rt) : rt === null && (Y[et].hasNulls = !0);
  6483. } else
  6484. et = L ? n[q] : null, b(et) ? Y[0].push(et) : et === null && (Y[0].hasNulls = !0);
  6485. }
  6486. return { groupedXData: T, groupedYData: X, groupMap: f };
  6487. };
  6488. var c = { approximations: a, groupData: N }, p = v.generatePoints, i = { groupPixelWidth: 2, dateTimeLabelFormats: { millisecond: [
  6489. "%A, %b %e, %H:%M:%S.%L",
  6490. "%A, %b %e, %H:%M:%S.%L",
  6491. "-%H:%M:%S.%L"
  6492. ], 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 = {
  6493. line: {},
  6494. spline: {},
  6495. area: {},
  6496. areaspline: {},
  6497. arearange: {},
  6498. column: { groupPixelWidth: 10 },
  6499. columnrange: { groupPixelWidth: 10 },
  6500. candlestick: { groupPixelWidth: 10 },
  6501. ohlc: { groupPixelWidth: 5 },
  6502. hlc: { groupPixelWidth: 5 },
  6503. heikinashi: { groupPixelWidth: 10 }
  6504. }, 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]];
  6505. return v.getDGApproximation = function() {
  6506. return this.is("arearange") ? "range" : this.is("ohlc") ? "ohlc" : this.is("hlc") ? "hlc" : this.is("column") ? "sum" : "average";
  6507. }, v.groupData = N, v.applyGrouping = function(t) {
  6508. var n = this.chart, o = this.options.dataGrouping, A = this.allowDG !== !1 && o && x(o.enabled, n.options.isStock), _ = this.visible || !n.options.chart.ignoreHiddenSeries, D, j = this.currentDataGrouping, T = !1;
  6509. 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) {
  6510. this.destroyGroupedData(), A = o.groupAll ? this.xData : this.processedXData;
  6511. var X = o.groupAll ? this.yData : this.processedYData;
  6512. t = n.plotSizeX, T = this.xAxis;
  6513. var f = T.options.ordinal, m = this.groupPixelWidth;
  6514. if (m && A && A.length) {
  6515. this.isDirty = D = !0, this.points = null;
  6516. var L = T.getExtremes(), Y = L.min;
  6517. L = L.max, f = f && T.ordinal && T.ordinal.getGroupIntervalFactor(Y, L, this) || 1, t = T.getTimeTicks(R.Additions.prototype.normalizeTimeTickInterval(m * (L - Y) / t * f, o.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, o.approximation]), A = m.groupedXData, X = m.groupedYData, f = 0, o && o.smoothed && A.length && (o.firstAnchor = "firstPoint", o.anchor = "middle", o.lastAnchor = "lastPoint", B(32, !1, n, { "dataGrouping.smoothed": "use dataGrouping.anchor" })), n = A;
  6518. var F = this.options.dataGrouping;
  6519. if (Y = this.currentDataGrouping && this.currentDataGrouping.gapSize, F && this.xData && Y && this.groupMap) {
  6520. var Q = n.length - 1, k = F.anchor, G = x(F.firstAnchor, k);
  6521. if (F = x(F.lastAnchor, k), k && k !== "start") {
  6522. var z = Y * { middle: 0.5, end: 1 }[k];
  6523. for (k = n.length - 1; k-- && 0 < k; )
  6524. n[k] += z;
  6525. }
  6526. if (G && G !== "start" && this.xData[0] >= n[0]) {
  6527. k = this.groupMap[0].start, z = this.groupMap[0].length;
  6528. var V = void 0;
  6529. b(k) && b(z) && (V = k + (z - 1)), n[0] = { middle: n[0] + 0.5 * Y, end: n[0] + Y, firstPoint: this.xData[0], lastPoint: V && this.xData[V] }[G];
  6530. }
  6531. F && F !== "start" && Y && n[Q] >= L - Y && (L = this.groupMap[this.groupMap.length - 1].start, n[Q] = { middle: n[Q] + 0.5 * Y, end: n[Q] + Y, firstPoint: L && this.xData[L], lastPoint: this.xData[this.xData.length - 1] }[F]);
  6532. }
  6533. for (L = 1; L < t.length; L++)
  6534. t.info.segmentStarts && t.info.segmentStarts.indexOf(L) !== -1 || (f = Math.max(t[L] - t[L - 1], f));
  6535. L = t.info, L.gapSize = f, 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))), o.groupAll && (this.allGroupedData = X, o = this.cropData(A, X, T.min, T.max, 1), A = o.xData, X = o.yData, this.cropStart = o.start), this.processedXData = A, this.processedYData = X;
  6536. } else
  6537. this.groupMap = null;
  6538. this.hasGroupedData = D, this.currentDataGrouping = L, this.preventGraphAnimation = (j && j.totalRange) !== (L && L.totalRange);
  6539. }
  6540. }, v.destroyGroupedData = function() {
  6541. this.groupedData && (this.groupedData.forEach(function(t, n) {
  6542. t && (this.groupedData[n] = t.destroy ? t.destroy() : null);
  6543. }, this), this.groupedData.length = 0);
  6544. }, v.generatePoints = function() {
  6545. p.apply(this), this.destroyGroupedData(), this.groupedData = this.hasGroupedData ? this.points : null;
  6546. }, y.prototype.applyGrouping = function(t) {
  6547. var n = this;
  6548. n.series.forEach(function(o) {
  6549. o.groupPixelWidth = void 0, o.groupPixelWidth = n.getGroupPixelWidth && n.getGroupPixelWidth(), o.groupPixelWidth && (o.hasProcessed = !0), o.applyGrouping(!!t.hasExtemesChanged);
  6550. });
  6551. }, y.prototype.getGroupPixelWidth = function() {
  6552. var t = this.series, n = t.length, o, A = 0, _ = !1, D;
  6553. for (o = n; o--; )
  6554. (D = t[o].options.dataGrouping) && (A = Math.max(A, x(D.groupPixelWidth, i.groupPixelWidth)));
  6555. for (o = n; o--; )
  6556. (D = t[o].options.dataGrouping) && (n = (t[o].processedXData || t[o].data).length, (t[o].groupPixelWidth || n > this.chart.plotSizeX / A || n && D.forced) && (_ = !0));
  6557. return _ ? A : 0;
  6558. }, y.prototype.setDataGrouping = function(t, n) {
  6559. var o;
  6560. if (n = x(n, !0), t || (t = { forced: !1, units: null }), this instanceof y)
  6561. for (o = this.series.length; o--; )
  6562. this.series[o].update({ dataGrouping: t }, !1);
  6563. else
  6564. this.chart.options.series.forEach(function(A) {
  6565. A.dataGrouping = t;
  6566. }, !1);
  6567. this.ordinal && (this.ordinal.slope = void 0), n && this.chart.redraw();
  6568. }, I(y, "postProcessData", y.prototype.applyGrouping), I(H, "update", function() {
  6569. if (this.dataGroup)
  6570. return B(
  6571. 24,
  6572. !1,
  6573. this.series.chart
  6574. ), !1;
  6575. }), I(U, "headerFormatter", function(t) {
  6576. var n = this.chart, o = n.time, A = t.labelConfig, _ = A.series, D = _.tooltipOptions, j = _.options.dataGrouping, T = D.xDateFormat, X = _.xAxis, f = D[t.isFooter ? "footerFormat" : "headerFormat"];
  6577. if (X && X.options.type === "datetime" && j && b(A.key)) {
  6578. var m = _.currentDataGrouping;
  6579. if (j = j.dateTimeLabelFormats || i.dateTimeLabelFormats, m)
  6580. if (D = j[m.unitName], m.count === 1)
  6581. T = D[0];
  6582. else {
  6583. T = D[1];
  6584. var L = D[2];
  6585. }
  6586. else
  6587. !T && j && X.dateTime && (T = X.dateTime.getXDateFormat(A.x, D.dateTimeLabelFormats));
  6588. T = o.dateFormat(T, A.key), L && (T += o.dateFormat(L, A.key + m.totalRange - 1)), _.chart.styledMode && (f = this.styledModeFormat(f)), t.text = w(f, { point: C(A.point, { key: T }), series: _ }, n), t.preventDefault();
  6589. }
  6590. }), I($, "destroy", v.destroyGroupedData), I($, "afterSetOptions", function(t) {
  6591. t = t.options;
  6592. var n = this.type, o = this.chart.options.plotOptions, A = W.defaultOptions.plotOptions[n].dataGrouping, _ = this.useCommonDataGrouping && i;
  6593. if (o && (l[n] || _)) {
  6594. A || (A = M(i, l[n]));
  6595. var D = this.chart.rangeSelector;
  6596. t.dataGrouping = M(
  6597. _,
  6598. A,
  6599. o.series && o.series.dataGrouping,
  6600. o[n].dataGrouping,
  6601. this.userOptions.dataGrouping,
  6602. !t.isInternal && D && b(D.selected) && D.buttonOptions[D.selected].dataGrouping
  6603. );
  6604. }
  6605. }), I(y, "afterSetScale", function() {
  6606. this.series.forEach(function(t) {
  6607. t.hasProcessed = !1;
  6608. });
  6609. }), Z.dataGrouping = c, c;
  6610. }), E(h, "Series/HLC/HLCPoint.js", [h["Core/Series/SeriesRegistry.js"]], function(y) {
  6611. var R = this && this.__extends || function() {
  6612. var I = function(Z, H) {
  6613. return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function($, U) {
  6614. $.__proto__ = U;
  6615. } || function($, U) {
  6616. for (var W in U)
  6617. U.hasOwnProperty(W) && ($[W] = U[W]);
  6618. }, I(Z, H);
  6619. };
  6620. return function(Z, H) {
  6621. function $() {
  6622. this.constructor = Z;
  6623. }
  6624. I(Z, H), Z.prototype = H === null ? Object.create(H) : ($.prototype = H.prototype, new $());
  6625. };
  6626. }();
  6627. return function(I) {
  6628. function Z() {
  6629. var H = I !== null && I.apply(this, arguments) || this;
  6630. return H.close = void 0, H.high = void 0, H.low = void 0, H.options = void 0, H.plotClose = void 0, H.series = void 0, H;
  6631. }
  6632. return R(Z, I), Z;
  6633. }(y.seriesTypes.column.prototype.pointClass);
  6634. }), E(
  6635. h,
  6636. "Series/HLC/HLCSeries.js",
  6637. [h["Series/HLC/HLCPoint.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]],
  6638. function(y, R, I) {
  6639. var Z = this && this.__extends || function() {
  6640. var W = function(N, w) {
  6641. return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, u) {
  6642. v.__proto__ = u;
  6643. } || function(v, u) {
  6644. for (var d in u)
  6645. u.hasOwnProperty(d) && (v[d] = u[d]);
  6646. }, W(N, w);
  6647. };
  6648. return function(N, w) {
  6649. function v() {
  6650. this.constructor = N;
  6651. }
  6652. W(N, w), N.prototype = w === null ? Object.create(w) : (v.prototype = w.prototype, new v());
  6653. };
  6654. }(), H = R.seriesTypes.column, $ = I.extend, U = I.merge;
  6655. return I = function(W) {
  6656. function N() {
  6657. var w = W !== null && W.apply(this, arguments) || this;
  6658. return w.data = void 0, w.options = void 0, w.points = void 0, w.yData = void 0, w;
  6659. }
  6660. return Z(N, W), N.prototype.extendStem = function(w, v, u) {
  6661. var d = w[0];
  6662. w = w[1], typeof d[2] == "number" && (d[2] = Math.max(u + v, d[2])), typeof w[2] == "number" && (w[2] = Math.min(u - v, w[2]));
  6663. }, N.prototype.getPointPath = function(w, v) {
  6664. v = v.strokeWidth();
  6665. var u = w.series, d = v % 2 / 2, P = Math.round(w.plotX) - d, O = Math.round(w.shapeArgs.width / 2), B = [["M", P, Math.round(w.yBottom)], ["L", P, Math.round(w.plotHigh)]];
  6666. return w.close !== null && (w = Math.round(w.plotClose) + d, B.push(["M", P, w], ["L", P + O, w]), u.extendStem(B, v / 2, w)), B;
  6667. }, N.prototype.drawSinglePoint = function(w) {
  6668. var v = w.series, u = v.chart, d = w.graphic, P = !d;
  6669. typeof w.plotY < "u" && (d || (w.graphic = d = u.renderer.path().add(v.group)), u.styledMode || d.attr(v.pointAttribs(w, w.selected && "select")), v = v.getPointPath(w, d), d[P ? "attr" : "animate"]({ d: v }).addClass(w.getClassName(), !0));
  6670. }, N.prototype.drawPoints = function() {
  6671. this.points.forEach(this.drawSinglePoint);
  6672. }, N.prototype.init = function() {
  6673. W.prototype.init.apply(this, arguments), this.options.stacking = void 0;
  6674. }, N.prototype.pointAttribs = function(w, v) {
  6675. return w = W.prototype.pointAttribs.call(this, w, v), delete w.fill, w;
  6676. }, N.prototype.toYData = function(w) {
  6677. return [w.high, w.low, w.close];
  6678. }, N.prototype.translate = function() {
  6679. var w = this, v = w.yAxis, u = this.pointArrayMap && this.pointArrayMap.slice() || [], d = u.map(function(P) {
  6680. return "plot" + (P.charAt(0).toUpperCase() + P.slice(1));
  6681. });
  6682. d.push("yBottom"), u.push("low"), W.prototype.translate.apply(w), w.points.forEach(function(P) {
  6683. u.forEach(function(O, B) {
  6684. O = P[O], O !== null && (w.dataModify && (O = w.dataModify.modifyValue(O)), P[d[B]] = v.toPixels(O, !0));
  6685. }), P.tooltipPos[1] = P.plotHigh + v.pos - w.chart.plotTop;
  6686. });
  6687. }, N.defaultOptions = U(H.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 }), N;
  6688. }(H), $(I.prototype, { animate: null, directTouch: !1, pointArrayMap: ["high", "low", "close"], pointAttrToOptions: {
  6689. stroke: "color",
  6690. "stroke-width": "lineWidth"
  6691. }, pointValKey: "close" }), I.prototype.pointClass = y, R.registerSeriesType("hlc", I), I;
  6692. }
  6693. ), E(h, "Series/OHLC/OHLCPoint.js", [h["Core/Series/SeriesRegistry.js"]], function(y) {
  6694. var R = this && this.__extends || function() {
  6695. var I = function(Z, H) {
  6696. return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function($, U) {
  6697. $.__proto__ = U;
  6698. } || function($, U) {
  6699. for (var W in U)
  6700. U.hasOwnProperty(W) && ($[W] = U[W]);
  6701. }, I(Z, H);
  6702. };
  6703. return function(Z, H) {
  6704. function $() {
  6705. this.constructor = Z;
  6706. }
  6707. I(Z, H), Z.prototype = H === null ? Object.create(H) : ($.prototype = H.prototype, new $());
  6708. };
  6709. }();
  6710. return function(I) {
  6711. function Z() {
  6712. var H = I !== null && I.apply(this, arguments) || this;
  6713. return H.open = void 0, H.options = void 0, H.plotOpen = void 0, H.series = void 0, H;
  6714. }
  6715. return R(Z, I), Z.prototype.getClassName = function() {
  6716. return I.prototype.getClassName.call(this) + (this.open < this.close ? " highcharts-point-up" : " highcharts-point-down");
  6717. }, Z.prototype.resolveUpColor = function() {
  6718. this.open < this.close && !this.options.color && this.series.options.upColor && (this.color = this.series.options.upColor);
  6719. }, Z.prototype.resolveColor = function() {
  6720. I.prototype.resolveColor.call(this), this.resolveUpColor();
  6721. }, Z.prototype.getZone = function() {
  6722. var H = I.prototype.getZone.call(this);
  6723. return this.resolveUpColor(), H;
  6724. }, Z.prototype.applyOptions = function() {
  6725. return I.prototype.applyOptions.apply(this, arguments), this.resolveColor && this.resolveColor(), this;
  6726. }, Z;
  6727. }(y.seriesTypes.hlc.prototype.pointClass);
  6728. }), E(
  6729. h,
  6730. "Series/OHLC/OHLCSeries.js",
  6731. [h["Series/OHLC/OHLCPoint.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]],
  6732. function(y, R, I) {
  6733. var Z = this && this.__extends || function() {
  6734. var v = function(u, d) {
  6735. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  6736. P.__proto__ = O;
  6737. } || function(P, O) {
  6738. for (var B in O)
  6739. O.hasOwnProperty(B) && (P[B] = O[B]);
  6740. }, v(u, d);
  6741. };
  6742. return function(u, d) {
  6743. function P() {
  6744. this.constructor = u;
  6745. }
  6746. v(u, d), u.prototype = d === null ? Object.create(d) : (P.prototype = d.prototype, new P());
  6747. };
  6748. }(), H = R.series, $ = R.seriesTypes.hlc, U = I.addEvent, W = I.extend, N = I.merge, w = function(v) {
  6749. function u() {
  6750. var d = v !== null && v.apply(this, arguments) || this;
  6751. return d.data = void 0, d.options = void 0, d.points = void 0, d;
  6752. }
  6753. return Z(u, v), u.prototype.getPointPath = function(d, P) {
  6754. var O = v.prototype.getPointPath.call(this, d, P);
  6755. P = P.strokeWidth();
  6756. var B = P % 2 / 2, C = Math.round(d.plotX) - B, b = Math.round(d.shapeArgs.width / 2);
  6757. return d.open !== null && (d = Math.round(d.plotOpen) + B, O.push(["M", C, d], ["L", C - b, d]), v.prototype.extendStem.call(this, O, P / 2, d)), O;
  6758. }, u.prototype.pointAttribs = function(d, P) {
  6759. P = v.prototype.pointAttribs.call(this, d, P);
  6760. var O = this.options;
  6761. return delete P.fill, !d.options.color && O.upColor && d.open < d.close && (P.stroke = O.upColor), P;
  6762. }, u.prototype.toYData = function(d) {
  6763. return [d.open, d.high, d.low, d.close];
  6764. }, u.defaultOptions = N($.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/>' } }), u;
  6765. }($);
  6766. return W(w.prototype, { pointArrayMap: ["open", "high", "low", "close"] }), w.prototype.pointClass = y, R.registerSeriesType("ohlc", w), U(H, "init", function(v) {
  6767. v = v.options, v.useOhlcData && v.id !== "highcharts-navigator-series" && W(this, { pointValKey: w.prototype.pointValKey, pointArrayMap: w.prototype.pointArrayMap, toYData: w.prototype.toYData });
  6768. }), U(H, "afterSetOptions", function(v) {
  6769. v = v.options;
  6770. var u = v.dataGrouping;
  6771. u && v.useOhlcData && v.id !== "highcharts-navigator-series" && (u.approximation = "ohlc");
  6772. }), w;
  6773. }
  6774. ), E(h, "Series/Candlestick/CandlestickSeries.js", [h["Core/DefaultOptions.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R, I) {
  6775. var Z = this && this.__extends || function() {
  6776. var N = function(w, v) {
  6777. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, d) {
  6778. u.__proto__ = d;
  6779. } || function(u, d) {
  6780. for (var P in d)
  6781. d.hasOwnProperty(P) && (u[P] = d[P]);
  6782. }, N(w, v);
  6783. };
  6784. return function(w, v) {
  6785. function u() {
  6786. this.constructor = w;
  6787. }
  6788. N(w, v), w.prototype = v === null ? Object.create(v) : (u.prototype = v.prototype, new u());
  6789. };
  6790. }(), H = y.defaultOptions;
  6791. y = R.seriesTypes;
  6792. var $ = y.column, U = y.ohlc, W = I.merge;
  6793. return I = function(N) {
  6794. function w() {
  6795. var v = N !== null && N.apply(this, arguments) || this;
  6796. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  6797. }
  6798. return Z(w, N), w.prototype.pointAttribs = function(v, u) {
  6799. var d = $.prototype.pointAttribs.call(this, v, u), P = this.options, O = v.open < v.close, B = P.lineColor || this.color, C = v.color || this.color;
  6800. return d["stroke-width"] = P.lineWidth, d.fill = v.options.color || O && P.upColor || C, d.stroke = v.options.lineColor || O && P.upLineColor || B, u && (v = P.states[u], d.fill = v.color || d.fill, d.stroke = v.lineColor || d.stroke, d["stroke-width"] = v.lineWidth || d["stroke-width"]), d;
  6801. }, w.prototype.drawPoints = function() {
  6802. var v = this, u = v.chart, d = v.yAxis.reversed;
  6803. v.points.forEach(function(P) {
  6804. var O = P.graphic, B = !O;
  6805. if (typeof P.plotY < "u") {
  6806. O || (P.graphic = O = u.renderer.path().add(v.group)), v.chart.styledMode || O.attr(v.pointAttribs(P, P.selected && "select")).shadow(v.options.shadow);
  6807. var C = O.strokeWidth() % 2 / 2, b = Math.round(P.plotX) - C, M = P.plotOpen, x = P.plotClose, a = Math.min(M, x);
  6808. M = Math.max(M, x);
  6809. var c = Math.round(P.shapeArgs.width / 2);
  6810. x = d ? M !== P.yBottom : Math.round(a) !== Math.round(P.plotHigh);
  6811. var p = d ? Math.round(a) !== Math.round(P.plotHigh) : M !== P.yBottom;
  6812. a = Math.round(a) + C, M = Math.round(M) + C, C = [], C.push(["M", b - c, M], ["L", b - c, a], ["L", b + c, a], ["L", b + c, M], ["Z"], ["M", b, a], ["L", b, x ? Math.round(d ? P.yBottom : P.plotHigh) : a], ["M", b, M], ["L", b, p ? Math.round(d ? P.plotHigh : P.yBottom) : M]), O[B ? "attr" : "animate"]({ d: C }).addClass(P.getClassName(), !0);
  6813. }
  6814. });
  6815. }, w.defaultOptions = W(U.defaultOptions, H.plotOptions, { states: { hover: { lineWidth: 2 } }, tooltip: H.plotOptions.ohlc.tooltip, threshold: null, lineColor: "#000000", lineWidth: 1, upColor: "#ffffff", stickyTracking: !0 }), w;
  6816. }(U), R.registerSeriesType("candlestick", I), I;
  6817. }), E(h, "Series/Flags/FlagsPoint.js", [h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R) {
  6818. var I = this && this.__extends || function() {
  6819. var H = function($, U) {
  6820. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(W, N) {
  6821. W.__proto__ = N;
  6822. } || function(W, N) {
  6823. for (var w in N)
  6824. N.hasOwnProperty(w) && (W[w] = N[w]);
  6825. }, H($, U);
  6826. };
  6827. return function($, U) {
  6828. function W() {
  6829. this.constructor = $;
  6830. }
  6831. H($, U), $.prototype = U === null ? Object.create(U) : (W.prototype = U.prototype, new W());
  6832. };
  6833. }(), Z = R.isNumber;
  6834. return function(H) {
  6835. function $() {
  6836. var U = H !== null && H.apply(this, arguments) || this;
  6837. return U.options = void 0, U.series = void 0, U;
  6838. }
  6839. return I($, H), $.prototype.isValid = function() {
  6840. return Z(this.y) || typeof this.y > "u";
  6841. }, $.prototype.hasNewShapeType = function() {
  6842. var U = this.options.shape || this.series.options.shape;
  6843. return this.graphic && U && U !== this.graphic.symbolKey;
  6844. }, $;
  6845. }(y.seriesTypes.column.prototype.pointClass);
  6846. }), E(h, "Series/OnSeriesComposition.js", [
  6847. h["Series/Column/ColumnSeries.js"],
  6848. h["Core/Series/Series.js"],
  6849. h["Core/Utilities.js"]
  6850. ], function(y, R, I) {
  6851. var Z = y.prototype, H = R.prototype, $ = I.defined, U = I.stableSort, W;
  6852. return function(N) {
  6853. function w() {
  6854. return H.getPlotBox.call(this.options.onSeries && this.chart.get(this.options.onSeries) || this);
  6855. }
  6856. function v() {
  6857. Z.translate.apply(this);
  6858. var d = this, P = d.options, O = d.chart, B = d.points, C = P.onSeries, b = (C = C && O.get(C)) && C.options.step, M = C && C.points, x = O.inverted, a = d.xAxis, c = d.yAxis;
  6859. O = B.length - 1;
  6860. var p;
  6861. P = P.onKey || "y";
  6862. var i = M && M.length, l = 0, s;
  6863. if (C && C.visible && i) {
  6864. l = (C.pointXOffset || 0) + (C.barW || 0) / 2;
  6865. var t = C.currentDataGrouping, n = M[i - 1].x + (t ? t.totalRange : 0);
  6866. for (U(B, function(_, D) {
  6867. return _.x - D.x;
  6868. }), P = "plot" + P[0].toUpperCase() + P.substr(1); i-- && B[O]; ) {
  6869. var o = M[i];
  6870. if (t = B[O], t.y = o.y, o.x <= t.x && typeof o[P] < "u") {
  6871. if (t.x <= n && (t.plotY = o[P], o.x < t.x && !b && (s = M[i + 1]) && typeof s[P] < "u")) {
  6872. var A = (t.x - o.x) / (s.x - o.x);
  6873. t.plotY += A * (s[P] - o[P]), t.y += A * (s.y - o.y);
  6874. }
  6875. if (O--, i++, 0 > O)
  6876. break;
  6877. }
  6878. }
  6879. }
  6880. B.forEach(function(_, D) {
  6881. if (_.plotX += l, (typeof _.plotY > "u" || x) && (0 <= _.plotX && _.plotX <= a.len ? x ? (_.plotY = a.translate(_.x, 0, 1, 0, 1), _.plotX = $(_.y) ? c.translate(_.y, 0, 0, 0, 1) : 0) : _.plotY = (a.opposite ? 0 : d.yAxis.len) + a.offset : _.shapeArgs = {}), (p = B[D - 1]) && p.plotX === _.plotX) {
  6882. typeof p.stackIndex > "u" && (p.stackIndex = 0);
  6883. var j = p.stackIndex + 1;
  6884. }
  6885. _.stackIndex = j;
  6886. }), this.onSeries = C;
  6887. }
  6888. var u = [];
  6889. N.compose = function(d) {
  6890. if (u.indexOf(d) === -1) {
  6891. u.push(d);
  6892. var P = d.prototype;
  6893. P.getPlotBox = w, P.translate = v;
  6894. }
  6895. return d;
  6896. }, N.getPlotBox = w, N.translate = v;
  6897. }(W || (W = {})), W;
  6898. }), E(
  6899. h,
  6900. "Series/Flags/FlagsSymbols.js",
  6901. [h["Core/Renderer/RendererRegistry.js"], h["Core/Renderer/SVG/SVGRenderer.js"]],
  6902. function(y, R) {
  6903. function I(H) {
  6904. Z[H + "pin"] = function($, U, W, N, w) {
  6905. var v = w && w.anchorX;
  6906. w = w && w.anchorY, H === "circle" && N > W && ($ -= Math.round((N - W) / 2), W = N);
  6907. var u = Z[H]($, U, W, N);
  6908. if (v && w) {
  6909. var d = v;
  6910. H === "circle" ? d = $ + W / 2 : ($ = u[0], W = u[1], $[0] === "M" && W[0] === "L" && (d = ($[1] + W[1]) / 2)), u.push(["M", d, U > w ? U : U + N], ["L", v, w]), u = u.concat(Z.circle(v - 1, w - 1, 2, 2));
  6911. }
  6912. return u;
  6913. };
  6914. }
  6915. var Z = R.prototype.symbols;
  6916. return Z.flag = function(H, $, U, W, N) {
  6917. var w = N && N.anchorX || H;
  6918. N = N && N.anchorY || $;
  6919. var v = Z.circle(w - 1, N - 1, 2, 2);
  6920. return v.push(["M", w, N], ["L", H, $ + W], ["L", H, $], ["L", H + U, $], ["L", H + U, $ + W], ["L", H, $ + W], ["Z"]), v;
  6921. }, I("circle"), I("square"), y = y.getRendererType(), y !== R && (y.prototype.symbols.circlepin = Z.circlepin, y.prototype.symbols.flag = Z.flag, y.prototype.symbols.squarepin = Z.squarepin), Z;
  6922. }
  6923. ), E(h, "Series/Flags/FlagsSeries.js", [
  6924. h["Series/Flags/FlagsPoint.js"],
  6925. h["Core/Globals.js"],
  6926. h["Series/OnSeriesComposition.js"],
  6927. h["Core/Renderer/RendererUtilities.js"],
  6928. h["Core/Series/SeriesRegistry.js"],
  6929. h["Core/Renderer/SVG/SVGElement.js"],
  6930. h["Core/Utilities.js"]
  6931. ], function(y, R, I, Z, H, $, U) {
  6932. var W = this && this.__extends || function() {
  6933. var C = function(b, M) {
  6934. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  6935. x.__proto__ = a;
  6936. } || function(x, a) {
  6937. for (var c in a)
  6938. a.hasOwnProperty(c) && (x[c] = a[c]);
  6939. }, C(b, M);
  6940. };
  6941. return function(b, M) {
  6942. function x() {
  6943. this.constructor = b;
  6944. }
  6945. C(b, M), b.prototype = M === null ? Object.create(M) : (x.prototype = M.prototype, new x());
  6946. };
  6947. }();
  6948. R = R.noop;
  6949. var N = Z.distribute, w = H.series, v = H.seriesTypes.column, u = U.addEvent, d = U.defined;
  6950. Z = U.extend;
  6951. var P = U.merge, O = U.objectEach, B = U.wrap;
  6952. return U = function(C) {
  6953. function b() {
  6954. var M = C !== null && C.apply(this, arguments) || this;
  6955. return M.data = void 0, M.options = void 0, M.points = void 0, M;
  6956. }
  6957. return W(b, C), b.prototype.animate = function(M) {
  6958. M && this.setClip();
  6959. }, b.prototype.drawPoints = function() {
  6960. var M = this.points, x = this.chart, a = x.renderer, c = x.inverted, p = this.options, i = p.y, l, s = this.yAxis, t = {}, n = [];
  6961. for (l = M.length; l--; ) {
  6962. var o = M[l], A = (c ? o.plotY : o.plotX) > this.xAxis.len, _ = o.plotX, D = o.stackIndex, j = o.options.shape || p.shape, T = o.plotY;
  6963. typeof T < "u" && (T = o.plotY + i - (typeof D < "u" && D * p.stackDistance)), o.anchorX = D ? void 0 : o.plotX;
  6964. var X = D ? void 0 : o.plotY, f = j !== "flag";
  6965. D = o.graphic, typeof T < "u" && 0 <= _ && !A ? (D && o.hasNewShapeType() && (D = D.destroy()), D || (D = o.graphic = a.label("", null, null, j, null, null, p.useHTML).addClass("highcharts-point").add(this.markerGroup), o.graphic.div && (o.graphic.div.point = o), D.isNew = !0), D.attr({
  6966. align: f ? "center" : "left",
  6967. width: p.width,
  6968. height: p.height,
  6969. "text-align": p.textAlign
  6970. }), x.styledMode || D.attr(this.pointAttribs(o)).css(P(p.style, o.style)).shadow(p.shadow), 0 < _ && (_ -= D.strokeWidth() % 2), j = { y: T, anchorY: X }, p.allowOverlapX && (j.x = _, j.anchorX = o.anchorX), D.attr({ text: o.options.title || p.title || "A" })[D.isNew ? "attr" : "animate"](j), p.allowOverlapX || (t[o.plotX] ? t[o.plotX].size = Math.max(t[o.plotX].size, D.width) : t[o.plotX] = { align: f ? 0.5 : 0, size: D.width, target: _, anchorX: _ }), o.tooltipPos = [_, T + s.pos - x.plotTop]) : D && (o.graphic = D.destroy());
  6971. }
  6972. if (!p.allowOverlapX) {
  6973. var m = 100;
  6974. O(t, function(L) {
  6975. L.plotX = L.anchorX, n.push(L), m = Math.max(L.size, m);
  6976. }), N(n, c ? s.len : this.xAxis.len, m), M.forEach(function(L) {
  6977. var Y = L.graphic && t[L.plotX];
  6978. Y && (L.graphic[L.graphic.isNew ? "attr" : "animate"]({ x: Y.pos + Y.align * Y.size, anchorX: L.anchorX }), d(Y.pos) ? L.graphic.isNew = !1 : (L.graphic.attr({ x: -9999, anchorX: -9999 }), L.graphic.isNew = !0));
  6979. });
  6980. }
  6981. p.useHTML && B(this.markerGroup, "on", function(L) {
  6982. return $.prototype.on.apply(L.apply(this, [].slice.call(arguments, 1)), [].slice.call(arguments, 1));
  6983. });
  6984. }, b.prototype.drawTracker = function() {
  6985. var M = this.points;
  6986. C.prototype.drawTracker.call(this), M.forEach(function(x) {
  6987. var a = x.graphic;
  6988. a && (x.unbindMouseOver && x.unbindMouseOver(), x.unbindMouseOver = u(a.element, "mouseover", function() {
  6989. 0 < x.stackIndex && !x.raised && (x._y = a.y, a.attr({ y: x._y - 8 }), x.raised = !0), M.forEach(function(c) {
  6990. c !== x && c.raised && c.graphic && (c.graphic.attr({ y: c._y }), c.raised = !1);
  6991. });
  6992. }));
  6993. });
  6994. }, b.prototype.pointAttribs = function(M, x) {
  6995. var a = this.options, c = M && M.color || this.color, p = a.lineColor, i = M && M.lineWidth;
  6996. return M = M && M.fillColor || a.fillColor, x && (M = a.states[x].fillColor, p = a.states[x].lineColor, i = a.states[x].lineWidth), { fill: M || c, stroke: p || c, "stroke-width": i || a.lineWidth || 0 };
  6997. }, b.prototype.setClip = function() {
  6998. w.prototype.setClip.apply(this, arguments), this.options.clip !== !1 && this.sharedClipKey && this.markerGroup && this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey]);
  6999. }, b.defaultOptions = P(v.defaultOptions, {
  7000. pointRange: 0,
  7001. allowOverlapX: !1,
  7002. shape: "flag",
  7003. stackDistance: 12,
  7004. textAlign: "center",
  7005. tooltip: { pointFormat: "{point.text}" },
  7006. threshold: null,
  7007. y: -30,
  7008. fillColor: "#ffffff",
  7009. lineWidth: 1,
  7010. states: { hover: { lineColor: "#000000", fillColor: "#ccd6eb" } },
  7011. style: { fontSize: "11px", fontWeight: "bold" }
  7012. }), b;
  7013. }(v), I.compose(U), Z(U.prototype, { allowDG: !1, forceCrop: !0, invertible: !1, noSharedTooltip: !0, pointClass: y, sorted: !1, takeOrdinalPosition: !1, trackerGroups: ["markerGroup"], buildKDTree: R, init: w.prototype.init, invertGroups: R }), H.registerSeriesType("flags", U), U;
  7014. }), E(h, "Core/Axis/ScrollbarAxis.js", [h["Core/Utilities.js"]], function(y) {
  7015. var R = y.addEvent, I = y.defined, Z = y.pick;
  7016. return function() {
  7017. function H() {
  7018. }
  7019. return H.compose = function($, U) {
  7020. if (H.composed.indexOf($) === -1)
  7021. H.composed.push($);
  7022. else
  7023. return $;
  7024. var W = function(N) {
  7025. var w = Z(N.options && N.options.min, N.min), v = Z(N.options && N.options.max, N.max);
  7026. return { axisMin: w, axisMax: v, scrollMin: I(N.dataMin) ? Math.min(w, N.min, N.dataMin, Z(N.threshold, 1 / 0)) : w, scrollMax: I(N.dataMax) ? Math.max(v, N.max, N.dataMax, Z(N.threshold, -1 / 0)) : v };
  7027. };
  7028. return R($, "afterInit", function() {
  7029. var N = this;
  7030. N.options && N.options.scrollbar && N.options.scrollbar.enabled && (N.options.scrollbar.vertical = !N.horiz, N.options.startOnTick = N.options.endOnTick = !1, N.scrollbar = new U(N.chart.renderer, N.options.scrollbar, N.chart), R(N.scrollbar, "changed", function(w) {
  7031. var v = W(N), u = v.axisMax, d = v.scrollMin, P = v.scrollMax - d;
  7032. I(v.axisMin) && I(u) && (N.horiz && !N.reversed || !N.horiz && N.reversed ? (v = d + P * this.to, d += P * this.from) : (v = d + P * (1 - this.from), d += P * (1 - this.to)), this.shouldUpdateExtremes(w.DOMType) ? N.setExtremes(d, v, !0, w.DOMType !== "mousemove" && w.DOMType !== "touchmove", w) : this.setRange(
  7033. this.from,
  7034. this.to
  7035. ));
  7036. }));
  7037. }), R($, "afterRender", function() {
  7038. var N = W(this), w = N.scrollMin, v = N.scrollMax;
  7039. N = this.scrollbar;
  7040. var u = this.axisTitleMargin + (this.titleOffset || 0), d = this.chart.scrollbarsOffsets, P = this.options.margin || 0;
  7041. N && (this.horiz ? (this.opposite || (d[1] += u), N.position(this.left, this.top + this.height + 2 + d[1] - (this.opposite ? P : 0), this.width, this.height), this.opposite || (d[1] += P), u = 1) : (this.opposite && (d[0] += u), N.position(
  7042. N.options.opposite ? this.left + this.width + 2 + d[0] - (this.opposite ? 0 : P) : this.opposite ? 0 : P,
  7043. this.top,
  7044. this.width,
  7045. this.height
  7046. ), this.opposite && (d[0] += P), u = 0), d[u] += N.size + N.options.margin, isNaN(w) || isNaN(v) || !I(this.min) || !I(this.max) || this.min === this.max ? N.setRange(0, 1) : (d = (this.min - w) / (v - w), w = (this.max - w) / (v - w), this.horiz && !this.reversed || !this.horiz && this.reversed ? N.setRange(d, w) : N.setRange(1 - w, 1 - d)));
  7047. }), R($, "afterGetOffset", function() {
  7048. var N = this.scrollbar && !this.scrollbar.options.opposite;
  7049. N = this.horiz ? 2 : N ? 3 : 1;
  7050. var w = this.scrollbar;
  7051. w && (this.chart.scrollbarsOffsets = [0, 0], this.chart.axisOffset[N] += w.size + w.options.margin);
  7052. }), $;
  7053. }, H.composed = [], H;
  7054. }();
  7055. }), E(h, "Core/ScrollbarDefaults.js", [h["Core/Globals.js"]], function(y) {
  7056. return {
  7057. height: y.isTouchDevice ? 20 : 14,
  7058. barBorderRadius: 0,
  7059. buttonBorderRadius: 0,
  7060. liveRedraw: void 0,
  7061. margin: 10,
  7062. minWidth: 6,
  7063. opposite: !0,
  7064. step: 0.2,
  7065. zIndex: 3,
  7066. barBackgroundColor: "#cccccc",
  7067. barBorderWidth: 1,
  7068. barBorderColor: "#cccccc",
  7069. buttonArrowColor: "#333333",
  7070. buttonBackgroundColor: "#e6e6e6",
  7071. buttonBorderColor: "#cccccc",
  7072. buttonBorderWidth: 1,
  7073. rifleColor: "#333333",
  7074. trackBackgroundColor: "#f2f2f2",
  7075. trackBorderColor: "#f2f2f2",
  7076. trackBorderWidth: 1
  7077. };
  7078. }), 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, R, I, Z, H) {
  7079. var $ = y.defaultOptions, U = H.addEvent, W = H.correctFloat, N = H.defined, w = H.destroyObjectProperties, v = H.fireEvent, u = H.merge, d = H.pick, P = H.removeEvent;
  7080. return y = function() {
  7081. function O(B, C, b) {
  7082. 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(B, C, b);
  7083. }
  7084. return O.compose = function(B) {
  7085. I.compose(B, O);
  7086. }, O.swapXY = function(B, C) {
  7087. return C && B.forEach(function(b) {
  7088. for (var M = b.length, x, a = 0; a < M; a += 2)
  7089. x = b[a + 1], typeof x == "number" && (b[a + 1] = b[a + 2], b[a + 2] = x);
  7090. }), B;
  7091. }, O.prototype.addEvents = function() {
  7092. var B = this.options.inverted ? [1, 0] : [0, 1], C = this.scrollbarButtons, b = this.scrollbarGroup.element, M = this.track.element, x = this.mouseDownHandler.bind(this), a = this.mouseMoveHandler.bind(this), c = this.mouseUpHandler.bind(this);
  7093. B = [[C[B[0]].element, "click", this.buttonToMinClick.bind(this)], [C[B[1]].element, "click", this.buttonToMaxClick.bind(this)], [M, "click", this.trackClick.bind(this)], [b, "mousedown", x], [b.ownerDocument, "mousemove", a], [b.ownerDocument, "mouseup", c]], R.hasTouch && B.push(
  7094. [b, "touchstart", x],
  7095. [b.ownerDocument, "touchmove", a],
  7096. [b.ownerDocument, "touchend", c]
  7097. ), B.forEach(function(p) {
  7098. U.apply(null, p);
  7099. }), this._events = B;
  7100. }, O.prototype.buttonToMaxClick = function(B) {
  7101. var C = (this.to - this.from) * d(this.options.step, 0.2);
  7102. this.updatePosition(this.from + C, this.to + C), v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: B });
  7103. }, O.prototype.buttonToMinClick = function(B) {
  7104. var C = W(this.to - this.from) * d(this.options.step, 0.2);
  7105. this.updatePosition(W(this.from - C), W(this.to - C)), v(this, "changed", {
  7106. from: this.from,
  7107. to: this.to,
  7108. trigger: "scrollbar",
  7109. DOMEvent: B
  7110. });
  7111. }, O.prototype.cursorToScrollbarPosition = function(B) {
  7112. var C = this.options;
  7113. return C = C.minWidth > this.calculatedWidth ? C.minWidth : 0, { chartX: (B.chartX - this.x - this.xOffset) / (this.barWidth - C), chartY: (B.chartY - this.y - this.yOffset) / (this.barWidth - C) };
  7114. }, O.prototype.destroy = function() {
  7115. var B = this, C = B.chart.scroller;
  7116. B.removeEvents(), ["track", "scrollbarRifles", "scrollbar", "scrollbarGroup", "group"].forEach(function(b) {
  7117. B[b] && B[b].destroy && (B[b] = B[b].destroy());
  7118. }), C && B === C.scrollbar && (C.scrollbar = null, w(C.scrollbarButtons));
  7119. }, O.prototype.drawScrollbarButton = function(B) {
  7120. var C = this.renderer, b = this.scrollbarButtons, M = this.options, x = this.size, a = C.g().add(this.group);
  7121. b.push(a), a = C.rect().addClass("highcharts-scrollbar-button").add(a), this.chart.styledMode || a.attr({ stroke: M.buttonBorderColor, "stroke-width": M.buttonBorderWidth, fill: M.buttonBackgroundColor }), a.attr(a.crisp({ x: -0.5, y: -0.5, width: x + 1, height: x + 1, r: M.buttonBorderRadius }, a.strokeWidth())), a = C.path(O.swapXY([["M", x / 2 + (B ? -1 : 1), x / 2 - 3], ["L", x / 2 + (B ? -1 : 1), x / 2 + 3], ["L", x / 2 + (B ? 2 : -2), x / 2]], M.vertical)).addClass("highcharts-scrollbar-arrow").add(b[B]), this.chart.styledMode || a.attr({ fill: M.buttonArrowColor });
  7122. }, O.prototype.init = function(B, C, b) {
  7123. this.scrollbarButtons = [], this.renderer = B, this.userOptions = C, this.options = u(Z, $.scrollbar, C), this.chart = b, this.size = d(this.options.size, this.options.height), C.enabled && (this.render(), this.addEvents());
  7124. }, O.prototype.mouseDownHandler = function(B) {
  7125. B = this.chart.pointer.normalize(B), B = this.cursorToScrollbarPosition(B), this.chartX = B.chartX, this.chartY = B.chartY, this.initPositions = [this.from, this.to], this.grabbedCenter = !0;
  7126. }, O.prototype.mouseMoveHandler = function(B) {
  7127. var C = this.chart.pointer.normalize(B), b = this.options.vertical ? "chartY" : "chartX", M = this.initPositions || [];
  7128. !this.grabbedCenter || B.touches && B.touches[0][b] === 0 || (C = this.cursorToScrollbarPosition(C)[b], b = this[b], b = C - b, this.hasDragged = !0, this.updatePosition(M[0] + b, M[1] + b), this.hasDragged && v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: B.type, DOMEvent: B }));
  7129. }, O.prototype.mouseUpHandler = function(B) {
  7130. this.hasDragged && v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: B.type, DOMEvent: B }), this.grabbedCenter = this.hasDragged = this.chartX = this.chartY = null;
  7131. }, O.prototype.position = function(B, C, b, M) {
  7132. var x = this.options.vertical, a = this.rendered ? "animate" : "attr", c = 0;
  7133. this.x = B, this.y = C + this.trackBorderWidth, this.width = b, this.xOffset = this.height = M, this.yOffset = c, x ? (this.width = this.yOffset = b = c = this.size, this.xOffset = C = 0, this.barWidth = M - 2 * b, this.x = B += this.options.margin) : (this.height = this.xOffset = M = C = this.size, this.barWidth = b - 2 * M, this.y += this.options.margin), this.group[a]({ translateX: B, translateY: this.y }), this.track[a]({ width: b, height: M }), this.scrollbarButtons[1][a]({ translateX: x ? 0 : b - C, translateY: x ? M - c : 0 });
  7134. }, O.prototype.removeEvents = function() {
  7135. this._events.forEach(function(B) {
  7136. P.apply(null, B);
  7137. }), this._events.length = 0;
  7138. }, O.prototype.render = function() {
  7139. var B = this.renderer, C = this.options, b = this.size, M = this.chart.styledMode, x = B.g("scrollbar").attr({ zIndex: C.zIndex, translateY: -99999 }).add();
  7140. this.group = x, this.track = B.rect().addClass("highcharts-scrollbar-track").attr({ x: 0, r: C.trackBorderRadius || 0, height: b, width: b }).add(x), M || 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 = B.g().add(x), this.scrollbar = B.rect().addClass("highcharts-scrollbar-thumb").attr({ height: b, width: b, r: C.barBorderRadius || 0 }).add(this.scrollbarGroup), this.scrollbarRifles = B.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), M || (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);
  7141. }, O.prototype.setRange = function(B, C) {
  7142. var b = this.options, M = b.vertical, x = b.minWidth, a = this.barWidth, c = !this.rendered || this.hasDragged || this.chart.navigator && this.chart.navigator.hasDragged ? "attr" : "animate";
  7143. if (N(a)) {
  7144. var p = a * Math.min(C, 1);
  7145. B = Math.max(B, 0);
  7146. var i = Math.ceil(a * B);
  7147. this.calculatedWidth = p = W(p - i), p < x && (i = (a - x + p) * B, p = x), x = Math.floor(i + this.xOffset + this.yOffset), a = p / 2 - 0.5, this.from = B, this.to = C, M ? (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 >= B && 1 <= C ? this.group.hide() : this.group.show()), this.rendered = !0;
  7148. }
  7149. }, O.prototype.shouldUpdateExtremes = function(B) {
  7150. return d(this.options.liveRedraw, R.svg && !R.isTouchDevice && !this.chart.isBoosting) || B === "mouseup" || B === "touchend" || !N(B);
  7151. }, O.prototype.trackClick = function(B) {
  7152. var C = this.chart.pointer.normalize(B), b = this.to - this.from, M = this.y + this.scrollbarTop, x = this.x + this.scrollbarLeft;
  7153. this.options.vertical && C.chartY > M || !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: B });
  7154. }, O.prototype.update = function(B) {
  7155. this.destroy(), this.init(this.chart.renderer, u(
  7156. !0,
  7157. this.options,
  7158. B
  7159. ), this.chart);
  7160. }, O.prototype.updatePosition = function(B, C) {
  7161. 1 < C && (B = W(1 - W(C - B)), C = 1), 0 > B && (C = W(C - B), B = 0), this.from = B, this.to = C;
  7162. }, O.defaultOptions = Z, O;
  7163. }(), $.scrollbar = u(!0, y.defaultOptions, $.scrollbar), y;
  7164. }), E(h, "Core/Axis/NavigatorAxis.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R) {
  7165. var I = y.isTouchDevice, Z = R.addEvent, H = R.correctFloat, $ = R.defined, U = R.isNumber, W = R.pick, N = function() {
  7166. function w(v) {
  7167. this.axis = v;
  7168. }
  7169. return w.prototype.destroy = function() {
  7170. this.axis = void 0;
  7171. }, w.prototype.toFixedRange = function(v, u, d, P) {
  7172. var O = this.axis, B = O.chart;
  7173. B = B && B.fixedRange;
  7174. var C = (O.pointRange || 0) / 2;
  7175. return v = W(d, O.translate(v, !0, !O.horiz)), u = W(P, O.translate(u, !0, !O.horiz)), O = B && (u - v) / B, $(d) || (v = H(v + C)), $(P) || (u = H(u - C)), 0.7 < O && 1.3 > O && (P ? v = u - B : u = v + B), U(v) && U(u) || (v = u = void 0), { min: v, max: u };
  7176. }, w;
  7177. }();
  7178. return function() {
  7179. function w() {
  7180. }
  7181. return w.compose = function(v) {
  7182. v.keepProps.push("navigatorAxis"), Z(v, "init", function() {
  7183. this.navigatorAxis || (this.navigatorAxis = new N(this));
  7184. }), Z(v, "zoom", function(u) {
  7185. var d = this.chart.options, P = d.navigator, O = this.navigatorAxis, B = d.chart.pinchType, C = d.rangeSelector;
  7186. d = d.chart.zoomType, this.isXAxis && (P && P.enabled || C && C.enabled) && (d === "y" ? u.zoomed = !1 : (!I && d === "xy" || I && B === "xy") && this.options.range && (P = O.previousZoom, $(u.newMin) ? O.previousZoom = [this.min, this.max] : P && (u.newMin = P[0], u.newMax = P[1], O.previousZoom = void 0))), typeof u.zoomed < "u" && u.preventDefault();
  7187. });
  7188. }, w.AdditionsClass = N, w;
  7189. }();
  7190. }), E(h, "Core/Navigator.js", [
  7191. h["Core/Axis/Axis.js"],
  7192. h["Core/Chart/Chart.js"],
  7193. h["Core/Color/Color.js"],
  7194. h["Core/Globals.js"],
  7195. h["Core/Axis/NavigatorAxis.js"],
  7196. h["Core/DefaultOptions.js"],
  7197. h["Core/Renderer/RendererRegistry.js"],
  7198. h["Core/Scrollbar.js"],
  7199. h["Core/Series/Series.js"],
  7200. h["Core/Series/SeriesRegistry.js"],
  7201. h["Core/Utilities.js"]
  7202. ], function(y, R, I, Z, H, $, U, W, N, w, v) {
  7203. I = I.parse;
  7204. var u = Z.hasTouch, d = Z.isTouchDevice, P = $.defaultOptions, O = v.addEvent, B = v.clamp, C = v.correctFloat, b = v.defined, M = 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, n = v.splat, o = function(_) {
  7205. for (var D = [], j = 1; j < arguments.length; j++)
  7206. D[j - 1] = arguments[j];
  7207. if (D = [].filter.call(D, i), D.length)
  7208. return Math[_].apply(0, D);
  7209. };
  7210. $ = typeof w.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: {
  7211. type: $,
  7212. fillOpacity: 0.05,
  7213. lineWidth: 1,
  7214. compare: null,
  7215. 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]] },
  7216. dataLabels: { enabled: !1, zIndex: 2 },
  7217. id: "highcharts-navigator-series",
  7218. className: "highcharts-navigator-series",
  7219. lineColor: null,
  7220. marker: { enabled: !1 },
  7221. threshold: null
  7222. }, 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 } } }), U.getRendererType().prototype.symbols["navigator-handle"] = function(_, D, j, T, X) {
  7223. 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]];
  7224. };
  7225. var A = function() {
  7226. function _(D) {
  7227. 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);
  7228. }
  7229. return _.prototype.drawHandle = function(D, j, T, X) {
  7230. var f = this.navigatorOptions.handles.height;
  7231. this.handles[j][X](T ? { translateX: Math.round(this.left + this.height / 2), translateY: Math.round(this.top + parseInt(D, 10) + 0.5 - f) } : { translateX: Math.round(this.left + parseInt(D, 10)), translateY: Math.round(this.top + this.height / 2 - f / 2 - 1) });
  7232. }, _.prototype.drawOutline = function(D, j, T, X) {
  7233. var f = this.navigatorOptions.maskInside, m = this.outline.strokeWidth(), L = m / 2, Y = m % 2 / 2;
  7234. m = this.outlineHeight;
  7235. var F = this.scrollbarHeight || 0, Q = this.size, k = this.left - F, G = this.top;
  7236. T ? (k -= L, T = G + j + Y, j = G + D + Y, Y = [["M", k + m, G - F - Y], ["L", k + m, T], ["L", k, T], ["L", k, j], ["L", k + m, j], ["L", k + m, G + Q + F]], f && Y.push(["M", k + m, T - L], ["L", k + m, j + L])) : (D += k + F - Y, j += k + F - Y, G += L, Y = [["M", k, G], ["L", D, G], ["L", D, G + m], ["L", j, G + m], ["L", j, G], ["L", k + Q + 2 * F, G]], f && Y.push(["M", D - L, G], ["L", j + L, G])), this.outline[X]({ d: Y });
  7237. }, _.prototype.drawMasks = function(D, j, T, X) {
  7238. var f = this.left, m = this.top, L = this.height;
  7239. if (T)
  7240. var Y = [f, f, f], F = [m, m + D, m + j], Q = [L, L, L], k = [D, j - D, this.size - j];
  7241. else
  7242. Y = [f, f + D, f + j], F = [m, m, m], Q = [D, j - D, this.size - j], k = [L, L, L];
  7243. this.shades.forEach(function(G, z) {
  7244. G[X]({ x: Y[z], y: F[z], width: Q[z], height: k[z] });
  7245. });
  7246. }, _.prototype.renderElements = function() {
  7247. var D = this, j = D.navigatorOptions, T = j.maskInside, X = D.chart, f = X.renderer, m, L = { cursor: X.inverted ? "ns-resize" : "ew-resize" };
  7248. D.navigatorGroup = m = f.g("navigator").attr({ zIndex: 8, visibility: "hidden" }).add(), [!T, T, !T].forEach(function(Y, F) {
  7249. D.shades[F] = f.rect().addClass("highcharts-navigator-mask" + (F === 1 ? "-inside" : "-outside")).add(m), X.styledMode || D.shades[F].attr({ fill: Y ? j.maskFill : "rgba(0,0,0,0)" }).css(F === 1 && L);
  7250. }), D.outline = f.path().addClass("highcharts-navigator-outline").add(m), X.styledMode || D.outline.attr({ "stroke-width": j.outlineWidth, stroke: j.outlineColor }), j.handles.enabled && [0, 1].forEach(function(Y) {
  7251. if (j.handles.inverted = X.inverted, D.handles[Y] = f.symbol(j.handles.symbols[Y], -j.handles.width / 2 - 1, 0, j.handles.width, j.handles.height, j.handles), D.handles[Y].attr({ zIndex: 7 - Y }).addClass("highcharts-navigator-handle highcharts-navigator-handle-" + ["left", "right"][Y]).add(m), !X.styledMode) {
  7252. var F = j.handles;
  7253. D.handles[Y].attr({ fill: F.backgroundColor, stroke: F.borderColor, "stroke-width": F.lineWidth }).css(L);
  7254. }
  7255. });
  7256. }, _.prototype.update = function(D) {
  7257. (this.series || []).forEach(function(j) {
  7258. j.baseSeries && delete j.baseSeries.navigatorSeries;
  7259. }), this.destroy(), l(!0, this.chart.options.navigator, this.options, D), this.init(this.chart);
  7260. }, _.prototype.render = function(D, j, T, X) {
  7261. var f = this.chart, m = this.scrollbarHeight, L, Y = this.xAxis, F = Y.pointRange || 0, Q = Y.navigatorAxis.fake ? f.xAxis[0] : Y, k = this.navigatorEnabled, G, z = this.rendered, V = f.inverted, q = f.xAxis[0].minRange, it = f.xAxis[0].options.maxRange;
  7262. if (!this.hasDragged || b(T)) {
  7263. if (D = C(D - F / 2), j = C(j + F / 2), !i(D) || !i(j))
  7264. if (z)
  7265. T = 0, X = s(Y.width, Q.width);
  7266. else
  7267. return;
  7268. this.left = s(Y.left, f.plotLeft + m + (V ? f.plotWidth : 0)), this.size = G = L = s(Y.len, (V ? f.plotHeight : f.plotWidth) - 2 * m), f = V ? m : L + 2 * m, T = s(T, Y.toPixels(D, !0)), X = s(X, Y.toPixels(j, !0)), i(T) && Math.abs(T) !== 1 / 0 || (T = 0, X = f), D = Y.toValue(T, !0), j = Y.toValue(X, !0);
  7269. var et = Math.abs(C(j - D));
  7270. et < q ? this.grabbedLeft ? T = Y.toPixels(j - q - F, !0) : this.grabbedRight && (X = Y.toPixels(D + q + F, !0)) : b(it) && C(et - F) > it && (this.grabbedLeft ? T = Y.toPixels(j - it - F, !0) : this.grabbedRight && (X = Y.toPixels(D + it + F, !0))), this.zoomedMax = B(Math.max(T, X), 0, G), this.zoomedMin = B(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, V, z), this.drawOutline(T, G, V, z), this.navigatorOptions.handles.enabled && (this.drawHandle(T, 0, V, z), this.drawHandle(G, 1, V, z))), this.scrollbar && (V ? (V = this.top - m, Q = this.left - m + (k || !Q.opposite ? 0 : (Q.titleOffset || 0) + Q.axisTitleMargin), m = L + 2 * m) : (V = this.top + (k ? this.height : -m), Q = this.left - m), this.scrollbar.position(Q, V, f, m), this.scrollbar.setRange(this.zoomedMin / (L || 1), this.zoomedMax / (L || 1))), this.rendered = !0;
  7271. }
  7272. }, _.prototype.addMouseEvents = function() {
  7273. var D = this, j = D.chart, T = j.container, X = [], f, m;
  7274. D.mouseMoveHandler = f = function(L) {
  7275. D.onMouseMove(L);
  7276. }, D.mouseUpHandler = m = function(L) {
  7277. D.onMouseUp(L);
  7278. }, X = D.getPartsEvents("mousedown"), X.push(O(j.renderTo, "mousemove", f), O(T.ownerDocument, "mouseup", m)), u && (X.push(O(j.renderTo, "touchmove", f), 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() {
  7279. j.navigator.modifyNavigatorAxisExtremes();
  7280. }));
  7281. }, _.prototype.getPartsEvents = function(D) {
  7282. var j = this, T = [];
  7283. return ["shades", "handles"].forEach(function(X) {
  7284. j[X].forEach(function(f, m) {
  7285. T.push(O(f.element, D, function(L) {
  7286. j[X + "Mousedown"](L, m);
  7287. }));
  7288. });
  7289. }), T;
  7290. }, _.prototype.shadesMousedown = function(D, j) {
  7291. D = this.chart.pointer.normalize(D);
  7292. var T = this.chart, X = this.xAxis, f = this.zoomedMin, m = this.left, L = this.size, Y = this.range, F = D.chartX;
  7293. if (T.inverted && (F = D.chartY, m = this.top), j === 1)
  7294. this.grabbedCenter = F, this.fixedWidth = Y, this.dragOffset = F - f;
  7295. else {
  7296. if (D = F - m - Y / 2, j === 0)
  7297. D = Math.max(0, D);
  7298. else if (j === 2 && D + Y >= L)
  7299. if (D = L - Y, this.reversedExtremes) {
  7300. D -= Y;
  7301. var Q = this.getUnionExtremes().dataMin;
  7302. } else
  7303. var k = this.getUnionExtremes().dataMax;
  7304. D !== f && (this.fixedWidth = Y, j = X.navigatorAxis.toFixedRange(D, D + Y, Q, k), b(j.min) && T.xAxis[0].setExtremes(Math.min(j.min, j.max), Math.max(j.min, j.max), !0, null, { trigger: "navigator" }));
  7305. }
  7306. }, _.prototype.handlesMousedown = function(D, j) {
  7307. this.chart.pointer.normalize(D), D = this.chart;
  7308. var T = D.xAxis[0], X = this.reversedExtremes;
  7309. j === 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;
  7310. }, _.prototype.onMouseMove = function(D) {
  7311. var j = this, T = j.chart, X = j.left, f = j.navigatorSize, m = j.range, L = j.dragOffset, Y = T.inverted;
  7312. D.touches && D.touches[0].pageX === 0 || (D = T.pointer.normalize(D), T = D.chartX, Y && (X = j.top, T = D.chartY), j.grabbedLeft ? (j.hasDragged = !0, j.render(0, 0, T - X, j.otherHandlePos)) : j.grabbedRight ? (j.hasDragged = !0, j.render(0, 0, j.otherHandlePos, T - X)) : j.grabbedCenter && (j.hasDragged = !0, T < L ? T = L : T > f + L - m && (T = f + L - m), j.render(0, 0, T - L, T - L + m)), j.hasDragged && j.scrollbar && s(j.scrollbar.options.liveRedraw, Z.svg && !d && !this.chart.isBoosting) && (D.DOMType = D.type, setTimeout(function() {
  7313. j.onMouseUp(D);
  7314. }, 0)));
  7315. }, _.prototype.onMouseUp = function(D) {
  7316. var j = this.chart, T = this.xAxis, X = this.scrollbar, f = D.DOMEvent || D, m = j.inverted, L = this.rendered && !this.hasDragged ? "animate" : "attr";
  7317. if (this.hasDragged && (!X || !X.hasDragged) || D.trigger === "scrollbar") {
  7318. if (X = this.getUnionExtremes(), this.zoomedMin === this.otherHandlePos)
  7319. var Y = this.fixedExtreme;
  7320. else if (this.zoomedMax === this.otherHandlePos)
  7321. var F = this.fixedExtreme;
  7322. this.zoomedMax === this.size && (F = 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, F), b(T.min) && j.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: f });
  7323. }
  7324. 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) && (j = Math.round(this.zoomedMin), D = Math.round(this.zoomedMax), this.shades && this.drawMasks(j, D, m, L), this.outline && this.drawOutline(j, D, m, L), this.navigatorOptions.handles.enabled && Object.keys(this.handles).length === this.handles.length && (this.drawHandle(j, 0, m, L), this.drawHandle(D, 1, m, L)));
  7325. }, _.prototype.removeEvents = function() {
  7326. this.eventsToUnbind && (this.eventsToUnbind.forEach(function(D) {
  7327. D();
  7328. }), this.eventsToUnbind = void 0), this.removeBaseSeriesEvents();
  7329. }, _.prototype.removeBaseSeriesEvents = function() {
  7330. var D = this.baseSeries || [];
  7331. this.navigatorEnabled && D[0] && (this.navigatorOptions.adaptToUpdatedData !== !1 && D.forEach(function(j) {
  7332. t(j, "updatedData", this.updatedDataHandler);
  7333. }, this), D[0].xAxis && t(D[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes));
  7334. }, _.prototype.init = function(D) {
  7335. var j = D.options, T = j.navigator, X = T.enabled, f = j.scrollbar, m = f.enabled;
  7336. j = X ? T.height : 0;
  7337. var L = m ? f.height : 0;
  7338. this.handles = [], this.shades = [], this.chart = D, this.setBaseSeries(), this.height = j, this.scrollbarHeight = L, this.scrollbarEnabled = m, this.navigatorEnabled = X, this.navigatorOptions = T, this.scrollbarOptions = f, this.outlineHeight = j + L, this.opposite = s(T.opposite, !(X || !D.inverted));
  7339. var Y = this;
  7340. X = Y.baseSeries, f = D.xAxis.length, m = D.yAxis.length;
  7341. var F = X && X[0] && X[0].xAxis || D.xAxis[0] || { options: {} };
  7342. D.isDirtyBox = !0, Y.navigatorEnabled ? (Y.xAxis = new y(D, l(
  7343. { breaks: F.options.breaks, ordinal: F.options.ordinal },
  7344. T.xAxis,
  7345. { id: "navigator-x-axis", yAxis: "navigator-y-axis", isX: !0, type: "datetime", index: f, isInternal: !0, offset: 0, keepOrdinalPadding: !0, startOnTick: !1, endOnTick: !1, minPadding: 0, maxPadding: 0, zoomEnabled: !1 },
  7346. D.inverted ? { offsets: [L, 0, -L, 0], width: j } : { offsets: [0, -L, 0, L], height: j }
  7347. )), 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: j } : { height: j })), X || T.series.data ? Y.updateNavigatorSeries(!1) : D.series.length === 0 && (Y.unbindRedraw = O(D, "beforeRedraw", function() {
  7348. 0 < D.series.length && !Y.series && (Y.setBaseSeries(), Y.unbindRedraw());
  7349. })), Y.reversedExtremes = D.inverted && !Y.xAxis.reversed || !D.inverted && Y.xAxis.reversed, Y.renderElements(), Y.addMouseEvents()) : (Y.xAxis = {
  7350. chart: D,
  7351. navigatorAxis: { fake: !0 },
  7352. translate: function(Q, k) {
  7353. var G = D.xAxis[0], z = G.getExtremes(), V = G.len - 2 * L, q = o("min", G.options.min, z.dataMin);
  7354. return G = o("max", G.options.max, z.dataMax) - q, k ? Q * G / V + q : V * (Q - q) / G;
  7355. },
  7356. toPixels: function(Q) {
  7357. return this.translate(Q);
  7358. },
  7359. toValue: function(Q) {
  7360. return this.translate(Q, !0);
  7361. }
  7362. }, Y.xAxis.navigatorAxis.axis = Y.xAxis, Y.xAxis.navigatorAxis.toFixedRange = H.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) {
  7363. var k = Y.size, G = k * this.to;
  7364. k *= this.from, Y.hasDragged = Y.scrollbar.hasDragged, Y.render(0, 0, k, G), this.shouldUpdateExtremes(Q.DOMType) && setTimeout(function() {
  7365. Y.onMouseUp(Q);
  7366. });
  7367. })), Y.addBaseSeriesEvents(), Y.addChartEvents();
  7368. }, _.prototype.getUnionExtremes = function(D) {
  7369. var j = this.chart.xAxis[0], T = this.xAxis, X = T.options, f = j.options, m;
  7370. return D && j.dataMin === null || (m = { dataMin: s(X && X.min, o("min", f.min, j.dataMin, T.dataMin, T.min)), dataMax: s(X && X.max, o("max", f.max, j.dataMax, T.dataMax, T.max)) }), m;
  7371. }, _.prototype.setBaseSeries = function(D, j) {
  7372. var T = this.chart, X = this.baseSeries = [];
  7373. D = D || T.options && T.options.navigator.baseSeries || (T.series.length ? c(
  7374. T.series,
  7375. function(f) {
  7376. return !f.options.isInternal;
  7377. }
  7378. ).index : 0), (T.series || []).forEach(function(f, m) {
  7379. f.options.isInternal || !f.options.showInNavigator && (m !== D && f.options.id !== D || f.options.showInNavigator === !1) || X.push(f);
  7380. }), this.xAxis && !this.xAxis.navigatorAxis.fake && this.updateNavigatorSeries(!0, j);
  7381. }, _.prototype.updateNavigatorSeries = function(D, j) {
  7382. var T = this, X = T.chart, f = T.baseSeries, m, L, Y = T.navigatorOptions.series, F, Q = {
  7383. enableMouseTracking: !1,
  7384. index: null,
  7385. linkedTo: null,
  7386. group: "nav",
  7387. padXAxis: !1,
  7388. xAxis: "navigator-x-axis",
  7389. yAxis: "navigator-y-axis",
  7390. showInLegend: !1,
  7391. stacking: void 0,
  7392. isInternal: !0,
  7393. states: { inactive: { opacity: 1 } }
  7394. }, k = T.series = (T.series || []).filter(function(G) {
  7395. var z = G.baseSeries;
  7396. return 0 > f.indexOf(z) ? (z && (t(z, "updatedData", T.updatedDataHandler), delete z.navigatorSeries), G.chart && G.destroy(), !1) : !0;
  7397. });
  7398. f && f.length && f.forEach(function(G) {
  7399. var z = G.navigatorSeries, V = a({ color: G.color, visible: G.visible }, p(Y) ? P.navigator.series : Y);
  7400. z && T.navigatorOptions.adaptToUpdatedData === !1 || (Q.name = "Navigator " + f.length, m = G.options || {}, F = m.navigatorOptions || {}, V.dataLabels = n(V.dataLabels), L = l(m, Q, V, F), L.pointRange = s(V.pointRange, F.pointRange, P.plotOptions[L.type || "line"].pointRange), V = F.data || V.data, T.hasNavigatorData = T.hasNavigatorData || !!V, L.data = V || m.data && m.data.slice(0), z && z.options ? z.update(L, j) : (G.navigatorSeries = X.initSeries(L), G.navigatorSeries.baseSeries = G, k.push(G.navigatorSeries)));
  7401. }), (Y.data && (!f || !f.length) || p(Y)) && (T.hasNavigatorData = !1, Y = n(Y), Y.forEach(function(G, z) {
  7402. Q.name = "Navigator " + (k.length + 1), L = l(
  7403. P.navigator.series,
  7404. { color: X.series[z] && !X.series[z].options.isInternal && X.series[z].color || X.options.colors[z] || X.options.colors[0] },
  7405. Q,
  7406. G
  7407. ), L.data = G.data, L.data && (T.hasNavigatorData = !0, k.push(X.initSeries(L)));
  7408. })), D && this.addBaseSeriesEvents();
  7409. }, _.prototype.addBaseSeriesEvents = function() {
  7410. var D = this, j = D.baseSeries || [];
  7411. j[0] && j[0].xAxis && j[0].eventsToUnbind.push(O(j[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes)), j.forEach(function(T) {
  7412. T.eventsToUnbind.push(O(T, "show", function() {
  7413. this.navigatorSeries && this.navigatorSeries.setVisible(
  7414. !0,
  7415. !1
  7416. );
  7417. })), T.eventsToUnbind.push(O(T, "hide", function() {
  7418. this.navigatorSeries && this.navigatorSeries.setVisible(!1, !1);
  7419. })), this.navigatorOptions.adaptToUpdatedData !== !1 && T.xAxis && T.eventsToUnbind.push(O(T, "updatedData", this.updatedDataHandler)), T.eventsToUnbind.push(O(T, "remove", function() {
  7420. this.navigatorSeries && (x(D.series, this.navigatorSeries), b(this.navigatorSeries.options) && this.navigatorSeries.remove(!1), delete this.navigatorSeries);
  7421. }));
  7422. }, this);
  7423. }, _.prototype.getBaseSeriesMin = function(D) {
  7424. return this.baseSeries.reduce(function(j, T) {
  7425. return Math.min(j, T.xData ? T.xData[0] : j);
  7426. }, D);
  7427. }, _.prototype.modifyNavigatorAxisExtremes = function() {
  7428. var D = this.xAxis, j;
  7429. typeof D.getExtremes < "u" && (!(j = this.getUnionExtremes(!0)) || j.dataMin === D.min && j.dataMax === D.max || (D.min = j.dataMin, D.max = j.dataMax));
  7430. }, _.prototype.modifyBaseAxisExtremes = function() {
  7431. var D = this.chart.navigator, j = this.getExtremes(), T = j.dataMin, X = j.dataMax;
  7432. j = j.max - j.min;
  7433. var f = D.stickToMin, m = D.stickToMax, L = s(this.options.overscroll, 0), Y = D.series && D.series[0], F = !!this.setExtremes;
  7434. if (!this.eventArgs || this.eventArgs.trigger !== "rangeSelectorButton") {
  7435. if (f)
  7436. var Q = T, k = Q + j;
  7437. m && (k = X + L, f || (Q = Math.max(T, k - j, D.getBaseSeriesMin(Y && Y.xData ? Y.xData[0] : -Number.MAX_VALUE)))), F && (f || m) && i(Q) && (this.min = this.userMin = Q, this.max = this.userMax = k);
  7438. }
  7439. D.stickToMin = D.stickToMax = null;
  7440. }, _.prototype.updatedDataHandler = function() {
  7441. var D = this.chart.navigator, j = this.navigatorSeries;
  7442. D.stickToMax = D.reversedExtremes ? Math.round(D.zoomedMin) === 0 : Math.round(D.zoomedMax) >= Math.round(D.size), D.stickToMin = D.shouldStickToMin(
  7443. this,
  7444. D
  7445. ), j && !D.hasNavigatorData && (j.options.pointStart = this.xData[0], j.setData(this.options.data, !1, null, !1));
  7446. }, _.prototype.shouldStickToMin = function(D, j) {
  7447. j = j.getBaseSeriesMin(D.xData[0]);
  7448. var T = D.xAxis;
  7449. D = T.max;
  7450. var X = T.min;
  7451. return T = T.options.range, i(D) && i(X) ? T && 0 < D - j ? D - j < T : X <= j : !1;
  7452. }, _.prototype.addChartEvents = function() {
  7453. this.eventsToUnbind || (this.eventsToUnbind = []), this.eventsToUnbind.push(O(this.chart, "redraw", function() {
  7454. var D = this.navigator, j = D && (D.baseSeries && D.baseSeries[0] && D.baseSeries[0].xAxis || this.xAxis[0]);
  7455. j && D.render(j.min, j.max);
  7456. }), O(this.chart, "getMargins", function() {
  7457. var D = this.navigator, j = D.opposite ? "plotTop" : "marginBottom";
  7458. this.inverted && (j = D.opposite ? "marginRight" : "plotLeft"), this[j] = (this[j] || 0) + (D.navigatorEnabled || !this.inverted ? D.outlineHeight : 0) + D.navigatorOptions.margin;
  7459. }));
  7460. }, _.prototype.destroy = function() {
  7461. 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) {
  7462. D.destroy && D.destroy();
  7463. }), "series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(D) {
  7464. this[D] && this[D].destroy && this[D].destroy(), this[D] = null;
  7465. }, this), [this.handles].forEach(function(D) {
  7466. M(D);
  7467. }, this);
  7468. }, _;
  7469. }();
  7470. return Z.Navigator || (Z.Navigator = A, H.compose(y), O(R, "beforeShowResetZoom", function() {
  7471. var _ = this.options, D = _.navigator, j = _.rangeSelector;
  7472. if ((D && D.enabled || j && j.enabled) && (!d && _.chart.zoomType === "x" || d && _.chart.pinchType === "x"))
  7473. return !1;
  7474. }), O(R, "beforeRender", function() {
  7475. var _ = this.options;
  7476. (_.navigator.enabled || _.scrollbar.enabled) && (this.scroller = this.navigator = new A(this));
  7477. }), O(R, "afterSetChartSize", function() {
  7478. var _ = this.legend, D = this.navigator;
  7479. if (D) {
  7480. var j = _ && _.options, T = D.xAxis, X = D.yAxis, f = D.scrollbarHeight;
  7481. this.inverted ? (D.left = D.opposite ? this.chartWidth - f - D.height : this.spacing[3] + f, D.top = this.plotTop + f) : (D.left = s(T.left, this.plotLeft + f), D.top = D.navigatorOptions.top || this.chartHeight - D.height - f - this.spacing[2] - (this.rangeSelector && this.extraBottomMargin ? this.rangeSelector.getHeight() : 0) - (j && j.verticalAlign === "bottom" && j.layout !== "proximate" && j.enabled && !j.floating ? _.legendHeight + s(j.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());
  7482. }
  7483. }), O(R, "update", function(_) {
  7484. var D = _.options.navigator || {}, j = _.options.scrollbar || {};
  7485. this.navigator || this.scroller || !D.enabled && !j.enabled || (l(
  7486. !0,
  7487. this.options.navigator,
  7488. D
  7489. ), l(!0, this.options.scrollbar, j), delete _.options.navigator, delete _.options.scrollbar);
  7490. }), O(R, "afterUpdate", function(_) {
  7491. 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));
  7492. }), O(R, "afterAddSeries", function() {
  7493. this.navigator && this.navigator.setBaseSeries(null, !1);
  7494. }), O(N, "afterUpdate", function() {
  7495. this.chart.navigator && !this.options.isInternal && this.chart.navigator.setBaseSeries(
  7496. null,
  7497. !1
  7498. );
  7499. }), R.prototype.callbacks.push(function(_) {
  7500. var D = _.navigator;
  7501. D && _.xAxis[0] && (_ = _.xAxis[0].getExtremes(), D.render(_.min, _.max));
  7502. })), Z.Navigator = A, Z.Navigator;
  7503. }), 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, R, I, Z, H, $) {
  7504. function U(n) {
  7505. if (n.indexOf("%L") !== -1)
  7506. return "text";
  7507. var o = "aAdewbBmoyY".split("").some(function(_) {
  7508. return n.indexOf("%" + _) !== -1;
  7509. }), A = "HkIlMS".split("").some(function(_) {
  7510. return n.indexOf("%" + _) !== -1;
  7511. });
  7512. return o && A ? "datetime-local" : o ? "date" : A ? "time" : "text";
  7513. }
  7514. var W = Z.defaultOptions, N = $.addEvent, w = $.createElement, v = $.css, u = $.defined, d = $.destroyObjectProperties, P = $.discardElement, O = $.extend, B = $.find, C = $.fireEvent, b = $.isNumber, M = $.merge, x = $.objectEach, a = $.pad, c = $.pick, p = $.pInt, i = $.splat;
  7515. O(W, { rangeSelector: { allButtonsEnabled: !1, buttons: void 0, buttonSpacing: 5, dropdown: "responsive", enabled: void 0, verticalAlign: "top", buttonTheme: {
  7516. width: 28,
  7517. height: 18,
  7518. padding: 2,
  7519. zIndex: 7
  7520. }, 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: "→" });
  7521. var l = function() {
  7522. function n(o) {
  7523. this.buttons = void 0, this.buttonOptions = n.prototype.defaultButtons, this.initialButtonGroupWidth = 0, this.options = void 0, this.chart = o, this.init(o);
  7524. }
  7525. return n.prototype.clickButton = function(o, A) {
  7526. var _ = this.chart, D = this.buttonOptions[o], j = _.xAxis[0], T = _.scroller && _.scroller.getUnionExtremes() || j || {}, X = T.dataMin, f = T.dataMax, m = j && Math.round(Math.min(j.max, c(f, j.max))), L = D.type;
  7527. T = D._range;
  7528. var Y, F = D.dataGrouping;
  7529. if (X !== null && f !== null) {
  7530. if (_.fixedRange = T, this.setSelected(o), F && (this.forcedDataGrouping = !0, y.prototype.setDataGrouping.call(j || { chart: this.chart }, F, !1), this.frozenStates = D.preserveDataGrouping), L === "month" || L === "year")
  7531. if (j) {
  7532. L = { range: D, max: m, chart: _, dataMin: X, dataMax: f };
  7533. var Q = j.minFromRange.call(L);
  7534. b(L.newMax) && (m = L.newMax);
  7535. } else
  7536. T = D;
  7537. else if (T)
  7538. Q = Math.max(m - T, X), m = Math.min(Q + T, f);
  7539. else if (L === "ytd")
  7540. if (j)
  7541. typeof f > "u" && (X = Number.MAX_VALUE, f = Number.MIN_VALUE, _.series.forEach(function(V) {
  7542. V = V.xData, X = Math.min(V[0], X), f = Math.max(V[V.length - 1], f);
  7543. }), A = !1), m = this.getYTDExtremes(
  7544. f,
  7545. X,
  7546. _.time.useUTC
  7547. ), Q = Y = m.min, m = m.max;
  7548. else {
  7549. this.deferredYTDClick = o;
  7550. return;
  7551. }
  7552. else
  7553. L === "all" && j && (_.navigator && _.navigator.baseSeries[0] && (_.navigator.baseSeries[0].xAxis.options.range = void 0), Q = X, m = f);
  7554. if (u(Q) && (Q += D._offsetMin), u(m) && (m += D._offsetMax), this.dropdown && (this.dropdown.selectedIndex = o + 1), j)
  7555. j.setExtremes(Q, m, c(A, !0), void 0, { trigger: "rangeSelectorButton", rangeSelectorButton: D });
  7556. else {
  7557. var k = i(_.options.xAxis)[0], G = k.range;
  7558. k.range = T;
  7559. var z = k.min;
  7560. k.min = Y, N(_, "load", function() {
  7561. k.range = G, k.min = z;
  7562. });
  7563. }
  7564. C(
  7565. this,
  7566. "afterBtnClick"
  7567. );
  7568. }
  7569. }, n.prototype.setSelected = function(o) {
  7570. this.selected = this.options.selected = o;
  7571. }, n.prototype.init = function(o) {
  7572. var A = this, _ = o.options.rangeSelector, D = _.buttons || A.defaultButtons.slice(), j = _.selected, T = function() {
  7573. var X = A.minInput, f = A.maxInput;
  7574. X && X.blur && C(X, "blur"), f && f.blur && C(f, "blur");
  7575. };
  7576. A.chart = o, A.options = _, A.buttons = [], A.buttonOptions = D, this.eventsToUnbind = [], this.eventsToUnbind.push(N(o.container, "mousedown", T)), this.eventsToUnbind.push(N(o, "resize", T)), D.forEach(A.computeButtonRange), typeof j < "u" && D[j] && this.clickButton(j, !1), this.eventsToUnbind.push(N(o, "load", function() {
  7577. o.xAxis && o.xAxis[0] && N(o.xAxis[0], "setExtremes", function(X) {
  7578. this.max - this.min !== o.fixedRange && X.trigger !== "rangeSelectorButton" && X.trigger !== "updatedData" && A.forcedDataGrouping && !A.frozenStates && this.setDataGrouping(!1, !1);
  7579. });
  7580. }));
  7581. }, n.prototype.updateButtonStates = function() {
  7582. var o = this, A = this.chart, _ = this.dropdown, D = A.xAxis[0], j = Math.round(D.max - D.min), T = !D.hasVisibleSeries, X = A.scroller && A.scroller.getUnionExtremes() || D, f = X.dataMin, m = X.dataMax;
  7583. A = o.getYTDExtremes(m, f, A.time.useUTC);
  7584. var L = A.min, Y = A.max, F = o.selected, Q = b(F), k = o.options.allButtonsEnabled, G = o.buttons;
  7585. o.buttonOptions.forEach(function(z, V) {
  7586. var q = z._range, it = z.type, et = z.count || 1, nt = G[V], rt = 0, ct = z._offsetMax - z._offsetMin;
  7587. z = V === F;
  7588. var gt = q > m - f, dt = q < D.minRange, lt = !1, at = !1;
  7589. q = q === j, (it === "month" || it === "year") && j + 36e5 >= 864e5 * { month: 28, year: 365 }[it] * et - ct && j - 36e5 <= 864e5 * { month: 31, year: 366 }[it] * et + ct ? q = !0 : it === "ytd" ? (q = Y - L + ct === j, lt = !z) : it === "all" && (q = D.max - D.min >= m - f, at = !z && Q && q), it = !k && (gt || dt || at || T), et = z && q || q && !Q && !lt || z && o.frozenStates, it ? rt = 3 : et && (Q = !0, rt = 2), nt.state !== rt && (nt.setState(rt), _ && (_.options[V + 1].disabled = it, rt === 2 && (_.selectedIndex = V + 1)), rt === 0 && F === V && o.setSelected());
  7590. });
  7591. }, n.prototype.computeButtonRange = function(o) {
  7592. var A = o.type, _ = o.count || 1, D = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5 };
  7593. D[A] ? o._range = D[A] * _ : (A === "month" || A === "year") && (o._range = 864e5 * { month: 30, year: 365 }[A] * _), o._offsetMin = c(o.offsetMin, 0), o._offsetMax = c(o.offsetMax, 0), o._range += o._offsetMax - o._offsetMin;
  7594. }, n.prototype.getInputValue = function(o) {
  7595. o = o === "min" ? this.minInput : this.maxInput;
  7596. var A = this.chart.options.rangeSelector, _ = this.chart.time;
  7597. return o ? (o.type === "text" && A.inputDateParser || this.defaultInputDateParser)(o.value, _.useUTC, _) : 0;
  7598. }, n.prototype.setInputValue = function(o, A) {
  7599. var _ = this.options, D = this.chart.time, j = o === "min" ? this.minInput : this.maxInput;
  7600. if (o = o === "min" ? this.minDateBox : this.maxDateBox, j) {
  7601. var T = j.getAttribute("data-hc-time");
  7602. T = u(T) ? Number(T) : void 0, u(A) && (u(T) && j.setAttribute("data-hc-time-previous", T), j.setAttribute("data-hc-time", A), T = A), j.value = D.dateFormat(this.inputTypeFormats[j.type] || _.inputEditDateFormat, T), o && o.attr({ text: D.dateFormat(_.inputDateFormat, T) });
  7603. }
  7604. }, n.prototype.setInputExtremes = function(o, A, _) {
  7605. if (o = o === "min" ? this.minInput : this.maxInput) {
  7606. var D = this.inputTypeFormats[o.type], j = this.chart.time;
  7607. D && (A = j.dateFormat(D, A), o.min !== A && (o.min = A), _ = j.dateFormat(D, _), o.max !== _ && (o.max = _));
  7608. }
  7609. }, n.prototype.showInput = function(o) {
  7610. var A = o === "min" ? this.minDateBox : this.maxDateBox;
  7611. if ((o = o === "min" ? this.minInput : this.maxInput) && A && this.inputGroup) {
  7612. var _ = o.type === "text", D = this.inputGroup, j = D.translateX;
  7613. D = D.translateY;
  7614. var T = this.options.inputBoxWidth;
  7615. v(o, { width: _ ? A.width + (T ? -2 : 20) + "px" : "auto", height: _ ? A.height - 2 + "px" : "auto", border: "2px solid silver" }), _ && T ? v(o, { left: j + A.x + "px", top: D + "px" }) : v(o, { left: Math.min(Math.round(A.x + j - (o.offsetWidth - A.width) / 2), this.chart.chartWidth - o.offsetWidth) + "px", top: D - (o.offsetHeight - A.height) / 2 + "px" });
  7616. }
  7617. }, n.prototype.hideInput = function(o) {
  7618. (o = o === "min" ? this.minInput : this.maxInput) && v(o, { top: "-9999em", border: 0, width: "1px", height: "1px" });
  7619. }, n.prototype.defaultInputDateParser = function(o, A, _) {
  7620. var D = o.split("/").join("-").split(" ").join("T");
  7621. if (D.indexOf("T") === -1 && (D += "T00:00"), A)
  7622. D += "Z";
  7623. else {
  7624. var j;
  7625. (j = I.isSafari) && (j = D, j = !(6 < j.length && (j.lastIndexOf("-") === j.length - 6 || j.lastIndexOf("+") === j.length - 6))), j && (j = new Date(D).getTimezoneOffset() / 60, D += 0 >= j ? "+" + a(-j) + ":00" : "-" + a(j) + ":00");
  7626. }
  7627. return D = Date.parse(D), b(D) || (o = o.split("-"), D = Date.UTC(p(o[0]), p(o[1]) - 1, p(o[2]))), _ && A && b(D) && (D += _.getTimezoneOffset(D)), D;
  7628. }, n.prototype.drawInput = function(o) {
  7629. function A() {
  7630. var k = T.getInputValue(o), G = _.xAxis[0], z = _.scroller && _.scroller.xAxis ? _.scroller.xAxis : G, V = z.dataMin;
  7631. z = z.dataMax;
  7632. var q = T.maxInput, it = T.minInput;
  7633. k !== Number(F.getAttribute("data-hc-time-previous")) && b(k) && (F.setAttribute("data-hc-time-previous", k), L && q && b(V) ? k > Number(q.getAttribute("data-hc-time")) ? k = void 0 : k < V && (k = V) : 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" }));
  7634. }
  7635. var _ = this.chart, D = this.div, j = this.inputGroup, T = this, X = _.renderer.style || {}, f = _.renderer, m = _.options.rangeSelector, L = o === "min", Y = W.lang[L ? "rangeSelectorFrom" : "rangeSelectorTo"] || "";
  7636. Y = f.label(Y, 0).addClass("highcharts-range-label").attr({ padding: Y ? 2 : 0, height: Y ? m.inputBoxHeight : 0 }).add(j), f = f.label("", 0).addClass("highcharts-range-input").attr({ padding: 2, width: m.inputBoxWidth, height: m.inputBoxHeight, "text-align": "center" }).on(
  7637. "click",
  7638. function() {
  7639. T.showInput(o), T[o + "Input"].focus();
  7640. }
  7641. ), _.styledMode || f.attr({ stroke: m.inputBoxBorderColor, "stroke-width": 1 }), f.add(j);
  7642. var F = w("input", { name: o, className: "highcharts-range-selector" }, void 0, D);
  7643. F.setAttribute("type", U(m.inputDateFormat || "%b %e, %Y")), _.styledMode || (Y.css(M(X, m.labelStyle)), f.css(M({ color: "#333333" }, X, m.inputStyle)), v(F, O({
  7644. position: "absolute",
  7645. border: 0,
  7646. boxShadow: "0 0 15px rgba(0,0,0,0.3)",
  7647. width: "1px",
  7648. height: "1px",
  7649. padding: 0,
  7650. textAlign: "center",
  7651. fontSize: X.fontSize,
  7652. fontFamily: X.fontFamily,
  7653. top: "-9999em"
  7654. }, m.inputStyle))), F.onfocus = function() {
  7655. T.showInput(o);
  7656. }, F.onblur = function() {
  7657. F === I.doc.activeElement && A(), T.hideInput(o), T.setInputValue(o), F.blur();
  7658. };
  7659. var Q = !1;
  7660. return F.onchange = function() {
  7661. Q || (A(), T.hideInput(o), F.blur());
  7662. }, F.onkeypress = function(k) {
  7663. k.keyCode === 13 && A();
  7664. }, F.onkeydown = function(k) {
  7665. Q = !0, k.keyCode !== 38 && k.keyCode !== 40 || A();
  7666. }, F.onkeyup = function() {
  7667. Q = !1;
  7668. }, { dateBox: f, input: F, label: Y };
  7669. }, n.prototype.getPosition = function() {
  7670. var o = this.chart, A = o.options.rangeSelector;
  7671. return o = A.verticalAlign === "top" ? o.plotTop - o.axisOffset[0] : 0, { buttonTop: o + A.buttonPosition.y, inputTop: o + A.inputPosition.y - 10 };
  7672. }, n.prototype.getYTDExtremes = function(o, A, _) {
  7673. var D = this.chart.time, j = new D.Date(o), T = D.get("FullYear", j);
  7674. return _ = _ ? D.Date.UTC(T, 0, 1) : +new D.Date(T, 0, 1), A = Math.max(A, _), j = j.getTime(), { max: Math.min(o || j, j), min: A };
  7675. }, n.prototype.render = function(o, A) {
  7676. var _ = this.chart, D = _.renderer, j = _.container, T = _.options, X = T.rangeSelector, f = c(T.chart.style && T.chart.style.zIndex, 0) + 1;
  7677. if (T = X.inputEnabled, X.enabled !== !1) {
  7678. if (this.rendered || (this.group = D.g("range-selector-group").attr({ zIndex: 7 }).add(), this.div = w("div", void 0, { position: "relative", height: 0, zIndex: f }), this.buttonOptions.length && this.renderButtons(), j.parentNode && j.parentNode.insertBefore(this.div, j), 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(
  7679. "min",
  7680. o
  7681. ), this.setInputValue("max", A), o = _.scroller && _.scroller.getUnionExtremes() || _.xAxis[0] || {}, u(o.dataMin) && u(o.dataMax) && (_ = _.xAxis[0].minRange || 0, this.setInputExtremes("min", o.dataMin, Math.min(o.dataMax, this.getInputValue("max")) - _), this.setInputExtremes("max", Math.max(o.dataMin, this.getInputValue("min")) + _, o.dataMax)), this.inputGroup)) {
  7682. var m = 0;
  7683. [this.minLabel, this.minDateBox, this.maxLabel, this.maxDateBox].forEach(function(L) {
  7684. if (L) {
  7685. var Y = L.getBBox().width;
  7686. Y && (L.attr({ x: m }), m += Y + X.inputSpacing);
  7687. }
  7688. });
  7689. }
  7690. this.alignElements(), this.rendered = !0;
  7691. }
  7692. }, n.prototype.renderButtons = function() {
  7693. var o = this, A = this.buttons, _ = this.options, D = W.lang, j = this.chart.renderer, T = M(_.buttonTheme), X = T && T.states, f = T.width || 28;
  7694. delete T.width, delete T.states, this.buttonGroup = j.g("range-selector-buttons").add(this.group);
  7695. var m = this.dropdown = w("select", void 0, { position: "absolute", width: "1px", height: "1px", padding: 0, border: 0, top: "-9999em", cursor: "pointer", opacity: 1e-4 }, this.div);
  7696. N(m, "touchstart", function() {
  7697. m.style.fontSize = "16px";
  7698. }), [[I.isMS ? "mouseover" : "mouseenter"], [I.isMS ? "mouseout" : "mouseleave"], ["change", "click"]].forEach(function(L) {
  7699. var Y = L[0], F = L[1];
  7700. N(m, Y, function() {
  7701. var Q = A[o.currentButtonIndex()];
  7702. Q && C(Q.element, F || Y);
  7703. });
  7704. }), this.zoomText = j.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)), w(
  7705. "option",
  7706. { textContent: this.zoomText.textStr, disabled: !0 },
  7707. void 0,
  7708. m
  7709. ), this.buttonOptions.forEach(function(L, Y) {
  7710. w("option", { textContent: L.title || L.text }, void 0, m), A[Y] = j.button(L.text, 0, 0, function(F) {
  7711. var Q = L.events && L.events.click, k;
  7712. Q && (k = Q.call(L, F)), k !== !1 && o.clickButton(Y), o.isActive = !0;
  7713. }, T, X && X.hover, X && X.select, X && X.disabled).attr({ "text-align": "center", width: f }).add(o.buttonGroup), L.title && A[Y].attr("title", L.title);
  7714. });
  7715. }, n.prototype.alignElements = function() {
  7716. var o = this, A = this.buttonGroup, _ = this.buttons, D = this.chart, j = this.group, T = this.inputGroup, X = this.options, f = this.zoomText, m = D.options, L = m.exporting && m.exporting.enabled !== !1 && m.navigation && m.navigation.buttonOptions;
  7717. m = X.buttonPosition;
  7718. var Y = X.inputPosition, F = X.verticalAlign, Q = function(V, q) {
  7719. return L && o.titleCollision(D) && F === "top" && q.align === "right" && q.y - V.getBBox().height - 12 < (L.y || 0) + (L.height || 0) + D.spacing[0] ? -40 : 0;
  7720. }, k = D.plotLeft;
  7721. if (j && m && Y) {
  7722. var G = m.x - D.spacing[3];
  7723. if (A) {
  7724. if (this.positionButtons(), !this.initialButtonGroupWidth) {
  7725. var z = 0;
  7726. f && (z += f.getBBox().width + 5), _.forEach(function(V, q) {
  7727. z += V.width, q !== _.length - 1 && (z += X.buttonSpacing);
  7728. }), this.initialButtonGroupWidth = z;
  7729. }
  7730. k -= D.spacing[3], this.updateButtonStates(), f = Q(A, m), this.alignButtonGroup(f), j.placed = A.placed = D.hasLoaded;
  7731. }
  7732. 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), j.align({ verticalAlign: F }, !0, D.spacingBox), T = j.alignAttr.translateY, A = j.getBBox().height + 20, Q = 0, F === "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), F === "top" ? (X.floating && (Q = 0), D.titleOffset && D.titleOffset[0] && (Q = D.titleOffset[0]), Q += D.margin[0] - D.spacing[0] || 0) : F === "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)), j.translate(X.x, X.y + Math.floor(Q)), m = this.minInput, Y = this.maxInput, T = this.dropdown, X.inputEnabled && m && Y && (m.style.marginTop = j.translateY + "px", Y.style.marginTop = j.translateY + "px"), T && (T.style.marginTop = j.translateY + "px");
  7733. }
  7734. }, n.prototype.alignButtonGroup = function(o, A) {
  7735. var _ = this.chart, D = this.buttonGroup, j = this.options.buttonPosition, T = _.plotLeft - _.spacing[3], X = j.x - _.spacing[3];
  7736. j.align === "right" ? X += o - T : j.align === "center" && (X -= T / 2), D && D.align({ y: j.y, width: c(A, this.initialButtonGroupWidth), align: j.align, x: X }, !0, _.spacingBox);
  7737. }, n.prototype.positionButtons = function() {
  7738. var o = this.buttons, A = this.chart, _ = this.options, D = this.zoomText, j = A.hasLoaded ? "animate" : "attr", T = _.buttonPosition, X = A.plotLeft, f = X;
  7739. D && D.visibility !== "hidden" && (D[j]({ x: c(X + T.x, X) }), f += T.x + D.getBBox().width + 5), this.buttonOptions.forEach(function(m, L) {
  7740. o[L].visibility !== "hidden" ? (o[L][j]({ x: f }), f += o[L].width + _.buttonSpacing) : o[L][j]({ x: X });
  7741. });
  7742. }, n.prototype.handleCollision = function(o) {
  7743. var A = this, _ = this.chart, D = this.buttonGroup, j = this.inputGroup, T = this.options, X = T.buttonPosition, f = T.dropdown, m = T.inputPosition;
  7744. T = function() {
  7745. var F = 0;
  7746. return A.buttons.forEach(function(Q) {
  7747. Q = Q.getBBox(), Q.width > F && (F = Q.width);
  7748. }), F;
  7749. };
  7750. var L = function(F) {
  7751. if (j && D) {
  7752. var Q = j.alignAttr.translateX + j.alignOptions.x - o + j.getBBox().x + 2, k = j.alignOptions.width, G = D.alignAttr.translateX + D.getBBox().x;
  7753. return G + F > Q && Q + k > G && X.y < m.y + j.getBBox().height;
  7754. }
  7755. return !1;
  7756. }, Y = function() {
  7757. j && D && j.attr({ translateX: j.alignAttr.translateX + (_.axisOffset[1] >= -o ? 0 : -o), translateY: j.alignAttr.translateY + D.getBBox().height + 10 });
  7758. };
  7759. if (D) {
  7760. if (f === "always") {
  7761. this.collapseButtons(o), L(T()) && Y();
  7762. return;
  7763. }
  7764. f === "never" && this.expandButtons();
  7765. }
  7766. j && D ? m.align === X.align || L(this.initialButtonGroupWidth + 20) ? f === "responsive" ? (this.collapseButtons(o), L(T()) && Y()) : Y() : f === "responsive" && this.expandButtons() : D && f === "responsive" && (this.initialButtonGroupWidth > _.plotWidth ? this.collapseButtons(o) : this.expandButtons());
  7767. }, n.prototype.collapseButtons = function(o) {
  7768. var A = this.buttons, _ = this.buttonOptions, D = this.chart, j = this.dropdown, T = this.options, X = this.zoomText, f = D.userOptions.rangeSelector && D.userOptions.rangeSelector.buttonTheme || {}, m = function(Y) {
  7769. return { text: Y ? Y + " ▾" : "▾", width: "auto", paddingLeft: c(T.buttonTheme.paddingLeft, f.padding, 8), paddingRight: c(T.buttonTheme.paddingRight, f.padding, 8) };
  7770. };
  7771. X && X.hide();
  7772. var L = !1;
  7773. _.forEach(function(Y, F) {
  7774. F = A[F], F.state !== 2 ? F.hide() : (F.show(), F.attr(m(Y.text)), L = !0);
  7775. }), L || (j && (j.selectedIndex = 0), A[0].show(), A[0].attr(m(this.zoomText && this.zoomText.textStr))), _ = T.buttonPosition.align, this.positionButtons(), _ !== "right" && _ !== "center" || this.alignButtonGroup(o, A[this.currentButtonIndex()].getBBox().width), this.showDropdown();
  7776. }, n.prototype.expandButtons = function() {
  7777. var o = this.buttons, A = this.buttonOptions, _ = this.options, D = this.zoomText;
  7778. this.hideDropdown(), D && D.show(), A.forEach(function(j, T) {
  7779. T = o[T], T.show(), T.attr({ text: j.text, width: _.buttonTheme.width || 28, paddingLeft: c(_.buttonTheme.paddingLeft, "unset"), paddingRight: c(_.buttonTheme.paddingRight, "unset") }), 2 > T.state && T.setState(0);
  7780. }), this.positionButtons();
  7781. }, n.prototype.currentButtonIndex = function() {
  7782. var o = this.dropdown;
  7783. return o && 0 < o.selectedIndex ? o.selectedIndex - 1 : 0;
  7784. }, n.prototype.showDropdown = function() {
  7785. var o = this.buttonGroup, A = this.buttons, _ = this.chart, D = this.dropdown;
  7786. if (o && D) {
  7787. var j = o.translateX;
  7788. o = o.translateY, A = A[this.currentButtonIndex()].getBBox(), v(D, { left: _.plotLeft + j + "px", top: o + 0.5 + "px", width: A.width + "px", height: A.height + "px" }), this.hasVisibleDropdown = !0;
  7789. }
  7790. }, n.prototype.hideDropdown = function() {
  7791. var o = this.dropdown;
  7792. o && (v(o, { top: "-9999em", width: "1px", height: "1px" }), this.hasVisibleDropdown = !1);
  7793. }, n.prototype.getHeight = function() {
  7794. var o = this.options, A = this.group, _ = o.y, D = o.buttonPosition.y, j = o.inputPosition.y;
  7795. return o.height ? o.height : (this.alignElements(), o = A ? A.getBBox(!0).height + 13 + _ : 0, A = Math.min(j, D), (0 > j && 0 > D || 0 < j && 0 < D) && (o += Math.abs(A)), o);
  7796. }, n.prototype.titleCollision = function(o) {
  7797. return !(o.options.title.text || o.options.subtitle.text);
  7798. }, n.prototype.update = function(o) {
  7799. var A = this.chart;
  7800. M(!0, A.options.rangeSelector, o), this.destroy(), this.init(A), this.render();
  7801. }, n.prototype.destroy = function() {
  7802. var o = this, A = o.minInput, _ = o.maxInput;
  7803. o.eventsToUnbind && (o.eventsToUnbind.forEach(function(D) {
  7804. return D();
  7805. }), o.eventsToUnbind = void 0), d(o.buttons), A && (A.onfocus = A.onblur = A.onchange = null), _ && (_.onfocus = _.onblur = _.onchange = null), x(o, function(D, j) {
  7806. D && j !== "chart" && (D instanceof H ? D.destroy() : D instanceof window.HTMLElement && P(D)), D !== n.prototype[j] && (o[j] = null);
  7807. }, this);
  7808. }, n;
  7809. }();
  7810. if (l.prototype.defaultButtons = [
  7811. { type: "month", count: 1, text: "1m", title: "View 1 month" },
  7812. { type: "month", count: 3, text: "3m", title: "View 3 months" },
  7813. { type: "month", count: 6, text: "6m", title: "View 6 months" },
  7814. { type: "ytd", text: "YTD", title: "View year to date" },
  7815. { type: "year", count: 1, text: "1y", title: "View 1 year" },
  7816. { type: "all", text: "All", title: "View all" }
  7817. ], l.prototype.inputTypeFormats = { "datetime-local": "%Y-%m-%dT%H:%M:%S", date: "%Y-%m-%d", time: "%H:%M:%S" }, y.prototype.minFromRange = function() {
  7818. var n = this.range, o = n.type, A = this.max, _ = this.chart.time, D = function(f, m) {
  7819. var L = o === "year" ? "FullYear" : "Month", Y = new _.Date(f), F = _.get(L, Y);
  7820. return _.set(L, Y, F + m), F === _.get(L, Y) && _.set("Date", Y, 0), Y.getTime() - f;
  7821. };
  7822. if (b(n))
  7823. var j = A - n, T = n;
  7824. else
  7825. j = A + D(A, -n.count), this.chart && (this.chart.fixedRange = A - j);
  7826. var X = c(this.dataMin, Number.MIN_VALUE);
  7827. return b(j) || (j = X), j <= X && (j = X, typeof T > "u" && (T = D(j, n.count)), this.newMax = Math.min(j + T, this.dataMax)), b(A) || (j = void 0), j;
  7828. }, !I.RangeSelector) {
  7829. var s = [], t = function(n) {
  7830. function o() {
  7831. _ && (A = n.xAxis[0].getExtremes(), D = n.legend, T = _ && _.options.verticalAlign, b(A.min) && _.render(A.min, A.max), D.display && T === "top" && T === D.options.verticalAlign && (j = M(n.spacingBox), j.y = D.options.layout === "vertical" ? n.plotTop : j.y + _.getHeight(), D.group.placed = !1, D.align(j)));
  7832. }
  7833. var A, _ = n.rangeSelector, D, j, T;
  7834. _ && (B(s, function(X) {
  7835. return X[0] === n;
  7836. }) || s.push([n, [N(n.xAxis[0], "afterSetExtremes", function(X) {
  7837. _ && _.render(X.min, X.max);
  7838. }), N(n, "redraw", o)]]), o());
  7839. };
  7840. N(R, "afterGetContainer", function() {
  7841. this.options.rangeSelector && this.options.rangeSelector.enabled && (this.rangeSelector = new l(this));
  7842. }), N(R, "beforeRender", function() {
  7843. var n = this.axes, o = this.rangeSelector;
  7844. o && (b(o.deferredYTDClick) && (o.clickButton(o.deferredYTDClick), delete o.deferredYTDClick), n.forEach(function(A) {
  7845. A.updateNames(), A.setScale();
  7846. }), this.getAxisMargins(), o.render(), n = o.options.verticalAlign, o.options.floating || (n === "bottom" ? this.extraBottomMargin = !0 : n !== "middle" && (this.extraTopMargin = !0)));
  7847. }), N(R, "update", function(n) {
  7848. var o = n.options.rangeSelector;
  7849. n = this.rangeSelector;
  7850. var A = this.extraBottomMargin, _ = this.extraTopMargin;
  7851. o && o.enabled && !u(n) && this.options.rangeSelector && (this.options.rangeSelector.enabled = !0, this.rangeSelector = n = new l(this)), this.extraTopMargin = this.extraBottomMargin = !1, n && (t(this), o = o && o.verticalAlign || n.options && n.options.verticalAlign, n.options.floating || (o === "bottom" ? this.extraBottomMargin = !0 : o !== "middle" && (this.extraTopMargin = !0)), this.extraBottomMargin !== A || this.extraTopMargin !== _) && (this.isDirtyBox = !0);
  7852. }), N(R, "render", function() {
  7853. var n = this.rangeSelector;
  7854. n && !n.options.floating && (n.render(), n = n.options.verticalAlign, n === "bottom" ? this.extraBottomMargin = !0 : n !== "middle" && (this.extraTopMargin = !0));
  7855. }), N(R, "getMargins", function() {
  7856. var n = this.rangeSelector;
  7857. n && (n = n.getHeight(), this.extraTopMargin && (this.plotTop += n), this.extraBottomMargin && (this.marginBottom += n));
  7858. }), R.prototype.callbacks.push(t), N(R, "destroy", function() {
  7859. for (var n = 0; n < s.length; n++) {
  7860. var o = s[n];
  7861. if (o[0] === this) {
  7862. o[1].forEach(function(A) {
  7863. return A();
  7864. }), s.splice(n, 1);
  7865. break;
  7866. }
  7867. }
  7868. }), I.RangeSelector = l;
  7869. }
  7870. return l;
  7871. }), E(
  7872. h,
  7873. "Core/Chart/StockChart.js",
  7874. [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"]],
  7875. function(y, R, I, Z, H, $, U, W) {
  7876. function N(p, i) {
  7877. 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 } } : {};
  7878. }
  7879. function w(p, i) {
  7880. if (p === "xAxis") {
  7881. p = d();
  7882. var l = { type: "datetime", categories: void 0 };
  7883. return a(i.navigator && i.navigator.enabled, p.navigator.enabled, !0) && (l.startOnTick = !1, l.endOnTick = !1), l;
  7884. }
  7885. return {};
  7886. }
  7887. var v = this && this.__extends || function() {
  7888. var p = function(i, l) {
  7889. return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, t) {
  7890. s.__proto__ = t;
  7891. } || function(s, t) {
  7892. for (var n in t)
  7893. t.hasOwnProperty(n) && (s[n] = t[n]);
  7894. }, p(i, l);
  7895. };
  7896. return function(i, l) {
  7897. function s() {
  7898. this.constructor = i;
  7899. }
  7900. p(i, l), i.prototype = l === null ? Object.create(l) : (s.prototype = l.prototype, new s());
  7901. };
  7902. }(), u = Z.format, d = H.getOptions;
  7903. y = W.addEvent;
  7904. var P = W.clamp, O = W.defined, B = W.extend, C = W.find, b = W.isNumber, M = W.isString, x = W.merge, a = W.pick, c = W.splat;
  7905. return W = function(p) {
  7906. function i() {
  7907. return p !== null && p.apply(this, arguments) || this;
  7908. }
  7909. return v(i, p), i.prototype.init = function(l, s) {
  7910. var t = d(), n = l.xAxis, o = l.yAxis, A = a(l.navigator && l.navigator.enabled, t.navigator.enabled, !0);
  7911. 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 = n, l.yAxis = o, A.xAxis = c(l.xAxis || {}).map(function(_, D) {
  7912. return x(N("xAxis", _), t.xAxis, t.xAxis && t.xAxis[D], _, w("xAxis", l));
  7913. }), A.yAxis = c(l.yAxis || {}).map(function(_, D) {
  7914. return x(N("yAxis", _), t.yAxis, t.yAxis && t.yAxis[D], _);
  7915. }), p.prototype.init.call(this, A, s);
  7916. }, i.prototype.createAxis = function(l, s) {
  7917. return s.axis = x(N(l, s.axis), s.axis, w(l, this.userOptions)), p.prototype.createAxis.call(this, l, s);
  7918. }, i;
  7919. }(I), function(p) {
  7920. p.stockChart = function(i, l, s) {
  7921. return new p(i, l, s);
  7922. };
  7923. }(W || (W = {})), y($, "setOptions", function(p) {
  7924. var i;
  7925. 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)));
  7926. }), y(R, "autoLabelAlign", function(p) {
  7927. var i = this.chart, l = this.options;
  7928. i = i._labelPanes = i._labelPanes || {};
  7929. var s = this.options.labels;
  7930. 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()));
  7931. }), y(R, "destroy", function() {
  7932. var p = this.chart, i = this.options && this.options.top + "," + this.options.height;
  7933. i && p._labelPanes && p._labelPanes[i] === this && delete p._labelPanes[i];
  7934. }), y(R, "getPlotLinePath", function(p) {
  7935. function i(G) {
  7936. var z = G === "xAxis" ? "yAxis" : "xAxis";
  7937. return G = l.options[z], b(G) ? [t[z][G]] : M(G) ? [t.get(G)] : s.map(function(V) {
  7938. return V[z];
  7939. });
  7940. }
  7941. var l = this, s = this.isLinked && !this.series ? this.linkedParent.series : this.series, t = l.chart, n = t.renderer, o = l.left, A = l.top, _, D, j, T, X = [], f = [], m = p.translatedValue, L = p.value, Y = p.force;
  7942. if (t.options.isStock && p.acrossPanes !== !1 && l.coll === "xAxis" || l.coll === "yAxis") {
  7943. p.preventDefault(), f = i(l.coll);
  7944. var F = l.isXAxis ? t.yAxis : t.xAxis;
  7945. F.forEach(function(G) {
  7946. if (!O(G.options.id) || G.options.id.indexOf("navigator") === -1) {
  7947. var z = G.isXAxis ? "yAxis" : "xAxis";
  7948. z = O(G.options[z]) ? t[z][G.options[z]] : t[z][0], l === z && f.push(G);
  7949. }
  7950. });
  7951. var Q = f.length ? [] : [l.isXAxis ? t.yAxis[0] : t.xAxis[0]];
  7952. f.forEach(function(G) {
  7953. Q.indexOf(G) !== -1 || C(Q, function(z) {
  7954. return z.pos === G.pos && z.len === G.len;
  7955. }) || Q.push(G);
  7956. });
  7957. var k = a(m, l.translate(L, null, null, p.old));
  7958. b(k) && (l.horiz ? Q.forEach(function(G) {
  7959. var z;
  7960. D = G.pos, T = D + G.len, _ = j = Math.round(k + l.transB), Y !== "pass" && (_ < o || _ > o + l.width) && (Y ? _ = j = P(_, o, o + l.width) : z = !0), z || X.push(["M", _, D], ["L", j, T]);
  7961. }) : Q.forEach(function(G) {
  7962. var z;
  7963. _ = G.pos, j = _ + 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", j, T]);
  7964. })), p.path = 0 < X.length ? n.crispPolyLine(X, p.lineWidth || 1) : null;
  7965. }
  7966. }), U.prototype.crispPolyLine = function(p, i) {
  7967. for (var l = 0; l < p.length; l += 2) {
  7968. var s = p[l], t = p[l + 1];
  7969. 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);
  7970. }
  7971. return p;
  7972. }, y(R, "afterHideCrosshair", function() {
  7973. this.crossLabel && (this.crossLabel = this.crossLabel.hide());
  7974. }), y(R, "afterDrawCrosshair", function(p) {
  7975. var i, l;
  7976. if (this.crosshair && this.crosshair.label && this.crosshair.label.enabled && this.cross && b(this.min) && b(this.max)) {
  7977. var s = this.chart, t = this.logarithmic, n = this.crosshair.label, o = this.horiz, A = this.opposite, _ = this.left, D = this.top, j = this.crossLabel, T = n.format, X = "", f = this.options.tickPosition === "inside", m = this.crosshair.snap !== !1, L = 0, Y = p.e || this.cross && this.cross.e;
  7978. p = p.point;
  7979. var F = this.min, Q = this.max;
  7980. t && (F = t.lin2log(F), Q = t.lin2log(Q)), t = o ? "center" : A ? this.labelAlign === "right" ? "right" : "left" : this.labelAlign === "left" ? "left" : "center", j || (j = this.crossLabel = s.renderer.label("", 0, void 0, n.shape || "callout").addClass("highcharts-crosshair-label highcharts-color-" + (p ? p.series.colorIndex : this.series[0] && this.series[0].colorIndex)).attr({ align: n.align || t, padding: a(n.padding, 8), r: a(n.borderRadius, 3), zIndex: 2 }).add(this.labelGroup), s.styledMode || j.attr({ fill: n.backgroundColor || p && p.series && p.series.color || "#666666", stroke: n.borderColor || "", "stroke-width": n.borderWidth || 0 }).css(B({ color: "#ffffff", fontWeight: "normal", fontSize: "11px", textAlign: "center" }, n.style || {}))), o ? (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 || n.formatter || (this.dateTime && (X = "%b %d, %Y"), T = "{value" + (X ? ":" + X : "") + "}"), X = m ? this.isXAxis ? p.x : p.y : this.toValue(o ? Y.chartX : Y.chartY), m = p ? p.series.isPointInside(p) : b(X) && X > F && X < Q, Y = "", T ? Y = u(T, { value: X }, s) : n.formatter && b(X) && (Y = n.formatter.call(this, X)), j.attr({ text: Y, x: t, y: D, visibility: m ? "visible" : "hidden" }), n = j.getBBox(), b(j.y) && (o ? (f && !A || !f && A) && (D = j.y - n.height) : D = j.y - n.height / 2), o ? (i = _ - n.x, l = _ + this.width - n.x) : (i = this.labelAlign === "left" ? _ : 0, l = this.labelAlign === "right" ? _ + this.width : s.chartWidth), j.translateX < i && (L = i - j.translateX), j.translateX + n.width >= l && (L = -(j.translateX + n.width - l)), j.attr({ x: t + L, y: D, anchorX: o ? t : this.opposite ? 0 : s.chartWidth, anchorY: o ? this.opposite ? s.chartHeight : 0 : D + n.height / 2 });
  7981. }
  7982. }), $.prototype.forceCropping = function() {
  7983. var p = this.chart, i = this.options.dataGrouping;
  7984. return this.allowDG !== !1 && i && a(i.enabled, p.options.isStock);
  7985. }, y(I, "update", function(p) {
  7986. p = p.options, "scrollbar" in p && this.navigator && (x(!0, this.options.scrollbar, p.scrollbar), this.navigator.update({}, !1), delete p.scrollbar);
  7987. }), W;
  7988. }
  7989. ), E(h, "masters/modules/stock.src.js", [
  7990. h["Core/Globals.js"],
  7991. h["Core/Axis/OrdinalAxis.js"],
  7992. h["Series/DataModifyComposition.js"],
  7993. h["Core/Scrollbar.js"],
  7994. h["Core/Chart/StockChart.js"]
  7995. ], function(y, R, I, Z, H) {
  7996. y.Scrollbar = Z, y.StockChart = y.stockChart = H.stockChart, Z.compose(y.Axis), R.compose(y.Axis, y.Series, y.Chart), I.compose(y.Series, y.Axis, y.Point);
  7997. }), E(h, "masters/highstock.src.js", [h["masters/highcharts.src.js"]], function(y) {
  7998. return y.product = "Highstock", y;
  7999. }), h["masters/highstock.src.js"]._modules = h, h["masters/highstock.src.js"];
  8000. });
  8001. })(zp);
  8002. var P0 = zp.exports;
  8003. const Sn = /* @__PURE__ */ Cn(P0);
  8004. var Yp = { exports: {} };
  8005. (function(r) {
  8006. (function(g, E) {
  8007. r.exports ? (E.default = E, r.exports = g.document ? E(g) : E) : (g.Highcharts && g.Highcharts.error(16, !0), g.Highcharts = E(g));
  8008. })(typeof window < "u" ? window : Hr, function(g) {
  8009. function E(y, R, I, Z) {
  8010. y.hasOwnProperty(R) || (y[R] = Z.apply(null, I));
  8011. }
  8012. var h = {};
  8013. return E(h, "Core/Globals.js", [], function() {
  8014. var y = typeof g < "u" ? g : typeof window < "u" ? window : {}, R;
  8015. return function(I) {
  8016. 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() {
  8017. }, I.supportsPassiveEvents = function() {
  8018. var Z = !1;
  8019. if (!I.isMS) {
  8020. var H = Object.defineProperty({}, "passive", { get: function() {
  8021. Z = !0;
  8022. } });
  8023. I.win.addEventListener && I.win.removeEventListener && (I.win.addEventListener(
  8024. "testPassive",
  8025. I.noop,
  8026. H
  8027. ), I.win.removeEventListener("testPassive", I.noop, H));
  8028. }
  8029. return Z;
  8030. }(), I.charts = [], I.dateFormats = {}, I.seriesTypes = {}, I.symbolSizes = {}, I.chartCount = 0;
  8031. }(R || (R = {})), R;
  8032. }), E(h, "Core/Utilities.js", [h["Core/Globals.js"]], function(y) {
  8033. function R(t, n, o, A) {
  8034. var _ = n ? "Highcharts error" : "Highcharts warning";
  8035. t === 32 && (t = _ + ": Deprecated member");
  8036. var D = w(t), j = D ? _ + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  8037. if (typeof A < "u") {
  8038. var T = "";
  8039. D && (j += "?"), b(A, function(X, f) {
  8040. T += `
  8041. - ` + f + ": " + X, D && (j += encodeURI(f) + "=" + encodeURI(X));
  8042. }), j += T;
  8043. }
  8044. x(y, "displayError", { chart: o, code: t, message: j, params: A }, function() {
  8045. if (n)
  8046. throw Error(j);
  8047. p.console && R.messages.indexOf(j) === -1 && console.warn(j);
  8048. }), R.messages.push(j);
  8049. }
  8050. function I(t, n) {
  8051. var o = {};
  8052. return b(t, function(A, _) {
  8053. U(t[_], !0) && !t.nodeType && n[_] ? (A = I(t[_], n[_]), Object.keys(A).length && (o[_] = A)) : (U(t[_]) || t[_] !== n[_]) && (o[_] = t[_]);
  8054. }), o;
  8055. }
  8056. function Z(t, n) {
  8057. return parseInt(t, n || 10);
  8058. }
  8059. function H(t) {
  8060. return typeof t == "string";
  8061. }
  8062. function $(t) {
  8063. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  8064. }
  8065. function U(t, n) {
  8066. return !!t && typeof t == "object" && (!n || !$(t));
  8067. }
  8068. function W(t) {
  8069. return U(t) && typeof t.nodeType == "number";
  8070. }
  8071. function N(t) {
  8072. var n = t && t.constructor;
  8073. return !(!U(t, !0) || W(t) || !n || !n.name || n.name === "Object");
  8074. }
  8075. function w(t) {
  8076. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  8077. }
  8078. function v(t) {
  8079. return typeof t < "u" && t !== null;
  8080. }
  8081. function u(t, n, o) {
  8082. var A;
  8083. return H(n) ? v(o) ? t.setAttribute(n, o) : t && t.getAttribute && ((A = t.getAttribute(n)) || n !== "class" || (A = t.getAttribute(n + "Name"))) : b(n, function(_, D) {
  8084. v(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  8085. }), A;
  8086. }
  8087. function d(t, n) {
  8088. var o;
  8089. t || (t = {});
  8090. for (o in n)
  8091. t[o] = n[o];
  8092. return t;
  8093. }
  8094. function P() {
  8095. for (var t = arguments, n = t.length, o = 0; o < n; o++) {
  8096. var A = t[o];
  8097. if (typeof A < "u" && A !== null)
  8098. return A;
  8099. }
  8100. }
  8101. function O(t, n) {
  8102. y.isMS && !y.svg && n && typeof n.opacity < "u" && (n.filter = "alpha(opacity=" + 100 * n.opacity + ")"), d(t.style, n);
  8103. }
  8104. function B(t, n) {
  8105. return 1e14 < t ? t : parseFloat(t.toPrecision(n || 14));
  8106. }
  8107. function C(t, n, o) {
  8108. var A = y.getStyle || C;
  8109. if (n === "width")
  8110. return n = Math.min(t.offsetWidth, t.scrollWidth), o = t.getBoundingClientRect && t.getBoundingClientRect().width, o < n && o >= n - 1 && (n = Math.floor(o)), Math.max(0, n - (A(t, "padding-left", !0) || 0) - (A(t, "padding-right", !0) || 0));
  8111. if (n === "height")
  8112. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (A(t, "padding-top", !0) || 0) - (A(t, "padding-bottom", !0) || 0));
  8113. if (p.getComputedStyle || R(27, !0), t = p.getComputedStyle(t, void 0)) {
  8114. var _ = t.getPropertyValue(n);
  8115. P(o, n !== "opacity") && (_ = Z(_));
  8116. }
  8117. return _;
  8118. }
  8119. function b(t, n, o) {
  8120. for (var A in t)
  8121. Object.hasOwnProperty.call(t, A) && n.call(o || t[A], t[A], A, t);
  8122. }
  8123. function M(t, n, o) {
  8124. function A(T, X) {
  8125. var f = t.removeEventListener || y.removeEventListenerPolyfill;
  8126. f && f.call(t, T, X, !1);
  8127. }
  8128. function _(T) {
  8129. var X;
  8130. if (t.nodeName) {
  8131. if (n) {
  8132. var f = {};
  8133. f[n] = !0;
  8134. } else
  8135. f = T;
  8136. b(f, function(m, L) {
  8137. if (T[L])
  8138. for (X = T[L].length; X--; )
  8139. A(L, T[L][X].fn);
  8140. });
  8141. }
  8142. }
  8143. var D = typeof t == "function" && t.prototype || t;
  8144. if (Object.hasOwnProperty.call(D, "hcEvents")) {
  8145. var j = D.hcEvents;
  8146. n ? (D = j[n] || [], o ? (j[n] = D.filter(function(T) {
  8147. return o !== T.fn;
  8148. }), A(n, o)) : (_(j), j[n] = [])) : (_(j), delete D.hcEvents);
  8149. }
  8150. }
  8151. function x(t, n, o, A) {
  8152. if (o = o || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  8153. var _ = c.createEvent("Events");
  8154. _.initEvent(n, !0, !0), o = d(_, o), t.dispatchEvent ? t.dispatchEvent(o) : t.fireEvent(n, o);
  8155. } else if (t.hcEvents) {
  8156. o.target || d(o, { preventDefault: function() {
  8157. o.defaultPrevented = !0;
  8158. }, target: t, type: n }), _ = [];
  8159. for (var D = t, j = !1; D.hcEvents; )
  8160. Object.hasOwnProperty.call(D, "hcEvents") && D.hcEvents[n] && (_.length && (j = !0), _.unshift.apply(_, D.hcEvents[n])), D = Object.getPrototypeOf(D);
  8161. j && _.sort(function(T, X) {
  8162. return T.order - X.order;
  8163. }), _.forEach(function(T) {
  8164. T.fn.call(t, o) === !1 && o.preventDefault();
  8165. });
  8166. }
  8167. A && !o.defaultPrevented && A.call(t, o);
  8168. }
  8169. var a = y.charts, c = y.doc, p = y.win;
  8170. (R || (R = {})).messages = [], Math.easeInOutSine = function(t) {
  8171. return -0.5 * (Math.cos(Math.PI * t) - 1);
  8172. };
  8173. var i = Array.prototype.find ? function(t, n) {
  8174. return t.find(n);
  8175. } : function(t, n) {
  8176. var o, A = t.length;
  8177. for (o = 0; o < A; o++)
  8178. if (n(t[o], o))
  8179. return t[o];
  8180. };
  8181. b({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, n) {
  8182. y[n] = function(o) {
  8183. var A;
  8184. return R(32, !1, void 0, (A = {}, A["Highcharts." + n] = "use Array." + t, A)), Array.prototype[t].apply(o, [].slice.call(arguments, 1));
  8185. };
  8186. });
  8187. var l, s = function() {
  8188. var t = Math.random().toString(36).substring(2, 9) + "-", n = 0;
  8189. return function() {
  8190. return "highcharts-" + (l ? "" : t) + n++;
  8191. };
  8192. }();
  8193. return p.jQuery && (p.jQuery.fn.highcharts = function() {
  8194. var t = [].slice.call(arguments);
  8195. if (this[0])
  8196. return t[0] ? (new y[H(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : a[u(this[0], "data-highcharts-chart")];
  8197. }), i = { addEvent: function(t, n, o, A) {
  8198. A === void 0 && (A = {});
  8199. var _ = typeof t == "function" && t.prototype || t;
  8200. Object.hasOwnProperty.call(_, "hcEvents") || (_.hcEvents = {}), _ = _.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  8201. var D = t.addEventListener || y.addEventListenerPolyfill;
  8202. return D && D.call(t, n, o, y.supportsPassiveEvents ? { passive: A.passive === void 0 ? n.indexOf("touch") !== -1 : A.passive, capture: !1 } : !1), _[n] || (_[n] = []), _[n].push({ fn: o, order: typeof A.order == "number" ? A.order : 1 / 0 }), _[n].sort(function(j, T) {
  8203. return j.order - T.order;
  8204. }), function() {
  8205. M(t, n, o);
  8206. };
  8207. }, arrayMax: function(t) {
  8208. for (var n = t.length, o = t[0]; n--; )
  8209. t[n] > o && (o = t[n]);
  8210. return o;
  8211. }, arrayMin: function(t) {
  8212. for (var n = t.length, o = t[0]; n--; )
  8213. t[n] < o && (o = t[n]);
  8214. return o;
  8215. }, attr: u, clamp: function(t, n, o) {
  8216. return t > n ? t < o ? t : o : n;
  8217. }, cleanRecursively: I, clearTimeout: function(t) {
  8218. v(t) && clearTimeout(t);
  8219. }, correctFloat: B, createElement: function(t, n, o, A, _) {
  8220. return t = c.createElement(t), n && d(t, n), _ && O(t, { padding: "0", border: "none", margin: "0" }), o && O(t, o), A && A.appendChild(t), t;
  8221. }, css: O, defined: v, destroyObjectProperties: function(t, n) {
  8222. b(t, function(o, A) {
  8223. o && o !== n && o.destroy && o.destroy(), delete t[A];
  8224. });
  8225. }, discardElement: function(t) {
  8226. t && t.parentElement && t.parentElement.removeChild(t);
  8227. }, erase: function(t, n) {
  8228. for (var o = t.length; o--; )
  8229. if (t[o] === n) {
  8230. t.splice(o, 1);
  8231. break;
  8232. }
  8233. }, error: R, extend: d, extendClass: function(t, n) {
  8234. var o = function() {
  8235. };
  8236. return o.prototype = new t(), d(o.prototype, n), o;
  8237. }, find: i, fireEvent: x, getMagnitude: function(t) {
  8238. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  8239. }, getNestedProperty: function(t, n) {
  8240. for (t = t.split("."); t.length && v(n); ) {
  8241. var o = t.shift();
  8242. if (typeof o > "u" || o === "__proto__" || (n = n[o], !v(n) || typeof n == "function" || typeof n.nodeType == "number" || n === p))
  8243. return;
  8244. }
  8245. return n;
  8246. }, getStyle: C, inArray: function(t, n, o) {
  8247. return R(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), n.indexOf(t, o);
  8248. }, isArray: $, isClass: N, isDOMElement: W, isFunction: function(t) {
  8249. return typeof t == "function";
  8250. }, isNumber: w, isObject: U, isString: H, keys: function(t) {
  8251. return R(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  8252. }, merge: function() {
  8253. var t, n = arguments, o = {}, A = function(D, j) {
  8254. return typeof D != "object" && (D = {}), b(j, function(T, X) {
  8255. X !== "__proto__" && X !== "constructor" && (!U(T, !0) || N(T) || W(T) ? D[X] = j[X] : D[X] = A(D[X] || {}, T));
  8256. }), D;
  8257. };
  8258. n[0] === !0 && (o = n[1], n = Array.prototype.slice.call(n, 2));
  8259. var _ = n.length;
  8260. for (t = 0; t < _; t++)
  8261. o = A(o, n[t]);
  8262. return o;
  8263. }, normalizeTickInterval: function(t, n, o, A, _) {
  8264. var D = t;
  8265. o = P(o, 1);
  8266. var j = t / o;
  8267. for (n || (n = _ ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], A === !1 && (o === 1 ? n = n.filter(function(T) {
  8268. return T % 1 === 0;
  8269. }) : 0.1 >= o && (n = [1 / o]))), A = 0; A < n.length && (D = n[A], !(_ && D * o >= t || !_ && j <= (n[A] + (n[A + 1] || n[A])) / 2)); A++)
  8270. ;
  8271. return D = B(D * o, -Math.round(Math.log(1e-3) / Math.LN10));
  8272. }, objectEach: b, offset: function(t) {
  8273. var n = c.documentElement;
  8274. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (p.pageYOffset || n.scrollTop) - (n.clientTop || 0), left: t.left + (p.pageXOffset || n.scrollLeft) - (n.clientLeft || 0), width: t.width, height: t.height };
  8275. }, pad: function(t, n, o) {
  8276. return Array((n || 2) + 1 - String(t).replace("-", "").length).join(o || "0") + t;
  8277. }, pick: P, pInt: Z, relativeLength: function(t, n, o) {
  8278. return /%$/.test(t) ? n * parseFloat(t) / 100 + (o || 0) : parseFloat(t);
  8279. }, removeEvent: M, splat: function(t) {
  8280. return $(t) ? t : [t];
  8281. }, stableSort: function(t, n) {
  8282. var o = t.length, A, _;
  8283. for (_ = 0; _ < o; _++)
  8284. t[_].safeI = _;
  8285. for (t.sort(function(D, j) {
  8286. return A = n(D, j), A === 0 ? D.safeI - j.safeI : A;
  8287. }), _ = 0; _ < o; _++)
  8288. delete t[_].safeI;
  8289. }, syncTimeout: function(t, n, o) {
  8290. return 0 < n ? setTimeout(t, n, o) : (t.call(0, o), -1);
  8291. }, timeUnits: {
  8292. millisecond: 1,
  8293. second: 1e3,
  8294. minute: 6e4,
  8295. hour: 36e5,
  8296. day: 864e5,
  8297. week: 6048e5,
  8298. month: 24192e5,
  8299. year: 314496e5
  8300. }, uniqueKey: s, useSerialIds: function(t) {
  8301. return l = P(t, l);
  8302. }, wrap: function(t, n, o) {
  8303. var A = t[n];
  8304. t[n] = function() {
  8305. var _ = Array.prototype.slice.call(arguments), D = arguments, j = this;
  8306. return j.proceed = function() {
  8307. A.apply(j, arguments.length ? arguments : D);
  8308. }, _.unshift(A), _ = o.apply(this, _), j.proceed = null, _;
  8309. };
  8310. } }, i;
  8311. }), E(h, "Core/Chart/ChartDefaults.js", [], function() {
  8312. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  8313. 10,
  8314. 10,
  8315. 15,
  8316. 10
  8317. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  8318. }), E(h, "Core/Color/Color.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R) {
  8319. var I = R.isNumber, Z = R.merge, H = R.pInt;
  8320. return R = function() {
  8321. function $(U) {
  8322. this.rgba = [NaN, NaN, NaN, NaN], this.input = U;
  8323. var W = y.Color;
  8324. if (W && W !== $)
  8325. return new W(U);
  8326. if (!(this instanceof $))
  8327. return new $(U);
  8328. this.init(U);
  8329. }
  8330. return $.parse = function(U) {
  8331. return U ? new $(U) : $.None;
  8332. }, $.prototype.init = function(U) {
  8333. var W;
  8334. if (typeof U == "object" && typeof U.stops < "u")
  8335. this.stops = U.stops.map(function(u) {
  8336. return new $(u[1]);
  8337. });
  8338. else if (typeof U == "string") {
  8339. if (this.input = U = $.names[U.toLowerCase()] || U, U.charAt(0) === "#") {
  8340. var N = U.length, w = parseInt(U.substr(1), 16);
  8341. N === 7 ? W = [(w & 16711680) >> 16, (w & 65280) >> 8, w & 255, 1] : N === 4 && (W = [(w & 3840) >> 4 | (w & 3840) >> 8, (w & 240) >> 4 | w & 240, (w & 15) << 4 | w & 15, 1]);
  8342. }
  8343. if (!W)
  8344. for (w = $.parsers.length; w-- && !W; ) {
  8345. var v = $.parsers[w];
  8346. (N = v.regex.exec(U)) && (W = v.parse(N));
  8347. }
  8348. }
  8349. W && (this.rgba = W);
  8350. }, $.prototype.get = function(U) {
  8351. var W = this.input, N = this.rgba;
  8352. if (typeof W == "object" && typeof this.stops < "u") {
  8353. var w = Z(W);
  8354. return w.stops = [].slice.call(w.stops), this.stops.forEach(function(v, u) {
  8355. w.stops[u] = [w.stops[u][0], v.get(U)];
  8356. }), w;
  8357. }
  8358. return N && I(N[0]) ? U === "rgb" || !U && N[3] === 1 ? "rgb(" + N[0] + "," + N[1] + "," + N[2] + ")" : U === "a" ? "" + N[3] : "rgba(" + N.join(",") + ")" : W;
  8359. }, $.prototype.brighten = function(U) {
  8360. var W = this.rgba;
  8361. if (this.stops)
  8362. this.stops.forEach(function(w) {
  8363. w.brighten(U);
  8364. });
  8365. else if (I(U) && U !== 0)
  8366. for (var N = 0; 3 > N; N++)
  8367. W[N] += H(255 * U), 0 > W[N] && (W[N] = 0), 255 < W[N] && (W[N] = 255);
  8368. return this;
  8369. }, $.prototype.setOpacity = function(U) {
  8370. return this.rgba[3] = U, this;
  8371. }, $.prototype.tweenTo = function(U, W) {
  8372. var N = this.rgba, w = U.rgba;
  8373. return !I(N[0]) || !I(w[0]) ? U.input || "none" : (U = w[3] !== 1 || N[3] !== 1, (U ? "rgba(" : "rgb(") + Math.round(w[0] + (N[0] - w[0]) * (1 - W)) + "," + Math.round(w[1] + (N[1] - w[1]) * (1 - W)) + "," + Math.round(w[2] + (N[2] - w[2]) * (1 - W)) + (U ? "," + (w[3] + (N[3] - w[3]) * (1 - W)) : "") + ")");
  8374. }, $.names = { white: "#ffffff", black: "#000000" }, $.parsers = [{
  8375. 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*\)/,
  8376. parse: function(U) {
  8377. return [H(U[1]), H(U[2]), H(U[3]), parseFloat(U[4], 10)];
  8378. }
  8379. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(U) {
  8380. return [H(U[1]), H(U[2]), H(U[3]), 1];
  8381. } }], $.None = new $(""), $;
  8382. }(), R;
  8383. }), E(h, "Core/Color/Palettes.js", [], function() {
  8384. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  8385. }), E(h, "Core/Time.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R) {
  8386. var I = y.win, Z = R.defined, H = R.error, $ = R.extend, U = R.isObject, W = R.merge, N = R.objectEach, w = R.pad, v = R.pick, u = R.splat, d = R.timeUnits, P = y.isSafari && I.Intl && I.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && I.Intl && !I.Intl.DateTimeFormat.prototype.formatRange;
  8387. return R = function() {
  8388. function B(C) {
  8389. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = I.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(C);
  8390. }
  8391. return B.prototype.get = function(C, b) {
  8392. if (this.variableTimezone || this.timezoneOffset) {
  8393. var M = b.getTime(), x = M - this.getTimezoneOffset(b);
  8394. return b.setTime(x), C = b["getUTC" + C](), b.setTime(M), C;
  8395. }
  8396. return this.useUTC ? b["getUTC" + C]() : b["get" + C]();
  8397. }, B.prototype.set = function(C, b, M) {
  8398. if (this.variableTimezone || this.timezoneOffset) {
  8399. if (C === "Milliseconds" || C === "Seconds" || C === "Minutes" && this.getTimezoneOffset(b) % 36e5 === 0)
  8400. return b["setUTC" + C](M);
  8401. var x = this.getTimezoneOffset(b);
  8402. return x = b.getTime() - x, b.setTime(x), b["setUTC" + C](M), C = this.getTimezoneOffset(b), x = b.getTime() + C, b.setTime(x);
  8403. }
  8404. return this.useUTC || P && C === "FullYear" ? b["setUTC" + C](M) : b["set" + C](M);
  8405. }, B.prototype.update = function(C) {
  8406. var b = v(C && C.useUTC, !0);
  8407. 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);
  8408. }, B.prototype.makeTime = function(C, b, M, x, a, c) {
  8409. if (this.useUTC) {
  8410. var p = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(p);
  8411. p += i;
  8412. var l = this.getTimezoneOffset(p);
  8413. i !== l ? p += l - i : i - 36e5 !== this.getTimezoneOffset(p - 36e5) || O || (p -= 36e5);
  8414. } else
  8415. p = new this.Date(C, b, v(M, 1), v(x, 0), v(a, 0), v(c, 0)).getTime();
  8416. return p;
  8417. }, B.prototype.timezoneOffsetFunction = function() {
  8418. var C = this, b = this.options, M = b.getTimezoneOffset, x = b.moment || I.moment;
  8419. if (!this.useUTC)
  8420. return function(a) {
  8421. return 6e4 * new Date(a.toString()).getTimezoneOffset();
  8422. };
  8423. if (b.timezone) {
  8424. if (x)
  8425. return function(a) {
  8426. return 6e4 * -x.tz(a, b.timezone).utcOffset();
  8427. };
  8428. H(25);
  8429. }
  8430. return this.useUTC && M ? function(a) {
  8431. return 6e4 * M(a.valueOf());
  8432. } : function() {
  8433. return 6e4 * (C.timezoneOffset || 0);
  8434. };
  8435. }, B.prototype.dateFormat = function(C, b, M) {
  8436. if (!Z(b) || isNaN(b))
  8437. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  8438. C = v(C, "%Y-%m-%d %H:%M:%S");
  8439. 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, n = t && t.weekdays, o = t && t.shortWeekdays;
  8440. return a = $({ a: o ? o[p] : n[p].substr(0, 3), A: n[p], d: w(i), e: w(i, 2, " "), w: p, b: t.shortMonths[l], B: t.months[l], m: w(l + 1), o: l + 1, y: s.toString().substr(2, 2), Y: s, H: w(c), k: c, I: w(c % 12 || 12), l: c % 12 || 12, M: w(this.get("Minutes", a)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: w(a.getSeconds()), L: w(Math.floor(b % 1e3), 3) }, y.dateFormats), N(a, function(A, _) {
  8441. for (; C.indexOf("%" + _) !== -1; )
  8442. C = C.replace("%" + _, typeof A == "function" ? A.call(x, b) : A);
  8443. }), M ? C.substr(0, 1).toUpperCase() + C.substr(1) : C;
  8444. }, B.prototype.resolveDTLFormat = function(C) {
  8445. return U(C, !0) ? C : (C = u(C), { main: C[0], from: C[1], to: C[2] });
  8446. }, B.prototype.getTimeTicks = function(C, b, M, x) {
  8447. var a = this, c = [], p = {}, i = new a.Date(b), l = C.unitRange, s = C.count || 1, t;
  8448. if (x = v(x, 1), Z(b)) {
  8449. if (a.set(
  8450. "Milliseconds",
  8451. i,
  8452. l >= d.second ? 0 : s * Math.floor(a.get("Milliseconds", i) / s)
  8453. ), l >= d.second && a.set("Seconds", i, l >= d.minute ? 0 : s * Math.floor(a.get("Seconds", i) / s)), l >= d.minute && a.set("Minutes", i, l >= d.hour ? 0 : s * Math.floor(a.get("Minutes", i) / s)), l >= d.hour && a.set("Hours", i, l >= d.day ? 0 : s * Math.floor(a.get("Hours", i) / s)), l >= d.day && a.set("Date", i, l >= d.month ? 1 : Math.max(1, s * Math.floor(a.get("Date", i) / s))), l >= d.month) {
  8454. a.set("Month", i, l >= d.year ? 0 : s * Math.floor(a.get("Month", i) / s));
  8455. var n = a.get("FullYear", i);
  8456. }
  8457. l >= d.year && a.set(
  8458. "FullYear",
  8459. i,
  8460. n - n % s
  8461. ), l === d.week && (n = a.get("Day", i), a.set("Date", i, a.get("Date", i) - n + x + (n < x ? -7 : 0))), n = a.get("FullYear", i), x = a.get("Month", i);
  8462. var o = a.get("Date", i), A = a.get("Hours", i);
  8463. for (b = i.getTime(), !a.variableTimezone && a.useUTC || !Z(M) || (t = M - b > 4 * d.month || a.getTimezoneOffset(b) !== a.getTimezoneOffset(M)), b = i.getTime(), i = 1; b < M; )
  8464. c.push(b), b = l === d.year ? a.makeTime(n + i * s, 0) : l === d.month ? a.makeTime(n, x + i * s) : !t || l !== d.day && l !== d.week ? t && l === d.hour && 1 < s ? a.makeTime(n, x, o, A + i * s) : b + l * s : a.makeTime(n, x, o + i * s * (l === d.day ? 1 : 7)), i++;
  8465. c.push(b), l <= d.hour && 1e4 > c.length && c.forEach(function(_) {
  8466. _ % 18e5 === 0 && a.dateFormat("%H%M%S%L", _) === "000000000" && (p[_] = "day");
  8467. });
  8468. }
  8469. return c.info = $(C, { higherRanks: p, totalRange: l * s }), c;
  8470. }, B.prototype.getDateFormat = function(C, b, M, x) {
  8471. var a = this.dateFormat("%m-%d %H:%M:%S.%L", b), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, p = "millisecond";
  8472. for (i in d) {
  8473. if (C === d.week && +this.dateFormat("%w", b) === M && a.substr(6) === "00:00:00.000") {
  8474. var i = "week";
  8475. break;
  8476. }
  8477. if (d[i] > C) {
  8478. i = p;
  8479. break;
  8480. }
  8481. if (c[i] && a.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  8482. break;
  8483. i !== "week" && (p = i);
  8484. }
  8485. if (i)
  8486. var l = this.resolveDTLFormat(x[i]).main;
  8487. return l;
  8488. }, B;
  8489. }(), R;
  8490. }), 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, R, I, Z, H, $) {
  8491. R = R.parse;
  8492. var U = $.merge, W = {
  8493. colors: Z.colors,
  8494. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  8495. lang: {
  8496. loading: "Loading...",
  8497. months: "January February March April May June July August September October November December".split(" "),
  8498. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  8499. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  8500. decimalPoint: ".",
  8501. numericSymbols: "kMGTPE".split(""),
  8502. resetZoom: "Reset zoom",
  8503. resetZoomTitle: "Reset zoom level 1:1",
  8504. thousandsSep: " "
  8505. },
  8506. global: {},
  8507. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  8508. chart: y,
  8509. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  8510. subtitle: { text: "", align: "center", widthAdjust: -44 },
  8511. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  8512. plotOptions: {},
  8513. labels: { style: { position: "absolute", color: "#333333" } },
  8514. legend: {
  8515. enabled: !0,
  8516. align: "center",
  8517. alignColumns: !0,
  8518. className: "highcharts-no-tooltip",
  8519. layout: "horizontal",
  8520. labelFormatter: function() {
  8521. return this.name;
  8522. },
  8523. borderColor: "#999999",
  8524. borderRadius: 0,
  8525. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  8526. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  8527. itemHoverStyle: { color: "#000000" },
  8528. itemHiddenStyle: { color: "#cccccc" },
  8529. shadow: !1,
  8530. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  8531. squareSymbol: !0,
  8532. symbolPadding: 5,
  8533. verticalAlign: "bottom",
  8534. x: 0,
  8535. y: 0,
  8536. title: { style: { fontWeight: "bold" } }
  8537. },
  8538. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  8539. tooltip: {
  8540. enabled: !0,
  8541. animation: I.svg,
  8542. borderRadius: 3,
  8543. dateTimeLabelFormats: {
  8544. millisecond: "%A, %b %e, %H:%M:%S.%L",
  8545. second: "%A, %b %e, %H:%M:%S",
  8546. minute: "%A, %b %e, %H:%M",
  8547. hour: "%A, %b %e, %H:%M",
  8548. day: "%A, %b %e, %Y",
  8549. week: "Week from %A, %b %e, %Y",
  8550. month: "%B %Y",
  8551. year: "%Y"
  8552. },
  8553. footerFormat: "",
  8554. headerShape: "callout",
  8555. hideDelay: 500,
  8556. padding: 8,
  8557. shape: "callout",
  8558. shared: !1,
  8559. snap: I.isTouchDevice ? 25 : 10,
  8560. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  8561. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  8562. backgroundColor: R("#f7f7f7").setOpacity(0.85).get(),
  8563. borderWidth: 1,
  8564. shadow: !0,
  8565. stickOnContact: !1,
  8566. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  8567. useHTML: !1
  8568. },
  8569. 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" }
  8570. };
  8571. W.chart.styledMode = !1;
  8572. var N = new H(U(W.global, W.time));
  8573. return y = { defaultOptions: W, defaultTime: N, getOptions: function() {
  8574. return W;
  8575. }, setOptions: function(w) {
  8576. return U(!0, W, w), (w.time || w.global) && (I.time ? I.time.update(U(
  8577. W.global,
  8578. W.time,
  8579. w.global,
  8580. w.time
  8581. )) : I.time = N), W;
  8582. } }, y;
  8583. }), E(h, "Core/Animation/Fx.js", [h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R, I) {
  8584. var Z = y.parse, H = R.win, $ = I.isNumber, U = I.objectEach;
  8585. return function() {
  8586. function W(N, w, v) {
  8587. this.pos = NaN, this.options = w, this.elem = N, this.prop = v;
  8588. }
  8589. return W.prototype.dSetter = function() {
  8590. var N = this.paths, w = N && N[0];
  8591. N = N && N[1];
  8592. var v = this.now || 0, u = [];
  8593. if (v !== 1 && w && N)
  8594. if (w.length === N.length && 1 > v)
  8595. for (var d = 0; d < N.length; d++) {
  8596. for (var P = w[d], O = N[d], B = [], C = 0; C < O.length; C++) {
  8597. var b = P[C], M = O[C];
  8598. $(b) && $(M) && (O[0] !== "A" || C !== 4 && C !== 5) ? B[C] = b + v * (M - b) : B[C] = M;
  8599. }
  8600. u.push(B);
  8601. }
  8602. else
  8603. u = N;
  8604. else
  8605. u = this.toD || [];
  8606. this.elem.attr("d", u, void 0, !0);
  8607. }, W.prototype.update = function() {
  8608. var N = this.elem, w = this.prop, v = this.now, u = this.options.step;
  8609. this[w + "Setter"] ? this[w + "Setter"]() : N.attr ? N.element && N.attr(w, v, null, !0) : N.style[w] = v + this.unit, u && u.call(N, v, this);
  8610. }, W.prototype.run = function(N, w, v) {
  8611. var u = this, d = u.options, P = function(C) {
  8612. return P.stopped ? !1 : u.step(C);
  8613. }, O = H.requestAnimationFrame || function(C) {
  8614. setTimeout(
  8615. C,
  8616. 13
  8617. );
  8618. }, B = function() {
  8619. for (var C = 0; C < W.timers.length; C++)
  8620. W.timers[C]() || W.timers.splice(C--, 1);
  8621. W.timers.length && O(B);
  8622. };
  8623. N !== w || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = N, this.end = w, 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(B)) : (delete d.curAnim[this.prop], d.complete && Object.keys(d.curAnim).length === 0 && d.complete.call(this.elem));
  8624. }, W.prototype.step = function(N) {
  8625. var w = +/* @__PURE__ */ new Date(), v = this.options, u = this.elem, d = v.complete, P = v.duration, O = v.curAnim;
  8626. if (u.attr && !u.element)
  8627. N = !1;
  8628. else if (N || w >= P + this.startTime) {
  8629. this.now = this.end, this.pos = 1, this.update();
  8630. var B = O[this.prop] = !0;
  8631. U(O, function(C) {
  8632. C !== !0 && (B = !1);
  8633. }), B && d && d.call(u), N = !1;
  8634. } else
  8635. this.pos = v.easing((w - this.startTime) / P), this.now = this.start + (this.end - this.start) * this.pos, this.update(), N = !0;
  8636. return N;
  8637. }, W.prototype.initPath = function(N, w, v) {
  8638. function u(a, c) {
  8639. for (; a.length < x; ) {
  8640. var p = a[0], i = c[x - a.length];
  8641. i && p[0] === "M" && (a[0] = i[0] === "C" ? ["C", p[1], p[2], p[1], p[2], p[1], p[2]] : [
  8642. "L",
  8643. p[1],
  8644. p[2]
  8645. ]), a.unshift(p), B && (p = a.pop(), a.push(a[a.length - 1], p));
  8646. }
  8647. }
  8648. function d(a, c) {
  8649. for (; a.length < x; )
  8650. if (c = a[Math.floor(a.length / C) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), B) {
  8651. var p = a[Math.floor(a.length / C)].slice();
  8652. a.splice(a.length / 2, 0, c, p);
  8653. } else
  8654. a.push(c);
  8655. }
  8656. var P = N.startX, O = N.endX;
  8657. v = v.slice();
  8658. var B = N.isArea, C = B ? 2 : 1;
  8659. if (w = w && w.slice(), !w)
  8660. return [v, v];
  8661. if (P && O && O.length) {
  8662. for (N = 0; N < P.length; N++)
  8663. if (P[N] === O[0]) {
  8664. var b = N;
  8665. break;
  8666. } else if (P[0] === O[O.length - P.length + N]) {
  8667. b = N;
  8668. var M = !0;
  8669. break;
  8670. } else if (P[P.length - 1] === O[O.length - P.length + N]) {
  8671. b = P.length - N;
  8672. break;
  8673. }
  8674. typeof b > "u" && (w = []);
  8675. }
  8676. if (w.length && $(b)) {
  8677. var x = v.length + b * C;
  8678. M ? (u(w, v), d(v, w)) : (u(v, w), d(w, v));
  8679. }
  8680. return [w, v];
  8681. }, W.prototype.fillSetter = function() {
  8682. W.prototype.strokeSetter.apply(this, arguments);
  8683. }, W.prototype.strokeSetter = function() {
  8684. this.elem.attr(this.prop, Z(this.start).tweenTo(Z(this.end), this.pos), void 0, !0);
  8685. }, W.timers = [], W;
  8686. }();
  8687. }), E(h, "Core/Animation/AnimationUtilities.js", [h["Core/Animation/Fx.js"], h["Core/Utilities.js"]], function(y, R) {
  8688. function I(d) {
  8689. return N(d) ? w({ duration: 500, defer: 0 }, d) : { duration: d ? 500 : 0, defer: 0 };
  8690. }
  8691. function Z(d, P) {
  8692. for (var O = y.timers.length; O--; )
  8693. y.timers[O].elem !== d || P && P !== y.timers[O].prop || (y.timers[O].stopped = !0);
  8694. }
  8695. var H = R.defined, $ = R.getStyle, U = R.isArray, W = R.isNumber, N = R.isObject, w = R.merge, v = R.objectEach, u = R.pick;
  8696. return { animate: function(d, P, O) {
  8697. var B, C = "", b, M;
  8698. if (!N(O)) {
  8699. var x = arguments;
  8700. O = { duration: x[2], easing: x[3], complete: x[4] };
  8701. }
  8702. W(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = w(P), v(P, function(a, c) {
  8703. Z(d, c), M = new y(d, O, c), b = void 0, c === "d" && U(P.d) ? (M.paths = M.initPath(d, d.pathArray, P.d), M.toD = P.d, B = 0, b = 1) : d.attr ? B = d.attr(c) : (B = parseFloat($(d, c)) || 0, c !== "opacity" && (C = "px")), b || (b = a), typeof b == "string" && b.match("px") && (b = b.replace(/px/g, "")), M.run(B, b, C);
  8704. });
  8705. }, animObject: I, getDeferredAnimation: function(d, P, O) {
  8706. var B = I(P), C = 0, b = 0;
  8707. return (O ? [O] : d.series).forEach(function(M) {
  8708. M = I(M.options.animation), C = P && H(P.defer) ? B.defer : Math.max(C, M.duration + M.defer), b = Math.min(B.duration, M.duration);
  8709. }), d.renderer.forExport && (C = 0), { defer: Math.max(0, C - b), duration: Math.min(C, b) };
  8710. }, setAnimation: function(d, P) {
  8711. P.renderer.globalAnimation = u(d, P.options.chart.animation, !0);
  8712. }, stop: Z };
  8713. }), E(h, "Core/Renderer/HTML/AST.js", [h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R) {
  8714. var I = y.SVG_NS, Z = R.attr, H = R.createElement, $ = R.error, U = R.isFunction, W = R.isString, N = R.objectEach, w = R.splat, v = (R = y.win.trustedTypes) && U(R.createPolicy) && R.createPolicy("highcharts", { createHTML: function(P) {
  8715. return P;
  8716. } }), u = v ? v.createHTML("") : "";
  8717. try {
  8718. var d = !!new DOMParser().parseFromString(u, "text/html");
  8719. } catch {
  8720. d = !1;
  8721. }
  8722. return U = function() {
  8723. function P(O) {
  8724. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  8725. }
  8726. return P.filterUserAttributes = function(O) {
  8727. return N(O, function(B, C) {
  8728. var b = !0;
  8729. P.allowedAttributes.indexOf(C) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(C) !== -1 && (b = W(B) && P.allowedReferences.some(function(M) {
  8730. return B.indexOf(M) === 0;
  8731. })), b || ($("Highcharts warning: Invalid attribute '" + C + "' in config"), delete O[C]);
  8732. }), O;
  8733. }, P.setElementHTML = function(O, B) {
  8734. O.innerHTML = P.emptyHTML, B && new P(B).addToDOM(O);
  8735. }, P.prototype.addToDOM = function(O) {
  8736. function B(C, b) {
  8737. var M;
  8738. return w(C).forEach(function(x) {
  8739. var a = x.tagName, c = x.textContent ? y.doc.createTextNode(x.textContent) : void 0;
  8740. if (a)
  8741. if (a === "#text")
  8742. var p = c;
  8743. else if (P.allowedTags.indexOf(a) !== -1) {
  8744. a = y.doc.createElementNS(a === "svg" ? I : b.namespaceURI || I, a);
  8745. var i = x.attributes || {};
  8746. N(x, function(l, s) {
  8747. s !== "tagName" && s !== "attributes" && s !== "children" && s !== "textContent" && (i[s] = l);
  8748. }), Z(a, P.filterUserAttributes(i)), c && a.appendChild(c), B(x.children || [], a), p = a;
  8749. } else
  8750. $("Highcharts warning: Invalid tagName " + a + " in config");
  8751. p && b.appendChild(p), M = p;
  8752. }), M;
  8753. }
  8754. return B(this.nodes, O);
  8755. }, P.prototype.parseMarkup = function(O) {
  8756. var B = [];
  8757. if (O = O.trim(), d)
  8758. O = new DOMParser().parseFromString(v ? v.createHTML(O) : O, "text/html");
  8759. else {
  8760. var C = H("div");
  8761. C.innerHTML = O, O = { body: C };
  8762. }
  8763. var b = function(M, x) {
  8764. var a = M.nodeName.toLowerCase(), c = { tagName: a };
  8765. if (a === "#text" && (c.textContent = M.textContent || ""), a = M.attributes) {
  8766. var p = {};
  8767. [].forEach.call(a, function(l) {
  8768. p[l.name] = l.value;
  8769. }), c.attributes = p;
  8770. }
  8771. if (M.childNodes.length) {
  8772. var i = [];
  8773. [].forEach.call(M.childNodes, function(l) {
  8774. b(l, i);
  8775. }), i.length && (c.children = i);
  8776. }
  8777. x.push(c);
  8778. };
  8779. return [].forEach.call(O.body.childNodes, function(M) {
  8780. return b(M, B);
  8781. }), B;
  8782. }, 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 = u, P;
  8783. }(), U;
  8784. }), E(
  8785. h,
  8786. "Core/FormatUtilities.js",
  8787. [h["Core/DefaultOptions.js"], h["Core/Utilities.js"]],
  8788. function(y, R) {
  8789. function I(w, v, u, d) {
  8790. w = +w || 0, v = +v;
  8791. var P = Z.lang, O = (w.toString().split(".")[1] || "").split("e")[0].length, B = w.toString().split("e"), C = v;
  8792. if (v === -1)
  8793. v = Math.min(O, 20);
  8794. else if (!U(v))
  8795. v = 2;
  8796. else if (v && B[1] && 0 > B[1]) {
  8797. var b = v + +B[1];
  8798. 0 <= b ? (B[0] = (+B[0]).toExponential(b).split("e")[0], v = b) : (B[0] = B[0].split(".")[0] || 0, w = 20 > v ? (B[0] * Math.pow(10, B[1])).toFixed(v) : 0, B[1] = 0);
  8799. }
  8800. b = (Math.abs(B[1] ? B[0] : w) + Math.pow(10, -Math.max(v, O) - 1)).toFixed(v), O = String(N(b));
  8801. var M = 3 < O.length ? O.length % 3 : 0;
  8802. return u = W(u, P.decimalPoint), d = W(d, P.thousandsSep), w = (0 > w ? "-" : "") + (M ? O.substr(0, M) + d : ""), w = 0 > +B[1] && !C ? "0" : w + O.substr(M).replace(/(\d{3})(?=\d)/g, "$1" + d), v && (w += u + b.slice(-v)), B[1] && +w != 0 && (w += "e" + B[1]), w;
  8803. }
  8804. var Z = y.defaultOptions, H = y.defaultTime, $ = R.getNestedProperty, U = R.isNumber, W = R.pick, N = R.pInt;
  8805. return { dateFormat: function(w, v, u) {
  8806. return H.dateFormat(w, v, u);
  8807. }, format: function(w, v, u) {
  8808. var d = "{", P = !1, O = /f$/, B = /\.([0-9])/, C = Z.lang, b = u && u.time || H;
  8809. u = u && u.numberFormatter || I;
  8810. for (var M = []; w; ) {
  8811. var x = w.indexOf(d);
  8812. if (x === -1)
  8813. break;
  8814. var a = w.slice(0, x);
  8815. if (P) {
  8816. if (a = a.split(":"), d = $(a.shift() || "", v), a.length && typeof d == "number")
  8817. if (a = a.join(":"), O.test(a)) {
  8818. var c = parseInt((a.match(B) || ["", "-1"])[1], 10);
  8819. d !== null && (d = u(d, c, C.decimalPoint, -1 < a.indexOf(",") ? C.thousandsSep : ""));
  8820. } else
  8821. d = b.dateFormat(a, d);
  8822. M.push(d);
  8823. } else
  8824. M.push(a);
  8825. w = w.slice(x + 1), d = (P = !P) ? "}" : "{";
  8826. }
  8827. return M.push(w), M.join("");
  8828. }, numberFormat: I };
  8829. }
  8830. ), E(h, "Core/Renderer/RendererUtilities.js", [h["Core/Utilities.js"]], function(y) {
  8831. var R = y.clamp, I = y.pick, Z = y.stableSort, H;
  8832. return function($) {
  8833. function U(W, N, w) {
  8834. var v = W, u = v.reducedLen || N, d = function(M, x) {
  8835. return (x.rank || 0) - (M.rank || 0);
  8836. }, P = function(M, x) {
  8837. return M.target - x.target;
  8838. }, O, B = !0, C = [], b = 0;
  8839. for (O = W.length; O--; )
  8840. b += W[O].size;
  8841. if (b > u) {
  8842. for (Z(W, d), b = O = 0; b <= u; )
  8843. b += W[O].size, O++;
  8844. C = W.splice(O - 1, W.length);
  8845. }
  8846. for (Z(W, P), W = W.map(function(M) {
  8847. return { size: M.size, targets: [M.target], align: I(M.align, 0.5) };
  8848. }); B; ) {
  8849. for (O = W.length; O--; )
  8850. u = W[O], d = (Math.min.apply(0, u.targets) + Math.max.apply(0, u.targets)) / 2, u.pos = R(
  8851. d - u.size * u.align,
  8852. 0,
  8853. N - u.size
  8854. );
  8855. for (O = W.length, B = !1; O--; )
  8856. 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 > N && (W[O - 1].pos = N - W[O - 1].size), W.splice(O, 1), B = !0);
  8857. }
  8858. return v.push.apply(v, C), O = 0, W.some(function(M) {
  8859. var x = 0;
  8860. return (M.targets || []).some(function() {
  8861. return v[O].pos = M.pos + x, typeof w < "u" && Math.abs(v[O].pos - v[O].target) > w ? (v.slice(0, O + 1).forEach(function(a) {
  8862. return delete a.pos;
  8863. }), v.reducedLen = (v.reducedLen || N) - 0.1 * N, v.reducedLen > 0.1 * N && U(v, N, w), !0) : (x += v[O].size, O++, !1);
  8864. });
  8865. }), Z(v, P), v;
  8866. }
  8867. $.distribute = U;
  8868. }(H || (H = {})), H;
  8869. }), 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, R, I, Z, H) {
  8870. var $ = y.animate, U = y.animObject, W = y.stop, N = Z.deg2rad, w = Z.doc, v = Z.noop, u = Z.svg, d = Z.SVG_NS, P = Z.win, O = H.addEvent, B = H.attr, C = H.createElement, b = H.css, M = H.defined, x = H.erase, a = H.extend, c = H.fireEvent, p = H.isArray, i = H.isFunction, l = H.isNumber, s = H.isString, t = H.merge, n = H.objectEach, o = H.pick, A = H.pInt, _ = H.syncTimeout, D = H.uniqueKey;
  8871. return y = function() {
  8872. function j() {
  8873. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = d, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  8874. }
  8875. return j.prototype._defaultGetter = function(T) {
  8876. return T = o(this[T + "Value"], this[T], this.element ? this.element.getAttribute(T) : null, 0), /^[\-0-9\.]+$/.test(T) && (T = parseFloat(T)), T;
  8877. }, j.prototype._defaultSetter = function(T, X, f) {
  8878. f.setAttribute(X, T);
  8879. }, j.prototype.add = function(T) {
  8880. var X = this.renderer, f = this.element;
  8881. 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)
  8882. var m = this.zIndexSetter();
  8883. return m || (T ? T.element : X.box).appendChild(f), this.onAdd && this.onAdd(), this;
  8884. }, j.prototype.addClass = function(T, X) {
  8885. var f = X ? "" : this.attr("class") || "";
  8886. return T = (T || "").split(/ /g).reduce(function(m, L) {
  8887. return f.indexOf(L) === -1 && m.push(L), m;
  8888. }, f ? [f] : []).join(" "), T !== f && this.attr("class", T), this;
  8889. }, j.prototype.afterSetters = function() {
  8890. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  8891. }, j.prototype.align = function(T, X, f) {
  8892. var m = {}, L = this.renderer, Y = L.alignedObjects, F, Q, k;
  8893. T ? (this.alignOptions = T, this.alignByTranslate = X, (!f || s(f)) && (this.alignTo = F = f || "renderer", x(Y, this), Y.push(this), f = void 0)) : (T = this.alignOptions, X = this.alignByTranslate, F = this.alignTo), f = o(f, L[F], F === "scrollablePlotBox" ? L.plotBox : void 0, L), F = T.align;
  8894. var G = T.verticalAlign;
  8895. return L = (f.x || 0) + (T.x || 0), Y = (f.y || 0) + (T.y || 0), F === "right" ? Q = 1 : F === "center" && (Q = 2), Q && (L += (f.width - (T.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), G === "bottom" ? k = 1 : G === "middle" && (k = 2), k && (Y += (f.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;
  8896. }, j.prototype.alignSetter = function(T) {
  8897. var X = { left: "start", center: "middle", right: "end" };
  8898. X[T] && (this.alignValue = T, this.element.setAttribute(
  8899. "text-anchor",
  8900. X[T]
  8901. ));
  8902. }, j.prototype.animate = function(T, X, f) {
  8903. var m = this, L = U(o(X, this.renderer.globalAnimation, !0));
  8904. return X = L.defer, o(w.hidden, w.msHidden, w.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (f && (L.complete = f), _(function() {
  8905. m.element && $(m, T, L);
  8906. }, X)) : (this.attr(T, void 0, f), n(T, function(Y, F) {
  8907. L.step && L.step.call(this, Y, { prop: F, pos: 1, elem: this });
  8908. }, this)), this;
  8909. }, j.prototype.applyTextOutline = function(T) {
  8910. var X = this.element;
  8911. T.indexOf("contrast") !== -1 && (T = T.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  8912. var f = T.split(" ");
  8913. if (T = f[f.length - 1], (f = f[0]) && f !== "none" && Z.svg) {
  8914. this.fakeTS = !0, this.ySetter = this.xSetter, f = f.replace(/(^[\d\.]+)(.*?)$/g, function(Y, F, Q) {
  8915. return 2 * Number(F) + Q;
  8916. }), this.removeTextOutline();
  8917. var m = w.createElementNS(d, "tspan");
  8918. B(m, { class: "highcharts-text-outline", fill: T, stroke: T, "stroke-width": f, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(Y) {
  8919. var F = Y.cloneNode(!0);
  8920. F.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  8921. return F.removeAttribute(Q);
  8922. }), m.appendChild(F);
  8923. });
  8924. var L = w.createElementNS(d, "tspan");
  8925. L.textContent = "​", ["x", "y"].forEach(function(Y) {
  8926. var F = X.getAttribute(Y);
  8927. F && L.setAttribute(Y, F);
  8928. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  8929. }
  8930. }, j.prototype.attr = function(T, X, f, m) {
  8931. var L = this.element, Y = this.symbolCustomAttribs, F, Q = this, k, G;
  8932. if (typeof T == "string" && typeof X < "u") {
  8933. var z = T;
  8934. T = {}, T[z] = X;
  8935. }
  8936. return typeof T == "string" ? Q = (this[T + "Getter"] || this._defaultGetter).call(this, T, L) : (n(T, function(V, q) {
  8937. k = !1, m || W(this, q), this.symbolName && Y.indexOf(q) !== -1 && (F || (this.symbolAttr(T), F = !0), k = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), k || (G = this[q + "Setter"] || this._defaultSetter, G.call(this, V, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, V, G));
  8938. }, this), this.afterSetters()), f && f.call(this), Q;
  8939. }, j.prototype.clip = function(T) {
  8940. return this.attr("clip-path", T ? "url(" + this.renderer.url + "#" + T.id + ")" : "none");
  8941. }, j.prototype.crisp = function(T, X) {
  8942. X = X || T.strokeWidth || 0;
  8943. var f = Math.round(X) % 2 / 2;
  8944. return T.x = Math.floor(T.x || this.x || 0) + f, T.y = Math.floor(T.y || this.y || 0) + f, T.width = Math.floor((T.width || this.width || 0) - 2 * f), T.height = Math.floor((T.height || this.height || 0) - 2 * f), M(T.strokeWidth) && (T.strokeWidth = X), T;
  8945. }, j.prototype.complexColor = function(T, X, f) {
  8946. var m = this.renderer, L, Y, F, Q, k, G, z, V, q, it, et = [], nt;
  8947. c(this.renderer, "complexColor", { args: arguments }, function() {
  8948. if (T.radialGradient ? Y = "radialGradient" : T.linearGradient && (Y = "linearGradient"), Y) {
  8949. if (F = T[Y], k = m.gradients, G = T.stops, q = f.radialReference, p(F) && (T[Y] = F = { x1: F[0], y1: F[1], x2: F[2], y2: F[3], gradientUnits: "userSpaceOnUse" }), Y === "radialGradient" && q && !M(F.gradientUnits) && (Q = F, F = t(F, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), n(F, function(ct, gt) {
  8950. gt !== "id" && et.push(gt, ct);
  8951. }), n(G, function(ct) {
  8952. et.push(ct);
  8953. }), et = et.join(","), k[et])
  8954. it = k[et].attr("id");
  8955. else {
  8956. F.id = it = D();
  8957. var rt = k[et] = m.createElement(Y).attr(F).add(m.defs);
  8958. rt.radAttr = Q, rt.stops = [], G.forEach(function(ct) {
  8959. ct[1].indexOf("rgba") === 0 ? (L = I.parse(ct[1]), z = L.get("rgb"), V = L.get("a")) : (z = ct[1], V = 1), ct = m.createElement("stop").attr({
  8960. offset: ct[0],
  8961. "stop-color": z,
  8962. "stop-opacity": V
  8963. }).add(rt), rt.stops.push(ct);
  8964. });
  8965. }
  8966. nt = "url(" + m.url + "#" + it + ")", f.setAttribute(X, nt), f.gradient = et, T.toString = function() {
  8967. return nt;
  8968. };
  8969. }
  8970. });
  8971. }, j.prototype.css = function(T) {
  8972. var X = this.styles, f = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], Y = "", F = !X;
  8973. if (T && T.color && (T.fill = T.color), X && n(T, function(G, z) {
  8974. X && X[z] !== G && (f[z] = G, F = !0);
  8975. }), F) {
  8976. if (X && (T = a(X, f)), T) {
  8977. if (T.width === null || T.width === "auto")
  8978. delete this.textWidth;
  8979. else if (m.nodeName.toLowerCase() === "text" && T.width)
  8980. var Q = this.textWidth = A(T.width);
  8981. }
  8982. if (this.styles = T, Q && !u && this.renderer.forExport && delete T.width, m.namespaceURI === this.SVG_NS) {
  8983. var k = function(G, z) {
  8984. return "-" + z.toLowerCase();
  8985. };
  8986. n(T, function(G, z) {
  8987. L.indexOf(z) === -1 && (Y += z.replace(/([A-Z])/g, k) + ":" + G + ";");
  8988. }), Y && B(m, "style", Y);
  8989. } else
  8990. b(m, T);
  8991. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), T && T.textOutline && this.applyTextOutline(T.textOutline));
  8992. }
  8993. return this;
  8994. }, j.prototype.dashstyleSetter = function(T) {
  8995. var X = this["stroke-width"];
  8996. if (X === "inherit" && (X = 1), T = T && T.toLowerCase()) {
  8997. var f = 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(",");
  8998. for (T = f.length; T--; )
  8999. f[T] = "" + A(f[T]) * o(X, NaN);
  9000. T = f.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", T);
  9001. }
  9002. }, j.prototype.destroy = function() {
  9003. var T = this, X = T.element || {}, f = T.renderer, m = X.ownerSVGElement, L = f.isSVG && X.nodeName === "SPAN" && T.parentGroup || void 0;
  9004. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, W(T), T.clipPath && m) {
  9005. var Y = T.clipPath;
  9006. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function(F) {
  9007. -1 < F.getAttribute("clip-path").indexOf(Y.element.id) && F.removeAttribute("clip-path");
  9008. }), T.clipPath = Y.destroy();
  9009. }
  9010. if (T.stops) {
  9011. for (m = 0; m < T.stops.length; m++)
  9012. T.stops[m].destroy();
  9013. T.stops.length = 0, T.stops = void 0;
  9014. }
  9015. for (T.safeRemoveChild(X), f.styledMode || T.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  9016. X = L.parentGroup, T.safeRemoveChild(L.div), delete L.div, L = X;
  9017. T.alignTo && x(f.alignedObjects, T), n(T, function(F, Q) {
  9018. T[Q] && T[Q].parentGroup === T && T[Q].destroy && T[Q].destroy(), delete T[Q];
  9019. });
  9020. }, j.prototype.destroyShadows = function() {
  9021. (this.shadows || []).forEach(function(T) {
  9022. this.safeRemoveChild(T);
  9023. }, this), this.shadows = void 0;
  9024. }, j.prototype.destroyTextPath = function(T, X) {
  9025. var f = T.getElementsByTagName("text")[0];
  9026. if (f) {
  9027. if (f.removeAttribute("dx"), f.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && f.getElementsByTagName("textPath").length) {
  9028. for (T = this.textPathWrapper.element.childNodes; T.length; )
  9029. f.appendChild(T[0]);
  9030. f.removeChild(this.textPathWrapper.element);
  9031. }
  9032. } else
  9033. (T.getAttribute("dx") || T.getAttribute("dy")) && (T.removeAttribute("dx"), T.removeAttribute("dy"));
  9034. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  9035. }, j.prototype.dSetter = function(T, X, f) {
  9036. p(T) && (typeof T[0] == "string" && (T = this.renderer.pathToSegments(T)), this.pathArray = T, T = T.reduce(function(m, L, Y) {
  9037. return L && L.join ? (Y ? m + " " : "") + L.join(" ") : (L || "").toString();
  9038. }, "")), /(NaN| {2}|^$)/.test(T) && (T = "M 0 0"), this[X] !== T && (f.setAttribute(X, T), this[X] = T);
  9039. }, j.prototype.fadeOut = function(T) {
  9040. var X = this;
  9041. X.animate({ opacity: 0 }, { duration: o(T, 150), complete: function() {
  9042. X.attr({ y: -9999 }).hide();
  9043. } });
  9044. }, j.prototype.fillSetter = function(T, X, f) {
  9045. typeof T == "string" ? f.setAttribute(X, T) : T && this.complexColor(T, X, f);
  9046. }, j.prototype.getBBox = function(T, X) {
  9047. var f = this.renderer, m = this.element, L = this.styles, Y = this.textStr, F = f.cache, Q = f.cacheKeys, k = m.namespaceURI === this.SVG_NS;
  9048. X = o(X, this.rotation, 0);
  9049. var G = f.styledMode ? m && j.prototype.getStyle.call(m, "font-size") : L && L.fontSize, z;
  9050. if (M(Y)) {
  9051. var V = Y.toString();
  9052. V.indexOf("<") === -1 && (V = V.replace(/[0-9]/g, "0")), V += ["", X, G, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  9053. }
  9054. if (V && !T && (z = F[V]), !z) {
  9055. if (k || f.forExport) {
  9056. try {
  9057. var q = this.fakeTS && function(it) {
  9058. var et = m.querySelector(".highcharts-text-outline");
  9059. et && b(et, { display: it });
  9060. };
  9061. i(q) && q("none"), z = m.getBBox ? a({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  9062. } catch {
  9063. }
  9064. (!z || 0 > z.width) && (z = {
  9065. width: 0,
  9066. height: 0
  9067. });
  9068. } else
  9069. z = this.htmlGetBBox();
  9070. if (f.isSVG && (T = z.width, f = z.height, k && (z.height = f = { "11px,17": 14, "13px,20": 16 }[(G || "") + "," + Math.round(f)] || f), X && (k = X * N, z.width = Math.abs(f * Math.sin(k)) + Math.abs(T * Math.cos(k)), z.height = Math.abs(f * Math.cos(k)) + Math.abs(T * Math.sin(k)))), V && (Y === "" || 0 < z.height)) {
  9071. for (; 250 < Q.length; )
  9072. delete F[Q.shift()];
  9073. F[V] || Q.push(V), F[V] = z;
  9074. }
  9075. }
  9076. return z;
  9077. }, j.prototype.getStyle = function(T) {
  9078. return P.getComputedStyle(this.element || this, "").getPropertyValue(T);
  9079. }, j.prototype.hasClass = function(T) {
  9080. return ("" + this.attr("class")).split(" ").indexOf(T) !== -1;
  9081. }, j.prototype.hide = function(T) {
  9082. return T ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  9083. }, j.prototype.htmlGetBBox = function() {
  9084. return { height: 0, width: 0, x: 0, y: 0 };
  9085. }, j.prototype.init = function(T, X) {
  9086. this.element = X === "span" ? C(X) : w.createElementNS(this.SVG_NS, X), this.renderer = T, c(this, "afterInit");
  9087. }, j.prototype.invert = function(T) {
  9088. return this.inverted = T, this.updateTransform(), this;
  9089. }, j.prototype.on = function(T, X) {
  9090. var f = this.onEvents;
  9091. return f[T] && f[T](), f[T] = O(
  9092. this.element,
  9093. T,
  9094. X
  9095. ), this;
  9096. }, j.prototype.opacitySetter = function(T, X, f) {
  9097. this.opacity = T = Number(Number(T).toFixed(3)), f.setAttribute(X, T);
  9098. }, j.prototype.removeClass = function(T) {
  9099. return this.attr("class", ("" + this.attr("class")).replace(s(T) ? new RegExp("(^| )" + T + "( |$)") : T, " ").replace(/ +/g, " ").trim());
  9100. }, j.prototype.removeTextOutline = function() {
  9101. var T = this.element.querySelector("tspan.highcharts-text-outline");
  9102. T && this.safeRemoveChild(T);
  9103. }, j.prototype.safeRemoveChild = function(T) {
  9104. var X = T.parentNode;
  9105. X && X.removeChild(T);
  9106. }, j.prototype.setRadialReference = function(T) {
  9107. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  9108. return this.element.radialReference = T, X && X.radAttr && X.animate(this.renderer.getRadialAttr(T, X.radAttr)), this;
  9109. }, j.prototype.setTextPath = function(T, X) {
  9110. var f = this.element, m = this.text ? this.text.element : f, L = { textAnchor: "text-anchor" }, Y = !1, F = this.textPathWrapper, Q = !F;
  9111. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  9112. var k = R.filterUserAttributes(X.attributes);
  9113. if (T && X && X.enabled) {
  9114. F && F.element.parentNode === null ? (Q = !0, F = F.destroy()) : F && this.removeTextOutline.call(F.parentGroup), this.options && this.options.padding && (k.dx = -this.options.padding), F || (this.textPathWrapper = F = this.renderer.createElement("textPath"), Y = !0);
  9115. var G = F.element;
  9116. if ((X = T.element.getAttribute("id")) || T.element.setAttribute("id", X = D()), Q)
  9117. for (m.setAttribute("y", 0), l(k.dx) && m.setAttribute("x", -k.dx), T = [].slice.call(m.childNodes), Q = 0; Q < T.length; Q++) {
  9118. var z = T[Q];
  9119. z.nodeType !== P.Node.TEXT_NODE && z.nodeName !== "tspan" || G.appendChild(z);
  9120. }
  9121. Y && F && F.add({ element: m }), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), M(k.dy) && (G.parentNode.setAttribute("dy", k.dy), delete k.dy), M(k.dx) && (G.parentNode.setAttribute("dx", k.dx), delete k.dx), n(k, function(V, q) {
  9122. G.setAttribute(L[q] || q, V);
  9123. }), f.removeAttribute("transform"), this.removeTextOutline.call(F), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = v;
  9124. } else
  9125. F && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(f, T), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  9126. return this;
  9127. }, j.prototype.shadow = function(T, X, f) {
  9128. var m = [], L = this.element, Y = this.oldShadowOptions, F = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, k;
  9129. if (T === !0 ? k = F : typeof T == "object" && (k = a(F, T)), k && (k && Y && n(k, function(it, et) {
  9130. it !== Y[et] && (Q = !0);
  9131. }), Q && this.destroyShadows(), this.oldShadowOptions = k), !k)
  9132. this.destroyShadows();
  9133. else if (!this.shadows) {
  9134. var G = k.opacity / k.width, z = this.parentInverted ? "translate(" + k.offsetY + ", " + k.offsetX + ")" : "translate(" + k.offsetX + ", " + k.offsetY + ")";
  9135. for (F = 1; F <= k.width; F++) {
  9136. var V = L.cloneNode(!1), q = 2 * k.width + 1 - 2 * F;
  9137. B(V, { stroke: T.color || "#000000", "stroke-opacity": G * F, "stroke-width": q, transform: z, fill: "none" }), V.setAttribute("class", (V.getAttribute("class") || "") + " highcharts-shadow"), f && (B(V, "height", Math.max(B(V, "height") - q, 0)), V.cutHeight = q), X ? X.element.appendChild(V) : L.parentNode && L.parentNode.insertBefore(V, L), m.push(V);
  9138. }
  9139. this.shadows = m;
  9140. }
  9141. return this;
  9142. }, j.prototype.show = function(T) {
  9143. return this.attr({ visibility: T ? "inherit" : "visible" });
  9144. }, j.prototype.strokeSetter = function(T, X, f) {
  9145. this[X] = T, this.stroke && this["stroke-width"] ? (j.prototype.fillSetter.call(this, this.stroke, "stroke", f), f.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : X === "stroke-width" && T === 0 && this.hasStroke ? (f.removeAttribute("stroke"), this.hasStroke = !1) : this.renderer.styledMode && this["stroke-width"] && (f.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0);
  9146. }, j.prototype.strokeWidth = function() {
  9147. if (!this.renderer.styledMode)
  9148. return this["stroke-width"] || 0;
  9149. var T = this.getStyle("stroke-width"), X = 0;
  9150. if (T.indexOf("px") === T.length - 2)
  9151. X = A(T);
  9152. else if (T !== "") {
  9153. var f = w.createElementNS(d, "rect");
  9154. B(f, { width: T, "stroke-width": 0 }), this.element.parentNode.appendChild(f), X = f.getBBox().width, f.parentNode.removeChild(f);
  9155. }
  9156. return X;
  9157. }, j.prototype.symbolAttr = function(T) {
  9158. var X = this;
  9159. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(f) {
  9160. X[f] = o(T[f], X[f]);
  9161. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  9162. }, j.prototype.textSetter = function(T) {
  9163. T !== this.textStr && (delete this.textPxLength, this.textStr = T, this.added && this.renderer.buildText(this));
  9164. }, j.prototype.titleSetter = function(T) {
  9165. var X = this.element, f = X.getElementsByTagName("title")[0] || w.createElementNS(this.SVG_NS, "title");
  9166. X.insertBefore ? X.insertBefore(f, X.firstChild) : X.appendChild(f), f.textContent = String(o(T, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  9167. /&gt;/g,
  9168. ">"
  9169. );
  9170. }, j.prototype.toFront = function() {
  9171. var T = this.element;
  9172. return T.parentNode.appendChild(T), this;
  9173. }, j.prototype.translate = function(T, X) {
  9174. return this.attr({ translateX: T, translateY: X });
  9175. }, j.prototype.updateShadows = function(T, X, f) {
  9176. var m = this.shadows;
  9177. if (m)
  9178. for (var L = m.length; L--; )
  9179. f.call(m[L], T === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : T === "d" ? this.d : X, T, m[L]);
  9180. }, j.prototype.updateTransform = function() {
  9181. var T = this.scaleX, X = this.scaleY, f = this.inverted, m = this.rotation, L = this.matrix, Y = this.element, F = this.translateX || 0, Q = this.translateY || 0;
  9182. f && (F += this.width, Q += this.height), F = ["translate(" + F + "," + Q + ")"], M(L) && F.push("matrix(" + L.join(",") + ")"), f ? F.push("rotate(90) scale(-1,1)") : m && F.push("rotate(" + m + " " + o(this.rotationOriginX, Y.getAttribute("x"), 0) + " " + o(this.rotationOriginY, Y.getAttribute("y") || 0) + ")"), (M(T) || M(X)) && F.push("scale(" + o(T, 1) + " " + o(X, 1) + ")"), F.length && Y.setAttribute("transform", F.join(" "));
  9183. }, j.prototype.visibilitySetter = function(T, X, f) {
  9184. T === "inherit" ? f.removeAttribute(X) : this[X] !== T && f.setAttribute(
  9185. X,
  9186. T
  9187. ), this[X] = T;
  9188. }, j.prototype.xGetter = function(T) {
  9189. return this.element.nodeName === "circle" && (T === "x" ? T = "cx" : T === "y" && (T = "cy")), this._defaultGetter(T);
  9190. }, j.prototype.zIndexSetter = function(T, X) {
  9191. var f = this.renderer, m = this.parentGroup, L = (m || f).element || f.box, Y = this.element;
  9192. f = L === f.box;
  9193. var F = !1, Q = this.added, k;
  9194. if (M(T) ? (Y.setAttribute("data-z-index", T), T = +T, this[X] === T && (Q = !1)) : M(this[X]) && Y.removeAttribute("data-z-index"), this[X] = T, Q) {
  9195. for ((T = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, k = X.length - 1; 0 <= k && !F; k--) {
  9196. m = X[k], Q = m.getAttribute("data-z-index");
  9197. var G = !M(Q);
  9198. m !== Y && (0 > T && G && !f && !k ? (L.insertBefore(Y, X[k]), F = !0) : (A(Q) <= T || G && (!M(T) || 0 <= T)) && (L.insertBefore(Y, X[k + 1] || null), F = !0));
  9199. }
  9200. F || (L.insertBefore(Y, X[f ? 3 : 0] || null), F = !0);
  9201. }
  9202. return F;
  9203. }, j;
  9204. }(), 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(j, T) {
  9205. this[T] = j, this.doTransform = !0;
  9206. }, y;
  9207. }), E(h, "Core/Renderer/RendererRegistry.js", [h["Core/Globals.js"]], function(y) {
  9208. var R;
  9209. return function(I) {
  9210. I.rendererTypes = {};
  9211. var Z;
  9212. I.getRendererType = function(H) {
  9213. return H === void 0 && (H = Z), I.rendererTypes[H] || I.rendererTypes[Z];
  9214. }, I.registerRendererType = function(H, $, U) {
  9215. I.rendererTypes[H] = $, (!Z || U) && (Z = H, y.Renderer = $);
  9216. };
  9217. }(R || (R = {})), R;
  9218. }), E(
  9219. h,
  9220. "Core/Renderer/SVG/SVGLabel.js",
  9221. [h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]],
  9222. function(y, R) {
  9223. var I = this && this.__extends || function() {
  9224. var w = function(v, u) {
  9225. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, P) {
  9226. d.__proto__ = P;
  9227. } || function(d, P) {
  9228. for (var O in P)
  9229. P.hasOwnProperty(O) && (d[O] = P[O]);
  9230. }, w(v, u);
  9231. };
  9232. return function(v, u) {
  9233. function d() {
  9234. this.constructor = v;
  9235. }
  9236. w(v, u), v.prototype = u === null ? Object.create(u) : (d.prototype = u.prototype, new d());
  9237. };
  9238. }(), Z = R.defined, H = R.extend, $ = R.isNumber, U = R.merge, W = R.pick, N = R.removeEvent;
  9239. return function(w) {
  9240. function v(u, d, P, O, B, C, b, M, x, a) {
  9241. var c = w.call(this) || this;
  9242. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(u, "g"), c.textStr = d, 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 = u.text(void 0, 0, 0, M).attr({ zIndex: 1 });
  9243. var p;
  9244. return typeof B == "string" && ((p = /^url\((.*?)\)$/.test(B)) || c.renderer.symbols[B]) && (c.symbolKey = B), c.bBox = v.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = u.styledMode || p, c.deferredAttr = {}, c.alignFactor = 0, c;
  9245. }
  9246. return I(v, w), v.prototype.alignSetter = function(u) {
  9247. u = { left: 0, center: 0.5, right: 1 }[u], u !== this.alignFactor && (this.alignFactor = u, this.bBox && $(this.xSetting) && this.attr({ x: this.xSetting }));
  9248. }, v.prototype.anchorXSetter = function(u, d) {
  9249. this.anchorX = u, this.boxAttr(d, Math.round(u) - this.getCrispAdjust() - this.xSetting);
  9250. }, v.prototype.anchorYSetter = function(u, d) {
  9251. this.anchorY = u, this.boxAttr(d, u - this.ySetting);
  9252. }, v.prototype.boxAttr = function(u, d) {
  9253. this.box ? this.box.attr(u, d) : this.deferredAttr[u] = d;
  9254. }, v.prototype.css = function(u) {
  9255. if (u) {
  9256. var d = {};
  9257. u = U(u), v.textProps.forEach(function(O) {
  9258. typeof u[O] < "u" && (d[O] = u[O], delete u[O]);
  9259. }), this.text.css(d);
  9260. var P = "width" in d;
  9261. "fontSize" in d || "fontWeight" in d ? this.updateTextPadding() : P && this.updateBoxSize();
  9262. }
  9263. return y.prototype.css.call(this, u);
  9264. }, v.prototype.destroy = function() {
  9265. N(this.element, "mouseenter"), N(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  9266. }, v.prototype.fillSetter = function(u, d) {
  9267. u && (this.needsBox = !0), this.fill = u, this.boxAttr(d, u);
  9268. }, v.prototype.getBBox = function() {
  9269. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  9270. var u = this.padding, d = W(this.paddingLeft, u);
  9271. return { width: this.width, height: this.height, x: this.bBox.x - d, y: this.bBox.y - u };
  9272. }, v.prototype.getCrispAdjust = function() {
  9273. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  9274. this["stroke-width"],
  9275. 10
  9276. ) : 0) % 2 / 2;
  9277. }, v.prototype.heightSetter = function(u) {
  9278. this.heightSetting = u;
  9279. }, v.prototype.onAdd = function() {
  9280. var u = this.textStr;
  9281. this.text.add(this), this.attr({ text: Z(u) ? u : "", x: this.x, y: this.y }), this.box && Z(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  9282. }, v.prototype.paddingSetter = function(u, d) {
  9283. $(u) ? u !== this[d] && (this[d] = u, this.updateTextPadding()) : this[d] = void 0;
  9284. }, v.prototype.rSetter = function(u, d) {
  9285. this.boxAttr(d, u);
  9286. }, v.prototype.shadow = function(u) {
  9287. return u && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(u)), this;
  9288. }, v.prototype.strokeSetter = function(u, d) {
  9289. this.stroke = u, this.boxAttr(d, u);
  9290. }, v.prototype["stroke-widthSetter"] = function(u, d) {
  9291. u && (this.needsBox = !0), this["stroke-width"] = u, this.boxAttr(d, u);
  9292. }, v.prototype["text-alignSetter"] = function(u) {
  9293. this.textAlign = u;
  9294. }, v.prototype.textSetter = function(u) {
  9295. typeof u < "u" && this.text.attr({ text: u }), this.updateTextPadding();
  9296. }, v.prototype.updateBoxSize = function() {
  9297. var u = this.text.element.style, d = {}, P = this.padding, O = this.bBox = $(this.widthSetting) && $(this.heightSetting) && !this.textAlign || !Z(this.text.textStr) ? v.emptyBBox : this.text.getBBox();
  9298. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * P, u = this.renderer.fontMetrics(u && u.fontSize, this.text), this.baselineOffset = P + Math.min((this.text.firstLineMetrics || u).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - u.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(), d.x = P, d.y = (this.baseline ? -this.baselineOffset : 0) + P, d.width = Math.round(this.width), d.height = Math.round(this.height), this.box.attr(H(d, this.deferredAttr)), this.deferredAttr = {});
  9299. }, v.prototype.updateTextPadding = function() {
  9300. var u = this.text;
  9301. this.updateBoxSize();
  9302. var d = this.baseline ? 0 : this.baselineOffset, P = W(this.paddingLeft, this.padding);
  9303. 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 !== u.x || d !== u.y) && (u.attr("x", P), u.hasBoxWidthChanged && (this.bBox = u.getBBox(!0)), typeof d < "u" && u.attr("y", d)), u.x = P, u.y = d;
  9304. }, v.prototype.widthSetter = function(u) {
  9305. this.widthSetting = $(u) ? u : void 0;
  9306. }, v.prototype.getPaddedWidth = function() {
  9307. var u = this.padding, d = W(this.paddingLeft, u);
  9308. return u = W(this.paddingRight, u), (this.widthSetting || this.bBox.width || 0) + d + u;
  9309. }, v.prototype.xSetter = function(u) {
  9310. this.x = u, this.alignFactor && (u -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(u), this.attr("translateX", this.xSetting);
  9311. }, v.prototype.ySetter = function(u) {
  9312. this.ySetting = this.y = Math.round(u), this.attr("translateY", this.ySetting);
  9313. }, 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;
  9314. }(y);
  9315. }
  9316. ), E(
  9317. h,
  9318. "Core/Renderer/SVG/Symbols.js",
  9319. [h["Core/Utilities.js"]],
  9320. function(y) {
  9321. function R(W, N, w, v, u) {
  9322. var d = [];
  9323. if (u) {
  9324. var P = u.start || 0, O = U(u.r, w);
  9325. w = U(u.r, v || w);
  9326. var B = (u.end || 0) - 1e-3;
  9327. v = u.innerR;
  9328. var C = U(u.open, 1e-3 > Math.abs((u.end || 0) - P - 2 * Math.PI)), b = Math.cos(P), M = Math.sin(P), x = Math.cos(B), a = Math.sin(B);
  9329. P = U(u.longArc, 1e-3 > B - P - Math.PI ? 0 : 1), d.push(["M", W + O * b, N + w * M], ["A", O, w, 0, P, U(u.clockwise, 1), W + O * x, N + w * a]), H(v) && d.push(C ? ["M", W + v * x, N + v * a] : ["L", W + v * x, N + v * a], ["A", v, v, 0, P, H(u.clockwise) ? 1 - u.clockwise : 0, W + v * b, N + v * M]), C || d.push(["Z"]);
  9330. }
  9331. return d;
  9332. }
  9333. function I(W, N, w, v, u) {
  9334. return u && u.r ? Z(W, N, w, v, u) : [["M", W, N], ["L", W + w, N], ["L", W + w, N + v], ["L", W, N + v], ["Z"]];
  9335. }
  9336. function Z(W, N, w, v, u) {
  9337. return u = u && u.r || 0, [["M", W + u, N], ["L", W + w - u, N], ["C", W + w, N, W + w, N, W + w, N + u], ["L", W + w, N + v - u], ["C", W + w, N + v, W + w, N + v, W + w - u, N + v], ["L", W + u, N + v], ["C", W, N + v, W, N + v, W, N + v - u], ["L", W, N + u], ["C", W, N, W, N, W + u, N]];
  9338. }
  9339. var H = y.defined, $ = y.isNumber, U = y.pick;
  9340. return { arc: R, callout: function(W, N, w, v, u) {
  9341. var d = Math.min(u && u.r || 0, w, v), P = d + 6, O = u && u.anchorX;
  9342. u = u && u.anchorY || 0;
  9343. var B = Z(W, N, w, v, { r: d });
  9344. return $(O) && (W + O >= w ? u > N + P && u < N + v - P ? B.splice(3, 1, ["L", W + w, u - 6], ["L", W + w + 6, u], ["L", W + w, u + 6], ["L", W + w, N + v - d]) : B.splice(3, 1, ["L", W + w, v / 2], ["L", O, u], ["L", W + w, v / 2], ["L", W + w, N + v - d]) : 0 >= W + O ? u > N + P && u < N + v - P ? B.splice(7, 1, ["L", W, u + 6], ["L", W - 6, u], ["L", W, u - 6], ["L", W, N + d]) : B.splice(7, 1, ["L", W, v / 2], ["L", O, u], ["L", W, v / 2], ["L", W, N + d]) : u && u > v && O > W + P && O < W + w - P ? B.splice(5, 1, ["L", O + 6, N + v], ["L", O, N + v + 6], ["L", O - 6, N + v], ["L", W + d, N + v]) : u && 0 > u && O > W + P && O < W + w - P && B.splice(1, 1, ["L", O - 6, N], ["L", O, N - 6], ["L", O + 6, N], ["L", w - d, N])), B;
  9345. }, circle: function(W, N, w, v) {
  9346. return R(W + w / 2, N + v / 2, w / 2, v / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  9347. }, diamond: function(W, N, w, v) {
  9348. return [["M", W + w / 2, N], ["L", W + w, N + v / 2], ["L", W + w / 2, N + v], ["L", W, N + v / 2], ["Z"]];
  9349. }, rect: I, roundedRect: Z, square: I, triangle: function(W, N, w, v) {
  9350. return [["M", W + w / 2, N], ["L", W + w, N + v], ["L", W, N + v], ["Z"]];
  9351. }, "triangle-down": function(W, N, w, v) {
  9352. return [["M", W, N], ["L", W + w, N], ["L", W + w / 2, N + v], ["Z"]];
  9353. } };
  9354. }
  9355. ), E(h, "Core/Renderer/SVG/TextBuilder.js", [h["Core/Renderer/HTML/AST.js"], h["Core/Globals.js"], h["Core/Utilities.js"]], function(y, R, I) {
  9356. var Z = R.doc, H = R.SVG_NS, $ = R.win, U = I.attr, W = I.isString, N = I.objectEach, w = I.pick;
  9357. return function() {
  9358. function v(u) {
  9359. var d = u.styles;
  9360. this.renderer = u.renderer, this.svgElement = u, this.width = u.textWidth, this.textLineHeight = d && d.lineHeight, this.textOutline = d && d.textOutline, this.ellipsis = !(!d || d.textOverflow !== "ellipsis"), this.noWrap = !(!d || d.whiteSpace !== "nowrap"), this.fontSize = d && d.fontSize;
  9361. }
  9362. return v.prototype.buildSVG = function() {
  9363. var u = this.svgElement, d = u.element, P = u.renderer, O = w(u.textStr, "").toString(), B = O.indexOf("<") !== -1, C = d.childNodes;
  9364. P = this.width && !u.added && P.box;
  9365. var b = /<br.*?>/g, M = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  9366. if (M !== u.textCache) {
  9367. for (u.textCache = M, delete u.actualWidth, M = C.length; M--; )
  9368. d.removeChild(C[M]);
  9369. B || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || b.test(O)) ? O !== "" && (P && P.appendChild(d), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(u.element), this.modifyDOM(), this.ellipsis && (d.textContent || "").indexOf("…") !== -1 && u.attr(
  9370. "title",
  9371. this.unescapeEntities(u.textStr || "", ["&lt;", "&gt;"])
  9372. ), P && P.removeChild(d)) : d.appendChild(Z.createTextNode(this.unescapeEntities(O))), W(this.textOutline) && u.applyTextOutline && u.applyTextOutline(this.textOutline);
  9373. }
  9374. }, v.prototype.modifyDOM = function() {
  9375. var u = this, d = this.svgElement, P = U(d.element, "x");
  9376. d.firstLineMetrics = void 0;
  9377. for (var O; (O = d.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  9378. d.element.removeChild(O);
  9379. [].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"), function(M, x) {
  9380. M.nextSibling && M.previousSibling && (x === 0 && M.previousSibling.nodeType === 1 && (d.firstLineMetrics = d.renderer.fontMetrics(void 0, M.previousSibling)), U(M, { dy: u.getLineHeight(M.nextSibling), x: P }));
  9381. });
  9382. var B = this.width || 0;
  9383. if (B) {
  9384. var C = function(M, x) {
  9385. var a = M.textContent || "", c = a.replace(/([^\^])-/g, "$1- ").split(" "), p = !u.noWrap && (1 < c.length || 1 < d.element.childNodes.length), i = u.getLineHeight(x), l = 0, s = d.actualWidth;
  9386. if (u.ellipsis)
  9387. a && u.truncate(M, a, void 0, 0, Math.max(0, B - parseInt(u.fontSize || 12, 10)), function(t, n) {
  9388. return t.substring(
  9389. 0,
  9390. n
  9391. ) + "…";
  9392. });
  9393. else if (p) {
  9394. for (a = [], p = []; x.firstChild && x.firstChild !== M; )
  9395. p.push(x.firstChild), x.removeChild(x.firstChild);
  9396. for (; c.length; )
  9397. c.length && !u.noWrap && 0 < l && (a.push(M.textContent || ""), M.textContent = c.join(" ").replace(/- /g, "-")), u.truncate(M, void 0, c, l === 0 && s || 0, B, function(t, n) {
  9398. return c.slice(0, n).join(" ").replace(/- /g, "-");
  9399. }), s = d.actualWidth, l++;
  9400. p.forEach(function(t) {
  9401. x.insertBefore(t, M);
  9402. }), a.forEach(function(t) {
  9403. x.insertBefore(Z.createTextNode(t), M), t = Z.createElementNS(H, "tspan"), t.textContent = "​", U(t, { dy: i, x: P }), x.insertBefore(t, M);
  9404. });
  9405. }
  9406. }, b = function(M) {
  9407. [].slice.call(M.childNodes).forEach(function(x) {
  9408. x.nodeType === $.Node.TEXT_NODE ? C(x, M) : (x.className.baseVal.indexOf("highcharts-br") !== -1 && (d.actualWidth = 0), b(x));
  9409. });
  9410. };
  9411. b(d.element);
  9412. }
  9413. }, v.prototype.getLineHeight = function(u) {
  9414. var d;
  9415. return u = u.nodeType === $.Node.TEXT_NODE ? u.parentElement : u, this.renderer.styledMode || (d = u && /(px|em)$/.test(u.style.fontSize) ? u.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  9416. this.textLineHeight.toString(),
  9417. 10
  9418. ) : this.renderer.fontMetrics(d, u || this.svgElement.element).h;
  9419. }, v.prototype.modifyTree = function(u) {
  9420. var d = this, P = function(O, B) {
  9421. var C = O.attributes;
  9422. C = C === void 0 ? {} : C;
  9423. var b = O.children, M = O.tagName, x = d.renderer.styledMode;
  9424. M === "b" || M === "strong" ? x ? C.class = "highcharts-strong" : C.style = "font-weight:bold;" + (C.style || "") : (M === "i" || M === "em") && (x ? C.class = "highcharts-emphasized" : C.style = "font-style:italic;" + (C.style || "")), W(C.style) && (C.style = C.style.replace(/(;| |^)color([ :])/, "$1fill$2")), M === "br" ? (C.class = "highcharts-br", O.textContent = "​", (B = u[B + 1]) && B.textContent && (B.textContent = B.textContent.replace(/^ +/gm, ""))) : M === "a" && b && b.some(function(a) {
  9425. return a.tagName === "#text";
  9426. }) && (O.children = [{ children: b, tagName: "tspan" }]), M !== "#text" && M !== "a" && (O.tagName = "tspan"), O.attributes = C, b && b.filter(function(a) {
  9427. return a.tagName !== "#text";
  9428. }).forEach(P);
  9429. };
  9430. u.forEach(P);
  9431. }, v.prototype.truncate = function(u, d, P, O, B, C) {
  9432. var b = this.svgElement, M = b.renderer, x = b.rotation, a = [], c = P ? 1 : 0, p = (d || P || "").length, i = p, l, s = function(n, o) {
  9433. o = o || n;
  9434. var A = u.parentNode;
  9435. if (A && typeof a[o] > "u")
  9436. if (A.getSubStringLength)
  9437. try {
  9438. a[o] = O + A.getSubStringLength(0, P ? o + 1 : o);
  9439. } catch {
  9440. }
  9441. else
  9442. M.getSpanWidth && (u.textContent = C(d || P, n), a[o] = O + M.getSpanWidth(b, u));
  9443. return a[o];
  9444. };
  9445. b.rotation = 0;
  9446. var t = s(u.textContent.length);
  9447. if (O + t > B) {
  9448. for (; c <= p; )
  9449. i = Math.ceil((c + p) / 2), P && (l = C(P, i)), t = s(i, l && l.length - 1), c === p ? c = p + 1 : t > B ? p = i - 1 : c = i;
  9450. p === 0 ? u.textContent = "" : d && p === d.length - 1 || (u.textContent = l || C(d || P, i));
  9451. }
  9452. P && P.splice(0, i), b.actualWidth = t, b.rotation = x;
  9453. }, v.prototype.unescapeEntities = function(u, d) {
  9454. return N(this.renderer.escapes, function(P, O) {
  9455. d && d.indexOf(P) !== -1 || (u = u.toString().replace(new RegExp(P, "g"), O));
  9456. }), u;
  9457. }, v;
  9458. }();
  9459. }), 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, R, I, Z, H, $, U, W, N) {
  9460. var w = I.charts, v = I.deg2rad, u = I.doc, d = I.isFirefox, P = I.isMS, O = I.isWebKit, B = I.noop, C = I.SVG_NS, b = I.symbolSizes, M = I.win, x = N.addEvent, a = N.attr, c = N.createElement, p = N.css, i = N.defined, l = N.destroyObjectProperties, s = N.extend, t = N.isArray, n = N.isNumber, o = N.isObject, A = N.isString, _ = N.merge, D = N.pick, j = N.pInt, T = N.uniqueKey, X;
  9461. return I = function() {
  9462. function f(m, L, Y, F, Q, k, G) {
  9463. 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, F, Q, k, G);
  9464. }
  9465. return f.prototype.init = function(m, L, Y, F, Q, k, G) {
  9466. var z = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), V = z.element;
  9467. G || z.css(this.getStyle(F)), m.appendChild(V), a(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && a(V, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = V, this.boxWrapper = z, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(u.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);
  9468. var q;
  9469. d && m.getBoundingClientRect && (L = function() {
  9470. 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" });
  9471. }, L(), this.unSubPixelFix = x(M, "resize", L));
  9472. }, f.prototype.definition = function(m) {
  9473. return new y([m]).addToDOM(this.defs.element);
  9474. }, f.prototype.getReferenceURL = function() {
  9475. if ((d || O) && u.getElementsByTagName("base").length) {
  9476. if (!i(X)) {
  9477. var m = T();
  9478. 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(u.body), p(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  9479. var L = u.elementFromPoint(6, 6);
  9480. X = (L && L.id) === "hitme", u.body.removeChild(m);
  9481. }
  9482. if (X)
  9483. return M.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  9484. }
  9485. return "";
  9486. }, f.prototype.getStyle = function(m) {
  9487. return this.style = s({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  9488. }, f.prototype.setStyle = function(m) {
  9489. this.boxWrapper.css(this.getStyle(m));
  9490. }, f.prototype.isHidden = function() {
  9491. return !this.boxWrapper.getBBox().width;
  9492. }, f.prototype.destroy = function() {
  9493. var m = this.defs;
  9494. 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;
  9495. }, f.prototype.createElement = function(m) {
  9496. var L = new this.Element();
  9497. return L.init(this, m), L;
  9498. }, f.prototype.getRadialAttr = function(m, L) {
  9499. 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] };
  9500. }, f.prototype.buildText = function(m) {
  9501. new W(m).buildSVG();
  9502. }, f.prototype.getContrast = function(m) {
  9503. return m = R.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  9504. }, f.prototype.button = function(m, L, Y, F, Q, k, G, z, V, q) {
  9505. var it = this.label(m, L, Y, V, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? _(Q) : {};
  9506. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(_({ padding: 8, r: 2 }, rt)), !et) {
  9507. rt = _({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  9508. var ct = rt.style;
  9509. delete rt.style, k = _(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(k || {}));
  9510. var gt = k.style;
  9511. delete k.style, G = _(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(G || {}));
  9512. var dt = G.style;
  9513. delete G.style, z = _(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(z || {}));
  9514. var lt = z.style;
  9515. delete z.style;
  9516. }
  9517. return x(it.element, P ? "mouseover" : "mouseenter", function() {
  9518. nt !== 3 && it.setState(1);
  9519. }), x(it.element, P ? "mouseout" : "mouseleave", function() {
  9520. nt !== 3 && it.setState(nt);
  9521. }), it.setState = function(at) {
  9522. 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]);
  9523. }, et || it.attr(rt).css(s({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  9524. return at.stopPropagation();
  9525. }).on("click", function(at) {
  9526. nt !== 3 && F.call(it, at);
  9527. });
  9528. }, f.prototype.crispLine = function(m, L, Y) {
  9529. Y === void 0 && (Y = "round");
  9530. var F = m[0], Q = m[1];
  9531. return i(F[1]) && F[1] === Q[1] && (F[1] = Q[1] = Math[Y](F[1]) - L % 2 / 2), i(F[2]) && F[2] === Q[2] && (F[2] = Q[2] = Math[Y](F[2]) + L % 2 / 2), m;
  9532. }, f.prototype.path = function(m) {
  9533. var L = this.styledMode ? {} : { fill: "none" };
  9534. return t(m) ? L.d = m : o(m) && s(L, m), this.createElement("path").attr(L);
  9535. }, f.prototype.circle = function(m, L, Y) {
  9536. return m = o(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: Y }, L = this.createElement("circle"), L.xSetter = L.ySetter = function(F, Q, k) {
  9537. k.setAttribute("c" + Q, F);
  9538. }, L.attr(m);
  9539. }, f.prototype.arc = function(m, L, Y, F, Q, k) {
  9540. return o(m) ? (F = m, L = F.y, Y = F.r, m = F.x) : F = { innerR: F, start: Q, end: k }, m = this.symbol("arc", m, L, Y, Y, F), m.r = Y, m;
  9541. }, f.prototype.rect = function(m, L, Y, F, Q, k) {
  9542. Q = o(m) ? m.r : Q;
  9543. var G = this.createElement("rect");
  9544. return m = o(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(Y, 0), height: Math.max(F, 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, V, q) {
  9545. G.r = z, a(q, { rx: z, ry: z });
  9546. }, G.rGetter = function() {
  9547. return G.r || 0;
  9548. }, G.attr(m);
  9549. }, f.prototype.setSize = function(m, L, Y) {
  9550. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  9551. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  9552. }, duration: D(
  9553. Y,
  9554. !0
  9555. ) ? void 0 : 0 }), this.alignElements();
  9556. }, f.prototype.g = function(m) {
  9557. var L = this.createElement("g");
  9558. return m ? L.attr({ class: "highcharts-" + m }) : L;
  9559. }, f.prototype.image = function(m, L, Y, F, Q, k) {
  9560. var G = { preserveAspectRatio: "none" }, z = function(q, it) {
  9561. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  9562. };
  9563. n(L) && (G.x = L), n(Y) && (G.y = Y), n(F) && (G.width = F), n(Q) && (G.height = Q);
  9564. var V = this.createElement("image").attr(G);
  9565. return L = function(q) {
  9566. z(V.element, m), k.call(V, q);
  9567. }, k ? (z(
  9568. V.element,
  9569. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  9570. ), Y = new M.Image(), x(Y, "load", L), Y.src = m, Y.complete && L({})) : z(V.element, m), V;
  9571. }, f.prototype.symbol = function(m, L, Y, F, Q, k) {
  9572. var G = this, z = /^url\((.*?)\)$/, V = z.test(m), q = !V && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  9573. if (it) {
  9574. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(Y || 0), F || 0, Q || 0, k));
  9575. var nt = this.path(et);
  9576. G.styledMode || nt.attr("fill", "none"), s(nt, { symbolName: q || void 0, x: L, y: Y, width: F, height: Q }), k && s(nt, k);
  9577. } else if (V) {
  9578. var rt = m.match(z)[1], ct = nt = this.image(rt);
  9579. ct.imgwidth = D(b[rt] && b[rt].width, k && k.width), ct.imgheight = D(b[rt] && b[rt].height, k && k.height);
  9580. var gt = function(dt) {
  9581. return dt.attr({ width: dt.width, height: dt.height });
  9582. };
  9583. ["width", "height"].forEach(function(dt) {
  9584. ct[dt + "Setter"] = function(lt, at) {
  9585. var J = this["img" + at];
  9586. 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 })));
  9587. };
  9588. }), 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() {
  9589. var dt = w[G.chartIndex];
  9590. this.width === 0 && (p(this, { position: "absolute", top: "-999em" }), u.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();
  9591. }, src: rt }), this.imgCount++);
  9592. }
  9593. return nt;
  9594. }, f.prototype.clipRect = function(m, L, Y, F) {
  9595. var Q = T() + "-", k = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  9596. return m = this.rect(m, L, Y, F, 0).add(k), m.id = Q, m.clipPath = k, m.count = 0, m;
  9597. }, f.prototype.text = function(m, L, Y, F) {
  9598. var Q = {};
  9599. return F && (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), (!F || this.forExport && !this.allowHTML) && (m.xSetter = function(k, G, z) {
  9600. for (var V = z.getElementsByTagName("tspan"), q = z.getAttribute(G), it = 0, et; it < V.length; it++)
  9601. et = V[it], et.getAttribute(G) === q && et.setAttribute(G, k);
  9602. z.setAttribute(G, k);
  9603. }), m);
  9604. }, f.prototype.fontMetrics = function(m, L) {
  9605. return m = !this.styledMode && /px/.test(m) || !M.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && H.prototype.getStyle.call(L, "font-size"), m = /px/.test(m) ? j(m) : 12, L = 24 > m ? m + 3 : Math.round(1.2 * m), { h: L, b: Math.round(0.8 * L), f: m };
  9606. }, f.prototype.rotCorr = function(m, L, Y) {
  9607. var F = m;
  9608. return L && Y && (F = Math.max(F * Math.cos(L * v), 4)), { x: -m / 3 * Math.sin(L * v), y: F };
  9609. }, f.prototype.pathToSegments = function(m) {
  9610. for (var L = [], Y = [], F = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  9611. A(Y[0]) && n(m[Q]) && Y.length === F[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]);
  9612. return L.push(Y.slice(0)), L;
  9613. }, f.prototype.label = function(m, L, Y, F, Q, k, G, z, V) {
  9614. return new $(this, m, L, Y, F, Q, k, G, z, V);
  9615. }, f.prototype.alignElements = function() {
  9616. this.alignedObjects.forEach(function(m) {
  9617. return m.align();
  9618. });
  9619. }, f;
  9620. }(), s(I.prototype, { Element: H, SVG_NS: C, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: U, draw: B }), Z.registerRendererType("svg", I, !0), I;
  9621. }), E(h, "Core/Renderer/HTML/HTMLElement.js", [h["Core/Globals.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Utilities.js"]], function(y, R, I) {
  9622. var Z = this && this.__extends || function() {
  9623. var P = function(O, B) {
  9624. return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  9625. C.__proto__ = b;
  9626. } || function(C, b) {
  9627. for (var M in b)
  9628. b.hasOwnProperty(M) && (C[M] = b[M]);
  9629. }, P(O, B);
  9630. };
  9631. return function(O, B) {
  9632. function C() {
  9633. this.constructor = O;
  9634. }
  9635. P(O, B), O.prototype = B === null ? Object.create(B) : (C.prototype = B.prototype, new C());
  9636. };
  9637. }(), H = y.isFirefox, $ = y.isMS, U = y.isWebKit, W = y.win, N = I.css, w = I.defined, v = I.extend, u = I.pick, d = I.pInt;
  9638. return function(P) {
  9639. function O() {
  9640. return P !== null && P.apply(this, arguments) || this;
  9641. }
  9642. return Z(O, P), O.compose = function(B) {
  9643. if (O.composedClasses.indexOf(B) === -1) {
  9644. O.composedClasses.push(B);
  9645. var C = O.prototype, b = B.prototype;
  9646. b.getSpanCorrection = C.getSpanCorrection, b.htmlCss = C.htmlCss, b.htmlGetBBox = C.htmlGetBBox, b.htmlUpdateTransform = C.htmlUpdateTransform, b.setSpanRotation = C.setSpanRotation;
  9647. }
  9648. return B;
  9649. }, O.prototype.getSpanCorrection = function(B, C, b) {
  9650. this.xCorr = -B * b, this.yCorr = -C;
  9651. }, O.prototype.htmlCss = function(B) {
  9652. var C = this.element.tagName === "SPAN" && B && "width" in B, b = u(C && B.width, void 0);
  9653. if (C) {
  9654. delete B.width, this.textWidth = b;
  9655. var M = !0;
  9656. }
  9657. return B && B.textOverflow === "ellipsis" && (B.whiteSpace = "nowrap", B.overflow = "hidden"), this.styles = v(this.styles, B), N(this.element, B), M && this.htmlUpdateTransform(), this;
  9658. }, O.prototype.htmlGetBBox = function() {
  9659. var B = this.element;
  9660. return { x: B.offsetLeft, y: B.offsetTop, width: B.offsetWidth, height: B.offsetHeight };
  9661. }, O.prototype.htmlUpdateTransform = function() {
  9662. if (this.added) {
  9663. var B = this.renderer, C = this.element, b = this.translateX || 0, M = 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;
  9664. if (i = i && i.whiteSpace, N(C, { marginLeft: b, marginTop: M }), !B.styledMode && this.shadows && this.shadows.forEach(function(A) {
  9665. N(A, { marginLeft: b + 1, marginTop: M + 1 });
  9666. }), this.inverted && [].forEach.call(C.childNodes, function(A) {
  9667. B.invertChild(A, C);
  9668. }), C.tagName === "SPAN") {
  9669. var l = this.rotation, s = this.textWidth && d(this.textWidth), t = [l, c, C.innerHTML, this.textWidth, this.textAlign].join(), n = void 0;
  9670. if (n = !1, s !== this.oldTextWidth) {
  9671. if (this.textPxLength)
  9672. var o = this.textPxLength;
  9673. else
  9674. N(C, { width: "", whiteSpace: i || "nowrap" }), o = C.offsetWidth;
  9675. (s > this.oldTextWidth || o > s) && (/[ \-]/.test(C.textContent || C.innerText) || C.style.textOverflow === "ellipsis") && (N(C, { width: o > s || l ? s + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = s, n = !0);
  9676. }
  9677. this.hasBoxWidthChanged = n, t !== this.cTT && (n = B.fontMetrics(C.style.fontSize, C).b, !w(l) || l === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(l, p, n), this.getSpanCorrection(!w(l) && this.textPxLength || C.offsetWidth, n, p, l, c)), N(C, { left: x + (this.xCorr || 0) + "px", top: a + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = l, this.oldAlign = c;
  9678. }
  9679. } else
  9680. this.alignOnAdd = !0;
  9681. }, O.prototype.setSpanRotation = function(B, C, b) {
  9682. var M = {}, x = $ && !/Edge/.test(W.navigator.userAgent) ? "-ms-transform" : U ? "-webkit-transform" : H ? "MozTransform" : W.opera ? "-o-transform" : void 0;
  9683. x && (M[x] = M.transform = "rotate(" + B + "deg)", M[x + (H ? "Origin" : "-origin")] = M.transformOrigin = 100 * C + "% " + b + "px", N(this.element, M));
  9684. }, O.composedClasses = [], O;
  9685. }(R);
  9686. }), E(
  9687. h,
  9688. "Core/Renderer/HTML/HTMLRenderer.js",
  9689. [h["Core/Renderer/HTML/AST.js"], h["Core/Renderer/SVG/SVGElement.js"], h["Core/Renderer/SVG/SVGRenderer.js"], h["Core/Utilities.js"]],
  9690. function(y, R, I, Z) {
  9691. var H = this && this.__extends || function() {
  9692. var w = function(v, u) {
  9693. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, P) {
  9694. d.__proto__ = P;
  9695. } || function(d, P) {
  9696. for (var O in P)
  9697. P.hasOwnProperty(O) && (d[O] = P[O]);
  9698. }, w(v, u);
  9699. };
  9700. return function(v, u) {
  9701. function d() {
  9702. this.constructor = v;
  9703. }
  9704. w(v, u), v.prototype = u === null ? Object.create(u) : (d.prototype = u.prototype, new d());
  9705. };
  9706. }(), $ = Z.attr, U = Z.createElement, W = Z.extend, N = Z.pick;
  9707. return function(w) {
  9708. function v() {
  9709. return w !== null && w.apply(this, arguments) || this;
  9710. }
  9711. return H(v, w), v.compose = function(u) {
  9712. return v.composedClasses.indexOf(u) === -1 && (v.composedClasses.push(u), u.prototype.html = v.prototype.html), u;
  9713. }, v.prototype.html = function(u, d, P) {
  9714. var O = this.createElement("span"), B = O.element, C = O.renderer, b = C.isSVG, M = function(x, a) {
  9715. ["opacity", "visibility"].forEach(function(c) {
  9716. x[c + "Setter"] = function(p, i, l) {
  9717. var s = x.div ? x.div.style : a;
  9718. R.prototype[c + "Setter"].call(this, p, i, l), s && (s[i] = p);
  9719. };
  9720. }), x.addedSetters = !0;
  9721. };
  9722. return O.textSetter = function(x) {
  9723. x !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, N(x, "")), this.textStr = x, O.doTransform = !0);
  9724. }, b && M(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(x, a) {
  9725. a === "align" ? O.alignValue = O.textAlign = x : O[a] = x, O.doTransform = !0;
  9726. }, O.afterSetters = function() {
  9727. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  9728. }, O.attr({ text: u, x: Math.round(d), y: Math.round(P) }).css({ position: "absolute" }), C.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), B.style.whiteSpace = "nowrap", O.css = O.htmlCss, b && (O.add = function(x) {
  9729. var a = C.box.parentNode, c = [];
  9730. if (this.parentGroup = x) {
  9731. var p = x.div;
  9732. if (!p) {
  9733. for (; x; )
  9734. c.push(x), x = x.parentGroup;
  9735. c.reverse().forEach(function(i) {
  9736. function l(o, A) {
  9737. i[A] = o, A === "translateX" ? n.left = o + "px" : n.top = o + "px", i.doTransform = !0;
  9738. }
  9739. var s = $(i.element, "class"), t = i.styles || {};
  9740. p = i.div = i.div || U("div", s ? { className: s } : void 0, {
  9741. position: "absolute",
  9742. left: (i.translateX || 0) + "px",
  9743. top: (i.translateY || 0) + "px",
  9744. display: i.display,
  9745. opacity: i.opacity,
  9746. cursor: t.cursor,
  9747. pointerEvents: t.pointerEvents,
  9748. visibility: i.visibility
  9749. }, p || a);
  9750. var n = p.style;
  9751. W(i, { classSetter: function(o) {
  9752. return function(A) {
  9753. this.element.setAttribute("class", A), o.className = A;
  9754. };
  9755. }(p), on: function() {
  9756. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  9757. }, translateXSetter: l, translateYSetter: l }), i.addedSetters || M(i);
  9758. });
  9759. }
  9760. } else
  9761. p = a;
  9762. return p.appendChild(B), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  9763. }), O;
  9764. }, v.composedClasses = [], v;
  9765. }(I);
  9766. }
  9767. ), E(h, "Core/Axis/AxisDefaults.js", [], function() {
  9768. var y;
  9769. return function(R) {
  9770. R.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: {
  9771. autoRotation: void 0,
  9772. autoRotationLimit: 80,
  9773. distance: void 0,
  9774. enabled: !0,
  9775. indentation: 10,
  9776. overflow: "justify",
  9777. padding: 5,
  9778. reserveSpace: void 0,
  9779. rotation: void 0,
  9780. staggerLines: 0,
  9781. step: 0,
  9782. useHTML: !1,
  9783. x: 0,
  9784. zIndex: 7,
  9785. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  9786. }, 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: {
  9787. align: "middle",
  9788. rotation: 0,
  9789. useHTML: !1,
  9790. x: 0,
  9791. y: 0,
  9792. style: { color: "#666666" }
  9793. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, R.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: {
  9794. animation: {},
  9795. allowOverlap: !1,
  9796. enabled: !1,
  9797. crop: !0,
  9798. overflow: "justify",
  9799. formatter: function() {
  9800. var I = this.axis.chart.numberFormatter;
  9801. return I(this.total, -1);
  9802. },
  9803. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  9804. }, gridLineWidth: 1, lineWidth: 0 }, R.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, R.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, R.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, R.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  9805. }(y || (y = {})), y;
  9806. }), E(h, "Core/Foundation.js", [h["Core/Utilities.js"]], function(y) {
  9807. var R = y.addEvent, I = y.isFunction, Z = y.objectEach, H = y.removeEvent, $;
  9808. return function(U) {
  9809. U.registerEventOptions = function(W, N) {
  9810. W.eventOptions = W.eventOptions || {}, Z(N.events, function(w, v) {
  9811. W.eventOptions[v] !== w && (W.eventOptions[v] && (H(W, v, W.eventOptions[v]), delete W.eventOptions[v]), I(w) && (W.eventOptions[v] = w, R(W, v, w)));
  9812. });
  9813. };
  9814. }($ || ($ = {})), $;
  9815. }), E(
  9816. h,
  9817. "Core/Axis/Tick.js",
  9818. [h["Core/FormatUtilities.js"], h["Core/Globals.js"], h["Core/Utilities.js"]],
  9819. function(y, R, I) {
  9820. var Z = R.deg2rad, H = I.clamp, $ = I.correctFloat, U = I.defined, W = I.destroyObjectProperties, N = I.extend, w = I.fireEvent, v = I.isNumber, u = I.merge, d = I.objectEach, P = I.pick;
  9821. return R = function() {
  9822. function O(B, C, b, M, x) {
  9823. this.isNewLabel = this.isNew = !0, this.axis = B, this.pos = C, this.type = b || "", this.parameters = x || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, w(this, "init"), b || M || this.addLabel();
  9824. }
  9825. return O.prototype.addLabel = function() {
  9826. var B = this, C = B.axis, b = C.options, M = C.chart, x = C.categories, a = C.logarithmic, c = C.names, p = B.pos, i = P(B.options && B.options.labels, b.labels), l = C.tickPositions, s = p === l[0], t = p === l[l.length - 1], n = (!i.step || i.step === 1) && C.tickInterval === 1;
  9827. l = l.info;
  9828. var o = B.label, A;
  9829. if (x = this.parameters.category || (x ? P(x[p], c[p], p) : p), a && v(x) && (x = $(a.lin2log(x))), C.dateTime)
  9830. if (l)
  9831. var _ = M.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid && l.higherRanks[p] || l.unitName]), D = _.main;
  9832. else
  9833. v(x) && (D = C.dateTime.getXDateFormat(x, b.dateTimeLabelFormats || {}));
  9834. B.isFirst = s, B.isLast = t;
  9835. var j = {
  9836. axis: C,
  9837. chart: M,
  9838. dateTimeLabelFormat: D,
  9839. isFirst: s,
  9840. isLast: t,
  9841. pos: p,
  9842. tick: B,
  9843. tickPositionInfo: l,
  9844. value: x
  9845. };
  9846. w(this, "labelFormat", j);
  9847. var T = function(f) {
  9848. return i.formatter ? i.formatter.call(f, f) : i.format ? (f.text = C.defaultLabelFormatter.call(f), y.format(i.format, f, M)) : C.defaultLabelFormatter.call(f, f);
  9849. };
  9850. b = T.call(j, j);
  9851. var X = _ && _.list;
  9852. B.shortenLabel = X ? function() {
  9853. for (A = 0; A < X.length; A++)
  9854. if (N(j, { dateTimeLabelFormat: X[A] }), o.attr({ text: T.call(j, j) }), o.getBBox().width < C.getSlotWidth(B) - 2 * i.padding)
  9855. return;
  9856. o.attr({ text: "" });
  9857. } : void 0, n && C._addedPlotLB && B.moveLabel(b, i), U(o) || B.movedLabel ? o && o.textStr !== b && !n && (!o.textWidth || i.style.width || o.styles.width || o.css({ width: null }), o.attr({ text: b }), o.textPxLength = o.getBBox().width) : (B.label = o = B.createLabel({ x: 0, y: 0 }, b, i), B.rotation = 0);
  9858. }, O.prototype.createLabel = function(B, C, b) {
  9859. var M = this.axis, x = M.chart;
  9860. return (B = U(C) && b.enabled ? x.renderer.text(C, B.x, B.y, b.useHTML).add(M.labelGroup) : null) && (x.styledMode || B.css(u(b.style)), B.textPxLength = B.getBBox().width), B;
  9861. }, O.prototype.destroy = function() {
  9862. W(
  9863. this,
  9864. this.axis
  9865. );
  9866. }, O.prototype.getPosition = function(B, C, b, M) {
  9867. var x = this.axis, a = x.chart, c = M && a.oldChartHeight || a.chartHeight;
  9868. return B = { x: B ? $(x.translate(C + b, null, null, M) + x.transB) : x.left + x.offset + (x.opposite ? (M && a.oldChartWidth || a.chartWidth) - x.right - x.left : 0), y: B ? c - x.bottom + x.offset - (x.opposite ? x.height : 0) : $(c - x.translate(C + b, null, null, M) - x.transB) }, B.y = H(B.y, -1e5, 1e5), w(this, "afterGetPosition", { pos: B }), B;
  9869. }, O.prototype.getLabelPosition = function(B, C, b, M, x, a, c, p) {
  9870. var i = this.axis, l = i.transA, s = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, n = i.tickRotCorr || { x: 0, y: 0 }, o = M || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), A = {}, _ = x.y;
  9871. return U(_) || (_ = i.side === 0 ? b.rotation ? -8 : -b.getBBox().height : i.side === 2 ? n.y + 8 : Math.cos(b.rotation * Z) * (n.y - b.getBBox(!1, 0).height / 2)), B = B + x.x + o + n.x - (a && M ? a * l * (s ? -1 : 1) : 0), C = C + _ - (a && !M ? 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 = B, A.y = Math.round(C), w(this, "afterGetLabelPosition", { pos: A, tickmarkOffset: a, index: c }), A;
  9872. }, O.prototype.getLabelSize = function() {
  9873. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  9874. }, O.prototype.getMarkPath = function(B, C, b, M, x, a) {
  9875. return a.crispLine([["M", B, C], ["L", B + (x ? 0 : -b), C + (x ? b : 0)]], M);
  9876. }, O.prototype.handleOverflow = function(B) {
  9877. var C = this.axis, b = C.options.labels, M = B.x, x = C.chart.chartWidth, a = C.chart.spacing, c = P(C.labelLeft, Math.min(C.pos, a[3]));
  9878. a = P(C.labelRight, Math.max(C.isRadial ? 0 : C.pos + C.len, x - a[1]));
  9879. 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), n = {}, o = t, A = 1, _;
  9880. i || b.overflow !== "justify" ? 0 > i && M - l * s < c ? _ = Math.round(M / Math.cos(i * Z) - c) : 0 < i && M + l * s > a && (_ = Math.round((x - M) / Math.cos(i * Z))) : (x = M + (1 - l) * s, M - l * s < c ? o = B.x + o * (1 - l) - c : x > a && (o = a - B.x + o * l, A = -1), o = Math.min(t, o), o < t && C.labelAlign === "center" && (B.x += A * (t - o - l * (t - Math.min(s, o)))), (s > o || C.autoRotation && (p.styles || {}).width) && (_ = o)), _ && (this.shortenLabel ? this.shortenLabel() : (n.width = Math.floor(_) + "px", (b.style || {}).textOverflow || (n.textOverflow = "ellipsis"), p.css(n)));
  9881. }, O.prototype.moveLabel = function(B, C) {
  9882. var b = this, M = b.label, x = b.axis, a = x.reversed, c = !1;
  9883. if (M && M.textStr === B ? (b.movedLabel = M, c = !0, delete b.label) : d(x.ticks, function(i) {
  9884. c || i.isNew || i === b || !i.label || i.label.textStr !== B || (b.movedLabel = i.label, c = !0, i.labelPos = b.movedLabel.xy, delete i.label);
  9885. }), !c && (b.labelPos || M)) {
  9886. var p = b.labelPos || M.xy;
  9887. M = 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: M, y: x }, B, C), b.movedLabel && b.movedLabel.attr({ opacity: 0 });
  9888. }
  9889. }, O.prototype.render = function(B, C, b) {
  9890. var M = this.axis, x = M.horiz, a = this.pos, c = P(this.tickmarkOffset, M.tickmarkOffset);
  9891. a = this.getPosition(x, a, c, C), c = a.x;
  9892. var p = a.y;
  9893. M = x && c === M.pos + M.len || !x && p === M.pos ? -1 : 1, x = P(b, this.label && this.label.newOpacity, 1), b = P(b, 1), this.isActive = !0, this.renderGridLine(C, b, M), this.renderMark(a, b, M), this.renderLabel(a, C, x, B), this.isNew = !1, w(this, "afterRender");
  9894. }, O.prototype.renderGridLine = function(B, C, b) {
  9895. var M = this.axis, x = M.options, a = {}, c = this.pos, p = this.type, i = P(
  9896. this.tickmarkOffset,
  9897. M.tickmarkOffset
  9898. ), l = M.chart.renderer, s = this.gridLine, t = x.gridLineWidth, n = x.gridLineColor, o = x.gridLineDashStyle;
  9899. this.type === "minor" && (t = x.minorGridLineWidth, n = x.minorGridLineColor, o = x.minorGridLineDashStyle), s || (M.chart.styledMode || (a.stroke = n, a["stroke-width"] = t || 0, a.dashstyle = o), p || (a.zIndex = 1), B && (C = 0), this.gridLine = s = l.path().attr(a).addClass("highcharts-" + (p ? p + "-" : "") + "grid-line").add(M.gridGroup)), s && (b = M.getPlotLinePath({ value: c + i, lineWidth: s.strokeWidth() * b, force: "pass", old: B })) && s[B || this.isNew ? "attr" : "animate"]({ d: b, opacity: C });
  9900. }, O.prototype.renderMark = function(B, C, b) {
  9901. var M = this.axis, x = M.options, a = M.chart.renderer, c = this.type, p = M.tickSize(c ? c + "Tick" : "tick"), i = B.x;
  9902. B = B.y;
  9903. var l = P(x[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && M.isXAxis ? 1 : 0);
  9904. x = x[c !== "minor" ? "tickColor" : "minorTickColor"];
  9905. var s = this.mark, t = !s;
  9906. p && (M.opposite && (p[0] = -p[0]), s || (this.mark = s = a.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(M.axisGroup), M.chart.styledMode || s.attr({ stroke: x, "stroke-width": l })), s[t ? "attr" : "animate"]({ d: this.getMarkPath(
  9907. i,
  9908. B,
  9909. p[0],
  9910. s.strokeWidth() * b,
  9911. M.horiz,
  9912. a
  9913. ), opacity: C }));
  9914. }, O.prototype.renderLabel = function(B, C, b, M) {
  9915. var x = this.axis, a = x.horiz, c = x.options, p = this.label, i = c.labels, l = i.step;
  9916. x = P(this.tickmarkOffset, x.tickmarkOffset);
  9917. var s = B.x;
  9918. B = B.y;
  9919. var t = !0;
  9920. p && v(s) && (p.xy = B = this.getLabelPosition(s, B, p, a, i, x, M, 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(B), l && M % l && (t = !1), t && v(B.y) ? (B.opacity = b, p[this.isNewLabel ? "attr" : "animate"](B), this.isNewLabel = !1) : (p.attr("y", -9999), this.isNewLabel = !0));
  9921. }, O.prototype.replaceMovedLabel = function() {
  9922. var B = this.label, C = this.axis, b = C.reversed;
  9923. if (B && !this.isNew) {
  9924. var M = C.horiz ? b ? C.left : C.width + C.left : B.xy.x;
  9925. b = C.horiz ? B.xy.y : b ? C.width + C.top : C.top, B.animate({ x: M, y: b, opacity: 0 }, void 0, B.destroy), delete this.label;
  9926. }
  9927. C.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  9928. }, O;
  9929. }(), R;
  9930. }
  9931. ), E(h, "Core/Axis/Axis.js", [
  9932. h["Core/Animation/AnimationUtilities.js"],
  9933. h["Core/Axis/AxisDefaults.js"],
  9934. h["Core/Color/Color.js"],
  9935. h["Core/DefaultOptions.js"],
  9936. h["Core/Foundation.js"],
  9937. h["Core/Globals.js"],
  9938. h["Core/Axis/Tick.js"],
  9939. h["Core/Utilities.js"]
  9940. ], function(y, R, I, Z, H, $, U, W) {
  9941. var N = y.animObject, w = Z.defaultOptions, v = H.registerEventOptions, u = $.deg2rad, d = W.arrayMax, P = W.arrayMin, O = W.clamp, B = W.correctFloat, C = W.defined, b = W.destroyObjectProperties, M = 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, n = W.normalizeTickInterval, o = W.objectEach, A = W.pick, _ = W.relativeLength, D = W.removeEvent, j = W.splat, T = W.syncTimeout;
  9942. return y = function() {
  9943. function X(f, m) {
  9944. 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(f, m);
  9945. }
  9946. return X.prototype.init = function(f, m) {
  9947. var L = m.isX;
  9948. this.chart = f, this.horiz = f.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);
  9949. var Y = this.options, F = Y.labels, Q = Y.type;
  9950. 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, j(f.options.tooltip.crosshairs)[L ? 0 : 1]), this.crosshair = m === !0 ? {} : m, f.axes.indexOf(this) === -1 && (L ? f.axes.splice(f.xAxis.length, 0, this) : f.axes.push(this), f[this.coll].push(this)), this.series = this.series || [], f.inverted && !this.isZAxis && L && typeof this.reversed > "u" && (this.reversed = !0), this.labelRotation = l(F.rotation) ? F.rotation : void 0, v(this, Y), c(this, "afterInit");
  9951. }, X.prototype.setOptions = function(f) {
  9952. this.options = t(R.defaultXAxisOptions, this.coll === "yAxis" && R.defaultYAxisOptions, [R.defaultTopAxisOptions, R.defaultRightAxisOptions, R.defaultBottomAxisOptions, R.defaultLeftAxisOptions][this.side], t(w[this.coll], f)), c(this, "afterSetOptions", { userOptions: f });
  9953. }, X.prototype.defaultLabelFormatter = function(f) {
  9954. var m = this.axis;
  9955. f = this.chart.numberFormatter;
  9956. var L = l(this.value) ? this.value : NaN, Y = m.chart.time, F = this.dateTimeLabelFormat, Q = w.lang, k = Q.numericSymbols;
  9957. Q = Q.numericSymbolMagnitude || 1e3;
  9958. var G = m.logarithmic ? Math.abs(L) : m.tickInterval, z = k && k.length;
  9959. if (m.categories)
  9960. var V = "" + this.value;
  9961. else if (F)
  9962. V = Y.dateFormat(F, L);
  9963. else if (z && 1e3 <= G)
  9964. for (; z-- && typeof V > "u"; )
  9965. m = Math.pow(Q, z + 1), G >= m && 10 * L % m === 0 && k[z] !== null && L !== 0 && (V = f(L / m, -1) + k[z]);
  9966. return typeof V > "u" && (V = 1e4 <= Math.abs(L) ? f(L, -1) : f(L, -1, void 0, "")), V;
  9967. }, X.prototype.getSeriesExtremes = function() {
  9968. var f = this, m = f.chart, L;
  9969. c(this, "getSeriesExtremes", null, function() {
  9970. f.hasVisibleSeries = !1, f.dataMin = f.dataMax = f.threshold = null, f.softThreshold = !f.isXAxis, f.stacking && f.stacking.buildStacks(), f.series.forEach(function(Y) {
  9971. if (Y.visible || !m.options.chart.ignoreHiddenSeries) {
  9972. var F = Y.options, Q = F.threshold;
  9973. if (f.hasVisibleSeries = !0, f.positiveValuesOnly && 0 >= Q && (Q = null), f.isXAxis) {
  9974. if (F = Y.xData, F.length) {
  9975. F = f.logarithmic ? F.filter(f.validatePositiveValue) : F, L = Y.getXExtremes(F);
  9976. var k = L.min, G = L.max;
  9977. l(k) || k instanceof Date || (F = F.filter(l), L = Y.getXExtremes(F), k = L.min, G = L.max), F.length && (f.dataMin = Math.min(A(f.dataMin, k), k), f.dataMax = Math.max(A(f.dataMax, G), G));
  9978. }
  9979. } else
  9980. Y = Y.applyExtremes(), l(Y.dataMin) && (k = Y.dataMin, f.dataMin = Math.min(A(f.dataMin, k), k)), l(Y.dataMax) && (G = Y.dataMax, f.dataMax = Math.max(A(f.dataMax, G), G)), C(Q) && (f.threshold = Q), (!F.softThreshold || f.positiveValuesOnly) && (f.softThreshold = !1);
  9981. }
  9982. });
  9983. }), c(this, "afterGetSeriesExtremes");
  9984. }, X.prototype.translate = function(f, m, L, Y, F, Q) {
  9985. var k = this.linkedParent || this, G = Y && k.old ? k.old.min : k.min, z = k.minPixelPadding;
  9986. F = (k.isOrdinal || k.brokenAxis && k.brokenAxis.hasBreaks || k.logarithmic && F) && k.lin2val;
  9987. var V = 1, q = 0;
  9988. return Y = Y && k.old ? k.old.transA : k.transA, Y || (Y = k.transA), L && (V *= -1, q = k.len), k.reversed && (V *= -1, q -= V * (k.sector || k.len)), m ? (f = (f * V + q - z) / Y + G, F && (f = k.lin2val(f))) : (F && (f = k.val2lin(f)), f = l(G) ? V * (f - G) * Y + q + V * z + (l(Q) ? Y * Q : 0) : void 0), f;
  9989. }, X.prototype.toPixels = function(f, m) {
  9990. return this.translate(
  9991. f,
  9992. !1,
  9993. !this.horiz,
  9994. null,
  9995. !0
  9996. ) + (m ? 0 : this.pos);
  9997. }, X.prototype.toValue = function(f, m) {
  9998. return this.translate(f - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  9999. }, X.prototype.getPlotLinePath = function(f) {
  10000. function m(at, J, tt) {
  10001. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : lt = !0), at;
  10002. }
  10003. var L = this, Y = L.chart, F = L.left, Q = L.top, k = f.old, G = f.value, z = f.lineWidth, V = k && Y.oldChartHeight || Y.chartHeight, q = k && Y.oldChartWidth || Y.chartWidth, it = L.transB, et = f.translatedValue, nt = f.force, rt, ct, gt, dt, lt;
  10004. return f = {
  10005. value: G,
  10006. lineWidth: z,
  10007. old: k,
  10008. force: nt,
  10009. acrossPanes: f.acrossPanes,
  10010. translatedValue: et
  10011. }, c(this, "getPlotLinePath", f, function(at) {
  10012. et = A(et, L.translate(G, null, null, k)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round(V - et - it), l(et) ? L.horiz ? (ct = Q, dt = V - L.bottom, rt = gt = m(rt, F, F + L.width)) : (rt = F, 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);
  10013. }), f.path;
  10014. }, X.prototype.getLinearTickPositions = function(f, m, L) {
  10015. var Y = B(Math.floor(m / f) * f);
  10016. L = B(Math.ceil(L / f) * f);
  10017. var F = [], Q;
  10018. if (B(Y + f) === Y && (Q = 20), this.single)
  10019. return [m];
  10020. for (m = Y; m <= L && (F.push(m), m = B(m + f, Q), m !== k); )
  10021. var k = m;
  10022. return F;
  10023. }, X.prototype.getMinorTickInterval = function() {
  10024. var f = this.options;
  10025. return f.minorTicks === !0 ? A(f.minorTickInterval, "auto") : f.minorTicks === !1 ? null : f.minorTickInterval;
  10026. }, X.prototype.getMinorTickPositions = function() {
  10027. var f = this.options, m = this.tickPositions, L = this.minorTickInterval, Y = this.pointRangePadding || 0, F = this.min - Y;
  10028. Y = this.max + Y;
  10029. var Q = Y - F, k = [];
  10030. if (Q && Q / L < this.len / 3) {
  10031. var G = this.logarithmic;
  10032. if (G)
  10033. this.paddedTicks.forEach(function(z, V, q) {
  10034. V && k.push.apply(
  10035. k,
  10036. G.getLogTickPositions(L, q[V - 1], q[V], !0)
  10037. );
  10038. });
  10039. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  10040. k = k.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), F, Y, f.startOfWeek));
  10041. else
  10042. for (f = F + (m[0] - F) % L; f <= Y && f !== k[0]; f += L)
  10043. k.push(f);
  10044. }
  10045. return k.length !== 0 && this.trimTicks(k), k;
  10046. }, X.prototype.adjustForMinRange = function() {
  10047. var f = this.options, m = this.logarithmic, L = this.min, Y = this.max, F = 0, Q, k, G, z;
  10048. if (this.isXAxis && typeof this.minRange > "u" && !m && (C(f.min) || C(f.max) || C(f.floor) || C(f.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  10049. if (G = et.xData, z = et.xIncrement ? 1 : G.length - 1, 1 < G.length)
  10050. for (Q = z; 0 < Q; Q--)
  10051. k = G[Q] - G[Q - 1], (!F || k < F) && (F = k);
  10052. }), this.minRange = Math.min(5 * F, this.dataMax - this.dataMin))), Y - L < this.minRange) {
  10053. var V = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - Y + L) / 2;
  10054. it = [L - it, A(f.min, L - it)], V && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = d(it), Y = [L + q, A(f.max, L + q)], V && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = P(Y), Y - L < q && (it[0] = Y - q, it[1] = A(f.min, Y - q), L = d(it));
  10055. }
  10056. this.min = L, this.max = Y;
  10057. }, X.prototype.getClosest = function() {
  10058. var f;
  10059. return this.categories ? f = 1 : this.series.forEach(function(m) {
  10060. var L = m.closestPointRange, Y = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  10061. !m.noSharedTooltip && C(L) && Y && (f = C(f) ? Math.min(f, L) : L);
  10062. }), f;
  10063. }, X.prototype.nameToX = function(f) {
  10064. var m = i(this.categories), L = m ? this.categories : this.names, Y = f.options.x;
  10065. if (f.series.requireSorting = !1, C(Y) || (Y = this.options.uniqueNames ? m ? L.indexOf(f.name) : A(L.keys[f.name], -1) : f.series.autoIncrement()), Y === -1) {
  10066. if (!m)
  10067. var F = L.length;
  10068. } else
  10069. F = Y;
  10070. return typeof F < "u" && (this.names[F] = f.name, this.names.keys[f.name] = F), F;
  10071. }, X.prototype.updateNames = function() {
  10072. var f = this, m = this.names;
  10073. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  10074. delete m.keys[L];
  10075. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  10076. L.xIncrement = null, (!L.points || L.isDirtyData) && (f.max = Math.max(f.max, L.xData.length - 1), L.processData(), L.generatePoints()), L.data.forEach(function(Y, F) {
  10077. if (Y && Y.options && typeof Y.name < "u") {
  10078. var Q = f.nameToX(Y);
  10079. typeof Q < "u" && Q !== Y.x && (Y.x = Q, L.xData[F] = Q);
  10080. }
  10081. });
  10082. }));
  10083. }, X.prototype.setAxisTranslation = function() {
  10084. var f = this, m = f.max - f.min, L = f.linkedParent, Y = !!f.categories, F = f.isXAxis, Q = f.axisPointRange || 0, k = 0, G = 0, z = f.transA;
  10085. if (F || Y || Q) {
  10086. var V = f.getClosest();
  10087. L ? (k = L.minPointOffset, G = L.pointRangePadding) : f.series.forEach(function(q) {
  10088. var it = Y ? 1 : F ? A(q.options.pointRange, V, 0) : f.axisPointRange || 0, et = q.options.pointPlacement;
  10089. Q = Math.max(Q, it), (!f.single || Y) && (q = q.is("xrange") ? !F : F, k = Math.max(k, q && s(et) ? 0 : it / 2), G = Math.max(G, q && et === "on" ? 0 : it));
  10090. }), L = f.ordinal && f.ordinal.slope && V ? f.ordinal.slope / V : 1, f.minPointOffset = k *= L, f.pointRangePadding = G *= L, f.pointRange = Math.min(Q, f.single && Y ? 1 : m), F && (f.closestPointRange = V);
  10091. }
  10092. f.translationSlope = f.transA = z = f.staticScale || f.len / (m + G || 1), f.transB = f.horiz ? f.left : f.bottom, f.minPixelPadding = z * k, c(this, "afterSetAxisTranslation");
  10093. }, X.prototype.minFromRange = function() {
  10094. return this.max - this.range;
  10095. }, X.prototype.setTickInterval = function(f) {
  10096. var m = this.chart, L = this.logarithmic, Y = this.options, F = this.isXAxis, Q = this.isLinked, k = Y.tickPixelInterval, G = this.categories, z = this.softThreshold, V = Y.maxPadding, q = Y.minPadding, it = l(Y.tickInterval) && 0 <= Y.tickInterval ? Y.tickInterval : void 0, et = l(this.threshold) ? this.threshold : null;
  10097. this.dateTime || G || Q || this.getTickAmount();
  10098. var nt = A(this.userMin, Y.min), rt = A(this.userMax, Y.max);
  10099. if (Q) {
  10100. this.linkedParent = m[this.coll][Y.linkedTo];
  10101. var ct = this.linkedParent.getExtremes();
  10102. this.min = A(ct.min, ct.dataMin), this.max = A(ct.max, ct.dataMax), Y.type !== this.linkedParent.options.type && x(11, 1, m);
  10103. } else {
  10104. if (z && C(et)) {
  10105. if (this.dataMin >= et)
  10106. ct = et, q = 0;
  10107. else if (this.dataMax <= et) {
  10108. var gt = et;
  10109. V = 0;
  10110. }
  10111. }
  10112. this.min = A(nt, ct, this.dataMin), this.max = A(rt, gt, this.dataMax);
  10113. }
  10114. if (L && (this.positiveValuesOnly && !f && 0 >= Math.min(this.min, A(this.dataMin, this.min)) && x(10, 1, m), this.min = B(L.log2lin(this.min), 16), this.max = B(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) && V && (this.max += m * V)), 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)), F && !f) {
  10115. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  10116. this.series.forEach(function(lt) {
  10117. lt.forceCrop = lt.forceCropping && lt.forceCropping(), lt.processData(dt);
  10118. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  10119. }
  10120. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), f = A(Y.minTickInterval, this.dateTime && !this.series.some(function(lt) {
  10121. return lt.noSharedTooltip;
  10122. }) ? this.closestPointRange : 0), !it && this.tickInterval < f && (this.tickInterval = f), this.dateTime || this.logarithmic || it || (this.tickInterval = n(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();
  10123. }, X.prototype.setTickPositions = function() {
  10124. var f = this.options, m = f.tickPositions, L = this.getMinorTickInterval(), Y = this.hasVerticalPanning(), F = this.coll === "colorAxis", Q = (F || !Y) && f.startOnTick;
  10125. Y = (F || !Y) && f.endOnTick, F = f.tickPositioner, this.tickmarkOffset = this.categories && f.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 || f.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, f.units), this.min, this.max, f.startOfWeek, this.ordinal && this.ordinal.positions, this.closestPointRange, !0) : this.logarithmic ? this.logarithmic.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(
  10126. this.tickInterval,
  10127. this.min,
  10128. this.max
  10129. ) : (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, F && (F = F.apply(this, [this.min, this.max]))) && (this.tickPositions = L = F), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, Y), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(k) {
  10130. return k.is("heatmap") && k.options.pointPlacement === "between";
  10131. }) && (this.min -= 0.5, this.max += 0.5), m || F || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  10132. }, X.prototype.trimTicks = function(f, m, L) {
  10133. var Y = f[0], F = f[f.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  10134. if (c(this, "trimTicks"), !this.isLinked) {
  10135. if (m && Y !== -1 / 0)
  10136. this.min = Y;
  10137. else
  10138. for (; this.min - Q > f[0]; )
  10139. f.shift();
  10140. if (L)
  10141. this.max = F;
  10142. else
  10143. for (; this.max + Q < f[f.length - 1]; )
  10144. f.pop();
  10145. f.length === 0 && C(Y) && !this.options.tickPositions && f.push((F + Y) / 2);
  10146. }
  10147. }, X.prototype.alignToOthers = function() {
  10148. var f = {}, m = this.options, L;
  10149. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(Y) {
  10150. var F = Y.options;
  10151. F = [Y.horiz ? F.left : F.top, F.width, F.height, F.pane].join(), Y.series.length && (f[F] ? L = !0 : f[F] = 1);
  10152. }), L;
  10153. }, X.prototype.getTickAmount = function() {
  10154. var f = this.options, m = f.tickPixelInterval, L = f.tickAmount;
  10155. !C(f.tickInterval) && !L && this.len < m && !this.isRadial && !this.logarithmic && f.startOnTick && f.endOnTick && (L = 2), !L && this.alignToOthers() && (L = Math.ceil(this.len / m) + 1), 4 > L && (this.finalTickAmt = L, L = 5), this.tickAmount = L;
  10156. }, X.prototype.adjustTickAmount = function() {
  10157. var f = this.options, m = this.tickInterval, L = this.tickPositions, Y = this.tickAmount, F = this.finalTickAmt, Q = L && L.length, k = A(this.threshold, this.softThreshold ? 0 : null);
  10158. if (this.hasData() && l(this.min) && l(this.max)) {
  10159. if (Q < Y) {
  10160. for (; L.length < Y; )
  10161. L.length % 2 || this.min === k ? L.push(B(L[L.length - 1] + m)) : L.unshift(B(L[0] - m));
  10162. this.transA *= (Q - 1) / (Y - 1), this.min = f.startOnTick ? L[0] : Math.min(this.min, L[0]), this.max = f.endOnTick ? L[L.length - 1] : Math.max(this.max, L[L.length - 1]);
  10163. } else
  10164. Q > Y && (this.tickInterval *= 2, this.setTickPositions());
  10165. if (C(F)) {
  10166. for (m = f = L.length; m--; )
  10167. (F === 3 && m % 2 === 1 || 2 >= F && 0 < m && m < f - 1) && L.splice(m, 1);
  10168. this.finalTickAmt = void 0;
  10169. }
  10170. }
  10171. }, X.prototype.setScale = function() {
  10172. var f = !1, m = !1;
  10173. this.series.forEach(function(Y) {
  10174. f = f || Y.isDirtyData || Y.isDirty, m = m || Y.xAxis && Y.xAxis.isDirty || !1;
  10175. }), this.setAxisSize();
  10176. var L = this.len !== (this.old && this.old.len);
  10177. L || f || 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(), f && this.panningState && (this.panningState.isDirty = !0), c(this, "afterSetScale");
  10178. }, X.prototype.setExtremes = function(f, m, L, Y, F) {
  10179. var Q = this, k = Q.chart;
  10180. L = A(L, !0), Q.series.forEach(function(G) {
  10181. delete G.kdTree;
  10182. }), F = a(F, { min: f, max: m }), c(Q, "setExtremes", F, function() {
  10183. Q.userMin = f, Q.userMax = m, Q.eventArgs = F, L && k.redraw(Y);
  10184. });
  10185. }, X.prototype.zoom = function(f, m) {
  10186. var L = this, Y = this.dataMin, F = this.dataMax, Q = this.options, k = Math.min(Y, A(Q.min, Y)), G = Math.max(F, A(Q.max, F));
  10187. return f = { newMin: f, newMax: m }, c(this, "zoom", f, function(z) {
  10188. var V = z.newMin, q = z.newMax;
  10189. (V !== L.min || q !== L.max) && (L.allowZoomOutside || (C(Y) && (V < k && (V = k), V > G && (V = G)), C(F) && (q < k && (q = k), q > G && (q = G))), L.displayBtn = typeof V < "u" || typeof q < "u", L.setExtremes(V, q, !1, void 0, { trigger: "zoom" })), z.zoomed = !0;
  10190. }), f.zoomed;
  10191. }, X.prototype.setAxisSize = function() {
  10192. var f = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], Y = this.horiz, F = this.width = Math.round(_(A(m.width, f.plotWidth - L[3] + L[1]), f.plotWidth)), Q = this.height = Math.round(_(A(m.height, f.plotHeight - L[0] + L[2]), f.plotHeight)), k = this.top = Math.round(_(A(m.top, f.plotTop + L[0]), f.plotHeight, f.plotTop));
  10193. m = this.left = Math.round(_(A(m.left, f.plotLeft + L[3]), f.plotWidth, f.plotLeft)), this.bottom = f.chartHeight - Q - k, this.right = f.chartWidth - F - m, this.len = Math.max(Y ? F : Q, 0), this.pos = Y ? m : k;
  10194. }, X.prototype.getExtremes = function() {
  10195. var f = this.logarithmic;
  10196. return { min: f ? B(f.lin2log(this.min)) : this.min, max: f ? B(f.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  10197. }, X.prototype.getThreshold = function(f) {
  10198. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  10199. return m = m ? m.lin2log(this.max) : this.max, f === null || f === -1 / 0 ? f = L : f === 1 / 0 ? f = m : L > f ? f = L : m < f && (f = m), this.translate(f, 0, 1, 0, 1);
  10200. }, X.prototype.autoLabelAlign = function(f) {
  10201. var m = (A(f, 0) - 90 * this.side + 720) % 360;
  10202. return f = { align: "center" }, c(
  10203. this,
  10204. "autoLabelAlign",
  10205. f,
  10206. function(L) {
  10207. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  10208. }
  10209. ), f.align;
  10210. }, X.prototype.tickSize = function(f) {
  10211. var m = this.options, L = A(m[f === "tick" ? "tickWidth" : "minorTickWidth"], f === "tick" && this.isXAxis && !this.categories ? 1 : 0), Y = m[f === "tick" ? "tickLength" : "minorTickLength"];
  10212. if (L && Y) {
  10213. m[f + "Position"] === "inside" && (Y = -Y);
  10214. var F = [Y, L];
  10215. }
  10216. return f = { tickSize: F }, c(this, "afterTickSize", f), f.tickSize;
  10217. }, X.prototype.labelMetrics = function() {
  10218. var f = this.tickPositions && this.tickPositions[0] || 0;
  10219. return this.chart.renderer.fontMetrics(
  10220. this.options.labels.style.fontSize,
  10221. this.ticks[f] && this.ticks[f].label
  10222. );
  10223. }, X.prototype.unsquish = function() {
  10224. var f = this.options.labels, m = this.horiz, L = this.tickInterval, Y = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), F = f.rotation, Q = this.labelMetrics(), k = Math.max(this.max - this.min, 0), G = function(nt) {
  10225. var rt = nt / (Y || 1);
  10226. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > k && nt !== 1 / 0 && Y !== 1 / 0 && k && (rt = Math.ceil(k / L)), B(rt * L);
  10227. }, z = L, V, q, it = Number.MAX_VALUE;
  10228. if (m) {
  10229. if (!f.staggerLines && !f.step)
  10230. if (l(F))
  10231. var et = [F];
  10232. else
  10233. Y < f.autoRotationLimit && (et = f.autoRotation);
  10234. et && et.forEach(function(nt) {
  10235. if (nt === F || nt && -90 <= nt && 90 >= nt) {
  10236. q = G(Math.abs(Q.h / Math.sin(u * nt)));
  10237. var rt = q + Math.abs(nt / 360);
  10238. rt < it && (it = rt, V = nt, z = q);
  10239. }
  10240. });
  10241. } else
  10242. f.step || (z = G(Q.h));
  10243. return this.autoRotation = et, this.labelRotation = A(V, l(F) ? F : 0), z;
  10244. }, X.prototype.getSlotWidth = function(f) {
  10245. var m = this.chart, L = this.horiz, Y = this.options.labels, F = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  10246. if (f && l(f.slotWidth))
  10247. return f.slotWidth;
  10248. if (L && 2 > Y.step)
  10249. return Y.rotation ? 0 : (this.staggerLines || 1) * this.len / F;
  10250. if (!L) {
  10251. if (f = Y.style.width, f !== void 0)
  10252. return parseInt(String(f), 10);
  10253. if (Q)
  10254. return Q - m.spacing[3];
  10255. }
  10256. return 0.33 * m.chartWidth;
  10257. }, X.prototype.renderUnsquish = function() {
  10258. var f = this.chart, m = f.renderer, L = this.tickPositions, Y = this.ticks, F = this.options.labels, Q = F.style, k = this.horiz, G = this.getSlotWidth(), z = Math.max(1, Math.round(G - 2 * F.padding)), V = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  10259. if (s(F.rotation) || (V.rotation = F.rotation || 0), L.forEach(function(gt) {
  10260. gt = Y[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  10261. }), this.maxLabelLength = et, this.autoRotation)
  10262. et > z && et > q.h ? V.rotation = this.labelRotation : this.labelRotation = 0;
  10263. else if (G) {
  10264. var nt = z;
  10265. if (!it) {
  10266. var rt = "clip";
  10267. for (z = L.length; !k && z--; ) {
  10268. var ct = L[z];
  10269. (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"));
  10270. }
  10271. }
  10272. }
  10273. V.rotation && (nt = et > 0.5 * f.chartHeight ? 0.33 * f.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = F.align || this.autoLabelAlign(this.labelRotation)) && (V.align = this.labelAlign), L.forEach(function(gt) {
  10274. var dt = (gt = Y[gt]) && gt.label, lt = Q.width, at = {};
  10275. dt && (dt.attr(V), 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 = V.rotation);
  10276. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  10277. }, X.prototype.hasData = function() {
  10278. return this.series.some(function(f) {
  10279. return f.hasData();
  10280. }) || this.options.showEmpty && C(this.min) && C(this.max);
  10281. }, X.prototype.addTitle = function(f) {
  10282. var m = this.chart.renderer, L = this.horiz, Y = this.opposite, F = this.options.title, Q = this.chart.styledMode, k;
  10283. this.axisTitle || ((k = F.textAlign) || (k = (L ? { low: "left", middle: "center", high: "right" } : { low: Y ? "right" : "left", middle: "center", high: Y ? "left" : "right" })[F.align]), this.axisTitle = m.text(F.text || "", 0, 0, F.useHTML).attr({ zIndex: 7, rotation: F.rotation, align: k }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t(F.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || F.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[f ? "show" : "hide"](f);
  10284. }, X.prototype.generateTick = function(f) {
  10285. var m = this.ticks;
  10286. m[f] ? m[f].addLabel() : m[f] = new U(this, f);
  10287. }, X.prototype.getOffset = function() {
  10288. var f = this, m = this, L = m.chart, Y = m.horiz, F = m.options, Q = m.side, k = m.ticks, G = m.tickPositions, z = m.coll, V = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = F.title, rt = F.labels, ct = L.axisOffset;
  10289. L = L.clipOffset;
  10290. var gt = [
  10291. -1,
  10292. 1,
  10293. 1,
  10294. -1
  10295. ][Q], dt = F.className, lt, at = 0, J = 0, tt = 0;
  10296. if (m.showAxis = lt = et || F.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  10297. var st = function(pt, yt, vt) {
  10298. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + z.toLowerCase() + yt + " " + (f.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add(V);
  10299. };
  10300. m.gridGroup = st("grid", "-grid", F.gridZIndex), m.axisGroup = st("axis", "", F.zIndex), m.labelGroup = st("axis-labels", "-labels", rt.zIndex);
  10301. }
  10302. if (et || m.isLinked ? (G.forEach(function(pt) {
  10303. m.generateTick(pt);
  10304. }), 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) {
  10305. tt = Math.max(k[pt].getLabelSize(), tt);
  10306. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : o(k, function(pt, yt) {
  10307. pt.destroy(), delete k[yt];
  10308. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(lt), lt && nt.reserveSpace !== !1)) {
  10309. m.titleOffset = at = m.axisTitle.getBBox()[Y ? "height" : "width"];
  10310. var ht = nt.offset;
  10311. J = C(ht) ? 0 : A(nt.margin, Y ? 5 : 10);
  10312. }
  10313. m.renderLine(), m.offset = gt * A(F.offset, ct[Q] ? ct[Q] + (F.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), F = !m.axisLine || F.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(L[it], F)), c(this, "afterGetOffset");
  10314. }, X.prototype.getLinePath = function(f) {
  10315. var m = this.chart, L = this.opposite, Y = this.offset, F = this.horiz, Q = this.left + (L ? this.width : 0) + Y;
  10316. return Y = m.chartHeight - this.bottom - (L ? this.height : 0) + Y, L && (f *= -1), m.renderer.crispLine([["M", F ? this.left : Q, F ? Y : this.top], ["L", F ? m.chartWidth - this.right : Q, F ? Y : m.chartHeight - this.bottom]], f);
  10317. }, X.prototype.renderLine = function() {
  10318. 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 }));
  10319. }, X.prototype.getTitlePosition = function() {
  10320. var f = this.horiz, m = this.left, L = this.top, Y = this.len, F = this.options.title, Q = f ? m : L, k = this.opposite, G = this.offset, z = F.x, V = F.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics(F.style.fontSize, q);
  10321. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), Y = { low: Q + (f ? 0 : Y), middle: Q + Y / 2, high: Q + (f ? Y : 0) }[F.align], m = (f ? L + this.height : m) + (f ? 1 : -1) * (k ? -1 : 1) * this.axisTitleMargin + [-q, q, it.f, -q][this.side], f = { x: f ? Y + z : m + (k ? this.width : 0) + G + z, y: f ? m + V - (k ? this.height : 0) + G : Y + V }, c(this, "afterGetTitlePosition", { titlePosition: f }), f;
  10322. }, X.prototype.renderMinorTick = function(f, m) {
  10323. var L = this.minorTicks;
  10324. L[f] || (L[f] = new U(this, f, "minor")), m && L[f].isNew && L[f].render(null, !0), L[f].render(null, !1, 1);
  10325. }, X.prototype.renderTick = function(f, m, L) {
  10326. var Y = this.ticks;
  10327. (!this.isLinked || f >= this.min && f <= this.max || this.grid && this.grid.isColumn) && (Y[f] || (Y[f] = new U(this, f)), L && Y[f].isNew && Y[f].render(
  10328. m,
  10329. !0,
  10330. -1
  10331. ), Y[f].render(m));
  10332. }, X.prototype.render = function() {
  10333. var f = this, m = f.chart, L = f.logarithmic, Y = f.options, F = f.isLinked, Q = f.tickPositions, k = f.axisTitle, G = f.ticks, z = f.minorTicks, V = f.alternateBands, q = Y.stackLabels, it = Y.alternateGridColor, et = f.tickmarkOffset, nt = f.axisLine, rt = f.showAxis, ct = N(m.renderer.globalAnimation), gt, dt;
  10334. if (f.labelEdge.length = 0, f.overlap = !1, [G, z, V].forEach(function(at) {
  10335. o(at, function(J) {
  10336. J.isActive = !1;
  10337. });
  10338. }), f.hasData() || F) {
  10339. var lt = f.chart.hasRendered && f.old && l(f.old.min);
  10340. f.minorTickInterval && !f.categories && f.getMinorTickPositions().forEach(function(at) {
  10341. f.renderMinorTick(at, lt);
  10342. }), Q.length && (Q.forEach(function(at, J) {
  10343. f.renderTick(at, J, lt);
  10344. }), et && (f.min === 0 || f.single) && (G[-1] || (G[-1] = new U(f, -1, null, !0)), G[-1].render(-1))), it && Q.forEach(function(at, J) {
  10345. dt = typeof Q[J + 1] < "u" ? Q[J + 1] + et : f.max - et, J % 2 === 0 && at < f.max && dt <= f.max + (m.polar ? -et : et) && (V[at] || (V[at] = new $.PlotLineOrBand(f)), gt = at + et, V[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, V[at].render(), V[at].isActive = !0);
  10346. }), f._addedPlotLB || (f._addedPlotLB = !0, (Y.plotLines || []).concat(Y.plotBands || []).forEach(function(at) {
  10347. f.addPlotBandOrLine(at);
  10348. }));
  10349. }
  10350. [G, z, V].forEach(function(at) {
  10351. var J = [], tt = ct.duration;
  10352. o(at, function(st, ht) {
  10353. st.isActive || (st.render(ht, !1, 0), st.isActive = !1, J.push(ht));
  10354. }), T(function() {
  10355. for (var st = J.length; st--; )
  10356. at[J[st]] && !at[J[st]].isActive && (at[J[st]].destroy(), delete at[J[st]]);
  10357. }, at !== V && m.hasRendered && tt ? tt : 0);
  10358. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), k && rt && (Y = f.getTitlePosition(), l(Y.y) ? (k[k.isNew ? "attr" : "animate"](Y), k.isNew = !1) : (k.attr("y", -9999), k.isNew = !0)), q && q.enabled && f.stacking && f.stacking.renderStackTotals(), f.old = { len: f.len, max: f.max, min: f.min, transA: f.transA, userMax: f.userMax, userMin: f.userMin }, f.isDirty = !1, c(this, "afterRender");
  10359. }, X.prototype.redraw = function() {
  10360. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(f) {
  10361. f.render();
  10362. })), this.series.forEach(function(f) {
  10363. f.isDirty = !0;
  10364. });
  10365. }, X.prototype.getKeepProps = function() {
  10366. return this.keepProps || X.keepProps;
  10367. }, X.prototype.destroy = function(f) {
  10368. var m = this, L = m.plotLinesAndBands, Y = this.eventOptions;
  10369. if (c(this, "destroy", { keepEvents: f }), f || D(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  10370. b(Q);
  10371. }), L)
  10372. for (f = L.length; f--; )
  10373. L[f].destroy();
  10374. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  10375. m[Q] && (m[Q] = m[Q].destroy());
  10376. });
  10377. for (var F in m.plotLinesAndBandsGroups)
  10378. m.plotLinesAndBandsGroups[F] = m.plotLinesAndBandsGroups[F].destroy();
  10379. o(m, function(Q, k) {
  10380. m.getKeepProps().indexOf(k) === -1 && delete m[k];
  10381. }), this.eventOptions = Y;
  10382. }, X.prototype.drawCrosshair = function(f, m) {
  10383. var L = this.crosshair, Y = A(L && L.snap, !0), F = this.chart, Q, k = this.cross;
  10384. if (c(this, "drawCrosshair", { e: f, point: m }), f || (f = this.cross && this.cross.e), L && (C(m) || !Y) !== !1) {
  10385. if (Y ? C(m) && (Q = A(this.coll !== "colorAxis" ? m.crosshairPos : null, this.isXAxis ? m.plotX : this.len - m.plotY)) : Q = f && (this.horiz ? f.chartX - this.pos : this.len - f.chartY + this.pos), C(Q)) {
  10386. var G = { value: m && (this.isXAxis ? m.x : A(m.stackY, m.y)), translatedValue: Q };
  10387. F.polar && a(G, { isCrosshair: !0, chartX: f && f.chartX, chartY: f && f.chartY, point: m }), G = this.getPlotLinePath(G) || null;
  10388. }
  10389. if (!C(G)) {
  10390. this.hideCrosshair();
  10391. return;
  10392. }
  10393. Y = this.categories && !this.isRadial, k || (this.cross = k = F.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (Y ? "category " : "thin ") + (L.className || "")).attr({ zIndex: A(L.zIndex, 2) }).add(), F.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 = f;
  10394. } else
  10395. this.hideCrosshair();
  10396. c(this, "afterDrawCrosshair", { e: f, point: m });
  10397. }, X.prototype.hideCrosshair = function() {
  10398. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  10399. }, X.prototype.hasVerticalPanning = function() {
  10400. var f = this.chart.options.chart.panning;
  10401. return !!(f && f.enabled && /y/.test(f.type));
  10402. }, X.prototype.validatePositiveValue = function(f) {
  10403. return l(f) && 0 < f;
  10404. }, X.prototype.update = function(f, m) {
  10405. var L = this.chart;
  10406. f = t(this.userOptions, f), this.destroy(!0), this.init(L, f), L.isDirtyBox = !0, A(m, !0) && L.redraw();
  10407. }, X.prototype.remove = function(f) {
  10408. for (var m = this.chart, L = this.coll, Y = this.series, F = Y.length; F--; )
  10409. Y[F] && Y[F].remove(!1);
  10410. M(m.axes, this), M(m[L], this), m[L].forEach(function(Q, k) {
  10411. Q.options.index = Q.userOptions.index = k;
  10412. }), this.destroy(), m.isDirtyBox = !0, A(f, !0) && m.redraw();
  10413. }, X.prototype.setTitle = function(f, m) {
  10414. this.update({ title: f }, m);
  10415. }, X.prototype.setCategories = function(f, m) {
  10416. this.update(
  10417. { categories: f },
  10418. m
  10419. );
  10420. }, X.defaultOptions = R.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  10421. }(), y;
  10422. }), E(h, "Core/Axis/DateTimeAxis.js", [h["Core/Utilities.js"]], function(y) {
  10423. var R = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.timeUnits, $;
  10424. return function(U) {
  10425. function W() {
  10426. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  10427. }
  10428. function N(u) {
  10429. u.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new v(this));
  10430. }
  10431. var w = [];
  10432. U.compose = function(u) {
  10433. return w.indexOf(u) === -1 && (w.push(u), u.keepProps.push("dateTime"), u.prototype.getTimeTicks = W, R(u, "init", N)), u;
  10434. };
  10435. var v = function() {
  10436. function u(d) {
  10437. this.axis = d;
  10438. }
  10439. return u.prototype.normalizeTimeTickInterval = function(d, P) {
  10440. 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]];
  10441. P = O[O.length - 1];
  10442. var B = H[P[0]], C = P[1], b;
  10443. for (b = 0; b < O.length && (P = O[b], B = H[P[0]], C = P[1], !(O[b + 1] && d <= (B * C[C.length - 1] + H[O[b + 1][0]]) / 2)); b++)
  10444. ;
  10445. return B === H.year && d < 5 * B && (C = [1, 2, 5]), d = Z(d / B, C, P[0] === "year" ? Math.max(I(d / B), 1) : 1), { unitRange: B, count: d, unitName: P[0] };
  10446. }, u.prototype.getXDateFormat = function(d, P) {
  10447. var O = this.axis;
  10448. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, d, O.options.startOfWeek, P) || P.year : P.day;
  10449. }, u;
  10450. }();
  10451. U.Additions = v;
  10452. }($ || ($ = {})), $;
  10453. }), E(h, "Core/Axis/LogarithmicAxis.js", [h["Core/Utilities.js"]], function(y) {
  10454. var R = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.pick, $;
  10455. return function(U) {
  10456. function W(u) {
  10457. var d = this.logarithmic;
  10458. u.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : d || (this.logarithmic = new v(this));
  10459. }
  10460. function N() {
  10461. var u = this.logarithmic;
  10462. u && (this.lin2val = function(d) {
  10463. return u.lin2log(d);
  10464. }, this.val2lin = function(d) {
  10465. return u.log2lin(d);
  10466. });
  10467. }
  10468. var w = [];
  10469. U.compose = function(u) {
  10470. return w.indexOf(u) === -1 && (w.push(u), u.keepProps.push("logarithmic"), R(u, "init", W), R(u, "afterInit", N)), u;
  10471. };
  10472. var v = function() {
  10473. function u(d) {
  10474. this.axis = d;
  10475. }
  10476. return u.prototype.getLogTickPositions = function(d, P, O, B) {
  10477. var C = this.axis, b = C.len, M = C.options, x = [];
  10478. if (B || (this.minorAutoInterval = void 0), 0.5 <= d)
  10479. d = Math.round(d), x = C.getLinearTickPositions(d, P, O);
  10480. else if (0.08 <= d) {
  10481. var a = Math.floor(P), c, p = M = void 0;
  10482. for (b = 0.3 < d ? [1, 2, 4] : 0.15 < d ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; a < O + 1 && !p; a++) {
  10483. var i = b.length;
  10484. for (c = 0; c < i && !p; c++) {
  10485. var l = this.log2lin(this.lin2log(a) * b[c]);
  10486. l > P && (!B || M <= O) && typeof M < "u" && x.push(M), M > O && (p = !0), M = l;
  10487. }
  10488. }
  10489. } else
  10490. P = this.lin2log(P), O = this.lin2log(O), d = B ? C.getMinorTickInterval() : M.tickInterval, d = H(d === "auto" ? null : d, this.minorAutoInterval, M.tickPixelInterval / (B ? 5 : 1) * (O - P) / ((B ? b / C.tickPositions.length : b) || 1)), d = Z(d, void 0, I(d)), x = C.getLinearTickPositions(d, P, O).map(this.log2lin), B || (this.minorAutoInterval = d / 5);
  10491. return B || (C.tickInterval = d), x;
  10492. }, u.prototype.lin2log = function(d) {
  10493. return Math.pow(10, d);
  10494. }, u.prototype.log2lin = function(d) {
  10495. return Math.log(d) / Math.LN10;
  10496. }, u;
  10497. }();
  10498. U.Additions = v;
  10499. }($ || ($ = {})), $;
  10500. }), E(h, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [h["Core/Utilities.js"]], function(y) {
  10501. var R = y.erase, I = y.extend, Z = y.isNumber, H;
  10502. return function($) {
  10503. var U = [], W;
  10504. $.compose = function(w, v) {
  10505. return W || (W = w), U.indexOf(v) === -1 && (U.push(v), I(v.prototype, N.prototype)), v;
  10506. };
  10507. var N = function() {
  10508. function w() {
  10509. }
  10510. return w.prototype.getPlotBandPath = function(v, u, d) {
  10511. d === void 0 && (d = this.options);
  10512. var P = this.getPlotLinePath({ value: u, force: !0, acrossPanes: d.acrossPanes }), O = [], B = this.horiz;
  10513. if (u = !Z(this.min) || !Z(this.max) || v < this.min && u < this.min || v > this.max && u > this.max, v = this.getPlotLinePath({ value: v, force: !0, acrossPanes: d.acrossPanes }), d = 1, v && P) {
  10514. if (u) {
  10515. var C = v.toString() === P.toString();
  10516. d = 0;
  10517. }
  10518. for (u = 0; u < v.length; u += 2) {
  10519. var b = v[u], M = v[u + 1], x = P[u], a = P[u + 1];
  10520. b[0] !== "M" && b[0] !== "L" || M[0] !== "M" && M[0] !== "L" || x[0] !== "M" && x[0] !== "L" || a[0] !== "M" && a[0] !== "L" || (B && x[1] === b[1] ? (x[1] += d, a[1] += d) : B || x[2] !== b[2] || (x[2] += d, a[2] += d), O.push(["M", b[1], b[2]], ["L", M[1], M[2]], ["L", a[1], a[2]], ["L", x[1], x[2]], ["Z"])), O.isFlat = C;
  10521. }
  10522. }
  10523. return O;
  10524. }, w.prototype.addPlotBand = function(v) {
  10525. return this.addPlotBandOrLine(v, "plotBands");
  10526. }, w.prototype.addPlotLine = function(v) {
  10527. return this.addPlotBandOrLine(
  10528. v,
  10529. "plotLines"
  10530. );
  10531. }, w.prototype.addPlotBandOrLine = function(v, u) {
  10532. var d = this, P = this.userOptions, O = new W(this, v);
  10533. if (this.visible && (O = O.render()), O) {
  10534. if (this._addedPlotLB || (this._addedPlotLB = !0, (P.plotLines || []).concat(P.plotBands || []).forEach(function(C) {
  10535. d.addPlotBandOrLine(C);
  10536. })), u) {
  10537. var B = P[u] || [];
  10538. B.push(v), P[u] = B;
  10539. }
  10540. this.plotLinesAndBands.push(O);
  10541. }
  10542. return O;
  10543. }, w.prototype.removePlotBandOrLine = function(v) {
  10544. var u = this.plotLinesAndBands, d = this.options, P = this.userOptions;
  10545. if (u) {
  10546. for (var O = u.length; O--; )
  10547. u[O].id === v && u[O].destroy();
  10548. [d.plotLines || [], P.plotLines || [], d.plotBands || [], P.plotBands || []].forEach(function(B) {
  10549. for (O = B.length; O--; )
  10550. (B[O] || {}).id === v && R(B, B[O]);
  10551. });
  10552. }
  10553. }, w.prototype.removePlotBand = function(v) {
  10554. this.removePlotBandOrLine(v);
  10555. }, w.prototype.removePlotLine = function(v) {
  10556. this.removePlotBandOrLine(v);
  10557. }, w;
  10558. }();
  10559. }(H || (H = {})), H;
  10560. }), E(h, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [h["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], h["Core/Utilities.js"]], function(y, R) {
  10561. var I = R.arrayMax, Z = R.arrayMin, H = R.defined, $ = R.destroyObjectProperties, U = R.erase, W = R.fireEvent, N = R.merge, w = R.objectEach, v = R.pick;
  10562. return R = function() {
  10563. function u(d, P) {
  10564. this.axis = d, P && (this.options = P, this.id = P.id);
  10565. }
  10566. return u.compose = function(d) {
  10567. return y.compose(u, d);
  10568. }, u.prototype.render = function() {
  10569. W(this, "render");
  10570. var d = this, P = d.axis, O = P.horiz, B = P.logarithmic, C = d.options, b = C.color, M = v(C.zIndex, 0), x = C.events, a = {}, c = P.chart.renderer, p = C.label, i = d.label, l = C.to, s = C.from, t = C.value, n = d.svgElem, o = [], A = H(s) && H(l);
  10571. o = H(t);
  10572. var _ = !n, D = { class: "highcharts-plot-" + (A ? "band " : "line ") + (C.className || "") }, j = A ? "bands" : "lines";
  10573. if (B && (s = B.log2lin(s), l = B.log2lin(l), t = B.log2lin(t)), P.chart.styledMode || (o ? (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 = M, j += "-" + M, (B = P.plotLinesAndBandsGroups[j]) || (P.plotLinesAndBandsGroups[j] = B = c.g("plot-" + j).attr(a).add()), _ && (d.svgElem = n = c.path().attr(D).add(B)), o)
  10574. o = P.getPlotLinePath({
  10575. value: t,
  10576. lineWidth: n.strokeWidth(),
  10577. acrossPanes: C.acrossPanes
  10578. });
  10579. else if (A)
  10580. o = P.getPlotBandPath(s, l, C);
  10581. else
  10582. return;
  10583. return !d.eventsAdded && x && (w(x, function(T, X) {
  10584. n.on(X, function(f) {
  10585. x[X].apply(d, [f]);
  10586. });
  10587. }), d.eventsAdded = !0), (_ || !n.d) && o && o.length ? n.attr({ d: o }) : n && (o ? (n.show(!0), n.animate({ d: o })) : n.d && (n.hide(), i && (d.label = i = i.destroy()))), p && (H(p.text) || H(p.formatter)) && o && o.length && 0 < P.width && 0 < P.height && !o.isFlat ? (p = N({ 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(
  10588. p,
  10589. o,
  10590. A,
  10591. M
  10592. )) : i && i.hide(), d;
  10593. }, u.prototype.renderLabel = function(d, P, O, B) {
  10594. var C = this.axis, b = C.chart.renderer, M = this.label;
  10595. M || (this.label = M = b.text(this.getLabelText(d), 0, 0, d.useHTML).attr({ align: d.textAlign || d.align, rotation: d.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (d.className || ""), zIndex: B }).add(), C.chart.styledMode || M.css(N({ textOverflow: "ellipsis" }, d.style))), B = 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(B), b = Z(P), M.align(
  10596. d,
  10597. !1,
  10598. { x: O, y: b, width: I(B) - O, height: I(P) - b }
  10599. ), M.alignValue && M.alignValue !== "left" || M.css({ width: (M.rotation === 90 ? C.height - (M.alignAttr.y - C.top) : C.width - (M.alignAttr.x - C.left)) + "px" }), M.show(!0);
  10600. }, u.prototype.getLabelText = function(d) {
  10601. return H(d.formatter) ? d.formatter.call(this) : d.text;
  10602. }, u.prototype.destroy = function() {
  10603. U(this.axis.plotLinesAndBands, this), delete this.axis, $(this);
  10604. }, u;
  10605. }(), R;
  10606. }), E(h, "Core/Tooltip.js", [
  10607. h["Core/FormatUtilities.js"],
  10608. h["Core/Globals.js"],
  10609. h["Core/Renderer/RendererUtilities.js"],
  10610. h["Core/Renderer/RendererRegistry.js"],
  10611. h["Core/Utilities.js"]
  10612. ], function(y, R, I, Z, H) {
  10613. var $ = y.format, U = R.doc, W = I.distribute, N = H.addEvent, w = H.clamp, v = H.css, u = H.defined, d = H.discardElement, P = H.extend, O = H.fireEvent, B = H.isArray, C = H.isNumber, b = H.isString, M = H.merge, x = H.pick, a = H.splat, c = H.syncTimeout;
  10614. return y = function() {
  10615. function p(i, l) {
  10616. 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);
  10617. }
  10618. return p.prototype.applyFilter = function() {
  10619. var i = this.chart;
  10620. 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" } }] }] });
  10621. }, p.prototype.bodyFormatter = function(i) {
  10622. return i.map(function(l) {
  10623. var s = l.series.tooltipOptions;
  10624. return (s[(l.point.formatPrefix || "point") + "Formatter"] || l.point.tooltipFormatter).call(l.point, s[(l.point.formatPrefix || "point") + "Format"] || "");
  10625. });
  10626. }, p.prototype.cleanSplit = function(i) {
  10627. this.chart.series.forEach(function(l) {
  10628. var s = l && l.tt;
  10629. s && (!s.isActive || i ? l.tt = s.destroy() : s.isActive = !1);
  10630. });
  10631. }, p.prototype.defaultFormatter = function(i) {
  10632. var l = this.points || a(this), s = [i.tooltipFooterHeaderFormatter(l[0])];
  10633. return s = s.concat(i.bodyFormatter(l)), s.push(i.tooltipFooterHeaderFormatter(
  10634. l[0],
  10635. !0
  10636. )), s;
  10637. }, p.prototype.destroy = function() {
  10638. 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(), d(this.container)), H.clearTimeout(this.hideTimer), H.clearTimeout(this.tooltipTimeout);
  10639. }, p.prototype.getAnchor = function(i, l) {
  10640. var s = this.chart, t = s.pointer, n = s.inverted, o = s.plotTop, A = s.plotLeft, _, D, j = 0, T = 0;
  10641. return i = a(i), this.followPointer && l ? (typeof l.chartX > "u" && (l = t.normalize(l)), t = [l.chartX - A, l.chartY - o]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  10642. _ = X.series.yAxis, D = X.series.xAxis, j += X.plotX || 0, T += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, D && _ && (n ? (j += o + s.plotHeight - D.len - D.pos, T += A + s.plotWidth - _.len - _.pos) : (j += D.pos - A, T += _.pos - o));
  10643. }), j /= i.length, T /= i.length, t = [n ? s.plotWidth - T : j, n ? s.plotHeight - j : T], this.shared && 1 < i.length && l && (n ? t[0] = l.chartX - A : t[1] = l.chartY - o)), t.map(Math.round);
  10644. }, p.prototype.getLabel = function() {
  10645. var i = this, l = this.chart.styledMode, s = this.options, t = this.split && this.allowShared, n = "tooltip" + (u(s.className) ? " " + s.className : ""), o = s.style.pointerEvents || (!this.followPointer && s.stickOnContact ? "auto" : "none"), A = function() {
  10646. i.inContact = !0;
  10647. }, _ = function(Y) {
  10648. var F = i.chart.hoverSeries;
  10649. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(Y.relatedTarget, "highcharts-tooltip"), !i.inContact && F && F.onMouseOut && F.onMouseOut();
  10650. }, D, j = this.chart.renderer;
  10651. if (i.label) {
  10652. var T = !i.label.hasClass("highcharts-label");
  10653. (t && !T || !t && T) && i.destroy();
  10654. }
  10655. if (!this.label) {
  10656. if (this.outside) {
  10657. T = this.chart.options.chart.style;
  10658. var X = Z.getRendererType();
  10659. this.container = D = R.doc.createElement("div"), D.className = "highcharts-tooltip-container", v(D, { position: "absolute", top: "1px", pointerEvents: o, zIndex: Math.max(this.options.style.zIndex || 0, (T && T.zIndex || 0) + 3) }), N(D, "mouseenter", A), N(D, "mouseleave", _), R.doc.body.appendChild(D), this.renderer = j = new X(D, 0, 0, T, void 0, void 0, j.styledMode);
  10660. }
  10661. if (t ? this.label = j.g(n) : (this.label = j.label("", 0, 0, s.shape, void 0, void 0, s.useHTML, void 0, n).attr({ padding: s.padding, r: s.borderRadius }), l || this.label.attr({ fill: s.backgroundColor, "stroke-width": s.borderWidth }).css(s.style).css({ pointerEvents: o }).shadow(s.shadow)), l && s.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  10662. var f = this.label, m = f.xSetter, L = f.ySetter;
  10663. f.xSetter = function(Y) {
  10664. m.call(f, i.distance), D.style.left = Y + "px";
  10665. }, f.ySetter = function(Y) {
  10666. L.call(f, i.distance), D.style.top = Y + "px";
  10667. };
  10668. }
  10669. this.label.on("mouseenter", A).on("mouseleave", _).attr({ zIndex: 8 }).add();
  10670. }
  10671. return this.label;
  10672. }, p.prototype.getPosition = function(i, l, s) {
  10673. var t = this.chart, n = this.distance, o = {}, A = t.inverted && s.h || 0, _ = this.outside, D = _ ? U.documentElement.clientWidth - 2 * n : t.chartWidth, j = _ ? Math.max(U.body.scrollHeight, U.documentElement.scrollHeight, U.body.offsetHeight, U.documentElement.offsetHeight, U.documentElement.clientHeight) : t.chartHeight, T = t.pointer.getChartPosition(), X = function(z) {
  10674. var V = z === "x";
  10675. return [z, V ? D : j, V ? i : l].concat(_ ? [V ? i * T.scaleX : l * T.scaleY, V ? T.left - n + (s.plotX + t.plotLeft) * T.scaleX : T.top - n + (s.plotY + t.plotTop) * T.scaleY, 0, V ? D : j] : [V ? i : l, V ? s.plotX + t.plotLeft : s.plotY + t.plotTop, V ? t.plotLeft : t.plotTop, V ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  10676. }, f = X("y"), m = X("x"), L;
  10677. X = !!s.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  10678. var Y = !this.followPointer && x(s.ttBelow, !t.inverted === X), F = function(z, V, q, it, et, nt, rt) {
  10679. var ct = _ ? z === "y" ? n * T.scaleY : n * T.scaleX : n, gt = (q - it) / 2, dt = it < et - n, lt = et + n + it < V, at = et - ct - q + gt;
  10680. if (et = et + ct - gt, Y && lt)
  10681. o[z] = et;
  10682. else if (!Y && dt)
  10683. o[z] = at;
  10684. else if (dt)
  10685. o[z] = Math.min(rt - it, 0 > at - A ? at : at - A);
  10686. else if (lt)
  10687. o[z] = Math.max(nt, et + A + q > V ? et : et + A);
  10688. else
  10689. return !1;
  10690. }, Q = function(z, V, q, it, et) {
  10691. var nt;
  10692. return et < n || et > V - n ? nt = !1 : o[z] = et < q / 2 ? 1 : et > V - it / 2 ? V - it - 2 : et - q / 2, nt;
  10693. }, k = function(z) {
  10694. var V = f;
  10695. f = m, m = V, L = z;
  10696. }, G = function() {
  10697. F.apply(0, f) !== !1 ? Q.apply(0, m) !== !1 || L || (k(!0), G()) : L ? o.x = o.y = 0 : (k(!0), G());
  10698. };
  10699. return (t.inverted || 1 < this.len) && k(), G(), o;
  10700. }, p.prototype.hide = function(i) {
  10701. var l = this;
  10702. H.clearTimeout(this.hideTimer), i = x(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  10703. l.getLabel().fadeOut(i && void 0), l.isHidden = !0;
  10704. }, i));
  10705. }, p.prototype.init = function(i, l) {
  10706. 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));
  10707. }, p.prototype.shouldStickOnContact = function() {
  10708. return !(this.followPointer || !this.options.stickOnContact);
  10709. }, p.prototype.isStickyOnContact = function() {
  10710. return !(!this.shouldStickOnContact() || !this.inContact);
  10711. }, p.prototype.move = function(i, l, s, t) {
  10712. var n = this, o = n.now, A = n.options.animation !== !1 && !n.isHidden && (1 < Math.abs(i - o.x) || 1 < Math.abs(l - o.y)), _ = n.followPointer || 1 < n.len;
  10713. P(o, { x: A ? (2 * o.x + i) / 3 : i, y: A ? (o.y + l) / 2 : l, anchorX: _ ? void 0 : A ? (2 * o.anchorX + s) / 3 : s, anchorY: _ ? void 0 : A ? (o.anchorY + t) / 2 : t }), n.getLabel().attr(o), n.drawTracker(), A && (H.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  10714. n && n.move(i, l, s, t);
  10715. }, 32));
  10716. }, p.prototype.refresh = function(i, l) {
  10717. var s = this.chart, t = this.options, n = a(i), o = n[0], A = [], _ = t.formatter || this.defaultFormatter, D = this.shared, j = s.styledMode, T = {};
  10718. if (t.enabled) {
  10719. H.clearTimeout(this.hideTimer), this.allowShared = !(!B(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && o.series.tooltipOptions.followPointer, i = this.getAnchor(i, l);
  10720. var X = i[0], f = i[1];
  10721. if (D && this.allowShared ? (s.pointer.applyInactiveState(n), n.forEach(function(Y) {
  10722. Y.setState("hover"), A.push(Y.getLabelConfig());
  10723. }), T = { x: o.category, y: o.y }, T.points = A) : T = o.getLabelConfig(), this.len = A.length, _ = _.call(T, this), D = o.series, this.distance = x(
  10724. D.tooltipOptions.distance,
  10725. 16
  10726. ), _ === !1)
  10727. this.hide();
  10728. else {
  10729. if (this.split && this.allowShared)
  10730. this.renderSplit(_, n);
  10731. else {
  10732. var m = X, L = f;
  10733. if (l && s.pointer.isDirectTouch && (m = l.chartX - s.plotLeft, L = l.chartY - s.plotTop), s.polar || D.options.clip === !1 || n.some(function(Y) {
  10734. return Y.series.shouldShowTooltip(m, L);
  10735. }))
  10736. l = this.getLabel(), t.style.width && !j || l.css({ width: this.chart.spacingBox.width + "px" }), l.attr({ text: _ && _.join ? _.join("") : _ }), l.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + x(o.colorIndex, D.colorIndex)), j || l.attr({ stroke: t.borderColor || o.color || D.color || "#666666" }), this.updatePosition({ plotX: X, plotY: f, negative: o.negative, ttBelow: o.ttBelow, h: i[2] || 0 });
  10737. else {
  10738. this.hide();
  10739. return;
  10740. }
  10741. }
  10742. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  10743. }
  10744. O(this, "refresh");
  10745. }
  10746. }, p.prototype.renderSplit = function(i, l) {
  10747. function s(lt, at, J, tt, st) {
  10748. return st === void 0 && (st = !0), J ? (at = it ? 0 : ct, lt = w(lt - tt / 2, z.left, z.right - tt - (t.outside ? et : 0))) : (at -= nt, lt = st ? lt - tt - Q : lt + Q, lt = w(lt, st ? lt : z.left, z.right)), { x: lt, y: at };
  10749. }
  10750. var t = this, n = t.chart, o = t.chart, A = o.chartWidth, _ = o.chartHeight, D = o.plotHeight, j = o.plotLeft, T = o.plotTop, X = o.pointer, f = o.scrollablePixelsY;
  10751. f = f === void 0 ? 0 : f;
  10752. var m = o.scrollablePixelsX, L = o.scrollingContainer;
  10753. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  10754. var Y = L.scrollLeft;
  10755. L = L.scrollTop;
  10756. var F = o.styledMode, Q = t.distance, k = t.options, G = t.options.positioner, z = t.outside && typeof m != "number" ? U.documentElement.getBoundingClientRect() : { left: Y, right: Y + A, top: L, bottom: L + _ }, V = t.getLabel(), q = this.renderer || n.renderer, it = !(!n.xAxis[0] || !n.xAxis[0].opposite);
  10757. n = X.getChartPosition();
  10758. var et = n.left;
  10759. n = n.top;
  10760. var nt = T + L, rt = 0, ct = D - f;
  10761. b(i) && (i = [!1, i]), i = i.slice(0, l.length + 1).reduce(function(lt, at, J) {
  10762. if (at !== !1 && at !== "") {
  10763. J = l[J - 1] || { isHeader: !0, plotX: l[0].plotX, plotY: D, series: {} };
  10764. var tt = J.isHeader, st = tt ? t : J.series;
  10765. at = at.toString();
  10766. var ht = st.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + x(J.colorIndex, yt.colorIndex, "none");
  10767. if (ht || (ht = { padding: k.padding, r: k.borderRadius }, F || (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(V)), ht.isActive = !0, ht.attr({ text: at }), F || 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) {
  10768. yt = j + yt;
  10769. var Ct = T + D / 2;
  10770. } else {
  10771. var Tt = ht.xAxis, kt = ht.yAxis;
  10772. yt = Tt.pos + w(yt, -Q, Tt.len + Q), ht.shouldShowTooltip(0, kt.pos - T + vt, { ignoreX: !0 }) && (Ct = kt.pos + vt);
  10773. }
  10774. yt = w(
  10775. yt,
  10776. z.left - Q,
  10777. z.right + Q
  10778. ), 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;
  10779. }
  10780. return lt;
  10781. }, []), !G && i.some(function(lt) {
  10782. var at = (t.outside ? et : 0) + lt.anchorX;
  10783. return at < z.left && at + lt.boxWidth < z.right ? !0 : at < et - z.left + lt.boxWidth && z.right - at > at;
  10784. }) && (i = i.map(function(lt) {
  10785. var at = s(lt.anchorX, lt.anchorY, lt.point.isHeader, lt.boxWidth, !1);
  10786. return P(lt, { target: at.y, x: at.x });
  10787. })), t.cleanSplit(), W(i, ct);
  10788. var gt = et, dt = et;
  10789. i.forEach(function(lt) {
  10790. var at = lt.x, J = lt.boxWidth;
  10791. lt = lt.isHeader, lt || (t.outside && et + at < gt && (gt = et + at), !lt && t.outside && gt + J > dt && (dt = et + at));
  10792. }), i.forEach(function(lt) {
  10793. var at = lt.x, J = lt.anchorX, tt = lt.pos, st = lt.point.isHeader;
  10794. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: lt.anchorY }, t.outside && at < J) {
  10795. var ht = et - gt;
  10796. 0 < ht && (st || (tt.x = at + ht, tt.anchorX = J + ht), st && (tt.x = (dt - gt) / 2, tt.anchorX = J + ht));
  10797. }
  10798. lt.tt.attr(tt);
  10799. }), i = t.container, f = t.renderer, t.outside && i && f && (o = V.getBBox(), f.setSize(o.width + o.x, o.height + o.y, !1), i.style.left = gt + "px", i.style.top = n + "px");
  10800. }, p.prototype.drawTracker = function() {
  10801. if (this.followPointer || !this.options.stickOnContact)
  10802. this.tracker && this.tracker.destroy();
  10803. else {
  10804. var i = this.chart, l = this.label, s = this.shared ? i.hoverPoints : i.hoverPoint;
  10805. if (l && s) {
  10806. var t = { x: 0, y: 0, width: 0, height: 0 };
  10807. s = this.getAnchor(s);
  10808. var n = l.getBBox();
  10809. 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]), n.width - s[0]) : Math.max(
  10810. Math.abs(s[0]),
  10811. n.width
  10812. ), t.height = 0 > s[1] ? Math.max(Math.abs(s[1]), n.height - Math.abs(s[1])) : Math.max(Math.abs(s[1]), n.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)" }));
  10813. }
  10814. }
  10815. }, p.prototype.styledModeFormat = function(i) {
  10816. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  10817. }, p.prototype.tooltipFooterHeaderFormatter = function(i, l) {
  10818. var s = i.series, t = s.tooltipOptions, n = s.xAxis, o = n && n.dateTime;
  10819. n = { isFooter: l, labelConfig: i };
  10820. var A = t.xDateFormat, _ = t[l ? "footerFormat" : "headerFormat"];
  10821. return O(this, "headerFormatter", n, function(D) {
  10822. o && !A && C(i.key) && (A = o.getXDateFormat(i.key, t.dateTimeLabelFormats)), o && A && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(j) {
  10823. _ = _.replace("{point." + j + "}", "{point." + j + ":" + A + "}");
  10824. }), s.chart.styledMode && (_ = this.styledModeFormat(_)), D.text = $(_, { point: i, series: s }, this.chart);
  10825. }), n.text;
  10826. }, p.prototype.update = function(i) {
  10827. this.destroy(), M(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, M(!0, this.options, i));
  10828. }, p.prototype.updatePosition = function(i) {
  10829. var l = this.chart, s = this.options, t = l.pointer, n = this.getLabel();
  10830. t = t.getChartPosition();
  10831. var o = (s.positioner || this.getPosition).call(this, n.width, n.height, i), A = i.plotX + l.plotLeft;
  10832. i = i.plotY + l.plotTop, this.outside && (s = s.borderWidth + 2 * this.distance, this.renderer.setSize(n.width + s, n.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 - o.x, i += t.top - o.y), this.move(Math.round(o.x), Math.round(o.y || 0), A, i);
  10833. }, p;
  10834. }(), y;
  10835. }), 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, R, I, Z, H) {
  10836. var $ = R.animObject, U = I.defaultOptions, W = Z.format, N = H.addEvent, w = H.defined, v = H.erase, u = H.extend, d = H.fireEvent, P = H.getNestedProperty, O = H.isArray, B = H.isFunction, C = H.isNumber, b = H.isObject, M = H.merge, x = H.objectEach, a = H.pick, c = H.syncTimeout, p = H.removeEvent, i = H.uniqueKey;
  10837. return R = function() {
  10838. function l() {
  10839. 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;
  10840. }
  10841. return l.prototype.animateBeforeDestroy = function() {
  10842. var s = this, t = { x: s.startXPos, opacity: 0 }, n = s.getGraphicalProps();
  10843. n.singular.forEach(function(o) {
  10844. s[o] = s[o].animate(o === "dataLabel" ? { x: s[o].startXPos, y: s[o].startYPos, opacity: 0 } : t);
  10845. }), n.plural.forEach(function(o) {
  10846. s[o].forEach(function(A) {
  10847. A.element && A.animate(u({ x: s.startXPos }, A.startYPos ? { x: A.startXPos, y: A.startYPos } : {}));
  10848. });
  10849. });
  10850. }, l.prototype.applyOptions = function(s, t) {
  10851. var n = this.series, o = n.options.pointValKey || n.pointValKey;
  10852. return s = l.prototype.optionsToObject.call(this, s), u(this, s), this.options = this.options ? u(this.options, s) : s, s.group && delete this.group, s.dataLabels && delete this.dataLabels, o && (this.y = l.prototype.getNestedProperty.call(
  10853. this,
  10854. o
  10855. )), 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" && n.xAxis && n.xAxis.hasNames && (this.x = n.xAxis.nameToX(this)), typeof this.x > "u" && n ? this.x = typeof t > "u" ? n.autoIncrement() : t : C(s.x) && n.options.relativeXValue && (this.x = n.autoIncrement(s.x)), this;
  10856. }, l.prototype.destroy = function() {
  10857. function s() {
  10858. (t.graphic || t.dataLabel || t.dataLabels) && (p(t), t.destroyElements());
  10859. for (D in t)
  10860. t[D] = null;
  10861. }
  10862. var t = this, n = t.series, o = n.chart;
  10863. n = n.options.dataSorting;
  10864. var A = o.hoverPoints, _ = $(t.series.chart.renderer.globalAnimation), D;
  10865. t.legendItem && o.legend.destroyItem(t), A && (t.setState(), v(A, t), A.length || (o.hoverPoints = null)), t === o.hoverPoint && t.onMouseOut(), n && n.enabled ? (this.animateBeforeDestroy(), c(s, _.duration)) : s(), o.pointCount--;
  10866. }, l.prototype.destroyElements = function(s) {
  10867. var t = this;
  10868. s = t.getGraphicalProps(s), s.singular.forEach(function(n) {
  10869. t[n] = t[n].destroy();
  10870. }), s.plural.forEach(function(n) {
  10871. t[n].forEach(function(o) {
  10872. o.element && o.destroy();
  10873. }), delete t[n];
  10874. });
  10875. }, l.prototype.firePointEvent = function(s, t, n) {
  10876. var o = this, A = this.series.options;
  10877. (A.point.events[s] || o.options && o.options.events && o.options.events[s]) && o.importEvents(), s === "click" && A.allowPointSelect && (n = function(_) {
  10878. o.select && o.select(null, _.ctrlKey || _.metaKey || _.shiftKey);
  10879. }), d(o, s, t, n);
  10880. }, l.prototype.getClassName = function() {
  10881. 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", "") : "");
  10882. }, l.prototype.getGraphicalProps = function(s) {
  10883. var t = this, n = [], o = { singular: [], plural: [] }, A;
  10884. for (s = s || { graphic: 1, dataLabel: 1 }, s.graphic && n.push("graphic", "upperGraphic", "shadowGroup"), s.dataLabel && n.push("dataLabel", "dataLabelUpper", "connector"), A = n.length; A--; ) {
  10885. var _ = n[A];
  10886. t[_] && o.singular.push(_);
  10887. }
  10888. return ["dataLabel", "connector"].forEach(function(D) {
  10889. var j = D + "s";
  10890. s[D] && t[j] && o.plural.push(j);
  10891. }), o;
  10892. }, l.prototype.getLabelConfig = function() {
  10893. 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 };
  10894. }, l.prototype.getNestedProperty = function(s) {
  10895. if (s)
  10896. return s.indexOf("custom.") === 0 ? P(s, this.options) : this[s];
  10897. }, l.prototype.getZone = function() {
  10898. var s = this.series, t = s.zones;
  10899. s = s.zoneAxis || "y";
  10900. var n, o = 0;
  10901. for (n = t[o]; this[s] >= n.value; )
  10902. n = t[++o];
  10903. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = n && n.color && !this.options.color ? n.color : this.nonZonedColor, n;
  10904. }, l.prototype.hasNewShapeType = function() {
  10905. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  10906. }, l.prototype.init = function(s, t, n) {
  10907. return this.series = s, this.applyOptions(t, n), this.id = w(this.id) ? this.id : i(), this.resolveColor(), s.chart.pointCount++, d(this, "afterInit"), this;
  10908. }, l.prototype.optionsToObject = function(s) {
  10909. var t = this.series, n = t.options.keys, o = n || t.pointArrayMap || ["y"], A = o.length, _ = {}, D = 0, j = 0;
  10910. if (C(s) || s === null)
  10911. _[o[0]] = s;
  10912. else if (O(s))
  10913. for (!n && s.length > A && (t = typeof s[0], t === "string" ? _.name = s[0] : t === "number" && (_.x = s[0]), D++); j < A; )
  10914. n && typeof s[D] > "u" || (0 < o[j].indexOf(".") ? l.prototype.setNestedProperty(_, s[D], o[j]) : _[o[j]] = s[D]), D++, j++;
  10915. else
  10916. typeof s == "object" && (_ = s, s.dataLabels && (t._hasPointLabels = !0), s.marker && (t._hasPointMarkers = !0));
  10917. return _;
  10918. }, l.prototype.resolveColor = function() {
  10919. var s = this.series, t = s.chart.styledMode, n = s.chart.options.chart.colorCount;
  10920. if (delete this.nonZonedColor, s.options.colorByPoint) {
  10921. if (!t) {
  10922. n = s.options.colors || s.chart.options.colors;
  10923. var o = n[s.colorCounter];
  10924. n = n.length;
  10925. }
  10926. t = s.colorCounter, s.colorCounter++, s.colorCounter === n && (s.colorCounter = 0);
  10927. } else
  10928. t || (o = s.color), t = s.colorIndex;
  10929. this.colorIndex = a(this.options.colorIndex, t), this.color = a(this.options.color, o);
  10930. }, l.prototype.setNestedProperty = function(s, t, n) {
  10931. return n.split(".").reduce(function(o, A, _, D) {
  10932. return o[A] = D.length - 1 === _ ? t : b(o[A], !0) ? o[A] : {}, o[A];
  10933. }, s), s;
  10934. }, l.prototype.tooltipFormatter = function(s) {
  10935. var t = this.series, n = t.tooltipOptions, o = a(n.valueDecimals, ""), A = n.valuePrefix || "", _ = n.valueSuffix || "";
  10936. return t.chart.styledMode && (s = t.chart.tooltip.styledModeFormat(s)), (t.pointArrayMap || ["y"]).forEach(function(D) {
  10937. D = "{point." + D, (A || _) && (s = s.replace(RegExp(D + "}", "g"), A + D + "}" + _)), s = s.replace(RegExp(D + "}", "g"), D + ":,." + o + "f}");
  10938. }), W(s, { point: this, series: this.series }, t.chart);
  10939. }, l.prototype.update = function(s, t, n, o) {
  10940. function A() {
  10941. _.applyOptions(s);
  10942. var m = j && _.hasDummyGraphic;
  10943. m = _.y === null ? !m : m, j && m && (_.graphic = j.destroy(), delete _.hasDummyGraphic), b(s, !0) && (j && j.element && s && s.marker && typeof s.marker.symbol < "u" && (_.graphic = j.destroy()), s && s.dataLabels && _.dataLabel && (_.dataLabel = _.dataLabel.destroy()), _.connector && (_.connector = _.connector.destroy())), f = _.index, D.updateParallelArrays(_, f), X.data[f] = b(X.data[f], !0) || b(s, !0) ? _.options : a(s, X.data[f]), D.isDirty = D.isDirtyData = !0, !D.fixedBox && D.hasCartesianSeries && (T.isDirtyBox = !0), X.legendType === "point" && (T.isDirtyLegend = !0), t && T.redraw(n);
  10944. }
  10945. var _ = this, D = _.series, j = _.graphic, T = D.chart, X = D.options, f;
  10946. t = a(t, !0), o === !1 ? A() : _.firePointEvent("update", { options: s }, A);
  10947. }, l.prototype.remove = function(s, t) {
  10948. this.series.removePoint(this.series.data.indexOf(this), s, t);
  10949. }, l.prototype.select = function(s, t) {
  10950. var n = this, o = n.series, A = o.chart;
  10951. this.selectedStaging = s = a(s, !n.selected), n.firePointEvent(s ? "select" : "unselect", { accumulate: t }, function() {
  10952. n.selected = n.options.selected = s, o.options.data[o.data.indexOf(n)] = n.options, n.setState(s && "select"), t || A.getSelectedPoints().forEach(function(_) {
  10953. var D = _.series;
  10954. _.selected && _ !== n && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(A.hoverPoints && D.options.inactiveOtherPoints ? "inactive" : ""), _.firePointEvent("unselect"));
  10955. });
  10956. }), delete this.selectedStaging;
  10957. }, l.prototype.onMouseOver = function(s) {
  10958. var t = this.series.chart, n = t.pointer;
  10959. s = s ? n.normalize(s) : n.getChartCoordinatesFromPoint(this, t.inverted), n.runPointActions(
  10960. s,
  10961. this
  10962. );
  10963. }, l.prototype.onMouseOut = function() {
  10964. var s = this.series.chart;
  10965. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (s.hoverPoints || []).forEach(function(t) {
  10966. t.setState();
  10967. }), s.hoverPoints = s.hoverPoint = null;
  10968. }, l.prototype.importEvents = function() {
  10969. if (!this.hasImportedEvents) {
  10970. var s = this, t = M(s.series.options.point, s.options).events;
  10971. s.events = t, x(t, function(n, o) {
  10972. B(n) && N(s, o, n);
  10973. }), this.hasImportedEvents = !0;
  10974. }
  10975. }, l.prototype.setState = function(s, t) {
  10976. var n = this.series, o = this.state, A = n.options.states[s || "normal"] || {}, _ = U.plotOptions[n.type].marker && n.options.marker, D = _ && _.enabled === !1, j = _ && _.states && _.states[s || "normal"] || {}, T = j.enabled === !1, X = this.marker || {}, f = n.chart, m = _ && n.markerAttribs, L = n.halo, Y, F = n.stateMarkerGraphic;
  10977. if (s = s || "", !(s === this.state && !t || this.selected && s !== "select" || A.enabled === !1 || s && (T || D && j.enabled === !1) || s && X.states && X.states[s] && X.states[s].enabled === !1)) {
  10978. if (this.state = s, m && (Y = n.markerAttribs(this, s)), this.graphic && !this.hasDummyGraphic) {
  10979. if (o && this.graphic.removeClass("highcharts-point-" + o), s && this.graphic.addClass("highcharts-point-" + s), !f.styledMode) {
  10980. var Q = n.pointAttribs(this, s), k = a(f.options.chart.animation, A.animation);
  10981. n.options.inactiveOtherPoints && C(Q.opacity) && ((this.dataLabels || []).forEach(function(G) {
  10982. G && G.animate({ opacity: Q.opacity }, k);
  10983. }), this.connector && this.connector.animate({ opacity: Q.opacity }, k)), this.graphic.animate(Q, k);
  10984. }
  10985. Y && this.graphic.animate(Y, a(f.options.chart.animation, j.animation, _.animation)), F && F.hide();
  10986. } else
  10987. s && j && (o = X.symbol || n.symbol, F && F.currentSymbol !== o && (F = F.destroy()), Y && (F ? F[t ? "animate" : "attr"]({ x: Y.x, y: Y.y }) : o && (n.stateMarkerGraphic = F = f.renderer.symbol(o, Y.x, Y.y, Y.width, Y.height).add(n.markerGroup), F.currentSymbol = o)), !f.styledMode && F && this.state !== "inactive" && F.attr(n.pointAttribs(this, s))), F && (F[s && this.isInside ? "show" : "hide"](), F.element.point = this, F.addClass(this.getClassName(), !0));
  10988. A = A.halo, Y = (F = this.graphic || F) && F.visibility || "inherit", A && A.size && F && Y !== "hidden" && !this.isCluster ? (L || (n.halo = L = f.renderer.path().add(F.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(A.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + a(this.colorIndex, n.colorIndex) + (this.className ? " " + this.className : ""), visibility: Y, zIndex: -1 }), L.point = this, f.styledMode || L.attr(u({ fill: this.color || n.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), d(this, "afterSetState", { state: s });
  10989. }
  10990. }, l.prototype.haloPath = function(s) {
  10991. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - s, this.plotY - s, 2 * s, 2 * s);
  10992. }, l;
  10993. }(), R;
  10994. }), E(h, "Core/Pointer.js", [h["Core/Color/Color.js"], h["Core/Globals.js"], h["Core/Tooltip.js"], h["Core/Utilities.js"]], function(y, R, I, Z) {
  10995. var H = y.parse, $ = R.charts, U = R.noop, W = Z.addEvent, N = Z.attr, w = Z.css, v = Z.defined, u = Z.extend, d = Z.find, P = Z.fireEvent, O = Z.isNumber, B = Z.isObject, C = Z.objectEach, b = Z.offset, M = Z.pick, x = Z.splat;
  10996. return y = function() {
  10997. function a(c, p) {
  10998. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = p, this.init(c, p);
  10999. }
  11000. return a.prototype.applyInactiveState = function(c) {
  11001. var p = [], i;
  11002. (c || []).forEach(function(l) {
  11003. 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);
  11004. }), this.chart.series.forEach(function(l) {
  11005. p.indexOf(l) === -1 ? l.setState("inactive", !0) : l.options.inactiveOtherPoints && l.setAllPointsToState("inactive");
  11006. });
  11007. }, a.prototype.destroy = function() {
  11008. var c = this;
  11009. this.eventsToUnbind.forEach(function(p) {
  11010. return p();
  11011. }), this.eventsToUnbind = [], R.chartCount || (a.unbindDocumentMouseUp && (a.unbindDocumentMouseUp = a.unbindDocumentMouseUp()), a.unbindDocumentTouchEnd && (a.unbindDocumentTouchEnd = a.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), C(c, function(p, i) {
  11012. c[i] = void 0;
  11013. });
  11014. }, a.prototype.drag = function(c) {
  11015. var p = this.chart, i = p.options.chart, l = this.zoomHor, s = this.zoomVert, t = p.plotLeft, n = p.plotTop, o = p.plotWidth, A = p.plotHeight, _ = this.mouseDownX || 0, D = this.mouseDownY || 0, j = B(i.panning) ? i.panning && i.panning.enabled : i.panning, T = i.panKey && c[i.panKey + "Key"], X = c.chartX, f = c.chartY, m = this.selectionMarker;
  11016. if ((!m || !m.touch) && (X < t ? X = t : X > t + o && (X = t + o), f < n ? f = n : f > n + A && (f = n + A), this.hasDragged = Math.sqrt(Math.pow(_ - X, 2) + Math.pow(D - f, 2)), 10 < this.hasDragged)) {
  11017. var L = p.isInsidePlot(_ - t, D - n, { visiblePlotOnly: !0 });
  11018. !p.hasCartesianSeries && !p.mapView || !this.zoomX && !this.zoomY || !L || T || m || (this.selectionMarker = m = p.renderer.rect(t, n, l ? 1 : o, s ? 1 : A, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), p.styledMode || m.attr({ fill: i.selectionMarkerFill || H("#335cad").setOpacity(0.25).get() })), m && l && (l = X - _, m.attr({ width: Math.abs(l), x: (0 < l ? 0 : l) + _ })), m && s && (l = f - D, m.attr({ height: Math.abs(l), y: (0 < l ? 0 : l) + D })), L && !m && j && p.pan(c, i.panning);
  11019. }
  11020. }, a.prototype.dragStart = function(c) {
  11021. var p = this.chart;
  11022. p.mouseIsDown = c.type, p.cancelClick = !1, p.mouseDownX = this.mouseDownX = c.chartX, p.mouseDownY = this.mouseDownY = c.chartY;
  11023. }, a.prototype.drop = function(c) {
  11024. var p = this, i = this.chart, l = this.hasPinched;
  11025. if (this.selectionMarker) {
  11026. var s = this.selectionMarker, t = s.attr ? s.attr("x") : s.x, n = s.attr ? s.attr("y") : s.y, o = s.attr ? s.attr("width") : s.width, A = s.attr ? s.attr("height") : s.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: n, width: o, height: A }, D = !!i.mapView;
  11027. (this.hasDragged || l) && (i.axes.forEach(function(j) {
  11028. if (j.zoomEnabled && v(j.min) && (l || p[{ xAxis: "zoomX", yAxis: "zoomY" }[j.coll]]) && O(t) && O(n)) {
  11029. var T = j.horiz, X = c.type === "touchend" ? j.minPixelPadding : 0, f = j.toValue((T ? t : n) + X);
  11030. T = j.toValue((T ? t + o : n + A) - X), _[j.coll].push({ axis: j, min: Math.min(f, T), max: Math.max(f, T) }), D = !0;
  11031. }
  11032. }), D && P(i, "selection", _, function(j) {
  11033. i.zoom(u(
  11034. j,
  11035. l ? { animation: !1 } : null
  11036. ));
  11037. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), l && this.scaleGroups();
  11038. }
  11039. i && O(i.index) && (w(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  11040. }, a.prototype.findNearestKDPoint = function(c, p, i) {
  11041. var l = this.chart, s = l.hoverPoint;
  11042. if (l = l.tooltip, s && l && l.isStickyOnContact())
  11043. return s;
  11044. var t;
  11045. return c.forEach(function(n) {
  11046. var o = !(n.noSharedTooltip && p) && 0 > n.options.findNearestPointBy.indexOf("y");
  11047. if (n = n.searchPoint(i, o), (o = B(n, !0) && n.series) && !(o = !B(t, !0))) {
  11048. o = t.distX - n.distX;
  11049. var A = t.dist - n.dist, _ = (n.series.group && n.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  11050. o = 0 < (o !== 0 && p ? o : A !== 0 ? A : _ !== 0 ? _ : t.series.index > n.series.index ? -1 : 1);
  11051. }
  11052. o && (t = n);
  11053. }), t;
  11054. }, a.prototype.getChartCoordinatesFromPoint = function(c, p) {
  11055. var i = c.series, l = i.xAxis;
  11056. i = i.yAxis;
  11057. var s = c.shapeArgs;
  11058. if (l && i) {
  11059. var t = M(c.clientX, c.plotX), n = c.plotY || 0;
  11060. return c.isNode && s && O(s.x) && O(s.y) && (t = s.x, n = s.y), p ? { chartX: i.len + i.pos - n, chartY: l.len + l.pos - t } : { chartX: t + l.pos, chartY: n + i.pos };
  11061. }
  11062. if (s && s.x && s.y)
  11063. return { chartX: s.x, chartY: s.y };
  11064. }, a.prototype.getChartPosition = function() {
  11065. if (this.chartPosition)
  11066. return this.chartPosition;
  11067. var c = this.chart.container, p = b(c);
  11068. this.chartPosition = { left: p.left, top: p.top, scaleX: 1, scaleY: 1 };
  11069. var i = c.offsetWidth;
  11070. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = p.width / i, this.chartPosition.scaleY = p.height / c), this.chartPosition;
  11071. }, a.prototype.getCoordinates = function(c) {
  11072. var p = { xAxis: [], yAxis: [] };
  11073. return this.chart.axes.forEach(function(i) {
  11074. p[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  11075. }), p;
  11076. }, a.prototype.getHoverData = function(c, p, i, l, s, t) {
  11077. var n = [];
  11078. l = !(!l || !c);
  11079. var o = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: s };
  11080. P(this, "beforeGetHoverData", o);
  11081. var A = p && !p.stickyTracking ? [p] : i.filter(function(D) {
  11082. return o.filter ? o.filter(D) : D.visible && !(!s && D.directTouch) && M(D.options.enableMouseTracking, !0) && D.stickyTracking;
  11083. }), _ = l || !t ? c : this.findNearestKDPoint(A, s, t);
  11084. return p = _ && _.series, _ && (s && !p.noSharedTooltip ? (A = i.filter(function(D) {
  11085. return o.filter ? o.filter(D) : D.visible && !(!s && D.directTouch) && M(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  11086. }), A.forEach(function(D) {
  11087. var j = d(D.points, function(T) {
  11088. return T.x === _.x && !T.isNull;
  11089. });
  11090. B(j) && (D.chart.isBoosting && (j = D.getPoint(j)), n.push(j));
  11091. })) : n.push(_)), o = { hoverPoint: _ }, P(this, "afterGetHoverData", o), { hoverPoint: o.hoverPoint, hoverSeries: p, hoverPoints: n };
  11092. }, a.prototype.getPointFromEvent = function(c) {
  11093. c = c.target;
  11094. for (var p; c && !p; )
  11095. p = c.point, c = c.parentNode;
  11096. return p;
  11097. }, a.prototype.onTrackerMouseOut = function(c) {
  11098. c = c.relatedTarget || c.toElement;
  11099. var p = this.chart.hoverSeries;
  11100. 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();
  11101. }, a.prototype.inClass = function(c, p) {
  11102. for (var i; c; ) {
  11103. if (i = N(c, "class")) {
  11104. if (i.indexOf(p) !== -1)
  11105. return !0;
  11106. if (i.indexOf("highcharts-container") !== -1)
  11107. return !1;
  11108. }
  11109. c = c.parentNode;
  11110. }
  11111. }, a.prototype.init = function(c, p) {
  11112. 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 = M(p.tooltip.followTouchMove, !0)), this.setDOMEvents();
  11113. }, a.prototype.normalize = function(c, p) {
  11114. var i = c.touches, l = i ? i.length ? i.item(0) : M(i.changedTouches, c.changedTouches)[0] : c;
  11115. return p || (p = this.getChartPosition()), i = l.pageX - p.left, l = l.pageY - p.top, i /= p.scaleX, l /= p.scaleY, u(c, { chartX: Math.round(i), chartY: Math.round(l) });
  11116. }, a.prototype.onContainerClick = function(c) {
  11117. var p = this.chart, i = p.hoverPoint;
  11118. c = this.normalize(c);
  11119. var l = p.plotLeft, s = p.plotTop;
  11120. p.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (P(i.series, "click", u(c, { point: i })), p.hoverPoint && i.firePointEvent("click", c)) : (u(c, this.getCoordinates(c)), p.isInsidePlot(c.chartX - l, c.chartY - s, { visiblePlotOnly: !0 }) && P(p, "click", c)));
  11121. }, a.prototype.onContainerMouseDown = function(c) {
  11122. var p = ((c.buttons || c.button) & 1) === 1;
  11123. c = this.normalize(c), R.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || p) && (this.zoomOption(c), p && c.preventDefault && c.preventDefault(), this.dragStart(c));
  11124. }, a.prototype.onContainerMouseLeave = function(c) {
  11125. var p = $[M(a.hoverChartIndex, -1)], i = this.chart.tooltip;
  11126. 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());
  11127. }, a.prototype.onContainerMouseEnter = function(c) {
  11128. delete this.chartPosition;
  11129. }, a.prototype.onContainerMouseMove = function(c) {
  11130. var p = this.chart;
  11131. 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));
  11132. }, a.prototype.onDocumentTouchEnd = function(c) {
  11133. var p = $[M(
  11134. a.hoverChartIndex,
  11135. -1
  11136. )];
  11137. p && p.pointer.drop(c);
  11138. }, a.prototype.onContainerTouchMove = function(c) {
  11139. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  11140. }, a.prototype.onContainerTouchStart = function(c) {
  11141. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  11142. }, a.prototype.onDocumentMouseMove = function(c) {
  11143. var p = this.chart, i = this.chartPosition;
  11144. c = this.normalize(c, i);
  11145. var l = p.tooltip;
  11146. !i || l && l.isStickyOnContact() || p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  11147. }, a.prototype.onDocumentMouseUp = function(c) {
  11148. var p = $[M(a.hoverChartIndex, -1)];
  11149. p && p.pointer.drop(c);
  11150. }, a.prototype.pinch = function(c) {
  11151. var p = this, i = p.chart, l = p.pinchDown, s = c.touches || [], t = s.length, n = p.lastValidTouch, o = p.hasZoom, A = {}, _ = t === 1 && (p.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || p.runChartClick), D = {}, j = p.selectionMarker;
  11152. 1 < t ? p.initiated = !0 : t === 1 && this.followTouchMove && (p.initiated = !1), o && p.initiated && !_ && c.cancelable !== !1 && c.preventDefault(), [].map.call(s, function(T) {
  11153. return p.normalize(T);
  11154. }), c.type === "touchstart" ? ([].forEach.call(s, function(T, X) {
  11155. l[X] = { chartX: T.chartX, chartY: T.chartY };
  11156. }), n.x = [l[0].chartX, l[1] && l[1].chartX], n.y = [l[0].chartY, l[1] && l[1].chartY], i.axes.forEach(function(T) {
  11157. if (T.zoomEnabled) {
  11158. var X = i.bounds[T.horiz ? "h" : "v"], f = T.minPixelPadding, m = T.toPixels(Math.min(M(T.options.min, T.dataMin), T.dataMin)), L = T.toPixels(Math.max(M(T.options.max, T.dataMax), T.dataMax)), Y = Math.max(m, L);
  11159. X.min = Math.min(T.pos, Math.min(
  11160. m,
  11161. L
  11162. ) - f), X.max = Math.max(T.pos + T.len, Y + f);
  11163. }
  11164. }), p.res = !0) : p.followTouchMove && t === 1 ? this.runPointActions(p.normalize(c)) : l.length && (P(i, "touchpan", { originalEvent: c }, function() {
  11165. j || (p.selectionMarker = j = u({ destroy: U, touch: !0 }, i.plotBox)), p.pinchTranslate(l, s, A, j, D, n), p.hasPinched = o, p.scaleGroups(A, D);
  11166. }), p.res && (p.res = !1, this.reset(!1, 0)));
  11167. }, a.prototype.pinchTranslate = function(c, p, i, l, s, t) {
  11168. this.zoomHor && this.pinchTranslateDirection(!0, c, p, i, l, s, t), this.zoomVert && this.pinchTranslateDirection(!1, c, p, i, l, s, t);
  11169. }, a.prototype.pinchTranslateDirection = function(c, p, i, l, s, t, n, o) {
  11170. var A = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", j = "chart" + D, T = c ? "width" : "height", X = A["plot" + (c ? "Left" : "Top")], f = A.inverted, m = A.bounds[c ? "h" : "v"], L = p.length === 1, Y = p[0][j], F = !L && p[1][j];
  11171. p = function() {
  11172. typeof V == "number" && 20 < Math.abs(Y - F) && (G = o || Math.abs(z - V) / Math.abs(Y - F)), k = (X - z) / G + Y, Q = A["plot" + (c ? "Width" : "Height")] / G;
  11173. };
  11174. var Q, k, G = o || 1, z = i[0][j], V = !L && i[1][j];
  11175. if (p(), i = k, i < m.min) {
  11176. i = m.min;
  11177. var q = !0;
  11178. } else
  11179. i + Q > m.max && (i = m.max - Q, q = !0);
  11180. q ? (z -= 0.8 * (z - n[_][0]), typeof V == "number" && (V -= 0.8 * (V - n[_][1])), p()) : n[_] = [z, V], f || (t[_] = k - X, t[T] = Q), t = f ? 1 / G : G, s[T] = Q, s[_] = i, l[f ? c ? "scaleY" : "scaleX" : "scale" + D] = G, l["translate" + D] = t * X + (z - t * Y);
  11181. }, a.prototype.reset = function(c, p) {
  11182. var i = this.chart, l = i.hoverSeries, s = i.hoverPoint, t = i.hoverPoints, n = i.tooltip, o = n && n.shared ? t : s;
  11183. c && o && x(o).forEach(function(A) {
  11184. A.series.isCartesian && typeof A.plotX > "u" && (c = !1);
  11185. }), c ? n && o && x(o).length && (n.refresh(o), n.shared && t ? t.forEach(function(A) {
  11186. A.setState(A.state, !0), A.series.isCartesian && (A.series.xAxis.crosshair && A.series.xAxis.drawCrosshair(
  11187. null,
  11188. A
  11189. ), A.series.yAxis.crosshair && A.series.yAxis.drawCrosshair(null, A));
  11190. }) : s && (s.setState(s.state, !0), i.axes.forEach(function(A) {
  11191. A.crosshair && s.series[A.coll] === A && A.drawCrosshair(null, s);
  11192. }))) : (s && s.onMouseOut(), t && t.forEach(function(A) {
  11193. A.setState();
  11194. }), l && l.onMouseOut(), n && n.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(A) {
  11195. A.hideCrosshair();
  11196. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  11197. }, a.prototype.runPointActions = function(c, p) {
  11198. var i = this.chart, l = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, s = l ? l.shared : !1, t = p || i.hoverPoint, n = t && t.series || i.hoverSeries;
  11199. p = this.getHoverData(t, n, i.series, (!c || c.type !== "touchmove") && (!!p || n && n.directTouch && this.isDirectTouch), s, c), t = p.hoverPoint, n = p.hoverSeries;
  11200. var o = p.hoverPoints;
  11201. if (p = n && n.tooltipOptions.followPointer && !n.tooltipOptions.split, s = s && n && !n.noSharedTooltip, t && (t !== i.hoverPoint || l && l.isHidden)) {
  11202. if ((i.hoverPoints || []).forEach(function(A) {
  11203. o.indexOf(A) === -1 && A.setState();
  11204. }), i.hoverSeries !== n && n.onMouseOver(), this.applyInactiveState(o), (o || []).forEach(function(A) {
  11205. A.setState("hover");
  11206. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  11207. return;
  11208. i.hoverPoints = o, i.hoverPoint = t, t.firePointEvent("mouseOver"), l && l.refresh(s ? o : t, c);
  11209. } else
  11210. p && l && !l.isHidden && (t = l.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && l.updatePosition({ plotX: t[0], plotY: t[1] }));
  11211. this.unDocMouseMove || (this.unDocMouseMove = W(i.container.ownerDocument, "mousemove", function(A) {
  11212. var _ = $[a.hoverChartIndex];
  11213. _ && _.pointer.onDocumentMouseMove(A);
  11214. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(A) {
  11215. var _ = M((A.crosshair || {}).snap, !0), D;
  11216. _ && ((D = i.hoverPoint) && D.series[A.coll] === A || (D = d(o, function(j) {
  11217. return j.series[A.coll] === A;
  11218. }))), D || !_ ? A.drawCrosshair(c, D) : A.hideCrosshair();
  11219. });
  11220. }, a.prototype.scaleGroups = function(c, p) {
  11221. var i = this.chart;
  11222. i.series.forEach(function(l) {
  11223. var s = c || l.getPlotBox();
  11224. 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));
  11225. }), i.clipRect.attr(p || i.clipBox);
  11226. }, a.prototype.setDOMEvents = function() {
  11227. var c = this, p = this.chart.container, i = p.ownerDocument;
  11228. 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)));
  11229. for (var l = this.chart.renderTo.parentElement; l && l.tagName !== "BODY"; )
  11230. this.eventsToUnbind.push(W(l, "scroll", function() {
  11231. delete c.chartPosition;
  11232. })), l = l.parentElement;
  11233. R.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 })));
  11234. }, a.prototype.setHoverChartIndex = function() {
  11235. var c = this.chart, p = R.charts[M(a.hoverChartIndex, -1)];
  11236. p && p !== c && p.pointer.onContainerMouseLeave({ relatedTarget: !0 }), p && p.mouseIsDown || (a.hoverChartIndex = c.index);
  11237. }, a.prototype.touch = function(c, p) {
  11238. var i = this.chart;
  11239. if (this.setHoverChartIndex(), c.touches.length === 1)
  11240. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  11241. if (p && this.runPointActions(c), c.type === "touchmove") {
  11242. p = this.pinchDown;
  11243. var l = p[0] ? 4 <= Math.sqrt(Math.pow(p[0].chartX - c.chartX, 2) + Math.pow(p[0].chartY - c.chartY, 2)) : !1;
  11244. }
  11245. M(l, !0) && this.pinch(c);
  11246. } else
  11247. p && this.reset();
  11248. else
  11249. c.touches.length === 2 && this.pinch(c);
  11250. }, a.prototype.touchSelect = function(c) {
  11251. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  11252. }, a.prototype.zoomOption = function(c) {
  11253. var p = this.chart, i = p.options.chart;
  11254. p = p.inverted;
  11255. var l = i.zoomType || "";
  11256. /touch/.test(c.type) && (l = M(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;
  11257. }, a;
  11258. }(), y;
  11259. }), E(h, "Core/MSPointer.js", [h["Core/Globals.js"], h["Core/Pointer.js"], h["Core/Utilities.js"]], function(y, R, I) {
  11260. function Z() {
  11261. var C = [];
  11262. return C.item = function(b) {
  11263. return this[b];
  11264. }, d(O, function(b) {
  11265. C.push({ pageX: b.pageX, pageY: b.pageY, target: b.target });
  11266. }), C;
  11267. }
  11268. function H(C, b, M, x) {
  11269. var a = U[R.hoverChartIndex || NaN];
  11270. C.pointerType !== "touch" && C.pointerType !== C.MSPOINTER_TYPE_TOUCH || !a || (a = a.pointer, x(C), a[b]({ type: M, target: C.currentTarget, preventDefault: N, touches: Z() }));
  11271. }
  11272. var $ = this && this.__extends || function() {
  11273. var C = function(b, M) {
  11274. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  11275. x.__proto__ = a;
  11276. } || function(x, a) {
  11277. for (var c in a)
  11278. a.hasOwnProperty(c) && (x[c] = a[c]);
  11279. }, C(b, M);
  11280. };
  11281. return function(b, M) {
  11282. function x() {
  11283. this.constructor = b;
  11284. }
  11285. C(b, M), b.prototype = M === null ? Object.create(M) : (x.prototype = M.prototype, new x());
  11286. };
  11287. }(), U = y.charts, W = y.doc, N = y.noop, w = y.win, v = I.addEvent, u = I.css, d = I.objectEach, P = I.removeEvent, O = {}, B = !!w.PointerEvent;
  11288. return function(C) {
  11289. function b() {
  11290. return C !== null && C.apply(this, arguments) || this;
  11291. }
  11292. return $(b, C), b.isRequired = function() {
  11293. return !(y.hasTouch || !w.PointerEvent && !w.MSPointerEvent);
  11294. }, b.prototype.batchMSEvents = function(M) {
  11295. M(this.chart.container, B ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), M(this.chart.container, B ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), M(W, B ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  11296. }, b.prototype.destroy = function() {
  11297. this.batchMSEvents(P), C.prototype.destroy.call(this);
  11298. }, b.prototype.init = function(M, x) {
  11299. C.prototype.init.call(this, M, x), this.hasZoom && u(M.container, { "-ms-touch-action": "none", "touch-action": "none" });
  11300. }, b.prototype.onContainerPointerDown = function(M) {
  11301. H(M, "onContainerTouchStart", "touchstart", function(x) {
  11302. O[x.pointerId] = { pageX: x.pageX, pageY: x.pageY, target: x.currentTarget };
  11303. });
  11304. }, b.prototype.onContainerPointerMove = function(M) {
  11305. H(M, "onContainerTouchMove", "touchmove", function(x) {
  11306. O[x.pointerId] = {
  11307. pageX: x.pageX,
  11308. pageY: x.pageY
  11309. }, O[x.pointerId].target || (O[x.pointerId].target = x.currentTarget);
  11310. });
  11311. }, b.prototype.onDocumentPointerUp = function(M) {
  11312. H(M, "onDocumentTouchEnd", "touchend", function(x) {
  11313. delete O[x.pointerId];
  11314. });
  11315. }, b.prototype.setDOMEvents = function() {
  11316. C.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(v);
  11317. }, b;
  11318. }(R);
  11319. }), E(h, "Core/Legend/Legend.js", [
  11320. h["Core/Animation/AnimationUtilities.js"],
  11321. h["Core/FormatUtilities.js"],
  11322. h["Core/Globals.js"],
  11323. h["Core/Series/Point.js"],
  11324. h["Core/Renderer/RendererUtilities.js"],
  11325. h["Core/Utilities.js"]
  11326. ], function(y, R, I, Z, H, $) {
  11327. var U = y.animObject, W = y.setAnimation, N = R.format;
  11328. y = I.isFirefox;
  11329. var w = I.marginNames;
  11330. I = I.win;
  11331. var v = H.distribute, u = $.addEvent, d = $.createElement, P = $.css, O = $.defined, B = $.discardElement, C = $.find, b = $.fireEvent, M = $.isNumber, x = $.merge, a = $.pick, c = $.relativeLength, p = $.stableSort, i = $.syncTimeout;
  11332. return H = $.wrap, $ = function() {
  11333. function l(s, t) {
  11334. 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);
  11335. }
  11336. return l.prototype.init = function(s, t) {
  11337. this.chart = s, this.setOptions(t), t.enabled && (this.render(), u(this.chart, "endResize", function() {
  11338. this.legend.positionCheckboxes();
  11339. }), this.proximate ? this.unchartrender = u(this.chart, "render", function() {
  11340. this.legend.proximatePositions(), this.legend.positionItems();
  11341. }) : this.unchartrender && this.unchartrender());
  11342. }, l.prototype.setOptions = function(s) {
  11343. var t = a(s.padding, 8);
  11344. 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(
  11345. s.symbolWidth,
  11346. 16
  11347. ), this.pages = [], this.proximate = s.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  11348. }, l.prototype.update = function(s, t) {
  11349. var n = this.chart;
  11350. this.setOptions(x(!0, this.options, s)), this.destroy(), n.isDirtyLegend = n.isDirtyBox = !0, a(t, !0) && n.redraw(), b(this, "afterUpdate");
  11351. }, l.prototype.colorizeItem = function(s, t) {
  11352. if (s.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  11353. var n = this.options, o = s.legendItem, A = s.legendLine, _ = s.legendSymbol, D = this.itemHiddenStyle.color;
  11354. n = t ? n.itemStyle.color : D;
  11355. var j = t && s.color || D, T = s.options && s.options.marker, X = { fill: j };
  11356. o && o.css({ fill: n, color: n }), A && A.attr({ stroke: j }), _ && (T && _.isMarker && (X = s.pointAttribs(), t || (X.stroke = X.fill = D)), _.attr(X));
  11357. }
  11358. b(this, "afterColorizeItem", { item: s, visible: t });
  11359. }, l.prototype.positionItems = function() {
  11360. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  11361. }, l.prototype.positionItem = function(s) {
  11362. var t = this, n = this.options, o = n.symbolPadding, A = !n.rtl, _ = s._legendItemPos;
  11363. n = _[0], _ = _[1];
  11364. var D = s.checkbox, j = s.legendGroup;
  11365. j && j.element && (o = { translateX: A ? n : this.legendWidth - n - 2 * o - 4, translateY: _ }, A = function() {
  11366. b(t, "afterPositionItem", { item: s });
  11367. }, O(j.translateY) ? j.animate(o, void 0, A) : (j.attr(o), A())), D && (D.x = n, D.y = _);
  11368. }, l.prototype.destroyItem = function(s) {
  11369. var t = s.checkbox;
  11370. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(n) {
  11371. s[n] && (s[n] = s[n].destroy());
  11372. }), t && B(s.checkbox);
  11373. }, l.prototype.destroy = function() {
  11374. function s(t) {
  11375. this[t] && (this[t] = this[t].destroy());
  11376. }
  11377. this.getAllItems().forEach(function(t) {
  11378. [
  11379. "legendItem",
  11380. "legendGroup"
  11381. ].forEach(s, t);
  11382. }), "clipRect up down pager nav box title group".split(" ").forEach(s, this), this.display = null;
  11383. }, l.prototype.positionCheckboxes = function() {
  11384. var s = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, n = this.titleHeight;
  11385. if (s) {
  11386. var o = s.translateY;
  11387. this.allItems.forEach(function(A) {
  11388. var _ = A.checkbox;
  11389. if (_) {
  11390. var D = o + n + _.y + (this.scrollOffset || 0) + 3;
  11391. P(_, { left: s.translateX + A.checkboxOffset + _.x - 20 + "px", top: D + "px", display: this.proximate || D > o - 6 && D < o + t - 6 ? "" : "none" });
  11392. }
  11393. }, this);
  11394. }
  11395. }, l.prototype.renderTitle = function() {
  11396. var s = this.options, t = this.padding, n = s.title, o = 0;
  11397. n.text && (this.title || (this.title = this.chart.renderer.label(n.text, t - 3, t - 4, null, null, null, s.useHTML, null, "legend-title").attr({ zIndex: 1 }), this.chart.styledMode || this.title.css(n.style), this.title.add(this.group)), n.width || this.title.css({ width: this.maxLegendWidth + "px" }), s = this.title.getBBox(), o = s.height, this.offsetWidth = s.width, this.contentGroup.attr({ translateY: o })), this.titleHeight = o;
  11398. }, l.prototype.setText = function(s) {
  11399. var t = this.options;
  11400. s.legendItem.attr({ text: t.labelFormat ? N(t.labelFormat, s, this.chart) : t.labelFormatter.call(s) });
  11401. }, l.prototype.renderItem = function(s) {
  11402. var t = this.chart, n = t.renderer, o = this.options, A = this.symbolWidth, _ = o.symbolPadding || 0, D = this.itemStyle, j = this.itemHiddenStyle, T = o.layout === "horizontal" ? a(o.itemDistance, 20) : 0, X = !o.rtl, f = !s.series, m = !f && s.series.drawLegendSymbol ? s.series : s, L = m.options, Y = this.createCheckboxForItem && L && L.showCheckbox, F = o.useHTML, Q = s.options.className, k = s.legendItem;
  11403. L = A + _ + T + (Y ? 20 : 0), k || (s.legendGroup = n.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + s.colorIndex + (Q ? " " + Q : "") + (f ? " highcharts-series-" + s.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), s.legendItem = k = n.text("", X ? A + _ : -_, this.baseline || 0, F), t.styledMode || k.css(x(s.visible ? D : j)), k.attr({ align: X ? "left" : "right", zIndex: 2 }).add(s.legendGroup), this.baseline || (this.fontMetrics = n.fontMetrics(t.styledMode ? 12 : D.fontSize, k), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, k.attr("y", this.baseline), this.symbolHeight = o.symbolHeight || this.fontMetrics.f, o.squareSymbol && (this.symbolWidth = a(o.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, F)), Y && !s.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(s), this.colorizeItem(s, s.visible), !t.styledMode && D.width || k.css({ width: (o.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(s), t = k.getBBox(), n = this.fontMetrics && this.fontMetrics.h || 0, s.itemWidth = s.checkboxOffset = o.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 * n ? t.height : n));
  11404. }, l.prototype.layoutItem = function(s) {
  11405. var t = this.options, n = this.padding, o = t.layout === "horizontal", A = s.itemHeight, _ = this.itemMarginBottom, D = this.itemMarginTop, j = o ? a(t.itemDistance, 20) : 0, T = this.maxLegendWidth;
  11406. t = t.alignColumns && this.totalItemWidth > T ? this.maxItemWidth : s.itemWidth, o && this.itemX - n + t > T && (this.itemX = n, 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], o ? this.itemX += t : (this.itemY += D + A + _, this.lastLineHeight = A), this.offsetWidth = this.widthOption || Math.max((o ? this.itemX - n - (s.checkbox ? 0 : j) : t) + n, this.offsetWidth);
  11407. }, l.prototype.getAllItems = function() {
  11408. var s = [];
  11409. return this.chart.series.forEach(function(t) {
  11410. var n = t && t.options;
  11411. t && a(n.showInLegend, O(n.linkedTo) ? !1 : void 0, !0) && (s = s.concat(t.legendItems || (n.legendType === "point" ? t.data : t)));
  11412. }), b(this, "afterGetAllItems", { allItems: s }), s;
  11413. }, l.prototype.getAlignment = function() {
  11414. var s = this.options;
  11415. return this.proximate ? s.align.charAt(0) + "tv" : s.floating ? "" : s.align.charAt(0) + s.verticalAlign.charAt(0) + s.layout.charAt(0);
  11416. }, l.prototype.adjustMargins = function(s, t) {
  11417. var n = this.chart, o = this.options, A = this.getAlignment();
  11418. A && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  11419. _.test(A) && !O(s[D]) && (n[w[D]] = Math.max(n[w[D]], n.legend[(D + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][D] * o[D % 2 ? "x" : "y"] + a(o.margin, 12) + t[D] + (n.titleOffset[D] || 0)));
  11420. });
  11421. }, l.prototype.proximatePositions = function() {
  11422. var s = this.chart, t = [], n = this.options.align === "left";
  11423. this.allItems.forEach(function(o) {
  11424. var A, _ = n;
  11425. if (o.yAxis) {
  11426. o.xAxis.options.reversed && (_ = !_), o.points && (A = C(_ ? o.points : o.points.slice(0).reverse(), function(j) {
  11427. return M(j.plotY);
  11428. })), _ = this.itemMarginTop + o.legendItem.getBBox().height + this.itemMarginBottom;
  11429. var D = o.yAxis.top - s.plotTop;
  11430. o.visible ? (A = A ? A.plotY : o.yAxis.height, A += D - 0.3 * _) : A = D + o.yAxis.height, t.push({ target: A, size: _, item: o });
  11431. }
  11432. }, this), v(t, s.plotHeight).forEach(function(o) {
  11433. o.item._legendItemPos && (o.item._legendItemPos[1] = s.plotTop - s.spacing[0] + o.pos);
  11434. });
  11435. }, l.prototype.render = function() {
  11436. var s = this.chart, t = s.renderer, n = this.options, o = this.padding, A = this.getAllItems(), _ = this.group, D = this.box;
  11437. this.itemX = o, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(n.width, s.spacingBox.width - o);
  11438. var j = s.spacingBox.width - 2 * o - n.x;
  11439. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (j /= 2), this.maxLegendWidth = this.widthOption || j, _ || (this.group = _ = t.g("legend").addClass(n.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, f) {
  11440. return (X.options && X.options.legendIndex || 0) - (f.options && f.options.legendIndex || 0);
  11441. }), n.reversed && A.reverse(), this.allItems = A, this.display = j = !!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) + o;
  11442. var T = this.lastItemY + this.lastLineHeight + this.titleHeight;
  11443. T = this.handleOverflow(T), T += o, D || (this.box = D = t.rect().addClass("highcharts-legend-box").attr({ r: n.borderRadius }).add(_), D.isNew = !0), s.styledMode || D.attr({ stroke: n.borderColor, "stroke-width": n.borderWidth || 0, fill: n.backgroundColor || "none" }).shadow(n.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[j ? "show" : "hide"](), s.styledMode && _.getStyle("display") === "none" && (A = T = 0), this.legendWidth = A, this.legendHeight = T, j && this.align(), this.proximate || this.positionItems(), b(this, "afterRender");
  11444. }, l.prototype.align = function(s) {
  11445. s === void 0 && (s = this.chart.spacingBox);
  11446. var t = this.chart, n = this.options, o = s.y;
  11447. /(lth|ct|rth)/.test(this.getAlignment()) && 0 < t.titleOffset[0] ? o += t.titleOffset[0] : /(lbh|cb|rbh)/.test(this.getAlignment()) && 0 < t.titleOffset[2] && (o -= t.titleOffset[2]), o !== s.y && (s = x(s, { y: o })), this.group.align(x(n, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : n.verticalAlign }), !0, s);
  11448. }, l.prototype.handleOverflow = function(s) {
  11449. var t = this, n = this.chart, o = n.renderer, A = this.options, _ = A.y, D = A.verticalAlign === "top", j = this.padding, T = A.maxHeight, X = A.navigation, f = a(X.animation, !0), m = X.arrowSize || 12, L = this.pages, Y = this.allItems, F = function(q) {
  11450. typeof q == "number" ? V.attr({ height: q }) : V && (t.clipRect = V.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + j + "px,9999px," + (j + q) + "px,0)" : "auto");
  11451. }, Q = function(q) {
  11452. return t[q] = o.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(z), n.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  11453. }, k, G;
  11454. _ = n.spacingBox.height + (D ? -_ : _) - j;
  11455. var z = this.nav, V = this.clipRect;
  11456. 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 - j, 0), this.currentPage = a(this.currentPage, 1), this.fullHeight = s, Y.forEach(function(q, it) {
  11457. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  11458. (!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);
  11459. }), V || (V = t.clipRect = o.clipRect(0, j, 9999, 0), t.contentGroup.clip(V)), F(k), z || (this.nav = z = o.g().attr({ zIndex: 1 }).add(this.group), this.up = o.symbol("triangle", 0, 0, m, m).add(z), Q("upTracker").on(
  11460. "click",
  11461. function() {
  11462. t.scroll(-1, f);
  11463. }
  11464. ), this.pager = o.text("", 15, 10).addClass("highcharts-legend-navigation"), n.styledMode || this.pager.css(X.style), this.pager.add(z), this.down = o.symbol("triangle-down", 0, 0, m, m).add(z), Q("downTracker").on("click", function() {
  11465. t.scroll(1, f);
  11466. })), t.scroll(0), s = _) : z && (F(), this.nav = z.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), s;
  11467. }, l.prototype.scroll = function(s, t) {
  11468. var n = this, o = this.chart, A = this.pages, _ = A.length, D = this.clipHeight, j = this.options.navigation, T = this.pager, X = this.padding, f = this.currentPage + s;
  11469. f > _ && (f = _), 0 < f && (typeof t < "u" && W(t, o), this.nav.attr({ translateX: X, translateY: D + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  11470. m.attr({ class: f === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11471. }), T.attr({ text: f + "/" + _ }), [this.down, this.downTracker].forEach(
  11472. function(m) {
  11473. m.attr({ x: 18 + this.pager.getBBox().width, class: f === _ ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11474. },
  11475. this
  11476. ), o.styledMode || (this.up.attr({ fill: f === 1 ? j.inactiveColor : j.activeColor }), this.upTracker.css({ cursor: f === 1 ? "default" : "pointer" }), this.down.attr({ fill: f === _ ? j.inactiveColor : j.activeColor }), this.downTracker.css({ cursor: f === _ ? "default" : "pointer" })), this.scrollOffset = -A[f - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = f, this.positionCheckboxes(), s = U(a(t, o.renderer.globalAnimation, !0)), i(function() {
  11477. b(n, "afterScroll", { currentPage: f });
  11478. }, s.duration));
  11479. }, l.prototype.setItemEvents = function(s, t, n) {
  11480. var o = this, A = o.chart.renderer.boxWrapper, _ = s instanceof Z, D = "highcharts-legend-" + (_ ? "point" : "series") + "-active", j = o.chart.styledMode, T = function(X) {
  11481. o.allItems.forEach(function(f) {
  11482. s !== f && [f].concat(f.linkedSeries || []).forEach(function(m) {
  11483. m.setState(X, !_);
  11484. });
  11485. });
  11486. };
  11487. (n ? [t, s.legendSymbol] : [s.legendGroup]).forEach(function(X) {
  11488. X && X.on("mouseover", function() {
  11489. s.visible && T("inactive"), s.setState("hover"), s.visible && A.addClass(D), j || t.css(o.options.itemHoverStyle);
  11490. }).on("mouseout", function() {
  11491. o.chart.styledMode || t.css(x(s.visible ? o.itemStyle : o.itemHiddenStyle)), T(""), A.removeClass(D), s.setState();
  11492. }).on("click", function(f) {
  11493. var m = function() {
  11494. s.setVisible && s.setVisible(), T(s.visible ? "inactive" : "");
  11495. };
  11496. A.removeClass(D), f = { browserEvent: f }, s.firePointEvent ? s.firePointEvent("legendItemClick", f, m) : b(s, "legendItemClick", f, m);
  11497. });
  11498. });
  11499. }, l.prototype.createCheckboxForItem = function(s) {
  11500. s.checkbox = d(
  11501. "input",
  11502. { type: "checkbox", className: "highcharts-legend-checkbox", checked: s.selected, defaultChecked: s.selected },
  11503. this.options.itemCheckboxStyle,
  11504. this.chart.container
  11505. ), u(s.checkbox, "click", function(t) {
  11506. b(s.series || s, "checkboxClick", { checked: t.target.checked, item: s }, function() {
  11507. s.select();
  11508. });
  11509. });
  11510. }, l;
  11511. }(), (/Trident\/7\.0/.test(I.navigator && I.navigator.userAgent) || y) && H($.prototype, "positionItem", function(l, s) {
  11512. var t = this, n = function() {
  11513. s._legendItemPos && l.call(t, s);
  11514. };
  11515. n(), t.bubbleLegend || setTimeout(n);
  11516. }), $;
  11517. }), E(
  11518. h,
  11519. "Core/Series/SeriesRegistry.js",
  11520. [h["Core/Globals.js"], h["Core/DefaultOptions.js"], h["Core/Series/Point.js"], h["Core/Utilities.js"]],
  11521. function(y, R, I, Z) {
  11522. var H = R.defaultOptions, $ = Z.error, U = Z.extendClass, W = Z.merge, N;
  11523. return function(w) {
  11524. function v(u, d) {
  11525. var P = H.plotOptions || {}, O = d.defaultOptions;
  11526. d.prototype.pointClass || (d.prototype.pointClass = I), d.prototype.type = u, O && (P[u] = O), w.seriesTypes[u] = d;
  11527. }
  11528. w.seriesTypes = y.seriesTypes, w.getSeries = function(u, d) {
  11529. d === void 0 && (d = {});
  11530. var P = u.options.chart;
  11531. P = d.type || P.type || P.defaultSeriesType || "";
  11532. var O = w.seriesTypes[P];
  11533. return w || $(17, !0, u, { missingModuleFor: P }), P = new O(), typeof P.init == "function" && P.init(u, d), P;
  11534. }, w.registerSeriesType = v, w.seriesType = function(u, d, P, O, B) {
  11535. var C = H.plotOptions || {};
  11536. return d = d || "", C[u] = W(C[d], P), v(u, U(w.seriesTypes[d] || function() {
  11537. }, O)), w.seriesTypes[u].prototype.type = u, B && (w.seriesTypes[u].prototype.pointClass = U(I, B)), w.seriesTypes[u];
  11538. };
  11539. }(N || (N = {})), N;
  11540. }
  11541. ), E(h, "Core/Chart/Chart.js", [
  11542. h["Core/Animation/AnimationUtilities.js"],
  11543. h["Core/Axis/Axis.js"],
  11544. h["Core/FormatUtilities.js"],
  11545. h["Core/Foundation.js"],
  11546. h["Core/Globals.js"],
  11547. h["Core/Legend/Legend.js"],
  11548. h["Core/MSPointer.js"],
  11549. h["Core/DefaultOptions.js"],
  11550. h["Core/Pointer.js"],
  11551. h["Core/Renderer/RendererRegistry.js"],
  11552. h["Core/Series/SeriesRegistry.js"],
  11553. h["Core/Renderer/SVG/SVGRenderer.js"],
  11554. h["Core/Time.js"],
  11555. h["Core/Utilities.js"],
  11556. h["Core/Renderer/HTML/AST.js"]
  11557. ], function(y, R, I, Z, H, $, U, W, N, w, v, u, d, P, O) {
  11558. var B = y.animate, C = y.animObject, b = y.setAnimation, M = I.numberFormat, x = Z.registerEventOptions, a = H.charts, c = H.doc, p = H.marginNames, i = H.svg, l = H.win, s = W.defaultOptions, t = W.defaultTime, n = v.seriesTypes, o = P.addEvent, A = P.attr, _ = P.cleanRecursively, D = P.createElement, j = P.css, T = P.defined, X = P.discardElement, f = P.erase, m = P.error, L = P.extend, Y = P.find, F = P.fireEvent, Q = P.getStyle, k = P.isArray, G = P.isNumber, z = P.isObject, V = 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;
  11559. return y = function() {
  11560. function at(J, tt, st) {
  11561. 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);
  11562. }
  11563. return at.chart = function(J, tt, st) {
  11564. return new at(J, tt, st);
  11565. }, at.prototype.getArgs = function(J, tt, st) {
  11566. V(J) || J.nodeName ? (this.renderTo = J, this.init(tt, st)) : this.init(J, tt);
  11567. }, at.prototype.init = function(J, tt) {
  11568. var st = J.plotOptions || {};
  11569. F(this, "init", { args: arguments }, function() {
  11570. var ht = q(s, J), pt = ht.chart;
  11571. it(ht.plotOptions, function(yt, vt) {
  11572. z(yt) && (yt.tooltip = st[vt] && q(st[vt].tooltip) || void 0);
  11573. }), 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 d(J.time) : H.time, this.numberFormatter = pt.numberFormatter || M, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = a.length, a.push(this), H.chartCount++, x(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, F(this, "afterInit"), this.firstRender();
  11574. });
  11575. }, at.prototype.initSeries = function(J) {
  11576. var tt = this.options.chart;
  11577. tt = J.type || tt.type || tt.defaultSeriesType;
  11578. var st = n[tt];
  11579. return st || m(17, !0, this, { missingModuleFor: tt }), tt = new st(), typeof tt.init == "function" && tt.init(this, J), tt;
  11580. }, at.prototype.setSeriesData = function() {
  11581. this.getSeriesOrderByLinks().forEach(function(J) {
  11582. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  11583. });
  11584. }, at.prototype.getSeriesOrderByLinks = function() {
  11585. return this.series.concat().sort(function(J, tt) {
  11586. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  11587. });
  11588. }, at.prototype.orderSeries = function(J) {
  11589. var tt = this.series;
  11590. J = J || 0;
  11591. for (var st = tt.length; J < st; ++J)
  11592. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  11593. }, at.prototype.isInsidePlot = function(J, tt, st) {
  11594. st === void 0 && (st = {});
  11595. var ht = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Ct = this.scrollablePlotBox, Tt = 0, kt = 0;
  11596. st.visiblePlotOnly && this.scrollingContainer && (kt = this.scrollingContainer, Tt = kt.scrollLeft, kt = kt.scrollTop);
  11597. var St = st.series;
  11598. 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) {
  11599. var _t = St && (ht ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  11600. Ct = st.paneCoordinates ? _t.pos + Ct : yt + Ct, Ct >= Math.max(Tt + yt, _t.pos) && Ct <= Math.min(Tt + yt + pt.width, _t.pos + _t.len) || (J.isInsidePlot = !1);
  11601. }
  11602. 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)), F(this, "afterIsInsidePlot", J), J.isInsidePlot;
  11603. }, at.prototype.redraw = function(J) {
  11604. F(this, "beforeRedraw");
  11605. 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(), Tt = [], kt = this.isDirtyBox, St = this.isDirtyLegend;
  11606. for (this.setResponsive && this.setResponsive(!1), b(this.hasRendered ? J : !1, this), Ct && this.temporaryDisplay(), this.layOutTitles(), J = st.length; J--; ) {
  11607. var _t = st[J];
  11608. if (_t.options.stacking || _t.options.centerInCategory) {
  11609. var Lt = !0;
  11610. if (_t.isDirty) {
  11611. var Nt = !0;
  11612. break;
  11613. }
  11614. }
  11615. }
  11616. if (Nt)
  11617. for (J = st.length; J--; )
  11618. _t = st[J], _t.options.stacking && (_t.isDirty = !0);
  11619. st.forEach(function(Et) {
  11620. Et.isDirty && (Et.options.legendType === "point" ? (typeof Et.updateTotals == "function" && Et.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Et.isDirtyData && F(Et, "updatedData");
  11621. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), Lt && this.getStacks(), tt.forEach(function(Et) {
  11622. Et.updateNames(), Et.setScale();
  11623. }), this.getMargins(), tt.forEach(function(Et) {
  11624. Et.isDirty && (kt = !0);
  11625. }), tt.forEach(function(Et) {
  11626. var Kt = Et.min + "," + Et.max;
  11627. Et.extKey !== Kt && (Et.extKey = Kt, Tt.push(function() {
  11628. F(Et, "afterSetExtremes", L(Et.eventArgs, Et.getExtremes())), delete Et.eventArgs;
  11629. })), (kt || Lt) && Et.redraw();
  11630. }), kt && this.drawChartBox(), F(this, "predraw"), st.forEach(function(Et) {
  11631. (kt || Et.isDirty) && Et.visible && Et.redraw(), Et.isDirtyData = !1;
  11632. }), ht && ht.reset(!0), vt.draw(), F(this, "redraw"), F(this, "render"), Ct && this.temporaryDisplay(!0), Tt.forEach(function(Et) {
  11633. Et.call();
  11634. });
  11635. }, at.prototype.get = function(J) {
  11636. function tt(yt) {
  11637. return yt.id === J || yt.options && yt.options.id === J;
  11638. }
  11639. for (var st = this.series, ht = Y(this.axes, tt) || Y(this.series, tt), pt = 0; !ht && pt < st.length; pt++)
  11640. ht = Y(st[pt].points || [], tt);
  11641. return ht;
  11642. }, at.prototype.getAxes = function() {
  11643. var J = this, tt = this.options, st = tt.xAxis = gt(tt.xAxis || {});
  11644. tt = tt.yAxis = gt(tt.yAxis || {}), F(this, "getAxes"), st.forEach(function(ht, pt) {
  11645. ht.index = pt, ht.isX = !0;
  11646. }), tt.forEach(function(ht, pt) {
  11647. ht.index = pt;
  11648. }), st.concat(tt).forEach(function(ht) {
  11649. new R(J, ht);
  11650. }), F(this, "afterGetAxes");
  11651. }, at.prototype.getSelectedPoints = function() {
  11652. return this.series.reduce(function(J, tt) {
  11653. return tt.getPointsCollection().forEach(function(st) {
  11654. et(st.selectedStaging, st.selected) && J.push(st);
  11655. }), J;
  11656. }, []);
  11657. }, at.prototype.getSelectedSeries = function() {
  11658. return this.series.filter(function(J) {
  11659. return J.selected;
  11660. });
  11661. }, at.prototype.setTitle = function(J, tt, st) {
  11662. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription(
  11663. "caption",
  11664. void 0
  11665. ), this.layOutTitles(st);
  11666. }, at.prototype.applyDescription = function(J, tt) {
  11667. var st = this, ht = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  11668. ht = this.options[J] = q(!this.styledMode && { style: ht }, this.options[J], tt);
  11669. var pt = this[J];
  11670. 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) {
  11671. st[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  11672. }, this.styledMode || pt.css(ht.style), this[J] = pt);
  11673. }, at.prototype.layOutTitles = function(J) {
  11674. var tt = [0, 0, 0], st = this.renderer, ht = this.spacingBox;
  11675. ["title", "subtitle", "caption"].forEach(function(yt) {
  11676. var vt = this[yt], Ct = this.options[yt], Tt = Ct.verticalAlign || "top";
  11677. yt = yt === "title" ? Tt === "top" ? -3 : 0 : Tt === "top" ? tt[0] + 2 : 0;
  11678. var kt;
  11679. if (vt) {
  11680. 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" });
  11681. var St = Math.round(vt.getBBox(Ct.useHTML).height);
  11682. vt.align(L({ y: Tt === "bottom" ? kt : yt + kt, height: St }, Ct), !1, "spacingBox"), Ct.floating || (Tt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Tt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  11683. }
  11684. }, 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);
  11685. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  11686. this.titleOffset = tt, F(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  11687. }, at.prototype.getChartSize = function() {
  11688. var J = this.options.chart, tt = J.width;
  11689. J = J.height;
  11690. var st = this.renderTo;
  11691. 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));
  11692. }, at.prototype.temporaryDisplay = function(J) {
  11693. var tt = this.renderTo;
  11694. if (J)
  11695. for (; tt && tt.style; )
  11696. tt.hcOrigStyle && (j(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  11697. else
  11698. 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), j(tt, J), tt.offsetWidth || tt.style.setProperty("display", "block", "important")), tt = tt.parentNode, tt !== c.body); )
  11699. ;
  11700. }, at.prototype.setClassName = function(J) {
  11701. this.container.className = "highcharts-container " + (J || "");
  11702. }, at.prototype.getContainer = function() {
  11703. var J = this.options, tt = J.chart, st = lt(), ht, pt = this.renderTo;
  11704. pt || (this.renderTo = pt = tt.renderTo), V(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  11705. var yt = nt(A(pt, "data-highcharts-chart"));
  11706. 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;
  11707. var vt = this.chartHeight;
  11708. if (j(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 ? w.getRendererType(tt.renderer) : u)(st, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), b(
  11709. void 0,
  11710. this
  11711. ), this.setClassName(tt.className), this.styledMode)
  11712. for (var Ct in J.defs)
  11713. this.renderer.definition(J.defs[Ct]);
  11714. else
  11715. this.renderer.setStyle(tt.style);
  11716. this.renderer.chartIndex = this.index, F(this, "afterGetContainer");
  11717. }, at.prototype.getMargins = function(J) {
  11718. var tt = this.spacing, st = this.margin, ht = this.titleOffset;
  11719. 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(
  11720. st,
  11721. tt
  11722. ), F(this, "getMargins"), J || this.getAxisMargins();
  11723. }, at.prototype.getAxisMargins = function() {
  11724. var J = this, tt = J.axisOffset = [0, 0, 0, 0], st = J.colorAxis, ht = J.margin, pt = function(yt) {
  11725. yt.forEach(function(vt) {
  11726. vt.visible && vt.getOffset();
  11727. });
  11728. };
  11729. J.hasCartesianSeries ? pt(J.axes) : st && st.length && pt(st), p.forEach(function(yt, vt) {
  11730. T(ht[vt]) || (J[yt] += tt[vt]);
  11731. }), J.setChartSize();
  11732. }, at.prototype.reflow = function(J) {
  11733. var tt = this, st = tt.options.chart, ht = tt.renderTo, pt = T(st.width) && T(st.height), yt = st.width || Q(ht, "width");
  11734. 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() {
  11735. tt.container && tt.setSize(void 0, void 0, !1);
  11736. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = st);
  11737. }, at.prototype.setReflow = function(J) {
  11738. var tt = this;
  11739. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = o(l, "resize", function(st) {
  11740. tt.options && tt.reflow(st);
  11741. }), o(this, "destroy", this.unbindReflow));
  11742. }, at.prototype.setSize = function(J, tt, st) {
  11743. var ht = this, pt = ht.renderer;
  11744. 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 ? B : j)(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) {
  11745. yt.isDirty = !0, yt.setScale();
  11746. }), ht.isDirtyLegend = !0, ht.isDirtyBox = !0, ht.layOutTitles(), ht.getMargins(), ht.redraw(st), ht.oldChartHeight = null, F(ht, "resize"), dt(function() {
  11747. ht && F(ht, "endResize", null, function() {
  11748. --ht.isResizing;
  11749. });
  11750. }, C(st).duration);
  11751. }, at.prototype.setChartSize = function(J) {
  11752. var tt = this.inverted, st = this.renderer, ht = this.chartWidth, pt = this.chartHeight, yt = this.options.chart, vt = this.spacing, Ct = this.clipOffset, Tt, kt, St, _t;
  11753. this.plotLeft = Tt = Math.round(this.plotLeft), this.plotTop = kt = Math.round(this.plotTop), this.plotWidth = St = Math.max(0, Math.round(ht - Tt - this.marginRight)), this.plotHeight = _t = Math.max(0, Math.round(pt - kt - this.marginBottom)), this.plotSizeX = tt ? _t : St, this.plotSizeY = tt ? St : _t, 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: Tt, y: kt, width: St, height: _t }, 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) {
  11754. Lt.setAxisSize(), Lt.setAxisTranslation();
  11755. }), st.alignElements()), F(this, "afterSetChartSize", { skipAxes: J });
  11756. }, at.prototype.resetMargins = function() {
  11757. F(this, "resetMargins");
  11758. var J = this, tt = J.options.chart;
  11759. ["margin", "spacing"].forEach(function(st) {
  11760. var ht = tt[st], pt = z(ht) ? ht : [ht, ht, ht, ht];
  11761. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  11762. J[st][vt] = et(tt[st + yt], pt[vt]);
  11763. });
  11764. }), p.forEach(function(st, ht) {
  11765. J[st] = et(J.margin[ht], J.spacing[ht]);
  11766. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  11767. }, at.prototype.drawChartBox = function() {
  11768. 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, Tt = J.plotBackgroundImage, kt = this.plotLeft, St = this.plotTop, _t = 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";
  11769. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), zt = "attr"), pt)
  11770. var Vt = be = Gt.strokeWidth();
  11771. else
  11772. 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);
  11773. 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), Tt && (yt ? (Tt !== yt.attr("href") && yt.attr("href", Tt), yt.animate(Nt)) : this.plotBGImage = tt.image(Tt, kt, St, _t, 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: _t, height: Lt }, -Jt.strokeWidth())), this.isDirtyBox = !1, F(this, "afterDrawChartBox");
  11774. }, at.prototype.propFromSeries = function() {
  11775. var J = this, tt = J.options.chart, st = J.options.series, ht, pt, yt;
  11776. ["inverted", "angular", "polar"].forEach(function(vt) {
  11777. for (pt = n[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], ht = st && st.length; !yt && ht--; )
  11778. (pt = n[st[ht].type]) && pt.prototype[vt] && (yt = !0);
  11779. J[vt] = yt;
  11780. });
  11781. }, at.prototype.linkSeries = function() {
  11782. var J = this, tt = J.series;
  11783. tt.forEach(function(st) {
  11784. st.linkedSeries.length = 0;
  11785. }), tt.forEach(function(st) {
  11786. var ht = st.options.linkedTo;
  11787. V(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));
  11788. }), F(this, "afterLinkSeries");
  11789. }, at.prototype.renderSeries = function() {
  11790. this.series.forEach(function(J) {
  11791. J.translate(), J.render();
  11792. });
  11793. }, at.prototype.renderLabels = function() {
  11794. var J = this, tt = J.options.labels;
  11795. tt.items && tt.items.forEach(function(st) {
  11796. var ht = L(tt.style, st.style), pt = nt(ht.left) + J.plotLeft, yt = nt(ht.top) + J.plotTop + 12;
  11797. delete ht.left, delete ht.top, J.renderer.text(st.html, pt, yt).attr({ zIndex: 2 }).css(ht).add();
  11798. });
  11799. }, at.prototype.render = function() {
  11800. var J = this.axes, tt = this.colorAxis, st = this.renderer, ht = this.options, pt = function(kt) {
  11801. kt.forEach(function(St) {
  11802. St.visible && St.render();
  11803. });
  11804. }, yt = 0;
  11805. this.setTitle(), this.legend = new $(this, ht.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), ht = this.plotWidth, J.some(function(kt) {
  11806. if (kt.horiz && kt.visible && kt.options.labels.enabled && kt.series.length)
  11807. return yt = 21, !0;
  11808. });
  11809. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  11810. J.forEach(function(kt) {
  11811. kt.setScale();
  11812. }), this.getAxisMargins();
  11813. var Ct = 1.1 < ht / this.plotWidth, Tt = 1.05 < vt / this.plotHeight;
  11814. (Ct || Tt) && (J.forEach(function(kt) {
  11815. (kt.horiz && Ct || !kt.horiz && Tt) && kt.setTickInterval(!0);
  11816. }), 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;
  11817. }, at.prototype.addCredits = function(J) {
  11818. var tt = this, st = q(!0, this.options.credits, J);
  11819. st.enabled && !this.credits && (this.credits = this.renderer.text(st.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  11820. st.href && (l.location.href = st.href);
  11821. }).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) {
  11822. tt.credits = tt.credits.destroy(), tt.addCredits(ht);
  11823. });
  11824. }, at.prototype.destroy = function() {
  11825. var J = this, tt = J.axes, st = J.series, ht = J.container, pt = ht && ht.parentNode, yt;
  11826. for (F(J, "destroy"), J.renderer.forExport ? f(a, J) : a[J.index] = void 0, H.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  11827. tt[yt] = tt[yt].destroy();
  11828. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = st.length; yt--; )
  11829. st[yt] = st[yt].destroy();
  11830. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  11831. var Ct = J[vt];
  11832. Ct && Ct.destroy && (J[vt] = Ct.destroy());
  11833. }), ht && (ht.innerHTML = O.emptyHTML, ct(ht), pt && X(ht)), it(J, function(vt, Ct) {
  11834. delete J[Ct];
  11835. });
  11836. }, at.prototype.firstRender = function() {
  11837. var J = this, tt = J.options;
  11838. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (k(tt.series) ? tt.series : []).forEach(function(st) {
  11839. J.initSeries(st);
  11840. }), J.linkSeries(), J.setSeriesData(), F(J, "beforeRender"), N && (U.isRequired() ? J.pointer = new U(J, tt) : J.pointer = new N(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  11841. }, at.prototype.onload = function() {
  11842. this.callbacks.concat([this.callback]).forEach(function(J) {
  11843. J && typeof this.index < "u" && J.apply(this, [this]);
  11844. }, this), F(this, "load"), F(this, "render"), T(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  11845. }, at.prototype.addSeries = function(J, tt, st) {
  11846. var ht = this, pt;
  11847. return J && (tt = et(tt, !0), F(ht, "addSeries", { options: J }, function() {
  11848. pt = ht.initSeries(J), ht.isDirtyLegend = !0, ht.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), F(ht, "afterAddSeries", { series: pt }), tt && ht.redraw(st);
  11849. })), pt;
  11850. }, at.prototype.addAxis = function(J, tt, st, ht) {
  11851. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: st, animation: ht });
  11852. }, at.prototype.addColorAxis = function(J, tt, st) {
  11853. return this.createAxis(
  11854. "colorAxis",
  11855. { axis: J, redraw: tt, animation: st }
  11856. );
  11857. }, at.prototype.createAxis = function(J, tt) {
  11858. return J = new R(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  11859. }, at.prototype.showLoading = function(J) {
  11860. var tt = this, st = tt.options, ht = st.loading, pt = function() {
  11861. yt && j(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  11862. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  11863. 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), o(tt, "redraw", pt)), yt.className = "highcharts-loading", O.setElementHTML(vt, et(J, st.lang.loading, "")), tt.styledMode || (j(yt, L(ht.style, { zIndex: 10 })), j(vt, ht.labelStyle), tt.loadingShown || (j(yt, { opacity: 0, display: "" }), B(yt, { opacity: ht.style.opacity || 0.5 }, { duration: ht.showDuration || 0 }))), tt.loadingShown = !0, pt();
  11864. }, at.prototype.hideLoading = function() {
  11865. var J = this.options, tt = this.loadingDiv;
  11866. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || B(tt, { opacity: 0 }, { duration: J.loading.hideDuration || 100, complete: function() {
  11867. j(tt, { display: "none" });
  11868. } })), this.loadingShown = !1;
  11869. }, at.prototype.update = function(J, tt, st, ht) {
  11870. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Ct = [], Tt, kt;
  11871. F(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = _(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  11872. var St = J.chart;
  11873. if (St) {
  11874. 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) {
  11875. pt.propFromSeries();
  11876. var _t = !0;
  11877. }
  11878. "alignTicks" in St && (_t = !0), "events" in St && x(this, St), it(St, function(Lt, Nt) {
  11879. pt.propsRequireUpdateSeries.indexOf("chart." + Nt) !== -1 && (Tt = !0), pt.propsRequireDirtyBox.indexOf(Nt) !== -1 && (pt.isDirtyBox = !0), pt.propsRequireReflow.indexOf(Nt) !== -1 && (vt ? pt.isDirtyBox = !0 : kt = !0);
  11880. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  11881. }
  11882. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new d(J.time)), q(
  11883. !0,
  11884. pt.options.time,
  11885. J.time
  11886. )), it(J, function(Lt, Nt) {
  11887. 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 && (Tt = !0);
  11888. }), this.collectionsWithUpdate.forEach(function(Lt) {
  11889. if (J[Lt]) {
  11890. var Nt = [];
  11891. pt[Lt].forEach(function(Et, Kt) {
  11892. Et.options.isInternal || Nt.push(et(Et.options.index, Kt));
  11893. }), gt(J[Lt]).forEach(function(Et, Kt) {
  11894. var Gt = T(Et.id), Wt;
  11895. 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);
  11896. }), st && pt[Lt].forEach(function(Et) {
  11897. Et.touched || Et.options.isInternal ? delete Et.touched : Ct.push(Et);
  11898. });
  11899. }
  11900. }), Ct.forEach(function(Lt) {
  11901. Lt.chart && Lt.remove && Lt.remove(!1);
  11902. }), _t && pt.axes.forEach(function(Lt) {
  11903. Lt.update({}, !1);
  11904. }), Tt && pt.getSeriesOrderByLinks().forEach(function(Lt) {
  11905. Lt.chart && Lt.update({}, !1);
  11906. }, this), _t = St && St.width, St = St && (V(St.height) ? rt(St.height, _t || pt.chartWidth) : St.height), kt || G(_t) && _t !== pt.chartWidth || G(St) && St !== pt.chartHeight ? pt.setSize(_t, St, ht) : et(tt, !0) && pt.redraw(ht), F(pt, "afterUpdate", { options: J, redraw: tt, animation: ht });
  11907. }, at.prototype.setSubtitle = function(J, tt) {
  11908. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  11909. }, at.prototype.setCaption = function(J, tt) {
  11910. this.applyDescription("caption", J), this.layOutTitles(tt);
  11911. }, at.prototype.showResetZoom = function() {
  11912. function J() {
  11913. tt.zoomOut();
  11914. }
  11915. 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";
  11916. F(this, "beforeShowResetZoom", null, function() {
  11917. 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);
  11918. }), F(this, "afterShowResetZoom");
  11919. }, at.prototype.zoomOut = function() {
  11920. F(this, "selection", { resetSelection: !0 }, this.zoom);
  11921. }, at.prototype.zoom = function(J) {
  11922. var tt = this, st = tt.pointer, ht = tt.inverted ? st.mouseDownX : st.mouseDownY, pt = !1, yt;
  11923. !J || J.resetSelection ? (tt.axes.forEach(function(Ct) {
  11924. yt = Ct.zoom();
  11925. }), st.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Ct) {
  11926. var Tt = Ct.axis, kt = tt.inverted ? Tt.left : Tt.top, St = tt.inverted ? kt + Tt.width : kt + Tt.height, _t = Tt.isXAxis, Lt = !1;
  11927. (!_t && ht >= kt && ht <= St || _t || !T(ht)) && (Lt = !0), st[_t ? "zoomX" : "zoomY"] && Lt && (yt = Tt.zoom(Ct.min, Ct.max), Tt.displayBtn && (pt = !0));
  11928. });
  11929. var vt = tt.resetZoomButton;
  11930. pt && !vt ? tt.showResetZoom() : !pt && z(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  11931. tt.options.chart.animation,
  11932. J && J.animation,
  11933. 100 > tt.pointCount
  11934. ));
  11935. }, at.prototype.pan = function(J, tt) {
  11936. var st = this, ht = st.hoverPoints;
  11937. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  11938. var pt = st.options.chart, yt = st.options.mapNavigation && st.options.mapNavigation.enabled;
  11939. pt && pt.panning && (pt.panning = tt);
  11940. var vt = tt.type, Ct;
  11941. F(this, "pan", { originalEvent: J }, function() {
  11942. ht && ht.forEach(function(St) {
  11943. St.setState();
  11944. });
  11945. var Tt = st.xAxis;
  11946. vt === "xy" ? Tt = Tt.concat(st.yAxis) : vt === "y" && (Tt = st.yAxis);
  11947. var kt = {};
  11948. Tt.forEach(function(St) {
  11949. if (St.options.panningEnabled && !St.options.isInternal) {
  11950. var _t = St.horiz, Lt = J[_t ? "chartX" : "chartY"];
  11951. _t = _t ? "mouseDownX" : "mouseDownY";
  11952. var Nt = st[_t], 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;
  11953. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  11954. var zt = St.panningState;
  11955. !Kt || St.isXAxis || zt && !zt.isDirty || St.series.forEach(function(Vt) {
  11956. var Me = Vt.getProcessedData(!0);
  11957. 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));
  11958. }), 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(
  11959. Nt,
  11960. Wt,
  11961. !1,
  11962. !1,
  11963. { trigger: "pan" }
  11964. ), st.resetZoomButton || yt || Nt === Kt || Wt === Jt || !vt.match("y") || (st.showResetZoom(), St.displayBtn = !1), Ct = !0), kt[_t] = Lt);
  11965. }
  11966. }), it(kt, function(St, _t) {
  11967. st[_t] = St;
  11968. }), Ct && st.redraw(!1), j(st.container, { cursor: "move" });
  11969. });
  11970. }, at;
  11971. }(), L(y.prototype, {
  11972. callbacks: [],
  11973. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  11974. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  11975. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  11976. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  11977. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  11978. }), y;
  11979. }), E(h, "Core/Legend/LegendSymbol.js", [h["Core/Utilities.js"]], function(y) {
  11980. var R = y.merge, I = y.pick, Z;
  11981. return function(H) {
  11982. H.drawLineMarker = function($) {
  11983. var U = this.options, W = $.symbolWidth, N = $.symbolHeight, w = N / 2, v = this.chart.renderer, u = this.legendGroup;
  11984. $ = $.baseline - Math.round(0.3 * $.fontMetrics.b);
  11985. var d = {}, P = U.marker;
  11986. this.chart.styledMode || (d = { "stroke-width": U.lineWidth || 0 }, U.dashStyle && (d.dashstyle = U.dashStyle)), this.legendLine = v.path([["M", 0, $], ["L", W, $]]).addClass("highcharts-graph").attr(d).add(u), P && P.enabled !== !1 && W && (U = Math.min(I(P.radius, w), w), this.symbol.indexOf("url") === 0 && (P = R(P, { width: N, height: N }), U = 0), this.legendSymbol = W = v.symbol(this.symbol, W / 2 - U, $ - U, 2 * U, 2 * U, P).addClass("highcharts-point").add(u), W.isMarker = !0);
  11987. }, H.drawRectangle = function($, U) {
  11988. var W = $.symbolHeight, N = $.options.squareSymbol;
  11989. U.legendSymbol = this.chart.renderer.rect(N ? ($.symbolWidth - W) / 2 : 0, $.baseline - W + 1, N ? W : $.symbolWidth, W, I($.options.symbolRadius, W / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(U.legendGroup);
  11990. };
  11991. }(Z || (Z = {})), Z;
  11992. }), E(h, "Core/Series/SeriesDefaults.js", [], function() {
  11993. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  11994. normal: { animation: !0 },
  11995. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  11996. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  11997. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  11998. var y = this.series.chart.numberFormatter;
  11999. return typeof this.y != "number" ? "" : y(this.y, -1);
  12000. }, 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: {
  12001. normal: { animation: !0 },
  12002. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  12003. select: { animation: { duration: 0 } },
  12004. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  12005. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  12006. }), E(h, "Core/Series/Series.js", [
  12007. h["Core/Animation/AnimationUtilities.js"],
  12008. h["Core/DefaultOptions.js"],
  12009. h["Core/Foundation.js"],
  12010. h["Core/Globals.js"],
  12011. h["Core/Legend/LegendSymbol.js"],
  12012. h["Core/Series/Point.js"],
  12013. h["Core/Series/SeriesDefaults.js"],
  12014. h["Core/Series/SeriesRegistry.js"],
  12015. h["Core/Renderer/SVG/SVGElement.js"],
  12016. h["Core/Utilities.js"]
  12017. ], function(y, R, I, Z, H, $, U, W, N, w) {
  12018. var v = y.animObject, u = y.setAnimation, d = R.defaultOptions, P = I.registerEventOptions, O = Z.hasTouch, B = Z.svg, C = Z.win, b = W.seriesTypes, M = w.addEvent, x = w.arrayMax, a = w.arrayMin, c = w.clamp, p = w.cleanRecursively, i = w.correctFloat, l = w.defined, s = w.erase, t = w.error, n = w.extend, o = w.find, A = w.fireEvent, _ = w.getNestedProperty, D = w.isArray, j = w.isNumber, T = w.isString, X = w.merge, f = w.objectEach, m = w.pick, L = w.removeEvent, Y = w.splat, F = w.syncTimeout;
  12019. return y = function() {
  12020. function Q() {
  12021. 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;
  12022. }
  12023. return Q.prototype.init = function(k, G) {
  12024. A(this, "init", { options: G });
  12025. var z = this, V = k.series;
  12026. this.eventsToUnbind = [], z.chart = k, z.options = z.setOptions(G), G = z.options, z.linkedSeries = [], z.bindAxes(), n(z, { name: G.name, state: "", visible: G.visible !== !1, selected: G.selected === !0 }), P(this, G);
  12027. var q = G.events;
  12028. (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) {
  12029. z[et + "Data"] || (z[et + "Data"] = []);
  12030. }), z.isCartesian && (k.hasCartesianSeries = !0);
  12031. var it;
  12032. V.length && (it = V[V.length - 1]), z._i = m(it && it._i, -1) + 1, z.opacity = z.options.opacity, k.orderSeries(this.insert(V)), G.dataSorting && G.dataSorting.enabled ? z.setDataSortingOptions() : z.points || z.data || z.setData(G.data, !1), A(this, "afterInit");
  12033. }, Q.prototype.is = function(k) {
  12034. return b[k] && this instanceof b[k];
  12035. }, Q.prototype.insert = function(k) {
  12036. var G = this.options.index, z;
  12037. if (j(G)) {
  12038. for (z = k.length; z--; )
  12039. if (G >= m(k[z].options.index, k[z]._i)) {
  12040. k.splice(z + 1, 0, this);
  12041. break;
  12042. }
  12043. z === -1 && k.unshift(this), z += 1;
  12044. } else
  12045. k.push(this);
  12046. return m(z, k.length - 1);
  12047. }, Q.prototype.bindAxes = function() {
  12048. var k = this, G = k.options, z = k.chart, V;
  12049. A(this, "bindAxes", null, function() {
  12050. (k.axisTypes || []).forEach(function(q) {
  12051. var it = 0;
  12052. z[q].forEach(function(et) {
  12053. V = et.options, (G[q] === it && !V.isInternal || typeof G[q] < "u" && G[q] === V.id || typeof G[q] > "u" && V.index === 0) && (k.insert(et.series), k[q] = et, et.isDirty = !0), V.isInternal || it++;
  12054. }), k[q] || k.optionalAxis === q || t(18, !0, z);
  12055. });
  12056. }), A(this, "afterBindAxes");
  12057. }, Q.prototype.updateParallelArrays = function(k, G) {
  12058. var z = k.series, V = arguments, q = j(G) ? function(it) {
  12059. var et = it === "y" && z.toYData ? z.toYData(k) : k[it];
  12060. z[it + "Data"][G] = et;
  12061. } : function(it) {
  12062. Array.prototype[G].apply(z[it + "Data"], Array.prototype.slice.call(V, 2));
  12063. };
  12064. z.parallelArrays.forEach(q);
  12065. }, Q.prototype.hasData = function() {
  12066. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  12067. }, Q.prototype.autoIncrement = function(k) {
  12068. var G = this.options, z = G.pointIntervalUnit, V = G.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  12069. return it = m(it, G.pointStart, 0), this.pointInterval = et = m(this.pointInterval, G.pointInterval, 1), V && j(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), V && j(k) ? it + et : (this.xIncrement = it + et, it);
  12070. }, Q.prototype.setDataSortingOptions = function() {
  12071. var k = this.options;
  12072. n(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), l(k.pointRange) || (k.pointRange = 1);
  12073. }, Q.prototype.setOptions = function(k) {
  12074. var G = this.chart, z = G.options, V = z.plotOptions, q = G.userOptions || {};
  12075. k = X(k), G = G.styledMode;
  12076. var it = { plotOptions: V, userOptions: k };
  12077. A(this, "setOptions", it);
  12078. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  12079. return this.userOptions = it.userOptions, q = X(et, V.series, q.plotOptions && q.plotOptions[this.type], k), this.tooltipOptions = X(d.tooltip, d.plotOptions.series && d.plotOptions.series.tooltip, d.plotOptions[this.type].tooltip, z.tooltip.userOptions, V.series && V.series.tooltip, V[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, V = 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), V.push(z)), V.length && l(V[V.length - 1].value) && V.push(G ? {} : { color: this.color, fillColor: this.fillColor }), A(this, "afterSetOptions", { options: q }), q;
  12080. }, Q.prototype.getName = function() {
  12081. return m(this.options.name, "Series " + (this.index + 1));
  12082. }, Q.prototype.getCyclic = function(k, G, z) {
  12083. var V = this.chart, q = this.userOptions, it = k + "Index", et = k + "Counter", nt = z ? z.length : m(V.options.chart[k + "Count"], V[k + "Count"]);
  12084. if (!G) {
  12085. var rt = m(q[it], q["_" + it]);
  12086. l(rt) || (V.series.length || (V[et] = 0), q["_" + it] = rt = V[et] % nt, V[et] += 1), z && (G = z[rt]);
  12087. }
  12088. typeof rt < "u" && (this[it] = rt), this[k] = G;
  12089. }, Q.prototype.getColor = function() {
  12090. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || d.plotOptions[this.type].color, this.chart.options.colors);
  12091. }, Q.prototype.getPointsCollection = function() {
  12092. return (this.hasGroupedData ? this.points : this.data) || [];
  12093. }, Q.prototype.getSymbol = function() {
  12094. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  12095. }, Q.prototype.findPointIndex = function(k, G) {
  12096. var z = k.id, V = k.x, q = this.points, it = this.options.dataSorting, et, nt;
  12097. if (z)
  12098. it = this.chart.get(z), it instanceof $ && (et = it);
  12099. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  12100. return !ct.touched && ct.index === k.index;
  12101. }, it && it.matchByName ? et = function(ct) {
  12102. return !ct.touched && ct.name === k.name;
  12103. } : this.options.relativeXValue && (et = function(ct) {
  12104. return !ct.touched && ct.options.x === k.x;
  12105. }), et = o(q, et), !et))
  12106. return;
  12107. if (et) {
  12108. var rt = et && et.index;
  12109. typeof rt < "u" && (nt = !0);
  12110. }
  12111. return typeof rt > "u" && j(V) && (rt = this.xData.indexOf(V, G)), rt !== -1 && typeof rt < "u" && this.cropped && (rt = rt >= this.cropStart ? rt - this.cropStart : rt), !nt && j(rt) && q[rt] && q[rt].touched && (rt = void 0), rt;
  12112. }, Q.prototype.updateData = function(k, G) {
  12113. var z = this.options, V = z.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = k.length === q.length, rt, ct, gt, dt = !0;
  12114. if (this.xIncrement = null, k.forEach(function(lt, at) {
  12115. var J = l(lt) && this.pointClass.prototype.optionsToObject.call({ series: this }, lt) || {}, tt = J.x;
  12116. J.id || j(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 || V && V.enabled || this.hasDerivedData) && (rt = !0)) : it.push(lt);
  12117. }, this), rt)
  12118. for (k = q.length; k--; )
  12119. (ct = q[k]) && !ct.touched && ct.remove && ct.remove(!1, G);
  12120. else
  12121. !nt || V && V.enabled ? dt = !1 : (k.forEach(function(lt, at) {
  12122. lt !== q[at].y && q[at].update && q[at].update(
  12123. lt,
  12124. !1,
  12125. null,
  12126. !1
  12127. );
  12128. }), it.length = 0);
  12129. return q.forEach(function(lt) {
  12130. lt && (lt.touched = !1);
  12131. }), dt ? (it.forEach(function(lt) {
  12132. this.addPoint(lt, !1, null, null, !1);
  12133. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = x(this.xData), this.autoIncrement()), !0) : !1;
  12134. }, Q.prototype.setData = function(k, G, z, V) {
  12135. 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;
  12136. J = J && J.length;
  12137. var tt = nt.keys, st, ht = 0, pt = 1, yt = null;
  12138. k = k || [];
  12139. var vt = k.length;
  12140. if (G = m(G, !0), ct && ct.enabled && (k = this.sortData(k)), V !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (st = this.updateData(k, z)), !st) {
  12141. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Ct) {
  12142. q[Ct + "Data"].length = 0;
  12143. }), dt && vt > dt)
  12144. if (yt = q.getFirstValidPoint(k), j(yt))
  12145. for (z = 0; z < vt; z++)
  12146. lt[z] = this.autoIncrement(), at[z] = k[z];
  12147. else if (D(yt))
  12148. if (J)
  12149. if (yt.length === J)
  12150. for (z = 0; z < vt; z++)
  12151. lt[z] = this.autoIncrement(), at[z] = k[z];
  12152. else
  12153. for (z = 0; z < vt; z++)
  12154. V = k[z], lt[z] = V[0], at[z] = V.slice(
  12155. 1,
  12156. J + 1
  12157. );
  12158. 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)
  12159. for (z = 0; z < vt; z++)
  12160. lt[z] = this.autoIncrement(), at[z] = k[z][pt];
  12161. else
  12162. for (z = 0; z < vt; z++)
  12163. V = k[z], lt[z] = V[ht], at[z] = V[pt];
  12164. else
  12165. t(12, !1, rt);
  12166. else
  12167. for (z = 0; z < vt; z++)
  12168. typeof k[z] < "u" && (V = { series: q }, q.pointClass.prototype.applyOptions.apply(V, [k[z]]), q.updateParallelArrays(V, z));
  12169. for (at && T(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = k, z = et; z--; )
  12170. it[z] && it[z].destroy && it[z].destroy();
  12171. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, z = !1;
  12172. }
  12173. nt.legendType === "point" && (this.processData(), this.generatePoints()), G && rt.redraw(z);
  12174. }, Q.prototype.sortData = function(k) {
  12175. var G = this, z = G.options.dataSorting.sortKey || "y", V = function(q, it) {
  12176. return l(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  12177. };
  12178. return k.forEach(function(q, it) {
  12179. k[it] = V(G, q), k[it].index = it;
  12180. }, this), k.concat().sort(function(q, it) {
  12181. return q = _(z, q), it = _(z, it), it < q ? -1 : it > q ? 1 : 0;
  12182. }).forEach(function(q, it) {
  12183. q.x = it;
  12184. }, this), G.linkedSeries && G.linkedSeries.forEach(function(q) {
  12185. var it = q.options, et = it.data;
  12186. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  12187. et[rt] = V(q, nt), k[rt] && (et[rt].x = k[rt].x, et[rt].index = rt);
  12188. }), q.setData(et, !1));
  12189. }), k;
  12190. }, Q.prototype.getProcessedData = function(k) {
  12191. var G = this.xAxis, z = this.options, V = z.cropThreshold, q = k || this.getExtremesFromAll || z.getExtremesFromAll, it = this.isCartesian;
  12192. k = G && G.val2lin, z = !(!G || !G.logarithmic);
  12193. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  12194. if (G) {
  12195. gt = G.getExtremes();
  12196. var lt = gt.min, at = gt.max;
  12197. gt = G.categories && !G.names.length;
  12198. }
  12199. if (it && this.sorted && !q && (!V || dt > V || this.forceCrop)) {
  12200. if (nt[dt - 1] < lt || nt[0] > at)
  12201. nt = [], rt = [];
  12202. else if (this.yData && (nt[0] < lt || nt[dt - 1] > at)) {
  12203. var J = this.cropData(this.xData, this.yData, lt, at);
  12204. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  12205. }
  12206. }
  12207. for (V = nt.length || 1; --V; )
  12208. if (G = z ? k(nt[V]) - k(nt[V - 1]) : nt[V] - nt[V - 1], 0 < G && (typeof tt > "u" || G < tt))
  12209. var tt = G;
  12210. else
  12211. 0 > G && ct && !gt && (t(15, !1, this.chart), ct = !1);
  12212. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  12213. }, Q.prototype.processData = function(k) {
  12214. var G = this.xAxis;
  12215. if (this.isCartesian && !this.isDirty && !G.isDirty && !this.yAxis.isDirty && !k)
  12216. return !1;
  12217. 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");
  12218. }, Q.prototype.cropData = function(k, G, z, V, q) {
  12219. var it = k.length, et, nt = 0, rt = it;
  12220. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  12221. if (k[et] >= z) {
  12222. nt = Math.max(0, et - q);
  12223. break;
  12224. }
  12225. for (z = et; z < it; z++)
  12226. if (k[z] > V) {
  12227. rt = z + q;
  12228. break;
  12229. }
  12230. return { xData: k.slice(nt, rt), yData: G.slice(
  12231. nt,
  12232. rt
  12233. ), start: nt, end: rt };
  12234. }, Q.prototype.generatePoints = function() {
  12235. var k = this.options, G = k.data, z = this.processedXData, V = this.processedYData, q = this.pointClass, it = z.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = k.keys, ct = [];
  12236. k = k.dataGrouping && k.dataGrouping.groupAll ? et : 0;
  12237. var gt, dt, lt = this.data;
  12238. if (!lt && !nt) {
  12239. var at = [];
  12240. at.length = G.length, lt = this.data = at;
  12241. }
  12242. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  12243. if (at = et + dt, nt) {
  12244. var J = new q().init(this, [z[dt]].concat(Y(V[dt])));
  12245. J.dataGroup = this.groupMap[k + dt], J.dataGroup.options && (J.options = J.dataGroup.options, n(J, J.dataGroup.options), delete J.dataLabels);
  12246. } else
  12247. (J = lt[at]) || typeof G[at] > "u" || (lt[at] = J = new q().init(this, G[at], z[dt]));
  12248. J && (J.index = nt ? k + dt : at, ct[dt] = J);
  12249. }
  12250. if (this.options.keys = rt, lt && (it !== (gt = lt.length) || nt))
  12251. for (dt = 0; dt < gt; dt++)
  12252. dt !== et || nt || (dt += it), lt[dt] && (lt[dt].destroyElements(), lt[dt].plotX = void 0);
  12253. this.data = lt, this.points = ct, A(this, "afterGeneratePoints");
  12254. }, Q.prototype.getXExtremes = function(k) {
  12255. return { min: a(k), max: x(k) };
  12256. }, Q.prototype.getExtremes = function(k, G) {
  12257. var z = this.xAxis, V = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  12258. V = V ? V.positiveValuesOnly : !1;
  12259. var nt, rt = 0, ct = 0, gt = 0;
  12260. k = k || this.stackedYData || this.processedYData || [];
  12261. var dt = k.length;
  12262. if (z) {
  12263. var lt = z.getExtremes();
  12264. rt = lt.min, ct = lt.max;
  12265. }
  12266. for (nt = 0; nt < dt; nt++) {
  12267. var at = q[nt];
  12268. lt = k[nt];
  12269. var J = (j(lt) || D(lt)) && (lt.length || 0 < lt || !V);
  12270. if (at = G || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !z || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  12271. if (J = lt.length)
  12272. for (; J--; )
  12273. j(lt[J]) && (it[gt++] = lt[J]);
  12274. else
  12275. it[gt++] = lt;
  12276. }
  12277. return k = { activeYData: it, dataMin: a(it), dataMax: x(it) }, A(this, "afterGetExtremes", { dataExtremes: k }), k;
  12278. }, Q.prototype.applyExtremes = function() {
  12279. var k = this.getExtremes();
  12280. return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
  12281. }, Q.prototype.getFirstValidPoint = function(k) {
  12282. for (var G = k.length, z = 0, V = null; V === null && z < G; )
  12283. V = k[z], z++;
  12284. return V;
  12285. }, Q.prototype.translate = function() {
  12286. this.processedXData || this.processData(), this.generatePoints();
  12287. var k = this.options, G = k.stacking, z = this.xAxis, V = 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;
  12288. for (at = 0; at < nt; at++) {
  12289. var st = et[at], ht = st.x, pt = void 0, yt = void 0, vt = st.y, Ct = st.low, Tt = G && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  12290. 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 && Tt && Tt[ht]) {
  12291. var kt = this.getStackIndicator(
  12292. kt,
  12293. ht,
  12294. this.index
  12295. );
  12296. st.isNull || (pt = Tt[ht], yt = pt.points[kt.key]);
  12297. }
  12298. if (D(yt) && (Ct = yt[0], vt = yt[1], Ct === dt && kt.key === Tt[ht].base && (Ct = m(j(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, j(vt) && (pt = it.translate(vt, !1, !0, !1, !0), typeof pt < "u" && (st.plotY = c(
  12299. pt,
  12300. -1e5,
  12301. 1e5
  12302. ))), 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 = V && typeof V[st.x] < "u" ? V[st.x] : st.x, !st.isNull && st.visible !== !1) {
  12303. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  12304. var St = J;
  12305. }
  12306. st.zone = this.zones.length ? st.getZone() : void 0, !st.graphic && this.group && q && (st.isNew = !0);
  12307. }
  12308. this.closestPointRangePx = tt, A(this, "afterTranslate");
  12309. }, Q.prototype.getValidPoints = function(k, G, z) {
  12310. var V = this.chart;
  12311. return (k || this.points || []).filter(function(q) {
  12312. return G && !V.isInsidePlot(q.plotX, q.plotY, { inverted: V.inverted }) ? !1 : q.visible !== !1 && (z || !q.isNull);
  12313. });
  12314. }, Q.prototype.getClipBox = function() {
  12315. var k = this.chart, G = this.xAxis, z = this.yAxis, V = X(k.clipBox);
  12316. return G && G.len !== k.plotSizeX && (V.width = G.len), z && z.len !== k.plotSizeY && (V.height = z.len), V;
  12317. }, Q.prototype.getSharedClipKey = function() {
  12318. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  12319. }, Q.prototype.setClip = function() {
  12320. var k = this.chart, G = this.group, z = this.markerGroup, V = k.sharedClips;
  12321. k = k.renderer;
  12322. var q = this.getClipBox(), it = this.getSharedClipKey(), et = V[it];
  12323. et ? et.animate(q) : V[it] = et = k.clipRect(q), G && G.clip(this.options.clip === !1 ? void 0 : et), z && z.clip();
  12324. }, Q.prototype.animate = function(k) {
  12325. var G = this.chart, z = this.group, V = 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"];
  12326. if (k && z)
  12327. 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), V && V.clip(rt);
  12328. else if (nt && !nt.hasClass("highcharts-animating")) {
  12329. G = this.getClipBox();
  12330. var ct = it.step;
  12331. V && V.element.childNodes.length && (it.step = function(gt, dt) {
  12332. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  12333. }), nt.addClass("highcharts-animating").animate(G, it);
  12334. }
  12335. }, Q.prototype.afterAnimate = function() {
  12336. var k = this;
  12337. this.setClip(), f(
  12338. this.chart.sharedClips,
  12339. function(G, z, V) {
  12340. G && !k.chart.container.querySelector('[clip-path="url(#' + G.id + ')"]') && (G.destroy(), delete V[z]);
  12341. }
  12342. ), this.finishedAnimating = !0, A(this, "afterAnimate");
  12343. }, Q.prototype.drawPoints = function() {
  12344. var k = this.points, G = this.chart, z = this.options.marker, V = 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;
  12345. if (z.enabled !== !1 || this._hasPointMarkers)
  12346. for (et = 0; et < k.length; et++) {
  12347. var rt = k[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  12348. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  12349. var lt = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  12350. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  12351. var J = rt.isInside !== !1;
  12352. 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(V), 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);
  12353. } else
  12354. nt && (rt.graphic = nt.destroy());
  12355. }
  12356. }, Q.prototype.markerAttribs = function(k, G) {
  12357. var z = this.options, V = z.marker, q = k.marker || {}, it = q.symbol || V.symbol, et = m(q.radius, V.radius);
  12358. return G && (V = V.states[G], G = q.states && q.states[G], et = m(G && G.radius, V && V.radius, et + (V && V.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;
  12359. }, Q.prototype.pointAttribs = function(k, G) {
  12360. var z = this.options.marker, V = k && k.options, q = V && V.marker || {}, it = V && V.color, et = k && k.color, nt = k && k.zone && k.zone.color, rt = this.color;
  12361. return k = m(q.lineWidth, z.lineWidth), V = 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, V = m(G.opacity, z.opacity, V), { stroke: et, "stroke-width": k, fill: it, opacity: V };
  12362. }, Q.prototype.destroy = function(k) {
  12363. var G = this, z = G.chart, V = /AppleWebKit\/533/.test(C.navigator.userAgent), q = G.data || [], it, et, nt, rt;
  12364. for (A(G, "destroy"), this.removeEvents(k), (G.axisTypes || []).forEach(function(ct) {
  12365. (rt = G[ct]) && rt.series && (s(rt.series, G), rt.isDirty = rt.forceRedraw = !0);
  12366. }), G.legendItem && G.chart.legend.destroyItem(G), et = q.length; et--; )
  12367. (nt = q[et]) && nt.destroy && nt.destroy();
  12368. G.clips && G.clips.forEach(function(ct) {
  12369. return ct.destroy();
  12370. }), w.clearTimeout(G.animationTimeout), f(G, function(ct, gt) {
  12371. ct instanceof N && !ct.survive && (it = V && gt === "group" ? "hide" : "destroy", ct[it]());
  12372. }), z.hoverSeries === G && (z.hoverSeries = void 0), s(z.series, G), z.orderSeries(), f(G, function(ct, gt) {
  12373. k && gt === "hcEvents" || delete G[gt];
  12374. });
  12375. }, Q.prototype.applyZones = function() {
  12376. var k = this, G = this.chart, z = G.renderer, V = 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;
  12377. if (V.length && (it || et) && rt && typeof rt.min < "u") {
  12378. var yt = rt.reversed, vt = rt.horiz;
  12379. it && !this.showLine && it.hide(), et && et.hide();
  12380. var Ct = rt.getExtremes();
  12381. V.forEach(function(Tt, kt) {
  12382. 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(Tt.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 ? {
  12383. x: 0,
  12384. y: yt ? J : tt,
  12385. height: lt.width,
  12386. width: G.chartWidth
  12387. } : { 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 = Tt.value > Ct.max, k.resetZones && dt === 0 && (dt = void 0);
  12388. }), this.clips = q;
  12389. } else
  12390. k.visible && (it && it.show(!0), et && et.show(!0));
  12391. }, Q.prototype.invertGroups = function(k) {
  12392. function G() {
  12393. ["group", "markerGroup"].forEach(function(q) {
  12394. z[q] && (V.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));
  12395. });
  12396. }
  12397. var z = this, V = z.chart;
  12398. z.xAxis && (z.eventsToUnbind.push(M(V, "resize", G)), G(), z.invertGroups = G);
  12399. }, Q.prototype.plotGroup = function(k, G, z, V, q) {
  12400. var it = this[k], et = !it;
  12401. return z = { visibility: z, zIndex: V || 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;
  12402. }, Q.prototype.getPlotBox = function() {
  12403. var k = this.chart, G = this.xAxis, z = this.yAxis;
  12404. return k.inverted && (G = z, z = this.xAxis), { translateX: G ? G.left : k.plotLeft, translateY: z ? z.top : k.plotTop, scaleX: 1, scaleY: 1 };
  12405. }, Q.prototype.removeEvents = function(k) {
  12406. k || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(G) {
  12407. G();
  12408. }), this.eventsToUnbind.length = 0);
  12409. }, Q.prototype.render = function() {
  12410. var k = this, G = k.chart, z = k.options, V = v(z.animation), q = k.visible ? "inherit" : "hidden", it = z.zIndex, et = k.hasRendered, nt = G.seriesGroup, rt = G.inverted;
  12411. G = !k.finishedAnimating && G.renderer.isSVG ? V.duration : 0, A(this, "render");
  12412. var ct = k.plotGroup("group", "series", q, it, nt);
  12413. 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 && V.defer && (G += V.defer), k.animationTimeout = F(function() {
  12414. k.afterAnimate();
  12415. }, G || 0)), k.isDirty = !1, k.hasRendered = !0, A(k, "afterRender");
  12416. }, Q.prototype.redraw = function() {
  12417. var k = this.chart, G = this.isDirty || this.isDirtyData, z = this.group, V = this.xAxis, q = this.yAxis;
  12418. z && (k.inverted && z.attr({
  12419. width: k.plotWidth,
  12420. height: k.plotHeight
  12421. }), z.animate({ translateX: m(V && V.left, k.plotLeft), translateY: m(q && q.top, k.plotTop) })), this.translate(), this.render(), G && delete this.kdTree;
  12422. }, Q.prototype.searchPoint = function(k, G) {
  12423. var z = this.xAxis, V = this.yAxis, q = this.chart.inverted;
  12424. return this.searchKDTree({ clientX: q ? z.len - k.chartY + z.pos : k.chartX - z.pos, plotY: q ? V.len - k.chartX + V.pos : k.chartY - V.pos }, G, k);
  12425. }, Q.prototype.buildKDTree = function(k) {
  12426. function G(q, it, et) {
  12427. var nt = q && q.length;
  12428. if (nt) {
  12429. var rt = z.kdAxisArray[it % et];
  12430. return q.sort(function(ct, gt) {
  12431. return ct[rt] - gt[rt];
  12432. }), 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) };
  12433. }
  12434. }
  12435. this.buildingKdTree = !0;
  12436. var z = this, V = -1 < z.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  12437. delete z.kdTree, F(function() {
  12438. z.kdTree = G(z.getValidPoints(null, !z.directTouch), V, V), z.buildingKdTree = !1;
  12439. }, z.options.kdNow || k && k.type === "touchstart" ? 0 : 1);
  12440. }, Q.prototype.searchKDTree = function(k, G, z) {
  12441. function V(rt, ct, gt, dt) {
  12442. 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;
  12443. 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 = V(rt, ct[st], gt + 1, dt), J = st[nt] < J[nt] ? st : lt), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = V(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  12444. }
  12445. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = G ? "distX" : "dist";
  12446. if (G = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(z), this.kdTree)
  12447. return V(
  12448. k,
  12449. this.kdTree,
  12450. G,
  12451. G
  12452. );
  12453. }, Q.prototype.pointPlacementToXValue = function() {
  12454. var k = this.options, G = k.pointRange, z = this.xAxis;
  12455. return k = k.pointPlacement, k === "between" && (k = z.reversed ? -0.5 : 0.5), j(k) ? k * (G || z.pointRange) : 0;
  12456. }, Q.prototype.isPointInside = function(k) {
  12457. var G = this.chart, z = this.xAxis, V = this.yAxis;
  12458. return typeof k.plotY < "u" && typeof k.plotX < "u" && 0 <= k.plotY && k.plotY <= (V ? V.len : G.plotHeight) && 0 <= k.plotX && k.plotX <= (z ? z.len : G.plotWidth);
  12459. }, Q.prototype.drawTracker = function() {
  12460. var k = this, G = k.options, z = G.trackByArea, V = [].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) {
  12461. q.hoverSeries !== k && k.onMouseOver();
  12462. }, gt = "rgba(192,192,192," + (B ? 1e-4 : 2e-3) + ")";
  12463. rt ? rt.attr({ d: V }) : k.graph && (k.tracker = et.path(V).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) {
  12464. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(lt) {
  12465. it.onTrackerMouseOut(lt);
  12466. }), G.cursor && !q.styledMode && dt.css({ cursor: G.cursor }), O) && dt.on("touchstart", ct);
  12467. })), A(this, "afterDrawTracker");
  12468. }, Q.prototype.addPoint = function(k, G, z, V, q) {
  12469. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  12470. rt = rt && rt.hasNames && rt.names;
  12471. var ct = it.data, gt = this.xData, dt;
  12472. G = m(G, !0);
  12473. var lt = { series: this };
  12474. this.pointClass.prototype.applyOptions.apply(
  12475. lt,
  12476. [k]
  12477. );
  12478. var at = lt.x, J = gt.length;
  12479. if (this.requireSorting && at < gt[J - 1])
  12480. for (dt = !0; J && gt[J - 1] > at; )
  12481. J--;
  12482. 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(V);
  12483. }, Q.prototype.removePoint = function(k, G, z) {
  12484. var V = this, q = V.data, it = q[k], et = V.points, nt = V.chart, rt = function() {
  12485. et && et.length === q.length && et.splice(k, 1), q.splice(k, 1), V.options.data.splice(k, 1), V.updateParallelArrays(it || { series: V }, "splice", k, 1), it && it.destroy(), V.isDirty = !0, V.isDirtyData = !0, G && nt.redraw();
  12486. };
  12487. u(z, nt), G = m(G, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  12488. }, Q.prototype.remove = function(k, G, z, V) {
  12489. function q() {
  12490. it.destroy(V), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(k, !0) && et.redraw(G);
  12491. }
  12492. var it = this, et = it.chart;
  12493. z !== !1 ? A(
  12494. it,
  12495. "remove",
  12496. null,
  12497. q
  12498. ) : q();
  12499. }, Q.prototype.update = function(k, G) {
  12500. k = p(k, this.userOptions), A(this, "update", { options: k });
  12501. var z = this, V = z.chart, q = z.userOptions, it = z.initialType || z.type, et = V.options.plotOptions, nt = b[it].prototype, rt = z.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], lt = k.type || q.type || V.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"));
  12502. 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) {
  12503. dt.push(tt + "Data");
  12504. }), k.data && (k.dataSorting && n(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) {
  12505. dt[tt] = z[tt], delete z[tt];
  12506. }), et = !1, b[lt]) {
  12507. if (et = lt !== z.type, z.remove(!1, !1, !1, !0), et)
  12508. if (Object.setPrototypeOf)
  12509. Object.setPrototypeOf(z, b[lt].prototype);
  12510. else {
  12511. rt = Object.hasOwnProperty.call(z, "hcEvents") && z.hcEvents;
  12512. for (gt in nt)
  12513. z[gt] = void 0;
  12514. n(z, b[lt].prototype), rt ? z.hcEvents = rt : delete z.hcEvents;
  12515. }
  12516. } else
  12517. t(17, !0, V, { missingModuleFor: lt });
  12518. if (dt.forEach(function(tt) {
  12519. z[tt] = dt[tt];
  12520. }), z.init(V, k), at && this.points) {
  12521. var J = z.options;
  12522. 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) {
  12523. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && V.legend.destroyItem(tt));
  12524. }, this);
  12525. }
  12526. z.initialType = it, V.linkSeries(), et && z.linkedSeries.length && (z.isDirtyData = !0), A(this, "afterUpdate"), m(G, !0) && V.redraw(at ? void 0 : !1);
  12527. }, Q.prototype.setName = function(k) {
  12528. this.name = this.options.name = this.userOptions.name = k, this.chart.isDirtyLegend = !0;
  12529. }, Q.prototype.hasOptionChanged = function(k) {
  12530. var G = this.options[k], z = this.chart.options.plotOptions, V = this.userOptions[k];
  12531. return V ? G !== V : G !== m(
  12532. z && z[this.type] && z[this.type][k],
  12533. z && z.series && z.series[k],
  12534. G
  12535. );
  12536. }, Q.prototype.onMouseOver = function() {
  12537. var k = this.chart, G = k.hoverSeries;
  12538. k.pointer.setHoverChartIndex(), G && G !== this && G.onMouseOut(), this.options.events.mouseOver && A(this, "mouseOver"), this.setState("hover"), k.hoverSeries = this;
  12539. }, Q.prototype.onMouseOut = function() {
  12540. var k = this.options, G = this.chart, z = G.tooltip, V = G.hoverPoint;
  12541. G.hoverSeries = null, V && V.onMouseOut(), this && k.events.mouseOut && A(this, "mouseOut"), !z || this.stickyTracking || z.shared && !this.noSharedTooltip || z.hide(), G.series.forEach(function(q) {
  12542. q.setState(
  12543. "",
  12544. !0
  12545. );
  12546. });
  12547. }, Q.prototype.setState = function(k, G) {
  12548. var z = this, V = z.options, q = z.graph, it = V.inactiveOtherPoints, et = V.states, nt = m(et[k || "normal"] && et[k || "normal"].animation, z.chart.options.chart.animation), rt = V.lineWidth, ct = 0, gt = V.opacity;
  12549. if (k = k || "", z.state !== k && ([z.group, z.markerGroup, z.dataLabelsGroup].forEach(function(dt) {
  12550. dt && (z.state && dt.removeClass("highcharts-series-" + z.state), k && dt.addClass("highcharts-series-" + k));
  12551. }), z.state = k, !z.chart.styledMode)) {
  12552. if (et[k] && et[k].enabled === !1)
  12553. return;
  12554. if (k && (rt = et[k].lineWidth || rt + (et[k].lineWidthPlus || 0), gt = m(et[k].opacity, gt)), q && !q.dashstyle)
  12555. for (V = { "stroke-width": rt }, q.animate(V, nt); z["zone-graph-" + ct]; )
  12556. z["zone-graph-" + ct].animate(V, nt), ct += 1;
  12557. it || [z.group, z.markerGroup, z.dataLabelsGroup, z.labelBySeries].forEach(function(dt) {
  12558. dt && dt.animate({ opacity: gt }, nt);
  12559. });
  12560. }
  12561. G && it && z.points && z.setAllPointsToState(k || void 0);
  12562. }, Q.prototype.setAllPointsToState = function(k) {
  12563. this.points.forEach(function(G) {
  12564. G.setState && G.setState(k);
  12565. });
  12566. }, Q.prototype.setVisible = function(k, G) {
  12567. var z = this, V = z.chart, q = z.legendItem, it = V.options.chart.ignoreHiddenSeries, et = z.visible, nt = (z.visible = k = z.options.visible = z.userOptions.visible = typeof k > "u" ? !et : k) ? "show" : "hide";
  12568. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  12569. z[rt] && z[rt][nt]();
  12570. }), (V.hoverSeries === z || (V.hoverPoint && V.hoverPoint.series) === z) && z.onMouseOut(), q && V.legend.colorizeItem(z, k), z.isDirty = !0, z.options.stacking && V.series.forEach(function(rt) {
  12571. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  12572. }), z.linkedSeries.forEach(function(rt) {
  12573. rt.setVisible(k, !1);
  12574. }), it && (V.isDirtyBox = !0), A(z, nt), G !== !1 && V.redraw();
  12575. }, Q.prototype.show = function() {
  12576. this.setVisible(!0);
  12577. }, Q.prototype.hide = function() {
  12578. this.setVisible(!1);
  12579. }, Q.prototype.select = function(k) {
  12580. this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), A(this, k ? "select" : "unselect");
  12581. }, Q.prototype.shouldShowTooltip = function(k, G, z) {
  12582. return z === void 0 && (z = {}), z.series = this, z.visiblePlotOnly = !0, this.chart.isInsidePlot(k, G, z);
  12583. }, Q.defaultOptions = U, Q;
  12584. }(), n(y.prototype, { axisTypes: [
  12585. "xAxis",
  12586. "yAxis"
  12587. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: H.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: $, requireSorting: !0, sorted: !0 }), W.series = y, y;
  12588. }), 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, R, I, Z, H, $) {
  12589. var U = y.stop, W = $.addEvent, N = $.createElement, w = $.merge, v = $.pick;
  12590. W(I, "afterSetChartSize", function(u) {
  12591. var d = this.options.chart.scrollablePlotArea, P = d && d.minWidth;
  12592. if (d = d && d.minHeight, !this.renderer.forExport) {
  12593. if (P) {
  12594. if (this.scrollablePixelsX = P = Math.max(0, P - this.chartWidth)) {
  12595. this.scrollablePlotBox = this.renderer.scrollablePlotBox = w(this.plotBox), this.plotBox.width = this.plotWidth += P, this.inverted ? this.clipBox.height += P : this.clipBox.width += P;
  12596. var O = { 1: { name: "right", value: P } };
  12597. }
  12598. } else
  12599. d && (this.scrollablePixelsY = P = Math.max(
  12600. 0,
  12601. d - this.chartHeight
  12602. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = w(this.plotBox), this.plotBox.height = this.plotHeight += P, this.inverted ? this.clipBox.width += P : this.clipBox.height += P, O = { 2: { name: "bottom", value: P } });
  12603. O && !u.skipAxes && this.axes.forEach(function(B) {
  12604. O[B.side] ? B.getPlotLinePath = function() {
  12605. var C = O[B.side].name, b = this[C];
  12606. this[C] = b - O[B.side].value;
  12607. var M = R.prototype.getPlotLinePath.apply(this, arguments);
  12608. return this[C] = b, M;
  12609. } : (B.setAxisSize(), B.setAxisTranslation());
  12610. });
  12611. }
  12612. }), W(I, "render", function() {
  12613. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  12614. }), I.prototype.setUpScrolling = function() {
  12615. var u = this, d = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  12616. this.scrollablePixelsX && (d.overflowX = "auto"), this.scrollablePixelsY && (d.overflowY = "auto"), this.scrollingParent = N("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = N(
  12617. "div",
  12618. { className: "highcharts-scrolling" },
  12619. d,
  12620. this.scrollingParent
  12621. ), W(this.scrollingContainer, "scroll", function() {
  12622. u.pointer && delete u.pointer.chartPosition;
  12623. }), this.innerContainer = N("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  12624. }, I.prototype.moveFixedElements = function() {
  12625. var u = this.container, d = 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;
  12626. 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(B) {
  12627. [].forEach.call(u.querySelectorAll(B), function(C) {
  12628. (C.namespaceURI === d.SVG_NS ? d.box : d.box.parentNode).appendChild(C), C.style.pointerEvents = "auto";
  12629. });
  12630. });
  12631. }, I.prototype.applyFixed = function() {
  12632. var u = !this.fixedDiv, d = this.options.chart, P = d.scrollablePlotArea, O = H.getRendererType();
  12633. u ? (this.fixedDiv = N("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (d.style && d.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 = d = new O(
  12634. this.fixedDiv,
  12635. this.chartWidth,
  12636. this.chartHeight,
  12637. this.options.chart.style
  12638. ), this.scrollableMask = d.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 || u) && (this.scrollableDirty = !1, this.moveFixedElements()), d = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), U(this.container), this.container.style.width = d + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: d, height: O, viewBox: [0, 0, d, O].join(" ") }), this.chartBackground.attr({ width: d, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", u && (P.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * P.scrollPositionX), P.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * P.scrollPositionY)), O = this.axisOffset, u = this.plotTop - O[0] - 1, P = this.plotLeft - O[3] - 1, d = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  12639. var B = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), C = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  12640. u = this.scrollablePixelsX ? [["M", 0, u], ["L", this.plotLeft - 1, u], ["L", this.plotLeft - 1, d], ["L", 0, d], ["Z"], ["M", B, u], ["L", this.chartWidth, u], ["L", this.chartWidth, d], ["L", B, d], ["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: u });
  12641. }, W(R, "afterInit", function() {
  12642. this.chart.scrollableDirty = !0;
  12643. }), W(Z, "show", function() {
  12644. this.chart.scrollableDirty = !0;
  12645. });
  12646. }), E(h, "Core/Axis/StackingAxis.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Axis/Axis.js"], h["Core/Utilities.js"]], function(y, R, I) {
  12647. var Z = y.getDeferredAnimation, H = I.addEvent, $ = I.destroyObjectProperties, U = I.fireEvent, W = I.isNumber, N = I.objectEach, w;
  12648. return function(v) {
  12649. function u() {
  12650. var B = this.stacking;
  12651. if (B) {
  12652. var C = B.stacks;
  12653. N(C, function(b, M) {
  12654. $(b), C[M] = null;
  12655. }), B && B.stackTotalGroup && B.stackTotalGroup.destroy();
  12656. }
  12657. }
  12658. function d() {
  12659. this.stacking || (this.stacking = new O(this));
  12660. }
  12661. var P = [];
  12662. v.compose = function(B) {
  12663. return P.indexOf(B) === -1 && (P.push(B), H(B, "init", d), H(B, "destroy", u)), B;
  12664. };
  12665. var O = function() {
  12666. function B(C) {
  12667. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = C;
  12668. }
  12669. return B.prototype.buildStacks = function() {
  12670. var C = this.axis, b = C.series, M = C.options.reversedStacks, x = b.length, a;
  12671. if (!C.isXAxis) {
  12672. for (this.usePercentage = !1, a = x; a--; ) {
  12673. var c = b[M ? a : x - a - 1];
  12674. c.setStackedPoints(), c.setGroupedPoints();
  12675. }
  12676. for (a = 0; a < x; a++)
  12677. b[a].modifyStacks();
  12678. U(C, "afterBuildStacks");
  12679. }
  12680. }, B.prototype.cleanStacks = function() {
  12681. if (!this.axis.isXAxis) {
  12682. if (this.oldStacks)
  12683. var C = this.stacks = this.oldStacks;
  12684. N(C, function(b) {
  12685. N(b, function(M) {
  12686. M.cumulative = M.total;
  12687. });
  12688. });
  12689. }
  12690. }, B.prototype.resetStacks = function() {
  12691. var C = this, b = C.stacks;
  12692. C.axis.isXAxis || N(b, function(M) {
  12693. N(
  12694. M,
  12695. function(x, a) {
  12696. W(x.touched) && x.touched < C.stacksTouched ? (x.destroy(), delete M[a]) : (x.total = null, x.cumulative = null);
  12697. }
  12698. );
  12699. });
  12700. }, B.prototype.renderStackTotals = function() {
  12701. var C = this.axis, b = C.chart, M = b.renderer, x = this.stacks;
  12702. C = Z(b, C.options.stackLabels && C.options.stackLabels.animation || !1);
  12703. var a = this.stackTotalGroup = this.stackTotalGroup || M.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  12704. a.translate(b.plotLeft, b.plotTop), N(x, function(c) {
  12705. N(c, function(p) {
  12706. p.render(a);
  12707. });
  12708. }), a.animate(
  12709. { opacity: 1 },
  12710. C
  12711. );
  12712. }, B;
  12713. }();
  12714. v.Additions = O;
  12715. }(w || (w = {})), w;
  12716. }), 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, R, I, Z, H, $, U) {
  12717. var W = I.format, N = U.correctFloat, w = U.defined, v = U.destroyObjectProperties, u = U.isArray, d = U.isNumber, P = U.objectEach, O = U.pick, B = function() {
  12718. function C(b, M, x, a, c) {
  12719. var p = b.chart.inverted;
  12720. this.axis = b, this.isNegative = x, this.options = M = M || {}, this.x = a, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: M.align || (p ? x ? "left" : "right" : "center"), verticalAlign: M.verticalAlign || (p ? "middle" : x ? "bottom" : "top"), y: M.y, x: M.x }, this.textAlign = M.textAlign || (p ? x ? "right" : "left" : "center");
  12721. }
  12722. return C.prototype.destroy = function() {
  12723. v(this, this.axis);
  12724. }, C.prototype.render = function(b) {
  12725. var M = this.axis.chart, x = this.options, a = x.format;
  12726. a = a ? W(a, this, M) : x.formatter.call(this), this.label ? this.label.attr({
  12727. text: a,
  12728. visibility: "hidden"
  12729. }) : (this.label = M.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" }, M.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 = M.plotSizeY;
  12730. }, C.prototype.setOffset = function(b, M, x, a, c) {
  12731. var p = this.axis, i = p.chart;
  12732. a = p.translate(p.stacking.usePercentage ? 100 : a || this.total, 0, 0, 0, 1), x = p.translate(x || 0), x = w(a) && Math.abs(a - x), b = O(c, i.xAxis[0].translate(this.x)) + b, p = w(a) && this.getStackBox(i, this, b, a, M, x, p), M = this.label, x = this.isNegative, b = O(this.options.overflow, "justify") === "justify";
  12733. var l = this.textAlign;
  12734. M && p && (c = M.getBBox(), a = M.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, M.align(this.alignOptions, null, p), i.isInsidePlot(M.alignAttr.x + l - this.alignOptions.x, M.alignAttr.y + x - this.alignOptions.y) ? M.show() : (M.alignAttr.y = -9999, b = !1), b && H.prototype.justifyDataLabel.call(this.axis, M, this.alignOptions, M.alignAttr, c, p), M.attr({ x: M.alignAttr.x, y: M.alignAttr.y }), O(!b && this.options.crop, !0) && ((i = d(M.x) && d(M.y) && i.isInsidePlot(M.x - a + M.width, M.y) && i.isInsidePlot(M.x + a, M.y)) || M.hide()));
  12735. }, C.prototype.getStackBox = function(b, M, x, a, c, p, i) {
  12736. var l = M.axis.reversed, s = b.inverted, t = i.height + i.pos - (s ? b.plotLeft : b.plotTop);
  12737. return M = M.isNegative && !l || !M.isNegative && l, { x: s ? M ? a - i.right : a - p + i.pos - b.plotLeft : x + b.xAxis[0].transB - b.plotLeft, y: s ? i.height - x - c : M ? t - a - p : t - a, width: s ? p : c, height: s ? c : p };
  12738. }, C;
  12739. }();
  12740. return R.prototype.getStacks = function() {
  12741. var C = this, b = C.inverted;
  12742. C.yAxis.forEach(function(M) {
  12743. M.stacking && M.stacking.stacks && M.hasVisibleSeries && (M.stacking.oldStacks = M.stacking.stacks);
  12744. }), C.series.forEach(function(M) {
  12745. var x = M.xAxis && M.xAxis.options || {};
  12746. !M.options.stacking || M.visible !== !0 && C.options.chart.ignoreHiddenSeries !== !1 || (M.stackKey = [M.type, O(M.options.stack, ""), b ? x.top : x.left, b ? x.height : x.width].join());
  12747. });
  12748. }, $.compose(y), H.prototype.setGroupedPoints = function() {
  12749. var C = this.yAxis.stacking;
  12750. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? H.prototype.setStackedPoints.call(this, "group") : C && P(C.stacks, function(b, M) {
  12751. M.slice(-5) === "group" && (P(b, function(x) {
  12752. return x.destroy();
  12753. }), delete C.stacks[M]);
  12754. });
  12755. }, H.prototype.setStackedPoints = function(C) {
  12756. var b = C || this.options.stacking;
  12757. if (b && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  12758. var M = this.processedXData, x = this.processedYData, a = [], c = x.length, p = this.options, i = p.threshold, l = O(p.startFromThreshold && i, 0);
  12759. p = p.stack, C = C ? this.type + "," + b : this.stackKey;
  12760. var s = "-" + C, t = this.negStacks, n = this.yAxis, o = n.stacking.stacks, A = n.stacking.oldStacks, _, D;
  12761. for (n.stacking.stacksTouched += 1, D = 0; D < c; D++) {
  12762. var j = M[D], T = x[D], X = this.getStackIndicator(
  12763. X,
  12764. j,
  12765. this.index
  12766. ), f = X.key, m = (_ = t && T < (l ? 0 : i)) ? s : C;
  12767. o[m] || (o[m] = {}), o[m][j] || (A[m] && A[m][j] ? (o[m][j] = A[m][j], o[m][j].total = null) : o[m][j] = new B(n, n.options.stackLabels, _, j, p)), m = o[m][j], T !== null ? (m.points[f] = m.points[this.index] = [O(m.cumulative, l)], w(m.cumulative) || (m.base = f), m.touched = n.stacking.stacksTouched, 0 < X.index && this.singleStacks === !1 && (m.points[f][0] = m.points[this.index + "," + j + ",0"][0])) : m.points[f] = m.points[this.index] = null, b === "percent" ? (_ = _ ? C : s, t && o[_] && o[_][j] ? (_ = o[_][j], m.total = _.total = Math.max(_.total, m.total) + Math.abs(T) || 0) : m.total = N(m.total + (Math.abs(T) || 0))) : b === "group" ? (u(T) && (T = T[0]), T !== null && (m.total = (m.total || 0) + 1)) : m.total = N(m.total + (T || 0)), m.cumulative = b === "group" ? (m.total || 1) - 1 : O(m.cumulative, l) + (T || 0), T !== null && (m.points[f].push(m.cumulative), a[D] = m.cumulative, m.hasValidPoints = !0);
  12768. }
  12769. b === "percent" && (n.stacking.usePercentage = !0), b !== "group" && (this.stackedYData = a), n.stacking.oldStacks = {};
  12770. }
  12771. }, H.prototype.modifyStacks = function() {
  12772. var C = this, b = C.stackKey, M = C.yAxis.stacking.stacks, x = C.processedXData, a, c = C.options.stacking;
  12773. C[c + "Stacker"] && [b, "-" + b].forEach(function(p) {
  12774. for (var i = x.length, l, s; i--; )
  12775. l = x[i], a = C.getStackIndicator(a, l, C.index, p), (s = (l = M[p] && M[p][l]) && l.points[a.key]) && C[c + "Stacker"](s, l, i);
  12776. });
  12777. }, H.prototype.percentStacker = function(C, b, M) {
  12778. b = b.total ? 100 / b.total : 0, C[0] = N(C[0] * b), C[1] = N(C[1] * b), this.stackedYData[M] = C[1];
  12779. }, H.prototype.getStackIndicator = function(C, b, M, x) {
  12780. return !w(C) || C.x !== b || x && C.key !== x ? C = { x: b, index: 0, key: x } : C.index++, C.key = [M, b, C.index].join(), C;
  12781. }, Z.StackItem = B, Z.StackItem;
  12782. }), E(h, "Series/Line/LineSeries.js", [h["Core/Series/Series.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R, I) {
  12783. var Z = this && this.__extends || function() {
  12784. var U = function(W, N) {
  12785. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  12786. w.__proto__ = v;
  12787. } || function(w, v) {
  12788. for (var u in v)
  12789. v.hasOwnProperty(u) && (w[u] = v[u]);
  12790. }, U(W, N);
  12791. };
  12792. return function(W, N) {
  12793. function w() {
  12794. this.constructor = W;
  12795. }
  12796. U(W, N), W.prototype = N === null ? Object.create(N) : (w.prototype = N.prototype, new w());
  12797. };
  12798. }(), H = I.defined, $ = I.merge;
  12799. return I = function(U) {
  12800. function W() {
  12801. var N = U !== null && U.apply(this, arguments) || this;
  12802. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  12803. }
  12804. return Z(W, U), W.prototype.drawGraph = function() {
  12805. var N = this, w = this.options, v = (this.gappedPath || this.getGraphPath).call(this), u = this.chart.styledMode, d = [["graph", "highcharts-graph"]];
  12806. u || d[0].push(w.lineColor || this.color || "#cccccc", w.dashStyle), d = N.getZonesGraphs(d), d.forEach(function(P, O) {
  12807. var B = P[0], C = N[B], b = C ? "animate" : "attr";
  12808. C ? (C.endX = N.preventGraphAnimation ? null : v.xMap, C.animate({ d: v })) : v.length && (N[B] = C = N.chart.renderer.path(v).addClass(P[1]).attr({ zIndex: 1 }).add(N.group)), C && !u && (B = { stroke: P[2], "stroke-width": w.lineWidth, fill: N.fillGraph && N.color || "none" }, P[3] ? B.dashstyle = P[3] : w.linecap !== "square" && (B["stroke-linecap"] = B["stroke-linejoin"] = "round"), C[b](B).shadow(2 > O && w.shadow)), C && (C.startX = v.xMap, C.isArea = v.isArea);
  12809. });
  12810. }, W.prototype.getGraphPath = function(N, w, v) {
  12811. var u = this, d = u.options, P = [], O = [], B, C = d.step;
  12812. N = N || u.points;
  12813. var b = N.reversed;
  12814. return b && N.reverse(), (C = { right: 1, center: 2 }[C] || C && 3) && b && (C = 4 - C), N = this.getValidPoints(N, !1, !(d.connectNulls && !w && !v)), N.forEach(function(M, x) {
  12815. var a = M.plotX, c = M.plotY, p = N[x - 1];
  12816. (M.leftCliff || p && p.rightCliff) && !v && (B = !0), M.isNull && !H(w) && 0 < x ? B = !d.connectNulls : M.isNull && !w ? B = !0 : (x === 0 || B ? x = [["M", M.plotX, M.plotY]] : u.getPointSpline ? x = [u.getPointSpline(N, M, 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(M.x), C && (O.push(M.x), C === 2 && O.push(M.x)), P.push.apply(P, x), B = !1);
  12817. }), P.xMap = O, u.graphPath = P;
  12818. }, W.prototype.getZonesGraphs = function(N) {
  12819. return this.zones.forEach(function(w, v) {
  12820. v = ["zone-graph-" + v, "highcharts-graph highcharts-zone-graph-" + v + " " + (w.className || "")], this.chart.styledMode || v.push(w.color || this.color, w.dashStyle || this.options.dashStyle), N.push(v);
  12821. }, this), N;
  12822. }, W.defaultOptions = $(y.defaultOptions, {}), W;
  12823. }(y), R.registerSeriesType("line", I), I;
  12824. }), E(h, "Series/Area/AreaSeries.js", [
  12825. h["Core/Color/Color.js"],
  12826. h["Core/Legend/LegendSymbol.js"],
  12827. h["Core/Series/SeriesRegistry.js"],
  12828. h["Core/Utilities.js"]
  12829. ], function(y, R, I, Z) {
  12830. var H = this && this.__extends || function() {
  12831. var v = function(u, d) {
  12832. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  12833. P.__proto__ = O;
  12834. } || function(P, O) {
  12835. for (var B in O)
  12836. O.hasOwnProperty(B) && (P[B] = O[B]);
  12837. }, v(u, d);
  12838. };
  12839. return function(u, d) {
  12840. function P() {
  12841. this.constructor = u;
  12842. }
  12843. v(u, d), u.prototype = d === null ? Object.create(d) : (P.prototype = d.prototype, new P());
  12844. };
  12845. }(), $ = y.parse, U = I.seriesTypes.line;
  12846. y = Z.extend;
  12847. var W = Z.merge, N = Z.objectEach, w = Z.pick;
  12848. return Z = function(v) {
  12849. function u() {
  12850. var d = v !== null && v.apply(this, arguments) || this;
  12851. return d.data = void 0, d.options = void 0, d.points = void 0, d;
  12852. }
  12853. return H(u, v), u.prototype.drawGraph = function() {
  12854. this.areaPath = [], v.prototype.drawGraph.apply(this);
  12855. var d = this, P = this.areaPath, O = this.options, B = [["area", "highcharts-area", this.color, O.fillColor]];
  12856. this.zones.forEach(function(C, b) {
  12857. B.push(["zone-area-" + b, "highcharts-area highcharts-zone-area-" + b + " " + C.className, C.color || d.color, C.fillColor || O.fillColor]);
  12858. }), B.forEach(function(C) {
  12859. var b = C[0], M = d[b], x = M ? "animate" : "attr", a = {};
  12860. M ? (M.endX = d.preventGraphAnimation ? null : P.xMap, M.animate({ d: P })) : (a.zIndex = 0, M = d[b] = d.chart.renderer.path(P).addClass(C[1]).add(d.group), M.isArea = !0), d.chart.styledMode || (a.fill = w(C[3], $(C[2]).setOpacity(w(O.fillOpacity, 0.75)).get())), M[x](a), M.startX = P.xMap, M.shiftUnit = O.step ? 2 : 1;
  12861. });
  12862. }, u.prototype.getGraphPath = function(d) {
  12863. var P = U.prototype.getGraphPath, O = this.options, B = O.stacking, C = this.yAxis, b, M = [], x = [], a = this.index, c = C.stacking.stacks[this.stackKey], p = O.threshold, i = Math.round(C.getThreshold(O.threshold));
  12864. O = w(O.connectNulls, B === "percent");
  12865. var l = function(o, A, _) {
  12866. var D = d[o];
  12867. o = B && c[D.x].points[a];
  12868. var j = D[_ + "Null"] || 0;
  12869. if (_ = D[_ + "Cliff"] || 0, D = !0, _ || j) {
  12870. var T = (j ? o[0] : o[1]) + _, X = o[0] + _;
  12871. D = !!j;
  12872. } else
  12873. !B && d[A] && d[A].isNull && (T = X = p);
  12874. typeof T < "u" && (x.push({ plotX: t, plotY: T === null ? i : C.getThreshold(T), isNull: D, isCliff: !0 }), M.push({ plotX: t, plotY: X === null ? i : C.getThreshold(X), doCurve: !1 }));
  12875. };
  12876. for (d = d || this.points, B && (d = this.getStackPoints(d)), b = 0; b < d.length; b++) {
  12877. B || (d[b].leftCliff = d[b].rightCliff = d[b].leftNull = d[b].rightNull = void 0);
  12878. var s = d[b].isNull, t = w(d[b].rectPlotX, d[b].plotX), n = B ? w(d[b].yBottom, i) : i;
  12879. (!s || O) && (O || l(b, b - 1, "left"), s && !B && O || (x.push(d[b]), M.push({ x: b, plotX: t, plotY: n })), O || l(b, b + 1, "right"));
  12880. }
  12881. return b = P.call(this, x, !0, !0), M.reversed = !0, s = P.call(this, M, !0, !0), (n = s[0]) && n[0] === "M" && (s[0] = ["L", n[1], n[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;
  12882. }, u.prototype.getStackPoints = function(d) {
  12883. var P = this, O = [], B = [], C = this.xAxis, b = this.yAxis, M = b.stacking.stacks[this.stackKey], x = {}, a = b.series, c = a.length, p = b.options.reversedStacks ? 1 : -1, i = a.indexOf(P);
  12884. if (d = d || this.points, this.options.stacking) {
  12885. for (var l = 0; l < d.length; l++)
  12886. d[l].leftNull = d[l].rightNull = void 0, x[d[l].x] = d[l];
  12887. N(M, function(t, n) {
  12888. t.total !== null && B.push(n);
  12889. }), B.sort(function(t, n) {
  12890. return t - n;
  12891. });
  12892. var s = a.map(function(t) {
  12893. return t.visible;
  12894. });
  12895. B.forEach(function(t, n) {
  12896. var o = 0, A, _;
  12897. if (x[t] && !x[t].isNull)
  12898. O.push(x[t]), [-1, 1].forEach(function(j) {
  12899. var T = j === 1 ? "rightNull" : "leftNull", X = 0, f = M[B[n + j]];
  12900. if (f)
  12901. for (var m = i; 0 <= m && m < c; ) {
  12902. var L = a[m].index;
  12903. A = f.points[L], A || (L === P.index ? x[t][T] = !0 : s[m] && (_ = M[t].points[L]) && (X -= _[1] - _[0])), m += p;
  12904. }
  12905. x[t][j === 1 ? "rightCliff" : "leftCliff"] = X;
  12906. });
  12907. else {
  12908. for (var D = i; 0 <= D && D < c; ) {
  12909. if (A = M[t].points[a[D].index]) {
  12910. o = A[1];
  12911. break;
  12912. }
  12913. D += p;
  12914. }
  12915. o = w(o, 0), o = b.translate(o, 0, 1, 0, 1), O.push({ isNull: !0, plotX: C.translate(t, 0, 0, 0, 1), x: t, plotY: o, yBottom: o });
  12916. }
  12917. });
  12918. }
  12919. return O;
  12920. }, u.defaultOptions = W(U.defaultOptions, { threshold: 0 }), u;
  12921. }(U), y(Z.prototype, {
  12922. singleStacks: !1,
  12923. drawLegendSymbol: R.drawRectangle
  12924. }), I.registerSeriesType("area", Z), Z;
  12925. }), E(h, "Series/Spline/SplineSeries.js", [h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R) {
  12926. var I = this && this.__extends || function() {
  12927. var U = function(W, N) {
  12928. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  12929. w.__proto__ = v;
  12930. } || function(w, v) {
  12931. for (var u in v)
  12932. v.hasOwnProperty(u) && (w[u] = v[u]);
  12933. }, U(W, N);
  12934. };
  12935. return function(W, N) {
  12936. function w() {
  12937. this.constructor = W;
  12938. }
  12939. U(W, N), W.prototype = N === null ? Object.create(N) : (w.prototype = N.prototype, new w());
  12940. };
  12941. }(), Z = y.seriesTypes.line, H = R.merge, $ = R.pick;
  12942. return R = function(U) {
  12943. function W() {
  12944. var N = U !== null && U.apply(this, arguments) || this;
  12945. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  12946. }
  12947. return I(W, U), W.prototype.getPointSpline = function(N, w, v) {
  12948. var u = w.plotX || 0, d = w.plotY || 0, P = N[v - 1];
  12949. if (v = N[v + 1], P && !P.isNull && P.doCurve !== !1 && !w.isCliff && v && !v.isNull && v.doCurve !== !1 && !w.isCliff) {
  12950. N = P.plotY || 0;
  12951. var O = v.plotX || 0;
  12952. v = v.plotY || 0;
  12953. var B = 0, C = (1.5 * u + (P.plotX || 0)) / 2.5, b = (1.5 * d + N) / 2.5;
  12954. O = (1.5 * u + O) / 2.5;
  12955. var M = (1.5 * d + v) / 2.5;
  12956. O !== C && (B = (M - b) * (O - u) / (O - C) + d - M), b += B, M += B, b > N && b > d ? (b = Math.max(N, d), M = 2 * d - b) : b < N && b < d && (b = Math.min(N, d), M = 2 * d - b), M > v && M > d ? (M = Math.max(v, d), b = 2 * d - M) : M < v && M < d && (M = Math.min(v, d), b = 2 * d - M), w.rightContX = O, w.rightContY = M;
  12957. }
  12958. return w = ["C", $(P.rightContX, P.plotX, 0), $(P.rightContY, P.plotY, 0), $(C, u, 0), $(b, d, 0), u, d], P.rightContX = P.rightContY = void 0, w;
  12959. }, W.defaultOptions = H(Z.defaultOptions), W;
  12960. }(Z), y.registerSeriesType("spline", R), R;
  12961. }), E(
  12962. h,
  12963. "Series/AreaSpline/AreaSplineSeries.js",
  12964. [h["Series/Area/AreaSeries.js"], h["Series/Spline/SplineSeries.js"], h["Core/Legend/LegendSymbol.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]],
  12965. function(y, R, I, Z, H) {
  12966. var $ = this && this.__extends || function() {
  12967. var w = function(v, u) {
  12968. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, P) {
  12969. d.__proto__ = P;
  12970. } || function(d, P) {
  12971. for (var O in P)
  12972. P.hasOwnProperty(O) && (d[O] = P[O]);
  12973. }, w(v, u);
  12974. };
  12975. return function(v, u) {
  12976. function d() {
  12977. this.constructor = v;
  12978. }
  12979. w(v, u), v.prototype = u === null ? Object.create(u) : (d.prototype = u.prototype, new d());
  12980. };
  12981. }(), U = y.prototype, W = H.extend, N = H.merge;
  12982. return H = function(w) {
  12983. function v() {
  12984. var u = w !== null && w.apply(this, arguments) || this;
  12985. return u.data = void 0, u.points = void 0, u.options = void 0, u;
  12986. }
  12987. return $(v, w), v.defaultOptions = N(R.defaultOptions, y.defaultOptions), v;
  12988. }(R), W(H.prototype, { getGraphPath: U.getGraphPath, getStackPoints: U.getStackPoints, drawGraph: U.drawGraph, drawLegendSymbol: I.drawRectangle }), Z.registerSeriesType("areaspline", H), H;
  12989. }
  12990. ), E(h, "Series/Column/ColumnSeries.js", [
  12991. h["Core/Animation/AnimationUtilities.js"],
  12992. h["Core/Color/Color.js"],
  12993. h["Core/Globals.js"],
  12994. h["Core/Legend/LegendSymbol.js"],
  12995. h["Core/Series/Series.js"],
  12996. h["Core/Series/SeriesRegistry.js"],
  12997. h["Core/Utilities.js"]
  12998. ], function(y, R, I, Z, H, $, U) {
  12999. var W = this && this.__extends || function() {
  13000. var c = function(p, i) {
  13001. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, s) {
  13002. l.__proto__ = s;
  13003. } || function(l, s) {
  13004. for (var t in s)
  13005. s.hasOwnProperty(t) && (l[t] = s[t]);
  13006. }, c(p, i);
  13007. };
  13008. return function(p, i) {
  13009. function l() {
  13010. this.constructor = p;
  13011. }
  13012. c(p, i), p.prototype = i === null ? Object.create(i) : (l.prototype = i.prototype, new l());
  13013. };
  13014. }(), N = y.animObject, w = R.parse, v = I.hasTouch;
  13015. y = I.noop;
  13016. var u = U.clamp, d = U.css, P = U.defined, O = U.extend, B = U.fireEvent, C = U.isArray, b = U.isNumber, M = U.merge, x = U.pick, a = U.objectEach;
  13017. return U = function(c) {
  13018. function p() {
  13019. var i = c !== null && c.apply(this, arguments) || this;
  13020. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  13021. }
  13022. return W(p, c), p.prototype.animate = function(i) {
  13023. var l = this, s = this.yAxis, t = l.options, n = this.chart.inverted, o = {}, A = n ? "translateX" : "translateY";
  13024. if (i)
  13025. o.scaleY = 1e-3, i = u(s.toPixels(t.threshold), s.pos, s.pos + s.len), n ? o.translateX = i - s.len : o.translateY = i, l.clipBox && l.setClip(), l.group.attr(o);
  13026. else {
  13027. var _ = Number(l.group.attr(A));
  13028. l.group.animate({ scaleY: 1 }, O(N(l.options.animation), { step: function(D, j) {
  13029. l.group && (o[A] = _ + j.pos * (s.pos - _), l.group.attr(o));
  13030. } }));
  13031. }
  13032. }, p.prototype.init = function(i, l) {
  13033. c.prototype.init.apply(this, arguments);
  13034. var s = this;
  13035. i = s.chart, i.hasRendered && i.series.forEach(function(t) {
  13036. t.type === s.type && (t.isDirty = !0);
  13037. });
  13038. }, p.prototype.getColumnMetrics = function() {
  13039. var i = this, l = i.options, s = i.xAxis, t = i.yAxis, n = s.options.reversedStacks;
  13040. n = s.reversed && !n || !s.reversed && n;
  13041. var o = {}, A, _ = 0;
  13042. l.grouping === !1 ? _ = 1 : i.chart.series.forEach(function(X) {
  13043. var f = X.yAxis, m = X.options;
  13044. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === f.len && t.pos === f.pos) {
  13045. if (m.stacking && m.stacking !== "group") {
  13046. A = X.stackKey, typeof o[A] > "u" && (o[A] = _++);
  13047. var L = o[A];
  13048. } else
  13049. m.grouping !== !1 && (L = _++);
  13050. X.columnIndex = L;
  13051. }
  13052. });
  13053. var D = Math.min(Math.abs(s.transA) * (s.ordinal && s.ordinal.slope || l.pointRange || s.closestPointRange || s.tickInterval || 1), s.len), j = D * l.groupPadding, T = (D - 2 * j) / (_ || 1);
  13054. return l = Math.min(l.maxPointWidth || s.len, x(l.pointWidth, T * (1 - 2 * l.pointPadding))), i.columnMetrics = { width: l, offset: (T - l) / 2 + (j + ((i.columnIndex || 0) + (n ? 1 : 0)) * T - D / 2) * (n ? -1 : 1), paddedWidth: T, columnCount: _ }, i.columnMetrics;
  13055. }, p.prototype.crispCol = function(i, l, s, t) {
  13056. var n = this.chart, o = this.borderWidth, A = -(o % 2 ? 0.5 : 0);
  13057. return o = o % 2 ? 0.5 : 1, n.inverted && n.renderer.isVML && (o += 1), this.options.crisp && (s = Math.round(i + s) + A, i = Math.round(i) + A, s -= i), t = Math.round(l + t) + o, A = 0.5 >= Math.abs(l) && 0.5 < t, l = Math.round(l) + o, t -= l, A && t && (--l, t += 1), { x: i, y: l, width: s, height: t };
  13058. }, p.prototype.adjustForMissingColumns = function(i, l, s, t) {
  13059. var n = this, o = this.options.stacking;
  13060. if (!s.isNull && 1 < t.columnCount) {
  13061. var A = 0, _ = 0;
  13062. a(this.yAxis.stacking && this.yAxis.stacking.stacks, function(D) {
  13063. if (typeof s.x == "number" && (D = D[s.x.toString()])) {
  13064. var j = D.points[n.index], T = D.total;
  13065. o ? (j && (A = _), D.hasValidPoints && _++) : C(j) && (A = j[1], _ = T || 0);
  13066. }
  13067. }), i = (s.plotX || 0) + ((_ - 1) * t.paddedWidth + l) / 2 - l - A * t.paddedWidth;
  13068. }
  13069. return i;
  13070. }, p.prototype.translate = function() {
  13071. var i = this, l = i.chart, s = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  13072. t = i.borderWidth = x(s.borderWidth, t ? 0 : 1);
  13073. var n = i.xAxis, o = i.yAxis, A = s.threshold, _ = i.translatedThreshold = o.getThreshold(A), D = x(s.minPointLength, 5), j = i.getColumnMetrics(), T = j.width, X = i.pointXOffset = j.offset, f = i.dataMin, m = i.dataMax, L = i.barW = Math.max(T, 1 + 2 * t);
  13074. l.inverted && (_ -= 0.5), s.pointPadding && (L = Math.ceil(L)), H.prototype.translate.apply(i), i.points.forEach(function(Y) {
  13075. var F = x(Y.yBottom, _), Q = 999 + Math.abs(F), k = Y.plotX || 0;
  13076. Q = u(Y.plotY, -Q, o.len + Q);
  13077. var G = Math.min(Q, F), z = Math.max(Q, F) - G, V = T, q = k + X, it = L;
  13078. D && Math.abs(z) < D && (z = D, k = !o.reversed && !Y.negative || o.reversed && Y.negative, b(A) && b(m) && Y.y === A && m <= A && (o.min || 0) < A && (f !== m || (o.max || 0) <= A) && (k = !k), G = Math.abs(G - _) > D ? F - D : _ - (k ? D : 0)), P(Y.options.pointWidth) && (V = it = Math.ceil(Y.options.pointWidth), q -= Math.round((V - T) / 2)), s.centerInCategory && (q = i.adjustForMissingColumns(q, V, Y, j)), Y.barX = q, Y.pointWidth = V, Y.tooltipPos = l.inverted ? [u(o.len + o.pos - l.plotLeft - Q, o.pos - l.plotLeft, o.len + o.pos - l.plotLeft), n.len + n.pos - l.plotTop - q - it / 2, z] : [n.left - l.plotLeft + q + it / 2, u(Q + o.pos - l.plotTop, o.pos - l.plotTop, o.len + o.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]);
  13079. });
  13080. }, p.prototype.drawGraph = function() {
  13081. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  13082. }, p.prototype.pointAttribs = function(i, l) {
  13083. var s = this.options, t = this.pointAttrToOptions || {}, n = t.stroke || "borderColor", o = t["stroke-width"] || "borderWidth", A = i && i.color || this.color, _ = i && i[n] || s[n] || A;
  13084. t = i && i.options.dashStyle || s.dashStyle;
  13085. var D = i && i[o] || s[o] || this[o] || 0, j = x(i && i.opacity, s.opacity, 1);
  13086. if (i && this.zones.length) {
  13087. var T = i.getZone();
  13088. A = i.options.color || T && (T.color || i.nonZonedColor) || this.color, T && (_ = T.borderColor || _, t = T.dashStyle || t, D = T.borderWidth || D);
  13089. }
  13090. return l && i && (i = M(s.states[l], i.options.states && i.options.states[l] || {}), l = i.brightness, A = i.color || typeof l < "u" && w(A).brighten(i.brightness).get() || A, _ = i[n] || _, D = i[o] || D, t = i.dashStyle || t, j = x(i.opacity, j)), n = { fill: A, stroke: _, "stroke-width": D, opacity: j }, t && (n.dashstyle = t), n;
  13091. }, p.prototype.drawPoints = function() {
  13092. var i = this, l = this.chart, s = i.options, t = l.renderer, n = s.animationLimit || 250, o;
  13093. i.points.forEach(function(A) {
  13094. var _ = A.graphic, D = !!_, j = _ && l.pointCount < n ? "animate" : "attr";
  13095. b(A.plotY) && A.y !== null ? (o = A.shapeArgs, _ && A.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (A.startXPos = i.xAxis.reversed ? -(o && o.width || 0) : i.xAxis.width), _ || (A.graphic = _ = t[A.shapeType](o).add(A.group || i.group)) && i.enabledDataSorting && l.hasRendered && l.pointCount < n && (_.attr({ x: A.startXPos }), D = !0, j = "animate"), _ && D && _[j](M(o)), s.borderRadius && _[j]({ r: s.borderRadius }), l.styledMode || _[j](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());
  13096. });
  13097. }, p.prototype.drawTracker = function() {
  13098. var i = this, l = i.chart, s = l.pointer, t = function(o) {
  13099. var A = s.getPointFromEvent(o);
  13100. typeof A < "u" && (s.isDirectTouch = !0, A.onMouseOver(o));
  13101. }, n;
  13102. i.points.forEach(function(o) {
  13103. n = C(o.dataLabels) ? o.dataLabels : o.dataLabel ? [o.dataLabel] : [], o.graphic && (o.graphic.element.point = o), n.forEach(function(A) {
  13104. A.div ? A.div.point = o : A.element.point = o;
  13105. });
  13106. }), i._hasTracking || (i.trackerGroups.forEach(function(o) {
  13107. i[o] && (i[o].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(A) {
  13108. s.onTrackerMouseOut(A);
  13109. }), v && i[o].on(
  13110. "touchstart",
  13111. t
  13112. ), !l.styledMode && i.options.cursor && i[o].css(d).css({ cursor: i.options.cursor }));
  13113. }), i._hasTracking = !0), B(this, "afterDrawTracker");
  13114. }, p.prototype.remove = function() {
  13115. var i = this, l = i.chart;
  13116. l.hasRendered && l.series.forEach(function(s) {
  13117. s.type === i.type && (s.isDirty = !0);
  13118. }), H.prototype.remove.apply(i, arguments);
  13119. }, p.defaultOptions = M(H.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  13120. hover: { halo: !1, brightness: 0.1 },
  13121. select: { color: "#cccccc", borderColor: "#000000" }
  13122. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), p;
  13123. }(H), O(U.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: Z.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), $.registerSeriesType("column", U), U;
  13124. }), E(h, "Core/Series/DataLabel.js", [
  13125. h["Core/Animation/AnimationUtilities.js"],
  13126. h["Core/FormatUtilities.js"],
  13127. h["Core/Utilities.js"]
  13128. ], function(y, R, I) {
  13129. var Z = y.getDeferredAnimation, H = R.format, $ = I.defined, U = I.extend, W = I.fireEvent, N = I.isArray, w = I.merge, v = I.objectEach, u = I.pick, d = I.splat, P;
  13130. return function(O) {
  13131. function B(p, i, l, s, t) {
  13132. var n = this, o = this.chart, A = this.isCartesian && o.inverted, _ = this.enabledDataSorting, D = u(p.dlBox && p.dlBox.centerX, p.plotX, -9999), j = u(p.plotY, -9999), T = i.getBBox(), X = l.rotation, f = l.align, m = o.isInsidePlot(D, Math.round(j), { inverted: A, paneCoordinates: !0, series: n }), L = function(k) {
  13133. _ && n.xAxis && !Y && n.setDataLabelStartPos(
  13134. p,
  13135. i,
  13136. t,
  13137. m,
  13138. k
  13139. );
  13140. }, Y = u(l.overflow, _ ? "none" : "justify") === "justify", F = this.visible && p.visible !== !1 && (p.series.forceDL || _ && !Y || m || u(l.inside, !!this.options.stacking) && s && o.isInsidePlot(D, A ? s.x + 1 : s.y + s.height - 1, { inverted: A, paneCoordinates: !0, series: n }));
  13141. if (F) {
  13142. var Q = o.renderer.fontMetrics(o.styledMode ? void 0 : l.style.fontSize, i).b;
  13143. s = U({ x: A ? this.yAxis.len - j : D, y: Math.round(A ? this.xAxis.len - D : j), width: 0, height: 0 }, s), U(l, { width: T.width, height: T.height }), X ? (Y = !1, D = o.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: f }), L = (X + 720) % 360, L = 180 < L && 360 > L, f === "left" ? D.y -= L ? T.height : 0 : f === "center" ? (D.x -= T.width / 2, D.y -= T.height / 2) : f === "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) : u(l.crop, !0) && (F = o.isInsidePlot(D.x, D.y, { paneCoordinates: !0, series: n }) && o.isInsidePlot(D.x + T.width, D.y + T.height, {
  13144. paneCoordinates: !0,
  13145. series: n
  13146. })), l.shape && !X && i[t ? "attr" : "animate"]({ anchorX: A ? o.plotWidth - p.plotY : p.plotX, anchorY: A ? o.plotHeight - p.plotX : p.plotY });
  13147. }
  13148. t && _ && (i.placed = !1), F || _ && !Y || (i.hide(!0), i.placed = !1);
  13149. }
  13150. function C(p, i) {
  13151. var l = i.filter;
  13152. 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;
  13153. }
  13154. function b() {
  13155. var p = this, i = p.chart, l = p.options, s = p.points, t = p.hasRendered || 0, n = i.renderer, o = l.dataLabels, A, _ = o.animation;
  13156. if (_ = o.defer ? Z(
  13157. i,
  13158. _,
  13159. p
  13160. ) : { defer: 0, duration: 0 }, o = 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), o), W(this, "drawDataLabels"), N(o) || o.enabled || p._hasPointLabels) {
  13161. var D = p.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", o.zIndex || 6);
  13162. D.attr({ opacity: +t }), !t && (t = p.dataLabelsGroup) && (p.visible && D.show(!0), t[l.animation ? "animate" : "attr"]({ opacity: 1 }, _)), s.forEach(function(j) {
  13163. A = d(x(o, j.dlOptions || j.options && j.options.dataLabels)), A.forEach(function(T, X) {
  13164. var f = T.enabled && (!j.isNull || j.dataLabelOnNull) && C(j, T), m = j.connectors ? j.connectors[X] : j.connector, L = j.dataLabels ? j.dataLabels[X] : j.dataLabel, Y = u(T.distance, j.labelDistance), F = !L;
  13165. if (f) {
  13166. var Q = j.getLabelConfig(), k = u(T[j.formatPrefix + "Format"], T.format);
  13167. Q = $(k) ? H(k, Q, i) : (T[j.formatPrefix + "Formatter"] || T.formatter).call(Q, T), k = T.style;
  13168. var G = T.rotation;
  13169. i.styledMode || (k.color = u(T.color, k.color, p.color, "#000000"), k.color === "contrast" ? (j.contrastColor = n.getContrast(j.color || p.color), k.color = !$(Y) && T.inside || 0 > Y || l.stacking ? j.contrastColor : "#000000") : delete j.contrastColor, l.cursor && (k.cursor = l.cursor));
  13170. var z = { r: T.borderRadius || 0, rotation: G, padding: T.padding, zIndex: 1 };
  13171. i.styledMode || (z.fill = T.backgroundColor, z.stroke = T.borderColor, z["stroke-width"] = T.borderWidth), v(z, function(V, q) {
  13172. typeof V > "u" && delete z[q];
  13173. });
  13174. }
  13175. !L || f && $(Q) && !!L.div == !!T.useHTML || (j.dataLabel = L = j.dataLabel && j.dataLabel.destroy(), j.dataLabels && (j.dataLabels.length === 1 ? delete j.dataLabels : delete j.dataLabels[X]), X || delete j.dataLabel, m && (j.connector = j.connector.destroy(), j.connectors && (j.connectors.length === 1 ? delete j.connectors : delete j.connectors[X]))), f && $(Q) && (L ? z.text = Q : (j.dataLabels = j.dataLabels || [], L = j.dataLabels[X] = G ? n.text(Q, 0, -9999, T.useHTML).addClass("highcharts-data-label") : n.label(Q, 0, -9999, T.shape, null, null, T.useHTML, null, "data-label"), X || (j.dataLabel = L), L.addClass(" highcharts-data-label-color-" + j.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(j.getDataLabelPath && j.getDataLabelPath(L) || j.graphic, T.textPath), j.dataLabelPath && !T.textPath.enabled && (j.dataLabelPath = j.dataLabelPath.destroy())), p.alignDataLabel(j, L, T, null, F));
  13176. });
  13177. });
  13178. }
  13179. W(this, "afterDrawDataLabels");
  13180. }
  13181. function M(p, i, l, s, t, n) {
  13182. var o = this.chart, A = i.align, _ = i.verticalAlign, D = p.box ? 0 : p.padding || 0, j = i.x;
  13183. j = j === void 0 ? 0 : j;
  13184. var T = i.y;
  13185. T = T === void 0 ? 0 : T;
  13186. var X = (l.x || 0) + D;
  13187. if (0 > X) {
  13188. A === "right" && 0 <= j ? (i.align = "left", i.inside = !0) : j -= X;
  13189. var f = !0;
  13190. }
  13191. return X = (l.x || 0) + s.width - D, X > o.plotWidth && (A === "left" && 0 >= j ? (i.align = "right", i.inside = !0) : j += o.plotWidth - X, f = !0), X = l.y + D, 0 > X && (_ === "bottom" && 0 <= T ? (i.verticalAlign = "top", i.inside = !0) : T -= X, f = !0), X = (l.y || 0) + s.height - D, X > o.plotHeight && (_ === "top" && 0 >= T ? (i.verticalAlign = "bottom", i.inside = !0) : T += o.plotHeight - X, f = !0), f && (i.x = j, i.y = T, p.placed = !n, p.align(i, void 0, t)), f;
  13192. }
  13193. function x(p, i) {
  13194. var l = [], s;
  13195. if (N(p) && !N(i))
  13196. l = p.map(function(t) {
  13197. return w(t, i);
  13198. });
  13199. else if (N(i) && !N(p))
  13200. l = i.map(function(t) {
  13201. return w(p, t);
  13202. });
  13203. else if (N(p) || N(i))
  13204. for (s = Math.max(p.length, i.length); s--; )
  13205. l[s] = w(p[s], i[s]);
  13206. else
  13207. l = w(p, i);
  13208. return l;
  13209. }
  13210. function a(p, i, l, s, t) {
  13211. var n = this.chart, o = n.inverted, A = this.xAxis, _ = A.reversed, D = o ? i.height / 2 : i.width / 2;
  13212. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = o ? t.x : _ ? -D - p : A.width - D + p, i.startYPos = o ? _ ? 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(
  13213. { opacity: 0 },
  13214. void 0,
  13215. i.hide
  13216. ), n.hasRendered && (l && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  13217. }
  13218. var c = [];
  13219. O.compose = function(p) {
  13220. if (c.indexOf(p) === -1) {
  13221. var i = p.prototype;
  13222. c.push(p), i.alignDataLabel = B, i.drawDataLabels = b, i.justifyDataLabel = M, i.setDataLabelStartPos = a;
  13223. }
  13224. };
  13225. }(P || (P = {})), P;
  13226. }), E(h, "Series/Column/ColumnDataLabel.js", [h["Core/Series/DataLabel.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R, I) {
  13227. var Z = R.series, H = I.merge, $ = I.pick, U;
  13228. return function(W) {
  13229. function N(v, u, d, P, O) {
  13230. var B = this.chart.inverted, C = v.series, b = (C.xAxis ? C.xAxis.len : this.chart.plotSizeX) || 0;
  13231. C = (C.yAxis ? C.yAxis.len : this.chart.plotSizeY) || 0;
  13232. var M = v.dlBox || v.shapeArgs, x = $(v.below, v.plotY > $(this.translatedThreshold, C)), a = $(d.inside, !!this.options.stacking);
  13233. M && (P = H(M), 0 > P.y && (P.height += P.y, P.y = 0), M = P.y + P.height - C, 0 < M && M < P.height && (P.height -= M), B && (P = { x: C - P.y - P.height, y: b - P.x - P.width, width: P.height, height: P.width }), a || (B ? (P.x += x ? 0 : P.width, P.width = 0) : (P.y += x ? P.height : 0, P.height = 0))), d.align = $(d.align, !B || a ? "center" : x ? "right" : "left"), d.verticalAlign = $(d.verticalAlign, B || a ? "middle" : x ? "top" : "bottom"), Z.prototype.alignDataLabel.call(this, v, u, d, P, O), d.inside && v.contrastColor && u.css({ color: v.contrastColor });
  13234. }
  13235. var w = [];
  13236. W.compose = function(v) {
  13237. y.compose(Z), w.indexOf(v) === -1 && (w.push(v), v.prototype.alignDataLabel = N);
  13238. };
  13239. }(U || (U = {})), U;
  13240. }), E(h, "Series/Bar/BarSeries.js", [h["Series/Column/ColumnSeries.js"], h["Core/Series/SeriesRegistry.js"], h["Core/Utilities.js"]], function(y, R, I) {
  13241. var Z = this && this.__extends || function() {
  13242. var U = function(W, N) {
  13243. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  13244. w.__proto__ = v;
  13245. } || function(w, v) {
  13246. for (var u in v)
  13247. v.hasOwnProperty(u) && (w[u] = v[u]);
  13248. }, U(W, N);
  13249. };
  13250. return function(W, N) {
  13251. function w() {
  13252. this.constructor = W;
  13253. }
  13254. U(W, N), W.prototype = N === null ? Object.create(N) : (w.prototype = N.prototype, new w());
  13255. };
  13256. }(), H = I.extend, $ = I.merge;
  13257. return I = function(U) {
  13258. function W() {
  13259. var N = U !== null && U.apply(this, arguments) || this;
  13260. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  13261. }
  13262. return Z(W, U), W.defaultOptions = $(
  13263. y.defaultOptions,
  13264. {}
  13265. ), W;
  13266. }(y), H(I.prototype, { inverted: !0 }), R.registerSeriesType("bar", I), I;
  13267. }), 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, R, I, Z) {
  13268. var H = this && this.__extends || function() {
  13269. var N = function(w, v) {
  13270. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, d) {
  13271. u.__proto__ = d;
  13272. } || function(u, d) {
  13273. for (var P in d)
  13274. d.hasOwnProperty(P) && (u[P] = d[P]);
  13275. }, N(w, v);
  13276. };
  13277. return function(w, v) {
  13278. function u() {
  13279. this.constructor = w;
  13280. }
  13281. N(w, v), w.prototype = v === null ? Object.create(v) : (u.prototype = v.prototype, new u());
  13282. };
  13283. }(), $ = Z.addEvent, U = Z.extend, W = Z.merge;
  13284. return Z = function(N) {
  13285. function w() {
  13286. var v = N !== null && N.apply(this, arguments) || this;
  13287. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  13288. }
  13289. return H(w, N), w.prototype.applyJitter = function() {
  13290. var v = this, u = this.options.jitter, d = this.points.length;
  13291. u && this.points.forEach(function(P, O) {
  13292. ["x", "y"].forEach(function(B, C) {
  13293. var b = "plot" + B.toUpperCase();
  13294. if (u[B] && !P.isNull) {
  13295. var M = v[B + "Axis"], x = u[B] * M.transA;
  13296. if (M && !M.isLog) {
  13297. var a = Math.max(0, P[b] - x);
  13298. M = Math.min(M.len, P[b] + x), C = 1e4 * Math.sin(O + C * d), P[b] = a + (M - a) * (C - Math.floor(C)), B === "x" && (P.clientX = P.plotX);
  13299. }
  13300. }
  13301. });
  13302. });
  13303. }, w.prototype.drawGraph = function() {
  13304. this.options.lineWidth ? N.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  13305. }, w.defaultOptions = W(R.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  13306. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  13307. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  13308. } }), w;
  13309. }(R), U(Z.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), $(Z, "afterTranslate", function() {
  13310. this.applyJitter();
  13311. }), I.registerSeriesType("scatter", Z), Z;
  13312. }), E(h, "Series/CenteredUtilities.js", [h["Core/Globals.js"], h["Core/Series/Series.js"], h["Core/Utilities.js"]], function(y, R, I) {
  13313. var Z = y.deg2rad, H = I.isNumber, $ = I.pick, U = I.relativeLength, W;
  13314. return function(N) {
  13315. N.getCenter = function() {
  13316. var w = this.options, v = this.chart, u = 2 * (w.slicedOffset || 0), d = v.plotWidth - 2 * u, P = v.plotHeight - 2 * u, O = w.center, B = Math.min(d, P), C = w.size, b = w.innerSize || 0;
  13317. for (typeof C == "string" && (C = parseFloat(C)), typeof b == "string" && (b = parseFloat(b)), w = [$(O[0], "50%"), $(O[1], "50%"), $(C && 0 > C ? void 0 : w.size, "100%"), $(b && 0 > b ? void 0 : w.innerSize || 0, "0%")], !v.angular || this instanceof R || (w[3] = 0), O = 0; 4 > O; ++O)
  13318. C = w[O], v = 2 > O || O === 2 && /%$/.test(C), w[O] = U(C, [d, P, B, w[2]][O]) + (v ? u : 0);
  13319. return w[3] > w[2] && (w[3] = w[2]), w;
  13320. }, N.getStartAndEndRadians = function(w, v) {
  13321. return w = H(w) ? w : 0, v = H(v) && v > w && 360 > v - w ? v : w + 360, { start: Z * (w + -90), end: Z * (v + -90) };
  13322. };
  13323. }(W || (W = {})), W;
  13324. }), E(h, "Series/Pie/PiePoint.js", [h["Core/Animation/AnimationUtilities.js"], h["Core/Series/Point.js"], h["Core/Utilities.js"]], function(y, R, I) {
  13325. var Z = this && this.__extends || function() {
  13326. var v = function(u, d) {
  13327. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  13328. P.__proto__ = O;
  13329. } || function(P, O) {
  13330. for (var B in O)
  13331. O.hasOwnProperty(B) && (P[B] = O[B]);
  13332. }, v(u, d);
  13333. };
  13334. return function(u, d) {
  13335. function P() {
  13336. this.constructor = u;
  13337. }
  13338. v(u, d), u.prototype = d === null ? Object.create(d) : (P.prototype = d.prototype, new P());
  13339. };
  13340. }(), H = y.setAnimation, $ = I.addEvent, U = I.defined;
  13341. y = I.extend;
  13342. var W = I.isNumber, N = I.pick, w = I.relativeLength;
  13343. return R = function(v) {
  13344. function u() {
  13345. var d = v !== null && v.apply(this, arguments) || this;
  13346. return d.labelDistance = void 0, d.options = void 0, d.series = void 0, d;
  13347. }
  13348. return Z(u, v), u.prototype.getConnectorPath = function() {
  13349. var d = this.labelPosition, P = this.series.options.dataLabels, O = this.connectorShapes, B = P.connectorShape;
  13350. return O[B] && (B = O[B]), B.call(this, { x: d.final.x, y: d.final.y, alignment: d.alignment }, d.connectorPosition, P);
  13351. }, u.prototype.getTranslate = function() {
  13352. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  13353. }, u.prototype.haloPath = function(d) {
  13354. var P = this.shapeArgs;
  13355. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(P.x, P.y, P.r + d, P.r + d, { innerR: P.r - 1, start: P.start, end: P.end });
  13356. }, u.prototype.init = function() {
  13357. var d = this;
  13358. v.prototype.init.apply(
  13359. this,
  13360. arguments
  13361. ), this.name = N(this.name, "Slice");
  13362. var P = function(O) {
  13363. d.slice(O.type === "select");
  13364. };
  13365. return $(this, "select", P), $(this, "unselect", P), this;
  13366. }, u.prototype.isValid = function() {
  13367. return W(this.y) && 0 <= this.y;
  13368. }, u.prototype.setVisible = function(d, P) {
  13369. var O = this, B = this.series, C = B.chart, b = B.options.ignoreHiddenPoint;
  13370. P = N(P, b), d !== this.visible && (this.visible = this.options.visible = d = typeof d > "u" ? !this.visible : d, B.options.data[B.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(M) {
  13371. O[M] && O[M][d ? "show" : "hide"](d);
  13372. }), this.legendItem && C.legend.colorizeItem(this, d), d || this.state !== "hover" || this.setState(""), b && (B.isDirty = !0), P && C.redraw());
  13373. }, u.prototype.slice = function(d, P, O) {
  13374. var B = this.series;
  13375. H(O, B.chart), N(P, !0), this.sliced = this.options.sliced = U(d) ? d : !this.sliced, B.options.data[B.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  13376. }, u;
  13377. }(R), y(R.prototype, { connectorShapes: { fixedOffset: function(v, u, d) {
  13378. var P = u.breakAt;
  13379. return u = u.touchingSliceAt, [["M", v.x, v.y], d.softConnector ? ["C", v.x + (v.alignment === "left" ? -5 : 5), v.y, 2 * P.x - u.x, 2 * P.y - u.y, P.x, P.y] : ["L", P.x, P.y], ["L", u.x, u.y]];
  13380. }, straight: function(v, u) {
  13381. return u = u.touchingSliceAt, [["M", v.x, v.y], ["L", u.x, u.y]];
  13382. }, crookedLine: function(v, u, d) {
  13383. u = u.touchingSliceAt;
  13384. var P = this.series, O = P.center[0], B = P.chart.plotWidth, C = P.chart.plotLeft;
  13385. P = v.alignment;
  13386. var b = this.shapeArgs.r;
  13387. return d = w(d.crookDistance, 1), B = P === "left" ? O + b + (B + C - O - b) * (1 - d) : C + (O - b) * d, d = ["L", B, v.y], O = !0, (P === "left" ? B > v.x || B < u.x : B < v.x || B > u.x) && (O = !1), v = [["M", v.x, v.y]], O && v.push(d), v.push(["L", u.x, u.y]), v;
  13388. } } }), R;
  13389. }), 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, R, I, Z, H, $, U, W, N) {
  13390. var w = this && this.__extends || function() {
  13391. var b = function(M, x) {
  13392. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, c) {
  13393. a.__proto__ = c;
  13394. } || function(a, c) {
  13395. for (var p in c)
  13396. c.hasOwnProperty(p) && (a[p] = c[p]);
  13397. }, b(M, x);
  13398. };
  13399. return function(M, x) {
  13400. function a() {
  13401. this.constructor = M;
  13402. }
  13403. b(M, x), M.prototype = x === null ? Object.create(x) : (a.prototype = x.prototype, new a());
  13404. };
  13405. }(), v = y.getStartAndEndRadians;
  13406. I = I.noop;
  13407. var u = N.clamp, d = N.extend, P = N.fireEvent, O = N.merge, B = N.pick, C = N.relativeLength;
  13408. return N = function(b) {
  13409. function M() {
  13410. var x = b !== null && b.apply(this, arguments) || this;
  13411. return x.center = void 0, x.data = void 0, x.maxLabelDistance = void 0, x.options = void 0, x.points = void 0, x;
  13412. }
  13413. return w(M, b), M.prototype.animate = function(x) {
  13414. var a = this, c = a.points, p = a.startAngleRad;
  13415. x || c.forEach(function(i) {
  13416. var l = i.graphic, s = i.shapeArgs;
  13417. l && s && (l.attr({ r: B(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));
  13418. });
  13419. }, M.prototype.drawEmpty = function() {
  13420. var x = this.startAngleRad, a = this.endAngleRad, c = this.options;
  13421. if (this.total === 0 && this.center) {
  13422. var p = this.center[0], i = this.center[1];
  13423. 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" });
  13424. } else
  13425. this.graph && (this.graph = this.graph.destroy());
  13426. }, M.prototype.drawPoints = function() {
  13427. var x = this.chart.renderer;
  13428. this.points.forEach(function(a) {
  13429. 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);
  13430. });
  13431. }, M.prototype.generatePoints = function() {
  13432. b.prototype.generatePoints.call(this), this.updateTotals();
  13433. }, M.prototype.getX = function(x, a, c) {
  13434. var p = this.center, i = this.radii ? this.radii[c.index] || 0 : p[2] / 2;
  13435. return x = Math.asin(u((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);
  13436. }, M.prototype.hasData = function() {
  13437. return !!this.processedXData.length;
  13438. }, M.prototype.redrawPoints = function() {
  13439. var x = this, a = x.chart, c = a.renderer, p = x.options.shadow, i, l, s, t;
  13440. this.drawEmpty(), !p || x.shadowGroup || a.styledMode || (x.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(x.group)), x.points.forEach(function(n) {
  13441. var o = {};
  13442. if (l = n.graphic, !n.isNull && l) {
  13443. var A = void 0;
  13444. t = n.shapeArgs, i = n.getTranslate(), a.styledMode || (A = n.shadowGroup, p && !A && (A = n.shadowGroup = c.g("shadow").add(x.shadowGroup)), A && A.attr(i), s = x.pointAttribs(n, n.selected && "select")), n.delayedRendering ? (l.setRadialReference(x.center).attr(t).attr(i), a.styledMode || l.attr(s).attr({ "stroke-linejoin": "round" }).shadow(p, A), n.delayedRendering = !1) : (l.setRadialReference(x.center), a.styledMode || O(!0, o, s), O(!0, o, t, i), l.animate(o)), l.attr({ visibility: n.visible ? "inherit" : "hidden" }), l.addClass(n.getClassName(), !0);
  13445. } else
  13446. l && (n.graphic = l.destroy());
  13447. });
  13448. }, M.prototype.sortByAngle = function(x, a) {
  13449. x.sort(function(c, p) {
  13450. return typeof c.angle < "u" && (p.angle - c.angle) * a;
  13451. });
  13452. }, M.prototype.translate = function(x) {
  13453. this.generatePoints();
  13454. var a = this.options, c = a.slicedOffset, p = c + (a.borderWidth || 0), i = v(a.startAngle, a.endAngle), l = this.startAngleRad = i.start;
  13455. i = (this.endAngleRad = i.end) - l;
  13456. var s = this.points, t = a.dataLabels.distance;
  13457. a = a.ignoreHiddenPoint;
  13458. var n = s.length, o, A = 0;
  13459. for (x || (this.center = x = this.getCenter()), o = 0; o < n; o++) {
  13460. var _ = s[o], D = l + A * i;
  13461. !_.isValid() || a && !_.visible || (A += _.percentage / 100);
  13462. var j = 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 * j) / 1e3 };
  13463. _.shapeType = "arc", _.shapeArgs = T, _.labelDistance = B(_.options.dataLabels && _.options.dataLabels.distance, t), _.labelDistance = C(_.labelDistance, T.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, _.labelDistance), j = (j + D) / 2, j > 1.5 * Math.PI ? j -= 2 * Math.PI : j < -Math.PI / 2 && (j += 2 * Math.PI), _.slicedTranslation = { translateX: Math.round(Math.cos(j) * c), translateY: Math.round(Math.sin(j) * c) }, T = Math.cos(j) * x[2] / 2;
  13464. var X = Math.sin(j) * x[2] / 2;
  13465. _.tooltipPos = [x[0] + 0.7 * T, x[1] + 0.7 * X], _.half = j < -Math.PI / 2 || j > Math.PI / 2 ? 1 : 0, _.angle = j, D = Math.min(p, _.labelDistance / 5), _.labelPosition = { natural: { x: x[0] + T + Math.cos(j) * _.labelDistance, y: x[1] + X + Math.sin(j) * _.labelDistance }, final: {}, alignment: 0 > _.labelDistance ? "center" : _.half ? "right" : "left", connectorPosition: { breakAt: { x: x[0] + T + Math.cos(j) * D, y: x[1] + X + Math.sin(j) * D }, touchingSliceAt: { x: x[0] + T, y: x[1] + X } } };
  13466. }
  13467. P(this, "afterTranslate");
  13468. }, M.prototype.updateTotals = function() {
  13469. var x = this.points, a = x.length, c = this.options.ignoreHiddenPoint, p, i = 0;
  13470. for (p = 0; p < a; p++) {
  13471. var l = x[p];
  13472. !l.isValid() || c && !l.visible || (i += l.y);
  13473. }
  13474. for (this.total = i, p = 0; p < a; p++)
  13475. l = x[p], l.percentage = 0 < i && (l.visible || !c) ? l.y / i * 100 : 0, l.total = i;
  13476. }, M.defaultOptions = O($.defaultOptions, {
  13477. center: [null, null],
  13478. clip: !1,
  13479. colorByPoint: !0,
  13480. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  13481. return this.point.isNull ? void 0 : this.point.name;
  13482. }, softConnector: !0, x: 0 },
  13483. fillColor: void 0,
  13484. ignoreHiddenPoint: !0,
  13485. inactiveOtherPoints: !0,
  13486. legendType: "point",
  13487. marker: null,
  13488. size: null,
  13489. showInLegend: !1,
  13490. slicedOffset: 10,
  13491. stickyTracking: !1,
  13492. tooltip: { followPointer: !0 },
  13493. borderColor: "#ffffff",
  13494. borderWidth: 1,
  13495. lineWidth: void 0,
  13496. states: { hover: { brightness: 0.1 } }
  13497. }), M;
  13498. }($), d(N.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: Z.drawRectangle, drawTracker: R.prototype.drawTracker, getCenter: y.getCenter, getSymbol: I, isCartesian: !1, noSharedTooltip: !0, pointAttribs: R.prototype.pointAttribs, pointClass: H, requireSorting: !1, searchPoint: I, trackerGroups: ["group", "dataLabelsGroup"] }), U.registerSeriesType("pie", N), N;
  13499. }), E(h, "Series/Pie/PieDataLabel.js", [
  13500. h["Core/Series/DataLabel.js"],
  13501. h["Core/Globals.js"],
  13502. h["Core/Renderer/RendererUtilities.js"],
  13503. h["Core/Series/SeriesRegistry.js"],
  13504. h["Core/Utilities.js"]
  13505. ], function(y, R, I, Z, H) {
  13506. var $ = R.noop, U = I.distribute, W = Z.series, N = H.arrayMax, w = H.clamp, v = H.defined, u = H.merge, d = H.pick, P = H.relativeLength, O;
  13507. return function(B) {
  13508. function C() {
  13509. var c = this, p = c.data, i = c.chart, l = c.options.dataLabels || {}, s = l.connectorPadding, t = i.plotWidth, n = i.plotHeight, o = i.plotLeft, A = Math.round(i.chartWidth / 3), _ = c.center, D = _[2] / 2, j = _[1], T = [[], []], X = [0, 0, 0, 0], f = c.dataLabelPositioners, m, L, Y, F, Q, k, G, z, V, q, it, et;
  13510. c.visible && (l.enabled || c._hasPointLabels) && (p.forEach(function(nt) {
  13511. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  13512. }), W.prototype.drawDataLabels.apply(c), p.forEach(function(nt) {
  13513. 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));
  13514. }), T.forEach(function(nt, rt) {
  13515. var ct = nt.length, gt = [], dt;
  13516. if (ct) {
  13517. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  13518. var lt = Math.max(0, j - D - c.maxLabelDistance), at = Math.min(j + D + c.maxLabelDistance, i.plotHeight);
  13519. nt.forEach(function(J) {
  13520. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, j - D - J.labelDistance), J.bottom = Math.min(j + 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));
  13521. }), lt = at + dt - lt, U(gt, lt, lt / 5);
  13522. }
  13523. for (it = 0; it < ct; it++) {
  13524. if (m = nt[it], k = m.labelPosition, F = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", V = lt = k.natural.y, gt && v(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (G = m.distributeBox.size, V = f.radialDistributionY(m))), delete m.positionIndex, l.justify)
  13525. z = f.justify(m, D, _);
  13526. else
  13527. switch (l.alignTo) {
  13528. case "connectors":
  13529. z = f.alignToConnectors(nt, rt, t, o);
  13530. break;
  13531. case "plotEdges":
  13532. z = f.alignToPlotEdges(F, rt, t, o);
  13533. break;
  13534. default:
  13535. z = f.radialDistributionX(c, m, V, lt);
  13536. }
  13537. F._attr = { visibility: q, align: k.alignment }, et = m.options.dataLabels || {}, F._pos = { x: z + d(et.x, l.x) + ({ left: s, right: -s }[k.alignment] || 0), y: V + d(et.y, l.y) - 10 }, k.final.x = z, k.final.y = V, d(l.crop, !0) && (Q = F.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 > V - G / 2 ? X[0] = Math.max(Math.round(-V + G / 2), X[0]) : V + G / 2 > n && (X[2] = Math.max(Math.round(V + G / 2 - n), X[2])), F.sideOverflow = lt);
  13538. }
  13539. }
  13540. }), N(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  13541. if (et = u(l, nt.options.dataLabels), L = d(et.connectorWidth, 1)) {
  13542. var rt;
  13543. Y = nt.connector, (F = nt.dataLabel) && F._pos && nt.visible && 0 < nt.labelDistance ? (q = F._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());
  13544. }
  13545. }));
  13546. }
  13547. function b() {
  13548. this.points.forEach(function(c) {
  13549. var p = c.dataLabel, i;
  13550. 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;
  13551. }, this);
  13552. }
  13553. function M(c) {
  13554. var p = this.center, i = this.options, l = i.center, s = i.minSize || 80, t = i.size !== null;
  13555. if (!t) {
  13556. if (l[0] !== null)
  13557. var n = Math.max(p[2] - Math.max(c[1], c[3]), s);
  13558. else
  13559. n = Math.max(p[2] - c[1] - c[3], s), p[0] += (c[3] - c[1]) / 2;
  13560. l[1] !== null ? n = w(n, s, p[2] - Math.max(c[0], c[2])) : (n = w(n, s, p[2] - c[0] - c[2]), p[1] += (c[0] - c[2]) / 2), n < p[2] ? (p[2] = n, p[3] = Math.min(P(i.innerSize || 0, n), n), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  13561. }
  13562. return t;
  13563. }
  13564. var x = [], a = { radialDistributionY: function(c) {
  13565. return c.top + c.distributeBox.pos;
  13566. }, radialDistributionX: function(c, p, i, l) {
  13567. return c.getX(i < p.top + 2 || i > p.bottom - 2 ? l : i, p.half, p);
  13568. }, justify: function(c, p, i) {
  13569. return i[0] + (c.half ? -1 : 1) * (p + c.labelDistance);
  13570. }, alignToPlotEdges: function(c, p, i, l) {
  13571. return c = c.getBBox().width, p ? c + l : i - c - l;
  13572. }, alignToConnectors: function(c, p, i, l) {
  13573. var s = 0, t;
  13574. return c.forEach(function(n) {
  13575. t = n.dataLabel.getBBox().width, t > s && (s = t);
  13576. }), p ? s + l : i - s - l;
  13577. } };
  13578. B.compose = function(c) {
  13579. y.compose(W), x.indexOf(c) === -1 && (x.push(c), c = c.prototype, c.dataLabelPositioners = a, c.alignDataLabel = $, c.drawDataLabels = C, c.placeDataLabels = b, c.verifyDataLabelOverflow = M);
  13580. };
  13581. }(O || (O = {})), O;
  13582. }), E(h, "Extensions/OverlappingDataLabels.js", [h["Core/Chart/Chart.js"], h["Core/Utilities.js"]], function(y, R) {
  13583. function I(w, v) {
  13584. var u = !1;
  13585. if (w) {
  13586. var d = w.newOpacity;
  13587. w.oldOpacity !== d && (w.alignAttr && w.placed ? (w[d ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), u = !0, w.alignAttr.opacity = d, w[w.isOld ? "animate" : "attr"](w.alignAttr, null, function() {
  13588. v.styledMode || w.css({ pointerEvents: d ? "auto" : "none" });
  13589. }), H(v, "afterHideOverlappingLabel")) : w.attr({ opacity: d })), w.isOld = !0;
  13590. }
  13591. return u;
  13592. }
  13593. var Z = R.addEvent, H = R.fireEvent, $ = R.isArray, U = R.isNumber, W = R.objectEach, N = R.pick;
  13594. Z(y, "render", function() {
  13595. var w = this, v = [];
  13596. (this.labelCollectors || []).forEach(function(u) {
  13597. v = v.concat(u());
  13598. }), (this.yAxis || []).forEach(function(u) {
  13599. u.stacking && u.options.stackLabels && !u.options.stackLabels.allowOverlap && W(u.stacking.stacks, function(d) {
  13600. W(d, function(P) {
  13601. P.label && P.label.visibility !== "hidden" && v.push(P.label);
  13602. });
  13603. });
  13604. }), (this.series || []).forEach(function(u) {
  13605. var d = u.options.dataLabels;
  13606. u.visible && (d.enabled !== !1 || u._hasPointLabels) && (d = function(P) {
  13607. return P.forEach(function(O) {
  13608. O.visible && ($(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(B) {
  13609. var C = B.options;
  13610. B.labelrank = N(C.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), C.allowOverlap ? (B.oldOpacity = B.opacity, B.newOpacity = 1, I(B, w)) : v.push(B);
  13611. });
  13612. });
  13613. }, d(u.nodes || []), d(u.points));
  13614. }), this.hideOverlappingLabels(v);
  13615. }), y.prototype.hideOverlappingLabels = function(w) {
  13616. var v = this, u = w.length, d = v.renderer, P, O, B, C = !1, b = function(a) {
  13617. var c, p = a.box ? 0 : a.padding || 0, i = c = 0, l;
  13618. if (a && (!a.alignAttr || a.placed)) {
  13619. var s = a.alignAttr || { x: a.attr("x"), y: a.attr("y") }, t = a.parentGroup;
  13620. a.width || (c = a.getBBox(), a.width = c.width, a.height = c.height, c = d.fontMetrics(null, a.element).h);
  13621. var n = a.width - 2 * p;
  13622. return (l = { left: "0", center: "0.5", right: "1" }[a.alignValue]) ? i = +l * n : U(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 };
  13623. }
  13624. };
  13625. for (O = 0; O < u; O++)
  13626. (P = w[O]) && (P.oldOpacity = P.opacity, P.newOpacity = 1, P.absoluteBox = b(P));
  13627. for (w.sort(function(a, c) {
  13628. return (c.labelrank || 0) - (a.labelrank || 0);
  13629. }), O = 0; O < u; O++) {
  13630. var M = (b = w[O]) && b.absoluteBox;
  13631. for (P = O + 1; P < u; ++P) {
  13632. var x = (B = w[P]) && B.absoluteBox;
  13633. !M || !x || b === B || b.newOpacity === 0 || B.newOpacity === 0 || x.x >= M.x + M.width || x.x + x.width <= M.x || x.y >= M.y + M.height || x.y + x.height <= M.y || ((b.labelrank < B.labelrank ? b : B).newOpacity = 0);
  13634. }
  13635. }
  13636. w.forEach(function(a) {
  13637. I(a, v) && (C = !0);
  13638. }), C && H(v, "afterHideAllOverlappingLabels");
  13639. };
  13640. }), E(
  13641. h,
  13642. "Core/Responsive.js",
  13643. [h["Core/Utilities.js"]],
  13644. function(y) {
  13645. var R = y.extend, I = y.find, Z = y.isArray, H = y.isObject, $ = y.merge, U = y.objectEach, W = y.pick, N = y.splat, w = y.uniqueKey, v;
  13646. return function(u) {
  13647. var d = [];
  13648. u.compose = function(O) {
  13649. return d.indexOf(O) === -1 && (d.push(O), R(O.prototype, P.prototype)), O;
  13650. };
  13651. var P = function() {
  13652. function O() {
  13653. }
  13654. return O.prototype.currentOptions = function(B) {
  13655. function C(x, a, c, p) {
  13656. var i;
  13657. U(x, function(l, s) {
  13658. if (!p && -1 < b.collectionsWithUpdate.indexOf(s) && a[s])
  13659. for (l = N(l), c[s] = [], i = 0; i < Math.max(l.length, a[s].length); i++)
  13660. 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)));
  13661. else
  13662. H(l) ? (c[s] = Z(l) ? [] : {}, C(l, a[s] || {}, c[s], p + 1)) : c[s] = typeof a[s] > "u" ? null : a[s];
  13663. });
  13664. }
  13665. var b = this, M = {};
  13666. return C(B, this.options, M, 0), M;
  13667. }, O.prototype.matchResponsiveRule = function(B, C) {
  13668. var b = B.condition;
  13669. (b.callback || function() {
  13670. 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);
  13671. }).call(this) && C.push(B._id);
  13672. }, O.prototype.setResponsive = function(B, C) {
  13673. var b = this, M = this.options.responsive, x = this.currentResponsive, a = [];
  13674. !C && M && M.rules && M.rules.forEach(function(c) {
  13675. typeof c._id > "u" && (c._id = w()), b.matchResponsiveRule(c, a);
  13676. }, this), C = $.apply(void 0, a.map(function(c) {
  13677. return I((M || {}).rules || [], function(p) {
  13678. return p._id === c;
  13679. });
  13680. }).map(function(c) {
  13681. return c && c.chartOptions;
  13682. })), C.isResponsiveOptions = !0, a = a.toString() || void 0, a !== (x && x.ruleIds) && (x && this.update(x.undoOptions, B, !0), a ? (x = this.currentOptions(C), x.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: a, mergedOptions: C, undoOptions: x }, this.update(C, B, !0)) : this.currentResponsive = void 0);
  13683. }, O;
  13684. }();
  13685. }(v || (v = {})), v;
  13686. }
  13687. ), E(h, "masters/highcharts.src.js", [
  13688. h["Core/Globals.js"],
  13689. h["Core/Utilities.js"],
  13690. h["Core/DefaultOptions.js"],
  13691. h["Core/Animation/Fx.js"],
  13692. h["Core/Animation/AnimationUtilities.js"],
  13693. h["Core/Renderer/HTML/AST.js"],
  13694. h["Core/FormatUtilities.js"],
  13695. h["Core/Renderer/RendererUtilities.js"],
  13696. h["Core/Renderer/SVG/SVGElement.js"],
  13697. h["Core/Renderer/SVG/SVGRenderer.js"],
  13698. h["Core/Renderer/HTML/HTMLElement.js"],
  13699. h["Core/Renderer/HTML/HTMLRenderer.js"],
  13700. h["Core/Axis/Axis.js"],
  13701. h["Core/Axis/DateTimeAxis.js"],
  13702. h["Core/Axis/LogarithmicAxis.js"],
  13703. h["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  13704. h["Core/Axis/Tick.js"],
  13705. h["Core/Tooltip.js"],
  13706. h["Core/Series/Point.js"],
  13707. h["Core/Pointer.js"],
  13708. h["Core/MSPointer.js"],
  13709. h["Core/Legend/Legend.js"],
  13710. h["Core/Chart/Chart.js"],
  13711. h["Core/Series/Series.js"],
  13712. h["Core/Series/SeriesRegistry.js"],
  13713. h["Series/Column/ColumnSeries.js"],
  13714. h["Series/Column/ColumnDataLabel.js"],
  13715. h["Series/Pie/PieSeries.js"],
  13716. h["Series/Pie/PieDataLabel.js"],
  13717. h["Core/Series/DataLabel.js"],
  13718. h["Core/Responsive.js"],
  13719. h["Core/Color/Color.js"],
  13720. h["Core/Time.js"]
  13721. ], function(y, R, I, Z, H, $, U, W, N, w, v, u, d, P, O, B, C, b, M, x, a, c, p, i, l, s, t, n, o, A, _, D, j) {
  13722. return y.animate = H.animate, y.animObject = H.animObject, y.getDeferredAnimation = H.getDeferredAnimation, y.setAnimation = H.setAnimation, y.stop = H.stop, y.timers = Z.timers, y.AST = $, y.Axis = d, y.Chart = p, y.chart = p.chart, y.Fx = Z, y.Legend = c, y.PlotLineOrBand = B, y.Point = M, y.Pointer = a.isRequired() ? a : x, y.Series = i, y.SVGElement = N, y.SVGRenderer = w, y.Tick = C, y.Time = j, y.Tooltip = b, y.Color = D, y.color = D.parse, u.compose(w), v.compose(N), y.defaultOptions = I.defaultOptions, y.getOptions = I.getOptions, y.time = I.defaultTime, y.setOptions = I.setOptions, y.dateFormat = U.dateFormat, y.format = U.format, y.numberFormat = U.numberFormat, y.addEvent = R.addEvent, y.arrayMax = R.arrayMax, y.arrayMin = R.arrayMin, y.attr = R.attr, y.clearTimeout = R.clearTimeout, y.correctFloat = R.correctFloat, y.createElement = R.createElement, y.css = R.css, y.defined = R.defined, y.destroyObjectProperties = R.destroyObjectProperties, y.discardElement = R.discardElement, y.distribute = W.distribute, y.erase = R.erase, y.error = R.error, y.extend = R.extend, y.extendClass = R.extendClass, y.find = R.find, y.fireEvent = R.fireEvent, y.getMagnitude = R.getMagnitude, y.getStyle = R.getStyle, y.inArray = R.inArray, y.isArray = R.isArray, y.isClass = R.isClass, y.isDOMElement = R.isDOMElement, y.isFunction = R.isFunction, y.isNumber = R.isNumber, y.isObject = R.isObject, y.isString = R.isString, y.keys = R.keys, y.merge = R.merge, y.normalizeTickInterval = R.normalizeTickInterval, y.objectEach = R.objectEach, y.offset = R.offset, y.pad = R.pad, y.pick = R.pick, y.pInt = R.pInt, y.relativeLength = R.relativeLength, y.removeEvent = R.removeEvent, y.seriesType = l.seriesType, y.splat = R.splat, y.stableSort = R.stableSort, y.syncTimeout = R.syncTimeout, y.timeUnits = R.timeUnits, y.uniqueKey = R.uniqueKey, y.useSerialIds = R.useSerialIds, y.wrap = R.wrap, t.compose(s), A.compose(i), P.compose(d), O.compose(d), o.compose(n), B.compose(d), _.compose(p), y;
  13723. }), h["masters/highcharts.src.js"]._modules = h, h["masters/highcharts.src.js"];
  13724. });
  13725. })(Yp);
  13726. var E0 = Yp.exports;
  13727. const Qn = /* @__PURE__ */ Cn(E0);
  13728. var Xp = { exports: {} };
  13729. (function(r) {
  13730. (function(g) {
  13731. r.exports ? (g.default = g, r.exports = g) : g(typeof Highcharts < "u" ? Highcharts : void 0);
  13732. })(function(g) {
  13733. function E(h, y, R, I) {
  13734. h.hasOwnProperty(y) || (h[y] = I.apply(null, R));
  13735. }
  13736. g = g ? g._modules : {}, E(g, "Extensions/Pane.js", [
  13737. g["Core/Chart/Chart.js"],
  13738. g["Series/CenteredUtilities.js"],
  13739. g["Core/Globals.js"],
  13740. g["Core/Pointer.js"],
  13741. g["Core/Utilities.js"]
  13742. ], function(h, y, R, I, Z) {
  13743. function H(v, u, d) {
  13744. return Math.sqrt(Math.pow(v - d[0], 2) + Math.pow(u - d[1], 2)) <= d[2] / 2;
  13745. }
  13746. var $ = Z.addEvent, U = Z.extend, W = Z.merge, N = Z.pick, w = Z.splat;
  13747. return h.prototype.collectionsWithUpdate.push("pane"), Z = function() {
  13748. function v(u, d) {
  13749. 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: {
  13750. x1: 0,
  13751. y1: 0,
  13752. x2: 0,
  13753. y2: 1
  13754. }, stops: [[0, "#ffffff"], [1, "#e6e6e6"]] }, from: -Number.MAX_VALUE, innerRadius: 0, to: Number.MAX_VALUE, outerRadius: "105%" }, this.init(u, d);
  13755. }
  13756. return v.prototype.init = function(u, d) {
  13757. this.chart = d, this.background = [], d.pane.push(this), this.setOptions(u);
  13758. }, v.prototype.setOptions = function(u) {
  13759. this.options = W(this.defaultOptions, this.chart.angular ? { background: {} } : void 0, u);
  13760. }, v.prototype.render = function() {
  13761. var u = this.options, d = this.options.background, P = this.chart.renderer;
  13762. if (this.group || (this.group = P.g("pane-group").attr({ zIndex: u.zIndex || 0 }).add()), this.updateCenter(), d)
  13763. for (d = w(d), u = Math.max(d.length, this.background.length || 0), P = 0; P < u; P++)
  13764. d[P] && this.axis ? this.renderBackground(W(this.defaultBackgroundOptions, d[P]), P) : this.background[P] && (this.background[P] = this.background[P].destroy(), this.background.splice(P, 1));
  13765. }, v.prototype.renderBackground = function(u, d) {
  13766. var P = "animate", O = { class: "highcharts-pane " + (u.className || "") };
  13767. this.chart.styledMode || U(O, { fill: u.backgroundColor, stroke: u.borderColor, "stroke-width": u.borderWidth }), this.background[d] || (this.background[d] = this.chart.renderer.path().add(this.group), P = "attr"), this.background[d][P]({ d: this.axis.getPlotBandPath(u.from, u.to, u) }).attr(O);
  13768. }, v.prototype.updateCenter = function(u) {
  13769. this.center = (u || this.axis || {}).center = y.getCenter.call(this);
  13770. }, v.prototype.update = function(u, d) {
  13771. W(!0, this.options, u), this.setOptions(this.options), this.render(), this.chart.axes.forEach(function(P) {
  13772. P.pane === this && (P.pane = null, P.update({}, d));
  13773. }, this);
  13774. }, v;
  13775. }(), h.prototype.getHoverPane = function(v) {
  13776. var u = this, d;
  13777. return v && u.pane.forEach(function(P) {
  13778. var O = v.chartX - u.plotLeft, B = v.chartY - u.plotTop;
  13779. H(u.inverted ? B : O, u.inverted ? O : B, P.center) && (d = P);
  13780. }), d;
  13781. }, $(h, "afterIsInsidePlot", function(v) {
  13782. this.polar && (v.isInsidePlot = this.pane.some(function(u) {
  13783. return H(v.x, v.y, u.center);
  13784. }));
  13785. }), $(I, "beforeGetHoverData", function(v) {
  13786. var u = this.chart;
  13787. u.polar ? (u.hoverPane = u.getHoverPane(v), v.filter = function(d) {
  13788. return d.visible && !(!v.shared && d.directTouch) && N(d.options.enableMouseTracking, !0) && (!u.hoverPane || d.xAxis.pane === u.hoverPane);
  13789. }) : u.hoverPane = void 0;
  13790. }), $(
  13791. I,
  13792. "afterGetHoverData",
  13793. function(v) {
  13794. var u = this.chart;
  13795. v.hoverPoint && v.hoverPoint.plotX && v.hoverPoint.plotY && u.hoverPane && !H(v.hoverPoint.plotX, v.hoverPoint.plotY, u.hoverPane.center) && (v.hoverPoint = void 0);
  13796. }
  13797. ), R.Pane = Z, R.Pane;
  13798. }), E(g, "Core/Axis/RadialAxis.js", [g["Core/Axis/AxisDefaults.js"], g["Core/DefaultOptions.js"], g["Core/Globals.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  13799. var Z = y.defaultOptions, H = R.noop, $ = I.addEvent, U = I.correctFloat, W = I.defined, N = I.extend, w = I.fireEvent, v = I.merge, u = I.pick, d = I.relativeLength, P = I.wrap, O;
  13800. return function(B) {
  13801. function C() {
  13802. this.autoConnect = this.isCircular && typeof u(this.userMax, this.options.max) > "u" && U(this.endAngleRad - this.startAngleRad) === U(2 * Math.PI), !this.isCircular && this.chart.inverted && this.max++, this.autoConnect && (this.max += this.categories && 1 || this.pointRange || this.closestPointRange || 0);
  13803. }
  13804. function b() {
  13805. var V = this;
  13806. return function() {
  13807. if (V.isRadial && V.tickPositions && V.options.labels && V.options.labels.allowOverlap !== !0)
  13808. return V.tickPositions.map(function(q) {
  13809. return V.ticks[q] && V.ticks[q].label;
  13810. }).filter(function(q) {
  13811. return !!q;
  13812. });
  13813. };
  13814. }
  13815. function M() {
  13816. return H;
  13817. }
  13818. function x(V, q, it) {
  13819. var et = this.pane.center, nt = V.value;
  13820. if (this.isCircular) {
  13821. if (W(nt))
  13822. V.point && (rt = V.point.shapeArgs || {}, rt.start && (nt = this.chart.inverted ? this.translate(V.point.rectPlotY, !0) : V.point.x));
  13823. else {
  13824. var rt = V.chartX || 0, ct = V.chartY || 0;
  13825. nt = this.translate(Math.atan2(ct - it, rt - q) - this.startAngleRad, !0);
  13826. }
  13827. V = this.getPosition(nt), rt = V.x, ct = V.y;
  13828. } else
  13829. W(nt) || (rt = V.chartX, ct = V.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));
  13830. return [nt, rt || 0, ct || 0];
  13831. }
  13832. function a(V, q, it) {
  13833. V = this.pane.center;
  13834. var et = this.chart, nt = this.left || 0, rt = this.top || 0, ct = u(q, V[2] / 2 - this.offset);
  13835. 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 + V[0], rt + V[1], ct, ct, { start: this.startAngleRad, end: this.endAngleRad, open: !0, innerR: 0 }), q.xBounds = [nt + V[0]], q.yBounds = [rt + V[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;
  13836. }
  13837. function c() {
  13838. this.constructor.prototype.getOffset.call(this), this.chart.axisOffset[this.side] = 0;
  13839. }
  13840. function p(V, q, it) {
  13841. var et = this.chart, nt = function(yt) {
  13842. if (typeof yt == "string") {
  13843. var vt = parseInt(yt, 10);
  13844. return J.test(yt) && (vt = vt * gt / 100), vt;
  13845. }
  13846. return yt;
  13847. }, 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 = u(nt(it.outerRadius), gt), ht = nt(it.innerRadius);
  13848. if (nt = u(nt(it.thickness), 10), this.options.gridLineInterpolation === "polygon")
  13849. dt = this.getPlotLinePath({ value: V }).concat(this.getPlotLinePath({ value: q, reverse: !0 }));
  13850. else {
  13851. if (V = Math.max(V, this.min), q = Math.min(q, this.max), V = this.translate(V), q = this.translate(q), tt || (st = V || 0, ht = q || 0), it.shape !== "circle" && tt)
  13852. it = ct + (V || 0), ct += q || 0;
  13853. else {
  13854. it = -Math.PI / 2, ct = 1.5 * Math.PI;
  13855. var pt = !0;
  13856. }
  13857. 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: u(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);
  13858. }
  13859. return dt;
  13860. }
  13861. function i(V) {
  13862. var q = this, it = this.pane.center, et = this.chart, nt = et.inverted, rt = V.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 = V.isCrosshair;
  13863. ct = it[3] / 2;
  13864. var st = V.value, ht, pt = this.getPosition(st), yt = pt.x;
  13865. if (pt = pt.y, tt && (pt = this.getCrosshairPosition(V, lt, at), st = pt[0], yt = pt[1], pt = pt[2]), this.isCircular)
  13866. st = Math.sqrt(Math.pow(yt - lt, 2) + Math.pow(pt - at, 2)), rt = typeof gt == "string" ? d(gt, 1) : gt / st, et = typeof dt == "string" ? d(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)]];
  13867. else if ((st = this.translate(st)) && (0 > st || st > J) && (st = 0), this.options.gridLineInterpolation === "circle")
  13868. it = this.getLinePath(0, st, ct);
  13869. else if (it = [], et[nt ? "yAxis" : "xAxis"].forEach(function(vt) {
  13870. vt.pane === q.pane && (ht = vt);
  13871. }), ht)
  13872. 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++)
  13873. ct = ht.getPosition(lt[at], st), it.push(at ? ["L", ct.x, ct.y] : ["M", ct.x, ct.y]);
  13874. return it;
  13875. }
  13876. function l(V, q) {
  13877. return V = this.translate(V), this.postTranslate(this.isCircular ? V : this.angleRad, u(this.isCircular ? q : 0 > V ? 0 : V, this.center[2] / 2) - this.offset);
  13878. }
  13879. function s() {
  13880. var V = this.center, q = this.chart, it = this.options.title;
  13881. return { x: q.plotLeft + V[0] + (it.x || 0), y: q.plotTop + V[1] - { high: 0.5, middle: 0.25, low: 0 }[it.align] * V[2] + (it.y || 0) };
  13882. }
  13883. function t(V) {
  13884. V.beforeSetTickPositions = C, V.createLabelCollector = b, V.getCrosshairPosition = x, V.getLinePath = a, V.getOffset = c, V.getPlotBandPath = p, V.getPlotLinePath = i, V.getPosition = l, V.getTitlePosition = s, V.postTranslate = X, V.setAxisSize = m, V.setAxisTranslation = L, V.setOptions = Y;
  13885. }
  13886. function n() {
  13887. var V = this.chart, q = this.options, it = this.pane, et = it && it.options;
  13888. V.angular && this.isXAxis || !it || !V.angular && !V.polar || (this.angleRad = (q.angle || 0) * Math.PI / 180, this.startAngleRad = (et.startAngle - 90) * Math.PI / 180, this.endAngleRad = (u(et.endAngle, et.startAngle + 360) - 90) * Math.PI / 180, this.offset = q.offset || 0);
  13889. }
  13890. function o(V) {
  13891. this.isRadial && (V.align = void 0, V.preventDefault());
  13892. }
  13893. function A() {
  13894. if (this.chart && this.chart.labelCollectors) {
  13895. var V = this.labelCollector ? this.chart.labelCollectors.indexOf(this.labelCollector) : -1;
  13896. 0 <= V && this.chart.labelCollectors.splice(V, 1);
  13897. }
  13898. }
  13899. function _(V) {
  13900. 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;
  13901. V = V.userOptions.pane || 0, V = this.pane = q.pane && q.pane[V];
  13902. var lt;
  13903. ct === "colorAxis" ? this.isRadial = !1 : (et ? (gt ? (this.isHidden = !0, this.createLabelCollector = M, this.getOffset = H, this.render = this.redraw = f, this.setTitle = this.setCategories = this.setScale = H) : 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, V && lt && (V.axis = this), this.isCircular = lt);
  13904. }
  13905. function D() {
  13906. this.isRadial && this.beforeSetTickPositions();
  13907. }
  13908. function j(V) {
  13909. var q = this.label;
  13910. if (q) {
  13911. 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;
  13912. if (it.isRadial) {
  13913. var yt = it.getPosition(this.pos, it.center[2] / 2 + d(u(nt.distance, -25), it.center[2] / 2, -it.center[2] / 2));
  13914. 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(
  13915. pt,
  13916. ht + gt
  13917. )), V.pos.x = yt.x + (nt.x || 0), V.pos.y = yt.y + (dt || 0);
  13918. }
  13919. }
  13920. }
  13921. function T(V) {
  13922. this.axis.getPosition && N(V.pos, this.axis.getPosition(this.pos));
  13923. }
  13924. function X(V, q) {
  13925. var it = this.chart, et = this.center;
  13926. return V = this.startAngleRad + V, { x: it.plotLeft + et[0] + Math.cos(V) * q, y: it.plotTop + et[1] + Math.sin(V) * q };
  13927. }
  13928. function f() {
  13929. this.isDirty = !1;
  13930. }
  13931. function m() {
  13932. if (this.constructor.prototype.setAxisSize.call(this), this.isRadial) {
  13933. this.pane.updateCenter(this);
  13934. var V = this.center = this.pane.center.slice();
  13935. if (this.isCircular)
  13936. this.sector = this.endAngleRad - this.startAngleRad;
  13937. else {
  13938. var q = this.postTranslate(this.angleRad, V[3] / 2);
  13939. V[0] = q.x - this.chart.plotLeft, V[1] = q.y - this.chart.plotTop;
  13940. }
  13941. this.len = this.width = this.height = (V[2] - V[3]) * u(this.sector, 1) / 2;
  13942. }
  13943. }
  13944. function L() {
  13945. 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);
  13946. }
  13947. function Y(V) {
  13948. V = this.options = v(this.constructor.defaultOptions, this.defaultPolarOptions, Z[this.coll], V), V.plotBands || (V.plotBands = []), w(this, "afterSetOptions");
  13949. }
  13950. function F(V, q, it, et, nt, rt, ct) {
  13951. var gt = this.axis;
  13952. return gt.isRadial ? (V = gt.getPosition(this.pos, gt.center[2] / 2 + et), q = ["M", q, it, "L", V.x, V.y]) : q = V.call(this, q, it, et, nt, rt, ct), q;
  13953. }
  13954. 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 = {
  13955. labels: { align: "center", x: 0, y: void 0 },
  13956. minorGridLineWidth: 0,
  13957. minorTickInterval: "auto",
  13958. minorTickLength: 10,
  13959. minorTickPosition: "inside",
  13960. minorTickWidth: 1,
  13961. tickLength: 10,
  13962. tickPosition: "inside",
  13963. tickWidth: 2,
  13964. title: { rotation: 0 },
  13965. zIndex: 2
  13966. }, z = { gridLineInterpolation: "circle", gridLineWidth: 1, labels: { align: "right", x: -3, y: -2 }, showLastLabel: !1, title: { x: 4, text: null, rotation: 90 } };
  13967. B.compose = function(V, q) {
  13968. return Q.indexOf(V) === -1 && (Q.push(V), $(V, "afterInit", n), $(V, "autoLabelAlign", o), $(V, "destroy", A), $(V, "init", _), $(V, "initialAxisTranslation", D)), Q.indexOf(q) === -1 && (Q.push(q), $(
  13969. q,
  13970. "afterGetLabelPosition",
  13971. j
  13972. ), $(q, "afterGetPosition", T), P(q.prototype, "getMarkPath", F)), V;
  13973. };
  13974. }(O || (O = {})), O;
  13975. }), E(g, "Series/AreaRange/AreaRangePoint.js", [g["Series/Area/AreaSeries.js"], g["Core/Series/Point.js"], g["Core/Utilities.js"]], function(h, y, R) {
  13976. var I = this && this.__extends || function() {
  13977. var U = function(W, N) {
  13978. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  13979. w.__proto__ = v;
  13980. } || function(w, v) {
  13981. for (var u in v)
  13982. v.hasOwnProperty(u) && (w[u] = v[u]);
  13983. }, U(W, N);
  13984. };
  13985. return function(W, N) {
  13986. function w() {
  13987. this.constructor = W;
  13988. }
  13989. U(W, N), W.prototype = N === null ? Object.create(N) : (w.prototype = N.prototype, new w());
  13990. };
  13991. }(), Z = y.prototype, H = R.defined, $ = R.isNumber;
  13992. return function(U) {
  13993. function W() {
  13994. var N = U !== null && U.apply(this, arguments) || this;
  13995. return N.high = void 0, N.low = void 0, N.options = void 0, N.plotHigh = void 0, N.plotLow = void 0, N.plotHighX = void 0, N.plotLowX = void 0, N.plotX = void 0, N.series = void 0, N;
  13996. }
  13997. return I(W, U), W.prototype.setState = function() {
  13998. var N = this.state, w = this.series, v = w.chart.polar;
  13999. H(this.plotHigh) || (this.plotHigh = w.yAxis.toPixels(
  14000. this.high,
  14001. !0
  14002. )), H(this.plotLow) || (this.plotLow = this.plotY = w.yAxis.toPixels(this.low, !0)), w.stateMarkerGraphic && (w.lowerStateMarkerGraphic = w.stateMarkerGraphic, w.stateMarkerGraphic = w.upperStateMarkerGraphic), this.graphic = this.upperGraphic, this.plotY = this.plotHigh, v && (this.plotX = this.plotHighX), Z.setState.apply(this, arguments), this.state = N, this.plotY = this.plotLow, this.graphic = this.lowerGraphic, v && (this.plotX = this.plotLowX), w.stateMarkerGraphic && (w.upperStateMarkerGraphic = w.stateMarkerGraphic, w.stateMarkerGraphic = w.lowerStateMarkerGraphic, w.lowerStateMarkerGraphic = void 0), Z.setState.apply(this, arguments);
  14003. }, W.prototype.haloPath = function() {
  14004. var N = this.series.chart.polar, w = [];
  14005. return this.plotY = this.plotLow, N && (this.plotX = this.plotLowX), this.isInside && (w = Z.haloPath.apply(this, arguments)), this.plotY = this.plotHigh, N && (this.plotX = this.plotHighX), this.isTopInside && (w = w.concat(Z.haloPath.apply(this, arguments))), w;
  14006. }, W.prototype.isValid = function() {
  14007. return $(this.low) && $(this.high);
  14008. }, W;
  14009. }(h.prototype.pointClass);
  14010. }), E(
  14011. g,
  14012. "Series/AreaRange/AreaRangeSeries.js",
  14013. [g["Series/AreaRange/AreaRangePoint.js"], g["Series/Area/AreaSeries.js"], g["Series/Column/ColumnSeries.js"], g["Core/Globals.js"], g["Core/Series/Series.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]],
  14014. function(h, y, R, I, Z, H, $) {
  14015. var U = this && this.__extends || function() {
  14016. var B = function(C, b) {
  14017. return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, x) {
  14018. M.__proto__ = x;
  14019. } || function(M, x) {
  14020. for (var a in x)
  14021. x.hasOwnProperty(a) && (M[a] = x[a]);
  14022. }, B(C, b);
  14023. };
  14024. return function(C, b) {
  14025. function M() {
  14026. this.constructor = C;
  14027. }
  14028. B(C, b), C.prototype = b === null ? Object.create(b) : (M.prototype = b.prototype, new M());
  14029. };
  14030. }(), W = y.prototype, N = R.prototype;
  14031. R = I.noop;
  14032. var w = Z.prototype, v = $.defined, u = $.extend, d = $.isArray, P = $.pick, O = $.merge;
  14033. return Z = function(B) {
  14034. function C() {
  14035. var b = B !== null && B.apply(this, arguments) || this;
  14036. return b.data = void 0, b.options = void 0, b.points = void 0, b.lowerStateMarkerGraphic = void 0, b.xAxis = void 0, b;
  14037. }
  14038. return U(C, B), C.prototype.toYData = function(b) {
  14039. return [b.low, b.high];
  14040. }, C.prototype.highToXY = function(b) {
  14041. var M = this.chart, x = this.xAxis.postTranslate(b.rectPlotX || 0, this.yAxis.len - b.plotHigh);
  14042. b.plotHighX = x.x - M.plotLeft, b.plotHigh = x.y - M.plotTop, b.plotLowX = b.plotX;
  14043. }, C.prototype.translate = function() {
  14044. var b = this, M = b.yAxis;
  14045. W.translate.apply(b), b.points.forEach(function(x) {
  14046. var a = x.high, c = x.plotY;
  14047. x.isNull ? x.plotY = null : (x.plotLow = c, x.plotHigh = M.translate(b.dataModify ? b.dataModify.modifyValue(a) : a, 0, 1, 0, 1), b.dataModify && (x.yBottom = x.plotHigh));
  14048. }), this.chart.polar && this.points.forEach(function(x) {
  14049. b.highToXY(x), x.tooltipPos = [(x.plotHighX + x.plotLowX) / 2, (x.plotHigh + x.plotLow) / 2];
  14050. });
  14051. }, C.prototype.getGraphPath = function(b) {
  14052. var M = [], x = [], a, c = W.getGraphPath, p = this.options, i = this.chart.polar, l = i && p.connectEnds !== !1, s = p.connectNulls, t = p.step;
  14053. for (b = b || this.points, a = b.length; a--; ) {
  14054. var n = b[a], o = i ? { plotX: n.rectPlotX, plotY: n.yBottom, doCurve: !1 } : { plotX: n.plotX, plotY: n.plotY, doCurve: !1 };
  14055. n.isNull || l || s || b[a + 1] && !b[a + 1].isNull || x.push(o);
  14056. var A = { polarPlotY: n.polarPlotY, rectPlotX: n.rectPlotX, yBottom: n.yBottom, plotX: P(
  14057. n.plotHighX,
  14058. n.plotX
  14059. ), plotY: n.plotHigh, isNull: n.isNull };
  14060. x.push(A), M.push(A), n.isNull || l || s || b[a - 1] && !b[a - 1].isNull || x.push(o);
  14061. }
  14062. return b = c.call(this, b), t && (t === !0 && (t = "left"), p.step = { left: "right", center: "center", right: "left" }[t]), M = c.call(this, M), x = c.call(this, x), p.step = t, p = [].concat(b, M), !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;
  14063. }, C.prototype.drawDataLabels = function() {
  14064. var b = this.points, M = b.length, x, a = [], c = this.options.dataLabels, p, i = this.chart.inverted;
  14065. if (c) {
  14066. if (d(c))
  14067. var l = c[0] || { enabled: !1 }, s = c[1] || { enabled: !1 };
  14068. else
  14069. l = u({}, c), l.x = c.xHigh, l.y = c.yHigh, s = u({}, c), s.x = c.xLow, s.y = c.yLow;
  14070. if (l.enabled || this._hasPointLabels) {
  14071. for (x = M; x--; )
  14072. if (p = b[x]) {
  14073. var t = l.inside ? p.plotHigh < p.plotLow : p.plotHigh > p.plotLow;
  14074. 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");
  14075. }
  14076. for (this.options.dataLabels = l, w.drawDataLabels && w.drawDataLabels.apply(this, arguments), x = M; x--; )
  14077. (p = b[x]) && (p.dataLabelUpper = p.dataLabel, p.dataLabel = a[x], delete p.dataLabels, p.y = p.low, p.plotY = p._plotY);
  14078. }
  14079. if (s.enabled || this._hasPointLabels) {
  14080. for (x = M; x--; )
  14081. (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"));
  14082. this.options.dataLabels = s, w.drawDataLabels && w.drawDataLabels.apply(this, arguments);
  14083. }
  14084. if (l.enabled)
  14085. for (x = M; x--; )
  14086. (p = b[x]) && (p.dataLabels = [p.dataLabelUpper, p.dataLabel].filter(function(n) {
  14087. return !!n;
  14088. }));
  14089. this.options.dataLabels = c;
  14090. }
  14091. }, C.prototype.alignDataLabel = function() {
  14092. N.alignDataLabel.apply(this, arguments);
  14093. }, C.prototype.drawPoints = function() {
  14094. var b = this.points.length, M;
  14095. for (w.drawPoints.apply(this, arguments), M = 0; M < b; ) {
  14096. var x = this.points[M];
  14097. 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), M++;
  14098. }
  14099. for (w.drawPoints.apply(this, arguments), M = 0; M < b; )
  14100. x = this.points[M], x.upperGraphic = x.graphic, x.graphic = x.lowerGraphic, x.origProps && (u(x, x.origProps), delete x.origProps), M++;
  14101. }, C.defaultOptions = O(y.defaultOptions, {
  14102. lineWidth: 1,
  14103. threshold: null,
  14104. tooltip: { pointFormat: '<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14105. trackByArea: !0,
  14106. dataLabels: { align: void 0, verticalAlign: void 0, xLow: 0, xHigh: 0, yLow: 0, yHigh: 0 }
  14107. }), C;
  14108. }(y), u(Z.prototype, { pointArrayMap: ["low", "high"], pointValKey: "low", deferTranslatePolar: !0, pointClass: h, setStackedPoints: R }), H.registerSeriesType("arearange", Z), Z;
  14109. }
  14110. ), E(g, "Series/AreaSplineRange/AreaSplineRangeSeries.js", [
  14111. g["Series/AreaRange/AreaRangeSeries.js"],
  14112. g["Core/Series/SeriesRegistry.js"],
  14113. g["Core/Utilities.js"]
  14114. ], function(h, y, R) {
  14115. var I = this && this.__extends || function() {
  14116. var U = function(W, N) {
  14117. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  14118. w.__proto__ = v;
  14119. } || function(w, v) {
  14120. for (var u in v)
  14121. v.hasOwnProperty(u) && (w[u] = v[u]);
  14122. }, U(W, N);
  14123. };
  14124. return function(W, N) {
  14125. function w() {
  14126. this.constructor = W;
  14127. }
  14128. U(W, N), W.prototype = N === null ? Object.create(N) : (w.prototype = N.prototype, new w());
  14129. };
  14130. }(), Z = y.seriesTypes.spline, H = R.merge;
  14131. R = R.extend;
  14132. var $ = function(U) {
  14133. function W() {
  14134. var N = U !== null && U.apply(this, arguments) || this;
  14135. return N.options = void 0, N.data = void 0, N.points = void 0, N;
  14136. }
  14137. return I(W, U), W.defaultOptions = H(h.defaultOptions), W;
  14138. }(h);
  14139. return R($.prototype, { getPointSpline: Z.prototype.getPointSpline }), y.registerSeriesType("areasplinerange", $), $;
  14140. }), E(g, "Series/BoxPlot/BoxPlotSeries.js", [g["Series/Column/ColumnSeries.js"], g["Core/Globals.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  14141. var Z = this && this.__extends || function() {
  14142. var W = function(N, w) {
  14143. return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, u) {
  14144. v.__proto__ = u;
  14145. } || function(v, u) {
  14146. for (var d in u)
  14147. u.hasOwnProperty(d) && (v[d] = u[d]);
  14148. }, W(N, w);
  14149. };
  14150. return function(N, w) {
  14151. function v() {
  14152. this.constructor = N;
  14153. }
  14154. W(N, w), N.prototype = w === null ? Object.create(w) : (v.prototype = w.prototype, new v());
  14155. };
  14156. }();
  14157. y = y.noop;
  14158. var H = I.extend, $ = I.merge, U = I.pick;
  14159. return I = function(W) {
  14160. function N() {
  14161. var w = W !== null && W.apply(this, arguments) || this;
  14162. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  14163. }
  14164. return Z(N, W), N.prototype.pointAttribs = function() {
  14165. return {};
  14166. }, N.prototype.translate = function() {
  14167. var w = this.yAxis, v = this.pointArrayMap;
  14168. W.prototype.translate.apply(this), this.points.forEach(function(u) {
  14169. v.forEach(function(d) {
  14170. u[d] !== null && (u[d + "Plot"] = w.translate(u[d], 0, 1, 0, 1));
  14171. }), u.plotHigh = u.highPlot;
  14172. });
  14173. }, N.prototype.drawPoints = function() {
  14174. var w = this, v = w.options, u = w.chart, d = u.renderer, P, O, B, C, b, M, x = 0, a, c, p, i, l = w.doQuartiles !== !1, s, t = w.options.whiskerLength;
  14175. w.points.forEach(function(n) {
  14176. var o = n.graphic, A = o ? "animate" : "attr", _ = n.shapeArgs, D = {}, j = {}, T = {}, X = {}, f = n.color || w.color;
  14177. typeof n.plotY < "u" && (a = Math.round(_.width), c = Math.floor(_.x), p = c + a, i = Math.round(a / 2), P = Math.floor(l ? n.q1Plot : n.lowPlot), O = Math.floor(l ? n.q3Plot : n.lowPlot), B = Math.floor(n.highPlot), C = Math.floor(n.lowPlot), o || (n.graphic = o = d.g("point").add(w.group), n.stem = d.path().addClass("highcharts-boxplot-stem").add(o), t && (n.whiskers = d.path().addClass("highcharts-boxplot-whisker").add(o)), l && (n.box = d.path(void 0).addClass("highcharts-boxplot-box").add(o)), n.medianShape = d.path(void 0).addClass("highcharts-boxplot-median").add(o)), u.styledMode || (j.stroke = n.stemColor || v.stemColor || f, j["stroke-width"] = U(n.stemWidth, v.stemWidth, v.lineWidth), j.dashstyle = n.stemDashStyle || v.stemDashStyle || v.dashStyle, n.stem.attr(j), t && (T.stroke = n.whiskerColor || v.whiskerColor || f, T["stroke-width"] = U(n.whiskerWidth, v.whiskerWidth, v.lineWidth), T.dashstyle = n.whiskerDashStyle || v.whiskerDashStyle || v.dashStyle, n.whiskers.attr(T)), l && (D.fill = n.fillColor || v.fillColor || f, D.stroke = v.lineColor || f, D["stroke-width"] = v.lineWidth || 0, D.dashstyle = n.boxDashStyle || v.boxDashStyle || v.dashStyle, n.box.attr(D)), X.stroke = n.medianColor || v.medianColor || f, X["stroke-width"] = U(n.medianWidth, v.medianWidth, v.lineWidth), X.dashstyle = n.medianDashStyle || v.medianDashStyle || v.dashStyle, n.medianShape.attr(X)), M = n.stem.strokeWidth() % 2 / 2, x = c + i + M, o = [["M", x, O], ["L", x, B], ["M", x, P], ["L", x, C]], n.stem[A]({ d: o }), l && (M = n.box.strokeWidth() % 2 / 2, P = Math.floor(P) + M, O = Math.floor(O) + M, c += M, p += M, o = [["M", c, O], ["L", c, P], ["L", p, P], ["L", p, O], ["L", c, O], ["Z"]], n.box[A]({ d: o })), t && (M = n.whiskers.strokeWidth() % 2 / 2, B += M, C += M, s = /%$/.test(t) ? i * parseFloat(t) / 100 : t / 2, o = [["M", x - s, B], ["L", x + s, B], ["M", x - s, C], ["L", x + s, C]], n.whiskers[A]({ d: o })), b = Math.round(n.medianPlot), M = n.medianShape.strokeWidth() % 2 / 2, b += M, o = [["M", c, b], ["L", p, b]], n.medianShape[A]({ d: o }));
  14178. });
  14179. }, N.prototype.toYData = function(w) {
  14180. return [w.low, w.q1, w.median, w.q3, w.high];
  14181. }, N.defaultOptions = $(h.defaultOptions, {
  14182. threshold: null,
  14183. 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/>' },
  14184. whiskerLength: "50%",
  14185. fillColor: "#ffffff",
  14186. lineWidth: 1,
  14187. medianWidth: 2,
  14188. whiskerWidth: 2
  14189. }), N;
  14190. }(h), H(I.prototype, { pointArrayMap: ["low", "q1", "median", "q3", "high"], pointValKey: "high", drawDataLabels: y, setStackedPoints: y }), R.registerSeriesType("boxplot", I), I;
  14191. }), E(g, "Series/Bubble/BubbleLegendDefaults.js", [], function() {
  14192. 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: {
  14193. className: void 0,
  14194. allowOverlap: !1,
  14195. format: "",
  14196. formatter: void 0,
  14197. align: "right",
  14198. style: { fontSize: "10px", color: "#000000" },
  14199. x: 0,
  14200. y: 0
  14201. }, 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 };
  14202. }), E(g, "Series/Bubble/BubbleLegendItem.js", [g["Core/Color/Color.js"], g["Core/FormatUtilities.js"], g["Core/Globals.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  14203. var Z = h.parse, H = R.noop, $ = I.arrayMax, U = I.arrayMin, W = I.isNumber, N = I.merge, w = I.pick, v = I.stableSort;
  14204. return function() {
  14205. function u(d, P) {
  14206. 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 = H, this.init(d, P);
  14207. }
  14208. return u.prototype.init = function(d, P) {
  14209. this.options = d, this.visible = !0, this.chart = P.chart, this.legend = P;
  14210. }, u.prototype.addToLegend = function(d) {
  14211. d.splice(
  14212. this.options.legendIndex,
  14213. 0,
  14214. this
  14215. );
  14216. }, u.prototype.drawLegendSymbol = function(d) {
  14217. var P = this.chart, O = this.options, B = w(d.options.itemDistance, 20), C = O.ranges, b = O.connectorDistance;
  14218. this.fontMetrics = P.renderer.fontMetrics(O.labels.style.fontSize), C && C.length && W(C[0].value) ? (v(C, function(M, x) {
  14219. return x.value - M.value;
  14220. }), this.ranges = C, this.setOptions(), this.render(), d = this.getMaxLabelSize(), C = this.ranges[0].radius, P = 2 * C, b = b - C + d.width, b = 0 < b ? b : 0, this.maxLabel = d, this.movementX = O.labels.align === "left" ? b : 0, this.legendItemWidth = P + b + B, this.legendItemHeight = P + this.fontMetrics.h / 2) : d.options.bubbleLegend.autoRanges = !0;
  14221. }, u.prototype.setOptions = function() {
  14222. var d = this.ranges, P = this.options, O = this.chart.series[P.seriesIndex], B = this.legend.baseline, C = { zIndex: P.zIndex, "stroke-width": P.borderWidth }, b = { zIndex: P.zIndex, "stroke-width": P.connectorWidth }, M = { align: this.legend.options.rtl || P.labels.align === "left" ? "right" : "left", zIndex: P.zIndex }, x = O.options.marker.fillOpacity, a = this.chart.styledMode;
  14223. d.forEach(function(c, p) {
  14224. a || (C.stroke = w(c.borderColor, P.borderColor, O.color), C.fill = w(c.color, P.color, x !== 1 ? Z(O.color).setOpacity(x).get("rgba") : O.color), b.stroke = w(c.connectorColor, P.connectorColor, O.color)), d[p].radius = this.getRangeRadius(c.value), d[p] = N(d[p], { center: d[0].radius - d[p].radius + B }), a || N(!0, d[p], { bubbleAttribs: N(C), connectorAttribs: N(b), labelAttribs: M });
  14225. }, this);
  14226. }, u.prototype.getRangeRadius = function(d) {
  14227. var P = this.options;
  14228. return this.chart.series[this.options.seriesIndex].getRadius.call(
  14229. this,
  14230. P.ranges[P.ranges.length - 1].value,
  14231. P.ranges[0].value,
  14232. P.minSize,
  14233. P.maxSize,
  14234. d
  14235. );
  14236. }, u.prototype.render = function() {
  14237. var d = this.chart.renderer, P = this.options.zThreshold;
  14238. this.symbols || (this.symbols = { connectors: [], bubbleItems: [], labels: [] }), this.legendSymbol = d.g("bubble-legend"), this.legendItem = d.g("bubble-legend-item"), this.legendSymbol.translateX = 0, this.legendSymbol.translateY = 0, this.ranges.forEach(function(O) {
  14239. O.value >= P && this.renderRange(O);
  14240. }, this), this.legendSymbol.add(this.legendItem), this.legendItem.add(this.legendGroup), this.hideOverlappingLabels();
  14241. }, u.prototype.renderRange = function(d) {
  14242. var P = this.options, O = P.labels, B = this.chart, C = B.series[P.seriesIndex], b = B.renderer, M = this.symbols;
  14243. B = M.labels;
  14244. var x = d.center, a = Math.abs(d.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;
  14245. t = t.f / 2 - (t.h - t.f) / 2;
  14246. var n = b.styledMode;
  14247. c = this.legend.options.rtl || p === "left" ? -c : c, p === "center" && (c = 0, P.connectorDistance = 0, d.labelAttribs.align = "center"), p = s + P.labels.y;
  14248. var o = l + c + P.labels.x;
  14249. M.bubbleItems.push(b.circle(
  14250. l,
  14251. x + ((s % 1 ? 1 : 0.5) - (i % 2 ? 0 : 0.5)),
  14252. a
  14253. ).attr(n ? {} : d.bubbleAttribs).addClass((n ? "highcharts-color-" + C.colorIndex + " " : "") + "highcharts-bubble-legend-symbol " + (P.className || "")).add(this.legendSymbol)), M.connectors.push(b.path(b.crispLine([["M", l, s], ["L", l + c, s]], P.connectorWidth)).attr(n ? {} : d.connectorAttribs).addClass((n ? "highcharts-color-" + this.options.seriesIndex + " " : "") + "highcharts-bubble-legend-connectors " + (P.connectorClassName || "")).add(this.legendSymbol)), d = b.text(this.formatLabel(d), o, p + t).attr(n ? {} : d.labelAttribs).css(n ? {} : O.style).addClass("highcharts-bubble-legend-labels " + (P.labels.className || "")).add(this.legendSymbol), B.push(d), d.placed = !0, d.alignAttr = { x: o, y: p + t };
  14254. }, u.prototype.getMaxLabelSize = function() {
  14255. var d, P;
  14256. return this.symbols.labels.forEach(function(O) {
  14257. P = O.getBBox(!0), d = d ? P.width > d.width ? P : d : P;
  14258. }), d || {};
  14259. }, u.prototype.formatLabel = function(d) {
  14260. var P = this.options, O = P.labels.formatter;
  14261. P = P.labels.format;
  14262. var B = this.chart.numberFormatter;
  14263. return P ? y.format(P, d) : O ? O.call(d) : B(d.value, 1);
  14264. }, u.prototype.hideOverlappingLabels = function() {
  14265. var d = this.chart, P = this.symbols;
  14266. !this.options.labels.allowOverlap && P && (d.hideOverlappingLabels(P.labels), P.labels.forEach(function(O, B) {
  14267. O.newOpacity ? O.newOpacity !== O.oldOpacity && P.connectors[B].show() : P.connectors[B].hide();
  14268. }));
  14269. }, u.prototype.getRanges = function() {
  14270. var d = this.legend.bubbleLegend, P = d.options.ranges, O, B = Number.MAX_VALUE, C = -Number.MAX_VALUE;
  14271. d.chart.series.forEach(function(M) {
  14272. M.isBubble && !M.ignoreSeries && (O = M.zData.filter(W), O.length && (B = w(M.options.zMin, Math.min(B, Math.max(
  14273. U(O),
  14274. M.options.displayNegative === !1 ? M.options.zThreshold : -Number.MAX_VALUE
  14275. ))), C = w(M.options.zMax, Math.max(C, $(O)))));
  14276. });
  14277. var b = B === C ? [{ value: C }] : [{ value: B }, { value: (B + C) / 2 }, { value: C, autoRanges: !0 }];
  14278. return P.length && P[0].radius && b.reverse(), b.forEach(function(M, x) {
  14279. P && P[x] && (b[x] = N(P[x], M));
  14280. }), b;
  14281. }, u.prototype.predictBubbleSizes = function() {
  14282. var d = this.chart, P = this.fontMetrics, O = d.legend.options, B = O.floating, C = (O = O.layout === "horizontal") ? d.legend.lastLineHeight : 0, b = d.plotSizeX, M = d.plotSizeY, x = d.series[this.options.seriesIndex], a = x.getPxExtremes();
  14283. d = Math.ceil(a.minPxSize), a = Math.ceil(a.maxPxSize);
  14284. var c = Math.min(M, b);
  14285. return x = x.options.maxSize, B || !/%$/.test(x) ? P = a : (x = parseFloat(x), P = (c + C - P.h / 2) * x / 100 / (x / 100 + 1), (O && M - P >= b || !O && b - P >= M) && (P = a)), [d, Math.ceil(P)];
  14286. }, u.prototype.updateRanges = function(d, P) {
  14287. var O = this.legend.options.bubbleLegend;
  14288. O.minSize = d, O.maxSize = P, O.ranges = this.getRanges();
  14289. }, u.prototype.correctSizes = function() {
  14290. var d = this.legend, P = this.chart.series[this.options.seriesIndex].getPxExtremes();
  14291. 1 < Math.abs(Math.ceil(P.maxPxSize) - this.options.maxSize) && (this.updateRanges(this.options.minSize, P.maxPxSize), d.render());
  14292. }, u;
  14293. }();
  14294. }), E(g, "Series/Bubble/BubbleLegendComposition.js", [g["Series/Bubble/BubbleLegendDefaults.js"], g["Series/Bubble/BubbleLegendItem.js"], g["Core/DefaultOptions.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  14295. var Z = R.setOptions, H = I.addEvent, $ = I.objectEach, U = I.wrap, W;
  14296. return function(N) {
  14297. function w(C, b, M) {
  14298. var x = this.legend, a = 0 <= v(this);
  14299. if (x && x.options.enabled && x.bubbleLegend && x.options.bubbleLegend.autoRanges && a) {
  14300. var c = x.bubbleLegend.options;
  14301. a = x.bubbleLegend.predictBubbleSizes(), x.bubbleLegend.updateRanges(a[0], a[1]), c.placed || (x.group.placed = !1, x.allItems.forEach(function(p) {
  14302. p.legendGroup.translateY = null;
  14303. })), x.render(), this.getMargins(), this.axes.forEach(function(p) {
  14304. p.visible && p.render(), c.placed || (p.setScale(), p.updateNames(), $(p.ticks, function(i) {
  14305. i.isNew = !0, i.isNewLabel = !0;
  14306. }));
  14307. }), c.placed = !0, this.getMargins(), C.call(this, b, M), x.bubbleLegend.correctSizes(), O(x, u(x));
  14308. } else
  14309. C.call(this, b, M), x && x.options.enabled && x.bubbleLegend && (x.render(), O(x, u(x)));
  14310. }
  14311. function v(C) {
  14312. C = C.series;
  14313. for (var b = 0; b < C.length; ) {
  14314. if (C[b] && C[b].isBubble && C[b].visible && C[b].zData.length)
  14315. return b;
  14316. b++;
  14317. }
  14318. return -1;
  14319. }
  14320. function u(C) {
  14321. C = C.allItems;
  14322. var b = [], M = C.length, x, a = 0;
  14323. for (x = 0; x < M; x++)
  14324. if (C[x].legendItemHeight && (C[x].itemHeight = C[x].legendItemHeight), C[x] === C[M - 1] || C[x + 1] && C[x]._legendItemPos[1] !== C[x + 1]._legendItemPos[1]) {
  14325. b.push({ height: 0 });
  14326. var c = b[b.length - 1];
  14327. for (a; a <= x; a++)
  14328. C[a].itemHeight > c.height && (c.height = C[a].itemHeight);
  14329. c.step = x;
  14330. }
  14331. return b;
  14332. }
  14333. function d(C) {
  14334. var b = this.bubbleLegend, M = this.options, x = M.bubbleLegend, a = v(this.chart);
  14335. b && b.ranges && b.ranges.length && (x.ranges.length && (x.autoRanges = !!x.ranges[0].autoRanges), this.destroyItem(b)), 0 <= a && M.enabled && x.enabled && (x.seriesIndex = a, this.bubbleLegend = new y(x, this), this.bubbleLegend.addToLegend(C.allItems));
  14336. }
  14337. function P() {
  14338. var C = this.chart, b = this.visible, M = this.chart.legend;
  14339. M && M.bubbleLegend && (this.visible = !b, this.ignoreSeries = b, C = 0 <= v(C), M.bubbleLegend.visible !== C && (M.update({ bubbleLegend: { enabled: C } }), M.bubbleLegend.visible = C), this.visible = b);
  14340. }
  14341. function O(C, b) {
  14342. var M = C.options.rtl, x, a, c, p = 0;
  14343. C.allItems.forEach(function(i, l) {
  14344. x = i.legendGroup.translateX, a = i._legendItemPos[1], ((c = i.movementX) || M && i.ranges) && (c = M ? 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;
  14345. });
  14346. }
  14347. var B = [];
  14348. N.compose = function(C, b, M) {
  14349. B.indexOf(C) === -1 && (B.push(C), Z({ legend: { bubbleLegend: h } }), U(C.prototype, "drawChartBox", w)), B.indexOf(b) === -1 && (B.push(b), H(b, "afterGetAllItems", d)), B.indexOf(M) === -1 && (B.push(M), H(M, "legendItemClick", P));
  14350. };
  14351. }(W || (W = {})), W;
  14352. }), E(g, "Series/Bubble/BubblePoint.js", [g["Core/Series/Point.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y, R) {
  14353. var I = this && this.__extends || function() {
  14354. var Z = function(H, $) {
  14355. return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(U, W) {
  14356. U.__proto__ = W;
  14357. } || function(U, W) {
  14358. for (var N in W)
  14359. W.hasOwnProperty(N) && (U[N] = W[N]);
  14360. }, Z(H, $);
  14361. };
  14362. return function(H, $) {
  14363. function U() {
  14364. this.constructor = H;
  14365. }
  14366. Z(H, $), H.prototype = $ === null ? Object.create($) : (U.prototype = $.prototype, new U());
  14367. };
  14368. }();
  14369. return R = R.extend, y = function(Z) {
  14370. function H() {
  14371. var $ = Z !== null && Z.apply(this, arguments) || this;
  14372. return $.options = void 0, $.series = void 0, $;
  14373. }
  14374. return I(H, Z), H.prototype.haloPath = function($) {
  14375. return h.prototype.haloPath.call(this, $ === 0 ? 0 : (this.marker && this.marker.radius || 0) + $);
  14376. }, H;
  14377. }(y.seriesTypes.scatter.prototype.pointClass), R(y.prototype, { ttBelow: !1 }), y;
  14378. }), E(g, "Series/Bubble/BubbleSeries.js", [
  14379. g["Core/Axis/Axis.js"],
  14380. g["Series/Bubble/BubbleLegendComposition.js"],
  14381. g["Series/Bubble/BubblePoint.js"],
  14382. g["Core/Color/Color.js"],
  14383. g["Core/Globals.js"],
  14384. g["Core/Series/Series.js"],
  14385. g["Core/Series/SeriesRegistry.js"],
  14386. g["Core/Utilities.js"]
  14387. ], function(h, y, R, I, Z, H, $, U) {
  14388. var W = this && this.__extends || function() {
  14389. var M = function(x, a) {
  14390. return M = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
  14391. c.__proto__ = p;
  14392. } || function(c, p) {
  14393. for (var i in p)
  14394. p.hasOwnProperty(i) && (c[i] = p[i]);
  14395. }, M(x, a);
  14396. };
  14397. return function(x, a) {
  14398. function c() {
  14399. this.constructor = x;
  14400. }
  14401. M(x, a), x.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c());
  14402. };
  14403. }(), N = I.parse;
  14404. I = Z.noop;
  14405. var w = $.seriesTypes;
  14406. Z = w.column;
  14407. var v = w.scatter;
  14408. w = U.addEvent;
  14409. var u = U.arrayMax, d = U.arrayMin, P = U.clamp, O = U.extend, B = U.isNumber, C = U.merge, b = U.pick;
  14410. return U = function(M) {
  14411. function x() {
  14412. var a = M !== null && M.apply(this, arguments) || this;
  14413. 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;
  14414. }
  14415. return W(x, M), x.prototype.animate = function(a) {
  14416. !a && this.points.length < this.options.animationLimit && this.points.forEach(function(c) {
  14417. var p = c.graphic;
  14418. 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));
  14419. }, this);
  14420. }, x.prototype.getRadii = function() {
  14421. var a = this, c = this.zData, p = this.yData, i = [], l = this.chart.bubbleZExtremes, s = this.getPxExtremes(), t = s.minPxSize, n = s.maxPxSize;
  14422. if (!l) {
  14423. var o = Number.MAX_VALUE, A = -Number.MAX_VALUE, _;
  14424. this.chart.series.forEach(function(T) {
  14425. T.bubblePadding && (T.visible || !a.chart.options.chart.ignoreHiddenSeries) && (T = T.getZExtremes()) && (o = Math.min(o || T.zMin, T.zMin), A = Math.max(A || T.zMax, T.zMax), _ = !0);
  14426. }), _ ? (l = { zMin: o, zMax: A }, this.chart.bubbleZExtremes = l) : l = { zMin: 0, zMax: 0 };
  14427. }
  14428. var D = 0;
  14429. for (s = c.length; D < s; D++) {
  14430. var j = c[D];
  14431. i.push(this.getRadius(l.zMin, l.zMax, t, n, j, p[D]));
  14432. }
  14433. this.radii = i;
  14434. }, x.prototype.getRadius = function(a, c, p, i, l, s) {
  14435. var t = this.options, n = t.sizeBy !== "width", o = t.zThreshold, A = c - a, _ = 0.5;
  14436. if (s === null || l === null)
  14437. return null;
  14438. if (B(l)) {
  14439. if (t.sizeByAbsoluteValue && (l = Math.abs(l - o), A = Math.max(c - o, Math.abs(a - o)), a = 0), l < a)
  14440. return p / 2 - 1;
  14441. 0 < A && (_ = (l - a) / A);
  14442. }
  14443. return n && 0 <= _ && (_ = Math.sqrt(_)), Math.ceil(p + _ * (i - p)) / 2;
  14444. }, x.prototype.hasData = function() {
  14445. return !!this.processedXData.length;
  14446. }, x.prototype.pointAttribs = function(a, c) {
  14447. var p = this.options.marker.fillOpacity;
  14448. return a = H.prototype.pointAttribs.call(this, a, c), p !== 1 && (a.fill = N(a.fill).setOpacity(p).get("rgba")), a;
  14449. }, x.prototype.translate = function() {
  14450. M.prototype.translate.call(this), this.getRadii(), this.translateBubble();
  14451. }, x.prototype.translateBubble = function() {
  14452. for (var a = this.data, c = this.radii, p = this.getPxExtremes().minPxSize, i = a.length; i--; ) {
  14453. var l = a[i], s = c ? c[i] : 0;
  14454. B(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;
  14455. }
  14456. }, x.prototype.getPxExtremes = function() {
  14457. var a = Math.min(this.chart.plotWidth, this.chart.plotHeight), c = function(i) {
  14458. if (typeof i == "string") {
  14459. var l = /%$/.test(i);
  14460. i = parseInt(i, 10);
  14461. }
  14462. return l ? a * i / 100 : i;
  14463. }, p = c(b(this.options.minSize, 8));
  14464. return c = Math.max(c(b(this.options.maxSize, "20%")), p), {
  14465. minPxSize: p,
  14466. maxPxSize: c
  14467. };
  14468. }, x.prototype.getZExtremes = function() {
  14469. var a = this.options, c = (this.zData || []).filter(B);
  14470. if (c.length) {
  14471. var p = b(a.zMin, P(d(c), a.displayNegative === !1 ? a.zThreshold || 0 : -Number.MAX_VALUE, Number.MAX_VALUE));
  14472. if (a = b(a.zMax, u(c)), B(p) && B(a))
  14473. return { zMin: p, zMax: a };
  14474. }
  14475. }, x.compose = y.compose, x.defaultOptions = C(v.defaultOptions, { dataLabels: { formatter: function() {
  14476. var a = this.series.chart.numberFormatter, c = this.point.z;
  14477. return B(c) ? a(c, -1) : "";
  14478. }, inside: !0, verticalAlign: "middle" }, animationLimit: 250, marker: {
  14479. lineColor: null,
  14480. lineWidth: 1,
  14481. fillOpacity: 0.5,
  14482. radius: null,
  14483. states: { hover: { radiusPlus: 0 } },
  14484. symbol: "circle"
  14485. }, 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;
  14486. }(v), O(U.prototype, {
  14487. alignDataLabel: Z.prototype.alignDataLabel,
  14488. applyZones: I,
  14489. bubblePadding: !0,
  14490. buildKDTree: I,
  14491. directTouch: !0,
  14492. isBubble: !0,
  14493. pointArrayMap: ["y", "z"],
  14494. pointClass: R,
  14495. parallelArrays: ["x", "y", "z"],
  14496. trackerGroups: ["group", "dataLabelsGroup"],
  14497. specialGroup: "group",
  14498. zoneAxis: "z"
  14499. }), w(U, "updatedData", function(M) {
  14500. delete M.target.chart.bubbleZExtremes;
  14501. }), h.prototype.beforePadding = function() {
  14502. var M = 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, n = x / t, o;
  14503. this.series.forEach(function(A) {
  14504. if (A.bubblePadding && (A.visible || !a.options.chart.ignoreHiddenSeries)) {
  14505. o = M.allowZoomOutside = !0;
  14506. var _ = A[l];
  14507. if (i && A.getRadii(0, 0, A), 0 < t) {
  14508. for (var D = _.length; D--; )
  14509. if (B(_[D]) && M.dataMin <= _[D] && _[D] <= M.max) {
  14510. var j = A.radii && A.radii[D] || 0;
  14511. c = Math.min((_[D] - s) * n - j, c), p = Math.max((_[D] - s) * n + j, p);
  14512. }
  14513. }
  14514. }
  14515. }), o && 0 < t && !this.logarithmic && (p -= x, n *= (x + Math.max(0, c) - Math.min(p, x)) / x, [["min", "userMin", c], ["max", "userMax", p]].forEach(function(A) {
  14516. typeof b(M.options[A[0]], M[A[1]]) > "u" && (M[A[0]] += A[2] / n);
  14517. }));
  14518. }, $.registerSeriesType("bubble", U), U;
  14519. }), E(g, "Series/ColumnRange/ColumnRangePoint.js", [g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y) {
  14520. var R = this && this.__extends || function() {
  14521. var $ = function(U, W) {
  14522. return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(N, w) {
  14523. N.__proto__ = w;
  14524. } || function(N, w) {
  14525. for (var v in w)
  14526. w.hasOwnProperty(v) && (N[v] = w[v]);
  14527. }, $(U, W);
  14528. };
  14529. return function(U, W) {
  14530. function N() {
  14531. this.constructor = U;
  14532. }
  14533. $(U, W), U.prototype = W === null ? Object.create(W) : (N.prototype = W.prototype, new N());
  14534. };
  14535. }(), I = h.seriesTypes;
  14536. h = I.column.prototype.pointClass;
  14537. var Z = y.extend, H = y.isNumber;
  14538. return y = function($) {
  14539. function U() {
  14540. var W = $ !== null && $.apply(this, arguments) || this;
  14541. return W.series = void 0, W.options = void 0, W.barX = void 0, W.pointWidth = void 0, W.shapeType = void 0, W;
  14542. }
  14543. return R(U, $), U.prototype.isValid = function() {
  14544. return H(this.low);
  14545. }, U;
  14546. }(I.arearange.prototype.pointClass), Z(y.prototype, { setState: h.prototype.setState }), y;
  14547. }), E(g, "Series/ColumnRange/ColumnRangeSeries.js", [g["Series/ColumnRange/ColumnRangePoint.js"], g["Core/Globals.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  14548. var Z = this && this.__extends || function() {
  14549. var P = function(O, B) {
  14550. return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  14551. C.__proto__ = b;
  14552. } || function(C, b) {
  14553. for (var M in b)
  14554. b.hasOwnProperty(M) && (C[M] = b[M]);
  14555. }, P(O, B);
  14556. };
  14557. return function(O, B) {
  14558. function C() {
  14559. this.constructor = O;
  14560. }
  14561. P(O, B), O.prototype = B === null ? Object.create(B) : (C.prototype = B.prototype, new C());
  14562. };
  14563. }();
  14564. y = y.noop;
  14565. var H = R.seriesTypes, $ = H.arearange, U = H.column, W = U.prototype, N = $.prototype, w = I.clamp, v = I.merge, u = I.pick;
  14566. I = I.extend;
  14567. var d = { pointRange: null, marker: null, states: { hover: { halo: !1 } } };
  14568. return H = function(P) {
  14569. function O() {
  14570. var B = P !== null && P.apply(this, arguments) || this;
  14571. return B.data = void 0, B.points = void 0, B.options = void 0, B;
  14572. }
  14573. return Z(O, P), O.prototype.setOptions = function() {
  14574. return v(!0, arguments[0], { stacking: void 0 }), N.setOptions.apply(this, arguments);
  14575. }, O.prototype.translate = function() {
  14576. var B = this, C = B.yAxis, b = B.xAxis, M = b.startAngleRad, x, a = B.chart, c = B.xAxis.isRadial, p = Math.max(a.chartWidth, a.chartHeight) + 999, i;
  14577. W.translate.apply(B), B.points.forEach(function(l) {
  14578. var s = l.shapeArgs || {}, t = B.options.minPointLength;
  14579. l.plotHigh = i = w(C.translate(l.high, 0, 1, 0, 1), -p, p), l.plotLow = w(l.plotY, -p, p);
  14580. var n = i, o = u(
  14581. l.rectPlotY,
  14582. l.plotY
  14583. ) - i;
  14584. Math.abs(o) < t ? (t -= o, o += t, n -= t / 2) : 0 > o && (o *= -1, n -= o), c ? (x = l.barX + M, l.shapeType = "arc", l.shapeArgs = B.polarArc(n + o, n, x, x + l.pointWidth)) : (s.height = o, s.y = n, 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 - n - o / 2, b.len + b.pos - a.plotTop - t - s / 2, o] : [b.left - a.plotLeft + t + s / 2, C.pos - a.plotTop + n + o / 2, o]);
  14585. });
  14586. }, O.prototype.crispCol = function() {
  14587. return W.crispCol.apply(this, arguments);
  14588. }, O.prototype.drawPoints = function() {
  14589. return W.drawPoints.apply(this, arguments);
  14590. }, O.prototype.drawTracker = function() {
  14591. return W.drawTracker.apply(this, arguments);
  14592. }, O.prototype.getColumnMetrics = function() {
  14593. return W.getColumnMetrics.apply(this, arguments);
  14594. }, O.prototype.pointAttribs = function() {
  14595. return W.pointAttribs.apply(this, arguments);
  14596. }, O.prototype.adjustForMissingColumns = function() {
  14597. return W.adjustForMissingColumns.apply(this, arguments);
  14598. }, O.prototype.animate = function() {
  14599. return W.animate.apply(this, arguments);
  14600. }, O.prototype.translate3dPoints = function() {
  14601. return W.translate3dPoints.apply(this, arguments);
  14602. }, O.prototype.translate3dShapes = function() {
  14603. return W.translate3dShapes.apply(this, arguments);
  14604. }, O.defaultOptions = v(U.defaultOptions, $.defaultOptions, d), O;
  14605. }($), I(H.prototype, { directTouch: !0, trackerGroups: ["group", "dataLabelsGroup"], drawGraph: y, getSymbol: y, polarArc: function() {
  14606. return W.polarArc.apply(this, arguments);
  14607. }, pointClass: h }), R.registerSeriesType("columnrange", H), H;
  14608. }), E(g, "Series/ColumnPyramid/ColumnPyramidSeries.js", [g["Series/Column/ColumnSeries.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y, R) {
  14609. var I = this && this.__extends || function() {
  14610. var W = function(N, w) {
  14611. return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, u) {
  14612. v.__proto__ = u;
  14613. } || function(v, u) {
  14614. for (var d in u)
  14615. u.hasOwnProperty(d) && (v[d] = u[d]);
  14616. }, W(N, w);
  14617. };
  14618. return function(N, w) {
  14619. function v() {
  14620. this.constructor = N;
  14621. }
  14622. W(N, w), N.prototype = w === null ? Object.create(w) : (v.prototype = w.prototype, new v());
  14623. };
  14624. }(), Z = h.prototype, H = R.clamp, $ = R.merge, U = R.pick;
  14625. return R = function(W) {
  14626. function N() {
  14627. var w = W !== null && W.apply(this, arguments) || this;
  14628. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  14629. }
  14630. return I(N, W), N.prototype.translate = function() {
  14631. var w = this, v = w.chart, u = w.options, d = w.dense = 2 > w.closestPointRange * w.xAxis.transA;
  14632. d = w.borderWidth = U(u.borderWidth, d ? 0 : 1);
  14633. var P = w.yAxis, O = u.threshold, B = w.translatedThreshold = P.getThreshold(O), C = U(u.minPointLength, 5), b = w.getColumnMetrics(), M = b.width, x = w.barW = Math.max(M, 1 + 2 * d), a = w.pointXOffset = b.offset;
  14634. v.inverted && (B -= 0.5), u.pointPadding && (x = Math.ceil(x)), Z.translate.apply(w), w.points.forEach(function(c) {
  14635. var p = U(c.yBottom, B), i = 999 + Math.abs(p), l = H(c.plotY, -i, P.len + i);
  14636. i = c.plotX + a;
  14637. var s = x / 2, t = Math.min(l, p);
  14638. p = Math.max(l, p) - t;
  14639. var n;
  14640. c.barX = i, c.pointWidth = M, c.tooltipPos = v.inverted ? [P.len + P.pos - v.plotLeft - l, w.xAxis.len - i - s, p] : [i + s, l + P.pos - v.plotTop, p], l = O + (c.total || c.y), u.stacking === "percent" && (l = O + (0 > c.y) ? -100 : 100), l = P.toPixels(l, !0);
  14641. var o = (n = v.plotHeight - l - (v.plotHeight - B)) ? s * (t - l) / n : 0, A = n ? s * (t + p - l) / n : 0;
  14642. n = i - o + s, o = i + o + s;
  14643. var _ = i + A + s;
  14644. A = i - A + s;
  14645. var D = t - C, j = t + p;
  14646. 0 > c.y && (D = t, j = t + p + C), v.inverted && (_ = P.width - t, n = l - (P.width - B), o = s * (l - _) / n, A = s * (l - (_ - p)) / n, n = i + s + o, o = n - 2 * o, _ = i - A + s, A = i + A + s, D = t, j = t + p - C, 0 > c.y && (j = t + p + C)), c.shapeType = "path", c.shapeArgs = { x: n, y: D, width: o - n, height: p, d: [["M", n, D], ["L", o, D], ["L", _, j], ["L", A, j], ["Z"]] };
  14647. });
  14648. }, N.defaultOptions = $(h.defaultOptions, {}), N;
  14649. }(h), y.registerSeriesType("columnpyramid", R), R;
  14650. }), E(g, "Series/ErrorBar/ErrorBarSeries.js", [g["Series/BoxPlot/BoxPlotSeries.js"], g["Series/Column/ColumnSeries.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  14651. var Z = this && this.__extends || function() {
  14652. var W = function(N, w) {
  14653. return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, u) {
  14654. v.__proto__ = u;
  14655. } || function(v, u) {
  14656. for (var d in u)
  14657. u.hasOwnProperty(d) && (v[d] = u[d]);
  14658. }, W(N, w);
  14659. };
  14660. return function(N, w) {
  14661. function v() {
  14662. this.constructor = N;
  14663. }
  14664. W(N, w), N.prototype = w === null ? Object.create(w) : (v.prototype = w.prototype, new v());
  14665. };
  14666. }(), H = R.seriesTypes.arearange, $ = I.merge;
  14667. I = I.extend;
  14668. var U = function(W) {
  14669. function N() {
  14670. var w = W !== null && W.apply(this, arguments) || this;
  14671. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  14672. }
  14673. return Z(N, W), N.prototype.getColumnMetrics = function() {
  14674. return this.linkedParent && this.linkedParent.columnMetrics || y.prototype.getColumnMetrics.call(this);
  14675. }, N.prototype.drawDataLabels = function() {
  14676. var w = this.pointValKey;
  14677. H && (H.prototype.drawDataLabels.call(this), this.data.forEach(function(v) {
  14678. v.y = v[w];
  14679. }));
  14680. }, N.prototype.toYData = function(w) {
  14681. return [w.low, w.high];
  14682. }, N.defaultOptions = $(h.defaultOptions, {
  14683. color: "#000000",
  14684. grouping: !1,
  14685. linkedTo: ":previous",
  14686. tooltip: { pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14687. whiskerWidth: null
  14688. }), N;
  14689. }(h);
  14690. return I(U.prototype, { pointArrayMap: ["low", "high"], pointValKey: "high", doQuartiles: !1 }), R.registerSeriesType("errorbar", U), U;
  14691. }), E(g, "Series/Gauge/GaugePoint.js", [g["Core/Series/SeriesRegistry.js"]], function(h) {
  14692. var y = this && this.__extends || function() {
  14693. var R = function(I, Z) {
  14694. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(H, $) {
  14695. H.__proto__ = $;
  14696. } || function(H, $) {
  14697. for (var U in $)
  14698. $.hasOwnProperty(U) && (H[U] = $[U]);
  14699. }, R(I, Z);
  14700. };
  14701. return function(I, Z) {
  14702. function H() {
  14703. this.constructor = I;
  14704. }
  14705. R(I, Z), I.prototype = Z === null ? Object.create(Z) : (H.prototype = Z.prototype, new H());
  14706. };
  14707. }();
  14708. return function(R) {
  14709. function I() {
  14710. var Z = R !== null && R.apply(this, arguments) || this;
  14711. return Z.options = void 0, Z.series = void 0, Z.shapeArgs = void 0, Z;
  14712. }
  14713. return y(I, R), I.prototype.setState = function(Z) {
  14714. this.state = Z;
  14715. }, I;
  14716. }(h.series.prototype.pointClass);
  14717. }), E(g, "Series/Gauge/GaugeSeries.js", [g["Series/Gauge/GaugePoint.js"], g["Core/Globals.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  14718. var Z = this && this.__extends || function() {
  14719. var d = function(P, O) {
  14720. return d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, C) {
  14721. B.__proto__ = C;
  14722. } || function(B, C) {
  14723. for (var b in C)
  14724. C.hasOwnProperty(b) && (B[b] = C[b]);
  14725. }, d(P, O);
  14726. };
  14727. return function(P, O) {
  14728. function B() {
  14729. this.constructor = P;
  14730. }
  14731. d(P, O), P.prototype = O === null ? Object.create(O) : (B.prototype = O.prototype, new B());
  14732. };
  14733. }();
  14734. y = y.noop;
  14735. var H = R.series, $ = R.seriesTypes.column, U = I.clamp, W = I.isNumber, N = I.extend, w = I.merge, v = I.pick, u = I.pInt;
  14736. return I = function(d) {
  14737. function P() {
  14738. var O = d !== null && d.apply(this, arguments) || this;
  14739. return O.data = void 0, O.points = void 0, O.options = void 0, O.yAxis = void 0, O;
  14740. }
  14741. return Z(P, d), P.prototype.translate = function() {
  14742. var O = this.yAxis, B = this.options, C = O.center;
  14743. this.generatePoints(), this.points.forEach(function(b) {
  14744. var M = w(B.dial, b.dial), x = u(v(M.radius, "80%")) * C[2] / 200, a = u(v(M.baseLength, "70%")) * x / 100, c = u(v(M.rearLength, "10%")) * x / 100, p = M.baseWidth || 3, i = M.topWidth || 1, l = B.overshoot, s = O.startAngleRad + O.translate(b.y, null, null, null, !0);
  14745. (W(l) || B.wrap === !1) && (l = W(l) ? l / 180 * Math.PI : 0, s = U(
  14746. s,
  14747. O.startAngleRad - l,
  14748. O.endAngleRad + l
  14749. )), s = 180 * s / Math.PI, b.shapeType = "path", b.shapeArgs = { d: M.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];
  14750. });
  14751. }, P.prototype.drawPoints = function() {
  14752. var O = this, B = O.chart, C = O.yAxis.center, b = O.pivot, M = O.options, x = M.pivot, a = B.renderer;
  14753. O.points.forEach(function(c) {
  14754. var p = c.graphic, i = c.shapeArgs, l = i.d, s = w(M.dial, c.dial);
  14755. p ? (p.animate(i), i.d = l) : c.graphic = a[c.shapeType](i).attr({
  14756. rotation: i.rotation,
  14757. zIndex: 1
  14758. }).addClass("highcharts-dial").add(O.group), B.styledMode || c.graphic[p ? "animate" : "attr"]({ stroke: s.borderColor || "none", "stroke-width": s.borderWidth || 0, fill: s.backgroundColor || "#000000" });
  14759. }), 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), B.styledMode || O.pivot.attr({ "stroke-width": x.borderWidth || 0, stroke: x.borderColor || "#cccccc", fill: x.backgroundColor || "#000000" }));
  14760. }, P.prototype.animate = function(O) {
  14761. var B = this;
  14762. O || B.points.forEach(function(C) {
  14763. var b = C.graphic;
  14764. b && (b.attr({ rotation: 180 * B.yAxis.startAngleRad / Math.PI }), b.animate({ rotation: C.shapeArgs.rotation }, B.options.animation));
  14765. });
  14766. }, P.prototype.render = function() {
  14767. this.group = this.plotGroup("group", "series", this.visible ? "visible" : "hidden", this.options.zIndex, this.chart.seriesGroup), H.prototype.render.call(this), this.group.clip(this.chart.clipRect);
  14768. }, P.prototype.setData = function(O, B) {
  14769. H.prototype.setData.call(this, O, !1), this.processData(), this.generatePoints(), v(B, !0) && this.chart.redraw();
  14770. }, P.prototype.hasData = function() {
  14771. return !!this.points.length;
  14772. }, P.defaultOptions = w(H.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;
  14773. }(H), N(I.prototype, { angular: !0, directTouch: !0, drawGraph: y, drawTracker: $.prototype.drawTracker, fixedBox: !0, forceDL: !0, noSharedTooltip: !0, pointClass: h, trackerGroups: [
  14774. "group",
  14775. "dataLabelsGroup"
  14776. ] }), R.registerSeriesType("gauge", I), I;
  14777. }), E(g, "Series/PackedBubble/PackedBubblePoint.js", [g["Core/Chart/Chart.js"], g["Core/Series/Point.js"], g["Core/Series/SeriesRegistry.js"]], function(h, y, R) {
  14778. var I = this && this.__extends || function() {
  14779. var Z = function(H, $) {
  14780. return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(U, W) {
  14781. U.__proto__ = W;
  14782. } || function(U, W) {
  14783. for (var N in W)
  14784. W.hasOwnProperty(N) && (U[N] = W[N]);
  14785. }, Z(H, $);
  14786. };
  14787. return function(H, $) {
  14788. function U() {
  14789. this.constructor = H;
  14790. }
  14791. Z(H, $), H.prototype = $ === null ? Object.create($) : (U.prototype = $.prototype, new U());
  14792. };
  14793. }();
  14794. return function(Z) {
  14795. function H() {
  14796. var $ = Z !== null && Z.apply(this, arguments) || this;
  14797. return $.degree = NaN, $.mass = NaN, $.radius = NaN, $.options = void 0, $.series = void 0, $.value = null, $;
  14798. }
  14799. return I(H, Z), H.prototype.destroy = function() {
  14800. return this.series.layout && this.series.layout.removeElementFromCollection(this, this.series.layout.nodes), y.prototype.destroy.apply(this, arguments);
  14801. }, H.prototype.firePointEvent = function() {
  14802. var $ = this.series.options;
  14803. if (this.isParentNode && $.parentNode) {
  14804. var U = $.allowPointSelect;
  14805. $.allowPointSelect = $.parentNode.allowPointSelect, y.prototype.firePointEvent.apply(this, arguments), $.allowPointSelect = U;
  14806. } else
  14807. y.prototype.firePointEvent.apply(this, arguments);
  14808. }, H.prototype.select = function() {
  14809. var $ = this.series.chart;
  14810. this.isParentNode ? ($.getSelectedPoints = $.getSelectedParentNodes, y.prototype.select.apply(this, arguments), $.getSelectedPoints = h.prototype.getSelectedPoints) : y.prototype.select.apply(this, arguments);
  14811. }, H;
  14812. }(R.seriesTypes.bubble.prototype.pointClass);
  14813. }), E(g, "Series/Networkgraph/DraggableNodes.js", [g["Core/Chart/Chart.js"], g["Core/Globals.js"], g["Core/Utilities.js"]], function(h, y, R) {
  14814. var I = R.addEvent;
  14815. y.dragNodesMixin = { onMouseDown: function(Z, H) {
  14816. H = this.chart.pointer.normalize(H), Z.fixedPosition = { chartX: H.chartX, chartY: H.chartY, plotX: Z.plotX, plotY: Z.plotY }, Z.inDragMode = !0;
  14817. }, onMouseMove: function(Z, H) {
  14818. if (Z.fixedPosition && Z.inDragMode) {
  14819. var $ = this.chart, U = $.pointer.normalize(H);
  14820. H = Z.fixedPosition.chartX - U.chartX, U = Z.fixedPosition.chartY - U.chartY;
  14821. var W = void 0, N = void 0, w = $.graphLayoutsLookup;
  14822. (5 < Math.abs(H) || 5 < Math.abs(U)) && (W = Z.fixedPosition.plotX - H, N = Z.fixedPosition.plotY - U, $.isInsidePlot(W, N) && (Z.plotX = W, Z.plotY = N, Z.hasDragged = !0, this.redrawHalo(Z), w.forEach(function(v) {
  14823. v.restartSimulation();
  14824. })));
  14825. }
  14826. }, onMouseUp: function(Z, H) {
  14827. Z.fixedPosition && (Z.hasDragged && (this.layout.enableSimulation ? this.layout.start() : this.chart.redraw()), Z.inDragMode = Z.hasDragged = !1, this.options.fixedDraggable || delete Z.fixedPosition);
  14828. }, redrawHalo: function(Z) {
  14829. Z && this.halo && this.halo.attr({ d: Z.haloPath(this.options.states.hover.halo.size) });
  14830. } }, I(h, "load", function() {
  14831. var Z = this, H, $, U;
  14832. Z.container && (H = I(Z.container, "mousedown", function(W) {
  14833. var N = Z.hoverPoint;
  14834. N && N.series && N.series.hasDraggableNodes && N.series.options.draggable && (N.series.onMouseDown(N, W), $ = I(Z.container, "mousemove", function(w) {
  14835. return N && N.series && N.series.onMouseMove(N, w);
  14836. }), U = I(Z.container.ownerDocument, "mouseup", function(w) {
  14837. return $(), U(), N && N.series && N.series.onMouseUp(N, w);
  14838. }));
  14839. })), I(Z, "destroy", function() {
  14840. H();
  14841. });
  14842. });
  14843. }), E(
  14844. g,
  14845. "Series/Networkgraph/Integrations.js",
  14846. [g["Core/Globals.js"]],
  14847. function(h) {
  14848. h.networkgraphIntegrations = { verlet: { attractiveForceFunction: function(y, R) {
  14849. return (R - y) / y;
  14850. }, repulsiveForceFunction: function(y, R) {
  14851. return (R - y) / y * (R > y ? 1 : 0);
  14852. }, barycenter: function() {
  14853. var y = this.options.gravitationalConstant, R = this.barycenter.xFactor, I = this.barycenter.yFactor;
  14854. R = (R - (this.box.left + this.box.width) / 2) * y, I = (I - (this.box.top + this.box.height) / 2) * y, this.nodes.forEach(function(Z) {
  14855. Z.fixedPosition || (Z.plotX -= R / Z.mass / Z.degree, Z.plotY -= I / Z.mass / Z.degree);
  14856. });
  14857. }, repulsive: function(y, R, I) {
  14858. R = R * this.diffTemperature / y.mass / y.degree, y.fixedPosition || (y.plotX += I.x * R, y.plotY += I.y * R);
  14859. }, attractive: function(y, R, I) {
  14860. var Z = y.getMass(), H = -I.x * R * this.diffTemperature;
  14861. R = -I.y * R * this.diffTemperature, y.fromNode.fixedPosition || (y.fromNode.plotX -= H * Z.fromNode / y.fromNode.degree, y.fromNode.plotY -= R * Z.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.plotX += H * Z.toNode / y.toNode.degree, y.toNode.plotY += R * Z.toNode / y.toNode.degree);
  14862. }, integrate: function(y, R) {
  14863. var I = -y.options.friction, Z = y.options.maxSpeed, H = (R.plotX + R.dispX - R.prevX) * I;
  14864. I *= R.plotY + R.dispY - R.prevY;
  14865. var $ = Math.abs, U = $(H) / (H || 1);
  14866. $ = $(I) / (I || 1), H = U * Math.min(Z, Math.abs(H)), I = $ * Math.min(Z, Math.abs(I)), R.prevX = R.plotX + R.dispX, R.prevY = R.plotY + R.dispY, R.plotX += H, R.plotY += I, R.temperature = y.vectorLength({ x: H, y: I });
  14867. }, getK: function(y) {
  14868. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.5);
  14869. } }, euler: { attractiveForceFunction: function(y, R) {
  14870. return y * y / R;
  14871. }, repulsiveForceFunction: function(y, R) {
  14872. return R * R / y;
  14873. }, barycenter: function() {
  14874. var y = this.options.gravitationalConstant, R = this.barycenter.xFactor, I = this.barycenter.yFactor;
  14875. this.nodes.forEach(function(Z) {
  14876. if (!Z.fixedPosition) {
  14877. var H = Z.getDegree();
  14878. H *= 1 + H / 2, Z.dispX += (R - Z.plotX) * y * H / Z.degree, Z.dispY += (I - Z.plotY) * y * H / Z.degree;
  14879. }
  14880. });
  14881. }, repulsive: function(y, R, I, Z) {
  14882. y.dispX += I.x / Z * R / y.degree, y.dispY += I.y / Z * R / y.degree;
  14883. }, attractive: function(y, R, I, Z) {
  14884. var H = y.getMass(), $ = I.x / Z * R;
  14885. R *= I.y / Z, y.fromNode.fixedPosition || (y.fromNode.dispX -= $ * H.fromNode / y.fromNode.degree, y.fromNode.dispY -= R * H.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.dispX += $ * H.toNode / y.toNode.degree, y.toNode.dispY += R * H.toNode / y.toNode.degree);
  14886. }, integrate: function(y, R) {
  14887. R.dispX += R.dispX * y.options.friction, R.dispY += R.dispY * y.options.friction;
  14888. var I = R.temperature = y.vectorLength({ x: R.dispX, y: R.dispY });
  14889. I !== 0 && (R.plotX += R.dispX / I * Math.min(Math.abs(R.dispX), y.temperature), R.plotY += R.dispY / I * Math.min(Math.abs(R.dispY), y.temperature));
  14890. }, getK: function(y) {
  14891. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.3);
  14892. } } };
  14893. }
  14894. ), E(
  14895. g,
  14896. "Series/Networkgraph/QuadTree.js",
  14897. [g["Core/Globals.js"], g["Core/Utilities.js"]],
  14898. function(h, y) {
  14899. y = y.extend;
  14900. var R = h.QuadTreeNode = function(I) {
  14901. this.box = I, this.boxSize = Math.min(I.width, I.height), this.nodes = [], this.body = this.isInternal = !1, this.isEmpty = !0;
  14902. };
  14903. y(R.prototype, { insert: function(I, Z) {
  14904. 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 R({
  14905. top: I.plotX,
  14906. left: I.plotY,
  14907. width: 0.1,
  14908. height: 0.1
  14909. }), Z.body = I, Z.isInternal = !1, this.nodes.push(Z)) : (this.isInternal = !1, this.body = I));
  14910. }, updateMassAndCenter: function() {
  14911. var I = 0, Z = 0, H = 0;
  14912. this.isInternal ? (this.nodes.forEach(function($) {
  14913. $.isEmpty || (I += $.mass, Z += $.plotX * $.mass, H += $.plotY * $.mass);
  14914. }), Z /= I, H /= I) : this.body && (I = this.body.mass, Z = this.body.plotX, H = this.body.plotY), this.mass = I, this.plotX = Z, this.plotY = H;
  14915. }, divideBox: function() {
  14916. var I = this.box.width / 2, Z = this.box.height / 2;
  14917. this.nodes[0] = new R({
  14918. left: this.box.left,
  14919. top: this.box.top,
  14920. width: I,
  14921. height: Z
  14922. }), this.nodes[1] = new R({ left: this.box.left + I, top: this.box.top, width: I, height: Z }), this.nodes[2] = new R({ left: this.box.left + I, top: this.box.top + Z, width: I, height: Z }), this.nodes[3] = new R({ left: this.box.left, top: this.box.top + Z, width: I, height: Z });
  14923. }, getBoxPosition: function(I) {
  14924. var Z = I.plotY < this.box.top + this.box.height / 2;
  14925. return I.plotX < this.box.left + this.box.width / 2 ? Z ? 0 : 3 : Z ? 1 : 2;
  14926. } }), h = h.QuadTree = function(I, Z, H, $) {
  14927. this.box = { left: I, top: Z, width: H, height: $ }, this.maxDepth = 25, this.root = new R(
  14928. this.box,
  14929. "0"
  14930. ), this.root.isInternal = !0, this.root.isRoot = !0, this.root.divideBox();
  14931. }, y(h.prototype, { insertNodes: function(I) {
  14932. I.forEach(function(Z) {
  14933. this.root.insert(Z, this.maxDepth);
  14934. }, this);
  14935. }, visitNodeRecursive: function(I, Z, H) {
  14936. var $;
  14937. I || (I = this.root), I === this.root && Z && ($ = Z(I)), $ !== !1 && (I.nodes.forEach(function(U) {
  14938. if (U.isInternal) {
  14939. if (Z && ($ = Z(U)), $ === !1)
  14940. return;
  14941. this.visitNodeRecursive(U, Z, H);
  14942. } else
  14943. U.body && Z && Z(U.body);
  14944. H && H(U);
  14945. }, this), I === this.root && H && H(I));
  14946. }, calculateMassAndCenter: function() {
  14947. this.visitNodeRecursive(
  14948. null,
  14949. null,
  14950. function(I) {
  14951. I.updateMassAndCenter();
  14952. }
  14953. );
  14954. } });
  14955. }
  14956. ), E(g, "Series/Networkgraph/Layouts.js", [g["Core/Chart/Chart.js"], g["Core/Animation/AnimationUtilities.js"], g["Core/Globals.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  14957. var Z = y.setAnimation;
  14958. y = I.addEvent;
  14959. var H = I.clamp, $ = I.defined, U = I.extend, W = I.isFunction, N = I.pick;
  14960. R.layouts = { "reingold-fruchterman": function() {
  14961. } }, U(R.layouts["reingold-fruchterman"].prototype, {
  14962. init: function(w) {
  14963. this.options = w, this.nodes = [], this.links = [], this.series = [], this.box = {
  14964. x: 0,
  14965. y: 0,
  14966. width: 0,
  14967. height: 0
  14968. }, this.setInitialRendering(!0), this.integration = R.networkgraphIntegrations[w.integration], this.enableSimulation = w.enableSimulation, this.attractiveForce = N(w.attractiveForce, this.integration.attractiveForceFunction), this.repulsiveForce = N(w.repulsiveForce, this.integration.repulsiveForceFunction), this.approximation = w.approximation;
  14969. },
  14970. updateSimulation: function(w) {
  14971. this.enableSimulation = N(w, this.options.enableSimulation);
  14972. },
  14973. start: function() {
  14974. var w = this.series, v = this.options;
  14975. this.currentStep = 0, this.forces = w[0] && w[0].forces || [], this.chart = w[0] && w[0].chart, this.initialRendering && (this.initPositions(), w.forEach(function(u) {
  14976. u.finishedAnimating = !0, u.render();
  14977. })), this.setK(), this.resetSimulation(v), this.enableSimulation && this.step();
  14978. },
  14979. step: function() {
  14980. var w = this, v = this.series;
  14981. w.currentStep++, w.approximation === "barnes-hut" && (w.createQuadTree(), w.quadTree.calculateMassAndCenter()), w.forces.forEach(function(u) {
  14982. w[u + "Forces"](w.temperature);
  14983. }), w.applyLimits(w.temperature), w.temperature = w.coolDown(
  14984. w.startTemperature,
  14985. w.diffTemperature,
  14986. w.currentStep
  14987. ), w.prevSystemTemperature = w.systemTemperature, w.systemTemperature = w.getSystemTemperature(), w.enableSimulation && (v.forEach(function(u) {
  14988. u.chart && u.render();
  14989. }), w.maxIterations-- && isFinite(w.temperature) && !w.isStable() ? (w.simulation && R.win.cancelAnimationFrame(w.simulation), w.simulation = R.win.requestAnimationFrame(function() {
  14990. w.step();
  14991. })) : w.simulation = !1);
  14992. },
  14993. stop: function() {
  14994. this.simulation && R.win.cancelAnimationFrame(this.simulation);
  14995. },
  14996. setArea: function(w, v, u, d) {
  14997. this.box = {
  14998. left: w,
  14999. top: v,
  15000. width: u,
  15001. height: d
  15002. };
  15003. },
  15004. setK: function() {
  15005. this.k = this.options.linkLength || this.integration.getK(this);
  15006. },
  15007. addElementsToCollection: function(w, v) {
  15008. w.forEach(function(u) {
  15009. v.indexOf(u) === -1 && v.push(u);
  15010. });
  15011. },
  15012. removeElementFromCollection: function(w, v) {
  15013. w = v.indexOf(w), w !== -1 && v.splice(w, 1);
  15014. },
  15015. clear: function() {
  15016. this.nodes.length = 0, this.links.length = 0, this.series.length = 0, this.resetSimulation();
  15017. },
  15018. resetSimulation: function() {
  15019. this.forcedStop = !1, this.systemTemperature = 0, this.setMaxIterations(), this.setTemperature(), this.setDiffTemperature();
  15020. },
  15021. restartSimulation: function() {
  15022. this.simulation ? this.resetSimulation() : (this.setInitialRendering(!1), this.enableSimulation ? this.start() : this.setMaxIterations(1), this.chart && this.chart.redraw(), this.setInitialRendering(!0));
  15023. },
  15024. setMaxIterations: function(w) {
  15025. this.maxIterations = N(w, this.options.maxIterations);
  15026. },
  15027. setTemperature: function() {
  15028. this.temperature = this.startTemperature = Math.sqrt(this.nodes.length);
  15029. },
  15030. setDiffTemperature: function() {
  15031. this.diffTemperature = this.startTemperature / (this.options.maxIterations + 1);
  15032. },
  15033. setInitialRendering: function(w) {
  15034. this.initialRendering = w;
  15035. },
  15036. createQuadTree: function() {
  15037. this.quadTree = new R.QuadTree(this.box.left, this.box.top, this.box.width, this.box.height), this.quadTree.insertNodes(this.nodes);
  15038. },
  15039. initPositions: function() {
  15040. var w = this.options.initialPositions;
  15041. W(w) ? (w.call(this), this.nodes.forEach(function(v) {
  15042. $(v.prevX) || (v.prevX = v.plotX), $(v.prevY) || (v.prevY = v.plotY), v.dispX = 0, v.dispY = 0;
  15043. })) : w === "circle" ? this.setCircularPositions() : this.setRandomPositions();
  15044. },
  15045. setCircularPositions: function() {
  15046. function w(b) {
  15047. b.linksFrom.forEach(function(M) {
  15048. B[M.toNode.id] || (B[M.toNode.id] = !0, O.push(M.toNode), w(M.toNode));
  15049. });
  15050. }
  15051. var v = this.box, u = this.nodes, d = 2 * Math.PI / (u.length + 1), P = u.filter(function(b) {
  15052. return b.linksTo.length === 0;
  15053. }), O = [], B = {}, C = this.options.initialPositionRadius;
  15054. P.forEach(function(b) {
  15055. O.push(b), w(b);
  15056. }), O.length ? u.forEach(function(b) {
  15057. O.indexOf(b) === -1 && O.push(b);
  15058. }) : O = u, O.forEach(function(b, M) {
  15059. b.plotX = b.prevX = N(b.plotX, v.width / 2 + C * Math.cos(M * d)), b.plotY = b.prevY = N(b.plotY, v.height / 2 + C * Math.sin(M * d)), b.dispX = 0, b.dispY = 0;
  15060. });
  15061. },
  15062. setRandomPositions: function() {
  15063. function w(P) {
  15064. return P = P * P / Math.PI, P -= Math.floor(P);
  15065. }
  15066. var v = this.box, u = this.nodes, d = u.length + 1;
  15067. u.forEach(function(P, O) {
  15068. P.plotX = P.prevX = N(P.plotX, v.width * w(O)), P.plotY = P.prevY = N(P.plotY, v.height * w(d + O)), P.dispX = 0, P.dispY = 0;
  15069. });
  15070. },
  15071. force: function(w) {
  15072. this.integration[w].apply(this, Array.prototype.slice.call(arguments, 1));
  15073. },
  15074. barycenterForces: function() {
  15075. this.getBarycenter(), this.force("barycenter");
  15076. },
  15077. getBarycenter: function() {
  15078. var w = 0, v = 0, u = 0;
  15079. return this.nodes.forEach(function(d) {
  15080. v += d.plotX * d.mass, u += d.plotY * d.mass, w += d.mass;
  15081. }), this.barycenter = { x: v, y: u, xFactor: v / w, yFactor: u / w };
  15082. },
  15083. barnesHutApproximation: function(w, v) {
  15084. var u = this.getDistXY(w, v), d = this.vectorLength(u);
  15085. if (w !== v && d !== 0)
  15086. if (v.isInternal)
  15087. if (v.boxSize / d < this.options.theta && d !== 0) {
  15088. var P = this.repulsiveForce(d, this.k);
  15089. this.force("repulsive", w, P * v.mass, u, d);
  15090. var O = !1;
  15091. } else
  15092. O = !0;
  15093. else
  15094. P = this.repulsiveForce(d, this.k), this.force("repulsive", w, P * v.mass, u, d);
  15095. return O;
  15096. },
  15097. repulsiveForces: function() {
  15098. var w = this;
  15099. w.approximation === "barnes-hut" ? w.nodes.forEach(function(v) {
  15100. w.quadTree.visitNodeRecursive(
  15101. null,
  15102. function(u) {
  15103. return w.barnesHutApproximation(v, u);
  15104. }
  15105. );
  15106. }) : w.nodes.forEach(function(v) {
  15107. w.nodes.forEach(function(u) {
  15108. if (v !== u && !v.fixedPosition) {
  15109. var d = w.getDistXY(v, u), P = w.vectorLength(d);
  15110. if (P !== 0) {
  15111. var O = w.repulsiveForce(P, w.k);
  15112. w.force("repulsive", v, O * u.mass, d, P);
  15113. }
  15114. }
  15115. });
  15116. });
  15117. },
  15118. attractiveForces: function() {
  15119. var w = this, v, u, d;
  15120. w.links.forEach(function(P) {
  15121. P.fromNode && P.toNode && (v = w.getDistXY(P.fromNode, P.toNode), u = w.vectorLength(v), u !== 0 && (d = w.attractiveForce(u, w.k), w.force("attractive", P, d, v, u)));
  15122. });
  15123. },
  15124. applyLimits: function() {
  15125. var w = this;
  15126. w.nodes.forEach(function(v) {
  15127. v.fixedPosition || (w.integration.integrate(w, v), w.applyLimitBox(v, w.box), v.dispX = 0, v.dispY = 0);
  15128. });
  15129. },
  15130. applyLimitBox: function(w, v) {
  15131. var u = w.radius;
  15132. w.plotX = H(w.plotX, v.left + u, v.width - u), w.plotY = H(w.plotY, v.top + u, v.height - u);
  15133. },
  15134. coolDown: function(w, v, u) {
  15135. return w - v * u;
  15136. },
  15137. isStable: function() {
  15138. return 1e-5 > Math.abs(this.systemTemperature - this.prevSystemTemperature) || 0 >= this.temperature;
  15139. },
  15140. getSystemTemperature: function() {
  15141. return this.nodes.reduce(function(w, v) {
  15142. return w + v.temperature;
  15143. }, 0);
  15144. },
  15145. vectorLength: function(w) {
  15146. return Math.sqrt(w.x * w.x + w.y * w.y);
  15147. },
  15148. getDistR: function(w, v) {
  15149. return w = this.getDistXY(w, v), this.vectorLength(w);
  15150. },
  15151. getDistXY: function(w, v) {
  15152. var u = w.plotX - v.plotX;
  15153. return w = w.plotY - v.plotY, { x: u, y: w, absX: Math.abs(u), absY: Math.abs(w) };
  15154. }
  15155. }), y(h, "predraw", function() {
  15156. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(w) {
  15157. w.stop();
  15158. });
  15159. }), y(h, "render", function() {
  15160. function w(d) {
  15161. d.maxIterations-- && isFinite(d.temperature) && !d.isStable() && !d.enableSimulation && (d.beforeStep && d.beforeStep(), d.step(), u = !1, v = !0);
  15162. }
  15163. var v = !1;
  15164. if (this.graphLayoutsLookup) {
  15165. for (Z(!1, this), this.graphLayoutsLookup.forEach(function(d) {
  15166. d.start();
  15167. }); !u; ) {
  15168. var u = !0;
  15169. this.graphLayoutsLookup.forEach(w);
  15170. }
  15171. v && this.series.forEach(function(d) {
  15172. d && d.layout && d.render();
  15173. });
  15174. }
  15175. }), y(h, "beforePrint", function() {
  15176. this.graphLayoutsLookup && (this.graphLayoutsLookup.forEach(function(w) {
  15177. w.updateSimulation(!1);
  15178. }), this.redraw());
  15179. }), y(h, "afterPrint", function() {
  15180. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(w) {
  15181. w.updateSimulation();
  15182. }), this.redraw();
  15183. });
  15184. }), E(g, "Series/PackedBubble/PackedBubbleComposition.js", [g["Core/Chart/Chart.js"], g["Core/Globals.js"], g["Core/Utilities.js"]], function(h, y, R) {
  15185. var I = y.layouts["reingold-fruchterman"], Z = R.addEvent, H = R.extendClass, $ = R.pick;
  15186. h.prototype.getSelectedParentNodes = function() {
  15187. var U = [];
  15188. return this.series.forEach(function(W) {
  15189. W.parentNode && W.parentNode.selected && U.push(W.parentNode);
  15190. }), U;
  15191. }, y.networkgraphIntegrations.packedbubble = { repulsiveForceFunction: function(U, W, N, w) {
  15192. return Math.min(U, (N.marker.radius + w.marker.radius) / 2);
  15193. }, barycenter: function() {
  15194. var U = this, W = U.options.gravitationalConstant, N = U.box, w = U.nodes, v, u;
  15195. w.forEach(function(d) {
  15196. U.options.splitSeries && !d.isParentNode ? (v = d.series.parentNode.plotX, u = d.series.parentNode.plotY) : (v = N.width / 2, u = N.height / 2), d.fixedPosition || (d.plotX -= (d.plotX - v) * W / (d.mass * Math.sqrt(w.length)), d.plotY -= (d.plotY - u) * W / (d.mass * Math.sqrt(w.length)));
  15197. });
  15198. }, repulsive: function(U, W, N, w) {
  15199. var v = W * this.diffTemperature / U.mass / U.degree;
  15200. W = N.x * v, N = N.y * v, U.fixedPosition || (U.plotX += W, U.plotY += N), w.fixedPosition || (w.plotX -= W, w.plotY -= N);
  15201. }, integrate: y.networkgraphIntegrations.verlet.integrate, getK: y.noop }, y.layouts.packedbubble = H(I, { beforeStep: function() {
  15202. this.options.marker && this.series.forEach(function(U) {
  15203. U && U.calculateParentRadius();
  15204. });
  15205. }, isStable: function() {
  15206. var U = Math.abs(this.prevSystemTemperature - this.systemTemperature);
  15207. return 1 > Math.abs(10 * this.systemTemperature / Math.sqrt(this.nodes.length)) && 1e-5 > U || 0 >= this.temperature;
  15208. }, setCircularPositions: function() {
  15209. var U = this, W = U.box, N = U.nodes, w = 2 * Math.PI / (N.length + 1), v, u, d = U.options.initialPositionRadius;
  15210. N.forEach(function(P, O) {
  15211. U.options.splitSeries && !P.isParentNode ? (v = P.series.parentNode.plotX, u = P.series.parentNode.plotY) : (v = W.width / 2, u = W.height / 2), P.plotX = P.prevX = $(P.plotX, v + d * Math.cos(P.index || O * w)), P.plotY = P.prevY = $(P.plotY, u + d * Math.sin(P.index || O * w)), P.dispX = 0, P.dispY = 0;
  15212. });
  15213. }, repulsiveForces: function() {
  15214. var U = this, W, N, w, v = U.options.bubblePadding;
  15215. U.nodes.forEach(function(u) {
  15216. u.degree = u.mass, u.neighbours = 0, U.nodes.forEach(function(d) {
  15217. W = 0, u === d || u.fixedPosition || !U.options.seriesInteraction && u.series !== d.series || (w = U.getDistXY(u, d), N = U.vectorLength(w) - (u.marker.radius + d.marker.radius + v), 0 > N && (u.degree += 0.01, u.neighbours++, W = U.repulsiveForce(-N / Math.sqrt(u.neighbours), U.k, u, d)), U.force("repulsive", u, W * d.mass, w, d, N));
  15218. });
  15219. });
  15220. }, applyLimitBox: function(U) {
  15221. if (this.options.splitSeries && !U.isParentNode && this.options.parentNodeLimit) {
  15222. var W = this.getDistXY(U, U.series.parentNode), N = U.series.parentNodeRadius - U.marker.radius - this.vectorLength(W);
  15223. 0 > N && N > -2 * U.marker.radius && (U.plotX -= 0.01 * W.x, U.plotY -= 0.01 * W.y);
  15224. }
  15225. I.prototype.applyLimitBox.apply(this, arguments);
  15226. } }), Z(h, "beforeRedraw", function() {
  15227. this.allDataPoints && delete this.allDataPoints;
  15228. });
  15229. }), E(g, "Series/PackedBubble/PackedBubbleSeries.js", [g["Core/Color/Color.js"], g["Core/Globals.js"], g["Series/PackedBubble/PackedBubblePoint.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y, R, I, Z) {
  15230. var H = this && this.__extends || function() {
  15231. var M = function(x, a) {
  15232. return M = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
  15233. c.__proto__ = p;
  15234. } || function(c, p) {
  15235. for (var i in p)
  15236. p.hasOwnProperty(i) && (c[i] = p[i]);
  15237. }, M(x, a);
  15238. };
  15239. return function(x, a) {
  15240. function c() {
  15241. this.constructor = x;
  15242. }
  15243. M(x, a), x.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c());
  15244. };
  15245. }(), $ = h.parse, U = I.series, W = I.seriesTypes.bubble, N = Z.addEvent, w = Z.clamp, v = Z.defined, u = Z.extend, d = Z.fireEvent, P = Z.isArray, O = Z.isNumber, B = Z.merge, C = Z.pick, b = y.dragNodesMixin;
  15246. return h = function(M) {
  15247. function x() {
  15248. var a = M !== null && M.apply(this, arguments) || this;
  15249. 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;
  15250. }
  15251. return H(x, M), x.prototype.accumulateAllPoints = function(a) {
  15252. var c = a.chart, p = [], i, l;
  15253. for (i = 0; i < c.series.length; i++)
  15254. if (a = c.series[i], a.is("packedbubble") && a.visible || !c.options.chart.ignoreHiddenSeries)
  15255. for (l = 0; l < a.yData.length; l++)
  15256. p.push([null, null, a.yData[l], a.index, l, { id: l, marker: { radius: 0 } }]);
  15257. return p;
  15258. }, x.prototype.addLayout = function() {
  15259. var a = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, p = this.chart.graphLayoutsLookup, i = this.chart.options.chart;
  15260. c || (this.chart.graphLayoutsStorage = c = {}, this.chart.graphLayoutsLookup = p = []);
  15261. var l = c[a.type];
  15262. 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) {
  15263. s.mass = 2, s.degree = 1, s.collisionNmb = 1;
  15264. }), l.setArea(0, 0, this.chart.plotWidth, this.chart.plotHeight), l.addElementsToCollection([this], l.series), l.addElementsToCollection(this.points, l.nodes);
  15265. }, x.prototype.addSeriesLayout = function() {
  15266. var a = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, p = this.chart.graphLayoutsLookup, i = B(a, a.parentNodeOptions, { enableSimulation: this.layout.options.enableSimulation }), l = c[a.type + "-series"];
  15267. 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();
  15268. }, x.prototype.calculateParentRadius = function() {
  15269. var a = this.seriesBox();
  15270. this.parentNodeRadius = w(Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20, 20, a ? Math.max(Math.sqrt(Math.pow(
  15271. a.width,
  15272. 2
  15273. ) + 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);
  15274. }, x.prototype.calculateZExtremes = function() {
  15275. var a = this.options.zMin, c = this.options.zMax, p = 1 / 0, i = -1 / 0;
  15276. return a && c ? [a, c] : (this.chart.series.forEach(function(l) {
  15277. l.yData.forEach(function(s) {
  15278. v(s) && (s > i && (i = s), s < p && (p = s));
  15279. });
  15280. }), a = C(a, p), c = C(c, i), [a, c]);
  15281. }, x.prototype.checkOverlap = function(a, c) {
  15282. var p = a[0] - c[0], i = a[1] - c[1];
  15283. return -1e-3 > Math.sqrt(p * p + i * i) - Math.abs(a[2] + c[2]);
  15284. }, x.prototype.createParentNodes = function() {
  15285. var a = this, c = a.chart, p = a.parentNodeLayout, i, l = a.parentNode, s = a.pointClass, t = a.layout.options, n = { radius: a.parentNodeRadius, lineColor: a.color, fillColor: $(a.color).brighten(0.4).get() };
  15286. t.parentNodeOptions && (n = B(t.parentNodeOptions.marker || {}, n)), a.parentNodeMass = 0, a.points.forEach(function(o) {
  15287. a.parentNodeMass += Math.PI * Math.pow(o.marker.radius, 2);
  15288. }), a.calculateParentRadius(), p.nodes.forEach(function(o) {
  15289. o.seriesIndex === a.index && (i = !0);
  15290. }), p.setArea(0, 0, c.plotWidth, c.plotHeight), i || (l || (l = new s().init(this, { mass: a.parentNodeRadius / 2, marker: n, dataLabels: { inside: !1 }, states: { normal: { marker: n }, hover: { marker: n } }, 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));
  15291. }, x.prototype.deferLayout = function() {
  15292. var a = this.options.layoutAlgorithm;
  15293. this.visible && (this.addLayout(), a.splitSeries && this.addSeriesLayout());
  15294. }, x.prototype.destroy = function() {
  15295. this.chart.graphLayoutsLookup && this.chart.graphLayoutsLookup.forEach(function(a) {
  15296. a.removeElementFromCollection(this, a.series);
  15297. }, this), this.parentNode && this.parentNodeLayout && (this.parentNodeLayout.removeElementFromCollection(this.parentNode, this.parentNodeLayout.nodes), this.parentNode.dataLabel && (this.parentNode.dataLabel = this.parentNode.dataLabel.destroy())), U.prototype.destroy.apply(this, arguments);
  15298. }, x.prototype.drawDataLabels = function() {
  15299. var a = this.options.dataLabels.textPath, c = this.points;
  15300. U.prototype.drawDataLabels.apply(this, arguments), this.parentNode && (this.parentNode.formatPrefix = "parentNode", this.points = [this.parentNode], this.options.dataLabels.textPath = this.options.dataLabels.parentNodeTextPath, U.prototype.drawDataLabels.apply(this, arguments), this.points = c, this.options.dataLabels.textPath = a);
  15301. }, x.prototype.drawGraph = function() {
  15302. if (this.layout && this.layout.options.splitSeries) {
  15303. var a = this.chart, c = this.layout.options.parentNodeOptions.marker, p = { fill: c.fillColor || $(this.color).brighten(0.4).get(), opacity: c.fillOpacity, stroke: c.lineColor || this.color, "stroke-width": C(c.lineWidth, this.options.lineWidth) };
  15304. this.parentNodesGroup || (this.parentNodesGroup = this.plotGroup("parentNodesGroup", "parentNode", this.visible ? "inherit" : "hidden", 0.1, a.seriesGroup), this.group.attr({ zIndex: 2 })), this.calculateParentRadius(), c = B({
  15305. x: this.parentNode.plotX - this.parentNodeRadius,
  15306. y: this.parentNode.plotY - this.parentNodeRadius,
  15307. width: 2 * this.parentNodeRadius,
  15308. height: 2 * this.parentNodeRadius
  15309. }, p), this.parentNode.graphic || (this.graph = this.parentNode.graphic = a.renderer.symbol(p.symbol).add(this.parentNodesGroup)), this.parentNode.graphic.attr(c);
  15310. }
  15311. }, x.prototype.drawTracker = function() {
  15312. var a = this.parentNode;
  15313. if (M.prototype.drawTracker.call(this), a) {
  15314. var c = P(a.dataLabels) ? a.dataLabels : a.dataLabel ? [a.dataLabel] : [];
  15315. a.graphic && (a.graphic.element.point = a), c.forEach(function(p) {
  15316. p.div ? p.div.point = a : p.element.point = a;
  15317. });
  15318. }
  15319. }, x.prototype.getPointRadius = function() {
  15320. var a = this, c = a.chart, p = a.options, i = p.useSimulation, l = Math.min(c.plotWidth, c.plotHeight), s = {}, t = [], n = c.allDataPoints, o, A, _, D;
  15321. ["minSize", "maxSize"].forEach(function(T) {
  15322. var X = parseInt(p[T], 10), f = /%$/.test(p[T]);
  15323. s[T] = f ? l * X / 100 : X * Math.sqrt(n.length);
  15324. }), c.minRadius = o = s.minSize / Math.sqrt(n.length), c.maxRadius = A = s.maxSize / Math.sqrt(n.length);
  15325. var j = i ? a.calculateZExtremes() : [o, A];
  15326. (n || []).forEach(function(T, X) {
  15327. _ = i ? w(T[2], j[0], j[1]) : T[2], D = a.getRadius(j[0], j[1], o, A, _), D === 0 && (D = null), n[X][2] = D, t.push(D);
  15328. }), a.radii = t;
  15329. }, x.prototype.init = function() {
  15330. return U.prototype.init.apply(this, arguments), this.eventsToUnbind.push(N(this, "updatedData", function() {
  15331. this.chart.series.forEach(function(a) {
  15332. a.type === this.type && (a.isDirty = !0);
  15333. }, this);
  15334. })), this;
  15335. }, x.prototype.onMouseUp = function(a) {
  15336. if (a.fixedPosition && !a.removed) {
  15337. var c, p, i = this.layout, l = this.parentNodeLayout;
  15338. l && i.options.dragBetweenSeries && l.nodes.forEach(function(s) {
  15339. 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(B(a.options, { plotX: a.plotX, plotY: a.plotY }), !1), i.removeElementFromCollection(a, i.nodes), a.remove()));
  15340. }), b.onMouseUp.apply(this, arguments);
  15341. }
  15342. }, x.prototype.placeBubbles = function(a) {
  15343. var c = this.checkOverlap, p = this.positionBubble, i = [], l = 1, s = 0, t = 0, n = [], o;
  15344. if (a = a.sort(function(A, _) {
  15345. return _[2] - A[2];
  15346. }), a.length) {
  15347. if (i.push([[0, 0, a[0][2], a[0][3], a[0][4]]]), 1 < a.length)
  15348. for (i.push([[0, 0 - a[1][2] - a[0][2], a[1][2], a[1][3], a[1][4]]]), o = 2; o < a.length; o++)
  15349. a[o][2] = a[o][2] || 1, n = p(i[l][s], i[l - 1][t], a[o]), c(n, i[l][0]) ? (i.push([]), t = 0, i[l + 1].push(p(i[l][s], i[l][0], a[o])), l++, s = 0) : 1 < l && i[l - 1][t + 1] && c(n, i[l - 1][t + 1]) ? (t++, i[l].push(p(i[l][s], i[l - 1][t], a[o])), s++) : (s++, i[l].push(n));
  15350. this.chart.stages = i, this.chart.rawPositions = [].concat.apply([], i), this.resizeRadius(), n = this.chart.rawPositions;
  15351. }
  15352. return n;
  15353. }, x.prototype.pointAttribs = function(a, c) {
  15354. var p = this.options, i = p.marker;
  15355. return a && a.isParentNode && p.layoutAlgorithm && p.layoutAlgorithm.parentNodeOptions && (i = p.layoutAlgorithm.parentNodeOptions.marker), p = i.fillOpacity, a = U.prototype.pointAttribs.call(this, a, c), p !== 1 && (a["fill-opacity"] = p), a;
  15356. }, x.prototype.positionBubble = function(a, c, p) {
  15357. var i = Math.sqrt, l = Math.asin, s = Math.acos, t = Math.pow, n = Math.abs;
  15358. 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(n(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]];
  15359. }, x.prototype.render = function() {
  15360. var a = [];
  15361. U.prototype.render.apply(this, arguments), this.options.dataLabels.allowOverlap || (this.data.forEach(function(c) {
  15362. P(c.dataLabels) && c.dataLabels.forEach(function(p) {
  15363. a.push(p);
  15364. });
  15365. }), this.options.useSimulation && this.chart.hideOverlappingLabels(a));
  15366. }, x.prototype.resizeRadius = function() {
  15367. var a = this.chart, c = a.rawPositions, p = Math.min, i = Math.max, l = a.plotLeft, s = a.plotTop, t = a.plotHeight, n = a.plotWidth, o, A, _, D = o = Number.POSITIVE_INFINITY, j = A = Number.NEGATIVE_INFINITY;
  15368. for (_ = 0; _ < c.length; _++) {
  15369. var T = c[_][2];
  15370. D = p(
  15371. D,
  15372. c[_][0] - T
  15373. ), j = i(j, c[_][0] + T), o = p(o, c[_][1] - T), A = i(A, c[_][1] + T);
  15374. }
  15375. if (_ = [j - D, A - o], p = p.apply([], [(n - l) / _[0], (t - s) / _[1]]), 1e-10 < Math.abs(p - 1)) {
  15376. for (_ = 0; _ < c.length; _++)
  15377. c[_][2] *= p;
  15378. this.placeBubbles(c);
  15379. } else
  15380. a.diffY = t / 2 + s - o - (A - o) / 2, a.diffX = n / 2 + l - D - (j - D) / 2;
  15381. }, x.prototype.seriesBox = function() {
  15382. var a = this.chart, c = Math.max, p = Math.min, i, l = [a.plotLeft, a.plotLeft + a.plotWidth, a.plotTop, a.plotTop + a.plotHeight];
  15383. return this.data.forEach(function(s) {
  15384. 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));
  15385. }), O(l.width / l.height) ? l : null;
  15386. }, x.prototype.setVisible = function() {
  15387. var a = this;
  15388. U.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(
  15389. a.points,
  15390. a.layout.nodes
  15391. ) : a.points.forEach(function(c) {
  15392. a.layout.removeElementFromCollection(c, a.layout.nodes);
  15393. }));
  15394. }, x.prototype.translate = function() {
  15395. var a = this.chart, c = this.data, p = this.index, i, l = this.options.useSimulation;
  15396. if (this.processedXData = this.xData, this.generatePoints(), v(a.allDataPoints) || (a.allDataPoints = this.accumulateAllPoints(this), this.getPointRadius()), l)
  15397. var s = a.allDataPoints;
  15398. else
  15399. s = this.placeBubbles(a.allDataPoints), this.options.draggable = !1;
  15400. for (i = 0; i < s.length; i++)
  15401. if (s[i][3] === p) {
  15402. var t = c[s[i][4]], n = C(s[i][2], void 0);
  15403. l || (t.plotX = s[i][0] - a.plotLeft + a.diffX, t.plotY = s[i][1] - a.plotTop + a.diffY), O(n) && (t.marker = u(t.marker, { radius: n, width: 2 * n, height: 2 * n }), t.radius = n);
  15404. }
  15405. l && this.deferLayout(), d(this, "afterTranslate");
  15406. }, x.defaultOptions = B(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() {
  15407. var a = this.series.chart.numberFormatter, c = this.point.value;
  15408. return O(c) ? a(c, -1) : "";
  15409. }, parentNodeFormatter: function() {
  15410. return this.name;
  15411. }, 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: {
  15412. fillColor: null,
  15413. fillOpacity: 1,
  15414. lineWidth: null,
  15415. lineColor: null,
  15416. symbol: "circle"
  15417. } }, enableSimulation: !0, type: "packedbubble", integration: "packedbubble", maxIterations: 1e3, splitSeries: !1, maxSpeed: 5, gravitationalConstant: 0.01, friction: -0.981 } }), x;
  15418. }(W), u(h.prototype, {
  15419. alignDataLabel: U.prototype.alignDataLabel,
  15420. axisTypes: [],
  15421. directTouch: !0,
  15422. forces: ["barycenter", "repulsive"],
  15423. hasDraggableNodes: !0,
  15424. isCartesian: !1,
  15425. noSharedTooltip: !0,
  15426. onMouseDown: b.onMouseDown,
  15427. onMouseMove: b.onMouseMove,
  15428. pointArrayMap: ["value"],
  15429. pointClass: R,
  15430. pointValKey: "value",
  15431. redrawHalo: b.redrawHalo,
  15432. requireSorting: !1,
  15433. searchPoint: y.noop,
  15434. trackerGroups: ["group", "dataLabelsGroup", "parentNodesGroup"]
  15435. }), I.registerSeriesType("packedbubble", h), h;
  15436. }), E(g, "Series/Polygon/PolygonSeries.js", [g["Core/Globals.js"], g["Core/Legend/LegendSymbol.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  15437. var Z = this && this.__extends || function() {
  15438. var v = function(u, d) {
  15439. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, O) {
  15440. P.__proto__ = O;
  15441. } || function(P, O) {
  15442. for (var B in O)
  15443. O.hasOwnProperty(B) && (P[B] = O[B]);
  15444. }, v(u, d);
  15445. };
  15446. return function(u, d) {
  15447. function P() {
  15448. this.constructor = u;
  15449. }
  15450. v(u, d), u.prototype = d === null ? Object.create(d) : (P.prototype = d.prototype, new P());
  15451. };
  15452. }();
  15453. h = h.noop;
  15454. var H = R.series, $ = R.seriesTypes, U = $.area, W = $.line, N = $.scatter;
  15455. $ = I.extend;
  15456. var w = I.merge;
  15457. return I = function(v) {
  15458. function u() {
  15459. var d = v !== null && v.apply(this, arguments) || this;
  15460. return d.data = void 0, d.options = void 0, d.points = void 0, d;
  15461. }
  15462. return Z(u, v), u.prototype.getGraphPath = function() {
  15463. for (var d = W.prototype.getGraphPath.call(this), P = d.length + 1; P--; )
  15464. (P === d.length || d[P][0] === "M") && 0 < P && d.splice(P, 0, ["Z"]);
  15465. return this.areaPath = d;
  15466. }, u.prototype.drawGraph = function() {
  15467. this.options.fillColor = this.color, U.prototype.drawGraph.call(this);
  15468. }, u.defaultOptions = w(N.defaultOptions, { marker: { enabled: !1, states: { hover: { enabled: !1 } } }, stickyTracking: !1, tooltip: { followPointer: !0, pointFormat: "" }, trackByArea: !0 }), u;
  15469. }(N), $(I.prototype, { type: "polygon", drawLegendSymbol: y.drawRectangle, drawTracker: H.prototype.drawTracker, setStackedPoints: h }), R.registerSeriesType("polygon", I), I;
  15470. }), E(g, "Core/Axis/WaterfallAxis.js", [g["Extensions/Stacking.js"], g["Core/Utilities.js"]], function(h, y) {
  15471. var R = y.addEvent, I = y.objectEach, Z;
  15472. return function(H) {
  15473. function $() {
  15474. var v = this.waterfall.stacks;
  15475. v && (v.changed = !1, delete v.alreadyChanged);
  15476. }
  15477. function U() {
  15478. var v = this.options.stackLabels;
  15479. v && v.enabled && this.waterfall.stacks && this.waterfall.renderStackTotals();
  15480. }
  15481. function W() {
  15482. for (var v = this.axes, u = this.series, d = u.length; d--; )
  15483. u[d].options.stacking && (v.forEach(function(P) {
  15484. P.isXAxis || (P.waterfall.stacks.changed = !0);
  15485. }), d = 0);
  15486. }
  15487. function N() {
  15488. this.waterfall || (this.waterfall = new w(this));
  15489. }
  15490. var w = function() {
  15491. function v(u) {
  15492. this.axis = u, this.stacks = { changed: !1 };
  15493. }
  15494. return v.prototype.renderStackTotals = function() {
  15495. var u = this.axis, d = u.waterfall.stacks, P = u.stacking && u.stacking.stackTotalGroup, O = new h(u, u.options.stackLabels, !1, 0, void 0);
  15496. this.dummyStackItem = O, I(d, function(B) {
  15497. I(B, function(C) {
  15498. O.total = C.stackTotal, C.label && (O.label = C.label), h.prototype.render.call(O, P), C.label = O.label, delete O.label;
  15499. });
  15500. }), O.total = null;
  15501. }, v;
  15502. }();
  15503. H.Composition = w, H.compose = function(v, u) {
  15504. R(v, "init", N), R(v, "afterBuildStacks", $), R(v, "afterRender", U), R(u, "beforeRedraw", W);
  15505. };
  15506. }(Z || (Z = {})), Z;
  15507. }), E(g, "Series/Waterfall/WaterfallPoint.js", [g["Series/Column/ColumnSeries.js"], g["Core/Series/Point.js"], g["Core/Utilities.js"]], function(h, y, R) {
  15508. var I = this && this.__extends || function() {
  15509. var H = function($, U) {
  15510. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(W, N) {
  15511. W.__proto__ = N;
  15512. } || function(W, N) {
  15513. for (var w in N)
  15514. N.hasOwnProperty(w) && (W[w] = N[w]);
  15515. }, H($, U);
  15516. };
  15517. return function($, U) {
  15518. function W() {
  15519. this.constructor = $;
  15520. }
  15521. H($, U), $.prototype = U === null ? Object.create(U) : (W.prototype = U.prototype, new W());
  15522. };
  15523. }(), Z = R.isNumber;
  15524. return function(H) {
  15525. function $() {
  15526. var U = H !== null && H.apply(this, arguments) || this;
  15527. return U.options = void 0, U.series = void 0, U;
  15528. }
  15529. return I($, H), $.prototype.getClassName = function() {
  15530. var U = y.prototype.getClassName.call(this);
  15531. return this.isSum ? U += " highcharts-sum" : this.isIntermediateSum && (U += " highcharts-intermediate-sum"), U;
  15532. }, $.prototype.isValid = function() {
  15533. return Z(this.y) || this.isSum || !!this.isIntermediateSum;
  15534. }, $;
  15535. }(h.prototype.pointClass);
  15536. }), E(g, "Series/Waterfall/WaterfallSeries.js", [g["Core/Axis/Axis.js"], g["Core/Chart/Chart.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"], g["Core/Axis/WaterfallAxis.js"], g["Series/Waterfall/WaterfallPoint.js"]], function(h, y, R, I, Z, H) {
  15537. var $ = this && this.__extends || function() {
  15538. var C = function(b, M) {
  15539. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  15540. x.__proto__ = a;
  15541. } || function(x, a) {
  15542. for (var c in a)
  15543. a.hasOwnProperty(c) && (x[c] = a[c]);
  15544. }, C(b, M);
  15545. };
  15546. return function(b, M) {
  15547. function x() {
  15548. this.constructor = b;
  15549. }
  15550. C(b, M), b.prototype = M === null ? Object.create(M) : (x.prototype = M.prototype, new x());
  15551. };
  15552. }(), U = R.seriesTypes, W = U.column, N = U.line, w = I.arrayMax, v = I.arrayMin, u = I.correctFloat;
  15553. U = I.extend;
  15554. var d = I.isNumber, P = I.merge, O = I.objectEach, B = I.pick;
  15555. return I = function(C) {
  15556. function b() {
  15557. var M = C !== null && C.apply(this, arguments) || this;
  15558. return M.chart = void 0, M.data = void 0, M.options = void 0, M.points = void 0, M.stackedYNeg = void 0, M.stackedYPos = void 0, M.stackKey = void 0, M.xData = void 0, M.yAxis = void 0, M.yData = void 0, M;
  15559. }
  15560. return $(b, C), b.prototype.generatePoints = function() {
  15561. var M;
  15562. W.prototype.generatePoints.apply(this);
  15563. var x = 0;
  15564. for (M = this.points.length; x < M; x++) {
  15565. var a = this.points[x], c = this.processedYData[x];
  15566. (a.isIntermediateSum || a.isSum) && (a.y = u(c));
  15567. }
  15568. }, b.prototype.translate = function() {
  15569. var M = this.options, x = this.yAxis, a = B(M.minPointLength, 5), c = a / 2, p = M.threshold || 0, i = p, l = p;
  15570. M = M.stacking;
  15571. var s = x.waterfall.stacks[this.stackKey];
  15572. W.prototype.translate.apply(this);
  15573. for (var t = this.points, n = 0; n < t.length; n++) {
  15574. var o = t[n], A = this.processedYData[n], _ = o.shapeArgs;
  15575. if (_ && d(A)) {
  15576. var D = [0, A], j = o.y;
  15577. if (M) {
  15578. if (s) {
  15579. if (D = s[n], M === "overlap") {
  15580. var T = D.stackState[D.stateIndex--];
  15581. T = 0 <= j ? T : T - j, Object.hasOwnProperty.call(D, "absolutePos") && delete D.absolutePos, Object.hasOwnProperty.call(D, "absoluteNeg") && delete D.absoluteNeg;
  15582. } else
  15583. 0 <= j ? (T = D.threshold + D.posTotal, D.posTotal -= j) : (T = D.threshold + D.negTotal, D.negTotal -= j, T -= j), !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);
  15584. o.isSum || (D.connectorThreshold = D.threshold + D.stackTotal), x.reversed ? (A = 0 <= j ? T - j : T + j, j = T) : (A = T, j = T - j), o.below = A <= p, _.y = x.translate(A, !1, !0, !1, !0) || 0, _.height = Math.abs(_.y - (x.translate(j, !1, !0, !1, !0) || 0)), (j = x.waterfall.dummyStackItem) && (j.x = n, j.label = s[n].label, j.setOffset(this.pointXOffset || 0, this.barW || 0, this.stackedYNeg[n], this.stackedYPos[n]));
  15585. }
  15586. } else
  15587. T = Math.max(i, i + j) + D[0], _.y = x.translate(
  15588. T,
  15589. !1,
  15590. !0,
  15591. !1,
  15592. !0
  15593. ) || 0, o.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, o.below = D[1] <= p) : o.isIntermediateSum ? (0 <= j ? (A = D[1] + l, j = l) : (A = l, j = D[1] + l), x.reversed && (A ^= j, j ^= A, A ^= j), _.y = x.translate(A, !1, !0, !1, !0) || 0, _.height = Math.abs(_.y - Math.min(x.translate(j, !1, !0, !1, !0) || 0, x.len)), l += D[1], o.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, o.below = i < p), 0 > _.height && (_.y += _.height, _.height *= -1);
  15594. o.plotY = _.y = Math.round(_.y || 0) - this.borderWidth % 2 / 2, _.height = Math.max(Math.round(_.height || 0), 1e-3), o.yBottom = _.y + _.height, _.height <= a && !o.isNull ? (_.height = a, _.y -= c, o.plotY = _.y, o.minPointLengthOffset = 0 > o.y ? -c : c) : (o.isNull && (_.width = 0), o.minPointLengthOffset = 0), j = o.plotY + (o.negative ? _.height : 0), o.below && (o.plotY += _.height), o.tooltipPos && (this.chart.inverted ? o.tooltipPos[0] = x.len - j : o.tooltipPos[1] = j);
  15595. }
  15596. }
  15597. }, b.prototype.processData = function(M) {
  15598. var x = this.options, a = this.yData, c = x.data, p = a.length, i = x.threshold || 0, l, s, t, n, o;
  15599. for (o = s = l = t = n = 0; o < p; o++) {
  15600. var A = a[o], _ = c && c[o] ? c[o] : {};
  15601. A === "sum" || _.isSum ? a[o] = u(s) : A === "intermediateSum" || _.isIntermediateSum ? (a[o] = u(l), l = 0) : (s += A, l += A), t = Math.min(s, t), n = Math.max(s, n);
  15602. }
  15603. C.prototype.processData.call(this, M), x.stacking || (this.dataMin = t + i, this.dataMax = n);
  15604. }, b.prototype.toYData = function(M) {
  15605. return M.isSum ? "sum" : M.isIntermediateSum ? "intermediateSum" : M.y;
  15606. }, b.prototype.updateParallelArrays = function(M, x) {
  15607. C.prototype.updateParallelArrays.call(this, M, x), (this.yData[0] === "sum" || this.yData[0] === "intermediateSum") && (this.yData[0] = null);
  15608. }, b.prototype.pointAttribs = function(M, x) {
  15609. var a = this.options.upColor;
  15610. return a && !M.options.color && (M.color = 0 < M.y ? a : null), M = W.prototype.pointAttribs.call(this, M, x), delete M.dashstyle, M;
  15611. }, b.prototype.getGraphPath = function() {
  15612. return [["M", 0, 0]];
  15613. }, b.prototype.getCrispPath = function() {
  15614. var M = this.data, x = this.yAxis, a = M.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 = [], n;
  15615. for (n = 1; n < a; n++) {
  15616. var o = M[n].shapeArgs, A = M[n - 1], _ = M[n - 1].shapeArgs, D = x.waterfall.stacks[this.stackKey], j = 0 < A.y ? -_.height : 0;
  15617. D && _ && o && (D = D[n - 1], s ? (D = D.connectorThreshold, j = Math.round(x.translate(D, 0, 1, 0, 1) + (l ? j : 0)) - c) : j = _.y + A.minPointLengthOffset + p - c, t.push(["M", (_.x || 0) + (i ? 0 : _.width || 0), j], ["L", (o.x || 0) + (i && o.width || 0), j])), _ && 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));
  15618. }
  15619. return t;
  15620. }, b.prototype.drawGraph = function() {
  15621. N.prototype.drawGraph.call(this), this.graph.attr({ d: this.getCrispPath() });
  15622. }, b.prototype.setStackedPoints = function() {
  15623. function M(F, Q, k, G) {
  15624. if (Y)
  15625. for (k; k < Y; k++)
  15626. X.stackState[k] += G;
  15627. else
  15628. X.stackState[0] = F, Y = X.stackState.length;
  15629. X.stackState.push(X.stackState[Y - 1] + Q);
  15630. }
  15631. 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, n, o, A;
  15632. this.yAxis.stacking.usePercentage = !1;
  15633. var _ = o = A = p;
  15634. if (this.visible || !this.chart.options.chart.ignoreHiddenSeries) {
  15635. var D = a.changed;
  15636. (n = a.alreadyChanged) && 0 > n.indexOf(l) && (D = !0), a[l] || (a[l] = {}), n = a[l];
  15637. for (var j = 0; j < t; j++) {
  15638. var T = s[j];
  15639. (!n[T] || D) && (n[T] = { negTotal: 0, posTotal: 0, stackTotal: 0, threshold: 0, stateIndex: 0, stackState: [], label: D && n[T] ? n[T].label : void 0 });
  15640. var X = n[T], f = this.yData[j];
  15641. 0 <= f ? X.posTotal += f : X.negTotal += f;
  15642. var m = x.data[j];
  15643. T = X.absolutePos = X.posTotal;
  15644. var L = X.absoluteNeg = X.negTotal;
  15645. X.stackTotal = T + L;
  15646. var Y = X.stackState.length;
  15647. m && m.isIntermediateSum ? (M(A, o, 0, A), A = o, o = c, p ^= i, i ^= p, p ^= i) : m && m.isSum ? (M(c, _, Y), p = c) : (M(p, f, 0, _), m && (_ += f, o += f)), X.stateIndex++, X.threshold = p, p += X.stackTotal;
  15648. }
  15649. a.changed = !1, a.alreadyChanged || (a.alreadyChanged = []), a.alreadyChanged.push(l);
  15650. }
  15651. }, b.prototype.getExtremes = function() {
  15652. var M = this.options.stacking;
  15653. if (M) {
  15654. var x = this.yAxis;
  15655. x = x.waterfall.stacks;
  15656. var a = this.stackedYNeg = [], c = this.stackedYPos = [];
  15657. return M === "overlap" ? O(x[this.stackKey], function(p) {
  15658. a.push(v(p.stackState)), c.push(w(p.stackState));
  15659. }) : O(x[this.stackKey], function(p) {
  15660. a.push(p.negTotal + p.threshold), c.push(p.posTotal + p.threshold);
  15661. }), { dataMin: v(a), dataMax: w(c) };
  15662. }
  15663. return { dataMin: this.dataMin, dataMax: this.dataMax };
  15664. }, b.defaultOptions = P(W.defaultOptions, { dataLabels: { inside: !0 }, lineWidth: 1, lineColor: "#333333", dashStyle: "Dot", borderColor: "#333333", states: { hover: { lineWidthPlus: 0 } } }), b;
  15665. }(W), U(I.prototype, { getZonesGraphs: N.prototype.getZonesGraphs, pointValKey: "y", showLine: !0, pointClass: H }), R.registerSeriesType("waterfall", I), Z.compose(h, y), I;
  15666. }), E(g, "Extensions/Polar.js", [
  15667. g["Core/Animation/AnimationUtilities.js"],
  15668. g["Core/Chart/Chart.js"],
  15669. g["Core/Globals.js"],
  15670. g["Extensions/Pane.js"],
  15671. g["Core/Pointer.js"],
  15672. g["Core/Series/Series.js"],
  15673. g["Core/Series/SeriesRegistry.js"],
  15674. g["Core/Renderer/SVG/SVGRenderer.js"],
  15675. g["Core/Utilities.js"]
  15676. ], function(h, y, R, I, Z, H, $, U, W) {
  15677. var N = h.animObject;
  15678. $ = $.seriesTypes;
  15679. var w = W.addEvent, v = W.defined, u = W.find, d = W.isNumber, P = W.pick, O = W.splat, B = W.uniqueKey;
  15680. h = W.wrap;
  15681. var C = H.prototype;
  15682. Z = Z.prototype, C.searchPointByAngle = function(x) {
  15683. var a = this.chart, c = this.xAxis.pane.center;
  15684. return this.searchKDTree({ clientX: 180 + -180 / Math.PI * Math.atan2(x.chartX - c[0] - a.plotLeft, x.chartY - c[1] - a.plotTop) });
  15685. }, C.getConnectors = function(x, a, c, p) {
  15686. var i = p ? 1 : 0, l = 0 <= a && a <= x.length - 1 ? a : 0 > a ? x.length - 1 + a : 0;
  15687. a = 0 > l - 1 ? x.length - (1 + i) : l - 1, i = l + 1 > x.length - 1 ? i : l + 1;
  15688. var s = x[a];
  15689. i = x[i];
  15690. var t = s.plotX;
  15691. s = s.plotY;
  15692. var n = i.plotX, o = i.plotY;
  15693. i = x[l].plotX, l = x[l].plotY, t = (1.5 * i + t) / 2.5, s = (1.5 * l + s) / 2.5, n = (1.5 * i + n) / 2.5;
  15694. var A = (1.5 * l + o) / 2.5;
  15695. o = Math.sqrt(Math.pow(t - i, 2) + Math.pow(s - l, 2));
  15696. var _ = Math.sqrt(Math.pow(n - i, 2) + Math.pow(A - l, 2));
  15697. return t = Math.atan2(s - l, t - i), A = Math.PI / 2 + (t + Math.atan2(A - l, n - i)) / 2, Math.abs(t - A) > Math.PI / 2 && (A -= Math.PI), t = i + Math.cos(A) * o, s = l + Math.sin(A) * o, n = i + Math.cos(Math.PI + A) * _, A = l + Math.sin(Math.PI + A) * _, i = { rightContX: n, rightContY: A, leftContX: t, leftContY: s, plotX: i, plotY: l }, c && (i.prevPointCont = this.getConnectors(x, a, !1, p)), i;
  15698. }, C.toXY = function(x) {
  15699. var a = this.chart, c = this.xAxis, p = this.yAxis, i = x.plotX, l = x.plotY, s = x.series, t = a.inverted, n = x.y, o = t ? i : p.len - l;
  15700. t && s && !s.isRadialBar && (x.plotY = l = typeof n == "number" && p.translate(n) || 0), x.rectPlotX = i, x.rectPlotY = l, p.center && (o += p.center[3] / 2), d(l) && (p = t ? p.postTranslate(l, o) : c.postTranslate(i, o), 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;
  15701. }, $.spline && (h($.spline.prototype, "getPointSpline", function(x, a, c, p) {
  15702. 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", d(a) ? a : x.plotX, d(c) ? c : x.plotY, d(x.leftContX) ? x.leftContX : x.plotX, d(x.leftContY) ? x.leftContY : x.plotY, x.plotX, x.plotY]) : x = ["M", c.plotX, c.plotY] : x = x.call(this, a, c, p), x;
  15703. }), $.areasplinerange && ($.areasplinerange.prototype.getPointSpline = $.spline.prototype.getPointSpline)), w(H, "afterTranslate", function() {
  15704. var x = this.chart;
  15705. if (x.polar && this.xAxis) {
  15706. if ((this.kdByAngle = x.tooltip && x.tooltip.shared) ? this.searchPoint = this.searchPointByAngle : this.options.findNearestPointBy = "xy", !this.preventPostTranslate)
  15707. for (var a = this.points, c = a.length; c--; )
  15708. this.toXY(a[c]), !x.hasParallelCoordinates && !this.yAxis.reversed && a[c].y < this.yAxis.min && (a[c].isNull = !0);
  15709. this.hasClipCircleSetter || (this.hasClipCircleSetter = !!this.eventsToUnbind.push(w(this, "afterRender", function() {
  15710. if (x.polar) {
  15711. var p = this.yAxis.pane.center;
  15712. 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 = R.noop;
  15713. }
  15714. })));
  15715. }
  15716. }, { order: 2 }), h(
  15717. $.line.prototype,
  15718. "getGraphPath",
  15719. function(x, a) {
  15720. var c = this, p;
  15721. if (this.chart.polar) {
  15722. for (a = a || this.points, p = 0; p < a.length; p++)
  15723. if (!a[p].isNull) {
  15724. var i = p;
  15725. break;
  15726. }
  15727. if (this.options.connectEnds !== !1 && typeof i < "u") {
  15728. this.connectEnds = !0, a.splice(a.length, 0, a[i]);
  15729. var l = !0;
  15730. }
  15731. a.forEach(function(s) {
  15732. typeof s.polarPlotY > "u" && c.toXY(s);
  15733. });
  15734. }
  15735. return p = x.apply(this, [].slice.call(arguments, 1)), l && a.pop(), p;
  15736. }
  15737. );
  15738. var b = function(x, a) {
  15739. var c = this, p = this.chart, i = this.options.animation, l = this.group, s = this.markerGroup, t = this.xAxis && this.xAxis.center, n = p.plotLeft, o = p.plotTop, A, _, D, j;
  15740. if (p.polar) {
  15741. if (c.isRadialBar)
  15742. a || (c.startAngleRad = P(c.translatedThreshold, c.xAxis.startAngleRad), R.seriesTypes.pie.prototype.animate.call(c, a));
  15743. else if (p.renderer.isSVG)
  15744. if (i = N(i), c.is("column")) {
  15745. if (!a) {
  15746. var T = t[3] / 2;
  15747. c.points.forEach(function(X) {
  15748. A = X.graphic, D = (_ = X.shapeArgs) && _.r, j = _ && _.innerR, A && _ && (A.attr({ r: T, innerR: T }), A.animate({ r: D, innerR: j }, c.options.animation));
  15749. });
  15750. }
  15751. } else
  15752. a ? (x = { translateX: t[0] + n, translateY: t[1] + o, scaleX: 1e-3, scaleY: 1e-3 }, l.attr(x), s && s.attr(x)) : (x = { translateX: n, translateY: o, scaleX: 1, scaleY: 1 }, l.animate(x, i), s && s.animate(x, i));
  15753. } else
  15754. x.call(this, a);
  15755. };
  15756. if (h(C, "animate", b), $.column) {
  15757. var M = $.arearange.prototype;
  15758. $ = $.column.prototype, $.polarArc = function(x, a, c, p) {
  15759. var i = this.xAxis.center, l = this.yAxis.len, s = i[3] / 2;
  15760. 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 };
  15761. }, h($, "animate", b), h($, "translate", function(x) {
  15762. var a = this.options, c = a.stacking, p = this.chart, i = this.xAxis, l = this.yAxis, s = l.reversed, t = l.center, n = i.startAngleRad, o = i.endAngleRad - n;
  15763. if (this.preventPostTranslate = !0, x.call(this), i.isRadial) {
  15764. x = this.points, i = x.length;
  15765. var A = l.translate(l.min), _ = l.translate(l.max);
  15766. if (a = a.threshold || 0, p.inverted && d(a)) {
  15767. var D = l.translate(a);
  15768. v(D) && (0 > D ? D = 0 : D > o && (D = o), this.translatedThreshold = D + n);
  15769. }
  15770. for (; i--; ) {
  15771. a = x[i];
  15772. var j = a.barX, T = a.x, X = a.y;
  15773. if (a.shapeType = "arc", p.inverted) {
  15774. if (a.plotY = l.translate(X), c && l.stacking) {
  15775. if (X = l.stacking.stacks[(0 > X ? "-" : "") + this.stackKey], this.visible && X && X[T] && !a.isNull) {
  15776. var f = X[T].points[this.getStackIndicator(void 0, T, this.index).key], m = l.translate(f[0]);
  15777. f = l.translate(f[1]), v(m) && (m = W.clamp(m, 0, o));
  15778. }
  15779. } else
  15780. m = D, f = a.plotY;
  15781. m > f && (f = [m, m = f][0]), s ? f > A ? f = A : m < _ ? m = _ : (m > A || f < _) && (m = f = o) : m < A ? m = A : f > _ ? f = _ : (f < A || m > _) && (m = f = 0), l.min > l.max && (m = f = s ? o : 0), m += n, f += n, t && (a.barX = j += t[3] / 2), T = Math.max(j, 0), X = Math.max(j + a.pointWidth, 0), a.shapeArgs = { x: t && t[0], y: t && t[1], r: X, innerR: T, start: m, end: f }, a.opacity = m === f ? 0 : void 0, a.plotY = (v(this.translatedThreshold) && (m < this.translatedThreshold ? m : f)) - n;
  15782. } else
  15783. m = j + n, a.shapeArgs = this.polarArc(a.yBottom, a.plotY, m, m + a.pointWidth);
  15784. this.toXY(a), p.inverted ? (j = l.postTranslate(a.rectPlotY, j + a.pointWidth / 2), a.tooltipPos = [j.x - p.plotLeft, j.y - p.plotTop]) : a.tooltipPos = [a.plotX, a.plotY], t && (a.ttBelow = a.plotY > t[1]);
  15785. }
  15786. }
  15787. }), $.findAlignments = function(x, a) {
  15788. 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;
  15789. }, M && (M.findAlignments = $.findAlignments), h($, "alignDataLabel", function(x, a, c, p, i, l) {
  15790. var s = this.chart, t = P(p.inside, !!this.options.stacking);
  15791. 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(
  15792. p.verticalAlign,
  15793. "middle"
  15794. )) : 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);
  15795. });
  15796. }
  15797. h(Z, "getCoordinates", function(x, a) {
  15798. var c = this.chart, p = { xAxis: [], yAxis: [] };
  15799. return c.polar ? c.axes.forEach(function(i) {
  15800. var l = i.isXAxis, s = i.center;
  15801. if (i.coll !== "colorAxis") {
  15802. var t = a.chartX - s[0] - c.plotLeft;
  15803. 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(
  15804. t,
  15805. 2
  15806. ) + Math.pow(s, 2)), !0) });
  15807. }
  15808. }) : p = x.call(this, a), p;
  15809. }), U.prototype.clipCircle = function(x, a, c, p) {
  15810. var i = B(), l = this.createElement("clipPath").attr({ id: i }).add(this.defs);
  15811. 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;
  15812. }, w(y, "getAxes", function() {
  15813. this.pane || (this.pane = []), this.options.pane = O(this.options.pane), this.options.pane.forEach(function(x) {
  15814. new I(x, this);
  15815. }, this);
  15816. }), w(y, "afterDrawChartBox", function() {
  15817. this.pane.forEach(function(x) {
  15818. x.render();
  15819. });
  15820. }), w(
  15821. H,
  15822. "afterInit",
  15823. function() {
  15824. var x = this.chart;
  15825. x.inverted && x.polar && (this.isRadialSeries = !0, this.is("column") && (this.isRadialBar = !0));
  15826. }
  15827. ), h(y.prototype, "get", function(x, a) {
  15828. return u(this.pane || [], function(c) {
  15829. return c.options.id === a;
  15830. }) || x.call(this, a);
  15831. });
  15832. }), E(g, "masters/highcharts-more.src.js", [g["Core/Globals.js"], g["Core/Axis/RadialAxis.js"], g["Series/Bubble/BubbleSeries.js"]], function(h, y, R) {
  15833. y.compose(h.Axis, h.Tick), R.compose(h.Chart, h.Legend, h.Series);
  15834. });
  15835. });
  15836. })(Xp);
  15837. var O0 = Xp.exports;
  15838. const L0 = /* @__PURE__ */ Cn(O0);
  15839. var Gp = { exports: {} };
  15840. (function(r) {
  15841. (function(g) {
  15842. r.exports ? (g.default = g, r.exports = g) : g(typeof Highcharts < "u" ? Highcharts : void 0);
  15843. })(function(g) {
  15844. function E(h, y, R, I) {
  15845. h.hasOwnProperty(y) || (h[y] = I.apply(null, R));
  15846. }
  15847. g = g ? g._modules : {}, E(
  15848. g,
  15849. "Extensions/FullScreen.js",
  15850. [g["Core/Chart/Chart.js"], g["Core/Globals.js"], g["Core/Renderer/HTML/AST.js"], g["Core/Utilities.js"]],
  15851. function(h, y, R, I) {
  15852. var Z = I.addEvent;
  15853. return I = function() {
  15854. function H($) {
  15855. this.chart = $, this.isOpen = !1, $ = $.renderTo, this.browserProps || (typeof $.requestFullscreen == "function" ? this.browserProps = { fullscreenChange: "fullscreenchange", requestFullscreen: "requestFullscreen", exitFullscreen: "exitFullscreen" } : $.mozRequestFullScreen ? this.browserProps = { fullscreenChange: "mozfullscreenchange", requestFullscreen: "mozRequestFullScreen", exitFullscreen: "mozCancelFullScreen" } : $.webkitRequestFullScreen ? this.browserProps = {
  15856. fullscreenChange: "webkitfullscreenchange",
  15857. requestFullscreen: "webkitRequestFullScreen",
  15858. exitFullscreen: "webkitExitFullscreen"
  15859. } : $.msRequestFullscreen && (this.browserProps = { fullscreenChange: "MSFullscreenChange", requestFullscreen: "msRequestFullscreen", exitFullscreen: "msExitFullscreen" }));
  15860. }
  15861. return H.prototype.close = function() {
  15862. var $ = this.chart, U = $.options.chart;
  15863. this.isOpen && this.browserProps && $.container.ownerDocument instanceof Document && $.container.ownerDocument[this.browserProps.exitFullscreen](), this.unbindFullscreenEvent && (this.unbindFullscreenEvent = this.unbindFullscreenEvent()), $.setSize(this.origWidth, this.origHeight, !1), this.origHeight = this.origWidth = void 0, U.width = this.origWidthOption, U.height = this.origHeightOption, this.origHeightOption = this.origWidthOption = void 0, this.isOpen = !1, this.setButtonText();
  15864. }, H.prototype.open = function() {
  15865. var $ = this, U = $.chart, W = U.options.chart;
  15866. if (W && ($.origWidthOption = W.width, $.origHeightOption = W.height), $.origWidth = U.chartWidth, $.origHeight = U.chartHeight, $.browserProps) {
  15867. var N = Z(
  15868. U.container.ownerDocument,
  15869. $.browserProps.fullscreenChange,
  15870. function() {
  15871. $.isOpen ? ($.isOpen = !1, $.close()) : (U.setSize(null, null, !1), $.isOpen = !0, $.setButtonText());
  15872. }
  15873. ), w = Z(U, "destroy", N);
  15874. $.unbindFullscreenEvent = function() {
  15875. N(), w();
  15876. }, (W = U.renderTo[$.browserProps.requestFullscreen]()) && W.catch(function() {
  15877. alert("Full screen is not supported inside a frame.");
  15878. });
  15879. }
  15880. }, H.prototype.setButtonText = function() {
  15881. var $ = this.chart, U = $.exportDivElements, W = $.options.exporting, N = W && W.buttons && W.buttons.contextButton.menuItems;
  15882. $ = $.options.lang, W && W.menuItemDefinitions && $ && $.exitFullscreen && $.viewFullscreen && N && U && (U = U[N.indexOf("viewFullscreen")]) && R.setElementHTML(U, this.isOpen ? $.exitFullscreen : W.menuItemDefinitions.viewFullscreen.text || $.viewFullscreen);
  15883. }, H.prototype.toggle = function() {
  15884. this.isOpen ? this.close() : this.open();
  15885. }, H;
  15886. }(), y.Fullscreen = I, Z(h, "beforeRender", function() {
  15887. this.fullscreen = new y.Fullscreen(this);
  15888. }), y.Fullscreen;
  15889. }
  15890. ), E(g, "Core/Chart/ChartNavigationComposition.js", [], function() {
  15891. var h;
  15892. return function(y) {
  15893. y.compose = function(I) {
  15894. return I.navigation || (I.navigation = new R(I)), I;
  15895. };
  15896. var R = function() {
  15897. function I(Z) {
  15898. this.updates = [], this.chart = Z;
  15899. }
  15900. return I.prototype.addUpdate = function(Z) {
  15901. this.chart.navigation.updates.push(Z);
  15902. }, I.prototype.update = function(Z, H) {
  15903. var $ = this;
  15904. this.updates.forEach(function(U) {
  15905. U.call($.chart, Z, H);
  15906. });
  15907. }, I;
  15908. }();
  15909. y.Additions = R;
  15910. }(h || (h = {})), h;
  15911. }), E(g, "Extensions/Exporting/ExportingDefaults.js", [g["Core/Globals.js"]], function(h) {
  15912. return { exporting: { type: "image/png", url: "https://export.highcharts.com/", printMaxWidth: 780, scale: 2, buttons: { contextButton: {
  15913. className: "highcharts-contextbutton",
  15914. menuClassName: "highcharts-contextmenu",
  15915. symbol: "menu",
  15916. titleKey: "contextButtonTitle",
  15917. menuItems: "viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")
  15918. } }, menuItemDefinitions: { viewFullscreen: { textKey: "viewFullscreen", onclick: function() {
  15919. this.fullscreen.toggle();
  15920. } }, printChart: { textKey: "printChart", onclick: function() {
  15921. this.print();
  15922. } }, separator: { separator: !0 }, downloadPNG: { textKey: "downloadPNG", onclick: function() {
  15923. this.exportChart();
  15924. } }, downloadJPEG: {
  15925. textKey: "downloadJPEG",
  15926. onclick: function() {
  15927. this.exportChart({ type: "image/jpeg" });
  15928. }
  15929. }, downloadPDF: { textKey: "downloadPDF", onclick: function() {
  15930. this.exportChart({ type: "application/pdf" });
  15931. } }, downloadSVG: { textKey: "downloadSVG", onclick: function() {
  15932. this.exportChart({ type: "image/svg+xml" });
  15933. } } } }, lang: {
  15934. viewFullscreen: "View in full screen",
  15935. exitFullscreen: "Exit from full screen",
  15936. printChart: "Print chart",
  15937. downloadPNG: "Download PNG image",
  15938. downloadJPEG: "Download JPEG image",
  15939. downloadPDF: "Download PDF document",
  15940. downloadSVG: "Download SVG vector image",
  15941. contextButtonTitle: "Chart context menu"
  15942. }, 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: {
  15943. background: "#335cad",
  15944. color: "#ffffff"
  15945. } } };
  15946. }), E(g, "Extensions/Exporting/ExportingSymbols.js", [], function() {
  15947. var h;
  15948. return function(y) {
  15949. function R(H, $, U, W) {
  15950. return [["M", H, $ + 2.5], ["L", H + U, $ + 2.5], ["M", H, $ + W / 2 + 0.5], ["L", H + U, $ + W / 2 + 0.5], ["M", H, $ + W - 1.5], ["L", H + U, $ + W - 1.5]];
  15951. }
  15952. function I(H, $, U, W) {
  15953. return H = W / 3 - 2, W = [], W = W.concat(this.circle(U - H, $, H, H), this.circle(U - H, $ + H + 4, H, H), this.circle(U - H, $ + 2 * (H + 4), H, H));
  15954. }
  15955. var Z = [];
  15956. y.compose = function(H) {
  15957. Z.indexOf(H) === -1 && (Z.push(H), H = H.prototype.symbols, H.menu = R, H.menuball = I.bind(H));
  15958. };
  15959. }(h || (h = {})), h;
  15960. }), E(g, "Core/HttpUtilities.js", [g["Core/Globals.js"], g["Core/Utilities.js"]], function(h, y) {
  15961. var R = h.doc, I = y.createElement, Z = y.discardElement, H = y.merge, $ = y.objectEach, U = { ajax: function(W) {
  15962. var N = H(!0, { url: !1, type: "get", dataType: "json", success: !1, error: !1, data: !1, headers: {} }, W);
  15963. W = { json: "application/json", xml: "application/xml", text: "text/plain", octet: "application/octet-stream" };
  15964. var w = new XMLHttpRequest();
  15965. if (!N.url)
  15966. return !1;
  15967. w.open(N.type.toUpperCase(), N.url, !0), N.headers["Content-Type"] || w.setRequestHeader(
  15968. "Content-Type",
  15969. W[N.dataType] || W.text
  15970. ), $(N.headers, function(v, u) {
  15971. w.setRequestHeader(u, v);
  15972. }), w.onreadystatechange = function() {
  15973. if (w.readyState === 4) {
  15974. if (w.status === 200) {
  15975. var v = w.responseText;
  15976. if (N.dataType === "json")
  15977. try {
  15978. v = JSON.parse(v);
  15979. } catch (u) {
  15980. N.error && N.error(w, u);
  15981. return;
  15982. }
  15983. return N.success && N.success(v);
  15984. }
  15985. N.error && N.error(w, w.responseText);
  15986. }
  15987. };
  15988. try {
  15989. N.data = JSON.stringify(N.data);
  15990. } catch {
  15991. }
  15992. w.send(N.data || !0);
  15993. }, getJSON: function(W, N) {
  15994. U.ajax({ url: W, success: N, dataType: "json", headers: { "Content-Type": "text/plain" } });
  15995. }, post: function(W, N, w) {
  15996. var v = I("form", H({ method: "post", action: W, enctype: "multipart/form-data" }, w), { display: "none" }, R.body);
  15997. $(N, function(u, d) {
  15998. I("input", { type: "hidden", name: d, value: u }, null, v);
  15999. }), v.submit(), Z(v);
  16000. } };
  16001. return U;
  16002. }), E(g, "Extensions/Exporting/Exporting.js", [
  16003. g["Core/Renderer/HTML/AST.js"],
  16004. g["Core/Chart/Chart.js"],
  16005. g["Core/Chart/ChartNavigationComposition.js"],
  16006. g["Core/DefaultOptions.js"],
  16007. g["Extensions/Exporting/ExportingDefaults.js"],
  16008. g["Extensions/Exporting/ExportingSymbols.js"],
  16009. g["Core/Globals.js"],
  16010. g["Core/HttpUtilities.js"],
  16011. g["Core/Utilities.js"]
  16012. ], function(h, y, R, I, Z, H, $, U, W) {
  16013. y = I.defaultOptions;
  16014. var N = $.doc, w = $.win, v = W.addEvent, u = W.css, d = W.createElement, P = W.discardElement, O = W.extend, B = W.find, C = W.fireEvent, b = W.isObject, M = W.merge, x = W.objectEach, a = W.pick, c = W.removeEvent, p = W.uniqueKey, i;
  16015. return function(l) {
  16016. function s(nt) {
  16017. var rt = this, ct = rt.renderer, gt = M(rt.options.navigation.buttonOptions, nt), dt = gt.onclick, lt = gt.menuItems, at = gt.symbolSize || 12;
  16018. if (rt.btnCount || (rt.btnCount = 0), rt.exportDivElements || (rt.exportDivElements = [], rt.exportSVGElements = []), gt.enabled !== !1 && gt.theme) {
  16019. var J = gt.theme, tt = J.states, st = tt && tt.hover;
  16020. tt = tt && tt.select;
  16021. var ht;
  16022. rt.styledMode || (J.fill = a(J.fill, "#ffffff"), J.stroke = a(J.stroke, "none")), delete J.states, dt ? ht = function(vt) {
  16023. vt && vt.stopPropagation(), dt.call(rt, vt);
  16024. } : lt && (ht = function(vt) {
  16025. vt && vt.stopPropagation(), rt.contextMenu(pt.menuClassName, lt, pt.translateX, pt.translateY, pt.width, pt.height, pt), pt.setState(2);
  16026. }), 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"));
  16027. 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], "") });
  16028. if (pt.menuClassName = nt.menuClassName || "highcharts-menu-" + rt.btnCount++, gt.symbol) {
  16029. 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);
  16030. rt.styledMode || yt.attr({ stroke: gt.symbolStroke, fill: gt.symbolFill, "stroke-width": gt.symbolStrokeWidth || 1 });
  16031. }
  16032. pt.add(rt.exportingGroup).align(O(
  16033. gt,
  16034. { width: pt.width, x: a(gt.x, rt.buttonOffset) }
  16035. ), !0, "spacingBox"), rt.buttonOffset += (pt.width + gt.buttonSpacing) * (gt.align === "right" ? -1 : 1), rt.exportSVGElements.push(pt, yt);
  16036. }
  16037. }
  16038. function t() {
  16039. if (this.printReverseInfo) {
  16040. var nt = this.printReverseInfo, rt = nt.childNodes, ct = nt.origDisplay;
  16041. nt = nt.resetParams, this.moveContainers(this.renderTo), [].forEach.call(rt, function(gt, dt) {
  16042. gt.nodeType === 1 && (gt.style.display = ct[dt] || "");
  16043. }), this.isPrinting = !1, nt && this.setSize.apply(this, nt), delete this.printReverseInfo, et = void 0, C(this, "afterPrint");
  16044. }
  16045. }
  16046. function n() {
  16047. var nt = N.body, rt = this.options.exporting.printMaxWidth, ct = { childNodes: nt.childNodes, origDisplay: [], resetParams: void 0 };
  16048. 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) {
  16049. gt.nodeType === 1 && (ct.origDisplay[dt] = gt.style.display, gt.style.display = "none");
  16050. }), this.moveContainers(nt), this.printReverseInfo = ct;
  16051. }
  16052. function o(nt) {
  16053. nt.renderExporting(), v(nt, "redraw", nt.renderExporting), v(nt, "destroy", nt.destroyExport);
  16054. }
  16055. function A(nt, rt, ct, gt, dt, lt, at) {
  16056. var J = this, tt = J.options.navigation, st = J.chartWidth, ht = J.chartHeight, pt = "cache-" + nt, yt = Math.max(dt, lt), vt = J[pt];
  16057. if (!vt) {
  16058. J.exportContextMenu = J[pt] = vt = d("div", { className: nt }, { position: "absolute", zIndex: 1e3, padding: yt + "px", pointerEvents: "auto" }, J.fixedDiv || J.container);
  16059. var Ct = d("ul", { className: "highcharts-menu" }, { listStyle: "none", margin: 0, padding: 0 }, vt);
  16060. J.styledMode || u(Ct, O(
  16061. { MozBoxShadow: "3px 3px 10px #888", WebkitBoxShadow: "3px 3px 10px #888", boxShadow: "3px 3px 10px #888" },
  16062. tt.menuStyle
  16063. )), vt.hideMenu = function() {
  16064. u(vt, { display: "none" }), at && at.setState(0), J.openMenu = !1, u(J.renderTo, { overflow: "hidden" }), u(J.container, { overflow: "hidden" }), W.clearTimeout(vt.hideTimer), C(J, "exportMenuHidden");
  16065. }, J.exportEvents.push(v(vt, "mouseleave", function() {
  16066. vt.hideTimer = w.setTimeout(vt.hideMenu, 500);
  16067. }), v(vt, "mouseenter", function() {
  16068. W.clearTimeout(vt.hideTimer);
  16069. }), v(N, "mouseup", function(Tt) {
  16070. J.pointer.inClass(Tt.target, nt) || vt.hideMenu();
  16071. }), v(vt, "click", function() {
  16072. J.openMenu && vt.hideMenu();
  16073. })), rt.forEach(function(Tt) {
  16074. if (typeof Tt == "string" && (Tt = J.options.exporting.menuItemDefinitions[Tt]), b(Tt, !0)) {
  16075. var kt = void 0;
  16076. Tt.separator ? kt = d("hr", void 0, void 0, Ct) : (Tt.textKey === "viewData" && J.isDataTableVisible && (Tt.textKey = "hideData"), kt = d("li", { className: "highcharts-menu-item", onclick: function(St) {
  16077. St && St.stopPropagation(), vt.hideMenu(), Tt.onclick && Tt.onclick.apply(J, arguments);
  16078. } }, void 0, Ct), h.setElementHTML(kt, Tt.text || J.options.lang[Tt.textKey]), J.styledMode || (kt.onmouseover = function() {
  16079. u(this, tt.menuItemHoverStyle);
  16080. }, kt.onmouseout = function() {
  16081. u(this, tt.menuItemStyle);
  16082. }, u(kt, O({ cursor: "pointer" }, tt.menuItemStyle)))), J.exportDivElements.push(kt);
  16083. }
  16084. }), J.exportDivElements.push(Ct, vt), J.exportMenuWidth = vt.offsetWidth, J.exportMenuHeight = vt.offsetHeight;
  16085. }
  16086. 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", u(vt, rt), u(J.renderTo, { overflow: "" }), u(J.container, { overflow: "" }), J.openMenu = !0, C(J, "exportMenuShown");
  16087. }
  16088. function _(nt) {
  16089. var rt = nt ? nt.target : this, ct = rt.exportSVGElements, gt = rt.exportDivElements;
  16090. nt = rt.exportEvents;
  16091. var dt;
  16092. ct && (ct.forEach(function(lt, at) {
  16093. lt && (lt.onclick = lt.ontouchstart = null, dt = "cache-" + lt.menuClassName, rt[dt] && delete rt[dt], ct[at] = lt.destroy());
  16094. }), ct.length = 0), rt.exportingGroup && (rt.exportingGroup.destroy(), delete rt.exportingGroup), gt && (gt.forEach(function(lt, at) {
  16095. lt && (W.clearTimeout(lt.hideTimer), c(lt, "mouseleave"), gt[at] = lt.onmouseout = lt.onmouseover = lt.ontouchstart = lt.onclick = null, P(lt));
  16096. }), gt.length = 0), nt && (nt.forEach(function(lt) {
  16097. lt();
  16098. }), nt.length = 0);
  16099. }
  16100. function D(nt, rt) {
  16101. rt = this.getSVGForExport(nt, rt), nt = M(this.options.exporting, nt), U.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);
  16102. }
  16103. function j() {
  16104. return this.styledMode && this.inlineStyles(), this.container.innerHTML;
  16105. }
  16106. function T() {
  16107. var nt = this.userOptions.title && this.userOptions.title.text, rt = this.options.exporting.filename;
  16108. return rt ? rt.replace(/\//g, "-") : (typeof nt == "string" && (rt = nt.toLowerCase().replace(/<\/?[^>]+(>|$)/g, "").replace(/[\s_]+/g, "-").replace(
  16109. /[^a-z0-9\-]/g,
  16110. ""
  16111. ).replace(/^[\-]+/g, "").replace(/[\-]+/g, "-").substr(0, 24).replace(/[\-]+$/g, "")), (!rt || 5 > rt.length) && (rt = "chart"), rt);
  16112. }
  16113. function X(nt) {
  16114. var rt, ct = M(this.options, nt);
  16115. ct.plotOptions = M(this.userOptions.plotOptions, nt && nt.plotOptions), ct.time = M(this.userOptions.time, nt && nt.time);
  16116. var gt = d("div", null, { position: "absolute", top: "-9999em", width: this.chartWidth + "px", height: this.chartHeight + "px" }, N.body), dt = this.renderTo.style.width, lt = this.renderTo.style.height;
  16117. 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) {
  16118. rt = M(tt.userOptions, { animation: !1, enableMouseTracking: !1, showCheckbox: !1, visible: tt.visible }), rt.isInternal || ct.series.push(rt);
  16119. });
  16120. var at = {};
  16121. this.axes.forEach(function(tt) {
  16122. tt.userOptions.internalKey || (tt.userOptions.internalKey = p()), tt.options.isInternal || (at[tt.coll] || (at[tt.coll] = !0, ct[tt.coll] = []), ct[tt.coll].push(M(tt.userOptions, { visible: tt.visible })));
  16123. });
  16124. var J = new this.constructor(ct, this.callback);
  16125. return nt && ["xAxis", "yAxis", "series"].forEach(function(tt) {
  16126. var st = {};
  16127. nt[tt] && (st[tt] = nt[tt], J.update(st));
  16128. }), this.axes.forEach(function(tt) {
  16129. var st = B(J.axes, function(yt) {
  16130. return yt.options.internalKey === tt.userOptions.internalKey;
  16131. }), ht = tt.getExtremes(), pt = ht.userMin;
  16132. ht = ht.userMax, st && (typeof pt < "u" && pt !== st.min || typeof ht < "u" && ht !== st.max) && st.setExtremes(
  16133. pt,
  16134. ht,
  16135. !0,
  16136. !1
  16137. );
  16138. }), lt = J.getChartHTML(), C(this, "getSVG", { chartCopy: J }), lt = this.sanitizeSVG(lt, ct), ct = null, J.destroy(), P(gt), lt;
  16139. }
  16140. function f(nt, rt) {
  16141. var ct = this.options.exporting;
  16142. return this.getSVG(M({ chart: { borderRadius: 0 } }, ct.chartOptions, rt, { exporting: { sourceWidth: nt && nt.sourceWidth || ct.sourceWidth, sourceHeight: nt && nt.sourceHeight || ct.sourceHeight } }));
  16143. }
  16144. function m(nt) {
  16145. return nt.replace(/([A-Z])/g, function(rt, ct) {
  16146. return "-" + ct.toLowerCase();
  16147. });
  16148. }
  16149. function L() {
  16150. function nt(J) {
  16151. function tt(St, _t) {
  16152. if (ht = pt = !1, ct.length) {
  16153. for (yt = ct.length; yt-- && !pt; )
  16154. pt = ct[yt].test(_t);
  16155. ht = !pt;
  16156. }
  16157. for (_t === "transform" && St === "none" && (ht = !0), yt = rt.length; yt-- && !ht; )
  16158. ht = rt[yt].test(_t) || typeof St == "function";
  16159. ht || Ct[_t] === St && J.nodeName !== "svg" || gt[J.nodeName][_t] === St || (q && q.indexOf(_t) === -1 ? st += m(_t) + ":" + St + ";" : St && J.setAttribute(m(_t), St));
  16160. }
  16161. var st = "", ht, pt, yt;
  16162. if (J.nodeType === 1 && it.indexOf(J.nodeName) === -1) {
  16163. var vt = w.getComputedStyle(J, null), Ct = J.nodeName === "svg" ? {} : w.getComputedStyle(J.parentNode, null);
  16164. if (!gt[J.nodeName]) {
  16165. dt = at.getElementsByTagName("svg")[0];
  16166. var Tt = at.createElementNS(J.namespaceURI, J.nodeName);
  16167. dt.appendChild(Tt), gt[J.nodeName] = M(w.getComputedStyle(Tt, null)), J.nodeName === "text" && delete gt.text.fill, dt.removeChild(Tt);
  16168. }
  16169. if ($.isFirefox || $.isMS)
  16170. for (var kt in vt)
  16171. tt(vt[kt], kt);
  16172. else
  16173. x(vt, tt);
  16174. 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);
  16175. }
  16176. }
  16177. var rt = V, ct = l.inlineWhitelist, gt = {}, dt, lt = N.createElement("iframe");
  16178. u(lt, { width: "1px", height: "1px", visibility: "hidden" }), N.body.appendChild(lt);
  16179. var at = lt.contentWindow.document;
  16180. 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);
  16181. }
  16182. function Y(nt) {
  16183. (this.fixedDiv ? [this.fixedDiv, this.scrollingContainer] : [this.container]).forEach(function(rt) {
  16184. nt.appendChild(rt);
  16185. });
  16186. }
  16187. function F() {
  16188. var nt = this;
  16189. nt.exporting = { update: function(rt, ct) {
  16190. nt.isDirtyExporting = !0, M(!0, nt.options.exporting, rt), a(ct, !0) && nt.redraw();
  16191. } }, R.compose(nt).navigation.addUpdate(function(rt, ct) {
  16192. nt.isDirtyExporting = !0, M(!0, nt.options.navigation, rt), a(ct, !0) && nt.redraw();
  16193. });
  16194. }
  16195. function Q() {
  16196. var nt = this;
  16197. nt.isPrinting || (et = nt, $.isSafari || nt.beforePrint(), setTimeout(function() {
  16198. w.focus(), w.print(), $.isSafari || setTimeout(function() {
  16199. nt.afterPrint();
  16200. }, 1e3);
  16201. }, 1));
  16202. }
  16203. function k() {
  16204. var nt = this, rt = nt.options.exporting, ct = rt.buttons, gt = nt.isDirtyExporting || !nt.exportSVGElements;
  16205. 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) {
  16206. nt.addButton(dt);
  16207. }), nt.isDirtyExporting = !1);
  16208. }
  16209. function G(nt, rt) {
  16210. var ct = nt.indexOf("</svg>") + 6, gt = nt.substr(ct);
  16211. 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(
  16212. /jQuery[0-9]+="[^"]+"/g,
  16213. ""
  16214. ).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;
  16215. }
  16216. var z = [], V = [
  16217. /-/,
  16218. /^(clipPath|cssText|d|height|width)$/,
  16219. /^font$/,
  16220. /[lL]ogical(Width|Height)$/,
  16221. /perspective/,
  16222. /TapHighlightColor/,
  16223. /^transition/,
  16224. /^length$/
  16225. ], q = "fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" ");
  16226. l.inlineWhitelist = [];
  16227. var it = ["clipPath", "defs", "desc"], et;
  16228. l.compose = function(nt, rt) {
  16229. H.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 = j, rt.getSVG = X, rt.getSVGForExport = f, rt.getFilename = T, rt.moveContainers = Y, rt.beforePrint = n, rt.contextMenu = A, rt.addButton = s, rt.destroyExport = _, rt.renderExporting = k, rt.callbacks.push(o), v(nt, "init", F), $.isSafari && $.win.matchMedia("print").addListener(function(ct) {
  16230. et && (ct.matches ? et.beforePrint() : et.afterPrint());
  16231. }));
  16232. };
  16233. }(i || (i = {})), y.exporting = M(Z.exporting, y.exporting), y.lang = M(Z.lang, y.lang), y.navigation = M(Z.navigation, y.navigation), i;
  16234. }), E(g, "masters/modules/exporting.src.js", [g["Core/Globals.js"], g["Extensions/Exporting/Exporting.js"], g["Core/HttpUtilities.js"]], function(h, y, R) {
  16235. h.HttpUtilities = R, h.ajax = R.ajax, h.getJSON = R.getJSON, h.post = R.post, y.compose(h.Chart, h.Renderer);
  16236. });
  16237. });
  16238. })(Gp);
  16239. var _0 = Gp.exports;
  16240. const D0 = /* @__PURE__ */ Cn(_0);
  16241. var Hp = { exports: {} };
  16242. (function(r) {
  16243. (function(g) {
  16244. r.exports ? (g.default = g, r.exports = g) : g(typeof Highcharts < "u" ? Highcharts : void 0);
  16245. })(function(g) {
  16246. function E(h, y, R, I) {
  16247. h.hasOwnProperty(y) || (h[y] = I.apply(null, R));
  16248. }
  16249. g = g ? g._modules : {}, E(g, "Extensions/Boost/Boostables.js", [], function() {
  16250. return "area arearange column columnrange bar line scatter heatmap bubble treemap".split(" ");
  16251. }), E(g, "Extensions/Boost/BoostableMap.js", [g["Extensions/Boost/Boostables.js"]], function(h) {
  16252. var y = {};
  16253. return h.forEach(function(R) {
  16254. y[R] = 1;
  16255. }), y;
  16256. }), E(g, "Extensions/Boost/WGLShader.js", [g["Core/Utilities.js"]], function(h) {
  16257. var y = h.clamp, R = h.error, I = h.pick;
  16258. return function(Z) {
  16259. function H() {
  16260. x.length && R("[highcharts boost] shader error - " + x.join(`
  16261. `));
  16262. }
  16263. function $(c, p) {
  16264. var i = Z.createShader(p === "vertex" ? Z.VERTEX_SHADER : Z.FRAGMENT_SHADER);
  16265. return Z.shaderSource(i, c), Z.compileShader(i), Z.getShaderParameter(i, Z.COMPILE_STATUS) ? i : (x.push("when compiling " + p + ` shader:
  16266. ` + Z.getShaderInfoLog(i)), !1);
  16267. }
  16268. function U() {
  16269. function c(l) {
  16270. return Z.getUniformLocation(w, l);
  16271. }
  16272. var p = $(
  16273. `#version 100
  16274. #define LN10 2.302585092994046
  16275. precision highp float;
  16276. attribute vec4 aVertexPosition;
  16277. attribute vec4 aColor;
  16278. varying highp vec2 position;
  16279. varying highp vec4 vColor;
  16280. uniform mat4 uPMatrix;
  16281. uniform float pSize;
  16282. uniform float translatedThreshold;
  16283. uniform bool hasThreshold;
  16284. uniform bool skipTranslation;
  16285. uniform float xAxisTrans;
  16286. uniform float xAxisMin;
  16287. uniform float xAxisMinPad;
  16288. uniform float xAxisPointRange;
  16289. uniform float xAxisLen;
  16290. uniform bool xAxisPostTranslate;
  16291. uniform float xAxisOrdinalSlope;
  16292. uniform float xAxisOrdinalOffset;
  16293. uniform float xAxisPos;
  16294. uniform bool xAxisCVSCoord;
  16295. uniform bool xAxisIsLog;
  16296. uniform bool xAxisReversed;
  16297. uniform float yAxisTrans;
  16298. uniform float yAxisMin;
  16299. uniform float yAxisMinPad;
  16300. uniform float yAxisPointRange;
  16301. uniform float yAxisLen;
  16302. uniform bool yAxisPostTranslate;
  16303. uniform float yAxisOrdinalSlope;
  16304. uniform float yAxisOrdinalOffset;
  16305. uniform float yAxisPos;
  16306. uniform bool yAxisCVSCoord;
  16307. uniform bool yAxisIsLog;
  16308. uniform bool yAxisReversed;
  16309. uniform bool isBubble;
  16310. uniform bool bubbleSizeByArea;
  16311. uniform float bubbleZMin;
  16312. uniform float bubbleZMax;
  16313. uniform float bubbleZThreshold;
  16314. uniform float bubbleMinSize;
  16315. uniform float bubbleMaxSize;
  16316. uniform bool bubbleSizeAbs;
  16317. uniform bool isInverted;
  16318. float bubbleRadius(){
  16319. float value = aVertexPosition.w;
  16320. float zMax = bubbleZMax;
  16321. float zMin = bubbleZMin;
  16322. float radius = 0.0;
  16323. float pos = 0.0;
  16324. float zRange = zMax - zMin;
  16325. if (bubbleSizeAbs){
  16326. value = value - bubbleZThreshold;
  16327. zMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);
  16328. zMin = 0.0;
  16329. }
  16330. if (value < zMin){
  16331. radius = bubbleZMin / 2.0 - 1.0;
  16332. } else {
  16333. pos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;
  16334. if (bubbleSizeByArea && pos > 0.0){
  16335. pos = sqrt(pos);
  16336. }
  16337. radius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;
  16338. }
  16339. return radius * 2.0;
  16340. }
  16341. float translate(float val,
  16342. float pointPlacement,
  16343. float localA,
  16344. float localMin,
  16345. float minPixelPadding,
  16346. float pointRange,
  16347. float len,
  16348. bool cvsCoord,
  16349. bool isLog,
  16350. bool reversed
  16351. ){
  16352. float sign = 1.0;
  16353. float cvsOffset = 0.0;
  16354. if (cvsCoord) {
  16355. sign *= -1.0;
  16356. cvsOffset = len;
  16357. }
  16358. if (isLog) {
  16359. val = log(val) / LN10;
  16360. }
  16361. if (reversed) {
  16362. sign *= -1.0;
  16363. cvsOffset -= sign * len;
  16364. }
  16365. return sign * (val - localMin) * localA + cvsOffset +
  16366. (sign * minPixelPadding);
  16367. }
  16368. float xToPixels(float value) {
  16369. if (skipTranslation){
  16370. return value;// + xAxisPos;
  16371. }
  16372. return translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;
  16373. }
  16374. float yToPixels(float value, float checkTreshold) {
  16375. float v;
  16376. if (skipTranslation){
  16377. v = value;// + yAxisPos;
  16378. } else {
  16379. v = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;
  16380. if (v > yAxisLen) {
  16381. v = yAxisLen;
  16382. }
  16383. }
  16384. if (checkTreshold > 0.0 && hasThreshold) {
  16385. v = min(v, translatedThreshold);
  16386. }
  16387. return v;
  16388. }
  16389. void main(void) {
  16390. if (isBubble){
  16391. gl_PointSize = bubbleRadius();
  16392. } else {
  16393. gl_PointSize = pSize;
  16394. }
  16395. vColor = aColor;
  16396. if (skipTranslation && isInverted) {
  16397. gl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);
  16398. } else if (isInverted) {
  16399. gl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);
  16400. } else {
  16401. gl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);
  16402. }
  16403. }`,
  16404. "vertex"
  16405. ), i = $(`precision highp float;
  16406. uniform vec4 fillColor;
  16407. varying highp vec2 position;
  16408. varying highp vec4 vColor;
  16409. uniform sampler2D uSampler;
  16410. uniform bool isCircle;
  16411. uniform bool hasColor;
  16412. void main(void) {
  16413. vec4 col = fillColor;
  16414. vec4 tcol = texture2D(uSampler, gl_PointCoord.st);
  16415. if (hasColor) {
  16416. col = vColor;
  16417. }
  16418. if (isCircle) {
  16419. col *= tcol;
  16420. if (tcol.r < 0.0) {
  16421. discard;
  16422. } else {
  16423. gl_FragColor = col;
  16424. }
  16425. } else {
  16426. gl_FragColor = col;
  16427. }
  16428. }`, "fragment");
  16429. return !p || !i ? (w = !1, H(), !1) : (w = Z.createProgram(), Z.attachShader(w, p), Z.attachShader(w, i), Z.linkProgram(w), Z.getProgramParameter(w, Z.LINK_STATUS) ? (Z.useProgram(w), Z.bindAttribLocation(w, 0, "aVertexPosition"), v = c("uPMatrix"), u = c("pSize"), d = c("fillColor"), P = c("isBubble"), O = c("bubbleSizeAbs"), B = c("bubbleSizeByArea"), a = c("uSampler"), C = c("skipTranslation"), b = c("isCircle"), M = c("isInverted"), !0) : (x.push(Z.getProgramInfoLog(w)), H(), w = !1));
  16430. }
  16431. function W(c, p) {
  16432. Z && w && (c = N[c] = N[c] || Z.getUniformLocation(w, c), Z.uniform1f(c, p));
  16433. }
  16434. var N = {}, w, v, u, d, P, O, B, C, b, M, x = [], a;
  16435. return Z && !U() ? !1 : { psUniform: function() {
  16436. return u;
  16437. }, pUniform: function() {
  16438. return v;
  16439. }, fillColorUniform: function() {
  16440. return d;
  16441. }, setBubbleUniforms: function(c, p, i) {
  16442. var l = c.options, s = Number.MAX_VALUE, t = -Number.MAX_VALUE;
  16443. if (Z && w && c.is("bubble")) {
  16444. var n = c.getPxExtremes();
  16445. 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(B, c.options.sizeBy !== "width"), Z.uniform1i(O, c.options.sizeByAbsoluteValue), W("bubbleZMin", s), W("bubbleZMax", t), W("bubbleZThreshold", c.options.zThreshold), W("bubbleMinSize", n.minPxSize), W("bubbleMaxSize", n.maxPxSize);
  16446. }
  16447. }, bind: function() {
  16448. Z && w && Z.useProgram(w);
  16449. }, program: function() {
  16450. return w;
  16451. }, create: U, setUniform: W, setPMatrix: function(c) {
  16452. Z && w && Z.uniformMatrix4fv(v, !1, c);
  16453. }, setColor: function(c) {
  16454. Z && w && Z.uniform4f(d, c[0] / 255, c[1] / 255, c[2] / 255, c[3]);
  16455. }, setPointSize: function(c) {
  16456. Z && w && Z.uniform1f(u, c);
  16457. }, setSkipTranslation: function(c) {
  16458. Z && w && Z.uniform1i(C, c === !0 ? 1 : 0);
  16459. }, setTexture: function(c) {
  16460. Z && w && Z.uniform1i(a, c);
  16461. }, setDrawAsCircle: function(c) {
  16462. Z && w && Z.uniform1i(b, c ? 1 : 0);
  16463. }, reset: function() {
  16464. Z && w && (Z.uniform1i(P, 0), Z.uniform1i(b, 0));
  16465. }, setInverted: function(c) {
  16466. Z && w && Z.uniform1i(M, c);
  16467. }, destroy: function() {
  16468. Z && w && (Z.deleteProgram(w), w = !1);
  16469. } };
  16470. };
  16471. }), E(g, "Extensions/Boost/WGLVBuffer.js", [], function() {
  16472. return function(h, y, R) {
  16473. function I() {
  16474. Z && (h.deleteBuffer(Z), H = Z = !1), W = 0, $ = R || 2, N = [];
  16475. }
  16476. var Z = !1, H = !1, $ = R || 2, U = !1, W = 0, N;
  16477. return {
  16478. destroy: I,
  16479. bind: function() {
  16480. if (!Z)
  16481. return !1;
  16482. h.vertexAttribPointer(H, $, h.FLOAT, !1, 0, 0);
  16483. },
  16484. data: N,
  16485. build: function(w, v, u) {
  16486. var d;
  16487. return N = w || [], N && N.length !== 0 || U ? ($ = u || $, Z && h.deleteBuffer(Z), U || (d = new Float32Array(N)), Z = h.createBuffer(), h.bindBuffer(h.ARRAY_BUFFER, Z), h.bufferData(h.ARRAY_BUFFER, U || d, h.STATIC_DRAW), H = h.getAttribLocation(y.program(), v), h.enableVertexAttribArray(H), !0) : (I(), !1);
  16488. },
  16489. render: function(w, v, u) {
  16490. var d = U ? U.length : N.length;
  16491. return !Z || !d || ((!w || w > d || 0 > w) && (w = 0), (!v || v > d) && (v = d), w >= v) ? !1 : (h.drawArrays(h[(u || "points").toUpperCase()], w / $, (v - w) / $), !0);
  16492. },
  16493. allocate: function(w) {
  16494. W = -1, U = new Float32Array(4 * w);
  16495. },
  16496. push: function(w, v, u, d) {
  16497. U && (U[++W] = w, U[++W] = v, U[++W] = u, U[++W] = d);
  16498. }
  16499. };
  16500. };
  16501. }), E(g, "Extensions/Boost/WGLRenderer.js", [g["Core/Color/Color.js"], g["Extensions/Boost/WGLShader.js"], g["Extensions/Boost/WGLVBuffer.js"], g["Core/Globals.js"], g["Core/Utilities.js"]], function(h, y, R, I, Z) {
  16502. var H = h.parse, $ = I.doc, U = Z.isNumber, W = Z.isObject, N = Z.merge, w = Z.objectEach, v = Z.pick;
  16503. return function(u) {
  16504. function d(m) {
  16505. if (m.isSeriesBoosting) {
  16506. var L = !!m.options.stacking, Y = m.xData || m.options.xData || m.processedXData;
  16507. 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;
  16508. }
  16509. return 0;
  16510. }
  16511. function P() {
  16512. l.clear(l.COLOR_BUFFER_BIT | l.DEPTH_BUFFER_BIT);
  16513. }
  16514. function O(m, L) {
  16515. function Y($t) {
  16516. $t && (L.colorData.push($t[0]), L.colorData.push($t[1]), L.colorData.push($t[2]), L.colorData.push($t[3]));
  16517. }
  16518. function F($t, ue, ge, De, Le) {
  16519. Y(Le), f.usePreallocated ? (p.push($t, ue, ge ? 1 : 0, De || 1), i += 4) : (n.push($t), n.push(ue), n.push(ge ? 1 : 0), n.push(De || 1));
  16520. }
  16521. function Q() {
  16522. L.segments.length && (L.segments[L.segments.length - 1].to = n.length || i);
  16523. }
  16524. function k() {
  16525. L.segments.length && L.segments[L.segments.length - 1].from === (n.length || i) || (Q(), L.segments.push({ from: n.length || i }));
  16526. }
  16527. function G($t, ue, ge, De, Le) {
  16528. Y(Le), F($t + ge, ue), Y(Le), F($t, ue), Y(Le), F($t, ue + De), Y(Le), F($t, ue + De), Y(Le), F($t + ge, ue + De), Y(Le), F($t + ge, ue);
  16529. }
  16530. function z($t, ue) {
  16531. f.useGPUTranslations || (L.skipTranslation = !0, $t.x = ht.toPixels($t.x, !0), $t.y = st.toPixels($t.y, !0)), ue ? n = [$t.x, $t.y, 0, 2].concat(n) : F($t.x, $t.y, 0, 2);
  16532. }
  16533. var V = 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;
  16534. rt = m.yAxis.getExtremes();
  16535. 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;
  16536. rt = m.points || !1;
  16537. var Ct = !1, Tt = !1, kt, St, _t = 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, Lr, co = typeof q.index > "u", Pn = !1, En = !1, $e = !1, On = T[m.type], Ln = !1, Zr = !0, po = !0, Xs = it.zoneAxis || "y", _r = it.zones || !1, zi = !1, uo = it.threshold, _n = !1;
  16538. if (!(it.boostData && 0 < it.boostData.length)) {
  16539. if (it.gapSize && (_n = it.gapUnit !== "value" ? it.gapSize * m.closestPointRange : it.gapSize), _r) {
  16540. var Dr = [];
  16541. _r.forEach(function($t, ue) {
  16542. if ($t.color) {
  16543. var ge = H($t.color).rgba;
  16544. ge[0] /= 255, ge[1] /= 255, ge[2] /= 255, Dr[ue] = ge, zi || typeof $t.value < "u" || (zi = ge);
  16545. }
  16546. }), zi || (at = m.pointAttribs && m.pointAttribs().fill || m.color, zi = H(at).rgba, zi[0] /= 255, zi[1] /= 255, zi[2] /= 255);
  16547. }
  16548. if (q.inverted && (pt = m.chart.plotHeight), m.closestPointRangePx = Number.MAX_VALUE, k(), rt && 0 < rt.length)
  16549. L.skipTranslation = !0, L.drawMode = "triangles", rt[0].node && rt[0].node.levelDynamic && rt.sort(function($t, ue) {
  16550. if ($t.node) {
  16551. if ($t.node.levelDynamic > ue.node.levelDynamic)
  16552. return 1;
  16553. if ($t.node.levelDynamic < ue.node.levelDynamic)
  16554. return -1;
  16555. }
  16556. return 0;
  16557. }), rt.forEach(function($t) {
  16558. var ue = $t.plotY;
  16559. if (typeof ue < "u" && !isNaN(ue) && $t.y !== null && $t.shapeArgs) {
  16560. var ge = $t.shapeArgs;
  16561. ue = ge.x, ue = ue === void 0 ? 0 : ue;
  16562. var De = ge.y;
  16563. De = De === void 0 ? 0 : De;
  16564. var Le = ge.width;
  16565. Le = Le === void 0 ? 0 : Le, ge = ge.height, ge = ge === void 0 ? 0 : ge;
  16566. var Kr = q.styledMode ? $t.series.colorAttribs($t) : Kr = $t.series.pointAttribs($t);
  16567. $t = Kr["stroke-width"] || 0, $e = H(Kr.fill).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255, m.type === "treemap" && ($t = $t || 1, St = H(Kr.stroke).rgba, St[0] /= 255, St[1] /= 255, St[2] /= 255, G(ue, De, Le, ge, St), $t /= 2), m.type === "heatmap" && q.inverted && (ue = ht.len - ue, De = st.len - De, Le = -Le, ge = -ge), G(ue + $t, De + $t, Le - 2 * $t, ge - 2 * $t, $e);
  16568. }
  16569. });
  16570. else {
  16571. for (rt = function() {
  16572. if (Jt = _t[++zt], typeof Jt > "u")
  16573. return "continue";
  16574. if (co)
  16575. return "break";
  16576. var $t = nt && nt[zt];
  16577. if (!yt && W($t, !0) && $t.color && ($e = H($t.color).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255), yt ? (Gt = Jt[0], Wt = Jt[1], _t[zt + 1] && (Me = _t[zt + 1][0]), _t[zt - 1] && (Vt = _t[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], _t[zt + 1] && (Me = _t[zt + 1]), _t[zt - 1] && (Vt = _t[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))
  16578. return k(), "continue";
  16579. if (Me && Me >= ct && Me <= gt && (Pn = !0), Vt && Vt >= ct && Vt <= gt && (En = !0), V ? (yt && (Wt = Jt.slice(1, 3)), Lr = Wt[0], Wt = Wt[1]) : et && (Gt = Jt.x, Wt = Jt.stackY, Lr = Wt - Jt.y), dt !== null && typeof dt < "u" && lt !== null && typeof lt < "u" && (Zr = 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)
  16580. return "continue";
  16581. if (Wt === null || !Zr && !Pn && !En)
  16582. return k(), "continue";
  16583. if ((Me >= ct || Gt >= ct) && (Vt <= gt || Gt <= gt) && (Ln = !0), !Ln && !Pn && !En)
  16584. return "continue";
  16585. if (_n && Gt - Vt > _n && k(), _r) {
  16586. var ue;
  16587. _r.some(function(ge, De) {
  16588. var Le = _r[De - 1];
  16589. return Xs === "x" ? typeof ge.value < "u" && Gt <= ge.value ? (Dr[De] && (!Le || Gt >= Le.value) && (ue = Dr[De]), !0) : !1 : typeof ge.value < "u" && Wt <= ge.value ? (Dr[De] && (!Le || Wt >= Le.value) && (ue = Dr[De]), !0) : !1;
  16590. }), $e = ue || zi || $e;
  16591. }
  16592. if (!f.useGPUTranslations && (L.skipTranslation = !0, Gt = ht.toPixels(Gt, !0), Wt = st.toPixels(Wt, !0), Gt > pt && L.drawMode === "points"))
  16593. return "continue";
  16594. if (L.hasMarkers && Ln && Ct !== !1 && (m.closestPointRangePx = Math.min(m.closestPointRangePx, Math.abs(Gt - Ct))), !f.useGPUTranslations && !f.usePreallocated && Ct && 1 > Math.abs(Gt - Ct) && Tt && 1 > Math.abs(Wt - Tt))
  16595. return f.debug.showSkipSummary && ++Et, "continue";
  16596. On && (kt = Lr, (Lr === !1 || typeof Lr > "u") && (kt = 0 > Wt ? Wt : 0), V || et || (kt = Math.max(uo === null ? dt : uo, dt)), f.useGPUTranslations || (kt = st.toPixels(kt, !0)), F(Gt, kt, 0, 0, $e)), it.step && !po && F(Gt, Tt, 0, 2, $e), F(Gt, Wt, 0, m.type === "bubble" ? be || 1 : 2, $e), Ct = Gt, Tt = Wt, Kt = !0, po = !1;
  16597. }; zt < _t.length - 1 && rt() !== "break"; )
  16598. ;
  16599. f.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));
  16600. }
  16601. Q();
  16602. }
  16603. }
  16604. function B() {
  16605. D = [], A.data = n = [], o = [], p && p.destroy();
  16606. }
  16607. function C(m) {
  16608. 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(
  16609. "xAxisPos",
  16610. m.pos
  16611. ), c.setUniform("xAxisCVSCoord", !m.horiz), c.setUniform("xAxisIsLog", !!m.logarithmic), c.setUniform("xAxisReversed", !!m.reversed));
  16612. }
  16613. function b(m) {
  16614. 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));
  16615. }
  16616. function M(m, L) {
  16617. c.setUniform("hasThreshold", m), c.setUniform("translatedThreshold", L);
  16618. }
  16619. function x(m) {
  16620. if (m)
  16621. s = m.chartWidth || 800, t = m.chartHeight || 400;
  16622. else
  16623. return !1;
  16624. if (!(l && s && t && c))
  16625. return !1;
  16626. f.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 < f.lineWidth && !I.isMS && l.lineWidth(f.lineWidth), p.build(A.data, "aVertexPosition", 4), p.bind(), c.setInverted(m.inverted), D.forEach(function(L, Y) {
  16627. var F = L.series.options, Q = F.marker, k = typeof F.lineWidth < "u" ? F.lineWidth : 1, G = F.threshold, z = U(G), V = L.series.yAxis.getThreshold(G);
  16628. if (G = v(F.marker ? F.marker.enabled : null, L.series.xAxis.isRadial ? !0 : null, L.series.closestPointRangePx > 2 * ((F.marker ? F.marker.radius : 10) || 10)), Q = j[Q && Q.symbol || L.series.symbol] || j.circle, L.segments.length !== 0 && L.segments[0].from !== L.segments[0].to) {
  16629. 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, F.colorByPoint && (Q = L.series.chart.options.colors[Y])), L.series.fillOpacity && F.fillOpacity && (Q = new h(Q).setOpacity(v(F.fillOpacity, 1)).get()), Q = H(Q).rgba, f.useAlpha || (Q[3] = 1), L.drawMode === "lines" && f.useAlpha && 1 > Q[3] && (Q[3] /= 10), F.boostBlending === "add" ? (l.blendFunc(l.SRC_ALPHA, l.ONE), l.blendEquation(l.FUNC_ADD)) : F.boostBlending === "mult" || F.boostBlending === "multiply" ? l.blendFunc(l.DST_COLOR, l.ZERO) : F.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 = R(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), M(z, V), L.drawMode === "points" && (F.marker && U(F.marker.radius) ? c.setPointSize(2 * F.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")
  16630. for (k = 0; k < L.segments.length; k++)
  16631. p.render(L.segments[k].from, L.segments[k].to, L.drawMode);
  16632. if (L.hasMarkers && G)
  16633. for (F.marker && U(F.marker.radius) ? c.setPointSize(2 * F.marker.radius) : c.setPointSize(10), c.setDrawAsCircle(!0), k = 0; k < L.segments.length; k++)
  16634. p.render(L.segments[k].from, L.segments[k].to, "POINTS");
  16635. }
  16636. }), f.debug.timeRendering && console.timeEnd("gl rendering"), u && u(), B();
  16637. }
  16638. function a(m) {
  16639. if (P(), m.renderer.forExport)
  16640. return x(m);
  16641. _ ? x(m) : setTimeout(function() {
  16642. a(m);
  16643. }, 1);
  16644. }
  16645. var c = !1, p = !1, i = 0, l = !1, s = 0, t = 0, n = !1, o = !1, A = {}, _ = !1, D = [], j = {}, T = { column: !0, columnrange: !0, bar: !0, area: !0, arearange: !0 }, X = { scatter: !0, bubble: !0 }, f = { 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 } };
  16646. return A = { allocateBufferForSingleSeries: function(m) {
  16647. var L = 0;
  16648. f.usePreallocated && (m.isSeriesBoosting && (L = d(m)), p.allocate(L));
  16649. }, pushSeries: function(m) {
  16650. 0 < D.length && D[D.length - 1].hasMarkers && (D[D.length - 1].markerTo = o.length), f.debug.timeSeriesProcessing && console.time("building " + m.type + " series");
  16651. var L = { segments: [], markerFrom: o.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: {
  16652. area: "lines",
  16653. arearange: "lines",
  16654. areaspline: "line_strip",
  16655. column: "lines",
  16656. columnrange: "lines",
  16657. bar: "lines",
  16658. line: "line_strip",
  16659. scatter: "points",
  16660. heatmap: "triangles",
  16661. treemap: "triangles",
  16662. bubble: "points"
  16663. }[m.type] || "line_strip" };
  16664. m.index >= D.length ? D.push(L) : D[m.index] = L, O(m, L), f.debug.timeSeriesProcessing && console.timeEnd("building " + m.type + " series");
  16665. }, setSize: function(m, L) {
  16666. 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]));
  16667. }, inited: function() {
  16668. return _;
  16669. }, setThreshold: M, init: function(m, L) {
  16670. function Y(k, G) {
  16671. var z = { isReady: !1, texture: $.createElement("canvas"), handle: l.createTexture() }, V = z.texture.getContext("2d");
  16672. j[k] = z, z.texture.width = 512, z.texture.height = 512, V.mozImageSmoothingEnabled = !1, V.webkitImageSmoothingEnabled = !1, V.msImageSmoothingEnabled = !1, V.imageSmoothingEnabled = !1, V.strokeStyle = "rgba(255, 255, 255, 0)", V.fillStyle = "#FFF", G(V);
  16673. try {
  16674. 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(
  16675. l.TEXTURE_2D,
  16676. l.TEXTURE_WRAP_T,
  16677. l.CLAMP_TO_EDGE
  16678. ), 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;
  16679. } catch {
  16680. }
  16681. }
  16682. var F = 0, Q = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
  16683. if (_ = !1, !m)
  16684. return !1;
  16685. for (f.debug.timeSetup && console.time("gl setup"); F < Q.length && !(l = m.getContext(Q[F], {})); F++)
  16686. ;
  16687. if (l)
  16688. L || B();
  16689. else
  16690. return !1;
  16691. 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 = R(l, c), Y("circle", function(k) {
  16692. k.beginPath(), k.arc(256, 256, 256, 0, 2 * Math.PI), k.stroke(), k.fill();
  16693. }), Y("square", function(k) {
  16694. k.fillRect(0, 0, 512, 512);
  16695. }), Y("diamond", function(k) {
  16696. k.beginPath(), k.moveTo(256, 0), k.lineTo(512, 256), k.lineTo(256, 512), k.lineTo(0, 256), k.lineTo(256, 0), k.fill();
  16697. }), Y("triangle", function(k) {
  16698. k.beginPath(), k.moveTo(0, 512), k.lineTo(256, 0), k.lineTo(512, 512), k.lineTo(0, 512), k.fill();
  16699. }), Y("triangle-down", function(k) {
  16700. k.beginPath(), k.moveTo(0, 0), k.lineTo(256, 512), k.lineTo(
  16701. 512,
  16702. 0
  16703. ), k.lineTo(0, 0), k.fill();
  16704. }), _ = !0, f.debug.timeSetup && console.timeEnd("gl setup"), !0) : !1;
  16705. }, render: a, settings: f, valid: function() {
  16706. return l !== !1;
  16707. }, clear: P, flush: B, setXAxis: C, setYAxis: b, data: n, gl: function() {
  16708. return l;
  16709. }, allocateBuffer: function(m) {
  16710. var L = 0;
  16711. f.usePreallocated && (m.series.forEach(function(Y) {
  16712. Y.isSeriesBoosting && (L += d(Y));
  16713. }), p.allocate(L));
  16714. }, destroy: function() {
  16715. B(), p.destroy(), c.destroy(), l && (w(j, function(m) {
  16716. m.handle && l.deleteTexture(m.handle);
  16717. }), l.canvas.width = 1, l.canvas.height = 1);
  16718. }, setOptions: function(m) {
  16719. N(
  16720. !0,
  16721. f,
  16722. m
  16723. );
  16724. } };
  16725. };
  16726. }), E(g, "Extensions/Boost/BoostAttach.js", [g["Core/Chart/Chart.js"], g["Extensions/Boost/WGLRenderer.js"], g["Core/Globals.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  16727. var Z = R.doc, H = I.error, $;
  16728. return function(U, W) {
  16729. var N = U.chartWidth, w = U.chartHeight, v = U, u = U.seriesGroup || W.group, d = Z.implementation.hasFeature("www.http://w3.org/TR/SVG11/feature#Extensibility", "1.1");
  16730. return v = U.isChartSeriesBoosting() ? U : W, d = !1, $ || ($ = Z.createElement("canvas")), v.renderTarget || (v.canvas = $, U.renderer.forExport || !d ? (v.renderTarget = U.renderer.image("", 0, 0, N, w).addClass("highcharts-boost-canvas").add(u), v.boostClear = function() {
  16731. v.renderTarget.attr({ href: "" });
  16732. }, v.boostCopy = function() {
  16733. v.boostResizeTarget(), v.renderTarget.attr({ href: v.canvas.toDataURL("image/png") });
  16734. }) : (v.renderTargetFo = U.renderer.createElement("foreignObject").add(u), v.renderTarget = Z.createElement("canvas"), v.renderTargetCtx = v.renderTarget.getContext("2d"), v.renderTargetFo.element.appendChild(v.renderTarget), v.boostClear = function() {
  16735. v.renderTarget.width = v.canvas.width, v.renderTarget.height = v.canvas.height;
  16736. }, v.boostCopy = function() {
  16737. v.renderTarget.width = v.canvas.width, v.renderTarget.height = v.canvas.height, v.renderTargetCtx.drawImage(v.canvas, 0, 0);
  16738. }), v.boostResizeTarget = function() {
  16739. N = U.chartWidth, w = U.chartHeight, (v.renderTargetFo || v.renderTarget).attr({ x: 0, y: 0, width: N, height: w }).css({ pointerEvents: "none", mixedBlendMode: "normal", opacity: 1 }), v instanceof h && v.markerGroup.translate(U.plotLeft, U.plotTop);
  16740. }, v.boostClipRect = U.renderer.clipRect(), (v.renderTargetFo || v.renderTarget).clip(v.boostClipRect), v instanceof h && (v.markerGroup = v.renderer.g().add(u), v.markerGroup.translate(W.xAxis.pos, W.yAxis.pos))), v.canvas.width = N, v.canvas.height = w, v.boostClipRect.attr(U.getBoostClipRect(v)), v.boostResizeTarget(), v.boostClear(), v.ogl || (v.ogl = y(function() {
  16741. v.ogl.settings.debug.timeBufferCopy && console.time("buffer copy"), v.boostCopy(), v.ogl.settings.debug.timeBufferCopy && console.timeEnd("buffer copy");
  16742. }), v.ogl.init(v.canvas) || H("[highcharts boost] - unable to init WebGL renderer"), v.ogl.setOptions(U.options.boost || {}), v instanceof h && v.ogl.allocateBuffer(U)), v.ogl.setSize(N, w), v.ogl;
  16743. };
  16744. }), E(g, "Extensions/Boost/BoostUtils.js", [g["Core/Globals.js"], g["Extensions/Boost/BoostableMap.js"], g["Extensions/Boost/BoostAttach.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  16745. function Z() {
  16746. for (var u = [], d = 0; d < arguments.length; d++)
  16747. u[d] = arguments[d];
  16748. var P = -Number.MAX_VALUE;
  16749. return u.forEach(function(O) {
  16750. if (typeof O < "u" && O !== null && typeof O.length < "u" && 0 < O.length)
  16751. return P = O.length, !0;
  16752. }), P;
  16753. }
  16754. function H(u, d, P) {
  16755. u && d.renderTarget && d.canvas && !(P || d.chart).isChartSeriesBoosting() && u.render(P || d.chart);
  16756. }
  16757. function $(u, d) {
  16758. u && d.renderTarget && d.canvas && !d.chart.isChartSeriesBoosting() && u.allocateBufferForSingleSeries(d);
  16759. }
  16760. function U(u, d, P, O, B, C) {
  16761. B = B || 0, O = O || 3e3;
  16762. for (var b = B + O, M = !0; M && B < b && B < u.length; )
  16763. M = d(u[B], B), ++B;
  16764. M && (B < u.length ? C ? U(u, d, P, O, B, C) : N.requestAnimationFrame ? N.requestAnimationFrame(function() {
  16765. U(u, d, P, O, B);
  16766. }) : setTimeout(function() {
  16767. U(u, d, P, O, B);
  16768. }) : P && P());
  16769. }
  16770. function W() {
  16771. var u = 0, d, P = [
  16772. "webgl",
  16773. "experimental-webgl",
  16774. "moz-webgl",
  16775. "webkit-3d"
  16776. ], O = !1;
  16777. if (typeof N.WebGLRenderingContext < "u")
  16778. for (d = w.createElement("canvas"); u < P.length; u++)
  16779. try {
  16780. if (O = d.getContext(P[u]), typeof O < "u" && O !== null)
  16781. return !0;
  16782. } catch {
  16783. }
  16784. return !1;
  16785. }
  16786. var N = h.win, w = h.doc, v = I.pick;
  16787. return I = { patientMax: Z, boostEnabled: function(u) {
  16788. return v(u && u.options && u.options.boost && u.options.boost.enabled, !0);
  16789. }, shouldForceChartSeriesBoosting: function(u) {
  16790. var d = 0, P = 0, O = v(u.options.boost && u.options.boost.allowForce, !0);
  16791. if (typeof u.boostForceChartBoost < "u")
  16792. return u.boostForceChartBoost;
  16793. if (1 < u.series.length)
  16794. for (var B = 0; B < u.series.length; B++) {
  16795. var C = u.series[B];
  16796. 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) && ++d);
  16797. }
  16798. return u.boostForceChartBoost = O && (P === u.series.length && 0 < d || 5 < d), u.boostForceChartBoost;
  16799. }, renderIfNotSeriesBoosting: H, allocateIfNotSeriesBoosting: $, eachAsync: U, hasWebGLSupport: W, pointDrawHandler: function(u) {
  16800. var d = !0;
  16801. if (this.chart.options && this.chart.options.boost && (d = typeof this.chart.options.boost.enabled > "u" ? !0 : this.chart.options.boost.enabled), !d || !this.isSeriesBoosting)
  16802. return u.call(this);
  16803. this.chart.isBoosting = !0, (u = R(this.chart, this)) && ($(u, this), u.pushSeries(this)), H(u, this);
  16804. } }, h.hasWebGLSupport = W, I;
  16805. }), E(
  16806. g,
  16807. "Extensions/Boost/BoostInit.js",
  16808. [g["Core/Chart/Chart.js"], g["Core/Globals.js"], g["Core/Series/Series.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"], g["Extensions/Boost/BoostUtils.js"], g["Extensions/Boost/BoostAttach.js"]],
  16809. function(h, y, R, I, Z, H, $) {
  16810. var U = y.noop, W = I.seriesTypes, N = Z.addEvent, w = Z.extend, v = Z.fireEvent, u = Z.wrap, d = H.eachAsync, P = H.pointDrawHandler, O = H.allocateIfNotSeriesBoosting, B = H.renderIfNotSeriesBoosting, C = H.shouldForceChartSeriesBoosting, b;
  16811. return function() {
  16812. w(R.prototype, { renderCanvas: function() {
  16813. function M(dt, lt) {
  16814. var at = !1, J = typeof i.index > "u", tt = !0;
  16815. if (typeof dt > "u")
  16816. return !0;
  16817. if (!J) {
  16818. if (G)
  16819. var st = dt[0], ht = dt[1];
  16820. else
  16821. st = dt, ht = n[lt];
  16822. Y ? (G && (ht = dt.slice(1, 3)), at = ht[0], ht = ht[1]) : F && (st = dt.x, ht = dt.stackY, at = ht - dt.y), k || (tt = ht >= D && ht <= j), ht !== null && st >= A && st <= _ && tt && (dt = l.toPixels(st, !0), f ? ((typeof q > "u" || dt === X) && (Y || (at = ht), (typeof it > "u" || ht > V) && (V = ht, it = lt), (typeof q > "u" || at < z) && (z = at, q = lt)), dt !== X && (typeof q < "u" && (ht = s.toPixels(V, !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)));
  16823. }
  16824. return !J;
  16825. }
  16826. function x() {
  16827. v(a, "renderedCanvas"), delete a.buildKDTree, a.buildKDTree(), ct.debug.timeKDTree && console.timeEnd("kd tree building");
  16828. }
  16829. var a = this, c = a.options || {}, p = !1, i = a.chart, l = this.xAxis, s = this.yAxis, t = c.xData || a.processedXData, n = c.yData || a.processedYData, o = c.data;
  16830. p = l.getExtremes();
  16831. var A = p.min, _ = p.max;
  16832. p = s.getExtremes();
  16833. var D = p.min, j = p.max, T = {}, X, f = !!a.sampling, m = c.enableMouseTracking !== !1, L = s.getThreshold(c.threshold), Y = a.pointArrayMap && a.pointArrayMap.join(",") === "low,high", F = !!c.stacking, Q = a.cropStart || 0, k = a.requireSorting, G = !t, z, V, q, it, et = c.findNearestPointBy === "x", nt = this.xData || this.options.xData || this.processedXData || !1, rt = function(dt, lt, at) {
  16834. 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 }));
  16835. };
  16836. p = $(i, a), i.isBoosting = !0;
  16837. var ct = p.settings;
  16838. if (this.visible) {
  16839. (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));
  16840. var gt = this.points = [];
  16841. a.buildKDTree = U, p && (O(p, this), p.pushSeries(a), B(p, this, i)), i.renderer.forExport || (ct.debug.timeKDTree && console.time("kd tree building"), d(F ? a.data : t || o, M, x));
  16842. }
  16843. } }), ["heatmap", "treemap"].forEach(function(M) {
  16844. W[M] && u(W[M].prototype, "drawPoints", P);
  16845. }), W.bubble && (delete W.bubble.prototype.buildKDTree, u(W.bubble.prototype, "markerAttribs", function(M) {
  16846. return this.isSeriesBoosting ? !1 : M.apply(this, [].slice.call(arguments, 1));
  16847. })), W.scatter.prototype.fill = !0, w(W.area.prototype, { fill: !0, fillOpacity: !0, sampling: !0 }), w(W.column.prototype, { fill: !0, sampling: !0 }), h.prototype.propsRequireUpdateSeries.push("boost"), h.prototype.callbacks.push(function(M) {
  16848. N(M, "predraw", function() {
  16849. M.boostForceChartBoost = void 0, M.boostForceChartBoost = C(M), M.isBoosting = !1, !M.isChartSeriesBoosting() && M.didBoost && (M.didBoost = !1), M.boostClear && M.boostClear(), M.canvas && M.ogl && M.isChartSeriesBoosting() && (M.didBoost = !0, M.ogl.allocateBuffer(M)), M.markerGroup && M.xAxis && 0 < M.xAxis.length && M.yAxis && 0 < M.yAxis.length && M.markerGroup.translate(M.xAxis[0].pos, M.yAxis[0].pos);
  16850. }), N(M, "render", function() {
  16851. M.ogl && M.isChartSeriesBoosting() && M.ogl.render(M);
  16852. });
  16853. var x = -1, a = -1;
  16854. N(M.pointer, "afterGetHoverData", function() {
  16855. var c = M.hoverSeries;
  16856. if (M.markerGroup && c) {
  16857. var p = M.inverted ? c.yAxis : c.xAxis;
  16858. c = M.inverted ? c.xAxis : c.yAxis, (p && p.pos !== x || c && c.pos !== a) && (M.markerGroup.translate(p.pos, c.pos), x = p.pos, a = c.pos);
  16859. }
  16860. });
  16861. });
  16862. };
  16863. }
  16864. ), E(
  16865. g,
  16866. "Extensions/BoostCanvas.js",
  16867. [g["Core/Chart/Chart.js"], g["Core/Color/Color.js"], g["Core/Globals.js"], g["Core/Series/Series.js"], g["Core/Series/SeriesRegistry.js"], g["Core/Utilities.js"]],
  16868. function(h, y, R, I, Z, H) {
  16869. var $ = y.parse, U = R.doc, W = R.noop, N = Z.seriesTypes, w = H.addEvent, v = H.extend, u = H.fireEvent, d = H.isNumber, P = H.merge, O = H.pick, B = H.wrap, C;
  16870. return function() {
  16871. R.seriesTypes.heatmap && B(R.seriesTypes.heatmap.prototype, "drawPoints", function() {
  16872. var b = this.chart, M = this.getContext(), x = this.chart.inverted, a = this.xAxis, c = this.yAxis;
  16873. M ? (this.points.forEach(function(p) {
  16874. var i = p.plotY;
  16875. if (typeof i < "u" && !isNaN(i) && p.y !== null && M) {
  16876. var l = p.shapeArgs || {};
  16877. i = l.x, i = i === void 0 ? 0 : i;
  16878. var s = l.y;
  16879. s = s === void 0 ? 0 : s;
  16880. var t = l.width;
  16881. 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), M.fillStyle = p.fill, x ? M.fillRect(c.len - s + a.left, a.len - i + c.top, -l, -t) : M.fillRect(i + a.left, s + c.top, t, l);
  16882. }
  16883. }), this.canvasToSVG()) : this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser");
  16884. }), v(I.prototype, { getContext: function() {
  16885. var b = this.chart, M = b.chartWidth, x = b.chartHeight, a = b.seriesGroup || this.group, c = this, p = function(l, s, t, n, o, A, _) {
  16886. l.call(this, t, s, n, o, A, _);
  16887. };
  16888. b.isChartSeriesBoosting() && (c = b, a = b.seriesGroup);
  16889. var i = c.ctx;
  16890. return c.canvas || (c.canvas = U.createElement("canvas"), c.renderTarget = b.renderer.image("", 0, 0, M, x).addClass("highcharts-boost-canvas").add(a), c.ctx = i = c.canvas.getContext("2d"), b.inverted && ["moveTo", "lineTo", "rect", "arc"].forEach(function(l) {
  16891. B(i, l, p);
  16892. }), c.boostCopy = function() {
  16893. c.renderTarget.attr({ href: c.canvas.toDataURL("image/png") });
  16894. }, c.boostClear = function() {
  16895. i.clearRect(0, 0, c.canvas.width, c.canvas.height), c === this && c.renderTarget.attr({ href: "" });
  16896. }, c.boostClipRect = b.renderer.clipRect(), c.renderTarget.clip(c.boostClipRect)), c.canvas.width !== M && (c.canvas.width = M), c.canvas.height !== x && (c.canvas.height = x), c.renderTarget.attr({ x: 0, y: 0, width: M, height: x, style: "pointer-events: none", href: "" }), c.boostClipRect.attr(b.getBoostClipRect(c)), i;
  16897. }, canvasToSVG: function() {
  16898. this.chart.isChartSeriesBoosting() ? this.boostClear && this.boostClear() : (this.boostCopy || this.chart.boostCopy) && (this.boostCopy || this.chart.boostCopy)();
  16899. }, cvsLineTo: function(b, M, x) {
  16900. b.lineTo(M, x);
  16901. }, renderCanvas: function() {
  16902. var b = this, M = 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 = M.data, n = a.getExtremes(), o = n.min, A = n.max;
  16903. n = c.getExtremes();
  16904. var _ = n.min, D = n.max, j = {}, T, X = !!b.sampling, f = M.marker && M.marker.radius, m = this.cvsDrawPoint, L = M.lineWidth ? this.cvsLineTo : void 0, Y = f && 1 >= f ? this.cvsMarkerSquare : this.cvsMarkerCircle, F = this.cvsStrokeBatch || 1e3, Q = M.enableMouseTracking !== !1, k;
  16905. n = M.threshold;
  16906. var G = c.getThreshold(n), z = d(n), V = G, q = this.fill, it = b.pointArrayMap && b.pointArrayMap.join(",") === "low,high", et = !!M.stacking, nt = b.cropStart || 0;
  16907. n = x.options.loading;
  16908. var rt = b.requireSorting, ct, gt = M.connectNulls, dt = !l, lt, at, J, tt, st, ht = et ? b.data : l || t, pt = b.fillOpacity ? y.parse(b.color).setOpacity(O(M.fillOpacity, 0.75)).get() : b.color, yt = function() {
  16909. q ? (_t.fillStyle = pt, _t.fill()) : (_t.strokeStyle = b.color, _t.lineWidth = M.lineWidth, _t.stroke());
  16910. }, vt = function(Lt, Nt, Et, Kt) {
  16911. i === 0 && (_t.beginPath(), L && (_t.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 ? _t.moveTo(Lt, Nt) : m ? m(_t, Lt, Nt, Et, k) : L ? L(_t, Lt, Nt) : Y && Y.call(b, _t, Lt, Nt, f, Kt), i += 1, i === F && (yt(), i = 0), k = { clientX: Lt, plotY: Nt, yBottom: Et };
  16912. }, Ct = M.findNearestPointBy === "x", Tt = this.xData || this.options.xData || this.processedXData || !1, kt = function(Lt, Nt, Et) {
  16913. st = Ct ? Lt : Lt + "," + Nt, Q && !j[st] && (j[st] = !0, x.inverted && (Lt = a.len - Lt, Nt = c.len - Nt), St.push({ x: Tt ? Tt[nt + Et] : !1, clientX: Lt, plotX: Lt, plotY: Nt, i: nt + Et }));
  16914. };
  16915. this.renderTarget && this.renderTarget.attr({ href: "" }), (this.points || this.graph) && this.destroyGraphics(), b.plotGroup("group", "series", b.visible ? "visible" : "hidden", M.zIndex, x.seriesGroup), b.markerGroup = b.group, w(b, "destroy", function() {
  16916. b.markerGroup = null;
  16917. });
  16918. var St = this.points = [], _t = this.getContext();
  16919. b.buildKDTree = W, this.boostClear && this.boostClear(), this.visible && (99999 < t.length && (x.options.loading = P(n, { labelStyle: {
  16920. backgroundColor: $("#ffffff").setOpacity(0.75).get(),
  16921. padding: "1em",
  16922. borderRadius: "0.5em"
  16923. }, style: { backgroundColor: "none", opacity: 1 } }), H.clearTimeout(C), x.showLoading("Drawing..."), x.options.loading = n), p && console.time("canvas rendering"), R.eachAsync(ht, function(Lt, Nt) {
  16924. var Et = !1, Kt = !1, Gt = !1, Wt = !1, Jt = typeof x.index > "u", be = !0;
  16925. if (!Jt) {
  16926. if (dt) {
  16927. var zt = Lt[0], Vt = Lt[1];
  16928. ht[Nt + 1] && (Gt = ht[Nt + 1][0]), ht[Nt - 1] && (Wt = ht[Nt - 1][0]);
  16929. } else
  16930. zt = Lt, Vt = s[Nt], ht[Nt + 1] && (Gt = ht[Nt + 1]), ht[Nt - 1] && (Wt = ht[Nt - 1]);
  16931. if (Gt && Gt >= o && Gt <= A && (Et = !0), Wt && Wt >= o && Wt <= A && (Kt = !0), it) {
  16932. dt && (Vt = Lt.slice(1, 3));
  16933. var Me = Vt[0];
  16934. Vt = Vt[1];
  16935. } else
  16936. et && (zt = Lt.x, Vt = Lt.stackY, Me = Vt - Lt.y);
  16937. Lt = Vt === null, rt || (be = Vt >= _ && Vt <= D), !Lt && (zt >= o && 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, V) : Vt, z ? Math.max(G, V) : 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)();
  16938. }
  16939. return !Jt;
  16940. }, function() {
  16941. var Lt = x.loadingDiv, Nt = x.loadingShown;
  16942. yt(), b.canvasToSVG(), p && console.timeEnd("canvas rendering"), u(b, "renderedCanvas"), Nt && (v(Lt.style, { transition: "opacity 250ms", opacity: 0 }), x.loadingShown = !1, C = setTimeout(function() {
  16943. Lt.parentNode && Lt.parentNode.removeChild(Lt), x.loadingDiv = x.loadingSpan = null;
  16944. }, 250)), delete b.buildKDTree, b.buildKDTree();
  16945. }, x.renderer.forExport ? Number.MAX_VALUE : void 0));
  16946. } }), N.scatter.prototype.cvsMarkerCircle = function(b, M, x, a) {
  16947. b.moveTo(M, x), b.arc(M, x, a, 0, 2 * Math.PI, !1);
  16948. }, N.scatter.prototype.cvsMarkerSquare = function(b, M, x, a) {
  16949. b.rect(M - a, x - a, 2 * a, 2 * a);
  16950. }, N.scatter.prototype.fill = !0, N.bubble && (N.bubble.prototype.cvsMarkerCircle = function(b, M, x, a, c) {
  16951. b.moveTo(M, x), b.arc(M, x, this.radii && this.radii[c], 0, 2 * Math.PI, !1);
  16952. }, N.bubble.prototype.cvsStrokeBatch = 1), v(N.area.prototype, {
  16953. cvsDrawPoint: function(b, M, x, a, c) {
  16954. c && M !== c.clientX && (b.moveTo(c.clientX, c.yBottom), b.lineTo(c.clientX, c.plotY), b.lineTo(M, x), b.lineTo(M, a));
  16955. },
  16956. fill: !0,
  16957. fillOpacity: !0,
  16958. sampling: !0
  16959. }), v(N.column.prototype, { cvsDrawPoint: function(b, M, x, a) {
  16960. b.rect(M - 1, x, 1, a - x);
  16961. }, fill: !0, sampling: !0 }), h.prototype.callbacks.push(function(b) {
  16962. w(b, "predraw", function() {
  16963. b.renderTarget && b.renderTarget.attr({ href: "" }), b.canvas && b.canvas.getContext("2d").clearRect(0, 0, b.canvas.width, b.canvas.height);
  16964. }), w(b, "render", function() {
  16965. b.boostCopy && b.boostCopy();
  16966. });
  16967. });
  16968. };
  16969. }
  16970. ), E(g, "Extensions/Boost/BoostOverrides.js", [
  16971. g["Core/Chart/Chart.js"],
  16972. g["Core/DefaultOptions.js"],
  16973. g["Core/Series/Point.js"],
  16974. g["Core/Series/Series.js"],
  16975. g["Core/Series/SeriesRegistry.js"],
  16976. g["Core/Utilities.js"],
  16977. g["Extensions/Boost/BoostUtils.js"],
  16978. g["Extensions/Boost/Boostables.js"],
  16979. g["Extensions/Boost/BoostableMap.js"]
  16980. ], function(h, y, R, I, Z, H, $, U, W) {
  16981. y = y.getOptions;
  16982. var N = Z.seriesTypes;
  16983. Z = H.addEvent;
  16984. var w = H.error, v = H.isArray, u = H.isNumber, d = H.pick, P = H.wrap, O = $.boostEnabled, B = $.shouldForceChartSeriesBoosting, C = y().plotOptions;
  16985. h.prototype.isChartSeriesBoosting = function() {
  16986. return d(this.options.boost && this.options.boost.seriesThreshold, 50) <= this.series.length || B(this);
  16987. }, h.prototype.getBoostClipRect = function(b) {
  16988. var M = { x: this.plotLeft, y: this.plotTop, width: this.plotWidth, height: this.plotHeight };
  16989. return b === this && (b = this.inverted ? this.xAxis : this.yAxis, 1 >= b.length ? (M.y = Math.min(b[0].pos, M.y), M.height = b[0].pos - this.plotTop + b[0].len) : M.height = this.plotHeight), M;
  16990. }, I.prototype.getPoint = function(b) {
  16991. var M = b, x = this.xData || this.options.xData || this.processedXData || !1;
  16992. return !b || b instanceof this.pointClass || (M = new this.pointClass().init(this, this.options.data[b.i], x ? x[b.i] : void 0), M.category = d(this.xAxis.categories ? this.xAxis.categories[M.x] : M.x, M.x), M.dist = b.dist, M.distX = b.distX, M.plotX = b.plotX, M.plotY = b.plotY, M.index = b.i, M.isInside = this.isPointInside(b)), M;
  16993. }, P(I.prototype, "searchPoint", function(b) {
  16994. return this.getPoint(b.apply(this, [].slice.call(arguments, 1)));
  16995. }), P(R.prototype, "haloPath", function(b) {
  16996. var M = this.series, x = this.plotX, a = this.plotY, c = M.chart.inverted;
  16997. M.isSeriesBoosting && c && (this.plotX = M.yAxis.len - a, this.plotY = M.xAxis.len - x);
  16998. var p = b.apply(this, Array.prototype.slice.call(
  16999. arguments,
  17000. 1
  17001. ));
  17002. return M.isSeriesBoosting && c && (this.plotX = x, this.plotY = a), p;
  17003. }), P(I.prototype, "markerAttribs", function(b, M) {
  17004. var x = M.plotX, a = M.plotY, c = this.chart.inverted;
  17005. this.isSeriesBoosting && c && (M.plotX = this.yAxis.len - a, M.plotY = this.xAxis.len - x);
  17006. var p = b.apply(this, Array.prototype.slice.call(arguments, 1));
  17007. return this.isSeriesBoosting && c && (M.plotX = x, M.plotY = a), p;
  17008. }), Z(I, "destroy", function() {
  17009. var b = this, M = b.chart;
  17010. M.markerGroup === b.markerGroup && (b.markerGroup = null), M.hoverPoints && (M.hoverPoints = M.hoverPoints.filter(function(x) {
  17011. return x.series === b;
  17012. })), M.hoverPoint && M.hoverPoint.series === b && (M.hoverPoint = null);
  17013. }), P(I.prototype, "getExtremes", function(b) {
  17014. return this.isSeriesBoosting && this.hasExtremes && this.hasExtremes() ? {} : b.apply(this, Array.prototype.slice.call(arguments, 1));
  17015. }), ["translate", "generatePoints", "drawTracker", "drawPoints", "render"].forEach(function(b) {
  17016. function M(x) {
  17017. var a = this.options.stacking && (b === "translate" || b === "generatePoints");
  17018. !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"]();
  17019. }
  17020. P(I.prototype, b, M), b === "translate" && "column bar arearange columnrange heatmap treemap".split(" ").forEach(function(x) {
  17021. N[x] && P(N[x].prototype, b, M);
  17022. });
  17023. }), P(I.prototype, "processData", function(b) {
  17024. function M(c) {
  17025. return x.forceCrop ? !1 : x.chart.isChartSeriesBoosting() || (c ? c.length : 0) >= (x.options.boostThreshold || Number.MAX_VALUE);
  17026. }
  17027. var x = this, a = this.options.data;
  17028. O(this.chart) && W[this.type] ? (M(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 = M(a)) ? (a = void 0, this.options.data && this.options.data.length && (a = this.getFirstValidPoint(this.options.data), u(a) || v(a) || w(12, !1, this.chart)), this.enterBoost()) : this.exitBoost && this.exitBoost()) : b.apply(this, Array.prototype.slice.call(arguments, 1));
  17029. }), Z(I, "hide", function() {
  17030. this.canvas && this.renderTarget && (this.ogl && this.ogl.clear(), this.boostClear());
  17031. }), I.prototype.enterBoost = function() {
  17032. this.alteredByBoost = [], ["allowDG", "directTouch", "stickyTracking"].forEach(function(b) {
  17033. this.alteredByBoost.push({ prop: b, val: this[b], own: Object.hasOwnProperty.call(this, b) });
  17034. }, this), this.directTouch = this.allowDG = !1, this.finishedAnimating = this.stickyTracking = !0, this.labelBySeries && (this.labelBySeries = this.labelBySeries.destroy());
  17035. }, I.prototype.exitBoost = function() {
  17036. (this.alteredByBoost || []).forEach(
  17037. function(b) {
  17038. b.own ? this[b.prop] = b.val : delete this[b.prop];
  17039. },
  17040. this
  17041. ), this.boostClear && this.boostClear();
  17042. }, I.prototype.hasExtremes = function(b) {
  17043. var M = this.options, x = this.xAxis && this.xAxis.options, a = this.yAxis && this.yAxis.options, c = this.colorAxis && this.colorAxis.options;
  17044. return M.data.length > (M.boostThreshold || Number.MAX_VALUE) && u(a.min) && u(a.max) && (!b || u(x.min) && u(x.max)) && (!c || u(c.min) && u(c.max));
  17045. }, I.prototype.destroyGraphics = function() {
  17046. var b = this, M = this, x = this.points, a, c;
  17047. if (x)
  17048. for (c = 0; c < x.length; c += 1)
  17049. (a = x[c]) && a.destroyElements && a.destroyElements();
  17050. [
  17051. "graph",
  17052. "area",
  17053. "tracker"
  17054. ].forEach(function(p) {
  17055. M[p] && (M[p] = M[p].destroy());
  17056. }), this.getZonesGraphs && this.getZonesGraphs([["graph", "highcharts-graph"]]).forEach(function(p) {
  17057. var i = b[p[0]];
  17058. i && (b[p[0]] = i.destroy());
  17059. });
  17060. }, U.forEach(function(b) {
  17061. C[b] && (C[b].boostThreshold = 5e3, C[b].boostData = [], N[b].prototype.fillOpacity = !0);
  17062. });
  17063. }), E(g, "Extensions/Boost/NamedColors.js", [g["Core/Color/Color.js"]], function(h) {
  17064. var y = {
  17065. aliceblue: "#f0f8ff",
  17066. antiquewhite: "#faebd7",
  17067. aqua: "#00ffff",
  17068. aquamarine: "#7fffd4",
  17069. azure: "#f0ffff",
  17070. beige: "#f5f5dc",
  17071. bisque: "#ffe4c4",
  17072. black: "#000000",
  17073. blanchedalmond: "#ffebcd",
  17074. blue: "#0000ff",
  17075. blueviolet: "#8a2be2",
  17076. brown: "#a52a2a",
  17077. burlywood: "#deb887",
  17078. cadetblue: "#5f9ea0",
  17079. chartreuse: "#7fff00",
  17080. chocolate: "#d2691e",
  17081. coral: "#ff7f50",
  17082. cornflowerblue: "#6495ed",
  17083. cornsilk: "#fff8dc",
  17084. crimson: "#dc143c",
  17085. cyan: "#00ffff",
  17086. darkblue: "#00008b",
  17087. darkcyan: "#008b8b",
  17088. darkgoldenrod: "#b8860b",
  17089. darkgray: "#a9a9a9",
  17090. darkgreen: "#006400",
  17091. darkkhaki: "#bdb76b",
  17092. darkmagenta: "#8b008b",
  17093. darkolivegreen: "#556b2f",
  17094. darkorange: "#ff8c00",
  17095. darkorchid: "#9932cc",
  17096. darkred: "#8b0000",
  17097. darksalmon: "#e9967a",
  17098. darkseagreen: "#8fbc8f",
  17099. darkslateblue: "#483d8b",
  17100. darkslategray: "#2f4f4f",
  17101. darkturquoise: "#00ced1",
  17102. darkviolet: "#9400d3",
  17103. deeppink: "#ff1493",
  17104. deepskyblue: "#00bfff",
  17105. dimgray: "#696969",
  17106. dodgerblue: "#1e90ff",
  17107. feldspar: "#d19275",
  17108. firebrick: "#b22222",
  17109. floralwhite: "#fffaf0",
  17110. forestgreen: "#228b22",
  17111. fuchsia: "#ff00ff",
  17112. gainsboro: "#dcdcdc",
  17113. ghostwhite: "#f8f8ff",
  17114. gold: "#ffd700",
  17115. goldenrod: "#daa520",
  17116. gray: "#808080",
  17117. green: "#008000",
  17118. greenyellow: "#adff2f",
  17119. honeydew: "#f0fff0",
  17120. hotpink: "#ff69b4",
  17121. indianred: "#cd5c5c",
  17122. indigo: "#4b0082",
  17123. ivory: "#fffff0",
  17124. khaki: "#f0e68c",
  17125. lavender: "#e6e6fa",
  17126. lavenderblush: "#fff0f5",
  17127. lawngreen: "#7cfc00",
  17128. lemonchiffon: "#fffacd",
  17129. lightblue: "#add8e6",
  17130. lightcoral: "#f08080",
  17131. lightcyan: "#e0ffff",
  17132. lightgoldenrodyellow: "#fafad2",
  17133. lightgrey: "#d3d3d3",
  17134. lightgreen: "#90ee90",
  17135. lightpink: "#ffb6c1",
  17136. lightsalmon: "#ffa07a",
  17137. lightseagreen: "#20b2aa",
  17138. lightskyblue: "#87cefa",
  17139. lightslateblue: "#8470ff",
  17140. lightslategray: "#778899",
  17141. lightsteelblue: "#b0c4de",
  17142. lightyellow: "#ffffe0",
  17143. lime: "#00ff00",
  17144. limegreen: "#32cd32",
  17145. linen: "#faf0e6",
  17146. magenta: "#ff00ff",
  17147. maroon: "#800000",
  17148. mediumaquamarine: "#66cdaa",
  17149. mediumblue: "#0000cd",
  17150. mediumorchid: "#ba55d3",
  17151. mediumpurple: "#9370d8",
  17152. mediumseagreen: "#3cb371",
  17153. mediumslateblue: "#7b68ee",
  17154. mediumspringgreen: "#00fa9a",
  17155. mediumturquoise: "#48d1cc",
  17156. mediumvioletred: "#c71585",
  17157. midnightblue: "#191970",
  17158. mintcream: "#f5fffa",
  17159. mistyrose: "#ffe4e1",
  17160. moccasin: "#ffe4b5",
  17161. navajowhite: "#ffdead",
  17162. navy: "#000080",
  17163. oldlace: "#fdf5e6",
  17164. olive: "#808000",
  17165. olivedrab: "#6b8e23",
  17166. orange: "#ffa500",
  17167. orangered: "#ff4500",
  17168. orchid: "#da70d6",
  17169. palegoldenrod: "#eee8aa",
  17170. palegreen: "#98fb98",
  17171. paleturquoise: "#afeeee",
  17172. palevioletred: "#d87093",
  17173. papayawhip: "#ffefd5",
  17174. peachpuff: "#ffdab9",
  17175. peru: "#cd853f",
  17176. pink: "#ffc0cb",
  17177. plum: "#dda0dd",
  17178. powderblue: "#b0e0e6",
  17179. purple: "#800080",
  17180. red: "#ff0000",
  17181. rosybrown: "#bc8f8f",
  17182. royalblue: "#4169e1",
  17183. saddlebrown: "#8b4513",
  17184. salmon: "#fa8072",
  17185. sandybrown: "#f4a460",
  17186. seagreen: "#2e8b57",
  17187. seashell: "#fff5ee",
  17188. sienna: "#a0522d",
  17189. silver: "#c0c0c0",
  17190. skyblue: "#87ceeb",
  17191. slateblue: "#6a5acd",
  17192. slategray: "#708090",
  17193. snow: "#fffafa",
  17194. springgreen: "#00ff7f",
  17195. steelblue: "#4682b4",
  17196. tan: "#d2b48c",
  17197. teal: "#008080",
  17198. thistle: "#d8bfd8",
  17199. tomato: "#ff6347",
  17200. turquoise: "#40e0d0",
  17201. violet: "#ee82ee",
  17202. violetred: "#d02090",
  17203. wheat: "#f5deb3",
  17204. white: "#ffffff",
  17205. whitesmoke: "#f5f5f5",
  17206. yellow: "#ffff00",
  17207. yellowgreen: "#9acd32"
  17208. };
  17209. return h.names = y;
  17210. }), E(g, "Extensions/Boost/Boost.js", [g["Extensions/Boost/BoostUtils.js"], g["Extensions/Boost/BoostInit.js"], g["Extensions/BoostCanvas.js"], g["Core/Utilities.js"]], function(h, y, R, I) {
  17211. I = I.error, h = h.hasWebGLSupport, h() ? y() : typeof R < "u" ? R() : I(26);
  17212. }), E(g, "masters/modules/boost.src.js", [], function() {
  17213. });
  17214. });
  17215. })(Hp);
  17216. var I0 = Hp.exports;
  17217. const R0 = /* @__PURE__ */ Cn(I0), N0 = (r) => {
  17218. let g = window.location.protocol;
  17219. /^http(s)?:&/.test(g) || (g = "http:");
  17220. let E = {
  17221. lang: {
  17222. // Highcharts
  17223. contextButtonTitle: "图表导出菜单",
  17224. decimalPoint: ".",
  17225. downloadJPEG: "下载 JPEG 图片",
  17226. downloadPDF: "下载 PDF 文件",
  17227. downloadPNG: "下载 PNG 文件",
  17228. downloadSVG: "下载 SVG 文件",
  17229. downloadXLS: "下载 XLS 文件",
  17230. drillUpText: "◁ 返回 {series.name}",
  17231. exitFullscreen: "退出全屏",
  17232. exportData: {
  17233. categoryDatetimeHeader: "时间",
  17234. categoryHeader: "类别"
  17235. },
  17236. openInCloud: "在 Highcharts Cloud 中打开",
  17237. invalidDate: "无效的时间",
  17238. loading: "加载中...",
  17239. months: [
  17240. "一月",
  17241. "二月",
  17242. "三月",
  17243. "四月",
  17244. "五月",
  17245. "六月",
  17246. "七月",
  17247. "八月",
  17248. "九月",
  17249. "十月",
  17250. "十一月",
  17251. "十二月"
  17252. ],
  17253. navigation: {
  17254. popup: {
  17255. addButton: "新增",
  17256. arrowLine: "直线",
  17257. arrowRay: "射线",
  17258. arrowSegment: "线段",
  17259. background: "背景",
  17260. backgroundColor: "背景颜色",
  17261. backgroundColors: "背景颜色",
  17262. borderColor: "边框颜色",
  17263. borderRadius: "圆角",
  17264. borderWidth: "边框大小",
  17265. circle: "圆",
  17266. color: "颜色",
  17267. connector: "连接",
  17268. crooked3: "Crooked 3 line",
  17269. crooked5: "Crooked 5 line",
  17270. crosshairX: "竖直准星线",
  17271. crosshairY: "水平准星线",
  17272. editButton: "编辑",
  17273. elliott3: "Elliott 3 line",
  17274. elliott5: "Elliott 5 line",
  17275. fibonacci: "斐波纳契",
  17276. fill: "填充颜色",
  17277. flags: "标志",
  17278. fontSize: "字体大小",
  17279. format: "文本",
  17280. height: "高度",
  17281. horizontalLine: "水平线",
  17282. infinityLine: "无限线",
  17283. innerBackground: "内背景",
  17284. label: "文字标签",
  17285. labelOptions: "文字标签配置",
  17286. labels: "文字标签",
  17287. line: "线",
  17288. lines: "线条",
  17289. measure: "Measure",
  17290. measureX: "Measure X",
  17291. measureXY: "Measure XY",
  17292. measureY: "Measure Y",
  17293. name: "名字",
  17294. outerBackground: "外背景",
  17295. padding: "内间距",
  17296. parallelChannel: "并行通道",
  17297. pitchfork: "杈子",
  17298. ray: "射线",
  17299. rectangle: "矩形",
  17300. removeButton: "删除",
  17301. saveButton: "保存",
  17302. segment: "段落",
  17303. series: "数据列",
  17304. shapeOptions: "图形配置",
  17305. shapes: "图形",
  17306. simpleShapes: "简单图形",
  17307. stroke: "线条颜色",
  17308. strokeWidth: "线条粗细",
  17309. style: "样式",
  17310. title: "标题",
  17311. tunnel: "通道",
  17312. typeOptions: "详情",
  17313. verticalArrow: "竖直箭头",
  17314. verticalCounter: "竖直计数器",
  17315. verticalLabel: "竖直标签",
  17316. verticalLine: "竖直线",
  17317. volume: "成交量"
  17318. }
  17319. },
  17320. noData: "暂无数据",
  17321. numericSymbols: null,
  17322. printChart: "打印图表",
  17323. resetZoom: "重置缩放比例",
  17324. resetZoomTitle: "重置为原始大小",
  17325. shortMonths: [
  17326. "一月",
  17327. "二月",
  17328. "三月",
  17329. "四月",
  17330. "五月",
  17331. "六月",
  17332. "七月",
  17333. "八月",
  17334. "九月",
  17335. "十月",
  17336. "十一月",
  17337. "十二月"
  17338. ],
  17339. thousandsSep: ",",
  17340. viewData: "查看数据表格",
  17341. viewFullscreen: "全屏查看",
  17342. weekdays: [
  17343. "星期天",
  17344. "星期一",
  17345. "星期二",
  17346. "星期三",
  17347. "星期四",
  17348. "星期五",
  17349. "星期六"
  17350. ],
  17351. viewData: "查看数据表格",
  17352. // Highstock
  17353. rangeSelectorFrom: "开始时间",
  17354. rangeSelectorTo: "结束时间",
  17355. rangeSelectorZoom: "范围",
  17356. // Highmaps
  17357. zoomIn: "缩小",
  17358. zoomOut: "放大"
  17359. },
  17360. global: {
  17361. // 不使用 UTC时间
  17362. useUTC: !1,
  17363. timezoneOffset: -8 * 60,
  17364. canvasToolsURL: g + "//cdn.hcharts.cn/highcharts/modules/canvas-tools.js",
  17365. VMLRadialGradientURL: g + +"//cdn.hcharts.cn/highcharts/gfx/vml-radial-gradient.png"
  17366. },
  17367. exporting: {
  17368. url: g + "//export.highcharts.com.cn"
  17369. },
  17370. credits: {
  17371. text: "Highcharts.com.cn",
  17372. href: "https://www.highcharts.com.cn"
  17373. },
  17374. /**
  17375. * Highstock
  17376. */
  17377. rangeSelector: {
  17378. inputDateFormat: "%Y-%m-%d",
  17379. buttons: [
  17380. {
  17381. type: "month",
  17382. count: 1,
  17383. text: "月"
  17384. },
  17385. {
  17386. type: "month",
  17387. count: 3,
  17388. text: "季度"
  17389. },
  17390. {
  17391. type: "month",
  17392. count: 6,
  17393. text: "半年"
  17394. },
  17395. {
  17396. type: "ytd",
  17397. text: "YTD"
  17398. },
  17399. {
  17400. type: "year",
  17401. count: 1,
  17402. text: "年"
  17403. },
  17404. {
  17405. type: "all",
  17406. text: "所有"
  17407. }
  17408. ]
  17409. },
  17410. plotOptions: {
  17411. series: {
  17412. dataGrouping: {
  17413. dateTimeLabelFormats: {
  17414. /* millisecond: [
  17415. '%Y-%m-%d %H:%M:%S.%L',
  17416. '%Y-%m-%d %H:%M:%S.%L',
  17417. ' ~ %H:%M:%S.%L',
  17418. ],
  17419. second: ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S', ' ~ %H:%M:%S'],
  17420. minute: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'],
  17421. hour: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'], */
  17422. day: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17423. week: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17424. month: ["%Y/%m", "%Y/%m", " ~ %Y/%m"],
  17425. year: ["%Y", "%Y", " ~ %Y"]
  17426. }
  17427. }
  17428. }
  17429. }
  17430. };
  17431. r.setOptions(E);
  17432. };
  17433. //! moment.js
  17434. //! version : 2.29.4
  17435. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  17436. //! license : MIT
  17437. //! momentjs.com
  17438. var Up;
  17439. function Xt() {
  17440. return Up.apply(null, arguments);
  17441. }
  17442. function B0(r) {
  17443. Up = r;
  17444. }
  17445. function Bi(r) {
  17446. return r instanceof Array || Object.prototype.toString.call(r) === "[object Array]";
  17447. }
  17448. function Vr(r) {
  17449. return r != null && Object.prototype.toString.call(r) === "[object Object]";
  17450. }
  17451. function me(r, g) {
  17452. return Object.prototype.hasOwnProperty.call(r, g);
  17453. }
  17454. function wh(r) {
  17455. if (Object.getOwnPropertyNames)
  17456. return Object.getOwnPropertyNames(r).length === 0;
  17457. var g;
  17458. for (g in r)
  17459. if (me(r, g))
  17460. return !1;
  17461. return !0;
  17462. }
  17463. function li(r) {
  17464. return r === void 0;
  17465. }
  17466. function dr(r) {
  17467. return typeof r == "number" || Object.prototype.toString.call(r) === "[object Number]";
  17468. }
  17469. function no(r) {
  17470. return r instanceof Date || Object.prototype.toString.call(r) === "[object Date]";
  17471. }
  17472. function Fp(r, g) {
  17473. var E = [], h, y = r.length;
  17474. for (h = 0; h < y; ++h)
  17475. E.push(g(r[h], h));
  17476. return E;
  17477. }
  17478. function Tr(r, g) {
  17479. for (var E in g)
  17480. me(g, E) && (r[E] = g[E]);
  17481. return me(g, "toString") && (r.toString = g.toString), me(g, "valueOf") && (r.valueOf = g.valueOf), r;
  17482. }
  17483. function $i(r, g, E, h) {
  17484. return mu(r, g, E, h, !0).utc();
  17485. }
  17486. function j0() {
  17487. return {
  17488. empty: !1,
  17489. unusedTokens: [],
  17490. unusedInput: [],
  17491. overflow: -2,
  17492. charsLeftOver: 0,
  17493. nullInput: !1,
  17494. invalidEra: null,
  17495. invalidMonth: null,
  17496. invalidFormat: !1,
  17497. userInvalidated: !1,
  17498. iso: !1,
  17499. parsedDateParts: [],
  17500. era: null,
  17501. meridiem: null,
  17502. rfc2822: !1,
  17503. weekdayMismatch: !1
  17504. };
  17505. }
  17506. function oe(r) {
  17507. return r._pf == null && (r._pf = j0()), r._pf;
  17508. }
  17509. var ph;
  17510. Array.prototype.some ? ph = Array.prototype.some : ph = function(r) {
  17511. var g = Object(this), E = g.length >>> 0, h;
  17512. for (h = 0; h < E; h++)
  17513. if (h in g && r.call(this, g[h], h, g))
  17514. return !0;
  17515. return !1;
  17516. };
  17517. function Mh(r) {
  17518. if (r._isValid == null) {
  17519. var g = oe(r), E = ph.call(g.parsedDateParts, function(y) {
  17520. return y != null;
  17521. }), h = !isNaN(r._d.getTime()) && g.overflow < 0 && !g.empty && !g.invalidEra && !g.invalidMonth && !g.invalidWeekday && !g.weekdayMismatch && !g.nullInput && !g.invalidFormat && !g.userInvalidated && (!g.meridiem || g.meridiem && E);
  17522. if (r._strict && (h = h && g.charsLeftOver === 0 && g.unusedTokens.length === 0 && g.bigHour === void 0), Object.isFrozen == null || !Object.isFrozen(r))
  17523. r._isValid = h;
  17524. else
  17525. return h;
  17526. }
  17527. return r._isValid;
  17528. }
  17529. function ks(r) {
  17530. var g = $i(NaN);
  17531. return r != null ? Tr(oe(g), r) : oe(g).userInvalidated = !0, g;
  17532. }
  17533. var Sp = Xt.momentProperties = [], th = !1;
  17534. function Ch(r, g) {
  17535. var E, h, y, R = Sp.length;
  17536. if (li(g._isAMomentObject) || (r._isAMomentObject = g._isAMomentObject), li(g._i) || (r._i = g._i), li(g._f) || (r._f = g._f), li(g._l) || (r._l = g._l), li(g._strict) || (r._strict = g._strict), li(g._tzm) || (r._tzm = g._tzm), li(g._isUTC) || (r._isUTC = g._isUTC), li(g._offset) || (r._offset = g._offset), li(g._pf) || (r._pf = oe(g)), li(g._locale) || (r._locale = g._locale), R > 0)
  17537. for (E = 0; E < R; E++)
  17538. h = Sp[E], y = g[h], li(y) || (r[h] = y);
  17539. return r;
  17540. }
  17541. function oo(r) {
  17542. Ch(this, r), this._d = new Date(r._d != null ? r._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), th === !1 && (th = !0, Xt.updateOffset(this), th = !1);
  17543. }
  17544. function ji(r) {
  17545. return r instanceof oo || r != null && r._isAMomentObject != null;
  17546. }
  17547. function Vp(r) {
  17548. Xt.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + r);
  17549. }
  17550. function Ei(r, g) {
  17551. var E = !0;
  17552. return Tr(function() {
  17553. if (Xt.deprecationHandler != null && Xt.deprecationHandler(null, r), E) {
  17554. var h = [], y, R, I, Z = arguments.length;
  17555. for (R = 0; R < Z; R++) {
  17556. if (y = "", typeof arguments[R] == "object") {
  17557. y += `
  17558. [` + R + "] ";
  17559. for (I in arguments[0])
  17560. me(arguments[0], I) && (y += I + ": " + arguments[0][I] + ", ");
  17561. y = y.slice(0, -2);
  17562. } else
  17563. y = arguments[R];
  17564. h.push(y);
  17565. }
  17566. Vp(
  17567. r + `
  17568. Arguments: ` + Array.prototype.slice.call(h).join("") + `
  17569. ` + new Error().stack
  17570. ), E = !1;
  17571. }
  17572. return g.apply(this, arguments);
  17573. }, g);
  17574. }
  17575. var wp = {};
  17576. function $p(r, g) {
  17577. Xt.deprecationHandler != null && Xt.deprecationHandler(r, g), wp[r] || (Vp(g), wp[r] = !0);
  17578. }
  17579. Xt.suppressDeprecationWarnings = !1;
  17580. Xt.deprecationHandler = null;
  17581. function Zi(r) {
  17582. return typeof Function < "u" && r instanceof Function || Object.prototype.toString.call(r) === "[object Function]";
  17583. }
  17584. function W0(r) {
  17585. var g, E;
  17586. for (E in r)
  17587. me(r, E) && (g = r[E], Zi(g) ? this[E] = g : this["_" + E] = g);
  17588. this._config = r, this._dayOfMonthOrdinalParseLenient = new RegExp(
  17589. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
  17590. );
  17591. }
  17592. function uh(r, g) {
  17593. var E = Tr({}, r), h;
  17594. for (h in g)
  17595. me(g, h) && (Vr(r[h]) && Vr(g[h]) ? (E[h] = {}, Tr(E[h], r[h]), Tr(E[h], g[h])) : g[h] != null ? E[h] = g[h] : delete E[h]);
  17596. for (h in r)
  17597. me(r, h) && !me(g, h) && Vr(r[h]) && (E[h] = Tr({}, E[h]));
  17598. return E;
  17599. }
  17600. function kh(r) {
  17601. r != null && this.set(r);
  17602. }
  17603. var dh;
  17604. Object.keys ? dh = Object.keys : dh = function(r) {
  17605. var g, E = [];
  17606. for (g in r)
  17607. me(r, g) && E.push(g);
  17608. return E;
  17609. };
  17610. var z0 = {
  17611. sameDay: "[Today at] LT",
  17612. nextDay: "[Tomorrow at] LT",
  17613. nextWeek: "dddd [at] LT",
  17614. lastDay: "[Yesterday at] LT",
  17615. lastWeek: "[Last] dddd [at] LT",
  17616. sameElse: "L"
  17617. };
  17618. function Y0(r, g, E) {
  17619. var h = this._calendar[r] || this._calendar.sameElse;
  17620. return Zi(h) ? h.call(g, E) : h;
  17621. }
  17622. function Ui(r, g, E) {
  17623. var h = "" + Math.abs(r), y = g - h.length, R = r >= 0;
  17624. return (R ? E ? "+" : "" : "-") + Math.pow(10, Math.max(0, y)).toString().substr(1) + h;
  17625. }
  17626. var Ah = /(\[[^\[]*\])|(\\)?([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, is = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, eh = {}, yn = {};
  17627. function Zt(r, g, E, h) {
  17628. var y = h;
  17629. typeof h == "string" && (y = function() {
  17630. return this[h]();
  17631. }), r && (yn[r] = y), g && (yn[g[0]] = function() {
  17632. return Ui(y.apply(this, arguments), g[1], g[2]);
  17633. }), E && (yn[E] = function() {
  17634. return this.localeData().ordinal(
  17635. y.apply(this, arguments),
  17636. r
  17637. );
  17638. });
  17639. }
  17640. function X0(r) {
  17641. return r.match(/\[[\s\S]/) ? r.replace(/^\[|\]$/g, "") : r.replace(/\\/g, "");
  17642. }
  17643. function G0(r) {
  17644. var g = r.match(Ah), E, h;
  17645. for (E = 0, h = g.length; E < h; E++)
  17646. yn[g[E]] ? g[E] = yn[g[E]] : g[E] = X0(g[E]);
  17647. return function(y) {
  17648. var R = "", I;
  17649. for (I = 0; I < h; I++)
  17650. R += Zi(g[I]) ? g[I].call(y, r) : g[I];
  17651. return R;
  17652. };
  17653. }
  17654. function ss(r, g) {
  17655. return r.isValid() ? (g = Zp(g, r.localeData()), eh[g] = eh[g] || G0(g), eh[g](r)) : r.localeData().invalidDate();
  17656. }
  17657. function Zp(r, g) {
  17658. var E = 5;
  17659. function h(y) {
  17660. return g.longDateFormat(y) || y;
  17661. }
  17662. for (is.lastIndex = 0; E >= 0 && is.test(r); )
  17663. r = r.replace(
  17664. is,
  17665. h
  17666. ), is.lastIndex = 0, E -= 1;
  17667. return r;
  17668. }
  17669. var H0 = {
  17670. LTS: "h:mm:ss A",
  17671. LT: "h:mm A",
  17672. L: "MM/DD/YYYY",
  17673. LL: "MMMM D, YYYY",
  17674. LLL: "MMMM D, YYYY h:mm A",
  17675. LLLL: "dddd, MMMM D, YYYY h:mm A"
  17676. };
  17677. function U0(r) {
  17678. var g = this._longDateFormat[r], E = this._longDateFormat[r.toUpperCase()];
  17679. return g || !E ? g : (this._longDateFormat[r] = E.match(Ah).map(function(h) {
  17680. return h === "MMMM" || h === "MM" || h === "DD" || h === "dddd" ? h.slice(1) : h;
  17681. }).join(""), this._longDateFormat[r]);
  17682. }
  17683. var F0 = "Invalid date";
  17684. function V0() {
  17685. return this._invalidDate;
  17686. }
  17687. var $0 = "%d", Z0 = /\d{1,2}/;
  17688. function K0(r) {
  17689. return this._ordinal.replace("%d", r);
  17690. }
  17691. var J0 = {
  17692. future: "in %s",
  17693. past: "%s ago",
  17694. s: "a few seconds",
  17695. ss: "%d seconds",
  17696. m: "a minute",
  17697. mm: "%d minutes",
  17698. h: "an hour",
  17699. hh: "%d hours",
  17700. d: "a day",
  17701. dd: "%d days",
  17702. w: "a week",
  17703. ww: "%d weeks",
  17704. M: "a month",
  17705. MM: "%d months",
  17706. y: "a year",
  17707. yy: "%d years"
  17708. };
  17709. function q0(r, g, E, h) {
  17710. var y = this._relativeTime[E];
  17711. return Zi(y) ? y(r, g, E, h) : y.replace(/%d/i, r);
  17712. }
  17713. function Q0(r, g) {
  17714. var E = this._relativeTime[r > 0 ? "future" : "past"];
  17715. return Zi(E) ? E(g) : E.replace(/%s/i, g);
  17716. }
  17717. var Jn = {};
  17718. function qe(r, g) {
  17719. var E = r.toLowerCase();
  17720. Jn[E] = Jn[E + "s"] = Jn[g] = r;
  17721. }
  17722. function Oi(r) {
  17723. return typeof r == "string" ? Jn[r] || Jn[r.toLowerCase()] : void 0;
  17724. }
  17725. function Th(r) {
  17726. var g = {}, E, h;
  17727. for (h in r)
  17728. me(r, h) && (E = Oi(h), E && (g[E] = r[h]));
  17729. return g;
  17730. }
  17731. var Kp = {};
  17732. function Qe(r, g) {
  17733. Kp[r] = g;
  17734. }
  17735. function t1(r) {
  17736. var g = [], E;
  17737. for (E in r)
  17738. me(r, E) && g.push({ unit: E, priority: Kp[E] });
  17739. return g.sort(function(h, y) {
  17740. return h.priority - y.priority;
  17741. }), g;
  17742. }
  17743. function As(r) {
  17744. return r % 4 === 0 && r % 100 !== 0 || r % 400 === 0;
  17745. }
  17746. function Ti(r) {
  17747. return r < 0 ? Math.ceil(r) || 0 : Math.floor(r);
  17748. }
  17749. function he(r) {
  17750. var g = +r, E = 0;
  17751. return g !== 0 && isFinite(g) && (E = Ti(g)), E;
  17752. }
  17753. function kn(r, g) {
  17754. return function(E) {
  17755. return E != null ? (Jp(this, r, E), Xt.updateOffset(this, g), this) : gs(this, r);
  17756. };
  17757. }
  17758. function gs(r, g) {
  17759. return r.isValid() ? r._d["get" + (r._isUTC ? "UTC" : "") + g]() : NaN;
  17760. }
  17761. function Jp(r, g, E) {
  17762. r.isValid() && !isNaN(E) && (g === "FullYear" && As(r.year()) && r.month() === 1 && r.date() === 29 ? (E = he(E), r._d["set" + (r._isUTC ? "UTC" : "") + g](
  17763. E,
  17764. r.month(),
  17765. _s(E, r.month())
  17766. )) : r._d["set" + (r._isUTC ? "UTC" : "") + g](E));
  17767. }
  17768. function e1(r) {
  17769. return r = Oi(r), Zi(this[r]) ? this[r]() : this;
  17770. }
  17771. function i1(r, g) {
  17772. if (typeof r == "object") {
  17773. r = Th(r);
  17774. var E = t1(r), h, y = E.length;
  17775. for (h = 0; h < y; h++)
  17776. this[E[h].unit](r[E[h].unit]);
  17777. } else if (r = Oi(r), Zi(this[r]))
  17778. return this[r](g);
  17779. return this;
  17780. }
  17781. var qp = /\d/, vi = /\d\d/, Qp = /\d{3}/, Ph = /\d{4}/, Ts = /[+-]?\d{6}/, Pe = /\d\d?/, tu = /\d\d\d\d?/, eu = /\d\d\d\d\d\d?/, Ps = /\d{1,3}/, Eh = /\d{1,4}/, Es = /[+-]?\d{1,6}/, An = /\d+/, Os = /[+-]?\d+/, r1 = /Z|[+-]\d\d:?\d\d/gi, Ls = /Z|[+-]\d\d(?::?\d\d)?/gi, n1 = /[+-]?\d+(\.\d{1,3})?/, so = /[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, ms;
  17782. ms = {};
  17783. function Ut(r, g, E) {
  17784. ms[r] = Zi(g) ? g : function(h, y) {
  17785. return h && E ? E : g;
  17786. };
  17787. }
  17788. function o1(r, g) {
  17789. return me(ms, r) ? ms[r](g._strict, g._locale) : new RegExp(s1(r));
  17790. }
  17791. function s1(r) {
  17792. return mi(
  17793. r.replace("\\", "").replace(
  17794. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  17795. function(g, E, h, y, R) {
  17796. return E || h || y || R;
  17797. }
  17798. )
  17799. );
  17800. }
  17801. function mi(r) {
  17802. return r.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
  17803. }
  17804. var fh = {};
  17805. function we(r, g) {
  17806. var E, h = g, y;
  17807. for (typeof r == "string" && (r = [r]), dr(g) && (h = function(R, I) {
  17808. I[g] = he(R);
  17809. }), y = r.length, E = 0; E < y; E++)
  17810. fh[r[E]] = h;
  17811. }
  17812. function ao(r, g) {
  17813. we(r, function(E, h, y, R) {
  17814. y._w = y._w || {}, g(E, y._w, y, R);
  17815. });
  17816. }
  17817. function a1(r, g, E) {
  17818. g != null && me(fh, r) && fh[r](g, E._a, E, r);
  17819. }
  17820. var Je = 0, lr = 1, Hi = 2, Ge = 3, Ri = 4, cr = 5, Fr = 6, h1 = 7, l1 = 8;
  17821. function c1(r, g) {
  17822. return (r % g + g) % g;
  17823. }
  17824. var je;
  17825. Array.prototype.indexOf ? je = Array.prototype.indexOf : je = function(r) {
  17826. var g;
  17827. for (g = 0; g < this.length; ++g)
  17828. if (this[g] === r)
  17829. return g;
  17830. return -1;
  17831. };
  17832. function _s(r, g) {
  17833. if (isNaN(r) || isNaN(g))
  17834. return NaN;
  17835. var E = c1(g, 12);
  17836. return r += (g - E) / 12, E === 1 ? As(r) ? 29 : 28 : 31 - E % 7 % 2;
  17837. }
  17838. Zt("M", ["MM", 2], "Mo", function() {
  17839. return this.month() + 1;
  17840. });
  17841. Zt("MMM", 0, 0, function(r) {
  17842. return this.localeData().monthsShort(this, r);
  17843. });
  17844. Zt("MMMM", 0, 0, function(r) {
  17845. return this.localeData().months(this, r);
  17846. });
  17847. qe("month", "M");
  17848. Qe("month", 8);
  17849. Ut("M", Pe);
  17850. Ut("MM", Pe, vi);
  17851. Ut("MMM", function(r, g) {
  17852. return g.monthsShortRegex(r);
  17853. });
  17854. Ut("MMMM", function(r, g) {
  17855. return g.monthsRegex(r);
  17856. });
  17857. we(["M", "MM"], function(r, g) {
  17858. g[lr] = he(r) - 1;
  17859. });
  17860. we(["MMM", "MMMM"], function(r, g, E, h) {
  17861. var y = E._locale.monthsParse(r, h, E._strict);
  17862. y != null ? g[lr] = y : oe(E).invalidMonth = r;
  17863. });
  17864. var p1 = "January_February_March_April_May_June_July_August_September_October_November_December".split(
  17865. "_"
  17866. ), iu = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), ru = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, u1 = so, d1 = so;
  17867. function f1(r, g) {
  17868. return r ? Bi(this._months) ? this._months[r.month()] : this._months[(this._months.isFormat || ru).test(g) ? "format" : "standalone"][r.month()] : Bi(this._months) ? this._months : this._months.standalone;
  17869. }
  17870. function g1(r, g) {
  17871. return r ? Bi(this._monthsShort) ? this._monthsShort[r.month()] : this._monthsShort[ru.test(g) ? "format" : "standalone"][r.month()] : Bi(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
  17872. }
  17873. function m1(r, g, E) {
  17874. var h, y, R, I = r.toLocaleLowerCase();
  17875. if (!this._monthsParse)
  17876. for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], h = 0; h < 12; ++h)
  17877. R = $i([2e3, h]), this._shortMonthsParse[h] = this.monthsShort(
  17878. R,
  17879. ""
  17880. ).toLocaleLowerCase(), this._longMonthsParse[h] = this.months(R, "").toLocaleLowerCase();
  17881. return E ? g === "MMM" ? (y = je.call(this._shortMonthsParse, I), y !== -1 ? y : null) : (y = je.call(this._longMonthsParse, I), y !== -1 ? y : null) : g === "MMM" ? (y = je.call(this._shortMonthsParse, I), y !== -1 ? y : (y = je.call(this._longMonthsParse, I), y !== -1 ? y : null)) : (y = je.call(this._longMonthsParse, I), y !== -1 ? y : (y = je.call(this._shortMonthsParse, I), y !== -1 ? y : null));
  17882. }
  17883. function y1(r, g, E) {
  17884. var h, y, R;
  17885. if (this._monthsParseExact)
  17886. return m1.call(this, r, g, E);
  17887. for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), h = 0; h < 12; h++) {
  17888. if (y = $i([2e3, h]), E && !this._longMonthsParse[h] && (this._longMonthsParse[h] = new RegExp(
  17889. "^" + this.months(y, "").replace(".", "") + "$",
  17890. "i"
  17891. ), this._shortMonthsParse[h] = new RegExp(
  17892. "^" + this.monthsShort(y, "").replace(".", "") + "$",
  17893. "i"
  17894. )), !E && !this._monthsParse[h] && (R = "^" + this.months(y, "") + "|^" + this.monthsShort(y, ""), this._monthsParse[h] = new RegExp(R.replace(".", ""), "i")), E && g === "MMMM" && this._longMonthsParse[h].test(r))
  17895. return h;
  17896. if (E && g === "MMM" && this._shortMonthsParse[h].test(r))
  17897. return h;
  17898. if (!E && this._monthsParse[h].test(r))
  17899. return h;
  17900. }
  17901. }
  17902. function nu(r, g) {
  17903. var E;
  17904. if (!r.isValid())
  17905. return r;
  17906. if (typeof g == "string") {
  17907. if (/^\d+$/.test(g))
  17908. g = he(g);
  17909. else if (g = r.localeData().monthsParse(g), !dr(g))
  17910. return r;
  17911. }
  17912. return E = Math.min(r.date(), _s(r.year(), g)), r._d["set" + (r._isUTC ? "UTC" : "") + "Month"](g, E), r;
  17913. }
  17914. function ou(r) {
  17915. return r != null ? (nu(this, r), Xt.updateOffset(this, !0), this) : gs(this, "Month");
  17916. }
  17917. function v1() {
  17918. return _s(this.year(), this.month());
  17919. }
  17920. function x1(r) {
  17921. return this._monthsParseExact ? (me(this, "_monthsRegex") || su.call(this), r ? this._monthsShortStrictRegex : this._monthsShortRegex) : (me(this, "_monthsShortRegex") || (this._monthsShortRegex = u1), this._monthsShortStrictRegex && r ? this._monthsShortStrictRegex : this._monthsShortRegex);
  17922. }
  17923. function b1(r) {
  17924. return this._monthsParseExact ? (me(this, "_monthsRegex") || su.call(this), r ? this._monthsStrictRegex : this._monthsRegex) : (me(this, "_monthsRegex") || (this._monthsRegex = d1), this._monthsStrictRegex && r ? this._monthsStrictRegex : this._monthsRegex);
  17925. }
  17926. function su() {
  17927. function r(I, Z) {
  17928. return Z.length - I.length;
  17929. }
  17930. var g = [], E = [], h = [], y, R;
  17931. for (y = 0; y < 12; y++)
  17932. R = $i([2e3, y]), g.push(this.monthsShort(R, "")), E.push(this.months(R, "")), h.push(this.months(R, "")), h.push(this.monthsShort(R, ""));
  17933. for (g.sort(r), E.sort(r), h.sort(r), y = 0; y < 12; y++)
  17934. g[y] = mi(g[y]), E[y] = mi(E[y]);
  17935. for (y = 0; y < 24; y++)
  17936. h[y] = mi(h[y]);
  17937. this._monthsRegex = new RegExp("^(" + h.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
  17938. "^(" + E.join("|") + ")",
  17939. "i"
  17940. ), this._monthsShortStrictRegex = new RegExp(
  17941. "^(" + g.join("|") + ")",
  17942. "i"
  17943. );
  17944. }
  17945. Zt("Y", 0, 0, function() {
  17946. var r = this.year();
  17947. return r <= 9999 ? Ui(r, 4) : "+" + r;
  17948. });
  17949. Zt(0, ["YY", 2], 0, function() {
  17950. return this.year() % 100;
  17951. });
  17952. Zt(0, ["YYYY", 4], 0, "year");
  17953. Zt(0, ["YYYYY", 5], 0, "year");
  17954. Zt(0, ["YYYYYY", 6, !0], 0, "year");
  17955. qe("year", "y");
  17956. Qe("year", 1);
  17957. Ut("Y", Os);
  17958. Ut("YY", Pe, vi);
  17959. Ut("YYYY", Eh, Ph);
  17960. Ut("YYYYY", Es, Ts);
  17961. Ut("YYYYYY", Es, Ts);
  17962. we(["YYYYY", "YYYYYY"], Je);
  17963. we("YYYY", function(r, g) {
  17964. g[Je] = r.length === 2 ? Xt.parseTwoDigitYear(r) : he(r);
  17965. });
  17966. we("YY", function(r, g) {
  17967. g[Je] = Xt.parseTwoDigitYear(r);
  17968. });
  17969. we("Y", function(r, g) {
  17970. g[Je] = parseInt(r, 10);
  17971. });
  17972. function qn(r) {
  17973. return As(r) ? 366 : 365;
  17974. }
  17975. Xt.parseTwoDigitYear = function(r) {
  17976. return he(r) + (he(r) > 68 ? 1900 : 2e3);
  17977. };
  17978. var au = kn("FullYear", !0);
  17979. function S1() {
  17980. return As(this.year());
  17981. }
  17982. function w1(r, g, E, h, y, R, I) {
  17983. var Z;
  17984. return r < 100 && r >= 0 ? (Z = new Date(r + 400, g, E, h, y, R, I), isFinite(Z.getFullYear()) && Z.setFullYear(r)) : Z = new Date(r, g, E, h, y, R, I), Z;
  17985. }
  17986. function to(r) {
  17987. var g, E;
  17988. return r < 100 && r >= 0 ? (E = Array.prototype.slice.call(arguments), E[0] = r + 400, g = new Date(Date.UTC.apply(null, E)), isFinite(g.getUTCFullYear()) && g.setUTCFullYear(r)) : g = new Date(Date.UTC.apply(null, arguments)), g;
  17989. }
  17990. function ys(r, g, E) {
  17991. var h = 7 + g - E, y = (7 + to(r, 0, h).getUTCDay() - g) % 7;
  17992. return -y + h - 1;
  17993. }
  17994. function hu(r, g, E, h, y) {
  17995. var R = (7 + E - h) % 7, I = ys(r, h, y), Z = 1 + 7 * (g - 1) + R + I, H, $;
  17996. return Z <= 0 ? (H = r - 1, $ = qn(H) + Z) : Z > qn(r) ? (H = r + 1, $ = Z - qn(r)) : (H = r, $ = Z), {
  17997. year: H,
  17998. dayOfYear: $
  17999. };
  18000. }
  18001. function eo(r, g, E) {
  18002. var h = ys(r.year(), g, E), y = Math.floor((r.dayOfYear() - h - 1) / 7) + 1, R, I;
  18003. return y < 1 ? (I = r.year() - 1, R = y + pr(I, g, E)) : y > pr(r.year(), g, E) ? (R = y - pr(r.year(), g, E), I = r.year() + 1) : (I = r.year(), R = y), {
  18004. week: R,
  18005. year: I
  18006. };
  18007. }
  18008. function pr(r, g, E) {
  18009. var h = ys(r, g, E), y = ys(r + 1, g, E);
  18010. return (qn(r) - h + y) / 7;
  18011. }
  18012. Zt("w", ["ww", 2], "wo", "week");
  18013. Zt("W", ["WW", 2], "Wo", "isoWeek");
  18014. qe("week", "w");
  18015. qe("isoWeek", "W");
  18016. Qe("week", 5);
  18017. Qe("isoWeek", 5);
  18018. Ut("w", Pe);
  18019. Ut("ww", Pe, vi);
  18020. Ut("W", Pe);
  18021. Ut("WW", Pe, vi);
  18022. ao(
  18023. ["w", "ww", "W", "WW"],
  18024. function(r, g, E, h) {
  18025. g[h.substr(0, 1)] = he(r);
  18026. }
  18027. );
  18028. function M1(r) {
  18029. return eo(r, this._week.dow, this._week.doy).week;
  18030. }
  18031. var C1 = {
  18032. dow: 0,
  18033. // Sunday is the first day of the week.
  18034. doy: 6
  18035. // The week that contains Jan 6th is the first week of the year.
  18036. };
  18037. function k1() {
  18038. return this._week.dow;
  18039. }
  18040. function A1() {
  18041. return this._week.doy;
  18042. }
  18043. function T1(r) {
  18044. var g = this.localeData().week(this);
  18045. return r == null ? g : this.add((r - g) * 7, "d");
  18046. }
  18047. function P1(r) {
  18048. var g = eo(this, 1, 4).week;
  18049. return r == null ? g : this.add((r - g) * 7, "d");
  18050. }
  18051. Zt("d", 0, "do", "day");
  18052. Zt("dd", 0, 0, function(r) {
  18053. return this.localeData().weekdaysMin(this, r);
  18054. });
  18055. Zt("ddd", 0, 0, function(r) {
  18056. return this.localeData().weekdaysShort(this, r);
  18057. });
  18058. Zt("dddd", 0, 0, function(r) {
  18059. return this.localeData().weekdays(this, r);
  18060. });
  18061. Zt("e", 0, 0, "weekday");
  18062. Zt("E", 0, 0, "isoWeekday");
  18063. qe("day", "d");
  18064. qe("weekday", "e");
  18065. qe("isoWeekday", "E");
  18066. Qe("day", 11);
  18067. Qe("weekday", 11);
  18068. Qe("isoWeekday", 11);
  18069. Ut("d", Pe);
  18070. Ut("e", Pe);
  18071. Ut("E", Pe);
  18072. Ut("dd", function(r, g) {
  18073. return g.weekdaysMinRegex(r);
  18074. });
  18075. Ut("ddd", function(r, g) {
  18076. return g.weekdaysShortRegex(r);
  18077. });
  18078. Ut("dddd", function(r, g) {
  18079. return g.weekdaysRegex(r);
  18080. });
  18081. ao(["dd", "ddd", "dddd"], function(r, g, E, h) {
  18082. var y = E._locale.weekdaysParse(r, h, E._strict);
  18083. y != null ? g.d = y : oe(E).invalidWeekday = r;
  18084. });
  18085. ao(["d", "e", "E"], function(r, g, E, h) {
  18086. g[h] = he(r);
  18087. });
  18088. function E1(r, g) {
  18089. return typeof r != "string" ? r : isNaN(r) ? (r = g.weekdaysParse(r), typeof r == "number" ? r : null) : parseInt(r, 10);
  18090. }
  18091. function O1(r, g) {
  18092. return typeof r == "string" ? g.weekdaysParse(r) % 7 || 7 : isNaN(r) ? null : r;
  18093. }
  18094. function Oh(r, g) {
  18095. return r.slice(g, 7).concat(r.slice(0, g));
  18096. }
  18097. var L1 = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), lu = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), _1 = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), D1 = so, I1 = so, R1 = so;
  18098. function N1(r, g) {
  18099. var E = Bi(this._weekdays) ? this._weekdays : this._weekdays[r && r !== !0 && this._weekdays.isFormat.test(g) ? "format" : "standalone"];
  18100. return r === !0 ? Oh(E, this._week.dow) : r ? E[r.day()] : E;
  18101. }
  18102. function B1(r) {
  18103. return r === !0 ? Oh(this._weekdaysShort, this._week.dow) : r ? this._weekdaysShort[r.day()] : this._weekdaysShort;
  18104. }
  18105. function j1(r) {
  18106. return r === !0 ? Oh(this._weekdaysMin, this._week.dow) : r ? this._weekdaysMin[r.day()] : this._weekdaysMin;
  18107. }
  18108. function W1(r, g, E) {
  18109. var h, y, R, I = r.toLocaleLowerCase();
  18110. if (!this._weekdaysParse)
  18111. for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], h = 0; h < 7; ++h)
  18112. R = $i([2e3, 1]).day(h), this._minWeekdaysParse[h] = this.weekdaysMin(
  18113. R,
  18114. ""
  18115. ).toLocaleLowerCase(), this._shortWeekdaysParse[h] = this.weekdaysShort(
  18116. R,
  18117. ""
  18118. ).toLocaleLowerCase(), this._weekdaysParse[h] = this.weekdays(R, "").toLocaleLowerCase();
  18119. return E ? g === "dddd" ? (y = je.call(this._weekdaysParse, I), y !== -1 ? y : null) : g === "ddd" ? (y = je.call(this._shortWeekdaysParse, I), y !== -1 ? y : null) : (y = je.call(this._minWeekdaysParse, I), y !== -1 ? y : null) : g === "dddd" ? (y = je.call(this._weekdaysParse, I), y !== -1 || (y = je.call(this._shortWeekdaysParse, I), y !== -1) ? y : (y = je.call(this._minWeekdaysParse, I), y !== -1 ? y : null)) : g === "ddd" ? (y = je.call(this._shortWeekdaysParse, I), y !== -1 || (y = je.call(this._weekdaysParse, I), y !== -1) ? y : (y = je.call(this._minWeekdaysParse, I), y !== -1 ? y : null)) : (y = je.call(this._minWeekdaysParse, I), y !== -1 || (y = je.call(this._weekdaysParse, I), y !== -1) ? y : (y = je.call(this._shortWeekdaysParse, I), y !== -1 ? y : null));
  18120. }
  18121. function z1(r, g, E) {
  18122. var h, y, R;
  18123. if (this._weekdaysParseExact)
  18124. return W1.call(this, r, g, E);
  18125. for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), h = 0; h < 7; h++) {
  18126. if (y = $i([2e3, 1]).day(h), E && !this._fullWeekdaysParse[h] && (this._fullWeekdaysParse[h] = new RegExp(
  18127. "^" + this.weekdays(y, "").replace(".", "\\.?") + "$",
  18128. "i"
  18129. ), this._shortWeekdaysParse[h] = new RegExp(
  18130. "^" + this.weekdaysShort(y, "").replace(".", "\\.?") + "$",
  18131. "i"
  18132. ), this._minWeekdaysParse[h] = new RegExp(
  18133. "^" + this.weekdaysMin(y, "").replace(".", "\\.?") + "$",
  18134. "i"
  18135. )), this._weekdaysParse[h] || (R = "^" + this.weekdays(y, "") + "|^" + this.weekdaysShort(y, "") + "|^" + this.weekdaysMin(y, ""), this._weekdaysParse[h] = new RegExp(R.replace(".", ""), "i")), E && g === "dddd" && this._fullWeekdaysParse[h].test(r))
  18136. return h;
  18137. if (E && g === "ddd" && this._shortWeekdaysParse[h].test(r))
  18138. return h;
  18139. if (E && g === "dd" && this._minWeekdaysParse[h].test(r))
  18140. return h;
  18141. if (!E && this._weekdaysParse[h].test(r))
  18142. return h;
  18143. }
  18144. }
  18145. function Y1(r) {
  18146. if (!this.isValid())
  18147. return r != null ? this : NaN;
  18148. var g = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  18149. return r != null ? (r = E1(r, this.localeData()), this.add(r - g, "d")) : g;
  18150. }
  18151. function X1(r) {
  18152. if (!this.isValid())
  18153. return r != null ? this : NaN;
  18154. var g = (this.day() + 7 - this.localeData()._week.dow) % 7;
  18155. return r == null ? g : this.add(r - g, "d");
  18156. }
  18157. function G1(r) {
  18158. if (!this.isValid())
  18159. return r != null ? this : NaN;
  18160. if (r != null) {
  18161. var g = O1(r, this.localeData());
  18162. return this.day(this.day() % 7 ? g : g - 7);
  18163. } else
  18164. return this.day() || 7;
  18165. }
  18166. function H1(r) {
  18167. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Lh.call(this), r ? this._weekdaysStrictRegex : this._weekdaysRegex) : (me(this, "_weekdaysRegex") || (this._weekdaysRegex = D1), this._weekdaysStrictRegex && r ? this._weekdaysStrictRegex : this._weekdaysRegex);
  18168. }
  18169. function U1(r) {
  18170. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Lh.call(this), r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (me(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = I1), this._weekdaysShortStrictRegex && r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
  18171. }
  18172. function F1(r) {
  18173. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Lh.call(this), r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (me(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = R1), this._weekdaysMinStrictRegex && r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
  18174. }
  18175. function Lh() {
  18176. function r(U, W) {
  18177. return W.length - U.length;
  18178. }
  18179. var g = [], E = [], h = [], y = [], R, I, Z, H, $;
  18180. for (R = 0; R < 7; R++)
  18181. I = $i([2e3, 1]).day(R), Z = mi(this.weekdaysMin(I, "")), H = mi(this.weekdaysShort(I, "")), $ = mi(this.weekdays(I, "")), g.push(Z), E.push(H), h.push($), y.push(Z), y.push(H), y.push($);
  18182. g.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(
  18183. "^(" + h.join("|") + ")",
  18184. "i"
  18185. ), this._weekdaysShortStrictRegex = new RegExp(
  18186. "^(" + E.join("|") + ")",
  18187. "i"
  18188. ), this._weekdaysMinStrictRegex = new RegExp(
  18189. "^(" + g.join("|") + ")",
  18190. "i"
  18191. );
  18192. }
  18193. function _h() {
  18194. return this.hours() % 12 || 12;
  18195. }
  18196. function V1() {
  18197. return this.hours() || 24;
  18198. }
  18199. Zt("H", ["HH", 2], 0, "hour");
  18200. Zt("h", ["hh", 2], 0, _h);
  18201. Zt("k", ["kk", 2], 0, V1);
  18202. Zt("hmm", 0, 0, function() {
  18203. return "" + _h.apply(this) + Ui(this.minutes(), 2);
  18204. });
  18205. Zt("hmmss", 0, 0, function() {
  18206. return "" + _h.apply(this) + Ui(this.minutes(), 2) + Ui(this.seconds(), 2);
  18207. });
  18208. Zt("Hmm", 0, 0, function() {
  18209. return "" + this.hours() + Ui(this.minutes(), 2);
  18210. });
  18211. Zt("Hmmss", 0, 0, function() {
  18212. return "" + this.hours() + Ui(this.minutes(), 2) + Ui(this.seconds(), 2);
  18213. });
  18214. function cu(r, g) {
  18215. Zt(r, 0, 0, function() {
  18216. return this.localeData().meridiem(
  18217. this.hours(),
  18218. this.minutes(),
  18219. g
  18220. );
  18221. });
  18222. }
  18223. cu("a", !0);
  18224. cu("A", !1);
  18225. qe("hour", "h");
  18226. Qe("hour", 13);
  18227. function pu(r, g) {
  18228. return g._meridiemParse;
  18229. }
  18230. Ut("a", pu);
  18231. Ut("A", pu);
  18232. Ut("H", Pe);
  18233. Ut("h", Pe);
  18234. Ut("k", Pe);
  18235. Ut("HH", Pe, vi);
  18236. Ut("hh", Pe, vi);
  18237. Ut("kk", Pe, vi);
  18238. Ut("hmm", tu);
  18239. Ut("hmmss", eu);
  18240. Ut("Hmm", tu);
  18241. Ut("Hmmss", eu);
  18242. we(["H", "HH"], Ge);
  18243. we(["k", "kk"], function(r, g, E) {
  18244. var h = he(r);
  18245. g[Ge] = h === 24 ? 0 : h;
  18246. });
  18247. we(["a", "A"], function(r, g, E) {
  18248. E._isPm = E._locale.isPM(r), E._meridiem = r;
  18249. });
  18250. we(["h", "hh"], function(r, g, E) {
  18251. g[Ge] = he(r), oe(E).bigHour = !0;
  18252. });
  18253. we("hmm", function(r, g, E) {
  18254. var h = r.length - 2;
  18255. g[Ge] = he(r.substr(0, h)), g[Ri] = he(r.substr(h)), oe(E).bigHour = !0;
  18256. });
  18257. we("hmmss", function(r, g, E) {
  18258. var h = r.length - 4, y = r.length - 2;
  18259. g[Ge] = he(r.substr(0, h)), g[Ri] = he(r.substr(h, 2)), g[cr] = he(r.substr(y)), oe(E).bigHour = !0;
  18260. });
  18261. we("Hmm", function(r, g, E) {
  18262. var h = r.length - 2;
  18263. g[Ge] = he(r.substr(0, h)), g[Ri] = he(r.substr(h));
  18264. });
  18265. we("Hmmss", function(r, g, E) {
  18266. var h = r.length - 4, y = r.length - 2;
  18267. g[Ge] = he(r.substr(0, h)), g[Ri] = he(r.substr(h, 2)), g[cr] = he(r.substr(y));
  18268. });
  18269. function $1(r) {
  18270. return (r + "").toLowerCase().charAt(0) === "p";
  18271. }
  18272. var Z1 = /[ap]\.?m?\.?/i, K1 = kn("Hours", !0);
  18273. function J1(r, g, E) {
  18274. return r > 11 ? E ? "pm" : "PM" : E ? "am" : "AM";
  18275. }
  18276. var uu = {
  18277. calendar: z0,
  18278. longDateFormat: H0,
  18279. invalidDate: F0,
  18280. ordinal: $0,
  18281. dayOfMonthOrdinalParse: Z0,
  18282. relativeTime: J0,
  18283. months: p1,
  18284. monthsShort: iu,
  18285. week: C1,
  18286. weekdays: L1,
  18287. weekdaysMin: _1,
  18288. weekdaysShort: lu,
  18289. meridiemParse: Z1
  18290. }, Oe = {}, $n = {}, io;
  18291. function q1(r, g) {
  18292. var E, h = Math.min(r.length, g.length);
  18293. for (E = 0; E < h; E += 1)
  18294. if (r[E] !== g[E])
  18295. return E;
  18296. return h;
  18297. }
  18298. function Mp(r) {
  18299. return r && r.toLowerCase().replace("_", "-");
  18300. }
  18301. function Q1(r) {
  18302. for (var g = 0, E, h, y, R; g < r.length; ) {
  18303. for (R = Mp(r[g]).split("-"), E = R.length, h = Mp(r[g + 1]), h = h ? h.split("-") : null; E > 0; ) {
  18304. if (y = Ds(R.slice(0, E).join("-")), y)
  18305. return y;
  18306. if (h && h.length >= E && q1(R, h) >= E - 1)
  18307. break;
  18308. E--;
  18309. }
  18310. g++;
  18311. }
  18312. return io;
  18313. }
  18314. function tb(r) {
  18315. return r.match("^[^/\\\\]*$") != null;
  18316. }
  18317. function Ds(r) {
  18318. var g = null, E;
  18319. if (Oe[r] === void 0 && typeof module < "u" && module && module.exports && tb(r))
  18320. try {
  18321. g = io._abbr, E = require, E("./locale/" + r), Er(g);
  18322. } catch {
  18323. Oe[r] = null;
  18324. }
  18325. return Oe[r];
  18326. }
  18327. function Er(r, g) {
  18328. var E;
  18329. return r && (li(g) ? E = fr(r) : E = Dh(r, g), E ? io = E : typeof console < "u" && console.warn && console.warn(
  18330. "Locale " + r + " not found. Did you forget to load it?"
  18331. )), io._abbr;
  18332. }
  18333. function Dh(r, g) {
  18334. if (g !== null) {
  18335. var E, h = uu;
  18336. if (g.abbr = r, Oe[r] != null)
  18337. $p(
  18338. "defineLocaleOverride",
  18339. "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."
  18340. ), h = Oe[r]._config;
  18341. else if (g.parentLocale != null)
  18342. if (Oe[g.parentLocale] != null)
  18343. h = Oe[g.parentLocale]._config;
  18344. else if (E = Ds(g.parentLocale), E != null)
  18345. h = E._config;
  18346. else
  18347. return $n[g.parentLocale] || ($n[g.parentLocale] = []), $n[g.parentLocale].push({
  18348. name: r,
  18349. config: g
  18350. }), null;
  18351. return Oe[r] = new kh(uh(h, g)), $n[r] && $n[r].forEach(function(y) {
  18352. Dh(y.name, y.config);
  18353. }), Er(r), Oe[r];
  18354. } else
  18355. return delete Oe[r], null;
  18356. }
  18357. function eb(r, g) {
  18358. if (g != null) {
  18359. var E, h, y = uu;
  18360. Oe[r] != null && Oe[r].parentLocale != null ? Oe[r].set(uh(Oe[r]._config, g)) : (h = Ds(r), h != null && (y = h._config), g = uh(y, g), h == null && (g.abbr = r), E = new kh(g), E.parentLocale = Oe[r], Oe[r] = E), Er(r);
  18361. } else
  18362. Oe[r] != null && (Oe[r].parentLocale != null ? (Oe[r] = Oe[r].parentLocale, r === Er() && Er(r)) : Oe[r] != null && delete Oe[r]);
  18363. return Oe[r];
  18364. }
  18365. function fr(r) {
  18366. var g;
  18367. if (r && r._locale && r._locale._abbr && (r = r._locale._abbr), !r)
  18368. return io;
  18369. if (!Bi(r)) {
  18370. if (g = Ds(r), g)
  18371. return g;
  18372. r = [r];
  18373. }
  18374. return Q1(r);
  18375. }
  18376. function ib() {
  18377. return dh(Oe);
  18378. }
  18379. function Ih(r) {
  18380. var g, E = r._a;
  18381. return E && oe(r).overflow === -2 && (g = E[lr] < 0 || E[lr] > 11 ? lr : E[Hi] < 1 || E[Hi] > _s(E[Je], E[lr]) ? Hi : E[Ge] < 0 || E[Ge] > 24 || E[Ge] === 24 && (E[Ri] !== 0 || E[cr] !== 0 || E[Fr] !== 0) ? Ge : E[Ri] < 0 || E[Ri] > 59 ? Ri : E[cr] < 0 || E[cr] > 59 ? cr : E[Fr] < 0 || E[Fr] > 999 ? Fr : -1, oe(r)._overflowDayOfYear && (g < Je || g > Hi) && (g = Hi), oe(r)._overflowWeeks && g === -1 && (g = h1), oe(r)._overflowWeekday && g === -1 && (g = l1), oe(r).overflow = g), r;
  18382. }
  18383. var rb = /^\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)?)?$/, nb = /^\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)?)?$/, ob = /Z|[+-]\d\d(?::?\d\d)?/, rs = [
  18384. ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
  18385. ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
  18386. ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
  18387. ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
  18388. ["YYYY-DDD", /\d{4}-\d{3}/],
  18389. ["YYYY-MM", /\d{4}-\d\d/, !1],
  18390. ["YYYYYYMMDD", /[+-]\d{10}/],
  18391. ["YYYYMMDD", /\d{8}/],
  18392. ["GGGG[W]WWE", /\d{4}W\d{3}/],
  18393. ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
  18394. ["YYYYDDD", /\d{7}/],
  18395. ["YYYYMM", /\d{6}/, !1],
  18396. ["YYYY", /\d{4}/, !1]
  18397. ], ih = [
  18398. ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
  18399. ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
  18400. ["HH:mm:ss", /\d\d:\d\d:\d\d/],
  18401. ["HH:mm", /\d\d:\d\d/],
  18402. ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
  18403. ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
  18404. ["HHmmss", /\d\d\d\d\d\d/],
  18405. ["HHmm", /\d\d\d\d/],
  18406. ["HH", /\d\d/]
  18407. ], sb = /^\/?Date\((-?\d+)/i, ab = /^(?:(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}))$/, hb = {
  18408. UT: 0,
  18409. GMT: 0,
  18410. EDT: -4 * 60,
  18411. EST: -5 * 60,
  18412. CDT: -5 * 60,
  18413. CST: -6 * 60,
  18414. MDT: -6 * 60,
  18415. MST: -7 * 60,
  18416. PDT: -7 * 60,
  18417. PST: -8 * 60
  18418. };
  18419. function du(r) {
  18420. var g, E, h = r._i, y = rb.exec(h) || nb.exec(h), R, I, Z, H, $ = rs.length, U = ih.length;
  18421. if (y) {
  18422. for (oe(r).iso = !0, g = 0, E = $; g < E; g++)
  18423. if (rs[g][1].exec(y[1])) {
  18424. I = rs[g][0], R = rs[g][2] !== !1;
  18425. break;
  18426. }
  18427. if (I == null) {
  18428. r._isValid = !1;
  18429. return;
  18430. }
  18431. if (y[3]) {
  18432. for (g = 0, E = U; g < E; g++)
  18433. if (ih[g][1].exec(y[3])) {
  18434. Z = (y[2] || " ") + ih[g][0];
  18435. break;
  18436. }
  18437. if (Z == null) {
  18438. r._isValid = !1;
  18439. return;
  18440. }
  18441. }
  18442. if (!R && Z != null) {
  18443. r._isValid = !1;
  18444. return;
  18445. }
  18446. if (y[4])
  18447. if (ob.exec(y[4]))
  18448. H = "Z";
  18449. else {
  18450. r._isValid = !1;
  18451. return;
  18452. }
  18453. r._f = I + (Z || "") + (H || ""), Nh(r);
  18454. } else
  18455. r._isValid = !1;
  18456. }
  18457. function lb(r, g, E, h, y, R) {
  18458. var I = [
  18459. cb(r),
  18460. iu.indexOf(g),
  18461. parseInt(E, 10),
  18462. parseInt(h, 10),
  18463. parseInt(y, 10)
  18464. ];
  18465. return R && I.push(parseInt(R, 10)), I;
  18466. }
  18467. function cb(r) {
  18468. var g = parseInt(r, 10);
  18469. return g <= 49 ? 2e3 + g : g <= 999 ? 1900 + g : g;
  18470. }
  18471. function pb(r) {
  18472. return r.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
  18473. }
  18474. function ub(r, g, E) {
  18475. if (r) {
  18476. var h = lu.indexOf(r), y = new Date(
  18477. g[0],
  18478. g[1],
  18479. g[2]
  18480. ).getDay();
  18481. if (h !== y)
  18482. return oe(E).weekdayMismatch = !0, E._isValid = !1, !1;
  18483. }
  18484. return !0;
  18485. }
  18486. function db(r, g, E) {
  18487. if (r)
  18488. return hb[r];
  18489. if (g)
  18490. return 0;
  18491. var h = parseInt(E, 10), y = h % 100, R = (h - y) / 100;
  18492. return R * 60 + y;
  18493. }
  18494. function fu(r) {
  18495. var g = ab.exec(pb(r._i)), E;
  18496. if (g) {
  18497. if (E = lb(
  18498. g[4],
  18499. g[3],
  18500. g[2],
  18501. g[5],
  18502. g[6],
  18503. g[7]
  18504. ), !ub(g[1], E, r))
  18505. return;
  18506. r._a = E, r._tzm = db(g[8], g[9], g[10]), r._d = to.apply(null, r._a), r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), oe(r).rfc2822 = !0;
  18507. } else
  18508. r._isValid = !1;
  18509. }
  18510. function fb(r) {
  18511. var g = sb.exec(r._i);
  18512. if (g !== null) {
  18513. r._d = /* @__PURE__ */ new Date(+g[1]);
  18514. return;
  18515. }
  18516. if (du(r), r._isValid === !1)
  18517. delete r._isValid;
  18518. else
  18519. return;
  18520. if (fu(r), r._isValid === !1)
  18521. delete r._isValid;
  18522. else
  18523. return;
  18524. r._strict ? r._isValid = !1 : Xt.createFromInputFallback(r);
  18525. }
  18526. Xt.createFromInputFallback = Ei(
  18527. "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.",
  18528. function(r) {
  18529. r._d = /* @__PURE__ */ new Date(r._i + (r._useUTC ? " UTC" : ""));
  18530. }
  18531. );
  18532. function dn(r, g, E) {
  18533. return r ?? g ?? E;
  18534. }
  18535. function gb(r) {
  18536. var g = new Date(Xt.now());
  18537. return r._useUTC ? [
  18538. g.getUTCFullYear(),
  18539. g.getUTCMonth(),
  18540. g.getUTCDate()
  18541. ] : [g.getFullYear(), g.getMonth(), g.getDate()];
  18542. }
  18543. function Rh(r) {
  18544. var g, E, h = [], y, R, I;
  18545. if (!r._d) {
  18546. for (y = gb(r), r._w && r._a[Hi] == null && r._a[lr] == null && mb(r), r._dayOfYear != null && (I = dn(r._a[Je], y[Je]), (r._dayOfYear > qn(I) || r._dayOfYear === 0) && (oe(r)._overflowDayOfYear = !0), E = to(I, 0, r._dayOfYear), r._a[lr] = E.getUTCMonth(), r._a[Hi] = E.getUTCDate()), g = 0; g < 3 && r._a[g] == null; ++g)
  18547. r._a[g] = h[g] = y[g];
  18548. for (; g < 7; g++)
  18549. r._a[g] = h[g] = r._a[g] == null ? g === 2 ? 1 : 0 : r._a[g];
  18550. r._a[Ge] === 24 && r._a[Ri] === 0 && r._a[cr] === 0 && r._a[Fr] === 0 && (r._nextDay = !0, r._a[Ge] = 0), r._d = (r._useUTC ? to : w1).apply(
  18551. null,
  18552. h
  18553. ), R = r._useUTC ? r._d.getUTCDay() : r._d.getDay(), r._tzm != null && r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), r._nextDay && (r._a[Ge] = 24), r._w && typeof r._w.d < "u" && r._w.d !== R && (oe(r).weekdayMismatch = !0);
  18554. }
  18555. }
  18556. function mb(r) {
  18557. var g, E, h, y, R, I, Z, H, $;
  18558. g = r._w, g.GG != null || g.W != null || g.E != null ? (R = 1, I = 4, E = dn(
  18559. g.GG,
  18560. r._a[Je],
  18561. eo(Te(), 1, 4).year
  18562. ), h = dn(g.W, 1), y = dn(g.E, 1), (y < 1 || y > 7) && (H = !0)) : (R = r._locale._week.dow, I = r._locale._week.doy, $ = eo(Te(), R, I), E = dn(g.gg, r._a[Je], $.year), h = dn(g.w, $.week), g.d != null ? (y = g.d, (y < 0 || y > 6) && (H = !0)) : g.e != null ? (y = g.e + R, (g.e < 0 || g.e > 6) && (H = !0)) : y = R), h < 1 || h > pr(E, R, I) ? oe(r)._overflowWeeks = !0 : H != null ? oe(r)._overflowWeekday = !0 : (Z = hu(E, h, y, R, I), r._a[Je] = Z.year, r._dayOfYear = Z.dayOfYear);
  18563. }
  18564. Xt.ISO_8601 = function() {
  18565. };
  18566. Xt.RFC_2822 = function() {
  18567. };
  18568. function Nh(r) {
  18569. if (r._f === Xt.ISO_8601) {
  18570. du(r);
  18571. return;
  18572. }
  18573. if (r._f === Xt.RFC_2822) {
  18574. fu(r);
  18575. return;
  18576. }
  18577. r._a = [], oe(r).empty = !0;
  18578. var g = "" + r._i, E, h, y, R, I, Z = g.length, H = 0, $, U;
  18579. for (y = Zp(r._f, r._locale).match(Ah) || [], U = y.length, E = 0; E < U; E++)
  18580. R = y[E], h = (g.match(o1(R, r)) || [])[0], h && (I = g.substr(0, g.indexOf(h)), I.length > 0 && oe(r).unusedInput.push(I), g = g.slice(
  18581. g.indexOf(h) + h.length
  18582. ), H += h.length), yn[R] ? (h ? oe(r).empty = !1 : oe(r).unusedTokens.push(R), a1(R, h, r)) : r._strict && !h && oe(r).unusedTokens.push(R);
  18583. oe(r).charsLeftOver = Z - H, g.length > 0 && oe(r).unusedInput.push(g), r._a[Ge] <= 12 && oe(r).bigHour === !0 && r._a[Ge] > 0 && (oe(r).bigHour = void 0), oe(r).parsedDateParts = r._a.slice(0), oe(r).meridiem = r._meridiem, r._a[Ge] = yb(
  18584. r._locale,
  18585. r._a[Ge],
  18586. r._meridiem
  18587. ), $ = oe(r).era, $ !== null && (r._a[Je] = r._locale.erasConvertYear($, r._a[Je])), Rh(r), Ih(r);
  18588. }
  18589. function yb(r, g, E) {
  18590. var h;
  18591. return E == null ? g : r.meridiemHour != null ? r.meridiemHour(g, E) : (r.isPM != null && (h = r.isPM(E), h && g < 12 && (g += 12), !h && g === 12 && (g = 0)), g);
  18592. }
  18593. function vb(r) {
  18594. var g, E, h, y, R, I, Z = !1, H = r._f.length;
  18595. if (H === 0) {
  18596. oe(r).invalidFormat = !0, r._d = /* @__PURE__ */ new Date(NaN);
  18597. return;
  18598. }
  18599. for (y = 0; y < H; y++)
  18600. R = 0, I = !1, g = Ch({}, r), r._useUTC != null && (g._useUTC = r._useUTC), g._f = r._f[y], Nh(g), Mh(g) && (I = !0), R += oe(g).charsLeftOver, R += oe(g).unusedTokens.length * 10, oe(g).score = R, Z ? R < h && (h = R, E = g) : (h == null || R < h || I) && (h = R, E = g, I && (Z = !0));
  18601. Tr(r, E || g);
  18602. }
  18603. function xb(r) {
  18604. if (!r._d) {
  18605. var g = Th(r._i), E = g.day === void 0 ? g.date : g.day;
  18606. r._a = Fp(
  18607. [g.year, g.month, E, g.hour, g.minute, g.second, g.millisecond],
  18608. function(h) {
  18609. return h && parseInt(h, 10);
  18610. }
  18611. ), Rh(r);
  18612. }
  18613. }
  18614. function bb(r) {
  18615. var g = new oo(Ih(gu(r)));
  18616. return g._nextDay && (g.add(1, "d"), g._nextDay = void 0), g;
  18617. }
  18618. function gu(r) {
  18619. var g = r._i, E = r._f;
  18620. return r._locale = r._locale || fr(r._l), g === null || E === void 0 && g === "" ? ks({ nullInput: !0 }) : (typeof g == "string" && (r._i = g = r._locale.preparse(g)), ji(g) ? new oo(Ih(g)) : (no(g) ? r._d = g : Bi(E) ? vb(r) : E ? Nh(r) : Sb(r), Mh(r) || (r._d = null), r));
  18621. }
  18622. function Sb(r) {
  18623. var g = r._i;
  18624. li(g) ? r._d = new Date(Xt.now()) : no(g) ? r._d = new Date(g.valueOf()) : typeof g == "string" ? fb(r) : Bi(g) ? (r._a = Fp(g.slice(0), function(E) {
  18625. return parseInt(E, 10);
  18626. }), Rh(r)) : Vr(g) ? xb(r) : dr(g) ? r._d = new Date(g) : Xt.createFromInputFallback(r);
  18627. }
  18628. function mu(r, g, E, h, y) {
  18629. var R = {};
  18630. return (g === !0 || g === !1) && (h = g, g = void 0), (E === !0 || E === !1) && (h = E, E = void 0), (Vr(r) && wh(r) || Bi(r) && r.length === 0) && (r = void 0), R._isAMomentObject = !0, R._useUTC = R._isUTC = y, R._l = E, R._i = r, R._f = g, R._strict = h, bb(R);
  18631. }
  18632. function Te(r, g, E, h) {
  18633. return mu(r, g, E, h, !1);
  18634. }
  18635. var wb = Ei(
  18636. "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
  18637. function() {
  18638. var r = Te.apply(null, arguments);
  18639. return this.isValid() && r.isValid() ? r < this ? this : r : ks();
  18640. }
  18641. ), Mb = Ei(
  18642. "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
  18643. function() {
  18644. var r = Te.apply(null, arguments);
  18645. return this.isValid() && r.isValid() ? r > this ? this : r : ks();
  18646. }
  18647. );
  18648. function yu(r, g) {
  18649. var E, h;
  18650. if (g.length === 1 && Bi(g[0]) && (g = g[0]), !g.length)
  18651. return Te();
  18652. for (E = g[0], h = 1; h < g.length; ++h)
  18653. (!g[h].isValid() || g[h][r](E)) && (E = g[h]);
  18654. return E;
  18655. }
  18656. function Cb() {
  18657. var r = [].slice.call(arguments, 0);
  18658. return yu("isBefore", r);
  18659. }
  18660. function kb() {
  18661. var r = [].slice.call(arguments, 0);
  18662. return yu("isAfter", r);
  18663. }
  18664. var Ab = function() {
  18665. return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
  18666. }, Zn = [
  18667. "year",
  18668. "quarter",
  18669. "month",
  18670. "week",
  18671. "day",
  18672. "hour",
  18673. "minute",
  18674. "second",
  18675. "millisecond"
  18676. ];
  18677. function Tb(r) {
  18678. var g, E = !1, h, y = Zn.length;
  18679. for (g in r)
  18680. if (me(r, g) && !(je.call(Zn, g) !== -1 && (r[g] == null || !isNaN(r[g]))))
  18681. return !1;
  18682. for (h = 0; h < y; ++h)
  18683. if (r[Zn[h]]) {
  18684. if (E)
  18685. return !1;
  18686. parseFloat(r[Zn[h]]) !== he(r[Zn[h]]) && (E = !0);
  18687. }
  18688. return !0;
  18689. }
  18690. function Pb() {
  18691. return this._isValid;
  18692. }
  18693. function Eb() {
  18694. return Wi(NaN);
  18695. }
  18696. function Is(r) {
  18697. var g = Th(r), E = g.year || 0, h = g.quarter || 0, y = g.month || 0, R = g.week || g.isoWeek || 0, I = g.day || 0, Z = g.hour || 0, H = g.minute || 0, $ = g.second || 0, U = g.millisecond || 0;
  18698. this._isValid = Tb(g), this._milliseconds = +U + $ * 1e3 + // 1000
  18699. H * 6e4 + // 1000 * 60
  18700. Z * 1e3 * 60 * 60, this._days = +I + R * 7, this._months = +y + h * 3 + E * 12, this._data = {}, this._locale = fr(), this._bubble();
  18701. }
  18702. function as(r) {
  18703. return r instanceof Is;
  18704. }
  18705. function gh(r) {
  18706. return r < 0 ? Math.round(-1 * r) * -1 : Math.round(r);
  18707. }
  18708. function Ob(r, g, E) {
  18709. var h = Math.min(r.length, g.length), y = Math.abs(r.length - g.length), R = 0, I;
  18710. for (I = 0; I < h; I++)
  18711. (E && r[I] !== g[I] || !E && he(r[I]) !== he(g[I])) && R++;
  18712. return R + y;
  18713. }
  18714. function vu(r, g) {
  18715. Zt(r, 0, 0, function() {
  18716. var E = this.utcOffset(), h = "+";
  18717. return E < 0 && (E = -E, h = "-"), h + Ui(~~(E / 60), 2) + g + Ui(~~E % 60, 2);
  18718. });
  18719. }
  18720. vu("Z", ":");
  18721. vu("ZZ", "");
  18722. Ut("Z", Ls);
  18723. Ut("ZZ", Ls);
  18724. we(["Z", "ZZ"], function(r, g, E) {
  18725. E._useUTC = !0, E._tzm = Bh(Ls, r);
  18726. });
  18727. var Lb = /([\+\-]|\d\d)/gi;
  18728. function Bh(r, g) {
  18729. var E = (g || "").match(r), h, y, R;
  18730. return E === null ? null : (h = E[E.length - 1] || [], y = (h + "").match(Lb) || ["-", 0, 0], R = +(y[1] * 60) + he(y[2]), R === 0 ? 0 : y[0] === "+" ? R : -R);
  18731. }
  18732. function jh(r, g) {
  18733. var E, h;
  18734. return g._isUTC ? (E = g.clone(), h = (ji(r) || no(r) ? r.valueOf() : Te(r).valueOf()) - E.valueOf(), E._d.setTime(E._d.valueOf() + h), Xt.updateOffset(E, !1), E) : Te(r).local();
  18735. }
  18736. function mh(r) {
  18737. return -Math.round(r._d.getTimezoneOffset());
  18738. }
  18739. Xt.updateOffset = function() {
  18740. };
  18741. function _b(r, g, E) {
  18742. var h = this._offset || 0, y;
  18743. if (!this.isValid())
  18744. return r != null ? this : NaN;
  18745. if (r != null) {
  18746. if (typeof r == "string") {
  18747. if (r = Bh(Ls, r), r === null)
  18748. return this;
  18749. } else
  18750. Math.abs(r) < 16 && !E && (r = r * 60);
  18751. return !this._isUTC && g && (y = mh(this)), this._offset = r, this._isUTC = !0, y != null && this.add(y, "m"), h !== r && (!g || this._changeInProgress ? Su(
  18752. this,
  18753. Wi(r - h, "m"),
  18754. 1,
  18755. !1
  18756. ) : this._changeInProgress || (this._changeInProgress = !0, Xt.updateOffset(this, !0), this._changeInProgress = null)), this;
  18757. } else
  18758. return this._isUTC ? h : mh(this);
  18759. }
  18760. function Db(r, g) {
  18761. return r != null ? (typeof r != "string" && (r = -r), this.utcOffset(r, g), this) : -this.utcOffset();
  18762. }
  18763. function Ib(r) {
  18764. return this.utcOffset(0, r);
  18765. }
  18766. function Rb(r) {
  18767. return this._isUTC && (this.utcOffset(0, r), this._isUTC = !1, r && this.subtract(mh(this), "m")), this;
  18768. }
  18769. function Nb() {
  18770. if (this._tzm != null)
  18771. this.utcOffset(this._tzm, !1, !0);
  18772. else if (typeof this._i == "string") {
  18773. var r = Bh(r1, this._i);
  18774. r != null ? this.utcOffset(r) : this.utcOffset(0, !0);
  18775. }
  18776. return this;
  18777. }
  18778. function Bb(r) {
  18779. return this.isValid() ? (r = r ? Te(r).utcOffset() : 0, (this.utcOffset() - r) % 60 === 0) : !1;
  18780. }
  18781. function jb() {
  18782. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
  18783. }
  18784. function Wb() {
  18785. if (!li(this._isDSTShifted))
  18786. return this._isDSTShifted;
  18787. var r = {}, g;
  18788. return Ch(r, this), r = gu(r), r._a ? (g = r._isUTC ? $i(r._a) : Te(r._a), this._isDSTShifted = this.isValid() && Ob(r._a, g.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
  18789. }
  18790. function zb() {
  18791. return this.isValid() ? !this._isUTC : !1;
  18792. }
  18793. function Yb() {
  18794. return this.isValid() ? this._isUTC : !1;
  18795. }
  18796. function xu() {
  18797. return this.isValid() ? this._isUTC && this._offset === 0 : !1;
  18798. }
  18799. var Xb = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Gb = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  18800. function Wi(r, g) {
  18801. var E = r, h = null, y, R, I;
  18802. return as(r) ? E = {
  18803. ms: r._milliseconds,
  18804. d: r._days,
  18805. M: r._months
  18806. } : dr(r) || !isNaN(+r) ? (E = {}, g ? E[g] = +r : E.milliseconds = +r) : (h = Xb.exec(r)) ? (y = h[1] === "-" ? -1 : 1, E = {
  18807. y: 0,
  18808. d: he(h[Hi]) * y,
  18809. h: he(h[Ge]) * y,
  18810. m: he(h[Ri]) * y,
  18811. s: he(h[cr]) * y,
  18812. ms: he(gh(h[Fr] * 1e3)) * y
  18813. // the millisecond decimal point is included in the match
  18814. }) : (h = Gb.exec(r)) ? (y = h[1] === "-" ? -1 : 1, E = {
  18815. y: Gr(h[2], y),
  18816. M: Gr(h[3], y),
  18817. w: Gr(h[4], y),
  18818. d: Gr(h[5], y),
  18819. h: Gr(h[6], y),
  18820. m: Gr(h[7], y),
  18821. s: Gr(h[8], y)
  18822. }) : E == null ? E = {} : typeof E == "object" && ("from" in E || "to" in E) && (I = Hb(
  18823. Te(E.from),
  18824. Te(E.to)
  18825. ), E = {}, E.ms = I.milliseconds, E.M = I.months), R = new Is(E), as(r) && me(r, "_locale") && (R._locale = r._locale), as(r) && me(r, "_isValid") && (R._isValid = r._isValid), R;
  18826. }
  18827. Wi.fn = Is.prototype;
  18828. Wi.invalid = Eb;
  18829. function Gr(r, g) {
  18830. var E = r && parseFloat(r.replace(",", "."));
  18831. return (isNaN(E) ? 0 : E) * g;
  18832. }
  18833. function Cp(r, g) {
  18834. var E = {};
  18835. return E.months = g.month() - r.month() + (g.year() - r.year()) * 12, r.clone().add(E.months, "M").isAfter(g) && --E.months, E.milliseconds = +g - +r.clone().add(E.months, "M"), E;
  18836. }
  18837. function Hb(r, g) {
  18838. var E;
  18839. return r.isValid() && g.isValid() ? (g = jh(g, r), r.isBefore(g) ? E = Cp(r, g) : (E = Cp(g, r), E.milliseconds = -E.milliseconds, E.months = -E.months), E) : { milliseconds: 0, months: 0 };
  18840. }
  18841. function bu(r, g) {
  18842. return function(E, h) {
  18843. var y, R;
  18844. return h !== null && !isNaN(+h) && ($p(
  18845. g,
  18846. "moment()." + g + "(period, number) is deprecated. Please use moment()." + g + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
  18847. ), R = E, E = h, h = R), y = Wi(E, h), Su(this, y, r), this;
  18848. };
  18849. }
  18850. function Su(r, g, E, h) {
  18851. var y = g._milliseconds, R = gh(g._days), I = gh(g._months);
  18852. r.isValid() && (h = h ?? !0, I && nu(r, gs(r, "Month") + I * E), R && Jp(r, "Date", gs(r, "Date") + R * E), y && r._d.setTime(r._d.valueOf() + y * E), h && Xt.updateOffset(r, R || I));
  18853. }
  18854. var Ub = bu(1, "add"), Fb = bu(-1, "subtract");
  18855. function wu(r) {
  18856. return typeof r == "string" || r instanceof String;
  18857. }
  18858. function Vb(r) {
  18859. return ji(r) || no(r) || wu(r) || dr(r) || Zb(r) || $b(r) || r === null || r === void 0;
  18860. }
  18861. function $b(r) {
  18862. var g = Vr(r) && !wh(r), E = !1, h = [
  18863. "years",
  18864. "year",
  18865. "y",
  18866. "months",
  18867. "month",
  18868. "M",
  18869. "days",
  18870. "day",
  18871. "d",
  18872. "dates",
  18873. "date",
  18874. "D",
  18875. "hours",
  18876. "hour",
  18877. "h",
  18878. "minutes",
  18879. "minute",
  18880. "m",
  18881. "seconds",
  18882. "second",
  18883. "s",
  18884. "milliseconds",
  18885. "millisecond",
  18886. "ms"
  18887. ], y, R, I = h.length;
  18888. for (y = 0; y < I; y += 1)
  18889. R = h[y], E = E || me(r, R);
  18890. return g && E;
  18891. }
  18892. function Zb(r) {
  18893. var g = Bi(r), E = !1;
  18894. return g && (E = r.filter(function(h) {
  18895. return !dr(h) && wu(r);
  18896. }).length === 0), g && E;
  18897. }
  18898. function Kb(r) {
  18899. var g = Vr(r) && !wh(r), E = !1, h = [
  18900. "sameDay",
  18901. "nextDay",
  18902. "lastDay",
  18903. "nextWeek",
  18904. "lastWeek",
  18905. "sameElse"
  18906. ], y, R;
  18907. for (y = 0; y < h.length; y += 1)
  18908. R = h[y], E = E || me(r, R);
  18909. return g && E;
  18910. }
  18911. function Jb(r, g) {
  18912. var E = r.diff(g, "days", !0);
  18913. return E < -6 ? "sameElse" : E < -1 ? "lastWeek" : E < 0 ? "lastDay" : E < 1 ? "sameDay" : E < 2 ? "nextDay" : E < 7 ? "nextWeek" : "sameElse";
  18914. }
  18915. function qb(r, g) {
  18916. arguments.length === 1 && (arguments[0] ? Vb(arguments[0]) ? (r = arguments[0], g = void 0) : Kb(arguments[0]) && (g = arguments[0], r = void 0) : (r = void 0, g = void 0));
  18917. var E = r || Te(), h = jh(E, this).startOf("day"), y = Xt.calendarFormat(this, h) || "sameElse", R = g && (Zi(g[y]) ? g[y].call(this, E) : g[y]);
  18918. return this.format(
  18919. R || this.localeData().calendar(y, this, Te(E))
  18920. );
  18921. }
  18922. function Qb() {
  18923. return new oo(this);
  18924. }
  18925. function tS(r, g) {
  18926. var E = ji(r) ? r : Te(r);
  18927. return this.isValid() && E.isValid() ? (g = Oi(g) || "millisecond", g === "millisecond" ? this.valueOf() > E.valueOf() : E.valueOf() < this.clone().startOf(g).valueOf()) : !1;
  18928. }
  18929. function eS(r, g) {
  18930. var E = ji(r) ? r : Te(r);
  18931. return this.isValid() && E.isValid() ? (g = Oi(g) || "millisecond", g === "millisecond" ? this.valueOf() < E.valueOf() : this.clone().endOf(g).valueOf() < E.valueOf()) : !1;
  18932. }
  18933. function iS(r, g, E, h) {
  18934. var y = ji(r) ? r : Te(r), R = ji(g) ? g : Te(g);
  18935. return this.isValid() && y.isValid() && R.isValid() ? (h = h || "()", (h[0] === "(" ? this.isAfter(y, E) : !this.isBefore(y, E)) && (h[1] === ")" ? this.isBefore(R, E) : !this.isAfter(R, E))) : !1;
  18936. }
  18937. function rS(r, g) {
  18938. var E = ji(r) ? r : Te(r), h;
  18939. return this.isValid() && E.isValid() ? (g = Oi(g) || "millisecond", g === "millisecond" ? this.valueOf() === E.valueOf() : (h = E.valueOf(), this.clone().startOf(g).valueOf() <= h && h <= this.clone().endOf(g).valueOf())) : !1;
  18940. }
  18941. function nS(r, g) {
  18942. return this.isSame(r, g) || this.isAfter(r, g);
  18943. }
  18944. function oS(r, g) {
  18945. return this.isSame(r, g) || this.isBefore(r, g);
  18946. }
  18947. function sS(r, g, E) {
  18948. var h, y, R;
  18949. if (!this.isValid())
  18950. return NaN;
  18951. if (h = jh(r, this), !h.isValid())
  18952. return NaN;
  18953. switch (y = (h.utcOffset() - this.utcOffset()) * 6e4, g = Oi(g), g) {
  18954. case "year":
  18955. R = hs(this, h) / 12;
  18956. break;
  18957. case "month":
  18958. R = hs(this, h);
  18959. break;
  18960. case "quarter":
  18961. R = hs(this, h) / 3;
  18962. break;
  18963. case "second":
  18964. R = (this - h) / 1e3;
  18965. break;
  18966. case "minute":
  18967. R = (this - h) / 6e4;
  18968. break;
  18969. case "hour":
  18970. R = (this - h) / 36e5;
  18971. break;
  18972. case "day":
  18973. R = (this - h - y) / 864e5;
  18974. break;
  18975. case "week":
  18976. R = (this - h - y) / 6048e5;
  18977. break;
  18978. default:
  18979. R = this - h;
  18980. }
  18981. return E ? R : Ti(R);
  18982. }
  18983. function hs(r, g) {
  18984. if (r.date() < g.date())
  18985. return -hs(g, r);
  18986. var E = (g.year() - r.year()) * 12 + (g.month() - r.month()), h = r.clone().add(E, "months"), y, R;
  18987. return g - h < 0 ? (y = r.clone().add(E - 1, "months"), R = (g - h) / (h - y)) : (y = r.clone().add(E + 1, "months"), R = (g - h) / (y - h)), -(E + R) || 0;
  18988. }
  18989. Xt.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
  18990. Xt.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
  18991. function aS() {
  18992. return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
  18993. }
  18994. function hS(r) {
  18995. if (!this.isValid())
  18996. return null;
  18997. var g = r !== !0, E = g ? this.clone().utc() : this;
  18998. return E.year() < 0 || E.year() > 9999 ? ss(
  18999. E,
  19000. g ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19001. ) : Zi(Date.prototype.toISOString) ? g ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", ss(E, "Z")) : ss(
  19002. E,
  19003. g ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19004. );
  19005. }
  19006. function lS() {
  19007. if (!this.isValid())
  19008. return "moment.invalid(/* " + this._i + " */)";
  19009. var r = "moment", g = "", E, h, y, R;
  19010. return this.isLocal() || (r = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", g = "Z"), E = "[" + r + '("]', h = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", y = "-MM-DD[T]HH:mm:ss.SSS", R = g + '[")]', this.format(E + h + y + R);
  19011. }
  19012. function cS(r) {
  19013. r || (r = this.isUtc() ? Xt.defaultFormatUtc : Xt.defaultFormat);
  19014. var g = ss(this, r);
  19015. return this.localeData().postformat(g);
  19016. }
  19017. function pS(r, g) {
  19018. return this.isValid() && (ji(r) && r.isValid() || Te(r).isValid()) ? Wi({ to: this, from: r }).locale(this.locale()).humanize(!g) : this.localeData().invalidDate();
  19019. }
  19020. function uS(r) {
  19021. return this.from(Te(), r);
  19022. }
  19023. function dS(r, g) {
  19024. return this.isValid() && (ji(r) && r.isValid() || Te(r).isValid()) ? Wi({ from: this, to: r }).locale(this.locale()).humanize(!g) : this.localeData().invalidDate();
  19025. }
  19026. function fS(r) {
  19027. return this.to(Te(), r);
  19028. }
  19029. function Mu(r) {
  19030. var g;
  19031. return r === void 0 ? this._locale._abbr : (g = fr(r), g != null && (this._locale = g), this);
  19032. }
  19033. var Cu = Ei(
  19034. "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
  19035. function(r) {
  19036. return r === void 0 ? this.localeData() : this.locale(r);
  19037. }
  19038. );
  19039. function ku() {
  19040. return this._locale;
  19041. }
  19042. var vs = 1e3, vn = 60 * vs, xs = 60 * vn, Au = (365 * 400 + 97) * 24 * xs;
  19043. function xn(r, g) {
  19044. return (r % g + g) % g;
  19045. }
  19046. function Tu(r, g, E) {
  19047. return r < 100 && r >= 0 ? new Date(r + 400, g, E) - Au : new Date(r, g, E).valueOf();
  19048. }
  19049. function Pu(r, g, E) {
  19050. return r < 100 && r >= 0 ? Date.UTC(r + 400, g, E) - Au : Date.UTC(r, g, E);
  19051. }
  19052. function gS(r) {
  19053. var g, E;
  19054. if (r = Oi(r), r === void 0 || r === "millisecond" || !this.isValid())
  19055. return this;
  19056. switch (E = this._isUTC ? Pu : Tu, r) {
  19057. case "year":
  19058. g = E(this.year(), 0, 1);
  19059. break;
  19060. case "quarter":
  19061. g = E(
  19062. this.year(),
  19063. this.month() - this.month() % 3,
  19064. 1
  19065. );
  19066. break;
  19067. case "month":
  19068. g = E(this.year(), this.month(), 1);
  19069. break;
  19070. case "week":
  19071. g = E(
  19072. this.year(),
  19073. this.month(),
  19074. this.date() - this.weekday()
  19075. );
  19076. break;
  19077. case "isoWeek":
  19078. g = E(
  19079. this.year(),
  19080. this.month(),
  19081. this.date() - (this.isoWeekday() - 1)
  19082. );
  19083. break;
  19084. case "day":
  19085. case "date":
  19086. g = E(this.year(), this.month(), this.date());
  19087. break;
  19088. case "hour":
  19089. g = this._d.valueOf(), g -= xn(
  19090. g + (this._isUTC ? 0 : this.utcOffset() * vn),
  19091. xs
  19092. );
  19093. break;
  19094. case "minute":
  19095. g = this._d.valueOf(), g -= xn(g, vn);
  19096. break;
  19097. case "second":
  19098. g = this._d.valueOf(), g -= xn(g, vs);
  19099. break;
  19100. }
  19101. return this._d.setTime(g), Xt.updateOffset(this, !0), this;
  19102. }
  19103. function mS(r) {
  19104. var g, E;
  19105. if (r = Oi(r), r === void 0 || r === "millisecond" || !this.isValid())
  19106. return this;
  19107. switch (E = this._isUTC ? Pu : Tu, r) {
  19108. case "year":
  19109. g = E(this.year() + 1, 0, 1) - 1;
  19110. break;
  19111. case "quarter":
  19112. g = E(
  19113. this.year(),
  19114. this.month() - this.month() % 3 + 3,
  19115. 1
  19116. ) - 1;
  19117. break;
  19118. case "month":
  19119. g = E(this.year(), this.month() + 1, 1) - 1;
  19120. break;
  19121. case "week":
  19122. g = E(
  19123. this.year(),
  19124. this.month(),
  19125. this.date() - this.weekday() + 7
  19126. ) - 1;
  19127. break;
  19128. case "isoWeek":
  19129. g = E(
  19130. this.year(),
  19131. this.month(),
  19132. this.date() - (this.isoWeekday() - 1) + 7
  19133. ) - 1;
  19134. break;
  19135. case "day":
  19136. case "date":
  19137. g = E(this.year(), this.month(), this.date() + 1) - 1;
  19138. break;
  19139. case "hour":
  19140. g = this._d.valueOf(), g += xs - xn(
  19141. g + (this._isUTC ? 0 : this.utcOffset() * vn),
  19142. xs
  19143. ) - 1;
  19144. break;
  19145. case "minute":
  19146. g = this._d.valueOf(), g += vn - xn(g, vn) - 1;
  19147. break;
  19148. case "second":
  19149. g = this._d.valueOf(), g += vs - xn(g, vs) - 1;
  19150. break;
  19151. }
  19152. return this._d.setTime(g), Xt.updateOffset(this, !0), this;
  19153. }
  19154. function yS() {
  19155. return this._d.valueOf() - (this._offset || 0) * 6e4;
  19156. }
  19157. function vS() {
  19158. return Math.floor(this.valueOf() / 1e3);
  19159. }
  19160. function xS() {
  19161. return new Date(this.valueOf());
  19162. }
  19163. function bS() {
  19164. var r = this;
  19165. return [
  19166. r.year(),
  19167. r.month(),
  19168. r.date(),
  19169. r.hour(),
  19170. r.minute(),
  19171. r.second(),
  19172. r.millisecond()
  19173. ];
  19174. }
  19175. function SS() {
  19176. var r = this;
  19177. return {
  19178. years: r.year(),
  19179. months: r.month(),
  19180. date: r.date(),
  19181. hours: r.hours(),
  19182. minutes: r.minutes(),
  19183. seconds: r.seconds(),
  19184. milliseconds: r.milliseconds()
  19185. };
  19186. }
  19187. function wS() {
  19188. return this.isValid() ? this.toISOString() : null;
  19189. }
  19190. function MS() {
  19191. return Mh(this);
  19192. }
  19193. function CS() {
  19194. return Tr({}, oe(this));
  19195. }
  19196. function kS() {
  19197. return oe(this).overflow;
  19198. }
  19199. function AS() {
  19200. return {
  19201. input: this._i,
  19202. format: this._f,
  19203. locale: this._locale,
  19204. isUTC: this._isUTC,
  19205. strict: this._strict
  19206. };
  19207. }
  19208. Zt("N", 0, 0, "eraAbbr");
  19209. Zt("NN", 0, 0, "eraAbbr");
  19210. Zt("NNN", 0, 0, "eraAbbr");
  19211. Zt("NNNN", 0, 0, "eraName");
  19212. Zt("NNNNN", 0, 0, "eraNarrow");
  19213. Zt("y", ["y", 1], "yo", "eraYear");
  19214. Zt("y", ["yy", 2], 0, "eraYear");
  19215. Zt("y", ["yyy", 3], 0, "eraYear");
  19216. Zt("y", ["yyyy", 4], 0, "eraYear");
  19217. Ut("N", Wh);
  19218. Ut("NN", Wh);
  19219. Ut("NNN", Wh);
  19220. Ut("NNNN", BS);
  19221. Ut("NNNNN", jS);
  19222. we(
  19223. ["N", "NN", "NNN", "NNNN", "NNNNN"],
  19224. function(r, g, E, h) {
  19225. var y = E._locale.erasParse(r, h, E._strict);
  19226. y ? oe(E).era = y : oe(E).invalidEra = r;
  19227. }
  19228. );
  19229. Ut("y", An);
  19230. Ut("yy", An);
  19231. Ut("yyy", An);
  19232. Ut("yyyy", An);
  19233. Ut("yo", WS);
  19234. we(["y", "yy", "yyy", "yyyy"], Je);
  19235. we(["yo"], function(r, g, E, h) {
  19236. var y;
  19237. E._locale._eraYearOrdinalRegex && (y = r.match(E._locale._eraYearOrdinalRegex)), E._locale.eraYearOrdinalParse ? g[Je] = E._locale.eraYearOrdinalParse(r, y) : g[Je] = parseInt(r, 10);
  19238. });
  19239. function TS(r, g) {
  19240. var E, h, y, R = this._eras || fr("en")._eras;
  19241. for (E = 0, h = R.length; E < h; ++E) {
  19242. switch (typeof R[E].since) {
  19243. case "string":
  19244. y = Xt(R[E].since).startOf("day"), R[E].since = y.valueOf();
  19245. break;
  19246. }
  19247. switch (typeof R[E].until) {
  19248. case "undefined":
  19249. R[E].until = 1 / 0;
  19250. break;
  19251. case "string":
  19252. y = Xt(R[E].until).startOf("day").valueOf(), R[E].until = y.valueOf();
  19253. break;
  19254. }
  19255. }
  19256. return R;
  19257. }
  19258. function PS(r, g, E) {
  19259. var h, y, R = this.eras(), I, Z, H;
  19260. for (r = r.toUpperCase(), h = 0, y = R.length; h < y; ++h)
  19261. if (I = R[h].name.toUpperCase(), Z = R[h].abbr.toUpperCase(), H = R[h].narrow.toUpperCase(), E)
  19262. switch (g) {
  19263. case "N":
  19264. case "NN":
  19265. case "NNN":
  19266. if (Z === r)
  19267. return R[h];
  19268. break;
  19269. case "NNNN":
  19270. if (I === r)
  19271. return R[h];
  19272. break;
  19273. case "NNNNN":
  19274. if (H === r)
  19275. return R[h];
  19276. break;
  19277. }
  19278. else if ([I, Z, H].indexOf(r) >= 0)
  19279. return R[h];
  19280. }
  19281. function ES(r, g) {
  19282. var E = r.since <= r.until ? 1 : -1;
  19283. return g === void 0 ? Xt(r.since).year() : Xt(r.since).year() + (g - r.offset) * E;
  19284. }
  19285. function OS() {
  19286. var r, g, E, h = this.localeData().eras();
  19287. for (r = 0, g = h.length; r < g; ++r)
  19288. if (E = this.clone().startOf("day").valueOf(), h[r].since <= E && E <= h[r].until || h[r].until <= E && E <= h[r].since)
  19289. return h[r].name;
  19290. return "";
  19291. }
  19292. function LS() {
  19293. var r, g, E, h = this.localeData().eras();
  19294. for (r = 0, g = h.length; r < g; ++r)
  19295. if (E = this.clone().startOf("day").valueOf(), h[r].since <= E && E <= h[r].until || h[r].until <= E && E <= h[r].since)
  19296. return h[r].narrow;
  19297. return "";
  19298. }
  19299. function _S() {
  19300. var r, g, E, h = this.localeData().eras();
  19301. for (r = 0, g = h.length; r < g; ++r)
  19302. if (E = this.clone().startOf("day").valueOf(), h[r].since <= E && E <= h[r].until || h[r].until <= E && E <= h[r].since)
  19303. return h[r].abbr;
  19304. return "";
  19305. }
  19306. function DS() {
  19307. var r, g, E, h, y = this.localeData().eras();
  19308. for (r = 0, g = y.length; r < g; ++r)
  19309. 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)
  19310. return (this.year() - Xt(y[r].since).year()) * E + y[r].offset;
  19311. return this.year();
  19312. }
  19313. function IS(r) {
  19314. return me(this, "_erasNameRegex") || zh.call(this), r ? this._erasNameRegex : this._erasRegex;
  19315. }
  19316. function RS(r) {
  19317. return me(this, "_erasAbbrRegex") || zh.call(this), r ? this._erasAbbrRegex : this._erasRegex;
  19318. }
  19319. function NS(r) {
  19320. return me(this, "_erasNarrowRegex") || zh.call(this), r ? this._erasNarrowRegex : this._erasRegex;
  19321. }
  19322. function Wh(r, g) {
  19323. return g.erasAbbrRegex(r);
  19324. }
  19325. function BS(r, g) {
  19326. return g.erasNameRegex(r);
  19327. }
  19328. function jS(r, g) {
  19329. return g.erasNarrowRegex(r);
  19330. }
  19331. function WS(r, g) {
  19332. return g._eraYearOrdinalRegex || An;
  19333. }
  19334. function zh() {
  19335. var r = [], g = [], E = [], h = [], y, R, I = this.eras();
  19336. for (y = 0, R = I.length; y < R; ++y)
  19337. g.push(mi(I[y].name)), r.push(mi(I[y].abbr)), E.push(mi(I[y].narrow)), h.push(mi(I[y].name)), h.push(mi(I[y].abbr)), h.push(mi(I[y].narrow));
  19338. this._erasRegex = new RegExp("^(" + h.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + g.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
  19339. "^(" + E.join("|") + ")",
  19340. "i"
  19341. );
  19342. }
  19343. Zt(0, ["gg", 2], 0, function() {
  19344. return this.weekYear() % 100;
  19345. });
  19346. Zt(0, ["GG", 2], 0, function() {
  19347. return this.isoWeekYear() % 100;
  19348. });
  19349. function Rs(r, g) {
  19350. Zt(0, [r, r.length], 0, g);
  19351. }
  19352. Rs("gggg", "weekYear");
  19353. Rs("ggggg", "weekYear");
  19354. Rs("GGGG", "isoWeekYear");
  19355. Rs("GGGGG", "isoWeekYear");
  19356. qe("weekYear", "gg");
  19357. qe("isoWeekYear", "GG");
  19358. Qe("weekYear", 1);
  19359. Qe("isoWeekYear", 1);
  19360. Ut("G", Os);
  19361. Ut("g", Os);
  19362. Ut("GG", Pe, vi);
  19363. Ut("gg", Pe, vi);
  19364. Ut("GGGG", Eh, Ph);
  19365. Ut("gggg", Eh, Ph);
  19366. Ut("GGGGG", Es, Ts);
  19367. Ut("ggggg", Es, Ts);
  19368. ao(
  19369. ["gggg", "ggggg", "GGGG", "GGGGG"],
  19370. function(r, g, E, h) {
  19371. g[h.substr(0, 2)] = he(r);
  19372. }
  19373. );
  19374. ao(["gg", "GG"], function(r, g, E, h) {
  19375. g[h] = Xt.parseTwoDigitYear(r);
  19376. });
  19377. function zS(r) {
  19378. return Eu.call(
  19379. this,
  19380. r,
  19381. this.week(),
  19382. this.weekday(),
  19383. this.localeData()._week.dow,
  19384. this.localeData()._week.doy
  19385. );
  19386. }
  19387. function YS(r) {
  19388. return Eu.call(
  19389. this,
  19390. r,
  19391. this.isoWeek(),
  19392. this.isoWeekday(),
  19393. 1,
  19394. 4
  19395. );
  19396. }
  19397. function XS() {
  19398. return pr(this.year(), 1, 4);
  19399. }
  19400. function GS() {
  19401. return pr(this.isoWeekYear(), 1, 4);
  19402. }
  19403. function HS() {
  19404. var r = this.localeData()._week;
  19405. return pr(this.year(), r.dow, r.doy);
  19406. }
  19407. function US() {
  19408. var r = this.localeData()._week;
  19409. return pr(this.weekYear(), r.dow, r.doy);
  19410. }
  19411. function Eu(r, g, E, h, y) {
  19412. var R;
  19413. return r == null ? eo(this, h, y).year : (R = pr(r, h, y), g > R && (g = R), FS.call(this, r, g, E, h, y));
  19414. }
  19415. function FS(r, g, E, h, y) {
  19416. var R = hu(r, g, E, h, y), I = to(R.year, 0, R.dayOfYear);
  19417. return this.year(I.getUTCFullYear()), this.month(I.getUTCMonth()), this.date(I.getUTCDate()), this;
  19418. }
  19419. Zt("Q", 0, "Qo", "quarter");
  19420. qe("quarter", "Q");
  19421. Qe("quarter", 7);
  19422. Ut("Q", qp);
  19423. we("Q", function(r, g) {
  19424. g[lr] = (he(r) - 1) * 3;
  19425. });
  19426. function VS(r) {
  19427. return r == null ? Math.ceil((this.month() + 1) / 3) : this.month((r - 1) * 3 + this.month() % 3);
  19428. }
  19429. Zt("D", ["DD", 2], "Do", "date");
  19430. qe("date", "D");
  19431. Qe("date", 9);
  19432. Ut("D", Pe);
  19433. Ut("DD", Pe, vi);
  19434. Ut("Do", function(r, g) {
  19435. return r ? g._dayOfMonthOrdinalParse || g._ordinalParse : g._dayOfMonthOrdinalParseLenient;
  19436. });
  19437. we(["D", "DD"], Hi);
  19438. we("Do", function(r, g) {
  19439. g[Hi] = he(r.match(Pe)[0]);
  19440. });
  19441. var Ou = kn("Date", !0);
  19442. Zt("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
  19443. qe("dayOfYear", "DDD");
  19444. Qe("dayOfYear", 4);
  19445. Ut("DDD", Ps);
  19446. Ut("DDDD", Qp);
  19447. we(["DDD", "DDDD"], function(r, g, E) {
  19448. E._dayOfYear = he(r);
  19449. });
  19450. function $S(r) {
  19451. var g = Math.round(
  19452. (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
  19453. ) + 1;
  19454. return r == null ? g : this.add(r - g, "d");
  19455. }
  19456. Zt("m", ["mm", 2], 0, "minute");
  19457. qe("minute", "m");
  19458. Qe("minute", 14);
  19459. Ut("m", Pe);
  19460. Ut("mm", Pe, vi);
  19461. we(["m", "mm"], Ri);
  19462. var ZS = kn("Minutes", !1);
  19463. Zt("s", ["ss", 2], 0, "second");
  19464. qe("second", "s");
  19465. Qe("second", 15);
  19466. Ut("s", Pe);
  19467. Ut("ss", Pe, vi);
  19468. we(["s", "ss"], cr);
  19469. var KS = kn("Seconds", !1);
  19470. Zt("S", 0, 0, function() {
  19471. return ~~(this.millisecond() / 100);
  19472. });
  19473. Zt(0, ["SS", 2], 0, function() {
  19474. return ~~(this.millisecond() / 10);
  19475. });
  19476. Zt(0, ["SSS", 3], 0, "millisecond");
  19477. Zt(0, ["SSSS", 4], 0, function() {
  19478. return this.millisecond() * 10;
  19479. });
  19480. Zt(0, ["SSSSS", 5], 0, function() {
  19481. return this.millisecond() * 100;
  19482. });
  19483. Zt(0, ["SSSSSS", 6], 0, function() {
  19484. return this.millisecond() * 1e3;
  19485. });
  19486. Zt(0, ["SSSSSSS", 7], 0, function() {
  19487. return this.millisecond() * 1e4;
  19488. });
  19489. Zt(0, ["SSSSSSSS", 8], 0, function() {
  19490. return this.millisecond() * 1e5;
  19491. });
  19492. Zt(0, ["SSSSSSSSS", 9], 0, function() {
  19493. return this.millisecond() * 1e6;
  19494. });
  19495. qe("millisecond", "ms");
  19496. Qe("millisecond", 16);
  19497. Ut("S", Ps, qp);
  19498. Ut("SS", Ps, vi);
  19499. Ut("SSS", Ps, Qp);
  19500. var Pr, Lu;
  19501. for (Pr = "SSSS"; Pr.length <= 9; Pr += "S")
  19502. Ut(Pr, An);
  19503. function JS(r, g) {
  19504. g[Fr] = he(("0." + r) * 1e3);
  19505. }
  19506. for (Pr = "S"; Pr.length <= 9; Pr += "S")
  19507. we(Pr, JS);
  19508. Lu = kn("Milliseconds", !1);
  19509. Zt("z", 0, 0, "zoneAbbr");
  19510. Zt("zz", 0, 0, "zoneName");
  19511. function qS() {
  19512. return this._isUTC ? "UTC" : "";
  19513. }
  19514. function QS() {
  19515. return this._isUTC ? "Coordinated Universal Time" : "";
  19516. }
  19517. var jt = oo.prototype;
  19518. jt.add = Ub;
  19519. jt.calendar = qb;
  19520. jt.clone = Qb;
  19521. jt.diff = sS;
  19522. jt.endOf = mS;
  19523. jt.format = cS;
  19524. jt.from = pS;
  19525. jt.fromNow = uS;
  19526. jt.to = dS;
  19527. jt.toNow = fS;
  19528. jt.get = e1;
  19529. jt.invalidAt = kS;
  19530. jt.isAfter = tS;
  19531. jt.isBefore = eS;
  19532. jt.isBetween = iS;
  19533. jt.isSame = rS;
  19534. jt.isSameOrAfter = nS;
  19535. jt.isSameOrBefore = oS;
  19536. jt.isValid = MS;
  19537. jt.lang = Cu;
  19538. jt.locale = Mu;
  19539. jt.localeData = ku;
  19540. jt.max = Mb;
  19541. jt.min = wb;
  19542. jt.parsingFlags = CS;
  19543. jt.set = i1;
  19544. jt.startOf = gS;
  19545. jt.subtract = Fb;
  19546. jt.toArray = bS;
  19547. jt.toObject = SS;
  19548. jt.toDate = xS;
  19549. jt.toISOString = hS;
  19550. jt.inspect = lS;
  19551. typeof Symbol < "u" && Symbol.for != null && (jt[Symbol.for("nodejs.util.inspect.custom")] = function() {
  19552. return "Moment<" + this.format() + ">";
  19553. });
  19554. jt.toJSON = wS;
  19555. jt.toString = aS;
  19556. jt.unix = vS;
  19557. jt.valueOf = yS;
  19558. jt.creationData = AS;
  19559. jt.eraName = OS;
  19560. jt.eraNarrow = LS;
  19561. jt.eraAbbr = _S;
  19562. jt.eraYear = DS;
  19563. jt.year = au;
  19564. jt.isLeapYear = S1;
  19565. jt.weekYear = zS;
  19566. jt.isoWeekYear = YS;
  19567. jt.quarter = jt.quarters = VS;
  19568. jt.month = ou;
  19569. jt.daysInMonth = v1;
  19570. jt.week = jt.weeks = T1;
  19571. jt.isoWeek = jt.isoWeeks = P1;
  19572. jt.weeksInYear = HS;
  19573. jt.weeksInWeekYear = US;
  19574. jt.isoWeeksInYear = XS;
  19575. jt.isoWeeksInISOWeekYear = GS;
  19576. jt.date = Ou;
  19577. jt.day = jt.days = Y1;
  19578. jt.weekday = X1;
  19579. jt.isoWeekday = G1;
  19580. jt.dayOfYear = $S;
  19581. jt.hour = jt.hours = K1;
  19582. jt.minute = jt.minutes = ZS;
  19583. jt.second = jt.seconds = KS;
  19584. jt.millisecond = jt.milliseconds = Lu;
  19585. jt.utcOffset = _b;
  19586. jt.utc = Ib;
  19587. jt.local = Rb;
  19588. jt.parseZone = Nb;
  19589. jt.hasAlignedHourOffset = Bb;
  19590. jt.isDST = jb;
  19591. jt.isLocal = zb;
  19592. jt.isUtcOffset = Yb;
  19593. jt.isUtc = xu;
  19594. jt.isUTC = xu;
  19595. jt.zoneAbbr = qS;
  19596. jt.zoneName = QS;
  19597. jt.dates = Ei(
  19598. "dates accessor is deprecated. Use date instead.",
  19599. Ou
  19600. );
  19601. jt.months = Ei(
  19602. "months accessor is deprecated. Use month instead",
  19603. ou
  19604. );
  19605. jt.years = Ei(
  19606. "years accessor is deprecated. Use year instead",
  19607. au
  19608. );
  19609. jt.zone = Ei(
  19610. "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
  19611. Db
  19612. );
  19613. jt.isDSTShifted = Ei(
  19614. "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
  19615. Wb
  19616. );
  19617. function tw(r) {
  19618. return Te(r * 1e3);
  19619. }
  19620. function ew() {
  19621. return Te.apply(null, arguments).parseZone();
  19622. }
  19623. function _u(r) {
  19624. return r;
  19625. }
  19626. var ye = kh.prototype;
  19627. ye.calendar = Y0;
  19628. ye.longDateFormat = U0;
  19629. ye.invalidDate = V0;
  19630. ye.ordinal = K0;
  19631. ye.preparse = _u;
  19632. ye.postformat = _u;
  19633. ye.relativeTime = q0;
  19634. ye.pastFuture = Q0;
  19635. ye.set = W0;
  19636. ye.eras = TS;
  19637. ye.erasParse = PS;
  19638. ye.erasConvertYear = ES;
  19639. ye.erasAbbrRegex = RS;
  19640. ye.erasNameRegex = IS;
  19641. ye.erasNarrowRegex = NS;
  19642. ye.months = f1;
  19643. ye.monthsShort = g1;
  19644. ye.monthsParse = y1;
  19645. ye.monthsRegex = b1;
  19646. ye.monthsShortRegex = x1;
  19647. ye.week = M1;
  19648. ye.firstDayOfYear = A1;
  19649. ye.firstDayOfWeek = k1;
  19650. ye.weekdays = N1;
  19651. ye.weekdaysMin = j1;
  19652. ye.weekdaysShort = B1;
  19653. ye.weekdaysParse = z1;
  19654. ye.weekdaysRegex = H1;
  19655. ye.weekdaysShortRegex = U1;
  19656. ye.weekdaysMinRegex = F1;
  19657. ye.isPM = $1;
  19658. ye.meridiem = J1;
  19659. function bs(r, g, E, h) {
  19660. var y = fr(), R = $i().set(h, g);
  19661. return y[E](R, r);
  19662. }
  19663. function Du(r, g, E) {
  19664. if (dr(r) && (g = r, r = void 0), r = r || "", g != null)
  19665. return bs(r, g, E, "month");
  19666. var h, y = [];
  19667. for (h = 0; h < 12; h++)
  19668. y[h] = bs(r, h, E, "month");
  19669. return y;
  19670. }
  19671. function Yh(r, g, E, h) {
  19672. typeof r == "boolean" ? (dr(g) && (E = g, g = void 0), g = g || "") : (g = r, E = g, r = !1, dr(g) && (E = g, g = void 0), g = g || "");
  19673. var y = fr(), R = r ? y._week.dow : 0, I, Z = [];
  19674. if (E != null)
  19675. return bs(g, (E + R) % 7, h, "day");
  19676. for (I = 0; I < 7; I++)
  19677. Z[I] = bs(g, (I + R) % 7, h, "day");
  19678. return Z;
  19679. }
  19680. function iw(r, g) {
  19681. return Du(r, g, "months");
  19682. }
  19683. function rw(r, g) {
  19684. return Du(r, g, "monthsShort");
  19685. }
  19686. function nw(r, g, E) {
  19687. return Yh(r, g, E, "weekdays");
  19688. }
  19689. function ow(r, g, E) {
  19690. return Yh(r, g, E, "weekdaysShort");
  19691. }
  19692. function sw(r, g, E) {
  19693. return Yh(r, g, E, "weekdaysMin");
  19694. }
  19695. Er("en", {
  19696. eras: [
  19697. {
  19698. since: "0001-01-01",
  19699. until: 1 / 0,
  19700. offset: 1,
  19701. name: "Anno Domini",
  19702. narrow: "AD",
  19703. abbr: "AD"
  19704. },
  19705. {
  19706. since: "0000-12-31",
  19707. until: -1 / 0,
  19708. offset: 1,
  19709. name: "Before Christ",
  19710. narrow: "BC",
  19711. abbr: "BC"
  19712. }
  19713. ],
  19714. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  19715. ordinal: function(r) {
  19716. var g = r % 10, E = he(r % 100 / 10) === 1 ? "th" : g === 1 ? "st" : g === 2 ? "nd" : g === 3 ? "rd" : "th";
  19717. return r + E;
  19718. }
  19719. });
  19720. Xt.lang = Ei(
  19721. "moment.lang is deprecated. Use moment.locale instead.",
  19722. Er
  19723. );
  19724. Xt.langData = Ei(
  19725. "moment.langData is deprecated. Use moment.localeData instead.",
  19726. fr
  19727. );
  19728. var sr = Math.abs;
  19729. function aw() {
  19730. var r = this._data;
  19731. return this._milliseconds = sr(this._milliseconds), this._days = sr(this._days), this._months = sr(this._months), r.milliseconds = sr(r.milliseconds), r.seconds = sr(r.seconds), r.minutes = sr(r.minutes), r.hours = sr(r.hours), r.months = sr(r.months), r.years = sr(r.years), this;
  19732. }
  19733. function Iu(r, g, E, h) {
  19734. var y = Wi(g, E);
  19735. return r._milliseconds += h * y._milliseconds, r._days += h * y._days, r._months += h * y._months, r._bubble();
  19736. }
  19737. function hw(r, g) {
  19738. return Iu(this, r, g, 1);
  19739. }
  19740. function lw(r, g) {
  19741. return Iu(this, r, g, -1);
  19742. }
  19743. function kp(r) {
  19744. return r < 0 ? Math.floor(r) : Math.ceil(r);
  19745. }
  19746. function cw() {
  19747. var r = this._milliseconds, g = this._days, E = this._months, h = this._data, y, R, I, Z, H;
  19748. return r >= 0 && g >= 0 && E >= 0 || r <= 0 && g <= 0 && E <= 0 || (r += kp(yh(E) + g) * 864e5, g = 0, E = 0), h.milliseconds = r % 1e3, y = Ti(r / 1e3), h.seconds = y % 60, R = Ti(y / 60), h.minutes = R % 60, I = Ti(R / 60), h.hours = I % 24, g += Ti(I / 24), H = Ti(Ru(g)), E += H, g -= kp(yh(H)), Z = Ti(E / 12), E %= 12, h.days = g, h.months = E, h.years = Z, this;
  19749. }
  19750. function Ru(r) {
  19751. return r * 4800 / 146097;
  19752. }
  19753. function yh(r) {
  19754. return r * 146097 / 4800;
  19755. }
  19756. function pw(r) {
  19757. if (!this.isValid())
  19758. return NaN;
  19759. var g, E, h = this._milliseconds;
  19760. if (r = Oi(r), r === "month" || r === "quarter" || r === "year")
  19761. switch (g = this._days + h / 864e5, E = this._months + Ru(g), r) {
  19762. case "month":
  19763. return E;
  19764. case "quarter":
  19765. return E / 3;
  19766. case "year":
  19767. return E / 12;
  19768. }
  19769. else
  19770. switch (g = this._days + Math.round(yh(this._months)), r) {
  19771. case "week":
  19772. return g / 7 + h / 6048e5;
  19773. case "day":
  19774. return g + h / 864e5;
  19775. case "hour":
  19776. return g * 24 + h / 36e5;
  19777. case "minute":
  19778. return g * 1440 + h / 6e4;
  19779. case "second":
  19780. return g * 86400 + h / 1e3;
  19781. case "millisecond":
  19782. return Math.floor(g * 864e5) + h;
  19783. default:
  19784. throw new Error("Unknown unit " + r);
  19785. }
  19786. }
  19787. function uw() {
  19788. return this.isValid() ? this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + he(this._months / 12) * 31536e6 : NaN;
  19789. }
  19790. function gr(r) {
  19791. return function() {
  19792. return this.as(r);
  19793. };
  19794. }
  19795. var dw = gr("ms"), fw = gr("s"), gw = gr("m"), mw = gr("h"), yw = gr("d"), vw = gr("w"), xw = gr("M"), bw = gr("Q"), Sw = gr("y");
  19796. function ww() {
  19797. return Wi(this);
  19798. }
  19799. function Mw(r) {
  19800. return r = Oi(r), this.isValid() ? this[r + "s"]() : NaN;
  19801. }
  19802. function $r(r) {
  19803. return function() {
  19804. return this.isValid() ? this._data[r] : NaN;
  19805. };
  19806. }
  19807. var Cw = $r("milliseconds"), kw = $r("seconds"), Aw = $r("minutes"), Tw = $r("hours"), Pw = $r("days"), Ew = $r("months"), Ow = $r("years");
  19808. function Lw() {
  19809. return Ti(this.days() / 7);
  19810. }
  19811. var ar = Math.round, fn = {
  19812. ss: 44,
  19813. // a few seconds to seconds
  19814. s: 45,
  19815. // seconds to minute
  19816. m: 45,
  19817. // minutes to hour
  19818. h: 22,
  19819. // hours to day
  19820. d: 26,
  19821. // days to month/week
  19822. w: null,
  19823. // weeks to month
  19824. M: 11
  19825. // months to year
  19826. };
  19827. function _w(r, g, E, h, y) {
  19828. return y.relativeTime(g || 1, !!E, r, h);
  19829. }
  19830. function Dw(r, g, E, h) {
  19831. var y = Wi(r).abs(), R = ar(y.as("s")), I = ar(y.as("m")), Z = ar(y.as("h")), H = ar(y.as("d")), $ = ar(y.as("M")), U = ar(y.as("w")), W = ar(y.as("y")), N = R <= E.ss && ["s", R] || R < E.s && ["ss", R] || I <= 1 && ["m"] || I < E.m && ["mm", I] || Z <= 1 && ["h"] || Z < E.h && ["hh", Z] || H <= 1 && ["d"] || H < E.d && ["dd", H];
  19832. return E.w != null && (N = N || U <= 1 && ["w"] || U < E.w && ["ww", U]), N = N || $ <= 1 && ["M"] || $ < E.M && ["MM", $] || W <= 1 && ["y"] || ["yy", W], N[2] = g, N[3] = +r > 0, N[4] = h, _w.apply(null, N);
  19833. }
  19834. function Iw(r) {
  19835. return r === void 0 ? ar : typeof r == "function" ? (ar = r, !0) : !1;
  19836. }
  19837. function Rw(r, g) {
  19838. return fn[r] === void 0 ? !1 : g === void 0 ? fn[r] : (fn[r] = g, r === "s" && (fn.ss = g - 1), !0);
  19839. }
  19840. function Nw(r, g) {
  19841. if (!this.isValid())
  19842. return this.localeData().invalidDate();
  19843. var E = !1, h = fn, y, R;
  19844. return typeof r == "object" && (g = r, r = !1), typeof r == "boolean" && (E = r), typeof g == "object" && (h = Object.assign({}, fn, g), g.s != null && g.ss == null && (h.ss = g.s - 1)), y = this.localeData(), R = Dw(this, !E, h, y), E && (R = y.pastFuture(+this, R)), y.postformat(R);
  19845. }
  19846. var rh = Math.abs;
  19847. function un(r) {
  19848. return (r > 0) - (r < 0) || +r;
  19849. }
  19850. function Ns() {
  19851. if (!this.isValid())
  19852. return this.localeData().invalidDate();
  19853. var r = rh(this._milliseconds) / 1e3, g = rh(this._days), E = rh(this._months), h, y, R, I, Z = this.asSeconds(), H, $, U, W;
  19854. return Z ? (h = Ti(r / 60), y = Ti(h / 60), r %= 60, h %= 60, R = Ti(E / 12), E %= 12, I = r ? r.toFixed(3).replace(/\.?0+$/, "") : "", H = Z < 0 ? "-" : "", $ = un(this._months) !== un(Z) ? "-" : "", U = un(this._days) !== un(Z) ? "-" : "", W = un(this._milliseconds) !== un(Z) ? "-" : "", H + "P" + (R ? $ + R + "Y" : "") + (E ? $ + E + "M" : "") + (g ? U + g + "D" : "") + (y || h || r ? "T" : "") + (y ? W + y + "H" : "") + (h ? W + h + "M" : "") + (r ? W + I + "S" : "")) : "P0D";
  19855. }
  19856. var de = Is.prototype;
  19857. de.isValid = Pb;
  19858. de.abs = aw;
  19859. de.add = hw;
  19860. de.subtract = lw;
  19861. de.as = pw;
  19862. de.asMilliseconds = dw;
  19863. de.asSeconds = fw;
  19864. de.asMinutes = gw;
  19865. de.asHours = mw;
  19866. de.asDays = yw;
  19867. de.asWeeks = vw;
  19868. de.asMonths = xw;
  19869. de.asQuarters = bw;
  19870. de.asYears = Sw;
  19871. de.valueOf = uw;
  19872. de._bubble = cw;
  19873. de.clone = ww;
  19874. de.get = Mw;
  19875. de.milliseconds = Cw;
  19876. de.seconds = kw;
  19877. de.minutes = Aw;
  19878. de.hours = Tw;
  19879. de.days = Pw;
  19880. de.weeks = Lw;
  19881. de.months = Ew;
  19882. de.years = Ow;
  19883. de.humanize = Nw;
  19884. de.toISOString = Ns;
  19885. de.toString = Ns;
  19886. de.toJSON = Ns;
  19887. de.locale = Mu;
  19888. de.localeData = ku;
  19889. de.toIsoString = Ei(
  19890. "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
  19891. Ns
  19892. );
  19893. de.lang = Cu;
  19894. Zt("X", 0, 0, "unix");
  19895. Zt("x", 0, 0, "valueOf");
  19896. Ut("x", Os);
  19897. Ut("X", n1);
  19898. we("X", function(r, g, E) {
  19899. E._d = new Date(parseFloat(r) * 1e3);
  19900. });
  19901. we("x", function(r, g, E) {
  19902. E._d = new Date(he(r));
  19903. });
  19904. //! moment.js
  19905. Xt.version = "2.29.4";
  19906. B0(Te);
  19907. Xt.fn = jt;
  19908. Xt.min = Cb;
  19909. Xt.max = kb;
  19910. Xt.now = Ab;
  19911. Xt.utc = $i;
  19912. Xt.unix = tw;
  19913. Xt.months = iw;
  19914. Xt.isDate = no;
  19915. Xt.locale = Er;
  19916. Xt.invalid = ks;
  19917. Xt.duration = Wi;
  19918. Xt.isMoment = ji;
  19919. Xt.weekdays = nw;
  19920. Xt.parseZone = ew;
  19921. Xt.localeData = fr;
  19922. Xt.isDuration = as;
  19923. Xt.monthsShort = rw;
  19924. Xt.weekdaysMin = sw;
  19925. Xt.defineLocale = Dh;
  19926. Xt.updateLocale = eb;
  19927. Xt.locales = ib;
  19928. Xt.weekdaysShort = ow;
  19929. Xt.normalizeUnits = Oi;
  19930. Xt.relativeTimeRounding = Iw;
  19931. Xt.relativeTimeThreshold = Rw;
  19932. Xt.calendarFormat = Jb;
  19933. Xt.prototype = jt;
  19934. Xt.HTML5_FMT = {
  19935. DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  19936. // <input type="datetime-local" />
  19937. DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  19938. // <input type="datetime-local" step="1" />
  19939. DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  19940. // <input type="datetime-local" step="0.001" />
  19941. DATE: "YYYY-MM-DD",
  19942. // <input type="date" />
  19943. TIME: "HH:mm",
  19944. // <input type="time" />
  19945. TIME_SECONDS: "HH:mm:ss",
  19946. // <input type="time" step="1" />
  19947. TIME_MS: "HH:mm:ss.SSS",
  19948. // <input type="time" step="0.001" />
  19949. WEEK: "GGGG-[W]WW",
  19950. // <input type="week" />
  19951. MONTH: "YYYY-MM"
  19952. // <input type="month" />
  19953. };
  19954. var Ss = { exports: {} };
  19955. /**
  19956. * @license
  19957. * Lodash <https://lodash.com/>
  19958. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  19959. * Released under MIT license <https://lodash.com/license>
  19960. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  19961. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  19962. */
  19963. Ss.exports;
  19964. (function(r, g) {
  19965. (function() {
  19966. var E, h = "4.17.21", y = 200, R = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", I = "Expected a function", Z = "Invalid `variable` option passed into `_.template`", H = "__lodash_hash_undefined__", $ = 500, U = "__lodash_placeholder__", W = 1, N = 2, w = 4, v = 1, u = 2, d = 1, P = 2, O = 4, B = 8, C = 16, b = 32, M = 64, x = 128, a = 256, c = 512, p = 30, i = "...", l = 800, s = 16, t = 1, n = 2, o = 3, A = 1 / 0, _ = 9007199254740991, D = 17976931348623157e292, j = 0 / 0, T = 4294967295, X = T - 1, f = T >>> 1, m = [
  19967. ["ary", x],
  19968. ["bind", d],
  19969. ["bindKey", P],
  19970. ["curry", B],
  19971. ["curryRight", C],
  19972. ["flip", c],
  19973. ["partial", b],
  19974. ["partialRight", M],
  19975. ["rearg", a]
  19976. ], L = "[object Arguments]", Y = "[object Array]", F = "[object AsyncFunction]", Q = "[object Boolean]", k = "[object Date]", G = "[object DOMException]", z = "[object Error]", V = "[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]", Tt = "[object Int8Array]", kt = "[object Int16Array]", St = "[object Int32Array]", _t = "[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, Lr = /<%([\s\S]+?)%>/g, co = /<%=([\s\S]+?)%>/g, Pn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, En = /^\w*$/, $e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, On = /[\\^$.*+?()[\]{}|]/g, Ln = RegExp(On.source), Zr = /^\s+/, po = /\s/, Xs = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, _r = /\{\n\/\* \[wrapped with (.+)\] \*/, zi = /,? & /, uo = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, _n = /[()=,{}\[\]\/\s]/, Dr = /\\(\\)?/g, $t = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ue = /\w*$/, ge = /^[-+]0x[0-9a-f]+$/i, De = /^0b[01]+$/i, Le = /^\[object .+?Constructor\]$/, Kr = /^0o[0-7]+$/i, ud = /^(?:0|[1-9]\d*)$/, dd = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, fo = /($^)/, fd = /['\n\r\u2028\u2029\\]/g, go = "\\ud800-\\udfff", gd = "\\u0300-\\u036f", md = "\\ufe20-\\ufe2f", yd = "\\u20d0-\\u20ff", Zh = gd + md + yd, Kh = "\\u2700-\\u27bf", Jh = "a-z\\xdf-\\xf6\\xf8-\\xff", vd = "\\xac\\xb1\\xd7\\xf7", xd = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", bd = "\\u2000-\\u206f", Sd = " \\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", qh = "A-Z\\xc0-\\xd6\\xd8-\\xde", Qh = "\\ufe0e\\ufe0f", tl = vd + xd + bd + Sd, Gs = "['’]", wd = "[" + go + "]", el = "[" + tl + "]", mo = "[" + Zh + "]", il = "\\d+", Md = "[" + Kh + "]", rl = "[" + Jh + "]", nl = "[^" + go + tl + il + Kh + Jh + qh + "]", Hs = "\\ud83c[\\udffb-\\udfff]", Cd = "(?:" + mo + "|" + Hs + ")", ol = "[^" + go + "]", Us = "(?:\\ud83c[\\udde6-\\uddff]){2}", Fs = "[\\ud800-\\udbff][\\udc00-\\udfff]", Jr = "[" + qh + "]", sl = "\\u200d", al = "(?:" + rl + "|" + nl + ")", kd = "(?:" + Jr + "|" + nl + ")", hl = "(?:" + Gs + "(?:d|ll|m|re|s|t|ve))?", ll = "(?:" + Gs + "(?:D|LL|M|RE|S|T|VE))?", cl = Cd + "?", pl = "[" + Qh + "]?", Ad = "(?:" + sl + "(?:" + [ol, Us, Fs].join("|") + ")" + pl + cl + ")*", Td = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Pd = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ul = pl + cl + Ad, Ed = "(?:" + [Md, Us, Fs].join("|") + ")" + ul, Od = "(?:" + [ol + mo + "?", mo, Us, Fs, wd].join("|") + ")", Ld = RegExp(Gs, "g"), _d = RegExp(mo, "g"), Vs = RegExp(Hs + "(?=" + Hs + ")|" + Od + ul, "g"), Dd = RegExp([
  19977. Jr + "?" + rl + "+" + hl + "(?=" + [el, Jr, "$"].join("|") + ")",
  19978. kd + "+" + ll + "(?=" + [el, Jr + al, "$"].join("|") + ")",
  19979. Jr + "?" + al + "+" + hl,
  19980. Jr + "+" + ll,
  19981. Pd,
  19982. Td,
  19983. il,
  19984. Ed
  19985. ].join("|"), "g"), Id = RegExp("[" + sl + go + Zh + Qh + "]"), Rd = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Nd = [
  19986. "Array",
  19987. "Buffer",
  19988. "DataView",
  19989. "Date",
  19990. "Error",
  19991. "Float32Array",
  19992. "Float64Array",
  19993. "Function",
  19994. "Int8Array",
  19995. "Int16Array",
  19996. "Int32Array",
  19997. "Map",
  19998. "Math",
  19999. "Object",
  20000. "Promise",
  20001. "RegExp",
  20002. "Set",
  20003. "String",
  20004. "Symbol",
  20005. "TypeError",
  20006. "Uint8Array",
  20007. "Uint8ClampedArray",
  20008. "Uint16Array",
  20009. "Uint32Array",
  20010. "WeakMap",
  20011. "_",
  20012. "clearTimeout",
  20013. "isFinite",
  20014. "parseInt",
  20015. "setTimeout"
  20016. ], Bd = -1, Ae = {};
  20017. Ae[vt] = Ae[Ct] = Ae[Tt] = Ae[kt] = Ae[St] = Ae[_t] = Ae[Lt] = Ae[Nt] = Ae[Et] = !0, Ae[L] = Ae[Y] = Ae[pt] = Ae[Q] = Ae[yt] = Ae[k] = Ae[z] = Ae[V] = Ae[it] = Ae[et] = Ae[rt] = Ae[dt] = Ae[lt] = Ae[at] = Ae[st] = !1;
  20018. var ke = {};
  20019. ke[L] = ke[Y] = ke[pt] = ke[yt] = ke[Q] = ke[k] = ke[vt] = ke[Ct] = ke[Tt] = ke[kt] = ke[St] = ke[it] = ke[et] = ke[rt] = ke[dt] = ke[lt] = ke[at] = ke[J] = ke[_t] = ke[Lt] = ke[Nt] = ke[Et] = !0, ke[z] = ke[V] = ke[st] = !1;
  20020. var jd = {
  20021. // Latin-1 Supplement block.
  20022. À: "A",
  20023. Á: "A",
  20024. Â: "A",
  20025. Ã: "A",
  20026. Ä: "A",
  20027. Å: "A",
  20028. à: "a",
  20029. á: "a",
  20030. â: "a",
  20031. ã: "a",
  20032. ä: "a",
  20033. å: "a",
  20034. Ç: "C",
  20035. ç: "c",
  20036. Ð: "D",
  20037. ð: "d",
  20038. È: "E",
  20039. É: "E",
  20040. Ê: "E",
  20041. Ë: "E",
  20042. è: "e",
  20043. é: "e",
  20044. ê: "e",
  20045. ë: "e",
  20046. Ì: "I",
  20047. Í: "I",
  20048. Î: "I",
  20049. Ï: "I",
  20050. ì: "i",
  20051. í: "i",
  20052. î: "i",
  20053. ï: "i",
  20054. Ñ: "N",
  20055. ñ: "n",
  20056. Ò: "O",
  20057. Ó: "O",
  20058. Ô: "O",
  20059. Õ: "O",
  20060. Ö: "O",
  20061. Ø: "O",
  20062. ò: "o",
  20063. ó: "o",
  20064. ô: "o",
  20065. õ: "o",
  20066. ö: "o",
  20067. ø: "o",
  20068. Ù: "U",
  20069. Ú: "U",
  20070. Û: "U",
  20071. Ü: "U",
  20072. ù: "u",
  20073. ú: "u",
  20074. û: "u",
  20075. ü: "u",
  20076. Ý: "Y",
  20077. ý: "y",
  20078. ÿ: "y",
  20079. Æ: "Ae",
  20080. æ: "ae",
  20081. Þ: "Th",
  20082. þ: "th",
  20083. ß: "ss",
  20084. // Latin Extended-A block.
  20085. Ā: "A",
  20086. Ă: "A",
  20087. Ą: "A",
  20088. ā: "a",
  20089. ă: "a",
  20090. ą: "a",
  20091. Ć: "C",
  20092. Ĉ: "C",
  20093. Ċ: "C",
  20094. Č: "C",
  20095. ć: "c",
  20096. ĉ: "c",
  20097. ċ: "c",
  20098. č: "c",
  20099. Ď: "D",
  20100. Đ: "D",
  20101. ď: "d",
  20102. đ: "d",
  20103. Ē: "E",
  20104. Ĕ: "E",
  20105. Ė: "E",
  20106. Ę: "E",
  20107. Ě: "E",
  20108. ē: "e",
  20109. ĕ: "e",
  20110. ė: "e",
  20111. ę: "e",
  20112. ě: "e",
  20113. Ĝ: "G",
  20114. Ğ: "G",
  20115. Ġ: "G",
  20116. Ģ: "G",
  20117. ĝ: "g",
  20118. ğ: "g",
  20119. ġ: "g",
  20120. ģ: "g",
  20121. Ĥ: "H",
  20122. Ħ: "H",
  20123. ĥ: "h",
  20124. ħ: "h",
  20125. Ĩ: "I",
  20126. Ī: "I",
  20127. Ĭ: "I",
  20128. Į: "I",
  20129. İ: "I",
  20130. ĩ: "i",
  20131. ī: "i",
  20132. ĭ: "i",
  20133. į: "i",
  20134. ı: "i",
  20135. Ĵ: "J",
  20136. ĵ: "j",
  20137. Ķ: "K",
  20138. ķ: "k",
  20139. ĸ: "k",
  20140. Ĺ: "L",
  20141. Ļ: "L",
  20142. Ľ: "L",
  20143. Ŀ: "L",
  20144. Ł: "L",
  20145. ĺ: "l",
  20146. ļ: "l",
  20147. ľ: "l",
  20148. ŀ: "l",
  20149. ł: "l",
  20150. Ń: "N",
  20151. Ņ: "N",
  20152. Ň: "N",
  20153. Ŋ: "N",
  20154. ń: "n",
  20155. ņ: "n",
  20156. ň: "n",
  20157. ŋ: "n",
  20158. Ō: "O",
  20159. Ŏ: "O",
  20160. Ő: "O",
  20161. ō: "o",
  20162. ŏ: "o",
  20163. ő: "o",
  20164. Ŕ: "R",
  20165. Ŗ: "R",
  20166. Ř: "R",
  20167. ŕ: "r",
  20168. ŗ: "r",
  20169. ř: "r",
  20170. Ś: "S",
  20171. Ŝ: "S",
  20172. Ş: "S",
  20173. Š: "S",
  20174. ś: "s",
  20175. ŝ: "s",
  20176. ş: "s",
  20177. š: "s",
  20178. Ţ: "T",
  20179. Ť: "T",
  20180. Ŧ: "T",
  20181. ţ: "t",
  20182. ť: "t",
  20183. ŧ: "t",
  20184. Ũ: "U",
  20185. Ū: "U",
  20186. Ŭ: "U",
  20187. Ů: "U",
  20188. Ű: "U",
  20189. Ų: "U",
  20190. ũ: "u",
  20191. ū: "u",
  20192. ŭ: "u",
  20193. ů: "u",
  20194. ű: "u",
  20195. ų: "u",
  20196. Ŵ: "W",
  20197. ŵ: "w",
  20198. Ŷ: "Y",
  20199. ŷ: "y",
  20200. Ÿ: "Y",
  20201. Ź: "Z",
  20202. Ż: "Z",
  20203. Ž: "Z",
  20204. ź: "z",
  20205. ż: "z",
  20206. ž: "z",
  20207. IJ: "IJ",
  20208. ij: "ij",
  20209. Œ: "Oe",
  20210. œ: "oe",
  20211. ʼn: "'n",
  20212. ſ: "s"
  20213. }, Wd = {
  20214. "&": "&amp;",
  20215. "<": "&lt;",
  20216. ">": "&gt;",
  20217. '"': "&quot;",
  20218. "'": "&#39;"
  20219. }, zd = {
  20220. "&amp;": "&",
  20221. "&lt;": "<",
  20222. "&gt;": ">",
  20223. "&quot;": '"',
  20224. "&#39;": "'"
  20225. }, Yd = {
  20226. "\\": "\\",
  20227. "'": "'",
  20228. "\n": "n",
  20229. "\r": "r",
  20230. "\u2028": "u2028",
  20231. "\u2029": "u2029"
  20232. }, Xd = parseFloat, Gd = parseInt, dl = typeof Hr == "object" && Hr && Hr.Object === Object && Hr, Hd = typeof self == "object" && self && self.Object === Object && self, Fe = dl || Hd || Function("return this")(), $s = g && !g.nodeType && g, Ir = $s && !0 && r && !r.nodeType && r, fl = Ir && Ir.exports === $s, Zs = fl && dl.process, xi = function() {
  20233. try {
  20234. var wt = Ir && Ir.require && Ir.require("util").types;
  20235. return wt || Zs && Zs.binding && Zs.binding("util");
  20236. } catch {
  20237. }
  20238. }(), gl = xi && xi.isArrayBuffer, ml = xi && xi.isDate, yl = xi && xi.isMap, vl = xi && xi.isRegExp, xl = xi && xi.isSet, bl = xi && xi.isTypedArray;
  20239. function ci(wt, Ot, At) {
  20240. switch (At.length) {
  20241. case 0:
  20242. return wt.call(Ot);
  20243. case 1:
  20244. return wt.call(Ot, At[0]);
  20245. case 2:
  20246. return wt.call(Ot, At[0], At[1]);
  20247. case 3:
  20248. return wt.call(Ot, At[0], At[1], At[2]);
  20249. }
  20250. return wt.apply(Ot, At);
  20251. }
  20252. function Ud(wt, Ot, At, Ht) {
  20253. for (var ie = -1, ve = wt == null ? 0 : wt.length; ++ie < ve; ) {
  20254. var ze = wt[ie];
  20255. Ot(Ht, ze, At(ze), wt);
  20256. }
  20257. return Ht;
  20258. }
  20259. function bi(wt, Ot) {
  20260. for (var At = -1, Ht = wt == null ? 0 : wt.length; ++At < Ht && Ot(wt[At], At, wt) !== !1; )
  20261. ;
  20262. return wt;
  20263. }
  20264. function Fd(wt, Ot) {
  20265. for (var At = wt == null ? 0 : wt.length; At-- && Ot(wt[At], At, wt) !== !1; )
  20266. ;
  20267. return wt;
  20268. }
  20269. function Sl(wt, Ot) {
  20270. for (var At = -1, Ht = wt == null ? 0 : wt.length; ++At < Ht; )
  20271. if (!Ot(wt[At], At, wt))
  20272. return !1;
  20273. return !0;
  20274. }
  20275. function mr(wt, Ot) {
  20276. for (var At = -1, Ht = wt == null ? 0 : wt.length, ie = 0, ve = []; ++At < Ht; ) {
  20277. var ze = wt[At];
  20278. Ot(ze, At, wt) && (ve[ie++] = ze);
  20279. }
  20280. return ve;
  20281. }
  20282. function yo(wt, Ot) {
  20283. var At = wt == null ? 0 : wt.length;
  20284. return !!At && qr(wt, Ot, 0) > -1;
  20285. }
  20286. function Ks(wt, Ot, At) {
  20287. for (var Ht = -1, ie = wt == null ? 0 : wt.length; ++Ht < ie; )
  20288. if (At(Ot, wt[Ht]))
  20289. return !0;
  20290. return !1;
  20291. }
  20292. function Ee(wt, Ot) {
  20293. for (var At = -1, Ht = wt == null ? 0 : wt.length, ie = Array(Ht); ++At < Ht; )
  20294. ie[At] = Ot(wt[At], At, wt);
  20295. return ie;
  20296. }
  20297. function yr(wt, Ot) {
  20298. for (var At = -1, Ht = Ot.length, ie = wt.length; ++At < Ht; )
  20299. wt[ie + At] = Ot[At];
  20300. return wt;
  20301. }
  20302. function Js(wt, Ot, At, Ht) {
  20303. var ie = -1, ve = wt == null ? 0 : wt.length;
  20304. for (Ht && ve && (At = wt[++ie]); ++ie < ve; )
  20305. At = Ot(At, wt[ie], ie, wt);
  20306. return At;
  20307. }
  20308. function Vd(wt, Ot, At, Ht) {
  20309. var ie = wt == null ? 0 : wt.length;
  20310. for (Ht && ie && (At = wt[--ie]); ie--; )
  20311. At = Ot(At, wt[ie], ie, wt);
  20312. return At;
  20313. }
  20314. function qs(wt, Ot) {
  20315. for (var At = -1, Ht = wt == null ? 0 : wt.length; ++At < Ht; )
  20316. if (Ot(wt[At], At, wt))
  20317. return !0;
  20318. return !1;
  20319. }
  20320. var $d = Qs("length");
  20321. function Zd(wt) {
  20322. return wt.split("");
  20323. }
  20324. function Kd(wt) {
  20325. return wt.match(uo) || [];
  20326. }
  20327. function wl(wt, Ot, At) {
  20328. var Ht;
  20329. return At(wt, function(ie, ve, ze) {
  20330. if (Ot(ie, ve, ze))
  20331. return Ht = ve, !1;
  20332. }), Ht;
  20333. }
  20334. function vo(wt, Ot, At, Ht) {
  20335. for (var ie = wt.length, ve = At + (Ht ? 1 : -1); Ht ? ve-- : ++ve < ie; )
  20336. if (Ot(wt[ve], ve, wt))
  20337. return ve;
  20338. return -1;
  20339. }
  20340. function qr(wt, Ot, At) {
  20341. return Ot === Ot ? lf(wt, Ot, At) : vo(wt, Ml, At);
  20342. }
  20343. function Jd(wt, Ot, At, Ht) {
  20344. for (var ie = At - 1, ve = wt.length; ++ie < ve; )
  20345. if (Ht(wt[ie], Ot))
  20346. return ie;
  20347. return -1;
  20348. }
  20349. function Ml(wt) {
  20350. return wt !== wt;
  20351. }
  20352. function Cl(wt, Ot) {
  20353. var At = wt == null ? 0 : wt.length;
  20354. return At ? ea(wt, Ot) / At : j;
  20355. }
  20356. function Qs(wt) {
  20357. return function(Ot) {
  20358. return Ot == null ? E : Ot[wt];
  20359. };
  20360. }
  20361. function ta(wt) {
  20362. return function(Ot) {
  20363. return wt == null ? E : wt[Ot];
  20364. };
  20365. }
  20366. function kl(wt, Ot, At, Ht, ie) {
  20367. return ie(wt, function(ve, ze, Ce) {
  20368. At = Ht ? (Ht = !1, ve) : Ot(At, ve, ze, Ce);
  20369. }), At;
  20370. }
  20371. function qd(wt, Ot) {
  20372. var At = wt.length;
  20373. for (wt.sort(Ot); At--; )
  20374. wt[At] = wt[At].value;
  20375. return wt;
  20376. }
  20377. function ea(wt, Ot) {
  20378. for (var At, Ht = -1, ie = wt.length; ++Ht < ie; ) {
  20379. var ve = Ot(wt[Ht]);
  20380. ve !== E && (At = At === E ? ve : At + ve);
  20381. }
  20382. return At;
  20383. }
  20384. function ia(wt, Ot) {
  20385. for (var At = -1, Ht = Array(wt); ++At < wt; )
  20386. Ht[At] = Ot(At);
  20387. return Ht;
  20388. }
  20389. function Qd(wt, Ot) {
  20390. return Ee(Ot, function(At) {
  20391. return [At, wt[At]];
  20392. });
  20393. }
  20394. function Al(wt) {
  20395. return wt && wt.slice(0, Ol(wt) + 1).replace(Zr, "");
  20396. }
  20397. function pi(wt) {
  20398. return function(Ot) {
  20399. return wt(Ot);
  20400. };
  20401. }
  20402. function ra(wt, Ot) {
  20403. return Ee(Ot, function(At) {
  20404. return wt[At];
  20405. });
  20406. }
  20407. function Dn(wt, Ot) {
  20408. return wt.has(Ot);
  20409. }
  20410. function Tl(wt, Ot) {
  20411. for (var At = -1, Ht = wt.length; ++At < Ht && qr(Ot, wt[At], 0) > -1; )
  20412. ;
  20413. return At;
  20414. }
  20415. function Pl(wt, Ot) {
  20416. for (var At = wt.length; At-- && qr(Ot, wt[At], 0) > -1; )
  20417. ;
  20418. return At;
  20419. }
  20420. function tf(wt, Ot) {
  20421. for (var At = wt.length, Ht = 0; At--; )
  20422. wt[At] === Ot && ++Ht;
  20423. return Ht;
  20424. }
  20425. var ef = ta(jd), rf = ta(Wd);
  20426. function nf(wt) {
  20427. return "\\" + Yd[wt];
  20428. }
  20429. function of(wt, Ot) {
  20430. return wt == null ? E : wt[Ot];
  20431. }
  20432. function Qr(wt) {
  20433. return Id.test(wt);
  20434. }
  20435. function sf(wt) {
  20436. return Rd.test(wt);
  20437. }
  20438. function af(wt) {
  20439. for (var Ot, At = []; !(Ot = wt.next()).done; )
  20440. At.push(Ot.value);
  20441. return At;
  20442. }
  20443. function na(wt) {
  20444. var Ot = -1, At = Array(wt.size);
  20445. return wt.forEach(function(Ht, ie) {
  20446. At[++Ot] = [ie, Ht];
  20447. }), At;
  20448. }
  20449. function El(wt, Ot) {
  20450. return function(At) {
  20451. return wt(Ot(At));
  20452. };
  20453. }
  20454. function vr(wt, Ot) {
  20455. for (var At = -1, Ht = wt.length, ie = 0, ve = []; ++At < Ht; ) {
  20456. var ze = wt[At];
  20457. (ze === Ot || ze === U) && (wt[At] = U, ve[ie++] = At);
  20458. }
  20459. return ve;
  20460. }
  20461. function xo(wt) {
  20462. var Ot = -1, At = Array(wt.size);
  20463. return wt.forEach(function(Ht) {
  20464. At[++Ot] = Ht;
  20465. }), At;
  20466. }
  20467. function hf(wt) {
  20468. var Ot = -1, At = Array(wt.size);
  20469. return wt.forEach(function(Ht) {
  20470. At[++Ot] = [Ht, Ht];
  20471. }), At;
  20472. }
  20473. function lf(wt, Ot, At) {
  20474. for (var Ht = At - 1, ie = wt.length; ++Ht < ie; )
  20475. if (wt[Ht] === Ot)
  20476. return Ht;
  20477. return -1;
  20478. }
  20479. function cf(wt, Ot, At) {
  20480. for (var Ht = At + 1; Ht--; )
  20481. if (wt[Ht] === Ot)
  20482. return Ht;
  20483. return Ht;
  20484. }
  20485. function tn(wt) {
  20486. return Qr(wt) ? uf(wt) : $d(wt);
  20487. }
  20488. function Li(wt) {
  20489. return Qr(wt) ? df(wt) : Zd(wt);
  20490. }
  20491. function Ol(wt) {
  20492. for (var Ot = wt.length; Ot-- && po.test(wt.charAt(Ot)); )
  20493. ;
  20494. return Ot;
  20495. }
  20496. var pf = ta(zd);
  20497. function uf(wt) {
  20498. for (var Ot = Vs.lastIndex = 0; Vs.test(wt); )
  20499. ++Ot;
  20500. return Ot;
  20501. }
  20502. function df(wt) {
  20503. return wt.match(Vs) || [];
  20504. }
  20505. function ff(wt) {
  20506. return wt.match(Dd) || [];
  20507. }
  20508. var gf = function wt(Ot) {
  20509. Ot = Ot == null ? Fe : en.defaults(Fe.Object(), Ot, en.pick(Fe, Nd));
  20510. var At = Ot.Array, Ht = Ot.Date, ie = Ot.Error, ve = Ot.Function, ze = Ot.Math, Ce = Ot.Object, oa = Ot.RegExp, mf = Ot.String, Si = Ot.TypeError, bo = At.prototype, yf = ve.prototype, rn = Ce.prototype, So = Ot["__core-js_shared__"], wo = yf.toString, Se = rn.hasOwnProperty, vf = 0, Ll = function() {
  20511. var e = /[^.]+$/.exec(So && So.keys && So.keys.IE_PROTO || "");
  20512. return e ? "Symbol(src)_1." + e : "";
  20513. }(), Mo = rn.toString, xf = wo.call(Ce), bf = Fe._, Sf = oa(
  20514. "^" + wo.call(Se).replace(On, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  20515. ), Co = fl ? Ot.Buffer : E, xr = Ot.Symbol, ko = Ot.Uint8Array, _l = Co ? Co.allocUnsafe : E, Ao = El(Ce.getPrototypeOf, Ce), Dl = Ce.create, Il = rn.propertyIsEnumerable, To = bo.splice, Rl = xr ? xr.isConcatSpreadable : E, In = xr ? xr.iterator : E, Rr = xr ? xr.toStringTag : E, Po = function() {
  20516. try {
  20517. var e = zr(Ce, "defineProperty");
  20518. return e({}, "", {}), e;
  20519. } catch {
  20520. }
  20521. }(), wf = Ot.clearTimeout !== Fe.clearTimeout && Ot.clearTimeout, Mf = Ht && Ht.now !== Fe.Date.now && Ht.now, Cf = Ot.setTimeout !== Fe.setTimeout && Ot.setTimeout, Eo = ze.ceil, Oo = ze.floor, sa = Ce.getOwnPropertySymbols, kf = Co ? Co.isBuffer : E, Nl = Ot.isFinite, Af = bo.join, Tf = El(Ce.keys, Ce), Ye = ze.max, Ze = ze.min, Pf = Ht.now, Ef = Ot.parseInt, Bl = ze.random, Of = bo.reverse, aa = zr(Ot, "DataView"), Rn = zr(Ot, "Map"), ha = zr(Ot, "Promise"), nn = zr(Ot, "Set"), Nn = zr(Ot, "WeakMap"), Bn = zr(Ce, "create"), Lo = Nn && new Nn(), on = {}, Lf = Yr(aa), _f = Yr(Rn), Df = Yr(ha), If = Yr(nn), Rf = Yr(Nn), _o = xr ? xr.prototype : E, jn = _o ? _o.valueOf : E, jl = _o ? _o.toString : E;
  20522. function ft(e) {
  20523. if (Ie(e) && !re(e) && !(e instanceof ce)) {
  20524. if (e instanceof wi)
  20525. return e;
  20526. if (Se.call(e, "__wrapped__"))
  20527. return Wc(e);
  20528. }
  20529. return new wi(e);
  20530. }
  20531. var sn = function() {
  20532. function e() {
  20533. }
  20534. return function(S) {
  20535. if (!_e(S))
  20536. return {};
  20537. if (Dl)
  20538. return Dl(S);
  20539. e.prototype = S;
  20540. var K = new e();
  20541. return e.prototype = E, K;
  20542. };
  20543. }();
  20544. function Do() {
  20545. }
  20546. function wi(e, S) {
  20547. this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!S, this.__index__ = 0, this.__values__ = E;
  20548. }
  20549. ft.templateSettings = {
  20550. /**
  20551. * Used to detect `data` property values to be HTML-escaped.
  20552. *
  20553. * @memberOf _.templateSettings
  20554. * @type {RegExp}
  20555. */
  20556. escape: Me,
  20557. /**
  20558. * Used to detect code to be evaluated.
  20559. *
  20560. * @memberOf _.templateSettings
  20561. * @type {RegExp}
  20562. */
  20563. evaluate: Lr,
  20564. /**
  20565. * Used to detect `data` property values to inject.
  20566. *
  20567. * @memberOf _.templateSettings
  20568. * @type {RegExp}
  20569. */
  20570. interpolate: co,
  20571. /**
  20572. * Used to reference the data object in the template text.
  20573. *
  20574. * @memberOf _.templateSettings
  20575. * @type {string}
  20576. */
  20577. variable: "",
  20578. /**
  20579. * Used to import variables into the compiled template.
  20580. *
  20581. * @memberOf _.templateSettings
  20582. * @type {Object}
  20583. */
  20584. imports: {
  20585. /**
  20586. * A reference to the `lodash` function.
  20587. *
  20588. * @memberOf _.templateSettings.imports
  20589. * @type {Function}
  20590. */
  20591. _: ft
  20592. }
  20593. }, ft.prototype = Do.prototype, ft.prototype.constructor = ft, wi.prototype = sn(Do.prototype), wi.prototype.constructor = wi;
  20594. function ce(e) {
  20595. this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = T, this.__views__ = [];
  20596. }
  20597. function Nf() {
  20598. var e = new ce(this.__wrapped__);
  20599. 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;
  20600. }
  20601. function Bf() {
  20602. if (this.__filtered__) {
  20603. var e = new ce(this);
  20604. e.__dir__ = -1, e.__filtered__ = !0;
  20605. } else
  20606. e = this.clone(), e.__dir__ *= -1;
  20607. return e;
  20608. }
  20609. function jf() {
  20610. var e = this.__wrapped__.value(), S = this.__dir__, K = re(e), ot = S < 0, ut = K ? e.length : 0, mt = Kg(0, ut, this.__views__), xt = mt.start, bt = mt.end, Mt = bt - xt, Dt = ot ? bt : xt - 1, Rt = this.__iteratees__, Bt = Rt.length, Yt = 0, Ft = Ze(Mt, this.__takeCount__);
  20611. if (!K || !ot && ut == Mt && Ft == Mt)
  20612. return hc(e, this.__actions__);
  20613. var Qt = [];
  20614. t:
  20615. for (; Mt-- && Yt < Ft; ) {
  20616. Dt += S;
  20617. for (var se = -1, te = e[Dt]; ++se < Bt; ) {
  20618. var le = Rt[se], pe = le.iteratee, fi = le.type, ii = pe(te);
  20619. if (fi == n)
  20620. te = ii;
  20621. else if (!ii) {
  20622. if (fi == t)
  20623. continue t;
  20624. break t;
  20625. }
  20626. }
  20627. Qt[Yt++] = te;
  20628. }
  20629. return Qt;
  20630. }
  20631. ce.prototype = sn(Do.prototype), ce.prototype.constructor = ce;
  20632. function Nr(e) {
  20633. var S = -1, K = e == null ? 0 : e.length;
  20634. for (this.clear(); ++S < K; ) {
  20635. var ot = e[S];
  20636. this.set(ot[0], ot[1]);
  20637. }
  20638. }
  20639. function Wf() {
  20640. this.__data__ = Bn ? Bn(null) : {}, this.size = 0;
  20641. }
  20642. function zf(e) {
  20643. var S = this.has(e) && delete this.__data__[e];
  20644. return this.size -= S ? 1 : 0, S;
  20645. }
  20646. function Yf(e) {
  20647. var S = this.__data__;
  20648. if (Bn) {
  20649. var K = S[e];
  20650. return K === H ? E : K;
  20651. }
  20652. return Se.call(S, e) ? S[e] : E;
  20653. }
  20654. function Xf(e) {
  20655. var S = this.__data__;
  20656. return Bn ? S[e] !== E : Se.call(S, e);
  20657. }
  20658. function Gf(e, S) {
  20659. var K = this.__data__;
  20660. return this.size += this.has(e) ? 0 : 1, K[e] = Bn && S === E ? H : S, this;
  20661. }
  20662. Nr.prototype.clear = Wf, Nr.prototype.delete = zf, Nr.prototype.get = Yf, Nr.prototype.has = Xf, Nr.prototype.set = Gf;
  20663. function Ji(e) {
  20664. var S = -1, K = e == null ? 0 : e.length;
  20665. for (this.clear(); ++S < K; ) {
  20666. var ot = e[S];
  20667. this.set(ot[0], ot[1]);
  20668. }
  20669. }
  20670. function Hf() {
  20671. this.__data__ = [], this.size = 0;
  20672. }
  20673. function Uf(e) {
  20674. var S = this.__data__, K = Io(S, e);
  20675. if (K < 0)
  20676. return !1;
  20677. var ot = S.length - 1;
  20678. return K == ot ? S.pop() : To.call(S, K, 1), --this.size, !0;
  20679. }
  20680. function Ff(e) {
  20681. var S = this.__data__, K = Io(S, e);
  20682. return K < 0 ? E : S[K][1];
  20683. }
  20684. function Vf(e) {
  20685. return Io(this.__data__, e) > -1;
  20686. }
  20687. function $f(e, S) {
  20688. var K = this.__data__, ot = Io(K, e);
  20689. return ot < 0 ? (++this.size, K.push([e, S])) : K[ot][1] = S, this;
  20690. }
  20691. Ji.prototype.clear = Hf, Ji.prototype.delete = Uf, Ji.prototype.get = Ff, Ji.prototype.has = Vf, Ji.prototype.set = $f;
  20692. function qi(e) {
  20693. var S = -1, K = e == null ? 0 : e.length;
  20694. for (this.clear(); ++S < K; ) {
  20695. var ot = e[S];
  20696. this.set(ot[0], ot[1]);
  20697. }
  20698. }
  20699. function Zf() {
  20700. this.size = 0, this.__data__ = {
  20701. hash: new Nr(),
  20702. map: new (Rn || Ji)(),
  20703. string: new Nr()
  20704. };
  20705. }
  20706. function Kf(e) {
  20707. var S = Fo(this, e).delete(e);
  20708. return this.size -= S ? 1 : 0, S;
  20709. }
  20710. function Jf(e) {
  20711. return Fo(this, e).get(e);
  20712. }
  20713. function qf(e) {
  20714. return Fo(this, e).has(e);
  20715. }
  20716. function Qf(e, S) {
  20717. var K = Fo(this, e), ot = K.size;
  20718. return K.set(e, S), this.size += K.size == ot ? 0 : 1, this;
  20719. }
  20720. qi.prototype.clear = Zf, qi.prototype.delete = Kf, qi.prototype.get = Jf, qi.prototype.has = qf, qi.prototype.set = Qf;
  20721. function Br(e) {
  20722. var S = -1, K = e == null ? 0 : e.length;
  20723. for (this.__data__ = new qi(); ++S < K; )
  20724. this.add(e[S]);
  20725. }
  20726. function tg(e) {
  20727. return this.__data__.set(e, H), this;
  20728. }
  20729. function eg(e) {
  20730. return this.__data__.has(e);
  20731. }
  20732. Br.prototype.add = Br.prototype.push = tg, Br.prototype.has = eg;
  20733. function _i(e) {
  20734. var S = this.__data__ = new Ji(e);
  20735. this.size = S.size;
  20736. }
  20737. function ig() {
  20738. this.__data__ = new Ji(), this.size = 0;
  20739. }
  20740. function rg(e) {
  20741. var S = this.__data__, K = S.delete(e);
  20742. return this.size = S.size, K;
  20743. }
  20744. function ng(e) {
  20745. return this.__data__.get(e);
  20746. }
  20747. function og(e) {
  20748. return this.__data__.has(e);
  20749. }
  20750. function sg(e, S) {
  20751. var K = this.__data__;
  20752. if (K instanceof Ji) {
  20753. var ot = K.__data__;
  20754. if (!Rn || ot.length < y - 1)
  20755. return ot.push([e, S]), this.size = ++K.size, this;
  20756. K = this.__data__ = new qi(ot);
  20757. }
  20758. return K.set(e, S), this.size = K.size, this;
  20759. }
  20760. _i.prototype.clear = ig, _i.prototype.delete = rg, _i.prototype.get = ng, _i.prototype.has = og, _i.prototype.set = sg;
  20761. function Wl(e, S) {
  20762. var K = re(e), ot = !K && Xr(e), ut = !K && !ot && Cr(e), mt = !K && !ot && !ut && cn(e), xt = K || ot || ut || mt, bt = xt ? ia(e.length, mf) : [], Mt = bt.length;
  20763. for (var Dt in e)
  20764. (S || Se.call(e, Dt)) && !(xt && // Safari 9 has enumerable `arguments.length` in strict mode.
  20765. (Dt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  20766. ut && (Dt == "offset" || Dt == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  20767. mt && (Dt == "buffer" || Dt == "byteLength" || Dt == "byteOffset") || // Skip index properties.
  20768. ir(Dt, Mt))) && bt.push(Dt);
  20769. return bt;
  20770. }
  20771. function zl(e) {
  20772. var S = e.length;
  20773. return S ? e[xa(0, S - 1)] : E;
  20774. }
  20775. function ag(e, S) {
  20776. return Vo(oi(e), jr(S, 0, e.length));
  20777. }
  20778. function hg(e) {
  20779. return Vo(oi(e));
  20780. }
  20781. function la(e, S, K) {
  20782. (K !== E && !Di(e[S], K) || K === E && !(S in e)) && Qi(e, S, K);
  20783. }
  20784. function Wn(e, S, K) {
  20785. var ot = e[S];
  20786. (!(Se.call(e, S) && Di(ot, K)) || K === E && !(S in e)) && Qi(e, S, K);
  20787. }
  20788. function Io(e, S) {
  20789. for (var K = e.length; K--; )
  20790. if (Di(e[K][0], S))
  20791. return K;
  20792. return -1;
  20793. }
  20794. function lg(e, S, K, ot) {
  20795. return br(e, function(ut, mt, xt) {
  20796. S(ot, ut, K(ut), xt);
  20797. }), ot;
  20798. }
  20799. function Yl(e, S) {
  20800. return e && Xi(S, Ue(S), e);
  20801. }
  20802. function cg(e, S) {
  20803. return e && Xi(S, ai(S), e);
  20804. }
  20805. function Qi(e, S, K) {
  20806. S == "__proto__" && Po ? Po(e, S, {
  20807. configurable: !0,
  20808. enumerable: !0,
  20809. value: K,
  20810. writable: !0
  20811. }) : e[S] = K;
  20812. }
  20813. function ca(e, S) {
  20814. for (var K = -1, ot = S.length, ut = At(ot), mt = e == null; ++K < ot; )
  20815. ut[K] = mt ? E : Ha(e, S[K]);
  20816. return ut;
  20817. }
  20818. function jr(e, S, K) {
  20819. return e === e && (K !== E && (e = e <= K ? e : K), S !== E && (e = e >= S ? e : S)), e;
  20820. }
  20821. function Mi(e, S, K, ot, ut, mt) {
  20822. var xt, bt = S & W, Mt = S & N, Dt = S & w;
  20823. if (K && (xt = ut ? K(e, ot, ut, mt) : K(e)), xt !== E)
  20824. return xt;
  20825. if (!_e(e))
  20826. return e;
  20827. var Rt = re(e);
  20828. if (Rt) {
  20829. if (xt = qg(e), !bt)
  20830. return oi(e, xt);
  20831. } else {
  20832. var Bt = Ke(e), Yt = Bt == V || Bt == q;
  20833. if (Cr(e))
  20834. return pc(e, bt);
  20835. if (Bt == rt || Bt == L || Yt && !ut) {
  20836. if (xt = Mt || Yt ? {} : Oc(e), !bt)
  20837. return Mt ? Yg(e, cg(xt, e)) : zg(e, Yl(xt, e));
  20838. } else {
  20839. if (!ke[Bt])
  20840. return ut ? e : {};
  20841. xt = Qg(e, Bt, bt);
  20842. }
  20843. }
  20844. mt || (mt = new _i());
  20845. var Ft = mt.get(e);
  20846. if (Ft)
  20847. return Ft;
  20848. mt.set(e, xt), op(e) ? e.forEach(function(te) {
  20849. xt.add(Mi(te, S, K, te, e, mt));
  20850. }) : rp(e) && e.forEach(function(te, le) {
  20851. xt.set(le, Mi(te, S, K, le, e, mt));
  20852. });
  20853. var Qt = Dt ? Mt ? Oa : Ea : Mt ? ai : Ue, se = Rt ? E : Qt(e);
  20854. return bi(se || e, function(te, le) {
  20855. se && (le = te, te = e[le]), Wn(xt, le, Mi(te, S, K, le, e, mt));
  20856. }), xt;
  20857. }
  20858. function pg(e) {
  20859. var S = Ue(e);
  20860. return function(K) {
  20861. return Xl(K, e, S);
  20862. };
  20863. }
  20864. function Xl(e, S, K) {
  20865. var ot = K.length;
  20866. if (e == null)
  20867. return !ot;
  20868. for (e = Ce(e); ot--; ) {
  20869. var ut = K[ot], mt = S[ut], xt = e[ut];
  20870. if (xt === E && !(ut in e) || !mt(xt))
  20871. return !1;
  20872. }
  20873. return !0;
  20874. }
  20875. function Gl(e, S, K) {
  20876. if (typeof e != "function")
  20877. throw new Si(I);
  20878. return Fn(function() {
  20879. e.apply(E, K);
  20880. }, S);
  20881. }
  20882. function zn(e, S, K, ot) {
  20883. var ut = -1, mt = yo, xt = !0, bt = e.length, Mt = [], Dt = S.length;
  20884. if (!bt)
  20885. return Mt;
  20886. K && (S = Ee(S, pi(K))), ot ? (mt = Ks, xt = !1) : S.length >= y && (mt = Dn, xt = !1, S = new Br(S));
  20887. t:
  20888. for (; ++ut < bt; ) {
  20889. var Rt = e[ut], Bt = K == null ? Rt : K(Rt);
  20890. if (Rt = ot || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  20891. for (var Yt = Dt; Yt--; )
  20892. if (S[Yt] === Bt)
  20893. continue t;
  20894. Mt.push(Rt);
  20895. } else
  20896. mt(S, Bt, ot) || Mt.push(Rt);
  20897. }
  20898. return Mt;
  20899. }
  20900. var br = mc(Yi), Hl = mc(ua, !0);
  20901. function ug(e, S) {
  20902. var K = !0;
  20903. return br(e, function(ot, ut, mt) {
  20904. return K = !!S(ot, ut, mt), K;
  20905. }), K;
  20906. }
  20907. function Ro(e, S, K) {
  20908. for (var ot = -1, ut = e.length; ++ot < ut; ) {
  20909. var mt = e[ot], xt = S(mt);
  20910. if (xt != null && (bt === E ? xt === xt && !di(xt) : K(xt, bt)))
  20911. var bt = xt, Mt = mt;
  20912. }
  20913. return Mt;
  20914. }
  20915. function dg(e, S, K, ot) {
  20916. var ut = e.length;
  20917. 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 : ap(ot); K < ot; )
  20918. e[K++] = S;
  20919. return e;
  20920. }
  20921. function Ul(e, S) {
  20922. var K = [];
  20923. return br(e, function(ot, ut, mt) {
  20924. S(ot, ut, mt) && K.push(ot);
  20925. }), K;
  20926. }
  20927. function Ve(e, S, K, ot, ut) {
  20928. var mt = -1, xt = e.length;
  20929. for (K || (K = em), ut || (ut = []); ++mt < xt; ) {
  20930. var bt = e[mt];
  20931. S > 0 && K(bt) ? S > 1 ? Ve(bt, S - 1, K, ot, ut) : yr(ut, bt) : ot || (ut[ut.length] = bt);
  20932. }
  20933. return ut;
  20934. }
  20935. var pa = yc(), Fl = yc(!0);
  20936. function Yi(e, S) {
  20937. return e && pa(e, S, Ue);
  20938. }
  20939. function ua(e, S) {
  20940. return e && Fl(e, S, Ue);
  20941. }
  20942. function No(e, S) {
  20943. return mr(S, function(K) {
  20944. return rr(e[K]);
  20945. });
  20946. }
  20947. function Wr(e, S) {
  20948. S = wr(S, e);
  20949. for (var K = 0, ot = S.length; e != null && K < ot; )
  20950. e = e[Gi(S[K++])];
  20951. return K && K == ot ? e : E;
  20952. }
  20953. function Vl(e, S, K) {
  20954. var ot = S(e);
  20955. return re(e) ? ot : yr(ot, K(e));
  20956. }
  20957. function ti(e) {
  20958. return e == null ? e === E ? tt : nt : Rr && Rr in Ce(e) ? Zg(e) : hm(e);
  20959. }
  20960. function da(e, S) {
  20961. return e > S;
  20962. }
  20963. function fg(e, S) {
  20964. return e != null && Se.call(e, S);
  20965. }
  20966. function gg(e, S) {
  20967. return e != null && S in Ce(e);
  20968. }
  20969. function mg(e, S, K) {
  20970. return e >= Ze(S, K) && e < Ye(S, K);
  20971. }
  20972. function fa(e, S, K) {
  20973. for (var ot = K ? Ks : yo, ut = e[0].length, mt = e.length, xt = mt, bt = At(mt), Mt = 1 / 0, Dt = []; xt--; ) {
  20974. var Rt = e[xt];
  20975. xt && S && (Rt = Ee(Rt, pi(S))), Mt = Ze(Rt.length, Mt), bt[xt] = !K && (S || ut >= 120 && Rt.length >= 120) ? new Br(xt && Rt) : E;
  20976. }
  20977. Rt = e[0];
  20978. var Bt = -1, Yt = bt[0];
  20979. t:
  20980. for (; ++Bt < ut && Dt.length < Mt; ) {
  20981. var Ft = Rt[Bt], Qt = S ? S(Ft) : Ft;
  20982. if (Ft = K || Ft !== 0 ? Ft : 0, !(Yt ? Dn(Yt, Qt) : ot(Dt, Qt, K))) {
  20983. for (xt = mt; --xt; ) {
  20984. var se = bt[xt];
  20985. if (!(se ? Dn(se, Qt) : ot(e[xt], Qt, K)))
  20986. continue t;
  20987. }
  20988. Yt && Yt.push(Qt), Dt.push(Ft);
  20989. }
  20990. }
  20991. return Dt;
  20992. }
  20993. function yg(e, S, K, ot) {
  20994. return Yi(e, function(ut, mt, xt) {
  20995. S(ot, K(ut), mt, xt);
  20996. }), ot;
  20997. }
  20998. function Yn(e, S, K) {
  20999. S = wr(S, e), e = Ic(e, S);
  21000. var ot = e == null ? e : e[Gi(ki(S))];
  21001. return ot == null ? E : ci(ot, e, K);
  21002. }
  21003. function $l(e) {
  21004. return Ie(e) && ti(e) == L;
  21005. }
  21006. function vg(e) {
  21007. return Ie(e) && ti(e) == pt;
  21008. }
  21009. function xg(e) {
  21010. return Ie(e) && ti(e) == k;
  21011. }
  21012. function Xn(e, S, K, ot, ut) {
  21013. return e === S ? !0 : e == null || S == null || !Ie(e) && !Ie(S) ? e !== e && S !== S : bg(e, S, K, ot, Xn, ut);
  21014. }
  21015. function bg(e, S, K, ot, ut, mt) {
  21016. var xt = re(e), bt = re(S), Mt = xt ? Y : Ke(e), Dt = bt ? Y : Ke(S);
  21017. Mt = Mt == L ? rt : Mt, Dt = Dt == L ? rt : Dt;
  21018. var Rt = Mt == rt, Bt = Dt == rt, Yt = Mt == Dt;
  21019. if (Yt && Cr(e)) {
  21020. if (!Cr(S))
  21021. return !1;
  21022. xt = !0, Rt = !1;
  21023. }
  21024. if (Yt && !Rt)
  21025. return mt || (mt = new _i()), xt || cn(e) ? Tc(e, S, K, ot, ut, mt) : Vg(e, S, Mt, K, ot, ut, mt);
  21026. if (!(K & v)) {
  21027. var Ft = Rt && Se.call(e, "__wrapped__"), Qt = Bt && Se.call(S, "__wrapped__");
  21028. if (Ft || Qt) {
  21029. var se = Ft ? e.value() : e, te = Qt ? S.value() : S;
  21030. return mt || (mt = new _i()), ut(se, te, K, ot, mt);
  21031. }
  21032. }
  21033. return Yt ? (mt || (mt = new _i()), $g(e, S, K, ot, ut, mt)) : !1;
  21034. }
  21035. function Sg(e) {
  21036. return Ie(e) && Ke(e) == it;
  21037. }
  21038. function ga(e, S, K, ot) {
  21039. var ut = K.length, mt = ut, xt = !ot;
  21040. if (e == null)
  21041. return !mt;
  21042. for (e = Ce(e); ut--; ) {
  21043. var bt = K[ut];
  21044. if (xt && bt[2] ? bt[1] !== e[bt[0]] : !(bt[0] in e))
  21045. return !1;
  21046. }
  21047. for (; ++ut < mt; ) {
  21048. bt = K[ut];
  21049. var Mt = bt[0], Dt = e[Mt], Rt = bt[1];
  21050. if (xt && bt[2]) {
  21051. if (Dt === E && !(Mt in e))
  21052. return !1;
  21053. } else {
  21054. var Bt = new _i();
  21055. if (ot)
  21056. var Yt = ot(Dt, Rt, Mt, e, S, Bt);
  21057. if (!(Yt === E ? Xn(Rt, Dt, v | u, ot, Bt) : Yt))
  21058. return !1;
  21059. }
  21060. }
  21061. return !0;
  21062. }
  21063. function Zl(e) {
  21064. if (!_e(e) || rm(e))
  21065. return !1;
  21066. var S = rr(e) ? Sf : Le;
  21067. return S.test(Yr(e));
  21068. }
  21069. function wg(e) {
  21070. return Ie(e) && ti(e) == dt;
  21071. }
  21072. function Mg(e) {
  21073. return Ie(e) && Ke(e) == lt;
  21074. }
  21075. function Cg(e) {
  21076. return Ie(e) && Qo(e.length) && !!Ae[ti(e)];
  21077. }
  21078. function Kl(e) {
  21079. return typeof e == "function" ? e : e == null ? hi : typeof e == "object" ? re(e) ? Ql(e[0], e[1]) : ql(e) : vp(e);
  21080. }
  21081. function ma(e) {
  21082. if (!Un(e))
  21083. return Tf(e);
  21084. var S = [];
  21085. for (var K in Ce(e))
  21086. Se.call(e, K) && K != "constructor" && S.push(K);
  21087. return S;
  21088. }
  21089. function kg(e) {
  21090. if (!_e(e))
  21091. return am(e);
  21092. var S = Un(e), K = [];
  21093. for (var ot in e)
  21094. ot == "constructor" && (S || !Se.call(e, ot)) || K.push(ot);
  21095. return K;
  21096. }
  21097. function ya(e, S) {
  21098. return e < S;
  21099. }
  21100. function Jl(e, S) {
  21101. var K = -1, ot = si(e) ? At(e.length) : [];
  21102. return br(e, function(ut, mt, xt) {
  21103. ot[++K] = S(ut, mt, xt);
  21104. }), ot;
  21105. }
  21106. function ql(e) {
  21107. var S = _a(e);
  21108. return S.length == 1 && S[0][2] ? _c(S[0][0], S[0][1]) : function(K) {
  21109. return K === e || ga(K, e, S);
  21110. };
  21111. }
  21112. function Ql(e, S) {
  21113. return Ia(e) && Lc(S) ? _c(Gi(e), S) : function(K) {
  21114. var ot = Ha(K, e);
  21115. return ot === E && ot === S ? Ua(K, e) : Xn(S, ot, v | u);
  21116. };
  21117. }
  21118. function Bo(e, S, K, ot, ut) {
  21119. e !== S && pa(S, function(mt, xt) {
  21120. if (ut || (ut = new _i()), _e(mt))
  21121. Ag(e, S, xt, K, Bo, ot, ut);
  21122. else {
  21123. var bt = ot ? ot(Na(e, xt), mt, xt + "", e, S, ut) : E;
  21124. bt === E && (bt = mt), la(e, xt, bt);
  21125. }
  21126. }, ai);
  21127. }
  21128. function Ag(e, S, K, ot, ut, mt, xt) {
  21129. var bt = Na(e, K), Mt = Na(S, K), Dt = xt.get(Mt);
  21130. if (Dt) {
  21131. la(e, K, Dt);
  21132. return;
  21133. }
  21134. var Rt = mt ? mt(bt, Mt, K + "", e, S, xt) : E, Bt = Rt === E;
  21135. if (Bt) {
  21136. var Yt = re(Mt), Ft = !Yt && Cr(Mt), Qt = !Yt && !Ft && cn(Mt);
  21137. Rt = Mt, Yt || Ft || Qt ? re(bt) ? Rt = bt : Ne(bt) ? Rt = oi(bt) : Ft ? (Bt = !1, Rt = pc(Mt, !0)) : Qt ? (Bt = !1, Rt = uc(Mt, !0)) : Rt = [] : Vn(Mt) || Xr(Mt) ? (Rt = bt, Xr(bt) ? Rt = hp(bt) : (!_e(bt) || rr(bt)) && (Rt = Oc(Mt))) : Bt = !1;
  21138. }
  21139. Bt && (xt.set(Mt, Rt), ut(Rt, Mt, ot, mt, xt), xt.delete(Mt)), la(e, K, Rt);
  21140. }
  21141. function tc(e, S) {
  21142. var K = e.length;
  21143. if (K)
  21144. return S += S < 0 ? K : 0, ir(S, K) ? e[S] : E;
  21145. }
  21146. function ec(e, S, K) {
  21147. S.length ? S = Ee(S, function(mt) {
  21148. return re(mt) ? function(xt) {
  21149. return Wr(xt, mt.length === 1 ? mt[0] : mt);
  21150. } : mt;
  21151. }) : S = [hi];
  21152. var ot = -1;
  21153. S = Ee(S, pi(qt()));
  21154. var ut = Jl(e, function(mt, xt, bt) {
  21155. var Mt = Ee(S, function(Dt) {
  21156. return Dt(mt);
  21157. });
  21158. return { criteria: Mt, index: ++ot, value: mt };
  21159. });
  21160. return qd(ut, function(mt, xt) {
  21161. return Wg(mt, xt, K);
  21162. });
  21163. }
  21164. function Tg(e, S) {
  21165. return ic(e, S, function(K, ot) {
  21166. return Ua(e, ot);
  21167. });
  21168. }
  21169. function ic(e, S, K) {
  21170. for (var ot = -1, ut = S.length, mt = {}; ++ot < ut; ) {
  21171. var xt = S[ot], bt = Wr(e, xt);
  21172. K(bt, xt) && Gn(mt, wr(xt, e), bt);
  21173. }
  21174. return mt;
  21175. }
  21176. function Pg(e) {
  21177. return function(S) {
  21178. return Wr(S, e);
  21179. };
  21180. }
  21181. function va(e, S, K, ot) {
  21182. var ut = ot ? Jd : qr, mt = -1, xt = S.length, bt = e;
  21183. for (e === S && (S = oi(S)), K && (bt = Ee(e, pi(K))); ++mt < xt; )
  21184. for (var Mt = 0, Dt = S[mt], Rt = K ? K(Dt) : Dt; (Mt = ut(bt, Rt, Mt, ot)) > -1; )
  21185. bt !== e && To.call(bt, Mt, 1), To.call(e, Mt, 1);
  21186. return e;
  21187. }
  21188. function rc(e, S) {
  21189. for (var K = e ? S.length : 0, ot = K - 1; K--; ) {
  21190. var ut = S[K];
  21191. if (K == ot || ut !== mt) {
  21192. var mt = ut;
  21193. ir(ut) ? To.call(e, ut, 1) : wa(e, ut);
  21194. }
  21195. }
  21196. return e;
  21197. }
  21198. function xa(e, S) {
  21199. return e + Oo(Bl() * (S - e + 1));
  21200. }
  21201. function Eg(e, S, K, ot) {
  21202. for (var ut = -1, mt = Ye(Eo((S - e) / (K || 1)), 0), xt = At(mt); mt--; )
  21203. xt[ot ? mt : ++ut] = e, e += K;
  21204. return xt;
  21205. }
  21206. function ba(e, S) {
  21207. var K = "";
  21208. if (!e || S < 1 || S > _)
  21209. return K;
  21210. do
  21211. S % 2 && (K += e), S = Oo(S / 2), S && (e += e);
  21212. while (S);
  21213. return K;
  21214. }
  21215. function ae(e, S) {
  21216. return Ba(Dc(e, S, hi), e + "");
  21217. }
  21218. function Og(e) {
  21219. return zl(pn(e));
  21220. }
  21221. function Lg(e, S) {
  21222. var K = pn(e);
  21223. return Vo(K, jr(S, 0, K.length));
  21224. }
  21225. function Gn(e, S, K, ot) {
  21226. if (!_e(e))
  21227. return e;
  21228. S = wr(S, e);
  21229. for (var ut = -1, mt = S.length, xt = mt - 1, bt = e; bt != null && ++ut < mt; ) {
  21230. var Mt = Gi(S[ut]), Dt = K;
  21231. if (Mt === "__proto__" || Mt === "constructor" || Mt === "prototype")
  21232. return e;
  21233. if (ut != xt) {
  21234. var Rt = bt[Mt];
  21235. Dt = ot ? ot(Rt, Mt, bt) : E, Dt === E && (Dt = _e(Rt) ? Rt : ir(S[ut + 1]) ? [] : {});
  21236. }
  21237. Wn(bt, Mt, Dt), bt = bt[Mt];
  21238. }
  21239. return e;
  21240. }
  21241. var nc = Lo ? function(e, S) {
  21242. return Lo.set(e, S), e;
  21243. } : hi, _g = Po ? function(e, S) {
  21244. return Po(e, "toString", {
  21245. configurable: !0,
  21246. enumerable: !1,
  21247. value: Va(S),
  21248. writable: !0
  21249. });
  21250. } : hi;
  21251. function Dg(e) {
  21252. return Vo(pn(e));
  21253. }
  21254. function Ci(e, S, K) {
  21255. var ot = -1, ut = e.length;
  21256. S < 0 && (S = -S > ut ? 0 : ut + S), K = K > ut ? ut : K, K < 0 && (K += ut), ut = S > K ? 0 : K - S >>> 0, S >>>= 0;
  21257. for (var mt = At(ut); ++ot < ut; )
  21258. mt[ot] = e[ot + S];
  21259. return mt;
  21260. }
  21261. function Ig(e, S) {
  21262. var K;
  21263. return br(e, function(ot, ut, mt) {
  21264. return K = S(ot, ut, mt), !K;
  21265. }), !!K;
  21266. }
  21267. function jo(e, S, K) {
  21268. var ot = 0, ut = e == null ? ot : e.length;
  21269. if (typeof S == "number" && S === S && ut <= f) {
  21270. for (; ot < ut; ) {
  21271. var mt = ot + ut >>> 1, xt = e[mt];
  21272. xt !== null && !di(xt) && (K ? xt <= S : xt < S) ? ot = mt + 1 : ut = mt;
  21273. }
  21274. return ut;
  21275. }
  21276. return Sa(e, S, hi, K);
  21277. }
  21278. function Sa(e, S, K, ot) {
  21279. var ut = 0, mt = e == null ? 0 : e.length;
  21280. if (mt === 0)
  21281. return 0;
  21282. S = K(S);
  21283. for (var xt = S !== S, bt = S === null, Mt = di(S), Dt = S === E; ut < mt; ) {
  21284. var Rt = Oo((ut + mt) / 2), Bt = K(e[Rt]), Yt = Bt !== E, Ft = Bt === null, Qt = Bt === Bt, se = di(Bt);
  21285. if (xt)
  21286. var te = ot || Qt;
  21287. else
  21288. Dt ? te = Qt && (ot || Yt) : bt ? te = Qt && Yt && (ot || !Ft) : Mt ? te = Qt && Yt && !Ft && (ot || !se) : Ft || se ? te = !1 : te = ot ? Bt <= S : Bt < S;
  21289. te ? ut = Rt + 1 : mt = Rt;
  21290. }
  21291. return Ze(mt, X);
  21292. }
  21293. function oc(e, S) {
  21294. for (var K = -1, ot = e.length, ut = 0, mt = []; ++K < ot; ) {
  21295. var xt = e[K], bt = S ? S(xt) : xt;
  21296. if (!K || !Di(bt, Mt)) {
  21297. var Mt = bt;
  21298. mt[ut++] = xt === 0 ? 0 : xt;
  21299. }
  21300. }
  21301. return mt;
  21302. }
  21303. function sc(e) {
  21304. return typeof e == "number" ? e : di(e) ? j : +e;
  21305. }
  21306. function ui(e) {
  21307. if (typeof e == "string")
  21308. return e;
  21309. if (re(e))
  21310. return Ee(e, ui) + "";
  21311. if (di(e))
  21312. return jl ? jl.call(e) : "";
  21313. var S = e + "";
  21314. return S == "0" && 1 / e == -A ? "-0" : S;
  21315. }
  21316. function Sr(e, S, K) {
  21317. var ot = -1, ut = yo, mt = e.length, xt = !0, bt = [], Mt = bt;
  21318. if (K)
  21319. xt = !1, ut = Ks;
  21320. else if (mt >= y) {
  21321. var Dt = S ? null : Ug(e);
  21322. if (Dt)
  21323. return xo(Dt);
  21324. xt = !1, ut = Dn, Mt = new Br();
  21325. } else
  21326. Mt = S ? [] : bt;
  21327. t:
  21328. for (; ++ot < mt; ) {
  21329. var Rt = e[ot], Bt = S ? S(Rt) : Rt;
  21330. if (Rt = K || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  21331. for (var Yt = Mt.length; Yt--; )
  21332. if (Mt[Yt] === Bt)
  21333. continue t;
  21334. S && Mt.push(Bt), bt.push(Rt);
  21335. } else
  21336. ut(Mt, Bt, K) || (Mt !== bt && Mt.push(Bt), bt.push(Rt));
  21337. }
  21338. return bt;
  21339. }
  21340. function wa(e, S) {
  21341. return S = wr(S, e), e = Ic(e, S), e == null || delete e[Gi(ki(S))];
  21342. }
  21343. function ac(e, S, K, ot) {
  21344. return Gn(e, S, K(Wr(e, S)), ot);
  21345. }
  21346. function Wo(e, S, K, ot) {
  21347. for (var ut = e.length, mt = ot ? ut : -1; (ot ? mt-- : ++mt < ut) && S(e[mt], mt, e); )
  21348. ;
  21349. return K ? Ci(e, ot ? 0 : mt, ot ? mt + 1 : ut) : Ci(e, ot ? mt + 1 : 0, ot ? ut : mt);
  21350. }
  21351. function hc(e, S) {
  21352. var K = e;
  21353. return K instanceof ce && (K = K.value()), Js(S, function(ot, ut) {
  21354. return ut.func.apply(ut.thisArg, yr([ot], ut.args));
  21355. }, K);
  21356. }
  21357. function Ma(e, S, K) {
  21358. var ot = e.length;
  21359. if (ot < 2)
  21360. return ot ? Sr(e[0]) : [];
  21361. for (var ut = -1, mt = At(ot); ++ut < ot; )
  21362. for (var xt = e[ut], bt = -1; ++bt < ot; )
  21363. bt != ut && (mt[ut] = zn(mt[ut] || xt, e[bt], S, K));
  21364. return Sr(Ve(mt, 1), S, K);
  21365. }
  21366. function lc(e, S, K) {
  21367. for (var ot = -1, ut = e.length, mt = S.length, xt = {}; ++ot < ut; ) {
  21368. var bt = ot < mt ? S[ot] : E;
  21369. K(xt, e[ot], bt);
  21370. }
  21371. return xt;
  21372. }
  21373. function Ca(e) {
  21374. return Ne(e) ? e : [];
  21375. }
  21376. function ka(e) {
  21377. return typeof e == "function" ? e : hi;
  21378. }
  21379. function wr(e, S) {
  21380. return re(e) ? e : Ia(e, S) ? [e] : jc(xe(e));
  21381. }
  21382. var Rg = ae;
  21383. function Mr(e, S, K) {
  21384. var ot = e.length;
  21385. return K = K === E ? ot : K, !S && K >= ot ? e : Ci(e, S, K);
  21386. }
  21387. var cc = wf || function(e) {
  21388. return Fe.clearTimeout(e);
  21389. };
  21390. function pc(e, S) {
  21391. if (S)
  21392. return e.slice();
  21393. var K = e.length, ot = _l ? _l(K) : new e.constructor(K);
  21394. return e.copy(ot), ot;
  21395. }
  21396. function Aa(e) {
  21397. var S = new e.constructor(e.byteLength);
  21398. return new ko(S).set(new ko(e)), S;
  21399. }
  21400. function Ng(e, S) {
  21401. var K = S ? Aa(e.buffer) : e.buffer;
  21402. return new e.constructor(K, e.byteOffset, e.byteLength);
  21403. }
  21404. function Bg(e) {
  21405. var S = new e.constructor(e.source, ue.exec(e));
  21406. return S.lastIndex = e.lastIndex, S;
  21407. }
  21408. function jg(e) {
  21409. return jn ? Ce(jn.call(e)) : {};
  21410. }
  21411. function uc(e, S) {
  21412. var K = S ? Aa(e.buffer) : e.buffer;
  21413. return new e.constructor(K, e.byteOffset, e.length);
  21414. }
  21415. function dc(e, S) {
  21416. if (e !== S) {
  21417. var K = e !== E, ot = e === null, ut = e === e, mt = di(e), xt = S !== E, bt = S === null, Mt = S === S, Dt = di(S);
  21418. if (!bt && !Dt && !mt && e > S || mt && xt && Mt && !bt && !Dt || ot && xt && Mt || !K && Mt || !ut)
  21419. return 1;
  21420. if (!ot && !mt && !Dt && e < S || Dt && K && ut && !ot && !mt || bt && K && ut || !xt && ut || !Mt)
  21421. return -1;
  21422. }
  21423. return 0;
  21424. }
  21425. function Wg(e, S, K) {
  21426. for (var ot = -1, ut = e.criteria, mt = S.criteria, xt = ut.length, bt = K.length; ++ot < xt; ) {
  21427. var Mt = dc(ut[ot], mt[ot]);
  21428. if (Mt) {
  21429. if (ot >= bt)
  21430. return Mt;
  21431. var Dt = K[ot];
  21432. return Mt * (Dt == "desc" ? -1 : 1);
  21433. }
  21434. }
  21435. return e.index - S.index;
  21436. }
  21437. function fc(e, S, K, ot) {
  21438. for (var ut = -1, mt = e.length, xt = K.length, bt = -1, Mt = S.length, Dt = Ye(mt - xt, 0), Rt = At(Mt + Dt), Bt = !ot; ++bt < Mt; )
  21439. Rt[bt] = S[bt];
  21440. for (; ++ut < xt; )
  21441. (Bt || ut < mt) && (Rt[K[ut]] = e[ut]);
  21442. for (; Dt--; )
  21443. Rt[bt++] = e[ut++];
  21444. return Rt;
  21445. }
  21446. function gc(e, S, K, ot) {
  21447. for (var ut = -1, mt = e.length, xt = -1, bt = K.length, Mt = -1, Dt = S.length, Rt = Ye(mt - bt, 0), Bt = At(Rt + Dt), Yt = !ot; ++ut < Rt; )
  21448. Bt[ut] = e[ut];
  21449. for (var Ft = ut; ++Mt < Dt; )
  21450. Bt[Ft + Mt] = S[Mt];
  21451. for (; ++xt < bt; )
  21452. (Yt || ut < mt) && (Bt[Ft + K[xt]] = e[ut++]);
  21453. return Bt;
  21454. }
  21455. function oi(e, S) {
  21456. var K = -1, ot = e.length;
  21457. for (S || (S = At(ot)); ++K < ot; )
  21458. S[K] = e[K];
  21459. return S;
  21460. }
  21461. function Xi(e, S, K, ot) {
  21462. var ut = !K;
  21463. K || (K = {});
  21464. for (var mt = -1, xt = S.length; ++mt < xt; ) {
  21465. var bt = S[mt], Mt = ot ? ot(K[bt], e[bt], bt, K, e) : E;
  21466. Mt === E && (Mt = e[bt]), ut ? Qi(K, bt, Mt) : Wn(K, bt, Mt);
  21467. }
  21468. return K;
  21469. }
  21470. function zg(e, S) {
  21471. return Xi(e, Da(e), S);
  21472. }
  21473. function Yg(e, S) {
  21474. return Xi(e, Pc(e), S);
  21475. }
  21476. function zo(e, S) {
  21477. return function(K, ot) {
  21478. var ut = re(K) ? Ud : lg, mt = S ? S() : {};
  21479. return ut(K, e, qt(ot, 2), mt);
  21480. };
  21481. }
  21482. function an(e) {
  21483. return ae(function(S, K) {
  21484. var ot = -1, ut = K.length, mt = ut > 1 ? K[ut - 1] : E, xt = ut > 2 ? K[2] : E;
  21485. for (mt = e.length > 3 && typeof mt == "function" ? (ut--, mt) : E, xt && ei(K[0], K[1], xt) && (mt = ut < 3 ? E : mt, ut = 1), S = Ce(S); ++ot < ut; ) {
  21486. var bt = K[ot];
  21487. bt && e(S, bt, ot, mt);
  21488. }
  21489. return S;
  21490. });
  21491. }
  21492. function mc(e, S) {
  21493. return function(K, ot) {
  21494. if (K == null)
  21495. return K;
  21496. if (!si(K))
  21497. return e(K, ot);
  21498. for (var ut = K.length, mt = S ? ut : -1, xt = Ce(K); (S ? mt-- : ++mt < ut) && ot(xt[mt], mt, xt) !== !1; )
  21499. ;
  21500. return K;
  21501. };
  21502. }
  21503. function yc(e) {
  21504. return function(S, K, ot) {
  21505. for (var ut = -1, mt = Ce(S), xt = ot(S), bt = xt.length; bt--; ) {
  21506. var Mt = xt[e ? bt : ++ut];
  21507. if (K(mt[Mt], Mt, mt) === !1)
  21508. break;
  21509. }
  21510. return S;
  21511. };
  21512. }
  21513. function Xg(e, S, K) {
  21514. var ot = S & d, ut = Hn(e);
  21515. function mt() {
  21516. var xt = this && this !== Fe && this instanceof mt ? ut : e;
  21517. return xt.apply(ot ? K : this, arguments);
  21518. }
  21519. return mt;
  21520. }
  21521. function vc(e) {
  21522. return function(S) {
  21523. S = xe(S);
  21524. var K = Qr(S) ? Li(S) : E, ot = K ? K[0] : S.charAt(0), ut = K ? Mr(K, 1).join("") : S.slice(1);
  21525. return ot[e]() + ut;
  21526. };
  21527. }
  21528. function hn(e) {
  21529. return function(S) {
  21530. return Js(mp(gp(S).replace(Ld, "")), e, "");
  21531. };
  21532. }
  21533. function Hn(e) {
  21534. return function() {
  21535. var S = arguments;
  21536. switch (S.length) {
  21537. case 0:
  21538. return new e();
  21539. case 1:
  21540. return new e(S[0]);
  21541. case 2:
  21542. return new e(S[0], S[1]);
  21543. case 3:
  21544. return new e(S[0], S[1], S[2]);
  21545. case 4:
  21546. return new e(S[0], S[1], S[2], S[3]);
  21547. case 5:
  21548. return new e(S[0], S[1], S[2], S[3], S[4]);
  21549. case 6:
  21550. return new e(S[0], S[1], S[2], S[3], S[4], S[5]);
  21551. case 7:
  21552. return new e(S[0], S[1], S[2], S[3], S[4], S[5], S[6]);
  21553. }
  21554. var K = sn(e.prototype), ot = e.apply(K, S);
  21555. return _e(ot) ? ot : K;
  21556. };
  21557. }
  21558. function Gg(e, S, K) {
  21559. var ot = Hn(e);
  21560. function ut() {
  21561. for (var mt = arguments.length, xt = At(mt), bt = mt, Mt = ln(ut); bt--; )
  21562. xt[bt] = arguments[bt];
  21563. var Dt = mt < 3 && xt[0] !== Mt && xt[mt - 1] !== Mt ? [] : vr(xt, Mt);
  21564. if (mt -= Dt.length, mt < K)
  21565. return Mc(
  21566. e,
  21567. S,
  21568. Yo,
  21569. ut.placeholder,
  21570. E,
  21571. xt,
  21572. Dt,
  21573. E,
  21574. E,
  21575. K - mt
  21576. );
  21577. var Rt = this && this !== Fe && this instanceof ut ? ot : e;
  21578. return ci(Rt, this, xt);
  21579. }
  21580. return ut;
  21581. }
  21582. function xc(e) {
  21583. return function(S, K, ot) {
  21584. var ut = Ce(S);
  21585. if (!si(S)) {
  21586. var mt = qt(K, 3);
  21587. S = Ue(S), K = function(bt) {
  21588. return mt(ut[bt], bt, ut);
  21589. };
  21590. }
  21591. var xt = e(S, K, ot);
  21592. return xt > -1 ? ut[mt ? S[xt] : xt] : E;
  21593. };
  21594. }
  21595. function bc(e) {
  21596. return er(function(S) {
  21597. var K = S.length, ot = K, ut = wi.prototype.thru;
  21598. for (e && S.reverse(); ot--; ) {
  21599. var mt = S[ot];
  21600. if (typeof mt != "function")
  21601. throw new Si(I);
  21602. if (ut && !xt && Uo(mt) == "wrapper")
  21603. var xt = new wi([], !0);
  21604. }
  21605. for (ot = xt ? ot : K; ++ot < K; ) {
  21606. mt = S[ot];
  21607. var bt = Uo(mt), Mt = bt == "wrapper" ? La(mt) : E;
  21608. Mt && Ra(Mt[0]) && Mt[1] == (x | B | b | a) && !Mt[4].length && Mt[9] == 1 ? xt = xt[Uo(Mt[0])].apply(xt, Mt[3]) : xt = mt.length == 1 && Ra(mt) ? xt[bt]() : xt.thru(mt);
  21609. }
  21610. return function() {
  21611. var Dt = arguments, Rt = Dt[0];
  21612. if (xt && Dt.length == 1 && re(Rt))
  21613. return xt.plant(Rt).value();
  21614. for (var Bt = 0, Yt = K ? S[Bt].apply(this, Dt) : Rt; ++Bt < K; )
  21615. Yt = S[Bt].call(this, Yt);
  21616. return Yt;
  21617. };
  21618. });
  21619. }
  21620. function Yo(e, S, K, ot, ut, mt, xt, bt, Mt, Dt) {
  21621. var Rt = S & x, Bt = S & d, Yt = S & P, Ft = S & (B | C), Qt = S & c, se = Yt ? E : Hn(e);
  21622. function te() {
  21623. for (var le = arguments.length, pe = At(le), fi = le; fi--; )
  21624. pe[fi] = arguments[fi];
  21625. if (Ft)
  21626. var ii = ln(te), gi = tf(pe, ii);
  21627. if (ot && (pe = fc(pe, ot, ut, Ft)), mt && (pe = gc(pe, mt, xt, Ft)), le -= gi, Ft && le < Dt) {
  21628. var Be = vr(pe, ii);
  21629. return Mc(
  21630. e,
  21631. S,
  21632. Yo,
  21633. te.placeholder,
  21634. K,
  21635. pe,
  21636. Be,
  21637. bt,
  21638. Mt,
  21639. Dt - le
  21640. );
  21641. }
  21642. var Ii = Bt ? K : this, or = Yt ? Ii[e] : e;
  21643. return le = pe.length, bt ? pe = lm(pe, bt) : Qt && le > 1 && pe.reverse(), Rt && Mt < le && (pe.length = Mt), this && this !== Fe && this instanceof te && (or = se || Hn(or)), or.apply(Ii, pe);
  21644. }
  21645. return te;
  21646. }
  21647. function Sc(e, S) {
  21648. return function(K, ot) {
  21649. return yg(K, e, S(ot), {});
  21650. };
  21651. }
  21652. function Xo(e, S) {
  21653. return function(K, ot) {
  21654. var ut;
  21655. if (K === E && ot === E)
  21656. return S;
  21657. if (K !== E && (ut = K), ot !== E) {
  21658. if (ut === E)
  21659. return ot;
  21660. typeof K == "string" || typeof ot == "string" ? (K = ui(K), ot = ui(ot)) : (K = sc(K), ot = sc(ot)), ut = e(K, ot);
  21661. }
  21662. return ut;
  21663. };
  21664. }
  21665. function Ta(e) {
  21666. return er(function(S) {
  21667. return S = Ee(S, pi(qt())), ae(function(K) {
  21668. var ot = this;
  21669. return e(S, function(ut) {
  21670. return ci(ut, ot, K);
  21671. });
  21672. });
  21673. });
  21674. }
  21675. function Go(e, S) {
  21676. S = S === E ? " " : ui(S);
  21677. var K = S.length;
  21678. if (K < 2)
  21679. return K ? ba(S, e) : S;
  21680. var ot = ba(S, Eo(e / tn(S)));
  21681. return Qr(S) ? Mr(Li(ot), 0, e).join("") : ot.slice(0, e);
  21682. }
  21683. function Hg(e, S, K, ot) {
  21684. var ut = S & d, mt = Hn(e);
  21685. function xt() {
  21686. for (var bt = -1, Mt = arguments.length, Dt = -1, Rt = ot.length, Bt = At(Rt + Mt), Yt = this && this !== Fe && this instanceof xt ? mt : e; ++Dt < Rt; )
  21687. Bt[Dt] = ot[Dt];
  21688. for (; Mt--; )
  21689. Bt[Dt++] = arguments[++bt];
  21690. return ci(Yt, ut ? K : this, Bt);
  21691. }
  21692. return xt;
  21693. }
  21694. function wc(e) {
  21695. return function(S, K, ot) {
  21696. return ot && typeof ot != "number" && ei(S, K, ot) && (K = ot = E), S = nr(S), K === E ? (K = S, S = 0) : K = nr(K), ot = ot === E ? S < K ? 1 : -1 : nr(ot), Eg(S, K, ot, e);
  21697. };
  21698. }
  21699. function Ho(e) {
  21700. return function(S, K) {
  21701. return typeof S == "string" && typeof K == "string" || (S = Ai(S), K = Ai(K)), e(S, K);
  21702. };
  21703. }
  21704. function Mc(e, S, K, ot, ut, mt, xt, bt, Mt, Dt) {
  21705. var Rt = S & B, Bt = Rt ? xt : E, Yt = Rt ? E : xt, Ft = Rt ? mt : E, Qt = Rt ? E : mt;
  21706. S |= Rt ? b : M, S &= ~(Rt ? M : b), S & O || (S &= ~(d | P));
  21707. var se = [
  21708. e,
  21709. S,
  21710. ut,
  21711. Ft,
  21712. Bt,
  21713. Qt,
  21714. Yt,
  21715. bt,
  21716. Mt,
  21717. Dt
  21718. ], te = K.apply(E, se);
  21719. return Ra(e) && Rc(te, se), te.placeholder = ot, Nc(te, e, S);
  21720. }
  21721. function Pa(e) {
  21722. var S = ze[e];
  21723. return function(K, ot) {
  21724. if (K = Ai(K), ot = ot == null ? 0 : Ze(ne(ot), 292), ot && Nl(K)) {
  21725. var ut = (xe(K) + "e").split("e"), mt = S(ut[0] + "e" + (+ut[1] + ot));
  21726. return ut = (xe(mt) + "e").split("e"), +(ut[0] + "e" + (+ut[1] - ot));
  21727. }
  21728. return S(K);
  21729. };
  21730. }
  21731. var Ug = nn && 1 / xo(new nn([, -0]))[1] == A ? function(e) {
  21732. return new nn(e);
  21733. } : Ka;
  21734. function Cc(e) {
  21735. return function(S) {
  21736. var K = Ke(S);
  21737. return K == it ? na(S) : K == lt ? hf(S) : Qd(S, e(S));
  21738. };
  21739. }
  21740. function tr(e, S, K, ot, ut, mt, xt, bt) {
  21741. var Mt = S & P;
  21742. if (!Mt && typeof e != "function")
  21743. throw new Si(I);
  21744. var Dt = ot ? ot.length : 0;
  21745. if (Dt || (S &= ~(b | M), ot = ut = E), xt = xt === E ? xt : Ye(ne(xt), 0), bt = bt === E ? bt : ne(bt), Dt -= ut ? ut.length : 0, S & M) {
  21746. var Rt = ot, Bt = ut;
  21747. ot = ut = E;
  21748. }
  21749. var Yt = Mt ? E : La(e), Ft = [
  21750. e,
  21751. S,
  21752. K,
  21753. ot,
  21754. ut,
  21755. Rt,
  21756. Bt,
  21757. mt,
  21758. xt,
  21759. bt
  21760. ];
  21761. if (Yt && sm(Ft, Yt), e = Ft[0], S = Ft[1], K = Ft[2], ot = Ft[3], ut = Ft[4], bt = Ft[9] = Ft[9] === E ? Mt ? 0 : e.length : Ye(Ft[9] - Dt, 0), !bt && S & (B | C) && (S &= ~(B | C)), !S || S == d)
  21762. var Qt = Xg(e, S, K);
  21763. else
  21764. S == B || S == C ? Qt = Gg(e, S, bt) : (S == b || S == (d | b)) && !ut.length ? Qt = Hg(e, S, K, ot) : Qt = Yo.apply(E, Ft);
  21765. var se = Yt ? nc : Rc;
  21766. return Nc(se(Qt, Ft), e, S);
  21767. }
  21768. function kc(e, S, K, ot) {
  21769. return e === E || Di(e, rn[K]) && !Se.call(ot, K) ? S : e;
  21770. }
  21771. function Ac(e, S, K, ot, ut, mt) {
  21772. return _e(e) && _e(S) && (mt.set(S, e), Bo(e, S, E, Ac, mt), mt.delete(S)), e;
  21773. }
  21774. function Fg(e) {
  21775. return Vn(e) ? E : e;
  21776. }
  21777. function Tc(e, S, K, ot, ut, mt) {
  21778. var xt = K & v, bt = e.length, Mt = S.length;
  21779. if (bt != Mt && !(xt && Mt > bt))
  21780. return !1;
  21781. var Dt = mt.get(e), Rt = mt.get(S);
  21782. if (Dt && Rt)
  21783. return Dt == S && Rt == e;
  21784. var Bt = -1, Yt = !0, Ft = K & u ? new Br() : E;
  21785. for (mt.set(e, S), mt.set(S, e); ++Bt < bt; ) {
  21786. var Qt = e[Bt], se = S[Bt];
  21787. if (ot)
  21788. var te = xt ? ot(se, Qt, Bt, S, e, mt) : ot(Qt, se, Bt, e, S, mt);
  21789. if (te !== E) {
  21790. if (te)
  21791. continue;
  21792. Yt = !1;
  21793. break;
  21794. }
  21795. if (Ft) {
  21796. if (!qs(S, function(le, pe) {
  21797. if (!Dn(Ft, pe) && (Qt === le || ut(Qt, le, K, ot, mt)))
  21798. return Ft.push(pe);
  21799. })) {
  21800. Yt = !1;
  21801. break;
  21802. }
  21803. } else if (!(Qt === se || ut(Qt, se, K, ot, mt))) {
  21804. Yt = !1;
  21805. break;
  21806. }
  21807. }
  21808. return mt.delete(e), mt.delete(S), Yt;
  21809. }
  21810. function Vg(e, S, K, ot, ut, mt, xt) {
  21811. switch (K) {
  21812. case yt:
  21813. if (e.byteLength != S.byteLength || e.byteOffset != S.byteOffset)
  21814. return !1;
  21815. e = e.buffer, S = S.buffer;
  21816. case pt:
  21817. return !(e.byteLength != S.byteLength || !mt(new ko(e), new ko(S)));
  21818. case Q:
  21819. case k:
  21820. case et:
  21821. return Di(+e, +S);
  21822. case z:
  21823. return e.name == S.name && e.message == S.message;
  21824. case dt:
  21825. case at:
  21826. return e == S + "";
  21827. case it:
  21828. var bt = na;
  21829. case lt:
  21830. var Mt = ot & v;
  21831. if (bt || (bt = xo), e.size != S.size && !Mt)
  21832. return !1;
  21833. var Dt = xt.get(e);
  21834. if (Dt)
  21835. return Dt == S;
  21836. ot |= u, xt.set(e, S);
  21837. var Rt = Tc(bt(e), bt(S), ot, ut, mt, xt);
  21838. return xt.delete(e), Rt;
  21839. case J:
  21840. if (jn)
  21841. return jn.call(e) == jn.call(S);
  21842. }
  21843. return !1;
  21844. }
  21845. function $g(e, S, K, ot, ut, mt) {
  21846. var xt = K & v, bt = Ea(e), Mt = bt.length, Dt = Ea(S), Rt = Dt.length;
  21847. if (Mt != Rt && !xt)
  21848. return !1;
  21849. for (var Bt = Mt; Bt--; ) {
  21850. var Yt = bt[Bt];
  21851. if (!(xt ? Yt in S : Se.call(S, Yt)))
  21852. return !1;
  21853. }
  21854. var Ft = mt.get(e), Qt = mt.get(S);
  21855. if (Ft && Qt)
  21856. return Ft == S && Qt == e;
  21857. var se = !0;
  21858. mt.set(e, S), mt.set(S, e);
  21859. for (var te = xt; ++Bt < Mt; ) {
  21860. Yt = bt[Bt];
  21861. var le = e[Yt], pe = S[Yt];
  21862. if (ot)
  21863. var fi = xt ? ot(pe, le, Yt, S, e, mt) : ot(le, pe, Yt, e, S, mt);
  21864. if (!(fi === E ? le === pe || ut(le, pe, K, ot, mt) : fi)) {
  21865. se = !1;
  21866. break;
  21867. }
  21868. te || (te = Yt == "constructor");
  21869. }
  21870. if (se && !te) {
  21871. var ii = e.constructor, gi = S.constructor;
  21872. ii != gi && "constructor" in e && "constructor" in S && !(typeof ii == "function" && ii instanceof ii && typeof gi == "function" && gi instanceof gi) && (se = !1);
  21873. }
  21874. return mt.delete(e), mt.delete(S), se;
  21875. }
  21876. function er(e) {
  21877. return Ba(Dc(e, E, Xc), e + "");
  21878. }
  21879. function Ea(e) {
  21880. return Vl(e, Ue, Da);
  21881. }
  21882. function Oa(e) {
  21883. return Vl(e, ai, Pc);
  21884. }
  21885. var La = Lo ? function(e) {
  21886. return Lo.get(e);
  21887. } : Ka;
  21888. function Uo(e) {
  21889. for (var S = e.name + "", K = on[S], ot = Se.call(on, S) ? K.length : 0; ot--; ) {
  21890. var ut = K[ot], mt = ut.func;
  21891. if (mt == null || mt == e)
  21892. return ut.name;
  21893. }
  21894. return S;
  21895. }
  21896. function ln(e) {
  21897. var S = Se.call(ft, "placeholder") ? ft : e;
  21898. return S.placeholder;
  21899. }
  21900. function qt() {
  21901. var e = ft.iteratee || $a;
  21902. return e = e === $a ? Kl : e, arguments.length ? e(arguments[0], arguments[1]) : e;
  21903. }
  21904. function Fo(e, S) {
  21905. var K = e.__data__;
  21906. return im(S) ? K[typeof S == "string" ? "string" : "hash"] : K.map;
  21907. }
  21908. function _a(e) {
  21909. for (var S = Ue(e), K = S.length; K--; ) {
  21910. var ot = S[K], ut = e[ot];
  21911. S[K] = [ot, ut, Lc(ut)];
  21912. }
  21913. return S;
  21914. }
  21915. function zr(e, S) {
  21916. var K = of(e, S);
  21917. return Zl(K) ? K : E;
  21918. }
  21919. function Zg(e) {
  21920. var S = Se.call(e, Rr), K = e[Rr];
  21921. try {
  21922. e[Rr] = E;
  21923. var ot = !0;
  21924. } catch {
  21925. }
  21926. var ut = Mo.call(e);
  21927. return ot && (S ? e[Rr] = K : delete e[Rr]), ut;
  21928. }
  21929. var Da = sa ? function(e) {
  21930. return e == null ? [] : (e = Ce(e), mr(sa(e), function(S) {
  21931. return Il.call(e, S);
  21932. }));
  21933. } : Ja, Pc = sa ? function(e) {
  21934. for (var S = []; e; )
  21935. yr(S, Da(e)), e = Ao(e);
  21936. return S;
  21937. } : Ja, Ke = ti;
  21938. (aa && Ke(new aa(new ArrayBuffer(1))) != yt || Rn && Ke(new Rn()) != it || ha && Ke(ha.resolve()) != ct || nn && Ke(new nn()) != lt || Nn && Ke(new Nn()) != st) && (Ke = function(e) {
  21939. var S = ti(e), K = S == rt ? e.constructor : E, ot = K ? Yr(K) : "";
  21940. if (ot)
  21941. switch (ot) {
  21942. case Lf:
  21943. return yt;
  21944. case _f:
  21945. return it;
  21946. case Df:
  21947. return ct;
  21948. case If:
  21949. return lt;
  21950. case Rf:
  21951. return st;
  21952. }
  21953. return S;
  21954. });
  21955. function Kg(e, S, K) {
  21956. for (var ot = -1, ut = K.length; ++ot < ut; ) {
  21957. var mt = K[ot], xt = mt.size;
  21958. switch (mt.type) {
  21959. case "drop":
  21960. e += xt;
  21961. break;
  21962. case "dropRight":
  21963. S -= xt;
  21964. break;
  21965. case "take":
  21966. S = Ze(S, e + xt);
  21967. break;
  21968. case "takeRight":
  21969. e = Ye(e, S - xt);
  21970. break;
  21971. }
  21972. }
  21973. return { start: e, end: S };
  21974. }
  21975. function Jg(e) {
  21976. var S = e.match(_r);
  21977. return S ? S[1].split(zi) : [];
  21978. }
  21979. function Ec(e, S, K) {
  21980. S = wr(S, e);
  21981. for (var ot = -1, ut = S.length, mt = !1; ++ot < ut; ) {
  21982. var xt = Gi(S[ot]);
  21983. if (!(mt = e != null && K(e, xt)))
  21984. break;
  21985. e = e[xt];
  21986. }
  21987. return mt || ++ot != ut ? mt : (ut = e == null ? 0 : e.length, !!ut && Qo(ut) && ir(xt, ut) && (re(e) || Xr(e)));
  21988. }
  21989. function qg(e) {
  21990. var S = e.length, K = new e.constructor(S);
  21991. return S && typeof e[0] == "string" && Se.call(e, "index") && (K.index = e.index, K.input = e.input), K;
  21992. }
  21993. function Oc(e) {
  21994. return typeof e.constructor == "function" && !Un(e) ? sn(Ao(e)) : {};
  21995. }
  21996. function Qg(e, S, K) {
  21997. var ot = e.constructor;
  21998. switch (S) {
  21999. case pt:
  22000. return Aa(e);
  22001. case Q:
  22002. case k:
  22003. return new ot(+e);
  22004. case yt:
  22005. return Ng(e, K);
  22006. case vt:
  22007. case Ct:
  22008. case Tt:
  22009. case kt:
  22010. case St:
  22011. case _t:
  22012. case Lt:
  22013. case Nt:
  22014. case Et:
  22015. return uc(e, K);
  22016. case it:
  22017. return new ot();
  22018. case et:
  22019. case at:
  22020. return new ot(e);
  22021. case dt:
  22022. return Bg(e);
  22023. case lt:
  22024. return new ot();
  22025. case J:
  22026. return jg(e);
  22027. }
  22028. }
  22029. function tm(e, S) {
  22030. var K = S.length;
  22031. if (!K)
  22032. return e;
  22033. var ot = K - 1;
  22034. return S[ot] = (K > 1 ? "& " : "") + S[ot], S = S.join(K > 2 ? ", " : " "), e.replace(Xs, `{
  22035. /* [wrapped with ` + S + `] */
  22036. `);
  22037. }
  22038. function em(e) {
  22039. return re(e) || Xr(e) || !!(Rl && e && e[Rl]);
  22040. }
  22041. function ir(e, S) {
  22042. var K = typeof e;
  22043. return S = S ?? _, !!S && (K == "number" || K != "symbol" && ud.test(e)) && e > -1 && e % 1 == 0 && e < S;
  22044. }
  22045. function ei(e, S, K) {
  22046. if (!_e(K))
  22047. return !1;
  22048. var ot = typeof S;
  22049. return (ot == "number" ? si(K) && ir(S, K.length) : ot == "string" && S in K) ? Di(K[S], e) : !1;
  22050. }
  22051. function Ia(e, S) {
  22052. if (re(e))
  22053. return !1;
  22054. var K = typeof e;
  22055. return K == "number" || K == "symbol" || K == "boolean" || e == null || di(e) ? !0 : En.test(e) || !Pn.test(e) || S != null && e in Ce(S);
  22056. }
  22057. function im(e) {
  22058. var S = typeof e;
  22059. return S == "string" || S == "number" || S == "symbol" || S == "boolean" ? e !== "__proto__" : e === null;
  22060. }
  22061. function Ra(e) {
  22062. var S = Uo(e), K = ft[S];
  22063. if (typeof K != "function" || !(S in ce.prototype))
  22064. return !1;
  22065. if (e === K)
  22066. return !0;
  22067. var ot = La(K);
  22068. return !!ot && e === ot[0];
  22069. }
  22070. function rm(e) {
  22071. return !!Ll && Ll in e;
  22072. }
  22073. var nm = So ? rr : qa;
  22074. function Un(e) {
  22075. var S = e && e.constructor, K = typeof S == "function" && S.prototype || rn;
  22076. return e === K;
  22077. }
  22078. function Lc(e) {
  22079. return e === e && !_e(e);
  22080. }
  22081. function _c(e, S) {
  22082. return function(K) {
  22083. return K == null ? !1 : K[e] === S && (S !== E || e in Ce(K));
  22084. };
  22085. }
  22086. function om(e) {
  22087. var S = Jo(e, function(ot) {
  22088. return K.size === $ && K.clear(), ot;
  22089. }), K = S.cache;
  22090. return S;
  22091. }
  22092. function sm(e, S) {
  22093. var K = e[1], ot = S[1], ut = K | ot, mt = ut < (d | P | x), xt = ot == x && K == B || ot == x && K == a && e[7].length <= S[8] || ot == (x | a) && S[7].length <= S[8] && K == B;
  22094. if (!(mt || xt))
  22095. return e;
  22096. ot & d && (e[2] = S[2], ut |= K & d ? 0 : O);
  22097. var bt = S[3];
  22098. if (bt) {
  22099. var Mt = e[3];
  22100. e[3] = Mt ? fc(Mt, bt, S[4]) : bt, e[4] = Mt ? vr(e[3], U) : S[4];
  22101. }
  22102. return bt = S[5], bt && (Mt = e[5], e[5] = Mt ? gc(Mt, bt, S[6]) : bt, e[6] = Mt ? vr(e[5], U) : S[6]), bt = S[7], bt && (e[7] = bt), ot & x && (e[8] = e[8] == null ? S[8] : Ze(e[8], S[8])), e[9] == null && (e[9] = S[9]), e[0] = S[0], e[1] = ut, e;
  22103. }
  22104. function am(e) {
  22105. var S = [];
  22106. if (e != null)
  22107. for (var K in Ce(e))
  22108. S.push(K);
  22109. return S;
  22110. }
  22111. function hm(e) {
  22112. return Mo.call(e);
  22113. }
  22114. function Dc(e, S, K) {
  22115. return S = Ye(S === E ? e.length - 1 : S, 0), function() {
  22116. for (var ot = arguments, ut = -1, mt = Ye(ot.length - S, 0), xt = At(mt); ++ut < mt; )
  22117. xt[ut] = ot[S + ut];
  22118. ut = -1;
  22119. for (var bt = At(S + 1); ++ut < S; )
  22120. bt[ut] = ot[ut];
  22121. return bt[S] = K(xt), ci(e, this, bt);
  22122. };
  22123. }
  22124. function Ic(e, S) {
  22125. return S.length < 2 ? e : Wr(e, Ci(S, 0, -1));
  22126. }
  22127. function lm(e, S) {
  22128. for (var K = e.length, ot = Ze(S.length, K), ut = oi(e); ot--; ) {
  22129. var mt = S[ot];
  22130. e[ot] = ir(mt, K) ? ut[mt] : E;
  22131. }
  22132. return e;
  22133. }
  22134. function Na(e, S) {
  22135. if (!(S === "constructor" && typeof e[S] == "function") && S != "__proto__")
  22136. return e[S];
  22137. }
  22138. var Rc = Bc(nc), Fn = Cf || function(e, S) {
  22139. return Fe.setTimeout(e, S);
  22140. }, Ba = Bc(_g);
  22141. function Nc(e, S, K) {
  22142. var ot = S + "";
  22143. return Ba(e, tm(ot, cm(Jg(ot), K)));
  22144. }
  22145. function Bc(e) {
  22146. var S = 0, K = 0;
  22147. return function() {
  22148. var ot = Pf(), ut = s - (ot - K);
  22149. if (K = ot, ut > 0) {
  22150. if (++S >= l)
  22151. return arguments[0];
  22152. } else
  22153. S = 0;
  22154. return e.apply(E, arguments);
  22155. };
  22156. }
  22157. function Vo(e, S) {
  22158. var K = -1, ot = e.length, ut = ot - 1;
  22159. for (S = S === E ? ot : S; ++K < S; ) {
  22160. var mt = xa(K, ut), xt = e[mt];
  22161. e[mt] = e[K], e[K] = xt;
  22162. }
  22163. return e.length = S, e;
  22164. }
  22165. var jc = om(function(e) {
  22166. var S = [];
  22167. return e.charCodeAt(0) === 46 && S.push(""), e.replace($e, function(K, ot, ut, mt) {
  22168. S.push(ut ? mt.replace(Dr, "$1") : ot || K);
  22169. }), S;
  22170. });
  22171. function Gi(e) {
  22172. if (typeof e == "string" || di(e))
  22173. return e;
  22174. var S = e + "";
  22175. return S == "0" && 1 / e == -A ? "-0" : S;
  22176. }
  22177. function Yr(e) {
  22178. if (e != null) {
  22179. try {
  22180. return wo.call(e);
  22181. } catch {
  22182. }
  22183. try {
  22184. return e + "";
  22185. } catch {
  22186. }
  22187. }
  22188. return "";
  22189. }
  22190. function cm(e, S) {
  22191. return bi(m, function(K) {
  22192. var ot = "_." + K[0];
  22193. S & K[1] && !yo(e, ot) && e.push(ot);
  22194. }), e.sort();
  22195. }
  22196. function Wc(e) {
  22197. if (e instanceof ce)
  22198. return e.clone();
  22199. var S = new wi(e.__wrapped__, e.__chain__);
  22200. return S.__actions__ = oi(e.__actions__), S.__index__ = e.__index__, S.__values__ = e.__values__, S;
  22201. }
  22202. function pm(e, S, K) {
  22203. (K ? ei(e, S, K) : S === E) ? S = 1 : S = Ye(ne(S), 0);
  22204. var ot = e == null ? 0 : e.length;
  22205. if (!ot || S < 1)
  22206. return [];
  22207. for (var ut = 0, mt = 0, xt = At(Eo(ot / S)); ut < ot; )
  22208. xt[mt++] = Ci(e, ut, ut += S);
  22209. return xt;
  22210. }
  22211. function um(e) {
  22212. for (var S = -1, K = e == null ? 0 : e.length, ot = 0, ut = []; ++S < K; ) {
  22213. var mt = e[S];
  22214. mt && (ut[ot++] = mt);
  22215. }
  22216. return ut;
  22217. }
  22218. function dm() {
  22219. var e = arguments.length;
  22220. if (!e)
  22221. return [];
  22222. for (var S = At(e - 1), K = arguments[0], ot = e; ot--; )
  22223. S[ot - 1] = arguments[ot];
  22224. return yr(re(K) ? oi(K) : [K], Ve(S, 1));
  22225. }
  22226. var fm = ae(function(e, S) {
  22227. return Ne(e) ? zn(e, Ve(S, 1, Ne, !0)) : [];
  22228. }), gm = ae(function(e, S) {
  22229. var K = ki(S);
  22230. return Ne(K) && (K = E), Ne(e) ? zn(e, Ve(S, 1, Ne, !0), qt(K, 2)) : [];
  22231. }), mm = ae(function(e, S) {
  22232. var K = ki(S);
  22233. return Ne(K) && (K = E), Ne(e) ? zn(e, Ve(S, 1, Ne, !0), E, K) : [];
  22234. });
  22235. function ym(e, S, K) {
  22236. var ot = e == null ? 0 : e.length;
  22237. return ot ? (S = K || S === E ? 1 : ne(S), Ci(e, S < 0 ? 0 : S, ot)) : [];
  22238. }
  22239. function vm(e, S, K) {
  22240. var ot = e == null ? 0 : e.length;
  22241. return ot ? (S = K || S === E ? 1 : ne(S), S = ot - S, Ci(e, 0, S < 0 ? 0 : S)) : [];
  22242. }
  22243. function xm(e, S) {
  22244. return e && e.length ? Wo(e, qt(S, 3), !0, !0) : [];
  22245. }
  22246. function bm(e, S) {
  22247. return e && e.length ? Wo(e, qt(S, 3), !0) : [];
  22248. }
  22249. function Sm(e, S, K, ot) {
  22250. var ut = e == null ? 0 : e.length;
  22251. return ut ? (K && typeof K != "number" && ei(e, S, K) && (K = 0, ot = ut), dg(e, S, K, ot)) : [];
  22252. }
  22253. function zc(e, S, K) {
  22254. var ot = e == null ? 0 : e.length;
  22255. if (!ot)
  22256. return -1;
  22257. var ut = K == null ? 0 : ne(K);
  22258. return ut < 0 && (ut = Ye(ot + ut, 0)), vo(e, qt(S, 3), ut);
  22259. }
  22260. function Yc(e, S, K) {
  22261. var ot = e == null ? 0 : e.length;
  22262. if (!ot)
  22263. return -1;
  22264. var ut = ot - 1;
  22265. return K !== E && (ut = ne(K), ut = K < 0 ? Ye(ot + ut, 0) : Ze(ut, ot - 1)), vo(e, qt(S, 3), ut, !0);
  22266. }
  22267. function Xc(e) {
  22268. var S = e == null ? 0 : e.length;
  22269. return S ? Ve(e, 1) : [];
  22270. }
  22271. function wm(e) {
  22272. var S = e == null ? 0 : e.length;
  22273. return S ? Ve(e, A) : [];
  22274. }
  22275. function Mm(e, S) {
  22276. var K = e == null ? 0 : e.length;
  22277. return K ? (S = S === E ? 1 : ne(S), Ve(e, S)) : [];
  22278. }
  22279. function Cm(e) {
  22280. for (var S = -1, K = e == null ? 0 : e.length, ot = {}; ++S < K; ) {
  22281. var ut = e[S];
  22282. ot[ut[0]] = ut[1];
  22283. }
  22284. return ot;
  22285. }
  22286. function Gc(e) {
  22287. return e && e.length ? e[0] : E;
  22288. }
  22289. function km(e, S, K) {
  22290. var ot = e == null ? 0 : e.length;
  22291. if (!ot)
  22292. return -1;
  22293. var ut = K == null ? 0 : ne(K);
  22294. return ut < 0 && (ut = Ye(ot + ut, 0)), qr(e, S, ut);
  22295. }
  22296. function Am(e) {
  22297. var S = e == null ? 0 : e.length;
  22298. return S ? Ci(e, 0, -1) : [];
  22299. }
  22300. var Tm = ae(function(e) {
  22301. var S = Ee(e, Ca);
  22302. return S.length && S[0] === e[0] ? fa(S) : [];
  22303. }), Pm = ae(function(e) {
  22304. var S = ki(e), K = Ee(e, Ca);
  22305. return S === ki(K) ? S = E : K.pop(), K.length && K[0] === e[0] ? fa(K, qt(S, 2)) : [];
  22306. }), Em = ae(function(e) {
  22307. var S = ki(e), K = Ee(e, Ca);
  22308. return S = typeof S == "function" ? S : E, S && K.pop(), K.length && K[0] === e[0] ? fa(K, E, S) : [];
  22309. });
  22310. function Om(e, S) {
  22311. return e == null ? "" : Af.call(e, S);
  22312. }
  22313. function ki(e) {
  22314. var S = e == null ? 0 : e.length;
  22315. return S ? e[S - 1] : E;
  22316. }
  22317. function Lm(e, S, K) {
  22318. var ot = e == null ? 0 : e.length;
  22319. if (!ot)
  22320. return -1;
  22321. var ut = ot;
  22322. return K !== E && (ut = ne(K), ut = ut < 0 ? Ye(ot + ut, 0) : Ze(ut, ot - 1)), S === S ? cf(e, S, ut) : vo(e, Ml, ut, !0);
  22323. }
  22324. function _m(e, S) {
  22325. return e && e.length ? tc(e, ne(S)) : E;
  22326. }
  22327. var Dm = ae(Hc);
  22328. function Hc(e, S) {
  22329. return e && e.length && S && S.length ? va(e, S) : e;
  22330. }
  22331. function Im(e, S, K) {
  22332. return e && e.length && S && S.length ? va(e, S, qt(K, 2)) : e;
  22333. }
  22334. function Rm(e, S, K) {
  22335. return e && e.length && S && S.length ? va(e, S, E, K) : e;
  22336. }
  22337. var Nm = er(function(e, S) {
  22338. var K = e == null ? 0 : e.length, ot = ca(e, S);
  22339. return rc(e, Ee(S, function(ut) {
  22340. return ir(ut, K) ? +ut : ut;
  22341. }).sort(dc)), ot;
  22342. });
  22343. function Bm(e, S) {
  22344. var K = [];
  22345. if (!(e && e.length))
  22346. return K;
  22347. var ot = -1, ut = [], mt = e.length;
  22348. for (S = qt(S, 3); ++ot < mt; ) {
  22349. var xt = e[ot];
  22350. S(xt, ot, e) && (K.push(xt), ut.push(ot));
  22351. }
  22352. return rc(e, ut), K;
  22353. }
  22354. function ja(e) {
  22355. return e == null ? e : Of.call(e);
  22356. }
  22357. function jm(e, S, K) {
  22358. var ot = e == null ? 0 : e.length;
  22359. return ot ? (K && typeof K != "number" && ei(e, S, K) ? (S = 0, K = ot) : (S = S == null ? 0 : ne(S), K = K === E ? ot : ne(K)), Ci(e, S, K)) : [];
  22360. }
  22361. function Wm(e, S) {
  22362. return jo(e, S);
  22363. }
  22364. function zm(e, S, K) {
  22365. return Sa(e, S, qt(K, 2));
  22366. }
  22367. function Ym(e, S) {
  22368. var K = e == null ? 0 : e.length;
  22369. if (K) {
  22370. var ot = jo(e, S);
  22371. if (ot < K && Di(e[ot], S))
  22372. return ot;
  22373. }
  22374. return -1;
  22375. }
  22376. function Xm(e, S) {
  22377. return jo(e, S, !0);
  22378. }
  22379. function Gm(e, S, K) {
  22380. return Sa(e, S, qt(K, 2), !0);
  22381. }
  22382. function Hm(e, S) {
  22383. var K = e == null ? 0 : e.length;
  22384. if (K) {
  22385. var ot = jo(e, S, !0) - 1;
  22386. if (Di(e[ot], S))
  22387. return ot;
  22388. }
  22389. return -1;
  22390. }
  22391. function Um(e) {
  22392. return e && e.length ? oc(e) : [];
  22393. }
  22394. function Fm(e, S) {
  22395. return e && e.length ? oc(e, qt(S, 2)) : [];
  22396. }
  22397. function Vm(e) {
  22398. var S = e == null ? 0 : e.length;
  22399. return S ? Ci(e, 1, S) : [];
  22400. }
  22401. function $m(e, S, K) {
  22402. return e && e.length ? (S = K || S === E ? 1 : ne(S), Ci(e, 0, S < 0 ? 0 : S)) : [];
  22403. }
  22404. function Zm(e, S, K) {
  22405. var ot = e == null ? 0 : e.length;
  22406. return ot ? (S = K || S === E ? 1 : ne(S), S = ot - S, Ci(e, S < 0 ? 0 : S, ot)) : [];
  22407. }
  22408. function Km(e, S) {
  22409. return e && e.length ? Wo(e, qt(S, 3), !1, !0) : [];
  22410. }
  22411. function Jm(e, S) {
  22412. return e && e.length ? Wo(e, qt(S, 3)) : [];
  22413. }
  22414. var qm = ae(function(e) {
  22415. return Sr(Ve(e, 1, Ne, !0));
  22416. }), Qm = ae(function(e) {
  22417. var S = ki(e);
  22418. return Ne(S) && (S = E), Sr(Ve(e, 1, Ne, !0), qt(S, 2));
  22419. }), ty = ae(function(e) {
  22420. var S = ki(e);
  22421. return S = typeof S == "function" ? S : E, Sr(Ve(e, 1, Ne, !0), E, S);
  22422. });
  22423. function ey(e) {
  22424. return e && e.length ? Sr(e) : [];
  22425. }
  22426. function iy(e, S) {
  22427. return e && e.length ? Sr(e, qt(S, 2)) : [];
  22428. }
  22429. function ry(e, S) {
  22430. return S = typeof S == "function" ? S : E, e && e.length ? Sr(e, E, S) : [];
  22431. }
  22432. function Wa(e) {
  22433. if (!(e && e.length))
  22434. return [];
  22435. var S = 0;
  22436. return e = mr(e, function(K) {
  22437. if (Ne(K))
  22438. return S = Ye(K.length, S), !0;
  22439. }), ia(S, function(K) {
  22440. return Ee(e, Qs(K));
  22441. });
  22442. }
  22443. function Uc(e, S) {
  22444. if (!(e && e.length))
  22445. return [];
  22446. var K = Wa(e);
  22447. return S == null ? K : Ee(K, function(ot) {
  22448. return ci(S, E, ot);
  22449. });
  22450. }
  22451. var ny = ae(function(e, S) {
  22452. return Ne(e) ? zn(e, S) : [];
  22453. }), oy = ae(function(e) {
  22454. return Ma(mr(e, Ne));
  22455. }), sy = ae(function(e) {
  22456. var S = ki(e);
  22457. return Ne(S) && (S = E), Ma(mr(e, Ne), qt(S, 2));
  22458. }), ay = ae(function(e) {
  22459. var S = ki(e);
  22460. return S = typeof S == "function" ? S : E, Ma(mr(e, Ne), E, S);
  22461. }), hy = ae(Wa);
  22462. function ly(e, S) {
  22463. return lc(e || [], S || [], Wn);
  22464. }
  22465. function cy(e, S) {
  22466. return lc(e || [], S || [], Gn);
  22467. }
  22468. var py = ae(function(e) {
  22469. var S = e.length, K = S > 1 ? e[S - 1] : E;
  22470. return K = typeof K == "function" ? (e.pop(), K) : E, Uc(e, K);
  22471. });
  22472. function Fc(e) {
  22473. var S = ft(e);
  22474. return S.__chain__ = !0, S;
  22475. }
  22476. function uy(e, S) {
  22477. return S(e), e;
  22478. }
  22479. function $o(e, S) {
  22480. return S(e);
  22481. }
  22482. var dy = er(function(e) {
  22483. var S = e.length, K = S ? e[0] : 0, ot = this.__wrapped__, ut = function(mt) {
  22484. return ca(mt, e);
  22485. };
  22486. return S > 1 || this.__actions__.length || !(ot instanceof ce) || !ir(K) ? this.thru(ut) : (ot = ot.slice(K, +K + (S ? 1 : 0)), ot.__actions__.push({
  22487. func: $o,
  22488. args: [ut],
  22489. thisArg: E
  22490. }), new wi(ot, this.__chain__).thru(function(mt) {
  22491. return S && !mt.length && mt.push(E), mt;
  22492. }));
  22493. });
  22494. function fy() {
  22495. return Fc(this);
  22496. }
  22497. function gy() {
  22498. return new wi(this.value(), this.__chain__);
  22499. }
  22500. function my() {
  22501. this.__values__ === E && (this.__values__ = sp(this.value()));
  22502. var e = this.__index__ >= this.__values__.length, S = e ? E : this.__values__[this.__index__++];
  22503. return { done: e, value: S };
  22504. }
  22505. function yy() {
  22506. return this;
  22507. }
  22508. function vy(e) {
  22509. for (var S, K = this; K instanceof Do; ) {
  22510. var ot = Wc(K);
  22511. ot.__index__ = 0, ot.__values__ = E, S ? ut.__wrapped__ = ot : S = ot;
  22512. var ut = ot;
  22513. K = K.__wrapped__;
  22514. }
  22515. return ut.__wrapped__ = e, S;
  22516. }
  22517. function xy() {
  22518. var e = this.__wrapped__;
  22519. if (e instanceof ce) {
  22520. var S = e;
  22521. return this.__actions__.length && (S = new ce(this)), S = S.reverse(), S.__actions__.push({
  22522. func: $o,
  22523. args: [ja],
  22524. thisArg: E
  22525. }), new wi(S, this.__chain__);
  22526. }
  22527. return this.thru(ja);
  22528. }
  22529. function by() {
  22530. return hc(this.__wrapped__, this.__actions__);
  22531. }
  22532. var Sy = zo(function(e, S, K) {
  22533. Se.call(e, K) ? ++e[K] : Qi(e, K, 1);
  22534. });
  22535. function wy(e, S, K) {
  22536. var ot = re(e) ? Sl : ug;
  22537. return K && ei(e, S, K) && (S = E), ot(e, qt(S, 3));
  22538. }
  22539. function My(e, S) {
  22540. var K = re(e) ? mr : Ul;
  22541. return K(e, qt(S, 3));
  22542. }
  22543. var Cy = xc(zc), ky = xc(Yc);
  22544. function Ay(e, S) {
  22545. return Ve(Zo(e, S), 1);
  22546. }
  22547. function Ty(e, S) {
  22548. return Ve(Zo(e, S), A);
  22549. }
  22550. function Py(e, S, K) {
  22551. return K = K === E ? 1 : ne(K), Ve(Zo(e, S), K);
  22552. }
  22553. function Vc(e, S) {
  22554. var K = re(e) ? bi : br;
  22555. return K(e, qt(S, 3));
  22556. }
  22557. function $c(e, S) {
  22558. var K = re(e) ? Fd : Hl;
  22559. return K(e, qt(S, 3));
  22560. }
  22561. var Ey = zo(function(e, S, K) {
  22562. Se.call(e, K) ? e[K].push(S) : Qi(e, K, [S]);
  22563. });
  22564. function Oy(e, S, K, ot) {
  22565. e = si(e) ? e : pn(e), K = K && !ot ? ne(K) : 0;
  22566. var ut = e.length;
  22567. return K < 0 && (K = Ye(ut + K, 0)), ts(e) ? K <= ut && e.indexOf(S, K) > -1 : !!ut && qr(e, S, K) > -1;
  22568. }
  22569. var Ly = ae(function(e, S, K) {
  22570. var ot = -1, ut = typeof S == "function", mt = si(e) ? At(e.length) : [];
  22571. return br(e, function(xt) {
  22572. mt[++ot] = ut ? ci(S, xt, K) : Yn(xt, S, K);
  22573. }), mt;
  22574. }), _y = zo(function(e, S, K) {
  22575. Qi(e, K, S);
  22576. });
  22577. function Zo(e, S) {
  22578. var K = re(e) ? Ee : Jl;
  22579. return K(e, qt(S, 3));
  22580. }
  22581. function Dy(e, S, K, ot) {
  22582. return e == null ? [] : (re(S) || (S = S == null ? [] : [S]), K = ot ? E : K, re(K) || (K = K == null ? [] : [K]), ec(e, S, K));
  22583. }
  22584. var Iy = zo(function(e, S, K) {
  22585. e[K ? 0 : 1].push(S);
  22586. }, function() {
  22587. return [[], []];
  22588. });
  22589. function Ry(e, S, K) {
  22590. var ot = re(e) ? Js : kl, ut = arguments.length < 3;
  22591. return ot(e, qt(S, 4), K, ut, br);
  22592. }
  22593. function Ny(e, S, K) {
  22594. var ot = re(e) ? Vd : kl, ut = arguments.length < 3;
  22595. return ot(e, qt(S, 4), K, ut, Hl);
  22596. }
  22597. function By(e, S) {
  22598. var K = re(e) ? mr : Ul;
  22599. return K(e, qo(qt(S, 3)));
  22600. }
  22601. function jy(e) {
  22602. var S = re(e) ? zl : Og;
  22603. return S(e);
  22604. }
  22605. function Wy(e, S, K) {
  22606. (K ? ei(e, S, K) : S === E) ? S = 1 : S = ne(S);
  22607. var ot = re(e) ? ag : Lg;
  22608. return ot(e, S);
  22609. }
  22610. function zy(e) {
  22611. var S = re(e) ? hg : Dg;
  22612. return S(e);
  22613. }
  22614. function Yy(e) {
  22615. if (e == null)
  22616. return 0;
  22617. if (si(e))
  22618. return ts(e) ? tn(e) : e.length;
  22619. var S = Ke(e);
  22620. return S == it || S == lt ? e.size : ma(e).length;
  22621. }
  22622. function Xy(e, S, K) {
  22623. var ot = re(e) ? qs : Ig;
  22624. return K && ei(e, S, K) && (S = E), ot(e, qt(S, 3));
  22625. }
  22626. var Gy = ae(function(e, S) {
  22627. if (e == null)
  22628. return [];
  22629. var K = S.length;
  22630. return K > 1 && ei(e, S[0], S[1]) ? S = [] : K > 2 && ei(S[0], S[1], S[2]) && (S = [S[0]]), ec(e, Ve(S, 1), []);
  22631. }), Ko = Mf || function() {
  22632. return Fe.Date.now();
  22633. };
  22634. function Hy(e, S) {
  22635. if (typeof S != "function")
  22636. throw new Si(I);
  22637. return e = ne(e), function() {
  22638. if (--e < 1)
  22639. return S.apply(this, arguments);
  22640. };
  22641. }
  22642. function Zc(e, S, K) {
  22643. return S = K ? E : S, S = e && S == null ? e.length : S, tr(e, x, E, E, E, E, S);
  22644. }
  22645. function Kc(e, S) {
  22646. var K;
  22647. if (typeof S != "function")
  22648. throw new Si(I);
  22649. return e = ne(e), function() {
  22650. return --e > 0 && (K = S.apply(this, arguments)), e <= 1 && (S = E), K;
  22651. };
  22652. }
  22653. var za = ae(function(e, S, K) {
  22654. var ot = d;
  22655. if (K.length) {
  22656. var ut = vr(K, ln(za));
  22657. ot |= b;
  22658. }
  22659. return tr(e, ot, S, K, ut);
  22660. }), Jc = ae(function(e, S, K) {
  22661. var ot = d | P;
  22662. if (K.length) {
  22663. var ut = vr(K, ln(Jc));
  22664. ot |= b;
  22665. }
  22666. return tr(S, ot, e, K, ut);
  22667. });
  22668. function qc(e, S, K) {
  22669. S = K ? E : S;
  22670. var ot = tr(e, B, E, E, E, E, E, S);
  22671. return ot.placeholder = qc.placeholder, ot;
  22672. }
  22673. function Qc(e, S, K) {
  22674. S = K ? E : S;
  22675. var ot = tr(e, C, E, E, E, E, E, S);
  22676. return ot.placeholder = Qc.placeholder, ot;
  22677. }
  22678. function tp(e, S, K) {
  22679. var ot, ut, mt, xt, bt, Mt, Dt = 0, Rt = !1, Bt = !1, Yt = !0;
  22680. if (typeof e != "function")
  22681. throw new Si(I);
  22682. S = Ai(S) || 0, _e(K) && (Rt = !!K.leading, Bt = "maxWait" in K, mt = Bt ? Ye(Ai(K.maxWait) || 0, S) : mt, Yt = "trailing" in K ? !!K.trailing : Yt);
  22683. function Ft(Be) {
  22684. var Ii = ot, or = ut;
  22685. return ot = ut = E, Dt = Be, xt = e.apply(or, Ii), xt;
  22686. }
  22687. function Qt(Be) {
  22688. return Dt = Be, bt = Fn(le, S), Rt ? Ft(Be) : xt;
  22689. }
  22690. function se(Be) {
  22691. var Ii = Be - Mt, or = Be - Dt, xp = S - Ii;
  22692. return Bt ? Ze(xp, mt - or) : xp;
  22693. }
  22694. function te(Be) {
  22695. var Ii = Be - Mt, or = Be - Dt;
  22696. return Mt === E || Ii >= S || Ii < 0 || Bt && or >= mt;
  22697. }
  22698. function le() {
  22699. var Be = Ko();
  22700. if (te(Be))
  22701. return pe(Be);
  22702. bt = Fn(le, se(Be));
  22703. }
  22704. function pe(Be) {
  22705. return bt = E, Yt && ot ? Ft(Be) : (ot = ut = E, xt);
  22706. }
  22707. function fi() {
  22708. bt !== E && cc(bt), Dt = 0, ot = Mt = ut = bt = E;
  22709. }
  22710. function ii() {
  22711. return bt === E ? xt : pe(Ko());
  22712. }
  22713. function gi() {
  22714. var Be = Ko(), Ii = te(Be);
  22715. if (ot = arguments, ut = this, Mt = Be, Ii) {
  22716. if (bt === E)
  22717. return Qt(Mt);
  22718. if (Bt)
  22719. return cc(bt), bt = Fn(le, S), Ft(Mt);
  22720. }
  22721. return bt === E && (bt = Fn(le, S)), xt;
  22722. }
  22723. return gi.cancel = fi, gi.flush = ii, gi;
  22724. }
  22725. var Uy = ae(function(e, S) {
  22726. return Gl(e, 1, S);
  22727. }), Fy = ae(function(e, S, K) {
  22728. return Gl(e, Ai(S) || 0, K);
  22729. });
  22730. function Vy(e) {
  22731. return tr(e, c);
  22732. }
  22733. function Jo(e, S) {
  22734. if (typeof e != "function" || S != null && typeof S != "function")
  22735. throw new Si(I);
  22736. var K = function() {
  22737. var ot = arguments, ut = S ? S.apply(this, ot) : ot[0], mt = K.cache;
  22738. if (mt.has(ut))
  22739. return mt.get(ut);
  22740. var xt = e.apply(this, ot);
  22741. return K.cache = mt.set(ut, xt) || mt, xt;
  22742. };
  22743. return K.cache = new (Jo.Cache || qi)(), K;
  22744. }
  22745. Jo.Cache = qi;
  22746. function qo(e) {
  22747. if (typeof e != "function")
  22748. throw new Si(I);
  22749. return function() {
  22750. var S = arguments;
  22751. switch (S.length) {
  22752. case 0:
  22753. return !e.call(this);
  22754. case 1:
  22755. return !e.call(this, S[0]);
  22756. case 2:
  22757. return !e.call(this, S[0], S[1]);
  22758. case 3:
  22759. return !e.call(this, S[0], S[1], S[2]);
  22760. }
  22761. return !e.apply(this, S);
  22762. };
  22763. }
  22764. function $y(e) {
  22765. return Kc(2, e);
  22766. }
  22767. var Zy = Rg(function(e, S) {
  22768. S = S.length == 1 && re(S[0]) ? Ee(S[0], pi(qt())) : Ee(Ve(S, 1), pi(qt()));
  22769. var K = S.length;
  22770. return ae(function(ot) {
  22771. for (var ut = -1, mt = Ze(ot.length, K); ++ut < mt; )
  22772. ot[ut] = S[ut].call(this, ot[ut]);
  22773. return ci(e, this, ot);
  22774. });
  22775. }), Ya = ae(function(e, S) {
  22776. var K = vr(S, ln(Ya));
  22777. return tr(e, b, E, S, K);
  22778. }), ep = ae(function(e, S) {
  22779. var K = vr(S, ln(ep));
  22780. return tr(e, M, E, S, K);
  22781. }), Ky = er(function(e, S) {
  22782. return tr(e, a, E, E, E, S);
  22783. });
  22784. function Jy(e, S) {
  22785. if (typeof e != "function")
  22786. throw new Si(I);
  22787. return S = S === E ? S : ne(S), ae(e, S);
  22788. }
  22789. function qy(e, S) {
  22790. if (typeof e != "function")
  22791. throw new Si(I);
  22792. return S = S == null ? 0 : Ye(ne(S), 0), ae(function(K) {
  22793. var ot = K[S], ut = Mr(K, 0, S);
  22794. return ot && yr(ut, ot), ci(e, this, ut);
  22795. });
  22796. }
  22797. function Qy(e, S, K) {
  22798. var ot = !0, ut = !0;
  22799. if (typeof e != "function")
  22800. throw new Si(I);
  22801. return _e(K) && (ot = "leading" in K ? !!K.leading : ot, ut = "trailing" in K ? !!K.trailing : ut), tp(e, S, {
  22802. leading: ot,
  22803. maxWait: S,
  22804. trailing: ut
  22805. });
  22806. }
  22807. function tv(e) {
  22808. return Zc(e, 1);
  22809. }
  22810. function ev(e, S) {
  22811. return Ya(ka(S), e);
  22812. }
  22813. function iv() {
  22814. if (!arguments.length)
  22815. return [];
  22816. var e = arguments[0];
  22817. return re(e) ? e : [e];
  22818. }
  22819. function rv(e) {
  22820. return Mi(e, w);
  22821. }
  22822. function nv(e, S) {
  22823. return S = typeof S == "function" ? S : E, Mi(e, w, S);
  22824. }
  22825. function ov(e) {
  22826. return Mi(e, W | w);
  22827. }
  22828. function sv(e, S) {
  22829. return S = typeof S == "function" ? S : E, Mi(e, W | w, S);
  22830. }
  22831. function av(e, S) {
  22832. return S == null || Xl(e, S, Ue(S));
  22833. }
  22834. function Di(e, S) {
  22835. return e === S || e !== e && S !== S;
  22836. }
  22837. var hv = Ho(da), lv = Ho(function(e, S) {
  22838. return e >= S;
  22839. }), Xr = $l(function() {
  22840. return arguments;
  22841. }()) ? $l : function(e) {
  22842. return Ie(e) && Se.call(e, "callee") && !Il.call(e, "callee");
  22843. }, re = At.isArray, cv = gl ? pi(gl) : vg;
  22844. function si(e) {
  22845. return e != null && Qo(e.length) && !rr(e);
  22846. }
  22847. function Ne(e) {
  22848. return Ie(e) && si(e);
  22849. }
  22850. function pv(e) {
  22851. return e === !0 || e === !1 || Ie(e) && ti(e) == Q;
  22852. }
  22853. var Cr = kf || qa, uv = ml ? pi(ml) : xg;
  22854. function dv(e) {
  22855. return Ie(e) && e.nodeType === 1 && !Vn(e);
  22856. }
  22857. function fv(e) {
  22858. if (e == null)
  22859. return !0;
  22860. if (si(e) && (re(e) || typeof e == "string" || typeof e.splice == "function" || Cr(e) || cn(e) || Xr(e)))
  22861. return !e.length;
  22862. var S = Ke(e);
  22863. if (S == it || S == lt)
  22864. return !e.size;
  22865. if (Un(e))
  22866. return !ma(e).length;
  22867. for (var K in e)
  22868. if (Se.call(e, K))
  22869. return !1;
  22870. return !0;
  22871. }
  22872. function gv(e, S) {
  22873. return Xn(e, S);
  22874. }
  22875. function mv(e, S, K) {
  22876. K = typeof K == "function" ? K : E;
  22877. var ot = K ? K(e, S) : E;
  22878. return ot === E ? Xn(e, S, E, K) : !!ot;
  22879. }
  22880. function Xa(e) {
  22881. if (!Ie(e))
  22882. return !1;
  22883. var S = ti(e);
  22884. return S == z || S == G || typeof e.message == "string" && typeof e.name == "string" && !Vn(e);
  22885. }
  22886. function yv(e) {
  22887. return typeof e == "number" && Nl(e);
  22888. }
  22889. function rr(e) {
  22890. if (!_e(e))
  22891. return !1;
  22892. var S = ti(e);
  22893. return S == V || S == q || S == F || S == gt;
  22894. }
  22895. function ip(e) {
  22896. return typeof e == "number" && e == ne(e);
  22897. }
  22898. function Qo(e) {
  22899. return typeof e == "number" && e > -1 && e % 1 == 0 && e <= _;
  22900. }
  22901. function _e(e) {
  22902. var S = typeof e;
  22903. return e != null && (S == "object" || S == "function");
  22904. }
  22905. function Ie(e) {
  22906. return e != null && typeof e == "object";
  22907. }
  22908. var rp = yl ? pi(yl) : Sg;
  22909. function vv(e, S) {
  22910. return e === S || ga(e, S, _a(S));
  22911. }
  22912. function xv(e, S, K) {
  22913. return K = typeof K == "function" ? K : E, ga(e, S, _a(S), K);
  22914. }
  22915. function bv(e) {
  22916. return np(e) && e != +e;
  22917. }
  22918. function Sv(e) {
  22919. if (nm(e))
  22920. throw new ie(R);
  22921. return Zl(e);
  22922. }
  22923. function wv(e) {
  22924. return e === null;
  22925. }
  22926. function Mv(e) {
  22927. return e == null;
  22928. }
  22929. function np(e) {
  22930. return typeof e == "number" || Ie(e) && ti(e) == et;
  22931. }
  22932. function Vn(e) {
  22933. if (!Ie(e) || ti(e) != rt)
  22934. return !1;
  22935. var S = Ao(e);
  22936. if (S === null)
  22937. return !0;
  22938. var K = Se.call(S, "constructor") && S.constructor;
  22939. return typeof K == "function" && K instanceof K && wo.call(K) == xf;
  22940. }
  22941. var Ga = vl ? pi(vl) : wg;
  22942. function Cv(e) {
  22943. return ip(e) && e >= -_ && e <= _;
  22944. }
  22945. var op = xl ? pi(xl) : Mg;
  22946. function ts(e) {
  22947. return typeof e == "string" || !re(e) && Ie(e) && ti(e) == at;
  22948. }
  22949. function di(e) {
  22950. return typeof e == "symbol" || Ie(e) && ti(e) == J;
  22951. }
  22952. var cn = bl ? pi(bl) : Cg;
  22953. function kv(e) {
  22954. return e === E;
  22955. }
  22956. function Av(e) {
  22957. return Ie(e) && Ke(e) == st;
  22958. }
  22959. function Tv(e) {
  22960. return Ie(e) && ti(e) == ht;
  22961. }
  22962. var Pv = Ho(ya), Ev = Ho(function(e, S) {
  22963. return e <= S;
  22964. });
  22965. function sp(e) {
  22966. if (!e)
  22967. return [];
  22968. if (si(e))
  22969. return ts(e) ? Li(e) : oi(e);
  22970. if (In && e[In])
  22971. return af(e[In]());
  22972. var S = Ke(e), K = S == it ? na : S == lt ? xo : pn;
  22973. return K(e);
  22974. }
  22975. function nr(e) {
  22976. if (!e)
  22977. return e === 0 ? e : 0;
  22978. if (e = Ai(e), e === A || e === -A) {
  22979. var S = e < 0 ? -1 : 1;
  22980. return S * D;
  22981. }
  22982. return e === e ? e : 0;
  22983. }
  22984. function ne(e) {
  22985. var S = nr(e), K = S % 1;
  22986. return S === S ? K ? S - K : S : 0;
  22987. }
  22988. function ap(e) {
  22989. return e ? jr(ne(e), 0, T) : 0;
  22990. }
  22991. function Ai(e) {
  22992. if (typeof e == "number")
  22993. return e;
  22994. if (di(e))
  22995. return j;
  22996. if (_e(e)) {
  22997. var S = typeof e.valueOf == "function" ? e.valueOf() : e;
  22998. e = _e(S) ? S + "" : S;
  22999. }
  23000. if (typeof e != "string")
  23001. return e === 0 ? e : +e;
  23002. e = Al(e);
  23003. var K = De.test(e);
  23004. return K || Kr.test(e) ? Gd(e.slice(2), K ? 2 : 8) : ge.test(e) ? j : +e;
  23005. }
  23006. function hp(e) {
  23007. return Xi(e, ai(e));
  23008. }
  23009. function Ov(e) {
  23010. return e ? jr(ne(e), -_, _) : e === 0 ? e : 0;
  23011. }
  23012. function xe(e) {
  23013. return e == null ? "" : ui(e);
  23014. }
  23015. var Lv = an(function(e, S) {
  23016. if (Un(S) || si(S)) {
  23017. Xi(S, Ue(S), e);
  23018. return;
  23019. }
  23020. for (var K in S)
  23021. Se.call(S, K) && Wn(e, K, S[K]);
  23022. }), lp = an(function(e, S) {
  23023. Xi(S, ai(S), e);
  23024. }), es = an(function(e, S, K, ot) {
  23025. Xi(S, ai(S), e, ot);
  23026. }), _v = an(function(e, S, K, ot) {
  23027. Xi(S, Ue(S), e, ot);
  23028. }), Dv = er(ca);
  23029. function Iv(e, S) {
  23030. var K = sn(e);
  23031. return S == null ? K : Yl(K, S);
  23032. }
  23033. var Rv = ae(function(e, S) {
  23034. e = Ce(e);
  23035. var K = -1, ot = S.length, ut = ot > 2 ? S[2] : E;
  23036. for (ut && ei(S[0], S[1], ut) && (ot = 1); ++K < ot; )
  23037. for (var mt = S[K], xt = ai(mt), bt = -1, Mt = xt.length; ++bt < Mt; ) {
  23038. var Dt = xt[bt], Rt = e[Dt];
  23039. (Rt === E || Di(Rt, rn[Dt]) && !Se.call(e, Dt)) && (e[Dt] = mt[Dt]);
  23040. }
  23041. return e;
  23042. }), Nv = ae(function(e) {
  23043. return e.push(E, Ac), ci(cp, E, e);
  23044. });
  23045. function Bv(e, S) {
  23046. return wl(e, qt(S, 3), Yi);
  23047. }
  23048. function jv(e, S) {
  23049. return wl(e, qt(S, 3), ua);
  23050. }
  23051. function Wv(e, S) {
  23052. return e == null ? e : pa(e, qt(S, 3), ai);
  23053. }
  23054. function zv(e, S) {
  23055. return e == null ? e : Fl(e, qt(S, 3), ai);
  23056. }
  23057. function Yv(e, S) {
  23058. return e && Yi(e, qt(S, 3));
  23059. }
  23060. function Xv(e, S) {
  23061. return e && ua(e, qt(S, 3));
  23062. }
  23063. function Gv(e) {
  23064. return e == null ? [] : No(e, Ue(e));
  23065. }
  23066. function Hv(e) {
  23067. return e == null ? [] : No(e, ai(e));
  23068. }
  23069. function Ha(e, S, K) {
  23070. var ot = e == null ? E : Wr(e, S);
  23071. return ot === E ? K : ot;
  23072. }
  23073. function Uv(e, S) {
  23074. return e != null && Ec(e, S, fg);
  23075. }
  23076. function Ua(e, S) {
  23077. return e != null && Ec(e, S, gg);
  23078. }
  23079. var Fv = Sc(function(e, S, K) {
  23080. S != null && typeof S.toString != "function" && (S = Mo.call(S)), e[S] = K;
  23081. }, Va(hi)), Vv = Sc(function(e, S, K) {
  23082. S != null && typeof S.toString != "function" && (S = Mo.call(S)), Se.call(e, S) ? e[S].push(K) : e[S] = [K];
  23083. }, qt), $v = ae(Yn);
  23084. function Ue(e) {
  23085. return si(e) ? Wl(e) : ma(e);
  23086. }
  23087. function ai(e) {
  23088. return si(e) ? Wl(e, !0) : kg(e);
  23089. }
  23090. function Zv(e, S) {
  23091. var K = {};
  23092. return S = qt(S, 3), Yi(e, function(ot, ut, mt) {
  23093. Qi(K, S(ot, ut, mt), ot);
  23094. }), K;
  23095. }
  23096. function Kv(e, S) {
  23097. var K = {};
  23098. return S = qt(S, 3), Yi(e, function(ot, ut, mt) {
  23099. Qi(K, ut, S(ot, ut, mt));
  23100. }), K;
  23101. }
  23102. var Jv = an(function(e, S, K) {
  23103. Bo(e, S, K);
  23104. }), cp = an(function(e, S, K, ot) {
  23105. Bo(e, S, K, ot);
  23106. }), qv = er(function(e, S) {
  23107. var K = {};
  23108. if (e == null)
  23109. return K;
  23110. var ot = !1;
  23111. S = Ee(S, function(mt) {
  23112. return mt = wr(mt, e), ot || (ot = mt.length > 1), mt;
  23113. }), Xi(e, Oa(e), K), ot && (K = Mi(K, W | N | w, Fg));
  23114. for (var ut = S.length; ut--; )
  23115. wa(K, S[ut]);
  23116. return K;
  23117. });
  23118. function Qv(e, S) {
  23119. return pp(e, qo(qt(S)));
  23120. }
  23121. var tx = er(function(e, S) {
  23122. return e == null ? {} : Tg(e, S);
  23123. });
  23124. function pp(e, S) {
  23125. if (e == null)
  23126. return {};
  23127. var K = Ee(Oa(e), function(ot) {
  23128. return [ot];
  23129. });
  23130. return S = qt(S), ic(e, K, function(ot, ut) {
  23131. return S(ot, ut[0]);
  23132. });
  23133. }
  23134. function ex(e, S, K) {
  23135. S = wr(S, e);
  23136. var ot = -1, ut = S.length;
  23137. for (ut || (ut = 1, e = E); ++ot < ut; ) {
  23138. var mt = e == null ? E : e[Gi(S[ot])];
  23139. mt === E && (ot = ut, mt = K), e = rr(mt) ? mt.call(e) : mt;
  23140. }
  23141. return e;
  23142. }
  23143. function ix(e, S, K) {
  23144. return e == null ? e : Gn(e, S, K);
  23145. }
  23146. function rx(e, S, K, ot) {
  23147. return ot = typeof ot == "function" ? ot : E, e == null ? e : Gn(e, S, K, ot);
  23148. }
  23149. var up = Cc(Ue), dp = Cc(ai);
  23150. function nx(e, S, K) {
  23151. var ot = re(e), ut = ot || Cr(e) || cn(e);
  23152. if (S = qt(S, 4), K == null) {
  23153. var mt = e && e.constructor;
  23154. ut ? K = ot ? new mt() : [] : _e(e) ? K = rr(mt) ? sn(Ao(e)) : {} : K = {};
  23155. }
  23156. return (ut ? bi : Yi)(e, function(xt, bt, Mt) {
  23157. return S(K, xt, bt, Mt);
  23158. }), K;
  23159. }
  23160. function ox(e, S) {
  23161. return e == null ? !0 : wa(e, S);
  23162. }
  23163. function sx(e, S, K) {
  23164. return e == null ? e : ac(e, S, ka(K));
  23165. }
  23166. function ax(e, S, K, ot) {
  23167. return ot = typeof ot == "function" ? ot : E, e == null ? e : ac(e, S, ka(K), ot);
  23168. }
  23169. function pn(e) {
  23170. return e == null ? [] : ra(e, Ue(e));
  23171. }
  23172. function hx(e) {
  23173. return e == null ? [] : ra(e, ai(e));
  23174. }
  23175. function lx(e, S, K) {
  23176. return K === E && (K = S, S = E), K !== E && (K = Ai(K), K = K === K ? K : 0), S !== E && (S = Ai(S), S = S === S ? S : 0), jr(Ai(e), S, K);
  23177. }
  23178. function cx(e, S, K) {
  23179. return S = nr(S), K === E ? (K = S, S = 0) : K = nr(K), e = Ai(e), mg(e, S, K);
  23180. }
  23181. function px(e, S, K) {
  23182. if (K && typeof K != "boolean" && ei(e, S, K) && (S = K = E), K === E && (typeof S == "boolean" ? (K = S, S = E) : typeof e == "boolean" && (K = e, e = E)), e === E && S === E ? (e = 0, S = 1) : (e = nr(e), S === E ? (S = e, e = 0) : S = nr(S)), e > S) {
  23183. var ot = e;
  23184. e = S, S = ot;
  23185. }
  23186. if (K || e % 1 || S % 1) {
  23187. var ut = Bl();
  23188. return Ze(e + ut * (S - e + Xd("1e-" + ((ut + "").length - 1))), S);
  23189. }
  23190. return xa(e, S);
  23191. }
  23192. var ux = hn(function(e, S, K) {
  23193. return S = S.toLowerCase(), e + (K ? fp(S) : S);
  23194. });
  23195. function fp(e) {
  23196. return Fa(xe(e).toLowerCase());
  23197. }
  23198. function gp(e) {
  23199. return e = xe(e), e && e.replace(dd, ef).replace(_d, "");
  23200. }
  23201. function dx(e, S, K) {
  23202. e = xe(e), S = ui(S);
  23203. var ot = e.length;
  23204. K = K === E ? ot : jr(ne(K), 0, ot);
  23205. var ut = K;
  23206. return K -= S.length, K >= 0 && e.slice(K, ut) == S;
  23207. }
  23208. function fx(e) {
  23209. return e = xe(e), e && Vt.test(e) ? e.replace(be, rf) : e;
  23210. }
  23211. function gx(e) {
  23212. return e = xe(e), e && Ln.test(e) ? e.replace(On, "\\$&") : e;
  23213. }
  23214. var mx = hn(function(e, S, K) {
  23215. return e + (K ? "-" : "") + S.toLowerCase();
  23216. }), yx = hn(function(e, S, K) {
  23217. return e + (K ? " " : "") + S.toLowerCase();
  23218. }), vx = vc("toLowerCase");
  23219. function xx(e, S, K) {
  23220. e = xe(e), S = ne(S);
  23221. var ot = S ? tn(e) : 0;
  23222. if (!S || ot >= S)
  23223. return e;
  23224. var ut = (S - ot) / 2;
  23225. return Go(Oo(ut), K) + e + Go(Eo(ut), K);
  23226. }
  23227. function bx(e, S, K) {
  23228. e = xe(e), S = ne(S);
  23229. var ot = S ? tn(e) : 0;
  23230. return S && ot < S ? e + Go(S - ot, K) : e;
  23231. }
  23232. function Sx(e, S, K) {
  23233. e = xe(e), S = ne(S);
  23234. var ot = S ? tn(e) : 0;
  23235. return S && ot < S ? Go(S - ot, K) + e : e;
  23236. }
  23237. function wx(e, S, K) {
  23238. return K || S == null ? S = 0 : S && (S = +S), Ef(xe(e).replace(Zr, ""), S || 0);
  23239. }
  23240. function Mx(e, S, K) {
  23241. return (K ? ei(e, S, K) : S === E) ? S = 1 : S = ne(S), ba(xe(e), S);
  23242. }
  23243. function Cx() {
  23244. var e = arguments, S = xe(e[0]);
  23245. return e.length < 3 ? S : S.replace(e[1], e[2]);
  23246. }
  23247. var kx = hn(function(e, S, K) {
  23248. return e + (K ? "_" : "") + S.toLowerCase();
  23249. });
  23250. function Ax(e, S, K) {
  23251. return K && typeof K != "number" && ei(e, S, K) && (S = K = E), K = K === E ? T : K >>> 0, K ? (e = xe(e), e && (typeof S == "string" || S != null && !Ga(S)) && (S = ui(S), !S && Qr(e)) ? Mr(Li(e), 0, K) : e.split(S, K)) : [];
  23252. }
  23253. var Tx = hn(function(e, S, K) {
  23254. return e + (K ? " " : "") + Fa(S);
  23255. });
  23256. function Px(e, S, K) {
  23257. return e = xe(e), K = K == null ? 0 : jr(ne(K), 0, e.length), S = ui(S), e.slice(K, K + S.length) == S;
  23258. }
  23259. function Ex(e, S, K) {
  23260. var ot = ft.templateSettings;
  23261. K && ei(e, S, K) && (S = E), e = xe(e), S = es({}, S, ot, kc);
  23262. var ut = es({}, S.imports, ot.imports, kc), mt = Ue(ut), xt = ra(ut, mt), bt, Mt, Dt = 0, Rt = S.interpolate || fo, Bt = "__p += '", Yt = oa(
  23263. (S.escape || fo).source + "|" + Rt.source + "|" + (Rt === co ? $t : fo).source + "|" + (S.evaluate || fo).source + "|$",
  23264. "g"
  23265. ), Ft = "//# sourceURL=" + (Se.call(S, "sourceURL") ? (S.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Bd + "]") + `
  23266. `;
  23267. e.replace(Yt, function(te, le, pe, fi, ii, gi) {
  23268. return pe || (pe = fi), Bt += e.slice(Dt, gi).replace(fd, nf), le && (bt = !0, Bt += `' +
  23269. __e(` + le + `) +
  23270. '`), ii && (Mt = !0, Bt += `';
  23271. ` + ii + `;
  23272. __p += '`), pe && (Bt += `' +
  23273. ((__t = (` + pe + `)) == null ? '' : __t) +
  23274. '`), Dt = gi + te.length, te;
  23275. }), Bt += `';
  23276. `;
  23277. var Qt = Se.call(S, "variable") && S.variable;
  23278. if (!Qt)
  23279. Bt = `with (obj) {
  23280. ` + Bt + `
  23281. }
  23282. `;
  23283. else if (_n.test(Qt))
  23284. throw new ie(Z);
  23285. Bt = (Mt ? Bt.replace(Kt, "") : Bt).replace(Gt, "$1").replace(Wt, "$1;"), Bt = "function(" + (Qt || "obj") + `) {
  23286. ` + (Qt ? "" : `obj || (obj = {});
  23287. `) + "var __t, __p = ''" + (bt ? ", __e = _.escape" : "") + (Mt ? `, __j = Array.prototype.join;
  23288. function print() { __p += __j.call(arguments, '') }
  23289. ` : `;
  23290. `) + Bt + `return __p
  23291. }`;
  23292. var se = yp(function() {
  23293. return ve(mt, Ft + "return " + Bt).apply(E, xt);
  23294. });
  23295. if (se.source = Bt, Xa(se))
  23296. throw se;
  23297. return se;
  23298. }
  23299. function Ox(e) {
  23300. return xe(e).toLowerCase();
  23301. }
  23302. function Lx(e) {
  23303. return xe(e).toUpperCase();
  23304. }
  23305. function _x(e, S, K) {
  23306. if (e = xe(e), e && (K || S === E))
  23307. return Al(e);
  23308. if (!e || !(S = ui(S)))
  23309. return e;
  23310. var ot = Li(e), ut = Li(S), mt = Tl(ot, ut), xt = Pl(ot, ut) + 1;
  23311. return Mr(ot, mt, xt).join("");
  23312. }
  23313. function Dx(e, S, K) {
  23314. if (e = xe(e), e && (K || S === E))
  23315. return e.slice(0, Ol(e) + 1);
  23316. if (!e || !(S = ui(S)))
  23317. return e;
  23318. var ot = Li(e), ut = Pl(ot, Li(S)) + 1;
  23319. return Mr(ot, 0, ut).join("");
  23320. }
  23321. function Ix(e, S, K) {
  23322. if (e = xe(e), e && (K || S === E))
  23323. return e.replace(Zr, "");
  23324. if (!e || !(S = ui(S)))
  23325. return e;
  23326. var ot = Li(e), ut = Tl(ot, Li(S));
  23327. return Mr(ot, ut).join("");
  23328. }
  23329. function Rx(e, S) {
  23330. var K = p, ot = i;
  23331. if (_e(S)) {
  23332. var ut = "separator" in S ? S.separator : ut;
  23333. K = "length" in S ? ne(S.length) : K, ot = "omission" in S ? ui(S.omission) : ot;
  23334. }
  23335. e = xe(e);
  23336. var mt = e.length;
  23337. if (Qr(e)) {
  23338. var xt = Li(e);
  23339. mt = xt.length;
  23340. }
  23341. if (K >= mt)
  23342. return e;
  23343. var bt = K - tn(ot);
  23344. if (bt < 1)
  23345. return ot;
  23346. var Mt = xt ? Mr(xt, 0, bt).join("") : e.slice(0, bt);
  23347. if (ut === E)
  23348. return Mt + ot;
  23349. if (xt && (bt += Mt.length - bt), Ga(ut)) {
  23350. if (e.slice(bt).search(ut)) {
  23351. var Dt, Rt = Mt;
  23352. for (ut.global || (ut = oa(ut.source, xe(ue.exec(ut)) + "g")), ut.lastIndex = 0; Dt = ut.exec(Rt); )
  23353. var Bt = Dt.index;
  23354. Mt = Mt.slice(0, Bt === E ? bt : Bt);
  23355. }
  23356. } else if (e.indexOf(ui(ut), bt) != bt) {
  23357. var Yt = Mt.lastIndexOf(ut);
  23358. Yt > -1 && (Mt = Mt.slice(0, Yt));
  23359. }
  23360. return Mt + ot;
  23361. }
  23362. function Nx(e) {
  23363. return e = xe(e), e && zt.test(e) ? e.replace(Jt, pf) : e;
  23364. }
  23365. var Bx = hn(function(e, S, K) {
  23366. return e + (K ? " " : "") + S.toUpperCase();
  23367. }), Fa = vc("toUpperCase");
  23368. function mp(e, S, K) {
  23369. return e = xe(e), S = K ? E : S, S === E ? sf(e) ? ff(e) : Kd(e) : e.match(S) || [];
  23370. }
  23371. var yp = ae(function(e, S) {
  23372. try {
  23373. return ci(e, E, S);
  23374. } catch (K) {
  23375. return Xa(K) ? K : new ie(K);
  23376. }
  23377. }), jx = er(function(e, S) {
  23378. return bi(S, function(K) {
  23379. K = Gi(K), Qi(e, K, za(e[K], e));
  23380. }), e;
  23381. });
  23382. function Wx(e) {
  23383. var S = e == null ? 0 : e.length, K = qt();
  23384. return e = S ? Ee(e, function(ot) {
  23385. if (typeof ot[1] != "function")
  23386. throw new Si(I);
  23387. return [K(ot[0]), ot[1]];
  23388. }) : [], ae(function(ot) {
  23389. for (var ut = -1; ++ut < S; ) {
  23390. var mt = e[ut];
  23391. if (ci(mt[0], this, ot))
  23392. return ci(mt[1], this, ot);
  23393. }
  23394. });
  23395. }
  23396. function zx(e) {
  23397. return pg(Mi(e, W));
  23398. }
  23399. function Va(e) {
  23400. return function() {
  23401. return e;
  23402. };
  23403. }
  23404. function Yx(e, S) {
  23405. return e == null || e !== e ? S : e;
  23406. }
  23407. var Xx = bc(), Gx = bc(!0);
  23408. function hi(e) {
  23409. return e;
  23410. }
  23411. function $a(e) {
  23412. return Kl(typeof e == "function" ? e : Mi(e, W));
  23413. }
  23414. function Hx(e) {
  23415. return ql(Mi(e, W));
  23416. }
  23417. function Ux(e, S) {
  23418. return Ql(e, Mi(S, W));
  23419. }
  23420. var Fx = ae(function(e, S) {
  23421. return function(K) {
  23422. return Yn(K, e, S);
  23423. };
  23424. }), Vx = ae(function(e, S) {
  23425. return function(K) {
  23426. return Yn(e, K, S);
  23427. };
  23428. });
  23429. function Za(e, S, K) {
  23430. var ot = Ue(S), ut = No(S, ot);
  23431. K == null && !(_e(S) && (ut.length || !ot.length)) && (K = S, S = e, e = this, ut = No(S, Ue(S)));
  23432. var mt = !(_e(K) && "chain" in K) || !!K.chain, xt = rr(e);
  23433. return bi(ut, function(bt) {
  23434. var Mt = S[bt];
  23435. e[bt] = Mt, xt && (e.prototype[bt] = function() {
  23436. var Dt = this.__chain__;
  23437. if (mt || Dt) {
  23438. var Rt = e(this.__wrapped__), Bt = Rt.__actions__ = oi(this.__actions__);
  23439. return Bt.push({ func: Mt, args: arguments, thisArg: e }), Rt.__chain__ = Dt, Rt;
  23440. }
  23441. return Mt.apply(e, yr([this.value()], arguments));
  23442. });
  23443. }), e;
  23444. }
  23445. function $x() {
  23446. return Fe._ === this && (Fe._ = bf), this;
  23447. }
  23448. function Ka() {
  23449. }
  23450. function Zx(e) {
  23451. return e = ne(e), ae(function(S) {
  23452. return tc(S, e);
  23453. });
  23454. }
  23455. var Kx = Ta(Ee), Jx = Ta(Sl), qx = Ta(qs);
  23456. function vp(e) {
  23457. return Ia(e) ? Qs(Gi(e)) : Pg(e);
  23458. }
  23459. function Qx(e) {
  23460. return function(S) {
  23461. return e == null ? E : Wr(e, S);
  23462. };
  23463. }
  23464. var t0 = wc(), e0 = wc(!0);
  23465. function Ja() {
  23466. return [];
  23467. }
  23468. function qa() {
  23469. return !1;
  23470. }
  23471. function i0() {
  23472. return {};
  23473. }
  23474. function r0() {
  23475. return "";
  23476. }
  23477. function n0() {
  23478. return !0;
  23479. }
  23480. function o0(e, S) {
  23481. if (e = ne(e), e < 1 || e > _)
  23482. return [];
  23483. var K = T, ot = Ze(e, T);
  23484. S = qt(S), e -= T;
  23485. for (var ut = ia(ot, S); ++K < e; )
  23486. S(K);
  23487. return ut;
  23488. }
  23489. function s0(e) {
  23490. return re(e) ? Ee(e, Gi) : di(e) ? [e] : oi(jc(xe(e)));
  23491. }
  23492. function a0(e) {
  23493. var S = ++vf;
  23494. return xe(e) + S;
  23495. }
  23496. var h0 = Xo(function(e, S) {
  23497. return e + S;
  23498. }, 0), l0 = Pa("ceil"), c0 = Xo(function(e, S) {
  23499. return e / S;
  23500. }, 1), p0 = Pa("floor");
  23501. function u0(e) {
  23502. return e && e.length ? Ro(e, hi, da) : E;
  23503. }
  23504. function d0(e, S) {
  23505. return e && e.length ? Ro(e, qt(S, 2), da) : E;
  23506. }
  23507. function f0(e) {
  23508. return Cl(e, hi);
  23509. }
  23510. function g0(e, S) {
  23511. return Cl(e, qt(S, 2));
  23512. }
  23513. function m0(e) {
  23514. return e && e.length ? Ro(e, hi, ya) : E;
  23515. }
  23516. function y0(e, S) {
  23517. return e && e.length ? Ro(e, qt(S, 2), ya) : E;
  23518. }
  23519. var v0 = Xo(function(e, S) {
  23520. return e * S;
  23521. }, 1), x0 = Pa("round"), b0 = Xo(function(e, S) {
  23522. return e - S;
  23523. }, 0);
  23524. function S0(e) {
  23525. return e && e.length ? ea(e, hi) : 0;
  23526. }
  23527. function w0(e, S) {
  23528. return e && e.length ? ea(e, qt(S, 2)) : 0;
  23529. }
  23530. return ft.after = Hy, ft.ary = Zc, ft.assign = Lv, ft.assignIn = lp, ft.assignInWith = es, ft.assignWith = _v, ft.at = Dv, ft.before = Kc, ft.bind = za, ft.bindAll = jx, ft.bindKey = Jc, ft.castArray = iv, ft.chain = Fc, ft.chunk = pm, ft.compact = um, ft.concat = dm, ft.cond = Wx, ft.conforms = zx, ft.constant = Va, ft.countBy = Sy, ft.create = Iv, ft.curry = qc, ft.curryRight = Qc, ft.debounce = tp, ft.defaults = Rv, ft.defaultsDeep = Nv, ft.defer = Uy, ft.delay = Fy, ft.difference = fm, ft.differenceBy = gm, ft.differenceWith = mm, ft.drop = ym, ft.dropRight = vm, ft.dropRightWhile = xm, ft.dropWhile = bm, ft.fill = Sm, ft.filter = My, ft.flatMap = Ay, ft.flatMapDeep = Ty, ft.flatMapDepth = Py, ft.flatten = Xc, ft.flattenDeep = wm, ft.flattenDepth = Mm, ft.flip = Vy, ft.flow = Xx, ft.flowRight = Gx, ft.fromPairs = Cm, ft.functions = Gv, ft.functionsIn = Hv, ft.groupBy = Ey, ft.initial = Am, ft.intersection = Tm, ft.intersectionBy = Pm, ft.intersectionWith = Em, ft.invert = Fv, ft.invertBy = Vv, ft.invokeMap = Ly, ft.iteratee = $a, ft.keyBy = _y, ft.keys = Ue, ft.keysIn = ai, ft.map = Zo, ft.mapKeys = Zv, ft.mapValues = Kv, ft.matches = Hx, ft.matchesProperty = Ux, ft.memoize = Jo, ft.merge = Jv, ft.mergeWith = cp, ft.method = Fx, ft.methodOf = Vx, ft.mixin = Za, ft.negate = qo, ft.nthArg = Zx, ft.omit = qv, ft.omitBy = Qv, ft.once = $y, ft.orderBy = Dy, ft.over = Kx, ft.overArgs = Zy, ft.overEvery = Jx, ft.overSome = qx, ft.partial = Ya, ft.partialRight = ep, ft.partition = Iy, ft.pick = tx, ft.pickBy = pp, ft.property = vp, ft.propertyOf = Qx, ft.pull = Dm, ft.pullAll = Hc, ft.pullAllBy = Im, ft.pullAllWith = Rm, ft.pullAt = Nm, ft.range = t0, ft.rangeRight = e0, ft.rearg = Ky, ft.reject = By, ft.remove = Bm, ft.rest = Jy, ft.reverse = ja, ft.sampleSize = Wy, ft.set = ix, ft.setWith = rx, ft.shuffle = zy, ft.slice = jm, ft.sortBy = Gy, ft.sortedUniq = Um, ft.sortedUniqBy = Fm, ft.split = Ax, ft.spread = qy, ft.tail = Vm, ft.take = $m, ft.takeRight = Zm, ft.takeRightWhile = Km, ft.takeWhile = Jm, ft.tap = uy, ft.throttle = Qy, ft.thru = $o, ft.toArray = sp, ft.toPairs = up, ft.toPairsIn = dp, ft.toPath = s0, ft.toPlainObject = hp, ft.transform = nx, ft.unary = tv, ft.union = qm, ft.unionBy = Qm, ft.unionWith = ty, ft.uniq = ey, ft.uniqBy = iy, ft.uniqWith = ry, ft.unset = ox, ft.unzip = Wa, ft.unzipWith = Uc, ft.update = sx, ft.updateWith = ax, ft.values = pn, ft.valuesIn = hx, ft.without = ny, ft.words = mp, ft.wrap = ev, ft.xor = oy, ft.xorBy = sy, ft.xorWith = ay, ft.zip = hy, ft.zipObject = ly, ft.zipObjectDeep = cy, ft.zipWith = py, ft.entries = up, ft.entriesIn = dp, ft.extend = lp, ft.extendWith = es, Za(ft, ft), ft.add = h0, ft.attempt = yp, ft.camelCase = ux, ft.capitalize = fp, ft.ceil = l0, ft.clamp = lx, ft.clone = rv, ft.cloneDeep = ov, ft.cloneDeepWith = sv, ft.cloneWith = nv, ft.conformsTo = av, ft.deburr = gp, ft.defaultTo = Yx, ft.divide = c0, ft.endsWith = dx, ft.eq = Di, ft.escape = fx, ft.escapeRegExp = gx, ft.every = wy, ft.find = Cy, ft.findIndex = zc, ft.findKey = Bv, ft.findLast = ky, ft.findLastIndex = Yc, ft.findLastKey = jv, ft.floor = p0, ft.forEach = Vc, ft.forEachRight = $c, ft.forIn = Wv, ft.forInRight = zv, ft.forOwn = Yv, ft.forOwnRight = Xv, ft.get = Ha, ft.gt = hv, ft.gte = lv, ft.has = Uv, ft.hasIn = Ua, ft.head = Gc, ft.identity = hi, ft.includes = Oy, ft.indexOf = km, ft.inRange = cx, ft.invoke = $v, ft.isArguments = Xr, ft.isArray = re, ft.isArrayBuffer = cv, ft.isArrayLike = si, ft.isArrayLikeObject = Ne, ft.isBoolean = pv, ft.isBuffer = Cr, ft.isDate = uv, ft.isElement = dv, ft.isEmpty = fv, ft.isEqual = gv, ft.isEqualWith = mv, ft.isError = Xa, ft.isFinite = yv, ft.isFunction = rr, ft.isInteger = ip, ft.isLength = Qo, ft.isMap = rp, ft.isMatch = vv, ft.isMatchWith = xv, ft.isNaN = bv, ft.isNative = Sv, ft.isNil = Mv, ft.isNull = wv, ft.isNumber = np, ft.isObject = _e, ft.isObjectLike = Ie, ft.isPlainObject = Vn, ft.isRegExp = Ga, ft.isSafeInteger = Cv, ft.isSet = op, ft.isString = ts, ft.isSymbol = di, ft.isTypedArray = cn, ft.isUndefined = kv, ft.isWeakMap = Av, ft.isWeakSet = Tv, ft.join = Om, ft.kebabCase = mx, ft.last = ki, ft.lastIndexOf = Lm, ft.lowerCase = yx, ft.lowerFirst = vx, ft.lt = Pv, ft.lte = Ev, ft.max = u0, ft.maxBy = d0, ft.mean = f0, ft.meanBy = g0, ft.min = m0, ft.minBy = y0, ft.stubArray = Ja, ft.stubFalse = qa, ft.stubObject = i0, ft.stubString = r0, ft.stubTrue = n0, ft.multiply = v0, ft.nth = _m, ft.noConflict = $x, ft.noop = Ka, ft.now = Ko, ft.pad = xx, ft.padEnd = bx, ft.padStart = Sx, ft.parseInt = wx, ft.random = px, ft.reduce = Ry, ft.reduceRight = Ny, ft.repeat = Mx, ft.replace = Cx, ft.result = ex, ft.round = x0, ft.runInContext = wt, ft.sample = jy, ft.size = Yy, ft.snakeCase = kx, ft.some = Xy, ft.sortedIndex = Wm, ft.sortedIndexBy = zm, ft.sortedIndexOf = Ym, ft.sortedLastIndex = Xm, ft.sortedLastIndexBy = Gm, ft.sortedLastIndexOf = Hm, ft.startCase = Tx, ft.startsWith = Px, ft.subtract = b0, ft.sum = S0, ft.sumBy = w0, ft.template = Ex, ft.times = o0, ft.toFinite = nr, ft.toInteger = ne, ft.toLength = ap, ft.toLower = Ox, ft.toNumber = Ai, ft.toSafeInteger = Ov, ft.toString = xe, ft.toUpper = Lx, ft.trim = _x, ft.trimEnd = Dx, ft.trimStart = Ix, ft.truncate = Rx, ft.unescape = Nx, ft.uniqueId = a0, ft.upperCase = Bx, ft.upperFirst = Fa, ft.each = Vc, ft.eachRight = $c, ft.first = Gc, Za(ft, function() {
  23531. var e = {};
  23532. return Yi(ft, function(S, K) {
  23533. Se.call(ft.prototype, K) || (e[K] = S);
  23534. }), e;
  23535. }(), { chain: !1 }), ft.VERSION = h, bi(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
  23536. ft[e].placeholder = ft;
  23537. }), bi(["drop", "take"], function(e, S) {
  23538. ce.prototype[e] = function(K) {
  23539. K = K === E ? 1 : Ye(ne(K), 0);
  23540. var ot = this.__filtered__ && !S ? new ce(this) : this.clone();
  23541. return ot.__filtered__ ? ot.__takeCount__ = Ze(K, ot.__takeCount__) : ot.__views__.push({
  23542. size: Ze(K, T),
  23543. type: e + (ot.__dir__ < 0 ? "Right" : "")
  23544. }), ot;
  23545. }, ce.prototype[e + "Right"] = function(K) {
  23546. return this.reverse()[e](K).reverse();
  23547. };
  23548. }), bi(["filter", "map", "takeWhile"], function(e, S) {
  23549. var K = S + 1, ot = K == t || K == o;
  23550. ce.prototype[e] = function(ut) {
  23551. var mt = this.clone();
  23552. return mt.__iteratees__.push({
  23553. iteratee: qt(ut, 3),
  23554. type: K
  23555. }), mt.__filtered__ = mt.__filtered__ || ot, mt;
  23556. };
  23557. }), bi(["head", "last"], function(e, S) {
  23558. var K = "take" + (S ? "Right" : "");
  23559. ce.prototype[e] = function() {
  23560. return this[K](1).value()[0];
  23561. };
  23562. }), bi(["initial", "tail"], function(e, S) {
  23563. var K = "drop" + (S ? "" : "Right");
  23564. ce.prototype[e] = function() {
  23565. return this.__filtered__ ? new ce(this) : this[K](1);
  23566. };
  23567. }), ce.prototype.compact = function() {
  23568. return this.filter(hi);
  23569. }, ce.prototype.find = function(e) {
  23570. return this.filter(e).head();
  23571. }, ce.prototype.findLast = function(e) {
  23572. return this.reverse().find(e);
  23573. }, ce.prototype.invokeMap = ae(function(e, S) {
  23574. return typeof e == "function" ? new ce(this) : this.map(function(K) {
  23575. return Yn(K, e, S);
  23576. });
  23577. }), ce.prototype.reject = function(e) {
  23578. return this.filter(qo(qt(e)));
  23579. }, ce.prototype.slice = function(e, S) {
  23580. e = ne(e);
  23581. var K = this;
  23582. return K.__filtered__ && (e > 0 || S < 0) ? new ce(K) : (e < 0 ? K = K.takeRight(-e) : e && (K = K.drop(e)), S !== E && (S = ne(S), K = S < 0 ? K.dropRight(-S) : K.take(S - e)), K);
  23583. }, ce.prototype.takeRightWhile = function(e) {
  23584. return this.reverse().takeWhile(e).reverse();
  23585. }, ce.prototype.toArray = function() {
  23586. return this.take(T);
  23587. }, Yi(ce.prototype, function(e, S) {
  23588. var K = /^(?:filter|find|map|reject)|While$/.test(S), ot = /^(?:head|last)$/.test(S), ut = ft[ot ? "take" + (S == "last" ? "Right" : "") : S], mt = ot || /^find/.test(S);
  23589. ut && (ft.prototype[S] = function() {
  23590. var xt = this.__wrapped__, bt = ot ? [1] : arguments, Mt = xt instanceof ce, Dt = bt[0], Rt = Mt || re(xt), Bt = function(le) {
  23591. var pe = ut.apply(ft, yr([le], bt));
  23592. return ot && Yt ? pe[0] : pe;
  23593. };
  23594. Rt && K && typeof Dt == "function" && Dt.length != 1 && (Mt = Rt = !1);
  23595. var Yt = this.__chain__, Ft = !!this.__actions__.length, Qt = mt && !Yt, se = Mt && !Ft;
  23596. if (!mt && Rt) {
  23597. xt = se ? xt : new ce(this);
  23598. var te = e.apply(xt, bt);
  23599. return te.__actions__.push({ func: $o, args: [Bt], thisArg: E }), new wi(te, Yt);
  23600. }
  23601. return Qt && se ? e.apply(this, bt) : (te = this.thru(Bt), Qt ? ot ? te.value()[0] : te.value() : te);
  23602. });
  23603. }), bi(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
  23604. var S = bo[e], K = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", ot = /^(?:pop|shift)$/.test(e);
  23605. ft.prototype[e] = function() {
  23606. var ut = arguments;
  23607. if (ot && !this.__chain__) {
  23608. var mt = this.value();
  23609. return S.apply(re(mt) ? mt : [], ut);
  23610. }
  23611. return this[K](function(xt) {
  23612. return S.apply(re(xt) ? xt : [], ut);
  23613. });
  23614. };
  23615. }), Yi(ce.prototype, function(e, S) {
  23616. var K = ft[S];
  23617. if (K) {
  23618. var ot = K.name + "";
  23619. Se.call(on, ot) || (on[ot] = []), on[ot].push({ name: S, func: K });
  23620. }
  23621. }), on[Yo(E, P).name] = [{
  23622. name: "wrapper",
  23623. func: E
  23624. }], ce.prototype.clone = Nf, ce.prototype.reverse = Bf, ce.prototype.value = jf, ft.prototype.at = dy, ft.prototype.chain = fy, ft.prototype.commit = gy, ft.prototype.next = my, ft.prototype.plant = vy, ft.prototype.reverse = xy, ft.prototype.toJSON = ft.prototype.valueOf = ft.prototype.value = by, ft.prototype.first = ft.prototype.head, In && (ft.prototype[In] = yy), ft;
  23625. }, en = gf();
  23626. Ir ? ((Ir.exports = en)._ = en, $s._ = en) : Fe._ = en;
  23627. }).call(Hr);
  23628. })(Ss, Ss.exports);
  23629. var Bw = Ss.exports;
  23630. const ws = /* @__PURE__ */ Cn(Bw);
  23631. N0(Sn);
  23632. D0(Sn);
  23633. L0(Sn);
  23634. R0(Sn);
  23635. let ls = null, He = Xe(null), Re = Xe("zh"), nh = Xe(""), ee = Xe(null);
  23636. const Pt = M0({
  23637. //极值数据
  23638. leftIndex: -1,
  23639. //左侧上下限对应下标
  23640. rightIndex: -1,
  23641. //右侧上下限对应下标
  23642. rightTwoIndex: -1,
  23643. //右2上下限对应下标
  23644. hasLeftAxis: !1,
  23645. hasRightAxis: !1,
  23646. hasRightTwoAxis: !1,
  23647. hasXAxis: !1,
  23648. leftMin: 0,
  23649. leftMax: 0,
  23650. rightMin: 0,
  23651. rightMax: 0,
  23652. rightTwoMin: 0,
  23653. rightTwoMax: 0,
  23654. xMin: 0,
  23655. xMax: 0
  23656. });
  23657. let yi = !1, Nu = Xe(!1);
  23658. function jw() {
  23659. return {
  23660. options: ee,
  23661. axisLimitState: Pt,
  23662. chartRender: Ww,
  23663. setLimitData: oM,
  23664. isUseSelfLimit: Nu
  23665. };
  23666. }
  23667. function Ww({ data: r, renderId: g, lang: E = "zh", changeLangIsCheck: h, showChartTitle: y = !0 }) {
  23668. Pt.leftIndex = -1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1, Pt.hasLeftAxis = !1, Pt.hasRightAxis = !1, Pt.hasRightTwoAxis = !1, Pt.hasXAxis = !1, Nu.value || (Pt.leftMin = 0, Pt.leftMax = 0, Pt.rightMin = 0, Pt.rightMax = 0, Pt.rightTwoMin = 0, Pt.rightTwoMax = 0, Pt.xMin = 0, Pt.xMax = 0);
  23669. let R = {};
  23670. Re.value = E, nh.value = g, He.value = r, yi = ["/myETA/chartdetail", "/chartETA/chartdetail"].includes(window.location.pathname), r.ChartInfo.Source === 1 ? R = {
  23671. 1: Ap,
  23672. 2: Fw,
  23673. 3: sh,
  23674. 4: sh,
  23675. 5: Vw,
  23676. 6: sh,
  23677. 7: Kw,
  23678. 10: eM,
  23679. 11: rM
  23680. }[r.ChartInfo.ChartType](r) : [2, 5].includes(r.ChartInfo.Source) ? R = Qw(r) : [3].includes(r.ChartInfo.Source) ? R = tM(r) : [4, 6, 7, 8].includes(r.ChartInfo.Source) ? R = Ap(r) : [9].includes(r.ChartInfo.Source) ? R = Uw(r) : r.ChartInfo.Source === 10 && (Pt.hasLeftAxis = !0, Pt.leftMin = r.ChartInfo.LeftMin ? Number(r.ChartInfo.LeftMin) : Number(r.DataResp.YMinValue), Pt.leftMax = r.ChartInfo.LeftMax ? Number(r.ChartInfo.LeftMax) : Number(r.DataResp.YMaxValue), Pt.hasXAxis = !0, Pt.xMin = r.ChartInfo.XMin ? Number(r.ChartInfo.XMin) : Number(r.DataResp.XMinValue), Pt.xMax = r.ChartInfo.XMax ? Number(r.ChartInfo.XMax) : Number(r.DataResp.XMaxValue), R = iM(r));
  23681. let I = zw();
  23682. return ee.value = { ...fs, ...I, ...R }, Hw(y), Gw(h), (R.series ? R.series.some((H) => H.chartType === "linear") : !1) ? ls = Sn.chart(nh.value, ee.value) : ls = Sn.stockChart(nh.value, ee.value), ls;
  23683. }
  23684. function zw() {
  23685. if (!He.value.ChartInfo.ChartThemeStyle)
  23686. return {};
  23687. let r = JSON.parse(He.value.ChartInfo.ChartThemeStyle);
  23688. return {
  23689. legend: {
  23690. ...fs.legend,
  23691. ...r.legendOptions
  23692. },
  23693. chart: {
  23694. ...fs.chart,
  23695. ...r.drawOption
  23696. },
  23697. colors: r.colorsOptions
  23698. };
  23699. }
  23700. function Fi(r, g) {
  23701. const { MarkersLines: E, ChartType: h } = He.value.ChartInfo, { EdbInfoList: y } = He.value;
  23702. return E ? JSON.parse(E).filter((H) => H.isShow && H.axis === r).map((H) => {
  23703. let $ = r === 3 && g === "datetime", U;
  23704. if ($) {
  23705. let W = h === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23706. U = h === 2 ? (/* @__PURE__ */ new Date(`${W}-${H.value}`)).getTime() : new Date(H.value).getTime();
  23707. } else
  23708. U = Number(H.value);
  23709. return {
  23710. value: U,
  23711. dashStyle: H.dashStyle,
  23712. width: Number(H.lineWidth),
  23713. color: H.color,
  23714. label: {
  23715. text: H.text || "",
  23716. verticalAlign: H.textPosition,
  23717. style: {
  23718. color: H.textColor,
  23719. fontSize: H.textFontSize
  23720. }
  23721. }
  23722. };
  23723. }) : [];
  23724. }
  23725. function Vi(r, g) {
  23726. const { MarkersAreas: E, ChartType: h } = He.value.ChartInfo, { EdbInfoList: y } = He.value;
  23727. return E ? JSON.parse(E).filter((H) => H.isShow && H.axis === r).map((H) => {
  23728. let $ = r === 3 && g === "datetime", U, W;
  23729. if ($) {
  23730. let w = h === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23731. U = h === 2 ? (/* @__PURE__ */ new Date(`${w}-${H.fromValue}`)).getTime() : new Date(H.fromValue).getTime(), W = h === 2 ? (/* @__PURE__ */ new Date(`${w}-${H.toValue}`)).getTime() : new Date(H.toValue).getTime();
  23732. } else
  23733. U = Number(H.fromValue), W = Number(H.toValue);
  23734. let N = {
  23735. top: 12,
  23736. middle: 0,
  23737. bottom: -10
  23738. };
  23739. return {
  23740. from: U,
  23741. to: W,
  23742. color: H.color,
  23743. label: {
  23744. text: H.text || "",
  23745. verticalAlign: H.textPosition,
  23746. y: N[H.textPosition],
  23747. style: {
  23748. color: H.textColor,
  23749. fontSize: H.textFontSize
  23750. }
  23751. }
  23752. };
  23753. }) : [];
  23754. }
  23755. function Bu({ LatestDate: r, PredictChartColor: g }) {
  23756. return {
  23757. zoneAxis: "x",
  23758. zones: [{
  23759. value: new Date(r).getTime() + 1
  23760. }, {
  23761. dashStyle: "ShortDot",
  23762. color: g
  23763. }]
  23764. };
  23765. }
  23766. function Yw(r) {
  23767. return r ? {
  23768. zoneAxis: "x",
  23769. zones: [{
  23770. value: new Date(r).getTime() + 1
  23771. }, {
  23772. dashStyle: "ShortDot"
  23773. }]
  23774. } : {};
  23775. }
  23776. function ju(r, g) {
  23777. return Xt(g).diff(Xt(r), "years", !0) <= 1;
  23778. }
  23779. function oh(r, g) {
  23780. const { IsAxis: E, IsOrder: h, EdbInfoType: y, LeadValue: R, LeadUnit: I } = r, Z = g == "zh" ? {
  23781. 0: "右轴",
  23782. 2: "右2轴"
  23783. } : {
  23784. 0: "RHS",
  23785. 2: "2-RHS"
  23786. }, H = g == "zh" ? {
  23787. 1: "逆序"
  23788. } : {
  23789. 1: "REV"
  23790. }, $ = g == "zh" ? {
  23791. 0: "领先"
  23792. } : {
  23793. 0: "Lead"
  23794. }, U = g === "zh" ? I : T0[I];
  23795. let W = Z[E] || "", N = H[Number(h)] ? `${W ? "," : ""}${H[Number(h)]}` : "", w = $[y] ? `${W || N ? "," : ""}${$[y]}${R}${U}` : "";
  23796. return W || N || w ? `(${W}${N}${w})` : "";
  23797. }
  23798. function Ms(r, g, E = "zh") {
  23799. let h = "";
  23800. const y = r.EdbNameEn ? `${r.EdbNameEn}${oh(r, "en")}` : "", R = g.length > 1 ? `${r.EdbAliasName || r.EdbName}(${r.SourceName})${oh(r, "zh")}` : `${r.EdbAliasName || r.EdbName}${oh(r, "zh")}`;
  23801. if (h = E == "zh" ? R : y || R, h.length > 20) {
  23802. let I = [];
  23803. for (let Z = 0; Z < h.length / 20; Z++)
  23804. I.push(h.slice(Z * 20, Z * 20 + 20));
  23805. h = I.join("<br>");
  23806. }
  23807. return h;
  23808. }
  23809. function Wu(r) {
  23810. let g = r.filter((y) => y.IsAxis === 1), E = r.filter((y) => !y.IsAxis), h = r.filter((y) => y.IsAxis === 2);
  23811. return [g, E, h].flat(1 / 0);
  23812. }
  23813. function Xw() {
  23814. let r = !0;
  23815. return He.value.ChartInfo.ChartNameEn || (r = !1), He.value.EdbInfoList.forEach((g) => {
  23816. g.EdbNameEn || (r = !1), He.value.ChartInfo.ChartType !== 10 && g.Unit && !g.UnitEn && (r = !1);
  23817. }), r;
  23818. }
  23819. function Gw(r) {
  23820. if (r && !Xw())
  23821. return;
  23822. const { ChartType: g, Source: E } = He.value.ChartInfo;
  23823. E == 1 && (g == 5 ? (ee.value.yAxis.title.text = Re.value == "zh" ? ee.value.yAxis.title.textZh : ee.value.yAxis.title.textEn, ee.value.yAxis.title.style = Re.value == "zh" ? {} : ee.value.yAxis.title.styleEn, ee.value.xAxis.title.text = Re.value == "zh" ? ee.value.xAxis.title.textZh : ee.value.xAxis.title.textEn, ee.value.xAxis.title.style = Re.value == "zh" ? {} : ee.value.xAxis.title.styleEn, ee.value.series.forEach((h) => {
  23824. h.name = Re.value == "zh" ? h.nameZh : h.nameEn;
  23825. }), ee.value.tooltip.formatter = Re.value == "zh" ? ee.value.tooltip.formatterZh : ee.value.tooltip.formatterEn) : (ee.value.yAxis.forEach((h) => {
  23826. h.title.text = Re.value == "zh" ? h.title.textZh : h.title.textEn, h.title.style = Re.value == "zh" ? {} : h.title.styleEn || {};
  23827. }), g != 2 && ee.value.series.forEach((h) => {
  23828. h.name = Re.value == "zh" ? h.nameZh : h.nameEn != "无英文名称" ? h.nameEn : `<span style="color:#999">${h.nameEn}</span>`;
  23829. }), g === 10 && (ee.value.xAxis.title.text = Re.value == "zh" ? ee.value.xAxis.title.textZh : ee.value.xAxis.title.textEn, ee.value.xAxis.title.style = Re.value == "zh" ? {} : ee.value.xAxis.title.styleEn, ee.value.tooltip.formatter = Re.value == "zh" ? ee.value.tooltip.formatterCh : ee.value.tooltip.formatterEn, ee.value.series.forEach((h) => {
  23830. h.linkedTo || h.data.forEach((y) => {
  23831. y.dataLabels.format = Re.value == "zh" ? y.dataLabels.formatZh : y.dataLabels.formatEn || "无英文标签", y.dataLabels.color = Re.value === "en" && !y.dataLabels.formatEn ? "#999" : "#333";
  23832. });
  23833. })), [7, 11].includes(g) && (ee.value.xAxis.categories = He.value.XEdbIdValue.map((h) => Re.value == "zh" ? He.value.EdbInfoList.find((y) => y.EdbInfoId === h).EdbAliasName : He.value.EdbInfoList.find((y) => y.EdbInfoId === h).EdbNameEn)))), [2, 3, 4].includes(E) && (ee.value.yAxis.forEach((h) => {
  23834. h.title.text = Re.value == "zh" ? h.title.textZh : h.title.textEn;
  23835. }), ee.value.series.forEach((h) => {
  23836. h.name = Re.value == "en" ? h.nameEn : h.nameZh;
  23837. }), ee.value.tooltip.formatter = Re.value == "en" ? ee.value.tooltip.formatterEn : ee.value.tooltip.formatterZh, E == 2 && (ee.value.xAxis.categories = gn.value.map((h) => {
  23838. Re.value == "en" ? h.NameEn : h.Name;
  23839. })), [3].includes(E) && (ee.value.xAxis.title.text = Re.value == "en" ? ee.value.xAxis.title.textEn : ee.value.xAxis.title.textZh));
  23840. }
  23841. function Hw(r) {
  23842. if (r) {
  23843. const g = He.value.ChartInfo;
  23844. ee.value.title.textZh = g.ChartName, ee.value.title.textEn = g.ChartNameEn, ee.value.title.text = Re.value == "zh" ? ee.value.title.textZh : ee.value.title.textEn || ee.value.title.textZh;
  23845. } else
  23846. ee.value.title.text = "";
  23847. }
  23848. function Uw(r) {
  23849. Pt.leftIndex = -1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1;
  23850. const g = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null, { DataList: E, LeftMaxValue: h, LeftMinValue: y, RightMaxValue: R, RightMinValue: I } = r.DataResp, Z = {
  23851. ...Mn,
  23852. tickWidth: 1,
  23853. labels: {
  23854. style: {
  23855. ...g && g.xAxisOptions.style
  23856. }
  23857. }
  23858. };
  23859. let H = [], $ = [];
  23860. return E.forEach((W, N) => {
  23861. let w = {
  23862. ...Or,
  23863. title: {
  23864. text: W.Unit,
  23865. textCh: W.Unit,
  23866. // 中文
  23867. textEn: W.UnitEn || W.Unit,
  23868. align: "high",
  23869. rotation: 0,
  23870. y: -15,
  23871. reserveSpace: !1,
  23872. style: {
  23873. ...g && g.yAxisOptions.style
  23874. }
  23875. },
  23876. labels: {
  23877. style: {
  23878. ...g && g.yAxisOptions.style
  23879. }
  23880. },
  23881. opposite: W.IsAxis !== 1,
  23882. min: Number(N === 0 ? y : I),
  23883. max: Number(N === 0 ? h : R),
  23884. tickWidth: 1
  23885. }, v = {
  23886. data: W.Value.map((u) => [u.X, u.Y]),
  23887. dashStyle: g && g.lineOptions.dashStyle || "Solid",
  23888. type: g && g.lineOptions.lineType || "spline",
  23889. yAxis: N,
  23890. name: W.Name,
  23891. nameZh: W.Name,
  23892. nameEn: W.NameEn || W.Name,
  23893. color: W.Color,
  23894. lineWidth: g && g.lineOptions.lineWidth || 3,
  23895. chartType: "linear",
  23896. zIndex: 1
  23897. };
  23898. $.push(v), H.push(w);
  23899. }), {
  23900. title: {
  23901. text: ""
  23902. },
  23903. tooltip: {
  23904. formatter: function() {
  23905. let W = E[0].Value.map((u) => u.X), N = W[1] - W[0], v = `<b>${`[${this.x},${this.x + N}]`}</b>`;
  23906. return this.points.forEach((u) => {
  23907. v += `<br><span style="color:${u.color}">●</span>${u.series.name}: ${u.y}%<br>`;
  23908. }), v;
  23909. },
  23910. shared: !0
  23911. },
  23912. series: $,
  23913. yAxis: H,
  23914. xAxis: Z
  23915. };
  23916. }
  23917. function Ap(r) {
  23918. const g = r.ChartInfo.Source === 1, E = [4, 6, 7, 8].includes(r.ChartInfo.Source) ? [r.DataResp] : r.EdbInfoList;
  23919. let h = [], y = [], R = {}, I = E.findIndex((u) => u.IsAxis === 1), Z = E.findIndex((u) => !u.IsAxis), H = E.findIndex((u) => u.IsAxis === 2);
  23920. Pt.leftIndex = I, Pt.rightIndex = Z, Pt.rightTwoIndex = H;
  23921. const $ = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  23922. let U = [], W = E.some((u) => u.IsAxis === 2) ? Wu(E) : E;
  23923. W.forEach((u, d) => {
  23924. let P = W.findIndex((s) => s.IsAxis === u.IsAxis), O = u.EdbName, B = W.filter(
  23925. (s) => O === s.EdbName
  23926. ), C = Ms(u, B, "zh"), b = Ms(u, B, "en"), M = u.EdbInfoCategoryType === 1 ? Bu(u) : {}, x = {
  23927. data: [],
  23928. dataGrouping: {
  23929. enabled: !1
  23930. },
  23931. type: $ && $.lineOptions.lineType || "spline",
  23932. dashStyle: $ && $.lineOptions.dashStyle || "Solid",
  23933. yAxis: d,
  23934. name: C,
  23935. nameZh: C,
  23936. nameEn: b,
  23937. color: u.ChartColor,
  23938. lineWidth: Number(u.ChartWidth),
  23939. visible: !0,
  23940. LatestDate: u.LatestDate,
  23941. LatestValue: u.LatestValue,
  23942. ...M
  23943. };
  23944. u.DataList = u.DataList || [];
  23945. for (let s of u.DataList)
  23946. x.data.push([s.DataTimestamp, s.Value]);
  23947. h.push(x), u.IsAxis;
  23948. let a = 0, c = 0;
  23949. if ((!yi || !g) && (a = u.MinData, c = u.MaxData), yi && g) {
  23950. const s = {
  23951. 0: ["rightMin", "rightMax"],
  23952. 1: ["leftMin", "leftMax"],
  23953. 2: ["rightTwoMin", "rightTwoMax"]
  23954. };
  23955. s[u.IsAxis] && (a = Pt[`${s[u.IsAxis][0]}`] || 0, c = Pt[`${s[u.IsAxis][1]}`] || 0);
  23956. }
  23957. const p = u.ConvertUnit || u.Unit, i = u.ConvertEnUnit || u.UnitEn || u.ConvertUnit || u.Unit;
  23958. let l = {
  23959. ...Or,
  23960. IsAxis: u.IsAxis,
  23961. labels: {
  23962. formatter: function(s) {
  23963. return P !== d ? "" : s.value;
  23964. },
  23965. align: "center",
  23966. x: [0, 2].includes(u.IsAxis) ? 5 : -5,
  23967. style: {
  23968. ...$ && $.yAxisOptions.style
  23969. }
  23970. },
  23971. tickWidth: P !== d ? 0 : 1,
  23972. title: {
  23973. text: P !== d ? "" : `${p}`,
  23974. textZh: p,
  23975. //中文单位
  23976. textEn: p ? i : "",
  23977. //英文单位,但如果无中文单位则不显示
  23978. align: "high",
  23979. rotation: 0,
  23980. y: -15,
  23981. x: u.IsAxis === 0 && H > -1 ? -W[H].Unit.length * 12 : 0,
  23982. textAlign: u.IsAxis === 1 ? "left" : "right",
  23983. reserveSpace: !1,
  23984. style: {
  23985. ...$ && $.yAxisOptions.style
  23986. }
  23987. },
  23988. opposite: [0, 2].includes(u.IsAxis),
  23989. reversed: u.IsOrder,
  23990. min: Number(a),
  23991. max: Number(c),
  23992. visible: P === d,
  23993. chartEdbInfo: u,
  23994. //指标数据用于在保存时读取指标数据
  23995. plotBands: Vi(u.IsAxis),
  23996. plotLines: Fi(u.IsAxis)
  23997. };
  23998. y.push(l), u.DataList.length > 0 && (U.push(u.DataList[0].DataTimestamp), U.push(u.DataList[u.DataList.length - 1].DataTimestamp));
  23999. });
  24000. let N = Math.min.apply(null, U), w = Math.max.apply(null, U);
  24001. const v = ju(N, w);
  24002. return R = {
  24003. ...Wp,
  24004. labels: {
  24005. formatter: function(u) {
  24006. return v ? Qn.dateFormat("%m/%d", u.value) : Qn.dateFormat("%y/%m", u.value);
  24007. },
  24008. style: {
  24009. ...$ && $.xAxisOptions.style
  24010. }
  24011. },
  24012. tickInterval: (w - N) / 6 / (24 * 3600 * 1e3) > 30 ? (w - N) / 6 : 24 * 3600 * 1e3 * 30,
  24013. plotBands: Vi(3, "datetime"),
  24014. plotLines: Fi(3, "datetime")
  24015. }, y.forEach((u) => {
  24016. u.IsAxis === 1 ? (Pt.hasLeftAxis = !0, (!yi || !g) && (Pt.leftMin = E[I].MinData, Pt.leftMax = E[I].MaxData, u.min = E[I].MinData, u.max = E[I].MaxData)) : u.IsAxis === 2 ? (Pt.hasRightTwoAxis = !0, (!yi || !g) && (Pt.rightTwoMin = E[H].MinData, Pt.rightTwoMax = E[H].MaxData, u.min = E[H].MinData, u.max = E[H].MaxData)) : (Pt.hasRightAxis = !0, (!yi || !g) && (Pt.rightMin = E[Z].MinData, Pt.rightMax = E[Z].MaxData, u.min = E[Z].MinData, u.max = E[Z].MaxData));
  24017. }), {
  24018. series: h,
  24019. xAxis: [R],
  24020. yAxis: y,
  24021. rangeSelector: { enabled: !1 }
  24022. };
  24023. }
  24024. function Fw(r) {
  24025. Pt.leftIndex = 0, Pt.rightIndex = -1, Pt.rightTwoIndex = -1;
  24026. const g = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24027. let E = {};
  24028. const h = r.EdbInfoList[0], y = r.ChartInfo.Calendar || "公历", R = g && g.colorsOptions.reverse();
  24029. let I = [], Z = [];
  24030. const H = y === "农历" ? h.DataList.filter((v, u) => u > 0) : h.DataList;
  24031. H.forEach((v, u) => {
  24032. let d = h.EdbInfoCategoryType === 1 ? Yw(v.CuttingDataTimestamp) : {}, P = {
  24033. data: [],
  24034. dataGrouping: {
  24035. enabled: !1
  24036. },
  24037. type: g && g.lineOptions.lineType || h.ChartStyle,
  24038. dashStyle: g && g.lineOptions.dashStyle || "Solid",
  24039. yAxis: 0,
  24040. name: v.ChartLegend,
  24041. lineWidth: g && g.lineOptions.lineWidth || 1,
  24042. color: R.slice(-H.length)[u],
  24043. visible: !0,
  24044. ...d
  24045. };
  24046. v.DataList = v.DataList || [];
  24047. for (let O of v.DataList)
  24048. P.data.push([O.DataTimestamp, O.Value]);
  24049. I.push(P);
  24050. });
  24051. let $ = 0, U = 0;
  24052. yi ? ($ = Pt.leftMin || 0, U = Pt.leftMax || 0) : ($ = h.MinData, U = h.MaxData);
  24053. const W = h.ConvertUnit || h.Unit, N = h.ConvertEnUnit || h.UnitEn || h.ConvertUnit || h.Unit;
  24054. Z = [{
  24055. IsAxis: h.IsAxis,
  24056. labels: {
  24057. align: "center",
  24058. y: 5,
  24059. style: {
  24060. ...g && g.yAxisOptions.style
  24061. }
  24062. },
  24063. title: {
  24064. text: `${W}`,
  24065. textZh: W,
  24066. // 中文
  24067. // 中文不存在,无论英文有无都显示空
  24068. textEn: W ? N || "英文单位" : "",
  24069. // 英文
  24070. align: "high",
  24071. rotation: 0,
  24072. y: -5,
  24073. x: 0,
  24074. textAlign: "left",
  24075. reserveSpace: !1,
  24076. style: {
  24077. ...g && g.yAxisOptions.style
  24078. }
  24079. },
  24080. max: Number(U),
  24081. min: Number($),
  24082. plotBands: Vi(1),
  24083. plotLines: Fi(1),
  24084. lineWidth: 1,
  24085. lineColor: "#bfbfbf",
  24086. tickColor: "#bfbfbf",
  24087. offset: 0,
  24088. opposite: !1,
  24089. reversed: !1,
  24090. visible: !0,
  24091. gridLineWidth: 0,
  24092. tickWidth: 1,
  24093. tickLength: 5,
  24094. tickPosition: "inside",
  24095. endOnTick: !1,
  24096. startOnTick: !1,
  24097. showLastLabel: !0,
  24098. //显示最后刻度值
  24099. tickPixelInterval: 50
  24100. // chartEdbInfo:item//指标数据
  24101. }], E.series = I, E.yAxis = Z, Pt.hasLeftAxis = !0, yi || (Pt.leftMin = Number(h.MinData), Pt.leftMax = Number(h.MaxData));
  24102. let w = {
  24103. tickPosition: "inside",
  24104. lineColor: "#bfbfbf",
  24105. tickColor: "#bfbfbf",
  24106. tickLength: 5,
  24107. type: "datetime",
  24108. ordinal: !1,
  24109. dateTimeLabelFormats: {
  24110. day: "%y/%m",
  24111. week: "%y/%m",
  24112. month: "%y/%m",
  24113. year: "%y/%m"
  24114. },
  24115. labels: {
  24116. formatter: (v) => Qn.dateFormat("%m/%d", v.value),
  24117. style: {
  24118. ...g && g.xAxisOptions.style
  24119. }
  24120. },
  24121. tickInterval: 24 * 3600 * 1e3 * 60,
  24122. //季节图
  24123. plotBands: Vi(3, "datetime"),
  24124. plotLines: Fi(3, "datetime")
  24125. };
  24126. return E.xAxis = [w], E.tooltip = {
  24127. split: !1,
  24128. shared: !0,
  24129. dateTimeLabelFormats: {
  24130. // 时间格式化字符
  24131. day: "%m/%d",
  24132. week: "%m/%d",
  24133. month: "%m/%d",
  24134. year: "%m/%d"
  24135. },
  24136. xDateFormat: "%m/%d"
  24137. }, {
  24138. ...E
  24139. // title: {
  24140. // enabled: true,
  24141. // text:e.ChartInfo.ChartName
  24142. // },
  24143. // legend:{
  24144. // enabled:true,
  24145. // verticalAlign: 'top',
  24146. // y:-10,
  24147. // x:(10 * data.Unit.length)/2
  24148. // }
  24149. };
  24150. }
  24151. function sh(r) {
  24152. const g = r.EdbInfoList;
  24153. let h = {
  24154. 3: "areaspline",
  24155. 4: "column",
  24156. 6: ""
  24157. }[r.ChartInfo.ChartType];
  24158. const y = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24159. let R = [], I = [], Z = {}, H, $, U, W = [], N = g.some((d) => d.IsAxis === 2) ? Wu(g) : g;
  24160. N.forEach((d, P) => {
  24161. let O = N.findIndex((n) => n.IsAxis === d.IsAxis), B = P;
  24162. [3, 4].includes(r.ChartInfo.ChartType) ? B = 0 : r.ChartInfo.ChartType === 6 && ["areaspline", "column"].includes(d.ChartStyle) && (B = N.findIndex((n) => n.ChartStyle === d.ChartStyle)), d.IsAxis = B === P ? d.IsAxis : N[B].IsAxis, d.IsOrder = B === P ? d.IsOrder : N[B].IsOrder, H = [3, 4].includes(r.ChartInfo.ChartType) ? N[B].IsAxis ? B : -1 : g.findIndex((n) => n.IsAxis === 1), $ = [3, 4].includes(r.ChartInfo.ChartType) ? N[B].IsAxis ? -1 : B : g.findIndex((n) => !n.IsAxis), U = [3, 4].includes(r.ChartInfo.ChartType) ? -1 : g.findIndex((n) => n.IsAxis === 2), Pt.leftIndex = H, Pt.rightIndex = $, Pt.rightTwoIndex = U;
  24163. let C = d.EdbName, b = N.filter(
  24164. (n) => C === n.EdbName
  24165. ), M = Ms(d, b, "zh"), x = Ms(d, b, "en"), a = d.EdbInfoCategoryType === 1 ? Bu(d) : {}, c = {
  24166. data: [],
  24167. dataGrouping: {
  24168. enabled: !1
  24169. },
  24170. type: h || d.ChartStyle,
  24171. yAxis: B,
  24172. name: M,
  24173. nameZh: M,
  24174. nameEn: x,
  24175. color: d.ChartColor,
  24176. lineWidth: Number(d.ChartWidth),
  24177. fillColor: r.ChartInfo.ChartType === 3 || r.ChartInfo.ChartType === 6 && d.ChartStyle === "areaspline" ? d.ChartColor : void 0,
  24178. visible: !0,
  24179. LatestDate: d.LatestDate,
  24180. LatestValue: d.LatestValue,
  24181. ...a
  24182. };
  24183. d.DataList = d.DataList || [];
  24184. for (let n of d.DataList)
  24185. c.data.push([n.DataTimestamp, n.Value]);
  24186. R.push(c);
  24187. let p = 0, i = 0;
  24188. if (!yi)
  24189. p = N[O].MinData, i = N[O].MaxData;
  24190. else {
  24191. const n = {
  24192. 0: ["rightMin", "rightMax"],
  24193. 1: ["leftMin", "leftMax"],
  24194. 2: ["rightTwoMin", "rightTwoMax"]
  24195. };
  24196. n[d.IsAxis] && (p = Pt[`${n[d.IsAxis][0]}`] || 0, i = Pt[`${n[d.IsAxis][1]}`] || 0);
  24197. }
  24198. d.IsAxis;
  24199. const l = d.ConvertUnit || d.Unit, s = d.ConvertEnUnit || d.UnitEn || d.ConvertUnit || d.Unit;
  24200. let t = {
  24201. ...Or,
  24202. IsAxis: d.IsAxis,
  24203. labels: {
  24204. formatter: function(n) {
  24205. return O !== P ? "" : n.value;
  24206. },
  24207. align: "center",
  24208. x: [0, 2].includes(d.IsAxis) ? 5 : -5,
  24209. style: {
  24210. ...y && y.yAxisOptions.style
  24211. }
  24212. },
  24213. title: {
  24214. // text: sameSideIndex !== index ? '' : `${item.Unit}`,
  24215. text: l,
  24216. textZh: l,
  24217. // 中文
  24218. // 中文不存在,无论英文有无都显示空
  24219. textEn: l ? s || "英文单位" : "",
  24220. // 英文
  24221. align: "high",
  24222. rotation: 0,
  24223. y: -15,
  24224. x: d.IsAxis === 0 && U > -1 ? -N[U].Unit.length * 12 : 0,
  24225. textAlign: d.IsAxis === 1 ? "left" : "right",
  24226. reserveSpace: !1,
  24227. style: {
  24228. ...y && y.yAxisOptions.style
  24229. }
  24230. },
  24231. opposite: [0, 2].includes(d.IsAxis),
  24232. reversed: d.IsOrder,
  24233. min: Number(p),
  24234. max: Number(i),
  24235. tickWidth: O !== P ? 0 : 1,
  24236. visible: B === P && O === P,
  24237. plotBands: Vi(d.IsAxis),
  24238. plotLines: Fi(d.IsAxis),
  24239. chartEdbInfo: d
  24240. //指标数据用于在保存时读取指标数据
  24241. };
  24242. I.push(t), d.DataList.length > 0 && (W.push(d.DataList[0].DataTimestamp), W.push(d.DataList[d.DataList.length - 1].DataTimestamp));
  24243. });
  24244. let w = Math.min.apply(null, W), v = Math.max.apply(null, W);
  24245. const u = ju(w, v);
  24246. return Z = {
  24247. ...Wp,
  24248. labels: {
  24249. formatter: function(d) {
  24250. return u ? Qn.dateFormat("%m/%d", d.value) : Qn.dateFormat("%y/%m", d.value);
  24251. },
  24252. style: {
  24253. ...y && y.xAxisOptions.style
  24254. }
  24255. },
  24256. tickInterval: (v - w) / 6 / (24 * 3600 * 1e3) > 30 ? (v - w) / 6 : 24 * 3600 * 1e3 * 30,
  24257. plotBands: Vi(3, "datetime"),
  24258. plotLines: Fi(3, "datetime")
  24259. }, I.forEach((d) => {
  24260. d.IsAxis === 1 ? (Pt.hasLeftAxis = !0, yi || (Pt.leftMin = g[H].MinData, Pt.leftMax = g[H].MaxData, d.min = g[H].MinData, d.max = g[H].MaxData)) : d.IsAxis === 2 ? (Pt.hasRightTwoAxis = !0, yi || (Pt.rightTwoMin = g[U].MinData, Pt.rightTwoMax = g[U].MaxData, d.min = g[U].MinData, d.max = g[U].MaxData)) : (Pt.hasRightAxis = !0, yi || (Pt.rightMin = g[$].MinData, Pt.rightMax = g[$].MaxData, d.min = g[$].MinData, d.max = g[$].MaxData));
  24261. }), {
  24262. series: R,
  24263. xAxis: Z,
  24264. yAxis: I,
  24265. rangeSelector: { enabled: !1 }
  24266. };
  24267. }
  24268. function Vw(r) {
  24269. Pt.leftIndex = 1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1;
  24270. const g = r.EdbInfoList, { ChartInfo: E } = r, h = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null;
  24271. Pt.hasLeftAxis = !0;
  24272. const y = [];
  24273. let R = {}, I = ws.cloneDeep(g)[0].DataList || [], Z = ws.cloneDeep(g)[1].DataList || [];
  24274. I.forEach((B) => {
  24275. Z.forEach((C) => {
  24276. if (B.DataTimestamp === C.DataTimestamp) {
  24277. let b = B.Value + "_" + C.Value;
  24278. R[b] ? R[b].push(Xt(B.DataTimestamp).format("YYYY/MM/DD")) : R[b] = [Xt(B.DataTimestamp).format("YYYY/MM/DD")], y.push({
  24279. x: B.Value,
  24280. y: C.Value
  24281. });
  24282. }
  24283. });
  24284. }), y.sort((B, C) => B - C);
  24285. let H = {
  24286. formatter: function() {
  24287. return `<strong>${R[this.x + "_" + this.y].length > 4 ? R[this.x + "_" + this.y].slice(0, 4).join() + "..." : R[this.x + "_" + this.y].join()}</strong><br>
  24288. ${g[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24289. ${g[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24290. `;
  24291. },
  24292. // 中文
  24293. formatterCh: function() {
  24294. return `<strong>${R[this.x + "_" + this.y].length > 4 ? R[this.x + "_" + this.y].slice(0, 4).join() + "..." : R[this.x + "_" + this.y].join()}</strong><br>
  24295. ${g[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24296. ${g[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24297. `;
  24298. },
  24299. // 英文
  24300. formatterEn: function() {
  24301. let B = `${g[0].EdbNameEn}`, C = `${g[1].EdbNameEn}`;
  24302. return `<strong>${R[this.x + "_" + this.y].length > 4 ? R[this.x + "_" + this.y].slice(0, 4).join() + "..." : R[this.x + "_" + this.y].join()}</strong><br>
  24303. ${B}: <span style="font-weight: 600"> ${this.x}</span><br>
  24304. ${C}: <span style="font-weight: 600"> ${this.y}</span>
  24305. `;
  24306. }
  24307. };
  24308. const { IsOrder: $, ChartColor: U } = g[0];
  24309. let W = 0, N = 0;
  24310. yi ? (W = Pt.leftMin || 0, N = Pt.leftMax || 0) : (W = r.ChartInfo.LeftMin || 0, N = r.ChartInfo.LeftMax || 0), console.log("check limit", W, N);
  24311. const w = g[1].ConvertUnit || g[1].Unit, v = g[1].ConvertEnUnit || g[1].UnitEn || g[1].ConvertUnit || g[1].Unit;
  24312. let u = {
  24313. title: {
  24314. text: `${w}`,
  24315. textZh: w,
  24316. textEn: w ? v : "",
  24317. align: "high",
  24318. rotation: 0,
  24319. y: -15,
  24320. x: 0,
  24321. textAlign: "left",
  24322. reserveSpace: !1,
  24323. style: {
  24324. ...h && h.yAxisOptions.style
  24325. }
  24326. },
  24327. labels: {
  24328. formatter: function(B) {
  24329. return B.value;
  24330. },
  24331. align: "center",
  24332. style: {
  24333. ...h && h.yAxisOptions.style
  24334. }
  24335. },
  24336. opposite: !1,
  24337. reversed: $,
  24338. min: Number(W),
  24339. max: Number(N),
  24340. tickWidth: 1,
  24341. tickLength: 5,
  24342. lineWidth: 1,
  24343. lineColor: "#bfbfbf",
  24344. tickColor: "#bfbfbf",
  24345. offset: 0,
  24346. visible: !0,
  24347. gridLineWidth: 0,
  24348. tickPosition: "inside",
  24349. endOnTick: !1,
  24350. startOnTick: !1,
  24351. showLastLabel: !0,
  24352. tickPixelInterval: 50,
  24353. plotBands: Vi(1),
  24354. plotLines: Fi(1)
  24355. }, d = {
  24356. data: [],
  24357. type: "scatter",
  24358. name: `${E.ChartName}${$ ? "(逆序)" : ""}`,
  24359. nameZh: `${E.ChartName}${$ ? "(逆序)" : ""}`,
  24360. nameEn: E.ChartNameEn ? `${E.ChartNameEn}${$ ? "(reverse)" : ""}` : "",
  24361. color: U,
  24362. visible: !0,
  24363. chartType: "linear",
  24364. marker: {
  24365. radius: h && h.lineOptions.radius || 5
  24366. }
  24367. };
  24368. y.forEach((B) => {
  24369. d.data.push([B.x, B.y]);
  24370. });
  24371. const P = g[0].ConvertUnit || g[0].Unit, O = g[0].ConvertEnUnit || g[0].UnitEn || g[0].ConvertUnit || g[0].Unit;
  24372. return {
  24373. title: {
  24374. text: ""
  24375. },
  24376. series: [d],
  24377. yAxis: u,
  24378. xAxis: {
  24379. ...Mn,
  24380. title: {
  24381. text: `${P}`,
  24382. textZh: P,
  24383. textEn: P ? O : "",
  24384. align: "high",
  24385. rotation: 0,
  24386. x: 0,
  24387. offset: 20,
  24388. style: {
  24389. ...h && h.xAxisOptions.style
  24390. }
  24391. },
  24392. labels: {
  24393. style: {
  24394. ...h && h.xAxisOptions.style
  24395. }
  24396. }
  24397. },
  24398. tooltip: H
  24399. };
  24400. }
  24401. const zu = Xe([]), Yu = Xe([]), $w = Xe([]);
  24402. function Zw(r) {
  24403. let g = [];
  24404. const E = ws.cloneDeep(zu.value), h = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24405. let y = {
  24406. ...Mn,
  24407. categories: Yu.value,
  24408. tickWidth: 1,
  24409. labels: {
  24410. style: {
  24411. ...h && h.xAxisOptions.style
  24412. }
  24413. }
  24414. };
  24415. const { leftMin: R, leftMax: I } = Pt;
  24416. let Z = {
  24417. ...Or,
  24418. title: {
  24419. text: "",
  24420. textZh: "",
  24421. textEn: "",
  24422. align: "high",
  24423. rotation: 0,
  24424. y: -15,
  24425. x: 0,
  24426. textAlign: "left",
  24427. reserveSpace: !1,
  24428. style: {
  24429. ...h && h.yAxisOptions.style
  24430. }
  24431. },
  24432. labels: {
  24433. formatter: function(H) {
  24434. return H.value;
  24435. },
  24436. align: "center",
  24437. style: {
  24438. ...h && h.yAxisOptions.style
  24439. }
  24440. },
  24441. min: Number(R),
  24442. max: Number(I),
  24443. opposite: !1,
  24444. tickWidth: 1,
  24445. plotBands: Vi(1),
  24446. plotLines: Fi(1)
  24447. };
  24448. return E.forEach((H) => {
  24449. let $ = {
  24450. data: H.Value,
  24451. type: "column",
  24452. yAxis: 0,
  24453. name: H.Name || H.Date,
  24454. nameZh: H.Name || H.Date,
  24455. nameEn: H.Date,
  24456. color: H.Color,
  24457. chartType: "linear",
  24458. visible: !0
  24459. };
  24460. g.push($);
  24461. }), {
  24462. title: {
  24463. text: ""
  24464. },
  24465. plotOptions: {
  24466. column: {
  24467. stacking: null
  24468. }
  24469. },
  24470. series: g,
  24471. yAxis: [Z],
  24472. xAxis: y
  24473. };
  24474. }
  24475. function Kw(r) {
  24476. const { XEdbIdValue: g, YDataList: E, EdbInfoList: h, ChartInfo: y } = r;
  24477. let R = g.map((I) => h.find((Z) => Z.EdbInfoId === I).EdbAliasName);
  24478. return Pt.leftIndex = -1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1, zu.value = E, Yu.value = R, $w.value = h, Pt.hasLeftAxis = !0, Pt.leftMin = Number(y.LeftMin), Pt.leftMax = Number(y.LeftMax), Zw(r);
  24479. }
  24480. const Xu = Xe([]), gn = Xe([]), Ar = Xe([]), Jw = (r, g) => {
  24481. Pt.leftIndex = -1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1;
  24482. const E = He.value.ChartInfo.ChartThemeStyle ? JSON.parse(He.value.ChartInfo.ChartThemeStyle) : null;
  24483. let h = [];
  24484. const y = ws.cloneDeep(Xu.value);
  24485. console.log(y);
  24486. let R = {
  24487. ...Mn,
  24488. categories: gn.value.map((H) => H.Name),
  24489. tickWidth: 1,
  24490. labels: {
  24491. style: {
  24492. ...E && E.xAxisOptions.style
  24493. }
  24494. }
  24495. }, I = {
  24496. ...Or,
  24497. title: {
  24498. text: Ar.value[0].Unit,
  24499. textZh: Ar.value[0].Unit,
  24500. textEn: Ar.value[0].Unit ? Ar.value[0].UnitEn || "英文单位" : "",
  24501. align: "high",
  24502. rotation: 0,
  24503. y: -15,
  24504. textAlign: "left",
  24505. reserveSpace: !1,
  24506. style: {
  24507. ...E && E.yAxisOptions.style
  24508. }
  24509. },
  24510. labels: {
  24511. formatter: function(H) {
  24512. return H.value;
  24513. },
  24514. align: "center",
  24515. style: {
  24516. ...E && E.yAxisOptions.style
  24517. }
  24518. },
  24519. min: Number(r),
  24520. max: Number(g),
  24521. opposite: !1,
  24522. tickWidth: 1
  24523. };
  24524. return y.forEach((H) => {
  24525. let U = {
  24526. data: qw(H),
  24527. type: E && E.lineOptions.lineType || "spline",
  24528. dashStyle: E && E.lineOptions.dashStyle || "Solid",
  24529. yAxis: 0,
  24530. name: H.Name,
  24531. nameZh: H.Name,
  24532. nameEn: H.NameEn,
  24533. color: H.Color,
  24534. chartType: "linear",
  24535. lineWidth: E && E.lineOptions.lineWidth || 3,
  24536. visible: !0,
  24537. marker: {
  24538. enabled: !1
  24539. }
  24540. };
  24541. h.push(U);
  24542. }), {
  24543. title: {
  24544. text: ""
  24545. },
  24546. series: h,
  24547. yAxis: [I],
  24548. xAxis: R,
  24549. tooltip: {
  24550. formatter: function() {
  24551. const H = this;
  24552. let $ = "";
  24553. return H.points.forEach((U) => {
  24554. let W = y.find((v) => v.Name === U.series.name), N = gn.value.findIndex((v) => v.Name === H.x);
  24555. if (W.XEdbInfoIdList[N]) {
  24556. let v = He.value.ChartInfo.Source === 5 ? N === 0 ? W.NameList[N] : `${He.value.DataResp.ProfitName}(${W.NameList[N]})` : Ar.value.find((u) => u.EdbInfoId === W.XEdbInfoIdList[N]).EdbName;
  24557. $ += `<b>${v}</b>`, W.NoDataEdbList.includes(W.XEdbInfoIdList[N]) ? $ += `<br><span style="color:${U.color}">●</span>${W.Date}: 无<br>` : $ += `<br><span style="color:${U.color}">●</span>${W.Date}: ${U.y}<br>`;
  24558. }
  24559. }), $ || "无合约";
  24560. },
  24561. formatterCh: function() {
  24562. let H = "";
  24563. return this.points.forEach(($) => {
  24564. let U = y.find((N) => N.Name === $.series.name), W = gn.value.findIndex((N) => N.Name === this.x);
  24565. H += `<b>${Ar.value.find((N) => N.EdbInfoId === U.XEdbInfoIdList[W]).EdbName}</b>`, U.NoDataEdbList.includes(U.XEdbInfoIdList[W]) ? H += `<br><span style="color:${$.color}">●</span>${U.Date}: 无<br>` : H += `<br><span style="color:${$.color}">●</span>${U.Date}: ${$.y}<br>`;
  24566. }), H;
  24567. },
  24568. formatterEn: function() {
  24569. let H = "";
  24570. return this.points.forEach(($) => {
  24571. let U = y.find((N) => N.NameEn === $.series.name), W = gn.value.findIndex((N) => N.NameEn === this.x);
  24572. H += `<b>${Ar.value.find((N) => N.EdbInfoId === U.XEdbInfoIdList[W]).EdbNameEn}</b>`, U.NoDataEdbList.includes(U.XEdbInfoIdList[W]) ? H += `<br><span style="color:${$.color}">●</span>${U.Date}: 无<br>` : H += `<br><span style="color:${$.color}">●</span>${U.Date}: ${$.y}<br>`;
  24573. }), H;
  24574. },
  24575. shared: !0
  24576. }
  24577. };
  24578. };
  24579. function qw(r) {
  24580. let g = r.XEdbInfoIdList.filter((R) => !r.NoDataEdbList.includes(R)), E = r.XEdbInfoIdList.findIndex((R) => R === g[0]), h = r.XEdbInfoIdList.findIndex((R) => R === g[g.length - 1]);
  24581. return r.Value.map((R, I) => I < E || I > h ? null : R);
  24582. }
  24583. function Qw(r) {
  24584. const { XDataList: g, YDataList: E, EdbInfoList: h, ChartInfo: y, DataResp: R } = r;
  24585. return Ar.value = h, Xu.value = y.Source === 5 ? R.YDataList : E, gn.value = y.Source === 5 ? R.XDataList : g, Pt.hasLeftAxis = !0, Pt.leftMin = Number(y.LeftMin), Pt.leftMax = Number(y.LeftMax), Jw(y.LeftMin, y.LeftMax);
  24586. }
  24587. function tM(r) {
  24588. const g = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24589. Pt.leftIndex = -1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1;
  24590. let E = {
  24591. categories: r.ChartInfo.Source === 3 ? r.XEdbIdValue : r.DataResp.XDateTimeValue,
  24592. tickWidth: 1,
  24593. title: {
  24594. text: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24595. textZh: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24596. textEn: r.ChartInfo.Source === 3 ? `stage(${bp[r.CorrelationChartInfo.LeadUnit]})` : null,
  24597. align: "high",
  24598. rotation: 0,
  24599. x: 0,
  24600. y: 10,
  24601. offset: 20,
  24602. style: {
  24603. ...g && g.xAxisOptions.style
  24604. }
  24605. },
  24606. labels: {
  24607. style: {
  24608. ...g && g.xAxisOptions.style
  24609. }
  24610. },
  24611. tickInterval: 1,
  24612. offset: 0,
  24613. tickmarkPlacement: "on"
  24614. }, h = {
  24615. ...Or,
  24616. title: {
  24617. text: "相关性系数",
  24618. textZh: "相关性系数",
  24619. textEn: "Correlation coefficient",
  24620. align: "high",
  24621. rotation: 0,
  24622. y: -15,
  24623. textAlign: "left",
  24624. reserveSpace: !1,
  24625. style: {
  24626. ...g && g.yAxisOptions.style
  24627. }
  24628. },
  24629. labels: {
  24630. formatter: function($) {
  24631. return $.value;
  24632. },
  24633. align: "center",
  24634. style: {
  24635. ...g && g.yAxisOptions.style
  24636. }
  24637. },
  24638. opposite: !1,
  24639. tickWidth: 1
  24640. }, y = [];
  24641. r.YDataList.forEach(($) => {
  24642. let U = {
  24643. data: $.Value,
  24644. type: g && g.lineOptions.lineType || "spline",
  24645. dashStyle: g && g.lineOptions.dashStyle || "Solid",
  24646. yAxis: 0,
  24647. name: r.ChartInfo.ChartName,
  24648. nameZh: r.ChartInfo.ChartName,
  24649. nameEn: r.ChartInfo.ChartNameEn,
  24650. color: "#00f",
  24651. chartType: "linear",
  24652. lineWidth: g && g.lineOptions.lineWidth || 3,
  24653. visible: !0,
  24654. marker: {
  24655. enabled: !1
  24656. }
  24657. };
  24658. y.push(U);
  24659. });
  24660. const { LeadValue: R, LeadUnit: I } = r.CorrelationChartInfo, { Source: Z } = r.ChartInfo;
  24661. let H = {
  24662. formatter: function() {
  24663. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${Z === 3 ? this.x + "期" : R + I}</p>`;
  24664. },
  24665. formatterCh: function() {
  24666. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${Z === 3 ? this.x + "期" : R + I}</p>`;
  24667. },
  24668. formatterEn: function() {
  24669. return `<p>Correlation coefficient:${this.y.toFixed(4)}</p><br><p>lead${Z === 3 ? this.x + "stage" : R + bp[I]}</p>`;
  24670. }
  24671. };
  24672. return Bp(() => {
  24673. ee.value = {
  24674. isRelevanceChart: r.ChartInfo.Source === 3,
  24675. title: {
  24676. text: ""
  24677. },
  24678. series: y,
  24679. yAxis: [h],
  24680. xAxis: E,
  24681. tooltip: H
  24682. }, ls.update(ee.value, !0);
  24683. }), {
  24684. isRelevanceChart: !0,
  24685. title: {
  24686. text: ""
  24687. },
  24688. series: y,
  24689. yAxis: [h],
  24690. xAxis: E,
  24691. tooltip: H
  24692. };
  24693. }
  24694. function eM({ DataResp: r, ChartInfo: g }) {
  24695. Pt.leftIndex = -1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1;
  24696. const E = g.ChartThemeStyle ? JSON.parse(g.ChartThemeStyle) : null, { DataList: h, XName: y, XNameEn: R, XUnitName: I, XUnitNameEn: Z, YName: H, YNameEn: $, YUnitName: U, YUnitNameEn: W } = r, N = Number(r.YMinValue), w = Number(r.YMaxValue), v = Number(r.XMinValue), u = Number(r.XMaxValue);
  24697. Pt.hasLeftAxis = !0, Pt.hasXAxis = !0, Pt.leftMin = N, Pt.leftMax = w, Pt.xMin = v, Pt.xMax = u;
  24698. let d = {
  24699. ...Or,
  24700. title: {
  24701. text: H,
  24702. textZh: H,
  24703. // 中文
  24704. textEn: $ || "",
  24705. style: {
  24706. ...E && E.yAxisOptions.style
  24707. },
  24708. align: "middle"
  24709. },
  24710. labels: {
  24711. style: {
  24712. ...E && E.yAxisOptions.style
  24713. }
  24714. },
  24715. opposite: !1,
  24716. reversed: !1,
  24717. min: Number(N),
  24718. max: Number(w),
  24719. tickWidth: 1,
  24720. plotBands: Vi(1),
  24721. plotLines: Fi(1)
  24722. }, P = {
  24723. ...Mn,
  24724. title: {
  24725. text: y,
  24726. textZh: y,
  24727. // 中文
  24728. textEn: R || "",
  24729. style: {
  24730. ...E && E.xAxisOptions.style
  24731. },
  24732. align: "middle"
  24733. },
  24734. labels: {
  24735. style: {
  24736. ...E && E.xAxisOptions.style
  24737. }
  24738. },
  24739. min: Number(v),
  24740. max: Number(u),
  24741. plotBands: Vi(3),
  24742. plotLines: Fi(3)
  24743. }, O = [];
  24744. return h.forEach((C) => {
  24745. let b = {
  24746. data: [],
  24747. type: "scatter",
  24748. name: C.Name,
  24749. nameZh: C.Name,
  24750. nameEn: C.NameEn,
  24751. color: C.Color,
  24752. lineWidth: 0,
  24753. chartType: "linear",
  24754. zIndex: 1,
  24755. visible: !0,
  24756. marker: {
  24757. radius: E && E.lineOptions.radius || 5
  24758. }
  24759. };
  24760. if (C.EdbInfoList.forEach((M) => {
  24761. b.data.push({
  24762. x: M.XValue,
  24763. y: M.YValue,
  24764. dataLabels: {
  24765. enabled: M.IsShow,
  24766. allowOverlap: !0,
  24767. align: "left",
  24768. format: M.Name,
  24769. formatZh: M.Name,
  24770. formatEn: M.NameEn
  24771. }
  24772. });
  24773. }), O.push(b), C.ShowTrendLine) {
  24774. let x = {
  24775. data: C.TrendLimitData.map((a, c) => c === C.TrendLimitData.length - 1 ? {
  24776. x: a.X,
  24777. y: a.Y,
  24778. dataLabels: {
  24779. enabled: C.ShowRSquare || C.ShowFitEquation,
  24780. align: "left",
  24781. color: "#666",
  24782. x: 20,
  24783. y: 30,
  24784. zIndex: 9,
  24785. allowOverlap: !0,
  24786. formatter: function() {
  24787. let p = "";
  24788. return C.ShowRSquare && C.ShowFitEquation ? p = `<span>${C.TrendLine}</span><br><span>R²=${C.RSquare}</span>` : C.ShowRSquare && !C.ShowFitEquation ? p = `<span>R²=${C.RSquare}</span>` : C.ShowFitEquation && !C.ShowRSquare && (p = `<span>${C.TrendLine}</span>`), p;
  24789. }
  24790. }
  24791. } : {
  24792. x: a.X,
  24793. y: a.Y
  24794. }),
  24795. type: "spline",
  24796. linkedTo: ":previous",
  24797. color: C.Color,
  24798. lineWidth: 1,
  24799. chartType: "linear",
  24800. enableMouseTracking: !1,
  24801. dashStyle: "Dash",
  24802. zIndex: 2,
  24803. visible: !0,
  24804. marker: {
  24805. enabled: !1
  24806. }
  24807. };
  24808. O.push(x);
  24809. }
  24810. }), {
  24811. title: {
  24812. text: ""
  24813. },
  24814. series: O,
  24815. yAxis: [d],
  24816. xAxis: P,
  24817. tooltip: {
  24818. formatter: function() {
  24819. let b = h.find((x) => x.Name === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), M = `<b>${b.Name}</b>`;
  24820. return M += `<br><span style="color:${this.color}">●</span>${b.XName}: ${this.x} ${b.XDate}<br>`, M += `<span style="color:${this.color}">●</span>${b.YName}: ${this.y} (${b.YDate})`, M;
  24821. },
  24822. formatterCh: function() {
  24823. let b = h.find((x) => x.Name === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), M = `<b>${b.Name}</b>`;
  24824. return M += `<br><span style="color:${this.color}">●</span>${b.XName}: ${this.x} ${b.XDate}<br>`, M += `<span style="color:${this.color}">●</span>${b.YName}: ${this.y} (${b.YDate})`, M;
  24825. },
  24826. formatterEn: function() {
  24827. let b = h.find((x) => x.NameEn === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), M = `<b>${b.NameEn}</b>`;
  24828. return M += `<br><span style="color:${this.color}">●</span>${b.XNameEn}: ${this.x} ${b.XDate}<br>`, M += `<span style="color:${this.color}">●</span>${b.YNameEn}: ${this.y} ${b.YDate}`, M;
  24829. }
  24830. }
  24831. };
  24832. }
  24833. function iM({ DataResp: r, EdbInfoList: g, ChartInfo: E }) {
  24834. Pt.leftIndex = -1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1;
  24835. const h = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null, { DataList: y, XName: R, YName: I, XNameEn: Z, YNameEn: H, XMaxValue: $, XMinValue: U, YMaxValue: W, YMinValue: N } = r, { leftMin: w, leftMax: v, xMin: u, xMax: d } = Pt;
  24836. let P = {
  24837. ...Or,
  24838. title: {
  24839. text: I,
  24840. textCh: I,
  24841. // 中文
  24842. textEn: H || I,
  24843. align: "middle",
  24844. style: {
  24845. ...h && h.xAxisOptions.style
  24846. }
  24847. },
  24848. labels: {
  24849. style: {
  24850. ...h && h.xAxisOptions.style
  24851. }
  24852. },
  24853. opposite: !1,
  24854. reversed: !1,
  24855. min: Number(w),
  24856. max: Number(v),
  24857. tickWidth: 1
  24858. }, O = {
  24859. ...Mn,
  24860. title: {
  24861. text: R,
  24862. textCh: R,
  24863. // 中文
  24864. textEn: Z || R,
  24865. align: "middle",
  24866. style: {
  24867. ...h && h.xAxisOptions.style
  24868. }
  24869. },
  24870. labels: {
  24871. style: {
  24872. ...h && h.xAxisOptions.style
  24873. }
  24874. },
  24875. min: Number(u),
  24876. max: Number(d)
  24877. }, B = [];
  24878. const C = {
  24879. //标签对应文字
  24880. 1: "最新",
  24881. 3: "Fix"
  24882. };
  24883. return y.forEach((M) => {
  24884. let x = {
  24885. data: [],
  24886. type: "scatter",
  24887. name: M.Name,
  24888. nameZh: M.Name,
  24889. nameEn: M.NameEn || M.Name,
  24890. color: M.Color,
  24891. lineWidth: 0,
  24892. chartType: "linear",
  24893. zIndex: 1
  24894. };
  24895. M.CoordinatePointData.forEach((a) => {
  24896. x.data.push({
  24897. x: a.X,
  24898. y: a.Y,
  24899. dataLabels: {
  24900. enabled: a.ShowTips === 1,
  24901. allowOverlap: !0,
  24902. align: "left",
  24903. format: C[a.DateType] || `-${a.DaysAgo}D`
  24904. }
  24905. });
  24906. }), B.push(x);
  24907. }), {
  24908. title: {
  24909. text: ""
  24910. },
  24911. series: B,
  24912. yAxis: [P],
  24913. xAxis: O,
  24914. tooltip: {
  24915. formatter: function() {
  24916. let x = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = g.find((i) => i.EdbInfoId === x.XEdbInfoId), c = g.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  24917. 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;
  24918. },
  24919. formatterCh: function() {
  24920. let x = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = g.find((i) => i.EdbInfoId === x.XEdbInfoId), c = g.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  24921. 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;
  24922. },
  24923. formatterEn: function() {
  24924. let x = y.find((i) => i.NameEn === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = g.find((i) => i.EdbInfoId === x.XEdbInfoId), c = g.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  24925. 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;
  24926. }
  24927. }
  24928. };
  24929. }
  24930. function rM({ DataResp: r, EdbInfoList: g, ChartInfo: E }) {
  24931. Pt.leftIndex = -1, Pt.rightIndex = -1, Pt.rightTwoIndex = -1;
  24932. const { YDataList: h, XEdbIdValue: y } = r;
  24933. let R = g.filter((U) => y.includes(U.EdbInfoId));
  24934. Pt.hasLeftAxis = !0, Pt.leftMin = Number(E.LeftMin), Pt.leftMax = Number(E.LeftMax);
  24935. const I = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null;
  24936. let Z = {
  24937. lineWidth: 0,
  24938. tickLength: 0,
  24939. tickmarkPlacement: "on",
  24940. categories: R.map((U) => U.EdbAliasName || U.EdbName),
  24941. labels: {
  24942. allowOverlap: !0,
  24943. autoRotationLimit: 40,
  24944. style: {
  24945. ...I && I.xAxisOptions.style
  24946. }
  24947. }
  24948. }, H = [{
  24949. gridLineInterpolation: "polygon",
  24950. gridLineWidth: 1,
  24951. lineWidth: 0,
  24952. endOnTick: !1,
  24953. startOnTick: !1,
  24954. showLastLabel: !0,
  24955. // tickAmount:4,
  24956. title: {
  24957. text: E.Unit,
  24958. textCh: E.Unit,
  24959. textEn: E.UnitEn,
  24960. align: "high",
  24961. rotation: 0,
  24962. y: 5,
  24963. x: 10,
  24964. textAlign: "left",
  24965. reserveSpace: !1,
  24966. style: {
  24967. ...I && I.yAxisOptions.style
  24968. }
  24969. },
  24970. labels: {
  24971. allowOverlap: !0,
  24972. style: {
  24973. ...I && I.yAxisOptions.style
  24974. }
  24975. },
  24976. min: Number(E.LeftMin),
  24977. max: Number(E.LeftMax)
  24978. }], $ = [];
  24979. return h.forEach((U) => {
  24980. let W = {
  24981. name: U.Name || U.Date,
  24982. nameZh: U.Name || U.Date,
  24983. nameEn: U.Date,
  24984. data: U.Value,
  24985. pointPlacement: "on",
  24986. type: I && I.lineOptions.lineType || "line",
  24987. dashStyle: I && I.lineOptions.dashStyle || "Solid",
  24988. yAxis: 0,
  24989. color: U.Color,
  24990. lineWidth: I && I.lineOptions.lineWidth || 1,
  24991. chartType: "linear"
  24992. };
  24993. $.push(W);
  24994. }), {
  24995. chart: {
  24996. ...fs.chart,
  24997. ...I == null ? void 0 : I.drawOption,
  24998. spacing: [2, 10, 2, 10],
  24999. polar: !0
  25000. },
  25001. title: {
  25002. text: ""
  25003. },
  25004. pane: {
  25005. size: "85%"
  25006. },
  25007. series: $,
  25008. yAxis: H,
  25009. xAxis: Z
  25010. };
  25011. }
  25012. function nM(r = [], g) {
  25013. if (g.ChartType === 5) {
  25014. r[1] && (Pt.leftMin = r[1].MinData, Pt.leftMax = r[1].MaxData);
  25015. return;
  25016. }
  25017. const E = r.filter((R) => R.IsAxis === 1).map((R) => [Number(R.MinData), Number(R.MaxData)]), h = r.filter((R) => !R.IsAxis).map((R) => [Number(R.MinData), Number(R.MaxData)]), y = r.filter((R) => R.IsAxis === 2).map((R) => [Number(R.MinData), Number(R.MaxData)]);
  25018. if (E.length) {
  25019. const {
  25020. Max: R,
  25021. Min: I
  25022. } = bn(E.flat());
  25023. Pt.leftMin = I, Pt.leftMax = R;
  25024. }
  25025. if (h.length) {
  25026. const {
  25027. Max: R,
  25028. Min: I
  25029. } = bn(h.flat());
  25030. Pt.rightMin = I, Pt.rightMax = R;
  25031. }
  25032. if (y.length) {
  25033. const {
  25034. Max: R,
  25035. Min: I
  25036. } = bn(y.flat());
  25037. Pt.rightTwoMin = I, Pt.rightTwoMax = R;
  25038. }
  25039. }
  25040. function bn(r) {
  25041. return {
  25042. Max: Math.max(...r),
  25043. Min: Math.min(...r)
  25044. };
  25045. }
  25046. function oM({ EdbInfoList: r, ChartInfo: g }) {
  25047. const {
  25048. //左右轴极值字段
  25049. LeftMin: E = 0,
  25050. LeftMax: h = 0,
  25051. RightMin: y = 0,
  25052. RightMax: R = 0,
  25053. Right2Min: I = 0,
  25054. Right2Max: Z = 0,
  25055. MinMaxSave: H
  25056. } = g;
  25057. H ? (Pt.leftMin = Number(E), Pt.leftMax = Number(h), Pt.rightMin = Number(y), Pt.rightMax = Number(R), Pt.rightTwoMin = Number(I), Pt.rightTwoMax = Number(Z), sM(r, g), console.log("check", Pt.leftMin, Pt.leftMax)) : nM(r, g);
  25058. }
  25059. function sM(r = [], g) {
  25060. if (g.ChartType === 5) {
  25061. r[1] && Number(Pt.leftMin) === 0 && Number(Pt.leftMax) === 0 && (Pt.leftMin = r[1].MinData, Pt.leftMax = r[1].MaxData);
  25062. return;
  25063. }
  25064. if (Number(Pt.leftMin) === 0 && Number(Pt.leftMax) === 0) {
  25065. const E = r.filter((h) => h.IsAxis === 1).map((h) => [Number(h.MinData), Number(h.MaxData)]);
  25066. if (E.length) {
  25067. const { Max: h, Min: y } = bn(E.flat());
  25068. Pt.leftMin = y, Pt.leftMax = h;
  25069. }
  25070. }
  25071. if (Number(Pt.rightMin) === 0 && Number(Pt.rightMax) === 0) {
  25072. const E = r.filter((h) => !h.IsAxis).map((h) => [Number(h.MinData), Number(h.MaxData)]);
  25073. if (E.length) {
  25074. const { Max: h, Min: y } = bn(E.flat());
  25075. Pt.rightMin = y, Pt.rightMax = h;
  25076. }
  25077. }
  25078. if (Number(Pt.rightTwoMin) === 0 && Number(Pt.rightTwoMax) === 0) {
  25079. const E = r.filter((h) => h.IsAxis === 2).map((h) => [Number(h.MinData), Number(h.MaxData)]);
  25080. if (E.length) {
  25081. const { Max: h, Min: y } = bn(E.flat());
  25082. Pt.rightTwoMin = y, Pt.rightTwoMax = h;
  25083. }
  25084. }
  25085. }
  25086. function Gu(r, g) {
  25087. return function() {
  25088. return r.apply(g, arguments);
  25089. };
  25090. }
  25091. const { toString: aM } = Object.prototype, { getPrototypeOf: Xh } = Object, Bs = ((r) => (g) => {
  25092. const E = aM.call(g);
  25093. return r[E] || (r[E] = E.slice(8, -1).toLowerCase());
  25094. })(/* @__PURE__ */ Object.create(null)), Ki = (r) => (r = r.toLowerCase(), (g) => Bs(g) === r), js = (r) => (g) => typeof g === r, { isArray: Tn } = Array, ro = js("undefined");
  25095. function hM(r) {
  25096. return r !== null && !ro(r) && r.constructor !== null && !ro(r.constructor) && Pi(r.constructor.isBuffer) && r.constructor.isBuffer(r);
  25097. }
  25098. const Hu = Ki("ArrayBuffer");
  25099. function lM(r) {
  25100. let g;
  25101. return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? g = ArrayBuffer.isView(r) : g = r && r.buffer && Hu(r.buffer), g;
  25102. }
  25103. const cM = js("string"), Pi = js("function"), Uu = js("number"), Ws = (r) => r !== null && typeof r == "object", pM = (r) => r === !0 || r === !1, cs = (r) => {
  25104. if (Bs(r) !== "object")
  25105. return !1;
  25106. const g = Xh(r);
  25107. return (g === null || g === Object.prototype || Object.getPrototypeOf(g) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r);
  25108. }, uM = Ki("Date"), dM = Ki("File"), fM = Ki("Blob"), gM = Ki("FileList"), mM = (r) => Ws(r) && Pi(r.pipe), yM = (r) => {
  25109. let g;
  25110. return r && (typeof FormData == "function" && r instanceof FormData || Pi(r.append) && ((g = Bs(r)) === "formdata" || // detect form-data instance
  25111. g === "object" && Pi(r.toString) && r.toString() === "[object FormData]"));
  25112. }, vM = Ki("URLSearchParams"), xM = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  25113. function ho(r, g, { allOwnKeys: E = !1 } = {}) {
  25114. if (r === null || typeof r > "u")
  25115. return;
  25116. let h, y;
  25117. if (typeof r != "object" && (r = [r]), Tn(r))
  25118. for (h = 0, y = r.length; h < y; h++)
  25119. g.call(null, r[h], h, r);
  25120. else {
  25121. const R = E ? Object.getOwnPropertyNames(r) : Object.keys(r), I = R.length;
  25122. let Z;
  25123. for (h = 0; h < I; h++)
  25124. Z = R[h], g.call(null, r[Z], Z, r);
  25125. }
  25126. }
  25127. function Fu(r, g) {
  25128. g = g.toLowerCase();
  25129. const E = Object.keys(r);
  25130. let h = E.length, y;
  25131. for (; h-- > 0; )
  25132. if (y = E[h], g === y.toLowerCase())
  25133. return y;
  25134. return null;
  25135. }
  25136. const Vu = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), $u = (r) => !ro(r) && r !== Vu;
  25137. function vh() {
  25138. const { caseless: r } = $u(this) && this || {}, g = {}, E = (h, y) => {
  25139. const R = r && Fu(g, y) || y;
  25140. cs(g[R]) && cs(h) ? g[R] = vh(g[R], h) : cs(h) ? g[R] = vh({}, h) : Tn(h) ? g[R] = h.slice() : g[R] = h;
  25141. };
  25142. for (let h = 0, y = arguments.length; h < y; h++)
  25143. arguments[h] && ho(arguments[h], E);
  25144. return g;
  25145. }
  25146. const bM = (r, g, E, { allOwnKeys: h } = {}) => (ho(g, (y, R) => {
  25147. E && Pi(y) ? r[R] = Gu(y, E) : r[R] = y;
  25148. }, { allOwnKeys: h }), r), SM = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), wM = (r, g, E, h) => {
  25149. r.prototype = Object.create(g.prototype, h), r.prototype.constructor = r, Object.defineProperty(r, "super", {
  25150. value: g.prototype
  25151. }), E && Object.assign(r.prototype, E);
  25152. }, MM = (r, g, E, h) => {
  25153. let y, R, I;
  25154. const Z = {};
  25155. if (g = g || {}, r == null)
  25156. return g;
  25157. do {
  25158. for (y = Object.getOwnPropertyNames(r), R = y.length; R-- > 0; )
  25159. I = y[R], (!h || h(I, r, g)) && !Z[I] && (g[I] = r[I], Z[I] = !0);
  25160. r = E !== !1 && Xh(r);
  25161. } while (r && (!E || E(r, g)) && r !== Object.prototype);
  25162. return g;
  25163. }, CM = (r, g, E) => {
  25164. r = String(r), (E === void 0 || E > r.length) && (E = r.length), E -= g.length;
  25165. const h = r.indexOf(g, E);
  25166. return h !== -1 && h === E;
  25167. }, kM = (r) => {
  25168. if (!r)
  25169. return null;
  25170. if (Tn(r))
  25171. return r;
  25172. let g = r.length;
  25173. if (!Uu(g))
  25174. return null;
  25175. const E = new Array(g);
  25176. for (; g-- > 0; )
  25177. E[g] = r[g];
  25178. return E;
  25179. }, AM = ((r) => (g) => r && g instanceof r)(typeof Uint8Array < "u" && Xh(Uint8Array)), TM = (r, g) => {
  25180. const h = (r && r[Symbol.iterator]).call(r);
  25181. let y;
  25182. for (; (y = h.next()) && !y.done; ) {
  25183. const R = y.value;
  25184. g.call(r, R[0], R[1]);
  25185. }
  25186. }, PM = (r, g) => {
  25187. let E;
  25188. const h = [];
  25189. for (; (E = r.exec(g)) !== null; )
  25190. h.push(E);
  25191. return h;
  25192. }, EM = Ki("HTMLFormElement"), OM = (r) => r.toLowerCase().replace(
  25193. /[-_\s]([a-z\d])(\w*)/g,
  25194. function(E, h, y) {
  25195. return h.toUpperCase() + y;
  25196. }
  25197. ), Tp = (({ hasOwnProperty: r }) => (g, E) => r.call(g, E))(Object.prototype), LM = Ki("RegExp"), Zu = (r, g) => {
  25198. const E = Object.getOwnPropertyDescriptors(r), h = {};
  25199. ho(E, (y, R) => {
  25200. let I;
  25201. (I = g(y, R, r)) !== !1 && (h[R] = I || y);
  25202. }), Object.defineProperties(r, h);
  25203. }, _M = (r) => {
  25204. Zu(r, (g, E) => {
  25205. if (Pi(r) && ["arguments", "caller", "callee"].indexOf(E) !== -1)
  25206. return !1;
  25207. const h = r[E];
  25208. if (Pi(h)) {
  25209. if (g.enumerable = !1, "writable" in g) {
  25210. g.writable = !1;
  25211. return;
  25212. }
  25213. g.set || (g.set = () => {
  25214. throw Error("Can not rewrite read-only method '" + E + "'");
  25215. });
  25216. }
  25217. });
  25218. }, DM = (r, g) => {
  25219. const E = {}, h = (y) => {
  25220. y.forEach((R) => {
  25221. E[R] = !0;
  25222. });
  25223. };
  25224. return Tn(r) ? h(r) : h(String(r).split(g)), E;
  25225. }, IM = () => {
  25226. }, RM = (r, g) => (r = +r, Number.isFinite(r) ? r : g), ah = "abcdefghijklmnopqrstuvwxyz", Pp = "0123456789", Ku = {
  25227. DIGIT: Pp,
  25228. ALPHA: ah,
  25229. ALPHA_DIGIT: ah + ah.toUpperCase() + Pp
  25230. }, NM = (r = 16, g = Ku.ALPHA_DIGIT) => {
  25231. let E = "";
  25232. const { length: h } = g;
  25233. for (; r--; )
  25234. E += g[Math.random() * h | 0];
  25235. return E;
  25236. };
  25237. function BM(r) {
  25238. return !!(r && Pi(r.append) && r[Symbol.toStringTag] === "FormData" && r[Symbol.iterator]);
  25239. }
  25240. const jM = (r) => {
  25241. const g = new Array(10), E = (h, y) => {
  25242. if (Ws(h)) {
  25243. if (g.indexOf(h) >= 0)
  25244. return;
  25245. if (!("toJSON" in h)) {
  25246. g[y] = h;
  25247. const R = Tn(h) ? [] : {};
  25248. return ho(h, (I, Z) => {
  25249. const H = E(I, y + 1);
  25250. !ro(H) && (R[Z] = H);
  25251. }), g[y] = void 0, R;
  25252. }
  25253. }
  25254. return h;
  25255. };
  25256. return E(r, 0);
  25257. }, WM = Ki("AsyncFunction"), zM = (r) => r && (Ws(r) || Pi(r)) && Pi(r.then) && Pi(r.catch), It = {
  25258. isArray: Tn,
  25259. isArrayBuffer: Hu,
  25260. isBuffer: hM,
  25261. isFormData: yM,
  25262. isArrayBufferView: lM,
  25263. isString: cM,
  25264. isNumber: Uu,
  25265. isBoolean: pM,
  25266. isObject: Ws,
  25267. isPlainObject: cs,
  25268. isUndefined: ro,
  25269. isDate: uM,
  25270. isFile: dM,
  25271. isBlob: fM,
  25272. isRegExp: LM,
  25273. isFunction: Pi,
  25274. isStream: mM,
  25275. isURLSearchParams: vM,
  25276. isTypedArray: AM,
  25277. isFileList: gM,
  25278. forEach: ho,
  25279. merge: vh,
  25280. extend: bM,
  25281. trim: xM,
  25282. stripBOM: SM,
  25283. inherits: wM,
  25284. toFlatObject: MM,
  25285. kindOf: Bs,
  25286. kindOfTest: Ki,
  25287. endsWith: CM,
  25288. toArray: kM,
  25289. forEachEntry: TM,
  25290. matchAll: PM,
  25291. isHTMLForm: EM,
  25292. hasOwnProperty: Tp,
  25293. hasOwnProp: Tp,
  25294. // an alias to avoid ESLint no-prototype-builtins detection
  25295. reduceDescriptors: Zu,
  25296. freezeMethods: _M,
  25297. toObjectSet: DM,
  25298. toCamelCase: OM,
  25299. noop: IM,
  25300. toFiniteNumber: RM,
  25301. findKey: Fu,
  25302. global: Vu,
  25303. isContextDefined: $u,
  25304. ALPHABET: Ku,
  25305. generateString: NM,
  25306. isSpecCompliantForm: BM,
  25307. toJSONObject: jM,
  25308. isAsyncFn: WM,
  25309. isThenable: zM
  25310. };
  25311. function fe(r, g, E, h, y) {
  25312. Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = r, this.name = "AxiosError", g && (this.code = g), E && (this.config = E), h && (this.request = h), y && (this.response = y);
  25313. }
  25314. It.inherits(fe, Error, {
  25315. toJSON: function() {
  25316. return {
  25317. // Standard
  25318. message: this.message,
  25319. name: this.name,
  25320. // Microsoft
  25321. description: this.description,
  25322. number: this.number,
  25323. // Mozilla
  25324. fileName: this.fileName,
  25325. lineNumber: this.lineNumber,
  25326. columnNumber: this.columnNumber,
  25327. stack: this.stack,
  25328. // Axios
  25329. config: It.toJSONObject(this.config),
  25330. code: this.code,
  25331. status: this.response && this.response.status ? this.response.status : null
  25332. };
  25333. }
  25334. });
  25335. const Ju = fe.prototype, qu = {};
  25336. [
  25337. "ERR_BAD_OPTION_VALUE",
  25338. "ERR_BAD_OPTION",
  25339. "ECONNABORTED",
  25340. "ETIMEDOUT",
  25341. "ERR_NETWORK",
  25342. "ERR_FR_TOO_MANY_REDIRECTS",
  25343. "ERR_DEPRECATED",
  25344. "ERR_BAD_RESPONSE",
  25345. "ERR_BAD_REQUEST",
  25346. "ERR_CANCELED",
  25347. "ERR_NOT_SUPPORT",
  25348. "ERR_INVALID_URL"
  25349. // eslint-disable-next-line func-names
  25350. ].forEach((r) => {
  25351. qu[r] = { value: r };
  25352. });
  25353. Object.defineProperties(fe, qu);
  25354. Object.defineProperty(Ju, "isAxiosError", { value: !0 });
  25355. fe.from = (r, g, E, h, y, R) => {
  25356. const I = Object.create(Ju);
  25357. return It.toFlatObject(r, I, function(H) {
  25358. return H !== Error.prototype;
  25359. }, (Z) => Z !== "isAxiosError"), fe.call(I, r.message, g, E, h, y), I.cause = r, I.name = r.name, R && Object.assign(I, R), I;
  25360. };
  25361. const YM = null;
  25362. function xh(r) {
  25363. return It.isPlainObject(r) || It.isArray(r);
  25364. }
  25365. function Qu(r) {
  25366. return It.endsWith(r, "[]") ? r.slice(0, -2) : r;
  25367. }
  25368. function Ep(r, g, E) {
  25369. return r ? r.concat(g).map(function(y, R) {
  25370. return y = Qu(y), !E && R ? "[" + y + "]" : y;
  25371. }).join(E ? "." : "") : g;
  25372. }
  25373. function XM(r) {
  25374. return It.isArray(r) && !r.some(xh);
  25375. }
  25376. const GM = It.toFlatObject(It, {}, null, function(g) {
  25377. return /^is[A-Z]/.test(g);
  25378. });
  25379. function zs(r, g, E) {
  25380. if (!It.isObject(r))
  25381. throw new TypeError("target must be an object");
  25382. g = g || new FormData(), E = It.toFlatObject(E, {
  25383. metaTokens: !0,
  25384. dots: !1,
  25385. indexes: !1
  25386. }, !1, function(u, d) {
  25387. return !It.isUndefined(d[u]);
  25388. });
  25389. const h = E.metaTokens, y = E.visitor || U, R = E.dots, I = E.indexes, H = (E.Blob || typeof Blob < "u" && Blob) && It.isSpecCompliantForm(g);
  25390. if (!It.isFunction(y))
  25391. throw new TypeError("visitor must be a function");
  25392. function $(v) {
  25393. if (v === null)
  25394. return "";
  25395. if (It.isDate(v))
  25396. return v.toISOString();
  25397. if (!H && It.isBlob(v))
  25398. throw new fe("Blob is not supported. Use a Buffer instead.");
  25399. return It.isArrayBuffer(v) || It.isTypedArray(v) ? H && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v;
  25400. }
  25401. function U(v, u, d) {
  25402. let P = v;
  25403. if (v && !d && typeof v == "object") {
  25404. if (It.endsWith(u, "{}"))
  25405. u = h ? u : u.slice(0, -2), v = JSON.stringify(v);
  25406. else if (It.isArray(v) && XM(v) || (It.isFileList(v) || It.endsWith(u, "[]")) && (P = It.toArray(v)))
  25407. return u = Qu(u), P.forEach(function(B, C) {
  25408. !(It.isUndefined(B) || B === null) && g.append(
  25409. // eslint-disable-next-line no-nested-ternary
  25410. I === !0 ? Ep([u], C, R) : I === null ? u : u + "[]",
  25411. $(B)
  25412. );
  25413. }), !1;
  25414. }
  25415. return xh(v) ? !0 : (g.append(Ep(d, u, R), $(v)), !1);
  25416. }
  25417. const W = [], N = Object.assign(GM, {
  25418. defaultVisitor: U,
  25419. convertValue: $,
  25420. isVisitable: xh
  25421. });
  25422. function w(v, u) {
  25423. if (!It.isUndefined(v)) {
  25424. if (W.indexOf(v) !== -1)
  25425. throw Error("Circular reference detected in " + u.join("."));
  25426. W.push(v), It.forEach(v, function(P, O) {
  25427. (!(It.isUndefined(P) || P === null) && y.call(
  25428. g,
  25429. P,
  25430. It.isString(O) ? O.trim() : O,
  25431. u,
  25432. N
  25433. )) === !0 && w(P, u ? u.concat(O) : [O]);
  25434. }), W.pop();
  25435. }
  25436. }
  25437. if (!It.isObject(r))
  25438. throw new TypeError("data must be an object");
  25439. return w(r), g;
  25440. }
  25441. function Op(r) {
  25442. const g = {
  25443. "!": "%21",
  25444. "'": "%27",
  25445. "(": "%28",
  25446. ")": "%29",
  25447. "~": "%7E",
  25448. "%20": "+",
  25449. "%00": "\0"
  25450. };
  25451. return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g, function(h) {
  25452. return g[h];
  25453. });
  25454. }
  25455. function Gh(r, g) {
  25456. this._pairs = [], r && zs(r, this, g);
  25457. }
  25458. const td = Gh.prototype;
  25459. td.append = function(g, E) {
  25460. this._pairs.push([g, E]);
  25461. };
  25462. td.toString = function(g) {
  25463. const E = g ? function(h) {
  25464. return g.call(this, h, Op);
  25465. } : Op;
  25466. return this._pairs.map(function(y) {
  25467. return E(y[0]) + "=" + E(y[1]);
  25468. }, "").join("&");
  25469. };
  25470. function HM(r) {
  25471. return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  25472. }
  25473. function ed(r, g, E) {
  25474. if (!g)
  25475. return r;
  25476. const h = E && E.encode || HM, y = E && E.serialize;
  25477. let R;
  25478. if (y ? R = y(g, E) : R = It.isURLSearchParams(g) ? g.toString() : new Gh(g, E).toString(h), R) {
  25479. const I = r.indexOf("#");
  25480. I !== -1 && (r = r.slice(0, I)), r += (r.indexOf("?") === -1 ? "?" : "&") + R;
  25481. }
  25482. return r;
  25483. }
  25484. class UM {
  25485. constructor() {
  25486. this.handlers = [];
  25487. }
  25488. /**
  25489. * Add a new interceptor to the stack
  25490. *
  25491. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  25492. * @param {Function} rejected The function to handle `reject` for a `Promise`
  25493. *
  25494. * @return {Number} An ID used to remove interceptor later
  25495. */
  25496. use(g, E, h) {
  25497. return this.handlers.push({
  25498. fulfilled: g,
  25499. rejected: E,
  25500. synchronous: h ? h.synchronous : !1,
  25501. runWhen: h ? h.runWhen : null
  25502. }), this.handlers.length - 1;
  25503. }
  25504. /**
  25505. * Remove an interceptor from the stack
  25506. *
  25507. * @param {Number} id The ID that was returned by `use`
  25508. *
  25509. * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
  25510. */
  25511. eject(g) {
  25512. this.handlers[g] && (this.handlers[g] = null);
  25513. }
  25514. /**
  25515. * Clear all interceptors from the stack
  25516. *
  25517. * @returns {void}
  25518. */
  25519. clear() {
  25520. this.handlers && (this.handlers = []);
  25521. }
  25522. /**
  25523. * Iterate over all the registered interceptors
  25524. *
  25525. * This method is particularly useful for skipping over any
  25526. * interceptors that may have become `null` calling `eject`.
  25527. *
  25528. * @param {Function} fn The function to call for each interceptor
  25529. *
  25530. * @returns {void}
  25531. */
  25532. forEach(g) {
  25533. It.forEach(this.handlers, function(h) {
  25534. h !== null && g(h);
  25535. });
  25536. }
  25537. }
  25538. const Lp = UM, id = {
  25539. silentJSONParsing: !0,
  25540. forcedJSONParsing: !0,
  25541. clarifyTimeoutError: !1
  25542. }, FM = typeof URLSearchParams < "u" ? URLSearchParams : Gh, VM = typeof FormData < "u" ? FormData : null, $M = typeof Blob < "u" ? Blob : null, ZM = (() => {
  25543. let r;
  25544. return typeof navigator < "u" && ((r = navigator.product) === "ReactNative" || r === "NativeScript" || r === "NS") ? !1 : typeof window < "u" && typeof document < "u";
  25545. })(), KM = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
  25546. self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Ni = {
  25547. isBrowser: !0,
  25548. classes: {
  25549. URLSearchParams: FM,
  25550. FormData: VM,
  25551. Blob: $M
  25552. },
  25553. isStandardBrowserEnv: ZM,
  25554. isStandardBrowserWebWorkerEnv: KM,
  25555. protocols: ["http", "https", "file", "blob", "url", "data"]
  25556. };
  25557. function JM(r, g) {
  25558. return zs(r, new Ni.classes.URLSearchParams(), Object.assign({
  25559. visitor: function(E, h, y, R) {
  25560. return Ni.isNode && It.isBuffer(E) ? (this.append(h, E.toString("base64")), !1) : R.defaultVisitor.apply(this, arguments);
  25561. }
  25562. }, g));
  25563. }
  25564. function qM(r) {
  25565. return It.matchAll(/\w+|\[(\w*)]/g, r).map((g) => g[0] === "[]" ? "" : g[1] || g[0]);
  25566. }
  25567. function QM(r) {
  25568. const g = {}, E = Object.keys(r);
  25569. let h;
  25570. const y = E.length;
  25571. let R;
  25572. for (h = 0; h < y; h++)
  25573. R = E[h], g[R] = r[R];
  25574. return g;
  25575. }
  25576. function rd(r) {
  25577. function g(E, h, y, R) {
  25578. let I = E[R++];
  25579. const Z = Number.isFinite(+I), H = R >= E.length;
  25580. return I = !I && It.isArray(y) ? y.length : I, H ? (It.hasOwnProp(y, I) ? y[I] = [y[I], h] : y[I] = h, !Z) : ((!y[I] || !It.isObject(y[I])) && (y[I] = []), g(E, h, y[I], R) && It.isArray(y[I]) && (y[I] = QM(y[I])), !Z);
  25581. }
  25582. if (It.isFormData(r) && It.isFunction(r.entries)) {
  25583. const E = {};
  25584. return It.forEachEntry(r, (h, y) => {
  25585. g(qM(h), y, E, 0);
  25586. }), E;
  25587. }
  25588. return null;
  25589. }
  25590. function tC(r, g, E) {
  25591. if (It.isString(r))
  25592. try {
  25593. return (g || JSON.parse)(r), It.trim(r);
  25594. } catch (h) {
  25595. if (h.name !== "SyntaxError")
  25596. throw h;
  25597. }
  25598. return (E || JSON.stringify)(r);
  25599. }
  25600. const Hh = {
  25601. transitional: id,
  25602. adapter: Ni.isNode ? "http" : "xhr",
  25603. transformRequest: [function(g, E) {
  25604. const h = E.getContentType() || "", y = h.indexOf("application/json") > -1, R = It.isObject(g);
  25605. if (R && It.isHTMLForm(g) && (g = new FormData(g)), It.isFormData(g))
  25606. return y && y ? JSON.stringify(rd(g)) : g;
  25607. if (It.isArrayBuffer(g) || It.isBuffer(g) || It.isStream(g) || It.isFile(g) || It.isBlob(g))
  25608. return g;
  25609. if (It.isArrayBufferView(g))
  25610. return g.buffer;
  25611. if (It.isURLSearchParams(g))
  25612. return E.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), g.toString();
  25613. let Z;
  25614. if (R) {
  25615. if (h.indexOf("application/x-www-form-urlencoded") > -1)
  25616. return JM(g, this.formSerializer).toString();
  25617. if ((Z = It.isFileList(g)) || h.indexOf("multipart/form-data") > -1) {
  25618. const H = this.env && this.env.FormData;
  25619. return zs(
  25620. Z ? { "files[]": g } : g,
  25621. H && new H(),
  25622. this.formSerializer
  25623. );
  25624. }
  25625. }
  25626. return R || y ? (E.setContentType("application/json", !1), tC(g)) : g;
  25627. }],
  25628. transformResponse: [function(g) {
  25629. const E = this.transitional || Hh.transitional, h = E && E.forcedJSONParsing, y = this.responseType === "json";
  25630. if (g && It.isString(g) && (h && !this.responseType || y)) {
  25631. const I = !(E && E.silentJSONParsing) && y;
  25632. try {
  25633. return JSON.parse(g);
  25634. } catch (Z) {
  25635. if (I)
  25636. throw Z.name === "SyntaxError" ? fe.from(Z, fe.ERR_BAD_RESPONSE, this, null, this.response) : Z;
  25637. }
  25638. }
  25639. return g;
  25640. }],
  25641. /**
  25642. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  25643. * timeout is not created.
  25644. */
  25645. timeout: 0,
  25646. xsrfCookieName: "XSRF-TOKEN",
  25647. xsrfHeaderName: "X-XSRF-TOKEN",
  25648. maxContentLength: -1,
  25649. maxBodyLength: -1,
  25650. env: {
  25651. FormData: Ni.classes.FormData,
  25652. Blob: Ni.classes.Blob
  25653. },
  25654. validateStatus: function(g) {
  25655. return g >= 200 && g < 300;
  25656. },
  25657. headers: {
  25658. common: {
  25659. Accept: "application/json, text/plain, */*",
  25660. "Content-Type": void 0
  25661. }
  25662. }
  25663. };
  25664. It.forEach(["delete", "get", "head", "post", "put", "patch"], (r) => {
  25665. Hh.headers[r] = {};
  25666. });
  25667. const Uh = Hh, eC = It.toObjectSet([
  25668. "age",
  25669. "authorization",
  25670. "content-length",
  25671. "content-type",
  25672. "etag",
  25673. "expires",
  25674. "from",
  25675. "host",
  25676. "if-modified-since",
  25677. "if-unmodified-since",
  25678. "last-modified",
  25679. "location",
  25680. "max-forwards",
  25681. "proxy-authorization",
  25682. "referer",
  25683. "retry-after",
  25684. "user-agent"
  25685. ]), iC = (r) => {
  25686. const g = {};
  25687. let E, h, y;
  25688. return r && r.split(`
  25689. `).forEach(function(I) {
  25690. y = I.indexOf(":"), E = I.substring(0, y).trim().toLowerCase(), h = I.substring(y + 1).trim(), !(!E || g[E] && eC[E]) && (E === "set-cookie" ? g[E] ? g[E].push(h) : g[E] = [h] : g[E] = g[E] ? g[E] + ", " + h : h);
  25691. }), g;
  25692. }, _p = Symbol("internals");
  25693. function Kn(r) {
  25694. return r && String(r).trim().toLowerCase();
  25695. }
  25696. function ps(r) {
  25697. return r === !1 || r == null ? r : It.isArray(r) ? r.map(ps) : String(r);
  25698. }
  25699. function rC(r) {
  25700. const g = /* @__PURE__ */ Object.create(null), E = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  25701. let h;
  25702. for (; h = E.exec(r); )
  25703. g[h[1]] = h[2];
  25704. return g;
  25705. }
  25706. const nC = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
  25707. function hh(r, g, E, h, y) {
  25708. if (It.isFunction(h))
  25709. return h.call(this, g, E);
  25710. if (y && (g = E), !!It.isString(g)) {
  25711. if (It.isString(h))
  25712. return g.indexOf(h) !== -1;
  25713. if (It.isRegExp(h))
  25714. return h.test(g);
  25715. }
  25716. }
  25717. function oC(r) {
  25718. return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (g, E, h) => E.toUpperCase() + h);
  25719. }
  25720. function sC(r, g) {
  25721. const E = It.toCamelCase(" " + g);
  25722. ["get", "set", "has"].forEach((h) => {
  25723. Object.defineProperty(r, h + E, {
  25724. value: function(y, R, I) {
  25725. return this[h].call(this, g, y, R, I);
  25726. },
  25727. configurable: !0
  25728. });
  25729. });
  25730. }
  25731. class Ys {
  25732. constructor(g) {
  25733. g && this.set(g);
  25734. }
  25735. set(g, E, h) {
  25736. const y = this;
  25737. function R(Z, H, $) {
  25738. const U = Kn(H);
  25739. if (!U)
  25740. throw new Error("header name must be a non-empty string");
  25741. const W = It.findKey(y, U);
  25742. (!W || y[W] === void 0 || $ === !0 || $ === void 0 && y[W] !== !1) && (y[W || H] = ps(Z));
  25743. }
  25744. const I = (Z, H) => It.forEach(Z, ($, U) => R($, U, H));
  25745. return It.isPlainObject(g) || g instanceof this.constructor ? I(g, E) : It.isString(g) && (g = g.trim()) && !nC(g) ? I(iC(g), E) : g != null && R(E, g, h), this;
  25746. }
  25747. get(g, E) {
  25748. if (g = Kn(g), g) {
  25749. const h = It.findKey(this, g);
  25750. if (h) {
  25751. const y = this[h];
  25752. if (!E)
  25753. return y;
  25754. if (E === !0)
  25755. return rC(y);
  25756. if (It.isFunction(E))
  25757. return E.call(this, y, h);
  25758. if (It.isRegExp(E))
  25759. return E.exec(y);
  25760. throw new TypeError("parser must be boolean|regexp|function");
  25761. }
  25762. }
  25763. }
  25764. has(g, E) {
  25765. if (g = Kn(g), g) {
  25766. const h = It.findKey(this, g);
  25767. return !!(h && this[h] !== void 0 && (!E || hh(this, this[h], h, E)));
  25768. }
  25769. return !1;
  25770. }
  25771. delete(g, E) {
  25772. const h = this;
  25773. let y = !1;
  25774. function R(I) {
  25775. if (I = Kn(I), I) {
  25776. const Z = It.findKey(h, I);
  25777. Z && (!E || hh(h, h[Z], Z, E)) && (delete h[Z], y = !0);
  25778. }
  25779. }
  25780. return It.isArray(g) ? g.forEach(R) : R(g), y;
  25781. }
  25782. clear(g) {
  25783. const E = Object.keys(this);
  25784. let h = E.length, y = !1;
  25785. for (; h--; ) {
  25786. const R = E[h];
  25787. (!g || hh(this, this[R], R, g, !0)) && (delete this[R], y = !0);
  25788. }
  25789. return y;
  25790. }
  25791. normalize(g) {
  25792. const E = this, h = {};
  25793. return It.forEach(this, (y, R) => {
  25794. const I = It.findKey(h, R);
  25795. if (I) {
  25796. E[I] = ps(y), delete E[R];
  25797. return;
  25798. }
  25799. const Z = g ? oC(R) : String(R).trim();
  25800. Z !== R && delete E[R], E[Z] = ps(y), h[Z] = !0;
  25801. }), this;
  25802. }
  25803. concat(...g) {
  25804. return this.constructor.concat(this, ...g);
  25805. }
  25806. toJSON(g) {
  25807. const E = /* @__PURE__ */ Object.create(null);
  25808. return It.forEach(this, (h, y) => {
  25809. h != null && h !== !1 && (E[y] = g && It.isArray(h) ? h.join(", ") : h);
  25810. }), E;
  25811. }
  25812. [Symbol.iterator]() {
  25813. return Object.entries(this.toJSON())[Symbol.iterator]();
  25814. }
  25815. toString() {
  25816. return Object.entries(this.toJSON()).map(([g, E]) => g + ": " + E).join(`
  25817. `);
  25818. }
  25819. get [Symbol.toStringTag]() {
  25820. return "AxiosHeaders";
  25821. }
  25822. static from(g) {
  25823. return g instanceof this ? g : new this(g);
  25824. }
  25825. static concat(g, ...E) {
  25826. const h = new this(g);
  25827. return E.forEach((y) => h.set(y)), h;
  25828. }
  25829. static accessor(g) {
  25830. const h = (this[_p] = this[_p] = {
  25831. accessors: {}
  25832. }).accessors, y = this.prototype;
  25833. function R(I) {
  25834. const Z = Kn(I);
  25835. h[Z] || (sC(y, I), h[Z] = !0);
  25836. }
  25837. return It.isArray(g) ? g.forEach(R) : R(g), this;
  25838. }
  25839. }
  25840. Ys.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
  25841. It.reduceDescriptors(Ys.prototype, ({ value: r }, g) => {
  25842. let E = g[0].toUpperCase() + g.slice(1);
  25843. return {
  25844. get: () => r,
  25845. set(h) {
  25846. this[E] = h;
  25847. }
  25848. };
  25849. });
  25850. It.freezeMethods(Ys);
  25851. const ur = Ys;
  25852. function lh(r, g) {
  25853. const E = this || Uh, h = g || E, y = ur.from(h.headers);
  25854. let R = h.data;
  25855. return It.forEach(r, function(Z) {
  25856. R = Z.call(E, R, y.normalize(), g ? g.status : void 0);
  25857. }), y.normalize(), R;
  25858. }
  25859. function nd(r) {
  25860. return !!(r && r.__CANCEL__);
  25861. }
  25862. function lo(r, g, E) {
  25863. fe.call(this, r ?? "canceled", fe.ERR_CANCELED, g, E), this.name = "CanceledError";
  25864. }
  25865. It.inherits(lo, fe, {
  25866. __CANCEL__: !0
  25867. });
  25868. function aC(r, g, E) {
  25869. const h = E.config.validateStatus;
  25870. !E.status || !h || h(E.status) ? r(E) : g(new fe(
  25871. "Request failed with status code " + E.status,
  25872. [fe.ERR_BAD_REQUEST, fe.ERR_BAD_RESPONSE][Math.floor(E.status / 100) - 4],
  25873. E.config,
  25874. E.request,
  25875. E
  25876. ));
  25877. }
  25878. const hC = Ni.isStandardBrowserEnv ? (
  25879. // Standard browser envs support document.cookie
  25880. function() {
  25881. return {
  25882. write: function(E, h, y, R, I, Z) {
  25883. const H = [];
  25884. H.push(E + "=" + encodeURIComponent(h)), It.isNumber(y) && H.push("expires=" + new Date(y).toGMTString()), It.isString(R) && H.push("path=" + R), It.isString(I) && H.push("domain=" + I), Z === !0 && H.push("secure"), document.cookie = H.join("; ");
  25885. },
  25886. read: function(E) {
  25887. const h = document.cookie.match(new RegExp("(^|;\\s*)(" + E + ")=([^;]*)"));
  25888. return h ? decodeURIComponent(h[3]) : null;
  25889. },
  25890. remove: function(E) {
  25891. this.write(E, "", Date.now() - 864e5);
  25892. }
  25893. };
  25894. }()
  25895. ) : (
  25896. // Non standard browser env (web workers, react-native) lack needed support.
  25897. function() {
  25898. return {
  25899. write: function() {
  25900. },
  25901. read: function() {
  25902. return null;
  25903. },
  25904. remove: function() {
  25905. }
  25906. };
  25907. }()
  25908. );
  25909. function lC(r) {
  25910. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r);
  25911. }
  25912. function cC(r, g) {
  25913. return g ? r.replace(/\/+$/, "") + "/" + g.replace(/^\/+/, "") : r;
  25914. }
  25915. function od(r, g) {
  25916. return r && !lC(g) ? cC(r, g) : g;
  25917. }
  25918. const pC = Ni.isStandardBrowserEnv ? (
  25919. // Standard browser envs have full support of the APIs needed to test
  25920. // whether the request URL is of the same origin as current location.
  25921. function() {
  25922. const g = /(msie|trident)/i.test(navigator.userAgent), E = document.createElement("a");
  25923. let h;
  25924. function y(R) {
  25925. let I = R;
  25926. return g && (E.setAttribute("href", I), I = E.href), E.setAttribute("href", I), {
  25927. href: E.href,
  25928. protocol: E.protocol ? E.protocol.replace(/:$/, "") : "",
  25929. host: E.host,
  25930. search: E.search ? E.search.replace(/^\?/, "") : "",
  25931. hash: E.hash ? E.hash.replace(/^#/, "") : "",
  25932. hostname: E.hostname,
  25933. port: E.port,
  25934. pathname: E.pathname.charAt(0) === "/" ? E.pathname : "/" + E.pathname
  25935. };
  25936. }
  25937. return h = y(window.location.href), function(I) {
  25938. const Z = It.isString(I) ? y(I) : I;
  25939. return Z.protocol === h.protocol && Z.host === h.host;
  25940. };
  25941. }()
  25942. ) : (
  25943. // Non standard browser envs (web workers, react-native) lack needed support.
  25944. function() {
  25945. return function() {
  25946. return !0;
  25947. };
  25948. }()
  25949. );
  25950. function uC(r) {
  25951. const g = /^([-+\w]{1,25})(:?\/\/|:)/.exec(r);
  25952. return g && g[1] || "";
  25953. }
  25954. function dC(r, g) {
  25955. r = r || 10;
  25956. const E = new Array(r), h = new Array(r);
  25957. let y = 0, R = 0, I;
  25958. return g = g !== void 0 ? g : 1e3, function(H) {
  25959. const $ = Date.now(), U = h[R];
  25960. I || (I = $), E[y] = H, h[y] = $;
  25961. let W = R, N = 0;
  25962. for (; W !== y; )
  25963. N += E[W++], W = W % r;
  25964. if (y = (y + 1) % r, y === R && (R = (R + 1) % r), $ - I < g)
  25965. return;
  25966. const w = U && $ - U;
  25967. return w ? Math.round(N * 1e3 / w) : void 0;
  25968. };
  25969. }
  25970. function Dp(r, g) {
  25971. let E = 0;
  25972. const h = dC(50, 250);
  25973. return (y) => {
  25974. const R = y.loaded, I = y.lengthComputable ? y.total : void 0, Z = R - E, H = h(Z), $ = R <= I;
  25975. E = R;
  25976. const U = {
  25977. loaded: R,
  25978. total: I,
  25979. progress: I ? R / I : void 0,
  25980. bytes: Z,
  25981. rate: H || void 0,
  25982. estimated: H && I && $ ? (I - R) / H : void 0,
  25983. event: y
  25984. };
  25985. U[g ? "download" : "upload"] = !0, r(U);
  25986. };
  25987. }
  25988. const fC = typeof XMLHttpRequest < "u", gC = fC && function(r) {
  25989. return new Promise(function(E, h) {
  25990. let y = r.data;
  25991. const R = ur.from(r.headers).normalize(), I = r.responseType;
  25992. let Z;
  25993. function H() {
  25994. r.cancelToken && r.cancelToken.unsubscribe(Z), r.signal && r.signal.removeEventListener("abort", Z);
  25995. }
  25996. It.isFormData(y) && (Ni.isStandardBrowserEnv || Ni.isStandardBrowserWebWorkerEnv ? R.setContentType(!1) : R.setContentType("multipart/form-data;", !1));
  25997. let $ = new XMLHttpRequest();
  25998. if (r.auth) {
  25999. const w = r.auth.username || "", v = r.auth.password ? unescape(encodeURIComponent(r.auth.password)) : "";
  26000. R.set("Authorization", "Basic " + btoa(w + ":" + v));
  26001. }
  26002. const U = od(r.baseURL, r.url);
  26003. $.open(r.method.toUpperCase(), ed(U, r.params, r.paramsSerializer), !0), $.timeout = r.timeout;
  26004. function W() {
  26005. if (!$)
  26006. return;
  26007. const w = ur.from(
  26008. "getAllResponseHeaders" in $ && $.getAllResponseHeaders()
  26009. ), u = {
  26010. data: !I || I === "text" || I === "json" ? $.responseText : $.response,
  26011. status: $.status,
  26012. statusText: $.statusText,
  26013. headers: w,
  26014. config: r,
  26015. request: $
  26016. };
  26017. aC(function(P) {
  26018. E(P), H();
  26019. }, function(P) {
  26020. h(P), H();
  26021. }, u), $ = null;
  26022. }
  26023. if ("onloadend" in $ ? $.onloadend = W : $.onreadystatechange = function() {
  26024. !$ || $.readyState !== 4 || $.status === 0 && !($.responseURL && $.responseURL.indexOf("file:") === 0) || setTimeout(W);
  26025. }, $.onabort = function() {
  26026. $ && (h(new fe("Request aborted", fe.ECONNABORTED, r, $)), $ = null);
  26027. }, $.onerror = function() {
  26028. h(new fe("Network Error", fe.ERR_NETWORK, r, $)), $ = null;
  26029. }, $.ontimeout = function() {
  26030. let v = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
  26031. const u = r.transitional || id;
  26032. r.timeoutErrorMessage && (v = r.timeoutErrorMessage), h(new fe(
  26033. v,
  26034. u.clarifyTimeoutError ? fe.ETIMEDOUT : fe.ECONNABORTED,
  26035. r,
  26036. $
  26037. )), $ = null;
  26038. }, Ni.isStandardBrowserEnv) {
  26039. const w = (r.withCredentials || pC(U)) && r.xsrfCookieName && hC.read(r.xsrfCookieName);
  26040. w && R.set(r.xsrfHeaderName, w);
  26041. }
  26042. y === void 0 && R.setContentType(null), "setRequestHeader" in $ && It.forEach(R.toJSON(), function(v, u) {
  26043. $.setRequestHeader(u, v);
  26044. }), It.isUndefined(r.withCredentials) || ($.withCredentials = !!r.withCredentials), I && I !== "json" && ($.responseType = r.responseType), typeof r.onDownloadProgress == "function" && $.addEventListener("progress", Dp(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && $.upload && $.upload.addEventListener("progress", Dp(r.onUploadProgress)), (r.cancelToken || r.signal) && (Z = (w) => {
  26045. $ && (h(!w || w.type ? new lo(null, r, $) : w), $.abort(), $ = null);
  26046. }, r.cancelToken && r.cancelToken.subscribe(Z), r.signal && (r.signal.aborted ? Z() : r.signal.addEventListener("abort", Z)));
  26047. const N = uC(U);
  26048. if (N && Ni.protocols.indexOf(N) === -1) {
  26049. h(new fe("Unsupported protocol " + N + ":", fe.ERR_BAD_REQUEST, r));
  26050. return;
  26051. }
  26052. $.send(y || null);
  26053. });
  26054. }, us = {
  26055. http: YM,
  26056. xhr: gC
  26057. };
  26058. It.forEach(us, (r, g) => {
  26059. if (r) {
  26060. try {
  26061. Object.defineProperty(r, "name", { value: g });
  26062. } catch {
  26063. }
  26064. Object.defineProperty(r, "adapterName", { value: g });
  26065. }
  26066. });
  26067. const sd = {
  26068. getAdapter: (r) => {
  26069. r = It.isArray(r) ? r : [r];
  26070. const { length: g } = r;
  26071. let E, h;
  26072. for (let y = 0; y < g && (E = r[y], !(h = It.isString(E) ? us[E.toLowerCase()] : E)); y++)
  26073. ;
  26074. if (!h)
  26075. throw h === !1 ? new fe(
  26076. `Adapter ${E} is not supported by the environment`,
  26077. "ERR_NOT_SUPPORT"
  26078. ) : new Error(
  26079. It.hasOwnProp(us, E) ? `Adapter '${E}' is not available in the build` : `Unknown adapter '${E}'`
  26080. );
  26081. if (!It.isFunction(h))
  26082. throw new TypeError("adapter is not a function");
  26083. return h;
  26084. },
  26085. adapters: us
  26086. };
  26087. function ch(r) {
  26088. if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
  26089. throw new lo(null, r);
  26090. }
  26091. function Ip(r) {
  26092. return ch(r), r.headers = ur.from(r.headers), r.data = lh.call(
  26093. r,
  26094. r.transformRequest
  26095. ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), sd.getAdapter(r.adapter || Uh.adapter)(r).then(function(h) {
  26096. return ch(r), h.data = lh.call(
  26097. r,
  26098. r.transformResponse,
  26099. h
  26100. ), h.headers = ur.from(h.headers), h;
  26101. }, function(h) {
  26102. return nd(h) || (ch(r), h && h.response && (h.response.data = lh.call(
  26103. r,
  26104. r.transformResponse,
  26105. h.response
  26106. ), h.response.headers = ur.from(h.response.headers))), Promise.reject(h);
  26107. });
  26108. }
  26109. const Rp = (r) => r instanceof ur ? r.toJSON() : r;
  26110. function wn(r, g) {
  26111. g = g || {};
  26112. const E = {};
  26113. function h($, U, W) {
  26114. return It.isPlainObject($) && It.isPlainObject(U) ? It.merge.call({ caseless: W }, $, U) : It.isPlainObject(U) ? It.merge({}, U) : It.isArray(U) ? U.slice() : U;
  26115. }
  26116. function y($, U, W) {
  26117. if (It.isUndefined(U)) {
  26118. if (!It.isUndefined($))
  26119. return h(void 0, $, W);
  26120. } else
  26121. return h($, U, W);
  26122. }
  26123. function R($, U) {
  26124. if (!It.isUndefined(U))
  26125. return h(void 0, U);
  26126. }
  26127. function I($, U) {
  26128. if (It.isUndefined(U)) {
  26129. if (!It.isUndefined($))
  26130. return h(void 0, $);
  26131. } else
  26132. return h(void 0, U);
  26133. }
  26134. function Z($, U, W) {
  26135. if (W in g)
  26136. return h($, U);
  26137. if (W in r)
  26138. return h(void 0, $);
  26139. }
  26140. const H = {
  26141. url: R,
  26142. method: R,
  26143. data: R,
  26144. baseURL: I,
  26145. transformRequest: I,
  26146. transformResponse: I,
  26147. paramsSerializer: I,
  26148. timeout: I,
  26149. timeoutMessage: I,
  26150. withCredentials: I,
  26151. adapter: I,
  26152. responseType: I,
  26153. xsrfCookieName: I,
  26154. xsrfHeaderName: I,
  26155. onUploadProgress: I,
  26156. onDownloadProgress: I,
  26157. decompress: I,
  26158. maxContentLength: I,
  26159. maxBodyLength: I,
  26160. beforeRedirect: I,
  26161. transport: I,
  26162. httpAgent: I,
  26163. httpsAgent: I,
  26164. cancelToken: I,
  26165. socketPath: I,
  26166. responseEncoding: I,
  26167. validateStatus: Z,
  26168. headers: ($, U) => y(Rp($), Rp(U), !0)
  26169. };
  26170. return It.forEach(Object.keys(Object.assign({}, r, g)), function(U) {
  26171. const W = H[U] || y, N = W(r[U], g[U], U);
  26172. It.isUndefined(N) && W !== Z || (E[U] = N);
  26173. }), E;
  26174. }
  26175. const ad = "1.5.0", Fh = {};
  26176. ["object", "boolean", "number", "function", "string", "symbol"].forEach((r, g) => {
  26177. Fh[r] = function(h) {
  26178. return typeof h === r || "a" + (g < 1 ? "n " : " ") + r;
  26179. };
  26180. });
  26181. const Np = {};
  26182. Fh.transitional = function(g, E, h) {
  26183. function y(R, I) {
  26184. return "[Axios v" + ad + "] Transitional option '" + R + "'" + I + (h ? ". " + h : "");
  26185. }
  26186. return (R, I, Z) => {
  26187. if (g === !1)
  26188. throw new fe(
  26189. y(I, " has been removed" + (E ? " in " + E : "")),
  26190. fe.ERR_DEPRECATED
  26191. );
  26192. return E && !Np[I] && (Np[I] = !0, console.warn(
  26193. y(
  26194. I,
  26195. " has been deprecated since v" + E + " and will be removed in the near future"
  26196. )
  26197. )), g ? g(R, I, Z) : !0;
  26198. };
  26199. };
  26200. function mC(r, g, E) {
  26201. if (typeof r != "object")
  26202. throw new fe("options must be an object", fe.ERR_BAD_OPTION_VALUE);
  26203. const h = Object.keys(r);
  26204. let y = h.length;
  26205. for (; y-- > 0; ) {
  26206. const R = h[y], I = g[R];
  26207. if (I) {
  26208. const Z = r[R], H = Z === void 0 || I(Z, R, r);
  26209. if (H !== !0)
  26210. throw new fe("option " + R + " must be " + H, fe.ERR_BAD_OPTION_VALUE);
  26211. continue;
  26212. }
  26213. if (E !== !0)
  26214. throw new fe("Unknown option " + R, fe.ERR_BAD_OPTION);
  26215. }
  26216. }
  26217. const bh = {
  26218. assertOptions: mC,
  26219. validators: Fh
  26220. }, kr = bh.validators;
  26221. class Cs {
  26222. constructor(g) {
  26223. this.defaults = g, this.interceptors = {
  26224. request: new Lp(),
  26225. response: new Lp()
  26226. };
  26227. }
  26228. /**
  26229. * Dispatch a request
  26230. *
  26231. * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
  26232. * @param {?Object} config
  26233. *
  26234. * @returns {Promise} The Promise to be fulfilled
  26235. */
  26236. request(g, E) {
  26237. typeof g == "string" ? (E = E || {}, E.url = g) : E = g || {}, E = wn(this.defaults, E);
  26238. const { transitional: h, paramsSerializer: y, headers: R } = E;
  26239. h !== void 0 && bh.assertOptions(h, {
  26240. silentJSONParsing: kr.transitional(kr.boolean),
  26241. forcedJSONParsing: kr.transitional(kr.boolean),
  26242. clarifyTimeoutError: kr.transitional(kr.boolean)
  26243. }, !1), y != null && (It.isFunction(y) ? E.paramsSerializer = {
  26244. serialize: y
  26245. } : bh.assertOptions(y, {
  26246. encode: kr.function,
  26247. serialize: kr.function
  26248. }, !0)), E.method = (E.method || this.defaults.method || "get").toLowerCase();
  26249. let I = R && It.merge(
  26250. R.common,
  26251. R[E.method]
  26252. );
  26253. R && It.forEach(
  26254. ["delete", "get", "head", "post", "put", "patch", "common"],
  26255. (v) => {
  26256. delete R[v];
  26257. }
  26258. ), E.headers = ur.concat(I, R);
  26259. const Z = [];
  26260. let H = !0;
  26261. this.interceptors.request.forEach(function(u) {
  26262. typeof u.runWhen == "function" && u.runWhen(E) === !1 || (H = H && u.synchronous, Z.unshift(u.fulfilled, u.rejected));
  26263. });
  26264. const $ = [];
  26265. this.interceptors.response.forEach(function(u) {
  26266. $.push(u.fulfilled, u.rejected);
  26267. });
  26268. let U, W = 0, N;
  26269. if (!H) {
  26270. const v = [Ip.bind(this), void 0];
  26271. for (v.unshift.apply(v, Z), v.push.apply(v, $), N = v.length, U = Promise.resolve(E); W < N; )
  26272. U = U.then(v[W++], v[W++]);
  26273. return U;
  26274. }
  26275. N = Z.length;
  26276. let w = E;
  26277. for (W = 0; W < N; ) {
  26278. const v = Z[W++], u = Z[W++];
  26279. try {
  26280. w = v(w);
  26281. } catch (d) {
  26282. u.call(this, d);
  26283. break;
  26284. }
  26285. }
  26286. try {
  26287. U = Ip.call(this, w);
  26288. } catch (v) {
  26289. return Promise.reject(v);
  26290. }
  26291. for (W = 0, N = $.length; W < N; )
  26292. U = U.then($[W++], $[W++]);
  26293. return U;
  26294. }
  26295. getUri(g) {
  26296. g = wn(this.defaults, g);
  26297. const E = od(g.baseURL, g.url);
  26298. return ed(E, g.params, g.paramsSerializer);
  26299. }
  26300. }
  26301. It.forEach(["delete", "get", "head", "options"], function(g) {
  26302. Cs.prototype[g] = function(E, h) {
  26303. return this.request(wn(h || {}, {
  26304. method: g,
  26305. url: E,
  26306. data: (h || {}).data
  26307. }));
  26308. };
  26309. });
  26310. It.forEach(["post", "put", "patch"], function(g) {
  26311. function E(h) {
  26312. return function(R, I, Z) {
  26313. return this.request(wn(Z || {}, {
  26314. method: g,
  26315. headers: h ? {
  26316. "Content-Type": "multipart/form-data"
  26317. } : {},
  26318. url: R,
  26319. data: I
  26320. }));
  26321. };
  26322. }
  26323. Cs.prototype[g] = E(), Cs.prototype[g + "Form"] = E(!0);
  26324. });
  26325. const ds = Cs;
  26326. class Vh {
  26327. constructor(g) {
  26328. if (typeof g != "function")
  26329. throw new TypeError("executor must be a function.");
  26330. let E;
  26331. this.promise = new Promise(function(R) {
  26332. E = R;
  26333. });
  26334. const h = this;
  26335. this.promise.then((y) => {
  26336. if (!h._listeners)
  26337. return;
  26338. let R = h._listeners.length;
  26339. for (; R-- > 0; )
  26340. h._listeners[R](y);
  26341. h._listeners = null;
  26342. }), this.promise.then = (y) => {
  26343. let R;
  26344. const I = new Promise((Z) => {
  26345. h.subscribe(Z), R = Z;
  26346. }).then(y);
  26347. return I.cancel = function() {
  26348. h.unsubscribe(R);
  26349. }, I;
  26350. }, g(function(R, I, Z) {
  26351. h.reason || (h.reason = new lo(R, I, Z), E(h.reason));
  26352. });
  26353. }
  26354. /**
  26355. * Throws a `CanceledError` if cancellation has been requested.
  26356. */
  26357. throwIfRequested() {
  26358. if (this.reason)
  26359. throw this.reason;
  26360. }
  26361. /**
  26362. * Subscribe to the cancel signal
  26363. */
  26364. subscribe(g) {
  26365. if (this.reason) {
  26366. g(this.reason);
  26367. return;
  26368. }
  26369. this._listeners ? this._listeners.push(g) : this._listeners = [g];
  26370. }
  26371. /**
  26372. * Unsubscribe from the cancel signal
  26373. */
  26374. unsubscribe(g) {
  26375. if (!this._listeners)
  26376. return;
  26377. const E = this._listeners.indexOf(g);
  26378. E !== -1 && this._listeners.splice(E, 1);
  26379. }
  26380. /**
  26381. * Returns an object that contains a new `CancelToken` and a function that, when called,
  26382. * cancels the `CancelToken`.
  26383. */
  26384. static source() {
  26385. let g;
  26386. return {
  26387. token: new Vh(function(y) {
  26388. g = y;
  26389. }),
  26390. cancel: g
  26391. };
  26392. }
  26393. }
  26394. const yC = Vh;
  26395. function vC(r) {
  26396. return function(E) {
  26397. return r.apply(null, E);
  26398. };
  26399. }
  26400. function xC(r) {
  26401. return It.isObject(r) && r.isAxiosError === !0;
  26402. }
  26403. const Sh = {
  26404. Continue: 100,
  26405. SwitchingProtocols: 101,
  26406. Processing: 102,
  26407. EarlyHints: 103,
  26408. Ok: 200,
  26409. Created: 201,
  26410. Accepted: 202,
  26411. NonAuthoritativeInformation: 203,
  26412. NoContent: 204,
  26413. ResetContent: 205,
  26414. PartialContent: 206,
  26415. MultiStatus: 207,
  26416. AlreadyReported: 208,
  26417. ImUsed: 226,
  26418. MultipleChoices: 300,
  26419. MovedPermanently: 301,
  26420. Found: 302,
  26421. SeeOther: 303,
  26422. NotModified: 304,
  26423. UseProxy: 305,
  26424. Unused: 306,
  26425. TemporaryRedirect: 307,
  26426. PermanentRedirect: 308,
  26427. BadRequest: 400,
  26428. Unauthorized: 401,
  26429. PaymentRequired: 402,
  26430. Forbidden: 403,
  26431. NotFound: 404,
  26432. MethodNotAllowed: 405,
  26433. NotAcceptable: 406,
  26434. ProxyAuthenticationRequired: 407,
  26435. RequestTimeout: 408,
  26436. Conflict: 409,
  26437. Gone: 410,
  26438. LengthRequired: 411,
  26439. PreconditionFailed: 412,
  26440. PayloadTooLarge: 413,
  26441. UriTooLong: 414,
  26442. UnsupportedMediaType: 415,
  26443. RangeNotSatisfiable: 416,
  26444. ExpectationFailed: 417,
  26445. ImATeapot: 418,
  26446. MisdirectedRequest: 421,
  26447. UnprocessableEntity: 422,
  26448. Locked: 423,
  26449. FailedDependency: 424,
  26450. TooEarly: 425,
  26451. UpgradeRequired: 426,
  26452. PreconditionRequired: 428,
  26453. TooManyRequests: 429,
  26454. RequestHeaderFieldsTooLarge: 431,
  26455. UnavailableForLegalReasons: 451,
  26456. InternalServerError: 500,
  26457. NotImplemented: 501,
  26458. BadGateway: 502,
  26459. ServiceUnavailable: 503,
  26460. GatewayTimeout: 504,
  26461. HttpVersionNotSupported: 505,
  26462. VariantAlsoNegotiates: 506,
  26463. InsufficientStorage: 507,
  26464. LoopDetected: 508,
  26465. NotExtended: 510,
  26466. NetworkAuthenticationRequired: 511
  26467. };
  26468. Object.entries(Sh).forEach(([r, g]) => {
  26469. Sh[g] = r;
  26470. });
  26471. const bC = Sh;
  26472. function hd(r) {
  26473. const g = new ds(r), E = Gu(ds.prototype.request, g);
  26474. return It.extend(E, ds.prototype, g, { allOwnKeys: !0 }), It.extend(E, g, null, { allOwnKeys: !0 }), E.create = function(y) {
  26475. return hd(wn(r, y));
  26476. }, E;
  26477. }
  26478. const We = hd(Uh);
  26479. We.Axios = ds;
  26480. We.CanceledError = lo;
  26481. We.CancelToken = yC;
  26482. We.isCancel = nd;
  26483. We.VERSION = ad;
  26484. We.toFormData = zs;
  26485. We.AxiosError = fe;
  26486. We.Cancel = We.CanceledError;
  26487. We.all = function(g) {
  26488. return Promise.all(g);
  26489. };
  26490. We.spread = vC;
  26491. We.isAxiosError = xC;
  26492. We.mergeConfig = wn;
  26493. We.AxiosHeaders = ur;
  26494. We.formToJSON = (r) => rd(It.isHTMLForm(r) ? new FormData(r) : r);
  26495. We.getAdapter = sd.getAdapter;
  26496. We.HttpStatusCode = bC;
  26497. We.default = We;
  26498. const SC = We;
  26499. let wC = {
  26500. baseURL: "/api",
  26501. timeout: 10 * 60 * 1e3
  26502. };
  26503. const $h = SC.create(wC);
  26504. $h.interceptors.request.use(
  26505. function(r) {
  26506. return r;
  26507. },
  26508. function(r) {
  26509. return console.error(r), Promise.reject(r);
  26510. }
  26511. );
  26512. $h.interceptors.response.use(
  26513. function(r) {
  26514. let g = r.data;
  26515. return r.status !== 200 && console.error("网络异常"), g || console.error("服务器开了个小差"), g.Ret === 408 && console.error(g.Msg), g.Ret === 403 && console.error(g.Msg || "网络异常"), g;
  26516. },
  26517. function(r) {
  26518. return console.error(r), Promise.reject(r);
  26519. }
  26520. );
  26521. const ld = (r, g) => $h.post(r, g), MC = (r) => ld("/chart/detail", r), CC = (r) => ld("/excel/detail", r);
  26522. function cd(r) {
  26523. if (r.indexOf("?") === -1)
  26524. return {};
  26525. const E = r.split("?")[1].split("&"), h = {};
  26526. return E.forEach((y) => {
  26527. const [R, I] = y.split("=");
  26528. h[R] = decodeURIComponent(I);
  26529. }), h;
  26530. }
  26531. const kC = `div[data-v-108b9eb2]{box-sizing:border-box}.hz-chart-wrap[data-v-108b9eb2]{font:initial;page-break-inside:avoid;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}.hz-chart-wrap .hz-chart-head[data-v-108b9eb2]{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-108b9eb2]{width:100%}.hz-chart-wrap .hz-chart-content[data-v-108b9eb2]{width:100%;flex:1}.hz-chart-wrap .mark[data-v-108b9eb2]{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:580PX;height:60PX}.hz-chart-wrap .notfound[data-v-108b9eb2]{flex:1;overflow:hidden;padding:10PX;color:#777;text-align:center}.hz-chart-wrap .chart-bottom-info[data-v-108b9eb2]{padding-right:10PX;padding-bottom:0;padding-left:25PX;display:flex}.hz-chart-wrap .chart-bottom-info .chart-instruction[data-v-108b9eb2]{max-width:80%;flex:1;text-align:right;margin-left:auto}.hz-chart-wrap .hz-chart-footer[data-v-108b9eb2]{padding-left:25PX;padding-right:10PX;padding-bottom:10PX;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hz-chart-wrap .text_oneLine[data-v-108b9eb2]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  26532. `, pd = (r, g) => {
  26533. const E = r.__vccOpts || r;
  26534. for (const [h, y] of g)
  26535. E[h] = y;
  26536. return E;
  26537. }, AC = { class: "hz-chart-head" }, TC = ["id"], PC = {
  26538. key: 1,
  26539. class: "notfound"
  26540. }, EC = {
  26541. key: 2,
  26542. class: "chart-bottom-info bootom-source"
  26543. }, OC = ["textContent"], LC = {
  26544. __name: "EtaChart.ce",
  26545. props: {
  26546. src: "",
  26547. width: "",
  26548. height: "",
  26549. style: ""
  26550. },
  26551. setup(r) {
  26552. const g = r, { chartRender: E } = jw(), h = cd(g.src), y = Xe(null), R = Xe(""), I = Xe(null), Z = Xe(null), H = Xe(!1), $ = Xe(null);
  26553. async function U() {
  26554. if (!h.code) {
  26555. H.value = !1;
  26556. return;
  26557. }
  26558. try {
  26559. const N = await MC({
  26560. UniqueCode: h.code
  26561. });
  26562. if (N.Ret !== 200)
  26563. return;
  26564. I.value = N.Data.ChartInfo, Z.value = N.Data.ChartInfo.Source === 1 ? N.Data.EdbInfoList : [N.Data.EdbInfoList[0]], R.value = `hz-chart_${h.code}_${(/* @__PURE__ */ new Date()).getTime()}`, W(), H.value = !0, Bp(() => {
  26565. E({
  26566. data: {
  26567. ...N.Data,
  26568. ChartInfo: {
  26569. ...N.Data.ChartInfo,
  26570. Calendar: "公历"
  26571. }
  26572. },
  26573. renderId: y.value,
  26574. lang: "zh",
  26575. changeLangIsCheck: !1,
  26576. showChartTitle: !1
  26577. }), N.Data.WaterMark && ($.value.style.backgroundImage = `url(${N.Data.WaterMark})`);
  26578. });
  26579. } catch {
  26580. H.value = !1;
  26581. }
  26582. }
  26583. const W = () => {
  26584. if (h.fromPage !== "en")
  26585. return;
  26586. let N = !!I.value.ChartNameEn, w = [2, 9, 10].includes(I.value.ChartType) ? !0 : Z.value.every((v) => v.EdbNameEn);
  26587. h.language = N && w ? "en" : "ch", h.language = "ch";
  26588. };
  26589. return U(), (N, w) => {
  26590. var v, u, d, P;
  26591. return ri(), ni("div", {
  26592. class: "hz-chart-wrap",
  26593. style: Ur([g.style + ";height:" + g.height + "px", { margin: "0 0 10px 0" }])
  26594. }, [
  26595. hr("header", AC, [
  26596. I.value ? (ri(), ni("span", {
  26597. key: 0,
  26598. class: "chart-title",
  26599. style: Ur(I.value.ChartThemeStyle ? `
  26600. text-align:${JSON.parse(I.value.ChartThemeStyle).titleOptions.align};
  26601. font-size:${JSON.parse(I.value.ChartThemeStyle).titleOptions.style.fontSize}px;
  26602. color:${JSON.parse(I.value.ChartThemeStyle).titleOptions.style.color}
  26603. ` : "")
  26604. }, mn(C0(h).language === "en" ? I.value.ChartNameEn : I.value.ChartName), 5)) : ns("", !0)
  26605. ]),
  26606. H.value ? (ri(), ni(os, { key: 0 }, [
  26607. hr("div", {
  26608. id: R.value,
  26609. ref_key: "chartContentEl",
  26610. ref: y,
  26611. class: "hz-chart-content"
  26612. }, null, 8, TC),
  26613. hr("div", {
  26614. class: "mark",
  26615. ref_key: "markDom",
  26616. ref: $
  26617. }, null, 512)
  26618. ], 64)) : (ri(), ni("div", PC, " 哎吆,你的图飞了,赶快去找管理员救命吧~ ")),
  26619. (v = I.value) != null && v.Instructions && JSON.parse((u = I.value) == null ? void 0 : u.Instructions).isShow ? (ri(), ni("div", EC, [
  26620. hr("div", {
  26621. class: "chart-instruction text_oneLine",
  26622. textContent: mn(JSON.parse(I.value.Instructions).text),
  26623. style: Ur(`
  26624. color: ${JSON.parse(I.value.Instructions).color};
  26625. font-size: ${JSON.parse(I.value.Instructions).fontSize}px
  26626. `)
  26627. }, null, 12, OC)
  26628. ])) : ns("", !0),
  26629. (d = I.value) != null && d.SourcesFrom && ((P = JSON.parse(I.value.SourcesFrom)) != null && P.isShow) ? (ri(), ni("div", {
  26630. key: 3,
  26631. class: "hz-chart-footer",
  26632. style: Ur(`
  26633. color: ${JSON.parse(I.value.SourcesFrom).color};
  26634. font-size: ${JSON.parse(I.value.SourcesFrom).fontSize}px;
  26635. `)
  26636. }, [
  26637. k0(" source:"),
  26638. hr("em", null, mn(JSON.parse(I.value.SourcesFrom).text), 1)
  26639. ], 4)) : ns("", !0)
  26640. ], 4);
  26641. };
  26642. }
  26643. }, _C = /* @__PURE__ */ pd(LC, [["styles", [kC]], ["__scopeId", "data-v-108b9eb2"]]), DC = `.sheet-show-wrapper[data-v-ace65c5c]{overflow:hidden;position:relative;margin:0 auto;background:#fff}.sheet-show-wrapper .title[data-v-ace65c5c]{font-size:17PX;font-weight:400;padding:0 10PX;margin:0 0 8PX}.sheet-show-wrapper .table-wrapper[data-v-ace65c5c]{max-width:calc(100vw - 20PX);margin:0 auto;overflow:auto}.sheet-show-wrapper .table-wrapper table[data-v-ace65c5c]{width:100%;font-size:14PX;color:#333;table-layout:auto}.sheet-show-wrapper .table-wrapper table td[data-v-ace65c5c],.sheet-show-wrapper .table-wrapper table th[data-v-ace65c5c]{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-ace65c5c]:first-child,.sheet-show-wrapper .table-wrapper table th[data-v-ace65c5c]:first-child{border-left:1PX solid #dcdfe6}.sheet-show-wrapper .table-wrapper table .data-cell[data-v-ace65c5c]{color:#333}.sheet-show-wrapper .table-wrapper table .data-cell.one-bg[data-v-ace65c5c]{background-color:#efeef1}.sheet-show-wrapper .table-wrapper table .data-cell.two-bg[data-v-ace65c5c]{background-color:#fff}.sheet-show-wrapper .table-wrapper table .thead-sticky[data-v-ace65c5c]{position:sticky;top:0}.sheet-show-wrapper .table-wrapper table .head-column[data-v-ace65c5c]{background-color:#505b78;color:#fff}.sheet-show-wrapper .table-wrapper table .split-word span[data-v-ace65c5c]{display:inline}
  26644. `, IC = {
  26645. key: 0,
  26646. class: "sheet-show-wrapper"
  26647. }, RC = { class: "title" }, NC = { class: "table-wrapper" }, BC = ["colspan", "rowspan"], jC = {
  26648. key: 0,
  26649. class: "split-word"
  26650. }, WC = { key: 1 }, zC = {
  26651. __name: "EtaTable.ce",
  26652. props: {
  26653. src: "",
  26654. width: "",
  26655. height: "",
  26656. style: ""
  26657. },
  26658. setup(r) {
  26659. const E = cd(r.src), h = Xe({}), y = Xe(!1);
  26660. async function R() {
  26661. const I = await CC({ UniqueCode: E.code, FromScene: Number(E.fromScene || "") });
  26662. I.Ret === 200 && (h.value = I.Data, y.value = !0);
  26663. }
  26664. return R(), (I, Z) => {
  26665. var H, $;
  26666. return y.value ? (ri(), ni("div", IC, [
  26667. hr("h3", RC, mn(h.value.ExcelName), 1),
  26668. hr("div", NC, [
  26669. hr("table", {
  26670. cellpadding: "0",
  26671. cellspacing: "0",
  26672. style: Ur(`font-size: ${((H = h.value.Config) == null ? void 0 : H.FontSize) || 12}PX`)
  26673. }, [
  26674. hr("tbody", null, [
  26675. (ri(!0), ni(os, null, Qa(($ = h.value.TableInfo) == null ? void 0 : $.TableDataList, (U, W) => (ri(), ni("tr", { key: W }, [
  26676. (ri(!0), ni(os, null, Qa(U, (N, w) => (ri(), ni("td", {
  26677. class: A0(["data-cell", {
  26678. "one-bg": (W + 1) % 2 && W > 0,
  26679. "tow-bg": (W + 1) % 2 !== 0 && W > 0,
  26680. "head-column": W === 0
  26681. }]),
  26682. key: w,
  26683. colspan: N.mc.cs || 1,
  26684. rowspan: N.mc.rs || 1,
  26685. style: Ur(`
  26686. color: ${N.fc};
  26687. font-weight: ${N.bl ? "bold" : "normal"};
  26688. font-style: ${N.it ? "italic" : "normal"};
  26689. background: ${N.bg};
  26690. `)
  26691. }, [
  26692. N.ct.s ? (ri(), ni("div", jC, [
  26693. (ri(!0), ni(os, null, Qa(N.ct.s, (v, u) => (ri(), ni("span", {
  26694. key: `${W}_${w}_${u}`,
  26695. style: Ur(`
  26696. color: ${v.fc};
  26697. font-weight: ${v.bl ? "bold" : "normal"};
  26698. font-style: ${v.it ? "italic" : "normal"};
  26699. `)
  26700. }, mn(v.v), 5))), 128))
  26701. ])) : (ri(), ni("div", WC, mn(N.m), 1))
  26702. ], 14, BC))), 128))
  26703. ]))), 128))
  26704. ])
  26705. ], 4)
  26706. ])
  26707. ])) : ns("", !0);
  26708. };
  26709. }
  26710. }, YC = /* @__PURE__ */ pd(zC, [["styles", [DC]], ["__scopeId", "data-v-ace65c5c"]]), XC = jp(_C), GC = jp(YC);
  26711. function UC() {
  26712. customElements.define("eta-chart", XC), customElements.define("eta-table", GC);
  26713. }
  26714. export {
  26715. UC as registerEtaComp
  26716. };