moment-with-locales.js 591 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758
  1. ;(function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. global.moment = factory()
  5. }(this, (function () { 'use strict';
  6. var hookCallback;
  7. function hooks() {
  8. return hookCallback.apply(null, arguments);
  9. }
  10. // This is done to register the method called with moment()
  11. // without creating circular dependencies.
  12. function setHookCallback(callback) {
  13. hookCallback = callback;
  14. }
  15. function isArray(input) {
  16. return (
  17. input instanceof Array ||
  18. Object.prototype.toString.call(input) === '[object Array]'
  19. );
  20. }
  21. function isObject(input) {
  22. // IE8 will treat undefined and null as object if it wasn't for
  23. // input != null
  24. return (
  25. input != null &&
  26. Object.prototype.toString.call(input) === '[object Object]'
  27. );
  28. }
  29. function hasOwnProp(a, b) {
  30. return Object.prototype.hasOwnProperty.call(a, b);
  31. }
  32. function isObjectEmpty(obj) {
  33. if (Object.getOwnPropertyNames) {
  34. return Object.getOwnPropertyNames(obj).length === 0;
  35. } else {
  36. var k;
  37. for (k in obj) {
  38. if (hasOwnProp(obj, k)) {
  39. return false;
  40. }
  41. }
  42. return true;
  43. }
  44. }
  45. function isUndefined(input) {
  46. return input === void 0;
  47. }
  48. function isNumber(input) {
  49. return (
  50. typeof input === 'number' ||
  51. Object.prototype.toString.call(input) === '[object Number]'
  52. );
  53. }
  54. function isDate(input) {
  55. return (
  56. input instanceof Date ||
  57. Object.prototype.toString.call(input) === '[object Date]'
  58. );
  59. }
  60. function map(arr, fn) {
  61. var res = [],
  62. i;
  63. for (i = 0; i < arr.length; ++i) {
  64. res.push(fn(arr[i], i));
  65. }
  66. return res;
  67. }
  68. function extend(a, b) {
  69. for (var i in b) {
  70. if (hasOwnProp(b, i)) {
  71. a[i] = b[i];
  72. }
  73. }
  74. if (hasOwnProp(b, 'toString')) {
  75. a.toString = b.toString;
  76. }
  77. if (hasOwnProp(b, 'valueOf')) {
  78. a.valueOf = b.valueOf;
  79. }
  80. return a;
  81. }
  82. function createUTC(input, format, locale, strict) {
  83. return createLocalOrUTC(input, format, locale, strict, true).utc();
  84. }
  85. function defaultParsingFlags() {
  86. // We need to deep clone this object.
  87. return {
  88. empty: false,
  89. unusedTokens: [],
  90. unusedInput: [],
  91. overflow: -2,
  92. charsLeftOver: 0,
  93. nullInput: false,
  94. invalidEra: null,
  95. invalidMonth: null,
  96. invalidFormat: false,
  97. userInvalidated: false,
  98. iso: false,
  99. parsedDateParts: [],
  100. era: null,
  101. meridiem: null,
  102. rfc2822: false,
  103. weekdayMismatch: false,
  104. };
  105. }
  106. function getParsingFlags(m) {
  107. if (m._pf == null) {
  108. m._pf = defaultParsingFlags();
  109. }
  110. return m._pf;
  111. }
  112. var some;
  113. if (Array.prototype.some) {
  114. some = Array.prototype.some;
  115. } else {
  116. some = function (fun) {
  117. var t = Object(this),
  118. len = t.length >>> 0,
  119. i;
  120. for (i = 0; i < len; i++) {
  121. if (i in t && fun.call(this, t[i], i, t)) {
  122. return true;
  123. }
  124. }
  125. return false;
  126. };
  127. }
  128. function isValid(m) {
  129. if (m._isValid == null) {
  130. var flags = getParsingFlags(m),
  131. parsedParts = some.call(flags.parsedDateParts, function (i) {
  132. return i != null;
  133. }),
  134. isNowValid =
  135. !isNaN(m._d.getTime()) &&
  136. flags.overflow < 0 &&
  137. !flags.empty &&
  138. !flags.invalidEra &&
  139. !flags.invalidMonth &&
  140. !flags.invalidWeekday &&
  141. !flags.weekdayMismatch &&
  142. !flags.nullInput &&
  143. !flags.invalidFormat &&
  144. !flags.userInvalidated &&
  145. (!flags.meridiem || (flags.meridiem && parsedParts));
  146. if (m._strict) {
  147. isNowValid =
  148. isNowValid &&
  149. flags.charsLeftOver === 0 &&
  150. flags.unusedTokens.length === 0 &&
  151. flags.bigHour === undefined;
  152. }
  153. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  154. m._isValid = isNowValid;
  155. } else {
  156. return isNowValid;
  157. }
  158. }
  159. return m._isValid;
  160. }
  161. function createInvalid(flags) {
  162. var m = createUTC(NaN);
  163. if (flags != null) {
  164. extend(getParsingFlags(m), flags);
  165. } else {
  166. getParsingFlags(m).userInvalidated = true;
  167. }
  168. return m;
  169. }
  170. // Plugins that add properties should also add the key here (null value),
  171. // so we can properly clone ourselves.
  172. var momentProperties = (hooks.momentProperties = []),
  173. updateInProgress = false;
  174. function copyConfig(to, from) {
  175. var i, prop, val;
  176. if (!isUndefined(from._isAMomentObject)) {
  177. to._isAMomentObject = from._isAMomentObject;
  178. }
  179. if (!isUndefined(from._i)) {
  180. to._i = from._i;
  181. }
  182. if (!isUndefined(from._f)) {
  183. to._f = from._f;
  184. }
  185. if (!isUndefined(from._l)) {
  186. to._l = from._l;
  187. }
  188. if (!isUndefined(from._strict)) {
  189. to._strict = from._strict;
  190. }
  191. if (!isUndefined(from._tzm)) {
  192. to._tzm = from._tzm;
  193. }
  194. if (!isUndefined(from._isUTC)) {
  195. to._isUTC = from._isUTC;
  196. }
  197. if (!isUndefined(from._offset)) {
  198. to._offset = from._offset;
  199. }
  200. if (!isUndefined(from._pf)) {
  201. to._pf = getParsingFlags(from);
  202. }
  203. if (!isUndefined(from._locale)) {
  204. to._locale = from._locale;
  205. }
  206. if (momentProperties.length > 0) {
  207. for (i = 0; i < momentProperties.length; i++) {
  208. prop = momentProperties[i];
  209. val = from[prop];
  210. if (!isUndefined(val)) {
  211. to[prop] = val;
  212. }
  213. }
  214. }
  215. return to;
  216. }
  217. // Moment prototype object
  218. function Moment(config) {
  219. copyConfig(this, config);
  220. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  221. if (!this.isValid()) {
  222. this._d = new Date(NaN);
  223. }
  224. // Prevent infinite loop in case updateOffset creates new moment
  225. // objects.
  226. if (updateInProgress === false) {
  227. updateInProgress = true;
  228. hooks.updateOffset(this);
  229. updateInProgress = false;
  230. }
  231. }
  232. function isMoment(obj) {
  233. return (
  234. obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
  235. );
  236. }
  237. function warn(msg) {
  238. if (
  239. hooks.suppressDeprecationWarnings === false &&
  240. typeof console !== 'undefined' &&
  241. console.warn
  242. ) {
  243. console.warn('Deprecation warning: ' + msg);
  244. }
  245. }
  246. function deprecate(msg, fn) {
  247. var firstTime = true;
  248. return extend(function () {
  249. if (hooks.deprecationHandler != null) {
  250. hooks.deprecationHandler(null, msg);
  251. }
  252. if (firstTime) {
  253. var args = [],
  254. arg,
  255. i,
  256. key;
  257. for (i = 0; i < arguments.length; i++) {
  258. arg = '';
  259. if (typeof arguments[i] === 'object') {
  260. arg += '\n[' + i + '] ';
  261. for (key in arguments[0]) {
  262. if (hasOwnProp(arguments[0], key)) {
  263. arg += key + ': ' + arguments[0][key] + ', ';
  264. }
  265. }
  266. arg = arg.slice(0, -2); // Remove trailing comma and space
  267. } else {
  268. arg = arguments[i];
  269. }
  270. args.push(arg);
  271. }
  272. warn(
  273. msg +
  274. '\nArguments: ' +
  275. Array.prototype.slice.call(args).join('') +
  276. '\n' +
  277. new Error().stack
  278. );
  279. firstTime = false;
  280. }
  281. return fn.apply(this, arguments);
  282. }, fn);
  283. }
  284. var deprecations = {};
  285. function deprecateSimple(name, msg) {
  286. if (hooks.deprecationHandler != null) {
  287. hooks.deprecationHandler(name, msg);
  288. }
  289. if (!deprecations[name]) {
  290. warn(msg);
  291. deprecations[name] = true;
  292. }
  293. }
  294. hooks.suppressDeprecationWarnings = false;
  295. hooks.deprecationHandler = null;
  296. function isFunction(input) {
  297. return (
  298. (typeof Function !== 'undefined' && input instanceof Function) ||
  299. Object.prototype.toString.call(input) === '[object Function]'
  300. );
  301. }
  302. function set(config) {
  303. var prop, i;
  304. for (i in config) {
  305. if (hasOwnProp(config, i)) {
  306. prop = config[i];
  307. if (isFunction(prop)) {
  308. this[i] = prop;
  309. } else {
  310. this['_' + i] = prop;
  311. }
  312. }
  313. }
  314. this._config = config;
  315. // Lenient ordinal parsing accepts just a number in addition to
  316. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  317. // TODO: Remove "ordinalParse" fallback in next major release.
  318. this._dayOfMonthOrdinalParseLenient = new RegExp(
  319. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  320. '|' +
  321. /\d{1,2}/.source
  322. );
  323. }
  324. function mergeConfigs(parentConfig, childConfig) {
  325. var res = extend({}, parentConfig),
  326. prop;
  327. for (prop in childConfig) {
  328. if (hasOwnProp(childConfig, prop)) {
  329. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  330. res[prop] = {};
  331. extend(res[prop], parentConfig[prop]);
  332. extend(res[prop], childConfig[prop]);
  333. } else if (childConfig[prop] != null) {
  334. res[prop] = childConfig[prop];
  335. } else {
  336. delete res[prop];
  337. }
  338. }
  339. }
  340. for (prop in parentConfig) {
  341. if (
  342. hasOwnProp(parentConfig, prop) &&
  343. !hasOwnProp(childConfig, prop) &&
  344. isObject(parentConfig[prop])
  345. ) {
  346. // make sure changes to properties don't modify parent config
  347. res[prop] = extend({}, res[prop]);
  348. }
  349. }
  350. return res;
  351. }
  352. function Locale(config) {
  353. if (config != null) {
  354. this.set(config);
  355. }
  356. }
  357. var keys;
  358. if (Object.keys) {
  359. keys = Object.keys;
  360. } else {
  361. keys = function (obj) {
  362. var i,
  363. res = [];
  364. for (i in obj) {
  365. if (hasOwnProp(obj, i)) {
  366. res.push(i);
  367. }
  368. }
  369. return res;
  370. };
  371. }
  372. var defaultCalendar = {
  373. sameDay: '[Today at] LT',
  374. nextDay: '[Tomorrow at] LT',
  375. nextWeek: 'dddd [at] LT',
  376. lastDay: '[Yesterday at] LT',
  377. lastWeek: '[Last] dddd [at] LT',
  378. sameElse: 'L',
  379. };
  380. function calendar(key, mom, now) {
  381. var output = this._calendar[key] || this._calendar['sameElse'];
  382. return isFunction(output) ? output.call(mom, now) : output;
  383. }
  384. function zeroFill(number, targetLength, forceSign) {
  385. var absNumber = '' + Math.abs(number),
  386. zerosToFill = targetLength - absNumber.length,
  387. sign = number >= 0;
  388. return (
  389. (sign ? (forceSign ? '+' : '') : '-') +
  390. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
  391. absNumber
  392. );
  393. }
  394. var formattingTokens = /(\[[^\[]*\])|(\\)?([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,
  395. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  396. formatFunctions = {},
  397. formatTokenFunctions = {};
  398. // token: 'M'
  399. // padded: ['MM', 2]
  400. // ordinal: 'Mo'
  401. // callback: function () { this.month() + 1 }
  402. function addFormatToken(token, padded, ordinal, callback) {
  403. var func = callback;
  404. if (typeof callback === 'string') {
  405. func = function () {
  406. return this[callback]();
  407. };
  408. }
  409. if (token) {
  410. formatTokenFunctions[token] = func;
  411. }
  412. if (padded) {
  413. formatTokenFunctions[padded[0]] = function () {
  414. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  415. };
  416. }
  417. if (ordinal) {
  418. formatTokenFunctions[ordinal] = function () {
  419. return this.localeData().ordinal(
  420. func.apply(this, arguments),
  421. token
  422. );
  423. };
  424. }
  425. }
  426. function removeFormattingTokens(input) {
  427. if (input.match(/\[[\s\S]/)) {
  428. return input.replace(/^\[|\]$/g, '');
  429. }
  430. return input.replace(/\\/g, '');
  431. }
  432. function makeFormatFunction(format) {
  433. var array = format.match(formattingTokens),
  434. i,
  435. length;
  436. for (i = 0, length = array.length; i < length; i++) {
  437. if (formatTokenFunctions[array[i]]) {
  438. array[i] = formatTokenFunctions[array[i]];
  439. } else {
  440. array[i] = removeFormattingTokens(array[i]);
  441. }
  442. }
  443. return function (mom) {
  444. var output = '',
  445. i;
  446. for (i = 0; i < length; i++) {
  447. output += isFunction(array[i])
  448. ? array[i].call(mom, format)
  449. : array[i];
  450. }
  451. return output;
  452. };
  453. }
  454. // format date using native date object
  455. function formatMoment(m, format) {
  456. if (!m.isValid()) {
  457. return m.localeData().invalidDate();
  458. }
  459. format = expandFormat(format, m.localeData());
  460. formatFunctions[format] =
  461. formatFunctions[format] || makeFormatFunction(format);
  462. return formatFunctions[format](m);
  463. }
  464. function expandFormat(format, locale) {
  465. var i = 5;
  466. function replaceLongDateFormatTokens(input) {
  467. return locale.longDateFormat(input) || input;
  468. }
  469. localFormattingTokens.lastIndex = 0;
  470. while (i >= 0 && localFormattingTokens.test(format)) {
  471. format = format.replace(
  472. localFormattingTokens,
  473. replaceLongDateFormatTokens
  474. );
  475. localFormattingTokens.lastIndex = 0;
  476. i -= 1;
  477. }
  478. return format;
  479. }
  480. var defaultLongDateFormat = {
  481. LTS: 'h:mm:ss A',
  482. LT: 'h:mm A',
  483. L: 'MM/DD/YYYY',
  484. LL: 'MMMM D, YYYY',
  485. LLL: 'MMMM D, YYYY h:mm A',
  486. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  487. };
  488. function longDateFormat(key) {
  489. var format = this._longDateFormat[key],
  490. formatUpper = this._longDateFormat[key.toUpperCase()];
  491. if (format || !formatUpper) {
  492. return format;
  493. }
  494. this._longDateFormat[key] = formatUpper
  495. .match(formattingTokens)
  496. .map(function (tok) {
  497. if (
  498. tok === 'MMMM' ||
  499. tok === 'MM' ||
  500. tok === 'DD' ||
  501. tok === 'dddd'
  502. ) {
  503. return tok.slice(1);
  504. }
  505. return tok;
  506. })
  507. .join('');
  508. return this._longDateFormat[key];
  509. }
  510. var defaultInvalidDate = 'Invalid date';
  511. function invalidDate() {
  512. return this._invalidDate;
  513. }
  514. var defaultOrdinal = '%d',
  515. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  516. function ordinal(number) {
  517. return this._ordinal.replace('%d', number);
  518. }
  519. var defaultRelativeTime = {
  520. future: 'in %s',
  521. past: '%s ago',
  522. s: 'a few seconds',
  523. ss: '%d seconds',
  524. m: 'a minute',
  525. mm: '%d minutes',
  526. h: 'an hour',
  527. hh: '%d hours',
  528. d: 'a day',
  529. dd: '%d days',
  530. w: 'a week',
  531. ww: '%d weeks',
  532. M: 'a month',
  533. MM: '%d months',
  534. y: 'a year',
  535. yy: '%d years',
  536. };
  537. function relativeTime(number, withoutSuffix, string, isFuture) {
  538. var output = this._relativeTime[string];
  539. return isFunction(output)
  540. ? output(number, withoutSuffix, string, isFuture)
  541. : output.replace(/%d/i, number);
  542. }
  543. function pastFuture(diff, output) {
  544. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  545. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  546. }
  547. var aliases = {};
  548. function addUnitAlias(unit, shorthand) {
  549. var lowerCase = unit.toLowerCase();
  550. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  551. }
  552. function normalizeUnits(units) {
  553. return typeof units === 'string'
  554. ? aliases[units] || aliases[units.toLowerCase()]
  555. : undefined;
  556. }
  557. function normalizeObjectUnits(inputObject) {
  558. var normalizedInput = {},
  559. normalizedProp,
  560. prop;
  561. for (prop in inputObject) {
  562. if (hasOwnProp(inputObject, prop)) {
  563. normalizedProp = normalizeUnits(prop);
  564. if (normalizedProp) {
  565. normalizedInput[normalizedProp] = inputObject[prop];
  566. }
  567. }
  568. }
  569. return normalizedInput;
  570. }
  571. var priorities = {};
  572. function addUnitPriority(unit, priority) {
  573. priorities[unit] = priority;
  574. }
  575. function getPrioritizedUnits(unitsObj) {
  576. var units = [],
  577. u;
  578. for (u in unitsObj) {
  579. if (hasOwnProp(unitsObj, u)) {
  580. units.push({ unit: u, priority: priorities[u] });
  581. }
  582. }
  583. units.sort(function (a, b) {
  584. return a.priority - b.priority;
  585. });
  586. return units;
  587. }
  588. function isLeapYear(year) {
  589. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  590. }
  591. function absFloor(number) {
  592. if (number < 0) {
  593. // -0 -> 0
  594. return Math.ceil(number) || 0;
  595. } else {
  596. return Math.floor(number);
  597. }
  598. }
  599. function toInt(argumentForCoercion) {
  600. var coercedNumber = +argumentForCoercion,
  601. value = 0;
  602. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  603. value = absFloor(coercedNumber);
  604. }
  605. return value;
  606. }
  607. function makeGetSet(unit, keepTime) {
  608. return function (value) {
  609. if (value != null) {
  610. set$1(this, unit, value);
  611. hooks.updateOffset(this, keepTime);
  612. return this;
  613. } else {
  614. return get(this, unit);
  615. }
  616. };
  617. }
  618. function get(mom, unit) {
  619. return mom.isValid()
  620. ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
  621. : NaN;
  622. }
  623. function set$1(mom, unit, value) {
  624. if (mom.isValid() && !isNaN(value)) {
  625. if (
  626. unit === 'FullYear' &&
  627. isLeapYear(mom.year()) &&
  628. mom.month() === 1 &&
  629. mom.date() === 29
  630. ) {
  631. value = toInt(value);
  632. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
  633. value,
  634. mom.month(),
  635. daysInMonth(value, mom.month())
  636. );
  637. } else {
  638. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  639. }
  640. }
  641. }
  642. // MOMENTS
  643. function stringGet(units) {
  644. units = normalizeUnits(units);
  645. if (isFunction(this[units])) {
  646. return this[units]();
  647. }
  648. return this;
  649. }
  650. function stringSet(units, value) {
  651. if (typeof units === 'object') {
  652. units = normalizeObjectUnits(units);
  653. var prioritized = getPrioritizedUnits(units),
  654. i;
  655. for (i = 0; i < prioritized.length; i++) {
  656. this[prioritized[i].unit](units[prioritized[i].unit]);
  657. }
  658. } else {
  659. units = normalizeUnits(units);
  660. if (isFunction(this[units])) {
  661. return this[units](value);
  662. }
  663. }
  664. return this;
  665. }
  666. var match1 = /\d/, // 0 - 9
  667. match2 = /\d\d/, // 00 - 99
  668. match3 = /\d{3}/, // 000 - 999
  669. match4 = /\d{4}/, // 0000 - 9999
  670. match6 = /[+-]?\d{6}/, // -999999 - 999999
  671. match1to2 = /\d\d?/, // 0 - 99
  672. match3to4 = /\d\d\d\d?/, // 999 - 9999
  673. match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
  674. match1to3 = /\d{1,3}/, // 0 - 999
  675. match1to4 = /\d{1,4}/, // 0 - 9999
  676. match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
  677. matchUnsigned = /\d+/, // 0 - inf
  678. matchSigned = /[+-]?\d+/, // -inf - inf
  679. matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
  680. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  681. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
  682. // any word (or two) characters or numbers including two/three word month in arabic.
  683. // includes scottish gaelic two word and hyphenated months
  684. matchWord = /[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,
  685. regexes;
  686. regexes = {};
  687. function addRegexToken(token, regex, strictRegex) {
  688. regexes[token] = isFunction(regex)
  689. ? regex
  690. : function (isStrict, localeData) {
  691. return isStrict && strictRegex ? strictRegex : regex;
  692. };
  693. }
  694. function getParseRegexForToken(token, config) {
  695. if (!hasOwnProp(regexes, token)) {
  696. return new RegExp(unescapeFormat(token));
  697. }
  698. return regexes[token](config._strict, config._locale);
  699. }
  700. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  701. function unescapeFormat(s) {
  702. return regexEscape(
  703. s
  704. .replace('\\', '')
  705. .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
  706. matched,
  707. p1,
  708. p2,
  709. p3,
  710. p4
  711. ) {
  712. return p1 || p2 || p3 || p4;
  713. })
  714. );
  715. }
  716. function regexEscape(s) {
  717. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  718. }
  719. var tokens = {};
  720. function addParseToken(token, callback) {
  721. var i,
  722. func = callback;
  723. if (typeof token === 'string') {
  724. token = [token];
  725. }
  726. if (isNumber(callback)) {
  727. func = function (input, array) {
  728. array[callback] = toInt(input);
  729. };
  730. }
  731. for (i = 0; i < token.length; i++) {
  732. tokens[token[i]] = func;
  733. }
  734. }
  735. function addWeekParseToken(token, callback) {
  736. addParseToken(token, function (input, array, config, token) {
  737. config._w = config._w || {};
  738. callback(input, config._w, config, token);
  739. });
  740. }
  741. function addTimeToArrayFromToken(token, input, config) {
  742. if (input != null && hasOwnProp(tokens, token)) {
  743. tokens[token](input, config._a, config, token);
  744. }
  745. }
  746. var YEAR = 0,
  747. MONTH = 1,
  748. DATE = 2,
  749. HOUR = 3,
  750. MINUTE = 4,
  751. SECOND = 5,
  752. MILLISECOND = 6,
  753. WEEK = 7,
  754. WEEKDAY = 8;
  755. function mod(n, x) {
  756. return ((n % x) + x) % x;
  757. }
  758. var indexOf;
  759. if (Array.prototype.indexOf) {
  760. indexOf = Array.prototype.indexOf;
  761. } else {
  762. indexOf = function (o) {
  763. // I know
  764. var i;
  765. for (i = 0; i < this.length; ++i) {
  766. if (this[i] === o) {
  767. return i;
  768. }
  769. }
  770. return -1;
  771. };
  772. }
  773. function daysInMonth(year, month) {
  774. if (isNaN(year) || isNaN(month)) {
  775. return NaN;
  776. }
  777. var modMonth = mod(month, 12);
  778. year += (month - modMonth) / 12;
  779. return modMonth === 1
  780. ? isLeapYear(year)
  781. ? 29
  782. : 28
  783. : 31 - ((modMonth % 7) % 2);
  784. }
  785. // FORMATTING
  786. addFormatToken('M', ['MM', 2], 'Mo', function () {
  787. return this.month() + 1;
  788. });
  789. addFormatToken('MMM', 0, 0, function (format) {
  790. return this.localeData().monthsShort(this, format);
  791. });
  792. addFormatToken('MMMM', 0, 0, function (format) {
  793. return this.localeData().months(this, format);
  794. });
  795. // ALIASES
  796. addUnitAlias('month', 'M');
  797. // PRIORITY
  798. addUnitPriority('month', 8);
  799. // PARSING
  800. addRegexToken('M', match1to2);
  801. addRegexToken('MM', match1to2, match2);
  802. addRegexToken('MMM', function (isStrict, locale) {
  803. return locale.monthsShortRegex(isStrict);
  804. });
  805. addRegexToken('MMMM', function (isStrict, locale) {
  806. return locale.monthsRegex(isStrict);
  807. });
  808. addParseToken(['M', 'MM'], function (input, array) {
  809. array[MONTH] = toInt(input) - 1;
  810. });
  811. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  812. var month = config._locale.monthsParse(input, token, config._strict);
  813. // if we didn't find a month name, mark the date as invalid.
  814. if (month != null) {
  815. array[MONTH] = month;
  816. } else {
  817. getParsingFlags(config).invalidMonth = input;
  818. }
  819. });
  820. // LOCALES
  821. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  822. '_'
  823. ),
  824. defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
  825. '_'
  826. ),
  827. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  828. defaultMonthsShortRegex = matchWord,
  829. defaultMonthsRegex = matchWord;
  830. function localeMonths(m, format) {
  831. if (!m) {
  832. return isArray(this._months)
  833. ? this._months
  834. : this._months['standalone'];
  835. }
  836. return isArray(this._months)
  837. ? this._months[m.month()]
  838. : this._months[
  839. (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
  840. ? 'format'
  841. : 'standalone'
  842. ][m.month()];
  843. }
  844. function localeMonthsShort(m, format) {
  845. if (!m) {
  846. return isArray(this._monthsShort)
  847. ? this._monthsShort
  848. : this._monthsShort['standalone'];
  849. }
  850. return isArray(this._monthsShort)
  851. ? this._monthsShort[m.month()]
  852. : this._monthsShort[
  853. MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
  854. ][m.month()];
  855. }
  856. function handleStrictParse(monthName, format, strict) {
  857. var i,
  858. ii,
  859. mom,
  860. llc = monthName.toLocaleLowerCase();
  861. if (!this._monthsParse) {
  862. // this is not used
  863. this._monthsParse = [];
  864. this._longMonthsParse = [];
  865. this._shortMonthsParse = [];
  866. for (i = 0; i < 12; ++i) {
  867. mom = createUTC([2000, i]);
  868. this._shortMonthsParse[i] = this.monthsShort(
  869. mom,
  870. ''
  871. ).toLocaleLowerCase();
  872. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  873. }
  874. }
  875. if (strict) {
  876. if (format === 'MMM') {
  877. ii = indexOf.call(this._shortMonthsParse, llc);
  878. return ii !== -1 ? ii : null;
  879. } else {
  880. ii = indexOf.call(this._longMonthsParse, llc);
  881. return ii !== -1 ? ii : null;
  882. }
  883. } else {
  884. if (format === 'MMM') {
  885. ii = indexOf.call(this._shortMonthsParse, llc);
  886. if (ii !== -1) {
  887. return ii;
  888. }
  889. ii = indexOf.call(this._longMonthsParse, llc);
  890. return ii !== -1 ? ii : null;
  891. } else {
  892. ii = indexOf.call(this._longMonthsParse, llc);
  893. if (ii !== -1) {
  894. return ii;
  895. }
  896. ii = indexOf.call(this._shortMonthsParse, llc);
  897. return ii !== -1 ? ii : null;
  898. }
  899. }
  900. }
  901. function localeMonthsParse(monthName, format, strict) {
  902. var i, mom, regex;
  903. if (this._monthsParseExact) {
  904. return handleStrictParse.call(this, monthName, format, strict);
  905. }
  906. if (!this._monthsParse) {
  907. this._monthsParse = [];
  908. this._longMonthsParse = [];
  909. this._shortMonthsParse = [];
  910. }
  911. // TODO: add sorting
  912. // Sorting makes sure if one month (or abbr) is a prefix of another
  913. // see sorting in computeMonthsParse
  914. for (i = 0; i < 12; i++) {
  915. // make the regex if we don't have it already
  916. mom = createUTC([2000, i]);
  917. if (strict && !this._longMonthsParse[i]) {
  918. this._longMonthsParse[i] = new RegExp(
  919. '^' + this.months(mom, '').replace('.', '') + '$',
  920. 'i'
  921. );
  922. this._shortMonthsParse[i] = new RegExp(
  923. '^' + this.monthsShort(mom, '').replace('.', '') + '$',
  924. 'i'
  925. );
  926. }
  927. if (!strict && !this._monthsParse[i]) {
  928. regex =
  929. '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  930. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  931. }
  932. // test the regex
  933. if (
  934. strict &&
  935. format === 'MMMM' &&
  936. this._longMonthsParse[i].test(monthName)
  937. ) {
  938. return i;
  939. } else if (
  940. strict &&
  941. format === 'MMM' &&
  942. this._shortMonthsParse[i].test(monthName)
  943. ) {
  944. return i;
  945. } else if (!strict && this._monthsParse[i].test(monthName)) {
  946. return i;
  947. }
  948. }
  949. }
  950. // MOMENTS
  951. function setMonth(mom, value) {
  952. var dayOfMonth;
  953. if (!mom.isValid()) {
  954. // No op
  955. return mom;
  956. }
  957. if (typeof value === 'string') {
  958. if (/^\d+$/.test(value)) {
  959. value = toInt(value);
  960. } else {
  961. value = mom.localeData().monthsParse(value);
  962. // TODO: Another silent failure?
  963. if (!isNumber(value)) {
  964. return mom;
  965. }
  966. }
  967. }
  968. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  969. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  970. return mom;
  971. }
  972. function getSetMonth(value) {
  973. if (value != null) {
  974. setMonth(this, value);
  975. hooks.updateOffset(this, true);
  976. return this;
  977. } else {
  978. return get(this, 'Month');
  979. }
  980. }
  981. function getDaysInMonth() {
  982. return daysInMonth(this.year(), this.month());
  983. }
  984. function monthsShortRegex(isStrict) {
  985. if (this._monthsParseExact) {
  986. if (!hasOwnProp(this, '_monthsRegex')) {
  987. computeMonthsParse.call(this);
  988. }
  989. if (isStrict) {
  990. return this._monthsShortStrictRegex;
  991. } else {
  992. return this._monthsShortRegex;
  993. }
  994. } else {
  995. if (!hasOwnProp(this, '_monthsShortRegex')) {
  996. this._monthsShortRegex = defaultMonthsShortRegex;
  997. }
  998. return this._monthsShortStrictRegex && isStrict
  999. ? this._monthsShortStrictRegex
  1000. : this._monthsShortRegex;
  1001. }
  1002. }
  1003. function monthsRegex(isStrict) {
  1004. if (this._monthsParseExact) {
  1005. if (!hasOwnProp(this, '_monthsRegex')) {
  1006. computeMonthsParse.call(this);
  1007. }
  1008. if (isStrict) {
  1009. return this._monthsStrictRegex;
  1010. } else {
  1011. return this._monthsRegex;
  1012. }
  1013. } else {
  1014. if (!hasOwnProp(this, '_monthsRegex')) {
  1015. this._monthsRegex = defaultMonthsRegex;
  1016. }
  1017. return this._monthsStrictRegex && isStrict
  1018. ? this._monthsStrictRegex
  1019. : this._monthsRegex;
  1020. }
  1021. }
  1022. function computeMonthsParse() {
  1023. function cmpLenRev(a, b) {
  1024. return b.length - a.length;
  1025. }
  1026. var shortPieces = [],
  1027. longPieces = [],
  1028. mixedPieces = [],
  1029. i,
  1030. mom;
  1031. for (i = 0; i < 12; i++) {
  1032. // make the regex if we don't have it already
  1033. mom = createUTC([2000, i]);
  1034. shortPieces.push(this.monthsShort(mom, ''));
  1035. longPieces.push(this.months(mom, ''));
  1036. mixedPieces.push(this.months(mom, ''));
  1037. mixedPieces.push(this.monthsShort(mom, ''));
  1038. }
  1039. // Sorting makes sure if one month (or abbr) is a prefix of another it
  1040. // will match the longer piece.
  1041. shortPieces.sort(cmpLenRev);
  1042. longPieces.sort(cmpLenRev);
  1043. mixedPieces.sort(cmpLenRev);
  1044. for (i = 0; i < 12; i++) {
  1045. shortPieces[i] = regexEscape(shortPieces[i]);
  1046. longPieces[i] = regexEscape(longPieces[i]);
  1047. }
  1048. for (i = 0; i < 24; i++) {
  1049. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1050. }
  1051. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1052. this._monthsShortRegex = this._monthsRegex;
  1053. this._monthsStrictRegex = new RegExp(
  1054. '^(' + longPieces.join('|') + ')',
  1055. 'i'
  1056. );
  1057. this._monthsShortStrictRegex = new RegExp(
  1058. '^(' + shortPieces.join('|') + ')',
  1059. 'i'
  1060. );
  1061. }
  1062. // FORMATTING
  1063. addFormatToken('Y', 0, 0, function () {
  1064. var y = this.year();
  1065. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  1066. });
  1067. addFormatToken(0, ['YY', 2], 0, function () {
  1068. return this.year() % 100;
  1069. });
  1070. addFormatToken(0, ['YYYY', 4], 0, 'year');
  1071. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  1072. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  1073. // ALIASES
  1074. addUnitAlias('year', 'y');
  1075. // PRIORITIES
  1076. addUnitPriority('year', 1);
  1077. // PARSING
  1078. addRegexToken('Y', matchSigned);
  1079. addRegexToken('YY', match1to2, match2);
  1080. addRegexToken('YYYY', match1to4, match4);
  1081. addRegexToken('YYYYY', match1to6, match6);
  1082. addRegexToken('YYYYYY', match1to6, match6);
  1083. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  1084. addParseToken('YYYY', function (input, array) {
  1085. array[YEAR] =
  1086. input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  1087. });
  1088. addParseToken('YY', function (input, array) {
  1089. array[YEAR] = hooks.parseTwoDigitYear(input);
  1090. });
  1091. addParseToken('Y', function (input, array) {
  1092. array[YEAR] = parseInt(input, 10);
  1093. });
  1094. // HELPERS
  1095. function daysInYear(year) {
  1096. return isLeapYear(year) ? 366 : 365;
  1097. }
  1098. // HOOKS
  1099. hooks.parseTwoDigitYear = function (input) {
  1100. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  1101. };
  1102. // MOMENTS
  1103. var getSetYear = makeGetSet('FullYear', true);
  1104. function getIsLeapYear() {
  1105. return isLeapYear(this.year());
  1106. }
  1107. function createDate(y, m, d, h, M, s, ms) {
  1108. // can't just apply() to create a date:
  1109. // https://stackoverflow.com/q/181348
  1110. var date;
  1111. // the date constructor remaps years 0-99 to 1900-1999
  1112. if (y < 100 && y >= 0) {
  1113. // preserve leap years using a full 400 year cycle, then reset
  1114. date = new Date(y + 400, m, d, h, M, s, ms);
  1115. if (isFinite(date.getFullYear())) {
  1116. date.setFullYear(y);
  1117. }
  1118. } else {
  1119. date = new Date(y, m, d, h, M, s, ms);
  1120. }
  1121. return date;
  1122. }
  1123. function createUTCDate(y) {
  1124. var date, args;
  1125. // the Date.UTC function remaps years 0-99 to 1900-1999
  1126. if (y < 100 && y >= 0) {
  1127. args = Array.prototype.slice.call(arguments);
  1128. // preserve leap years using a full 400 year cycle, then reset
  1129. args[0] = y + 400;
  1130. date = new Date(Date.UTC.apply(null, args));
  1131. if (isFinite(date.getUTCFullYear())) {
  1132. date.setUTCFullYear(y);
  1133. }
  1134. } else {
  1135. date = new Date(Date.UTC.apply(null, arguments));
  1136. }
  1137. return date;
  1138. }
  1139. // start-of-first-week - start-of-year
  1140. function firstWeekOffset(year, dow, doy) {
  1141. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  1142. fwd = 7 + dow - doy,
  1143. // first-week day local weekday -- which local weekday is fwd
  1144. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  1145. return -fwdlw + fwd - 1;
  1146. }
  1147. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  1148. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  1149. var localWeekday = (7 + weekday - dow) % 7,
  1150. weekOffset = firstWeekOffset(year, dow, doy),
  1151. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1152. resYear,
  1153. resDayOfYear;
  1154. if (dayOfYear <= 0) {
  1155. resYear = year - 1;
  1156. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1157. } else if (dayOfYear > daysInYear(year)) {
  1158. resYear = year + 1;
  1159. resDayOfYear = dayOfYear - daysInYear(year);
  1160. } else {
  1161. resYear = year;
  1162. resDayOfYear = dayOfYear;
  1163. }
  1164. return {
  1165. year: resYear,
  1166. dayOfYear: resDayOfYear,
  1167. };
  1168. }
  1169. function weekOfYear(mom, dow, doy) {
  1170. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1171. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1172. resWeek,
  1173. resYear;
  1174. if (week < 1) {
  1175. resYear = mom.year() - 1;
  1176. resWeek = week + weeksInYear(resYear, dow, doy);
  1177. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1178. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1179. resYear = mom.year() + 1;
  1180. } else {
  1181. resYear = mom.year();
  1182. resWeek = week;
  1183. }
  1184. return {
  1185. week: resWeek,
  1186. year: resYear,
  1187. };
  1188. }
  1189. function weeksInYear(year, dow, doy) {
  1190. var weekOffset = firstWeekOffset(year, dow, doy),
  1191. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1192. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1193. }
  1194. // FORMATTING
  1195. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1196. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1197. // ALIASES
  1198. addUnitAlias('week', 'w');
  1199. addUnitAlias('isoWeek', 'W');
  1200. // PRIORITIES
  1201. addUnitPriority('week', 5);
  1202. addUnitPriority('isoWeek', 5);
  1203. // PARSING
  1204. addRegexToken('w', match1to2);
  1205. addRegexToken('ww', match1to2, match2);
  1206. addRegexToken('W', match1to2);
  1207. addRegexToken('WW', match1to2, match2);
  1208. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
  1209. input,
  1210. week,
  1211. config,
  1212. token
  1213. ) {
  1214. week[token.substr(0, 1)] = toInt(input);
  1215. });
  1216. // HELPERS
  1217. // LOCALES
  1218. function localeWeek(mom) {
  1219. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1220. }
  1221. var defaultLocaleWeek = {
  1222. dow: 0, // Sunday is the first day of the week.
  1223. doy: 6, // The week that contains Jan 6th is the first week of the year.
  1224. };
  1225. function localeFirstDayOfWeek() {
  1226. return this._week.dow;
  1227. }
  1228. function localeFirstDayOfYear() {
  1229. return this._week.doy;
  1230. }
  1231. // MOMENTS
  1232. function getSetWeek(input) {
  1233. var week = this.localeData().week(this);
  1234. return input == null ? week : this.add((input - week) * 7, 'd');
  1235. }
  1236. function getSetISOWeek(input) {
  1237. var week = weekOfYear(this, 1, 4).week;
  1238. return input == null ? week : this.add((input - week) * 7, 'd');
  1239. }
  1240. // FORMATTING
  1241. addFormatToken('d', 0, 'do', 'day');
  1242. addFormatToken('dd', 0, 0, function (format) {
  1243. return this.localeData().weekdaysMin(this, format);
  1244. });
  1245. addFormatToken('ddd', 0, 0, function (format) {
  1246. return this.localeData().weekdaysShort(this, format);
  1247. });
  1248. addFormatToken('dddd', 0, 0, function (format) {
  1249. return this.localeData().weekdays(this, format);
  1250. });
  1251. addFormatToken('e', 0, 0, 'weekday');
  1252. addFormatToken('E', 0, 0, 'isoWeekday');
  1253. // ALIASES
  1254. addUnitAlias('day', 'd');
  1255. addUnitAlias('weekday', 'e');
  1256. addUnitAlias('isoWeekday', 'E');
  1257. // PRIORITY
  1258. addUnitPriority('day', 11);
  1259. addUnitPriority('weekday', 11);
  1260. addUnitPriority('isoWeekday', 11);
  1261. // PARSING
  1262. addRegexToken('d', match1to2);
  1263. addRegexToken('e', match1to2);
  1264. addRegexToken('E', match1to2);
  1265. addRegexToken('dd', function (isStrict, locale) {
  1266. return locale.weekdaysMinRegex(isStrict);
  1267. });
  1268. addRegexToken('ddd', function (isStrict, locale) {
  1269. return locale.weekdaysShortRegex(isStrict);
  1270. });
  1271. addRegexToken('dddd', function (isStrict, locale) {
  1272. return locale.weekdaysRegex(isStrict);
  1273. });
  1274. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1275. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1276. // if we didn't get a weekday name, mark the date as invalid
  1277. if (weekday != null) {
  1278. week.d = weekday;
  1279. } else {
  1280. getParsingFlags(config).invalidWeekday = input;
  1281. }
  1282. });
  1283. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1284. week[token] = toInt(input);
  1285. });
  1286. // HELPERS
  1287. function parseWeekday(input, locale) {
  1288. if (typeof input !== 'string') {
  1289. return input;
  1290. }
  1291. if (!isNaN(input)) {
  1292. return parseInt(input, 10);
  1293. }
  1294. input = locale.weekdaysParse(input);
  1295. if (typeof input === 'number') {
  1296. return input;
  1297. }
  1298. return null;
  1299. }
  1300. function parseIsoWeekday(input, locale) {
  1301. if (typeof input === 'string') {
  1302. return locale.weekdaysParse(input) % 7 || 7;
  1303. }
  1304. return isNaN(input) ? null : input;
  1305. }
  1306. // LOCALES
  1307. function shiftWeekdays(ws, n) {
  1308. return ws.slice(n, 7).concat(ws.slice(0, n));
  1309. }
  1310. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  1311. '_'
  1312. ),
  1313. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1314. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1315. defaultWeekdaysRegex = matchWord,
  1316. defaultWeekdaysShortRegex = matchWord,
  1317. defaultWeekdaysMinRegex = matchWord;
  1318. function localeWeekdays(m, format) {
  1319. var weekdays = isArray(this._weekdays)
  1320. ? this._weekdays
  1321. : this._weekdays[
  1322. m && m !== true && this._weekdays.isFormat.test(format)
  1323. ? 'format'
  1324. : 'standalone'
  1325. ];
  1326. return m === true
  1327. ? shiftWeekdays(weekdays, this._week.dow)
  1328. : m
  1329. ? weekdays[m.day()]
  1330. : weekdays;
  1331. }
  1332. function localeWeekdaysShort(m) {
  1333. return m === true
  1334. ? shiftWeekdays(this._weekdaysShort, this._week.dow)
  1335. : m
  1336. ? this._weekdaysShort[m.day()]
  1337. : this._weekdaysShort;
  1338. }
  1339. function localeWeekdaysMin(m) {
  1340. return m === true
  1341. ? shiftWeekdays(this._weekdaysMin, this._week.dow)
  1342. : m
  1343. ? this._weekdaysMin[m.day()]
  1344. : this._weekdaysMin;
  1345. }
  1346. function handleStrictParse$1(weekdayName, format, strict) {
  1347. var i,
  1348. ii,
  1349. mom,
  1350. llc = weekdayName.toLocaleLowerCase();
  1351. if (!this._weekdaysParse) {
  1352. this._weekdaysParse = [];
  1353. this._shortWeekdaysParse = [];
  1354. this._minWeekdaysParse = [];
  1355. for (i = 0; i < 7; ++i) {
  1356. mom = createUTC([2000, 1]).day(i);
  1357. this._minWeekdaysParse[i] = this.weekdaysMin(
  1358. mom,
  1359. ''
  1360. ).toLocaleLowerCase();
  1361. this._shortWeekdaysParse[i] = this.weekdaysShort(
  1362. mom,
  1363. ''
  1364. ).toLocaleLowerCase();
  1365. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1366. }
  1367. }
  1368. if (strict) {
  1369. if (format === 'dddd') {
  1370. ii = indexOf.call(this._weekdaysParse, llc);
  1371. return ii !== -1 ? ii : null;
  1372. } else if (format === 'ddd') {
  1373. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1374. return ii !== -1 ? ii : null;
  1375. } else {
  1376. ii = indexOf.call(this._minWeekdaysParse, llc);
  1377. return ii !== -1 ? ii : null;
  1378. }
  1379. } else {
  1380. if (format === 'dddd') {
  1381. ii = indexOf.call(this._weekdaysParse, llc);
  1382. if (ii !== -1) {
  1383. return ii;
  1384. }
  1385. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1386. if (ii !== -1) {
  1387. return ii;
  1388. }
  1389. ii = indexOf.call(this._minWeekdaysParse, llc);
  1390. return ii !== -1 ? ii : null;
  1391. } else if (format === 'ddd') {
  1392. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1393. if (ii !== -1) {
  1394. return ii;
  1395. }
  1396. ii = indexOf.call(this._weekdaysParse, llc);
  1397. if (ii !== -1) {
  1398. return ii;
  1399. }
  1400. ii = indexOf.call(this._minWeekdaysParse, llc);
  1401. return ii !== -1 ? ii : null;
  1402. } else {
  1403. ii = indexOf.call(this._minWeekdaysParse, llc);
  1404. if (ii !== -1) {
  1405. return ii;
  1406. }
  1407. ii = indexOf.call(this._weekdaysParse, llc);
  1408. if (ii !== -1) {
  1409. return ii;
  1410. }
  1411. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1412. return ii !== -1 ? ii : null;
  1413. }
  1414. }
  1415. }
  1416. function localeWeekdaysParse(weekdayName, format, strict) {
  1417. var i, mom, regex;
  1418. if (this._weekdaysParseExact) {
  1419. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1420. }
  1421. if (!this._weekdaysParse) {
  1422. this._weekdaysParse = [];
  1423. this._minWeekdaysParse = [];
  1424. this._shortWeekdaysParse = [];
  1425. this._fullWeekdaysParse = [];
  1426. }
  1427. for (i = 0; i < 7; i++) {
  1428. // make the regex if we don't have it already
  1429. mom = createUTC([2000, 1]).day(i);
  1430. if (strict && !this._fullWeekdaysParse[i]) {
  1431. this._fullWeekdaysParse[i] = new RegExp(
  1432. '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
  1433. 'i'
  1434. );
  1435. this._shortWeekdaysParse[i] = new RegExp(
  1436. '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
  1437. 'i'
  1438. );
  1439. this._minWeekdaysParse[i] = new RegExp(
  1440. '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
  1441. 'i'
  1442. );
  1443. }
  1444. if (!this._weekdaysParse[i]) {
  1445. regex =
  1446. '^' +
  1447. this.weekdays(mom, '') +
  1448. '|^' +
  1449. this.weekdaysShort(mom, '') +
  1450. '|^' +
  1451. this.weekdaysMin(mom, '');
  1452. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1453. }
  1454. // test the regex
  1455. if (
  1456. strict &&
  1457. format === 'dddd' &&
  1458. this._fullWeekdaysParse[i].test(weekdayName)
  1459. ) {
  1460. return i;
  1461. } else if (
  1462. strict &&
  1463. format === 'ddd' &&
  1464. this._shortWeekdaysParse[i].test(weekdayName)
  1465. ) {
  1466. return i;
  1467. } else if (
  1468. strict &&
  1469. format === 'dd' &&
  1470. this._minWeekdaysParse[i].test(weekdayName)
  1471. ) {
  1472. return i;
  1473. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1474. return i;
  1475. }
  1476. }
  1477. }
  1478. // MOMENTS
  1479. function getSetDayOfWeek(input) {
  1480. if (!this.isValid()) {
  1481. return input != null ? this : NaN;
  1482. }
  1483. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1484. if (input != null) {
  1485. input = parseWeekday(input, this.localeData());
  1486. return this.add(input - day, 'd');
  1487. } else {
  1488. return day;
  1489. }
  1490. }
  1491. function getSetLocaleDayOfWeek(input) {
  1492. if (!this.isValid()) {
  1493. return input != null ? this : NaN;
  1494. }
  1495. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1496. return input == null ? weekday : this.add(input - weekday, 'd');
  1497. }
  1498. function getSetISODayOfWeek(input) {
  1499. if (!this.isValid()) {
  1500. return input != null ? this : NaN;
  1501. }
  1502. // behaves the same as moment#day except
  1503. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1504. // as a setter, sunday should belong to the previous week.
  1505. if (input != null) {
  1506. var weekday = parseIsoWeekday(input, this.localeData());
  1507. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1508. } else {
  1509. return this.day() || 7;
  1510. }
  1511. }
  1512. function weekdaysRegex(isStrict) {
  1513. if (this._weekdaysParseExact) {
  1514. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1515. computeWeekdaysParse.call(this);
  1516. }
  1517. if (isStrict) {
  1518. return this._weekdaysStrictRegex;
  1519. } else {
  1520. return this._weekdaysRegex;
  1521. }
  1522. } else {
  1523. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1524. this._weekdaysRegex = defaultWeekdaysRegex;
  1525. }
  1526. return this._weekdaysStrictRegex && isStrict
  1527. ? this._weekdaysStrictRegex
  1528. : this._weekdaysRegex;
  1529. }
  1530. }
  1531. function weekdaysShortRegex(isStrict) {
  1532. if (this._weekdaysParseExact) {
  1533. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1534. computeWeekdaysParse.call(this);
  1535. }
  1536. if (isStrict) {
  1537. return this._weekdaysShortStrictRegex;
  1538. } else {
  1539. return this._weekdaysShortRegex;
  1540. }
  1541. } else {
  1542. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1543. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1544. }
  1545. return this._weekdaysShortStrictRegex && isStrict
  1546. ? this._weekdaysShortStrictRegex
  1547. : this._weekdaysShortRegex;
  1548. }
  1549. }
  1550. function weekdaysMinRegex(isStrict) {
  1551. if (this._weekdaysParseExact) {
  1552. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1553. computeWeekdaysParse.call(this);
  1554. }
  1555. if (isStrict) {
  1556. return this._weekdaysMinStrictRegex;
  1557. } else {
  1558. return this._weekdaysMinRegex;
  1559. }
  1560. } else {
  1561. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1562. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1563. }
  1564. return this._weekdaysMinStrictRegex && isStrict
  1565. ? this._weekdaysMinStrictRegex
  1566. : this._weekdaysMinRegex;
  1567. }
  1568. }
  1569. function computeWeekdaysParse() {
  1570. function cmpLenRev(a, b) {
  1571. return b.length - a.length;
  1572. }
  1573. var minPieces = [],
  1574. shortPieces = [],
  1575. longPieces = [],
  1576. mixedPieces = [],
  1577. i,
  1578. mom,
  1579. minp,
  1580. shortp,
  1581. longp;
  1582. for (i = 0; i < 7; i++) {
  1583. // make the regex if we don't have it already
  1584. mom = createUTC([2000, 1]).day(i);
  1585. minp = regexEscape(this.weekdaysMin(mom, ''));
  1586. shortp = regexEscape(this.weekdaysShort(mom, ''));
  1587. longp = regexEscape(this.weekdays(mom, ''));
  1588. minPieces.push(minp);
  1589. shortPieces.push(shortp);
  1590. longPieces.push(longp);
  1591. mixedPieces.push(minp);
  1592. mixedPieces.push(shortp);
  1593. mixedPieces.push(longp);
  1594. }
  1595. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1596. // will match the longer piece.
  1597. minPieces.sort(cmpLenRev);
  1598. shortPieces.sort(cmpLenRev);
  1599. longPieces.sort(cmpLenRev);
  1600. mixedPieces.sort(cmpLenRev);
  1601. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1602. this._weekdaysShortRegex = this._weekdaysRegex;
  1603. this._weekdaysMinRegex = this._weekdaysRegex;
  1604. this._weekdaysStrictRegex = new RegExp(
  1605. '^(' + longPieces.join('|') + ')',
  1606. 'i'
  1607. );
  1608. this._weekdaysShortStrictRegex = new RegExp(
  1609. '^(' + shortPieces.join('|') + ')',
  1610. 'i'
  1611. );
  1612. this._weekdaysMinStrictRegex = new RegExp(
  1613. '^(' + minPieces.join('|') + ')',
  1614. 'i'
  1615. );
  1616. }
  1617. // FORMATTING
  1618. function hFormat() {
  1619. return this.hours() % 12 || 12;
  1620. }
  1621. function kFormat() {
  1622. return this.hours() || 24;
  1623. }
  1624. addFormatToken('H', ['HH', 2], 0, 'hour');
  1625. addFormatToken('h', ['hh', 2], 0, hFormat);
  1626. addFormatToken('k', ['kk', 2], 0, kFormat);
  1627. addFormatToken('hmm', 0, 0, function () {
  1628. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1629. });
  1630. addFormatToken('hmmss', 0, 0, function () {
  1631. return (
  1632. '' +
  1633. hFormat.apply(this) +
  1634. zeroFill(this.minutes(), 2) +
  1635. zeroFill(this.seconds(), 2)
  1636. );
  1637. });
  1638. addFormatToken('Hmm', 0, 0, function () {
  1639. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1640. });
  1641. addFormatToken('Hmmss', 0, 0, function () {
  1642. return (
  1643. '' +
  1644. this.hours() +
  1645. zeroFill(this.minutes(), 2) +
  1646. zeroFill(this.seconds(), 2)
  1647. );
  1648. });
  1649. function meridiem(token, lowercase) {
  1650. addFormatToken(token, 0, 0, function () {
  1651. return this.localeData().meridiem(
  1652. this.hours(),
  1653. this.minutes(),
  1654. lowercase
  1655. );
  1656. });
  1657. }
  1658. meridiem('a', true);
  1659. meridiem('A', false);
  1660. // ALIASES
  1661. addUnitAlias('hour', 'h');
  1662. // PRIORITY
  1663. addUnitPriority('hour', 13);
  1664. // PARSING
  1665. function matchMeridiem(isStrict, locale) {
  1666. return locale._meridiemParse;
  1667. }
  1668. addRegexToken('a', matchMeridiem);
  1669. addRegexToken('A', matchMeridiem);
  1670. addRegexToken('H', match1to2);
  1671. addRegexToken('h', match1to2);
  1672. addRegexToken('k', match1to2);
  1673. addRegexToken('HH', match1to2, match2);
  1674. addRegexToken('hh', match1to2, match2);
  1675. addRegexToken('kk', match1to2, match2);
  1676. addRegexToken('hmm', match3to4);
  1677. addRegexToken('hmmss', match5to6);
  1678. addRegexToken('Hmm', match3to4);
  1679. addRegexToken('Hmmss', match5to6);
  1680. addParseToken(['H', 'HH'], HOUR);
  1681. addParseToken(['k', 'kk'], function (input, array, config) {
  1682. var kInput = toInt(input);
  1683. array[HOUR] = kInput === 24 ? 0 : kInput;
  1684. });
  1685. addParseToken(['a', 'A'], function (input, array, config) {
  1686. config._isPm = config._locale.isPM(input);
  1687. config._meridiem = input;
  1688. });
  1689. addParseToken(['h', 'hh'], function (input, array, config) {
  1690. array[HOUR] = toInt(input);
  1691. getParsingFlags(config).bigHour = true;
  1692. });
  1693. addParseToken('hmm', function (input, array, config) {
  1694. var pos = input.length - 2;
  1695. array[HOUR] = toInt(input.substr(0, pos));
  1696. array[MINUTE] = toInt(input.substr(pos));
  1697. getParsingFlags(config).bigHour = true;
  1698. });
  1699. addParseToken('hmmss', function (input, array, config) {
  1700. var pos1 = input.length - 4,
  1701. pos2 = input.length - 2;
  1702. array[HOUR] = toInt(input.substr(0, pos1));
  1703. array[MINUTE] = toInt(input.substr(pos1, 2));
  1704. array[SECOND] = toInt(input.substr(pos2));
  1705. getParsingFlags(config).bigHour = true;
  1706. });
  1707. addParseToken('Hmm', function (input, array, config) {
  1708. var pos = input.length - 2;
  1709. array[HOUR] = toInt(input.substr(0, pos));
  1710. array[MINUTE] = toInt(input.substr(pos));
  1711. });
  1712. addParseToken('Hmmss', function (input, array, config) {
  1713. var pos1 = input.length - 4,
  1714. pos2 = input.length - 2;
  1715. array[HOUR] = toInt(input.substr(0, pos1));
  1716. array[MINUTE] = toInt(input.substr(pos1, 2));
  1717. array[SECOND] = toInt(input.substr(pos2));
  1718. });
  1719. // LOCALES
  1720. function localeIsPM(input) {
  1721. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1722. // Using charAt should be more compatible.
  1723. return (input + '').toLowerCase().charAt(0) === 'p';
  1724. }
  1725. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  1726. // Setting the hour should keep the time, because the user explicitly
  1727. // specified which hour they want. So trying to maintain the same hour (in
  1728. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1729. // this rule.
  1730. getSetHour = makeGetSet('Hours', true);
  1731. function localeMeridiem(hours, minutes, isLower) {
  1732. if (hours > 11) {
  1733. return isLower ? 'pm' : 'PM';
  1734. } else {
  1735. return isLower ? 'am' : 'AM';
  1736. }
  1737. }
  1738. var baseConfig = {
  1739. calendar: defaultCalendar,
  1740. longDateFormat: defaultLongDateFormat,
  1741. invalidDate: defaultInvalidDate,
  1742. ordinal: defaultOrdinal,
  1743. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1744. relativeTime: defaultRelativeTime,
  1745. months: defaultLocaleMonths,
  1746. monthsShort: defaultLocaleMonthsShort,
  1747. week: defaultLocaleWeek,
  1748. weekdays: defaultLocaleWeekdays,
  1749. weekdaysMin: defaultLocaleWeekdaysMin,
  1750. weekdaysShort: defaultLocaleWeekdaysShort,
  1751. meridiemParse: defaultLocaleMeridiemParse,
  1752. };
  1753. // internal storage for locale config files
  1754. var locales = {},
  1755. localeFamilies = {},
  1756. globalLocale;
  1757. function commonPrefix(arr1, arr2) {
  1758. var i,
  1759. minl = Math.min(arr1.length, arr2.length);
  1760. for (i = 0; i < minl; i += 1) {
  1761. if (arr1[i] !== arr2[i]) {
  1762. return i;
  1763. }
  1764. }
  1765. return minl;
  1766. }
  1767. function normalizeLocale(key) {
  1768. return key ? key.toLowerCase().replace('_', '-') : key;
  1769. }
  1770. // pick the locale from the array
  1771. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1772. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1773. function chooseLocale(names) {
  1774. var i = 0,
  1775. j,
  1776. next,
  1777. locale,
  1778. split;
  1779. while (i < names.length) {
  1780. split = normalizeLocale(names[i]).split('-');
  1781. j = split.length;
  1782. next = normalizeLocale(names[i + 1]);
  1783. next = next ? next.split('-') : null;
  1784. while (j > 0) {
  1785. locale = loadLocale(split.slice(0, j).join('-'));
  1786. if (locale) {
  1787. return locale;
  1788. }
  1789. if (
  1790. next &&
  1791. next.length >= j &&
  1792. commonPrefix(split, next) >= j - 1
  1793. ) {
  1794. //the next array item is better than a shallower substring of this one
  1795. break;
  1796. }
  1797. j--;
  1798. }
  1799. i++;
  1800. }
  1801. return globalLocale;
  1802. }
  1803. function loadLocale(name) {
  1804. var oldLocale = null,
  1805. aliasedRequire;
  1806. // TODO: Find a better way to register and load all the locales in Node
  1807. if (
  1808. locales[name] === undefined &&
  1809. typeof module !== 'undefined' &&
  1810. module &&
  1811. module.exports
  1812. ) {
  1813. try {
  1814. oldLocale = globalLocale._abbr;
  1815. aliasedRequire = require;
  1816. aliasedRequire('./locale/' + name);
  1817. getSetGlobalLocale(oldLocale);
  1818. } catch (e) {
  1819. // mark as not found to avoid repeating expensive file require call causing high CPU
  1820. // when trying to find en-US, en_US, en-us for every format call
  1821. locales[name] = null; // null means not found
  1822. }
  1823. }
  1824. return locales[name];
  1825. }
  1826. // This function will load locale and then set the global locale. If
  1827. // no arguments are passed in, it will simply return the current global
  1828. // locale key.
  1829. function getSetGlobalLocale(key, values) {
  1830. var data;
  1831. if (key) {
  1832. if (isUndefined(values)) {
  1833. data = getLocale(key);
  1834. } else {
  1835. data = defineLocale(key, values);
  1836. }
  1837. if (data) {
  1838. // moment.duration._locale = moment._locale = data;
  1839. globalLocale = data;
  1840. } else {
  1841. if (typeof console !== 'undefined' && console.warn) {
  1842. //warn user if arguments are passed but the locale could not be set
  1843. console.warn(
  1844. 'Locale ' + key + ' not found. Did you forget to load it?'
  1845. );
  1846. }
  1847. }
  1848. }
  1849. return globalLocale._abbr;
  1850. }
  1851. function defineLocale(name, config) {
  1852. if (config !== null) {
  1853. var locale,
  1854. parentConfig = baseConfig;
  1855. config.abbr = name;
  1856. if (locales[name] != null) {
  1857. deprecateSimple(
  1858. 'defineLocaleOverride',
  1859. 'use moment.updateLocale(localeName, config) to change ' +
  1860. 'an existing locale. moment.defineLocale(localeName, ' +
  1861. 'config) should only be used for creating a new locale ' +
  1862. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
  1863. );
  1864. parentConfig = locales[name]._config;
  1865. } else if (config.parentLocale != null) {
  1866. if (locales[config.parentLocale] != null) {
  1867. parentConfig = locales[config.parentLocale]._config;
  1868. } else {
  1869. locale = loadLocale(config.parentLocale);
  1870. if (locale != null) {
  1871. parentConfig = locale._config;
  1872. } else {
  1873. if (!localeFamilies[config.parentLocale]) {
  1874. localeFamilies[config.parentLocale] = [];
  1875. }
  1876. localeFamilies[config.parentLocale].push({
  1877. name: name,
  1878. config: config,
  1879. });
  1880. return null;
  1881. }
  1882. }
  1883. }
  1884. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1885. if (localeFamilies[name]) {
  1886. localeFamilies[name].forEach(function (x) {
  1887. defineLocale(x.name, x.config);
  1888. });
  1889. }
  1890. // backwards compat for now: also set the locale
  1891. // make sure we set the locale AFTER all child locales have been
  1892. // created, so we won't end up with the child locale set.
  1893. getSetGlobalLocale(name);
  1894. return locales[name];
  1895. } else {
  1896. // useful for testing
  1897. delete locales[name];
  1898. return null;
  1899. }
  1900. }
  1901. function updateLocale(name, config) {
  1902. if (config != null) {
  1903. var locale,
  1904. tmpLocale,
  1905. parentConfig = baseConfig;
  1906. if (locales[name] != null && locales[name].parentLocale != null) {
  1907. // Update existing child locale in-place to avoid memory-leaks
  1908. locales[name].set(mergeConfigs(locales[name]._config, config));
  1909. } else {
  1910. // MERGE
  1911. tmpLocale = loadLocale(name);
  1912. if (tmpLocale != null) {
  1913. parentConfig = tmpLocale._config;
  1914. }
  1915. config = mergeConfigs(parentConfig, config);
  1916. if (tmpLocale == null) {
  1917. // updateLocale is called for creating a new locale
  1918. // Set abbr so it will have a name (getters return
  1919. // undefined otherwise).
  1920. config.abbr = name;
  1921. }
  1922. locale = new Locale(config);
  1923. locale.parentLocale = locales[name];
  1924. locales[name] = locale;
  1925. }
  1926. // backwards compat for now: also set the locale
  1927. getSetGlobalLocale(name);
  1928. } else {
  1929. // pass null for config to unupdate, useful for tests
  1930. if (locales[name] != null) {
  1931. if (locales[name].parentLocale != null) {
  1932. locales[name] = locales[name].parentLocale;
  1933. if (name === getSetGlobalLocale()) {
  1934. getSetGlobalLocale(name);
  1935. }
  1936. } else if (locales[name] != null) {
  1937. delete locales[name];
  1938. }
  1939. }
  1940. }
  1941. return locales[name];
  1942. }
  1943. // returns locale data
  1944. function getLocale(key) {
  1945. var locale;
  1946. if (key && key._locale && key._locale._abbr) {
  1947. key = key._locale._abbr;
  1948. }
  1949. if (!key) {
  1950. return globalLocale;
  1951. }
  1952. if (!isArray(key)) {
  1953. //short-circuit everything else
  1954. locale = loadLocale(key);
  1955. if (locale) {
  1956. return locale;
  1957. }
  1958. key = [key];
  1959. }
  1960. return chooseLocale(key);
  1961. }
  1962. function listLocales() {
  1963. return keys(locales);
  1964. }
  1965. function checkOverflow(m) {
  1966. var overflow,
  1967. a = m._a;
  1968. if (a && getParsingFlags(m).overflow === -2) {
  1969. overflow =
  1970. a[MONTH] < 0 || a[MONTH] > 11
  1971. ? MONTH
  1972. : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
  1973. ? DATE
  1974. : a[HOUR] < 0 ||
  1975. a[HOUR] > 24 ||
  1976. (a[HOUR] === 24 &&
  1977. (a[MINUTE] !== 0 ||
  1978. a[SECOND] !== 0 ||
  1979. a[MILLISECOND] !== 0))
  1980. ? HOUR
  1981. : a[MINUTE] < 0 || a[MINUTE] > 59
  1982. ? MINUTE
  1983. : a[SECOND] < 0 || a[SECOND] > 59
  1984. ? SECOND
  1985. : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
  1986. ? MILLISECOND
  1987. : -1;
  1988. if (
  1989. getParsingFlags(m)._overflowDayOfYear &&
  1990. (overflow < YEAR || overflow > DATE)
  1991. ) {
  1992. overflow = DATE;
  1993. }
  1994. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1995. overflow = WEEK;
  1996. }
  1997. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1998. overflow = WEEKDAY;
  1999. }
  2000. getParsingFlags(m).overflow = overflow;
  2001. }
  2002. return m;
  2003. }
  2004. // iso 8601 regex
  2005. // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
  2006. var extendedIsoRegex = /^\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)?)?$/,
  2007. basicIsoRegex = /^\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)?)?$/,
  2008. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  2009. isoDates = [
  2010. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  2011. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  2012. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  2013. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  2014. ['YYYY-DDD', /\d{4}-\d{3}/],
  2015. ['YYYY-MM', /\d{4}-\d\d/, false],
  2016. ['YYYYYYMMDD', /[+-]\d{10}/],
  2017. ['YYYYMMDD', /\d{8}/],
  2018. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  2019. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  2020. ['YYYYDDD', /\d{7}/],
  2021. ['YYYYMM', /\d{6}/, false],
  2022. ['YYYY', /\d{4}/, false],
  2023. ],
  2024. // iso time formats and regexes
  2025. isoTimes = [
  2026. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  2027. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  2028. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  2029. ['HH:mm', /\d\d:\d\d/],
  2030. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  2031. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  2032. ['HHmmss', /\d\d\d\d\d\d/],
  2033. ['HHmm', /\d\d\d\d/],
  2034. ['HH', /\d\d/],
  2035. ],
  2036. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  2037. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  2038. rfc2822 = /^(?:(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}))$/,
  2039. obsOffsets = {
  2040. UT: 0,
  2041. GMT: 0,
  2042. EDT: -4 * 60,
  2043. EST: -5 * 60,
  2044. CDT: -5 * 60,
  2045. CST: -6 * 60,
  2046. MDT: -6 * 60,
  2047. MST: -7 * 60,
  2048. PDT: -7 * 60,
  2049. PST: -8 * 60,
  2050. };
  2051. // date from iso format
  2052. function configFromISO(config) {
  2053. var i,
  2054. l,
  2055. string = config._i,
  2056. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  2057. allowTime,
  2058. dateFormat,
  2059. timeFormat,
  2060. tzFormat;
  2061. if (match) {
  2062. getParsingFlags(config).iso = true;
  2063. for (i = 0, l = isoDates.length; i < l; i++) {
  2064. if (isoDates[i][1].exec(match[1])) {
  2065. dateFormat = isoDates[i][0];
  2066. allowTime = isoDates[i][2] !== false;
  2067. break;
  2068. }
  2069. }
  2070. if (dateFormat == null) {
  2071. config._isValid = false;
  2072. return;
  2073. }
  2074. if (match[3]) {
  2075. for (i = 0, l = isoTimes.length; i < l; i++) {
  2076. if (isoTimes[i][1].exec(match[3])) {
  2077. // match[2] should be 'T' or space
  2078. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  2079. break;
  2080. }
  2081. }
  2082. if (timeFormat == null) {
  2083. config._isValid = false;
  2084. return;
  2085. }
  2086. }
  2087. if (!allowTime && timeFormat != null) {
  2088. config._isValid = false;
  2089. return;
  2090. }
  2091. if (match[4]) {
  2092. if (tzRegex.exec(match[4])) {
  2093. tzFormat = 'Z';
  2094. } else {
  2095. config._isValid = false;
  2096. return;
  2097. }
  2098. }
  2099. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  2100. configFromStringAndFormat(config);
  2101. } else {
  2102. config._isValid = false;
  2103. }
  2104. }
  2105. function extractFromRFC2822Strings(
  2106. yearStr,
  2107. monthStr,
  2108. dayStr,
  2109. hourStr,
  2110. minuteStr,
  2111. secondStr
  2112. ) {
  2113. var result = [
  2114. untruncateYear(yearStr),
  2115. defaultLocaleMonthsShort.indexOf(monthStr),
  2116. parseInt(dayStr, 10),
  2117. parseInt(hourStr, 10),
  2118. parseInt(minuteStr, 10),
  2119. ];
  2120. if (secondStr) {
  2121. result.push(parseInt(secondStr, 10));
  2122. }
  2123. return result;
  2124. }
  2125. function untruncateYear(yearStr) {
  2126. var year = parseInt(yearStr, 10);
  2127. if (year <= 49) {
  2128. return 2000 + year;
  2129. } else if (year <= 999) {
  2130. return 1900 + year;
  2131. }
  2132. return year;
  2133. }
  2134. function preprocessRFC2822(s) {
  2135. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  2136. return s
  2137. .replace(/\([^)]*\)|[\n\t]/g, ' ')
  2138. .replace(/(\s\s+)/g, ' ')
  2139. .replace(/^\s\s*/, '')
  2140. .replace(/\s\s*$/, '');
  2141. }
  2142. function checkWeekday(weekdayStr, parsedInput, config) {
  2143. if (weekdayStr) {
  2144. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  2145. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  2146. weekdayActual = new Date(
  2147. parsedInput[0],
  2148. parsedInput[1],
  2149. parsedInput[2]
  2150. ).getDay();
  2151. if (weekdayProvided !== weekdayActual) {
  2152. getParsingFlags(config).weekdayMismatch = true;
  2153. config._isValid = false;
  2154. return false;
  2155. }
  2156. }
  2157. return true;
  2158. }
  2159. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  2160. if (obsOffset) {
  2161. return obsOffsets[obsOffset];
  2162. } else if (militaryOffset) {
  2163. // the only allowed military tz is Z
  2164. return 0;
  2165. } else {
  2166. var hm = parseInt(numOffset, 10),
  2167. m = hm % 100,
  2168. h = (hm - m) / 100;
  2169. return h * 60 + m;
  2170. }
  2171. }
  2172. // date and time from ref 2822 format
  2173. function configFromRFC2822(config) {
  2174. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  2175. parsedArray;
  2176. if (match) {
  2177. parsedArray = extractFromRFC2822Strings(
  2178. match[4],
  2179. match[3],
  2180. match[2],
  2181. match[5],
  2182. match[6],
  2183. match[7]
  2184. );
  2185. if (!checkWeekday(match[1], parsedArray, config)) {
  2186. return;
  2187. }
  2188. config._a = parsedArray;
  2189. config._tzm = calculateOffset(match[8], match[9], match[10]);
  2190. config._d = createUTCDate.apply(null, config._a);
  2191. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2192. getParsingFlags(config).rfc2822 = true;
  2193. } else {
  2194. config._isValid = false;
  2195. }
  2196. }
  2197. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  2198. function configFromString(config) {
  2199. var matched = aspNetJsonRegex.exec(config._i);
  2200. if (matched !== null) {
  2201. config._d = new Date(+matched[1]);
  2202. return;
  2203. }
  2204. configFromISO(config);
  2205. if (config._isValid === false) {
  2206. delete config._isValid;
  2207. } else {
  2208. return;
  2209. }
  2210. configFromRFC2822(config);
  2211. if (config._isValid === false) {
  2212. delete config._isValid;
  2213. } else {
  2214. return;
  2215. }
  2216. if (config._strict) {
  2217. config._isValid = false;
  2218. } else {
  2219. // Final attempt, use Input Fallback
  2220. hooks.createFromInputFallback(config);
  2221. }
  2222. }
  2223. hooks.createFromInputFallback = deprecate(
  2224. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  2225. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  2226. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  2227. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2228. function (config) {
  2229. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2230. }
  2231. );
  2232. // Pick the first defined of two or three arguments.
  2233. function defaults(a, b, c) {
  2234. if (a != null) {
  2235. return a;
  2236. }
  2237. if (b != null) {
  2238. return b;
  2239. }
  2240. return c;
  2241. }
  2242. function currentDateArray(config) {
  2243. // hooks is actually the exported moment object
  2244. var nowValue = new Date(hooks.now());
  2245. if (config._useUTC) {
  2246. return [
  2247. nowValue.getUTCFullYear(),
  2248. nowValue.getUTCMonth(),
  2249. nowValue.getUTCDate(),
  2250. ];
  2251. }
  2252. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  2253. }
  2254. // convert an array to a date.
  2255. // the array should mirror the parameters below
  2256. // note: all values past the year are optional and will default to the lowest possible value.
  2257. // [year, month, day , hour, minute, second, millisecond]
  2258. function configFromArray(config) {
  2259. var i,
  2260. date,
  2261. input = [],
  2262. currentDate,
  2263. expectedWeekday,
  2264. yearToUse;
  2265. if (config._d) {
  2266. return;
  2267. }
  2268. currentDate = currentDateArray(config);
  2269. //compute day of the year from weeks and weekdays
  2270. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  2271. dayOfYearFromWeekInfo(config);
  2272. }
  2273. //if the day of the year is set, figure out what it is
  2274. if (config._dayOfYear != null) {
  2275. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  2276. if (
  2277. config._dayOfYear > daysInYear(yearToUse) ||
  2278. config._dayOfYear === 0
  2279. ) {
  2280. getParsingFlags(config)._overflowDayOfYear = true;
  2281. }
  2282. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  2283. config._a[MONTH] = date.getUTCMonth();
  2284. config._a[DATE] = date.getUTCDate();
  2285. }
  2286. // Default to current date.
  2287. // * if no year, month, day of month are given, default to today
  2288. // * if day of month is given, default month and year
  2289. // * if month is given, default only year
  2290. // * if year is given, don't default anything
  2291. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  2292. config._a[i] = input[i] = currentDate[i];
  2293. }
  2294. // Zero out whatever was not defaulted, including time
  2295. for (; i < 7; i++) {
  2296. config._a[i] = input[i] =
  2297. config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
  2298. }
  2299. // Check for 24:00:00.000
  2300. if (
  2301. config._a[HOUR] === 24 &&
  2302. config._a[MINUTE] === 0 &&
  2303. config._a[SECOND] === 0 &&
  2304. config._a[MILLISECOND] === 0
  2305. ) {
  2306. config._nextDay = true;
  2307. config._a[HOUR] = 0;
  2308. }
  2309. config._d = (config._useUTC ? createUTCDate : createDate).apply(
  2310. null,
  2311. input
  2312. );
  2313. expectedWeekday = config._useUTC
  2314. ? config._d.getUTCDay()
  2315. : config._d.getDay();
  2316. // Apply timezone offset from input. The actual utcOffset can be changed
  2317. // with parseZone.
  2318. if (config._tzm != null) {
  2319. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2320. }
  2321. if (config._nextDay) {
  2322. config._a[HOUR] = 24;
  2323. }
  2324. // check for mismatching day of week
  2325. if (
  2326. config._w &&
  2327. typeof config._w.d !== 'undefined' &&
  2328. config._w.d !== expectedWeekday
  2329. ) {
  2330. getParsingFlags(config).weekdayMismatch = true;
  2331. }
  2332. }
  2333. function dayOfYearFromWeekInfo(config) {
  2334. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  2335. w = config._w;
  2336. if (w.GG != null || w.W != null || w.E != null) {
  2337. dow = 1;
  2338. doy = 4;
  2339. // TODO: We need to take the current isoWeekYear, but that depends on
  2340. // how we interpret now (local, utc, fixed offset). So create
  2341. // a now version of current config (take local/utc/offset flags, and
  2342. // create now).
  2343. weekYear = defaults(
  2344. w.GG,
  2345. config._a[YEAR],
  2346. weekOfYear(createLocal(), 1, 4).year
  2347. );
  2348. week = defaults(w.W, 1);
  2349. weekday = defaults(w.E, 1);
  2350. if (weekday < 1 || weekday > 7) {
  2351. weekdayOverflow = true;
  2352. }
  2353. } else {
  2354. dow = config._locale._week.dow;
  2355. doy = config._locale._week.doy;
  2356. curWeek = weekOfYear(createLocal(), dow, doy);
  2357. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  2358. // Default to current week.
  2359. week = defaults(w.w, curWeek.week);
  2360. if (w.d != null) {
  2361. // weekday -- low day numbers are considered next week
  2362. weekday = w.d;
  2363. if (weekday < 0 || weekday > 6) {
  2364. weekdayOverflow = true;
  2365. }
  2366. } else if (w.e != null) {
  2367. // local weekday -- counting starts from beginning of week
  2368. weekday = w.e + dow;
  2369. if (w.e < 0 || w.e > 6) {
  2370. weekdayOverflow = true;
  2371. }
  2372. } else {
  2373. // default to beginning of week
  2374. weekday = dow;
  2375. }
  2376. }
  2377. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  2378. getParsingFlags(config)._overflowWeeks = true;
  2379. } else if (weekdayOverflow != null) {
  2380. getParsingFlags(config)._overflowWeekday = true;
  2381. } else {
  2382. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  2383. config._a[YEAR] = temp.year;
  2384. config._dayOfYear = temp.dayOfYear;
  2385. }
  2386. }
  2387. // constant that refers to the ISO standard
  2388. hooks.ISO_8601 = function () {};
  2389. // constant that refers to the RFC 2822 form
  2390. hooks.RFC_2822 = function () {};
  2391. // date from string and format string
  2392. function configFromStringAndFormat(config) {
  2393. // TODO: Move this to another part of the creation flow to prevent circular deps
  2394. if (config._f === hooks.ISO_8601) {
  2395. configFromISO(config);
  2396. return;
  2397. }
  2398. if (config._f === hooks.RFC_2822) {
  2399. configFromRFC2822(config);
  2400. return;
  2401. }
  2402. config._a = [];
  2403. getParsingFlags(config).empty = true;
  2404. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2405. var string = '' + config._i,
  2406. i,
  2407. parsedInput,
  2408. tokens,
  2409. token,
  2410. skipped,
  2411. stringLength = string.length,
  2412. totalParsedInputLength = 0,
  2413. era;
  2414. tokens =
  2415. expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2416. for (i = 0; i < tokens.length; i++) {
  2417. token = tokens[i];
  2418. parsedInput = (string.match(getParseRegexForToken(token, config)) ||
  2419. [])[0];
  2420. if (parsedInput) {
  2421. skipped = string.substr(0, string.indexOf(parsedInput));
  2422. if (skipped.length > 0) {
  2423. getParsingFlags(config).unusedInput.push(skipped);
  2424. }
  2425. string = string.slice(
  2426. string.indexOf(parsedInput) + parsedInput.length
  2427. );
  2428. totalParsedInputLength += parsedInput.length;
  2429. }
  2430. // don't parse if it's not a known token
  2431. if (formatTokenFunctions[token]) {
  2432. if (parsedInput) {
  2433. getParsingFlags(config).empty = false;
  2434. } else {
  2435. getParsingFlags(config).unusedTokens.push(token);
  2436. }
  2437. addTimeToArrayFromToken(token, parsedInput, config);
  2438. } else if (config._strict && !parsedInput) {
  2439. getParsingFlags(config).unusedTokens.push(token);
  2440. }
  2441. }
  2442. // add remaining unparsed input length to the string
  2443. getParsingFlags(config).charsLeftOver =
  2444. stringLength - totalParsedInputLength;
  2445. if (string.length > 0) {
  2446. getParsingFlags(config).unusedInput.push(string);
  2447. }
  2448. // clear _12h flag if hour is <= 12
  2449. if (
  2450. config._a[HOUR] <= 12 &&
  2451. getParsingFlags(config).bigHour === true &&
  2452. config._a[HOUR] > 0
  2453. ) {
  2454. getParsingFlags(config).bigHour = undefined;
  2455. }
  2456. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2457. getParsingFlags(config).meridiem = config._meridiem;
  2458. // handle meridiem
  2459. config._a[HOUR] = meridiemFixWrap(
  2460. config._locale,
  2461. config._a[HOUR],
  2462. config._meridiem
  2463. );
  2464. // handle era
  2465. era = getParsingFlags(config).era;
  2466. if (era !== null) {
  2467. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  2468. }
  2469. configFromArray(config);
  2470. checkOverflow(config);
  2471. }
  2472. function meridiemFixWrap(locale, hour, meridiem) {
  2473. var isPm;
  2474. if (meridiem == null) {
  2475. // nothing to do
  2476. return hour;
  2477. }
  2478. if (locale.meridiemHour != null) {
  2479. return locale.meridiemHour(hour, meridiem);
  2480. } else if (locale.isPM != null) {
  2481. // Fallback
  2482. isPm = locale.isPM(meridiem);
  2483. if (isPm && hour < 12) {
  2484. hour += 12;
  2485. }
  2486. if (!isPm && hour === 12) {
  2487. hour = 0;
  2488. }
  2489. return hour;
  2490. } else {
  2491. // this is not supposed to happen
  2492. return hour;
  2493. }
  2494. }
  2495. // date from string and array of format strings
  2496. function configFromStringAndArray(config) {
  2497. var tempConfig,
  2498. bestMoment,
  2499. scoreToBeat,
  2500. i,
  2501. currentScore,
  2502. validFormatFound,
  2503. bestFormatIsValid = false;
  2504. if (config._f.length === 0) {
  2505. getParsingFlags(config).invalidFormat = true;
  2506. config._d = new Date(NaN);
  2507. return;
  2508. }
  2509. for (i = 0; i < config._f.length; i++) {
  2510. currentScore = 0;
  2511. validFormatFound = false;
  2512. tempConfig = copyConfig({}, config);
  2513. if (config._useUTC != null) {
  2514. tempConfig._useUTC = config._useUTC;
  2515. }
  2516. tempConfig._f = config._f[i];
  2517. configFromStringAndFormat(tempConfig);
  2518. if (isValid(tempConfig)) {
  2519. validFormatFound = true;
  2520. }
  2521. // if there is any input that was not parsed add a penalty for that format
  2522. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2523. //or tokens
  2524. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2525. getParsingFlags(tempConfig).score = currentScore;
  2526. if (!bestFormatIsValid) {
  2527. if (
  2528. scoreToBeat == null ||
  2529. currentScore < scoreToBeat ||
  2530. validFormatFound
  2531. ) {
  2532. scoreToBeat = currentScore;
  2533. bestMoment = tempConfig;
  2534. if (validFormatFound) {
  2535. bestFormatIsValid = true;
  2536. }
  2537. }
  2538. } else {
  2539. if (currentScore < scoreToBeat) {
  2540. scoreToBeat = currentScore;
  2541. bestMoment = tempConfig;
  2542. }
  2543. }
  2544. }
  2545. extend(config, bestMoment || tempConfig);
  2546. }
  2547. function configFromObject(config) {
  2548. if (config._d) {
  2549. return;
  2550. }
  2551. var i = normalizeObjectUnits(config._i),
  2552. dayOrDate = i.day === undefined ? i.date : i.day;
  2553. config._a = map(
  2554. [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
  2555. function (obj) {
  2556. return obj && parseInt(obj, 10);
  2557. }
  2558. );
  2559. configFromArray(config);
  2560. }
  2561. function createFromConfig(config) {
  2562. var res = new Moment(checkOverflow(prepareConfig(config)));
  2563. if (res._nextDay) {
  2564. // Adding is smart enough around DST
  2565. res.add(1, 'd');
  2566. res._nextDay = undefined;
  2567. }
  2568. return res;
  2569. }
  2570. function prepareConfig(config) {
  2571. var input = config._i,
  2572. format = config._f;
  2573. config._locale = config._locale || getLocale(config._l);
  2574. if (input === null || (format === undefined && input === '')) {
  2575. return createInvalid({ nullInput: true });
  2576. }
  2577. if (typeof input === 'string') {
  2578. config._i = input = config._locale.preparse(input);
  2579. }
  2580. if (isMoment(input)) {
  2581. return new Moment(checkOverflow(input));
  2582. } else if (isDate(input)) {
  2583. config._d = input;
  2584. } else if (isArray(format)) {
  2585. configFromStringAndArray(config);
  2586. } else if (format) {
  2587. configFromStringAndFormat(config);
  2588. } else {
  2589. configFromInput(config);
  2590. }
  2591. if (!isValid(config)) {
  2592. config._d = null;
  2593. }
  2594. return config;
  2595. }
  2596. function configFromInput(config) {
  2597. var input = config._i;
  2598. if (isUndefined(input)) {
  2599. config._d = new Date(hooks.now());
  2600. } else if (isDate(input)) {
  2601. config._d = new Date(input.valueOf());
  2602. } else if (typeof input === 'string') {
  2603. configFromString(config);
  2604. } else if (isArray(input)) {
  2605. config._a = map(input.slice(0), function (obj) {
  2606. return parseInt(obj, 10);
  2607. });
  2608. configFromArray(config);
  2609. } else if (isObject(input)) {
  2610. configFromObject(config);
  2611. } else if (isNumber(input)) {
  2612. // from milliseconds
  2613. config._d = new Date(input);
  2614. } else {
  2615. hooks.createFromInputFallback(config);
  2616. }
  2617. }
  2618. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  2619. var c = {};
  2620. if (format === true || format === false) {
  2621. strict = format;
  2622. format = undefined;
  2623. }
  2624. if (locale === true || locale === false) {
  2625. strict = locale;
  2626. locale = undefined;
  2627. }
  2628. if (
  2629. (isObject(input) && isObjectEmpty(input)) ||
  2630. (isArray(input) && input.length === 0)
  2631. ) {
  2632. input = undefined;
  2633. }
  2634. // object construction must be done this way.
  2635. // https://github.com/moment/moment/issues/1423
  2636. c._isAMomentObject = true;
  2637. c._useUTC = c._isUTC = isUTC;
  2638. c._l = locale;
  2639. c._i = input;
  2640. c._f = format;
  2641. c._strict = strict;
  2642. return createFromConfig(c);
  2643. }
  2644. function createLocal(input, format, locale, strict) {
  2645. return createLocalOrUTC(input, format, locale, strict, false);
  2646. }
  2647. var prototypeMin = deprecate(
  2648. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2649. function () {
  2650. var other = createLocal.apply(null, arguments);
  2651. if (this.isValid() && other.isValid()) {
  2652. return other < this ? this : other;
  2653. } else {
  2654. return createInvalid();
  2655. }
  2656. }
  2657. ),
  2658. prototypeMax = deprecate(
  2659. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2660. function () {
  2661. var other = createLocal.apply(null, arguments);
  2662. if (this.isValid() && other.isValid()) {
  2663. return other > this ? this : other;
  2664. } else {
  2665. return createInvalid();
  2666. }
  2667. }
  2668. );
  2669. // Pick a moment m from moments so that m[fn](other) is true for all
  2670. // other. This relies on the function fn to be transitive.
  2671. //
  2672. // moments should either be an array of moment objects or an array, whose
  2673. // first element is an array of moment objects.
  2674. function pickBy(fn, moments) {
  2675. var res, i;
  2676. if (moments.length === 1 && isArray(moments[0])) {
  2677. moments = moments[0];
  2678. }
  2679. if (!moments.length) {
  2680. return createLocal();
  2681. }
  2682. res = moments[0];
  2683. for (i = 1; i < moments.length; ++i) {
  2684. if (!moments[i].isValid() || moments[i][fn](res)) {
  2685. res = moments[i];
  2686. }
  2687. }
  2688. return res;
  2689. }
  2690. // TODO: Use [].sort instead?
  2691. function min() {
  2692. var args = [].slice.call(arguments, 0);
  2693. return pickBy('isBefore', args);
  2694. }
  2695. function max() {
  2696. var args = [].slice.call(arguments, 0);
  2697. return pickBy('isAfter', args);
  2698. }
  2699. var now = function () {
  2700. return Date.now ? Date.now() : +new Date();
  2701. };
  2702. var ordering = [
  2703. 'year',
  2704. 'quarter',
  2705. 'month',
  2706. 'week',
  2707. 'day',
  2708. 'hour',
  2709. 'minute',
  2710. 'second',
  2711. 'millisecond',
  2712. ];
  2713. function isDurationValid(m) {
  2714. var key,
  2715. unitHasDecimal = false,
  2716. i;
  2717. for (key in m) {
  2718. if (
  2719. hasOwnProp(m, key) &&
  2720. !(
  2721. indexOf.call(ordering, key) !== -1 &&
  2722. (m[key] == null || !isNaN(m[key]))
  2723. )
  2724. ) {
  2725. return false;
  2726. }
  2727. }
  2728. for (i = 0; i < ordering.length; ++i) {
  2729. if (m[ordering[i]]) {
  2730. if (unitHasDecimal) {
  2731. return false; // only allow non-integers for smallest unit
  2732. }
  2733. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2734. unitHasDecimal = true;
  2735. }
  2736. }
  2737. }
  2738. return true;
  2739. }
  2740. function isValid$1() {
  2741. return this._isValid;
  2742. }
  2743. function createInvalid$1() {
  2744. return createDuration(NaN);
  2745. }
  2746. function Duration(duration) {
  2747. var normalizedInput = normalizeObjectUnits(duration),
  2748. years = normalizedInput.year || 0,
  2749. quarters = normalizedInput.quarter || 0,
  2750. months = normalizedInput.month || 0,
  2751. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  2752. days = normalizedInput.day || 0,
  2753. hours = normalizedInput.hour || 0,
  2754. minutes = normalizedInput.minute || 0,
  2755. seconds = normalizedInput.second || 0,
  2756. milliseconds = normalizedInput.millisecond || 0;
  2757. this._isValid = isDurationValid(normalizedInput);
  2758. // representation for dateAddRemove
  2759. this._milliseconds =
  2760. +milliseconds +
  2761. seconds * 1e3 + // 1000
  2762. minutes * 6e4 + // 1000 * 60
  2763. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2764. // Because of dateAddRemove treats 24 hours as different from a
  2765. // day when working around DST, we need to store them separately
  2766. this._days = +days + weeks * 7;
  2767. // It is impossible to translate months into days without knowing
  2768. // which months you are are talking about, so we have to store
  2769. // it separately.
  2770. this._months = +months + quarters * 3 + years * 12;
  2771. this._data = {};
  2772. this._locale = getLocale();
  2773. this._bubble();
  2774. }
  2775. function isDuration(obj) {
  2776. return obj instanceof Duration;
  2777. }
  2778. function absRound(number) {
  2779. if (number < 0) {
  2780. return Math.round(-1 * number) * -1;
  2781. } else {
  2782. return Math.round(number);
  2783. }
  2784. }
  2785. // compare two arrays, return the number of differences
  2786. function compareArrays(array1, array2, dontConvert) {
  2787. var len = Math.min(array1.length, array2.length),
  2788. lengthDiff = Math.abs(array1.length - array2.length),
  2789. diffs = 0,
  2790. i;
  2791. for (i = 0; i < len; i++) {
  2792. if (
  2793. (dontConvert && array1[i] !== array2[i]) ||
  2794. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
  2795. ) {
  2796. diffs++;
  2797. }
  2798. }
  2799. return diffs + lengthDiff;
  2800. }
  2801. // FORMATTING
  2802. function offset(token, separator) {
  2803. addFormatToken(token, 0, 0, function () {
  2804. var offset = this.utcOffset(),
  2805. sign = '+';
  2806. if (offset < 0) {
  2807. offset = -offset;
  2808. sign = '-';
  2809. }
  2810. return (
  2811. sign +
  2812. zeroFill(~~(offset / 60), 2) +
  2813. separator +
  2814. zeroFill(~~offset % 60, 2)
  2815. );
  2816. });
  2817. }
  2818. offset('Z', ':');
  2819. offset('ZZ', '');
  2820. // PARSING
  2821. addRegexToken('Z', matchShortOffset);
  2822. addRegexToken('ZZ', matchShortOffset);
  2823. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2824. config._useUTC = true;
  2825. config._tzm = offsetFromString(matchShortOffset, input);
  2826. });
  2827. // HELPERS
  2828. // timezone chunker
  2829. // '+10:00' > ['10', '00']
  2830. // '-1530' > ['-15', '30']
  2831. var chunkOffset = /([\+\-]|\d\d)/gi;
  2832. function offsetFromString(matcher, string) {
  2833. var matches = (string || '').match(matcher),
  2834. chunk,
  2835. parts,
  2836. minutes;
  2837. if (matches === null) {
  2838. return null;
  2839. }
  2840. chunk = matches[matches.length - 1] || [];
  2841. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2842. minutes = +(parts[1] * 60) + toInt(parts[2]);
  2843. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  2844. }
  2845. // Return a moment from input, that is local/utc/zone equivalent to model.
  2846. function cloneWithOffset(input, model) {
  2847. var res, diff;
  2848. if (model._isUTC) {
  2849. res = model.clone();
  2850. diff =
  2851. (isMoment(input) || isDate(input)
  2852. ? input.valueOf()
  2853. : createLocal(input).valueOf()) - res.valueOf();
  2854. // Use low-level api, because this fn is low-level api.
  2855. res._d.setTime(res._d.valueOf() + diff);
  2856. hooks.updateOffset(res, false);
  2857. return res;
  2858. } else {
  2859. return createLocal(input).local();
  2860. }
  2861. }
  2862. function getDateOffset(m) {
  2863. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2864. // https://github.com/moment/moment/pull/1871
  2865. return -Math.round(m._d.getTimezoneOffset());
  2866. }
  2867. // HOOKS
  2868. // This function will be called whenever a moment is mutated.
  2869. // It is intended to keep the offset in sync with the timezone.
  2870. hooks.updateOffset = function () {};
  2871. // MOMENTS
  2872. // keepLocalTime = true means only change the timezone, without
  2873. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2874. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2875. // +0200, so we adjust the time as needed, to be valid.
  2876. //
  2877. // Keeping the time actually adds/subtracts (one hour)
  2878. // from the actual represented time. That is why we call updateOffset
  2879. // a second time. In case it wants us to change the offset again
  2880. // _changeInProgress == true case, then we have to adjust, because
  2881. // there is no such time in the given timezone.
  2882. function getSetOffset(input, keepLocalTime, keepMinutes) {
  2883. var offset = this._offset || 0,
  2884. localAdjust;
  2885. if (!this.isValid()) {
  2886. return input != null ? this : NaN;
  2887. }
  2888. if (input != null) {
  2889. if (typeof input === 'string') {
  2890. input = offsetFromString(matchShortOffset, input);
  2891. if (input === null) {
  2892. return this;
  2893. }
  2894. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2895. input = input * 60;
  2896. }
  2897. if (!this._isUTC && keepLocalTime) {
  2898. localAdjust = getDateOffset(this);
  2899. }
  2900. this._offset = input;
  2901. this._isUTC = true;
  2902. if (localAdjust != null) {
  2903. this.add(localAdjust, 'm');
  2904. }
  2905. if (offset !== input) {
  2906. if (!keepLocalTime || this._changeInProgress) {
  2907. addSubtract(
  2908. this,
  2909. createDuration(input - offset, 'm'),
  2910. 1,
  2911. false
  2912. );
  2913. } else if (!this._changeInProgress) {
  2914. this._changeInProgress = true;
  2915. hooks.updateOffset(this, true);
  2916. this._changeInProgress = null;
  2917. }
  2918. }
  2919. return this;
  2920. } else {
  2921. return this._isUTC ? offset : getDateOffset(this);
  2922. }
  2923. }
  2924. function getSetZone(input, keepLocalTime) {
  2925. if (input != null) {
  2926. if (typeof input !== 'string') {
  2927. input = -input;
  2928. }
  2929. this.utcOffset(input, keepLocalTime);
  2930. return this;
  2931. } else {
  2932. return -this.utcOffset();
  2933. }
  2934. }
  2935. function setOffsetToUTC(keepLocalTime) {
  2936. return this.utcOffset(0, keepLocalTime);
  2937. }
  2938. function setOffsetToLocal(keepLocalTime) {
  2939. if (this._isUTC) {
  2940. this.utcOffset(0, keepLocalTime);
  2941. this._isUTC = false;
  2942. if (keepLocalTime) {
  2943. this.subtract(getDateOffset(this), 'm');
  2944. }
  2945. }
  2946. return this;
  2947. }
  2948. function setOffsetToParsedOffset() {
  2949. if (this._tzm != null) {
  2950. this.utcOffset(this._tzm, false, true);
  2951. } else if (typeof this._i === 'string') {
  2952. var tZone = offsetFromString(matchOffset, this._i);
  2953. if (tZone != null) {
  2954. this.utcOffset(tZone);
  2955. } else {
  2956. this.utcOffset(0, true);
  2957. }
  2958. }
  2959. return this;
  2960. }
  2961. function hasAlignedHourOffset(input) {
  2962. if (!this.isValid()) {
  2963. return false;
  2964. }
  2965. input = input ? createLocal(input).utcOffset() : 0;
  2966. return (this.utcOffset() - input) % 60 === 0;
  2967. }
  2968. function isDaylightSavingTime() {
  2969. return (
  2970. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2971. this.utcOffset() > this.clone().month(5).utcOffset()
  2972. );
  2973. }
  2974. function isDaylightSavingTimeShifted() {
  2975. if (!isUndefined(this._isDSTShifted)) {
  2976. return this._isDSTShifted;
  2977. }
  2978. var c = {},
  2979. other;
  2980. copyConfig(c, this);
  2981. c = prepareConfig(c);
  2982. if (c._a) {
  2983. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2984. this._isDSTShifted =
  2985. this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  2986. } else {
  2987. this._isDSTShifted = false;
  2988. }
  2989. return this._isDSTShifted;
  2990. }
  2991. function isLocal() {
  2992. return this.isValid() ? !this._isUTC : false;
  2993. }
  2994. function isUtcOffset() {
  2995. return this.isValid() ? this._isUTC : false;
  2996. }
  2997. function isUtc() {
  2998. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2999. }
  3000. // ASP.NET json date format regex
  3001. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  3002. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  3003. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  3004. // and further modified to allow for strings containing both week and day
  3005. isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  3006. function createDuration(input, key) {
  3007. var duration = input,
  3008. // matching against regexp is expensive, do it on demand
  3009. match = null,
  3010. sign,
  3011. ret,
  3012. diffRes;
  3013. if (isDuration(input)) {
  3014. duration = {
  3015. ms: input._milliseconds,
  3016. d: input._days,
  3017. M: input._months,
  3018. };
  3019. } else if (isNumber(input) || !isNaN(+input)) {
  3020. duration = {};
  3021. if (key) {
  3022. duration[key] = +input;
  3023. } else {
  3024. duration.milliseconds = +input;
  3025. }
  3026. } else if ((match = aspNetRegex.exec(input))) {
  3027. sign = match[1] === '-' ? -1 : 1;
  3028. duration = {
  3029. y: 0,
  3030. d: toInt(match[DATE]) * sign,
  3031. h: toInt(match[HOUR]) * sign,
  3032. m: toInt(match[MINUTE]) * sign,
  3033. s: toInt(match[SECOND]) * sign,
  3034. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
  3035. };
  3036. } else if ((match = isoRegex.exec(input))) {
  3037. sign = match[1] === '-' ? -1 : 1;
  3038. duration = {
  3039. y: parseIso(match[2], sign),
  3040. M: parseIso(match[3], sign),
  3041. w: parseIso(match[4], sign),
  3042. d: parseIso(match[5], sign),
  3043. h: parseIso(match[6], sign),
  3044. m: parseIso(match[7], sign),
  3045. s: parseIso(match[8], sign),
  3046. };
  3047. } else if (duration == null) {
  3048. // checks for null or undefined
  3049. duration = {};
  3050. } else if (
  3051. typeof duration === 'object' &&
  3052. ('from' in duration || 'to' in duration)
  3053. ) {
  3054. diffRes = momentsDifference(
  3055. createLocal(duration.from),
  3056. createLocal(duration.to)
  3057. );
  3058. duration = {};
  3059. duration.ms = diffRes.milliseconds;
  3060. duration.M = diffRes.months;
  3061. }
  3062. ret = new Duration(duration);
  3063. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  3064. ret._locale = input._locale;
  3065. }
  3066. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  3067. ret._isValid = input._isValid;
  3068. }
  3069. return ret;
  3070. }
  3071. createDuration.fn = Duration.prototype;
  3072. createDuration.invalid = createInvalid$1;
  3073. function parseIso(inp, sign) {
  3074. // We'd normally use ~~inp for this, but unfortunately it also
  3075. // converts floats to ints.
  3076. // inp may be undefined, so careful calling replace on it.
  3077. var res = inp && parseFloat(inp.replace(',', '.'));
  3078. // apply sign while we're at it
  3079. return (isNaN(res) ? 0 : res) * sign;
  3080. }
  3081. function positiveMomentsDifference(base, other) {
  3082. var res = {};
  3083. res.months =
  3084. other.month() - base.month() + (other.year() - base.year()) * 12;
  3085. if (base.clone().add(res.months, 'M').isAfter(other)) {
  3086. --res.months;
  3087. }
  3088. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  3089. return res;
  3090. }
  3091. function momentsDifference(base, other) {
  3092. var res;
  3093. if (!(base.isValid() && other.isValid())) {
  3094. return { milliseconds: 0, months: 0 };
  3095. }
  3096. other = cloneWithOffset(other, base);
  3097. if (base.isBefore(other)) {
  3098. res = positiveMomentsDifference(base, other);
  3099. } else {
  3100. res = positiveMomentsDifference(other, base);
  3101. res.milliseconds = -res.milliseconds;
  3102. res.months = -res.months;
  3103. }
  3104. return res;
  3105. }
  3106. // TODO: remove 'name' arg after deprecation is removed
  3107. function createAdder(direction, name) {
  3108. return function (val, period) {
  3109. var dur, tmp;
  3110. //invert the arguments, but complain about it
  3111. if (period !== null && !isNaN(+period)) {
  3112. deprecateSimple(
  3113. name,
  3114. 'moment().' +
  3115. name +
  3116. '(period, number) is deprecated. Please use moment().' +
  3117. name +
  3118. '(number, period). ' +
  3119. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
  3120. );
  3121. tmp = val;
  3122. val = period;
  3123. period = tmp;
  3124. }
  3125. dur = createDuration(val, period);
  3126. addSubtract(this, dur, direction);
  3127. return this;
  3128. };
  3129. }
  3130. function addSubtract(mom, duration, isAdding, updateOffset) {
  3131. var milliseconds = duration._milliseconds,
  3132. days = absRound(duration._days),
  3133. months = absRound(duration._months);
  3134. if (!mom.isValid()) {
  3135. // No op
  3136. return;
  3137. }
  3138. updateOffset = updateOffset == null ? true : updateOffset;
  3139. if (months) {
  3140. setMonth(mom, get(mom, 'Month') + months * isAdding);
  3141. }
  3142. if (days) {
  3143. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  3144. }
  3145. if (milliseconds) {
  3146. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  3147. }
  3148. if (updateOffset) {
  3149. hooks.updateOffset(mom, days || months);
  3150. }
  3151. }
  3152. var add = createAdder(1, 'add'),
  3153. subtract = createAdder(-1, 'subtract');
  3154. function isString(input) {
  3155. return typeof input === 'string' || input instanceof String;
  3156. }
  3157. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  3158. function isMomentInput(input) {
  3159. return (
  3160. isMoment(input) ||
  3161. isDate(input) ||
  3162. isString(input) ||
  3163. isNumber(input) ||
  3164. isNumberOrStringArray(input) ||
  3165. isMomentInputObject(input) ||
  3166. input === null ||
  3167. input === undefined
  3168. );
  3169. }
  3170. function isMomentInputObject(input) {
  3171. var objectTest = isObject(input) && !isObjectEmpty(input),
  3172. propertyTest = false,
  3173. properties = [
  3174. 'years',
  3175. 'year',
  3176. 'y',
  3177. 'months',
  3178. 'month',
  3179. 'M',
  3180. 'days',
  3181. 'day',
  3182. 'd',
  3183. 'dates',
  3184. 'date',
  3185. 'D',
  3186. 'hours',
  3187. 'hour',
  3188. 'h',
  3189. 'minutes',
  3190. 'minute',
  3191. 'm',
  3192. 'seconds',
  3193. 'second',
  3194. 's',
  3195. 'milliseconds',
  3196. 'millisecond',
  3197. 'ms',
  3198. ],
  3199. i,
  3200. property;
  3201. for (i = 0; i < properties.length; i += 1) {
  3202. property = properties[i];
  3203. propertyTest = propertyTest || hasOwnProp(input, property);
  3204. }
  3205. return objectTest && propertyTest;
  3206. }
  3207. function isNumberOrStringArray(input) {
  3208. var arrayTest = isArray(input),
  3209. dataTypeTest = false;
  3210. if (arrayTest) {
  3211. dataTypeTest =
  3212. input.filter(function (item) {
  3213. return !isNumber(item) && isString(input);
  3214. }).length === 0;
  3215. }
  3216. return arrayTest && dataTypeTest;
  3217. }
  3218. function isCalendarSpec(input) {
  3219. var objectTest = isObject(input) && !isObjectEmpty(input),
  3220. propertyTest = false,
  3221. properties = [
  3222. 'sameDay',
  3223. 'nextDay',
  3224. 'lastDay',
  3225. 'nextWeek',
  3226. 'lastWeek',
  3227. 'sameElse',
  3228. ],
  3229. i,
  3230. property;
  3231. for (i = 0; i < properties.length; i += 1) {
  3232. property = properties[i];
  3233. propertyTest = propertyTest || hasOwnProp(input, property);
  3234. }
  3235. return objectTest && propertyTest;
  3236. }
  3237. function getCalendarFormat(myMoment, now) {
  3238. var diff = myMoment.diff(now, 'days', true);
  3239. return diff < -6
  3240. ? 'sameElse'
  3241. : diff < -1
  3242. ? 'lastWeek'
  3243. : diff < 0
  3244. ? 'lastDay'
  3245. : diff < 1
  3246. ? 'sameDay'
  3247. : diff < 2
  3248. ? 'nextDay'
  3249. : diff < 7
  3250. ? 'nextWeek'
  3251. : 'sameElse';
  3252. }
  3253. function calendar$1(time, formats) {
  3254. // Support for single parameter, formats only overload to the calendar function
  3255. if (arguments.length === 1) {
  3256. if (isMomentInput(arguments[0])) {
  3257. time = arguments[0];
  3258. formats = undefined;
  3259. } else if (isCalendarSpec(arguments[0])) {
  3260. formats = arguments[0];
  3261. time = undefined;
  3262. }
  3263. }
  3264. // We want to compare the start of today, vs this.
  3265. // Getting start-of-today depends on whether we're local/utc/offset or not.
  3266. var now = time || createLocal(),
  3267. sod = cloneWithOffset(now, this).startOf('day'),
  3268. format = hooks.calendarFormat(this, sod) || 'sameElse',
  3269. output =
  3270. formats &&
  3271. (isFunction(formats[format])
  3272. ? formats[format].call(this, now)
  3273. : formats[format]);
  3274. return this.format(
  3275. output || this.localeData().calendar(format, this, createLocal(now))
  3276. );
  3277. }
  3278. function clone() {
  3279. return new Moment(this);
  3280. }
  3281. function isAfter(input, units) {
  3282. var localInput = isMoment(input) ? input : createLocal(input);
  3283. if (!(this.isValid() && localInput.isValid())) {
  3284. return false;
  3285. }
  3286. units = normalizeUnits(units) || 'millisecond';
  3287. if (units === 'millisecond') {
  3288. return this.valueOf() > localInput.valueOf();
  3289. } else {
  3290. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  3291. }
  3292. }
  3293. function isBefore(input, units) {
  3294. var localInput = isMoment(input) ? input : createLocal(input);
  3295. if (!(this.isValid() && localInput.isValid())) {
  3296. return false;
  3297. }
  3298. units = normalizeUnits(units) || 'millisecond';
  3299. if (units === 'millisecond') {
  3300. return this.valueOf() < localInput.valueOf();
  3301. } else {
  3302. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  3303. }
  3304. }
  3305. function isBetween(from, to, units, inclusivity) {
  3306. var localFrom = isMoment(from) ? from : createLocal(from),
  3307. localTo = isMoment(to) ? to : createLocal(to);
  3308. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  3309. return false;
  3310. }
  3311. inclusivity = inclusivity || '()';
  3312. return (
  3313. (inclusivity[0] === '('
  3314. ? this.isAfter(localFrom, units)
  3315. : !this.isBefore(localFrom, units)) &&
  3316. (inclusivity[1] === ')'
  3317. ? this.isBefore(localTo, units)
  3318. : !this.isAfter(localTo, units))
  3319. );
  3320. }
  3321. function isSame(input, units) {
  3322. var localInput = isMoment(input) ? input : createLocal(input),
  3323. inputMs;
  3324. if (!(this.isValid() && localInput.isValid())) {
  3325. return false;
  3326. }
  3327. units = normalizeUnits(units) || 'millisecond';
  3328. if (units === 'millisecond') {
  3329. return this.valueOf() === localInput.valueOf();
  3330. } else {
  3331. inputMs = localInput.valueOf();
  3332. return (
  3333. this.clone().startOf(units).valueOf() <= inputMs &&
  3334. inputMs <= this.clone().endOf(units).valueOf()
  3335. );
  3336. }
  3337. }
  3338. function isSameOrAfter(input, units) {
  3339. return this.isSame(input, units) || this.isAfter(input, units);
  3340. }
  3341. function isSameOrBefore(input, units) {
  3342. return this.isSame(input, units) || this.isBefore(input, units);
  3343. }
  3344. function diff(input, units, asFloat) {
  3345. var that, zoneDelta, output;
  3346. if (!this.isValid()) {
  3347. return NaN;
  3348. }
  3349. that = cloneWithOffset(input, this);
  3350. if (!that.isValid()) {
  3351. return NaN;
  3352. }
  3353. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  3354. units = normalizeUnits(units);
  3355. switch (units) {
  3356. case 'year':
  3357. output = monthDiff(this, that) / 12;
  3358. break;
  3359. case 'month':
  3360. output = monthDiff(this, that);
  3361. break;
  3362. case 'quarter':
  3363. output = monthDiff(this, that) / 3;
  3364. break;
  3365. case 'second':
  3366. output = (this - that) / 1e3;
  3367. break; // 1000
  3368. case 'minute':
  3369. output = (this - that) / 6e4;
  3370. break; // 1000 * 60
  3371. case 'hour':
  3372. output = (this - that) / 36e5;
  3373. break; // 1000 * 60 * 60
  3374. case 'day':
  3375. output = (this - that - zoneDelta) / 864e5;
  3376. break; // 1000 * 60 * 60 * 24, negate dst
  3377. case 'week':
  3378. output = (this - that - zoneDelta) / 6048e5;
  3379. break; // 1000 * 60 * 60 * 24 * 7, negate dst
  3380. default:
  3381. output = this - that;
  3382. }
  3383. return asFloat ? output : absFloor(output);
  3384. }
  3385. function monthDiff(a, b) {
  3386. if (a.date() < b.date()) {
  3387. // end-of-month calculations work correct when the start month has more
  3388. // days than the end month.
  3389. return -monthDiff(b, a);
  3390. }
  3391. // difference in months
  3392. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  3393. // b is in (anchor - 1 month, anchor + 1 month)
  3394. anchor = a.clone().add(wholeMonthDiff, 'months'),
  3395. anchor2,
  3396. adjust;
  3397. if (b - anchor < 0) {
  3398. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  3399. // linear across the month
  3400. adjust = (b - anchor) / (anchor - anchor2);
  3401. } else {
  3402. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  3403. // linear across the month
  3404. adjust = (b - anchor) / (anchor2 - anchor);
  3405. }
  3406. //check for negative zero, return zero if negative zero
  3407. return -(wholeMonthDiff + adjust) || 0;
  3408. }
  3409. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  3410. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  3411. function toString() {
  3412. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  3413. }
  3414. function toISOString(keepOffset) {
  3415. if (!this.isValid()) {
  3416. return null;
  3417. }
  3418. var utc = keepOffset !== true,
  3419. m = utc ? this.clone().utc() : this;
  3420. if (m.year() < 0 || m.year() > 9999) {
  3421. return formatMoment(
  3422. m,
  3423. utc
  3424. ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
  3425. : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3426. );
  3427. }
  3428. if (isFunction(Date.prototype.toISOString)) {
  3429. // native implementation is ~50x faster, use it when we can
  3430. if (utc) {
  3431. return this.toDate().toISOString();
  3432. } else {
  3433. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
  3434. .toISOString()
  3435. .replace('Z', formatMoment(m, 'Z'));
  3436. }
  3437. }
  3438. return formatMoment(
  3439. m,
  3440. utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3441. );
  3442. }
  3443. /**
  3444. * Return a human readable representation of a moment that can
  3445. * also be evaluated to get a new moment which is the same
  3446. *
  3447. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  3448. */
  3449. function inspect() {
  3450. if (!this.isValid()) {
  3451. return 'moment.invalid(/* ' + this._i + ' */)';
  3452. }
  3453. var func = 'moment',
  3454. zone = '',
  3455. prefix,
  3456. year,
  3457. datetime,
  3458. suffix;
  3459. if (!this.isLocal()) {
  3460. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  3461. zone = 'Z';
  3462. }
  3463. prefix = '[' + func + '("]';
  3464. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  3465. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  3466. suffix = zone + '[")]';
  3467. return this.format(prefix + year + datetime + suffix);
  3468. }
  3469. function format(inputString) {
  3470. if (!inputString) {
  3471. inputString = this.isUtc()
  3472. ? hooks.defaultFormatUtc
  3473. : hooks.defaultFormat;
  3474. }
  3475. var output = formatMoment(this, inputString);
  3476. return this.localeData().postformat(output);
  3477. }
  3478. function from(time, withoutSuffix) {
  3479. if (
  3480. this.isValid() &&
  3481. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3482. ) {
  3483. return createDuration({ to: this, from: time })
  3484. .locale(this.locale())
  3485. .humanize(!withoutSuffix);
  3486. } else {
  3487. return this.localeData().invalidDate();
  3488. }
  3489. }
  3490. function fromNow(withoutSuffix) {
  3491. return this.from(createLocal(), withoutSuffix);
  3492. }
  3493. function to(time, withoutSuffix) {
  3494. if (
  3495. this.isValid() &&
  3496. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3497. ) {
  3498. return createDuration({ from: this, to: time })
  3499. .locale(this.locale())
  3500. .humanize(!withoutSuffix);
  3501. } else {
  3502. return this.localeData().invalidDate();
  3503. }
  3504. }
  3505. function toNow(withoutSuffix) {
  3506. return this.to(createLocal(), withoutSuffix);
  3507. }
  3508. // If passed a locale key, it will set the locale for this
  3509. // instance. Otherwise, it will return the locale configuration
  3510. // variables for this instance.
  3511. function locale(key) {
  3512. var newLocaleData;
  3513. if (key === undefined) {
  3514. return this._locale._abbr;
  3515. } else {
  3516. newLocaleData = getLocale(key);
  3517. if (newLocaleData != null) {
  3518. this._locale = newLocaleData;
  3519. }
  3520. return this;
  3521. }
  3522. }
  3523. var lang = deprecate(
  3524. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  3525. function (key) {
  3526. if (key === undefined) {
  3527. return this.localeData();
  3528. } else {
  3529. return this.locale(key);
  3530. }
  3531. }
  3532. );
  3533. function localeData() {
  3534. return this._locale;
  3535. }
  3536. var MS_PER_SECOND = 1000,
  3537. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  3538. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  3539. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  3540. // actual modulo - handles negative numbers (for dates before 1970):
  3541. function mod$1(dividend, divisor) {
  3542. return ((dividend % divisor) + divisor) % divisor;
  3543. }
  3544. function localStartOfDate(y, m, d) {
  3545. // the date constructor remaps years 0-99 to 1900-1999
  3546. if (y < 100 && y >= 0) {
  3547. // preserve leap years using a full 400 year cycle, then reset
  3548. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  3549. } else {
  3550. return new Date(y, m, d).valueOf();
  3551. }
  3552. }
  3553. function utcStartOfDate(y, m, d) {
  3554. // Date.UTC remaps years 0-99 to 1900-1999
  3555. if (y < 100 && y >= 0) {
  3556. // preserve leap years using a full 400 year cycle, then reset
  3557. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  3558. } else {
  3559. return Date.UTC(y, m, d);
  3560. }
  3561. }
  3562. function startOf(units) {
  3563. var time, startOfDate;
  3564. units = normalizeUnits(units);
  3565. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3566. return this;
  3567. }
  3568. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3569. switch (units) {
  3570. case 'year':
  3571. time = startOfDate(this.year(), 0, 1);
  3572. break;
  3573. case 'quarter':
  3574. time = startOfDate(
  3575. this.year(),
  3576. this.month() - (this.month() % 3),
  3577. 1
  3578. );
  3579. break;
  3580. case 'month':
  3581. time = startOfDate(this.year(), this.month(), 1);
  3582. break;
  3583. case 'week':
  3584. time = startOfDate(
  3585. this.year(),
  3586. this.month(),
  3587. this.date() - this.weekday()
  3588. );
  3589. break;
  3590. case 'isoWeek':
  3591. time = startOfDate(
  3592. this.year(),
  3593. this.month(),
  3594. this.date() - (this.isoWeekday() - 1)
  3595. );
  3596. break;
  3597. case 'day':
  3598. case 'date':
  3599. time = startOfDate(this.year(), this.month(), this.date());
  3600. break;
  3601. case 'hour':
  3602. time = this._d.valueOf();
  3603. time -= mod$1(
  3604. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3605. MS_PER_HOUR
  3606. );
  3607. break;
  3608. case 'minute':
  3609. time = this._d.valueOf();
  3610. time -= mod$1(time, MS_PER_MINUTE);
  3611. break;
  3612. case 'second':
  3613. time = this._d.valueOf();
  3614. time -= mod$1(time, MS_PER_SECOND);
  3615. break;
  3616. }
  3617. this._d.setTime(time);
  3618. hooks.updateOffset(this, true);
  3619. return this;
  3620. }
  3621. function endOf(units) {
  3622. var time, startOfDate;
  3623. units = normalizeUnits(units);
  3624. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3625. return this;
  3626. }
  3627. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3628. switch (units) {
  3629. case 'year':
  3630. time = startOfDate(this.year() + 1, 0, 1) - 1;
  3631. break;
  3632. case 'quarter':
  3633. time =
  3634. startOfDate(
  3635. this.year(),
  3636. this.month() - (this.month() % 3) + 3,
  3637. 1
  3638. ) - 1;
  3639. break;
  3640. case 'month':
  3641. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  3642. break;
  3643. case 'week':
  3644. time =
  3645. startOfDate(
  3646. this.year(),
  3647. this.month(),
  3648. this.date() - this.weekday() + 7
  3649. ) - 1;
  3650. break;
  3651. case 'isoWeek':
  3652. time =
  3653. startOfDate(
  3654. this.year(),
  3655. this.month(),
  3656. this.date() - (this.isoWeekday() - 1) + 7
  3657. ) - 1;
  3658. break;
  3659. case 'day':
  3660. case 'date':
  3661. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  3662. break;
  3663. case 'hour':
  3664. time = this._d.valueOf();
  3665. time +=
  3666. MS_PER_HOUR -
  3667. mod$1(
  3668. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3669. MS_PER_HOUR
  3670. ) -
  3671. 1;
  3672. break;
  3673. case 'minute':
  3674. time = this._d.valueOf();
  3675. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  3676. break;
  3677. case 'second':
  3678. time = this._d.valueOf();
  3679. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  3680. break;
  3681. }
  3682. this._d.setTime(time);
  3683. hooks.updateOffset(this, true);
  3684. return this;
  3685. }
  3686. function valueOf() {
  3687. return this._d.valueOf() - (this._offset || 0) * 60000;
  3688. }
  3689. function unix() {
  3690. return Math.floor(this.valueOf() / 1000);
  3691. }
  3692. function toDate() {
  3693. return new Date(this.valueOf());
  3694. }
  3695. function toArray() {
  3696. var m = this;
  3697. return [
  3698. m.year(),
  3699. m.month(),
  3700. m.date(),
  3701. m.hour(),
  3702. m.minute(),
  3703. m.second(),
  3704. m.millisecond(),
  3705. ];
  3706. }
  3707. function toObject() {
  3708. var m = this;
  3709. return {
  3710. years: m.year(),
  3711. months: m.month(),
  3712. date: m.date(),
  3713. hours: m.hours(),
  3714. minutes: m.minutes(),
  3715. seconds: m.seconds(),
  3716. milliseconds: m.milliseconds(),
  3717. };
  3718. }
  3719. function toJSON() {
  3720. // new Date(NaN).toJSON() === null
  3721. return this.isValid() ? this.toISOString() : null;
  3722. }
  3723. function isValid$2() {
  3724. return isValid(this);
  3725. }
  3726. function parsingFlags() {
  3727. return extend({}, getParsingFlags(this));
  3728. }
  3729. function invalidAt() {
  3730. return getParsingFlags(this).overflow;
  3731. }
  3732. function creationData() {
  3733. return {
  3734. input: this._i,
  3735. format: this._f,
  3736. locale: this._locale,
  3737. isUTC: this._isUTC,
  3738. strict: this._strict,
  3739. };
  3740. }
  3741. addFormatToken('N', 0, 0, 'eraAbbr');
  3742. addFormatToken('NN', 0, 0, 'eraAbbr');
  3743. addFormatToken('NNN', 0, 0, 'eraAbbr');
  3744. addFormatToken('NNNN', 0, 0, 'eraName');
  3745. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  3746. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  3747. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  3748. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  3749. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  3750. addRegexToken('N', matchEraAbbr);
  3751. addRegexToken('NN', matchEraAbbr);
  3752. addRegexToken('NNN', matchEraAbbr);
  3753. addRegexToken('NNNN', matchEraName);
  3754. addRegexToken('NNNNN', matchEraNarrow);
  3755. addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
  3756. input,
  3757. array,
  3758. config,
  3759. token
  3760. ) {
  3761. var era = config._locale.erasParse(input, token, config._strict);
  3762. if (era) {
  3763. getParsingFlags(config).era = era;
  3764. } else {
  3765. getParsingFlags(config).invalidEra = input;
  3766. }
  3767. });
  3768. addRegexToken('y', matchUnsigned);
  3769. addRegexToken('yy', matchUnsigned);
  3770. addRegexToken('yyy', matchUnsigned);
  3771. addRegexToken('yyyy', matchUnsigned);
  3772. addRegexToken('yo', matchEraYearOrdinal);
  3773. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  3774. addParseToken(['yo'], function (input, array, config, token) {
  3775. var match;
  3776. if (config._locale._eraYearOrdinalRegex) {
  3777. match = input.match(config._locale._eraYearOrdinalRegex);
  3778. }
  3779. if (config._locale.eraYearOrdinalParse) {
  3780. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  3781. } else {
  3782. array[YEAR] = parseInt(input, 10);
  3783. }
  3784. });
  3785. function localeEras(m, format) {
  3786. var i,
  3787. l,
  3788. date,
  3789. eras = this._eras || getLocale('en')._eras;
  3790. for (i = 0, l = eras.length; i < l; ++i) {
  3791. switch (typeof eras[i].since) {
  3792. case 'string':
  3793. // truncate time
  3794. date = hooks(eras[i].since).startOf('day');
  3795. eras[i].since = date.valueOf();
  3796. break;
  3797. }
  3798. switch (typeof eras[i].until) {
  3799. case 'undefined':
  3800. eras[i].until = +Infinity;
  3801. break;
  3802. case 'string':
  3803. // truncate time
  3804. date = hooks(eras[i].until).startOf('day').valueOf();
  3805. eras[i].until = date.valueOf();
  3806. break;
  3807. }
  3808. }
  3809. return eras;
  3810. }
  3811. function localeErasParse(eraName, format, strict) {
  3812. var i,
  3813. l,
  3814. eras = this.eras(),
  3815. name,
  3816. abbr,
  3817. narrow;
  3818. eraName = eraName.toUpperCase();
  3819. for (i = 0, l = eras.length; i < l; ++i) {
  3820. name = eras[i].name.toUpperCase();
  3821. abbr = eras[i].abbr.toUpperCase();
  3822. narrow = eras[i].narrow.toUpperCase();
  3823. if (strict) {
  3824. switch (format) {
  3825. case 'N':
  3826. case 'NN':
  3827. case 'NNN':
  3828. if (abbr === eraName) {
  3829. return eras[i];
  3830. }
  3831. break;
  3832. case 'NNNN':
  3833. if (name === eraName) {
  3834. return eras[i];
  3835. }
  3836. break;
  3837. case 'NNNNN':
  3838. if (narrow === eraName) {
  3839. return eras[i];
  3840. }
  3841. break;
  3842. }
  3843. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  3844. return eras[i];
  3845. }
  3846. }
  3847. }
  3848. function localeErasConvertYear(era, year) {
  3849. var dir = era.since <= era.until ? +1 : -1;
  3850. if (year === undefined) {
  3851. return hooks(era.since).year();
  3852. } else {
  3853. return hooks(era.since).year() + (year - era.offset) * dir;
  3854. }
  3855. }
  3856. function getEraName() {
  3857. var i,
  3858. l,
  3859. val,
  3860. eras = this.localeData().eras();
  3861. for (i = 0, l = eras.length; i < l; ++i) {
  3862. // truncate time
  3863. val = this.clone().startOf('day').valueOf();
  3864. if (eras[i].since <= val && val <= eras[i].until) {
  3865. return eras[i].name;
  3866. }
  3867. if (eras[i].until <= val && val <= eras[i].since) {
  3868. return eras[i].name;
  3869. }
  3870. }
  3871. return '';
  3872. }
  3873. function getEraNarrow() {
  3874. var i,
  3875. l,
  3876. val,
  3877. eras = this.localeData().eras();
  3878. for (i = 0, l = eras.length; i < l; ++i) {
  3879. // truncate time
  3880. val = this.clone().startOf('day').valueOf();
  3881. if (eras[i].since <= val && val <= eras[i].until) {
  3882. return eras[i].narrow;
  3883. }
  3884. if (eras[i].until <= val && val <= eras[i].since) {
  3885. return eras[i].narrow;
  3886. }
  3887. }
  3888. return '';
  3889. }
  3890. function getEraAbbr() {
  3891. var i,
  3892. l,
  3893. val,
  3894. eras = this.localeData().eras();
  3895. for (i = 0, l = eras.length; i < l; ++i) {
  3896. // truncate time
  3897. val = this.clone().startOf('day').valueOf();
  3898. if (eras[i].since <= val && val <= eras[i].until) {
  3899. return eras[i].abbr;
  3900. }
  3901. if (eras[i].until <= val && val <= eras[i].since) {
  3902. return eras[i].abbr;
  3903. }
  3904. }
  3905. return '';
  3906. }
  3907. function getEraYear() {
  3908. var i,
  3909. l,
  3910. dir,
  3911. val,
  3912. eras = this.localeData().eras();
  3913. for (i = 0, l = eras.length; i < l; ++i) {
  3914. dir = eras[i].since <= eras[i].until ? +1 : -1;
  3915. // truncate time
  3916. val = this.clone().startOf('day').valueOf();
  3917. if (
  3918. (eras[i].since <= val && val <= eras[i].until) ||
  3919. (eras[i].until <= val && val <= eras[i].since)
  3920. ) {
  3921. return (
  3922. (this.year() - hooks(eras[i].since).year()) * dir +
  3923. eras[i].offset
  3924. );
  3925. }
  3926. }
  3927. return this.year();
  3928. }
  3929. function erasNameRegex(isStrict) {
  3930. if (!hasOwnProp(this, '_erasNameRegex')) {
  3931. computeErasParse.call(this);
  3932. }
  3933. return isStrict ? this._erasNameRegex : this._erasRegex;
  3934. }
  3935. function erasAbbrRegex(isStrict) {
  3936. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  3937. computeErasParse.call(this);
  3938. }
  3939. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  3940. }
  3941. function erasNarrowRegex(isStrict) {
  3942. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  3943. computeErasParse.call(this);
  3944. }
  3945. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  3946. }
  3947. function matchEraAbbr(isStrict, locale) {
  3948. return locale.erasAbbrRegex(isStrict);
  3949. }
  3950. function matchEraName(isStrict, locale) {
  3951. return locale.erasNameRegex(isStrict);
  3952. }
  3953. function matchEraNarrow(isStrict, locale) {
  3954. return locale.erasNarrowRegex(isStrict);
  3955. }
  3956. function matchEraYearOrdinal(isStrict, locale) {
  3957. return locale._eraYearOrdinalRegex || matchUnsigned;
  3958. }
  3959. function computeErasParse() {
  3960. var abbrPieces = [],
  3961. namePieces = [],
  3962. narrowPieces = [],
  3963. mixedPieces = [],
  3964. i,
  3965. l,
  3966. eras = this.eras();
  3967. for (i = 0, l = eras.length; i < l; ++i) {
  3968. namePieces.push(regexEscape(eras[i].name));
  3969. abbrPieces.push(regexEscape(eras[i].abbr));
  3970. narrowPieces.push(regexEscape(eras[i].narrow));
  3971. mixedPieces.push(regexEscape(eras[i].name));
  3972. mixedPieces.push(regexEscape(eras[i].abbr));
  3973. mixedPieces.push(regexEscape(eras[i].narrow));
  3974. }
  3975. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  3976. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  3977. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  3978. this._erasNarrowRegex = new RegExp(
  3979. '^(' + narrowPieces.join('|') + ')',
  3980. 'i'
  3981. );
  3982. }
  3983. // FORMATTING
  3984. addFormatToken(0, ['gg', 2], 0, function () {
  3985. return this.weekYear() % 100;
  3986. });
  3987. addFormatToken(0, ['GG', 2], 0, function () {
  3988. return this.isoWeekYear() % 100;
  3989. });
  3990. function addWeekYearFormatToken(token, getter) {
  3991. addFormatToken(0, [token, token.length], 0, getter);
  3992. }
  3993. addWeekYearFormatToken('gggg', 'weekYear');
  3994. addWeekYearFormatToken('ggggg', 'weekYear');
  3995. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  3996. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  3997. // ALIASES
  3998. addUnitAlias('weekYear', 'gg');
  3999. addUnitAlias('isoWeekYear', 'GG');
  4000. // PRIORITY
  4001. addUnitPriority('weekYear', 1);
  4002. addUnitPriority('isoWeekYear', 1);
  4003. // PARSING
  4004. addRegexToken('G', matchSigned);
  4005. addRegexToken('g', matchSigned);
  4006. addRegexToken('GG', match1to2, match2);
  4007. addRegexToken('gg', match1to2, match2);
  4008. addRegexToken('GGGG', match1to4, match4);
  4009. addRegexToken('gggg', match1to4, match4);
  4010. addRegexToken('GGGGG', match1to6, match6);
  4011. addRegexToken('ggggg', match1to6, match6);
  4012. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
  4013. input,
  4014. week,
  4015. config,
  4016. token
  4017. ) {
  4018. week[token.substr(0, 2)] = toInt(input);
  4019. });
  4020. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  4021. week[token] = hooks.parseTwoDigitYear(input);
  4022. });
  4023. // MOMENTS
  4024. function getSetWeekYear(input) {
  4025. return getSetWeekYearHelper.call(
  4026. this,
  4027. input,
  4028. this.week(),
  4029. this.weekday(),
  4030. this.localeData()._week.dow,
  4031. this.localeData()._week.doy
  4032. );
  4033. }
  4034. function getSetISOWeekYear(input) {
  4035. return getSetWeekYearHelper.call(
  4036. this,
  4037. input,
  4038. this.isoWeek(),
  4039. this.isoWeekday(),
  4040. 1,
  4041. 4
  4042. );
  4043. }
  4044. function getISOWeeksInYear() {
  4045. return weeksInYear(this.year(), 1, 4);
  4046. }
  4047. function getISOWeeksInISOWeekYear() {
  4048. return weeksInYear(this.isoWeekYear(), 1, 4);
  4049. }
  4050. function getWeeksInYear() {
  4051. var weekInfo = this.localeData()._week;
  4052. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  4053. }
  4054. function getWeeksInWeekYear() {
  4055. var weekInfo = this.localeData()._week;
  4056. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  4057. }
  4058. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  4059. var weeksTarget;
  4060. if (input == null) {
  4061. return weekOfYear(this, dow, doy).year;
  4062. } else {
  4063. weeksTarget = weeksInYear(input, dow, doy);
  4064. if (week > weeksTarget) {
  4065. week = weeksTarget;
  4066. }
  4067. return setWeekAll.call(this, input, week, weekday, dow, doy);
  4068. }
  4069. }
  4070. function setWeekAll(weekYear, week, weekday, dow, doy) {
  4071. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  4072. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  4073. this.year(date.getUTCFullYear());
  4074. this.month(date.getUTCMonth());
  4075. this.date(date.getUTCDate());
  4076. return this;
  4077. }
  4078. // FORMATTING
  4079. addFormatToken('Q', 0, 'Qo', 'quarter');
  4080. // ALIASES
  4081. addUnitAlias('quarter', 'Q');
  4082. // PRIORITY
  4083. addUnitPriority('quarter', 7);
  4084. // PARSING
  4085. addRegexToken('Q', match1);
  4086. addParseToken('Q', function (input, array) {
  4087. array[MONTH] = (toInt(input) - 1) * 3;
  4088. });
  4089. // MOMENTS
  4090. function getSetQuarter(input) {
  4091. return input == null
  4092. ? Math.ceil((this.month() + 1) / 3)
  4093. : this.month((input - 1) * 3 + (this.month() % 3));
  4094. }
  4095. // FORMATTING
  4096. addFormatToken('D', ['DD', 2], 'Do', 'date');
  4097. // ALIASES
  4098. addUnitAlias('date', 'D');
  4099. // PRIORITY
  4100. addUnitPriority('date', 9);
  4101. // PARSING
  4102. addRegexToken('D', match1to2);
  4103. addRegexToken('DD', match1to2, match2);
  4104. addRegexToken('Do', function (isStrict, locale) {
  4105. // TODO: Remove "ordinalParse" fallback in next major release.
  4106. return isStrict
  4107. ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
  4108. : locale._dayOfMonthOrdinalParseLenient;
  4109. });
  4110. addParseToken(['D', 'DD'], DATE);
  4111. addParseToken('Do', function (input, array) {
  4112. array[DATE] = toInt(input.match(match1to2)[0]);
  4113. });
  4114. // MOMENTS
  4115. var getSetDayOfMonth = makeGetSet('Date', true);
  4116. // FORMATTING
  4117. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  4118. // ALIASES
  4119. addUnitAlias('dayOfYear', 'DDD');
  4120. // PRIORITY
  4121. addUnitPriority('dayOfYear', 4);
  4122. // PARSING
  4123. addRegexToken('DDD', match1to3);
  4124. addRegexToken('DDDD', match3);
  4125. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  4126. config._dayOfYear = toInt(input);
  4127. });
  4128. // HELPERS
  4129. // MOMENTS
  4130. function getSetDayOfYear(input) {
  4131. var dayOfYear =
  4132. Math.round(
  4133. (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
  4134. ) + 1;
  4135. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  4136. }
  4137. // FORMATTING
  4138. addFormatToken('m', ['mm', 2], 0, 'minute');
  4139. // ALIASES
  4140. addUnitAlias('minute', 'm');
  4141. // PRIORITY
  4142. addUnitPriority('minute', 14);
  4143. // PARSING
  4144. addRegexToken('m', match1to2);
  4145. addRegexToken('mm', match1to2, match2);
  4146. addParseToken(['m', 'mm'], MINUTE);
  4147. // MOMENTS
  4148. var getSetMinute = makeGetSet('Minutes', false);
  4149. // FORMATTING
  4150. addFormatToken('s', ['ss', 2], 0, 'second');
  4151. // ALIASES
  4152. addUnitAlias('second', 's');
  4153. // PRIORITY
  4154. addUnitPriority('second', 15);
  4155. // PARSING
  4156. addRegexToken('s', match1to2);
  4157. addRegexToken('ss', match1to2, match2);
  4158. addParseToken(['s', 'ss'], SECOND);
  4159. // MOMENTS
  4160. var getSetSecond = makeGetSet('Seconds', false);
  4161. // FORMATTING
  4162. addFormatToken('S', 0, 0, function () {
  4163. return ~~(this.millisecond() / 100);
  4164. });
  4165. addFormatToken(0, ['SS', 2], 0, function () {
  4166. return ~~(this.millisecond() / 10);
  4167. });
  4168. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  4169. addFormatToken(0, ['SSSS', 4], 0, function () {
  4170. return this.millisecond() * 10;
  4171. });
  4172. addFormatToken(0, ['SSSSS', 5], 0, function () {
  4173. return this.millisecond() * 100;
  4174. });
  4175. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  4176. return this.millisecond() * 1000;
  4177. });
  4178. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  4179. return this.millisecond() * 10000;
  4180. });
  4181. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  4182. return this.millisecond() * 100000;
  4183. });
  4184. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  4185. return this.millisecond() * 1000000;
  4186. });
  4187. // ALIASES
  4188. addUnitAlias('millisecond', 'ms');
  4189. // PRIORITY
  4190. addUnitPriority('millisecond', 16);
  4191. // PARSING
  4192. addRegexToken('S', match1to3, match1);
  4193. addRegexToken('SS', match1to3, match2);
  4194. addRegexToken('SSS', match1to3, match3);
  4195. var token, getSetMillisecond;
  4196. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  4197. addRegexToken(token, matchUnsigned);
  4198. }
  4199. function parseMs(input, array) {
  4200. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  4201. }
  4202. for (token = 'S'; token.length <= 9; token += 'S') {
  4203. addParseToken(token, parseMs);
  4204. }
  4205. getSetMillisecond = makeGetSet('Milliseconds', false);
  4206. // FORMATTING
  4207. addFormatToken('z', 0, 0, 'zoneAbbr');
  4208. addFormatToken('zz', 0, 0, 'zoneName');
  4209. // MOMENTS
  4210. function getZoneAbbr() {
  4211. return this._isUTC ? 'UTC' : '';
  4212. }
  4213. function getZoneName() {
  4214. return this._isUTC ? 'Coordinated Universal Time' : '';
  4215. }
  4216. var proto = Moment.prototype;
  4217. proto.add = add;
  4218. proto.calendar = calendar$1;
  4219. proto.clone = clone;
  4220. proto.diff = diff;
  4221. proto.endOf = endOf;
  4222. proto.format = format;
  4223. proto.from = from;
  4224. proto.fromNow = fromNow;
  4225. proto.to = to;
  4226. proto.toNow = toNow;
  4227. proto.get = stringGet;
  4228. proto.invalidAt = invalidAt;
  4229. proto.isAfter = isAfter;
  4230. proto.isBefore = isBefore;
  4231. proto.isBetween = isBetween;
  4232. proto.isSame = isSame;
  4233. proto.isSameOrAfter = isSameOrAfter;
  4234. proto.isSameOrBefore = isSameOrBefore;
  4235. proto.isValid = isValid$2;
  4236. proto.lang = lang;
  4237. proto.locale = locale;
  4238. proto.localeData = localeData;
  4239. proto.max = prototypeMax;
  4240. proto.min = prototypeMin;
  4241. proto.parsingFlags = parsingFlags;
  4242. proto.set = stringSet;
  4243. proto.startOf = startOf;
  4244. proto.subtract = subtract;
  4245. proto.toArray = toArray;
  4246. proto.toObject = toObject;
  4247. proto.toDate = toDate;
  4248. proto.toISOString = toISOString;
  4249. proto.inspect = inspect;
  4250. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  4251. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  4252. return 'Moment<' + this.format() + '>';
  4253. };
  4254. }
  4255. proto.toJSON = toJSON;
  4256. proto.toString = toString;
  4257. proto.unix = unix;
  4258. proto.valueOf = valueOf;
  4259. proto.creationData = creationData;
  4260. proto.eraName = getEraName;
  4261. proto.eraNarrow = getEraNarrow;
  4262. proto.eraAbbr = getEraAbbr;
  4263. proto.eraYear = getEraYear;
  4264. proto.year = getSetYear;
  4265. proto.isLeapYear = getIsLeapYear;
  4266. proto.weekYear = getSetWeekYear;
  4267. proto.isoWeekYear = getSetISOWeekYear;
  4268. proto.quarter = proto.quarters = getSetQuarter;
  4269. proto.month = getSetMonth;
  4270. proto.daysInMonth = getDaysInMonth;
  4271. proto.week = proto.weeks = getSetWeek;
  4272. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  4273. proto.weeksInYear = getWeeksInYear;
  4274. proto.weeksInWeekYear = getWeeksInWeekYear;
  4275. proto.isoWeeksInYear = getISOWeeksInYear;
  4276. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  4277. proto.date = getSetDayOfMonth;
  4278. proto.day = proto.days = getSetDayOfWeek;
  4279. proto.weekday = getSetLocaleDayOfWeek;
  4280. proto.isoWeekday = getSetISODayOfWeek;
  4281. proto.dayOfYear = getSetDayOfYear;
  4282. proto.hour = proto.hours = getSetHour;
  4283. proto.minute = proto.minutes = getSetMinute;
  4284. proto.second = proto.seconds = getSetSecond;
  4285. proto.millisecond = proto.milliseconds = getSetMillisecond;
  4286. proto.utcOffset = getSetOffset;
  4287. proto.utc = setOffsetToUTC;
  4288. proto.local = setOffsetToLocal;
  4289. proto.parseZone = setOffsetToParsedOffset;
  4290. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  4291. proto.isDST = isDaylightSavingTime;
  4292. proto.isLocal = isLocal;
  4293. proto.isUtcOffset = isUtcOffset;
  4294. proto.isUtc = isUtc;
  4295. proto.isUTC = isUtc;
  4296. proto.zoneAbbr = getZoneAbbr;
  4297. proto.zoneName = getZoneName;
  4298. proto.dates = deprecate(
  4299. 'dates accessor is deprecated. Use date instead.',
  4300. getSetDayOfMonth
  4301. );
  4302. proto.months = deprecate(
  4303. 'months accessor is deprecated. Use month instead',
  4304. getSetMonth
  4305. );
  4306. proto.years = deprecate(
  4307. 'years accessor is deprecated. Use year instead',
  4308. getSetYear
  4309. );
  4310. proto.zone = deprecate(
  4311. 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
  4312. getSetZone
  4313. );
  4314. proto.isDSTShifted = deprecate(
  4315. 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
  4316. isDaylightSavingTimeShifted
  4317. );
  4318. function createUnix(input) {
  4319. return createLocal(input * 1000);
  4320. }
  4321. function createInZone() {
  4322. return createLocal.apply(null, arguments).parseZone();
  4323. }
  4324. function preParsePostFormat(string) {
  4325. return string;
  4326. }
  4327. var proto$1 = Locale.prototype;
  4328. proto$1.calendar = calendar;
  4329. proto$1.longDateFormat = longDateFormat;
  4330. proto$1.invalidDate = invalidDate;
  4331. proto$1.ordinal = ordinal;
  4332. proto$1.preparse = preParsePostFormat;
  4333. proto$1.postformat = preParsePostFormat;
  4334. proto$1.relativeTime = relativeTime;
  4335. proto$1.pastFuture = pastFuture;
  4336. proto$1.set = set;
  4337. proto$1.eras = localeEras;
  4338. proto$1.erasParse = localeErasParse;
  4339. proto$1.erasConvertYear = localeErasConvertYear;
  4340. proto$1.erasAbbrRegex = erasAbbrRegex;
  4341. proto$1.erasNameRegex = erasNameRegex;
  4342. proto$1.erasNarrowRegex = erasNarrowRegex;
  4343. proto$1.months = localeMonths;
  4344. proto$1.monthsShort = localeMonthsShort;
  4345. proto$1.monthsParse = localeMonthsParse;
  4346. proto$1.monthsRegex = monthsRegex;
  4347. proto$1.monthsShortRegex = monthsShortRegex;
  4348. proto$1.week = localeWeek;
  4349. proto$1.firstDayOfYear = localeFirstDayOfYear;
  4350. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  4351. proto$1.weekdays = localeWeekdays;
  4352. proto$1.weekdaysMin = localeWeekdaysMin;
  4353. proto$1.weekdaysShort = localeWeekdaysShort;
  4354. proto$1.weekdaysParse = localeWeekdaysParse;
  4355. proto$1.weekdaysRegex = weekdaysRegex;
  4356. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  4357. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  4358. proto$1.isPM = localeIsPM;
  4359. proto$1.meridiem = localeMeridiem;
  4360. function get$1(format, index, field, setter) {
  4361. var locale = getLocale(),
  4362. utc = createUTC().set(setter, index);
  4363. return locale[field](utc, format);
  4364. }
  4365. function listMonthsImpl(format, index, field) {
  4366. if (isNumber(format)) {
  4367. index = format;
  4368. format = undefined;
  4369. }
  4370. format = format || '';
  4371. if (index != null) {
  4372. return get$1(format, index, field, 'month');
  4373. }
  4374. var i,
  4375. out = [];
  4376. for (i = 0; i < 12; i++) {
  4377. out[i] = get$1(format, i, field, 'month');
  4378. }
  4379. return out;
  4380. }
  4381. // ()
  4382. // (5)
  4383. // (fmt, 5)
  4384. // (fmt)
  4385. // (true)
  4386. // (true, 5)
  4387. // (true, fmt, 5)
  4388. // (true, fmt)
  4389. function listWeekdaysImpl(localeSorted, format, index, field) {
  4390. if (typeof localeSorted === 'boolean') {
  4391. if (isNumber(format)) {
  4392. index = format;
  4393. format = undefined;
  4394. }
  4395. format = format || '';
  4396. } else {
  4397. format = localeSorted;
  4398. index = format;
  4399. localeSorted = false;
  4400. if (isNumber(format)) {
  4401. index = format;
  4402. format = undefined;
  4403. }
  4404. format = format || '';
  4405. }
  4406. var locale = getLocale(),
  4407. shift = localeSorted ? locale._week.dow : 0,
  4408. i,
  4409. out = [];
  4410. if (index != null) {
  4411. return get$1(format, (index + shift) % 7, field, 'day');
  4412. }
  4413. for (i = 0; i < 7; i++) {
  4414. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  4415. }
  4416. return out;
  4417. }
  4418. function listMonths(format, index) {
  4419. return listMonthsImpl(format, index, 'months');
  4420. }
  4421. function listMonthsShort(format, index) {
  4422. return listMonthsImpl(format, index, 'monthsShort');
  4423. }
  4424. function listWeekdays(localeSorted, format, index) {
  4425. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  4426. }
  4427. function listWeekdaysShort(localeSorted, format, index) {
  4428. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  4429. }
  4430. function listWeekdaysMin(localeSorted, format, index) {
  4431. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  4432. }
  4433. getSetGlobalLocale('en', {
  4434. eras: [
  4435. {
  4436. since: '0001-01-01',
  4437. until: +Infinity,
  4438. offset: 1,
  4439. name: 'Anno Domini',
  4440. narrow: 'AD',
  4441. abbr: 'AD',
  4442. },
  4443. {
  4444. since: '0000-12-31',
  4445. until: -Infinity,
  4446. offset: 1,
  4447. name: 'Before Christ',
  4448. narrow: 'BC',
  4449. abbr: 'BC',
  4450. },
  4451. ],
  4452. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  4453. ordinal: function (number) {
  4454. var b = number % 10,
  4455. output =
  4456. toInt((number % 100) / 10) === 1
  4457. ? 'th'
  4458. : b === 1
  4459. ? 'st'
  4460. : b === 2
  4461. ? 'nd'
  4462. : b === 3
  4463. ? 'rd'
  4464. : 'th';
  4465. return number + output;
  4466. },
  4467. });
  4468. // Side effect imports
  4469. hooks.lang = deprecate(
  4470. 'moment.lang is deprecated. Use moment.locale instead.',
  4471. getSetGlobalLocale
  4472. );
  4473. hooks.langData = deprecate(
  4474. 'moment.langData is deprecated. Use moment.localeData instead.',
  4475. getLocale
  4476. );
  4477. var mathAbs = Math.abs;
  4478. function abs() {
  4479. var data = this._data;
  4480. this._milliseconds = mathAbs(this._milliseconds);
  4481. this._days = mathAbs(this._days);
  4482. this._months = mathAbs(this._months);
  4483. data.milliseconds = mathAbs(data.milliseconds);
  4484. data.seconds = mathAbs(data.seconds);
  4485. data.minutes = mathAbs(data.minutes);
  4486. data.hours = mathAbs(data.hours);
  4487. data.months = mathAbs(data.months);
  4488. data.years = mathAbs(data.years);
  4489. return this;
  4490. }
  4491. function addSubtract$1(duration, input, value, direction) {
  4492. var other = createDuration(input, value);
  4493. duration._milliseconds += direction * other._milliseconds;
  4494. duration._days += direction * other._days;
  4495. duration._months += direction * other._months;
  4496. return duration._bubble();
  4497. }
  4498. // supports only 2.0-style add(1, 's') or add(duration)
  4499. function add$1(input, value) {
  4500. return addSubtract$1(this, input, value, 1);
  4501. }
  4502. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  4503. function subtract$1(input, value) {
  4504. return addSubtract$1(this, input, value, -1);
  4505. }
  4506. function absCeil(number) {
  4507. if (number < 0) {
  4508. return Math.floor(number);
  4509. } else {
  4510. return Math.ceil(number);
  4511. }
  4512. }
  4513. function bubble() {
  4514. var milliseconds = this._milliseconds,
  4515. days = this._days,
  4516. months = this._months,
  4517. data = this._data,
  4518. seconds,
  4519. minutes,
  4520. hours,
  4521. years,
  4522. monthsFromDays;
  4523. // if we have a mix of positive and negative values, bubble down first
  4524. // check: https://github.com/moment/moment/issues/2166
  4525. if (
  4526. !(
  4527. (milliseconds >= 0 && days >= 0 && months >= 0) ||
  4528. (milliseconds <= 0 && days <= 0 && months <= 0)
  4529. )
  4530. ) {
  4531. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  4532. days = 0;
  4533. months = 0;
  4534. }
  4535. // The following code bubbles up values, see the tests for
  4536. // examples of what that means.
  4537. data.milliseconds = milliseconds % 1000;
  4538. seconds = absFloor(milliseconds / 1000);
  4539. data.seconds = seconds % 60;
  4540. minutes = absFloor(seconds / 60);
  4541. data.minutes = minutes % 60;
  4542. hours = absFloor(minutes / 60);
  4543. data.hours = hours % 24;
  4544. days += absFloor(hours / 24);
  4545. // convert days to months
  4546. monthsFromDays = absFloor(daysToMonths(days));
  4547. months += monthsFromDays;
  4548. days -= absCeil(monthsToDays(monthsFromDays));
  4549. // 12 months -> 1 year
  4550. years = absFloor(months / 12);
  4551. months %= 12;
  4552. data.days = days;
  4553. data.months = months;
  4554. data.years = years;
  4555. return this;
  4556. }
  4557. function daysToMonths(days) {
  4558. // 400 years have 146097 days (taking into account leap year rules)
  4559. // 400 years have 12 months === 4800
  4560. return (days * 4800) / 146097;
  4561. }
  4562. function monthsToDays(months) {
  4563. // the reverse of daysToMonths
  4564. return (months * 146097) / 4800;
  4565. }
  4566. function as(units) {
  4567. if (!this.isValid()) {
  4568. return NaN;
  4569. }
  4570. var days,
  4571. months,
  4572. milliseconds = this._milliseconds;
  4573. units = normalizeUnits(units);
  4574. if (units === 'month' || units === 'quarter' || units === 'year') {
  4575. days = this._days + milliseconds / 864e5;
  4576. months = this._months + daysToMonths(days);
  4577. switch (units) {
  4578. case 'month':
  4579. return months;
  4580. case 'quarter':
  4581. return months / 3;
  4582. case 'year':
  4583. return months / 12;
  4584. }
  4585. } else {
  4586. // handle milliseconds separately because of floating point math errors (issue #1867)
  4587. days = this._days + Math.round(monthsToDays(this._months));
  4588. switch (units) {
  4589. case 'week':
  4590. return days / 7 + milliseconds / 6048e5;
  4591. case 'day':
  4592. return days + milliseconds / 864e5;
  4593. case 'hour':
  4594. return days * 24 + milliseconds / 36e5;
  4595. case 'minute':
  4596. return days * 1440 + milliseconds / 6e4;
  4597. case 'second':
  4598. return days * 86400 + milliseconds / 1000;
  4599. // Math.floor prevents floating point math errors here
  4600. case 'millisecond':
  4601. return Math.floor(days * 864e5) + milliseconds;
  4602. default:
  4603. throw new Error('Unknown unit ' + units);
  4604. }
  4605. }
  4606. }
  4607. // TODO: Use this.as('ms')?
  4608. function valueOf$1() {
  4609. if (!this.isValid()) {
  4610. return NaN;
  4611. }
  4612. return (
  4613. this._milliseconds +
  4614. this._days * 864e5 +
  4615. (this._months % 12) * 2592e6 +
  4616. toInt(this._months / 12) * 31536e6
  4617. );
  4618. }
  4619. function makeAs(alias) {
  4620. return function () {
  4621. return this.as(alias);
  4622. };
  4623. }
  4624. var asMilliseconds = makeAs('ms'),
  4625. asSeconds = makeAs('s'),
  4626. asMinutes = makeAs('m'),
  4627. asHours = makeAs('h'),
  4628. asDays = makeAs('d'),
  4629. asWeeks = makeAs('w'),
  4630. asMonths = makeAs('M'),
  4631. asQuarters = makeAs('Q'),
  4632. asYears = makeAs('y');
  4633. function clone$1() {
  4634. return createDuration(this);
  4635. }
  4636. function get$2(units) {
  4637. units = normalizeUnits(units);
  4638. return this.isValid() ? this[units + 's']() : NaN;
  4639. }
  4640. function makeGetter(name) {
  4641. return function () {
  4642. return this.isValid() ? this._data[name] : NaN;
  4643. };
  4644. }
  4645. var milliseconds = makeGetter('milliseconds'),
  4646. seconds = makeGetter('seconds'),
  4647. minutes = makeGetter('minutes'),
  4648. hours = makeGetter('hours'),
  4649. days = makeGetter('days'),
  4650. months = makeGetter('months'),
  4651. years = makeGetter('years');
  4652. function weeks() {
  4653. return absFloor(this.days() / 7);
  4654. }
  4655. var round = Math.round,
  4656. thresholds = {
  4657. ss: 44, // a few seconds to seconds
  4658. s: 45, // seconds to minute
  4659. m: 45, // minutes to hour
  4660. h: 22, // hours to day
  4661. d: 26, // days to month/week
  4662. w: null, // weeks to month
  4663. M: 11, // months to year
  4664. };
  4665. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  4666. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  4667. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  4668. }
  4669. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  4670. var duration = createDuration(posNegDuration).abs(),
  4671. seconds = round(duration.as('s')),
  4672. minutes = round(duration.as('m')),
  4673. hours = round(duration.as('h')),
  4674. days = round(duration.as('d')),
  4675. months = round(duration.as('M')),
  4676. weeks = round(duration.as('w')),
  4677. years = round(duration.as('y')),
  4678. a =
  4679. (seconds <= thresholds.ss && ['s', seconds]) ||
  4680. (seconds < thresholds.s && ['ss', seconds]) ||
  4681. (minutes <= 1 && ['m']) ||
  4682. (minutes < thresholds.m && ['mm', minutes]) ||
  4683. (hours <= 1 && ['h']) ||
  4684. (hours < thresholds.h && ['hh', hours]) ||
  4685. (days <= 1 && ['d']) ||
  4686. (days < thresholds.d && ['dd', days]);
  4687. if (thresholds.w != null) {
  4688. a =
  4689. a ||
  4690. (weeks <= 1 && ['w']) ||
  4691. (weeks < thresholds.w && ['ww', weeks]);
  4692. }
  4693. a = a ||
  4694. (months <= 1 && ['M']) ||
  4695. (months < thresholds.M && ['MM', months]) ||
  4696. (years <= 1 && ['y']) || ['yy', years];
  4697. a[2] = withoutSuffix;
  4698. a[3] = +posNegDuration > 0;
  4699. a[4] = locale;
  4700. return substituteTimeAgo.apply(null, a);
  4701. }
  4702. // This function allows you to set the rounding function for relative time strings
  4703. function getSetRelativeTimeRounding(roundingFunction) {
  4704. if (roundingFunction === undefined) {
  4705. return round;
  4706. }
  4707. if (typeof roundingFunction === 'function') {
  4708. round = roundingFunction;
  4709. return true;
  4710. }
  4711. return false;
  4712. }
  4713. // This function allows you to set a threshold for relative time strings
  4714. function getSetRelativeTimeThreshold(threshold, limit) {
  4715. if (thresholds[threshold] === undefined) {
  4716. return false;
  4717. }
  4718. if (limit === undefined) {
  4719. return thresholds[threshold];
  4720. }
  4721. thresholds[threshold] = limit;
  4722. if (threshold === 's') {
  4723. thresholds.ss = limit - 1;
  4724. }
  4725. return true;
  4726. }
  4727. function humanize(argWithSuffix, argThresholds) {
  4728. if (!this.isValid()) {
  4729. return this.localeData().invalidDate();
  4730. }
  4731. var withSuffix = false,
  4732. th = thresholds,
  4733. locale,
  4734. output;
  4735. if (typeof argWithSuffix === 'object') {
  4736. argThresholds = argWithSuffix;
  4737. argWithSuffix = false;
  4738. }
  4739. if (typeof argWithSuffix === 'boolean') {
  4740. withSuffix = argWithSuffix;
  4741. }
  4742. if (typeof argThresholds === 'object') {
  4743. th = Object.assign({}, thresholds, argThresholds);
  4744. if (argThresholds.s != null && argThresholds.ss == null) {
  4745. th.ss = argThresholds.s - 1;
  4746. }
  4747. }
  4748. locale = this.localeData();
  4749. output = relativeTime$1(this, !withSuffix, th, locale);
  4750. if (withSuffix) {
  4751. output = locale.pastFuture(+this, output);
  4752. }
  4753. return locale.postformat(output);
  4754. }
  4755. var abs$1 = Math.abs;
  4756. function sign(x) {
  4757. return (x > 0) - (x < 0) || +x;
  4758. }
  4759. function toISOString$1() {
  4760. // for ISO strings we do not use the normal bubbling rules:
  4761. // * milliseconds bubble up until they become hours
  4762. // * days do not bubble at all
  4763. // * months bubble up until they become years
  4764. // This is because there is no context-free conversion between hours and days
  4765. // (think of clock changes)
  4766. // and also not between days and months (28-31 days per month)
  4767. if (!this.isValid()) {
  4768. return this.localeData().invalidDate();
  4769. }
  4770. var seconds = abs$1(this._milliseconds) / 1000,
  4771. days = abs$1(this._days),
  4772. months = abs$1(this._months),
  4773. minutes,
  4774. hours,
  4775. years,
  4776. s,
  4777. total = this.asSeconds(),
  4778. totalSign,
  4779. ymSign,
  4780. daysSign,
  4781. hmsSign;
  4782. if (!total) {
  4783. // this is the same as C#'s (Noda) and python (isodate)...
  4784. // but not other JS (goog.date)
  4785. return 'P0D';
  4786. }
  4787. // 3600 seconds -> 60 minutes -> 1 hour
  4788. minutes = absFloor(seconds / 60);
  4789. hours = absFloor(minutes / 60);
  4790. seconds %= 60;
  4791. minutes %= 60;
  4792. // 12 months -> 1 year
  4793. years = absFloor(months / 12);
  4794. months %= 12;
  4795. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  4796. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  4797. totalSign = total < 0 ? '-' : '';
  4798. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  4799. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  4800. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  4801. return (
  4802. totalSign +
  4803. 'P' +
  4804. (years ? ymSign + years + 'Y' : '') +
  4805. (months ? ymSign + months + 'M' : '') +
  4806. (days ? daysSign + days + 'D' : '') +
  4807. (hours || minutes || seconds ? 'T' : '') +
  4808. (hours ? hmsSign + hours + 'H' : '') +
  4809. (minutes ? hmsSign + minutes + 'M' : '') +
  4810. (seconds ? hmsSign + s + 'S' : '')
  4811. );
  4812. }
  4813. var proto$2 = Duration.prototype;
  4814. proto$2.isValid = isValid$1;
  4815. proto$2.abs = abs;
  4816. proto$2.add = add$1;
  4817. proto$2.subtract = subtract$1;
  4818. proto$2.as = as;
  4819. proto$2.asMilliseconds = asMilliseconds;
  4820. proto$2.asSeconds = asSeconds;
  4821. proto$2.asMinutes = asMinutes;
  4822. proto$2.asHours = asHours;
  4823. proto$2.asDays = asDays;
  4824. proto$2.asWeeks = asWeeks;
  4825. proto$2.asMonths = asMonths;
  4826. proto$2.asQuarters = asQuarters;
  4827. proto$2.asYears = asYears;
  4828. proto$2.valueOf = valueOf$1;
  4829. proto$2._bubble = bubble;
  4830. proto$2.clone = clone$1;
  4831. proto$2.get = get$2;
  4832. proto$2.milliseconds = milliseconds;
  4833. proto$2.seconds = seconds;
  4834. proto$2.minutes = minutes;
  4835. proto$2.hours = hours;
  4836. proto$2.days = days;
  4837. proto$2.weeks = weeks;
  4838. proto$2.months = months;
  4839. proto$2.years = years;
  4840. proto$2.humanize = humanize;
  4841. proto$2.toISOString = toISOString$1;
  4842. proto$2.toString = toISOString$1;
  4843. proto$2.toJSON = toISOString$1;
  4844. proto$2.locale = locale;
  4845. proto$2.localeData = localeData;
  4846. proto$2.toIsoString = deprecate(
  4847. 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
  4848. toISOString$1
  4849. );
  4850. proto$2.lang = lang;
  4851. // FORMATTING
  4852. addFormatToken('X', 0, 0, 'unix');
  4853. addFormatToken('x', 0, 0, 'valueOf');
  4854. // PARSING
  4855. addRegexToken('x', matchSigned);
  4856. addRegexToken('X', matchTimestamp);
  4857. addParseToken('X', function (input, array, config) {
  4858. config._d = new Date(parseFloat(input) * 1000);
  4859. });
  4860. addParseToken('x', function (input, array, config) {
  4861. config._d = new Date(toInt(input));
  4862. });
  4863. //! moment.js
  4864. hooks.version = '2.28.0';
  4865. setHookCallback(createLocal);
  4866. hooks.fn = proto;
  4867. hooks.min = min;
  4868. hooks.max = max;
  4869. hooks.now = now;
  4870. hooks.utc = createUTC;
  4871. hooks.unix = createUnix;
  4872. hooks.months = listMonths;
  4873. hooks.isDate = isDate;
  4874. hooks.locale = getSetGlobalLocale;
  4875. hooks.invalid = createInvalid;
  4876. hooks.duration = createDuration;
  4877. hooks.isMoment = isMoment;
  4878. hooks.weekdays = listWeekdays;
  4879. hooks.parseZone = createInZone;
  4880. hooks.localeData = getLocale;
  4881. hooks.isDuration = isDuration;
  4882. hooks.monthsShort = listMonthsShort;
  4883. hooks.weekdaysMin = listWeekdaysMin;
  4884. hooks.defineLocale = defineLocale;
  4885. hooks.updateLocale = updateLocale;
  4886. hooks.locales = listLocales;
  4887. hooks.weekdaysShort = listWeekdaysShort;
  4888. hooks.normalizeUnits = normalizeUnits;
  4889. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  4890. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  4891. hooks.calendarFormat = getCalendarFormat;
  4892. hooks.prototype = proto;
  4893. // currently HTML5 input type only supports 24-hour formats
  4894. hooks.HTML5_FMT = {
  4895. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  4896. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  4897. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  4898. DATE: 'YYYY-MM-DD', // <input type="date" />
  4899. TIME: 'HH:mm', // <input type="time" />
  4900. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  4901. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  4902. WEEK: 'GGGG-[W]WW', // <input type="week" />
  4903. MONTH: 'YYYY-MM', // <input type="month" />
  4904. };
  4905. //! moment.js locale configuration
  4906. hooks.defineLocale('af', {
  4907. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
  4908. '_'
  4909. ),
  4910. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  4911. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
  4912. '_'
  4913. ),
  4914. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  4915. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  4916. meridiemParse: /vm|nm/i,
  4917. isPM: function (input) {
  4918. return /^nm$/i.test(input);
  4919. },
  4920. meridiem: function (hours, minutes, isLower) {
  4921. if (hours < 12) {
  4922. return isLower ? 'vm' : 'VM';
  4923. } else {
  4924. return isLower ? 'nm' : 'NM';
  4925. }
  4926. },
  4927. longDateFormat: {
  4928. LT: 'HH:mm',
  4929. LTS: 'HH:mm:ss',
  4930. L: 'DD/MM/YYYY',
  4931. LL: 'D MMMM YYYY',
  4932. LLL: 'D MMMM YYYY HH:mm',
  4933. LLLL: 'dddd, D MMMM YYYY HH:mm',
  4934. },
  4935. calendar: {
  4936. sameDay: '[Vandag om] LT',
  4937. nextDay: '[Môre om] LT',
  4938. nextWeek: 'dddd [om] LT',
  4939. lastDay: '[Gister om] LT',
  4940. lastWeek: '[Laas] dddd [om] LT',
  4941. sameElse: 'L',
  4942. },
  4943. relativeTime: {
  4944. future: 'oor %s',
  4945. past: '%s gelede',
  4946. s: "'n paar sekondes",
  4947. ss: '%d sekondes',
  4948. m: "'n minuut",
  4949. mm: '%d minute',
  4950. h: "'n uur",
  4951. hh: '%d ure',
  4952. d: "'n dag",
  4953. dd: '%d dae',
  4954. M: "'n maand",
  4955. MM: '%d maande',
  4956. y: "'n jaar",
  4957. yy: '%d jaar',
  4958. },
  4959. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  4960. ordinal: function (number) {
  4961. return (
  4962. number +
  4963. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  4964. ); // Thanks to Joris Röling : https://github.com/jjupiter
  4965. },
  4966. week: {
  4967. dow: 1, // Maandag is die eerste dag van die week.
  4968. doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  4969. },
  4970. });
  4971. //! moment.js locale configuration
  4972. var pluralForm = function (n) {
  4973. return n === 0
  4974. ? 0
  4975. : n === 1
  4976. ? 1
  4977. : n === 2
  4978. ? 2
  4979. : n % 100 >= 3 && n % 100 <= 10
  4980. ? 3
  4981. : n % 100 >= 11
  4982. ? 4
  4983. : 5;
  4984. },
  4985. plurals = {
  4986. s: [
  4987. 'أقل من ثانية',
  4988. 'ثانية واحدة',
  4989. ['ثانيتان', 'ثانيتين'],
  4990. '%d ثوان',
  4991. '%d ثانية',
  4992. '%d ثانية',
  4993. ],
  4994. m: [
  4995. 'أقل من دقيقة',
  4996. 'دقيقة واحدة',
  4997. ['دقيقتان', 'دقيقتين'],
  4998. '%d دقائق',
  4999. '%d دقيقة',
  5000. '%d دقيقة',
  5001. ],
  5002. h: [
  5003. 'أقل من ساعة',
  5004. 'ساعة واحدة',
  5005. ['ساعتان', 'ساعتين'],
  5006. '%d ساعات',
  5007. '%d ساعة',
  5008. '%d ساعة',
  5009. ],
  5010. d: [
  5011. 'أقل من يوم',
  5012. 'يوم واحد',
  5013. ['يومان', 'يومين'],
  5014. '%d أيام',
  5015. '%d يومًا',
  5016. '%d يوم',
  5017. ],
  5018. M: [
  5019. 'أقل من شهر',
  5020. 'شهر واحد',
  5021. ['شهران', 'شهرين'],
  5022. '%d أشهر',
  5023. '%d شهرا',
  5024. '%d شهر',
  5025. ],
  5026. y: [
  5027. 'أقل من عام',
  5028. 'عام واحد',
  5029. ['عامان', 'عامين'],
  5030. '%d أعوام',
  5031. '%d عامًا',
  5032. '%d عام',
  5033. ],
  5034. },
  5035. pluralize = function (u) {
  5036. return function (number, withoutSuffix, string, isFuture) {
  5037. var f = pluralForm(number),
  5038. str = plurals[u][pluralForm(number)];
  5039. if (f === 2) {
  5040. str = str[withoutSuffix ? 0 : 1];
  5041. }
  5042. return str.replace(/%d/i, number);
  5043. };
  5044. },
  5045. months$1 = [
  5046. 'جانفي',
  5047. 'فيفري',
  5048. 'مارس',
  5049. 'أفريل',
  5050. 'ماي',
  5051. 'جوان',
  5052. 'جويلية',
  5053. 'أوت',
  5054. 'سبتمبر',
  5055. 'أكتوبر',
  5056. 'نوفمبر',
  5057. 'ديسمبر',
  5058. ];
  5059. hooks.defineLocale('ar-dz', {
  5060. months: months$1,
  5061. monthsShort: months$1,
  5062. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5063. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5064. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5065. weekdaysParseExact: true,
  5066. longDateFormat: {
  5067. LT: 'HH:mm',
  5068. LTS: 'HH:mm:ss',
  5069. L: 'D/\u200FM/\u200FYYYY',
  5070. LL: 'D MMMM YYYY',
  5071. LLL: 'D MMMM YYYY HH:mm',
  5072. LLLL: 'dddd D MMMM YYYY HH:mm',
  5073. },
  5074. meridiemParse: /ص|م/,
  5075. isPM: function (input) {
  5076. return 'م' === input;
  5077. },
  5078. meridiem: function (hour, minute, isLower) {
  5079. if (hour < 12) {
  5080. return 'ص';
  5081. } else {
  5082. return 'م';
  5083. }
  5084. },
  5085. calendar: {
  5086. sameDay: '[اليوم عند الساعة] LT',
  5087. nextDay: '[غدًا عند الساعة] LT',
  5088. nextWeek: 'dddd [عند الساعة] LT',
  5089. lastDay: '[أمس عند الساعة] LT',
  5090. lastWeek: 'dddd [عند الساعة] LT',
  5091. sameElse: 'L',
  5092. },
  5093. relativeTime: {
  5094. future: 'بعد %s',
  5095. past: 'منذ %s',
  5096. s: pluralize('s'),
  5097. ss: pluralize('s'),
  5098. m: pluralize('m'),
  5099. mm: pluralize('m'),
  5100. h: pluralize('h'),
  5101. hh: pluralize('h'),
  5102. d: pluralize('d'),
  5103. dd: pluralize('d'),
  5104. M: pluralize('M'),
  5105. MM: pluralize('M'),
  5106. y: pluralize('y'),
  5107. yy: pluralize('y'),
  5108. },
  5109. postformat: function (string) {
  5110. return string.replace(/,/g, '،');
  5111. },
  5112. week: {
  5113. dow: 0, // Sunday is the first day of the week.
  5114. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5115. },
  5116. });
  5117. //! moment.js locale configuration
  5118. hooks.defineLocale('ar-kw', {
  5119. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5120. '_'
  5121. ),
  5122. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5123. '_'
  5124. ),
  5125. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5126. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5127. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5128. weekdaysParseExact: true,
  5129. longDateFormat: {
  5130. LT: 'HH:mm',
  5131. LTS: 'HH:mm:ss',
  5132. L: 'DD/MM/YYYY',
  5133. LL: 'D MMMM YYYY',
  5134. LLL: 'D MMMM YYYY HH:mm',
  5135. LLLL: 'dddd D MMMM YYYY HH:mm',
  5136. },
  5137. calendar: {
  5138. sameDay: '[اليوم على الساعة] LT',
  5139. nextDay: '[غدا على الساعة] LT',
  5140. nextWeek: 'dddd [على الساعة] LT',
  5141. lastDay: '[أمس على الساعة] LT',
  5142. lastWeek: 'dddd [على الساعة] LT',
  5143. sameElse: 'L',
  5144. },
  5145. relativeTime: {
  5146. future: 'في %s',
  5147. past: 'منذ %s',
  5148. s: 'ثوان',
  5149. ss: '%d ثانية',
  5150. m: 'دقيقة',
  5151. mm: '%d دقائق',
  5152. h: 'ساعة',
  5153. hh: '%d ساعات',
  5154. d: 'يوم',
  5155. dd: '%d أيام',
  5156. M: 'شهر',
  5157. MM: '%d أشهر',
  5158. y: 'سنة',
  5159. yy: '%d سنوات',
  5160. },
  5161. week: {
  5162. dow: 0, // Sunday is the first day of the week.
  5163. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5164. },
  5165. });
  5166. //! moment.js locale configuration
  5167. var symbolMap = {
  5168. '1': '1',
  5169. '2': '2',
  5170. '3': '3',
  5171. '4': '4',
  5172. '5': '5',
  5173. '6': '6',
  5174. '7': '7',
  5175. '8': '8',
  5176. '9': '9',
  5177. '0': '0',
  5178. },
  5179. pluralForm$1 = function (n) {
  5180. return n === 0
  5181. ? 0
  5182. : n === 1
  5183. ? 1
  5184. : n === 2
  5185. ? 2
  5186. : n % 100 >= 3 && n % 100 <= 10
  5187. ? 3
  5188. : n % 100 >= 11
  5189. ? 4
  5190. : 5;
  5191. },
  5192. plurals$1 = {
  5193. s: [
  5194. 'أقل من ثانية',
  5195. 'ثانية واحدة',
  5196. ['ثانيتان', 'ثانيتين'],
  5197. '%d ثوان',
  5198. '%d ثانية',
  5199. '%d ثانية',
  5200. ],
  5201. m: [
  5202. 'أقل من دقيقة',
  5203. 'دقيقة واحدة',
  5204. ['دقيقتان', 'دقيقتين'],
  5205. '%d دقائق',
  5206. '%d دقيقة',
  5207. '%d دقيقة',
  5208. ],
  5209. h: [
  5210. 'أقل من ساعة',
  5211. 'ساعة واحدة',
  5212. ['ساعتان', 'ساعتين'],
  5213. '%d ساعات',
  5214. '%d ساعة',
  5215. '%d ساعة',
  5216. ],
  5217. d: [
  5218. 'أقل من يوم',
  5219. 'يوم واحد',
  5220. ['يومان', 'يومين'],
  5221. '%d أيام',
  5222. '%d يومًا',
  5223. '%d يوم',
  5224. ],
  5225. M: [
  5226. 'أقل من شهر',
  5227. 'شهر واحد',
  5228. ['شهران', 'شهرين'],
  5229. '%d أشهر',
  5230. '%d شهرا',
  5231. '%d شهر',
  5232. ],
  5233. y: [
  5234. 'أقل من عام',
  5235. 'عام واحد',
  5236. ['عامان', 'عامين'],
  5237. '%d أعوام',
  5238. '%d عامًا',
  5239. '%d عام',
  5240. ],
  5241. },
  5242. pluralize$1 = function (u) {
  5243. return function (number, withoutSuffix, string, isFuture) {
  5244. var f = pluralForm$1(number),
  5245. str = plurals$1[u][pluralForm$1(number)];
  5246. if (f === 2) {
  5247. str = str[withoutSuffix ? 0 : 1];
  5248. }
  5249. return str.replace(/%d/i, number);
  5250. };
  5251. },
  5252. months$2 = [
  5253. 'يناير',
  5254. 'فبراير',
  5255. 'مارس',
  5256. 'أبريل',
  5257. 'مايو',
  5258. 'يونيو',
  5259. 'يوليو',
  5260. 'أغسطس',
  5261. 'سبتمبر',
  5262. 'أكتوبر',
  5263. 'نوفمبر',
  5264. 'ديسمبر',
  5265. ];
  5266. hooks.defineLocale('ar-ly', {
  5267. months: months$2,
  5268. monthsShort: months$2,
  5269. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5270. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5271. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5272. weekdaysParseExact: true,
  5273. longDateFormat: {
  5274. LT: 'HH:mm',
  5275. LTS: 'HH:mm:ss',
  5276. L: 'D/\u200FM/\u200FYYYY',
  5277. LL: 'D MMMM YYYY',
  5278. LLL: 'D MMMM YYYY HH:mm',
  5279. LLLL: 'dddd D MMMM YYYY HH:mm',
  5280. },
  5281. meridiemParse: /ص|م/,
  5282. isPM: function (input) {
  5283. return 'م' === input;
  5284. },
  5285. meridiem: function (hour, minute, isLower) {
  5286. if (hour < 12) {
  5287. return 'ص';
  5288. } else {
  5289. return 'م';
  5290. }
  5291. },
  5292. calendar: {
  5293. sameDay: '[اليوم عند الساعة] LT',
  5294. nextDay: '[غدًا عند الساعة] LT',
  5295. nextWeek: 'dddd [عند الساعة] LT',
  5296. lastDay: '[أمس عند الساعة] LT',
  5297. lastWeek: 'dddd [عند الساعة] LT',
  5298. sameElse: 'L',
  5299. },
  5300. relativeTime: {
  5301. future: 'بعد %s',
  5302. past: 'منذ %s',
  5303. s: pluralize$1('s'),
  5304. ss: pluralize$1('s'),
  5305. m: pluralize$1('m'),
  5306. mm: pluralize$1('m'),
  5307. h: pluralize$1('h'),
  5308. hh: pluralize$1('h'),
  5309. d: pluralize$1('d'),
  5310. dd: pluralize$1('d'),
  5311. M: pluralize$1('M'),
  5312. MM: pluralize$1('M'),
  5313. y: pluralize$1('y'),
  5314. yy: pluralize$1('y'),
  5315. },
  5316. preparse: function (string) {
  5317. return string.replace(/،/g, ',');
  5318. },
  5319. postformat: function (string) {
  5320. return string
  5321. .replace(/\d/g, function (match) {
  5322. return symbolMap[match];
  5323. })
  5324. .replace(/,/g, '،');
  5325. },
  5326. week: {
  5327. dow: 6, // Saturday is the first day of the week.
  5328. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5329. },
  5330. });
  5331. //! moment.js locale configuration
  5332. hooks.defineLocale('ar-ma', {
  5333. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5334. '_'
  5335. ),
  5336. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5337. '_'
  5338. ),
  5339. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5340. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5341. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5342. weekdaysParseExact: true,
  5343. longDateFormat: {
  5344. LT: 'HH:mm',
  5345. LTS: 'HH:mm:ss',
  5346. L: 'DD/MM/YYYY',
  5347. LL: 'D MMMM YYYY',
  5348. LLL: 'D MMMM YYYY HH:mm',
  5349. LLLL: 'dddd D MMMM YYYY HH:mm',
  5350. },
  5351. calendar: {
  5352. sameDay: '[اليوم على الساعة] LT',
  5353. nextDay: '[غدا على الساعة] LT',
  5354. nextWeek: 'dddd [على الساعة] LT',
  5355. lastDay: '[أمس على الساعة] LT',
  5356. lastWeek: 'dddd [على الساعة] LT',
  5357. sameElse: 'L',
  5358. },
  5359. relativeTime: {
  5360. future: 'في %s',
  5361. past: 'منذ %s',
  5362. s: 'ثوان',
  5363. ss: '%d ثانية',
  5364. m: 'دقيقة',
  5365. mm: '%d دقائق',
  5366. h: 'ساعة',
  5367. hh: '%d ساعات',
  5368. d: 'يوم',
  5369. dd: '%d أيام',
  5370. M: 'شهر',
  5371. MM: '%d أشهر',
  5372. y: 'سنة',
  5373. yy: '%d سنوات',
  5374. },
  5375. week: {
  5376. dow: 6, // Saturday is the first day of the week.
  5377. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5378. },
  5379. });
  5380. //! moment.js locale configuration
  5381. var symbolMap$1 = {
  5382. '1': '١',
  5383. '2': '٢',
  5384. '3': '٣',
  5385. '4': '٤',
  5386. '5': '٥',
  5387. '6': '٦',
  5388. '7': '٧',
  5389. '8': '٨',
  5390. '9': '٩',
  5391. '0': '٠',
  5392. },
  5393. numberMap = {
  5394. '١': '1',
  5395. '٢': '2',
  5396. '٣': '3',
  5397. '٤': '4',
  5398. '٥': '5',
  5399. '٦': '6',
  5400. '٧': '7',
  5401. '٨': '8',
  5402. '٩': '9',
  5403. '٠': '0',
  5404. };
  5405. hooks.defineLocale('ar-sa', {
  5406. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5407. '_'
  5408. ),
  5409. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5410. '_'
  5411. ),
  5412. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5413. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5414. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5415. weekdaysParseExact: true,
  5416. longDateFormat: {
  5417. LT: 'HH:mm',
  5418. LTS: 'HH:mm:ss',
  5419. L: 'DD/MM/YYYY',
  5420. LL: 'D MMMM YYYY',
  5421. LLL: 'D MMMM YYYY HH:mm',
  5422. LLLL: 'dddd D MMMM YYYY HH:mm',
  5423. },
  5424. meridiemParse: /ص|م/,
  5425. isPM: function (input) {
  5426. return 'م' === input;
  5427. },
  5428. meridiem: function (hour, minute, isLower) {
  5429. if (hour < 12) {
  5430. return 'ص';
  5431. } else {
  5432. return 'م';
  5433. }
  5434. },
  5435. calendar: {
  5436. sameDay: '[اليوم على الساعة] LT',
  5437. nextDay: '[غدا على الساعة] LT',
  5438. nextWeek: 'dddd [على الساعة] LT',
  5439. lastDay: '[أمس على الساعة] LT',
  5440. lastWeek: 'dddd [على الساعة] LT',
  5441. sameElse: 'L',
  5442. },
  5443. relativeTime: {
  5444. future: 'في %s',
  5445. past: 'منذ %s',
  5446. s: 'ثوان',
  5447. ss: '%d ثانية',
  5448. m: 'دقيقة',
  5449. mm: '%d دقائق',
  5450. h: 'ساعة',
  5451. hh: '%d ساعات',
  5452. d: 'يوم',
  5453. dd: '%d أيام',
  5454. M: 'شهر',
  5455. MM: '%d أشهر',
  5456. y: 'سنة',
  5457. yy: '%d سنوات',
  5458. },
  5459. preparse: function (string) {
  5460. return string
  5461. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5462. return numberMap[match];
  5463. })
  5464. .replace(/،/g, ',');
  5465. },
  5466. postformat: function (string) {
  5467. return string
  5468. .replace(/\d/g, function (match) {
  5469. return symbolMap$1[match];
  5470. })
  5471. .replace(/,/g, '،');
  5472. },
  5473. week: {
  5474. dow: 0, // Sunday is the first day of the week.
  5475. doy: 6, // The week that contains Jan 6th is the first week of the year.
  5476. },
  5477. });
  5478. //! moment.js locale configuration
  5479. hooks.defineLocale('ar-tn', {
  5480. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5481. '_'
  5482. ),
  5483. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5484. '_'
  5485. ),
  5486. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5487. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5488. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5489. weekdaysParseExact: true,
  5490. longDateFormat: {
  5491. LT: 'HH:mm',
  5492. LTS: 'HH:mm:ss',
  5493. L: 'DD/MM/YYYY',
  5494. LL: 'D MMMM YYYY',
  5495. LLL: 'D MMMM YYYY HH:mm',
  5496. LLLL: 'dddd D MMMM YYYY HH:mm',
  5497. },
  5498. calendar: {
  5499. sameDay: '[اليوم على الساعة] LT',
  5500. nextDay: '[غدا على الساعة] LT',
  5501. nextWeek: 'dddd [على الساعة] LT',
  5502. lastDay: '[أمس على الساعة] LT',
  5503. lastWeek: 'dddd [على الساعة] LT',
  5504. sameElse: 'L',
  5505. },
  5506. relativeTime: {
  5507. future: 'في %s',
  5508. past: 'منذ %s',
  5509. s: 'ثوان',
  5510. ss: '%d ثانية',
  5511. m: 'دقيقة',
  5512. mm: '%d دقائق',
  5513. h: 'ساعة',
  5514. hh: '%d ساعات',
  5515. d: 'يوم',
  5516. dd: '%d أيام',
  5517. M: 'شهر',
  5518. MM: '%d أشهر',
  5519. y: 'سنة',
  5520. yy: '%d سنوات',
  5521. },
  5522. week: {
  5523. dow: 1, // Monday is the first day of the week.
  5524. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5525. },
  5526. });
  5527. //! moment.js locale configuration
  5528. var symbolMap$2 = {
  5529. '1': '١',
  5530. '2': '٢',
  5531. '3': '٣',
  5532. '4': '٤',
  5533. '5': '٥',
  5534. '6': '٦',
  5535. '7': '٧',
  5536. '8': '٨',
  5537. '9': '٩',
  5538. '0': '٠',
  5539. },
  5540. numberMap$1 = {
  5541. '١': '1',
  5542. '٢': '2',
  5543. '٣': '3',
  5544. '٤': '4',
  5545. '٥': '5',
  5546. '٦': '6',
  5547. '٧': '7',
  5548. '٨': '8',
  5549. '٩': '9',
  5550. '٠': '0',
  5551. },
  5552. pluralForm$2 = function (n) {
  5553. return n === 0
  5554. ? 0
  5555. : n === 1
  5556. ? 1
  5557. : n === 2
  5558. ? 2
  5559. : n % 100 >= 3 && n % 100 <= 10
  5560. ? 3
  5561. : n % 100 >= 11
  5562. ? 4
  5563. : 5;
  5564. },
  5565. plurals$2 = {
  5566. s: [
  5567. 'أقل من ثانية',
  5568. 'ثانية واحدة',
  5569. ['ثانيتان', 'ثانيتين'],
  5570. '%d ثوان',
  5571. '%d ثانية',
  5572. '%d ثانية',
  5573. ],
  5574. m: [
  5575. 'أقل من دقيقة',
  5576. 'دقيقة واحدة',
  5577. ['دقيقتان', 'دقيقتين'],
  5578. '%d دقائق',
  5579. '%d دقيقة',
  5580. '%d دقيقة',
  5581. ],
  5582. h: [
  5583. 'أقل من ساعة',
  5584. 'ساعة واحدة',
  5585. ['ساعتان', 'ساعتين'],
  5586. '%d ساعات',
  5587. '%d ساعة',
  5588. '%d ساعة',
  5589. ],
  5590. d: [
  5591. 'أقل من يوم',
  5592. 'يوم واحد',
  5593. ['يومان', 'يومين'],
  5594. '%d أيام',
  5595. '%d يومًا',
  5596. '%d يوم',
  5597. ],
  5598. M: [
  5599. 'أقل من شهر',
  5600. 'شهر واحد',
  5601. ['شهران', 'شهرين'],
  5602. '%d أشهر',
  5603. '%d شهرا',
  5604. '%d شهر',
  5605. ],
  5606. y: [
  5607. 'أقل من عام',
  5608. 'عام واحد',
  5609. ['عامان', 'عامين'],
  5610. '%d أعوام',
  5611. '%d عامًا',
  5612. '%d عام',
  5613. ],
  5614. },
  5615. pluralize$2 = function (u) {
  5616. return function (number, withoutSuffix, string, isFuture) {
  5617. var f = pluralForm$2(number),
  5618. str = plurals$2[u][pluralForm$2(number)];
  5619. if (f === 2) {
  5620. str = str[withoutSuffix ? 0 : 1];
  5621. }
  5622. return str.replace(/%d/i, number);
  5623. };
  5624. },
  5625. months$3 = [
  5626. 'يناير',
  5627. 'فبراير',
  5628. 'مارس',
  5629. 'أبريل',
  5630. 'مايو',
  5631. 'يونيو',
  5632. 'يوليو',
  5633. 'أغسطس',
  5634. 'سبتمبر',
  5635. 'أكتوبر',
  5636. 'نوفمبر',
  5637. 'ديسمبر',
  5638. ];
  5639. hooks.defineLocale('ar', {
  5640. months: months$3,
  5641. monthsShort: months$3,
  5642. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5643. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5644. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5645. weekdaysParseExact: true,
  5646. longDateFormat: {
  5647. LT: 'HH:mm',
  5648. LTS: 'HH:mm:ss',
  5649. L: 'D/\u200FM/\u200FYYYY',
  5650. LL: 'D MMMM YYYY',
  5651. LLL: 'D MMMM YYYY HH:mm',
  5652. LLLL: 'dddd D MMMM YYYY HH:mm',
  5653. },
  5654. meridiemParse: /ص|م/,
  5655. isPM: function (input) {
  5656. return 'م' === input;
  5657. },
  5658. meridiem: function (hour, minute, isLower) {
  5659. if (hour < 12) {
  5660. return 'ص';
  5661. } else {
  5662. return 'م';
  5663. }
  5664. },
  5665. calendar: {
  5666. sameDay: '[اليوم عند الساعة] LT',
  5667. nextDay: '[غدًا عند الساعة] LT',
  5668. nextWeek: 'dddd [عند الساعة] LT',
  5669. lastDay: '[أمس عند الساعة] LT',
  5670. lastWeek: 'dddd [عند الساعة] LT',
  5671. sameElse: 'L',
  5672. },
  5673. relativeTime: {
  5674. future: 'بعد %s',
  5675. past: 'منذ %s',
  5676. s: pluralize$2('s'),
  5677. ss: pluralize$2('s'),
  5678. m: pluralize$2('m'),
  5679. mm: pluralize$2('m'),
  5680. h: pluralize$2('h'),
  5681. hh: pluralize$2('h'),
  5682. d: pluralize$2('d'),
  5683. dd: pluralize$2('d'),
  5684. M: pluralize$2('M'),
  5685. MM: pluralize$2('M'),
  5686. y: pluralize$2('y'),
  5687. yy: pluralize$2('y'),
  5688. },
  5689. preparse: function (string) {
  5690. return string
  5691. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5692. return numberMap$1[match];
  5693. })
  5694. .replace(/،/g, ',');
  5695. },
  5696. postformat: function (string) {
  5697. return string
  5698. .replace(/\d/g, function (match) {
  5699. return symbolMap$2[match];
  5700. })
  5701. .replace(/,/g, '،');
  5702. },
  5703. week: {
  5704. dow: 6, // Saturday is the first day of the week.
  5705. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5706. },
  5707. });
  5708. //! moment.js locale configuration
  5709. var suffixes = {
  5710. 1: '-inci',
  5711. 5: '-inci',
  5712. 8: '-inci',
  5713. 70: '-inci',
  5714. 80: '-inci',
  5715. 2: '-nci',
  5716. 7: '-nci',
  5717. 20: '-nci',
  5718. 50: '-nci',
  5719. 3: '-üncü',
  5720. 4: '-üncü',
  5721. 100: '-üncü',
  5722. 6: '-ncı',
  5723. 9: '-uncu',
  5724. 10: '-uncu',
  5725. 30: '-uncu',
  5726. 60: '-ıncı',
  5727. 90: '-ıncı',
  5728. };
  5729. hooks.defineLocale('az', {
  5730. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
  5731. '_'
  5732. ),
  5733. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  5734. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
  5735. '_'
  5736. ),
  5737. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  5738. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  5739. weekdaysParseExact: true,
  5740. longDateFormat: {
  5741. LT: 'HH:mm',
  5742. LTS: 'HH:mm:ss',
  5743. L: 'DD.MM.YYYY',
  5744. LL: 'D MMMM YYYY',
  5745. LLL: 'D MMMM YYYY HH:mm',
  5746. LLLL: 'dddd, D MMMM YYYY HH:mm',
  5747. },
  5748. calendar: {
  5749. sameDay: '[bugün saat] LT',
  5750. nextDay: '[sabah saat] LT',
  5751. nextWeek: '[gələn həftə] dddd [saat] LT',
  5752. lastDay: '[dünən] LT',
  5753. lastWeek: '[keçən həftə] dddd [saat] LT',
  5754. sameElse: 'L',
  5755. },
  5756. relativeTime: {
  5757. future: '%s sonra',
  5758. past: '%s əvvəl',
  5759. s: 'bir neçə saniyə',
  5760. ss: '%d saniyə',
  5761. m: 'bir dəqiqə',
  5762. mm: '%d dəqiqə',
  5763. h: 'bir saat',
  5764. hh: '%d saat',
  5765. d: 'bir gün',
  5766. dd: '%d gün',
  5767. M: 'bir ay',
  5768. MM: '%d ay',
  5769. y: 'bir il',
  5770. yy: '%d il',
  5771. },
  5772. meridiemParse: /gecə|səhər|gündüz|axşam/,
  5773. isPM: function (input) {
  5774. return /^(gündüz|axşam)$/.test(input);
  5775. },
  5776. meridiem: function (hour, minute, isLower) {
  5777. if (hour < 4) {
  5778. return 'gecə';
  5779. } else if (hour < 12) {
  5780. return 'səhər';
  5781. } else if (hour < 17) {
  5782. return 'gündüz';
  5783. } else {
  5784. return 'axşam';
  5785. }
  5786. },
  5787. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  5788. ordinal: function (number) {
  5789. if (number === 0) {
  5790. // special case for zero
  5791. return number + '-ıncı';
  5792. }
  5793. var a = number % 10,
  5794. b = (number % 100) - a,
  5795. c = number >= 100 ? 100 : null;
  5796. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  5797. },
  5798. week: {
  5799. dow: 1, // Monday is the first day of the week.
  5800. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5801. },
  5802. });
  5803. //! moment.js locale configuration
  5804. function plural(word, num) {
  5805. var forms = word.split('_');
  5806. return num % 10 === 1 && num % 100 !== 11
  5807. ? forms[0]
  5808. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  5809. ? forms[1]
  5810. : forms[2];
  5811. }
  5812. function relativeTimeWithPlural(number, withoutSuffix, key) {
  5813. var format = {
  5814. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  5815. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  5816. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  5817. dd: 'дзень_дні_дзён',
  5818. MM: 'месяц_месяцы_месяцаў',
  5819. yy: 'год_гады_гадоў',
  5820. };
  5821. if (key === 'm') {
  5822. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  5823. } else if (key === 'h') {
  5824. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  5825. } else {
  5826. return number + ' ' + plural(format[key], +number);
  5827. }
  5828. }
  5829. hooks.defineLocale('be', {
  5830. months: {
  5831. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
  5832. '_'
  5833. ),
  5834. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
  5835. '_'
  5836. ),
  5837. },
  5838. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
  5839. '_'
  5840. ),
  5841. weekdays: {
  5842. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
  5843. '_'
  5844. ),
  5845. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
  5846. '_'
  5847. ),
  5848. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
  5849. },
  5850. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5851. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5852. longDateFormat: {
  5853. LT: 'HH:mm',
  5854. LTS: 'HH:mm:ss',
  5855. L: 'DD.MM.YYYY',
  5856. LL: 'D MMMM YYYY г.',
  5857. LLL: 'D MMMM YYYY г., HH:mm',
  5858. LLLL: 'dddd, D MMMM YYYY г., HH:mm',
  5859. },
  5860. calendar: {
  5861. sameDay: '[Сёння ў] LT',
  5862. nextDay: '[Заўтра ў] LT',
  5863. lastDay: '[Учора ў] LT',
  5864. nextWeek: function () {
  5865. return '[У] dddd [ў] LT';
  5866. },
  5867. lastWeek: function () {
  5868. switch (this.day()) {
  5869. case 0:
  5870. case 3:
  5871. case 5:
  5872. case 6:
  5873. return '[У мінулую] dddd [ў] LT';
  5874. case 1:
  5875. case 2:
  5876. case 4:
  5877. return '[У мінулы] dddd [ў] LT';
  5878. }
  5879. },
  5880. sameElse: 'L',
  5881. },
  5882. relativeTime: {
  5883. future: 'праз %s',
  5884. past: '%s таму',
  5885. s: 'некалькі секунд',
  5886. m: relativeTimeWithPlural,
  5887. mm: relativeTimeWithPlural,
  5888. h: relativeTimeWithPlural,
  5889. hh: relativeTimeWithPlural,
  5890. d: 'дзень',
  5891. dd: relativeTimeWithPlural,
  5892. M: 'месяц',
  5893. MM: relativeTimeWithPlural,
  5894. y: 'год',
  5895. yy: relativeTimeWithPlural,
  5896. },
  5897. meridiemParse: /ночы|раніцы|дня|вечара/,
  5898. isPM: function (input) {
  5899. return /^(дня|вечара)$/.test(input);
  5900. },
  5901. meridiem: function (hour, minute, isLower) {
  5902. if (hour < 4) {
  5903. return 'ночы';
  5904. } else if (hour < 12) {
  5905. return 'раніцы';
  5906. } else if (hour < 17) {
  5907. return 'дня';
  5908. } else {
  5909. return 'вечара';
  5910. }
  5911. },
  5912. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  5913. ordinal: function (number, period) {
  5914. switch (period) {
  5915. case 'M':
  5916. case 'd':
  5917. case 'DDD':
  5918. case 'w':
  5919. case 'W':
  5920. return (number % 10 === 2 || number % 10 === 3) &&
  5921. number % 100 !== 12 &&
  5922. number % 100 !== 13
  5923. ? number + '-і'
  5924. : number + '-ы';
  5925. case 'D':
  5926. return number + '-га';
  5927. default:
  5928. return number;
  5929. }
  5930. },
  5931. week: {
  5932. dow: 1, // Monday is the first day of the week.
  5933. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5934. },
  5935. });
  5936. //! moment.js locale configuration
  5937. hooks.defineLocale('bg', {
  5938. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
  5939. '_'
  5940. ),
  5941. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  5942. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
  5943. '_'
  5944. ),
  5945. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  5946. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  5947. longDateFormat: {
  5948. LT: 'H:mm',
  5949. LTS: 'H:mm:ss',
  5950. L: 'D.MM.YYYY',
  5951. LL: 'D MMMM YYYY',
  5952. LLL: 'D MMMM YYYY H:mm',
  5953. LLLL: 'dddd, D MMMM YYYY H:mm',
  5954. },
  5955. calendar: {
  5956. sameDay: '[Днес в] LT',
  5957. nextDay: '[Утре в] LT',
  5958. nextWeek: 'dddd [в] LT',
  5959. lastDay: '[Вчера в] LT',
  5960. lastWeek: function () {
  5961. switch (this.day()) {
  5962. case 0:
  5963. case 3:
  5964. case 6:
  5965. return '[Миналата] dddd [в] LT';
  5966. case 1:
  5967. case 2:
  5968. case 4:
  5969. case 5:
  5970. return '[Миналия] dddd [в] LT';
  5971. }
  5972. },
  5973. sameElse: 'L',
  5974. },
  5975. relativeTime: {
  5976. future: 'след %s',
  5977. past: 'преди %s',
  5978. s: 'няколко секунди',
  5979. ss: '%d секунди',
  5980. m: 'минута',
  5981. mm: '%d минути',
  5982. h: 'час',
  5983. hh: '%d часа',
  5984. d: 'ден',
  5985. dd: '%d дена',
  5986. M: 'месец',
  5987. MM: '%d месеца',
  5988. y: 'година',
  5989. yy: '%d години',
  5990. },
  5991. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  5992. ordinal: function (number) {
  5993. var lastDigit = number % 10,
  5994. last2Digits = number % 100;
  5995. if (number === 0) {
  5996. return number + '-ев';
  5997. } else if (last2Digits === 0) {
  5998. return number + '-ен';
  5999. } else if (last2Digits > 10 && last2Digits < 20) {
  6000. return number + '-ти';
  6001. } else if (lastDigit === 1) {
  6002. return number + '-ви';
  6003. } else if (lastDigit === 2) {
  6004. return number + '-ри';
  6005. } else if (lastDigit === 7 || lastDigit === 8) {
  6006. return number + '-ми';
  6007. } else {
  6008. return number + '-ти';
  6009. }
  6010. },
  6011. week: {
  6012. dow: 1, // Monday is the first day of the week.
  6013. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6014. },
  6015. });
  6016. //! moment.js locale configuration
  6017. hooks.defineLocale('bm', {
  6018. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
  6019. '_'
  6020. ),
  6021. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  6022. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  6023. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  6024. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  6025. longDateFormat: {
  6026. LT: 'HH:mm',
  6027. LTS: 'HH:mm:ss',
  6028. L: 'DD/MM/YYYY',
  6029. LL: 'MMMM [tile] D [san] YYYY',
  6030. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6031. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6032. },
  6033. calendar: {
  6034. sameDay: '[Bi lɛrɛ] LT',
  6035. nextDay: '[Sini lɛrɛ] LT',
  6036. nextWeek: 'dddd [don lɛrɛ] LT',
  6037. lastDay: '[Kunu lɛrɛ] LT',
  6038. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  6039. sameElse: 'L',
  6040. },
  6041. relativeTime: {
  6042. future: '%s kɔnɔ',
  6043. past: 'a bɛ %s bɔ',
  6044. s: 'sanga dama dama',
  6045. ss: 'sekondi %d',
  6046. m: 'miniti kelen',
  6047. mm: 'miniti %d',
  6048. h: 'lɛrɛ kelen',
  6049. hh: 'lɛrɛ %d',
  6050. d: 'tile kelen',
  6051. dd: 'tile %d',
  6052. M: 'kalo kelen',
  6053. MM: 'kalo %d',
  6054. y: 'san kelen',
  6055. yy: 'san %d',
  6056. },
  6057. week: {
  6058. dow: 1, // Monday is the first day of the week.
  6059. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6060. },
  6061. });
  6062. //! moment.js locale configuration
  6063. var symbolMap$3 = {
  6064. '1': '১',
  6065. '2': '২',
  6066. '3': '৩',
  6067. '4': '৪',
  6068. '5': '৫',
  6069. '6': '৬',
  6070. '7': '৭',
  6071. '8': '৮',
  6072. '9': '৯',
  6073. '0': '০',
  6074. },
  6075. numberMap$2 = {
  6076. '১': '1',
  6077. '২': '2',
  6078. '৩': '3',
  6079. '৪': '4',
  6080. '৫': '5',
  6081. '৬': '6',
  6082. '৭': '7',
  6083. '৮': '8',
  6084. '৯': '9',
  6085. '০': '0',
  6086. };
  6087. hooks.defineLocale('bn', {
  6088. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6089. '_'
  6090. ),
  6091. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6092. '_'
  6093. ),
  6094. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6095. '_'
  6096. ),
  6097. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6098. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6099. longDateFormat: {
  6100. LT: 'A h:mm সময়',
  6101. LTS: 'A h:mm:ss সময়',
  6102. L: 'DD/MM/YYYY',
  6103. LL: 'D MMMM YYYY',
  6104. LLL: 'D MMMM YYYY, A h:mm সময়',
  6105. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6106. },
  6107. calendar: {
  6108. sameDay: '[আজ] LT',
  6109. nextDay: '[আগামীকাল] LT',
  6110. nextWeek: 'dddd, LT',
  6111. lastDay: '[গতকাল] LT',
  6112. lastWeek: '[গত] dddd, LT',
  6113. sameElse: 'L',
  6114. },
  6115. relativeTime: {
  6116. future: '%s পরে',
  6117. past: '%s আগে',
  6118. s: 'কয়েক সেকেন্ড',
  6119. ss: '%d সেকেন্ড',
  6120. m: 'এক মিনিট',
  6121. mm: '%d মিনিট',
  6122. h: 'এক ঘন্টা',
  6123. hh: '%d ঘন্টা',
  6124. d: 'এক দিন',
  6125. dd: '%d দিন',
  6126. M: 'এক মাস',
  6127. MM: '%d মাস',
  6128. y: 'এক বছর',
  6129. yy: '%d বছর',
  6130. },
  6131. preparse: function (string) {
  6132. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6133. return numberMap$2[match];
  6134. });
  6135. },
  6136. postformat: function (string) {
  6137. return string.replace(/\d/g, function (match) {
  6138. return symbolMap$3[match];
  6139. });
  6140. },
  6141. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  6142. meridiemHour: function (hour, meridiem) {
  6143. if (hour === 12) {
  6144. hour = 0;
  6145. }
  6146. if (
  6147. (meridiem === 'রাত' && hour >= 4) ||
  6148. (meridiem === 'দুপুর' && hour < 5) ||
  6149. meridiem === 'বিকাল'
  6150. ) {
  6151. return hour + 12;
  6152. } else {
  6153. return hour;
  6154. }
  6155. },
  6156. meridiem: function (hour, minute, isLower) {
  6157. if (hour < 4) {
  6158. return 'রাত';
  6159. } else if (hour < 10) {
  6160. return 'সকাল';
  6161. } else if (hour < 17) {
  6162. return 'দুপুর';
  6163. } else if (hour < 20) {
  6164. return 'বিকাল';
  6165. } else {
  6166. return 'রাত';
  6167. }
  6168. },
  6169. week: {
  6170. dow: 0, // Sunday is the first day of the week.
  6171. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6172. },
  6173. });
  6174. //! moment.js locale configuration
  6175. var symbolMap$4 = {
  6176. '1': '༡',
  6177. '2': '༢',
  6178. '3': '༣',
  6179. '4': '༤',
  6180. '5': '༥',
  6181. '6': '༦',
  6182. '7': '༧',
  6183. '8': '༨',
  6184. '9': '༩',
  6185. '0': '༠',
  6186. },
  6187. numberMap$3 = {
  6188. '༡': '1',
  6189. '༢': '2',
  6190. '༣': '3',
  6191. '༤': '4',
  6192. '༥': '5',
  6193. '༦': '6',
  6194. '༧': '7',
  6195. '༨': '8',
  6196. '༩': '9',
  6197. '༠': '0',
  6198. };
  6199. hooks.defineLocale('bo', {
  6200. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  6201. '_'
  6202. ),
  6203. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  6204. '_'
  6205. ),
  6206. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  6207. monthsParseExact: true,
  6208. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  6209. '_'
  6210. ),
  6211. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  6212. '_'
  6213. ),
  6214. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  6215. longDateFormat: {
  6216. LT: 'A h:mm',
  6217. LTS: 'A h:mm:ss',
  6218. L: 'DD/MM/YYYY',
  6219. LL: 'D MMMM YYYY',
  6220. LLL: 'D MMMM YYYY, A h:mm',
  6221. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  6222. },
  6223. calendar: {
  6224. sameDay: '[དི་རིང] LT',
  6225. nextDay: '[སང་ཉིན] LT',
  6226. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  6227. lastDay: '[ཁ་སང] LT',
  6228. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  6229. sameElse: 'L',
  6230. },
  6231. relativeTime: {
  6232. future: '%s ལ་',
  6233. past: '%s སྔན་ལ',
  6234. s: 'ལམ་སང',
  6235. ss: '%d སྐར་ཆ།',
  6236. m: 'སྐར་མ་གཅིག',
  6237. mm: '%d སྐར་མ',
  6238. h: 'ཆུ་ཚོད་གཅིག',
  6239. hh: '%d ཆུ་ཚོད',
  6240. d: 'ཉིན་གཅིག',
  6241. dd: '%d ཉིན་',
  6242. M: 'ཟླ་བ་གཅིག',
  6243. MM: '%d ཟླ་བ',
  6244. y: 'ལོ་གཅིག',
  6245. yy: '%d ལོ',
  6246. },
  6247. preparse: function (string) {
  6248. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  6249. return numberMap$3[match];
  6250. });
  6251. },
  6252. postformat: function (string) {
  6253. return string.replace(/\d/g, function (match) {
  6254. return symbolMap$4[match];
  6255. });
  6256. },
  6257. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  6258. meridiemHour: function (hour, meridiem) {
  6259. if (hour === 12) {
  6260. hour = 0;
  6261. }
  6262. if (
  6263. (meridiem === 'མཚན་མོ' && hour >= 4) ||
  6264. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  6265. meridiem === 'དགོང་དག'
  6266. ) {
  6267. return hour + 12;
  6268. } else {
  6269. return hour;
  6270. }
  6271. },
  6272. meridiem: function (hour, minute, isLower) {
  6273. if (hour < 4) {
  6274. return 'མཚན་མོ';
  6275. } else if (hour < 10) {
  6276. return 'ཞོགས་ཀས';
  6277. } else if (hour < 17) {
  6278. return 'ཉིན་གུང';
  6279. } else if (hour < 20) {
  6280. return 'དགོང་དག';
  6281. } else {
  6282. return 'མཚན་མོ';
  6283. }
  6284. },
  6285. week: {
  6286. dow: 0, // Sunday is the first day of the week.
  6287. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6288. },
  6289. });
  6290. //! moment.js locale configuration
  6291. function relativeTimeWithMutation(number, withoutSuffix, key) {
  6292. var format = {
  6293. mm: 'munutenn',
  6294. MM: 'miz',
  6295. dd: 'devezh',
  6296. };
  6297. return number + ' ' + mutation(format[key], number);
  6298. }
  6299. function specialMutationForYears(number) {
  6300. switch (lastNumber(number)) {
  6301. case 1:
  6302. case 3:
  6303. case 4:
  6304. case 5:
  6305. case 9:
  6306. return number + ' bloaz';
  6307. default:
  6308. return number + ' vloaz';
  6309. }
  6310. }
  6311. function lastNumber(number) {
  6312. if (number > 9) {
  6313. return lastNumber(number % 10);
  6314. }
  6315. return number;
  6316. }
  6317. function mutation(text, number) {
  6318. if (number === 2) {
  6319. return softMutation(text);
  6320. }
  6321. return text;
  6322. }
  6323. function softMutation(text) {
  6324. var mutationTable = {
  6325. m: 'v',
  6326. b: 'v',
  6327. d: 'z',
  6328. };
  6329. if (mutationTable[text.charAt(0)] === undefined) {
  6330. return text;
  6331. }
  6332. return mutationTable[text.charAt(0)] + text.substring(1);
  6333. }
  6334. var monthsParse = [
  6335. /^gen/i,
  6336. /^c[ʼ\']hwe/i,
  6337. /^meu/i,
  6338. /^ebr/i,
  6339. /^mae/i,
  6340. /^(mez|eve)/i,
  6341. /^gou/i,
  6342. /^eos/i,
  6343. /^gwe/i,
  6344. /^her/i,
  6345. /^du/i,
  6346. /^ker/i,
  6347. ],
  6348. monthsRegex$1 = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6349. monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  6350. monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6351. fullWeekdaysParse = [
  6352. /^sul/i,
  6353. /^lun/i,
  6354. /^meurzh/i,
  6355. /^merc[ʼ\']her/i,
  6356. /^yaou/i,
  6357. /^gwener/i,
  6358. /^sadorn/i,
  6359. ],
  6360. shortWeekdaysParse = [
  6361. /^Sul/i,
  6362. /^Lun/i,
  6363. /^Meu/i,
  6364. /^Mer/i,
  6365. /^Yao/i,
  6366. /^Gwe/i,
  6367. /^Sad/i,
  6368. ],
  6369. minWeekdaysParse = [
  6370. /^Su/i,
  6371. /^Lu/i,
  6372. /^Me([^r]|$)/i,
  6373. /^Mer/i,
  6374. /^Ya/i,
  6375. /^Gw/i,
  6376. /^Sa/i,
  6377. ];
  6378. hooks.defineLocale('br', {
  6379. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
  6380. '_'
  6381. ),
  6382. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  6383. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  6384. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  6385. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  6386. weekdaysParse: minWeekdaysParse,
  6387. fullWeekdaysParse: fullWeekdaysParse,
  6388. shortWeekdaysParse: shortWeekdaysParse,
  6389. minWeekdaysParse: minWeekdaysParse,
  6390. monthsRegex: monthsRegex$1,
  6391. monthsShortRegex: monthsRegex$1,
  6392. monthsStrictRegex: monthsStrictRegex,
  6393. monthsShortStrictRegex: monthsShortStrictRegex,
  6394. monthsParse: monthsParse,
  6395. longMonthsParse: monthsParse,
  6396. shortMonthsParse: monthsParse,
  6397. longDateFormat: {
  6398. LT: 'HH:mm',
  6399. LTS: 'HH:mm:ss',
  6400. L: 'DD/MM/YYYY',
  6401. LL: 'D [a viz] MMMM YYYY',
  6402. LLL: 'D [a viz] MMMM YYYY HH:mm',
  6403. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
  6404. },
  6405. calendar: {
  6406. sameDay: '[Hiziv da] LT',
  6407. nextDay: '[Warcʼhoazh da] LT',
  6408. nextWeek: 'dddd [da] LT',
  6409. lastDay: '[Decʼh da] LT',
  6410. lastWeek: 'dddd [paset da] LT',
  6411. sameElse: 'L',
  6412. },
  6413. relativeTime: {
  6414. future: 'a-benn %s',
  6415. past: '%s ʼzo',
  6416. s: 'un nebeud segondennoù',
  6417. ss: '%d eilenn',
  6418. m: 'ur vunutenn',
  6419. mm: relativeTimeWithMutation,
  6420. h: 'un eur',
  6421. hh: '%d eur',
  6422. d: 'un devezh',
  6423. dd: relativeTimeWithMutation,
  6424. M: 'ur miz',
  6425. MM: relativeTimeWithMutation,
  6426. y: 'ur bloaz',
  6427. yy: specialMutationForYears,
  6428. },
  6429. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  6430. ordinal: function (number) {
  6431. var output = number === 1 ? 'añ' : 'vet';
  6432. return number + output;
  6433. },
  6434. week: {
  6435. dow: 1, // Monday is the first day of the week.
  6436. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6437. },
  6438. meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
  6439. isPM: function (token) {
  6440. return token === 'g.m.';
  6441. },
  6442. meridiem: function (hour, minute, isLower) {
  6443. return hour < 12 ? 'a.m.' : 'g.m.';
  6444. },
  6445. });
  6446. //! moment.js locale configuration
  6447. function translate(number, withoutSuffix, key) {
  6448. var result = number + ' ';
  6449. switch (key) {
  6450. case 'ss':
  6451. if (number === 1) {
  6452. result += 'sekunda';
  6453. } else if (number === 2 || number === 3 || number === 4) {
  6454. result += 'sekunde';
  6455. } else {
  6456. result += 'sekundi';
  6457. }
  6458. return result;
  6459. case 'm':
  6460. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6461. case 'mm':
  6462. if (number === 1) {
  6463. result += 'minuta';
  6464. } else if (number === 2 || number === 3 || number === 4) {
  6465. result += 'minute';
  6466. } else {
  6467. result += 'minuta';
  6468. }
  6469. return result;
  6470. case 'h':
  6471. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6472. case 'hh':
  6473. if (number === 1) {
  6474. result += 'sat';
  6475. } else if (number === 2 || number === 3 || number === 4) {
  6476. result += 'sata';
  6477. } else {
  6478. result += 'sati';
  6479. }
  6480. return result;
  6481. case 'dd':
  6482. if (number === 1) {
  6483. result += 'dan';
  6484. } else {
  6485. result += 'dana';
  6486. }
  6487. return result;
  6488. case 'MM':
  6489. if (number === 1) {
  6490. result += 'mjesec';
  6491. } else if (number === 2 || number === 3 || number === 4) {
  6492. result += 'mjeseca';
  6493. } else {
  6494. result += 'mjeseci';
  6495. }
  6496. return result;
  6497. case 'yy':
  6498. if (number === 1) {
  6499. result += 'godina';
  6500. } else if (number === 2 || number === 3 || number === 4) {
  6501. result += 'godine';
  6502. } else {
  6503. result += 'godina';
  6504. }
  6505. return result;
  6506. }
  6507. }
  6508. hooks.defineLocale('bs', {
  6509. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
  6510. '_'
  6511. ),
  6512. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
  6513. '_'
  6514. ),
  6515. monthsParseExact: true,
  6516. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  6517. '_'
  6518. ),
  6519. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6520. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  6521. weekdaysParseExact: true,
  6522. longDateFormat: {
  6523. LT: 'H:mm',
  6524. LTS: 'H:mm:ss',
  6525. L: 'DD.MM.YYYY',
  6526. LL: 'D. MMMM YYYY',
  6527. LLL: 'D. MMMM YYYY H:mm',
  6528. LLLL: 'dddd, D. MMMM YYYY H:mm',
  6529. },
  6530. calendar: {
  6531. sameDay: '[danas u] LT',
  6532. nextDay: '[sutra u] LT',
  6533. nextWeek: function () {
  6534. switch (this.day()) {
  6535. case 0:
  6536. return '[u] [nedjelju] [u] LT';
  6537. case 3:
  6538. return '[u] [srijedu] [u] LT';
  6539. case 6:
  6540. return '[u] [subotu] [u] LT';
  6541. case 1:
  6542. case 2:
  6543. case 4:
  6544. case 5:
  6545. return '[u] dddd [u] LT';
  6546. }
  6547. },
  6548. lastDay: '[jučer u] LT',
  6549. lastWeek: function () {
  6550. switch (this.day()) {
  6551. case 0:
  6552. case 3:
  6553. return '[prošlu] dddd [u] LT';
  6554. case 6:
  6555. return '[prošle] [subote] [u] LT';
  6556. case 1:
  6557. case 2:
  6558. case 4:
  6559. case 5:
  6560. return '[prošli] dddd [u] LT';
  6561. }
  6562. },
  6563. sameElse: 'L',
  6564. },
  6565. relativeTime: {
  6566. future: 'za %s',
  6567. past: 'prije %s',
  6568. s: 'par sekundi',
  6569. ss: translate,
  6570. m: translate,
  6571. mm: translate,
  6572. h: translate,
  6573. hh: translate,
  6574. d: 'dan',
  6575. dd: translate,
  6576. M: 'mjesec',
  6577. MM: translate,
  6578. y: 'godinu',
  6579. yy: translate,
  6580. },
  6581. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6582. ordinal: '%d.',
  6583. week: {
  6584. dow: 1, // Monday is the first day of the week.
  6585. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6586. },
  6587. });
  6588. //! moment.js locale configuration
  6589. hooks.defineLocale('ca', {
  6590. months: {
  6591. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
  6592. '_'
  6593. ),
  6594. format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
  6595. '_'
  6596. ),
  6597. isFormat: /D[oD]?(\s)+MMMM/,
  6598. },
  6599. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
  6600. '_'
  6601. ),
  6602. monthsParseExact: true,
  6603. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
  6604. '_'
  6605. ),
  6606. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  6607. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  6608. weekdaysParseExact: true,
  6609. longDateFormat: {
  6610. LT: 'H:mm',
  6611. LTS: 'H:mm:ss',
  6612. L: 'DD/MM/YYYY',
  6613. LL: 'D MMMM [de] YYYY',
  6614. ll: 'D MMM YYYY',
  6615. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  6616. lll: 'D MMM YYYY, H:mm',
  6617. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  6618. llll: 'ddd D MMM YYYY, H:mm',
  6619. },
  6620. calendar: {
  6621. sameDay: function () {
  6622. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6623. },
  6624. nextDay: function () {
  6625. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6626. },
  6627. nextWeek: function () {
  6628. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6629. },
  6630. lastDay: function () {
  6631. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6632. },
  6633. lastWeek: function () {
  6634. return (
  6635. '[el] dddd [passat a ' +
  6636. (this.hours() !== 1 ? 'les' : 'la') +
  6637. '] LT'
  6638. );
  6639. },
  6640. sameElse: 'L',
  6641. },
  6642. relativeTime: {
  6643. future: "d'aquí %s",
  6644. past: 'fa %s',
  6645. s: 'uns segons',
  6646. ss: '%d segons',
  6647. m: 'un minut',
  6648. mm: '%d minuts',
  6649. h: 'una hora',
  6650. hh: '%d hores',
  6651. d: 'un dia',
  6652. dd: '%d dies',
  6653. M: 'un mes',
  6654. MM: '%d mesos',
  6655. y: 'un any',
  6656. yy: '%d anys',
  6657. },
  6658. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  6659. ordinal: function (number, period) {
  6660. var output =
  6661. number === 1
  6662. ? 'r'
  6663. : number === 2
  6664. ? 'n'
  6665. : number === 3
  6666. ? 'r'
  6667. : number === 4
  6668. ? 't'
  6669. : 'è';
  6670. if (period === 'w' || period === 'W') {
  6671. output = 'a';
  6672. }
  6673. return number + output;
  6674. },
  6675. week: {
  6676. dow: 1, // Monday is the first day of the week.
  6677. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6678. },
  6679. });
  6680. //! moment.js locale configuration
  6681. var months$4 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
  6682. '_'
  6683. ),
  6684. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  6685. monthsParse$1 = [
  6686. /^led/i,
  6687. /^úno/i,
  6688. /^bře/i,
  6689. /^dub/i,
  6690. /^kvě/i,
  6691. /^(čvn|červen$|června)/i,
  6692. /^(čvc|červenec|července)/i,
  6693. /^srp/i,
  6694. /^zář/i,
  6695. /^říj/i,
  6696. /^lis/i,
  6697. /^pro/i,
  6698. ],
  6699. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6700. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6701. monthsRegex$2 = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
  6702. function plural$1(n) {
  6703. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  6704. }
  6705. function translate$1(number, withoutSuffix, key, isFuture) {
  6706. var result = number + ' ';
  6707. switch (key) {
  6708. case 's': // a few seconds / in a few seconds / a few seconds ago
  6709. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  6710. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  6711. if (withoutSuffix || isFuture) {
  6712. return result + (plural$1(number) ? 'sekundy' : 'sekund');
  6713. } else {
  6714. return result + 'sekundami';
  6715. }
  6716. case 'm': // a minute / in a minute / a minute ago
  6717. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  6718. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  6719. if (withoutSuffix || isFuture) {
  6720. return result + (plural$1(number) ? 'minuty' : 'minut');
  6721. } else {
  6722. return result + 'minutami';
  6723. }
  6724. case 'h': // an hour / in an hour / an hour ago
  6725. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  6726. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  6727. if (withoutSuffix || isFuture) {
  6728. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  6729. } else {
  6730. return result + 'hodinami';
  6731. }
  6732. case 'd': // a day / in a day / a day ago
  6733. return withoutSuffix || isFuture ? 'den' : 'dnem';
  6734. case 'dd': // 9 days / in 9 days / 9 days ago
  6735. if (withoutSuffix || isFuture) {
  6736. return result + (plural$1(number) ? 'dny' : 'dní');
  6737. } else {
  6738. return result + 'dny';
  6739. }
  6740. case 'M': // a month / in a month / a month ago
  6741. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  6742. case 'MM': // 9 months / in 9 months / 9 months ago
  6743. if (withoutSuffix || isFuture) {
  6744. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  6745. } else {
  6746. return result + 'měsíci';
  6747. }
  6748. case 'y': // a year / in a year / a year ago
  6749. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  6750. case 'yy': // 9 years / in 9 years / 9 years ago
  6751. if (withoutSuffix || isFuture) {
  6752. return result + (plural$1(number) ? 'roky' : 'let');
  6753. } else {
  6754. return result + 'lety';
  6755. }
  6756. }
  6757. }
  6758. hooks.defineLocale('cs', {
  6759. months: months$4,
  6760. monthsShort: monthsShort,
  6761. monthsRegex: monthsRegex$2,
  6762. monthsShortRegex: monthsRegex$2,
  6763. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6764. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6765. monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  6766. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  6767. monthsParse: monthsParse$1,
  6768. longMonthsParse: monthsParse$1,
  6769. shortMonthsParse: monthsParse$1,
  6770. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  6771. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  6772. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  6773. longDateFormat: {
  6774. LT: 'H:mm',
  6775. LTS: 'H:mm:ss',
  6776. L: 'DD.MM.YYYY',
  6777. LL: 'D. MMMM YYYY',
  6778. LLL: 'D. MMMM YYYY H:mm',
  6779. LLLL: 'dddd D. MMMM YYYY H:mm',
  6780. l: 'D. M. YYYY',
  6781. },
  6782. calendar: {
  6783. sameDay: '[dnes v] LT',
  6784. nextDay: '[zítra v] LT',
  6785. nextWeek: function () {
  6786. switch (this.day()) {
  6787. case 0:
  6788. return '[v neděli v] LT';
  6789. case 1:
  6790. case 2:
  6791. return '[v] dddd [v] LT';
  6792. case 3:
  6793. return '[ve středu v] LT';
  6794. case 4:
  6795. return '[ve čtvrtek v] LT';
  6796. case 5:
  6797. return '[v pátek v] LT';
  6798. case 6:
  6799. return '[v sobotu v] LT';
  6800. }
  6801. },
  6802. lastDay: '[včera v] LT',
  6803. lastWeek: function () {
  6804. switch (this.day()) {
  6805. case 0:
  6806. return '[minulou neděli v] LT';
  6807. case 1:
  6808. case 2:
  6809. return '[minulé] dddd [v] LT';
  6810. case 3:
  6811. return '[minulou středu v] LT';
  6812. case 4:
  6813. case 5:
  6814. return '[minulý] dddd [v] LT';
  6815. case 6:
  6816. return '[minulou sobotu v] LT';
  6817. }
  6818. },
  6819. sameElse: 'L',
  6820. },
  6821. relativeTime: {
  6822. future: 'za %s',
  6823. past: 'před %s',
  6824. s: translate$1,
  6825. ss: translate$1,
  6826. m: translate$1,
  6827. mm: translate$1,
  6828. h: translate$1,
  6829. hh: translate$1,
  6830. d: translate$1,
  6831. dd: translate$1,
  6832. M: translate$1,
  6833. MM: translate$1,
  6834. y: translate$1,
  6835. yy: translate$1,
  6836. },
  6837. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6838. ordinal: '%d.',
  6839. week: {
  6840. dow: 1, // Monday is the first day of the week.
  6841. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6842. },
  6843. });
  6844. //! moment.js locale configuration
  6845. hooks.defineLocale('cv', {
  6846. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
  6847. '_'
  6848. ),
  6849. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  6850. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
  6851. '_'
  6852. ),
  6853. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  6854. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  6855. longDateFormat: {
  6856. LT: 'HH:mm',
  6857. LTS: 'HH:mm:ss',
  6858. L: 'DD-MM-YYYY',
  6859. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  6860. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6861. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6862. },
  6863. calendar: {
  6864. sameDay: '[Паян] LT [сехетре]',
  6865. nextDay: '[Ыран] LT [сехетре]',
  6866. lastDay: '[Ӗнер] LT [сехетре]',
  6867. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  6868. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  6869. sameElse: 'L',
  6870. },
  6871. relativeTime: {
  6872. future: function (output) {
  6873. var affix = /сехет$/i.exec(output)
  6874. ? 'рен'
  6875. : /ҫул$/i.exec(output)
  6876. ? 'тан'
  6877. : 'ран';
  6878. return output + affix;
  6879. },
  6880. past: '%s каялла',
  6881. s: 'пӗр-ик ҫеккунт',
  6882. ss: '%d ҫеккунт',
  6883. m: 'пӗр минут',
  6884. mm: '%d минут',
  6885. h: 'пӗр сехет',
  6886. hh: '%d сехет',
  6887. d: 'пӗр кун',
  6888. dd: '%d кун',
  6889. M: 'пӗр уйӑх',
  6890. MM: '%d уйӑх',
  6891. y: 'пӗр ҫул',
  6892. yy: '%d ҫул',
  6893. },
  6894. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  6895. ordinal: '%d-мӗш',
  6896. week: {
  6897. dow: 1, // Monday is the first day of the week.
  6898. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6899. },
  6900. });
  6901. //! moment.js locale configuration
  6902. hooks.defineLocale('cy', {
  6903. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  6904. '_'
  6905. ),
  6906. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  6907. '_'
  6908. ),
  6909. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  6910. '_'
  6911. ),
  6912. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  6913. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  6914. weekdaysParseExact: true,
  6915. // time formats are the same as en-gb
  6916. longDateFormat: {
  6917. LT: 'HH:mm',
  6918. LTS: 'HH:mm:ss',
  6919. L: 'DD/MM/YYYY',
  6920. LL: 'D MMMM YYYY',
  6921. LLL: 'D MMMM YYYY HH:mm',
  6922. LLLL: 'dddd, D MMMM YYYY HH:mm',
  6923. },
  6924. calendar: {
  6925. sameDay: '[Heddiw am] LT',
  6926. nextDay: '[Yfory am] LT',
  6927. nextWeek: 'dddd [am] LT',
  6928. lastDay: '[Ddoe am] LT',
  6929. lastWeek: 'dddd [diwethaf am] LT',
  6930. sameElse: 'L',
  6931. },
  6932. relativeTime: {
  6933. future: 'mewn %s',
  6934. past: '%s yn ôl',
  6935. s: 'ychydig eiliadau',
  6936. ss: '%d eiliad',
  6937. m: 'munud',
  6938. mm: '%d munud',
  6939. h: 'awr',
  6940. hh: '%d awr',
  6941. d: 'diwrnod',
  6942. dd: '%d diwrnod',
  6943. M: 'mis',
  6944. MM: '%d mis',
  6945. y: 'blwyddyn',
  6946. yy: '%d flynedd',
  6947. },
  6948. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  6949. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  6950. ordinal: function (number) {
  6951. var b = number,
  6952. output = '',
  6953. lookup = [
  6954. '',
  6955. 'af',
  6956. 'il',
  6957. 'ydd',
  6958. 'ydd',
  6959. 'ed',
  6960. 'ed',
  6961. 'ed',
  6962. 'fed',
  6963. 'fed',
  6964. 'fed', // 1af to 10fed
  6965. 'eg',
  6966. 'fed',
  6967. 'eg',
  6968. 'eg',
  6969. 'fed',
  6970. 'eg',
  6971. 'eg',
  6972. 'fed',
  6973. 'eg',
  6974. 'fed', // 11eg to 20fed
  6975. ];
  6976. if (b > 20) {
  6977. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  6978. output = 'fed'; // not 30ain, 70ain or 90ain
  6979. } else {
  6980. output = 'ain';
  6981. }
  6982. } else if (b > 0) {
  6983. output = lookup[b];
  6984. }
  6985. return number + output;
  6986. },
  6987. week: {
  6988. dow: 1, // Monday is the first day of the week.
  6989. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6990. },
  6991. });
  6992. //! moment.js locale configuration
  6993. hooks.defineLocale('da', {
  6994. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
  6995. '_'
  6996. ),
  6997. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  6998. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  6999. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  7000. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7001. longDateFormat: {
  7002. LT: 'HH:mm',
  7003. LTS: 'HH:mm:ss',
  7004. L: 'DD.MM.YYYY',
  7005. LL: 'D. MMMM YYYY',
  7006. LLL: 'D. MMMM YYYY HH:mm',
  7007. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
  7008. },
  7009. calendar: {
  7010. sameDay: '[i dag kl.] LT',
  7011. nextDay: '[i morgen kl.] LT',
  7012. nextWeek: 'på dddd [kl.] LT',
  7013. lastDay: '[i går kl.] LT',
  7014. lastWeek: '[i] dddd[s kl.] LT',
  7015. sameElse: 'L',
  7016. },
  7017. relativeTime: {
  7018. future: 'om %s',
  7019. past: '%s siden',
  7020. s: 'få sekunder',
  7021. ss: '%d sekunder',
  7022. m: 'et minut',
  7023. mm: '%d minutter',
  7024. h: 'en time',
  7025. hh: '%d timer',
  7026. d: 'en dag',
  7027. dd: '%d dage',
  7028. M: 'en måned',
  7029. MM: '%d måneder',
  7030. y: 'et år',
  7031. yy: '%d år',
  7032. },
  7033. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7034. ordinal: '%d.',
  7035. week: {
  7036. dow: 1, // Monday is the first day of the week.
  7037. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7038. },
  7039. });
  7040. //! moment.js locale configuration
  7041. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7042. var format = {
  7043. m: ['eine Minute', 'einer Minute'],
  7044. h: ['eine Stunde', 'einer Stunde'],
  7045. d: ['ein Tag', 'einem Tag'],
  7046. dd: [number + ' Tage', number + ' Tagen'],
  7047. w: ['eine Woche', 'einer Woche'],
  7048. M: ['ein Monat', 'einem Monat'],
  7049. MM: [number + ' Monate', number + ' Monaten'],
  7050. y: ['ein Jahr', 'einem Jahr'],
  7051. yy: [number + ' Jahre', number + ' Jahren'],
  7052. };
  7053. return withoutSuffix ? format[key][0] : format[key][1];
  7054. }
  7055. hooks.defineLocale('de-at', {
  7056. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7057. '_'
  7058. ),
  7059. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7060. '_'
  7061. ),
  7062. monthsParseExact: true,
  7063. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7064. '_'
  7065. ),
  7066. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7067. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7068. weekdaysParseExact: true,
  7069. longDateFormat: {
  7070. LT: 'HH:mm',
  7071. LTS: 'HH:mm:ss',
  7072. L: 'DD.MM.YYYY',
  7073. LL: 'D. MMMM YYYY',
  7074. LLL: 'D. MMMM YYYY HH:mm',
  7075. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7076. },
  7077. calendar: {
  7078. sameDay: '[heute um] LT [Uhr]',
  7079. sameElse: 'L',
  7080. nextDay: '[morgen um] LT [Uhr]',
  7081. nextWeek: 'dddd [um] LT [Uhr]',
  7082. lastDay: '[gestern um] LT [Uhr]',
  7083. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7084. },
  7085. relativeTime: {
  7086. future: 'in %s',
  7087. past: 'vor %s',
  7088. s: 'ein paar Sekunden',
  7089. ss: '%d Sekunden',
  7090. m: processRelativeTime,
  7091. mm: '%d Minuten',
  7092. h: processRelativeTime,
  7093. hh: '%d Stunden',
  7094. d: processRelativeTime,
  7095. dd: processRelativeTime,
  7096. w: processRelativeTime,
  7097. ww: '%d Wochen',
  7098. M: processRelativeTime,
  7099. MM: processRelativeTime,
  7100. y: processRelativeTime,
  7101. yy: processRelativeTime,
  7102. },
  7103. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7104. ordinal: '%d.',
  7105. week: {
  7106. dow: 1, // Monday is the first day of the week.
  7107. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7108. },
  7109. });
  7110. //! moment.js locale configuration
  7111. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  7112. var format = {
  7113. m: ['eine Minute', 'einer Minute'],
  7114. h: ['eine Stunde', 'einer Stunde'],
  7115. d: ['ein Tag', 'einem Tag'],
  7116. dd: [number + ' Tage', number + ' Tagen'],
  7117. w: ['eine Woche', 'einer Woche'],
  7118. M: ['ein Monat', 'einem Monat'],
  7119. MM: [number + ' Monate', number + ' Monaten'],
  7120. y: ['ein Jahr', 'einem Jahr'],
  7121. yy: [number + ' Jahre', number + ' Jahren'],
  7122. };
  7123. return withoutSuffix ? format[key][0] : format[key][1];
  7124. }
  7125. hooks.defineLocale('de-ch', {
  7126. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7127. '_'
  7128. ),
  7129. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7130. '_'
  7131. ),
  7132. monthsParseExact: true,
  7133. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7134. '_'
  7135. ),
  7136. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7137. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7138. weekdaysParseExact: true,
  7139. longDateFormat: {
  7140. LT: 'HH:mm',
  7141. LTS: 'HH:mm:ss',
  7142. L: 'DD.MM.YYYY',
  7143. LL: 'D. MMMM YYYY',
  7144. LLL: 'D. MMMM YYYY HH:mm',
  7145. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7146. },
  7147. calendar: {
  7148. sameDay: '[heute um] LT [Uhr]',
  7149. sameElse: 'L',
  7150. nextDay: '[morgen um] LT [Uhr]',
  7151. nextWeek: 'dddd [um] LT [Uhr]',
  7152. lastDay: '[gestern um] LT [Uhr]',
  7153. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7154. },
  7155. relativeTime: {
  7156. future: 'in %s',
  7157. past: 'vor %s',
  7158. s: 'ein paar Sekunden',
  7159. ss: '%d Sekunden',
  7160. m: processRelativeTime$1,
  7161. mm: '%d Minuten',
  7162. h: processRelativeTime$1,
  7163. hh: '%d Stunden',
  7164. d: processRelativeTime$1,
  7165. dd: processRelativeTime$1,
  7166. w: processRelativeTime$1,
  7167. ww: '%d Wochen',
  7168. M: processRelativeTime$1,
  7169. MM: processRelativeTime$1,
  7170. y: processRelativeTime$1,
  7171. yy: processRelativeTime$1,
  7172. },
  7173. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7174. ordinal: '%d.',
  7175. week: {
  7176. dow: 1, // Monday is the first day of the week.
  7177. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7178. },
  7179. });
  7180. //! moment.js locale configuration
  7181. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  7182. var format = {
  7183. m: ['eine Minute', 'einer Minute'],
  7184. h: ['eine Stunde', 'einer Stunde'],
  7185. d: ['ein Tag', 'einem Tag'],
  7186. dd: [number + ' Tage', number + ' Tagen'],
  7187. w: ['eine Woche', 'einer Woche'],
  7188. M: ['ein Monat', 'einem Monat'],
  7189. MM: [number + ' Monate', number + ' Monaten'],
  7190. y: ['ein Jahr', 'einem Jahr'],
  7191. yy: [number + ' Jahre', number + ' Jahren'],
  7192. };
  7193. return withoutSuffix ? format[key][0] : format[key][1];
  7194. }
  7195. hooks.defineLocale('de', {
  7196. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7197. '_'
  7198. ),
  7199. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7200. '_'
  7201. ),
  7202. monthsParseExact: true,
  7203. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7204. '_'
  7205. ),
  7206. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7207. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7208. weekdaysParseExact: true,
  7209. longDateFormat: {
  7210. LT: 'HH:mm',
  7211. LTS: 'HH:mm:ss',
  7212. L: 'DD.MM.YYYY',
  7213. LL: 'D. MMMM YYYY',
  7214. LLL: 'D. MMMM YYYY HH:mm',
  7215. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7216. },
  7217. calendar: {
  7218. sameDay: '[heute um] LT [Uhr]',
  7219. sameElse: 'L',
  7220. nextDay: '[morgen um] LT [Uhr]',
  7221. nextWeek: 'dddd [um] LT [Uhr]',
  7222. lastDay: '[gestern um] LT [Uhr]',
  7223. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7224. },
  7225. relativeTime: {
  7226. future: 'in %s',
  7227. past: 'vor %s',
  7228. s: 'ein paar Sekunden',
  7229. ss: '%d Sekunden',
  7230. m: processRelativeTime$2,
  7231. mm: '%d Minuten',
  7232. h: processRelativeTime$2,
  7233. hh: '%d Stunden',
  7234. d: processRelativeTime$2,
  7235. dd: processRelativeTime$2,
  7236. w: processRelativeTime$2,
  7237. ww: '%d Wochen',
  7238. M: processRelativeTime$2,
  7239. MM: processRelativeTime$2,
  7240. y: processRelativeTime$2,
  7241. yy: processRelativeTime$2,
  7242. },
  7243. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7244. ordinal: '%d.',
  7245. week: {
  7246. dow: 1, // Monday is the first day of the week.
  7247. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7248. },
  7249. });
  7250. //! moment.js locale configuration
  7251. var months$5 = [
  7252. 'ޖެނުއަރީ',
  7253. 'ފެބްރުއަރީ',
  7254. 'މާރިޗު',
  7255. 'އޭޕްރީލު',
  7256. 'މޭ',
  7257. 'ޖޫން',
  7258. 'ޖުލައި',
  7259. 'އޯގަސްޓު',
  7260. 'ސެޕްޓެމްބަރު',
  7261. 'އޮކްޓޯބަރު',
  7262. 'ނޮވެމްބަރު',
  7263. 'ޑިސެމްބަރު',
  7264. ],
  7265. weekdays = [
  7266. 'އާދިއްތަ',
  7267. 'ހޯމަ',
  7268. 'އަންގާރަ',
  7269. 'ބުދަ',
  7270. 'ބުރާސްފަތި',
  7271. 'ހުކުރު',
  7272. 'ހޮނިހިރު',
  7273. ];
  7274. hooks.defineLocale('dv', {
  7275. months: months$5,
  7276. monthsShort: months$5,
  7277. weekdays: weekdays,
  7278. weekdaysShort: weekdays,
  7279. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  7280. longDateFormat: {
  7281. LT: 'HH:mm',
  7282. LTS: 'HH:mm:ss',
  7283. L: 'D/M/YYYY',
  7284. LL: 'D MMMM YYYY',
  7285. LLL: 'D MMMM YYYY HH:mm',
  7286. LLLL: 'dddd D MMMM YYYY HH:mm',
  7287. },
  7288. meridiemParse: /މކ|މފ/,
  7289. isPM: function (input) {
  7290. return 'މފ' === input;
  7291. },
  7292. meridiem: function (hour, minute, isLower) {
  7293. if (hour < 12) {
  7294. return 'މކ';
  7295. } else {
  7296. return 'މފ';
  7297. }
  7298. },
  7299. calendar: {
  7300. sameDay: '[މިއަދު] LT',
  7301. nextDay: '[މާދަމާ] LT',
  7302. nextWeek: 'dddd LT',
  7303. lastDay: '[އިއްޔެ] LT',
  7304. lastWeek: '[ފާއިތުވި] dddd LT',
  7305. sameElse: 'L',
  7306. },
  7307. relativeTime: {
  7308. future: 'ތެރޭގައި %s',
  7309. past: 'ކުރިން %s',
  7310. s: 'ސިކުންތުކޮޅެއް',
  7311. ss: 'd% ސިކުންތު',
  7312. m: 'މިނިޓެއް',
  7313. mm: 'މިނިޓު %d',
  7314. h: 'ގަޑިއިރެއް',
  7315. hh: 'ގަޑިއިރު %d',
  7316. d: 'ދުވަހެއް',
  7317. dd: 'ދުވަސް %d',
  7318. M: 'މަހެއް',
  7319. MM: 'މަސް %d',
  7320. y: 'އަހަރެއް',
  7321. yy: 'އަހަރު %d',
  7322. },
  7323. preparse: function (string) {
  7324. return string.replace(/،/g, ',');
  7325. },
  7326. postformat: function (string) {
  7327. return string.replace(/,/g, '،');
  7328. },
  7329. week: {
  7330. dow: 7, // Sunday is the first day of the week.
  7331. doy: 12, // The week that contains Jan 12th is the first week of the year.
  7332. },
  7333. });
  7334. //! moment.js locale configuration
  7335. function isFunction$1(input) {
  7336. return (
  7337. (typeof Function !== 'undefined' && input instanceof Function) ||
  7338. Object.prototype.toString.call(input) === '[object Function]'
  7339. );
  7340. }
  7341. hooks.defineLocale('el', {
  7342. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
  7343. '_'
  7344. ),
  7345. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
  7346. '_'
  7347. ),
  7348. months: function (momentToFormat, format) {
  7349. if (!momentToFormat) {
  7350. return this._monthsNominativeEl;
  7351. } else if (
  7352. typeof format === 'string' &&
  7353. /D/.test(format.substring(0, format.indexOf('MMMM')))
  7354. ) {
  7355. // if there is a day number before 'MMMM'
  7356. return this._monthsGenitiveEl[momentToFormat.month()];
  7357. } else {
  7358. return this._monthsNominativeEl[momentToFormat.month()];
  7359. }
  7360. },
  7361. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  7362. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
  7363. '_'
  7364. ),
  7365. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  7366. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  7367. meridiem: function (hours, minutes, isLower) {
  7368. if (hours > 11) {
  7369. return isLower ? 'μμ' : 'ΜΜ';
  7370. } else {
  7371. return isLower ? 'πμ' : 'ΠΜ';
  7372. }
  7373. },
  7374. isPM: function (input) {
  7375. return (input + '').toLowerCase()[0] === 'μ';
  7376. },
  7377. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  7378. longDateFormat: {
  7379. LT: 'h:mm A',
  7380. LTS: 'h:mm:ss A',
  7381. L: 'DD/MM/YYYY',
  7382. LL: 'D MMMM YYYY',
  7383. LLL: 'D MMMM YYYY h:mm A',
  7384. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7385. },
  7386. calendarEl: {
  7387. sameDay: '[Σήμερα {}] LT',
  7388. nextDay: '[Αύριο {}] LT',
  7389. nextWeek: 'dddd [{}] LT',
  7390. lastDay: '[Χθες {}] LT',
  7391. lastWeek: function () {
  7392. switch (this.day()) {
  7393. case 6:
  7394. return '[το προηγούμενο] dddd [{}] LT';
  7395. default:
  7396. return '[την προηγούμενη] dddd [{}] LT';
  7397. }
  7398. },
  7399. sameElse: 'L',
  7400. },
  7401. calendar: function (key, mom) {
  7402. var output = this._calendarEl[key],
  7403. hours = mom && mom.hours();
  7404. if (isFunction$1(output)) {
  7405. output = output.apply(mom);
  7406. }
  7407. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  7408. },
  7409. relativeTime: {
  7410. future: 'σε %s',
  7411. past: '%s πριν',
  7412. s: 'λίγα δευτερόλεπτα',
  7413. ss: '%d δευτερόλεπτα',
  7414. m: 'ένα λεπτό',
  7415. mm: '%d λεπτά',
  7416. h: 'μία ώρα',
  7417. hh: '%d ώρες',
  7418. d: 'μία μέρα',
  7419. dd: '%d μέρες',
  7420. M: 'ένας μήνας',
  7421. MM: '%d μήνες',
  7422. y: 'ένας χρόνος',
  7423. yy: '%d χρόνια',
  7424. },
  7425. dayOfMonthOrdinalParse: /\d{1,2}η/,
  7426. ordinal: '%dη',
  7427. week: {
  7428. dow: 1, // Monday is the first day of the week.
  7429. doy: 4, // The week that contains Jan 4st is the first week of the year.
  7430. },
  7431. });
  7432. //! moment.js locale configuration
  7433. hooks.defineLocale('en-au', {
  7434. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7435. '_'
  7436. ),
  7437. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7438. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7439. '_'
  7440. ),
  7441. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7442. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7443. longDateFormat: {
  7444. LT: 'h:mm A',
  7445. LTS: 'h:mm:ss A',
  7446. L: 'DD/MM/YYYY',
  7447. LL: 'D MMMM YYYY',
  7448. LLL: 'D MMMM YYYY h:mm A',
  7449. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7450. },
  7451. calendar: {
  7452. sameDay: '[Today at] LT',
  7453. nextDay: '[Tomorrow at] LT',
  7454. nextWeek: 'dddd [at] LT',
  7455. lastDay: '[Yesterday at] LT',
  7456. lastWeek: '[Last] dddd [at] LT',
  7457. sameElse: 'L',
  7458. },
  7459. relativeTime: {
  7460. future: 'in %s',
  7461. past: '%s ago',
  7462. s: 'a few seconds',
  7463. ss: '%d seconds',
  7464. m: 'a minute',
  7465. mm: '%d minutes',
  7466. h: 'an hour',
  7467. hh: '%d hours',
  7468. d: 'a day',
  7469. dd: '%d days',
  7470. M: 'a month',
  7471. MM: '%d months',
  7472. y: 'a year',
  7473. yy: '%d years',
  7474. },
  7475. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7476. ordinal: function (number) {
  7477. var b = number % 10,
  7478. output =
  7479. ~~((number % 100) / 10) === 1
  7480. ? 'th'
  7481. : b === 1
  7482. ? 'st'
  7483. : b === 2
  7484. ? 'nd'
  7485. : b === 3
  7486. ? 'rd'
  7487. : 'th';
  7488. return number + output;
  7489. },
  7490. week: {
  7491. dow: 0, // Sunday is the first day of the week.
  7492. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7493. },
  7494. });
  7495. //! moment.js locale configuration
  7496. hooks.defineLocale('en-ca', {
  7497. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7498. '_'
  7499. ),
  7500. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7501. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7502. '_'
  7503. ),
  7504. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7505. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7506. longDateFormat: {
  7507. LT: 'h:mm A',
  7508. LTS: 'h:mm:ss A',
  7509. L: 'YYYY-MM-DD',
  7510. LL: 'MMMM D, YYYY',
  7511. LLL: 'MMMM D, YYYY h:mm A',
  7512. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  7513. },
  7514. calendar: {
  7515. sameDay: '[Today at] LT',
  7516. nextDay: '[Tomorrow at] LT',
  7517. nextWeek: 'dddd [at] LT',
  7518. lastDay: '[Yesterday at] LT',
  7519. lastWeek: '[Last] dddd [at] LT',
  7520. sameElse: 'L',
  7521. },
  7522. relativeTime: {
  7523. future: 'in %s',
  7524. past: '%s ago',
  7525. s: 'a few seconds',
  7526. ss: '%d seconds',
  7527. m: 'a minute',
  7528. mm: '%d minutes',
  7529. h: 'an hour',
  7530. hh: '%d hours',
  7531. d: 'a day',
  7532. dd: '%d days',
  7533. M: 'a month',
  7534. MM: '%d months',
  7535. y: 'a year',
  7536. yy: '%d years',
  7537. },
  7538. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7539. ordinal: function (number) {
  7540. var b = number % 10,
  7541. output =
  7542. ~~((number % 100) / 10) === 1
  7543. ? 'th'
  7544. : b === 1
  7545. ? 'st'
  7546. : b === 2
  7547. ? 'nd'
  7548. : b === 3
  7549. ? 'rd'
  7550. : 'th';
  7551. return number + output;
  7552. },
  7553. });
  7554. //! moment.js locale configuration
  7555. hooks.defineLocale('en-gb', {
  7556. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7557. '_'
  7558. ),
  7559. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7560. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7561. '_'
  7562. ),
  7563. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7564. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7565. longDateFormat: {
  7566. LT: 'HH:mm',
  7567. LTS: 'HH:mm:ss',
  7568. L: 'DD/MM/YYYY',
  7569. LL: 'D MMMM YYYY',
  7570. LLL: 'D MMMM YYYY HH:mm',
  7571. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7572. },
  7573. calendar: {
  7574. sameDay: '[Today at] LT',
  7575. nextDay: '[Tomorrow at] LT',
  7576. nextWeek: 'dddd [at] LT',
  7577. lastDay: '[Yesterday at] LT',
  7578. lastWeek: '[Last] dddd [at] LT',
  7579. sameElse: 'L',
  7580. },
  7581. relativeTime: {
  7582. future: 'in %s',
  7583. past: '%s ago',
  7584. s: 'a few seconds',
  7585. ss: '%d seconds',
  7586. m: 'a minute',
  7587. mm: '%d minutes',
  7588. h: 'an hour',
  7589. hh: '%d hours',
  7590. d: 'a day',
  7591. dd: '%d days',
  7592. M: 'a month',
  7593. MM: '%d months',
  7594. y: 'a year',
  7595. yy: '%d years',
  7596. },
  7597. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7598. ordinal: function (number) {
  7599. var b = number % 10,
  7600. output =
  7601. ~~((number % 100) / 10) === 1
  7602. ? 'th'
  7603. : b === 1
  7604. ? 'st'
  7605. : b === 2
  7606. ? 'nd'
  7607. : b === 3
  7608. ? 'rd'
  7609. : 'th';
  7610. return number + output;
  7611. },
  7612. week: {
  7613. dow: 1, // Monday is the first day of the week.
  7614. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7615. },
  7616. });
  7617. //! moment.js locale configuration
  7618. hooks.defineLocale('en-ie', {
  7619. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7620. '_'
  7621. ),
  7622. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7623. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7624. '_'
  7625. ),
  7626. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7627. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7628. longDateFormat: {
  7629. LT: 'HH:mm',
  7630. LTS: 'HH:mm:ss',
  7631. L: 'DD/MM/YYYY',
  7632. LL: 'D MMMM YYYY',
  7633. LLL: 'D MMMM YYYY HH:mm',
  7634. LLLL: 'dddd D MMMM YYYY HH:mm',
  7635. },
  7636. calendar: {
  7637. sameDay: '[Today at] LT',
  7638. nextDay: '[Tomorrow at] LT',
  7639. nextWeek: 'dddd [at] LT',
  7640. lastDay: '[Yesterday at] LT',
  7641. lastWeek: '[Last] dddd [at] LT',
  7642. sameElse: 'L',
  7643. },
  7644. relativeTime: {
  7645. future: 'in %s',
  7646. past: '%s ago',
  7647. s: 'a few seconds',
  7648. ss: '%d seconds',
  7649. m: 'a minute',
  7650. mm: '%d minutes',
  7651. h: 'an hour',
  7652. hh: '%d hours',
  7653. d: 'a day',
  7654. dd: '%d days',
  7655. M: 'a month',
  7656. MM: '%d months',
  7657. y: 'a year',
  7658. yy: '%d years',
  7659. },
  7660. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7661. ordinal: function (number) {
  7662. var b = number % 10,
  7663. output =
  7664. ~~((number % 100) / 10) === 1
  7665. ? 'th'
  7666. : b === 1
  7667. ? 'st'
  7668. : b === 2
  7669. ? 'nd'
  7670. : b === 3
  7671. ? 'rd'
  7672. : 'th';
  7673. return number + output;
  7674. },
  7675. week: {
  7676. dow: 1, // Monday is the first day of the week.
  7677. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7678. },
  7679. });
  7680. //! moment.js locale configuration
  7681. hooks.defineLocale('en-il', {
  7682. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7683. '_'
  7684. ),
  7685. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7686. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7687. '_'
  7688. ),
  7689. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7690. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7691. longDateFormat: {
  7692. LT: 'HH:mm',
  7693. LTS: 'HH:mm:ss',
  7694. L: 'DD/MM/YYYY',
  7695. LL: 'D MMMM YYYY',
  7696. LLL: 'D MMMM YYYY HH:mm',
  7697. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7698. },
  7699. calendar: {
  7700. sameDay: '[Today at] LT',
  7701. nextDay: '[Tomorrow at] LT',
  7702. nextWeek: 'dddd [at] LT',
  7703. lastDay: '[Yesterday at] LT',
  7704. lastWeek: '[Last] dddd [at] LT',
  7705. sameElse: 'L',
  7706. },
  7707. relativeTime: {
  7708. future: 'in %s',
  7709. past: '%s ago',
  7710. s: 'a few seconds',
  7711. ss: '%d seconds',
  7712. m: 'a minute',
  7713. mm: '%d minutes',
  7714. h: 'an hour',
  7715. hh: '%d hours',
  7716. d: 'a day',
  7717. dd: '%d days',
  7718. M: 'a month',
  7719. MM: '%d months',
  7720. y: 'a year',
  7721. yy: '%d years',
  7722. },
  7723. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7724. ordinal: function (number) {
  7725. var b = number % 10,
  7726. output =
  7727. ~~((number % 100) / 10) === 1
  7728. ? 'th'
  7729. : b === 1
  7730. ? 'st'
  7731. : b === 2
  7732. ? 'nd'
  7733. : b === 3
  7734. ? 'rd'
  7735. : 'th';
  7736. return number + output;
  7737. },
  7738. });
  7739. //! moment.js locale configuration
  7740. hooks.defineLocale('en-in', {
  7741. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7742. '_'
  7743. ),
  7744. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7745. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7746. '_'
  7747. ),
  7748. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7749. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7750. longDateFormat: {
  7751. LT: 'h:mm A',
  7752. LTS: 'h:mm:ss A',
  7753. L: 'DD/MM/YYYY',
  7754. LL: 'D MMMM YYYY',
  7755. LLL: 'D MMMM YYYY h:mm A',
  7756. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7757. },
  7758. calendar: {
  7759. sameDay: '[Today at] LT',
  7760. nextDay: '[Tomorrow at] LT',
  7761. nextWeek: 'dddd [at] LT',
  7762. lastDay: '[Yesterday at] LT',
  7763. lastWeek: '[Last] dddd [at] LT',
  7764. sameElse: 'L',
  7765. },
  7766. relativeTime: {
  7767. future: 'in %s',
  7768. past: '%s ago',
  7769. s: 'a few seconds',
  7770. ss: '%d seconds',
  7771. m: 'a minute',
  7772. mm: '%d minutes',
  7773. h: 'an hour',
  7774. hh: '%d hours',
  7775. d: 'a day',
  7776. dd: '%d days',
  7777. M: 'a month',
  7778. MM: '%d months',
  7779. y: 'a year',
  7780. yy: '%d years',
  7781. },
  7782. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7783. ordinal: function (number) {
  7784. var b = number % 10,
  7785. output =
  7786. ~~((number % 100) / 10) === 1
  7787. ? 'th'
  7788. : b === 1
  7789. ? 'st'
  7790. : b === 2
  7791. ? 'nd'
  7792. : b === 3
  7793. ? 'rd'
  7794. : 'th';
  7795. return number + output;
  7796. },
  7797. week: {
  7798. dow: 0, // Sunday is the first day of the week.
  7799. doy: 6, // The week that contains Jan 1st is the first week of the year.
  7800. },
  7801. });
  7802. //! moment.js locale configuration
  7803. hooks.defineLocale('en-nz', {
  7804. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7805. '_'
  7806. ),
  7807. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7808. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7809. '_'
  7810. ),
  7811. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7812. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7813. longDateFormat: {
  7814. LT: 'h:mm A',
  7815. LTS: 'h:mm:ss A',
  7816. L: 'DD/MM/YYYY',
  7817. LL: 'D MMMM YYYY',
  7818. LLL: 'D MMMM YYYY h:mm A',
  7819. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7820. },
  7821. calendar: {
  7822. sameDay: '[Today at] LT',
  7823. nextDay: '[Tomorrow at] LT',
  7824. nextWeek: 'dddd [at] LT',
  7825. lastDay: '[Yesterday at] LT',
  7826. lastWeek: '[Last] dddd [at] LT',
  7827. sameElse: 'L',
  7828. },
  7829. relativeTime: {
  7830. future: 'in %s',
  7831. past: '%s ago',
  7832. s: 'a few seconds',
  7833. ss: '%d seconds',
  7834. m: 'a minute',
  7835. mm: '%d minutes',
  7836. h: 'an hour',
  7837. hh: '%d hours',
  7838. d: 'a day',
  7839. dd: '%d days',
  7840. M: 'a month',
  7841. MM: '%d months',
  7842. y: 'a year',
  7843. yy: '%d years',
  7844. },
  7845. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7846. ordinal: function (number) {
  7847. var b = number % 10,
  7848. output =
  7849. ~~((number % 100) / 10) === 1
  7850. ? 'th'
  7851. : b === 1
  7852. ? 'st'
  7853. : b === 2
  7854. ? 'nd'
  7855. : b === 3
  7856. ? 'rd'
  7857. : 'th';
  7858. return number + output;
  7859. },
  7860. week: {
  7861. dow: 1, // Monday is the first day of the week.
  7862. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7863. },
  7864. });
  7865. //! moment.js locale configuration
  7866. hooks.defineLocale('en-sg', {
  7867. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7868. '_'
  7869. ),
  7870. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7871. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7872. '_'
  7873. ),
  7874. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7875. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7876. longDateFormat: {
  7877. LT: 'HH:mm',
  7878. LTS: 'HH:mm:ss',
  7879. L: 'DD/MM/YYYY',
  7880. LL: 'D MMMM YYYY',
  7881. LLL: 'D MMMM YYYY HH:mm',
  7882. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7883. },
  7884. calendar: {
  7885. sameDay: '[Today at] LT',
  7886. nextDay: '[Tomorrow at] LT',
  7887. nextWeek: 'dddd [at] LT',
  7888. lastDay: '[Yesterday at] LT',
  7889. lastWeek: '[Last] dddd [at] LT',
  7890. sameElse: 'L',
  7891. },
  7892. relativeTime: {
  7893. future: 'in %s',
  7894. past: '%s ago',
  7895. s: 'a few seconds',
  7896. ss: '%d seconds',
  7897. m: 'a minute',
  7898. mm: '%d minutes',
  7899. h: 'an hour',
  7900. hh: '%d hours',
  7901. d: 'a day',
  7902. dd: '%d days',
  7903. M: 'a month',
  7904. MM: '%d months',
  7905. y: 'a year',
  7906. yy: '%d years',
  7907. },
  7908. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7909. ordinal: function (number) {
  7910. var b = number % 10,
  7911. output =
  7912. ~~((number % 100) / 10) === 1
  7913. ? 'th'
  7914. : b === 1
  7915. ? 'st'
  7916. : b === 2
  7917. ? 'nd'
  7918. : b === 3
  7919. ? 'rd'
  7920. : 'th';
  7921. return number + output;
  7922. },
  7923. week: {
  7924. dow: 1, // Monday is the first day of the week.
  7925. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7926. },
  7927. });
  7928. //! moment.js locale configuration
  7929. hooks.defineLocale('eo', {
  7930. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
  7931. '_'
  7932. ),
  7933. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  7934. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  7935. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  7936. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  7937. longDateFormat: {
  7938. LT: 'HH:mm',
  7939. LTS: 'HH:mm:ss',
  7940. L: 'YYYY-MM-DD',
  7941. LL: '[la] D[-an de] MMMM, YYYY',
  7942. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  7943. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  7944. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
  7945. },
  7946. meridiemParse: /[ap]\.t\.m/i,
  7947. isPM: function (input) {
  7948. return input.charAt(0).toLowerCase() === 'p';
  7949. },
  7950. meridiem: function (hours, minutes, isLower) {
  7951. if (hours > 11) {
  7952. return isLower ? 'p.t.m.' : 'P.T.M.';
  7953. } else {
  7954. return isLower ? 'a.t.m.' : 'A.T.M.';
  7955. }
  7956. },
  7957. calendar: {
  7958. sameDay: '[Hodiaŭ je] LT',
  7959. nextDay: '[Morgaŭ je] LT',
  7960. nextWeek: 'dddd[n je] LT',
  7961. lastDay: '[Hieraŭ je] LT',
  7962. lastWeek: '[pasintan] dddd[n je] LT',
  7963. sameElse: 'L',
  7964. },
  7965. relativeTime: {
  7966. future: 'post %s',
  7967. past: 'antaŭ %s',
  7968. s: 'kelkaj sekundoj',
  7969. ss: '%d sekundoj',
  7970. m: 'unu minuto',
  7971. mm: '%d minutoj',
  7972. h: 'unu horo',
  7973. hh: '%d horoj',
  7974. d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
  7975. dd: '%d tagoj',
  7976. M: 'unu monato',
  7977. MM: '%d monatoj',
  7978. y: 'unu jaro',
  7979. yy: '%d jaroj',
  7980. },
  7981. dayOfMonthOrdinalParse: /\d{1,2}a/,
  7982. ordinal: '%da',
  7983. week: {
  7984. dow: 1, // Monday is the first day of the week.
  7985. doy: 7, // The week that contains Jan 7th is the first week of the year.
  7986. },
  7987. });
  7988. //! moment.js locale configuration
  7989. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  7990. '_'
  7991. ),
  7992. monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  7993. monthsParse$2 = [
  7994. /^ene/i,
  7995. /^feb/i,
  7996. /^mar/i,
  7997. /^abr/i,
  7998. /^may/i,
  7999. /^jun/i,
  8000. /^jul/i,
  8001. /^ago/i,
  8002. /^sep/i,
  8003. /^oct/i,
  8004. /^nov/i,
  8005. /^dic/i,
  8006. ],
  8007. monthsRegex$3 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  8008. hooks.defineLocale('es-do', {
  8009. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8010. '_'
  8011. ),
  8012. monthsShort: function (m, format) {
  8013. if (!m) {
  8014. return monthsShortDot;
  8015. } else if (/-MMM-/.test(format)) {
  8016. return monthsShort$1[m.month()];
  8017. } else {
  8018. return monthsShortDot[m.month()];
  8019. }
  8020. },
  8021. monthsRegex: monthsRegex$3,
  8022. monthsShortRegex: monthsRegex$3,
  8023. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8024. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8025. monthsParse: monthsParse$2,
  8026. longMonthsParse: monthsParse$2,
  8027. shortMonthsParse: monthsParse$2,
  8028. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8029. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8030. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8031. weekdaysParseExact: true,
  8032. longDateFormat: {
  8033. LT: 'h:mm A',
  8034. LTS: 'h:mm:ss A',
  8035. L: 'DD/MM/YYYY',
  8036. LL: 'D [de] MMMM [de] YYYY',
  8037. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8038. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8039. },
  8040. calendar: {
  8041. sameDay: function () {
  8042. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8043. },
  8044. nextDay: function () {
  8045. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8046. },
  8047. nextWeek: function () {
  8048. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8049. },
  8050. lastDay: function () {
  8051. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8052. },
  8053. lastWeek: function () {
  8054. return (
  8055. '[el] dddd [pasado a la' +
  8056. (this.hours() !== 1 ? 's' : '') +
  8057. '] LT'
  8058. );
  8059. },
  8060. sameElse: 'L',
  8061. },
  8062. relativeTime: {
  8063. future: 'en %s',
  8064. past: 'hace %s',
  8065. s: 'unos segundos',
  8066. ss: '%d segundos',
  8067. m: 'un minuto',
  8068. mm: '%d minutos',
  8069. h: 'una hora',
  8070. hh: '%d horas',
  8071. d: 'un día',
  8072. dd: '%d días',
  8073. M: 'un mes',
  8074. MM: '%d meses',
  8075. y: 'un año',
  8076. yy: '%d años',
  8077. },
  8078. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8079. ordinal: '%dº',
  8080. week: {
  8081. dow: 1, // Monday is the first day of the week.
  8082. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8083. },
  8084. });
  8085. //! moment.js locale configuration
  8086. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8087. '_'
  8088. ),
  8089. monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8090. monthsParse$3 = [
  8091. /^ene/i,
  8092. /^feb/i,
  8093. /^mar/i,
  8094. /^abr/i,
  8095. /^may/i,
  8096. /^jun/i,
  8097. /^jul/i,
  8098. /^ago/i,
  8099. /^sep/i,
  8100. /^oct/i,
  8101. /^nov/i,
  8102. /^dic/i,
  8103. ],
  8104. monthsRegex$4 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  8105. hooks.defineLocale('es-us', {
  8106. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8107. '_'
  8108. ),
  8109. monthsShort: function (m, format) {
  8110. if (!m) {
  8111. return monthsShortDot$1;
  8112. } else if (/-MMM-/.test(format)) {
  8113. return monthsShort$2[m.month()];
  8114. } else {
  8115. return monthsShortDot$1[m.month()];
  8116. }
  8117. },
  8118. monthsRegex: monthsRegex$4,
  8119. monthsShortRegex: monthsRegex$4,
  8120. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8121. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8122. monthsParse: monthsParse$3,
  8123. longMonthsParse: monthsParse$3,
  8124. shortMonthsParse: monthsParse$3,
  8125. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8126. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8127. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8128. weekdaysParseExact: true,
  8129. longDateFormat: {
  8130. LT: 'h:mm A',
  8131. LTS: 'h:mm:ss A',
  8132. L: 'MM/DD/YYYY',
  8133. LL: 'D [de] MMMM [de] YYYY',
  8134. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8135. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8136. },
  8137. calendar: {
  8138. sameDay: function () {
  8139. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8140. },
  8141. nextDay: function () {
  8142. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8143. },
  8144. nextWeek: function () {
  8145. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8146. },
  8147. lastDay: function () {
  8148. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8149. },
  8150. lastWeek: function () {
  8151. return (
  8152. '[el] dddd [pasado a la' +
  8153. (this.hours() !== 1 ? 's' : '') +
  8154. '] LT'
  8155. );
  8156. },
  8157. sameElse: 'L',
  8158. },
  8159. relativeTime: {
  8160. future: 'en %s',
  8161. past: 'hace %s',
  8162. s: 'unos segundos',
  8163. ss: '%d segundos',
  8164. m: 'un minuto',
  8165. mm: '%d minutos',
  8166. h: 'una hora',
  8167. hh: '%d horas',
  8168. d: 'un día',
  8169. dd: '%d días',
  8170. M: 'un mes',
  8171. MM: '%d meses',
  8172. y: 'un año',
  8173. yy: '%d años',
  8174. },
  8175. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8176. ordinal: '%dº',
  8177. week: {
  8178. dow: 0, // Sunday is the first day of the week.
  8179. doy: 6, // The week that contains Jan 6th is the first week of the year.
  8180. },
  8181. });
  8182. //! moment.js locale configuration
  8183. var monthsShortDot$2 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8184. '_'
  8185. ),
  8186. monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8187. monthsParse$4 = [
  8188. /^ene/i,
  8189. /^feb/i,
  8190. /^mar/i,
  8191. /^abr/i,
  8192. /^may/i,
  8193. /^jun/i,
  8194. /^jul/i,
  8195. /^ago/i,
  8196. /^sep/i,
  8197. /^oct/i,
  8198. /^nov/i,
  8199. /^dic/i,
  8200. ],
  8201. monthsRegex$5 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  8202. hooks.defineLocale('es', {
  8203. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8204. '_'
  8205. ),
  8206. monthsShort: function (m, format) {
  8207. if (!m) {
  8208. return monthsShortDot$2;
  8209. } else if (/-MMM-/.test(format)) {
  8210. return monthsShort$3[m.month()];
  8211. } else {
  8212. return monthsShortDot$2[m.month()];
  8213. }
  8214. },
  8215. monthsRegex: monthsRegex$5,
  8216. monthsShortRegex: monthsRegex$5,
  8217. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8218. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8219. monthsParse: monthsParse$4,
  8220. longMonthsParse: monthsParse$4,
  8221. shortMonthsParse: monthsParse$4,
  8222. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8223. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8224. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8225. weekdaysParseExact: true,
  8226. longDateFormat: {
  8227. LT: 'H:mm',
  8228. LTS: 'H:mm:ss',
  8229. L: 'DD/MM/YYYY',
  8230. LL: 'D [de] MMMM [de] YYYY',
  8231. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8232. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8233. },
  8234. calendar: {
  8235. sameDay: function () {
  8236. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8237. },
  8238. nextDay: function () {
  8239. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8240. },
  8241. nextWeek: function () {
  8242. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8243. },
  8244. lastDay: function () {
  8245. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8246. },
  8247. lastWeek: function () {
  8248. return (
  8249. '[el] dddd [pasado a la' +
  8250. (this.hours() !== 1 ? 's' : '') +
  8251. '] LT'
  8252. );
  8253. },
  8254. sameElse: 'L',
  8255. },
  8256. relativeTime: {
  8257. future: 'en %s',
  8258. past: 'hace %s',
  8259. s: 'unos segundos',
  8260. ss: '%d segundos',
  8261. m: 'un minuto',
  8262. mm: '%d minutos',
  8263. h: 'una hora',
  8264. hh: '%d horas',
  8265. d: 'un día',
  8266. dd: '%d días',
  8267. M: 'un mes',
  8268. MM: '%d meses',
  8269. y: 'un año',
  8270. yy: '%d años',
  8271. },
  8272. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8273. ordinal: '%dº',
  8274. week: {
  8275. dow: 1, // Monday is the first day of the week.
  8276. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8277. },
  8278. invalidDate: 'Fecha inválida',
  8279. });
  8280. //! moment.js locale configuration
  8281. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  8282. var format = {
  8283. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  8284. ss: [number + 'sekundi', number + 'sekundit'],
  8285. m: ['ühe minuti', 'üks minut'],
  8286. mm: [number + ' minuti', number + ' minutit'],
  8287. h: ['ühe tunni', 'tund aega', 'üks tund'],
  8288. hh: [number + ' tunni', number + ' tundi'],
  8289. d: ['ühe päeva', 'üks päev'],
  8290. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  8291. MM: [number + ' kuu', number + ' kuud'],
  8292. y: ['ühe aasta', 'aasta', 'üks aasta'],
  8293. yy: [number + ' aasta', number + ' aastat'],
  8294. };
  8295. if (withoutSuffix) {
  8296. return format[key][2] ? format[key][2] : format[key][1];
  8297. }
  8298. return isFuture ? format[key][0] : format[key][1];
  8299. }
  8300. hooks.defineLocale('et', {
  8301. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
  8302. '_'
  8303. ),
  8304. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(
  8305. '_'
  8306. ),
  8307. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
  8308. '_'
  8309. ),
  8310. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  8311. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  8312. longDateFormat: {
  8313. LT: 'H:mm',
  8314. LTS: 'H:mm:ss',
  8315. L: 'DD.MM.YYYY',
  8316. LL: 'D. MMMM YYYY',
  8317. LLL: 'D. MMMM YYYY H:mm',
  8318. LLLL: 'dddd, D. MMMM YYYY H:mm',
  8319. },
  8320. calendar: {
  8321. sameDay: '[Täna,] LT',
  8322. nextDay: '[Homme,] LT',
  8323. nextWeek: '[Järgmine] dddd LT',
  8324. lastDay: '[Eile,] LT',
  8325. lastWeek: '[Eelmine] dddd LT',
  8326. sameElse: 'L',
  8327. },
  8328. relativeTime: {
  8329. future: '%s pärast',
  8330. past: '%s tagasi',
  8331. s: processRelativeTime$3,
  8332. ss: processRelativeTime$3,
  8333. m: processRelativeTime$3,
  8334. mm: processRelativeTime$3,
  8335. h: processRelativeTime$3,
  8336. hh: processRelativeTime$3,
  8337. d: processRelativeTime$3,
  8338. dd: '%d päeva',
  8339. M: processRelativeTime$3,
  8340. MM: processRelativeTime$3,
  8341. y: processRelativeTime$3,
  8342. yy: processRelativeTime$3,
  8343. },
  8344. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8345. ordinal: '%d.',
  8346. week: {
  8347. dow: 1, // Monday is the first day of the week.
  8348. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8349. },
  8350. });
  8351. //! moment.js locale configuration
  8352. hooks.defineLocale('eu', {
  8353. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
  8354. '_'
  8355. ),
  8356. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
  8357. '_'
  8358. ),
  8359. monthsParseExact: true,
  8360. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
  8361. '_'
  8362. ),
  8363. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  8364. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  8365. weekdaysParseExact: true,
  8366. longDateFormat: {
  8367. LT: 'HH:mm',
  8368. LTS: 'HH:mm:ss',
  8369. L: 'YYYY-MM-DD',
  8370. LL: 'YYYY[ko] MMMM[ren] D[a]',
  8371. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  8372. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  8373. l: 'YYYY-M-D',
  8374. ll: 'YYYY[ko] MMM D[a]',
  8375. lll: 'YYYY[ko] MMM D[a] HH:mm',
  8376. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
  8377. },
  8378. calendar: {
  8379. sameDay: '[gaur] LT[etan]',
  8380. nextDay: '[bihar] LT[etan]',
  8381. nextWeek: 'dddd LT[etan]',
  8382. lastDay: '[atzo] LT[etan]',
  8383. lastWeek: '[aurreko] dddd LT[etan]',
  8384. sameElse: 'L',
  8385. },
  8386. relativeTime: {
  8387. future: '%s barru',
  8388. past: 'duela %s',
  8389. s: 'segundo batzuk',
  8390. ss: '%d segundo',
  8391. m: 'minutu bat',
  8392. mm: '%d minutu',
  8393. h: 'ordu bat',
  8394. hh: '%d ordu',
  8395. d: 'egun bat',
  8396. dd: '%d egun',
  8397. M: 'hilabete bat',
  8398. MM: '%d hilabete',
  8399. y: 'urte bat',
  8400. yy: '%d urte',
  8401. },
  8402. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8403. ordinal: '%d.',
  8404. week: {
  8405. dow: 1, // Monday is the first day of the week.
  8406. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8407. },
  8408. });
  8409. //! moment.js locale configuration
  8410. var symbolMap$5 = {
  8411. '1': '۱',
  8412. '2': '۲',
  8413. '3': '۳',
  8414. '4': '۴',
  8415. '5': '۵',
  8416. '6': '۶',
  8417. '7': '۷',
  8418. '8': '۸',
  8419. '9': '۹',
  8420. '0': '۰',
  8421. },
  8422. numberMap$4 = {
  8423. '۱': '1',
  8424. '۲': '2',
  8425. '۳': '3',
  8426. '۴': '4',
  8427. '۵': '5',
  8428. '۶': '6',
  8429. '۷': '7',
  8430. '۸': '8',
  8431. '۹': '9',
  8432. '۰': '0',
  8433. };
  8434. hooks.defineLocale('fa', {
  8435. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8436. '_'
  8437. ),
  8438. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8439. '_'
  8440. ),
  8441. weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8442. '_'
  8443. ),
  8444. weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8445. '_'
  8446. ),
  8447. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  8448. weekdaysParseExact: true,
  8449. longDateFormat: {
  8450. LT: 'HH:mm',
  8451. LTS: 'HH:mm:ss',
  8452. L: 'DD/MM/YYYY',
  8453. LL: 'D MMMM YYYY',
  8454. LLL: 'D MMMM YYYY HH:mm',
  8455. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8456. },
  8457. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  8458. isPM: function (input) {
  8459. return /بعد از ظهر/.test(input);
  8460. },
  8461. meridiem: function (hour, minute, isLower) {
  8462. if (hour < 12) {
  8463. return 'قبل از ظهر';
  8464. } else {
  8465. return 'بعد از ظهر';
  8466. }
  8467. },
  8468. calendar: {
  8469. sameDay: '[امروز ساعت] LT',
  8470. nextDay: '[فردا ساعت] LT',
  8471. nextWeek: 'dddd [ساعت] LT',
  8472. lastDay: '[دیروز ساعت] LT',
  8473. lastWeek: 'dddd [پیش] [ساعت] LT',
  8474. sameElse: 'L',
  8475. },
  8476. relativeTime: {
  8477. future: 'در %s',
  8478. past: '%s پیش',
  8479. s: 'چند ثانیه',
  8480. ss: '%d ثانیه',
  8481. m: 'یک دقیقه',
  8482. mm: '%d دقیقه',
  8483. h: 'یک ساعت',
  8484. hh: '%d ساعت',
  8485. d: 'یک روز',
  8486. dd: '%d روز',
  8487. M: 'یک ماه',
  8488. MM: '%d ماه',
  8489. y: 'یک سال',
  8490. yy: '%d سال',
  8491. },
  8492. preparse: function (string) {
  8493. return string
  8494. .replace(/[۰-۹]/g, function (match) {
  8495. return numberMap$4[match];
  8496. })
  8497. .replace(/،/g, ',');
  8498. },
  8499. postformat: function (string) {
  8500. return string
  8501. .replace(/\d/g, function (match) {
  8502. return symbolMap$5[match];
  8503. })
  8504. .replace(/,/g, '،');
  8505. },
  8506. dayOfMonthOrdinalParse: /\d{1,2}م/,
  8507. ordinal: '%dم',
  8508. week: {
  8509. dow: 6, // Saturday is the first day of the week.
  8510. doy: 12, // The week that contains Jan 12th is the first week of the year.
  8511. },
  8512. });
  8513. //! moment.js locale configuration
  8514. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
  8515. ' '
  8516. ),
  8517. numbersFuture = [
  8518. 'nolla',
  8519. 'yhden',
  8520. 'kahden',
  8521. 'kolmen',
  8522. 'neljän',
  8523. 'viiden',
  8524. 'kuuden',
  8525. numbersPast[7],
  8526. numbersPast[8],
  8527. numbersPast[9],
  8528. ];
  8529. function translate$2(number, withoutSuffix, key, isFuture) {
  8530. var result = '';
  8531. switch (key) {
  8532. case 's':
  8533. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  8534. case 'ss':
  8535. result = isFuture ? 'sekunnin' : 'sekuntia';
  8536. break;
  8537. case 'm':
  8538. return isFuture ? 'minuutin' : 'minuutti';
  8539. case 'mm':
  8540. result = isFuture ? 'minuutin' : 'minuuttia';
  8541. break;
  8542. case 'h':
  8543. return isFuture ? 'tunnin' : 'tunti';
  8544. case 'hh':
  8545. result = isFuture ? 'tunnin' : 'tuntia';
  8546. break;
  8547. case 'd':
  8548. return isFuture ? 'päivän' : 'päivä';
  8549. case 'dd':
  8550. result = isFuture ? 'päivän' : 'päivää';
  8551. break;
  8552. case 'M':
  8553. return isFuture ? 'kuukauden' : 'kuukausi';
  8554. case 'MM':
  8555. result = isFuture ? 'kuukauden' : 'kuukautta';
  8556. break;
  8557. case 'y':
  8558. return isFuture ? 'vuoden' : 'vuosi';
  8559. case 'yy':
  8560. result = isFuture ? 'vuoden' : 'vuotta';
  8561. break;
  8562. }
  8563. result = verbalNumber(number, isFuture) + ' ' + result;
  8564. return result;
  8565. }
  8566. function verbalNumber(number, isFuture) {
  8567. return number < 10
  8568. ? isFuture
  8569. ? numbersFuture[number]
  8570. : numbersPast[number]
  8571. : number;
  8572. }
  8573. hooks.defineLocale('fi', {
  8574. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
  8575. '_'
  8576. ),
  8577. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
  8578. '_'
  8579. ),
  8580. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
  8581. '_'
  8582. ),
  8583. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8584. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8585. longDateFormat: {
  8586. LT: 'HH.mm',
  8587. LTS: 'HH.mm.ss',
  8588. L: 'DD.MM.YYYY',
  8589. LL: 'Do MMMM[ta] YYYY',
  8590. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  8591. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  8592. l: 'D.M.YYYY',
  8593. ll: 'Do MMM YYYY',
  8594. lll: 'Do MMM YYYY, [klo] HH.mm',
  8595. llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
  8596. },
  8597. calendar: {
  8598. sameDay: '[tänään] [klo] LT',
  8599. nextDay: '[huomenna] [klo] LT',
  8600. nextWeek: 'dddd [klo] LT',
  8601. lastDay: '[eilen] [klo] LT',
  8602. lastWeek: '[viime] dddd[na] [klo] LT',
  8603. sameElse: 'L',
  8604. },
  8605. relativeTime: {
  8606. future: '%s päästä',
  8607. past: '%s sitten',
  8608. s: translate$2,
  8609. ss: translate$2,
  8610. m: translate$2,
  8611. mm: translate$2,
  8612. h: translate$2,
  8613. hh: translate$2,
  8614. d: translate$2,
  8615. dd: translate$2,
  8616. M: translate$2,
  8617. MM: translate$2,
  8618. y: translate$2,
  8619. yy: translate$2,
  8620. },
  8621. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8622. ordinal: '%d.',
  8623. week: {
  8624. dow: 1, // Monday is the first day of the week.
  8625. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8626. },
  8627. });
  8628. //! moment.js locale configuration
  8629. hooks.defineLocale('fil', {
  8630. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  8631. '_'
  8632. ),
  8633. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  8634. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  8635. '_'
  8636. ),
  8637. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  8638. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  8639. longDateFormat: {
  8640. LT: 'HH:mm',
  8641. LTS: 'HH:mm:ss',
  8642. L: 'MM/D/YYYY',
  8643. LL: 'MMMM D, YYYY',
  8644. LLL: 'MMMM D, YYYY HH:mm',
  8645. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  8646. },
  8647. calendar: {
  8648. sameDay: 'LT [ngayong araw]',
  8649. nextDay: '[Bukas ng] LT',
  8650. nextWeek: 'LT [sa susunod na] dddd',
  8651. lastDay: 'LT [kahapon]',
  8652. lastWeek: 'LT [noong nakaraang] dddd',
  8653. sameElse: 'L',
  8654. },
  8655. relativeTime: {
  8656. future: 'sa loob ng %s',
  8657. past: '%s ang nakalipas',
  8658. s: 'ilang segundo',
  8659. ss: '%d segundo',
  8660. m: 'isang minuto',
  8661. mm: '%d minuto',
  8662. h: 'isang oras',
  8663. hh: '%d oras',
  8664. d: 'isang araw',
  8665. dd: '%d araw',
  8666. M: 'isang buwan',
  8667. MM: '%d buwan',
  8668. y: 'isang taon',
  8669. yy: '%d taon',
  8670. },
  8671. dayOfMonthOrdinalParse: /\d{1,2}/,
  8672. ordinal: function (number) {
  8673. return number;
  8674. },
  8675. week: {
  8676. dow: 1, // Monday is the first day of the week.
  8677. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8678. },
  8679. });
  8680. //! moment.js locale configuration
  8681. hooks.defineLocale('fo', {
  8682. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
  8683. '_'
  8684. ),
  8685. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8686. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
  8687. '_'
  8688. ),
  8689. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  8690. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  8691. longDateFormat: {
  8692. LT: 'HH:mm',
  8693. LTS: 'HH:mm:ss',
  8694. L: 'DD/MM/YYYY',
  8695. LL: 'D MMMM YYYY',
  8696. LLL: 'D MMMM YYYY HH:mm',
  8697. LLLL: 'dddd D. MMMM, YYYY HH:mm',
  8698. },
  8699. calendar: {
  8700. sameDay: '[Í dag kl.] LT',
  8701. nextDay: '[Í morgin kl.] LT',
  8702. nextWeek: 'dddd [kl.] LT',
  8703. lastDay: '[Í gjár kl.] LT',
  8704. lastWeek: '[síðstu] dddd [kl] LT',
  8705. sameElse: 'L',
  8706. },
  8707. relativeTime: {
  8708. future: 'um %s',
  8709. past: '%s síðani',
  8710. s: 'fá sekund',
  8711. ss: '%d sekundir',
  8712. m: 'ein minuttur',
  8713. mm: '%d minuttir',
  8714. h: 'ein tími',
  8715. hh: '%d tímar',
  8716. d: 'ein dagur',
  8717. dd: '%d dagar',
  8718. M: 'ein mánaður',
  8719. MM: '%d mánaðir',
  8720. y: 'eitt ár',
  8721. yy: '%d ár',
  8722. },
  8723. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8724. ordinal: '%d.',
  8725. week: {
  8726. dow: 1, // Monday is the first day of the week.
  8727. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8728. },
  8729. });
  8730. //! moment.js locale configuration
  8731. hooks.defineLocale('fr-ca', {
  8732. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8733. '_'
  8734. ),
  8735. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8736. '_'
  8737. ),
  8738. monthsParseExact: true,
  8739. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8740. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8741. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8742. weekdaysParseExact: true,
  8743. longDateFormat: {
  8744. LT: 'HH:mm',
  8745. LTS: 'HH:mm:ss',
  8746. L: 'YYYY-MM-DD',
  8747. LL: 'D MMMM YYYY',
  8748. LLL: 'D MMMM YYYY HH:mm',
  8749. LLLL: 'dddd D MMMM YYYY HH:mm',
  8750. },
  8751. calendar: {
  8752. sameDay: '[Aujourd’hui à] LT',
  8753. nextDay: '[Demain à] LT',
  8754. nextWeek: 'dddd [à] LT',
  8755. lastDay: '[Hier à] LT',
  8756. lastWeek: 'dddd [dernier à] LT',
  8757. sameElse: 'L',
  8758. },
  8759. relativeTime: {
  8760. future: 'dans %s',
  8761. past: 'il y a %s',
  8762. s: 'quelques secondes',
  8763. ss: '%d secondes',
  8764. m: 'une minute',
  8765. mm: '%d minutes',
  8766. h: 'une heure',
  8767. hh: '%d heures',
  8768. d: 'un jour',
  8769. dd: '%d jours',
  8770. M: 'un mois',
  8771. MM: '%d mois',
  8772. y: 'un an',
  8773. yy: '%d ans',
  8774. },
  8775. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  8776. ordinal: function (number, period) {
  8777. switch (period) {
  8778. // Words with masculine grammatical gender: mois, trimestre, jour
  8779. default:
  8780. case 'M':
  8781. case 'Q':
  8782. case 'D':
  8783. case 'DDD':
  8784. case 'd':
  8785. return number + (number === 1 ? 'er' : 'e');
  8786. // Words with feminine grammatical gender: semaine
  8787. case 'w':
  8788. case 'W':
  8789. return number + (number === 1 ? 're' : 'e');
  8790. }
  8791. },
  8792. });
  8793. //! moment.js locale configuration
  8794. hooks.defineLocale('fr-ch', {
  8795. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8796. '_'
  8797. ),
  8798. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8799. '_'
  8800. ),
  8801. monthsParseExact: true,
  8802. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8803. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8804. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8805. weekdaysParseExact: true,
  8806. longDateFormat: {
  8807. LT: 'HH:mm',
  8808. LTS: 'HH:mm:ss',
  8809. L: 'DD.MM.YYYY',
  8810. LL: 'D MMMM YYYY',
  8811. LLL: 'D MMMM YYYY HH:mm',
  8812. LLLL: 'dddd D MMMM YYYY HH:mm',
  8813. },
  8814. calendar: {
  8815. sameDay: '[Aujourd’hui à] LT',
  8816. nextDay: '[Demain à] LT',
  8817. nextWeek: 'dddd [à] LT',
  8818. lastDay: '[Hier à] LT',
  8819. lastWeek: 'dddd [dernier à] LT',
  8820. sameElse: 'L',
  8821. },
  8822. relativeTime: {
  8823. future: 'dans %s',
  8824. past: 'il y a %s',
  8825. s: 'quelques secondes',
  8826. ss: '%d secondes',
  8827. m: 'une minute',
  8828. mm: '%d minutes',
  8829. h: 'une heure',
  8830. hh: '%d heures',
  8831. d: 'un jour',
  8832. dd: '%d jours',
  8833. M: 'un mois',
  8834. MM: '%d mois',
  8835. y: 'un an',
  8836. yy: '%d ans',
  8837. },
  8838. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  8839. ordinal: function (number, period) {
  8840. switch (period) {
  8841. // Words with masculine grammatical gender: mois, trimestre, jour
  8842. default:
  8843. case 'M':
  8844. case 'Q':
  8845. case 'D':
  8846. case 'DDD':
  8847. case 'd':
  8848. return number + (number === 1 ? 'er' : 'e');
  8849. // Words with feminine grammatical gender: semaine
  8850. case 'w':
  8851. case 'W':
  8852. return number + (number === 1 ? 're' : 'e');
  8853. }
  8854. },
  8855. week: {
  8856. dow: 1, // Monday is the first day of the week.
  8857. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8858. },
  8859. });
  8860. //! moment.js locale configuration
  8861. var monthsStrictRegex$1 = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  8862. monthsShortStrictRegex$1 = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  8863. monthsRegex$6 = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  8864. monthsParse$5 = [
  8865. /^janv/i,
  8866. /^févr/i,
  8867. /^mars/i,
  8868. /^avr/i,
  8869. /^mai/i,
  8870. /^juin/i,
  8871. /^juil/i,
  8872. /^août/i,
  8873. /^sept/i,
  8874. /^oct/i,
  8875. /^nov/i,
  8876. /^déc/i,
  8877. ];
  8878. hooks.defineLocale('fr', {
  8879. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8880. '_'
  8881. ),
  8882. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8883. '_'
  8884. ),
  8885. monthsRegex: monthsRegex$6,
  8886. monthsShortRegex: monthsRegex$6,
  8887. monthsStrictRegex: monthsStrictRegex$1,
  8888. monthsShortStrictRegex: monthsShortStrictRegex$1,
  8889. monthsParse: monthsParse$5,
  8890. longMonthsParse: monthsParse$5,
  8891. shortMonthsParse: monthsParse$5,
  8892. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8893. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8894. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8895. weekdaysParseExact: true,
  8896. longDateFormat: {
  8897. LT: 'HH:mm',
  8898. LTS: 'HH:mm:ss',
  8899. L: 'DD/MM/YYYY',
  8900. LL: 'D MMMM YYYY',
  8901. LLL: 'D MMMM YYYY HH:mm',
  8902. LLLL: 'dddd D MMMM YYYY HH:mm',
  8903. },
  8904. calendar: {
  8905. sameDay: '[Aujourd’hui à] LT',
  8906. nextDay: '[Demain à] LT',
  8907. nextWeek: 'dddd [à] LT',
  8908. lastDay: '[Hier à] LT',
  8909. lastWeek: 'dddd [dernier à] LT',
  8910. sameElse: 'L',
  8911. },
  8912. relativeTime: {
  8913. future: 'dans %s',
  8914. past: 'il y a %s',
  8915. s: 'quelques secondes',
  8916. ss: '%d secondes',
  8917. m: 'une minute',
  8918. mm: '%d minutes',
  8919. h: 'une heure',
  8920. hh: '%d heures',
  8921. d: 'un jour',
  8922. dd: '%d jours',
  8923. M: 'un mois',
  8924. MM: '%d mois',
  8925. y: 'un an',
  8926. yy: '%d ans',
  8927. },
  8928. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  8929. ordinal: function (number, period) {
  8930. switch (period) {
  8931. // TODO: Return 'e' when day of month > 1. Move this case inside
  8932. // block for masculine words below.
  8933. // See https://github.com/moment/moment/issues/3375
  8934. case 'D':
  8935. return number + (number === 1 ? 'er' : '');
  8936. // Words with masculine grammatical gender: mois, trimestre, jour
  8937. default:
  8938. case 'M':
  8939. case 'Q':
  8940. case 'DDD':
  8941. case 'd':
  8942. return number + (number === 1 ? 'er' : 'e');
  8943. // Words with feminine grammatical gender: semaine
  8944. case 'w':
  8945. case 'W':
  8946. return number + (number === 1 ? 're' : 'e');
  8947. }
  8948. },
  8949. week: {
  8950. dow: 1, // Monday is the first day of the week.
  8951. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8952. },
  8953. });
  8954. //! moment.js locale configuration
  8955. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
  8956. '_'
  8957. ),
  8958. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
  8959. '_'
  8960. );
  8961. hooks.defineLocale('fy', {
  8962. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  8963. '_'
  8964. ),
  8965. monthsShort: function (m, format) {
  8966. if (!m) {
  8967. return monthsShortWithDots;
  8968. } else if (/-MMM-/.test(format)) {
  8969. return monthsShortWithoutDots[m.month()];
  8970. } else {
  8971. return monthsShortWithDots[m.month()];
  8972. }
  8973. },
  8974. monthsParseExact: true,
  8975. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  8976. '_'
  8977. ),
  8978. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  8979. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  8980. weekdaysParseExact: true,
  8981. longDateFormat: {
  8982. LT: 'HH:mm',
  8983. LTS: 'HH:mm:ss',
  8984. L: 'DD-MM-YYYY',
  8985. LL: 'D MMMM YYYY',
  8986. LLL: 'D MMMM YYYY HH:mm',
  8987. LLLL: 'dddd D MMMM YYYY HH:mm',
  8988. },
  8989. calendar: {
  8990. sameDay: '[hjoed om] LT',
  8991. nextDay: '[moarn om] LT',
  8992. nextWeek: 'dddd [om] LT',
  8993. lastDay: '[juster om] LT',
  8994. lastWeek: '[ôfrûne] dddd [om] LT',
  8995. sameElse: 'L',
  8996. },
  8997. relativeTime: {
  8998. future: 'oer %s',
  8999. past: '%s lyn',
  9000. s: 'in pear sekonden',
  9001. ss: '%d sekonden',
  9002. m: 'ien minút',
  9003. mm: '%d minuten',
  9004. h: 'ien oere',
  9005. hh: '%d oeren',
  9006. d: 'ien dei',
  9007. dd: '%d dagen',
  9008. M: 'ien moanne',
  9009. MM: '%d moannen',
  9010. y: 'ien jier',
  9011. yy: '%d jierren',
  9012. },
  9013. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9014. ordinal: function (number) {
  9015. return (
  9016. number +
  9017. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  9018. );
  9019. },
  9020. week: {
  9021. dow: 1, // Monday is the first day of the week.
  9022. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9023. },
  9024. });
  9025. //! moment.js locale configuration
  9026. var months$6 = [
  9027. 'Eanáir',
  9028. 'Feabhra',
  9029. 'Márta',
  9030. 'Aibreán',
  9031. 'Bealtaine',
  9032. 'Meitheamh',
  9033. 'Iúil',
  9034. 'Lúnasa',
  9035. 'Meán Fómhair',
  9036. 'Deireadh Fómhair',
  9037. 'Samhain',
  9038. 'Nollaig',
  9039. ],
  9040. monthsShort$4 = [
  9041. 'Ean',
  9042. 'Feabh',
  9043. 'Márt',
  9044. 'Aib',
  9045. 'Beal',
  9046. 'Meith',
  9047. 'Iúil',
  9048. 'Lún',
  9049. 'M.F.',
  9050. 'D.F.',
  9051. 'Samh',
  9052. 'Noll',
  9053. ],
  9054. weekdays$1 = [
  9055. 'Dé Domhnaigh',
  9056. 'Dé Luain',
  9057. 'Dé Máirt',
  9058. 'Dé Céadaoin',
  9059. 'Déardaoin',
  9060. 'Dé hAoine',
  9061. 'Dé Sathairn',
  9062. ],
  9063. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  9064. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  9065. hooks.defineLocale('ga', {
  9066. months: months$6,
  9067. monthsShort: monthsShort$4,
  9068. monthsParseExact: true,
  9069. weekdays: weekdays$1,
  9070. weekdaysShort: weekdaysShort,
  9071. weekdaysMin: weekdaysMin,
  9072. longDateFormat: {
  9073. LT: 'HH:mm',
  9074. LTS: 'HH:mm:ss',
  9075. L: 'DD/MM/YYYY',
  9076. LL: 'D MMMM YYYY',
  9077. LLL: 'D MMMM YYYY HH:mm',
  9078. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9079. },
  9080. calendar: {
  9081. sameDay: '[Inniu ag] LT',
  9082. nextDay: '[Amárach ag] LT',
  9083. nextWeek: 'dddd [ag] LT',
  9084. lastDay: '[Inné ag] LT',
  9085. lastWeek: 'dddd [seo caite] [ag] LT',
  9086. sameElse: 'L',
  9087. },
  9088. relativeTime: {
  9089. future: 'i %s',
  9090. past: '%s ó shin',
  9091. s: 'cúpla soicind',
  9092. ss: '%d soicind',
  9093. m: 'nóiméad',
  9094. mm: '%d nóiméad',
  9095. h: 'uair an chloig',
  9096. hh: '%d uair an chloig',
  9097. d: 'lá',
  9098. dd: '%d lá',
  9099. M: 'mí',
  9100. MM: '%d míonna',
  9101. y: 'bliain',
  9102. yy: '%d bliain',
  9103. },
  9104. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9105. ordinal: function (number) {
  9106. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9107. return number + output;
  9108. },
  9109. week: {
  9110. dow: 1, // Monday is the first day of the week.
  9111. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9112. },
  9113. });
  9114. //! moment.js locale configuration
  9115. var months$7 = [
  9116. 'Am Faoilleach',
  9117. 'An Gearran',
  9118. 'Am Màrt',
  9119. 'An Giblean',
  9120. 'An Cèitean',
  9121. 'An t-Ògmhios',
  9122. 'An t-Iuchar',
  9123. 'An Lùnastal',
  9124. 'An t-Sultain',
  9125. 'An Dàmhair',
  9126. 'An t-Samhain',
  9127. 'An Dùbhlachd',
  9128. ],
  9129. monthsShort$5 = [
  9130. 'Faoi',
  9131. 'Gear',
  9132. 'Màrt',
  9133. 'Gibl',
  9134. 'Cèit',
  9135. 'Ògmh',
  9136. 'Iuch',
  9137. 'Lùn',
  9138. 'Sult',
  9139. 'Dàmh',
  9140. 'Samh',
  9141. 'Dùbh',
  9142. ],
  9143. weekdays$2 = [
  9144. 'Didòmhnaich',
  9145. 'Diluain',
  9146. 'Dimàirt',
  9147. 'Diciadain',
  9148. 'Diardaoin',
  9149. 'Dihaoine',
  9150. 'Disathairne',
  9151. ],
  9152. weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  9153. weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  9154. hooks.defineLocale('gd', {
  9155. months: months$7,
  9156. monthsShort: monthsShort$5,
  9157. monthsParseExact: true,
  9158. weekdays: weekdays$2,
  9159. weekdaysShort: weekdaysShort$1,
  9160. weekdaysMin: weekdaysMin$1,
  9161. longDateFormat: {
  9162. LT: 'HH:mm',
  9163. LTS: 'HH:mm:ss',
  9164. L: 'DD/MM/YYYY',
  9165. LL: 'D MMMM YYYY',
  9166. LLL: 'D MMMM YYYY HH:mm',
  9167. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9168. },
  9169. calendar: {
  9170. sameDay: '[An-diugh aig] LT',
  9171. nextDay: '[A-màireach aig] LT',
  9172. nextWeek: 'dddd [aig] LT',
  9173. lastDay: '[An-dè aig] LT',
  9174. lastWeek: 'dddd [seo chaidh] [aig] LT',
  9175. sameElse: 'L',
  9176. },
  9177. relativeTime: {
  9178. future: 'ann an %s',
  9179. past: 'bho chionn %s',
  9180. s: 'beagan diogan',
  9181. ss: '%d diogan',
  9182. m: 'mionaid',
  9183. mm: '%d mionaidean',
  9184. h: 'uair',
  9185. hh: '%d uairean',
  9186. d: 'latha',
  9187. dd: '%d latha',
  9188. M: 'mìos',
  9189. MM: '%d mìosan',
  9190. y: 'bliadhna',
  9191. yy: '%d bliadhna',
  9192. },
  9193. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9194. ordinal: function (number) {
  9195. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9196. return number + output;
  9197. },
  9198. week: {
  9199. dow: 1, // Monday is the first day of the week.
  9200. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9201. },
  9202. });
  9203. //! moment.js locale configuration
  9204. hooks.defineLocale('gl', {
  9205. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  9206. '_'
  9207. ),
  9208. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  9209. '_'
  9210. ),
  9211. monthsParseExact: true,
  9212. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9213. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9214. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9215. weekdaysParseExact: true,
  9216. longDateFormat: {
  9217. LT: 'H:mm',
  9218. LTS: 'H:mm:ss',
  9219. L: 'DD/MM/YYYY',
  9220. LL: 'D [de] MMMM [de] YYYY',
  9221. LLL: 'D [de] MMMM [de] YYYY H:mm',
  9222. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  9223. },
  9224. calendar: {
  9225. sameDay: function () {
  9226. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9227. },
  9228. nextDay: function () {
  9229. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9230. },
  9231. nextWeek: function () {
  9232. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  9233. },
  9234. lastDay: function () {
  9235. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  9236. },
  9237. lastWeek: function () {
  9238. return (
  9239. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
  9240. );
  9241. },
  9242. sameElse: 'L',
  9243. },
  9244. relativeTime: {
  9245. future: function (str) {
  9246. if (str.indexOf('un') === 0) {
  9247. return 'n' + str;
  9248. }
  9249. return 'en ' + str;
  9250. },
  9251. past: 'hai %s',
  9252. s: 'uns segundos',
  9253. ss: '%d segundos',
  9254. m: 'un minuto',
  9255. mm: '%d minutos',
  9256. h: 'unha hora',
  9257. hh: '%d horas',
  9258. d: 'un día',
  9259. dd: '%d días',
  9260. M: 'un mes',
  9261. MM: '%d meses',
  9262. y: 'un ano',
  9263. yy: '%d anos',
  9264. },
  9265. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9266. ordinal: '%dº',
  9267. week: {
  9268. dow: 1, // Monday is the first day of the week.
  9269. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9270. },
  9271. });
  9272. //! moment.js locale configuration
  9273. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  9274. var format = {
  9275. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  9276. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  9277. m: ['एका मिणटान', 'एक मिनूट'],
  9278. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  9279. h: ['एका वरान', 'एक वर'],
  9280. hh: [number + ' वरांनी', number + ' वरां'],
  9281. d: ['एका दिसान', 'एक दीस'],
  9282. dd: [number + ' दिसांनी', number + ' दीस'],
  9283. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  9284. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  9285. y: ['एका वर्सान', 'एक वर्स'],
  9286. yy: [number + ' वर्सांनी', number + ' वर्सां'],
  9287. };
  9288. return isFuture ? format[key][0] : format[key][1];
  9289. }
  9290. hooks.defineLocale('gom-deva', {
  9291. months: {
  9292. standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  9293. '_'
  9294. ),
  9295. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
  9296. '_'
  9297. ),
  9298. isFormat: /MMMM(\s)+D[oD]?/,
  9299. },
  9300. monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  9301. '_'
  9302. ),
  9303. monthsParseExact: true,
  9304. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  9305. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  9306. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  9307. weekdaysParseExact: true,
  9308. longDateFormat: {
  9309. LT: 'A h:mm [वाजतां]',
  9310. LTS: 'A h:mm:ss [वाजतां]',
  9311. L: 'DD-MM-YYYY',
  9312. LL: 'D MMMM YYYY',
  9313. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  9314. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  9315. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
  9316. },
  9317. calendar: {
  9318. sameDay: '[आयज] LT',
  9319. nextDay: '[फाल्यां] LT',
  9320. nextWeek: '[फुडलो] dddd[,] LT',
  9321. lastDay: '[काल] LT',
  9322. lastWeek: '[फाटलो] dddd[,] LT',
  9323. sameElse: 'L',
  9324. },
  9325. relativeTime: {
  9326. future: '%s',
  9327. past: '%s आदीं',
  9328. s: processRelativeTime$4,
  9329. ss: processRelativeTime$4,
  9330. m: processRelativeTime$4,
  9331. mm: processRelativeTime$4,
  9332. h: processRelativeTime$4,
  9333. hh: processRelativeTime$4,
  9334. d: processRelativeTime$4,
  9335. dd: processRelativeTime$4,
  9336. M: processRelativeTime$4,
  9337. MM: processRelativeTime$4,
  9338. y: processRelativeTime$4,
  9339. yy: processRelativeTime$4,
  9340. },
  9341. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  9342. ordinal: function (number, period) {
  9343. switch (period) {
  9344. // the ordinal 'वेर' only applies to day of the month
  9345. case 'D':
  9346. return number + 'वेर';
  9347. default:
  9348. case 'M':
  9349. case 'Q':
  9350. case 'DDD':
  9351. case 'd':
  9352. case 'w':
  9353. case 'W':
  9354. return number;
  9355. }
  9356. },
  9357. week: {
  9358. dow: 0, // Sunday is the first day of the week
  9359. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9360. },
  9361. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  9362. meridiemHour: function (hour, meridiem) {
  9363. if (hour === 12) {
  9364. hour = 0;
  9365. }
  9366. if (meridiem === 'राती') {
  9367. return hour < 4 ? hour : hour + 12;
  9368. } else if (meridiem === 'सकाळीं') {
  9369. return hour;
  9370. } else if (meridiem === 'दनपारां') {
  9371. return hour > 12 ? hour : hour + 12;
  9372. } else if (meridiem === 'सांजे') {
  9373. return hour + 12;
  9374. }
  9375. },
  9376. meridiem: function (hour, minute, isLower) {
  9377. if (hour < 4) {
  9378. return 'राती';
  9379. } else if (hour < 12) {
  9380. return 'सकाळीं';
  9381. } else if (hour < 16) {
  9382. return 'दनपारां';
  9383. } else if (hour < 20) {
  9384. return 'सांजे';
  9385. } else {
  9386. return 'राती';
  9387. }
  9388. },
  9389. });
  9390. //! moment.js locale configuration
  9391. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  9392. var format = {
  9393. s: ['thoddea sekondamni', 'thodde sekond'],
  9394. ss: [number + ' sekondamni', number + ' sekond'],
  9395. m: ['eka mintan', 'ek minut'],
  9396. mm: [number + ' mintamni', number + ' mintam'],
  9397. h: ['eka voran', 'ek vor'],
  9398. hh: [number + ' voramni', number + ' voram'],
  9399. d: ['eka disan', 'ek dis'],
  9400. dd: [number + ' disamni', number + ' dis'],
  9401. M: ['eka mhoinean', 'ek mhoino'],
  9402. MM: [number + ' mhoineamni', number + ' mhoine'],
  9403. y: ['eka vorsan', 'ek voros'],
  9404. yy: [number + ' vorsamni', number + ' vorsam'],
  9405. };
  9406. return isFuture ? format[key][0] : format[key][1];
  9407. }
  9408. hooks.defineLocale('gom-latn', {
  9409. months: {
  9410. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  9411. '_'
  9412. ),
  9413. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  9414. '_'
  9415. ),
  9416. isFormat: /MMMM(\s)+D[oD]?/,
  9417. },
  9418. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
  9419. '_'
  9420. ),
  9421. monthsParseExact: true,
  9422. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  9423. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9424. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9425. weekdaysParseExact: true,
  9426. longDateFormat: {
  9427. LT: 'A h:mm [vazta]',
  9428. LTS: 'A h:mm:ss [vazta]',
  9429. L: 'DD-MM-YYYY',
  9430. LL: 'D MMMM YYYY',
  9431. LLL: 'D MMMM YYYY A h:mm [vazta]',
  9432. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  9433. llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
  9434. },
  9435. calendar: {
  9436. sameDay: '[Aiz] LT',
  9437. nextDay: '[Faleam] LT',
  9438. nextWeek: '[Fuddlo] dddd[,] LT',
  9439. lastDay: '[Kal] LT',
  9440. lastWeek: '[Fattlo] dddd[,] LT',
  9441. sameElse: 'L',
  9442. },
  9443. relativeTime: {
  9444. future: '%s',
  9445. past: '%s adim',
  9446. s: processRelativeTime$5,
  9447. ss: processRelativeTime$5,
  9448. m: processRelativeTime$5,
  9449. mm: processRelativeTime$5,
  9450. h: processRelativeTime$5,
  9451. hh: processRelativeTime$5,
  9452. d: processRelativeTime$5,
  9453. dd: processRelativeTime$5,
  9454. M: processRelativeTime$5,
  9455. MM: processRelativeTime$5,
  9456. y: processRelativeTime$5,
  9457. yy: processRelativeTime$5,
  9458. },
  9459. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  9460. ordinal: function (number, period) {
  9461. switch (period) {
  9462. // the ordinal 'er' only applies to day of the month
  9463. case 'D':
  9464. return number + 'er';
  9465. default:
  9466. case 'M':
  9467. case 'Q':
  9468. case 'DDD':
  9469. case 'd':
  9470. case 'w':
  9471. case 'W':
  9472. return number;
  9473. }
  9474. },
  9475. week: {
  9476. dow: 0, // Sunday is the first day of the week
  9477. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9478. },
  9479. meridiemParse: /rati|sokallim|donparam|sanje/,
  9480. meridiemHour: function (hour, meridiem) {
  9481. if (hour === 12) {
  9482. hour = 0;
  9483. }
  9484. if (meridiem === 'rati') {
  9485. return hour < 4 ? hour : hour + 12;
  9486. } else if (meridiem === 'sokallim') {
  9487. return hour;
  9488. } else if (meridiem === 'donparam') {
  9489. return hour > 12 ? hour : hour + 12;
  9490. } else if (meridiem === 'sanje') {
  9491. return hour + 12;
  9492. }
  9493. },
  9494. meridiem: function (hour, minute, isLower) {
  9495. if (hour < 4) {
  9496. return 'rati';
  9497. } else if (hour < 12) {
  9498. return 'sokallim';
  9499. } else if (hour < 16) {
  9500. return 'donparam';
  9501. } else if (hour < 20) {
  9502. return 'sanje';
  9503. } else {
  9504. return 'rati';
  9505. }
  9506. },
  9507. });
  9508. //! moment.js locale configuration
  9509. var symbolMap$6 = {
  9510. '1': '૧',
  9511. '2': '૨',
  9512. '3': '૩',
  9513. '4': '૪',
  9514. '5': '૫',
  9515. '6': '૬',
  9516. '7': '૭',
  9517. '8': '૮',
  9518. '9': '૯',
  9519. '0': '૦',
  9520. },
  9521. numberMap$5 = {
  9522. '૧': '1',
  9523. '૨': '2',
  9524. '૩': '3',
  9525. '૪': '4',
  9526. '૫': '5',
  9527. '૬': '6',
  9528. '૭': '7',
  9529. '૮': '8',
  9530. '૯': '9',
  9531. '૦': '0',
  9532. };
  9533. hooks.defineLocale('gu', {
  9534. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
  9535. '_'
  9536. ),
  9537. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
  9538. '_'
  9539. ),
  9540. monthsParseExact: true,
  9541. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
  9542. '_'
  9543. ),
  9544. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  9545. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  9546. longDateFormat: {
  9547. LT: 'A h:mm વાગ્યે',
  9548. LTS: 'A h:mm:ss વાગ્યે',
  9549. L: 'DD/MM/YYYY',
  9550. LL: 'D MMMM YYYY',
  9551. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  9552. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
  9553. },
  9554. calendar: {
  9555. sameDay: '[આજ] LT',
  9556. nextDay: '[કાલે] LT',
  9557. nextWeek: 'dddd, LT',
  9558. lastDay: '[ગઇકાલે] LT',
  9559. lastWeek: '[પાછલા] dddd, LT',
  9560. sameElse: 'L',
  9561. },
  9562. relativeTime: {
  9563. future: '%s મા',
  9564. past: '%s પહેલા',
  9565. s: 'અમુક પળો',
  9566. ss: '%d સેકંડ',
  9567. m: 'એક મિનિટ',
  9568. mm: '%d મિનિટ',
  9569. h: 'એક કલાક',
  9570. hh: '%d કલાક',
  9571. d: 'એક દિવસ',
  9572. dd: '%d દિવસ',
  9573. M: 'એક મહિનો',
  9574. MM: '%d મહિનો',
  9575. y: 'એક વર્ષ',
  9576. yy: '%d વર્ષ',
  9577. },
  9578. preparse: function (string) {
  9579. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  9580. return numberMap$5[match];
  9581. });
  9582. },
  9583. postformat: function (string) {
  9584. return string.replace(/\d/g, function (match) {
  9585. return symbolMap$6[match];
  9586. });
  9587. },
  9588. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  9589. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  9590. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  9591. meridiemHour: function (hour, meridiem) {
  9592. if (hour === 12) {
  9593. hour = 0;
  9594. }
  9595. if (meridiem === 'રાત') {
  9596. return hour < 4 ? hour : hour + 12;
  9597. } else if (meridiem === 'સવાર') {
  9598. return hour;
  9599. } else if (meridiem === 'બપોર') {
  9600. return hour >= 10 ? hour : hour + 12;
  9601. } else if (meridiem === 'સાંજ') {
  9602. return hour + 12;
  9603. }
  9604. },
  9605. meridiem: function (hour, minute, isLower) {
  9606. if (hour < 4) {
  9607. return 'રાત';
  9608. } else if (hour < 10) {
  9609. return 'સવાર';
  9610. } else if (hour < 17) {
  9611. return 'બપોર';
  9612. } else if (hour < 20) {
  9613. return 'સાંજ';
  9614. } else {
  9615. return 'રાત';
  9616. }
  9617. },
  9618. week: {
  9619. dow: 0, // Sunday is the first day of the week.
  9620. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9621. },
  9622. });
  9623. //! moment.js locale configuration
  9624. hooks.defineLocale('he', {
  9625. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
  9626. '_'
  9627. ),
  9628. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
  9629. '_'
  9630. ),
  9631. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  9632. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  9633. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  9634. longDateFormat: {
  9635. LT: 'HH:mm',
  9636. LTS: 'HH:mm:ss',
  9637. L: 'DD/MM/YYYY',
  9638. LL: 'D [ב]MMMM YYYY',
  9639. LLL: 'D [ב]MMMM YYYY HH:mm',
  9640. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  9641. l: 'D/M/YYYY',
  9642. ll: 'D MMM YYYY',
  9643. lll: 'D MMM YYYY HH:mm',
  9644. llll: 'ddd, D MMM YYYY HH:mm',
  9645. },
  9646. calendar: {
  9647. sameDay: '[היום ב־]LT',
  9648. nextDay: '[מחר ב־]LT',
  9649. nextWeek: 'dddd [בשעה] LT',
  9650. lastDay: '[אתמול ב־]LT',
  9651. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  9652. sameElse: 'L',
  9653. },
  9654. relativeTime: {
  9655. future: 'בעוד %s',
  9656. past: 'לפני %s',
  9657. s: 'מספר שניות',
  9658. ss: '%d שניות',
  9659. m: 'דקה',
  9660. mm: '%d דקות',
  9661. h: 'שעה',
  9662. hh: function (number) {
  9663. if (number === 2) {
  9664. return 'שעתיים';
  9665. }
  9666. return number + ' שעות';
  9667. },
  9668. d: 'יום',
  9669. dd: function (number) {
  9670. if (number === 2) {
  9671. return 'יומיים';
  9672. }
  9673. return number + ' ימים';
  9674. },
  9675. M: 'חודש',
  9676. MM: function (number) {
  9677. if (number === 2) {
  9678. return 'חודשיים';
  9679. }
  9680. return number + ' חודשים';
  9681. },
  9682. y: 'שנה',
  9683. yy: function (number) {
  9684. if (number === 2) {
  9685. return 'שנתיים';
  9686. } else if (number % 10 === 0 && number !== 10) {
  9687. return number + ' שנה';
  9688. }
  9689. return number + ' שנים';
  9690. },
  9691. },
  9692. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  9693. isPM: function (input) {
  9694. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  9695. },
  9696. meridiem: function (hour, minute, isLower) {
  9697. if (hour < 5) {
  9698. return 'לפנות בוקר';
  9699. } else if (hour < 10) {
  9700. return 'בבוקר';
  9701. } else if (hour < 12) {
  9702. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  9703. } else if (hour < 18) {
  9704. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  9705. } else {
  9706. return 'בערב';
  9707. }
  9708. },
  9709. });
  9710. //! moment.js locale configuration
  9711. var symbolMap$7 = {
  9712. '1': '१',
  9713. '2': '२',
  9714. '3': '३',
  9715. '4': '४',
  9716. '5': '५',
  9717. '6': '६',
  9718. '7': '७',
  9719. '8': '८',
  9720. '9': '९',
  9721. '0': '०',
  9722. },
  9723. numberMap$6 = {
  9724. '१': '1',
  9725. '२': '2',
  9726. '३': '3',
  9727. '४': '4',
  9728. '५': '5',
  9729. '६': '6',
  9730. '७': '7',
  9731. '८': '8',
  9732. '९': '9',
  9733. '०': '0',
  9734. };
  9735. hooks.defineLocale('hi', {
  9736. months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
  9737. '_'
  9738. ),
  9739. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
  9740. '_'
  9741. ),
  9742. monthsParseExact: true,
  9743. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9744. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  9745. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9746. longDateFormat: {
  9747. LT: 'A h:mm बजे',
  9748. LTS: 'A h:mm:ss बजे',
  9749. L: 'DD/MM/YYYY',
  9750. LL: 'D MMMM YYYY',
  9751. LLL: 'D MMMM YYYY, A h:mm बजे',
  9752. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
  9753. },
  9754. calendar: {
  9755. sameDay: '[आज] LT',
  9756. nextDay: '[कल] LT',
  9757. nextWeek: 'dddd, LT',
  9758. lastDay: '[कल] LT',
  9759. lastWeek: '[पिछले] dddd, LT',
  9760. sameElse: 'L',
  9761. },
  9762. relativeTime: {
  9763. future: '%s में',
  9764. past: '%s पहले',
  9765. s: 'कुछ ही क्षण',
  9766. ss: '%d सेकंड',
  9767. m: 'एक मिनट',
  9768. mm: '%d मिनट',
  9769. h: 'एक घंटा',
  9770. hh: '%d घंटे',
  9771. d: 'एक दिन',
  9772. dd: '%d दिन',
  9773. M: 'एक महीने',
  9774. MM: '%d महीने',
  9775. y: 'एक वर्ष',
  9776. yy: '%d वर्ष',
  9777. },
  9778. preparse: function (string) {
  9779. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9780. return numberMap$6[match];
  9781. });
  9782. },
  9783. postformat: function (string) {
  9784. return string.replace(/\d/g, function (match) {
  9785. return symbolMap$7[match];
  9786. });
  9787. },
  9788. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  9789. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  9790. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  9791. meridiemHour: function (hour, meridiem) {
  9792. if (hour === 12) {
  9793. hour = 0;
  9794. }
  9795. if (meridiem === 'रात') {
  9796. return hour < 4 ? hour : hour + 12;
  9797. } else if (meridiem === 'सुबह') {
  9798. return hour;
  9799. } else if (meridiem === 'दोपहर') {
  9800. return hour >= 10 ? hour : hour + 12;
  9801. } else if (meridiem === 'शाम') {
  9802. return hour + 12;
  9803. }
  9804. },
  9805. meridiem: function (hour, minute, isLower) {
  9806. if (hour < 4) {
  9807. return 'रात';
  9808. } else if (hour < 10) {
  9809. return 'सुबह';
  9810. } else if (hour < 17) {
  9811. return 'दोपहर';
  9812. } else if (hour < 20) {
  9813. return 'शाम';
  9814. } else {
  9815. return 'रात';
  9816. }
  9817. },
  9818. week: {
  9819. dow: 0, // Sunday is the first day of the week.
  9820. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9821. },
  9822. });
  9823. //! moment.js locale configuration
  9824. function translate$3(number, withoutSuffix, key) {
  9825. var result = number + ' ';
  9826. switch (key) {
  9827. case 'ss':
  9828. if (number === 1) {
  9829. result += 'sekunda';
  9830. } else if (number === 2 || number === 3 || number === 4) {
  9831. result += 'sekunde';
  9832. } else {
  9833. result += 'sekundi';
  9834. }
  9835. return result;
  9836. case 'm':
  9837. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  9838. case 'mm':
  9839. if (number === 1) {
  9840. result += 'minuta';
  9841. } else if (number === 2 || number === 3 || number === 4) {
  9842. result += 'minute';
  9843. } else {
  9844. result += 'minuta';
  9845. }
  9846. return result;
  9847. case 'h':
  9848. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  9849. case 'hh':
  9850. if (number === 1) {
  9851. result += 'sat';
  9852. } else if (number === 2 || number === 3 || number === 4) {
  9853. result += 'sata';
  9854. } else {
  9855. result += 'sati';
  9856. }
  9857. return result;
  9858. case 'dd':
  9859. if (number === 1) {
  9860. result += 'dan';
  9861. } else {
  9862. result += 'dana';
  9863. }
  9864. return result;
  9865. case 'MM':
  9866. if (number === 1) {
  9867. result += 'mjesec';
  9868. } else if (number === 2 || number === 3 || number === 4) {
  9869. result += 'mjeseca';
  9870. } else {
  9871. result += 'mjeseci';
  9872. }
  9873. return result;
  9874. case 'yy':
  9875. if (number === 1) {
  9876. result += 'godina';
  9877. } else if (number === 2 || number === 3 || number === 4) {
  9878. result += 'godine';
  9879. } else {
  9880. result += 'godina';
  9881. }
  9882. return result;
  9883. }
  9884. }
  9885. hooks.defineLocale('hr', {
  9886. months: {
  9887. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  9888. '_'
  9889. ),
  9890. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  9891. '_'
  9892. ),
  9893. },
  9894. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  9895. '_'
  9896. ),
  9897. monthsParseExact: true,
  9898. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  9899. '_'
  9900. ),
  9901. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  9902. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  9903. weekdaysParseExact: true,
  9904. longDateFormat: {
  9905. LT: 'H:mm',
  9906. LTS: 'H:mm:ss',
  9907. L: 'DD.MM.YYYY',
  9908. LL: 'Do MMMM YYYY',
  9909. LLL: 'Do MMMM YYYY H:mm',
  9910. LLLL: 'dddd, Do MMMM YYYY H:mm',
  9911. },
  9912. calendar: {
  9913. sameDay: '[danas u] LT',
  9914. nextDay: '[sutra u] LT',
  9915. nextWeek: function () {
  9916. switch (this.day()) {
  9917. case 0:
  9918. return '[u] [nedjelju] [u] LT';
  9919. case 3:
  9920. return '[u] [srijedu] [u] LT';
  9921. case 6:
  9922. return '[u] [subotu] [u] LT';
  9923. case 1:
  9924. case 2:
  9925. case 4:
  9926. case 5:
  9927. return '[u] dddd [u] LT';
  9928. }
  9929. },
  9930. lastDay: '[jučer u] LT',
  9931. lastWeek: function () {
  9932. switch (this.day()) {
  9933. case 0:
  9934. return '[prošlu] [nedjelju] [u] LT';
  9935. case 3:
  9936. return '[prošlu] [srijedu] [u] LT';
  9937. case 6:
  9938. return '[prošle] [subote] [u] LT';
  9939. case 1:
  9940. case 2:
  9941. case 4:
  9942. case 5:
  9943. return '[prošli] dddd [u] LT';
  9944. }
  9945. },
  9946. sameElse: 'L',
  9947. },
  9948. relativeTime: {
  9949. future: 'za %s',
  9950. past: 'prije %s',
  9951. s: 'par sekundi',
  9952. ss: translate$3,
  9953. m: translate$3,
  9954. mm: translate$3,
  9955. h: translate$3,
  9956. hh: translate$3,
  9957. d: 'dan',
  9958. dd: translate$3,
  9959. M: 'mjesec',
  9960. MM: translate$3,
  9961. y: 'godinu',
  9962. yy: translate$3,
  9963. },
  9964. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9965. ordinal: '%d.',
  9966. week: {
  9967. dow: 1, // Monday is the first day of the week.
  9968. doy: 7, // The week that contains Jan 7th is the first week of the year.
  9969. },
  9970. });
  9971. //! moment.js locale configuration
  9972. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
  9973. ' '
  9974. );
  9975. function translate$4(number, withoutSuffix, key, isFuture) {
  9976. var num = number;
  9977. switch (key) {
  9978. case 's':
  9979. return isFuture || withoutSuffix
  9980. ? 'néhány másodperc'
  9981. : 'néhány másodperce';
  9982. case 'ss':
  9983. return num + (isFuture || withoutSuffix)
  9984. ? ' másodperc'
  9985. : ' másodperce';
  9986. case 'm':
  9987. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  9988. case 'mm':
  9989. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  9990. case 'h':
  9991. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  9992. case 'hh':
  9993. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  9994. case 'd':
  9995. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  9996. case 'dd':
  9997. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  9998. case 'M':
  9999. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10000. case 'MM':
  10001. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10002. case 'y':
  10003. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  10004. case 'yy':
  10005. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  10006. }
  10007. return '';
  10008. }
  10009. function week(isFuture) {
  10010. return (
  10011. (isFuture ? '' : '[múlt] ') +
  10012. '[' +
  10013. weekEndings[this.day()] +
  10014. '] LT[-kor]'
  10015. );
  10016. }
  10017. hooks.defineLocale('hu', {
  10018. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
  10019. '_'
  10020. ),
  10021. monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split(
  10022. '_'
  10023. ),
  10024. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  10025. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  10026. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  10027. longDateFormat: {
  10028. LT: 'H:mm',
  10029. LTS: 'H:mm:ss',
  10030. L: 'YYYY.MM.DD.',
  10031. LL: 'YYYY. MMMM D.',
  10032. LLL: 'YYYY. MMMM D. H:mm',
  10033. LLLL: 'YYYY. MMMM D., dddd H:mm',
  10034. },
  10035. meridiemParse: /de|du/i,
  10036. isPM: function (input) {
  10037. return input.charAt(1).toLowerCase() === 'u';
  10038. },
  10039. meridiem: function (hours, minutes, isLower) {
  10040. if (hours < 12) {
  10041. return isLower === true ? 'de' : 'DE';
  10042. } else {
  10043. return isLower === true ? 'du' : 'DU';
  10044. }
  10045. },
  10046. calendar: {
  10047. sameDay: '[ma] LT[-kor]',
  10048. nextDay: '[holnap] LT[-kor]',
  10049. nextWeek: function () {
  10050. return week.call(this, true);
  10051. },
  10052. lastDay: '[tegnap] LT[-kor]',
  10053. lastWeek: function () {
  10054. return week.call(this, false);
  10055. },
  10056. sameElse: 'L',
  10057. },
  10058. relativeTime: {
  10059. future: '%s múlva',
  10060. past: '%s',
  10061. s: translate$4,
  10062. ss: translate$4,
  10063. m: translate$4,
  10064. mm: translate$4,
  10065. h: translate$4,
  10066. hh: translate$4,
  10067. d: translate$4,
  10068. dd: translate$4,
  10069. M: translate$4,
  10070. MM: translate$4,
  10071. y: translate$4,
  10072. yy: translate$4,
  10073. },
  10074. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10075. ordinal: '%d.',
  10076. week: {
  10077. dow: 1, // Monday is the first day of the week.
  10078. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10079. },
  10080. });
  10081. //! moment.js locale configuration
  10082. hooks.defineLocale('hy-am', {
  10083. months: {
  10084. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
  10085. '_'
  10086. ),
  10087. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
  10088. '_'
  10089. ),
  10090. },
  10091. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  10092. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
  10093. '_'
  10094. ),
  10095. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10096. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10097. longDateFormat: {
  10098. LT: 'HH:mm',
  10099. LTS: 'HH:mm:ss',
  10100. L: 'DD.MM.YYYY',
  10101. LL: 'D MMMM YYYY թ.',
  10102. LLL: 'D MMMM YYYY թ., HH:mm',
  10103. LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
  10104. },
  10105. calendar: {
  10106. sameDay: '[այսօր] LT',
  10107. nextDay: '[վաղը] LT',
  10108. lastDay: '[երեկ] LT',
  10109. nextWeek: function () {
  10110. return 'dddd [օրը ժամը] LT';
  10111. },
  10112. lastWeek: function () {
  10113. return '[անցած] dddd [օրը ժամը] LT';
  10114. },
  10115. sameElse: 'L',
  10116. },
  10117. relativeTime: {
  10118. future: '%s հետո',
  10119. past: '%s առաջ',
  10120. s: 'մի քանի վայրկյան',
  10121. ss: '%d վայրկյան',
  10122. m: 'րոպե',
  10123. mm: '%d րոպե',
  10124. h: 'ժամ',
  10125. hh: '%d ժամ',
  10126. d: 'օր',
  10127. dd: '%d օր',
  10128. M: 'ամիս',
  10129. MM: '%d ամիս',
  10130. y: 'տարի',
  10131. yy: '%d տարի',
  10132. },
  10133. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  10134. isPM: function (input) {
  10135. return /^(ցերեկվա|երեկոյան)$/.test(input);
  10136. },
  10137. meridiem: function (hour) {
  10138. if (hour < 4) {
  10139. return 'գիշերվա';
  10140. } else if (hour < 12) {
  10141. return 'առավոտվա';
  10142. } else if (hour < 17) {
  10143. return 'ցերեկվա';
  10144. } else {
  10145. return 'երեկոյան';
  10146. }
  10147. },
  10148. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  10149. ordinal: function (number, period) {
  10150. switch (period) {
  10151. case 'DDD':
  10152. case 'w':
  10153. case 'W':
  10154. case 'DDDo':
  10155. if (number === 1) {
  10156. return number + '-ին';
  10157. }
  10158. return number + '-րդ';
  10159. default:
  10160. return number;
  10161. }
  10162. },
  10163. week: {
  10164. dow: 1, // Monday is the first day of the week.
  10165. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10166. },
  10167. });
  10168. //! moment.js locale configuration
  10169. hooks.defineLocale('id', {
  10170. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
  10171. '_'
  10172. ),
  10173. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  10174. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  10175. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  10176. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  10177. longDateFormat: {
  10178. LT: 'HH.mm',
  10179. LTS: 'HH.mm.ss',
  10180. L: 'DD/MM/YYYY',
  10181. LL: 'D MMMM YYYY',
  10182. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10183. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10184. },
  10185. meridiemParse: /pagi|siang|sore|malam/,
  10186. meridiemHour: function (hour, meridiem) {
  10187. if (hour === 12) {
  10188. hour = 0;
  10189. }
  10190. if (meridiem === 'pagi') {
  10191. return hour;
  10192. } else if (meridiem === 'siang') {
  10193. return hour >= 11 ? hour : hour + 12;
  10194. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10195. return hour + 12;
  10196. }
  10197. },
  10198. meridiem: function (hours, minutes, isLower) {
  10199. if (hours < 11) {
  10200. return 'pagi';
  10201. } else if (hours < 15) {
  10202. return 'siang';
  10203. } else if (hours < 19) {
  10204. return 'sore';
  10205. } else {
  10206. return 'malam';
  10207. }
  10208. },
  10209. calendar: {
  10210. sameDay: '[Hari ini pukul] LT',
  10211. nextDay: '[Besok pukul] LT',
  10212. nextWeek: 'dddd [pukul] LT',
  10213. lastDay: '[Kemarin pukul] LT',
  10214. lastWeek: 'dddd [lalu pukul] LT',
  10215. sameElse: 'L',
  10216. },
  10217. relativeTime: {
  10218. future: 'dalam %s',
  10219. past: '%s yang lalu',
  10220. s: 'beberapa detik',
  10221. ss: '%d detik',
  10222. m: 'semenit',
  10223. mm: '%d menit',
  10224. h: 'sejam',
  10225. hh: '%d jam',
  10226. d: 'sehari',
  10227. dd: '%d hari',
  10228. M: 'sebulan',
  10229. MM: '%d bulan',
  10230. y: 'setahun',
  10231. yy: '%d tahun',
  10232. },
  10233. week: {
  10234. dow: 0, // Sunday is the first day of the week.
  10235. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10236. },
  10237. });
  10238. //! moment.js locale configuration
  10239. function plural$2(n) {
  10240. if (n % 100 === 11) {
  10241. return true;
  10242. } else if (n % 10 === 1) {
  10243. return false;
  10244. }
  10245. return true;
  10246. }
  10247. function translate$5(number, withoutSuffix, key, isFuture) {
  10248. var result = number + ' ';
  10249. switch (key) {
  10250. case 's':
  10251. return withoutSuffix || isFuture
  10252. ? 'nokkrar sekúndur'
  10253. : 'nokkrum sekúndum';
  10254. case 'ss':
  10255. if (plural$2(number)) {
  10256. return (
  10257. result +
  10258. (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
  10259. );
  10260. }
  10261. return result + 'sekúnda';
  10262. case 'm':
  10263. return withoutSuffix ? 'mínúta' : 'mínútu';
  10264. case 'mm':
  10265. if (plural$2(number)) {
  10266. return (
  10267. result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
  10268. );
  10269. } else if (withoutSuffix) {
  10270. return result + 'mínúta';
  10271. }
  10272. return result + 'mínútu';
  10273. case 'hh':
  10274. if (plural$2(number)) {
  10275. return (
  10276. result +
  10277. (withoutSuffix || isFuture
  10278. ? 'klukkustundir'
  10279. : 'klukkustundum')
  10280. );
  10281. }
  10282. return result + 'klukkustund';
  10283. case 'd':
  10284. if (withoutSuffix) {
  10285. return 'dagur';
  10286. }
  10287. return isFuture ? 'dag' : 'degi';
  10288. case 'dd':
  10289. if (plural$2(number)) {
  10290. if (withoutSuffix) {
  10291. return result + 'dagar';
  10292. }
  10293. return result + (isFuture ? 'daga' : 'dögum');
  10294. } else if (withoutSuffix) {
  10295. return result + 'dagur';
  10296. }
  10297. return result + (isFuture ? 'dag' : 'degi');
  10298. case 'M':
  10299. if (withoutSuffix) {
  10300. return 'mánuður';
  10301. }
  10302. return isFuture ? 'mánuð' : 'mánuði';
  10303. case 'MM':
  10304. if (plural$2(number)) {
  10305. if (withoutSuffix) {
  10306. return result + 'mánuðir';
  10307. }
  10308. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10309. } else if (withoutSuffix) {
  10310. return result + 'mánuður';
  10311. }
  10312. return result + (isFuture ? 'mánuð' : 'mánuði');
  10313. case 'y':
  10314. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10315. case 'yy':
  10316. if (plural$2(number)) {
  10317. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10318. }
  10319. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10320. }
  10321. }
  10322. hooks.defineLocale('is', {
  10323. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
  10324. '_'
  10325. ),
  10326. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10327. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
  10328. '_'
  10329. ),
  10330. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10331. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10332. longDateFormat: {
  10333. LT: 'H:mm',
  10334. LTS: 'H:mm:ss',
  10335. L: 'DD.MM.YYYY',
  10336. LL: 'D. MMMM YYYY',
  10337. LLL: 'D. MMMM YYYY [kl.] H:mm',
  10338. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
  10339. },
  10340. calendar: {
  10341. sameDay: '[í dag kl.] LT',
  10342. nextDay: '[á morgun kl.] LT',
  10343. nextWeek: 'dddd [kl.] LT',
  10344. lastDay: '[í gær kl.] LT',
  10345. lastWeek: '[síðasta] dddd [kl.] LT',
  10346. sameElse: 'L',
  10347. },
  10348. relativeTime: {
  10349. future: 'eftir %s',
  10350. past: 'fyrir %s síðan',
  10351. s: translate$5,
  10352. ss: translate$5,
  10353. m: translate$5,
  10354. mm: translate$5,
  10355. h: 'klukkustund',
  10356. hh: translate$5,
  10357. d: translate$5,
  10358. dd: translate$5,
  10359. M: translate$5,
  10360. MM: translate$5,
  10361. y: translate$5,
  10362. yy: translate$5,
  10363. },
  10364. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10365. ordinal: '%d.',
  10366. week: {
  10367. dow: 1, // Monday is the first day of the week.
  10368. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10369. },
  10370. });
  10371. //! moment.js locale configuration
  10372. hooks.defineLocale('it-ch', {
  10373. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10374. '_'
  10375. ),
  10376. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10377. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10378. '_'
  10379. ),
  10380. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10381. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10382. longDateFormat: {
  10383. LT: 'HH:mm',
  10384. LTS: 'HH:mm:ss',
  10385. L: 'DD.MM.YYYY',
  10386. LL: 'D MMMM YYYY',
  10387. LLL: 'D MMMM YYYY HH:mm',
  10388. LLLL: 'dddd D MMMM YYYY HH:mm',
  10389. },
  10390. calendar: {
  10391. sameDay: '[Oggi alle] LT',
  10392. nextDay: '[Domani alle] LT',
  10393. nextWeek: 'dddd [alle] LT',
  10394. lastDay: '[Ieri alle] LT',
  10395. lastWeek: function () {
  10396. switch (this.day()) {
  10397. case 0:
  10398. return '[la scorsa] dddd [alle] LT';
  10399. default:
  10400. return '[lo scorso] dddd [alle] LT';
  10401. }
  10402. },
  10403. sameElse: 'L',
  10404. },
  10405. relativeTime: {
  10406. future: function (s) {
  10407. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  10408. },
  10409. past: '%s fa',
  10410. s: 'alcuni secondi',
  10411. ss: '%d secondi',
  10412. m: 'un minuto',
  10413. mm: '%d minuti',
  10414. h: "un'ora",
  10415. hh: '%d ore',
  10416. d: 'un giorno',
  10417. dd: '%d giorni',
  10418. M: 'un mese',
  10419. MM: '%d mesi',
  10420. y: 'un anno',
  10421. yy: '%d anni',
  10422. },
  10423. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10424. ordinal: '%dº',
  10425. week: {
  10426. dow: 1, // Monday is the first day of the week.
  10427. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10428. },
  10429. });
  10430. //! moment.js locale configuration
  10431. hooks.defineLocale('it', {
  10432. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10433. '_'
  10434. ),
  10435. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10436. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10437. '_'
  10438. ),
  10439. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10440. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10441. longDateFormat: {
  10442. LT: 'HH:mm',
  10443. LTS: 'HH:mm:ss',
  10444. L: 'DD/MM/YYYY',
  10445. LL: 'D MMMM YYYY',
  10446. LLL: 'D MMMM YYYY HH:mm',
  10447. LLLL: 'dddd D MMMM YYYY HH:mm',
  10448. },
  10449. calendar: {
  10450. sameDay: function () {
  10451. return (
  10452. '[Oggi a' +
  10453. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10454. ']LT'
  10455. );
  10456. },
  10457. nextDay: function () {
  10458. return (
  10459. '[Domani a' +
  10460. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10461. ']LT'
  10462. );
  10463. },
  10464. nextWeek: function () {
  10465. return (
  10466. 'dddd [a' +
  10467. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10468. ']LT'
  10469. );
  10470. },
  10471. lastDay: function () {
  10472. return (
  10473. '[Ieri a' +
  10474. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10475. ']LT'
  10476. );
  10477. },
  10478. lastWeek: function () {
  10479. switch (this.day()) {
  10480. case 0:
  10481. return (
  10482. '[La scorsa] dddd [a' +
  10483. (this.hours() > 1
  10484. ? 'lle '
  10485. : this.hours() === 0
  10486. ? ' '
  10487. : "ll'") +
  10488. ']LT'
  10489. );
  10490. default:
  10491. return (
  10492. '[Lo scorso] dddd [a' +
  10493. (this.hours() > 1
  10494. ? 'lle '
  10495. : this.hours() === 0
  10496. ? ' '
  10497. : "ll'") +
  10498. ']LT'
  10499. );
  10500. }
  10501. },
  10502. sameElse: 'L',
  10503. },
  10504. relativeTime: {
  10505. future: 'tra %s',
  10506. past: '%s fa',
  10507. s: 'alcuni secondi',
  10508. ss: '%d secondi',
  10509. m: 'un minuto',
  10510. mm: '%d minuti',
  10511. h: "un'ora",
  10512. hh: '%d ore',
  10513. d: 'un giorno',
  10514. dd: '%d giorni',
  10515. M: 'un mese',
  10516. MM: '%d mesi',
  10517. y: 'un anno',
  10518. yy: '%d anni',
  10519. },
  10520. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10521. ordinal: '%dº',
  10522. week: {
  10523. dow: 1, // Monday is the first day of the week.
  10524. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10525. },
  10526. });
  10527. //! moment.js locale configuration
  10528. hooks.defineLocale('ja', {
  10529. eras: [
  10530. {
  10531. since: '2019-05-01',
  10532. offset: 1,
  10533. name: '令和',
  10534. narrow: '㋿',
  10535. abbr: 'R',
  10536. },
  10537. {
  10538. since: '1989-01-08',
  10539. until: '2019-04-30',
  10540. offset: 1,
  10541. name: '平成',
  10542. narrow: '㍻',
  10543. abbr: 'H',
  10544. },
  10545. {
  10546. since: '1926-12-25',
  10547. until: '1989-01-07',
  10548. offset: 1,
  10549. name: '昭和',
  10550. narrow: '㍼',
  10551. abbr: 'S',
  10552. },
  10553. {
  10554. since: '1912-07-30',
  10555. until: '1926-12-24',
  10556. offset: 1,
  10557. name: '大正',
  10558. narrow: '㍽',
  10559. abbr: 'T',
  10560. },
  10561. {
  10562. since: '1873-01-01',
  10563. until: '1912-07-29',
  10564. offset: 6,
  10565. name: '明治',
  10566. narrow: '㍾',
  10567. abbr: 'M',
  10568. },
  10569. {
  10570. since: '0001-01-01',
  10571. until: '1873-12-31',
  10572. offset: 1,
  10573. name: '西暦',
  10574. narrow: 'AD',
  10575. abbr: 'AD',
  10576. },
  10577. {
  10578. since: '0000-12-31',
  10579. until: -Infinity,
  10580. offset: 1,
  10581. name: '紀元前',
  10582. narrow: 'BC',
  10583. abbr: 'BC',
  10584. },
  10585. ],
  10586. eraYearOrdinalRegex: /(元|\d+)年/,
  10587. eraYearOrdinalParse: function (input, match) {
  10588. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  10589. },
  10590. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10591. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  10592. '_'
  10593. ),
  10594. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  10595. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  10596. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  10597. longDateFormat: {
  10598. LT: 'HH:mm',
  10599. LTS: 'HH:mm:ss',
  10600. L: 'YYYY/MM/DD',
  10601. LL: 'YYYY年M月D日',
  10602. LLL: 'YYYY年M月D日 HH:mm',
  10603. LLLL: 'YYYY年M月D日 dddd HH:mm',
  10604. l: 'YYYY/MM/DD',
  10605. ll: 'YYYY年M月D日',
  10606. lll: 'YYYY年M月D日 HH:mm',
  10607. llll: 'YYYY年M月D日(ddd) HH:mm',
  10608. },
  10609. meridiemParse: /午前|午後/i,
  10610. isPM: function (input) {
  10611. return input === '午後';
  10612. },
  10613. meridiem: function (hour, minute, isLower) {
  10614. if (hour < 12) {
  10615. return '午前';
  10616. } else {
  10617. return '午後';
  10618. }
  10619. },
  10620. calendar: {
  10621. sameDay: '[今日] LT',
  10622. nextDay: '[明日] LT',
  10623. nextWeek: function (now) {
  10624. if (now.week() !== this.week()) {
  10625. return '[来週]dddd LT';
  10626. } else {
  10627. return 'dddd LT';
  10628. }
  10629. },
  10630. lastDay: '[昨日] LT',
  10631. lastWeek: function (now) {
  10632. if (this.week() !== now.week()) {
  10633. return '[先週]dddd LT';
  10634. } else {
  10635. return 'dddd LT';
  10636. }
  10637. },
  10638. sameElse: 'L',
  10639. },
  10640. dayOfMonthOrdinalParse: /\d{1,2}日/,
  10641. ordinal: function (number, period) {
  10642. switch (period) {
  10643. case 'y':
  10644. return number === 1 ? '元年' : number + '年';
  10645. case 'd':
  10646. case 'D':
  10647. case 'DDD':
  10648. return number + '日';
  10649. default:
  10650. return number;
  10651. }
  10652. },
  10653. relativeTime: {
  10654. future: '%s後',
  10655. past: '%s前',
  10656. s: '数秒',
  10657. ss: '%d秒',
  10658. m: '1分',
  10659. mm: '%d分',
  10660. h: '1時間',
  10661. hh: '%d時間',
  10662. d: '1日',
  10663. dd: '%d日',
  10664. M: '1ヶ月',
  10665. MM: '%dヶ月',
  10666. y: '1年',
  10667. yy: '%d年',
  10668. },
  10669. });
  10670. //! moment.js locale configuration
  10671. hooks.defineLocale('jv', {
  10672. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  10673. '_'
  10674. ),
  10675. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  10676. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  10677. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  10678. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  10679. longDateFormat: {
  10680. LT: 'HH.mm',
  10681. LTS: 'HH.mm.ss',
  10682. L: 'DD/MM/YYYY',
  10683. LL: 'D MMMM YYYY',
  10684. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10685. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10686. },
  10687. meridiemParse: /enjing|siyang|sonten|ndalu/,
  10688. meridiemHour: function (hour, meridiem) {
  10689. if (hour === 12) {
  10690. hour = 0;
  10691. }
  10692. if (meridiem === 'enjing') {
  10693. return hour;
  10694. } else if (meridiem === 'siyang') {
  10695. return hour >= 11 ? hour : hour + 12;
  10696. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  10697. return hour + 12;
  10698. }
  10699. },
  10700. meridiem: function (hours, minutes, isLower) {
  10701. if (hours < 11) {
  10702. return 'enjing';
  10703. } else if (hours < 15) {
  10704. return 'siyang';
  10705. } else if (hours < 19) {
  10706. return 'sonten';
  10707. } else {
  10708. return 'ndalu';
  10709. }
  10710. },
  10711. calendar: {
  10712. sameDay: '[Dinten puniko pukul] LT',
  10713. nextDay: '[Mbenjang pukul] LT',
  10714. nextWeek: 'dddd [pukul] LT',
  10715. lastDay: '[Kala wingi pukul] LT',
  10716. lastWeek: 'dddd [kepengker pukul] LT',
  10717. sameElse: 'L',
  10718. },
  10719. relativeTime: {
  10720. future: 'wonten ing %s',
  10721. past: '%s ingkang kepengker',
  10722. s: 'sawetawis detik',
  10723. ss: '%d detik',
  10724. m: 'setunggal menit',
  10725. mm: '%d menit',
  10726. h: 'setunggal jam',
  10727. hh: '%d jam',
  10728. d: 'sedinten',
  10729. dd: '%d dinten',
  10730. M: 'sewulan',
  10731. MM: '%d wulan',
  10732. y: 'setaun',
  10733. yy: '%d taun',
  10734. },
  10735. week: {
  10736. dow: 1, // Monday is the first day of the week.
  10737. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10738. },
  10739. });
  10740. //! moment.js locale configuration
  10741. hooks.defineLocale('ka', {
  10742. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
  10743. '_'
  10744. ),
  10745. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  10746. weekdays: {
  10747. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
  10748. '_'
  10749. ),
  10750. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
  10751. '_'
  10752. ),
  10753. isFormat: /(წინა|შემდეგ)/,
  10754. },
  10755. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  10756. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  10757. longDateFormat: {
  10758. LT: 'HH:mm',
  10759. LTS: 'HH:mm:ss',
  10760. L: 'DD/MM/YYYY',
  10761. LL: 'D MMMM YYYY',
  10762. LLL: 'D MMMM YYYY HH:mm',
  10763. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10764. },
  10765. calendar: {
  10766. sameDay: '[დღეს] LT[-ზე]',
  10767. nextDay: '[ხვალ] LT[-ზე]',
  10768. lastDay: '[გუშინ] LT[-ზე]',
  10769. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  10770. lastWeek: '[წინა] dddd LT-ზე',
  10771. sameElse: 'L',
  10772. },
  10773. relativeTime: {
  10774. future: function (s) {
  10775. return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (
  10776. $0,
  10777. $1,
  10778. $2
  10779. ) {
  10780. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  10781. });
  10782. },
  10783. past: function (s) {
  10784. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  10785. return s.replace(/(ი|ე)$/, 'ის წინ');
  10786. }
  10787. if (/წელი/.test(s)) {
  10788. return s.replace(/წელი$/, 'წლის წინ');
  10789. }
  10790. return s;
  10791. },
  10792. s: 'რამდენიმე წამი',
  10793. ss: '%d წამი',
  10794. m: 'წუთი',
  10795. mm: '%d წუთი',
  10796. h: 'საათი',
  10797. hh: '%d საათი',
  10798. d: 'დღე',
  10799. dd: '%d დღე',
  10800. M: 'თვე',
  10801. MM: '%d თვე',
  10802. y: 'წელი',
  10803. yy: '%d წელი',
  10804. },
  10805. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  10806. ordinal: function (number) {
  10807. if (number === 0) {
  10808. return number;
  10809. }
  10810. if (number === 1) {
  10811. return number + '-ლი';
  10812. }
  10813. if (
  10814. number < 20 ||
  10815. (number <= 100 && number % 20 === 0) ||
  10816. number % 100 === 0
  10817. ) {
  10818. return 'მე-' + number;
  10819. }
  10820. return number + '-ე';
  10821. },
  10822. week: {
  10823. dow: 1,
  10824. doy: 7,
  10825. },
  10826. });
  10827. //! moment.js locale configuration
  10828. var suffixes$1 = {
  10829. 0: '-ші',
  10830. 1: '-ші',
  10831. 2: '-ші',
  10832. 3: '-ші',
  10833. 4: '-ші',
  10834. 5: '-ші',
  10835. 6: '-шы',
  10836. 7: '-ші',
  10837. 8: '-ші',
  10838. 9: '-шы',
  10839. 10: '-шы',
  10840. 20: '-шы',
  10841. 30: '-шы',
  10842. 40: '-шы',
  10843. 50: '-ші',
  10844. 60: '-шы',
  10845. 70: '-ші',
  10846. 80: '-ші',
  10847. 90: '-шы',
  10848. 100: '-ші',
  10849. };
  10850. hooks.defineLocale('kk', {
  10851. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
  10852. '_'
  10853. ),
  10854. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  10855. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
  10856. '_'
  10857. ),
  10858. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  10859. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  10860. longDateFormat: {
  10861. LT: 'HH:mm',
  10862. LTS: 'HH:mm:ss',
  10863. L: 'DD.MM.YYYY',
  10864. LL: 'D MMMM YYYY',
  10865. LLL: 'D MMMM YYYY HH:mm',
  10866. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10867. },
  10868. calendar: {
  10869. sameDay: '[Бүгін сағат] LT',
  10870. nextDay: '[Ертең сағат] LT',
  10871. nextWeek: 'dddd [сағат] LT',
  10872. lastDay: '[Кеше сағат] LT',
  10873. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  10874. sameElse: 'L',
  10875. },
  10876. relativeTime: {
  10877. future: '%s ішінде',
  10878. past: '%s бұрын',
  10879. s: 'бірнеше секунд',
  10880. ss: '%d секунд',
  10881. m: 'бір минут',
  10882. mm: '%d минут',
  10883. h: 'бір сағат',
  10884. hh: '%d сағат',
  10885. d: 'бір күн',
  10886. dd: '%d күн',
  10887. M: 'бір ай',
  10888. MM: '%d ай',
  10889. y: 'бір жыл',
  10890. yy: '%d жыл',
  10891. },
  10892. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  10893. ordinal: function (number) {
  10894. var a = number % 10,
  10895. b = number >= 100 ? 100 : null;
  10896. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  10897. },
  10898. week: {
  10899. dow: 1, // Monday is the first day of the week.
  10900. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10901. },
  10902. });
  10903. //! moment.js locale configuration
  10904. var symbolMap$8 = {
  10905. '1': '១',
  10906. '2': '២',
  10907. '3': '៣',
  10908. '4': '៤',
  10909. '5': '៥',
  10910. '6': '៦',
  10911. '7': '៧',
  10912. '8': '៨',
  10913. '9': '៩',
  10914. '0': '០',
  10915. },
  10916. numberMap$7 = {
  10917. '១': '1',
  10918. '២': '2',
  10919. '៣': '3',
  10920. '៤': '4',
  10921. '៥': '5',
  10922. '៦': '6',
  10923. '៧': '7',
  10924. '៨': '8',
  10925. '៩': '9',
  10926. '០': '0',
  10927. };
  10928. hooks.defineLocale('km', {
  10929. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  10930. '_'
  10931. ),
  10932. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  10933. '_'
  10934. ),
  10935. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  10936. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  10937. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  10938. weekdaysParseExact: true,
  10939. longDateFormat: {
  10940. LT: 'HH:mm',
  10941. LTS: 'HH:mm:ss',
  10942. L: 'DD/MM/YYYY',
  10943. LL: 'D MMMM YYYY',
  10944. LLL: 'D MMMM YYYY HH:mm',
  10945. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10946. },
  10947. meridiemParse: /ព្រឹក|ល្ងាច/,
  10948. isPM: function (input) {
  10949. return input === 'ល្ងាច';
  10950. },
  10951. meridiem: function (hour, minute, isLower) {
  10952. if (hour < 12) {
  10953. return 'ព្រឹក';
  10954. } else {
  10955. return 'ល្ងាច';
  10956. }
  10957. },
  10958. calendar: {
  10959. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  10960. nextDay: '[ស្អែក ម៉ោង] LT',
  10961. nextWeek: 'dddd [ម៉ោង] LT',
  10962. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  10963. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  10964. sameElse: 'L',
  10965. },
  10966. relativeTime: {
  10967. future: '%sទៀត',
  10968. past: '%sមុន',
  10969. s: 'ប៉ុន្មានវិនាទី',
  10970. ss: '%d វិនាទី',
  10971. m: 'មួយនាទី',
  10972. mm: '%d នាទី',
  10973. h: 'មួយម៉ោង',
  10974. hh: '%d ម៉ោង',
  10975. d: 'មួយថ្ងៃ',
  10976. dd: '%d ថ្ងៃ',
  10977. M: 'មួយខែ',
  10978. MM: '%d ខែ',
  10979. y: 'មួយឆ្នាំ',
  10980. yy: '%d ឆ្នាំ',
  10981. },
  10982. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  10983. ordinal: 'ទី%d',
  10984. preparse: function (string) {
  10985. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  10986. return numberMap$7[match];
  10987. });
  10988. },
  10989. postformat: function (string) {
  10990. return string.replace(/\d/g, function (match) {
  10991. return symbolMap$8[match];
  10992. });
  10993. },
  10994. week: {
  10995. dow: 1, // Monday is the first day of the week.
  10996. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10997. },
  10998. });
  10999. //! moment.js locale configuration
  11000. var symbolMap$9 = {
  11001. '1': '೧',
  11002. '2': '೨',
  11003. '3': '೩',
  11004. '4': '೪',
  11005. '5': '೫',
  11006. '6': '೬',
  11007. '7': '೭',
  11008. '8': '೮',
  11009. '9': '೯',
  11010. '0': '೦',
  11011. },
  11012. numberMap$8 = {
  11013. '೧': '1',
  11014. '೨': '2',
  11015. '೩': '3',
  11016. '೪': '4',
  11017. '೫': '5',
  11018. '೬': '6',
  11019. '೭': '7',
  11020. '೮': '8',
  11021. '೯': '9',
  11022. '೦': '0',
  11023. };
  11024. hooks.defineLocale('kn', {
  11025. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
  11026. '_'
  11027. ),
  11028. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
  11029. '_'
  11030. ),
  11031. monthsParseExact: true,
  11032. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
  11033. '_'
  11034. ),
  11035. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  11036. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  11037. longDateFormat: {
  11038. LT: 'A h:mm',
  11039. LTS: 'A h:mm:ss',
  11040. L: 'DD/MM/YYYY',
  11041. LL: 'D MMMM YYYY',
  11042. LLL: 'D MMMM YYYY, A h:mm',
  11043. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  11044. },
  11045. calendar: {
  11046. sameDay: '[ಇಂದು] LT',
  11047. nextDay: '[ನಾಳೆ] LT',
  11048. nextWeek: 'dddd, LT',
  11049. lastDay: '[ನಿನ್ನೆ] LT',
  11050. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  11051. sameElse: 'L',
  11052. },
  11053. relativeTime: {
  11054. future: '%s ನಂತರ',
  11055. past: '%s ಹಿಂದೆ',
  11056. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  11057. ss: '%d ಸೆಕೆಂಡುಗಳು',
  11058. m: 'ಒಂದು ನಿಮಿಷ',
  11059. mm: '%d ನಿಮಿಷ',
  11060. h: 'ಒಂದು ಗಂಟೆ',
  11061. hh: '%d ಗಂಟೆ',
  11062. d: 'ಒಂದು ದಿನ',
  11063. dd: '%d ದಿನ',
  11064. M: 'ಒಂದು ತಿಂಗಳು',
  11065. MM: '%d ತಿಂಗಳು',
  11066. y: 'ಒಂದು ವರ್ಷ',
  11067. yy: '%d ವರ್ಷ',
  11068. },
  11069. preparse: function (string) {
  11070. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  11071. return numberMap$8[match];
  11072. });
  11073. },
  11074. postformat: function (string) {
  11075. return string.replace(/\d/g, function (match) {
  11076. return symbolMap$9[match];
  11077. });
  11078. },
  11079. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  11080. meridiemHour: function (hour, meridiem) {
  11081. if (hour === 12) {
  11082. hour = 0;
  11083. }
  11084. if (meridiem === 'ರಾತ್ರಿ') {
  11085. return hour < 4 ? hour : hour + 12;
  11086. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  11087. return hour;
  11088. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  11089. return hour >= 10 ? hour : hour + 12;
  11090. } else if (meridiem === 'ಸಂಜೆ') {
  11091. return hour + 12;
  11092. }
  11093. },
  11094. meridiem: function (hour, minute, isLower) {
  11095. if (hour < 4) {
  11096. return 'ರಾತ್ರಿ';
  11097. } else if (hour < 10) {
  11098. return 'ಬೆಳಿಗ್ಗೆ';
  11099. } else if (hour < 17) {
  11100. return 'ಮಧ್ಯಾಹ್ನ';
  11101. } else if (hour < 20) {
  11102. return 'ಸಂಜೆ';
  11103. } else {
  11104. return 'ರಾತ್ರಿ';
  11105. }
  11106. },
  11107. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  11108. ordinal: function (number) {
  11109. return number + 'ನೇ';
  11110. },
  11111. week: {
  11112. dow: 0, // Sunday is the first day of the week.
  11113. doy: 6, // The week that contains Jan 6th is the first week of the year.
  11114. },
  11115. });
  11116. //! moment.js locale configuration
  11117. hooks.defineLocale('ko', {
  11118. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  11119. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
  11120. '_'
  11121. ),
  11122. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  11123. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  11124. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  11125. longDateFormat: {
  11126. LT: 'A h:mm',
  11127. LTS: 'A h:mm:ss',
  11128. L: 'YYYY.MM.DD.',
  11129. LL: 'YYYY년 MMMM D일',
  11130. LLL: 'YYYY년 MMMM D일 A h:mm',
  11131. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  11132. l: 'YYYY.MM.DD.',
  11133. ll: 'YYYY년 MMMM D일',
  11134. lll: 'YYYY년 MMMM D일 A h:mm',
  11135. llll: 'YYYY년 MMMM D일 dddd A h:mm',
  11136. },
  11137. calendar: {
  11138. sameDay: '오늘 LT',
  11139. nextDay: '내일 LT',
  11140. nextWeek: 'dddd LT',
  11141. lastDay: '어제 LT',
  11142. lastWeek: '지난주 dddd LT',
  11143. sameElse: 'L',
  11144. },
  11145. relativeTime: {
  11146. future: '%s 후',
  11147. past: '%s 전',
  11148. s: '몇 초',
  11149. ss: '%d초',
  11150. m: '1분',
  11151. mm: '%d분',
  11152. h: '한 시간',
  11153. hh: '%d시간',
  11154. d: '하루',
  11155. dd: '%d일',
  11156. M: '한 달',
  11157. MM: '%d달',
  11158. y: '일 년',
  11159. yy: '%d년',
  11160. },
  11161. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  11162. ordinal: function (number, period) {
  11163. switch (period) {
  11164. case 'd':
  11165. case 'D':
  11166. case 'DDD':
  11167. return number + '일';
  11168. case 'M':
  11169. return number + '월';
  11170. case 'w':
  11171. case 'W':
  11172. return number + '주';
  11173. default:
  11174. return number;
  11175. }
  11176. },
  11177. meridiemParse: /오전|오후/,
  11178. isPM: function (token) {
  11179. return token === '오후';
  11180. },
  11181. meridiem: function (hour, minute, isUpper) {
  11182. return hour < 12 ? '오전' : '오후';
  11183. },
  11184. });
  11185. //! moment.js locale configuration
  11186. var symbolMap$a = {
  11187. '1': '١',
  11188. '2': '٢',
  11189. '3': '٣',
  11190. '4': '٤',
  11191. '5': '٥',
  11192. '6': '٦',
  11193. '7': '٧',
  11194. '8': '٨',
  11195. '9': '٩',
  11196. '0': '٠',
  11197. },
  11198. numberMap$9 = {
  11199. '١': '1',
  11200. '٢': '2',
  11201. '٣': '3',
  11202. '٤': '4',
  11203. '٥': '5',
  11204. '٦': '6',
  11205. '٧': '7',
  11206. '٨': '8',
  11207. '٩': '9',
  11208. '٠': '0',
  11209. },
  11210. months$8 = [
  11211. 'کانونی دووەم',
  11212. 'شوبات',
  11213. 'ئازار',
  11214. 'نیسان',
  11215. 'ئایار',
  11216. 'حوزەیران',
  11217. 'تەمموز',
  11218. 'ئاب',
  11219. 'ئەیلوول',
  11220. 'تشرینی یەكەم',
  11221. 'تشرینی دووەم',
  11222. 'كانونی یەکەم',
  11223. ];
  11224. hooks.defineLocale('ku', {
  11225. months: months$8,
  11226. monthsShort: months$8,
  11227. weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
  11228. '_'
  11229. ),
  11230. weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(
  11231. '_'
  11232. ),
  11233. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  11234. weekdaysParseExact: true,
  11235. longDateFormat: {
  11236. LT: 'HH:mm',
  11237. LTS: 'HH:mm:ss',
  11238. L: 'DD/MM/YYYY',
  11239. LL: 'D MMMM YYYY',
  11240. LLL: 'D MMMM YYYY HH:mm',
  11241. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11242. },
  11243. meridiemParse: /ئێواره‌|به‌یانی/,
  11244. isPM: function (input) {
  11245. return /ئێواره‌/.test(input);
  11246. },
  11247. meridiem: function (hour, minute, isLower) {
  11248. if (hour < 12) {
  11249. return 'به‌یانی';
  11250. } else {
  11251. return 'ئێواره‌';
  11252. }
  11253. },
  11254. calendar: {
  11255. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  11256. nextDay: '[به‌یانی كاتژمێر] LT',
  11257. nextWeek: 'dddd [كاتژمێر] LT',
  11258. lastDay: '[دوێنێ كاتژمێر] LT',
  11259. lastWeek: 'dddd [كاتژمێر] LT',
  11260. sameElse: 'L',
  11261. },
  11262. relativeTime: {
  11263. future: 'له‌ %s',
  11264. past: '%s',
  11265. s: 'چه‌ند چركه‌یه‌ك',
  11266. ss: 'چركه‌ %d',
  11267. m: 'یه‌ك خوله‌ك',
  11268. mm: '%d خوله‌ك',
  11269. h: 'یه‌ك كاتژمێر',
  11270. hh: '%d كاتژمێر',
  11271. d: 'یه‌ك ڕۆژ',
  11272. dd: '%d ڕۆژ',
  11273. M: 'یه‌ك مانگ',
  11274. MM: '%d مانگ',
  11275. y: 'یه‌ك ساڵ',
  11276. yy: '%d ساڵ',
  11277. },
  11278. preparse: function (string) {
  11279. return string
  11280. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  11281. return numberMap$9[match];
  11282. })
  11283. .replace(/،/g, ',');
  11284. },
  11285. postformat: function (string) {
  11286. return string
  11287. .replace(/\d/g, function (match) {
  11288. return symbolMap$a[match];
  11289. })
  11290. .replace(/,/g, '،');
  11291. },
  11292. week: {
  11293. dow: 6, // Saturday is the first day of the week.
  11294. doy: 12, // The week that contains Jan 12th is the first week of the year.
  11295. },
  11296. });
  11297. //! moment.js locale configuration
  11298. var suffixes$2 = {
  11299. 0: '-чү',
  11300. 1: '-чи',
  11301. 2: '-чи',
  11302. 3: '-чү',
  11303. 4: '-чү',
  11304. 5: '-чи',
  11305. 6: '-чы',
  11306. 7: '-чи',
  11307. 8: '-чи',
  11308. 9: '-чу',
  11309. 10: '-чу',
  11310. 20: '-чы',
  11311. 30: '-чу',
  11312. 40: '-чы',
  11313. 50: '-чү',
  11314. 60: '-чы',
  11315. 70: '-чи',
  11316. 80: '-чи',
  11317. 90: '-чу',
  11318. 100: '-чү',
  11319. };
  11320. hooks.defineLocale('ky', {
  11321. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  11322. '_'
  11323. ),
  11324. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
  11325. '_'
  11326. ),
  11327. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
  11328. '_'
  11329. ),
  11330. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11331. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11332. longDateFormat: {
  11333. LT: 'HH:mm',
  11334. LTS: 'HH:mm:ss',
  11335. L: 'DD.MM.YYYY',
  11336. LL: 'D MMMM YYYY',
  11337. LLL: 'D MMMM YYYY HH:mm',
  11338. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11339. },
  11340. calendar: {
  11341. sameDay: '[Бүгүн саат] LT',
  11342. nextDay: '[Эртең саат] LT',
  11343. nextWeek: 'dddd [саат] LT',
  11344. lastDay: '[Кечээ саат] LT',
  11345. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  11346. sameElse: 'L',
  11347. },
  11348. relativeTime: {
  11349. future: '%s ичинде',
  11350. past: '%s мурун',
  11351. s: 'бирнече секунд',
  11352. ss: '%d секунд',
  11353. m: 'бир мүнөт',
  11354. mm: '%d мүнөт',
  11355. h: 'бир саат',
  11356. hh: '%d саат',
  11357. d: 'бир күн',
  11358. dd: '%d күн',
  11359. M: 'бир ай',
  11360. MM: '%d ай',
  11361. y: 'бир жыл',
  11362. yy: '%d жыл',
  11363. },
  11364. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11365. ordinal: function (number) {
  11366. var a = number % 10,
  11367. b = number >= 100 ? 100 : null;
  11368. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  11369. },
  11370. week: {
  11371. dow: 1, // Monday is the first day of the week.
  11372. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11373. },
  11374. });
  11375. //! moment.js locale configuration
  11376. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  11377. var format = {
  11378. m: ['eng Minutt', 'enger Minutt'],
  11379. h: ['eng Stonn', 'enger Stonn'],
  11380. d: ['een Dag', 'engem Dag'],
  11381. M: ['ee Mount', 'engem Mount'],
  11382. y: ['ee Joer', 'engem Joer'],
  11383. };
  11384. return withoutSuffix ? format[key][0] : format[key][1];
  11385. }
  11386. function processFutureTime(string) {
  11387. var number = string.substr(0, string.indexOf(' '));
  11388. if (eifelerRegelAppliesToNumber(number)) {
  11389. return 'a ' + string;
  11390. }
  11391. return 'an ' + string;
  11392. }
  11393. function processPastTime(string) {
  11394. var number = string.substr(0, string.indexOf(' '));
  11395. if (eifelerRegelAppliesToNumber(number)) {
  11396. return 'viru ' + string;
  11397. }
  11398. return 'virun ' + string;
  11399. }
  11400. /**
  11401. * Returns true if the word before the given number loses the '-n' ending.
  11402. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  11403. *
  11404. * @param number {integer}
  11405. * @returns {boolean}
  11406. */
  11407. function eifelerRegelAppliesToNumber(number) {
  11408. number = parseInt(number, 10);
  11409. if (isNaN(number)) {
  11410. return false;
  11411. }
  11412. if (number < 0) {
  11413. // Negative Number --> always true
  11414. return true;
  11415. } else if (number < 10) {
  11416. // Only 1 digit
  11417. if (4 <= number && number <= 7) {
  11418. return true;
  11419. }
  11420. return false;
  11421. } else if (number < 100) {
  11422. // 2 digits
  11423. var lastDigit = number % 10,
  11424. firstDigit = number / 10;
  11425. if (lastDigit === 0) {
  11426. return eifelerRegelAppliesToNumber(firstDigit);
  11427. }
  11428. return eifelerRegelAppliesToNumber(lastDigit);
  11429. } else if (number < 10000) {
  11430. // 3 or 4 digits --> recursively check first digit
  11431. while (number >= 10) {
  11432. number = number / 10;
  11433. }
  11434. return eifelerRegelAppliesToNumber(number);
  11435. } else {
  11436. // Anything larger than 4 digits: recursively check first n-3 digits
  11437. number = number / 1000;
  11438. return eifelerRegelAppliesToNumber(number);
  11439. }
  11440. }
  11441. hooks.defineLocale('lb', {
  11442. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  11443. '_'
  11444. ),
  11445. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
  11446. '_'
  11447. ),
  11448. monthsParseExact: true,
  11449. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
  11450. '_'
  11451. ),
  11452. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  11453. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  11454. weekdaysParseExact: true,
  11455. longDateFormat: {
  11456. LT: 'H:mm [Auer]',
  11457. LTS: 'H:mm:ss [Auer]',
  11458. L: 'DD.MM.YYYY',
  11459. LL: 'D. MMMM YYYY',
  11460. LLL: 'D. MMMM YYYY H:mm [Auer]',
  11461. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
  11462. },
  11463. calendar: {
  11464. sameDay: '[Haut um] LT',
  11465. sameElse: 'L',
  11466. nextDay: '[Muer um] LT',
  11467. nextWeek: 'dddd [um] LT',
  11468. lastDay: '[Gëschter um] LT',
  11469. lastWeek: function () {
  11470. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  11471. switch (this.day()) {
  11472. case 2:
  11473. case 4:
  11474. return '[Leschten] dddd [um] LT';
  11475. default:
  11476. return '[Leschte] dddd [um] LT';
  11477. }
  11478. },
  11479. },
  11480. relativeTime: {
  11481. future: processFutureTime,
  11482. past: processPastTime,
  11483. s: 'e puer Sekonnen',
  11484. ss: '%d Sekonnen',
  11485. m: processRelativeTime$6,
  11486. mm: '%d Minutten',
  11487. h: processRelativeTime$6,
  11488. hh: '%d Stonnen',
  11489. d: processRelativeTime$6,
  11490. dd: '%d Deeg',
  11491. M: processRelativeTime$6,
  11492. MM: '%d Méint',
  11493. y: processRelativeTime$6,
  11494. yy: '%d Joer',
  11495. },
  11496. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11497. ordinal: '%d.',
  11498. week: {
  11499. dow: 1, // Monday is the first day of the week.
  11500. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11501. },
  11502. });
  11503. //! moment.js locale configuration
  11504. hooks.defineLocale('lo', {
  11505. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11506. '_'
  11507. ),
  11508. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11509. '_'
  11510. ),
  11511. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11512. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11513. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  11514. weekdaysParseExact: true,
  11515. longDateFormat: {
  11516. LT: 'HH:mm',
  11517. LTS: 'HH:mm:ss',
  11518. L: 'DD/MM/YYYY',
  11519. LL: 'D MMMM YYYY',
  11520. LLL: 'D MMMM YYYY HH:mm',
  11521. LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
  11522. },
  11523. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  11524. isPM: function (input) {
  11525. return input === 'ຕອນແລງ';
  11526. },
  11527. meridiem: function (hour, minute, isLower) {
  11528. if (hour < 12) {
  11529. return 'ຕອນເຊົ້າ';
  11530. } else {
  11531. return 'ຕອນແລງ';
  11532. }
  11533. },
  11534. calendar: {
  11535. sameDay: '[ມື້ນີ້ເວລາ] LT',
  11536. nextDay: '[ມື້ອື່ນເວລາ] LT',
  11537. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  11538. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  11539. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  11540. sameElse: 'L',
  11541. },
  11542. relativeTime: {
  11543. future: 'ອີກ %s',
  11544. past: '%sຜ່ານມາ',
  11545. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  11546. ss: '%d ວິນາທີ',
  11547. m: '1 ນາທີ',
  11548. mm: '%d ນາທີ',
  11549. h: '1 ຊົ່ວໂມງ',
  11550. hh: '%d ຊົ່ວໂມງ',
  11551. d: '1 ມື້',
  11552. dd: '%d ມື້',
  11553. M: '1 ເດືອນ',
  11554. MM: '%d ເດືອນ',
  11555. y: '1 ປີ',
  11556. yy: '%d ປີ',
  11557. },
  11558. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  11559. ordinal: function (number) {
  11560. return 'ທີ່' + number;
  11561. },
  11562. });
  11563. //! moment.js locale configuration
  11564. var units = {
  11565. ss: 'sekundė_sekundžių_sekundes',
  11566. m: 'minutė_minutės_minutę',
  11567. mm: 'minutės_minučių_minutes',
  11568. h: 'valanda_valandos_valandą',
  11569. hh: 'valandos_valandų_valandas',
  11570. d: 'diena_dienos_dieną',
  11571. dd: 'dienos_dienų_dienas',
  11572. M: 'mėnuo_mėnesio_mėnesį',
  11573. MM: 'mėnesiai_mėnesių_mėnesius',
  11574. y: 'metai_metų_metus',
  11575. yy: 'metai_metų_metus',
  11576. };
  11577. function translateSeconds(number, withoutSuffix, key, isFuture) {
  11578. if (withoutSuffix) {
  11579. return 'kelios sekundės';
  11580. } else {
  11581. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  11582. }
  11583. }
  11584. function translateSingular(number, withoutSuffix, key, isFuture) {
  11585. return withoutSuffix
  11586. ? forms(key)[0]
  11587. : isFuture
  11588. ? forms(key)[1]
  11589. : forms(key)[2];
  11590. }
  11591. function special(number) {
  11592. return number % 10 === 0 || (number > 10 && number < 20);
  11593. }
  11594. function forms(key) {
  11595. return units[key].split('_');
  11596. }
  11597. function translate$6(number, withoutSuffix, key, isFuture) {
  11598. var result = number + ' ';
  11599. if (number === 1) {
  11600. return (
  11601. result + translateSingular(number, withoutSuffix, key[0], isFuture)
  11602. );
  11603. } else if (withoutSuffix) {
  11604. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  11605. } else {
  11606. if (isFuture) {
  11607. return result + forms(key)[1];
  11608. } else {
  11609. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  11610. }
  11611. }
  11612. }
  11613. hooks.defineLocale('lt', {
  11614. months: {
  11615. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
  11616. '_'
  11617. ),
  11618. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  11619. '_'
  11620. ),
  11621. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
  11622. },
  11623. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  11624. weekdays: {
  11625. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  11626. '_'
  11627. ),
  11628. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  11629. '_'
  11630. ),
  11631. isFormat: /dddd HH:mm/,
  11632. },
  11633. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  11634. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  11635. weekdaysParseExact: true,
  11636. longDateFormat: {
  11637. LT: 'HH:mm',
  11638. LTS: 'HH:mm:ss',
  11639. L: 'YYYY-MM-DD',
  11640. LL: 'YYYY [m.] MMMM D [d.]',
  11641. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11642. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  11643. l: 'YYYY-MM-DD',
  11644. ll: 'YYYY [m.] MMMM D [d.]',
  11645. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11646. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
  11647. },
  11648. calendar: {
  11649. sameDay: '[Šiandien] LT',
  11650. nextDay: '[Rytoj] LT',
  11651. nextWeek: 'dddd LT',
  11652. lastDay: '[Vakar] LT',
  11653. lastWeek: '[Praėjusį] dddd LT',
  11654. sameElse: 'L',
  11655. },
  11656. relativeTime: {
  11657. future: 'po %s',
  11658. past: 'prieš %s',
  11659. s: translateSeconds,
  11660. ss: translate$6,
  11661. m: translateSingular,
  11662. mm: translate$6,
  11663. h: translateSingular,
  11664. hh: translate$6,
  11665. d: translateSingular,
  11666. dd: translate$6,
  11667. M: translateSingular,
  11668. MM: translate$6,
  11669. y: translateSingular,
  11670. yy: translate$6,
  11671. },
  11672. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  11673. ordinal: function (number) {
  11674. return number + '-oji';
  11675. },
  11676. week: {
  11677. dow: 1, // Monday is the first day of the week.
  11678. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11679. },
  11680. });
  11681. //! moment.js locale configuration
  11682. var units$1 = {
  11683. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  11684. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11685. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11686. h: 'stundas_stundām_stunda_stundas'.split('_'),
  11687. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  11688. d: 'dienas_dienām_diena_dienas'.split('_'),
  11689. dd: 'dienas_dienām_diena_dienas'.split('_'),
  11690. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11691. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11692. y: 'gada_gadiem_gads_gadi'.split('_'),
  11693. yy: 'gada_gadiem_gads_gadi'.split('_'),
  11694. };
  11695. /**
  11696. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  11697. */
  11698. function format$1(forms, number, withoutSuffix) {
  11699. if (withoutSuffix) {
  11700. // E.g. "21 minūte", "3 minūtes".
  11701. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  11702. } else {
  11703. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  11704. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  11705. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  11706. }
  11707. }
  11708. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  11709. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  11710. }
  11711. function relativeTimeWithSingular(number, withoutSuffix, key) {
  11712. return format$1(units$1[key], number, withoutSuffix);
  11713. }
  11714. function relativeSeconds(number, withoutSuffix) {
  11715. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  11716. }
  11717. hooks.defineLocale('lv', {
  11718. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
  11719. '_'
  11720. ),
  11721. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  11722. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
  11723. '_'
  11724. ),
  11725. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  11726. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  11727. weekdaysParseExact: true,
  11728. longDateFormat: {
  11729. LT: 'HH:mm',
  11730. LTS: 'HH:mm:ss',
  11731. L: 'DD.MM.YYYY.',
  11732. LL: 'YYYY. [gada] D. MMMM',
  11733. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  11734. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
  11735. },
  11736. calendar: {
  11737. sameDay: '[Šodien pulksten] LT',
  11738. nextDay: '[Rīt pulksten] LT',
  11739. nextWeek: 'dddd [pulksten] LT',
  11740. lastDay: '[Vakar pulksten] LT',
  11741. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  11742. sameElse: 'L',
  11743. },
  11744. relativeTime: {
  11745. future: 'pēc %s',
  11746. past: 'pirms %s',
  11747. s: relativeSeconds,
  11748. ss: relativeTimeWithPlural$1,
  11749. m: relativeTimeWithSingular,
  11750. mm: relativeTimeWithPlural$1,
  11751. h: relativeTimeWithSingular,
  11752. hh: relativeTimeWithPlural$1,
  11753. d: relativeTimeWithSingular,
  11754. dd: relativeTimeWithPlural$1,
  11755. M: relativeTimeWithSingular,
  11756. MM: relativeTimeWithPlural$1,
  11757. y: relativeTimeWithSingular,
  11758. yy: relativeTimeWithPlural$1,
  11759. },
  11760. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11761. ordinal: '%d.',
  11762. week: {
  11763. dow: 1, // Monday is the first day of the week.
  11764. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11765. },
  11766. });
  11767. //! moment.js locale configuration
  11768. var translator = {
  11769. words: {
  11770. //Different grammatical cases
  11771. ss: ['sekund', 'sekunda', 'sekundi'],
  11772. m: ['jedan minut', 'jednog minuta'],
  11773. mm: ['minut', 'minuta', 'minuta'],
  11774. h: ['jedan sat', 'jednog sata'],
  11775. hh: ['sat', 'sata', 'sati'],
  11776. dd: ['dan', 'dana', 'dana'],
  11777. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  11778. yy: ['godina', 'godine', 'godina'],
  11779. },
  11780. correctGrammaticalCase: function (number, wordKey) {
  11781. return number === 1
  11782. ? wordKey[0]
  11783. : number >= 2 && number <= 4
  11784. ? wordKey[1]
  11785. : wordKey[2];
  11786. },
  11787. translate: function (number, withoutSuffix, key) {
  11788. var wordKey = translator.words[key];
  11789. if (key.length === 1) {
  11790. return withoutSuffix ? wordKey[0] : wordKey[1];
  11791. } else {
  11792. return (
  11793. number +
  11794. ' ' +
  11795. translator.correctGrammaticalCase(number, wordKey)
  11796. );
  11797. }
  11798. },
  11799. };
  11800. hooks.defineLocale('me', {
  11801. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  11802. '_'
  11803. ),
  11804. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  11805. '_'
  11806. ),
  11807. monthsParseExact: true,
  11808. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  11809. '_'
  11810. ),
  11811. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  11812. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  11813. weekdaysParseExact: true,
  11814. longDateFormat: {
  11815. LT: 'H:mm',
  11816. LTS: 'H:mm:ss',
  11817. L: 'DD.MM.YYYY',
  11818. LL: 'D. MMMM YYYY',
  11819. LLL: 'D. MMMM YYYY H:mm',
  11820. LLLL: 'dddd, D. MMMM YYYY H:mm',
  11821. },
  11822. calendar: {
  11823. sameDay: '[danas u] LT',
  11824. nextDay: '[sjutra u] LT',
  11825. nextWeek: function () {
  11826. switch (this.day()) {
  11827. case 0:
  11828. return '[u] [nedjelju] [u] LT';
  11829. case 3:
  11830. return '[u] [srijedu] [u] LT';
  11831. case 6:
  11832. return '[u] [subotu] [u] LT';
  11833. case 1:
  11834. case 2:
  11835. case 4:
  11836. case 5:
  11837. return '[u] dddd [u] LT';
  11838. }
  11839. },
  11840. lastDay: '[juče u] LT',
  11841. lastWeek: function () {
  11842. var lastWeekDays = [
  11843. '[prošle] [nedjelje] [u] LT',
  11844. '[prošlog] [ponedjeljka] [u] LT',
  11845. '[prošlog] [utorka] [u] LT',
  11846. '[prošle] [srijede] [u] LT',
  11847. '[prošlog] [četvrtka] [u] LT',
  11848. '[prošlog] [petka] [u] LT',
  11849. '[prošle] [subote] [u] LT',
  11850. ];
  11851. return lastWeekDays[this.day()];
  11852. },
  11853. sameElse: 'L',
  11854. },
  11855. relativeTime: {
  11856. future: 'za %s',
  11857. past: 'prije %s',
  11858. s: 'nekoliko sekundi',
  11859. ss: translator.translate,
  11860. m: translator.translate,
  11861. mm: translator.translate,
  11862. h: translator.translate,
  11863. hh: translator.translate,
  11864. d: 'dan',
  11865. dd: translator.translate,
  11866. M: 'mjesec',
  11867. MM: translator.translate,
  11868. y: 'godinu',
  11869. yy: translator.translate,
  11870. },
  11871. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11872. ordinal: '%d.',
  11873. week: {
  11874. dow: 1, // Monday is the first day of the week.
  11875. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11876. },
  11877. });
  11878. //! moment.js locale configuration
  11879. hooks.defineLocale('mi', {
  11880. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
  11881. '_'
  11882. ),
  11883. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  11884. '_'
  11885. ),
  11886. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11887. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11888. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11889. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  11890. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  11891. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11892. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11893. longDateFormat: {
  11894. LT: 'HH:mm',
  11895. LTS: 'HH:mm:ss',
  11896. L: 'DD/MM/YYYY',
  11897. LL: 'D MMMM YYYY',
  11898. LLL: 'D MMMM YYYY [i] HH:mm',
  11899. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  11900. },
  11901. calendar: {
  11902. sameDay: '[i teie mahana, i] LT',
  11903. nextDay: '[apopo i] LT',
  11904. nextWeek: 'dddd [i] LT',
  11905. lastDay: '[inanahi i] LT',
  11906. lastWeek: 'dddd [whakamutunga i] LT',
  11907. sameElse: 'L',
  11908. },
  11909. relativeTime: {
  11910. future: 'i roto i %s',
  11911. past: '%s i mua',
  11912. s: 'te hēkona ruarua',
  11913. ss: '%d hēkona',
  11914. m: 'he meneti',
  11915. mm: '%d meneti',
  11916. h: 'te haora',
  11917. hh: '%d haora',
  11918. d: 'he ra',
  11919. dd: '%d ra',
  11920. M: 'he marama',
  11921. MM: '%d marama',
  11922. y: 'he tau',
  11923. yy: '%d tau',
  11924. },
  11925. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11926. ordinal: '%dº',
  11927. week: {
  11928. dow: 1, // Monday is the first day of the week.
  11929. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11930. },
  11931. });
  11932. //! moment.js locale configuration
  11933. hooks.defineLocale('mk', {
  11934. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
  11935. '_'
  11936. ),
  11937. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  11938. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
  11939. '_'
  11940. ),
  11941. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  11942. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  11943. longDateFormat: {
  11944. LT: 'H:mm',
  11945. LTS: 'H:mm:ss',
  11946. L: 'D.MM.YYYY',
  11947. LL: 'D MMMM YYYY',
  11948. LLL: 'D MMMM YYYY H:mm',
  11949. LLLL: 'dddd, D MMMM YYYY H:mm',
  11950. },
  11951. calendar: {
  11952. sameDay: '[Денес во] LT',
  11953. nextDay: '[Утре во] LT',
  11954. nextWeek: '[Во] dddd [во] LT',
  11955. lastDay: '[Вчера во] LT',
  11956. lastWeek: function () {
  11957. switch (this.day()) {
  11958. case 0:
  11959. case 3:
  11960. case 6:
  11961. return '[Изминатата] dddd [во] LT';
  11962. case 1:
  11963. case 2:
  11964. case 4:
  11965. case 5:
  11966. return '[Изминатиот] dddd [во] LT';
  11967. }
  11968. },
  11969. sameElse: 'L',
  11970. },
  11971. relativeTime: {
  11972. future: 'за %s',
  11973. past: 'пред %s',
  11974. s: 'неколку секунди',
  11975. ss: '%d секунди',
  11976. m: 'една минута',
  11977. mm: '%d минути',
  11978. h: 'еден час',
  11979. hh: '%d часа',
  11980. d: 'еден ден',
  11981. dd: '%d дена',
  11982. M: 'еден месец',
  11983. MM: '%d месеци',
  11984. y: 'една година',
  11985. yy: '%d години',
  11986. },
  11987. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  11988. ordinal: function (number) {
  11989. var lastDigit = number % 10,
  11990. last2Digits = number % 100;
  11991. if (number === 0) {
  11992. return number + '-ев';
  11993. } else if (last2Digits === 0) {
  11994. return number + '-ен';
  11995. } else if (last2Digits > 10 && last2Digits < 20) {
  11996. return number + '-ти';
  11997. } else if (lastDigit === 1) {
  11998. return number + '-ви';
  11999. } else if (lastDigit === 2) {
  12000. return number + '-ри';
  12001. } else if (lastDigit === 7 || lastDigit === 8) {
  12002. return number + '-ми';
  12003. } else {
  12004. return number + '-ти';
  12005. }
  12006. },
  12007. week: {
  12008. dow: 1, // Monday is the first day of the week.
  12009. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12010. },
  12011. });
  12012. //! moment.js locale configuration
  12013. hooks.defineLocale('ml', {
  12014. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
  12015. '_'
  12016. ),
  12017. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
  12018. '_'
  12019. ),
  12020. monthsParseExact: true,
  12021. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
  12022. '_'
  12023. ),
  12024. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  12025. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  12026. longDateFormat: {
  12027. LT: 'A h:mm -നു',
  12028. LTS: 'A h:mm:ss -നു',
  12029. L: 'DD/MM/YYYY',
  12030. LL: 'D MMMM YYYY',
  12031. LLL: 'D MMMM YYYY, A h:mm -നു',
  12032. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
  12033. },
  12034. calendar: {
  12035. sameDay: '[ഇന്ന്] LT',
  12036. nextDay: '[നാളെ] LT',
  12037. nextWeek: 'dddd, LT',
  12038. lastDay: '[ഇന്നലെ] LT',
  12039. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  12040. sameElse: 'L',
  12041. },
  12042. relativeTime: {
  12043. future: '%s കഴിഞ്ഞ്',
  12044. past: '%s മുൻപ്',
  12045. s: 'അൽപ നിമിഷങ്ങൾ',
  12046. ss: '%d സെക്കൻഡ്',
  12047. m: 'ഒരു മിനിറ്റ്',
  12048. mm: '%d മിനിറ്റ്',
  12049. h: 'ഒരു മണിക്കൂർ',
  12050. hh: '%d മണിക്കൂർ',
  12051. d: 'ഒരു ദിവസം',
  12052. dd: '%d ദിവസം',
  12053. M: 'ഒരു മാസം',
  12054. MM: '%d മാസം',
  12055. y: 'ഒരു വർഷം',
  12056. yy: '%d വർഷം',
  12057. },
  12058. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  12059. meridiemHour: function (hour, meridiem) {
  12060. if (hour === 12) {
  12061. hour = 0;
  12062. }
  12063. if (
  12064. (meridiem === 'രാത്രി' && hour >= 4) ||
  12065. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  12066. meridiem === 'വൈകുന്നേരം'
  12067. ) {
  12068. return hour + 12;
  12069. } else {
  12070. return hour;
  12071. }
  12072. },
  12073. meridiem: function (hour, minute, isLower) {
  12074. if (hour < 4) {
  12075. return 'രാത്രി';
  12076. } else if (hour < 12) {
  12077. return 'രാവിലെ';
  12078. } else if (hour < 17) {
  12079. return 'ഉച്ച കഴിഞ്ഞ്';
  12080. } else if (hour < 20) {
  12081. return 'വൈകുന്നേരം';
  12082. } else {
  12083. return 'രാത്രി';
  12084. }
  12085. },
  12086. });
  12087. //! moment.js locale configuration
  12088. function translate$7(number, withoutSuffix, key, isFuture) {
  12089. switch (key) {
  12090. case 's':
  12091. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  12092. case 'ss':
  12093. return number + (withoutSuffix ? ' секунд' : ' секундын');
  12094. case 'm':
  12095. case 'mm':
  12096. return number + (withoutSuffix ? ' минут' : ' минутын');
  12097. case 'h':
  12098. case 'hh':
  12099. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  12100. case 'd':
  12101. case 'dd':
  12102. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  12103. case 'M':
  12104. case 'MM':
  12105. return number + (withoutSuffix ? ' сар' : ' сарын');
  12106. case 'y':
  12107. case 'yy':
  12108. return number + (withoutSuffix ? ' жил' : ' жилийн');
  12109. default:
  12110. return number;
  12111. }
  12112. }
  12113. hooks.defineLocale('mn', {
  12114. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
  12115. '_'
  12116. ),
  12117. monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
  12118. '_'
  12119. ),
  12120. monthsParseExact: true,
  12121. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  12122. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  12123. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  12124. weekdaysParseExact: true,
  12125. longDateFormat: {
  12126. LT: 'HH:mm',
  12127. LTS: 'HH:mm:ss',
  12128. L: 'YYYY-MM-DD',
  12129. LL: 'YYYY оны MMMMын D',
  12130. LLL: 'YYYY оны MMMMын D HH:mm',
  12131. LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
  12132. },
  12133. meridiemParse: /ҮӨ|ҮХ/i,
  12134. isPM: function (input) {
  12135. return input === 'ҮХ';
  12136. },
  12137. meridiem: function (hour, minute, isLower) {
  12138. if (hour < 12) {
  12139. return 'ҮӨ';
  12140. } else {
  12141. return 'ҮХ';
  12142. }
  12143. },
  12144. calendar: {
  12145. sameDay: '[Өнөөдөр] LT',
  12146. nextDay: '[Маргааш] LT',
  12147. nextWeek: '[Ирэх] dddd LT',
  12148. lastDay: '[Өчигдөр] LT',
  12149. lastWeek: '[Өнгөрсөн] dddd LT',
  12150. sameElse: 'L',
  12151. },
  12152. relativeTime: {
  12153. future: '%s дараа',
  12154. past: '%s өмнө',
  12155. s: translate$7,
  12156. ss: translate$7,
  12157. m: translate$7,
  12158. mm: translate$7,
  12159. h: translate$7,
  12160. hh: translate$7,
  12161. d: translate$7,
  12162. dd: translate$7,
  12163. M: translate$7,
  12164. MM: translate$7,
  12165. y: translate$7,
  12166. yy: translate$7,
  12167. },
  12168. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  12169. ordinal: function (number, period) {
  12170. switch (period) {
  12171. case 'd':
  12172. case 'D':
  12173. case 'DDD':
  12174. return number + ' өдөр';
  12175. default:
  12176. return number;
  12177. }
  12178. },
  12179. });
  12180. //! moment.js locale configuration
  12181. var symbolMap$b = {
  12182. '1': '१',
  12183. '2': '२',
  12184. '3': '३',
  12185. '4': '४',
  12186. '5': '५',
  12187. '6': '६',
  12188. '7': '७',
  12189. '8': '८',
  12190. '9': '९',
  12191. '0': '०',
  12192. },
  12193. numberMap$a = {
  12194. '१': '1',
  12195. '२': '2',
  12196. '३': '3',
  12197. '४': '4',
  12198. '५': '5',
  12199. '६': '6',
  12200. '७': '7',
  12201. '८': '8',
  12202. '९': '9',
  12203. '०': '0',
  12204. };
  12205. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  12206. var output = '';
  12207. if (withoutSuffix) {
  12208. switch (string) {
  12209. case 's':
  12210. output = 'काही सेकंद';
  12211. break;
  12212. case 'ss':
  12213. output = '%d सेकंद';
  12214. break;
  12215. case 'm':
  12216. output = 'एक मिनिट';
  12217. break;
  12218. case 'mm':
  12219. output = '%d मिनिटे';
  12220. break;
  12221. case 'h':
  12222. output = 'एक तास';
  12223. break;
  12224. case 'hh':
  12225. output = '%d तास';
  12226. break;
  12227. case 'd':
  12228. output = 'एक दिवस';
  12229. break;
  12230. case 'dd':
  12231. output = '%d दिवस';
  12232. break;
  12233. case 'M':
  12234. output = 'एक महिना';
  12235. break;
  12236. case 'MM':
  12237. output = '%d महिने';
  12238. break;
  12239. case 'y':
  12240. output = 'एक वर्ष';
  12241. break;
  12242. case 'yy':
  12243. output = '%d वर्षे';
  12244. break;
  12245. }
  12246. } else {
  12247. switch (string) {
  12248. case 's':
  12249. output = 'काही सेकंदां';
  12250. break;
  12251. case 'ss':
  12252. output = '%d सेकंदां';
  12253. break;
  12254. case 'm':
  12255. output = 'एका मिनिटा';
  12256. break;
  12257. case 'mm':
  12258. output = '%d मिनिटां';
  12259. break;
  12260. case 'h':
  12261. output = 'एका तासा';
  12262. break;
  12263. case 'hh':
  12264. output = '%d तासां';
  12265. break;
  12266. case 'd':
  12267. output = 'एका दिवसा';
  12268. break;
  12269. case 'dd':
  12270. output = '%d दिवसां';
  12271. break;
  12272. case 'M':
  12273. output = 'एका महिन्या';
  12274. break;
  12275. case 'MM':
  12276. output = '%d महिन्यां';
  12277. break;
  12278. case 'y':
  12279. output = 'एका वर्षा';
  12280. break;
  12281. case 'yy':
  12282. output = '%d वर्षां';
  12283. break;
  12284. }
  12285. }
  12286. return output.replace(/%d/i, number);
  12287. }
  12288. hooks.defineLocale('mr', {
  12289. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  12290. '_'
  12291. ),
  12292. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  12293. '_'
  12294. ),
  12295. monthsParseExact: true,
  12296. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  12297. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  12298. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  12299. longDateFormat: {
  12300. LT: 'A h:mm वाजता',
  12301. LTS: 'A h:mm:ss वाजता',
  12302. L: 'DD/MM/YYYY',
  12303. LL: 'D MMMM YYYY',
  12304. LLL: 'D MMMM YYYY, A h:mm वाजता',
  12305. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
  12306. },
  12307. calendar: {
  12308. sameDay: '[आज] LT',
  12309. nextDay: '[उद्या] LT',
  12310. nextWeek: 'dddd, LT',
  12311. lastDay: '[काल] LT',
  12312. lastWeek: '[मागील] dddd, LT',
  12313. sameElse: 'L',
  12314. },
  12315. relativeTime: {
  12316. future: '%sमध्ये',
  12317. past: '%sपूर्वी',
  12318. s: relativeTimeMr,
  12319. ss: relativeTimeMr,
  12320. m: relativeTimeMr,
  12321. mm: relativeTimeMr,
  12322. h: relativeTimeMr,
  12323. hh: relativeTimeMr,
  12324. d: relativeTimeMr,
  12325. dd: relativeTimeMr,
  12326. M: relativeTimeMr,
  12327. MM: relativeTimeMr,
  12328. y: relativeTimeMr,
  12329. yy: relativeTimeMr,
  12330. },
  12331. preparse: function (string) {
  12332. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12333. return numberMap$a[match];
  12334. });
  12335. },
  12336. postformat: function (string) {
  12337. return string.replace(/\d/g, function (match) {
  12338. return symbolMap$b[match];
  12339. });
  12340. },
  12341. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  12342. meridiemHour: function (hour, meridiem) {
  12343. if (hour === 12) {
  12344. hour = 0;
  12345. }
  12346. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  12347. return hour;
  12348. } else if (
  12349. meridiem === 'दुपारी' ||
  12350. meridiem === 'सायंकाळी' ||
  12351. meridiem === 'रात्री'
  12352. ) {
  12353. return hour >= 12 ? hour : hour + 12;
  12354. }
  12355. },
  12356. meridiem: function (hour, minute, isLower) {
  12357. if (hour >= 0 && hour < 6) {
  12358. return 'पहाटे';
  12359. } else if (hour < 12) {
  12360. return 'सकाळी';
  12361. } else if (hour < 17) {
  12362. return 'दुपारी';
  12363. } else if (hour < 20) {
  12364. return 'सायंकाळी';
  12365. } else {
  12366. return 'रात्री';
  12367. }
  12368. },
  12369. week: {
  12370. dow: 0, // Sunday is the first day of the week.
  12371. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12372. },
  12373. });
  12374. //! moment.js locale configuration
  12375. hooks.defineLocale('ms-my', {
  12376. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12377. '_'
  12378. ),
  12379. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12380. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12381. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12382. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12383. longDateFormat: {
  12384. LT: 'HH.mm',
  12385. LTS: 'HH.mm.ss',
  12386. L: 'DD/MM/YYYY',
  12387. LL: 'D MMMM YYYY',
  12388. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12389. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12390. },
  12391. meridiemParse: /pagi|tengahari|petang|malam/,
  12392. meridiemHour: function (hour, meridiem) {
  12393. if (hour === 12) {
  12394. hour = 0;
  12395. }
  12396. if (meridiem === 'pagi') {
  12397. return hour;
  12398. } else if (meridiem === 'tengahari') {
  12399. return hour >= 11 ? hour : hour + 12;
  12400. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12401. return hour + 12;
  12402. }
  12403. },
  12404. meridiem: function (hours, minutes, isLower) {
  12405. if (hours < 11) {
  12406. return 'pagi';
  12407. } else if (hours < 15) {
  12408. return 'tengahari';
  12409. } else if (hours < 19) {
  12410. return 'petang';
  12411. } else {
  12412. return 'malam';
  12413. }
  12414. },
  12415. calendar: {
  12416. sameDay: '[Hari ini pukul] LT',
  12417. nextDay: '[Esok pukul] LT',
  12418. nextWeek: 'dddd [pukul] LT',
  12419. lastDay: '[Kelmarin pukul] LT',
  12420. lastWeek: 'dddd [lepas pukul] LT',
  12421. sameElse: 'L',
  12422. },
  12423. relativeTime: {
  12424. future: 'dalam %s',
  12425. past: '%s yang lepas',
  12426. s: 'beberapa saat',
  12427. ss: '%d saat',
  12428. m: 'seminit',
  12429. mm: '%d minit',
  12430. h: 'sejam',
  12431. hh: '%d jam',
  12432. d: 'sehari',
  12433. dd: '%d hari',
  12434. M: 'sebulan',
  12435. MM: '%d bulan',
  12436. y: 'setahun',
  12437. yy: '%d tahun',
  12438. },
  12439. week: {
  12440. dow: 1, // Monday is the first day of the week.
  12441. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12442. },
  12443. });
  12444. //! moment.js locale configuration
  12445. hooks.defineLocale('ms', {
  12446. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12447. '_'
  12448. ),
  12449. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12450. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12451. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12452. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12453. longDateFormat: {
  12454. LT: 'HH.mm',
  12455. LTS: 'HH.mm.ss',
  12456. L: 'DD/MM/YYYY',
  12457. LL: 'D MMMM YYYY',
  12458. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12459. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12460. },
  12461. meridiemParse: /pagi|tengahari|petang|malam/,
  12462. meridiemHour: function (hour, meridiem) {
  12463. if (hour === 12) {
  12464. hour = 0;
  12465. }
  12466. if (meridiem === 'pagi') {
  12467. return hour;
  12468. } else if (meridiem === 'tengahari') {
  12469. return hour >= 11 ? hour : hour + 12;
  12470. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12471. return hour + 12;
  12472. }
  12473. },
  12474. meridiem: function (hours, minutes, isLower) {
  12475. if (hours < 11) {
  12476. return 'pagi';
  12477. } else if (hours < 15) {
  12478. return 'tengahari';
  12479. } else if (hours < 19) {
  12480. return 'petang';
  12481. } else {
  12482. return 'malam';
  12483. }
  12484. },
  12485. calendar: {
  12486. sameDay: '[Hari ini pukul] LT',
  12487. nextDay: '[Esok pukul] LT',
  12488. nextWeek: 'dddd [pukul] LT',
  12489. lastDay: '[Kelmarin pukul] LT',
  12490. lastWeek: 'dddd [lepas pukul] LT',
  12491. sameElse: 'L',
  12492. },
  12493. relativeTime: {
  12494. future: 'dalam %s',
  12495. past: '%s yang lepas',
  12496. s: 'beberapa saat',
  12497. ss: '%d saat',
  12498. m: 'seminit',
  12499. mm: '%d minit',
  12500. h: 'sejam',
  12501. hh: '%d jam',
  12502. d: 'sehari',
  12503. dd: '%d hari',
  12504. M: 'sebulan',
  12505. MM: '%d bulan',
  12506. y: 'setahun',
  12507. yy: '%d tahun',
  12508. },
  12509. week: {
  12510. dow: 1, // Monday is the first day of the week.
  12511. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12512. },
  12513. });
  12514. //! moment.js locale configuration
  12515. hooks.defineLocale('mt', {
  12516. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
  12517. '_'
  12518. ),
  12519. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  12520. weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
  12521. '_'
  12522. ),
  12523. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  12524. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  12525. longDateFormat: {
  12526. LT: 'HH:mm',
  12527. LTS: 'HH:mm:ss',
  12528. L: 'DD/MM/YYYY',
  12529. LL: 'D MMMM YYYY',
  12530. LLL: 'D MMMM YYYY HH:mm',
  12531. LLLL: 'dddd, D MMMM YYYY HH:mm',
  12532. },
  12533. calendar: {
  12534. sameDay: '[Illum fil-]LT',
  12535. nextDay: '[Għada fil-]LT',
  12536. nextWeek: 'dddd [fil-]LT',
  12537. lastDay: '[Il-bieraħ fil-]LT',
  12538. lastWeek: 'dddd [li għadda] [fil-]LT',
  12539. sameElse: 'L',
  12540. },
  12541. relativeTime: {
  12542. future: 'f’ %s',
  12543. past: '%s ilu',
  12544. s: 'ftit sekondi',
  12545. ss: '%d sekondi',
  12546. m: 'minuta',
  12547. mm: '%d minuti',
  12548. h: 'siegħa',
  12549. hh: '%d siegħat',
  12550. d: 'ġurnata',
  12551. dd: '%d ġranet',
  12552. M: 'xahar',
  12553. MM: '%d xhur',
  12554. y: 'sena',
  12555. yy: '%d sni',
  12556. },
  12557. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12558. ordinal: '%dº',
  12559. week: {
  12560. dow: 1, // Monday is the first day of the week.
  12561. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12562. },
  12563. });
  12564. //! moment.js locale configuration
  12565. var symbolMap$c = {
  12566. '1': '၁',
  12567. '2': '၂',
  12568. '3': '၃',
  12569. '4': '၄',
  12570. '5': '၅',
  12571. '6': '၆',
  12572. '7': '၇',
  12573. '8': '၈',
  12574. '9': '၉',
  12575. '0': '၀',
  12576. },
  12577. numberMap$b = {
  12578. '၁': '1',
  12579. '၂': '2',
  12580. '၃': '3',
  12581. '၄': '4',
  12582. '၅': '5',
  12583. '၆': '6',
  12584. '၇': '7',
  12585. '၈': '8',
  12586. '၉': '9',
  12587. '၀': '0',
  12588. };
  12589. hooks.defineLocale('my', {
  12590. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  12591. '_'
  12592. ),
  12593. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  12594. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  12595. '_'
  12596. ),
  12597. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12598. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12599. longDateFormat: {
  12600. LT: 'HH:mm',
  12601. LTS: 'HH:mm:ss',
  12602. L: 'DD/MM/YYYY',
  12603. LL: 'D MMMM YYYY',
  12604. LLL: 'D MMMM YYYY HH:mm',
  12605. LLLL: 'dddd D MMMM YYYY HH:mm',
  12606. },
  12607. calendar: {
  12608. sameDay: '[ယနေ.] LT [မှာ]',
  12609. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  12610. nextWeek: 'dddd LT [မှာ]',
  12611. lastDay: '[မနေ.က] LT [မှာ]',
  12612. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  12613. sameElse: 'L',
  12614. },
  12615. relativeTime: {
  12616. future: 'လာမည့် %s မှာ',
  12617. past: 'လွန်ခဲ့သော %s က',
  12618. s: 'စက္ကန်.အနည်းငယ်',
  12619. ss: '%d စက္ကန့်',
  12620. m: 'တစ်မိနစ်',
  12621. mm: '%d မိနစ်',
  12622. h: 'တစ်နာရီ',
  12623. hh: '%d နာရီ',
  12624. d: 'တစ်ရက်',
  12625. dd: '%d ရက်',
  12626. M: 'တစ်လ',
  12627. MM: '%d လ',
  12628. y: 'တစ်နှစ်',
  12629. yy: '%d နှစ်',
  12630. },
  12631. preparse: function (string) {
  12632. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  12633. return numberMap$b[match];
  12634. });
  12635. },
  12636. postformat: function (string) {
  12637. return string.replace(/\d/g, function (match) {
  12638. return symbolMap$c[match];
  12639. });
  12640. },
  12641. week: {
  12642. dow: 1, // Monday is the first day of the week.
  12643. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12644. },
  12645. });
  12646. //! moment.js locale configuration
  12647. hooks.defineLocale('nb', {
  12648. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  12649. '_'
  12650. ),
  12651. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  12652. '_'
  12653. ),
  12654. monthsParseExact: true,
  12655. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  12656. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  12657. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  12658. weekdaysParseExact: true,
  12659. longDateFormat: {
  12660. LT: 'HH:mm',
  12661. LTS: 'HH:mm:ss',
  12662. L: 'DD.MM.YYYY',
  12663. LL: 'D. MMMM YYYY',
  12664. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  12665. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  12666. },
  12667. calendar: {
  12668. sameDay: '[i dag kl.] LT',
  12669. nextDay: '[i morgen kl.] LT',
  12670. nextWeek: 'dddd [kl.] LT',
  12671. lastDay: '[i går kl.] LT',
  12672. lastWeek: '[forrige] dddd [kl.] LT',
  12673. sameElse: 'L',
  12674. },
  12675. relativeTime: {
  12676. future: 'om %s',
  12677. past: '%s siden',
  12678. s: 'noen sekunder',
  12679. ss: '%d sekunder',
  12680. m: 'ett minutt',
  12681. mm: '%d minutter',
  12682. h: 'en time',
  12683. hh: '%d timer',
  12684. d: 'en dag',
  12685. dd: '%d dager',
  12686. M: 'en måned',
  12687. MM: '%d måneder',
  12688. y: 'ett år',
  12689. yy: '%d år',
  12690. },
  12691. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12692. ordinal: '%d.',
  12693. week: {
  12694. dow: 1, // Monday is the first day of the week.
  12695. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12696. },
  12697. });
  12698. //! moment.js locale configuration
  12699. var symbolMap$d = {
  12700. '1': '१',
  12701. '2': '२',
  12702. '3': '३',
  12703. '4': '४',
  12704. '5': '५',
  12705. '6': '६',
  12706. '7': '७',
  12707. '8': '८',
  12708. '9': '९',
  12709. '0': '०',
  12710. },
  12711. numberMap$c = {
  12712. '१': '1',
  12713. '२': '2',
  12714. '३': '3',
  12715. '४': '4',
  12716. '५': '5',
  12717. '६': '6',
  12718. '७': '7',
  12719. '८': '8',
  12720. '९': '9',
  12721. '०': '0',
  12722. };
  12723. hooks.defineLocale('ne', {
  12724. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  12725. '_'
  12726. ),
  12727. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  12728. '_'
  12729. ),
  12730. monthsParseExact: true,
  12731. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  12732. '_'
  12733. ),
  12734. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  12735. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  12736. weekdaysParseExact: true,
  12737. longDateFormat: {
  12738. LT: 'Aको h:mm बजे',
  12739. LTS: 'Aको h:mm:ss बजे',
  12740. L: 'DD/MM/YYYY',
  12741. LL: 'D MMMM YYYY',
  12742. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  12743. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
  12744. },
  12745. preparse: function (string) {
  12746. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12747. return numberMap$c[match];
  12748. });
  12749. },
  12750. postformat: function (string) {
  12751. return string.replace(/\d/g, function (match) {
  12752. return symbolMap$d[match];
  12753. });
  12754. },
  12755. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  12756. meridiemHour: function (hour, meridiem) {
  12757. if (hour === 12) {
  12758. hour = 0;
  12759. }
  12760. if (meridiem === 'राति') {
  12761. return hour < 4 ? hour : hour + 12;
  12762. } else if (meridiem === 'बिहान') {
  12763. return hour;
  12764. } else if (meridiem === 'दिउँसो') {
  12765. return hour >= 10 ? hour : hour + 12;
  12766. } else if (meridiem === 'साँझ') {
  12767. return hour + 12;
  12768. }
  12769. },
  12770. meridiem: function (hour, minute, isLower) {
  12771. if (hour < 3) {
  12772. return 'राति';
  12773. } else if (hour < 12) {
  12774. return 'बिहान';
  12775. } else if (hour < 16) {
  12776. return 'दिउँसो';
  12777. } else if (hour < 20) {
  12778. return 'साँझ';
  12779. } else {
  12780. return 'राति';
  12781. }
  12782. },
  12783. calendar: {
  12784. sameDay: '[आज] LT',
  12785. nextDay: '[भोलि] LT',
  12786. nextWeek: '[आउँदो] dddd[,] LT',
  12787. lastDay: '[हिजो] LT',
  12788. lastWeek: '[गएको] dddd[,] LT',
  12789. sameElse: 'L',
  12790. },
  12791. relativeTime: {
  12792. future: '%sमा',
  12793. past: '%s अगाडि',
  12794. s: 'केही क्षण',
  12795. ss: '%d सेकेण्ड',
  12796. m: 'एक मिनेट',
  12797. mm: '%d मिनेट',
  12798. h: 'एक घण्टा',
  12799. hh: '%d घण्टा',
  12800. d: 'एक दिन',
  12801. dd: '%d दिन',
  12802. M: 'एक महिना',
  12803. MM: '%d महिना',
  12804. y: 'एक बर्ष',
  12805. yy: '%d बर्ष',
  12806. },
  12807. week: {
  12808. dow: 0, // Sunday is the first day of the week.
  12809. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12810. },
  12811. });
  12812. //! moment.js locale configuration
  12813. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  12814. '_'
  12815. ),
  12816. monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  12817. '_'
  12818. ),
  12819. monthsParse$6 = [
  12820. /^jan/i,
  12821. /^feb/i,
  12822. /^maart|mrt.?$/i,
  12823. /^apr/i,
  12824. /^mei$/i,
  12825. /^jun[i.]?$/i,
  12826. /^jul[i.]?$/i,
  12827. /^aug/i,
  12828. /^sep/i,
  12829. /^okt/i,
  12830. /^nov/i,
  12831. /^dec/i,
  12832. ],
  12833. monthsRegex$7 = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  12834. hooks.defineLocale('nl-be', {
  12835. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  12836. '_'
  12837. ),
  12838. monthsShort: function (m, format) {
  12839. if (!m) {
  12840. return monthsShortWithDots$1;
  12841. } else if (/-MMM-/.test(format)) {
  12842. return monthsShortWithoutDots$1[m.month()];
  12843. } else {
  12844. return monthsShortWithDots$1[m.month()];
  12845. }
  12846. },
  12847. monthsRegex: monthsRegex$7,
  12848. monthsShortRegex: monthsRegex$7,
  12849. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  12850. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  12851. monthsParse: monthsParse$6,
  12852. longMonthsParse: monthsParse$6,
  12853. shortMonthsParse: monthsParse$6,
  12854. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  12855. '_'
  12856. ),
  12857. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  12858. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  12859. weekdaysParseExact: true,
  12860. longDateFormat: {
  12861. LT: 'HH:mm',
  12862. LTS: 'HH:mm:ss',
  12863. L: 'DD/MM/YYYY',
  12864. LL: 'D MMMM YYYY',
  12865. LLL: 'D MMMM YYYY HH:mm',
  12866. LLLL: 'dddd D MMMM YYYY HH:mm',
  12867. },
  12868. calendar: {
  12869. sameDay: '[vandaag om] LT',
  12870. nextDay: '[morgen om] LT',
  12871. nextWeek: 'dddd [om] LT',
  12872. lastDay: '[gisteren om] LT',
  12873. lastWeek: '[afgelopen] dddd [om] LT',
  12874. sameElse: 'L',
  12875. },
  12876. relativeTime: {
  12877. future: 'over %s',
  12878. past: '%s geleden',
  12879. s: 'een paar seconden',
  12880. ss: '%d seconden',
  12881. m: 'één minuut',
  12882. mm: '%d minuten',
  12883. h: 'één uur',
  12884. hh: '%d uur',
  12885. d: 'één dag',
  12886. dd: '%d dagen',
  12887. M: 'één maand',
  12888. MM: '%d maanden',
  12889. y: 'één jaar',
  12890. yy: '%d jaar',
  12891. },
  12892. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12893. ordinal: function (number) {
  12894. return (
  12895. number +
  12896. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  12897. );
  12898. },
  12899. week: {
  12900. dow: 1, // Monday is the first day of the week.
  12901. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12902. },
  12903. });
  12904. //! moment.js locale configuration
  12905. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  12906. '_'
  12907. ),
  12908. monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  12909. '_'
  12910. ),
  12911. monthsParse$7 = [
  12912. /^jan/i,
  12913. /^feb/i,
  12914. /^maart|mrt.?$/i,
  12915. /^apr/i,
  12916. /^mei$/i,
  12917. /^jun[i.]?$/i,
  12918. /^jul[i.]?$/i,
  12919. /^aug/i,
  12920. /^sep/i,
  12921. /^okt/i,
  12922. /^nov/i,
  12923. /^dec/i,
  12924. ],
  12925. monthsRegex$8 = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  12926. hooks.defineLocale('nl', {
  12927. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  12928. '_'
  12929. ),
  12930. monthsShort: function (m, format) {
  12931. if (!m) {
  12932. return monthsShortWithDots$2;
  12933. } else if (/-MMM-/.test(format)) {
  12934. return monthsShortWithoutDots$2[m.month()];
  12935. } else {
  12936. return monthsShortWithDots$2[m.month()];
  12937. }
  12938. },
  12939. monthsRegex: monthsRegex$8,
  12940. monthsShortRegex: monthsRegex$8,
  12941. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  12942. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  12943. monthsParse: monthsParse$7,
  12944. longMonthsParse: monthsParse$7,
  12945. shortMonthsParse: monthsParse$7,
  12946. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  12947. '_'
  12948. ),
  12949. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  12950. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  12951. weekdaysParseExact: true,
  12952. longDateFormat: {
  12953. LT: 'HH:mm',
  12954. LTS: 'HH:mm:ss',
  12955. L: 'DD-MM-YYYY',
  12956. LL: 'D MMMM YYYY',
  12957. LLL: 'D MMMM YYYY HH:mm',
  12958. LLLL: 'dddd D MMMM YYYY HH:mm',
  12959. },
  12960. calendar: {
  12961. sameDay: '[vandaag om] LT',
  12962. nextDay: '[morgen om] LT',
  12963. nextWeek: 'dddd [om] LT',
  12964. lastDay: '[gisteren om] LT',
  12965. lastWeek: '[afgelopen] dddd [om] LT',
  12966. sameElse: 'L',
  12967. },
  12968. relativeTime: {
  12969. future: 'over %s',
  12970. past: '%s geleden',
  12971. s: 'een paar seconden',
  12972. ss: '%d seconden',
  12973. m: 'één minuut',
  12974. mm: '%d minuten',
  12975. h: 'één uur',
  12976. hh: '%d uur',
  12977. d: 'één dag',
  12978. dd: '%d dagen',
  12979. M: 'één maand',
  12980. MM: '%d maanden',
  12981. y: 'één jaar',
  12982. yy: '%d jaar',
  12983. },
  12984. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12985. ordinal: function (number) {
  12986. return (
  12987. number +
  12988. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  12989. );
  12990. },
  12991. week: {
  12992. dow: 1, // Monday is the first day of the week.
  12993. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12994. },
  12995. });
  12996. //! moment.js locale configuration
  12997. hooks.defineLocale('nn', {
  12998. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  12999. '_'
  13000. ),
  13001. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  13002. '_'
  13003. ),
  13004. monthsParseExact: true,
  13005. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  13006. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  13007. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  13008. weekdaysParseExact: true,
  13009. longDateFormat: {
  13010. LT: 'HH:mm',
  13011. LTS: 'HH:mm:ss',
  13012. L: 'DD.MM.YYYY',
  13013. LL: 'D. MMMM YYYY',
  13014. LLL: 'D. MMMM YYYY [kl.] H:mm',
  13015. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  13016. },
  13017. calendar: {
  13018. sameDay: '[I dag klokka] LT',
  13019. nextDay: '[I morgon klokka] LT',
  13020. nextWeek: 'dddd [klokka] LT',
  13021. lastDay: '[I går klokka] LT',
  13022. lastWeek: '[Føregåande] dddd [klokka] LT',
  13023. sameElse: 'L',
  13024. },
  13025. relativeTime: {
  13026. future: 'om %s',
  13027. past: '%s sidan',
  13028. s: 'nokre sekund',
  13029. ss: '%d sekund',
  13030. m: 'eit minutt',
  13031. mm: '%d minutt',
  13032. h: 'ein time',
  13033. hh: '%d timar',
  13034. d: 'ein dag',
  13035. dd: '%d dagar',
  13036. M: 'ein månad',
  13037. MM: '%d månader',
  13038. y: 'eit år',
  13039. yy: '%d år',
  13040. },
  13041. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13042. ordinal: '%d.',
  13043. week: {
  13044. dow: 1, // Monday is the first day of the week.
  13045. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13046. },
  13047. });
  13048. //! moment.js locale configuration
  13049. hooks.defineLocale('oc-lnc', {
  13050. months: {
  13051. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  13052. '_'
  13053. ),
  13054. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
  13055. '_'
  13056. ),
  13057. isFormat: /D[oD]?(\s)+MMMM/,
  13058. },
  13059. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  13060. '_'
  13061. ),
  13062. monthsParseExact: true,
  13063. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  13064. '_'
  13065. ),
  13066. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  13067. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  13068. weekdaysParseExact: true,
  13069. longDateFormat: {
  13070. LT: 'H:mm',
  13071. LTS: 'H:mm:ss',
  13072. L: 'DD/MM/YYYY',
  13073. LL: 'D MMMM [de] YYYY',
  13074. ll: 'D MMM YYYY',
  13075. LLL: 'D MMMM [de] YYYY [a] H:mm',
  13076. lll: 'D MMM YYYY, H:mm',
  13077. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  13078. llll: 'ddd D MMM YYYY, H:mm',
  13079. },
  13080. calendar: {
  13081. sameDay: '[uèi a] LT',
  13082. nextDay: '[deman a] LT',
  13083. nextWeek: 'dddd [a] LT',
  13084. lastDay: '[ièr a] LT',
  13085. lastWeek: 'dddd [passat a] LT',
  13086. sameElse: 'L',
  13087. },
  13088. relativeTime: {
  13089. future: "d'aquí %s",
  13090. past: 'fa %s',
  13091. s: 'unas segondas',
  13092. ss: '%d segondas',
  13093. m: 'una minuta',
  13094. mm: '%d minutas',
  13095. h: 'una ora',
  13096. hh: '%d oras',
  13097. d: 'un jorn',
  13098. dd: '%d jorns',
  13099. M: 'un mes',
  13100. MM: '%d meses',
  13101. y: 'un an',
  13102. yy: '%d ans',
  13103. },
  13104. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  13105. ordinal: function (number, period) {
  13106. var output =
  13107. number === 1
  13108. ? 'r'
  13109. : number === 2
  13110. ? 'n'
  13111. : number === 3
  13112. ? 'r'
  13113. : number === 4
  13114. ? 't'
  13115. : 'è';
  13116. if (period === 'w' || period === 'W') {
  13117. output = 'a';
  13118. }
  13119. return number + output;
  13120. },
  13121. week: {
  13122. dow: 1, // Monday is the first day of the week.
  13123. doy: 4,
  13124. },
  13125. });
  13126. //! moment.js locale configuration
  13127. var symbolMap$e = {
  13128. '1': '੧',
  13129. '2': '੨',
  13130. '3': '੩',
  13131. '4': '੪',
  13132. '5': '੫',
  13133. '6': '੬',
  13134. '7': '੭',
  13135. '8': '੮',
  13136. '9': '੯',
  13137. '0': '੦',
  13138. },
  13139. numberMap$d = {
  13140. '੧': '1',
  13141. '੨': '2',
  13142. '੩': '3',
  13143. '੪': '4',
  13144. '੫': '5',
  13145. '੬': '6',
  13146. '੭': '7',
  13147. '੮': '8',
  13148. '੯': '9',
  13149. '੦': '0',
  13150. };
  13151. hooks.defineLocale('pa-in', {
  13152. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  13153. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13154. '_'
  13155. ),
  13156. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13157. '_'
  13158. ),
  13159. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
  13160. '_'
  13161. ),
  13162. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13163. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13164. longDateFormat: {
  13165. LT: 'A h:mm ਵਜੇ',
  13166. LTS: 'A h:mm:ss ਵਜੇ',
  13167. L: 'DD/MM/YYYY',
  13168. LL: 'D MMMM YYYY',
  13169. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  13170. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
  13171. },
  13172. calendar: {
  13173. sameDay: '[ਅਜ] LT',
  13174. nextDay: '[ਕਲ] LT',
  13175. nextWeek: '[ਅਗਲਾ] dddd, LT',
  13176. lastDay: '[ਕਲ] LT',
  13177. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  13178. sameElse: 'L',
  13179. },
  13180. relativeTime: {
  13181. future: '%s ਵਿੱਚ',
  13182. past: '%s ਪਿਛਲੇ',
  13183. s: 'ਕੁਝ ਸਕਿੰਟ',
  13184. ss: '%d ਸਕਿੰਟ',
  13185. m: 'ਇਕ ਮਿੰਟ',
  13186. mm: '%d ਮਿੰਟ',
  13187. h: 'ਇੱਕ ਘੰਟਾ',
  13188. hh: '%d ਘੰਟੇ',
  13189. d: 'ਇੱਕ ਦਿਨ',
  13190. dd: '%d ਦਿਨ',
  13191. M: 'ਇੱਕ ਮਹੀਨਾ',
  13192. MM: '%d ਮਹੀਨੇ',
  13193. y: 'ਇੱਕ ਸਾਲ',
  13194. yy: '%d ਸਾਲ',
  13195. },
  13196. preparse: function (string) {
  13197. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  13198. return numberMap$d[match];
  13199. });
  13200. },
  13201. postformat: function (string) {
  13202. return string.replace(/\d/g, function (match) {
  13203. return symbolMap$e[match];
  13204. });
  13205. },
  13206. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  13207. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  13208. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  13209. meridiemHour: function (hour, meridiem) {
  13210. if (hour === 12) {
  13211. hour = 0;
  13212. }
  13213. if (meridiem === 'ਰਾਤ') {
  13214. return hour < 4 ? hour : hour + 12;
  13215. } else if (meridiem === 'ਸਵੇਰ') {
  13216. return hour;
  13217. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  13218. return hour >= 10 ? hour : hour + 12;
  13219. } else if (meridiem === 'ਸ਼ਾਮ') {
  13220. return hour + 12;
  13221. }
  13222. },
  13223. meridiem: function (hour, minute, isLower) {
  13224. if (hour < 4) {
  13225. return 'ਰਾਤ';
  13226. } else if (hour < 10) {
  13227. return 'ਸਵੇਰ';
  13228. } else if (hour < 17) {
  13229. return 'ਦੁਪਹਿਰ';
  13230. } else if (hour < 20) {
  13231. return 'ਸ਼ਾਮ';
  13232. } else {
  13233. return 'ਰਾਤ';
  13234. }
  13235. },
  13236. week: {
  13237. dow: 0, // Sunday is the first day of the week.
  13238. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13239. },
  13240. });
  13241. //! moment.js locale configuration
  13242. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
  13243. '_'
  13244. ),
  13245. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
  13246. '_'
  13247. );
  13248. function plural$3(n) {
  13249. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  13250. }
  13251. function translate$8(number, withoutSuffix, key) {
  13252. var result = number + ' ';
  13253. switch (key) {
  13254. case 'ss':
  13255. return result + (plural$3(number) ? 'sekundy' : 'sekund');
  13256. case 'm':
  13257. return withoutSuffix ? 'minuta' : 'minutę';
  13258. case 'mm':
  13259. return result + (plural$3(number) ? 'minuty' : 'minut');
  13260. case 'h':
  13261. return withoutSuffix ? 'godzina' : 'godzinę';
  13262. case 'hh':
  13263. return result + (plural$3(number) ? 'godziny' : 'godzin');
  13264. case 'MM':
  13265. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  13266. case 'yy':
  13267. return result + (plural$3(number) ? 'lata' : 'lat');
  13268. }
  13269. }
  13270. hooks.defineLocale('pl', {
  13271. months: function (momentToFormat, format) {
  13272. if (!momentToFormat) {
  13273. return monthsNominative;
  13274. } else if (format === '') {
  13275. // Hack: if format empty we know this is used to generate
  13276. // RegExp by moment. Give then back both valid forms of months
  13277. // in RegExp ready format.
  13278. return (
  13279. '(' +
  13280. monthsSubjective[momentToFormat.month()] +
  13281. '|' +
  13282. monthsNominative[momentToFormat.month()] +
  13283. ')'
  13284. );
  13285. } else if (/D MMMM/.test(format)) {
  13286. return monthsSubjective[momentToFormat.month()];
  13287. } else {
  13288. return monthsNominative[momentToFormat.month()];
  13289. }
  13290. },
  13291. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  13292. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
  13293. '_'
  13294. ),
  13295. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  13296. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  13297. longDateFormat: {
  13298. LT: 'HH:mm',
  13299. LTS: 'HH:mm:ss',
  13300. L: 'DD.MM.YYYY',
  13301. LL: 'D MMMM YYYY',
  13302. LLL: 'D MMMM YYYY HH:mm',
  13303. LLLL: 'dddd, D MMMM YYYY HH:mm',
  13304. },
  13305. calendar: {
  13306. sameDay: '[Dziś o] LT',
  13307. nextDay: '[Jutro o] LT',
  13308. nextWeek: function () {
  13309. switch (this.day()) {
  13310. case 0:
  13311. return '[W niedzielę o] LT';
  13312. case 2:
  13313. return '[We wtorek o] LT';
  13314. case 3:
  13315. return '[W środę o] LT';
  13316. case 6:
  13317. return '[W sobotę o] LT';
  13318. default:
  13319. return '[W] dddd [o] LT';
  13320. }
  13321. },
  13322. lastDay: '[Wczoraj o] LT',
  13323. lastWeek: function () {
  13324. switch (this.day()) {
  13325. case 0:
  13326. return '[W zeszłą niedzielę o] LT';
  13327. case 3:
  13328. return '[W zeszłą środę o] LT';
  13329. case 6:
  13330. return '[W zeszłą sobotę o] LT';
  13331. default:
  13332. return '[W zeszły] dddd [o] LT';
  13333. }
  13334. },
  13335. sameElse: 'L',
  13336. },
  13337. relativeTime: {
  13338. future: 'za %s',
  13339. past: '%s temu',
  13340. s: 'kilka sekund',
  13341. ss: translate$8,
  13342. m: translate$8,
  13343. mm: translate$8,
  13344. h: translate$8,
  13345. hh: translate$8,
  13346. d: '1 dzień',
  13347. dd: '%d dni',
  13348. M: 'miesiąc',
  13349. MM: translate$8,
  13350. y: 'rok',
  13351. yy: translate$8,
  13352. },
  13353. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13354. ordinal: '%d.',
  13355. week: {
  13356. dow: 1, // Monday is the first day of the week.
  13357. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13358. },
  13359. });
  13360. //! moment.js locale configuration
  13361. hooks.defineLocale('pt-br', {
  13362. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13363. '_'
  13364. ),
  13365. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13366. weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
  13367. '_'
  13368. ),
  13369. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  13370. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  13371. weekdaysParseExact: true,
  13372. longDateFormat: {
  13373. LT: 'HH:mm',
  13374. LTS: 'HH:mm:ss',
  13375. L: 'DD/MM/YYYY',
  13376. LL: 'D [de] MMMM [de] YYYY',
  13377. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  13378. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
  13379. },
  13380. calendar: {
  13381. sameDay: '[Hoje às] LT',
  13382. nextDay: '[Amanhã às] LT',
  13383. nextWeek: 'dddd [às] LT',
  13384. lastDay: '[Ontem às] LT',
  13385. lastWeek: function () {
  13386. return this.day() === 0 || this.day() === 6
  13387. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13388. : '[Última] dddd [às] LT'; // Monday - Friday
  13389. },
  13390. sameElse: 'L',
  13391. },
  13392. relativeTime: {
  13393. future: 'em %s',
  13394. past: 'há %s',
  13395. s: 'poucos segundos',
  13396. ss: '%d segundos',
  13397. m: 'um minuto',
  13398. mm: '%d minutos',
  13399. h: 'uma hora',
  13400. hh: '%d horas',
  13401. d: 'um dia',
  13402. dd: '%d dias',
  13403. M: 'um mês',
  13404. MM: '%d meses',
  13405. y: 'um ano',
  13406. yy: '%d anos',
  13407. },
  13408. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13409. ordinal: '%dº',
  13410. });
  13411. //! moment.js locale configuration
  13412. hooks.defineLocale('pt', {
  13413. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13414. '_'
  13415. ),
  13416. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13417. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
  13418. '_'
  13419. ),
  13420. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13421. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13422. weekdaysParseExact: true,
  13423. longDateFormat: {
  13424. LT: 'HH:mm',
  13425. LTS: 'HH:mm:ss',
  13426. L: 'DD/MM/YYYY',
  13427. LL: 'D [de] MMMM [de] YYYY',
  13428. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  13429. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
  13430. },
  13431. calendar: {
  13432. sameDay: '[Hoje às] LT',
  13433. nextDay: '[Amanhã às] LT',
  13434. nextWeek: 'dddd [às] LT',
  13435. lastDay: '[Ontem às] LT',
  13436. lastWeek: function () {
  13437. return this.day() === 0 || this.day() === 6
  13438. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13439. : '[Última] dddd [às] LT'; // Monday - Friday
  13440. },
  13441. sameElse: 'L',
  13442. },
  13443. relativeTime: {
  13444. future: 'em %s',
  13445. past: 'há %s',
  13446. s: 'segundos',
  13447. ss: '%d segundos',
  13448. m: 'um minuto',
  13449. mm: '%d minutos',
  13450. h: 'uma hora',
  13451. hh: '%d horas',
  13452. d: 'um dia',
  13453. dd: '%d dias',
  13454. M: 'um mês',
  13455. MM: '%d meses',
  13456. y: 'um ano',
  13457. yy: '%d anos',
  13458. },
  13459. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13460. ordinal: '%dº',
  13461. week: {
  13462. dow: 1, // Monday is the first day of the week.
  13463. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13464. },
  13465. });
  13466. //! moment.js locale configuration
  13467. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  13468. var format = {
  13469. ss: 'secunde',
  13470. mm: 'minute',
  13471. hh: 'ore',
  13472. dd: 'zile',
  13473. MM: 'luni',
  13474. yy: 'ani',
  13475. },
  13476. separator = ' ';
  13477. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  13478. separator = ' de ';
  13479. }
  13480. return number + separator + format[key];
  13481. }
  13482. hooks.defineLocale('ro', {
  13483. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  13484. '_'
  13485. ),
  13486. monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  13487. '_'
  13488. ),
  13489. monthsParseExact: true,
  13490. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  13491. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  13492. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  13493. longDateFormat: {
  13494. LT: 'H:mm',
  13495. LTS: 'H:mm:ss',
  13496. L: 'DD.MM.YYYY',
  13497. LL: 'D MMMM YYYY',
  13498. LLL: 'D MMMM YYYY H:mm',
  13499. LLLL: 'dddd, D MMMM YYYY H:mm',
  13500. },
  13501. calendar: {
  13502. sameDay: '[azi la] LT',
  13503. nextDay: '[mâine la] LT',
  13504. nextWeek: 'dddd [la] LT',
  13505. lastDay: '[ieri la] LT',
  13506. lastWeek: '[fosta] dddd [la] LT',
  13507. sameElse: 'L',
  13508. },
  13509. relativeTime: {
  13510. future: 'peste %s',
  13511. past: '%s în urmă',
  13512. s: 'câteva secunde',
  13513. ss: relativeTimeWithPlural$2,
  13514. m: 'un minut',
  13515. mm: relativeTimeWithPlural$2,
  13516. h: 'o oră',
  13517. hh: relativeTimeWithPlural$2,
  13518. d: 'o zi',
  13519. dd: relativeTimeWithPlural$2,
  13520. M: 'o lună',
  13521. MM: relativeTimeWithPlural$2,
  13522. y: 'un an',
  13523. yy: relativeTimeWithPlural$2,
  13524. },
  13525. week: {
  13526. dow: 1, // Monday is the first day of the week.
  13527. doy: 7, // The week that contains Jan 7th is the first week of the year.
  13528. },
  13529. });
  13530. //! moment.js locale configuration
  13531. function plural$4(word, num) {
  13532. var forms = word.split('_');
  13533. return num % 10 === 1 && num % 100 !== 11
  13534. ? forms[0]
  13535. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  13536. ? forms[1]
  13537. : forms[2];
  13538. }
  13539. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  13540. var format = {
  13541. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  13542. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  13543. hh: 'час_часа_часов',
  13544. dd: 'день_дня_дней',
  13545. MM: 'месяц_месяца_месяцев',
  13546. yy: 'год_года_лет',
  13547. };
  13548. if (key === 'm') {
  13549. return withoutSuffix ? 'минута' : 'минуту';
  13550. } else {
  13551. return number + ' ' + plural$4(format[key], +number);
  13552. }
  13553. }
  13554. var monthsParse$8 = [
  13555. /^янв/i,
  13556. /^фев/i,
  13557. /^мар/i,
  13558. /^апр/i,
  13559. /^ма[йя]/i,
  13560. /^июн/i,
  13561. /^июл/i,
  13562. /^авг/i,
  13563. /^сен/i,
  13564. /^окт/i,
  13565. /^ноя/i,
  13566. /^дек/i,
  13567. ];
  13568. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  13569. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  13570. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  13571. hooks.defineLocale('ru', {
  13572. months: {
  13573. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
  13574. '_'
  13575. ),
  13576. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  13577. '_'
  13578. ),
  13579. },
  13580. monthsShort: {
  13581. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  13582. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
  13583. '_'
  13584. ),
  13585. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
  13586. '_'
  13587. ),
  13588. },
  13589. weekdays: {
  13590. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
  13591. '_'
  13592. ),
  13593. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
  13594. '_'
  13595. ),
  13596. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
  13597. },
  13598. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13599. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13600. monthsParse: monthsParse$8,
  13601. longMonthsParse: monthsParse$8,
  13602. shortMonthsParse: monthsParse$8,
  13603. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  13604. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13605. // копия предыдущего
  13606. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13607. // полные названия с падежами
  13608. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  13609. // Выражение, которое соответствует только сокращённым формам
  13610. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  13611. longDateFormat: {
  13612. LT: 'H:mm',
  13613. LTS: 'H:mm:ss',
  13614. L: 'DD.MM.YYYY',
  13615. LL: 'D MMMM YYYY г.',
  13616. LLL: 'D MMMM YYYY г., H:mm',
  13617. LLLL: 'dddd, D MMMM YYYY г., H:mm',
  13618. },
  13619. calendar: {
  13620. sameDay: '[Сегодня, в] LT',
  13621. nextDay: '[Завтра, в] LT',
  13622. lastDay: '[Вчера, в] LT',
  13623. nextWeek: function (now) {
  13624. if (now.week() !== this.week()) {
  13625. switch (this.day()) {
  13626. case 0:
  13627. return '[В следующее] dddd, [в] LT';
  13628. case 1:
  13629. case 2:
  13630. case 4:
  13631. return '[В следующий] dddd, [в] LT';
  13632. case 3:
  13633. case 5:
  13634. case 6:
  13635. return '[В следующую] dddd, [в] LT';
  13636. }
  13637. } else {
  13638. if (this.day() === 2) {
  13639. return '[Во] dddd, [в] LT';
  13640. } else {
  13641. return '[В] dddd, [в] LT';
  13642. }
  13643. }
  13644. },
  13645. lastWeek: function (now) {
  13646. if (now.week() !== this.week()) {
  13647. switch (this.day()) {
  13648. case 0:
  13649. return '[В прошлое] dddd, [в] LT';
  13650. case 1:
  13651. case 2:
  13652. case 4:
  13653. return '[В прошлый] dddd, [в] LT';
  13654. case 3:
  13655. case 5:
  13656. case 6:
  13657. return '[В прошлую] dddd, [в] LT';
  13658. }
  13659. } else {
  13660. if (this.day() === 2) {
  13661. return '[Во] dddd, [в] LT';
  13662. } else {
  13663. return '[В] dddd, [в] LT';
  13664. }
  13665. }
  13666. },
  13667. sameElse: 'L',
  13668. },
  13669. relativeTime: {
  13670. future: 'через %s',
  13671. past: '%s назад',
  13672. s: 'несколько секунд',
  13673. ss: relativeTimeWithPlural$3,
  13674. m: relativeTimeWithPlural$3,
  13675. mm: relativeTimeWithPlural$3,
  13676. h: 'час',
  13677. hh: relativeTimeWithPlural$3,
  13678. d: 'день',
  13679. dd: relativeTimeWithPlural$3,
  13680. M: 'месяц',
  13681. MM: relativeTimeWithPlural$3,
  13682. y: 'год',
  13683. yy: relativeTimeWithPlural$3,
  13684. },
  13685. meridiemParse: /ночи|утра|дня|вечера/i,
  13686. isPM: function (input) {
  13687. return /^(дня|вечера)$/.test(input);
  13688. },
  13689. meridiem: function (hour, minute, isLower) {
  13690. if (hour < 4) {
  13691. return 'ночи';
  13692. } else if (hour < 12) {
  13693. return 'утра';
  13694. } else if (hour < 17) {
  13695. return 'дня';
  13696. } else {
  13697. return 'вечера';
  13698. }
  13699. },
  13700. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  13701. ordinal: function (number, period) {
  13702. switch (period) {
  13703. case 'M':
  13704. case 'd':
  13705. case 'DDD':
  13706. return number + '-й';
  13707. case 'D':
  13708. return number + '-го';
  13709. case 'w':
  13710. case 'W':
  13711. return number + '-я';
  13712. default:
  13713. return number;
  13714. }
  13715. },
  13716. week: {
  13717. dow: 1, // Monday is the first day of the week.
  13718. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13719. },
  13720. });
  13721. //! moment.js locale configuration
  13722. var months$9 = [
  13723. 'جنوري',
  13724. 'فيبروري',
  13725. 'مارچ',
  13726. 'اپريل',
  13727. 'مئي',
  13728. 'جون',
  13729. 'جولاءِ',
  13730. 'آگسٽ',
  13731. 'سيپٽمبر',
  13732. 'آڪٽوبر',
  13733. 'نومبر',
  13734. 'ڊسمبر',
  13735. ],
  13736. days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  13737. hooks.defineLocale('sd', {
  13738. months: months$9,
  13739. monthsShort: months$9,
  13740. weekdays: days$1,
  13741. weekdaysShort: days$1,
  13742. weekdaysMin: days$1,
  13743. longDateFormat: {
  13744. LT: 'HH:mm',
  13745. LTS: 'HH:mm:ss',
  13746. L: 'DD/MM/YYYY',
  13747. LL: 'D MMMM YYYY',
  13748. LLL: 'D MMMM YYYY HH:mm',
  13749. LLLL: 'dddd، D MMMM YYYY HH:mm',
  13750. },
  13751. meridiemParse: /صبح|شام/,
  13752. isPM: function (input) {
  13753. return 'شام' === input;
  13754. },
  13755. meridiem: function (hour, minute, isLower) {
  13756. if (hour < 12) {
  13757. return 'صبح';
  13758. }
  13759. return 'شام';
  13760. },
  13761. calendar: {
  13762. sameDay: '[اڄ] LT',
  13763. nextDay: '[سڀاڻي] LT',
  13764. nextWeek: 'dddd [اڳين هفتي تي] LT',
  13765. lastDay: '[ڪالهه] LT',
  13766. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  13767. sameElse: 'L',
  13768. },
  13769. relativeTime: {
  13770. future: '%s پوء',
  13771. past: '%s اڳ',
  13772. s: 'چند سيڪنڊ',
  13773. ss: '%d سيڪنڊ',
  13774. m: 'هڪ منٽ',
  13775. mm: '%d منٽ',
  13776. h: 'هڪ ڪلاڪ',
  13777. hh: '%d ڪلاڪ',
  13778. d: 'هڪ ڏينهن',
  13779. dd: '%d ڏينهن',
  13780. M: 'هڪ مهينو',
  13781. MM: '%d مهينا',
  13782. y: 'هڪ سال',
  13783. yy: '%d سال',
  13784. },
  13785. preparse: function (string) {
  13786. return string.replace(/،/g, ',');
  13787. },
  13788. postformat: function (string) {
  13789. return string.replace(/,/g, '،');
  13790. },
  13791. week: {
  13792. dow: 1, // Monday is the first day of the week.
  13793. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13794. },
  13795. });
  13796. //! moment.js locale configuration
  13797. hooks.defineLocale('se', {
  13798. months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
  13799. '_'
  13800. ),
  13801. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(
  13802. '_'
  13803. ),
  13804. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
  13805. '_'
  13806. ),
  13807. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  13808. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  13809. longDateFormat: {
  13810. LT: 'HH:mm',
  13811. LTS: 'HH:mm:ss',
  13812. L: 'DD.MM.YYYY',
  13813. LL: 'MMMM D. [b.] YYYY',
  13814. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  13815. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
  13816. },
  13817. calendar: {
  13818. sameDay: '[otne ti] LT',
  13819. nextDay: '[ihttin ti] LT',
  13820. nextWeek: 'dddd [ti] LT',
  13821. lastDay: '[ikte ti] LT',
  13822. lastWeek: '[ovddit] dddd [ti] LT',
  13823. sameElse: 'L',
  13824. },
  13825. relativeTime: {
  13826. future: '%s geažes',
  13827. past: 'maŋit %s',
  13828. s: 'moadde sekunddat',
  13829. ss: '%d sekunddat',
  13830. m: 'okta minuhta',
  13831. mm: '%d minuhtat',
  13832. h: 'okta diimmu',
  13833. hh: '%d diimmut',
  13834. d: 'okta beaivi',
  13835. dd: '%d beaivvit',
  13836. M: 'okta mánnu',
  13837. MM: '%d mánut',
  13838. y: 'okta jahki',
  13839. yy: '%d jagit',
  13840. },
  13841. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13842. ordinal: '%d.',
  13843. week: {
  13844. dow: 1, // Monday is the first day of the week.
  13845. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13846. },
  13847. });
  13848. //! moment.js locale configuration
  13849. /*jshint -W100*/
  13850. hooks.defineLocale('si', {
  13851. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
  13852. '_'
  13853. ),
  13854. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
  13855. '_'
  13856. ),
  13857. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
  13858. '_'
  13859. ),
  13860. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  13861. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  13862. weekdaysParseExact: true,
  13863. longDateFormat: {
  13864. LT: 'a h:mm',
  13865. LTS: 'a h:mm:ss',
  13866. L: 'YYYY/MM/DD',
  13867. LL: 'YYYY MMMM D',
  13868. LLL: 'YYYY MMMM D, a h:mm',
  13869. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
  13870. },
  13871. calendar: {
  13872. sameDay: '[අද] LT[ට]',
  13873. nextDay: '[හෙට] LT[ට]',
  13874. nextWeek: 'dddd LT[ට]',
  13875. lastDay: '[ඊයේ] LT[ට]',
  13876. lastWeek: '[පසුගිය] dddd LT[ට]',
  13877. sameElse: 'L',
  13878. },
  13879. relativeTime: {
  13880. future: '%sකින්',
  13881. past: '%sකට පෙර',
  13882. s: 'තත්පර කිහිපය',
  13883. ss: 'තත්පර %d',
  13884. m: 'මිනිත්තුව',
  13885. mm: 'මිනිත්තු %d',
  13886. h: 'පැය',
  13887. hh: 'පැය %d',
  13888. d: 'දිනය',
  13889. dd: 'දින %d',
  13890. M: 'මාසය',
  13891. MM: 'මාස %d',
  13892. y: 'වසර',
  13893. yy: 'වසර %d',
  13894. },
  13895. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  13896. ordinal: function (number) {
  13897. return number + ' වැනි';
  13898. },
  13899. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  13900. isPM: function (input) {
  13901. return input === 'ප.ව.' || input === 'පස් වරු';
  13902. },
  13903. meridiem: function (hours, minutes, isLower) {
  13904. if (hours > 11) {
  13905. return isLower ? 'ප.ව.' : 'පස් වරු';
  13906. } else {
  13907. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  13908. }
  13909. },
  13910. });
  13911. //! moment.js locale configuration
  13912. var months$a = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
  13913. '_'
  13914. ),
  13915. monthsShort$6 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  13916. function plural$5(n) {
  13917. return n > 1 && n < 5;
  13918. }
  13919. function translate$9(number, withoutSuffix, key, isFuture) {
  13920. var result = number + ' ';
  13921. switch (key) {
  13922. case 's': // a few seconds / in a few seconds / a few seconds ago
  13923. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  13924. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  13925. if (withoutSuffix || isFuture) {
  13926. return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
  13927. } else {
  13928. return result + 'sekundami';
  13929. }
  13930. case 'm': // a minute / in a minute / a minute ago
  13931. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  13932. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  13933. if (withoutSuffix || isFuture) {
  13934. return result + (plural$5(number) ? 'minúty' : 'minút');
  13935. } else {
  13936. return result + 'minútami';
  13937. }
  13938. case 'h': // an hour / in an hour / an hour ago
  13939. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  13940. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  13941. if (withoutSuffix || isFuture) {
  13942. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  13943. } else {
  13944. return result + 'hodinami';
  13945. }
  13946. case 'd': // a day / in a day / a day ago
  13947. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  13948. case 'dd': // 9 days / in 9 days / 9 days ago
  13949. if (withoutSuffix || isFuture) {
  13950. return result + (plural$5(number) ? 'dni' : 'dní');
  13951. } else {
  13952. return result + 'dňami';
  13953. }
  13954. case 'M': // a month / in a month / a month ago
  13955. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  13956. case 'MM': // 9 months / in 9 months / 9 months ago
  13957. if (withoutSuffix || isFuture) {
  13958. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  13959. } else {
  13960. return result + 'mesiacmi';
  13961. }
  13962. case 'y': // a year / in a year / a year ago
  13963. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  13964. case 'yy': // 9 years / in 9 years / 9 years ago
  13965. if (withoutSuffix || isFuture) {
  13966. return result + (plural$5(number) ? 'roky' : 'rokov');
  13967. } else {
  13968. return result + 'rokmi';
  13969. }
  13970. }
  13971. }
  13972. hooks.defineLocale('sk', {
  13973. months: months$a,
  13974. monthsShort: monthsShort$6,
  13975. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  13976. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  13977. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  13978. longDateFormat: {
  13979. LT: 'H:mm',
  13980. LTS: 'H:mm:ss',
  13981. L: 'DD.MM.YYYY',
  13982. LL: 'D. MMMM YYYY',
  13983. LLL: 'D. MMMM YYYY H:mm',
  13984. LLLL: 'dddd D. MMMM YYYY H:mm',
  13985. },
  13986. calendar: {
  13987. sameDay: '[dnes o] LT',
  13988. nextDay: '[zajtra o] LT',
  13989. nextWeek: function () {
  13990. switch (this.day()) {
  13991. case 0:
  13992. return '[v nedeľu o] LT';
  13993. case 1:
  13994. case 2:
  13995. return '[v] dddd [o] LT';
  13996. case 3:
  13997. return '[v stredu o] LT';
  13998. case 4:
  13999. return '[vo štvrtok o] LT';
  14000. case 5:
  14001. return '[v piatok o] LT';
  14002. case 6:
  14003. return '[v sobotu o] LT';
  14004. }
  14005. },
  14006. lastDay: '[včera o] LT',
  14007. lastWeek: function () {
  14008. switch (this.day()) {
  14009. case 0:
  14010. return '[minulú nedeľu o] LT';
  14011. case 1:
  14012. case 2:
  14013. return '[minulý] dddd [o] LT';
  14014. case 3:
  14015. return '[minulú stredu o] LT';
  14016. case 4:
  14017. case 5:
  14018. return '[minulý] dddd [o] LT';
  14019. case 6:
  14020. return '[minulú sobotu o] LT';
  14021. }
  14022. },
  14023. sameElse: 'L',
  14024. },
  14025. relativeTime: {
  14026. future: 'za %s',
  14027. past: 'pred %s',
  14028. s: translate$9,
  14029. ss: translate$9,
  14030. m: translate$9,
  14031. mm: translate$9,
  14032. h: translate$9,
  14033. hh: translate$9,
  14034. d: translate$9,
  14035. dd: translate$9,
  14036. M: translate$9,
  14037. MM: translate$9,
  14038. y: translate$9,
  14039. yy: translate$9,
  14040. },
  14041. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14042. ordinal: '%d.',
  14043. week: {
  14044. dow: 1, // Monday is the first day of the week.
  14045. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14046. },
  14047. });
  14048. //! moment.js locale configuration
  14049. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  14050. var result = number + ' ';
  14051. switch (key) {
  14052. case 's':
  14053. return withoutSuffix || isFuture
  14054. ? 'nekaj sekund'
  14055. : 'nekaj sekundami';
  14056. case 'ss':
  14057. if (number === 1) {
  14058. result += withoutSuffix ? 'sekundo' : 'sekundi';
  14059. } else if (number === 2) {
  14060. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  14061. } else if (number < 5) {
  14062. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  14063. } else {
  14064. result += 'sekund';
  14065. }
  14066. return result;
  14067. case 'm':
  14068. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  14069. case 'mm':
  14070. if (number === 1) {
  14071. result += withoutSuffix ? 'minuta' : 'minuto';
  14072. } else if (number === 2) {
  14073. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  14074. } else if (number < 5) {
  14075. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  14076. } else {
  14077. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  14078. }
  14079. return result;
  14080. case 'h':
  14081. return withoutSuffix ? 'ena ura' : 'eno uro';
  14082. case 'hh':
  14083. if (number === 1) {
  14084. result += withoutSuffix ? 'ura' : 'uro';
  14085. } else if (number === 2) {
  14086. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  14087. } else if (number < 5) {
  14088. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  14089. } else {
  14090. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  14091. }
  14092. return result;
  14093. case 'd':
  14094. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  14095. case 'dd':
  14096. if (number === 1) {
  14097. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  14098. } else if (number === 2) {
  14099. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  14100. } else {
  14101. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  14102. }
  14103. return result;
  14104. case 'M':
  14105. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  14106. case 'MM':
  14107. if (number === 1) {
  14108. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  14109. } else if (number === 2) {
  14110. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  14111. } else if (number < 5) {
  14112. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  14113. } else {
  14114. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  14115. }
  14116. return result;
  14117. case 'y':
  14118. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  14119. case 'yy':
  14120. if (number === 1) {
  14121. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  14122. } else if (number === 2) {
  14123. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  14124. } else if (number < 5) {
  14125. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  14126. } else {
  14127. result += withoutSuffix || isFuture ? 'let' : 'leti';
  14128. }
  14129. return result;
  14130. }
  14131. }
  14132. hooks.defineLocale('sl', {
  14133. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
  14134. '_'
  14135. ),
  14136. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
  14137. '_'
  14138. ),
  14139. monthsParseExact: true,
  14140. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  14141. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  14142. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  14143. weekdaysParseExact: true,
  14144. longDateFormat: {
  14145. LT: 'H:mm',
  14146. LTS: 'H:mm:ss',
  14147. L: 'DD. MM. YYYY',
  14148. LL: 'D. MMMM YYYY',
  14149. LLL: 'D. MMMM YYYY H:mm',
  14150. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14151. },
  14152. calendar: {
  14153. sameDay: '[danes ob] LT',
  14154. nextDay: '[jutri ob] LT',
  14155. nextWeek: function () {
  14156. switch (this.day()) {
  14157. case 0:
  14158. return '[v] [nedeljo] [ob] LT';
  14159. case 3:
  14160. return '[v] [sredo] [ob] LT';
  14161. case 6:
  14162. return '[v] [soboto] [ob] LT';
  14163. case 1:
  14164. case 2:
  14165. case 4:
  14166. case 5:
  14167. return '[v] dddd [ob] LT';
  14168. }
  14169. },
  14170. lastDay: '[včeraj ob] LT',
  14171. lastWeek: function () {
  14172. switch (this.day()) {
  14173. case 0:
  14174. return '[prejšnjo] [nedeljo] [ob] LT';
  14175. case 3:
  14176. return '[prejšnjo] [sredo] [ob] LT';
  14177. case 6:
  14178. return '[prejšnjo] [soboto] [ob] LT';
  14179. case 1:
  14180. case 2:
  14181. case 4:
  14182. case 5:
  14183. return '[prejšnji] dddd [ob] LT';
  14184. }
  14185. },
  14186. sameElse: 'L',
  14187. },
  14188. relativeTime: {
  14189. future: 'čez %s',
  14190. past: 'pred %s',
  14191. s: processRelativeTime$7,
  14192. ss: processRelativeTime$7,
  14193. m: processRelativeTime$7,
  14194. mm: processRelativeTime$7,
  14195. h: processRelativeTime$7,
  14196. hh: processRelativeTime$7,
  14197. d: processRelativeTime$7,
  14198. dd: processRelativeTime$7,
  14199. M: processRelativeTime$7,
  14200. MM: processRelativeTime$7,
  14201. y: processRelativeTime$7,
  14202. yy: processRelativeTime$7,
  14203. },
  14204. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14205. ordinal: '%d.',
  14206. week: {
  14207. dow: 1, // Monday is the first day of the week.
  14208. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14209. },
  14210. });
  14211. //! moment.js locale configuration
  14212. hooks.defineLocale('sq', {
  14213. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
  14214. '_'
  14215. ),
  14216. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  14217. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
  14218. '_'
  14219. ),
  14220. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  14221. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  14222. weekdaysParseExact: true,
  14223. meridiemParse: /PD|MD/,
  14224. isPM: function (input) {
  14225. return input.charAt(0) === 'M';
  14226. },
  14227. meridiem: function (hours, minutes, isLower) {
  14228. return hours < 12 ? 'PD' : 'MD';
  14229. },
  14230. longDateFormat: {
  14231. LT: 'HH:mm',
  14232. LTS: 'HH:mm:ss',
  14233. L: 'DD/MM/YYYY',
  14234. LL: 'D MMMM YYYY',
  14235. LLL: 'D MMMM YYYY HH:mm',
  14236. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14237. },
  14238. calendar: {
  14239. sameDay: '[Sot në] LT',
  14240. nextDay: '[Nesër në] LT',
  14241. nextWeek: 'dddd [në] LT',
  14242. lastDay: '[Dje në] LT',
  14243. lastWeek: 'dddd [e kaluar në] LT',
  14244. sameElse: 'L',
  14245. },
  14246. relativeTime: {
  14247. future: 'në %s',
  14248. past: '%s më parë',
  14249. s: 'disa sekonda',
  14250. ss: '%d sekonda',
  14251. m: 'një minutë',
  14252. mm: '%d minuta',
  14253. h: 'një orë',
  14254. hh: '%d orë',
  14255. d: 'një ditë',
  14256. dd: '%d ditë',
  14257. M: 'një muaj',
  14258. MM: '%d muaj',
  14259. y: 'një vit',
  14260. yy: '%d vite',
  14261. },
  14262. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14263. ordinal: '%d.',
  14264. week: {
  14265. dow: 1, // Monday is the first day of the week.
  14266. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14267. },
  14268. });
  14269. //! moment.js locale configuration
  14270. var translator$1 = {
  14271. words: {
  14272. //Different grammatical cases
  14273. ss: ['секунда', 'секунде', 'секунди'],
  14274. m: ['један минут', 'једне минуте'],
  14275. mm: ['минут', 'минуте', 'минута'],
  14276. h: ['један сат', 'једног сата'],
  14277. hh: ['сат', 'сата', 'сати'],
  14278. dd: ['дан', 'дана', 'дана'],
  14279. MM: ['месец', 'месеца', 'месеци'],
  14280. yy: ['година', 'године', 'година'],
  14281. },
  14282. correctGrammaticalCase: function (number, wordKey) {
  14283. return number === 1
  14284. ? wordKey[0]
  14285. : number >= 2 && number <= 4
  14286. ? wordKey[1]
  14287. : wordKey[2];
  14288. },
  14289. translate: function (number, withoutSuffix, key) {
  14290. var wordKey = translator$1.words[key];
  14291. if (key.length === 1) {
  14292. return withoutSuffix ? wordKey[0] : wordKey[1];
  14293. } else {
  14294. return (
  14295. number +
  14296. ' ' +
  14297. translator$1.correctGrammaticalCase(number, wordKey)
  14298. );
  14299. }
  14300. },
  14301. };
  14302. hooks.defineLocale('sr-cyrl', {
  14303. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
  14304. '_'
  14305. ),
  14306. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
  14307. '_'
  14308. ),
  14309. monthsParseExact: true,
  14310. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  14311. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  14312. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  14313. weekdaysParseExact: true,
  14314. longDateFormat: {
  14315. LT: 'H:mm',
  14316. LTS: 'H:mm:ss',
  14317. L: 'DD.MM.YYYY',
  14318. LL: 'D. MMMM YYYY',
  14319. LLL: 'D. MMMM YYYY H:mm',
  14320. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14321. },
  14322. calendar: {
  14323. sameDay: '[данас у] LT',
  14324. nextDay: '[сутра у] LT',
  14325. nextWeek: function () {
  14326. switch (this.day()) {
  14327. case 0:
  14328. return '[у] [недељу] [у] LT';
  14329. case 3:
  14330. return '[у] [среду] [у] LT';
  14331. case 6:
  14332. return '[у] [суботу] [у] LT';
  14333. case 1:
  14334. case 2:
  14335. case 4:
  14336. case 5:
  14337. return '[у] dddd [у] LT';
  14338. }
  14339. },
  14340. lastDay: '[јуче у] LT',
  14341. lastWeek: function () {
  14342. var lastWeekDays = [
  14343. '[прошле] [недеље] [у] LT',
  14344. '[прошлог] [понедељка] [у] LT',
  14345. '[прошлог] [уторка] [у] LT',
  14346. '[прошле] [среде] [у] LT',
  14347. '[прошлог] [четвртка] [у] LT',
  14348. '[прошлог] [петка] [у] LT',
  14349. '[прошле] [суботе] [у] LT',
  14350. ];
  14351. return lastWeekDays[this.day()];
  14352. },
  14353. sameElse: 'L',
  14354. },
  14355. relativeTime: {
  14356. future: 'за %s',
  14357. past: 'пре %s',
  14358. s: 'неколико секунди',
  14359. ss: translator$1.translate,
  14360. m: translator$1.translate,
  14361. mm: translator$1.translate,
  14362. h: translator$1.translate,
  14363. hh: translator$1.translate,
  14364. d: 'дан',
  14365. dd: translator$1.translate,
  14366. M: 'месец',
  14367. MM: translator$1.translate,
  14368. y: 'годину',
  14369. yy: translator$1.translate,
  14370. },
  14371. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14372. ordinal: '%d.',
  14373. week: {
  14374. dow: 1, // Monday is the first day of the week.
  14375. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14376. },
  14377. });
  14378. //! moment.js locale configuration
  14379. var translator$2 = {
  14380. words: {
  14381. //Different grammatical cases
  14382. ss: ['sekunda', 'sekunde', 'sekundi'],
  14383. m: ['jedan minut', 'jedne minute'],
  14384. mm: ['minut', 'minute', 'minuta'],
  14385. h: ['jedan sat', 'jednog sata'],
  14386. hh: ['sat', 'sata', 'sati'],
  14387. dd: ['dan', 'dana', 'dana'],
  14388. MM: ['mesec', 'meseca', 'meseci'],
  14389. yy: ['godina', 'godine', 'godina'],
  14390. },
  14391. correctGrammaticalCase: function (number, wordKey) {
  14392. return number === 1
  14393. ? wordKey[0]
  14394. : number >= 2 && number <= 4
  14395. ? wordKey[1]
  14396. : wordKey[2];
  14397. },
  14398. translate: function (number, withoutSuffix, key) {
  14399. var wordKey = translator$2.words[key];
  14400. if (key.length === 1) {
  14401. return withoutSuffix ? wordKey[0] : wordKey[1];
  14402. } else {
  14403. return (
  14404. number +
  14405. ' ' +
  14406. translator$2.correctGrammaticalCase(number, wordKey)
  14407. );
  14408. }
  14409. },
  14410. };
  14411. hooks.defineLocale('sr', {
  14412. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  14413. '_'
  14414. ),
  14415. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  14416. '_'
  14417. ),
  14418. monthsParseExact: true,
  14419. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
  14420. '_'
  14421. ),
  14422. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  14423. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  14424. weekdaysParseExact: true,
  14425. longDateFormat: {
  14426. LT: 'H:mm',
  14427. LTS: 'H:mm:ss',
  14428. L: 'DD.MM.YYYY',
  14429. LL: 'D. MMMM YYYY',
  14430. LLL: 'D. MMMM YYYY H:mm',
  14431. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14432. },
  14433. calendar: {
  14434. sameDay: '[danas u] LT',
  14435. nextDay: '[sutra u] LT',
  14436. nextWeek: function () {
  14437. switch (this.day()) {
  14438. case 0:
  14439. return '[u] [nedelju] [u] LT';
  14440. case 3:
  14441. return '[u] [sredu] [u] LT';
  14442. case 6:
  14443. return '[u] [subotu] [u] LT';
  14444. case 1:
  14445. case 2:
  14446. case 4:
  14447. case 5:
  14448. return '[u] dddd [u] LT';
  14449. }
  14450. },
  14451. lastDay: '[juče u] LT',
  14452. lastWeek: function () {
  14453. var lastWeekDays = [
  14454. '[prošle] [nedelje] [u] LT',
  14455. '[prošlog] [ponedeljka] [u] LT',
  14456. '[prošlog] [utorka] [u] LT',
  14457. '[prošle] [srede] [u] LT',
  14458. '[prošlog] [četvrtka] [u] LT',
  14459. '[prošlog] [petka] [u] LT',
  14460. '[prošle] [subote] [u] LT',
  14461. ];
  14462. return lastWeekDays[this.day()];
  14463. },
  14464. sameElse: 'L',
  14465. },
  14466. relativeTime: {
  14467. future: 'za %s',
  14468. past: 'pre %s',
  14469. s: 'nekoliko sekundi',
  14470. ss: translator$2.translate,
  14471. m: translator$2.translate,
  14472. mm: translator$2.translate,
  14473. h: translator$2.translate,
  14474. hh: translator$2.translate,
  14475. d: 'dan',
  14476. dd: translator$2.translate,
  14477. M: 'mesec',
  14478. MM: translator$2.translate,
  14479. y: 'godinu',
  14480. yy: translator$2.translate,
  14481. },
  14482. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14483. ordinal: '%d.',
  14484. week: {
  14485. dow: 1, // Monday is the first day of the week.
  14486. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14487. },
  14488. });
  14489. //! moment.js locale configuration
  14490. hooks.defineLocale('ss', {
  14491. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  14492. '_'
  14493. ),
  14494. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  14495. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  14496. '_'
  14497. ),
  14498. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  14499. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  14500. weekdaysParseExact: true,
  14501. longDateFormat: {
  14502. LT: 'h:mm A',
  14503. LTS: 'h:mm:ss A',
  14504. L: 'DD/MM/YYYY',
  14505. LL: 'D MMMM YYYY',
  14506. LLL: 'D MMMM YYYY h:mm A',
  14507. LLLL: 'dddd, D MMMM YYYY h:mm A',
  14508. },
  14509. calendar: {
  14510. sameDay: '[Namuhla nga] LT',
  14511. nextDay: '[Kusasa nga] LT',
  14512. nextWeek: 'dddd [nga] LT',
  14513. lastDay: '[Itolo nga] LT',
  14514. lastWeek: 'dddd [leliphelile] [nga] LT',
  14515. sameElse: 'L',
  14516. },
  14517. relativeTime: {
  14518. future: 'nga %s',
  14519. past: 'wenteka nga %s',
  14520. s: 'emizuzwana lomcane',
  14521. ss: '%d mzuzwana',
  14522. m: 'umzuzu',
  14523. mm: '%d emizuzu',
  14524. h: 'lihora',
  14525. hh: '%d emahora',
  14526. d: 'lilanga',
  14527. dd: '%d emalanga',
  14528. M: 'inyanga',
  14529. MM: '%d tinyanga',
  14530. y: 'umnyaka',
  14531. yy: '%d iminyaka',
  14532. },
  14533. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  14534. meridiem: function (hours, minutes, isLower) {
  14535. if (hours < 11) {
  14536. return 'ekuseni';
  14537. } else if (hours < 15) {
  14538. return 'emini';
  14539. } else if (hours < 19) {
  14540. return 'entsambama';
  14541. } else {
  14542. return 'ebusuku';
  14543. }
  14544. },
  14545. meridiemHour: function (hour, meridiem) {
  14546. if (hour === 12) {
  14547. hour = 0;
  14548. }
  14549. if (meridiem === 'ekuseni') {
  14550. return hour;
  14551. } else if (meridiem === 'emini') {
  14552. return hour >= 11 ? hour : hour + 12;
  14553. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  14554. if (hour === 0) {
  14555. return 0;
  14556. }
  14557. return hour + 12;
  14558. }
  14559. },
  14560. dayOfMonthOrdinalParse: /\d{1,2}/,
  14561. ordinal: '%d',
  14562. week: {
  14563. dow: 1, // Monday is the first day of the week.
  14564. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14565. },
  14566. });
  14567. //! moment.js locale configuration
  14568. hooks.defineLocale('sv', {
  14569. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
  14570. '_'
  14571. ),
  14572. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  14573. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  14574. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  14575. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  14576. longDateFormat: {
  14577. LT: 'HH:mm',
  14578. LTS: 'HH:mm:ss',
  14579. L: 'YYYY-MM-DD',
  14580. LL: 'D MMMM YYYY',
  14581. LLL: 'D MMMM YYYY [kl.] HH:mm',
  14582. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  14583. lll: 'D MMM YYYY HH:mm',
  14584. llll: 'ddd D MMM YYYY HH:mm',
  14585. },
  14586. calendar: {
  14587. sameDay: '[Idag] LT',
  14588. nextDay: '[Imorgon] LT',
  14589. lastDay: '[Igår] LT',
  14590. nextWeek: '[På] dddd LT',
  14591. lastWeek: '[I] dddd[s] LT',
  14592. sameElse: 'L',
  14593. },
  14594. relativeTime: {
  14595. future: 'om %s',
  14596. past: 'för %s sedan',
  14597. s: 'några sekunder',
  14598. ss: '%d sekunder',
  14599. m: 'en minut',
  14600. mm: '%d minuter',
  14601. h: 'en timme',
  14602. hh: '%d timmar',
  14603. d: 'en dag',
  14604. dd: '%d dagar',
  14605. M: 'en månad',
  14606. MM: '%d månader',
  14607. y: 'ett år',
  14608. yy: '%d år',
  14609. },
  14610. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  14611. ordinal: function (number) {
  14612. var b = number % 10,
  14613. output =
  14614. ~~((number % 100) / 10) === 1
  14615. ? ':e'
  14616. : b === 1
  14617. ? ':a'
  14618. : b === 2
  14619. ? ':a'
  14620. : b === 3
  14621. ? ':e'
  14622. : ':e';
  14623. return number + output;
  14624. },
  14625. week: {
  14626. dow: 1, // Monday is the first day of the week.
  14627. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14628. },
  14629. });
  14630. //! moment.js locale configuration
  14631. hooks.defineLocale('sw', {
  14632. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  14633. '_'
  14634. ),
  14635. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  14636. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  14637. '_'
  14638. ),
  14639. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  14640. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  14641. weekdaysParseExact: true,
  14642. longDateFormat: {
  14643. LT: 'hh:mm A',
  14644. LTS: 'HH:mm:ss',
  14645. L: 'DD.MM.YYYY',
  14646. LL: 'D MMMM YYYY',
  14647. LLL: 'D MMMM YYYY HH:mm',
  14648. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14649. },
  14650. calendar: {
  14651. sameDay: '[leo saa] LT',
  14652. nextDay: '[kesho saa] LT',
  14653. nextWeek: '[wiki ijayo] dddd [saat] LT',
  14654. lastDay: '[jana] LT',
  14655. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  14656. sameElse: 'L',
  14657. },
  14658. relativeTime: {
  14659. future: '%s baadaye',
  14660. past: 'tokea %s',
  14661. s: 'hivi punde',
  14662. ss: 'sekunde %d',
  14663. m: 'dakika moja',
  14664. mm: 'dakika %d',
  14665. h: 'saa limoja',
  14666. hh: 'masaa %d',
  14667. d: 'siku moja',
  14668. dd: 'siku %d',
  14669. M: 'mwezi mmoja',
  14670. MM: 'miezi %d',
  14671. y: 'mwaka mmoja',
  14672. yy: 'miaka %d',
  14673. },
  14674. week: {
  14675. dow: 1, // Monday is the first day of the week.
  14676. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14677. },
  14678. });
  14679. //! moment.js locale configuration
  14680. var symbolMap$f = {
  14681. '1': '௧',
  14682. '2': '௨',
  14683. '3': '௩',
  14684. '4': '௪',
  14685. '5': '௫',
  14686. '6': '௬',
  14687. '7': '௭',
  14688. '8': '௮',
  14689. '9': '௯',
  14690. '0': '௦',
  14691. },
  14692. numberMap$e = {
  14693. '௧': '1',
  14694. '௨': '2',
  14695. '௩': '3',
  14696. '௪': '4',
  14697. '௫': '5',
  14698. '௬': '6',
  14699. '௭': '7',
  14700. '௮': '8',
  14701. '௯': '9',
  14702. '௦': '0',
  14703. };
  14704. hooks.defineLocale('ta', {
  14705. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  14706. '_'
  14707. ),
  14708. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  14709. '_'
  14710. ),
  14711. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
  14712. '_'
  14713. ),
  14714. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
  14715. '_'
  14716. ),
  14717. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  14718. longDateFormat: {
  14719. LT: 'HH:mm',
  14720. LTS: 'HH:mm:ss',
  14721. L: 'DD/MM/YYYY',
  14722. LL: 'D MMMM YYYY',
  14723. LLL: 'D MMMM YYYY, HH:mm',
  14724. LLLL: 'dddd, D MMMM YYYY, HH:mm',
  14725. },
  14726. calendar: {
  14727. sameDay: '[இன்று] LT',
  14728. nextDay: '[நாளை] LT',
  14729. nextWeek: 'dddd, LT',
  14730. lastDay: '[நேற்று] LT',
  14731. lastWeek: '[கடந்த வாரம்] dddd, LT',
  14732. sameElse: 'L',
  14733. },
  14734. relativeTime: {
  14735. future: '%s இல்',
  14736. past: '%s முன்',
  14737. s: 'ஒரு சில விநாடிகள்',
  14738. ss: '%d விநாடிகள்',
  14739. m: 'ஒரு நிமிடம்',
  14740. mm: '%d நிமிடங்கள்',
  14741. h: 'ஒரு மணி நேரம்',
  14742. hh: '%d மணி நேரம்',
  14743. d: 'ஒரு நாள்',
  14744. dd: '%d நாட்கள்',
  14745. M: 'ஒரு மாதம்',
  14746. MM: '%d மாதங்கள்',
  14747. y: 'ஒரு வருடம்',
  14748. yy: '%d ஆண்டுகள்',
  14749. },
  14750. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  14751. ordinal: function (number) {
  14752. return number + 'வது';
  14753. },
  14754. preparse: function (string) {
  14755. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  14756. return numberMap$e[match];
  14757. });
  14758. },
  14759. postformat: function (string) {
  14760. return string.replace(/\d/g, function (match) {
  14761. return symbolMap$f[match];
  14762. });
  14763. },
  14764. // refer http://ta.wikipedia.org/s/1er1
  14765. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  14766. meridiem: function (hour, minute, isLower) {
  14767. if (hour < 2) {
  14768. return ' யாமம்';
  14769. } else if (hour < 6) {
  14770. return ' வைகறை'; // வைகறை
  14771. } else if (hour < 10) {
  14772. return ' காலை'; // காலை
  14773. } else if (hour < 14) {
  14774. return ' நண்பகல்'; // நண்பகல்
  14775. } else if (hour < 18) {
  14776. return ' எற்பாடு'; // எற்பாடு
  14777. } else if (hour < 22) {
  14778. return ' மாலை'; // மாலை
  14779. } else {
  14780. return ' யாமம்';
  14781. }
  14782. },
  14783. meridiemHour: function (hour, meridiem) {
  14784. if (hour === 12) {
  14785. hour = 0;
  14786. }
  14787. if (meridiem === 'யாமம்') {
  14788. return hour < 2 ? hour : hour + 12;
  14789. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  14790. return hour;
  14791. } else if (meridiem === 'நண்பகல்') {
  14792. return hour >= 10 ? hour : hour + 12;
  14793. } else {
  14794. return hour + 12;
  14795. }
  14796. },
  14797. week: {
  14798. dow: 0, // Sunday is the first day of the week.
  14799. doy: 6, // The week that contains Jan 6th is the first week of the year.
  14800. },
  14801. });
  14802. //! moment.js locale configuration
  14803. hooks.defineLocale('te', {
  14804. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
  14805. '_'
  14806. ),
  14807. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
  14808. '_'
  14809. ),
  14810. monthsParseExact: true,
  14811. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
  14812. '_'
  14813. ),
  14814. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  14815. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  14816. longDateFormat: {
  14817. LT: 'A h:mm',
  14818. LTS: 'A h:mm:ss',
  14819. L: 'DD/MM/YYYY',
  14820. LL: 'D MMMM YYYY',
  14821. LLL: 'D MMMM YYYY, A h:mm',
  14822. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  14823. },
  14824. calendar: {
  14825. sameDay: '[నేడు] LT',
  14826. nextDay: '[రేపు] LT',
  14827. nextWeek: 'dddd, LT',
  14828. lastDay: '[నిన్న] LT',
  14829. lastWeek: '[గత] dddd, LT',
  14830. sameElse: 'L',
  14831. },
  14832. relativeTime: {
  14833. future: '%s లో',
  14834. past: '%s క్రితం',
  14835. s: 'కొన్ని క్షణాలు',
  14836. ss: '%d సెకన్లు',
  14837. m: 'ఒక నిమిషం',
  14838. mm: '%d నిమిషాలు',
  14839. h: 'ఒక గంట',
  14840. hh: '%d గంటలు',
  14841. d: 'ఒక రోజు',
  14842. dd: '%d రోజులు',
  14843. M: 'ఒక నెల',
  14844. MM: '%d నెలలు',
  14845. y: 'ఒక సంవత్సరం',
  14846. yy: '%d సంవత్సరాలు',
  14847. },
  14848. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  14849. ordinal: '%dవ',
  14850. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  14851. meridiemHour: function (hour, meridiem) {
  14852. if (hour === 12) {
  14853. hour = 0;
  14854. }
  14855. if (meridiem === 'రాత్రి') {
  14856. return hour < 4 ? hour : hour + 12;
  14857. } else if (meridiem === 'ఉదయం') {
  14858. return hour;
  14859. } else if (meridiem === 'మధ్యాహ్నం') {
  14860. return hour >= 10 ? hour : hour + 12;
  14861. } else if (meridiem === 'సాయంత్రం') {
  14862. return hour + 12;
  14863. }
  14864. },
  14865. meridiem: function (hour, minute, isLower) {
  14866. if (hour < 4) {
  14867. return 'రాత్రి';
  14868. } else if (hour < 10) {
  14869. return 'ఉదయం';
  14870. } else if (hour < 17) {
  14871. return 'మధ్యాహ్నం';
  14872. } else if (hour < 20) {
  14873. return 'సాయంత్రం';
  14874. } else {
  14875. return 'రాత్రి';
  14876. }
  14877. },
  14878. week: {
  14879. dow: 0, // Sunday is the first day of the week.
  14880. doy: 6, // The week that contains Jan 6th is the first week of the year.
  14881. },
  14882. });
  14883. //! moment.js locale configuration
  14884. hooks.defineLocale('tet', {
  14885. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  14886. '_'
  14887. ),
  14888. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  14889. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  14890. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  14891. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  14892. longDateFormat: {
  14893. LT: 'HH:mm',
  14894. LTS: 'HH:mm:ss',
  14895. L: 'DD/MM/YYYY',
  14896. LL: 'D MMMM YYYY',
  14897. LLL: 'D MMMM YYYY HH:mm',
  14898. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14899. },
  14900. calendar: {
  14901. sameDay: '[Ohin iha] LT',
  14902. nextDay: '[Aban iha] LT',
  14903. nextWeek: 'dddd [iha] LT',
  14904. lastDay: '[Horiseik iha] LT',
  14905. lastWeek: 'dddd [semana kotuk] [iha] LT',
  14906. sameElse: 'L',
  14907. },
  14908. relativeTime: {
  14909. future: 'iha %s',
  14910. past: '%s liuba',
  14911. s: 'segundu balun',
  14912. ss: 'segundu %d',
  14913. m: 'minutu ida',
  14914. mm: 'minutu %d',
  14915. h: 'oras ida',
  14916. hh: 'oras %d',
  14917. d: 'loron ida',
  14918. dd: 'loron %d',
  14919. M: 'fulan ida',
  14920. MM: 'fulan %d',
  14921. y: 'tinan ida',
  14922. yy: 'tinan %d',
  14923. },
  14924. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  14925. ordinal: function (number) {
  14926. var b = number % 10,
  14927. output =
  14928. ~~((number % 100) / 10) === 1
  14929. ? 'th'
  14930. : b === 1
  14931. ? 'st'
  14932. : b === 2
  14933. ? 'nd'
  14934. : b === 3
  14935. ? 'rd'
  14936. : 'th';
  14937. return number + output;
  14938. },
  14939. week: {
  14940. dow: 1, // Monday is the first day of the week.
  14941. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14942. },
  14943. });
  14944. //! moment.js locale configuration
  14945. var suffixes$3 = {
  14946. 0: '-ум',
  14947. 1: '-ум',
  14948. 2: '-юм',
  14949. 3: '-юм',
  14950. 4: '-ум',
  14951. 5: '-ум',
  14952. 6: '-ум',
  14953. 7: '-ум',
  14954. 8: '-ум',
  14955. 9: '-ум',
  14956. 10: '-ум',
  14957. 12: '-ум',
  14958. 13: '-ум',
  14959. 20: '-ум',
  14960. 30: '-юм',
  14961. 40: '-ум',
  14962. 50: '-ум',
  14963. 60: '-ум',
  14964. 70: '-ум',
  14965. 80: '-ум',
  14966. 90: '-ум',
  14967. 100: '-ум',
  14968. };
  14969. hooks.defineLocale('tg', {
  14970. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  14971. '_'
  14972. ),
  14973. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  14974. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
  14975. '_'
  14976. ),
  14977. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  14978. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  14979. longDateFormat: {
  14980. LT: 'HH:mm',
  14981. LTS: 'HH:mm:ss',
  14982. L: 'DD/MM/YYYY',
  14983. LL: 'D MMMM YYYY',
  14984. LLL: 'D MMMM YYYY HH:mm',
  14985. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14986. },
  14987. calendar: {
  14988. sameDay: '[Имрӯз соати] LT',
  14989. nextDay: '[Пагоҳ соати] LT',
  14990. lastDay: '[Дирӯз соати] LT',
  14991. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  14992. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  14993. sameElse: 'L',
  14994. },
  14995. relativeTime: {
  14996. future: 'баъди %s',
  14997. past: '%s пеш',
  14998. s: 'якчанд сония',
  14999. m: 'як дақиқа',
  15000. mm: '%d дақиқа',
  15001. h: 'як соат',
  15002. hh: '%d соат',
  15003. d: 'як рӯз',
  15004. dd: '%d рӯз',
  15005. M: 'як моҳ',
  15006. MM: '%d моҳ',
  15007. y: 'як сол',
  15008. yy: '%d сол',
  15009. },
  15010. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  15011. meridiemHour: function (hour, meridiem) {
  15012. if (hour === 12) {
  15013. hour = 0;
  15014. }
  15015. if (meridiem === 'шаб') {
  15016. return hour < 4 ? hour : hour + 12;
  15017. } else if (meridiem === 'субҳ') {
  15018. return hour;
  15019. } else if (meridiem === 'рӯз') {
  15020. return hour >= 11 ? hour : hour + 12;
  15021. } else if (meridiem === 'бегоҳ') {
  15022. return hour + 12;
  15023. }
  15024. },
  15025. meridiem: function (hour, minute, isLower) {
  15026. if (hour < 4) {
  15027. return 'шаб';
  15028. } else if (hour < 11) {
  15029. return 'субҳ';
  15030. } else if (hour < 16) {
  15031. return 'рӯз';
  15032. } else if (hour < 19) {
  15033. return 'бегоҳ';
  15034. } else {
  15035. return 'шаб';
  15036. }
  15037. },
  15038. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  15039. ordinal: function (number) {
  15040. var a = number % 10,
  15041. b = number >= 100 ? 100 : null;
  15042. return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
  15043. },
  15044. week: {
  15045. dow: 1, // Monday is the first day of the week.
  15046. doy: 7, // The week that contains Jan 1th is the first week of the year.
  15047. },
  15048. });
  15049. //! moment.js locale configuration
  15050. hooks.defineLocale('th', {
  15051. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
  15052. '_'
  15053. ),
  15054. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
  15055. '_'
  15056. ),
  15057. monthsParseExact: true,
  15058. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  15059. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  15060. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  15061. weekdaysParseExact: true,
  15062. longDateFormat: {
  15063. LT: 'H:mm',
  15064. LTS: 'H:mm:ss',
  15065. L: 'DD/MM/YYYY',
  15066. LL: 'D MMMM YYYY',
  15067. LLL: 'D MMMM YYYY เวลา H:mm',
  15068. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
  15069. },
  15070. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  15071. isPM: function (input) {
  15072. return input === 'หลังเที่ยง';
  15073. },
  15074. meridiem: function (hour, minute, isLower) {
  15075. if (hour < 12) {
  15076. return 'ก่อนเที่ยง';
  15077. } else {
  15078. return 'หลังเที่ยง';
  15079. }
  15080. },
  15081. calendar: {
  15082. sameDay: '[วันนี้ เวลา] LT',
  15083. nextDay: '[พรุ่งนี้ เวลา] LT',
  15084. nextWeek: 'dddd[หน้า เวลา] LT',
  15085. lastDay: '[เมื่อวานนี้ เวลา] LT',
  15086. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  15087. sameElse: 'L',
  15088. },
  15089. relativeTime: {
  15090. future: 'อีก %s',
  15091. past: '%sที่แล้ว',
  15092. s: 'ไม่กี่วินาที',
  15093. ss: '%d วินาที',
  15094. m: '1 นาที',
  15095. mm: '%d นาที',
  15096. h: '1 ชั่วโมง',
  15097. hh: '%d ชั่วโมง',
  15098. d: '1 วัน',
  15099. dd: '%d วัน',
  15100. M: '1 เดือน',
  15101. MM: '%d เดือน',
  15102. y: '1 ปี',
  15103. yy: '%d ปี',
  15104. },
  15105. });
  15106. //! moment.js locale configuration
  15107. var suffixes$4 = {
  15108. 1: "'inji",
  15109. 5: "'inji",
  15110. 8: "'inji",
  15111. 70: "'inji",
  15112. 80: "'inji",
  15113. 2: "'nji",
  15114. 7: "'nji",
  15115. 20: "'nji",
  15116. 50: "'nji",
  15117. 3: "'ünji",
  15118. 4: "'ünji",
  15119. 100: "'ünji",
  15120. 6: "'njy",
  15121. 9: "'unjy",
  15122. 10: "'unjy",
  15123. 30: "'unjy",
  15124. 60: "'ynjy",
  15125. 90: "'ynjy",
  15126. };
  15127. hooks.defineLocale('tk', {
  15128. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
  15129. '_'
  15130. ),
  15131. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  15132. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
  15133. '_'
  15134. ),
  15135. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  15136. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  15137. longDateFormat: {
  15138. LT: 'HH:mm',
  15139. LTS: 'HH:mm:ss',
  15140. L: 'DD.MM.YYYY',
  15141. LL: 'D MMMM YYYY',
  15142. LLL: 'D MMMM YYYY HH:mm',
  15143. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15144. },
  15145. calendar: {
  15146. sameDay: '[bugün sagat] LT',
  15147. nextDay: '[ertir sagat] LT',
  15148. nextWeek: '[indiki] dddd [sagat] LT',
  15149. lastDay: '[düýn] LT',
  15150. lastWeek: '[geçen] dddd [sagat] LT',
  15151. sameElse: 'L',
  15152. },
  15153. relativeTime: {
  15154. future: '%s soň',
  15155. past: '%s öň',
  15156. s: 'birnäçe sekunt',
  15157. m: 'bir minut',
  15158. mm: '%d minut',
  15159. h: 'bir sagat',
  15160. hh: '%d sagat',
  15161. d: 'bir gün',
  15162. dd: '%d gün',
  15163. M: 'bir aý',
  15164. MM: '%d aý',
  15165. y: 'bir ýyl',
  15166. yy: '%d ýyl',
  15167. },
  15168. ordinal: function (number, period) {
  15169. switch (period) {
  15170. case 'd':
  15171. case 'D':
  15172. case 'Do':
  15173. case 'DD':
  15174. return number;
  15175. default:
  15176. if (number === 0) {
  15177. // special case for zero
  15178. return number + "'unjy";
  15179. }
  15180. var a = number % 10,
  15181. b = (number % 100) - a,
  15182. c = number >= 100 ? 100 : null;
  15183. return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
  15184. }
  15185. },
  15186. week: {
  15187. dow: 1, // Monday is the first day of the week.
  15188. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15189. },
  15190. });
  15191. //! moment.js locale configuration
  15192. hooks.defineLocale('tl-ph', {
  15193. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  15194. '_'
  15195. ),
  15196. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  15197. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  15198. '_'
  15199. ),
  15200. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  15201. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  15202. longDateFormat: {
  15203. LT: 'HH:mm',
  15204. LTS: 'HH:mm:ss',
  15205. L: 'MM/D/YYYY',
  15206. LL: 'MMMM D, YYYY',
  15207. LLL: 'MMMM D, YYYY HH:mm',
  15208. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  15209. },
  15210. calendar: {
  15211. sameDay: 'LT [ngayong araw]',
  15212. nextDay: '[Bukas ng] LT',
  15213. nextWeek: 'LT [sa susunod na] dddd',
  15214. lastDay: 'LT [kahapon]',
  15215. lastWeek: 'LT [noong nakaraang] dddd',
  15216. sameElse: 'L',
  15217. },
  15218. relativeTime: {
  15219. future: 'sa loob ng %s',
  15220. past: '%s ang nakalipas',
  15221. s: 'ilang segundo',
  15222. ss: '%d segundo',
  15223. m: 'isang minuto',
  15224. mm: '%d minuto',
  15225. h: 'isang oras',
  15226. hh: '%d oras',
  15227. d: 'isang araw',
  15228. dd: '%d araw',
  15229. M: 'isang buwan',
  15230. MM: '%d buwan',
  15231. y: 'isang taon',
  15232. yy: '%d taon',
  15233. },
  15234. dayOfMonthOrdinalParse: /\d{1,2}/,
  15235. ordinal: function (number) {
  15236. return number;
  15237. },
  15238. week: {
  15239. dow: 1, // Monday is the first day of the week.
  15240. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15241. },
  15242. });
  15243. //! moment.js locale configuration
  15244. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  15245. function translateFuture(output) {
  15246. var time = output;
  15247. time =
  15248. output.indexOf('jaj') !== -1
  15249. ? time.slice(0, -3) + 'leS'
  15250. : output.indexOf('jar') !== -1
  15251. ? time.slice(0, -3) + 'waQ'
  15252. : output.indexOf('DIS') !== -1
  15253. ? time.slice(0, -3) + 'nem'
  15254. : time + ' pIq';
  15255. return time;
  15256. }
  15257. function translatePast(output) {
  15258. var time = output;
  15259. time =
  15260. output.indexOf('jaj') !== -1
  15261. ? time.slice(0, -3) + 'Hu’'
  15262. : output.indexOf('jar') !== -1
  15263. ? time.slice(0, -3) + 'wen'
  15264. : output.indexOf('DIS') !== -1
  15265. ? time.slice(0, -3) + 'ben'
  15266. : time + ' ret';
  15267. return time;
  15268. }
  15269. function translate$a(number, withoutSuffix, string, isFuture) {
  15270. var numberNoun = numberAsNoun(number);
  15271. switch (string) {
  15272. case 'ss':
  15273. return numberNoun + ' lup';
  15274. case 'mm':
  15275. return numberNoun + ' tup';
  15276. case 'hh':
  15277. return numberNoun + ' rep';
  15278. case 'dd':
  15279. return numberNoun + ' jaj';
  15280. case 'MM':
  15281. return numberNoun + ' jar';
  15282. case 'yy':
  15283. return numberNoun + ' DIS';
  15284. }
  15285. }
  15286. function numberAsNoun(number) {
  15287. var hundred = Math.floor((number % 1000) / 100),
  15288. ten = Math.floor((number % 100) / 10),
  15289. one = number % 10,
  15290. word = '';
  15291. if (hundred > 0) {
  15292. word += numbersNouns[hundred] + 'vatlh';
  15293. }
  15294. if (ten > 0) {
  15295. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  15296. }
  15297. if (one > 0) {
  15298. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  15299. }
  15300. return word === '' ? 'pagh' : word;
  15301. }
  15302. hooks.defineLocale('tlh', {
  15303. months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
  15304. '_'
  15305. ),
  15306. monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
  15307. '_'
  15308. ),
  15309. monthsParseExact: true,
  15310. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15311. '_'
  15312. ),
  15313. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15314. '_'
  15315. ),
  15316. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15317. '_'
  15318. ),
  15319. longDateFormat: {
  15320. LT: 'HH:mm',
  15321. LTS: 'HH:mm:ss',
  15322. L: 'DD.MM.YYYY',
  15323. LL: 'D MMMM YYYY',
  15324. LLL: 'D MMMM YYYY HH:mm',
  15325. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15326. },
  15327. calendar: {
  15328. sameDay: '[DaHjaj] LT',
  15329. nextDay: '[wa’leS] LT',
  15330. nextWeek: 'LLL',
  15331. lastDay: '[wa’Hu’] LT',
  15332. lastWeek: 'LLL',
  15333. sameElse: 'L',
  15334. },
  15335. relativeTime: {
  15336. future: translateFuture,
  15337. past: translatePast,
  15338. s: 'puS lup',
  15339. ss: translate$a,
  15340. m: 'wa’ tup',
  15341. mm: translate$a,
  15342. h: 'wa’ rep',
  15343. hh: translate$a,
  15344. d: 'wa’ jaj',
  15345. dd: translate$a,
  15346. M: 'wa’ jar',
  15347. MM: translate$a,
  15348. y: 'wa’ DIS',
  15349. yy: translate$a,
  15350. },
  15351. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15352. ordinal: '%d.',
  15353. week: {
  15354. dow: 1, // Monday is the first day of the week.
  15355. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15356. },
  15357. });
  15358. //! moment.js locale configuration
  15359. var suffixes$5 = {
  15360. 1: "'inci",
  15361. 5: "'inci",
  15362. 8: "'inci",
  15363. 70: "'inci",
  15364. 80: "'inci",
  15365. 2: "'nci",
  15366. 7: "'nci",
  15367. 20: "'nci",
  15368. 50: "'nci",
  15369. 3: "'üncü",
  15370. 4: "'üncü",
  15371. 100: "'üncü",
  15372. 6: "'ncı",
  15373. 9: "'uncu",
  15374. 10: "'uncu",
  15375. 30: "'uncu",
  15376. 60: "'ıncı",
  15377. 90: "'ıncı",
  15378. };
  15379. hooks.defineLocale('tr', {
  15380. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
  15381. '_'
  15382. ),
  15383. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  15384. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
  15385. '_'
  15386. ),
  15387. weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  15388. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  15389. meridiem: function (hours, minutes, isLower) {
  15390. if (hours < 12) {
  15391. return isLower ? 'öö' : 'ÖÖ';
  15392. } else {
  15393. return isLower ? 'ös' : 'ÖS';
  15394. }
  15395. },
  15396. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  15397. isPM: function (input) {
  15398. return input === 'ös' || input === 'ÖS';
  15399. },
  15400. longDateFormat: {
  15401. LT: 'HH:mm',
  15402. LTS: 'HH:mm:ss',
  15403. L: 'DD.MM.YYYY',
  15404. LL: 'D MMMM YYYY',
  15405. LLL: 'D MMMM YYYY HH:mm',
  15406. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15407. },
  15408. calendar: {
  15409. sameDay: '[bugün saat] LT',
  15410. nextDay: '[yarın saat] LT',
  15411. nextWeek: '[gelecek] dddd [saat] LT',
  15412. lastDay: '[dün] LT',
  15413. lastWeek: '[geçen] dddd [saat] LT',
  15414. sameElse: 'L',
  15415. },
  15416. relativeTime: {
  15417. future: '%s sonra',
  15418. past: '%s önce',
  15419. s: 'birkaç saniye',
  15420. ss: '%d saniye',
  15421. m: 'bir dakika',
  15422. mm: '%d dakika',
  15423. h: 'bir saat',
  15424. hh: '%d saat',
  15425. d: 'bir gün',
  15426. dd: '%d gün',
  15427. M: 'bir ay',
  15428. MM: '%d ay',
  15429. y: 'bir yıl',
  15430. yy: '%d yıl',
  15431. },
  15432. ordinal: function (number, period) {
  15433. switch (period) {
  15434. case 'd':
  15435. case 'D':
  15436. case 'Do':
  15437. case 'DD':
  15438. return number;
  15439. default:
  15440. if (number === 0) {
  15441. // special case for zero
  15442. return number + "'ıncı";
  15443. }
  15444. var a = number % 10,
  15445. b = (number % 100) - a,
  15446. c = number >= 100 ? 100 : null;
  15447. return number + (suffixes$5[a] || suffixes$5[b] || suffixes$5[c]);
  15448. }
  15449. },
  15450. week: {
  15451. dow: 1, // Monday is the first day of the week.
  15452. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15453. },
  15454. });
  15455. //! moment.js locale configuration
  15456. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  15457. // This is currently too difficult (maybe even impossible) to add.
  15458. hooks.defineLocale('tzl', {
  15459. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  15460. '_'
  15461. ),
  15462. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  15463. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  15464. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15465. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  15466. longDateFormat: {
  15467. LT: 'HH.mm',
  15468. LTS: 'HH.mm.ss',
  15469. L: 'DD.MM.YYYY',
  15470. LL: 'D. MMMM [dallas] YYYY',
  15471. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  15472. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
  15473. },
  15474. meridiemParse: /d\'o|d\'a/i,
  15475. isPM: function (input) {
  15476. return "d'o" === input.toLowerCase();
  15477. },
  15478. meridiem: function (hours, minutes, isLower) {
  15479. if (hours > 11) {
  15480. return isLower ? "d'o" : "D'O";
  15481. } else {
  15482. return isLower ? "d'a" : "D'A";
  15483. }
  15484. },
  15485. calendar: {
  15486. sameDay: '[oxhi à] LT',
  15487. nextDay: '[demà à] LT',
  15488. nextWeek: 'dddd [à] LT',
  15489. lastDay: '[ieiri à] LT',
  15490. lastWeek: '[sür el] dddd [lasteu à] LT',
  15491. sameElse: 'L',
  15492. },
  15493. relativeTime: {
  15494. future: 'osprei %s',
  15495. past: 'ja%s',
  15496. s: processRelativeTime$8,
  15497. ss: processRelativeTime$8,
  15498. m: processRelativeTime$8,
  15499. mm: processRelativeTime$8,
  15500. h: processRelativeTime$8,
  15501. hh: processRelativeTime$8,
  15502. d: processRelativeTime$8,
  15503. dd: processRelativeTime$8,
  15504. M: processRelativeTime$8,
  15505. MM: processRelativeTime$8,
  15506. y: processRelativeTime$8,
  15507. yy: processRelativeTime$8,
  15508. },
  15509. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15510. ordinal: '%d.',
  15511. week: {
  15512. dow: 1, // Monday is the first day of the week.
  15513. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15514. },
  15515. });
  15516. function processRelativeTime$8(number, withoutSuffix, key, isFuture) {
  15517. var format = {
  15518. s: ['viensas secunds', "'iensas secunds"],
  15519. ss: [number + ' secunds', '' + number + ' secunds'],
  15520. m: ["'n míut", "'iens míut"],
  15521. mm: [number + ' míuts', '' + number + ' míuts'],
  15522. h: ["'n þora", "'iensa þora"],
  15523. hh: [number + ' þoras', '' + number + ' þoras'],
  15524. d: ["'n ziua", "'iensa ziua"],
  15525. dd: [number + ' ziuas', '' + number + ' ziuas'],
  15526. M: ["'n mes", "'iens mes"],
  15527. MM: [number + ' mesen', '' + number + ' mesen'],
  15528. y: ["'n ar", "'iens ar"],
  15529. yy: [number + ' ars', '' + number + ' ars'],
  15530. };
  15531. return isFuture
  15532. ? format[key][0]
  15533. : withoutSuffix
  15534. ? format[key][0]
  15535. : format[key][1];
  15536. }
  15537. //! moment.js locale configuration
  15538. hooks.defineLocale('tzm-latn', {
  15539. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15540. '_'
  15541. ),
  15542. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15543. '_'
  15544. ),
  15545. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15546. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15547. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15548. longDateFormat: {
  15549. LT: 'HH:mm',
  15550. LTS: 'HH:mm:ss',
  15551. L: 'DD/MM/YYYY',
  15552. LL: 'D MMMM YYYY',
  15553. LLL: 'D MMMM YYYY HH:mm',
  15554. LLLL: 'dddd D MMMM YYYY HH:mm',
  15555. },
  15556. calendar: {
  15557. sameDay: '[asdkh g] LT',
  15558. nextDay: '[aska g] LT',
  15559. nextWeek: 'dddd [g] LT',
  15560. lastDay: '[assant g] LT',
  15561. lastWeek: 'dddd [g] LT',
  15562. sameElse: 'L',
  15563. },
  15564. relativeTime: {
  15565. future: 'dadkh s yan %s',
  15566. past: 'yan %s',
  15567. s: 'imik',
  15568. ss: '%d imik',
  15569. m: 'minuḍ',
  15570. mm: '%d minuḍ',
  15571. h: 'saɛa',
  15572. hh: '%d tassaɛin',
  15573. d: 'ass',
  15574. dd: '%d ossan',
  15575. M: 'ayowr',
  15576. MM: '%d iyyirn',
  15577. y: 'asgas',
  15578. yy: '%d isgasn',
  15579. },
  15580. week: {
  15581. dow: 6, // Saturday is the first day of the week.
  15582. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15583. },
  15584. });
  15585. //! moment.js locale configuration
  15586. hooks.defineLocale('tzm', {
  15587. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15588. '_'
  15589. ),
  15590. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15591. '_'
  15592. ),
  15593. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15594. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15595. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15596. longDateFormat: {
  15597. LT: 'HH:mm',
  15598. LTS: 'HH:mm:ss',
  15599. L: 'DD/MM/YYYY',
  15600. LL: 'D MMMM YYYY',
  15601. LLL: 'D MMMM YYYY HH:mm',
  15602. LLLL: 'dddd D MMMM YYYY HH:mm',
  15603. },
  15604. calendar: {
  15605. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  15606. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  15607. nextWeek: 'dddd [ⴴ] LT',
  15608. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  15609. lastWeek: 'dddd [ⴴ] LT',
  15610. sameElse: 'L',
  15611. },
  15612. relativeTime: {
  15613. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  15614. past: 'ⵢⴰⵏ %s',
  15615. s: 'ⵉⵎⵉⴽ',
  15616. ss: '%d ⵉⵎⵉⴽ',
  15617. m: 'ⵎⵉⵏⵓⴺ',
  15618. mm: '%d ⵎⵉⵏⵓⴺ',
  15619. h: 'ⵙⴰⵄⴰ',
  15620. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  15621. d: 'ⴰⵙⵙ',
  15622. dd: '%d oⵙⵙⴰⵏ',
  15623. M: 'ⴰⵢoⵓⵔ',
  15624. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  15625. y: 'ⴰⵙⴳⴰⵙ',
  15626. yy: '%d ⵉⵙⴳⴰⵙⵏ',
  15627. },
  15628. week: {
  15629. dow: 6, // Saturday is the first day of the week.
  15630. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15631. },
  15632. });
  15633. //! moment.js locale configuration
  15634. hooks.defineLocale('ug-cn', {
  15635. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15636. '_'
  15637. ),
  15638. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15639. '_'
  15640. ),
  15641. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  15642. '_'
  15643. ),
  15644. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15645. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15646. longDateFormat: {
  15647. LT: 'HH:mm',
  15648. LTS: 'HH:mm:ss',
  15649. L: 'YYYY-MM-DD',
  15650. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  15651. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15652. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15653. },
  15654. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  15655. meridiemHour: function (hour, meridiem) {
  15656. if (hour === 12) {
  15657. hour = 0;
  15658. }
  15659. if (
  15660. meridiem === 'يېرىم كېچە' ||
  15661. meridiem === 'سەھەر' ||
  15662. meridiem === 'چۈشتىن بۇرۇن'
  15663. ) {
  15664. return hour;
  15665. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  15666. return hour + 12;
  15667. } else {
  15668. return hour >= 11 ? hour : hour + 12;
  15669. }
  15670. },
  15671. meridiem: function (hour, minute, isLower) {
  15672. var hm = hour * 100 + minute;
  15673. if (hm < 600) {
  15674. return 'يېرىم كېچە';
  15675. } else if (hm < 900) {
  15676. return 'سەھەر';
  15677. } else if (hm < 1130) {
  15678. return 'چۈشتىن بۇرۇن';
  15679. } else if (hm < 1230) {
  15680. return 'چۈش';
  15681. } else if (hm < 1800) {
  15682. return 'چۈشتىن كېيىن';
  15683. } else {
  15684. return 'كەچ';
  15685. }
  15686. },
  15687. calendar: {
  15688. sameDay: '[بۈگۈن سائەت] LT',
  15689. nextDay: '[ئەتە سائەت] LT',
  15690. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  15691. lastDay: '[تۆنۈگۈن] LT',
  15692. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  15693. sameElse: 'L',
  15694. },
  15695. relativeTime: {
  15696. future: '%s كېيىن',
  15697. past: '%s بۇرۇن',
  15698. s: 'نەچچە سېكونت',
  15699. ss: '%d سېكونت',
  15700. m: 'بىر مىنۇت',
  15701. mm: '%d مىنۇت',
  15702. h: 'بىر سائەت',
  15703. hh: '%d سائەت',
  15704. d: 'بىر كۈن',
  15705. dd: '%d كۈن',
  15706. M: 'بىر ئاي',
  15707. MM: '%d ئاي',
  15708. y: 'بىر يىل',
  15709. yy: '%d يىل',
  15710. },
  15711. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  15712. ordinal: function (number, period) {
  15713. switch (period) {
  15714. case 'd':
  15715. case 'D':
  15716. case 'DDD':
  15717. return number + '-كۈنى';
  15718. case 'w':
  15719. case 'W':
  15720. return number + '-ھەپتە';
  15721. default:
  15722. return number;
  15723. }
  15724. },
  15725. preparse: function (string) {
  15726. return string.replace(/،/g, ',');
  15727. },
  15728. postformat: function (string) {
  15729. return string.replace(/,/g, '،');
  15730. },
  15731. week: {
  15732. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  15733. dow: 1, // Monday is the first day of the week.
  15734. doy: 7, // The week that contains Jan 1st is the first week of the year.
  15735. },
  15736. });
  15737. //! moment.js locale configuration
  15738. function plural$6(word, num) {
  15739. var forms = word.split('_');
  15740. return num % 10 === 1 && num % 100 !== 11
  15741. ? forms[0]
  15742. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  15743. ? forms[1]
  15744. : forms[2];
  15745. }
  15746. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  15747. var format = {
  15748. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  15749. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  15750. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  15751. dd: 'день_дні_днів',
  15752. MM: 'місяць_місяці_місяців',
  15753. yy: 'рік_роки_років',
  15754. };
  15755. if (key === 'm') {
  15756. return withoutSuffix ? 'хвилина' : 'хвилину';
  15757. } else if (key === 'h') {
  15758. return withoutSuffix ? 'година' : 'годину';
  15759. } else {
  15760. return number + ' ' + plural$6(format[key], +number);
  15761. }
  15762. }
  15763. function weekdaysCaseReplace(m, format) {
  15764. var weekdays = {
  15765. nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
  15766. '_'
  15767. ),
  15768. accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
  15769. '_'
  15770. ),
  15771. genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
  15772. '_'
  15773. ),
  15774. },
  15775. nounCase;
  15776. if (m === true) {
  15777. return weekdays['nominative']
  15778. .slice(1, 7)
  15779. .concat(weekdays['nominative'].slice(0, 1));
  15780. }
  15781. if (!m) {
  15782. return weekdays['nominative'];
  15783. }
  15784. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
  15785. ? 'accusative'
  15786. : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
  15787. ? 'genitive'
  15788. : 'nominative';
  15789. return weekdays[nounCase][m.day()];
  15790. }
  15791. function processHoursFunction(str) {
  15792. return function () {
  15793. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  15794. };
  15795. }
  15796. hooks.defineLocale('uk', {
  15797. months: {
  15798. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
  15799. '_'
  15800. ),
  15801. standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
  15802. '_'
  15803. ),
  15804. },
  15805. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
  15806. '_'
  15807. ),
  15808. weekdays: weekdaysCaseReplace,
  15809. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15810. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15811. longDateFormat: {
  15812. LT: 'HH:mm',
  15813. LTS: 'HH:mm:ss',
  15814. L: 'DD.MM.YYYY',
  15815. LL: 'D MMMM YYYY р.',
  15816. LLL: 'D MMMM YYYY р., HH:mm',
  15817. LLLL: 'dddd, D MMMM YYYY р., HH:mm',
  15818. },
  15819. calendar: {
  15820. sameDay: processHoursFunction('[Сьогодні '),
  15821. nextDay: processHoursFunction('[Завтра '),
  15822. lastDay: processHoursFunction('[Вчора '),
  15823. nextWeek: processHoursFunction('[У] dddd ['),
  15824. lastWeek: function () {
  15825. switch (this.day()) {
  15826. case 0:
  15827. case 3:
  15828. case 5:
  15829. case 6:
  15830. return processHoursFunction('[Минулої] dddd [').call(this);
  15831. case 1:
  15832. case 2:
  15833. case 4:
  15834. return processHoursFunction('[Минулого] dddd [').call(this);
  15835. }
  15836. },
  15837. sameElse: 'L',
  15838. },
  15839. relativeTime: {
  15840. future: 'за %s',
  15841. past: '%s тому',
  15842. s: 'декілька секунд',
  15843. ss: relativeTimeWithPlural$4,
  15844. m: relativeTimeWithPlural$4,
  15845. mm: relativeTimeWithPlural$4,
  15846. h: 'годину',
  15847. hh: relativeTimeWithPlural$4,
  15848. d: 'день',
  15849. dd: relativeTimeWithPlural$4,
  15850. M: 'місяць',
  15851. MM: relativeTimeWithPlural$4,
  15852. y: 'рік',
  15853. yy: relativeTimeWithPlural$4,
  15854. },
  15855. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  15856. meridiemParse: /ночі|ранку|дня|вечора/,
  15857. isPM: function (input) {
  15858. return /^(дня|вечора)$/.test(input);
  15859. },
  15860. meridiem: function (hour, minute, isLower) {
  15861. if (hour < 4) {
  15862. return 'ночі';
  15863. } else if (hour < 12) {
  15864. return 'ранку';
  15865. } else if (hour < 17) {
  15866. return 'дня';
  15867. } else {
  15868. return 'вечора';
  15869. }
  15870. },
  15871. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  15872. ordinal: function (number, period) {
  15873. switch (period) {
  15874. case 'M':
  15875. case 'd':
  15876. case 'DDD':
  15877. case 'w':
  15878. case 'W':
  15879. return number + '-й';
  15880. case 'D':
  15881. return number + '-го';
  15882. default:
  15883. return number;
  15884. }
  15885. },
  15886. week: {
  15887. dow: 1, // Monday is the first day of the week.
  15888. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15889. },
  15890. });
  15891. //! moment.js locale configuration
  15892. var months$b = [
  15893. 'جنوری',
  15894. 'فروری',
  15895. 'مارچ',
  15896. 'اپریل',
  15897. 'مئی',
  15898. 'جون',
  15899. 'جولائی',
  15900. 'اگست',
  15901. 'ستمبر',
  15902. 'اکتوبر',
  15903. 'نومبر',
  15904. 'دسمبر',
  15905. ],
  15906. days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  15907. hooks.defineLocale('ur', {
  15908. months: months$b,
  15909. monthsShort: months$b,
  15910. weekdays: days$2,
  15911. weekdaysShort: days$2,
  15912. weekdaysMin: days$2,
  15913. longDateFormat: {
  15914. LT: 'HH:mm',
  15915. LTS: 'HH:mm:ss',
  15916. L: 'DD/MM/YYYY',
  15917. LL: 'D MMMM YYYY',
  15918. LLL: 'D MMMM YYYY HH:mm',
  15919. LLLL: 'dddd، D MMMM YYYY HH:mm',
  15920. },
  15921. meridiemParse: /صبح|شام/,
  15922. isPM: function (input) {
  15923. return 'شام' === input;
  15924. },
  15925. meridiem: function (hour, minute, isLower) {
  15926. if (hour < 12) {
  15927. return 'صبح';
  15928. }
  15929. return 'شام';
  15930. },
  15931. calendar: {
  15932. sameDay: '[آج بوقت] LT',
  15933. nextDay: '[کل بوقت] LT',
  15934. nextWeek: 'dddd [بوقت] LT',
  15935. lastDay: '[گذشتہ روز بوقت] LT',
  15936. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  15937. sameElse: 'L',
  15938. },
  15939. relativeTime: {
  15940. future: '%s بعد',
  15941. past: '%s قبل',
  15942. s: 'چند سیکنڈ',
  15943. ss: '%d سیکنڈ',
  15944. m: 'ایک منٹ',
  15945. mm: '%d منٹ',
  15946. h: 'ایک گھنٹہ',
  15947. hh: '%d گھنٹے',
  15948. d: 'ایک دن',
  15949. dd: '%d دن',
  15950. M: 'ایک ماہ',
  15951. MM: '%d ماہ',
  15952. y: 'ایک سال',
  15953. yy: '%d سال',
  15954. },
  15955. preparse: function (string) {
  15956. return string.replace(/،/g, ',');
  15957. },
  15958. postformat: function (string) {
  15959. return string.replace(/,/g, '،');
  15960. },
  15961. week: {
  15962. dow: 1, // Monday is the first day of the week.
  15963. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15964. },
  15965. });
  15966. //! moment.js locale configuration
  15967. hooks.defineLocale('uz-latn', {
  15968. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
  15969. '_'
  15970. ),
  15971. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  15972. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
  15973. '_'
  15974. ),
  15975. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  15976. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  15977. longDateFormat: {
  15978. LT: 'HH:mm',
  15979. LTS: 'HH:mm:ss',
  15980. L: 'DD/MM/YYYY',
  15981. LL: 'D MMMM YYYY',
  15982. LLL: 'D MMMM YYYY HH:mm',
  15983. LLLL: 'D MMMM YYYY, dddd HH:mm',
  15984. },
  15985. calendar: {
  15986. sameDay: '[Bugun soat] LT [da]',
  15987. nextDay: '[Ertaga] LT [da]',
  15988. nextWeek: 'dddd [kuni soat] LT [da]',
  15989. lastDay: '[Kecha soat] LT [da]',
  15990. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  15991. sameElse: 'L',
  15992. },
  15993. relativeTime: {
  15994. future: 'Yaqin %s ichida',
  15995. past: 'Bir necha %s oldin',
  15996. s: 'soniya',
  15997. ss: '%d soniya',
  15998. m: 'bir daqiqa',
  15999. mm: '%d daqiqa',
  16000. h: 'bir soat',
  16001. hh: '%d soat',
  16002. d: 'bir kun',
  16003. dd: '%d kun',
  16004. M: 'bir oy',
  16005. MM: '%d oy',
  16006. y: 'bir yil',
  16007. yy: '%d yil',
  16008. },
  16009. week: {
  16010. dow: 1, // Monday is the first day of the week.
  16011. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16012. },
  16013. });
  16014. //! moment.js locale configuration
  16015. hooks.defineLocale('uz', {
  16016. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  16017. '_'
  16018. ),
  16019. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  16020. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  16021. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  16022. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  16023. longDateFormat: {
  16024. LT: 'HH:mm',
  16025. LTS: 'HH:mm:ss',
  16026. L: 'DD/MM/YYYY',
  16027. LL: 'D MMMM YYYY',
  16028. LLL: 'D MMMM YYYY HH:mm',
  16029. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16030. },
  16031. calendar: {
  16032. sameDay: '[Бугун соат] LT [да]',
  16033. nextDay: '[Эртага] LT [да]',
  16034. nextWeek: 'dddd [куни соат] LT [да]',
  16035. lastDay: '[Кеча соат] LT [да]',
  16036. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  16037. sameElse: 'L',
  16038. },
  16039. relativeTime: {
  16040. future: 'Якин %s ичида',
  16041. past: 'Бир неча %s олдин',
  16042. s: 'фурсат',
  16043. ss: '%d фурсат',
  16044. m: 'бир дакика',
  16045. mm: '%d дакика',
  16046. h: 'бир соат',
  16047. hh: '%d соат',
  16048. d: 'бир кун',
  16049. dd: '%d кун',
  16050. M: 'бир ой',
  16051. MM: '%d ой',
  16052. y: 'бир йил',
  16053. yy: '%d йил',
  16054. },
  16055. week: {
  16056. dow: 1, // Monday is the first day of the week.
  16057. doy: 7, // The week that contains Jan 4th is the first week of the year.
  16058. },
  16059. });
  16060. //! moment.js locale configuration
  16061. hooks.defineLocale('vi', {
  16062. months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(
  16063. '_'
  16064. ),
  16065. monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
  16066. '_'
  16067. ),
  16068. monthsParseExact: true,
  16069. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
  16070. '_'
  16071. ),
  16072. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16073. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16074. weekdaysParseExact: true,
  16075. meridiemParse: /sa|ch/i,
  16076. isPM: function (input) {
  16077. return /^ch$/i.test(input);
  16078. },
  16079. meridiem: function (hours, minutes, isLower) {
  16080. if (hours < 12) {
  16081. return isLower ? 'sa' : 'SA';
  16082. } else {
  16083. return isLower ? 'ch' : 'CH';
  16084. }
  16085. },
  16086. longDateFormat: {
  16087. LT: 'HH:mm',
  16088. LTS: 'HH:mm:ss',
  16089. L: 'DD/MM/YYYY',
  16090. LL: 'D MMMM [năm] YYYY',
  16091. LLL: 'D MMMM [năm] YYYY HH:mm',
  16092. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  16093. l: 'DD/M/YYYY',
  16094. ll: 'D MMM YYYY',
  16095. lll: 'D MMM YYYY HH:mm',
  16096. llll: 'ddd, D MMM YYYY HH:mm',
  16097. },
  16098. calendar: {
  16099. sameDay: '[Hôm nay lúc] LT',
  16100. nextDay: '[Ngày mai lúc] LT',
  16101. nextWeek: 'dddd [tuần tới lúc] LT',
  16102. lastDay: '[Hôm qua lúc] LT',
  16103. lastWeek: 'dddd [tuần trước lúc] LT',
  16104. sameElse: 'L',
  16105. },
  16106. relativeTime: {
  16107. future: '%s tới',
  16108. past: '%s trước',
  16109. s: 'vài giây',
  16110. ss: '%d giây',
  16111. m: 'một phút',
  16112. mm: '%d phút',
  16113. h: 'một giờ',
  16114. hh: '%d giờ',
  16115. d: 'một ngày',
  16116. dd: '%d ngày',
  16117. M: 'một tháng',
  16118. MM: '%d tháng',
  16119. y: 'một năm',
  16120. yy: '%d năm',
  16121. },
  16122. dayOfMonthOrdinalParse: /\d{1,2}/,
  16123. ordinal: function (number) {
  16124. return number;
  16125. },
  16126. week: {
  16127. dow: 1, // Monday is the first day of the week.
  16128. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16129. },
  16130. });
  16131. //! moment.js locale configuration
  16132. hooks.defineLocale('x-pseudo', {
  16133. months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
  16134. '_'
  16135. ),
  16136. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  16137. '_'
  16138. ),
  16139. monthsParseExact: true,
  16140. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  16141. '_'
  16142. ),
  16143. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  16144. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  16145. weekdaysParseExact: true,
  16146. longDateFormat: {
  16147. LT: 'HH:mm',
  16148. L: 'DD/MM/YYYY',
  16149. LL: 'D MMMM YYYY',
  16150. LLL: 'D MMMM YYYY HH:mm',
  16151. LLLL: 'dddd, D MMMM YYYY HH:mm',
  16152. },
  16153. calendar: {
  16154. sameDay: '[T~ódá~ý át] LT',
  16155. nextDay: '[T~ómó~rró~w át] LT',
  16156. nextWeek: 'dddd [át] LT',
  16157. lastDay: '[Ý~ést~érdá~ý át] LT',
  16158. lastWeek: '[L~ást] dddd [át] LT',
  16159. sameElse: 'L',
  16160. },
  16161. relativeTime: {
  16162. future: 'í~ñ %s',
  16163. past: '%s á~gó',
  16164. s: 'á ~féw ~sécó~ñds',
  16165. ss: '%d s~écóñ~ds',
  16166. m: 'á ~míñ~úté',
  16167. mm: '%d m~íñú~tés',
  16168. h: 'á~ñ hó~úr',
  16169. hh: '%d h~óúrs',
  16170. d: 'á ~dáý',
  16171. dd: '%d d~áýs',
  16172. M: 'á ~móñ~th',
  16173. MM: '%d m~óñt~hs',
  16174. y: 'á ~ýéár',
  16175. yy: '%d ý~éárs',
  16176. },
  16177. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  16178. ordinal: function (number) {
  16179. var b = number % 10,
  16180. output =
  16181. ~~((number % 100) / 10) === 1
  16182. ? 'th'
  16183. : b === 1
  16184. ? 'st'
  16185. : b === 2
  16186. ? 'nd'
  16187. : b === 3
  16188. ? 'rd'
  16189. : 'th';
  16190. return number + output;
  16191. },
  16192. week: {
  16193. dow: 1, // Monday is the first day of the week.
  16194. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16195. },
  16196. });
  16197. //! moment.js locale configuration
  16198. hooks.defineLocale('yo', {
  16199. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
  16200. '_'
  16201. ),
  16202. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  16203. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  16204. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  16205. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  16206. longDateFormat: {
  16207. LT: 'h:mm A',
  16208. LTS: 'h:mm:ss A',
  16209. L: 'DD/MM/YYYY',
  16210. LL: 'D MMMM YYYY',
  16211. LLL: 'D MMMM YYYY h:mm A',
  16212. LLLL: 'dddd, D MMMM YYYY h:mm A',
  16213. },
  16214. calendar: {
  16215. sameDay: '[Ònì ni] LT',
  16216. nextDay: '[Ọ̀la ni] LT',
  16217. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  16218. lastDay: '[Àna ni] LT',
  16219. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  16220. sameElse: 'L',
  16221. },
  16222. relativeTime: {
  16223. future: 'ní %s',
  16224. past: '%s kọjá',
  16225. s: 'ìsẹjú aayá die',
  16226. ss: 'aayá %d',
  16227. m: 'ìsẹjú kan',
  16228. mm: 'ìsẹjú %d',
  16229. h: 'wákati kan',
  16230. hh: 'wákati %d',
  16231. d: 'ọjọ́ kan',
  16232. dd: 'ọjọ́ %d',
  16233. M: 'osù kan',
  16234. MM: 'osù %d',
  16235. y: 'ọdún kan',
  16236. yy: 'ọdún %d',
  16237. },
  16238. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  16239. ordinal: 'ọjọ́ %d',
  16240. week: {
  16241. dow: 1, // Monday is the first day of the week.
  16242. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16243. },
  16244. });
  16245. //! moment.js locale configuration
  16246. hooks.defineLocale('zh-cn', {
  16247. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16248. '_'
  16249. ),
  16250. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16251. '_'
  16252. ),
  16253. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16254. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  16255. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16256. longDateFormat: {
  16257. LT: 'HH:mm',
  16258. LTS: 'HH:mm:ss',
  16259. L: 'YYYY/MM/DD',
  16260. LL: 'YYYY年M月D日',
  16261. LLL: 'YYYY年M月D日Ah点mm分',
  16262. LLLL: 'YYYY年M月D日ddddAh点mm分',
  16263. l: 'YYYY/M/D',
  16264. ll: 'YYYY年M月D日',
  16265. lll: 'YYYY年M月D日 HH:mm',
  16266. llll: 'YYYY年M月D日dddd HH:mm',
  16267. },
  16268. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16269. meridiemHour: function (hour, meridiem) {
  16270. if (hour === 12) {
  16271. hour = 0;
  16272. }
  16273. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16274. return hour;
  16275. } else if (meridiem === '下午' || meridiem === '晚上') {
  16276. return hour + 12;
  16277. } else {
  16278. // '中午'
  16279. return hour >= 11 ? hour : hour + 12;
  16280. }
  16281. },
  16282. meridiem: function (hour, minute, isLower) {
  16283. var hm = hour * 100 + minute;
  16284. if (hm < 600) {
  16285. return '凌晨';
  16286. } else if (hm < 900) {
  16287. return '早上';
  16288. } else if (hm < 1130) {
  16289. return '上午';
  16290. } else if (hm < 1230) {
  16291. return '中午';
  16292. } else if (hm < 1800) {
  16293. return '下午';
  16294. } else {
  16295. return '晚上';
  16296. }
  16297. },
  16298. calendar: {
  16299. sameDay: '[今天]LT',
  16300. nextDay: '[明天]LT',
  16301. nextWeek: function (now) {
  16302. if (now.week() !== this.week()) {
  16303. return '[下]dddLT';
  16304. } else {
  16305. return '[本]dddLT';
  16306. }
  16307. },
  16308. lastDay: '[昨天]LT',
  16309. lastWeek: function (now) {
  16310. if (this.week() !== now.week()) {
  16311. return '[上]dddLT';
  16312. } else {
  16313. return '[本]dddLT';
  16314. }
  16315. },
  16316. sameElse: 'L',
  16317. },
  16318. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  16319. ordinal: function (number, period) {
  16320. switch (period) {
  16321. case 'd':
  16322. case 'D':
  16323. case 'DDD':
  16324. return number + '日';
  16325. case 'M':
  16326. return number + '月';
  16327. case 'w':
  16328. case 'W':
  16329. return number + '周';
  16330. default:
  16331. return number;
  16332. }
  16333. },
  16334. relativeTime: {
  16335. future: '%s后',
  16336. past: '%s前',
  16337. s: '几秒',
  16338. ss: '%d 秒',
  16339. m: '1 分钟',
  16340. mm: '%d 分钟',
  16341. h: '1 小时',
  16342. hh: '%d 小时',
  16343. d: '1 天',
  16344. dd: '%d 天',
  16345. M: '1 个月',
  16346. MM: '%d 个月',
  16347. y: '1 年',
  16348. yy: '%d 年',
  16349. },
  16350. week: {
  16351. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16352. dow: 1, // Monday is the first day of the week.
  16353. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16354. },
  16355. });
  16356. //! moment.js locale configuration
  16357. hooks.defineLocale('zh-hk', {
  16358. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16359. '_'
  16360. ),
  16361. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16362. '_'
  16363. ),
  16364. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16365. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16366. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16367. longDateFormat: {
  16368. LT: 'HH:mm',
  16369. LTS: 'HH:mm:ss',
  16370. L: 'YYYY/MM/DD',
  16371. LL: 'YYYY年M月D日',
  16372. LLL: 'YYYY年M月D日 HH:mm',
  16373. LLLL: 'YYYY年M月D日dddd HH:mm',
  16374. l: 'YYYY/M/D',
  16375. ll: 'YYYY年M月D日',
  16376. lll: 'YYYY年M月D日 HH:mm',
  16377. llll: 'YYYY年M月D日dddd HH:mm',
  16378. },
  16379. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16380. meridiemHour: function (hour, meridiem) {
  16381. if (hour === 12) {
  16382. hour = 0;
  16383. }
  16384. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16385. return hour;
  16386. } else if (meridiem === '中午') {
  16387. return hour >= 11 ? hour : hour + 12;
  16388. } else if (meridiem === '下午' || meridiem === '晚上') {
  16389. return hour + 12;
  16390. }
  16391. },
  16392. meridiem: function (hour, minute, isLower) {
  16393. var hm = hour * 100 + minute;
  16394. if (hm < 600) {
  16395. return '凌晨';
  16396. } else if (hm < 900) {
  16397. return '早上';
  16398. } else if (hm < 1200) {
  16399. return '上午';
  16400. } else if (hm === 1200) {
  16401. return '中午';
  16402. } else if (hm < 1800) {
  16403. return '下午';
  16404. } else {
  16405. return '晚上';
  16406. }
  16407. },
  16408. calendar: {
  16409. sameDay: '[今天]LT',
  16410. nextDay: '[明天]LT',
  16411. nextWeek: '[下]ddddLT',
  16412. lastDay: '[昨天]LT',
  16413. lastWeek: '[上]ddddLT',
  16414. sameElse: 'L',
  16415. },
  16416. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16417. ordinal: function (number, period) {
  16418. switch (period) {
  16419. case 'd':
  16420. case 'D':
  16421. case 'DDD':
  16422. return number + '日';
  16423. case 'M':
  16424. return number + '月';
  16425. case 'w':
  16426. case 'W':
  16427. return number + '週';
  16428. default:
  16429. return number;
  16430. }
  16431. },
  16432. relativeTime: {
  16433. future: '%s後',
  16434. past: '%s前',
  16435. s: '幾秒',
  16436. ss: '%d 秒',
  16437. m: '1 分鐘',
  16438. mm: '%d 分鐘',
  16439. h: '1 小時',
  16440. hh: '%d 小時',
  16441. d: '1 天',
  16442. dd: '%d 天',
  16443. M: '1 個月',
  16444. MM: '%d 個月',
  16445. y: '1 年',
  16446. yy: '%d 年',
  16447. },
  16448. });
  16449. //! moment.js locale configuration
  16450. hooks.defineLocale('zh-mo', {
  16451. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16452. '_'
  16453. ),
  16454. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16455. '_'
  16456. ),
  16457. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16458. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16459. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16460. longDateFormat: {
  16461. LT: 'HH:mm',
  16462. LTS: 'HH:mm:ss',
  16463. L: 'DD/MM/YYYY',
  16464. LL: 'YYYY年M月D日',
  16465. LLL: 'YYYY年M月D日 HH:mm',
  16466. LLLL: 'YYYY年M月D日dddd HH:mm',
  16467. l: 'D/M/YYYY',
  16468. ll: 'YYYY年M月D日',
  16469. lll: 'YYYY年M月D日 HH:mm',
  16470. llll: 'YYYY年M月D日dddd HH:mm',
  16471. },
  16472. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16473. meridiemHour: function (hour, meridiem) {
  16474. if (hour === 12) {
  16475. hour = 0;
  16476. }
  16477. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16478. return hour;
  16479. } else if (meridiem === '中午') {
  16480. return hour >= 11 ? hour : hour + 12;
  16481. } else if (meridiem === '下午' || meridiem === '晚上') {
  16482. return hour + 12;
  16483. }
  16484. },
  16485. meridiem: function (hour, minute, isLower) {
  16486. var hm = hour * 100 + minute;
  16487. if (hm < 600) {
  16488. return '凌晨';
  16489. } else if (hm < 900) {
  16490. return '早上';
  16491. } else if (hm < 1130) {
  16492. return '上午';
  16493. } else if (hm < 1230) {
  16494. return '中午';
  16495. } else if (hm < 1800) {
  16496. return '下午';
  16497. } else {
  16498. return '晚上';
  16499. }
  16500. },
  16501. calendar: {
  16502. sameDay: '[今天] LT',
  16503. nextDay: '[明天] LT',
  16504. nextWeek: '[下]dddd LT',
  16505. lastDay: '[昨天] LT',
  16506. lastWeek: '[上]dddd LT',
  16507. sameElse: 'L',
  16508. },
  16509. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16510. ordinal: function (number, period) {
  16511. switch (period) {
  16512. case 'd':
  16513. case 'D':
  16514. case 'DDD':
  16515. return number + '日';
  16516. case 'M':
  16517. return number + '月';
  16518. case 'w':
  16519. case 'W':
  16520. return number + '週';
  16521. default:
  16522. return number;
  16523. }
  16524. },
  16525. relativeTime: {
  16526. future: '%s內',
  16527. past: '%s前',
  16528. s: '幾秒',
  16529. ss: '%d 秒',
  16530. m: '1 分鐘',
  16531. mm: '%d 分鐘',
  16532. h: '1 小時',
  16533. hh: '%d 小時',
  16534. d: '1 天',
  16535. dd: '%d 天',
  16536. M: '1 個月',
  16537. MM: '%d 個月',
  16538. y: '1 年',
  16539. yy: '%d 年',
  16540. },
  16541. });
  16542. //! moment.js locale configuration
  16543. hooks.defineLocale('zh-tw', {
  16544. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16545. '_'
  16546. ),
  16547. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16548. '_'
  16549. ),
  16550. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16551. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16552. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16553. longDateFormat: {
  16554. LT: 'HH:mm',
  16555. LTS: 'HH:mm:ss',
  16556. L: 'YYYY/MM/DD',
  16557. LL: 'YYYY年M月D日',
  16558. LLL: 'YYYY年M月D日 HH:mm',
  16559. LLLL: 'YYYY年M月D日dddd HH:mm',
  16560. l: 'YYYY/M/D',
  16561. ll: 'YYYY年M月D日',
  16562. lll: 'YYYY年M月D日 HH:mm',
  16563. llll: 'YYYY年M月D日dddd HH:mm',
  16564. },
  16565. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16566. meridiemHour: function (hour, meridiem) {
  16567. if (hour === 12) {
  16568. hour = 0;
  16569. }
  16570. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16571. return hour;
  16572. } else if (meridiem === '中午') {
  16573. return hour >= 11 ? hour : hour + 12;
  16574. } else if (meridiem === '下午' || meridiem === '晚上') {
  16575. return hour + 12;
  16576. }
  16577. },
  16578. meridiem: function (hour, minute, isLower) {
  16579. var hm = hour * 100 + minute;
  16580. if (hm < 600) {
  16581. return '凌晨';
  16582. } else if (hm < 900) {
  16583. return '早上';
  16584. } else if (hm < 1130) {
  16585. return '上午';
  16586. } else if (hm < 1230) {
  16587. return '中午';
  16588. } else if (hm < 1800) {
  16589. return '下午';
  16590. } else {
  16591. return '晚上';
  16592. }
  16593. },
  16594. calendar: {
  16595. sameDay: '[今天] LT',
  16596. nextDay: '[明天] LT',
  16597. nextWeek: '[下]dddd LT',
  16598. lastDay: '[昨天] LT',
  16599. lastWeek: '[上]dddd LT',
  16600. sameElse: 'L',
  16601. },
  16602. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16603. ordinal: function (number, period) {
  16604. switch (period) {
  16605. case 'd':
  16606. case 'D':
  16607. case 'DDD':
  16608. return number + '日';
  16609. case 'M':
  16610. return number + '月';
  16611. case 'w':
  16612. case 'W':
  16613. return number + '週';
  16614. default:
  16615. return number;
  16616. }
  16617. },
  16618. relativeTime: {
  16619. future: '%s後',
  16620. past: '%s前',
  16621. s: '幾秒',
  16622. ss: '%d 秒',
  16623. m: '1 分鐘',
  16624. mm: '%d 分鐘',
  16625. h: '1 小時',
  16626. hh: '%d 小時',
  16627. d: '1 天',
  16628. dd: '%d 天',
  16629. M: '1 個月',
  16630. MM: '%d 個月',
  16631. y: '1 年',
  16632. yy: '%d 年',
  16633. },
  16634. });
  16635. hooks.locale('en');
  16636. return hooks;
  16637. })));